gdoo/public/assets/vendor/ag-grid/ag-grid.min.js

1113 lines
1.5 MiB
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// ag-grid-enterprise v21.2.2
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.agGrid=t():e.agGrid=t()}(window,(function(){return function(e){var t={};function o(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,o),r.l=!0,r.exports}return o.m=e,o.c=t,o.d=function(e,t,i){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(o.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)o.d(i,r,function(t){return e[t]}.bind(null,r));return i},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s=244)}([function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/Object.defineProperty(t,"__esModule",{value:!0});var i=o(2),r=function(){function e(e,t){if(this.beanWrappers={},this.registeredModules=[],this.componentsMappedByName={},this.destroyed=!1,e&&e.beans){this.contextParams=e,this.registeredModules=e.registeredModules,this.logger=t,this.logger.log(">> creating ag-Application Context"),this.setupComponents(),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 i._.mapObject(this.beanWrappers,(function(e){return e.beanInstance}))},e.prototype.setupComponents=function(){var e=this;this.contextParams.components&&this.contextParams.components.forEach((function(t){return e.addComponent(t)}))},e.prototype.addComponent=function(e){var t=e.componentName.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase().toUpperCase();this.componentsMappedByName[t]=e.theClass},e.prototype.createComponentFromElement=function(e,t){var o=e.nodeName;if(this.componentsMappedByName&&this.componentsMappedByName[o]){var i=new this.componentsMappedByName[o];return this.wireBean(i,t),i}return null},e.prototype.wireBean=function(e,t){if(!e)throw Error("Can't wire to bean since it is null");this.wireBeans([e],t)},e.prototype.wireBeans=function(e,t){this.autoWireBeans(e),this.methodWireBeans(e),this.callLifeCycleMethods(e,"preConstructMethods"),i._.exists(t)&&e.forEach(t),this.callLifeCycleMethods(e,"postConstructMethods")},e.prototype.createBeans=function(){var e=this;this.contextParams.beans.forEach(this.createBeanWrapper.bind(this)),this.contextParams.overrideBeans&&this.contextParams.overrideBeans.forEach(this.createBeanWrapper.bind(this)),i._.iterateObject(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,n,s=e.getBeansForParameters(i,o.bean.name),a=(r=o.bean,n=[null].concat(s),new(r.bind.apply(r,n)));o.beanInstance=a,e.logger.log("bean "+e.getBeanName(a)+" created")}))},e.prototype.createBeanWrapper=function(e){var t=e.__agBeanMetaData;if(!t){var o=void 0;return o=e.prototype.constructor?e.prototype.constructor.name:""+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,r){i._.iterateObject(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 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,r=[];return e&&i._.iterateObject(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.seed&&this.contextParams.seed.hasOwnProperty(t))return this.contextParams.seed[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){o.forEachMetaDataInHierarchy(e,(function(o){var i=o[t];i&&i.forEach((function(t){return e[t]()}))}))}))},e.prototype.getBean=function(e){return this.lookupBeanInstance("getBean",e,!0)},e.prototype.getEnterpriseDefaultComponents=function(){return this.contextParams.enterpriseDefaultComponents},e.prototype.destroy=function(){if(!this.destroyed){this.logger.log(">> Shutting down ag-Application Context");var e=this.getBeanInstances();this.callLifeCycleMethods(e,"preDestroyMethods"),this.contextParams.seed=null,this.destroyed=!0,this.logger.log(">> ag-Application Context shut down - component is dead")}},e.prototype.isModuleRegistered=function(e){return-1!==this.registeredModules.indexOf(e)},e}();function n(e,t,o,i,r,n){if(null!==t)if("number"!=typeof n){var a=s(e.constructor);a.agClassAttributes||(a.agClassAttributes=[]),a.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 s(e){return e.hasOwnProperty("__agBeanMetaData")||(e.__agBeanMetaData={}),e.__agBeanMetaData}t.Context=r,t.PreConstruct=function(e,t,o){var i=s(e.constructor);i.postConstructMethods||(i.preConstructMethods=[]),i.preConstructMethods.push(t)},t.PostConstruct=function(e,t,o){var i=s(e.constructor);i.postConstructMethods||(i.postConstructMethods=[]),i.postConstructMethods.push(t)},t.PreDestroy=function(e,t,o){var i=s(e.constructor);i.preDestroyMethods||(i.preDestroyMethods=[]),i.preDestroyMethods.push(t)},t.Bean=function(e){return function(t){s(t).beanName=e}},t.Autowired=function(e){return function(t,o,i){n(t,e,!1,t,o,null)}},t.Optional=function(e){return function(t,o,i){n(t,e,!0,t,o,null)}},t.Qualifier=function(e){return function(t,o,i){var r,n="function"==typeof t?t:t.constructor;if("number"==typeof i){var a=void 0;o?(r=s(n),a=o):(r=s(n),a="agConstructor"),r.autowireMethods||(r.autowireMethods={}),r.autowireMethods[a]||(r.autowireMethods[a]={}),r.autowireMethods[a][i]=e}}}},function(e,t,o){"use strict";(function(e){
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/
Object.defineProperty(t,"__esModule",{value:!0});var i=void 0===e?{}:e;i.HTMLElement="undefined"==typeof HTMLElement?{}:HTMLElement,i.HTMLButtonElement="undefined"==typeof HTMLButtonElement?{}:HTMLButtonElement,i.HTMLSelectElement="undefined"==typeof HTMLSelectElement?{}:HTMLSelectElement,i.HTMLInputElement="undefined"==typeof HTMLInputElement?{}:HTMLInputElement,i.Node="undefined"==typeof Node?{}:Node,i.MouseEvent="undefined"==typeof MouseEvent?{}:MouseEvent;var r=o(57);t.ColumnFactory=r.ColumnFactory;var n=o(5);t.ColumnController=n.ColumnController;var s=o(193);t.ColumnKeyCreator=s.ColumnKeyCreator;var a=o(44);t.ColumnUtils=a.ColumnUtils;var l=o(84);t.DisplayedGroupCreator=l.DisplayedGroupCreator;var p=o(147);t.GroupInstanceIdCreator=p.GroupInstanceIdCreator;var u=o(122);t.ComponentUtil=u.ComponentUtil;var c=o(191);t.ColDefUtil=c.ColDefUtil;var d=o(130);t.UserComponentRegistry=d.UserComponentRegistry;var h=o(19);t.UserComponentFactory=h.UserComponentFactory;var f=o(265);t.initialiseAgGridWithAngular1=f.initialiseAgGridWithAngular1;var g=o(277);t.initialiseAgGridWithWebComponents=g.initialiseAgGridWithWebComponents;var y=o(15);t.BeanStub=y.BeanStub;var v=o(0);t.Context=v.Context,t.Autowired=v.Autowired,t.PostConstruct=v.PostConstruct,t.PreConstruct=v.PreConstruct,t.Optional=v.Optional,t.Bean=v.Bean,t.Qualifier=v.Qualifier,t.PreDestroy=v.PreDestroy;var m=o(11);t.QuerySelector=m.QuerySelector,t.Listener=m.Listener,t.RefSelector=m.RefSelector;var C=o(18);t.DragAndDropService=C.DragAndDropService,t.DragSourceType=C.DragSourceType,t.HDirection=C.HDirection,t.VDirection=C.VDirection;var w=o(37);t.DragService=w.DragService;var _=o(12);t.Column=_.Column;var b=o(36);t.ColumnGroup=b.ColumnGroup;var E=o(45);t.OriginalColumnGroup=E.OriginalColumnGroup;var R=o(22);t.RowNode=R.RowNode;var P=o(17);t.FilterManager=P.FilterManager;var O=o(88);t.ProvidedFilter=O.ProvidedFilter;var S=o(33);t.SimpleFilter=S.SimpleFilter;var A=o(133);t.ScalerFilter=A.ScalerFilter;var T=o(137);t.NumberFilter=T.NumberFilter;var D=o(138);t.TextFilter=D.TextFilter;var x=o(132);t.DateFilter=x.DateFilter;var F=o(152);t.GridPanel=F.GridPanel;var M=o(66);t.ScrollVisibleService=M.ScrollVisibleService;var N=o(63);t.MouseEventService=N.MouseEventService;var L=o(198);t.BodyDropPivotTarget=L.BodyDropPivotTarget;var I=o(196);t.BodyDropTarget=I.BodyDropTarget;var G=o(144);t.CssClassApplier=G.CssClassApplier;var k=o(194);t.HeaderContainer=k.HeaderContainer;var W=o(151);t.HeaderRootComp=W.HeaderRootComp;var V=o(195);t.HeaderRowComp=V.HeaderRowComp;var H=o(91);t.HorizontalResizeService=H.HorizontalResizeService;var j=o(197);t.MoveColumnController=j.MoveColumnController;var B=o(203);t.StandardMenuFactory=B.StandardMenuFactory;var U=o(278);t.TabbedLayout=U.TabbedLayout;var z=o(279);t.VerticalStack=z.VerticalStack;var Y=o(280);t.simpleHttpRequest=Y.simpleHttpRequest;var K=o(94);t.ResizeObserverService=K.ResizeObserverService;var X=o(184);t.LargeTextCellEditor=X.LargeTextCellEditor;var q=o(126);t.PopupEditorWrapper=q.PopupEditorWrapper;var Q=o(183);t.PopupSelectCellEditor=Q.PopupSelectCellEditor;var $=o(182);t.PopupTextCellEditor=$.PopupTextCellEditor;var Z=o(136);t.SelectCellEditor=Z.SelectCellEditor;var J=o(131);t.TextCellEditor=J.TextCellEditor;var ee=o(135);t.AnimateShowChangeCellRenderer=ee.AnimateShowChangeCellRenderer;var te=o(129);t.AnimateSlideCellRenderer=te.AnimateSlideCellRenderer;var oe=o(134);t.GroupCellRenderer=oe.GroupCellRenderer;var ie=o(92);t.SetLeftFeature=ie.SetLeftFeature;var re=o(58);t.AutoWidthCalculator=re.AutoWidthCalculator;var ne=o(87);t.CellRendererFactory=ne.CellRendererFactory;var se=o(125);t.CheckboxSelectionComponent=se.CheckboxSelectionComponent;var ae=o(59);t.CellComp=ae.CellComp;var le=o(124);t.RowComp=le.RowComp;var pe=o(20);t.RowRenderer=pe.RowRenderer;var ue=o(62);t.ValueFormatterService=ue.ValueFormatterService;var ce=o(204);t.FilterStage=ce.FilterStage;var de=o(208);t.FlattenStage=de.FlattenStage;var he=o(206);t.SortStage=he.SortStage;var fe=o(30);t.PinnedRowModel=fe.PinnedRowModel;var ge=o(211);t.ClientSideRowModel=ge.ClientSideRowModel;var ye=o(85);t.ChangedPath=ye.ChangedPath;var ve=o(212);t.ClientSideNodeManager=ve.ClientSideNodeManager;var me=o(209);t.InfiniteRowModel=me.InfiniteRowModel;var Ce=o(95);t.RowNodeBlock=Ce.RowNodeBlock;var we=o(210);t.RowNodeBlockLoader=we.RowNodeBlockLoader;var _e=o(31);t.PaginationProxy=_e.PaginationProxy;var be=o(154);t.RowNodeCache=be.RowNodeCache;var Ee=o(141);t.StylingService=Ee.StylingService;var Re=o(39);t.AgAbstractField=Re.AgAbstractField;var Pe=o(49);t.AgCheckbox=Pe.AgCheckbox;var Oe=o(155);t.AgRadioButton=Oe.AgRadioButton;var Se=o(222);t.AgToggleButton=Se.AgToggleButton;var Ae=o(157);t.AgInputTextField=Ae.AgInputTextField;var Te=o(217);t.AgInputTextArea=Te.AgInputTextArea;var De=o(97);t.AgInputNumberField=De.AgInputNumberField;var xe=o(158);t.AgInputRange=xe.AgInputRange;var Fe=o(220);t.AgSelect=Fe.AgSelect;var Me=o(218);t.AgSlider=Me.AgSlider;var Ne=o(221);t.AgAngleSelect=Ne.AgAngleSelect;var Le=o(219);t.AgColorPicker=Le.AgColorPicker;var Ie=o(216);t.AgGroupComponent=Ie.AgGroupComponent;var Ge=o(96);t.AgDialog=Ge.AgDialog;var ke=o(156);t.AgPanel=ke.AgPanel;var We=o(281);t.MessageBox=We.MessageBox;var Ve=o(8);t.Component=Ve.Component;var He=o(47);t.PopupComponent=He.PopupComponent;var je=o(32);t.PopupService=je.PopupService;var Be=o(61);t.TouchListener=Be.TouchListener;var Ue=o(179);t.CellRangeType=Ue.CellRangeType;var ze=o(123);t.CsvCreator=ze.CsvCreator,t.BaseCreator=ze.BaseCreator;var Ye=o(148);t.Downloader=Ye.Downloader;var Ke=o(214);t.XmlFactory=Ke.XmlFactory;var Xe=o(83);t.BaseGridSerializingSession=Xe.BaseGridSerializingSession,t.GridSerializer=Xe.GridSerializer;var qe=o(83);t.RowType=qe.RowType;var Qe=o(215);t.ZipContainer=Qe.ZipContainer;var $e=o(213);t.VanillaFrameworkOverrides=$e.VanillaFrameworkOverrides;var Ze=o(127);t.CellNavigationService=Ze.CellNavigationService;var Je=o(93);t.AlignedGridsService=Je.AlignedGridsService;var et=o(7);t.Constants=et.Constants;var tt=o(150);t.Grid=tt.Grid;var ot=o(9);t.GridApi=ot.GridApi;var it=o(35);t.Events=it.Events;var rt=o(26);t.FocusedCellController=rt.FocusedCellController;var nt=o(282);t.defaultGroupComparator=nt.defaultGroupComparator;var st=o(3);t.GridOptionsWrapper=st.GridOptionsWrapper;var at=o(4);t.EventService=at.EventService;var lt=o(153);t.SelectableService=lt.SelectableService;var pt=o(202);t.GridCore=pt.GridCore;var ut=o(14);t.Logger=ut.Logger;var ct=o(23);t.SelectionController=ct.SelectionController;var dt=o(27);t.SortController=dt.SortController;var ht=o(128);t.TemplateService=ht.TemplateService;var ft=o(2);t.Color=ft.Color,t.Utils=ft.Utils,t.NumberSequence=ft.NumberSequence,t._=ft._,t.Promise=ft.Promise;var gt=o(24);t.ValueService=gt.ValueService;var yt=o(25);t.ExpressionService=yt.ExpressionService;var vt=o(14);t.LoggerFactory=vt.LoggerFactory;var mt=o(143);t.CellPositionUtils=mt.CellPositionUtils;var Ct=o(90);t.RowPositionUtils=Ct.RowPositionUtils;var wt=o(10);t.ColumnApi=wt.ColumnApi;var _t=o(283);t.BaseComponentWrapper=_t.BaseComponentWrapper;var bt=o(60);t.Environment=bt.Environment;var Et=o(142);t.TooltipManager=Et.TooltipManager;var Rt=o(284);t.ChartType=Rt.ChartType}).call(this,o(246))},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/function i(e){for(var o in e)t.hasOwnProperty(o)||(t[o]=e[o])}Object.defineProperty(t,"__esModule",{value:!0}),i(o(247)),i(o(248)),i(o(249)),i(o(250))},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/var i=this&&this.__decorate||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},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},n=this&&this.__param||function(e,t){return function(o,i){t(o,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});var s=o(2),a=o(4),l=o(7),p=o(122),u=o(9),c=o(0),d=o(10),h=o(5),f=o(60),g=o(178),y=o(191),v=o(35),m=o(149),C=o(192);function w(e){return!0===e||"true"===e}var _=function(){function e(){this.propertyEventService=new a.EventService,this.domDataKey="__AG_"+Math.random().toString(),this.layoutElements=[]}var t;return t=e,e.prototype.agWire=function(e,t){this.gridOptions.api=e,this.gridOptions.columnApi=t,this.checkForDeprecated(),this.checkForViolations()},e.prototype.destroy=function(){this.gridOptions.api=null,this.gridOptions.columnApi=null},e.prototype.init=function(){!0!==this.gridOptions.suppressPropertyNamesCheck&&(this.checkGridOptionsProperties(),this.checkColumnDefProperties());var e=this.useAsyncEvents();this.eventService.addGlobalListener(this.globalEventHandler.bind(this),e),this.isGroupSelectsChildren()&&this.isSuppressParentsInRowNodes()&&console.warn("ag-Grid: groupSelectsChildren does not work wth suppressParentsInRowNodes, this selection method needs the part in rowNode to work"),this.isGroupSelectsChildren()&&(this.isRowSelectionMulti()||console.warn("ag-Grid: rowSelection must be 'multiple' for groupSelectsChildren to make sense"),this.isRowModelServerSide()&&console.warn("ag-Grid: group selects children is NOT support for Server Side Row Model. This is because the rows are lazy loaded, so selecting a group is not possible asthe grid has no way of knowing what the children are.")),this.isGroupRemoveSingleChildren()&&this.isGroupHideOpenParents()&&console.warn("ag-Grid: groupRemoveSingleChildren and groupHideOpenParents do not work with each other, you need to pick one. And don't ask us how to us these together on our support forum either you will get the same answer!"),this.addEventListener(t.PROP_DOM_LAYOUT,this.updateLayoutClasses.bind(this))},e.prototype.checkColumnDefProperties=function(){var e=this;null!=this.gridOptions.columnDefs&&this.gridOptions.columnDefs.forEach((function(t){var o=Object.getOwnPropertyNames(t),i=y.ColDefUtil.ALL_PROPERTIES.concat(y.ColDefUtil.FRAMEWORK_PROPERTIES);e.checkProperties(o,i,i,"colDef","https://www.ag-grid.com/javascript-grid-column-properties/")}))},e.prototype.checkGridOptionsProperties=function(){var e=Object.getOwnPropertyNames(this.gridOptions),t=g.PropertyKeys.ALL_PROPERTIES.concat(g.PropertyKeys.FRAMEWORK_PROPERTIES);Object.keys(v.Events).forEach((function(e){return t.push(p.ComponentUtil.getCallbackForEvent(v.Events[e]))}));var o=t.concat("api","columnApi");this.checkProperties(e,o,t,"gridOptions","https://www.ag-grid.com/javascript-grid-properties/")},e.prototype.checkProperties=function(e,t,o,i,r){var n=s._.fuzzyCheckStrings(e,t,o),a=Object.keys(n);a.forEach((function(e){var t=n[e];console.warn("ag-grid: invalid "+i+" property '"+e+"' did you mean any of these: "+t.slice(0,8).join(","))})),a.length>0&&console.warn("ag-grid: to see all the valid "+i+" properties please check: "+r)},e.prototype.getDomData=function(e,t){var o=e[this.domDataKey];if(o)return o[t]},e.prototype.setDomData=function(e,t,o){var i=e[this.domDataKey];s._.missing(i)&&(i={},e[this.domDataKey]=i),i[t]=o},e.prototype.isEnterprise=function(){return this.enterprise},e.prototype.isRowSelection=function(){return"single"===this.gridOptions.rowSelection||"multiple"===this.gridOptions.rowSelection},e.prototype.isRowDeselection=function(){return w(this.gridOptions.rowDeselection)},e.prototype.isRowSelectionMulti=function(){return"multiple"===this.gridOptions.rowSelection},e.prototype.isRowMultiSelectWithClick=function(){return w(this.gridOptions.rowMultiSelectWithClick)},e.prototype.getContext=function(){return this.gridOptions.context},e.prototype.isPivotMode=function(){return w(this.gridOptions.pivotMode)},e.prototype.isPivotTotals=function(){return w(this.gridOptions.pivotTotals)},e.prototype.getPivotColumnGroupTotals=function(){return this.gridOptions.pivotColumnGroupTotals},e.prototype.getPivotRowTotals=function(){return this.gridOptions.pivotRowTotals},e.prototype.isRowModelInfinite=function(){return this.gridOptions.rowModelType===l.Constants.ROW_MODEL_TYPE_INFINITE},e.prototype.isRowModelViewport=function(){return this.gridOptions.rowModelType===l.Constants.ROW_MODEL_TYPE_VIEWPORT},e.prototype.isRowModelServerSide=function(){return this.gridOptions.rowModelType===l.Constants.ROW_MODEL_TYPE_SERVER_SIDE},e.prototype.isRowModelDefault=function(){return s._.missing(this.gridOptions.rowModelType)||this.gridOptions.rowModelType===l.Constants.ROW_MODEL_TYPE_CLIENT_SIDE||this.gridOptions.rowModelType===l.Constants.DEPRECATED_ROW_MODEL_TYPE_NORMAL},e.prototype.isFullRowEdit=function(){return"fullRow"===this.gridOptions.editType},e.prototype.isSuppressFocusAfterRefresh=function(){return w(this.gridOptions.suppressFocusAfterRefresh)},e.prototype.isSuppressBrowserResizeObserver=function(){return w(this.gridOptions.suppressBrowserResizeObserver)},e.prototype.isSuppressMaintainUnsortedOrder=function(){return w(this.gridOptions.suppressMaintainUnsortedOrder)},e.prototype.isShowToolPanel=function(){return w(this.gridOptions.sideBar&&Array.isArray(this.getSideBar().toolPanels))},e.prototype.getSideBar=function(){return this.gridOptions.sideBar},e.prototype.isSuppressTouch=function(){return w(this.gridOptions.suppressTouch)},e.prototype.isSuppressRowTransform=function(){return w(this.gridOptions.suppressRowTransform)},e.prototype.isSuppressSetColumnStateEvents=function(){return w(this.gridOptions.suppressSetColumnStateEvents)},e.prototype.useAsyncEvents=function(){return!w(this.gridOptions.suppressAsyncEvents)},e.prototype.isEnableCellChangeFlash=function(){return w(this.gridOptions.enableCellChangeFlash)},e.prototype.isGroupSelectsChildren=function(){var e=w(this.gridOptions.groupSelectsChildren);return e&&this.isTreeData()?(console.warn("ag-Grid: groupSelectsChildren does not work with tree data"),!1):e},e.prototype.isSuppressRowHoverHighlight=function(){return w(this.gridOptions.suppressRowHoverHighlight)},e.prototype.isGroupSelectsFiltered=function(){return w(this.gridOptions.groupSelectsFiltered)},e.prototype.isGroupHideOpenParents=function(){return w(this.gridOptions.groupHideOpenParents)},e.prototype.isGroupMultiAutoColumn=function(){return w(this.gridOptions.groupMultiAutoColumn)||w(this.gridOptions.groupHideOpenParents)},e.prototype.isGroupRemoveSingleChildren=function(){return w(this.gridOptions.groupRemoveSingleChildren)},e.prototype.isGroupRemoveLowestSingleChildren=function(){return w(this.gridOptions.groupRemoveLowestSingleChildren)},e.prototype.isGroupIncludeFooter=function(){return w(this.gridOptions.groupIncludeFooter)},e.prototype.isGroupIncludeTotalFooter=function(){return w(this.gridOptions.groupIncludeTotalFooter)},e.prototype.isGroupSuppressBlankHeader=function(){return w(this.gridOptions.groupSuppressBlankHeader)},e.prototype.isSuppressRowClickSelection=function(){return w(this.gridOptions.suppressRowClickSelection)},e.prototype.isSuppressCellSelection=function(){return w(this.gridOptions.suppressCellSelection)},e.prototype.isSuppressMultiSort=function(){return w(this.gridOptions.suppressMultiSort)},e.prototype.isMultiSortKeyCtrl=function(){return"ctrl"===this.gridOptions.multiSortKey},e.prototype.isGroupSuppressAutoColumn=function(){return w(this.gridOptions.groupSuppressAutoColumn)},e.prototype.isSuppressDragLeaveHidesColumns=function(){return w(this.gridOptions.suppressDragLeaveHidesColumns)},e.prototype.isSuppressScrollOnNewData=function(){return w(this.gridOptions.suppressScrollOnNewData)},e.prototype.isRowDragManaged=function(){return w(this.gridOptions.rowDragManaged)},e.prototype.isSuppressRowDrag=function(){return w(this.gridOptions.suppressRowDrag)},e.prototype.getDomLayout=function(){var e=this,t=this.gridOptions.domLayout;return t===l.Constants.DOM_LAYOUT_PRINT||t===l.Constants.DOM_LAYOUT_AUTO_HEIGHT||t===l.Constants.DOM_LAYOUT_NORMAL?t:null==t?l.Constants.DOM_LAYOUT_NORMAL:(s._.doOnce((function(){return console.warn("ag-Grid: "+e.gridOptions.domLayout+" is not valid for DOM Layout, valid values are "+l.Constants.DOM_LAYOUT_NORMAL+", "+l.Constants.DOM_LAYOUT_AUTO_HEIGHT+" and "+l.Constants.DOM_LAYOUT_PRINT)}),"warn about dom layout values"),l.Constants.DOM_LAYOUT_NORMAL)},e.prototype.isSuppressHorizontalScroll=function(){return w(this.gridOptions.suppressHorizontalScroll)},e.prototype.isSuppressMaxRenderedRowRestriction=function(){return w(this.gridOptions.suppressMaxRenderedRowRestriction)},e.prototype.isExcludeChildrenWhenTreeDataFiltering=function(){return w(this.gridOptions.excludeChildrenWhenTreeDataFiltering)},e.prototype.isAlwaysShowVerticalScroll=function(){return w(this.gridOptions.alwaysShowVerticalScroll)},e.prototype.isSuppressLoadingOverlay=function(){return w(this.gridOptions.suppressLoadingOverlay)},e.prototype.isSuppressNoRowsOverlay=function(){return w(this.gridOptions.suppressNoRowsOverlay)},e.prototype.isSuppressFieldDotNotation=function(){return w(this.gridOptions.suppressFieldDotNotation)},e.prototype.getPinnedTopRowData=function(){return this.gridOptions.pinnedTopRowData},e.prototype.getPinnedBottomRowData=function(){return this.gridOptions.pinnedBottomRowData},e.prototype.isFunctionsPassive=function(){return w(this.gridOptions.functionsPassive)},e.prototype.isSuppressTabbing=function(){return w(this.gridOptions.suppressTabbing)},e.prototype.isSuppressChangeDetection=function(){return w(this.gridOptions.suppressChangeDetection)},e.prototype.isSuppressAnimationFrame=function(){return w(this.gridOptions.suppressAnimationFrame)},e.prototype.getQuickFilterText=function(){return this.gridOptions.quickFilterText},e.prototype.isCacheQuickFilter=function(){return w(this.gridOptions.cacheQuickFilter)},e.prototype.isUnSortIcon=function(){return w(this.gridOptions.unSortIcon)},e.prototype.isSuppressMenuHide=function(){return w(this.gridOptions.suppressMenuHide)},e.prototype.isEnterMovesDownAfterEdit=function(){return w(this.gridOptions.enterMovesDownAfterEdit)},e.prototype.isEnterMovesDown=function(){return w(this.gridOptions.enterMovesDown)},e.prototype.getRowStyle=function(){return this.gridOptions.rowStyle},e.prototype.getRowClass=function(){return this.gridOptions.rowClass},e.prototype.getRowStyleFunc=function(){return this.gridOptions.getRowStyle},e.prototype.getRowClassFunc=function(){return this.gridOptions.getRowClass},e.prototype.rowClassRules=function(){return this.gridOptions.rowClassRules},e.prototype.getCreateChartContainerFunc=function(){return this.gridOptions.createChartContainer},e.prototype.getPopupParent=function(){return this.gridOptions.popupParent},e.prototype.getBlockLoadDebounceMillis=function(){return this.gridOptions.blockLoadDebounceMillis},e.prototype.getPostProcessPopupFunc=function(){return this.gridOptions.postProcessPopup},e.prototype.getDoesDataFlowerFunc=function(){return this.gridOptions.doesDataFlower},e.prototype.getPaginationNumberFormatterFunc=function(){return this.gridOptions.paginationNumberFormatter},e.prototype.getChildCountFunc=function(){return this.gridOptions.getChildCount},e.prototype.getDefaultGroupSortComparator=function(){return this.gridOptions.defaultGroupSortComparator},e.prototype.getIsFullWidthCellFunc=function(){return this.gridOptions.isFullWidthCell},e.prototype.getFullWidthCellRendererParams=function(){return this.gridOptions.fullWidthCellRendererParams},e.prototype.isEmbedFullWidthRows=function(){return w(this.gridOptions.embedFullWidthRows)||w(this.gridOptions.deprecatedEmbedFullWidthRows)},e.prototype.getSuppressKeyboardEventFunc=function(){return this.gridOptions.suppressKeyboardEvent},e.prototype.getBusinessKeyForNodeFunc=function(){return this.gridOptions.getBusinessKeyForNode},e.prototype.getApi=function(){return this.gridOptions.api},e.prototype.getColumnApi=function(){return this.gridOptions.columnApi},e.prototype.isDeltaRowDataMode=function(){return w(this.gridOptions.deltaRowDataMode)},e.prototype.isDeltaColumnMode=function(){return w(this.gridOptions.deltaColumnMode)},e.prototype.isEnsureDomOrder=function(){return w(this.gridOptions.ensureDomOrder)},e.prototype.isEnableCharts=function(){return!!w(this.gridOptions.enableCharts)&&(!!this.context.isModuleRegistered("chartsModule")||(s._.doOnce((function(){console.warn("ag-grid: Charts is enabled but the Charts Module has not been included.")}),"ChartsModuleCheck"),!1))},e.prototype.getColResizeDefault=function(){return this.gridOptions.colResizeDefault},e.prototype.isSingleClickEdit=function(){return w(this.gridOptions.singleClickEdit)},e.prototype.isSuppressClickEdit=function(){return w(this.gridOptions.suppressClickEdit)},e.prototype.isStopEditingWhenGridLosesFocus=function(){return w(this.gridOptions.stopEditingWhenGridLosesFocus)},e.prototype.getGroupDefaultExpanded=function(){return this.gridOptions.groupDefaultExpanded},e.prototype.getMaxConcurrentDatasourceRequests=function(){return this.gridOptions.maxConcurrentDatasourceRequests},e.prototype.getMaxBlocksInCache=function(){return this.gridOptions.maxBlocksInCache},e.prototype.getCacheOverflowSize=function(){return this.gridOptions.cacheOverflowSize},e.prototype.getPaginationPageSize=function(){return this.gridOptions.paginationPageSize},e.prototype.isPaginateChildRows=function(){return!!(this.isGroupSuppressRow()||this.isGroupRemoveSingleChildren()||this.isGroupRemoveLowestSingleChildren())||w(this.gridOptions.paginateChildRows)},e.prototype.getCacheBlockSize=function(){return this.gridOptions.cacheBlockSize},e.prototype.getInfiniteInitialRowCount=function(){return this.gridOptions.infiniteInitialRowCount},e.prototype.isPurgeClosedRowNodes=function(){return w(this.gridOptions.purgeClosedRowNodes)},e.prototype.isSuppressPaginationPanel=function(){return w(this.gridOptions.suppressPaginationPanel)},e.prototype.getRowData=function(){return this.gridOptions.rowData},e.prototype.isGroupUseEntireRow=function(e){return!e&&w(this.gridOptions.groupUseEntireRow)},e.prototype.isEnableRtl=function(){return w(this.gridOptions.enableRtl)},e.prototype.getAutoGroupColumnDef=function(){return this.gridOptions.autoGroupColumnDef},e.prototype.isGroupSuppressRow=function(){return w(this.gridOptions.groupSuppressRow)},e.prototype.getRowGroupPanelShow=function(){return this.gridOptions.rowGroupPanelShow},e.prototype.getPivotPanelShow=function(){return this.gridOptions.pivotPanelShow},e.prototype.isAngularCompileRows=function(){return w(this.gridOptions.angularCompileRows)},e.prototype.isAngularCompileFilters=function(){return w(this.gridOptions.angularCompileFilters)},e.prototype.isAngularCompileHeaders=function(){return w(this.gridOptions.angularCompileHeaders)},e.prototype.isDebug=function(){return w(this.gridOptions.debug)},e.prototype.getColumnDefs=function(){return this.gridOptions.columnDefs},e.prototype.getColumnTypes=function(){return this.gridOptions.columnTypes},e.prototype.getDatasource=function(){return this.gridOptions.datasource},e.prototype.getViewportDatasource=function(){return this.gridOptions.viewportDatasource},e.prototype.getServerSideDatasource=function(){return this.gridOptions.serverSideDatasource},e.prototype.isAccentedSort=function(){return w(this.gridOptions.accentedSort)},e.prototype.isEnableBrowserTooltips=function(){return w(this.gridOptions.enableBrowserTooltips)},e.prototype.isEnableCellExpressions=function(){return w(this.gridOptions.enableCellExpressions)},e.prototype.isEnableGroupEdit=function(){return w(this.gridOptions.enableGroupEdit)},e.prototype.isSuppressMiddleClickScrolls=function(){return w(this.gridOptions.suppressMiddleClickScrolls)},e.prototype.isPreventDefaultOnContextMenu=function(){return w(this.gridOptions.preventDefaultOnContextMenu)},e.prototype.isSuppressPreventDefaultOnMouseWheel=function(){return w(this.gridOptions.suppressPreventDefaultOnMouseWheel)},e.prototype.isSuppressColumnVirtualisation=function(){return w(this.gridOptions.suppressColumnVirtualisation)},e.prototype.isSuppressContextMenu=function(){return w(this.gridOptions.suppressContextMenu)},e.prototype.isAllowContextMenuWithControlKey=function(){return w(this.gridOptions.allowContextMenuWithControlKey)},e.prototype.isSuppressCopyRowsToClipboard=function(){return w(this.gridOptions.suppressCopyRowsToClipboard)},e.prototype.isCopyHeadersToClipboard=function(){return w(this.gridOptions.copyHeadersToClipboard)},e.prototype.isSuppressClipboardPaste=function(){return w(this.gridOptions.suppressClipboardPaste)},e.prototype.isPagination=function(){return w(this.gridOptions.pagination)},e.prototype.isSuppressEnterpriseResetOnNewColumns=function(){return w(this.gridOptions.suppressEnterpriseResetOnNewColumns)},e.prototype.getProcessDataFromClipboardFunc=function(){return this.gridOptions.processDataFromClipboard},e.prototype.getBatchUpdateWaitMillis=function(){return s._.exists(this.gridOptions.batchUpdateWaitMillis)?this.gridOptions.batchUpdateWaitMillis:l.Constants.BATCH_WAIT_MILLIS},e.prototype.isSuppressMovableColumns=function(){return w(this.gridOptions.suppressMovableColumns)},e.prototype.isAnimateRows=function(){return!this.isEnsureDomOrder()&&w(this.gridOptions.animateRows)},e.prototype.isSuppressColumnMoveAnimation=function(){return w(this.gridOptions.suppressColumnMoveAnimation)},e.prototype.isSuppressAggFuncInHeader=function(){return w(this.gridOptions.suppressAggFuncInHeader)},e.prototype.isSuppressAggAtRootLevel=function(){return w(this.gridOptions.suppressAggAtRootLevel)},e.prototype.isEnableRangeSelection=function(){return this.enterprise&&w(this.gridOptions.enableRangeSelection)},e.prototype.isEnableRangeHandle=function(){return w(this.gridOptions.enableRangeHandle)},e.prototype.isEnableFillHandle=function(){return w(this.gridOptions.enableFillHandle)},e.prototype.isSuppressMultiRangeSelection=function(){return w(this.gridOptions.suppressMultiRangeSelection)},e.prototype.isPaginationAutoPageSize=function(){return w(this.gridOptions.paginationAutoPageSize)},e.prototype.isRememberGroupStateWhenNewData=function(){return w(this.gridOptions.rememberGroupStateWhenNewData)},e.prototype.getIcons=function(){return this.gridOptions.icons},e.prototype.getAggFuncs=function(){return this.gridOptions.aggFuncs},e.prototype.getSortingOrder=function(){return this.gridOptions.sortingOrder},e.prototype.getAlignedGrids=function(){return this.gridOptions.alignedGrids},e.prototype.isMasterDetail=function(){var e=this,t=w(this.gridOptions.masterDetail);return s._.doOnce((function(){t&&!e.enterprise&&console.warn("ag-grid: Master Detail is an Enterprise feature of ag-Grid.")}),"MasterDetailEnterpriseCheck"),t&&this.enterprise},e.prototype.isKeepDetailRows=function(){return w(this.gridOptions.keepDetailRows)},e.prototype.getKeepDetailRowsCount=function(){return this.gridOptions.keepDetailRowsCount>0?this.gridOptions.keepDetailRowsCount:10},e.prototype.getIsRowMasterFunc=function(){return this.gridOptions.isRowMaster},e.prototype.getIsRowSelectableFunc=function(){return this.gridOptions.isRowSelectable},e.prototype.getGroupRowRendererParams=function(){return this.gridOptions.groupRowRendererParams},e.prototype.getOverlayLoadingTemplate=function(){return this.gridOptions.overlayLoadingTemplate},e.prototype.getOverlayNoRowsTemplate=function(){return this.gridOptions.overlayNoRowsTemplate},e.prototype.isSuppressAutoSize=function(){return w(this.gridOptions.suppressAutoSize)},e.prototype.isEnableCellTextSelection=function(){return w(this.gridOptions.enableCellTextSelection)},e.prototype.isSuppressParentsInRowNodes=function(){return w(this.gridOptions.suppressParentsInRowNodes)},e.prototype.isFunctionsReadOnly=function(){return w(this.gridOptions.functionsReadOnly)},e.prototype.isFloatingFilter=function(){return this.gridOptions.floatingFilter},e.prototype.isEnableCellTextSelect=function(){return w(this.gridOptions.enableCellTextSelection)},e.prototype.isEnableOldSetFilterModel=function(){return w(this.gridOptions.enableOldSetFilterModel)},e.prototype.getDefaultColDef=function(){return this.gridOptions.defaultColDef},e.prototype.getDefaultColGroupDef=function(){return this.gridOptions.defaultColGroupDef},e.prototype.getDefaultExportParams=function(){return this.gridOptions.defaultExportParams},e.prototype.isSuppressCsvExport=function(){return w(this.gridOptions.suppressCsvExport)},e.prototype.isAllowShowChangeAfterFilter=function(){return w(this.gridOptions.allowShowChangeAfterFilter)},e.prototype.isSuppressExcelExport=function(){return w(this.gridOptions.suppressExcelExport)},e.prototype.isSuppressMakeColumnVisibleAfterUnGroup=function(){return w(this.gridOptions.suppressMakeColumnVisibleAfterUnGroup)},e.prototype.getNodeChildDetailsFunc=function(){return this.gridOptions.getNodeChildDetails},e.prototype.getDataPathFunc=function(){return this.gridOptions.getDataPath},e.prototype.getIsServerSideGroupFunc=function(){return this.gridOptions.isServerSideGroup},e.prototype.getServerSideGroupKeyFunc=function(){return this.gridOptions.getServerSideGroupKey},e.prototype.getGroupRowAggNodesFunc=function(){return this.gridOptions.groupRowAggNodes},e.prototype.getContextMenuItemsFunc=function(){return this.gridOptions.getContextMenuItems},e.prototype.getMainMenuItemsFunc=function(){return this.gridOptions.getMainMenuItems},e.prototype.getChartToolbarItemsFunc=function(){return this.gridOptions.getChartToolbarItems},e.prototype.getRowNodeIdFunc=function(){return this.gridOptions.getRowNodeId},e.prototype.getNavigateToNextCellFunc=function(){return this.gridOptions.navigateToNextCell},e.prototype.getTabToNextCellFunc=function(){return this.gridOptions.tabToNextCell},e.prototype.isTreeData=function(){var e=this,t=w(this.gridOptions.treeData);return s._.doOnce((function(){t&&!e.enterprise&&console.warn("ag-grid: TreeData is an Enterprise feature of ag-Grid.")}),"TreeDataEnterpriseCheck"),t},e.prototype.isValueCache=function(){return w(this.gridOptions.valueCache)},e.prototype.isValueCacheNeverExpires=function(){return w(this.gridOptions.valueCacheNeverExpires)},e.prototype.isDeltaSort=function(){return w(this.gridOptions.deltaSort)},e.prototype.isAggregateOnlyChangedColumns=function(){return w(this.gridOptions.aggregateOnlyChangedColumns)},e.prototype.getProcessSecondaryColDefFunc=function(){return this.gridOptions.processSecondaryColDef},e.prototype.getProcessSecondaryColGroupDefFunc=function(){return this.gridOptions.processSecondaryColGroupDef},e.prototype.getSendToClipboardFunc=function(){return this.gridOptions.sendToClipboard},e.prototype.getProcessRowPostCreateFunc=function(){return this.gridOptions.processRowPostCreate},e.prototype.getProcessCellForClipboardFunc=function(){return this.gridOptions.processCellForClipboard},e.prototype.getProcessHeaderForClipboardFunc=function(){return this.gridOptions.processHeaderForClipboard},e.prototype.getProcessCellFromClipboardFunc=function(){return this.gridOptions.processCellFromClipboard},e.prototype.getViewportRowModelPageSize=function(){return e=this.gridOptions.viewportRowModelPageSize,t=5,e>0?e:t;var e,t},e.prototype.getViewportRowModelBufferSize=function(){return e=this.gridOptions.viewportRowModelBufferSize,t=5,e>=0?e:t;var e,t},e.prototype.isServerSideSortingAlwaysResets=function(){return w(this.gridOptions.serverSideSortingAlwaysResets)},e.prototype.getPostSortFunc=function(){return this.gridOptions.postSort},e.prototype.getProcessChartOptionsFunc=function(){return this.gridOptions.processChartOptions},e.prototype.getClipboardDeliminator=function(){return s._.exists(this.gridOptions.clipboardDeliminator)?this.gridOptions.clipboardDeliminator:"\t"},e.prototype.setProperty=function(e,t){var o=this.gridOptions,i=o[e];if(i!==t){o[e]=t;var r={type:e,currentValue:t,previousValue:i};this.propertyEventService.dispatchEvent(r)}},e.prototype.addLayoutElement=function(e){this.layoutElements.push(e),this.updateLayoutClasses()},e.prototype.updateLayoutClasses=function(){var e=this.getDomLayout(),t=e===l.Constants.DOM_LAYOUT_AUTO_HEIGHT,o=e===l.Constants.DOM_LAYOUT_PRINT,i=e===l.Constants.DOM_LAYOUT_NORMAL;this.layoutElements.forEach((function(e){s._.addOrRemoveCssClass(e,"ag-layout-auto-height",t),s._.addOrRemoveCssClass(e,"ag-layout-normal",i),s._.addOrRemoveCssClass(e,"ag-layout-print",o)}))},e.prototype.addEventListener=function(e,o){t.checkEventDeprecation(e),this.propertyEventService.addEventListener(e,o)},e.checkEventDeprecation=function(e){"floatingRowDataChanged"===e&&console.warn("ag-Grid: floatingRowDataChanged is now called pinnedRowDataChanged")},e.prototype.removeEventListener=function(e,t){this.propertyEventService.removeEventListener(e,t)},e.prototype.getAutoSizePadding=function(){return this.gridOptions.autoSizePadding&&this.gridOptions.autoSizePadding>0?this.gridOptions.autoSizePadding:20},e.prototype.getHeaderHeight=function(){return"number"==typeof this.gridOptions.headerHeight?this.gridOptions.headerHeight:this.specialForNewMaterial(25,"headerHeight")},e.prototype.getFloatingFiltersHeight=function(){return"number"==typeof this.gridOptions.floatingFiltersHeight?this.gridOptions.floatingFiltersHeight:this.specialForNewMaterial(25,"headerHeight")},e.prototype.getGroupHeaderHeight=function(){return"number"==typeof this.gridOptions.groupHeaderHeight?this.gridOptions.groupHeaderHeight:this.getHeaderHeight()},e.prototype.getPivotHeaderHeight=function(){return"number"==typeof this.gridOptions.pivotHeaderHeight?this.gridOptions.pivotHeaderHeight:this.getHeaderHeight()},e.prototype.getPivotGroupHeaderHeight=function(){return"number"==typeof this.gridOptions.pivotGroupHeaderHeight?this.gridOptions.pivotGroupHeaderHeight:this.getGroupHeaderHeight()},e.prototype.isExternalFilterPresent=function(){return"function"==typeof this.gridOptions.isExternalFilterPresent&&this.gridOptions.isExternalFilterPresent()},e.prototype.doesExternalFilterPass=function(e){return"function"==typeof this.gridOptions.doesExternalFilterPass&&this.gridOptions.doesExternalFilterPass(e)},e.prototype.getDocument=function(){var e=null;return this.gridOptions.getDocument&&s._.exists(this.gridOptions.getDocument)&&(e=this.gridOptions.getDocument()),e&&s._.exists(e)?e:document},e.prototype.getMinColWidth=function(){return this.gridOptions.minColWidth&&this.gridOptions.minColWidth>t.MIN_COL_WIDTH?this.gridOptions.minColWidth:t.MIN_COL_WIDTH},e.prototype.getMaxColWidth=function(){return this.gridOptions.maxColWidth&&this.gridOptions.maxColWidth>t.MIN_COL_WIDTH?this.gridOptions.maxColWidth:null},e.prototype.getColWidth=function(){return"number"!=typeof this.gridOptions.colWidth||this.gridOptions.colWidth<t.MIN_COL_WIDTH?200:this.gridOptions.colWidth},e.prototype.getRowBuffer=function(){var e=this.gridOptions.rowBuffer;return"number"==typeof e?e<0&&(s._.doOnce((function(){return console.warn("ag-Grid: rowBuffer should not be negative")}),"warn rowBuffer negative"),this.gridOptions.rowBuffer=e=0):e=l.Constants.ROW_BUFFER_SIZE,e},e.prototype.getRowBufferInPixels=function(){return this.getRowBuffer()*this.getRowHeightAsNumber()},e.prototype.getScrollbarWidth=function(){if(null==this.scrollWidth){var e="number"==typeof this.gridOptions.scrollbarWidth&&this.gridOptions.scrollbarWidth>=0;this.scrollWidth=e?this.gridOptions.scrollbarWidth:s._.getScrollbarWidth()}return this.scrollWidth},e.prototype.checkForDeprecated=function(){var e=this,t=this.gridOptions;t.suppressUnSort&&console.warn("ag-grid: as of v1.12.4 suppressUnSort is not used. Please use sortingOrder instead."),t.suppressDescSort&&console.warn("ag-grid: as of v1.12.4 suppressDescSort is not used. Please use sortingOrder instead."),t.groupAggFields&&console.warn("ag-grid: as of v3 groupAggFields is not used. Please add appropriate agg fields to your columns."),t.groupHidePivotColumns&&console.warn("ag-grid: as of v3 groupHidePivotColumns is not used as pivot columns are now called rowGroup columns. Please refer to the documentation"),t.groupKeys&&console.warn("ag-grid: as of v3 groupKeys is not used. You need to set rowGroupIndex on the columns to group. Please refer to the documentation"),"boolean"==typeof t.groupDefaultExpanded&&console.warn("ag-grid: groupDefaultExpanded can no longer be boolean. for groupDefaultExpanded=true, use groupDefaultExpanded=9999 instead, to expand all the groups"),(t.onRowDeselected||t.rowDeselected)&&console.warn("ag-grid: since version 3.4 event rowDeselected no longer exists, please check the docs"),t.rowsAlreadyGrouped&&console.warn("ag-grid: since version 3.4 rowsAlreadyGrouped no longer exists, please use getNodeChildDetails() instead"),t.groupAggFunction&&console.warn("ag-grid: since version 4.3.x groupAggFunction is now called groupRowAggNodes"),t.checkboxSelection&&console.warn("ag-grid: since version 8.0.x checkboxSelection is not supported as a grid option. If you want this on all columns, use defaultColDef instead and set it there"),t.paginationInitialRowCount&&console.warn("ag-grid: since version 9.0.x paginationInitialRowCount is now called infiniteInitialRowCount"),t.infinitePageSize&&console.warn("ag-grid: since version 9.0.x infinitePageSize is now called cacheBlockSize"),t.infiniteBlockSize&&console.warn("ag-grid: since version 10.0.x infiniteBlockSize is now called cacheBlockSize"),t.maxPagesInCache&&console.warn("ag-grid: since version 10.0.x maxPagesInCache is now called maxBlocksInCache"),t.paginationOverflowSize&&console.warn("ag-grid: since version 10.0.x paginationOverflowSize is now called cacheOverflowSize"),t.suppressMenuFilterPanel&&console.warn("ag-grid: since version 11.0.x, use property colDef.menuTabs=['generalMenuTab','columnsMenuTab'] instead of suppressMenuFilterPanel=true"),t.suppressMenuMainPanel&&console.warn("ag-grid: since version 11.0.x, use property colDef.menuTabs=['filterMenuTab','columnsMenuTab'] instead of suppressMenuMainPanel=true"),t.suppressMenuColumnPanel&&console.warn("ag-grid: since version 11.0.x, use property colDef.menuTabs=['generalMenuTab','filterMenuTab'] instead of suppressMenuColumnPanel=true"),t.suppressUseColIdForGroups&&console.warn("ag-grid: since version 11.0.x, this is not in use anymore. You should be able to remove it from your definition"),t.groupSuppressRow&&console.warn("ag-grid: since version 18.2.x, 'groupSuppressRow' should not be used anymore. Instead remove row groups and perform custom sorting."),t.groupColumnDef&&console.warn("ag-grid: since version 11.0.x, groupColumnDef has been renamed, this property is now called autoGroupColumnDef. Please change your configuration accordingly"),t.slaveGrids&&console.warn("ag-grid: since version 12.x, slaveGrids has been renamed, this property is now called alignedGrids. Please change your configuration accordingly"),t.floatingTopRowData&&console.warn("ag-grid: since version 12.x, floatingTopRowData is now called pinnedTopRowData"),t.floatingBottomRowData&&console.warn("ag-grid: since version 12.x, floatingBottomRowData is now called pinnedBottomRowData"),t.paginationStartPage&&console.warn("ag-grid: since version 12.x, paginationStartPage is gone, please call api.paginationGoToPage("+t.paginationStartPage+") instead."),t.getHeaderCellTemplate&&console.warn("ag-grid: since version 15.x, getHeaderCellTemplate is gone, please check the header documentation on how to set header templates."),t.headerCellTemplate&&console.warn("ag-grid: since version 15.x, headerCellTemplate is gone, please check the header documentation on how to set header templates."),t.headerCellRenderer&&console.warn("ag-grid: since version 15.x, headerCellRenderer is gone, please check the header documentation on how to set header templates."),t.angularCompileHeaders&&console.warn("ag-grid: since version 15.x, angularCompileHeaders is gone, please see the getting started for Angular 1 docs to see how to do headers in Angular 1.x."),t.pivotTotals&&(console.warn("ag-grid: since version 18.x, pivotTotals has been removed, instead if using pivotTotals, set pivotColumnGroupTotals='before'|'after'."),t.pivotColumnGroupTotals="before"),"inMemory"===t.rowModelType&&(console.warn("ag-grid: since version 18.x, The In Memory Row Model has been renamed to the Client Side Row Model, set rowModelType='clientSide' instead."),t.rowModelType="clientSide"),"enterprise"===t.rowModelType&&(console.warn("ag-grid: since version 18.x, The Enterprise Row Model has been renamed to the Server Side Row Model, set rowModelType='serverSide' instead."),t.rowModelType="serverSide"),t.layoutInterval&&console.warn("ag-grid: since version 18.x, layoutInterval is no longer a property. This is because the grid now uses CSS Flex for layout."),t.gridAutoHeight&&(console.warn("ag-grid: since version 19.x, gridAutoHeight is gone, please use domLayout=autoHeight instead"),t.domLayout="autoHeight"),!0===t.showToolPanel&&(console.warn("ag-grid: since version 19.x, showToolPanel is gone, please specify toolPanel components. See https://www.ag-grid.com/javascript-grid-tool-panel/"),t.showToolPanel=void 0,t.sideBar=t.sideBar||!0),!1===t.showToolPanel&&(console.warn("ag-grid: since version 19.x, showToolPanel is gone, please specify toolPanel components. See https://www.ag-grid.com/javascript-grid-tool-panel/"),t.showToolPanel=void 0,t.sideBar=t.sideBar||!1);var o={toolPanelSuppressRowGroups:"suppressRowGroups",toolPanelSuppressValues:"suppressValues",toolPanelSuppressPivots:"suppressPivots",toolPanelSuppressPivotMode:"suppressPivotMode",toolPanelSuppressColumnFilter:"suppressColumnFilter",toolPanelSuppressColumnSelectAll:"suppressColumnSelectAll",toolPanelSuppressSideButtons:"suppressSideButtons",toolPanelSuppressColumnExpandAll:"suppressColumnExpandAll",contractColumnSelection:"contractColumnSelection"},i={};Object.keys(o).forEach((function(t){var r=o[t],n=e.gridOptions[t];if(void 0!==n){if("toolPanelSuppressSideButtons"===t)return void console.warn("ag-grid: since v19.0 toolPanelSuppressSideButtons has been completely removed. See https://www.ag-grid.com/javascript-grid-tool-panel/");console.warn("ag-grid: since v19.0 gridOptions."+t+" is deprecated, please use gridOptions.sideBar.toolPanel[columnsIndex].componentParams."+r),i[r]=n}})),Object.keys(i).length>0&&!s._.exists(t.sideBar)&&(console.warn("ag-grid: since version 19.x, sideBar is mandatory if using toolPanel related properties. See https://www.ag-grid.com/javascript-grid-tool-panel/"),t.sideBar=!0),null!=t.sideBar&&(t.sideBar=C.SideBarDefParser.parse(t.sideBar));var r=this.gridOptions.sideBar;if(Object.keys(i).length>0&&r&&r.toolPanels){var n=r.toolPanels.filter((function(e){return"columns"===e.id}));1===n.length&&s._.mergeDeep(n[0],{componentParams:i})}t.enableStatusBar&&(console.warn("ag-grid: since version 19.x, enableStatusBar is gone, please specify statusBar components"),t.statusBar=t.statusBar||{components:[{component:"agAggregationComponent"}]}),t.alwaysShowStatusBar&&console.warn("ag-grid: since version 19.x, alwaysShowStatusBar is gone. Please specify a min-height on the ag-status-bar css class, eg .ag-status-bar {min-height: 35px; }"),(t.enableServerSideSorting||t.enableSorting)&&(console.warn("ag-Grid: since v20, grid options enableSorting and enableServerSideSorting are gone. Instead set sortable=true on the column definition for the columns sorting are allowed on. To migrate from gridOption.enableSorting=true, set gridOptions.defaultColDef.sortable=true"),t.defaultColDef||(t.defaultColDef={}),t.defaultColDef.sortable||(t.defaultColDef.sortable=!0)),(t.enableFilter||t.enableServerSideFilter)&&(console.warn("ag-Grid: since v20, grid options enableFilter and enableServerSideFilter are gone. Instead set filter=true (if not already specifying a specific filter) on the column definition for the columns filtering is allowed on. To migrate from gridOptions.enableFilter=true, set gridOptions.defaultColDef.filter=true. If you are explicitly setting specific filters for each column (ie colDef.filter is already set) the you don't need to do anything."),t.defaultColDef||(t.defaultColDef={}),t.defaultColDef.filter||(t.defaultColDef.filter=!0)),t.enableColResize&&(console.warn("ag-Grid: since v20, grid options enableColResize is gone. Instead set resizable=true on the column definition for the columns resizing are allowed on. To migrate from gridOption.enableColResize=true, set gridOptions.defaultColDef.resizable=true"),t.defaultColDef||(t.defaultColDef={}),t.defaultColDef.resizable||(t.defaultColDef.resizable=!0)),t.deprecatedEmbedFullWidthRows&&console.warn("ag-Grid: since v21.2, deprecatedEmbedFullWidthRows has been replaced with embedFullWidthRows."),t.suppressTabbing&&console.warn("ag-Grid: since v20.1, suppressTabbing is replaced with the more powerful grid callback suppressKeyboardEvent(params) which can suppress any keyboard event including tabbing."),t.doesDataFlower&&console.warn("ag-Grid: since v21.1, doesDataFlower is deprecated. Master/Detail is the new way for showing child data for a row and was introduced over a year ago. Please migrate your code to use master/detail instead.")},e.prototype.checkForViolations=function(){this.isTreeData()&&this.treeDataViolations()},e.prototype.treeDataViolations=function(){this.isRowModelDefault()&&s._.missing(this.getDataPathFunc())&&console.warn("ag-Grid: property usingTreeData=true with rowModel=clientSide, but you did not provide getDataPath function, please provide getDataPath function if using tree data."),this.isRowModelServerSide()&&(s._.missing(this.getIsServerSideGroupFunc())&&console.warn("ag-Grid: property usingTreeData=true with rowModel=serverSide, but you did not provide isServerSideGroup function, please provide isServerSideGroup function if using tree data."),s._.missing(this.getServerSideGroupKeyFunc())&&console.warn("ag-Grid: property usingTreeData=true with rowModel=serverSide, but you did not provide getServerSideGroupKey function, please provide getServerSideGroupKey function if using tree data."))},e.prototype.getLocaleTextFunc=function(){if(this.gridOptions.localeTextFunc)return this.gridOptions.localeTextFunc;var e=this;return function(t,o){var i=e.gridOptions.localeText;return i&&i[t]?i[t]:o}},e.prototype.globalEventHandler=function(e,t){var o=p.ComponentUtil.getCallbackForEvent(e);"function"==typeof this.gridOptions[o]&&this.gridOptions[o](t)},e.prototype.getRowHeightAsNumber=function(){return!this.gridOptions.rowHeight||s._.missing(this.gridOptions.rowHeight)?this.getDefaultRowHeight():this.gridOptions.rowHeight&&this.isNumeric(this.gridOptions.rowHeight)?this.gridOptions.rowHeight:(console.warn("ag-Grid row height must be a number if not using standard row model"),this.getDefaultRowHeight())},e.prototype.getRowHeightForNode=function(e,t){if(void 0===t&&(t=!1),"function"==typeof this.gridOptions.getRowHeight){if(t)return{height:this.getDefaultRowHeight(),estimated:!0};var o={node:e,data:e.data,api:this.gridOptions.api,context:this.gridOptions.context};return{height:this.gridOptions.getRowHeight(o),estimated:!1}}if(e.detail&&this.isMasterDetail())return this.isNumeric(this.gridOptions.detailRowHeight)?{height:this.gridOptions.detailRowHeight,estimated:!1}:{height:300,estimated:!1};var i=this.getDefaultRowHeight(),r=this.gridOptions.rowHeight&&this.isNumeric(this.gridOptions.rowHeight)?this.gridOptions.rowHeight:i,n=Math.min(i,r);if(this.columnController.isAutoRowHeightActive()){if(t)return{height:r,estimated:!0};var s=this.autoHeightCalculator.getPreferredHeightForRow(e);return{height:Math.max(s,n),estimated:!1}}return{height:r,estimated:!1}},e.prototype.isDynamicRowHeight=function(){return"function"==typeof this.gridOptions.getRowHeight},e.prototype.getVirtualItemHeight=function(){return this.specialForNewMaterial(20,"virtualItemHeight")},e.prototype.isNumeric=function(e){return!isNaN(e)&&"number"==typeof e},e.prototype.specialForNewMaterial=function(e,t){var o=this.environment.getTheme().theme;return o&&0===o.indexOf("ag-theme")?this.environment.getSassVariable(o,t):e},e.prototype.getDefaultRowHeight=function(){return this.specialForNewMaterial(25,"rowHeight")},e.MIN_COL_WIDTH=10,e.PROP_HEADER_HEIGHT="headerHeight",e.PROP_GROUP_REMOVE_SINGLE_CHILDREN="groupRemoveSingleChildren",e.PROP_GROUP_REMOVE_LOWEST_SINGLE_CHILDREN="groupRemoveLowestSingleChildren",e.PROP_PIVOT_HEADER_HEIGHT="pivotHeaderHeight",e.PROP_SUPPRESS_CLIPBOARD_PASTE="suppressClipboardPaste",e.PROP_GROUP_HEADER_HEIGHT="groupHeaderHeight",e.PROP_PIVOT_GROUP_HEADER_HEIGHT="pivotGroupHeaderHeight",e.PROP_FLOATING_FILTERS_HEIGHT="floatingFiltersHeight",e.PROP_SUPPRESS_ROW_DRAG="suppressRowDrag",e.PROP_POPUP_PARENT="popupParent",e.PROP_DOM_LAYOUT="domLayout",i([c.Autowired("gridOptions"),r("design:type",Object)],e.prototype,"gridOptions",void 0),i([c.Autowired("columnController"),r("design:type",h.ColumnController)],e.prototype,"columnController",void 0),i([c.Autowired("eventService"),r("design:type",a.EventService)],e.prototype,"eventService",void 0),i([c.Autowired("enterprise"),r("design:type",Boolean)],e.prototype,"enterprise",void 0),i([c.Autowired("gridApi"),r("design:type",u.GridApi)],e.prototype,"gridApi",void 0),i([c.Autowired("columnApi"),r("design:type",d.ColumnApi)],e.prototype,"columnApi",void 0),i([c.Autowired("environment"),r("design:type",f.Environment)],e.prototype,"environment",void 0),i([c.Autowired("autoHeightCalculator"),r("design:type",m.AutoHeightCalculator)],e.prototype,"autoHeightCalculator",void 0),i([c.Autowired("context"),r("design:type",c.Context)],e.prototype,"context",void 0),i([n(0,c.Qualifier("gridApi")),n(1,c.Qualifier("columnApi")),r("design:type",Function),r("design:paramtypes",[u.GridApi,d.ColumnApi]),r("design:returntype",void 0)],e.prototype,"agWire",null),i([c.PreDestroy,r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],e.prototype,"destroy",null),i([c.PostConstruct,r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],e.prototype,"init",null),e=t=i([c.Bean("gridOptionsWrapper")],e)}();t.GridOptionsWrapper=_},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/var i=this&&this.__decorate||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},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},n=this&&this.__param||function(e,t){return function(o,i){t(o,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});var s=o(14),a=o(0),l=o(0),p=o(3),u=o(2),c=function(){function e(){this.allSyncListeners={},this.allAsyncListeners={},this.globalSyncListeners=[],this.globalAsyncListeners=[],this.asyncFunctionsQueue=[],this.scheduled=!1,this.firedEvents={}}var t;return t=e,e.prototype.setBeans=function(e,t,o){if(void 0===o&&(o=null),this.logger=e.create("EventService"),o){var i=t.useAsyncEvents();this.addGlobalListener(o,i)}},e.prototype.getListenerList=function(e,t){var o=t?this.allAsyncListeners:this.allSyncListeners,i=o[e];return i||(i=[],o[e]=i),i},e.prototype.addEventListener=function(e,t,o){void 0===o&&(o=!1);var i=this.getListenerList(e,o);i.indexOf(t)<0&&i.push(t)},e.prototype.addModalPriorityEventListener=function(e,o,i){void 0===i&&(i=!1),this.addEventListener(e+t.PRIORITY,o,i)},e.prototype.addGlobalListener=function(e,t){void 0===t&&(t=!1),t?this.globalAsyncListeners.push(e):this.globalSyncListeners.push(e)},e.prototype.removeEventListener=function(e,t,o){void 0===o&&(o=!1);var i=this.getListenerList(e,o);u._.removeFromArray(i,t)},e.prototype.removeGlobalListener=function(e,t){void 0===t&&(t=!1),t?u._.removeFromArray(this.globalAsyncListeners,e):u._.removeFromArray(this.globalSyncListeners,e)},e.prototype.dispatchEvent=function(e){this.dispatchToListeners(e,!0),this.dispatchToListeners(e,!1),this.firedEvents[e.type]=!0},e.prototype.dispatchEventOnce=function(e){this.firedEvents[e.type]||this.dispatchEvent(e)},e.prototype.dispatchToListeners=function(e,o){var i=this,r=o?this.globalAsyncListeners:this.globalSyncListeners,n=e.type,s=this.getListenerList(n+t.PRIORITY,o);u._.forEachSnapshotFirst(s,(function(t){o?i.dispatchAsync((function(){return t(e)})):t(e)}));var a=this.getListenerList(n,o);u._.forEachSnapshotFirst(a,(function(t){o?i.dispatchAsync((function(){return t(e)})):t(e)})),u._.forEachSnapshotFirst(r,(function(t){o?i.dispatchAsync((function(){return t(n,e)})):t(n,e)}))},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()}))},e.PRIORITY="-P1",i([n(0,l.Qualifier("loggerFactory")),n(1,l.Qualifier("gridOptionsWrapper")),n(2,l.Qualifier("globalEventListener")),r("design:type",Function),r("design:paramtypes",[s.LoggerFactory,p.GridOptionsWrapper,Function]),r("design:returntype",void 0)],e.prototype,"setBeans",null),e=t=i([a.Bean("eventService")],e)}();t.EventService=c},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/var i=this&&this.__decorate||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},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},n=this&&this.__param||function(e,t){return function(o,i){t(o,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});var s=o(36),a=o(12),l=o(3),p=o(25),u=o(57),c=o(84),d=o(58),h=o(4),f=o(44),g=o(14),y=o(6),v=o(45),m=o(147),C=o(0),w=o(86),_=o(189),b=o(46),E=o(9),R=o(10),P=o(2),O=function(){function e(){this.primaryHeaderRowCount=0,this.secondaryHeaderRowCount=0,this.secondaryColumnsPresent=!1,this.gridHeaderRowCount=0,this.displayedLeftColumns=[],this.displayedRightColumns=[],this.displayedCenterColumns=[],this.allDisplayedColumns=[],this.allDisplayedVirtualColumns=[],this.allDisplayedCenterVirtualColumns=[],this.rowGroupColumns=[],this.valueColumns=[],this.pivotColumns=[],this.ready=!1,this.autoGroupsNeedBuilding=!1,this.pivotMode=!1,this.bodyWidth=0,this.leftWidth=0,this.rightWidth=0,this.bodyWidthDirty=!0}return e.prototype.init=function(){var e=this.gridOptionsWrapper.isPivotMode();this.suppressColumnVirtualisation=this.gridOptionsWrapper.isSuppressColumnVirtualisation(),this.isPivotSettingAllowed(e)&&(this.pivotMode=e),this.usingTreeData=this.gridOptionsWrapper.isTreeData()},e.prototype.setColumnDefs=function(e,t){void 0===t&&(t="api");var o=!!this.columnDefs;this.columnDefs=e,this.valueCache.expire(),this.autoGroupsNeedBuilding=!0;var i=this.primaryColumns,r=this.columnFactory.createColumnTree(e,!0,i);this.primaryColumnTree=r.columnTree,this.primaryHeaderRowCount=r.treeDept+1,this.primaryColumns=this.getColumnsFromTree(this.primaryColumnTree),this.extractRowGroupColumns(t,i),this.extractPivotColumns(t,i),this.createValueColumns(t,i),this.ready=!0,this.updateGridColumns(),this.updateDisplayedColumns(t),this.checkDisplayedVirtualColumns(),this.gridOptionsWrapper.isDeltaColumnMode()&&o&&this.resetColumnState(!0,t);var n={type:y.Events.EVENT_COLUMN_EVERYTHING_CHANGED,api:this.gridApi,columnApi:this.columnApi,source:t};this.eventService.dispatchEvent(n);var s={type:y.Events.EVENT_NEW_COLUMNS_LOADED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(s)},e.prototype.isAutoRowHeightActive=function(){return this.autoRowHeightColumns&&this.autoRowHeightColumns.length>0},e.prototype.getAllAutoRowHeightCols=function(){return this.autoRowHeightColumns},e.prototype.setVirtualViewportLeftAndRight=function(){this.gridOptionsWrapper.isEnableRtl()?(this.viewportLeft=this.bodyWidth-this.scrollPosition-this.scrollWidth,this.viewportRight=this.bodyWidth-this.scrollPosition):(this.viewportLeft=this.scrollPosition,this.viewportRight=this.scrollWidth+this.scrollPosition)},e.prototype.getDisplayedColumnsStartingAt=function(e){for(var t=e,o=[];t&&P._.exists(t);)o.push(t),t=this.getDisplayedColAfter(t);return o},e.prototype.checkDisplayedVirtualColumns=function(){if(P._.exists(this.displayedCenterColumns)){var e=this.allDisplayedVirtualColumns.map((function(e){return e.getId()})).join("#");if(this.updateVirtualSets(),e!==this.allDisplayedVirtualColumns.map((function(e){return e.getId()})).join("#")){var t={type:y.Events.EVENT_VIRTUAL_COLUMNS_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(t)}}},e.prototype.setVirtualViewportPosition=function(e,t){(e!==this.scrollWidth||t!==this.scrollPosition||this.bodyWidthDirty)&&(this.scrollWidth=e,this.scrollPosition=t,this.bodyWidthDirty=!0,this.setVirtualViewportLeftAndRight(),this.ready&&this.checkDisplayedVirtualColumns())},e.prototype.isPivotMode=function(){return this.pivotMode},e.prototype.isPivotSettingAllowed=function(e){return!e||(!this.gridOptionsWrapper.isTreeData()||(console.warn("ag-Grid: Pivot mode not available in conjunction Tree Data i.e. 'gridOptions.treeData: true'"),!1))},e.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:y.Events.EVENT_COLUMN_PIVOT_MODE_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(o)}},e.prototype.getSecondaryPivotColumn=function(e,t){if(!this.secondaryColumnsPresent)return null;var o=this.getPrimaryColumn(t),i=null;return this.secondaryColumns&&this.secondaryColumns.forEach((function(t){var r=t.getColDef().pivotKeys,n=t.getColDef().pivotValueColumn;P._.compareArrays(r,e)&&n===o&&(i=t)})),i},e.prototype.setBeans=function(e){this.logger=e.create("ColumnController")},e.prototype.setFirstRightAndLastLeftPinned=function(e){var t,o;this.gridOptionsWrapper.isEnableRtl()?(t=this.displayedLeftColumns?this.displayedLeftColumns[0]:null,o=this.displayedRightColumns?P._.last(this.displayedRightColumns):null):(t=this.displayedLeftColumns?P._.last(this.displayedLeftColumns):null,o=this.displayedRightColumns?this.displayedRightColumns[0]:null),this.gridColumns.forEach((function(i){i.setLastLeftPinned(i===t,e),i.setFirstRightPinned(i===o,e)}))},e.prototype.autoSizeColumns=function(e,t){var o=this;void 0===t&&(t="api");for(var i=[],r=-1;0!==r;)r=0,this.actionOnGridColumns(e,(function(e){if(i.indexOf(e)>=0)return!1;var n=o.autoWidthCalculator.getPreferredWidthForColumn(e);if(n>0){var s=o.normaliseColumnWidth(e,n);e.setActualWidth(s,t),i.push(e),r++}return!0}),t);if(i.length>0){var n={type:y.Events.EVENT_COLUMN_RESIZED,columns:i,column:1===i.length?i[0]:null,finished:!0,api:this.gridApi,columnApi:this.columnApi,source:"autosizeColumns"};this.eventService.dispatchEvent(n)}},e.prototype.autoSizeColumn=function(e,t){void 0===t&&(t="api"),e&&this.autoSizeColumns([e],t)},e.prototype.autoSizeAllColumns=function(e){void 0===e&&(e="api");var t=this.getAllDisplayedColumns();this.autoSizeColumns(t,e)},e.prototype.getColumnsFromTree=function(e){var t=[];return function e(o){for(var i=0;i<o.length;i++){var r=o[i];r instanceof a.Column?t.push(r):r instanceof v.OriginalColumnGroup&&e(r.getChildren())}}(e),t},e.prototype.getAllDisplayedColumnGroups=function(){return this.displayedLeftColumnTree&&this.displayedRightColumnTree&&this.displayedCentreColumnTree?this.displayedLeftColumnTree.concat(this.displayedCentreColumnTree).concat(this.displayedRightColumnTree):null},e.prototype.getPrimaryColumnTree=function(){return this.primaryColumnTree},e.prototype.getHeaderRowCount=function(){return this.gridHeaderRowCount},e.prototype.getLeftDisplayedColumnGroups=function(){return this.displayedLeftColumnTree},e.prototype.getRightDisplayedColumnGroups=function(){return this.displayedRightColumnTree},e.prototype.getCenterDisplayedColumnGroups=function(){return this.displayedCentreColumnTree},e.prototype.getDisplayedColumnGroups=function(e){switch(e){case a.Column.PINNED_LEFT:return this.getLeftDisplayedColumnGroups();case a.Column.PINNED_RIGHT:return this.getRightDisplayedColumnGroups();default:return this.getCenterDisplayedColumnGroups()}},e.prototype.isColumnDisplayed=function(e){return this.getAllDisplayedColumns().indexOf(e)>=0},e.prototype.getAllDisplayedColumns=function(){return this.allDisplayedColumns},e.prototype.getAllDisplayedVirtualColumns=function(){return this.allDisplayedVirtualColumns},e.prototype.getDisplayedLeftColumnsForRow=function(e){return this.colSpanActive?this.getDisplayedColumnsForRow(e,this.displayedLeftColumns):this.displayedLeftColumns},e.prototype.getDisplayedRightColumnsForRow=function(e){return this.colSpanActive?this.getDisplayedColumnsForRow(e,this.displayedRightColumns):this.displayedRightColumns},e.prototype.getDisplayedColumnsForRow=function(e,t,o,i){for(var r,n=[],s=null,a=function(a){var l,p=t[a],u=t.length-a,c=Math.min(p.getColSpan(e),u),d=[p];if(c>1){for(var h=c-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(p)&&n.push(s);n.push(p)}s=p,r=a},l=0;l<t.length;l++)a(l),l=r;return n},e.prototype.getAllDisplayedCenterVirtualColumnsForRow=function(e){var t=this;if(!this.colSpanActive)return this.allDisplayedCenterVirtualColumns;var o=this.suppressColumnVirtualisation?null:this.isColumnInViewport.bind(this);return this.getDisplayedColumnsForRow(e,this.displayedCenterColumns,o,(function(e){return e.getLeft()>t.viewportLeft}))},e.prototype.isColumnInViewport=function(e){var t=e.getLeft(),o=e.getLeft()+e.getActualWidth(),i=this.viewportLeft-200,r=this.viewportRight+200;return!(t<i&&o<i)&&!(t>r&&o>r)},e.prototype.getPinnedLeftContainerWidth=function(){return this.getWidthOfColsInList(this.displayedLeftColumns)},e.prototype.getPinnedRightContainerWidth=function(){return this.getWidthOfColsInList(this.displayedRightColumns)},e.prototype.updatePrimaryColumnList=function(e,t,o,i,r,n){var s=this;if(void 0===n&&(n="api"),e&&!P._.missingOrEmpty(e)){var a=!1;if(e.forEach((function(e){var r=s.getPrimaryColumn(e);if(r){if(o){if(t.indexOf(r)>=0)return;t.push(r)}else{if(t.indexOf(r)<0)return;P._.removeFromArray(t,r)}i(r),a=!0}})),a){this.autoGroupsNeedBuilding&&this.updateGridColumns(),this.updateDisplayedColumns(n);var l={type:r,columns:t,column:1===t.length?t[0]:null,api:this.gridApi,columnApi:this.columnApi,source:n};this.eventService.dispatchEvent(l)}}},e.prototype.setRowGroupColumns=function(e,t){void 0===t&&(t="api"),this.autoGroupsNeedBuilding=!0,this.setPrimaryColumnList(e,this.rowGroupColumns,y.Events.EVENT_COLUMN_ROW_GROUP_CHANGED,this.setRowGroupActive.bind(this),t)},e.prototype.setRowGroupActive=function(e,t,o){e!==t.isRowGroupActive()&&(t.setRowGroupActive(e,o),e||this.gridOptionsWrapper.isSuppressMakeColumnVisibleAfterUnGroup()||t.setVisible(!0,o))},e.prototype.addRowGroupColumn=function(e,t){void 0===t&&(t="api"),e&&this.addRowGroupColumns([e],t)},e.prototype.addRowGroupColumns=function(e,t){void 0===t&&(t="api"),this.autoGroupsNeedBuilding=!0,this.updatePrimaryColumnList(e,this.rowGroupColumns,!0,this.setRowGroupActive.bind(this,!0),y.Events.EVENT_COLUMN_ROW_GROUP_CHANGED,t)},e.prototype.removeRowGroupColumns=function(e,t){void 0===t&&(t="api"),this.autoGroupsNeedBuilding=!0,this.updatePrimaryColumnList(e,this.rowGroupColumns,!1,this.setRowGroupActive.bind(this,!1),y.Events.EVENT_COLUMN_ROW_GROUP_CHANGED,t)},e.prototype.removeRowGroupColumn=function(e,t){void 0===t&&(t="api"),e&&this.removeRowGroupColumns([e],t)},e.prototype.addPivotColumns=function(e,t){void 0===t&&(t="api"),this.updatePrimaryColumnList(e,this.pivotColumns,!0,(function(e){return e.setPivotActive(!0,t)}),y.Events.EVENT_COLUMN_PIVOT_CHANGED,t)},e.prototype.setPivotColumns=function(e,t){void 0===t&&(t="api"),this.setPrimaryColumnList(e,this.pivotColumns,y.Events.EVENT_COLUMN_PIVOT_CHANGED,(function(e,o){o.setPivotActive(e,t)}),t)},e.prototype.addPivotColumn=function(e,t){void 0===t&&(t="api"),this.addPivotColumns([e],t)},e.prototype.removePivotColumns=function(e,t){void 0===t&&(t="api"),this.updatePrimaryColumnList(e,this.pivotColumns,!1,(function(e){return e.setPivotActive(!1,t)}),y.Events.EVENT_COLUMN_PIVOT_CHANGED,t)},e.prototype.removePivotColumn=function(e,t){void 0===t&&(t="api"),this.removePivotColumns([e],t)},e.prototype.setPrimaryColumnList=function(e,t,o,i,r){var n=this;t.length=0,P._.exists(e)&&e.forEach((function(e){var o=n.getPrimaryColumn(e);o&&t.push(o)})),this.primaryColumns.forEach((function(e){var o=t.indexOf(e)>=0;i(o,e)})),this.autoGroupsNeedBuilding&&this.updateGridColumns(),this.updateDisplayedColumns(r);var s={type:o,columns:t,column:1===t.length?t[0]:null,api:this.gridApi,columnApi:this.columnApi,source:r};this.eventService.dispatchEvent(s)},e.prototype.setValueColumns=function(e,t){void 0===t&&(t="api"),this.setPrimaryColumnList(e,this.valueColumns,y.Events.EVENT_COLUMN_VALUE_CHANGED,this.setValueActive.bind(this),t)},e.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)}},e.prototype.addValueColumns=function(e,t){void 0===t&&(t="api"),this.updatePrimaryColumnList(e,this.valueColumns,!0,this.setValueActive.bind(this,!0),y.Events.EVENT_COLUMN_VALUE_CHANGED,t)},e.prototype.addValueColumn=function(e,t){void 0===t&&(t="api"),e&&this.addValueColumns([e],t)},e.prototype.removeValueColumn=function(e,t){void 0===t&&(t="api"),this.removeValueColumns([e],t)},e.prototype.removeValueColumns=function(e,t){void 0===t&&(t="api"),this.updatePrimaryColumnList(e,this.valueColumns,!1,this.setValueActive.bind(this,!1),y.Events.EVENT_COLUMN_VALUE_CHANGED,t)},e.prototype.normaliseColumnWidth=function(e,t){return t<e.getMinWidth()&&(t=e.getMinWidth()),e.isGreaterThanMax(t)&&(t=e.getMaxWidth()),t},e.prototype.getPrimaryOrGridColumn=function(e){var t=this.getPrimaryColumn(e);return t||this.getGridColumn(e)},e.prototype.setColumnWidth=function(e,t,o,i,r){void 0===r&&(r="api");var n=this.getPrimaryOrGridColumn(e);if(n){var s=[];if(s.push({width:t,ratios:[1],columns:[n]}),"shift"===this.gridOptionsWrapper.getColResizeDefault()&&(o=!o),o){var a=this.getDisplayedColAfter(n);if(!a)return;var l=n.getActualWidth()-t,p=a.getActualWidth()+l;s.push({width:p,ratios:[1],columns:[a]})}this.resizeColumnSets(s,i,r)}},e.prototype.checkMinAndMaxWidthsForSet=function(e){var t=e.columns,o=e.width,i=0,r=0,n=!0;return t.forEach((function(e){i+=e.getMinWidth(),e.getMaxWidth()>0?r+=e.getMaxWidth():n=!1})),o>=i&&(!n||o<=r)},e.prototype.resizeColumnSets=function(e,t,o){if(P._.every(e,this.checkMinAndMaxWidthsForSet.bind(this))){var i=[],r=[];e.forEach((function(e){var t=e.width,o=e.columns,n=e.ratios,s={},a={};o.forEach((function(e){return r.push(e)}));for(var l=!0,p=0,u=function(){if(++p>1e3)return console.error("ag-Grid: infinite loop in resizeColumnSets"),"break";l=!1;var e=[],i=[],r=0,u=t;o.forEach((function(t,o){if(a[t.getId()])u-=s[t.getId()];else{e.push(t);var l=n[o];r+=l,i.push(l)}}));var c=1/r;e.forEach((function(o,i){var r;i===e.length-1?r=u:(r=Math.round(n[i]*t*c),u-=r),r<o.getMinWidth()?(r=o.getMinWidth(),a[o.getId()]=!0,l=!0):o.getMaxWidth()>0&&r>o.getMaxWidth()&&(r=o.getMaxWidth(),a[o.getId()]=!0,l=!0),s[o.getId()]=r}))};l;){if("break"===u())break}o.forEach((function(e){var t=s[e.getId()];e.getActualWidth()!==t&&(e.setActualWidth(t),i.push(e))}))}));var n=i.length>0;if(n&&(this.setLeftValues(o),this.updateBodyWidths(),this.checkDisplayedVirtualColumns()),n||t){var s={type:y.Events.EVENT_COLUMN_RESIZED,columns:r,column:1===r.length?r[0]:null,finished:t,api:this.gridApi,columnApi:this.columnApi,source:o};this.eventService.dispatchEvent(s)}}else if(t){var a=e&&e.length>0?e[0].columns:null,l={type:y.Events.EVENT_COLUMN_RESIZED,columns:a,column:a&&1===a.length?a[0]:null,finished:t,api:this.gridApi,columnApi:this.columnApi,source:o};this.eventService.dispatchEvent(l)}},e.prototype.setColumnAggFunc=function(e,t,o){if(void 0===o&&(o="api"),e){e.setAggFunc(t);var i={type:y.Events.EVENT_COLUMN_VALUE_CHANGED,columns:[e],column:e,api:this.gridApi,columnApi:this.columnApi,source:o};this.eventService.dispatchEvent(i)}},e.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:y.Events.EVENT_COLUMN_ROW_GROUP_CHANGED,columns:this.rowGroupColumns,column:1===this.rowGroupColumns.length?this.rowGroupColumns[0]:null,api:this.gridApi,columnApi:this.columnApi,source:o};this.eventService.dispatchEvent(r)},e.prototype.moveColumns=function(e,t,o){if(void 0===o&&(o="api"),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 i=this.getGridColumns(e);if(!!this.doesMovePassRules(i,t)){P._.moveInArray(this.gridColumns,i,t),this.updateDisplayedColumns(o);var r={type:y.Events.EVENT_COLUMN_MOVED,columns:i,column:1===i.length?i[0]:null,toIndex:t,api:this.gridApi,columnApi:this.columnApi,source:o};this.eventService.dispatchEvent(r),this.columnAnimationService.finish()}},e.prototype.doesMovePassRules=function(e,t){var o=this.gridColumns.slice();return P._.moveInArray(o,e,t),!!this.doesMovePassMarryChildren(o)&&!!this.doesMovePassLockedPositions(o)},e.prototype.doesMovePassLockedPositions=function(e){var t=!1,o=!0;return e.forEach((function(e){e.getColDef().lockPosition?t&&(o=!1):t=!0})),o},e.prototype.doesMovePassMarryChildren=function(e){var t=!0;return this.columnUtils.depthFirstOriginalTreeSearch(null,this.gridBalancedTree,(function(o){if(o instanceof v.OriginalColumnGroup){var i=o;if(i.getColGroupDef()&&i.getColGroupDef().marryChildren){var r=[];i.getLeafColumns().forEach((function(t){var o=e.indexOf(t);r.push(o)})),Math.max.apply(Math,r)-Math.min.apply(Math,r)>i.getLeafColumns().length-1&&(t=!1)}}})),t},e.prototype.moveColumn=function(e,t,o){void 0===o&&(o="api"),this.moveColumns([e],t,o)},e.prototype.moveColumnByIndex=function(e,t,o){void 0===o&&(o="api");var i=this.gridColumns[e];this.moveColumn(i,t,o)},e.prototype.getBodyContainerWidth=function(){return this.bodyWidth},e.prototype.getContainerWidth=function(e){switch(e){case a.Column.PINNED_LEFT:return this.leftWidth;case a.Column.PINNED_RIGHT:return this.rightWidth;default:return this.bodyWidth}},e.prototype.updateBodyWidths=function(){var e=this.getWidthOfColsInList(this.displayedCenterColumns),t=this.getWidthOfColsInList(this.displayedLeftColumns),o=this.getWidthOfColsInList(this.displayedRightColumns);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:y.Events.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(i)}},e.prototype.getValueColumns=function(){return this.valueColumns?this.valueColumns:[]},e.prototype.getPivotColumns=function(){return this.pivotColumns?this.pivotColumns:[]},e.prototype.isPivotActive=function(){return this.pivotColumns&&this.pivotColumns.length>0&&this.pivotMode},e.prototype.getRowGroupColumns=function(){return this.rowGroupColumns?this.rowGroupColumns:[]},e.prototype.getDisplayedCenterColumns=function(){return this.displayedCenterColumns},e.prototype.getDisplayedLeftColumns=function(){return this.displayedLeftColumns},e.prototype.getDisplayedRightColumns=function(){return this.displayedRightColumns},e.prototype.getDisplayedColumns=function(e){switch(e){case a.Column.PINNED_LEFT:return this.getDisplayedLeftColumns();case a.Column.PINNED_RIGHT:return this.getDisplayedRightColumns();default:return this.getDisplayedCenterColumns()}},e.prototype.getAllPrimaryColumns=function(){return this.primaryColumns?this.primaryColumns.slice():null},e.prototype.getSecondaryColumns=function(){return this.secondaryColumns?this.secondaryColumns.slice():null},e.prototype.getAllColumnsForQuickFilter=function(){return this.columnsForQuickFilter},e.prototype.getAllGridColumns=function(){return this.gridColumns},e.prototype.isEmpty=function(){return P._.missingOrEmpty(this.gridColumns)},e.prototype.isRowGroupEmpty=function(){return P._.missingOrEmpty(this.rowGroupColumns)},e.prototype.setColumnVisible=function(e,t,o){void 0===o&&(o="api"),this.setColumnsVisible([e],t,o)},e.prototype.setColumnsVisible=function(e,t,o){var i=this;void 0===o&&(o="api"),this.columnAnimationService.start(),this.actionOnGridColumns(e,(function(e){return e.isVisible()!==t&&(e.setVisible(t,o),!0)}),o,(function(){return{type:y.Events.EVENT_COLUMN_VISIBLE,visible:t,column:null,columns:null,api:i.gridApi,columnApi:i.columnApi,source:o}})),this.columnAnimationService.finish()},e.prototype.setColumnPinned=function(e,t,o){void 0===o&&(o="api"),e&&this.setColumnsPinned([e],t,o)},e.prototype.setColumnsPinned=function(e,t,o){var i,r=this;(void 0===o&&(o="api"),"print"!==this.gridOptionsWrapper.getDomLayout())?(this.columnAnimationService.start(),i=!0===t||t===a.Column.PINNED_LEFT?a.Column.PINNED_LEFT:t===a.Column.PINNED_RIGHT?a.Column.PINNED_RIGHT:null,this.actionOnGridColumns(e,(function(e){return e.getPinned()!==i&&(e.setPinned(i),!0)}),o,(function(){return{type:y.Events.EVENT_COLUMN_PINNED,pinned:i,column:null,columns:null,api:r.gridApi,columnApi:r.columnApi,source:o}})),this.columnAnimationService.finish()):console.warn("Changing the column pinning status is not allowed with domLayout='print'")},e.prototype.actionOnGridColumns=function(e,t,o,i){var r=this;if(!P._.missingOrEmpty(e)){var n=[];if(e.forEach((function(e){var o=r.getGridColumn(e);o&&(!1!==t(o)&&n.push(o))})),0!==n.length&&(this.updateDisplayedColumns(o),P._.exists(i)&&i)){var s=i();s.columns=n,s.column=1===n.length?n[0]:null,this.eventService.dispatchEvent(s)}}},e.prototype.getDisplayedColBefore=function(e){var t=this.getAllDisplayedColumns(),o=t.indexOf(e);return o>0?t[o-1]:null},e.prototype.getDisplayedColAfter=function(e){var t=this.getAllDisplayedColumns(),o=t.indexOf(e);return o<t.length-1?t[o+1]:null},e.prototype.getDisplayedGroupAfter=function(e){for(var t=e.getDisplayedLeafColumns()[0],o=e.getOriginalColumnGroup().getLevel();;){if(!(t=this.getDisplayedColAfter(t)))return null;for(var i=t.getParent();i.getOriginalColumnGroup().getLevel()!==o;)i=i.getParent();if(i!==e)return i}},e.prototype.isPinningLeft=function(){return this.displayedLeftColumns.length>0},e.prototype.isPinningRight=function(){return this.displayedRightColumns.length>0},e.prototype.getPrimaryAndSecondaryAndAutoColumns=function(){var e=this.primaryColumns?this.primaryColumns.slice(0):[];return this.groupAutoColumns&&P._.exists(this.groupAutoColumns)&&this.groupAutoColumns.forEach((function(t){return e.push(t)})),this.secondaryColumnsPresent&&this.secondaryColumns&&this.secondaryColumns.forEach((function(t){return e.push(t)})),e},e.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;return{colId:e.getColId(),hide:!e.isVisible(),aggFunc:i,width:e.getActualWidth(),pivotIndex:o,pinned:e.getPinned(),rowGroupIndex:t}},e.prototype.getColumnState=function(){if(P._.missing(this.primaryColumns))return[];var e=this.primaryColumns.map(this.createStateItemFromColumn.bind(this)),t=(this.groupAutoColumns?this.groupAutoColumns.map(this.createStateItemFromColumn.bind(this)):[]).concat(e);return this.pivotMode||this.orderColumnStateList(t),t},e.prototype.orderColumnStateList=function(e){var t=this.gridColumns.map((function(e){return e.getColId()}));e.sort((function(e,o){return t.indexOf(e.colId)-t.indexOf(o.colId)}))},e.prototype.resetColumnState=function(e,t){void 0===e&&(e=!1),void 0===t&&(t="api");var o=this.getColumnsFromTree(this.primaryColumnTree),i=[],r=1e3,n=1e3;o&&o.forEach((function(e){var t=e.getColDef().rowGroupIndex,o=e.getColDef().rowGroup,s=e.getColDef().pivotIndex,a=e.getColDef().pivot,l={colId:e.getColId(),aggFunc:e.getColDef().aggFunc,hide:e.getColDef().hide,pinned:e.getColDef().pinned,rowGroupIndex:t,pivotIndex:e.getColDef().pivotIndex,width:e.getColDef().width};P._.missing(t)&&o&&(l.rowGroupIndex=r++),P._.missing(s)&&a&&(l.pivotIndex=n++),i.push(l)})),this.setColumnState(i,e,t)},e.prototype.setColumnState=function(e,t,o){var i=this;if(void 0===t&&(t=!1),void 0===o&&(o="api"),P._.missingOrEmpty(this.primaryColumns))return!1;var r=this.getColumnState();this.autoGroupsNeedBuilding=!0;var n=this.primaryColumns.slice();this.rowGroupColumns=[],this.valueColumns=[],this.pivotColumns=[];var s=!0,a={},l={},p=[];if(e&&e.forEach((function(e){if(P._.exists(i.getAutoColumn(e.colId)))p.push(e);else{var t=i.getPrimaryColumn(e.colId);t?(i.syncColumnWithStateItem(t,e,a,l,o),P._.removeFromArray(n,t)):(console.warn("ag-grid: column "+e.colId+" not found"),s=!1)}})),n.forEach(this.syncColumnWithNoState.bind(this)),this.rowGroupColumns.sort(this.sortColumnListUsingIndexes.bind(this,a)),this.pivotColumns.sort(this.sortColumnListUsingIndexes.bind(this,l)),this.updateGridColumns(),p.forEach((function(e){var t=i.getAutoColumn(e.colId);i.syncColumnWithStateItem(t,e,a,l,o)})),e){var u=e.map((function(e){return e.colId}));this.gridColumns.sort((function(e,t){return u.indexOf(e.getId())-u.indexOf(t.getId())}))}if(this.putFixedColumnsFirst(),this.updateDisplayedColumns(o),!t){var c={type:y.Events.EVENT_COLUMN_EVERYTHING_CHANGED,api:this.gridApi,columnApi:this.columnApi,source:o};this.eventService.dispatchEvent(c)}return this.raiseColumnEvents(r,o),s},e.prototype.raiseColumnEvents=function(e,t){var o=this;if(!this.gridOptionsWrapper.isSuppressSetColumnStateEvents()){var i=this.getColumnState(),r=function(r,n,s){if(!P._.compareArrays(e.map(n).sort(),i.map(n).sort())){var a={type:r,columns:s,column:1===s.length?s[0]:null,api:o.gridApi,columnApi:o.columnApi,source:t};o.eventService.dispatchEvent(a)}},n=function(t){var i=[],r={};return e.forEach((function(e){r[e.colId]=e})),o.gridColumns.forEach((function(e){var o=r[e.getColId()];o&&!t(o,e)||i.push(e)})),i};r(y.Events.EVENT_COLUMN_VALUE_CHANGED,(function(e){return e.colId+"-"+e.aggFunc}),this.valueColumns);r(y.Events.EVENT_COLUMN_PIVOT_CHANGED,(function(e){return e.colId+"-"+e.pivotIndex}),this.pivotColumns);r(y.Events.EVENT_COLUMN_ROW_GROUP_CHANGED,(function(e){return e.colId+"-"+e.rowGroupIndex}),this.rowGroupColumns);this.raiseColumnPinnedEvent(n((function(e,t){return e.pinned!==t.getPinned()})),t);var s=n((function(e,t){return e.hide===t.isVisible()}));this.raiseColumnVisibleEvent(s,t);this.raiseColumnResizeEvent(n((function(e,t){return e.width!==t.getActualWidth()})),t),this.raiseColumnMovedEvent(e,t)}},e.prototype.raiseColumnPinnedEvent=function(e,t){if(e.length>0){var o={type:y.Events.EVENT_COLUMN_PINNED,pinned:null,columns:e,column:null,api:this.gridApi,columnApi:this.columnApi,source:t};this.eventService.dispatchEvent(o)}},e.prototype.raiseColumnVisibleEvent=function(e,t){if(e.length>0){var o={type:y.Events.EVENT_COLUMN_VISIBLE,visible:void 0,columns:e,column:null,api:this.gridApi,columnApi:this.columnApi,source:t};this.eventService.dispatchEvent(o)}},e.prototype.raiseColumnResizeEvent=function(e,t){if(e.length>0){var o={type:y.Events.EVENT_COLUMN_RESIZED,columns:e,column:null,finished:!0,api:this.gridApi,columnApi:this.columnApi,source:t};this.eventService.dispatchEvent(o)}},e.prototype.raiseColumnMovedEvent=function(e,t){for(var o=[],i=this.getColumnState(),r=function(t){var r=e[t],s=i[t];if(!r||s.hide)return"continue";if(r.colId!==s.colId){var a=P._.find(n.allDisplayedColumns,(function(e){return e.getColId()===s.colId}));o.push(a)}},n=this,s=0;s<i.length;s++)r(s);if(o.length>0){var a={type:y.Events.EVENT_COLUMN_MOVED,columns:o,column:null,toIndex:void 0,api:this.gridApi,columnApi:this.columnApi,source:t};this.eventService.dispatchEvent(a)}},e.prototype.sortColumnListUsingIndexes=function(e,t,o){return e[t.getId()]-e[o.getId()]},e.prototype.syncColumnWithNoState=function(e,t){e.setVisible(!1,t),e.setAggFunc(null),e.setPinned(null),e.setRowGroupActive(!1,t),e.setPivotActive(!1,t),e.setValueActive(!1,t)},e.prototype.syncColumnWithStateItem=function(e,t,o,i,r){if(e){e.setVisible(!t.hide,r),e.setPinned(t.pinned);var n=this.gridOptionsWrapper.getMinColWidth();t.width&&n&&t.width>=n&&e.setActualWidth(t.width,r),"string"==typeof t.aggFunc?(e.setAggFunc(t.aggFunc),e.setValueActive(!0,r),this.valueColumns.push(e)):(P._.exists(t.aggFunc)&&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 isintended for the column state to be stored and retrieved as simple JSON."),e.setAggFunc(null),e.setValueActive(!1,r)),"number"==typeof t.rowGroupIndex?(this.rowGroupColumns.push(e),e.setRowGroupActive(!0,r),o[e.getId()]=t.rowGroupIndex):e.setRowGroupActive(!1,r),"number"==typeof t.pivotIndex?(this.pivotColumns.push(e),e.setPivotActive(!0,r),i[e.getId()]=t.pivotIndex):e.setPivotActive(!1,r)}},e.prototype.getGridColumns=function(e){return this.getColumns(e,this.getGridColumn.bind(this))},e.prototype.getColumns=function(e,t){var o=[];return e&&e.forEach((function(e){var i=t(e);i&&o.push(i)})),o},e.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},e.prototype.getPrimaryColumn=function(e){return this.getColumn(e,this.primaryColumns)},e.prototype.getGridColumn=function(e){return this.getColumn(e,this.gridColumns)},e.prototype.getColumn=function(e,t){if(!e)return null;for(var o=0;o<t.length;o++)if(this.columnsMatch(t[o],e))return t[o];return this.getAutoColumn(e)},e.prototype.getAutoColumn=function(e){var t=this;return this.groupAutoColumns&&P._.exists(this.groupAutoColumns)&&!P._.missing(this.groupAutoColumns)?P._.find(this.groupAutoColumns,(function(o){return t.columnsMatch(o,e)})):null},e.prototype.columnsMatch=function(e,t){var o=e===t,i=e.getColDef()===t,r=e.getColId()==t;return o||i||r},e.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},e.prototype.getDisplayNameForOriginalColumnGroup=function(e,t,o){var i=t?t.getColGroupDef():null;return i?this.getHeaderName(i,null,e,t,o):null},e.prototype.getDisplayNameForColumnGroup=function(e,t){return this.getDisplayNameForOriginalColumnGroup(e,e.getOriginalColumnGroup(),t)},e.prototype.getHeaderName=function(e,t,o,i,r){var n=e.headerValueGetter;if(n){var s={colDef:e,column:t,columnGroup:o,originalColumnGroup:i,location:r,api:this.gridOptionsWrapper.getApi(),context:this.gridOptionsWrapper.getContext()};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?P._.camelCaseToHumanText(e.field):""},e.prototype.wrapHeaderNameWithAggFunc=function(e,t){if(this.gridOptionsWrapper.isSuppressAggFuncInHeader())return t;var o,i=e.getColDef().pivotValueColumn,r=null;if(P._.exists(i))r=i?i.getAggFunc():null,o=!0;else{var n=e.isValueActive(),s=this.pivotMode||!this.isRowGroupEmpty();n&&s?(r=e.getAggFunc(),o=!0):o=!1}if(o){var a="string"==typeof r?r:"func";return this.gridOptionsWrapper.getLocaleTextFunc()(a,a)+"("+t+")"}return t},e.prototype.getColumnGroup=function(e,t){if(!e)return null;if(e instanceof s.ColumnGroup)return e;var o=this.getAllDisplayedColumnGroups(),i="number"==typeof t,r=null;return this.columnUtils.depthFirstAllColumnTreeSearch(o,(function(o){if(o instanceof s.ColumnGroup){var n=o;(i?e===n.getGroupId()&&t===n.getInstanceId():e===n.getGroupId())&&(r=n)}})),r},e.prototype.isReady=function(){return this.ready},e.prototype.createValueColumns=function(e,t){this.valueColumns=this.extractColumns(t,this.valueColumns,(function(t,o){return t.setValueActive(o,e)}),(function(){return null}),(function(e){return!!e.aggFunc})),this.valueColumns.forEach((function(e){e.getAggFunc()||e.setAggFunc(e.getColDef().aggFunc)}))},e.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.rowGroup}))},e.prototype.extractColumns=function(e,t,o,i,r){var n=this;t||(t=[]);var s=t.filter((function(e){return n.primaryColumns.indexOf(e)<0})),a=t.filter((function(e){return n.primaryColumns.indexOf(e)>=0})),l=this.primaryColumns.filter((function(t){return!e||e.indexOf(t)<0}));s.forEach((function(e){return o(e,!1)}));var p=[];return l.forEach((function(e){"number"==typeof i(e.getColDef())&&p.push(e)})),p.sort((function(e,t){var o=i(e.getColDef()),r=i(t.getColDef());return o===r?0:o<r?-1:1})),l.forEach((function(e){if(r(e.getColDef())){if(p.indexOf(e)>=0)return;p.push(e)}})),p.forEach((function(e){return o(e,!0)})),a.concat(p)},e.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.pivot}))},e.prototype.resetColumnGroupState=function(e){void 0===e&&(e="api");var t=[];this.columnUtils.depthFirstOriginalTreeSearch(null,this.primaryColumnTree,(function(e){if(e instanceof v.OriginalColumnGroup){var o={groupId:e.getGroupId(),open:e.getColGroupDef().openByDefault};t.push(o)}})),this.setColumnGroupState(t,e)},e.prototype.getColumnGroupState=function(){var e=[];return this.columnUtils.depthFirstOriginalTreeSearch(null,this.gridBalancedTree,(function(t){if(t instanceof v.OriginalColumnGroup){var o=t;e.push({groupId:o.getGroupId(),open:o.isExpanded()})}})),e},e.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.getOriginalColumnGroup(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:y.Events.EVENT_COLUMN_GROUP_OPENED,columnGroup:e,api:o.gridApi,columnApi:o.columnApi};o.eventService.dispatchEvent(t)})),this.columnAnimationService.finish()},e.prototype.setColumnGroupOpened=function(e,t,o){var i;void 0===o&&(o="api"),i=e instanceof v.OriginalColumnGroup?e.getId():e,this.setColumnGroupState([{groupId:i,open:t}],o)},e.prototype.getOriginalColumnGroup=function(e){if(e instanceof v.OriginalColumnGroup)return 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){if(o instanceof v.OriginalColumnGroup){var i=o;i.getId()===e&&(t=i)}})),t},e.prototype.calculateColumnsForDisplay=function(){var e=this;return this.pivotMode&&!this.secondaryColumnsPresent?P._.filter(this.gridColumns,(function(t){var o=e.groupAutoColumns&&e.groupAutoColumns.indexOf(t)>=0,i=e.valueColumns&&e.valueColumns.indexOf(t)>=0;return o||i})):P._.filter(this.gridColumns,(function(t){return e.groupAutoColumns&&e.groupAutoColumns.indexOf(t)>=0||t.isVisible()}))},e.prototype.checkColSpanActiveInCols=function(e){var t=!1;return e.forEach((function(e){P._.exists(e.getColDef().colSpan)&&(t=!0)})),t},e.prototype.calculateColumnsForGroupDisplay=function(){var e=this;this.groupDisplayColumns=[];var t=function(t){var o=t.getColDef();o&&P._.exists(o.showRowGroup)&&e.groupDisplayColumns.push(t)};this.gridColumns.forEach(t),this.groupAutoColumns&&this.groupAutoColumns.forEach(t)},e.prototype.getGroupDisplayColumns=function(){return this.groupDisplayColumns},e.prototype.updateDisplayedColumns=function(e){var t=this.calculateColumnsForDisplay();this.buildDisplayedTrees(t),this.calculateColumnsForGroupDisplay(),this.updateGroupsAndDisplayedColumns(e),this.setFirstRightAndLastLeftPinned(e)},e.prototype.isSecondaryColumnsPresent=function(){return this.secondaryColumnsPresent},e.prototype.setSecondaryColumns=function(e,t){void 0===t&&(t="api");var o=e&&e.length>0;if(o||this.secondaryColumnsPresent){if(o){this.processSecondaryColumnDefinitions(e);var i=this.columnFactory.createColumnTree(e,!1);this.secondaryBalancedTree=i.columnTree,this.secondaryHeaderRowCount=i.treeDept+1,this.secondaryColumns=this.getColumnsFromTree(this.secondaryBalancedTree),this.secondaryColumnsPresent=!0}else this.secondaryBalancedTree=null,this.secondaryHeaderRowCount=-1,this.secondaryColumns=null,this.secondaryColumnsPresent=!1;this.updateGridColumns(),this.updateDisplayedColumns(t)}},e.prototype.processSecondaryColumnDefinitions=function(e){var t=this.gridOptionsWrapper.getProcessSecondaryColDefFunc(),o=this.gridOptionsWrapper.getProcessSecondaryColGroupDefFunc();(t||o)&&e&&function e(i){i.forEach((function(i){if(P._.exists(i.children)){var r=i;o&&o(r),e(r.children)}else{t&&t(i)}}))}(e)},e.prototype.updateGridColumns=function(){this.gridColsArePrimary&&(this.lastPrimaryOrder=this.gridColumns),this.secondaryColumns&&this.secondaryBalancedTree?(this.gridBalancedTree=this.secondaryBalancedTree.slice(),this.gridHeaderRowCount=this.secondaryHeaderRowCount,this.gridColumns=this.secondaryColumns.slice(),this.gridColsArePrimary=!1):(this.gridBalancedTree=this.primaryColumnTree.slice(),this.gridHeaderRowCount=this.primaryHeaderRowCount,this.gridColumns=this.primaryColumns.slice(),this.gridColsArePrimary=!0,this.orderGridColsLikeLastPrimary()),this.addAutoGroupToGridColumns(),this.autoRowHeightColumns=this.gridColumns.filter((function(e){return e.getColDef().autoHeight})),this.putFixedColumnsFirst(),this.setupQuickFilterColumns(),this.clearDisplayedColumns(),this.colSpanActive=this.checkColSpanActiveInCols(this.gridColumns);var e={type:y.Events.EVENT_GRID_COLUMNS_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(e)},e.prototype.orderGridColsLikeLastPrimary=function(){var e=this;if(!P._.missing(this.lastPrimaryOrder)){var t=!0;if(this.gridColumns.forEach((function(o){e.lastPrimaryOrder.indexOf(o)>=0&&(t=!1)})),!t){var o=this.lastPrimaryOrder.filter((function(t){return e.gridColumns.indexOf(t)>=0})),i=this.gridColumns.filter((function(e){return o.indexOf(e)<0})),r=o.slice();i.forEach((function(e){var t=e.getOriginalParent();if(t){for(var o=[];!o.length&&t;){t.getLeafColumns().forEach((function(e){var t=r.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 r.indexOf(e)})),n=Math.max.apply(Math,i);P._.insertIntoArray(r,e,n+1)}else r.push(e)}else r.push(e)})),this.gridColumns=r}}},e.prototype.isPrimaryColumnGroupsPresent=function(){return this.primaryHeaderRowCount>1},e.prototype.setupQuickFilterColumns=function(){this.groupAutoColumns?this.columnsForQuickFilter=this.primaryColumns.concat(this.groupAutoColumns):this.columnsForQuickFilter=this.primaryColumns},e.prototype.putFixedColumnsFirst=function(){var e=this.gridColumns.filter((function(e){return e.getColDef().lockPosition})),t=this.gridColumns.filter((function(e){return!e.getColDef().lockPosition}));this.gridColumns=e.concat(t)},e.prototype.addAutoGroupToGridColumns=function(){if(this.createGroupAutoColumnsIfNeeded(),!P._.missing(this.groupAutoColumns)){this.gridColumns=this.groupAutoColumns?this.groupAutoColumns.concat(this.gridColumns):this.gridColumns;var e=this.columnFactory.createForAutoGroups(this.groupAutoColumns,this.gridBalancedTree);this.gridBalancedTree=e.concat(this.gridBalancedTree)}},e.prototype.clearDisplayedColumns=function(){this.displayedLeftColumnTree=[],this.displayedRightColumnTree=[],this.displayedCentreColumnTree=[],this.displayedLeftHeaderRows={},this.displayedRightHeaderRows={},this.displayedCentreHeaderRows={},this.displayedLeftColumns=[],this.displayedRightColumns=[],this.displayedCenterColumns=[],this.allDisplayedColumns=[],this.allDisplayedVirtualColumns=[]},e.prototype.updateGroupsAndDisplayedColumns=function(e){this.updateOpenClosedVisibilityInColumnGroups(),this.updateDisplayedColumnsFromTrees(e),this.updateVirtualSets(),this.updateBodyWidths();var t={type:y.Events.EVENT_DISPLAYED_COLUMNS_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(t)},e.prototype.updateDisplayedColumnsFromTrees=function(e){this.addToDisplayedColumns(this.displayedLeftColumnTree,this.displayedLeftColumns),this.addToDisplayedColumns(this.displayedCentreColumnTree,this.displayedCenterColumns),this.addToDisplayedColumns(this.displayedRightColumnTree,this.displayedRightColumns),this.setupAllDisplayedColumns(),this.setLeftValues(e)},e.prototype.setupAllDisplayedColumns=function(){this.gridOptionsWrapper.isEnableRtl()?this.allDisplayedColumns=this.displayedRightColumns.concat(this.displayedCenterColumns).concat(this.displayedLeftColumns):this.allDisplayedColumns=this.displayedLeftColumns.concat(this.displayedCenterColumns).concat(this.displayedRightColumns)},e.prototype.setLeftValues=function(e){this.setLeftValuesOfColumns(e),this.setLeftValuesOfGroups()},e.prototype.setLeftValuesOfColumns=function(e){var t=this,o=this.primaryColumns.slice(0),i=this.gridOptionsWrapper.isEnableRtl();[this.displayedLeftColumns,this.displayedRightColumns,this.displayedCenterColumns].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()}))}P._.removeAllFromArray(o,r)})),o.forEach((function(t){t.setLeft(null,e)}))},e.prototype.setLeftValuesOfGroups=function(){[this.displayedLeftColumnTree,this.displayedRightColumnTree,this.displayedCentreColumnTree].forEach((function(e){e.forEach((function(e){e instanceof s.ColumnGroup&&e.checkLeft()}))}))},e.prototype.addToDisplayedColumns=function(e,t){t.length=0,this.columnUtils.depthFirstDisplayedColumnTreeSearch(e,(function(e){e instanceof a.Column&&t.push(e)}))},e.prototype.updateDisplayedCenterVirtualColumns=function(){this.suppressColumnVirtualisation?this.allDisplayedCenterVirtualColumns=this.displayedCenterColumns:this.allDisplayedCenterVirtualColumns=this.filterOutColumnsWithinViewport(),this.allDisplayedVirtualColumns=this.allDisplayedCenterVirtualColumns.concat(this.displayedLeftColumns).concat(this.displayedRightColumns);var e={};return this.allDisplayedVirtualColumns.forEach((function(t){e[t.getId()]=!0})),e},e.prototype.getVirtualHeaderGroupRow=function(e,t){var o;switch(e){case a.Column.PINNED_LEFT:o=this.displayedLeftHeaderRows[t];break;case a.Column.PINNED_RIGHT:o=this.displayedRightHeaderRows[t];break;default:o=this.displayedCentreHeaderRows[t]}return P._.missing(o)&&(o=[]),o},e.prototype.updateDisplayedVirtualGroups=function(e){function t(o,i,r){for(var n=!1,s=0;s<o.length;s++){var l=o[s],p=void 0;if(l instanceof a.Column)p=!0===e[l.getId()];else p=t(l.getDisplayedChildren(),i,r+1);p&&(n=!0,i[r]||(i[r]=[]),i[r].push(l))}return n}this.displayedLeftHeaderRows={},this.displayedRightHeaderRows={},this.displayedCentreHeaderRows={},t(this.displayedLeftColumnTree,this.displayedLeftHeaderRows,0),t(this.displayedRightColumnTree,this.displayedRightHeaderRows,0),t(this.displayedCentreColumnTree,this.displayedCentreHeaderRows,0)},e.prototype.updateVirtualSets=function(){var e=this.updateDisplayedCenterVirtualColumns();this.updateDisplayedVirtualGroups(e)},e.prototype.filterOutColumnsWithinViewport=function(){return P._.filter(this.displayedCenterColumns,this.isColumnInViewport.bind(this))},e.prototype.sizeColumnsToFit=function(e,t){var o=this;void 0===t&&(t="api");var i=this.getAllDisplayedColumns();if(!(e<=0||0===i.length)){for(var r=P._.filter(i,(function(e){return!0===e.getColDef().suppressSizeToFit})),n=P._.filter(i,(function(e){return!0!==e.getColDef().suppressSizeToFit})),s=n.slice(0),a=!1;!a;){a=!0;var l=e-this.getWidthOfColsInList(r);if(l<=0)n.forEach((function(e){e.setMinimum(t)}));else for(var p=l/this.getWidthOfColsInList(n),u=l,c=n.length-1;c>=0;c--){var d=n[c],h=Math.round(d.getActualWidth()*p);if(h<d.getMinWidth())d.setMinimum(t),f(d),a=!1;else if(d.isGreaterThanMax(h))d.setActualWidth(d.getMaxWidth(),t),f(d),a=!1;else{0===c?d.setActualWidth(u,t):d.setActualWidth(h,t)}u-=h}}this.setLeftValues(t),this.updateBodyWidths(),s.forEach((function(e){var t={type:y.Events.EVENT_COLUMN_RESIZED,column:e,columns:[e],finished:!0,api:o.gridApi,columnApi:o.columnApi,source:"sizeColumnsToFit"};o.eventService.dispatchEvent(t)}))}function f(e){P._.removeFromArray(n,e),r.push(e)}},e.prototype.buildDisplayedTrees=function(e){var t=P._.filter(e,(function(e){return"left"===e.getPinned()})),o=P._.filter(e,(function(e){return"right"===e.getPinned()})),i=P._.filter(e,(function(e){return"left"!==e.getPinned()&&"right"!==e.getPinned()})),r=new m.GroupInstanceIdCreator;this.displayedLeftColumnTree=this.displayedGroupCreator.createDisplayedGroups(t,this.gridBalancedTree,r,a.Column.PINNED_LEFT,this.displayedLeftColumnTree),this.displayedRightColumnTree=this.displayedGroupCreator.createDisplayedGroups(o,this.gridBalancedTree,r,a.Column.PINNED_RIGHT,this.displayedRightColumnTree),this.displayedCentreColumnTree=this.displayedGroupCreator.createDisplayedGroups(i,this.gridBalancedTree,r,null,this.displayedCentreColumnTree)},e.prototype.updateOpenClosedVisibilityInColumnGroups=function(){var e=this.getAllDisplayedColumnGroups();this.columnUtils.depthFirstAllColumnTreeSearch(e,(function(e){e instanceof s.ColumnGroup&&e.calculateDisplayedColumns()}))},e.prototype.getGroupAutoColumns=function(){return this.groupAutoColumns},e.prototype.createGroupAutoColumnsIfNeeded=function(){if(this.autoGroupsNeedBuilding){this.autoGroupsNeedBuilding=!1;var e=this.gridOptionsWrapper.isGroupUseEntireRow(this.pivotMode),t=this.gridOptionsWrapper.isGroupSuppressAutoColumn()&&!this.pivotMode,o=this.gridOptionsWrapper.isGroupSuppressRow();if((this.rowGroupColumns.length>0||this.usingTreeData)&&!t&&!e&&!o){var i=this.autoGroupColService.createAutoGroupColumns(this.rowGroupColumns);!this.autoColsEqual(i,this.groupAutoColumns)&&(this.groupAutoColumns=i)}else this.groupAutoColumns=null}},e.prototype.autoColsEqual=function(e,t){if(!e&&!t)return!0;if(!e||!t)return!1;if(e.length!==t.length)return!1;for(var o=0;o<e.length;o++){var i=e[o],r=t[o];if(i.getColId()!==r.getColId())return!1}return!0},e.prototype.getWidthOfColsInList=function(e){for(var t=0,o=0;o<e.length;o++)t+=e[o].getActualWidth();return t},e.prototype.getGridBalancedTree=function(){return this.gridBalancedTree},i([C.Autowired("gridOptionsWrapper"),r("design:type",l.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([C.Autowired("expressionService"),r("design:type",p.ExpressionService)],e.prototype,"expressionService",void 0),i([C.Autowired("columnFactory"),r("design:type",u.ColumnFactory)],e.prototype,"columnFactory",void 0),i([C.Autowired("displayedGroupCreator"),r("design:type",c.DisplayedGroupCreator)],e.prototype,"displayedGroupCreator",void 0),i([C.Autowired("autoWidthCalculator"),r("design:type",d.AutoWidthCalculator)],e.prototype,"autoWidthCalculator",void 0),i([C.Autowired("eventService"),r("design:type",h.EventService)],e.prototype,"eventService",void 0),i([C.Autowired("columnUtils"),r("design:type",f.ColumnUtils)],e.prototype,"columnUtils",void 0),i([C.Autowired("context"),r("design:type",C.Context)],e.prototype,"context",void 0),i([C.Autowired("columnAnimationService"),r("design:type",w.ColumnAnimationService)],e.prototype,"columnAnimationService",void 0),i([C.Autowired("autoGroupColService"),r("design:type",_.AutoGroupColService)],e.prototype,"autoGroupColService",void 0),i([C.Optional("aggFuncService"),r("design:type",Object)],e.prototype,"aggFuncService",void 0),i([C.Optional("valueCache"),r("design:type",b.ValueCache)],e.prototype,"valueCache",void 0),i([C.Autowired("columnApi"),r("design:type",R.ColumnApi)],e.prototype,"columnApi",void 0),i([C.Autowired("gridApi"),r("design:type",E.GridApi)],e.prototype,"gridApi",void 0),i([C.PostConstruct,r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],e.prototype,"init",null),i([n(0,C.Qualifier("loggerFactory")),r("design:type",Function),r("design:paramtypes",[g.LoggerFactory]),r("design:returntype",void 0)],e.prototype,"setBeans",null),e=i([C.Bean("columnController")],e)}();t.ColumnController=O},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/Object.defineProperty(t,"__esModule",{value:!0});var i=o(35);t.Events=i.Events},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){}return e.STEP_EVERYTHING=0,e.STEP_FILTER=1,e.STEP_SORT=2,e.STEP_MAP=3,e.STEP_AGGREGATE=4,e.STEP_PIVOT=5,e.ROW_BUFFER_SIZE=10,e.LAYOUT_INTERVAL=500,e.BATCH_WAIT_MILLIS=50,e.EXPORT_TYPE_DRAG_COPY="dragCopy",e.EXPORT_TYPE_CLIPBOARD="clipboard",e.EXPORT_TYPE_EXCEL="excel",e.EXPORT_TYPE_CSV="csv",e.KEY_BACKSPACE=8,e.KEY_TAB=9,e.KEY_NEW_LINE=10,e.KEY_ENTER=13,e.KEY_SHIFT=16,e.KEY_ESCAPE=27,e.KEY_SPACE=32,e.KEY_LEFT=37,e.KEY_UP=38,e.KEY_RIGHT=39,e.KEY_DOWN=40,e.KEY_DELETE=46,e.KEY_A=65,e.KEY_C=67,e.KEY_V=86,e.KEY_D=68,e.KEY_F2=113,e.KEY_PAGE_UP=33,e.KEY_PAGE_DOWN=34,e.KEY_PAGE_HOME=36,e.KEY_PAGE_END=35,e.ROW_MODEL_TYPE_INFINITE="infinite",e.ROW_MODEL_TYPE_VIEWPORT="viewport",e.ROW_MODEL_TYPE_CLIENT_SIDE="clientSide",e.ROW_MODEL_TYPE_SERVER_SIDE="serverSide",e.DEPRECATED_ROW_MODEL_TYPE_NORMAL="normal",e.ALWAYS="always",e.ONLY_WHEN_GROUPING="onlyWhenGrouping",e.PINNED_TOP="top",e.PINNED_BOTTOM="bottom",e.DOM_LAYOUT_NORMAL="normal",e.DOM_LAYOUT_PRINT="print",e.DOM_LAYOUT_AUTO_HEIGHT="autoHeight",e.GROUP_AUTO_COLUMN_ID="ag-Grid-AutoColumn",e}();t.Constants=i},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),n=this&&this.__decorate||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},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(0),l=o(15),p=o(2),u=new p.NumberSequence,c=function(e){function t(t){var o=e.call(this)||this;return o.childComponents=[],o.annotatedEventListeners=[],o.displayed=!0,o.visible=!0,o.compId=u.next(),t&&o.setTemplate(t),o}return r(t,e),t.prototype.getCompId=function(){return this.compId},t.prototype.createChildComponentsFromTags=function(e){var t=this;p._.copyNodeList(e.childNodes).forEach((function(o){var i=t.getContext().createComponentFromElement(o,(function(e){t.copyAttributesFromNode(o,e.getGui())}));if(i){if(i.addItems&&o.children.length){t.createChildComponentsFromTags(o);var r=Array.prototype.slice.call(o.children);i.addItems(r)}t.swapComponentForNode(i,e,o)}else o.childNodes&&t.createChildComponentsFromTags(o)}))},t.prototype.copyAttributesFromNode=function(e,t){p._.iterateNamedNodeMap(e.attributes,(function(e,o){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.childComponents.push(e),this.swapInComponentForQuerySelectors(e,o)},t.prototype.swapInComponentForQuerySelectors=function(e,t){for(var o=Object.getPrototypeOf(this),i=this;null!=o;){var r=o.__agComponentMetaData,n=o.constructor.name;r&&r[n]&&r[n].querySelectors&&r[n].querySelectors.forEach((function(o){i[o.attributeName]===t&&(i[o.attributeName]=e)})),o=Object.getPrototypeOf(o)}},t.prototype.setTemplate=function(e){var t=p._.loadTemplate(e);this.setTemplateFromElement(t)},t.prototype.setTemplateFromElement=function(e){this.eGui=e,this.eGui.__agComponent=this,this.addAnnotatedEventListeners(),this.wireQuerySelectors(),!!this.getContext()&&this.createChildComponentsFromTags(this.getGui())},t.prototype.createChildComponentsPreConstruct=function(){!!this.getGui()&&this.createChildComponentsFromTags(this.getGui())},t.prototype.wireQuerySelectors=function(){var e=this;if(this.eGui)for(var t=Object.getPrototypeOf(this),o=function(){var o=t.__agComponentMetaData,r=t.constructor.name;if(o&&o[r]&&o[r].querySelectors){var n=i;o[r].querySelectors.forEach((function(t){var o=e.eGui.querySelector(t.querySelector);if(o){var i=o.__agComponent;n[t.attributeName]=i||o}}))}t=Object.getPrototypeOf(t)},i=this;null!=t;)o()},t.prototype.addAnnotatedEventListeners=function(){var e=this;if(this.removeAnnotatedEventListeners(),this.eGui){var t=this.getAgComponentMetaData("listenerMethods");p._.missingOrEmpty(t)||(this.annotatedEventListeners||(this.annotatedEventListeners=[]),t.forEach((function(t){var o=e[t.methodName].bind(e);e.eGui.addEventListener(t.eventName,o),e.annotatedEventListeners.push({eventName:t.eventName,listener:o})})))}},t.prototype.getAgComponentMetaData=function(e){for(var t=[],o=Object.getPrototypeOf(this);null!=o;){var i=o.__agComponentMetaData,r=o.constructor.name;if(void 0===r){var n=/function\s([^(]{1,})\(/.exec(o.constructor.toString());n&&n.length>1&&(r=n[1].trim())}i&&i[r]&&i[r][e]&&(t=t.concat(i[r][e])),o=Object.getPrototypeOf(o)}return t},t.prototype.removeAnnotatedEventListeners=function(){var e=this;this.annotatedEventListeners&&this.eGui&&(this.annotatedEventListeners.forEach((function(t){e.eGui.removeEventListener(t.eventName,t.listener)})),this.annotatedEventListeners=[])},t.prototype.getGui=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){if(p._.isNodeOrElement(e))this.eGui.appendChild(e);else{var t=e;this.eGui.appendChild(t.getGui()),this.childComponents.push(t)}},t.prototype.addFeature=function(e,t){e.wireBean(t),t.destroy&&this.addDestroyFunc(t.destroy.bind(t))},t.prototype.isDisplayed=function(){return this.displayed},t.prototype.setVisible=function(e){e!==this.visible&&(this.visible=e,p._.setVisible(this.eGui,e))},t.prototype.setDisplayed=function(e){if(e!==this.displayed){this.displayed=e,p._.setDisplayed(this.eGui,e);var o={type:t.EVENT_DISPLAYED_CHANGED,visible:this.displayed};this.dispatchEvent(o)}},t.prototype.addOrRemoveCssClass=function(e,t){p._.addOrRemoveCssClass(this.eGui,e,t)},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.childComponents.forEach((function(e){e&&e.destroy&&e.destroy()})),this.childComponents.length=0,this.removeAnnotatedEventListeners()},t.prototype.addGuiEventListener=function(e,t){var o=this;this.getGui().addEventListener(e,t),this.addDestroyFunc((function(){return o.getGui().removeEventListener(e,t)}))},t.prototype.addCssClass=function(e){p._.addCssClass(this.getGui(),e)},t.prototype.removeCssClass=function(e){p._.removeCssClass(this.getGui(),e)},t.prototype.getAttribute=function(e){var t=this.getGui();return t?t.getAttribute(e):null},t.prototype.getRefElement=function(e){return this.queryForHtmlElement('[ref="'+e+'"]')},t.EVENT_DISPLAYED_CHANGED="displayedChanged",n([a.PreConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"createChildComponentsPreConstruct",null),t}(l.BeanStub);t.Component=c},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/var i=this&&this.__decorate||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},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var n=o(123),s=o(20),a=o(17),l=o(5),p=o(23),u=o(3),c=o(24),d=o(4),h=o(7),f=o(0),g=o(27),y=o(26),v=o(87),m=o(31),C=o(190),w=o(46),_=o(93),b=o(30),E=o(48),R=o(2),P=function(){function e(){this.detailGridInfoMap={}}return e.prototype.registerGridComp=function(e){this.gridPanel=e},e.prototype.registerGridCore=function(e){this.gridCore=e},e.prototype.registerHeaderRootComp=function(e){this.headerRootComp=e},e.prototype.init=function(){switch(this.rowModel.getType()){case h.Constants.ROW_MODEL_TYPE_CLIENT_SIDE:this.clientSideRowModel=this.rowModel;break;case h.Constants.ROW_MODEL_TYPE_INFINITE:this.infinitePageRowModel=this.rowModel;break;case h.Constants.ROW_MODEL_TYPE_SERVER_SIDE:this.serverSideRowModel=this.rowModel}},e.prototype.__getAlignedGridService=function(){return this.alignedGridsService},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 t=0;R._.iterateObject(this.detailGridInfoMap,(function(o,i){R._.exists(i)&&(e(i,t),t++)}))},e.prototype.getDataAsCsv=function(e){return this.csvCreator.getDataAsCsv(e)},e.prototype.exportDataAsCsv=function(e){this.csvCreator.exportDataAsCsv(e)},e.prototype.getDataAsExcel=function(e){return this.excelCreator||console.warn("ag-Grid: Excel export is only available in ag-Grid Enterprise"),this.excelCreator.getDataAsExcelXml(e)},e.prototype.exportDataAsExcel=function(e){this.excelCreator||console.warn("ag-Grid: Excel export is only available in ag-Grid Enterprise"),this.excelCreator.exportDataAsExcel(e)},e.prototype.setEnterpriseDatasource=function(e){console.warn("ag-grid: since version 18.x, api.setEnterpriseDatasource() should be replaced with api.setServerSideDatasource()"),this.setServerSideDatasource(e)},e.prototype.setServerSideDatasource=function(e){this.gridOptionsWrapper.isRowModelServerSide()?this.rowModel.setDatasource(e):console.warn("ag-Grid: you can only use an enterprise datasource when gridOptions.rowModelType is '"+h.Constants.ROW_MODEL_TYPE_SERVER_SIDE+"'")},e.prototype.setDatasource=function(e){this.gridOptionsWrapper.isRowModelInfinite()?this.rowModel.setDatasource(e):console.warn("ag-Grid: you can only use a datasource when gridOptions.rowModelType is '"+h.Constants.ROW_MODEL_TYPE_INFINITE+"'")},e.prototype.setViewportDatasource=function(e){this.gridOptionsWrapper.isRowModelViewport()?this.rowModel.setViewportDatasource(e):console.warn("ag-Grid: you can only use a viewport datasource when gridOptions.rowModelType is '"+h.Constants.ROW_MODEL_TYPE_VIEWPORT+"'")},e.prototype.setRowData=function(e){if(this.gridOptionsWrapper.isRowModelDefault())if(this.gridOptionsWrapper.isDeltaRowDataMode()){var t=this.immutableService.createTransactionForRowData(e),o=t[0],i=t[1];this.clientSideRowModel.updateRowData(o,i),this.rowRenderer.refreshFullWidthRows()}else this.selectionController.reset(),this.clientSideRowModel.setRowData(e);else console.warn("cannot call setRowData unless using normal row model")},e.prototype.setFloatingTopRowData=function(e){console.warn("ag-Grid: since v12, api.setFloatingTopRowData() is now api.setPinnedTopRowData()"),this.setPinnedTopRowData(e)},e.prototype.setFloatingBottomRowData=function(e){console.warn("ag-Grid: since v12, api.setFloatingBottomRowData() is now api.setPinnedBottomRowData()"),this.setPinnedBottomRowData(e)},e.prototype.getFloatingTopRowCount=function(){return console.warn("ag-Grid: since v12, api.getFloatingTopRowCount() is now api.getPinnedTopRowCount()"),this.getPinnedTopRowCount()},e.prototype.getFloatingBottomRowCount=function(){return console.warn("ag-Grid: since v12, api.getFloatingBottomRowCount() is now api.getPinnedBottomRowCount()"),this.getPinnedBottomRowCount()},e.prototype.getFloatingTopRow=function(e){return console.warn("ag-Grid: since v12, api.getFloatingTopRow() is now api.getPinnedTopRow()"),this.getPinnedTopRow(e)},e.prototype.getFloatingBottomRow=function(e){return console.warn("ag-Grid: since v12, api.getFloatingBottomRow() is now api.getPinnedBottomRow()"),this.getPinnedBottomRow(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.columnController.setColumnDefs(e,t)},e.prototype.expireValueCache=function(){this.valueCache.expire()},e.prototype.getVerticalPixelRange=function(){return this.gridPanel.getVScrollPosition()},e.prototype.getHorizontalPixelRange=function(){return this.gridPanel.getHScrollPosition()},e.prototype.setAlwaysShowVerticalScroll=function(e){this.gridOptionsWrapper.setProperty("alwaysShowVerticalScroll",e)},e.prototype.refreshToolPanel=function(){this.gridCore.refreshSideBar()},e.prototype.refreshCells=function(e){void 0===e&&(e={}),Array.isArray(e)?console.warn("since ag-Grid v11.1, refreshCells() now takes parameters, please see the documentation."):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={}),e&&e.rowNodes?this.rowRenderer.redrawRows(e.rowNodes):this.rowRenderer.redrawAfterModelUpdate()},e.prototype.timeFullRedraw=function(e){void 0===e&&(e=1);var t=0,o=0,i=0,r=this;!function n(){var s=(new Date).getTime();r.rowRenderer.redrawAfterModelUpdate();var a=(new Date).getTime();window.setTimeout((function(){var r=(new Date).getTime(),l=a-s,p=r-a;console.log("duration: processing = "+l+"ms, reflow = "+p+"ms"),o+=l,i+=p,++t<e?window.setTimeout(n,1e3):(console.log("tests complete. iteration count = "+t),console.log("average processing = "+o/t+"ms"),console.log("average reflow = "+i/t+"ms"))}),0)}()},e.prototype.refreshView=function(){console.warn("ag-Grid: since v11.1, refreshView() is deprecated, please call refreshCells() or redrawRows() instead"),this.redrawRows()},e.prototype.refreshRows=function(e){console.warn("since ag-Grid v11.1, refreshRows() is deprecated, please use refreshCells({rowNodes: rows}) or redrawRows({rowNodes: rows}) instead"),this.refreshCells({rowNodes:e})},e.prototype.rowDataChanged=function(e){console.warn("ag-Grid: rowDataChanged is deprecated, either call refreshView() to refresh everything, or call rowNode.setRowData(newData) to set value on a particular node"),this.redrawRows()},e.prototype.softRefreshView=function(){console.error("ag-Grid: since v16, softRefreshView() is no longer supported. Please check the documentation on how to refresh.")},e.prototype.refreshGroupRows=function(){console.warn("ag-Grid: since v11.1, refreshGroupRows() is no longer supported, call refreshCells() instead. Because refreshCells() now does dirty checking, it will only refresh cells that have changed, so it should not be necessary to only refresh the group rows."),this.refreshCells()},e.prototype.setFunctionsReadOnly=function(e){this.gridOptionsWrapper.setProperty("functionsReadOnly",e)},e.prototype.refreshHeader=function(){this.headerRootComp.refreshHeader(),this.gridPanel.setHeaderAndFloatingHeights()},e.prototype.isAnyFilterPresent=function(){return this.filterManager.isAnyFilterPresent()},e.prototype.isAdvancedFilterPresent=function(){return console.warn("ag-Grid: isAdvancedFilterPresent() is deprecated, please use isColumnFilterPresent()"),this.isColumnFilterPresent()},e.prototype.isColumnFilterPresent=function(){return this.filterManager.isAdvancedFilterPresent()},e.prototype.isQuickFilterPresent=function(){return this.filterManager.isQuickFilterPresent()},e.prototype.getModel=function(){return this.rowModel},e.prototype.setRowNodeExpanded=function(e,t){e&&e.setExpanded(t)},e.prototype.onGroupExpandedOrCollapsed=function(e){R._.missing(this.clientSideRowModel)&&console.warn("ag-Grid: cannot call onGroupExpandedOrCollapsed unless using normal row model"),R._.exists(e)&&console.warn("ag-Grid: api.onGroupExpandedOrCollapsed - refreshFromIndex parameter is no longer used, the grid will refresh all rows"),this.clientSideRowModel.refreshModel({step:h.Constants.STEP_MAP})},e.prototype.refreshInMemoryRowModel=function(e){console.warn("ag-grid: since version 18.x, api.refreshInMemoryRowModel() should be replaced with api.refreshClientSideRowModel()"),this.refreshClientSideRowModel(e)},e.prototype.refreshClientSideRowModel=function(e){R._.missing(this.clientSideRowModel)&&console.warn("cannot call refreshClientSideRowModel unless using normal row model");var t=h.Constants.STEP_EVERYTHING,o={group:h.Constants.STEP_EVERYTHING,filter:h.Constants.STEP_FILTER,map:h.Constants.STEP_MAP,aggregate:h.Constants.STEP_AGGREGATE,sort:h.Constants.STEP_SORT,pivot:h.Constants.STEP_PIVOT};if(R._.exists(e)&&(t=o[e]),R._.missing(t))console.error("ag-Grid: invalid step "+e+", available steps are "+Object.keys(o).join(", "));else{var i={step:t,keepRenderedRows:!0,animate:!0,keepEditingRows:!0};this.clientSideRowModel.refreshModel(i)}},e.prototype.isAnimationFrameQueueEmpty=function(){return this.animationFrameService.isQueueEmpty()},e.prototype.getRowNode=function(e){return this.rowModel.getRowNode(e)},e.prototype.expandAll=function(){R._.missing(this.clientSideRowModel)?console.warn("ag-Grid: cannot call expandAll unless using normal row model"):this.clientSideRowModel.expandOrCollapseAll(!0)},e.prototype.collapseAll=function(){R._.missing(this.clientSideRowModel)?console.warn("ag-Grid: cannot call collapseAll unless using normal row model"):this.clientSideRowModel.expandOrCollapseAll(!1)},e.prototype.addVirtualRowListener=function(e,t,o){"string"!=typeof e&&console.warn("ag-Grid: addVirtualRowListener is deprecated, please use addRenderedRowListener."),this.addRenderedRowListener(e,t,o)},e.prototype.addRenderedRowListener=function(e,t,o){"virtualRowSelected"===e&&console.warn("ag-Grid: event virtualRowSelected is deprecated, to register for individual row\n selection events, add a listener directly to the row node."),this.rowRenderer.addRenderedRowListener(e,t,o)},e.prototype.setQuickFilter=function(e){this.filterManager.setQuickFilter(e)},e.prototype.selectIndex=function(e,t,o){console.warn("ag-Grid: do not use api for selection, call node.setSelected(value) instead"),o&&console.warn("ag-Grid: suppressEvents is no longer supported, stop listening for the event if you no longer want it"),this.selectionController.selectIndex(e,t)},e.prototype.deselectIndex=function(e,t){void 0===t&&(t=!1),console.warn("ag-Grid: do not use api for selection, call node.setSelected(value) instead"),t&&console.warn("ag-Grid: suppressEvents is no longer supported, stop listening for the event if you no longer want it"),this.selectionController.deselectIndex(e)},e.prototype.selectNode=function(e,t,o){void 0===t&&(t=!1),void 0===o&&(o=!1),console.warn("ag-Grid: API for selection is deprecated, call node.setSelected(value) instead"),o&&console.warn("ag-Grid: suppressEvents is no longer supported, stop listening for the event if you no longer want it"),e.setSelectedParams({newValue:!0,clearSelection:!t})},e.prototype.deselectNode=function(e,t){void 0===t&&(t=!1),console.warn("ag-Grid: API for selection is deprecated, call node.setSelected(value) instead"),t&&console.warn("ag-Grid: suppressEvents is no longer supported, stop listening for the event if you no longer want it"),e.setSelectedParams({newValue:!1})},e.prototype.selectAll=function(){this.selectionController.selectAllRowNodes()},e.prototype.deselectAll=function(){this.selectionController.deselectAllRowNodes()},e.prototype.selectAllFiltered=function(){this.selectionController.selectAllRowNodes(!0)},e.prototype.deselectAllFiltered=function(){this.selectionController.deselectAllRowNodes(!0)},e.prototype.recomputeAggregates=function(){R._.missing(this.clientSideRowModel)&&console.warn("cannot call recomputeAggregates unless using normal row model"),console.warn("recomputeAggregates is deprecated, please call api.refreshClientSideRowModel('aggregate') instead"),this.clientSideRowModel.refreshModel({step:h.Constants.STEP_AGGREGATE})},e.prototype.sizeColumnsToFit=function(){this.gridPanel.sizeColumnsToFit()},e.prototype.showLoadingOverlay=function(){this.gridPanel.showLoadingOverlay()},e.prototype.showNoRowsOverlay=function(){this.gridPanel.showNoRowsOverlay()},e.prototype.hideOverlay=function(){this.gridPanel.hideOverlay()},e.prototype.isNodeSelected=function(e){return console.warn("ag-Grid: no need to call api.isNodeSelected(), just call node.isSelected() instead"),e.isSelected()},e.prototype.getSelectedNodesById=function(){return console.error("ag-Grid: since version 3.4, getSelectedNodesById no longer exists, use getSelectedNodes() instead"),null},e.prototype.getSelectedNodes=function(){return this.selectionController.getSelectedNodes()},e.prototype.getSelectedRows=function(){return this.selectionController.getSelectedRows()},e.prototype.getBestCostNodeSelection=function(){return this.selectionController.getBestCostNodeSelection()},e.prototype.getRenderedNodes=function(){return this.rowRenderer.getRenderedNodes()},e.prototype.ensureColIndexVisible=function(e){console.warn("ag-Grid: ensureColIndexVisible(index) no longer supported, use ensureColumnVisible(colKey) instead.")},e.prototype.ensureColumnVisible=function(e){this.gridPanel.ensureColumnVisible(e)},e.prototype.ensureIndexVisible=function(e,t){this.gridPanel.ensureIndexVisible(e,t)},e.prototype.ensureNodeVisible=function(e,t){this.gridCore.ensureNodeVisible(e,t)},e.prototype.forEachLeafNode=function(e){R._.missing(this.clientSideRowModel)&&console.warn("cannot call forEachNode unless using normal row model"),this.clientSideRowModel.forEachLeafNode(e)},e.prototype.forEachNode=function(e){this.rowModel.forEachNode(e)},e.prototype.forEachNodeAfterFilter=function(e){R._.missing(this.clientSideRowModel)&&console.warn("cannot call forEachNodeAfterFilter unless using normal row model"),this.clientSideRowModel.forEachNodeAfterFilter(e)},e.prototype.forEachNodeAfterFilterAndSort=function(e){R._.missing(this.clientSideRowModel)&&console.warn("cannot call forEachNodeAfterFilterAndSort unless using normal row model"),this.clientSideRowModel.forEachNodeAfterFilterAndSort(e)},e.prototype.getFilterApiForColDef=function(e){return console.warn("ag-grid API method getFilterApiForColDef deprecated, use getFilterApi instead"),this.getFilterInstance(e)},e.prototype.getFilterInstance=function(e){var t=this.columnController.getPrimaryColumn(e);if(t)return this.filterManager.getFilterComponent(t,"NO_UI").resolveNow(null,(function(e){return e}))},e.prototype.getFilterApi=function(e){return console.warn("ag-Grid: getFilterApi is deprecated, use getFilterInstance instead"),this.getFilterInstance(e)},e.prototype.destroyFilter=function(e){var t=this.columnController.getPrimaryColumn(e);if(t)return this.filterManager.destroyFilter(t,"filterDestroyed")},e.prototype.getStatusPanel=function(e){if(this.statusBarService)return this.statusBarService.getStatusPanel(e)},e.prototype.getColumnDef=function(e){var t=this.columnController.getPrimaryColumn(e);return t?t.getColDef():null},e.prototype.onFilterChanged=function(){this.filterManager.onFilterChanged()},e.prototype.onSortChanged=function(){this.sortController.onSortChanged()},e.prototype.setSortModel=function(e,t){void 0===t&&(t="api"),this.sortController.setSortModel(e,t)},e.prototype.getSortModel=function(){return this.sortController.getSortModel()},e.prototype.setFilterModel=function(e){this.filterManager.setFilterModel(e)},e.prototype.getFilterModel=function(){return this.filterManager.getFilterModel()},e.prototype.getFocusedCell=function(){return this.focusedCellController.getFocusedCell()},e.prototype.clearFocusedCell=function(){return this.focusedCellController.clearFocusedCell()},e.prototype.setFocusedCell=function(e,t,o){this.focusedCellController.setFocusedCell(e,t,o,!0)},e.prototype.setSuppressRowDrag=function(e){this.gridOptionsWrapper.setProperty(u.GridOptionsWrapper.PROP_SUPPRESS_ROW_DRAG,e)},e.prototype.setHeaderHeight=function(e){this.gridOptionsWrapper.setProperty(u.GridOptionsWrapper.PROP_HEADER_HEIGHT,e),this.doLayout()},e.prototype.setGridAutoHeight=function(e){console.warn("api.setGridAutoHeight(boolean) is deprecated, please use api.setDomLayout() instead"),this.setDomLayout(e?"autoHeight":"normal")},e.prototype.setDomLayout=function(e){this.gridOptionsWrapper.setProperty(u.GridOptionsWrapper.PROP_DOM_LAYOUT,e)},e.prototype.setEnableCellTextSelection=function(e){this.gridPanel.setCellTextSelection(e)},e.prototype.setGroupHeaderHeight=function(e){this.gridOptionsWrapper.setProperty(u.GridOptionsWrapper.PROP_GROUP_HEADER_HEIGHT,e),this.doLayout()},e.prototype.setFloatingFiltersHeight=function(e){this.gridOptionsWrapper.setProperty(u.GridOptionsWrapper.PROP_FLOATING_FILTERS_HEIGHT,e),this.doLayout()},e.prototype.setPivotGroupHeaderHeight=function(e){this.gridOptionsWrapper.setProperty(u.GridOptionsWrapper.PROP_PIVOT_GROUP_HEADER_HEIGHT,e),this.doLayout()},e.prototype.setPivotHeaderHeight=function(e){this.gridOptionsWrapper.setProperty(u.GridOptionsWrapper.PROP_PIVOT_HEADER_HEIGHT,e),this.doLayout()},e.prototype.isSideBarVisible=function(){return this.gridCore.isSideBarVisible()},e.prototype.setSideBarVisible=function(e){this.gridCore.setSideBarVisible(e)},e.prototype.showToolPanel=function(e){console.warn("ag-grid: from v19 api.showToolPanel has been deprecated in favour of api.setSideBarVisible"),this.setSideBarVisible(e)},e.prototype.openToolPanel=function(e){this.gridCore.openToolPanel(e)},e.prototype.closeToolPanel=function(){this.gridCore.closeToolPanel()},e.prototype.getOpenedToolPanel=function(){return this.gridCore.getOpenedToolPanel()},e.prototype.getSideBar=function(){return this.gridCore.getSideBar()},e.prototype.setSideBar=function(e){return this.gridCore.setSideBar(e)},e.prototype.setSuppressClipboardPaste=function(e){this.gridOptionsWrapper.setProperty(u.GridOptionsWrapper.PROP_SUPPRESS_CLIPBOARD_PASTE,e)},e.prototype.isToolPanelShowing=function(){return this.gridCore.isToolPanelShowing()},e.prototype.doLayout=function(){this.gridPanel.checkViewportAndScrolls()},e.prototype.resetRowHeights=function(){R._.exists(this.clientSideRowModel)&&this.clientSideRowModel.resetRowHeights()},e.prototype.setGroupRemoveSingleChildren=function(e){this.gridOptionsWrapper.setProperty(u.GridOptionsWrapper.PROP_GROUP_REMOVE_SINGLE_CHILDREN,e)},e.prototype.setGroupRemoveLowestSingleChildren=function(e){this.gridOptionsWrapper.setProperty(u.GridOptionsWrapper.PROP_GROUP_REMOVE_LOWEST_SINGLE_CHILDREN,e)},e.prototype.onRowHeightChanged=function(){R._.exists(this.clientSideRowModel)&&this.clientSideRowModel.onRowHeightChanged()},e.prototype.getValue=function(e,t){var o=this.columnController.getPrimaryColumn(e);return R._.missing(o)&&(o=this.columnController.getGridColumn(e)),R._.missing(o)?null:this.valueService.getValue(o,t)},e.prototype.addEventListener=function(e,t){var o=this.gridOptionsWrapper.useAsyncEvents();this.eventService.addEventListener(e,t,o)},e.prototype.addGlobalListener=function(e){var t=this.gridOptionsWrapper.useAsyncEvents();this.eventService.addGlobalListener(e,t)},e.prototype.removeEventListener=function(e,t){var o=this.gridOptionsWrapper.useAsyncEvents();this.eventService.removeEventListener(e,t,o)},e.prototype.removeGlobalListener=function(e){var t=this.gridOptionsWrapper.useAsyncEvents();this.eventService.removeGlobalListener(e,t)},e.prototype.dispatchEvent=function(e){this.eventService.dispatchEvent(e)},e.prototype.destroy=function(){this.gridCore.destroy(),this.context.destroy()},e.prototype.resetQuickFilter=function(){this.rowModel.forEachNode((function(e){return e.quickFilterAggregateText=null}))},e.prototype.getRangeSelections=function(){return console.warn("ag-Grid: in v20.1.x, api.getRangeSelections() is gone, please use getCellRanges() instead.\n We had to change how cell selections works a small bit to allow charting to integrate. The return type of\n getCellRanges() is a bit different, please check the ag-Grid documentation."),null},e.prototype.getCellRanges=function(){return this.rangeController?this.rangeController.getCellRanges():(console.warn("ag-Grid: cell range selection is only available in ag-Grid Enterprise"),null)},e.prototype.camelCaseToHumanReadable=function(e){return R._.camelCaseToHumanText(e)},e.prototype.addRangeSelection=function(e){console.warn("ag-Grid: As of version 21.x, range selection changed slightly to allow charting integration. Please call api.addCellRange() instead of api.addRangeSelection()")},e.prototype.addCellRange=function(e){this.rangeController||console.warn("ag-Grid: cell range selection is only available in ag-Grid Enterprise"),this.rangeController.addCellRange(e)},e.prototype.clearRangeSelection=function(){this.rangeController||console.warn("ag-Grid: cell range selection is only available in ag-Grid Enterprise"),this.rangeController.removeAllCellRanges()},e.prototype.chartRange=function(e){if(this.context.isModuleRegistered("chartsModule"))return this.chartService.chartCellRange(e);R._.doOnce((function(){console.warn("ag-grid: Cannot chart range - the Charts Module has not been included.")}),"ChartsModuleCheck")},e.prototype.copySelectedRowsToClipboard=function(e,t){this.clipboardService||console.warn("ag-Grid: clipboard is only available in ag-Grid Enterprise"),this.clipboardService.copySelectedRowsToClipboard(e,t)},e.prototype.copySelectedRangeToClipboard=function(e){this.clipboardService||console.warn("ag-Grid: clipboard is only available in ag-Grid Enterprise"),this.clipboardService.copySelectedRangeToClipboard(e)},e.prototype.copySelectedRangeDown=function(){this.clipboardService||console.warn("ag-Grid: clipboard is only available in ag-Grid Enterprise"),this.clipboardService.copyRangeDown()},e.prototype.showColumnMenuAfterButtonClick=function(e,t){var o=this.columnController.getGridColumn(e);this.menuFactory.showMenuAfterButtonClick(o,t)},e.prototype.showColumnMenuAfterMouseClick=function(e,t){var o=this.columnController.getGridColumn(e);this.menuFactory.showMenuAfterMouseEvent(o,t)},e.prototype.hidePopupMenu=function(){this.contextMenuFactory&&this.contextMenuFactory.hideActiveMenu(),this.menuFactory.hideActiveMenu()},e.prototype.setPopupParent=function(e){this.gridOptionsWrapper.setProperty(u.GridOptionsWrapper.PROP_POPUP_PARENT,e)},e.prototype.tabToNextCell=function(){return this.rowRenderer.tabToNextCell(!1)},e.prototype.tabToPreviousCell=function(){return this.rowRenderer.tabToNextCell(!0)},e.prototype.getCellRendererInstances=function(e){return void 0===e&&(e={}),this.rowRenderer.getCellRendererInstances(e)},e.prototype.getCellEditorInstances=function(e){return void 0===e&&(e={}),this.rowRenderer.getCellEditorInstances(e)},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.columnController.getGridColumn(e.colKey);if(t){var o={rowIndex:e.rowIndex,rowPinned:e.rowPinned,column:t};R._.missing(e.rowPinned)&&this.gridPanel.ensureIndexVisible(e.rowIndex),this.rowRenderer.startEditingCell(o,e.keyPress,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.updateRowData=function(e){var t=null;return this.clientSideRowModel?t=this.clientSideRowModel.updateRowData(e):this.infinitePageRowModel?this.infinitePageRowModel.updateRowData(e):console.error("ag-Grid: updateRowData() only works with ClientSideRowModel and InfiniteRowModel."),this.rowRenderer.refreshFullWidthRows(),this.gridOptionsWrapper.isSuppressChangeDetection()||this.rowRenderer.refreshCells(),t},e.prototype.batchUpdateRowData=function(e,t){this.clientSideRowModel?this.clientSideRowModel.batchUpdateRowData(e,t):console.error("ag-Grid: api.batchUpdateRowData() only works with ClientSideRowModel.")},e.prototype.insertItemsAtIndex=function(e,t,o){void 0===o&&(o=!1),console.warn("ag-Grid: insertItemsAtIndex() is deprecated, use updateRowData(transaction) instead."),this.updateRowData({add:t,addIndex:e,update:null,remove:null})},e.prototype.removeItems=function(e,t){void 0===t&&(t=!1),console.warn("ag-Grid: removeItems() is deprecated, use updateRowData(transaction) instead.");var o=e.map((function(e){return e.data}));this.updateRowData({add:null,addIndex:null,update:null,remove:o})},e.prototype.addItems=function(e,t){void 0===t&&(t=!1),console.warn("ag-Grid: addItems() is deprecated, use updateRowData(transaction) instead."),this.updateRowData({add:e,addIndex:null,update:null,remove:null})},e.prototype.refreshVirtualPageCache=function(){console.warn("ag-Grid: refreshVirtualPageCache() is now called refreshInfiniteCache(), please call refreshInfiniteCache() instead"),this.refreshInfiniteCache()},e.prototype.refreshInfinitePageCache=function(){console.warn("ag-Grid: refreshInfinitePageCache() is now called refreshInfiniteCache(), please call refreshInfiniteCache() instead"),this.refreshInfiniteCache()},e.prototype.refreshInfiniteCache=function(){this.infinitePageRowModel?this.infinitePageRowModel.refreshCache():console.warn("ag-Grid: api.refreshInfiniteCache is only available when rowModelType='infinite'.")},e.prototype.purgeVirtualPageCache=function(){console.warn("ag-Grid: purgeVirtualPageCache() is now called purgeInfiniteCache(), please call purgeInfiniteCache() instead"),this.purgeInfinitePageCache()},e.prototype.purgeInfinitePageCache=function(){console.warn("ag-Grid: purgeInfinitePageCache() is now called purgeInfiniteCache(), please call purgeInfiniteCache() instead"),this.purgeInfiniteCache()},e.prototype.purgeInfiniteCache=function(){this.infinitePageRowModel?this.infinitePageRowModel.purgeCache():console.warn("ag-Grid: api.purgeInfiniteCache is only available when rowModelType='infinite'.")},e.prototype.purgeEnterpriseCache=function(e){console.warn("ag-grid: since version 18.x, api.purgeEnterpriseCache() should be replaced with api.purgeServerSideCache()"),this.purgeServerSideCache(e)},e.prototype.purgeServerSideCache=function(e){this.serverSideRowModel?this.serverSideRowModel.purgeCache(e):console.warn("ag-Grid: api.purgeServerSideCache is only available when rowModelType='enterprise'.")},e.prototype.getVirtualRowCount=function(){return console.warn("ag-Grid: getVirtualRowCount() is now called getInfiniteRowCount(), please call getInfiniteRowCount() instead"),this.getInfiniteRowCount()},e.prototype.getInfiniteRowCount=function(){if(this.infinitePageRowModel)return this.infinitePageRowModel.getVirtualRowCount();console.warn("ag-Grid: api.getVirtualRowCount is only available when rowModelType='virtual'.")},e.prototype.isMaxRowFound=function(){if(this.infinitePageRowModel)return this.infinitePageRowModel.isMaxRowFound();console.warn("ag-Grid: api.isMaxRowFound is only available when rowModelType='virtual'.")},e.prototype.setVirtualRowCount=function(e,t){console.warn("ag-Grid: setVirtualRowCount() is now called setInfiniteRowCount(), please call setInfiniteRowCount() instead"),this.setInfiniteRowCount(e,t)},e.prototype.setInfiniteRowCount=function(e,t){this.infinitePageRowModel?this.infinitePageRowModel.setVirtualRowCount(e,t):console.warn("ag-Grid: api.setVirtualRowCount is only available when rowModelType='virtual'.")},e.prototype.getVirtualPageState=function(){return console.warn("ag-Grid: getVirtualPageState() is now called getCacheBlockState(), please call getCacheBlockState() instead"),this.getCacheBlockState()},e.prototype.getInfinitePageState=function(){return console.warn("ag-Grid: getInfinitePageState() is now called getCacheBlockState(), please call getCacheBlockState() instead"),this.getCacheBlockState()},e.prototype.getCacheBlockState=function(){return this.infinitePageRowModel?this.infinitePageRowModel.getBlockState():this.serverSideRowModel?this.serverSideRowModel.getBlockState():void console.warn("ag-Grid: api.getCacheBlockState() is only available when rowModelType='infinite' or rowModelType='serverSide'.")},e.prototype.checkGridSize=function(){this.gridPanel.setHeaderAndFloatingHeights()},e.prototype.getFirstRenderedRow=function(){return console.warn("in ag-Grid v12, getFirstRenderedRow() was renamed to getFirstDisplayedRow()"),this.getFirstDisplayedRow()},e.prototype.getFirstDisplayedRow=function(){return this.rowRenderer.getFirstVirtualRenderedRow()},e.prototype.getLastRenderedRow=function(){return console.warn("in ag-Grid v12, getLastRenderedRow() was renamed to getLastDisplayedRow()"),this.getLastDisplayedRow()},e.prototype.getLastDisplayedRow=function(){return this.rowRenderer.getLastVirtualRenderedRow()},e.prototype.getDisplayedRowAtIndex=function(e){return this.rowModel.getRow(e)},e.prototype.getDisplayedRowCount=function(){return this.rowModel.getRowCount()},e.prototype.paginationIsLastPageFound=function(){return this.paginationProxy.isLastPageFound()},e.prototype.paginationGetPageSize=function(){return this.paginationProxy.getPageSize()},e.prototype.paginationSetPageSize=function(e){this.gridOptionsWrapper.setProperty("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)},i([f.Autowired("immutableService"),r("design:type",C.ImmutableService)],e.prototype,"immutableService",void 0),i([f.Autowired("csvCreator"),r("design:type",n.CsvCreator)],e.prototype,"csvCreator",void 0),i([f.Optional("excelCreator"),r("design:type",Object)],e.prototype,"excelCreator",void 0),i([f.Autowired("rowRenderer"),r("design:type",s.RowRenderer)],e.prototype,"rowRenderer",void 0),i([f.Autowired("filterManager"),r("design:type",a.FilterManager)],e.prototype,"filterManager",void 0),i([f.Autowired("columnController"),r("design:type",l.ColumnController)],e.prototype,"columnController",void 0),i([f.Autowired("selectionController"),r("design:type",p.SelectionController)],e.prototype,"selectionController",void 0),i([f.Autowired("gridOptionsWrapper"),r("design:type",u.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([f.Autowired("valueService"),r("design:type",c.ValueService)],e.prototype,"valueService",void 0),i([f.Autowired("alignedGridsService"),r("design:type",_.AlignedGridsService)],e.prototype,"alignedGridsService",void 0),i([f.Autowired("eventService"),r("design:type",d.EventService)],e.prototype,"eventService",void 0),i([f.Autowired("pinnedRowModel"),r("design:type",b.PinnedRowModel)],e.prototype,"pinnedRowModel",void 0),i([f.Autowired("context"),r("design:type",f.Context)],e.prototype,"context",void 0),i([f.Autowired("rowModel"),r("design:type",Object)],e.prototype,"rowModel",void 0),i([f.Autowired("sortController"),r("design:type",g.SortController)],e.prototype,"sortController",void 0),i([f.Autowired("paginationProxy"),r("design:type",m.PaginationProxy)],e.prototype,"paginationProxy",void 0),i([f.Autowired("focusedCellController"),r("design:type",y.FocusedCellController)],e.prototype,"focusedCellController",void 0),i([f.Optional("rangeController"),r("design:type",Object)],e.prototype,"rangeController",void 0),i([f.Optional("clipboardService"),r("design:type",Object)],e.prototype,"clipboardService",void 0),i([f.Optional("aggFuncService"),r("design:type",Object)],e.prototype,"aggFuncService",void 0),i([f.Autowired("menuFactory"),r("design:type",Object)],e.prototype,"menuFactory",void 0),i([f.Optional("contextMenuFactory"),r("design:type",Object)],e.prototype,"contextMenuFactory",void 0),i([f.Autowired("cellRendererFactory"),r("design:type",v.CellRendererFactory)],e.prototype,"cellRendererFactory",void 0),i([f.Autowired("valueCache"),r("design:type",w.ValueCache)],e.prototype,"valueCache",void 0),i([f.Optional("sideBarComp"),r("design:type",Object)],e.prototype,"sideBarComp",void 0),i([f.Autowired("animationFrameService"),r("design:type",E.AnimationFrameService)],e.prototype,"animationFrameService",void 0),i([f.Optional("statusBarService"),r("design:type",Object)],e.prototype,"statusBarService",void 0),i([f.Optional("chartService"),r("design:type",Object)],e.prototype,"chartService",void 0),i([f.PostConstruct,r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],e.prototype,"init",null),e=i([f.Bean("gridApi")],e)}();t.GridApi=P},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/var i=this&&this.__decorate||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},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var n=o(5),s=o(0),a=function(){function e(){}return e.prototype.sizeColumnsToFit=function(e){this.columnController.sizeColumnsToFit(e,"api")},e.prototype.setColumnGroupOpened=function(e,t){this.columnController.setColumnGroupOpened(e,t,"api")},e.prototype.getColumnGroup=function(e,t){return this.columnController.getColumnGroup(e,t)},e.prototype.getOriginalColumnGroup=function(e){return this.columnController.getOriginalColumnGroup(e)},e.prototype.getDisplayNameForColumn=function(e,t){return this.columnController.getDisplayNameForColumn(e,t)},e.prototype.getDisplayNameForColumnGroup=function(e,t){return this.columnController.getDisplayNameForColumnGroup(e,t)},e.prototype.getColumn=function(e){return this.columnController.getPrimaryColumn(e)},e.prototype.setColumnState=function(e){return this.columnController.setColumnState(e,!1,"api")},e.prototype.getColumnState=function(){return this.columnController.getColumnState()},e.prototype.resetColumnState=function(){this.columnController.resetColumnState(!1,"api")},e.prototype.getColumnGroupState=function(){return this.columnController.getColumnGroupState()},e.prototype.setColumnGroupState=function(e){this.columnController.setColumnGroupState(e,"api")},e.prototype.resetColumnGroupState=function(){this.columnController.resetColumnGroupState("api")},e.prototype.isPinning=function(){return this.columnController.isPinningLeft()||this.columnController.isPinningRight()},e.prototype.isPinningLeft=function(){return this.columnController.isPinningLeft()},e.prototype.isPinningRight=function(){return this.columnController.isPinningRight()},e.prototype.getDisplayedColAfter=function(e){return this.columnController.getDisplayedColAfter(e)},e.prototype.getDisplayedColBefore=function(e){return this.columnController.getDisplayedColBefore(e)},e.prototype.setColumnVisible=function(e,t){this.columnController.setColumnVisible(e,t,"api")},e.prototype.setColumnsVisible=function(e,t){this.columnController.setColumnsVisible(e,t,"api")},e.prototype.setColumnPinned=function(e,t){this.columnController.setColumnPinned(e,t,"api")},e.prototype.setColumnsPinned=function(e,t){this.columnController.setColumnsPinned(e,t,"api")},e.prototype.getAllColumns=function(){return this.columnController.getAllPrimaryColumns()},e.prototype.getAllGridColumns=function(){return this.columnController.getAllGridColumns()},e.prototype.getDisplayedLeftColumns=function(){return this.columnController.getDisplayedLeftColumns()},e.prototype.getDisplayedCenterColumns=function(){return this.columnController.getDisplayedCenterColumns()},e.prototype.getDisplayedRightColumns=function(){return this.columnController.getDisplayedRightColumns()},e.prototype.getAllDisplayedColumns=function(){return this.columnController.getAllDisplayedColumns()},e.prototype.getAllDisplayedVirtualColumns=function(){return this.columnController.getAllDisplayedVirtualColumns()},e.prototype.moveColumn=function(e,t){"number"==typeof e?(console.warn("ag-Grid: you are using moveColumn(fromIndex, toIndex) - moveColumn takes a column key and a destination index, not two indexes, to move with indexes use moveColumnByIndex(from,to) instead"),this.columnController.moveColumnByIndex(e,t,"api")):this.columnController.moveColumn(e,t,"api")},e.prototype.moveColumnByIndex=function(e,t){this.columnController.moveColumnByIndex(e,t,"api")},e.prototype.moveColumns=function(e,t){this.columnController.moveColumns(e,t,"api")},e.prototype.moveRowGroupColumn=function(e,t){this.columnController.moveRowGroupColumn(e,t)},e.prototype.setColumnAggFunc=function(e,t){this.columnController.setColumnAggFunc(e,t)},e.prototype.setColumnWidth=function(e,t,o){void 0===o&&(o=!0),this.columnController.setColumnWidth(e,t,!1,o)},e.prototype.setPivotMode=function(e){this.columnController.setPivotMode(e)},e.prototype.isPivotMode=function(){return this.columnController.isPivotMode()},e.prototype.getSecondaryPivotColumn=function(e,t){return this.columnController.getSecondaryPivotColumn(e,t)},e.prototype.setValueColumns=function(e){this.columnController.setValueColumns(e,"api")},e.prototype.getValueColumns=function(){return this.columnController.getValueColumns()},e.prototype.removeValueColumn=function(e){this.columnController.removeValueColumn(e,"api")},e.prototype.removeValueColumns=function(e){this.columnController.removeValueColumns(e,"api")},e.prototype.addValueColumn=function(e){this.columnController.addValueColumn(e,"api")},e.prototype.addValueColumns=function(e){this.columnController.addValueColumns(e,"api")},e.prototype.setRowGroupColumns=function(e){this.columnController.setRowGroupColumns(e,"api")},e.prototype.removeRowGroupColumn=function(e){this.columnController.removeRowGroupColumn(e,"api")},e.prototype.removeRowGroupColumns=function(e){this.columnController.removeRowGroupColumns(e,"api")},e.prototype.addRowGroupColumn=function(e){this.columnController.addRowGroupColumn(e,"api")},e.prototype.addRowGroupColumns=function(e){this.columnController.addRowGroupColumns(e,"api")},e.prototype.getRowGroupColumns=function(){return this.columnController.getRowGroupColumns()},e.prototype.setPivotColumns=function(e){this.columnController.setPivotColumns(e,"api")},e.prototype.removePivotColumn=function(e){this.columnController.removePivotColumn(e,"api")},e.prototype.removePivotColumns=function(e){this.columnController.removePivotColumns(e,"api")},e.prototype.addPivotColumn=function(e){this.columnController.addPivotColumn(e,"api")},e.prototype.addPivotColumns=function(e){this.columnController.addPivotColumns(e,"api")},e.prototype.getPivotColumns=function(){return this.columnController.getPivotColumns()},e.prototype.getLeftDisplayedColumnGroups=function(){return this.columnController.getLeftDisplayedColumnGroups()},e.prototype.getCenterDisplayedColumnGroups=function(){return this.columnController.getCenterDisplayedColumnGroups()},e.prototype.getRightDisplayedColumnGroups=function(){return this.columnController.getRightDisplayedColumnGroups()},e.prototype.getAllDisplayedColumnGroups=function(){return this.columnController.getAllDisplayedColumnGroups()},e.prototype.autoSizeColumn=function(e){return this.columnController.autoSizeColumn(e,"api")},e.prototype.autoSizeColumns=function(e){return this.columnController.autoSizeColumns(e,"api")},e.prototype.autoSizeAllColumns=function(){this.columnController.autoSizeAllColumns("api")},e.prototype.setSecondaryColumns=function(e){this.columnController.setSecondaryColumns(e,"api")},e.prototype.getSecondaryColumns=function(){return this.columnController.getSecondaryColumns()},e.prototype.getPrimaryColumns=function(){return this.columnController.getAllPrimaryColumns()},e.prototype.columnGroupOpened=function(e,t){console.error("ag-Grid: columnGroupOpened no longer exists, use setColumnGroupOpened"),this.setColumnGroupOpened(e,t)},e.prototype.hideColumns=function(e,t){console.error("ag-Grid: hideColumns is deprecated, use setColumnsVisible"),this.columnController.setColumnsVisible(e,!t,"api")},e.prototype.hideColumn=function(e,t){console.error("ag-Grid: hideColumn is deprecated, use setColumnVisible"),this.columnController.setColumnVisible(e,!t,"api")},e.prototype.setState=function(e){return console.error("ag-Grid: setState is deprecated, use setColumnState"),this.setColumnState(e)},e.prototype.getState=function(){return console.error("ag-Grid: getState is deprecated, use getColumnState"),this.getColumnState()},e.prototype.resetState=function(){console.error("ag-Grid: resetState is deprecated, use resetColumnState"),this.resetColumnState()},e.prototype.getAggregationColumns=function(){return console.error("ag-Grid: getAggregationColumns is deprecated, use getValueColumns"),this.columnController.getValueColumns()},e.prototype.removeAggregationColumn=function(e){console.error("ag-Grid: removeAggregationColumn is deprecated, use removeValueColumn"),this.columnController.removeValueColumn(e,"api")},e.prototype.removeAggregationColumns=function(e){console.error("ag-Grid: removeAggregationColumns is deprecated, use removeValueColumns"),this.columnController.removeValueColumns(e,"api")},e.prototype.addAggregationColumn=function(e){console.error("ag-Grid: addAggregationColumn is deprecated, use addValueColumn"),this.columnController.addValueColumn(e,"api")},e.prototype.addAggregationColumns=function(e){console.error("ag-Grid: addAggregationColumns is deprecated, use addValueColumns"),this.columnController.addValueColumns(e,"api")},e.prototype.setColumnAggFunction=function(e,t){console.error("ag-Grid: setColumnAggFunction is deprecated, use setColumnAggFunc"),this.columnController.setColumnAggFunc(e,t,"api")},e.prototype.getDisplayNameForCol=function(e){return console.error("ag-Grid: getDisplayNameForCol is deprecated, use getDisplayNameForColumn"),this.getDisplayNameForColumn(e,null)},i([s.Autowired("columnController"),r("design:type",n.ColumnController)],e.prototype,"columnController",void 0),e=i([s.Bean("columnApi")],e)}();t.ColumnApi=a},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/function i(e,t,o,i){null!==e?"number"!=typeof i?s(t,"querySelectors",{attributeName:o,querySelector:e}):console.error("ag-Grid: QuerySelector should be on an attribute"):console.error("ag-Grid: QuerySelector selector should not be null")}function r(e,t,o){null!==e?s(t,"listenerMethods",{methodName:o,eventName:e}):console.error("ag-Grid: EventListener eventName should not be null")}function n(e,t,o){null!==e?s(t,"methods",{methodName:o,alias:e}):console.error("ag-Grid: EventListener eventName should not be null")}function s(e,t,o){var i=function(e,t){e.__agComponentMetaData||(e.__agComponentMetaData={});e.__agComponentMetaData[t]||(e.__agComponentMetaData[t]={});return e.__agComponentMetaData[t]}(e,e.constructor.name);i[t]||(i[t]=[]),i[t].push(o)}Object.defineProperty(t,"__esModule",{value:!0}),t.QuerySelector=function(e){return i.bind(this,e)},t.RefSelector=function(e){return i.bind(this,"[ref="+e+"]")},t.Listener=function(e){return r.bind(this,e)},t.Method=function(e){return n.bind(this,e)}},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/var i=this&&this.__decorate||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},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var n=o(4),s=o(2),a=o(0),l=o(3),p=o(44),u=o(10),c=o(9),d=function(){function e(e,t,o,i){this.moving=!1,this.menuVisible=!1,this.filterActive=!1,this.eventService=new n.EventService,this.rowGroupActive=!1,this.pivotActive=!1,this.aggregationActive=!1,this.colDef=e,this.userProvidedColDef=t,this.visible=!e.hide,this.sort=e.sort,this.sortedAt=e.sortedAt,this.colId=o,this.primary=i}return e.prototype.setColDef=function(e,t){this.colDef=e,this.userProvidedColDef=t},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.setPinned(this.colDef.pinned);var e=this.gridOptionsWrapper.getMinColWidth(),t=this.gridOptionsWrapper.getMaxColWidth();this.colDef.minWidth?this.minWidth=this.colDef.minWidth:this.minWidth=e,this.colDef.maxWidth?this.maxWidth=this.colDef.maxWidth:this.maxWidth=t,this.actualWidth=this.columnUtils.calculateColInitialWidth(this.colDef);var o=this.gridOptionsWrapper.isSuppressFieldDotNotation();this.fieldContainsDots=s._.exists(this.colDef.field)&&this.colDef.field.indexOf(".")>=0&&!o,this.tooltipFieldContainsDots=s._.exists(this.colDef.tooltipField)&&this.colDef.tooltipField.indexOf(".")>=0&&!o,this.validate()},e.prototype.isEmptyGroup=function(){return!1},e.prototype.isRowGroupDisplayed=function(e){if(s._.missing(this.colDef)||s._.missing(this.colDef.showRowGroup))return!1;var t=!0===this.colDef.showRowGroup,o=this.colDef.showRowGroup===e;return t||o},e.prototype.getUniqueId=function(){return this.getId()},e.prototype.isPrimary=function(){return this.primary},e.prototype.isFilterAllowed=function(){var e=!!this.colDef.filter||!!this.colDef.filterFramework;return this.primary&&e},e.prototype.isFieldContainsDots=function(){return this.fieldContainsDots},e.prototype.isTooltipFieldContainsDots=function(){return this.tooltipFieldContainsDots},e.prototype.validate=function(){var e=this.colDef;if(!this.gridOptionsWrapper.isEnterprise()){["enableRowGroup","rowGroup","rowGroupIndex","enablePivot","enableValue","pivot","pivotIndex","aggFunc","chartDataType"].forEach((function(t){s._.exists(e[t])&&console.warn("ag-Grid: "+t+" is only valid in ag-Grid-Enterprise, your column definition should not have "+t)}))}if(this.gridOptionsWrapper.isTreeData()){["rowGroup","rowGroupIndex","pivot","pivotIndex"].forEach((function(t){s._.exists(e[t])&&console.warn("ag-Grid: "+t+" is not possible when doing tree data, your column definition should not have "+t)}))}s._.exists(this.colDef.width)&&"number"!=typeof this.colDef.width&&console.warn("ag-Grid: colDef.width should be a number, not "+typeof this.colDef.width),s._.get(this,"colDef.cellRendererParams.restrictToOneGroup",null)&&console.warn("ag-Grid: Since ag-grid 11.0.0 cellRendererParams.restrictToOneGroup is deprecated. You should use showRowGroup"),s._.get(this,"colDef.cellRendererParams.keyMap",null)&&console.warn("ag-Grid: Since ag-grid 11.0.0 cellRendererParams.keyMap is deprecated. You should use colDef.keyCreator"),s._.get(this,"colDef.cellRendererParams.keyMap",null)&&console.warn("ag-Grid: Since ag-grid 11.0.0 cellRendererParams.keyMap is deprecated. You should use colDef.keyCreator"),e.floatingCellRenderer&&(console.warn("ag-Grid: since v11, floatingCellRenderer is now pinnedRowCellRenderer"),this.colDef.pinnedRowCellRenderer=e.floatingCellRenderer),e.floatingRendererFramework&&(console.warn("ag-Grid: since v11, floatingRendererFramework is now pinnedRowCellRendererFramework"),this.colDef.pinnedRowCellRendererFramework=e.floatingRendererFramework),e.floatingRendererParams&&(console.warn("ag-Grid: since v11, floatingRendererParams is now pinnedRowCellRendererParams"),this.colDef.pinnedRowCellRendererParams=e.floatingRendererParams),e.floatingValueFormatter&&(console.warn("ag-Grid: since v11, floatingValueFormatter is now pinnedRowValueFormatter"),this.colDef.pinnedRowValueFormatter=e.floatingValueFormatter),e.cellFormatter&&(console.warn("ag-Grid: since v12, cellFormatter is now valueFormatter"),s._.missing(this.colDef.valueFormatter)&&(this.colDef.valueFormatter=e.cellFormatter)),e.headerCellTemplate&&console.warn("ag-Grid: since v15, headerCellTemplate is gone, use header component instead."),e.headerCellRenderer&&console.warn("ag-Grid: since v15, headerCellRenderer is gone, use header component instead."),e.volatile&&console.warn("ag-Grid: since v16, colDef.volatile is gone, please check refresh docs on how to refresh specific cells."),e.suppressSorting&&(console.warn("ag-Grid: since v20, colDef.suppressSorting is gone, instead use colDef.sortable=false.",this.colDef),this.colDef.sortable=!1),e.suppressFilter&&(console.warn("ag-Grid: since v20, colDef.suppressFilter is gone, instead use colDef.filter=false.",this.colDef),this.colDef.filter=!1),e.suppressResize&&(console.warn("ag-Grid: since v20, colDef.suppressResize is gone, instead use colDef.resizable=false.",this.colDef),this.colDef.resizable=!1),e.tooltip&&(console.warn("ag-Grid: since v20.1, colDef.tooltip is gone, instead use colDef.tooltipValueGetter.",this.colDef),this.colDef.tooltipValueGetter=e.tooltip)},e.prototype.addEventListener=function(e,t){this.eventService.addEventListener(e,t)},e.prototype.removeEventListener=function(e,t){this.eventService.removeEventListener(e,t)},e.prototype.createIsColumnFuncParams=function(e){return{node:e,data:e.data,column:this,colDef:this.colDef,context:this.gridOptionsWrapper.getContext(),api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi()}},e.prototype.isSuppressNavigable=function(e){if("boolean"==typeof this.colDef.suppressNavigable)return this.colDef.suppressNavigable;if("function"==typeof this.colDef.suppressNavigable){var t=this.createIsColumnFuncParams(e);return(0,this.colDef.suppressNavigable)(t)}return!1},e.prototype.isCellEditable=function(e){return!(e.group&&!this.gridOptionsWrapper.isEnableGroupEdit())&&this.isColumnFunc(e,this.colDef.editable)},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!0===this.colDef.resizable},e.prototype.isColumnFunc=function(e,t){return"boolean"==typeof t?t:"function"==typeof t&&t(this.createIsColumnFuncParams(e))},e.prototype.setMoving=function(t,o){void 0===o&&(o="api"),this.moving=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_MOVING_CHANGED,o))},e.prototype.createColumnEvent=function(e,t){return{api:this.gridApi,columnApi:this.columnApi,type:e,column:this,columns:[this],source:t}},e.prototype.isMoving=function(){return this.moving},e.prototype.getSort=function(){return this.sort},e.prototype.setSort=function(t,o){void 0===o&&(o="api"),this.sort!==t&&(this.sort=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_SORT_CHANGED,o)))},e.prototype.setMenuVisible=function(t,o){void 0===o&&(o="api"),this.menuVisible!==t&&(this.menuVisible=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_MENU_VISIBLE_CHANGED,o)))},e.prototype.isMenuVisible=function(){return this.menuVisible},e.prototype.isSortAscending=function(){return this.sort===e.SORT_ASC},e.prototype.isSortDescending=function(){return this.sort===e.SORT_DESC},e.prototype.isSortNone=function(){return s._.missing(this.sort)},e.prototype.isSorting=function(){return s._.exists(this.sort)},e.prototype.getSortedAt=function(){return this.sortedAt},e.prototype.setSortedAt=function(e){this.sortedAt=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(t,o){void 0===o&&(o="api"),this.oldLeft=this.left,this.left!==t&&(this.left=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_LEFT_CHANGED,o)))},e.prototype.isFilterActive=function(){return this.filterActive},e.prototype.setFilterActive=function(t,o,i){void 0===o&&(o="api"),this.filterActive!==t&&(this.filterActive=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_FILTER_ACTIVE_CHANGED,o)));var r=this.createColumnEvent(e.EVENT_FILTER_CHANGED,o);i&&s._.mergeDeep(r,i),this.eventService.dispatchEvent(r)},e.prototype.setPinned=function(t){!0===t||t===e.PINNED_LEFT?this.pinned=e.PINNED_LEFT:t===e.PINNED_RIGHT?this.pinned=e.PINNED_RIGHT:this.pinned=null},e.prototype.setFirstRightPinned=function(t,o){void 0===o&&(o="api"),this.firstRightPinned!==t&&(this.firstRightPinned=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_FIRST_RIGHT_PINNED_CHANGED,o)))},e.prototype.setLastLeftPinned=function(t,o){void 0===o&&(o="api"),this.lastLeftPinned!==t&&(this.lastLeftPinned=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_LAST_LEFT_PINNED_CHANGED,o)))},e.prototype.isFirstRightPinned=function(){return this.firstRightPinned},e.prototype.isLastLeftPinned=function(){return this.lastLeftPinned},e.prototype.isPinned=function(){return this.pinned===e.PINNED_LEFT||this.pinned===e.PINNED_RIGHT},e.prototype.isPinnedLeft=function(){return this.pinned===e.PINNED_LEFT},e.prototype.isPinnedRight=function(){return this.pinned===e.PINNED_RIGHT},e.prototype.getPinned=function(){return this.pinned},e.prototype.setVisible=function(t,o){void 0===o&&(o="api");var i=!0===t;this.visible!==i&&(this.visible=i,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_VISIBLE_CHANGED,o)))},e.prototype.isVisible=function(){return this.visible},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.getDefinition=function(){return this.colDef},e.prototype.getActualWidth=function(){return this.actualWidth},e.prototype.createBaseColDefParams=function(e){return{node:e,data:e.data,colDef:this.colDef,column:this,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()}},e.prototype.getColSpan=function(e){if(s._.missing(this.colDef.colSpan))return 1;var t=this.createBaseColDefParams(e),o=this.colDef.colSpan(t);return Math.max(o,1)},e.prototype.getRowSpan=function(e){if(s._.missing(this.colDef.rowSpan))return 1;var t=this.createBaseColDefParams(e),o=this.colDef.rowSpan(t);return Math.max(o,1)},e.prototype.setActualWidth=function(t,o){void 0===o&&(o="api"),this.actualWidth!==t&&(this.actualWidth=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_WIDTH_CHANGED,o)))},e.prototype.isGreaterThanMax=function(e){return!!this.maxWidth&&e>this.maxWidth},e.prototype.getMinWidth=function(){return this.minWidth},e.prototype.getMaxWidth=function(){return this.maxWidth},e.prototype.setMinimum=function(e){void 0===e&&(e="api"),this.setActualWidth(this.minWidth,e)},e.prototype.setRowGroupActive=function(t,o){void 0===o&&(o="api"),this.rowGroupActive!==t&&(this.rowGroupActive=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_ROW_GROUP_CHANGED,o)))},e.prototype.isRowGroupActive=function(){return this.rowGroupActive},e.prototype.setPivotActive=function(t,o){void 0===o&&(o="api"),this.pivotActive!==t&&(this.pivotActive=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_PIVOT_CHANGED,o)))},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(t,o){void 0===o&&(o="api"),this.aggregationActive!==t&&(this.aggregationActive=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_VALUE_CHANGED,o)))},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.prototype.isLockPosition=function(){return console.warn("ag-Grid: since v21, col.isLockPosition() should not be used, please use col.getColDef().lockPosition instead."),!!this.colDef&&!!this.colDef.lockPosition},e.prototype.isLockVisible=function(){return console.warn("ag-Grid: since v21, col.isLockVisible() should not be used, please use col.getColDef().lockVisible instead."),!!this.colDef&&!!this.colDef.lockVisible},e.prototype.isLockPinned=function(){return console.warn("ag-Grid: since v21, col.isLockPinned() should not be used, please use col.getColDef().lockPinned instead."),!!this.colDef&&!!this.colDef.lockPinned},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_MENU_VISIBLE_CHANGED="menuVisibleChanged",e.EVENT_ROW_GROUP_CHANGED="columnRowGroupChanged",e.EVENT_PIVOT_CHANGED="columnPivotChanged",e.EVENT_VALUE_CHANGED="columnValueChanged",e.PINNED_RIGHT="right",e.PINNED_LEFT="left",e.SORT_ASC="asc",e.SORT_DESC="desc",i([a.Autowired("gridOptionsWrapper"),r("design:type",l.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([a.Autowired("columnUtils"),r("design:type",p.ColumnUtils)],e.prototype,"columnUtils",void 0),i([a.Autowired("columnApi"),r("design:type",u.ColumnApi)],e.prototype,"columnApi",void 0),i([a.Autowired("gridApi"),r("design:type",c.GridApi)],e.prototype,"gridApi",void 0),i([a.PostConstruct,r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],e.prototype,"initialise",null),e}();t.Column=d},function(e,t,o){"use strict";var i=this&&this.__decorate||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},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var n=o(1),s=function(){function e(){}var t;return t=e,e.prototype.translate=function(e){return this.gridOptionsWrapper.getLocaleTextFunc()(e,t.DEFAULT_TRANSLATIONS[e])},e.DEFAULT_TRANSLATIONS={pivotChartTitle:"Pivot Chart",rangeChartTitle:"Range Chart",settings:"Settings",data:"Data",format:"Format",categories:"Categories",series:"Series",xyValues:"X Y Values",axis:"Axis",color:"Color",thickness:"Thickness",xRotation:"X Rotation",yRotation:"Y Rotation",ticks:"Ticks",width:"Width",length:"Length",padding:"Padding",chart:"Chart",title:"Title",font:"Font",top:"Top",right:"Right",bottom:"Bottom",left:"Left",labels:"Labels",size:"Size",legend:"Legend",position:"Position",markerSize:"Marker Size",markerStroke:"Marker Stroke",markerPadding:"Marker Padding",itemPaddingX:"Item Padding X",itemPaddingY:"Item Padding Y",strokeWidth:"Stroke Width",offset:"Offset",tooltips:"Tooltips",offsets:"Offsets",callout:"Callout",markers:"Markers",shadow:"Shadow",blur:"Blur",xOffset:"X Offset",yOffset:"Y Offset",lineWidth:"Line Width",normal:"Normal",bold:"Bold",italic:"Italic",boldItalic:"Bold Italic",fillOpacity:"Fill Opacity",strokeOpacity:"Line Opacity",groupedColumnTooltip:"Grouped",stackedColumnTooltip:"Stacked",normalizedColumnTooltip:"100% Stacked",groupedBarTooltip:"Grouped",stackedBarTooltip:"Stacked",normalizedBarTooltip:"100% Stacked",pieTooltip:"Pie",doughnutTooltip:"Doughnut",lineTooltip:"Line",groupedAreaTooltip:"Grouped",stackedAreaTooltip:"Stacked",normalizedAreaTooltip:"100% Stacked",scatterTooltip:"Scatter",bubbleTooltip:"Bubble",columnGroup:"Column",barGroup:"Bar",pieGroup:"Pie",lineGroup:"Line",scatterGroup:"X Y (Scatter)",areaGroup:"Area",pivotChartRequiresPivotMode:"Pivot Chart requires Pivot Mode enabled.",noDataToChart:"No data available to be charted."},i([n.Autowired("gridOptionsWrapper"),r("design:type",n.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),e=t=i([n.Bean("chartTranslator")],e)}();t.ChartTranslator=s},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/var i=this&&this.__decorate||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},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},n=this&&this.__param||function(e,t){return function(o,i){t(o,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});var s=o(3),a=o(0),l=o(0),p=function(){function e(){}return e.prototype.setBeans=function(e){this.logging=e.isDebug()},e.prototype.create=function(e){return new u(e,this.isLogging.bind(this))},e.prototype.isLogging=function(){return this.logging},i([n(0,l.Qualifier("gridOptionsWrapper")),r("design:type",Function),r("design:paramtypes",[s.GridOptionsWrapper]),r("design:returntype",void 0)],e.prototype,"setBeans",null),e=i([a.Bean("loggerFactory")],e)}();t.LoggerFactory=p;var u=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}();t.Logger=u},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/var i=this&&this.__decorate||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},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var n=o(4),s=o(3),a=o(0),l=o(2),p=function(){function e(){this.destroyFunctions=[],this.destroyed=!1}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 n.EventService),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.addDestroyableEventListener=function(e,t,o){var i=this;if(!this.destroyed){e instanceof HTMLElement?l._.addSafePassiveEventListener(this.getFrameworkOverrides(),e,t,o):e instanceof Window?e.addEventListener(t,o):(s.GridOptionsWrapper,e.addEventListener(t,o));var r=function(){e instanceof HTMLElement?e.removeEventListener(t,o):e instanceof Window?e.removeEventListener(t,o):(s.GridOptionsWrapper,e.removeEventListener(t,o)),i.destroyFunctions=i.destroyFunctions.filter((function(e){return e!==r}))};return this.destroyFunctions.push(r),r}},e.prototype.isAlive=function(){return!this.destroyed},e.prototype.addDestroyFunc=function(e){this.isAlive()?this.destroyFunctions.push(e):e()},e.EVENT_DESTROYED="destroyed",i([a.Autowired("context"),r("design:type",a.Context)],e.prototype,"context",void 0),i([a.Autowired("frameworkOverrides"),r("design:type",Object)],e.prototype,"frameworkOverrides",void 0),i([a.PreDestroy,r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],e.prototype,"destroy",null),e}();t.BeanStub=p},function(e,t,o){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var n=o(28),s=o(29),a=o(98),l=function(e){function t(){var o=null!==e&&e.apply(this,arguments)||this;return o.isContainerNode=!0,o.getBBox=function(){var e=1/0,i=-1/0,r=1/0,n=-1/0;return o.dirtyTransform&&o.computeTransformMatrix(),o.children.forEach((function(o){if(o.visible){var s=o.getBBox();if(s){if(!(o instanceof t)){o.dirtyTransform&&o.computeTransformMatrix();for(var l=a.Matrix.flyweight(o.matrix),p=o.parent;p;)l.preMultiplySelf(p.matrix),p=p.parent;l.transformBBox(s,0,s)}var u=s.x,c=s.y;u<e&&(e=u),c<r&&(r=c),u+s.width>i&&(i=u+s.width),c+s.height>n&&(n=c+s.height)}}})),new s.BBox(e,r,i-e,n-r)},o}return r(t,e),t.prototype.isPointInNode=function(e,t){return!0},t.prototype.render=function(e){this.dirtyTransform&&this.computeTransformMatrix(),this.matrix.toContext(e);for(var t=this.children,o=t.length,i=0;i<o;i++){e.save();var r=t[i];r.visible&&r.render(e),e.restore()}},t.className="Group",t}(n.Node);t.Group=l},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/var i=this&&this.__decorate||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},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var n=o(2),s=o(3),a=o(32),l=o(24),p=o(5),u=o(10),c=o(0),d=o(4),h=o(6),f=o(9),g=o(19),y=function(){function e(){this.allFilters={},this.quickFilter=null,this.quickFilterParts=null,this.processingFilterChange=!1}var t;return t=e,e.prototype.registerGridCore=function(e){this.gridCore=e},e.prototype.init=function(){this.eventService.addEventListener(h.Events.EVENT_ROW_DATA_CHANGED,this.onNewRowsLoaded.bind(this)),this.eventService.addEventListener(h.Events.EVENT_NEW_COLUMNS_LOADED,this.onNewColumnsLoaded.bind(this)),this.quickFilter=this.parseQuickFilter(this.gridOptionsWrapper.getQuickFilterText()),this.setQuickFilterParts(),this.allowShowChangeAfterFilter=this.gridOptionsWrapper.isAllowShowChangeAfterFilter(),this.checkExternalFilter()},e.prototype.setQuickFilterParts=function(){this.quickFilter?this.quickFilterParts=this.quickFilter.split(" "):this.quickFilterParts=null},e.prototype.setFilterModel=function(e){var t=this,o=[];if(e){var i=Object.keys(e);n._.iterateObject(this.allFilters,(function(r,s){n._.removeFromArray(i,r);var a=e[r];t.setModelOnFilterWrapper(s.filterPromise,a),o.push(s.filterPromise)})),n._.iterateArray(i,(function(i){var r=t.columnController.getPrimaryColumn(i);if(r){var n=t.getOrCreateFilterWrapper(r,"NO_UI");t.setModelOnFilterWrapper(n.filterPromise,e[i]),o.push(n.filterPromise)}else console.warn("Warning ag-grid setFilterModel - no column found for colId "+i)}))}else n._.iterateObject(this.allFilters,(function(e,i){t.setModelOnFilterWrapper(i.filterPromise,null),o.push(i.filterPromise)}));n.Promise.all(o).then((function(e){t.onFilterChanged()}))},e.prototype.setModelOnFilterWrapper=function(e,t){e.then((function(e){"function"==typeof e.setModel?e.setModel(t):console.warn("Warning ag-grid - filter missing setModel method, which is needed for setFilterModel")}))},e.prototype.getFilterModel=function(){var e={};return n._.iterateObject(this.allFilters,(function(t,o){var i=o.filterPromise.resolveNow(null,(function(e){return e}));if(null==i)return null;if("function"==typeof i.getModel){var r=i.getModel();n._.exists(r)&&(e[t]=r)}else console.warn("Warning ag-grid - filter API missing getModel method, which is needed for getFilterModel")})),e},e.prototype.isAdvancedFilterPresent=function(){return this.advancedFilterPresent},e.prototype.setAdvancedFilterPresent=function(){var e=!1;n._.iterateObject(this.allFilters,(function(t,o){o.filterPromise.resolveNow(!1,(function(e){return e.isFilterActive()}))&&(e=!0)})),this.advancedFilterPresent=e},e.prototype.updateFilterFlagInColumns=function(e,t){n._.iterateObject(this.allFilters,(function(o,i){var r=i.filterPromise.resolveNow(!1,(function(e){return e.isFilterActive()}));i.column.setFilterActive(r,e,t)}))},e.prototype.isAnyFilterPresent=function(){return this.isQuickFilterPresent()||this.advancedFilterPresent||this.externalFilterPresent},e.prototype.doesFilterPass=function(e,t){for(var o=e.data,i=Object.keys(this.allFilters),r=0,n=i.length;r<n;r++){var s=i[r],a=this.allFilters[s];if(void 0!==a){var l=a.filterPromise.resolveNow(void 0,(function(e){return e}));if(void 0!==l&&l!==t&&l.isFilterActive()){l.doesFilterPass||console.error("Filter is missing method doesFilterPass");var p={node:e,data:o};if(!l.doesFilterPass(p))return!1}}}return!0},e.prototype.parseQuickFilter=function(e){return n._.missing(e)||""===e?null:this.gridOptionsWrapper.isRowModelDefault()?e.toUpperCase():(console.warn("ag-grid: quick filtering only works with the Client-side Row Model"),null)},e.prototype.setQuickFilter=function(e){var t=this.parseQuickFilter(e);this.quickFilter!==t&&(this.quickFilter=t,this.setQuickFilterParts(),this.onFilterChanged())},e.prototype.checkExternalFilter=function(){this.externalFilterPresent=this.gridOptionsWrapper.isExternalFilterPresent()},e.prototype.onFilterChanged=function(e){this.setAdvancedFilterPresent(),this.updateFilterFlagInColumns("filterChanged",e),this.checkExternalFilter(),n._.iterateObject(this.allFilters,(function(e,t){t.filterPromise.then((function(e){e.onAnyFilterChanged&&e.onAnyFilterChanged()}))}));var t={type:h.Events.EVENT_FILTER_CHANGED,api:this.gridApi,columnApi:this.columnApi};e&&n._.mergeDeep(t,e),this.processingFilterChange=!0,this.eventService.dispatchEvent(t),this.processingFilterChange=!1},e.prototype.isSuppressFlashingCellsBecauseFiltering=function(){return!this.allowShowChangeAfterFilter&&this.processingFilterChange},e.prototype.isQuickFilterPresent=function(){return null!==this.quickFilter},e.prototype.doesRowPassOtherFilters=function(e,t){return this.doesRowPassFilter(t,e)},e.prototype.doesRowPassQuickFilterNoCache=function(e,t){var o=this,i=this.columnController.getAllColumnsForQuickFilter(),r=!1;return i.forEach((function(i){if(!r){var s=o.getQuickFilterTextForColumn(i,e);n._.exists(s)&&s.indexOf(t)>=0&&(r=!0)}})),r},e.prototype.doesRowPassQuickFilterCache=function(e,t){return e.quickFilterAggregateText||this.aggregateRowForQuickFilter(e),e.quickFilterAggregateText.indexOf(t)>=0},e.prototype.doesRowPassQuickFilter=function(e){var t=this,o=!0,i=this.gridOptionsWrapper.isCacheQuickFilter();return this.quickFilterParts.forEach((function(r){(i?t.doesRowPassQuickFilterCache(e,r):t.doesRowPassQuickFilterNoCache(e,r))||(o=!1)})),o},e.prototype.doesRowPassFilter=function(e,t){return!(this.isQuickFilterPresent()&&!this.doesRowPassQuickFilter(e))&&(!(this.externalFilterPresent&&!this.gridOptionsWrapper.doesExternalFilterPass(e))&&!(this.advancedFilterPresent&&!this.doesFilterPass(e,t)))},e.prototype.getQuickFilterTextForColumn=function(e,t){var o,i=this.valueService.getValue(e,t,!0),r=e.getColDef();if(e.getColDef().getQuickFilterText){var s={value:i,node:t,data:t.data,column:e,colDef:r,context:this.gridOptionsWrapper.getContext()};o=e.getColDef().getQuickFilterText(s)}else o=i;return n._.exists(o)?o.toString().toUpperCase():null},e.prototype.aggregateRowForQuickFilter=function(e){var o=this,i=[];this.columnController.getAllColumnsForQuickFilter().forEach((function(t){var r=o.getQuickFilterTextForColumn(t,e);n._.exists(r)&&i.push(r)})),e.quickFilterAggregateText=i.join(t.QUICK_FILTER_SEPARATOR)},e.prototype.onNewRowsLoaded=function(e){n._.iterateObject(this.allFilters,(function(e,t){t.filterPromise.then((function(e){e.onNewRowsLoaded&&e.onNewRowsLoaded()}))})),this.updateFilterFlagInColumns(e),this.setAdvancedFilterPresent()},e.prototype.createValueGetter=function(e){var t=this;return function(o){return t.valueService.getValue(e,o,!0)}},e.prototype.getFilterComponent=function(e,t){return this.getOrCreateFilterWrapper(e,t).filterPromise},e.prototype.isFilterActive=function(e){var t=this.cachedFilter(e);return!!t&&t.filterPromise.resolveNow(!1,(function(e){return e.isFilterActive()}))},e.prototype.getOrCreateFilterWrapper=function(e,t){var o=this.cachedFilter(e);return o?"NO_UI"!==t&&this.putIntoGui(o,t):(o=this.createFilterWrapper(e,t),this.allFilters[e.getColId()]=o),o},e.prototype.cachedFilter=function(e){return this.allFilters[e.getColId()]},e.prototype.createFilterInstance=function(e,t){var o=this,i="agTextColumnFilter";this.gridOptionsWrapper.isEnterprise()&&(i="agSetColumnFilter");var r,s=n._.cloneObject(e.getColDef()),a=this.createFilterParams(e,s,t);a.filterChangedCallback=this.onFilterChanged.bind(this),a.filterModifiedCallback=function(){var t={type:h.Events.EVENT_FILTER_MODIFIED,api:o.gridApi,columnApi:o.columnApi,column:e,filterInstance:r};o.eventService.dispatchEvent(t)};var l=this.userComponentFactory.newFilterComponent(s,a,i,(function(e,t){return n._.assign(e,{doesRowPassOtherFilter:o.doesRowPassOtherFilters.bind(o,t)})}));return l.then((function(e){return r=e})),l},e.prototype.createFilterParams=function(e,t,o){void 0===o&&(o=null);var i={api:this.gridOptionsWrapper.getApi(),column:e,colDef:t,rowModel:this.rowModel,filterChangedCallback:null,filterModifiedCallback:null,valueGetter:this.createValueGetter(e),context:this.gridOptionsWrapper.getContext(),doesRowPassOtherFilter:null};return o&&(i.$scope=o),i},e.prototype.createFilterWrapper=function(e,t){var o={column:e,filterPromise:null,scope:null,compiledElement:null,guiPromise:n.Promise.external()};return o.scope=this.gridOptionsWrapper.isAngularCompileFilters()?this.$scope.$new():null,o.filterPromise=this.createFilterInstance(e,o.scope),this.putIntoGui(o,t),o},e.prototype.putIntoGui=function(e,t){var o=this,i=document.createElement("div");i.className="ag-filter",e.filterPromise.then((function(r){var s=r.getGui();if(n._.missing(s)&&console.warn("getGui method from filter returned "+s+", it should be a DOM element or an HTML template string."),"string"==typeof s&&(s=n._.loadTemplate(s)),i.appendChild(s),e.scope){var a=o.$compile(i)(e.scope);e.compiledElement=a,window.setTimeout((function(){return e.scope.$apply()}),0)}e.guiPromise.resolve(i),o.eventService.dispatchEvent({type:h.Events.EVENT_FILTER_OPENED,column:e.column,source:t,eGui:i,api:o.gridApi,columnApi:o.columnApi})}))},e.prototype.onNewColumnsLoaded=function(){var e=this,t=!1;n._.iterateObject(this.allFilters,(function(o,i){!e.columnController.getPrimaryColumn(i.column)&&(t=!0,e.disposeFilterWrapper(i,"filterDestroyed"))})),t&&this.onFilterChanged()},e.prototype.destroyFilter=function(e,t){void 0===t&&(t="api");var o=this.allFilters[e.getColId()];o&&(this.disposeFilterWrapper(o,t),this.onFilterChanged())},e.prototype.disposeFilterWrapper=function(e,t){var o=this;e.filterPromise.then((function(i){i.setModel(null),i.destroy&&i.destroy(),e.column.setFilterActive(!1,t),e.scope&&(e.compiledElement&&e.compiledElement.remove(),e.scope.$destroy()),delete o.allFilters[e.column.getColId()]}))},e.prototype.destroy=function(){var e=this;n._.iterateObject(this.allFilters,(function(t,o){e.disposeFilterWrapper(o,"filterDestroyed")}))},e.QUICK_FILTER_SEPARATOR="\n",i([c.Autowired("$compile"),r("design:type",Object)],e.prototype,"$compile",void 0),i([c.Autowired("$scope"),r("design:type",Object)],e.prototype,"$scope",void 0),i([c.Autowired("gridOptionsWrapper"),r("design:type",s.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([c.Autowired("popupService"),r("design:type",a.PopupService)],e.prototype,"popupService",void 0),i([c.Autowired("valueService"),r("design:type",l.ValueService)],e.prototype,"valueService",void 0),i([c.Autowired("columnController"),r("design:type",p.ColumnController)],e.prototype,"columnController",void 0),i([c.Autowired("rowModel"),r("design:type",Object)],e.prototype,"rowModel",void 0),i([c.Autowired("eventService"),r("design:type",d.EventService)],e.prototype,"eventService",void 0),i([c.Autowired("enterprise"),r("design:type",Boolean)],e.prototype,"enterprise",void 0),i([c.Autowired("context"),r("design:type",c.Context)],e.prototype,"context",void 0),i([c.Autowired("columnApi"),r("design:type",u.ColumnApi)],e.prototype,"columnApi",void 0),i([c.Autowired("gridApi"),r("design:type",f.GridApi)],e.prototype,"gridApi",void 0),i([c.Autowired("userComponentFactory"),r("design:type",g.UserComponentFactory)],e.prototype,"userComponentFactory",void 0),i([c.PostConstruct,r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],e.prototype,"init",null),i([c.PreDestroy,r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],e.prototype,"destroy",null),e=t=i([c.Bean("filterManager")],e)}();t.FilterManager=y},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/var i=this&&this.__decorate||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},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},n=this&&this.__param||function(e,t){return function(o,i){t(o,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});var s,a,l,p=o(14),u=o(0),c=o(3),d=o(37),h=o(5),f=o(60),g=o(2);!function(e){e[e.ToolPanel=0]="ToolPanel",e[e.HeaderCell=1]="HeaderCell",e[e.RowDrag=2]="RowDrag"}(s=t.DragSourceType||(t.DragSourceType={})),function(e){e[e.Up=0]="Up",e[e.Down=1]="Down"}(a=t.VDirection||(t.VDirection={})),function(e){e[e.Left=0]="Left",e[e.Right=1]="Right"}(l=t.HDirection||(t.HDirection={}));var y=function(){function e(){this.dragSourceAndParamsList=[],this.dropTargets=[]}var t;return t=e,e.prototype.init=function(){this.ePinnedIcon=g._.createIcon("columnMovePin",this.gridOptionsWrapper,null),this.ePlusIcon=g._.createIcon("columnMoveAdd",this.gridOptionsWrapper,null),this.eHiddenIcon=g._.createIcon("columnMoveHide",this.gridOptionsWrapper,null),this.eMoveIcon=g._.createIcon("columnMoveMove",this.gridOptionsWrapper,null),this.eLeftIcon=g._.createIcon("columnMoveLeft",this.gridOptionsWrapper,null),this.eRightIcon=g._.createIcon("columnMoveRight",this.gridOptionsWrapper,null),this.eGroupIcon=g._.createIcon("columnMoveGroup",this.gridOptionsWrapper,null),this.eAggregateIcon=g._.createIcon("columnMoveValue",this.gridOptionsWrapper,null),this.ePivotIcon=g._.createIcon("columnMovePivot",this.gridOptionsWrapper,null),this.eDropNotAllowedIcon=g._.createIcon("dropNotAllowed",this.gridOptionsWrapper,null)},e.prototype.setBeans=function(e){this.logger=e.create("OldToolPanelDragAndDropService")},e.prototype.getStringType=function(e){switch(e){case s.RowDrag:return"row";case s.HeaderCell:return"headerCell";case s.ToolPanel:return"toolPanel";default:return console.warn("ag-Grid: bug - unknown drag type "+e),null}},e.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)},e.prototype.removeDragSource=function(e){var t=g._.find(this.dragSourceAndParamsList,(function(t){return t.dragSource===e}));t&&(this.dragService.removeDragSource(t.params),g._.removeFromArray(this.dragSourceAndParamsList,t))},e.prototype.destroy=function(){var e=this;this.dragSourceAndParamsList.forEach((function(t){e.dragService.removeDragSource(t.params)})),this.dragSourceAndParamsList.length=0},e.prototype.nudge=function(){this.dragging&&this.onDragging(this.eventLastTime,!0)},e.prototype.onDragStart=function(e,t){this.dragging=!0,this.dragSource=e,this.eventLastTime=t,this.dragItem=this.dragSource.dragItemCallback(),this.lastDropTarget=this.dragSource.dragSourceDropTarget,this.dragSource.dragStarted&&this.dragSource.dragStarted(),this.createGhost()},e.prototype.onDragStop=function(e){if(this.eventLastTime=null,this.dragging=!1,this.dragSource.dragStopped&&this.dragSource.dragStopped(),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()},e.prototype.onDragging=function(e,t){var o=this.workOutHDirection(e),i=this.workOutVDirection(e);this.eventLastTime=e,this.positionGhost(e);var r=g._.find(this.dropTargets,this.isMouseOnDropTarget.bind(this,e));if(r!==this.lastDropTarget)this.leaveLastTargetIfExists(e,o,i,t),this.enterDragTargetIfExists(r,e,o,i,t),this.lastDropTarget=r;else if(r){var n=this.createDropTargetEvent(r,e,o,i,t);r.onDragging(n)}},e.prototype.enterDragTargetIfExists=function(e,t,o,i,r){if(e){var n=this.createDropTargetEvent(e,t,o,i,r);e.onDragEnter(n),this.setGhostIcon(e.getIconName?e.getIconName():null)}},e.prototype.leaveLastTargetIfExists=function(e,t,o,i){if(this.lastDropTarget){var r=this.createDropTargetEvent(this.lastDropTarget,e,t,o,i);this.lastDropTarget.onDragLeave(r),this.setGhostIcon(null)}},e.prototype.getAllContainersFromDropTarget=function(e){var t=[e.getContainer()],o=e.getSecondaryContainers?e.getSecondaryContainers():null;return o&&(t=t.concat(o)),t},e.prototype.isMouseOnDropTarget=function(e,t){var o=this.getAllContainersFromDropTarget(t),i=!1;return o.forEach((function(t){if(t){var o=t.getBoundingClientRect();if(0!==o.width&&0!==o.height){var r=e.clientX>=o.left&&e.clientX<=o.right,n=e.clientY>=o.top&&e.clientY<=o.bottom;r&&n&&(i=!0)}}})),!!i&&t.isInterestedIn(this.dragSource.type)},e.prototype.addDropTarget=function(e){this.dropTargets.push(e)},e.prototype.workOutHDirection=function(e){return this.eventLastTime.clientX>e.clientX?l.Left:this.eventLastTime.clientX<e.clientX?l.Right:null},e.prototype.workOutVDirection=function(e){return this.eventLastTime.clientY>e.clientY?a.Up:this.eventLastTime.clientY<e.clientY?a.Down:null},e.prototype.createDropTargetEvent=function(e,t,o,i,r){var n=e.getContainer().getBoundingClientRect();return{event:t,x:t.clientX-n.left,y:t.clientY-n.top,vDirection:i,hDirection:o,dragSource:this.dragSource,fromNudge:r,dragItem:this.dragItem}},e.prototype.positionGhost=function(e){var t=this.eGhost.getBoundingClientRect().height,o=g._.getBodyWidth()-2,i=g._.getBodyHeight()-2,r=e.pageY-t/2,n=e.pageX-30,s=this.gridOptionsWrapper.getDocument(),a=window.pageYOffset||s.documentElement.scrollTop,l=window.pageXOffset||s.documentElement.scrollLeft;o>0&&n+this.eGhost.clientWidth>o+l&&(n=o+l-this.eGhost.clientWidth),n<0&&(n=0),i>0&&r+this.eGhost.clientHeight>i+a&&(r=i+a-this.eGhost.clientHeight),r<0&&(r=0),this.eGhost.style.left=n+"px",this.eGhost.style.top=r+"px"},e.prototype.removeGhost=function(){this.eGhost&&this.eGhostParent&&this.eGhostParent.removeChild(this.eGhost),this.eGhost=null},e.prototype.createGhost=function(){this.eGhost=g._.loadTemplate(t.GHOST_TEMPLATE);var e=this.environment.getTheme().theme;e&&g._.addCssClass(this.eGhost,e),this.eGhostIcon=this.eGhost.querySelector(".ag-dnd-ghost-icon"),this.setGhostIcon(null),this.eGhost.querySelector(".ag-dnd-ghost-label").innerHTML=g._.escape(this.dragSource.dragItemName),this.eGhost.style.height="25px",this.eGhost.style.top="20px",this.eGhost.style.left="20px";var o=this.gridOptionsWrapper.getDocument();this.eGhostParent=o.querySelector("body"),this.eGhostParent?this.eGhostParent.appendChild(this.eGhost):console.warn("ag-Grid: could not find document body, it is needed for dragging columns")},e.prototype.setGhostIcon=function(e,o){var i;switch(void 0===o&&(o=!1),g._.clearElement(this.eGhostIcon),e){case t.ICON_ADD:i=this.ePlusIcon;break;case t.ICON_PINNED:i=this.ePinnedIcon;break;case t.ICON_MOVE:i=this.eMoveIcon;break;case t.ICON_LEFT:i=this.eLeftIcon;break;case t.ICON_RIGHT:i=this.eRightIcon;break;case t.ICON_GROUP:i=this.eGroupIcon;break;case t.ICON_AGGREGATE:i=this.eAggregateIcon;break;case t.ICON_PIVOT:i=this.ePivotIcon;break;case t.ICON_NOT_ALLOWED:i=this.eDropNotAllowedIcon;break;default:i=this.eHiddenIcon}this.eGhostIcon.appendChild(i),g._.addOrRemoveCssClass(this.eGhostIcon,"ag-shake-left-to-right",o)},e.ICON_PINNED="pinned",e.ICON_ADD="add",e.ICON_MOVE="move",e.ICON_LEFT="left",e.ICON_RIGHT="right",e.ICON_GROUP="group",e.ICON_AGGREGATE="aggregate",e.ICON_PIVOT="pivot",e.ICON_NOT_ALLOWED="notAllowed",e.GHOST_TEMPLATE='<div class="ag-dnd-ghost"> <span class="ag-dnd-ghost-icon ag-shake-left-to-right"></span> <div class="ag-dnd-ghost-label"> </div></div>',i([u.Autowired("gridOptionsWrapper"),r("design:type",c.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([u.Autowired("dragService"),r("design:type",d.DragService)],e.prototype,"dragService",void 0),i([u.Autowired("environment"),r("design:type",f.Environment)],e.prototype,"environment",void 0),i([u.Autowired("columnController"),r("design:type",h.ColumnController)],e.prototype,"columnController",void 0),i([u.PostConstruct,r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],e.prototype,"init",null),i([n(0,u.Qualifier("loggerFactory")),r("design:type",Function),r("design:paramtypes",[p.LoggerFactory]),r("design:returntype",void 0)],e.prototype,"setBeans",null),i([u.PreDestroy,r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],e.prototype,"destroy",null),e=t=i([u.Bean("dragAndDropService")],e)}();t.DragAndDropService=y},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/var i=this&&this.__decorate||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},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var n,s=o(0),a=o(3),l=o(130),p=o(139),u=o(140),c=o(2);!function(e){e[e.DEFAULT=0]="DEFAULT",e[e.REGISTERED_BY_NAME=1]="REGISTERED_BY_NAME",e[e.HARDCODED=2]="HARDCODED"}(n=t.ComponentSource||(t.ComponentSource={}));var d=function(){function e(){}return e.prototype.newDateComponent=function(e){return this.createAndInitUserComponent(this.gridOptions,e,"dateComponent","agDateInput")},e.prototype.newHeaderComponent=function(e){return this.createAndInitUserComponent(e.column.getColDef(),e,"headerComponent","agColumnHeader")},e.prototype.newHeaderGroupComponent=function(e){return this.createAndInitUserComponent(e.columnGroup.getColGroupDef(),e,"headerGroupComponent","agColumnGroupHeader")},e.prototype.newFullWidthGroupRowInnerCellRenderer=function(e){return this.createAndInitUserComponent(this.gridOptions,e,"groupRowInnerRenderer",null,!0)},e.prototype.newFullWidthCellRenderer=function(e,t,o){return this.createAndInitUserComponent(null,e,t,o)},e.prototype.newCellRenderer=function(e,t){return this.createAndInitUserComponent(e,t,"cellRenderer",null,!0)},e.prototype.newPinnedRowCellRenderer=function(e,t){return this.createAndInitUserComponent(e,t,"pinnedRowCellRenderer",null,!0)},e.prototype.newCellEditor=function(e,t){return this.createAndInitUserComponent(e,t,"cellEditor","agCellEditor")},e.prototype.newInnerCellRenderer=function(e,t){return this.createAndInitUserComponent(e,t,"innerRenderer",null)},e.prototype.newLoadingOverlayComponent=function(e){return this.createAndInitUserComponent(this.gridOptions,e,"loadingOverlayComponent","agLoadingOverlay")},e.prototype.newNoRowsOverlayComponent=function(e){return this.createAndInitUserComponent(this.gridOptions,e,"noRowsOverlayComponent","agNoRowsOverlay")},e.prototype.newTooltipComponent=function(e){var t=e.colDef;return this.createAndInitUserComponent(t,e,"tooltipComponent","agTooltipComponent")},e.prototype.newFilterComponent=function(e,t,o,i){return this.createAndInitUserComponent(e,t,"filter",o,!1,i)},e.prototype.newFloatingFilterComponent=function(e,t,o){return this.createAndInitUserComponent(e,t,"floatingFilterComponent",o,!0)},e.prototype.newToolPanelComponent=function(e,t){return this.createAndInitUserComponent(e,t,"toolPanel")},e.prototype.newStatusPanelComponent=function(e,t){return this.createAndInitUserComponent(e,t,"statusPanel")},e.prototype.createAndInitUserComponent=function(e,t,o,i,r,n){void 0===r&&(r=!1),e||(e=this.gridOptions);var s=this.createComponentInstance(e,o,t,i,r);if(!s)return null;var a=s.componentInstance,l=this.createFinalParams(e,o,t,s.paramsFromSelector);this.addReactHacks(l);var p=n?n(l,a):l,u=this.initComponent(a,p);return null==u?c.Promise.resolve(a):u.map((function(e){return a}))},e.prototype.addReactHacks=function(e){var t=this.context.getBean("agGridReact");t&&(e.agGridReact=c._.cloneObject(t));var o=this.context.getBean("frameworkComponentWrapper");o&&(e.frameworkComponentWrapper=o)},e.prototype.createUserComponentFromConcreteClass=function(e,t){var o=new e;return this.initComponent(o,t),o},e.prototype.lookupComponentClassDef=function(e,t,o,i){void 0===o&&(o=null);var r,s=null,a=null,l=null,p=null;if(null!=e){var u=e[t];null==u||!0===u||("string"==typeof u?s=u:"boolean"==typeof u||(this.agComponentUtils.doesImplementIComponent(u)?a=u:l=u)),p=e[t+"Framework"],r=e[t+"Selector"]}if(a&&p||s&&p||l&&p)throw Error("ag-grid: you are trying to specify: "+t+" twice as a component.");if(p&&!this.frameworkComponentWrapper)throw Error("ag-grid: you are specifying a framework component but you are not using a framework version of ag-grid for : "+t);if(r&&(s||a||l||p))throw Error("ag-grid: you can't specify both, the selector and the component of ag-grid for : "+t);if(p)return{componentFromFramework:!0,component:p,source:n.HARDCODED,paramsFromSelector:null};if(a)return{componentFromFramework:!1,component:a,source:n.HARDCODED,paramsFromSelector:null};if(l)return this.agComponentUtils.adaptFunction(t,l,!1,n.HARDCODED);var c,d=r?r(o):null;if(!(c=d&&d.component?d.component:s||i))return null;var h=this.lookupFromRegisteredComponents(t,c);return{componentFromFramework:h.componentFromFramework,component:h.component,source:h.source,paramsFromSelector:d?d.params:null}},e.prototype.lookupFromRegisteredComponents=function(e,t){var o=null!=t?t:e,i=this.userComponentRegistry.retrieve(o);return null==i?null:i.componentFromFramework?{component:i.component,componentFromFramework:!0,source:n.REGISTERED_BY_NAME,paramsFromSelector:null}:this.agComponentUtils.doesImplementIComponent(i.component)?{component:i.component,componentFromFramework:!1,source:i.source==l.RegisteredComponentSource.REGISTERED?n.REGISTERED_BY_NAME:n.DEFAULT,paramsFromSelector:null}:this.agComponentUtils.adaptFunction(e,i.component,i.componentFromFramework,i.source==l.RegisteredComponentSource.REGISTERED?n.REGISTERED_BY_NAME:n.DEFAULT)},e.prototype.createFinalParams=function(e,t,o,i){void 0===i&&(i=null);var r={};c._.mergeDeep(r,o);var n=e?e[t+"Params"]:null;return null!=n&&("function"==typeof n?c._.mergeDeep(r,n(o)):"object"==typeof n&&c._.mergeDeep(r,n)),c._.mergeDeep(r,i),r},e.prototype.createComponentInstance=function(e,t,o,i,r){var n,s=this.lookupComponentClassDef(e,t,o,i);if(!s||!s.component)return r||console.error("Error creating component "+t+"=>"+i),null;if(s.componentFromFramework){var a=s.component,l=this.componentMetadataProvider.retrieve(t);n=this.frameworkComponentWrapper.wrap(a,l.mandatoryMethodList,l.optionalMethodList,i)}else n=new s.component;return{componentInstance:n,paramsFromSelector:s.paramsFromSelector}},e.prototype.initComponent=function(e,t){return this.context.wireBean(e),null==e.init?void 0:e.init(t)},i([s.Autowired("gridOptions"),r("design:type",Object)],e.prototype,"gridOptions",void 0),i([s.Autowired("gridOptionsWrapper"),r("design:type",a.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([s.Autowired("context"),r("design:type",s.Context)],e.prototype,"context",void 0),i([s.Autowired("agComponentUtils"),r("design:type",p.AgComponentUtils)],e.prototype,"agComponentUtils",void 0),i([s.Autowired("componentMetadataProvider"),r("design:type",u.ComponentMetadataProvider)],e.prototype,"componentMetadataProvider",void 0),i([s.Autowired("userComponentRegistry"),r("design:type",l.UserComponentRegistry)],e.prototype,"userComponentRegistry",void 0),i([s.Optional("frameworkComponentWrapper"),r("design:type",Object)],e.prototype,"frameworkComponentWrapper",void 0),e=i([s.Bean("userComponentFactory")],e)}();t.UserComponentFactory=d},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),n=this&&this.__decorate||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},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},a=this&&this.__param||function(e,t){return function(o,i){t(o,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});var l=o(3),p=o(4),u=o(124),c=o(12),d=o(6),h=o(7),f=o(59),g=o(0),y=o(10),v=o(5),m=o(14),C=o(26),w=o(127),_=o(15),b=o(31),E=o(9),R=o(30),P=o(38),O=o(48),S=o(89),A=o(2),T=o(90),D=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.destroyFuncsForColumnListeners=[],t.rowCompsByIndex={},t.floatingTopRowComps=[],t.floatingBottomRowComps=[],t.refreshInProgress=!1,t}return r(t,e),t.prototype.registerGridCore=function(e){this.gridCore=e},t.prototype.getGridCore=function(){return this.gridCore},t.prototype.agWire=function(e){this.logger=e.create("RowRenderer")},t.prototype.registerGridComp=function(e){this.gridPanel=e,this.rowContainers=this.gridPanel.getRowContainers(),this.addDestroyableEventListener(this.eventService,d.Events.EVENT_PAGINATION_CHANGED,this.onPageLoaded.bind(this)),this.addDestroyableEventListener(this.eventService,d.Events.EVENT_PINNED_ROW_DATA_CHANGED,this.onPinnedRowDataChanged.bind(this)),this.addDestroyableEventListener(this.eventService,d.Events.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addDestroyableEventListener(this.eventService,d.Events.EVENT_BODY_SCROLL,this.redrawAfterScroll.bind(this)),this.addDestroyableEventListener(this.eventService,d.Events.EVENT_BODY_HEIGHT_CHANGED,this.redrawAfterScroll.bind(this)),this.addDestroyableEventListener(this.gridOptionsWrapper,l.GridOptionsWrapper.PROP_DOM_LAYOUT,this.onDomLayoutChanged.bind(this)),this.registerCellEventListeners(),this.printLayout=this.gridOptionsWrapper.getDomLayout()===h.Constants.DOM_LAYOUT_PRINT,this.embedFullWidthRows=this.printLayout||this.gridOptionsWrapper.isEmbedFullWidthRows(),this.redrawAfterModelUpdate()},t.prototype.registerCellEventListeners=function(){var e=this;this.addDestroyableEventListener(this.eventService,d.Events.EVENT_CELL_FOCUSED,(function(t){e.forEachCellComp((function(e){return e.onCellFocused(t)}))})),this.addDestroyableEventListener(this.eventService,d.Events.EVENT_FLASH_CELLS,(function(t){e.forEachCellComp((function(e){return e.onFlashCells(t)}))})),this.addDestroyableEventListener(this.eventService,d.Events.EVENT_COLUMN_HOVER_CHANGED,(function(){e.forEachCellComp((function(e){return e.onColumnHover()}))})),this.addDestroyableEventListener(this.eventService,d.Events.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,(function(){e.printLayout&&e.forEachCellComp((function(e){return e.onLeftChanged()}))})),this.gridOptionsWrapper.isEnableRangeSelection()&&(this.addDestroyableEventListener(this.eventService,d.Events.EVENT_RANGE_SELECTION_CHANGED,(function(){e.forEachCellComp((function(e){return e.onRangeSelectionChanged()}))})),this.addDestroyableEventListener(this.eventService,d.Events.EVENT_COLUMN_MOVED,(function(){e.forEachCellComp((function(e){return e.updateRangeBordersIfRangeCount()}))})),this.addDestroyableEventListener(this.eventService,d.Events.EVENT_COLUMN_PINNED,(function(){e.forEachCellComp((function(e){return e.updateRangeBordersIfRangeCount()}))})),this.addDestroyableEventListener(this.eventService,d.Events.EVENT_COLUMN_VISIBLE,(function(){e.forEachCellComp((function(e){return e.updateRangeBordersIfRangeCount()}))}))),this.refreshListenersToColumnsForCellComps(),this.addDestroyableEventListener(this.eventService,d.Events.EVENT_GRID_COLUMNS_CHANGED,this.refreshListenersToColumnsForCellComps.bind(this)),this.addDestroyFunc(this.removeGridColumnListeners.bind(this))},t.prototype.removeGridColumnListeners=function(){this.destroyFuncsForColumnListeners.forEach((function(e){return e()})),this.destroyFuncsForColumnListeners.length=0},t.prototype.refreshListenersToColumnsForCellComps=function(){var e=this;this.removeGridColumnListeners();var t=this.columnController.getAllGridColumns();t&&t.forEach((function(t){var o=function(o){e.forEachCellComp((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()}))};t.addEventListener(c.Column.EVENT_LEFT_CHANGED,i),t.addEventListener(c.Column.EVENT_WIDTH_CHANGED,r),t.addEventListener(c.Column.EVENT_FIRST_RIGHT_PINNED_CHANGED,n),t.addEventListener(c.Column.EVENT_LAST_LEFT_PINNED_CHANGED,s),e.destroyFuncsForColumnListeners.push((function(){t.removeEventListener(c.Column.EVENT_LEFT_CHANGED,i),t.removeEventListener(c.Column.EVENT_WIDTH_CHANGED,r),t.removeEventListener(c.Column.EVENT_FIRST_RIGHT_PINNED_CHANGED,n),t.removeEventListener(c.Column.EVENT_LAST_LEFT_PINNED_CHANGED,s)}))}))},t.prototype.onDomLayoutChanged=function(){var e=this.gridOptionsWrapper.getDomLayout()===h.Constants.DOM_LAYOUT_PRINT,t=e||this.gridOptionsWrapper.isEmbedFullWidthRows(),o=t!==this.embedFullWidthRows||this.printLayout!==e;this.printLayout=e,this.embedFullWidthRows=t,o&&this.redrawAfterModelUpdate()},t.prototype.datasourceChanged=function(){this.firstRenderedRow=0,this.lastRenderedRow=-1;var e=Object.keys(this.rowCompsByIndex);this.removeRowComps(e)},t.prototype.onPageLoaded=function(e){A._.missing(e)&&(e={type:d.Events.EVENT_MODEL_UPDATED,api:this.gridApi,columnApi:this.columnApi,animate:!1,keepRenderedRows:!1,newData:!1,newPage:!1}),this.onModelUpdated(e)},t.prototype.getAllCellsForColumn=function(e){var t=[];function o(o,i){var r=i.getCellForCol(e);r&&t.push(r)}return A._.iterateObject(this.rowCompsByIndex,o),A._.iterateObject(this.floatingBottomRowComps,o),A._.iterateObject(this.floatingTopRowComps,o),t},t.prototype.refreshFloatingRowComps=function(){this.refreshFloatingRows(this.floatingTopRowComps,this.pinnedRowModel.getPinnedTopRowData(),this.rowContainers.floatingTopPinnedLeft,this.rowContainers.floatingTopPinnedRight,this.rowContainers.floatingTop,this.rowContainers.floatingTopFullWidth),this.refreshFloatingRows(this.floatingBottomRowComps,this.pinnedRowModel.getPinnedBottomRowData(),this.rowContainers.floatingBottomPinnedLeft,this.rowContainers.floatingBottomPinnedRight,this.rowContainers.floatingBottom,this.rowContainers.floatingBottomFullWith)},t.prototype.refreshFloatingRows=function(e,t,o,i,r,n){var s=this;e.forEach((function(e){e.destroy()})),e.length=0,t&&t.forEach((function(t){var a=new u.RowComp(s.$scope,r,o,i,n,t,s.beans,!1,!1,s.printLayout,s.embedFullWidthRows);a.init(),e.push(a)})),this.flushContainers(e)},t.prototype.onPinnedRowDataChanged=function(){this.redrawAfterModelUpdate({recycleRows:!0})},t.prototype.onModelUpdated=function(e){var t={recycleRows:e.keepRenderedRows,animate:e.animate,newData:e.newData,newPage:e.newPage,onlyBody:!0};this.redrawAfterModelUpdate(t)},t.prototype.getRenderedIndexesForRowNodes=function(e){var t=[];return A._.missing(e)?t:(A._.iterateObject(this.rowCompsByIndex,(function(o,i){var r=i.getRowNode();e.indexOf(r)>=0&&t.push(o)})),t)},t.prototype.redrawRows=function(e){if(e&&0!=e.length){var t=this.getRenderedIndexesForRowNodes(e);this.removeRowComps(t),this.redrawAfterModelUpdate({recycleRows:!0})}},t.prototype.getCellToRestoreFocusToAfterRefresh=function(e){var t=e.suppressKeepFocus?null:this.focusedCellController.getFocusCellToUseAfterRefresh();if(A._.missing(t))return null;var o=document.activeElement,i=this.gridOptionsWrapper.getDomData(o,f.CellComp.DOM_DATA_KEY_CELL_COMP);return A._.missing(i)?null:t},t.prototype.redrawAfterModelUpdate=function(e){void 0===e&&(e={}),this.getLockOnRefresh();var t=this.getCellToRestoreFocusToAfterRefresh(e);this.sizeContainerToPageHeight(),this.scrollToTopIfNewData(e);var o=!this.printLayout&&e.recycleRows,i=e.animate&&this.gridOptionsWrapper.isAnimateRows(),r=this.binRowComps(o);this.redraw(r,i),e.onlyBody||this.refreshFloatingRowComps(),this.restoreFocusedCell(t),this.releaseLockOnRefresh()},t.prototype.scrollToTopIfNewData=function(e){var t=e.newData||e.newPage,o=this.gridOptionsWrapper.isSuppressScrollOnNewData();t&&!o&&this.gridPanel.scrollToTop()},t.prototype.sizeContainerToPageHeight=function(){var e=[this.rowContainers.body,this.rowContainers.fullWidth,this.rowContainers.pinnedLeft,this.rowContainers.pinnedRight];if(this.printLayout)e.forEach((function(e){return e.setHeight(null)}));else{var t=this.paginationProxy.getCurrentPageHeight();0===t&&(t=1),this.maxDivHeightScaler.setModelHeight(t);var o=this.maxDivHeightScaler.getUiContainerHeight();e.forEach((function(e){return e.setHeight(o)}))}},t.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, eg instead of api.refreshView(), call setTimeout(function(){api.refreshView(),0}). To see what part of your code that caused the refresh check this stacktrace.");this.refreshInProgress=!0},t.prototype.releaseLockOnRefresh=function(){this.refreshInProgress=!1},t.prototype.restoreFocusedCell=function(e){e&&this.focusedCellController.setFocusedCell(e.rowIndex,e.column,e.rowPinned,!0)},t.prototype.stopEditing=function(e){void 0===e&&(e=!1),this.forEachRowComp((function(t,o){o.stopEditing(e)}))},t.prototype.forEachCellComp=function(e){this.forEachRowComp((function(t,o){return o.forEachCellComp(e)}))},t.prototype.forEachRowComp=function(e){A._.iterateObject(this.rowCompsByIndex,e),A._.iterateObject(this.floatingTopRowComps,e),A._.iterateObject(this.floatingBottomRowComps,e)},t.prototype.addRenderedRowListener=function(e,t,o){var i=this.rowCompsByIndex[t];i&&i.addEventListener(e,o)},t.prototype.flashCells=function(e){void 0===e&&(e={}),this.forEachCellCompFiltered(e.rowNodes,e.columns,(function(e){return e.flashCell()}))},t.prototype.refreshCells=function(e){void 0===e&&(e={});var t={forceRefresh:e.force,newData:!1};this.forEachCellCompFiltered(e.rowNodes,e.columns,(function(e){return e.refreshCell(t)}))},t.prototype.getCellRendererInstances=function(e){var t=[];return this.forEachCellCompFiltered(e.rowNodes,e.columns,(function(e){var o=e.getCellRenderer();o&&t.push(o)})),t},t.prototype.getCellEditorInstances=function(e){var t=[];return this.forEachCellCompFiltered(e.rowNodes,e.columns,(function(e){var o=e.getCellEditor();o&&t.push(o)})),t},t.prototype.getEditingCells=function(){var e=[];return this.forEachCellComp((function(t){if(t.isEditing()){var o=t.getCellPosition();e.push(o)}})),e},t.prototype.forEachCellCompFiltered=function(e,t,o){var i,r,n=this;A._.exists(e)&&(i={top:{},bottom:{},normal:{}},e.forEach((function(e){e.rowPinned===h.Constants.PINNED_TOP?i.top[e.id]=!0:e.rowPinned===h.Constants.PINNED_BOTTOM?i.bottom[e.id]=!0:i.normal[e.id]=!0}))),A._.exists(t)&&(r={},t.forEach((function(e){var t=n.columnController.getGridColumn(e);A._.exists(t)&&(r[t.getId()]=!0)})));var s=function(e){var t=e.getRowNode(),n=t.id,s=t.rowPinned;if(A._.exists(i))if(s===h.Constants.PINNED_BOTTOM){if(!i.bottom[n])return}else if(s===h.Constants.PINNED_TOP){if(!i.top[n])return}else if(!i.normal[n])return;e.forEachCellComp((function(e){var t=e.getColumn().getId();r&&!r[t]||o(e)}))};A._.iterateObject(this.rowCompsByIndex,(function(e,t){s(t)})),this.floatingTopRowComps&&this.floatingTopRowComps.forEach(s),this.floatingBottomRowComps&&this.floatingBottomRowComps.forEach(s)},t.prototype.destroy=function(){e.prototype.destroy.call(this);var t=Object.keys(this.rowCompsByIndex);this.removeRowComps(t)},t.prototype.binRowComps=function(e){var t,o=this,i={};return e?(t=[],A._.iterateObject(this.rowCompsByIndex,(function(e,r){var n=r.getRowNode();A._.exists(n.id)?(i[n.id]=r,delete o.rowCompsByIndex[e]):t.push(e)}))):t=Object.keys(this.rowCompsByIndex),this.removeRowComps(t),i},t.prototype.removeRowComps=function(e){var t=this;e.forEach((function(e){t.rowCompsByIndex[e].destroy(),delete t.rowCompsByIndex[e]}))},t.prototype.redrawAfterScroll=function(){this.getLockOnRefresh(),this.redraw(null,!1,!0),this.releaseLockOnRefresh()},t.prototype.removeRowCompsNotToDraw=function(e){var t={};e.forEach((function(e){return t[e]=!0}));var o=Object.keys(this.rowCompsByIndex),i=A._.filter(o,(function(e){return!t[e]}));this.removeRowComps(i)},t.prototype.calculateIndexesToDraw=function(){var e=this,t=A._.createArrayOfNumbers(this.firstRenderedRow,this.lastRenderedRow);return A._.iterateObject(this.rowCompsByIndex,(function(o,i){var r=Number(o);(r<e.firstRenderedRow||r>e.lastRenderedRow)&&e.doNotUnVirtualiseRow(i)&&t.push(r)})),t.sort((function(e,t){return e-t})),t},t.prototype.redraw=function(e,t,o){var i=this;void 0===t&&(t=!1),void 0===o&&(o=!1),this.maxDivHeightScaler.updateOffset(),this.workOutFirstAndLastRowsToRender();var r=this.calculateIndexesToDraw();this.removeRowCompsNotToDraw(r),this.printLayout&&(t=!1);var n=[],s=[];r.forEach((function(r){var a=i.createOrUpdateRowComp(r,e,t,o);A._.exists(a)&&(s.push(a),A._.pushAll(n,a.getAndClearNextVMTurnFunctions()))})),this.flushContainers(s),A._.executeNextVMTurn(n),o&&!this.gridOptionsWrapper.isSuppressAnimationFrame()&&!this.printLayout?this.beans.taskQueue.addP2Task(this.destroyRowComps.bind(this,e,t)):this.destroyRowComps(e,t),this.checkAngularCompile(),this.gridPanel.updateRowCount()},t.prototype.flushContainers=function(e){A._.iterateObject(this.rowContainers,(function(e,t){t&&t.flushRowTemplates()})),e.forEach((function(e){return e.afterFlush()}))},t.prototype.onDisplayedColumnsChanged=function(){var e=this.columnController.isPinningLeft(),t=this.columnController.isPinningRight();(this.pinningLeft!==e||t!==this.pinningRight)&&(this.pinningLeft=e,this.pinningRight=t,this.embedFullWidthRows&&this.redrawFullWidthEmbeddedRows())},t.prototype.redrawFullWidthEmbeddedRows=function(){var e=[];A._.iterateObject(this.rowCompsByIndex,(function(t,o){if(o.isFullWidth()){var i=o.getRowNode().rowIndex;e.push(i.toString())}})),this.refreshFloatingRowComps(),this.removeRowComps(e),this.redrawAfterScroll()},t.prototype.refreshFullWidthRows=function(){var e=[];A._.iterateObject(this.rowCompsByIndex,(function(t,o){if(o.isFullWidth()&&!o.refreshFullWidth()){var i=o.getRowNode().rowIndex;e.push(i.toString())}})),this.removeRowComps(e),this.redrawAfterScroll()},t.prototype.createOrUpdateRowComp=function(e,t,o,i){var r,n=this.rowCompsByIndex[e];if(n||(r=this.paginationProxy.getRow(e),A._.exists(r)&&A._.exists(t)&&t[r.id]&&r.alreadyRendered&&(n=t[r.id],t[r.id]=null)),!n){if(r||(r=this.paginationProxy.getRow(e)),!A._.exists(r))return;n=this.createRowComp(r,o,i)}else n.ensureDomOrder();return r&&(r.alreadyRendered=!0),this.rowCompsByIndex[e]=n,n},t.prototype.destroyRowComps=function(e,t){var o=[];A._.iterateObject(e,(function(e,i){i&&(i.destroy(t),A._.pushAll(o,i.getAndClearDelayedDestroyFunctions()))})),A._.executeInAWhile(o)},t.prototype.checkAngularCompile=function(){var e=this;this.gridOptionsWrapper.isAngularCompileRows()&&window.setTimeout((function(){e.$scope.$apply()}),0)},t.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.paginationProxy.getPixelOffset(),i=this.maxDivHeightScaler.getOffset(),r=this.gridPanel.getVScrollPosition(),n=r.top,s=r.bottom,a=this.gridOptionsWrapper.getRowBufferInPixels(),l=n+o+i-a,p=s+o+i+a;this.ensureAllRowsInRangeHaveHeightsCalculated(l,p);var u=this.paginationProxy.getRowIndexAtPixel(l),c=this.paginationProxy.getRowIndexAtPixel(p),f=this.paginationProxy.getPageFirstRow(),g=this.paginationProxy.getPageLastRow();u<f&&(u=f),c>g&&(c=g),e=u,t=c}else e=0,t=-1;var y=this.gridOptionsWrapper.getDomLayout()===h.Constants.DOM_LAYOUT_NORMAL,v=this.gridOptionsWrapper.isSuppressMaxRenderedRowRestriction(),m=Math.max(this.gridOptionsWrapper.getRowBuffer(),500);y&&!v&&t-e>m&&(t=e+m);var C=e!==this.firstRenderedRow,w=t!==this.lastRenderedRow;if(C||w){this.firstRenderedRow=e,this.lastRenderedRow=t;var _={type:d.Events.EVENT_VIEWPORT_CHANGED,firstRow:e,lastRow:t,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(_)}if(this.paginationProxy.isRowsToRender()){var b={type:d.Events.EVENT_FIRST_DATA_RENDERED,firstRow:e,lastRow:t,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEventOnce(b)}},t.prototype.ensureAllRowsInRangeHaveHeightsCalculated=function(e,t){this.paginationProxy.ensureRowHeightsValid(e,t,-1,-1)&&(this.sizeContainerToPageHeight(),this.maxDivHeightScaler.updateOffset())},t.prototype.getFirstVirtualRenderedRow=function(){return this.firstRenderedRow},t.prototype.getLastVirtualRenderedRow=function(){return this.lastRenderedRow},t.prototype.doNotUnVirtualiseRow=function(e){var t=e.getRowNode(),o=this.focusedCellController.isRowNodeFocused(t),i=e.isEditing(),r=t.detail;return!!(o||i||r)&&!!this.paginationProxy.isRowPresent(t)},t.prototype.createRowComp=function(e,t,o){var i=this.gridOptionsWrapper.isSuppressAnimationFrame(),r=o&&!i&&!this.printLayout,n=new u.RowComp(this.$scope,this.rowContainers.body,this.rowContainers.pinnedLeft,this.rowContainers.pinnedRight,this.rowContainers.fullWidth,e,this.beans,t,r,this.printLayout,this.embedFullWidthRows);return n.init(),n},t.prototype.getRenderedNodes=function(){var e=this.rowCompsByIndex;return Object.keys(e).map((function(t){return e[t].getRowNode()}))},t.prototype.navigateToNextCell=function(e,t,o,i){for(var r=o,n=!1;!n;){if(this.gridOptionsWrapper.isEnableRtl()?t===h.Constants.KEY_LEFT&&(r=this.getLastCellOfColSpan(r)):t===h.Constants.KEY_RIGHT&&(r=this.getLastCellOfColSpan(r)),r=this.cellNavigationService.getNextCellToFocus(t,r),A._.missing(r))n=!0;else{var s=this.rowPositionUtils.getRowNode(r);if(!s.detail)if(s.group){var a=this.columnController.isPivotMode();this.gridOptionsWrapper.isGroupUseEntireRow(a)||(n=!0)}else n=!0}}if(i){var l=this.gridOptionsWrapper.getNavigateToNextCellFunc();if(A._.exists(l)){var p=l({key:t,previousCellPosition:o,nextCellPosition:r||null,event:e});A._.exists(p)?(p.floating&&(A._.doOnce((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"),p.rowPinned=p.floating),r={rowPinned:p.rowPinned,rowIndex:p.rowIndex,column:p.column}):r=null}}r&&(this.ensureCellVisible(r),r=this.getComponentForCell(r).getCellPosition(),this.ensureCellVisible(r),this.focusedCellController.setFocusedCell(r.rowIndex,r.column,r.rowPinned,!0),this.rangeController&&this.rangeController.setRangeToCell(r))},t.prototype.getLastCellOfColSpan=function(e){var t=this.getComponentForCell(e);if(!t)return e;var o=t.getColSpanningList();return 1===o.length?e:{rowIndex:e.rowIndex,column:A._.last(o),rowPinned:e.rowPinned}},t.prototype.ensureCellVisible=function(e){A._.missing(e.rowPinned)&&this.gridPanel.ensureIndexVisible(e.rowIndex),e.column.isPinned()||this.gridPanel.ensureColumnVisible(e.column),this.gridPanel.horizontallyScrollHeaderCenterAndFloatingCenter(),this.animationFrameService.flushAllFrames()},t.prototype.startEditingCell=function(e,t,o){var i=this.getComponentForCell(e);i&&i.startRowOrCellEdit(t,o)},t.prototype.getComponentForCell=function(e){var t;switch(e.rowPinned){case h.Constants.PINNED_TOP:t=this.floatingTopRowComps[e.rowIndex];break;case h.Constants.PINNED_BOTTOM:t=this.floatingBottomRowComps[e.rowIndex];break;default:t=this.rowCompsByIndex[e.rowIndex]}return t?t.getRenderedCellForColumn(e.column):null},t.prototype.getRowNode=function(e){switch(e.rowPinned){case h.Constants.PINNED_TOP:return this.pinnedRowModel.getPinnedTopRowData()[e.rowIndex];case h.Constants.PINNED_BOTTOM:return this.pinnedRowModel.getPinnedBottomRowData()[e.rowIndex];default:return this.rowModel.getRow(e.rowIndex)}},t.prototype.onTabKeyDown=function(e,t){var o=t.shiftKey;this.moveToCellAfter(e,o)&&t.preventDefault()},t.prototype.tabToNextCell=function(e){var t=this.focusedCellController.getFocusedCell();if(A._.missing(t))return!1;var o=this.getComponentForCell(t);return!A._.missing(o)&&this.moveToCellAfter(o,e)},t.prototype.moveToCellAfter=function(e,t){return e.isEditing()?this.gridOptionsWrapper.isFullRowEdit()?this.moveToNextEditingRow(e,t):this.moveToNextEditingCell(e,t):this.moveToNextCellNotEditing(e,t)},t.prototype.moveToNextEditingCell=function(e,t){var o=e.getCellPosition();e.stopEditing();var i=this.findNextCellToFocusOn(o,t,!0),r=A._.exists(i);return r&&(i.startEditingIfEnabled(null,null,!0),i.focusCell(!1)),r},t.prototype.moveToNextEditingRow=function(e,t){var o=e.getCellPosition(),i=this.findNextCellToFocusOn(o,t,!0),r=A._.exists(i);return r&&this.moveEditToNextCellOrRow(e,i),r},t.prototype.moveToNextCellNotEditing=function(e,t){var o=e.getCellPosition(),i=this.findNextCellToFocusOn(o,t,!1),r=A._.exists(i);return r&&i.focusCell(!0),r},t.prototype.moveEditToNextCellOrRow=function(e,t){var o=e.getCellPosition(),i=t.getCellPosition();if(o.rowIndex===i.rowIndex&&o.rowPinned===i.rowPinned)e.setFocusOutOnEditor(),t.setFocusInOnEditor();else{var r=e.getRenderedRow(),n=t.getRenderedRow();e.setFocusOutOnEditor(),r.stopEditing(),n.startRowEditing(),t.setFocusInOnEditor()}t.focusCell()},t.prototype.findNextCellToFocusOn=function(e,t,o){for(var i=e;;){t||(i=this.getLastCellOfColSpan(i)),i=this.cellNavigationService.getNextTabbedCell(i,t);var r=this.gridOptionsWrapper.getTabToNextCellFunc();if(A._.exists(r)){var n=r({backwards:t,editing:o,previousCellPosition:e,nextCellPosition:i||null});A._.exists(n)?(n.floating&&(A._.doOnce((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"),n.rowPinned=n.floating),i={rowIndex:n.rowIndex,column:n.column,rowPinned:n.rowPinned}):i=null}if(!i)return null;if(o){var s=this.lookupRowNodeForCell(i);if(!i.column.isCellEditable(s))continue}A._.missing(i.rowPinned)&&this.gridPanel.ensureIndexVisible(i.rowIndex),i.column.isPinned()||this.gridPanel.ensureColumnVisible(i.column),this.gridPanel.horizontallyScrollHeaderCenterAndFloatingCenter(),this.animationFrameService.flushAllFrames();var a=this.getComponentForCell(i);if(!A._.missing(a)&&!a.isSuppressNavigable())return this.rangeController&&this.rangeController.setRangeToCell(i),a}},t.prototype.lookupRowNodeForCell=function(e){return e.rowPinned===h.Constants.PINNED_TOP?this.pinnedRowModel.getPinnedTopRow(e.rowIndex):e.rowPinned===h.Constants.PINNED_BOTTOM?this.pinnedRowModel.getPinnedBottomRow(e.rowIndex):this.paginationProxy.getRow(e.rowIndex)},n([g.Autowired("paginationProxy"),s("design:type",b.PaginationProxy)],t.prototype,"paginationProxy",void 0),n([g.Autowired("columnController"),s("design:type",v.ColumnController)],t.prototype,"columnController",void 0),n([g.Autowired("gridOptionsWrapper"),s("design:type",l.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),n([g.Autowired("$scope"),s("design:type",Object)],t.prototype,"$scope",void 0),n([g.Autowired("eventService"),s("design:type",p.EventService)],t.prototype,"eventService",void 0),n([g.Autowired("pinnedRowModel"),s("design:type",R.PinnedRowModel)],t.prototype,"pinnedRowModel",void 0),n([g.Autowired("rowModel"),s("design:type",Object)],t.prototype,"rowModel",void 0),n([g.Autowired("loggerFactory"),s("design:type",m.LoggerFactory)],t.prototype,"loggerFactory",void 0),n([g.Autowired("focusedCellController"),s("design:type",C.FocusedCellController)],t.prototype,"focusedCellController",void 0),n([g.Autowired("cellNavigationService"),s("design:type",w.CellNavigationService)],t.prototype,"cellNavigationService",void 0),n([g.Autowired("columnApi"),s("design:type",y.ColumnApi)],t.prototype,"columnApi",void 0),n([g.Autowired("gridApi"),s("design:type",E.GridApi)],t.prototype,"gridApi",void 0),n([g.Autowired("beans"),s("design:type",P.Beans)],t.prototype,"beans",void 0),n([g.Autowired("maxDivHeightScaler"),s("design:type",S.MaxDivHeightScaler)],t.prototype,"maxDivHeightScaler",void 0),n([g.Autowired("animationFrameService"),s("design:type",O.AnimationFrameService)],t.prototype,"animationFrameService",void 0),n([g.Autowired("rowPositionUtils"),s("design:type",T.RowPositionUtils)],t.prototype,"rowPositionUtils",void 0),n([g.Optional("rangeController"),s("design:type",Object)],t.prototype,"rangeController",void 0),n([a(0,g.Qualifier("loggerFactory")),s("design:type",Function),s("design:paramtypes",[m.LoggerFactory]),s("design:returntype",void 0)],t.prototype,"agWire",null),t=n([g.Bean("rowRenderer")],t)}(_.BeanStub);t.RowRenderer=D},function(e,t,o){"use strict";var i=this&&this.__decorate||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},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var n=o(1),s=function(){function e(){this.cellRanges=[],this.bodyScrollListener=this.onBodyScroll.bind(this),this.dragging=!1}return e.prototype.registerGridComp=function(e){this.gridPanel=e,this.autoScrollService=new a(this.gridPanel,this.gridOptionsWrapper)},e.prototype.init=function(){this.logger=this.loggerFactory.create("RangeController"),this.eventService.addEventListener(n.Events.EVENT_COLUMN_EVERYTHING_CHANGED,this.removeAllCellRanges.bind(this)),this.eventService.addEventListener(n.Events.EVENT_COLUMN_PIVOT_MODE_CHANGED,this.removeAllCellRanges.bind(this)),this.eventService.addEventListener(n.Events.EVENT_COLUMN_ROW_GROUP_CHANGED,this.removeAllCellRanges.bind(this)),this.eventService.addEventListener(n.Events.EVENT_COLUMN_GROUP_OPENED,this.refreshLastRangeStart.bind(this)),this.eventService.addEventListener(n.Events.EVENT_COLUMN_MOVED,this.refreshLastRangeStart.bind(this)),this.eventService.addEventListener(n.Events.EVENT_COLUMN_PINNED,this.refreshLastRangeStart.bind(this)),this.eventService.addEventListener(n.Events.EVENT_COLUMN_VISIBLE,this.onColumnVisibleChange.bind(this))},e.prototype.onColumnVisibleChange=function(){var e=this;this.refreshLastRangeStart(),this.cellRanges.forEach((function(t){var o=t.columns;if(t.columns=t.columns.filter((function(e){return e.isVisible()})),!n._.compareArrays(o,t.columns)){e.onRangeChanged({started:!1,finished:!0});var i={id:t.id,type:n.Events.EVENT_CHART_RANGE_SELECTION_CHANGED};e.eventService.dispatchEvent(i)}}))},e.prototype.refreshLastRangeStart=function(){var e=n._.last(this.cellRanges);e&&this.refreshRangeStart(e)},e.prototype.isContiguousRange=function(e){var t=e.columns;if(!t.length)return!1;var o=this.columnController.getAllDisplayedColumns(),i=[];return t.forEach((function(e){return i.push(o.indexOf(e))})),i.sort((function(e,t){return e-t})),n._.last(i)-i[0]+1===t.length},e.prototype.getRangeStartRow=function(e){return e.startRow&&e.endRow?this.rowPositionUtils.before(e.startRow,e.endRow)?e.startRow:e.endRow:{rowIndex:0,rowPinned:this.pinnedRowModel.getPinnedTopRowCount()>0?n.Constants.PINNED_TOP:void 0}},e.prototype.getRangeEndRow=function(e){if(e.startRow&&e.endRow)return this.rowPositionUtils.before(e.startRow,e.endRow)?e.endRow:e.startRow;var t=this.pinnedRowModel.getPinnedBottomRowCount();return t>0?{rowIndex:t-1,rowPinned:n.Constants.PINNED_BOTTOM}:{rowIndex:this.rowModel.getRowCount()-1,rowPinned:void 0}},e.prototype.setRangeToCell=function(e,t){if(void 0===t&&(t=!1),this.gridOptionsWrapper.isEnableRangeSelection()){var o=this.calculateColumnsBetween(e.column,e.column);if(o){(this.gridOptionsWrapper.isSuppressMultiRangeSelection()||!t||n._.missing(this.cellRanges))&&this.removeAllCellRanges(!0);for(var i,r={rowIndex:e.rowIndex,rowPinned:e.rowPinned},s=0;s<this.cellRanges.length;s++){var a=this.cellRanges[s];if(a.columns&&1===a.columns.length&&a.columns[0]===e.column&&this.rowPositionUtils.sameRow(r,a.startRow)&&this.rowPositionUtils.sameRow(r,a.endRow)){i=a;break}}if(i){n._.last(this.cellRanges)===i||(n._.removeFromArray(this.cellRanges,i),this.cellRanges.push(i))}else{var l={startRow:r,endRow:r,columns:o,startColumn:e.column};this.cellRanges.push(l)}this.newestRangeStartCell=e,this.onDragStop(),this.onRangeChanged({started:!1,finished:!0})}}},e.prototype.extendLatestRangeToCell=function(e){if(!this.isEmpty()&&this.newestRangeStartCell){var t=n._.last(this.cellRanges);this.updateRangeEnd({cellRange:t,cellPosition:e})}},e.prototype.updateRangeEnd=function(e){var t=e.cellRange,o=e.cellPosition,i=t.columns.slice(),r=n._.cloneObject(t.endRow),s=o.column,a=this.calculateColumnsBetween(t.startColumn,s);if(a){t.columns=a,t.endRow={rowIndex:o.rowIndex,rowPinned:o.rowPinned},this.onRangeChanged({started:!1,finished:!0});var l=!n._.compareArrays(i,t.columns),p=JSON.stringify(r)!==JSON.stringify(t.endRow);if(l||p){var u={id:t.id,type:n.Events.EVENT_CHART_RANGE_SELECTION_CHANGED};this.eventService.dispatchEvent(u)}}},e.prototype.refreshRangeStart=function(e){var t=e.startColumn,o=e.columns,i=function(t,o){var i=e.columns.filter((function(e){return e!==t}));t?(e.startColumn=t,e.columns=o?[t].concat(i):i.concat([t])):e.columns=i},r=this.getRangeEdgeColumns(e),s=r.left,a=r.right;t===o[0]&&t!==s?i(s,!0):t===n._.last(o)&&t===a&&i(a,!1)},e.prototype.getRangeEdgeColumns=function(e){for(var t=this.columnController.getAllDisplayedColumns(),o=[],i=0,r=e.columns;i<r.length;i++){var s=r[i],a=t.indexOf(s);a>-1&&o.push(a)}return o.sort((function(e,t){return e-t})),{left:t[o[0]],right:t[n._.last(o)]}},e.prototype.extendLatestRangeInDirection=function(e){if(!this.isEmpty()&&this.newestRangeStartCell){var t=n._.last(this.cellRanges),o=this.newestRangeStartCell,i=t.columns[0],r=n._.last(t.columns),s=t.endRow.rowIndex,a=t.endRow.rowPinned,l={column:o.column===i?r:i,rowIndex:s,rowPinned:a},p=this.cellNavigationService.getNextCellToFocus(e,l);if(p)return this.setCellRange({rowStartIndex:o.rowIndex,rowStartPinned:o.rowPinned,rowEndIndex:p.rowIndex,rowEndPinned:p.rowPinned,columnStart:o.column,columnEnd:p.column}),p}},e.prototype.setCellRange=function(e){this.gridOptionsWrapper.isEnableRangeSelection()&&(this.removeAllCellRanges(!0),this.addCellRange(e))},e.prototype.setCellRanges=function(e){var t=this;this.removeAllCellRanges(!0),e.forEach((function(e){e.columns&&e.startRow&&(t.newestRangeStartCell={rowIndex:e.startRow.rowIndex,rowPinned:e.startRow.rowPinned,column:e.columns[0]}),t.cellRanges.push(e)})),this.onRangeChanged({started:!1,finished:!0})},e.prototype.createCellRangeFromCellRangeParams=function(e){var t,o=this;if(e.columns)t=[],e.columns.forEach((function(e){var i=o.columnController.getColumnWithValidation(e);i&&t.push(i)}));else{var i=this.columnController.getColumnWithValidation(e.columnStart),r=this.columnController.getColumnWithValidation(e.columnEnd);if(!i||!r)return;t=this.calculateColumnsBetween(i,r)}if(t){var n=void 0;null!=e.rowStartIndex&&(n={rowIndex:e.rowStartIndex,rowPinned:e.rowStartPinned});var s=void 0;return null!=e.rowEndIndex&&(s={rowIndex:e.rowEndIndex,rowPinned:e.rowEndPinned}),{startRow:n,endRow:s,columns:t,startColumn:t[0]}}},e.prototype.addCellRange=function(e){if(this.gridOptionsWrapper.isEnableRangeSelection()){var t=this.createCellRangeFromCellRangeParams(e);t&&(this.cellRanges.push(t),this.onRangeChanged({started:!1,finished:!0}))}},e.prototype.getCellRanges=function(){return this.cellRanges},e.prototype.isEmpty=function(){return 0===this.cellRanges.length},e.prototype.isMoreThanOneCell=function(){if(0===this.cellRanges.length)return!1;if(this.cellRanges.length>1)return!0;var e=this.cellRanges[0],t=this.getRangeStartRow(e),o=this.getRangeEndRow(e);return t.rowPinned!==o.rowPinned||t.rowIndex!==o.rowIndex||1!==e.columns.length},e.prototype.removeAllCellRanges=function(e){this.isEmpty()||(this.onDragStop(),this.cellRanges.length=0,e||this.onRangeChanged({started:!1,finished:!0}))},e.prototype.onBodyScroll=function(){this.onDragging(this.lastMouseEvent)},e.prototype.isCellInAnyRange=function(e){return this.getCellRangeCount(e)>0},e.prototype.isCellInSpecificRange=function(e,t){var o=null!==t.columns&&t.columns.indexOf(e.column)>=0,i=this.isRowInRange(e.rowIndex,e.rowPinned,t);return o&&i},e.prototype.getCellRangeCount=function(e){var t=this;if(this.isEmpty())return 0;var o=0;return this.cellRanges.forEach((function(i){t.isCellInSpecificRange(e,i)&&o++})),o},e.prototype.isRowInRange=function(e,t,o){var i=this.getRangeStartRow(o),r=this.getRangeEndRow(o),n={rowIndex:e,rowPinned:t},s=n.rowIndex===i.rowIndex&&n.rowPinned==i.rowPinned,a=n.rowIndex===r.rowIndex&&n.rowPinned==r.rowPinned;if(s||a)return!0;var l=!this.rowPositionUtils.before(n,i),p=this.rowPositionUtils.before(n,r);return l&&p},e.prototype.getDraggingRange=function(){return this.draggingRange},e.prototype.onDragStart=function(e){if(this.gridOptionsWrapper.isEnableRangeSelection()){var t=e.ctrlKey,o=e.metaKey,i=e.shiftKey,r=t||o,s=!!!this.gridOptionsWrapper.isSuppressMultiRangeSelection()&&r,a=this.mouseEventService.getCellPositionForEvent(e);if(!n._.missing(a)){if(s||i&&!n._.exists(n._.last(this.cellRanges).type)||this.removeAllCellRanges(!0),this.dragging=!0,this.draggingCell=a,this.lastMouseEvent=e,i||(this.newestRangeStartCell=a),this.cellRanges.length>0)this.draggingRange=n._.last(this.cellRanges);else{var l={rowIndex:a.rowIndex,rowPinned:a.rowPinned};this.draggingRange={startRow:l,endRow:l,columns:[a.column],startColumn:this.newestRangeStartCell.column},this.cellRanges.push(this.draggingRange)}this.gridPanel.addScrollEventListener(this.bodyScrollListener),this.onRangeChanged({started:!0,finished:!1})}}},e.prototype.onDragging=function(e){if(this.dragging&&e){this.lastMouseEvent=e;var t=this.mouseEventService.getCellPositionForEvent(e),o=t&&"top"===t.rowPinned&&"top"===this.newestRangeStartCell.rowPinned,i=t&&"bottom"===t.rowPinned&&"bottom"===this.newestRangeStartCell.rowPinned,r=o||i;if(this.autoScrollService.check(e,r),t&&this.draggingCell&&!this.cellPositionUtils.equals(this.draggingCell,t)){var n=this.calculateColumnsBetween(this.newestRangeStartCell.column,t.column);n&&(this.draggingCell=t,this.draggingRange.endRow={rowIndex:t.rowIndex,rowPinned:t.rowPinned},this.draggingRange.columns=n,this.onRangeChanged({started:!1,finished:!1}))}}},e.prototype.onDragStop=function(){this.dragging&&(this.autoScrollService.ensureCleared(),this.gridPanel.removeScrollEventListener(this.bodyScrollListener),this.lastMouseEvent=null,this.dragging=!1,this.draggingRange=void 0,this.draggingCell=void 0,this.onRangeChanged({started:!1,finished:!0}))},e.prototype.onRangeChanged=function(e){var t=e.started,o=e.finished;this.dispatchChangedEvent(t,o)},e.prototype.dispatchChangedEvent=function(e,t){var o={type:n.Events.EVENT_RANGE_SELECTION_CHANGED,api:this.gridApi,columnApi:this.columnApi,started:e,finished:t};this.eventService.dispatchEvent(o)},e.prototype.calculateColumnsBetween=function(e,t){var o=this.columnController.getAllDisplayedColumns(),i=e===t,r=o.indexOf(e),n=i?r:o.indexOf(t);if(r<0)console.warn("ag-Grid: column "+e.getId()+" is not visible");else{if(!(n<0)){if(i)return[e];for(var s=Math.min(r,n),a=s===r?n:r,l=[],p=s;p<=a;p++)l.push(o[p]);return l}console.warn("ag-Grid: column "+t.getId()+" is not visible")}},i([n.Autowired("loggerFactory"),r("design:type",n.LoggerFactory)],e.prototype,"loggerFactory",void 0),i([n.Autowired("rowModel"),r("design:type",Object)],e.prototype,"rowModel",void 0),i([n.Autowired("eventService"),r("design:type",n.EventService)],e.prototype,"eventService",void 0),i([n.Autowired("columnController"),r("design:type",n.ColumnController)],e.prototype,"columnController",void 0),i([n.Autowired("mouseEventService"),r("design:type",n.MouseEventService)],e.prototype,"mouseEventService",void 0),i([n.Autowired("gridOptionsWrapper"),r("design:type",n.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([n.Autowired("columnApi"),r("design:type",n.ColumnApi)],e.prototype,"columnApi",void 0),i([n.Autowired("gridApi"),r("design:type",n.GridApi)],e.prototype,"gridApi",void 0),i([n.Autowired("cellNavigationService"),r("design:type",n.CellNavigationService)],e.prototype,"cellNavigationService",void 0),i([n.Autowired("pinnedRowModel"),r("design:type",n.PinnedRowModel)],e.prototype,"pinnedRowModel",void 0),i([n.Autowired("rowPositionUtils"),r("design:type",n.RowPositionUtils)],e.prototype,"rowPositionUtils",void 0),i([n.Autowired("cellPositionUtils"),r("design:type",n.CellPositionUtils)],e.prototype,"cellPositionUtils",void 0),i([n.PostConstruct,r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],e.prototype,"init",null),e=i([n.Bean("rangeController")],e)}();t.RangeController=s;var a=function(){function e(e,t){this.tickingInterval=null,this.gridPanel=e,this.gridOptionsWrapper=t}return e.prototype.check=function(e,t){void 0===t&&(t=!1);var o=this.gridPanel.getBodyClientRect();(t=t||this.gridOptionsWrapper.getDomLayout()!==n.Constants.DOM_LAYOUT_NORMAL)&&!this.gridPanel.isHorizontalScrollShowing()||(this.tickLeft=e.clientX<o.left+20,this.tickRight=e.clientX>o.right-20,this.tickUp=e.clientY<o.top+20&&!t,this.tickDown=e.clientY>o.bottom-20&&!t,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(){this.tickCount++;var e,t=this.gridPanel.getVScrollPosition(),o=this.gridPanel.getHScrollPosition();e=this.tickCount>20?200:this.tickCount>10?80:40,this.tickUp&&this.gridPanel.setVerticalScrollPosition(t.top-e),this.tickDown&&this.gridPanel.setVerticalScrollPosition(t.top+e),this.tickLeft&&this.gridPanel.setHorizontalScrollPosition(o.left-e),this.tickRight&&this.gridPanel.setHorizontalScrollPosition(o.left+e)},e.prototype.ensureCleared=function(){this.tickingInterval&&(window.clearInterval(this.tickingInterval),this.tickingInterval=null)},e}()},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/var i=this&&this.__decorate||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},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var n=o(4),s=o(6),a=o(3),l=o(23),p=o(24),u=o(5),c=o(10),d=o(0),h=o(7),f=o(46),g=o(9),y=o(2),v=function(){function e(){this.childrenMapped={},this.selectable=!0,this.__objectId=e.OBJECT_ID_SEQUENCE++,this.alreadyRendered=!1,this.selected=!1}return e.prototype.setData=function(e){var t=this.data;this.data=e,this.valueCache.onDataChanged(),this.updateDataOnDetailNode(),this.checkRowSelectable();var o=this.createDataChangedEvent(e,t,!1);this.dispatchLocalEvent(o)},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.updateData=function(e){var t=this.data;this.data=e,this.updateDataOnDetailNode(),this.checkRowSelectable(),this.updateDataOnDetailNode();var o=this.createDataChangedEvent(e,t,!0);this.dispatchLocalEvent(o)},e.prototype.getRowIndexString=function(){return this.rowPinned===h.Constants.PINNED_TOP?"t-"+this.rowIndex:this.rowPinned===h.Constants.PINNED_BOTTOM?"b-"+this.rowIndex:this.rowIndex.toString()},e.prototype.createDaemonNode=function(){var t=new e;return this.context.wireBean(t),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,t){var o=y._.exists(this.id)?this.createDaemonNode():null,i=this.data;this.data=e,this.updateDataOnDetailNode(),this.setId(t),this.selectionController.syncInRowNode(this,o),this.checkRowSelectable();var r=this.createDataChangedEvent(e,i,!1);this.dispatchLocalEvent(r)},e.prototype.checkRowSelectable=function(){var e=this.gridOptionsWrapper.getIsRowSelectableFunc(),t=e&&y._.exists(this);this.setRowSelectable(!t||e(this))},e.prototype.setRowSelectable=function(t){this.selectable!==t&&(this.selectable=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_SELECTABLE_CHANGED)))},e.prototype.setId=function(e){var t=this.gridOptionsWrapper.getRowNodeIdFunc();t?this.data?this.id=t(this.data):this.id=void 0:this.id=e},e.prototype.isPixelInRange=function(e){return e>=this.rowTop&&e<this.rowTop+this.rowHeight},e.prototype.clearRowTop=function(){this.oldRowTop=this.rowTop,this.setRowTop(null)},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.rowTop!==t&&(this.rowTop=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_TOP_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.setAllChildrenCount=function(t){this.allChildrenCount!==t&&(this.allChildrenCount=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_ALL_CHILDREN_COUNT_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.setRowIndex=function(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){if(this.expanded!==t){this.expanded=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_EXPANDED_CHANGED));var o=this.createGlobalRowEvent(s.Events.EVENT_ROW_GROUP_OPENED);this.mainEventService.dispatchEvent(o),this.gridOptionsWrapper.isGroupIncludeFooter()&&this.gridApi.redrawRows({rowNodes:[this]})}},e.prototype.createGlobalRowEvent=function(e){return{type:e,node:this,data:this.data,rowIndex:this.rowIndex,rowPinned:this.rowPinned,context:this.gridOptionsWrapper.getContext(),api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi()}},e.prototype.dispatchLocalEvent=function(e){this.eventService&&this.eventService.dispatchEvent(e)},e.prototype.setDataValue=function(e,t){var o=this.columnController.getPrimaryColumn(e);this.valueService.setValue(this,o,t),this.dispatchCellChangedEvent(o,t)},e.prototype.setGroupValue=function(e,t){var o=this.columnController.getGridColumn(e);y._.missing(this.groupData)&&(this.groupData={}),this.groupData[o.getColId()]=t,this.dispatchCellChangedEvent(o,t)},e.prototype.setAggData=function(e){var t=this,o=y._.getAllKeysInObjects([this.aggData,e]);this.aggData=e,this.eventService&&o.forEach((function(e){var o=t.columnController.getGridColumn(e),i=t.aggData?t.aggData[e]:void 0;t.dispatchCellChangedEvent(o,i)}))},e.prototype.hasChildren=function(){return this.group||this.childrenAfterGroup&&this.childrenAfterGroup.length>0},e.prototype.isEmptyRowGroupNode=function(){return this.group&&y._.missingOrEmpty(this.childrenAfterGroup)},e.prototype.dispatchCellChangedEvent=function(t,o){var i={type:e.EVENT_CELL_CHANGED,node:this,column:t,newValue:o};this.dispatchLocalEvent(i)},e.prototype.resetQuickFilterAggregateText=function(){this.quickFilterAggregateText=null},e.prototype.isExpandable=function(){return this.hasChildren()||this.master},e.prototype.isSelected=function(){return this.footer?this.sibling.isSelected():this.selected},e.prototype.depthFirstSearch=function(e){this.childrenAfterGroup&&this.childrenAfterGroup.forEach((function(t){return t.depthFirstSearch(e)})),e(this)},e.prototype.calculateSelectedFromChildren=function(){var e,t=!1,o=!1,i=!1;if(this.childrenAfterGroup)for(var r=0;r<this.childrenAfterGroup.length;r++){var n=this.childrenAfterGroup[r];if(n.selectable)switch(n.isSelected()){case!0:t=!0;break;case!1:o=!0;break;default:i=!0}}e=i?void 0:!(!t||o)||!(!t&&o)&&void 0,this.selectThisNode(e)},e.prototype.setSelectedInitialValue=function(e){this.selected=e},e.prototype.setSelected=function(e,t,o){void 0===t&&(t=!1),void 0===o&&(o=!1),this.setSelectedParams({newValue:e,clearSelection:t,suppressFinishActions:o,rangeSelect:!1})},e.prototype.isRowPinned=function(){return this.rowPinned===h.Constants.PINNED_TOP||this.rowPinned===h.Constants.PINNED_BOTTOM},e.prototype.setSelectedParams=function(e){var t=this.gridOptionsWrapper.isGroupSelectsChildren(),o=!0===e.newValue,i=!0===e.clearSelection,r=!0===e.suppressFinishActions,n=!0===e.rangeSelect,a=t&&!0===e.groupSelectsFiltered;if(void 0===this.id)return console.warn("ag-Grid: cannot select node until id for node is known"),0;if(this.rowPinned)return console.warn("ag-Grid: cannot select pinned rows"),0;if(this.footer)return this.sibling.setSelectedParams(e);if(n){var l=this.selectionController.getLastSelectedNode()!==this,p=this.gridOptionsWrapper.isRowSelectionMulti();if(l&&p)return this.doRowRangeSelection()}var u=0;a&&this.group||this.selectThisNode(o)&&u++;if(t&&this.group&&(u+=this.selectChildNodes(o,a)),!r){if(o&&(i||!this.gridOptionsWrapper.isRowSelectionMulti())&&(u+=this.selectionController.clearOtherNodes(this)),u>0){this.selectionController.updateGroupsFromChildrenSelections();var c={type:s.Events.EVENT_SELECTION_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.mainEventService.dispatchEvent(c)}o&&this.selectionController.setLastSelectedNode(this)}return u},e.prototype.doRowRangeSelection=function(){var e=0,t=this.gridOptionsWrapper.isGroupSelectsChildren(),o=this.selectionController.getLastSelectedNode();this.rowModel.getNodesInRangeForSelection(this,o).forEach((function(o){o.group&&t||o.selectThisNode(!0)&&e++})),this.selectionController.updateGroupsFromChildrenSelections();var i={type:s.Events.EVENT_SELECTION_CHANGED,api:this.gridApi,columnApi:this.columnApi};return this.mainEventService.dispatchEvent(i),e},e.prototype.isParentOfNode=function(e){for(var t=this.parent;t;){if(t===e)return!0;t=t.parent}return!1},e.prototype.selectThisNode=function(t){if(!this.selectable||this.selected===t)return!1;this.selected=t,this.eventService&&this.dispatchLocalEvent(this.createLocalRowEvent(e.EVENT_ROW_SELECTED));var o=this.createGlobalRowEvent(s.Events.EVENT_ROW_SELECTED);return this.mainEventService.dispatchEvent(o),!0},e.prototype.selectChildNodes=function(e,t){var o=t?this.childrenAfterFilter:this.childrenAfterGroup,i=0;if(!y._.missing(o)){for(var r=0;r<o.length;r++)i+=o[r].setSelectedParams({newValue:e,clearSelection:!1,suppressFinishActions:!0,groupSelectsFiltered:t});return i}},e.prototype.addEventListener=function(e,t){this.eventService||(this.eventService=new n.EventService),this.eventService.addEventListener(e,t)},e.prototype.removeEventListener=function(e,t){this.eventService.removeEventListener(e,t)},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 t,o=this,i=!0,r=!1;i&&!r;){var n=o.parent;y._.exists(n)&&o.firstChild?n.rowGroupColumn===e&&(r=!0,t=n):i=!1,o=n}return r?t:null},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_MOUSE_ENTER="mouseEnter",e.EVENT_MOUSE_LEAVE="mouseLeave",e.EVENT_HEIGHT_CHANGED="heightChanged",e.EVENT_TOP_CHANGED="topChanged",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_SELECTABLE_CHANGED="selectableChanged",e.EVENT_UI_LEVEL_CHANGED="uiLevelChanged",e.EVENT_DRAGGING_CHANGED="draggingChanged",i([d.Autowired("eventService"),r("design:type",n.EventService)],e.prototype,"mainEventService",void 0),i([d.Autowired("gridOptionsWrapper"),r("design:type",a.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([d.Autowired("selectionController"),r("design:type",l.SelectionController)],e.prototype,"selectionController",void 0),i([d.Autowired("columnController"),r("design:type",u.ColumnController)],e.prototype,"columnController",void 0),i([d.Autowired("valueService"),r("design:type",p.ValueService)],e.prototype,"valueService",void 0),i([d.Autowired("rowModel"),r("design:type",Object)],e.prototype,"rowModel",void 0),i([d.Autowired("context"),r("design:type",d.Context)],e.prototype,"context",void 0),i([d.Autowired("valueCache"),r("design:type",f.ValueCache)],e.prototype,"valueCache",void 0),i([d.Autowired("columnApi"),r("design:type",c.ColumnApi)],e.prototype,"columnApi",void 0),i([d.Autowired("gridApi"),r("design:type",g.GridApi)],e.prototype,"gridApi",void 0),e}();t.RowNode=v},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/var i=this&&this.__decorate||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},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},n=this&&this.__param||function(e,t){return function(o,i){t(o,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});var s=o(0),a=o(0),l=o(14),p=o(4),u=o(6),c=o(0),d=o(3),h=o(0),f=o(7),g=o(10),y=o(9),v=o(2),m=o(85),C=function(){function e(){}return e.prototype.setBeans=function(e){this.logger=e.create("SelectionController"),this.reset(),this.gridOptionsWrapper.isRowModelDefault()?this.eventService.addEventListener(u.Events.EVENT_ROW_DATA_CHANGED,this.reset.bind(this)):this.logger.log("dont know what to do here")},e.prototype.init=function(){this.groupSelectsChildren=this.gridOptionsWrapper.isGroupSelectsChildren(),this.eventService.addEventListener(u.Events.EVENT_ROW_SELECTED,this.onRowSelected.bind(this))},e.prototype.setLastSelectedNode=function(e){this.lastSelectedNode=e},e.prototype.getLastSelectedNode=function(){return this.lastSelectedNode},e.prototype.getSelectedNodes=function(){var e=[];return v._.iterateObject(this.selectedNodes,(function(t,o){o&&e.push(o)})),e},e.prototype.getSelectedRows=function(){var e=[];return v._.iterateObject(this.selectedNodes,(function(t,o){o&&o.data&&e.push(o.data)})),e},e.prototype.removeGroupsFromSelection=function(){var e=this;v._.iterateObject(this.selectedNodes,(function(t,o){o&&o.group&&(e.selectedNodes[o.id]=void 0)}))},e.prototype.updateGroupsFromChildrenSelections=function(e){if(this.gridOptionsWrapper.isGroupSelectsChildren()&&this.rowModel.getType()===f.Constants.ROW_MODEL_TYPE_CLIENT_SIDE){var t=this.rowModel.getRootNode();e||(e=new m.ChangedPath(!0,t)).setInactive(),e.forEachChangedNodeDepthFirst((function(e){e!==t&&e.calculateSelectedFromChildren()}))}},e.prototype.getNodeForIdIfSelected=function(e){return this.selectedNodes[e]},e.prototype.clearOtherNodes=function(e){var t=this,o={},i=0;return v._.iterateObject(this.selectedNodes,(function(r,n){if(n&&n.id!==e.id){var s=t.selectedNodes[n.id];i+=s.setSelectedParams({newValue:!1,clearSelection:!1,suppressFinishActions:!0}),t.groupSelectsChildren&&n.parent&&(o[n.parent.id]=n.parent)}})),v._.iterateObject(o,(function(e,t){t.calculateSelectedFromChildren()})),i},e.prototype.onRowSelected=function(e){var t=e.node;this.groupSelectsChildren&&t.group||(t.isSelected()?this.selectedNodes[t.id]=t:this.selectedNodes[t.id]=void 0)},e.prototype.syncInRowNode=function(e,t){this.syncInOldRowNode(e,t),this.syncInNewRowNode(e)},e.prototype.syncInOldRowNode=function(e,t){v._.exists(t)&&e.id!==t.id&&(v._.exists(this.selectedNodes[t.id])&&(this.selectedNodes[t.id]=t))},e.prototype.syncInNewRowNode=function(e){v._.exists(this.selectedNodes[e.id])?(e.setSelectedInitialValue(!0),this.selectedNodes[e.id]=e):e.setSelectedInitialValue(!1)},e.prototype.reset=function(){this.logger.log("reset"),this.selectedNodes={},this.lastSelectedNode=null},e.prototype.getBestCostNodeSelection=function(){this.rowModel.getType()!==f.Constants.ROW_MODEL_TYPE_CLIENT_SIDE&&console.warn("getBestCostNodeSelection is only available when using normal row model");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];n.isSelected()?t.push(n):n.group&&n.children&&e(n.children)}}(e),t}console.warn("selectAll not available doing rowModel=virtual")},e.prototype.setRowModel=function(e){this.rowModel=e},e.prototype.isEmpty=function(){var e=0;return v._.iterateObject(this.selectedNodes,(function(t,o){o&&e++})),0===e},e.prototype.deselectAllRowNodes=function(e){void 0===e&&(e=!1);var t=function(e){return e.selectThisNode(!1)},o=this.rowModel.getType()===f.Constants.ROW_MODEL_TYPE_CLIENT_SIDE;if(e){if(!o)return void console.error("ag-Grid: selecting just filtered only works with In Memory Row Model");this.rowModel.forEachNodeAfterFilter(t)}else v._.iterateObject(this.selectedNodes,(function(e,o){o&&t(o)})),this.reset();o&&this.groupSelectsChildren&&this.updateGroupsFromChildrenSelections();var i={type:u.Events.EVENT_SELECTION_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(i)},e.prototype.selectAllRowNodes=function(e){if(void 0===e&&(e=!1),this.rowModel.getType()!==f.Constants.ROW_MODEL_TYPE_CLIENT_SIDE)throw new Error("selectAll only available with normal row model, ie not "+this.rowModel.getType());var t=this.rowModel,o=function(e){return e.selectThisNode(!0)};e?t.forEachNodeAfterFilter(o):t.forEachNode(o),this.rowModel.getType()===f.Constants.ROW_MODEL_TYPE_CLIENT_SIDE&&this.groupSelectsChildren&&this.updateGroupsFromChildrenSelections();var i={type:u.Events.EVENT_SELECTION_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(i)},e.prototype.selectNode=function(e,t){e&&e.setSelectedParams({newValue:!0,clearSelection:!t})},e.prototype.deselectIndex=function(e){var t=this.rowModel.getRow(e);this.deselectNode(t)},e.prototype.deselectNode=function(e){e&&e.setSelectedParams({newValue:!1,clearSelection:!1})},e.prototype.selectIndex=function(e,t){var o=this.rowModel.getRow(e);this.selectNode(o,t)},i([c.Autowired("eventService"),r("design:type",p.EventService)],e.prototype,"eventService",void 0),i([c.Autowired("rowModel"),r("design:type",Object)],e.prototype,"rowModel",void 0),i([c.Autowired("gridOptionsWrapper"),r("design:type",d.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([c.Autowired("columnApi"),r("design:type",g.ColumnApi)],e.prototype,"columnApi",void 0),i([c.Autowired("gridApi"),r("design:type",y.GridApi)],e.prototype,"gridApi",void 0),i([n(0,a.Qualifier("loggerFactory")),r("design:type",Function),r("design:paramtypes",[l.LoggerFactory]),r("design:returntype",void 0)],e.prototype,"setBeans",null),i([h.PostConstruct,r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],e.prototype,"init",null),e=i([s.Bean("selectionController")],e)}();t.SelectionController=C},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/var i=this&&this.__decorate||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},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var n=o(3),s=o(25),a=o(5),l=o(0),p=o(6),u=o(4),c=o(46),d=o(2),h=function(){function e(){this.initialised=!1}return e.prototype.init=function(){this.cellExpressions=this.gridOptionsWrapper.isEnableCellExpressions(),this.initialised=!0},e.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.getId(),l=t.data,p=t.groupData&&void 0!==t.groupData[a],u=!i&&t.aggData&&void 0!==t.aggData[a];if(o&&n.filterValueGetter?r=this.executeFilterValueGetter(n.filterValueGetter,l,e,t):this.gridOptionsWrapper.isTreeData()&&u?r=t.aggData[a]:this.gridOptionsWrapper.isTreeData()&&n.valueGetter?r=this.executeValueGetter(n.valueGetter,l,e,t):this.gridOptionsWrapper.isTreeData()&&s&&l?r=d._.getValueUsingField(l,s,e.isFieldContainsDots()):p?r=t.groupData[a]:u?r=t.aggData[a]:n.valueGetter?r=this.executeValueGetter(n.valueGetter,l,e,t):s&&l&&(r=d._.getValueUsingField(l,s,e.isFieldContainsDots())),this.cellExpressions&&"string"==typeof r&&0===r.indexOf("=")){var c=r.substring(1);r=this.executeValueGetter(c,l,e,t)}return r}},e.prototype.setValue=function(e,t,o){var i=this.columnController.getPrimaryColumn(t);if(e&&i){var r=e.data;d._.missing(r)&&(e.data={});var n=i.getColDef(),s=n.field,a=n.newValueHandler,l=n.valueSetter;if(d._.missing(s)&&d._.missing(a)&&d._.missing(l))console.warn("ag-Grid: you need either field or valueSetter set on colDef for editing to work");else{var u,c={node:e,data:e.data,oldValue:this.getValue(i,e),newValue:o,colDef:i.getColDef(),column:i,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()};if(c.newValue=o,void 0===(u=a&&d._.exists(a)?a(c):d._.exists(l)?this.expressionService.evaluate(l,c):this.setValueUsingField(r,s,o,i.isFieldContainsDots()))&&(u=!0),u){e.resetQuickFilterAggregateText(),this.valueCache.onDataChanged(),c.newValue=this.getValue(i,e);var h=i.getColDef().onCellValueChanged;"function"==typeof h&&setTimeout((function(){return h(c)}),0);var f={type:p.Events.EVENT_CELL_VALUE_CHANGED,event:null,rowIndex:e.rowIndex,rowPinned:e.rowPinned,column:c.column,api:c.api,colDef:c.colDef,columnApi:c.columnApi,context:c.context,data:e.data,node:e,oldValue:c.oldValue,newValue:c.newValue,value:c.newValue};this.eventService.dispatchEvent(f)}}}},e.prototype.setValueUsingField=function(e,t,o,i){if(!t)return!1;if(i)for(var r=t.split("."),n=e;r.length>0&&n;){var s=r.shift();0===r.length?n[s]=o:n=n[s]}else e[t]=o;return!0},e.prototype.executeFilterValueGetter=function(e,t,o,i){var r={data:t,node:i,column:o,colDef:o.getColDef(),api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext(),getValue:this.getValueCallback.bind(this,i)};return this.expressionService.evaluate(e,r)},e.prototype.executeValueGetter=function(e,t,o,i){var r=o.getId(),n=this.valueCache.getValue(i,r);if(void 0!==n)return n;var s={data:t,node:i,column:o,colDef:o.getColDef(),api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext(),getValue:this.getValueCallback.bind(this,i)},a=this.expressionService.evaluate(e,s);return this.valueCache.setValue(i,r,a),a},e.prototype.getValueCallback=function(e,t){var o=this.columnController.getPrimaryColumn(t);return o?this.getValue(o,e):null},e.prototype.getKeyForNode=function(e,t){var o=this.getValue(e,t),i=e.getColDef().keyCreator,r=i?i({value:o}):o;return"string"==typeof r||null==r?r:("[object Object]"===(r=String(r))&&d._.doOnce((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)},i([l.Autowired("gridOptionsWrapper"),r("design:type",n.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([l.Autowired("expressionService"),r("design:type",s.ExpressionService)],e.prototype,"expressionService",void 0),i([l.Autowired("columnController"),r("design:type",a.ColumnController)],e.prototype,"columnController",void 0),i([l.Autowired("eventService"),r("design:type",u.EventService)],e.prototype,"eventService",void 0),i([l.Autowired("valueCache"),r("design:type",c.ValueCache)],e.prototype,"valueCache",void 0),i([l.PostConstruct,r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],e.prototype,"init",null),e=i([l.Bean("valueService")],e)}();t.ValueService=h},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/var i=this&&this.__decorate||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},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},n=this&&this.__param||function(e,t){return function(o,i){t(o,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});var s=o(14),a=o(0),l=o(0),p=function(){function e(){this.expressionToFunctionCache={}}return e.prototype.setBeans=function(e){this.logger=e.create("ExpressionService")},e.prototype.evaluate=function(e,t){if("function"==typeof e)return e(t);if("string"==typeof e){var o=e;return this.evaluateExpression(o,t)}console.error("ag-Grid: value should be either a string or a function",e)},e.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(t){return console.log("Processing of the expression failed"),console.log("Expression = "+e),console.log("Exception = "+t),null}},e.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},e.prototype.createFunctionBody=function(e){return e.indexOf("return")>=0?e:"return "+e+";"},i([n(0,l.Qualifier("loggerFactory")),r("design:type",Function),r("design:paramtypes",[s.LoggerFactory]),r("design:returntype",void 0)],e.prototype,"setBeans",null),e=i([a.Bean("expressionService")],e)}();t.ExpressionService=p},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/var i=this&&this.__decorate||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},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),s=o(4),a=o(6),l=o(3),p=o(10),u=o(5),c=o(9),d=o(59),h=o(2),f=function(){function e(){}return e.prototype.init=function(){this.eventService.addEventListener(a.Events.EVENT_COLUMN_PIVOT_MODE_CHANGED,this.clearFocusedCell.bind(this)),this.eventService.addEventListener(a.Events.EVENT_COLUMN_EVERYTHING_CHANGED,this.clearFocusedCell.bind(this)),this.eventService.addEventListener(a.Events.EVENT_COLUMN_GROUP_OPENED,this.clearFocusedCell.bind(this)),this.eventService.addEventListener(a.Events.EVENT_COLUMN_ROW_GROUP_CHANGED,this.clearFocusedCell.bind(this))},e.prototype.clearFocusedCell=function(){this.focusedCellPosition=null,this.onCellFocused(!1)},e.prototype.getFocusedCell=function(){return this.focusedCellPosition},e.prototype.getFocusCellToUseAfterRefresh=function(){return this.gridOptionsWrapper.isSuppressFocusAfterRefresh()?null:this.focusedCellPosition&&this.getGridCellForDomElement(document.activeElement)?this.focusedCellPosition:null},e.prototype.getGridCellForDomElement=function(e){for(var t=e;t;){var o=this.gridOptionsWrapper.getDomData(t,d.CellComp.DOM_DATA_KEY_CELL_COMP);if(o)return o.getCellPosition();t=t.parentNode}return null},e.prototype.setFocusedCell=function(e,t,o,i){void 0===i&&(i=!1);var r=h._.makeNull(this.columnController.getGridColumn(t));this.focusedCellPosition={rowIndex:e,rowPinned:h._.makeNull(o),column:r},this.onCellFocused(i)},e.prototype.isCellFocused=function(e){return!h._.missing(this.focusedCellPosition)&&(this.focusedCellPosition.column===e.column&&this.isRowFocused(e.rowIndex,e.rowPinned))},e.prototype.isRowNodeFocused=function(e){return this.isRowFocused(e.rowIndex,e.rowPinned)},e.prototype.isAnyCellFocused=function(){return!!this.focusedCellPosition},e.prototype.isRowFocused=function(e,t){if(h._.missing(this.focusedCellPosition))return!1;var o=h._.makeNull(t);return this.focusedCellPosition.rowIndex===e&&this.focusedCellPosition.rowPinned===o},e.prototype.onCellFocused=function(e){var t={type:a.Events.EVENT_CELL_FOCUSED,forceBrowserFocus:e,rowIndex:null,column:null,floating:null,api:this.gridApi,columnApi:this.columnApi,rowPinned:null};this.focusedCellPosition&&(t.rowIndex=this.focusedCellPosition.rowIndex,t.column=this.focusedCellPosition.column,t.rowPinned=this.focusedCellPosition.rowPinned),this.eventService.dispatchEvent(t)},i([n.Autowired("eventService"),r("design:type",s.EventService)],e.prototype,"eventService",void 0),i([n.Autowired("gridOptionsWrapper"),r("design:type",l.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([n.Autowired("columnController"),r("design:type",u.ColumnController)],e.prototype,"columnController",void 0),i([n.Autowired("columnApi"),r("design:type",p.ColumnApi)],e.prototype,"columnApi",void 0),i([n.Autowired("gridApi"),r("design:type",c.GridApi)],e.prototype,"gridApi",void 0),i([n.PostConstruct,r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],e.prototype,"init",null),e=i([n.Bean("focusedCellController")],e)}();t.FocusedCellController=f},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/var i=this&&this.__decorate||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},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var n=o(12),s=o(0),a=o(3),l=o(10),p=o(5),u=o(4),c=o(6),d=o(9),h=o(2),f=function(){function e(){}var t;return t=e,e.prototype.progressSort=function(e,t,o){void 0===o&&(o="api");var i=this.getNextSortDirection(e);this.setSortForColumn(e,i,t,o)},e.prototype.setSortForColumn=function(e,t,o,i){if(void 0===i&&(i="api"),t!==n.Column.SORT_ASC&&t!==n.Column.SORT_DESC&&(t=null),e.setSort(t,i),e.getSort()){var r=Number((new Date).valueOf());e.setSortedAt(r)}else e.setSortedAt(null);o&&!this.gridOptionsWrapper.isSuppressMultiSort()||this.clearSortBarThisColumn(e,i),this.dispatchSortChangedEvents()},e.prototype.onSortChanged=function(){this.dispatchSortChangedEvents()},e.prototype.dispatchSortChangedEvents=function(){var e={type:c.Events.EVENT_SORT_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(e)},e.prototype.clearSortBarThisColumn=function(e,t){this.columnController.getPrimaryAndSecondaryAndAutoColumns().forEach((function(o){o!==e&&o.setSort(void 0,t)}))},e.prototype.getNextSortDirection=function(e){var o;if(o=e.getColDef().sortingOrder?e.getColDef().sortingOrder:this.gridOptionsWrapper.getSortingOrder()?this.gridOptionsWrapper.getSortingOrder():t.DEFAULT_SORTING_ORDER,!Array.isArray(o)||o.length<=0)return console.warn("ag-grid: sortingOrder must be an array with at least one element, currently it's "+o),null;var i,r=o.indexOf(e.getSort()),n=r<0,s=r==o.length-1;return i=n||s?o[0]:o[r+1],t.DEFAULT_SORTING_ORDER.indexOf(i)<0?(console.warn("ag-grid: invalid sort type "+i),null):i},e.prototype.getSortModel=function(){var e=this.getColumnsWithSortingOrdered();return h._.map(e,(function(e){return{colId:e.getColId(),sort:e.getSort()}}))},e.prototype.setSortModel=function(e,t){var o=this;void 0===t&&(t="api");var i=e&&e.length>0;this.columnController.getPrimaryAndSecondaryAndAutoColumns().forEach((function(r){var n=null,s=-1;if(i&&r.getColDef().sortable)for(var a=0;a<e.length;a++){var l=e[a];"string"==typeof l.colId&&"string"==typeof r.getColId()&&o.compareColIds(l,r)&&(n=l.sort,s=a)}n?(r.setSort(n,t),r.setSortedAt(s)):(r.setSort(null,t),r.setSortedAt(null))})),this.dispatchSortChangedEvents()},e.prototype.compareColIds=function(e,t){return e.colId===t.getColId()},e.prototype.getColumnsWithSortingOrdered=function(){var e=this.columnController.getPrimaryAndSecondaryAndAutoColumns(),t=h._.filter(e,(function(e){return!!e.getSort()}));return t.sort((function(e,t){return e.sortedAt-t.sortedAt})),t},e.prototype.getSortForRowController=function(){var e=this.getColumnsWithSortingOrdered();return h._.map(e,(function(e){return{inverter:e.getSort()===n.Column.SORT_ASC?1:-1,column:e}}))},e.DEFAULT_SORTING_ORDER=[n.Column.SORT_ASC,n.Column.SORT_DESC,null],i([s.Autowired("gridOptionsWrapper"),r("design:type",a.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([s.Autowired("columnController"),r("design:type",p.ColumnController)],e.prototype,"columnController",void 0),i([s.Autowired("eventService"),r("design:type",u.EventService)],e.prototype,"eventService",void 0),i([s.Autowired("columnApi"),r("design:type",l.ColumnApi)],e.prototype,"columnApi",void 0),i([s.Autowired("gridApi"),r("design:type",d.GridApi)],e.prototype,"gridApi",void 0),e=t=i([s.Bean("sortController")],e)}();t.SortController=f},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r=o(98);!function(e){e[e.All=0]="All",e[e.None=1]="None"}(i=t.PointerEvents||(t.PointerEvents={}));var n=function(){function e(){this.id=this.createId(),this.tag=NaN,this.isContainerNode=!1,this._children=[],this.childSet={},this.matrix=new r.Matrix,this.inverseMatrix=new r.Matrix,this._dirtyTransform=!1,this._scalingX=1,this._scalingY=1,this._scalingCenterX=null,this._scalingCenterY=null,this._rotationCenterX=null,this._rotationCenterY=null,this._rotation=0,this._translationX=0,this._translationY=0,this._dirty=!0,this._visible=!0,this.pointerEvents=i.All}return e.prototype.createId=function(){var e=this.constructor,t=e.className;if(!t)throw new Error("The "+e+" is missing the 'className' property.");return t+"-"+(e.id=(e.id||0)+1)},e.isNode=function(e){return!!e&&void 0!==e.matrix},e.prototype._setScene=function(e){this._scene=e;for(var t=this.children,o=t.length,i=0;i<o;i++)t[i]._setScene(e)},Object.defineProperty(e.prototype,"scene",{get:function(){return this._scene},enumerable:!0,configurable:!0}),e.prototype._setParent=function(e){this._parent=e},Object.defineProperty(e.prototype,"parent",{get:function(){return this._parent},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"children",{get:function(){return this._children},enumerable:!0,configurable:!0}),e.prototype.countChildren=function(t){if(void 0===t&&(t=e.MAX_SAFE_INTEGER),t<=0)return 0;for(var o=this.children,i=o.length,r=i,n=0;n<i;n++)r+=o[n].countChildren(t-1);return r},e.prototype.append=function(t){e.isNode(t)&&(t=[t]);for(var o=t.length,i=0;i<o;i++){var r=t[i];if(r.parent)throw new Error(r+" already belongs to another parent: "+r.parent+".");if(r.scene)throw new Error(r+" already belongs a scene: "+r.scene+".");if(this.childSet[r.id])throw new Error("Duplicate "+r.constructor.name+" node: "+r);this._children.push(r),this.childSet[r.id]=!0,r._setParent(this),r._setScene(this.scene)}this.dirty=!0},e.prototype.appendChild=function(e){if(e.parent)throw new Error(e+" already belongs to another parent: "+e.parent+".");if(e.scene)throw new Error(e+" already belongs a scene: "+e.scene+".");if(this.childSet[e.id])throw new Error("Duplicate "+e.constructor.name+" node: "+e);return this._children.push(e),this.childSet[e.id]=!0,e._setParent(this),e._setScene(this.scene),this.dirty=!0,e},e.prototype.removeChild=function(e){if(e.parent===this){var t=this.children.indexOf(e);if(t>=0)return this._children.splice(t,1),delete this.childSet[e.id],e._setParent(void 0),e._setScene(void 0),this.dirty=!0,e}throw new Error("The node to be removed is not a child of this node.")},e.prototype.insertBefore=function(e,t){var o=e.parent;if(e.parent&&e.parent.removeChild(e),t&&t.parent===this){var i=this.children.indexOf(t);if(!(i>=0))throw new Error(t+" has "+o+" as the parent, but is not in its list of children.");this._children.splice(i,0,e),this.childSet[e.id]=!0,e._setParent(this),e._setScene(this.scene),this.dirty=!0}else this.append(e);return e},e.prototype.transformPoint=function(e,t){for(var o=r.Matrix.flyweight(this.matrix),i=this.parent;i;)o.preMultiplySelf(i.matrix),i=i.parent;return o.invertSelf().transformPoint(e,t)},Object.defineProperty(e.prototype,"dirtyTransform",{get:function(){return this._dirtyTransform},set:function(e){this._dirtyTransform=e,e&&(this.dirty=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"scalingX",{get:function(){return this._scalingX},set:function(e){this._scalingX!==e&&(this._scalingX=e,this.dirtyTransform=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"scalingY",{get:function(){return this._scalingY},set:function(e){this._scalingY!==e&&(this._scalingY=e,this.dirtyTransform=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"scalingCenterX",{get:function(){return this._scalingCenterX},set:function(e){this._scalingCenterX!==e&&(this._scalingCenterX=e,this.dirtyTransform=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"scalingCenterY",{get:function(){return this._scalingCenterY},set:function(e){this._scalingCenterY!==e&&(this._scalingCenterY=e,this.dirtyTransform=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rotationCenterX",{get:function(){return this._rotationCenterX},set:function(e){this._rotationCenterX!==e&&(this._rotationCenterX=e,this.dirtyTransform=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rotationCenterY",{get:function(){return this._rotationCenterY},set:function(e){this._rotationCenterY!==e&&(this._rotationCenterY=e,this.dirtyTransform=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rotation",{get:function(){return this._rotation},set:function(e){this._rotation!==e&&(this._rotation=e,this.dirtyTransform=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rotationDeg",{get:function(){return this.rotation/Math.PI*180},set:function(e){this.rotation=e/180*Math.PI},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"translationX",{get:function(){return this._translationX},set:function(e){this._translationX!==e&&(this._translationX=e,this.dirtyTransform=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"translationY",{get:function(){return this._translationY},set:function(e){this._translationY!==e&&(this._translationY=e,this.dirtyTransform=!0)},enumerable:!0,configurable:!0}),e.prototype.isPointInNode=function(e,t){return!1},e.prototype.pickNode=function(e,t){if(this.visible&&this.pointerEvents!==i.None&&this.isPointInNode(e,t)){var o=this.children;if(o.length)for(var r=o.length-1;r>=0;r--){var n=o[r].pickNode(e,t);if(n)return n}else if(!this.isContainerNode)return this}},e.prototype.getBBox=function(){},e.prototype.getBBoxCenter=function(){var e=this.getBBox&&this.getBBox();return e?[e.x+.5*e.width,e.y+.5*e.height]:[0,0]},e.prototype.computeTransformMatrix=function(){var e,t,o=[0,0],i=o[0],r=o[1],n=this.scalingX,s=this.scalingY;1===n&&1===s?(e=0,t=0):(e=null===this.scalingCenterX?i:this.scalingCenterX,t=null===this.scalingCenterY?r:this.scalingCenterY);var a,l,p=this.rotation,u=Math.cos(p),c=Math.sin(p);0===p?(a=0,l=0):(a=null===this.rotationCenterX?i:this.rotationCenterX,l=null===this.rotationCenterY?r:this.rotationCenterY);var d=this.translationX,h=this.translationY,f=e*(1-n)-a,g=t*(1-s)-l;this.dirtyTransform=!1,this.matrix.setElements([u*n,c*n,-c*s,u*s,u*f-c*g+a+d,c*f+u*g+l+h]).inverseTo(this.inverseMatrix)},Object.defineProperty(e.prototype,"dirty",{get:function(){return this._dirty},set:function(e){this._dirty=e,e&&(this.parent?this.parent.dirty=!0:this.scene&&(this.scene.dirty=!0))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"visible",{get:function(){return this._visible},set:function(e){this._visible!==e&&(this._visible=e,this.dirty=!0)},enumerable:!0,configurable:!0}),e.MAX_SAFE_INTEGER=Math.pow(2,53)-1,e}();t.Node=n},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t,o,i){this.x=e,this.y=t,this.width=o,this.height=i}return e.prototype.dilate=function(e){this.x-=e,this.y-=e,this.width+=2*e,this.height+=2*e},e.prototype.containsPoint=function(e,t){return e>=this.x&&e<=this.x+this.width&&t>=this.y&&t<=this.y+this.height},e.prototype.render=function(t,o){void 0===o&&(o=e.noParams),t.save(),o.resetTransform&&t.setTransform(1,0,0,1,0,0),t.strokeStyle=o.strokeStyle||"cyan",t.lineWidth=o.lineWidth||1,t.strokeRect(this.x,this.y,this.width,this.height),o.label&&(t.fillStyle=o.fillStyle||"black",t.textBaseline="bottom",t.fillText(o.label,this.x,this.y)),t.restore()},e.noParams={},e}();t.BBox=i},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/var i=this&&this.__decorate||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},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var n=o(3),s=o(22),a=o(0),l=o(4),p=o(6),u=o(7),c=o(10),d=o(9),h=o(2),f=function(){function e(){}return e.prototype.init=function(){this.setPinnedTopRowData(this.gridOptionsWrapper.getPinnedTopRowData()),this.setPinnedBottomRowData(this.gridOptionsWrapper.getPinnedBottomRowData())},e.prototype.isEmpty=function(e){var t=e===u.Constants.PINNED_TOP?this.pinnedTopRows:this.pinnedBottomRows;return h._.missingOrEmpty(t)},e.prototype.isRowsToRender=function(e){return!this.isEmpty(e)},e.prototype.getRowAtPixel=function(e,t){var o=t===u.Constants.PINNED_TOP?this.pinnedTopRows:this.pinnedBottomRows;if(h._.missingOrEmpty(o))return 0;for(var i=0;i<o.length;i++){var r=o[i];if(r.rowTop+r.rowHeight-1>=e)return i}return o.length-1},e.prototype.setPinnedTopRowData=function(e){this.pinnedTopRows=this.createNodesFromData(e,!0);var t={type:p.Events.EVENT_PINNED_ROW_DATA_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(t)},e.prototype.setPinnedBottomRowData=function(e){this.pinnedBottomRows=this.createNodesFromData(e,!1);var t={type:p.Events.EVENT_PINNED_ROW_DATA_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(t)},e.prototype.createNodesFromData=function(e,t){var o=this,i=[];if(e){var r=0;e.forEach((function(e,n){var a=new s.RowNode;o.context.wireBean(a),a.data=e,a.id=(t?"t":"b")+"-"+n,a.rowPinned=t?u.Constants.PINNED_TOP:u.Constants.PINNED_BOTTOM,a.setRowTop(r),a.setRowHeight(o.gridOptionsWrapper.getRowHeightForNode(a).height),a.setRowIndex(n),r+=a.rowHeight,i.push(a)}))}return i},e.prototype.getPinnedTopRowData=function(){return this.pinnedTopRows},e.prototype.getPinnedBottomRowData=function(){return this.pinnedBottomRows},e.prototype.getPinnedTopTotalHeight=function(){return this.getTotalHeight(this.pinnedTopRows)},e.prototype.getPinnedTopRowCount=function(){return this.pinnedTopRows?this.pinnedTopRows.length:0},e.prototype.getPinnedBottomRowCount=function(){return this.pinnedBottomRows?this.pinnedBottomRows.length:0},e.prototype.getPinnedTopRow=function(e){return this.pinnedTopRows[e]},e.prototype.getPinnedBottomRow=function(e){return this.pinnedBottomRows[e]},e.prototype.forEachPinnedTopRow=function(e){h._.missingOrEmpty(this.pinnedTopRows)||this.pinnedTopRows.forEach(e)},e.prototype.forEachPinnedBottomRow=function(e){h._.missingOrEmpty(this.pinnedBottomRows)||this.pinnedBottomRows.forEach(e)},e.prototype.getPinnedBottomTotalHeight=function(){return this.getTotalHeight(this.pinnedBottomRows)},e.prototype.getTotalHeight=function(e){if(e&&0!==e.length){var t=h._.last(e);return t.rowTop+t.rowHeight}return 0},i([a.Autowired("gridOptionsWrapper"),r("design:type",n.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([a.Autowired("eventService"),r("design:type",l.EventService)],e.prototype,"eventService",void 0),i([a.Autowired("context"),r("design:type",a.Context)],e.prototype,"context",void 0),i([a.Autowired("columnApi"),r("design:type",c.ColumnApi)],e.prototype,"columnApi",void 0),i([a.Autowired("gridApi"),r("design:type",d.GridApi)],e.prototype,"gridApi",void 0),i([a.PostConstruct,r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],e.prototype,"init",null),e=i([a.Bean("pinnedRowModel")],e)}();t.PinnedRowModel=f},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),n=this&&this.__decorate||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},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(15),l=o(4),p=o(6),u=o(0),c=o(3),d=o(23),h=o(10),f=o(9),g=o(2),y=function(e){function t(){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 r(t,e),t.prototype.postConstruct=function(){this.active=this.gridOptionsWrapper.isPagination(),this.paginateChildRows=this.gridOptionsWrapper.isPaginateChildRows(),this.addDestroyableEventListener(this.eventService,p.Events.EVENT_MODEL_UPDATED,this.onModelUpdated.bind(this)),this.addDestroyableEventListener(this.gridOptionsWrapper,"paginationPageSize",this.onModelUpdated.bind(this)),this.onModelUpdated()},t.prototype.ensureRowHeightsValid=function(e,t,o,i){var r=this.rowModel.ensureRowHeightsValid(e,t,this.getPageFirstRow(),this.getPageLastRow());return r&&this.calculatePages(),r},t.prototype.onModelUpdated=function(e){this.calculatePages();var t={type:p.Events.EVENT_PAGINATION_CHANGED,animate:!!e&&e.animate,newData:!!e&&e.newData,newPage:!!e&&e.newPage,keepRenderedRows:!!e&&e.keepRenderedRows,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(t)},t.prototype.goToPage=function(e){if(this.active&&this.currentPage!==e){this.currentPage=e;var t={type:p.Events.EVENT_MODEL_UPDATED,animate:!1,keepRenderedRows:!1,newData:!1,newPage:!0,api:this.gridApi,columnApi:this.columnApi};this.onModelUpdated(t)}},t.prototype.getPixelOffset=function(){return this.pixelOffset},t.prototype.getRow=function(e){return this.rowModel.getRow(e)},t.prototype.getRowNode=function(e){return this.rowModel.getRowNode(e)},t.prototype.getRowIndexAtPixel=function(e){return this.rowModel.getRowIndexAtPixel(e)},t.prototype.getCurrentPageHeight=function(){return g._.missing(this.topRowBounds)||g._.missing(this.bottomRowBounds)?0:Math.max(this.bottomRowBounds.rowTop+this.bottomRowBounds.rowHeight-this.topRowBounds.rowTop,0)},t.prototype.isRowPresent=function(e){return!!this.rowModel.isRowPresent(e)&&(e.rowIndex>=this.topDisplayedRowIndex&&e.rowIndex<=this.bottomDisplayedRowIndex)},t.prototype.isEmpty=function(){return this.rowModel.isEmpty()},t.prototype.isRowsToRender=function(){return this.rowModel.isRowsToRender()},t.prototype.getNodesInRangeForSelection=function(e,t){return this.rowModel.getNodesInRangeForSelection(e,t)},t.prototype.forEachNode=function(e){return this.rowModel.forEachNode(e)},t.prototype.getType=function(){return this.rowModel.getType()},t.prototype.getRowBounds=function(e){var t=this.rowModel.getRowBounds(e);return t.rowIndex=e,t},t.prototype.getPageFirstRow=function(){return this.topRowBounds?this.topRowBounds.rowIndex:-1},t.prototype.getPageLastRow=function(){return this.bottomRowBounds?this.bottomRowBounds.rowIndex:-1},t.prototype.getRowCount=function(){return this.rowModel.getRowCount()},t.prototype.goToPageWithIndex=function(e){if(this.active){var t=Math.floor(e/this.pageSize);this.goToPage(t)}},t.prototype.isLastPageFound=function(){return this.rowModel.isLastRowFound()},t.prototype.getCurrentPage=function(){return this.currentPage},t.prototype.goToNextPage=function(){this.goToPage(this.currentPage+1)},t.prototype.goToPreviousPage=function(){this.goToPage(this.currentPage-1)},t.prototype.goToFirstPage=function(){this.goToPage(0)},t.prototype.goToLastPage=function(){var e=this.rowModel.getRowCount(),t=Math.floor(e/this.pageSize);this.goToPage(t)},t.prototype.getPageSize=function(){return this.pageSize},t.prototype.getTotalPages=function(){return this.totalPages},t.prototype.setPageSize=function(){this.pageSize=this.gridOptionsWrapper.getPaginationPageSize(),this.pageSize>=1||(this.pageSize=100)},t.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.pixelOffset=g._.exists(this.topRowBounds)?this.topRowBounds.rowTop:0},t.prototype.setZeroRows=function(){this.topDisplayedRowIndex=0,this.bottomDisplayedRowIndex=-1,this.currentPage=0,this.totalPages=0},t.prototype.calculatePagesMasterRowsOnly=function(){if(this.masterRowCount=this.rowModel.getTopLevelRowCount(),0!==this.masterRowCount){var e=this.masterRowCount-1;this.totalPages=Math.floor(e/this.pageSize)+1,this.currentPage>=this.totalPages&&(this.currentPage=this.totalPages-1),(!g._.isNumeric(this.currentPage)||this.currentPage<0)&&(this.currentPage=0);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}}else this.setZeroRows()},t.prototype.getMasterRowCount=function(){return this.masterRowCount},t.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.currentPage>=this.totalPages&&(this.currentPage=this.totalPages-1),(!g._.isNumeric(this.currentPage)||this.currentPage<0)&&(this.currentPage=0),this.topDisplayedRowIndex=this.pageSize*this.currentPage,this.bottomDisplayedRowIndex=this.pageSize*(this.currentPage+1)-1,this.bottomDisplayedRowIndex>e&&(this.bottomDisplayedRowIndex=e)}else this.setZeroRows()},t.prototype.calculatedPagesNotActive=function(){this.pageSize=this.rowModel.getRowCount(),this.totalPages=1,this.currentPage=0,this.topDisplayedRowIndex=0,this.bottomDisplayedRowIndex=this.rowModel.getRowCount()-1},n([u.Autowired("rowModel"),s("design:type",Object)],t.prototype,"rowModel",void 0),n([u.Autowired("eventService"),s("design:type",l.EventService)],t.prototype,"eventService",void 0),n([u.Autowired("gridOptionsWrapper"),s("design:type",c.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),n([u.Autowired("selectionController"),s("design:type",d.SelectionController)],t.prototype,"selectionController",void 0),n([u.Autowired("columnApi"),s("design:type",h.ColumnApi)],t.prototype,"columnApi",void 0),n([u.Autowired("gridApi"),s("design:type",f.GridApi)],t.prototype,"gridApi",void 0),n([u.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"postConstruct",null),t=n([u.Bean("paginationProxy")],t)}(a.BeanStub);t.PaginationProxy=y},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/var i=this&&this.__decorate||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},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var n=o(7),s=o(0),a=o(3),l=o(60),p=o(4),u=o(6),c=o(2),d=function(){function e(){this.popupList=[]}return e.prototype.registerGridCore=function(e){this.gridCore=e},e.prototype.getDocument=function(){return this.gridOptionsWrapper.getDocument()},e.prototype.getPopupParent=function(){var e=this.gridOptionsWrapper.getPopupParent();return e||this.gridCore.getRootGui()},e.prototype.positionPopupForMenu=function(e){var t,o=e.eventSource.getBoundingClientRect(),i=this.getDocument(),r=this.getPopupParent();t=r===i.body?i.documentElement.getBoundingClientRect():r.getBoundingClientRect();var n=o.top-t.top;n=this.keepYWithinBounds(e,n);var s=e.ePopup.clientWidth>0?e.ePopup.clientWidth:200;e.ePopup.style.minWidth=s+"px";var a,l=t.right-t.left-s;function p(){return o.right-t.left-2}function u(){return o.left-t.left-s}this.gridOptionsWrapper.isEnableRtl()?((a=u())<0&&(a=p()),a>l&&(a=0)):((a=p())>l&&(a=u()),a<0&&(a=0)),e.ePopup.style.left=a+"px",e.ePopup.style.top=n+"px"},e.prototype.positionPopupUnderMouseEvent=function(e){var t=this.calculatePointerAlign(e.mouseEvent),o=t.x,i=t.y,r=e.ePopup,n=e.nudgeX,s=e.nudgeY;this.positionPopup({ePopup:r,x:o,y:i,nudgeX:n,nudgeY:s,keepWithinBounds:!0}),this.callPostProcessPopup(e.ePopup,null,e.mouseEvent,e.type,e.column,e.rowNode)},e.prototype.calculatePointerAlign=function(e){var t=this.getDocument(),o=this.getPopupParent(),i=o.getBoundingClientRect(),r=t.documentElement.getBoundingClientRect();return{x:e.clientX-(o===t.body?r.left:i.left),y:e.clientY-(o===t.body?r.top:i.top)}},e.prototype.positionPopupUnderComponent=function(e){var t,o=e.eventSource.getBoundingClientRect(),i=this.getDocument(),r=this.getPopupParent(),n=e.alignSide||"left";t=r===i.body?i.documentElement.getBoundingClientRect():r.getBoundingClientRect();var s=o.left-t.left;"right"===n&&(s-=e.ePopup.offsetWidth-o.width),this.positionPopup({ePopup:e.ePopup,minWidth:e.minWidth,minHeight:e.minHeight,nudgeX:e.nudgeX,nudgeY:e.nudgeY,x:s,y:o.top-t.top+o.height,keepWithinBounds:e.keepWithinBounds}),this.callPostProcessPopup(e.ePopup,e.eventSource,null,e.type,e.column,e.rowNode)},e.prototype.positionPopupOverComponent=function(e){var t,o=e.eventSource.getBoundingClientRect(),i=this.getDocument(),r=this.getPopupParent();t=r===i.body?i.documentElement.getBoundingClientRect():r.getBoundingClientRect(),this.positionPopup({ePopup:e.ePopup,minWidth:e.minWidth,nudgeX:e.nudgeX,nudgeY:e.nudgeY,x:o.left-t.left,y:o.top-t.top,keepWithinBounds:e.keepWithinBounds}),this.callPostProcessPopup(e.ePopup,e.eventSource,null,e.type,e.column,e.rowNode)},e.prototype.callPostProcessPopup=function(e,t,o,i,r,n){var s=this.gridOptionsWrapper.getPostProcessPopupFunc();s&&s({column:r,rowNode:n,ePopup:e,type:i,eventSource:t,mouseEvent:o})},e.prototype.positionPopup=function(e){var t=e.x,o=e.y;e.nudgeX&&(t+=e.nudgeX),e.nudgeY&&(o+=e.nudgeY),e.keepWithinBounds&&(t=this.keepXWithinBounds(e,t),o=this.keepYWithinBounds(e,o)),e.ePopup.style.left=t+"px",e.ePopup.style.top=o+"px"},e.prototype.keepYWithinBounds=function(e,t){var o=this.gridOptionsWrapper.getDocument(),i=o.documentElement,r=this.getPopupParent(),n=r.getBoundingClientRect(),s=o.documentElement.getBoundingClientRect(),a=r===o.body,l=Math.min(200,n.height),p=0;e.minHeight&&e.minHeight<l?l=e.minHeight:e.ePopup.offsetHeight>0&&(l=e.ePopup.clientHeight,p=c._.getAbsoluteHeight(e.ePopup)-l);var u=a?c._.getAbsoluteHeight(i)+i.scrollTop:n.height;a&&(u-=Math.abs(s.top-n.top));var d=u-l-p-3;return Math.min(Math.max(t,0),Math.abs(d))},e.prototype.keepXWithinBounds=function(e,t){var o=this.gridOptionsWrapper.getDocument(),i=o.documentElement,r=this.getPopupParent(),n=r.getBoundingClientRect(),s=o.documentElement.getBoundingClientRect(),a=r===o.body,l=e.ePopup,p=Math.min(200,n.width),u=0;e.minWidth&&e.minWidth<p?p=e.minWidth:l.offsetWidth>0&&(p=l.offsetWidth,l.style.minWidth=p+"px",u=c._.getAbsoluteWidth(l)-p);var d=a?c._.getAbsoluteWidth(i)+i.scrollLeft:n.width;a&&(d-=Math.abs(s.left-n.left));var h=d-p-u-3;return Math.min(Math.max(t,0),Math.abs(h))},e.prototype.addAsModalPopup=function(e,t,o,i){return this.addPopup(!0,e,t,o,i)},e.prototype.addPopup=function(e,t,o,i,r,s){var a=this,l=this.gridOptionsWrapper.getDocument();if(!l)return console.warn("ag-grid: could not find the document, document is empty"),function(){};var p=c._.findIndex(this.popupList,(function(e){return e.element===t}));if(-1!==p)return this.popupList[p].hideFunc;var d=this.getPopupParent();d.appendChild(t),t.style.top="0px",t.style.left="0px";var h=document.createElement("div"),f=this.environment.getTheme().theme;f&&c._.addCssClass(h,f),c._.addCssClass(h,"ag-popup"),c._.addCssClass(t,this.gridOptionsWrapper.isEnableRtl()?"ag-rtl":"ag-ltr"),h.appendChild(t),d.appendChild(h),s?this.setAlwaysOnTop(h,!0):this.bringPopupToFront(h);var g=!1,y=function(e){(e.which||e.keyCode)===n.Constants.KEY_ESCAPE&&h.contains(document.activeElement)&&C(null)},v=function(e){C(e)},m=function(e){C(null,e)},C=function(e,o){a.isEventFromCurrentPopup(e,o,t)||a.isEventSameChainAsOriginalEvent(r,e,o)||g||(g=!0,d.removeChild(h),l.removeEventListener("keydown",y),l.removeEventListener("mousedown",v),l.removeEventListener("touchstart",m),l.removeEventListener("contextmenu",v),a.eventService.removeEventListener(u.Events.EVENT_DRAG_STARTED,v),i&&i(),a.popupList=a.popupList.filter((function(e){return e.element!==t})))};return window.setTimeout((function(){o&&l.addEventListener("keydown",y),e&&(l.addEventListener("mousedown",v),a.eventService.addEventListener(u.Events.EVENT_DRAG_STARTED,v),l.addEventListener("touchstart",m),l.addEventListener("contextmenu",v))}),0),this.popupList.push({element:t,hideFunc:C}),C},e.prototype.isEventFromCurrentPopup=function(e,t,o){var i=e||t;if(!i)return!1;var r=c._.findIndex(this.popupList,(function(e){return e.element===o}));if(-1===r)return!1;for(var n=r;n<this.popupList.length;n++){var s=this.popupList[n];if(c._.isElementInEventPath(s.element,i))return!0}for(var a=i.target;a&&a!=document.body;){if(a.classList.contains("ag-custom-component-popup")||null===a.parentElement)return!0;a=a.parentElement}},e.prototype.isEventSameChainAsOriginalEvent=function(e,t,o){var i=null;if(t?i=t:o&&(i=o.touches[0]),i&&e){var r=t?t.screenX:0,n=t?t.screenY:0,s=Math.abs(e.screenX-r)<5,a=Math.abs(e.screenY-n)<5;if(s&&a)return!0}return!1},e.prototype.getWrapper=function(e){for(;!c._.containsClass(e,"ag-popup")&&e.parentElement;)e=e.parentElement;return c._.containsClass(e,"ag-popup")?e:null},e.prototype.setAlwaysOnTop=function(e,t){var o=this.getWrapper(e);o&&(c._.addOrRemoveCssClass(o,"ag-always-on-top",!!t),t&&this.bringPopupToFront(o))},e.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);if(n)c._.containsClass(s,"ag-always-on-top")?a!==i-1&&c._.last(r).insertAdjacentElement("afterend",s):a!==i-n-1&&r[0].insertAdjacentElement("beforebegin",s);else a!==i-1&&c._.last(o).insertAdjacentElement("afterend",s);var l={type:"popupToFront",api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),eWrapper:s};this.eventService.dispatchEvent(l)}},i([s.Autowired("gridOptionsWrapper"),r("design:type",a.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([s.Autowired("environment"),r("design:type",l.Environment)],e.prototype,"environment",void 0),i([s.Autowired("eventService"),r("design:type",p.EventService)],e.prototype,"eventService",void 0),e=i([s.Bean("popupService")],e)}();t.PopupService=d},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),n=this&&this.__decorate||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},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a,l=o(11),p=o(181),u=o(88),c=o(2);!function(e){e[e.One=0]="One",e[e.Two=1]="Two"}(a=t.ConditionPosition||(t.ConditionPosition={}));var d={loadingOoo:"Loading...",empty:"Choose One",equals:"Equals",notEqual:"Not equal",lessThan:"Less than",greaterThan:"Greater than",inRange:"In range",lessThanOrEqual:"Less than or equals",greaterThanOrEqual:"Greater than or equals",filterOoo:"Filter...",contains:"Contains",notContains:"Not contains",startsWith:"Starts with",endsWith:"Ends with",searchOoo:"Search...",selectAll:"Select All",applyFilter:"Apply Filter",clearFilter:"Clear Filter",andCondition:"AND",orCondition:"OR"},h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.showValueFrom=function(e){return!this.doesFilterHaveHiddenInput(e)&&e!==t.EMPTY},t.prototype.showValueTo=function(e){return e===t.IN_RANGE},t.prototype.onFloatingFilterChanged=function(e,t){this.setValueFromFloatingFilter(t),this.setTypeFromFloatingFilter(e),this.onUiChanged(!0)},t.prototype.setTypeFromFloatingFilter=function(e){this.eType1.value=e,this.eType2.value=null,this.eJoinOperatorAnd.checked=!0},t.prototype.getModelFromUi=function(){return this.isConditionUiComplete(a.One)?this.isAllowTwoConditions()&&this.isConditionUiComplete(a.Two)?{filterType:this.getFilterType(),operator:this.getJoinOperator(),condition1:this.createCondition(a.One),condition2:this.createCondition(a.Two)}:this.createCondition(a.One):null},t.prototype.getCondition1Type=function(){return this.eType1.value},t.prototype.getCondition2Type=function(){return this.eType2.value},t.prototype.getJoinOperator=function(){return this.eJoinOperatorOr.checked?"OR":"AND"},t.prototype.areModelsEqual=function(e,t){if(!e&&!t)return!0;if(!e&&t||e&&!t)return!1;var o,i=!e.operator,r=!t.operator;if(!i&&r||i&&!r)return!1;if(i){var n=e,s=t;o=this.areSimpleModelsEqual(n,s)}else{var a=e,l=t;o=a.operator===l.operator&&this.areSimpleModelsEqual(a.condition1,l.condition1)&&this.areSimpleModelsEqual(a.condition2,l.condition2)}return o},t.prototype.setModelIntoUi=function(e){if(e.operator){var t=e,o="OR"===t.operator;this.eJoinOperatorAnd.checked=!o,this.eJoinOperatorOr.checked=o,this.eType1.value=t.condition1.type,this.eType2.value=t.condition2.type,this.setConditionIntoUi(t.condition1,a.One),this.setConditionIntoUi(t.condition2,a.Two)}else{var i=e;this.eJoinOperatorAnd.checked=!0,this.eJoinOperatorOr.checked=!1,this.eType1.value=i.type,this.eType2.value=this.optionsFactory.getDefaultOption(),this.setConditionIntoUi(i,a.One),this.setConditionIntoUi(null,a.Two)}},t.prototype.doesFilterPass=function(e){var t=this.getModel();if(t.operator){var o=t,i=this.individualConditionPasses(e,o.condition1),r=this.individualConditionPasses(e,o.condition2);return"AND"===o.operator?i&&r:i||r}var n=t;return this.individualConditionPasses(e,n)},t.prototype.setParams=function(t){e.prototype.setParams.call(this,t),this.simpleFilterParams=t,this.optionsFactory=new p.OptionsFactory,this.optionsFactory.init(t,this.getDefaultFilterOptions()),this.allowTwoConditions=!t.suppressAndOrCondition,this.putOptionsIntoDropdown(),this.addChangedListeners()},t.prototype.putOptionsIntoDropdown=function(){var e=this,t=this.optionsFactory.getFilterOptions();t.forEach((function(t){var o=function(){var o="string"==typeof t?t:t.displayKey,i=e.translate(o),r=document.createElement("option");return r.text=i,r.value=o,r};e.eType1.add(o()),e.eType2.add(o())}));var o=t.length<=1;this.eType1.disabled=o,this.eType2.disabled=o},t.prototype.isAllowTwoConditions=function(){return this.allowTwoConditions},t.prototype.createBodyTemplate=function(){var e=this.createValueTemplate(a.One),t=this.createValueTemplate(a.Two),o="ag-simple-filter-and-or-"+this.getCompId(),i=this.gridOptionsWrapper.getLocaleTextFunc();return'<select class="ag-filter-select" ref="eOptions1"></select>\n '+e+"\n "+('<div class="ag-filter-condition" ref="eJoinOperatorPanel">\n <label>\n <input ref="eJoinOperatorAnd" type="radio" class="and" name="'+o+'" value="AND")} checked="checked" />\n '+i("andCondition","AND")+'\n </label>\n <label>\n <input ref="eJoinOperatorOr" type="radio" class="or" name="'+o+'" value="OR" />\n '+i("orCondition","OR")+"\n </label>\n </div>")+'\n <select class="ag-filter-select" ref="eOptions2"></select>\n '+t},t.prototype.updateUiVisibility=function(){var e=this.isConditionUiComplete(a.One),t=this.allowTwoConditions&&e;c._.setDisplayed(this.eCondition2Body,t),c._.setDisplayed(this.eType2,t),c._.setDisplayed(this.eJoinOperatorPanel,t)},t.prototype.resetUiToDefaults=function(){this.eJoinOperatorAnd.checked=!0;var e=this.optionsFactory.getDefaultOption();this.eType1.value=e,this.eType2.value=e},t.prototype.translate=function(e){var t=this.gridOptionsWrapper.getLocaleTextFunc(),o=d[e];return!o&&this.optionsFactory.getCustomOption(e)&&(o=this.optionsFactory.getCustomOption(e).displayName),t(e,o)},t.prototype.addChangedListeners=function(){var e=this,t=function(){return e.onUiChanged()};this.addDestroyableEventListener(this.eType1,"change",t),this.addDestroyableEventListener(this.eType2,"change",t),this.addDestroyableEventListener(this.eJoinOperatorOr,"change",t),this.addDestroyableEventListener(this.eJoinOperatorAnd,"change",t)},t.prototype.doesFilterHaveHiddenInput=function(e){var t=this.optionsFactory.getCustomOption(e);return t&&t.hideFilterInput},t.EMPTY="empty",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",n([l.RefSelector("eOptions1"),s("design:type",HTMLSelectElement)],t.prototype,"eType1",void 0),n([l.RefSelector("eOptions2"),s("design:type",HTMLSelectElement)],t.prototype,"eType2",void 0),n([l.RefSelector("eJoinOperatorAnd"),s("design:type",HTMLInputElement)],t.prototype,"eJoinOperatorAnd",void 0),n([l.RefSelector("eJoinOperatorOr"),s("design:type",HTMLInputElement)],t.prototype,"eJoinOperatorOr",void 0),n([l.RefSelector("eCondition2Body"),s("design:type",HTMLElement)],t.prototype,"eCondition2Body",void 0),n([l.RefSelector("eJoinOperatorPanel"),s("design:type",HTMLElement)],t.prototype,"eJoinOperatorPanel",void 0),t}(u.ProvidedFilter);t.SimpleFilter=h},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(28),r=function(){function e(e,t){this.next=null,this.scene=e.scene,this.parent=e,this.datum=t}return e.prototype.appendChild=function(e){if(null===this.next)return this.parent.insertBefore(e,null);if(!i.Node.isNode(this.next))throw new Error(this.next+" is not a Node.");return this.parent.insertBefore(e,this.next)},e.prototype.insertBefore=function(e,t){return this.parent.insertBefore(e,t)},e}();t.EnterNode=r;var n=function(){function e(e,t){this.groups=e,this.parents=t}return e.select=function(t){return new e([["function"==typeof t?t():t]],[void 0])},e.selectAll=function(t){return new e([null==t?[]:t],[void 0])},e.prototype.append=function(e){return this.select((function(t){return t.appendChild(new e)}))},e.prototype.appendFn=function(e){return this.select((function(t,o,i,r){return t.appendChild(e(t,o,i,r))}))},e.prototype.select=function(t){for(var o=this.groups,i=o.length,r=[],n=0;n<i;n++)for(var s=o[n],a=s.length,l=r[n]=new Array(a),p=0;p<a;p++){var u=s[p];if(u){var c=t(u,u.datum,p,s);c&&(c.datum=u.datum),l[p]=c}}return new e(r,this.parents)},e.prototype.selectByClass=function(e){return this.select((function(t){if(i.Node.isNode(t))for(var o=t.children,r=o.length,n=0;n<r;n++){var s=o[n];if(s instanceof e)return s}}))},e.prototype.selectByTag=function(e){return this.select((function(t){if(i.Node.isNode(t))for(var o=t.children,r=o.length,n=0;n<r;n++){var s=o[n];if(s.tag===e)return s}}))},e.prototype.selectAllByClass=function(e){return this.selectAll((function(t){var o=[];if(i.Node.isNode(t))for(var r=t.children,n=r.length,s=0;s<n;s++){var a=r[s];a instanceof e&&o.push(a)}return o}))},e.prototype.selectAllByTag=function(e){return this.selectAll((function(t){var o=[];if(i.Node.isNode(t))for(var r=t.children,n=r.length,s=0;s<n;s++){var a=r[s];a.tag===e&&o.push(a)}return o}))},e.prototype.selectNone=function(){return[]},e.prototype.selectAll=function(t){t||(t=this.selectNone);for(var o=[],i=[],r=this.groups,n=r.length,s=0;s<n;s++)for(var a=r[s],l=a.length,p=0;p<l;p++){var u=a[p];u&&(o.push(t(u,u.datum,p,a)),i.push(u))}return new e(o,i)},e.prototype.each=function(e){for(var t=this.groups,o=t.length,i=0;i<o;i++)for(var r=t[i],n=r.length,s=0;s<n;s++){var a=r[s];a&&e(a,a.datum,s,r)}return this},e.prototype.remove=function(){return this.each((function(e){if(i.Node.isNode(e)){var t=e.parent;t&&t.removeChild(e)}}))},e.prototype.merge=function(t){for(var o=this.groups,i=t.groups,r=o.length,n=i.length,s=Math.min(r,n),a=new Array(r),l=0;l<s;l++)for(var p=o[l],u=i[l],c=p.length,d=a[l]=new Array(c),h=0;h<c;h++){var f=p[h]||u[h];d[h]=f||void 0}for(;l<r;l++)a[l]=o[l];return new e(a,this.parents)},e.prototype.node=function(){for(var e=this.groups,t=e.length,o=0;o<t;o++)for(var i=e[o],r=i.length,n=0;n<r;n++){var s=i[n];if(s)return s}return null},e.prototype.attr=function(e,t){return this.each((function(o){o[e]=t})),this},e.prototype.attrFn=function(e,t){return this.each((function(o,i,r,n){o[e]=t(o,i,r,n)})),this},e.prototype.call=function(e){return e(this),this},Object.defineProperty(e.prototype,"size",{get:function(){var e=0;return this.each((function(){return e++})),e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"data",{get:function(){var e=[];return this.each((function(t,o){return e.push(o)})),e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"enter",{get:function(){return new e(this.enterGroups?this.enterGroups:[[]],this.parents)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"exit",{get:function(){return new e(this.exitGroups?this.exitGroups:[[]],this.parents)},enumerable:!0,configurable:!0}),e.prototype.setDatum=function(e){return this.each((function(t){t.datum=e}))},Object.defineProperty(e.prototype,"datum",{get:function(){var e=this.node();return e?e.datum:null},enumerable:!0,configurable:!0}),e.prototype.setData=function(t,o){if("function"!=typeof t){var i=t;t=function(){return i}}for(var r=this.groups,n=this.parents,s=r.length,a=new Array(s),l=new Array(s),p=new Array(s),u=0;u<s;u++){var c=r[u],d=n[u];if(!d)throw new Error("Group #"+u+" has no parent: "+c);var h=c.length,f=t(d,d.datum,u,n),g=f.length,y=l[u]=new Array(g),v=a[u]=new Array(g),m=p[u]=new Array(h);o?this.bindKey(d,c,y,v,m,f,o):this.bindIndex(d,c,y,v,m,f);for(var C=0,w=0;C<g;C++){var _=y[C];if(_){C>=w&&(w=C+1);for(var b=void 0;!(b=v[w])&&w<g;)w++;_.next=b||null}}}var E=new e(a,n);return E.enterGroups=l,E.exitGroups=p,E},e.prototype.bindIndex=function(e,t,o,i,n,s){for(var a=t.length,l=s.length,p=0;p<l;p++){(u=t[p])?(u.datum=s[p],i[p]=u):o[p]=new r(e,s[p])}for(;p<a;p++){var u;(u=t[p])&&(n[p]=u)}},e.prototype.bindKey=function(t,o,i,n,s,a,l){for(var p=o.length,u=a.length,c=new Array(p),d={},h=0;h<p;h++){if(g=o[h])(f=c[h]=e.keyPrefix+l(g,g.datum,h,o))in d?s[h]=g:d[f]=g}for(h=0;h<u;h++){var f;(g=d[f=e.keyPrefix+l(t,a[h],h,a)])?(n[h]=g,g.datum=a[h],d[f]=void 0):i[h]=new r(t,a[h])}for(h=0;h<p;h++){var g;(g=o[h])&&d[c[h]]===g&&(s[h]=g)}},e.keyPrefix="$",e}();t.Selection=n},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/Object.defineProperty(t,"__esModule",{value:!0});var i=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_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_RANGE_SELECTION_CHANGED="chartRangeSelectionChanged",e.EVENT_CHART_OPTIONS_CHANGED="chartOptionsChanged",e.EVENT_TOOL_PANEL_VISIBLE_CHANGED="toolPanelVisibleChanged",e.EVENT_MODEL_UPDATED="modelUpdated",e.EVENT_PASTE_START="pasteStart",e.EVENT_PASTE_END="pasteEnd",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_ROW_VALUE_CHANGED="rowValueChanged",e.EVENT_CELL_FOCUSED="cellFocused",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_FIRST_DATA_RENDERED="firstDataRendered",e.EVENT_DRAG_STARTED="dragStarted",e.EVENT_DRAG_STOPPED="dragStopped",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_ANIMATION_QUEUE_EMPTY="animationQueueEmpty",e.EVENT_HEIGHT_SCALE_CHANGED="heightScaleChanged",e.EVENT_PAGINATION_CHANGED="paginationChanged",e.EVENT_COMPONENT_STATE_CHANGED="componentStateChanged",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_ROW_DRAG_ENTER="rowDragEnter",e.EVENT_ROW_DRAG_MOVE="rowDragMove",e.EVENT_ROW_DRAG_LEAVE="rowDragLeave",e.EVENT_ROW_DRAG_END="rowDragEnd",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}();t.Events=i},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/var i=this&&this.__decorate||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},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var n=o(12),s=o(4),a=o(0),l=o(3),p=o(2),u=function(){function e(e,t,o,i){this.displayedChildren=[],this.localEventService=new s.EventService,this.groupId=t,this.instanceId=o,this.originalColumnGroup=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.instanceId)},e.prototype.isEmptyGroup=function(){return 0===this.displayedChildren.length},e.prototype.isMoving=function(){var e=this.getOriginalColumnGroup().getLeafColumns();if(!e||0===e.length)return!1;var t=!0;return e.forEach((function(e){e.isMoving()||(t=!1)})),t},e.prototype.checkLeft=function(){if(this.displayedChildren.forEach((function(t){t instanceof e&&t.checkLeft()})),this.displayedChildren.length>0)if(this.gridOptionsWrapper.isEnableRtl()){var t=p._.last(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.getInstanceId=function(){return this.instanceId},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()})),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.originalColumnGroup.getColGroupDef()},e.prototype.getColGroupDef=function(){return this.originalColumnGroup.getColGroupDef()},e.prototype.isPadding=function(){return this.originalColumnGroup.isPadding()},e.prototype.isExpandable=function(){return this.originalColumnGroup.isExpandable()},e.prototype.isExpanded=function(){return this.originalColumnGroup.isExpanded()},e.prototype.setExpanded=function(e){this.originalColumnGroup.setExpanded(e)},e.prototype.addDisplayedLeafColumns=function(t){this.displayedChildren.forEach((function(o){o instanceof n.Column?t.push(o):o instanceof e&&o.addDisplayedLeafColumns(t)}))},e.prototype.addLeafColumns=function(t){this.children.forEach((function(o){o instanceof n.Column?t.push(o):o instanceof e&&o.addLeafColumns(t)}))},e.prototype.getChildren=function(){return this.children},e.prototype.getColumnGroupShow=function(){return this.originalColumnGroup.getColumnGroupShow()},e.prototype.getOriginalColumnGroup=function(){return this.originalColumnGroup},e.prototype.calculateDisplayedColumns=function(){var t=this;this.displayedChildren=[];var o=this;if(this.isPadding())for(;o.getParent()&&o.isPadding();)o=o.getParent();o.originalColumnGroup.isExpandable()?this.children.forEach((function(i){switch(i.getColumnGroupShow()){case e.HEADER_GROUP_SHOW_OPEN:o.originalColumnGroup.isExpanded()&&t.displayedChildren.push(i);break;case e.HEADER_GROUP_SHOW_CLOSED:o.originalColumnGroup.isExpanded()||t.displayedChildren.push(i);break;default:t.displayedChildren.push(i)}})):this.displayedChildren=this.children,this.localEventService.dispatchEvent(this.createAgEvent(e.EVENT_DISPLAYED_CHILDREN_CHANGED))},e.HEADER_GROUP_SHOW_OPEN="open",e.HEADER_GROUP_SHOW_CLOSED="closed",e.HEADER_GROUP_PADDING="padding",e.EVENT_LEFT_CHANGED="leftChanged",e.EVENT_DISPLAYED_CHILDREN_CHANGED="displayedChildrenChanged",i([a.Autowired("gridOptionsWrapper"),r("design:type",l.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),e}();t.ColumnGroup=u},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/var i=this&&this.__decorate||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},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),s=o(14),a=o(4),l=o(6),p=o(3),u=o(10),c=o(9),d=o(2),h=function(){function e(){this.onMouseUpListener=this.onMouseUp.bind(this),this.onMouseMoveListener=this.onMouseMove.bind(this),this.onTouchEndListener=this.onTouchUp.bind(this),this.onTouchMoveListener=this.onTouchMove.bind(this),this.dragEndFunctions=[],this.dragSources=[]}return e.prototype.init=function(){this.logger=this.loggerFactory.create("DragService")},e.prototype.destroy=function(){this.dragSources.forEach(this.removeListener.bind(this)),this.dragSources.length=0},e.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})}},e.prototype.removeDragSource=function(e){var t=d._.find(this.dragSources,(function(t){return t.dragSource===e}));t&&(this.removeListener(t),d._.removeFromArray(this.dragSources,t))},e.prototype.setNoSelectToBody=function(e){var t=this.gridOptionsWrapper.getDocument().querySelector("body");d._.exists(t)&&d._.addOrRemoveCssClass(t,"ag-unselectable",e)},e.prototype.addDragSource=function(e,t){void 0===t&&(t=!1);var o=this.onMouseDown.bind(this,e);e.eElement.addEventListener("mousedown",o);var i=null,r=this.gridOptionsWrapper.isSuppressTouch();t&&!r&&(i=this.onTouchStart.bind(this,e),e.eElement.addEventListener("touchstart",i,{passive:!1})),this.dragSources.push({dragSource:e,mouseDownListener:o,touchStartListener:i,touchEnabled:t})},e.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,t.preventDefault(),e.eElement.addEventListener("touchmove",this.onTouchMoveListener,{passive:!0}),e.eElement.addEventListener("touchend",this.onTouchEndListener,{passive:!0}),e.eElement.addEventListener("touchcancel",this.onTouchEndListener,{passive:!0}),this.dragEndFunctions.push((function(){e.eElement.removeEventListener("touchmove",o.onTouchMoveListener,{passive:!0}),e.eElement.removeEventListener("touchend",o.onTouchEndListener,{passive:!0}),e.eElement.removeEventListener("touchcancel",o.onTouchEndListener,{passive:!0})})),0===e.dragStartPixels&&this.onCommonMove(i,this.touchStart)},e.prototype.onMouseDown=function(e,t){var o=this;if(!(e.skipMouseEvent&&e.skipMouseEvent(t)||t._alreadyProcessedByDragService||(t._alreadyProcessedByDragService=!0,0!==t.button))){this.currentDragParams=e,this.dragging=!1,this.mouseStartEvent=t;var i=this.gridOptionsWrapper.getDocument();this.setNoSelectToBody(!0),i.addEventListener("mousemove",this.onMouseMoveListener),i.addEventListener("mouseup",this.onMouseUpListener),this.dragEndFunctions.push((function(){i.removeEventListener("mousemove",o.onMouseMoveListener),i.removeEventListener("mouseup",o.onMouseUpListener)})),0===e.dragStartPixels&&this.onMouseMove(t)}},e.prototype.isEventNearStartEvent=function(e,t){var o=this.currentDragParams.dragStartPixels,i=d._.exists(o)?o:4;return d._.areEventsNear(e,t,i)},e.prototype.getFirstActiveTouch=function(e){for(var t=0;t<e.length;t++)if(e[t].identifier===this.touchStart.identifier)return e[t];return null},e.prototype.onCommonMove=function(e,t){if(!this.dragging){if(!this.dragging&&this.isEventNearStartEvent(e,t))return;this.dragging=!0;var o={type:l.Events.EVENT_DRAG_STARTED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(o),this.currentDragParams.onDragStart(t)}this.currentDragParams.onDragging(e)},e.prototype.onTouchMove=function(e){var t=this.getFirstActiveTouch(e.touches);t&&this.onCommonMove(t,this.touchStart)},e.prototype.onMouseMove=function(e){this.onCommonMove(e,this.mouseStartEvent)},e.prototype.onTouchUp=function(e){var t=this.getFirstActiveTouch(e.changedTouches);t||(t=this.touchLastTime),this.onUpCommon(t)},e.prototype.onMouseUp=function(e){this.onUpCommon(e)},e.prototype.onUpCommon=function(e){if(this.dragging){this.dragging=!1,this.currentDragParams.onDragStop(e);var t={type:l.Events.EVENT_DRAG_STOPPED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(t)}this.setNoSelectToBody(!1),this.mouseStartEvent=null,this.touchStart=null,this.touchLastTime=null,this.currentDragParams=null,this.dragEndFunctions.forEach((function(e){return e()})),this.dragEndFunctions.length=0},i([n.Autowired("loggerFactory"),r("design:type",s.LoggerFactory)],e.prototype,"loggerFactory",void 0),i([n.Autowired("eventService"),r("design:type",a.EventService)],e.prototype,"eventService",void 0),i([n.Autowired("gridOptionsWrapper"),r("design:type",p.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([n.Autowired("columnApi"),r("design:type",u.ColumnApi)],e.prototype,"columnApi",void 0),i([n.Autowired("gridApi"),r("design:type",c.GridApi)],e.prototype,"gridApi",void 0),i([n.PostConstruct,r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],e.prototype,"init",null),i([n.PreDestroy,r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],e.prototype,"destroy",null),e=i([n.Bean("dragService")],e)}();t.DragService=h},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/var i=this&&this.__decorate||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},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),s=o(10),a=o(5),l=o(9),p=o(3),u=o(25),c=o(20),d=o(128),h=o(24),f=o(4),g=o(86),y=o(26),v=o(87),m=o(32),C=o(62),w=o(141),_=o(64),b=o(31),E=o(48),R=o(19),P=o(18),O=o(27),S=o(17),A=o(89),T=o(142),D=o(187),x=o(143),F=o(90),M=function(){function e(){}return e.prototype.registerGridComp=function(e){this.gridPanel=e},e.prototype.postConstruct=function(){this.doingMasterDetail=this.gridOptionsWrapper.isMasterDetail()},i([n.Autowired("paginationProxy"),r("design:type",b.PaginationProxy)],e.prototype,"paginationProxy",void 0),i([n.Autowired("context"),r("design:type",n.Context)],e.prototype,"context",void 0),i([n.Autowired("columnApi"),r("design:type",s.ColumnApi)],e.prototype,"columnApi",void 0),i([n.Autowired("gridApi"),r("design:type",l.GridApi)],e.prototype,"gridApi",void 0),i([n.Autowired("gridOptionsWrapper"),r("design:type",p.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([n.Autowired("expressionService"),r("design:type",u.ExpressionService)],e.prototype,"expressionService",void 0),i([n.Autowired("rowRenderer"),r("design:type",c.RowRenderer)],e.prototype,"rowRenderer",void 0),i([n.Autowired("$compile"),r("design:type",Object)],e.prototype,"$compile",void 0),i([n.Autowired("templateService"),r("design:type",d.TemplateService)],e.prototype,"templateService",void 0),i([n.Autowired("valueService"),r("design:type",h.ValueService)],e.prototype,"valueService",void 0),i([n.Autowired("eventService"),r("design:type",f.EventService)],e.prototype,"eventService",void 0),i([n.Autowired("columnController"),r("design:type",a.ColumnController)],e.prototype,"columnController",void 0),i([n.Autowired("columnAnimationService"),r("design:type",g.ColumnAnimationService)],e.prototype,"columnAnimationService",void 0),i([n.Optional("rangeController"),r("design:type",Object)],e.prototype,"rangeController",void 0),i([n.Autowired("focusedCellController"),r("design:type",y.FocusedCellController)],e.prototype,"focusedCellController",void 0),i([n.Optional("contextMenuFactory"),r("design:type",Object)],e.prototype,"contextMenuFactory",void 0),i([n.Autowired("cellRendererFactory"),r("design:type",v.CellRendererFactory)],e.prototype,"cellRendererFactory",void 0),i([n.Autowired("popupService"),r("design:type",m.PopupService)],e.prototype,"popupService",void 0),i([n.Autowired("valueFormatterService"),r("design:type",C.ValueFormatterService)],e.prototype,"valueFormatterService",void 0),i([n.Autowired("stylingService"),r("design:type",w.StylingService)],e.prototype,"stylingService",void 0),i([n.Autowired("columnHoverService"),r("design:type",_.ColumnHoverService)],e.prototype,"columnHoverService",void 0),i([n.Autowired("enterprise"),r("design:type",Boolean)],e.prototype,"enterprise",void 0),i([n.Autowired("userComponentFactory"),r("design:type",R.UserComponentFactory)],e.prototype,"userComponentFactory",void 0),i([n.Autowired("animationFrameService"),r("design:type",E.AnimationFrameService)],e.prototype,"taskQueue",void 0),i([n.Autowired("dragAndDropService"),r("design:type",P.DragAndDropService)],e.prototype,"dragAndDropService",void 0),i([n.Autowired("sortController"),r("design:type",O.SortController)],e.prototype,"sortController",void 0),i([n.Autowired("filterManager"),r("design:type",S.FilterManager)],e.prototype,"filterManager",void 0),i([n.Autowired("maxDivHeightScaler"),r("design:type",A.MaxDivHeightScaler)],e.prototype,"maxDivHeightScaler",void 0),i([n.Autowired("tooltipManager"),r("design:type",T.TooltipManager)],e.prototype,"tooltipManager",void 0),i([n.Autowired("frameworkOverrides"),r("design:type",Object)],e.prototype,"frameworkOverrides",void 0),i([n.Autowired("detailRowCompCache"),r("design:type",D.DetailRowCompCache)],e.prototype,"detailRowCompCache",void 0),i([n.Autowired("cellPositionUtils"),r("design:type",x.CellPositionUtils)],e.prototype,"cellPositionUtils",void 0),i([n.Autowired("rowPositionUtils"),r("design:type",F.RowPositionUtils)],e.prototype,"rowPositionUtils",void 0),i([n.PostConstruct,r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],e.prototype,"postConstruct",null),e=i([n.Bean("beans")],e)}();t.Beans=M},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var n=o(145),s=o(2),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.onValueChange=function(e){var o=this;return this.addDestroyableEventListener(this,t.EVENT_CHANGED,(function(){e(o.getValue())})),this},t.prototype.getWidth=function(){return this.getGui().clientWidth},t.prototype.setWidth=function(e){return s._.setFixedWidth(this.getGui(),e),this},t.prototype.getValue=function(){return this.value},t.prototype.setValue=function(e,o){return this.value===e?this:(this.value=e,o||this.dispatchEvent({type:t.EVENT_CHANGED}),this)},t.EVENT_CHANGED="valueChange",t}(n.AgAbstractLabel);t.AgAbstractField=a},function(e,t,o){"use strict";var i=this&&this.__decorate||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},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var n=o(1),s=function(){function e(){this.aggFuncsMap={},this.initialised=!1}var t;return t=e,e.prototype.init=function(){this.initialised||(this.initialised=!0,this.initialiseWithDefaultAggregations(),this.addAggFuncs(this.gridOptionsWrapper.getAggFuncs()))},e.prototype.initialiseWithDefaultAggregations=function(){this.aggFuncsMap[t.AGG_SUM]=a,this.aggFuncsMap[t.AGG_FIRST]=l,this.aggFuncsMap[t.AGG_LAST]=p,this.aggFuncsMap[t.AGG_MIN]=u,this.aggFuncsMap[t.AGG_MAX]=c,this.aggFuncsMap[t.AGG_COUNT]=d,this.aggFuncsMap[t.AGG_AVG]=h},e.prototype.getDefaultAggFunc=function(e){var o=this.getFuncNames(e),i=o.indexOf(t.AGG_SUM)>=0,r=n._.exists(this.aggFuncsMap[t.AGG_SUM]);return i&&r?t.AGG_SUM:n._.existsAndNotEmpty(o)?o[0]:null},e.prototype.addAggFuncs=function(e){n._.iterateObject(e,this.addAggFunc.bind(this))},e.prototype.addAggFunc=function(e,t){this.init(),this.aggFuncsMap[e]=t},e.prototype.getAggFunc=function(e){return this.init(),this.aggFuncsMap[e]},e.prototype.getFuncNames=function(e){var t=e.getColDef().allowedAggFuncs;return n._.exists(t)&&t?t:Object.keys(this.aggFuncsMap).sort()},e.prototype.clear=function(){this.aggFuncsMap={}},e.AGG_SUM="sum",e.AGG_FIRST="first",e.AGG_LAST="last",e.AGG_MIN="min",e.AGG_MAX="max",e.AGG_COUNT="count",e.AGG_AVG="avg",i([n.Autowired("gridOptionsWrapper"),r("design:type",n.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([n.PostConstruct,r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],e.prototype,"init",null),e=t=i([n.Bean("aggFuncService")],e)}();function a(e){for(var t=null,o=e.length,i=0;i<o;i++)"number"==typeof e[i]&&(null===t?t=e[i]:t+=e[i]);return t}function l(e){return e.length>=0?e[0]:null}function p(e){return e.length>=0?n._.last(e):null}function u(e){for(var t=null,o=e.length,i=0;i<o;i++)"number"==typeof e[i]&&(null===t?t=e[i]:t>e[i]&&(t=e[i]));return t}function c(e){for(var t=null,o=e.length,i=0;i<o;i++)"number"==typeof e[i]&&(null===t?t=e[i]:t<e[i]&&(t=e[i]));return t}function d(e){for(var t={value:0,toString:function(){return this.value.toString()},toNumber:function(){return this.value}},o=e.length,i=0;i<o;i++){n._.exists(e[i])&&"number"==typeof e[i].value?t.value+=e[i].value:t.value++}return t}function h(e){for(var t=0,o=0,i=e.length,r=0;r<i;r++){var s=e[r],a=n._.exists(s)&&"number"==typeof s.value&&"number"==typeof s.count;"number"==typeof s?(t+=s,o++):a&&(t+=s.value*s.count,o+=s.count)}var l=null;return 0!==o&&(l=t/o),{count:o,value:l,toString:function(){return"number"==typeof this.value?this.value.toString():""},toNumber:function(){return this.value}}}t.AggFuncService=s},function(e,t,o){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var n=o(28),s=o(99),a=function(e){function t(){var o=null!==e&&e.apply(this,arguments)||this;return o._fillOpacity=1,o._strokeOpacity=1,o._fill=t.defaultStyles.fill,o._stroke=t.defaultStyles.stroke,o._strokeWidth=t.defaultStyles.strokeWidth,o._lineDash=t.defaultStyles.lineDash,o._lineDashOffset=t.defaultStyles.lineDashOffset,o._lineCap=t.defaultStyles.lineCap,o._lineJoin=t.defaultStyles.lineJoin,o._opacity=t.defaultStyles.opacity,o._fillShadow=t.defaultStyles.fillShadow,o._strokeShadow=t.defaultStyles.strokeShadow,o}return r(t,e),t.prototype.restoreOwnStyles=function(){for(var e=this.constructor.defaultStyles,t=Object.getOwnPropertyNames(e),o=0,i=t.length;o<i;o++){var r=t[o];this[r]=e[r]}},t.prototype.restoreAllStyles=function(){var e=this.constructor.defaultStyles;for(var t in e)this[t]=e[t]},t.prototype.restoreOverriddenStyles=function(){var e=this.constructor.defaultStyles,t=Object.getPrototypeOf(e);for(var o in e)e.hasOwnProperty(o)&&t.hasOwnProperty(o)&&(this[o]=e[o])},Object.defineProperty(t.prototype,"fillOpacity",{get:function(){return this._fillOpacity},set:function(e){this._fillOpacity!==e&&(this._fillOpacity=e,this.dirty=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"strokeOpacity",{get:function(){return this._strokeOpacity},set:function(e){this._strokeOpacity!==e&&(this._strokeOpacity=e,this.dirty=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"fill",{get:function(){return this._fill},set:function(e){this._fill!==e&&(this._fill=e,this.dirty=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"stroke",{get:function(){return this._stroke},set:function(e){this._stroke!==e&&(this._stroke=e,this.dirty=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"strokeWidth",{get:function(){return this._strokeWidth},set:function(e){this._strokeWidth!==e&&(this._strokeWidth=e,this.dirty=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"lineDash",{get:function(){return this._lineDash},set:function(e){var t=this._lineDash;if(t!==e){if(t&&e&&t.length===e.length){for(var o=!0,i=e.length,r=0;r<i;r++)if(t[r]!==e[r]){o=!1;break}if(o)return}this._lineDash=e,this.dirty=!0}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"lineDashOffset",{get:function(){return this._lineDashOffset},set:function(e){this._lineDashOffset!==e&&(this._lineDashOffset=e,this.dirty=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"lineCap",{get:function(){return this._lineCap},set:function(e){this._lineCap!==e&&(this._lineCap=e,this.dirty=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"lineJoin",{get:function(){return this._lineJoin},set:function(e){this._lineJoin!==e&&(this._lineJoin=e,this.dirty=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"opacity",{get:function(){return this._opacity},set:function(e){e=Math.min(1,Math.max(0,e)),this._opacity!==e&&(this._opacity=e,this.dirty=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"fillShadow",{get:function(){return this._fillShadow},set:function(e){var t=this,o=this._fillShadow;o!==e&&(o&&(o.onChange=void 0),e&&(e.onChange=function(){return t.dirty=!0}),this._fillShadow=e,this.dirty=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"strokeShadow",{get:function(){return this._strokeShadow},set:function(e){var t=this,o=this._strokeShadow;o!==e&&(o&&(o.onChange=void 0),e&&(e.onChange=function(){return t.dirty=!0}),this._strokeShadow=e,this.dirty=!0)},enumerable:!0,configurable:!0}),t.prototype.fillStroke=function(e){if(this.scene){var t=this.scene.canvas.pixelRatio||1;if(this.fill){e.fillStyle=this.fill,e.globalAlpha=this.opacity*this.fillOpacity;var o=this.fillShadow;o&&o.enabled&&(e.shadowColor=o.color,e.shadowOffsetX=o.xOffset*t,e.shadowOffsetY=o.yOffset*t,e.shadowBlur=o.blur*t),e.fill()}if(e.shadowColor="rgba(0, 0, 0, 0)",this.stroke&&this.strokeWidth){e.strokeStyle=this.stroke,e.globalAlpha=this.opacity*this.strokeOpacity,e.lineWidth=this.strokeWidth,this.lineDash&&e.setLineDash(this.lineDash),this.lineDashOffset&&(e.lineDashOffset=this.lineDashOffset),this.lineCap&&(e.lineCap=this.lineCap),this.lineJoin&&(e.lineJoin=this.lineJoin);var i=this.strokeShadow;i&&i.enabled&&(e.shadowColor=i.color,e.shadowOffsetX=i.xOffset*t,e.shadowOffsetY=i.yOffset*t,e.shadowBlur=i.blur*t),e.stroke()}}},t.prototype.isPointInNode=function(e,t){return this.isPointInPath(e,t)},t.defaultStyles=s.chainObjects({},{fill:"black",stroke:void 0,strokeWidth:0,lineDash:void 0,lineDashOffset:0,lineCap:null,lineJoin:null,opacity:1,fillShadow:void 0,strokeShadow:void 0}),t}(n.Node);t.Shape=a},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isEqual=function(e,t,o){return void 0===o&&(o=1e-10),Math.abs(e-t)<o},t.toFixed=function(e,t){void 0===t&&(t=2);var o=Math.floor(Math.log(Math.abs(e))/Math.LN10);return o>=0?e.toFixed(t):e.toFixed(Math.abs(o)-1+t)};var i=["","K","M","B","T"];t.toReadableNumber=function(e,t){void 0===t&&(t=2);var o="";e<=0&&(e=-e,o="-");var r=~~(Math.log10(e)/Math.log10(1e3));return o+(e/Math.pow(1e3,r)).toFixed(t)+i[r]}},function(e,t,o){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),n=this&&this.__decorate||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},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(1),l=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return r(t,e),t.prototype.setLabel=function(e,t){this.setDisplayed(!1);var o=this.gridOptionsWrapper.getLocaleTextFunc();this.eLabel.innerHTML=o(e,t)},t.prototype.setValue=function(e){this.eValue.innerHTML=e},t.TEMPLATE='<div class="ag-name-value"> \n <span ref="eLabel"></span>:&nbsp;\n <span ref="eValue" class="ag-name-value-value"></span>\n </div>',n([a.Autowired("gridOptionsWrapper"),s("design:type",a.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),n([a.RefSelector("eLabel"),s("design:type",HTMLElement)],t.prototype,"eLabel",void 0),n([a.RefSelector("eValue"),s("design:type",HTMLElement)],t.prototype,"eValue",void 0),t}(a.Component);t.NameValueComp=l},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/var i=this&&this.__decorate||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},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var n=o(3),s=o(36),a=o(45),l=o(0),p=o(0),u=function(){function e(){}return e.prototype.calculateColInitialWidth=function(e){return e.width?e.width<this.gridOptionsWrapper.getMinColWidth()?this.gridOptionsWrapper.getMinColWidth():e.width:this.gridOptionsWrapper.getColWidth()},e.prototype.getOriginalPathForColumn=function(e,t){var o=[],i=!1;return function t(r,n){for(var s=0;s<r.length;s++){if(i)return;var l=r[s];if(l instanceof a.OriginalColumnGroup)t(l.getChildren(),n+1),o[n]=l;else l===e&&(i=!0)}}(t,0),i?o:null},e.prototype.depthFirstOriginalTreeSearch=function(e,t,o){var i=this;t&&t.forEach((function(t){t instanceof a.OriginalColumnGroup&&i.depthFirstOriginalTreeSearch(t,t.getChildren(),o),o(t,e)}))},e.prototype.depthFirstAllColumnTreeSearch=function(e,t){var o=this;e&&e.forEach((function(e){e instanceof s.ColumnGroup&&o.depthFirstAllColumnTreeSearch(e.getChildren(),t),t(e)}))},e.prototype.depthFirstDisplayedColumnTreeSearch=function(e,t){var o=this;e&&e.forEach((function(e){e instanceof s.ColumnGroup&&o.depthFirstDisplayedColumnTreeSearch(e.getDisplayedChildren(),t),t(e)}))},i([p.Autowired("gridOptionsWrapper"),r("design:type",n.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),e=i([l.Bean("columnUtils")],e)}();t.ColumnUtils=u},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/Object.defineProperty(t,"__esModule",{value:!0});var i=o(36),r=o(12),n=o(4),s=function(){function e(e,t,o,i){this.localEventService=new n.EventService,this.expandable=!1,this.colGroupDef=e,this.groupId=t,this.expanded=e&&!!e.openByDefault,this.padding=o,this.level=i}return e.prototype.setOriginalParent=function(e){this.originalParent=this.originalParent},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 r.Column?t.push(o):o instanceof e&&o.addLeafColumns(t)}))},e.prototype.getColumnGroupShow=function(){return this.padding?i.ColumnGroup.HEADER_GROUP_PADDING:this.colGroupDef.columnGroupShow},e.prototype.setupExpandable=function(){var e=this;this.setExpandable(),this.getLeafColumns().forEach((function(t){return t.addEventListener(r.Column.EVENT_VISIBLE_CHANGED,e.onColumnVisibilityChanged.bind(e))}))},e.prototype.setExpandable=function(){if(!this.isPadding()){for(var t=!1,o=!1,r=!1,n=this.findChildren(),s=0,a=n.length;s<a;s++){var l=n[s];if(l.isVisible()){var p=l.getColumnGroupShow();if(p===i.ColumnGroup.HEADER_GROUP_SHOW_OPEN)t=!0,r=!0;else if(p===i.ColumnGroup.HEADER_GROUP_SHOW_CLOSED)o=!0,r=!0;else{if(t=!0,o=!0,p===i.ColumnGroup.HEADER_GROUP_PADDING)r=l.children.some((function(e){return void 0!==e.getColumnGroupShow()}))}}}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.findChildren=function(){var t=this.children,o=t[0];if(o&&(!o.isPadding||!o.isPadding()))return t;for(;1===t.length&&t[0]instanceof e;)t=t[0].children;return 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",e}();t.OriginalColumnGroup=s},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/var i=this&&this.__decorate||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},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),s=o(3),a=function(){function e(){this.cacheVersion=0}return e.prototype.init=function(){this.active=this.gridOptionsWrapper.isValueCache(),this.neverExpires=this.gridOptionsWrapper.isValueCacheNeverExpires()},e.prototype.onDataChanged=function(){this.neverExpires||this.expire()},e.prototype.expire=function(){this.cacheVersion++},e.prototype.setValue=function(e,t,o){this.active&&(e.__cacheVersion!==this.cacheVersion&&(e.__cacheVersion=this.cacheVersion,e.__cacheData={}),e.__cacheData[t]=o)},e.prototype.getValue=function(e,t){return this.active&&e.__cacheVersion===this.cacheVersion&&void 0!==e.__cacheData[t]?e.__cacheData[t]:void 0},i([n.Autowired("gridOptionsWrapper"),r("design:type",s.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([n.PostConstruct,r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],e.prototype,"init",null),e=i([n.Bean("valueCache")],e)}();t.ValueCache=a},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var n=o(8),s=o(2),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.isPopup=function(){return!0},t.prototype.setParentComponent=function(t){s._.addCssClass(t.getGui(),"ag-has-popup"),e.prototype.setParentComponent.call(this,t)},t.prototype.destroy=function(){var t=this.parentComponent;t&&t.isAlive()&&s._.removeCssClass(t.getGui(),"ag-has-popup"),e.prototype.destroy.call(this)},t}(n.Component);t.PopupComponent=a},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/var i=this&&this.__decorate||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},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),s=o(3),a=o(35),l=o(4),p=function(){function e(){this.p1Tasks=[],this.p2Tasks=[],this.ticking=!1,this.scrollGoingDown=!0,this.lastScrollTop=0}return e.prototype.setScrollTop=function(e){this.scrollGoingDown=e>this.lastScrollTop,this.lastScrollTop=e},e.prototype.registerGridComp=function(e){this.gridPanel=e},e.prototype.init=function(){this.useAnimationFrame=!this.gridOptionsWrapper.isSuppressAnimationFrame()},e.prototype.verifyAnimationFrameOn=function(e){!1===this.useAnimationFrame&&console.warn("ag-Grid: AnimationFrameService."+e+" called but animation frames are off")},e.prototype.addP1Task=function(e,t){this.verifyAnimationFrameOn("addP1Task");var o={task:e,index:t};this.p1Tasks.push(o),this.schedule()},e.prototype.addP2Task=function(e){this.verifyAnimationFrameOn("addP2Task"),this.p2Tasks.push(e),this.schedule()},e.prototype.executeFrame=function(e){this.verifyAnimationFrameOn("executeFrame"),this.scrollGoingDown?this.p1Tasks.sort((function(e,t){return t.index-e.index})):this.p1Tasks.sort((function(e,t){return e.index-t.index}));for(var t=(new Date).getTime(),o=(new Date).getTime()-t,i=e<=0;i||o<e;){if(!this.gridPanel.executeFrame())if(this.p1Tasks.length>0){this.p1Tasks.pop().task()}else{if(!(this.p2Tasks.length>0))break;this.p2Tasks.pop()()}o=(new Date).getTime()-t}this.p1Tasks.length>0||this.p2Tasks.length>0?this.requestFrame():this.stopTicking()},e.prototype.stopTicking=function(){this.ticking=!1;var e={type:a.Events.EVENT_ANIMATION_QUEUE_EMPTY,columnApi:this.gridOptionsWrapper.getColumnApi(),api:this.gridOptionsWrapper.getApi()};this.eventService.dispatchEvent(e)},e.prototype.flushAllFrames=function(){this.useAnimationFrame&&this.executeFrame(-1)},e.prototype.schedule=function(){this.useAnimationFrame&&(this.ticking||(this.ticking=!0,this.requestFrame()))},e.prototype.requestFrame=function(){var e=this.executeFrame.bind(this,60);window.requestAnimationFrame?window.requestAnimationFrame(e):window.webkitRequestAnimationFrame?window.webkitRequestAnimationFrame(e):window.setTimeout(e,0)},e.prototype.isQueueEmpty=function(){return this.ticking},i([n.Autowired("gridOptionsWrapper"),r("design:type",s.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([n.Autowired("eventService"),r("design:type",l.EventService)],e.prototype,"eventService",void 0),i([n.PostConstruct,r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],e.prototype,"init",null),e=i([n.Bean("animationFrameService")],e)}();t.AnimationFrameService=p},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),n=this&&this.__decorate||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},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(0),l=o(3),p=o(65),u=o(39),c=o(2),d=function(e){function t(){var t=e.call(this)||this;return t.className="ag-checkbox",t.displayTag="input",t.inputType="checkbox",t.labelAlignment="right",t.iconMap={selected:"checkboxChecked",unselected:"checkboxUnchecked",indeterminate:"checkboxIndeterminate"},t.selected=!1,t.readOnly=!1,t.passive=!1,t.setTemplate(t.TEMPLATE.replace(/%displayField%/g,t.displayTag)),t}return r(t,e),t.prototype.postConstruct=function(){e.prototype.postConstruct.call(this),c._.addCssClass(this.eInput,"ag-hidden"),this.addIconsPlaceholder(),this.updateIcons()},t.prototype.addInputListeners=function(){var e=this;this.addDestroyableEventListener(this.getGui(),"click",(function(t){return e.onClick(t)})),this.addDestroyableEventListener(this.eInput,"change",(function(t){return e.setValue(t.target.checked,!0)}))},t.prototype.addIconsPlaceholder=function(){var e=document.createElement("div");this.eWrapper.appendChild(e),this.eIconEl=e},t.prototype.onClick=function(e){c._.addAgGridEventPath(e),this.readOnly||this.toggle()},t.prototype.getNextValue=function(){return void 0===this.selected||!this.selected},t.prototype.setPassive=function(e){this.passive=e},t.prototype.setReadOnly=function(e){this.readOnly=e,this.updateIcons()},t.prototype.isReadOnly=function(){return this.readOnly},t.prototype.isSelected=function(){return this.selected},t.prototype.toggle=function(){var e=this.getNextValue();if(this.passive){var o={type:t.EVENT_CHANGED,selected:e};this.dispatchEvent(o)}else this.setValue(e)},t.prototype.setSelected=function(e,t){if(this.selected!==e&&(this.selected="boolean"==typeof e?e:void 0,this.eInput.checked=this.selected,this.updateIcons(),!t)){var o={type:u.AgAbstractField.EVENT_CHANGED,selected:this.selected};this.dispatchEvent(o)}},t.prototype.getIconName=function(){var e=this.getValue(),t=void 0===e?"indeterminate":e?"selected":"unselected",o=this.isReadOnly()?"ReadOnly":"";return""+this.iconMap[t]+o},t.prototype.updateIcons=function(){c._.clearElement(this.eIconEl),this.eIconEl.appendChild(c._.createIconNoSpan(this.getIconName(),this.gridOptionsWrapper,null))},t.prototype.getValue=function(){return this.isSelected()},t.prototype.setValue=function(e,t){return this.setSelected(e,t),this},n([a.Autowired("gridOptionsWrapper"),s("design:type",l.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),t}(p.AgAbstractInputField);t.AgCheckbox=d},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(224),r=o(302),n=o(303),s=o(304),a=o(306),l=o(307),p=o(308),u=o(229),c=o(165),d=o(164),h=o(51),f=o(230),g=o(309),y=o(311),v=function(){function e(){}return e.createCartesianChart=function(t){var o=new i.CartesianChart({document:t.document,xAxis:e.createAxis(t.xAxis),yAxis:e.createAxis(t.yAxis)});return e.initCartesianChart(o,t)},e.createGroupedColumnChart=function(t){var o=new y.GroupedCategoryChart({document:t.document,xAxis:e.createGroupedAxis(t.xAxis),yAxis:e.createAxis(t.yAxis)});return e.initGroupedCategoryChart(o,t,"bar")},e.createGroupedBarChart=function(t){var o=new y.GroupedCategoryChart({document:t.document,xAxis:e.createAxis(t.yAxis),yAxis:e.createGroupedAxis(t.xAxis)});return o.layout=i.CartesianChartLayout.Horizontal,e.initGroupedCategoryChart(o,t,"bar")},e.createGroupedLineChart=function(t){var o=new y.GroupedCategoryChart({document:t.document,xAxis:e.createGroupedAxis(t.xAxis),yAxis:e.createAxis(t.yAxis)});return e.initGroupedCategoryChart(o,t,"line")},e.createGroupedAreaChart=function(t){var o=new y.GroupedCategoryChart({document:t.document,xAxis:e.createGroupedAxis(t.xAxis),yAxis:e.createAxis(t.yAxis)});return e.initGroupedCategoryChart(o,t,"area")},e.createBarChart=function(t){var o=new i.CartesianChart({document:t.document,xAxis:e.createAxis(t.yAxis),yAxis:e.createAxis(t.xAxis)});return o.layout=i.CartesianChartLayout.Horizontal,e.initCartesianChart(o,t,"bar")},e.createColumnChart=function(t){var o=new i.CartesianChart({document:t.document,xAxis:e.createAxis(t.xAxis),yAxis:e.createAxis(t.yAxis)});return e.initCartesianChart(o,t,"bar")},e.createLineChart=function(t){var o=new i.CartesianChart({document:t.document,xAxis:e.createAxis(t.xAxis),yAxis:e.createAxis(t.yAxis)});return e.initCartesianChart(o,t,"line")},e.createScatterChart=function(t){var o=new i.CartesianChart({document:t.document,xAxis:e.createAxis(t.xAxis),yAxis:e.createAxis(t.yAxis)});return e.initCartesianChart(o,t,"scatter")},e.createAreaChart=function(t){var o=new i.CartesianChart({document:t.document,xAxis:e.createAxis(t.xAxis),yAxis:e.createAxis(t.yAxis)});return e.initCartesianChart(o,t,"area")},e.createPolarChart=function(t){var o=new r.PolarChart;return e.initPolarChart(o,t)},e.createDoughnutChart=function(t){var o=new r.PolarChart;return e.initPolarChart(o,t)},e.createPieChart=function(t){var o=new r.PolarChart;return e.initPolarChart(o,t,"pie")},e.createLineSeries=function(e){return new n.LineSeries},e.createScatterSeries=function(e){return new s.ScatterSeries},e.createSeries=function(t,o){switch(o||t&&t.type){case"line":return e.initLineSeries(new n.LineSeries,t);case"scatter":return e.initScatterSeries(new s.ScatterSeries,t);case"bar":return e.initBarSeries(new a.BarSeries,t);case"area":return e.initAreaSeries(new l.AreaSeries,t);case"pie":return e.initPieSeries(new p.PieSeries,t);default:return null}},e.initChart=function(t,o,i){if(void 0!==o.parent&&(t.parent=o.parent),void 0!==o.width&&(t.width=o.width),void 0!==o.height&&(t.height=o.height),o.title&&(t.title=e.createChartTitle(o.title)),o.subtitle&&(t.subtitle=e.createChartSubtitle(o.subtitle)),void 0!==o.series){for(var r=o.series,n=[],s=0,a=r.length;s<a;s++){var l=e.createSeries(r[s],i);l&&n.push(l)}t.series=n}return void 0!==o.padding&&(t.padding=new h.Padding(o.padding.top,o.padding.right,o.padding.bottom,o.padding.left)),void 0!==o.background&&(void 0!==o.background.fill&&(t.background.fill=o.background.fill),void 0!==o.background.visible&&(t.background.visible=o.background.visible)),void 0!==o.legendPosition&&(t.legendPosition=o.legendPosition),void 0!==o.legendPadding&&(t.legendPadding=o.legendPadding),void 0!==o.legend&&e.initLegend(t.legend,o.legend),void 0!==o.data&&(t.data=o.data),void 0!==o.tooltipClass&&(t.tooltipClass=o.tooltipClass),t},e.initCartesianChart=function(t,o,i){return e.initChart(t,o,i),t},e.initGroupedCategoryChart=function(t,o,i){return e.initChart(t,o,i),t},e.initPolarChart=function(t,o,i){return e.initChart(t,o,i),t},e.initSeries=function(e,t){return void 0!==t.visible&&(e.visible=t.visible),void 0!==t.showInLegend&&(e.showInLegend=t.showInLegend),void 0!==t.tooltipEnabled&&(e.tooltipEnabled=t.tooltipEnabled),void 0!==t.data&&(e.data=t.data),e},e.initLineSeries=function(t,o){return e.initSeries(t,o),void 0!==o.title&&(t.title=o.title),void 0!==o.xField&&(t.xField=o.xField),void 0!==o.yField&&(t.yField=o.yField),void 0!==o.fill&&(t.fill=o.fill),void 0!==o.stroke&&(t.stroke=o.stroke),void 0!==o.strokeWidth&&(t.strokeWidth=o.strokeWidth),void 0!==o.highlightStyle&&(t.highlightStyle=o.highlightStyle),void 0!==o.marker&&(t.marker=o.marker),void 0!==o.markerSize&&(t.markerSize=o.markerSize),void 0!==o.markerStrokeWidth&&(t.markerStrokeWidth=o.markerStrokeWidth),void 0!==o.tooltipRenderer&&(t.tooltipRenderer=o.tooltipRenderer),t},e.initScatterSeries=function(t,o){return e.initSeries(t,o),void 0!==o.title&&(t.title=o.title),void 0!==o.xField&&(t.xField=o.xField),void 0!==o.yField&&(t.yField=o.yField),void 0!==o.radiusField&&(t.radiusField=o.radiusField),void 0!==o.xFieldName&&(t.xFieldName=o.xFieldName),void 0!==o.yFieldName&&(t.yFieldName=o.yFieldName),void 0!==o.radiusFieldName&&(t.radiusFieldName=o.radiusFieldName),void 0!==o.fill&&(t.fill=o.fill),void 0!==o.stroke&&(t.stroke=o.stroke),void 0!==o.fillOpacity&&(t.fillOpacity=o.fillOpacity),void 0!==o.strokeOpacity&&(t.strokeOpacity=o.strokeOpacity),void 0!==o.highlightStyle&&(t.highlightStyle=o.highlightStyle),void 0!==o.markerSize&&(t.markerSize=o.markerSize),void 0!==o.minMarkerSize&&(t.minMarkerSize=o.minMarkerSize),void 0!==o.markerStrokeWidth&&(t.markerStrokeWidth=o.markerStrokeWidth),void 0!==o.tooltipRenderer&&(t.tooltipRenderer=o.tooltipRenderer),t},e.initBarSeries=function(t,o){return e.initSeries(t,o),void 0!==o.xField&&(t.xField=o.xField),void 0!==o.yFields&&(t.yFields=o.yFields),void 0!==o.yFieldNames&&(t.yFieldNames=o.yFieldNames),void 0!==o.grouped&&(t.grouped=o.grouped),void 0!==o.normalizedTo&&(t.normalizedTo=o.normalizedTo),void 0!==o.fills&&(t.fills=o.fills),void 0!==o.strokes&&(t.strokes=o.strokes),void 0!==o.fillOpacity&&(t.fillOpacity=o.fillOpacity),void 0!==o.strokeOpacity&&(t.strokeOpacity=o.strokeOpacity),void 0!==o.strokeWidth&&(t.strokeWidth=o.strokeWidth),void 0!==o.highlightStyle&&(t.highlightStyle=o.highlightStyle),void 0!==o.labelEnabled&&(t.labelEnabled=o.labelEnabled),void 0!==o.labelFontStyle&&(t.labelFontStyle=o.labelFontStyle),void 0!==o.labelFontWeight&&(t.labelFontWeight=o.labelFontWeight),void 0!==o.labelFontSize&&(t.labelFontSize=o.labelFontSize),void 0!==o.labelFontFamily&&(t.labelFontFamily=o.labelFontFamily),void 0!==o.labelFormatter&&(t.labelFormatter=o.labelFormatter),void 0!==o.tooltipRenderer&&(t.tooltipRenderer=o.tooltipRenderer),void 0!==o.shadow&&(t.shadow=e.createDropShadow(o.shadow)),t},e.initAreaSeries=function(t,o){return e.initSeries(t,o),void 0!==o.xField&&(t.xField=o.xField),void 0!==o.yFields&&(t.yFields=o.yFields),void 0!==o.yFieldNames&&(t.yFieldNames=o.yFieldNames),void 0!==o.normalizedTo&&(t.normalizedTo=o.normalizedTo),void 0!==o.fills&&(t.fills=o.fills),void 0!==o.strokes&&(t.strokes=o.strokes),void 0!==o.fillOpacity&&(t.fillOpacity=o.fillOpacity),void 0!==o.strokeOpacity&&(t.strokeOpacity=o.strokeOpacity),void 0!==o.strokeWidth&&(t.strokeWidth=o.strokeWidth),void 0!==o.highlightStyle&&(t.highlightStyle=o.highlightStyle),void 0!==o.marker&&(t.marker=o.marker),void 0!==o.markerSize&&(t.markerSize=o.markerSize),void 0!==o.markerStrokeWidth&&(t.markerStrokeWidth=o.markerStrokeWidth),void 0!==o.tooltipRenderer&&(t.tooltipRenderer=o.tooltipRenderer),void 0!==o.shadow&&(t.shadow=e.createDropShadow(o.shadow)),t},e.initPieSeries=function(t,o){return e.initSeries(t,o),void 0!==o.title&&(t.title=e.createPieTitle(o.title)),void 0!==o.calloutColors&&(t.calloutColors=o.calloutColors),void 0!==o.calloutStrokeWidth&&(t.calloutStrokeWidth=o.calloutStrokeWidth),void 0!==o.calloutLength&&(t.calloutLength=o.calloutLength),void 0!==o.calloutLength&&(t.calloutLength=o.calloutLength),void 0!==o.labelFontStyle&&(t.labelFontStyle=o.labelFontStyle),void 0!==o.labelFontWeight&&(t.labelFontWeight=o.labelFontWeight),void 0!==o.labelFontSize&&(t.labelFontSize=o.labelFontSize),void 0!==o.labelFontFamily&&(t.labelFontFamily=o.labelFontFamily),void 0!==o.labelColor&&(t.labelColor=o.labelColor),void 0!==o.labelMinAngle&&(t.labelMinAngle=o.labelMinAngle),void 0!==o.angleField&&(t.angleField=o.angleField),void 0!==o.radiusField&&(t.radiusField=o.radiusField),void 0!==o.labelField&&(t.labelField=o.labelField),void 0!==o.labelEnabled&&(t.labelEnabled=o.labelEnabled),void 0!==o.fills&&(t.fills=o.fills),void 0!==o.strokes&&(t.strokes=o.strokes),void 0!==o.fillOpacity&&(t.fillOpacity=o.fillOpacity),void 0!==o.strokeOpacity&&(t.strokeOpacity=o.strokeOpacity),void 0!==o.highlightStyle&&(t.highlightStyle=o.highlightStyle),void 0!==o.rotation&&(t.rotation=o.rotation),void 0!==o.outerRadiusOffset&&(t.outerRadiusOffset=o.outerRadiusOffset),void 0!==o.innerRadiusOffset&&(t.innerRadiusOffset=o.innerRadiusOffset),void 0!==o.strokeWidth&&(t.strokeWidth=o.strokeWidth),void 0!==o.shadow&&(t.shadow=e.createDropShadow(o.shadow)),void 0!==o.tooltipRenderer&&(t.tooltipRenderer=o.tooltipRenderer),t},e.initLegend=function(e,t){void 0!==t.enabled&&(e.enabled=t.enabled),void 0!==t.markerStrokeWidth&&(e.markerStrokeWidth=t.markerStrokeWidth),void 0!==t.markerSize&&(e.markerSize=t.markerSize),void 0!==t.markerPadding&&(e.markerPadding=t.markerPadding),void 0!==t.itemPaddingX&&(e.itemPaddingX=t.itemPaddingX),void 0!==t.itemPaddingY&&(e.itemPaddingY=t.itemPaddingY),void 0!==t.labelFontStyle&&(e.labelFontStyle=t.labelFontStyle),void 0!==t.labelFontWeight&&(e.labelFontWeight=t.labelFontWeight),void 0!==t.labelFontSize&&(e.labelFontSize=t.labelFontSize),void 0!==t.labelFontFamily&&(e.labelFontFamily=t.labelFontFamily),void 0!==t.labelColor&&(e.labelColor=t.labelColor)},e.createAxisTitle=function(t){return void 0===(t=Object.create(t)).text&&(t.text="Title"),void 0===t.fontWeight&&(t.fontWeight="bold"),void 0===t.fontSize&&(t.fontSize=16),void 0===t.fontFamily&&(t.fontFamily="Verdana, sans-serif"),e.createCaption(t)},e.createChartTitle=function(t){return void 0===(t=Object.create(t)).text&&(t.text="Title"),void 0===t.fontWeight&&(t.fontWeight="bold"),void 0===t.fontSize&&(t.fontSize=16),void 0===t.fontFamily&&(t.fontFamily="Verdana, sans-serif"),e.createCaption(t)},e.createChartSubtitle=function(t){return void 0===(t=Object.create(t)).text&&(t.text="Subtitle"),void 0===t.fontWeight&&(t.fontWeight="bold"),void 0===t.fontSize&&(t.fontSize=12),void 0===t.fontFamily&&(t.fontFamily="Verdana, sans-serif"),e.createCaption(t)},e.createPieTitle=function(t){return void 0===(t=Object.create(t)).fontWeight&&(t.fontWeight="bold"),void 0===t.fontSize&&(t.fontSize=12),void 0===t.fontFamily&&(t.fontFamily="Verdana, sans-serif"),e.createCaption(t)},e.createCaption=function(e){var t=new f.Caption;return void 0!==e.text&&(t.text=e.text),void 0!==e.fontStyle&&(t.fontStyle=e.fontStyle),void 0!==e.fontWeight&&(t.fontWeight=e.fontWeight),void 0!==e.fontSize&&(t.fontSize=e.fontSize),void 0!==e.fontFamily&&(t.fontFamily=e.fontFamily),void 0!==e.color&&(t.color=e.color),void 0!==e.enabled&&(t.enabled=e.enabled),t},e.createDropShadow=function(e){return void 0===e&&(e={}),new u.DropShadow(e)},e.createAxis=function(t){var o=void 0;switch(t.type){case"category":o=new c.CategoryAxis;break;case"number":o=new d.NumberAxis}if(!o)throw new Error("Unknown axis type.");for(var i in t)if("type"!==i)if("title"===i&&t.title)o.title=e.createAxisTitle(t.title);else{var r=t[i];void 0!==r&&(o[i]=r)}return o},e.createGroupedAxis=function(t){var o=new g.GroupedCategoryAxis;if(!o)throw new Error("Unknown axis type.");for(var i in t)if("type"!==i)if("title"===i&&t.title)o.title=e.createAxisTitle(t.title);else{var r=t[i];void 0!==r&&(o[i]=r)}return o},e}();t.ChartBuilder=v},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t,o,i){void 0===e&&(e=0),void 0===t&&(t=e),void 0===o&&(o=e),void 0===i&&(i=t),this.top=e,this.right=t,this.bottom=o,this.left=i}return e.prototype.clear=function(){this.top=0,this.right=0,this.bottom=0,this.left=0},e}();t.Padding=i},function(e,t,o){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var n=o(41),s=o(99),a=o(29),l=function(e){function t(){var o=null!==e&&e.apply(this,arguments)||this;return o._x=0,o._y=0,o.lineBreakRe=/\r?\n/g,o.lines=[],o._text="",o._dirtyFont=!0,o._fontStyle=void 0,o._fontWeight=void 0,o._fontSize=10,o._fontFamily="sans-serif",o._textAlign=t.defaultStyles.textAlign,o._textBaseline=t.defaultStyles.textBaseline,o._lineHeight=14,o}return r(t,e),Object.defineProperty(t.prototype,"x",{get:function(){return this._x},set:function(e){this._x!==e&&(this._x=e,this.dirty=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"y",{get:function(){return this._y},set:function(e){this._y!==e&&(this._y=e,this.dirty=!0)},enumerable:!0,configurable:!0}),t.prototype.splitText=function(){this.lines=this._text.split(this.lineBreakRe)},Object.defineProperty(t.prototype,"text",{get:function(){return this._text},set:function(e){var t=String(e);this._text!==t&&(this._text=t,this.splitText(),this.dirty=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"font",{get:function(){return this.dirtyFont?(this.dirtyFont=!1,this._font=[this.fontStyle||"",this.fontWeight||"",this.fontSize+"px",this.fontFamily].join(" ").trim()):this._font},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dirtyFont",{get:function(){return this._dirtyFont},set:function(e){this._dirtyFont!==e&&(this._dirtyFont=e,e&&(this.dirty=!0))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"fontStyle",{get:function(){return this._fontStyle},set:function(e){this._fontStyle!==e&&(this._fontStyle=e,this.dirtyFont=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"fontWeight",{get:function(){return this._fontWeight},set:function(e){this._fontWeight!==e&&(this._fontWeight=e,this.dirtyFont=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"fontSize",{get:function(){return this._fontSize},set:function(e){isFinite(e)||(e=10),this._fontSize!==e&&(this._fontSize=e,this.dirtyFont=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"fontFamily",{get:function(){return this._fontFamily},set:function(e){this._fontFamily!==e&&(this._fontFamily=e,this.dirtyFont=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"textAlign",{get:function(){return this._textAlign},set:function(e){this._textAlign!==e&&(this._textAlign=e,this.dirty=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"textBaseline",{get:function(){return this._textBaseline},set:function(e){this._textBaseline!==e&&(this._textBaseline=e,this.dirty=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"lineHeight",{get:function(){return this._lineHeight},set:function(e){this._lineHeight!==e&&(this._lineHeight=e,this.dirty=!0)},enumerable:!0,configurable:!0}),t.prototype.getBBox=function(){return this.scene?this.scene.canvas.has.textMetrics?this.getPreciseBBox():this.getApproximateBBox():void 0},t.prototype.getPreciseBBox=function(){var e=this.scene.canvas.measureText(this.text,this.font,this.textBaseline,this.textAlign);return new a.BBox(this.x-e.actualBoundingBoxLeft,this.y-e.actualBoundingBoxAscent,e.width,e.actualBoundingBoxAscent+e.actualBoundingBoxDescent)},t.prototype.getApproximateBBox=function(){var e=this.scene.canvas.getTextSize(this.text,this.font),t=this.x,o=this.y;switch(this.textAlign){case"end":case"right":t-=e.width;break;case"center":t-=e.width/2}switch(this.textBaseline){case"alphabetic":o-=.7*e.height;break;case"middle":o-=.45*e.height;break;case"ideographic":o-=e.height;break;case"hanging":o-=.2*e.height;break;case"bottom":o-=e.height}return new a.BBox(t,o,e.width,e.height)},t.prototype.isPointInPath=function(e,t){var o=this.transformPoint(e,t),i=this.getBBox();return!!i&&i.containsPoint(o.x,o.y)},t.prototype.isPointInStroke=function(e,t){return!1},t.prototype.render=function(e){if(this.scene&&this.lines.length){this.dirtyTransform&&this.computeTransformMatrix(),this.matrix.toContext(e),this.opacity<1&&(e.globalAlpha=this.opacity),e.font=this.font,e.textAlign=this.textAlign,e.textBaseline=this.textBaseline;var t=this.scene.canvas.pixelRatio||1;if(this.fill){e.fillStyle=this.fill;var o=this.fillShadow;o&&o.enabled&&(e.shadowColor=o.color,e.shadowOffsetX=o.xOffset*t,e.shadowOffsetY=o.yOffset*t,e.shadowBlur=o.blur*t),e.fillText(this.text,this.x,this.y)}if(this.stroke&&this.strokeWidth){e.strokeStyle=this.stroke,e.lineWidth=this.strokeWidth,this.lineDash&&e.setLineDash(this.lineDash),this.lineDashOffset&&(e.lineDashOffset=this.lineDashOffset),this.lineCap&&(e.lineCap=this.lineCap),this.lineJoin&&(e.lineJoin=this.lineJoin);var i=this.strokeShadow;i&&i.enabled&&(e.shadowColor=i.color,e.shadowOffsetX=i.xOffset*t,e.shadowOffsetY=i.yOffset*t,e.shadowBlur=i.blur*t),e.strokeText(this.text,this.x,this.y)}this.dirty=!1}},t.className="Text",t.defaultStyles=s.chainObjects(n.Shape.defaultStyles,{textAlign:"start",fontStyle:void 0,fontWeight:void 0,fontSize:10,fontFamily:"sans-serif",textBaseline:"alphabetic"}),t}(n.Shape);t.Text=l},function(e,t,o){"use strict";function i(e){for(var t,o,i,r=e.length,n=-1;++n<r;)if(null!=(t=e[n])&&t>=t)for(o=i=t;++n<r;)null!=(t=e[n])&&(o>t&&(o=t),i<t&&(i=t));return[o,i]}Object.defineProperty(t,"__esModule",{value:!0}),t.extent=i,t.find=function(e,t){for(var o=0,i=e.length;o<i;o++){var r=e[o];if(t(r,o,e))return r}},t.numericExtent=function(e){var t=i(e),o=t[0],r=t[1];if("number"==typeof o&&isFinite(o)&&"number"==typeof r&&isFinite(r))return[o,r]}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=2*Math.PI;t.normalizeAngle360=function(e){return e%=i,e+=i,e%=i},t.normalizeAngle360Inclusive=function(e){return e%=i,(e+=i)!==i&&(e%=i),e},t.normalizeAngle180=function(e){return(e%=i)<-Math.PI?e+=i:e>=Math.PI&&(e-=i),e},t.toRadians=function(e){return e/180*Math.PI},t.toDegrees=function(e){return e/Math.PI*180}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.borneo={fills:["#f3622d","#fba71b","#57b757","#41a9c9","#4258c9","#9a42c8","#c84164","#888888"],strokes:["#aa4520","#b07513","#3d803d","#2d768d","#2e3e8d","#6c2e8c","#8c2d46","#5f5f5f"]},t.material={fills:["#f44336","#e91e63","#9c27b0","#673ab7","#3f51b5","#2196f3","#03a9f4","#00bcd4","#009688","#4caf50","#8bc34a","#cddc39","#ffeb3b","#ffc107","#ff9800","#ff5722"],strokes:["#ab2f26","#a31545","#6d1b7b","#482980","#2c397f","#1769aa","#0276ab","#008494","#00695f","#357a38","#618834","#909a28","#b3a429","#b38705","#b36a00","#b33d18"]},t.pastel={fills:["#c16068","#a2bf8a","#ebcc87","#80a0c3","#b58dae","#85c0d1"],strokes:["#874349","#718661","#a48f5f","#5a7088","#7f637a","#5d8692"]},t.bright={fills:["#5BC0EB","#FDE74C","#9BC53D","#E55934","#FA7921","#fa3081"],strokes:["#4086a4","#b1a235","#6c8a2b","#a03e24","#af5517","#af225a"]},t.flat={fills:["#febe76","#ff7979","#badc58","#f9ca23","#f0932b","#eb4c4b","#6ab04c","#7ed6df","#e056fd","#686de0"],strokes:["#b28553","#b35555","#829a3e","#ae8d19","#a8671e","#a43535","#4a7b35","#58969c","#9d3cb1","#494c9d"]},t.default=t.borneo,t.palettes=[t.borneo,t.material,t.pastel,t.bright,t.flat]},function(e,t,o){"use strict";var i=this&&this.__decorate||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},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var n=o(1),s=o(78),a=function(){function e(){this.watermarkMessage=void 0}var t;return t=e,e.prototype.validateLicense=function(){if(n._.missingOrEmpty(t.licenseKey))this.outputMissingLicenseKey();else if(!n._.missingOrEmpty(t.licenseKey)&&t.licenseKey.length>32){var e=t.extractLicenseComponents(t.licenseKey),o=e.md5,i=e.license,r=e.version,s=e.isTrial;o===this.md5.md5(i)?n._.exists(r)&&r?this.validateLicenseKeyForVersion(r,!!s,i):this.validateLegacyKey(i):this.outputInvalidLicenseKey()}},e.extractExpiry=function(e){var o=e.substring(e.lastIndexOf("_")+1,e.length);return new Date(parseInt(t.decode(o),10))},e.extractLicenseComponents=function(e){var o=e.length-32,i=e.substring(o),r=e.substring(0,o),n=t.extractBracketedInformation(e);return{md5:i,license:r,version:n[0],isTrial:n[1]}},e.prototype.getLicenseDetails=function(e){var o=t.extractLicenseComponents(e),i=o.md5,r=o.license,n=o.version,s=o.isTrial,a=i===this.md5.md5(r),l=null;return a&&(l=t.extractExpiry(r),a=!isNaN(l.getTime())),{licenseKey:e,valid:a,expiry:a?t.formatDate(l):null,version:n||"legacy",isTrial:s}},e.prototype.isDisplayWatermark=function(){return!n._.missingOrEmpty(this.watermarkMessage)},e.prototype.getWatermarkMessage=function(){return this.watermarkMessage},e.formatDate=function(e){var t=e.getDate(),o=e.getMonth(),i=e.getFullYear();return t+" "+["January","February","March","April","May","June","July","August","September","October","November","December"][o]+" "+i},e.getGridReleaseDate=function(){return new Date(parseInt(t.decode(t.RELEASE_INFORMATION),10))},e.decode=function(e){for(var o,i,r,n,s,a,l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",p="",u=0,c=e.replace(/[^A-Za-z0-9+\/=]/g,"");u<c.length;)o=l.indexOf(c.charAt(u++))<<2|(n=l.indexOf(c.charAt(u++)))>>4,i=(15&n)<<4|(s=l.indexOf(c.charAt(u++)))>>2,r=(3&s)<<6|(a=l.indexOf(c.charAt(u++))),p+=String.fromCharCode(o),64!=s&&(p+=String.fromCharCode(i)),64!=a&&(p+=String.fromCharCode(r));return p=t.utf8_decode(p)},e.utf8_decode=function(e){e=e.replace(/rn/g,"n");for(var t="",o=0;o<e.length;o++){var i=e.charCodeAt(o);i<128?t+=String.fromCharCode(i):i>127&&i<2048?(t+=String.fromCharCode(i>>6|192),t+=String.fromCharCode(63&i|128)):(t+=String.fromCharCode(i>>12|224),t+=String.fromCharCode(i>>6&63|128),t+=String.fromCharCode(63&i|128))}return t},e.setLicenseKey=function(e){t.licenseKey=e},e.extractBracketedInformation=function(e){var t=e.split("[").filter((function(e){return e.indexOf("]")>-1})).map((function(e){return e.split("]")[0]}));if(!t||0===t.length)return[null,null];var o=1===t.filter((function(e){return"TRIAL"===e})).length;return[t.filter((function(e){return 0===e.indexOf("v")})).map((function(e){return e.replace(/^v/,"")}))[0],o]},e.prototype.validateLicenseKeyForVersion=function(e,t,o){switch(e){case"2":t?this.validateForTrial(o):this.validateLegacyKey(o)}},e.prototype.validateLegacyKey=function(e){var o=t.getGridReleaseDate(),i=t.extractExpiry(e),r=!1,n=!1;if(isNaN(i.getTime())||(r=!0,n=o<i),r){if(!n){var s=t.formatDate(i),a=t.formatDate(o);this.outputIncompatibleVersion(s,a)}}else this.outputInvalidLicenseKey()},e.prototype.validateForTrial=function(e){var o=t.extractExpiry(e),i=new Date,r=!1,n=!1;if(isNaN(o.getTime())||(r=!0,n=o>i),r){if(!n){var s=t.formatDate(o);this.outputExpiredTrialKey(s)}}else this.outputInvalidLicenseKey()},e.prototype.outputInvalidLicenseKey=function(){console.error("*****************************************************************************************************************"),console.error("***************************************** ag-Grid Enterprise License ********************************************"),console.error("********************************************* Invalid License ***************************************************"),console.error("* Your license for ag-Grid Enterprise is not valid - please contact info@ag-grid.com to obtain a valid license. *"),console.error("*****************************************************************************************************************"),console.error("*****************************************************************************************************************"),this.watermarkMessage="Invalid License"},e.prototype.outputExpiredTrialKey=function(e){console.error("****************************************************************************************************************"),console.error("***************************************** ag-Grid Enterprise License *******************************************"),console.error("***************************************** Trial Period Expired. *******************************************"),console.error("* Your license for ag-Grid Enterprise expired on "+e+". *"),console.error("* Please email info@ag-grid.com to purchase a license. *"),console.error("****************************************************************************************************************"),console.error("****************************************************************************************************************"),this.watermarkMessage="Trial Period Expired"},e.prototype.outputMissingLicenseKey=function(){console.error("****************************************************************************************************************"),console.error("***************************************** ag-Grid Enterprise License *******************************************"),console.error("****************************************** License Key Not Found ***********************************************"),console.error("* All ag-Grid Enterprise features are unlocked. *"),console.error("* This is an evaluation only version, it is not licensed for development projects intended for production. *"),console.error("* If you want to hide the watermark, please email info@ag-grid.com for a trial license. *"),console.error("****************************************************************************************************************"),console.error("****************************************************************************************************************"),this.watermarkMessage="For Trial Use Only"},e.prototype.outputIncompatibleVersion=function(e,t){console.error("****************************************************************************************************************************"),console.error("********************************************* ag-Grid Enterprise License ***************************************************"),console.error("*************************** License not compatible with installed version of ag-Grid Enterprise. ***************************"),console.error("* Your license for ag-Grid Enterprise expired on "+e+" but the version installed was released on "+t+". *"),console.error("* Please contact info@ag-grid.com to renew your subscription to new versions. *"),console.error("****************************************************************************************************************************"),console.error("****************************************************************************************************************************"),this.watermarkMessage="Incompatible License Version"},e.RELEASE_INFORMATION="MTU2OTUwNzQ0NTUxNw==",i([n.Autowired("md5"),r("design:type",s.MD5)],e.prototype,"md5",void 0),i([n.PreConstruct,r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],e.prototype,"validateLicense",null),e=t=i([n.Bean("licenseManager")],e)}();t.LicenseManager=a},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/var i=this&&this.__decorate||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},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},n=this&&this.__param||function(e,t){return function(o,i){t(o,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});var s=o(3),a=o(14),l=o(44),p=o(193),u=o(45),c=o(12),d=o(0),h=o(264),f=o(2),g=function(){function e(){}return e.prototype.setBeans=function(e){this.logger=e.create("ColumnFactory")},e.prototype.createColumnTree=function(e,t,o){var i=new p.ColumnKeyCreator;if(o){var r=o.map((function(e){return e.getId()}));i.addExistingKeys(r)}var n=o?o.slice():null,s=this.recursivelyCreateColumns(e,0,t,n,i,null),a=this.findMaxDept(s,0);this.logger.log("Number of levels for grouped columns is "+a);var l=this.balanceColumnTree(s,0,a,i);return this.columnUtils.depthFirstOriginalTreeSearch(null,l,(function(e,t){e instanceof u.OriginalColumnGroup&&e.setupExpandable(),e.setOriginalParent(t)})),{columnTree:l,treeDept:a}},e.prototype.createForAutoGroups=function(e,t){var o=this,i=[];return e.forEach((function(e){var r=o.createAutoGroupTreeItem(t,e);i.push(r)})),i},e.prototype.createAutoGroupTreeItem=function(e,t){for(var o=t,i=this.findDepth(e)-1;i>=0;i--){var r=new u.OriginalColumnGroup(null,"FAKE_PATH_"+t.getId()+"}_"+i,!0,i);this.context.wireBean(r),r.setChildren([o]),o.setOriginalParent(r),o=r}return o},e.prototype.findDepth=function(e){for(var t=0,o=e;o&&o[0]&&o[0]instanceof u.OriginalColumnGroup;)t++,o=o[0].getChildren();return t},e.prototype.balanceColumnTree=function(e,t,o,i){for(var r=[],n=0;n<e.length;n++){var s=e[n];if(s instanceof u.OriginalColumnGroup){var a=s,l=this.balanceColumnTree(a.getChildren(),t+1,o,i);a.setChildren(l),r.push(a)}else{for(var p=void 0,c=void 0,d=o-1;d>=t;d--){var h=i.getUniqueKey(null,null),f=this.createMergedColGroupDef(null),g=new u.OriginalColumnGroup(f,h,!0,t);this.context.wireBean(g),c&&c.setChildren([g]),c=g,p||(p=c)}if(p){if(r.push(p),e.some((function(e){return e instanceof u.OriginalColumnGroup}))){c.setChildren([s]);continue}c.setChildren(e);break}r.push(s)}}return r},e.prototype.findMaxDept=function(e,t){for(var o=t,i=0;i<e.length;i++){var r=e[i];if(r instanceof u.OriginalColumnGroup){var n=r,s=this.findMaxDept(n.getChildren(),t+1);o<s&&(o=s)}}return o},e.prototype.recursivelyCreateColumns=function(e,t,o,i,r,n){var s=this,a=[];return e?(e.forEach((function(e){var l;l=s.isColumnGroup(e)?s.createColumnGroup(o,e,t,i,r,n):s.createColumn(o,e,i,r,n),a.push(l)})),a):a},e.prototype.createColumnGroup=function(e,t,o,i,r,n){var s=this.createMergedColGroupDef(t),a=r.getUniqueKey(s.groupId,null),l=new u.OriginalColumnGroup(s,a,!1,o);this.context.wireBean(l);var p=this.recursivelyCreateColumns(s.children,o+1,e,i,r,l);return l.setChildren(p),l},e.prototype.createMergedColGroupDef=function(e){var t={};return f._.assign(t,this.gridOptionsWrapper.getDefaultColGroupDef()),f._.assign(t,e),this.checkForDeprecatedItems(t),t},e.prototype.createColumn=function(e,t,o,i,r){var n=this.mergeColDefs(t);this.checkForDeprecatedItems(n);var s=this.findExistingColumn(t,o);if(s)s.setColDef(n,t);else{var a=i.getUniqueKey(n.colId,n.field);s=new c.Column(n,t,a,e),this.context.wireBean(s)}return s},e.prototype.findExistingColumn=function(e,t){var o=f._.find(t,(function(t){var o=t.getUserProvidedColDef();return!!o&&(o===e||!!(null!==o.colId&&void 0!==o.colId)&&o.colId===e.colId)}));return o&&f._.removeFromArray(t,o),o},e.prototype.mergeColDefs=function(e){var t={};return f._.assign(t,this.gridOptionsWrapper.getDefaultColDef()),e.type&&this.assignColumnTypes(e,t),f._.assign(t,e),t},e.prototype.assignColumnTypes=function(e,t){var o;if(e.type instanceof Array){e.type.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.type}else{if("string"!=typeof e.type)return void console.warn("ag-grid: colDef.type should be of type 'string' | 'string[]'");o=e.type.split(",")}var i=f._.assign({},this.gridOptionsWrapper.getColumnTypes(),h.DefaultColumnTypes);o.forEach((function(e){var o=i[e.trim()];o?f._.assign(t,o):console.warn("ag-grid: colDef.type '"+e+"' does not correspond to defined gridOptions.columnTypes")}))},e.prototype.checkForDeprecatedItems=function(e){if(e){var t=e;void 0!==t.group&&console.warn("ag-grid: colDef.group is invalid, please check documentation on how to do grouping as it changed in version 3"),void 0!==t.headerGroup&&console.warn("ag-grid: colDef.headerGroup is invalid, please check documentation on how to do grouping as it changed in version 3"),void 0!==t.headerGroupShow&&console.warn("ag-grid: colDef.headerGroupShow is invalid, should be columnGroupShow, please check documentation on how to do grouping as it changed in version 3"),void 0!==t.suppressRowGroup&&console.warn("ag-grid: colDef.suppressRowGroup is deprecated, please use colDef.type instead"),void 0!==t.suppressAggregation&&console.warn("ag-grid: colDef.suppressAggregation is deprecated, please use colDef.type instead"),(t.suppressRowGroup||t.suppressAggregation)&&console.warn("ag-grid: colDef.suppressAggregation and colDef.suppressRowGroup are deprecated, use allowRowGroup, allowPivot and allowValue instead"),t.displayName&&(console.warn("ag-grid: Found displayName "+t.displayName+", please use headerName instead, displayName is deprecated."),t.headerName=t.displayName)}},e.prototype.isColumnGroup=function(e){return void 0!==e.children},i([d.Autowired("gridOptionsWrapper"),r("design:type",s.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([d.Autowired("columnUtils"),r("design:type",l.ColumnUtils)],e.prototype,"columnUtils",void 0),i([d.Autowired("context"),r("design:type",d.Context)],e.prototype,"context",void 0),i([n(0,d.Qualifier("loggerFactory")),r("design:type",Function),r("design:paramtypes",[a.LoggerFactory]),r("design:returntype",void 0)],e.prototype,"setBeans",null),e=i([d.Bean("columnFactory")],e)}();t.ColumnFactory=g},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/var i=this&&this.__decorate||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},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var n=o(20),s=o(0),a=o(3),l=o(188),p=function(){function e(){}return e.prototype.registerGridComp=function(e){this.gridPanel=e},e.prototype.registerHeaderRootComp=function(e){this.headerRootComp=e},e.prototype.getPreferredWidthForColumn=function(e){var t=this.getHeaderCellForColumn(e);if(!t)return-1;var o=document.createElement("span");o.style.position="fixed";var i=this.gridPanel.getCenterContainer();i.appendChild(o),this.putRowCellsIntoDummyContainer(e,o),this.cloneItemIntoDummy(t,o);var r=o.offsetWidth;return i.removeChild(o),r+this.gridOptionsWrapper.getAutoSizePadding()},e.prototype.getHeaderCellForColumn=function(e){var t=null;return this.headerRootComp.forEachHeaderElement((function(o){if(o instanceof l.HeaderWrapperComp){var i=o;i.getColumn()===e&&(t=i)}})),t?t.getGui():null},e.prototype.putRowCellsIntoDummyContainer=function(e,t){var o=this;this.rowRenderer.getAllCellsForColumn(e).forEach((function(e){return o.cloneItemIntoDummy(e,t)}))},e.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");i.style.display="table-row",i.appendChild(o),t.appendChild(i)},i([s.Autowired("rowRenderer"),r("design:type",n.RowRenderer)],e.prototype,"rowRenderer",void 0),i([s.Autowired("gridOptionsWrapper"),r("design:type",a.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),e=i([s.Bean("autoWidthCalculator")],e)}();t.AutoWidthCalculator=p},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),n=this&&this.__assign||function(){return(n=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}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var s=o(12),a=o(7),l=o(6),p=o(8),u=o(125),c=o(179),d=o(251),h=o(126),f=o(2),g=o(252),y=function(e){function t(t,o,i,r,n,s,a){var l=e.call(this)||this;if(l.editingCell=!1,l.suppressRefreshCell=!1,l.scope=null,l.cellEditorVersion=0,l.cellRendererVersion=0,l.scope=t,l.beans=o,l.column=i,l.rowNode=r,l.rowComp=n,l.autoHeightCell=s,l.printLayout=a,l.createGridCellVo(),l.rangeSelectionEnabled=o.gridOptionsWrapper.isEnableRangeSelection(),l.cellFocused=l.beans.focusedCellController.isCellFocused(l.cellPosition),l.firstRightPinned=l.column.isFirstRightPinned(),l.lastLeftPinned=l.column.isLastLeftPinned(),l.rangeSelectionEnabled){var p=l.beans.rangeController;l.rangeCount=p.getCellRangeCount(l.cellPosition),l.rangeCount&&(l.hasChartRange=p.getCellRanges().every((function(e){return f._.exists(e.type)})))}return l.getValueAndFormat(),l.setUsingWrapper(),l.chooseCellRenderer(),l.setupColSpan(),l.rowSpan=l.column.getRowSpan(l.rowNode),l}return r(t,e),t.prototype.getCreateTemplate=function(){var e=this.beans.gridOptionsWrapper.isEnableCellTextSelection()?"":'unselectable="on"',t=[],o=this.column,i=this.getCellWidth(),r=this.modifyLeftForPrintLayout(this.getCellLeft()),n=this.getInitialValueToRender(),s=f._.get(this.column,"colDef.template",null)?n:f._.escape(n);this.tooltip=this.getToolTip();var a=f._.escape(this.tooltip),l=f._.escape(o.getId()),p="",u="",c=this.preProcessStylesFromColDef(),d=this.getInitialCssClasses(),h=this.getStylesForRowSpanning();return this.usingWrapper&&(p='<div ref="eCellWrapper" class="ag-cell-wrapper"><span ref="eCellValue" class="ag-cell-value" '+e+">",u="</span></div>"),t.push("<div"),t.push(' tabindex="-1"'),t.push(" "+e),t.push(' role="gridcell"'),t.push(' comp-id="'+this.getCompId()+'" '),t.push(' col-id="'+l+'"'),t.push(' class="'+d.join(" ")+'"'),this.beans.gridOptionsWrapper.isEnableBrowserTooltips()&&f._.exists(a)&&t.push('title="'+a+'"'),t.push(' style="width: '+i+"px; left: "+r+"px; "+c+" "+h+'" >'),t.push(p),f._.exists(s,!0)&&t.push(s),t.push(u),t.push("</div>"),t.join("")},t.prototype.getStylesForRowSpanning=function(){return 1===this.rowSpan?"":"height: "+this.beans.gridOptionsWrapper.getRowHeightAsNumber()*this.rowSpan+"px; z-index: 1;"},t.prototype.afterAttached=function(){var e='[comp-id="'+this.getCompId()+'"]',t=this.eParentRow.querySelector(e);this.setGui(t),this.addDomData(),this.populateTemplate(),this.createCellRendererInstance(!0),this.angular1Compile(),this.rangeSelectionEnabled&&this.shouldHaveSelectionHandle()&&this.addSelectionHandle(),f._.exists(this.tooltip)&&!this.beans.gridOptionsWrapper.isEnableBrowserTooltips()&&this.beans.tooltipManager.registerTooltip(this)},t.prototype.onColumnHover=function(){var e=this.beans.columnHoverService.isHovered(this.column);f._.addOrRemoveCssClass(this.getGui(),"ag-column-hover",e)},t.prototype.onCellChanged=function(e){e.column===this.column&&this.refreshCell({})},t.prototype.getCellLeft=function(){return(this.beans.gridOptionsWrapper.isEnableRtl()&&this.colsSpanning?f._.last(this.colsSpanning):this.column).getLeft()},t.prototype.getCellWidth=function(){if(!this.colsSpanning)return this.column.getActualWidth();var e=0;return this.colsSpanning.forEach((function(t){return e+=t.getActualWidth()})),e},t.prototype.onFlashCells=function(e){var t=this.beans.cellPositionUtils.createId(this.cellPosition);e.cells[t]&&this.animateCell("highlight")},t.prototype.setupColSpan=function(){f._.missing(this.getComponentHolder().colSpan)||(this.addDestroyableEventListener(this.beans.eventService,l.Events.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayColumnsChanged.bind(this)),this.addDestroyableEventListener(this.beans.eventService,l.Events.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,this.onWidthChanged.bind(this)),this.colsSpanning=this.getColSpanningList())},t.prototype.getColSpanningList=function(){var e=this.column.getColSpan(this.rowNode),t=[];if(1===e)t.push(this.column);else for(var o=this.column,i=this.column.getPinned(),r=0;o&&r<e&&(t.push(o),(o=this.beans.columnController.getDisplayedColAfter(o))&&!f._.missing(o))&&i===o.getPinned();r++);return t},t.prototype.onDisplayColumnsChanged=function(){var e=this.getColSpanningList();f._.compareArrays(this.colsSpanning,e)||(this.colsSpanning=e,this.onWidthChanged(),this.onLeftChanged())},t.prototype.getInitialCssClasses=function(){var e=["ag-cell","ag-cell-not-inline-editing"];return this.autoHeightCell||e.push("ag-cell-with-height"),!this.beans.gridOptionsWrapper.isSuppressCellSelection()&&this.cellFocused&&e.push("ag-cell-focus"),this.firstRightPinned&&e.push("ag-cell-first-right-pinned"),this.lastLeftPinned&&e.push("ag-cell-last-left-pinned"),this.beans.columnHoverService.isHovered(this.column)&&e.push("ag-column-hover"),f._.pushAll(e,this.preProcessClassesFromColDef()),f._.pushAll(e,this.preProcessCellClassRules()),f._.pushAll(e,this.getInitialRangeClasses()),this.usingWrapper||e.push("ag-cell-value"),e},t.prototype.getInitialValueToRender=function(){if(this.usingCellRenderer)return"string"==typeof this.cellRendererGui?this.cellRendererGui:"";var e=this.getComponentHolder();if(e.template)return e.template;if(e.templateUrl){var t=this.beans.templateService.getTemplate(e.templateUrl,this.refreshCell.bind(this,!0));return t||""}return this.getValueToUse()},t.prototype.getRenderedRow=function(){return this.rowComp},t.prototype.isSuppressNavigable=function(){return this.column.isSuppressNavigable(this.rowNode)},t.prototype.getCellRenderer=function(){return this.cellRenderer},t.prototype.getCellEditor=function(){return this.cellEditor},t.prototype.refreshCell=function(e){if(!this.suppressRefreshCell&&!this.editingCell){var t=this.getComponentHolder(),o=e&&e.newData,i=e&&e.suppressFlash||t.suppressCellFlash,r=e&&e.forceRefresh,n=this.value;this.getValueAndFormat();var s=!this.valuesAreEqual(n,this.value);if(r||s){!o&&this.attemptCellRendererRefresh()||this.replaceContentsAfterRefresh();var a=this.beans.filterManager.isSuppressFlashingCellsBecauseFiltering();!i&&!a&&(this.beans.gridOptionsWrapper.isEnableCellChangeFlash()||t.enableCellChangeFlash)&&this.flashCell(),this.postProcessStylesFromColDef(),this.postProcessClassesFromColDef()}this.updateAngular1ScopeAndCompile(),this.refreshToolTip(),this.postProcessCellClassRules()}},t.prototype.flashCell=function(){this.animateCell("data-changed")},t.prototype.animateCell=function(e){var t="ag-cell-"+e,o="ag-cell-"+e+"-animation",i=this.getGui();f._.addCssClass(i,t),f._.removeCssClass(i,o),window.setTimeout((function(){f._.removeCssClass(i,t),f._.addCssClass(i,o),window.setTimeout((function(){f._.removeCssClass(i,o)}),1e3)}),500)},t.prototype.replaceContentsAfterRefresh=function(){f._.clearElement(this.eParentOfValue),this.cellRenderer&&this.cellRenderer.destroy&&this.cellRenderer.destroy(),this.cellRenderer=null,this.cellRendererGui=null,this.putDataIntoCellAfterRefresh(),this.updateAngular1ScopeAndCompile()},t.prototype.updateAngular1ScopeAndCompile=function(){this.beans.gridOptionsWrapper.isAngularCompileRows()&&this.scope&&(this.scope.data=n({},this.rowNode.data),this.angular1Compile())},t.prototype.angular1Compile=function(){if(this.beans.gridOptionsWrapper.isAngularCompileRows()){var e=this.getGui();if(!e.classList.contains("ng-scope")||0===e.childElementCount){var t=this.beans.$compile(e)(this.scope);this.addDestroyFunc((function(){t.remove()}))}}},t.prototype.postProcessStylesFromColDef=function(){var e=this.processStylesFromColDef();e&&f._.addStylesToElement(this.getGui(),e)},t.prototype.preProcessStylesFromColDef=function(){var e=this.processStylesFromColDef();return f._.cssStyleObjectToMarkup(e)},t.prototype.processStylesFromColDef=function(){var e=this.getComponentHolder();if(e.cellStyle){var t=void 0;if("function"==typeof e.cellStyle){var o={value:this.value,data:this.rowNode.data,node:this.rowNode,colDef:e,column:this.column,$scope:this.scope,context:this.beans.gridOptionsWrapper.getContext(),api:this.beans.gridOptionsWrapper.getApi()};t=(0,e.cellStyle)(o)}else t=e.cellStyle;return t}},t.prototype.postProcessClassesFromColDef=function(){var e=this;this.processClassesFromColDef((function(t){return f._.addCssClass(e.getGui(),t)}))},t.prototype.preProcessClassesFromColDef=function(){var e=[];return this.processClassesFromColDef((function(t){return e.push(t)})),e},t.prototype.processClassesFromColDef=function(e){var t=this.getComponentHolder();this.beans.stylingService.processStaticCellClasses(t,{value:this.value,data:this.rowNode.data,node:this.rowNode,colDef:t,rowIndex:this.rowNode.rowIndex,$scope:this.scope,api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),context:this.beans.gridOptionsWrapper.getContext()},e)},t.prototype.putDataIntoCellAfterRefresh=function(){var e=this.getComponentHolder();if(e.template)this.eParentOfValue.innerHTML=e.template;else if(e.templateUrl){var t=this.beans.templateService.getTemplate(e.templateUrl,this.refreshCell.bind(this,!0));t&&(this.eParentOfValue.innerHTML=t)}else if(this.chooseCellRenderer(),this.usingCellRenderer)this.createCellRendererInstance();else{var o=this.getValueToUse();null!=o&&(this.eParentOfValue.innerHTML=f._.escape(o))}},t.prototype.attemptCellRendererRefresh=function(){if(f._.missing(this.cellRenderer)||!this.cellRenderer||f._.missing(this.cellRenderer.refresh))return!1;var e=this.createCellRendererParams(),t=this.beans.userComponentFactory.createFinalParams(this.getComponentHolder(),this.cellRendererType,e),o=this.cellRenderer.refresh(t);return!0===o||void 0===o},t.prototype.refreshToolTip=function(){var e=this.getToolTip();if(this.tooltip!==e){var t=f._.exists(e),o=f._.exists(this.tooltip);if(!t||this.tooltip!==e.toString())if(this.tooltip=e,this.beans.gridOptionsWrapper.isEnableBrowserTooltips())if(t){var i=f._.escape(this.tooltip);this.eParentOfValue.setAttribute("title",i)}else this.eParentOfValue.removeAttribute("title");else o?t||this.beans.tooltipManager.unregisterTooltip(this):t&&this.beans.tooltipManager.registerTooltip(this)}},t.prototype.valuesAreEqual=function(e,t){var o=this.getComponentHolder(),i=o?o.equals:null;return i?i(e,t):e===t},t.prototype.getToolTip=function(){var e=this.getComponentHolder(),t=this.rowNode.data;if(e.tooltipField&&f._.exists(t))return f._.getValueUsingField(t,e.tooltipField,this.column.isTooltipFieldContainsDots());var o=e.tooltipValueGetter||e.tooltip;return o?o({api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),colDef:e,column:this.getColumn(),context:this.beans.gridOptionsWrapper.getContext(),value:this.value,valueFormatted:this.valueFormatted,rowIndex:this.cellPosition.rowIndex,node:this.rowNode,data:this.rowNode.data,$scope:this.scope}):null},t.prototype.getTooltipText=function(e){return void 0===e&&(e=!0),e?f._.escape(this.tooltip):this.tooltip},t.prototype.processCellClassRules=function(e,t){var o=this.getComponentHolder();this.beans.stylingService.processClassRules(o.cellClassRules,{value:this.value,data:this.rowNode.data,node:this.rowNode,colDef:o,rowIndex:this.cellPosition.rowIndex,api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),$scope:this.scope,context:this.beans.gridOptionsWrapper.getContext()},e,t)},t.prototype.postProcessCellClassRules=function(){var e=this;this.processCellClassRules((function(t){f._.addCssClass(e.getGui(),t)}),(function(t){f._.removeCssClass(e.getGui(),t)}))},t.prototype.preProcessCellClassRules=function(){var e=[];return this.processCellClassRules((function(t){e.push(t)}),(function(e){})),e},t.prototype.setUsingWrapper=function(){var e=this.getComponentHolder();if(this.rowNode.rowPinned)return this.usingWrapper=!1,this.includeSelectionComponent=!1,this.includeRowDraggingComponent=!1,void(this.includeDndSourceComponent=!1);var t="function"==typeof e.checkboxSelection,o="function"==typeof e.rowDrag,i="function"==typeof e.dndSource;this.includeSelectionComponent=t||!0===e.checkboxSelection,this.includeRowDraggingComponent=o||!0===e.rowDrag,this.includeDndSourceComponent=i||!0===e.dndSource,this.usingWrapper=this.includeRowDraggingComponent||this.includeSelectionComponent||this.includeDndSourceComponent},t.prototype.chooseCellRenderer=function(){var e=this.getComponentHolder();if(e.template||e.templateUrl)this.usingCellRenderer=!1;else{var o=this.createCellRendererParams(),i=this.beans.userComponentFactory.lookupComponentClassDef(e,"cellRenderer",o);this.beans.userComponentFactory.lookupComponentClassDef(e,"pinnedRowCellRenderer",o)&&this.rowNode.rowPinned?(this.cellRendererType=t.CELL_RENDERER_TYPE_PINNED,this.usingCellRenderer=!0):i?(this.cellRendererType=t.CELL_RENDERER_TYPE_NORMAL,this.usingCellRenderer=!0):this.usingCellRenderer=!1}},t.prototype.createCellRendererInstance=function(e){var o=this;if(void 0===e&&(e=!1),this.usingCellRenderer){var i=this.beans.gridOptionsWrapper.isAngularCompileRows(),r=this.beans.gridOptionsWrapper.isSuppressAnimationFrame();(i||r||this.autoHeightCell)&&(e=!1);var n=this.createCellRendererParams();this.cellRendererVersion++;var s=this.afterCellRendererCreated.bind(this,this.cellRendererVersion),a=this.cellRendererType===t.CELL_RENDERER_TYPE_NORMAL,l=function(){var e;(e=a?o.beans.userComponentFactory.newCellRenderer(o.getComponentHolder(),n):o.beans.userComponentFactory.newPinnedRowCellRenderer(o.getComponentHolder(),n))&&e.then(s)};e?this.beans.taskQueue.addP2Task(l):l()}},t.prototype.afterCellRendererCreated=function(e,t){this.isAlive()&&e===this.cellRendererVersion?(this.cellRenderer=t,this.cellRendererGui=this.cellRenderer.getGui(),f._.missing(this.cellRendererGui)||this.editingCell||this.eParentOfValue.appendChild(this.cellRendererGui)):t.destroy&&t.destroy()},t.prototype.createCellRendererParams=function(){var e=this;return{value:this.value,valueFormatted:this.valueFormatted,getValue:this.getValue.bind(this),setValue:function(t){e.beans.valueService.setValue(e.rowNode,e.column,t)},formatValue:this.formatValue.bind(this),data:this.rowNode.data,node:this.rowNode,colDef:this.getComponentHolder(),column:this.column,$scope:this.scope,rowIndex:this.cellPosition.rowIndex,api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),context:this.beans.gridOptionsWrapper.getContext(),refreshCell:this.refreshCell.bind(this),eGridCell:this.getGui(),eParentOfValue:this.eParentOfValue,addRowCompListener:this.rowComp?this.rowComp.addEventListener.bind(this.rowComp):null,addRenderedRowListener:function(t,o){console.warn("ag-Grid: since ag-Grid .v11, params.addRenderedRowListener() is now params.addRowCompListener()"),e.rowComp&&e.rowComp.addEventListener(t,o)}}},t.prototype.formatValue=function(e){var t=this.beans.valueFormatterService.formatValue(this.column,this.rowNode,this.scope,e);return null!=t?t:e},t.prototype.getValueToUse=function(){return null!==this.valueFormatted&&void 0!==this.valueFormatted?this.valueFormatted:this.value},t.prototype.getValueAndFormat=function(){this.value=this.getValue(),this.valueFormatted=this.beans.valueFormatterService.formatValue(this.column,this.rowNode,this.scope,this.value)},t.prototype.getValue=function(){var e=this.rowNode.leafGroup&&this.beans.columnController.isPivotMode(),t=this.rowNode.group&&this.rowNode.expanded&&!this.rowNode.footer&&!e,o=this.beans.gridOptionsWrapper.isGroupIncludeFooter(),i=this.beans.gridOptionsWrapper.isGroupSuppressBlankHeader(),r=t&&o&&!i;return this.beans.valueService.getValue(this.column,this.rowNode,!1,r)},t.prototype.onMouseEvent=function(e,t){if(!f._.isStopPropagationForAgGrid(t))switch(e){case"click":this.onCellClicked(t);break;case"mousedown":this.onMouseDown(t);break;case"dblclick":this.onCellDoubleClicked(t);break;case"mouseout":this.onMouseOut(t);break;case"mouseover":this.onMouseOver(t)}},t.prototype.dispatchCellContextMenuEvent=function(e){var t=this.getComponentHolder(),o=this.createEvent(e,l.Events.EVENT_CELL_CONTEXT_MENU);this.beans.eventService.dispatchEvent(o),t.onCellContextMenu&&window.setTimeout((function(){return t.onCellContextMenu(o)}),0)},t.prototype.createEvent=function(e,t){var o={node:this.rowNode,data:this.rowNode.data,value:this.value,column:this.column,colDef:this.getComponentHolder(),context:this.beans.gridOptionsWrapper.getContext(),api:this.beans.gridApi,columnApi:this.beans.columnApi,rowPinned:this.rowNode.rowPinned,event:e,type:t,rowIndex:this.rowNode.rowIndex};return this.scope&&(o.$scope=this.scope),o},t.prototype.onMouseOut=function(e){var t=this.createEvent(e,l.Events.EVENT_CELL_MOUSE_OUT);this.beans.eventService.dispatchEvent(t),this.beans.columnHoverService.clearMouseOver()},t.prototype.onMouseOver=function(e){var t=this.createEvent(e,l.Events.EVENT_CELL_MOUSE_OVER);this.beans.eventService.dispatchEvent(t),this.beans.columnHoverService.setMouseOver([this.column])},t.prototype.onCellDoubleClicked=function(e){var t=this.getComponentHolder(),o=this.createEvent(e,l.Events.EVENT_CELL_DOUBLE_CLICKED);this.beans.eventService.dispatchEvent(o),"function"==typeof t.onCellDoubleClicked&&window.setTimeout((function(){return t.onCellDoubleClicked(o)}),0),!this.beans.gridOptionsWrapper.isSingleClickEdit()&&!this.beans.gridOptionsWrapper.isSuppressClickEdit()&&this.startRowOrCellEdit()},t.prototype.startRowOrCellEdit=function(e,t){this.beans.gridOptionsWrapper.isFullRowEdit()?this.rowComp.startRowEditing(e,t,this):this.startEditingIfEnabled(e,t,!0)},t.prototype.isCellEditable=function(){return this.column.isCellEditable(this.rowNode)},t.prototype.startEditingIfEnabled=function(e,t,o){if(void 0===e&&(e=null),void 0===t&&(t=null),void 0===o&&(o=!1),this.isCellEditable()&&!this.editingCell){this.editingCell=!0,this.cellEditorVersion++;var i=this.afterCellEditorCreated.bind(this,this.cellEditorVersion),r=this.createCellEditorParams(e,t,o);this.createCellEditor(r).then(i),f._.missing(this.cellEditor)&&o&&this.focusCell(!0)}},t.prototype.createCellEditor=function(e){var t=this;return this.beans.userComponentFactory.newCellEditor(this.column.getColDef(),e).map((function(o){if(!(o.isPopup&&o.isPopup()))return o;t.beans.gridOptionsWrapper.isFullRowEdit()&&console.warn("ag-Grid: popup cellEditor does not work with fullRowEdit - you cannot use them both - either turn off fullRowEdit, or stop using popup editors.");var i=new h.PopupEditorWrapper(o);return t.beans.context.wireBean(i),i.init(e),i}))},t.prototype.afterCellEditorCreated=function(e,t){if(!(e!==this.cellEditorVersion)&&this.editingCell){if(t.isCancelBeforeStart&&t.isCancelBeforeStart())return t.destroy&&t.destroy(),void(this.editingCell=!1);if(!t.getGui)return console.warn("ag-Grid: cellEditor for column "+this.column.getId()+" is missing getGui() method"),t.render&&console.warn("ag-Grid: we found 'render' on the component, are you trying to set a React renderer but added it as colDef.cellEditor instead of colDef.cellEditorFmk?"),t.destroy&&t.destroy(),void(this.editingCell=!1);this.cellEditor=t,this.cellEditorInPopup=void 0!==t.isPopup&&t.isPopup(),this.setInlineEditingClass(),this.cellEditorInPopup?this.addPopupCellEditor():this.addInCellEditor(),t.afterGuiAttached&&t.afterGuiAttached();var o=this.createEvent(null,l.Events.EVENT_CELL_EDITING_STARTED);this.beans.eventService.dispatchEvent(o)}else t.destroy&&t.destroy()},t.prototype.addInCellEditor=function(){f._.clearElement(this.getGui()),this.cellEditor&&this.getGui().appendChild(this.cellEditor.getGui()),this.angular1Compile()},t.prototype.addPopupCellEditor=function(){var e=this,t=this.cellEditor?this.cellEditor.getGui():null;this.hideEditorPopup=this.beans.popupService.addAsModalPopup(t,!0,(function(){e.onPopupEditorClosed()})),this.beans.popupService.positionPopupOverComponent({column:this.column,rowNode:this.rowNode,type:"popupCellEditor",eventSource:this.getGui(),ePopup:t,keepWithinBounds:!0}),this.angular1Compile()},t.prototype.onPopupEditorClosed=function(){this.editingCell&&(this.stopRowOrCellEdit(),this.beans.focusedCellController.isCellFocused(this.cellPosition)&&this.focusCell(!0))},t.prototype.setInlineEditingClass=function(){var e=this.editingCell&&!this.cellEditorInPopup,t=this.editingCell&&this.cellEditorInPopup;f._.addOrRemoveCssClass(this.getGui(),"ag-cell-inline-editing",e),f._.addOrRemoveCssClass(this.getGui(),"ag-cell-not-inline-editing",!e),f._.addOrRemoveCssClass(this.getGui(),"ag-cell-popup-editing",t),f._.addOrRemoveCssClass(this.getGui().parentNode,"ag-row-inline-editing",e),f._.addOrRemoveCssClass(this.getGui().parentNode,"ag-row-not-inline-editing",!e)},t.prototype.createCellEditorParams=function(e,t,o){return{value:this.getValue(),keyPress:e,charPress:t,column:this.column,colDef:this.column.getColDef(),rowIndex:this.cellPosition.rowIndex,node:this.rowNode,data:this.rowNode.data,api:this.beans.gridOptionsWrapper.getApi(),cellStartedEdit:o,columnApi:this.beans.gridOptionsWrapper.getColumnApi(),context:this.beans.gridOptionsWrapper.getContext(),$scope:this.scope,onKeyDown:this.onKeyDown.bind(this),stopEditing:this.stopEditingAndFocus.bind(this),eGridCell:this.getGui(),parseValue:this.parseValue.bind(this),formatValue:this.formatValue.bind(this)}},t.prototype.stopEditingAndFocus=function(e){void 0===e&&(e=!1),this.stopRowOrCellEdit(),this.focusCell(!0),e||this.navigateAfterEdit()},t.prototype.parseValue=function(e){var t=this.getComponentHolder(),o={node:this.rowNode,data:this.rowNode.data,oldValue:this.value,newValue:e,colDef:t,column:this.column,api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),context:this.beans.gridOptionsWrapper.getContext()},i=t.valueParser;return f._.exists(i)?this.beans.expressionService.evaluate(i,o):e},t.prototype.focusCell=function(e){void 0===e&&(e=!1),this.beans.focusedCellController.setFocusedCell(this.cellPosition.rowIndex,this.column,this.rowNode.rowPinned,e)},t.prototype.setFocusInOnEditor=function(){this.editingCell&&(this.cellEditor&&this.cellEditor.focusIn?this.cellEditor.focusIn():this.focusCell(!0))},t.prototype.isEditing=function(){return this.editingCell},t.prototype.onKeyDown=function(e){var t=e.which||e.keyCode;switch(t){case a.Constants.KEY_ENTER:this.onEnterKeyDown();break;case a.Constants.KEY_F2:this.onF2KeyDown();break;case a.Constants.KEY_ESCAPE:this.onEscapeKeyDown();break;case a.Constants.KEY_TAB:this.onTabKeyDown(e);break;case a.Constants.KEY_BACKSPACE:case a.Constants.KEY_DELETE:this.onBackspaceOrDeleteKeyPressed(t);break;case a.Constants.KEY_DOWN:case a.Constants.KEY_UP:case a.Constants.KEY_RIGHT:case a.Constants.KEY_LEFT:this.onNavigationKeyPressed(e,t)}},t.prototype.setFocusOutOnEditor=function(){this.editingCell&&this.cellEditor&&this.cellEditor.focusOut&&this.cellEditor.focusOut()},t.prototype.onNavigationKeyPressed=function(e,t){this.editingCell||(e.shiftKey&&this.rangeSelectionEnabled?this.onShiftRangeSelect(t):this.beans.rowRenderer.navigateToNextCell(e,t,this.cellPosition,!0),e.preventDefault())},t.prototype.onShiftRangeSelect=function(e){var t=this.beans.rangeController.extendLatestRangeInDirection(e);t&&this.beans.rowRenderer.ensureCellVisible(t)},t.prototype.onTabKeyDown=function(e){this.beans.rowRenderer.onTabKeyDown(this,e)},t.prototype.onBackspaceOrDeleteKeyPressed=function(e){this.editingCell||this.startRowOrCellEdit(e)},t.prototype.onEnterKeyDown=function(){this.editingCell||this.rowComp.isEditing()?this.stopEditingAndFocus():this.beans.gridOptionsWrapper.isEnterMovesDown()?this.beans.rowRenderer.navigateToNextCell(null,a.Constants.KEY_DOWN,this.cellPosition,!1):this.startRowOrCellEdit(a.Constants.KEY_ENTER)},t.prototype.navigateAfterEdit=function(){this.beans.gridOptionsWrapper.isFullRowEdit()||this.beans.gridOptionsWrapper.isEnterMovesDownAfterEdit()&&this.beans.rowRenderer.navigateToNextCell(null,a.Constants.KEY_DOWN,this.cellPosition,!1)},t.prototype.onF2KeyDown=function(){this.editingCell||this.startRowOrCellEdit(a.Constants.KEY_F2)},t.prototype.onEscapeKeyDown=function(){this.editingCell&&(this.stopRowOrCellEdit(!0),this.focusCell(!0))},t.prototype.onKeyPress=function(e){if(!(f._.getTarget(e)!==this.getGui())&&!this.editingCell){var t=String.fromCharCode(e.charCode);" "===t?this.onSpaceKeyPressed(e):f._.isEventFromPrintableCharacter(e)&&(this.startRowOrCellEdit(null,t),e.preventDefault())}},t.prototype.onSpaceKeyPressed=function(e){if(!this.editingCell&&this.beans.gridOptionsWrapper.isRowSelection()){var t=this.rowNode.isSelected();this.rowNode.setSelected(!t)}e.preventDefault()},t.prototype.onMouseDown=function(e){var t=!1,o=e.button,i=e.ctrlKey,r=e.metaKey,n=e.shiftKey,s=e.target,a=this.beans,p=a.eventService,u=a.rangeController;if(u&&(u.isCellInAnyRange(this.getCellPosition())&&2===o))return;if(f._.isBrowserIE()&&s.classList.contains("ag-cell")&&(t=!0),!n||u&&!u.getCellRanges().length?this.focusCell(t):e.preventDefault(),!f._.isElementChildOfClass(s,"ag-selection-checkbox",3)){if(f._.isLeftClick(e)&&u){var c=this.cellPosition;if(n)u.extendLatestRangeToCell(c);else{var d=i||r;u.setRangeToCell(c,d)}}var h=this.createEvent(e,l.Events.EVENT_CELL_MOUSE_DOWN);p.dispatchEvent(h)}},t.prototype.isDoubleClickOnIPad=function(){if(!f._.isUserAgentIPad())return!1;var e=(new Date).getTime(),t=e-this.lastIPadMouseClickEvent<200;return this.lastIPadMouseClickEvent=e,t},t.prototype.onCellClicked=function(e){if(this.isDoubleClickOnIPad())return this.onCellDoubleClicked(e),void e.preventDefault();var t=this.createEvent(e,l.Events.EVENT_CELL_CLICKED);this.beans.eventService.dispatchEvent(t);var o=this.getComponentHolder();o.onCellClicked&&window.setTimeout((function(){return o.onCellClicked(t)}),0),(this.beans.gridOptionsWrapper.isSingleClickEdit()||o.singleClickEdit)&&!this.beans.gridOptionsWrapper.isSuppressClickEdit()&&this.startRowOrCellEdit(),f._.doIeFocusHack(this.getGui())},t.prototype.createGridCellVo=function(){this.cellPosition={rowIndex:this.rowNode.rowIndex,rowPinned:this.rowNode.rowPinned,column:this.column}},t.prototype.getCellPosition=function(){return this.cellPosition},t.prototype.getParentRow=function(){return this.eParentRow},t.prototype.setParentRow=function(e){this.eParentRow=e},t.prototype.getColumn=function(){return this.column},t.prototype.getComponentHolder=function(){return this.column.getColDef()},t.prototype.detach=function(){this.eParentRow.removeChild(this.getGui())},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.cellEditor&&this.cellEditor.destroy&&(this.cellEditor.destroy(),this.cellEditor=null),this.cellRenderer&&this.cellRenderer.destroy&&(this.cellRenderer.destroy(),this.cellRenderer=null),this.selectionHandle&&this.selectionHandle.destroy()},t.prototype.onLeftChanged=function(){var e=this.modifyLeftForPrintLayout(this.getCellLeft());this.getGui().style.left=e+"px"},t.prototype.modifyLeftForPrintLayout=function(e){return this.printLayout?this.column.getPinned()===s.Column.PINNED_LEFT?e:this.column.getPinned()===s.Column.PINNED_RIGHT?this.beans.columnController.getPinnedLeftContainerWidth()+this.beans.columnController.getBodyContainerWidth()+e:this.beans.columnController.getPinnedLeftContainerWidth()+e:e},t.prototype.onWidthChanged=function(){var e=this.getCellWidth();this.getGui().style.width=e+"px"},t.prototype.getRangeBorders=function(){var e,t,o=this,i=this.beans.gridOptionsWrapper.isEnableRtl(),r=!1,n=!1,s=!1,a=!1,l=this.cellPosition.column,p=this.beans.rangeController;i?(e=this.beans.columnController.getDisplayedColAfter(l),t=this.beans.columnController.getDisplayedColBefore(l)):(e=this.beans.columnController.getDisplayedColBefore(l),t=this.beans.columnController.getDisplayedColAfter(l));var u=p.getCellRanges().filter((function(e){return p.isCellInSpecificRange(o.cellPosition,e)}));e||(a=!0),t||(n=!0);for(var c=0;c<u.length&&!(r&&n&&s&&a);c++){var d=u[c],h=p.getRangeStartRow(d),f=p.getRangeEndRow(d);!r&&this.beans.rowPositionUtils.sameRow(h,this.cellPosition)&&(r=!0),!s&&this.beans.rowPositionUtils.sameRow(f,this.cellPosition)&&(s=!0),!a&&d.columns.indexOf(e)<0&&(a=!0),!n&&d.columns.indexOf(t)<0&&(n=!0)}return{top:r,right:n,bottom:s,left:a}},t.prototype.getInitialRangeClasses=function(){var e=[];if(!this.rangeSelectionEnabled||!this.rangeCount)return e;var t=this.beans.rangeController;e.push("ag-cell-range-selected"),this.hasChartRange&&e.push("ag-cell-range-chart");var o=Math.min(this.rangeCount,4);if(e.push("ag-cell-range-selected-"+o),1!==this.rangeCount||t.isMoreThanOneCell()||e.push("ag-cell-range-single-cell"),this.rangeCount>0){var i=this.getRangeBorders();i.top&&e.push("ag-cell-range-top"),i.right&&e.push("ag-cell-range-right"),i.bottom&&e.push("ag-cell-range-bottom"),i.left&&e.push("ag-cell-range-left")}return this.selectionHandle&&e.push("ag-cell-range-handle"),e},t.prototype.onRowIndexChanged=function(){this.createGridCellVo(),this.onCellFocused(),this.onRangeSelectionChanged()},t.prototype.onRangeSelectionChanged=function(){if(this.beans.enterprise){var e=this.beans,t=this.cellPosition,o=this.rangeCount,i=e.rangeController,r=i.getCellRangeCount(t),n=this.getGui();o!==r&&(f._.addOrRemoveCssClass(n,"ag-cell-range-selected",0!==r),f._.addOrRemoveCssClass(n,"ag-cell-range-selected-1",1===r),f._.addOrRemoveCssClass(n,"ag-cell-range-selected-2",2===r),f._.addOrRemoveCssClass(n,"ag-cell-range-selected-3",3===r),f._.addOrRemoveCssClass(n,"ag-cell-range-selected-4",r>=4),this.rangeCount=r);var s=this.rangeCount&&i.getCellRanges().every((function(e){return f._.exists(e.type)}));this.hasChartRange!==s&&(f._.addOrRemoveCssClass(n,"ag-cell-range-chart",s),this.hasChartRange=s),this.updateRangeBorders();var a=1===this.rangeCount&&!i.isMoreThanOneCell();f._.addOrRemoveCssClass(n,"ag-cell-range-single-cell",a),this.refreshHandle(),f._.addOrRemoveCssClass(n,"ag-cell-range-handle",!!this.selectionHandle)}},t.prototype.shouldHaveSelectionHandle=function(){var e=this.beans,t=e.gridOptionsWrapper,o=e.rangeController,i=this.getGui(),r=o.getCellRanges(),n=r.length;if(!n)return!1;var s=f._.last(r),a=r[0].type===c.CellRangeType.DIMENSION,l=(t.isEnableFillHandle()||t.isEnableRangeHandle()||this.hasChartRange&&!a)&&1===n;if(!l&&this.hasChartRange){var p=this.getCellPosition();l=a&&2===n&&o.isCellInSpecificRange(this.getCellPosition(),s);var u=a&&o.isCellInSpecificRange(p,r[0]);f._.addOrRemoveCssClass(i,"ag-cell-range-chart-category",u)}return this.rangeCount&&l&&null!=s.endRow&&this.beans.rangeController.isContiguousRange(s)&&(f._.containsClass(i,"ag-cell-range-single-cell")||f._.containsClass(i,"ag-cell-range-bottom")&&f._.containsClass(i,"ag-cell-range-right"))},t.prototype.addSelectionHandle=function(){var e=this.beans,t=e.gridOptionsWrapper,o=e.context,i=e.rangeController,r=f._.last(i.getCellRanges()).type,n=t.isEnableFillHandle()&&f._.missing(r)?"fill":"range";this.selectionHandle&&this.selectionHandle.getType()!==n&&(this.selectionHandle.destroy(),this.selectionHandle=void 0),this.selectionHandle||(this.selectionHandle=o.createComponentFromElement(document.createElement("ag-"+n+"-handle"))),this.selectionHandle.refresh(this)},t.prototype.updateRangeBordersIfRangeCount=function(){this.rangeCount>0&&(this.updateRangeBorders(),this.refreshHandle())},t.prototype.refreshHandle=function(){var e=this.shouldHaveSelectionHandle();this.selectionHandle&&!e&&(this.selectionHandle.destroy(),this.selectionHandle=null),e&&this.addSelectionHandle()},t.prototype.updateRangeBorders=function(){var e=this.getRangeBorders(),t=1===this.rangeCount&&!this.beans.rangeController.isMoreThanOneCell(),o=!t&&e.top,i=!t&&e.right,r=!t&&e.bottom,n=!t&&e.left,s=this.getGui();f._.addOrRemoveCssClass(s,"ag-cell-range-top",o),f._.addOrRemoveCssClass(s,"ag-cell-range-right",i),f._.addOrRemoveCssClass(s,"ag-cell-range-bottom",r),f._.addOrRemoveCssClass(s,"ag-cell-range-left",n)},t.prototype.onFirstRightPinnedChanged=function(){var e=this.column.isFirstRightPinned();this.firstRightPinned!==e&&(this.firstRightPinned=e,f._.addOrRemoveCssClass(this.getGui(),"ag-cell-first-right-pinned",e))},t.prototype.onLastLeftPinnedChanged=function(){var e=this.column.isLastLeftPinned();this.lastLeftPinned!==e&&(this.lastLeftPinned=e,f._.addOrRemoveCssClass(this.getGui(),"ag-cell-last-left-pinned",e))},t.prototype.populateTemplate=function(){this.usingWrapper?(this.eParentOfValue=this.getRefElement("eCellValue"),this.eCellWrapper=this.getRefElement("eCellWrapper"),this.includeRowDraggingComponent&&this.addRowDragging(),this.includeDndSourceComponent&&this.addDndSource(),this.includeSelectionComponent&&this.addSelectionCheckbox()):this.eParentOfValue=this.getGui()},t.prototype.getFrameworkOverrides=function(){return this.beans.frameworkOverrides},t.prototype.addRowDragging=function(){var e=this.beans.gridOptionsWrapper.isPagination(),t=this.beans.gridOptionsWrapper.isRowDragManaged(),o=this.beans.gridOptionsWrapper.isRowModelDefault();if(t){if(!o)return void f._.doOnce((function(){return console.warn("ag-Grid: managed row dragging is only allowed in the Client Side Row Model")}),"CellComp.addRowDragging");if(e)return void f._.doOnce((function(){return console.warn("ag-Grid: managed row dragging is not possible when doing pagination")}),"CellComp.addRowDragging")}var i=new d.RowDragComp(this.rowNode,this.column,this.getValueToUse(),this.beans);this.addFeature(this.beans.context,i),this.eCellWrapper.insertBefore(i.getGui(),this.eParentOfValue)},t.prototype.addDndSource=function(){var e=new g.DndSourceComp(this.rowNode,this.column,this.getValueToUse(),this.beans,this.getGui());this.addFeature(this.beans.context,e),this.eCellWrapper.insertBefore(e.getGui(),this.eParentOfValue)},t.prototype.addSelectionCheckbox=function(){var e=new u.CheckboxSelectionComponent;this.beans.context.wireBean(e);var t=this.getComponentHolder().checkboxSelection;t="function"==typeof t?t:null,e.init({rowNode:this.rowNode,column:this.column,visibleFunc:t}),this.addDestroyFunc((function(){return e.destroy()})),this.eCellWrapper.insertBefore(e.getGui(),this.eParentOfValue)},t.prototype.addDomData=function(){var e=this,o=this.getGui();this.beans.gridOptionsWrapper.setDomData(o,t.DOM_DATA_KEY_CELL_COMP,this),this.addDestroyFunc((function(){return e.beans.gridOptionsWrapper.setDomData(o,t.DOM_DATA_KEY_CELL_COMP,null)}))},t.prototype.onCellFocused=function(e){var t=this.beans.focusedCellController.isCellFocused(this.cellPosition);t!==this.cellFocused&&(!this.beans.gridOptionsWrapper.isSuppressCellSelection()&&f._.addOrRemoveCssClass(this.getGui(),"ag-cell-focus",t),this.cellFocused=t);if(t&&e&&e.forceBrowserFocus){var o=this.getGui();o.focus(),f._.doIeFocusHack(o)}var i=this.beans.gridOptionsWrapper.isFullRowEdit();t||i||!this.editingCell||this.stopRowOrCellEdit()},t.prototype.stopRowOrCellEdit=function(e){void 0===e&&(e=!1),this.beans.gridOptionsWrapper.isFullRowEdit()?this.rowComp.stopRowEditing(e):this.stopEditing(e)},t.prototype.stopEditing=function(e){if(void 0===e&&(e=!1),this.editingCell)if(this.cellEditor){var t,o=!1;if(!e)this.cellEditor.isCancelAfterEnd&&this.cellEditor.isCancelAfterEnd()||(t=this.cellEditor.getValue(),o=!0);if(this.editingCell=!1,this.cellEditor.destroy&&this.cellEditor.destroy(),this.cellEditor=null,this.cellEditorInPopup&&this.hideEditorPopup)this.hideEditorPopup(),this.hideEditorPopup=null;else if(f._.clearElement(this.getGui()),this.usingWrapper)this.getGui().appendChild(this.eCellWrapper);else if(this.cellRenderer){var i=this.cellRendererGui;i&&this.getGui().appendChild(i)}this.setInlineEditingClass(),o&&(this.suppressRefreshCell=!0,this.rowNode.setDataValue(this.column,t),this.suppressRefreshCell=!1),this.refreshCell({forceRefresh:!0,suppressFlash:!0});var r=this.createEvent(null,l.Events.EVENT_CELL_EDITING_STOPPED);this.beans.eventService.dispatchEvent(r)}else this.editingCell=!1},t.DOM_DATA_KEY_CELL_COMP="cellComp",t.CELL_RENDERER_TYPE_NORMAL="cellRenderer",t.CELL_RENDERER_TYPE_PINNED="pinnedRowCellRenderer",t}(p.Component);t.CellComp=y},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/var i=this&&this.__decorate||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},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),s=o(2),a={"ag-theme-material":{headerHeight:56,virtualItemHeight:40,rowHeight:48},"ag-theme-classic":{headerHeight:25,virtualItemHeight:20,rowHeight:25},"ag-theme-balham":{headerHeight:32,virtualItemHeight:28,rowHeight:28}},l={headerHeight:["ag-header-row"],virtualItemHeight:["ag-virtual-list-container","ag-virtual-list-item"],rowHeight:["ag-row"]},p={},u=function(){function e(){}return e.prototype.getSassVariable=function(e,t){var o="ag-theme-"+(e.match("material")?"material":e.match("balham")?"balham":"classic"),i=a[o][t],r=0;if(p[e]||(p[e]={}),p[e][t])return p[e][t];if(l[t]){var n=l[t],u=document.createElement("div"),c=n.reduce((function(t,o,i){0===i&&s._.addCssClass(t,e);var r=document.createElement("div");return s._.addCssClass(r,o),t.appendChild(r),r}),u);document.body&&(document.body.appendChild(u),r=parseInt(window.getComputedStyle(c).height,10),document.body.removeChild(u))}return p[e][t]=r||i,p[e][t]},e.prototype.isThemeDark=function(){var e=this.getTheme().theme;return!!e&&e.indexOf("dark")>=0},e.prototype.getTheme=function(){for(var e,t=/\bag-(fresh|dark|blue|material|bootstrap|(?:theme-([\w\-]*)))\b/,o=this.eGridDiv;o&&!(e=t.exec(o.className));)o=o.parentElement;if(!e)return{};var i=e[0];if(void 0===e[2]){var r=i.replace("ag-","ag-theme-");s._.doOnce((function(){return console.warn("ag-Grid: As of v19 old theme are no longer provided. Please replace "+i+" with "+r+".")}),"using-old-theme")}return{theme:i,el:o}},i([n.Autowired("eGridDiv"),r("design:type",HTMLElement)],e.prototype,"eGridDiv",void 0),e=i([n.Bean("environment")],e)}();t.Environment=u},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/Object.defineProperty(t,"__esModule",{value:!0});var i=o(4),r=o(2),n=function(){function e(e,t){var o=this;void 0===t&&(t=!1),this.destroyFuncs=[],this.touching=!1,this.eventService=new i.EventService,this.eElement=e,this.preventMouseClick=t;var r=this.onTouchStart.bind(this),n=this.onTouchMove.bind(this),s=this.onTouchEnd.bind(this);this.eElement.addEventListener("touchstart",r,{passive:!0}),this.eElement.addEventListener("touchmove",n,{passive:!0}),this.eElement.addEventListener("touchend",s,{passive:!1}),this.destroyFuncs.push((function(){o.eElement.removeEventListener("touchstart",r,{passive:!0}),o.eElement.removeEventListener("touchmove",n,{passive:!0}),o.eElement.removeEventListener("touchend",s,{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)!r._.areEventsNear(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.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}();t.TouchListener=n},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/var i=this&&this.__decorate||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},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),s=o(3),a=o(25),l=function(){function e(){}return e.prototype.formatValue=function(e,t,o,i){var r,n=e.getColDef(),s=null;if(r=t&&t.rowPinned&&n.pinnedRowValueFormatter?n.pinnedRowValueFormatter:n.valueFormatter){var a={value:i,node:t,data:t?t.data:null,colDef:e.getColDef(),column:e,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()};a.$scope=o,s=this.expressionService.evaluate(r,a)}else if(n.refData)return n.refData[i]||"";return null==s&&Array.isArray(i)&&(s=i.join(", ")),s},i([n.Autowired("gridOptionsWrapper"),r("design:type",s.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([n.Autowired("expressionService"),r("design:type",a.ExpressionService)],e.prototype,"expressionService",void 0),e=i([n.Bean("valueFormatterService")],e)}();t.ValueFormatterService=l},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/var i=this&&this.__decorate||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},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),s=o(0),a=o(3),l=o(2),p=function(){function e(){this.gridInstanceId=t.gridInstanceSequence.next()}var t;return t=e,e.prototype.init=function(){this.stampDomElementWithGridInstance()},e.prototype.stampDomElementWithGridInstance=function(){this.eGridDiv[t.GRID_DOM_KEY]=this.gridInstanceId},e.prototype.getRenderedCellForEvent=function(e){return l._.getCellCompForEvent(this.gridOptionsWrapper,e)},e.prototype.isEventFromThisGrid=function(e){for(var o=l._.getEventPath(e),i=0;i<o.length;i++){var r=o[i][t.GRID_DOM_KEY];if(l._.exists(r))return r===this.gridInstanceId}return!1},e.prototype.getCellPositionForEvent=function(e){var t=this.getRenderedCellForEvent(e);return t?t.getCellPosition():null},e.gridInstanceSequence=new l.NumberSequence,e.GRID_DOM_KEY="__ag_grid_instance",i([s.Autowired("gridOptionsWrapper"),r("design:type",a.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([s.Autowired("eGridDiv"),r("design:type",HTMLElement)],e.prototype,"eGridDiv",void 0),i([n.PostConstruct,r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],e.prototype,"init",null),e=t=i([n.Bean("mouseEventService")],e)}();t.MouseEventService=p},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),n=this&&this.__decorate||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},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(4),l=o(0),p=o(6),u=o(15),c=o(10),d=o(9),h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.setMouseOver=function(e){this.selectedColumns=e;var t={type:p.Events.EVENT_COLUMN_HOVER_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(t)},t.prototype.clearMouseOver=function(){this.selectedColumns=null;var e={type:p.Events.EVENT_COLUMN_HOVER_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(e)},t.prototype.isHovered=function(e){return this.selectedColumns&&this.selectedColumns.indexOf(e)>=0},n([l.Autowired("eventService"),s("design:type",a.EventService)],t.prototype,"eventService",void 0),n([l.Autowired("columnApi"),s("design:type",c.ColumnApi)],t.prototype,"columnApi",void 0),n([l.Autowired("gridApi"),s("design:type",d.GridApi)],t.prototype,"gridApi",void 0),t=n([l.Bean("columnHoverService")],t)}(u.BeanStub);t.ColumnHoverService=h},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),n=this&&this.__decorate||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},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(11),l=o(39),p=o(2),u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.config={},t.TEMPLATE='<div class="ag-input-field" role="presentation">\n <label ref="eLabel"></label>\n <div ref="eWrapper" class="ag-wrapper ag-input-wrapper" role="presentation">\n <%displayField% ref="eInput"></%displayField%>\n </div>\n </div>',t}return r(t,e),t.prototype.postConstruct=function(){e.prototype.postConstruct.call(this),this.setInputType(),p._.addCssClass(this.getGui(),this.className);var t=this.config,o=t.width,i=t.value;null!=o&&this.setWidth(o),null!=i&&this.setValue(i),this.addInputListeners()},t.prototype.addInputListeners=function(){var e=this;this.addDestroyableEventListener(this.eInput,"input",(function(t){var o=t.target.value;e.setValue(o)}))},t.prototype.setInputType=function(){this.inputType&&this.eInput.setAttribute("type",this.inputType)},t.prototype.getInputElement=function(){return this.eInput},t.prototype.setInputWidth=function(e){return p._.setElementWidth(this.eWrapper,e),this},t.prototype.setInputName=function(e){return this.getInputElement().setAttribute("name",e),this},n([a.RefSelector("eLabel"),s("design:type",HTMLElement)],t.prototype,"eLabel",void 0),n([a.RefSelector("eWrapper"),s("design:type",HTMLElement)],t.prototype,"eWrapper",void 0),n([a.RefSelector("eInput"),s("design:type",Object)],t.prototype,"eInput",void 0),t}(l.AgAbstractField);t.AgAbstractInputField=u},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/var i=this&&this.__decorate||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},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),s=o(4),a=o(6),l=o(5),p=o(10),u=o(9),c=o(3),d=function(){function e(){}return e.prototype.setScrollsVisible=function(e){if(this.horizontalScrollShowing!==e.horizontalScrollShowing||this.verticalScrollShowing!==e.verticalScrollShowing){this.horizontalScrollShowing=e.horizontalScrollShowing,this.verticalScrollShowing=e.verticalScrollShowing;var t={type:a.Events.EVENT_SCROLL_VISIBILITY_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(t)}},e.prototype.isHorizontalScrollShowing=function(){return this.horizontalScrollShowing},e.prototype.isVerticalScrollShowing=function(){return this.verticalScrollShowing},i([n.Autowired("eventService"),r("design:type",s.EventService)],e.prototype,"eventService",void 0),i([n.Autowired("columnController"),r("design:type",l.ColumnController)],e.prototype,"columnController",void 0),i([n.Autowired("columnApi"),r("design:type",p.ColumnApi)],e.prototype,"columnApi",void 0),i([n.Autowired("gridApi"),r("design:type",u.GridApi)],e.prototype,"gridApi",void 0),i([n.Autowired("gridOptionsWrapper"),r("design:type",c.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),e=i([n.Bean("scrollVisibleService")],e)}();t.ScrollVisibleService=d},function(e,t,o){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),n=this&&this.__decorate||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},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(1),l=o(290),p=o(21),u=function(e){function t(t){var o=e.call(this)||this;return o.dimensionColState=[],o.valueColState=[],o.initialising=!0,o.detached=!1,o.columnNames={},o.pivotChart=t.pivotChart,o.chartType=t.chartType,o.aggFunc=t.aggFunc,o.cellRanges=t.cellRanges,o.palettes=t.palettes,o.activePalette=t.activePalette,o.suppressChartRanges=t.suppressChartRanges,o.chartId=o.generateId(),o}return r(t,e),t.prototype.init=function(){this.datasource=new l.ChartDatasource,this.getContext().wireBean(this.datasource),this.referenceCellRange=this.cellRanges[0]},t.prototype.updateData=function(){var e=this.getRowIndexes(),t=e.startRow,o=e.endRow,i=this.getSelectedDimension(),r=this.getSelectedValueCols();this.grouping=this.isGrouping();var n={aggFunc:this.aggFunc,dimensionCols:[i],grouping:this.grouping,pivoting:this.isPivotActive(),multiCategories:this.isMultiCategoryChart(),valueCols:r,startRow:t,endRow:o},s=this.datasource.getData(n);this.chartData=s.data,this.columnNames=s.columnNames},t.prototype.resetColumnState=function(){var e=this,o=this.getAllChartColumns(),i=o.dimensionCols,r=o.valueCols,n=this.pivotChart?this.columnController.getAllDisplayedColumns():this.getAllColumnsFromRanges();this.valueColState=r.map((function(t){return{column:t,colId:t.getColId(),displayName:e.getColDisplayName(t),selected:n.indexOf(t)>-1}})),this.dimensionColState=i.map((function(t){return{column:t,colId:t.getColId(),displayName:e.getColDisplayName(t),selected:!1}}));var s=i.filter((function(e){return n.indexOf(e)>-1}));if(s.length>0){var a=s[0].getColId();this.dimensionColState.forEach((function(e){return e.selected=e.colId===a}))}var l={colId:t.DEFAULT_CATEGORY,displayName:"(None)",selected:0===s.length};this.dimensionColState.unshift(l)},t.prototype.updateColumnState=function(e){var t=function(t){return t.colId===e.colId},o=this.dimensionColState.filter(t).length>0,i=this.valueColState.filter(t).length>0;o?this.dimensionColState.forEach((function(e){return e.selected=t(e)})):i&&this.valueColState.forEach((function(o){return o.selected=t(o)?e.selected:o.selected}))},t.prototype.updateCellRanges=function(e){var o=this.getAllChartColumns(),i=o.dimensionCols,r=o.valueCols,n=a._.last(this.cellRanges);if(n&&(this.referenceCellRange=n,e)){var s=n.columns[0]===e.column;this.referenceCellRange.startColumn=s?n.columns[1]:n.columns[0]}var l=this.getAllColumnsFromRanges();this.cellRanges=[];var p=i.filter((function(e){return l.indexOf(e)>-1}));if(this.initialising&&(p.length>0&&this.addRange(a.CellRangeType.DIMENSION,[p[0]]),this.initialising=!1),e&&i.indexOf(e.column)>-1)e.colId!==t.DEFAULT_CATEGORY&&this.addRange(a.CellRangeType.DIMENSION,[e.column]);else{var u=this.dimensionColState.filter((function(e){return e.selected}))[0];u&&u.colId!==t.DEFAULT_CATEGORY&&this.addRange(a.CellRangeType.DIMENSION,[u.column])}var c=r.filter((function(e){return l.indexOf(e)>-1}));e&&r.indexOf(e.column)>-1&&(e.selected?(c.push(e.column),c=this.getColumnInDisplayOrder(r,c)):c=c.filter((function(t){return t.getColId()!==e.colId}))),c.length>0&&this.addRange(a.CellRangeType.VALUE,c)},t.prototype.getData=function(){if(this.grouping&&this.isMultiCategoryChart())return this.chartData;var e=this.getSelectedDimension().colId;return this.chartData.map((function(t,o){var i=t[e]?t[e].toString():"";return t[e]={toString:function(){return i},id:o},t}))},t.prototype.setChartType=function(e){var t=this.isMultiCategoryChart();this.chartType=e,t!==this.isMultiCategoryChart()&&this.updateData()},t.prototype.isGrouping=function(){var e=this.gridOptionsWrapper.isTreeData(),t=e?null:this.columnController.getRowGroupColumns(),o=e||t&&t.length>0,i=this.columnController.getGroupDisplayColumns(),r=this.getSelectedDimension().colId,n=i.map((function(e){return e.getColId()})).some((function(e){return e===r}));return o&&n},t.prototype.isPivotActive=function(){return this.columnController.isPivotActive()},t.prototype.isPivotMode=function(){return this.columnController.isPivotMode()},t.prototype.isPivotChart=function(){return this.pivotChart},t.prototype.setChartProxy=function(e){this.chartProxy=e},t.prototype.getChartProxy=function(){return this.chartProxy},t.prototype.getChartId=function(){return this.chartId},t.prototype.getValueColState=function(){return this.valueColState.map(this.displayNameMapper.bind(this))},t.prototype.getDimensionColState=function(){return this.dimensionColState},t.prototype.getCellRanges=function(){return this.cellRanges},t.prototype.getChartType=function(){return this.chartType},t.prototype.setActivePalette=function(e){this.activePalette=e},t.prototype.getActivePalette=function(){return this.activePalette},t.prototype.getPalettes=function(){return this.palettes},t.prototype.isSuppressChartRanges=function(){return this.suppressChartRanges},t.prototype.isDetached=function(){return this.detached},t.prototype.toggleDetached=function(){this.detached=!this.detached},t.prototype.getSelectedValueColState=function(){return this.getValueColState().filter((function(e){return e.selected}))},t.prototype.getSelectedValueCols=function(){return this.valueColState.filter((function(e){return e.selected})).map((function(e){return e.column}))},t.prototype.getSelectedDimension=function(){return this.dimensionColState.filter((function(e){return e.selected}))[0]},t.prototype.getColumnInDisplayOrder=function(e,t){var o=[];return e.forEach((function(e){t.indexOf(e)>-1&&o.push(e)})),o},t.prototype.addRange=function(e,t){var o={id:this.chartId,startRow:this.referenceCellRange.startRow,endRow:this.referenceCellRange.endRow,columns:t,startColumn:this.referenceCellRange.startColumn,type:e};e===a.CellRangeType.DIMENSION?this.cellRanges.unshift(o):this.cellRanges.push(o)},t.prototype.getAllColumnsFromRanges=function(){return a._.flatten(this.cellRanges.map((function(e){return e.columns})))},t.prototype.getColDisplayName=function(e){return this.columnController.getDisplayNameForColumn(e,"chart")},t.prototype.getRowIndexes=function(){var e=0,t=0,o=a._.last(this.cellRanges);return o&&(e=this.rangeController.getRangeStartRow(o).rowIndex,t=this.rangeController.getRangeEndRow(o).rowIndex),{startRow:e,endRow:t}},t.prototype.getAllChartColumns=function(){var e=this,t=this.columnController.getAllDisplayedColumns(),o=[],i=[];return t.forEach((function(t){var r=t.getColDef(),n=r.chartDataType;if(n){var s=!0;if("category"===n?o.push(t):"series"===n?i.push(t):"excluded"===n||(console.warn("ag-Grid: unexpected chartDataType value '"+n+"' supplied, instead use 'category', 'series' or 'excluded'"),s=!1),s)return}"ag-Grid-AutoColumn"!==r.colId?t.isPrimary()?e.isNumberCol(t.getColId())?i.push(t):o.push(t):i.push(t):o.push(t)})),{dimensionCols:o,valueCols:i}},t.prototype.isNumberCol=function(e){if("ag-Grid-AutoColumn"===e)return!1;var t=this.rowRenderer.getRowNode({rowIndex:0,rowPinned:void 0}),o=t?t.data:null;return"number"==typeof(t&&t.group?this.extractLeafData(t,e):o?o[e]:null)},t.prototype.extractLeafData=function(e,t){for(var o=e.allLeafChildren.map((function(e){return e.data})).map((function(e){return e[t]})),i=0;i<o.length;i++)if(null!==o[i])return o[i];return null},t.prototype.displayNameMapper=function(e){return this.columnNames[e.colId]?e.displayName=this.columnNames[e.colId].join(" - "):e.displayName=this.getColDisplayName(e.column),e},t.prototype.isMultiCategoryChart=function(){return[a.ChartType.Pie,a.ChartType.Doughnut,a.ChartType.Scatter,a.ChartType.Bubble].indexOf(this.chartType)<0},t.prototype.generateId=function(){return"id-"+Math.random().toString(36).substr(2,16)},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.datasource&&this.datasource.destroy()},t.DEFAULT_CATEGORY="AG-GRID-DEFAULT-CATEGORY",n([a.Autowired("columnController"),s("design:type",a.ColumnController)],t.prototype,"columnController",void 0),n([a.Autowired("gridOptionsWrapper"),s("design:type",a.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),n([a.Autowired("rangeController"),s("design:type",p.RangeController)],t.prototype,"rangeController",void 0),n([a.Autowired("rowRenderer"),s("design:type",a.RowRenderer)],t.prototype,"rowRenderer",void 0),n([a.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"init",null),t}(a.BeanStub);t.ChartModel=u},function(e,t,o){"use strict";var i=this&&this.__decorate||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},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var n=o(1),s=o(69),a=o(40),l=function(){function e(){}return e.prototype.execute=function(e){if(n._.exists(this.gridOptionsWrapper.getNodeChildDetailsFunc()))return null;var t=n._.missingOrEmpty(this.columnController.getValueColumns()),o=!this.gridOptionsWrapper.getGroupRowAggNodesFunc(),i=e.changedPath&&e.changedPath.isActive();if(!(t&&o&&i)){var r=this.createAggDetails(e);this.recursivelyCreateAggData(r)}},e.prototype.createAggDetails=function(e){var t=this.columnController.isPivotActive(),o=this.columnController.getValueColumns(),i=t?this.columnController.getPivotColumns():[];return{changedPath:e.changedPath,valueColumns:o,pivotColumns:i}},e.prototype.recursivelyCreateAggData=function(e){var t=this;e.changedPath.forEachChangedNodeDepthFirst((function(o){if(!o.hasChildren())o.aggData&&o.setAggData(null);else{if(-1===o.level){var i=!t.columnController.isPivotMode();if(t.gridOptionsWrapper.isSuppressAggAtRootLevel()&&i)return}t.aggregateRowNode(o,e)}}),!0)},e.prototype.aggregateRowNode=function(e,t){var o,i=0===t.valueColumns.length,r=0===t.pivotColumns.length,n=this.gridOptionsWrapper.getGroupRowAggNodesFunc();o=n?n(e.childrenAfterFilter):i?null:r?this.aggregateRowNodeUsingValuesOnly(e,t):this.aggregateRowNodeUsingValuesAndPivot(e),e.setAggData(o),e.sibling&&e.sibling.setAggData(o)},e.prototype.aggregateRowNodeUsingValuesAndPivot=function(e){var t=this,o={},i=this.pivotStage.getPivotColumnDefs();return i.filter((function(e){return!n._.exists(e.pivotTotalColumnIds)})).forEach((function(i){var r,n=i.pivotKeys||[],s=i.pivotValueColumn,a=i.colId;r=e.leafGroup?t.getValuesFromMappedSet(e.childrenMapped,n,s):t.getValuesPivotNonLeaf(e,a),o[a]=t.aggregateValues(r,s.getAggFunc())})),i.filter((function(e){return n._.exists(e.pivotTotalColumnIds)})).forEach((function(e){var i=[],r=e.pivotValueColumn,n=e.pivotTotalColumnIds,s=e.colId;n&&n.length&&(n.forEach((function(e){i.push(o[e])})),o[s]=t.aggregateValues(i,r.getAggFunc()))})),o},e.prototype.aggregateRowNodeUsingValuesOnly=function(e,t){var o=this,i={},r=t.changedPath.isActive()?t.changedPath.getValueColumnsForNode(e,t.valueColumns):t.valueColumns,n=t.changedPath.isActive()?t.changedPath.getNotValueColumnsForNode(e,t.valueColumns):null,s=this.getValuesNormal(e,r),a=e.aggData;return r.forEach((function(e,t){i[e.getId()]=o.aggregateValues(s[t],e.getAggFunc())})),n&&a&&n.forEach((function(e){i[e.getId()]=a[e.getId()]})),i},e.prototype.getValuesPivotNonLeaf=function(e,t){var o=[];return e.childrenAfterFilter.forEach((function(e){var i=e.aggData[t];o.push(i)})),o},e.prototype.getValuesFromMappedSet=function(e,t,o){var i=this,r=e;if(t.forEach((function(e){return r=r?r[e]:null})),!r)return[];var n=[];return r.forEach((function(e){var t=i.valueService.getValue(o,e);n.push(t)})),n},e.prototype.getValuesNormal=function(e,t){var o=[];t.forEach((function(){return o.push([])}));for(var i=t.length,r=e.childrenAfterFilter.length,n=0;n<r;n++)for(var s=e.childrenAfterFilter[n],a=0;a<i;a++){var l=t[a],p=this.valueService.getValue(l,s);o[a].push(p)}return o},e.prototype.aggregateValues=function(e,t){var o;return"function"!=typeof(o="string"==typeof t?this.aggFuncService.getAggFunc(t):t)?(console.error("ag-Grid: unrecognised aggregation function "+t),null):o(e)},i([n.Autowired("gridOptionsWrapper"),r("design:type",n.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([n.Autowired("columnController"),r("design:type",n.ColumnController)],e.prototype,"columnController",void 0),i([n.Autowired("valueService"),r("design:type",n.ValueService)],e.prototype,"valueService",void 0),i([n.Autowired("pivotStage"),r("design:type",s.PivotStage)],e.prototype,"pivotStage",void 0),i([n.Autowired("aggFuncService"),r("design:type",a.AggFuncService)],e.prototype,"aggFuncService",void 0),e=i([n.Bean("aggregationStage")],e)}();t.AggregationStage=l},function(e,t,o){"use strict";var i=this&&this.__decorate||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},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var n=o(1),s=o(70),a=function(){function e(){this.uniqueValues={}}return e.prototype.execute=function(e){var t=e.rowNode,o=e.changedPath;this.columnController.isPivotActive()?this.executePivotOn(t,o):this.executePivotOff(o)},e.prototype.executePivotOff=function(e){this.aggregationColumnsHashLastTime=null,this.uniqueValues={},this.columnController.isSecondaryColumnsPresent()&&(this.columnController.setSecondaryColumns(null,"rowModelUpdated"),e&&e.setInactive())},e.prototype.executePivotOn=function(e,t){var o=this.bucketUpRowNodes(e),i=this.setUniqueValues(o),r=this.columnController.getValueColumns(),n=r.map((function(e){return e.getId()})).join("#"),s=r.map((function(e){return e.getAggFunc().toString()})).join("#"),a=this.aggregationColumnsHashLastTime!==n,l=this.aggregationFuncsHashLastTime!==s;if(this.aggregationColumnsHashLastTime=n,this.aggregationFuncsHashLastTime=s,i||a||l){var p=this.pivotColDefService.createPivotColumnDefs(this.uniqueValues);this.pivotColumnGroupDefs=p.pivotColumnGroupDefs,this.pivotColumnDefs=p.pivotColumnDefs,this.columnController.setSecondaryColumns(this.pivotColumnGroupDefs,"rowModelUpdated"),t&&t.setInactive()}},e.prototype.setUniqueValues=function(e){return!!(JSON.stringify(e)!==JSON.stringify(this.uniqueValues))&&(this.uniqueValues=e,!0)},e.prototype.bucketUpRowNodes=function(e){var t=this,o={},i=function(e){e.leafGroup?t.bucketRowNode(e,o):e.childrenAfterFilter.forEach((function(e){i(e)}))};return i(e),o},e.prototype.bucketRowNode=function(e,t){var o=this.columnController.getPivotColumns();0!==o.length?e.childrenMapped=this.bucketChildren(e.childrenAfterFilter,o,0,t):e.childrenMapped=null},e.prototype.bucketChildren=function(e,t,o,i){var r=this,s={},a=t[o];if(e.forEach((function(e){var t=r.valueService.getKeyForNode(a,e);n._.missing(t)&&(t=""),i[t]||(i[t]={}),s[t]||(s[t]=[]),s[t].push(e)})),o===t.length-1)return s;var l={};return n._.iterateObject(s,(function(e,n){l[e]=r.bucketChildren(n,t,o+1,i[e])})),l},e.prototype.getPivotColumnDefs=function(){return this.pivotColumnDefs},i([n.Autowired("rowModel"),r("design:type",Object)],e.prototype,"rowModel",void 0),i([n.Autowired("valueService"),r("design:type",n.ValueService)],e.prototype,"valueService",void 0),i([n.Autowired("columnController"),r("design:type",n.ColumnController)],e.prototype,"columnController",void 0),i([n.Autowired("eventService"),r("design:type",n.EventService)],e.prototype,"eventService",void 0),i([n.Autowired("pivotColDefService"),r("design:type",s.PivotColDefService)],e.prototype,"pivotColDefService",void 0),e=i([n.Bean("pivotStage")],e)}();t.PivotStage=a},function(e,t,o){"use strict";var i=this&&this.__decorate||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},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var n=o(1),s=function(){function e(){}return e.prototype.createPivotColumnDefs=function(e){var t=[],o=[],i=this.columnController.getPivotColumns(),r=this.columnController.getValueColumns(),s=i.length,a=new n.NumberSequence;return this.recursivelyAddGroup(t,o,1,e,[],a,s,i),this.addRowGroupTotals(t,o,r,i,a),this.addPivotTotalsToGroups(t,o,a),{pivotColumnGroupDefs:t,pivotColumnDefs:o.map((function(e){return n._.cloneObject(e)}))}},e.prototype.recursivelyAddGroup=function(e,t,o,i,r,s,a,l){var p=this;n._.iterateObject(i,(function(i,n){var u=r.slice(0);if(u.push(i),o!==a){var c={children:[],headerName:i,pivotKeys:u,columnGroupShow:"open",groupId:"pivot"+s.next()};e.push(c),p.recursivelyAddGroup(c.children,t,o+1,n,u,s,a,l)}else{var d=p.columnController.getValueColumns(),h={children:[],headerName:i,pivotKeys:u,columnGroupShow:"open",groupId:"pivot"+s.next()};if(0===d.length){var f=p.createColDef(null,"-",u,s);h.children.push(f),t.push(f)}else d.forEach((function(e){var o=p.columnController.getDisplayNameForColumn(e,"header"),i=p.createColDef(e,o,u,s);i.columnGroupShow="open",h.children.push(i),t.push(i)}));e.push(h)}}));var u=l[o-1].getColDef().pivotComparator,c=this.headerNameComparator.bind(this,u);e.sort(c)},e.prototype.addPivotTotalsToGroups=function(e,t,o){var i=this;if(this.gridOptionsWrapper.getPivotColumnGroupTotals()){var r="after"===this.gridOptionsWrapper.getPivotColumnGroupTotals(),n=this.columnController.getValueColumns(),s=n.map((function(e){return e.getAggFunc()}));if(s&&!(s.length<1)&&this.sameAggFuncs(s)){var a=n[0];e.forEach((function(e){i.recursivelyAddPivotTotal(e,t,o,a,r)}))}}},e.prototype.recursivelyAddPivotTotal=function(e,t,o,i,r){var n=this,s=e;if(!s.children){var a=e;return a.colId?[a.colId]:null}var l=[];if(s.children.forEach((function(e){var s=n.recursivelyAddPivotTotal(e,t,o,i,r);s&&(l=l.concat(s))})),s.children.length>1){var p=this.createColDef(i,"Total",e.pivotKeys,o);p.pivotTotalColumnIds=l,p.aggFunc=i.getAggFunc();var u=e.children;r?u.push(p):u.unshift(p),t.push(p)}return l},e.prototype.addRowGroupTotals=function(e,t,o,i,r){var n=this;if(this.gridOptionsWrapper.getPivotRowTotals())for(var s="after"===this.gridOptionsWrapper.getPivotRowTotals(),a=s?o.slice():o.slice().reverse(),l=function(o){var l=a[o],u=[];e.forEach((function(e){u=u.concat(n.extractColIdsForValueColumn(e,l))}));var c=i.length;p.createRowGroupTotal(e,t,1,[],r,c,i,l,u,s)},p=this,u=0;u<a.length;u++)l(u)},e.prototype.extractColIdsForValueColumn=function(e,t){var o=this,i=e;if(!i.children){var r=i;return r.pivotValueColumn===t&&r.colId?[r.colId]:[]}var n=[];return i.children.forEach((function(e){o.extractColIdsForValueColumn(e,t);var i=o.extractColIdsForValueColumn(e,t);n=n.concat(i)})),n},e.prototype.createRowGroupTotal=function(e,t,o,i,r,n,s,a,l,p){var u=i.slice(0);if(o!==n){var c={children:[],pivotKeys:u,groupId:"pivot"+r.next()};p?e.push(c):e.unshift(c),this.createRowGroupTotal(c.children,t,o+1,u,r,n,s,a,l,p)}else{var d=this.columnController.getValueColumns(),h={children:[],pivotKeys:u,groupId:"pivot"+r.next()};if(0===d.length){var f=this.createColDef(null,"-",u,r);h.children.push(f),t.push(f)}else{var g=this.columnController.getDisplayNameForColumn(a,"header");(f=this.createColDef(a,g,u,r)).pivotTotalColumnIds=l,h.children.push(f),t.push(f)}p?e.push(h):e.unshift(h)}},e.prototype.createColDef=function(e,t,o,i){var r={};if(e){var s=e.getColDef();n._.assign(r,s),r.hide=!1}return r.headerName=t,r.colId="pivot_"+i.next(),r.field=r.colId,r.pivotKeys=o,r.pivotValueColumn=e,r.filter=!1,r},e.prototype.sameAggFuncs=function(e){if(1==e.length)return!0;for(var t=1;t<e.length;t++)if(e[t]!==e[0])return!1;return!0},e.prototype.headerNameComparator=function(e,t,o){return e?e(t.headerName,o.headerName):t.headerName&&!o.headerName?1:!t.headerName&&o.headerName?-1:t.headerName&&o.headerName?t.headerName<o.headerName?-1:t.headerName>o.headerName?1:0:0},i([n.Autowired("columnController"),r("design:type",n.ColumnController)],e.prototype,"columnController",void 0),i([n.Autowired("gridOptionsWrapper"),r("design:type",n.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),e=i([n.Bean("pivotColDefService")],e)}();t.PivotColDefService=s},function(e,t,o){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),n=this&&this.__decorate||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},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(1),l=o(13),p=function(e){function t(t){var o=e.call(this)||this;return o.activeComps=[],o.params=t,o}return r(t,e),t.prototype.init=function(){this.setTemplate(t.TEMPLATE),this.initGroup(),this.initFontSelects(),this.initFontColorPicker()},t.prototype.addCompToPanel=function(e){this.labelsGroup.addItem(e),this.activeComps.push(e)},t.prototype.setEnabled=function(e){this.labelsGroup.setEnabled(e)},t.prototype.initGroup=function(){var e=this;this.labelsGroup.setTitle(this.params.name?this.params.name:this.chartTranslator.translate("labels")).setEnabled(this.params.enabled).hideEnabledCheckbox(!!this.params.suppressEnabledCheckbox).hideOpenCloseIcons(!0).onEnableChange((function(t){e.params.setEnabled&&e.params.setEnabled(t)}))},t.prototype.initFontSelects=function(){var e=this,t=function(t,o,i,r){var n=e.params.initialFont[t],s=i[0];if(n){var l=""+n,p=a._.exists(l)?l.toLowerCase():"",u=i.map((function(e){return e.toLowerCase()})).indexOf(p);if(u<0){var c=a._.capitalise(l);i.push(c),r&&i.sort(),s=c}else s=i[u]}var d=i.map((function(e){return{value:e,text:e}}));o.addOptions(d).setValue(""+s).onValueChange((function(o){var i;return e.params.setFont(((i={})[t]=o,i))}))};t("family",this.labelFontFamilySelect,["Arial, sans-serif","Aria Black, sans-serif","Book Antiqua, serif","Charcoal, sans-serif","Comic Sans MS, cursive","Courier, monospace","Courier New, monospace","Gadget, sans-serif","Geneva, sans-serif","Helvetica, sans-serif","Impact, sans-serif","Lucida Console, monospace","Lucida Grande, sans-serif","Lucida Sans Unicode, sans-serif","Monaco, monospace","Palatino Linotype, serif","Palatino, serif","Times New Roman, serif","Times, serif","Verdana, sans-serif"],!0);t("weight",this.labelFontWeightSelect,this.getWeigthNames(["normal","bold","italic","boldItalic"]),!1);this.labelFontSizeSelect.setLabel(this.chartTranslator.translate("size")),t("size",this.labelFontSizeSelect,["8","10","12","14","16","18","20","22","24","26","28","30","32","34","36"],!0)},t.prototype.initFontColorPicker=function(){var e=this;this.labelColorPicker.setLabel(this.chartTranslator.translate("color")).setInputWidth(45).setValue(""+this.params.initialFont.color).onValueChange((function(t){return e.params.setFont({color:t})}))},t.prototype.getWeigthNames=function(e){var t=this;return e.map((function(e){return t.chartTranslator.translate(e)}))},t.prototype.destroyActiveComps=function(){this.activeComps.forEach((function(e){a._.removeFromParent(e.getGui()),e.destroy()}))},t.prototype.destroy=function(){this.destroyActiveComps(),e.prototype.destroy.call(this)},t.TEMPLATE='<div>\n <ag-group-component ref="labelsGroup">\n <ag-select ref="labelFontFamilySelect"></ag-select>\n <ag-select ref="labelFontWeightSelect"></ag-select>\n <div class="ag-group-subgroup">\n <ag-select ref="labelFontSizeSelect"></ag-select>\n <ag-color-picker ref="labelColorPicker"></ag-color-picker>\n </div>\n </ag-group-component>\n </div>',n([a.RefSelector("labelsGroup"),s("design:type",a.AgGroupComponent)],t.prototype,"labelsGroup",void 0),n([a.RefSelector("labelFontFamilySelect"),s("design:type",a.AgSelect)],t.prototype,"labelFontFamilySelect",void 0),n([a.RefSelector("labelFontWeightSelect"),s("design:type",a.AgSelect)],t.prototype,"labelFontWeightSelect",void 0),n([a.RefSelector("labelFontSizeSelect"),s("design:type",a.AgSelect)],t.prototype,"labelFontSizeSelect",void 0),n([a.RefSelector("labelColorPicker"),s("design:type",a.AgColorPicker)],t.prototype,"labelColorPicker",void 0),n([a.Autowired("chartTranslator"),s("design:type",l.ChartTranslator)],t.prototype,"chartTranslator",void 0),n([a.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"init",null),t}(a.Component);t.LabelPanel=p},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(298),r=function(){function e(){this.commands=[],this.params=[],this._closedPath=!1}return e.prototype.moveTo=function(e,t){this.xy?(this.xy[0]=e,this.xy[1]=t):this.xy=[e,t],this.commands.push("M"),this.params.push(e,t)},e.prototype.lineTo=function(e,t){this.xy?(this.commands.push("L"),this.params.push(e,t),this.xy[0]=e,this.xy[1]=t):this.moveTo(e,t)},e.prototype.rect=function(e,t,o,i){this.moveTo(e,t),this.lineTo(e+o,t),this.lineTo(e+o,t+i),this.lineTo(e,t+i),this.closePath()},e.prototype.arcTo=function(e,t,o,i,r,n,s){var a=this.xy;if(a){e<0&&(e=-e),t<0&&(t=-t);var l=a[0],p=a[1],u=(l-n)/2,c=(p-s)/2,d=Math.sin(o),h=Math.cos(o),f=h*u+d*c,g=-d*u+h*c,y=f/e,v=g/t,m=y*y+v*v,C=(l+n)/2,w=(p+s)/2,_=0,b=0;m>=1?(e*=m=Math.sqrt(m),t*=m):(m=Math.sqrt(1/m-1),i===r&&(m=-m),C+=h*(_=m*e*v)-d*(b=-m*t*y),w+=d*_+h*b);var E=Math.atan2((g-b)/t,(f-_)/e),R=Math.atan2((-g-b)/t,(-f-_)/e)-E;this.cubicArc(C,w,e,t,o,E,E+R,1-r)}},e.prototype.arcToAlt=function(e,t,o,i,r,n,s){if(this.xy){e<0&&(e=-e),t<0&&(t=-t);var a=this.xy[0],l=this.xy[1],p=(a-n)/2,u=(l-s)/2,c=Math.sin(o),d=Math.cos(o),h=d*p+c*u,f=-c*p+d*u,g=e*e*f*f,y=t*t*h*h,v=Math.sqrt((e*e*t*t-g-y)/(g+y)),m=i===r?0:1,C=m*v*e*f/t;Math.acos((h-C)/e/((h-C)/e))}},e.cubicArc=function(e,t,o,i,r,n,s,a,l,p){if(p){var u=a;a=l,l=u}var c=t.length,d=.5522847498307935,h=Math.sin(a),f=Math.cos(a),g=Math.sin(s),y=Math.cos(s),v=Math.PI/2,m=y*f*r-g*h*n,C=g*f*r+y*h*n,w=-y*h*r-g*f*n,_=-g*h*r+y*f*n;for((l-=a)<0&&(l+=2*Math.PI),e.push("M"),t.push(m+o,C+i);l>=v;){l-=v,e.push("C");var b=w+o;t.push(m+w*d+o,C+_*d+i,m*d+w+o,C*d+_+i,Math.abs(b)<1e-8?0:b,_+i);u=m;m=w,w=-u,u=C,C=_,_=-u}if(l){var E=4/3*Math.tan(l/4),R=Math.sin(l),P=Math.cos(l),O=P+E*R,S=R-E*P;e.push("C");b=m*P+w*R+o;t.push(m+w*E+o,C+_*E+i,m*O+w*S+o,C*O+_*S+i,Math.abs(b)<1e-8?0:b,C*P+_*R+i)}if(p)for(var A=c,T=t.length-2;A<T;A+=2,T-=2){u=t[A];t[A]=t[T],t[T]=u,u=t[A+1],t[A+1]=t[T+1],t[T+1]=u}},e.prototype.cubicArc=function(t,o,i,r,n,s,a,l){var p=this.commands,u=this.params,c=p.length;e.cubicArc(p,u,t,o,i,r,n,s,a,l);var d=u[u.length-2],h=u[u.length-1];this.xy?(p[c]="L",this.xy[0]=d,this.xy[1]=h):this.xy=[d,h]},e.prototype.deCasteljau=function(e,t){var o=e.length;if(o<2||o%2==1)throw new Error("Fewer than two points or not an even count.");if(2===o||0===t)return e.slice(0,2);if(1===t)return e.slice(-2);for(var i=[],r=o-2,n=0;n<r;n+=2)i.push((1-t)*e[n]+t*e[n+2],(1-t)*e[n+1]+t*e[n+3]);return this.deCasteljau(i,t)},e.prototype.approximateCurve=function(e,t){var o=this.deCasteljau(e,0);this.moveTo(o[0],o[1]);for(var i=1/t,r=i;r<=1;r+=i){var n=this.deCasteljau(e,r);this.lineTo(n[0],n[1])}},e.prototype.quadraticCurveTo=function(e,t,o,i){this.xy||this.moveTo(e,t),this.cubicCurveTo((this.xy[0]+2*e)/3,(this.xy[1]+2*t)/3,(2*e+o)/3,(2*t+i)/3,o,i)},e.prototype.cubicCurveTo=function(e,t,o,i,r,n){this.xy||this.moveTo(e,t),this.commands.push("C"),this.params.push(e,t,o,i,r,n),this.xy[0]=r,this.xy[1]=n},Object.defineProperty(e.prototype,"closedPath",{get:function(){return this._closedPath},enumerable:!0,configurable:!0}),e.prototype.closePath=function(){this.xy&&(this.xy=void 0,this.commands.push("Z"),this._closedPath=!0)},e.prototype.clear=function(){this.commands.length=0,this.params.length=0,this.xy=void 0,this._closedPath=!1},e.prototype.isPointInPath=function(e,t){for(var o=this.commands,r=this.params,n=o.length,s=NaN,a=NaN,l=0,p=0,u=0,c=0,d=0;c<n;c++)switch(o[c]){case"M":isNaN(s)||i.segmentIntersection(s,a,l,p,-1e4,-1e4,e,t)&&u++,s=l=r[d++],a=p=r[d++];break;case"L":i.segmentIntersection(l,p,l=r[d++],p=r[d++],-1e4,-1e4,e,t)&&u++;break;case"C":u+=i.cubicSegmentIntersections(l,p,r[d++],r[d++],r[d++],r[d++],l=r[d++],p=r[d++],-1e4,-1e4,e,t).length;break;case"Z":isNaN(s)||i.segmentIntersection(s,a,l,p,-1e4,-1e4,e,t)&&u++}return u%2==1},e.fromString=function(t){var o=new e;return o.setFromString(t),o},e.parseSvgPath=function(t){return t.trim().split(e.splitCommandsRe).map((function(t){var o=t.match(e.matchParamsRe);return{command:t.substr(0,1),params:o?o.map(parseFloat):[]}}))},e.prettifySvgPath=function(t){return e.parseSvgPath(t).map((function(e){return e.command+e.params.join(",")})).join("\n")},e.prototype.setFromString=function(t){var o,i,r,n,s,a=this;function l(){s.match(e.quadraticCommandRe)||(r=o,n=i)}function p(){s.match(e.cubicCommandRe)||(r=o,n=i)}this.clear(),e.parseSvgPath(t).forEach((function(e){var t=e.params,u=t.length,c=0;switch(e.command){case"M":for(a.moveTo(o=t[c++],i=t[c++]);c<u;)a.lineTo(o=t[c++],i=t[c++]);break;case"m":for(a.moveTo(o+=t[c++],i+=t[c++]);c<u;)a.lineTo(o+=t[c++],i+=t[c++]);break;case"L":for(;c<u;)a.lineTo(o=t[c++],i=t[c++]);break;case"l":for(;c<u;)a.lineTo(o+=t[c++],i+=t[c++]);break;case"C":for(;c<u;)a.cubicCurveTo(t[c++],t[c++],r=t[c++],n=t[c++],o=t[c++],i=t[c++]);break;case"c":for(;c<u;)a.cubicCurveTo(o+t[c++],i+t[c++],r=o+t[c++],n=i+t[c++],o+=t[c++],i+=t[c++]);break;case"S":for(p();c<u;)a.cubicCurveTo(o+o-r,i+i-n,r=t[c++],n=t[c++],o=t[c++],i=t[c++]);break;case"s":for(p();c<u;)a.cubicCurveTo(o+o-r,i+i-n,r=o+t[c++],n=i+t[c++],o+=t[c++],i+=t[c++]);break;case"Q":for(;c<u;)a.quadraticCurveTo(r=t[c++],n=t[c++],o=t[c++],i=t[c++]);break;case"q":for(;c<u;)a.quadraticCurveTo(r=o+t[c++],n=i+t[c++],o+=t[c++],i+=t[c++]);break;case"T":for(l();c<u;)a.quadraticCurveTo(r=o+o-r,n=i+i-n,o=t[c++],i=t[c++]);break;case"t":for(l();c<u;)a.quadraticCurveTo(r=o+o-r,n=i+i-n,o+=t[c++],i+=t[c++]);break;case"A":for(;c<u;)a.arcTo(t[c++],t[c++],t[c++]*Math.PI/180,t[c++],t[c++],o=t[c++],i=t[c++]);break;case"a":for(;c<u;)a.arcTo(t[c++],t[c++],t[c++]*Math.PI/180,t[c++],t[c++],o+=t[c++],i+=t[c++]);break;case"Z":case"z":a.closePath();break;case"H":for(;c<u;)a.lineTo(o=t[c++],i);break;case"h":for(;c<u;)a.lineTo(o+=t[c++],i);break;case"V":for(;c<u;)a.lineTo(o,i=t[c++]);break;case"v":for(;c<u;)a.lineTo(o,i+=t[c++])}s=e.command}))},e.prototype.toString=function(){for(var e=this.commands,t=this.params,o=e.length,i=[],r=0,n=0;r<o;r++)switch(e[r]){case"M":i.push("M"+t[n++]+","+t[n++]);break;case"L":i.push("L"+t[n++]+","+t[n++]);break;case"C":i.push("C"+t[n++]+","+t[n++]+" "+t[n++]+","+t[n++]+" "+t[n++]+","+t[n++]);break;case"Z":i.push("Z")}return i.join("")},e.prototype.toPrettyString=function(){return e.prettifySvgPath(this.toString())},e.prototype.toSvg=function(){return e.xmlDeclaration+'\n<svg width="100%" height="100%" viewBox="0 0 50 50" version="1.1" xmlns="'+e.xmlns+'">\n <path d="'+this.toString()+'" style="fill:none;stroke:#000;stroke-width:0.5;"/>\n</svg>'},e.prototype.toDebugSvg=function(){var t=e.prettifySvgPath(this.toString());return e.xmlDeclaration+'\n<svg width="100%" height="100%" viewBox="0 0 100 100" version="1.1" xmlns="'+e.xmlns+'">\n <path d="'+t+'" style="fill:none;stroke:#000;stroke-width:0.5;"/>\n</svg>'},e.prototype.toCubicPaths=function(){var e,t,o,i,r,n=[],s=this.params,a=0;return this.commands.forEach((function(l){switch(l){case"M":e=[t=i=s[a++],o=r=s[a++]],n.push(e);break;case"L":var p=s[a++],u=s[a++];e.push((i+i+p)/3,(r+r+u)/3,(i+p+p)/3,(r+u+u)/3,i=p,r=u);break;case"C":e.push(s[a++],s[a++],s[a++],s[a++],i=s[a++],r=s[a++]);break;case"Z":e.push((i+i+t)/3,(r+r+o)/3,(i+t+t)/3,(r+o+o)/3,i=t,r=o)}})),n},e.cubicPathToString=function(e){var t=e.length;if(!(t%2==0&&(t/2-1)/2>=1))throw new Error("Invalid path.");return"M"+e.slice(0,2).join(",")+"C"+e.slice(2).join(",")},e.splitCommandsRe=/(?=[AaCcHhLlMmQqSsTtVvZz])/g,e.matchParamsRe=/-?[0-9]*\.?\d+/g,e.quadraticCommandRe=/[QqTt]/,e.cubicCommandRe=/[CcSs]/,e.xmlDeclaration='<?xml version="1.0" encoding="UTF-8"?>',e.xmlns="http://www.w3.org/2000/svg",e}();t.Path2D=r},function(e,t,o){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var n,s=o(41),a=o(72),l=o(29),p=o(54),u=o(99),c=o(42);!function(e){e[e.Open=0]="Open",e[e.Chord=1]="Chord",e[e.Round=2]="Round"}(n=t.ArcType||(t.ArcType={}));var d=function(e){function t(){var t=e.call(this)||this;return t.path=new a.Path2D,t._dirtyPath=!0,t._centerX=0,t._centerY=0,t._radiusX=10,t._radiusY=10,t._startAngle=0,t._endAngle=2*Math.PI,t._counterClockwise=!1,t._type=n.Open,t.getBBox=function(){return new l.BBox(t.centerX-t.radiusX,t.centerY-t.radiusY,2*t.radiusX,2*t.radiusY)},t.restoreOwnStyles(),t}return r(t,e),t.create=function(e,o,i,r,n,s,a){void 0===r&&(r=i),void 0===n&&(n=0),void 0===s&&(s=2*Math.PI),void 0===a&&(a=!1);var l=new t;return l.centerX=e,l.centerY=o,l.radiusX=i,l.radiusY=r,l.startAngle=n,l.endAngle=s,l.counterClockwise=a,l},Object.defineProperty(t.prototype,"dirtyPath",{get:function(){return this._dirtyPath},set:function(e){this._dirtyPath!==e&&(this._dirtyPath=e,e&&(this.dirty=!0))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"centerX",{get:function(){return this._centerX},set:function(e){this._centerX!==e&&(this._centerX=e,this.dirtyPath=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"centerY",{get:function(){return this._centerY},set:function(e){this._centerY!==e&&(this._centerY=e,this.dirtyPath=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"radiusX",{get:function(){return this._radiusX},set:function(e){this._radiusX!==e&&(this._radiusX=e,this.dirtyPath=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"radiusY",{get:function(){return this._radiusY},set:function(e){this._radiusY!==e&&(this._radiusY=e,this.dirtyPath=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"startAngle",{get:function(){return this._startAngle},set:function(e){this._startAngle!==e&&(this._startAngle=e,this.dirtyPath=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"endAngle",{get:function(){return this._endAngle},set:function(e){this._endAngle!==e&&(this._endAngle=e,this.dirtyPath=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"fullPie",{get:function(){return c.isEqual(p.normalizeAngle360(this.startAngle),p.normalizeAngle360(this.endAngle))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"counterClockwise",{get:function(){return this._counterClockwise},set:function(e){this._counterClockwise!==e&&(this._counterClockwise=e,this.dirtyPath=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"type",{get:function(){return this._type},set:function(e){this._type!==e&&(this._type=e,this.dirtyPath=!0)},enumerable:!0,configurable:!0}),t.prototype.updatePath=function(){if(this.dirtyPath){var e=this.path;e.clear(),e.cubicArc(this.centerX,this.centerY,this.radiusX,this.radiusY,0,this.startAngle,this.endAngle,this.counterClockwise?1:0),this.type===n.Chord?e.closePath():this.type!==n.Round||this.fullPie||(e.lineTo(this.centerX,this.centerY),e.closePath()),this.dirtyPath=!1}},t.prototype.isPointInPath=function(e,t){var o=this.transformPoint(e,t),i=this.getBBox();return this.type!==n.Open&&i.containsPoint(o.x,o.y)&&this.path.isPointInPath(o.x,o.y)},t.prototype.isPointInStroke=function(e,t){return!1},t.prototype.render=function(e){this.dirtyTransform&&this.computeTransformMatrix(),this.matrix.toContext(e),this.updatePath(),this.scene.appendPath(this.path),this.fillStroke(e),this.dirty=!1},t.className="Arc",t.defaultStyles=u.chainObjects(s.Shape.defaultStyles,{lineWidth:1,fillStyle:null}),t}(s.Shape);t.Arc=d},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(16),r=function(){function e(){this.id=this.createId(),this.group=new i.Group,this._data=[],this._chart=void 0,this._visible=!0,this.tooltipEnabled=!1,this._showInLegend=!0}return e.prototype.createId=function(){var e=this.constructor,t=e.className;if(!t)throw new Error("The "+e+" is missing the 'className' property.");return t+"-"+(e.id=(e.id||0)+1)},Object.defineProperty(e.prototype,"data",{get:function(){return this._data},set:function(e){this._data=e,this.scheduleData()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"visible",{get:function(){return this._visible},set:function(e){this._visible!==e&&(this._visible=e,this.scheduleData())},enumerable:!0,configurable:!0}),e.prototype.toggleSeriesItem=function(e,t){this.visible=t},Object.defineProperty(e.prototype,"showInLegend",{get:function(){return this._showInLegend},set:function(e){this._showInLegend!==e&&(this._showInLegend=e,this.scheduleLayout())},enumerable:!0,configurable:!0}),e.prototype.scheduleLayout=function(){this.chart&&(this.chart.layoutPending=!0)},e.prototype.scheduleData=function(){this.chart&&(this.chart.dataPending=!0)},e}();t.Series=r},function(e,t,o){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),n=this&&this.__decorate||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},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(1),l=function(e){function t(o){var i=e.call(this,t.TEMPLATE)||this;return i.params=o,i}return r(t,e),t.prototype.init=function(){var e=this;this.params.checked?this.eIcon.appendChild(a._.createIconNoSpan("check",this.gridOptionsWrapper)):this.params.icon?a._.isNodeOrElement(this.params.icon)?this.eIcon.appendChild(this.params.icon):"string"==typeof this.params.icon?this.eIcon.innerHTML=this.params.icon:console.warn("ag-Grid: menu item icon must be DOM node or string"):this.eIcon.innerHTML="&nbsp;",this.params.tooltip&&(this.tooltip=this.params.tooltip,this.gridOptionsWrapper.isEnableBrowserTooltips()?this.getGui().setAttribute("title",this.tooltip):this.tooltipManager.registerTooltip(this)),this.params.shortcut&&(this.eShortcut.innerHTML=this.params.shortcut),this.params.subMenu?this.gridOptionsWrapper.isEnableRtl()?this.ePopupPointer.appendChild(a._.createIconNoSpan("smallLeft",this.gridOptionsWrapper)):this.ePopupPointer.appendChild(a._.createIconNoSpan("smallRight",this.gridOptionsWrapper)):this.ePopupPointer.innerHTML="&nbsp;",this.eName.innerHTML=this.params.name,this.params.disabled?a._.addCssClass(this.getGui(),"ag-menu-option-disabled"):this.addGuiEventListener("click",this.onOptionSelected.bind(this)),this.params.cssClasses&&this.params.cssClasses.forEach((function(t){return a._.addCssClass(e.getGui(),t)}))},t.prototype.getTooltipText=function(){return this.tooltip},t.prototype.getComponentHolder=function(){},t.prototype.onOptionSelected=function(e){var o={type:t.EVENT_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,mouseEvent:e};this.dispatchEvent(o),this.params.action&&this.params.action()},t.prototype.destroy=function(){e.prototype.destroy.call(this)},t.TEMPLATE='<div class="ag-menu-option">\n <span ref="eIcon" class="ag-menu-option-icon"></span>\n <span ref="eName" class="ag-menu-option-text"></span>\n <span ref="eShortcut" class="ag-menu-option-shortcut"></span>\n <span ref="ePopupPointer" class="ag-menu-option-popup-pointer"></span>\n </div>',t.EVENT_ITEM_SELECTED="itemSelected",n([a.Autowired("gridOptionsWrapper"),s("design:type",a.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),n([a.Autowired("tooltipManager"),s("design:type",a.TooltipManager)],t.prototype,"tooltipManager",void 0),n([a.RefSelector("eIcon"),s("design:type",HTMLElement)],t.prototype,"eIcon",void 0),n([a.RefSelector("eName"),s("design:type",HTMLElement)],t.prototype,"eName",void 0),n([a.RefSelector("eShortcut"),s("design:type",HTMLElement)],t.prototype,"eShortcut",void 0),n([a.RefSelector("ePopupPointer"),s("design:type",HTMLElement)],t.prototype,"ePopupPointer",void 0),n([a.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"init",null),t}(a.Component);t.MenuItemComponent=l},function(e,t,o){"use strict";var i=this&&this.__decorate||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},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var n=o(1),s=o(21),a=function(){function e(){this.pasteOperationActive=!1}return e.prototype.isPasteOperationActive=function(){return this.pasteOperationActive},e.prototype.registerGridCore=function(e){this.gridCore=e},e.prototype.init=function(){this.logger=this.loggerFactory.create("ClipboardService"),this.rowModel.getType()===n.Constants.ROW_MODEL_TYPE_CLIENT_SIDE&&(this.clientSideRowModel=this.rowModel)},e.prototype.pasteFromClipboard=function(){var e=this;this.logger.log("pasteFromClipboard"),this.executeOnTempElement((function(e){e.focus()}),(function(t){var o=t.value;if(!n._.missingOrEmpty(o)){var i=e.dataToArray(o),r=e.gridOptionsWrapper.getProcessDataFromClipboardFunc();if(r&&(i=r({data:i})),!n._.missingOrEmpty(i)){e.eventService.dispatchEvent({type:n.Events.EVENT_PASTE_START,api:e.gridOptionsWrapper.getApi(),columnApi:e.gridOptionsWrapper.getColumnApi(),source:"clipboard"});var s=1==i.length&&1==i[0].length;e.rangeController.isMoreThanOneCell()&&!s?e.pasteIntoActiveRange(i):e.pasteStartingFromFocusedCell(i),e.eventService.dispatchEvent({type:n.Events.EVENT_PASTE_END,api:e.gridOptionsWrapper.getApi(),columnApi:e.gridOptionsWrapper.getColumnApi(),source:"clipboard"})}}}))},e.prototype.pasteIntoActiveRange=function(e){var t=this,o={},i=[],r=this.focusedCellController.getFocusedCell(),s=this.rangeSize()%e.length!=0,a=0,l=0;this.iterateActiveRanges(!1,(function(r,p,u,c,d){if(c-a>=e.length){if(s)return;a+=l,l=0}var h=e[c-a];i.push(p),u.forEach((function(e,i){if(e.isCellEditable(p)){i>=h.length&&(i%=h.length);var s=h[i],a=t.gridOptionsWrapper.getProcessCellFromClipboardFunc();s=t.userProcessCell(p,e,s,a,n.Constants.EXPORT_TYPE_DRAG_COPY),t.valueService.setValue(p,e,s);var l={rowIndex:r.rowIndex,rowPinned:r.rowPinned,column:e},u=t.cellPositionUtils.createId(l);o[u]=!0}})),l++})),this.rowRenderer.refreshCells({rowNodes:i,columns:[]}),this.dispatchFlashCells(o),r&&this.focusedCellController.setFocusedCell(r.rowIndex,r.column,r.rowPinned,!0),this.fireRowChanged(i)},e.prototype.pasteStartingFromFocusedCell=function(e){var t=this.focusedCellController.getFocusedCell();if(t){this.pasteOperationActive=!0;var o=n._.last(e);o&&1===o.length&&""===o[0]&&n._.removeFromArray(e,o);var i,r={rowIndex:t.rowIndex,rowPinned:t.rowPinned},s={},a=[],l=[],p=this.columnController.getDisplayedColumnsStartingAt(t.column),u=1===e.length&&1===e[0].length;if(this.clientSideRowModel){var c=this.gridOptionsWrapper.isAggregateOnlyChangedColumns();i=new n.ChangedPath(c,this.clientSideRowModel.getRootNode())}u?this.pasteSingleValue(e,a,s,l,i):this.pasteMultipleValues(e,r,a,p,s,l,n.Constants.EXPORT_TYPE_CLIPBOARD,i),i&&this.clientSideRowModel.doAggregate(i),this.rowRenderer.refreshCells({rowNodes:a,columns:l}),this.dispatchFlashCells(s),this.focusedCellController.setFocusedCell(t.rowIndex,t.column,t.rowPinned,!0),this.fireRowChanged(a),this.pasteOperationActive=!1}},e.prototype.copyRangeDown=function(){var e=this;if(!this.rangeController.isEmpty()){this.eventService.dispatchEvent({type:n.Events.EVENT_PASTE_START,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),source:"rangeDown"});var t={},o=[],i=[],r=[];this.iterateActiveRanges(!0,(function(s,a,l,p,u){o.length?(i.push(a),l.forEach((function(i,r){if(i.isCellEditable(a)){var l=o[r],p=e.gridOptionsWrapper.getProcessCellFromClipboardFunc();l=e.userProcessCell(a,i,l,p,n.Constants.EXPORT_TYPE_DRAG_COPY),e.valueService.setValue(a,i,l);var u={rowIndex:s.rowIndex,rowPinned:s.rowPinned,column:i},c=e.cellPositionUtils.createId(u);t[c]=!0}}))):l.forEach((function(t){var i=e.valueService.getValue(t,a),s=e.gridOptionsWrapper.getProcessCellForClipboardFunc();i=e.userProcessCell(a,t,i,s,n.Constants.EXPORT_TYPE_DRAG_COPY),o.push(i),r.push(t.getId())}))})),this.rowRenderer.refreshCells({rowNodes:i,columns:r}),this.dispatchFlashCells(t),this.fireRowChanged(i),this.eventService.dispatchEvent({type:n.Events.EVENT_PASTE_END,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),source:"rangeDown"})}},e.prototype.fireRowChanged=function(e){var t=this;this.gridOptionsWrapper.isFullRowEdit()&&e.forEach((function(e){var o={type:n.Events.EVENT_ROW_VALUE_CHANGED,node:e,data:e.data,rowIndex:e.rowIndex,rowPinned:e.rowPinned,context:t.gridOptionsWrapper.getContext(),api:t.gridOptionsWrapper.getApi(),columnApi:t.gridOptionsWrapper.getColumnApi()};t.eventService.dispatchEvent(o)}))},e.prototype.pasteMultipleValues=function(e,t,o,i,r,n,s,a){var l=this;return e.forEach((function(e){if(t){var p=l.rowPositionUtils.getRowNode(t);p&&(o.push(p),e.forEach((function(e,o){var u=i[o];l.updateCellValue(p,u,e,t,r,n,s,a)})),t=l.cellNavigationService.getRowBelow({rowPinned:t.rowPinned,rowIndex:t.rowIndex}))}})),t},e.prototype.pasteSingleValue=function(e,t,o,i,r){var s=this,a=e[0][0];this.iterateActiveRanges(!1,(function(e,l,p){t.push(l),p.forEach((function(t){s.updateCellValue(l,t,a,e,o,i,n.Constants.EXPORT_TYPE_CLIPBOARD,r)}))}))},e.prototype.updateCellValue=function(e,t,o,i,r,n,s,a){if(e&&i&&t.isCellEditable(e)&&!t.isSuppressPaste(e)){var l=this.userProcessCell(e,t,o,this.gridOptionsWrapper.getProcessCellFromClipboardFunc(),s);this.valueService.setValue(e,t,l);var p={rowIndex:i.rowIndex,rowPinned:i.rowPinned,column:t};r[this.cellPositionUtils.createId(p)]=!0,n.indexOf(t.getId())<0&&n.push(t.getId()),a&&!e.isRowPinned()&&a.addParentNode(e.parent,[t])}},e.prototype.copyToClipboard=function(e){this.logger.log("copyToClipboard: includeHeaders = "+e),void 0===e&&(e=this.gridOptionsWrapper.isCopyHeadersToClipboard());var t=!this.selectionController.isEmpty()&&!this.gridOptionsWrapper.isSuppressCopyRowsToClipboard();this.rangeController.isMoreThanOneCell()?this.copySelectedRangeToClipboard(e):t?this.copySelectedRowsToClipboard(e):this.focusedCellController.isAnyCellFocused()?this.copyFocusedCellToClipboard(e):this.copySelectedRangeToClipboard(e)},e.prototype.iterateActiveRanges=function(e,t,o){var i=this;if(!this.rangeController.isEmpty()){var r=this.rangeController.getCellRanges();if(e){var n=r[0];this.iterateActiveRange(n,t,o,!0)}else r.forEach((function(e,n){return i.iterateActiveRange(e,t,o,n===r.length-1)}))}},e.prototype.iterateActiveRange=function(e,t,o,i){var r=this.rangeController.getRangeStartRow(e),s=this.rangeController.getRangeEndRow(e);o&&n._.exists(o)&&e.columns&&o(e.columns);for(var a=0,l=!1;!l&&!n._.missing(r)&&r;){var p=this.rowPositionUtils.getRowNode(r);l=r.rowIndex===s.rowIndex&&r.rowIndex===s.rowIndex,t(r,p,e.columns,a++,l&&i),r=this.cellNavigationService.getRowBelow(r)}},e.prototype.copySelectedRangeToClipboard=function(e){var t=this;if(void 0===e&&(e=!1),!this.rangeController.isEmpty()){var o=this.gridOptionsWrapper.getClipboardDeliminator(),i="",r={};this.iterateActiveRanges(!1,(function(e,s,a,l,p){a.forEach((function(a,l){var p=t.valueService.getValue(a,s),u=t.userProcessCell(s,a,p,t.gridOptionsWrapper.getProcessCellForClipboardFunc(),n.Constants.EXPORT_TYPE_CLIPBOARD);0!=l&&(i+=o),n._.exists(u)&&(i+=u);var c={rowIndex:e.rowIndex,rowPinned:e.rowPinned,column:a},d=t.cellPositionUtils.createId(c);r[d]=!0})),p||(i+="\r\n")}),(function(r){e&&(r.forEach((function(e,r){var s=t.columnController.getDisplayNameForColumn(e,"clipboard",!0),a=t.userProcessHeader(e,s,t.gridOptionsWrapper.getProcessHeaderForClipboardFunc());0!=r&&(i+=o),n._.exists(a)&&(i+=a)})),i+="\r\n")})),this.copyDataToClipboard(i),this.dispatchFlashCells(r)}},e.prototype.copyFocusedCellToClipboard=function(e){var t;void 0===e&&(e=!1);var o=this.focusedCellController.getFocusedCell();if(!n._.missing(o)){var i=this.cellPositionUtils.createId(o),r={rowPinned:o.rowPinned,rowIndex:o.rowIndex},s=this.rowPositionUtils.getRowNode(r),a=o.column,l=this.valueService.getValue(a,s),p=this.userProcessCell(s,a,l,this.gridOptionsWrapper.getProcessCellForClipboardFunc(),n.Constants.EXPORT_TYPE_CLIPBOARD);n._.missing(p)&&(p="\t");var u="";if(e){var c=this.columnController.getDisplayNameForColumn(a,"clipboard",!0);u=this.userProcessHeader(a,c,this.gridOptionsWrapper.getProcessHeaderForClipboardFunc()),u+="\r\n"}u+=p.toString(),this.copyDataToClipboard(u),this.dispatchFlashCells(((t={})[i]=!0,t))}},e.prototype.dispatchFlashCells=function(e){var t=this;window.setTimeout((function(){var o={type:n.Events.EVENT_FLASH_CELLS,cells:e,api:t.gridApi,columnApi:t.columnApi};t.eventService.dispatchEvent(o)}),0)},e.prototype.userProcessCell=function(e,t,o,i,r){return i?i({column:t,node:e,value:o,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext(),type:r}):o},e.prototype.userProcessHeader=function(e,t,o){return o?o({column:e,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()}):t},e.prototype.copySelectedRowsToClipboard=function(e,t){void 0===e&&(e=!1);var o={columnKeys:t,skipHeader:!e,skipFooters:!0,suppressQuotes:!0,columnSeparator:this.gridOptionsWrapper.getClipboardDeliminator(),onlySelected:!0,processCellCallback:this.gridOptionsWrapper.getProcessCellForClipboardFunc(),processHeaderCallback:this.gridOptionsWrapper.getProcessHeaderForClipboardFunc()},i=this.csvCreator.getDataAsCsv(o);this.copyDataToClipboard(i)},e.prototype.copyDataToClipboard=function(e){var t=this.gridOptionsWrapper.getSendToClipboardFunc();t&&n._.exists(t)?t({data:e}):this.executeOnTempElement((function(t){t.value=e,t.select(),t.focus(),document.execCommand("copy")||console.warn("ag-grid: Browser did not allow document.execCommand('copy'). Ensure api.copySelectedRowsToClipboard() is invoked via a user event, i.e. button click, otherwise the browser will prevent it for security reasons.")}))},e.prototype.executeOnTempElement=function(e,t){var o=document.createElement("textarea");o.style.width="1px",o.style.height="1px",o.style.top="0px",o.style.left="0px",o.style.position="absolute",o.style.opacity="0.0";var i=this.gridCore.getRootGui();i.appendChild(o);try{e(o)}catch(e){console.warn("ag-grid: Browser does not support document.execCommand('copy') for clipboard operations")}t?window.setTimeout((function(){t(o),i.removeChild(o)}),100):i.removeChild(o)},e.prototype.dataToArray=function(e){for(var t,o=this.gridOptionsWrapper.getClipboardDeliminator(),i=new RegExp("(\\"+o+'|\\r?\\n|\\r|^)(?:"([^"]*(?:""[^"]*)*)"|([^\\'+o+"\\r\\n]*))","gi"),r=[[]],s=!0;t=i.exec(e);){var a=t[1];(s&&a||!t.index&&t[0].charAt(0)===o)&&r[0].push(""),a.length&&a!==o&&r.push([]);var l=void 0;l=t[2]?t[2].replace(new RegExp('""',"g"),'"'):t[3];var p=n._.last(r);p&&p.push(l),s=!1}return r},e.prototype.rangeSize=function(){var e,t,o=this.rangeController.getCellRanges();return o.length>0?(e=0,t=0):(e=this.rangeController.getRangeStartRow(o[0]).rowIndex,t=this.rangeController.getRangeEndRow(o[0]).rowIndex),e-t+1},i([n.Autowired("csvCreator"),r("design:type",n.CsvCreator)],e.prototype,"csvCreator",void 0),i([n.Autowired("loggerFactory"),r("design:type",n.LoggerFactory)],e.prototype,"loggerFactory",void 0),i([n.Autowired("selectionController"),r("design:type",n.SelectionController)],e.prototype,"selectionController",void 0),i([n.Autowired("rangeController"),r("design:type",s.RangeController)],e.prototype,"rangeController",void 0),i([n.Autowired("rowModel"),r("design:type",Object)],e.prototype,"rowModel",void 0),i([n.Autowired("valueService"),r("design:type",n.ValueService)],e.prototype,"valueService",void 0),i([n.Autowired("focusedCellController"),r("design:type",n.FocusedCellController)],e.prototype,"focusedCellController",void 0),i([n.Autowired("rowRenderer"),r("design:type",n.RowRenderer)],e.prototype,"rowRenderer",void 0),i([n.Autowired("columnController"),r("design:type",n.ColumnController)],e.prototype,"columnController",void 0),i([n.Autowired("eventService"),r("design:type",n.EventService)],e.prototype,"eventService",void 0),i([n.Autowired("cellNavigationService"),r("design:type",n.CellNavigationService)],e.prototype,"cellNavigationService",void 0),i([n.Autowired("gridOptionsWrapper"),r("design:type",n.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([n.Autowired("columnApi"),r("design:type",n.ColumnApi)],e.prototype,"columnApi",void 0),i([n.Autowired("gridApi"),r("design:type",n.GridApi)],e.prototype,"gridApi",void 0),i([n.Autowired("cellPositionUtils"),r("design:type",n.CellPositionUtils)],e.prototype,"cellPositionUtils",void 0),i([n.Autowired("rowPositionUtils"),r("design:type",n.RowPositionUtils)],e.prototype,"rowPositionUtils",void 0),i([n.PostConstruct,r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],e.prototype,"init",null),e=i([n.Bean("clipboardService")],e)}();t.ClipboardService=a},function(e,t,o){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),n=this&&this.__decorate||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},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(1),l=function(e){function t(){var t=e.call(this,void 0)||this;return t.rowsInBodyContainer={},t.rowHeight=20,t}return r(t,e),t.prototype.init=function(){this.setTemplate(t.TEMPLATE),this.eListContainer=this.queryForHtmlElement(".ag-virtual-list-container"),this.addScrollListener();var e=document.createElement("div");a._.addCssClass(e,"ag-virtual-list-item"),this.rowHeight=this.getItemHeight()},t.prototype.getItemHeight=function(){return this.gridOptionsWrapper.getVirtualItemHeight()},t.prototype.ensureIndexVisible=function(e){var t=this.model.getRowCount();if("number"!=typeof e||e<0||e>=t)console.warn("invalid row index for ensureIndexVisible: "+e);else{var o=e*this.rowHeight,i=o+this.rowHeight,r=this.getGui().scrollTop,n=this.getGui().offsetHeight,s=r+n<i;if(r>o)this.getGui().scrollTop=o;else if(s){var a=i-n;this.getGui().scrollTop=a}}},t.prototype.setComponentCreator=function(e){this.componentCreator=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(){a._.missing(this.model)||(this.eListContainer.style.height=this.model.getRowCount()*this.rowHeight+"px",this.clearVirtualRows(),this.drawVirtualRows())},t.prototype.clearVirtualRows=function(){var e=Object.keys(this.rowsInBodyContainer);this.removeVirtualRows(e)},t.prototype.drawVirtualRows=function(){var e=this.getGui().scrollTop,t=e+this.getGui().offsetHeight,o=Math.floor(e/this.rowHeight),i=Math.floor(t/this.rowHeight);this.ensureRowsRendered(o,i)},t.prototype.ensureRowsRendered=function(e,t){for(var o=Object.keys(this.rowsInBodyContainer),i=e;i<=t;i++)if(o.indexOf(i.toString())>=0)o.splice(o.indexOf(i.toString()),1);else if(this.model.getRowCount()>i){var r=this.model.getRow(i);this.insertRow(r,i)}this.removeVirtualRows(o)},t.prototype.removeVirtualRows=function(e){var t=this;e.forEach((function(e){var o=t.rowsInBodyContainer[e];t.eListContainer.removeChild(o.eDiv),o.rowComponent.destroy&&o.rowComponent.destroy(),delete t.rowsInBodyContainer[e]}))},t.prototype.insertRow=function(e,t){var o=document.createElement("div");a._.addCssClass(o,"ag-virtual-list-item"),o.style.top=this.rowHeight*t+"px";var i=this.componentCreator(e);o.appendChild(i.getGui()),this.eListContainer.appendChild(o),this.rowsInBodyContainer[t]={rowComponent:i,eDiv:o}},t.prototype.addScrollListener=function(){var e=this;this.addGuiEventListener("scroll",(function(){e.drawVirtualRows()}))},t.prototype.setModel=function(e){this.model=e},t.TEMPLATE='<div class="ag-virtual-list-viewport">\n <div class="ag-virtual-list-container"></div>\n </div>',n([a.Autowired("environment"),s("design:type",a.Environment)],t.prototype,"environment",void 0),n([a.Autowired("gridOptionsWrapper"),s("design:type",a.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),n([a.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"init",null),t}(a.Component);t.VirtualList=l},function(e,t,o){"use strict";var i=this&&this.__decorate||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},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var n=o(1),s=function(){function e(){this.ieCompatibility=!1}return e.prototype.init=function(){this.ieCompatibility="5d41402abc4b2a76b9719d911017c592"!=this.md5("hello")},e.prototype.md5cycle=function(e,t){var o=e[0],i=e[1],r=e[2],n=e[3];o=this.ff(o,i,r,n,t[0],7,-680876936),n=this.ff(n,o,i,r,t[1],12,-389564586),r=this.ff(r,n,o,i,t[2],17,606105819),i=this.ff(i,r,n,o,t[3],22,-1044525330),o=this.ff(o,i,r,n,t[4],7,-176418897),n=this.ff(n,o,i,r,t[5],12,1200080426),r=this.ff(r,n,o,i,t[6],17,-1473231341),i=this.ff(i,r,n,o,t[7],22,-45705983),o=this.ff(o,i,r,n,t[8],7,1770035416),n=this.ff(n,o,i,r,t[9],12,-1958414417),r=this.ff(r,n,o,i,t[10],17,-42063),i=this.ff(i,r,n,o,t[11],22,-1990404162),o=this.ff(o,i,r,n,t[12],7,1804603682),n=this.ff(n,o,i,r,t[13],12,-40341101),r=this.ff(r,n,o,i,t[14],17,-1502002290),i=this.ff(i,r,n,o,t[15],22,1236535329),o=this.gg(o,i,r,n,t[1],5,-165796510),n=this.gg(n,o,i,r,t[6],9,-1069501632),r=this.gg(r,n,o,i,t[11],14,643717713),i=this.gg(i,r,n,o,t[0],20,-373897302),o=this.gg(o,i,r,n,t[5],5,-701558691),n=this.gg(n,o,i,r,t[10],9,38016083),r=this.gg(r,n,o,i,t[15],14,-660478335),i=this.gg(i,r,n,o,t[4],20,-405537848),o=this.gg(o,i,r,n,t[9],5,568446438),n=this.gg(n,o,i,r,t[14],9,-1019803690),r=this.gg(r,n,o,i,t[3],14,-187363961),i=this.gg(i,r,n,o,t[8],20,1163531501),o=this.gg(o,i,r,n,t[13],5,-1444681467),n=this.gg(n,o,i,r,t[2],9,-51403784),r=this.gg(r,n,o,i,t[7],14,1735328473),i=this.gg(i,r,n,o,t[12],20,-1926607734),o=this.hh(o,i,r,n,t[5],4,-378558),n=this.hh(n,o,i,r,t[8],11,-2022574463),r=this.hh(r,n,o,i,t[11],16,1839030562),i=this.hh(i,r,n,o,t[14],23,-35309556),o=this.hh(o,i,r,n,t[1],4,-1530992060),n=this.hh(n,o,i,r,t[4],11,1272893353),r=this.hh(r,n,o,i,t[7],16,-155497632),i=this.hh(i,r,n,o,t[10],23,-1094730640),o=this.hh(o,i,r,n,t[13],4,681279174),n=this.hh(n,o,i,r,t[0],11,-358537222),r=this.hh(r,n,o,i,t[3],16,-722521979),i=this.hh(i,r,n,o,t[6],23,76029189),o=this.hh(o,i,r,n,t[9],4,-640364487),n=this.hh(n,o,i,r,t[12],11,-421815835),r=this.hh(r,n,o,i,t[15],16,530742520),i=this.hh(i,r,n,o,t[2],23,-995338651),o=this.ii(o,i,r,n,t[0],6,-198630844),n=this.ii(n,o,i,r,t[7],10,1126891415),r=this.ii(r,n,o,i,t[14],15,-1416354905),i=this.ii(i,r,n,o,t[5],21,-57434055),o=this.ii(o,i,r,n,t[12],6,1700485571),n=this.ii(n,o,i,r,t[3],10,-1894986606),r=this.ii(r,n,o,i,t[10],15,-1051523),i=this.ii(i,r,n,o,t[1],21,-2054922799),o=this.ii(o,i,r,n,t[8],6,1873313359),n=this.ii(n,o,i,r,t[15],10,-30611744),r=this.ii(r,n,o,i,t[6],15,-1560198380),i=this.ii(i,r,n,o,t[13],21,1309151649),o=this.ii(o,i,r,n,t[4],6,-145523070),n=this.ii(n,o,i,r,t[11],10,-1120210379),r=this.ii(r,n,o,i,t[2],15,718787259),i=this.ii(i,r,n,o,t[9],21,-343485551),e[0]=this.add32(o,e[0]),e[1]=this.add32(i,e[1]),e[2]=this.add32(r,e[2]),e[3]=this.add32(n,e[3])},e.prototype.cmn=function(e,t,o,i,r,n){return t=this.add32(this.add32(t,e),this.add32(i,n)),this.add32(t<<r|t>>>32-r,o)},e.prototype.ff=function(e,t,o,i,r,n,s){return this.cmn(t&o|~t&i,e,t,r,n,s)},e.prototype.gg=function(e,t,o,i,r,n,s){return this.cmn(t&i|o&~i,e,t,r,n,s)},e.prototype.hh=function(e,t,o,i,r,n,s){return this.cmn(t^o^i,e,t,r,n,s)},e.prototype.ii=function(e,t,o,i,r,n,s){return this.cmn(o^(t|~i),e,t,r,n,s)},e.prototype.md51=function(e){var t,o=e.length,i=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=e.length;t+=64)this.md5cycle(i,this.md5blk(e.substring(t-64,t)));e=e.substring(t-64);var r=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t<e.length;t++)r[t>>2]|=e.charCodeAt(t)<<(t%4<<3);if(r[t>>2]|=128<<(t%4<<3),t>55)for(this.md5cycle(i,r),t=0;t<16;t++)r[t]=0;return r[14]=8*o,this.md5cycle(i,r),i},e.prototype.md5blk=function(e){for(var t=[],o=0;o<64;o+=4)t[o>>2]=e.charCodeAt(o)+(e.charCodeAt(o+1)<<8)+(e.charCodeAt(o+2)<<16)+(e.charCodeAt(o+3)<<24);return t},e.prototype.rhex=function(e){for(var t="0123456789abcdef".split(""),o="",i=0;i<4;i++)o+=t[e>>8*i+4&15]+t[e>>8*i&15];return o},e.prototype.hex=function(e){for(var t=0;t<e.length;t++)e[t]=this.rhex(e[t]);return e.join("")},e.prototype.md5=function(e){return this.hex(this.md51(e))},e.prototype.add32=function(e,t){return this.ieCompatibility?this.add32Compat(e,t):this.add32Std(e,t)},e.prototype.add32Std=function(e,t){return e+t&4294967295},e.prototype.add32Compat=function(e,t){var o=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(o>>16)<<16|65535&o},i([n.PostConstruct,r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],e.prototype,"init",null),e=i([n.Bean("md5")],e)}();t.MD5=s},function(e,t,o){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var n=o(1),s=o(173),a=function(e){function t(o,i,r){var s=e.call(this,'<div class="ag-column-drop ag-unselectable ag-column-drop-'+(o?"horizontal":"vertical")+" ag-column-drop-"+r+'"></div>')||this;return s.state=t.STATE_NOT_DRAGGING,s.guiDestroyFunctions=[],s.childColumnComponents=[],s.horizontal=o,s.valueColumn=i,s.eColumnDropList=n._.loadTemplate('<div class="ag-column-drop-list"></div>'),s}return r(t,e),t.prototype.isHorizontal=function(){return this.horizontal},t.prototype.setBeans=function(e){this.beans=e},t.prototype.destroy=function(){this.destroyGui(),e.prototype.destroy.call(this)},t.prototype.destroyGui=function(){this.guiDestroyFunctions.forEach((function(e){return e()})),this.guiDestroyFunctions.length=0,this.childColumnComponents.length=0,n._.clearElement(this.getGui()),n._.clearElement(this.eColumnDropList)},t.prototype.init=function(e){this.params=e,this.logger=this.beans.loggerFactory.create("AbstractColumnDropPanel"),this.beans.eventService.addEventListener(n.Events.EVENT_COLUMN_EVERYTHING_CHANGED,this.refreshGui.bind(this)),this.addDestroyableEventListener(this.beans.gridOptionsWrapper,"functionsReadOnly",this.refreshGui.bind(this)),this.setupDropTarget(),this.refreshGui()},t.prototype.setupDropTarget=function(){this.dropTarget={getContainer:this.getGui.bind(this),getIconName:this.getIconName.bind(this),onDragging:this.onDragging.bind(this),onDragEnter:this.onDragEnter.bind(this),onDragLeave:this.onDragLeave.bind(this),onDragStop:this.onDragStop.bind(this),isInterestedIn:this.isInterestedIn.bind(this)},this.beans.dragAndDropService.addDropTarget(this.dropTarget)},t.prototype.isInterestedIn=function(e){return e===n.DragSourceType.HeaderCell||e===n.DragSourceType.ToolPanel},t.prototype.checkInsertIndex=function(e){var t;if((t=this.horizontal?this.getNewHorizontalInsertIndex(e):this.getNewVerticalInsertIndex(e))<0)return!1;var o=t!==this.insertIndex;return o&&(this.insertIndex=t),o},t.prototype.getNewHorizontalInsertIndex=function(e){if(n._.missing(e.hDirection))return-1;var t=0,o=e.event,i=this.beans.gridOptionsWrapper.isEnableRtl(),r=e.hDirection===n.HDirection.Left,s=o.clientX;return this.childColumnComponents.forEach((function(e){var o=e.getGui().getBoundingClientRect(),n=r?o.right:o.left;(i?s<=n:s>=n)&&t++})),t},t.prototype.getNewVerticalInsertIndex=function(e){if(n._.missing(e.vDirection))return-1;var t=0,o=e.event;return this.childColumnComponents.forEach((function(i){var r=i.getGui().getBoundingClientRect();e.vDirection===n.VDirection.Down?o.clientY>=r.top&&t++:o.clientY>=r.bottom&&t++})),t},t.prototype.checkDragStartedBySelf=function(e){this.state===t.STATE_NOT_DRAGGING&&(this.state=t.STATE_REARRANGE_COLUMNS,this.potentialDndColumns=e.dragSource.dragItemCallback().columns||[],this.refreshGui(),this.checkInsertIndex(e),this.refreshGui())},t.prototype.onDragging=function(e){this.checkDragStartedBySelf(e),this.checkInsertIndex(e)&&this.refreshGui()},t.prototype.onDragEnter=function(e){var o=e.dragSource.dragItemCallback().columns||[];this.state=t.STATE_NEW_COLUMNS_IN;var i=n._.filter(o,this.isColumnDroppable.bind(this));i.length>0&&(this.potentialDndColumns=i,this.checkInsertIndex(e),this.refreshGui())},t.prototype.isPotentialDndColumns=function(){return n._.existsAndNotEmpty(this.potentialDndColumns)},t.prototype.onDragLeave=function(e){if(this.state===t.STATE_REARRANGE_COLUMNS){var o=e.dragSource.dragItemCallback().columns||[];this.removeColumns(o)}this.isPotentialDndColumns()&&(this.potentialDndColumns=[],this.refreshGui()),this.state=t.STATE_NOT_DRAGGING},t.prototype.onDragStop=function(){if(this.isPotentialDndColumns()){var e=void 0;this.state===t.STATE_NEW_COLUMNS_IN?(this.addColumns(this.potentialDndColumns),e=!0):e=this.rearrangeColumns(this.potentialDndColumns),this.potentialDndColumns=[],this.beans.gridOptionsWrapper.isFunctionsPassive()&&e||this.refreshGui()}this.state=t.STATE_NOT_DRAGGING},t.prototype.removeColumns=function(e){var t=this.getExistingColumns().slice();e.forEach((function(e){return n._.removeFromArray(t,e)})),this.updateColumns(t)},t.prototype.addColumns=function(e){var t=this.getExistingColumns().slice();n._.insertArrayIntoArray(t,e,this.insertIndex),this.updateColumns(t)},t.prototype.rearrangeColumns=function(e){var t=this.getNonGhostColumns().slice();return n._.insertArrayIntoArray(t,e,this.insertIndex),!n._.shallowCompare(t,this.getExistingColumns())&&(this.updateColumns(t),!0)},t.prototype.refreshGui=function(){var e=this.eColumnDropList.scrollTop;this.destroyGui(),this.addIconAndTitleToGui(),this.addEmptyMessageToGui(),this.addColumnsToGui(),this.isHorizontal()||(this.eColumnDropList.scrollTop=e)},t.prototype.getNonGhostColumns=function(){var e=this,t=this.getExistingColumns();return this.isPotentialDndColumns()?n._.filter(t,(function(t){return e.potentialDndColumns.indexOf(t)<0})):t},t.prototype.addColumnsToGui=function(){var e=this,t=this.getNonGhostColumns(),o=[],i=this.isPotentialDndColumns();t.forEach((function(t,r){if(!(i&&r>=e.insertIndex)){var n=e.createColumnComponent(t,!1);o.push(n)}})),this.isPotentialDndColumns()&&(this.potentialDndColumns.forEach((function(t){var i=e.createColumnComponent(t,!0);o.push(i)})),t.forEach((function(t,i){if(!(i<e.insertIndex)){var r=e.createColumnComponent(t,!1);o.push(r)}}))),this.getGui().appendChild(this.eColumnDropList),o.forEach((function(t,o){0!==o&&e.addArrow(e.eColumnDropList),e.eColumnDropList.appendChild(t.getGui())}))},t.prototype.createColumnComponent=function(e,t){var o=new s.DropZoneColumnComp(e,this.dropTarget,t,this.valueColumn);return o.addEventListener(s.DropZoneColumnComp.EVENT_COLUMN_REMOVE,this.removeColumns.bind(this,[e])),this.beans.context.wireBean(o),this.guiDestroyFunctions.push((function(){return o.destroy()})),t||this.childColumnComponents.push(o),o},t.prototype.addIconAndTitleToGui=function(){var e=this.horizontal&&this.isExistingColumnsEmpty(),t=this.params.icon,o=document.createElement("div");if(n._.addCssClass(t,"ag-column-drop-icon"),n._.addOrRemoveCssClass(t,"ag-faded",e),o.appendChild(t),!this.horizontal){var i=document.createElement("span");i.innerHTML=this.params.title,n._.addCssClass(i,"ag-column-drop-title"),n._.addOrRemoveCssClass(i,"ag-faded",e),o.appendChild(i)}this.getGui().appendChild(o)},t.prototype.isExistingColumnsEmpty=function(){return 0===this.getExistingColumns().length},t.prototype.addEmptyMessageToGui=function(){if(this.isExistingColumnsEmpty()&&!this.isPotentialDndColumns()){var e=document.createElement("span");e.innerHTML=this.params.emptyMessage,n._.addCssClass(e,"ag-column-drop-empty-message"),this.getGui().appendChild(e)}},t.prototype.addArrow=function(e){if(this.horizontal){var t=this.beans.gridOptionsWrapper.isEnableRtl();e.appendChild(n._.createIconNoSpan(t?"smallLeft":"smallRight",this.beans.gridOptionsWrapper))}},t.STATE_NOT_DRAGGING="notDragging",t.STATE_NEW_COLUMNS_IN="newColumnsIn",t.STATE_REARRANGE_COLUMNS="rearrangeColumns",t.CHAR_LEFT_ARROW="&#8592;",t.CHAR_RIGHT_ARROW="&#8594;",t}(n.Component);t.BaseDropZonePanel=a},function(e,t,o){"use strict";var i=this&&this.__decorate||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},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var n=o(1),s=o(1),a=o(341),l=o(342),p=o(343),u=o(347),c=o(348),d=o(349),h=o(350),f=o(351),g=o(352),y=o(353),v=o(354),m=function(){function e(){}return e.prototype.createExcel=function(e,t,o){var i=this.excelXmlHeader(),r=u.default.getTemplate(),n=l.default.getTemplate(),s=this.workbook(r,n,e,t);return""+i+this.xmlFactory.createXml(s,(function(e){return e?"1":"0"}))},e.prototype.workbook=function(e,t,o,i){var r=[e,t,this.stylesXmlElement(o)].concat(n._.map(i,(function(e){return p.default.getTemplate(e)})));return n._.assign({},a.default.getTemplate(),{children:r})},e.prototype.excelXmlHeader=function(){return'<?xml version="1.0" ?>\n <?mso-application progid="Excel.Sheet" ?>\n '},e.prototype.stylesXmlElement=function(e){var t=this;return{name:"Styles",children:e?n._.map(e,(function(e){return t.styleXmlElement(e)})):[]}},e.prototype.styleXmlElement=function(e){var t=n._.compose(this.addProperty("alignment",e),this.addProperty("borders",e),this.addProperty("font",e),this.addProperty("interior",e),this.addProperty("protection",e),this.addProperty("numberFormat",e))([]);return n._.assign({},v.default.getTemplate(e),{children:t})},e.prototype.addProperty=function(e,t){return function(o){if(!t[e])return o;var i={alignment:c.default,borders:d.default,font:h.default,interior:f.default,numberFormat:y.default,protection:g.default};return o.concat(i[e].getTemplate(t))}},i([s.Autowired("xmlFactory"),r("design:type",n.XmlFactory)],e.prototype,"xmlFactory",void 0),e=i([s.Bean("excelXmlFactory")],e)}();t.ExcelXmlFactory=m},function(e,t,o){"use strict";var i=this&&this.__decorate||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},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var n=o(1),s=o(355),a=o(356),l=o(358),p=o(363),u=o(177),c=o(375),d=o(239),h=o(382),f=function(){function e(){this.sharedStrings=[]}return e.prototype.createSharedStrings=function(){return this.createXmlPart(p.default.getTemplate(this.sharedStrings))},e.prototype.createXmlPart=function(e){return""+this.xmlFactory.createHeader({encoding:"UTF-8",standalone:"yes"})+this.xmlFactory.createXml(e)},e.prototype.createExcel=function(e,t,o){return void 0===o&&(o=[]),this.sharedStrings=o,this.sheetNames=t.map((function(e){return e.name})),u.registerStyles(e),this.createWorksheet(t)},e.prototype.createCore=function(){return this.createXmlPart(s.default.getTemplate())},e.prototype.createContentTypes=function(){return this.createXmlPart(a.default.getTemplate())},e.prototype.createRels=function(){var e=h.default.getTemplate([{Id:"rId1",Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",Target:"xl/workbook.xml"},{Id:"rId2",Type:"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",Target:"docProps/core.xml"}]);return this.createXmlPart(e)},e.prototype.createStylesheet=function(){return this.createXmlPart(u.default.getTemplate())},e.prototype.createTheme=function(){return this.createXmlPart(l.default.getTemplate())},e.prototype.createWorkbook=function(){return this.createXmlPart(c.default.getTemplate(this.sheetNames))},e.prototype.createWorkbookRels=function(){var e=h.default.getTemplate([{Id:"rId1",Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet",Target:"worksheets/sheet1.xml"},{Id:"rId2",Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",Target:"theme/theme1.xml"},{Id:"rId3",Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",Target:"styles.xml"},{Id:"rId4",Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings",Target:"sharedStrings.xml"}]);return this.createXmlPart(e)},e.prototype.createWorksheet=function(e){return this.createXmlPart(d.default.getTemplate(e[0]))},i([n.Autowired("xmlFactory"),r("design:type",n.XmlFactory)],e.prototype,"xmlFactory",void 0),e=i([n.Bean("excelXlsxFactory")],e)}();t.ExcelXlsxFactory=f},function(e,t,o){"use strict";var i=this&&this.__decorate||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},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var n=o(1),s=function(){function e(){this.allComponents={}}return e.prototype.registerStatusPanel=function(e,t){this.allComponents[e]=t},e.prototype.getStatusPanel=function(e){return this.allComponents[e]},e=i([n.Bean("statusBarService"),r("design:paramtypes",[])],e)}();t.StatusBarService=s},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/var i=this&&this.__decorate||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},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),s=o(5),a=o(7),l=o(23),p=o(3),u=o(84),c=o(57),d=o(147),h=o(36),f=o(30),g=o(2),y=function(){function e(e){var t=e.columnController,o=e.valueService,i=e.gridOptionsWrapper,r=e.processCellCallback,n=e.processHeaderCallback,s=e.cellAndHeaderEscaper;this.columnController=t,this.valueService=o,this.gridOptionsWrapper=i,this.processCellCallback=r,this.processHeaderCallback=n,this.cellAndHeaderEscaper=s}return e.prototype.extractHeaderValue=function(e){var t=this.getHeaderName(this.processHeaderCallback,e);return null==t&&(t=""),this.cellAndHeaderEscaper?this.cellAndHeaderEscaper(t):t},e.prototype.extractRowCellValue=function(e,t,o,i){var r,n=this.columnController.getRowGroupColumns().length>0;return r=i&&i.group&&n&&0===t?this.createValueForGroupNode(i):this.valueService.getValue(e,i),null==(r=this.processCell(i,e,r,this.processCellCallback,o))&&(r=""),this.cellAndHeaderEscaper?this.cellAndHeaderEscaper(r):r},e.prototype.getHeaderName=function(e,t){return e?e({column:t,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()}):this.columnController.getDisplayNameForColumn(t,"csv",!0)},e.prototype.createValueForGroupNode=function(e){for(var t=[e.key];e.parent;)e=e.parent,t.push(e.key);return t.reverse().join(" -> ")},e.prototype.processCell=function(e,t,o,i,r){return i?i({column:t,node:e,value:o,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext(),type:r}):o},e}();t.BaseGridSerializingSession=y;var v=function(){function e(){}return e.prototype.serialize=function(e,t){var o=t&&t.skipGroups,i=t&&t.skipHeader,r=t&&t.columnGroups,n=t&&t.skipFooters,s=t&&t.skipPinnedTop,l=t&&t.skipPinnedBottom,p=t&&t.customHeader,u=t&&t.customFooter,c=t&&t.allColumns,h=t&&t.onlySelected,f=t&&t.columnKeys,y=t&&t.onlySelectedAllPages,v=t&&t.shouldRowBeSkipped||function(){return!1},m=this.gridOptionsWrapper.getApi(),C=this.gridOptionsWrapper.isGroupRemoveSingleChildren(),w=this.gridOptionsWrapper.isGroupRemoveLowestSingleChildren(),_=this.gridOptionsWrapper.getContext(),b=this.columnController.isPivotMode(),E=this.rowModel.getType()===a.Constants.ROW_MODEL_TYPE_CLIENT_SIDE,R=!E&&h,P=[];if(P=g._.existsAndNotEmpty(f)?this.columnController.getGridColumns(f):c&&!b?(P=this.gridOptionsWrapper.isTreeData()?this.columnController.getGridColumns([a.Constants.GROUP_AUTO_COLUMN_ID]):[]).concat(this.columnController.getAllPrimaryColumns()||[]):this.columnController.getAllDisplayedColumns(),p&&e.addCustomHeader(p),e.prepare(P),r){var O=new d.GroupInstanceIdCreator,S=this.displayedGroupCreator.createDisplayedGroups(P,this.columnController.getGridBalancedTree(),O,null);this.recursivelyAddHeaderGroups(S,e)}if(!i){var A=e.onNewHeaderRow();P.forEach((function(e,t){A.onColumn(e,t,void 0)}))}(this.pinnedRowModel.forEachPinnedTopRow(T),b)?this.rowModel.forEachPivotNode?this.rowModel.forEachPivotNode(T):this.rowModel.forEachNode(T):y||R?this.selectionController.getSelectedNodes().forEach((function(e){T(e)})):E?this.rowModel.forEachNodeAfterFilterAndSort(T):this.rowModel.forEachNode(T);function T(t){var i=w&&t.leafGroup,r=1===t.allChildrenCount&&(C||i);if((!t.group||!o&&!r)&&((!n||!t.footer)&&(!h||t.isSelected())&&(!s||"top"!==t.rowPinned)&&(!l||"bottom"!==t.rowPinned)&&(!(-1===t.level)||t.leafGroup)&&!v({node:t,api:m,context:_}))){var a=e.onNewBodyRow();P.forEach((function(e,o){a.onColumn(e,o,t)}))}}return this.pinnedRowModel.forEachPinnedBottomRow(T),u&&e.addCustomFooter(u),e.parse()},e.prototype.recursivelyAddHeaderGroups=function(e,t){var o=[];e.forEach((function(e){var t=e;t.getChildren&&t.getChildren().forEach((function(e){return o.push(e)}))})),e.length>0&&e[0]instanceof h.ColumnGroup&&this.doAddHeaderHeader(t,e),o&&o.length>0&&this.recursivelyAddHeaderGroups(o,t)},e.prototype.doAddHeaderHeader=function(e,t){var o=this,i=e.onNewHeaderGroupingRow(),r=0;t.forEach((function(e){var t=e,n=o.columnController.getDisplayNameForColumnGroup(t,"header");i.onColumn(n||"",r++,t.getLeafColumns().length-1)}))},i([n.Autowired("displayedGroupCreator"),r("design:type",u.DisplayedGroupCreator)],e.prototype,"displayedGroupCreator",void 0),i([n.Autowired("columnController"),r("design:type",s.ColumnController)],e.prototype,"columnController",void 0),i([n.Autowired("rowModel"),r("design:type",Object)],e.prototype,"rowModel",void 0),i([n.Autowired("pinnedRowModel"),r("design:type",f.PinnedRowModel)],e.prototype,"pinnedRowModel",void 0),i([n.Autowired("selectionController"),r("design:type",l.SelectionController)],e.prototype,"selectionController",void 0),i([n.Autowired("columnFactory"),r("design:type",c.ColumnFactory)],e.prototype,"columnFactory",void 0),i([n.Autowired("gridOptionsWrapper"),r("design:type",p.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),e=i([n.Bean("gridSerializer")],e)}();t.GridSerializer=v,function(e){e[e.HEADER_GROUPING=0]="HEADER_GROUPING",e[e.HEADER=1]="HEADER",e[e.BODY=2]="BODY"}(t.RowType||(t.RowType={}))},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/var i=this&&this.__decorate||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},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),s=o(44),a=o(36),l=o(45),p=o(0),u=o(2),c=function(){function e(){}return e.prototype.createDisplayedGroups=function(e,t,o,i,r){var n,s,a=this,l=[],p=this.mapOldGroupsById(r);return e.forEach((function(e){for(var r=a.getOriginalPathForColumn(t,e),c=[],d=!s,h=0;h<r.length;h++)if(d||r[h]!==s[h]){var f=a.createColumnGroup(r[h],o,p,i);c[h]=f,0==h?l.push(f):c[h-1].addChild(f)}else c[h]=n[h];0===c.length?l.push(e):u._.last(c).addChild(e);n=c,s=r})),this.setupParentsIntoColumns(l,null),l},e.prototype.createColumnGroup=function(e,t,o,i){var r=e.getGroupId(),n=t.getInstanceIdForKey(r),s=o[a.ColumnGroup.createUniqueId(r,n)];return s&&s.getOriginalColumnGroup()!==e&&(s=null),u._.exists(s)?s.reset():(s=new a.ColumnGroup(e,r,n,i),this.context.wireBean(s)),s},e.prototype.mapOldGroupsById=function(e){var t={},o=function(e){e.forEach((function(e){if(e instanceof a.ColumnGroup){var i=e;t[e.getUniqueId()]=i,o(i.getChildren())}}))};return e&&o(e),t},e.prototype.setupParentsIntoColumns=function(e,t){var o=this;e.forEach((function(e){if(e.setParent(t),e instanceof a.ColumnGroup){var i=e;o.setupParentsIntoColumns(i.getChildren(),i)}}))},e.prototype.getOriginalPathForColumn=function(e,t){var o=[],i=!1;return function e(r,n){for(var s=0;s<r.length;s++){if(i)return;var a=r[s];if(a instanceof l.OriginalColumnGroup)e(a.getChildren(),n+1),o[n]=a;else a===t&&(i=!0)}}(e,0),i?o:(console.warn("could not get path"),null)},i([n.Autowired("columnUtils"),r("design:type",s.ColumnUtils)],e.prototype,"columnUtils",void 0),i([n.Autowired("context"),r("design:type",p.Context)],e.prototype,"context",void 0),e=i([p.Bean("displayedGroupCreator")],e)}();t.DisplayedGroupCreator=c},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/Object.defineProperty(t,"__esModule",{value:!0});var i=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){void 0===t&&(t=!1),this.active?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){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}();t.ChangedPath=i},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/var i=this&&this.__decorate||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},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),s=o(3),a=function(){function e(){this.executeNextFuncs=[],this.executeLaterFuncs=[],this.active=!1,this.animationThreadCount=0}return e.prototype.registerGridComp=function(e){this.gridPanel=e},e.prototype.isActive=function(){return this.active},e.prototype.start=function(){this.active||this.gridOptionsWrapper.isSuppressColumnMoveAnimation()||this.gridOptionsWrapper.isEnableRtl()||(this.ensureAnimationCssClassPresent(),this.active=!0)},e.prototype.finish=function(){this.active&&(this.flush(),this.active=!1)},e.prototype.executeNextVMTurn=function(e){this.active?this.executeNextFuncs.push(e):e()},e.prototype.executeLaterVMTurn=function(e){this.active?this.executeLaterFuncs.push(e):e()},e.prototype.ensureAnimationCssClassPresent=function(){var e=this;this.animationThreadCount++;var t=this.animationThreadCount;this.gridPanel.setColumnMovingCss(!0),this.executeLaterFuncs.push((function(){e.animationThreadCount===t&&e.gridPanel.setColumnMovingCss(!1)}))},e.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))},i([n.Autowired("gridOptionsWrapper"),r("design:type",s.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),e=i([n.Bean("columnAnimationService")],e)}();t.ColumnAnimationService=a},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/var i=this&&this.__decorate||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},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),s=o(3),a=o(4),l=o(25),p=o(129),u=o(135),c=o(134),d=o(2),h=function(){function e(){this.cellRendererMap={}}var t;return t=e,e.prototype.init=function(){this.cellRendererMap[t.ANIMATE_SLIDE]=p.AnimateSlideCellRenderer,this.cellRendererMap[t.ANIMATE_SHOW_CHANGE]=u.AnimateShowChangeCellRenderer,this.cellRendererMap[t.GROUP]=c.GroupCellRenderer},e.prototype.addCellRenderer=function(e,t){this.cellRendererMap[e]=t},e.prototype.getCellRenderer=function(e){var t=this.cellRendererMap[e];return d._.missing(t)?(console.warn("ag-Grid: unable to find cellRenderer for key "+e),null):t},e.ANIMATE_SLIDE="animateSlide",e.ANIMATE_SHOW_CHANGE="animateShowChange",e.GROUP="group",i([n.Autowired("gridOptionsWrapper"),r("design:type",s.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([n.Autowired("expressionService"),r("design:type",l.ExpressionService)],e.prototype,"expressionService",void 0),i([n.Autowired("eventService"),r("design:type",a.EventService)],e.prototype,"eventService",void 0),i([n.PostConstruct,r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],e.prototype,"init",null),e=t=i([n.Bean("cellRendererFactory")],e)}();t.CellRendererFactory=h},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),n=this&&this.__decorate||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},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(8),l=o(11),p=o(0),u=o(3),c=o(2),d=o(7),h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.onFilterChanged=function(){console.warn("ag-Grid: you should not call onFilterChanged() directly on the filter, please call\n gridApi.onFilterChanged() instead. onFilterChanged is not part of the exposed filter interface (it was\n a method that existed on an old version of the filters that was not intended for public use."),this.providedFilterParams.filterChangedCallback()},t.prototype.isFilterActive=function(){return!!this.appliedModel},t.prototype.postConstruct=function(){var e=this.createTemplate();this.setTemplate(e)},t.prototype.init=function(e){this.setParams(e),this.resetUiToDefaults(),this.updateUiVisibility(),this.setupOnBtApplyDebounce()},t.prototype.setParams=function(e){var o=this;if(this.providedFilterParams=e,this.clearActive=!0===e.clearButton,this.applyActive=t.isUseApplyButton(e),e.newRowsAction===t.NEW_ROWS_ACTION_KEEP)this.newRowsActionKeep=!0;else if(e.newRowsAction===t.NEW_ROWS_ACTION_CLEAR)this.newRowsActionKeep=!1;else{var i=this.rowModel.getType(),r=[d.Constants.ROW_MODEL_TYPE_SERVER_SIDE,d.Constants.ROW_MODEL_TYPE_INFINITE];this.newRowsActionKeep=r.indexOf(i)>=0}c._.setDisplayed(this.eApplyButton,this.applyActive),this.addDestroyableEventListener(this.eApplyButton,"click",(function(){return o.onBtApply()})),c._.setDisplayed(this.eClearButton,this.clearActive),this.addDestroyableEventListener(this.eClearButton,"click",this.onBtClear.bind(this));var n=this.applyActive||this.clearActive;c._.setDisplayed(this.eButtonsPanel,n)},t.prototype.getDefaultDebounceMs=function(){return 0},t.prototype.setupOnBtApplyDebounce=function(){var e=t.getDebounceMs(this.providedFilterParams,this.getDefaultDebounceMs());this.onBtApplyDebounce=c._.debounce(this.onBtApply.bind(this),e)},t.prototype.getModel=function(){return this.appliedModel},t.prototype.setModel=function(e){e?this.setModelIntoUi(e):this.resetUiToDefaults(),this.updateUiVisibility(),this.applyModel()},t.prototype.onBtClear=function(){this.resetUiToDefaults(),this.updateUiVisibility(),this.onUiChanged()},t.prototype.applyModel=function(){var e=this.appliedModel;return this.appliedModel=this.getModelFromUi(),!this.areModelsEqual(this.appliedModel,e)},t.prototype.onBtApply=function(e){void 0===e&&(e=!1),this.applyModel()&&this.providedFilterParams.filterChangedCallback({afterFloatingFilter:e})},t.prototype.onNewRowsLoaded=function(){this.newRowsActionKeep||(this.resetUiToDefaults(),this.appliedModel=null)},t.prototype.isNewRowsActionKeep=function(){return this.newRowsActionKeep},t.prototype.onUiChanged=function(e){void 0===e&&(e=!1),this.updateUiVisibility(),this.providedFilterParams.filterModifiedCallback(),e?this.onBtApply(!0):this.applyActive||this.onBtApplyDebounce()},t.prototype.createTemplate=function(){var e=this.createBodyTemplate(),t=this.gridOptionsWrapper.getLocaleTextFunc();return"<div>\n <div class='ag-filter-body-wrapper' ref=\"eFilterBodyWrapper\">"+e+'</div>\n <div class="ag-filter-apply-panel" ref="eButtonsPanel">\n <button type="button" ref="eClearButton">'+t("clearFilter","Clear Filter")+'</button>\n <button type="button" ref="eApplyButton">'+t("applyFilter","Apply Filter")+"</button>\n </div>\n </div>"},t.getDebounceMs=function(e,o){return t.isUseApplyButton(e)?(null!=e.debounceMs&&console.warn("ag-Grid: debounceMs is ignored when applyButton = true"),0):null!=e.debounceMs?e.debounceMs:o},t.isUseApplyButton=function(e){return e.apply&&!e.applyButton&&(console.warn("ag-Grid: as of ag-Grid v21, filterParams.apply is now filterParams.applyButton, please change to applyButton"),e.applyButton=!0),!0===e.applyButton},t.NEW_ROWS_ACTION_KEEP="keep",t.NEW_ROWS_ACTION_CLEAR="clear",n([l.RefSelector("eButtonsPanel"),s("design:type",HTMLElement)],t.prototype,"eButtonsPanel",void 0),n([l.RefSelector("eFilterBodyWrapper"),s("design:type",HTMLElement)],t.prototype,"eFilterBodyWrapper",void 0),n([l.RefSelector("eApplyButton"),s("design:type",HTMLElement)],t.prototype,"eApplyButton",void 0),n([l.RefSelector("eClearButton"),s("design:type",HTMLElement)],t.prototype,"eClearButton",void 0),n([p.Autowired("gridOptionsWrapper"),s("design:type",u.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),n([p.Autowired("rowModel"),s("design:type",Object)],t.prototype,"rowModel",void 0),n([p.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"postConstruct",null),t}(a.Component);t.ProvidedFilter=h},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),n=this&&this.__decorate||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},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(15),l=o(0),p=o(4),u=o(35),c=o(3),d=o(2),h=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.scrollY=0,t.uiBodyHeight=0,t}return r(t,e),t.prototype.postConstruct=function(){this.addDestroyableEventListener(this.eventService,u.Events.EVENT_BODY_HEIGHT_CHANGED,this.updateOffset.bind(this)),this.scrollBarWidth=this.gridOptionsWrapper.getScrollbarWidth(),this.maxDivHeight=d._.getMaxDivHeight()},t.prototype.registerGridComp=function(e){this.gridPanel=e},t.prototype.isScaling=function(){return this.scaling},t.prototype.getOffset=function(){return this.offset},t.prototype.updateOffset=function(){if(this.scaling){var e=this.gridPanel.getVScrollPosition().top,t=this.getUiBodyHeight();(e!==this.scrollY||t!==this.uiBodyHeight)&&(this.scrollY=e,this.uiBodyHeight=t,this.calculateOffset())}},t.prototype.calculateOffset=function(){this.uiContainerHeight=this.maxDivHeight,this.pixelsToShave=this.modelHeight-this.uiContainerHeight,this.maxScrollY=this.uiContainerHeight-this.uiBodyHeight;var e=this.scrollY/this.maxScrollY;this.setOffset(e*this.pixelsToShave)},t.prototype.clearOffset=function(){this.uiContainerHeight=this.modelHeight,this.pixelsToShave=0,this.setOffset(0)},t.prototype.setOffset=function(e){var t="number"==typeof e?Math.floor(e):null;this.offset!==t&&(this.offset=t,this.eventService.dispatchEvent({type:u.Events.EVENT_HEIGHT_SCALE_CHANGED}))},t.prototype.setModelHeight=function(e){this.modelHeight=e,this.scaling=this.maxDivHeight>0&&e>this.maxDivHeight,this.scaling?this.calculateOffset():this.clearOffset()},t.prototype.getUiContainerHeight=function(){return this.uiContainerHeight},t.prototype.getRealPixelPosition=function(e){return e-this.offset},t.prototype.getUiBodyHeight=function(){var e=this.gridPanel.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},n([l.Autowired("eventService"),s("design:type",p.EventService)],t.prototype,"eventService",void 0),n([l.Autowired("gridOptionsWrapper"),s("design:type",c.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),n([l.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"postConstruct",null),t=n([l.Bean("maxDivHeightScaler")],t)}(a.BeanStub);t.MaxDivHeightScaler=h},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/var i=this&&this.__decorate||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},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var n=o(7),s=o(0),a=o(30),l=o(2),p=function(){function e(){}return e.prototype.getRowNode=function(e){switch(e.rowPinned){case n.Constants.PINNED_TOP:return this.pinnedRowModel.getPinnedTopRowData()[e.rowIndex];case n.Constants.PINNED_BOTTOM:return this.pinnedRowModel.getPinnedBottomRowData()[e.rowIndex];default:return this.rowModel.getRow(e.rowIndex)}},e.prototype.sameRow=function(e,t){return!e&&!t||!(e&&!t||!e&&t)&&(e.rowIndex===t.rowIndex&&e.rowPinned==t.rowPinned)},e.prototype.before=function(e,t){switch(e.rowPinned){case n.Constants.PINNED_TOP:if(t.rowPinned!==n.Constants.PINNED_TOP)return!0;break;case n.Constants.PINNED_BOTTOM:if(t.rowPinned!==n.Constants.PINNED_BOTTOM)return!1;break;default:if(l._.exists(t.rowPinned))return t.rowPinned!==n.Constants.PINNED_TOP}return e.rowIndex<t.rowIndex},i([s.Autowired("rowModel"),r("design:type",Object)],e.prototype,"rowModel",void 0),i([s.Autowired("pinnedRowModel"),r("design:type",a.PinnedRowModel)],e.prototype,"pinnedRowModel",void 0),e=i([s.Bean("rowPositionUtils")],e)}();t.RowPositionUtils=p},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/var i=this&&this.__decorate||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},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var n=o(3),s=o(0),a=o(37),l=function(){function e(){}return e.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)}},e.prototype.onDragStart=function(e,t){this.draggingStarted=!0,this.dragStartX=t.clientX,this.setResizeIcons();var o=t instanceof MouseEvent&&!0===t.shiftKey;e.onResizeStart(o)},e.prototype.setResizeIcons=function(){this.oldBodyCursor=this.eGridDiv.style.cursor,this.oldMsUserSelect=this.eGridDiv.style.msUserSelect,this.oldWebkitUserSelect=this.eGridDiv.style.webkitUserSelect,this.eGridDiv.style.cursor="col-resize",this.eGridDiv.style.msUserSelect="none",this.eGridDiv.style.webkitUserSelect="none"},e.prototype.onDragStop=function(e,t){e.onResizeEnd(this.resizeAmount),this.resetIcons()},e.prototype.resetIcons=function(){this.eGridDiv.style.cursor=this.oldBodyCursor,this.eGridDiv.style.msUserSelect=this.oldMsUserSelect,this.eGridDiv.style.webkitUserSelect=this.oldWebkitUserSelect},e.prototype.onDragging=function(e,t){this.resizeAmount=t.clientX-this.dragStartX,e.onResizing(this.resizeAmount)},i([s.Autowired("gridOptionsWrapper"),r("design:type",n.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([s.Autowired("dragService"),r("design:type",a.DragService)],e.prototype,"dragService",void 0),i([s.Autowired("eGridDiv"),r("design:type",HTMLElement)],e.prototype,"eGridDiv",void 0),e=i([s.Bean("horizontalResizeService")],e)}();t.HorizontalResizeService=l},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var n=o(12),s=o(15),a=o(7),l=o(2),p=function(e){function t(t,o,i,r){var n=e.call(this)||this;return n.columnOrGroup=t,n.eCell=o,n.colsSpanning=r,n.beans=i,n.printLayout=i.gridOptionsWrapper.getDomLayout()===a.Constants.DOM_LAYOUT_PRINT,n}return r(t,e),t.prototype.setColsSpanning=function(e){this.colsSpanning=e,this.onLeftChanged()},t.prototype.getColumnOrGroup=function(){return this.beans.gridOptionsWrapper.isEnableRtl()&&this.colsSpanning?l._.last(this.colsSpanning):this.columnOrGroup},t.prototype.init=function(){this.addDestroyableEventListener(this.columnOrGroup,n.Column.EVENT_LEFT_CHANGED,this.onLeftChanged.bind(this)),this.setLeftFirstTime()},t.prototype.setLeftFirstTime=function(){var e=this.beans.gridOptionsWrapper.isSuppressColumnMoveAnimation(),t=l._.exists(this.columnOrGroup.getOldLeft());this.beans.columnAnimationService.isActive()&&t&&!e?this.animateInLeft():this.onLeftChanged()},t.prototype.animateInLeft=function(){var e=this,t=this.getColumnOrGroup().getLeft(),o=this.getColumnOrGroup().getOldLeft();this.setLeft(o),this.actualLeft=t,this.beans.columnAnimationService.executeNextVMTurn((function(){e.actualLeft===t&&e.setLeft(t)}))},t.prototype.onLeftChanged=function(){var e=this.getColumnOrGroup(),t=e.getLeft();this.actualLeft=this.modifyLeftForPrintLayout(e,t),this.setLeft(this.actualLeft)},t.prototype.modifyLeftForPrintLayout=function(e,t){return this.printLayout?e.getPinned()===n.Column.PINNED_LEFT?t:e.getPinned()===n.Column.PINNED_RIGHT?this.beans.columnController.getPinnedLeftContainerWidth()+this.beans.columnController.getBodyContainerWidth()+t:this.beans.columnController.getPinnedLeftContainerWidth()+t:t},t.prototype.setLeft=function(e){l._.exists(e)&&(this.eCell.style.left=e+"px")},t}(s.BeanStub);t.SetLeftFeature=p},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/var i=this&&this.__decorate||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},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},n=this&&this.__param||function(e,t){return function(o,i){t(o,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});var s=o(3),a=o(5),l=o(4),p=o(14),u=o(6),c=o(0),d=o(0),h=o(0),f=o(0),g=function(){function e(){this.consuming=!1}return e.prototype.setBeans=function(e){this.logger=e.create("AlignedGridsService")},e.prototype.registerGridComp=function(e){this.gridPanel=e},e.prototype.init=function(){this.eventService.addEventListener(u.Events.EVENT_COLUMN_MOVED,this.fireColumnEvent.bind(this)),this.eventService.addEventListener(u.Events.EVENT_COLUMN_VISIBLE,this.fireColumnEvent.bind(this)),this.eventService.addEventListener(u.Events.EVENT_COLUMN_PINNED,this.fireColumnEvent.bind(this)),this.eventService.addEventListener(u.Events.EVENT_COLUMN_GROUP_OPENED,this.fireColumnEvent.bind(this)),this.eventService.addEventListener(u.Events.EVENT_COLUMN_RESIZED,this.fireColumnEvent.bind(this)),this.eventService.addEventListener(u.Events.EVENT_BODY_SCROLL,this.fireScrollEvent.bind(this))},e.prototype.fireEvent=function(e){if(!this.consuming){var t=this.gridOptionsWrapper.getAlignedGrids();t&&t.forEach((function(t){if(t.api){var o=t.api.__getAlignedGridService();e(o)}}))}},e.prototype.onEvent=function(e){this.consuming=!0,e(),this.consuming=!1},e.prototype.fireColumnEvent=function(e){this.fireEvent((function(t){t.onColumnEvent(e)}))},e.prototype.fireScrollEvent=function(e){"horizontal"===e.direction&&this.fireEvent((function(t){t.onScrollEvent(e)}))},e.prototype.onScrollEvent=function(e){var t=this;this.onEvent((function(){t.gridPanel.setHorizontalScrollPosition(e.left)}))},e.prototype.getMasterColumns=function(e){var t=[];return e.columns?e.columns.forEach((function(e){t.push(e)})):e.column&&t.push(e.column),t},e.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},e.prototype.onColumnEvent=function(e){var t=this;this.onEvent((function(){switch(e.type){case u.Events.EVENT_COLUMN_MOVED:case u.Events.EVENT_COLUMN_VISIBLE:case u.Events.EVENT_COLUMN_PINNED:case u.Events.EVENT_COLUMN_RESIZED:var o=e;t.processColumnEvent(o);break;case u.Events.EVENT_COLUMN_GROUP_OPENED:var i=e;t.processGroupOpenedEvent(i);break;case u.Events.EVENT_COLUMN_PIVOT_CHANGED:console.warn("ag-Grid: pivoting is not supported with aligned grids. You can only use one of these features at a time in a grid.")}}))},e.prototype.processGroupOpenedEvent=function(e){var t,o=e.columnGroup;if(o){var i=o.getGroupId();t=this.columnController.getOriginalColumnGroup(i)}o&&!t||(this.logger.log("onColumnEvent-> processing "+e+" expanded = "+o.isExpanded()),this.columnController.setColumnGroupOpened(t,o.isExpanded(),"alignedGridChanged"))},e.prototype.processColumnEvent=function(e){var t,o=this,i=e.column;if(i&&(t=this.columnController.getPrimaryColumn(i.getColId())),!i||t){var r=this.getColumnIds(e),n=this.getMasterColumns(e);switch(e.type){case u.Events.EVENT_COLUMN_MOVED:var s=e;this.logger.log("onColumnEvent-> processing "+e.type+" toIndex = "+s.toIndex),this.columnController.moveColumns(r,s.toIndex,"alignedGridChanged");break;case u.Events.EVENT_COLUMN_VISIBLE:var a=e;this.logger.log("onColumnEvent-> processing "+e.type+" visible = "+a.visible),this.columnController.setColumnsVisible(r,a.visible,"alignedGridChanged");break;case u.Events.EVENT_COLUMN_PINNED:var l=e;this.logger.log("onColumnEvent-> processing "+e.type+" pinned = "+l.pinned),this.columnController.setColumnsPinned(r,l.pinned,"alignedGridChanged");break;case u.Events.EVENT_COLUMN_RESIZED:var p=e;n.forEach((function(t){o.logger.log("onColumnEvent-> processing "+e.type+" actualWidth = "+t.getActualWidth()),o.columnController.setColumnWidth(t.getColId(),t.getActualWidth(),!1,p.finished,"alignedGridChanged")}))}var c=this.gridPanel.isVerticalScrollShowing();this.gridOptionsWrapper.getAlignedGrids().forEach((function(e){e.api.setAlwaysShowVerticalScroll(c)}))}},i([h.Autowired("gridOptionsWrapper"),r("design:type",s.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([h.Autowired("columnController"),r("design:type",a.ColumnController)],e.prototype,"columnController",void 0),i([h.Autowired("eventService"),r("design:type",l.EventService)],e.prototype,"eventService",void 0),i([n(0,d.Qualifier("loggerFactory")),r("design:type",Function),r("design:paramtypes",[p.LoggerFactory]),r("design:returntype",void 0)],e.prototype,"setBeans",null),i([f.PostConstruct,r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],e.prototype,"init",null),e=i([c.Bean("alignedGridsService")],e)}();t.AlignedGridsService=g},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/var i=this&&this.__decorate||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},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),s=o(3),a=o(2),l=function(){function e(){}return e.prototype.observeResize=function(e,t,o){void 0===o&&(o=50);var i,r,n,s,l,p=this.frameworkOverrides,u=a._.debounce(t,o),c=this.gridOptionsWrapper.isSuppressBrowserResizeObserver();return!!window.ResizeObserver&&!c?((l=new window.ResizeObserver(u)).observe(e),function(){return l.disconnect()}):(i=a._.offsetWidth(e),r=a._.offsetHeight(e),n=!0,(s=function(){if(n){var l=a._.offsetWidth(e),u=a._.offsetHeight(e);(l!==i||u!==r)&&(i=l,r=u,t()),p.setTimeout(s,o)}})(),function(){return n=!1})},i([n.Autowired("gridOptionsWrapper"),r("design:type",s.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([n.Autowired("frameworkOverrides"),r("design:type",Object)],e.prototype,"frameworkOverrides",void 0),e=i([n.Bean("resizeObserverService")],e)}();t.ResizeObserverService=l},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var n=o(2),s=o(22),a=function(e){function t(o,i){var r=e.call(this)||this;return r.version=0,r.state=t.STATE_DIRTY,r.rowNodeCacheParams=i,r.blockNumber=o,r.startRow=o*i.blockSize,r.endRow=r.startRow+i.blockSize,r}return r(t,e),t.prototype.isAnyNodeOpen=function(e){var t=!1;return this.forEachNodeCallback((function(e){e.expanded&&(t=!0)}),e),t},t.prototype.forEachNodeCallback=function(e,t){for(var o=this.startRow;o<this.endRow;o++){if(o<t)e(this.getRowUsingLocalIndex(o),o)}},t.prototype.forEachNode=function(e,t,o,i){this.forEachNodeCallback((function(o){e(o,t.next()),i&&o.childrenCache&&o.childrenCache.forEachNodeDeep(e,t)}),o)},t.prototype.forEachNodeDeep=function(e,t,o){this.forEachNode(e,t,o,!0)},t.prototype.forEachNodeShallow=function(e,t,o){this.forEachNode(e,t,o,!1)},t.prototype.getVersion=function(){return this.version},t.prototype.getLastAccessed=function(){return this.lastAccessed},t.prototype.getRowUsingLocalIndex=function(e,t){void 0===t&&(t=!1),t||(this.lastAccessed=this.rowNodeCacheParams.lastAccessedSequence.next());var o=e-this.startRow;return this.rowNodes[o]},t.prototype.init=function(e){this.beans=e,this.createRowNodes()},t.prototype.getStartRow=function(){return this.startRow},t.prototype.getEndRow=function(){return this.endRow},t.prototype.getBlockNumber=function(){return this.blockNumber},t.prototype.setDirty=function(){this.version++,this.state=t.STATE_DIRTY},t.prototype.setDirtyAndPurge=function(){this.setDirty(),this.rowNodes.forEach((function(e){e.setData(null)}))},t.prototype.getState=function(){return this.state},t.prototype.setRowNode=function(e,t){var o=e-this.startRow;this.rowNodes[o]=t},t.prototype.setBlankRowNode=function(e){var t=e-this.startRow,o=this.createBlankRowNode(e);return this.rowNodes[t]=o,o},t.prototype.setNewData=function(e,t){var o=this.setBlankRowNode(e);return this.setDataAndId(o,t,this.startRow+e),o},t.prototype.createBlankRowNode=function(e){var t=new s.RowNode;return this.beans.context.wireBean(t),t.setRowHeight(this.rowNodeCacheParams.rowHeight),t},t.prototype.createRowNodes=function(){this.rowNodes=[];for(var e=0;e<this.rowNodeCacheParams.blockSize;e++){var t=this.startRow+e,o=this.createBlankRowNode(t);this.rowNodes.push(o)}},t.prototype.load=function(){this.state=t.STATE_LOADING,this.loadFromDatasource()},t.prototype.pageLoadFailed=function(){this.state=t.STATE_FAILED;var e={type:t.EVENT_LOAD_COMPLETE,success:!1,page:this,lastRow:null};this.dispatchEvent(e)},t.prototype.populateWithRowData=function(e){var t=this,o=[];this.rowNodes.forEach((function(i,r){var n=e[r];i.stub&&o.push(i),t.setDataAndId(i,n,t.startRow+r)})),o.length>0&&this.beans.rowRenderer.redrawRows(o)},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.rowNodes.forEach((function(e){e.childrenCache&&(e.childrenCache.destroy(),e.childrenCache=null),e.clearRowTop()}))},t.prototype.pageLoaded=function(e,o,i){e===this.version&&(this.state=t.STATE_LOADED,this.populateWithRowData(o)),i=n._.cleanNumber(i);var r={type:t.EVENT_LOAD_COMPLETE,success:!0,page:this,lastRow:i};this.dispatchEvent(r)},t.EVENT_LOAD_COMPLETE="loadComplete",t.STATE_DIRTY="dirty",t.STATE_LOADING="loading",t.STATE_LOADED="loaded",t.STATE_FAILED="failed",t}(o(15).BeanStub);t.RowNodeBlock=a},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),n=this&&this.__decorate||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},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(37),l=o(0),p=o(156),u=o(8),c=o(2),d=function(e){function t(t){var o=e.call(this,t)||this;return o.RESIZE_TEMPLATE='\n <div class="ag-resizer-wrapper">\n <div ref="eTopLeftResizer" class="ag-resizer ag-resizer-topLeft"></div>\n <div ref="eTopResizer" class="ag-resizer ag-resizer-top"></div>\n <div ref="eTopRightResizer" class="ag-resizer ag-resizer-topRight"></div>\n <div ref="eRightResizer" class="ag-resizer ag-resizer-right"></div>\n <div ref="eBottomRightResizer" class="ag-resizer ag-resizer-bottomRight"></div>\n <div ref="eBottomResizer" class="ag-resizer ag-resizer-bottom"></div>\n <div ref="eBottomLeftResizer" class="ag-resizer ag-resizer-bottomLeft"></div>\n <div ref="eLeftResizer" class="ag-resizer ag-resizer-left"></div>\n </div>\n ',o.MAXIMIZE_BTN_TEMPLATE='<div class="ag-dialog-button"></span>',o.resizable={},o.isResizable=!1,o.movable=!1,o.isMoving=!1,o.isMaximizable=!1,o.isMaximized=!1,o.maximizeListeners=[],o.resizeListenerDestroy=null,o.isResizing=!1,o.lastPosition={x:0,y:0,width:0,height:0},o}return r(t,e),t.prototype.postConstruct=function(){var t=this,o=this.getGui(),i=this.config,r=i.movable,n=i.resizable,s=i.maximizable;c._.addCssClass(o,"ag-dialog"),this.moveElement=this.eTitleBar,e.prototype.postConstruct.call(this),this.addDestroyableEventListener(o,"focusin",(function(e){o.contains(e.relatedTarget)||t.popupService.bringPopupToFront(o)})),r&&this.setMovable(r),s&&this.setMaximizable(s),this.addResizers(),n&&this.setResizable(n)},t.prototype.renderComponent=function(){var e=this.getGui(),t=this.config,o=t.alwaysOnTop,i=t.modal;this.close=this.popupService.addPopup(i,e,!0,this.destroy.bind(this),void 0,o),e.focus()},t.prototype.addResizers=function(){var e=this.getGui();if(e){var t=(new DOMParser).parseFromString(this.RESIZE_TEMPLATE,"text/html").body;e.appendChild(t.firstChild),this.createMap()}},t.prototype.createMap=function(){var e=this.getGui();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.getResizerElement=function(e){return this.resizerMap[e].element},t.prototype.onResizeStart=function(e){this.isResizing=!0,this.updateDragStartPosition(e.clientX,e.clientY)},t.prototype.onResize=function(e,t){if(this.isResizing){var o=!!t.match(/left/i),i=!!t.match(/right/i),r=!!t.match(/top/i),n=!!t.match(/bottom/i),s=o||i,a=r||n,l=this.calculateMouseMovement({e:e,isLeft:o,isTop:r}),p=l.movementX,u=l.movementY,c=0,d=0;if(s&&p){var h=o?-1:1,f=this.getWidth(),g=f+p*h,y=!1;o&&(c=f-g,(this.position.x+c<=0||g<=this.minWidth)&&(y=!0,c=0)),y||this.setWidth(g)}if(a&&u){h=r?-1:1;var v=this.getHeight(),m=v+u*h,C=!1;r&&(d=v-m,(this.position.y+d<=0||m<=this.minHeight)&&(C=!0,d=0)),C||this.setHeight(m)}this.updateDragStartPosition(e.clientX,e.clientY),(c||d)&&this.offsetElement(this.position.x+c,this.position.y+d)}},t.prototype.onResizeEnd=function(){this.isResizing=!1;var e={type:"resize",api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi()};this.localEventService&&this.localEventService.dispatchEvent(e)},t.prototype.onMoveStart=function(e){this.isMoving=!0,this.updateDragStartPosition(e.clientX,e.clientY)},t.prototype.onMove=function(e){if(this.isMoving){var t=this.position,o=t.x,i=t.y,r=this.calculateMouseMovement({e:e,isTop:!0,anywhereWithin:!0,topBuffer:this.getHeight()-this.getBodyHeight()}),n=r.movementX,s=r.movementY;this.offsetElement(o+n,i+s),this.updateDragStartPosition(e.clientX,e.clientY)}},t.prototype.onMoveEnd=function(){this.isMoving=!1},t.prototype.toggleMaximize=function(){if(this.isMaximized){var e=this.lastPosition,t=e.x,o=e.y,i=e.width,r=e.height;this.setWidth(i),this.setHeight(r),this.offsetElement(t,o)}else this.lastPosition.width=this.getWidth(),this.lastPosition.height=this.getHeight(),this.lastPosition.x=this.position.x,this.lastPosition.y=this.position.y,this.offsetElement(0,0),this.setHeight("100%"),this.setWidth("100%");this.isMaximized=!this.isMaximized,this.refreshMaximizeIcon()},t.prototype.refreshMaximizeIcon=function(){c._.addOrRemoveCssClass(this.maximizeIcon,"ag-hidden",this.isMaximized),c._.addOrRemoveCssClass(this.minimizeIcon,"ag-hidden",!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(){e.prototype.destroy.call(this),this.setResizable(!1),this.setMovable(!1),this.maximizeButtonComp&&(this.maximizeButtonComp.destroy(),this.maximizeButtonComp=void 0),this.clearMaximizebleListeners()},t.prototype.setResizable=function(e){var t=this,o=!1;"boolean"==typeof e&&(e={topLeft:e,top:e,topRight:e,right:e,bottomRight:e,bottom:e,bottomLeft:e,left:e}),Object.keys(e).forEach((function(i){var r=i,n=!!e[r],s=t.getResizerElement(r),a=t.resizerMap[r].dragSource||{eElement:s,onDragStart:t.onResizeStart.bind(t),onDragging:function(e){return t.onResize(e,r)},onDragStop:t.onResizeEnd.bind(t)};!!t.resizable[r]===n&&(t.isAlive()||n)||(n?(t.dragService.addDragSource(a),s.style.pointerEvents="all",o=!0):(t.dragService.removeDragSource(a),s.style.pointerEvents="none"),t.resizerMap[r].dragSource=n?a:void 0)})),this.isResizable=o},t.prototype.setMovable=function(e){if(e!==this.movable){this.movable=e;var t=this.moveElementDragListener||{eElement:this.moveElement,onDragStart:this.onMoveStart.bind(this),onDragging:this.onMove.bind(this),onDragStop:this.onMoveEnd.bind(this)};e?(this.dragService.addDragSource(t),this.moveElementDragListener=t):(this.dragService.removeDragSource(t),this.moveElementDragListener=void 0)}},t.prototype.setMaximizable=function(e){var t=this;if(!1===e)return this.clearMaximizebleListeners(),void(this.maximizeButtonComp&&(this.maximizeButtonComp.destroy(),this.maximizeButtonComp=this.maximizeIcon=this.minimizeIcon=void 0));var o=this.eTitleBar;if(o&&e!==this.isMaximizable){var i=this.maximizeButtonComp=new u.Component(this.MAXIMIZE_BTN_TEMPLATE);this.getContext().wireBean(i);var r=i.getGui();r.appendChild(this.maximizeIcon=c._.createIconNoSpan("maximize",this.gridOptionsWrapper)),r.appendChild(this.minimizeIcon=c._.createIconNoSpan("minimize",this.gridOptionsWrapper)),c._.addCssClass(this.minimizeIcon,"ag-hidden"),i.addDestroyableEventListener(r,"click",this.toggleMaximize.bind(this)),this.addTitleBarButton(i,0),this.maximizeListeners.push(this.addDestroyableEventListener(o,"dblclick",this.toggleMaximize.bind(this))),this.resizeListenerDestroy=this.addDestroyableEventListener(this,"resize",(function(){t.isMaximized=!1,t.refreshMaximizeIcon()}))}},n([l.Autowired("dragService"),s("design:type",a.DragService)],t.prototype,"dragService",void 0),t}(p.AgPanel);t.AgDialog=d},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var n=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.className="ag-number-field",t.inputType="number",t}return r(t,e),t.prototype.postConstruct=function(){var t=this;e.prototype.postConstruct.call(this),this.addDestroyableEventListener(this.eInput,"blur",(function(){var e=t.normalizeValue(t.eInput.value);t.value!==e&&t.setValue(e)}))},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:(this.min=e,null!=this.min?this.eInput.setAttribute("min",e.toString()):this.eInput.removeAttribute("min"),this)},t.prototype.setMax=function(e){return this.max===e?this:(this.max=e,null!=this.max?this.eInput.setAttribute("max",e.toString()):this.eInput.removeAttribute("max"),this)},t.prototype.setPrecision=function(e){return this.precision=e,this},t.prototype.setStep=function(e){return this.step===e?this:(this.step=e,null!=e?this.eInput.setAttribute("step",e.toString()):this.eInput.removeAttribute("step"),this)},t.prototype.setValue=function(t,o){return(t=this.adjustPrecision(t))!=this.normalizeValue(t)?this:e.prototype.setValue.call(this,t,o)},t}(o(157).AgInputTextField);t.AgInputNumberField=n},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(29),r=function(){function e(e){void 0===e&&(e=[1,0,0,1,0,0]),this.elements=e}return e.prototype.setElements=function(e){var t=this.elements;return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],this},e.prototype.setIdentityElements=function(){var e=this.elements;return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,this},Object.defineProperty(e.prototype,"identity",{get:function(){var e=this.elements;return 1===e[0]&&0===e[1]&&0===e[2]&&1===e[3]&&0===e[4]&&0===e[5]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"a",{get:function(){return this.elements[0]},set:function(e){this.elements[0]=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"b",{get:function(){return this.elements[1]},set:function(e){this.elements[1]=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"c",{get:function(){return this.elements[2]},set:function(e){this.elements[2]=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"d",{get:function(){return this.elements[3]},set:function(e){this.elements[3]=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"e",{get:function(){return this.elements[4]},set:function(e){this.elements[4]=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"f",{get:function(){return this.elements[5]},set:function(e){this.elements[5]=e},enumerable:!0,configurable:!0}),e.prototype.AxB=function(e,t,o){var i=e[0],r=e[1],n=e[2],s=e[3],a=e[4],l=e[5],p=t[0],u=t[1],c=t[2],d=t[3],h=t[4],f=t[5];(o=o||e)[0]=i*p+n*u,o[1]=r*p+s*u,o[2]=i*c+n*d,o[3]=r*c+s*d,o[4]=i*h+n*f+a,o[5]=r*h+s*f+l},e.prototype.multiplySelf=function(e){return this.AxB(this.elements,e.elements),this},e.prototype.multiply=function(t){var o=new Array(6);return this.AxB(this.elements,t.elements,o),new e(o)},e.prototype.preMultiplySelf=function(e){return this.AxB(e.elements,this.elements,this.elements),this},e.prototype.inverse=function(){var t=this.elements,o=t[0],i=t[1],r=t[2],n=t[3],s=t[4],a=t[5],l=1/(o*n-i*r);return new e([n*=l,-(i*=l),-(r*=l),o*=l,r*a-n*s,i*s-o*a])},e.prototype.inverseTo=function(e){var t=this.elements,o=t[0],i=t[1],r=t[2],n=t[3],s=t[4],a=t[5],l=1/(o*n-i*r);return o*=l,i*=l,r*=l,n*=l,e.setElements([n,-i,-r,o,r*a-n*s,i*s-o*a]),this},e.prototype.invertSelf=function(){var e=this.elements,t=e[0],o=e[1],i=e[2],r=e[3],n=e[4],s=e[5],a=1/(t*r-o*i);return t*=a,o*=a,i*=a,r*=a,e[0]=r,e[1]=-o,e[2]=-i,e[3]=t,e[4]=i*s-r*n,e[5]=o*n-t*s,this},e.prototype.clone=function(){return new e(this.elements.slice())},e.prototype.transformPoint=function(e,t){var o=this.elements;return{x:e*o[0]+t*o[2]+o[4],y:e*o[1]+t*o[3]+o[5]}},e.prototype.transformBBox=function(e,t,o){void 0===t&&(t=0);var r,n,s=this.elements,a=s[0],l=s[1],p=s[2],u=s[3],c=.5*e.width,d=.5*e.height,h=e.x+c,f=e.y+d;if(t){c-=t,d-=t;var g=Math.sqrt(a*a+p*p),y=Math.sqrt(l*l+u*u);r=Math.abs(c*a)+Math.abs(d*p)+Math.abs(g*t),n=Math.abs(c*l)+Math.abs(d*u)+Math.abs(y*t)}else r=Math.abs(c*a)+Math.abs(d*p),n=Math.abs(c*l)+Math.abs(d*u);return o||(o=new i.BBox(0,0,0,0)),o.x=h*a+f*p+s[4]-r,o.y=h*l+f*u+s[5]-n,o.width=r+r,o.height=n+n,o},e.prototype.toContext=function(e){if(!this.identity){var t=this.elements;e.transform(t[0],t[1],t[2],t[3],t[4],t[5])}},e.flyweight=function(t){return t?t instanceof e?e.matrix.setElements(t.elements):e.matrix.setElements(t):e.matrix.setIdentityElements(),e.matrix},e.matrix=new e,e}();t.Matrix=r},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.chainObjects=function(e,t){var o=Object.create(e);for(var i in t)t.hasOwnProperty(i)&&(o[i]=t[i]);return o}},function(e,t,o){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var n,s=o(41),a=o(72),l=o(29);!function(e){e[e.Content=0]="Content",e[e.Border=1]="Border"}(n=t.RectSizing||(t.RectSizing={}));var p=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.path=new a.Path2D,t._dirtyPath=!0,t._x=0,t._y=0,t._width=10,t._height=10,t._radius=0,t._crisp=!1,t.effectiveStrokeWidth=s.Shape.defaultStyles.strokeWidth,t._sizing=n.Content,t.getBBox=function(){return new l.BBox(t.x,t.y,t.width,t.height)},t}return r(t,e),t.create=function(e,o,i,r,n){void 0===n&&(n=0);var s=new t;return s.x=e,s.y=o,s.width=i,s.height=r,s.radius=n,s},Object.defineProperty(t.prototype,"dirtyPath",{get:function(){return this._dirtyPath},set:function(e){this._dirtyPath!==e&&(this._dirtyPath=e,e&&(this.dirty=!0))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"x",{get:function(){return this._x},set:function(e){this._x!==e&&(this._x=e,this.dirtyPath=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"y",{get:function(){return this._y},set:function(e){this._y!==e&&(this._y=e,this.dirtyPath=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function(){return this._width},set:function(e){this._width!==e&&(this._width=e,this.dirtyPath=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this._height},set:function(e){this._height!==e&&(this._height=e,this.dirtyPath=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"radius",{get:function(){return this._radius},set:function(e){this._radius!==e&&(this._radius=e,this.dirtyPath=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"crisp",{get:function(){return this._crisp},set:function(e){this._crisp!==e&&(this._crisp=e,this.dirtyPath=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"strokeWidth",{get:function(){return this._strokeWidth},set:function(e){this._strokeWidth!==e&&(this._strokeWidth=e,this.crisp||this.sizing===n.Border?this.dirtyPath=!0:(this.effectiveStrokeWidth=e,this.dirty=!0))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"sizing",{get:function(){return this._sizing},set:function(e){this._sizing!==e&&(this._sizing=e,this.dirtyPath=!0)},enumerable:!0,configurable:!0}),t.prototype.updatePath=function(){if(this.dirtyPath){var e=this.sizing===n.Border,t=this.path;t.clear();var o,i=this.x,r=this.y,s=this.width,a=this.height;if(e){var l=s/2,p=a/2;o=Math.min(this.strokeWidth,l,p),i=Math.min(i+o/2,i+l),r=Math.min(r+o/2,r+p),s=Math.max(s-o,0),a=Math.max(a-o,0)}else o=this.strokeWidth;if(this.effectiveStrokeWidth=o,this.crisp&&!e){var u=Math.floor(o)%2/2;t.rect(Math.floor(i)+u,Math.floor(r)+u,Math.floor(s)+Math.floor(i%1+s%1),Math.floor(a)+Math.floor(r%1+a%1))}else t.rect(i,r,s,a);this.dirtyPath=!1}},t.prototype.isPointInPath=function(e,t){var o=this.transformPoint(e,t);return this.getBBox().containsPoint(o.x,o.y)},t.prototype.isPointInStroke=function(e,t){return!1},t.prototype.render=function(e){this.dirtyTransform&&this.computeTransformMatrix(),this.matrix.toContext(e),this.updatePath(),this.scene.appendPath(this.path),this.fillStroke(e),this.dirty=!1},t.prototype.fillStroke=function(e){if(this.scene){var t=this.scene.canvas.pixelRatio||1;if(this.fill){e.fillStyle=this.fill,e.globalAlpha=this.opacity*this.fillOpacity;var o=this.fillShadow;o&&o.enabled&&(e.shadowColor=o.color,e.shadowOffsetX=o.xOffset*t,e.shadowOffsetY=o.yOffset*t,e.shadowBlur=o.blur*t),e.fill()}if(e.shadowColor="rgba(0, 0, 0, 0)",this.stroke&&this.effectiveStrokeWidth){e.strokeStyle=this.stroke,e.globalAlpha=this.opacity*this.strokeOpacity,e.lineWidth=this.effectiveStrokeWidth,this.lineDash&&e.setLineDash(this.lineDash),this.lineDashOffset&&(e.lineDashOffset=this.lineDashOffset),this.lineCap&&(e.lineCap=this.lineCap),this.lineJoin&&(e.lineJoin=this.lineJoin);var i=this.strokeShadow;i&&i.enabled&&(e.shadowColor=i.color,e.shadowOffsetX=i.xOffset*t,e.shadowOffsetY=i.yOffset*t,e.shadowBlur=i.blur*t),e.stroke()}}},t.className="Rect",t}(s.Shape);t.Rect=p},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t,o){this._domain=[0,1],this._range=[],this.clamp=!1,this.reinterpolatorFactory=e,this.deinterpolatorFactory=t,this.rangeComparator=o}return Object.defineProperty(e.prototype,"domain",{get:function(){return this._domain},set:function(e){this._domain=e.slice(),this.rescale()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"range",{get:function(){return this._range},set:function(e){this._range=e.slice(),this.rescale()},enumerable:!0,configurable:!0}),e.prototype.convert=function(e){if(!this.piecewiseReinterpolator){if(!this.piecewiseReinterpolatorFactory)throw new Error("Missing piecewiseReinterpolatorFactory");var t=this.clamp?this.clampDeinterpolatorFactory(this.deinterpolatorOf):this.deinterpolatorOf;this.piecewiseReinterpolator=this.piecewiseReinterpolatorFactory(this._domain,this._range,t,this.reinterpolatorFactory)}if(!this.piecewiseReinterpolator)throw new Error("Missing piecewiseReinterpolator");return this.piecewiseReinterpolator(e)},e.prototype.invert=function(e){if(!this.deinterpolatorFactory)throw new Error("Missing deinterpolatorFactory");if(!this.piecewiseDeinterpolator){if(!this.piecewiseDeinterpolatorFactory)throw new Error("Missing piecewiseDeinterpolatorFactory");var t=this.clamp?this.clampReinterpolatorFactory(this.reinterpolatorOf):this.reinterpolatorOf;this.piecewiseDeinterpolator=this.piecewiseDeinterpolatorFactory(this._range,this._domain,this.deinterpolatorFactory,t)}return this.piecewiseDeinterpolator(e)},e.prototype.clampDeinterpolatorFactory=function(e){return function(t,o){var i=e(t,o);return function(e){return e<=t?0:e>=o?1:i(e)}}},e.prototype.clampReinterpolatorFactory=function(e){return function(t,o){var i=e(t,o);return function(e){return e<=0?t:e>=1?o:i(e)}}},e.prototype.rescale=function(){this.piecewiseReinterpolatorFactory=this.bimap,this.piecewiseDeinterpolatorFactory=this.bimapInvert,this.piecewiseDeinterpolator=void 0,this.piecewiseReinterpolator=void 0},e.prototype.bimap=function(e,t,o,i){var r,n,s=e[0],a=e[1],l=t[0],p=t[1];return a<s?(r=o(a,s),n=i(p,l)):(r=o(s,a),n=i(l,p)),function(e){return n(r(e))}},e.prototype.bimapInvert=function(e,t,o,i){var r,n,s=e[0],a=e[1],l=t[0],p=t[1];return p<l?(r=o(a,s),n=i(p,l)):(r=o(s,a),n=i(l,p)),function(e){return n(r(e))}},e}();t.default=i},function(e,t,o){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var n=o(101),s=o(305),a=o(226),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.deinterpolatorOf=function(e,t){var o=t-e;return 0===o||isNaN(o)?function(){return o}:function(t){return(t-e)/o}},t.prototype.reinterpolatorOf=function(e,t){var o=t-e;return function(t){return e+o*t}},t.prototype.ticks=function(e){void 0===e&&(e=10);var t=this._domain;return a.default(t[0],t[t.length-1],e)},t.prototype.nice=function(e){void 0===e&&(e=10);var t,o=this.domain,i=0,r=o.length-1,n=o[i],s=o[r];s<n&&(t=n,n=s,s=t,t=i,i=r,r=t),(t=a.tickIncrement(n,s,e))>0?(n=Math.floor(n/t)*t,s=Math.ceil(s/t)*t,t=a.tickIncrement(n,s,e)):t<0&&(n=Math.ceil(n*t)/t,s=Math.floor(s*t)/t,t=a.tickIncrement(n,s,e)),t>0?(o[i]=Math.floor(n/t)*t,o[r]=Math.ceil(s/t)*t,this.domain=o):t<0&&(o[i]=Math.ceil(n*t)/t,o[r]=Math.floor(s*t)/t,this.domain=o)},t}(n.default);function p(e,t){var o=t-e;return function(t){return e+o*t}}function u(e,t){var o=t-e;return 0===o||isNaN(o)?function(){return o}:function(t){return(t-e)/o}}t.LinearScale=l,t.reinterpolateNumber=p,t.deinterpolateNumber=u,t.default=function(){var e=new l(p,u,s.naturalOrder);return e.range=[0,1],e}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){this.index=new Map,this.ordinalRange=[],this._domain=[],this._range=[0,1],this._bandwidth=1,this._paddingInner=0,this._paddingOuter=0,this._round=!1,this._align=.5}return Object.defineProperty(e.prototype,"domain",{get:function(){return this._domain},set:function(e){var t=this._domain;t.length=0,this.index=new Map;var o=this.index;e.forEach((function(e){void 0===o.get(e)&&o.set(e,t.push(e)-1)})),this.rescale()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"range",{get:function(){return this._range},set:function(e){this._range[0]=e[0],this._range[1]=e[1],this.rescale()},enumerable:!0,configurable:!0}),e.prototype.ticks=function(){return this._domain},e.prototype.convert=function(e){var t=this.index.get(e);if(void 0===t)return NaN;var o=this.ordinalRange[t];return void 0===o?NaN:o},Object.defineProperty(e.prototype,"bandwidth",{get:function(){return this._bandwidth},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"padding",{get:function(){return this._paddingInner},set:function(e){e=Math.max(0,Math.min(1,e)),this._paddingInner=e,this._paddingOuter=e,this.rescale()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"paddingInner",{get:function(){return this._paddingInner},set:function(e){this._paddingInner=Math.max(0,Math.min(1,e)),this.rescale()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"paddingOuter",{get:function(){return this._paddingOuter},set:function(e){this._paddingOuter=Math.max(0,Math.min(1,e)),this.rescale()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"round",{get:function(){return this._round},set:function(e){this._round=e,this.rescale()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"align",{get:function(){return this._align},set:function(e){this._align=Math.max(0,Math.min(1,e)),this.rescale()},enumerable:!0,configurable:!0}),e.prototype.rescale=function(){var e,t=this._domain.length;if(t){var o=this._range,i=o[0],r=o[1],n=r<i;n&&(i=(e=[r,i])[0],r=e[1]);var s=(r-i)/Math.max(1,t-this._paddingInner+2*this._paddingOuter);this._round&&(s=Math.floor(s)),i+=(r-i-s*(t-this._paddingInner))*this._align,this._bandwidth=s*(1-this._paddingInner),this._round&&(i=Math.round(i),this._bandwidth=Math.round(this._bandwidth));for(var a=[],l=0;l<t;l++)a.push(i+s*l);this.ordinalRange=n?a.reverse():a}},e}();t.BandScale=i},function(e,t,o){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var n=o(41),s=o(99),a=o(29),l=function(e){function t(){var t=e.call(this)||this;return t._x1=0,t._y1=0,t._x2=0,t._y2=0,t.getBBox=function(){return new a.BBox(t.x1,t.y1,t.x2-t.x1,t.y2-t.y1)},t.restoreOwnStyles(),t}return r(t,e),t.create=function(e,o,i,r){var n=new t;return n.x1=e,n.y1=o,n.x2=i,n.y2=r,n},Object.defineProperty(t.prototype,"x1",{get:function(){return this._x1},set:function(e){this._x1!==e&&(this._x1=e,this.dirty=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"y1",{get:function(){return this._y1},set:function(e){this._y1!==e&&(this._y1=e,this.dirty=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"x2",{get:function(){return this._x2},set:function(e){this._x2!==e&&(this._x2=e,this.dirty=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"y2",{get:function(){return this._y2},set:function(e){this._y2!==e&&(this._y2=e,this.dirty=!0)},enumerable:!0,configurable:!0}),t.prototype.isPointInPath=function(e,t){return!1},t.prototype.isPointInStroke=function(e,t){return!1},t.prototype.render=function(e){this.dirtyTransform&&this.computeTransformMatrix(),this.matrix.toContext(e);var t=this.x1,o=this.y1,i=this.x2,r=this.y2;if(t===i){var n=Math.round(t)+Math.floor(this.strokeWidth)%2/2;t=n,i=n}else if(o===r){var s=Math.round(o)+Math.floor(this.strokeWidth)%2/2;o=s,r=s}e.beginPath(),e.moveTo(t,o),e.lineTo(i,r),this.fillStroke(e),this.dirty=!1},t.className="Line",t.defaultStyles=s.chainObjects(n.Shape.defaultStyles,{fill:void 0,strokeWidth:1}),t}(n.Shape);t.Line=l},function(e,t,o){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var n=o(231),s=o(67),a=function(e){function t(t){return e.call(this,t)||this}return r(t,e),t.prototype.overrideLabelRotation=function(e){return e===s.ChartModel.DEFAULT_CATEGORY||this.chartProxyParams.grouping},t.prototype.setCommonAxisProperty=function(e,t){var o=this.chart;o.xAxis[e]=t,o.yAxis[e]=t,o.performLayout(),this.chartOptions.xAxis[e]=t,this.chartOptions.yAxis[e]=t,this.raiseChartOptionsChangedEvent()},t.prototype.getCommonAxisProperty=function(e){return this.chartOptions.xAxis?""+this.chartOptions.xAxis[e]:""},t.prototype.getXRotation=function(){return this.chart.xAxis.labelRotation},t.prototype.setXRotation=function(e){this.chart.xAxis.labelRotation=e,this.chartOptions.xAxis.labelRotation=e,this.chart.performLayout(),this.raiseChartOptionsChangedEvent()},t.prototype.getYRotation=function(){return this.chart.yAxis.labelRotation},t.prototype.setYRotation=function(e){this.chart.yAxis.labelRotation=e,this.chartOptions.yAxis.labelRotation=e,this.chart.performLayout(),this.raiseChartOptionsChangedEvent()},t}(n.ChartProxy);t.CartesianChartProxy=a},function(e,t,o){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),n=this&&this.__decorate||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},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(1),l=o(107),p=o(75),u=o(108),c=o(233),d=function(){function e(){}return e.prototype.hideActiveMenu=function(){this.activeMenu&&this.activeMenu.destroy()},e.prototype.showMenuAfterMouseEvent=function(e,t,o){var i=this;this.showMenu(e,(function(r){i.popupService.positionPopupUnderMouseEvent({column:e,type:"columnMenu",mouseEvent:t,ePopup:r.getGui()}),o&&r.showTab(o)}),o)},e.prototype.showMenuAfterButtonClick=function(e,t,o,i){var r=this,n=-1,s="left";this.gridOptionsWrapper.isEnableRtl()&&(n=1,s="right"),this.showMenu(e,(function(i){var a=i.getMinDimensions();r.popupService.positionPopupUnderComponent({column:e,type:"columnMenu",eventSource:t,ePopup:i.getGui(),nudgeX:9*n,nudgeY:-23,minWidth:a.width,minHeight:a.height,alignSide:s,keepWithinBounds:!0}),o&&i.showTab(o)}),o,i)},e.prototype.showMenu=function(e,t,o,i){var r=this,n=new h(e,this.lastSelectedTab,i);this.context.wireBean(n);var s=n.getGui(),l=this.popupService.addAsModalPopup(s,!0,(function(){n.destroy(),e.setMenuVisible(!1,"contextMenu")}));n.afterGuiAttached({hidePopup:l}),t(n),o||n.showTabBasedOnPreviousSelection(),n.addEventListener(h.EVENT_TAB_SELECTED,(function(e){r.lastSelectedTab=e.key})),e.setMenuVisible(!0,"contextMenu"),this.activeMenu=n,n.addEventListener(a.BeanStub.EVENT_DESTROYED,(function(){r.activeMenu===n&&(r.activeMenu=null)}))},e.prototype.isMenuEnabled=function(e){return e.getMenuTabs(h.TABS_DEFAULT).length>0},n([a.Autowired("context"),s("design:type",a.Context)],e.prototype,"context",void 0),n([a.Autowired("popupService"),s("design:type",a.PopupService)],e.prototype,"popupService",void 0),n([a.Autowired("gridOptionsWrapper"),s("design:type",a.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),e=n([a.Bean("menuFactory")],e)}();t.EnterpriseMenuFactory=d;var h=function(e){function t(o,i,r){var n=e.call(this)||this;return n.tabFactories={},n.includeChecks={},n.column=o,n.initialSelection=i,n.tabFactories[t.TAB_GENERAL]=n.createMainPanel.bind(n),n.tabFactories[t.TAB_FILTER]=n.createFilterPanel.bind(n),n.tabFactories[t.TAB_COLUMNS]=n.createColumnsPanel.bind(n),n.includeChecks[t.TAB_GENERAL]=function(){return!0},n.includeChecks[t.TAB_FILTER]=function(){return o.isFilterAllowed()},n.includeChecks[t.TAB_COLUMNS]=function(){return!0},n.restrictTo=r,n}return r(t,e),t.prototype.getMinDimensions=function(){return this.tabbedLayout.getMinDimensions()},t.prototype.init=function(){var e=this,t=this.getTabsToCreate().map((function(t){return e.createTab(t)}));this.tabbedLayout=new a.TabbedLayout({items:t,cssClass:"ag-menu",onActiveItemClicked:this.onHidePopup.bind(this),onItemClicked:this.onTabItemClicked.bind(this)})},t.prototype.getTabsToCreate=function(){var e=this;return this.restrictTo?this.restrictTo:this.column.getMenuTabs(t.TABS_DEFAULT).filter((function(t){return e.isValidMenuTabItem(t)})).filter((function(t){return e.isNotSuppressed(t)}))},t.prototype.isValidMenuTabItem=function(e){var o=!0,i=t.TABS_DEFAULT;return null!=this.restrictTo&&(o=this.restrictTo.indexOf(e)>-1,i=this.restrictTo),(o=o&&t.TABS_DEFAULT.indexOf(e)>-1)||console.warn("Trying to render an invalid menu item '"+e+"'. Check that your 'menuTabs' contains one of ["+i+"]"),o},t.prototype.isNotSuppressed=function(e){return this.includeChecks[e]()},t.prototype.createTab=function(e){return this.tabFactories[e]()},t.prototype.showTabBasedOnPreviousSelection=function(){this.showTab(this.initialSelection)},t.prototype.showTab=function(e){this.tabItemColumns&&e===t.TAB_COLUMNS?this.tabbedLayout.showItem(this.tabItemColumns):this.tabItemFilter&&e===t.TAB_FILTER?this.tabbedLayout.showItem(this.tabItemFilter):this.tabItemGeneral&&e===t.TAB_GENERAL?this.tabbedLayout.showItem(this.tabItemGeneral):this.tabbedLayout.showFirstItem()},t.prototype.onTabItemClicked=function(e){var o=null;switch(e.item){case this.tabItemColumns:o=t.TAB_COLUMNS;break;case this.tabItemFilter:o=t.TAB_FILTER;break;case this.tabItemGeneral:o=t.TAB_GENERAL}if(o){var i={type:t.EVENT_TAB_SELECTED,key:o};this.dispatchEvent(i)}},t.prototype.destroy=function(){this.columnSelectPanel&&this.columnSelectPanel.destroy(),this.mainMenuList&&this.mainMenuList.destroy(),e.prototype.destroy.call(this)},t.prototype.getMenuItems=function(){var e,o=this.getDefaultMenuOptions(),i=this.gridOptionsWrapper.getMainMenuItemsFunc();i?e=i({column:this.column,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext(),defaultItems:o}):e=o;return a._.removeRepeatsFromArray(e,t.MENU_ITEM_SEPARATOR),e},t.prototype.getDefaultMenuOptions=function(){var e=[],o=!this.column.getColDef().lockPinned,i=this.columnController.getRowGroupColumns().length,r=i>0,n=this.columnController.getRowGroupColumns().indexOf(this.column)>=0,s=this.column.isAllowValue(),l=this.column.isAllowRowGroup(),p=this.column.isPrimary(),u=this.columnController.isPivotMode(),c=this.rowModel.getType()===a.Constants.ROW_MODEL_TYPE_CLIENT_SIDE,d=this.gridOptionsWrapper.isTreeData(),h=p&&r&&s||!p;o&&e.push("pinSubMenu"),h&&e.push("valueAggSubMenu"),(o||h)&&e.push(t.MENU_ITEM_SEPARATOR),e.push("autoSizeThis"),e.push("autoSizeAll"),e.push(t.MENU_ITEM_SEPARATOR),l&&this.column.isPrimary()&&(n?e.push("rowUnGroup"):e.push("rowGroup")),e.push(t.MENU_ITEM_SEPARATOR),e.push("resetColumns");var f=!1;return c&&(f=!!d||(u?i>1:i>0)),f&&(e.push("expandAll"),e.push("contractAll")),e},t.prototype.createMainPanel=function(){this.mainMenuList=new l.MenuList,this.getContext().wireBean(this.mainMenuList);var e=this.getMenuItems(),o=this.menuItemMapper.mapWithStockItems(e,this.column);return this.mainMenuList.addMenuItems(o),this.mainMenuList.addEventListener(p.MenuItemComponent.EVENT_ITEM_SELECTED,this.onHidePopup.bind(this)),this.tabItemGeneral={title:a._.createIconNoSpan("menu",this.gridOptionsWrapper,this.column),bodyPromise:a.Promise.resolve(this.mainMenuList.getGui()),name:t.TAB_GENERAL},this.tabItemGeneral},t.prototype.onHidePopup=function(){this.hidePopupFunc()},t.prototype.createFilterPanel=function(){var e=this.filterManager.getOrCreateFilterWrapper(this.column,"COLUMN_MENU"),o=null;return e.filterPromise.then((function(e){e.afterGuiAttached&&(o=e.afterGuiAttached.bind(e))})),this.tabItemFilter={title:a._.createIconNoSpan("filter",this.gridOptionsWrapper,this.column),bodyPromise:e.guiPromise.promise,afterAttachedCallback:o,name:t.TAB_FILTER},this.tabItemFilter},t.prototype.createColumnsPanel=function(){var e=document.createElement("div");return a._.addCssClass(e,"ag-menu-column-select-wrapper"),this.columnSelectPanel=new c.PrimaryColsPanel(!1,{suppressValues:!1,suppressPivots:!1,suppressRowGroups:!1,suppressPivotMode:!1,contractColumnSelection:!1,suppressColumnExpandAll:!1,suppressColumnFilter:!1,suppressColumnSelectAll:!1,suppressSideButtons:!1,api:this.gridApi}),this.getContext().wireBean(this.columnSelectPanel),e.appendChild(this.columnSelectPanel.getGui()),this.tabItemColumns={title:a._.createIconNoSpan("columns",this.gridOptionsWrapper,this.column),bodyPromise:a.Promise.resolve(e),name:t.TAB_COLUMNS},this.tabItemColumns},t.prototype.afterGuiAttached=function(e){var t=this;this.tabbedLayout.setAfterAttachedParams({hidePopup:e.hidePopup}),this.hidePopupFunc=e.hidePopup;var o=this.gridApi.getHorizontalPixelRange().left;this.addDestroyFunc(e.hidePopup),this.addDestroyableEventListener(this.eventService,"bodyScroll",(function(i){if("horizontal"===i.direction){var r=t.gridApi.getHorizontalPixelRange().left;Math.abs(r-o)>t.gridOptionsWrapper.getScrollbarWidth()&&e.hidePopup()}}))},t.prototype.getGui=function(){return this.tabbedLayout.getGui()},t.EVENT_TAB_SELECTED="tabSelected",t.TAB_FILTER="filterMenuTab",t.TAB_GENERAL="generalMenuTab",t.TAB_COLUMNS="columnsMenuTab",t.TABS_DEFAULT=[t.TAB_GENERAL,t.TAB_FILTER,t.TAB_COLUMNS],t.MENU_ITEM_SEPARATOR="separator",n([a.Autowired("columnController"),s("design:type",a.ColumnController)],t.prototype,"columnController",void 0),n([a.Autowired("filterManager"),s("design:type",a.FilterManager)],t.prototype,"filterManager",void 0),n([a.Autowired("gridApi"),s("design:type",a.GridApi)],t.prototype,"gridApi",void 0),n([a.Autowired("gridOptionsWrapper"),s("design:type",a.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),n([a.Autowired("eventService"),s("design:type",a.EventService)],t.prototype,"eventService",void 0),n([a.Autowired("menuItemMapper"),s("design:type",u.MenuItemMapper)],t.prototype,"menuItemMapper",void 0),n([a.Autowired("rowModel"),s("design:type",Object)],t.prototype,"rowModel",void 0),n([a.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"init",null),t}(a.BeanStub);t.EnterpriseMenu=h},function(e,t,o){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),n=this&&this.__decorate||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},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(1),l=o(75),p=function(e){function t(){var o=e.call(this,t.TEMPLATE)||this;return o.timerCount=0,o.removeChildFuncs=[],o}return r(t,e),t.prototype.clearActiveItem=function(){this.removeActiveItem(),this.removeChildPopup()},t.prototype.addMenuItems=function(e){var t=this;e&&!a._.missing(e)&&e.forEach((function(e){if("separator"===e)t.addSeparator();else if("string"==typeof e)console.warn("ag-Grid: unrecognised menu item "+e);else{var o=e;t.addItem(o)}}))},t.prototype.addItem=function(e){var t=this,o=new l.MenuItemComponent(e);this.getContext().wireBean(o),this.getGui().appendChild(o.getGui()),this.addDestroyFunc((function(){return o.destroy()})),o.addEventListener(l.MenuItemComponent.EVENT_ITEM_SELECTED,(function(i){e.subMenu&&!e.action?t.showChildMenu(e,o,i.mouseEvent):t.dispatchEvent(i)})),o.addGuiEventListener("mouseenter",this.mouseEnterItem.bind(this,e,o)),o.addGuiEventListener("mouseleave",(function(){return t.timerCount++}))},t.prototype.mouseEnterItem=function(e,t){e.disabled||(this.activeMenuItemParams!==e&&this.removeChildPopup(),this.removeActiveItem(),this.activeMenuItemParams=e,this.activeMenuItem=t,a._.addCssClass(this.activeMenuItem.getGui(),"ag-menu-option-active"),e.subMenu&&this.addHoverForChildPopup(e,t))},t.prototype.removeActiveItem=function(){this.activeMenuItem&&(a._.removeCssClass(this.activeMenuItem.getGui(),"ag-menu-option-active"),this.activeMenuItem=null,this.activeMenuItemParams=null)},t.prototype.addHoverForChildPopup=function(e,t){var o=this,i=this.timerCount;window.setTimeout((function(){var r=i===o.timerCount,n=o.subMenuParentDef===e;r&&!n&&o.showChildMenu(e,t,null)}),300)},t.prototype.addSeparator=function(){this.getGui().appendChild(a._.loadTemplate(t.SEPARATOR_TEMPLATE))},t.prototype.showChildMenu=function(e,o,i){var r=this;this.removeChildPopup();var n=new t;this.getContext().wireBean(n),n.addMenuItems(e.subMenu);var s=a._.loadTemplate('<div class="ag-menu"></div>');s.appendChild(n.getGui());var p=this.popupService.addAsModalPopup(s,!0,void 0,i);this.popupService.positionPopupForMenu({eventSource:o.getGui(),ePopup:s}),this.subMenuParentDef=e;var u=function(e){r.dispatchEvent(e)};n.addEventListener(l.MenuItemComponent.EVENT_ITEM_SELECTED,u),this.removeChildFuncs.push((function(){n.clearActiveItem(),n.destroy(),r.subMenuParentDef=null,n.removeEventListener(l.MenuItemComponent.EVENT_ITEM_SELECTED,u),p()}))},t.prototype.removeChildPopup=function(){this.removeChildFuncs.forEach((function(e){return e()})),this.removeChildFuncs=[]},t.prototype.destroy=function(){this.removeChildPopup(),e.prototype.destroy.call(this)},t.TEMPLATE='<div class="ag-menu-list"></div>',t.SEPARATOR_TEMPLATE='<div class="ag-menu-separator">\n <span class="ag-menu-separator-cell"></span>\n <span class="ag-menu-separator-cell"></span>\n <span class="ag-menu-separator-cell"></span>\n <span class="ag-menu-separator-cell"></span>\n </div>',n([a.Autowired("popupService"),s("design:type",a.PopupService)],t.prototype,"popupService",void 0),t}(a.Component);t.MenuList=p},function(e,t,o){"use strict";var i=this&&this.__decorate||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},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var n=o(1),s=o(76),a=o(40),l=function(){function e(){}return e.prototype.mapWithStockItems=function(e,t){var o=this;if(!e)return[];var i=[];return e.forEach((function(e){var r;if((r="string"==typeof e?o.getStockMenuItem(e,t):e).subMenu){var n=r;n.subMenu=o.mapWithStockItems(n.subMenu,t)}null!=r&&i.push(r)})),i},e.prototype.getStockMenuItem=function(e,t){var o=this,i=this.gridOptionsWrapper.getLocaleTextFunc();switch(e){case"pinSubMenu":return{name:i("pinColumn","Pin Column"),icon:n._.createIconNoSpan("menuPin",this.gridOptionsWrapper,null),subMenu:["pinLeft","pinRight","clearPinned"]};case"pinLeft":return{name:i("pinLeft","Pin Left"),action:function(){return o.columnController.setColumnPinned(t,n.Column.PINNED_LEFT,"contextMenu")},checked:t.isPinnedLeft()};case"pinRight":return{name:i("pinRight","Pin Right"),action:function(){return o.columnController.setColumnPinned(t,n.Column.PINNED_RIGHT,"contextMenu")},checked:t.isPinnedRight()};case"clearPinned":return{name:i("noPin","No Pin"),action:function(){return o.columnController.setColumnPinned(t,null,"contextMenu")},checked:!t.isPinned()};case"valueAggSubMenu":return{name:i("valueAggregation","Value Aggregation"),icon:n._.createIconNoSpan("menuValue",this.gridOptionsWrapper,null),subMenu:this.createAggregationSubMenu(t)};case"autoSizeThis":return{name:i("autosizeThiscolumn","Autosize This Column"),action:function(){return o.columnController.autoSizeColumn(t,"contextMenu")}};case"autoSizeAll":return{name:i("autosizeAllColumns","Autosize All Columns"),action:function(){return o.columnController.autoSizeAllColumns("contextMenu")}};case"rowGroup":return{name:i("groupBy","Group by")+" "+n._.escape(this.columnController.getDisplayNameForColumn(t,"header")),action:function(){return o.columnController.addRowGroupColumn(t,"contextMenu")},icon:n._.createIconNoSpan("menuAddRowGroup",this.gridOptionsWrapper,null)};case"rowUnGroup":return{name:i("ungroupBy","Un-Group by")+" "+n._.escape(this.columnController.getDisplayNameForColumn(t,"header")),action:function(){return o.columnController.removeRowGroupColumn(t,"contextMenu")},icon:n._.createIconNoSpan("menuRemoveRowGroup",this.gridOptionsWrapper,null)};case"resetColumns":return{name:i("resetColumns","Reset Columns"),action:function(){return o.columnController.resetColumnState(!1,"contextMenu")}};case"expandAll":return{name:i("expandAll","Expand All"),action:function(){return o.gridApi.expandAll()}};case"contractAll":return{name:i("collapseAll","Collapse All"),action:function(){return o.gridApi.collapseAll()}};case"copy":return{name:i("copy","Copy"),shortcut:i("ctrlC","Ctrl+C"),icon:n._.createIconNoSpan("clipboardCopy",this.gridOptionsWrapper,null),action:function(){return o.clipboardService.copyToClipboard(!1)}};case"copyWithHeaders":return{name:i("copyWithHeaders","Copy with Headers"),icon:n._.createIconNoSpan("clipboardCopy",this.gridOptionsWrapper,null),action:function(){return o.clipboardService.copyToClipboard(!0)}};case"paste":return{name:i("paste","Paste"),shortcut:i("ctrlV","Ctrl+V"),disabled:!0,icon:n._.createIconNoSpan("clipboardPaste",this.gridOptionsWrapper,null),action:function(){return o.clipboardService.pasteFromClipboard()}};case"export":var r=[];return this.gridOptionsWrapper.isSuppressCsvExport()||r.push("csvExport"),this.gridOptionsWrapper.isSuppressExcelExport()||(r.push("excelExport"),r.push("excelXmlExport")),{name:i("export","Export"),subMenu:r,icon:n._.createIconNoSpan("save",this.gridOptionsWrapper,null)};case"csvExport":return{name:i("csvExport","CSV Export"),action:function(){return o.gridApi.exportDataAsCsv({})}};case"excelExport":return{name:i("excelExport","Excel Export (.xlsx)&lrm;"),action:function(){return o.gridApi.exportDataAsExcel({exportMode:"xlsx"})}};case"excelXmlExport":return{name:i("excelXmlExport","Excel Export (.xml)&lrm;"),action:function(){return o.gridApi.exportDataAsExcel({exportMode:"xml"})}};case"separator":return"separator";default:var s=this.getChartItems(e);return s||(console.warn("ag-Grid: unknown menu item type "+e),null)}},e.prototype.getChartItems=function(e){var t=this,o=this.gridOptionsWrapper.getLocaleTextFunc(),i=function(e,i,r){return{name:o(e,i),action:function(){return t.chartService.pivotChart(r)}}},r=function(e,i,r){return{name:o(e,i),action:function(){return t.chartService.chartCurrentRange(r)}}};switch(e){case"pivotChart":return{name:o("pivotChart","Pivot Chart"),subMenu:["pivotColumnChart","pivotBarChart","pivotPieChart","pivotLineChart","pivotXYChart","pivotAreaChart"],icon:n._.createIconNoSpan("chart",this.gridOptionsWrapper,null)};case"chartRange":return{name:o("chartRange","Chart Range"),subMenu:["rangeColumnChart","rangeBarChart","rangePieChart","rangeLineChart","rangeXYChart","rangeAreaChart"],icon:n._.createIconNoSpan("chart",this.gridOptionsWrapper,null)};case"pivotColumnChart":return{name:o("columnChart","Column"),subMenu:["pivotGroupedColumn","pivotStackedColumn","pivotNormalizedColumn"]};case"pivotGroupedColumn":return i("groupedColumn","Grouped&lrm;",n.ChartType.GroupedColumn);case"pivotStackedColumn":return i("stackedColumn","Stacked&lrm;",n.ChartType.StackedColumn);case"pivotNormalizedColumn":return i("normalizedColumn","100% Stacked&lrm;",n.ChartType.NormalizedColumn);case"rangeColumnChart":return{name:o("columnChart","Column"),subMenu:["rangeGroupedColumn","rangeStackedColumn","rangeNormalizedColumn"]};case"rangeGroupedColumn":return r("groupedColumn","Grouped&lrm;",n.ChartType.GroupedColumn);case"rangeStackedColumn":return r("stackedColumn","Stacked&lrm;",n.ChartType.StackedColumn);case"rangeNormalizedColumn":return r("normalizedColumn","100% Stacked&lrm;",n.ChartType.NormalizedColumn);case"pivotBarChart":return{name:o("barChart","Bar"),subMenu:["pivotGroupedBar","pivotStackedBar","pivotNormalizedBar"]};case"pivotGroupedBar":return i("groupedBar","Grouped&lrm;",n.ChartType.GroupedBar);case"pivotStackedBar":return i("stackedBar","Stacked&lrm;",n.ChartType.StackedBar);case"pivotNormalizedBar":return i("normalizedBar","100% Stacked&lrm;",n.ChartType.NormalizedBar);case"rangeBarChart":return{name:o("barChart","Bar"),subMenu:["rangeGroupedBar","rangeStackedBar","rangeNormalizedBar"]};case"rangeGroupedBar":return r("groupedBar","Grouped&lrm;",n.ChartType.GroupedBar);case"rangeStackedBar":return r("stackedBar","Stacked&lrm;",n.ChartType.StackedBar);case"rangeNormalizedBar":return r("normalizedBar","100% Stacked&lrm;",n.ChartType.NormalizedBar);case"pivotPieChart":return{name:o("pieChart","Pie"),subMenu:["pivotPie","pivotDoughnut"]};case"pivotPie":return i("pie","Pie&lrm;",n.ChartType.Pie);case"pivotDoughnut":return i("doughnut","Doughnut&lrm;",n.ChartType.Doughnut);case"rangePieChart":return{name:o("pieChart","Pie"),subMenu:["rangePie","rangeDoughnut"]};case"rangePie":return r("pie","Pie&lrm;",n.ChartType.Pie);case"rangeDoughnut":return r("doughnut","Doughnut&lrm;",n.ChartType.Doughnut);case"pivotLineChart":return i("line","Line&lrm;",n.ChartType.Line);case"rangeLineChart":return r("line","Line&lrm;",n.ChartType.Line);case"pivotXYChart":return{name:o("xyChart","X Y (Scatter)"),subMenu:["pivotScatter","pivotBubble"]};case"pivotScatter":return i("scatter","Scatter&lrm;",n.ChartType.Scatter);case"pivotBubble":return i("bubble","Bubble&lrm;",n.ChartType.Bubble);case"rangeXYChart":return{name:o("xyChart","X Y (Scatter)"),subMenu:["rangeScatter","rangeBubble"]};case"rangeScatter":return r("scatter","Scatter&lrm;",n.ChartType.Scatter);case"rangeBubble":return r("bubble","Bubble&lrm;",n.ChartType.Bubble);case"pivotAreaChart":return{name:o("areaChart","Area"),subMenu:["pivotArea","pivotStackedArea","pivotNormalizedArea"]};case"pivotArea":return i("area","Area&lrm;",n.ChartType.Area);case"pivotStackedArea":return i("stackedArea","Stacked&lrm;",n.ChartType.StackedArea);case"pivotNormalizedArea":return i("normalizedArea","100% Stacked&lrm;",n.ChartType.NormalizedArea);case"rangeAreaChart":return{name:o("areaChart","Area"),subMenu:["rangeArea","rangeStackedArea","rangeNormalizedArea"]};case"rangeArea":return r("area","Area&lrm;",n.ChartType.Area);case"rangeStackedArea":return r("stackedArea","Stacked&lrm;",n.ChartType.StackedArea);case"rangeNormalizedArea":return r("normalizedArea","100% Stacked&lrm;",n.ChartType.NormalizedArea);default:return null}},e.prototype.createAggregationSubMenu=function(e){var t,o=this,i=this.gridOptionsWrapper.getLocaleTextFunc(),r=e.isValueActive(),s=this.aggFuncService.getFuncNames(e);if(e.isPrimary())t=e;else{var a=e.getColDef().pivotValueColumn;t=n._.exists(a)?a:void 0}var l=[];return s.forEach((function(e){l.push({name:i(e,e),action:function(){o.columnController.setColumnAggFunc(t,e,"contextMenu"),o.columnController.addValueColumn(t,"contextMenu")},checked:r&&t.getAggFunc()===e})})),l},i([n.Autowired("gridOptionsWrapper"),r("design:type",n.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([n.Autowired("columnController"),r("design:type",n.ColumnController)],e.prototype,"columnController",void 0),i([n.Autowired("gridApi"),r("design:type",n.GridApi)],e.prototype,"gridApi",void 0),i([n.Autowired("clipboardService"),r("design:type",s.ClipboardService)],e.prototype,"clipboardService",void 0),i([n.Autowired("aggFuncService"),r("design:type",a.AggFuncService)],e.prototype,"aggFuncService",void 0),i([n.Optional("chartService"),r("design:type",Object)],e.prototype,"chartService",void 0),e=i([n.Bean("menuItemMapper")],e)}();t.MenuItemMapper=l},function(e,t,o){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),n=this&&this.__decorate||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},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a,l=o(1);!function(e){e[e.CHECKED=0]="CHECKED",e[e.UNCHECKED=1]="UNCHECKED",e[e.INDETERMINATE=2]="INDETERMINATE"}(a=t.SELECTED_STATE||(t.SELECTED_STATE={}));var p=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.expandState=a.CHECKED,t.selectState=a.CHECKED,t}return r(t,e),t.prototype.preConstruct=function(){var e=this.gridOptionsWrapper.getLocaleTextFunc();this.setTemplate('<div class="ag-primary-cols-header-panel" role="presentation">\n <div ref="eExpand"></div>\n <div ref="eSelect"></div>\n <div class="ag-input-wrapper ag-primary-cols-filter-wrapper" ref="eFilterWrapper" role="presentation">\n <input class="ag-primary-cols-filter" ref="eFilterTextField" type="text" placeholder="'+e("filterOoo","Filter...")+'"> \n </div>\n </div>')},t.prototype.postConstruct=function(){this.addEventListeners(),this.createExpandIcons(),this.createCheckIcons(),this.setExpandState(a.CHECKED),this.addDestroyableEventListener(this.eExpand,"click",this.onExpandClicked.bind(this)),this.addDestroyableEventListener(this.eSelect,"click",this.onSelectClicked.bind(this)),this.addDestroyableEventListener(this.eFilterTextField,"input",this.onFilterTextChanged.bind(this))},t.prototype.init=function(e){this.params=e,this.columnController.isReady()&&(this.setColumnsCheckedState(),this.showOrHideOptions())},t.prototype.createExpandIcons=function(){this.eExpand.appendChild(this.eExpandChecked=l._.createIconNoSpan("columnSelectOpen",this.gridOptionsWrapper)),this.eExpand.appendChild(this.eExpandUnchecked=l._.createIconNoSpan("columnSelectClosed",this.gridOptionsWrapper)),this.eExpand.appendChild(this.eExpandIndeterminate=l._.createIconNoSpan("columnSelectIndeterminate",this.gridOptionsWrapper))},t.prototype.createCheckIcons=function(){this.eSelect.appendChild(this.eSelectChecked=l._.createIconNoSpan("checkboxChecked",this.gridOptionsWrapper)),this.eSelect.appendChild(this.eSelectUnchecked=l._.createIconNoSpan("checkboxUnchecked",this.gridOptionsWrapper)),this.eSelect.appendChild(this.eSelectIndeterminate=l._.createIconNoSpan("checkboxIndeterminate",this.gridOptionsWrapper))},t.prototype.showOrHideOptions=function(){var e=!this.params.suppressColumnFilter,t=!this.params.suppressColumnSelectAll,o=!this.params.suppressColumnExpandAll,i=this.columnController.isPrimaryColumnGroupsPresent();l._.setDisplayed(this.eFilterWrapper,e),l._.setDisplayed(this.eSelect,t),l._.setDisplayed(this.eExpand,o&&i)},t.prototype.addEventListeners=function(){var e=this;[l.Events.EVENT_COLUMN_EVERYTHING_CHANGED,l.Events.EVENT_COLUMN_PIVOT_CHANGED,l.Events.EVENT_COLUMN_PIVOT_MODE_CHANGED,l.Events.EVENT_COLUMN_ROW_GROUP_CHANGED,l.Events.EVENT_COLUMN_VALUE_CHANGED,l.Events.EVENT_COLUMN_VISIBLE,l.Events.EVENT_NEW_COLUMNS_LOADED].forEach((function(t){e.addDestroyableEventListener(e.eventService,t,e.setColumnsCheckedState.bind(e))})),this.addDestroyableEventListener(this.eventService,l.Events.EVENT_NEW_COLUMNS_LOADED,this.showOrHideOptions.bind(this))},t.prototype.onFilterTextChanged=function(){var e=this;this.onFilterTextChangedDebounced||(this.onFilterTextChangedDebounced=l._.debounce((function(){var t=e.eFilterTextField.value;e.dispatchEvent({type:"filterChanged",filterText:t})}),400)),this.onFilterTextChangedDebounced()},t.prototype.onSelectClicked=function(){this.selectState===a.CHECKED?this.dispatchEvent({type:"unselectAll"}):this.dispatchEvent({type:"selectAll"})},t.prototype.onExpandClicked=function(){this.expandState===a.CHECKED?this.dispatchEvent({type:"collapseAll"}):this.dispatchEvent({type:"expandAll"})},t.prototype.setExpandState=function(e){this.expandState=e,l._.setDisplayed(this.eExpandChecked,this.expandState===a.CHECKED),l._.setDisplayed(this.eExpandUnchecked,this.expandState===a.UNCHECKED),l._.setDisplayed(this.eExpandIndeterminate,this.expandState===a.INDETERMINATE)},t.prototype.setColumnsCheckedState=function(){var e=this.columnController.getAllPrimaryColumns(),t=[];null!==e&&(t=e.filter((function(e){return!e.getColDef().lockVisible})));var o=this.columnController.isPivotMode(),i=0,r=0;t.forEach((function(e){if(!e.getColDef().lockVisible){var t=e.getColDef();if(!t||!t.suppressToolPanel){var n;if(o){if(!e.isAllowPivot()&&!e.isAllowRowGroup()&&!e.isAllowValue())return;n=e.isValueActive()||e.isPivotActive()||e.isRowGroupActive()}else n=e.isVisible();n?i++:r++}}})),this.selectState=i>0&&r>0?a.INDETERMINATE:r>0?a.UNCHECKED:a.CHECKED,l._.setDisplayed(this.eSelectChecked,this.selectState===a.CHECKED),l._.setDisplayed(this.eSelectUnchecked,this.selectState===a.UNCHECKED),l._.setDisplayed(this.eSelectIndeterminate,this.selectState===a.INDETERMINATE)},n([l.Autowired("gridOptionsWrapper"),s("design:type",l.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),n([l.Autowired("columnController"),s("design:type",l.ColumnController)],t.prototype,"columnController",void 0),n([l.Autowired("eventService"),s("design:type",l.EventService)],t.prototype,"eventService",void 0),n([l.RefSelector("eFilterTextField"),s("design:type",HTMLInputElement)],t.prototype,"eFilterTextField",void 0),n([l.RefSelector("eExpand"),s("design:type",HTMLElement)],t.prototype,"eExpand",void 0),n([l.RefSelector("eSelect"),s("design:type",HTMLElement)],t.prototype,"eSelect",void 0),n([l.RefSelector("eFilterWrapper"),s("design:type",HTMLElement)],t.prototype,"eFilterWrapper",void 0),n([l.PreConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"preConstruct",null),n([l.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"postConstruct",null),t}(l.Component);t.PrimaryColsHeaderPanel=p},function(e,t,o){"use strict";var i=this&&this.__decorate||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},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var n=o(1),s=function(){function e(){this.groupIdSequence=new n.NumberSequence(1)}return e.prototype.postConstruct=function(){this.usingTreeData=this.gridOptionsWrapper.isTreeData(),this.usingTreeData&&(this.getDataPath=this.gridOptionsWrapper.getDataPathFunc())},e.prototype.execute=function(e){var t=this.createGroupingDetails(e);if(t.transaction)this.handleTransaction(t);else{var o=!0===e.afterColumnsChanged;this.shotgunResetEverything(t,o)}this.sortGroupsWithComparator(t.rootNode),this.selectableService.updateSelectableAfterGrouping(t.rootNode)},e.prototype.createGroupingDetails=function(e){var t=e.rowNode,o=e.changedPath,i=e.rowNodeTransaction,r=e.rowNodeOrder,s=this.usingTreeData?null:this.columnController.getRowGroupColumns(),a=(this.usingTreeData||s&&s.length>0)&&n._.exists(i);return{includeParents:!this.gridOptionsWrapper.isSuppressParentsInRowNodes(),expandByDefault:this.gridOptionsWrapper.isGroupSuppressRow()?-1:this.gridOptionsWrapper.getGroupDefaultExpanded(),groupedCols:s,rootNode:t,pivotMode:this.columnController.isPivotMode(),groupedColCount:this.usingTreeData||!s?0:s.length,rowNodeOrder:r,transaction:a?i:null,changedPath:o}},e.prototype.handleTransaction=function(e){var t=e.transaction;t.add&&this.insertNodes(t.add,e),t.update&&this.moveNodesInWrongPath(t.update,e),t.remove&&this.removeNodes(t.remove,e),e.rowNodeOrder&&this.sortChildren(e)},e.prototype.sortChildren=function(e){e.changedPath.forEachChangedNodeDepthFirst((function(t){n._.sortRowNodesByOrder(t.childrenAfterGroup,e.rowNodeOrder)}))},e.prototype.sortGroupsWithComparator=function(e){if(!this.usingTreeData){var t=this.gridOptionsWrapper.getDefaultGroupSortComparator();n._.exists(t)&&function e(o){var i=n._.exists(o.childrenAfterGroup)&&!o.leafGroup;i&&(o.childrenAfterGroup.sort(t),o.childrenAfterGroup.forEach((function(t){return e(t)})))}(e)}},e.prototype.getExistingPathForNode=function(e,t){for(var o=[],i=this.usingTreeData?e:e.parent;i&&i!==t.rootNode;)o.push({key:i.key,rowGroupColumn:i.rowGroupColumn,field:i.field}),i=i.parent;return o.reverse(),o},e.prototype.moveNodesInWrongPath=function(e,t){var o=this;e.forEach((function(e){t.changedPath.isActive()&&t.changedPath.addParentNode(e.parent);var i=function(e){return e.key},r=o.getExistingPathForNode(e,t).map(i),s=o.getGroupInfo(e,t).map(i);n._.compareArrays(r,s)||o.moveNode(e,t)}))},e.prototype.moveNode=function(e,t){if(this.removeNodesInStages([e],t),this.insertOneNode(e,t),e.setData(e.data),t.changedPath.isActive()){var o=e.parent;t.changedPath.addParentNode(o)}},e.prototype.removeNodes=function(e,t){this.removeNodesInStages(e,t),t.changedPath.isActive()&&e.forEach((function(e){return t.changedPath.addParentNode(e.parent)}))},e.prototype.removeNodesInStages=function(e,t){this.removeNodesFromParents(e,t),this.postRemoveCreateFillerNodes(e,t),this.postRemoveRemoveEmptyGroups(e,t)},e.prototype.forEachParentGroup=function(e,t,o){for(var i=t.parent;i&&i!==e.rootNode;)o(i),i=i.parent},e.prototype.removeNodesFromParents=function(e,t){var o=this,i=new a;e.forEach((function(e){o.removeFromParent(e,i),o.forEachParentGroup(t,e,(function(t){i.removeFromAllLeafChildren(t,e)}))})),i.flush()},e.prototype.postRemoveCreateFillerNodes=function(e,t){var o=this;e.forEach((function(e){if(e.hasChildren()){var i=o.getExistingPathForNode(e,t),r=o.findParentForNode(e,i,t);r.expanded=e.expanded,r.allLeafChildren=e.allLeafChildren,r.childrenAfterGroup=e.childrenAfterGroup,r.childrenMapped=e.childrenMapped,r.childrenAfterGroup.forEach((function(e){return e.parent=r}))}}))},e.prototype.postRemoveRemoveEmptyGroups=function(e,t){for(var o=this,i=!0,r=function(){i=!1;var r=new a;e.forEach((function(e){o.forEachParentGroup(t,e,(function(e){(function(e){var t=o.getChildrenMappedKey(e.key,e.rowGroupColumn),i=e.parent;return!(!i||!i.childrenMapped||!i.childrenMapped[t])&&e.isEmptyRowGroupNode()})(e)&&(i=!0,o.removeFromParent(e,r),e.setSelected(!1))}))})),r.flush()};i;)r()},e.prototype.removeFromParent=function(e,t){e.parent&&(t?t.removeFromChildrenAfterGroup(e.parent,e):n._.removeFromArray(e.parent.childrenAfterGroup,e));var o=this.getChildrenMappedKey(e.key,e.rowGroupColumn);e.parent&&e.parent.childrenMapped&&(e.parent.childrenMapped[o]=void 0),e.setRowTop(null)},e.prototype.addToParent=function(e,t){var o=this.getChildrenMappedKey(e.key,e.rowGroupColumn);t&&(t.childrenMapped&&(t.childrenMapped[o]=e),t.childrenAfterGroup.push(e))},e.prototype.areGroupColsEqual=function(e,t){return null!=e&&null!=t&&(e.pivotMode===t.pivotMode&&!!n._.compareArrays(e.groupedCols,t.groupedCols))},e.prototype.shotgunResetEverything=function(e,t){var o=!!t&&(this.usingTreeData||this.areGroupColsEqual(e,this.oldGroupingDetails));this.oldGroupingDetails=e,o||(e.rootNode.leafGroup=!this.usingTreeData&&0===e.groupedCols.length,e.rootNode.childrenAfterGroup=[],e.rootNode.childrenMapped={},this.insertNodes(e.rootNode.allLeafChildren,e))},e.prototype.insertNodes=function(e,t){var o=this;e.forEach((function(e){o.insertOneNode(e,t),t.changedPath.isActive()&&t.changedPath.addParentNode(e.parent)}))},e.prototype.insertOneNode=function(e,t){var o=this.getGroupInfo(e,t),i=this.findParentForNode(e,o,t);i.group||console.warn("ag-Grid: duplicate group keys for row data, keys should be unique",[i.data,e.data]),this.usingTreeData?this.swapGroupWithUserNode(i,e):(e.parent=i,e.level=o.length,i.childrenAfterGroup.push(e))},e.prototype.findParentForNode=function(e,t,o){var i=this,r=o.rootNode;return t.forEach((function(t,n){(r=i.getOrCreateNextNode(r,t,n,o)).allLeafChildren.push(e)})),r},e.prototype.swapGroupWithUserNode=function(e,t){t.parent=e.parent,t.key=e.key,t.field=e.field,t.groupData=e.groupData,t.level=e.level,t.expanded=e.expanded,t.leafGroup=e.leafGroup,t.rowGroupIndex=e.rowGroupIndex,t.allLeafChildren=e.allLeafChildren,t.childrenAfterGroup=e.childrenAfterGroup,t.childrenMapped=e.childrenMapped,this.removeFromParent(e),t.childrenAfterGroup.forEach((function(e){return e.parent=t})),this.addToParent(t,e.parent)},e.prototype.getOrCreateNextNode=function(e,t,o,i){var r=this.getChildrenMappedKey(t.key,t.rowGroupColumn),n=e.childrenMapped?e.childrenMapped[r]:void 0;return n||(n=this.createGroup(t,e,o,i),this.addToParent(n,e)),n},e.prototype.createGroup=function(e,t,o,i){var r=this,s=new n.RowNode;return this.context.wireBean(s),s.group=!0,s.field=e.field,s.rowGroupColumn=e.rowGroupColumn,s.groupData={},this.columnController.getGroupDisplayColumns().forEach((function(t){(r.usingTreeData||!!s.rowGroupColumn&&t.isRowGroupDisplayed(s.rowGroupColumn.getId()))&&(s.groupData[t.getColId()]=e.key)})),s.id=(-1*this.groupIdSequence.next()).toString(),s.key=e.key,s.level=o,s.leafGroup=!this.usingTreeData&&o===i.groupedColCount-1,i.pivotMode&&s.leafGroup?s.expanded=!1:s.expanded=this.isExpanded(i.expandByDefault,o),s.allLeafChildren=[],s.setAllChildrenCount(0),s.rowGroupIndex=this.usingTreeData?null:o,s.childrenAfterGroup=[],s.childrenMapped={},s.parent=i.includeParents?t:null,s},e.prototype.getChildrenMappedKey=function(e,t){return t?t.getId()+"-"+e:e},e.prototype.isExpanded=function(e,t){return-1===e||t<e},e.prototype.getGroupInfo=function(e,t){return this.usingTreeData?this.getGroupInfoFromCallback(e):this.getGroupInfoFromGroupColumns(e,t)},e.prototype.getGroupInfoFromCallback=function(e){var t=this.getDataPath?this.getDataPath(e.data):null;null!=t&&0!==t.length||n._.doOnce((function(){return console.warn("getDataPath() should not return an empty path for data",e.data)}),"groupStage.getGroupInfoFromCallback");return t?t.map((function(e){return{key:e,field:null,rowGroupColumn:null}})):[]},e.prototype.getGroupInfoFromGroupColumns=function(e,t){var o=this,i=[];return t.groupedCols.forEach((function(r){var n=o.valueService.getKeyForNode(r,e),s=null!=n;if(t.pivotMode&&!s&&(n=" ",s=!0),s){var a={key:n,field:r.getColDef().field,rowGroupColumn:r};i.push(a)}})),i},i([n.Autowired("selectionController"),r("design:type",n.SelectionController)],e.prototype,"selectionController",void 0),i([n.Autowired("gridOptionsWrapper"),r("design:type",n.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([n.Autowired("columnController"),r("design:type",n.ColumnController)],e.prototype,"columnController",void 0),i([n.Autowired("selectableService"),r("design:type",n.SelectableService)],e.prototype,"selectableService",void 0),i([n.Autowired("valueService"),r("design:type",n.ValueService)],e.prototype,"valueService",void 0),i([n.Autowired("eventService"),r("design:type",n.EventService)],e.prototype,"eventService",void 0),i([n.Autowired("context"),r("design:type",n.Context)],e.prototype,"context",void 0),i([n.PostConstruct,r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],e.prototype,"postConstruct",null),e=i([n.Bean("groupStage")],e)}();t.GroupStage=s;var a=function(){function e(){this.allSets={},this.allParents=[]}return e.prototype.removeFromChildrenAfterGroup=function(e,t){this.getSet(e).removeFromChildrenAfterGroup[t.id]=!0},e.prototype.removeFromAllLeafChildren=function(e,t){this.getSet(e).removeFromAllLeafChildren[t.id]=!0},e.prototype.getSet=function(e){return this.allSets[e.id]||(this.allSets[e.id]={removeFromAllLeafChildren:{},removeFromChildrenAfterGroup:{}},this.allParents.push(e)),this.allSets[e.id]},e.prototype.flush=function(){var e=this;this.allParents.forEach((function(t){var o=e.allSets[t.id];t.childrenAfterGroup=t.childrenAfterGroup.filter((function(e){return!o.removeFromChildrenAfterGroup[e.id]})),t.allLeafChildren=t.allLeafChildren.filter((function(e){return!o.removeFromAllLeafChildren[e.id]}))})),this.allSets={},this.allParents.length=0},e}()},function(e,t,o){"use strict";var i=this&&this.__decorate||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},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var n=o(1),s=o(167),a=o(170),l=o(56),p=o(329),u=o(330),c=o(331),d=o(332),h=o(333),f=o(334),g=o(335),y=o(336),v=o(338),m=function(){function e(){}return e.prototype.init=function(){this.userComponentRegistry.registerDefaultComponent("agRichSelect",a.RichSelectCellEditor),this.userComponentRegistry.registerDefaultComponent("agRichSelectCellEditor",a.RichSelectCellEditor),this.userComponentRegistry.registerDefaultComponent("agSetColumnFilter",s.SetFilter),this.userComponentRegistry.registerDefaultComponent("agSetColumnFloatingFilter",v.SetFloatingFilterComp),this.userComponentRegistry.registerDefaultComponent("agDetailCellRenderer",p.DetailCellRenderer),this.userComponentRegistry.registerDefaultComponent("agAggregationComponent",h.AggregationComp),this.userComponentRegistry.registerDefaultComponent("agColumnsToolPanel",d.ColumnToolPanel),this.userComponentRegistry.registerDefaultComponent("agFiltersToolPanel",y.FiltersToolPanel),this.userComponentRegistry.registerDefaultComponent("agSelectedRowCountComponent",f.SelectedRowsComp),this.userComponentRegistry.registerDefaultComponent("agTotalRowCountComponent",u.TotalRowsComp),this.userComponentRegistry.registerDefaultComponent("agFilteredRowCountComponent",g.FilteredRowsComp),this.userComponentRegistry.registerDefaultComponent("agTotalAndFilteredRowCountComponent",c.TotalAndFilteredRowsComp)},i([n.Autowired("filterManager"),r("design:type",n.FilterManager)],e.prototype,"filterManager",void 0),i([n.Autowired("licenseManager"),r("design:type",l.LicenseManager)],e.prototype,"licenseManager",void 0),i([n.Autowired("userComponentRegistry"),r("design:type",n.UserComponentRegistry)],e.prototype,"userComponentRegistry",void 0),i([n.PostConstruct,r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],e.prototype,"init",null),e=i([n.Bean("enterpriseBoot")],e)}();t.EnterpriseBoot=m},function(e,t,o){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),n=this&&this.__decorate||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},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(1),l=function(e){function t(t){return e.call(this,t,!1,"row-group")||this}return r(t,e),t.prototype.passBeansUp=function(){e.prototype.setBeans.call(this,{gridOptionsWrapper:this.gridOptionsWrapper,eventService:this.eventService,context:this.getContext(),loggerFactory:this.loggerFactory,dragAndDropService:this.dragAndDropService});var t=this.gridOptionsWrapper.getLocaleTextFunc(),o=t("rowGroupColumnsEmptyMessage","Drag here to set row groups"),i=t("groups","Row Groups");e.prototype.init.call(this,{dragAndDropIcon:a.DragAndDropService.ICON_GROUP,icon:a._.createIconNoSpan("rowGroupPanel",this.gridOptionsWrapper,null),emptyMessage:o,title:i}),this.addDestroyableEventListener(this.eventService,a.Events.EVENT_COLUMN_ROW_GROUP_CHANGED,this.refreshGui.bind(this))},t.prototype.isColumnDroppable=function(e){if(this.gridOptionsWrapper.isFunctionsReadOnly())return!1;if(!e.isPrimary())return!1;var t=e.isAllowRowGroup(),o=!e.isRowGroupActive();return t&&o},t.prototype.updateColumns=function(e){if(this.gridOptionsWrapper.isFunctionsPassive()){var t={type:a.Events.EVENT_COLUMN_ROW_GROUP_CHANGE_REQUEST,columns:e,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(t)}else this.columnController.setRowGroupColumns(e,"toolPanelUi")},t.prototype.getIconName=function(){return this.isPotentialDndColumns()?a.DragAndDropService.ICON_GROUP:a.DragAndDropService.ICON_NOT_ALLOWED},t.prototype.getExistingColumns=function(){return this.columnController.getRowGroupColumns()},n([a.Autowired("columnController"),s("design:type",a.ColumnController)],t.prototype,"columnController",void 0),n([a.Autowired("eventService"),s("design:type",a.EventService)],t.prototype,"eventService",void 0),n([a.Autowired("gridOptionsWrapper"),s("design:type",a.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),n([a.Autowired("loggerFactory"),s("design:type",a.LoggerFactory)],t.prototype,"loggerFactory",void 0),n([a.Autowired("dragAndDropService"),s("design:type",a.DragAndDropService)],t.prototype,"dragAndDropService",void 0),n([a.Autowired("columnApi"),s("design:type",a.ColumnApi)],t.prototype,"columnApi",void 0),n([a.Autowired("gridApi"),s("design:type",a.GridApi)],t.prototype,"gridApi",void 0),n([a.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"passBeansUp",null),t}(o(79).BaseDropZonePanel);t.RowGroupDropZonePanel=l},function(e,t,o){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),n=this&&this.__decorate||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},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(1),l=function(e){function t(t){return e.call(this,t,!1,"pivot")||this}return r(t,e),t.prototype.passBeansUp=function(){e.prototype.setBeans.call(this,{gridOptionsWrapper:this.gridOptionsWrapper,eventService:this.eventService,context:this.getContext(),loggerFactory:this.loggerFactory,dragAndDropService:this.dragAndDropService});var t=this.gridOptionsWrapper.getLocaleTextFunc(),o=t("pivotColumnsEmptyMessage","Drag here to set column labels"),i=t("pivots","Column Labels");e.prototype.init.call(this,{dragAndDropIcon:a.DragAndDropService.ICON_GROUP,icon:a._.createIconNoSpan("pivotPanel",this.gridOptionsWrapper,null),emptyMessage:o,title:i}),this.addDestroyableEventListener(this.eventService,a.Events.EVENT_COLUMN_EVERYTHING_CHANGED,this.refresh.bind(this)),this.addDestroyableEventListener(this.eventService,a.Events.EVENT_COLUMN_PIVOT_CHANGED,this.refresh.bind(this)),this.addDestroyableEventListener(this.eventService,a.Events.EVENT_COLUMN_PIVOT_MODE_CHANGED,this.checkVisibility.bind(this)),this.refresh()},t.prototype.refresh=function(){this.checkVisibility(),this.refreshGui()},t.prototype.checkVisibility=function(){var e=this.columnController.isPivotMode();if(this.isHorizontal())switch(this.gridOptionsWrapper.getPivotPanelShow()){case"always":this.setDisplayed(e);break;case"onlyWhenPivoting":var t=this.columnController.isPivotActive();this.setDisplayed(e&&t);break;default:this.setDisplayed(!1)}else this.setDisplayed(e)},t.prototype.isColumnDroppable=function(e){if(this.gridOptionsWrapper.isFunctionsReadOnly())return!1;if(!e.isPrimary())return!1;var t=e.isAllowPivot(),o=!e.isPivotActive();return t&&o},t.prototype.updateColumns=function(e){if(this.gridOptionsWrapper.isFunctionsPassive()){var t={type:a.Events.EVENT_COLUMN_PIVOT_CHANGE_REQUEST,columns:e,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(t)}else this.columnController.setPivotColumns(e,"toolPanelUi")},t.prototype.getIconName=function(){return this.isPotentialDndColumns()?a.DragAndDropService.ICON_PIVOT:a.DragAndDropService.ICON_NOT_ALLOWED},t.prototype.getExistingColumns=function(){return this.columnController.getPivotColumns()},n([a.Autowired("columnController"),s("design:type",a.ColumnController)],t.prototype,"columnController",void 0),n([a.Autowired("eventService"),s("design:type",a.EventService)],t.prototype,"eventService",void 0),n([a.Autowired("gridOptionsWrapper"),s("design:type",a.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),n([a.Autowired("loggerFactory"),s("design:type",a.LoggerFactory)],t.prototype,"loggerFactory",void 0),n([a.Autowired("dragAndDropService"),s("design:type",a.DragAndDropService)],t.prototype,"dragAndDropService",void 0),n([a.Autowired("columnApi"),s("design:type",a.ColumnApi)],t.prototype,"columnApi",void 0),n([a.Autowired("gridApi"),s("design:type",a.GridApi)],t.prototype,"gridApi",void 0),n([a.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"passBeansUp",null),t}(o(79).BaseDropZonePanel);t.PivotDropZonePanel=l},function(e,t,o){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),n=this&&this.__decorate||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},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(1),l=o(75),p=o(107),u=o(108),c=o(21),d=function(){function e(){}return e.prototype.init=function(){},e.prototype.hideActiveMenu=function(){this.activeMenu&&this.activeMenu.destroy()},e.prototype.getMenuItems=function(e,t,o){var i=[];if(a._.exists(e)&&t&&i.push("copy","copyWithHeaders","paste","separator"),this.gridOptionsWrapper.isEnableCharts()&&this.context.isModuleRegistered("chartsModule")&&(this.columnController.isPivotMode()&&i.push("pivotChart"),this.rangeController.isEmpty()||i.push("chartRange")),a._.exists(e)){var r=this.gridOptionsWrapper.isSuppressExcelExport(),n=this.gridOptionsWrapper.isSuppressCsvExport();!(a._.isUserAgentIPad()||r&&n)&&i.push("export")}if(this.gridOptionsWrapper.getContextMenuItemsFunc()){var s=this.gridOptionsWrapper.getContextMenuItemsFunc(),l={node:e,column:t,value:o,defaultItems:i.length?i:void 0,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()};return s?s(l):void 0}return i},e.prototype.showMenu=function(e,t,o,i){var r=this,n=this.getMenuItems(e,t,o);if(void 0!==n&&!a._.missingOrEmpty(n)){var s=new h(n);this.context.wireBean(s);var l=s.getGui(),p=this.popupService.addAsModalPopup(l,!0,(function(){return s.destroy()}),i);this.popupService.positionPopupUnderMouseEvent({column:t,rowNode:e,type:"contextMenu",mouseEvent:i,ePopup:l}),s.afterGuiAttached({hidePopup:p}),this.activeMenu=s,s.addEventListener(a.BeanStub.EVENT_DESTROYED,(function(){r.activeMenu===s&&(r.activeMenu=null)}))}},n([a.Autowired("context"),s("design:type",a.Context)],e.prototype,"context",void 0),n([a.Autowired("popupService"),s("design:type",a.PopupService)],e.prototype,"popupService",void 0),n([a.Autowired("gridOptionsWrapper"),s("design:type",a.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),n([a.Autowired("rowModel"),s("design:type",Object)],e.prototype,"rowModel",void 0),n([a.Autowired("rangeController"),s("design:type",c.RangeController)],e.prototype,"rangeController",void 0),n([a.Autowired("columnController"),s("design:type",a.ColumnController)],e.prototype,"columnController",void 0),n([a.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],e.prototype,"init",null),e=n([a.Bean("contextMenuFactory")],e)}();t.ContextMenuFactory=d;var h=function(e){function t(t){var o=e.call(this,'<div class="ag-menu"></div>')||this;return o.menuItems=t,o}return r(t,e),t.prototype.addMenuItems=function(){var e=new p.MenuList;this.getContext().wireBean(e);var t=this.menuItemMapper.mapWithStockItems(this.menuItems,null);e.addMenuItems(t),this.appendChild(e),e.addEventListener(l.MenuItemComponent.EVENT_ITEM_SELECTED,this.destroy.bind(this))},t.prototype.afterGuiAttached=function(e){e.hidePopup&&this.addDestroyFunc(e.hidePopup),this.addDestroyableEventListener(this.eventService,"bodyScroll",this.destroy.bind(this))},n([a.Autowired("eventService"),s("design:type",a.EventService)],t.prototype,"eventService",void 0),n([a.Autowired("menuItemMapper"),s("design:type",u.MenuItemMapper)],t.prototype,"menuItemMapper",void 0),n([a.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"addMenuItems",null),t}(a.Component)},function(e,t,o){"use strict";var i=this&&this.__decorate||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},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var n=o(1),s=function(){function e(){this.firstRow=-1,this.lastRow=-1,this.rowCount=-1,this.rowNodesByIndex={}}return e.prototype.ensureRowHeightsValid=function(e,t,o,i){return!1},e.prototype.init=function(){this.rowHeight=this.gridOptionsWrapper.getRowHeightAsNumber(),this.eventService.addEventListener(n.Events.EVENT_VIEWPORT_CHANGED,this.onViewportChanged.bind(this)),this.gridOptionsWrapper.isRowModelViewport()&&this.gridOptionsWrapper.getViewportDatasource()&&this.setViewportDatasource(this.gridOptionsWrapper.getViewportDatasource())},e.prototype.isLastRowFound=function(){return!0},e.prototype.destroyDatasource=function(){this.viewportDatasource&&(this.viewportDatasource.destroy&&this.viewportDatasource.destroy(),this.rowRenderer.datasourceChanged(),this.firstRow=-1,this.lastRow=-1)},e.prototype.calculateFirstRow=function(e){var t=this.gridOptionsWrapper.getViewportRowModelBufferSize(),o=this.gridOptionsWrapper.getViewportRowModelPageSize(),i=e-t;return i<0?0:Math.floor(i/o)*o},e.prototype.calculateLastRow=function(e){if(-1===e)return e;var t=this.gridOptionsWrapper.getViewportRowModelBufferSize(),o=this.gridOptionsWrapper.getViewportRowModelPageSize(),i=e+t,r=Math.ceil(i/o)*o,n=this.rowCount-1;return Math.min(r,n)},e.prototype.onViewportChanged=function(e){var t=this.calculateFirstRow(e.firstRow),o=this.calculateLastRow(e.lastRow);this.firstRow===t&&this.lastRow===o||(this.firstRow=t,this.lastRow=o,this.purgeRowsNotInViewport(),this.viewportDatasource&&this.viewportDatasource.setViewportRange(this.firstRow,this.lastRow))},e.prototype.purgeRowsNotInViewport=function(){var e=this;Object.keys(this.rowNodesByIndex).forEach((function(t){var o=parseInt(t,10);(o<e.firstRow||o>e.lastRow)&&delete e.rowNodesByIndex[o]}))},e.prototype.setViewportDatasource=function(e){this.destroyDatasource(),this.viewportDatasource=e,this.rowCount=0,e.init?e.init({setRowCount:this.setRowCount.bind(this),setRowData:this.setRowData.bind(this),getRow:this.getRow.bind(this)}):console.warn("ag-Grid: viewport is missing init method.")},e.prototype.getType=function(){return n.Constants.ROW_MODEL_TYPE_VIEWPORT},e.prototype.getRow=function(e){return this.rowNodesByIndex[e]||(this.rowNodesByIndex[e]=this.createBlankRowNode(e)),this.rowNodesByIndex[e]},e.prototype.getRowNode=function(e){var t=null;return this.forEachNode((function(o){o.id===e&&(t=o)})),t},e.prototype.getRowCount=function(){return this.rowCount},e.prototype.getRowIndexAtPixel=function(e){return 0!==this.rowHeight?Math.floor(e/this.rowHeight):0},e.prototype.getRowBounds=function(e){return{rowHeight:this.rowHeight,rowTop:this.rowHeight*e}},e.prototype.getTopLevelRowCount=function(){return this.getRowCount()},e.prototype.getTopLevelRowDisplayedIndex=function(e){return e},e.prototype.getCurrentPageHeight=function(){return this.rowCount*this.rowHeight},e.prototype.isEmpty=function(){return this.rowCount>0},e.prototype.isRowsToRender=function(){return this.rowCount>0},e.prototype.getNodesInRangeForSelection=function(e,t){var o=n._.missing(e)?0:e.rowIndex,i=t.rowIndex,r=o<this.firstRow||o>this.lastRow,s=i<this.firstRow||i>this.lastRow;if(r||s)return[];for(var a=[],l=o<=i?i:o,p=o<=i?o:i;p<=l;p++)a.push(this.rowNodesByIndex[p]);return a},e.prototype.forEachNode=function(e){var t=this,o=0;Object.keys(this.rowNodesByIndex).forEach((function(i){var r=parseInt(i,10),n=t.rowNodesByIndex[r];e(n,o),o++}))},e.prototype.setRowData=function(e){var t=this;n._.iterateObject(e,(function(e,o){var i=parseInt(e,10);if(i>=t.firstRow&&i<=t.lastRow){var r=t.rowNodesByIndex[i];n._.missing(r)&&(r=t.createBlankRowNode(i),t.rowNodesByIndex[i]=r),r.setDataAndId(o,i.toString())}}))},e.prototype.createBlankRowNode=function(e){var t=new n.RowNode;return this.context.wireBean(t),t.setRowHeight(this.rowHeight),t.setRowTop(this.rowHeight*e),t.setRowIndex(e),t},e.prototype.setRowCount=function(e){if(e!==this.rowCount){this.rowCount=e;var t={type:n.Events.EVENT_MODEL_UPDATED,api:this.gridApi,columnApi:this.columnApi,newData:!1,newPage:!1,keepRenderedRows:!1,animate:!1};this.eventService.dispatchEvent(t)}},e.prototype.isRowPresent=function(e){return!1},i([n.Autowired("gridOptionsWrapper"),r("design:type",n.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([n.Autowired("eventService"),r("design:type",n.EventService)],e.prototype,"eventService",void 0),i([n.Autowired("selectionController"),r("design:type",n.SelectionController)],e.prototype,"selectionController",void 0),i([n.Autowired("context"),r("design:type",n.Context)],e.prototype,"context",void 0),i([n.Autowired("gridApi"),r("design:type",n.GridApi)],e.prototype,"gridApi",void 0),i([n.Autowired("columnApi"),r("design:type",n.ColumnApi)],e.prototype,"columnApi",void 0),i([n.Autowired("rowRenderer"),r("design:type",n.RowRenderer)],e.prototype,"rowRenderer",void 0),i([n.PostConstruct,r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],e.prototype,"init",null),i([n.PreDestroy,r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],e.prototype,"destroyDatasource",null),e=i([n.Bean("rowModel")],e)}();t.ViewportRowModel=s},function(e,t,o){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),n=this&&this.__decorate||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},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(1),l=o(175),p=o(339),u=function(e){function t(){var o=e.call(this,t.TEMPLATE)||this;return o.toolPanelWrappers=[],o}return r(t,e),t.prototype.postConstruct=function(){this.sideBarButtonsComp.addEventListener(l.SideBarButtonsComp.EVENT_SIDE_BAR_BUTTON_CLICKED,this.onToolPanelButtonClicked.bind(this)),this.setSideBarDef()},t.prototype.onToolPanelButtonClicked=function(e){var t=e.toolPanelId;this.openedItem()===t?this.openToolPanel(void 0):this.openToolPanel(t)},t.prototype.clearDownUi=function(){this.sideBarButtonsComp.clearButtons(),this.destroyToolPanelWrappers()},t.prototype.setSideBarDef=function(){var e=this,t=this.gridOptionsWrapper.getSideBar(),o=!!t&&!!t.toolPanels;if(o){var i=t.toolPanels;this.sideBarButtonsComp.setToolPanelDefs(i),this.setupToolPanels(i),t.hiddenByDefault||this.openToolPanel(t.defaultToolPanel)}var r=o&&!t.hiddenByDefault;setTimeout((function(){return e.setDisplayed(r)}),0)},t.prototype.setupToolPanels=function(e){var t=this;e.forEach((function(e){if(null!=e.id){var o=new p.ToolPanelWrapper;t.getContext().wireBean(o),o.setToolPanelDef(e),o.setDisplayed(!1),t.getGui().appendChild(o.getGui()),t.toolPanelWrappers.push(o)}else console.warn("ag-grid: please review all your toolPanel components, it seems like at least one of them doesn't have an id")}))},t.prototype.refresh=function(){this.toolPanelWrappers.forEach((function(e){return e.refresh()}))},t.prototype.openToolPanel=function(e){var t=this.openedItem();t!==e&&(this.toolPanelWrappers.forEach((function(t){var o=e===t.getToolPanelId();t.setDisplayed(o)})),t!==this.openedItem()&&(this.sideBarButtonsComp.setActiveButton(e),this.raiseToolPanelVisibleEvent(e)))},t.prototype.raiseToolPanelVisibleEvent=function(e){var t={type:a.Events.EVENT_TOOL_PANEL_VISIBLE_CHANGED,source:e,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi()};this.eventService.dispatchEvent(t)},t.prototype.close=function(){this.openToolPanel(void 0)},t.prototype.isToolPanelShowing=function(){return!!this.openedItem()},t.prototype.openedItem=function(){var e=null;return this.toolPanelWrappers.forEach((function(t){t.isDisplayed()&&(e=t.getToolPanelId())})),e},t.prototype.reset=function(){this.clearDownUi(),this.setSideBarDef()},t.prototype.destroyToolPanelWrappers=function(){this.toolPanelWrappers.forEach((function(e){a._.removeFromParent(e.getGui()),e.destroy()})),this.toolPanelWrappers.length=0},t.prototype.destroy=function(){this.destroyToolPanelWrappers(),e.prototype.destroy.call(this)},t.TEMPLATE='<div class="ag-side-bar ag-unselectable">\n <ag-side-bar-buttons ref="sideBarButtons">\n </div>',n([a.Autowired("eventService"),s("design:type",a.EventService)],t.prototype,"eventService",void 0),n([a.Autowired("gridOptionsWrapper"),s("design:type",a.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),n([a.RefSelector("sideBarButtons"),s("design:type",l.SideBarButtonsComp)],t.prototype,"sideBarButtonsComp",void 0),n([a.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"postConstruct",null),t}(a.Component);t.SideBarComp=u},function(e,t,o){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),n=this&&this.__decorate||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},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(1),l=o(234),p=o(340),u=o(80),c=o(81),d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.postConstruct=function(){this.setBeans({downloader:this.downloader,gridSerializer:this.gridSerializer,gridOptionsWrapper:this.gridOptionsWrapper})},t.prototype.exportDataAsExcel=function(e){return e&&e.exportMode&&this.setExportMode(e.exportMode),this.export(e)},t.prototype.getDataAsExcelXml=function(e){return e&&e.exportMode&&delete e.exportMode,this.setExportMode("xml"),this.getData(e||{})},t.prototype.getMimeType=function(){return"xml"===this.getExportMode()?"application/vnd.ms-excel":"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"},t.prototype.getDefaultFileName=function(){return"export."+this.getExportMode()},t.prototype.getDefaultFileExtension=function(){return this.getExportMode()},t.prototype.createSerializingSession=function(e){var t=this.columnController,o=this.valueService,i=this.gridOptionsWrapper,r=e.processCellCallback,n=e.processHeaderCallback,s=e.suppressTextAsCDATA,u=e.rowHeight,c=e.headerRowHeight,d="xlsx"===this.getExportMode(),h=d?this.xlsxFactory:this.excelXmlFactory,f="ag-grid";a._.exists(e.sheetName)&&(f=a._.utf8_encode(e.sheetName.toString().substr(0,31)));var g={columnController:t,valueService:o,gridOptionsWrapper:i,processCellCallback:r,processHeaderCallback:n,rowHeight:u,headerRowHeight:c||u,sheetName:f,excelFactory:h,baseExcelStyles:this.gridOptions.excelStyles||void 0,styleLinker:this.styleLinker.bind(this),suppressTextAsCDATA:s||!1};return new(d?p.ExcelXlsxSerializingSession:l.ExcelXmlSerializingSession)(g)},t.prototype.styleLinker=function(e,t,o,i,r,n){if(e===a.RowType.HEADER||e===a.RowType.HEADER_GROUPING)return["header"];var s=this.gridOptions.excelStyles;if(!s||!s.length)return null;var l=s.map((function(e){return e.id})),p=[];return this.stylingService.processAllCellClasses(r.getColDef(),{value:i,data:n.data,node:n,colDef:r.getColDef(),rowIndex:t,api:this.gridOptionsWrapper.getApi(),context:this.gridOptionsWrapper.getContext()},(function(e){l.indexOf(e)>-1&&p.push(e)})),p.sort((function(e,t){return l.indexOf(e)<l.indexOf(t)?-1:1}))},t.prototype.isExportSuppressed=function(){return this.gridOptionsWrapper.isSuppressExcelExport()},t.prototype.setExportMode=function(e){this.exportMode=e},t.prototype.getExportMode=function(){return this.exportMode||"xlsx"},t.prototype.packageFile=function(t){if("xml"===this.getExportMode())return e.prototype.packageFile.call(this,t);var o=this.zipContainer,i=this.xlsxFactory;return o.addFolders(["xl/worksheets/","xl/","xl/theme/","xl/_rels/","docProps/","_rels/"]),o.addFile("xl/worksheets/sheet1.xml",t),o.addFile("xl/workbook.xml",i.createWorkbook()),o.addFile("xl/styles.xml",i.createStylesheet()),o.addFile("xl/sharedStrings.xml",i.createSharedStrings()),o.addFile("xl/theme/theme1.xml",i.createTheme()),o.addFile("xl/_rels/workbook.xml.rels",i.createWorkbookRels()),o.addFile("docProps/core.xml",i.createCore()),o.addFile("[Content_Types].xml",i.createContentTypes()),o.addFile("_rels/.rels",i.createRels()),o.getContent("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet")},n([a.Autowired("excelXmlFactory"),s("design:type",u.ExcelXmlFactory)],t.prototype,"excelXmlFactory",void 0),n([a.Autowired("excelXlsxFactory"),s("design:type",c.ExcelXlsxFactory)],t.prototype,"xlsxFactory",void 0),n([a.Autowired("columnController"),s("design:type",a.ColumnController)],t.prototype,"columnController",void 0),n([a.Autowired("valueService"),s("design:type",a.ValueService)],t.prototype,"valueService",void 0),n([a.Autowired("gridOptions"),s("design:type",Object)],t.prototype,"gridOptions",void 0),n([a.Autowired("stylingService"),s("design:type",a.StylingService)],t.prototype,"stylingService",void 0),n([a.Autowired("downloader"),s("design:type",a.Downloader)],t.prototype,"downloader",void 0),n([a.Autowired("gridSerializer"),s("design:type",a.GridSerializer)],t.prototype,"gridSerializer",void 0),n([a.Autowired("gridOptionsWrapper"),s("design:type",a.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),n([a.Autowired("zipContainer"),s("design:type",a.ZipContainer)],t.prototype,"zipContainer",void 0),n([a.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"postConstruct",null),t=n([a.Bean("excelCreator")],t)}(a.BaseCreator);t.ExcelCreator=d},function(e,t,o){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),n=this&&this.__decorate||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},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(1),l=o(82),p=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return r(t,e),t.prototype.postConstruct=function(){if(this.gridOptions.statusBar&&this.gridOptions.statusBar.statusPanels){var e=this.gridOptions.statusBar.statusPanels.filter((function(e){return"left"===e.align}));this.createAndRenderComponents(e,this.eStatusBarLeft);var t=this.gridOptions.statusBar.statusPanels.filter((function(e){return"center"===e.align}));this.createAndRenderComponents(t,this.eStatusBarCenter);var o=this.gridOptions.statusBar.statusPanels.filter((function(e){return!e.align||"right"===e.align}));this.createAndRenderComponents(o,this.eStatusBarRight)}},t.prototype.createAndRenderComponents=function(e,t){var o=this,i=[];a._.forEach(e,(function(e){var t={api:o.gridOptionsWrapper.getApi(),columnApi:o.gridOptionsWrapper.getColumnApi(),context:o.gridOptionsWrapper.getContext()},r=o.userComponentFactory.newStatusPanelComponent(e,t);i.push({key:e.key||e.statusPanel,promise:r})})),a.Promise.all(i.map((function(e){return e.promise}))).then((function(){a._.forEach(i,(function(e){e.promise.then((function(i){var r=function(){i.destroy&&i.destroy()};o.isAlive()?(o.statusBarService.registerStatusPanel(e.key,i),t.appendChild(i.getGui()),o.addDestroyFunc(r)):r()}))}))}))},t.TEMPLATE='<div class="ag-status-bar">\n <div ref="eStatusBarLeft" class="ag-status-bar-left"></div>\n <div ref="eStatusBarCenter" class="ag-status-bar-center"></div>\n <div ref="eStatusBarRight" class="ag-status-bar-right"></div>\n </div>',n([a.Autowired("gridOptionsWrapper"),s("design:type",a.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),n([a.Autowired("gridOptions"),s("design:type",Object)],t.prototype,"gridOptions",void 0),n([a.Autowired("userComponentFactory"),s("design:type",a.UserComponentFactory)],t.prototype,"userComponentFactory",void 0),n([a.Autowired("statusBarService"),s("design:type",l.StatusBarService)],t.prototype,"statusBarService",void 0),n([a.RefSelector("eStatusBarLeft"),s("design:type",HTMLElement)],t.prototype,"eStatusBarLeft",void 0),n([a.RefSelector("eStatusBarCenter"),s("design:type",HTMLElement)],t.prototype,"eStatusBarCenter",void 0),n([a.RefSelector("eStatusBarRight"),s("design:type",HTMLElement)],t.prototype,"eStatusBarRight",void 0),n([a.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"postConstruct",null),t}(a.Component);t.StatusBar=p},function(e,t,o){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),n=this&&this.__decorate||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},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(1),l=o(56),p=function(e){function t(){return e.call(this,'<div class="ag-watermark">\n <div ref="eLicenseTextRef" class="ag-watermark-text"></div>\n </div>')||this}return r(t,e),t.prototype.postContruct=function(){var e=this,t=this.shouldDisplayWatermark();a._.addOrRemoveCssClass(this.getGui(),"ag-hidden",!t),t&&(this.eLicenseTextRef.innerText=this.licenseManager.getWatermarkMessage(),window.setTimeout((function(){e.addCssClass("ag-opacity-zero")}),0),window.setTimeout((function(){e.addCssClass("ag-hidden")}),5e3))},t.prototype.shouldDisplayWatermark=function(){var e=this.licenseManager.isDisplayWatermark(),t=null!=location.hostname.match("^127.0.0.1|localhost|www.ag-grid.com$");return-1!==location.search.indexOf("forceWatermark")||e&&!t},n([a.Autowired("licenseManager"),s("design:type",l.LicenseManager)],t.prototype,"licenseManager",void 0),n([a.RefSelector("eLicenseTextRef"),s("design:type",HTMLElement)],t.prototype,"eLicenseTextRef",void 0),n([a.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"postContruct",null),t}(a.Component);t.WatermarkComp=p},function(e,t,o){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),n=this&&this.__assign||function(){return(n=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}).apply(this,arguments)},s=this&&this.__decorate||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},a=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var l=o(1),p=function(e){function t(){var o=e.call(this,t.TEMPLATE)||this;return o.markedCellComps=[],o.cellValues=[],o.isUp=!1,o.isLeft=!1,o.isReduce=!1,o.type="fill",o}return r(t,e),t.prototype.onDrag=function(e){if(!this.initialXY){var t=this.getGui().getBoundingClientRect(),o=t.x,i=t.y;this.initialXY={x:o,y:i}}var r=this.initialXY,n=r.x,s=r.y,a=Math.abs(n-e.clientX)>Math.abs(s-e.clientY)?"x":"y";if(a!==this.dragAxis&&(this.dragAxis=a),!this.initialPosition){var l=this.getCellComp();if(!l)return;this.initialPosition=l.getCellPosition()}var p=this.getLastCellHovered();p&&p!==this.lastCellMarked&&(this.lastCellMarked=p,this.markPathFrom(this.initialPosition,p))},t.prototype.onDragEnd=function(e){if(this.markedCellComps.length){var t,o="x"===this.dragAxis,i=this.getCellRange(),r=i.columns.length,n=this.getRangeStartRow(),s=this.getRangeEndRow();if(this.isUp||this.isLeft){var a=o?n:this.lastCellMarked;t=this.rangeController.createCellRangeFromCellRangeParams({rowStartIndex:a.rowIndex,rowStartPinned:a.rowPinned,columnStart:o?this.lastCellMarked.column:i.columns[0],rowEndIndex:s.rowIndex,rowEndPinned:s.rowPinned,columnEnd:i.columns[r-1]})}else t=this.rangeController.createCellRangeFromCellRangeParams({rowStartIndex:n.rowIndex,rowStartPinned:n.rowPinned,columnStart:i.columns[0],rowEndIndex:o?s.rowIndex:this.lastCellMarked.rowIndex,rowEndPinned:o?s.rowPinned:this.lastCellMarked.rowPinned,columnEnd:o?this.lastCellMarked.column:i.columns[r-1]});t&&(this.handleValueChanged(i,t,e.altKey),this.rangeController.setCellRanges([t]))}},t.prototype.handleValueChanged=function(e,t,o){var i=this,r=this.rangeController.getRangeEndRow(e),n=this.rangeController.getRangeStartRow(e),s=this.rangeController.getRangeEndRow(t),a=this.rangeController.getRangeStartRow(t),p="y"===this.dragAxis;if(this.isReduce){var u=p?e.columns:e.columns.filter((function(e){return t.columns.indexOf(e)<0})),c=p?this.cellNavigationService.getRowBelow(s):a;c&&this.clearCellsInRange(c,r,u)}else{var d=!0,h=[],f=function(){h.length=0},g=function(t,o){var u=i.isUp?r:n,c=!1;p&&(d=!0,f());for(var g=function(){var g=i.rowPositionUtils.getRowNode(u);if(!g)return"break";p&&t?y(h,t,g,(function(){return!i.rowPositionUtils.sameRow(u,i.isUp?n:r)})):o&&(d=!0,f(),l._.forEach(o,(function(t){return y(h,t,g,(function(){return i.isLeft?t!==e.columns[0]:t!==l._.last(e.columns)}))}))),c=i.rowPositionUtils.sameRow(u,i.isUp?a:s),u=i.isUp?i.cellNavigationService.getRowAbove(u):i.cellNavigationService.getRowBelow(u)};!c&&u;){if("break"===g())break}},y=function(e,t,r,n){var s;d?(s=i.valueService.getValue(t,r),d=n()):(s=i.processValues(e,o),i.valueService.setValue(r,t,s)),e.push(s)};if(p)e.columns.forEach((function(e){g(e)}));else{u=this.isLeft?t.columns.slice().reverse():t.columns;g(void 0,u)}}},t.prototype.clearCellsInRange=function(e,t,o){for(var i=this,r=e,n=!1,s=function(){var e=a.rowPositionUtils.getRowNode(r);if(!e)return"break";o.forEach((function(t){i.valueService.setValue(e,t,null)})),n=a.rowPositionUtils.sameRow(r,t),r=a.cellNavigationService.getRowBelow(r)},a=this;!n&&r;){if("break"===s())break}},t.prototype.processValues=function(e,t){return 10},t.prototype.clearValues=function(){this.clearMarkedPath(),this.clearCellValues(),this.lastCellMarked=void 0,e.prototype.clearValues.call(this)},t.prototype.clearMarkedPath=function(){this.markedCellComps.forEach((function(e){var t=e.getGui();l._.removeCssClass(t,"ag-selection-fill-top"),l._.removeCssClass(t,"ag-selection-fill-right"),l._.removeCssClass(t,"ag-selection-fill-bottom"),l._.removeCssClass(t,"ag-selection-fill-left")})),this.markedCellComps.length=0,this.isUp=!1,this.isLeft=!1,this.isReduce=!1},t.prototype.clearCellValues=function(){this.cellValues.length=0},t.prototype.markPathFrom=function(e,t){if(this.clearMarkedPath(),this.clearCellValues(),"y"===this.dragAxis){if(this.rowPositionUtils.sameRow(t,e))return;var o=this.rowPositionUtils.before(t,e),i=this.getRangeStartRow(),r=this.getRangeEndRow();o&&(t.rowPinned==i.rowPinned&&t.rowIndex>=i.rowIndex||i.rowPinned!=r.rowPinned&&t.rowPinned==r.rowPinned&&t.rowIndex<=r.rowIndex)?(this.reduceVertical(e,t),this.isReduce=!0):(this.extendVertical(e,t,o),this.isReduce=!1)}else{var n=e.column,s=t.column;if(n===s)return;var a=this.columnController.getAllDisplayedColumns(),l=a.indexOf(n),p=a.indexOf(s);p<=l&&p>=a.indexOf(this.getCellRange().columns[0])?(this.reduceHorizontal(e,t),this.isReduce=!0):(this.extendHorizontal(e,t,p<l),this.isReduce=!1)}},t.prototype.extendVertical=function(e,t,o){var i=this.rowRenderer,r=this.rangeController,s=e;do{for(var a=this.getCellRange(),p=a.columns.length,u=0;u<p;u++){var c=a.columns[u],d={rowIndex:s.rowIndex,rowPinned:s.rowPinned},h=n({},d,{column:c}),f=r.isCellInSpecificRange(h,a),g=this.rowPositionUtils.sameRow(s,e);if(o&&(this.isUp=!0),!g){var y=i.getComponentForCell(h);if(y){this.markedCellComps.push(y);var v=y.getGui();f||(l._.addOrRemoveCssClass(v,"ag-selection-fill-left",0===u),l._.addOrRemoveCssClass(v,"ag-selection-fill-right",u===p-1)),l._.addOrRemoveCssClass(v,o?"ag-selection-fill-top":"ag-selection-fill-bottom",this.rowPositionUtils.sameRow(s,t))}}}if(this.rowPositionUtils.sameRow(s,t))break}while(s=o?this.cellNavigationService.getRowAbove(s):this.cellNavigationService.getRowBelow(s))},t.prototype.reduceVertical=function(e,t){var o=e;do{for(var i=this.getCellRange(),r=i.columns.length,s=this.rowPositionUtils.sameRow(o,t),a=0;a<r;a++){var p={rowIndex:o.rowIndex,rowPinned:o.rowPinned},u=n({},p,{column:i.columns[a]}),c=this.rowRenderer.getComponentForCell(u);if(c){this.markedCellComps.push(c);var d=c.getGui();l._.addOrRemoveCssClass(d,"ag-selection-fill-bottom",this.rowPositionUtils.sameRow(o,t))}}if(s)break}while(o=this.cellNavigationService.getRowAbove(o))},t.prototype.extendHorizontal=function(e,t,o){var i=this,r=this.columnController.getAllDisplayedColumns(),n=r.indexOf(o?t.column:e.column),s=r.indexOf(o?this.getCellRange().columns[0]:t.column),a=o?0:1,p=r.slice(n+a,s+a),u=this.getRangeStartRow(),c=this.getRangeEndRow();p.forEach((function(e){var t=u,r=!1;do{r=i.rowPositionUtils.sameRow(t,c);var n=i.rowRenderer.getComponentForCell({rowIndex:t.rowIndex,rowPinned:t.rowPinned,column:e});if(n){i.markedCellComps.push(n);var s=n.getGui();l._.addOrRemoveCssClass(s,"ag-selection-fill-top",i.rowPositionUtils.sameRow(t,u)),l._.addOrRemoveCssClass(s,"ag-selection-fill-bottom",i.rowPositionUtils.sameRow(t,c)),o?(i.isLeft=!0,l._.addOrRemoveCssClass(s,"ag-selection-fill-left",e===p[0])):l._.addOrRemoveCssClass(s,"ag-selection-fill-right",e===l._.last(p))}t=i.cellNavigationService.getRowBelow(t)}while(!r)}))},t.prototype.reduceHorizontal=function(e,t){var o=this,i=this.columnController.getAllDisplayedColumns(),r=i.indexOf(t.column),n=i.indexOf(e.column),s=i.slice(r,n),a=this.getRangeStartRow(),p=this.getRangeEndRow();s.forEach((function(e){var t=a,i=!1;do{i=o.rowPositionUtils.sameRow(t,p);var r=o.rowRenderer.getComponentForCell({rowIndex:t.rowIndex,rowPinned:t.rowPinned,column:e});if(r){o.markedCellComps.push(r);var n=r.getGui();l._.addOrRemoveCssClass(n,"ag-selection-fill-right",e===s[0])}t=o.cellNavigationService.getRowBelow(t)}while(!i)}))},t.prototype.refresh=function(t){var o=this.rangeController.getCellRanges()[0];o.startRow&&o.endRow?e.prototype.refresh.call(this,t):this.destroy()},t.TEMPLATE='<div class="ag-fill-handle"></div>',s([l.Autowired("valueService"),a("design:type",l.ValueService)],t.prototype,"valueService",void 0),t}(o(243).AbstractSelectionHandle);t.FillHandle=p},function(e,t,o){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),n=this&&this.__assign||function(){return(n=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}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var s=o(1),a=function(e){function t(){var o=e.call(this,t.TEMPLATE)||this;return o.type="range",o.rangeFixed=!1,o}return r(t,e),t.prototype.onDrag=function(e){var t=this.getLastCellHovered();if(t){var o=this.rangeController.getCellRanges(),i=s._.last(o);this.rangeFixed||(this.fixRangeStartEnd(i),this.rangeFixed=!0);var r={rowIndex:t.rowIndex,rowPinned:t.rowPinned},a=!this.rowPositionUtils.sameRow(r,this.rangeController.getRangeEndRow(i));2===o.length&&a&&this.rangeController.updateRangeEnd({cellRange:o[0],cellPosition:n({},r,{column:o[0].columns[0]})}),this.endPosition=n({},r,{column:t.column}),this.rangeController.extendLatestRangeToCell(this.endPosition)}},t.prototype.onDragEnd=function(e){var t=s._.last(this.rangeController.getCellRanges());this.fixRangeStartEnd(t),this.rangeFixed=!1},t.prototype.fixRangeStartEnd=function(e){var t=this.rangeController.getRangeStartRow(e),o=this.rangeController.getRangeEndRow(e),i=e.columns[0];e.startRow=t,e.endRow=o,e.startColumn=i},t.TEMPLATE='<div class="ag-range-handle"></div>',t}(o(243).AbstractSelectionHandle);t.RangeHandle=a},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/Object.defineProperty(t,"__esModule",{value:!0});var i=o(6),r=o(178),n=o(3),s=o(2),a=function(){function e(){}return e.getEventCallbacks=function(){return e.EVENT_CALLBACKS||(e.EVENT_CALLBACKS=[],e.EVENT_CALLBACKS_NO_PREFIX=[],e.EVENTS.forEach((function(t){e.EVENT_CALLBACKS.push(e.getCallbackForEvent(t)),e.EVENT_CALLBACKS_NO_PREFIX.push(t)}))),e.EVENT_CALLBACKS},e.copyAttributesToGridOptions=function(t,o,i){void 0===i&&(i=!1),l(o),"object"!=typeof t&&(t={});var r=t;return e.ARRAY_PROPERTIES.concat(e.STRING_PROPERTIES).concat(e.OBJECT_PROPERTIES).concat(e.FUNCTION_PROPERTIES).forEach((function(e){void 0!==o[e]&&(r[e]=o[e])})),e.BOOLEAN_PROPERTIES.forEach((function(t){void 0!==o[t]&&(r[t]=e.toBoolean(o[t]))})),e.NUMBER_PROPERTIES.forEach((function(t){void 0!==o[t]&&(r[t]=e.toNumber(o[t]))})),e.getEventCallbacks().forEach((function(e){void 0!==o[e]&&(r[e]=o[e])})),i||e.EVENT_CALLBACKS_NO_PREFIX.forEach((function(t){var i=e.getCallbackForEvent(t);void 0===o[t]&&void 0===o[i]||n.GridOptionsWrapper.checkEventDeprecation(t)})),t},e.getCallbackForEvent=function(e){return!e||e.length<2?e:"on"+e[0].toUpperCase()+e.substr(1)},e.processOnChange=function(t,o,r,n){if(t){l(t);var a=o;e.ARRAY_PROPERTIES.concat(e.OBJECT_PROPERTIES).concat(e.STRING_PROPERTIES).forEach((function(e){t[e]&&(a[e]=t[e].currentValue)})),e.BOOLEAN_PROPERTIES.forEach((function(o){t[o]&&(a[o]=e.toBoolean(t[o].currentValue))})),e.NUMBER_PROPERTIES.forEach((function(o){t[o]&&(a[o]=e.toNumber(t[o].currentValue))})),e.getEventCallbacks().forEach((function(e){t[e]&&(a[e]=t[e].currentValue)})),t.enableCellTextSelection&&r.setEnableCellTextSelection(e.toBoolean(t.enableCellTextSelection.currentValue)),t.showToolPanel&&r.showToolPanel(e.toBoolean(t.showToolPanel.currentValue)),t.quickFilterText&&r.setQuickFilter(t.quickFilterText.currentValue),t.rowData&&r.setRowData(t.rowData.currentValue),t.pinnedTopRowData&&r.setPinnedTopRowData(t.pinnedTopRowData.currentValue),t.pinnedBottomRowData&&r.setPinnedBottomRowData(t.pinnedBottomRowData.currentValue),t.columnDefs&&r.setColumnDefs(t.columnDefs.currentValue,"gridOptionsChanged"),t.datasource&&r.setDatasource(t.datasource.currentValue),t.headerHeight&&r.setHeaderHeight(e.toNumber(t.headerHeight.currentValue)),t.paginationPageSize&&r.paginationSetPageSize(e.toNumber(t.paginationPageSize.currentValue)),t.pivotMode&&n.setPivotMode(e.toBoolean(t.pivotMode.currentValue)),t.groupRemoveSingleChildren&&r.setGroupRemoveSingleChildren(e.toBoolean(t.groupRemoveSingleChildren.currentValue)),t.suppressRowDrag&&r.setSuppressRowDrag(e.toBoolean(t.suppressRowDrag.currentValue)),t.gridAutoHeight&&r.setGridAutoHeight(e.toBoolean(t.gridAutoHeight.currentValue)),t.suppressClipboardPaste&&r.setSuppressClipboardPaste(e.toBoolean(t.suppressClipboardPaste.currentValue)),t.sideBar&&r.setSideBar(t.sideBar.currentValue),t.datasource&&r.setDatasource(t.datasource.currentValue);var p={type:i.Events.EVENT_COMPONENT_STATE_CHANGED,api:o.api,columnApi:o.columnApi};s._.iterateObject(t,(function(e,t){p[e]=t})),r.dispatchEvent(p)}},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=[],e.STRING_PROPERTIES=r.PropertyKeys.STRING_PROPERTIES,e.OBJECT_PROPERTIES=r.PropertyKeys.OBJECT_PROPERTIES,e.ARRAY_PROPERTIES=r.PropertyKeys.ARRAY_PROPERTIES,e.NUMBER_PROPERTIES=r.PropertyKeys.NUMBER_PROPERTIES,e.BOOLEAN_PROPERTIES=r.PropertyKeys.BOOLEAN_PROPERTIES,e.FUNCTION_PROPERTIES=r.PropertyKeys.FUNCTION_PROPERTIES,e.ALL_PROPERTIES=r.PropertyKeys.ALL_PROPERTIES,e}();function l(e){(e.rowDeselected||e.onRowDeselected)&&console.warn("ag-grid: as of v3.4 rowDeselected no longer exists. Please check the docs.")}t.ComponentUtil=a,s._.iterateObject(i.Events,(function(e,t){a.EVENTS.push(t)}))},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),n=this&&this.__decorate||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},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(0),l=o(83),p=o(148),u=o(5),c=o(24),d=o(3),h=o(7),f=o(2),g=function(e){function t(t){var o=e.call(this,{columnController:t.columnController,valueService:t.valueService,gridOptionsWrapper:t.gridOptionsWrapper,processCellCallback:t.processCellCallback,processHeaderCallback:t.processHeaderCallback})||this;o.result="",o.lineOpened=!1;var i=t.suppressQuotes,r=t.columnSeparator;return o.suppressQuotes=i,o.columnSeparator=r,o}return r(t,e),t.prototype.prepare=function(e){},t.prototype.addCustomHeader=function(e){e&&(this.result+=e+"\r\n")},t.prototype.addCustomFooter=function(e){e&&(this.result+=e+"\r\n")},t.prototype.onNewHeaderGroupingRow=function(){return this.lineOpened&&(this.result+="\r\n"),{onColumn:this.onNewHeaderGroupingRowColumn.bind(this)}},t.prototype.onNewHeaderGroupingRowColumn=function(e,t,o){0!=t&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(e,this.suppressQuotes);for(var i=1;i<=o;i++)this.result+=this.columnSeparator+this.putInQuotes("",this.suppressQuotes);this.lineOpened=!0},t.prototype.onNewHeaderRow=function(){return this.lineOpened&&(this.result+="\r\n"),{onColumn:this.onNewHeaderRowColumn.bind(this)}},t.prototype.onNewHeaderRowColumn=function(e,t,o){0!=t&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(this.extractHeaderValue(e),this.suppressQuotes),this.lineOpened=!0},t.prototype.onNewBodyRow=function(){return this.lineOpened&&(this.result+="\r\n"),{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,h.Constants.EXPORT_TYPE_CSV,o),this.suppressQuotes),this.lineOpened=!0},t.prototype.putInQuotes=function(e,t){return t?e:null==e?'""':("string"==typeof e?o=e:"function"==typeof e.toString?o=e.toString():(console.warn("unknown value type during csv conversion"),o=""),'"'+o.replace(/"/g,'""')+'"');var o},t.prototype.parse=function(){return this.result},t}(l.BaseGridSerializingSession);t.CsvSerializingSession=g;var y=function(){function e(){}return e.prototype.setBeans=function(e){this.beans=e},e.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.getMergedParamsAndData(e),o=t.mergedParams,i=t.data,r=o&&o.fileName&&0!==o.fileName.length?o.fileName:this.getDefaultFileName();return-1===r.indexOf(".")&&(r=r+"."+this.getDefaultFileExtension()),this.beans.downloader.download(r,this.packageFile(i)),i},e.prototype.getData=function(e){return this.getMergedParamsAndData(e).data},e.prototype.getMergedParamsAndData=function(e){var t=this.mergeDefaultParams(e);return{mergedParams:t,data:this.beans.gridSerializer.serialize(this.createSerializingSession(t),t)}},e.prototype.mergeDefaultParams=function(e){var t=this.beans.gridOptionsWrapper.getDefaultExportParams(),o={};return f._.assign(o,t),f._.assign(o,e),o},e.prototype.packageFile=function(e){return new Blob(["\ufeff",e],{type:window.navigator.msSaveOrOpenBlob?this.getMimeType():"octet/stream"})},e}();t.BaseCreator=y;var v=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.postConstruct=function(){this.setBeans({downloader:this.downloader,gridSerializer:this.gridSerializer,gridOptionsWrapper:this.gridOptionsWrapper})},t.prototype.exportDataAsCsv=function(e){return this.export(e)},t.prototype.getDataAsCsv=function(e){return this.getData(e)},t.prototype.getMimeType=function(){return"text/csv;charset=utf-8;"},t.prototype.getDefaultFileName=function(){return"export.csv"},t.prototype.getDefaultFileExtension=function(){return"csv"},t.prototype.createSerializingSession=function(e){var t=this.columnController,o=this.valueService,i=this.gridOptionsWrapper,r=e,n=r.processCellCallback,s=r.processHeaderCallback,a=r.suppressQuotes,l=r.columnSeparator;return new g({columnController:t,valueService:o,gridOptionsWrapper:i,processCellCallback:n||void 0,processHeaderCallback:s||void 0,suppressQuotes:a||!1,columnSeparator:l||","})},t.prototype.isExportSuppressed=function(){return this.gridOptionsWrapper.isSuppressCsvExport()},n([a.Autowired("columnController"),s("design:type",u.ColumnController)],t.prototype,"columnController",void 0),n([a.Autowired("valueService"),s("design:type",c.ValueService)],t.prototype,"valueService",void 0),n([a.Autowired("downloader"),s("design:type",p.Downloader)],t.prototype,"downloader",void 0),n([a.Autowired("gridSerializer"),s("design:type",l.GridSerializer)],t.prototype,"gridSerializer",void 0),n([a.Autowired("gridOptionsWrapper"),s("design:type",d.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),n([a.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"postConstruct",null),t=n([a.Bean("csvCreator")],t)}(y);t.CsvCreator=v},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),n=this&&this.__assign||function(){return(n=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}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var s=o(59),a=o(22),l=o(12),p=o(6),u=o(8),c=o(2),d=function(e){function t(t,o,i,r,n,s,a,l,p,u,c){var d=e.call(this)||this;return d.eAllRowContainers=[],d.active=!0,d.rowContainerReadyCount=0,d.refreshNeeded=!1,d.columnRefreshPending=!1,d.cellComps={},d.createSecondPassFuncs=[],d.removeFirstPassFuncs=[],d.removeSecondPassFuncs=[],d.initialised=!1,d.parentScope=t,d.beans=a,d.bodyContainerComp=o,d.pinnedLeftContainerComp=i,d.pinnedRightContainerComp=r,d.fullWidthContainerComp=n,d.rowNode=s,d.rowIsEven=d.rowNode.rowIndex%2==0,d.paginationPage=d.beans.paginationProxy.getCurrentPage(),d.useAnimationFrameForCreate=p,d.printLayout=u,d.embedFullWidth=c,d.setAnimateFlags(l),d}return r(t,e),t.prototype.init=function(){var e=this;this.rowFocused=this.beans.focusedCellController.isRowFocused(this.rowNode.rowIndex,this.rowNode.rowPinned),this.scope=this.createChildScopeOrNull(this.rowNode.data),this.setupRowContainers(),this.addListeners(),this.slideRowIn&&this.createSecondPassFuncs.push((function(){e.onTopChanged()})),this.fadeRowIn&&this.createSecondPassFuncs.push((function(){e.eAllRowContainers.forEach((function(e){return c._.removeCssClass(e,"ag-opacity-zero")}))}))},t.prototype.createTemplate=function(e,t){void 0===t&&(t=null);var o=[],i=this.rowNode.rowHeight,r=this.getInitialRowClasses(t).join(" "),n=c._.escape(this.rowNode.id),s=this.preProcessStylesFromGridOptions(),a=this.getRowBusinessKey(),l=c._.escape(a),p=this.getInitialRowTopStyle(),u=this.rowNode.getRowIndexString(),d=this.beans.gridPanel.headerRootComp.getHeaderRowCount();return o.push("<div"),o.push(' role="row"'),o.push(' row-index="'+u+'" aria-rowindex="'+(d+this.rowNode.rowIndex+1)+'"'),o.push(n?' row-id="'+n+'"':""),o.push(a?' row-business-key="'+l+'"':""),o.push(' comp-id="'+this.getCompId()+'"'),o.push(' class="'+r+'"'),o.push(' style="height: '+i+"px; "+p+" "+s+'">'),o.push(e),o.push("</div>"),o.join("")},t.prototype.getCellForCol=function(e){var t=this.cellComps[e.getColId()];return t?t.getGui():null},t.prototype.afterFlush=function(){this.initialised||(this.initialised=!0,this.executeProcessRowPostCreateFunc())},t.prototype.executeProcessRowPostCreateFunc=function(){var e=this.beans.gridOptionsWrapper.getProcessRowPostCreateFunc();e&&e({eRow:this.eBodyRow,ePinnedLeftRow:this.ePinnedLeftRow,ePinnedRightRow:this.ePinnedRightRow,node:this.rowNode,api:this.beans.gridOptionsWrapper.getApi(),rowIndex:this.rowNode.rowIndex,addRenderedRowListener:this.addEventListener.bind(this),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),context:this.beans.gridOptionsWrapper.getContext()})},t.prototype.getInitialRowTopStyle=function(){if(this.printLayout)return"";var e=this.slideRowIn?this.roundRowTopToBounds(this.rowNode.oldRowTop):this.rowNode.rowTop,t=this.applyPaginationOffset(e),o=this.beans.maxDivHeightScaler.getRealPixelPosition(t);return this.beans.gridOptionsWrapper.isSuppressRowTransform()?"top: "+o+"px; ":"transform: translateY("+o+"px);"},t.prototype.getRowBusinessKey=function(){var e=this.beans.gridOptionsWrapper.getBusinessKeyForNodeFunc();if("function"==typeof e)return e(this.rowNode)},t.prototype.areAllContainersReady=function(){return 3===this.rowContainerReadyCount},t.prototype.lazyCreateCells=function(e,t){if(this.active){var o=this.createCells(e);t.innerHTML=o.template,this.callAfterRowAttachedOnCells(o.cellComps,t),this.rowContainerReadyCount++,this.areAllContainersReady()&&this.refreshNeeded&&this.refreshCells()}},t.prototype.createRowContainer=function(e,t,o){var i=this,r=this.useAnimationFrameForCreate,n=r?{cellComps:[],template:""}:this.createCells(t),s=this.createTemplate(n.template);e.appendRowTemplate(s,(function(){var s=e.getRowElement(i.getCompId());i.afterRowAttached(e,s),o(s),r?i.beans.taskQueue.addP1Task(i.lazyCreateCells.bind(i,t,s),i.rowNode.rowIndex):(i.callAfterRowAttachedOnCells(n.cellComps,s),i.rowContainerReadyCount=3)}))},t.prototype.createChildScopeOrNull=function(e){if(!this.beans.gridOptionsWrapper.isAngularCompileRows())return null;var t=this.parentScope.$new();return t.data=n({},e),t.rowNode=this.rowNode,t.context=this.beans.gridOptionsWrapper.getContext(),this.addDestroyFunc((function(){t.$destroy(),t.data=null,t.rowNode=null,t.context=null})),t},t.prototype.setupRowContainers=function(){var e=this.beans.gridOptionsWrapper.getIsFullWidthCellFunc(),o=!!e&&e(this.rowNode),i=this.beans.doingMasterDetail&&this.rowNode.detail,r=this.beans.columnController.isPivotMode(),n=this.rowNode.group&&!this.rowNode.footer&&this.beans.gridOptionsWrapper.isGroupUseEntireRow(r);this.rowNode.stub?this.createFullWidthRows(t.LOADING_CELL_RENDERER,t.LOADING_CELL_RENDERER_COMP_NAME):i?this.createFullWidthRows(t.DETAIL_CELL_RENDERER,t.DETAIL_CELL_RENDERER_COMP_NAME):o?this.createFullWidthRows(t.FULL_WIDTH_CELL_RENDERER,null):n?this.createFullWidthRows(t.GROUP_ROW_RENDERER,t.GROUP_ROW_RENDERER_COMP_NAME):this.setupNormalRowContainers()},t.prototype.setupNormalRowContainers=function(){var e,t,o,i=this;this.printLayout?(e=this.beans.columnController.getAllDisplayedColumns(),t=[],o=[]):(e=this.beans.columnController.getAllDisplayedCenterVirtualColumnsForRow(this.rowNode),t=this.beans.columnController.getDisplayedLeftColumnsForRow(this.rowNode),o=this.beans.columnController.getDisplayedRightColumnsForRow(this.rowNode)),this.createRowContainer(this.bodyContainerComp,e,(function(e){return i.eBodyRow=e})),this.createRowContainer(this.pinnedRightContainerComp,o,(function(e){return i.ePinnedRightRow=e})),this.createRowContainer(this.pinnedLeftContainerComp,t,(function(e){return i.ePinnedLeftRow=e}))},t.prototype.createFullWidthRows=function(e,t){var o=this;this.fullWidthRow=!0,this.embedFullWidth?(this.createFullWidthRowContainer(this.bodyContainerComp,null,null,e,t,(function(e){o.eFullWidthRowBody=e}),(function(e){o.fullWidthRowComponentBody=e})),this.printLayout||(this.createFullWidthRowContainer(this.pinnedLeftContainerComp,l.Column.PINNED_LEFT,"ag-cell-last-left-pinned",e,t,(function(e){o.eFullWidthRowLeft=e}),(function(e){o.fullWidthRowComponentLeft=e})),this.createFullWidthRowContainer(this.pinnedRightContainerComp,l.Column.PINNED_RIGHT,"ag-cell-first-right-pinned",e,t,(function(e){o.eFullWidthRowRight=e}),(function(e){o.fullWidthRowComponentRight=e})))):this.createFullWidthRowContainer(this.fullWidthContainerComp,null,null,e,t,(function(e){o.eFullWidthRow=e}),(function(e){o.fullWidthRowComponent=e}))},t.prototype.setAnimateFlags=function(e){if(e){var t=c._.exists(this.rowNode.oldRowTop);this.slideRowIn=t,this.fadeRowIn=!t}else this.slideRowIn=!1,this.fadeRowIn=!1},t.prototype.isEditing=function(){return this.editingRow},t.prototype.stopRowEditing=function(e){this.stopEditing(e)},t.prototype.isFullWidth=function(){return this.fullWidthRow},t.prototype.refreshFullWidth=function(){var e=this,t=function(t,o,i){if(!t||!o)return!0;if(!o.refresh)return!1;var r=e.createFullWidthParams(t,i);return o.refresh(r)},o=t(this.eFullWidthRow,this.fullWidthRowComponent,null),i=t(this.eFullWidthRowBody,this.fullWidthRowComponentBody,null),r=t(this.eFullWidthRowLeft,this.fullWidthRowComponentLeft,l.Column.PINNED_LEFT),n=t(this.eFullWidthRowRight,this.fullWidthRowComponentRight,l.Column.PINNED_RIGHT);return o&&i&&r&&n},t.prototype.addListeners=function(){this.addDestroyableEventListener(this.rowNode,a.RowNode.EVENT_HEIGHT_CHANGED,this.onRowHeightChanged.bind(this)),this.addDestroyableEventListener(this.rowNode,a.RowNode.EVENT_ROW_SELECTED,this.onRowSelected.bind(this)),this.addDestroyableEventListener(this.rowNode,a.RowNode.EVENT_ROW_INDEX_CHANGED,this.onRowIndexChanged.bind(this)),this.addDestroyableEventListener(this.rowNode,a.RowNode.EVENT_TOP_CHANGED,this.onTopChanged.bind(this)),this.addDestroyableEventListener(this.rowNode,a.RowNode.EVENT_EXPANDED_CHANGED,this.onExpandedChanged.bind(this)),this.addDestroyableEventListener(this.rowNode,a.RowNode.EVENT_DATA_CHANGED,this.onRowNodeDataChanged.bind(this)),this.addDestroyableEventListener(this.rowNode,a.RowNode.EVENT_CELL_CHANGED,this.onRowNodeCellChanged.bind(this)),this.addDestroyableEventListener(this.rowNode,a.RowNode.EVENT_DRAGGING_CHANGED,this.onRowNodeDraggingChanged.bind(this));var e=this.beans.eventService;this.addDestroyableEventListener(e,p.Events.EVENT_HEIGHT_SCALE_CHANGED,this.onTopChanged.bind(this)),this.addDestroyableEventListener(e,p.Events.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addDestroyableEventListener(e,p.Events.EVENT_VIRTUAL_COLUMNS_CHANGED,this.onVirtualColumnsChanged.bind(this)),this.addDestroyableEventListener(e,p.Events.EVENT_COLUMN_RESIZED,this.onColumnResized.bind(this)),this.addDestroyableEventListener(e,p.Events.EVENT_CELL_FOCUSED,this.onCellFocusChanged.bind(this)),this.addDestroyableEventListener(e,p.Events.EVENT_PAGINATION_CHANGED,this.onPaginationChanged.bind(this)),this.addDestroyableEventListener(e,p.Events.EVENT_GRID_COLUMNS_CHANGED,this.onGridColumnsChanged.bind(this)),this.addDestroyableEventListener(e,p.Events.EVENT_MODEL_UPDATED,this.onModelUpdated.bind(this)),this.addListenersForCellComps()},t.prototype.addListenersForCellComps=function(){var e=this;this.addDestroyableEventListener(this.rowNode,a.RowNode.EVENT_ROW_INDEX_CHANGED,(function(){e.forEachCellComp((function(e){return e.onRowIndexChanged()}))})),this.addDestroyableEventListener(this.rowNode,a.RowNode.EVENT_CELL_CHANGED,(function(t){e.forEachCellComp((function(e){return e.onCellChanged(t)}))}))},t.prototype.onGridColumnsChanged=function(){this.removeRenderedCells(Object.keys(this.cellComps))},t.prototype.onRowNodeDataChanged=function(e){this.forEachCellComp((function(t){return t.refreshCell({suppressFlash:!e.update,newData:!e.update})})),this.onRowSelected(),this.postProcessCss()},t.prototype.onRowNodeCellChanged=function(e){this.postProcessCss()},t.prototype.postProcessCss=function(){this.postProcessStylesFromGridOptions(),this.postProcessClassesFromGridOptions(),this.postProcessRowClassRules(),this.postProcessRowDragging()},t.prototype.onRowNodeDraggingChanged=function(){this.postProcessRowDragging()},t.prototype.postProcessRowDragging=function(){var e=this.rowNode.dragging;this.eAllRowContainers.forEach((function(t){return c._.addOrRemoveCssClass(t,"ag-row-dragging",e)}))},t.prototype.onExpandedChanged=function(){var e=this.rowNode;this.eAllRowContainers.forEach((function(t){return c._.addOrRemoveCssClass(t,"ag-row-group-expanded",e.expanded)})),this.eAllRowContainers.forEach((function(t){return c._.addOrRemoveCssClass(t,"ag-row-group-contracted",!e.expanded)}))},t.prototype.onDisplayedColumnsChanged=function(){this.fullWidthRow||this.refreshCells()},t.prototype.destroyFullWidthComponents=function(){this.fullWidthRowComponent&&(this.beans.detailRowCompCache.addOrDestroy(this.rowNode,null,this.fullWidthRowComponent),this.fullWidthRowComponent=null),this.fullWidthRowComponentBody&&(this.beans.detailRowCompCache.addOrDestroy(this.rowNode,null,this.fullWidthRowComponentBody),this.fullWidthRowComponent=null),this.fullWidthRowComponentLeft&&(this.beans.detailRowCompCache.addOrDestroy(this.rowNode,l.Column.PINNED_LEFT,this.fullWidthRowComponentLeft),this.fullWidthRowComponentLeft=null),this.fullWidthRowComponentRight&&(this.beans.detailRowCompCache.addOrDestroy(this.rowNode,l.Column.PINNED_RIGHT,this.fullWidthRowComponentRight),this.fullWidthRowComponent=null)},t.prototype.getContainerForCell=function(e){switch(e){case l.Column.PINNED_LEFT:return this.ePinnedLeftRow;case l.Column.PINNED_RIGHT:return this.ePinnedRightRow;default:return this.eBodyRow}},t.prototype.onVirtualColumnsChanged=function(){this.fullWidthRow||this.refreshCells()},t.prototype.onColumnResized=function(){this.fullWidthRow||this.refreshCells()},t.prototype.refreshCells=function(){if(this.areAllContainersReady())if(this.beans.gridOptionsWrapper.isSuppressAnimationFrame()||this.printLayout)this.refreshCellsInAnimationFrame();else{if(this.columnRefreshPending)return;this.beans.taskQueue.addP1Task(this.refreshCellsInAnimationFrame.bind(this),this.rowNode.rowIndex)}else this.refreshNeeded=!0},t.prototype.refreshCellsInAnimationFrame=function(){if(this.active){var e,t,o;this.columnRefreshPending=!1,this.printLayout?(e=this.beans.columnController.getAllDisplayedColumns(),t=[],o=[]):(e=this.beans.columnController.getAllDisplayedCenterVirtualColumnsForRow(this.rowNode),t=this.beans.columnController.getDisplayedLeftColumnsForRow(this.rowNode),o=this.beans.columnController.getDisplayedRightColumnsForRow(this.rowNode)),this.insertCellsIntoContainer(this.eBodyRow,e),this.insertCellsIntoContainer(this.ePinnedLeftRow,t),this.insertCellsIntoContainer(this.ePinnedRightRow,o);var i=Object.keys(this.cellComps);e.forEach((function(e){return c._.removeFromArray(i,e.getId())})),t.forEach((function(e){return c._.removeFromArray(i,e.getId())})),o.forEach((function(e){return c._.removeFromArray(i,e.getId())}));var r=c._.filter(i,this.isCellEligibleToBeRemoved.bind(this));this.removeRenderedCells(r)}},t.prototype.removeRenderedCells=function(e){var t=this;e.forEach((function(e){var o=t.cellComps[e];c._.missing(o)||(o.detach(),o.destroy(),t.cellComps[e]=null)}))},t.prototype.isCellEligibleToBeRemoved=function(e){var t=this.beans.columnController.getAllDisplayedColumns(),o=this.cellComps[e];if(!o)return!0;if(this.isCellInWrongRow(o))return!0;var i=o.isEditing(),r=this.beans.focusedCellController.isCellFocused(o.getCellPosition());if(i||r){var n=o.getColumn();return!(t.indexOf(n)>=0)}return!0},t.prototype.ensureCellInCorrectContainer=function(e){if(!this.printLayout){var t=e.getGui(),o=e.getColumn().getPinned(),i=this.getContainerForCell(o),r=e.getParentRow();r!==i&&(r&&r.removeChild(t),i.appendChild(t),e.setParentRow(i))}},t.prototype.isCellInWrongRow=function(e){var t=e.getColumn(),o=this.getContainerForCell(t.getPinned());return e.getParentRow()!==o},t.prototype.insertCellsIntoContainer=function(e,t){var o=this;if(e){var i=[],r=[];t.forEach((function(t){var n=t.getId(),s=o.cellComps[n];s?o.ensureCellInCorrectContainer(s):o.createNewCell(t,e,i,r)})),i.length>0&&(c._.appendHtml(e,i.join("")),this.callAfterRowAttachedOnCells(r,e))}},t.prototype.addDomData=function(e){var o=this.beans.gridOptionsWrapper;o.setDomData(e,t.DOM_DATA_KEY_RENDERED_ROW,this),this.addDestroyFunc((function(){o.setDomData(e,t.DOM_DATA_KEY_RENDERED_ROW,null)}))},t.prototype.createNewCell=function(e,t,o,i){var r=new s.CellComp(this.scope,this.beans,e,this.rowNode,this,!1,this.printLayout),n=r.getCreateTemplate();o.push(n),i.push(r),this.cellComps[e.getId()]=r,r.setParentRow(t)},t.prototype.onMouseEvent=function(e,t){switch(e){case"dblclick":this.onRowDblClick(t);break;case"click":this.onRowClick(t)}},t.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.gridOptionsWrapper.getContext(),api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),event:t}},t.prototype.createRowEventWithSource=function(e,t){var o=this.createRowEvent(e,t);return o.source=this,o},t.prototype.onRowDblClick=function(e){if(!c._.isStopPropagationForAgGrid(e)){var t=this.createRowEventWithSource(p.Events.EVENT_ROW_DOUBLE_CLICKED,e);this.beans.eventService.dispatchEvent(t)}},t.prototype.onRowClick=function(e){if(!c._.isStopPropagationForAgGrid(e)){var t=this.createRowEventWithSource(p.Events.EVENT_ROW_CLICKED,e);this.beans.eventService.dispatchEvent(t);var o=e.ctrlKey||e.metaKey,i=e.shiftKey;if(!this.rowNode.group&&this.rowNode.selectable&&!this.rowNode.rowPinned&&this.beans.gridOptionsWrapper.isRowSelection()&&!this.beans.gridOptionsWrapper.isSuppressRowClickSelection()){var r=this.beans.gridOptionsWrapper.isRowMultiSelectWithClick(),n=this.beans.gridOptionsWrapper.isRowDeselection();if(this.rowNode.isSelected())r?this.rowNode.setSelectedParams({newValue:!1}):o?n&&this.rowNode.setSelectedParams({newValue:!1}):this.rowNode.setSelectedParams({newValue:!0,clearSelection:!0});else{var s=!r&&!o;this.rowNode.setSelectedParams({newValue:!0,clearSelection:s,rangeSelect:i})}}}},t.prototype.createFullWidthRowContainer=function(e,t,o,i,r,n,s){var a=this,l=this.createTemplate("",o);e.appendRowTemplate(l,(function(){var o=e.getRowElement(a.getCompId()),l=a.createFullWidthParams(o,t),p=function(e){if(a.isAlive()){var t=e.getGui();o.appendChild(t),s(e)}else e.destroy&&e.destroy()},u=a.beans.detailRowCompCache.get(a.rowNode,t);if(u)p(u);else{var c=a.beans.userComponentFactory.newFullWidthCellRenderer(l,i,r);if(!c)return void console.error("ag-Grid: fullWidthCellRenderer not defined");c.then(p)}a.afterRowAttached(e,o),n(o),a.angular1Compile(o)}))},t.prototype.angular1Compile=function(e){this.scope&&this.beans.$compile(e)(this.scope)},t.prototype.createFullWidthParams=function(e,t){return{fullWidth:!0,data:this.rowNode.data,node:this.rowNode,value:this.rowNode.key,$scope:this.scope?this.scope:this.parentScope,$compile:this.beans.$compile,rowIndex:this.rowNode.rowIndex,api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),context:this.beans.gridOptionsWrapper.getContext(),eGridCell:e,eParentOfValue:e,pinned:t,addRenderedRowListener:this.addEventListener.bind(this)}},t.prototype.getInitialRowClasses=function(e){var t=[],o=this.beans.gridOptionsWrapper.isTreeData(),i=this.rowNode;return c._.exists(e)&&t.push(e),t.push("ag-row"),t.push(this.rowFocused?"ag-row-focus":"ag-row-no-focus"),this.fadeRowIn&&t.push("ag-opacity-zero"),t.push(this.rowIsEven?"ag-row-even":"ag-row-odd"),i.isSelected()&&t.push("ag-row-selected"),i.group?(t.push("ag-row-group"),t.push("ag-row-level-"+i.level),i.footer&&t.push("ag-row-footer")):t.push("ag-row-level-"+(i.parent?i.parent.level+1:"0")),i.stub&&t.push("ag-row-stub"),this.fullWidthRow&&t.push("ag-full-width-row"),(o?i.allChildrenCount:i.group&&!i.footer)&&t.push(i.expanded?"ag-row-group-expanded":"ag-row-group-contracted"),i.dragging&&t.push("ag-row-dragging"),c._.pushAll(t,this.processClassesFromGridOptions()),c._.pushAll(t,this.preProcessRowClassRules()),t.push(this.printLayout?"ag-row-position-relative":"ag-row-position-absolute"),this.firstRowOnPage=this.isFirstRowOnPage(),this.lastRowOnPage=this.isLastRowOnPage(),this.firstRowOnPage&&t.push("ag-row-first"),this.lastRowOnPage&&t.push("ag-row-last"),t},t.prototype.isFirstRowOnPage=function(){return this.rowNode.rowIndex===this.beans.paginationProxy.getPageFirstRow()},t.prototype.isLastRowOnPage=function(){return this.rowNode.rowIndex===this.beans.paginationProxy.getPageLastRow()},t.prototype.onModelUpdated=function(){var e=this.isFirstRowOnPage(),t=this.isLastRowOnPage();this.firstRowOnPage!==e&&(this.firstRowOnPage=e,this.eAllRowContainers.forEach((function(t){return c._.addOrRemoveCssClass(t,"ag-row-first",e)}))),this.lastRowOnPage!==t&&(this.lastRowOnPage=t,this.eAllRowContainers.forEach((function(e){return c._.addOrRemoveCssClass(e,"ag-row-last",t)})))},t.prototype.preProcessRowClassRules=function(){var e=[];return this.processRowClassRules((function(t){e.push(t)}),(function(e){})),e},t.prototype.processRowClassRules=function(e,t){this.beans.stylingService.processClassRules(this.beans.gridOptionsWrapper.rowClassRules(),{value:void 0,colDef:void 0,data:this.rowNode.data,node:this.rowNode,rowIndex:this.rowNode.rowIndex,api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),$scope:this.scope,context:this.beans.gridOptionsWrapper.getContext()},e,t)},t.prototype.stopEditing=function(e){if(void 0===e&&(e=!1),this.forEachCellComp((function(t){t.stopEditing(e)})),this.editingRow){if(!e){var t=this.createRowEvent(p.Events.EVENT_ROW_VALUE_CHANGED);this.beans.eventService.dispatchEvent(t)}this.setEditingRow(!1)}},t.prototype.setEditingRow=function(e){this.editingRow=e,this.eAllRowContainers.forEach((function(t){return c._.addOrRemoveCssClass(t,"ag-row-editing",e)}));var t=e?this.createRowEvent(p.Events.EVENT_ROW_EDITING_STARTED):this.createRowEvent(p.Events.EVENT_ROW_EDITING_STOPPED);this.beans.eventService.dispatchEvent(t)},t.prototype.startRowEditing=function(e,t,o){void 0===e&&(e=null),void 0===t&&(t=null),void 0===o&&(o=null),this.editingRow||(this.forEachCellComp((function(i){var r=i===o;r?i.startEditingIfEnabled(e,t,r):i.startEditingIfEnabled(null,null,r)})),this.setEditingRow(!0))},t.prototype.forEachCellComp=function(e){c._.iterateObject(this.cellComps,(function(t,o){o&&e(o)}))},t.prototype.postProcessClassesFromGridOptions=function(){var e=this,t=this.processClassesFromGridOptions();t&&t.length&&t.forEach((function(t){e.eAllRowContainers.forEach((function(e){return c._.addCssClass(e,t)}))}))},t.prototype.postProcessRowClassRules=function(){var e=this;this.processRowClassRules((function(t){e.eAllRowContainers.forEach((function(e){return c._.addCssClass(e,t)}))}),(function(t){e.eAllRowContainers.forEach((function(e){return c._.removeCssClass(e,t)}))}))},t.prototype.processClassesFromGridOptions=function(){var e=[],t=function(t){"string"==typeof t?e.push(t):Array.isArray(t)&&t.forEach((function(t){return e.push(t)}))},o=this.beans.gridOptionsWrapper.getRowClass();if(o){if("function"==typeof o)return void console.warn("ag-Grid: rowClass should not be a function, please use getRowClass instead");t(o)}var i=this.beans.gridOptionsWrapper.getRowClassFunc();i&&t(i({node:this.rowNode,data:this.rowNode.data,rowIndex:this.rowNode.rowIndex,context:this.beans.gridOptionsWrapper.getContext(),api:this.beans.gridOptionsWrapper.getApi()}));return e},t.prototype.preProcessStylesFromGridOptions=function(){var e=this.processStylesFromGridOptions();return c._.cssStyleObjectToMarkup(e)},t.prototype.postProcessStylesFromGridOptions=function(){var e=this.processStylesFromGridOptions();this.eAllRowContainers.forEach((function(t){return c._.addStylesToElement(t,e)}))},t.prototype.processStylesFromGridOptions=function(){var e=this.beans.gridOptionsWrapper.getRowStyle();if(!e||"function"!=typeof e){var t,o=this.beans.gridOptionsWrapper.getRowStyleFunc();if(o)t=o({data:this.rowNode.data,node:this.rowNode,api:this.beans.gridOptionsWrapper.getApi(),context:this.beans.gridOptionsWrapper.getContext(),$scope:this.scope});return c._.assign({},e,t)}console.warn("ag-Grid: rowStyle should be an object of key/value styles, not be a function, use getRowStyle() instead")},t.prototype.createCells=function(e){var t=this,o=[],i=[];return e.forEach((function(e){var r=new s.CellComp(t.scope,t.beans,e,t.rowNode,t,!1,t.printLayout),n=r.getCreateTemplate();o.push(n),i.push(r),t.cellComps[e.getId()]=r})),{template:o.join(""),cellComps:i}},t.prototype.onRowSelected=function(){var e=this.rowNode.isSelected();this.eAllRowContainers.forEach((function(t){return c._.addOrRemoveCssClass(t,"ag-row-selected",e)}))},t.prototype.callAfterRowAttachedOnCells=function(e,t){var o=this;e.forEach((function(e){e.setParentRow(t),e.afterAttached(),o.editingRow&&e.startEditingIfEnabled()}))},t.prototype.afterRowAttached=function(e,t){var o=this;this.addDomData(t),this.removeSecondPassFuncs.push((function(){e.removeRowElement(t)})),this.removeFirstPassFuncs.push((function(){if(c._.exists(o.rowNode.rowTop)){var e=o.roundRowTopToBounds(o.rowNode.rowTop);o.setRowTop(e)}else c._.addCssClass(t,"ag-opacity-zero")})),this.eAllRowContainers.push(t),this.useAnimationFrameForCreate?this.beans.taskQueue.addP2Task(this.addHoverFunctionality.bind(this,t)):this.addHoverFunctionality(t)},t.prototype.addHoverFunctionality=function(e){var t=this;this.active&&(this.addDestroyableEventListener(e,"mouseenter",(function(){return t.rowNode.onMouseEnter()})),this.addDestroyableEventListener(e,"mouseleave",(function(){return t.rowNode.onMouseLeave()})),this.addDestroyableEventListener(this.rowNode,a.RowNode.EVENT_MOUSE_ENTER,(function(){t.beans.gridOptionsWrapper.isSuppressRowHoverHighlight()||c._.addCssClass(e,"ag-row-hover")})),this.addDestroyableEventListener(this.rowNode,a.RowNode.EVENT_MOUSE_LEAVE,(function(){c._.removeCssClass(e,"ag-row-hover")})))},t.prototype.roundRowTopToBounds=function(e){var t=this.beans.gridPanel.getVScrollPosition(),o=this.applyPaginationOffset(t.top,!0)-100,i=this.applyPaginationOffset(t.bottom,!0)+100;return Math.min(Math.max(o,e),i)},t.prototype.getFrameworkOverrides=function(){return this.beans.frameworkOverrides},t.prototype.onRowHeightChanged=function(){if(c._.exists(this.rowNode.rowHeight)){var e=this.rowNode.rowHeight+"px";this.eAllRowContainers.forEach((function(t){return t.style.height=e}))}},t.prototype.addEventListener=function(t,o){"renderedRowRemoved"!==t&&"rowRemoved"!==t||(t=p.Events.EVENT_VIRTUAL_ROW_REMOVED,console.warn("ag-Grid: Since version 11, event renderedRowRemoved is now called "+p.Events.EVENT_VIRTUAL_ROW_REMOVED)),e.prototype.addEventListener.call(this,t,o)},t.prototype.removeEventListener=function(t,o){"renderedRowRemoved"!==t&&"rowRemoved"!==t||(t=p.Events.EVENT_VIRTUAL_ROW_REMOVED,console.warn("ag-Grid: Since version 11, event renderedRowRemoved and rowRemoved is now called "+p.Events.EVENT_VIRTUAL_ROW_REMOVED)),e.prototype.removeEventListener.call(this,t,o)},t.prototype.destroy=function(t){(void 0===t&&(t=!1),e.prototype.destroy.call(this),this.active=!1,this.destroyFullWidthComponents(),t)?(this.removeFirstPassFuncs.forEach((function(e){return e()})),this.removeSecondPassFuncs.push(this.destroyContainingCells.bind(this))):(this.destroyContainingCells(),this.getAndClearDelayedDestroyFunctions().forEach((function(e){return e()})));var o=this.createRowEvent(p.Events.EVENT_VIRTUAL_ROW_REMOVED);this.dispatchEvent(o),this.beans.eventService.dispatchEvent(o)},t.prototype.destroyContainingCells=function(){this.forEachCellComp((function(e){return e.destroy()})),this.destroyFullWidthComponents()},t.prototype.getAndClearDelayedDestroyFunctions=function(){var e=this.removeSecondPassFuncs;return this.removeSecondPassFuncs=[],e},t.prototype.onCellFocusChanged=function(){var e=this.beans.focusedCellController.isRowFocused(this.rowNode.rowIndex,this.rowNode.rowPinned);e!==this.rowFocused&&(this.eAllRowContainers.forEach((function(t){return c._.addOrRemoveCssClass(t,"ag-row-focus",e)})),this.eAllRowContainers.forEach((function(t){return c._.addOrRemoveCssClass(t,"ag-row-no-focus",!e)})),this.rowFocused=e),!e&&this.editingRow&&this.stopEditing(!1)},t.prototype.onPaginationChanged=function(){var e=this.beans.paginationProxy.getCurrentPage();this.paginationPage!==e&&(this.paginationPage=e,this.onTopChanged())},t.prototype.onTopChanged=function(){this.setRowTop(this.rowNode.rowTop)},t.prototype.applyPaginationOffset=function(e,t){return void 0===t&&(t=!1),this.rowNode.isRowPinned()?e:e+this.beans.paginationProxy.getPixelOffset()*(t?1:-1)},t.prototype.setRowTop=function(e){if(!this.printLayout&&c._.exists(e)){var t=this.applyPaginationOffset(e),o=this.beans.maxDivHeightScaler.getRealPixelPosition(t)+"px";this.beans.gridOptionsWrapper.isSuppressRowTransform()?this.eAllRowContainers.forEach((function(e){return e.style.top=o})):this.eAllRowContainers.forEach((function(e){return e.style.transform="translateY("+o+")"}))}},t.prototype.getAndClearNextVMTurnFunctions=function(){var e=this.createSecondPassFuncs;return this.createSecondPassFuncs=[],e},t.prototype.getRowNode=function(){return this.rowNode},t.prototype.getRenderedCellForColumn=function(e){var t=this,o=this.cellComps[e.getColId()];if(o)return o;var i=Object.keys(this.cellComps).map((function(e){return t.cellComps[e]})).filter((function(t){return t&&-1!==t.getColSpanningList().indexOf(e)}));return i.length?i[0]:void 0},t.prototype.onRowIndexChanged=function(){this.onCellFocusChanged(),this.updateRowIndexes()},t.prototype.updateRowIndexes=function(){var e=this,t=this.rowNode.getRowIndexString(),o=this.rowNode.rowIndex%2==0,i=this.rowIsEven!==o,r=this.beans.gridPanel.headerRootComp.getHeaderRowCount();i&&(this.rowIsEven=o),this.eAllRowContainers.forEach((function(n){n.setAttribute("row-index",t),n.setAttribute("aria-rowindex",(r+e.rowNode.rowIndex+1).toString()),i&&(c._.addOrRemoveCssClass(n,"ag-row-even",o),c._.addOrRemoveCssClass(n,"ag-row-odd",!o))}))},t.prototype.ensureDomOrder=function(){[{el:this.getBodyRowElement(),ct:this.bodyContainerComp},{el:this.getPinnedLeftRowElement(),ct:this.pinnedLeftContainerComp},{el:this.getPinnedRightRowElement(),ct:this.pinnedRightContainerComp},{el:this.getFullWidthRowElement(),ct:this.fullWidthContainerComp}].forEach((function(e){e.el&&e.ct.ensureDomOrder(e.el)}))},t.prototype.getPinnedLeftRowElement=function(){return this.ePinnedLeftRow?this.ePinnedLeftRow:this.eFullWidthRowLeft},t.prototype.getPinnedRightRowElement=function(){return this.ePinnedRightRow?this.ePinnedRightRow:this.eFullWidthRowRight},t.prototype.getBodyRowElement=function(){return this.eBodyRow?this.eBodyRow:this.eFullWidthRowBody},t.prototype.getFullWidthRowElement=function(){return this.eFullWidthRow},t.DOM_DATA_KEY_RENDERED_ROW="renderedRow",t.FULL_WIDTH_CELL_RENDERER="fullWidthCellRenderer",t.GROUP_ROW_RENDERER="groupRowRenderer",t.GROUP_ROW_RENDERER_COMP_NAME="agGroupRowRenderer",t.LOADING_CELL_RENDERER="loadingCellRenderer",t.LOADING_CELL_RENDERER_COMP_NAME="agLoadingCellRenderer",t.DETAIL_CELL_RENDERER="detailCellRenderer",t.DETAIL_CELL_RENDERER_COMP_NAME="agDetailCellRenderer",t}(u.Component);t.RowComp=d},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),n=this&&this.__decorate||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},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(8),l=o(22),p=o(0),u=o(3),c=o(6),d=o(4),h=o(9),f=o(10),g=o(2),y=function(e){function t(){return e.call(this,'<span class="ag-selection-checkbox" unselectable="on"/>')||this}return r(t,e),t.prototype.createAndAddIcons=function(){this.eCheckedIcon=g._.createIconNoSpan("checkboxChecked",this.gridOptionsWrapper,this.column),this.eUncheckedIcon=g._.createIconNoSpan("checkboxUnchecked",this.gridOptionsWrapper,this.column),this.eIndeterminateIcon=g._.createIconNoSpan("checkboxIndeterminate",this.gridOptionsWrapper,this.column);var e=this.getGui();e.appendChild(this.eCheckedIcon),e.appendChild(this.eUncheckedIcon),e.appendChild(this.eIndeterminateIcon)},t.prototype.onDataChanged=function(){this.onSelectionChanged()},t.prototype.onSelectableChanged=function(){this.showOrHideSelect()},t.prototype.onSelectionChanged=function(){var e=this.rowNode.isSelected();g._.setDisplayed(this.eCheckedIcon,!0===e),g._.setDisplayed(this.eUncheckedIcon,!1===e),g._.setDisplayed(this.eIndeterminateIcon,"boolean"!=typeof e)},t.prototype.onCheckedClicked=function(){var e=this.gridOptionsWrapper.isGroupSelectsFiltered();return this.rowNode.setSelectedParams({newValue:!1,groupSelectsFiltered:e})},t.prototype.onUncheckedClicked=function(e){var t=this.gridOptionsWrapper.isGroupSelectsFiltered();return this.rowNode.setSelectedParams({newValue:!0,rangeSelect:e.shiftKey,groupSelectsFiltered:t})},t.prototype.onIndeterminateClicked=function(e){0===this.onUncheckedClicked(e)&&this.onCheckedClicked()},t.prototype.init=function(e){this.rowNode=e.rowNode,this.column=e.column,this.createAndAddIcons(),this.onSelectionChanged(),this.addGuiEventListener("click",(function(e){return g._.stopPropagationForAgGrid(e)})),this.addGuiEventListener("dblclick",(function(e){return g._.stopPropagationForAgGrid(e)})),this.addDestroyableEventListener(this.eCheckedIcon,"click",this.onCheckedClicked.bind(this)),this.addDestroyableEventListener(this.eUncheckedIcon,"click",this.onUncheckedClicked.bind(this)),this.addDestroyableEventListener(this.eIndeterminateIcon,"click",this.onIndeterminateClicked.bind(this)),this.addDestroyableEventListener(this.rowNode,l.RowNode.EVENT_ROW_SELECTED,this.onSelectionChanged.bind(this)),this.addDestroyableEventListener(this.rowNode,l.RowNode.EVENT_DATA_CHANGED,this.onDataChanged.bind(this)),this.addDestroyableEventListener(this.rowNode,l.RowNode.EVENT_SELECTABLE_CHANGED,this.onSelectableChanged.bind(this)),this.isRowSelectableFunc=this.gridOptionsWrapper.getIsRowSelectableFunc(),(this.isRowSelectableFunc||this.checkboxCallbackExists())&&(this.addDestroyableEventListener(this.eventService,c.Events.EVENT_DISPLAYED_COLUMNS_CHANGED,this.showOrHideSelect.bind(this)),this.showOrHideSelect())},t.prototype.showOrHideSelect=function(){var e=this.rowNode.selectable;e&&this.checkboxCallbackExists()&&(e=this.column.isCellCheckboxSelection(this.rowNode)),this.setDisplayed(e)},t.prototype.checkboxCallbackExists=function(){var e=this.column?this.column.getColDef():null;return e&&"function"==typeof e.checkboxSelection},n([p.Autowired("gridOptionsWrapper"),s("design:type",u.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),n([p.Autowired("eventService"),s("design:type",d.EventService)],t.prototype,"eventService",void 0),n([p.Autowired("gridApi"),s("design:type",h.GridApi)],t.prototype,"gridApi",void 0),n([p.Autowired("columnApi"),s("design:type",f.ColumnApi)],t.prototype,"columnApi",void 0),t}(a.Component);t.CheckboxSelectionComponent=y},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),n=this&&this.__decorate||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},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(47),l=o(0),p=o(3),u=o(2),c=function(e){function t(t){var o=e.call(this,'<div class="ag-popup-editor" tabindex="-1"/>')||this;return o.getGuiCalledOnChild=!1,o.cellEditor=t,o}return r(t,e),t.prototype.onKeyDown=function(e){u._.isUserSuppressingKeyboardEvent(this.gridOptionsWrapper,e,this.params.node,this.params.column,!0)||this.params.onKeyDown(e)},t.prototype.getGui=function(){return this.getGuiCalledOnChild||(this.appendChild(this.cellEditor.getGui()),this.getGuiCalledOnChild=!0),e.prototype.getGui.call(this)},t.prototype.init=function(o){var i=this;this.params=o,this.gridOptionsWrapper.setDomData(this.getGui(),t.DOM_KEY_POPUP_EDITOR_WRAPPER,!0),this.addDestroyFunc((function(){i.cellEditor.destroy&&i.cellEditor.destroy()})),this.addDestroyableEventListener(e.prototype.getGui.call(this),"keydown",this.onKeyDown.bind(this))},t.prototype.afterGuiAttached=function(){this.cellEditor.afterGuiAttached&&this.cellEditor.afterGuiAttached()},t.prototype.getValue=function(){return this.cellEditor.getValue()},t.prototype.isCancelBeforeStart=function(){if(this.cellEditor.isCancelBeforeStart)return this.cellEditor.isCancelBeforeStart()},t.prototype.isCancelAfterEnd=function(){if(this.cellEditor.isCancelAfterEnd)return this.cellEditor.isCancelAfterEnd()},t.prototype.focusIn=function(){this.cellEditor.focusIn&&this.cellEditor.focusIn()},t.prototype.focusOut=function(){this.cellEditor.focusOut&&this.cellEditor.focusOut()},t.DOM_KEY_POPUP_EDITOR_WRAPPER="popupEditorWrapper",n([l.Autowired("gridOptionsWrapper"),s("design:type",p.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),t}(a.PopupComponent);t.PopupEditorWrapper=c},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/var i=this&&this.__decorate||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},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),s=o(7),a=o(5),l=o(3),p=o(30),u=o(2),c=function(){function e(){}return e.prototype.getNextCellToFocus=function(e,t){for(var o=t,i=!1;!i;){switch(e){case s.Constants.KEY_UP:o=this.getCellAbove(o);break;case s.Constants.KEY_DOWN:o=this.getCellBelow(o);break;case s.Constants.KEY_RIGHT:o=this.gridOptionsWrapper.isEnableRtl()?this.getCellToLeft(o):this.getCellToRight(o);break;case s.Constants.KEY_LEFT:o=this.gridOptionsWrapper.isEnableRtl()?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},e.prototype.isCellGoodToFocusOn=function(e){var t,o=e.column;switch(e.rowPinned){case s.Constants.PINNED_TOP:t=this.pinnedRowModel.getPinnedTopRow(e.rowIndex);break;case s.Constants.PINNED_BOTTOM:t=this.pinnedRowModel.getPinnedBottomRow(e.rowIndex);break;default:t=this.rowModel.getRow(e.rowIndex)}return!o.isSuppressNavigable(t)},e.prototype.getCellToLeft=function(e){if(!e)return null;var t=this.columnController.getDisplayedColBefore(e.column);return t?{rowIndex:e.rowIndex,column:t,rowPinned:e.rowPinned}:null},e.prototype.getCellToRight=function(e){if(!e)return null;var t=this.columnController.getDisplayedColAfter(e.column);return t?{rowIndex:e.rowIndex,column:t,rowPinned:e.rowPinned}:null},e.prototype.getRowBelow=function(e){var t=e.rowIndex,o=e.rowPinned;if(this.isLastRowInContainer(e))switch(o){case s.Constants.PINNED_BOTTOM:return null;case s.Constants.PINNED_TOP:return this.rowModel.isRowsToRender()?{rowIndex:0,rowPinned:null}:this.pinnedRowModel.isRowsToRender(s.Constants.PINNED_BOTTOM)?{rowIndex:0,rowPinned:s.Constants.PINNED_BOTTOM}:null;default:return this.pinnedRowModel.isRowsToRender(s.Constants.PINNED_BOTTOM)?{rowIndex:0,rowPinned:s.Constants.PINNED_BOTTOM}:null}return{rowIndex:t+1,rowPinned:o}},e.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},e.prototype.isLastRowInContainer=function(e){var t=e.rowPinned,o=e.rowIndex;return t===s.Constants.PINNED_TOP?this.pinnedRowModel.getPinnedTopRowData().length-1<=o:t===s.Constants.PINNED_BOTTOM?this.pinnedRowModel.getPinnedBottomRowData().length-1<=o:this.rowModel.getRowCount()-1<=o},e.prototype.getRowAbove=function(e){var t=e.rowIndex,o=e.rowPinned;return 0===t?o===s.Constants.PINNED_TOP?null:o&&this.rowModel.isRowsToRender()?this.getLastBodyCell():this.pinnedRowModel.isRowsToRender(s.Constants.PINNED_TOP)?this.getLastFloatingTopRow():null:{rowIndex:t-1,rowPinned:o}},e.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},e.prototype.getLastBodyCell=function(){return{rowIndex:this.rowModel.getRowCount()-1,rowPinned:null}},e.prototype.getLastFloatingTopRow=function(){return{rowIndex:this.pinnedRowModel.getPinnedTopRowData().length-1,rowPinned:s.Constants.PINNED_TOP}},e.prototype.getNextTabbedCell=function(e,t){return t?this.getNextTabbedCellBackwards(e):this.getNextTabbedCellForwards(e)},e.prototype.getNextTabbedCellForwards=function(e){var t=this.columnController.getAllDisplayedColumns(),o=e.rowIndex,i=e.rowPinned,r=this.columnController.getDisplayedColAfter(e.column);if(!r){r=t[0];var n=this.getRowBelow(e);if(u._.missing(n))return null;o=n?n.rowIndex:null,i=n?n.rowPinned:null}return{rowIndex:o,column:r,rowPinned:i}},e.prototype.getNextTabbedCellBackwards=function(e){var t=this.columnController.getAllDisplayedColumns(),o=e.rowIndex,i=e.rowPinned,r=this.columnController.getDisplayedColBefore(e.column);if(!r){r=u._.last(t);var n=this.getRowAbove({rowIndex:e.rowIndex,rowPinned:e.rowPinned});if(u._.missing(n))return null;o=n?n.rowIndex:null,i=n?n.rowPinned:null}return{rowIndex:o,column:r,rowPinned:i}},i([n.Autowired("columnController"),r("design:type",a.ColumnController)],e.prototype,"columnController",void 0),i([n.Autowired("rowModel"),r("design:type",Object)],e.prototype,"rowModel",void 0),i([n.Autowired("pinnedRowModel"),r("design:type",p.PinnedRowModel)],e.prototype,"pinnedRowModel",void 0),i([n.Autowired("gridOptionsWrapper"),r("design:type",l.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),e=i([n.Bean("cellNavigationService")],e)}();t.CellNavigationService=c},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/var i=this&&this.__decorate||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},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),s=o(0),a=function(){function e(){this.templateCache={},this.waitingCallbacks={}}return e.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},e.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])()}if(this.$scope){var r=this;window.setTimeout((function(){r.$scope.$apply()}),0)}}else console.warn("Unable to get template error "+e.status+" - "+t)},i([s.Autowired("$scope"),r("design:type",Object)],e.prototype,"$scope",void 0),e=i([n.Bean("templateService")],e)}();t.TemplateService=a},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),n=this&&this.__decorate||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},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(8),l=o(2),p=o(0),u=o(17),c=function(e){function t(){var o=e.call(this,t.TEMPLATE)||this;return o.refreshCount=0,o.eCurrent=o.queryForHtmlElement(".ag-value-slide-current"),o}return r(t,e),t.prototype.init=function(e){this.params=e,this.refresh(e)},t.prototype.addSlideAnimation=function(){var e=this;this.refreshCount++;var t=this.refreshCount;this.ePrevious&&this.getGui().removeChild(this.ePrevious),this.ePrevious=l._.loadTemplate('<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&&l._.addCssClass(e.ePrevious,"ag-value-slide-out-end")}),50),window.setTimeout((function(){t===e.refreshCount&&(e.getGui().removeChild(e.ePrevious),e.ePrevious=null)}),3e3)},t.prototype.refresh=function(e){var t=e.value;if(l._.missing(t)&&(t=""),t!==this.lastValue&&!this.filterManager.isSuppressFlashingCellsBecauseFiltering())return this.addSlideAnimation(),this.lastValue=t,l._.exists(e.valueFormatted)?this.eCurrent.innerHTML=e.valueFormatted:l._.exists(e.value)?this.eCurrent.innerHTML=t:l._.clearElement(this.eCurrent),!0},t.TEMPLATE='<span><span class="ag-value-slide-current"></span></span>',n([p.Autowired("filterManager"),s("design:type",u.FilterManager)],t.prototype,"filterManager",void 0),t}(a.Component);t.AnimateSlideCellRenderer=c},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/var i=this&&this.__decorate||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},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var n,s=o(131),a=o(0),l=o(132),p=o(253),u=o(254),c=o(134),d=o(135),h=o(129),f=o(255),g=o(136),y=o(182),v=o(183),m=o(184),C=o(137),w=o(256),_=o(257),b=o(258),E=o(2),R=o(259),P=o(260),O=o(138),S=o(261),A=o(262);!function(e){e[e.DEFAULT=0]="DEFAULT",e[e.REGISTERED=1]="REGISTERED"}(n=t.RegisteredComponentSource||(t.RegisteredComponentSource={}));var T=function(){function e(){this.agGridDefaults={agDateInput:R.DefaultDateComponent,agColumnHeader:p.HeaderComp,agColumnGroupHeader:u.HeaderGroupComp,agTextColumnFloatingFilter:A.TextFloatingFilter,agNumberColumnFloatingFilter:S.NumberFloatingFilter,agDateColumnFloatingFilter:P.DateFloatingFilter,agAnimateShowChangeCellRenderer:d.AnimateShowChangeCellRenderer,agAnimateSlideCellRenderer:h.AnimateSlideCellRenderer,agGroupCellRenderer:c.GroupCellRenderer,agGroupRowRenderer:c.GroupCellRenderer,agLoadingCellRenderer:f.LoadingCellRenderer,agCellEditor:s.TextCellEditor,agTextCellEditor:s.TextCellEditor,agSelectCellEditor:g.SelectCellEditor,agPopupTextCellEditor:y.PopupTextCellEditor,agPopupSelectCellEditor:v.PopupSelectCellEditor,agLargeTextCellEditor:m.LargeTextCellEditor,agTextColumnFilter:O.TextFilter,agNumberColumnFilter:C.NumberFilter,agDateColumnFilter:l.DateFilter,agLoadingOverlay:w.LoadingOverlayComponent,agNoRowsOverlay:_.NoRowsOverlayComponent,agTooltipComponent:b.TooltipComponent},this.agDeprecatedNames={set:{newComponentName:"agSetColumnFilter",propertyHolder:"filter"},text:{newComponentName:"agTextColumnFilter",propertyHolder:"filter"},number:{newComponentName:"agNumberColumnFilter",propertyHolder:"filter"},date:{newComponentName:"agDateColumnFilter",propertyHolder:"filter"},group:{newComponentName:"agGroupCellRenderer",propertyHolder:"cellRenderer"},animateShowChange:{newComponentName:"agAnimateShowChangeCellRenderer",propertyHolder:"cellRenderer"},animateSlide:{newComponentName:"agAnimateSlideCellRenderer",propertyHolder:"cellRenderer"},select:{newComponentName:"agSelectCellEditor",propertyHolder:"cellEditor"},largeText:{newComponentName:"agLargeTextCellEditor",propertyHolder:"cellEditor"},popupSelect:{newComponentName:"agPopupSelectCellEditor",propertyHolder:"cellEditor"},popupText:{newComponentName:"agPopupTextCellEditor",propertyHolder:"cellEditor"},richSelect:{newComponentName:"agRichSelectCellEditor",propertyHolder:"cellEditor"},headerComponent:{newComponentName:"agColumnHeader",propertyHolder:"headerComponent"}},this.jsComponents={},this.frameworkComponents={}}return e.prototype.init=function(){var e=this,t=this.context.getEnterpriseDefaultComponents();t&&E._.forEach(t,(function(t){e.registerDefaultComponent(t.componentName,t.theClass)})),null!=this.gridOptions.components&&Object.keys(this.gridOptions.components).forEach((function(t){e.registerComponent(t,e.gridOptions.components[t])})),null!=this.gridOptions.frameworkComponents&&Object.keys(this.gridOptions.frameworkComponents).forEach((function(t){e.registerFwComponent(t,e.gridOptions.frameworkComponents[t])}))},e.prototype.registerDefaultComponent=function(e,t){var o=this.translateIfDeprecated(e);this.agGridDefaults[o]?console.error("Trying to overwrite a default component. You should call registerComponent"):this.agGridDefaults[o]=t},e.prototype.registerComponent=function(e,t){var o=this.translateIfDeprecated(e);this.frameworkComponents[o]?console.error("Trying to register a component that you have already registered for frameworks: "+o):this.jsComponents[o]=t},e.prototype.registerFwComponent=function(e,t){var o=this.translateIfDeprecated(e);this.jsComponents[o]?console.error("Trying to register a component that you have already registered for plain javascript: "+o):this.frameworkComponents[o]=t},e.prototype.retrieve=function(e){var t=this.translateIfDeprecated(e);return this.frameworkComponents[t]?{componentFromFramework:!0,component:this.frameworkComponents[t],source:n.REGISTERED}:this.jsComponents[t]?{componentFromFramework:!1,component:this.jsComponents[t],source:n.REGISTERED}:this.agGridDefaults[t]?this.agGridDefaults[t]?{componentFromFramework:!1,component:this.agGridDefaults[t],source:n.DEFAULT}:null:(Object.keys(this.agGridDefaults).indexOf(t)<0&&console.warn("ag-Grid: Looking for component ["+t+"] but it wasn't found."),null)},e.prototype.translateIfDeprecated=function(e){var t=this.agDeprecatedNames[e];return null!=t?(E._.doOnce((function(){console.warn("ag-grid. Since v15.0 component names have been renamed to be namespaced. You should rename "+t.propertyHolder+":"+e+" to "+t.propertyHolder+":"+t.newComponentName)}),"DEPRECATE_COMPONENT_"+e),t.newComponentName):e},i([a.Autowired("gridOptions"),r("design:type",Object)],e.prototype,"gridOptions",void 0),i([a.Autowired("context"),r("design:type",a.Context)],e.prototype,"context",void 0),i([a.PostConstruct,r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],e.prototype,"init",null),e=i([a.Bean("userComponentRegistry")],e)}();t.UserComponentRegistry=T},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var n=o(7),s=o(47),a=o(2),l=function(e){function t(){var o=e.call(this,t.TEMPLATE)||this;return o.eInput=o.getGui().querySelector("input"),o}return r(t,e),t.prototype.init=function(e){this.params=e;var t,o=this.eInput;e.cellStartedEdit?(this.focusAfterAttached=!0,e.keyPress===n.Constants.KEY_BACKSPACE||e.keyPress===n.Constants.KEY_DELETE?t="":e.charPress?t=e.charPress:(t=this.getStartValue(e),e.keyPress!==n.Constants.KEY_F2&&(this.highlightAllOnFocus=!0))):(this.focusAfterAttached=!1,t=this.getStartValue(e));a._.exists(t)&&(o.value=t),this.addDestroyableEventListener(o,"keydown",(function(e){var t=e.keyCode===n.Constants.KEY_PAGE_UP,o=e.keyCode===n.Constants.KEY_PAGE_DOWN;(t||o)&&e.preventDefault()}))},t.prototype.afterGuiAttached=function(){if(this.focusAfterAttached){var e=this.eInput;if(e.focus(),this.highlightAllOnFocus)e.select();else{var t=e.value?e.value.length:0;t>0&&e.setSelectionRange(t,t)}}},t.prototype.focusIn=function(){var e=this.eInput;e.focus(),e.select()},t.prototype.getValue=function(){var e=this.eInput;return this.params.parseValue(e.value)},t.prototype.getStartValue=function(e){return e.useFormatter||e.column.getColDef().refData?e.formatValue(e.value):e.value},t.prototype.isPopup=function(){return!1},t.TEMPLATE='<div class="ag-input-wrapper" role="presentation"><input class="ag-cell-edit-input" type="text"/></div>',t}(s.PopupComponent);t.TextCellEditor=l},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),n=this&&this.__decorate||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},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(11),l=o(0),p=o(19),u=o(2),c=o(180),d=o(33),h=o(133),f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.mapRangeFromModel=function(e){return{from:u._.parseYyyyMmDdToDate(e.dateFrom,"-"),to:u._.parseYyyyMmDdToDate(e.dateTo,"-")}},t.prototype.setValueFromFloatingFilter=function(e){if(null!=e){var t=u._.parseYyyyMmDdToDate(e,"-");this.dateCompFrom1.setDate(t)}else this.dateCompFrom1.setDate(null);this.dateCompTo1.setDate(null),this.dateCompFrom2.setDate(null),this.dateCompTo2.setDate(null)},t.prototype.setConditionIntoUi=function(e,t){var o=t===d.ConditionPosition.One,i=e?e.dateFrom:null,r=e?e.dateTo:null,n=u._.parseYyyyMmDdToDate(i,"-"),s=u._.parseYyyyMmDdToDate(r,"-"),a=o?this.dateCompFrom1:this.dateCompFrom2,l=o?this.dateCompTo1:this.dateCompTo2;a.setDate(n),l.setDate(s)},t.prototype.resetUiToDefaults=function(){e.prototype.resetUiToDefaults.call(this),this.dateCompTo1.setDate(null),this.dateCompTo2.setDate(null),this.dateCompFrom1.setDate(null),this.dateCompFrom2.setDate(null)},t.prototype.comparator=function(){return this.dateFilterParams.comparator?this.dateFilterParams.comparator:this.defaultComparator.bind(this)},t.prototype.defaultComparator=function(e,t){return t<e?-1:t>e?1:null!=t?0:-1},t.prototype.setParams=function(t){e.prototype.setParams.call(this,t),this.dateFilterParams=t,this.createDateComponents()},t.prototype.createDateComponents=function(){var e=this,t={onDateChanged:function(){return e.onUiChanged()},filterParams:this.dateFilterParams};this.dateCompFrom1=new c.DateCompWrapper(this.userComponentFactory,t,this.ePanelFrom1),this.dateCompFrom2=new c.DateCompWrapper(this.userComponentFactory,t,this.ePanelFrom2),this.dateCompTo1=new c.DateCompWrapper(this.userComponentFactory,t,this.ePanelTo1),this.dateCompTo2=new c.DateCompWrapper(this.userComponentFactory,t,this.ePanelTo2),this.addDestroyFunc((function(){e.dateCompFrom1.destroy(),e.dateCompFrom2.destroy(),e.dateCompTo1.destroy(),e.dateCompTo2.destroy()}))},t.prototype.getDefaultFilterOptions=function(){return t.DEFAULT_FILTER_OPTIONS},t.prototype.createValueTemplate=function(e){var t=e===d.ConditionPosition.One?"1":"2";return'<div class="ag-filter-body" ref="eCondition'+t+'Body">\n <div class="ag-filter-date-from" ref="ePanelFrom'+t+'">\n </div>\n <div class="ag-filter-date-to" ref="ePanelTo'+t+'"">\n </div>\n </div>'},t.prototype.isConditionUiComplete=function(e){var t=e===d.ConditionPosition.One,o=t?this.getCondition1Type():this.getCondition2Type(),i=t?this.dateCompFrom1:this.dateCompFrom2,r=t?this.dateCompTo1:this.dateCompTo2,n=i.getDate(),s=r.getDate();return o!==d.SimpleFilter.EMPTY&&(!!this.doesFilterHaveHiddenInput(o)||(o===d.SimpleFilter.IN_RANGE?null!=n&&null!=s:null!=n))},t.prototype.areSimpleModelsEqual=function(e,t){return e.dateFrom===t.dateFrom&&e.dateTo===t.dateTo&&e.type===t.type},t.prototype.getFilterType=function(){return t.FILTER_TYPE},t.prototype.createCondition=function(e){var o=e===d.ConditionPosition.One,i=o?this.getCondition1Type():this.getCondition2Type(),r=o?this.dateCompTo1:this.dateCompTo2,n=o?this.dateCompFrom1:this.dateCompFrom2;return{dateTo:u._.serializeDateToYyyyMmDd(r.getDate(),"-"),dateFrom:u._.serializeDateToYyyyMmDd(n.getDate(),"-"),type:i,filterType:t.FILTER_TYPE}},t.prototype.updateUiVisibility=function(){e.prototype.updateUiVisibility.call(this);var t=this.showValueFrom(this.getCondition1Type());u._.setDisplayed(this.ePanelFrom1,t);var o=this.showValueTo(this.getCondition1Type());u._.setDisplayed(this.ePanelTo1,o);var i=this.showValueFrom(this.getCondition2Type());u._.setDisplayed(this.ePanelFrom2,i);var r=this.showValueTo(this.getCondition2Type());u._.setDisplayed(this.ePanelTo2,r)},t.FILTER_TYPE="date",t.DEFAULT_FILTER_OPTIONS=[h.ScalerFilter.EQUALS,h.ScalerFilter.GREATER_THAN,h.ScalerFilter.LESS_THAN,h.ScalerFilter.NOT_EQUAL,h.ScalerFilter.IN_RANGE],n([a.RefSelector("ePanelFrom1"),s("design:type",HTMLElement)],t.prototype,"ePanelFrom1",void 0),n([a.RefSelector("ePanelFrom2"),s("design:type",HTMLElement)],t.prototype,"ePanelFrom2",void 0),n([a.RefSelector("ePanelTo1"),s("design:type",HTMLElement)],t.prototype,"ePanelTo1",void 0),n([a.RefSelector("ePanelTo2"),s("design:type",HTMLElement)],t.prototype,"ePanelTo2",void 0),n([l.Autowired("userComponentFactory"),s("design:type",p.UserComponentFactory)],t.prototype,"userComponentFactory",void 0),t}(h.ScalerFilter);t.DateFilter=f},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var n=o(33),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.setParams=function(t){e.prototype.setParams.call(this,t),this.scalarFilterParams=t,this.checkDeprecatedParams()},t.prototype.checkDeprecatedParams=function(){this.scalarFilterParams.nullComparator&&(console.warn("ag-Grid: Since v21.0, the property filterParams.nullComparator is deprecated. Please use filterParams.includeBlanksInEquals, filterParams.includeBlanksInLessThan and filterParams.includeBlanksInGreaterThan instead."),this.scalarFilterParams.includeBlanksInEquals=this.scalarFilterParams.nullComparator.equals,this.scalarFilterParams.includeBlanksInLessThan=this.scalarFilterParams.nullComparator.lessThan,this.scalarFilterParams.includeBlanksInGreaterThan=this.scalarFilterParams.nullComparator.greaterThan)},t.prototype.nullComparator=function(e,o,i){if(null==i){var r=this.canNullsPassFilter(e);if(e===t.EMPTY)return 0;if(e===t.EQUALS)return r?0:1;if(e===t.GREATER_THAN)return r?1:-1;if(e===t.GREATER_THAN_OR_EQUAL)return r?1:-1;if(e===t.LESS_THAN_OR_EQUAL)return r?-1:1;if(e===t.LESS_THAN)return r?-1:1;if(e===t.NOT_EQUAL)return r?1:0}return this.comparator()(o,i)},t.prototype.canNullsPassFilter=function(e){switch(e){case n.SimpleFilter.GREATER_THAN:case n.SimpleFilter.GREATER_THAN_OR_EQUAL:return this.scalarFilterParams.includeBlanksInGreaterThan;case n.SimpleFilter.LESS_THAN:case n.SimpleFilter.LESS_THAN_OR_EQUAL:return this.scalarFilterParams.includeBlanksInLessThan;case n.SimpleFilter.EQUALS:return this.scalarFilterParams.includeBlanksInEquals}},t.prototype.individualConditionPasses=function(e,o){var i=this.scalarFilterParams.valueGetter(e.node),r=this.mapRangeFromModel(o),n=r.from,s=r.to,a=o.type,l=this.optionsFactory.getCustomOption(a);if(l&&(null!=n||l.hideFilterInput))return l.test(n,i);var p=this.nullComparator(a,n,i);if(a===t.EQUALS)return 0===p;if(a===t.GREATER_THAN)return p>0;if(a===t.GREATER_THAN_OR_EQUAL)return p>=0;if(a===t.LESS_THAN_OR_EQUAL)return p<=0;if(a===t.LESS_THAN)return p<0;if(a===t.NOT_EQUAL)return 0!=p;var u=this.nullComparator(a,s,i);if(a===t.IN_RANGE)return this.scalarFilterParams.inRangeInclusive?p>=0&&u<=0:p>0&&u<0;throw new Error("Unexpected type of filter: "+a)},t.DEFAULT_NULL_COMPARATOR={equals:!1,lessThan:!1,greaterThan:!1},t}(n.SimpleFilter);t.ScalerFilter=s},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),n=this&&this.__decorate||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},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(3),l=o(25),p=o(4),u=o(7),c=o(0),d=o(8),h=o(22),f=o(62),g=o(125),y=o(5),v=o(12),m=o(11),C=o(63),w=o(19),_=o(2),b=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return r(t,e),t.prototype.init=function(e){this.params=e,this.gridOptionsWrapper.isGroupIncludeTotalFooter()&&this.assignBlankValueToGroupFooterCell(e);var t=this.isEmbeddedRowMismatch(),o=null==e.value;this.cellIsBlank=t||o,this.cellIsBlank||(this.setupDragOpenParents(),this.addExpandAndContract(),this.addCheckboxIfNeeded(),this.addValueElement(),this.setupIndent())},t.prototype.assignBlankValueToGroupFooterCell=function(e){e.value||-1!=e.node.level||(e.value="")},t.prototype.isEmbeddedRowMismatch=function(){if(this.params.fullWidth&&this.gridOptionsWrapper.isEmbedFullWidthRows()){var e=this.params.pinned===v.Column.PINNED_LEFT,t=this.params.pinned===v.Column.PINNED_RIGHT,o=!e&&!t;return this.gridOptionsWrapper.isEnableRtl()?this.columnController.isPinningLeft()?!t:!o:this.columnController.isPinningLeft()?!e:!o}return!1},t.prototype.setIndent=function(){if(!this.gridOptionsWrapper.isGroupHideOpenParents()){var e=this.params,t=e.node.uiLevel;e.padding>=0?this.setPaddingDeprecatedWay(t,e.padding):(this.indentClass&&this.removeCssClass(this.indentClass),this.indentClass="ag-row-group-indent-"+t,this.addCssClass(this.indentClass))}},t.prototype.setPaddingDeprecatedWay=function(e,t){_._.doOnce((function(){return console.warn("ag-Grid: since v14.2, configuring padding for groupCellRenderer should be done with Sass variables and themes. Please see the ag-Grid documentation page for Themes, in particular the property $row-group-indent-size.")}),"groupCellRenderer->doDeprecatedWay");var o=e*t;this.gridOptionsWrapper.isEnableRtl()?this.getGui().style.paddingRight=o+"px":this.getGui().style.paddingLeft=o+"px"},t.prototype.setupIndent=function(){var e=this.params.node;this.params.suppressPadding||(this.addDestroyableEventListener(e,h.RowNode.EVENT_UI_LEVEL_CHANGED,this.setIndent.bind(this)),this.setIndent())},t.prototype.addValueElement=function(){var e=this.params,t=this.displayedGroup;t.footer?this.createFooterCell():t.hasChildren()||_._.get(e.colDef,"cellRendererParams.innerRenderer",null)||_._.get(e.colDef,"cellRendererParams.innerRendererFramework",null)?(this.createGroupCell(),t.hasChildren()&&this.addChildCount()):this.createLeafCell()},t.prototype.createFooterCell=function(){var e,t=this.params.footerValueGetter;if(t){var o=_._.cloneObject(this.params);o.value=this.params.value,"function"==typeof t?e=t(o):"string"==typeof t?e=this.expressionService.evaluate(t,o):console.warn("ag-Grid: footerValueGetter should be either a function or a string (expression)")}else e="Total "+this.params.value;this.eValue.innerHTML=e},t.prototype.createGroupCell=function(){var e,t=this,o=this.params,i=this.displayedGroup.rowGroupColumn,r=i||o.column,n=this.params.value,s=r?this.valueFormatterService.formatValue(r,o.node,o.scope,n):null;o.valueFormatted=s,(e=1==o.fullWidth?this.useFullWidth(o):this.useInnerRenderer(this.params.colDef.cellRendererParams,r.getColDef(),o))&&e.then((function(e){t.innerCellRenderer=e}))},t.prototype.useInnerRenderer=function(e,t,o){var i=this,r=null,n=this.userComponentFactory.lookupComponentClassDef(e,"innerRenderer");if(n&&null!=n.component&&n.source!=w.ComponentSource.DEFAULT)r=this.userComponentFactory.newInnerCellRenderer(e,o);else{var s=this.userComponentFactory.lookupComponentClassDef(t,"cellRenderer");r=s&&s.source!=w.ComponentSource.DEFAULT?this.userComponentFactory.newCellRenderer(t,o):s&&s.source==w.ComponentSource.DEFAULT&&_._.get(t,"cellRendererParams.innerRenderer",null)?this.userComponentFactory.newInnerCellRenderer(t.cellRendererParams,o):this.userComponentFactory.newCellRenderer({},o)}return null!=r?r.then((function(e){null!=e?_._.bindCellRendererToHtmlElement(r,i.eValue):i.eValue.innerText=null!=o.valueFormatted?o.valueFormatted:o.value})):this.eValue.innerText=null!=o.valueFormatted?o.valueFormatted:o.value,r},t.prototype.useFullWidth=function(e){var t=this.userComponentFactory.newFullWidthGroupRowInnerCellRenderer(e);return null!=t?_._.bindCellRendererToHtmlElement(t,this.eValue):this.eValue.innerText=null!=e.valueFormatted?e.valueFormatted:e.value,t},t.prototype.addChildCount=function(){this.params.suppressCount||(this.addDestroyableEventListener(this.displayedGroup,h.RowNode.EVENT_ALL_CHILDREN_COUNT_CHANGED,this.updateChildCount.bind(this)),this.updateChildCount())},t.prototype.updateChildCount=function(){var e=this.displayedGroup.allChildrenCount;this.eChildCount.innerHTML=e>=0?"("+e+")":""},t.prototype.createLeafCell=function(){_._.exists(this.params.value)&&(this.eValue.innerText=this.params.valueFormatted?this.params.valueFormatted:this.params.value)},t.prototype.isUserWantsSelected=function(){var e=this.params.checkbox;return"function"==typeof e?e(this.params):!0===e},t.prototype.addCheckboxIfNeeded=function(){var e=this.displayedGroup,t=this.isUserWantsSelected()&&!e.footer&&!e.rowPinned&&!e.detail;if(t){var o=new g.CheckboxSelectionComponent;this.getContext().wireBean(o),o.init({rowNode:e,column:this.params.column}),this.eCheckbox.appendChild(o.getGui()),this.addDestroyFunc((function(){return o.destroy()}))}_._.addOrRemoveCssClass(this.eCheckbox,"ag-invisible",!t)},t.prototype.addExpandAndContract=function(){var e=this.params,t=e.eGridCell,o=_._.createIconNoSpan("groupExpanded",this.gridOptionsWrapper,null),i=_._.createIconNoSpan("groupContracted",this.gridOptionsWrapper,null);this.eExpanded.appendChild(o),this.eContracted.appendChild(i),this.addDestroyableEventListener(this.eExpanded,"click",this.onExpandClicked.bind(this)),this.addDestroyableEventListener(this.eContracted,"click",this.onExpandClicked.bind(this)),this.addDestroyableEventListener(t,"keydown",this.onKeyDown.bind(this)),this.addDestroyableEventListener(e.node,h.RowNode.EVENT_EXPANDED_CHANGED,this.showExpandAndContractIcons.bind(this)),this.showExpandAndContractIcons(),this.addDestroyableEventListener(this.displayedGroup,h.RowNode.EVENT_ALL_CHILDREN_COUNT_CHANGED,this.onAllChildrenCountChanged.bind(this)),this.gridOptionsWrapper.isEnableGroupEdit()||!this.isExpandable()||e.suppressDoubleClickExpand||this.addDestroyableEventListener(t,"dblclick",this.onCellDblClicked.bind(this))},t.prototype.onAllChildrenCountChanged=function(){this.showExpandAndContractIcons(),this.setIndent()},t.prototype.onKeyDown=function(e){if(_._.isKeyPressed(e,u.Constants.KEY_ENTER)){if(this.params.suppressEnterExpand)return;if(this.params.column&&this.params.column.isCellEditable(this.params.node))return;e.preventDefault(),this.onExpandOrContract()}},t.prototype.setupDragOpenParents=function(){var e=this.params.column,t=this.params.node;if(this.gridOptionsWrapper.isGroupHideOpenParents())if(t.hasChildren()){var o=t.rowGroupColumn;this.draggedFromHideOpenParents=!!o&&!e.isRowGroupDisplayed(o.getId())}else this.draggedFromHideOpenParents=!0;else this.draggedFromHideOpenParents=!1;if(this.draggedFromHideOpenParents)for(var i=t.parent;!_._.missing(i);){if(i.rowGroupColumn&&e.isRowGroupDisplayed(i.rowGroupColumn.getId())){this.displayedGroup=i;break}i=i.parent}_._.missing(this.displayedGroup)&&(this.displayedGroup=t)},t.prototype.onExpandClicked=function(e){_._.isStopPropagationForAgGrid(e)||(_._.stopPropagationForAgGrid(e),this.onExpandOrContract())},t.prototype.onCellDblClicked=function(e){_._.isStopPropagationForAgGrid(e)||(_._.isElementInEventPath(this.eExpanded,e)||_._.isElementInEventPath(this.eContracted,e)||this.onExpandOrContract())},t.prototype.onExpandOrContract=function(){var e=this.displayedGroup;e.setExpanded(!e.expanded)},t.prototype.isExpandable=function(){var e=this.params.node,t=this.columnController.isPivotMode()&&e.leafGroup;return this.draggedFromHideOpenParents||e.isExpandable()&&!e.footer&&!t},t.prototype.showExpandAndContractIcons=function(){var e=this.params.node;if(this.isExpandable()){var t=!!this.draggedFromHideOpenParents||e.expanded;_._.setDisplayed(this.eContracted,!t),_._.setDisplayed(this.eExpanded,t)}else _._.setDisplayed(this.eExpanded,!1),_._.setDisplayed(this.eContracted,!1);var o=this.displayedGroup,i=this.columnController.isPivotMode()&&o.leafGroup,r=!o.isExpandable(),n=o.footer||r||i;this.addOrRemoveCssClass("ag-row-group",!n),this.addOrRemoveCssClass("ag-row-group-leaf-indent",n)},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.innerCellRenderer&&this.innerCellRenderer.destroy&&this.innerCellRenderer.destroy()},t.prototype.refresh=function(){return!1},t.TEMPLATE='<span class="ag-cell-wrapper"><span class="ag-group-expanded" ref="eExpanded"></span><span class="ag-group-contracted" ref="eContracted"></span><span class="ag-group-checkbox ag-invisible" ref="eCheckbox"></span><span class="ag-group-value" ref="eValue"></span><span class="ag-group-child-count" ref="eChildCount"></span></span>',n([c.Autowired("gridOptionsWrapper"),s("design:type",a.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),n([c.Autowired("expressionService"),s("design:type",l.ExpressionService)],t.prototype,"expressionService",void 0),n([c.Autowired("eventService"),s("design:type",p.EventService)],t.prototype,"eventService",void 0),n([c.Autowired("valueFormatterService"),s("design:type",f.ValueFormatterService)],t.prototype,"valueFormatterService",void 0),n([c.Autowired("columnController"),s("design:type",y.ColumnController)],t.prototype,"columnController",void 0),n([c.Autowired("mouseEventService"),s("design:type",C.MouseEventService)],t.prototype,"mouseEventService",void 0),n([c.Autowired("userComponentFactory"),s("design:type",w.UserComponentFactory)],t.prototype,"userComponentFactory",void 0),n([m.RefSelector("eExpanded"),s("design:type",HTMLElement)],t.prototype,"eExpanded",void 0),n([m.RefSelector("eContracted"),s("design:type",HTMLElement)],t.prototype,"eContracted",void 0),n([m.RefSelector("eCheckbox"),s("design:type",HTMLElement)],t.prototype,"eCheckbox",void 0),n([m.RefSelector("eValue"),s("design:type",HTMLElement)],t.prototype,"eValue",void 0),n([m.RefSelector("eChildCount"),s("design:type",HTMLElement)],t.prototype,"eChildCount",void 0),t}(d.Component);t.GroupCellRenderer=b},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),n=this&&this.__decorate||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},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(8),l=o(2),p=o(17),u=o(0),c=function(e){function t(){var o=e.call(this,t.TEMPLATE)||this;return o.refreshCount=0,o}return r(t,e),t.prototype.init=function(e){this.eValue=this.queryForHtmlElement(".ag-value-change-value"),this.eDelta=this.queryForHtmlElement(".ag-value-change-delta"),this.refresh(e)},t.prototype.showDelta=function(e,t){var o=Math.abs(t),i=e.formatValue(o),r=l._.exists(i)?i:o,n=t>=0;this.eDelta.innerHTML=n?"↑"+r:"↓"+r,l._.addOrRemoveCssClass(this.eDelta,"ag-value-change-delta-up",n),l._.addOrRemoveCssClass(this.eDelta,"ag-value-change-delta-down",!n)},t.prototype.setTimerToRemoveDelta=function(){var e=this;this.refreshCount++;var t=this.refreshCount;window.setTimeout((function(){t===e.refreshCount&&e.hideDeltaValue()}),2e3)},t.prototype.hideDeltaValue=function(){l._.removeCssClass(this.eValue,"ag-value-change-value-highlight"),l._.clearElement(this.eDelta)},t.prototype.refresh=function(e){var t=e.value;if(t!==this.lastValue&&(l._.exists(e.valueFormatted)?this.eValue.innerHTML=e.valueFormatted:l._.exists(e.value)?this.eValue.innerHTML=t:l._.clearElement(this.eValue),!this.filterManager.isSuppressFlashingCellsBecauseFiltering())){if("number"==typeof t&&"number"==typeof this.lastValue){var o=t-this.lastValue;this.showDelta(e,o)}return this.lastValue&&l._.addCssClass(this.eValue,"ag-value-change-value-highlight"),this.setTimerToRemoveDelta(),this.lastValue=t,!0}},t.TEMPLATE='<span><span class="ag-value-change-delta"></span><span class="ag-value-change-value"></span></span>',n([u.Autowired("filterManager"),s("design:type",p.FilterManager)],t.prototype,"filterManager",void 0),t}(a.Component);t.AnimateShowChangeCellRenderer=c},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),n=this&&this.__decorate||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},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(47),l=o(7),p=o(0),u=o(3),c=o(62),d=o(2),h=function(e){function t(){var t=e.call(this,'<div class="ag-cell-edit-input"><select class="ag-cell-edit-input"/></div>')||this;return t.eSelect=t.getGui().querySelector("select"),t}return r(t,e),t.prototype.init=function(e){var t=this;this.focusAfterAttached=e.cellStartedEdit,d._.missing(e.values)?console.warn("ag-Grid: no values found for select cellEditor"):(e.values.forEach((function(o){var i=document.createElement("option");i.value=o;var r=t.valueFormatterService.formatValue(e.column,null,null,o),n=null!=r;i.text=n?r:o,e.value===o&&(i.selected=!0),t.eSelect.appendChild(i)})),this.gridOptionsWrapper.isFullRowEdit()||this.addDestroyableEventListener(this.eSelect,"change",(function(){return e.stopEditing()})),this.addDestroyableEventListener(this.eSelect,"keydown",(function(e){(e.keyCode===l.Constants.KEY_UP||e.keyCode===l.Constants.KEY_DOWN)&&e.stopPropagation()})),this.addDestroyableEventListener(this.eSelect,"mousedown",(function(e){e.stopPropagation()})))},t.prototype.afterGuiAttached=function(){this.focusAfterAttached&&this.eSelect.focus()},t.prototype.focusIn=function(){this.eSelect.focus()},t.prototype.getValue=function(){return this.eSelect.value},t.prototype.isPopup=function(){return!1},n([p.Autowired("gridOptionsWrapper"),s("design:type",u.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),n([p.Autowired("valueFormatterService"),s("design:type",c.ValueFormatterService)],t.prototype,"valueFormatterService",void 0),t}(a.PopupComponent);t.SelectCellEditor=h},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),n=this&&this.__decorate||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},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(11),l=o(2),p=o(33),u=o(133),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.mapRangeFromModel=function(e){return{from:e.filter,to:e.filterTo}},t.prototype.getDefaultDebounceMs=function(){return 500},t.prototype.resetUiToDefaults=function(){e.prototype.resetUiToDefaults.call(this),this.eValueFrom1.value=null,this.eValueFrom2.value=null,this.eValueTo1.value=null,this.eValueTo2.value=null},t.prototype.setConditionIntoUi=function(e,t){var o=t===p.ConditionPosition.One,i=o?this.eValueFrom1:this.eValueFrom2,r=o?this.eValueTo1:this.eValueTo2;i.value=e?""+e.filter:null,r.value=e?""+e.filterTo:null},t.prototype.setValueFromFloatingFilter=function(e){this.eValueFrom1.value=e,this.eValueFrom2.value=null,this.eValueTo1.value=null,this.eValueTo2.value=null},t.prototype.comparator=function(){return function(e,t){return e===t?0:e<t?1:e>t?-1:void 0}},t.prototype.setParams=function(t){e.prototype.setParams.call(this,t),this.addValueChangedListeners()},t.prototype.addValueChangedListeners=function(){var e=this,t=function(){return e.onUiChanged()};this.addDestroyableEventListener(this.eValueFrom1,"input",t),this.addDestroyableEventListener(this.eValueFrom2,"input",t),this.addDestroyableEventListener(this.eValueTo1,"input",t),this.addDestroyableEventListener(this.eValueTo2,"input",t)},t.prototype.afterGuiAttached=function(){this.eValueFrom1.focus()},t.prototype.getDefaultFilterOptions=function(){return t.DEFAULT_FILTER_OPTIONS},t.prototype.createValueTemplate=function(e){var t=e===p.ConditionPosition.One?"1":"2",o=this.translate.bind(this);return'<div class="ag-filter-body" ref="eCondition'+t+'Body" role="presentation">\n <div class="ag-input-wrapper" role="presentation">\n <input class="ag-filter-filter" ref="eValueFrom'+t+'" type="text" placeholder="'+o("filterOoo")+'"/>\n </div>\n <div class="ag-input-wrapper ag-filter-number-to" ref="ePanel'+t+'" role="presentation">\n <input class="ag-filter-filter" ref="eValueTo'+t+'" type="text" placeholder="'+o("filterOoo")+'"/>\n </div>\n </div>'},t.prototype.isConditionUiComplete=function(e){var t=e===p.ConditionPosition.One,o=t?this.getCondition1Type():this.getCondition2Type(),i=t?this.eValueFrom1:this.eValueFrom2,r=t?this.eValueTo1:this.eValueTo2,n=this.stringToFloat(i.value),s=this.stringToFloat(r.value);return o!==p.SimpleFilter.EMPTY&&(!!this.doesFilterHaveHiddenInput(o)||(o===p.SimpleFilter.IN_RANGE?null!=n&&null!=s:null!=n))},t.prototype.areSimpleModelsEqual=function(e,t){return e.filter===t.filter&&e.filterTo===t.filterTo&&e.type===t.type},t.prototype.getFilterType=function(){return t.FILTER_TYPE},t.prototype.stringToFloat=function(e){var t=l._.makeNull(e);return t&&""===t.trim()&&(t=null),null!=t?parseFloat(t):null},t.prototype.createCondition=function(e){var o=e===p.ConditionPosition.One,i=o?this.getCondition1Type():this.getCondition2Type(),r=o?this.eValueFrom1:this.eValueFrom2,n=this.stringToFloat(r.value),s=o?this.eValueTo1:this.eValueTo2,a=this.stringToFloat(s.value),l={filterType:t.FILTER_TYPE,type:i};return this.doesFilterHaveHiddenInput(i)||(l.filter=n,l.filterTo=a),l},t.prototype.updateUiVisibility=function(){e.prototype.updateUiVisibility.call(this);var t=this.showValueFrom(this.getCondition1Type());l._.setDisplayed(this.eValueFrom1,t);var o=this.showValueTo(this.getCondition1Type());l._.setDisplayed(this.eValueTo1,o);var i=this.showValueFrom(this.getCondition2Type());l._.setDisplayed(this.eValueFrom2,i);var r=this.showValueTo(this.getCondition2Type());l._.setDisplayed(this.eValueTo2,r)},t.FILTER_TYPE="number",t.DEFAULT_FILTER_OPTIONS=[u.ScalerFilter.EQUALS,u.ScalerFilter.NOT_EQUAL,u.ScalerFilter.LESS_THAN,u.ScalerFilter.LESS_THAN_OR_EQUAL,u.ScalerFilter.GREATER_THAN,u.ScalerFilter.GREATER_THAN_OR_EQUAL,u.ScalerFilter.IN_RANGE],n([a.RefSelector("eValueFrom1"),s("design:type",HTMLInputElement)],t.prototype,"eValueFrom1",void 0),n([a.RefSelector("eValueFrom2"),s("design:type",HTMLInputElement)],t.prototype,"eValueFrom2",void 0),n([a.RefSelector("eValueTo1"),s("design:type",HTMLInputElement)],t.prototype,"eValueTo1",void 0),n([a.RefSelector("eValueTo2"),s("design:type",HTMLInputElement)],t.prototype,"eValueTo2",void 0),t}(u.ScalerFilter);t.NumberFilter=c},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),n=this&&this.__decorate||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},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(11),l=o(2),p=o(33),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.getDefaultDebounceMs=function(){return 500},t.prototype.getValue=function(e){var t=e.value;return(t=l._.makeNull(t))&&""===t.trim()&&(t=null),t},t.prototype.addValueChangedListeners=function(){var e=this,t=function(){return e.onUiChanged()};this.addDestroyableEventListener(this.eValue1,"input",t),this.addDestroyableEventListener(this.eValue2,"input",t)},t.prototype.setParams=function(o){e.prototype.setParams.call(this,o),this.textFilterParams=o,this.comparator=this.textFilterParams.textCustomComparator?this.textFilterParams.textCustomComparator:t.DEFAULT_COMPARATOR,this.formatter=this.textFilterParams.textFormatter?this.textFilterParams.textFormatter:1==this.textFilterParams.caseSensitive?t.DEFAULT_FORMATTER:t.DEFAULT_LOWERCASE_FORMATTER,this.addValueChangedListeners()},t.prototype.setConditionIntoUi=function(e,t){(t===p.ConditionPosition.One?this.eValue1:this.eValue2).value=e?e.filter:null},t.prototype.createCondition=function(e){var o=e===p.ConditionPosition.One,i=o?this.getCondition1Type():this.getCondition2Type(),r=o?this.eValue1:this.eValue2,n=this.getValue(r),s={filterType:t.FILTER_TYPE,type:i};return this.doesFilterHaveHiddenInput(i)||(s.filter=n),s},t.prototype.getFilterType=function(){return t.FILTER_TYPE},t.prototype.areSimpleModelsEqual=function(e,t){return e.filter===t.filter&&e.type===t.type},t.prototype.resetUiToDefaults=function(){e.prototype.resetUiToDefaults.call(this),this.eValue1.value=null,this.eValue2.value=null},t.prototype.setValueFromFloatingFilter=function(e){this.eValue1.value=e,this.eValue2.value=null},t.prototype.getDefaultFilterOptions=function(){return t.DEFAULT_FILTER_OPTIONS},t.prototype.createValueTemplate=function(e){var t=e===p.ConditionPosition.One?"1":"2";return'<div class="ag-filter-body" ref="eCondition'+t+'Body" role="presentation">\n <div class="ag-input-wrapper" ref="eInputWrapper'+t+'" role="presentation">\n <input class="ag-filter-filter" ref="eValue'+t+'" type="text" placeholder="'+this.gridOptionsWrapper.getLocaleTextFunc()("filterOoo","Filter...")+'"/>\n </div>\n </div>'},t.prototype.updateUiVisibility=function(){e.prototype.updateUiVisibility.call(this);var t=this.showValueFrom(this.getCondition1Type());l._.setDisplayed(this.eInputWrapper1,t);var o=this.showValueFrom(this.getCondition2Type());l._.setDisplayed(this.eInputWrapper2,o)},t.prototype.afterGuiAttached=function(){this.eValue1.focus()},t.prototype.isConditionUiComplete=function(e){var t=e===p.ConditionPosition.One,o=t?this.getCondition1Type():this.getCondition2Type(),i=t?this.eValue1:this.eValue2;if(o===p.SimpleFilter.EMPTY)return!1;var r=this.getValue(i);return!!this.doesFilterHaveHiddenInput(o)||null!=r},t.prototype.individualConditionPasses=function(e,t){var o=t.filter,i=t.type,r=this.textFilterParams.valueGetter(e.node),n=this.formatter(r),s=this.optionsFactory.getCustomOption(i);if(s&&(null!=o||s.hideFilterInput))return s.test(o,n);if(null==r)return i===p.SimpleFilter.NOT_EQUAL||i===p.SimpleFilter.NOT_CONTAINS;var a=this.formatter(o);return this.comparator(i,n,a)},t.FILTER_TYPE="text",t.DEFAULT_FILTER_OPTIONS=[p.SimpleFilter.CONTAINS,p.SimpleFilter.NOT_CONTAINS,p.SimpleFilter.EQUALS,p.SimpleFilter.NOT_EQUAL,p.SimpleFilter.STARTS_WITH,p.SimpleFilter.ENDS_WITH],t.DEFAULT_FORMATTER=function(e){return e},t.DEFAULT_LOWERCASE_FORMATTER=function(e){return null==e?null:e.toString().toLowerCase()},t.DEFAULT_COMPARATOR=function(e,o,i){switch(e){case t.CONTAINS:return o.indexOf(i)>=0;case t.NOT_CONTAINS:return-1===o.indexOf(i);case t.EQUALS:return o===i;case t.NOT_EQUAL:return o!=i;case t.STARTS_WITH:return 0===o.indexOf(i);case t.ENDS_WITH:var r=o.lastIndexOf(i);return r>=0&&r===o.length-i.length;default:return console.warn("invalid filter type "+e),!1}},n([a.RefSelector("eValue1"),s("design:type",HTMLInputElement)],t.prototype,"eValue1",void 0),n([a.RefSelector("eValue2"),s("design:type",HTMLInputElement)],t.prototype,"eValue2",void 0),n([a.RefSelector("eInputWrapper1"),s("design:type",HTMLElement)],t.prototype,"eInputWrapper1",void 0),n([a.RefSelector("eInputWrapper2"),s("design:type",HTMLElement)],t.prototype,"eInputWrapper2",void 0),t}(p.SimpleFilter);t.TextFilter=u},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/var i=this&&this.__decorate||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},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),s=o(140),a=o(2),l=function(){function e(){}return e.prototype.adaptFunction=function(e,t,o,i){if(null==t)return{component:null,componentFromFramework:o,source:i,paramsFromSelector:null};var r=this.componentMetadataProvider.retrieve(e);return r&&r.functionAdapter?{componentFromFramework:o,component:r.functionAdapter(t),source:i,paramsFromSelector:null}:null},e.prototype.adaptCellRendererFunction=function(e){return function(){function t(){}return t.prototype.refresh=function(e){return!1},t.prototype.getGui=function(){var t=e(this.params),o=typeof t;return"string"===o||"number"===o||"boolean"===o?a._.loadTemplate("<span>"+t+"</span>"):t},t.prototype.init=function(e){this.params=e},t}()},e.prototype.doesImplementIComponent=function(e){return!!e&&(e.prototype&&"getGui"in e.prototype)},i([n.Autowired("componentMetadataProvider"),r("design:type",s.ComponentMetadataProvider)],e.prototype,"componentMetadataProvider",void 0),e=i([n.Bean("agComponentUtils")],e)}();t.AgComponentUtils=l},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/var i=this&&this.__decorate||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},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),s=o(139),a=function(){function e(){}return e.prototype.postConstruct=function(){this.componentMetaData={dateComponent:{mandatoryMethodList:["getDate","setDate"],optionalMethodList:["afterGuiAttached"]},detailCellRenderer:{mandatoryMethodList:[],optionalMethodList:["refresh"]},headerComponent:{mandatoryMethodList:[],optionalMethodList:[]},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","focusIn","focusOut","afterGuiAttached"]},innerRenderer:{mandatoryMethodList:[],optionalMethodList:["afterGuiAttached"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},fullWidthCellRenderer:{mandatoryMethodList:[],optionalMethodList:["refresh","afterGuiAttached"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},pinnedRowCellRenderer:{mandatoryMethodList:[],optionalMethodList:["refresh","afterGuiAttached"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},groupRowInnerRenderer:{mandatoryMethodList:[],optionalMethodList:["afterGuiAttached"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},groupRowRenderer:{mandatoryMethodList:[],optionalMethodList:["afterGuiAttached"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},filter:{mandatoryMethodList:["isFilterActive","doesFilterPass","getModel","setModel"],optionalMethodList:["afterGuiAttached","onNewRowsLoaded","getModelAsString","onFloatingFilterChanged"]},filterComponent:{mandatoryMethodList:["isFilterActive","doesFilterPass","getModel","setModel"],optionalMethodList:["afterGuiAttached","onNewRowsLoaded","getModelAsString","onFloatingFilterChanged"]},statusPanel:{mandatoryMethodList:[],optionalMethodList:["afterGuiAttached"]},toolPanel:{mandatoryMethodList:[],optionalMethodList:["refresh","afterGuiAttached"]},tooltipComponent:{mandatoryMethodList:[],optionalMethodList:[]}}},e.prototype.retrieve=function(e){return this.componentMetaData[e]},i([n.Autowired("agComponentUtils"),r("design:type",s.AgComponentUtils)],e.prototype,"agComponentUtils",void 0),i([n.PostConstruct,r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],e.prototype,"postConstruct",null),e=i([n.Bean("componentMetadataProvider")],e)}();t.ComponentMetadataProvider=a},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/var i=this&&this.__decorate||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},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),s=o(25),a=function(){function e(){}return e.prototype.processAllCellClasses=function(e,t,o,i){this.processClassRules(e.cellClassRules,t,o,i),this.processStaticCellClasses(e,t,o)},e.prototype.processClassRules=function(e,t,o,i){if("object"==typeof e&&null!==e)for(var r=Object.keys(e),n=0;n<r.length;n++){var s=r[n],a=e[s],l=void 0;"string"==typeof a?l=this.expressionService.evaluate(a,t):"function"==typeof a&&(l=a(t)),l?o(s):i&&i(s)}},e.prototype.processStaticCellClasses=function(e,t,o){if(e.cellClass){var i=void 0;if("function"==typeof e.cellClass)i=(0,e.cellClass)(t);else i=e.cellClass;"string"==typeof i?o(i):Array.isArray(i)&&i.forEach((function(e){o(e)}))}},i([n.Autowired("expressionService"),r("design:type",s.ExpressionService)],e.prototype,"expressionService",void 0),e=i([n.Bean("stylingService")],e)}();t.StylingService=a},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/var i=this&&this.__decorate||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},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),s=o(32),a=o(19),l=o(3),p=o(10),u=o(9),c=o(2),d=function(){function e(){this.DEFAULT_HIDE_TOOLTIP_TIMEOUT=1e4,this.MOUSEOUT_HIDE_TOOLTIP_TIMEOUT=1e3,this.MOUSEOVER_SHOW_TOOLTIP_TIMEOUT=2e3,this.HIDE_SHOW_ONLY=!0,this.showTimeoutId=0,this.hideTimeoutId=0,this.registeredComponents={}}return e.prototype.registerTooltip=function(e){var t=this,o=e.getGui(),i=e.getCompId();this.registeredComponents[i]={tooltipComp:void 0,destroyFunc:void 0,eventDestroyFuncs:[e.addDestroyableEventListener(o,"mouseover",(function(o){return t.processMouseOver(o,e)})),e.addDestroyableEventListener(o,"mousemove",(function(e){return t.processMouseMove(e)})),e.addDestroyableEventListener(o,"mousedown",this.hideTooltip.bind(this)),e.addDestroyableEventListener(o,"mouseout",this.processMouseOut.bind(this))]},e.addDestroyFunc((function(){return t.unregisterTooltip(e)}))},e.prototype.unregisterTooltip=function(e){var t=e.getCompId(),o=this.registeredComponents[t];this.activeComponent===e&&this.hideTooltip(),e.isAlive()&&o&&o.eventDestroyFuncs.length&&o.eventDestroyFuncs.forEach((function(e){return e()})),delete this.registeredComponents[t]},e.prototype.processMouseOver=function(e,t){var o=this.MOUSEOVER_SHOW_TOOLTIP_TIMEOUT;if(this.activeComponent){if(this.lastHoveredComponent===this.activeComponent)return;o=200}else if(this.showTimeoutId&&this.lastHoveredComponent===t)return;this.clearTimers(this.HIDE_SHOW_ONLY),this.lastHoveredComponent!==t&&(this.lastHoveredComponent=t,this.lastMouseEvent=e,this.showTimeoutId=window.setTimeout(this.showTooltip.bind(this),o,e))},e.prototype.processMouseOut=function(e){var t=this.activeComponent,o=e.relatedTarget;if(t){if(!t.getGui().contains(o)){var i=this.registeredComponents[t.getCompId()];c._.addCssClass(i.tooltipComp.getGui(),"ag-tooltip-hiding"),this.lastHoveredComponent=void 0,this.clearTimers(),this.hideTimeoutId=window.setTimeout(this.hideTooltip.bind(this),this.MOUSEOUT_HIDE_TOOLTIP_TIMEOUT)}}else{if(this.lastHoveredComponent){var r=this.lastHoveredComponent.getGui().contains(o);if(this.showTimeoutId&&r)return;r||(this.lastHoveredComponent=void 0)}this.clearTimers()}},e.prototype.processMouseMove=function(e){this.lastMouseEvent=e},e.prototype.showTooltip=function(e){var t=this.lastHoveredComponent,o=t,i=this.registeredComponents[t.getCompId()];this.hideTooltip();var r={api:this.gridApi,columnApi:this.columnApi,colDef:t.getComponentHolder(),column:o.getColumn&&o.getColumn(),context:this.gridOptionsWrapper.getContext(),rowIndex:o.getCellPosition&&o.getCellPosition().rowIndex,value:t.getTooltipText()};this.createTooltipComponent(r,i,e)},e.prototype.createTooltipComponent=function(e,t,o){var i=this;this.userComponentFactory.newTooltipComponent(e).then((function(e){if(t){t.tooltipComp=e;var o=e.getGui();c._.containsClass(o,"ag-tooltip")||c._.addCssClass(o,"ag-tooltip-custom");var r=i.popupService.addPopup(!1,o,!1);t.destroyFunc=function(){r(),e.destroy&&e.destroy()},i.popupService.positionPopupUnderMouseEvent({type:"tooltip",mouseEvent:i.lastMouseEvent,ePopup:o,nudgeY:18}),i.activeComponent=i.lastHoveredComponent,i.hideTimeoutId=window.setTimeout(i.hideTooltip.bind(i),i.DEFAULT_HIDE_TOOLTIP_TIMEOUT)}}))},e.prototype.hideTooltip=function(){var e=this.activeComponent;if(this.clearTimers(),e){var t=e.getCompId(),o=this.registeredComponents[t];this.activeComponent=void 0,o&&(o.destroyFunc&&o.destroyFunc(),this.clearRegisteredComponent(o))}},e.prototype.clearRegisteredComponent=function(e){delete e.destroyFunc,delete e.tooltipComp},e.prototype.clearTimers=function(e){void 0===e&&(e=!1),this.hideTimeoutId&&!e&&(window.clearTimeout(this.hideTimeoutId),this.hideTimeoutId=0),this.showTimeoutId&&(window.clearTimeout(this.showTimeoutId),this.showTimeoutId=0)},i([n.Autowired("popupService"),r("design:type",s.PopupService)],e.prototype,"popupService",void 0),i([n.Autowired("userComponentFactory"),r("design:type",a.UserComponentFactory)],e.prototype,"userComponentFactory",void 0),i([n.Autowired("columnApi"),r("design:type",p.ColumnApi)],e.prototype,"columnApi",void 0),i([n.Autowired("gridApi"),r("design:type",u.GridApi)],e.prototype,"gridApi",void 0),i([n.Autowired("gridOptionsWrapper"),r("design:type",l.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),e=i([n.Bean("tooltipManager")],e)}();t.TooltipManager=d},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/var i=this&&this.__decorate||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};Object.defineProperty(t,"__esModule",{value:!0});var r=o(0),n=function(){function e(){}return e.prototype.createId=function(e){var t=e.rowIndex,o=e.rowPinned;return t+"."+(null==o?"null":o)+"."+e.column.getId()},e.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},e=i([r.Bean("cellPositionUtils")],e)}();t.CellPositionUtils=n},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/Object.defineProperty(t,"__esModule",{value:!0});var i=o(2),r=function(){function e(){}return e.addHeaderClassesFromColDef=function(e,t,o,r,n){i._.missing(e)||this.addColumnClassesFromCollDef(e.headerClass,e,t,o,r,n)},e.addToolPanelClassesFromColDef=function(e,t,o,r,n){i._.missing(e)||this.addColumnClassesFromCollDef(e.toolPanelClass,e,t,o,r,n)},e.addColumnClassesFromCollDef=function(e,t,o,r,n,s){if(!i._.missing(e)){var a;if("function"==typeof e)a=e({colDef:t,column:n,columnGroup:s,context:r.getContext(),api:r.getApi()});else a=e;"string"==typeof a?i._.addCssClass(o,a):Array.isArray(a)&&a.forEach((function(e){i._.addCssClass(o,e)}))}},e}();t.CssClassApplier=r},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),n=this&&this.__decorate||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},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(8),l=o(0),p=o(2),u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.labelSeparator="",t.labelAlignment="left",t.config={},t.label="",t}return r(t,e),t.prototype.postConstruct=function(){p._.addCssClass(this.getGui(),"ag-labeled");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(){this.eLabel.innerText=this.label+this.labelSeparator,p._.addOrRemoveCssClass(this.eLabel,"ag-hidden",""===this.label)},t.prototype.setLabelSeparator=function(e){return this.labelSeparator===e?this:(this.labelSeparator=e,null!=this.label&&this.refreshLabel(),this)},t.prototype.setLabel=function(e){return this.label===e?this:(this.label=e,this.refreshLabel(),this)},t.prototype.setLabelAlignment=function(e){var t=this.getGui();return p._.addOrRemoveCssClass(t,"ag-label-align-left","left"===e),p._.addOrRemoveCssClass(t,"ag-label-align-right","right"===e),p._.addOrRemoveCssClass(t,"ag-label-align-top","top"===e),this},t.prototype.setLabelWidth=function(e){return null==this.label?this:(p._.setElementWidth(this.eLabel,e),this)},n([l.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"postConstruct",null),t}(a.Component);t.AgAbstractLabel=u},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),n=this&&this.__decorate||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},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(15),l=o(0),p=o(64),u=function(e){function t(t,o){var i=e.call(this)||this;return i.columns=t,i.element=o,i}return r(t,e),t.prototype.postConstruct=function(){this.addMouseHoverListeners()},t.prototype.addMouseHoverListeners=function(){this.addDestroyableEventListener(this.element,"mouseout",this.onMouseOut.bind(this)),this.addDestroyableEventListener(this.element,"mouseover",this.onMouseOver.bind(this))},t.prototype.onMouseOut=function(){this.columnHoverService.clearMouseOver()},t.prototype.onMouseOver=function(){this.columnHoverService.setMouseOver(this.columns)},n([l.Autowired("columnHoverService"),s("design:type",p.ColumnHoverService)],t.prototype,"columnHoverService",void 0),n([l.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"postConstruct",null),t}(a.BeanStub);t.HoverFeature=u},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/Object.defineProperty(t,"__esModule",{value:!0});var i=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}();t.GroupInstanceIdCreator=i},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/var i=this&&this.__decorate||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};Object.defineProperty(t,"__esModule",{value:!0});var r=o(0),n=function(){function e(){}return e.prototype.download=function(e,t){if(window.navigator.msSaveOrOpenBlob)window.navigator.msSaveOrOpenBlob(t,e);else{var o=document.createElement("a"),i=window.URL.createObjectURL(t);o.setAttribute("href",i),o.setAttribute("download",e),o.style.display="none",document.body.appendChild(o),o.dispatchEvent(new MouseEvent("click",{bubbles:!1,cancelable:!0,view:window})),document.body.removeChild(o),window.setTimeout((function(){window.URL.revokeObjectURL(i)}),0)}},e=i([r.Bean("downloader")],e)}();t.Downloader=n},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/var i=this&&this.__decorate||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},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),s=o(38),a=o(59),l=o(5),p=o(2),u=function(){function e(){}return e.prototype.registerGridComp=function(e){this.gridPanel=e},e.prototype.getPreferredHeightForRow=function(e){var t=this;this.eDummyContainer||(this.eDummyContainer=document.createElement("div"),p._.addCssClass(this.eDummyContainer,"ag-row ag-row-no-focus"));var o=this.gridPanel.getCenterContainer();o.appendChild(this.eDummyContainer);var i=[];this.columnController.getAllAutoRowHeightCols().filter((function(e){return e.isVisible()})).forEach((function(o){var r=new a.CellComp(t.$scope,t.beans,o,e,null,!0,!1);r.setParentRow(t.eDummyContainer),i.push(r)}));var r=i.map((function(e){return e.getCreateTemplate()})).join(" ");this.eDummyContainer.innerHTML=r,i.forEach((function(e){return e.afterAttached()}));for(var n=0,s=0;s<this.eDummyContainer.children.length;s++){var l=this.eDummyContainer.children[s];l.offsetHeight>n&&(n=l.offsetHeight)}return o.removeChild(this.eDummyContainer),i.forEach((function(e){e.detach(),e.destroy()})),p._.clearElement(this.eDummyContainer),n},i([n.Autowired("beans"),r("design:type",s.Beans)],e.prototype,"beans",void 0),i([n.Autowired("$scope"),r("design:type",Object)],e.prototype,"$scope",void 0),i([n.Autowired("columnController"),r("design:type",l.ColumnController)],e.prototype,"columnController",void 0),e=i([n.Bean("autoHeightCalculator")],e)}();t.AutoHeightCalculator=u},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/Object.defineProperty(t,"__esModule",{value:!0});var i=o(3),r=o(23),n=o(10),s=o(5),a=o(20),l=o(151),p=o(17),u=o(24),c=o(4),d=o(152),h=o(9),f=o(57),g=o(84),y=o(25),v=o(128),m=o(32),C=o(14),w=o(44),_=o(58),b=o(91),E=o(0),R=o(123),P=o(202),O=o(203),S=o(18),A=o(37),T=o(27),D=o(26),x=o(63),F=o(127),M=o(204),N=o(206),L=o(208),I=o(6),G=o(209),k=o(211),W=o(87),V=o(62),H=o(49),j=o(155),B=o(213),U=o(66),z=o(148),Y=o(214),K=o(83),X=o(141),q=o(64),Q=o(86),$=o(207),Z=o(205),J=o(189),ee=o(31),te=o(199),oe=o(190),ie=o(7),re=o(46),ne=o(273),se=o(93),ae=o(30),le=o(19),pe=o(130),ue=o(139),ce=o(140),de=o(38),he=o(60),fe=o(48),ge=o(200),ye=o(89),ve=o(153),me=o(149),Ce=o(274),we=o(94),_e=o(215),be=o(142),Ee=o(201),Re=o(216),Pe=o(96),Oe=o(156),Se=o(157),Ae=o(217),Te=o(218),De=o(2),xe=o(219),Fe=o(97),Me=o(158),Ne=o(220),Le=o(221),Ie=o(222),Ge=o(187),ke=o(90),We=o(143),Ve=function(){function e(t,o,I){t||console.error("ag-Grid: no div element provided to the grid"),o||console.error("ag-Grid: no gridOptions provided to the grid"),this.gridOptions=o;var G=this.getRowModelClass(o),k=!De._.missingOrEmpty(e.enterpriseBeans),ie=this.extractModuleEntity(e.modulesToInclude,(function(e){return e.beans?e.beans:[]})),Ve=this.extractModuleEntity(e.modulesToInclude,(function(e){return e.enterpriseBeans?e.enterpriseBeans:[]})),He=this.extractModuleEntity(e.modulesToInclude,(function(e){return e.enterpriseComponents?e.enterpriseComponents:[]})),je=this.extractModuleEntity(e.modulesToInclude,(function(e){return e.enterpriseDefaultComponents?e.enterpriseDefaultComponents:[]})),Be=I?I.frameworkOverrides:null;De._.missing(Be)&&(Be=new B.VanillaFrameworkOverrides);var Ue=[];e.enterpriseBeans&&(Ue=Ue.concat(e.enterpriseBeans).concat(Ve)),e.frameworkBeans&&(Ue=Ue.concat(e.frameworkBeans));var ze={enterprise:k,gridOptions:o,eGridDiv:t,$scope:I?I.$scope:null,$compile:I?I.$compile:null,quickFilterOnScope:I?I.quickFilterOnScope:null,globalEventListener:I?I.globalEventListener:null,frameworkOverrides:Be};I&&I.seedBeanInstances&&De._.assign(ze,I.seedBeanInstances);var Ye=[{componentName:"AgCheckbox",theClass:H.AgCheckbox},{componentName:"AgRadioButton",theClass:j.AgRadioButton},{componentName:"AgToggleButton",theClass:Ie.AgToggleButton},{componentName:"AgInputTextField",theClass:Se.AgInputTextField},{componentName:"AgInputTextArea",theClass:Ae.AgInputTextArea},{componentName:"AgInputNumberField",theClass:Fe.AgInputNumberField},{componentName:"AgInputRange",theClass:Me.AgInputRange},{componentName:"AgSelect",theClass:Ne.AgSelect},{componentName:"AgSlider",theClass:Te.AgSlider},{componentName:"AgAngleSelect",theClass:Le.AgAngleSelect},{componentName:"AgColorPicker",theClass:xe.AgColorPicker},{componentName:"AgGridComp",theClass:d.GridPanel},{componentName:"AgHeaderRoot",theClass:l.HeaderRootComp},{componentName:"AgPagination",theClass:Ce.PaginationComp},{componentName:"AgOverlayWrapper",theClass:Ee.OverlayWrapperComponent},{componentName:"AgGroupComponent",theClass:Re.AgGroupComponent},{componentName:"AgPanel",theClass:Oe.AgPanel},{componentName:"AgDialog",theClass:Pe.AgDialog}];e.enterpriseComponents&&(Ye=Ye.concat(e.enterpriseComponents).concat(He));var Ke={overrideBeans:Ue,seed:ze,beans:[G,de.Beans,ke.RowPositionUtils,We.CellPositionUtils,te.PaginationAutoPageSizeService,h.GridApi,pe.UserComponentRegistry,ue.AgComponentUtils,ce.ComponentMetadataProvider,we.ResizeObserverService,pe.UserComponentRegistry,le.UserComponentFactory,ye.MaxDivHeightScaler,me.AutoHeightCalculator,W.CellRendererFactory,b.HorizontalResizeService,ae.PinnedRowModel,A.DragService,g.DisplayedGroupCreator,c.EventService,i.GridOptionsWrapper,m.PopupService,r.SelectionController,p.FilterManager,s.ColumnController,ee.PaginationProxy,a.RowRenderer,y.ExpressionService,f.ColumnFactory,R.CsvCreator,z.Downloader,Y.XmlFactory,K.GridSerializer,v.TemplateService,se.AlignedGridsService,ge.NavigationService,m.PopupService,re.ValueCache,u.ValueService,C.LoggerFactory,w.ColumnUtils,_.AutoWidthCalculator,O.StandardMenuFactory,S.DragAndDropService,n.ColumnApi,D.FocusedCellController,x.MouseEventService,he.Environment,F.CellNavigationService,M.FilterStage,N.SortStage,L.FlattenStage,Z.FilterService,V.ValueFormatterService,X.StylingService,U.ScrollVisibleService,T.SortController,q.ColumnHoverService,Q.ColumnAnimationService,$.SortService,ve.SelectableService,J.AutoGroupColService,oe.ImmutableService,ne.ChangeDetectionService,fe.AnimationFrameService,be.TooltipManager,_e.ZipContainer,Ge.DetailRowCompCache].concat(ie),components:Ye,enterpriseDefaultComponents:e.enterpriseDefaultComponents.concat(je),registeredModules:e.modulesToInclude.map((function(e){return e.moduleName})),debug:!!o.debug};this.logger=new C.Logger("ag-Grid",(function(){return o.debug}));var Xe=new C.Logger("Context",(function(){return Ke.debug}));this.context=new E.Context(Ke,Xe);var qe=new P.GridCore;this.context.wireBean(qe),this.setColumnsAndData(),this.dispatchGridReadyEvent(o),this.logger.log("initialised successfully, enterprise = "+k)}return e.setEnterpriseBeans=function(t,o){e.enterpriseBeans=t,De._.iterateObject(o,(function(t,o){return e.RowModelClasses[t]=o}))},e.setEnterpriseComponents=function(t){e.enterpriseComponents=t},e.setFrameworkBeans=function(t){e.frameworkBeans=t},e.setEnterpriseDefaultComponents=function(t){e.enterpriseDefaultComponents=t},e.addModule=function(t){var o;(o=e.modulesToInclude).push.apply(o,t)},e.prototype.extractModuleEntity=function(e,t){return[].concat.apply([],e.map(t))},e.prototype.setColumnsAndData=function(){var e=this.context.getBean("gridOptionsWrapper"),t=this.context.getBean("columnController"),o=this.context.getBean("rowModel"),i=e.getColumnDefs(),r=e.getRowData();De._.missing(i)&&De._.missing(r)||(De._.exists(i)&&t.setColumnDefs(i,"gridInitializing"),De._.exists(r)&&o.getType()===ie.Constants.ROW_MODEL_TYPE_CLIENT_SIDE&&o.setRowData(r))},e.prototype.dispatchGridReadyEvent=function(e){var t=this.context.getBean("eventService"),o={type:I.Events.EVENT_GRID_READY,api:e.api,columnApi:e.columnApi};t.dispatchEvent(o)},e.prototype.getRowModelClass=function(t){var o=t.rowModelType;if(o="enterprise"===o?ie.Constants.ROW_MODEL_TYPE_SERVER_SIDE:o,De._.exists(o)){var i=e.RowModelClasses[o];if(De._.exists(i))return i;if("normal"===o)return console.warn("ag-Grid: normal rowModel deprecated. Should now be called client side row model instead."),k.ClientSideRowModel;console.error("ag-Grid: could not find matching row model for rowModelType "+o),o===ie.Constants.ROW_MODEL_TYPE_VIEWPORT&&console.error("ag-Grid: rowModelType viewport is only available in ag-Grid Enterprise"),o===ie.Constants.ROW_MODEL_TYPE_SERVER_SIDE&&console.error("ag-Grid: rowModelType server side is only available in ag-Grid Enterprise")}return k.ClientSideRowModel},e.prototype.destroy=function(){this.gridOptions.api.destroy()},e.enterpriseBeans=[],e.enterpriseComponents=[],e.enterpriseDefaultComponents=[],e.modulesToInclude=[],e.RowModelClasses={infinite:G.InfiniteRowModel,clientSide:k.ClientSideRowModel},e}();t.Grid=Ve},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),n=this&&this.__decorate||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},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(3),l=o(5),p=o(12),u=o(0),c=o(194),d=o(4),h=o(6),f=o(8),g=o(11),y=o(9),v=o(58),m=o(7),C=o(2),w=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return r(t,e),t.prototype.registerGridComp=function(e){this.gridPanel=e,this.childContainers.forEach((function(t){return t.registerGridComp(e)}))},t.prototype.postConstruct=function(){var e=this;this.printLayout=this.gridOptionsWrapper.getDomLayout()===m.Constants.DOM_LAYOUT_PRINT,this.gridApi.registerHeaderRootComp(this),this.autoWidthCalculator.registerHeaderRootComp(this);var t=new c.HeaderContainer(this.eHeaderContainer,this.eHeaderViewport,null),o=new c.HeaderContainer(this.ePinnedLeftHeader,null,p.Column.PINNED_LEFT),i=new c.HeaderContainer(this.ePinnedRightHeader,null,p.Column.PINNED_RIGHT);this.childContainers=[t,o,i],this.childContainers.forEach((function(t){return e.getContext().wireBean(t)})),this.addDestroyableEventListener(this.eventService,h.Events.EVENT_COLUMN_VALUE_CHANGED,this.refreshHeader.bind(this)),this.addDestroyableEventListener(this.gridOptionsWrapper,a.GridOptionsWrapper.PROP_DOM_LAYOUT,this.onDomLayoutChanged.bind(this)),this.addDestroyableEventListener(this.eventService,h.Events.EVENT_COLUMN_PIVOT_MODE_CHANGED,this.onPivotModeChanged.bind(this)),this.onPivotModeChanged(),this.addPreventHeaderScroll(),this.columnController.isReady()&&this.refreshHeader()},t.prototype.onDomLayoutChanged=function(){var e=this.gridOptionsWrapper.getDomLayout()===m.Constants.DOM_LAYOUT_PRINT;this.printLayout!==e&&(this.printLayout=e,this.refreshHeader())},t.prototype.setHorizontalScroll=function(e){this.eHeaderContainer.style.transform="translateX("+e+"px)"},t.prototype.forEachHeaderElement=function(e){this.childContainers.forEach((function(t){return t.forEachHeaderElement(e)}))},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.childContainers.forEach((function(e){return e.destroy()}))},t.prototype.refreshHeader=function(){this.childContainers.forEach((function(e){return e.refresh()}))},t.prototype.onPivotModeChanged=function(){var e=this.columnController.isPivotMode();C._.addOrRemoveCssClass(this.getGui(),"ag-pivot-on",e),C._.addOrRemoveCssClass(this.getGui(),"ag-pivot-off",!e)},t.prototype.setHeight=function(e){var t=e+"px";this.getGui().style.height=t,this.getGui().style.minHeight=t},t.prototype.addPreventHeaderScroll=function(){var e=this;this.addDestroyableEventListener(this.eHeaderViewport,"scroll",(function(){var t=e.eHeaderViewport.scrollLeft;0!==t&&(e.gridPanel.scrollHorizontally(t),e.eHeaderViewport.scrollLeft=0)}))},t.prototype.setHeaderContainerWidth=function(e){this.eHeaderContainer.style.width=e+"px"},t.prototype.setLeftVisible=function(e){C._.setDisplayed(this.ePinnedLeftHeader,e)},t.prototype.setRightVisible=function(e){C._.setDisplayed(this.ePinnedRightHeader,e)},t.prototype.getHeaderRowCount=function(){return 0===this.childContainers.length?0:this.childContainers[0].getRowComps().length},t.TEMPLATE='<div class="ag-header" role="presentation">\n <div class="ag-pinned-left-header" ref="ePinnedLeftHeader" role="presentation"></div>\n <div class="ag-header-viewport" ref="eHeaderViewport" role="presentation">\n <div class="ag-header-container" ref="eHeaderContainer" role="rowgroup"></div>\n </div>\n <div class="ag-pinned-right-header" ref="ePinnedRightHeader" role="presentation"></div>\n </div>',n([g.RefSelector("ePinnedLeftHeader"),s("design:type",HTMLElement)],t.prototype,"ePinnedLeftHeader",void 0),n([g.RefSelector("ePinnedRightHeader"),s("design:type",HTMLElement)],t.prototype,"ePinnedRightHeader",void 0),n([g.RefSelector("eHeaderContainer"),s("design:type",HTMLElement)],t.prototype,"eHeaderContainer",void 0),n([g.RefSelector("eHeaderViewport"),s("design:type",HTMLElement)],t.prototype,"eHeaderViewport",void 0),n([u.Autowired("gridOptionsWrapper"),s("design:type",a.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),n([u.Autowired("columnController"),s("design:type",l.ColumnController)],t.prototype,"columnController",void 0),n([u.Autowired("eventService"),s("design:type",d.EventService)],t.prototype,"eventService",void 0),n([u.Autowired("gridApi"),s("design:type",y.GridApi)],t.prototype,"gridApi",void 0),n([u.Autowired("autoWidthCalculator"),s("design:type",v.AutoWidthCalculator)],t.prototype,"autoWidthCalculator",void 0),n([u.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"postConstruct",null),t}(f.Component);t.HeaderRootComp=w},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),n=this&&this.__decorate||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},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(3),l=o(5),p=o(10),u=o(20),c=o(0),d=o(4),h=o(6),f=o(37),g=o(7),y=o(63),v=o(26),m=o(66),C=o(269),w=o(31),_=o(199),b=o(126),E=o(93),R=o(30),P=o(9),O=o(48),S=o(124),A=o(200),T=o(24),D=o(61),x=o(18),F=o(270),M=o(89),N=o(201),L=o(8),I=o(149),G=o(86),k=o(58),W=o(38),V=o(11),H=o(151),j=o(94),B=o(2),U='<div class="ag-root ag-unselectable" role="grid" unselectable="on">\n <ag-header-root ref="headerRoot" unselectable="on"></ag-header-root>\n <div class="ag-floating-top" ref="eTop" role="presentation" unselectable="on">\n <div class="ag-pinned-left-floating-top" ref="eLeftTop" role="presentation" unselectable="on"></div>\n <div class="ag-floating-top-viewport" ref="eTopViewport" role="presentation" unselectable="on">\n <div class="ag-floating-top-container" ref="eTopContainer" role="presentation" unselectable="on"></div>\n </div>\n <div class="ag-pinned-right-floating-top" ref="eRightTop" role="presentation" unselectable="on"></div>\n <div class="ag-floating-top-full-width-container" ref="eTopFullWidthContainer" role="presentation" unselectable="on"></div>\n </div>\n <div class="ag-body-viewport" ref="eBodyViewport" role="presentation" unselectable="on">\n <div class="ag-pinned-left-cols-container" ref="eLeftContainer" role="presentation" unselectable="on"></div>\n <div class="ag-center-cols-clipper" ref="eCenterColsClipper" role="presentation" unselectable="on">\n <div class="ag-center-cols-viewport" ref="eCenterViewport" role="presentation" unselectable="on">\n <div class="ag-center-cols-container" ref="eCenterContainer" role="rowgroup" unselectable="on"></div>\n </div>\n </div>\n <div class="ag-pinned-right-cols-container" ref="eRightContainer" role="presentation" unselectable="on"></div>\n <div class="ag-full-width-container" ref="eFullWidthContainer" role="presentation" unselectable="on"></div>\n </div>\n <div class="ag-floating-bottom" ref="eBottom" role="presentation" unselectable="on">\n <div class="ag-pinned-left-floating-bottom" ref="eLeftBottom" role="presentation" unselectable="on"></div>\n <div class="ag-floating-bottom-viewport" ref="eBottomViewport" role="presentation" unselectable="on">\n <div class="ag-floating-bottom-container" ref="eBottomContainer" role="presentation" unselectable="on"></div>\n </div>\n <div class="ag-pinned-right-floating-bottom" ref="eRightBottom" role="presentation" unselectable="on"></div>\n <div class="ag-floating-bottom-full-width-container" ref="eBottomFullWidthContainer" role="presentation" unselectable="on"></div>\n </div>\n <div class="ag-body-horizontal-scroll" ref="eHorizontalScrollBody" aria-hidden="true">\n <div class="ag-horizontal-left-spacer" ref="eHorizontalLeftSpacer"></div>\n <div class="ag-body-horizontal-scroll-viewport" ref="eBodyHorizontalScrollViewport">\n <div class="ag-body-horizontal-scroll-container" ref="eBodyHorizontalScrollContainer"></div>\n </div>\n <div class="ag-horizontal-right-spacer" ref="eHorizontalRightSpacer"></div>\n </div>\n <ag-overlay-wrapper ref="overlayWrapper"></ag-overlay-wrapper>\n </div>',z=function(e){function t(){var t=e.call(this,U)||this;return t.scrollLeft=-1,t.scrollTop=-1,t.nextScrollTop=-1,t.resetLastHorizontalScrollElementDebounce=B._.debounce(t.resetLastHorizontalScrollElement.bind(t),500),t}return r(t,e),t.prototype.getVScrollPosition=function(){return{top:this.eBodyViewport.scrollTop,bottom:this.eBodyViewport.scrollTop+this.eBodyViewport.offsetHeight}},t.prototype.getHScrollPosition=function(){return{left:this.eCenterViewport.scrollLeft,right:this.eCenterViewport.scrollLeft+this.eCenterViewport.offsetWidth}},t.prototype.onRowDataChanged=function(){this.showOrHideOverlay()},t.prototype.showOrHideOverlay=function(){var e=this.paginationProxy.isEmpty(),t=this.gridOptionsWrapper.isSuppressNoRowsOverlay();this[e&&!t?"showNoRowsOverlay":"hideOverlay"]()},t.prototype.onNewColumnsLoaded=function(){this.columnController.isReady()&&!this.paginationProxy.isEmpty()&&this.hideOverlay()},t.prototype.init=function(){var e=this;this.scrollWidth=this.gridOptionsWrapper.getScrollbarWidth(),this.enableRtl=this.gridOptionsWrapper.isEnableRtl(),this.printLayout=this.gridOptionsWrapper.getDomLayout()===g.Constants.DOM_LAYOUT_PRINT,this.gridOptionsWrapper.addLayoutElement(this.getGui()),this.gridOptionsWrapper.addLayoutElement(this.eBodyViewport),this.suppressScrollOnFloatingRow(),this.setupRowAnimationCssClass(),this.buildRowContainerComponents(),this.addEventListeners(),this.addDragListeners(),this.addScrollListener(),this.gridOptionsWrapper.isRowModelDefault()&&!this.gridOptionsWrapper.getRowData()&&this.showLoadingOverlay(),this.setCellTextSelection(this.gridOptionsWrapper.isEnableCellTextSelect()),this.setPinnedContainerSize(),this.setHeaderAndFloatingHeights(),this.disableBrowserDragging(),this.addMouseListeners(),this.addKeyboardEvents(),this.addBodyViewportListener(),this.addStopEditingWhenGridLosesFocus(),this.mockContextMenuForIPad(),this.addRowDragListener(),this.$scope&&this.addAngularApplyCheck(),this.onDisplayedColumnsWidthChanged(),this.gridApi.registerGridComp(this),this.alignedGridsService.registerGridComp(this),this.headerRootComp.registerGridComp(this),this.navigationService.registerGridComp(this),this.heightScaler.registerGridComp(this),this.autoHeightCalculator.registerGridComp(this),this.columnAnimationService.registerGridComp(this),this.autoWidthCalculator.registerGridComp(this),this.paginationAutoPageSizeService.registerGridComp(this),this.beans.registerGridComp(this),this.rowRenderer.registerGridComp(this),this.animationFrameService.registerGridComp(this),this.rangeController&&this.rangeController.registerGridComp(this),[this.eCenterViewport,this.eBodyViewport].forEach((function(t){var o=e.resizeObserverService.observeResize(t,e.onCenterViewportResized.bind(e));e.addDestroyFunc((function(){return o()}))}))},t.prototype.onDomLayoutChanged=function(){var e=this.gridOptionsWrapper.getDomLayout()===g.Constants.DOM_LAYOUT_PRINT;this.printLayout!==e&&(this.printLayout=e,this.setWidthsOfContainers(),this.setPinnedContainerSize())},t.prototype.onCenterViewportResized=function(){B._.isVisible(this.eCenterViewport)?this.checkViewportAndScrolls():this.bodyHeight=0},t.prototype.setColumnMovingCss=function(e){this.addOrRemoveCssClass("ag-column-moving",e)},t.prototype.setCellTextSelection=function(e){void 0===e&&(e=!1),[this.eTop,this.eBodyViewport,this.eBottom].forEach((function(t){return B._.addOrRemoveCssClass(t,"ag-selectable",e)}))},t.prototype.addRowDragListener=function(){var e=new F.RowDragFeature(this.eBodyViewport,this);this.getContext().wireBean(e),this.dragAndDropService.addDropTarget(e)},t.prototype.addStopEditingWhenGridLosesFocus=function(){var e=this;if(this.gridOptionsWrapper.isStopEditingWhenGridLosesFocus()){var t=function(t){for(var o=!1,i=t.relatedTarget;B._.exists(i)&&!o;){var r=!!e.gridOptionsWrapper.getDomData(i,b.PopupEditorWrapper.DOM_KEY_POPUP_EDITOR_WRAPPER),n=e.eBodyViewport===i||e.eBottom===i||e.eTop===i;o=r||n,i=i.parentNode}o||e.rowRenderer.stopEditing()};this.addDestroyableEventListener(this.eBodyViewport,"focusout",t),this.addDestroyableEventListener(this.eTop,"focusout",t),this.addDestroyableEventListener(this.eBottom,"focusout",t)}},t.prototype.addAngularApplyCheck=function(){var e=this,t=!1,o=function(){t||(t=!0,window.setTimeout((function(){t=!1,e.$scope.$apply()}),0))};this.addDestroyableEventListener(this.eventService,h.Events.EVENT_DISPLAYED_COLUMNS_CHANGED,o),this.addDestroyableEventListener(this.eventService,h.Events.EVENT_VIRTUAL_COLUMNS_CHANGED,o)},t.prototype.disableBrowserDragging=function(){this.addGuiEventListener("dragstart",(function(e){if(e.target instanceof HTMLImageElement)return e.preventDefault(),!1}))},t.prototype.addEventListeners=function(){this.addDestroyableEventListener(this.eventService,h.Events.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addDestroyableEventListener(this.eventService,h.Events.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,this.onDisplayedColumnsWidthChanged.bind(this)),this.addDestroyableEventListener(this.eventService,h.Events.EVENT_PINNED_ROW_DATA_CHANGED,this.setHeaderAndFloatingHeights.bind(this)),this.addDestroyableEventListener(this.eventService,h.Events.EVENT_ROW_DATA_CHANGED,this.onRowDataChanged.bind(this)),this.addDestroyableEventListener(this.eventService,h.Events.EVENT_ROW_DATA_UPDATED,this.onRowDataChanged.bind(this)),this.addDestroyableEventListener(this.eventService,h.Events.EVENT_NEW_COLUMNS_LOADED,this.onNewColumnsLoaded.bind(this)),this.addDestroyableEventListener(this.gridOptionsWrapper,a.GridOptionsWrapper.PROP_HEADER_HEIGHT,this.setHeaderAndFloatingHeights.bind(this)),this.addDestroyableEventListener(this.gridOptionsWrapper,a.GridOptionsWrapper.PROP_PIVOT_HEADER_HEIGHT,this.setHeaderAndFloatingHeights.bind(this)),this.addDestroyableEventListener(this.gridOptionsWrapper,a.GridOptionsWrapper.PROP_GROUP_HEADER_HEIGHT,this.setHeaderAndFloatingHeights.bind(this)),this.addDestroyableEventListener(this.gridOptionsWrapper,a.GridOptionsWrapper.PROP_PIVOT_GROUP_HEADER_HEIGHT,this.setHeaderAndFloatingHeights.bind(this)),this.addDestroyableEventListener(this.gridOptionsWrapper,a.GridOptionsWrapper.PROP_FLOATING_FILTERS_HEIGHT,this.setHeaderAndFloatingHeights.bind(this)),this.addDestroyableEventListener(this.gridOptionsWrapper,a.GridOptionsWrapper.PROP_DOM_LAYOUT,this.onDomLayoutChanged.bind(this))},t.prototype.addDragListeners=function(){var e=this;this.gridOptionsWrapper.isEnableRangeSelection()&&!B._.missing(this.rangeController)&&[this.eLeftContainer,this.eRightContainer,this.eCenterContainer,this.eTop,this.eBottom].forEach((function(t){var o={eElement:t,onDragStart:e.rangeController.onDragStart.bind(e.rangeController),onDragStop:e.rangeController.onDragStop.bind(e.rangeController),onDragging:e.rangeController.onDragging.bind(e.rangeController)};e.dragService.addDragSource(o),e.addDestroyFunc((function(){return e.dragService.removeDragSource(o)}))}))},t.prototype.addMouseListeners=function(){var e=this;["click","mousedown","dblclick","contextmenu","mouseover","mouseout"].forEach((function(t){var o=e.processMouseEvent.bind(e,t);e.eAllCellContainers.forEach((function(i){return e.addDestroyableEventListener(i,t,o)}))}))},t.prototype.addKeyboardEvents=function(){var e=this;["keydown","keypress"].forEach((function(t){var o=e.processKeyboardEvent.bind(e,t);e.eAllCellContainers.forEach((function(i){e.addDestroyableEventListener(i,t,o)}))}))},t.prototype.addBodyViewportListener=function(){var e=this;this.addDestroyableEventListener(this.eBodyViewport,"contextmenu",(function(t){var o=B._.getTarget(t);o!==e.eBodyViewport&&o!==e.eCenterViewport||(e.onContextMenu(t,null,null,null,null),e.preventDefaultOnContextMenu(t))}))},t.prototype.getBodyClientRect=function(){if(this.eBodyViewport)return this.eBodyViewport.getBoundingClientRect()},t.prototype.getRowForEvent=function(e){for(var t=B._.getTarget(e);t;){var o=this.gridOptionsWrapper.getDomData(t,S.RowComp.DOM_DATA_KEY_RENDERED_ROW);if(o)return o;t=t.parentElement}return null},t.prototype.processKeyboardEvent=function(e,t){var o=B._.getCellCompForEvent(this.gridOptionsWrapper,t);if(o){var i=o.getRenderedRow().getRowNode(),r=o.getColumn(),n=o.isEditing();if(!B._.isUserSuppressingKeyboardEvent(this.gridOptionsWrapper,t,i,r,n))switch(e){case"keydown":!n&&this.navigationService.handlePageScrollingKey(t)||o.onKeyDown(t),this.doClipboardOperations(t,o);break;case"keypress":o.onKeyPress(t)}if("keydown"===e){var s=o.createEvent(t,h.Events.EVENT_CELL_KEY_DOWN);this.beans.eventService.dispatchEvent(s)}if("keypress"===e){var a=o.createEvent(t,h.Events.EVENT_CELL_KEY_PRESS);this.beans.eventService.dispatchEvent(a)}}},t.prototype.doClipboardOperations=function(e,t){if((e.ctrlKey||e.metaKey)&&!t.isEditing()&&this.mouseEventService.isEventFromThisGrid(e))switch(e.which){case g.Constants.KEY_A:return this.onCtrlAndA(e);case g.Constants.KEY_C:return this.onCtrlAndC(e);case g.Constants.KEY_V:return this.onCtrlAndV();case g.Constants.KEY_D:return this.onCtrlAndD(e)}},t.prototype.scrollToTop=function(){this.eBodyViewport.scrollTop=0},t.prototype.processMouseEvent=function(e,t){if(this.mouseEventService.isEventFromThisGrid(t)&&!B._.isStopPropagationForAgGrid(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)),this.preventDefaultOnContextMenu(t)}},t.prototype.mockContextMenuForIPad=function(){var e=this;B._.isUserAgentIPad()&&this.eAllCellContainers.forEach((function(t){var o=new D.TouchListener(t);e.addDestroyableEventListener(o,D.TouchListener.EVENT_LONG_TAP,(function(t){var o=e.getRowForEvent(t.touchEvent),i=e.mouseEventService.getRenderedCellForEvent(t.touchEvent);e.handleContextMenuMouseEvent(null,t.touchEvent,o,i)})),e.addDestroyFunc((function(){return o.destroy()}))}))},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)}this.onContextMenu(e,t,r,n,s)},t.prototype.onContextMenu=function(e,t,o,i,r){if((this.gridOptionsWrapper.isAllowContextMenuWithControlKey()||!e||!e.ctrlKey&&!e.metaKey)&&this.contextMenuFactory&&!this.gridOptionsWrapper.isSuppressContextMenu()){var n=e||t.touches[0];this.contextMenuFactory.showMenu(o,i,r,n),(e||t).preventDefault()}},t.prototype.preventDefaultOnContextMenu=function(e){var t=this.gridOptionsWrapper,o=e.which;(t.isPreventDefaultOnContextMenu()||t.isSuppressMiddleClickScrolls()&&2===o)&&e.preventDefault()},t.prototype.onCtrlAndA=function(e){var t=this.columnController,o=this.pinnedRowModel,i=this.paginationProxy,r=this.rangeController,n=g.Constants.PINNED_BOTTOM,s=g.Constants.PINNED_TOP;if(r&&i.isRowsToRender()){var a=[o.isEmpty(s),o.isEmpty(n)],l=a[0]?null:s,p=void 0,u=void 0;a[1]?(p=null,u=this.paginationProxy.getRowCount()-1):(p=n,u=o.getPinnedBottomRowData().length-1);var c=t.getAllDisplayedColumns();if(B._.missingOrEmpty(c))return;r.setCellRange({rowStartIndex:0,rowStartPinned:l,rowEndIndex:u,rowEndPinned:p,columnStart:c[0],columnEnd:B._.last(c)})}e.preventDefault()},t.prototype.onCtrlAndC=function(e){if(this.clipboardService&&!this.gridOptionsWrapper.isEnableCellTextSelection()){var t=this.focusedCellController.getFocusedCell();this.clipboardService.copyToClipboard(),e.preventDefault(),t&&this.focusedCellController.setFocusedCell(t.rowIndex,t.column,t.rowPinned,!0)}},t.prototype.onCtrlAndV=function(){this.enterprise&&!this.gridOptionsWrapper.isSuppressClipboardPaste()&&this.clipboardService.pasteFromClipboard()},t.prototype.onCtrlAndD=function(e){this.enterprise&&(this.clipboardService.copyRangeDown(),e.preventDefault())},t.prototype.ensureIndexVisible=function(e,t){if(!this.printLayout){var o=this.paginationProxy.getRowCount();if("number"!=typeof e||e<0||e>=o)console.warn("invalid row index for ensureIndexVisible: "+e);else{this.paginationProxy.goToPageWithIndex(e);var i,r=this.paginationProxy.getRow(e);do{var n=r.rowTop,s=r.rowHeight,a=this.paginationProxy.getPixelOffset(),l=r.rowTop-a,p=l+r.rowHeight,u=this.getVScrollPosition(),c=this.heightScaler.getOffset(),d=u.top+c,h=u.bottom+c,f=h-d,g=this.heightScaler.getScrollPositionForPixel(l),y=this.heightScaler.getScrollPositionForPixel(p-f),v=Math.min((g+y)/2,l),m=null;"top"===t?m=g:"bottom"===t?m=y:"middle"===t?m=v:d>l?m=g:h<p&&(m=y),null!==m&&(this.eBodyViewport.scrollTop=m,this.rowRenderer.redrawAfterScroll()),i=n!==r.rowTop||s!==r.rowHeight}while(i);this.animationFrameService.flushAllFrames()}}},t.prototype.getCenterWidth=function(){return this.eCenterViewport.clientWidth},t.prototype.isVerticalScrollShowing=function(){var e=this.gridOptionsWrapper.isAlwaysShowVerticalScroll();return B._.addOrRemoveCssClass(this.eBodyViewport,"ag-force-vertical-scroll",e),e||B._.isVerticalScrollShowing(this.eBodyViewport)},t.prototype.isHorizontalScrollShowing=function(){return B._.isHorizontalScrollShowing(this.eCenterViewport)},t.prototype.checkViewportAndScrolls=function(){this.updateScrollVisibleService(),this.checkBodyHeight(),this.onHorizontalViewportChanged(),this.setPinnedContainerSize()},t.prototype.updateScrollVisibleService=function(){this.updateScrollVisibleServiceImpl(),setTimeout(this.updateScrollVisibleServiceImpl.bind(this),500)},t.prototype.updateScrollVisibleServiceImpl=function(){var e={horizontalScrollShowing:!1,verticalScrollShowing:!1};e.verticalScrollShowing=this.isVerticalScrollShowing(),e.horizontalScrollShowing=this.isHorizontalScrollShowing(),this.scrollVisibleService.setScrollsVisible(e),this.setHorizontalScrollVisible(e.horizontalScrollShowing),this.setVerticalScrollPaddingVisible(e.verticalScrollShowing)},t.prototype.setHorizontalScrollVisible=function(e){var t=this.gridOptionsWrapper.isSuppressHorizontalScroll(),o=e&&this.gridOptionsWrapper.getScrollbarWidth()||0,i=t?0:o,r=B._.isBrowserIE()&&e;this.eCenterViewport.style.height="calc(100% + "+o+"px)",B._.setFixedHeight(this.eHorizontalScrollBody,i),B._.setFixedHeight(this.eBodyHorizontalScrollViewport,i+(r?1:0)),B._.setFixedHeight(this.eBodyHorizontalScrollContainer,i)},t.prototype.setVerticalScrollPaddingVisible=function(e){var t=e?"scroll":"hidden";this.eTop.style.overflowY=this.eBottom.style.overflowY=t,this.setFakeHScrollSpacerWidths()},t.prototype.updateRowCount=function(){var e=(this.headerRootComp.getHeaderRowCount()+this.paginationProxy.getRowCount()).toString();this.getGui().setAttribute("aria-rowcount",e)},t.prototype.ensureColumnVisible=function(e){var t=this.columnController.getGridColumn(e);if(t)if(t.isPinned())console.warn("calling ensureIndexVisible on a "+t.getPinned()+" pinned column doesn't make sense for column "+t.getColId());else if(this.columnController.isColumnDisplayed(t)){var o,i,r=t.getLeft(),n=r+t.getActualWidth(),s=this.eCenterViewport.clientWidth,a=this.getCenterViewportScrollLeft(),l=this.columnController.getBodyContainerWidth();this.enableRtl?(o=l-a-s,i=l-a):(o=a,i=s+a);var p=o>r,u=i<n,c=s<t.getActualWidth(),d=p||c,h=u,f=this.getCenterViewportScrollLeft();(d||h)&&(f=this.enableRtl?d?l-s-r:l-n:d?r:n-s,this.setCenterViewportScrollLeft(f)),this.onHorizontalViewportChanged(),this.animationFrameService.flushAllFrames()}else console.warn("column is not currently visible")},t.prototype.showLoadingOverlay=function(){this.gridOptionsWrapper.isSuppressLoadingOverlay()||this.overlayWrapper.showLoadingOverlay()},t.prototype.showNoRowsOverlay=function(){this.gridOptionsWrapper.isSuppressNoRowsOverlay()||this.overlayWrapper.showNoRowsOverlay()},t.prototype.hideOverlay=function(){this.overlayWrapper.hideOverlay()},t.prototype.sizeColumnsToFit=function(e){var t=this,o=this.eBodyViewport.clientWidth;o>0?this.columnController.sizeColumnsToFit(o,"sizeColumnsToFit"):void 0===e?window.setTimeout((function(){t.sizeColumnsToFit(100)}),0):100===e?window.setTimeout((function(){t.sizeColumnsToFit(500)}),100):500===e?window.setTimeout((function(){t.sizeColumnsToFit(-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.getCenterContainer=function(){return this.eCenterContainer},t.prototype.getDropTargetBodyContainers=function(){return[this.eCenterViewport,this.eTopViewport,this.eBottomViewport]},t.prototype.getDropTargetLeftContainers=function(){return[this.eLeftContainer,this.eLeftBottom,this.eLeftTop]},t.prototype.getDropTargetRightContainers=function(){return[this.eRightContainer,this.eRightBottom,this.eRightTop]},t.prototype.buildRowContainerComponents=function(){var e=this;this.eAllCellContainers=[this.eLeftContainer,this.eRightContainer,this.eCenterContainer,this.eTop,this.eBottom,this.eFullWidthContainer],this.rowContainerComponents={body:new C.RowContainerComponent({eContainer:this.eCenterContainer,eWrapper:this.eCenterColsClipper,eViewport:this.eBodyViewport}),fullWidth:new C.RowContainerComponent({eContainer:this.eFullWidthContainer}),pinnedLeft:new C.RowContainerComponent({eContainer:this.eLeftContainer}),pinnedRight:new C.RowContainerComponent({eContainer:this.eRightContainer}),floatingTop:new C.RowContainerComponent({eContainer:this.eTopContainer}),floatingTopPinnedLeft:new C.RowContainerComponent({eContainer:this.eLeftTop}),floatingTopPinnedRight:new C.RowContainerComponent({eContainer:this.eRightTop}),floatingTopFullWidth:new C.RowContainerComponent({eContainer:this.eTopFullWidthContainer,hideWhenNoChildren:!0}),floatingBottom:new C.RowContainerComponent({eContainer:this.eBottomContainer}),floatingBottomPinnedLeft:new C.RowContainerComponent({eContainer:this.eLeftBottom}),floatingBottomPinnedRight:new C.RowContainerComponent({eContainer:this.eRightBottom}),floatingBottomFullWith:new C.RowContainerComponent({eContainer:this.eBottomFullWidthContainer,hideWhenNoChildren:!0})},B._.iterateObject(this.rowContainerComponents,(function(t,o){o&&e.getContext().wireBean(o)}))},t.prototype.setupRowAnimationCssClass=function(){var e=this,t=function(){var t=e.gridOptionsWrapper.isAnimateRows()&&!e.heightScaler.isScaling();B._.addOrRemoveCssClass(e.eBodyViewport,"ag-row-animation",t),B._.addOrRemoveCssClass(e.eBodyViewport,"ag-row-no-animation",!t)};t(),this.addDestroyableEventListener(this.eventService,h.Events.EVENT_HEIGHT_SCALE_CHANGED,t)},t.prototype.suppressScrollOnFloatingRow=function(){var e=this;this.addDestroyableEventListener(this.eTopViewport,"scroll",(function(){return e.eTopViewport.scrollLeft=0})),this.addDestroyableEventListener(this.eBottomViewport,"scroll",(function(){return e.eTopViewport.scrollLeft=0}))},t.prototype.getRowContainers=function(){return this.rowContainerComponents},t.prototype.getFloatingTopBottom=function(){return[this.eTop,this.eBottom]},t.prototype.onDisplayedColumnsChanged=function(){this.setPinnedContainerSize(),this.setHeaderAndFloatingHeights(),this.onHorizontalViewportChanged(),this.updateScrollVisibleService()},t.prototype.onDisplayedColumnsWidthChanged=function(){this.setWidthsOfContainers(),this.onHorizontalViewportChanged(),this.updateScrollVisibleService(),this.enableRtl&&this.horizontallyScrollHeaderCenterAndFloatingCenter()},t.prototype.setWidthsOfContainers=function(){this.setCenterWidth(),this.setPinnedContainerSize()},t.prototype.setCenterWidth=function(){var e=this.columnController.getBodyContainerWidth();this.printLayout&&(e+=this.columnController.getPinnedLeftContainerWidth()+this.columnController.getPinnedRightContainerWidth());this.headerRootComp.setHeaderContainerWidth(e);var t=e+"px";this.eCenterContainer.style.width=t,this.eBottomContainer.style.width=t,this.eTopContainer.style.width=t,this.printLayout||(this.eBodyHorizontalScrollContainer.style.width=t)},t.prototype.setPinnedLeftWidth=function(){var e=this,t=this.pinningLeft,o=this.columnController.getPinnedLeftContainerWidth(),i=this.pinningLeft=!this.printLayout&&o>0,r=[this.eLeftContainer,this.eLeftTop,this.eLeftBottom];t!==i&&this.headerRootComp.setLeftVisible(i),r.forEach((function(t){return B._.setDisplayed(t,e.pinningLeft)})),i&&r.forEach((function(e){return B._.setFixedWidth(e,o)}))},t.prototype.setPinnedRightWidth=function(){var e=this.pinningRight,t=this.columnController.getPinnedRightContainerWidth(),o=this.pinningRight=!this.printLayout&&t>0,i=[this.eRightContainer,this.eRightTop,this.eRightBottom];e!==o&&this.headerRootComp.setRightVisible(o),i.forEach((function(e){return B._.setDisplayed(e,o)})),o&&i.forEach((function(e){return B._.setFixedWidth(e,t)}))},t.prototype.setPinnedContainerSize=function(){this.setPinnedLeftWidth(),this.setPinnedRightWidth(),this.setFakeHScrollSpacerWidths()},t.prototype.setFakeHScrollSpacerWidths=function(){var e=this.columnController.getPinnedRightContainerWidth();!this.enableRtl&&this.isVerticalScrollShowing()&&(e+=this.scrollWidth),B._.setFixedWidth(this.eHorizontalRightSpacer,e),B._.addOrRemoveCssClass(this.eHorizontalRightSpacer,"ag-scroller-corner",e<=this.scrollWidth);var t=this.columnController.getPinnedLeftContainerWidth();this.enableRtl&&this.isVerticalScrollShowing()&&(t+=this.scrollWidth),B._.setFixedWidth(this.eHorizontalLeftSpacer,t),B._.addOrRemoveCssClass(this.eHorizontalLeftSpacer,"ag-scroller-corner",t<=this.scrollWidth)},t.prototype.checkBodyHeight=function(){var e=this.eBodyViewport.clientHeight;if(this.bodyHeight!==e){this.bodyHeight=e;var t={type:h.Events.EVENT_BODY_HEIGHT_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(t)}},t.prototype.setHeaderAndFloatingHeights=function(){var e,t,o,i=this,r=i.columnController,n=i.gridOptionsWrapper,s=i.pinnedRowModel,a=i.eTop,l=i.eBottom,p=0,u=r.getHeaderRowCount();r.isPivotMode()?(p=0,t=n.getPivotGroupHeaderHeight(),o=n.getPivotHeaderHeight()):(n.isFloatingFilter()&&u++,p=n.isFloatingFilter()?1:0,t=n.getGroupHeaderHeight(),o=n.getHeaderHeight());var c=u-(1+p);e=p*n.getFloatingFiltersHeight(),e+=c*t,e+=o,this.headerRootComp.setHeight(e);var d=s.getPinnedTopTotalHeight();d&&(d+=1);var h=s.getPinnedBottomTotalHeight();h&&(h+=1);var f=d+"px",g=h+"px";a.style.minHeight=f,a.style.height=f,a.style.display=d?"inherit":"none",l.style.minHeight=g,l.style.height=g,l.style.display=h?"inherit":"none",this.checkBodyHeight()},t.prototype.getBodyHeight=function(){return this.bodyHeight},t.prototype.setHorizontalScrollPosition=function(e){this.eCenterViewport.scrollLeft=e,this.doHorizontalScroll(e)},t.prototype.setVerticalScrollPosition=function(e){this.eBodyViewport.scrollTop=e},t.prototype.scrollHorizontally=function(e){var t=this.eCenterViewport.scrollLeft;return this.setHorizontalScrollPosition(t+e),this.eCenterViewport.scrollLeft-t},t.prototype.scrollVertically=function(e){var t=this.eBodyViewport.scrollTop;return this.setVerticalScrollPosition(t+e),this.eBodyViewport.scrollTop-t},t.prototype.addScrollListener=function(){this.addDestroyableEventListener(this.eCenterViewport,"scroll",this.onCenterViewportScroll.bind(this)),this.addDestroyableEventListener(this.eBodyHorizontalScrollViewport,"scroll",this.onFakeHorizontalScroll.bind(this)),this.addDestroyableEventListener(this.eBodyViewport,"scroll",this.onVerticalScroll.bind(this))},t.prototype.onVerticalScroll=function(){var e=this.eBodyViewport.scrollTop;this.animationFrameService.setScrollTop(e),this.nextScrollTop=e,this.gridOptionsWrapper.isSuppressAnimationFrame()?this.redrawRowsAfterScroll():this.animationFrameService.schedule()},t.prototype.executeFrame=function(){var e=this.scrollTop!==this.nextScrollTop;return e&&(this.scrollTop=this.nextScrollTop,this.redrawRowsAfterScroll()),e},t.prototype.isControllingScroll=function(e){return this.lastHorizontalScrollElement?e===this.lastHorizontalScrollElement:(this.lastHorizontalScrollElement=e,!0)},t.prototype.onFakeHorizontalScroll=function(){this.isControllingScroll(this.eBodyHorizontalScrollViewport)&&this.onBodyHorizontalScroll(this.eBodyHorizontalScrollViewport)},t.prototype.onCenterViewportScroll=function(){this.isControllingScroll(this.eCenterViewport)&&this.onBodyHorizontalScroll(this.eCenterViewport)},t.prototype.onBodyHorizontalScroll=function(e){var t=this.eCenterViewport,o=t.scrollWidth,i=t.clientWidth,r=Math.floor(B._.getScrollLeft(e,this.enableRtl));r<0||r+i>o||(this.doHorizontalScroll(r),this.resetLastHorizontalScrollElementDebounce())},t.prototype.resetLastHorizontalScrollElement=function(){this.lastHorizontalScrollElement=null},t.prototype.doHorizontalScroll=function(e){this.scrollLeft=e;var t={type:h.Events.EVENT_BODY_SCROLL,api:this.gridApi,columnApi:this.columnApi,direction:"horizontal",left:this.scrollLeft,top:this.scrollTop};this.eventService.dispatchEvent(t),this.horizontallyScrollHeaderCenterAndFloatingCenter(e),this.onHorizontalViewportChanged()},t.prototype.redrawRowsAfterScroll=function(){var e={type:h.Events.EVENT_BODY_SCROLL,direction:"vertical",api:this.gridApi,columnApi:this.columnApi,left:this.scrollLeft,top:this.scrollTop};this.eventService.dispatchEvent(e)},t.prototype.onHorizontalViewportChanged=function(){var e=this.eCenterViewport.clientWidth,t=this.getCenterViewportScrollLeft();this.columnController.setVirtualViewportPosition(e,t)},t.prototype.getCenterViewportScrollLeft=function(){return B._.getScrollLeft(this.eCenterViewport,this.enableRtl)},t.prototype.setCenterViewportScrollLeft=function(e){B._.setScrollLeft(this.eCenterViewport,e,this.enableRtl)},t.prototype.horizontallyScrollHeaderCenterAndFloatingCenter=function(e){void 0===e&&(e=this.getCenterViewportScrollLeft());var t=this.enableRtl?e:-e,o=this.eCenterViewport,i=o.clientWidth,r=o.scrollWidth;if(!(Math.abs(t)+i>r||this.enableRtl&&t<0||!this.enableRtl&&t>0)){this.headerRootComp.setHorizontalScroll(t),this.eBottomContainer.style.transform="translateX("+t+"px)",this.eTopContainer.style.transform="translateX("+t+"px)";var n=this.lastHorizontalScrollElement===this.eCenterViewport?this.eBodyHorizontalScrollViewport:this.eCenterViewport;B._.setScrollLeft(n,e,this.enableRtl)}},t.prototype.addScrollEventListener=function(e){this.eBodyViewport.addEventListener("scroll",e)},t.prototype.removeScrollEventListener=function(e){this.eBodyViewport.removeEventListener("scroll",e)},n([c.Autowired("alignedGridsService"),s("design:type",E.AlignedGridsService)],t.prototype,"alignedGridsService",void 0),n([c.Autowired("gridOptionsWrapper"),s("design:type",a.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),n([c.Autowired("columnController"),s("design:type",l.ColumnController)],t.prototype,"columnController",void 0),n([c.Autowired("rowRenderer"),s("design:type",u.RowRenderer)],t.prototype,"rowRenderer",void 0),n([c.Autowired("pinnedRowModel"),s("design:type",R.PinnedRowModel)],t.prototype,"pinnedRowModel",void 0),n([c.Autowired("eventService"),s("design:type",d.EventService)],t.prototype,"eventService",void 0),n([c.Autowired("animationFrameService"),s("design:type",O.AnimationFrameService)],t.prototype,"animationFrameService",void 0),n([c.Autowired("navigationService"),s("design:type",A.NavigationService)],t.prototype,"navigationService",void 0),n([c.Autowired("autoHeightCalculator"),s("design:type",I.AutoHeightCalculator)],t.prototype,"autoHeightCalculator",void 0),n([c.Autowired("columnAnimationService"),s("design:type",G.ColumnAnimationService)],t.prototype,"columnAnimationService",void 0),n([c.Autowired("autoWidthCalculator"),s("design:type",k.AutoWidthCalculator)],t.prototype,"autoWidthCalculator",void 0),n([c.Autowired("paginationAutoPageSizeService"),s("design:type",_.PaginationAutoPageSizeService)],t.prototype,"paginationAutoPageSizeService",void 0),n([c.Autowired("beans"),s("design:type",W.Beans)],t.prototype,"beans",void 0),n([c.Autowired("paginationProxy"),s("design:type",w.PaginationProxy)],t.prototype,"paginationProxy",void 0),n([c.Autowired("columnApi"),s("design:type",p.ColumnApi)],t.prototype,"columnApi",void 0),n([c.Autowired("gridApi"),s("design:type",P.GridApi)],t.prototype,"gridApi",void 0),n([c.Autowired("dragService"),s("design:type",f.DragService)],t.prototype,"dragService",void 0),n([c.Autowired("mouseEventService"),s("design:type",y.MouseEventService)],t.prototype,"mouseEventService",void 0),n([c.Autowired("focusedCellController"),s("design:type",v.FocusedCellController)],t.prototype,"focusedCellController",void 0),n([c.Autowired("$scope"),s("design:type",Object)],t.prototype,"$scope",void 0),n([c.Autowired("scrollVisibleService"),s("design:type",m.ScrollVisibleService)],t.prototype,"scrollVisibleService",void 0),n([c.Autowired("valueService"),s("design:type",T.ValueService)],t.prototype,"valueService",void 0),n([c.Autowired("dragAndDropService"),s("design:type",x.DragAndDropService)],t.prototype,"dragAndDropService",void 0),n([c.Autowired("maxDivHeightScaler"),s("design:type",M.MaxDivHeightScaler)],t.prototype,"heightScaler",void 0),n([c.Autowired("enterprise"),s("design:type",Boolean)],t.prototype,"enterprise",void 0),n([c.Autowired("resizeObserverService"),s("design:type",j.ResizeObserverService)],t.prototype,"resizeObserverService",void 0),n([c.Optional("rangeController"),s("design:type",Object)],t.prototype,"rangeController",void 0),n([c.Optional("contextMenuFactory"),s("design:type",Object)],t.prototype,"contextMenuFactory",void 0),n([c.Optional("clipboardService"),s("design:type",Object)],t.prototype,"clipboardService",void 0),n([V.RefSelector("eBodyViewport"),s("design:type",HTMLElement)],t.prototype,"eBodyViewport",void 0),n([V.RefSelector("eCenterContainer"),s("design:type",HTMLElement)],t.prototype,"eCenterContainer",void 0),n([V.RefSelector("eCenterViewport"),s("design:type",HTMLElement)],t.prototype,"eCenterViewport",void 0),n([V.RefSelector("eLeftContainer"),s("design:type",HTMLElement)],t.prototype,"eLeftContainer",void 0),n([V.RefSelector("eRightContainer"),s("design:type",HTMLElement)],t.prototype,"eRightContainer",void 0),n([V.RefSelector("eCenterColsClipper"),s("design:type",HTMLElement)],t.prototype,"eCenterColsClipper",void 0),n([V.RefSelector("eHorizontalScrollBody"),s("design:type",HTMLElement)],t.prototype,"eHorizontalScrollBody",void 0),n([V.RefSelector("eHorizontalLeftSpacer"),s("design:type",HTMLElement)],t.prototype,"eHorizontalLeftSpacer",void 0),n([V.RefSelector("eHorizontalRightSpacer"),s("design:type",HTMLElement)],t.prototype,"eHorizontalRightSpacer",void 0),n([V.RefSelector("eBodyHorizontalScrollViewport"),s("design:type",HTMLElement)],t.prototype,"eBodyHorizontalScrollViewport",void 0),n([V.RefSelector("eBodyHorizontalScrollContainer"),s("design:type",HTMLElement)],t.prototype,"eBodyHorizontalScrollContainer",void 0),n([V.RefSelector("eFullWidthContainer"),s("design:type",HTMLElement)],t.prototype,"eFullWidthContainer",void 0),n([V.RefSelector("eTop"),s("design:type",HTMLElement)],t.prototype,"eTop",void 0),n([V.RefSelector("eLeftTop"),s("design:type",HTMLElement)],t.prototype,"eLeftTop",void 0),n([V.RefSelector("eRightTop"),s("design:type",HTMLElement)],t.prototype,"eRightTop",void 0),n([V.RefSelector("eTopContainer"),s("design:type",HTMLElement)],t.prototype,"eTopContainer",void 0),n([V.RefSelector("eTopViewport"),s("design:type",HTMLElement)],t.prototype,"eTopViewport",void 0),n([V.RefSelector("eTopFullWidthContainer"),s("design:type",HTMLElement)],t.prototype,"eTopFullWidthContainer",void 0),n([V.RefSelector("eBottom"),s("design:type",HTMLElement)],t.prototype,"eBottom",void 0),n([V.RefSelector("eLeftBottom"),s("design:type",HTMLElement)],t.prototype,"eLeftBottom",void 0),n([V.RefSelector("eRightBottom"),s("design:type",HTMLElement)],t.prototype,"eRightBottom",void 0),n([V.RefSelector("eBottomContainer"),s("design:type",HTMLElement)],t.prototype,"eBottomContainer",void 0),n([V.RefSelector("eBottomViewport"),s("design:type",HTMLElement)],t.prototype,"eBottomViewport",void 0),n([V.RefSelector("eBottomFullWidthContainer"),s("design:type",HTMLElement)],t.prototype,"eBottomFullWidthContainer",void 0),n([V.RefSelector("headerRoot"),s("design:type",H.HeaderRootComp)],t.prototype,"headerRootComp",void 0),n([V.RefSelector("overlayWrapper"),s("design:type",N.OverlayWrapperComponent)],t.prototype,"overlayWrapper",void 0),n([c.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"init",null),t}(L.Component);t.GridPanel=z},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/var i=this&&this.__decorate||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},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),s=o(3),a=o(2),l=function(){function e(){}return e.prototype.init=function(){this.groupSelectsChildren=this.gridOptionsWrapper.isGroupSelectsChildren(),this.isRowSelectableFunc=this.gridOptionsWrapper.getIsRowSelectableFunc()},e.prototype.updateSelectableAfterGrouping=function(e){if(this.isRowSelectableFunc){this.recurseDown(e.childrenAfterGroup,(function(e){return e.childrenAfterGroup}))}},e.prototype.updateSelectableAfterFiltering=function(e){if(this.isRowSelectableFunc){this.recurseDown(e.childrenAfterGroup,(function(e){return e.childrenAfterFilter}))}},e.prototype.recurseDown=function(e,t){var o=this;e.forEach((function(e){if(e.group){var i;if(e.hasChildren()&&o.recurseDown(t(e),t),o.groupSelectsChildren){var r=a._.find(t(e),"selectable",!0);i=a._.exists(r)}else i=!!o.isRowSelectableFunc&&o.isRowSelectableFunc(e);e.setRowSelectable(i)}}))},i([n.Autowired("gridOptionsWrapper"),r("design:type",s.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([n.PostConstruct,r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],e.prototype,"init",null),e=i([n.Bean("selectableService")],e)}();t.SelectableService=l},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var n=o(15),s=o(95),a=o(2),l=function(e){function t(t){var o=e.call(this)||this;return o.maxRowFound=!1,o.blocks={},o.blockCount=0,o.virtualRowCount=t.initialRowCount,o.cacheParams=t,o}return r(t,e),t.prototype.destroy=function(){var t=this;e.prototype.destroy.call(this),this.forEachBlockInOrder((function(e){return t.destroyBlock(e)}))},t.prototype.init=function(){var e=this;this.active=!0,this.addDestroyFunc((function(){return e.active=!1}))},t.prototype.isActive=function(){return this.active},t.prototype.getVirtualRowCount=function(){return this.virtualRowCount},t.prototype.hack_setVirtualRowCount=function(e){this.virtualRowCount=e},t.prototype.isMaxRowFound=function(){return this.maxRowFound},t.prototype.onPageLoaded=function(e){this.cacheParams.rowNodeBlockLoader.loadComplete(),this.checkBlockToLoad(),this.isActive()&&(this.logger.log("onPageLoaded: page = "+e.page.getBlockNumber()+", lastRow = "+e.lastRow),e.success&&this.checkVirtualRowCount(e.page,e.lastRow))},t.prototype.purgeBlocksIfNeeded=function(e){var o=this,i=[];this.forEachBlockInOrder((function(t){t!==e&&i.push(t)})),i.sort((function(e,t){return t.getLastAccessed()-e.getLastAccessed()}));var r=this.cacheParams.maxBlocksInCache>0,n=r?this.cacheParams.maxBlocksInCache-1:null,a=t.MAX_EMPTY_BLOCKS_TO_KEEP-1;i.forEach((function(e,t){if(e.getState()===s.RowNodeBlock.STATE_DIRTY&&t>=a||!!r&&t>=n){if(e.isAnyNodeOpen(o.virtualRowCount))return;o.removeBlockFromCache(e)}}))},t.prototype.postCreateBlock=function(e){e.addEventListener(s.RowNodeBlock.EVENT_LOAD_COMPLETE,this.onPageLoaded.bind(this)),this.setBlock(e.getBlockNumber(),e),this.purgeBlocksIfNeeded(e),this.checkBlockToLoad()},t.prototype.removeBlockFromCache=function(e){e&&this.destroyBlock(e)},t.prototype.checkBlockToLoad=function(){this.cacheParams.rowNodeBlockLoader.checkBlockToLoad()},t.prototype.checkVirtualRowCount=function(e,t){if("number"==typeof t&&t>=0)this.virtualRowCount=t,this.maxRowFound=!0,this.onCacheUpdated();else if(!this.maxRowFound){var o=(e.getBlockNumber()+1)*this.cacheParams.blockSize+this.cacheParams.overflowSize;this.virtualRowCount<o?(this.virtualRowCount=o,this.onCacheUpdated()):this.cacheParams.dynamicRowHeight&&this.onCacheUpdated()}},t.prototype.setVirtualRowCount=function(e,t){this.virtualRowCount=e,a._.exists(t)&&(this.maxRowFound=t),this.maxRowFound||this.virtualRowCount%this.cacheParams.blockSize==0&&this.virtualRowCount++,this.onCacheUpdated()},t.prototype.forEachNodeDeep=function(e,t){var o=this;void 0===t&&(t=new a.NumberSequence),this.forEachBlockInOrder((function(i){i.forEachNodeDeep(e,t,o.virtualRowCount)}))},t.prototype.forEachBlockInOrder=function(e){var t=this.getBlockIdsSorted();this.forEachBlockId(t,e)},t.prototype.forEachBlockInReverseOrder=function(e){var t=this.getBlockIdsSorted().reverse();this.forEachBlockId(t,e)},t.prototype.forEachBlockId=function(e,t){var o=this;e.forEach((function(e){var i=o.blocks[e];t(i,e)}))},t.prototype.getBlockIdsSorted=function(){return Object.keys(this.blocks).map((function(e){return parseInt(e,10)})).sort((function(e,t){return e-t}))},t.prototype.getBlock=function(e){return this.blocks[e]},t.prototype.setBlock=function(e,t){this.blocks[e]=t,this.blockCount++,this.cacheParams.rowNodeBlockLoader.addBlock(t)},t.prototype.destroyBlock=function(e){delete this.blocks[e.getBlockNumber()],e.destroy(),this.blockCount--,this.cacheParams.rowNodeBlockLoader.removeBlock(e)},t.prototype.onCacheUpdated=function(){if(this.isActive()){var e={type:t.EVENT_CACHE_UPDATED};this.dispatchEvent(e)}},t.prototype.purgeCache=function(){var e=this;this.forEachBlockInOrder((function(t){return e.removeBlockFromCache(t)})),this.virtualRowCount=this.cacheParams.initialRowCount,this.maxRowFound=!1,this.onCacheUpdated()},t.prototype.getRowNodesInRange=function(e,t){var o=this,i=[],r=-1,n=!1,s=new a.NumberSequence;a._.missing(e)&&(n=!0);var l=!1;return this.forEachBlockInOrder((function(a,p){l||(n&&r+1!==p?l=!0:(r=p,a.forEachNodeShallow((function(o){var r=o===e||o===t;(n||r)&&i.push(o),r&&(n=!n)}),s,o.virtualRowCount)))})),l||n?[]:i},t.EVENT_CACHE_UPDATED="cacheUpdated",t.MAX_EMPTY_BLOCKS_TO_KEEP=2,t}(n.BeanStub);t.RowNodeCache=l},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var n=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.className="ag-radio-button",t.inputType="radio",t.iconMap={selected:"radioButtonOn",unselected:"radioButtonOff"},t}return r(t,e),t.prototype.toggle=function(){var e=this.getNextValue();this.setValue(e)},t.prototype.getIconName=function(){var e=this.getValue()?"selected":"unselected",t=this.isReadOnly()?"ReadOnly":"";return""+this.iconMap[e]+t},t}(o(49).AgCheckbox);t.AgRadioButton=n},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),n=this&&this.__decorate||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},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(11),l=o(0),p=o(8),u=o(32),c=o(3),d=o(2),h=function(e){function t(o){var i=e.call(this,t.TEMPLATE)||this;return i.closable=!0,i.positioned=!1,i.dragStartPosition={x:0,y:0},i.position={x:0,y:0},i.size={width:void 0,height:void 0},i.config=o,i}return r(t,e),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=t.width,l=t.minHeight,p=t.height,u=t.centered,c=t.x,h=t.y,f=this.getGui();o&&this.setBodyComponent(o),r?d._.addCssClass(this.eTitleBar,"ag-hidden"):(n&&this.setTitle(n),this.setClosable(null!=i?i:this.closable)),this.addDestroyableEventListener(this.eTitleBar,"mousedown",(function(t){if(f.contains(t.relatedTarget)||f.contains(document.activeElement)||e.eTitleBarButtons.contains(t.target))t.preventDefault();else{var o=e.eContentWrapper.querySelector("button, [href], input, select, textarea, [tabindex]");o&&o.focus()}})),this.positioned||(this.minHeight=null!=l?l:250,this.minWidth=null!=s?s:250,this.popupParent=this.popupService.getPopupParent(),a&&this.setWidth(a),p&&this.setHeight(p),this.renderComponent&&this.renderComponent(),a&&p||this.refreshSize(),u?this.center():(c||h)&&this.offsetElement(c,h),this.positioned=!0,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.updateDragStartPosition=function(e,t){this.dragStartPosition={x:e,y:t}},t.prototype.calculateMouseMovement=function(e){var t=this.popupParent.getBoundingClientRect(),o=e.e,i=e.isLeft,r=e.isTop,n=e.anywhereWithin,s=e.topBuffer,a=o.clientX-this.dragStartPosition.x,l=o.clientY-this.dragStartPosition.y,p=this.getWidth(),u=this.getHeight(),c=t.left>=o.clientX&&this.position.x<=0||t.right<=o.clientX&&t.right<=this.position.x+t.left+p;return c||(c=i?a<0&&o.clientX>this.position.x+t.left||a>0&&o.clientX<this.position.x+t.left:n?a<0&&o.clientX>this.position.x+t.left+p||a>0&&o.clientX<this.position.x+t.left:a<0&&o.clientX>this.position.x+t.left+p||a>0&&o.clientX<this.position.x+t.left+p),{movementX:a=c?0:a,movementY:l=t.top>=o.clientY&&this.position.y<=0||t.bottom<=o.clientY&&t.bottom<=this.position.y+t.top+u||r&&(l<0&&o.clientY>this.position.y+t.top+(s||0)||l>0&&o.clientY<this.position.y+t.top)||!r&&(l<0&&o.clientY>this.position.y+t.top+u||l>0&&o.clientY<this.position.y+t.top+u)?0:l}},t.prototype.refreshSize=function(){var e=this.size,t=e.width,o=e.height;t||this.setWidth(this.getGui().offsetWidth),o||this.setHeight(this.getGui().offsetHeight)},t.prototype.offsetElement=function(e,t){void 0===e&&(e=0),void 0===t&&(t=0);var o=this.getGui();this.popupService.positionPopup({ePopup:o,x:e,y:t,minWidth:this.minWidth,minHeight:this.minHeight,keepWithinBounds:!0}),this.position.x=parseInt(o.style.left,10),this.position.y=parseInt(o.style.top,10)},t.prototype.getHeight=function(){return this.size.height},t.prototype.setHeight=function(e){var t=this.getGui(),o=!1;if("string"==typeof e&&-1!==e.indexOf("%"))d._.setFixedHeight(t,e),e=d._.getAbsoluteHeight(t),o=!0;else{e=Math.max(this.minHeight,e);var i=t.offsetParent;i&&i.clientHeight&&e+this.position.y>i.clientHeight&&(e=i.clientHeight-this.position.y)}this.size.height!==e&&(this.size.height=e,o?(t.style.maxHeight="unset",t.style.minHeight="unset"):d._.setFixedHeight(t,e))},t.prototype.getWidth=function(){return this.size.width},t.prototype.setWidth=function(e){var t=this.getGui(),o=!1;if("string"==typeof e&&-1!==e.indexOf("%"))d._.setFixedWidth(t,e),e=d._.getAbsoluteWidth(t),o=!0;else{e=Math.max(this.minWidth,e);var i=t.offsetParent;i&&i.clientWidth&&e+this.position.x>i.clientWidth&&(e=i.clientWidth-this.position.x)}this.size.width!==e&&(this.size.width=e,o?(t.style.maxWidth="unset",t.style.minWidth="unset"):d._.setFixedWidth(t,e))},t.prototype.center=function(){var e=this.getGui(),t=e.offsetParent.clientWidth/2-this.getWidth()/2,o=e.offsetParent.clientHeight/2-this.getHeight()/2;this.offsetElement(t,o)},t.prototype.setClosable=function(e){if(e!==this.closable&&(this.closable=e),e){var o=this.closeButtonComp=new p.Component(t.CLOSE_BTN_TEMPLATE);this.getContext().wireBean(o),(i=o.getGui()).appendChild(d._.createIconNoSpan("close",this.gridOptionsWrapper)),this.addTitleBarButton(o),o.addDestroyableEventListener(i,"click",this.onBtClose.bind(this))}else if(this.closeButtonComp){var i;(i=this.closeButtonComp.getGui()).parentElement.removeChild(i),this.closeButtonComp.destroy(),this.closeButtonComp=void 0}},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));var n=e.getGui();d._.addCssClass(n,"ag-button"),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 d._.getInnerHeight(this.eContentWrapper)},t.prototype.getBodyWidth=function(){return d._.getInnerWidth(this.eContentWrapper)},t.prototype.setTitle=function(e){this.eTitle.innerText=e},t.prototype.onBtClose=function(){this.close()},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.closeButtonComp&&(this.closeButtonComp.destroy(),this.closeButtonComp=void 0);var t=this.getGui();t&&t.offsetParent&&this.close()},t.TEMPLATE='<div class="ag-panel" tabindex="-1">\n <div ref="eTitleBar" class="ag-title-bar ag-unselectable">\n <span ref="eTitle" class="ag-title-bar-title"></span>\n <div ref="eTitleBarButtons" class="ag-title-bar-buttons"></div>\n </div>\n <div ref="eContentWrapper" class="ag-panel-content-wrapper"></div>\n </div>',t.CLOSE_BTN_TEMPLATE='<div class="ag-button"></div>',n([l.Autowired("popupService"),s("design:type",u.PopupService)],t.prototype,"popupService",void 0),n([l.Autowired("gridOptionsWrapper"),s("design:type",c.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),n([a.RefSelector("eContentWrapper"),s("design:type",HTMLElement)],t.prototype,"eContentWrapper",void 0),n([a.RefSelector("eTitleBar"),s("design:type",HTMLElement)],t.prototype,"eTitleBar",void 0),n([a.RefSelector("eTitleBarButtons"),s("design:type",HTMLElement)],t.prototype,"eTitleBarButtons",void 0),n([a.RefSelector("eTitle"),s("design:type",HTMLElement)],t.prototype,"eTitle",void 0),n([l.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"postConstruct",null),t}(p.Component);t.AgPanel=h},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var n=function(e){function t(t){var o=e.call(this)||this;return o.className="ag-text-field",o.displayTag="input",o.inputType="text",o.setTemplate(o.TEMPLATE.replace(/%displayField%/g,o.displayTag)),t&&(o.config=t),o}return r(t,e),t.prototype.setValue=function(t,o){var i=e.prototype.setValue.call(this,t,o);return this.eInput.value!==t&&(this.eInput.value=t),i},t}(o(65).AgAbstractInputField);t.AgInputTextField=n},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var n=o(65),s=o(2),a=function(e){function t(t){var o=e.call(this)||this;return o.className="ag-range-field",o.displayTag="input",o.inputType="range",o.setTemplate(o.TEMPLATE.replace(/%displayField%/g,o.displayTag)),t&&(o.config=t),o}return r(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,t=s._.isBrowserIE()?"change":"input";this.addDestroyableEventListener(this.eInput,t,(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.step=e,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}(n.AgAbstractInputField);t.AgInputRange=a},function(e,t,o){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),n=this&&this.__decorate||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},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(1),l=o(21),p=o(67),u=function(e){function t(t){var o=e.call(this)||this;return o.model=t,o}return r(t,e),t.prototype.init=function(){var e=this;this.updateForGridChange(),this.addDestroyableEventListener(this.eventService,a.Events.EVENT_CHART_RANGE_SELECTION_CHANGED,(function(t){t.id&&t.id===e.model.getChartId()&&e.updateForGridChange()})),this.addDestroyableEventListener(this.eventService,a.Events.EVENT_COLUMN_MOVED,this.updateForGridChange.bind(this)),this.addDestroyableEventListener(this.eventService,a.Events.EVENT_COLUMN_PINNED,this.updateForGridChange.bind(this)),this.addDestroyableEventListener(this.eventService,a.Events.EVENT_MODEL_UPDATED,this.updateForGridChange.bind(this)),this.addDestroyableEventListener(this.eventService,a.Events.EVENT_CELL_VALUE_CHANGED,this.updateForGridChange.bind(this)),this.addDestroyableEventListener(this.eventService,a.Events.EVENT_COLUMN_VISIBLE,this.updateForGridChange.bind(this))},t.prototype.updateForGridChange=function(){this.model.isDetached()||(this.model.updateCellRanges(),this.model.resetColumnState(),this.model.updateData(),this.setChartRange(),this.raiseChartUpdatedEvent())},t.prototype.updateForMenuChange=function(e){this.model.updateColumnState(e),this.model.updateCellRanges(e),this.model.updateData(),this.setChartRange(),this.raiseChartUpdatedEvent()},t.prototype.getChartType=function(){return this.model.getChartType()},t.prototype.isPivotChart=function(){return this.model.isPivotChart()},t.prototype.getActivePalette=function(){return this.model.getActivePalette()},t.prototype.getPalettes=function(){return this.model.getPalettes()},t.prototype.setChartType=function(e){this.model.setChartType(e),this.raiseChartUpdatedEvent()},t.prototype.setChartWithPalette=function(e,t){this.model.setChartType(e),this.model.setActivePalette(t),this.raiseChartUpdatedEvent()},t.prototype.getColStateForMenu=function(){return{dimensionCols:this.model.getDimensionColState(),valueCols:this.model.getValueColState()}},t.prototype.isDefaultCategorySelected=function(){var e=this.model.getSelectedDimension().colId;return e&&e===p.ChartModel.DEFAULT_CATEGORY},t.prototype.setChartRange=function(){this.model.isSuppressChartRanges()||this.model.isDetached()||this.rangeController.setCellRanges(this.model.getCellRanges())},t.prototype.detachChartRange=function(){this.model.toggleDetached(),this.model.isDetached()?this.rangeController.setCellRanges([]):(this.setChartRange(),this.updateForGridChange())},t.prototype.getChartProxy=function(){return this.model.getChartProxy()},t.prototype.isActiveXYChart=function(){return[a.ChartType.Scatter,a.ChartType.Bubble].indexOf(this.getChartType())>-1&&this.isDefaultCategorySelected()},t.prototype.raiseChartUpdatedEvent=function(){var e={type:t.EVENT_CHART_MODEL_UPDATED};this.dispatchEvent(e)},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.rangeController&&this.rangeController.setCellRanges([])},t.EVENT_CHART_MODEL_UPDATED="chartModelUpdated",n([a.Autowired("eventService"),s("design:type",a.EventService)],t.prototype,"eventService",void 0),n([a.Autowired("rangeController"),s("design:type",l.RangeController)],t.prototype,"rangeController",void 0),n([a.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"init",null),t}(a.BeanStub);t.ChartController=u},function(e,t,o){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),n=this&&this.__decorate||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},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(1),l=o(13),p=function(e){function t(t){var o=e.call(this)||this;return o.chartProxy=t,o}return r(t,e),t.prototype.init=function(){this.setTemplate(t.TEMPLATE),this.shadowBlurSlider.setTextFieldWidth(45),this.shadowXOffsetSlider.setTextFieldWidth(45),this.shadowYOffsetSlider.setTextFieldWidth(45),this.initSeriesShadow()},t.prototype.initSeriesShadow=function(){var e=this;this.shadowGroup.setTitle(this.chartTranslator.translate("shadow")).setEnabled(this.chartProxy.getShadowEnabled()).hideOpenCloseIcons(!0).hideEnabledCheckbox(!1).onEnableChange((function(t){return e.chartProxy.setShadowProperty("enabled",t)})),this.shadowColorPicker.setLabel(this.chartTranslator.translate("color")).setLabelWidth("flex").setInputWidth(45).setValue("rgba(0,0,0,0.5)").onValueChange((function(t){return e.chartProxy.setShadowProperty("color",t)}));var t=function(t,o,i){t.setLabel(e.chartTranslator.translate(o)).setValue(e.chartProxy.getShadowProperty(o)).setMaxValue(i).onValueChange((function(t){return e.chartProxy.setShadowProperty(o,t)}))};t(this.shadowBlurSlider,"blur",20),t(this.shadowXOffsetSlider,"xOffset",20),t(this.shadowYOffsetSlider,"yOffset",20)},t.TEMPLATE='<div>\n <ag-group-component ref="shadowGroup">\n <ag-color-picker ref="shadowColorPicker"></ag-color-picker>\n <ag-slider ref="shadowBlurSlider"></ag-slider>\n <ag-slider ref="shadowXOffsetSlider"></ag-slider>\n <ag-slider ref="shadowYOffsetSlider"></ag-slider>\n </ag-group-component>\n </div>',n([a.RefSelector("shadowGroup"),s("design:type",a.AgGroupComponent)],t.prototype,"shadowGroup",void 0),n([a.RefSelector("shadowColorPicker"),s("design:type",a.AgColorPicker)],t.prototype,"shadowColorPicker",void 0),n([a.RefSelector("shadowBlurSlider"),s("design:type",a.AgSlider)],t.prototype,"shadowBlurSlider",void 0),n([a.RefSelector("shadowXOffsetSlider"),s("design:type",a.AgSlider)],t.prototype,"shadowXOffsetSlider",void 0),n([a.RefSelector("shadowYOffsetSlider"),s("design:type",a.AgSlider)],t.prototype,"shadowYOffsetSlider",void 0),n([a.Autowired("chartTranslator"),s("design:type",l.ChartTranslator)],t.prototype,"chartTranslator",void 0),n([a.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"init",null),t}(a.Component);t.ShadowPanel=p},function(e,t,o){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),n=this&&this.__decorate||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},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(1),l=o(13),p=o(223),u=function(e){function t(t){var o=e.call(this)||this;return o.chartProxy=t,o}return r(t,e),t.prototype.init=function(){this.setTemplate(t.TEMPLATE),this.initMarkers()},t.prototype.initMarkers=function(){var e=this,t=this.chartProxy instanceof p.ScatterChartProxy;this.seriesMarkersGroup.setTitle(this.chartTranslator.translate("markers")).hideEnabledCheckbox(t).setEnabled(this.chartProxy.getMarkersEnabled()).hideOpenCloseIcons(!0).onEnableChange((function(t){return e.chartProxy.setSeriesProperty("marker",t)}));var o=function(t,o,i,r){o.setLabel(e.chartTranslator.translate(i)).setValue(e.chartProxy.getSeriesProperty(t)).setMaxValue(r).setTextFieldWidth(45).onValueChange((function(o){return e.chartProxy.setSeriesProperty(t,o)}))};o("markerSize",this.seriesMarkerSizeSlider,"size",30),o("markerStrokeWidth",this.seriesMarkerStrokeWidthSlider,"strokeWidth",10)},t.TEMPLATE='<div>\n <ag-group-component ref="seriesMarkersGroup">\n <ag-slider ref="seriesMarkerSizeSlider"></ag-slider>\n <ag-slider ref="seriesMarkerStrokeWidthSlider"></ag-slider>\n </ag-group-component> \n </div>',n([a.RefSelector("seriesMarkersGroup"),s("design:type",a.AgGroupComponent)],t.prototype,"seriesMarkersGroup",void 0),n([a.RefSelector("seriesMarkerSizeSlider"),s("design:type",a.AgSlider)],t.prototype,"seriesMarkerSizeSlider",void 0),n([a.RefSelector("seriesMarkerStrokeWidthSlider"),s("design:type",a.AgSlider)],t.prototype,"seriesMarkerStrokeWidthSlider",void 0),n([a.Autowired("chartTranslator"),s("design:type",l.ChartTranslator)],t.prototype,"chartTranslator",void 0),n([a.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"init",null),t}(a.Component);t.MarkersPanel=u},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(225),r=o(16),n=o(51),s=o(41),a=o(100),l=o(300),p=o(53),u=function(){function e(e){var t=this;void 0===e&&(e={}),this.background=new a.Rect,this.legend=new l.Legend,this.legendAutoPadding=new n.Padding,this.captionAutoPadding=0,this.tooltipOffset=[20,20],this.defaultTooltipClass="ag-chart-tooltip",this.onLayoutChange=function(){t.layoutPending=!0},this._title=void 0,this._subtitle=void 0,this._series=[],this._legendPosition="right",this._legendPadding=20,this._data=[],this._padding=new n.Padding(20),this.layoutCallbackId=0,this._performLayout=function(){t.layoutCallbackId=0,t.background.width=t.width,t.background.height=t.height,t.performLayout(),t.onLayoutDone&&t.onLayoutDone()},this.dataCallbackId=0,this._processData=function(){t.dataCallbackId=0,t.processData()},this.onMouseMove=function(e){var o=e.offsetX,i=e.offsetY,r=t.pickSeriesNode(o,i);if(r){var n=r.node;n instanceof s.Shape&&(t.lastPick?t.lastPick.node!==n?t.onSeriesNodePick(e,r.series,n):r.series.tooltipEnabled&&t.showTooltip(e):t.onSeriesNodePick(e,r.series,n))}else t.lastPick&&(t.lastPick.series.dehighlightNode(),t.hideTooltip(),t.lastPick=void 0)},this.onMouseOut=function(e){t.toggleTooltip(!1)},this.onClick=function(e){var o=e.offsetX,i=e.offsetY,r=t.legend.datumForPoint(o,i);if(r){var n=r.id,s=r.itemId,a=r.enabled,l=p.find(t.series,(function(e){return e.id===n}));l&&l.toggleSeriesItem(s,!a)}},this._tooltipClass=this.defaultTooltipClass;var o=new r.Group,u=this.background,c=e.document||window.document;u.fill="white",o.appendChild(u),this.scene=new i.Scene({document:c}),this.scene.root=o,this.legend.onLayoutChange=this.onLayoutChange,this.tooltipElement=c.createElement("div"),this.tooltipClass="",c.body.appendChild(this.tooltipElement),this.setupListeners(this.scene.canvas.element)}return e.prototype.destroy=function(){var e=this.tooltipElement.parentNode;e&&e.removeChild(this.tooltipElement),this.legend.onLayoutChange=void 0,this.cleanupListeners(this.scene.canvas.element),this.scene.parent=void 0},Object.defineProperty(e.prototype,"element",{get:function(){return this.scene.canvas.element},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parent",{get:function(){return this.scene.parent},set:function(e){this.scene.parent=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"title",{get:function(){return this._title},set:function(e){var t=this._title;t!==e&&(t&&(t.onLayoutChange=void 0,this.scene.root.removeChild(t.node)),e&&(e.onLayoutChange=this.onLayoutChange,this.scene.root.appendChild(e.node)),this._title=e,this.layoutPending=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"subtitle",{get:function(){return this._subtitle},set:function(e){var t=this._subtitle;t!==e&&(t&&(t.onLayoutChange=void 0,this.scene.root.removeChild(t.node)),e&&(e.onLayoutChange=this.onLayoutChange,this.scene.root.appendChild(e.node)),this._subtitle=e,this.layoutPending=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"series",{get:function(){return this._series},set:function(e){this._series=e},enumerable:!0,configurable:!0}),e.prototype.addSeries=function(e,t){if(void 0===t&&(t=null),this.series.indexOf(e)<0){var o=t?this.series.indexOf(t):-1;return o>=0?(this.series.splice(o,0,e),this.seriesRoot.insertBefore(e.group,t.group)):(this.series.push(e),this.seriesRoot.append(e.group)),e.chart=this,this.dataPending=!0,!0}return!1},e.prototype.removeSeries=function(e){var t=this.series.indexOf(e);return t>=0&&(this.series.splice(t,1),e.chart=void 0,this.seriesRoot.removeChild(e.group),this.dataPending=!0,!0)},e.prototype.removeAllSeries=function(){var e=this;this.series.forEach((function(t){t.chart=void 0,e.seriesRoot.removeChild(t.group)})),this._series=[],this.dataPending=!0},Object.defineProperty(e.prototype,"legendPosition",{get:function(){return this._legendPosition},set:function(e){if(this._legendPosition!==e){switch(this._legendPosition=e,this.legendAutoPadding.clear(),e){case"right":case"left":this.legend.orientation=l.Orientation.Vertical;break;case"bottom":case"top":this.legend.orientation=l.Orientation.Horizontal}this.layoutPending=!0}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"legendPadding",{get:function(){return this._legendPadding},set:function(e){e=isFinite(e)?e:20,this._legendPadding!==e&&(this._legendPadding=e,this.layoutPending=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"data",{get:function(){return this._data},set:function(e){this._data=e,this.series.forEach((function(t){return t.data=e}))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"padding",{get:function(){return this._padding},set:function(e){this._padding=e,this.layoutPending=!0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"size",{get:function(){return this.scene.size},set:function(e){this.scene.size=e,this.layoutPending=!0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"width",{get:function(){return this.scene.width},set:function(e){this.scene.width=e,this.layoutPending=!0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this.scene.height},set:function(e){this.scene.height=e,this.layoutPending=!0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"layoutPending",{get:function(){return!!this.layoutCallbackId},set:function(e){e?this.layoutCallbackId||this.dataPending||(this.layoutCallbackId=requestAnimationFrame(this._performLayout)):this.layoutCallbackId&&(cancelAnimationFrame(this.layoutCallbackId),this.layoutCallbackId=0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dataPending",{get:function(){return!!this.dataCallbackId},set:function(e){this.dataCallbackId&&(clearTimeout(this.dataCallbackId),this.dataCallbackId=0),e&&(this.scene.cancelRender(),this.dataCallbackId=window.setTimeout(this._processData,0))},enumerable:!0,configurable:!0}),e.prototype.processData=function(){this.layoutPending=!1;var e=[];this.series.forEach((function(t){t.visible&&t.processData(),t.showInLegend&&t.listSeriesItems(e)})),this.legend.data=e,this.layoutPending=!0},e.prototype.positionCaptions=function(){var e=this.title,t=this.subtitle,o=!1,i=!1,r=0;if(e&&e.enabled){r+=10;var n=e.node.getBBox();if(e.node.x=this.width/2,e.node.y=r,o=!0,r+=n?n.height:0,t&&t.enabled){var s=t.node.getBBox();t.node.x=this.width/2,t.node.y=r,i=!0,r+=5+(s?s.height:0)}}e&&(e.node.visible=o),t&&(t.node.visible=i),this.captionAutoPadding!==r&&(this.captionAutoPadding=r,this.layoutPending=!0)},e.prototype.positionLegend=function(){if(this.legend.enabled&&this.legend.data.length){var e,t=this.captionAutoPadding,o=this.width,i=this.height-t,r=this.legend,n=r.group,s=this.legendPadding,a=this.legendAutoPadding;switch(n.translationX=0,n.translationY=0,this.legendPosition){case"bottom":r.performLayout(o-2*s,0),e=n.getBBox(),n.translationX=(o-e.width)/2-e.x,n.translationY=t+i-e.height-e.y-s,a.bottom!==e.height&&(a.bottom=e.height,this.layoutPending=!0);break;case"top":r.performLayout(o-2*s,0),e=n.getBBox(),n.translationX=(o-e.width)/2-e.x,n.translationY=t+s-e.y,a.top!==e.height&&(a.top=e.height,this.layoutPending=!0);break;case"left":r.performLayout(0,i-2*s),e=n.getBBox(),n.translationX=s-e.x,n.translationY=t+(i-e.height)/2-e.y,a.left!==e.width&&(a.left=e.width,this.layoutPending=!0);break;default:r.performLayout(0,i-2*s),e=n.getBBox(),n.translationX=o-e.width-e.x-s,n.translationY=t+(i-e.height)/2-e.y,a.right!==e.width&&(a.right=e.width,this.layoutPending=!0)}n.translationX=Math.floor(n.translationX),n.translationY=Math.floor(n.translationY),this.legendBBox=e}},e.prototype.setupListeners=function(e){e.addEventListener("mousemove",this.onMouseMove),e.addEventListener("mouseout",this.onMouseOut),e.addEventListener("click",this.onClick)},e.prototype.cleanupListeners=function(e){e.removeEventListener("mousemove",this.onMouseMove),e.removeEventListener("mouseout",this.onMouseMove),e.removeEventListener("click",this.onClick)},e.prototype.pickSeriesNode=function(e,t){for(var o=this.series,i=void 0,r=o.length-1;r>=0;r--){var n=o[r];if(i=n.group.pickNode(e,t))return{series:n,node:i}}},e.prototype.onSeriesNodePick=function(e,t,o){this.lastPick={series:t,node:o},t.highlightNode(o);var i=t.tooltipEnabled&&t.getTooltipHtml(o.datum);i&&this.showTooltip(e,i)},Object.defineProperty(e.prototype,"tooltipClass",{get:function(){return this._tooltipClass},set:function(e){this._tooltipClass!==e&&(this._tooltipClass=e,this.toggleTooltip())},enumerable:!0,configurable:!0}),e.prototype.toggleTooltip=function(e){var t=[this.defaultTooltipClass,this._tooltipClass];e&&t.push("visible"),this.tooltipElement.setAttribute("class",t.join(" "))},e.prototype.showTooltip=function(e,t){var o=this.tooltipElement,i=this.tooltipOffset,r=o.parentElement;if(void 0!==t)o.innerHTML=t;else if(!o.innerHTML)return;t&&this.toggleTooltip(!0);var n=this.tooltipRect=o.getBoundingClientRect(),s=e.pageX+i[0],a=e.pageY+i[1];n&&r&&r.parentElement&&s-pageXOffset+n.width>r.parentElement.offsetWidth&&(s-=n.width+i[0]),o.style.left=s+"px",o.style.top=a+"px"},e.prototype.hideTooltip=function(){this.toggleTooltip(!1)},e}();t.Chart=u},function(e,t,o){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var n=o(41),s=o(72),a=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.path=new s.Path2D,t._svgPath="",t}return r(t,e),Object.defineProperty(t.prototype,"svgPath",{get:function(){return this._svgPath},set:function(e){this._svgPath!==e&&(this._svgPath=e,this.path.setFromString(e),this.dirty=!0)},enumerable:!0,configurable:!0}),t.prototype.isPointInPath=function(e,t){var o=this.transformPoint(e,t);return this.path.closedPath&&this.path.isPointInPath(o.x,o.y)},t.prototype.isPointInStroke=function(e,t){return!1},t.prototype.render=function(e){this.dirtyTransform&&this.computeTransformMatrix(),this.matrix.toContext(e),this.scene.appendPath(this.path),this.fillStroke(e),this.dirty=!1},t.className="Path",t}(n.Shape);t.Path=a},function(e,t,o){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var n=o(227),s=o(102),a=function(e){function t(){var t=e.call(this,s.default())||this;return t._nice=!0,t.scale.clamp=!0,t}return r(t,e),Object.defineProperty(t.prototype,"nice",{get:function(){return this._nice},set:function(e){this._nice!==e&&(this._nice=e,e&&this.scale.nice&&this.scale.nice(10))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"domain",{get:function(){return this.scale.domain},set:function(e){this.scale.domain=e,this.nice&&this.scale.nice&&this.scale.nice(10)},enumerable:!0,configurable:!0}),t}(n.Axis);t.NumberAxis=a},function(e,t,o){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var n=o(103),s=function(e){function t(){var t=new n.BandScale;return t.paddingInner=.2,t.paddingOuter=.3,e.call(this,t)||this}return r(t,e),t}(o(227).Axis);t.CategoryAxis=s},function(e,t,o){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),n=this&&this.__decorate||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},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(1),l=o(327),p=o(328),u=o(109),c=o(1),d=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return r(t,e),t.prototype.init=function(e,t){this.params=e,this.allowDragging=t,this.addDestroyableEventListener(this.globalEventService,a.Events.EVENT_COLUMN_EVERYTHING_CHANGED,this.onColumnsChanged.bind(this)),this.expandGroupsByDefault=!this.params.contractColumnSelection,this.columnController.isReady()&&this.onColumnsChanged()},t.prototype.onColumnsChanged=function(){this.destroyColumnComps(),this.columnTree=this.columnController.getPrimaryColumnTree();var e=this.columnController.isPrimaryColumnGroupsPresent();this.recursivelyAddComps(this.columnTree,0,e),this.updateVisibilityOfRows()},t.prototype.destroyColumnComps=function(){a._.clearElement(this.getGui()),this.columnComps&&a._.iterateObject(this.columnComps,(function(e,t){return t.destroy()})),this.columnComps={}},t.prototype.recursivelyAddGroupComps=function(e,t,o){var i;if(!e.getColGroupDef()||!e.getColGroupDef().suppressToolPanel){if(e.isPadding())i=t;else{var r=new l.ToolPanelColumnGroupComp(e,t,this.onGroupExpanded.bind(this),this.allowDragging,this.expandGroupsByDefault);this.getContext().wireBean(r),this.getGui().appendChild(r.getGui()),i=t+1,this.columnComps[e.getId()]=r}this.recursivelyAddComps(e.getChildren(),i,o)}},t.prototype.onGroupExpanded=function(){this.updateVisibilityOfRows(),this.fireExpandedEvent()},t.prototype.fireExpandedEvent=function(){var e,t=this,o=0,i=0,r=function(e){e.forEach((function(e){if(e instanceof a.OriginalColumnGroup){var n=t.columnComps[e.getId()];n&&(n.isExpanded()?o++:i++);var s=e.getChildren();r(s)}}))};r(this.columnTree),e=o>0&&i>0?u.SELECTED_STATE.INDETERMINATE:i>0?u.SELECTED_STATE.UNCHECKED:u.SELECTED_STATE.CHECKED,this.dispatchEvent({type:"groupExpanded",state:e})},t.prototype.recursivelyAddColumnComps=function(e,t,o){if(!e.getColDef()||!e.getColDef().suppressToolPanel){var i=new p.ToolPanelColumnComp(e,t,this.allowDragging,o);this.getContext().wireBean(i),this.getGui().appendChild(i.getGui()),this.columnComps[e.getId()]=i}},t.prototype.recursivelyAddComps=function(e,t,o){var i=this;e.forEach((function(e){e instanceof a.OriginalColumnGroup?i.recursivelyAddGroupComps(e,t,o):i.recursivelyAddColumnComps(e,t,o)}))},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.destroyColumnComps()},t.prototype.doSetExpandedAll=function(e){a._.iterateObject(this.columnComps,(function(t,o){o.isExpandable()&&o.setExpanded(e)}))},t.prototype.setFilterText=function(e){this.filterText=a._.exists(e)?e.toLowerCase():null,this.updateVisibilityOfRows()},t.prototype.updateVisibilityOfRows=function(){var e=a._.exists(this.filterText)?this.createFilterResults():null;this.recursivelySetVisibility(this.columnTree,!0,e)},t.prototype.createFilterResults=function(){var e=this,t={},o=function(i){var r=!1;return i.forEach((function(i){var n,s=!1;if(i instanceof a.OriginalColumnGroup){var l=i.getChildren();s=o(l)}if(s)n=!0;else{var p=e.columnComps[i.getId()];if(p&&e.filterText){var u=p.getDisplayName();n=null===u||u.toLowerCase().indexOf(e.filterText)>=0}else n=!!(i instanceof a.OriginalColumnGroup&&i.getOriginalParent())}t[i.getId()]=n,n&&(r=!0)})),r};return o(this.columnTree),t},t.prototype.recursivelySetVisibility=function(e,t,o){var i=this;e.forEach((function(e){var r=i.columnComps[e.getId()];if(r){var n=!o||o[e.getId()];r.setDisplayed(t&&n)}if(e instanceof a.OriginalColumnGroup){var s=e,l=void 0;if(r){var p=r.isExpanded();l=!!t&&p}else l=t;var u=s.getChildren();i.recursivelySetVisibility(u,l,o)}}))},t.prototype.doSetSelectedAll=function(e){if(this.columnApi.isPivotMode())a._.iterateObject(this.columnComps,(function(t,o){o.onSelectAllChanged(e)}));else{var t=this.columnApi.getPrimaryColumns();this.columnApi.setColumnsVisible(t,e)}},t.TEMPLATE='<div class="ag-primary-cols-list-panel"></div>',n([a.Autowired("gridOptionsWrapper"),s("design:type",a.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),n([a.Autowired("columnController"),s("design:type",a.ColumnController)],t.prototype,"columnController",void 0),n([a.Autowired("eventService"),s("design:type",a.EventService)],t.prototype,"globalEventService",void 0),n([a.Autowired("columnApi"),s("design:type",c.ColumnApi)],t.prototype,"columnApi",void 0),t}(a.Component);t.PrimaryColsListPanel=d},function(e,t,o){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),n=this&&this.__decorate||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},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a,l=o(1),p=o(168),u=o(169),c=o(77);!function(e){e[e.CHECKED=0]="CHECKED",e[e.UNCHECKED=1]="UNCHECKED",e[e.INTERMEDIATE=2]="INTERMEDIATE"}(a||(a={}));var d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.updateUiVisibility=function(){},t.prototype.createBodyTemplate=function(){var e=this.gridOptionsWrapper.getLocaleTextFunc();return'<div ref="ag-filter-loading" class="loading-filter ag-hidden">'+e("loadingOoo","Loading...")+'</div>\n <div>\n <div class="ag-filter-header-container" role="presentation">\n <div class="ag-input-wrapper" id="ag-mini-filter" role="presentation">\n <input ref="eMiniFilter" class="ag-filter-filter" type="text" placeholder="'+e("searchOoo","Search...")+'"/>\n </div>\n <label ref="eSelectAllContainer" class="ag-set-filter-item">\n <div ref="eSelectAll" class="ag-filter-checkbox"></div><span class="ag-filter-value">('+e("selectAll","Select All")+')</span>\n </label>\n </div>\n <div ref="eSetFilterList" class="ag-set-filter-list" role="presentation"></div>\n </div>'},t.prototype.resetUiToDefaults=function(){this.setMiniFilter(null),this.valueModel.setModel(null,!0),this.selectEverything()},t.prototype.setModelIntoUi=function(e){if(this.resetUiToDefaults(),e){var t=e instanceof Array?e:e.values;this.valueModel.setModel(t),this.updateSelectAll(),this.virtualList.refresh()}},t.prototype.getModelFromUi=function(){var e=this.valueModel.getModel();return e?this.gridOptionsWrapper.isEnableOldSetFilterModel()?e:{values:e,filterType:"set"}:null},t.prototype.areModelsEqual=function(e,t){return!1},t.prototype.setParams=function(t){e.prototype.setParams.call(this,t),this.setFilterParams=t,this.eCheckedIcon=l._.createIconNoSpan("checkboxChecked",this.gridOptionsWrapper,this.setFilterParams.column),this.eUncheckedIcon=l._.createIconNoSpan("checkboxUnchecked",this.gridOptionsWrapper,this.setFilterParams.column),this.eIndeterminateCheckedIcon=l._.createIconNoSpan("checkboxIndeterminate",this.gridOptionsWrapper,this.setFilterParams.column),this.initialiseFilterBodyUi(),t.syncValuesLikeExcel&&this.rowModel.getType()===l.Constants.ROW_MODEL_TYPE_CLIENT_SIDE&&!t.values&&this.setupSyncValuesLikeExcel()},t.prototype.resetFilterValuesAndReapplyModel=function(){var e=this.getModel();this.resetFilterValues(),e&&this.setModel(e)},t.prototype.setupSyncValuesLikeExcel=function(){var e=this,t=this.setFilterParams.column;this.addDestroyableEventListener(this.eventService,l.Events.EVENT_ROW_DATA_UPDATED,(function(){e.resetFilterValuesAndReapplyModel()})),this.addDestroyableEventListener(this.eventService,l.Events.EVENT_CELL_VALUE_CHANGED,(function(o){o.column===t&&e.resetFilterValuesAndReapplyModel()}))},t.prototype.updateCheckboxIcon=function(){var e;switch(l._.clearElement(this.eSelectAll),this.selectAllState){case a.INTERMEDIATE:e=this.eIndeterminateCheckedIcon;break;case a.CHECKED:e=this.eCheckedIcon;break;case a.UNCHECKED:e=this.eUncheckedIcon;break;default:e=this.eCheckedIcon}this.eSelectAll.appendChild(e)},t.prototype.setLoading=function(e){l._.setDisplayed(this.eFilterLoading,e)},t.prototype.initialiseFilterBodyUi=function(){var e=this;this.virtualList=new c.VirtualList,this.getContext().wireBean(this.virtualList);var t=this.getRefElement("eSetFilterList");t&&t.appendChild(this.virtualList.getGui()),l._.exists(this.setFilterParams.cellHeight)&&this.virtualList.setRowHeight(this.setFilterParams.cellHeight),this.virtualList.setComponentCreator(this.createSetListItem.bind(this)),this.valueModel=new p.SetValueModel(this.setFilterParams.colDef,this.setFilterParams.rowModel,this.setFilterParams.valueGetter,this.setFilterParams.doesRowPassOtherFilter,this.setFilterParams.suppressSorting,(function(t,o){return e.setFilterValues(t,!o,!!o,o)}),this.setLoading.bind(this),this.valueFormatterService,this.setFilterParams.column),this.virtualList.setModel(new h(this.valueModel)),l._.setDisplayed(this.getGui().querySelector("#ag-mini-filter"),!this.setFilterParams.suppressMiniFilter),this.eMiniFilter.value=this.valueModel.getMiniFilter(),this.addDestroyableEventListener(this.eMiniFilter,"input",this.onMiniFilterInput.bind(this)),this.addDestroyableEventListener(this.eMiniFilter,"keypress",this.onMiniFilterKeyPress.bind(this)),this.updateCheckboxIcon(),this.addDestroyableEventListener(this.eSelectAllContainer,"click",this.onSelectAll.bind(this)),this.updateSelectAll(),this.setFilterParams.suppressSelectAll&&l._.setDisplayed(this.eSelectAllContainer,!1),this.virtualList.refresh()},t.prototype.createSetListItem=function(e){var t=this,o=new u.SetFilterListItem(e,this.setFilterParams.column);return this.getContext().wireBean(o),o.setSelected(this.valueModel.isValueSelected(e)),o.addEventListener(u.SetFilterListItem.EVENT_SELECTED,(function(){t.onItemSelected(e,o.isSelected())})),o},t.prototype.afterGuiAttached=function(e){this.virtualList.refresh(),this.eMiniFilter.focus()},t.prototype.applyModel=function(){var t=this,o=e.prototype.applyModel.call(this),i=this.getModel();return i?(this.appliedModelValuesMapped={},i.values.forEach((function(e){return t.appliedModelValuesMapped[e]=!0}))):this.appliedModelValuesMapped=void 0,o},t.prototype.doesFilterPass=function(e){if(!this.appliedModelValuesMapped)return!0;var t=this.setFilterParams.valueGetter(e.node);if(this.setFilterParams.colDef.keyCreator&&(t=this.setFilterParams.colDef.keyCreator({value:t})),t=l._.makeNull(t),Array.isArray(t)){for(var o=0;o<t.length;o++){if(!!this.appliedModelValuesMapped[t[o]])return!0}return!1}return!!this.appliedModelValuesMapped[t]},t.prototype.onNewRowsLoaded=function(){var e=this.valueModel.getValuesType(),t=e===p.SetFilterModelValuesType.PROVIDED_CB||e===p.SetFilterModelValuesType.PROVIDED_LIST,o=this.isNewRowsActionKeep();if(!o||!t){var i=!this.getModel();this.valueModel.refreshAfterNewRowsLoaded(o,i),this.updateSelectAll(),this.virtualList.refresh(),this.applyModel()}},t.prototype.setFilterValues=function(e,t,o,i){var r=this;void 0===t&&(t=!1),void 0===o&&(o=!0),this.valueModel.onFilterValuesReady((function(){var n=r.setFilterParams&&"keep"===r.setFilterParams.newRowsAction;r.valueModel.setValuesType(p.SetFilterModelValuesType.PROVIDED_LIST),r.valueModel.refreshValues(e,n,t),r.updateSelectAll(),(i||e).forEach((function(e){return r.valueModel.selectValue(e)})),r.virtualList.refresh(),o&&r.onUiChanged()}))},t.prototype.resetFilterValues=function(){this.valueModel.setValuesType(p.SetFilterModelValuesType.NOT_PROVIDED),this.onNewRowsLoaded()},t.prototype.onAnyFilterChanged=function(){this.valueModel.refreshAfterAnyFilterChanged(),this.virtualList.refresh()},t.prototype.updateSelectAll=function(){this.valueModel.isEverythingSelected()?this.selectAllState=a.CHECKED:this.valueModel.isNothingSelected()?this.selectAllState=a.UNCHECKED:this.selectAllState=a.INTERMEDIATE,this.updateCheckboxIcon()},t.prototype.onMiniFilterKeyPress=function(e){l._.isKeyPressed(e,l.Constants.KEY_ENTER)&&this.onEnterKeyOnMiniFilter()},t.prototype.onEnterKeyOnMiniFilter=function(){this.valueModel.selectAllFromMiniFilter(),this.virtualList.refresh(),this.updateSelectAll(),this.onUiChanged()},t.prototype.onMiniFilterInput=function(){this.valueModel.setMiniFilter(this.eMiniFilter.value)&&this.virtualList.refresh(),this.updateSelectAll()},t.prototype.onSelectAll=function(e){e.preventDefault(),l._.addAgGridEventPath(e),this.selectAllState===a.CHECKED?this.selectAllState=a.UNCHECKED:this.selectAllState=a.CHECKED,this.doSelectAll()},t.prototype.doSelectAll=function(){this.selectAllState===a.CHECKED?this.valueModel.selectAllUsingMiniFilter():this.valueModel.selectNothingUsingMiniFilter(),this.virtualList.refresh(),this.onUiChanged(),this.updateSelectAll()},t.prototype.onItemSelected=function(e,t){t?this.valueModel.selectValue(e):this.valueModel.unselectValue(e),this.updateSelectAll(),this.onUiChanged()},t.prototype.setMiniFilter=function(e){this.valueModel.setMiniFilter(e),this.eMiniFilter.value=this.valueModel.getMiniFilter()},t.prototype.getMiniFilter=function(){return this.valueModel.getMiniFilter()},t.prototype.selectEverything=function(){this.valueModel.selectAllUsingMiniFilter(),this.updateSelectAll(),this.virtualList.refresh()},t.prototype.selectNothing=function(){this.valueModel.selectNothingUsingMiniFilter(),this.updateSelectAll(),this.virtualList.refresh()},t.prototype.unselectValue=function(e){this.valueModel.unselectValue(e),this.updateSelectAll(),this.virtualList.refresh()},t.prototype.selectValue=function(e){this.valueModel.selectValue(e),this.updateSelectAll(),this.virtualList.refresh()},t.prototype.isValueSelected=function(e){return this.valueModel.isValueSelected(e)},t.prototype.isEverythingSelected=function(){return this.valueModel.isEverythingSelected()},t.prototype.isNothingSelected=function(){return this.valueModel.isNothingSelected()},t.prototype.getUniqueValueCount=function(){return this.valueModel.getUniqueValueCount()},t.prototype.getUniqueValue=function(e){return this.valueModel.getUniqueValue(e)},n([l.RefSelector("eSelectAll"),s("design:type",HTMLInputElement)],t.prototype,"eSelectAll",void 0),n([l.RefSelector("eSelectAllContainer"),s("design:type",HTMLElement)],t.prototype,"eSelectAllContainer",void 0),n([l.RefSelector("eMiniFilter"),s("design:type",HTMLInputElement)],t.prototype,"eMiniFilter",void 0),n([l.RefSelector("ag-filter-loading"),s("design:type",HTMLInputElement)],t.prototype,"eFilterLoading",void 0),n([l.Autowired("valueFormatterService"),s("design:type",l.ValueFormatterService)],t.prototype,"valueFormatterService",void 0),n([l.Autowired("eventService"),s("design:type",l.EventService)],t.prototype,"eventService",void 0),t}(l.ProvidedFilter);t.SetFilter=d;var h=function(){function e(e){this.model=e}return e.prototype.getRowCount=function(){return this.model.getDisplayedValueCount()},e.prototype.getRow=function(e){return this.model.getDisplayedValue(e)},e}()},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r=o(1);!function(e){e[e.PROVIDED_LIST=0]="PROVIDED_LIST",e[e.PROVIDED_CB=1]="PROVIDED_CB",e[e.NOT_PROVIDED=2]="NOT_PROVIDED"}(i=t.SetFilterModelValuesType||(t.SetFilterModelValuesType={}));var n=function(){function e(e,t,o,n,s,a,l,p,u){this.suppressSorting=s,this.colDef=e,this.valueGetter=o,this.doesRowPassOtherFilters=n,this.modelUpdatedFunc=a,this.isLoadingFunc=l,this.valueFormatterService=p,this.column=u,t.getType()===r.Constants.ROW_MODEL_TYPE_CLIENT_SIDE&&(this.clientSideRowModel=t),this.filterParams=this.colDef.filterParams?this.colDef.filterParams:{},r._.exists(this.filterParams)&&r._.exists(this.filterParams.values)?(this.valuesType=Array.isArray(this.filterParams.values)?i.PROVIDED_LIST:i.PROVIDED_CB,this.showingAvailableOnly=!0!==this.filterParams.suppressRemoveEntries):(this.valuesType=i.NOT_PROVIDED,this.showingAvailableOnly=!0),this.createAllUniqueValues(),this.createAvailableUniqueValues(),this.displayedValues=this.availableUniqueValues,this.miniFilter=null,this.selectedValuesMap={},this.selectAllUsingMiniFilter(),this.formatter=this.filterParams.textFormatter?this.filterParams.textFormatter:r.TextFilter.DEFAULT_FORMATTER}return e.prototype.refreshAfterNewRowsLoaded=function(e,t){this.createAllUniqueValues(),this.refreshSelection(e,t)},e.prototype.refreshValues=function(e,t,o){this.setValues(e),this.refreshSelection(t,o)},e.prototype.refreshSelection=function(e,t){this.createAvailableUniqueValues();var o=Object.keys(this.selectedValuesMap);this.selectedValuesMap={},this.processMiniFilter(),e?this.setModel(o,t):this.selectAllUsingMiniFilter()},e.prototype.refreshAfterAnyFilterChanged=function(){this.showingAvailableOnly&&(this.createAvailableUniqueValues(),this.processMiniFilter())},e.prototype.createAllUniqueValues=function(){if(this.areValuesSync()){var e=this.extractSyncValuesToUse();this.setValues(e),this.filterValuesPromise=r.Promise.resolve([])}else{this.filterValuesExternalPromise=r.Promise.external(),this.filterValuesPromise=this.filterValuesExternalPromise.promise,this.isLoadingFunc(!0),this.setValues([]);var t=this.filterParams.values,o={success:this.onAsyncValuesLoaded.bind(this),colDef:this.colDef};window.setTimeout((function(){return t(o)}),0)}},e.prototype.onAsyncValuesLoaded=function(e){this.modelUpdatedFunc(e),this.isLoadingFunc(!1),this.filterValuesExternalPromise.resolve(e)},e.prototype.areValuesSync=function(){return this.valuesType==i.PROVIDED_LIST||this.valuesType==i.NOT_PROVIDED},e.prototype.setValuesType=function(e){this.valuesType=e},e.prototype.getValuesType=function(){return this.valuesType},e.prototype.setValues=function(e){this.allUniqueValues=e,this.suppressSorting||this.sortValues(this.allUniqueValues)},e.prototype.extractSyncValuesToUse=function(){var e;if(this.valuesType==i.PROVIDED_LIST)e=Array.isArray(this.filterParams.values)?r._.toStrings(this.filterParams.values):this.allUniqueValues;else{if(this.valuesType==i.PROVIDED_CB)throw Error("ag-grid: Error extracting values to use. We should not extract the values synchronously when using a callback for the filterParams.values");var t=this.getUniqueValues(!1);e=r._.toStrings(t)}return e},e.prototype.createAvailableUniqueValues=function(){if(!this.showingAvailableOnly||this.valuesType==i.PROVIDED_LIST||this.valuesType==i.PROVIDED_CB)this.availableUniqueValues=this.allUniqueValues;else{var e=this.getUniqueValues(!0);this.availableUniqueValues=r._.toStrings(e),this.sortValues(this.availableUniqueValues)}},e.prototype.sortValues=function(e){this.filterParams&&this.filterParams.comparator?e.sort(this.filterParams.comparator):this.colDef.comparator?e.sort(this.colDef.comparator):e.sort(r._.defaultComparator)},e.prototype.getUniqueValues=function(e){var t=this,o={},i=[];if(!this.clientSideRowModel)return console.error("ag-Grid: Set Filter cannot initialise because you are using a row model that does not contain all rows in the browser. Either use a different filter type, or configure Set Filter such that you provide it with values"),[];function r(e){o.hasOwnProperty(e)||(i.push(e),o[e]=1)}return this.clientSideRowModel.forEachLeafNode((function(o){if(o.data){var i=t.valueGetter(o);if(t.colDef.keyCreator&&(i=t.colDef.keyCreator({value:i})),""!==i&&void 0!==i||(i=null),!e||t.doesRowPassOtherFilters(o))if(null!=i&&Array.isArray(i))for(var n=0;n<i.length;n++)r(i[n]);else r(i)}})),i},e.prototype.setMiniFilter=function(e){return e=r._.makeNull(e),this.miniFilter!==e&&(this.miniFilter=e,this.processMiniFilter(),!0)},e.prototype.getMiniFilter=function(){return this.miniFilter},e.prototype.processMiniFilter=function(){if(null!==this.miniFilter){this.displayedValues=[];for(var e=this.formatter(this.miniFilter).toUpperCase(),t=function(t){return null!=t&&t.toUpperCase().indexOf(e)>=0},o=0,i=this.availableUniqueValues.length;o<i;o++){var r=this.availableUniqueValues[o];if(r){var n=this.formatter(r.toString()),s=this.valueFormatterService.formatValue(this.column,null,null,n);(t(n)||t(s))&&this.displayedValues.push(r)}}}else this.displayedValues=this.availableUniqueValues},e.prototype.getDisplayedValueCount=function(){return this.displayedValues.length},e.prototype.getDisplayedValue=function(e){return this.displayedValues[e]},e.prototype.selectAllUsingMiniFilter=function(){this.filterParams.selectAllOnMiniFilter&&this.miniFilter?this.selectOn(this.displayedValues):this.selectOn(this.allUniqueValues)},e.prototype.selectOn=function(e){for(var t=e.length,o=0;o<t;o++){var i=e[o],r=this.valueToKey(i);this.selectedValuesMap[r]=null}this.selectedValuesCount=Object.keys(this.selectedValuesMap).length},e.prototype.valueToKey=function(e){return null===e?"___NULL___":e},e.prototype.keyToValue=function(e){return"___NULL___"===e?null:e},e.prototype.isFilterActive=function(){return this.allUniqueValues.length!==this.selectedValuesCount},e.prototype.selectNothingUsingMiniFilter=function(){var e=this;this.filterParams.selectAllOnMiniFilter&&this.miniFilter?this.displayedValues.forEach((function(t){return e.unselectValue(t)})):this.selectNothing()},e.prototype.selectNothing=function(){this.selectedValuesMap={},this.selectedValuesCount=0},e.prototype.getUniqueValueCount=function(){return this.allUniqueValues.length},e.prototype.getUniqueValue=function(e){return this.allUniqueValues[e]},e.prototype.unselectValue=function(e){var t=this.valueToKey(e);void 0!==this.selectedValuesMap[t]&&(delete this.selectedValuesMap[t],this.selectedValuesCount--)},e.prototype.selectAllFromMiniFilter=function(){this.selectNothing(),this.selectAllUsingMiniFilter()},e.prototype.selectValue=function(e){var t=this.valueToKey(e);void 0===this.selectedValuesMap[t]&&(this.selectedValuesMap[t]=null,this.selectedValuesCount++)},e.prototype.isValueSelected=function(e){var t=this.valueToKey(e);return void 0!==this.selectedValuesMap[t]},e.prototype.isEverythingSelected=function(){var e=this;return this.filterParams.selectAllOnMiniFilter&&this.miniFilter?this.displayedValues.filter((function(t){return e.isValueSelected(t)})).length===this.displayedValues.length:this.allUniqueValues.length===this.selectedValuesCount},e.prototype.isNothingSelected=function(){var e=this;return this.filterParams.selectAllOnMiniFilter&&this.miniFilter?0===this.displayedValues.filter((function(t){return e.isValueSelected(t)})).length:0===this.selectedValuesCount},e.prototype.getModel=function(){var e=this;if(!this.isFilterActive())return null;var t=[];return r._.iterateObject(this.selectedValuesMap,(function(o){var i=e.keyToValue(o);t.push(i)})),t},e.prototype.setModel=function(e,t){var o=this;void 0===t&&(t=!1),this.areValuesSync()?this.setSyncModel(e,t):this.filterValuesExternalPromise.promise.then((function(i){o.setSyncModel(e,t),o.modelUpdatedFunc(i,e)}))},e.prototype.setSyncModel=function(e,t){if(void 0===t&&(t=!1),e&&!t){this.selectNothingUsingMiniFilter();for(var o=0;o<e.length;o++){var i=e[o],r=this.keyToValue(i);this.allUniqueValues.indexOf(r)>=0&&this.selectValue(r)}}else this.selectAllUsingMiniFilter()},e.prototype.onFilterValuesReady=function(e){this.filterValuesPromise.firstOneOnly(e)},e}();t.SetValueModel=n},function(e,t,o){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),n=this&&this.__decorate||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},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(1),l=function(e){function t(o,i){var r=e.call(this,t.TEMPLATE)||this;return r.selected=!0,r.value=o,r.column=i,r}return r(t,e),t.prototype.useCellRenderer=function(e,t,o){var i=this.userComponentFactory.newCellRenderer(e.filterParams,o);if(null!=i)a._.bindCellRendererToHtmlElement(i,t);else if(null==o.valueFormatted&&null==o.value){var r=this.gridOptionsWrapper.getLocaleTextFunc();t.innerText="("+r("blanks","Blanks")+")"}else t.innerText=null!=o.valueFormatted?o.valueFormatted:o.value;return i},t.prototype.init=function(){var e=this;this.eCheckedIcon=a._.createIconNoSpan("checkboxChecked",this.gridOptionsWrapper,this.column),this.eUncheckedIcon=a._.createIconNoSpan("checkboxUnchecked",this.gridOptionsWrapper,this.column),this.eCheckbox=this.queryForHtmlElement(".ag-filter-checkbox"),this.eClickableArea=this.getGui(),this.updateCheckboxIcon(),this.render();this.addDestroyableEventListener(this.eClickableArea,"click",(function(o){o.preventDefault(),a._.addAgGridEventPath(o),e.selected=!e.selected,e.updateCheckboxIcon();var i={type:t.EVENT_SELECTED};return e.dispatchEvent(i)}))},t.prototype.isSelected=function(){return this.selected},t.prototype.setSelected=function(e){this.selected=e,this.updateCheckboxIcon()},t.prototype.updateCheckboxIcon=function(){a._.clearElement(this.eCheckbox),this.isSelected()?this.eCheckbox.appendChild(this.eCheckedIcon):this.eCheckbox.appendChild(this.eUncheckedIcon)},t.prototype.render=function(){var e=this,t=this.queryForHtmlElement(".ag-filter-value"),o=this.valueFormatterService.formatValue(this.column,null,null,this.value),i=this.column.getColDef(),r={value:this.value,valueFormatted:o,api:this.gridOptionsWrapper.getApi()},n=this.useCellRenderer(i,t,r);n&&n.then((function(t){t&&t.destroy&&e.addDestroyFunc(t.destroy.bind(t))}))},t.EVENT_SELECTED="selected",t.TEMPLATE='<label class="ag-set-filter-item">\n <div class="ag-filter-checkbox"></div>\n <span class="ag-filter-value"></span>\n </label>',n([a.Autowired("gridOptionsWrapper"),s("design:type",a.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),n([a.Autowired("valueFormatterService"),s("design:type",a.ValueFormatterService)],t.prototype,"valueFormatterService",void 0),n([a.Autowired("userComponentFactory"),s("design:type",a.UserComponentFactory)],t.prototype,"userComponentFactory",void 0),n([a.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"init",null),t}(a.Component);t.SetFilterListItem=l},function(e,t,o){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),n=this&&this.__decorate||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},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(1),l=o(171),p=o(77),u=function(e){function t(){var o=e.call(this,t.TEMPLATE)||this;return o.selectionConfirmed=!1,o.searchString="",o}return r(t,e),t.prototype.init=function(e){if(this.params=e,this.selectedValue=e.value,this.originalSelectedValue=e.value,this.focusAfterAttached=e.cellStartedEdit,this.eValue.appendChild(a._.createIconNoSpan("smallDown",this.gridOptionsWrapper)),this.virtualList=new p.VirtualList,this.getContext().wireBean(this.virtualList),this.virtualList.setComponentCreator(this.createRowComponent.bind(this)),this.eList.appendChild(this.virtualList.getGui()),a._.exists(this.params.cellHeight)&&this.virtualList.setRowHeight(this.params.cellHeight),this.renderSelectedValue(),a._.missing(e.values))console.warn("ag-Grid: richSelectCellEditor requires values for it to work");else{var t=e.values;this.virtualList.setModel({getRowCount:function(){return t.length},getRow:function(e){return t[e]}}),this.addGuiEventListener("keydown",this.onKeyDown.bind(this));var o=this.virtualList.getGui();this.addDestroyableEventListener(o,"click",this.onClick.bind(this)),this.addDestroyableEventListener(o,"mousemove",this.onMouseMove.bind(this)),this.clearSearchString=a._.debounce(this.clearSearchString,300),a._.exists(e.charPress)&&this.searchText(e.charPress)}},t.prototype.onKeyDown=function(e){var t=e.which||e.keyCode;switch(t){case a.Constants.KEY_ENTER:this.onEnterKeyDown();break;case a.Constants.KEY_DOWN:case a.Constants.KEY_UP:this.onNavigationKeyPressed(e,t);break;default:this.searchText(e)}},t.prototype.onEnterKeyDown=function(){this.selectionConfirmed=!0,this.params.stopEditing()},t.prototype.onNavigationKeyPressed=function(e,t){e.stopPropagation();var o=this.params.values.indexOf(this.selectedValue),i=t===a.Constants.KEY_UP?o-1:o+1;if(i>=0&&i<this.params.values.length){var r=this.params.values[i];this.setSelectedValue(r)}},t.prototype.searchText=function(e){if("string"!=typeof e){if(!a._.isCharacterKey(e))return;e=e.key}this.searchString+=e,this.runSearch(),this.clearSearchString()},t.prototype.runSearch=function(){var e=a._.fuzzySuggestions(this.searchString,this.params.values,!0,!0);e.length&&this.setSelectedValue(e[0])},t.prototype.clearSearchString=function(){this.searchString=""},t.prototype.renderSelectedValue=function(){var e=this,t=this.params.formatValue(this.selectedValue),o=this.eValue,i={value:this.selectedValue,valueFormatted:t,api:this.gridOptionsWrapper.getApi()},r=this.userComponentFactory.newCellRenderer(this.params,i);null!=r?a._.bindCellRendererToHtmlElement(r,o):o.innerText=null!=i.valueFormatted?i.valueFormatted:i.value,r?r.then((function(t){t&&t.destroy&&e.addDestroyFunc((function(){return t.destroy()}))})):a._.exists(this.selectedValue)?o.innerHTML=t:a._.clearElement(o)},t.prototype.setSelectedValue=function(e){if(this.selectedValue!==e){var t=this.params.values.indexOf(e);t>=0&&(this.selectedValue=e,this.virtualList.ensureIndexVisible(t),this.virtualList.refresh())}},t.prototype.createRowComponent=function(e){var t=this.params.formatValue(e),o=new l.RichSelectRow(this.params);return this.getContext().wireBean(o),o.setState(e,t,e===this.selectedValue),o},t.prototype.onMouseMove=function(e){var t=this.virtualList.getGui().getBoundingClientRect(),o=this.virtualList.getScrollTop(),i=e.clientY-t.top+o,r=Math.floor(i/this.virtualList.getRowHeight()),n=this.params.values[r];void 0!==n&&this.setSelectedValue(n)},t.prototype.onClick=function(){this.selectionConfirmed=!0,this.params.stopEditing()},t.prototype.afterGuiAttached=function(){var e=this.params.values.indexOf(this.selectedValue);this.virtualList.refresh(),e>=0&&this.virtualList.ensureIndexVisible(e),this.virtualList.refresh(),this.focusAfterAttached&&this.getGui().focus()},t.prototype.getValue=function(){return this.selectionConfirmed?this.selectedValue:this.originalSelectedValue},t.TEMPLATE='<div class="ag-rich-select" tabindex="0">\n <div ref="eValue" class="ag-rich-select-value"></div>\n <div ref="eList" class="ag-rich-select-list"></div>\n </div>',n([a.Autowired("userComponentFactory"),s("design:type",a.UserComponentFactory)],t.prototype,"userComponentFactory",void 0),n([a.Autowired("gridOptionsWrapper"),s("design:type",a.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),n([a.RefSelector("eValue"),s("design:type",HTMLElement)],t.prototype,"eValue",void 0),n([a.RefSelector("eList"),s("design:type",HTMLElement)],t.prototype,"eList",void 0),t}(a.PopupComponent);t.RichSelectCellEditor=u},function(e,t,o){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),n=this&&this.__decorate||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},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(1),l=function(e){function t(t){var o=e.call(this,'<div class="ag-rich-select-row"></div>')||this;return o.params=t,o}return r(t,e),t.prototype.setState=function(e,t,o){this.populateWithRenderer(e,t)||this.populateWithoutRenderer(e,t),a._.addOrRemoveCssClass(this.getGui(),"ag-rich-select-row-selected",o)},t.prototype.populateWithoutRenderer=function(e,t){var o=null!=t?t:e;a._.exists(o)&&""!==o?this.getGui().textContent=o.toString():this.getGui().innerHTML="&nbsp;"},t.prototype.populateWithRenderer=function(e,t){var o=this,i={value:e,valueFormatted:t,api:this.gridOptionsWrapper.getApi()},r=this.userComponentFactory.newCellRenderer(this.params,i);return null!=r?a._.bindCellRendererToHtmlElement(r,this.getGui()):this.getGui().innerText=null!=i.valueFormatted?i.valueFormatted:i.value,!!r&&(r.then((function(e){e&&e.destroy&&o.addDestroyFunc(e.destroy.bind(e))})),!0)},n([a.Autowired("userComponentFactory"),s("design:type",a.UserComponentFactory)],t.prototype,"userComponentFactory",void 0),n([a.Autowired("gridOptionsWrapper"),s("design:type",a.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),t}(a.Component);t.RichSelectRow=l},function(e,t,o){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),n=this&&this.__decorate||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},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(1),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.createTemplate=function(){return'<div class="ag-pivot-mode-panel">\n <ag-checkbox ref="cbPivotMode" class="ag-pivot-mode-select"></ag-checkbox>\n </div>'},t.prototype.init=function(){this.setTemplate(this.createTemplate()),this.cbPivotMode.setValue(this.columnController.isPivotMode());var e=this.gridOptionsWrapper.getLocaleTextFunc();this.cbPivotMode.setLabel(e("pivotMode","Pivot Mode")),this.addDestroyableEventListener(this.cbPivotMode,a.AgCheckbox.EVENT_CHANGED,this.onBtPivotMode.bind(this)),this.addDestroyableEventListener(this.eventService,a.Events.EVENT_COLUMN_EVERYTHING_CHANGED,this.onPivotModeChanged.bind(this)),this.addDestroyableEventListener(this.eventService,a.Events.EVENT_COLUMN_PIVOT_MODE_CHANGED,this.onPivotModeChanged.bind(this))},t.prototype.onBtPivotMode=function(){var e=this.cbPivotMode.getValue();if(e!==this.columnController.isPivotMode()){this.columnController.setPivotMode(e,"toolPanelUi");var t=this.gridOptionsWrapper.getApi();t&&t.refreshHeader()}},t.prototype.onPivotModeChanged=function(){var e=this.columnController.isPivotMode();this.cbPivotMode.setValue(e)},n([a.Autowired("columnController"),s("design:type",a.ColumnController)],t.prototype,"columnController",void 0),n([a.Autowired("eventService"),s("design:type",a.EventService)],t.prototype,"eventService",void 0),n([a.Autowired("gridOptionsWrapper"),s("design:type",a.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),n([a.RefSelector("cbPivotMode"),s("design:type",a.AgCheckbox)],t.prototype,"cbPivotMode",void 0),n([a.PreConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"init",null),t}(a.Component);t.PivotModePanel=l},function(e,t,o){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),n=this&&this.__decorate||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},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(1),l=o(40),p=o(77),u=function(e){function t(t,o,i,r){var n=e.call(this)||this;return n.popupShowing=!1,n.valueColumn=r,n.column=t,n.dragSourceDropTarget=o,n.ghost=i,n}return r(t,e),t.prototype.init=function(){this.setTemplate(t.TEMPLATE),this.eDragHandle.appendChild(a._.createIconNoSpan("columnDrag",this.gridOptionsWrapper)),this.btRemove.appendChild(a._.createIconNoSpan("cancel",this.gridOptionsWrapper)),this.displayName=this.columnController.getDisplayNameForColumn(this.column,"columnDrop"),this.setupComponents(),this.ghost||this.gridOptionsWrapper.isFunctionsReadOnly()||this.addDragSource()},t.prototype.addDragSource=function(){var e=this,t={type:a.DragSourceType.ToolPanel,eElement:this.eDragHandle,dragItemCallback:function(){return e.createDragItem()},dragItemName:this.displayName,dragSourceDropTarget:this.dragSourceDropTarget};this.dragAndDropService.addDragSource(t,!0),this.addDestroyFunc((function(){return e.dragAndDropService.removeDragSource(t)}))},t.prototype.createDragItem=function(){var e={};return e[this.column.getId()]=this.column.isVisible(),{columns:[this.column],visibleState:e}},t.prototype.setupComponents=function(){this.setTextValue(),this.setupRemove(),this.ghost&&a._.addCssClass(this.getGui(),"ag-column-drop-cell-ghost"),this.valueColumn&&!this.gridOptionsWrapper.isFunctionsReadOnly()&&this.addGuiEventListener("click",this.onShowAggFuncSelection.bind(this))},t.prototype.setupRemove=function(){var e=this;a._.setDisplayed(this.btRemove,!this.gridOptionsWrapper.isFunctionsReadOnly()),this.addDestroyableEventListener(this.btRemove,"click",(function(o){var i={type:t.EVENT_COLUMN_REMOVE};e.dispatchEvent(i),o.stopPropagation()}));var o=new a.TouchListener(this.btRemove);this.addDestroyableEventListener(o,a.TouchListener.EVENT_TAP,(function(o){var i={type:t.EVENT_COLUMN_REMOVE};e.dispatchEvent(i)})),this.addDestroyFunc(o.destroy.bind(o))},t.prototype.setTextValue=function(){var e;if(this.valueColumn){var t=this.column.getAggFunc(),o="string"==typeof t?t:"agg";e=this.gridOptionsWrapper.getLocaleTextFunc()(o,o)+"("+this.displayName+")"}else e=this.displayName;var i=a._.escape(e);this.eText.innerHTML=i},t.prototype.onShowAggFuncSelection=function(){var e=this;if(!this.popupShowing){this.popupShowing=!0;var t=new p.VirtualList,o=this.aggFuncService.getFuncNames(this.column);t.setModel({getRow:function(e){return o[e]},getRowCount:function(){return o.length}}),this.getContext().wireBean(t);var i=a._.loadTemplate('<div class="ag-select-agg-func-popup"></div>');i.style.top="0px",i.style.left="0px",i.appendChild(t.getGui()),i.style.width=this.getGui().clientWidth+"px";var r=this.popupService.addAsModalPopup(i,!0,(function(){t.destroy(),e.popupShowing=!1}));t.setComponentCreator(this.createAggSelect.bind(this,r)),this.popupService.positionPopupUnderComponent({type:"aggFuncSelect",eventSource:this.getGui(),ePopup:i,keepWithinBounds:!0,column:this.column}),t.refresh()}},t.prototype.createAggSelect=function(e,t){var o=this,i=this.gridOptionsWrapper.getLocaleTextFunc(),r=t.toString(),n=i(r,r);return new c((function(){if(e(),o.gridOptionsWrapper.isFunctionsPassive()){var i={type:a.Events.EVENT_COLUMN_AGG_FUNC_CHANGE_REQUEST,columns:[o.column],aggFunc:t,api:o.gridApi,columnApi:o.columnApi};o.eventService.dispatchEvent(i)}else o.columnController.setColumnAggFunc(o.column,t,"toolPanelDragAndDrop")}),n)},t.EVENT_COLUMN_REMOVE="columnRemove",t.TEMPLATE='<span class="ag-column-drop-cell">\n <span ref="eDragHandle" class="ag-column-drag"></span>\n <span ref="eText" class="ag-column-drop-cell-text"></span>\n <span ref="btRemove" class="ag-column-drop-cell-button"></span>\n </span>',n([a.Autowired("dragAndDropService"),s("design:type",a.DragAndDropService)],t.prototype,"dragAndDropService",void 0),n([a.Autowired("columnController"),s("design:type",a.ColumnController)],t.prototype,"columnController",void 0),n([a.Autowired("popupService"),s("design:type",a.PopupService)],t.prototype,"popupService",void 0),n([a.Autowired("aggFuncService"),s("design:type",l.AggFuncService)],t.prototype,"aggFuncService",void 0),n([a.Autowired("gridOptionsWrapper"),s("design:type",a.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),n([a.Autowired("eventService"),s("design:type",a.EventService)],t.prototype,"eventService",void 0),n([a.Autowired("columnApi"),s("design:type",a.ColumnApi)],t.prototype,"columnApi",void 0),n([a.Autowired("gridApi"),s("design:type",a.GridApi)],t.prototype,"gridApi",void 0),n([a.RefSelector("eText"),s("design:type",HTMLElement)],t.prototype,"eText",void 0),n([a.RefSelector("eDragHandle"),s("design:type",HTMLElement)],t.prototype,"eDragHandle",void 0),n([a.RefSelector("btRemove"),s("design:type",HTMLElement)],t.prototype,"btRemove",void 0),n([a.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"init",null),t}(a.Component);t.DropZoneColumnComp=u;var c=function(e){function t(t,o){var i=e.call(this,'<div class="ag-select-agg-func-item"/>')||this;return i.getGui().innerText=o,i.value=o,i.addGuiEventListener("click",t),i}return r(t,e),t}(a.Component)},function(e,t,o){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),n=this&&this.__decorate||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},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(1),l=function(e){function t(t){return e.call(this,t,!0,"values")||this}return r(t,e),t.prototype.passBeansUp=function(){e.prototype.setBeans.call(this,{gridOptionsWrapper:this.gridOptionsWrapper,eventService:this.eventService,context:this.getContext(),loggerFactory:this.loggerFactory,dragAndDropService:this.dragAndDropService});var t=this.gridOptionsWrapper.getLocaleTextFunc(),o=t("valueColumnsEmptyMessage","Drag here to aggregate"),i=t("values","Values");e.prototype.init.call(this,{dragAndDropIcon:a.DragAndDropService.ICON_AGGREGATE,icon:a._.createIconNoSpan("valuePanel",this.gridOptionsWrapper,null),emptyMessage:o,title:i}),this.addDestroyableEventListener(this.eventService,a.Events.EVENT_COLUMN_VALUE_CHANGED,this.refreshGui.bind(this))},t.prototype.getIconName=function(){return this.isPotentialDndColumns()?a.DragAndDropService.ICON_AGGREGATE:a.DragAndDropService.ICON_NOT_ALLOWED},t.prototype.isColumnDroppable=function(e){if(this.gridOptionsWrapper.isFunctionsReadOnly())return!1;if(!e.isPrimary())return!1;var t=e.isAllowValue(),o=!e.isValueActive();return t&&o},t.prototype.updateColumns=function(e){if(this.gridOptionsWrapper.isFunctionsPassive()){var t={type:a.Events.EVENT_COLUMN_VALUE_CHANGE_REQUEST,columns:e,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(t)}else this.columnController.setValueColumns(e,"toolPanelUi")},t.prototype.getExistingColumns=function(){return this.columnController.getValueColumns()},n([a.Autowired("columnController"),s("design:type",a.ColumnController)],t.prototype,"columnController",void 0),n([a.Autowired("eventService"),s("design:type",a.EventService)],t.prototype,"eventService",void 0),n([a.Autowired("gridOptionsWrapper"),s("design:type",a.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),n([a.Autowired("loggerFactory"),s("design:type",a.LoggerFactory)],t.prototype,"loggerFactory",void 0),n([a.Autowired("dragAndDropService"),s("design:type",a.DragAndDropService)],t.prototype,"dragAndDropService",void 0),n([a.Autowired("columnApi"),s("design:type",a.ColumnApi)],t.prototype,"columnApi",void 0),n([a.Autowired("gridApi"),s("design:type",a.GridApi)],t.prototype,"gridApi",void 0),n([a.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"passBeansUp",null),t}(o(79).BaseDropZonePanel);t.ValuesDropZonePanel=l},function(e,t,o){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),n=this&&this.__decorate||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},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(1),l=function(e){function t(){var o=e.call(this,t.TEMPLATE)||this;return o.buttonComps=[],o}return r(t,e),t.prototype.setToolPanelDefs=function(e){e.forEach(this.addButtonComp.bind(this))},t.prototype.setActiveButton=function(e){this.buttonComps.forEach((function(t){t.setSelected(e===t.getToolPanelId())}))},t.prototype.addButtonComp=function(e){var o=this,i=new p(e);this.getContext().wireBean(i),this.buttonComps.push(i),this.getGui().appendChild(i.getGui()),i.addEventListener(p.EVENT_TOGGLE_BUTTON_CLICKED,(function(){o.dispatchEvent({type:t.EVENT_SIDE_BAR_BUTTON_CLICKED,toolPanelId:e.id})}))},t.prototype.clearButtons=function(){this.buttonComps&&this.buttonComps.forEach((function(e){return e.destroy()})),a._.clearElement(this.getGui()),this.buttonComps.length=0},t.prototype.destroy=function(){this.clearButtons(),e.prototype.destroy.call(this)},t.EVENT_SIDE_BAR_BUTTON_CLICKED="sideBarButtonClicked",t.TEMPLATE='<div class="ag-side-buttons"></div>',n([a.Autowired("gridOptionsWrapper"),s("design:type",a.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),t}(a.Component);t.SideBarButtonsComp=l;var p=function(e){function t(t){var o=e.call(this)||this;return o.toolPanelDef=t,o}return r(t,e),t.prototype.getToolPanelId=function(){return this.toolPanelDef.id},t.prototype.postConstruct=function(){var e=this.createTemplate();this.setTemplate(e),this.eToggleButton.querySelector("div").insertAdjacentElement("afterbegin",a._.createIconNoSpan(this.toolPanelDef.iconKey,this.gridOptionsWrapper)),this.addDestroyableEventListener(this.eToggleButton,"click",this.onButtonPressed.bind(this))},t.prototype.createTemplate=function(){var e=this.gridOptionsWrapper.getLocaleTextFunc(),t=this.toolPanelDef;return'<div class="ag-side-button">\n <button type="button" ref="eToggleButton">\n <div></div>\n <span>'+e(t.labelKey,t.labelDefault)+"</span>\n </button>\n </div>"},t.prototype.onButtonPressed=function(){this.dispatchEvent({type:t.EVENT_TOGGLE_BUTTON_CLICKED})},t.prototype.setSelected=function(e){this.addOrRemoveCssClass("ag-selected",e)},t.EVENT_TOGGLE_BUTTON_CLICKED="toggleButtonClicked",n([a.Autowired("gridOptionsWrapper"),s("design:type",a.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),n([a.RefSelector("eToggleButton"),s("design:type",HTMLButtonElement)],t.prototype,"eToggleButton",void 0),n([a.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"postConstruct",null),t}(a.Component)},function(e,t,o){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),n=this&&this.__decorate||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},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(1),l=function(e){function t(){return e.call(this,'<div class="ag-tool-panel-horizontal-resize"></div>')||this}return r(t,e),t.prototype.setElementToResize=function(e){this.elementToResize=e},t.prototype.postConstruct=function(){var e=this.horizontalResizeService.addResizeBar({eResizeBar:this.getGui(),dragStartPixels:1,onResizeStart:this.onResizeStart.bind(this),onResizing:this.onResizing.bind(this),onResizeEnd:this.onResizing.bind(this)});this.addDestroyFunc(e)},t.prototype.onResizeStart=function(){this.startingWidth=this.elementToResize.offsetWidth},t.prototype.onResizing=function(e){var t=this.gridOptionsWrapper.isEnableRtl()?-1:1,o=Math.max(100,Math.floor(this.startingWidth-e*t));this.elementToResize.style.width=o+"px"},n([a.Autowired("horizontalResizeService"),s("design:type",a.HorizontalResizeService)],t.prototype,"horizontalResizeService",void 0),n([a.Autowired("gridOptionsWrapper"),s("design:type",a.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),n([a.Autowired("eventService"),s("design:type",a.EventService)],t.prototype,"eventService",void 0),n([a.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"postConstruct",null),t}(a.Component);t.HorizontalResizeComp=l},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r,n,s,a,l,p,u,c=o(1),d=o(364),h=o(365),f=o(366),g=o(368),y=o(369),v=o(372),m=o(373),C=o(235),w=o(236),_=o(237),b=function(){i={base:0},r=[],n=[{name:"Calibri",size:14,colorTheme:"1",family:2,scheme:"minor"}],s=[{patternType:"none"},{patternType:"gray125"}],a=[{left:void 0,right:void 0,top:void 0,bottom:void 0,diagonal:void 0}],l=[{borderId:0,fillId:0,fontId:0,numFmtId:0}],p=[{borderId:0,fillId:0,fontId:0,numFmtId:0,xfId:0}],u=[{builtinId:0,name:"normal",xfId:0}]};t.convertLegacyColor=function(e){return null==e?e:("#"===e.charAt(0)&&(e=e.substr(1)),6===e.length?"00"+e:e)};var E=function(e){var o,l,u,d,h,f,g=e.id,y=e.alignment,v=e.borders,m=e.font,b=e.interior,E=e.numberFormat,R=e.protection,P=0,O=0,S=0,A=0;g&&null==i[g]&&(b&&(u=(l=(o=b).pattern)?{None:"none",Solid:"solid",Gray50:"mediumGray",Gray75:"darkGray",Gray25:"lightGray",HorzStripe:"darkHorizontal",VertStripe:"darkVertical",ReverseDiagStripe:"darkDown",DiagStripe:"darkUp",DiagCross:"darkGrid",ThickDiagCross:"darkTrellis",ThinHorzStripe:"lightHorizontal",ThinVertStripe:"lightVertical",ThinReverseDiagStripe:"lightDown",ThinDiagStripe:"lightUp",ThinHorzCross:"lightGrid",ThinDiagCross:"lightTrellis",Gray125:"gray125",Gray0625:"gray0625"}[l]||l:"none",d=t.convertLegacyColor(o.color),h=t.convertLegacyColor(o.patternColor),-1===(f=c._.findIndex(s,(function(e){var t=e.patternType,o=e.fgRgb,i=e.bgRgb;return t==u&&o==d&&i==h})))&&(f=s.length,s.push({patternType:u,fgRgb:d,bgRgb:h})),P=f),v&&(O=function(e){var o,i,r,n,s,l,p,u,d=e.borderBottom,h=e.borderTop,f=e.borderLeft,g=e.borderRight;f&&(r=_.convertLegacyBorder(f.lineStyle,f.weight),p=t.convertLegacyColor(f.color)),g&&(n=_.convertLegacyBorder(g.lineStyle,g.weight),u=t.convertLegacyColor(g.color)),d&&(o=_.convertLegacyBorder(d.lineStyle,d.weight),s=t.convertLegacyColor(d.color)),h&&(i=_.convertLegacyBorder(h.lineStyle,h.weight),l=t.convertLegacyColor(h.color));var y=c._.findIndex(a,(function(e){var t=e.left,a=e.right,c=e.top,d=e.bottom;if(!t&&(r||p))return!1;if(!a&&(n||u))return!1;if(!c&&(i||l))return!1;if(!d&&(o||s))return!1;var h=t||{},f=h.style,g=h.color,y=a||{},v=y.style,m=y.color,C=c||{},w=C.style,_=C.color,b=d||{},E=b.style,R=b.color;return f==r&&g==p&&(v==n&&m==u&&(w==i&&_==l&&(E==o&&R==s)))}));return-1===y&&(y=a.length,a.push({left:{style:r,color:p},right:{style:n,color:u},top:{style:i,color:l},bottom:{style:o,color:s},diagonal:{style:void 0,color:void 0}})),y}(v)),m&&(S=function(e){var o=e.fontName,i=e.color,r=e.size,s=e.bold,a=e.italic,l=e.outline,p=e.shadow,u=e.strikeThrough,d=e.underline,h=e.family,f=o?c._.utf8_encode(o):o,g=t.convertLegacyColor(i),y=w.getFamilyId(h),v=c._.findIndex(n,(function(e){return e.name==f&&e.color==g&&e.size==r&&e.bold==s&&e.italic==a&&e.outline==l&&e.shadow==p&&e.strike==u&&e.underline==d&&e.family==y}));return-1===v&&(v=n.length,n.push({name:f,color:g,size:r,bold:s,italic:a,outline:l,shadow:p,strike:u,underline:d,family:y})),v}(m)),E&&(A=function(e){if(e=c._.utf8_encode(e),C.numberFormatMap[e])return C.numberFormatMap[e];var t=c._.findIndex(r,(function(t){return t.formatCode===e}));return-1===t?(t=r.length+164,r.push({formatCode:e,numFmtId:t})):t=r[t].numFmtId,t}(E.format)),i[g]=p.length,p.push({alignment:y,borderId:O||0,fillId:P||0,fontId:S||0,numFmtId:A||0,protection:R,xfId:0}))},R={getTemplate:function(){var e=d.default.getTemplate(r),t=h.default.getTemplate(n),o=f.default.getTemplate(s),i=g.default.getTemplate(a),c=y.default.getTemplate(l),C=v.default.getTemplate(p),w=m.default.getTemplate(u);return b(),{name:"styleSheet",properties:{rawMap:{xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main"}},children:[e,t,o,i,c,C,w,{name:"tableStyles",properties:{rawMap:{count:0,defaultPivotStyle:"PivotStyleLight16",defaultTableStyle:"TableStyleMedium2"}}}]}}};t.getStyleId=function(e){return i[e]||0},t.registerStyles=function(e){b(),e.forEach(E)},t.default=R},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){}return e.STRING_PROPERTIES=["sortingOrder","rowClass","rowSelection","overlayLoadingTemplate","overlayNoRowsTemplate","quickFilterText","rowModelType","editType","domLayout","clipboardDeliminator","rowGroupPanelShow","multiSortKey","pivotColumnGroupTotals","pivotRowTotals","pivotPanelShow"],e.OBJECT_PROPERTIES=["components","frameworkComponents","rowStyle","context","autoGroupColumnDef","groupColumnDef","localeText","icons","datasource","serverSideDatasource","viewportDatasource","groupRowRendererParams","aggFuncs","fullWidthCellRendererParams","defaultColGroupDef","defaultColDef","defaultExportParams","columnTypes","rowClassRules","detailGridOptions","detailCellRendererParams","loadingCellRendererParams","loadingOverlayComponentParams","noRowsOverlayComponentParams","popupParent","colResizeDefault","reduxStore","statusBar","sideBar"],e.ARRAY_PROPERTIES=["slaveGrids","alignedGrids","rowData","columnDefs","excelStyles","pinnedTopRowData","pinnedBottomRowData"],e.NUMBER_PROPERTIES=["rowHeight","detailRowHeight","rowBuffer","colWidth","headerHeight","groupHeaderHeight","floatingFiltersHeight","pivotHeaderHeight","pivotGroupHeaderHeight","groupDefaultExpanded","minColWidth","maxColWidth","viewportRowModelPageSize","viewportRowModelBufferSize","autoSizePadding","maxBlocksInCache","maxConcurrentDatasourceRequests","cacheOverflowSize","paginationPageSize","cacheBlockSize","infiniteInitialRowCount","scrollbarWidth","paginationStartPage","infiniteBlockSize","batchUpdateWaitMillis","blockLoadDebounceMillis","keepDetailRowsCount"],e.BOOLEAN_PROPERTIES=["toolPanelSuppressRowGroups","toolPanelSuppressValues","toolPanelSuppressPivots","toolPanelSuppressPivotMode","toolPanelSuppressSideButtons","toolPanelSuppressColumnFilter","toolPanelSuppressColumnSelectAll","toolPanelSuppressColumnExpandAll","suppressMakeColumnVisibleAfterUnGroup","suppressRowClickSelection","suppressCellSelection","suppressHorizontalScroll","alwaysShowVerticalScroll","debug","enableBrowserTooltips","enableColResize","enableCellExpressions","enableSorting","enableServerSideSorting","enableFilter","enableServerSideFilter","angularCompileRows","angularCompileFilters","angularCompileHeaders","groupSuppressAutoColumn","groupSelectsChildren","groupIncludeFooter","groupIncludeTotalFooter","groupUseEntireRow","groupSuppressRow","groupSuppressBlankHeader","forPrint","suppressMenuHide","rowDeselection","unSortIcon","suppressMultiSort","singleClickEdit","suppressLoadingOverlay","suppressNoRowsOverlay","suppressAutoSize","suppressParentsInRowNodes","showToolPanel","suppressColumnMoveAnimation","suppressMovableColumns","suppressFieldDotNotation","enableRangeSelection","enableRangeHandle","enableFillHandle","deltaSort","suppressTouch","suppressAsyncEvents","allowContextMenuWithControlKey","suppressContextMenu","suppressMenuFilterPanel","suppressMenuMainPanel","suppressMenuColumnPanel","rememberGroupStateWhenNewData","enableCellChangeFlash","suppressDragLeaveHidesColumns","suppressMiddleClickScrolls","suppressPreventDefaultOnMouseWheel","suppressUseColIdForGroups","suppressCopyRowsToClipboard","copyHeadersToClipboard","pivotMode","suppressAggFuncInHeader","suppressColumnVirtualisation","suppressAggAtRootLevel","suppressFocusAfterRefresh","functionsPassive","functionsReadOnly","animateRows","groupSelectsFiltered","groupRemoveSingleChildren","groupRemoveLowestSingleChildren","enableRtl","suppressClickEdit","rowDragManaged","suppressRowDrag","enableGroupEdit","embedFullWidthRows","deprecatedEmbedFullWidthRows","suppressTabbing","suppressPaginationPanel","floatingFilter","groupHideOpenParents","groupMultiAutoColumn","pagination","stopEditingWhenGridLosesFocus","paginationAutoPageSize","suppressScrollOnNewData","purgeClosedRowNodes","cacheQuickFilter","deltaRowDataMode","ensureDomOrder","accentedSort","pivotTotals","suppressChangeDetection","valueCache","valueCacheNeverExpires","aggregateOnlyChangedColumns","suppressAnimationFrame","suppressExcelExport","suppressCsvExport","treeData","masterDetail","suppressMultiRangeSelection","enterMovesDownAfterEdit","enterMovesDown","suppressPropertyNamesCheck","rowMultiSelectWithClick","contractColumnSelection","suppressEnterpriseResetOnNewColumns","enableOldSetFilterModel","suppressRowHoverHighlight","gridAutoHeight","suppressRowTransform","suppressClipboardPaste","serverSideSortingAlwaysResets","reactNext","suppressSetColumnStateEvents","enableCharts","deltaColumnMode","suppressMaintainUnsortedOrder","enableCellTextSelection","suppressBrowserResizeObserver","suppressMaxRenderedRowRestriction","excludeChildrenWhenTreeDataFiltering","keepDetailRows","paginateChildRows","preventDefaultOnContextMenu"],e.FUNCTION_PROPERTIES=["localeTextFunc","groupRowInnerRenderer","groupRowInnerRendererFramework","dateComponent","dateComponentFramework","groupRowRenderer","groupRowRendererFramework","isExternalFilterPresent","getRowHeight","doesExternalFilterPass","getRowClass","getRowStyle","getRowClassRules","traverseNode","getContextMenuItems","getMainMenuItems","processRowPostCreate","processCellForClipboard","getNodeChildDetails","groupRowAggNodes","getRowNodeId","isFullWidthCell","fullWidthCellRenderer","fullWidthCellRendererFramework","doesDataFlower","processSecondaryColDef","processSecondaryColGroupDef","getBusinessKeyForNode","sendToClipboard","navigateToNextCell","tabToNextCell","getDetailRowData","processCellFromClipboard","getDocument","postProcessPopup","getChildCount","getDataPath","loadingCellRenderer","loadingCellRendererFramework","loadingOverlayComponent","loadingOverlayComponentFramework","noRowsOverlayComponent","noRowsOverlayComponentFramework","detailCellRenderer","detailCellRendererFramework","onGridReady","defaultGroupSortComparator","isRowMaster","isRowSelectable","postSort","processHeaderForClipboard","paginationNumberFormatter","processDataFromClipboard","getServerSideGroupKey","isServerSideGroup","suppressKeyboardEvent","createChartContainer","processChartOptions","getChartToolbarItems"],e.ALL_PROPERTIES=e.ARRAY_PROPERTIES.concat(e.OBJECT_PROPERTIES).concat(e.STRING_PROPERTIES).concat(e.NUMBER_PROPERTIES).concat(e.FUNCTION_PROPERTIES).concat(e.BOOLEAN_PROPERTIES),e.FRAMEWORK_PROPERTIES=["__ob__","__metadata__","mappedColumnProperties","hasChildColumns","toColDef","createColDefFromGridColumn"],e}();t.PropertyKeys=i},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.VALUE=0]="VALUE",e[e.DIMENSION=1]="DIMENSION"}(t.CellRangeType||(t.CellRangeType={}))},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t,o){var i=this;this.alive=!0,e.newDateComponent(t).then((function(e){i.alive?(i.dateComp=e,o.appendChild(e.getGui()),e.afterGuiAttached&&e.afterGuiAttached(),i.tempValue&&e.setDate(i.tempValue)):e.destroy&&e.destroy()}))}return e.prototype.destroy=function(){this.alive=!1,this.dateComp&&this.dateComp.destroy&&this.dateComp.destroy()},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}();t.DateCompWrapper=i},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){this.customFilterOptions={}}return e.prototype.init=function(e,t){this.filterOptions=e.filterOptions?e.filterOptions:t,this.mapCustomOptions(),this.selectDefaultItem(e)},e.prototype.getFilterOptions=function(){return this.filterOptions},e.prototype.mapCustomOptions=function(){var e=this;this.filterOptions&&this.filterOptions.forEach((function(t){"string"!=typeof t&&(t.displayKey?t.displayName?t.test?e.customFilterOptions[t.displayKey]=t:console.warn("ag-Grid: ignoring FilterOptionDef as it doesn't contain a 'test'"):console.warn("ag-Grid: ignoring FilterOptionDef as it doesn't contain a 'displayName'"):console.warn("ag-Grid: ignoring FilterOptionDef as it doesn't contain a 'displayKey'"))}))},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}();t.OptionsFactory=i},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var n=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.isPopup=function(){return!0},t}(o(131).TextCellEditor);t.PopupTextCellEditor=n},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var n=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.isPopup=function(){return!0},t}(o(136).SelectCellEditor);t.PopupSelectCellEditor=n},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var n=o(47),s=o(7),a=o(2),l=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return r(t,e),t.prototype.init=function(e){this.params=e,this.focusAfterAttached=e.cellStartedEdit,this.textarea=document.createElement("textarea"),this.textarea.maxLength=e.maxLength?e.maxLength:"200",this.textarea.cols=e.cols?e.cols:"60",this.textarea.rows=e.rows?e.rows:"10",a._.exists(e.value)&&(this.textarea.value=e.value.toString()),this.getGui().querySelector(".ag-large-textarea").appendChild(this.textarea),this.addGuiEventListener("keydown",this.onKeyDown.bind(this))},t.prototype.onKeyDown=function(e){var t=e.which||e.keyCode;(t==s.Constants.KEY_LEFT||t==s.Constants.KEY_UP||t==s.Constants.KEY_RIGHT||t==s.Constants.KEY_DOWN||e.shiftKey&&t==s.Constants.KEY_ENTER)&&e.stopPropagation()},t.prototype.afterGuiAttached=function(){this.focusAfterAttached&&this.textarea.focus()},t.prototype.getValue=function(){return this.params.parseValue(this.textarea.value)},t.TEMPLATE='<div class="ag-large-text" tabindex="0"><div class="ag-large-textarea"></div></div>',t}(n.PopupComponent);t.LargeTextCellEditor=l},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var n=o(8),s=o(33),a=o(181),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.getDefaultDebounceMs=function(){return 0},t.prototype.getTextFromModel=function(e){if(!e)return null;if(e.operator){var t=e,o=this.conditionToString(t.condition1),i=this.conditionToString(t.condition2);return o+" "+t.operator+" "+i}var r=e;return this.conditionToString(r)},t.prototype.isEventFromFloatingFilter=function(e){return e&&e.afterFloatingFilter},t.prototype.getLastType=function(){return this.lastType},t.prototype.setLastTypeFromModel=function(e){if(e){var t;if(e.operator)t=e.condition1;else t=e;this.lastType=t.type}},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 a.OptionsFactory,this.optionsFactory.init(e.filterParams,this.getDefaultFilterOptions()),this.lastType=this.optionsFactory.getDefaultOption();var t=this.isTypeEditable(this.lastType);this.setEditable(t)},t.prototype.doesFilterHaveHiddenInput=function(e){var t=this.optionsFactory.getCustomOption(e);return t&&t.hideFilterInput},t.prototype.isTypeEditable=function(e){return!this.doesFilterHaveHiddenInput(e)&&(e&&e!=s.SimpleFilter.IN_RANGE&&e!=s.SimpleFilter.EMPTY)},t}(n.Component);t.SimpleFloatingFilter=l},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),n=this&&this.__decorate||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},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(11),l=o(2),p=o(7),u=o(88),c=o(0),d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.postConstruct=function(){this.setTemplate('<div class="ag-input-wrapper" role="presentation">\n <input ref="eFloatingFilterText" class="ag-floating-filter-input">\n </div>')},t.prototype.getDefaultDebounceMs=function(){return 500},t.prototype.onParentModelChanged=function(e,t){if(!this.isEventFromFloatingFilter(t)){this.setLastTypeFromModel(e);var o=this.getTextFromModel(e);this.eFloatingFilterText.value=o;var i=this.canWeEditAfterModelFromParentFilter(e);this.setEditable(i)}},t.prototype.init=function(t){e.prototype.init.call(this,t),this.params=t,this.applyActive=u.ProvidedFilter.isUseApplyButton(this.params.filterParams);var o=u.ProvidedFilter.getDebounceMs(this.params.filterParams,this.getDefaultDebounceMs()),i=l._.debounce(this.syncUpWithParentFilter.bind(this),o);this.addDestroyableEventListener(this.eFloatingFilterText,"input",i),this.addDestroyableEventListener(this.eFloatingFilterText,"keypress",i),this.addDestroyableEventListener(this.eFloatingFilterText,"keydown",i);var r=t.column.getDefinition();r.filterParams&&r.filterParams.filterOptions&&1===r.filterParams.filterOptions.length&&"inRange"===r.filterParams.filterOptions[0]&&(this.eFloatingFilterText.disabled=!0)},t.prototype.syncUpWithParentFilter=function(e){var t=this,o=this.eFloatingFilterText.value,i=l._.isKeyPressed(e,p.Constants.KEY_ENTER);this.applyActive&&!i||this.params.parentFilterInstance((function(e){e&&e.onFloatingFilterChanged(t.getLastType(),o)}))},t.prototype.setEditable=function(e){this.eFloatingFilterText.disabled=!e},n([a.RefSelector("eFloatingFilterText"),s("design:type",HTMLInputElement)],t.prototype,"eFloatingFilterText",void 0),n([c.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"postConstruct",null),t}(o(185).SimpleFloatingFilter);t.TextInputFloatingFilter=d},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/var i=this&&this.__decorate||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},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var n=o(12),s=o(0),a=o(3),l=function(){function e(){this.cacheItems=[]}return e.prototype.postConstruct=function(){this.active=this.gridOptionsWrapper.isKeepDetailRows(),this.maxCacheSize=this.gridOptionsWrapper.getKeepDetailRowsCount()},e.prototype.addOrDestroy=function(e,t,o){if(!this.active||!e.detail)this.destroyFullWidthRow(o);else{var i=this.getCacheItem(e,!0);switch(t){case n.Column.PINNED_LEFT:this.destroyFullWidthRow(i.left),i.left=o;break;case n.Column.PINNED_RIGHT:this.destroyFullWidthRow(i.right),i.right=o;break;default:this.destroyFullWidthRow(i.center),i.center=o}this.cacheItems.sort((function(e,t){return t.lastAccessedTime-e.lastAccessedTime})),this.purgeCache(this.maxCacheSize)}},e.prototype.getCacheItem=function(e,t){var o;void 0===t&&(t=!1);for(var i=0;i<this.cacheItems.length;i++){var r=this.cacheItems[i];if(r.rowNode===e){o=r;break}}return!o&&t&&(o={rowNode:e},this.cacheItems.push(o)),o&&this.stampCacheItem(o),o},e.prototype.stampCacheItem=function(e){e.lastAccessedTime=(new Date).getTime()},e.prototype.destroyFullWidthRow=function(e){e&&e.destroy&&e.destroy()},e.prototype.purgeCache=function(e){for(var t=e;t<this.cacheItems.length;t++){var o=this.cacheItems[t];this.destroyFullWidthRow(o.center),this.destroyFullWidthRow(o.left),this.destroyFullWidthRow(o.right)}this.cacheItems.length>e&&(this.cacheItems.length=e)},e.prototype.get=function(e,t){if(e.detail){var o,i=this.getCacheItem(e);if(i)switch(t){case n.Column.PINNED_LEFT:i.left&&(o=i.left,i.left=void 0);break;case n.Column.PINNED_RIGHT:i.right&&(o=i.right,i.right=void 0);break;default:i.center&&(o=i.center,i.center=void 0)}return o}},e.prototype.destroy=function(){this.purgeCache(0)},i([s.Autowired("gridOptionsWrapper"),r("design:type",a.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([s.PostConstruct,r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],e.prototype,"postConstruct",null),i([s.PreDestroy,r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],e.prototype,"destroy",null),e=i([s.Bean("detailRowCompCache")],e)}();t.DetailRowCompCache=l},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),n=this&&this.__decorate||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},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(8),l=o(0),p=o(12),u=o(18),c=o(10),d=o(5),h=o(91),f=o(3),g=o(144),y=o(92),v=o(9),m=o(27),C=o(4),w=o(19),_=o(49),b=o(11),E=o(263),R=o(6),P=o(64),O=o(38),S=o(146),A=o(61),T=o(2),D=function(e){function t(o,i,r){var n=e.call(this,t.TEMPLATE)||this;return n.column=o,n.dragSourceDropTarget=i,n.pinned=r,n}return r(t,e),t.prototype.getColumn=function(){return this.column},t.prototype.getComponentHolder=function(){return this.column.getColDef()},t.prototype.init=function(){var e=this.getComponentHolder(),t=this.columnController.getDisplayNameForColumn(this.column,"header",!0),o=e.sortable,i=this.menuFactory.isMenuEnabled(this.column)&&!e.suppressMenu;this.appendHeaderComp(t,o,i),this.setupWidth(),this.setupMovingCss(),this.setupTooltip(),this.setupResize(),this.setupMenuClass(),this.setupSortableClass(o),this.addColumnHoverListener(),this.addFeature(this.getContext(),new S.HoverFeature([this.column],this.getGui())),this.addDestroyableEventListener(this.column,p.Column.EVENT_FILTER_ACTIVE_CHANGED,this.onFilterChanged.bind(this)),this.onFilterChanged(),this.addFeature(this.getContext(),new E.SelectAllFeature(this.cbSelectAll,this.column));var r=new y.SetLeftFeature(this.column,this.getGui(),this.beans);r.init(),this.addDestroyFunc(r.destroy.bind(r)),this.addAttributes(),g.CssClassApplier.addHeaderClassesFromColDef(e,this.getGui(),this.gridOptionsWrapper,this.column,null)},t.prototype.addColumnHoverListener=function(){this.addDestroyableEventListener(this.eventService,R.Events.EVENT_COLUMN_HOVER_CHANGED,this.onColumnHover.bind(this)),this.onColumnHover()},t.prototype.onColumnHover=function(){var e=this.columnHoverService.isHovered(this.column);T._.addOrRemoveCssClass(this.getGui(),"ag-column-hover",e)},t.prototype.setupSortableClass=function(e){if(e){var t=this.getGui();T._.addCssClass(t,"ag-header-cell-sortable")}},t.prototype.onFilterChanged=function(){var e=this.column.isFilterActive();T._.addOrRemoveCssClass(this.getGui(),"ag-header-cell-filtered",e)},t.prototype.appendHeaderComp=function(e,t,o){var i=this,r={column:this.column,displayName:e,enableSorting:t,enableMenu:o,showColumnMenu:function(e){i.gridApi.showColumnMenuAfterButtonClick(i.column,e)},progressSort:function(e){i.sortController.progressSort(i.column,!!e,"uiColumnSorted")},setSort:function(e,t){i.sortController.setSortForColumn(i.column,e,!!t,"uiColumnSorted")},api:this.gridApi,columnApi:this.columnApi,context:this.gridOptionsWrapper.getContext()},n=this.afterHeaderCompCreated.bind(this,e);this.userComponentFactory.newHeaderComponent(r).then(n)},t.prototype.afterHeaderCompCreated=function(e,t){this.appendChild(t),this.setupMove(t.getGui(),e)},t.prototype.onColumnMovingChanged=function(){this.column.isMoving()?T._.addCssClass(this.getGui(),"ag-header-cell-moving"):T._.removeCssClass(this.getGui(),"ag-header-cell-moving")},t.prototype.setupMove=function(e,t){var o=this;if(!(this.gridOptionsWrapper.isSuppressMovableColumns()||this.getComponentHolder().suppressMovable||this.column.getColDef().lockPosition)&&e){var i={type:u.DragSourceType.HeaderCell,eElement:e,dragItemCallback:function(){return o.createDragItem()},dragItemName:t,dragSourceDropTarget:this.dragSourceDropTarget,dragStarted:function(){return o.column.setMoving(!0,"uiColumnMoved")},dragStopped:function(){return o.column.setMoving(!1,"uiColumnMoved")}};this.dragAndDropService.addDragSource(i,!0),this.addDestroyFunc((function(){return o.dragAndDropService.removeDragSource(i)}))}},t.prototype.createDragItem=function(){var e={};return e[this.column.getId()]=this.column.isVisible(),{columns:[this.column],visibleState:e}},t.prototype.setupResize=function(){var e=this,t=this.getComponentHolder();if(this.eResize)if(this.column.isResizable()){var o=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(o),!this.gridOptionsWrapper.isSuppressAutoSize()&&!t.suppressAutoSize){this.addDestroyableEventListener(this.eResize,"dblclick",(function(){e.columnController.autoSizeColumn(e.column,"uiColumnResized")}));var i=new A.TouchListener(this.eResize);this.addDestroyableEventListener(i,A.TouchListener.EVENT_DOUBLE_TAP,(function(){e.columnController.autoSizeColumn(e.column,"uiColumnResized")})),this.addDestroyFunc(i.destroy.bind(i))}}else T._.removeFromParent(this.eResize)},t.prototype.onResizing=function(e,t){var o=this.normaliseResizeAmount(t),i=this.resizeStartWidth+o;this.columnController.setColumnWidth(this.column,i,this.resizeWithShiftKey,e,"uiColumnDragged"),e&&T._.removeCssClass(this.getGui(),"ag-column-resizing")},t.prototype.onResizeStart=function(e){this.resizeStartWidth=this.column.getActualWidth(),this.resizeWithShiftKey=e,T._.addCssClass(this.getGui(),"ag-column-resizing")},t.prototype.getTooltipText=function(){return this.getComponentHolder().headerTooltip},t.prototype.setupTooltip=function(){var e=this.getTooltipText();null!=e&&(this.gridOptionsWrapper.isEnableBrowserTooltips()?this.getGui().setAttribute("title",e):this.beans.tooltipManager.registerTooltip(this))},t.prototype.setupMovingCss=function(){this.addDestroyableEventListener(this.column,p.Column.EVENT_MOVING_CHANGED,this.onColumnMovingChanged.bind(this)),this.onColumnMovingChanged()},t.prototype.addAttributes=function(){this.getGui().setAttribute("col-id",this.column.getColId())},t.prototype.setupWidth=function(){this.addDestroyableEventListener(this.column,p.Column.EVENT_WIDTH_CHANGED,this.onColumnWidthChanged.bind(this)),this.onColumnWidthChanged()},t.prototype.setupMenuClass=function(){this.addDestroyableEventListener(this.column,p.Column.EVENT_MENU_VISIBLE_CHANGED,this.onMenuVisible.bind(this)),this.onColumnWidthChanged()},t.prototype.onMenuVisible=function(){this.addOrRemoveCssClass("ag-column-menu-visible",this.column.isMenuVisible())},t.prototype.onColumnWidthChanged=function(){this.getGui().style.width=this.column.getActualWidth()+"px"},t.prototype.normaliseResizeAmount=function(e){var t=e;return this.gridOptionsWrapper.isEnableRtl()?this.pinned!==p.Column.PINNED_LEFT&&(t*=-1):this.pinned===p.Column.PINNED_RIGHT&&(t*=-1),t},t.TEMPLATE='<div class="ag-header-cell" role="presentation" unselectable="on"><div ref="eResize" class="ag-header-cell-resize" role="presentation"></div><ag-checkbox ref="cbSelectAll" class="ag-header-select-all" role="presentation"></ag-checkbox></div>',n([l.Autowired("gridOptionsWrapper"),s("design:type",f.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),n([l.Autowired("dragAndDropService"),s("design:type",u.DragAndDropService)],t.prototype,"dragAndDropService",void 0),n([l.Autowired("columnController"),s("design:type",d.ColumnController)],t.prototype,"columnController",void 0),n([l.Autowired("horizontalResizeService"),s("design:type",h.HorizontalResizeService)],t.prototype,"horizontalResizeService",void 0),n([l.Autowired("menuFactory"),s("design:type",Object)],t.prototype,"menuFactory",void 0),n([l.Autowired("gridApi"),s("design:type",v.GridApi)],t.prototype,"gridApi",void 0),n([l.Autowired("columnApi"),s("design:type",c.ColumnApi)],t.prototype,"columnApi",void 0),n([l.Autowired("sortController"),s("design:type",m.SortController)],t.prototype,"sortController",void 0),n([l.Autowired("eventService"),s("design:type",C.EventService)],t.prototype,"eventService",void 0),n([l.Autowired("userComponentFactory"),s("design:type",w.UserComponentFactory)],t.prototype,"userComponentFactory",void 0),n([l.Autowired("columnHoverService"),s("design:type",P.ColumnHoverService)],t.prototype,"columnHoverService",void 0),n([l.Autowired("beans"),s("design:type",O.Beans)],t.prototype,"beans",void 0),n([b.RefSelector("eResize"),s("design:type",HTMLElement)],t.prototype,"eResize",void 0),n([b.RefSelector("cbSelectAll"),s("design:type",_.AgCheckbox)],t.prototype,"cbSelectAll",void 0),n([l.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"init",null),t}(a.Component);t.HeaderWrapperComp=D},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/var i=this&&this.__decorate||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},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),s=o(12),a=o(3),l=o(5),p=o(57),u=o(7),c=o(2),d=function(){function e(){}var t;return t=e,e.prototype.createAutoGroupColumns=function(e){var t=this,o=[],i=this.gridOptionsWrapper.isTreeData(),r=this.gridOptionsWrapper.isGroupMultiAutoColumn();return i&&r&&(console.warn("ag-Grid: you cannot mix groupMultiAutoColumn with treeData, only one column can be used to display groups when doing tree data"),r=!1),r?e.forEach((function(e,i){o.push(t.createOneAutoGroupColumn(e,i))})):o.push(this.createOneAutoGroupColumn()),o},e.prototype.createOneAutoGroupColumn=function(e,o){var i,r=this.generateDefaultColDef(e);i=e?u.Constants.GROUP_AUTO_COLUMN_ID+"-"+e.getId():t.GROUP_AUTO_COLUMN_BUNDLE_ID;var n=this.gridOptionsWrapper.getAutoGroupColumnDef();(c._.mergeDeep(r,n),(r=this.columnFactory.mergeColDefs(r)).colId=i,this.gridOptionsWrapper.isTreeData())||c._.missing(r.field)&&c._.missing(r.valueGetter)&&c._.missing(r.filterValueGetter)&&(r.filter=!1);o&&o>0&&(r.headerCheckboxSelection=!1);var a=new s.Column(r,null,i,!0);return this.context.wireBean(a),a},e.prototype.generateDefaultColDef=function(e){var t=this.gridOptionsWrapper.getAutoGroupColumnDef(),o={headerName:this.gridOptionsWrapper.getLocaleTextFunc()("group","Group")};if(t&&(t.cellRenderer||t.cellRendererFramework)||(o.cellRenderer="agGroupCellRenderer"),e){var i=e.getColDef();c._.assign(o,{headerName:this.columnController.getDisplayNameForColumn(e,"header"),headerValueGetter:i.headerValueGetter}),i.cellRenderer&&c._.assign(o,{cellRendererParams:{innerRenderer:i.cellRenderer,innerRendererParams:i.cellRendererParams}}),o.showRowGroup=e.getColId()}else o.showRowGroup=!0;return o},e.GROUP_AUTO_COLUMN_BUNDLE_ID=u.Constants.GROUP_AUTO_COLUMN_ID,i([n.Autowired("gridOptionsWrapper"),r("design:type",a.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([n.Autowired("context"),r("design:type",n.Context)],e.prototype,"context",void 0),i([n.Autowired("columnController"),r("design:type",l.ColumnController)],e.prototype,"columnController",void 0),i([n.Autowired("columnFactory"),r("design:type",p.ColumnFactory)],e.prototype,"columnFactory",void 0),e=t=i([n.Bean("autoGroupColService")],e)}();t.AutoGroupColService=d},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/var i=this&&this.__decorate||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},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),s=o(7),a=o(3),l=o(2),p=function(){function e(){}return e.prototype.postConstruct=function(){this.rowModel.getType()===s.Constants.ROW_MODEL_TYPE_CLIENT_SIDE&&(this.clientSideRowModel=this.rowModel)},e.prototype.createTransactionForRowData=function(e){if(l._.missing(this.clientSideRowModel))console.error("ag-Grid: ImmutableService only works with ClientSideRowModel");else{var t=this.gridOptionsWrapper.getRowNodeIdFunc();if(t&&!l._.missing(t)){var o={remove:[],update:[],add:[]},i=this.clientSideRowModel.getCopyOfNodesMap(),r=this.gridOptionsWrapper.isSuppressMaintainUnsortedOrder()?null:{};return l._.exists(e)&&e.forEach((function(e,n){var s=t(e),a=i[s];(r&&(r[s]=n),a)?(a.data!==e&&o.update.push(e),i[s]=void 0):o.add.push(e)})),l._.iterateObject(i,(function(e,t){t&&o.remove.push(t.data)})),[o,r]}console.error("ag-Grid: ImmutableService requires getRowNodeId() callback to be implemented, your row data need IDs!")}},i([n.Autowired("rowModel"),r("design:type",Object)],e.prototype,"rowModel",void 0),i([n.Autowired("gridOptionsWrapper"),r("design:type",a.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([n.PostConstruct,r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],e.prototype,"postConstruct",null),e=i([n.Bean("immutableService")],e)}();t.ImmutableService=p},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){}return e.STRING_PROPERTIES=["headerName","columnGroupShow","headerClass","toolPanelClass","headerValueGetter","pivotKeys","groupId","colId","sort","field","type","tooltipComponent","tooltipField","headerTooltip","cellClass","showRowGroup","template","templateUrl","filter","aggFunc","cellRenderer","cellEditor","pinned","chartDataType"],e.OBJECT_PROPERTIES=["headerGroupComponent","headerGroupComponentFramework","headerGroupComponentParams","cellStyle","cellRendererParams","cellEditorFramework","cellEditorParams","pinnedRowCellRendererFramework","pinnedRowCellRendererParams","filterFramework","filterParams","pivotValueColumn","headerComponent","headerComponentFramework","headerComponentParams","floatingFilterComponent","floatingFilterComponentParams","floatingFilterComponentFramework","tooltipComponent","tooltipComponentParams","tooltipComponentFramework","refData"],e.ARRAY_PROPERTIES=["children","sortingOrder","allowedAggFuncs","menuTabs","pivotTotalColumnIds","cellClassRules","icons"],e.NUMBER_PROPERTIES=["sortedAt","width","minWidth","maxWidth","rowGroupIndex","pivotIndex"],e.BOOLEAN_PROPERTIES=["suppressCellFlash","suppressToolPanel","openByDefault","marryChildren","hide","rowGroup","pivot","checkboxSelection","headerCheckboxSelection","headerCheckboxSelectionFilteredOnly","suppressMenu","suppressSorting","suppressMovable","suppressFilter","lockPosition","lockVisible","lockPinned","unSortIcon","suppressSizeToFit","suppressResize","suppressAutoSize","enableRowGroup","enablePivot","enableValue","editable","suppressPaste","suppressNavigable","enableCellChangeFlash","rowDrag","dndSource","autoHeight","sortable","resizable","singleClickEdit"],e.FUNCTION_PROPERTIES=["dndSourceOnRowDrag","valueGetter","valueSetter","filterValueGetter","keyCreator","cellRenderer","cellRendererFramework","pinnedRowCellRenderer","valueFormatter","pinnedRowValueFormatter","valueParser","comparator","equals","pivotComparator","suppressKeyboardEvent","colSpan","rowSpan","getQuickFilterText","newValueHandler","onCellValueChanged","onCellClicked","onCellDoubleClicked","onCellContextMenu","tooltip","tooltipValueGetter","tooltipComponent","tooltipComponentFramework","cellRendererSelector","cellEditorSelector"],e.ALL_PROPERTIES=e.ARRAY_PROPERTIES.concat(e.OBJECT_PROPERTIES).concat(e.STRING_PROPERTIES).concat(e.NUMBER_PROPERTIES).concat(e.FUNCTION_PROPERTIES).concat(e.BOOLEAN_PROPERTIES),e.FRAMEWORK_PROPERTIES=["__ob__","__metadata__","mappedColumnProperties","hasChildColumns","toColDef","createColDefFromGridColumn"],e}();t.ColDefUtil=i},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){}return e.parse=function(t){if(!t)return null;if(!0===t)return{toolPanels:[e.DEFAULT_COLUMN_COMP,e.DEFAULT_FILTER_COMP],defaultToolPanel:"columns"};if("string"==typeof t)return e.parse([t]);if(Array.isArray(t)){var o=[];return t.forEach((function(t){var i=e.DEFAULT_BY_KEY[t];i?o.push(i):console.warn("ag-grid: the key "+t+" is not a valid key for specifying a tool panel, valid keys are: "+Object.keys(e.DEFAULT_BY_KEY).join(","))})),0===o.length?null:{toolPanels:o,defaultToolPanel:o[0].id}}return{toolPanels:e.parseComponents(t.toolPanels),defaultToolPanel:t.defaultToolPanel,hiddenByDefault:t.hiddenByDefault}},e.parseComponents=function(t){var o=[];return t.forEach((function(t){var i=null;if("string"==typeof t){var r=e.DEFAULT_BY_KEY[t];if(!r)return void console.warn("ag-grid: the key "+t+" is not a valid key for specifying a tool panel, valid keys are: "+Object.keys(e.DEFAULT_BY_KEY).join(","));i=r}else i=t;o.push(i)})),o},e.DEFAULT_COLUMN_COMP={id:"columns",labelDefault:"Columns",labelKey:"columns",iconKey:"columns",toolPanel:"agColumnsToolPanel"},e.DEFAULT_FILTER_COMP={id:"filters",labelDefault:"Filters",labelKey:"filters",iconKey:"filter",toolPanel:"agFiltersToolPanel"},e.DEFAULT_BY_KEY={columns:e.DEFAULT_COLUMN_COMP,filters:e.DEFAULT_FILTER_COMP},e}();t.SideBarDefParser=i},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/Object.defineProperty(t,"__esModule",{value:!0});var i=o(2),r=function(){function e(){this.existingKeys=[]}return e.prototype.addExistingKeys=function(e){this.existingKeys=this.existingKeys.concat(e)},e.prototype.getUniqueKey=function(e,t){e=i._.toStringOrNull(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.indexOf(r)<0)return this.existingKeys.push(r),r;o++}},e}();t.ColumnKeyCreator=r},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/var i=this&&this.__decorate||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},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var n=o(3),s=o(0),a=o(18),l=o(5),p=o(4),u=o(6),c=o(195),d=o(196),h=o(12),f=o(66),g=o(2),y=function(){function e(e,t,o){this.headerRowComps=[],this.eContainer=e,this.pinned=o,this.eViewport=t}return e.prototype.registerGridComp=function(e){this.setupDragAndDrop(e)},e.prototype.forEachHeaderElement=function(e){this.headerRowComps.forEach((function(t){return t.forEachHeaderElement(e)}))},e.prototype.init=function(){this.scrollWidth=this.gridOptionsWrapper.getScrollbarWidth(),this.eventService.addEventListener(u.Events.EVENT_COLUMN_VALUE_CHANGED,this.onColumnValueChanged.bind(this)),this.eventService.addEventListener(u.Events.EVENT_COLUMN_ROW_GROUP_CHANGED,this.onColumnRowGroupChanged.bind(this)),this.eventService.addEventListener(u.Events.EVENT_GRID_COLUMNS_CHANGED,this.onGridColumnsChanged.bind(this)),this.eventService.addEventListener(u.Events.EVENT_SCROLL_VISIBILITY_CHANGED,this.onScrollVisibilityChanged.bind(this)),this.eventService.addEventListener(u.Events.EVENT_COLUMN_RESIZED,this.onColumnResized.bind(this)),this.eventService.addEventListener(u.Events.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this))},e.prototype.onColumnRowGroupChanged=function(){this.onGridColumnsChanged()},e.prototype.onColumnValueChanged=function(){this.onGridColumnsChanged()},e.prototype.onColumnResized=function(){this.setWidthOfPinnedContainer()},e.prototype.onDisplayedColumnsChanged=function(){this.setWidthOfPinnedContainer()},e.prototype.onScrollVisibilityChanged=function(){this.setWidthOfPinnedContainer()},e.prototype.setWidthOfPinnedContainer=function(){var e=this.pinned===h.Column.PINNED_LEFT,t=this.pinned===h.Column.PINNED_RIGHT,o=this.columnController,i=this.gridOptionsWrapper.isEnableRtl();if(e||t){var r=o[e?"getPinnedLeftContainerWidth":"getPinnedRightContainerWidth"]();this.scrollVisibleService.isVerticalScrollShowing()&&(i&&e||!i&&t)&&(r+=this.scrollWidth),g._.setFixedWidth(this.eContainer,r)}},e.prototype.destroy=function(){this.removeHeaderRowComps()},e.prototype.getRowComps=function(){return this.headerRowComps},e.prototype.onGridColumnsChanged=function(){this.removeAndCreateAllRowComps()},e.prototype.removeAndCreateAllRowComps=function(){this.removeHeaderRowComps(),this.createHeaderRowComps()},e.prototype.refresh=function(){this.removeAndCreateAllRowComps()},e.prototype.setupDragAndDrop=function(e){var t=this.eViewport?this.eViewport:this.eContainer,o=new d.BodyDropTarget(this.pinned,t);this.context.wireBean(o),o.registerGridComp(e)},e.prototype.removeHeaderRowComps=function(){this.headerRowComps.forEach((function(e){e.destroy()})),this.headerRowComps.length=0,g._.clearElement(this.eContainer)},e.prototype.createHeaderRowComps=function(){for(var e=this.columnController.getHeaderRowCount(),t=0;t<e;t++){var o=t!==e-1?c.HeaderRowType.COLUMN_GROUP:c.HeaderRowType.COLUMN,i=new c.HeaderRowComp(t,o,this.pinned,this.dropTarget);this.context.wireBean(i),this.headerRowComps.push(i),i.getGui().setAttribute("aria-rowindex",this.headerRowComps.length.toString()),this.eContainer.appendChild(i.getGui())}if(this.gridOptionsWrapper.isFloatingFilter()&&!this.columnController.isPivotMode()){i=new c.HeaderRowComp(e,c.HeaderRowType.FLOATING_FILTER,this.pinned,this.dropTarget);this.context.wireBean(i),this.headerRowComps.push(i),i.getGui().setAttribute("aria-rowindex",this.headerRowComps.length.toString()),this.eContainer.appendChild(i.getGui())}},i([s.Autowired("gridOptionsWrapper"),r("design:type",n.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([s.Autowired("context"),r("design:type",s.Context)],e.prototype,"context",void 0),i([s.Autowired("$scope"),r("design:type",Object)],e.prototype,"$scope",void 0),i([s.Autowired("dragAndDropService"),r("design:type",a.DragAndDropService)],e.prototype,"dragAndDropService",void 0),i([s.Autowired("columnController"),r("design:type",l.ColumnController)],e.prototype,"columnController",void 0),i([s.Autowired("eventService"),r("design:type",p.EventService)],e.prototype,"eventService",void 0),i([s.Autowired("scrollVisibleService"),r("design:type",f.ScrollVisibleService)],e.prototype,"scrollVisibleService",void 0),i([s.PostConstruct,r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],e.prototype,"init",null),e}();t.HeaderContainer=y},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),n=this&&this.__decorate||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},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a,l=o(8),p=o(0),u=o(3),c=o(5),d=o(12),h=o(4),f=o(6),g=o(188),y=o(266),v=o(17),m=o(9),C=o(7),w=o(2),_=o(267);!function(e){e[e.COLUMN_GROUP=0]="COLUMN_GROUP",e[e.COLUMN=1]="COLUMN",e[e.FLOATING_FILTER=2]="FLOATING_FILTER"}(a=t.HeaderRowType||(t.HeaderRowType={}));var b=function(e){function t(t,o,i,r){var n=e.call(this,'<div class="ag-header-row" role="row"/>')||this;return n.headerComps={},n.dept=t,n.type=o,n.pinned=i,n.dropTarget=r,n}return r(t,e),t.prototype.forEachHeaderElement=function(e){var t=this;Object.keys(this.headerComps).forEach((function(o){e(t.headerComps[o])}))},t.prototype.destroy=function(){var t=Object.keys(this.headerComps);this.removeAndDestroyChildComponents(t),e.prototype.destroy.call(this)},t.prototype.removeAndDestroyChildComponents=function(e){var t=this;e.forEach((function(e){var o=t.headerComps[e];t.getGui().removeChild(o.getGui()),o.destroy(),delete t.headerComps[e]}))},t.prototype.onRowHeightChanged=function(){var e,t,o=this.columnController.getHeaderRowCount(),i=[],r=0;this.columnController.isPivotMode()?(r=0,e=this.gridOptionsWrapper.getPivotGroupHeaderHeight(),t=this.gridOptionsWrapper.getPivotHeaderHeight()):(this.gridOptionsWrapper.isFloatingFilter()&&o++,r=this.gridOptionsWrapper.isFloatingFilter()?1:0,e=this.gridOptionsWrapper.getGroupHeaderHeight(),t=this.gridOptionsWrapper.getHeaderHeight());for(var n=o-(1+r),s=0;s<n;s++)i.push(e);i.push(t);for(s=0;s<r;s++)i.push(this.gridOptionsWrapper.getFloatingFiltersHeight());var a=0;for(s=0;s<this.dept;s++)a+=i[s];this.getGui().style.top=a+"px",this.getGui().style.height=i[this.dept]+"px"},t.prototype.init=function(){this.onRowHeightChanged(),this.onVirtualColumnsChanged(),this.setWidth(),this.addDestroyableEventListener(this.gridOptionsWrapper,u.GridOptionsWrapper.PROP_HEADER_HEIGHT,this.onRowHeightChanged.bind(this)),this.addDestroyableEventListener(this.gridOptionsWrapper,u.GridOptionsWrapper.PROP_PIVOT_HEADER_HEIGHT,this.onRowHeightChanged.bind(this)),this.addDestroyableEventListener(this.gridOptionsWrapper,u.GridOptionsWrapper.PROP_GROUP_HEADER_HEIGHT,this.onRowHeightChanged.bind(this)),this.addDestroyableEventListener(this.gridOptionsWrapper,u.GridOptionsWrapper.PROP_PIVOT_GROUP_HEADER_HEIGHT,this.onRowHeightChanged.bind(this)),this.addDestroyableEventListener(this.gridOptionsWrapper,u.GridOptionsWrapper.PROP_FLOATING_FILTERS_HEIGHT,this.onRowHeightChanged.bind(this)),this.addDestroyableEventListener(this.eventService,f.Events.EVENT_VIRTUAL_COLUMNS_CHANGED,this.onVirtualColumnsChanged.bind(this)),this.addDestroyableEventListener(this.eventService,f.Events.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addDestroyableEventListener(this.eventService,f.Events.EVENT_COLUMN_RESIZED,this.onColumnResized.bind(this)),this.addDestroyableEventListener(this.eventService,f.Events.EVENT_GRID_COLUMNS_CHANGED,this.onGridColumnsChanged.bind(this))},t.prototype.onColumnResized=function(){this.setWidth()},t.prototype.setWidth=function(){var e=this.getWidthForRow();this.getGui().style.width=e+"px"},t.prototype.getWidthForRow=function(){return this.gridOptionsWrapper.getDomLayout()===C.Constants.DOM_LAYOUT_PRINT?w._.missing(this.pinned)?this.columnController.getContainerWidth(d.Column.PINNED_RIGHT)+this.columnController.getContainerWidth(d.Column.PINNED_LEFT)+this.columnController.getContainerWidth(null):0:this.columnController.getContainerWidth(this.pinned)},t.prototype.onGridColumnsChanged=function(){this.removeAndDestroyAllChildComponents()},t.prototype.removeAndDestroyAllChildComponents=function(){var e=Object.keys(this.headerComps);this.removeAndDestroyChildComponents(e)},t.prototype.onDisplayedColumnsChanged=function(){this.onVirtualColumnsChanged(),this.setWidth()},t.prototype.getItemsAtDept=function(){var e=this;if(this.gridOptionsWrapper.getDomLayout()===C.Constants.DOM_LAYOUT_PRINT){if(w._.missing(this.pinned)){var t=[];return[d.Column.PINNED_LEFT,null,d.Column.PINNED_RIGHT].forEach((function(o){var i=e.columnController.getVirtualHeaderGroupRow(o,e.type==a.FLOATING_FILTER?e.dept-1:e.dept);t=t.concat(i)})),t}return[]}return this.columnController.getVirtualHeaderGroupRow(this.pinned,this.type==a.FLOATING_FILTER?this.dept-1:this.dept)},t.prototype.onVirtualColumnsChanged=function(){var e,t=this,o=Object.keys(this.headerComps),i=this.getItemsAtDept(),r=this.gridOptionsWrapper.isEnsureDomOrder();i.forEach((function(i){if(!i.isEmptyGroup()){var n,s,a=i.getUniqueId(),l=t.getGui();o.indexOf(a)>=0?(w._.removeFromArray(o,a),s=(n=t.headerComps[a]).getGui(),r&&w._.ensureDomOrder(l,s,e),e=s):(n=t.createHeaderComp(i),t.headerComps[a]=n,s=n.getGui(),r?w._.insertWithDomOrder(l,s,e):l.appendChild(s),e=s)}})),this.removeAndDestroyChildComponents(o)},t.prototype.createHeaderComp=function(e){var t;switch(this.type){case a.COLUMN:t=new g.HeaderWrapperComp(e,this.dropTarget,this.pinned);break;case a.COLUMN_GROUP:t=new y.HeaderGroupWrapperComp(e,this.dropTarget,this.pinned);break;case a.FLOATING_FILTER:t=new _.FloatingFilterWrapper(e)}return this.getContext().wireBean(t),t},n([p.Autowired("gridOptionsWrapper"),s("design:type",u.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),n([p.Autowired("gridApi"),s("design:type",m.GridApi)],t.prototype,"gridApi",void 0),n([p.Autowired("columnController"),s("design:type",c.ColumnController)],t.prototype,"columnController",void 0),n([p.Autowired("eventService"),s("design:type",h.EventService)],t.prototype,"eventService",void 0),n([p.Autowired("filterManager"),s("design:type",v.FilterManager)],t.prototype,"filterManager",void 0),n([p.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"init",null),t}(l.Component);t.HeaderRowComp=b},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/var i=this&&this.__decorate||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},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var n,s=o(18),a=o(0),l=o(197),p=o(12),u=o(198),c=o(5);!function(e){e[e.ColumnMove=0]="ColumnMove",e[e.Pivot=1]="Pivot"}(n||(n={}));var d=function(){function e(e,t){this.dropListeners={},this.pinned=e,this.eContainer=t}return e.prototype.registerGridComp=function(e){switch(this.gridPanel=e,this.moveColumnController.registerGridComp(e),this.pinned){case p.Column.PINNED_LEFT:this.eSecondaryContainers=this.gridPanel.getDropTargetLeftContainers();break;case p.Column.PINNED_RIGHT:this.eSecondaryContainers=this.gridPanel.getDropTargetRightContainers();break;default:this.eSecondaryContainers=this.gridPanel.getDropTargetBodyContainers()}},e.prototype.isInterestedIn=function(e){return e===s.DragSourceType.HeaderCell||e===s.DragSourceType.ToolPanel},e.prototype.getSecondaryContainers=function(){return this.eSecondaryContainers},e.prototype.getContainer=function(){return this.eContainer},e.prototype.init=function(){this.moveColumnController=new l.MoveColumnController(this.pinned,this.eContainer),this.context.wireBean(this.moveColumnController);var e=new u.BodyDropPivotTarget(this.pinned);this.context.wireBean(e),this.dropListeners[n.ColumnMove]=this.moveColumnController,this.dropListeners[n.Pivot]=e,this.dragAndDropService.addDropTarget(this)},e.prototype.getIconName=function(){return this.currentDropListener.getIconName()},e.prototype.getDropType=function(e){return this.columnController.isPivotMode()&&e.dragSource.type===s.DragSourceType.ToolPanel?n.Pivot:n.ColumnMove},e.prototype.onDragEnter=function(e){var t=this.getDropType(e);this.currentDropListener=this.dropListeners[t],this.currentDropListener.onDragEnter(e)},e.prototype.onDragLeave=function(e){this.currentDropListener.onDragLeave(e)},e.prototype.onDragging=function(e){this.currentDropListener.onDragging(e)},e.prototype.onDragStop=function(e){this.currentDropListener.onDragStop(e)},i([a.Autowired("context"),r("design:type",a.Context)],e.prototype,"context",void 0),i([a.Autowired("dragAndDropService"),r("design:type",s.DragAndDropService)],e.prototype,"dragAndDropService",void 0),i([a.Autowired("columnController"),r("design:type",c.ColumnController)],e.prototype,"columnController",void 0),i([a.PostConstruct,r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],e.prototype,"init",null),e}();t.BodyDropTarget=d},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/var i=this&&this.__decorate||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},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),s=o(14),a=o(5),l=o(12),p=o(2),u=o(18),c=o(3),d=function(){function e(e,t){this.needToMoveLeft=!1,this.needToMoveRight=!1,this.pinned=e,this.eContainer=t,this.centerContainer=!p._.exists(e)}return e.prototype.registerGridComp=function(e){this.gridPanel=e},e.prototype.init=function(){this.logger=this.loggerFactory.create("MoveColumnController")},e.prototype.getIconName=function(){return this.pinned?u.DragAndDropService.ICON_PINNED:u.DragAndDropService.ICON_MOVE},e.prototype.onDragEnter=function(e){var t=e.dragItem.columns;if(e.dragSource.type===u.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)},e.prototype.onDragLeave=function(e){if(!this.gridOptionsWrapper.isSuppressDragLeaveHidesColumns()&&!e.fromNudge){var t=e.dragSource.dragItemCallback().columns;this.setColumnsVisible(t,!1,"uiColumnDragged")}this.ensureIntervalCleared()},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.columnController.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.columnController.setColumnsPinned(i,t,o)}},e.prototype.onDragStop=function(){this.ensureIntervalCleared()},e.prototype.normaliseX=function(e){this.gridOptionsWrapper.isEnableRtl()&&(e=this.eContainer.clientWidth-e);return this.centerContainer&&(e+=this.gridPanel.getCenterViewportScrollLeft()),e},e.prototype.checkCenterForScrolling=function(e){if(this.centerContainer){var t=this.gridPanel.getCenterViewportScrollLeft(),o=t+this.gridPanel.getCenterWidth();this.gridOptionsWrapper.isEnableRtl()?(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){var o=this;if(void 0===t&&(t=!1),this.lastDraggingEvent=e,!p._.missing(e.hDirection)){var i=this.normaliseX(e.x);t||this.checkCenterForScrolling(i);var r=this.normaliseDirection(e.hDirection),n=e.dragSource.type,s=e.dragSource.dragItemCallback().columns;s=s.filter((function(e){return!e.getColDef().lockPinned||e.getPinned()==o.pinned})),this.attemptMoveColumns(n,s,r,i,t)}},e.prototype.normaliseDirection=function(e){if(!this.gridOptionsWrapper.isEnableRtl())return e;switch(e){case u.HDirection.Left:return u.HDirection.Right;case u.HDirection.Right:return u.HDirection.Left;default:console.error("ag-Grid: Unknown direction "+e)}},e.prototype.calculateOldIndex=function(e){var t=this.columnController.getAllGridColumns(),o=[];e.forEach((function(e){return o.push(t.indexOf(e))})),p._.sortNumberArray(o);var i=o[0];return p._.last(o)-i!==o.length-1?null:i},e.prototype.attemptMoveColumns=function(e,t,o,i,r){var n=o===u.HDirection.Left,s=o===u.HDirection.Right,a=this.calculateValidMoves(t,s,i),l=this.calculateOldIndex(t);if(0!==a.length){var p=a[0],c=null!==l&&!r;if(e==u.DragSourceType.HeaderCell&&(c=null!==l),c){if(n&&p>=l)return;if(s&&p<=l)return}for(var d=0;d<a.length;d++){var h=a[d];if(this.columnController.doesMovePassRules(t,h))return void this.columnController.moveColumns(t,h,"uiColumnDragged")}}},e.prototype.calculateValidMoves=function(e,t,o){var i,r=this.columnController.getDisplayedColumns(this.pinned),n=this.columnController.getAllGridColumns(),s=function(t){return e.indexOf(t)<0},a=r.filter((function(t){return e.indexOf(t)>=0})),l=r.filter(s),p=n.filter(s),u=0,c=o;if(t){var d=0;a.forEach((function(e){return d+=e.getActualWidth()})),c-=d}if(c>0){for(var h=0;h<l.length;h++){if((c-=l[h].getActualWidth())<0)break;u++}t&&u++}if(u>0){var f=l[u-1];i=p.indexOf(f)+1}else i=0;var g=[i];if(t)for(var y=i+1,v=n.length-1;y<=v;)g.push(y),y++;else{y=i,v=n.length-1;for(var m=n[y];y<=v&&this.isColumnHidden(r,m);)y++,g.push(y),m=n[y];y=i-1;for(;y>=0;)g.push(y),y--}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(u.DragAndDropService.ICON_LEFT,!0):this.dragAndDropService.setGhostIcon(u.DragAndDropService.ICON_RIGHT,!0))},e.prototype.ensureIntervalCleared=function(){this.moveInterval&&(window.clearInterval(this.movingIntervalId),this.movingIntervalId=null,this.dragAndDropService.setGhostIcon(u.DragAndDropService.ICON_MOVE))},e.prototype.moveInterval=function(){var e,t;if(this.intervalCount++,(e=10+5*this.intervalCount)>100&&(e=100),this.needToMoveLeft?t=this.gridPanel.scrollHorizontally(-e):this.needToMoveRight&&(t=this.gridPanel.scrollHorizontally(e)),0!==t)this.onDragging(this.lastDraggingEvent),this.failedMoveAttempts=0;else{this.failedMoveAttempts++;var o=this.lastDraggingEvent.dragItem.columns.filter((function(e){return!e.getColDef().lockPinned}));if(o.length>0&&(this.dragAndDropService.setGhostIcon(u.DragAndDropService.ICON_PINNED),this.failedMoveAttempts>7)){var i=this.needToMoveLeft?l.Column.PINNED_LEFT:l.Column.PINNED_RIGHT;this.setColumnsPinned(o,i,"uiColumnDragged"),this.dragAndDropService.nudge()}}},i([n.Autowired("loggerFactory"),r("design:type",s.LoggerFactory)],e.prototype,"loggerFactory",void 0),i([n.Autowired("columnController"),r("design:type",a.ColumnController)],e.prototype,"columnController",void 0),i([n.Autowired("dragAndDropService"),r("design:type",u.DragAndDropService)],e.prototype,"dragAndDropService",void 0),i([n.Autowired("gridOptionsWrapper"),r("design:type",c.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([n.PostConstruct,r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],e.prototype,"init",null),e}();t.MoveColumnController=d},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/var i=this&&this.__decorate||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},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var n=o(18),s=o(5),a=o(0),l=o(3),p=function(){function e(e){this.columnsToAggregate=[],this.columnsToGroup=[],this.columnsToPivot=[],this.pinned=e}return e.prototype.onDragEnter=function(e){var t=this;(this.clearColumnsList(),this.gridOptionsWrapper.isFunctionsReadOnly())||e.dragItem.columns.forEach((function(e){e.isPrimary()&&(e.isAnyFunctionActive()||(e.isAllowValue()?t.columnsToAggregate.push(e):e.isAllowRowGroup()?t.columnsToGroup.push(e):e.isAllowRowGroup()&&t.columnsToPivot.push(e)))}))},e.prototype.getIconName=function(){return this.columnsToAggregate.length+this.columnsToGroup.length+this.columnsToPivot.length>0?this.pinned?n.DragAndDropService.ICON_PINNED:n.DragAndDropService.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.columnController.addValueColumns(this.columnsToAggregate,"toolPanelDragAndDrop"),this.columnsToGroup.length>0&&this.columnController.addRowGroupColumns(this.columnsToGroup,"toolPanelDragAndDrop"),this.columnsToPivot.length>0&&this.columnController.addPivotColumns(this.columnsToPivot,"toolPanelDragAndDrop")},i([a.Autowired("columnController"),r("design:type",s.ColumnController)],e.prototype,"columnController",void 0),i([a.Autowired("gridOptionsWrapper"),r("design:type",l.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),e}();t.BodyDropPivotTarget=p},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),n=this&&this.__decorate||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},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(15),l=o(4),p=o(6),u=o(0),c=o(3),d=o(66),h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.registerGridComp=function(e){this.gridPanel=e,this.addDestroyableEventListener(this.eventService,p.Events.EVENT_BODY_HEIGHT_CHANGED,this.onBodyHeightChanged.bind(this)),this.addDestroyableEventListener(this.eventService,p.Events.EVENT_SCROLL_VISIBILITY_CHANGED,this.onScrollVisibilityChanged.bind(this)),this.checkPageSize()},t.prototype.notActive=function(){return!this.gridOptionsWrapper.isPaginationAutoPageSize()},t.prototype.onScrollVisibilityChanged=function(){this.checkPageSize()},t.prototype.onBodyHeightChanged=function(){this.checkPageSize()},t.prototype.checkPageSize=function(){if(!this.notActive()){var e=this.gridOptionsWrapper.getRowHeightAsNumber(),t=this.gridPanel.getBodyHeight();if(t>0){var o=Math.floor(t/e);this.gridOptionsWrapper.setProperty("paginationPageSize",o)}}},n([u.Autowired("eventService"),s("design:type",l.EventService)],t.prototype,"eventService",void 0),n([u.Autowired("gridOptionsWrapper"),s("design:type",c.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),n([u.Autowired("scrollVisibleService"),s("design:type",d.ScrollVisibleService)],t.prototype,"scrollVisibleService",void 0),t=n([u.Bean("paginationAutoPageSizeService")],t)}(a.BeanStub);t.PaginationAutoPageSizeService=h},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/var i=this&&this.__decorate||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},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),s=o(7),a=o(63),l=o(31),p=o(26),u=o(48),c=o(5),d=o(3),h=o(2),f=function(){function e(){this.timeLastPageEventProcessed=0}return e.prototype.init=function(){this.scrollWidth=this.gridOptionsWrapper.getScrollbarWidth()},e.prototype.registerGridComp=function(e){this.gridPanel=e},e.prototype.handlePageScrollingKey=function(e){var t=e.which||e.keyCode,o=e.altKey,i=e.ctrlKey,r=this.mouseEventService.getCellPositionForEvent(e);if(!r)return!1;var n=!1;switch(t){case s.Constants.KEY_PAGE_HOME:case s.Constants.KEY_PAGE_END:i||o||(this.onHomeOrEndKey(t),n=!0);break;case s.Constants.KEY_LEFT:case s.Constants.KEY_RIGHT:i&&!o&&(this.onCtrlLeftOrRight(t,r),n=!0);break;case s.Constants.KEY_UP:case s.Constants.KEY_DOWN:i&&!o&&(this.onCtrlUpOrDown(t,r),n=!0);break;case s.Constants.KEY_PAGE_DOWN:i||o||(this.onPageDown(r),n=!0);break;case s.Constants.KEY_PAGE_UP:i||o||(this.onPageUp(r),n=!0)}return n&&e.preventDefault(),n},e.prototype.isTimeSinceLastPageEventToRecent=function(){return(new Date).getTime()-this.timeLastPageEventProcessed<100},e.prototype.setTimeLastPageEventProcessed=function(){this.timeLastPageEventProcessed=(new Date).getTime()},e.prototype.onPageDown=function(e){if(!this.isTimeSinceLastPageEventToRecent()){var t=this.gridPanel.getVScrollPosition(),o=t.bottom-t.top;this.gridPanel.isHorizontalScrollShowing()&&(o-=this.scrollWidth);var i=this.paginationProxy.getPixelOffset(),r=t.top+o,n=this.paginationProxy.getRowIndexAtPixel(r+i),s=this.paginationProxy.getRow(e.rowIndex).rowTop+o-i,a=this.paginationProxy.getRowIndexAtPixel(s+i),l=this.paginationProxy.getPageLastRow();a>l&&(a=l),n>l&&(n=l),this.navigateTo(n,"top",null,a,e.column),this.setTimeLastPageEventProcessed()}},e.prototype.onPageUp=function(e){if(!this.isTimeSinceLastPageEventToRecent()){var t=this.gridPanel.getVScrollPosition(),o=t.bottom-t.top;this.gridPanel.isHorizontalScrollShowing()&&(o-=this.scrollWidth);var i=this.paginationProxy.getPixelOffset(),r=t.top,n=this.paginationProxy.getRowIndexAtPixel(r+i),s=this.paginationProxy.getRow(e.rowIndex),a=s.rowTop+s.rowHeight-o-i,l=this.paginationProxy.getRowIndexAtPixel(a+i),p=this.paginationProxy.getPageFirstRow();l<p&&(l=p),n<p&&(n=p),this.navigateTo(n,"bottom",null,l,e.column),this.setTimeLastPageEventProcessed()}},e.prototype.navigateTo=function(e,t,o,i,r){if(h._.exists(o)&&this.gridPanel.ensureColumnVisible(o),h._.exists(e)&&this.gridPanel.ensureIndexVisible(e,t),this.animationFrameService.flushAllFrames(),this.focusedCellController.setFocusedCell(i,r,null,!0),this.rangeController){var n={rowIndex:i,rowPinned:null,column:r};this.rangeController.setRangeToCell(n)}},e.prototype.onCtrlUpOrDown=function(e,t){var o=e===s.Constants.KEY_UP?0:this.paginationProxy.getPageLastRow();this.navigateTo(o,null,t.column,o,t.column)},e.prototype.onCtrlLeftOrRight=function(e,t){var o=e===s.Constants.KEY_LEFT,i=this.columnController.getAllDisplayedColumns(),r=o?i[0]:h._.last(i);this.navigateTo(t.rowIndex,null,r,t.rowIndex,r)},e.prototype.onHomeOrEndKey=function(e){var t=e===s.Constants.KEY_PAGE_HOME,o=this.columnController.getAllDisplayedColumns(),i=t?o[0]:h._.last(o),r=t?0:this.paginationProxy.getPageLastRow();this.navigateTo(r,null,i,r,i)},i([n.Autowired("mouseEventService"),r("design:type",a.MouseEventService)],e.prototype,"mouseEventService",void 0),i([n.Autowired("paginationProxy"),r("design:type",l.PaginationProxy)],e.prototype,"paginationProxy",void 0),i([n.Autowired("focusedCellController"),r("design:type",p.FocusedCellController)],e.prototype,"focusedCellController",void 0),i([n.Autowired("animationFrameService"),r("design:type",u.AnimationFrameService)],e.prototype,"animationFrameService",void 0),i([n.Optional("rangeController"),r("design:type",Object)],e.prototype,"rangeController",void 0),i([n.Autowired("columnController"),r("design:type",c.ColumnController)],e.prototype,"columnController",void 0),i([n.Autowired("gridOptionsWrapper"),r("design:type",d.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([n.PostConstruct,r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],e.prototype,"init",null),e=i([n.Bean("navigationService")],e)}();t.NavigationService=f},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),n=this&&this.__decorate||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},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a,l=o(3),p=o(0),u=o(8),c=o(19),d=o(11),h=o(2);!function(e){e[e.Loading=0]="Loading",e[e.NoRows=1]="NoRows"}(a||(a={}));var f=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return r(t,e),t.prototype.postConstruct=function(){this.gridOptionsWrapper.addLayoutElement(this.eOverlayWrapper),this.setDisplayed(!1)},t.prototype.setWrapperTypeClass=function(e){h._.addOrRemoveCssClass(this.eOverlayWrapper,"ag-overlay-loading-wrapper",e===a.Loading),h._.addOrRemoveCssClass(this.eOverlayWrapper,"ag-overlay-no-rows-wrapper",e===a.NoRows)},t.prototype.showLoadingOverlay=function(){var e=this;this.setWrapperTypeClass(a.Loading),this.destroyActiveOverlay();var t={api:this.gridOptionsWrapper.getApi()};this.userComponentFactory.newLoadingOverlayComponent(t).then((function(t){e.eOverlayWrapper.appendChild(t.getGui()),e.activeOverlay=t})),this.setDisplayed(!0)},t.prototype.showNoRowsOverlay=function(){var e=this;this.setWrapperTypeClass(a.NoRows),this.destroyActiveOverlay();var t={api:this.gridOptionsWrapper.getApi()};this.userComponentFactory.newNoRowsOverlayComponent(t).then((function(t){e.eOverlayWrapper.appendChild(t.getGui()),e.activeOverlay=t})),this.setDisplayed(!0)},t.prototype.destroyActiveOverlay=function(){this.activeOverlay&&(this.activeOverlay.destroy&&this.activeOverlay.destroy(),this.activeOverlay=void 0,h._.clearElement(this.eOverlayWrapper))},t.prototype.hideOverlay=function(){this.destroyActiveOverlay(),this.setDisplayed(!1)},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.destroyActiveOverlay()},t.TEMPLATE='<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>',n([p.Autowired("gridOptionsWrapper"),s("design:type",l.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),n([p.Autowired("userComponentFactory"),s("design:type",c.UserComponentFactory)],t.prototype,"userComponentFactory",void 0),n([d.RefSelector("eOverlayWrapper"),s("design:type",HTMLElement)],t.prototype,"eOverlayWrapper",void 0),n([p.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"postConstruct",null),t}(u.Component);t.OverlayWrapperComponent=f},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),n=this&&this.__decorate||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},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(3),l=o(10),p=o(5),u=o(20),c=o(17),d=o(4),h=o(152),f=o(14),g=o(32),y=o(0),v=o(26),m=o(8),C=o(9),w=o(11),_=o(6),b=o(94),E=o(192),R=o(2),P=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.init=function(){var e=this;this.logger=this.loggerFactory.create("GridCore");var o=this.enterprise?t.TEMPLATE_ENTERPRISE:t.TEMPLATE_NORMAL;if(this.setTemplate(o),[this.gridApi,this.filterManager,this.rowRenderer,this.popupService].forEach((function(t){return t.registerGridCore(e)})),this.enterprise&&this.clipboardService.registerGridCore(this),this.gridOptionsWrapper.addLayoutElement(this.getGui()),this.setSideBarVisible(this.gridOptionsWrapper.isShowToolPanel()),this.eGridDiv.appendChild(this.getGui()),this.addDestroyFunc((function(){e.eGridDiv.removeChild(e.getGui())})),this.$scope){var i=this.$scope.$watch(this.quickFilterOnScope,(function(t){return e.filterManager.setQuickFilter(t)}));this.addDestroyFunc(i)}this.addRtlSupport(),this.logger.log("ready"),this.gridOptionsWrapper.addLayoutElement(this.eRootWrapperBody);var r=this.gridPanel.getGui();this.addDestroyableEventListener(r,"focusin",(function(){R._.addCssClass(r,"ag-has-focus")})),this.addDestroyableEventListener(r,"focusout",(function(e){r.contains(e.relatedTarget)||R._.removeCssClass(r,"ag-has-focus")}));var n=this.resizeObserverService.observeResize(this.eGridDiv,this.onGridSizeChanged.bind(this));this.addDestroyFunc((function(){return n()}))},t.prototype.onGridSizeChanged=function(){var e={type:_.Events.EVENT_GRID_SIZE_CHANGED,api:this.gridApi,columnApi:this.columnApi,clientWidth:this.eGridDiv.clientWidth,clientHeight:this.eGridDiv.clientHeight};this.eventService.dispatchEvent(e)},t.prototype.addRtlSupport=function(){var e=this.gridOptionsWrapper.isEnableRtl()?"ag-rtl":"ag-ltr";R._.addCssClass(this.getGui(),e)},t.prototype.getRootGui=function(){return this.getGui()},t.prototype.isSideBarVisible=function(){return!!this.sideBarComp&&this.sideBarComp.isDisplayed()},t.prototype.setSideBarVisible=function(e){this.sideBarComp?this.sideBarComp.setDisplayed(e):e&&console.warn("ag-Grid: toolPanel is only available in ag-Grid Enterprise")},t.prototype.closeToolPanel=function(){this.sideBarComp?this.sideBarComp.close():console.warn("ag-Grid: toolPanel is only available in ag-Grid Enterprise")},t.prototype.getSideBar=function(){return this.gridOptions.sideBar},t.prototype.refreshSideBar=function(){this.sideBarComp&&this.sideBarComp.refresh()},t.prototype.setSideBar=function(e){this.eRootWrapperBody.removeChild(this.sideBarComp.getGui()),this.gridOptions.sideBar=E.SideBarDefParser.parse(e),this.sideBarComp.reset(),this.eRootWrapperBody.appendChild(this.sideBarComp.getGui())},t.prototype.getOpenedToolPanel=function(){return this.sideBarComp?this.sideBarComp.openedItem():null},t.prototype.openToolPanel=function(e){this.sideBarComp?this.sideBarComp.openToolPanel(e):console.warn("ag-Grid: toolPanel is only available in ag-Grid Enterprise")},t.prototype.isToolPanelShowing=function(){return this.sideBarComp.isToolPanelShowing()},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.logger.log("Grid DOM removed")},t.prototype.ensureNodeVisible=function(e,t){if(void 0===t&&(t="top"),this.doingVirtualPaging)throw new Error("Cannot use ensureNodeVisible when doing virtual paging, as we cannot check rows that are not in memory");for(var o=this.rowModel.getRowCount(),i="function"==typeof e,r=-1,n=0;n<o;n++){var s=this.rowModel.getRow(n);if(i){if(e(s)){r=n;break}}else if(e===s||e===s.data){r=n;break}}r>=0&&this.gridPanel.ensureIndexVisible(r,t)},t.TEMPLATE_NORMAL='<div class="ag-root-wrapper">\n <div class="ag-root-wrapper-body" ref="rootWrapperBody">\n <ag-grid-comp ref="gridPanel"></ag-grid-comp>\n </div>\n <ag-pagination></ag-pagination>\n </div>',t.TEMPLATE_ENTERPRISE='<div class="ag-root-wrapper">\n <ag-grid-header-drop-zones></ag-grid-header-drop-zones>\n <div ref="rootWrapperBody" class="ag-root-wrapper-body">\n <ag-grid-comp ref="gridPanel"></ag-grid-comp>\n <ag-side-bar ref="sideBar"></ag-side-bar>\n </div>\n <ag-status-bar ref="statusBar"></ag-status-bar>\n <ag-pagination></ag-pagination>\n <ag-watermark></ag-watermark>\n </div>',n([y.Autowired("enterprise"),s("design:type",Boolean)],t.prototype,"enterprise",void 0),n([y.Autowired("gridOptions"),s("design:type",Object)],t.prototype,"gridOptions",void 0),n([y.Autowired("gridOptionsWrapper"),s("design:type",a.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),n([y.Autowired("rowModel"),s("design:type",Object)],t.prototype,"rowModel",void 0),n([y.Autowired("resizeObserverService"),s("design:type",b.ResizeObserverService)],t.prototype,"resizeObserverService",void 0),n([y.Autowired("columnController"),s("design:type",p.ColumnController)],t.prototype,"columnController",void 0),n([y.Autowired("rowRenderer"),s("design:type",u.RowRenderer)],t.prototype,"rowRenderer",void 0),n([y.Autowired("filterManager"),s("design:type",c.FilterManager)],t.prototype,"filterManager",void 0),n([y.Autowired("eventService"),s("design:type",d.EventService)],t.prototype,"eventService",void 0),n([y.Autowired("eGridDiv"),s("design:type",HTMLElement)],t.prototype,"eGridDiv",void 0),n([y.Autowired("$scope"),s("design:type",Object)],t.prototype,"$scope",void 0),n([y.Autowired("quickFilterOnScope"),s("design:type",String)],t.prototype,"quickFilterOnScope",void 0),n([y.Autowired("popupService"),s("design:type",g.PopupService)],t.prototype,"popupService",void 0),n([y.Autowired("focusedCellController"),s("design:type",v.FocusedCellController)],t.prototype,"focusedCellController",void 0),n([y.Autowired("loggerFactory"),s("design:type",f.LoggerFactory)],t.prototype,"loggerFactory",void 0),n([y.Autowired("columnApi"),s("design:type",l.ColumnApi)],t.prototype,"columnApi",void 0),n([y.Autowired("gridApi"),s("design:type",C.GridApi)],t.prototype,"gridApi",void 0),n([y.Optional("clipboardService"),s("design:type",Object)],t.prototype,"clipboardService",void 0),n([w.RefSelector("gridPanel"),s("design:type",h.GridPanel)],t.prototype,"gridPanel",void 0),n([w.RefSelector("sideBar"),s("design:type",Object)],t.prototype,"sideBarComp",void 0),n([w.RefSelector("rootWrapperBody"),s("design:type",HTMLElement)],t.prototype,"eRootWrapperBody",void 0),n([y.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"init",null),t}(m.Component);t.GridCore=P},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/var i=this&&this.__decorate||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},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),s=o(17),a=o(32),l=o(3),p=o(4),u=o(2),c=function(){function e(){}return e.prototype.hideActiveMenu=function(){this.hidePopup&&this.hidePopup()},e.prototype.showMenuAfterMouseEvent=function(e,t){var o=this;this.showPopup(e,(function(i){o.popupService.positionPopupUnderMouseEvent({column:e,type:"columnMenu",mouseEvent:t,ePopup:i})}))},e.prototype.showMenuAfterButtonClick=function(e,t){var o=this;this.showPopup(e,(function(i){o.popupService.positionPopupUnderComponent({type:"columnMenu",eventSource:t,ePopup:i,keepWithinBounds:!0,column:e})}))},e.prototype.showPopup=function(e,t){var o,i=this,r=this.filterManager.getOrCreateFilterWrapper(e,"COLUMN_MENU"),n=document.createElement("div");u._.addCssClass(n,"ag-menu"),r.guiPromise.promise.then((function(e){n.appendChild(e)}));var s=function(e){"horizontal"===e.direction&&o()};this.eventService.addEventListener("bodyScroll",s);o=this.popupService.addAsModalPopup(n,!0,(function(){i.eventService.removeEventListener("bodyScroll",s),e.setMenuVisible(!1,"contextMenu")})),t(n),r.filterPromise.then((function(e){if(e.afterGuiAttached){var t={hidePopup:o};e.afterGuiAttached(t)}})),this.hidePopup=o,e.setMenuVisible(!0,"contextMenu")},e.prototype.isMenuEnabled=function(e){return e.isFilterAllowed()},i([n.Autowired("eventService"),r("design:type",p.EventService)],e.prototype,"eventService",void 0),i([n.Autowired("filterManager"),r("design:type",s.FilterManager)],e.prototype,"filterManager",void 0),i([n.Autowired("popupService"),r("design:type",a.PopupService)],e.prototype,"popupService",void 0),i([n.Autowired("gridOptionsWrapper"),r("design:type",l.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),e=i([n.Bean("menuFactory")],e)}();t.StandardMenuFactory=c},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/var i=this&&this.__decorate||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},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),s=o(3),a=o(205),l=o(153),p=function(){function e(){}return e.prototype.execute=function(e){var t=e.rowNode,o=e.changedPath;this.filterService.filter(o),this.selectableService.updateSelectableAfterFiltering(t)},i([n.Autowired("gridOptionsWrapper"),r("design:type",s.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([n.Autowired("selectableService"),r("design:type",l.SelectableService)],e.prototype,"selectableService",void 0),i([n.Autowired("filterService"),r("design:type",a.FilterService)],e.prototype,"filterService",void 0),e=i([n.Bean("filterStage")],e)}();t.FilterStage=p},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/var i=this&&this.__decorate||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},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),s=o(17),a=o(3),l=function(){function e(){}return e.prototype.postConstruct=function(){this.doingTreeData=this.gridOptionsWrapper.isTreeData()},e.prototype.filter=function(e){var t=this.filterManager.isAnyFilterPresent();this.filterNodes(t,e)},e.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(e);return t||i})):t.childrenAfterGroup,o.setAllChildrenCount(t)):(t.childrenAfterFilter=t.childrenAfterGroup,t.setAllChildrenCount(null))};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(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)}},e.prototype.setAllChildrenCountTreeData=function(e){var t=0;e.childrenAfterFilter.forEach((function(e){t++,t+=e.allChildrenCount})),e.setAllChildrenCount(t)},e.prototype.setAllChildrenCountGridGrouping=function(e){var t=0;e.childrenAfterFilter.forEach((function(e){e.group?t+=e.allChildrenCount:t++})),e.setAllChildrenCount(t)},e.prototype.setAllChildrenCount=function(e){this.doingTreeData?this.setAllChildrenCountTreeData(e):this.setAllChildrenCountGridGrouping(e)},e.prototype.doingTreeDataFiltering=function(){return this.gridOptionsWrapper.isTreeData()&&!this.gridOptionsWrapper.isExcludeChildrenWhenTreeDataFiltering()},i([n.Autowired("filterManager"),r("design:type",s.FilterManager)],e.prototype,"filterManager",void 0),i([n.Autowired("gridOptionsWrapper"),r("design:type",a.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([n.PostConstruct,r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],e.prototype,"postConstruct",null),e=i([n.Bean("filterService")],e)}();t.FilterService=l},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/var i=this&&this.__decorate||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},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),s=o(3),a=o(207),l=o(27),p=o(5),u=o(2),c=function(){function e(){}return e.prototype.execute=function(e){var t=this.sortController.getSortForRowController(),o=u._.exists(t)&&t.length>0,i=o&&u._.exists(e.rowNodeTransactions)&&this.gridOptionsWrapper.isDeltaSort(),r=i?this.calculateDirtyNodes(e.rowNodeTransactions):null,n=this.columnController.getValueColumns(),s=u._.missingOrEmpty(n);this.sortService.sort(t,o,i,r,e.changedPath,s)},e.prototype.calculateDirtyNodes=function(e){var t={},o=function(e){e&&e.forEach((function(e){return t[e.id]=!0}))};return e.forEach((function(e){o(e.add),o(e.update),o(e.remove)})),t},i([n.Autowired("gridOptionsWrapper"),r("design:type",s.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([n.Autowired("sortService"),r("design:type",a.SortService)],e.prototype,"sortService",void 0),i([n.Autowired("sortController"),r("design:type",l.SortController)],e.prototype,"sortController",void 0),i([n.Autowired("columnController"),r("design:type",p.ColumnController)],e.prototype,"columnController",void 0),e=i([n.Bean("sortStage")],e)}();t.SortStage=c},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/var i=this&&this.__decorate||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},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),s=o(27),a=o(24),l=o(3),p=o(5),u=o(2),c=function(){function e(){}return e.prototype.init=function(){this.postSortFunc=this.gridOptionsWrapper.getPostSortFunc()},e.prototype.sort=function(e,t,o,i,r,n){var s=this;r.forEachChangedNodeDepthFirst((function(a){if(s.pullDownGroupDataForHideOpenParents(a.childrenAfterFilter,!0),t){var l=o?s.doDeltaSort(a,e,i,r,n):s.doFullSort(a,e);a.childrenAfterSort=l.map((function(e){return e.rowNode}))}else a.childrenAfterSort=a.childrenAfterFilter.slice(0);s.updateChildIndexes(a),s.postSortFunc&&s.postSortFunc(a.childrenAfterSort)})),this.updateGroupDataForHiddenOpenParents(r)},e.prototype.doFullSort=function(e,t){var o=e.childrenAfterFilter.map(this.mapNodeToSortedNode.bind(this));return o.sort(this.compareRowNodes.bind(this,t)),o},e.prototype.mapNodeToSortedNode=function(e,t){return{currentPos:t,rowNode:e}},e.prototype.doDeltaSort=function(e,t,o,i,r){var n=e.childrenAfterSort.filter((function(e){var t=!o[e.id],n=r||i.canSkip(e);return t&&n})).map(this.mapNodeToSortedNode.bind(this)),s={};n.forEach((function(e){return s[e.rowNode.id]=e.rowNode}));var a=e.childrenAfterFilter.filter((function(e){return!s[e.id]})).map(this.mapNodeToSortedNode.bind(this));return a.sort(this.compareRowNodes.bind(this,t)),0===a.length?n:0===n.length?a:this.mergeSortedArrays(t,n,a)},e.prototype.mergeSortedArrays=function(e,t,o){for(var i=[],r=0,n=0;r<t.length&&n<o.length;){this.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},e.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=-1===a.inverter,p=this.getValue(i,a.column),c=this.getValue(r,a.column),d=void 0;if(0!==(d=a.column.getColDef().comparator?a.column.getColDef().comparator(p,c,i,r,l):u._.defaultComparator(p,c,this.gridOptionsWrapper.isAccentedSort())))return d*a.inverter}return t.currentPos-o.currentPos},e.prototype.getValue=function(e,t){return this.valueService.getValue(t,e)},e.prototype.updateChildIndexes=function(e){if(!u._.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)}},e.prototype.updateGroupDataForHiddenOpenParents=function(e){var t=this;if(this.gridOptionsWrapper.isGroupHideOpenParents()){var o=function(e){t.pullDownGroupDataForHideOpenParents(e.childrenAfterSort,!1),e.childrenAfterSort.forEach((function(e){e.hasChildren()&&o(e)}))};e.executeFromRootNode((function(e){return o(e)}))}},e.prototype.pullDownGroupDataForHideOpenParents=function(e,t){var o=this;u._.missing(e)||this.gridOptionsWrapper.isGroupHideOpenParents()&&e.forEach((function(e){o.columnController.getGroupDisplayColumns().forEach((function(i){var r=i.getColDef().showRowGroup;if("string"==typeof r){var n=r,s=o.columnController.getPrimaryColumn(n);if(!(s===e.rowGroupColumn))if(t)e.setGroupValue(i.getId(),null);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")}))}))},i([n.Autowired("sortController"),r("design:type",s.SortController)],e.prototype,"sortController",void 0),i([n.Autowired("columnController"),r("design:type",p.ColumnController)],e.prototype,"columnController",void 0),i([n.Autowired("valueService"),r("design:type",a.ValueService)],e.prototype,"valueService",void 0),i([n.Autowired("gridOptionsWrapper"),r("design:type",l.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([n.PostConstruct,r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],e.prototype,"init",null),e=i([n.Bean("sortService")],e)}();t.SortService=c},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/var i=this&&this.__decorate||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},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),s=o(22),a=o(3),l=o(23),p=o(4),u=o(5),c=o(2),d=function(){function e(){}return e.prototype.execute=function(e){var t=e.rowNode,o=[],i={value:0},r=this.columnController.isPivotMode(),n=r&&t.leafGroup,s=n?[t]:t.childrenAfterSort;return this.recursivelyAddToRowsToDisplay(s,o,i,r,0),!n&&this.gridOptionsWrapper.isGroupIncludeTotalFooter()&&(this.ensureFooterNodeExists(t),this.addRowNodeToRowsToDisplay(t.sibling,o,i,0)),o},e.prototype.recursivelyAddToRowsToDisplay=function(e,t,o,i,r){if(!c._.missingOrEmpty(e))for(var n=this.gridOptionsWrapper.isGroupSuppressRow(),s=this.gridOptionsWrapper.isGroupHideOpenParents(),a=this.gridOptionsWrapper.isGroupRemoveSingleChildren(),l=!a&&this.gridOptionsWrapper.isGroupRemoveLowestSingleChildren(),p=0;p<e.length;p++){var u=e[p],d=u.hasChildren(),h=n&&d,f=i&&!d,g=a&&d&&1===u.childrenAfterGroup.length,y=l&&d&&u.leafGroup&&1===u.childrenAfterGroup.length,v=i&&u.leafGroup,m=s&&u.expanded&&!v;if(!(f||h||m||g||y)&&this.addRowNodeToRowsToDisplay(u,t,o,r),!i||!u.leafGroup)if(d){var C=g||y;if(u.expanded||C){var w=C?r:r+1;this.recursivelyAddToRowsToDisplay(u.childrenAfterSort,t,o,i,w),this.gridOptionsWrapper.isGroupIncludeFooter()&&(this.ensureFooterNodeExists(u),this.addRowNodeToRowsToDisplay(u.sibling,t,o,r))}}else if(u.master&&u.expanded){var _=this.createDetailNode(u);this.addRowNodeToRowsToDisplay(_,t,o,r)}}},e.prototype.addRowNodeToRowsToDisplay=function(e,t,o,i){t.push(e);var r=this.gridOptionsWrapper.isGroupMultiAutoColumn();e.setUiLevel(r?0:i)},e.prototype.ensureFooterNodeExists=function(e){if(!c._.exists(e.sibling)){var t=new s.RowNode;this.context.wireBean(t),Object.keys(e).forEach((function(o){t[o]=e[o]})),t.footer=!0,t.rowTop=null,t.oldRowTop=null,c._.exists(t.id)&&(t.id="rowGroupFooter_"+t.id),t.sibling=e,e.sibling=t}},e.prototype.createDetailNode=function(e){if(c._.exists(e.detailNode))return e.detailNode;var t=new s.RowNode;return this.context.wireBean(t),t.detail=!0,t.selectable=!1,t.flower=t.detail,t.parent=e,c._.exists(e.id)&&(t.id="detail_"+e.id),t.data=e.data,t.level=e.level+1,e.detailNode=t,e.childFlower=e.detailNode,t},i([n.Autowired("gridOptionsWrapper"),r("design:type",a.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([n.Autowired("selectionController"),r("design:type",l.SelectionController)],e.prototype,"selectionController",void 0),i([n.Autowired("eventService"),r("design:type",p.EventService)],e.prototype,"eventService",void 0),i([n.Autowired("context"),r("design:type",n.Context)],e.prototype,"context",void 0),i([n.Autowired("columnController"),r("design:type",u.ColumnController)],e.prototype,"columnController",void 0),e=i([n.Bean("flattenStage")],e)}();t.FlattenStage=d},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),n=this&&this.__decorate||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},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(3),l=o(0),p=o(4),u=o(23),c=o(6),d=o(27),h=o(17),f=o(7),g=o(271),y=o(15),v=o(154),m=o(210),C=o(9),w=o(10),_=o(2),b=o(20),E=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(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.gridOptionsWrapper.isRowModelInfinite()&&(this.rowHeight=this.gridOptionsWrapper.getRowHeightAsNumber(),this.addEventListeners(),this.setDatasource(this.gridOptionsWrapper.getDatasource()),this.addDestroyFunc((function(){return e.destroyCache()})))},t.prototype.destroyDatasource=function(){this.datasource&&(this.datasource.destroy&&this.datasource.destroy(),this.rowRenderer.datasourceChanged(),this.datasource=null)},t.prototype.isLastRowFound=function(){return!!this.infiniteCache&&this.infiniteCache.isMaxRowFound()},t.prototype.addEventListeners=function(){this.addDestroyableEventListener(this.eventService,c.Events.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this)),this.addDestroyableEventListener(this.eventService,c.Events.EVENT_SORT_CHANGED,this.onSortChanged.bind(this)),this.addDestroyableEventListener(this.eventService,c.Events.EVENT_COLUMN_EVERYTHING_CHANGED,this.onColumnEverything.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!_._.jsonEquals(this.cacheParams.sortModel,this.sortController.getSortModel())},t.prototype.getType=function(){return f.Constants.ROW_MODEL_TYPE_INFINITE},t.prototype.setDatasource=function(e){this.destroyDatasource(),this.datasource=e,e&&(this.checkForDeprecated(),this.reset())},t.prototype.checkForDeprecated=function(){var e=this.datasource;_._.exists(e.maxConcurrentRequests)&&console.error("ag-Grid: since version 5.1.x, maxConcurrentRequests is replaced with grid property maxConcurrentDatasourceRequests"),_._.exists(e.maxPagesInCache)&&console.error("ag-Grid: since version 5.1.x, maxPagesInCache is replaced with grid property maxPagesInPaginationCache"),_._.exists(e.overflowSize)&&console.error("ag-Grid: since version 5.1.x, overflowSize is replaced with grid property paginationOverflowSize"),_._.exists(e.blockSize)&&console.error("ag-Grid: since version 5.1.x, pageSize/blockSize is replaced with grid property infinitePageSize")},t.prototype.isEmpty=function(){return _._.missing(this.infiniteCache)},t.prototype.isRowsToRender=function(){return _._.exists(this.infiniteCache)},t.prototype.getNodesInRangeForSelection=function(e,t){return this.infiniteCache?this.infiniteCache.getRowNodesInRange(e,t):[]},t.prototype.reset=function(){if(!_._.missing(this.datasource)){_._.exists(this.gridOptionsWrapper.getRowNodeIdFunc())||this.selectionController.reset(),this.resetCache();var e=this.createModelUpdatedEvent();this.eventService.dispatchEvent(e)}},t.prototype.createModelUpdatedEvent=function(){return{type:c.Events.EVENT_MODEL_UPDATED,api:this.gridApi,columnApi:this.columnApi,newPage:!1,newData:!1,keepRenderedRows:!1,animate:!1}},t.prototype.resetCache=function(){this.destroyCache();var e=this.gridOptionsWrapper.getMaxConcurrentDatasourceRequests(),t=this.gridOptionsWrapper.getBlockLoadDebounceMillis();this.rowNodeBlockLoader=new m.RowNodeBlockLoader(e,t),this.getContext().wireBean(this.rowNodeBlockLoader),this.cacheParams={datasource:this.datasource,filterModel:this.filterManager.getFilterModel(),sortModel:this.sortController.getSortModel(),rowNodeBlockLoader:this.rowNodeBlockLoader,maxConcurrentRequests:e,overflowSize:this.gridOptionsWrapper.getCacheOverflowSize(),initialRowCount:this.gridOptionsWrapper.getInfiniteInitialRowCount(),maxBlocksInCache:this.gridOptionsWrapper.getMaxBlocksInCache(),blockSize:this.gridOptionsWrapper.getCacheBlockSize(),rowHeight:this.gridOptionsWrapper.getRowHeightAsNumber(),lastAccessedSequence:new _.NumberSequence},this.cacheParams.maxConcurrentRequests&&this.cacheParams.maxConcurrentRequests>=1||(this.cacheParams.maxConcurrentRequests=2),this.cacheParams.blockSize&&this.cacheParams.blockSize>=1||(this.cacheParams.blockSize=100),this.cacheParams.initialRowCount>=1||(this.cacheParams.initialRowCount=0),this.cacheParams.overflowSize>=1||(this.cacheParams.overflowSize=1),this.infiniteCache=new g.InfiniteCache(this.cacheParams),this.getContext().wireBean(this.infiniteCache),this.infiniteCache.addEventListener(v.RowNodeCache.EVENT_CACHE_UPDATED,this.onCacheUpdated.bind(this))},t.prototype.destroyCache=function(){this.infiniteCache&&(this.infiniteCache.destroy(),this.infiniteCache=null),this.rowNodeBlockLoader&&(this.rowNodeBlockLoader.destroy(),this.rowNodeBlockLoader=null)},t.prototype.onCacheUpdated=function(){var e=this.createModelUpdatedEvent();this.eventService.dispatchEvent(e)},t.prototype.getRow=function(e){return this.infiniteCache?this.infiniteCache.getRow(e):null},t.prototype.getRowNode=function(e){var t=null;return this.forEachNode((function(o){o.id===e&&(t=o)})),t},t.prototype.forEachNode=function(e){this.infiniteCache&&this.infiniteCache.forEachNodeDeep(e,new _.NumberSequence)},t.prototype.getCurrentPageHeight=function(){return this.getRowCount()*this.rowHeight},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.getVirtualRowCount():0},t.prototype.updateRowData=function(e){_._.exists(e.remove)||_._.exists(e.update)?console.warn("ag-Grid: updateRowData for InfiniteRowModel does not support remove or update, only add"):_._.missing(e.addIndex)?console.warn("ag-Grid: updateRowData for InfiniteRowModel requires add and addIndex to be set"):this.infiniteCache&&this.infiniteCache.insertItemsAtIndex(e.addIndex,e.add)},t.prototype.isRowPresent=function(e){return!1},t.prototype.refreshCache=function(){this.infiniteCache&&this.infiniteCache.refreshCache()},t.prototype.purgeCache=function(){this.infiniteCache&&this.infiniteCache.purgeCache()},t.prototype.getVirtualRowCount=function(){return this.infiniteCache?this.infiniteCache.getVirtualRowCount():null},t.prototype.isMaxRowFound=function(){if(this.infiniteCache)return this.infiniteCache.isMaxRowFound()},t.prototype.setVirtualRowCount=function(e,t){this.infiniteCache&&this.infiniteCache.setVirtualRowCount(e,t)},t.prototype.getBlockState=function(){return this.rowNodeBlockLoader?this.rowNodeBlockLoader.getBlockState():null},n([l.Autowired("gridOptionsWrapper"),s("design:type",a.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),n([l.Autowired("filterManager"),s("design:type",h.FilterManager)],t.prototype,"filterManager",void 0),n([l.Autowired("sortController"),s("design:type",d.SortController)],t.prototype,"sortController",void 0),n([l.Autowired("selectionController"),s("design:type",u.SelectionController)],t.prototype,"selectionController",void 0),n([l.Autowired("eventService"),s("design:type",p.EventService)],t.prototype,"eventService",void 0),n([l.Autowired("gridApi"),s("design:type",C.GridApi)],t.prototype,"gridApi",void 0),n([l.Autowired("columnApi"),s("design:type",w.ColumnApi)],t.prototype,"columnApi",void 0),n([l.Autowired("rowRenderer"),s("design:type",b.RowRenderer)],t.prototype,"rowRenderer",void 0),n([l.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"init",null),n([l.PreDestroy,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"destroyDatasource",null),t=n([l.Bean("rowModel")],t)}(y.BeanStub);t.InfiniteRowModel=E},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/var i=this&&this.__decorate||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},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},n=this&&this.__param||function(e,t){return function(o,i){t(o,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});var s=o(95),a=o(14),l=o(0),p=o(2),u=function(){function e(e,t){this.activeBlockLoadsCount=0,this.blocks=[],this.active=!0,this.maxConcurrentRequests=e,t&&t>0&&(this.checkBlockToLoadDebounce=p._.debounce(this.performCheckBlocksToLoad.bind(this),t))}return e.prototype.setBeans=function(e){this.logger=e.create("RowNodeBlockLoader")},e.prototype.addBlock=function(e){this.blocks.push(e)},e.prototype.removeBlock=function(e){p._.removeFromArray(this.blocks,e)},e.prototype.destroy=function(){this.active=!1},e.prototype.loadComplete=function(){this.activeBlockLoadsCount--},e.prototype.checkBlockToLoad=function(){this.checkBlockToLoadDebounce?this.checkBlockToLoadDebounce():this.performCheckBlocksToLoad()},e.prototype.performCheckBlocksToLoad=function(){if(this.active)if(this.printCacheStatus(),this.activeBlockLoadsCount>=this.maxConcurrentRequests)this.logger.log("checkBlockToLoad: max loads exceeded");else{var e=null;this.blocks.forEach((function(t){t.getState()===s.RowNodeBlock.STATE_DIRTY&&(e=t)})),e?(e.load(),this.activeBlockLoadsCount++,this.logger.log("checkBlockToLoad: loading page "+e.getBlockNumber()),this.printCacheStatus()):this.logger.log("checkBlockToLoad: no pages to load")}},e.prototype.getBlockState=function(){var e={};return this.blocks.forEach((function(t){var o=t.getNodeIdPrefix(),i={blockNumber:t.getBlockNumber(),startRow:t.getStartRow(),endRow:t.getEndRow(),pageStatus:t.getState()};p._.exists(o)?e[o+t.getBlockNumber()]=i:e[t.getBlockNumber()]=i})),e},e.prototype.printCacheStatus=function(){this.logger.isLogging()&&this.logger.log("printCacheStatus: activePageLoadsCount = "+this.activeBlockLoadsCount+", blocks = "+JSON.stringify(this.getBlockState()))},e.prototype.isLoading=function(){return this.activeBlockLoadsCount>0},i([n(0,l.Qualifier("loggerFactory")),r("design:type",Function),r("design:paramtypes",[a.LoggerFactory]),r("design:returntype",void 0)],e.prototype,"setBeans",null),e}();t.RowNodeBlockLoader=u},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/var i=this&&this.__decorate||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},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var n,s=o(7),a=o(3),l=o(10),p=o(5),u=o(17),c=o(22),d=o(4),h=o(6),f=o(0),g=o(23),y=o(212),v=o(85),m=o(24),C=o(46),w=o(9),_=o(2);!function(e){e[e.Normal=0]="Normal",e[e.AfterFilter=1]="AfterFilter",e[e.AfterFilterAndSort=2]="AfterFilterAndSort",e[e.PivotNodes=3]="PivotNodes"}(n||(n={}));var b=function(){function e(){}return e.prototype.init=function(){var e=this.refreshModel.bind(this,{step:s.Constants.STEP_EVERYTHING}),t=this.refreshModel.bind(this,{step:s.Constants.STEP_EVERYTHING,afterColumnsChanged:!0});this.eventService.addModalPriorityEventListener(h.Events.EVENT_COLUMN_EVERYTHING_CHANGED,t),this.eventService.addModalPriorityEventListener(h.Events.EVENT_COLUMN_ROW_GROUP_CHANGED,e),this.eventService.addModalPriorityEventListener(h.Events.EVENT_COLUMN_VALUE_CHANGED,this.onValueChanged.bind(this)),this.eventService.addModalPriorityEventListener(h.Events.EVENT_COLUMN_PIVOT_CHANGED,this.refreshModel.bind(this,{step:s.Constants.STEP_PIVOT})),this.eventService.addModalPriorityEventListener(h.Events.EVENT_ROW_GROUP_OPENED,this.onRowGroupOpened.bind(this)),this.eventService.addModalPriorityEventListener(h.Events.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this)),this.eventService.addModalPriorityEventListener(h.Events.EVENT_SORT_CHANGED,this.onSortChanged.bind(this)),this.eventService.addModalPriorityEventListener(h.Events.EVENT_COLUMN_PIVOT_MODE_CHANGED,e);var o=this.refreshModel.bind(this,{step:s.Constants.STEP_MAP,keepRenderedRows:!0,animate:!0});this.gridOptionsWrapper.addEventListener(a.GridOptionsWrapper.PROP_GROUP_REMOVE_SINGLE_CHILDREN,o),this.gridOptionsWrapper.addEventListener(a.GridOptionsWrapper.PROP_GROUP_REMOVE_LOWEST_SINGLE_CHILDREN,o),this.rootNode=new c.RowNode,this.nodeManager=new y.ClientSideNodeManager(this.rootNode,this.gridOptionsWrapper,this.context,this.eventService,this.columnController,this.gridApi,this.columnApi,this.selectionController),this.context.wireBean(this.rootNode)},e.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),p=Math.min(a,i),u=l;u<=p;u++){var c=this.getRow(u);if(c.rowHeightEstimated){var d=this.gridOptionsWrapper.getRowHeightForNode(c);c.setRowHeight(d.height),r=!0,n=!0}}r&&this.setRowTops()}while(r);return n},e.prototype.setRowTops=function(){for(var e=0,t=0;t<this.rowsToDisplay.length;t++){var o=this.gridOptionsWrapper.getDomLayout()===s.Constants.DOM_LAYOUT_NORMAL,i=this.rowsToDisplay[t];if(_._.missing(i.rowHeight)){var r=this.gridOptionsWrapper.getRowHeightForNode(i,o);i.setRowHeight(r.height,r.estimated)}i.setRowTop(e),i.setRowIndex(t),e+=i.rowHeight}},e.prototype.resetRowTops=function(e,t){if(e.clearRowTop(),e.hasChildren()){if(e.childrenAfterGroup)if(!(t.isActive()&&!e.expanded))for(var o=0;o<e.childrenAfterGroup.length;o++)this.resetRowTops(e.childrenAfterGroup[o],t);e.sibling&&e.sibling.clearRowTop()}e.detailNode&&e.detailNode.clearRowTop()},e.prototype.ensureRowAtPixel=function(e,t){var o=this.getRowIndexAtPixel(t);return this.getRow(o)!==e&&(_._.removeFromArray(this.rootNode.allLeafChildren,e),_._.insertIntoArray(this.rootNode.allLeafChildren,e,o),this.refreshModel({step:s.Constants.STEP_EVERYTHING,keepRenderedRows:!0,animate:!0,keepEditingRows:!0}),!0)},e.prototype.isLastRowFound=function(){return!0},e.prototype.getRowCount=function(){return this.rowsToDisplay?this.rowsToDisplay.length:0},e.prototype.getTopLevelRowCount=function(){return this.rowsToDisplay&&this.rowsToDisplay[0]===this.rootNode?1:this.rootNode.childrenAfterFilter?this.rootNode.childrenAfterFilter.length:0},e.prototype.getTopLevelRowDisplayedIndex=function(e){if(this.rowsToDisplay&&this.rowsToDisplay[0]===this.rootNode)return e;var t=this.rootNode.childrenAfterSort[e];if(this.gridOptionsWrapper.isGroupHideOpenParents())for(;t.expanded&&t.childrenAfterSort&&t.childrenAfterSort.length>0;)t=t.childrenAfterSort[0];return t.rowIndex},e.prototype.getRowBounds=function(e){if(_._.missing(this.rowsToDisplay))return null;var t=this.rowsToDisplay[e];return t?{rowTop:t.rowTop,rowHeight:t.rowHeight}:null},e.prototype.onRowGroupOpened=function(){var e=this.gridOptionsWrapper.isAnimateRows();this.refreshModel({step:s.Constants.STEP_MAP,keepRenderedRows:!0,animate:e})},e.prototype.onFilterChanged=function(){var e=this.gridOptionsWrapper.isAnimateRows();this.refreshModel({step:s.Constants.STEP_FILTER,keepRenderedRows:!0,animate:e})},e.prototype.onSortChanged=function(){var e=this.gridOptionsWrapper.isAnimateRows();this.refreshModel({step:s.Constants.STEP_SORT,keepRenderedRows:!0,animate:e,keepEditingRows:!0})},e.prototype.getType=function(){return s.Constants.ROW_MODEL_TYPE_CLIENT_SIDE},e.prototype.onValueChanged=function(){this.columnController.isPivotActive()?this.refreshModel({step:s.Constants.STEP_PIVOT}):this.refreshModel({step:s.Constants.STEP_AGGREGATE})},e.prototype.createChangePath=function(e){var t=_._.missingOrEmpty(e),o=new v.ChangedPath(!1,this.rootNode);return(t||this.gridOptionsWrapper.isTreeData())&&o.setInactive(),o},e.prototype.refreshModel=function(e){var t=this,o=this.createChangePath(e.rowNodeTransactions);switch(e.step){case s.Constants.STEP_EVERYTHING:this.doRowGrouping(e.groupState,e.rowNodeTransactions,e.rowNodeOrder,o,e.afterColumnsChanged);case s.Constants.STEP_FILTER:this.doFilter(o);case s.Constants.STEP_PIVOT:this.doPivot(o);case s.Constants.STEP_AGGREGATE:this.doAggregate(o);case s.Constants.STEP_SORT:this.doSort(e.rowNodeTransactions,o);case s.Constants.STEP_MAP:this.doRowsToDisplay()}this.resetRowTops(this.rootNode,o),this.setRowTops();var i={type:h.Events.EVENT_MODEL_UPDATED,api:this.gridApi,columnApi:this.columnApi,animate:e.animate,keepRenderedRows:e.keepRenderedRows,newData:e.newData,newPage:!1};this.eventService.dispatchEvent(i),this.$scope&&window.setTimeout((function(){t.$scope.$apply()}),0)},e.prototype.isEmpty=function(){var e;return e=_._.exists(this.gridOptionsWrapper.getNodeChildDetailsFunc())?_._.missing(this.rootNode.childrenAfterGroup)||0===this.rootNode.childrenAfterGroup.length:_._.missing(this.rootNode.allLeafChildren)||0===this.rootNode.allLeafChildren.length,_._.missing(this.rootNode)||e||!this.columnController.isReady()},e.prototype.isRowsToRender=function(){return _._.exists(this.rowsToDisplay)&&this.rowsToDisplay.length>0},e.prototype.getNodesInRangeForSelection=function(e,t){var o,i=!t,r=!1,n=[],s=this.gridOptionsWrapper.isGroupSelectsChildren();return this.forEachNodeAfterFilterAndSort((function(a){var l=i&&!r;if(i||a!==t&&a!==e||(i=!0),!(a.group&&s)){var p=i&&!r,u=a.isParentOfNode(o);(p||u)&&n.push(a)}l&&(a!==t&&a!==e||(r=!0,o=a===t?t:e))})),n},e.prototype.setDatasource=function(e){console.error("ag-Grid: should never call setDatasource on clientSideRowController")},e.prototype.getTopLevelNodes=function(){return this.rootNode?this.rootNode.childrenAfterGroup:null},e.prototype.getRootNode=function(){return this.rootNode},e.prototype.getRow=function(e){return this.rowsToDisplay[e]},e.prototype.isRowPresent=function(e){return this.rowsToDisplay.indexOf(e)>=0},e.prototype.getRowIndexAtPixel=function(e){if(this.isEmpty())return-1;var t=0,o=this.rowsToDisplay.length-1;if(e<=0)return 0;if(_._.last(this.rowsToDisplay).rowTop<=e)return this.rowsToDisplay.length-1;for(;;){var i=Math.floor((t+o)/2),r=this.rowsToDisplay[i];if(this.isRowInPixel(r,e))return i;r.rowTop<e?t=i+1:r.rowTop>e&&(o=i-1)}},e.prototype.isRowInPixel=function(e,t){var o=e.rowTop,i=e.rowTop+e.rowHeight;return o<=t&&i>t},e.prototype.getCurrentPageHeight=function(){if(this.rowsToDisplay&&this.rowsToDisplay.length>0){var e=_._.last(this.rowsToDisplay);return e.rowTop+e.rowHeight}return 0},e.prototype.forEachLeafNode=function(e){this.rootNode.allLeafChildren&&this.rootNode.allLeafChildren.forEach((function(t,o){return e(t,o)}))},e.prototype.forEachNode=function(e){this.recursivelyWalkNodesAndCallback(this.rootNode.childrenAfterGroup,e,n.Normal,0)},e.prototype.forEachNodeAfterFilter=function(e){this.recursivelyWalkNodesAndCallback(this.rootNode.childrenAfterFilter,e,n.AfterFilter,0)},e.prototype.forEachNodeAfterFilterAndSort=function(e){this.recursivelyWalkNodesAndCallback(this.rootNode.childrenAfterSort,e,n.AfterFilterAndSort,0)},e.prototype.forEachPivotNode=function(e){this.recursivelyWalkNodesAndCallback([this.rootNode],e,n.PivotNodes,0)},e.prototype.recursivelyWalkNodesAndCallback=function(e,t,o,i){if(e)for(var r=0;r<e.length;r++){var s=e[r];if(t(s,i++),s.hasChildren()){var a=null;switch(o){case n.Normal:a=s.childrenAfterGroup;break;case n.AfterFilter:a=s.childrenAfterFilter;break;case n.AfterFilterAndSort:a=s.childrenAfterSort;break;case n.PivotNodes:a=s.leafGroup?null:s.childrenAfterSort}a&&(i=this.recursivelyWalkNodesAndCallback(a,t,o,i))}}return i},e.prototype.doAggregate=function(e){this.aggregationStage&&this.aggregationStage.execute({rowNode:this.rootNode,changedPath:e})},e.prototype.expandOrCollapseAll=function(e){var t=this.gridOptionsWrapper.isTreeData();this.rootNode&&function o(i){if(!i)return;i.forEach((function(i){(t?_._.exists(i.childrenAfterGroup):i.group)&&(i.expanded=e,o(i.childrenAfterGroup))}))}(this.rootNode.childrenAfterGroup),this.refreshModel({step:s.Constants.STEP_MAP});var o=e?"expandAll":"collapseAll",i={api:this.gridApi,columnApi:this.columnApi,type:h.Events.EVENT_EXPAND_COLLAPSE_ALL,source:o};this.eventService.dispatchEvent(i)},e.prototype.doSort=function(e,t){this.sortStage.execute({rowNode:this.rootNode,rowNodeTransactions:e,changedPath:t})},e.prototype.doRowGrouping=function(e,t,o,i,r){var n=this;_._.exists(this.gridOptionsWrapper.getNodeChildDetailsFunc())||(this.groupStage?(t&&_._.exists(t)?t.forEach((function(e){n.groupStage.execute({rowNode:n.rootNode,rowNodeTransaction:e,rowNodeOrder:o,changedPath:i})})):(this.selectionController.removeGroupsFromSelection(),this.groupStage.execute({rowNode:this.rootNode,changedPath:i,afterColumnsChanged:r}),this.restoreGroupState(e)),this.gridOptionsWrapper.isGroupSelectsChildren()&&this.selectionController.updateGroupsFromChildrenSelections(i)):this.rootNode.childrenAfterGroup=this.rootNode.allLeafChildren)},e.prototype.restoreGroupState=function(e){e&&_._.traverseNodesWithKey(this.rootNode.childrenAfterGroup,(function(t,o){"boolean"==typeof e[o]&&(t.expanded=e[o])}))},e.prototype.doFilter=function(e){this.filterStage.execute({rowNode:this.rootNode,changedPath:e})},e.prototype.doPivot=function(e){this.pivotStage&&this.pivotStage.execute({rowNode:this.rootNode,changedPath:e})},e.prototype.getGroupState=function(){if(!this.rootNode.childrenAfterGroup||!this.gridOptionsWrapper.isRememberGroupStateWhenNewData())return null;var e={};return _._.traverseNodesWithKey(this.rootNode.childrenAfterGroup,(function(t,o){return e[o]=t.expanded})),e},e.prototype.getCopyOfNodesMap=function(){return this.nodeManager.getCopyOfNodesMap()},e.prototype.getRowNode=function(e){return this.nodeManager.getRowNode(e)},e.prototype.setRowData=function(e){var t=this.getGroupState();this.nodeManager.setRowData(e);var o={type:h.Events.EVENT_ROW_DATA_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(o),this.refreshModel({step:s.Constants.STEP_EVERYTHING,groupState:t,newData:!0})},e.prototype.batchUpdateRowData=function(e,t){var o=this;if(!this.rowDataTransactionBatch){this.rowDataTransactionBatch=[];var i=this.gridOptionsWrapper.getBatchUpdateWaitMillis();window.setTimeout((function(){o.executeBatchUpdateRowData(),o.rowDataTransactionBatch=null}),i)}this.rowDataTransactionBatch.push({rowDataTransaction:e,callback:t})},e.prototype.executeBatchUpdateRowData=function(){var e=this;this.valueCache.onDataChanged();var t=[],o=[];this.rowDataTransactionBatch&&this.rowDataTransactionBatch.forEach((function(i){var r=e.nodeManager.updateRowData(i.rowDataTransaction,null);o.push(r),i.callback&&t.push(i.callback.bind(null,r))})),this.commonUpdateRowData(o),t.length>0&&window.setTimeout((function(){t.forEach((function(e){return e()}))}),0)},e.prototype.updateRowData=function(e,t){this.valueCache.onDataChanged();var o=this.nodeManager.updateRowData(e,t);return this.commonUpdateRowData([o],t),o},e.prototype.commonUpdateRowData=function(e,t){this.refreshModel({step:s.Constants.STEP_EVERYTHING,rowNodeTransactions:e,rowNodeOrder:t,keepRenderedRows:!0,animate:!0,keepEditingRows:!0});var o={type:h.Events.EVENT_ROW_DATA_UPDATED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(o)},e.prototype.doRowsToDisplay=function(){this.rowsToDisplay=this.flattenStage.execute({rowNode:this.rootNode})},e.prototype.onRowHeightChanged=function(){this.refreshModel({step:s.Constants.STEP_MAP,keepRenderedRows:!0,keepEditingRows:!0})},e.prototype.resetRowHeights=function(){this.forEachNode((function(e){return e.setRowHeight(null)})),this.onRowHeightChanged()},i([f.Autowired("gridOptionsWrapper"),r("design:type",a.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([f.Autowired("columnController"),r("design:type",p.ColumnController)],e.prototype,"columnController",void 0),i([f.Autowired("filterManager"),r("design:type",u.FilterManager)],e.prototype,"filterManager",void 0),i([f.Autowired("$scope"),r("design:type",Object)],e.prototype,"$scope",void 0),i([f.Autowired("selectionController"),r("design:type",g.SelectionController)],e.prototype,"selectionController",void 0),i([f.Autowired("eventService"),r("design:type",d.EventService)],e.prototype,"eventService",void 0),i([f.Autowired("context"),r("design:type",f.Context)],e.prototype,"context",void 0),i([f.Autowired("valueService"),r("design:type",m.ValueService)],e.prototype,"valueService",void 0),i([f.Autowired("valueCache"),r("design:type",C.ValueCache)],e.prototype,"valueCache",void 0),i([f.Autowired("columnApi"),r("design:type",l.ColumnApi)],e.prototype,"columnApi",void 0),i([f.Autowired("gridApi"),r("design:type",w.GridApi)],e.prototype,"gridApi",void 0),i([f.Autowired("filterStage"),r("design:type",Object)],e.prototype,"filterStage",void 0),i([f.Autowired("sortStage"),r("design:type",Object)],e.prototype,"sortStage",void 0),i([f.Autowired("flattenStage"),r("design:type",Object)],e.prototype,"flattenStage",void 0),i([f.Optional("groupStage"),r("design:type",Object)],e.prototype,"groupStage",void 0),i([f.Optional("aggregationStage"),r("design:type",Object)],e.prototype,"aggregationStage",void 0),i([f.Optional("pivotStage"),r("design:type",Object)],e.prototype,"pivotStage",void 0),i([f.PostConstruct,r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],e.prototype,"init",null),e=i([f.Bean("rowModel")],e)}();t.ClientSideRowModel=b},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/Object.defineProperty(t,"__esModule",{value:!0});var i=o(22),r=o(6),n=o(2),s=function(){function e(t,o,i,r,n,s,a,l){this.nextId=0,this.allNodesMap={},this.rootNode=t,this.gridOptionsWrapper=o,this.context=i,this.eventService=r,this.columnController=n,this.gridApi=s,this.columnApi=a,this.selectionController=l,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.childrenAfterFilter=[],this.postConstruct()}return e.prototype.postConstruct=function(){this.getNodeChildDetails=this.gridOptionsWrapper.getNodeChildDetailsFunc(),this.suppressParentsInRowNodes=this.gridOptionsWrapper.isSuppressParentsInRowNodes(),this.doesDataFlower=this.gridOptionsWrapper.getDoesDataFlowerFunc(),this.isRowMasterFunc=this.gridOptionsWrapper.getIsRowMasterFunc(),this.doingLegacyTreeData=n._.exists(this.getNodeChildDetails),this.doingMasterDetail=this.gridOptionsWrapper.isMasterDetail(),this.getNodeChildDetails&&console.warn("ag-Grid: the callback nodeChildDetailsFunc() is now deprecated. The new way of doing\n tree data in ag-Grid was introduced in v14 (released November 2017). In the next\n major release of ag-Grid we will be dropping support for the old version of\n tree data. If you are reading this message, please go to the docs to see how\n to implement Tree Data without using nodeChildDetailsFunc().")},e.prototype.getCopyOfNodesMap=function(){return n._.cloneObject(this.allNodesMap)},e.prototype.getRowNode=function(e){return this.allNodesMap[e]},e.prototype.setRowData=function(t){if(this.rootNode.childrenAfterFilter=null,this.rootNode.childrenAfterGroup=null,this.rootNode.childrenAfterSort=null,this.rootNode.childrenMapped=null,this.nextId=0,this.allNodesMap={},!t)return this.rootNode.allLeafChildren=[],void(this.rootNode.childrenAfterGroup=[]);var o=this.recursiveFunction(t,this.rootNode,e.TOP_LEVEL);this.doingLegacyTreeData?(this.rootNode.childrenAfterGroup=o,this.setLeafChildren(this.rootNode)):this.rootNode.allLeafChildren=o},e.prototype.updateRowData=function(e,t){if(this.isLegacyTreeData())return null;e.add,e.addIndex,e.remove,e.update;var o={remove:[],update:[],add:[]};return this.executeAdd(e,o),this.executeRemove(e,o),this.executeUpdate(e,o),t&&n._.sortRowNodesByOrder(this.rootNode.allLeafChildren,t),o},e.prototype.executeAdd=function(e,t){var o=this,i=e.add,r=e.addIndex;i&&("number"==typeof r&&r>=0?i.reverse().forEach((function(e){var i=o.addRowNode(e,r);t.add.push(i)})):i.forEach((function(e){var i=o.addRowNode(e);t.add.push(i)})))},e.prototype.executeRemove=function(e,t){var o=this,i=e.remove;if(i){var n={},s=!1;if(i.forEach((function(e){var i=o.lookupRowNode(e);i&&(i.isSelected()&&(s=!0),i.setSelected(!1,!1,!0),i.clearRowTop(),n[i.id]=!0,delete o.allNodesMap[i.id],t.remove.push(i))})),this.rootNode.allLeafChildren=this.rootNode.allLeafChildren.filter((function(e){return!n[e.id]})),s){this.selectionController.updateGroupsFromChildrenSelections();var a={type:r.Events.EVENT_SELECTION_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(a)}}},e.prototype.executeUpdate=function(e,t){var o=this,i=e.update;i&&i.forEach((function(e){var i=o.lookupRowNode(e);i&&(i.updateData(e),t.update.push(i))}))},e.prototype.addRowNode=function(t,o){var i=this.createNode(t,this.rootNode,e.TOP_LEVEL);return n._.exists(o)?n._.insertIntoArray(this.rootNode.allLeafChildren,i,o):this.rootNode.allLeafChildren.push(i),i},e.prototype.lookupRowNode=function(e){var t,o=this.gridOptionsWrapper.getRowNodeIdFunc();if(n._.exists(o)){var i=o(e);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=n._.find(this.rootNode.allLeafChildren,(function(t){return t.data===e}))))return console.error("ag-Grid: could not find data item as object was not found",e),null;return t},e.prototype.recursiveFunction=function(e,t,o){var i=this;if("string"!=typeof e){var r=[];return e.forEach((function(e){var n=i.createNode(e,t,o);r.push(n)})),r}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.createNode=function(e,t,o){var r=new i.RowNode;this.context.wireBean(r);var s=this.gridOptionsWrapper.isTreeData(),a=!s&&n._.exists(this.getNodeChildDetails)?this.getNodeChildDetails(e):null;if(a&&a.group)r.group=!0,r.childrenAfterGroup=this.recursiveFunction(a.children,r,o+1),r.expanded=!0===a.expanded,r.field=a.field,r.key=a.key,r.canFlower=r.master,this.setLeafChildren(r);else if(r.group=!1,s)r.master=!1,r.expanded=!1;else{this.doesDataFlower?r.master=this.doesDataFlower(e):this.doingMasterDetail?this.isRowMasterFunc?r.master=this.isRowMasterFunc(e):r.master=!0:r.master=!1;var l=this.columnController.getRowGroupColumns(),p=o+(l?l.length:0);r.expanded=!!r.master&&this.isExpanded(p)}return r.canFlower=r.master,t&&!this.suppressParentsInRowNodes&&(r.parent=t),r.level=o,r.setDataAndId(e,this.nextId.toString()),this.allNodesMap[r.id]&&console.warn("ag-grid: duplicate node id '"+r.id+"' detected from getRowNodeId callback, this could cause issues in your grid."),this.allNodesMap[r.id]=r,this.nextId++,r},e.prototype.isExpanded=function(e){var t=this.gridOptionsWrapper.getGroupDefaultExpanded();return-1===t||e<t},e.prototype.setLeafChildren=function(e){e.allLeafChildren=[],e.childrenAfterGroup&&e.childrenAfterGroup.forEach((function(t){t.group?t.allLeafChildren&&t.allLeafChildren.forEach((function(t){return e.allLeafChildren.push(t)})):e.allLeafChildren.push(t)}))},e.prototype.isLegacyTreeData=function(){return!!n._.exists(this.gridOptionsWrapper.getNodeChildDetailsFunc())&&(console.warn("ag-Grid: adding and removing rows is not supported when using nodeChildDetailsFunc, ie it is not supported for legacy tree data. Please see the docs on the new preferred way of providing tree data that works with delta updates."),!0)},e.TOP_LEVEL=0,e.ROOT_NODE_ID="ROOT_NODE_ID",e}();t.ClientSideNodeManager=s},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){}return e.prototype.setTimeout=function(e,t){window.setTimeout(e,t)},e.prototype.addEventListenerOutsideAngular=function(e,t,o,i){e.addEventListener(t,o,i)},e}();t.VanillaFrameworkOverrides=i},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/var i=this&&this.__decorate||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};Object.defineProperty(t,"__esModule",{value:!0});var r=o(0),n=function(){function e(){}return e.prototype.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.prototype.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+">\r\n":(r+=">\r\n",e.children&&e.children.forEach((function(e){r+=o.createXml(e,t)})),r+"</"+e.name+">\r\n"):r+"/>\r\n"},e.prototype.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=i([r.Bean("xmlFactory")],e)}();t.XmlFactory=n},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/var i=this&&this.__decorate||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};Object.defineProperty(t,"__esModule",{value:!0});var r=o(0),n=o(2),s=[0,1996959894,-301047508,-1727442502,124634137,1886057615,-379345611,-1637575261,249268274,2044508324,-522852066,-1747789432,162941995,2125561021,-407360249,-1866523247,498536548,1789927666,-205950648,-2067906082,450548861,1843258603,-187386543,-2083289657,325883990,1684777152,-43845254,-1973040660,335633487,1661365465,-99664541,-1928851979,997073096,1281953886,-715111964,-1570279054,1006888145,1258607687,-770865667,-1526024853,901097722,1119000684,-608450090,-1396901568,853044451,1172266101,-589951537,-1412350631,651767980,1373503546,-925412992,-1076862698,565507253,1454621731,-809855591,-1195530993,671266974,1594198024,-972236366,-1324619484,795835527,1483230225,-1050600021,-1234817731,1994146192,31158534,-1731059524,-271249366,1907459465,112637215,-1614814043,-390540237,2013776290,251722036,-1777751922,-519137256,2137656763,141376813,-1855689577,-429695999,1802195444,476864866,-2056965928,-228458418,1812370925,453092731,-2113342271,-183516073,1706088902,314042704,-1950435094,-54949764,1658658271,366619977,-1932296973,-69972891,1303535960,984961486,-1547960204,-725929758,1256170817,1037604311,-1529756563,-740887301,1131014506,879679996,-1385723834,-631195440,1141124467,855842277,-1442165665,-586318647,1342533948,654459306,-1106571248,-921952122,1466479909,544179635,-1184443383,-832445281,1591671054,702138776,-1328506846,-942167884,1504918807,783551873,-1212326853,-1061524307,-306674912,-1698712650,62317068,1957810842,-355121351,-1647151185,81470997,1943803523,-480048366,-1805370492,225274430,2053790376,-468791541,-1828061283,167816743,2097651377,-267414716,-2029476910,503444072,1762050814,-144550051,-2140837941,426522225,1852507879,-19653770,-1982649376,282753626,1742555852,-105259153,-1900089351,397917763,1622183637,-690576408,-1580100738,953729732,1340076626,-776247311,-1497606297,1068828381,1219638859,-670225446,-1358292148,906185462,1090812512,-547295293,-1469587627,829329135,1181335161,-882789492,-1134132454,628085408,1382605366,-871598187,-1156888829,570562233,1426400815,-977650754,-1296233688,733239954,1555261956,-1026031705,-1244606671,752459403,1541320221,-1687895376,-328994266,1969922972,40735498,-1677130071,-351390145,1913087877,83908371,-1782625662,-491226604,2075208622,213261112,-1831694693,-438977011,2094854071,198958881,-2032938284,-237706686,1759359992,534414190,-2118248755,-155638181,1873836001,414664567,-2012718362,-15766928,1711684554,285281116,-1889165569,-127750551,1634467795,376229701,-1609899400,-686959890,1308918612,956543938,-1486412191,-799009033,1231636301,1047427035,-1362007478,-640263460,1088359270,936918e3,-1447252397,-558129467,1202900863,817233897,-1111625188,-893730166,1404277552,615818150,-1160759803,-841546093,1423857449,601450431,-1285129682,-1000256840,1567103746,711928724,-1274298825,-1022587231,1510334235,755167117],a=function(){function e(){var e=this;this.folders=[],this.files=[],this.addFolder=function(t){e.folders.push({path:t,created:new Date})}}return e.prototype.addFolders=function(e){e.forEach(this.addFolder)},e.prototype.addFile=function(e,t){this.files.push({path:e,created:new Date,content:t})},e.prototype.clearStream=function(){this.folders=[],this.files=[]},e.prototype.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.prototype.buildFileStream=function(e){void 0===e&&(e="");for(var t=this.folders.concat(this.files),o=t.length,i="",r=0,n=0,s=0,a=t;s<a.length;s++){var l=a[s],p=this.getHeader(l,r),u=p.fileHeader,c=p.folderHeader,d=p.content;r+=u.length+d.length,n+=c.length,e+=u+d,i+=c}return e+i+this.buildFolderEnd(o,n,r)},e.prototype.getHeader=function(e,t){var o=e.content,i=e.path,r=e.created,s=n._.utf8_encode,a=n._.decToHex,l=s(i),p=l!==i,u=this.convertTime(r),c=this.convertDate(r),d="";if(p){var h=a(1,1)+a(this.getFromCrc32Table(l),4)+l;d="up"+a(h.length,2)+h}var f="\n\0"+(p?"\0\b":"\0\0")+"\0\0"+a(u,2)+a(c,2)+a(o?this.getFromCrc32Table(o):0,4)+a(o?o.length:0,4)+a(o?o.length:0,4)+a(l.length,2)+a(d.length,2);return{fileHeader:"PK"+f+l+d,folderHeader:"PK\0"+f+"\0\0\0\0\0\0"+(o?"\0\0\0\0":"\0\0\0")+a(t,4)+l+d,content:o||""}},e.prototype.buildFolderEnd=function(e,t,o){var i=n._.decToHex;return"PK\0\0\0\0"+i(e,2)+i(e,2)+i(t,4)+i(o,4)+"\0\0"},e.prototype.buildUint8Array=function(e){for(var t=new Uint8Array(e.length),o=0;o<t.length;o++)t[o]=e.charCodeAt(o);return t},e.prototype.getFromCrc32Table=function(e,t){if(void 0===t&&(t=0),!e.length)return 0;t^=-1;for(var o=0,i=0;i<e.length;i++)o=e.charCodeAt(i),t=t>>>8^s[255&(t^o)];return-1^t},e.prototype.convertTime=function(e){var t=e.getHours();return t<<=6,t|=e.getMinutes(),t<<=5,t|=e.getSeconds()/2},e.prototype.convertDate=function(e){var t=e.getFullYear()-1980;return t<<=4,t|=e.getMonth()+1,t<<=5,t|=e.getDate()},e=i([r.Bean("zipContainer")],e)}();t.ZipContainer=a},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),n=this&&this.__decorate||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},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(8),l=o(11),p=o(0),u=o(3),c=o(49),d=o(2),h=function(e){function t(o){var i=e.call(this,t.TEMPLATE)||this;i.suppressEnabledCheckbox=!0,i.suppressOpenCloseIcons=!1,o||(o={});var r=o.title,n=o.enabled,s=o.items,a=o.suppressEnabledCheckbox,l=o.suppressOpenCloseIcons;return i.title=r,i.enabled=null==n||n,i.items=s||[],null!=a&&(i.suppressEnabledCheckbox=a),null!=l&&(i.suppressOpenCloseIcons=l),i}return r(t,e),t.prototype.postConstruct=function(){if(this.items.length){var e=this.items;this.items=[],this.addItems(e)}var t=this.gridOptionsWrapper.getLocaleTextFunc();this.cbGroupEnabled.setLabel(t("enabled","Enabled")),this.title&&this.setTitle(this.title),this.enabled&&this.setEnabled(this.enabled),this.hideEnabledCheckbox(this.suppressEnabledCheckbox),this.hideOpenCloseIcons(this.suppressOpenCloseIcons),this.setupExpandContract()},t.prototype.setupExpandContract=function(){var e=this;this.eGroupClosedIcon.appendChild(d._.createIcon("columnSelectClosed",this.gridOptionsWrapper,null)),this.eGroupOpenedIcon.appendChild(d._.createIcon("columnSelectOpen",this.gridOptionsWrapper,null)),this.setOpenClosedIcons(),this.addDestroyableEventListener(this.groupTitle,"click",(function(){return e.toggleGroupExpand()}))},t.prototype.setOpenClosedIcons=function(){var e=this.expanded;d._.setDisplayed(this.eGroupClosedIcon,!e),d._.setDisplayed(this.eGroupOpenedIcon,e)},t.prototype.isExpanded=function(){return this.expanded},t.prototype.toggleGroupExpand=function(e){var t=this.getGui();if(this.suppressOpenCloseIcons)return this.expanded=!0,d._.removeCssClass(t,"ag-collapsed"),this;if(e=null!=e?e:!this.expanded,this.expanded===e)return this;if(this.expanded=e,this.setOpenClosedIcons(),d._.addOrRemoveCssClass(t,"ag-collapsed",!e),this.expanded){this.dispatchEvent({type:"expanded"})}return 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.groupContainer,o=e instanceof a.Component?e.getGui():e;d._.addCssClass(o,"ag-group-item"),t.appendChild(o),this.items.push(o)},t.prototype.setTitle=function(e){return this.lbGroupTitle.innerText=e,this},t.prototype.setEnabled=function(e,t){return this.enabled=e,d._.addOrRemoveCssClass(this.getGui(),"ag-disabled",!e),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 d._.addOrRemoveCssClass(this.eToolbar,"ag-hidden",e),this},t.prototype.hideOpenCloseIcons=function(e){return this.suppressOpenCloseIcons=e,d._.addOrRemoveCssClass(this.getGui(),"ag-collapsible",!e),e&&this.toggleGroupExpand(!0),this},t.TEMPLATE='<div class="ag-group-component">\n <div class="ag-group-component-title-bar" ref="groupTitle">\n <span class="ag-column-group-icons">\n <span class="ag-column-group-closed-icon" ref="eGroupOpenedIcon"></span>\n <span class="ag-column-group-opened-icon" ref="eGroupClosedIcon"></span>\n </span>\n <span ref="lbGroupTitle" class="ag-group-component-title"></span>\n </div>\n <div ref="eToolbar" class="ag-group-component-toolbar">\n <ag-checkbox ref="cbGroupEnabled"></ag-checkbox>\n </div>\n <div ref="eContainer" class="ag-group-component-container"></div>\n </div>',n([p.Autowired("gridOptionsWrapper"),s("design:type",u.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),n([l.RefSelector("groupTitle"),s("design:type",HTMLElement)],t.prototype,"groupTitle",void 0),n([l.RefSelector("eGroupOpenedIcon"),s("design:type",HTMLElement)],t.prototype,"eGroupOpenedIcon",void 0),n([l.RefSelector("eGroupClosedIcon"),s("design:type",HTMLElement)],t.prototype,"eGroupClosedIcon",void 0),n([l.RefSelector("eToolbar"),s("design:type",HTMLElement)],t.prototype,"eToolbar",void 0),n([l.RefSelector("cbGroupEnabled"),s("design:type",c.AgCheckbox)],t.prototype,"cbGroupEnabled",void 0),n([l.RefSelector("lbGroupTitle"),s("design:type",HTMLElement)],t.prototype,"lbGroupTitle",void 0),n([l.RefSelector("eContainer"),s("design:type",HTMLElement)],t.prototype,"groupContainer",void 0),n([p.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"postConstruct",null),t}(a.Component);t.AgGroupComponent=h},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var n=function(e){function t(t){var o=e.call(this)||this;return o.className="ag-text-area",o.displayTag="textarea",o.inputType="",o.setTemplate(o.TEMPLATE.replace(/%displayField%/g,o.displayTag)),t&&(o.config=t),o}return r(t,e),t.prototype.setValue=function(t,o){var i=e.prototype.setValue.call(this,t,o);return this.eInput.value=t,i},t}(o(65).AgAbstractInputField);t.AgInputTextArea=n},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),n=this&&this.__decorate||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},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(11),l=o(158),p=o(145),u=o(97),c=o(39),d=function(e){function t(){var o=e.call(this,t.TEMPLATE)||this;return o.labelAlignment="top",o}return r(t,e),t.prototype.postConstruct=function(){e.prototype.postConstruct.call(this),this.setMinValue(0)},t.prototype.onValueChange=function(e){var t=this,o=c.AgAbstractField.EVENT_CHANGED;return this.addDestroyableEventListener(this.eText,o,(function(){var o=parseFloat(t.eText.getValue());t.eSlider.setValue(o.toString(),!0),e(o||0)})),this.addDestroyableEventListener(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:(this.eText.setValue(e,!0),this.eSlider.setValue(e,!0),this.dispatchEvent({type:c.AgAbstractField.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">\n <ag-input-range ref="eSlider"></ag-input-range>\n <ag-input-number-field ref="eText"></ag-input-number-field>\n </div>\n </div>',n([a.RefSelector("eLabel"),s("design:type",HTMLElement)],t.prototype,"eLabel",void 0),n([a.RefSelector("eSlider"),s("design:type",l.AgInputRange)],t.prototype,"eSlider",void 0),n([a.RefSelector("eText"),s("design:type",u.AgInputNumberField)],t.prototype,"eText",void 0),t}(p.AgAbstractLabel);t.AgSlider=d},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var n=o(275),s=o(96),a=o(276),l=o(39),p=o(2),u=function(e){function t(t){var o=e.call(this)||this;return o.displayTag="div",o.className="ag-color-picker",o.pickerIcon="colorPicker",o.setTemplate(o.TEMPLATE.replace(/%displayField%/g,o.displayTag)),t&&t.color&&(o.value=t.color),o}return r(t,e),t.prototype.postConstruct=function(){var t=this;e.prototype.postConstruct.call(this),p._.addCssClass(this.getGui(),this.className),this.addDestroyableEventListener(this.eDisplayField,"click",(function(){return t.showPicker()})),this.value&&this.setValue(this.value)},t.prototype.showPicker=function(){var e=this;if(this.displayedPicker)this.displayedPicker=!1;else{var t=this.getGui().getBoundingClientRect(),o=new s.AgDialog({closable:!1,modal:!0,hideTitleBar:!0,minWidth:190,width:190,height:250,x:t.right-190,y:t.top-250});this.getContext().wireBean(o),p._.addCssClass(o.getGui(),"ag-color-dialog");var i=new n.AgColorPanel({picker:this});this.getContext().wireBean(i),i.addDestroyFunc((function(){o.isAlive()&&o.destroy()})),o.setParentComponent(this),o.setBodyComponent(i),i.setValue(this.getValue()),o.addDestroyFunc((function(){var t=e.isDestroyingPicker;e.displayedPicker=!1,t?e.isDestroyingPicker=!1:(e.isDestroyingPicker=!0,i.isAlive()&&i.destroy())}))}},t.prototype.setValue=function(e){return this.value===e?this:(this.value=e,this.eDisplayField.style.backgroundColor=e,this.dispatchEvent({type:l.AgAbstractField.EVENT_CHANGED}),this)},t.prototype.getValue=function(){return this.value},t}(a.AgPickerField);t.AgColorPicker=u},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var n=function(e){function t(){var t=e.call(this)||this;return t.className="ag-select",t.displayTag="select",t.inputType="",t.setTemplate(t.TEMPLATE.replace(/%displayField%/g,t.displayTag)),t}return r(t,e),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=document.createElement("option");return t.value=e.value,t.text=e.text||e.value,this.eInput.appendChild(t),this},t.prototype.setValue=function(t,o){var i=e.prototype.setValue.call(this,t,o);return this.eInput.value=t,i},t}(o(65).AgAbstractInputField);t.AgSelect=n},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),n=this&&this.__decorate||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},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(145),l=o(11),p=o(0),u=o(37),c=o(97),d=o(39),h=o(2),f=function(e){function t(){var o=e.call(this,t.TEMPLATE)||this;return o.radius=0,o.offsetX=0,o.offsetY=0,o}return r(t,e),t.prototype.postConstruct=function(){var t=this;e.prototype.postConstruct.call(this),this.dragListener={eElement:this.eParentCircle,dragStartPixels:0,onDragStart:function(e){t.parentCircleRect=t.eParentCircle.getBoundingClientRect()},onDragging:function(e){return t.calculateAngleDrag(e)},onDragStop:function(){}},this.dragService.addDragSource(this.dragListener),this.eAngleValue.setLabel("").setLabelWidth(5).setInputWidth(45).setMin(0).setMax(360).setValue(""+this.degrees).onValueChange((function(e){null!=e&&""!==e||(e="0"),e=t.eAngleValue.normalizeValue(e);var o=parseFloat(e);o>180&&(o-=360),t.setValue(o)})),this.updateNumberInput(),h._.exists(this.getValue())&&this.eAngleValue.setValue(this.normalizeNegativeValue(this.getValue()).toString()),this.addDestroyableEventListener(this,d.AgAbstractField.EVENT_CHANGED,(function(){t.eAngleValue.getInputElement().contains(document.activeElement)||t.updateNumberInput()}))},t.prototype.updateNumberInput=function(){var e=this.normalizeNegativeValue(this.getValue());this.eAngleValue.setValue(e.toString())},t.prototype.positionChildCircle=function(e){var t=this.parentCircleRect||{width:24,height:24},o=this.eChildCircle,i=t.width/2,r=t.height/2;o.style.left=i+8*Math.cos(e)+"px",o.style.top=r+8*Math.sin(e)+"px"},t.prototype.calculatePolar=function(){var e=this.offsetX,t=this.offsetY,o=Math.atan2(t,e);this.degrees=this.toDegrees(o),this.radius=Math.sqrt(e*e+t*t),this.positionChildCircle(o)},t.prototype.calculateCartesian=function(){var e=this.toRadians(this.getValue()),t=this.getRadius();this.setOffsetX(Math.cos(e)*t).setOffsetY(Math.sin(e)*t)},t.prototype.setOffsetX=function(e){return this.offsetX!==e&&(this.offsetX=e,this.calculatePolar()),this},t.prototype.setOffsetY=function(e){return this.offsetY!==e&&(this.offsetY=e,this.calculatePolar()),this},t.prototype.calculateAngleDrag=function(e){var t=this.parentCircleRect,o=t.width/2,i=t.height/2,r=e.clientX-t.left-o,n=e.clientY-t.top-i,s=Math.atan2(n,r);this.setValue(s,!0)},t.prototype.toDegrees=function(e){return e/Math.PI*180},t.prototype.toRadians=function(e){return e/180*Math.PI},t.prototype.normalizeNegativeValue=function(e){return e<0?360+e:e},t.prototype.normalizeAngle180=function(e){return(e%=2*Math.PI)<-Math.PI?e+=2*Math.PI:e>=Math.PI&&(e-=2*Math.PI),e},t.prototype.getRadius=function(){return this.radius},t.prototype.setRadius=function(e){return this.radius===e?this:(this.radius=e,this.calculateCartesian(),this)},t.prototype.onValueChange=function(e){var t=this;return this.addDestroyableEventListener(this,d.AgAbstractField.EVENT_CHANGED,(function(){e(t.degrees)})),this},t.prototype.getValue=function(e){return e?this.toRadians(this.degrees):this.degrees},t.prototype.setValue=function(e,t){var o;return o=t?e:this.normalizeAngle180(this.toRadians(e)),e=this.toDegrees(o),this.degrees!==e&&(this.degrees=Math.floor(e),this.calculateCartesian(),this.positionChildCircle(o),this.dispatchEvent({type:d.AgAbstractField.EVENT_CHANGED})),this},t.prototype.setWidth=function(e){return h._.setFixedWidth(this.getGui(),e),this},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.dragService.removeDragSource(this.dragListener)},t.TEMPLATE='<div class="ag-angle-select">\n <label ref="eLabel"></label>\n <div class="ag-wrapper">\n <div ref="eAngleSelectField" class="ag-angle-select-field">\n <div ref="eParentCircle" class="ag-parent-circle">\n <div ref="eChildCircle" class="ag-child-circle"></div>\n </div>\n </div>\n <ag-input-number-field ref="eAngleValue"></ag-input-number-field>\n </div>\n </div>',n([l.RefSelector("eLabel"),s("design:type",HTMLElement)],t.prototype,"eLabel",void 0),n([l.RefSelector("eParentCircle"),s("design:type",HTMLElement)],t.prototype,"eParentCircle",void 0),n([l.RefSelector("eChildCircle"),s("design:type",HTMLElement)],t.prototype,"eChildCircle",void 0),n([l.RefSelector("eAngleValue"),s("design:type",c.AgInputNumberField)],t.prototype,"eAngleValue",void 0),n([p.Autowired("dragService"),s("design:type",u.DragService)],t.prototype,"dragService",void 0),t}(a.AgAbstractLabel);t.AgAngleSelect=f},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var n=o(155),s=o(2),a=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.className="ag-toggle-button",t}return r(t,e),t.prototype.postConstruct=function(){e.prototype.postConstruct.call(this),s._.addCssClass(this.eIconEl,"ag-icon")},t.prototype.updateIcons=function(){var e=this.getValue();s._.addOrRemoveCssClass(this.eIconEl,"ag-icon-toggle-on",e),s._.addOrRemoveCssClass(this.eIconEl,"ag-icon-toggle-off",!e)},t.prototype.setValue=function(t,o){return e.prototype.setValue.call(this,t,o),s._.addOrRemoveCssClass(this.getGui(),"ag-selected",this.getValue()),this},t}(n.AgRadioButton);t.AgToggleButton=a},function(e,t,o){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var n=o(1),s=o(50),a=o(67),l=function(e){function t(t){var o=e.call(this,t)||this;return o.initChartOptions(t.chartType,o.defaultOptions()),o.chart=s.ChartBuilder.createScatterChart(o.chartOptions),o}return r(t,e),t.prototype.update=function(e){var t=this;if(0!==e.fields.length){var o=this.chart,i=this.chartProxyParams.chartType,r=e.fields.map((function(e){return e.colId})),l={},p=e.category.id===a.ChartModel.DEFAULT_CATEGORY;o.series.map((function(e){return e})).forEach((function(e){var t=e.yField;r.indexOf(t)>-1?l[t]=e:o.removeSeries(e)}));var u=function(r,a){var u=t.chartOptions.seriesDefaults,c=l[r.colId],d=c||s.ChartBuilder.createSeries(u);if(d){if(p){if(d.title=e.fields[0].displayName+" vs "+r.displayName,d.xField=e.fields[0].colId,d.xFieldName=e.fields[0].displayName,i===n.ChartType.Bubble){var h=e.fields[2*a+2];d.radiusField=h.colId,d.radiusFieldName=h.displayName}}else d.title=r.displayName,d.xField=e.category.id,d.xFieldName=e.category.name;d.data=e.data,d.yField=r.colId,d.yFieldName=r.displayName;var f=t.overriddenPalette?t.overriddenPalette:t.chartProxyParams.getSelectedPalette(),g=f.fills;d.fill=g[a%g.length];var y=f.strokes;d.stroke=y[a%y.length],c||o.addSeries(d)}};if(p)if(i===n.ChartType.Bubble){for(var c=e.fields.length,d=c%2==0?1:0,h=[],f=1;f<c-d;f+=2)h.push(e.fields[f]);h.forEach(u)}else e.fields.slice(1,e.fields.length).forEach(u);else e.fields.forEach(u);o.xAxis.labelRotation=this.overrideLabelRotation(e.category.id)?0:this.chartOptions.xAxis.labelRotation}else this.chart.removeAllSeries()},t.prototype.setSeriesProperty=function(e,t){this.getChart().series.forEach((function(o){return o[e]=t})),this.chartOptions.seriesDefaults||(this.chartOptions.seriesDefaults={}),this.chartOptions.seriesDefaults[e]=t,this.raiseChartOptionsChangedEvent()},t.prototype.getSeriesProperty=function(e){return this.chartOptions.seriesDefaults?""+this.chartOptions.seriesDefaults[e]:""},t.prototype.getTooltipsEnabled=function(){return!!this.chartOptions.seriesDefaults&&!!this.chartOptions.seriesDefaults.tooltipEnabled},t.prototype.getMarkersEnabled=function(){return!0},t.prototype.defaultOptions=function(){var e=this.chartProxyParams.categorySelected?"category":"number",t=this.chartProxyParams.getSelectedPalette(),o=this.chartProxyParams.chartType===n.ChartType.Bubble;return{background:{fill:this.getBackgroundColor()},padding:{top:20,right:20,bottom:20,left:20},legendPosition:"right",legendPadding:20,legend:{enabled:!0,labelFontStyle:void 0,labelFontWeight:"normal",labelFontSize:12,labelFontFamily:"Verdana, sans-serif",labelColor:this.getLabelColor(),itemPaddingX:16,itemPaddingY:8,markerPadding:4,markerSize:14,markerStrokeWidth:1},xAxis:{type:e,labelFontStyle:void 0,labelFontWeight:"normal",labelFontSize:12,labelFontFamily:"Verdana, sans-serif",labelColor:this.getLabelColor(),labelRotation:335,tickColor:"rgba(195, 195, 195, 1)",tickSize:6,tickWidth:1,tickPadding:5,lineColor:"rgba(195, 195, 195, 1)",lineWidth:1,gridStyle:[{stroke:this.getAxisGridColor(),lineDash:[4,2]}]},yAxis:{type:"number",labelFontStyle:void 0,labelFontWeight:"normal",labelFontSize:12,labelFontFamily:"Verdana, sans-serif",labelColor:this.getLabelColor(),labelRotation:0,tickColor:"rgba(195, 195, 195, 1)",tickSize:6,tickWidth:1,tickPadding:5,lineColor:"rgba(195, 195, 195, 1)",lineWidth:1,gridStyle:[{stroke:this.getAxisGridColor(),lineDash:[4,2]}]},seriesDefaults:{type:"scatter",fills:t.fills,fillOpacity:o?.7:1,strokes:t.strokes,marker:!0,markerSize:o?30:6,minMarkerSize:3,markerStrokeWidth:1,tooltipEnabled:!0,tooltipRenderer:void 0,showInLegend:!0,title:""}}},t}(o(105).CartesianChartProxy);t.ScatterChartProxy=l},function(e,t,o){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var n,s=o(162),a=o(53),l=o(51),p=o(16);!function(e){e[e.Vertical=0]="Vertical",e[e.Horizontal=1]="Horizontal"}(n=t.CartesianChartLayout||(t.CartesianChartLayout={}));var u=function(e){function t(t){var o=e.call(this,t)||this;o.axisAutoPadding=new l.Padding,o.seriesClipRect=new p.Group,o._layout=n.Vertical;var i=t.xAxis,r=t.yAxis;return o._xAxis=i,o._yAxis=r,o.scene.root.append([i.group,r.group,o.seriesClipRect]),o.scene.root.append(o.legend.group),o}return r(t,e),Object.defineProperty(t.prototype,"seriesRoot",{get:function(){return this.seriesClipRect},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"xAxis",{get:function(){return this._xAxis},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"yAxis",{get:function(){return this._yAxis},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"series",{get:function(){return this._series},set:function(e){var t=this;this.removeAllSeries(),e.forEach((function(e){t.addSeries(e)}))},enumerable:!0,configurable:!0}),t.prototype.performLayout=function(){if(!this.dataPending&&this.xAxis&&this.yAxis){var e={x:0,y:0,width:this.width,height:this.height},t=this.captionAutoPadding;if(e.y+=t,e.height-=t,this.legend.enabled&&this.legend.data.length){var o=this.legendAutoPadding;e.x+=o.left,e.y+=o.top,e.width-=o.left+o.right,e.height-=o.top+o.bottom;var i=this.legendPadding;switch(this.legendPosition){case"right":e.width-=i;break;case"bottom":e.height-=i;break;case"left":e.x+=i,e.width-=i;break;case"top":e.y+=i,e.height-=i}}var r=this.padding;e.x+=r.left,e.y+=r.top,e.width-=r.left+r.right,e.height-=r.top+r.bottom;var n=this.axisAutoPadding;e.x+=n.left,e.y+=n.top,e.width-=n.left+n.right,e.height-=n.top+n.bottom;var s=this.xAxis,a=this.yAxis;s.scale.range=[0,e.width],s.rotation=-90,s.translationX=Math.floor(e.x),s.translationY=Math.floor(e.y+e.height+1),s.parallelLabels=!0,s.gridLength=e.height,a.scale.range=[e.height,0],a.translationX=Math.floor(e.x),a.translationY=Math.floor(e.y),a.gridLength=e.width,this.updateAxes(),this.series.forEach((function(t){t.group.translationX=Math.floor(e.x),t.group.translationY=Math.floor(e.y),t.update()})),this.positionCaptions(),this.positionLegend()}},Object.defineProperty(t.prototype,"layout",{get:function(){return this._layout},set:function(e){this._layout!==e&&(this._layout=e,this.layoutPending=!0)},enumerable:!0,configurable:!0}),t.prototype.updateAxes=function(){var e,t,o=this.layout===n.Horizontal,i=o?this.yAxis:this.xAxis,r=o?this.xAxis:this.yAxis;if(i&&r){var s=[],l=[];this.series.forEach((function(e){if(e.visible){var t=e.getDomainX(),o=e.getDomainY();s.push(t),l.push(o)}}));var p=(e=new Array).concat.apply(e,s),u=(t=new Array).concat.apply(t,l);i.domain=a.numericExtent(p)||p,r.domain=a.numericExtent(u)||u,i.update(),r.update();var c=this.xAxis.getBBox(),d=this.yAxis.getBBox(),h=Math.floor(d.width);this.axisAutoPadding.left!==h&&(this.axisAutoPadding.left=h,this.layoutPending=!0);h=Math.floor(c.width);this.axisAutoPadding.bottom!==h&&(this.axisAutoPadding.bottom=h,this.layoutPending=!0)}},t}(s.Chart);t.CartesianChart=u},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(297),r=function(){function e(e){var t=this;void 0===e&&(e={}),this.id=this.createId(),this._dirty=!1,this.animationFrameId=0,this._root=null,this._frameIndex=0,this._renderFrameIndex=!1,this.render=function(){var e=t.ctx;e.clearRect(0,0,t.width,t.height),t.root&&(e.save(),t.root.visible&&t.root.render(e),e.restore()),t._frameIndex++,t.renderFrameIndex&&(e.fillStyle="white",e.fillRect(0,0,40,15),e.fillStyle="black",e.fillText(t.frameIndex.toString(),0,10)),t.dirty=!1},this.canvas=new i.HdpiCanvas({width:e.width||300,height:e.height||150,document:e.document||window.document}),this.ctx=this.canvas.context}return e.prototype.createId=function(){return this.constructor.name+"-"+e.id++},Object.defineProperty(e.prototype,"parent",{get:function(){return this.canvas.parent},set:function(e){this.canvas.parent=e},enumerable:!0,configurable:!0}),e.prototype.download=function(e){this.canvas.download(e)},Object.defineProperty(e.prototype,"width",{get:function(){return this.canvas.width},set:function(e){this.size=[e,this.height]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this.canvas.height},set:function(e){this.size=[this.width,e]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"size",{get:function(){return[this.width,this.height]},set:function(e){var t=e[0],o=e[1];this.width===t&&this.height===o||(this.canvas.resize(t,o),this.dirty=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dirty",{get:function(){return this._dirty},set:function(e){e&&!this._dirty&&(this.animationFrameId=requestAnimationFrame(this.render)),this._dirty=e},enumerable:!0,configurable:!0}),e.prototype.cancelRender=function(){this.animationFrameId&&(cancelAnimationFrame(this.animationFrameId),this.animationFrameId=0,this._dirty=!1)},Object.defineProperty(e.prototype,"root",{get:function(){return this._root},set:function(e){e!==this._root&&(this._root&&this._root._setScene(void 0),this._root=e,e&&(null===e.parent&&e.scene&&e.scene!==this&&(e.scene.root=null),e._setScene(this)),this.dirty=!0)},enumerable:!0,configurable:!0}),e.prototype.appendPath=function(e){var t=this.ctx,o=e.commands,i=e.params,r=o.length,n=0;t.beginPath();for(var s=0;s<r;s++)switch(o[s]){case"M":t.moveTo(i[n++],i[n++]);break;case"L":t.lineTo(i[n++],i[n++]);break;case"C":t.bezierCurveTo(i[n++],i[n++],i[n++],i[n++],i[n++],i[n++]);break;case"Z":t.closePath()}},Object.defineProperty(e.prototype,"frameIndex",{get:function(){return this._frameIndex},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"renderFrameIndex",{get:function(){return this._renderFrameIndex},set:function(e){this._renderFrameIndex!==e&&(this._renderFrameIndex=e,this.dirty=!0)},enumerable:!0,configurable:!0}),e.id=1,e}();t.Scene=r},function(e,t,o){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,o){var i=function(e,t,o){var i=Math.abs(t-e)/Math.max(0,o),r=Math.pow(10,Math.floor(Math.log(i)/Math.LN10)),l=i/r;l>=n?r*=10:l>=s?r*=5:l>=a&&(r*=2);return t<e?-r:r}(e,t,o);return function(e,t,o){void 0===o&&(o=1);for(var i=Math.abs(o),r=i>0&&i<1?Math.abs(Math.floor(Math.log(i)/Math.LN10)):0,n=Math.pow(10,r),s=Math.max(0,Math.ceil((t-e)/o))||0,a=new l(r,s),p=0;p<s;p++){var u=e+o*p;a[p]=Math.round(u*n)/n}return a}(e=Math.ceil(e/i)*i,t=Math.floor(t/i)*i+i/2,i)};var n=Math.sqrt(50),s=Math.sqrt(10),a=Math.sqrt(2);t.tickIncrement=function(e,t,o){var i=(t-e)/Math.max(0,o),r=Math.floor(Math.log(i)/Math.LN10),l=i/Math.pow(10,r);return r>=0?(l>=n?10:l>=s?5:l>=a?2:1)*Math.pow(10,r):-Math.pow(10,-r)/(l>=n?10:l>=s?5:l>=a?2:1)};var l=function(e){function t(t,o){void 0===o&&(o=0);var i=e.call(this,o)||this;return i.fractionDigits=t,i}return r(t,e),t}(Array);t.NumericTicks=l},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r=o(16),n=o(34),s=o(104),a=o(226),l=o(54),p=o(52),u=o(73),c=o(29),d=o(98);!function(e){e[e.Tick=0]="Tick",e[e.GridLine=1]="GridLine"}(i||(i={}));var h=function(){function e(e){this.group=new r.Group,this.line=new s.Line,this.translationX=0,this.translationY=0,this.rotation=0,this.lineWidth=1,this.lineColor="rgba(195, 195, 195, 1)",this.tickWidth=1,this.tickSize=6,this.tickPadding=5,this.tickColor="rgba(195, 195, 195, 1)",this.labelFontStyle="",this.labelFontWeight="",this.labelFontSize=12,this.labelFontFamily="Verdana, sans-serif",this._title=void 0,this.labelColor="rgba(87, 87, 87, 1)",this._gridLength=0,this._gridStyle=[{stroke:"rgba(219, 219, 219, 1)",lineDash:[4,2]}],this._radialGrid=!1,this.labelRotation=0,this.mirrorLabels=!1,this.parallelLabels=!1,this.scale=e,this.groupSelection=n.Selection.select(this.group).selectAll(),this.group.append(this.line)}return Object.defineProperty(e.prototype,"range",{get:function(){return this.scale.range},set:function(e){this.scale.range=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"domain",{get:function(){return this.scale.domain},set:function(e){this.scale.domain=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"title",{get:function(){return this._title},set:function(e){var t=this._title;t!==e&&(t&&this.group.removeChild(t.node),e&&(e.node.rotation=-Math.PI/2,this.group.appendChild(e.node)),this._title=e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"gridLength",{get:function(){return this._gridLength},set:function(e){(this._gridLength&&!e||!this._gridLength&&e)&&(this.groupSelection=this.groupSelection.remove().setData([])),this._gridLength=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"gridStyle",{get:function(){return this._gridStyle},set:function(e){e.length&&(this._gridStyle=e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"radialGrid",{get:function(){return this._radialGrid},set:function(e){this._radialGrid!==e&&(this._radialGrid=e,this.groupSelection=this.groupSelection.remove().setData([]))},enumerable:!0,configurable:!0}),e.prototype.update=function(){var e=this,t=this.group,o=this.scale,n=l.toRadians(this.rotation),c=l.normalizeAngle360(l.toRadians(this.labelRotation));t.translationX=this.translationX,t.translationY=this.translationY,t.rotation=n;var d=o.ticks(10),h=0;d instanceof a.NumericTicks&&(h=d.fractionDigits);var f=(o.bandwidth||0)/2,g=this.mirrorLabels?1:-1,y=l.normalizeAngle360(n),v=!c&&y>=0&&y<=Math.PI?-1:1,m=l.normalizeAngle360(n-Math.PI/2),C=!c&&m>=0&&m<=Math.PI?-1:1,w=c>=0&&c<=Math.PI?-1:1,_=this.parallelLabels,b=this.groupSelection.setData(d);b.exit.remove();var E=b.enter.append(r.Group);E.append(s.Line).each((function(e){return e.tag=i.Tick})),this.gridLength&&(this.radialGrid?E.append(u.Arc).each((function(e){return e.tag=i.GridLine})):E.append(s.Line).each((function(e){return e.tag=i.GridLine}))),E.append(p.Text);var R=b.merge(E);if(R.attrFn("translationY",(function(e,t){return Math.round(o.convert(t)+f)})),R.selectByTag(i.Tick).each((function(t){t.strokeWidth=e.tickWidth,t.stroke=e.tickColor})).attr("x1",g*this.tickSize).attr("x2",0).attr("y1",0).attr("y2",0),this.gridLength){var P=this.gridStyle,O=P.length,S=void 0;if(this.radialGrid){var A=l.normalizeAngle360Inclusive(l.toRadians(this.gridLength));S=R.selectByTag(i.GridLine).each((function(t,i){var r=Math.round(o.convert(i)+f);t.centerX=0,t.centerY=e.scale.range[0]-r,t.endAngle=A,t.radiusX=r,t.radiusY=r}))}else S=R.selectByTag(i.GridLine).each((function(t){t.x1=0,t.x2=-g*e.gridLength,t.y1=0,t.y2=0,t.visible=Math.abs(t.parent.translationY-o.range[0])>1}));S.each((function(t,o,i){var r=P[i%O];t.stroke=r.stroke,t.strokeWidth=e.tickWidth,t.lineDash=r.lineDash,t.fill=void 0}))}var T=this.labelFormatter,D=R.selectByClass(p.Text).each((function(t,o,i){t.fontStyle=e.labelFontStyle,t.fontWeight=e.labelFontWeight,t.fontSize=e.labelFontSize,t.fontFamily=e.labelFontFamily,t.fill=e.labelColor,t.textBaseline=_&&!c?g*v==-1?"hanging":"bottom":"middle",t.text=T?T({value:h>=0?o:String(o),index:i,fractionDigits:h}):h?o.toFixed(h):String(o),t.textAlign=_?c?g*w==-1?"end":"start":"center":g*C==-1?"end":"start"})),x=g*(this.tickSize+this.tickPadding),F=_?v*Math.PI/2:-1===C?Math.PI:0;D.each((function(e){e.x=x,e.rotationCenterX=x,e.rotation=F+c})),this.groupSelection=R;var M=this.line;M.x1=0,M.x2=0,M.y1=o.range[0],M.y2=o.range[o.range.length-1],M.strokeWidth=this.lineWidth,M.stroke=this.lineColor,M.visible=d.length>0;var N=this.title;if(N){var L=N.padding.bottom,I=N.node,G=this.getBBox(!1),k=-1===g&&y>Math.PI&&y<2*Math.PI?-1:1;I.rotation=k*g*Math.PI/2,I.x=k*g*(M.y1+M.y2)/2,I.y=-1===g?k*(-L-G.width+Math.max(G.x+G.width,0)):-L-G.width-Math.min(G.x,0),I.textBaseline=1===k?"bottom":"top"}},e.prototype.getBBox=function(e){void 0===e&&(e=!0);var t=this.line,o=this.groupSelection.selectByClass(p.Text),i=1/0,r=-1/0,n=1/0,s=-1/0;if(o.each((function(e){e.computeTransformMatrix();var t=d.Matrix.flyweight(e.matrix),o=e.parent;o.computeTransformMatrix(),t.preMultiplySelf(o.matrix);var a=e.getBBox();if(a){var l=t.transformBBox(a);i=Math.min(i,l.x),r=Math.max(r,l.x+l.width),n=Math.min(n,l.y),s=Math.max(s,l.y+l.height)}})),e&&this.title){var a=this.title.node;a.computeTransformMatrix();var l=d.Matrix.flyweight(a.matrix),u=a.getBBox();if(u){var h=l.transformBBox(u);i=Math.min(i,h.x),r=Math.max(r,h.x+h.width),n=Math.min(n,h.y),s=Math.max(s,h.y+h.height)}}return i=Math.min(i,0),r=Math.max(r,0),n=Math.min(n,t.y1,t.y2),s=Math.max(s,t.y1,t.y2),new c.BBox(i,n,r-i,s-n)},e}();t.Axis=h},function(e,t,o){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var n=o(41),s=o(72),a=o(54),l=o(42),p=o(29),u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.path=new s.Path2D,t._dirtyPath=!0,t._centerX=0,t._centerY=0,t._centerOffset=0,t._innerRadius=10,t._outerRadius=20,t._startAngle=0,t._endAngle=2*Math.PI,t._angleOffset=0,t.getBBox=function(){var e=t.outerRadius;return new p.BBox(t.centerX-e,t.centerY-e,2*e,2*e)},t}return r(t,e),t.create=function(e,o,i,r,n,s){void 0===n&&(n=0),void 0===s&&(s=2*Math.PI);var a=new t;return a.centerX=e,a.centerY=o,a.innerRadius=i,a.outerRadius=r,a.startAngle=n,a.endAngle=s,a},Object.defineProperty(t.prototype,"dirtyPath",{get:function(){return this._dirtyPath},set:function(e){this._dirtyPath!==e&&(this._dirtyPath=e,e&&(this.dirty=!0))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"centerX",{get:function(){return this._centerX},set:function(e){this._centerX!==e&&(this._centerX=e,this.dirtyPath=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"centerY",{get:function(){return this._centerY},set:function(e){this._centerY!==e&&(this._centerY=e,this.dirtyPath=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"centerOffset",{get:function(){return this._centerOffset},set:function(e){this._centerOffset!==e&&(this._centerOffset=Math.max(0,e),this.dirtyPath=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"innerRadius",{get:function(){return this._innerRadius},set:function(e){this._innerRadius!==e&&(this._innerRadius=e,this.dirtyPath=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"outerRadius",{get:function(){return this._outerRadius},set:function(e){this._outerRadius!==e&&(this._outerRadius=e,this.dirtyPath=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"startAngle",{get:function(){return this._startAngle},set:function(e){this._startAngle!==e&&(this._startAngle=e,this.dirtyPath=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"endAngle",{get:function(){return this._endAngle},set:function(e){this._endAngle!==e&&(this._endAngle=e,this.dirtyPath=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"angleOffset",{get:function(){return this._angleOffset},set:function(e){this._angleOffset!==e&&(this._angleOffset=e,this.dirtyPath=!0)},enumerable:!0,configurable:!0}),t.prototype.isPointInPath=function(e,t){var o=this.transformPoint(e,t);return this.path.isPointInPath(o.x,o.y)},t.prototype.isPointInStroke=function(e,t){return!1},Object.defineProperty(t.prototype,"fullPie",{get:function(){return l.isEqual(a.normalizeAngle360(this.startAngle),a.normalizeAngle360(this.endAngle))},enumerable:!0,configurable:!0}),t.prototype.updatePath=function(){if(this.dirtyPath){var e=this.path,t=this.angleOffset,o=Math.min(this.startAngle,this.endAngle)+t,i=Math.max(this.startAngle,this.endAngle)+t,r=.5*(o+i),n=Math.min(this.innerRadius,this.outerRadius),s=Math.max(this.innerRadius,this.outerRadius),a=this.centerOffset,l=this.fullPie,p=this.centerX,u=this.centerY;if(e.clear(),a&&(p+=a*Math.cos(r),u+=a*Math.sin(r)),l||(e.moveTo(p+n*Math.cos(o),u+n*Math.sin(o)),e.lineTo(p+s*Math.cos(o),u+s*Math.sin(o))),e.cubicArc(p,u,s,s,0,o,i,0),l)e.moveTo(p+n*Math.cos(i),u+n*Math.sin(i));else{var c=p+n*Math.cos(i);e.lineTo(Math.abs(c)<1e-8?0:c,u+n*Math.sin(i))}e.cubicArc(p,u,n,n,0,i,o,1),e.closePath(),this.dirtyPath=!1}},t.prototype.render=function(e){this.dirtyTransform&&this.computeTransformMatrix(),this.matrix.toContext(e),this.updatePath(),this.scene.appendPath(this.path),this.fillStroke(e),this.dirty=!1},t.className="Sector",t}(n.Shape);t.Sector=u},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e){this._enabled=!0,this._enabled=void 0===e.enabled||e.enabled,this._color=void 0!==e.color?e.color:"black",this._xOffset=void 0!==e.xOffset?e.xOffset:0,this._yOffset=void 0!==e.yOffset?e.yOffset:0,this._blur=void 0!==e.blur?e.blur:0}return Object.defineProperty(e.prototype,"enabled",{get:function(){return this._enabled},set:function(e){this._enabled!==e&&(this._enabled=e,this.update())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"color",{get:function(){return this._color},set:function(e){this._color!==e&&(this._color=e,this.update())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"xOffset",{get:function(){return this._xOffset},set:function(e){this._xOffset!==e&&(this._xOffset=e,this.update())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"yOffset",{get:function(){return this._yOffset},set:function(e){this._yOffset!==e&&(this._yOffset=e,this.update())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"blur",{get:function(){return this._blur},set:function(e){this._blur!==e&&(this._blur=e,this.update())},enumerable:!0,configurable:!0}),e.prototype.update=function(){this.onChange&&this.onChange()},e}();t.DropShadow=i},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(51),r=o(52),n=o(28),s=function(){function e(){this.node=new r.Text,this._enabled=!0,this._padding=new i.Padding(10);var e=this.node;e.textAlign="center",e.textBaseline="top",e.pointerEvents=n.PointerEvents.None}return e.create=function(t){void 0===t&&(t={});var o=new e;return o.text=t.text||"",o.fontStyle=t.fontStyle,o.fontWeight=t.fontWeight||"bold",o.fontSize=t.fontSize||14,o.fontFamily=t.fontFamily||"Verdana, sans-serif",o.color=t.color||"black",o.requestLayout(),o},Object.defineProperty(e.prototype,"text",{get:function(){return this.node.text},set:function(e){this.node.text!==e&&(this.node.text=e,this.requestLayout())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fontStyle",{get:function(){return this.node.fontStyle},set:function(e){this.node.fontStyle!==e&&(this.node.fontStyle=e,this.requestLayout())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fontWeight",{get:function(){return this.node.fontWeight},set:function(e){this.node.fontWeight!==e&&(this.node.fontWeight=e,this.requestLayout())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fontSize",{get:function(){return this.node.fontSize},set:function(e){this.node.fontSize!==e&&(this.node.fontSize=e,this.requestLayout())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fontFamily",{get:function(){return this.node.fontFamily},set:function(e){this.node.fontFamily!==e&&(this.node.fontFamily=e,this.requestLayout())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"color",{get:function(){return this.node.fill||""},set:function(e){this.node.fill!==e&&(this.node.fill=e,this.requestLayout())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"enabled",{get:function(){return this._enabled},set:function(e){this._enabled!==e&&(this._enabled=e,this.requestLayout())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"padding",{get:function(){return this._padding},set:function(e){this._padding!==e&&(this._padding=e,this.requestLayout())},enumerable:!0,configurable:!0}),e.prototype.requestLayout=function(){this.onLayoutChange&&this.onLayoutChange()},e}();t.Caption=s},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(1),r=o(229),n=function(){function e(e){this.chartProxyParams=e}return e.prototype.getChart=function(){return this.chart},e.prototype.getLabelColor=function(){return this.chartProxyParams.isDarkTheme()?e.darkLabelColour:e.lightLabelColour},e.prototype.getAxisGridColor=function(){return this.chartProxyParams.isDarkTheme()?e.darkAxisColour:e.lightAxisColour},e.prototype.getBackgroundColor=function(){return this.chartProxyParams.isDarkTheme()?"#2d3436":"white"},e.prototype.initChartOptions=function(e,t){if(this.chartProxyParams.processChartOptions){var o={type:e,options:t},i=this.chartProxyParams.processChartOptions(o);this.overridePalette(i),this.chartOptions=i}else this.chartOptions=t;this.chartOptions.parent=this.chartProxyParams.parentElement,this.chartOptions.width=this.chartProxyParams.width,this.chartOptions.height=this.chartProxyParams.height},e.prototype.overridePalette=function(e){var t=e.seriesDefaults,o=this.chartProxyParams.getSelectedPalette(),i=o.fills,r=o.strokes,n=t.fills!==i,s=t.strokes!==r;(n||s)&&(this.overriddenPalette={fills:n&&t.fills?t.fills:i,strokes:s&&t.strokes?t.strokes:r})},e.prototype.setChartPaddingProperty=function(e,t){var o=this.chart.padding;o[e]=t,this.chart.padding=o,this.chartOptions.padding=o,this.raiseChartOptionsChangedEvent()},e.prototype.getChartPadding=function(e){return this.chartOptions.padding?""+this.chartOptions.padding[e]:""},e.prototype.setLegendProperty=function(e,t){this.chart.legend[e]=t,this.chartOptions.legend||(this.chartOptions.legend={}),this.chartOptions.legend[e]=t,this.raiseChartOptionsChangedEvent()},e.prototype.getLegendProperty=function(e){return this.chartOptions.legend?""+this.chartOptions.legend[e]:""},e.prototype.getLegendEnabled=function(){return!!this.chartOptions.legend&&!!this.chartOptions.legend.enabled},e.prototype.setLegendPadding=function(e){this.chart.legendPadding=e,this.chartOptions.legendPadding=e,this.raiseChartOptionsChangedEvent()},e.prototype.getLegendPadding=function(){return""+this.chartOptions.legendPadding},e.prototype.setLegendPosition=function(e){this.chart.legendPosition=e,this.chartOptions.legendPosition=e,this.raiseChartOptionsChangedEvent()},e.prototype.getLegendPosition=function(){return""+this.chartOptions.legendPosition},e.prototype.setTitleProperty=function(e,t){this.chart.title||(this.chart.title={}),this.chart.title[e]=t,this.chartOptions.title||(this.chartOptions.title={}),this.chartOptions.title[e]=t,this.raiseChartOptionsChangedEvent()},e.prototype.getTitleProperty=function(e){return this.chart.title?""+this.chart.title[e]:""},e.prototype.getShadowEnabled=function(){var e=this.chartOptions;return!(!e.seriesDefaults||!e.seriesDefaults.shadow)&&!!e.seriesDefaults.shadow.enabled},e.prototype.getShadowProperty=function(e){var t=this.chartOptions;return t.seriesDefaults&&t.seriesDefaults.shadow?t.seriesDefaults.shadow[e]:""},e.prototype.setShadowProperty=function(e,t){this.getChart().series.forEach((function(o){o.shadow||(o.shadow=new r.DropShadow({enabled:!1,blur:0,xOffset:0,yOffset:0,color:"rgba(0,0,0,0.5)"})),o.shadow[e]=t}));var o=this.chartOptions;o.seriesDefaults||(o.seriesDefaults={}),o.seriesDefaults.shadow||(o.seriesDefaults.shadow={}),o.seriesDefaults.shadow[e]=t,this.raiseChartOptionsChangedEvent()},e.prototype.raiseChartOptionsChangedEvent=function(){var e={type:i.Events.EVENT_CHART_OPTIONS_CHANGED,chartType:this.chartProxyParams.chartType,chartOptions:this.chartOptions};this.chartProxyParams.eventService.dispatchEvent(e)},e.prototype.destroy=function(){this.chart.destroy()},e.darkLabelColour="rgb(221, 221, 221)",e.lightLabelColour="rgb(87, 87, 87)",e.darkAxisColour="rgb(100, 100, 100)",e.lightAxisColour="rgb(219, 219, 219)",e}();t.ChartProxy=n},function(e,t,o){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var n=function(e){function t(t){return e.call(this,t)||this}return r(t,e),t.prototype.setSeriesProperty=function(e,t){this.getChart().series.forEach((function(o){return o[e]=t})),this.chartOptions.seriesDefaults||(this.chartOptions.seriesDefaults={}),this.chartOptions.seriesDefaults[e]=t,this.raiseChartOptionsChangedEvent()},t.prototype.getSeriesProperty=function(e){return this.chartOptions.seriesDefaults?""+this.chartOptions.seriesDefaults[e]:""},t.prototype.getTooltipsEnabled=function(){return!!this.chartOptions.seriesDefaults&&!!this.chartOptions.seriesDefaults.tooltipEnabled},t.prototype.getLabelEnabled=function(){return!!this.chartOptions.seriesDefaults&&!!this.chartOptions.seriesDefaults.labelEnabled},t}(o(231).ChartProxy);t.PolarChartProxy=n},function(e,t,o){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),n=this&&this.__decorate||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},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(1),l=o(166),p=o(109),u=function(e){function t(o,i){var r=e.call(this,t.TEMPLATE)||this;return r.allowDragging=o,r.params=i,r}return r(t,e),t.prototype.init=function(){this.primaryColsHeaderPanel.init(this.params),this.primaryColsListPanel.init(this.params,this.allowDragging);var e=this.params.suppressColumnFilter,t=this.params.suppressColumnSelectAll;this.params.suppressColumnExpandAll&&e&&t&&this.primaryColsHeaderPanel.setDisplayed(!1),this.addDestroyableEventListener(this.primaryColsHeaderPanel,"expandAll",this.onExpandAll.bind(this)),this.addDestroyableEventListener(this.primaryColsHeaderPanel,"collapseAll",this.onCollapseAll.bind(this)),this.addDestroyableEventListener(this.primaryColsHeaderPanel,"selectAll",this.onSelectAll.bind(this)),this.addDestroyableEventListener(this.primaryColsHeaderPanel,"unselectAll",this.onUnselectAll.bind(this)),this.addDestroyableEventListener(this.primaryColsHeaderPanel,"filterChanged",this.onFilterChanged.bind(this)),this.addDestroyableEventListener(this.primaryColsListPanel,"groupExpanded",this.onGroupExpanded.bind(this))},t.prototype.onFilterChanged=function(e){this.primaryColsListPanel.setFilterText(e.filterText)},t.prototype.onSelectAll=function(){this.primaryColsListPanel.doSetSelectedAll(!0)},t.prototype.onUnselectAll=function(){this.primaryColsListPanel.doSetSelectedAll(!1)},t.prototype.onExpandAll=function(){this.primaryColsListPanel.doSetExpandedAll(!0)},t.prototype.onCollapseAll=function(){this.primaryColsListPanel.doSetExpandedAll(!1)},t.prototype.onGroupExpanded=function(e){this.primaryColsHeaderPanel.setExpandState(e.state)},t.TEMPLATE='<div class="ag-column-select-panel">\n <ag-primary-cols-header ref="primaryColsHeaderPanel"></ag-primary-cols-header>\n <ag-primary-cols-list ref="primaryColsListPanel"></ag-primary-cols-list>\n </div>',n([a.Autowired("gridOptionsWrapper"),s("design:type",a.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),n([a.RefSelector("primaryColsHeaderPanel"),s("design:type",p.PrimaryColsHeaderPanel)],t.prototype,"primaryColsHeaderPanel",void 0),n([a.RefSelector("primaryColsListPanel"),s("design:type",l.PrimaryColsListPanel)],t.prototype,"primaryColsListPanel",void 0),n([a.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"init",null),t}(a.Component);t.PrimaryColsPanel=u},function(e,t,o){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var n=o(1),s=function(e){function t(t){var o=e.call(this,{columnController:t.columnController,valueService:t.valueService,gridOptionsWrapper:t.gridOptionsWrapper,processCellCallback:t.processCellCallback,processHeaderCallback:t.processHeaderCallback,cellAndHeaderEscaper:function(e){return e}})||this;o.mixedStyles={},o.mixedStyleCounter=0,o.rows=[];var i=t.sheetName,r=t.excelFactory,n=t.baseExcelStyles,s=t.styleLinker,a=t.suppressTextAsCDATA,l=t.rowHeight,p=t.headerRowHeight;return o.sheetName=i,o.excelFactory=r,o.baseExcelStyles=n||[],o.styleLinker=s,o.suppressTextAsCDATA=a,o.stylesByIds={},o.rowHeight=l,o.headerRowHeight=p,o.baseExcelStyles.forEach((function(e){o.stylesByIds[e.id]=e})),o.excelStyles=o.baseExcelStyles.slice(),o}return r(t,e),t.prototype.addCustomHeader=function(e){this.customHeader=e},t.prototype.addCustomFooter=function(e){this.customFooter=e},t.prototype.prepare=function(e){this.cols=n._.map(e,(function(e){return e.getColDef().cellStyle,{width:e.getActualWidth()}}))},t.prototype.onNewHeaderGroupingRow=function(){var e=[],t=this;return this.rows.push({cells:e,height:this.headerRowHeight}),{onColumn:function(o,i,r){var s=t.styleLinker(n.RowType.HEADER_GROUPING,1,i,"grouping-"+o,void 0,void 0);e.push(t.createMergedCell(s&&s.length>0?s[0]:void 0,"String",o,r))}}},t.prototype.onNewHeaderRow=function(){return this.onNewRow(this.onNewHeaderColumn,this.headerRowHeight)},t.prototype.onNewBodyRow=function(){return this.onNewRow(this.onNewBodyColumn,this.rowHeight)},t.prototype.onNewRow=function(e,t){var o=[];return this.rows.push({cells:o,height:t}),{onColumn:e.bind(this,this.rows.length,o)()}},t.prototype.onNewHeaderColumn=function(e,t){var o=this,i=this;return function(r,s,a){var l=o.extractHeaderValue(r),p=i.styleLinker(n.RowType.HEADER,e,s,l,r,void 0);t.push(o.createCell(p&&p.length>0?p[0]:void 0,"String",l))}},t.prototype.parse=function(){var e,t,o,i,r=[{name:this.sheetName,table:{columns:this.cols,rows:(e=this.customHeader,t=this.rows,o=this.customFooter,i=[],e&&e.forEach((function(e){return i.push({cells:e})})),t.forEach((function(e){return i.push(e)})),o&&o.forEach((function(e){return i.push({cells:e})})),i)}}];return this.excelFactory.createExcel(this.excelStyles,r,[])},t.prototype.onNewBodyColumn=function(e,t){var o=this,i=this;return function(r,s,a){var l,p=o.extractRowCellValue(r,s,n.Constants.EXPORT_TYPE_EXCEL,a),u=i.styleLinker(n.RowType.BODY,e,s,p,r,a);if(u&&1==u.length)l=u[0];else if(u&&u.length>1){var c=u.join("-");o.mixedStyles[c]||o.addNewMixedStyle(u),l=o.mixedStyles[c].excelID}var d=n._.isNumeric(p)?"Number":"String";t.push(i.createCell(l,d,p))}},t.prototype.addNewMixedStyle=function(e){var t=this;this.mixedStyleCounter+=1;var o="mixedStyle"+this.mixedStyleCounter,i={};e.forEach((function(e){t.excelStyles.forEach((function(t){t.id===e&&n._.mergeDeep(i,n._.deepCloneObject(t))}))})),i.id=o,i.name=o;var r=e.join("-");this.mixedStyles[r]={excelID:o,key:r,result:i},this.excelStyles.push(i),this.stylesByIds[o]=i},t.prototype.styleExists=function(e){return null!=e&&this.stylesByIds[e]},t.prototype.createCell=function(e,t,o){var i=this,r=e&&this.stylesByIds[e],s=void 0!==r;var a,l=function(){if(s&&r.dataType)switch(r.dataType){case"string":return"String";case"number":return"Number";case"dateTime":return"DateTime";case"error":return"Error";case"boolean":return"Boolean";default:console.warn("ag-grid: Unrecognized data type for excel export ["+r.id+".dataType="+r.dataType+"]")}return t}();return{styleId:s?e:void 0,data:{type:l,value:"String"===l?(a=o,i.suppressTextAsCDATA?n._.escape(a):"<![CDATA["+a+"]]>"):"Number"===l?Number(o).valueOf()+"":"Boolean"===l?function(e){return e&&"0"!==e&&"false"!==e?"1":"0"}(o):o}}},t.prototype.createMergedCell=function(e,t,o,i){return{styleId:this.styleExists(e)?e:void 0,data:{type:t,value:o},mergeAcross:i}},t}(n.BaseGridSerializingSession);t.ExcelXmlSerializingSession=s},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={getTemplate:function(e){return{name:"numFmt",properties:{rawMap:{formatCode:e.formatCode,numFmtId:e.numFmtId}}}}},t.numberFormatMap={0:1,"0.00":2,"#,##0":3,"#,##0.00":4,"0%":9,"0.00%":10,"0.00E+00":11,"# ?/?":12,"# ??/??":13,"mm-dd-yy":14,"d-mmm-yy":15,"d-mmm":16,"mmm-yy":17,"h:mm AM/PM":18,"h:mm:ss AM/PM":19,"h:mm":20,"h:mm:ss":21,"m/d/yy h:mm":22,"#,##0 ;(#,##0)":37,"#,##0 ;[Red](#,##0)":38,"#,##0.00;(#,##0.00)":39,"#,##0.00;[Red](#,##0.00)":40,"mm:ss":45,"[h]:mm:ss":46,"mmss.0":47,"##0.0E+0":48,"@":49}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={getTemplate:function(e){var t=e.size,o=void 0===t?14:t,i=e.colorTheme,r=e.color,n=void 0===r?"00000000":r,s=e.name,a=void 0===s?"Calibri":s,l=e.family,p=e.scheme,u=e.italic,c=e.bold,d=e.strike,h=e.outline,f=e.shadow,g=e.underline,y=[{name:"sz",properties:{rawMap:{val:o}}},{name:"color",properties:{rawMap:{theme:i,rgb:n}}},{name:"name",properties:{rawMap:{val:a}}}];if(l&&y.push({name:"family",properties:{rawMap:{val:l}}}),p&&y.push({name:"scheme",properties:{rawMap:{val:p}}}),u&&y.push({name:"i"}),c&&y.push({name:"b"}),d&&y.push({name:"strike"}),h&&y.push({name:"outline"}),f&&y.push({name:"shadow"}),g){var v=g.toLocaleLowerCase();y.push({name:"u",properties:{rawMap:{val:"double"===v?"double":"single"}}})}return{name:"font",children:y}}},t.getFamilyId=function(e){var t=["Automatic","Roman","Swiss","Modern","Script","Decorative"].indexOf(e||"Automatic");return Math.max(t,0)}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(177),r=function(e){return{name:"color",properties:{rawMap:{rgb:i.convertLegacyColor(e||"#000000")}}}},n={getTemplate:function(e){var t=e.left,o=e.right,i=e.top,n=e.bottom,s=e.diagonal,a=t?[r(t.color)]:void 0,l=o?[r(o.color)]:void 0,p=i?[r(i.color)]:void 0,u=n?[r(n.color)]:void 0,c=s?[r(s.color)]:void 0;return{name:"border",children:[{name:"left",properties:{rawMap:{style:t&&t.style}},children:a},{name:"right",properties:{rawMap:{style:o&&o.style}},children:l},{name:"top",properties:{rawMap:{style:i&&i.style}},children:p},{name:"bottom",properties:{rawMap:{style:n&&n.style}},children:u},{name:"diagonal",properties:{rawMap:{style:s&&s.style}},children:c}]}}};t.default=n;var s={None:"None",Dot:"Dotted",Dash:"Dashed",Double:"Double",DashDot:"DashDot",DashDotDot:"DashDotDot",SlantDashDot:"SlantDashDot"},a=["Dashed","DashDot","DashDotDot"];t.convertLegacyBorder=function(e,t){var o,i=1===(o=t)?"thin":2===o?"medium":3===o?"thick":"hair",r=s[e];return e?"Continuous"===e?i:"medium"===i&&a.indexOf(r)>0?"medium"+r:r.charAt(0).toLowerCase()+r.substr(1):"thin"}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(370),r=o(371),n={getTemplate:function(e){var t=e.alignment,o=e.borderId,n=e.fillId,s=e.fontId,a=e.numFmtId,l=e.protection,p=e.xfId,u=[];return t&&u.push(i.default.getTemplate(t)),l&&u.push(r.default.getTemplate(l)),{name:"xf",properties:{rawMap:{applyAlignment:t?1:void 0,applyProtection:l?1:void 0,applyBorder:o?1:void 0,borderId:o,fillId:n,applyFont:s?1:void 0,fontId:s,applyNumberFormat:a?1:void 0,numFmtId:a,xfId:p}},children:u.length?u:void 0}}};t.default=n},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(1),r=o(378),n=o(379),s=o(381),a=function(e,o){var i=[];return e.forEach((function(e,r){var n,s=e.cells,a=0;e.index=r+1,s.forEach((function(e,s){var l=s+a+1,p=t.getExcelColumnName(l),u=r+1;if(e.mergeAcross){a+=e.mergeAcross;var c=t.getExcelColumnName(s+a+1);i.push(""+p+u+":"+c+u)}o[l-1]||(o[l-1]={}),function(e,t,o,i){if(!e.min)return e.min=t,void(e.max=t+o);var r=t;i&&(r=Math.max(r,i.min)),e.min=Math.max(e.min,r),e.max=Math.max(e.max,r+o)}(o[l-1],l,a,n),n=o[l-1],e.ref=""+p+u}))})),i};t.getExcelColumnName=function(e){var o=String.fromCharCode,i=Math.floor(e/26),r=e%26;return i&&26!==e?r?i<26?o(65+i-1)+o(65+r-1):t.getExcelColumnName(i)+o(65+r-1):t.getExcelColumnName(i-1)+"Z":o(65+e-1)};var l={getTemplate:function(e){var t=e.table,o=t.rows,l=t.columns,p=l&&l.length?a(o,l):[],u=[];return l.length&&u.push({name:"cols",children:i._.map(l,r.default.getTemplate)}),o.length&&u.push({name:"sheetData",children:i._.map(o,n.default.getTemplate)}),p.length&&u.push({name:"mergeCells",properties:{rawMap:{count:p.length}},children:i._.map(p,s.default.getTemplate)}),{name:"worksheet",properties:{prefixedAttributes:[{prefix:"xmlns:",map:{r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships"}}],rawMap:{xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main"}},children:u}}};t.default=l},function(e,t,o){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),n=this&&this.__decorate||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},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},a=this&&this.__param||function(e,t){return function(o,i){t(o,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});var l=o(1),p=o(384),u=o(241),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.ensureRowHeightsValid=function(e,t,o,i){return!1},t.prototype.postConstruct=function(){this.rowHeight=this.gridOptionsWrapper.getRowHeightAsNumber(),this.addEventListeners();var e=this.gridOptionsWrapper.getServerSideDatasource();l._.exists(e)&&this.setDatasource(e)},t.prototype.destroyDatasource=function(){this.datasource&&(this.datasource.destroy&&this.datasource.destroy(),this.rowRenderer.datasourceChanged(),this.datasource=void 0)},t.prototype.setBeans=function(e){this.logger=e.create("ServerSideRowModel")},t.prototype.addEventListeners=function(){this.addDestroyableEventListener(this.eventService,l.Events.EVENT_COLUMN_ROW_GROUP_CHANGED,this.onColumnRowGroupChanged.bind(this)),this.addDestroyableEventListener(this.eventService,l.Events.EVENT_ROW_GROUP_OPENED,this.onRowGroupOpened.bind(this)),this.addDestroyableEventListener(this.eventService,l.Events.EVENT_COLUMN_PIVOT_MODE_CHANGED,this.onPivotModeChanged.bind(this)),this.addDestroyableEventListener(this.eventService,l.Events.EVENT_COLUMN_EVERYTHING_CHANGED,this.onColumnEverything.bind(this)),this.addDestroyableEventListener(this.eventService,l.Events.EVENT_COLUMN_VALUE_CHANGED,this.onValueChanged.bind(this)),this.addDestroyableEventListener(this.eventService,l.Events.EVENT_COLUMN_PIVOT_CHANGED,this.onColumnPivotChanged.bind(this)),this.addDestroyableEventListener(this.eventService,l.Events.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this)),this.addDestroyableEventListener(this.eventService,l.Events.EVENT_SORT_CHANGED,this.onSortChanged.bind(this))},t.prototype.setDatasource=function(e){this.destroyDatasource(),this.datasource=e,this.reset()},t.prototype.isLastRowFound=function(){return!!this.cacheExists()&&this.rootNode.childrenCache.isMaxRowFound()},t.prototype.onColumnEverything=function(){if(!this.gridOptionsWrapper.isSuppressEnterpriseResetOnNewColumns()){var e;if(this.cacheParams){var t=this.toValueObjects(this.columnController.getRowGroupColumns()),o=this.toValueObjects(this.columnController.getValueColumns()),i=this.toValueObjects(this.columnController.getPivotColumns()),r=!l._.jsonEquals(this.cacheParams.sortModel,this.sortController.getSortModel()),n=!l._.jsonEquals(this.cacheParams.rowGroupCols,t),s=!l._.jsonEquals(this.cacheParams.pivotCols,i),a=!l._.jsonEquals(this.cacheParams.valueCols,o);e=r||n||s||a}else e=!0;e&&this.reset()}},t.prototype.onFilterChanged=function(){this.reset()},t.prototype.findChangedColumnsInSort=function(e,t){var o=[];[e,t].forEach((function(e){if(e){var t=e.map((function(e){return e.colId}));o=o.concat(t)}}));return o.filter((function(o){var i=l._.find(t,(function(e){return e.colId===o})),r=l._.find(e,(function(e){return e.colId===o}));return function(e,t){return(e?e.sort:null)!==(t?t.sort:null)}(i,r)||function(o,i){return t.indexOf(o)!==e.indexOf(i)}(i,r)}))},t.prototype.onSortChanged=function(){if(this.cacheExists()){var e=this.extractSortModel(),t=this.cacheParams.sortModel,o=this.findChangedColumnsInSort(e,t);this.cacheParams.sortModel=e;var i=this.columnController.getRowGroupColumns().map((function(e){return e.getId()})),r=this.rootNode.childrenCache,n=this.isSortingWithValueColumn(o),s=this.isSortingWithSecondaryColumn(o);this.gridOptionsWrapper.isServerSideSortingAlwaysResets()||n||s?this.reset():r.refreshCacheAfterSort(o,i)}},t.prototype.onValueChanged=function(){this.reset()},t.prototype.onColumnRowGroupChanged=function(){this.reset()},t.prototype.onColumnPivotChanged=function(){this.reset()},t.prototype.onPivotModeChanged=function(){this.reset()},t.prototype.onRowGroupOpened=function(e){var t=this,o=e.node;o.expanded?o.master?this.createDetailNode(o):l._.missing(o.childrenCache)&&this.createNodeCache(o):this.gridOptionsWrapper.isPurgeClosedRowNodes()&&l._.exists(o.childrenCache)&&(o.childrenCache.destroy(),o.childrenCache=null);this.updateRowIndexesAndBounds();var i,r={type:l.Events.EVENT_MODEL_UPDATED,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),newPage:!1,newData:!1,animate:(i=t.gridOptionsWrapper.isAnimateRows(),o.master?i&&o.expanded:i),keepRenderedRows:!0};this.eventService.dispatchEvent(r)},t.prototype.reset=function(){this.rootNode=new l.RowNode,this.rootNode.group=!0,this.rootNode.level=-1,this.getContext().wireBean(this.rootNode),this.datasource&&(this.createNewRowNodeBlockLoader(),this.cacheParams=this.createCacheParams(),this.createNodeCache(this.rootNode),this.updateRowIndexesAndBounds());var e={type:l.Events.EVENT_ROW_DATA_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(e);var t={type:l.Events.EVENT_MODEL_UPDATED,api:this.gridApi,columnApi:this.columnApi,animate:!1,keepRenderedRows:!1,newData:!1,newPage:!1};this.eventService.dispatchEvent(t)},t.prototype.createNewRowNodeBlockLoader=function(){this.destroyRowNodeBlockLoader();var e=this.gridOptionsWrapper.getMaxConcurrentDatasourceRequests(),t=this.gridOptionsWrapper.getBlockLoadDebounceMillis();this.rowNodeBlockLoader=new l.RowNodeBlockLoader(e,t),this.getContext().wireBean(this.rowNodeBlockLoader)},t.prototype.destroyRowNodeBlockLoader=function(){this.rowNodeBlockLoader&&(this.rowNodeBlockLoader.destroy(),this.rowNodeBlockLoader=void 0)},t.prototype.toValueObjects=function(e){var t=this;return e.map((function(e){return{id:e.getId(),aggFunc:e.getAggFunc(),displayName:t.columnController.getDisplayNameForColumn(e,"model"),field:e.getColDef().field}}))},t.prototype.createCacheParams=function(){var e=this.toValueObjects(this.columnController.getRowGroupColumns()),t=this.toValueObjects(this.columnController.getValueColumns()),o=this.toValueObjects(this.columnController.getPivotColumns()),i=this.gridOptionsWrapper.isDynamicRowHeight(),r=this.gridOptionsWrapper.getMaxBlocksInCache();i&&r>=0&&(console.warn("ag-Grid: Server Side Row Model does not support Dynamic Row Height and Cache Purging. Either a) remove getRowHeight() callback or b) remove maxBlocksInCache property. Purging has been disabled."),r=void 0),r>=0&&this.columnController.isAutoRowHeightActive()&&(console.warn("ag-Grid: Server Side Row Model does not support Auto Row Height and Cache Purging. Either a) remove colDef.autoHeight or b) remove maxBlocksInCache property. Purging has been disabled."),r=void 0);var n={valueCols:t,rowGroupCols:e,pivotCols:o,pivotMode:this.columnController.isPivotMode(),filterModel:this.filterManager.getFilterModel(),sortModel:this.extractSortModel(),rowNodeBlockLoader:this.rowNodeBlockLoader,datasource:this.datasource,lastAccessedSequence:new l.NumberSequence,overflowSize:1,initialRowCount:1,maxConcurrentRequests:this.gridOptionsWrapper.getMaxConcurrentDatasourceRequests()||0,maxBlocksInCache:r,blockSize:this.gridOptionsWrapper.getCacheBlockSize(),rowHeight:this.rowHeight,dynamicRowHeight:i};return n.maxConcurrentRequests>=1||(n.maxConcurrentRequests=2),n.blockSize>=1||(n.blockSize=u.ServerSideBlock.DefaultBlockSize),n.initialRowCount>=1||(n.initialRowCount=0),n.overflowSize>=1||(n.overflowSize=1),n},t.prototype.createNodeCache=function(e){var t=new p.ServerSideCache(this.cacheParams,e);this.getContext().wireBean(t),t.addEventListener(l.RowNodeCache.EVENT_CACHE_UPDATED,this.onCacheUpdated.bind(this)),e.childrenCache=t},t.prototype.onCacheUpdated=function(){this.updateRowIndexesAndBounds();var e={type:l.Events.EVENT_MODEL_UPDATED,api:this.gridApi,columnApi:this.columnApi,animate:this.gridOptionsWrapper.isAnimateRows(),keepRenderedRows:!0,newPage:!1,newData:!1};this.eventService.dispatchEvent(e)},t.prototype.updateRowIndexesAndBounds=function(){if(this.cacheExists()){var e=this.rootNode.childrenCache;this.resetRowTops(e),this.setDisplayIndexes(e)}},t.prototype.setDisplayIndexes=function(e){var t=new l.NumberSequence;e.setDisplayIndexes(t,{value:0})},t.prototype.resetRowTops=function(e){var t=new l.NumberSequence;e.forEachNodeDeep((function(e){return e.clearRowTop()}),t)},t.prototype.getRow=function(e){return this.cacheExists()?this.rootNode.childrenCache.getRow(e):null},t.prototype.getRowCount=function(){return this.cacheExists()?this.rootNode.childrenCache.getDisplayIndexEnd():1},t.prototype.getTopLevelRowCount=function(){return this.cacheExists()?this.rootNode.childrenCache.getVirtualRowCount():1},t.prototype.getTopLevelRowDisplayedIndex=function(e){return this.cacheExists()?this.rootNode.childrenCache.getTopLevelRowDisplayedIndex(e):e},t.prototype.getRowBounds=function(e){return this.cacheExists()?this.rootNode.childrenCache.getRowBounds(e):{rowTop:0,rowHeight:this.rowHeight}},t.prototype.getRowIndexAtPixel=function(e){return 0===e?0:this.cacheExists()?this.rootNode.childrenCache.getRowIndexAtPixel(e):0},t.prototype.getCurrentPageHeight=function(){return this.rowHeight*this.getRowCount()},t.prototype.isEmpty=function(){return!1},t.prototype.isRowsToRender=function(){return this.cacheExists()&&this.getRowCount()>0},t.prototype.getType=function(){return l.Constants.ROW_MODEL_TYPE_SERVER_SIDE},t.prototype.forEachNode=function(e){this.cacheExists()&&this.rootNode.childrenCache.forEachNodeDeep(e)},t.prototype.executeOnCache=function(e,t){if(this.cacheExists()){var o=this.rootNode.childrenCache.getChildCache(e);o&&t(o)}},t.prototype.purgeCache=function(e){void 0===e&&(e=[]),this.executeOnCache(e,(function(e){return e.purgeCache()}))},t.prototype.getNodesInRangeForSelection=function(e,t){return l._.exists(e)&&e.parent!==t.parent?[]:t.parent.childrenCache.getRowNodesInRange(e,t)},t.prototype.getRowNode=function(e){var t=null;return this.forEachNode((function(o){o.id===e&&(t=o),o.detailNode&&o.detailNode.id===e&&(t=o.detailNode)})),t},t.prototype.getBlockState=function(){return this.rowNodeBlockLoader?this.rowNodeBlockLoader.getBlockState():null},t.prototype.isRowPresent=function(e){return!!this.getRowNode(e.id)},t.prototype.extractSortModel=function(){var e=this.sortController.getSortModel();if(this.gridOptionsWrapper.isTreeData())return e;for(var t=this.toValueObjects(this.columnController.getRowGroupColumns()),o=-1,i=0;i<e.length;++i)if(e[i].colId===l.Constants.GROUP_AUTO_COLUMN_ID){o=i;break}if(o>-1){var r=t.map((function(t){return{colId:t.field,sort:e[o].sort}}));e.splice(o,1);var n=function(t){var i=r[t];if(e.some((function(e){return e.colId===i.colId})))return"continue";e.splice(o++,0,i)};for(i=0;i<r.length;i++)n(i)}if(this.gridOptionsWrapper.isGroupMultiAutoColumn()){var s=l.Constants.GROUP_AUTO_COLUMN_ID+"-";for(i=0;i<e.length;++i)e[i].colId.indexOf(s)>-1&&(e[i].colId=e[i].colId.substr(s.length))}return e},t.prototype.isSortingWithValueColumn=function(e){for(var t=this.columnController.getValueColumns().map((function(e){return e.getColId()})),o=0;o<e.length;o++)if(t.indexOf(e[o])>-1)return!0;return!1},t.prototype.isSortingWithSecondaryColumn=function(e){if(!this.columnController.getSecondaryColumns())return!1;for(var t=this.columnController.getSecondaryColumns().map((function(e){return e.getColId()})),o=0;o<e.length;o++)if(t.indexOf(e[o])>-1)return!0;return!1},t.prototype.cacheExists=function(){return l._.exists(this.rootNode)&&l._.exists(this.rootNode.childrenCache)},t.prototype.createDetailNode=function(e){if(l._.exists(e.detailNode))return e.detailNode;var t=new l.RowNode;this.getContext().wireBean(t),t.detail=!0,t.selectable=!1,t.parent=e,l._.exists(e.id)&&(t.id="detail_"+e.id),t.data=e.data,t.level=e.level+1;var o=this.gridOptionsWrapper.getRowHeightForNode(t).height;return t.rowHeight=o||200,e.detailNode=t,t},t.prototype.isLoading=function(){return!!this.rowNodeBlockLoader&&this.rowNodeBlockLoader.isLoading()},n([l.Autowired("gridOptionsWrapper"),s("design:type",l.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),n([l.Autowired("eventService"),s("design:type",l.EventService)],t.prototype,"eventService",void 0),n([l.Autowired("columnController"),s("design:type",l.ColumnController)],t.prototype,"columnController",void 0),n([l.Autowired("filterManager"),s("design:type",l.FilterManager)],t.prototype,"filterManager",void 0),n([l.Autowired("sortController"),s("design:type",l.SortController)],t.prototype,"sortController",void 0),n([l.Autowired("gridApi"),s("design:type",l.GridApi)],t.prototype,"gridApi",void 0),n([l.Autowired("columnApi"),s("design:type",l.ColumnApi)],t.prototype,"columnApi",void 0),n([l.Autowired("rowRenderer"),s("design:type",l.RowRenderer)],t.prototype,"rowRenderer",void 0),n([l.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"postConstruct",null),n([l.PreDestroy,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"destroyDatasource",null),n([a(0,l.Qualifier("loggerFactory")),s("design:type",Function),s("design:paramtypes",[l.LoggerFactory]),s("design:returntype",void 0)],t.prototype,"setBeans",null),t=n([l.Bean("rowModel")],t)}(l.BeanStub);t.ServerSideRowModel=c},function(e,t,o){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),n=this&&this.__decorate||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},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},a=this&&this.__param||function(e,t){return function(o,i){t(o,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});var l=o(1),p=function(e){function t(t,o,i,r){var n=e.call(this,t,i)||this;return n.params=i,n.parentRowNode=o,n.parentCache=r,n.level=o.level+1,n.groupLevel=i.rowGroupCols?n.level<i.rowGroupCols.length:void 0,n.leafGroup=!!i.rowGroupCols&&n.level===i.rowGroupCols.length-1,n}return r(t,e),t.prototype.init=function(){if(this.usingTreeData=this.gridOptionsWrapper.isTreeData(),this.usingMasterDetail=this.gridOptionsWrapper.isMasterDetail(),!this.usingTreeData&&this.groupLevel){var t=this.params.rowGroupCols[this.level];this.groupField=t.field,this.rowGroupColumn=this.columnController.getRowGroupColumns()[this.level]}this.createNodeIdPrefix(),e.prototype.init.call(this,{context:this.getContext(),rowRenderer:this.rowRenderer})},t.prototype.setBeans=function(e){this.logger=e.create("ServerSideBlock")},t.prototype.createNodeIdPrefix=function(){for(var e=[],t=this.parentRowNode;t&&t.level>=0;)e.push(t.key),t=t.parent;e.length>0&&(this.nodeIdPrefix=e.reverse().join("-")+"-")},t.prototype.createIdForIndex=function(e){return l._.exists(this.nodeIdPrefix)?this.nodeIdPrefix+e.toString():e.toString()},t.prototype.getNodeIdPrefix=function(){return this.nodeIdPrefix},t.prototype.getRow=function(t){var o=this.getStartRow(),i=this.parentCache.getVirtualRowCount(),r=this.getEndRow(),n=(i<r?i:r)-1;if(l._.missing(n)||l._.missing(o))return console.warn("ag-grid: error: topPointer = "+n+", bottomPointer = "+o),null;for(;;){var s=Math.floor((o+n)/2),a=e.prototype.getRowUsingLocalIndex.call(this,s);if(a.rowIndex===t)return a;if(a.master&&a.expanded&&a.detailNode.rowIndex===t)return a.detailNode;var p=a.childrenCache;if(a.expanded&&p&&p.isDisplayIndexInCache(t))return p.getRow(t);if(a.rowIndex<t)o=s+1;else{if(!(a.rowIndex>t))return console.warn("ag-Grid: error: unable to locate rowIndex = "+t+" in cache"),null;n=s-1}}},t.prototype.setDataAndId=function(e,t,o){var i=this;if(e.stub=!1,l._.exists(t)){var r=this.createIdForIndex(o);if(e.setDataAndId(t,r),e.setRowHeight(this.gridOptionsWrapper.getRowHeightForNode(e).height),this.usingTreeData){var n=this.gridOptionsWrapper.getServerSideGroupKeyFunc();l._.exists(n)&&n&&(e.key=n(e.data));var s=this.gridOptionsWrapper.getIsServerSideGroupFunc();l._.exists(s)&&s&&(e.group=s(e.data))}else if(e.group)e.key=this.valueService.getValue(this.rowGroupColumn,e),null!==e.key&&void 0!==e.key||l._.doOnce((function(){console.warn("null and undefined values are not allowed for server side row model keys"),i.rowGroupColumn&&console.warn("column = "+i.rowGroupColumn.getId()),console.warn("data is ",e.data)}),"ServerSideBlock-CannotHaveNullOrUndefinedForKey");else if(this.usingMasterDetail){var a=this.gridOptionsWrapper.getIsRowMasterFunc();l._.exists(a)&&a?e.master=a(e.data):e.master=!0}}else e.setDataAndId(void 0,void 0),e.key=null;(this.usingTreeData||this.groupLevel)&&(this.setGroupDataIntoRowNode(e),this.setChildCountIntoRowNode(e))},t.prototype.setChildCountIntoRowNode=function(e){var t=this.gridOptionsWrapper.getChildCountFunc();t&&(e.allChildrenCount=t(e.data))},t.prototype.setGroupDataIntoRowNode=function(e){var t=this,o=this.columnController.getGroupDisplayColumns(),i=this.gridOptionsWrapper.isTreeData();o.forEach((function(o){if(i)l._.missing(e.groupData)&&(e.groupData={}),e.groupData[o.getColId()]=e.key;else if(o.isRowGroupDisplayed(t.rowGroupColumn.getId())){var r=t.valueService.getValue(t.rowGroupColumn,e);l._.missing(e.groupData)&&(e.groupData={}),e.groupData[o.getColId()]=r}}))},t.prototype.loadFromDatasource=function(){var e=this,t=this.createLoadParams();window.setTimeout((function(){e.params.datasource&&e.params.datasource.getRows(t)}),0)},t.prototype.createBlankRowNode=function(t){var o=e.prototype.createBlankRowNode.call(this,t);return o.group=this.groupLevel,o.leafGroup=this.leafGroup,o.level=this.level,o.uiLevel=this.level,o.parent=this.parentRowNode,o.stub=!0,o.group&&(o.expanded=!1,o.field=this.groupField,o.rowGroupColumn=this.rowGroupColumn),o},t.prototype.createGroupKeys=function(e){for(var t=[],o=e;o&&o.level>=0;)t.push(o.key),o=o.parent;return t.reverse(),t},t.prototype.isPixelInRange=function(e){return e>=this.blockTop&&e<this.blockTop+this.blockHeight},t.prototype.getRowBounds=function(e,t){for(var o=this.getStartRow(),i=this.getEndRow(),r=function(e){return{rowHeight:e.rowHeight,rowTop:e.rowTop}},n=o;n<=i;n++)if(!(n>=t)){var s=this.getRowUsingLocalIndex(n);if(s){if(s.rowIndex===e)return r(s);if(s.group&&s.expanded&&l._.exists(s.childrenCache)){var a=s.childrenCache;if(a.isDisplayIndexInCache(e))return a.getRowBounds(e)}else if(s.master&&s.expanded&&l._.exists(s.detailNode)&&s.detailNode.rowIndex===e)return r(s.detailNode)}}return console.error(" ag-Grid: looking for invalid row index in Server Side Row Model, index="+e),null},t.prototype.getRowIndexAtPixel=function(e,t){for(var o=this.getStartRow(),i=this.getEndRow(),r=o;r<=i;r++)if(!(r>=t)){var n=this.getRowUsingLocalIndex(r);if(n){if(n.isPixelInRange(e))return n.rowIndex;if(n.master&&n.expanded&&n.detailNode.isPixelInRange(e))return n.detailNode.rowIndex;if(n.group&&n.expanded&&l._.exists(n.childrenCache)){var s=n.childrenCache;if(s.isPixelInRange(e))return s.getRowIndexAtPixel(e)}}}return console.warn("ag-Grid: invalid pixel range for server side block "+e),0},t.prototype.clearRowTops=function(e){this.forEachRowNode(e,(function(e){(e.clearRowTop(),e.group&&l._.exists(e.childrenCache))&&e.childrenCache.clearRowTops()}))},t.prototype.setDisplayIndexes=function(e,t,o){this.displayIndexStart=e.peek(),this.blockTop=o.value,this.forEachRowNode(t,(function(t){if(t.setRowIndex(e.next()),t.setRowTop(o.value),o.value+=t.rowHeight,t.master&&t.expanded&&(t.detailNode.setRowIndex(e.next()),t.detailNode.setRowTop(o.value),o.value+=t.detailNode.rowHeight),t.group&&l._.exists(t.childrenCache)){var i=t.childrenCache;t.expanded?i.setDisplayIndexes(e,o):i.clearRowTops()}})),this.displayIndexEnd=e.peek(),this.blockHeight=o.value-this.blockTop},t.prototype.forEachRowNode=function(e,t){for(var o=this.getStartRow(),i=this.getEndRow(),r=o;r<=i;r++)if(!(r>=e)){var n=this.getRowUsingLocalIndex(r);n&&t(n)}},t.prototype.createLoadParams=function(){var e=this.createGroupKeys(this.parentRowNode),t={startRow:this.getStartRow(),endRow:this.getEndRow(),rowGroupCols:this.params.rowGroupCols,valueCols:this.params.valueCols,pivotCols:this.params.pivotCols,pivotMode:this.params.pivotMode,groupKeys:e,filterModel:this.params.filterModel,sortModel:this.params.sortModel};return{successCallback:this.pageLoaded.bind(this,this.getVersion()),failCallback:this.pageLoadFailed.bind(this),request:t,parentNode:this.parentRowNode}},t.prototype.isDisplayIndexInBlock=function(e){return e>=this.displayIndexStart&&e<this.displayIndexEnd},t.prototype.isBlockBefore=function(e){return e>=this.displayIndexEnd},t.prototype.getDisplayIndexStart=function(){return this.displayIndexStart},t.prototype.getDisplayIndexEnd=function(){return this.displayIndexEnd},t.prototype.getBlockHeight=function(){return this.blockHeight},t.prototype.getBlockTop=function(){return this.blockTop},t.prototype.isGroupLevel=function(){return this.groupLevel},t.prototype.getGroupField=function(){return this.groupField},t.DefaultBlockSize=100,n([l.Autowired("rowRenderer"),s("design:type",l.RowRenderer)],t.prototype,"rowRenderer",void 0),n([l.Autowired("columnController"),s("design:type",l.ColumnController)],t.prototype,"columnController",void 0),n([l.Autowired("valueService"),s("design:type",l.ValueService)],t.prototype,"valueService",void 0),n([l.Autowired("gridOptionsWrapper"),s("design:type",l.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),n([l.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"init",null),n([a(0,l.Qualifier("loggerFactory")),s("design:type",Function),s("design:paramtypes",[l.LoggerFactory]),s("design:returntype",void 0)],t.prototype,"setBeans",null),t}(l.RowNodeBlock);t.ServerSideBlock=p},function(e,t,o){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),n=this&&this.__decorate||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},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(1),l=o(112),p=o(113),u=function(e){function t(){return e.call(this)||this}return r(t,e),t.prototype.postConstruct=function(){this.setGui(this.createNorthPanel()),this.eventService.addEventListener(a.Events.EVENT_COLUMN_ROW_GROUP_CHANGED,this.onRowGroupChanged.bind(this)),this.eventService.addEventListener(a.Events.EVENT_COLUMN_EVERYTHING_CHANGED,this.onRowGroupChanged.bind(this)),this.onRowGroupChanged()},t.prototype.createNorthPanel=function(){var e=this,t=document.createElement("div"),o=this.onDropPanelVisible.bind(this);return this.rowGroupComp=new l.RowGroupDropZonePanel(!0),this.getContext().wireBean(this.rowGroupComp),this.addDestroyFunc((function(){return e.rowGroupComp.destroy()})),this.pivotComp=new p.PivotDropZonePanel(!0),this.getContext().wireBean(this.pivotComp),this.addDestroyFunc((function(){return e.pivotComp.destroy()})),t.appendChild(this.rowGroupComp.getGui()),t.appendChild(this.pivotComp.getGui()),this.rowGroupComp.addEventListener(a.Component.EVENT_DISPLAYED_CHANGED,o),this.pivotComp.addEventListener(a.Component.EVENT_DISPLAYED_CHANGED,o),this.addDestroyFunc((function(){e.rowGroupComp.removeEventListener(a.Component.EVENT_DISPLAYED_CHANGED,o),e.pivotComp.removeEventListener(a.Component.EVENT_DISPLAYED_CHANGED,o)})),this.onDropPanelVisible(),t},t.prototype.onDropPanelVisible=function(){var e=this.rowGroupComp.isDisplayed()&&this.pivotComp.isDisplayed();this.rowGroupComp.addOrRemoveCssClass("ag-width-half",e),this.pivotComp.addOrRemoveCssClass("ag-width-half",e)},t.prototype.onRowGroupChanged=function(){if(this.rowGroupComp){var e=this.gridOptionsWrapper.getRowGroupPanelShow();if(e===a.Constants.ALWAYS)this.rowGroupComp.setDisplayed(!0);else if(e===a.Constants.ONLY_WHEN_GROUPING){var t=!this.columnController.isRowGroupEmpty();this.rowGroupComp.setDisplayed(t)}else this.rowGroupComp.setDisplayed(!1)}},n([a.Autowired("gridOptionsWrapper"),s("design:type",a.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),n([a.Autowired("columnController"),s("design:type",a.ColumnController)],t.prototype,"columnController",void 0),n([a.Autowired("eventService"),s("design:type",a.EventService)],t.prototype,"eventService",void 0),n([a.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"postConstruct",null),t}(a.Component);t.GridHeaderDropZones=u},function(e,t,o){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),n=this&&this.__decorate||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},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(1),l=o(21),p=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.changedCell=!1,t.dragging=!1,t.shouldDestroyOnEndDragging=!1,t}return r(t,e),t.prototype.init=function(){var e=this;this.dragService.addDragSource({dragStartPixels:0,eElement:this.getGui(),onDragStart:this.onDragStart.bind(this),onDragging:function(t){e.dragging=!0,e.rangeController.autoScrollService.check(t),e.changedCell&&e.onDrag(t)},onDragStop:function(t){e.dragging=!1,e.onDragEnd(t),e.clearValues(),e.rangeController.autoScrollService.ensureCleared(),a._.removeCssClass(document.body,"ag-dragging-"+e.type+"-handle"),e.shouldDestroyOnEndDragging&&e.destroy()}}),this.addDestroyableEventListener(this.getGui(),"mousedown",this.preventRangeExtension.bind(this))},t.prototype.isDragging=function(){return this.dragging},t.prototype.getCellComp=function(){return this.cellComp},t.prototype.setCellComp=function(e){this.cellComp=e},t.prototype.getCellRange=function(){return this.cellRange},t.prototype.setCellRange=function(e){this.cellRange=e},t.prototype.getRangeStartRow=function(){return this.rangeStartRow},t.prototype.setRangeStartRow=function(e){this.rangeStartRow=e},t.prototype.getRangeEndRow=function(){return this.rangeEndRow},t.prototype.setRangeEndRow=function(e){this.rangeEndRow=e},t.prototype.getLastCellHovered=function(){return this.lastCellHovered},t.prototype.preventRangeExtension=function(e){e.preventDefault(),e.stopPropagation()},t.prototype.onDragStart=function(e){this.cellHoverListener=this.addDestroyableEventListener(this.rowRenderer.getGridCore().getRootGui(),"mousemove",this.updateLastCellPositionHovered.bind(this)),a._.addCssClass(document.body,"ag-dragging-"+this.type+"-handle")},t.prototype.updateLastCellPositionHovered=function(e){var t=this.mouseEventService.getCellPositionForEvent(e);t!==this.lastCellHovered?(this.lastCellHovered=t,this.changedCell=!0):this.changedCell=!1},t.prototype.getType=function(){return this.type},t.prototype.refresh=function(e){var t=this,o=this.getCellComp(),i=this.getGui(),r=a._.last(this.rangeController.getCellRanges()),n=r.startRow,s=r.endRow;n&&s&&(this.rowPositionUtils.before(s,n)?(this.setRangeStartRow(s),this.setRangeEndRow(n)):(this.setRangeStartRow(n),this.setRangeEndRow(s)));o!==e&&(this.setCellComp(e),window.setTimeout((function(){t.isAlive()&&e.appendChild(i)}),1)),this.setCellRange(r)},t.prototype.clearValues=function(){this.lastCellHovered=void 0,this.removeListeners()},t.prototype.removeListeners=function(){this.cellHoverListener&&(this.cellHoverListener(),this.cellHoverListener=void 0)},t.prototype.destroy=function(){if(!this.shouldDestroyOnEndDragging&&this.isDragging())return a._.setDisplayed(this.getGui(),!1),void(this.shouldDestroyOnEndDragging=!0);this.shouldDestroyOnEndDragging=!1,e.prototype.destroy.call(this),this.removeListeners();var t=this.getGui();t.parentElement&&t.parentElement.removeChild(t)},n([a.Autowired("rowRenderer"),s("design:type",a.RowRenderer)],t.prototype,"rowRenderer",void 0),n([a.Autowired("dragService"),s("design:type",a.DragService)],t.prototype,"dragService",void 0),n([a.Autowired("rangeController"),s("design:type",l.RangeController)],t.prototype,"rangeController",void 0),n([a.Autowired("mouseEventService"),s("design:type",a.MouseEventService)],t.prototype,"mouseEventService",void 0),n([a.Autowired("columnController"),s("design:type",a.ColumnController)],t.prototype,"columnController",void 0),n([a.Autowired("cellNavigationService"),s("design:type",a.CellNavigationService)],t.prototype,"cellNavigationService",void 0),n([a.Autowired("rowPositionUtils"),s("design:type",a.RowPositionUtils)],t.prototype,"rowPositionUtils",void 0),n([a.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"init",null),t}(a.Component);t.AbstractSelectionHandle=p},function(e,t,o){o(245),o(326);var i=o(385);Object.keys(i).forEach((function(e){t[e]=i[e]}));var r=o(1);Object.keys(r).forEach((function(e){t[e]=r[e]}))},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(1),r=o(285),n=o(13);t.ChartsModule={moduleName:"chartsModule",enterpriseBeans:[r.ChartService,n.ChartTranslator],enterpriseComponents:[]},i.Grid.addModule([t.ChartsModule])},function(e,t){var o;o=function(){return this}();try{o=o||new Function("return this")()}catch(e){"object"==typeof window&&(o=window)}e.exports=o},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t,o,i){void 0===i&&(i=1),this.r=Math.min(1,Math.max(0,e||0)),this.g=Math.min(1,Math.max(0,t||0)),this.b=Math.min(1,Math.max(0,o||0)),this.a=Math.min(1,Math.max(0,i||0))}return e.fromString=function(t){if(t.indexOf("#")>=0)return e.fromHexString(t);var o=e.nameToHex[t];if(o)return e.fromHexString(o);if(t.indexOf("rgb")>=0)return e.fromRgbaString(t);throw new Error("Invalid color string: '"+t+"'")},e.fromHexString=function(t){var o=t.match(e.hexRe);if(o)return new e((i=parseInt(o[1],16))/255,(r=parseInt(o[2],16))/255,(n=parseInt(o[3],16))/255,(s=void 0!==o[4]?parseInt(o[4],16):255)/255);if(o=t.match(e.shortHexRe)){var i=parseInt(o[1],16),r=parseInt(o[2],16),n=parseInt(o[3],16),s=void 0!==o[4]?parseInt(o[4],16):15;return new e((i+=16*i)/255,(r+=16*r)/255,(n+=16*n)/255,(s+=16*s)/255)}throw new Error("Malformed hexadecimal color string: '"+t+"'")},e.fromRgbaString=function(t){var o=t.match(e.rgbRe);if(o)return new e(+o[1]/255,+o[2]/255,+o[3]/255);if(o=t.match(e.rgbaRe))return new e(+o[1]/255,+o[2]/255,+o[3]/255,+o[4]);throw new Error("Malformed rgb/rgba color string: '"+t+"'")},e.fromArray=function(t){if(4===t.length)return new e(t[0],t[1],t[2],t[3]);if(3===t.length)return new e(t[0],t[1],t[2]);throw new Error("The given array should contain 3 or 4 color components (numbers).")},e.fromHSB=function(t,o,i,r){void 0===r&&(r=1);var n=e.HSBtoRGB(t,o,i);return new e(n[0],n[1],n[2],r)},e.padHex=function(e){return 1===e.length?"0"+e:e},e.prototype.toHexString=function(){var t="#"+e.padHex(Math.round(255*this.r).toString(16))+e.padHex(Math.round(255*this.g).toString(16))+e.padHex(Math.round(255*this.b).toString(16));return this.a<1&&(t+=e.padHex(Math.round(255*this.a).toString(16))),t},e.prototype.toRgbaString=function(e){void 0===e&&(e=3);var t=[Math.round(255*this.r),Math.round(255*this.g),Math.round(255*this.b)],o=Math.pow(10,e);return 1!==this.a?(t.push(Math.round(this.a*o)/o),"rgba("+t.join(", ")+")"):"rgb("+t.join(", ")+")"},e.prototype.toString=function(){return 1===this.a?this.toHexString():this.toRgbaString()},e.prototype.toHSB=function(){return e.RGBtoHSB(this.r,this.g,this.b)},e.RGBtoHSB=function(e,t,o){var i=Math.min(e,t,o),r=Math.max(e,t,o),n=NaN;if(i!==r){var s=r-i,a=(r-e)/s,l=(r-t)/s,p=(r-o)/s;n=e===r?p-l:t===r?2+a-p:4+l-a,(n/=6)<0&&(n+=1)}return[360*n,0!==r?(r-i)/r:0,r]},e.HSBtoRGB=function(e,t,o){isNaN(e)&&(e=0),e=(e%360+360)%360/360;var i=0,r=0,n=0;if(0===t)i=r=n=o;else{var s=6*(e-Math.floor(e)),a=s-Math.floor(s),l=o*(1-t),p=o*(1-t*a),u=o*(1-t*(1-a));switch(s>>0){case 0:i=o,r=u,n=l;break;case 1:i=p,r=o,n=l;break;case 2:i=l,r=o,n=u;break;case 3:i=l,r=p,n=o;break;case 4:i=u,r=l,n=o;break;case 5:i=o,r=l,n=p}}return[i,r,n]},e.prototype.derive=function(t,o,i,r){var n=e.RGBtoHSB(this.r,this.g,this.b),s=n[2];0==s&&i>1&&(s=.05);var a=((n[0]+t)%360+360)%360,l=Math.max(Math.min(n[1]*o,1),0);s=Math.max(Math.min(s*i,1),0);var p=Math.max(Math.min(this.a*r,1),0),u=e.HSBtoRGB(a,l,s);return u.push(p),e.fromArray(u)},e.prototype.brighter=function(){return this.derive(0,1,1/.7,1)},e.prototype.darker=function(){return this.derive(0,1,.7,1)},e.hexRe=/\s*#([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})?\s*$/,e.shortHexRe=/\s*#([0-9a-fA-F])([0-9a-fA-F])([0-9a-fA-F])([0-9a-fA-F])?\s*$/,e.rgbRe=/\s*rgb\((\d+),\s*(\d+),\s*(\d+)\)\s*/,e.rgbaRe=/\s*rgba\((\d+),\s*(\d+),\s*(\d+),\s*([.\d]+)\)\s*/,e.nameToHex=Object.freeze({aliceblue:"#F0F8FF",antiquewhite:"#FAEBD7",aqua:"#00FFFF",aquamarine:"#7FFFD4",azure:"#F0FFFF",beige:"#F5F5DC",bisque:"#FFE4C4",black:"#000000",blanchedalmond:"#FFEBCD",blue:"#0000FF",blueviolet:"#8A2BE2",brown:"#A52A2A",burlywood:"#DEB887",cadetblue:"#5F9EA0",chartreuse:"#7FFF00",chocolate:"#D2691E",coral:"#FF7F50",cornflowerblue:"#6495ED",cornsilk:"#FFF8DC",crimson:"#DC143C",cyan:"#00FFFF",darkblue:"#00008B",darkcyan:"#008B8B",darkgoldenrod:"#B8860B",darkgray:"#A9A9A9",darkgreen:"#006400",darkgrey:"#A9A9A9",darkkhaki:"#BDB76B",darkmagenta:"#8B008B",darkolivegreen:"#556B2F",darkorange:"#FF8C00",darkorchid:"#9932CC",darkred:"#8B0000",darksalmon:"#E9967A",darkseagreen:"#8FBC8F",darkslateblue:"#483D8B",darkslategray:"#2F4F4F",darkslategrey:"#2F4F4F",darkturquoise:"#00CED1",darkviolet:"#9400D3",deeppink:"#FF1493",deepskyblue:"#00BFFF",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1E90FF",firebrick:"#B22222",floralwhite:"#FFFAF0",forestgreen:"#228B22",fuchsia:"#FF00FF",gainsboro:"#DCDCDC",ghostwhite:"#F8F8FF",gold:"#FFD700",goldenrod:"#DAA520",gray:"#808080",green:"#008000",greenyellow:"#ADFF2F",grey:"#808080",honeydew:"#F0FFF0",hotpink:"#FF69B4",indianred:"#CD5C5C",indigo:"#4B0082",ivory:"#FFFFF0",khaki:"#F0E68C",lavender:"#E6E6FA",lavenderblush:"#FFF0F5",lawngreen:"#7CFC00",lemonchiffon:"#FFFACD",lightblue:"#ADD8E6",lightcoral:"#F08080",lightcyan:"#E0FFFF",lightgoldenrodyellow:"#FAFAD2",lightgray:"#D3D3D3",lightgreen:"#90EE90",lightgrey:"#D3D3D3",lightpink:"#FFB6C1",lightsalmon:"#FFA07A",lightseagreen:"#20B2AA",lightskyblue:"#87CEFA",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#B0C4DE",lightyellow:"#FFFFE0",lime:"#00FF00",limegreen:"#32CD32",linen:"#FAF0E6",magenta:"#FF00FF",maroon:"#800000",mediumaquamarine:"#66CDAA",mediumblue:"#0000CD",mediumorchid:"#BA55D3",mediumpurple:"#9370DB",mediumseagreen:"#3CB371",mediumslateblue:"#7B68EE",mediumspringgreen:"#00FA9A",mediumturquoise:"#48D1CC",mediumvioletred:"#C71585",midnightblue:"#191970",mintcream:"#F5FFFA",mistyrose:"#FFE4E1",moccasin:"#FFE4B5",navajowhite:"#FFDEAD",navy:"#000080",oldlace:"#FDF5E6",olive:"#808000",olivedrab:"#6B8E23",orange:"#FFA500",orangered:"#FF4500",orchid:"#DA70D6",palegoldenrod:"#EEE8AA",palegreen:"#98FB98",paleturquoise:"#AFEEEE",palevioletred:"#DB7093",papayawhip:"#FFEFD5",peachpuff:"#FFDAB9",peru:"#CD853F",pink:"#FFC0CB",plum:"#DDA0DD",powderblue:"#B0E0E6",purple:"#800080",rebeccapurple:"#663399",red:"#FF0000",rosybrown:"#BC8F8F",royalblue:"#4169E1",saddlebrown:"#8B4513",salmon:"#FA8072",sandybrown:"#F4A460",seagreen:"#2E8B57",seashell:"#FFF5EE",sienna:"#A0522D",silver:"#C0C0C0",skyblue:"#87CEEB",slateblue:"#6A5ACD",slategray:"#708090",slategrey:"#708090",snow:"#FFFAFA",springgreen:"#00FF7F",steelblue:"#4682B4",tan:"#D2B48C",teal:"#008080",thistle:"#D8BFD8",tomato:"#FF6347",turquoise:"#40E0D0",violet:"#EE82EE",wheat:"#F5DEB3",white:"#FFFFFF",whitesmoke:"#F5F5F5",yellow:"#FFFF00",yellowgreen:"#9ACD32"}),e}();t.Color=i},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/Object.defineProperty(t,"__esModule",{value:!0});var i=o(7),r=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,n=/([^\s,]+)/g,s={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},a=/[&<>"']/g,l=function(){function e(){}return e.doIeFocusHack=function(e){(t._.isBrowserIE()||t._.isBrowserEdge())&&(t._.missing(document.activeElement)||document.activeElement===document.body)&&e.focus()},e.doOnce=function(e,t){this.doOnceFlags[t]||(e(),this.doOnceFlags[t]=!0)},e.isLeftClick=function(e){return"buttons"in e?1==e.buttons:1==(e.which||e.button)},e.areEventsNear=function(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},e.jsonEquals=function(e,t){return(e?JSON.stringify(e):null)===(t?JSON.stringify(t):null)},e.shallowCompare=function(e,t){if(this.missing(e)&&this.missing(t))return!0;if(this.missing(e)||this.missing(t))return!1;if(e.length!==t.length)return!1;for(var o=0;o<e.length;o++)if(e[o]!==t[o])return!1;return!0},e.getNameOfClass=function(e){var t=e.toString(),o=/function (.{1,})\(/.exec(t);return o&&o.length>1?o[1]:""},e.values=function(e){var t=[];return this.iterateObject(e,(function(e,o){t.push(o)})),t},e.getValueUsingField=function(e,t,o){if(t&&e){if(o){for(var i=t.split("."),r=e,n=0;n<i.length;n++)if(r=r[i[n]],this.missing(r))return null;return r}return e[t]}},e.getElementSize=function(e){var t=window.getComputedStyle(e),o=t.height,i=t.width,r=t.paddingTop,n=t.paddingRight,s=t.paddingBottom,a=t.paddingLeft,l=t.marginTop,p=t.marginRight,u=t.marginBottom,c=t.marginLeft,d=t.boxSizing;return{height:parseFloat(o),width:parseFloat(i),paddingTop:parseFloat(r),paddingRight:parseFloat(n),paddingBottom:parseFloat(s),paddingLeft:parseFloat(a),marginTop:parseFloat(l),marginRight:parseFloat(p),marginBottom:parseFloat(u),marginLeft:parseFloat(c),boxSizing:d}},e.getInnerHeight=function(e){var t=this.getElementSize(e);return"border-box"===t.boxSizing?t.height-t.paddingTop-t.paddingBottom:t.height},e.getInnerWidth=function(e){var t=this.getElementSize(e);return"border-box"===t.boxSizing?t.width-t.paddingLeft-t.paddingRight:t.width},e.getAbsoluteHeight=function(e){var t=this.getElementSize(e),o=t.marginBottom+t.marginTop;return Math.ceil(e.offsetHeight+o)},e.getAbsoluteWidth=function(e){var t=this.getElementSize(e),o=t.marginLeft+t.marginRight;return Math.ceil(e.offsetWidth+o)},e.getScrollLeft=function(e,t){var o=e.scrollLeft;return t&&(o=Math.abs(o),this.isBrowserChrome()&&(o=e.scrollWidth-e.clientWidth-o)),o},e.cleanNumber=function(e){return"string"==typeof e&&(e=parseInt(e,10)),e="number"==typeof e?Math.floor(e):null},e.setScrollLeft=function(e,t,o){o&&((this.isBrowserSafari()||this.isBrowserChrome())&&(t=e.scrollWidth-e.clientWidth-t),this.isBrowserFirefox()&&(t*=-1)),e.scrollLeft=t},e.iterateNamedNodeMap=function(e,t){if(e)for(var o=0;o<e.length;o++){var i=e[o];t(i.name,i.value)}},e.iterateObject=function(e,t){if(e&&!this.missing(e))if(Array.isArray(e))e.forEach((function(e,o){t(o+"",e)}));else for(var o=Object.keys(e),i=0;i<o.length;i++){var r=o[i],n=e[r];t(r,n)}},e.cloneObject=function(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},e.deepCloneObject=function(e){return JSON.parse(JSON.stringify(e))},e.map=function(e,t){for(var o=[],i=0;i<e.length;i++){var r=t(e[i],i);o.push(r)}return o},e.mapObject=function(t,o){var i=[];return e.iterateObject(t,(function(e,t){i.push(o(t))})),i},e.forEach=function(e,t){if(e)for(var o=0;o<e.length;o++){t(e[o],o)}},e.filter=function(e,t){var o=[];return e.forEach((function(e){t(e)&&o.push(e)})),o},e.getAllKeysInObjects=function(e){var t={};return e.forEach((function(e){e&&Object.keys(e).forEach((function(e){return t[e]=null}))})),Object.keys(t)},e.mergeDeep=function(t,o){this.exists(o)&&this.iterateObject(o,(function(o,i){var r=t[o];r!==i&&("object"==typeof r&&"object"==typeof i?e.mergeDeep(r,i):t[o]=i)}))},e.assign=function(e){for(var t=this,o=[],i=1;i<arguments.length;i++)o[i-1]=arguments[i];return o.forEach((function(o){t.exists(o)&&t.iterateObject(o,(function(t,o){e[t]=o}))})),e},e.flatten=function(e){return[].concat.apply([],e)},e.parseYyyyMmDdToDate=function(e,t){try{if(!e)return null;if(-1===e.indexOf(t))return null;var o=e.split(t);return 3!=o.length?null:new Date(Number(o[0]),Number(o[1])-1,Number(o[2]))}catch(e){return null}},e.serializeDateToYyyyMmDd=function(t,o){return t?t.getFullYear()+o+e.pad(t.getMonth()+1,2)+o+e.pad(t.getDate(),2):null},e.pad=function(e,t){for(var o=e+"";o.length<t;)o="0"+o;return o},e.pushAll=function(e,t){this.missing(t)||this.missing(e)||t.forEach((function(t){return e.push(t)}))},e.createArrayOfNumbers=function(e,t){for(var o=[],i=e;i<=t;i++)o.push(i);return o},e.getFunctionParameters=function(e){var t=e.toString().replace(r,""),o=t.slice(t.indexOf("(")+1,t.indexOf(")")).match(n);return null===o?[]:o},e.find=function(e,t,o){if(null==e)return null;if(!Array.isArray(e)){var i=this.values(e);return this.find(i,t,o)}for(var r=e,n=null,s=0;s<r.length;s++){var a=r[s];if("string"==typeof t){if(a[t]===o){n=a;break}}else if(t(a)){n=a;break}}return n},e.toStrings=function(e){return this.map(e,(function(e){return null!=e&&e.toString?e.toString():null}))},e.iterateArray=function(e,t){for(var o=0;o<e.length;o++){t(e[o],o)}},e.findIndex=function(e,t){for(var o=0;o<e.length;o++)if(t(e[o],o,e))return o;return-1},e.isNode=function(e){return"function"==typeof Node?e instanceof Node:e&&"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},e.isElement=function(e){return"function"==typeof HTMLElement?e instanceof HTMLElement:e&&"object"==typeof e&&null!==e&&1===e.nodeType&&"string"==typeof e.nodeName},e.isNodeOrElement=function(e){return this.isNode(e)||this.isElement(e)},e.copyNodeList=function(e){for(var t=e?e.length:0,o=[],i=0;i<t;i++)o.push(e[i]);return o},e.isEventFromPrintableCharacter=function(o){var r=String.fromCharCode(o.charCode);if(this.isKeyPressed(o,i.Constants.KEY_NEW_LINE))return!1;if(o.altKey||o.ctrlKey)return!1;if(t._.exists(o.key)){var n=1===o.key.length,s=e.isNumpadDelWithNumlockOnForEdgeOrIe(o);return n||s}return e.PRINTABLE_CHARACTERS.indexOf(r)>=0},e.isUserSuppressingKeyboardEvent=function(e,t,o,i,r){var n=e.getSuppressKeyboardEventFunc(),s=i.getColDef().suppressKeyboardEvent;if(!n&&!s)return!1;var a={event:t,editing:r,column:i,api:e.getApi(),node:o,data:o.data,colDef:i.getColDef(),context:e.getContext(),columnApi:e.getColumnApi()};if(s&&s(a))return!0;return!!n&&n(a)},e.getCellCompForEvent=function(e,t){for(var o=this.getTarget(t);o;){var i=e.getDomData(o,"cellComp");if(i)return i;o=o.parentElement}return null},e.addChangeListener=function(e,t){e.addEventListener("changed",t),e.addEventListener("paste",t),e.addEventListener("input",t),e.addEventListener("keydown",t),e.addEventListener("keyup",t)},e.makeNull=function(e){return null==e||""===e?null:e},e.missing=function(e){return!this.exists(e)},e.missingOrEmpty=function(e){return!e||this.missing(e)||0===e.length},e.missingOrEmptyObject=function(e){return this.missing(e)||0===Object.keys(e).length},e.exists=function(e,t){return void 0===t&&(t=!1),null!=e&&(""!==e||t)},e.firstExistingValue=function(){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._.exists(r))return r}return null},e.anyExists=function(e){if(e)for(var t=0;t<e.length;t++)if(this.exists(e[t]))return!0;return!1},e.existsAndNotEmpty=function(e){return null!=e&&this.exists(e)&&e.length>0},e.clearElement=function(e){for(;e&&e.firstChild;)e.removeChild(e.firstChild)},e.removeElement=function(e,t){this.removeFromParent(e.querySelector(t))},e.removeFromParent=function(e){e&&e.parentNode&&e.parentNode.removeChild(e)},e.isVisible=function(e){return null!==e.offsetParent},e.callIfPresent=function(e){e&&e()},e.loadTemplate=function(e){var t=document.createElement("div");return t.innerHTML=e,t.firstChild},e.appendHtml=function(e,t){e.lastChild?e.insertAdjacentHTML("afterbegin",t):e.innerHTML=t},e.addOrRemoveCssClass=function(e,t,o){o?this.addCssClass(e,t):this.removeCssClass(e,t)},e.radioCssClass=function(e,o,i){for(var r=e.parentElement.firstChild;r;)t._.addOrRemoveCssClass(r,o,i?r!==e:r===e),r=r.nextSibling},e.addCssClass=function(e,t){var o=this;if(t&&0!==t.length)if(t.indexOf(" ")>=0)t.split(" ").forEach((function(t){return o.addCssClass(e,t)}));else if(e.classList)e.classList.contains(t)||e.classList.add(t);else if(e.className&&e.className.length>0){var i=e.className.split(" ");i.indexOf(t)<0&&(i.push(t),e.setAttribute("class",i.join(" ")))}else e.setAttribute("class",t)},e.removeCssClass=function(e,t){if(e.classList)e.classList.contains(t)&&e.classList.remove(t);else if(e.className&&e.className.length>0){var o=e.className.split(" ");if(o.indexOf(t)>=0){for(;o.indexOf(t)>=0;)o.splice(o.indexOf(t),1);e.setAttribute("class",o.join(" "))}}},e.containsClass=function(e,t){if(e.classList)return e.classList.contains(t);if(e.className){var o=e.className===t,i=e.className.indexOf(" "+t+" ")>=0,r=0===e.className.indexOf(t+" "),n=e.className.lastIndexOf(" "+t)===e.className.length-t.length-1;return o||i||r||n}return!1},e.getElementAttribute=function(e,t){return e.attributes&&e.attributes[t]?e.attributes[t].value:null},e.offsetHeight=function(e){return e&&e.clientHeight?e.clientHeight:0},e.offsetWidth=function(e){return e&&e.clientWidth?e.clientWidth:0},e.sortNumberArray=function(e){e.sort((function(e,t){return e-t}))},e.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)}},e.removeFromArray=function(e,t){var o=e.indexOf(t);o>=0&&e.splice(o,1)},e.removeAllFromArray=function(e,t){t.forEach((function(t){var o=e.indexOf(t);o>=0&&e.splice(o,1)}))},e.insertIntoArray=function(e,t,o){e.splice(o,0,t)},e.insertArrayIntoArray=function(e,t,o){if(!this.missing(e)&&!this.missing(t))for(var i=t.length-1;i>=0;i--){var r=t[i];this.insertIntoArray(e,r,o)}},e.moveInArray=function(e,t,o){var i=this;t.forEach((function(t){i.removeFromArray(e,t)})),t.slice().reverse().forEach((function(t){i.insertIntoArray(e,t,o)}))},e.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;if("string"==typeof e){if(!o)return n(e,t);try{return e.localeCompare(t)}catch(o){return n(e,t)}}return e<t?-1:e>t?1:0;function n(e,t){return e>t?1:e<t?-1:0}},e.last=function(e){if(e&&e.length)return e[e.length-1]},e.compareArrays=function(e,t){if(this.missing(e)&&this.missing(t))return!0;if(this.missing(e)||this.missing(t)||!e||!t)return!1;if(e.length!==t.length)return!1;for(var o=0;o<e.length;o++)if(e[o]!==t[o])return!1;return!0},e.ensureDomOrder=function(e,t,o){o&&o.nextSibling===t||(o?o.nextSibling?e.insertBefore(t,o.nextSibling):e.appendChild(t):e.firstChild&&e.firstChild!==t&&e.insertAdjacentElement("afterbegin",t))},e.insertWithDomOrder=function(e,t,o){o?o.nextSibling?e.insertBefore(t,o.nextSibling):e.appendChild(t):e.firstChild?e.insertBefore(t,e.firstChild):e.appendChild(t)},e.insertTemplateWithDomOrder=function(e,t,o){var i;return o?(o.insertAdjacentHTML("afterend",t),i=o.nextSibling):(e.firstChild?e.insertAdjacentHTML("afterbegin",t):e.innerHTML=t,i=e.firstChild),i},e.every=function(e,t){if(!e||0===e.length)return!0;for(var o=0;o<e.length;o++)if(!t(e[o]))return!1;return!0},e.toStringOrNull=function(e){return this.exists(e)&&e.toString?e.toString():null},e.formatSize=function(e){return"number"==typeof e?e+"px":e},e.formatNumberTwoDecimalPlacesAndCommas=function(e){return"number"!=typeof e?"":(Math.round(100*e)/100).toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,")},e.formatNumberCommas=function(e){return"number"!=typeof e?"":e.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,")},e.prependDC=function(e,t){this.exists(e.firstChild)?e.insertBefore(t,e.firstChild):e.appendChild(t)},e.createIcon=function(e,t,o){var i=this.createIconNoSpan(e,t,o);if(i.className.indexOf("ag-icon")>-1)return i;var r=document.createElement("span");return r.appendChild(i),r},e.createIconNoSpan=function(e,t,o,i){var r=null,n=o&&o.getColDef().icons;if(n&&(r=n[e]),t&&!r){var s=t.getIcons();s&&(r=s[e])}if(r){var a=void 0;if("function"==typeof r)a=r();else{if("string"!=typeof r)throw new Error("icon from grid options needs to be a string or a function");a=r}if("string"==typeof a)return this.loadTemplate(a);if(this.isNodeOrElement(a))return a;throw new Error("iconRenderer should return back a string or a dom object")}var l=document.createElement("span"),p=this.iconNameClassMap[e];if(!p){if(!i)throw new Error(e+" did not find class");p=e}return l.setAttribute("class","ag-icon ag-icon-"+p),l.setAttribute("unselectable","on"),l},e.addStylesToElement=function(e,t){var o=this;t&&Object.keys(t).forEach((function(i){var r=o.hyphenToCamelCase(i);r&&(e.style[r]=t[i])}))},e.isHorizontalScrollShowing=function(e){return e.clientWidth<e.scrollWidth},e.isVerticalScrollShowing=function(e){return e.clientHeight<e.scrollHeight},e.getMaxDivHeight=function(){if(!document.body)return-1;var e=1e6,t=navigator.userAgent.toLowerCase().match(/firefox/)?6e6:1e9,o=this.loadTemplate("<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},e.getScrollbarWidth=function(){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;return t.parentNode&&t.parentNode.removeChild(t),o},e.hasOverflowScrolling=function(){var e=["webkit","moz","o","ms"],t=document.createElement("div"),o=!1;document.getElementsByTagName("body")[0].appendChild(t),t.setAttribute("style",e.map((function(e){return"-"+e+"-overflow-scrolling: touch"})).concat("overflow-scrolling: touch").join(";"));var i=window.getComputedStyle(t);if("touch"===i.overflowScrolling&&(o=!0),!o)for(var r=0,n=e;r<n.length;r++)if("touch"===i[n[r]+"OverflowScrolling"]){o=!0;break}return t.parentNode&&t.parentNode.removeChild(t),o},e.isKeyPressed=function(e,t){return(e.which||e.keyCode)===t},e.isCharacterKey=function(e){var t=e.which;return"number"==typeof t&&t?!e.ctrlKey&&!e.metaKey&&!e.altKey&&8!==e.which&&16!==e.which:void 0===t},e.setDisplayed=function(e,t){this.addOrRemoveCssClass(e,"ag-hidden",!t)},e.setVisible=function(e,t){this.addOrRemoveCssClass(e,"ag-invisible",!t)},e.setElementWidth=function(e,t){"flex"===t?(e.style.width=null,e.style.minWidth=null,e.style.maxWidth=null,e.style.flex="1 1 auto"):this.setFixedWidth(e,t)},e.setFixedWidth=function(e,t){t=this.formatSize(t),e.style.width=t,e.style.maxWidth=t,e.style.minWidth=t},e.setElementHeight=function(e,t){"flex"===t?(e.style.height=null,e.style.minHeight=null,e.style.maxHeight=null,e.style.flex="1 1 auto"):this.setFixedHeight(e,t)},e.setFixedHeight=function(e,t){t=this.formatSize(t),e.style.height=t,e.style.maxHeight=t,e.style.minHeight=t},e.isBrowserIE=function(){return void 0===this.isIE&&(this.isIE=!!document.documentMode),this.isIE},e.isBrowserEdge=function(){return void 0===this.isEdge&&(this.isEdge=!this.isBrowserIE()&&!!window.StyleMedia),this.isEdge},e.isBrowserSafari=function(){if(void 0===this.isSafari){var e=window;this.isSafari=Object.prototype.toString.call(e.HTMLElement).indexOf("Constructor")>0||!!(t=!e.safari||e.safari.pushNotification)&&"[object SafariRemoteNotification]"===t.toString()}var t;return this.isSafari},e.isBrowserChrome=function(){if(void 0===this.isChrome){var e=window;this.isChrome=!!e.chrome&&(!!e.chrome.webstore||!!e.chrome.runtime)||/Chrome/.test(navigator.userAgent)&&/Google Inc/.test(navigator.vendor)}return this.isChrome},e.isBrowserFirefox=function(){if(void 0===this.isFirefox){var e=window;this.isFirefox=void 0!==e.InstallTrigger}return this.isFirefox},e.isUserAgentIPad=function(){return void 0===this.isIPad&&(this.isIPad=null!=navigator.userAgent.match(/iPad|iPhone/i)),this.isIPad},e.getTarget=function(e){var t=e;return t.target||t.srcElement},e.isElementChildOfClass=function(e,t,o){for(var i=0;e;){if(this.containsClass(e,t))return!0;if(e=e.parentElement,o&&++i>o)break}return!1},e.isElementInEventPath=function(e,o){return!(!o||!e)&&t._.getEventPath(o).indexOf(e)>=0},e.isFunction=function(e){return!!(e&&e.constructor&&e.call&&e.apply)},e.createEventPath=function(e){for(var o=[],i=t._.getTarget(e);i;)o.push(i),i=i.parentElement;return o},e.addAgGridEventPath=function(e){e.__agGridEventPath=this.getEventPath(e)},e.getEventPath=function(e){var t=e;return t.deepPath?t.deepPath():t.path?t.path:t.composedPath?t.composedPath():t.__agGridEventPath?t.__agGridEventPath:this.createEventPath(e)},e.forEachSnapshotFirst=function(e,t){e&&e.slice(0).forEach(t)},e.getBodyWidth=function(){return document.body?document.body.clientWidth:window.innerHeight?window.innerWidth:document.documentElement&&document.documentElement.clientWidth?document.documentElement.clientWidth:-1},e.getBodyHeight=function(){return document.body?document.body.clientHeight:window.innerHeight?window.innerHeight:document.documentElement&&document.documentElement.clientHeight?document.documentElement.clientHeight:-1},e.setCheckboxState=function(e,t){"boolean"==typeof t?(e.checked=t,e.indeterminate=!1):e.indeterminate=!0},e.traverseNodesWithKey=function(e,t){var o=[];!function e(i){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)},e.camelCaseToHyphen=function(e){return null==e?null:e.replace(/([A-Z])/g,(function(e){return"-"+e[0].toLowerCase()}))},e.hyphenToCamelCase=function(e){return null==e?null:e.replace(/-([a-z])/g,(function(e){return e[1].toUpperCase()}))},e.capitalise=function(e){return e[0].toUpperCase()+e.substr(1).toLowerCase()},e.cssStyleObjectToMarkup=function(e){var t=this;if(!e)return"";var o=[];return this.iterateObject(e,(function(e,i){var r=t.camelCaseToHyphen(e);o.push(r+": "+i+";")})),o.join(" ")},e.isNumeric=function(e){return""!==e&&(!isNaN(parseFloat(e))&&isFinite(e))},e.escape=function(e){return null!=e&&e.replace?e.replace(a,(function(e){return s[e]})):e},e.normalizeWheel=function(e){var t=0,o=0,i=0,r=0;return"detail"in e&&(o=e.detail),"wheelDelta"in e&&(o=-e.wheelDelta/120),"wheelDeltaY"in e&&(o=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=o,o=0),i=10*t,r=10*o,"deltaY"in e&&(r=e.deltaY),"deltaX"in e&&(i=e.deltaX),(i||r)&&e.deltaMode&&(1==e.deltaMode?(i*=40,r*=40):(i*=800,r*=800)),i&&!t&&(t=i<1?-1:1),r&&!o&&(o=r<1?-1:1),{spinX:t,spinY:o,pixelX:i,pixelY:r}},e.debounce=function(e,t,o){var i;return void 0===o&&(o=!1),function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var s=this,a=o&&!i;window.clearTimeout(i),i=window.setTimeout((function(){i=null,o||e.apply(s,r)}),t),a&&e.apply(s,r)}},e.stopPropagationForAgGrid=function(e){e.__ag_Grid_Stop_Propagation=!0},e.isStopPropagationForAgGrid=function(e){return!0===e.__ag_Grid_Stop_Propagation},e.executeInAWhile=function(e){this.executeAfter(e,400)},e.executeNextVMTurn=function(e){this.executeAfter(e,0)},e.executeAfter=function(e,t){e.length>0&&window.setTimeout((function(){e.forEach((function(e){return e()}))}),t)},e.referenceCompare=function(e,t){return null==e&&null==t||(null!=e||!t)&&((!e||null!=t)&&e===t)},e.get=function(t,o,i){if(null==t)return i;if(o.indexOf(".")>-1){var r=o.split("."),n=t[r[0]];return null!=n?e.get(n,r.slice(1,r.length).join("."),i):i}var s=t[o];return null!=s?s:i},e.addSafePassiveEventListener=function(t,o,i,r){var n=e.PASSIVE_EVENTS.indexOf(i)>=0?{passive:!0}:void 0;e.OUTSIDE_ANGULAR_EVENTS.indexOf(i)>=0?t.addEventListenerOutsideAngular(o,i,r,n):o.addEventListener(i,r,n)},e.camelCaseToHumanText=function(e){if(!e||null==e)return null;return e.replace(/([A-Z])([A-Z])([a-z])|([a-z])([A-Z])/g,"$1$4 $2$3$5").replace("."," ").split(" ").map((function(e){return e.substring(0,1).toUpperCase()+(e.length>1?e.substring(1,e.length):"")})).join(" ")},e.message=function(e){var t=document.createElement("div");t.innerHTML=e;var o=document.querySelector("#__ag__message");if(!o){o=this.loadTemplate('<div id="__ag__message" style="display: inline-block; position: absolute; top: 0px; left: 0px; color: white; background-color: black; z-index: 20; padding: 2px; border: 1px solid darkred; height: 200px; overflow-y: auto;"></div>'),document.body&&document.body.appendChild(o)}o.insertBefore(t,o.children[0])},e.sortRowNodesByOrder=function(e,t){if(e){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}i&&e.sort(o)}},e.fuzzyCheckStrings=function(e,t,o){var i=this,r={},n=e.filter((function(e){return!t.some((function(t){return t===e}))}));return n.length>0&&n.forEach((function(e){return r[e]=i.fuzzySuggestions(e,o)})),r},e.fuzzySuggestions=function(e,o,i,r){var n=r?t._.string_weighted_distances:t._.string_distances,s=o.map((function(t){return{value:t,relevance:n(e.toLowerCase(),t.toLocaleLowerCase())}}));return s.sort((function(e,t){return t.relevance-e.relevance})),i&&(s=s.filter((function(e){return 0!==e.relevance}))),s.map((function(e){return e.value}))},e.get_bigrams=function(e){var t,o,i,r=e.toLowerCase(),n=new Array(r.length-1);for(t=o=0,i=n.length;o<=i;t=o+=1)n[t]=r.slice(t,t+2);return n},e.string_distances=function(e,o){if(0===e.length&&0===o.length)return 0;var i,r,n=t._.get_bigrams(e),s=t._.get_bigrams(o),a=n.length+s.length,l=0;for(i=0,r=n.length;i<r;i++){var p,u=n[i],c=void 0;for(c=0,p=s.length;c<p;c++){u===s[c]&&l++}}return l>0?2*l/a:0},e.string_weighted_distances=function(e,t){for(var o=e.replace(/\s/g,""),i=t.replace(/\s/g,""),r=0,n=0,s=0;s<o.length;s++){var a=i.indexOf(o[s]);-1!==a&&(n=a,r+=100*(i.length-n)/i.length,r*=r)}return r},e.isNumpadDelWithNumlockOnForEdgeOrIe=function(t){return!(!e.isBrowserEdge()&&!e.isBrowserIE())&&(t.key===e.NUMPAD_DEL_NUMLOCK_ON_KEY&&t.charCode===e.NUMPAD_DEL_NUMLOCK_ON_CHARCODE)},e.bindCellRendererToHtmlElement=function(e,t){e.then((function(e){var o=e.getGui();null!=o&&("object"==typeof o?t.appendChild(o):t.innerHTML=o)}))},e.PASSIVE_EVENTS=["touchstart","touchend","touchmove","touchcancel"],e.OUTSIDE_ANGULAR_EVENTS=["mouseover","mouseout","mouseenter","mouseleave"],e.PRINTABLE_CHARACTERS="qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM1234567890!\"£$%^&*()_+-=[];'#,./\\|<>?:@~{}",e.NUMPAD_DEL_NUMLOCK_ON_KEY="Del",e.NUMPAD_DEL_NUMLOCK_ON_CHARCODE=46,e.doOnceFlags={},e.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)}},e.decToHex=function(e,t){for(var o="",i=0;i<t;i++)o+=String.fromCharCode(255&e),e>>>=8;return o},e.utf8_encode=function(e){var t=String.fromCharCode;function o(e,o){return t(e>>o&63|128)}function i(e){if(0==(4294967168&e))return t(e);var i="";return 0==(4294965248&e)?i=t(e>>6&31|192):0==(4294901760&e)?(!function(e){if(e>=55296&&e<=57343)throw Error("Lone surrogate U+"+e.toString(16).toUpperCase()+" is not a scalar value")}(e),i=t(e>>12&15|224),i+=o(e,6)):0==(4292870144&e)&&(i=t(e>>18&7|240),i+=o(e,12),i+=o(e,6)),i+=t(63&e|128)}for(var r=function(e){for(var t,o,i=[],r=0,n=e.length;r<n;)(t=e.charCodeAt(r++))>=55296&&t<=56319&&r<n?56320==(64512&(o=e.charCodeAt(r++)))?i.push(((1023&t)<<10)+(1023&o)+65536):(i.push(t),r--):i.push(t);return i}(e),n=r.length,s=-1,a="";++s<n;)a+=i(r[s]);return a},e.iconNameClassMap={columnGroupOpened:"expanded",columnGroupClosed:"contracted",columnSelectClosed:"tree-closed",columnSelectOpen:"tree-open",columnSelectIndeterminate:"tree-indeterminate",columnMovePin:"pin",columnMoveAdd:"plus",columnMoveHide:"eye-slash",columnMoveMove:"arrows",columnMoveLeft:"left",columnMoveRight:"right",columnMoveGroup:"group",columnMoveValue:"aggregation",columnMovePivot:"pivot",dropNotAllowed:"not-allowed",groupContracted:"expanded",groupExpanded:"contracted",chart:"chart",close:"cross",cancel:"cancel",check:"tick",checkboxChecked:"checkbox-checked",checkboxUnchecked:"checkbox-unchecked",checkboxIndeterminate:"checkbox-indeterminate",checkboxCheckedReadOnly:"checkbox-checked-readonly",checkboxUncheckedReadOnly:"checkbox-unchecked-readonly",checkboxIndeterminateReadOnly:"checkbox-indeterminate-readonly",first:"first",previous:"previous",next:"next",last:"last",linked:"linked",unlinked:"unlinked",colorPicker:"color-picker",radioButtonOn:"radio-button-on",radioButtonOff:"radio-button-off",groupLoading:"loading",data:"data",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",smallLeft:"small-left",smallRight:"small-right",smallUp:"small-up",smallDown:"small-down",sortAscending:"asc",sortDescending:"desc",sortUnSort:"none"},e}();t.Utils=l;var p=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}();t.NumberSequence=p,t._=l},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/var i;Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.IN_PROGRESS=0]="IN_PROGRESS",e[e.RESOLVED=1]="RESOLVED"}(i=t.PromiseStatus||(t.PromiseStatus={}));var r=function(){function e(e){this.status=i.IN_PROGRESS,this.resolution=null,this.listOfWaiters=[],e(this.onDone.bind(this),this.onReject.bind(this))}return e.all=function(t){return new e((function(e){var o=[],i=t.length;t.forEach((function(t,r){t.then((function(t){i--,o[r]=t,0==i&&e(o)})),o.push(null)}))}))},e.resolve=function(t){return new e((function(e){return e(t)}))},e.external=function(){var t;return{promise:new e((function(e){t=e})),resolve:function(e){t(e)}}},e.prototype.then=function(e){this.status===i.IN_PROGRESS?this.listOfWaiters.push(e):e(this.resolution)},e.prototype.firstOneOnly=function(e){this.status===i.IN_PROGRESS?0===this.listOfWaiters.length&&this.listOfWaiters.push(e):e(this.resolution)},e.prototype.map=function(t){var o=this;return new e((function(e){o.then((function(o){e(t(o))}))}))},e.prototype.resolveNow=function(e,t){return this.status==i.IN_PROGRESS?e:t(this.resolution)},e.prototype.onDone=function(e){this.status=i.RESOLVED,this.resolution=e,this.listOfWaiters.forEach((function(t){return t(e)}))},e.prototype.onReject=function(e){console.warn("TBI")},e}();t.Promise=r},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/Object.defineProperty(t,"__esModule",{value:!0});var i=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}();t.Timer=i},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),n=this&&this.__decorate||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},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(8),l=o(0),p=o(22),u=o(18),c=o(35),d=o(15),h=o(2),f=function(e){function t(t,o,i,r){var n=e.call(this,'<div class="ag-row-drag"></div>')||this;return n.rowNode=t,n.column=o,n.cellValue=i,n.beans=r,n}return r(t,e),t.prototype.postConstruct=function(){this.getGui().appendChild(h._.createIconNoSpan("rowDrag",this.beans.gridOptionsWrapper,null)),this.addDragSource(),this.checkCompatibility(),this.beans.gridOptionsWrapper.isRowDragManaged()?this.addFeature(this.beans.context,new v(this,this.beans,this.rowNode,this.column)):this.addFeature(this.beans.context,new y(this,this.beans,this.rowNode,this.column))},t.prototype.checkCompatibility=function(){var e=this.beans.gridOptionsWrapper.isRowDragManaged();this.beans.gridOptionsWrapper.isTreeData()&&e&&h._.doOnce((function(){return console.warn("ag-Grid: If using row drag with tree data, you cannot have rowDragManaged=true")}),"RowDragComp.managedAndTreeData")},t.prototype.addDragSource=function(){var e=this,t={rowNode:this.rowNode},o={type:u.DragSourceType.RowDrag,eElement:this.getGui(),dragItemName:this.cellValue,dragItemCallback:function(){return t},dragStartPixels:0};this.beans.dragAndDropService.addDragSource(o,!0),this.addDestroyFunc((function(){return e.beans.dragAndDropService.removeDragSource(o)}))},n([l.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"postConstruct",null),t}(a.Component);t.RowDragComp=f;var g=function(e){function t(t,o,i){var r=e.call(this)||this;return r.parent=t,r.column=i,r.rowNode=o,r}return r(t,e),t.prototype.setDisplayedOrVisible=function(e){if(e)this.parent.setDisplayed(!1);else{var t=this.column.isRowDrag(this.rowNode);h._.isFunction(this.column.getColDef().rowDrag)?this.parent.setVisible(t):this.parent.setDisplayed(t)}},t}(d.BeanStub),y=function(e){function t(t,o,i,r){var n=e.call(this,t,i,r)||this;return n.beans=o,n}return r(t,e),t.prototype.postConstruct=function(){this.addDestroyableEventListener(this.beans.gridOptionsWrapper,"suppressRowDrag",this.onSuppressRowDrag.bind(this)),this.addDestroyableEventListener(this.rowNode,p.RowNode.EVENT_DATA_CHANGED,this.workOutVisibility.bind(this)),this.addDestroyableEventListener(this.rowNode,p.RowNode.EVENT_CELL_CHANGED,this.workOutVisibility.bind(this)),this.workOutVisibility()},t.prototype.onSuppressRowDrag=function(){this.workOutVisibility()},t.prototype.workOutVisibility=function(){var e=this.beans.gridOptionsWrapper.isSuppressRowDrag();this.setDisplayedOrVisible(e)},n([l.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"postConstruct",null),t}(g),v=function(e){function t(t,o,i,r){var n=e.call(this,t,i,r)||this;return n.beans=o,n}return r(t,e),t.prototype.postConstruct=function(){this.addDestroyableEventListener(this.beans.eventService,c.Events.EVENT_SORT_CHANGED,this.onSortChanged.bind(this)),this.addDestroyableEventListener(this.beans.eventService,c.Events.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this)),this.addDestroyableEventListener(this.beans.eventService,c.Events.EVENT_COLUMN_ROW_GROUP_CHANGED,this.onRowGroupChanged.bind(this)),this.addDestroyableEventListener(this.rowNode,p.RowNode.EVENT_DATA_CHANGED,this.workOutVisibility.bind(this)),this.addDestroyableEventListener(this.rowNode,p.RowNode.EVENT_CELL_CHANGED,this.workOutVisibility.bind(this)),this.addDestroyableEventListener(this.beans.gridOptionsWrapper,"suppressRowDrag",this.onSuppressRowDrag.bind(this)),this.updateSortActive(),this.updateFilterActive(),this.updateRowGroupActive(),this.workOutVisibility()},t.prototype.updateRowGroupActive=function(){var e=this.beans.columnController.getRowGroupColumns();this.rowGroupActive=!h._.missingOrEmpty(e)},t.prototype.onRowGroupChanged=function(){this.updateRowGroupActive(),this.workOutVisibility()},t.prototype.updateSortActive=function(){var e=this.beans.sortController.getSortModel();this.sortActive=!h._.missingOrEmpty(e)},t.prototype.onSortChanged=function(){this.updateSortActive(),this.workOutVisibility()},t.prototype.updateFilterActive=function(){this.filterActive=this.beans.filterManager.isAnyFilterPresent()},t.prototype.onFilterChanged=function(){this.updateFilterActive(),this.workOutVisibility()},t.prototype.onSuppressRowDrag=function(){this.workOutVisibility()},t.prototype.workOutVisibility=function(){var e=this.sortActive||this.filterActive||this.rowGroupActive,t=this.beans.gridOptionsWrapper.isSuppressRowDrag(),o=e||t;this.setDisplayedOrVisible(o)},n([l.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"postConstruct",null),t}(g)},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),n=this&&this.__decorate||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},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(8),l=o(0),p=o(2),u=function(e){function t(t,o,i,r,n){var s=e.call(this,'<div class="ag-row-drag" draggable="true"></div>')||this;return s.rowNode=t,s.column=o,s.cellValue=i,s.beans=r,s.eCell=n,s}return r(t,e),t.prototype.postConstruct=function(){this.getGui().appendChild(p._.createIconNoSpan("rowDrag",this.beans.gridOptionsWrapper,null)),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,i=p._.isBrowserIE();i||e.dataTransfer.setDragImage(this.eCell,0,0);o?o({rowNode:this.rowNode,dragEvent:e}):function(){try{var o=JSON.stringify(t.rowNode.data);i?e.dataTransfer.setData("text",o):(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)},n([l.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"postConstruct",null),t}(a.Component);t.DndSourceComp=u},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),n=this&&this.__decorate||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},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(8),l=o(12),p=o(0),u=o(3),c=o(27),d=o(61),h=o(4),f=o(11),g=o(6),y=o(2),v=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.lastMovingChanged=0,t}return r(t,e),t.prototype.init=function(e){var o=y._.firstExistingValue(e.template,t.TEMPLATE);o=o&&o.trim?o.trim():o,this.setTemplate(o),this.params=e,this.setupTap(),this.setupIcons(e.column),this.setupMenu(),this.setupSort(),this.setupFilterIcon(),this.setupText(e.displayName)},t.prototype.setupText=function(e){var t=y._.escape(e);this.eText&&(this.eText.innerHTML=t)},t.prototype.setupIcons=function(e){this.addInIcon("sortAscending",this.eSortAsc,e),this.addInIcon("sortDescending",this.eSortDesc,e),this.addInIcon("sortUnSort",this.eSortNone,e),this.addInIcon("menu",this.eMenu,e),this.addInIcon("filter",this.eFilter,e)},t.prototype.addInIcon=function(e,t,o){if(null!=t){var i=y._.createIconNoSpan(e,this.gridOptionsWrapper,o);t.appendChild(i)}},t.prototype.setupTap=function(){var e=this,t=this.gridOptionsWrapper;if(!t.isSuppressTouch()){var o=new d.TouchListener(this.getGui(),!0),i=t.isSuppressMenuHide(),r=i&&y._.exists(this.eMenu),n=r?new d.TouchListener(this.eMenu,!0):o;if(this.params.enableMenu){var s=r?"EVENT_TAP":"EVENT_LONG_TAP";this.addDestroyableEventListener(n,d.TouchListener[s],(function(o){t.getApi().showColumnMenuAfterMouseClick(e.params.column,o.touchStart)}))}if(this.params.enableSorting){this.addDestroyableEventListener(o,d.TouchListener.EVENT_TAP,(function(t){var o=t.touchStart.target;i&&e.eMenu.contains(o)||e.sortController.progressSort(e.params.column,!1,"uiColumnSorted")}))}this.addDestroyFunc((function(){return o.destroy()})),r&&this.addDestroyFunc((function(){return n.destroy()}))}},t.prototype.setupMenu=function(){var e=this;if(this.eMenu){var t=this.gridOptionsWrapper.isSuppressMenuHide();if(!this.params.enableMenu||y._.isUserAgentIPad()&&!t)y._.removeFromParent(this.eMenu);else{this.addDestroyableEventListener(this.eMenu,"click",(function(){return e.showMenu(e.eMenu)})),t||(this.eMenu.style.opacity="0",this.addGuiEventListener("mouseover",(function(){e.eMenu.style.opacity="1"})),this.addGuiEventListener("mouseout",(function(){e.eMenu.style.opacity="0"})));var o=this.eMenu.style;o.transition="opacity 0.2s, border 0.2s",o["-webkit-transition"]="opacity 0.2s, border 0.2s"}}},t.prototype.showMenu=function(e){this.menuFactory.showMenuAfterButtonClick(this.params.column,e)},t.prototype.removeSortIcons=function(){y._.removeFromParent(this.eSortAsc),y._.removeFromParent(this.eSortDesc),y._.removeFromParent(this.eSortNone),y._.removeFromParent(this.eSortOrder)},t.prototype.setupSort=function(){var e=this;if(this.params.enableSorting){var t=this.gridOptionsWrapper.isMultiSortKeyCtrl();this.addDestroyableEventListener(this.params.column,l.Column.EVENT_MOVING_CHANGED,(function(){e.lastMovingChanged=(new Date).getTime()})),this.eLabel&&this.addDestroyableEventListener(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)}})),this.addDestroyableEventListener(this.params.column,l.Column.EVENT_SORT_CHANGED,this.onSortChanged.bind(this)),this.onSortChanged(),this.addDestroyableEventListener(this.eventService,g.Events.EVENT_SORT_CHANGED,this.setMultiSortOrder.bind(this)),this.setMultiSortOrder()}else this.removeSortIcons()},t.prototype.onSortChanged=function(){if(y._.addOrRemoveCssClass(this.getGui(),"ag-header-cell-sorted-asc",this.params.column.isSortAscending()),y._.addOrRemoveCssClass(this.getGui(),"ag-header-cell-sorted-desc",this.params.column.isSortDescending()),y._.addOrRemoveCssClass(this.getGui(),"ag-header-cell-sorted-none",this.params.column.isSortNone()),this.eSortAsc&&y._.addOrRemoveCssClass(this.eSortAsc,"ag-hidden",!this.params.column.isSortAscending()),this.eSortDesc&&y._.addOrRemoveCssClass(this.eSortDesc,"ag-hidden",!this.params.column.isSortDescending()),this.eSortNone){var e=!this.params.column.getColDef().unSortIcon&&!this.gridOptionsWrapper.isUnSortIcon();y._.addOrRemoveCssClass(this.eSortNone,"ag-hidden",e||!this.params.column.isSortNone())}},t.prototype.setMultiSortOrder=function(){if(this.eSortOrder){var e=this.params.column,t=this.sortController.getColumnsWithSortingOrdered(),o=t.indexOf(e),i=t.length>1,r=e.isSorting()&&i;y._.setDisplayed(this.eSortOrder,r),o>=0?this.eSortOrder.innerHTML=(o+1).toString():y._.clearElement(this.eSortOrder)}},t.prototype.setupFilterIcon=function(){this.eFilter&&(this.addDestroyableEventListener(this.params.column,l.Column.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this)),this.onFilterChanged())},t.prototype.onFilterChanged=function(){var e=this.params.column.isFilterActive();y._.addOrRemoveCssClass(this.eFilter,"ag-hidden",!e)},t.TEMPLATE='<div class="ag-cell-label-container" role="presentation"> <span ref="eMenu" class="ag-header-icon ag-header-cell-menu-button" aria-hidden="true"></span> <div ref="eLabel" class="ag-header-cell-label" role="presentation" unselectable="on"> <span ref="eText" class="ag-header-cell-text" role="columnheader" unselectable="on"></span> <span ref="eFilter" class="ag-header-icon ag-filter-icon" aria-hidden="true"></span> <span ref="eSortOrder" class="ag-header-icon ag-sort-order" aria-hidden="true"></span> <span ref="eSortAsc" class="ag-header-icon ag-sort-ascending-icon" aria-hidden="true"></span> <span ref="eSortDesc" class="ag-header-icon ag-sort-descending-icon" aria-hidden="true"></span> <span ref="eSortNone" class="ag-header-icon ag-sort-none-icon" aria-hidden="true"></span> </div></div>',n([p.Autowired("gridOptionsWrapper"),s("design:type",u.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),n([p.Autowired("sortController"),s("design:type",c.SortController)],t.prototype,"sortController",void 0),n([p.Autowired("menuFactory"),s("design:type",Object)],t.prototype,"menuFactory",void 0),n([p.Autowired("eventService"),s("design:type",h.EventService)],t.prototype,"eventService",void 0),n([f.RefSelector("eFilter"),s("design:type",HTMLElement)],t.prototype,"eFilter",void 0),n([f.RefSelector("eSortAsc"),s("design:type",HTMLElement)],t.prototype,"eSortAsc",void 0),n([f.RefSelector("eSortDesc"),s("design:type",HTMLElement)],t.prototype,"eSortDesc",void 0),n([f.RefSelector("eSortNone"),s("design:type",HTMLElement)],t.prototype,"eSortNone",void 0),n([f.RefSelector("eSortOrder"),s("design:type",HTMLElement)],t.prototype,"eSortOrder",void 0),n([f.RefSelector("eMenu"),s("design:type",HTMLElement)],t.prototype,"eMenu",void 0),n([f.RefSelector("eLabel"),s("design:type",HTMLElement)],t.prototype,"eLabel",void 0),n([f.RefSelector("eText"),s("design:type",HTMLElement)],t.prototype,"eText",void 0),t}(a.Component);t.HeaderComp=v},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),n=this&&this.__decorate||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},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(8),l=o(5),p=o(3),u=o(0),c=o(61),d=o(11),h=o(45),f=o(2),g=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return r(t,e),t.prototype.init=function(e){this.params=e,this.setupLabel(),this.addGroupExpandIcon(),this.setupExpandIcons()},t.prototype.setupExpandIcons=function(){var e=this;this.addInIcon("columnGroupOpened","agOpened"),this.addInIcon("columnGroupClosed","agClosed");var t=function(t){if(!f._.isStopPropagationForAgGrid(t)){var o=!e.params.columnGroup.isExpanded();e.columnController.setColumnGroupOpened(e.params.columnGroup.getOriginalColumnGroup(),o,"uiColumnExpanded")}};this.addTouchAndClickListeners(this.eCloseIcon,t),this.addTouchAndClickListeners(this.eOpenIcon,t);var o=function(e){f._.stopPropagationForAgGrid(e)};this.addDestroyableEventListener(this.eCloseIcon,"dblclick",o),this.addDestroyableEventListener(this.eOpenIcon,"dblclick",o),this.addDestroyableEventListener(this.getGui(),"dblclick",t),this.updateIconVisibility();var i=this.params.columnGroup.getOriginalColumnGroup();this.addDestroyableEventListener(i,h.OriginalColumnGroup.EVENT_EXPANDED_CHANGED,this.updateIconVisibility.bind(this)),this.addDestroyableEventListener(i,h.OriginalColumnGroup.EVENT_EXPANDABLE_CHANGED,this.updateIconVisibility.bind(this))},t.prototype.addTouchAndClickListeners=function(e,t){var o=new c.TouchListener(e);this.addDestroyableEventListener(o,c.TouchListener.EVENT_TAP,t),this.addDestroyFunc((function(){return o.destroy()})),this.addDestroyableEventListener(e,"click",t)},t.prototype.updateIconVisibility=function(){if(this.params.columnGroup.isExpandable()){var e=this.params.columnGroup.isExpanded();f._.setDisplayed(this.eOpenIcon,!e),f._.setDisplayed(this.eCloseIcon,e)}else f._.setDisplayed(this.eOpenIcon,!1),f._.setDisplayed(this.eCloseIcon,!1)},t.prototype.addInIcon=function(e,t){var o=f._.createIconNoSpan(e,this.gridOptionsWrapper,null);this.getRefElement(t).appendChild(o)},t.prototype.addGroupExpandIcon=function(){if(!this.params.columnGroup.isExpandable())return f._.setDisplayed(this.eOpenIcon,!1),void f._.setDisplayed(this.eCloseIcon,!1)},t.prototype.setupLabel=function(){this.params.displayName&&""!==this.params.displayName&&(this.getRefElement("agLabel").innerHTML=this.params.displayName)},t.TEMPLATE='<div class="ag-header-group-cell-label" ref="agContainer" role="presentation"><span ref="agLabel" class="ag-header-group-text" role="columnheader"></span><span ref="agOpened" class="ag-header-icon ag-header-expand-icon ag-header-expand-icon-expanded"></span><span ref="agClosed" class="ag-header-icon ag-header-expand-icon ag-header-expand-icon-collapsed"></span></div>',n([u.Autowired("columnController"),s("design:type",l.ColumnController)],t.prototype,"columnController",void 0),n([u.Autowired("gridOptionsWrapper"),s("design:type",p.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),n([d.RefSelector("agOpened"),s("design:type",HTMLElement)],t.prototype,"eOpenIcon",void 0),n([d.RefSelector("agClosed"),s("design:type",HTMLElement)],t.prototype,"eCloseIcon",void 0),t}(a.Component);t.HeaderGroupComp=g},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),n=this&&this.__decorate||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},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(0),l=o(8),p=o(3),u=o(11),c=o(2),d=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return r(t,e),t.prototype.init=function(e){var t=c._.createIconNoSpan("groupLoading",this.gridOptionsWrapper,null);this.eLoadingIcon.appendChild(t);var o=this.gridOptionsWrapper.getLocaleTextFunc();this.eLoadingText.innerText=o("loadingOoo","Loading")},t.prototype.refresh=function(e){return!1},t.TEMPLATE='<div class="ag-stub-cell">\n <span class="ag-loading-icon" ref="eLoadingIcon"></span>\n <span class="ag-loading-text" ref="eLoadingText"></span>\n </div>',n([a.Autowired("gridOptionsWrapper"),s("design:type",p.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),n([u.RefSelector("eLoadingIcon"),s("design:type",HTMLElement)],t.prototype,"eLoadingIcon",void 0),n([u.RefSelector("eLoadingText"),s("design:type",HTMLElement)],t.prototype,"eLoadingText",void 0),t}(l.Component);t.LoadingCellRenderer=d},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),n=this&&this.__decorate||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},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(3),l=o(0),p=function(e){function t(){return e.call(this)||this}return r(t,e),t.prototype.init=function(e){var o=this.gridOptionsWrapper.getOverlayLoadingTemplate()?this.gridOptionsWrapper.getOverlayLoadingTemplate():t.DEFAULT_LOADING_OVERLAY_TEMPLATE,i=this.gridOptionsWrapper.getLocaleTextFunc(),r=o.replace("[LOADING...]",i("loadingOoo","Loading..."));this.setTemplate(r)},t.DEFAULT_LOADING_OVERLAY_TEMPLATE='<span class="ag-overlay-loading-center">[LOADING...]</span>',n([l.Autowired("gridOptionsWrapper"),s("design:type",a.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),t}(o(8).Component);t.LoadingOverlayComponent=p},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),n=this&&this.__decorate||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},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(3),l=o(0),p=function(e){function t(){return e.call(this)||this}return r(t,e),t.prototype.init=function(e){var o=this.gridOptionsWrapper.getOverlayNoRowsTemplate()?this.gridOptionsWrapper.getOverlayNoRowsTemplate():t.DEFAULT_NO_ROWS_TEMPLATE,i=this.gridOptionsWrapper.getLocaleTextFunc(),r=o.replace("[NO_ROWS_TO_SHOW]",i("noRowsToShow","No Rows To Show"));this.setTemplate(r)},t.DEFAULT_NO_ROWS_TEMPLATE='<span class="ag-overlay-no-rows-center">[NO_ROWS_TO_SHOW]</span>',n([l.Autowired("gridOptionsWrapper"),s("design:type",a.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),t}(o(8).Component);t.NoRowsOverlayComponent=p},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var n=function(e){function t(){return e.call(this,'<div class="ag-tooltip"></div>')||this}return r(t,e),t.prototype.init=function(e){var t=e.value;this.getGui().innerHTML=t},t}(o(47).PopupComponent);t.TooltipComponent=n},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var n=o(8),s=o(2),a=function(e){function t(){return e.call(this,'<div class="ag-input-wrapper" role="presentation"><input class="ag-filter-filter" type="text" placeholder="yyyy-mm-dd"></div>')||this}return r(t,e),t.prototype.init=function(e){this.eDateInput=this.getGui().querySelector("input"),(s._.isBrowserChrome()||e.filterParams.browserDatePicker)&&(s._.isBrowserIE()?console.warn("ag-grid: browserDatePicker is specified to true, but it is not supported in IE 11, reverting to plain text date picker"):this.eDateInput.type="date"),this.listener=e.onDateChanged,this.addGuiEventListener("input",this.listener)},t.prototype.getDate=function(){return s._.parseYyyyMmDdToDate(this.eDateInput.value,"-")},t.prototype.setDate=function(e){this.eDateInput.value=s._.serializeDateToYyyyMmDd(e,"-")},t}(n.Component);t.DefaultDateComponent=a},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),n=this&&this.__decorate||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},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(132),l=o(0),p=o(19),u=o(2),c=o(180),d=o(11),h=o(33),f=o(185),g=o(88),y=function(e){function t(){return e.call(this,'<div class="ag-input-wrapper" role="presentation">\n <input ref="eReadOnlyText" disabled="true" class="ag-floating-filter-input">\n <div ref="eDateWrapper" style="display: flex; flex: 1 1 auto; overflow: hidden;"></div>\n </div>')||this}return r(t,e),t.prototype.getDefaultFilterOptions=function(){return a.DateFilter.DEFAULT_FILTER_OPTIONS},t.prototype.conditionToString=function(e){return e.type==h.SimpleFilter.IN_RANGE?e.dateFrom+"-"+e.dateTo:null!=e.dateFrom?""+e.dateFrom:""+e.type},t.prototype.init=function(t){e.prototype.init.call(this,t),this.params=t,this.createDateComponent()},t.prototype.setEditable=function(e){u._.setDisplayed(this.eDateWrapper,e),u._.setDisplayed(this.eReadOnlyText,!e)},t.prototype.onParentModelChanged=function(t,o){if(!this.isEventFromFloatingFilter(o)){e.prototype.setLastTypeFromModel.call(this,t);var i=this.canWeEditAfterModelFromParentFilter(t);if(this.setEditable(i),i){if(t){var r=t;this.dateComp.setDate(u._.parseYyyyMmDdToDate(r.dateFrom,"-"))}else this.dateComp.setDate(null);this.eReadOnlyText.value=""}else this.eReadOnlyText.value=this.getTextFromModel(t),this.dateComp.setDate(null)}},t.prototype.onDateChanged=function(){var e=this,t=this.dateComp.getDate(),o=u._.serializeDateToYyyyMmDd(t,"-");this.params.parentFilterInstance((function(t){t&&t.onFloatingFilterChanged(e.getLastType(),o)}))},t.prototype.createDateComponent=function(){var e=this,t=g.ProvidedFilter.getDebounceMs(this.params.filterParams,this.getDefaultDebounceMs()),o={onDateChanged:u._.debounce(this.onDateChanged.bind(this),t),filterParams:this.params.column.getColDef().filterParams};this.dateComp=new c.DateCompWrapper(this.userComponentFactory,o,this.eDateWrapper),this.addDestroyFunc((function(){e.dateComp.destroy()}))},n([l.Autowired("userComponentFactory"),s("design:type",p.UserComponentFactory)],t.prototype,"userComponentFactory",void 0),n([d.RefSelector("eReadOnlyText"),s("design:type",HTMLInputElement)],t.prototype,"eReadOnlyText",void 0),n([d.RefSelector("eDateWrapper"),s("design:type",HTMLInputElement)],t.prototype,"eDateWrapper",void 0),t}(f.SimpleFloatingFilter);t.DateFloatingFilter=y},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var n=o(137),s=o(33),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.getDefaultFilterOptions=function(){return n.NumberFilter.DEFAULT_FILTER_OPTIONS},t.prototype.conditionToString=function(e){return e.type==s.SimpleFilter.IN_RANGE?e.filter+"-"+e.filterTo:null!=e.filter?""+e.filter:""+e.type},t}(o(186).TextInputFloatingFilter);t.NumberFloatingFilter=a},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var n=o(138),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.conditionToString=function(e){return null!=e.filter?""+e.filter:""+e.type},t.prototype.getDefaultFilterOptions=function(){return n.TextFilter.DEFAULT_FILTER_OPTIONS},t}(o(186).TextInputFloatingFilter);t.TextFloatingFilter=s},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),n=this&&this.__decorate||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},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(49),l=o(15),p=o(0),u=o(10),c=o(9),d=o(6),h=o(4),f=o(7),g=o(23),y=o(3),v=function(e){function t(t,o){var i=e.call(this)||this;i.cbSelectAllVisible=!1,i.processingEventFromCheckbox=!1,i.cbSelectAll=t,i.column=o;var r=o.getColDef();return i.filteredOnly=!!r&&!!r.headerCheckboxSelectionFilteredOnly,i}return r(t,e),t.prototype.postConstruct=function(){this.showOrHideSelectAll(),this.addDestroyableEventListener(this.eventService,d.Events.EVENT_DISPLAYED_COLUMNS_CHANGED,this.showOrHideSelectAll.bind(this)),this.addDestroyableEventListener(this.eventService,d.Events.EVENT_SELECTION_CHANGED,this.onSelectionChanged.bind(this)),this.addDestroyableEventListener(this.eventService,d.Events.EVENT_MODEL_UPDATED,this.onModelChanged.bind(this)),this.addDestroyableEventListener(this.cbSelectAll,a.AgCheckbox.EVENT_CHANGED,this.onCbSelectAll.bind(this))},t.prototype.showOrHideSelectAll=function(){this.cbSelectAllVisible=this.isCheckboxSelection(),this.cbSelectAll.setDisplayed(this.cbSelectAllVisible),this.cbSelectAllVisible&&(this.checkRightRowModelType(),this.updateStateOfCheckbox())},t.prototype.onModelChanged=function(){this.cbSelectAllVisible&&this.updateStateOfCheckbox()},t.prototype.onSelectionChanged=function(){this.cbSelectAllVisible&&this.updateStateOfCheckbox()},t.prototype.getNextCheckboxState=function(e){return(0!==e.selected||0!==e.notSelected)&&(e.selected>0&&e.notSelected>0?null:e.selected>0)},t.prototype.updateStateOfCheckbox=function(){if(!this.processingEventFromCheckbox){this.processingEventFromCheckbox=!0;var e=this.getSelectionCount(),t=this.getNextCheckboxState(e);this.cbSelectAll.setValue(t),this.processingEventFromCheckbox=!1}},t.prototype.getSelectionCount=function(){var e=this,t=0,o=0,i=function(i){e.gridOptionsWrapper.isGroupSelectsChildren()&&i.group||(i.isSelected()?t++:i.selectable&&o++)};return this.filteredOnly?this.gridApi.forEachNodeAfterFilter(i):this.gridApi.forEachNode(i),{notSelected:o,selected:t}},t.prototype.checkRightRowModelType=function(){var e=this.rowModel.getType();e===f.Constants.ROW_MODEL_TYPE_CLIENT_SIDE||console.warn("ag-Grid: selectAllCheckbox is only available if using normal row model, you are using "+e)},t.prototype.onCbSelectAll=function(){this.processingEventFromCheckbox||this.cbSelectAllVisible&&(this.cbSelectAll.getValue()?this.selectionController.selectAllRowNodes(this.filteredOnly):this.selectionController.deselectAllRowNodes(this.filteredOnly))},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}));return!!e&&(this.gridOptionsWrapper.isRowModelServerSide()?(console.warn("headerCheckboxSelection is not supported for Server Side Row Model"),!1):this.gridOptionsWrapper.isRowModelInfinite()?(console.warn("headerCheckboxSelection is not supported for Infinite Row Model"),!1):!this.gridOptionsWrapper.isRowModelViewport()||(console.warn("headerCheckboxSelection is not supported for Viewport Row Model"),!1))},n([p.Autowired("gridApi"),s("design:type",c.GridApi)],t.prototype,"gridApi",void 0),n([p.Autowired("columnApi"),s("design:type",u.ColumnApi)],t.prototype,"columnApi",void 0),n([p.Autowired("eventService"),s("design:type",h.EventService)],t.prototype,"eventService",void 0),n([p.Autowired("rowModel"),s("design:type",Object)],t.prototype,"rowModel",void 0),n([p.Autowired("selectionController"),s("design:type",g.SelectionController)],t.prototype,"selectionController",void 0),n([p.Autowired("gridOptionsWrapper"),s("design:type",y.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),n([p.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"postConstruct",null),t}(l.BeanStub);t.SelectAllFeature=v},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/Object.defineProperty(t,"__esModule",{value:!0}),t.DefaultColumnTypes={numericColumn:{headerClass:"ag-numeric-header",cellClass:"ag-numeric-cell"}}},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/Object.defineProperty(t,"__esModule",{value:!0});var i=o(150);function r(e,t,o,r){var n,s,a=r.agGrid;if(s=a+".quickFilterText",n=t.$eval(a)){var l=e[0],p={$scope:t,$compile:o,quickFilterOnScope:s},u=new i.Grid(l,n,p);t.$on("$destroy",(function(){u.destroy(),u=null}))}else console.warn("WARNING - grid options for ag-Grid not found. Please ensure the attribute ag-grid points to a valid object on the scope")}t.initialiseAgGridWithAngular1=function(e){e.module("agGrid",[]).directive("agGrid",(function(){return{restrict:"A",controller:["$element","$scope","$compile","$attrs",r],scope:!0}}))}},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),n=this&&this.__decorate||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},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(8),l=o(12),p=o(36),u=o(10),c=o(5),d=o(3),h=o(91),f=o(0),g=o(144),y=o(18),v=o(92),m=o(9),C=o(19),w=o(38),_=o(146),b=o(2),E=function(e){function t(o,i,r){var n=e.call(this,t.TEMPLATE)||this;return n.childColumnsDestroyFuncs=[],n.columnGroup=o,n.dragSourceDropTarget=i,n.pinned=r,n}return r(t,e),t.prototype.postConstruct=function(){g.CssClassApplier.addHeaderClassesFromColDef(this.getComponentHolder(),this.getGui(),this.gridOptionsWrapper,null,this.columnGroup);var e=this.columnController.getDisplayNameForColumnGroup(this.columnGroup,"header");this.appendHeaderGroupComp(e),this.setupResize(),this.addClasses(),this.setupWidth(),this.addAttributes(),this.setupMovingCss(),this.setupTooltip(),this.addFeature(this.getContext(),new _.HoverFeature(this.columnGroup.getOriginalColumnGroup().getLeafColumns(),this.getGui()));var t=new v.SetLeftFeature(this.columnGroup,this.getGui(),this.beans);t.init(),this.addDestroyFunc(t.destroy.bind(t))},t.prototype.setupMovingCss=function(){var e=this;this.columnGroup.getOriginalColumnGroup().getLeafColumns().forEach((function(t){e.addDestroyableEventListener(t,l.Column.EVENT_MOVING_CHANGED,e.onColumnMovingChanged.bind(e))})),this.onColumnMovingChanged()},t.prototype.getColumn=function(){return this.columnGroup},t.prototype.getComponentHolder=function(){return this.columnGroup.getColGroupDef()},t.prototype.getTooltipText=function(){var e=this.getComponentHolder();return e&&e.headerTooltip},t.prototype.setupTooltip=function(){var e=this.getTooltipText();null!=e&&(this.gridOptionsWrapper.isEnableBrowserTooltips()?this.getGui().setAttribute("title",e):this.beans.tooltipManager.registerTooltip(this))},t.prototype.onColumnMovingChanged=function(){b._.addOrRemoveCssClass(this.getGui(),"ag-header-cell-moving",this.columnGroup.isMoving())},t.prototype.addAttributes=function(){this.getGui().setAttribute("col-id",this.columnGroup.getUniqueId())},t.prototype.appendHeaderGroupComp=function(e){var t=this,o={displayName:e,columnGroup:this.columnGroup,setExpanded:function(e){t.columnController.setColumnGroupOpened(t.columnGroup.getOriginalColumnGroup(),e,"gridInitializing")},api:this.gridApi,columnApi:this.columnApi,context:this.gridOptionsWrapper.getContext()};if(!e){for(var i=this.columnGroup,r=i.getLeafColumns();i.getParent()&&i.getParent().getLeafColumns().length===r.length;)i=i.getParent();var n=i.getColGroupDef();n&&(e=n.headerName),e||(e=r?this.columnController.getDisplayNameForColumn(r[0],"header",!0):"")}var s=this.afterHeaderCompCreated.bind(this,e);this.userComponentFactory.newHeaderGroupComponent(o).then(s)},t.prototype.afterHeaderCompCreated=function(e,t){this.appendChild(t),this.setupMove(t.getGui(),e)},t.prototype.addClasses=function(){this.columnGroup.isPadding()?this.addCssClass("ag-header-group-cell-no-group"):this.addCssClass("ag-header-group-cell-with-group")},t.prototype.setupMove=function(e,t){var o=this;if(e&&!this.isSuppressMoving()){var i=this.columnGroup.getOriginalColumnGroup().getLeafColumns();if(e){var r={type:y.DragSourceType.HeaderCell,eElement:e,dragItemName:t,dragItemCallback:this.getDragItemForGroup.bind(this),dragSourceDropTarget:this.dragSourceDropTarget,dragStarted:function(){return i.forEach((function(e){return e.setMoving(!0,"uiColumnDragged")}))},dragStopped:function(){return i.forEach((function(e){return e.setMoving(!1,"uiColumnDragged")}))}};this.dragAndDropService.addDragSource(r,!0),this.addDestroyFunc((function(){return o.dragAndDropService.removeDragSource(r)}))}}},t.prototype.getDragItemForGroup=function(){var e=this.columnGroup.getOriginalColumnGroup().getLeafColumns(),t={};e.forEach((function(e){return t[e.getId()]=e.isVisible()}));var o=[];return this.columnController.getAllDisplayedColumns().forEach((function(t){e.indexOf(t)>=0&&(o.push(t),b._.removeFromArray(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.gridOptionsWrapper.isSuppressMovableColumns()},t.prototype.setupWidth=function(){this.addListenersToChildrenColumns(),this.addDestroyableEventListener(this.columnGroup,p.ColumnGroup.EVENT_DISPLAYED_CHILDREN_CHANGED,this.onDisplayedChildrenChanged.bind(this)),this.onWidthChanged(),this.addDestroyFunc(this.destroyListenersOnChildrenColumns.bind(this))},t.prototype.onDisplayedChildrenChanged=function(){this.addListenersToChildrenColumns(),this.onWidthChanged()},t.prototype.addListenersToChildrenColumns=function(){var e=this;this.destroyListenersOnChildrenColumns();var t=this.onWidthChanged.bind(this);this.columnGroup.getLeafColumns().forEach((function(o){o.addEventListener(l.Column.EVENT_WIDTH_CHANGED,t),o.addEventListener(l.Column.EVENT_VISIBLE_CHANGED,t),e.childColumnsDestroyFuncs.push((function(){o.removeEventListener(l.Column.EVENT_WIDTH_CHANGED,t),o.removeEventListener(l.Column.EVENT_VISIBLE_CHANGED,t)}))}))},t.prototype.destroyListenersOnChildrenColumns=function(){this.childColumnsDestroyFuncs.forEach((function(e){return e()})),this.childColumnsDestroyFuncs=[]},t.prototype.onWidthChanged=function(){this.getGui().style.width=this.columnGroup.getActualWidth()+"px"},t.prototype.setupResize=function(){var e=this;if(this.eHeaderCellResize=this.getRefElement("agResize"),this.columnGroup.isResizable()){var t=this.horizontalResizeService.addResizeBar({eResizeBar:this.eHeaderCellResize,onResizeStart:this.onResizeStart.bind(this),onResizing:this.onResizing.bind(this,!1),onResizeEnd:this.onResizing.bind(this,!0)});this.addDestroyFunc(t),this.gridOptionsWrapper.isSuppressAutoSize()||this.eHeaderCellResize.addEventListener("dblclick",(function(t){var o=[];e.columnGroup.getDisplayedLeafColumns().forEach((function(e){e.getColDef().suppressAutoSize||o.push(e.getColId())})),o.length>0&&e.columnController.autoSizeColumns(o,"uiColumnResized")}))}else b._.removeFromParent(this.eHeaderCellResize)},t.prototype.onResizeStart=function(e){var t=this,o=this.columnGroup.getDisplayedLeafColumns();this.resizeCols=b._.filter(o,(function(e){return e.isResizable()})),this.resizeStartWidth=0,this.resizeCols.forEach((function(e){return t.resizeStartWidth+=e.getActualWidth()})),this.resizeRatios=[],this.resizeCols.forEach((function(e){return t.resizeRatios.push(e.getActualWidth()/t.resizeStartWidth)}));var i=null;if(e&&(i=this.columnController.getDisplayedGroupAfter(this.columnGroup)),i){var r=i.getDisplayedLeafColumns();this.resizeTakeFromCols=b._.filter(r,(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;b._.addCssClass(this.getGui(),"ag-column-resizing")},t.prototype.onResizing=function(e,t){var o=[],i=this.normaliseDragChange(t);o.push({columns:this.resizeCols,ratios:this.resizeRatios,width:this.resizeStartWidth+i}),this.resizeTakeFromCols&&o.push({columns:this.resizeTakeFromCols,ratios:this.resizeTakeFromRatios,width:this.resizeTakeFromStartWidth-i}),this.columnController.resizeColumnSets(o,e,"uiColumnDragged"),e&&b._.removeCssClass(this.getGui(),"ag-column-resizing")},t.prototype.normaliseDragChange=function(e){var t=e;return this.gridOptionsWrapper.isEnableRtl()?this.pinned!==l.Column.PINNED_LEFT&&(t*=-1):this.pinned===l.Column.PINNED_RIGHT&&(t*=-1),t},t.TEMPLATE='<div class="ag-header-group-cell" role="presentation"><div ref="agResize" class="ag-header-cell-resize" role="presentation"></div></div>',n([f.Autowired("gridOptionsWrapper"),s("design:type",d.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),n([f.Autowired("columnController"),s("design:type",c.ColumnController)],t.prototype,"columnController",void 0),n([f.Autowired("horizontalResizeService"),s("design:type",h.HorizontalResizeService)],t.prototype,"horizontalResizeService",void 0),n([f.Autowired("dragAndDropService"),s("design:type",y.DragAndDropService)],t.prototype,"dragAndDropService",void 0),n([f.Autowired("userComponentFactory"),s("design:type",C.UserComponentFactory)],t.prototype,"userComponentFactory",void 0),n([f.Autowired("gridApi"),s("design:type",m.GridApi)],t.prototype,"gridApi",void 0),n([f.Autowired("columnApi"),s("design:type",u.ColumnApi)],t.prototype,"columnApi",void 0),n([f.Autowired("beans"),s("design:type",w.Beans)],t.prototype,"beans",void 0),n([f.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"postConstruct",null),t}(a.Component);t.HeaderGroupWrapperComp=E},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),n=this&&this.__decorate||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},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(0),l=o(12),p=o(92),u=o(8),c=o(11),d=o(3),h=o(38),f=o(146),g=o(6),y=o(4),v=o(64),m=o(2),C=o(19),w=o(9),_=o(10),b=o(17),E=o(268),R=function(e){function t(o){var i=e.call(this,t.TEMPLATE)||this;return i.column=o,i}return r(t,e),t.prototype.postConstruct=function(){this.setupFloatingFilter(),this.setupWidth(),this.setupLeftPositioning(),this.setupColumnHover(),this.addFeature(this.getContext(),new f.HoverFeature([this.column],this.getGui())),this.addDestroyableEventListener(this.eButtonShowMainFilter,"click",this.showParentFilter.bind(this))},t.prototype.setupFloatingFilter=function(){var e=this;this.column.getColDef().filter?(this.floatingFilterCompPromise=this.getFloatingFilterInstance(),this.floatingFilterCompPromise?this.floatingFilterCompPromise.then((function(t){t?(e.setupWithFloatingFilter(t),e.setupSyncWithFilter()):e.setupEmpty()})):this.setupEmpty()):this.setupEmpty()},t.prototype.setupLeftPositioning=function(){var e=new p.SetLeftFeature(this.column,this.getGui(),this.beans);e.init(),this.addDestroyFunc(e.destroy.bind(e))},t.prototype.setupSyncWithFilter=function(){var e=this,t=function(t){var o=e.filterManager.getFilterComponent(e.column,"NO_UI").resolveNow(null,(function(e){return e.getModel()}));e.onParentModelChanged(o,t)};this.addDestroyableEventListener(this.column,l.Column.EVENT_FILTER_CHANGED,t),this.filterManager.isFilterActive(this.column)&&t(null)},t.prototype.showParentFilter=function(){this.menuFactory.showMenuAfterButtonClick(this.column,this.eButtonShowMainFilter,"filterMenuTab",["filterMenuTab"])},t.prototype.setupColumnHover=function(){this.addDestroyableEventListener(this.eventService,g.Events.EVENT_COLUMN_HOVER_CHANGED,this.onColumnHover.bind(this)),this.onColumnHover()},t.prototype.onColumnHover=function(){var e=this.columnHoverService.isHovered(this.column);m._.addOrRemoveCssClass(this.getGui(),"ag-column-hover",e)},t.prototype.setupWidth=function(){this.addDestroyableEventListener(this.column,l.Column.EVENT_WIDTH_CHANGED,this.onColumnWidthChanged.bind(this)),this.onColumnWidthChanged()},t.prototype.onColumnWidthChanged=function(){this.getGui().style.width=this.column.getActualWidth()+"px"},t.prototype.setupWithFloatingFilter=function(e){var t=function(){e.destroy&&e.destroy()};if(this.isAlive()){this.addDestroyFunc(t);var o=e.getGui();m._.addOrRemoveCssClass(this.eFloatingFilterBody,"ag-floating-filter-body",!this.suppressFilterButton),m._.addOrRemoveCssClass(this.eFloatingFilterBody,"ag-floating-filter-full-body",this.suppressFilterButton),m._.setDisplayed(this.eButtonWrapper,!this.suppressFilterButton);var i=m._.createIconNoSpan("filter",this.gridOptionsWrapper,this.column);this.eButtonShowMainFilter.appendChild(i),this.eFloatingFilterBody.appendChild(o),e.afterGuiAttached&&e.afterGuiAttached()}else t()},t.prototype.parentFilterInstance=function(e){this.filterManager.getFilterComponent(this.column,"NO_UI").then(e)},t.prototype.getFloatingFilterInstance=function(){var e,o=this.column.getColDef();"string"==typeof o.filter?e=t.filterToFloatingFilterNames[o.filter]:!0===o.filter&&(e=this.gridOptionsWrapper.isEnterprise()?"agSetColumnFloatingFilter":"agTextColumnFloatingFilter");var i=this.filterManager.createFilterParams(this.column,this.column.getColDef()),r=this.userComponentFactory.createFinalParams(o,"filter",i),n={api:this.gridApi,column:this.column,filterParams:r,currentParentModel:this.currentParentModel.bind(this),parentFilterInstance:this.parentFilterInstance.bind(this),onFloatingFilterChanged:this.onFloatingFilterChanged.bind(this),suppressFilterButton:!1};this.suppressFilterButton=!!o.floatingFilterComponentParams&&!!o.floatingFilterComponentParams.suppressFilterButton;var s=this.userComponentFactory.newFloatingFilterComponent(o,n,e);if(!s){var a=this.getFilterComponentPrototype(o);if(a&&a.prototype&&a.prototype.getModelAsString){var l=this.userComponentFactory.createUserComponentFromConcreteClass(E.ReadOnlyFloatingFilter,n);s=m.Promise.resolve(l)}}return s},t.prototype.createDynamicParams=function(){return{column:this.column,colDef:this.column.getColDef(),api:this.gridApi,columnApi:this.columnApi}},t.prototype.getFilterComponentPrototype=function(e){var t=this.userComponentFactory.lookupComponentClassDef(e,"filter",this.createDynamicParams());return t?t.component:null},t.prototype.setupEmpty=function(){m._.setDisplayed(this.eButtonWrapper,!1)},t.prototype.currentParentModel=function(){return this.filterManager.getFilterComponent(this.column,"NO_UI").resolveNow(null,(function(e){return e.getModel()}))},t.prototype.onParentModelChanged=function(e,t){this.floatingFilterCompPromise&&this.floatingFilterCompPromise.then((function(o){o.onParentModelChanged(e,t)}))},t.prototype.onFloatingFilterChanged=function(){console.warn("ag-Grid: since version 21.x, how floating filters are implemented has changed. Instead of calling params.onFloatingFilterChanged(), get a reference to the main filter via params.parentFilterInstance() and then set a value on the parent filter directly.")},t.filterToFloatingFilterNames={set:"agSetColumnFloatingFilter",agSetColumnFilter:"agSetColumnFloatingFilter",number:"agNumberColumnFloatingFilter",agNumberColumnFilter:"agNumberColumnFloatingFilter",date:"agDateColumnFloatingFilter",agDateColumnFilter:"agDateColumnFloatingFilter",text:"agTextColumnFloatingFilter",agTextColumnFilter:"agTextColumnFloatingFilter"},t.TEMPLATE='<div class="ag-header-cell" role="presentation">\n <div ref="eFloatingFilterBody" role="columnheader"></div>\n <div class="ag-floating-filter-button" ref="eButtonWrapper" role="presentation">\n <button type="button" ref="eButtonShowMainFilter"></button>\n </div>\n </div>',n([a.Autowired("columnHoverService"),s("design:type",v.ColumnHoverService)],t.prototype,"columnHoverService",void 0),n([a.Autowired("eventService"),s("design:type",y.EventService)],t.prototype,"eventService",void 0),n([a.Autowired("beans"),s("design:type",h.Beans)],t.prototype,"beans",void 0),n([a.Autowired("gridOptionsWrapper"),s("design:type",d.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),n([a.Autowired("userComponentFactory"),s("design:type",C.UserComponentFactory)],t.prototype,"userComponentFactory",void 0),n([a.Autowired("gridApi"),s("design:type",w.GridApi)],t.prototype,"gridApi",void 0),n([a.Autowired("columnApi"),s("design:type",_.ColumnApi)],t.prototype,"columnApi",void 0),n([a.Autowired("filterManager"),s("design:type",b.FilterManager)],t.prototype,"filterManager",void 0),n([a.Autowired("menuFactory"),s("design:type",Object)],t.prototype,"menuFactory",void 0),n([c.RefSelector("eFloatingFilterBody"),s("design:type",HTMLElement)],t.prototype,"eFloatingFilterBody",void 0),n([c.RefSelector("eButtonWrapper"),s("design:type",HTMLElement)],t.prototype,"eButtonWrapper",void 0),n([c.RefSelector("eButtonShowMainFilter"),s("design:type",HTMLElement)],t.prototype,"eButtonShowMainFilter",void 0),n([a.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"postConstruct",null),t}(u.Component);t.FloatingFilterWrapper=R},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),n=this&&this.__decorate||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},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(8),l=o(11),p=function(e){function t(){return e.call(this,'<div class="ag-input-wrapper" role="presentation"><input ref="eFloatingFilterText" class="ag-floating-filter-input"></div>')||this}return r(t,e),t.prototype.init=function(e){this.params=e,this.eFloatingFilterText.disabled=!0},t.prototype.onParentModelChanged=function(e){var t=this;e?this.params.parentFilterInstance((function(o){if(o.getModelAsString){var i=o.getModelAsString(e);t.eFloatingFilterText.value=i}})):this.eFloatingFilterText.value=""},n([l.RefSelector("eFloatingFilterText"),s("design:type",HTMLInputElement)],t.prototype,"eFloatingFilterText",void 0),t}(a.Component);t.ReadOnlyFloatingFilter=p},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/var i=this&&this.__decorate||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},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),s=o(3),a=o(2),l=function(){function e(e){this.childCount=0,this.rowTemplatesToAdd=[],this.afterGuiAttachedCallbacks=[],this.lastMadeVisibleTime=0,this.eContainer=e.eContainer,this.eViewport=e.eViewport,e.eWrapper&&(this.eWrapper=e.eWrapper),this.hideWhenNoChildren=e.hideWhenNoChildren}return e.prototype.setVerticalScrollPosition=function(e){this.scrollTop=e},e.prototype.postConstruct=function(){this.checkDomOrder(),this.checkVisibility(),this.gridOptionsWrapper.addEventListener(s.GridOptionsWrapper.PROP_DOM_LAYOUT,this.checkDomOrder.bind(this))},e.prototype.checkDomOrder=function(){this.domOrder=this.gridOptionsWrapper.isEnsureDomOrder()},e.prototype.getRowElement=function(e){return this.eContainer.querySelector('[comp-id="'+e+'"]')},e.prototype.setHeight=function(e){null!=e?(this.eContainer.style.height=e+"px",this.eWrapper&&(this.eWrapper.style.height=e+"px")):this.eContainer.style.height=""},e.prototype.flushRowTemplates=function(){if(0!==this.rowTemplatesToAdd.length){var e=this.rowTemplatesToAdd.join("");a._.appendHtml(this.eContainer,e),this.rowTemplatesToAdd.length=0}this.afterGuiAttachedCallbacks.forEach((function(e){return e()})),this.afterGuiAttachedCallbacks.length=0,this.lastPlacedElement=null},e.prototype.appendRowTemplate=function(e,t){this.domOrder?this.lastPlacedElement=a._.insertTemplateWithDomOrder(this.eContainer,e,this.lastPlacedElement):this.rowTemplatesToAdd.push(e),this.afterGuiAttachedCallbacks.push(t),this.childCount++,this.checkVisibility()},e.prototype.ensureDomOrder=function(e){this.domOrder&&(a._.ensureDomOrder(this.eContainer,e,this.lastPlacedElement),this.lastPlacedElement=e)},e.prototype.removeRowElement=function(e){this.eContainer.removeChild(e),this.childCount--,this.checkVisibility()},e.prototype.checkVisibility=function(){if(this.hideWhenNoChildren){var e=this.eViewport?this.eViewport:this.eContainer,t=this.childCount>0;this.visible!==t&&(this.visible=t,this.lastMadeVisibleTime=(new Date).getTime(),a._.setDisplayed(e,t),t&&this.eViewport&&(this.eViewport.scrollTop=this.scrollTop))}},e.prototype.isMadeVisibleRecently=function(){return(new Date).getTime()-this.lastMadeVisibleTime<500},i([n.Autowired("gridOptionsWrapper"),r("design:type",s.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([n.PostConstruct,r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],e.prototype,"postConstruct",null),e}();t.RowContainerComponent=l},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/var i=this&&this.__decorate||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},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var n=o(18),s=o(0),a=o(26),l=o(3),p=o(4),u=o(35),c=o(7),d=function(){function e(e,t){this.eContainer=e,this.gridPanel=t}return e.prototype.postConstruct=function(){this.gridOptionsWrapper.isRowModelDefault()&&(this.clientSideRowModel=this.rowModel)},e.prototype.getContainer=function(){return this.eContainer},e.prototype.isInterestedIn=function(e){return e===n.DragSourceType.RowDrag},e.prototype.getIconName=function(){return n.DragAndDropService.ICON_MOVE},e.prototype.onDragEnter=function(e){this.dispatchEvent(u.Events.EVENT_ROW_DRAG_ENTER,e),this.dragAndDropService.setGhostIcon(n.DragAndDropService.ICON_MOVE),e.dragItem.rowNode.setDragging(!0),this.onEnterOrDragging(e)},e.prototype.onDragging=function(e){this.onEnterOrDragging(e)},e.prototype.onEnterOrDragging=function(e){this.dispatchEvent(u.Events.EVENT_ROW_DRAG_MOVE,e),this.lastDraggingEvent=e;var t=this.normaliseForScroll(e.y);this.gridOptionsWrapper.isRowDragManaged()&&this.doManagedDrag(e,t),this.checkCenterForScrolling(t)},e.prototype.doManagedDrag=function(e,t){var o=e.dragItem.rowNode;this.clientSideRowModel.ensureRowAtPixel(o,t)&&(this.focusedCellController.clearFocusedCell(),this.rangeController&&this.rangeController.removeAllCellRanges())},e.prototype.normaliseForScroll=function(e){return this.gridOptionsWrapper.getDomLayout()===c.Constants.DOM_LAYOUT_NORMAL?e+this.gridPanel.getVScrollPosition().top:e},e.prototype.checkCenterForScrolling=function(e){var t=this.gridPanel.getVScrollPosition();this.needToMoveUp=e<t.top+50,this.needToMoveDown=e>t.bottom-50,this.needToMoveUp||this.needToMoveDown?this.ensureIntervalStarted():this.ensureIntervalCleared()},e.prototype.ensureIntervalStarted=function(){this.movingIntervalId||(this.intervalCount=0,this.movingIntervalId=window.setInterval(this.moveInterval.bind(this),100))},e.prototype.ensureIntervalCleared=function(){this.moveInterval&&(window.clearInterval(this.movingIntervalId),this.movingIntervalId=null)},e.prototype.moveInterval=function(){var e,t;this.intervalCount++,(e=10+5*this.intervalCount)>100&&(e=100),this.needToMoveDown?t=this.gridPanel.scrollVertically(e):this.needToMoveUp&&(t=this.gridPanel.scrollVertically(-e)),0!==t&&this.onDragging(this.lastDraggingEvent)},e.prototype.dispatchEvent=function(e,t){var o,i=this.normaliseForScroll(t.y),r=-1,s=null;switch(i>this.rowModel.getCurrentPageHeight()||(r=this.rowModel.getRowIndexAtPixel(i),s=this.rowModel.getRow(r)),t.vDirection){case n.VDirection.Down:o="down";break;case n.VDirection.Up:o="up";break;default:o=null}var a={type:e,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),event:t.event,node:t.dragItem.rowNode,overIndex:r,overNode:s,y:i,vDirection:o};this.eventService.dispatchEvent(a)},e.prototype.onDragLeave=function(e){this.dispatchEvent(u.Events.EVENT_ROW_DRAG_LEAVE,e),this.stopDragging(e)},e.prototype.onDragStop=function(e){this.dispatchEvent(u.Events.EVENT_ROW_DRAG_END,e),this.stopDragging(e)},e.prototype.stopDragging=function(e){this.ensureIntervalCleared(),e.dragItem.rowNode.setDragging(!1)},i([s.Autowired("dragAndDropService"),r("design:type",n.DragAndDropService)],e.prototype,"dragAndDropService",void 0),i([s.Autowired("rowModel"),r("design:type",Object)],e.prototype,"rowModel",void 0),i([s.Autowired("focusedCellController"),r("design:type",a.FocusedCellController)],e.prototype,"focusedCellController",void 0),i([s.Autowired("gridOptionsWrapper"),r("design:type",l.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([s.Optional("rangeController"),r("design:type",Object)],e.prototype,"rangeController",void 0),i([s.Autowired("eventService"),r("design:type",p.EventService)],e.prototype,"eventService",void 0),i([s.PostConstruct,r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],e.prototype,"postConstruct",null),e}();t.RowDragFeature=d},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),n=this&&this.__decorate||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},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},a=this&&this.__param||function(e,t){return function(o,i){t(o,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});var l=o(0),p=o(4),u=o(6),c=o(14),d=o(272),h=o(154),f=o(9),g=o(10),y=function(e){function t(t){return e.call(this,t)||this}return r(t,e),t.prototype.setBeans=function(e){this.logger=e.create("InfiniteCache")},t.prototype.init=function(){e.prototype.init.call(this),this.getRow(0)},t.prototype.moveItemsDown=function(e,t,o){for(var i=e.getStartRow(),r=t+o,n=e.getEndRow()-1;n>=i;n--)if(!(n<r)){var s=n-o,a=this.getRow(s,!0);a?e.setRowNode(n,a):(e.setBlankRowNode(n),e.setDirty())}},t.prototype.insertItems=function(e,t,o){for(var i=e.getStartRow(),r=e.getEndRow(),n=[],s=0;s<o.length;s++){var a=t+s;if(a>=i&&a<r){var l=o[s],p=e.setNewData(a,l);n.push(p)}}return n},t.prototype.insertItemsAtIndex=function(e,t){var o=this,i=[];this.forEachBlockInReverseOrder((function(r){r.getEndRow()<=e||(o.moveItemsDown(r,e,t.length),o.insertItems(r,e,t).forEach((function(e){return i.push(e)})))})),this.isMaxRowFound()&&this.hack_setVirtualRowCount(this.getVirtualRowCount()+t.length),this.onCacheUpdated();var r={type:u.Events.EVENT_ROW_DATA_UPDATED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(r)},t.prototype.getRow=function(e,t){void 0===t&&(t=!1);var o=Math.floor(e/this.cacheParams.blockSize),i=this.getBlock(o);if(!i){if(t)return null;i=this.createBlock(o)}return i.getRow(e)},t.prototype.createBlock=function(e){var t=new d.InfiniteBlock(e,this.cacheParams);return this.getContext().wireBean(t),this.postCreateBlock(t),t},t.prototype.refreshCache=function(){this.forEachBlockInOrder((function(e){return e.setDirty()})),this.checkBlockToLoad()},n([l.Autowired("eventService"),s("design:type",p.EventService)],t.prototype,"eventService",void 0),n([l.Autowired("columnApi"),s("design:type",g.ColumnApi)],t.prototype,"columnApi",void 0),n([l.Autowired("gridApi"),s("design:type",f.GridApi)],t.prototype,"gridApi",void 0),n([a(0,l.Qualifier("loggerFactory")),s("design:type",Function),s("design:paramtypes",[c.LoggerFactory]),s("design:returntype",void 0)],t.prototype,"setBeans",null),n([l.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"init",null),t}(h.RowNodeCache);t.InfiniteCache=y},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),n=this&&this.__decorate||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},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(3),l=o(0),p=o(95),u=o(20),c=o(2),d=function(e){function t(t,o){var i=e.call(this,t,o)||this;return i.cacheParams=o,i}return r(t,e),t.prototype.createBlankRowNode=function(t){var o=e.prototype.createBlankRowNode.call(this,t);return o.uiLevel=0,this.setIndexAndTopOnRowNode(o,t),o},t.prototype.setDataAndId=function(e,t,o){c._.exists(t)?e.setDataAndId(t,o.toString()):e.setDataAndId(void 0,void 0)},t.prototype.setRowNode=function(t,o){e.prototype.setRowNode.call(this,t,o),this.setIndexAndTopOnRowNode(o,t)},t.prototype.init=function(){e.prototype.init.call(this,{context:this.getContext(),rowRenderer:this.rowRenderer})},t.prototype.getNodeIdPrefix=function(){return null},t.prototype.getRow=function(e){return this.getRowUsingLocalIndex(e)},t.prototype.setIndexAndTopOnRowNode=function(e,t){e.setRowIndex(t),e.rowTop=this.cacheParams.rowHeight*t},t.prototype.loadFromDatasource=function(){var e=this,t={startRow:this.getStartRow(),endRow:this.getEndRow(),successCallback:this.pageLoaded.bind(this,this.getVersion()),failCallback:this.pageLoadFailed.bind(this),sortModel:this.cacheParams.sortModel,filterModel:this.cacheParams.filterModel,context:this.gridOptionsWrapper.getContext()};c._.missing(this.cacheParams.datasource.getRows)?console.warn("ag-Grid: datasource is missing getRows method"):(c._.getFunctionParameters(this.cacheParams.datasource.getRows).length>1&&(console.warn("ag-grid: It looks like your paging datasource is of the old type, taking more than one parameter."),console.warn("ag-grid: From ag-grid 1.9.0, now the getRows takes one parameter. See the documentation for details.")),window.setTimeout((function(){e.cacheParams.datasource.getRows(t)}),0))},n([l.Autowired("gridOptionsWrapper"),s("design:type",a.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),n([l.Autowired("rowRenderer"),s("design:type",u.RowRenderer)],t.prototype,"rowRenderer",void 0),n([l.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"init",null),t}(p.RowNodeBlock);t.InfiniteBlock=d},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),n=this&&this.__decorate||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},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(0),l=o(3),p=o(85),u=o(20),c=o(4),d=o(7),h=o(15),f=o(6),g=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.init=function(){this.rowModel.getType()===d.Constants.ROW_MODEL_TYPE_CLIENT_SIDE&&(this.clientSideRowModel=this.rowModel),this.addDestroyableEventListener(this.eventService,f.Events.EVENT_CELL_VALUE_CHANGED,this.onCellValueChanged.bind(this))},t.prototype.onCellValueChanged=function(e){this.doChangeDetection(e.node,e.column)},t.prototype.doChangeDetection=function(e,t){if(!(this.gridOptionsWrapper.isSuppressChangeDetection()||this.clipboardService&&this.clipboardService.isPasteOperationActive())){if(this.clientSideRowModel&&!e.isRowPinned()){var o=this.gridOptionsWrapper.isAggregateOnlyChangedColumns(),i=new p.ChangedPath(o,this.clientSideRowModel.getRootNode());i.addParentNode(e.parent,[t]),this.clientSideRowModel.doAggregate(i)}this.rowRenderer.refreshCells()}},n([a.Autowired("gridOptionsWrapper"),s("design:type",l.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),n([a.Autowired("rowModel"),s("design:type",Object)],t.prototype,"rowModel",void 0),n([a.Autowired("rowRenderer"),s("design:type",u.RowRenderer)],t.prototype,"rowRenderer",void 0),n([a.Autowired("eventService"),s("design:type",c.EventService)],t.prototype,"eventService",void 0),n([a.Optional("clipboardService"),s("design:type",Object)],t.prototype,"clipboardService",void 0),n([a.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"init",null),t=n([a.Bean("changeDetectionService")],t)}(h.BeanStub);t.ChangeDetectionService=g},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),n=this&&this.__decorate||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},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(8),l=o(0),p=o(3),u=o(11),c=o(4),d=o(6),h=o(20),f=o(31),g=o(2),y=o(7),v=function(e){function t(){return e.call(this)||this}return r(t,e),t.prototype.postConstruct=function(){var e=this.gridOptionsWrapper.isEnableRtl();this.setTemplate(this.getTemplate()),this.btFirst.insertAdjacentElement("afterbegin",g._.createIconNoSpan(e?"last":"first",this.gridOptionsWrapper)),this.btPrevious.insertAdjacentElement("afterbegin",g._.createIconNoSpan(e?"next":"previous",this.gridOptionsWrapper)),this.btNext.insertAdjacentElement("afterbegin",g._.createIconNoSpan(e?"previous":"next",this.gridOptionsWrapper)),this.btLast.insertAdjacentElement("afterbegin",g._.createIconNoSpan(e?"first":"last",this.gridOptionsWrapper)),this.rowModel.getType()===y.Constants.ROW_MODEL_TYPE_SERVER_SIDE&&(this.serverSideRowModel=this.rowModel),this.gridOptionsWrapper.isPagination()&&!this.gridOptionsWrapper.isSuppressPaginationPanel()?(this.addDestroyableEventListener(this.eventService,d.Events.EVENT_PAGINATION_CHANGED,this.onPaginationChanged.bind(this)),this.addDestroyableEventListener(this.btFirst,"click",this.onBtFirst.bind(this)),this.addDestroyableEventListener(this.btLast,"click",this.onBtLast.bind(this)),this.addDestroyableEventListener(this.btNext,"click",this.onBtNext.bind(this)),this.addDestroyableEventListener(this.btPrevious,"click",this.onBtPrevious.bind(this)),this.onPaginationChanged()):this.setDisplayed(!1)},t.prototype.onPaginationChanged=function(){this.enableOrDisableButtons(),this.updateRowLabels(),this.setCurrentPageLabel(),this.setTotalLabels()},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.gridOptionsWrapper.getPaginationNumberFormatterFunc();return t?t({value:e}):g._.formatNumberCommas(e)},t.prototype.getTemplate=function(){var e=this.gridOptionsWrapper.getLocaleTextFunc(),t=e("page","Page"),o=e("to","to"),i=e("of","of");return'<div class="ag-paging-panel ag-unselectable">\n <span ref="eSummaryPanel" class="ag-paging-row-summary-panel">\n <span ref="lbFirstRowOnPage"></span> '+o+' <span ref="lbLastRowOnPage"></span> '+i+' <span ref="lbRecordCount"></span>\n </span>\n <span class="ag-paging-page-summary-panel">\n <div ref="btFirst" class="ag-paging-button">\n <button type="button">'+e("first","First")+'</button>\n </div>\n <div ref="btPrevious" class="ag-paging-button">\n <button type="button">'+e("previous","Previous")+"</button>\n </div>\n "+t+' <span ref="lbCurrent"></span> '+i+' <span ref="lbTotal"></span>\n <div ref="btNext" class="ag-paging-button">\n <button type="button">'+e("next","Next")+'</button>\n </div>\n <div ref="btLast" class="ag-paging-button">\n <button type="button">'+e("last","Last")+"</button>\n </div>\n </span>\n </div>"},t.prototype.onBtNext=function(){this.paginationProxy.goToNextPage()},t.prototype.onBtPrevious=function(){this.paginationProxy.goToPreviousPage()},t.prototype.onBtFirst=function(){this.paginationProxy.goToFirstPage()},t.prototype.onBtLast=function(){this.paginationProxy.goToLastPage()},t.prototype.enableOrDisableButtons=function(){var e=this.paginationProxy.getCurrentPage(),t=this.paginationProxy.isLastPageFound(),o=this.paginationProxy.getTotalPages(),i=0===e;g._.addOrRemoveCssClass(this.btPrevious,"ag-disabled",i),g._.addOrRemoveCssClass(this.btFirst,"ag-disabled",i);var r=this.isZeroPagesToDisplay(),n=t&&e===o-1||r;g._.addOrRemoveCssClass(this.btNext,"ag-disabled",n);var s=!t||r||e===o-1;g._.addOrRemoveCssClass(this.btLast,"ag-disabled",s)},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;this.isZeroPagesToDisplay()?(e=0,t=0):(t=(e=i*o+1)+i-1,r&&t>n&&(t=n)),this.lbFirstRowOnPage.innerHTML=this.formatNumber(e),this.serverSideRowModel&&this.serverSideRowModel.isLoading()?this.lbLastRowOnPage.innerHTML="?":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=this.paginationProxy.isLastPageFound()?this.paginationProxy.getMasterRowCount():null;if(e)this.lbTotal.innerHTML=this.formatNumber(t),this.lbRecordCount.innerHTML=this.formatNumber(o);else{var i=this.gridOptionsWrapper.getLocaleTextFunc()("more","more");this.lbTotal.innerHTML=i,this.lbRecordCount.innerHTML=i}},n([l.Autowired("gridOptionsWrapper"),s("design:type",p.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),n([l.Autowired("eventService"),s("design:type",c.EventService)],t.prototype,"eventService",void 0),n([l.Autowired("paginationProxy"),s("design:type",f.PaginationProxy)],t.prototype,"paginationProxy",void 0),n([l.Autowired("rowRenderer"),s("design:type",h.RowRenderer)],t.prototype,"rowRenderer",void 0),n([l.Autowired("rowModel"),s("design:type",Object)],t.prototype,"rowModel",void 0),n([u.RefSelector("btFirst"),s("design:type",HTMLElement)],t.prototype,"btFirst",void 0),n([u.RefSelector("btPrevious"),s("design:type",HTMLElement)],t.prototype,"btPrevious",void 0),n([u.RefSelector("btNext"),s("design:type",HTMLElement)],t.prototype,"btNext",void 0),n([u.RefSelector("btLast"),s("design:type",HTMLElement)],t.prototype,"btLast",void 0),n([u.RefSelector("lbRecordCount"),s("design:type",Object)],t.prototype,"lbRecordCount",void 0),n([u.RefSelector("lbFirstRowOnPage"),s("design:type",Object)],t.prototype,"lbFirstRowOnPage",void 0),n([u.RefSelector("lbLastRowOnPage"),s("design:type",Object)],t.prototype,"lbLastRowOnPage",void 0),n([u.RefSelector("eSummaryPanel"),s("design:type",Object)],t.prototype,"eSummaryPanel",void 0),n([u.RefSelector("lbCurrent"),s("design:type",Object)],t.prototype,"lbCurrent",void 0),n([u.RefSelector("lbTotal"),s("design:type",Object)],t.prototype,"lbTotal",void 0),n([l.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"postConstruct",null),t}(a.Component);t.PaginationComp=v},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),n=this&&this.__decorate||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},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(8),l=o(2),p=o(11),u=o(0),c=function(e){function t(o){var i=e.call(this,t.TEMPLATE)||this;return i.H=1,i.S=1,i.B=1,i.A=1,i.isSpectrumDragging=!1,i.isSpectrumHueDragging=!1,i.isSpectrumAlphaDragging=!1,i.colorChanged=!1,i.picker=o.picker,i}return r(t,e),t.prototype.postConstruct=function(){var e=this.getGui();this.initRecentColors(),this.addDestroyableEventListener(this.spectrumVal,"mousedown",this.onSpectrumDraggerDown.bind(this)),this.addDestroyableEventListener(e,"mousemove",this.onSpectrumDraggerMove.bind(this)),this.addDestroyableEventListener(this.spectrumHue,"mousedown",this.onSpectrumHueDown.bind(this)),this.addDestroyableEventListener(e,"mousemove",this.onSpectrumHueMove.bind(this)),this.addDestroyableEventListener(this.spectrumAlpha,"mousedown",this.onSpectrumAlphaDown.bind(this)),this.addDestroyableEventListener(e,"mousemove",this.onSpectrumAlphaMove.bind(this)),this.addDestroyableEventListener(document,"mouseup",this.onMouseUp.bind(this)),this.addDestroyableEventListener(this.recentColors,"click",this.onRecentColorClick.bind(this))},t.prototype.refreshSpectrumRect=function(){return this.spectrumValRect=this.spectrumVal.getBoundingClientRect()},t.prototype.refreshHueRect=function(){return this.spectrumHueRect=this.spectrumHue.getBoundingClientRect()},t.prototype.refreshAlphaRect=function(){return this.spectrumAlphaRect=this.spectrumAlpha.getBoundingClientRect()},t.prototype.onSpectrumDraggerDown=function(e){this.refreshSpectrumRect(),this.isSpectrumDragging=!0,this.moveDragger(e)},t.prototype.onSpectrumDraggerMove=function(e){this.isSpectrumDragging&&this.moveDragger(e)},t.prototype.onSpectrumHueDown=function(e){this.refreshHueRect(),this.isSpectrumHueDragging=!0,this.moveHueSlider(e)},t.prototype.onSpectrumHueMove=function(e){this.isSpectrumHueDragging&&this.moveHueSlider(e)},t.prototype.onSpectrumAlphaDown=function(e){this.refreshAlphaRect(),this.isSpectrumAlphaDragging=!0,this.moveAlphaSlider(e)},t.prototype.onSpectrumAlphaMove=function(e){this.isSpectrumAlphaDragging&&this.moveAlphaSlider(e)},t.prototype.onMouseUp=function(){this.isSpectrumDragging=!1,this.isSpectrumHueDragging=!1,this.isSpectrumAlphaDragging=!1},t.prototype.moveDragger=function(e){var t=this.spectrumValRect;if(t){var o=e.clientX-t.left,i=e.clientY-t.top;o=Math.max(o,0),o=Math.min(o,t.width),i=Math.max(i,0),i=Math.min(i,t.height),this.setSpectrumValue(o/t.width,1-i/t.height)}},t.prototype.moveHueSlider=function(e){var t=this.spectrumHueRect;if(t){var o=this.spectrumHueSlider,i=o.getBoundingClientRect(),r=e.clientX-t.left;r=Math.max(r,0),r=Math.min(r,t.width),this.H=1-r/t.width,o.style.left=r+i.width/2+"px",this.update()}},t.prototype.moveAlphaSlider=function(e){var t=this.spectrumAlphaRect;if(t){var o=this.spectrumAlphaSlider,i=o.getBoundingClientRect(),r=e.clientX-t.left;r=Math.max(r,0),r=Math.min(r,t.width),this.A=r/t.width,o.style.left=r+i.width/2+"px",this.update()}},t.prototype.update=function(){var e=l.Color.fromHSB(360*this.H,this.S,this.B,this.A),t=l.Color.fromHSB(360*this.H,1,1),o=e.toRgbaString(),i=this.picker;l.Color.fromString(i.getValue()).toRgbaString()!==o&&(this.colorChanged=!0),i.setValue(o),this.spectrumColor.style.backgroundColor=t.toRgbaString(),this.spectrumDragger.style.backgroundColor=o},t.prototype.setSpectrumValue=function(e,t){var o=this.spectrumValRect||this.refreshSpectrumRect();if(o){var i=this.spectrumDragger,r=i.getBoundingClientRect();e=Math.max(0,e),e=Math.min(1,e),t=Math.max(0,t),t=Math.min(1,t),this.S=e,this.B=t,i.style.left=e*o.width-r.width/2+"px",i.style.top=(1-t)*o.height-r.height/2+"px",this.update()}},t.prototype.initRecentColors=function(){var e=t.recentColors.map((function(e,t){return'<div class="ag-recent-color" id='+t+' style="background-color: '+e+'; width: 15px; height: 15px;" recent-color="'+e+'"></div>'}));this.recentColors.innerHTML=e.join("")},t.prototype.setValue=function(e){var t=l.Color.fromString(e),o=t.toHSB(),i=o[0],r=o[1],n=o[2];this.H=(isNaN(i)?0:i)/360,this.A=t.a;var s=this.spectrumHueRect||this.refreshHueRect(),a=this.spectrumAlphaRect||this.refreshAlphaRect();this.spectrumHueSlider.style.left=(this.H-1)*-s.width+"px",this.spectrumAlphaSlider.style.left=this.A*a.width+"px",this.setSpectrumValue(r,n)},t.prototype.onRecentColorClick=function(e){var o=e.target;if(l._.exists(o.id)){var i=parseInt(o.id,10);this.setValue(t.recentColors[i]),this.destroy()}},t.prototype.addRecentColor=function(){var e=l.Color.fromHSB(360*this.H,this.S,this.B,this.A).toRgbaString(),o=t.recentColors;this.colorChanged&&o[0]!==e&&(o=o.filter((function(t){return t!=e})),(o=[e].concat(o)).length>t.maxRecentColors&&(o=o.slice(0,t.maxRecentColors)),t.recentColors=o)},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.addRecentColor()},t.maxRecentColors=8,t.recentColors=[],t.TEMPLATE='<div class="ag-color-panel">\n <div ref="spectrumColor" class="ag-spectrum-color">\n <div class="ag-spectrum-sat ag-fill">\n <div ref="spectrumVal" class="ag-spectrum-val ag-fill">\n <div ref="spectrumDragger" class="ag-spectrum-dragger"></div>\n </div>\n </div>\n </div>\n <div class="ag-spectrum-tools">\n <div ref="spectrumHue" class="ag-spectrum-hue ag-hue-alpha">\n <div class="ag-spectrum-hue-background"></div>\n <div ref="spectrumHueSlider" class="ag-spectrum-slider"></div>\n </div>\n <div ref="spectrumAlpha" class="ag-spectrum-alpha ag-hue-alpha">\n <div class="ag-spectrum-alpha-background"></div>\n <div ref="spectrumAlphaSlider" class="ag-spectrum-slider"></div>\n </div>\n <div ref="recentColors" class="ag-recent-colors"></div>\n </div>\n </div>',n([p.RefSelector("spectrumColor"),s("design:type",HTMLElement)],t.prototype,"spectrumColor",void 0),n([p.RefSelector("spectrumVal"),s("design:type",HTMLElement)],t.prototype,"spectrumVal",void 0),n([p.RefSelector("spectrumDragger"),s("design:type",HTMLElement)],t.prototype,"spectrumDragger",void 0),n([p.RefSelector("spectrumHue"),s("design:type",HTMLElement)],t.prototype,"spectrumHue",void 0),n([p.RefSelector("spectrumHueSlider"),s("design:type",HTMLElement)],t.prototype,"spectrumHueSlider",void 0),n([p.RefSelector("spectrumAlpha"),s("design:type",HTMLElement)],t.prototype,"spectrumAlpha",void 0),n([p.RefSelector("spectrumAlphaSlider"),s("design:type",HTMLElement)],t.prototype,"spectrumAlphaSlider",void 0),n([p.RefSelector("recentColors"),s("design:type",HTMLElement)],t.prototype,"recentColors",void 0),n([u.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"postConstruct",null),t}(a.Component);t.AgColorPanel=c},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),n=this&&this.__decorate||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},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(11),l=o(0),p=o(3),u=o(39),c=o(2),d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.TEMPLATE='<div class="ag-picker-field">\n <label ref="eLabel"></label>\n <div ref="eWrapper" class="ag-wrapper">\n <%displayField% ref="eDisplayField"></%displayField%>\n <button ref="eButton" class="ag-picker-button"> </button>\n </div>\n </div>',t.displayedPicker=!1,t.isDestroyingPicker=!1,t}return r(t,e),t.prototype.postConstruct=function(){var t=this;e.prototype.postConstruct.call(this),this.addDestroyableEventListener(this.eButton,"click",(function(){t.showPicker()})),this.pickerIcon&&this.eButton.appendChild(c._.createIconNoSpan(this.pickerIcon,this.gridOptionsWrapper,null))},t.prototype.setInputWidth=function(e){return c._.setElementWidth(this.eWrapper,e),this},n([l.Autowired("gridOptionsWrapper"),s("design:type",p.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),n([a.RefSelector("eLabel"),s("design:type",HTMLElement)],t.prototype,"eLabel",void 0),n([a.RefSelector("eWrapper"),s("design:type",HTMLElement)],t.prototype,"eWrapper",void 0),n([a.RefSelector("eDisplayField"),s("design:type",Object)],t.prototype,"eDisplayField",void 0),n([a.RefSelector("eButton"),s("design:type",HTMLButtonElement)],t.prototype,"eButton",void 0),t}(u.AgAbstractField);t.AgPickerField=d},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/Object.defineProperty(t,"__esModule",{value:!0});var i=o(122),r=o(150),n=!1;t.initialiseAgGridWithWebComponents=function(){if(console.warn("ag-grid: initialiseAgGridWithWebComponents is deprecated. Please use the ag-grid-webcomponent dependency instead. "),!n){n=!0,"undefined"!=typeof document&&document.registerElement||console.error("ag-Grid: unable to find document.registerElement() function, unable to initialise ag-Grid as a Web Component");var e=Object.create(HTMLElement.prototype);i.ComponentUtil.ALL_PROPERTIES.forEach((function(t){Object.defineProperty(e,t,{set:function(e){this.__agGridSetProperty(t,e)},get:function(){return this.__agGridGetProperty(t)},enumerable:!0,configurable:!0})}));var t=e;t.__agGridSetProperty=function(e,t){this.__attributes||(this.__attributes={}),this.__attributes[e]=t;var o={};o[e]={currentValue:t},this.onChange(o)},t.onChange=function(e){this._initialised&&i.ComponentUtil.processOnChange(e,this._gridOptions,this.api,this.columnApi)},t.__agGridGetProperty=function(e){return this.__attributes||(this.__attributes={}),this.__attributes[e]},t.setGridOptions=function(e){var t=this.globalEventListener.bind(this);this._gridOptions=i.ComponentUtil.copyAttributesToGridOptions(e,this);var o={globalEventListener:t};this._agGrid=new r.Grid(this,this._gridOptions,o),this.api=e.api,this.columnApi=e.columnApi,this._initialised=!0},t.createdCallback=function(){for(var e=0;e<this.attributes.length;e++){var t=this.attributes[e];this.setPropertyFromAttribute(t)}},t.setPropertyFromAttribute=function(e){var t,o="string"==typeof(t=e.nodeName)?t.replace(/-([a-z])/g,(function(e){return e[1].toUpperCase()})):t,r=e.nodeValue;i.ComponentUtil.ALL_PROPERTIES.indexOf(o)>=0&&(this[o]=r)},t.attachedCallback=function(e){},t.detachedCallback=function(e){},t.attributeChangedCallback=function(e){var t=this.attributes[e];this.setPropertyFromAttribute(t)},t.globalEventListener=function(e,t){var o=e.toLowerCase(),i=new Event(o);i.agGridDetails=t,this.dispatchEvent(i);var r="on"+o;"function"==typeof this[r]&&this[r](i)},document.registerElement("ag-grid",{prototype:e})}}},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/Object.defineProperty(t,"__esModule",{value:!0});var i=o(2),r=function(){function e(t){var o=this;this.items=[],this.params=t,this.eGui=document.createElement("div"),this.eGui.innerHTML=e.TEMPLATE,this.eHeader=this.eGui.querySelector('[ref="tabHeader"]'),this.eBody=this.eGui.querySelector('[ref="tabBody"]'),i._.addCssClass(this.eGui,t.cssClass),t.items&&t.items.forEach((function(e){return o.addItem(e)}))}return e.prototype.setAfterAttachedParams=function(e){this.afterAttachedParams=e},e.prototype.getMinDimensions=function(){var e=this.eGui.cloneNode(!0),t=e.querySelector('[ref="tabBody"]');e.style.position="fixed",this.eGui.appendChild(e);var o=0,r=0;return this.items.forEach((function(n){i._.clearElement(t);var s=n.tabbedItem.bodyPromise.resolveNow(null,(function(e){return e.cloneNode(!0)}));null!=s&&(t.appendChild(s),o<e.offsetWidth&&(o=e.offsetWidth),r<e.offsetHeight&&(r=e.offsetHeight))})),this.eGui.removeChild(e),{height:r,width:o}},e.prototype.showFirstItem=function(){this.items.length>0&&this.showItemWrapper(this.items[0])},e.prototype.addItem=function(e){var t=document.createElement("span");t.appendChild(e.title),i._.addCssClass(t,"ag-tab"),this.eHeader.appendChild(t);var o={tabbedItem:e,eHeaderButton:t};this.items.push(o),t.addEventListener("click",this.showItemWrapper.bind(this,o))},e.prototype.showItem=function(e){var t=i._.find(this.items,(function(t){return t.tabbedItem===e}));t&&this.showItemWrapper(t)},e.prototype.showItemWrapper=function(e){var t=this;this.params.onItemClicked&&this.params.onItemClicked({item:e.tabbedItem}),this.activeItem!==e?(i._.clearElement(this.eBody),e.tabbedItem.bodyPromise.then((function(e){t.eBody.appendChild(e)})),this.activeItem&&i._.removeCssClass(this.activeItem.eHeaderButton,"ag-tab-selected"),i._.addCssClass(e.eHeaderButton,"ag-tab-selected"),this.activeItem=e,e.tabbedItem.afterAttachedCallback&&e.tabbedItem.afterAttachedCallback(this.afterAttachedParams)):i._.callIfPresent(this.params.onActiveItemClicked)},e.prototype.getGui=function(){return this.eGui},e.TEMPLATE='<div><div ref="tabHeader" class="ag-tab-header"></div><div ref="tabBody" class="ag-tab-body"></div></div>',e}();t.TabbedLayout=r},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){this.isLayoutPanel=!0,this.childPanels=[],this.eGui=document.createElement("div"),this.eGui.style.height="100%"}return e.prototype.addPanel=function(e,t){var o;e.isLayoutPanel?(this.childPanels.push(e),o=e.getGui()):o=e,t&&(o.style.height=t),this.eGui.appendChild(o)},e.prototype.getGui=function(){return this.eGui},e.prototype.doLayout=function(){for(var e=0;e<this.childPanels.length;e++)this.childPanels[e].doLayout()},e}();t.VerticalStack=i},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/Object.defineProperty(t,"__esModule",{value:!0});var i=o(2);t.simpleHttpRequest=function(e){return new i.Promise((function(t){var o=new XMLHttpRequest;o.open("GET",e.url),o.send(),o.onreadystatechange=function(){if(4==o.readyState&&200==o.status){var e=JSON.parse(o.responseText);t(e)}}}))}},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),n=this&&this.__decorate||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},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(96),l=o(0),p=o(8),u=o(11),c=function(e){function t(t){var o=e.call(this,t)||this;return o.message=t.message,o}return r(t,e),t.prototype.postConstruct=function(){var t=this,o=new d;this.addFeature(this.getContext(),o),o.setMessage(this.message),this.setBodyComponent(o),e.prototype.postConstruct.call(this),this.addDestroyableEventListener(o,"onBtOk",(function(){return t.close()}))},t}(a.AgDialog);t.MessageBox=c;var d=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return r(t,e),t.prototype.setMessage=function(e){this.eCenter.innerText=e},t.prototype.postConstruct=function(){this.addDestroyableEventListener(this.eOk,"click",this.onBtOk.bind(this))},t.prototype.onBtOk=function(){this.dispatchEvent({type:"onBtOk"})},t.TEMPLATE='<div class="ag-message-box">\n <div ref="eCenter" class="ag-message-box-content"></div>\n <div ref="eButtons" class="ag-message-box-button-bar">\n <button ref="eOk">OK</button>\n </div>\n </div>',n([u.RefSelector("eCenter"),s("design:type",HTMLElement)],t.prototype,"eCenter",void 0),n([u.RefSelector("eOk"),s("design:type",HTMLElement)],t.prototype,"eOk",void 0),n([l.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"postConstruct",null),t}(p.Component)},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/Object.defineProperty(t,"__esModule",{value:!0});var i=o(2);t.defaultGroupComparator=function(e,t,o,r,n){void 0===n&&(n=!1),console.warn("ag-Grid: Since ag-grid 11.0.0 defaultGroupComparator is not necessary. You can remove this from your colDef");var s=i._.exists(o)&&o.group,a=i._.exists(r)&&r.group,l=!s&&!a;return s&&a?i._.defaultComparator(o.key,r.key,n):l?i._.defaultComparator(e,t,n):s?1:-1}},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/Object.defineProperty(t,"__esModule",{value:!0});var i=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.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}();t.BaseComponentWrapper=i},function(e,t,o){"use strict";
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.GroupedColumn="groupedColumn",e.StackedColumn="stackedColumn",e.NormalizedColumn="normalizedColumn",e.GroupedBar="groupedBar",e.StackedBar="stackedBar",e.NormalizedBar="normalizedBar",e.Line="line",e.Scatter="scatter",e.Bubble="bubble",e.Pie="pie",e.Doughnut="doughnut",e.Area="area",e.StackedArea="stackedArea",e.NormalizedArea="normalizedArea"}(t.ChartType||(t.ChartType={}))},function(e,t,o){"use strict";var i=this&&this.__decorate||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},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var n=o(1),s=o(21),a=o(286),l=function(){function e(){this.activeCharts=[]}return e.prototype.chartCurrentRange=function(e){void 0===e&&(e=n.ChartType.GroupedColumn);var t=this.getSelectedRange();return this.chartRange(t,e)},e.prototype.chartCellRange=function(e){var t=this.rangeController.createCellRangeFromCellRangeParams(e.cellRange);if(t){if(t){return this.chartRange(t,e.chartType,!1,e.suppressChartRanges,e.chartContainer,e.aggFunc,e.processChartOptions)}}else console.warn("ag-Grid - unable to chart as no range is selected")},e.prototype.pivotChart=function(e){void 0===e&&(e=n.ChartType.GroupedColumn),this.columnController.isPivotMode()||this.columnController.setPivotMode(!0,"pivotChart");var t={columns:this.columnController.getAllDisplayedColumns().map((function(e){return e.getColId()}))},o=this.rangeController.createCellRangeFromCellRangeParams(t);if(o){return this.chartRange(o,e,!0,!0)}console.warn("ag-Grid - unable to chart as there are no columns in the grid.")},e.prototype.chartRange=function(e,t,o,i,r,s,l){var p=this;void 0===o&&(o=!1),void 0===i&&(i=!1);var u=this.gridOptionsWrapper.getCreateChartContainerFunc(),c={pivotChart:o,cellRange:e,chartType:t,insideDialog:!(r||u),suppressChartRanges:i,aggFunc:s,processChartOptions:l,height:400,width:800},d=new a.GridChartComp(c);this.context.wireBean(d);var h=this.createChartRef(d);if(r){r.appendChild(d.getGui());var f=this.environment.getTheme();f.el&&!f.el.contains(r)&&n._.addCssClass(r,f.theme)}else u?u(h):d.addEventListener(a.GridChartComp.EVENT_DESTROYED,(function(){n._.removeFromArray(p.activeCharts,h)}));return h},e.prototype.createChartRef=function(e){var t=this,o={destroyChart:function(){t.activeCharts.indexOf(o)>=0&&(e.destroy(),n._.removeFromArray(t.activeCharts,o))},chartElement:e.getGui()};return this.activeCharts.push(o),o},e.prototype.getSelectedRange=function(){var e=this.rangeController.getCellRanges();return e.length>0?e[0]:{}},e.prototype.destroyAllActiveCharts=function(){this.activeCharts.slice().forEach((function(e){return e.destroyChart()}))},i([n.Autowired("rangeController"),r("design:type",s.RangeController)],e.prototype,"rangeController",void 0),i([n.Autowired("columnController"),r("design:type",n.ColumnController)],e.prototype,"columnController",void 0),i([n.Autowired("environment"),r("design:type",n.Environment)],e.prototype,"environment",void 0),i([n.Autowired("context"),r("design:type",n.Context)],e.prototype,"context",void 0),i([n.Autowired("gridOptionsWrapper"),r("design:type",n.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([n.PreDestroy,r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],e.prototype,"destroyAllActiveCharts",null),e=i([n.Bean("chartService")],e)}();t.ChartService=l},function(e,t,o){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),n=this&&this.__decorate||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},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(1),l=o(287),p=o(159),u=o(67),c=o(321),d=o(322),h=o(323),f=o(324),g=o(325),y=o(223),v=o(55),m=o(13),C=o(165),w=o(164),_=function(e){function t(o){var i=e.call(this,t.TEMPLATE)||this;return i.params=o,i}return r(t,e),t.prototype.init=function(){var e={pivotChart:this.params.pivotChart,chartType:this.params.chartType,aggFunc:this.params.aggFunc,cellRanges:[this.params.cellRange],suppressChartRanges:this.params.suppressChartRanges,palettes:v.palettes,activePalette:0};this.model=new u.ChartModel(e),this.getContext().wireBean(this.model),this.chartController=new p.ChartController(this.model),this.getContext().wireBean(this.chartController),this.createChart(),this.params.insideDialog&&this.addDialog(),this.addResizeListener(),this.addMenu(),this.addDestroyableEventListener(this.getGui(),"focusin",this.setActiveChartCellRange.bind(this)),this.addDestroyableEventListener(this.chartController,p.ChartController.EVENT_CHART_MODEL_UPDATED,this.refresh.bind(this)),this.addDestroyableEventListener(this.chartMenu,l.ChartMenu.EVENT_DOWNLOAD_CHART,this.downloadChart.bind(this)),this.refresh()},t.prototype.createChart=function(){var e=this.params,t=e.width,o=e.height;if(this.chartProxy){var i=this.chartProxy.getChart();o=i.height,t=i.width,this.chartProxy.destroy();var r=this.eChart.querySelector("canvas");r&&this.eChart.removeChild(r)}var n=this.params.processChartOptions?this.params.processChartOptions:this.gridOptionsWrapper.getProcessChartOptionsFunc(),s=this.model.getSelectedDimension().colId!==u.ChartModel.DEFAULT_CATEGORY,a={chartType:this.model.getChartType(),processChartOptions:n,getSelectedPalette:this.getSelectedPalette.bind(this),isDarkTheme:this.environment.isThemeDark.bind(this.environment),parentElement:this.eChart,width:t,height:o,eventService:this.eventService,categorySelected:s,grouping:this.model.isGrouping(),document:this.gridOptionsWrapper.getDocument()};this.currentChartType=this.model.getChartType(),this.currentChartGroupingActive=this.model.isGrouping(),this.chartProxy=this.createChartProxy(a),this.model.setChartProxy(this.chartProxy)},t.prototype.getSelectedPalette=function(){return this.model.getPalettes()[this.model.getActivePalette()]},t.prototype.createChartProxy=function(e){switch(e.chartType){case a.ChartType.GroupedColumn:case a.ChartType.StackedColumn:case a.ChartType.NormalizedColumn:case a.ChartType.GroupedBar:case a.ChartType.StackedBar:case a.ChartType.NormalizedBar:return new c.BarChartProxy(e);case a.ChartType.Pie:return new f.PieChartProxy(e);case a.ChartType.Doughnut:return new g.DoughnutChartProxy(e);case a.ChartType.Area:case a.ChartType.StackedArea:case a.ChartType.NormalizedArea:return new d.AreaChartProxy(e);case a.ChartType.Line:return new h.LineChartProxy(e);case a.ChartType.Scatter:case a.ChartType.Bubble:return new y.ScatterChartProxy(e)}},t.prototype.addDialog=function(){var e=this,t=this.chartTranslator.translate(this.params.pivotChart?"pivotChartTitle":"rangeChartTitle");this.chartDialog=new a.AgDialog({resizable:!0,movable:!0,maximizable:!0,title:t,component:this,centered:!0,closable:!0}),this.getContext().wireBean(this.chartDialog),this.chartDialog.addEventListener(a.AgDialog.EVENT_DESTROYED,(function(){return e.destroy()}))},t.prototype.addMenu=function(){this.chartMenu=new l.ChartMenu(this.chartController),this.chartMenu.setParentComponent(this),this.getContext().wireBean(this.chartMenu),this.eChartComponentsWrapper.appendChild(this.chartMenu.getGui())},t.prototype.refresh=function(){this.shouldRecreateChart()&&this.createChart(),this.updateChart()},t.prototype.shouldRecreateChart=function(){var e=this.model.getChartType()!==this.currentChartType,t=this.currentChartGroupingActive!==this.model.isGrouping();if(e||t)return!0;if(this.isXYChart()){var o=!this.chartController.isDefaultCategorySelected(),i=this.chartProxy.getChart(),r=o&&i.xAxis instanceof w.NumberAxis,n=!o&&i.xAxis instanceof C.CategoryAxis;return r||n}return!1},t.prototype.getChartComponentsWrapper=function(){return this.eChartComponentsWrapper},t.prototype.getDockedContainer=function(){return this.eDockedContainer},t.prototype.slideDockedOut=function(e){this.eDockedContainer.style.minWidth=e+"px"},t.prototype.slideDockedIn=function(){this.eDockedContainer.style.minWidth="0"},t.prototype.getCurrentChartType=function(){return this.currentChartType},t.prototype.updateChart=function(){var e=this.model,t=this.chartProxy,o=e.getSelectedValueColState().map((function(e){return{colId:e.colId,displayName:e.displayName}})),i=e.getData();if(!this.handleEmptyChart(i,o)){var r=e.getSelectedDimension(),n={data:i,category:{id:r.colId,name:r.displayName},fields:o};t.update(n)}},t.prototype.handleEmptyChart=function(e,t){var o=this.chartProxy.getChart().parent,i=this.model.isPivotChart()&&!this.model.isPivotMode(),r=1;this.chartController.isActiveXYChart()&&(r=this.model.getChartType()===a.ChartType.Bubble?3:2);var n=t.length<r||0===e.length;return o&&a._.addOrRemoveCssClass(o,"ag-chart-empty",i||n),i?(this.eEmpty.innerText=this.chartTranslator.translate("pivotChartRequiresPivotMode"),!0):!!n&&(this.eEmpty.innerText=this.chartTranslator.translate("noDataToChart"),!0)},t.prototype.downloadChart=function(){var e=this.chartProxy.getChart(),t=e.title?e.title.text:"chart";e.scene.download(t)},t.prototype.refreshCanvasSize=function(){var e=this.eChart,t=this.chartProxy.getChart();t.height=a._.getInnerHeight(e),t.width=a._.getInnerWidth(e)},t.prototype.addResizeListener=function(){var e=this,t=this.getGui(),o=this.resizeObserverService.observeResize(this.eChart,(function(){t&&t.offsetParent?e.refreshCanvasSize():o()}),5)},t.prototype.setActiveChartCellRange=function(e){this.getGui().contains(e.relatedTarget)||this.chartController.setChartRange()},t.prototype.isXYChart=function(){return[a.ChartType.Scatter,a.ChartType.Bubble].indexOf(this.model.getChartType())>-1},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.chartController&&this.chartController.destroy(),this.chartProxy&&this.chartProxy.destroy(),this.chartMenu&&this.chartMenu.destroy(),this.chartDialog&&this.chartDialog.isAlive()&&this.chartDialog.destroy();var t=this.getGui();a._.clearElement(t),a._.removeFromParent(t)},t.TEMPLATE='<div class="ag-chart" tabindex="-1">\n <div ref="eChartComponentsWrapper" tabindex="-1" class="ag-chart-components-wrapper">\n <div ref="eChart" class="ag-chart-canvas-wrapper">\n <div ref="eEmpty" class="ag-chart-empty-text ag-unselectable"></div>\n </div>\n </div>\n <div ref="eDockedContainer" class="ag-chart-docked-container"></div>\n </div>',n([a.RefSelector("eChart"),s("design:type",HTMLElement)],t.prototype,"eChart",void 0),n([a.RefSelector("eChartComponentsWrapper"),s("design:type",HTMLElement)],t.prototype,"eChartComponentsWrapper",void 0),n([a.RefSelector("eDockedContainer"),s("design:type",HTMLElement)],t.prototype,"eDockedContainer",void 0),n([a.RefSelector("eEmpty"),s("design:type",HTMLElement)],t.prototype,"eEmpty",void 0),n([a.Autowired("resizeObserverService"),s("design:type",a.ResizeObserverService)],t.prototype,"resizeObserverService",void 0),n([a.Autowired("gridOptionsWrapper"),s("design:type",a.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),n([a.Autowired("environment"),s("design:type",a.Environment)],t.prototype,"environment",void 0),n([a.Autowired("chartTranslator"),s("design:type",m.ChartTranslator)],t.prototype,"chartTranslator",void 0),n([a.Autowired("eventService"),s("design:type",a.EventService)],t.prototype,"eventService",void 0),n([a.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"init",null),t}(a.Component);t.GridChartComp=_},function(e,t,o){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),n=this&&this.__decorate||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},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(1),l=o(288),p=function(e){function t(o){var i=e.call(this,t.TEMPLATE)||this;return i.buttons={chartSettings:["menu",function(){return i.showMenu("chartSettings")}],chartData:["menu",function(){return i.showMenu("chartData")}],chartFormat:["menu",function(){return i.showMenu("chartFormat")}],chartUnlink:["linked",function(e){return i.toggleDetached(e)}],chartDownload:["save",function(){return i.saveChart()}]},i.tabs=[],i.chartController=o,i}return r(t,e),t.prototype.postConstruct=function(){this.createButtons()},t.prototype.getToolbarOptions=function(){var e=this,t=["chartSettings","chartData","chartFormat","chartUnlink","chartDownload"],o=this.gridOptionsWrapper.getChartToolbarItemsFunc();o&&(t=o({api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),defaultItems:t}).filter((function(t){return!!e.buttons[t]||(console.warn("ag-Grid: '"+t+" is not a valid Chart Toolbar Option"),!1)})));this.chartController.isPivotChart()&&(t=t.filter((function(e){return"chartData"!==e})));var i=["chartUnlink","chartDownload"];return this.tabs=t.filter((function(e){return-1===i.indexOf(e)})),t.filter((function(t){return-1!==i.indexOf(t)||e.tabs.length&&t===e.tabs[0]}))},t.prototype.toggleDetached=function(e){var t=e.target,o=a._.containsClass(t,"ag-icon-linked");a._.addOrRemoveCssClass(t,"ag-icon-linked",!o),a._.addOrRemoveCssClass(t,"ag-icon-unlinked",o),this.chartController.detachChartRange()},t.prototype.createButtons=function(){var e=this;this.getToolbarOptions().forEach((function(t){var o=e.buttons[t],i=o[0],r=o[1],n=a._.createIconNoSpan(i,e.gridOptionsWrapper,void 0,!0);e.addDestroyableEventListener(n,"click",r),e.getGui().appendChild(n)}))},t.prototype.saveChart=function(){var e={type:t.EVENT_DOWNLOAD_CHART};this.dispatchEvent(e)},t.prototype.createMenu=function(e){var t=this,o=this.getParentComponent(),i=o.getDockedContainer(),r=this.getContext(),n=this.menuPanel=new a.AgPanel({minWidth:220,width:220,height:"100%",closable:!0,hideTitleBar:!0});return r.wireBean(this.menuPanel),n.setParentComponent(this),i.appendChild(n.getGui()),this.tabbedMenu=new l.TabbedChartMenu({controller:this.chartController,type:o.getCurrentChartType(),panels:this.tabs}),r.wireBean(this.tabbedMenu),this.addDestroyableEventListener(this.menuPanel,a.Component.EVENT_DESTROYED,(function(){t.tabbedMenu.destroy()})),new a.Promise((function(i){window.setTimeout((function(){n.setBodyComponent(t.tabbedMenu),t.tabbedMenu.showTab(e),t.addDestroyableEventListener(o.getChartComponentsWrapper(),"click",(function(){a._.containsClass(o.getGui(),"ag-has-menu")&&t.hideMenu()})),i(n)}),100)}))},t.prototype.slideDockedContainer=function(){var e=this;this.getParentComponent().slideDockedOut(this.menuPanel.getWidth()),window.setTimeout((function(){a._.addCssClass(e.getParentComponent().getGui(),"ag-has-menu")}),500)},t.prototype.showMenu=function(e){var t=this,o=this.tabs.indexOf(e);this.menuPanel?this.slideDockedContainer():this.createMenu(o).then((function(){t.slideDockedContainer()}))},t.prototype.hideMenu=function(){this.getParentComponent().slideDockedIn(),a._.removeCssClass(this.getParentComponent().getGui(),"ag-has-menu")},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.menuPanel&&this.menuPanel.isAlive()&&this.menuPanel.destroy()},t.EVENT_DOWNLOAD_CHART="downloadChart",t.TEMPLATE='<div class="ag-chart-menu"></div>',n([a.Autowired("gridOptionsWrapper"),s("design:type",a.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),n([a.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"postConstruct",null),t}(a.Component);t.ChartMenu=p},function(e,t,o){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),n=this&&this.__decorate||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},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(1),l=o(289),p=o(291),u=o(318),c=o(13),d=function(e){function t(t){var o=e.call(this)||this;o.tabs=[],o.chartIcons={};var i=t.controller,r=t.type,n=t.panels;return o.chartController=i,o.currentChartType=r,o.panels=n,o}return r(t,e),t.prototype.init=function(){var e=this;this.panels.forEach((function(t){var o=t.replace("chart","").toLowerCase(),i=e.createTab(t,o,e.getPanelClass(o)),r=i.comp,n=i.tab;e.tabs.push(n),e.addDestroyFunc((function(){return r.destroy()}))})),this.tabbedLayout=new a.TabbedLayout({items:this.tabs,cssClass:"ag-chart-tabbed-menu"})},t.prototype.createTab=function(e,t,o){var i=document.createElement("div");a._.addCssClass(i,"ag-chart-"+t);var r=new o(this.chartController);this.getContext().wireBean(r),i.appendChild(r.getGui());var n=document.createElement("div");return n.innerText=this.chartTranslator.translate(t),{comp:r,tab:{title:n,bodyPromise:a.Promise.resolve(i),name:e}}},t.prototype.getMinDimensions=function(){return this.tabbedLayout.getMinDimensions()},t.prototype.updateCurrentChartType=function(e){a._.removeCssClass(this.chartIcons[this.currentChartType],"ag-selected"),this.currentChartType=e,a._.addCssClass(this.chartIcons[e],"ag-selected")},t.prototype.showTab=function(e){var t=this.tabs[e];this.tabbedLayout.showItem(t)},t.prototype.getGui=function(){return this.tabbedLayout&&this.tabbedLayout.getGui()},t.prototype.destroy=function(){this.parentComponent&&this.parentComponent.isAlive()&&this.parentComponent.destroy(),e.prototype.destroy.call(this)},t.prototype.getPanelClass=function(e){var o=e===t.TAB_DATA,i=e===t.TAB_FORMAT;return o?l.ChartDataPanel:i?p.ChartFormattingPanel:u.ChartSettingsPanel},t.EVENT_TAB_SELECTED="tabSelected",t.TAB_MAIN="settings",t.TAB_DATA="data",t.TAB_FORMAT="format",n([a.Autowired("chartTranslator"),s("design:type",c.ChartTranslator)],t.prototype,"chartTranslator",void 0),n([a.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"init",null),t}(a.Component);t.TabbedChartMenu=d},function(e,t,o){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),n=this&&this.__decorate||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},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(1),l=o(159),p=o(13),u=function(e){function t(o){var i=e.call(this,t.TEMPLATE)||this;return i.columnComps={},i.dimensionComps=[],i.chartController=o,i}return r(t,e),t.prototype.init=function(){this.createDataGroupElements(),this.addDestroyableEventListener(this.chartController,l.ChartController.EVENT_CHART_MODEL_UPDATED,this.createDataGroupElements.bind(this))},t.prototype.createDataGroupElements=function(){var e=this;this.destroyColumnComps();var t=this.getGui(),o=this.chartController.getColStateForMenu();[o.dimensionCols,o.valueCols].forEach((function(o,i){var r=0===i,n=r?"categories":e.chartController.isActiveXYChart()?"xyValues":"series",s=new a.AgGroupComponent({title:e.chartTranslator.translate(n),enabled:!0,suppressEnabledCheckbox:!0,suppressOpenCloseIcons:!1});e.getContext().wireBean(s),o.forEach(e.getColumnStateMapper(r,s));var l=document.createElement("div");l.appendChild(s.getGui()),t.appendChild(l)}))},t.prototype.getColumnStateMapper=function(e,t){var o=this;return function(i){var r=e?new a.AgRadioButton:new a.AgCheckbox;o.getContext().wireBean(r),r.setLabel(a._.escape(i.displayName)),r.setValue(i.selected),o.columnComps[i.colId]=r,e&&(r.setInputName("chartDimension"+o.getCompId()),o.dimensionComps.push(r)),o.addDestroyableEventListener(r,a.AgAbstractField.EVENT_CHANGED,(function(){i.selected=r.getValue(),o.chartController.updateForMenuChange(i)})),t.addItem(r)}},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.destroyColumnComps()},t.prototype.destroyColumnComps=function(){a._.clearElement(this.getGui()),this.columnComps&&a._.iterateObject(this.columnComps,(function(e,t){return t.destroy()})),this.columnComps={}},t.TEMPLATE='<div class="ag-chart-data-wrapper"></div>',n([a.Autowired("chartTranslator"),s("design:type",p.ChartTranslator)],t.prototype,"chartTranslator",void 0),n([a.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"init",null),t}(a.Component);t.ChartDataPanel=u},function(e,t,o){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),n=this&&this.__decorate||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},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(1),l=o(68),p=o(67),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.getData=function(e){var t=this.extractRowsFromGridRowModel(e);return t.data=this.aggregateRowsByDimension(e,t.data),t},t.prototype.extractRowsFromGridRowModel=function(e){for(var t=this,o=[],i={},r={},n={},s=this.gridRowModel.getRowCount()-1,a=(e.endRow>0?Math.min(e.endRow,s):s)-e.startRow+1,l=function(s){var a={},l=u.gridRowModel.getRow(s+e.startRow);e.dimensionCols.forEach((function(o){var i=o.colId,u=t.columnController.getGridColumn(i);if(u){var c=t.valueService.getValue(u,l),d=c&&c.toString?c.toString():"";if(e.grouping){var h=t.getGroupLabels(l,[String(d)]);e.multiCategories?a[i]={labels:h,toString:function(){return h[0]}}:a[i]=h.slice().reverse().join(" - "),l.group&&(r[h.toString()]=s);var f=h.slice(1,h.length).toString();f&&(n[f]=r[f])}else a[i]=d}else a[p.ChartModel.DEFAULT_CATEGORY]=(s+1).toString()})),e.valueCols.forEach((function(e){var o=[],r=e.getColDef().pivotKeys;r&&(o=r.slice());var n=e.getColDef().headerName;n&&o.push(n),o.length>0&&(i[e.getId()]=o),a[e.getId()]=t.valueService.getValue(e,l)})),o.push(a)},u=this,c=0;c<a;c++)l(c);if(e.grouping){var d=Object.keys(n).map((function(e){return n[e]}));o=o.filter((function(e,t){return d.indexOf(t)<0}))}return{data:o,columnNames:i}},t.prototype.aggregateRowsByDimension=function(e,t){var o=this,i=e.dimensionCols;if(!e.aggFunc||0===i.length)return t;var r=a._.last(i),n=r&&r.colId,s={},l=[];return t.forEach((function(e){var t=s;i.forEach((function(o){var r=o.colId,s=e[r];if(r===n){var a=t[s];a||(a={__children:[]},i.forEach((function(t){var o=t.colId;a[o]=e[o]})),t[s]=a,l.push(a)),a.__children.push(e)}else t[s]||(t[s]={}),t=t[s]}))})),l.forEach((function(t){e.valueCols.forEach((function(i){var r=[];t.__children.forEach((function(e){r.push(e[i.getId()])}));var n=o.aggregationStage.aggregateValues(r,e.aggFunc);void 0!==n.value?t[i.getId()]=n.value:t[i.getId()]=n}))})),l},t.prototype.getGroupLabels=function(e,t){if(0===e.level)return t;var o=e.parent;return t.push(o.key),this.getGroupLabels(o,t)},n([a.Autowired("rowModel"),s("design:type",Object)],t.prototype,"gridRowModel",void 0),n([a.Autowired("valueService"),s("design:type",a.ValueService)],t.prototype,"valueService",void 0),n([a.Autowired("aggregationStage"),s("design:type",l.AggregationStage)],t.prototype,"aggregationStage",void 0),n([a.Autowired("columnController"),s("design:type",a.ColumnController)],t.prototype,"columnController",void 0),t}(a.BeanStub);t.ChartDatasource=u},function(e,t,o){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),n=this&&this.__decorate||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},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(1),l=o(159),p=o(292),u=o(293),c=o(294),d=o(296),h=o(312),f=o(314),g=o(316),y=o(317),v=function(e){function t(t){var o=e.call(this)||this;return o.activePanels=[],o.chartController=t,o}return r(t,e),t.prototype.init=function(){this.setTemplate(t.TEMPLATE),this.createFormatPanel(),this.addDestroyableEventListener(this.chartController,l.ChartController.EVENT_CHART_MODEL_UPDATED,this.createFormatPanel.bind(this))},t.prototype.createFormatPanel=function(){this.destroyActivePanels(),this.addComponent(new f.ChartPanel(this.chartController)),this.addComponent(new p.LegendPanel(this.chartController));var e=this.chartController.getChartType();this.isBarChart(e)?(this.addComponent(new c.AxisPanel(this.chartController)),this.addComponent(new u.BarSeriesPanel(this.chartController))):e===a.ChartType.Pie||e===a.ChartType.Doughnut?this.addComponent(new h.PieSeriesPanel(this.chartController)):e===a.ChartType.Line?(this.addComponent(new c.AxisPanel(this.chartController)),this.addComponent(new d.LineSeriesPanel(this.chartController))):e===a.ChartType.Scatter||e===a.ChartType.Bubble?(this.addComponent(new c.AxisPanel(this.chartController)),this.addComponent(new y.ScatterSeriesPanel(this.chartController))):e===a.ChartType.Area||e===a.ChartType.StackedArea||e===a.ChartType.NormalizedArea?(this.addComponent(new c.AxisPanel(this.chartController)),this.addComponent(new g.AreaSeriesPanel(this.chartController))):console.warn("ag-Grid: ChartFormattingPanel - unexpected chart type index: "+e+" supplied")},t.prototype.isBarChart=function(e){return[a.ChartType.GroupedColumn,a.ChartType.StackedColumn,a.ChartType.NormalizedColumn,a.ChartType.GroupedBar,a.ChartType.StackedBar,a.ChartType.NormalizedBar].indexOf(e)>-1},t.prototype.addComponent=function(e){this.getContext().wireBean(e),this.getGui().appendChild(e.getGui()),this.activePanels.push(e)},t.prototype.destroyActivePanels=function(){this.activePanels.forEach((function(e){a._.removeFromParent(e.getGui()),e.destroy()}))},t.prototype.destroy=function(){this.destroyActivePanels(),e.prototype.destroy.call(this)},t.TEMPLATE='<div class="ag-chart-format-wrapper"></div>',n([a.RefSelector("formatPanelWrapper"),s("design:type",HTMLElement)],t.prototype,"formatPanelWrapper",void 0),n([a.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"init",null),t}(a.Component);t.ChartFormattingPanel=v},function(e,t,o){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),n=this&&this.__decorate||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},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(1),l=o(71),p=o(13),u=function(e){function t(t){var o=e.call(this)||this;return o.activePanels=[],o.chartController=t,o.chartProxy=o.chartController.getChartProxy(),o}return r(t,e),t.prototype.init=function(){this.setTemplate(t.TEMPLATE),this.initLegendGroup(),this.initLegendPosition(),this.initLegendPadding(),this.initLegendItems(),this.initLabelPanel()},t.prototype.initLegendGroup=function(){var e=this;this.legendGroup.setTitle(this.chartTranslator.translate("legend")).hideEnabledCheckbox(!1).setEnabled(this.chartProxy.getLegendEnabled()).toggleGroupExpand(!1).onEnableChange((function(t){e.chartProxy.setLegendProperty("enabled",t),e.legendGroup.toggleGroupExpand(!0)}))},t.prototype.initLegendPosition=function(){var e=this,t=this.chartController.getChartProxy();this.legendPositionSelect.setLabel(this.chartTranslator.translate("position")).setLabelWidth("flex").setInputWidth(80).addOptions(["top","right","bottom","left"].map((function(t){return{value:t,text:e.chartTranslator.translate(t)}}))).setValue(t.getLegendPosition()).onValueChange((function(e){return t.setLegendPosition(e)}))},t.prototype.initLegendPadding=function(){var e=this;this.legendPaddingSlider.setLabel(this.chartTranslator.translate("padding")).setValue(this.chartProxy.getLegendPadding()).setTextFieldWidth(45).setMaxValue(200).onValueChange((function(t){return e.chartProxy.setLegendPadding(t)}))},t.prototype.initLegendItems=function(){var e=this,t=function(t,o,i,r){i.setLabel(e.chartTranslator.translate(o)).setValue(e.chartProxy.getLegendProperty(t)).setMaxValue(r).setTextFieldWidth(45).onValueChange((function(o){return e.chartProxy.setLegendProperty(t,o)}))};t("markerSize","markerSize",this.markerSizeSlider,40),t("markerStrokeWidth","markerStroke",this.markerStrokeSlider,10),t("markerPadding","markerPadding",this.markerPaddingSlider,200),t("itemPaddingX","itemPaddingX",this.itemPaddingXSlider,50),t("itemPaddingY","itemPaddingY",this.itemPaddingYSlider,50)},t.prototype.initLabelPanel=function(){var e=this,t={enabled:!0,suppressEnabledCheckbox:!0,initialFont:{family:this.chartProxy.getLegendProperty("labelFontFamily"),style:this.chartProxy.getLegendProperty("labelFontStyle"),weight:this.chartProxy.getLegendProperty("labelFontWeight"),size:parseInt(this.chartProxy.getLegendProperty("labelFontSize")),color:this.chartProxy.getLegendProperty("labelColor")},setFont:function(t){t.family&&e.chartProxy.setLegendProperty("labelFontFamily",t.family),t.weight&&e.chartProxy.setLegendProperty("labelFontWeight",t.weight),t.size&&e.chartProxy.setLegendProperty("labelFontSize",t.size),t.color&&e.chartProxy.setLegendProperty("labelColor",t.color)}},o=new l.LabelPanel(t);this.getContext().wireBean(o),this.legendGroup.addItem(o),this.activePanels.push(o)},t.prototype.destroyActivePanels=function(){this.activePanels.forEach((function(e){a._.removeFromParent(e.getGui()),e.destroy()}))},t.prototype.destroy=function(){this.destroyActivePanels(),e.prototype.destroy.call(this)},t.TEMPLATE='<div> \n <ag-group-component ref="legendGroup">\n <ag-select ref="legendPositionSelect"></ag-select>\n <ag-slider ref="legendPaddingSlider"></ag-slider>\n <ag-slider ref="markerSizeSlider"></ag-slider>\n <ag-slider ref="markerStrokeSlider"></ag-slider>\n <ag-slider ref="markerPaddingSlider"></ag-slider>\n <ag-slider ref="itemPaddingXSlider"></ag-slider>\n <ag-slider ref="itemPaddingYSlider"></ag-slider>\n </ag-group-component>\n </div>',n([a.RefSelector("legendGroup"),s("design:type",a.AgGroupComponent)],t.prototype,"legendGroup",void 0),n([a.RefSelector("legendPositionSelect"),s("design:type",a.AgSelect)],t.prototype,"legendPositionSelect",void 0),n([a.RefSelector("legendPaddingSlider"),s("design:type",a.AgSlider)],t.prototype,"legendPaddingSlider",void 0),n([a.RefSelector("markerSizeSlider"),s("design:type",a.AgSlider)],t.prototype,"markerSizeSlider",void 0),n([a.RefSelector("markerStrokeSlider"),s("design:type",a.AgSlider)],t.prototype,"markerStrokeSlider",void 0),n([a.RefSelector("markerPaddingSlider"),s("design:type",a.AgSlider)],t.prototype,"markerPaddingSlider",void 0),n([a.RefSelector("itemPaddingXSlider"),s("design:type",a.AgSlider)],t.prototype,"itemPaddingXSlider",void 0),n([a.RefSelector("itemPaddingYSlider"),s("design:type",a.AgSlider)],t.prototype,"itemPaddingYSlider",void 0),n([a.Autowired("chartTranslator"),s("design:type",p.ChartTranslator)],t.prototype,"chartTranslator",void 0),n([a.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"init",null),t}(a.Component);t.LegendPanel=u},function(e,t,o){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),n=this&&this.__decorate||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},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(1),l=o(160),p=o(71),u=o(13),c=function(e){function t(t){var o=e.call(this)||this;return o.activePanels=[],o.chartController=t,o.chartProxy=o.chartController.getChartProxy(),o}return r(t,e),t.prototype.init=function(){this.setTemplate(t.TEMPLATE),this.seriesGroup.setTitle(this.chartTranslator.translate("series")).toggleGroupExpand(!1).hideEnabledCheckbox(!0),this.initSeriesTooltips(),this.initSeriesStrokeWidth(),this.initOpacity(),this.initLabelPanel(),this.initShadowPanel()},t.prototype.initSeriesTooltips=function(){var e=this;this.seriesTooltipsToggle.setLabel(this.chartTranslator.translate("tooltips")).setLabelAlignment("left").setLabelWidth("flex").setInputWidth(40).setValue(this.chartProxy.getTooltipsEnabled()).onValueChange((function(t){return e.chartProxy.setSeriesProperty("tooltipEnabled",t)}))},t.prototype.initSeriesStrokeWidth=function(){var e=this;this.seriesStrokeWidthSlider.setLabel(this.chartTranslator.translate("strokeWidth")).setMaxValue(10).setTextFieldWidth(45).setValue(this.chartProxy.getSeriesProperty("strokeWidth")).onValueChange((function(t){return e.chartProxy.setSeriesProperty("strokeWidth",t)}))},t.prototype.initOpacity=function(){var e=this;this.seriesLineOpacitySlider.setLabel(this.chartTranslator.translate("strokeOpacity")).setStep(.05).setMaxValue(1).setTextFieldWidth(45).setValue(this.chartProxy.getSeriesProperty("strokeOpacity")).onValueChange((function(t){return e.chartProxy.setSeriesProperty("strokeOpacity",t)})),this.seriesFillOpacitySlider.setLabel(this.chartTranslator.translate("fillOpacity")).setStep(.05).setMaxValue(1).setTextFieldWidth(45).setValue(this.chartProxy.getSeriesProperty("fillOpacity")).onValueChange((function(t){return e.chartProxy.setSeriesProperty("fillOpacity",t)}))},t.prototype.initLabelPanel=function(){var e=this,t={family:this.chartProxy.getSeriesProperty("labelFontFamily"),style:this.chartProxy.getSeriesProperty("labelFontStyle"),weight:this.chartProxy.getSeriesProperty("labelFontWeight"),size:parseInt(this.chartProxy.getSeriesProperty("labelFontSize")),color:this.chartProxy.getSeriesProperty("labelColor")},o={enabled:this.chartProxy.getLabelEnabled(),setEnabled:function(t){return e.chartProxy.setSeriesProperty("labelEnabled",t)},suppressEnabledCheckbox:!1,initialFont:t,setFont:function(t){t.family&&e.chartProxy.setSeriesProperty("labelFontFamily",t.family),t.weight&&e.chartProxy.setSeriesProperty("labelFontWeight",t.weight),t.size&&e.chartProxy.setSeriesProperty("labelFontSize",t.size),t.color&&e.chartProxy.setSeriesProperty("labelColor",t.color)}},i=new p.LabelPanel(o);this.getContext().wireBean(i),this.activePanels.push(i),this.seriesGroup.addItem(i)},t.prototype.initShadowPanel=function(){var e=new l.ShadowPanel(this.chartProxy);this.getContext().wireBean(e),this.seriesGroup.addItem(e),this.activePanels.push(e)},t.prototype.destroyActivePanels=function(){this.activePanels.forEach((function(e){a._.removeFromParent(e.getGui()),e.destroy()}))},t.prototype.destroy=function(){this.destroyActivePanels(),e.prototype.destroy.call(this)},t.TEMPLATE='<div> \n <ag-group-component ref="seriesGroup">\n <ag-toggle-button ref="seriesTooltipsToggle"></ag-toggle-button>\n <ag-slider ref="seriesStrokeWidthSlider"></ag-slider>\n <ag-slider ref="seriesLineOpacitySlider"></ag-slider>\n <ag-slider ref="seriesFillOpacitySlider"></ag-slider>\n </ag-group-component>\n </div>',n([a.RefSelector("seriesGroup"),s("design:type",a.AgGroupComponent)],t.prototype,"seriesGroup",void 0),n([a.RefSelector("seriesTooltipsToggle"),s("design:type",a.AgToggleButton)],t.prototype,"seriesTooltipsToggle",void 0),n([a.RefSelector("seriesStrokeWidthSlider"),s("design:type",a.AgSlider)],t.prototype,"seriesStrokeWidthSlider",void 0),n([a.RefSelector("seriesLineOpacitySlider"),s("design:type",a.AgSlider)],t.prototype,"seriesLineOpacitySlider",void 0),n([a.RefSelector("seriesFillOpacitySlider"),s("design:type",a.AgSlider)],t.prototype,"seriesFillOpacitySlider",void 0),n([a.Autowired("chartTranslator"),s("design:type",u.ChartTranslator)],t.prototype,"chartTranslator",void 0),n([a.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"init",null),t}(a.Component);t.BarSeriesPanel=c},function(e,t,o){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),n=this&&this.__decorate||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},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(1),l=o(295),p=o(71),u=o(13),c=function(e){function t(t){var o=e.call(this)||this;return o.activePanels=[],o.chartController=t,o.chartProxy=t.getChartProxy(),o}return r(t,e),t.prototype.init=function(){this.setTemplate(t.TEMPLATE),this.initAxis(),this.initAxisTicks(),this.initAxisLabels()},t.prototype.initAxis=function(){var e=this;this.axisGroup.setTitle(this.chartTranslator.translate("axis")).toggleGroupExpand(!1).hideEnabledCheckbox(!0),this.axisColorInput.setLabel(this.chartTranslator.translate("color")).setLabelWidth("flex").setInputWidth(45).setValue(this.chartProxy.getCommonAxisProperty("lineColor")).onValueChange((function(t){return e.chartProxy.setCommonAxisProperty("lineColor",t)})),this.axisLineWidthSlider.setLabel(this.chartTranslator.translate("thickness")).setMaxValue(10).setTextFieldWidth(45).setValue(this.chartProxy.getCommonAxisProperty("lineWidth")).onValueChange((function(t){return e.chartProxy.setCommonAxisProperty("lineWidth",t)}))},t.prototype.initAxisTicks=function(){var e=new l.AxisTicksPanel(this.chartController);this.getContext().wireBean(e),this.axisGroup.addItem(e),this.activePanels.push(e)},t.prototype.initAxisLabels=function(){var e=this,t={enabled:!0,suppressEnabledCheckbox:!0,initialFont:{family:this.chartProxy.getCommonAxisProperty("labelFontFamily"),style:this.chartProxy.getCommonAxisProperty("labelFontStyle"),weight:this.chartProxy.getCommonAxisProperty("labelFontWeight"),size:parseInt(this.chartProxy.getCommonAxisProperty("labelFontSize")),color:this.chartProxy.getCommonAxisProperty("labelColor")},setFont:function(t){t.family&&e.chartProxy.setCommonAxisProperty("labelFontFamily",t.family),t.weight&&e.chartProxy.setCommonAxisProperty("labelFontWeight",t.weight),t.size&&e.chartProxy.setCommonAxisProperty("labelFontSize",t.size),t.color&&e.chartProxy.setCommonAxisProperty("labelColor",t.color),e.chartProxy.getChart().performLayout()}},o=new p.LabelPanel(t);this.getContext().wireBean(o),this.axisGroup.addItem(o),this.activePanels.push(o),this.addAdditionalLabelComps(o)},t.prototype.addAdditionalLabelComps=function(e){var t=this,o=function(o,i,r){var n=(new a.AgAngleSelect).setLabel(o).setLabelWidth("flex").setValue(i).onValueChange(r);t.getContext().wireBean(n),e.addCompToPanel(n)},i=String.fromCharCode(176);o(this.chartTranslator.translate("xRotation")+" "+i,this.chartProxy.getXRotation(),(function(e){return t.chartProxy.setXRotation(e)}));o(this.chartTranslator.translate("yRotation")+" "+i,this.chartProxy.getYRotation(),(function(e){return t.chartProxy.setYRotation(e)}))},t.prototype.destroyActivePanels=function(){this.activePanels.forEach((function(e){a._.removeFromParent(e.getGui()),e.destroy()}))},t.prototype.destroy=function(){this.destroyActivePanels(),e.prototype.destroy.call(this)},t.TEMPLATE='<div>\n <ag-group-component ref="axisGroup">\n <ag-color-picker ref="axisColorInput"></ag-color-picker>\n <ag-slider ref="axisLineWidthSlider"></ag-slider>\n </ag-group-component>\n </div>',n([a.RefSelector("axisGroup"),s("design:type",a.AgGroupComponent)],t.prototype,"axisGroup",void 0),n([a.RefSelector("axisLineWidthSlider"),s("design:type",a.AgSlider)],t.prototype,"axisLineWidthSlider",void 0),n([a.RefSelector("axisColorInput"),s("design:type",a.AgColorPicker)],t.prototype,"axisColorInput",void 0),n([a.Autowired("chartTranslator"),s("design:type",u.ChartTranslator)],t.prototype,"chartTranslator",void 0),n([a.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"init",null),t}(a.Component);t.AxisPanel=c},function(e,t,o){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),n=this&&this.__decorate||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},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(1),l=o(13),p=function(e){function t(t){var o=e.call(this)||this;return o.chartProxy=t.getChartProxy(),o}return r(t,e),t.prototype.init=function(){this.setTemplate(t.TEMPLATE),this.initAxisTicks()},t.prototype.initAxisTicks=function(){var e=this;this.axisTicksGroup.setTitle(this.chartTranslator.translate("ticks")).hideOpenCloseIcons(!0).hideEnabledCheckbox(!0),this.axisTicksColorPicker.setLabel(this.chartTranslator.translate("color")).setLabelWidth("flex").setInputWidth(45).setValue(this.chartProxy.getCommonAxisProperty("tickColor")).onValueChange((function(t){return e.chartProxy.setCommonAxisProperty("tickColor",t)}));var t=function(t,o,i,r){o.setLabel(i).setValue(e.chartProxy.getCommonAxisProperty(t)).setMaxValue(r).setTextFieldWidth(45).onValueChange((function(o){return e.chartProxy.setCommonAxisProperty(t,o)}))};t("tickWidth",this.axisTicksWidthSlider,this.chartTranslator.translate("width"),10),t("tickSize",this.axisTicksSizeSlider,this.chartTranslator.translate("length"),30),t("tickPadding",this.axisTicksPaddingSlider,this.chartTranslator.translate("padding"),30)},t.TEMPLATE='<div> \n <ag-group-component ref="axisTicksGroup">\n <ag-color-picker ref="axisTicksColorPicker"></ag-color-picker>\n <ag-slider ref="axisTicksWidthSlider"></ag-slider>\n <ag-slider ref="axisTicksSizeSlider"></ag-slider>\n <ag-slider ref="axisTicksPaddingSlider"></ag-slider>\n </ag-group-component>\n </div>',n([a.RefSelector("axisTicksGroup"),s("design:type",a.AgGroupComponent)],t.prototype,"axisTicksGroup",void 0),n([a.RefSelector("axisTicksColorPicker"),s("design:type",a.AgColorPicker)],t.prototype,"axisTicksColorPicker",void 0),n([a.RefSelector("axisTicksWidthSlider"),s("design:type",a.AgSlider)],t.prototype,"axisTicksWidthSlider",void 0),n([a.RefSelector("axisTicksSizeSlider"),s("design:type",a.AgSlider)],t.prototype,"axisTicksSizeSlider",void 0),n([a.RefSelector("axisTicksPaddingSlider"),s("design:type",a.AgSlider)],t.prototype,"axisTicksPaddingSlider",void 0),n([a.Autowired("chartTranslator"),s("design:type",l.ChartTranslator)],t.prototype,"chartTranslator",void 0),n([a.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"init",null),t}(a.Component);t.AxisTicksPanel=p},function(e,t,o){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),n=this&&this.__decorate||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},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(1),l=o(161),p=o(13),u=function(e){function t(t){var o=e.call(this)||this;return o.activePanels=[],o.chartProxy=t.getChartProxy(),o}return r(t,e),t.prototype.init=function(){this.setTemplate(t.TEMPLATE),this.initSeriesGroup(),this.initSeriesTooltips(),this.initSeriesLineWidth(),this.initMarkersPanel()},t.prototype.initSeriesGroup=function(){this.seriesGroup.setTitle(this.chartTranslator.translate("series")).toggleGroupExpand(!1).hideEnabledCheckbox(!0)},t.prototype.initSeriesTooltips=function(){var e=this;this.seriesTooltipsToggle.setLabel(this.chartTranslator.translate("tooltips")).setLabelAlignment("left").setLabelWidth("flex").setInputWidth(40).setValue(this.chartProxy.getTooltipsEnabled()).onValueChange((function(t){return e.chartProxy.setSeriesProperty("tooltipEnabled",t)}))},t.prototype.initSeriesLineWidth=function(){var e=this;this.seriesLineWidthSlider.setLabel(this.chartTranslator.translate("lineWidth")).setMaxValue(10).setTextFieldWidth(45).setValue(this.chartProxy.getSeriesProperty("strokeWidth")).onValueChange((function(t){return e.chartProxy.setSeriesProperty("strokeWidth",t)}))},t.prototype.initMarkersPanel=function(){var e=new l.MarkersPanel(this.chartProxy);this.getContext().wireBean(e),this.seriesGroup.addItem(e),this.activePanels.push(e)},t.prototype.destroyActivePanels=function(){this.activePanels.forEach((function(e){a._.removeFromParent(e.getGui()),e.destroy()}))},t.prototype.destroy=function(){this.destroyActivePanels(),e.prototype.destroy.call(this)},t.TEMPLATE='<div> \n <ag-group-component ref="seriesGroup">\n <ag-toggle-button ref="seriesTooltipsToggle"></ag-toggle-button>\n <ag-slider ref="seriesLineWidthSlider"></ag-slider>\n </ag-group-component>\n </div>',n([a.RefSelector("seriesGroup"),s("design:type",a.AgGroupComponent)],t.prototype,"seriesGroup",void 0),n([a.RefSelector("seriesTooltipsToggle"),s("design:type",a.AgToggleButton)],t.prototype,"seriesTooltipsToggle",void 0),n([a.RefSelector("seriesLineWidthSlider"),s("design:type",a.AgSlider)],t.prototype,"seriesLineWidthSlider",void 0),n([a.Autowired("chartTranslator"),s("design:type",p.ChartTranslator)],t.prototype,"chartTranslator",void 0),n([a.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"init",null),t}(a.Component);t.LineSeriesPanel=u},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e){void 0===e&&(e={}),this._parent=void 0,this._pixelRatio=NaN,this.document=e.document||window.document,this.tempCanvas=this.document.createElement("canvas"),this.element=this.document.createElement("canvas"),this.element.style.userSelect="none",this.context=this.element.getContext("2d"),this.updatePixelRatio(0,!1),this.resize(this._width=e.width||300,this._height=e.height||150)}return Object.defineProperty(e.prototype,"parent",{get:function(){return this._parent},set:function(e){this._parent!==e&&(this.remove(),e&&e.appendChild(this.element),this._parent=e)},enumerable:!0,configurable:!0}),e.prototype.remove=function(){var e=this.element.parentNode;null!==e&&e.removeChild(this.element)},e.prototype.destroy=function(){this.element.remove(),this._canvas=void 0,Object.freeze(this)},e.prototype.toImage=function(){var e=this.document.createElement("img");return e.src=this.element.toDataURL(),e},e.prototype.download=function(e){e=((e||"").trim()||"image")+".png";var t=this.element.toDataURL("image/png"),o=this.document;if(navigator.msSaveOrOpenBlob){for(var i=atob(t.split(",")[1]),r=[],n=0,s=i.length;n<s;n++)r.push(i.charCodeAt(n));var a=new Blob([new Uint8Array(r)],{type:"image/png"});navigator.msSaveOrOpenBlob(a,e)}else{var l=o.createElement("a");l.href=t,l.download=e,l.style.display="none",o.body.appendChild(l),l.click(),o.body.removeChild(l)}},Object.defineProperty(e.prototype,"pixelRatio",{get:function(){return this._pixelRatio},enumerable:!0,configurable:!0}),e.prototype.updatePixelRatio=function(t,o){void 0===t&&(t=0),void 0===o&&(o=!0);var i=t||window.devicePixelRatio;if(i!==this.pixelRatio){var r=this.element,n=this.context,s=this.overrides=e.makeHdpiOverrides(i);for(var a in s)s.hasOwnProperty(a)&&(n["$"+a]||(n["$"+a]=n[a]),n[a]=s[a]);if(o){var l=r.width/this.pixelRatio,p=r.height/this.pixelRatio;r.width=Math.round(l*i),r.height=Math.round(p*i),r.style.width=Math.round(l)+"px",r.style.height=Math.round(p)+"px",n.resetTransform()}this._pixelRatio=i}},Object.defineProperty(e.prototype,"width",{get:function(){return this._width},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this._height},enumerable:!0,configurable:!0}),e.prototype.resize=function(e,t){var o=this.element,i=this.context,r=this.tempCanvas;this._width=e,this._height=t,r.width=o.width,r.height=o.height;var n=r.getContext("2d");n.drawImage(i.canvas,0,0),o.width=Math.round(e*this.pixelRatio),o.height=Math.round(t*this.pixelRatio),o.style.width=Math.round(e)+"px",o.style.height=Math.round(t)+"px",i.drawImage(n.canvas,0,0),i.resetTransform()},Object.defineProperty(e.prototype,"textMeasuringContext",{get:function(){if(this._textMeasuringContext)return this._textMeasuringContext;var e=document.createElement("canvas");return this._textMeasuringContext=e.getContext("2d")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"svgText",{get:function(){if(this._svgText)return this._svgText;var e="http://www.w3.org/2000/svg",t=document.createElementNS(e,"svg");t.setAttribute("width","100"),t.setAttribute("height","100"),t.classList?t.classList.add("text-measuring-svg"):t.setAttribute("class","text-measuring-svg"),t.style.position="absolute",t.style.top="-1000px",t.style.visibility="hidden";var o=document.createElementNS(e,"text");return o.setAttribute("x","0"),o.setAttribute("y","30"),o.setAttribute("text","black"),t.appendChild(o),document.body.appendChild(t),this._svgText=o,o},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"has",{get:function(){return this._has?this._has:this._has=Object.freeze({textMetrics:void 0!==this.textMeasuringContext.measureText("test").actualBoundingBoxDescent,getTransform:void 0!==this.textMeasuringContext.getTransform,flicker:!!window.safari})},enumerable:!0,configurable:!0}),e.prototype.measureText=function(e,t,o,i){var r=this.textMeasuringContext;return r.font=t,r.textBaseline=o,r.textAlign=i,r.measureText(e)},e.prototype.getTextSize=function(e,t){if(this.has.textMetrics){var o=this.textMeasuringContext;o.font=t;var i=o.measureText(e);return{width:i.width,height:i.actualBoundingBoxAscent+i.actualBoundingBoxDescent}}return this.measureSvgText(e,t)},e.prototype.measureSvgText=function(t,o){var i=e.textSizeCache,r=i[o];if(r){var n=r[t];if(n)return n}else i[o]={};var s=this.svgText;s.style.font=o,s.textContent=t;var a=s.getBBox(),l={width:a.width,height:a.height};return i[o][t]=l,l},e.makeHdpiOverrides=function(e){var t=0;return{save:function(){this.$save(),t++},restore:function(){t>0&&(this.$restore(),t--)},setTransform:function(t,o,i,r,n,s){this.$setTransform(t*e,o*e,i*e,r*e,n*e,s*e)},resetTransform:function(){this.$setTransform(e,0,0,e,0,0),this.save(),t=0}}},e.textSizeCache={},e}();t.HdpiCanvas=i},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(299);function r(e,t,o,i){return[3*t-e-3*o+i,3*e-6*t+3*o,-3*e+3*t,e]}t.segmentIntersection=function(e,t,o,i,r,n,s,a){var l=(o-e)*(a-n)-(i-t)*(s-r);if(0===l)return null;var p=((s-r)*(t-n)-(e-r)*(a-n))/l,u=((o-e)*(t-n)-(i-t)*(e-r))/l;return p>=0&&p<=1&&u>=0&&u<=1?{x:e+p*(o-e),y:t+p*(i-t)}:null},t.cubicSegmentIntersections=function(e,t,o,n,s,a,l,p,u,c,d,h){for(var f=[],g=c-h,y=d-u,v=u*(h-c)-c*(d-u),m=r(e,o,s,l),C=r(t,n,a,p),w=g*m[0]+y*C[0],_=g*m[1]+y*C[1],b=g*m[2]+y*C[2],E=g*m[3]+y*C[3]+v,R=i.cubicRoots(w,_,b,E),P=0;P<R.length;P++){var O=R[P],S=O*O,A=O*S,T=m[0]*A+m[1]*S+m[2]*O+m[3],D=C[0]*A+C[1]*S+C[2]*O+C[3],x=void 0;(x=u!==d?(T-u)/(d-u):(D-c)/(h-c))>=0&&x<=1&&f.push({x:T,y:D})}return f},t.bezierCoefficients=r},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=Math.sign?Math.sign:function(e){return 0===(e=+e)||isNaN(e)?e:e>0?1:-1};function r(e,t){var o=-t/e;return 0!==e&&o>=0&&o<=1?[o]:[]}function n(e,t,o){if(0===e)return r(t,o);var i=t*t-4*e*o,n=[];if(0===i){var s=-t/(2*e);s>=0&&s<=1&&n.push(s)}else if(i>0){var a=Math.sqrt(i),l=(-t-a)/(2*e),p=(-t+a)/(2*e);l>=0&&l<=1&&n.push(l),p>=0&&p<=1&&n.push(p)}return n}t.linearRoot=r,t.quadraticRoots=n,t.cubicRoots=function(e,t,o,r){if(0===e)return n(t,o,r);var s=t/e,a=o/e,l=(3*a-s*s)/9,p=(9*s*a-27*(r/e)-2*s*s*s)/54,u=l*l*l+p*p,c=[];if(u>=0){var d=Math.sqrt(u),h=i(p+d)*Math.pow(Math.abs(p+d),1/3),f=i(p-d)*Math.pow(Math.abs(p-d),1/3),g=Math.abs(Math.sqrt(3)*(h-f)/2),y=-1/3*s+(h+f);if(y>=0&&y<=1&&c.push(y),0===g){var v=-1/3*s-(h+f)/2;v>=0&&v<=1&&c.push(v)}}else{var m=Math.acos(p/Math.sqrt(-l*l*l)),C=1/3*s,w=2*Math.sqrt(-l),_=w*Math.cos(1/3*m)-C,b=w*Math.cos(1/3*(m+2*Math.PI))-C,E=w*Math.cos(1/3*(m+4*Math.PI))-C;_>=0&&_<=1&&c.push(_),b>=0&&b<=1&&c.push(b),E>=0&&E<=1&&c.push(E)}return c}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r=o(16),n=o(34),s=o(301);!function(e){e[e.Vertical=0]="Vertical",e[e.Horizontal=1]="Horizontal"}(i=t.Orientation||(t.Orientation={}));var a=function(){function e(){this.group=new r.Group,this.itemSelection=n.Selection.select(this.group).selectAll(),this.oldSize=[0,0],this._size=[0,0],this._data=[],this._orientation=i.Vertical,this._enabled=!0,this._itemPaddingX=16,this._itemPaddingY=8,this._markerPadding=s.MarkerLabel.defaults.padding,this._labelColor=s.MarkerLabel.defaults.labelColor,this._labelFontStyle=s.MarkerLabel.defaults.labelFontStyle,this._labelFontWeight=s.MarkerLabel.defaults.labelFontWeight,this._labelFontSize=s.MarkerLabel.defaults.labelFontSize,this._labelFontFamily=s.MarkerLabel.defaults.labelFontFamily,this._markerSize=14,this._markerStrokeWidth=1}return Object.defineProperty(e.prototype,"size",{get:function(){return this._size},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"data",{get:function(){return this._data},set:function(e){this._data=e,this.group.visible=this.enabled&&e.length>0,this.requestLayout()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"orientation",{get:function(){return this._orientation},set:function(e){this._orientation!==e&&(this._orientation=e,this.requestLayout())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"enabled",{get:function(){return this._enabled},set:function(e){this._enabled!==e&&(this._enabled=e,this.group.visible=e&&this.data.length>0,this.requestLayout())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"itemPaddingX",{get:function(){return this._itemPaddingX},set:function(e){e=isFinite(e)?e:16,this._itemPaddingX!==e&&(this._itemPaddingX=e,this.requestLayout())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"itemPaddingY",{get:function(){return this._itemPaddingY},set:function(e){e=isFinite(e)?e:8,this._itemPaddingY!==e&&(this._itemPaddingY=e,this.requestLayout())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"markerPadding",{get:function(){return this._markerPadding},set:function(e){e=isFinite(e)?e:s.MarkerLabel.defaults.padding,this._markerPadding!==e&&(this._markerPadding=e,this.requestLayout())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"labelColor",{get:function(){return this._labelColor},set:function(e){this._labelColor!==e&&(this._labelColor=e,this.update())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"labelFontStyle",{get:function(){return this._labelFontStyle},set:function(e){this._labelFontStyle!==e&&(this._labelFontStyle=e,this.requestLayout())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"labelFontWeight",{get:function(){return this._labelFontWeight},set:function(e){this._labelFontWeight!==e&&(this._labelFontWeight=e,this.requestLayout())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"labelFontSize",{get:function(){return this._labelFontSize},set:function(e){this._labelFontSize!==e&&(this._labelFontSize=e,this.requestLayout())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"labelFontFamily",{get:function(){return this._labelFontFamily},set:function(e){this._labelFontFamily!==e&&(this._labelFontFamily=e,this.requestLayout())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"markerSize",{get:function(){return this._markerSize},set:function(e){e=isFinite(e)?e:14,this._markerSize!==e&&(this._markerSize=e,this.requestLayout())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"markerStrokeWidth",{get:function(){return this._markerStrokeWidth},set:function(e){e=isFinite(e)?e:1,this._markerStrokeWidth!==e&&(this._markerStrokeWidth=e,this.update())},enumerable:!0,configurable:!0}),e.prototype.requestLayout=function(){this.onLayoutChange&&this.onLayoutChange()},e.prototype.performLayout=function(e,t){var o=this,r=this.itemSelection.setData(this.data);r.exit.remove();var n=r.enter.append(s.MarkerLabel),a=this.itemSelection=r.merge(n),l=a.size,p=this.itemPaddingX,u=this.itemPaddingY,c=[];a.each((function(e,t){e.markerSize=o.markerSize,e.labelFontStyle=o.labelFontStyle,e.labelFontWeight=o.labelFontWeight,e.labelFontSize=o.labelFontSize,e.labelFontFamily=o.labelFontFamily,e.labelText=t.label.text,e.padding=o.markerPadding,c.push(e.getBBox())}));var d=c.length&&c[0].height,h=0,f=0,g=0,y=0;switch(this.orientation){case i.Horizontal:if(!(isFinite(e)&&e>0))return!1;h=0;var v=0;do{var m=0;v=0,f=0,h++;for(var C=0;C<l;){(b=c[C]).width>f&&(f=b.width),++C%h==0&&(m+=f,f=0,v++)}C%h!=0&&(m+=f,v++),g=m+(v-1)*p}while(g>e&&v>1);y=d*h+(h-1)*u;break;case i.Vertical:if(!(isFinite(t)&&t>0))return!1;h=2*l;do{h=(h>>1)+h%2,f=0;m=0;var w=0,_=0;for(C=0;C<l;){var b=c[C];_||(w+=b.height),b.width>f&&(f=b.width),++C%h==0&&(m+=f,f=0,_++)}C%h!=0&&(m+=f,_++),g=m+(_-1)*p,y=w+(h-1)*u}while(y>t&&h>1)}var E=(e-g)/2,R=(t-y)/2,P=0,O=0;f=0,a.each((function(e,t,o){e.translationX=Math.floor(E+P),e.translationY=Math.floor(R+O);var i=c[o];i.width>f&&(f=i.width),(o+1)%h==0?(P+=f+p,O=0,f=0):O+=i.height+u})),this.update();var S=this._size,A=this.oldSize;S[0]=g,S[1]=y,S[0]===A[0]&&S[1]===A[1]||(A[0]=S[0],A[1]=S[1],this.requestLayout())},e.prototype.update=function(){var e=this;this.itemSelection.each((function(t,o){var i=o.marker;t.markerFill=i.fill,t.markerStroke=i.stroke,t.markerStrokeWidth=e.markerStrokeWidth,t.opacity=o.enabled?1:.5,t.labelColor=e.labelColor}))},e.prototype.datumForPoint=function(e,t){var o=this.group.pickNode(e,t);if(o&&o.parent)return o.parent.datum},e}();t.Legend=a},function(e,t,o){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var n=o(16),s=o(100),a=o(52),l=function(e){function t(){var o=e.call(this)||this;o.marker=new s.Rect,o.label=new a.Text,o._markerSize=t.defaults.markerSize,o._padding=t.defaults.padding,o.marker.crisp=!0;var i=o.label;return i.textBaseline="middle",i.fontStyle=t.defaults.labelFontStyle,i.fontWeight=t.defaults.labelFontWeight,i.fontSize=t.defaults.labelFontSize,i.fontFamily=t.defaults.labelFontFamily,i.fill=t.defaults.labelColor,i.y=2,o.append([o.marker,i]),o.update(),o}return r(t,e),Object.defineProperty(t.prototype,"labelText",{get:function(){return this.label.text},set:function(e){this.label.text=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"labelFontStyle",{get:function(){return this.label.fontStyle},set:function(e){this.label.fontStyle=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"labelFontWeight",{get:function(){return this.label.fontWeight},set:function(e){this.label.fontWeight=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"labelFontSize",{get:function(){return this.label.fontSize},set:function(e){this.label.fontSize=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"labelFontFamily",{get:function(){return this.label.fontFamily},set:function(e){this.label.fontFamily=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"labelColor",{get:function(){return this.label.fill},set:function(e){this.label.fill=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"markerSize",{get:function(){return this._markerSize},set:function(e){this._markerSize!==e&&(this._markerSize=e,this.update())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"markerFill",{get:function(){return this.marker.fill},set:function(e){this.marker.fill=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"markerStroke",{get:function(){return this.marker.stroke},set:function(e){this.marker.stroke=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"markerStrokeWidth",{get:function(){return this.marker.strokeWidth},set:function(e){this.marker.strokeWidth=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"opacity",{get:function(){return this.marker.opacity},set:function(e){this.marker.opacity=e,this.label.opacity=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"padding",{get:function(){return this._padding},set:function(e){this._padding!==e&&(this._padding=e,this.update())},enumerable:!0,configurable:!0}),t.prototype.update=function(){var e=this.marker,t=this.markerSize;e.x=-t/2,e.y=-t/2,e.width=t,e.height=t,this.label.x=t/2+this.padding},t.className="MarkerLabel",t.defaults=Object.freeze({padding:4,markerSize:14,labelFont:"12px Verdana, sans-serif",labelFontStyle:void 0,labelFontWeight:void 0,labelFontSize:12,labelFontFamily:"Verdana, sans-serif",labelColor:"black"}),t}(n.Group);t.MarkerLabel=l},function(e,t,o){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var n=o(162),s=o(51),a=function(e){function t(){var t=e.call(this)||this;return t.centerX=0,t.centerY=0,t.radius=0,t._padding=new s.Padding(50),t._series=[],t.scene.root.append(t.legend.group),t}return r(t,e),Object.defineProperty(t.prototype,"seriesRoot",{get:function(){return this.scene.root},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"series",{get:function(){return this._series},set:function(e){var t=this;this.removeAllSeries(),e.forEach((function(e){t.addSeries(e,null)}))},enumerable:!0,configurable:!0}),t.prototype.performLayout=function(){var e={x:0,y:0,width:this.width,height:this.height},t=this.captionAutoPadding;if(e.y+=t,e.height-=t,this.legend.enabled&&this.legend.data.length){var o=this.legendAutoPadding;e.x+=o.left,e.y+=o.top,e.width-=o.left+o.right,e.height-=o.top+o.bottom;var i=this.legendPadding;switch(this.legendPosition){case"right":e.width-=i;break;case"bottom":e.height-=i;break;case"left":e.x+=i,e.width-=i;break;case"top":e.y+=i,e.height-=i}}var r=this.padding;e.x+=r.left,e.y+=r.top,e.width-=r.left+r.right,e.height-=r.top+r.bottom,this.centerX=e.x+e.width/2,this.centerY=e.y+e.height/2,this.radius=Math.min(e.width,e.height)/2,this.series.forEach((function(e){e.update()})),this.positionCaptions(),this.positionLegend()},t}(n.Chart);t.PolarChart=a},function(e,t,o){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var n=o(163),s=o(101),a=o(34),l=o(16),p=o(73),u=o(53),c=o(55),d=o(74),h=o(42),f=o(28),g=o(1),y=function(e){function t(){var t=e.call(this)||this;t.domainX=[],t.domainY=[],t.xData=[],t.yData=[],t.lineNode=new n.Path,t.groupSelection=a.Selection.select(t.group).selectAll(),t._title="",t._xField="",t._yField="",t._marker=!1,t._markerSize=8,t._markerStrokeWidth=2,t._fill=c.default.fills[0],t._stroke=c.default.strokes[0],t._strokeWidth=3,t.highlightStyle={fill:"yellow"};var o=t.lineNode;return o.fill=void 0,o.lineJoin="round",o.pointerEvents=f.PointerEvents.None,t.group.append(o),t}return r(t,e),Object.defineProperty(t.prototype,"chart",{get:function(){return this._chart},set:function(e){this._chart!==e&&(this._chart=e,this.scheduleData())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){return this._title},set:function(e){this._title!==e&&(this._title=e,this.scheduleLayout())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"xField",{get:function(){return this._xField},set:function(e){this._xField!==e&&(this._xField=e,this.xData=[],this.scheduleData())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"yField",{get:function(){return this._yField},set:function(e){this._yField!==e&&(this._yField=e,this.yData=[],this.scheduleData())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"marker",{get:function(){return this._marker},set:function(e){this._marker!==e&&(this._marker=e,this.update())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"markerSize",{get:function(){return this._markerSize},set:function(e){this._markerSize!==e&&(this._markerSize=Math.abs(e),this.update())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"markerStrokeWidth",{get:function(){return this._markerStrokeWidth},set:function(e){this._markerStrokeWidth!==e&&(this._markerStrokeWidth=e,this.update())},enumerable:!0,configurable:!0}),t.prototype.processData=function(){var e=this.chart,t=this.xField,o=this.yField,i=this.data;if(!(e&&e.xAxis&&e.yAxis))return!1;t&&o||(this._data=i=[]),this.xData=i.map((function(e){return e[t]})),this.yData=i.map((function(e){return e[o]}));var r=e.xAxis.scale instanceof s.default,n=r?u.numericExtent(this.xData)||[0,1]:this.xData,a=u.numericExtent(this.yData)||[0,1];if(r){var l=n;(p=l[0])===(c=l[1])&&(n[0]=p-1,n[1]=c+1)}var p,c,d=a;return(p=d[0])===(c=d[1])&&(a[0]=p-1,a[1]=c+1),this.domainX=n,this.domainY=a,!0},Object.defineProperty(t.prototype,"fill",{get:function(){return this._fill},set:function(e){this._fill!==e&&(this._fill=e,this.stroke=g.Color.fromString(e).darker().toHexString(),this.scheduleData())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"stroke",{get:function(){return this._stroke},set:function(e){this._stroke!==e&&(this._stroke=e,this.scheduleData())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"strokeWidth",{get:function(){return this._strokeWidth},set:function(e){this._strokeWidth!==e&&(this._strokeWidth=e,this.update())},enumerable:!0,configurable:!0}),t.prototype.highlightNode=function(e){e instanceof p.Arc&&(this.highlightedNode=e,this.scheduleLayout())},t.prototype.dehighlightNode=function(){this.highlightedNode=void 0,this.scheduleLayout()},t.prototype.update=function(){var e=this,t=this.chart,o=this.group.visible=this.visible;if(t&&o&&!t.dataPending&&!t.layoutPending&&t.xAxis&&t.yAxis){var i=t.xAxis,r=t.yAxis,n=i.scale,s=r.scale,a=(n.bandwidth||0)/2,u=(s.bandwidth||0)/2,c=this.data,d=this.xData,h=this.yData,f=d.length,g=this.fill,y=this.stroke,v=this.marker,m=this.markerSize,C=this.markerStrokeWidth,w=this.lineNode,_=w.path,b=[];_.clear();for(var E=0;E<f;E++){var R=d[E],P=h[E],O=n.convert(R)+a,S=s.convert(P)+u;E?_.lineTo(O,S):_.moveTo(O,S),v&&b.push({seriesDatum:c[E],x:O,y:S,fill:g,stroke:y,strokeWidth:C,radius:m/2})}w.stroke=y,w.strokeWidth=this.strokeWidth;var A=this.groupSelection.setData(b);A.exit.remove();var T=A.enter.append(l.Group);T.append(p.Arc).each((function(e){return e.type=p.ArcType.Chord}));var D=this.highlightedNode,x=A.merge(T);x.selectByClass(p.Arc).each((function(t,o){t.centerX=o.x,t.centerY=o.y,t.radiusX=o.radius,t.radiusY=o.radius,t.fill=t===D&&void 0!==e.highlightStyle.fill?e.highlightStyle.fill:o.fill,t.stroke=t===D&&void 0!==e.highlightStyle.stroke?e.highlightStyle.stroke:o.stroke,t.strokeWidth=o.strokeWidth,t.visible=o.radius>0})),this.groupSelection=x}},t.prototype.getDomainX=function(){return this.domainX},t.prototype.getDomainY=function(){return this.domainY},t.prototype.getTooltipHtml=function(e){var t=this.xField,o=this.yField,i=this.fill,r="";if(!t||!o)return r;var n=this.title;if(this.tooltipRenderer&&this.xField)r=this.tooltipRenderer({datum:e.seriesDatum,xField:t,yField:o,title:n,color:i});else{n=n?'<div class="title" '+('style="color: white; background-color: '+i+'"')+">"+n+"</div>":"";var s=e.seriesDatum,a=s[t],l=s[o];r=n+'<div class="content">'+("number"==typeof a?h.toFixed(a):String(a))+": "+("number"==typeof l?h.toFixed(l):String(l))+"</div>"}return r},t.prototype.listSeriesItems=function(e){this.data.length&&this.xField&&this.yField&&e.push({id:this.id,itemId:void 0,enabled:this.visible,label:{text:this.title||this.yField},marker:{fill:this.fill,stroke:this.stroke}})},t.className="LineSeries",t}(d.Series);t.LineSeries=y},function(e,t,o){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var n=o(101),s=o(34),a=o(16),l=o(73),p=o(53),u=o(55),c=o(74),d=o(42),h=o(1),f=o(102),g=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.domainX=[],t.domainY=[],t.xData=[],t.yData=[],t.radiusData=[],t.radiusScale=f.default(),t.groupSelection=s.Selection.select(t.group).selectAll(),t._title="",t._xField="",t._yField="",t._radiusField="",t.xFieldName="X",t.yFieldName="Y",t.radiusFieldName="Radius",t._marker=!1,t._markerSize=8,t._minMarkerSize=4,t._markerStrokeWidth=2,t._fill=u.default.fills[0],t._stroke=u.default.strokes[0],t._fillOpacity=1,t._strokeOpacity=1,t.highlightStyle={fill:"yellow"},t}return r(t,e),Object.defineProperty(t.prototype,"chart",{get:function(){return this._chart},set:function(e){this._chart!==e&&(this._chart=e,this.scheduleData())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){return this._title},set:function(e){this._title!==e&&(this._title=e,this.scheduleLayout())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"xField",{get:function(){return this._xField},set:function(e){this._xField!==e&&(this._xField=e,this.xData=[],this.scheduleData())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"yField",{get:function(){return this._yField},set:function(e){this._yField!==e&&(this._yField=e,this.yData=[],this.scheduleData())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"radiusField",{get:function(){return this._radiusField},set:function(e){this._radiusField!==e&&(this._radiusField=e,this.scheduleData())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"marker",{get:function(){return this._marker},set:function(e){this._marker!==e&&(this._marker=e,this.update())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"markerSize",{get:function(){return this._markerSize},set:function(e){this._markerSize!==e&&(this._markerSize=Math.abs(e),this.update())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"minMarkerSize",{get:function(){return this._minMarkerSize},set:function(e){this._minMarkerSize!==e&&(this._minMarkerSize=e,this.update())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"markerStrokeWidth",{get:function(){return this._markerStrokeWidth},set:function(e){this._markerStrokeWidth!==e&&(this._markerStrokeWidth=e,this.update())},enumerable:!0,configurable:!0}),t.prototype.processData=function(){var e=this.chart,t=this.xField,o=this.yField,i=this.radiusField,r=this.markerSize,s=this.minMarkerSize,a=this.data;if(!(e&&e.xAxis&&e.yAxis))return!1;t&&o||(this._data=a=[]);var l=[],u=[],c=[];a.forEach((function(e){l.push(e[t]),u.push(e[o]),i&&c.push(e[i])})),this.xData=l,this.yData=u,this.radiusData=c,this.radiusScale.domain=p.numericExtent(c)||[1,1],this.radiusScale.range=[s/2,r/2];var d=e.xAxis.scale instanceof n.default,h=d?p.numericExtent(this.xData)||[0,1]:this.xData,f=p.numericExtent(this.yData)||[0,1];if(d){var g=h;(y=g[0])===(v=g[1])&&(h[0]=y-1,h[1]=v+1)}var y,v,m=f;return(y=m[0])===(v=m[1])&&(f[0]=y-1,f[1]=v+1),this.domainX=h,this.domainY=f,!0},Object.defineProperty(t.prototype,"fill",{get:function(){return this._fill},set:function(e){this._fill!==e&&(this._fill=e,this.stroke=h.Color.fromString(e).darker().toHexString(),this.scheduleData())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"stroke",{get:function(){return this._stroke},set:function(e){this._stroke!==e&&(this._stroke=e,this.scheduleData())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"fillOpacity",{get:function(){return this._fillOpacity},set:function(e){this._fillOpacity!==e&&(this._fillOpacity=e,this.scheduleLayout())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"strokeOpacity",{get:function(){return this._strokeOpacity},set:function(e){this._strokeOpacity!==e&&(this._strokeOpacity=e,this.scheduleLayout())},enumerable:!0,configurable:!0}),t.prototype.highlightNode=function(e){e instanceof l.Arc&&(this.highlightedNode=e,this.scheduleLayout())},t.prototype.dehighlightNode=function(){this.highlightedNode=void 0,this.scheduleLayout()},t.prototype.update=function(){var e=this,t=this.chart,o=this.group.visible=this.visible;if(t&&o&&!t.dataPending&&!t.layoutPending&&t.xAxis&&t.yAxis){for(var i=t.xAxis,r=t.yAxis,n=i.scale,s=r.scale,p=(n.bandwidth||0)/2,u=(s.bandwidth||0)/2,c=this.data,d=this.xData,h=this.yData,f=this.radiusData,g=d.length,y=this.fill,v=this.stroke,m=this.fillOpacity,C=this.strokeOpacity,w=this.markerStrokeWidth,_=this.markerSize,b=[],E=0;E<g;E++){var R=d[E],P=h[E],O=n.convert(R)+p,S=s.convert(P)+u;b.push({seriesDatum:c[E],x:O,y:S,fill:y,stroke:v,strokeWidth:w,radius:this.radiusField?this.radiusScale.convert(f[E]):_/2})}var A=this.groupSelection.setData(b);A.exit.remove();var T=A.enter.append(a.Group);T.append(l.Arc).each((function(e){return e.type=l.ArcType.Chord}));var D=this.highlightedNode,x=A.merge(T);x.selectByClass(l.Arc).each((function(t,o){t.centerX=o.x,t.centerY=o.y,t.radiusX=o.radius,t.radiusY=o.radius,t.fill=t===D&&void 0!==e.highlightStyle.fill?e.highlightStyle.fill:o.fill,t.stroke=t===D&&void 0!==e.highlightStyle.stroke?e.highlightStyle.stroke:o.stroke,t.fillOpacity=m,t.strokeOpacity=C,t.strokeWidth=o.strokeWidth,t.visible=o.radius>0})),this.groupSelection=x}},t.prototype.getDomainX=function(){return this.domainX},t.prototype.getDomainY=function(){return this.domainY},t.prototype.getTooltipHtml=function(e){var t=this.xField,o=this.yField,i=this.radiusField,r=this.xFieldName,n=this.yFieldName,s=this.radiusFieldName,a=this.fill,l="";if(!t||!o)return l;var p=this.title;if(this.tooltipRenderer&&this.xField)l=this.tooltipRenderer({datum:e.seriesDatum,xField:t,yField:o,radiusField:i,xFieldName:r,yFieldName:n,radiusFieldName:s,title:p,color:a});else{p=p?'<div class="title" '+('style="color: white; background-color: '+a+'"')+">"+p+"</div>":"";var u=e.seriesDatum,c=u[t],h=u[o],f="<b>"+r+"</b>: "+("number"==typeof c?d.toFixed(c):String(c))+"<br><b>"+n+"</b>: "+("number"==typeof h?d.toFixed(h):String(h));i&&(f+="<br><b>"+s+"</b>: "+u[i]),l=p+'<div class="content">'+f+"</div>"}return l},t.prototype.listSeriesItems=function(e){this.data.length&&this.xField&&this.yField&&e.push({id:this.id,itemId:void 0,enabled:this.visible,label:{text:this.title||this.yField},marker:{fill:this.fill,stroke:this.stroke}})},t.className="ScatterSeries",t}(c.Series);t.ScatterSeries=g},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.naturalOrder=function(e,t){return e-t}},function(e,t,o){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var n,s=o(16),a=o(34),l=o(100),p=o(52),u=o(103),c=o(55),d=o(74),h=o(28),f=o(42),g=o(1),y=o(164);!function(e){e[e.Bar=0]="Bar",e[e.Label=1]="Label"}(n||(n={}));var v=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rectGroup=t.group.appendChild(new s.Group),t.textGroup=t.group.appendChild(new s.Group),t.rectSelection=a.Selection.select(t.rectGroup).selectAll(),t.textSelection=a.Selection.select(t.textGroup).selectAll(),t.enabled=new Map,t._fills=c.default.fills,t._strokes=c.default.strokes,t._fillOpacity=1,t._strokeOpacity=1,t.xData=[],t.yData=[],t.ySums=[],t.domainY=[],t.groupScale=new u.BandScale,t._xField="",t._yFields=[],t._yFieldNames=[],t._grouped=!1,t._normalizedTo=NaN,t._strokeWidth=1,t._shadow=void 0,t._labelEnabled=!0,t._labelFontStyle=void 0,t._labelFontWeight=void 0,t._labelFontSize=12,t._labelFontFamily="Verdana, sans-serif",t._labelColor="black",t._labelFormatter=void 0,t.highlightStyle={fill:"yellow"},t}return r(t,e),Object.defineProperty(t.prototype,"fills",{get:function(){return this._fills},set:function(e){this._fills=e,this.strokes=e.map((function(e){return g.Color.fromString(e).darker().toHexString()})),this.scheduleData()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"strokes",{get:function(){return this._strokes},set:function(e){this._strokes=e,this.scheduleData()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"fillOpacity",{get:function(){return this._fillOpacity},set:function(e){this._fillOpacity!==e&&(this._fillOpacity=e,this.scheduleLayout())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"strokeOpacity",{get:function(){return this._strokeOpacity},set:function(e){this._strokeOpacity!==e&&(this._strokeOpacity=e,this.scheduleLayout())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"chart",{get:function(){return this._chart},set:function(e){this._chart!==e&&(this._chart=e,this.scheduleData())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"xField",{get:function(){return this._xField},set:function(e){this._xField!==e&&(this._xField=e,this.xData=[],this.scheduleData())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"yFields",{get:function(){return this._yFields},set:function(e){this._yFields=e;var t=this.enabled;t.clear(),e.forEach((function(e){return t.set(e,!0)}));var o=this.groupScale;o.domain=e,o.padding=.1,o.round=!0,this.yData=[],this.scheduleData()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"yFieldNames",{get:function(){return this._yFieldNames},set:function(e){this._yFieldNames=e,this.update()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"grouped",{get:function(){return this._grouped},set:function(e){this._grouped!==e&&(this._grouped=e,this.scheduleData())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"normalizedTo",{get:function(){return this._normalizedTo},set:function(e){0===e&&(e=NaN);var t=Math.abs(e);this._normalizedTo!==t&&(this._normalizedTo=t,this.scheduleData())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"strokeWidth",{get:function(){return this._strokeWidth},set:function(e){this._strokeWidth!==e&&(this._strokeWidth=e,this.update())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"shadow",{get:function(){return this._shadow},set:function(e){this._shadow!==e&&(this._shadow=e,this.update())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"labelEnabled",{get:function(){return this._labelEnabled},set:function(e){this._labelEnabled!==e&&(this._labelEnabled=e,this.update())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"labelFontStyle",{get:function(){return this._labelFontStyle},set:function(e){this._labelFontStyle!==e&&(this._labelFontStyle=e,this.update())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"labelFontWeight",{get:function(){return this._labelFontWeight},set:function(e){this._labelFontWeight!==e&&(this._labelFontWeight=e,this.update())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"labelFontSize",{get:function(){return this._labelFontSize},set:function(e){this._labelFontSize!==e&&(this._labelFontSize=e,this.update())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"labelFontFamily",{get:function(){return this._labelFontFamily},set:function(e){this._labelFontFamily!==e&&(this._labelFontFamily=e,this.update())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"labelColor",{get:function(){return this._labelColor},set:function(e){this._labelColor!==e&&(this._labelColor=e,this.update())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"labelFormatter",{get:function(){return this._labelFormatter},set:function(e){this._labelFormatter!==e&&(this._labelFormatter=e,this.update())},enumerable:!0,configurable:!0}),t.prototype.highlightNode=function(e){e instanceof l.Rect&&(this.highlightedNode=e,this.scheduleLayout())},t.prototype.dehighlightNode=function(){this.highlightedNode=void 0,this.scheduleLayout()},t.prototype.processData=function(){var e=this.data,t=this.xField,o=this.yFields;t&&o.length||(this._data=e=[]);var i=this.enabled,r=this.normalizedTo,n=(this.xData=e.map((function(e){return e[t]})),this.ySums=[]),s=this.yData=e.map((function(e,t){var r=[],s=0;return o.forEach((function(t){var o=e[t];isFinite(o)&&i.get(t)||(o=0),o>0&&(s+=o),r.push(o)})),n[t]=s,r})),a=1/0,l=-1/0;this.grouped?(a=Math.min.apply(Math,s.map((function(e){return Math.min.apply(Math,[0].concat(e))}))),l=Math.max.apply(Math,s.map((function(e){return Math.max.apply(Math,e)})))):isFinite(r)?(a=0,l=r,s.forEach((function(e,t){var o=n[t];e.forEach((function(t,i){return e[i]=t/o*r}))}))):(a=Math.min.apply(Math,[0].concat(s.map((function(e){var t=0;return e.forEach((function(e){e<0&&(t-=e)})),t})))),l=Math.max.apply(Math,s.map((function(e){var t=0;return e.forEach((function(e){e>0&&(t+=e)})),t})))),a!==l&&isFinite(a)&&isFinite(l)||(a=0,l=1),this.domainY=[a,l];var p=this.chart;return p&&p.updateAxes(),!0},t.prototype.getDomainX=function(){return this.xData},t.prototype.getDomainY=function(){return this.domainY},t.prototype.update=function(){var e=this,t=this.chart,o=this.group.visible=this.visible;if(t&&o&&!t.dataPending&&!t.layoutPending&&t.xAxis&&t.yAxis){var i=this.data.length,r=!(t.yAxis instanceof y.NumberAxis),s=r?t.yAxis:t.xAxis,a=r?t.xAxis:t.yAxis,u=s.scale,c=a.scale,d=this.groupScale,f=this.yFields,g=this.fills,v=this.strokes,m=this.fillOpacity,C=this.strokeOpacity,w=this.grouped,_=this.strokeWidth,b=this.enabled,E=this.labelEnabled,R=this.labelFontStyle,P=this.labelFontWeight,O=this.labelFontSize,S=this.labelFontFamily,A=this.labelColor,T=this.labelFormatter,D=this.data,x=this.xData,F=this.yData;d.range=[0,u.bandwidth];for(var M=w?d.bandwidth:u.bandwidth,N=[],L=0;L<i;L++)for(var I=x[L],G=F[L],k=G.length,W=u.convert(I),V=0,H=void 0,j=0;j<k;j++){H=G[j];var B=f[j],U=b.get(B),z=w?W+d.convert(B):W,Y=c.convert(w?H:V+H),K=c.convert(w?0:V),X=D[L],q=X[B],Q="number"==typeof q,$=void 0;$=T?T({value:Q?q:NaN}):Q&&isFinite(q)?q.toFixed(2):"",N.push({seriesDatum:X,yValue:q,yField:B,x:r?Math.min(Y,K):z,y:r?z:Math.min(Y,K),width:r?Math.abs(K-Y):M,height:r?M:Math.abs(K-Y),fill:g[j%g.length],stroke:v[j%v.length],strokeWidth:_,label:U&&$?{text:$,fontStyle:R,fontWeight:P,fontSize:O,fontFamily:S,fill:A,x:r?Y+(q>=0?-1:1)*Math.abs(K-Y)/2:z+M/2,y:r?z+M/2:Y+(q>=0?1:-1)*Math.abs(K-Y)/2}:void 0}),w?V=H:V+=H}var Z=this.rectSelection.setData(N),J=this.textSelection.setData(N);Z.exit.remove(),J.exit.remove();var ee=Z.enter.append(l.Rect).each((function(e){e.tag=n.Bar,e.crisp=!0})),te=J.enter.append(p.Text).each((function(e){e.tag=n.Label,e.pointerEvents=h.PointerEvents.None,e.textAlign="center",e.textBaseline="middle"})),oe=this.highlightedNode,ie=Z.merge(ee),re=J.merge(te);ie.each((function(t,o){t.x=o.x,t.y=o.y,t.width=o.width,t.height=o.height,t.fill=t===oe&&void 0!==e.highlightStyle.fill?e.highlightStyle.fill:o.fill,t.stroke=t===oe&&void 0!==e.highlightStyle.stroke?e.highlightStyle.stroke:o.stroke,t.fillOpacity=m,t.strokeOpacity=C,t.strokeWidth=o.strokeWidth,t.fillShadow=e.shadow,t.visible=o.height>0})),re.each((function(e,t){var o=t.label;o&&E?(e.fontStyle=o.fontStyle,e.fontWeight=o.fontWeight,e.fontSize=o.fontSize,e.fontFamily=o.fontFamily,e.text=o.text,e.x=o.x,e.y=o.y,e.fill=o.fill,e.visible=!0):e.visible=!1})),this.rectSelection=ie,this.textSelection=re}},t.prototype.getTooltipHtml=function(e){var t="";if(this.tooltipEnabled){var o=this.xField,i=e.yField,r=this.yFields.indexOf(i),n=e.seriesDatum,s=this.fills[r%this.fills.length],a=this.yFieldNames[r]||void 0;if(this.tooltipRenderer&&o)t=this.tooltipRenderer({datum:n,xField:o,yField:i,title:a,color:s});else{a=a?'<div class="title" '+('style="color: white; background-color: '+s+'"')+">"+a+"</div>":"";var l=n[o],p=n[i];t=a+'<div class="content">'+("number"==typeof l?f.toFixed(l):String(l))+": "+("number"==typeof p?f.toFixed(p):String(p))+"</div>"}}return t},t.prototype.listSeriesItems=function(e){var t=this;if(this.data.length&&this.xField&&this.yFields.length){var o=this.fills,i=this.strokes,r=this.id;this.yFields.forEach((function(n,s){e.push({id:r,itemId:n,enabled:t.enabled.get(n)||!1,label:{text:t.yFieldNames[s]||t.yFields[s]},marker:{fill:o[s%o.length],stroke:i[s%i.length]}})}))}},t.prototype.toggleSeriesItem=function(e,t){this.enabled.set(e,t);var o=[];this.enabled.forEach((function(e,t){e&&o.push(t)})),this.groupScale.domain=o,this.scheduleData()},t.className="BarSeries",t}(d.Series);t.BarSeries=v},function(e,t,o){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var n=o(16),s=o(34),a=o(74),l=o(101),p=o(28),u=o(42),c=o(163),d=o(73),h=o(55),f=o(53),g=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.areaGroup=t.group.appendChild(new n.Group),t.strokeGroup=t.group.appendChild(new n.Group),t.markerGroup=t.group.appendChild(new n.Group),t.areaSelection=s.Selection.select(t.areaGroup).selectAll(),t.strokeSelection=s.Selection.select(t.strokeGroup).selectAll(),t.markerSelection=s.Selection.select(t.markerGroup).selectAll(),t.enabled=new Map,t._fills=h.default.fills,t._strokes=["white"],t._fillOpacity=1,t._strokeOpacity=1,t.xData=[],t.yData=[],t.ySums=[],t.domainX=[],t.domainY=[],t._xField="",t._yFields=[],t._yFieldNames=[],t._normalizedTo=NaN,t._strokeWidth=3,t._marker=!1,t._markerSize=8,t._markerStrokeWidth=2,t._shadow=void 0,t.highlightStyle={fill:"yellow"},t}return r(t,e),Object.defineProperty(t.prototype,"fills",{get:function(){return this._fills},set:function(e){this._fills=e,this.scheduleData()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"strokes",{get:function(){return this._strokes},set:function(e){this._strokes=e,this.scheduleData()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"fillOpacity",{get:function(){return this._fillOpacity},set:function(e){this._fillOpacity!==e&&(this._fillOpacity=e,this.scheduleLayout())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"strokeOpacity",{get:function(){return this._strokeOpacity},set:function(e){this._strokeOpacity!==e&&(this._strokeOpacity=e,this.scheduleLayout())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"chart",{get:function(){return this._chart},set:function(e){this._chart!==e&&(this._chart=e,this.scheduleData())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"xField",{get:function(){return this._xField},set:function(e){this._xField!==e&&(this._xField=e,this.xData=[],this.scheduleData())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"yFields",{get:function(){return this._yFields},set:function(e){this._yFields=e;var t=this.enabled;t.clear(),e.forEach((function(e){return t.set(e,!0)})),this.yData=[],this.scheduleData()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"yFieldNames",{get:function(){return this._yFieldNames},set:function(e){this._yFieldNames=e,this.update()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"normalizedTo",{get:function(){return this._normalizedTo},set:function(e){0===e&&(e=NaN);var t=Math.abs(e);this._normalizedTo!==t&&(this._normalizedTo=t,this.scheduleData())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"strokeWidth",{get:function(){return this._strokeWidth},set:function(e){this._strokeWidth!==e&&(this._strokeWidth=e,this.update())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"marker",{get:function(){return this._marker},set:function(e){this._marker!==e&&(this._marker=e,this.update())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"markerSize",{get:function(){return this._markerSize},set:function(e){this._markerSize!==e&&(this._markerSize=Math.abs(e),this.update())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"markerStrokeWidth",{get:function(){return this._markerStrokeWidth},set:function(e){this._markerStrokeWidth!==e&&(this._markerStrokeWidth=e,this.update())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"shadow",{get:function(){return this._shadow},set:function(e){this._shadow!==e&&(this._shadow=e,this.update())},enumerable:!0,configurable:!0}),t.prototype.highlightNode=function(e){e instanceof d.Arc&&(this.highlightedNode=e,this.scheduleLayout())},t.prototype.dehighlightNode=function(){this.highlightedNode=void 0,this.scheduleLayout()},t.prototype.processData=function(){var e=this.chart,t=this.xField,o=this.yFields,i=this.data;if(!(e&&e.xAxis&&e.yAxis))return!1;t&&o.length||(this._data=i=[]);var r=this.enabled,n=this.normalizedTo,s=e.xAxis.scale instanceof l.default,a=this.xData=i.map((function(e){return e[t]})),p=this.ySums=[],u=this.yData=i.map((function(e,t){var i=[],n=0;return o.forEach((function(t){var o=e[t];isFinite(o)&&r.get(t)||(o=0),o<0&&(o=Math.abs(o)),o>0&&(n+=o),i.push(o)})),p[t]=n,i})),c=1/0,d=-1/0;isFinite(n)?(c=0,d=n,u.forEach((function(e,t){var o=p[t];e.forEach((function(t,i){return e[i]=t/o*n}))}))):(c=Math.min.apply(Math,[0].concat(u.map((function(e){var t=0;return e.forEach((function(e){e<0&&(t-=e)})),t})))),d=Math.max.apply(Math,u.map((function(e){var t=0;return e.forEach((function(e){e>0&&(t+=e)})),t})))),c!==d&&isFinite(c)&&isFinite(d)||(c=0,d=1);var h=s?f.numericExtent(a)||[0,1]:a;if(s){var g=h,y=g[0],v=g[1];y===v&&(h[0]=y-1,h[1]=v+1)}return this.domainX=h,this.domainY=[c,d],e&&e.updateAxes(),!0},t.prototype.getDomainX=function(){return this.xData},t.prototype.getDomainY=function(){return this.domainY},t.prototype.update=function(){var e=this,t=this.chart,o=this.group.visible=this.visible;if(t&&o&&!t.dataPending&&!t.layoutPending&&t.xAxis&&t.yAxis){for(var i=this.data.length,r=t.xAxis,n=t.yAxis,s=r.scale,a=n.scale,l=(s.bandwidth||0)/2,u=(a.bandwidth||0)/2,h=this.yFields,f=this.enabled,g=this.fills,y=this.strokes,v=this.fillOpacity,m=this.strokeOpacity,C=this.strokeWidth,w=this.data,_=this.xData,b=this.yData,E=this.marker,R=this.markerSize,P=this.markerStrokeWidth,O=[],S=[],A=2*i-1,T=0;T<i;T++)for(var D=_[T],x=b[T],F=x.length,M=s.convert(D)+l,N=0,L=void 0,I=0;I<F;I++){L=x[I];var G=a.convert(N+L)+u,k=h[I],W=w[T],V=W[k];E&&S.push({seriesDatum:W,yValue:V,yField:k,x:M,y:G,fill:g[I%g.length],stroke:y[I%y.length],radius:R/2,text:this.yFieldNames[I]});var H=(O[I]||(O[I]={yField:k,points:[]})).points;H[T]={x:M,y:G},H[A-T]={x:M,y:a.convert(N)+u},N+=L}var j=this.areaSelection.setData(O),B=this.strokeSelection.setData(O),U=this.markerSelection.setData(S);j.exit.remove(),B.exit.remove(),U.exit.remove();var z=j.enter.append(c.Path).each((function(e){e.stroke=void 0,e.pointerEvents=p.PointerEvents.None})),Y=B.enter.append(c.Path).each((function(e){e.fill=void 0,e.lineJoin="round",e.lineCap="round",e.pointerEvents=p.PointerEvents.None})),K=U.enter.append(d.Arc).each((function(e){return e.type=d.ArcType.Chord})),X=this.highlightedNode,q=j.merge(z),Q=B.merge(Y),$=U.merge(K);q.each((function(t,o,i){var r=t.path;t.fill=g[i%g.length],t.fillOpacity=v,t.fillShadow=e.shadow,t.visible=!!f.get(o.yField),r.clear();for(var n=o.points,s=n.length,a=0;a<s;a++){var l=n[a],p=l.x,u=l.y;a?r.lineTo(p,u):r.moveTo(p,u)}r.closePath()})),Q.each((function(e,t,o){var r=e.path;e.stroke=y[o%y.length],e.strokeWidth=C,e.visible=!!f.get(t.yField),e.strokeOpacity=m,r.clear();for(var n=t.points,s=0;s<i;s++){var a=n[s],l=a.x,p=a.y;s?r.lineTo(l,p):r.moveTo(l,p)}})),$.each((function(t,o){t.centerX=o.x,t.centerY=o.y,t.radiusX=o.radius,t.radiusY=o.radius,t.fill=t===X&&void 0!==e.highlightStyle.fill?e.highlightStyle.fill:o.fill,t.stroke=t===X&&void 0!==e.highlightStyle.stroke?e.highlightStyle.stroke:o.stroke,t.strokeWidth=P,t.visible=o.radius>0&&!!f.get(o.yField)})),this.areaSelection=q,this.strokeSelection=Q,this.markerSelection=$}},t.prototype.getTooltipHtml=function(e){var t="";if(this.tooltipEnabled){var o=this.xField,i=e.yField,r=this.yFields.indexOf(i),n=this.fills[r%this.fills.length],s=e.text;if(this.tooltipRenderer&&o)t=this.tooltipRenderer({datum:e.seriesDatum,xField:o,yField:i,title:s,color:n});else{s=s?'<div class="title" '+('style="color: white; background-color: '+n+'"')+">"+s+"</div>":"";var a=e.seriesDatum,l=a[o],p=a[i];t=s+'<div class="content">'+("number"==typeof l?u.toFixed(l):String(l))+": "+("number"==typeof p?u.toFixed(p):String(p))+"</div>"}}return t},t.prototype.listSeriesItems=function(e){var t=this;if(this.data.length&&this.xField&&this.yFields.length){var o=this.fills,i=this.strokes,r=this.id;this.yFields.forEach((function(n,s){e.push({id:r,itemId:n,enabled:t.enabled.get(n)||!1,label:{text:t.yFieldNames[s]||t.yFields[s]},marker:{fill:o[s%o.length],stroke:i[s%i.length]}})}))}},t.prototype.toggleSeriesItem=function(e,t){this.enabled.set(e,t),this.scheduleData()},t.className="AreaSeries",t}(a.Series);t.AreaSeries=g},function(e,t,o){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var n,s=o(16),a=o(104),l=o(52),p=o(34),u=o(102),c=o(54),d=o(55),h=o(228),f=o(74),g=o(28),y=o(42),v=o(1);!function(e){e[e.Sector=0]="Sector",e[e.Callout=1]="Callout",e[e.Label=2]="Label"}(n||(n={}));var m=function(e){function t(){var t,o=null!==e&&e.apply(this,arguments)||this;return o.radiusScale=u.default(),o.groupSelection=p.Selection.select(o.group).selectAll(),o.groupSelectionData=[],o.enabled=[],o.angleScale=((t=u.default()).domain=[0,1],t.range=[-Math.PI,Math.PI].map((function(e){return e+Math.PI/2})),t),o._title=void 0,o._calloutColors=d.default.strokes,o._calloutStrokeWidth=1,o._calloutLength=10,o._labelOffset=3,o._labelFontStyle=void 0,o._labelFontWeight=void 0,o._labelFontSize=12,o._labelFontFamily="Verdana, sans-serif",o._labelColor="black",o._labelMinAngle=20,o._angleField="",o._radiusField="",o._labelField="",o._labelEnabled=!0,o._fills=d.default.fills,o._strokes=d.default.strokes,o._fillOpacity=1,o._strokeOpacity=1,o._rotation=0,o._outerRadiusOffset=0,o._innerRadiusOffset=0,o._strokeWidth=1,o._shadow=void 0,o.highlightStyle={fill:"yellow"},o}return r(t,e),Object.defineProperty(t.prototype,"data",{get:function(){return this._data},set:function(e){this._data=e;var t=this.enabled;t.length=e.length;for(var o=0,i=e.length;o<i;o++)t[o]=!0;this.scheduleData()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){return this._title},set:function(e){var t=this,o=this._title;o!==e&&(o&&(o.onLayoutChange=void 0,this.group.removeChild(o.node)),e&&(e.node.textBaseline="bottom",e.onLayoutChange=function(){return t.scheduleLayout()},this.group.appendChild(e.node)),this._title=e,this.scheduleLayout())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"calloutColors",{get:function(){return this._calloutColors},set:function(e){this._calloutColors!==e&&(this._calloutColors=e,this.scheduleLayout())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"calloutStrokeWidth",{get:function(){return this._calloutStrokeWidth},set:function(e){this._calloutStrokeWidth!==e&&(this._calloutStrokeWidth=e,this.scheduleLayout())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"calloutLength",{get:function(){return this._calloutLength},set:function(e){this._calloutLength!==e&&(this._calloutLength=e,this.scheduleLayout())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"labelOffset",{get:function(){return this._labelOffset},set:function(e){this._labelOffset!==e&&(this._labelOffset=e,this.scheduleLayout())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"labelFontStyle",{get:function(){return this._labelFontStyle},set:function(e){this._labelFontStyle!==e&&(this._labelFontStyle=e,this.scheduleLayout())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"labelFontWeight",{get:function(){return this._labelFontWeight},set:function(e){this._labelFontWeight!==e&&(this._labelFontWeight=e,this.scheduleLayout())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"labelFontSize",{get:function(){return this._labelFontSize},set:function(e){this._labelFontSize!==e&&(this._labelFontSize=e,this.scheduleLayout())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"labelFontFamily",{get:function(){return this._labelFontFamily},set:function(e){this._labelFontFamily!==e&&(this._labelFontFamily=e,this.scheduleLayout())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"labelColor",{get:function(){return this._labelColor},set:function(e){this._labelColor!==e&&(this._labelColor=e,this.scheduleLayout())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"labelMinAngle",{get:function(){return this._labelMinAngle},set:function(e){this._labelMinAngle!==e&&(this._labelMinAngle=e,this.scheduleData())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"chart",{get:function(){return this._chart},set:function(e){this._chart!==e&&(this._chart=e,this.scheduleLayout())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"angleField",{get:function(){return this._angleField},set:function(e){this._angleField!==e&&(this._angleField=e,this.scheduleData())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"radiusField",{get:function(){return this._radiusField},set:function(e){this._radiusField!==e&&(this._radiusField=e,this.scheduleData())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"labelField",{get:function(){return this._labelField},set:function(e){this._labelField!==e&&(this._labelField=e,this.scheduleData())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"labelEnabled",{get:function(){return this._labelEnabled},set:function(e){this._labelEnabled!==e&&(this._labelEnabled=e,this.scheduleData())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"fills",{get:function(){return this._fills},set:function(e){this._fills=e,this.strokes=e.map((function(e){return v.Color.fromString(e).darker().toHexString()})),this.scheduleData()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"strokes",{get:function(){return this._strokes},set:function(e){this._strokes=e,this.calloutColors=e,this.scheduleData()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"fillOpacity",{get:function(){return this._fillOpacity},set:function(e){this._fillOpacity!==e&&(this._fillOpacity=e,this.scheduleLayout())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"strokeOpacity",{get:function(){return this._strokeOpacity},set:function(e){this._strokeOpacity!==e&&(this._strokeOpacity=e,this.scheduleLayout())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rotation",{get:function(){return this._rotation},set:function(e){this._rotation!==e&&(this._rotation=e,this.scheduleData())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"outerRadiusOffset",{get:function(){return this._outerRadiusOffset},set:function(e){this._outerRadiusOffset!==e&&(this._outerRadiusOffset=e,this.scheduleLayout())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"innerRadiusOffset",{get:function(){return this._innerRadiusOffset},set:function(e){this._innerRadiusOffset!==e&&(this._innerRadiusOffset=e,this.scheduleData())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"strokeWidth",{get:function(){return this._strokeWidth},set:function(e){this._strokeWidth!==e&&(this._strokeWidth=e,this.scheduleLayout())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"shadow",{get:function(){return this._shadow},set:function(e){this._shadow!==e&&(this._shadow=e,this.scheduleLayout())},enumerable:!0,configurable:!0}),t.prototype.highlightNode=function(e){e instanceof h.Sector&&(this.highlightedNode=e,this.scheduleLayout())},t.prototype.dehighlightNode=function(){this.highlightedNode=void 0,this.scheduleLayout()},t.prototype.getDomainX=function(){return this.angleScale.domain},t.prototype.getDomainY=function(){return this.radiusScale.domain},t.prototype.processData=function(){var e,t=this,o=this.data,i=this.enabled,r=o.map((function(e,o){return i[o]&&+e[t.angleField]||0})),n=r.reduce((function(e,t){return e+t}),0),s=(e=0,r.map((function(t){return e+=t/n}))),a=this.labelEnabled&&this.labelField,l=[];a&&(l=o.map((function(e){return String(e[a])})));var p=this.radiusField,u=!!p&&!this.innerRadiusOffset,d=[];if(u){d=o.map((function(e){return Math.abs(e[p])}));var h=Math.max.apply(Math,d);d.forEach((function(e,t,o){return o[t]=e/h}))}var f=this.angleScale,g=this.groupSelectionData;g.length=0;var y=c.toRadians(this.rotation),v=Math.PI/2,m=0;return s.reduce((function(e,i){var r,n,s=u?d[m]:1,p=f.convert(e)+y,h=f.convert(i)+y,C=(p+h)/2,w=Math.abs(h-p),_=Math.cos(C),b=Math.sin(C),E=c.toRadians(t.labelMinAngle),R=a&&w>E,P=c.normalizeAngle180(C),O=-3*Math.PI/4;return P>=O&&P<(O+=v)?(r="center",n="bottom"):P>=O&&P<(O+=v)?(r="left",n="middle"):P>=O&&P<(O+=v)?(r="center",n="hanging"):(r="right",n="middle"),g.push({index:m,seriesDatum:o[m],radius:s,startAngle:p,endAngle:h,midAngle:C,midCos:_,midSin:b,label:R?{text:l[m],textAlign:r,textBaseline:n}:void 0}),m++,i}),0),!0},t.prototype.update=function(){var e=this,t=this.chart,o=this.group.visible=this.visible&&this.enabled.indexOf(!0)>=0;if(t&&o&&!t.dataPending&&!t.layoutPending){var i=this.fills,r=this.strokes,p=this.fillOpacity,u=this.strokeOpacity,c=this.calloutColors,d=this.outerRadiusOffset,f=this.innerRadiusOffset,y=this.radiusScale;y.range=[0,t.radius],this.group.translationX=t.centerX,this.group.translationY=t.centerY;var v=this.title;v&&(v.node.translationY=-t.radius-d-2,v.node.visible=v.enabled);var m=this.groupSelection.setData(this.groupSelectionData);m.exit.remove();var C=m.enter.append(s.Group);C.append(h.Sector).each((function(e){return e.tag=n.Sector})),C.append(a.Line).each((function(e){e.tag=n.Callout,e.pointerEvents=g.PointerEvents.None})),C.append(l.Text).each((function(e){e.tag=n.Label,e.pointerEvents=g.PointerEvents.None}));var w=m.merge(C),_=1/0,b=[],E=[],R=this.highlightedNode;w.selectByTag(n.Sector).each((function(t,o,n){var s=y.convert(o.radius),a=Math.max(0,s+d);_>a&&(_=a),t.outerRadius=a,t.innerRadius=Math.max(0,f?s+f:0),t.startAngle=o.startAngle,t.endAngle=o.endAngle,t.fill=t===R&&void 0!==e.highlightStyle.fill?e.highlightStyle.fill:i[n%i.length],t.stroke=t===R&&void 0!==e.highlightStyle.stroke?e.highlightStyle.stroke:r[n%r.length],t.fillOpacity=p,t.strokeOpacity=u,t.centerOffset=t===R&&void 0!==e.highlightStyle.centerOffset?e.highlightStyle.centerOffset:0,t.fillShadow=e.shadow,t.strokeWidth=e.strokeWidth,t.lineJoin="round",b.push(a),E.push(t.centerOffset)}));var P=this.calloutLength;w.selectByTag(n.Callout).each((function(t,o,i){if(o.label){var r=E[i]+b[i];t.strokeWidth=e.calloutStrokeWidth,t.stroke=c[i%c.length],t.x1=o.midCos*r,t.y1=o.midSin*r,t.x2=o.midCos*(r+P),t.y2=o.midSin*(r+P)}else t.stroke=void 0}));var O=this.labelOffset;w.selectByTag(n.Label).each((function(t,o,i){var r=o.label;if(r){var n=b[i],s=E[i]+n+P+O;t.fontStyle=e.labelFontStyle,t.fontWeight=e.labelFontWeight,t.fontSize=e.labelFontSize,t.fontFamily=e.labelFontFamily,t.text=r.text,t.x=o.midCos*s,t.y=o.midSin*s,t.fill=e.labelColor,t.textAlign=r.textAlign,t.textBaseline=r.textBaseline}else t.fill=void 0})),this.groupSelection=w}},t.prototype.getTooltipHtml=function(e){var t="",o=this.angleField;if(!o)return t;var i=this.title?this.title.text:void 0,r=this.fills[e.index%this.fills.length];if(this.tooltipRenderer)t=this.tooltipRenderer({datum:e.seriesDatum,angleField:o,radiusField:this.radiusField,labelField:this.labelField,title:i,color:r});else{i=i?'<div class="title" '+('style="color: white; background-color: '+r+'"')+">"+i+"</div>":"";var n=this.labelField?e.seriesDatum[this.labelField]+": ":"",s=e.seriesDatum[o];t=i+'<div class="content">'+n+("number"==typeof s?y.toFixed(s):s.toString())+"</div>"}return t},t.prototype.listSeriesItems=function(e){var t=this,o=this.labelField;if(this.data.length&&o){var i=this.fills,r=this.strokes,n=this.id;this.data.forEach((function(s,a){e.push({id:n,itemId:a,enabled:t.enabled[a],label:{text:String(s[o])},marker:{fill:i[a%i.length],stroke:r[a%r.length]}})}))}},t.prototype.toggleSeriesItem=function(e,t){this.enabled[e]=t,this.scheduleData()},t.className="PieSeries",t}(f.Series);t.PieSeries=m},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r=o(16),n=o(34),s=o(104),a=o(54),l=o(52),p=o(29),u=o(98),c=o(103),d=o(310);!function(e){e[e.Tick=0]="Tick",e[e.GridLine=1]="GridLine"}(i||(i={}));var h=function(){function e(){this.id=this.createId(),this.scale=new c.BandScale,this.tickScale=new c.BandScale,this.group=new r.Group,this.translationX=0,this.translationY=0,this.rotation=0,this.lineWidth=1,this.lineColor="rgba(195, 195, 195, 1)",this.tickWidth=1,this.tickSize=6,this.labelPadding=5,this.labelGrid=!1,this.tickColor="rgba(195, 195, 195, 1)",this.labelFontStyle="",this.labelFontWeight="",this.labelFontSize=12,this.labelFontFamily="Verdana, sans-serif",this.title=void 0,this.labelColor="rgba(87, 87, 87, 1)",this._gridLength=0,this._gridStyle=[{stroke:"rgba(219, 219, 219, 1)",lineDash:[4,2]}],this.labelRotation=0,this.mirrorLabels=!1,this.parallelLabels=!1;var e=this.scale;e.paddingOuter=.1,e.paddingInner=2*e.paddingOuter;var t=this.tickScale;t.paddingInner=1,t.paddingOuter=0,this.gridLineSelection=n.Selection.select(this.group).selectAll(),this.axisLineSelection=n.Selection.select(this.group).selectAll(),this.separatorSelection=n.Selection.select(this.group).selectAll(),this.labelSelection=n.Selection.select(this.group).selectAll()}return e.prototype.createId=function(){var e=this.constructor,t=e.className;if(!t)throw new Error("The "+e+" is missing the 'className' property.");return t+"-"+(e.id=(e.id||0)+1)},Object.defineProperty(e.prototype,"domain",{get:function(){return this.scale.domain},set:function(e){this.scale.domain=e;var t=d.ticksToTree(e);this.tickTreeLayout=d.treeLayout(t);var o=e.slice();o.push(""),this.tickScale.domain=o,this.resizeTickTree()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"range",{get:function(){return this.scale.range},set:function(e){this.scale.range=e,this.tickScale.range=e,this.resizeTickTree()},enumerable:!0,configurable:!0}),e.prototype.resizeTickTree=function(){var e=this.scale,t=e.domain.length?[e.convert(e.domain[0]),e.convert(e.domain[e.domain.length-1])]:e.range,o=this.tickTreeLayout,i=this.lineHeight;o&&o.resize(Math.abs(t[1]-t[0]),o.depth*i,(Math.min(t[0],t[1])||0)+(e.bandwidth||0)/2,-o.depth*i)},Object.defineProperty(e.prototype,"lineHeight",{get:function(){return 1.5*this.labelFontSize},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"gridLength",{get:function(){return this._gridLength},set:function(e){(this._gridLength&&!e||!this._gridLength&&e)&&(this.gridLineSelection=this.gridLineSelection.remove().setData([]),this.labelSelection=this.labelSelection.remove().setData([])),this._gridLength=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"gridStyle",{get:function(){return this._gridStyle},set:function(e){e.length&&(this._gridStyle=e)},enumerable:!0,configurable:!0}),e.prototype.update=function(){var e=this,t=this.group,o=this.scale,i=this.tickScale,r=Math.abs(o.range[1]-o.range[0])/o.domain.length||0,n=this.parallelLabels,p=a.toRadians(this.rotation),u=Math.abs(Math.cos(p))<1e-8,c=a.normalizeAngle360(a.toRadians(this.labelRotation));t.translationX=this.translationX,t.translationY=this.translationY,t.rotation=p;var d=this.title,h=this.lineHeight,f=this.tickTreeLayout,g=o.ticks(),y=f?f.nodes:[],v=!!f&&f.depth>1,m=i.ticks(),C=this.mirrorLabels?1:-1,w=a.normalizeAngle360(p),_=!c&&w>=0&&w<=Math.PI?-1:1,b=a.normalizeAngle360(p-Math.PI/2),E=!c&&b>=0&&b<=Math.PI?-1:1,R=this.gridLineSelection.setData(this.gridLength?m:[]);R.exit.remove();var P=R.enter.append(s.Line),O=R.merge(P),S=this.labelSelection.setData(y);S.exit.remove();var A=S.enter.append(l.Text),T=S.merge(A),D=this.labelFormatter,x=0;T.each((function(t,o,i){t.fontStyle=e.labelFontStyle,t.fontWeight=e.labelFontWeight,t.fontSize=e.labelFontSize,t.fontFamily=e.labelFontFamily,t.fill=e.labelColor,t.textBaseline=-1===_?"bottom":"hanging",d&&0===i?(t.text=d.text,t.fontSize=d.fontSize,t.fontStyle=d.fontStyle,t.fontWeight=d.fontWeight,t.fontFamily=d.fontFamily,t.textBaseline="hanging"):t.text=D?D({value:String(o.label),index:i}):String(o.label),t.textAlign="center",t.translationX=o.screenY-.25*e.labelFontSize,t.translationY=o.screenX;var r=t.getBBox();r&&r.width>x&&(x=r.width)}));var F=C*this.labelPadding,M=n?_*Math.PI/2:-1===E?Math.PI:0,N=this.labelGrid,L=[];T.each((function(t,o,i){if(t.x=F,t.rotationCenterX=F,o.children.length?(t.translationX-=x-h+e.labelPadding,t.rotation=u?M:-Math.PI/2):(t.rotation=c,t.textAlign="end",t.textBaseline="middle"),o.parent&&v){var n=o.children.length?o.screenX-o.leafCount*r/2:o.screenX-r/2;o.children.length?L.push({y:n,x1:-x+o.screenY+h/2,x2:-x+o.screenY-h/2,toString:function(){return String(i)}}):o.number&&!N||L.push({y:n,x1:0,x2:-x-2*e.labelPadding,toString:function(){return String(i)}})}}));var I=0;L.forEach((function(e){return I=Math.min(I,e.x2)})),L.push({y:Math.max(o.range[0],o.range[1]),x1:0,x2:I,toString:function(){return String(L.length)}});var G=this.separatorSelection.setData(L);G.exit.remove();var k=G.enter.append(s.Line),W=G.merge(k);this.separatorSelection=W,W.each((function(t,o,i){t.x1=o.x1,t.x2=o.x2,t.y1=o.y,t.y2=o.y,t.stroke=e.tickColor,t.fill=void 0,t.strokeWidth=1})),this.gridLineSelection=O,this.labelSelection=T;for(var V=f?f.depth+1:1,H=[],j=0;j<V;j++)H.push(j);var B=this.axisLineSelection.setData(H);B.exit.remove();var U=B.enter.append(s.Line),z=B.merge(U);if(this.axisLineSelection=z,z.each((function(t,i,r){var n=r>0?-x-2*e.labelPadding-(r-1)*h:0;t.x1=n,t.x2=n,t.y1=o.range[0],t.y2=o.range[1],t.strokeWidth=e.lineWidth,t.stroke=e.lineColor,t.visible=g.length>0&&(0===r||N&&v)})),this.gridLength){var Y=this.gridStyle,K=Y.length;O.each((function(t,r,n){var s=Math.round(i.convert(r));t.x1=0,t.x2=-C*e.gridLength,t.y1=s,t.y2=s,t.visible=Math.abs(t.parent.translationY-o.range[0])>1;var a=Y[n%K];t.stroke=a.stroke,t.strokeWidth=e.tickWidth,t.lineDash=a.lineDash,t.fill=void 0}))}},e.prototype.getBBox=function(e){void 0===e&&(e=!0);var t=1/0,o=-1/0,i=1/0,r=-1/0;return this.labelSelection.each((function(n,s,a){if(a>0||e){n.computeTransformMatrix();var l=u.Matrix.flyweight(n.matrix),p=n.parent;p.computeTransformMatrix(),l.preMultiplySelf(p.matrix);var c=n.getBBox();if(c){var d=l.transformBBox(c);t=Math.min(t,d.x),o=Math.max(o,d.x+d.width),i=Math.min(i,d.y),r=Math.max(r,d.y+d.height)}}})),new p.BBox(t,i,o-t,r-i)},e.className="GroupedCategoryAxis",e}();t.GroupedCategoryAxis=h},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t,o){void 0===e&&(e=""),void 0===o&&(o=0),this.x=0,this.y=0,this.subtreeLeft=NaN,this.subtreeRight=NaN,this.screenX=0,this.screenY=0,this.children=[],this.leafCount=0,this.prelim=0,this.mod=0,this.ancestor=this,this.change=0,this.shift=0,this.label=e,this.parent=t,this.depth=t?t.depth+1:0,this.number=o}return e.prototype.getLeftSibling=function(){return this.number>0&&this.parent?this.parent.children[this.number-1]:void 0},e.prototype.getLeftmostSibling=function(){return this.number>0&&this.parent?this.parent.children[0]:void 0},e.prototype.nextLeft=function(){return this.children?this.children[0]:this.thread},e.prototype.nextRight=function(){return this.children?this.children[this.children.length-1]:this.thread},e.prototype.getSiblings=function(){var e=this;return this.parent?this.parent.children.filter((function(t,o){return o!==e.number})):[]},e}();function r(e,t,o){var i=o/(t.number-e.number);t.change-=i,t.shift+=o,e.change+=i,t.prelim+=o,t.mod+=o}function n(e,t,o){return t.getSiblings().indexOf(e.ancestor)>=0?e.ancestor:o}function s(e,t){var o=e.children;if(o.length){var i=o[0];o.forEach((function(e){s(e,t),i=function(e,t,o){var i=e.getLeftSibling();if(i){for(var s=e,a=e,l=i,p=a.getLeftmostSibling(),u=a.mod,c=s.mod,d=l.mod,h=p.mod;l.nextRight()&&a.nextLeft();){l=l.nextRight(),a=a.nextLeft(),p=p.nextLeft(),(s=s.nextRight()).ancestor=e;var f=l.prelim+d-(a.prelim+u)+o;f>0&&(r(n(l,e,t),e,f),u+=f,c+=f),d+=l.mod,u+=a.mod,h+=p.mod,c+=s.mod}l.nextRight()&&!s.nextRight()?(s.thread=l.nextRight(),s.mod+=d-c):(a.nextLeft()&&!p.nextLeft()&&(p.thread=a.nextLeft(),p.mod+=u-h),t=e)}return t}(e,i,t)})),function(e){var t=e.children;if(t)for(var o=0,i=0,r=t.length-1;r>=0;r--){var n=t[r];n.prelim+=o,n.mod+=o,i+=n.change,o+=n.shift+i}}(e);var a=(o[0].prelim+o[o.length-1].prelim)/2;(l=e.getLeftSibling())?(e.prelim=l.prelim+t,e.mod=e.prelim-a):e.prelim=a}else{var l=e.getLeftSibling();e.prelim=l?l.prelim+t:0}}t.ticksToTree=function(e,t){void 0===t&&(t=!0);var o=new i,r=0;return t&&e.forEach((function(e){return r=Math.max(r,e.labels.length)})),e.forEach((function(e){if(t)for(;e.labels.length<r;)e.labels.unshift("");!function(e,t){var o=t.labels.slice().reverse(),r=o.length-1;o.forEach((function(t,o){var n=e.children,s=n.find((function(e){return e.label===t})),a=o!==r;if(s&&a)e=s;else{var l=new i(t,e);l.number=n.length,n.push(l),a&&(e=l)}}))}(o,e)})),o};var a=function(){function e(){this.top=1/0,this.right=-1/0,this.bottom=-1/0,this.left=1/0}return e.prototype.update=function(e,t){var o=t(e),i=o.x,r=o.y;i>this.right&&(this.right=i),i<this.left&&(this.left=i),r>this.bottom&&(this.bottom=r),r<this.top&&(this.top=r)},e}();t.treeLayout=function(e){var t=new l;return s(e,1),function e(t,o,i){t.x=t.prelim+o,t.y=t.depth,i.update(t),t.children.forEach((function(r){return e(r,o+t.mod,i)}))}(e,-e.prelim,t),function e(t){var o=t.children,i=0;o.forEach((function(t){e(t),t.children.length?i+=t.leafCount:i++})),t.leafCount=i,o.length?(t.subtreeLeft=o[0].subtreeLeft,t.subtreeRight=o[t.children.length-1].subtreeRight,t.x=(t.subtreeLeft+t.subtreeRight)/2):(t.subtreeLeft=t.x,t.subtreeRight=t.x)}(e),t};var l=function(){function e(){this.dimensions=new a,this.leafCount=0,this.nodes=[],this.leafNodes=[],this.nonLeafNodes=[],this.depth=0}return e.prototype.update=function(e){this.dimensions.update(e,(function(e){return{x:e.x,y:e.y}})),e.children.length?this.nonLeafNodes.push(e):(this.leafCount++,this.leafNodes.push(e)),e.depth>this.depth&&(this.depth=e.depth),this.nodes.push(e)},e.prototype.resize=function(e,t,o,i){void 0===o&&(o=0),void 0===i&&(i=0);var r=this.leafCount-1,n=this.depth,s=this.dimensions,l=1,p=1;if(e>0&&r){var u=(s.right-s.left)/r;l=e/r/u}if(t>0&&n){var c=(s.bottom-s.top)/n;p=t/n/c}var d=new a;this.nodes.forEach((function(e){e.screenX=e.x*l,e.screenY=e.y*p,d.update(e,(function(e){return{x:e.screenX,y:e.screenY}}))}));var h=-d.left,f=-d.top;this.nodes.forEach((function(e){e.screenX+=h+o,e.screenY+=f+i}))},e}();t.TreeLayout=l},function(e,t,o){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var n=o(162),s=o(224),a=o(53),l=o(51),p=o(16),u=function(e){function t(t){var o=e.call(this,t)||this;o.axisAutoPadding=new l.Padding,o._seriesRoot=new p.Group,o._layout=s.CartesianChartLayout.Vertical;var i=t.xAxis,r=t.yAxis;return o._xAxis=i,o._yAxis=r,o.scene.root.append([i.group,r.group,o.seriesRoot]),o.scene.root.append(o.legend.group),o}return r(t,e),Object.defineProperty(t.prototype,"seriesRoot",{get:function(){return this._seriesRoot},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"xAxis",{get:function(){return this._xAxis},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"yAxis",{get:function(){return this._yAxis},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"series",{get:function(){return this._series},set:function(e){var t=this;this.removeAllSeries(),e.forEach((function(e){t.addSeries(e)}))},enumerable:!0,configurable:!0}),t.prototype.performLayout=function(){if(!this.dataPending&&this.xAxis&&this.yAxis){var e={x:0,y:0,width:this.width,height:this.height},t=this.captionAutoPadding;if(e.y+=t,e.height-=t,this.legend.enabled&&this.legend.data.length){var o=this.legendAutoPadding;e.x+=o.left,e.y+=o.top,e.width-=o.left+o.right,e.height-=o.top+o.bottom;var i=this.legendPadding;switch(this.legendPosition){case"right":e.width-=i;break;case"bottom":e.height-=i;break;case"left":e.x+=i,e.width-=i;break;case"top":e.y+=i,e.height-=i}}var r=this.padding;e.x+=r.left,e.y+=r.top,e.width-=r.left+r.right,e.height-=r.top+r.bottom;var n=this.axisAutoPadding;e.x+=n.left,e.y+=n.top,e.width-=n.left+n.right,e.height-=n.top+n.bottom;var s=this.xAxis,a=this.yAxis;s.range=[0,e.width],s.rotation=-90,s.translationX=Math.floor(e.x),s.translationY=Math.floor(e.y+e.height+1),s.parallelLabels=!0,s.gridLength=e.height,a.range=[e.height,0],a.translationX=Math.floor(e.x),a.translationY=Math.floor(e.y),a.gridLength=e.width,this.updateAxes(),this.series.forEach((function(t){t.group.translationX=Math.floor(e.x),t.group.translationY=Math.floor(e.y),t.update()})),this.positionCaptions(),this.positionLegend()}},Object.defineProperty(t.prototype,"layout",{get:function(){return this._layout},set:function(e){this._layout!==e&&(this._layout=e,this.layoutPending=!0)},enumerable:!0,configurable:!0}),t.prototype.updateAxes=function(){var e,t,o=this.layout===s.CartesianChartLayout.Horizontal,i=o?this.yAxis:this.xAxis,r=o?this.xAxis:this.yAxis;if(i&&r){var n=[],l=[],p=void 0;this.series.forEach((function(e,t){if(e.visible){var o=e.getDomainX(),i=e.getDomainY(),r=void 0===p;r&&(p="number"==typeof o[0]),(p||r)&&n.push(o),l.push(i)}}));var u=(e=new Array).concat.apply(e,n),c=(t=new Array).concat.apply(t,l);i.domain=a.numericExtent(u)||u,r.domain=a.numericExtent(c)||c,i.update(),r.update();var d=this.xAxis.getBBox(),h=this.yAxis.getBBox(),f=Math.floor(h.width);this.axisAutoPadding.left!==f&&(this.axisAutoPadding.left=f,this.layoutPending=!0);f=Math.floor(o?d.width:d.height);this.axisAutoPadding.bottom!==f&&(this.axisAutoPadding.bottom=f,this.layoutPending=!0)}},t}(n.Chart);t.GroupedCategoryChart=u},function(e,t,o){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),n=this&&this.__decorate||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},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(1),l=o(160),p=o(71),u=o(313),c=o(13),d=function(e){function t(t){var o=e.call(this)||this;return o.activePanels=[],o.chartController=t,o.chartProxy=t.getChartProxy(),o}return r(t,e),t.prototype.init=function(){this.setTemplate(t.TEMPLATE),this.initGroup(),this.initSeriesTooltips(),this.initSeriesStrokeWidth(),this.initOpacity(),this.initLabelPanel(),this.initShadowPanel()},t.prototype.initGroup=function(){this.seriesGroup.setTitle(this.chartTranslator.translate("series")).toggleGroupExpand(!1).hideEnabledCheckbox(!0)},t.prototype.initSeriesTooltips=function(){var e=this;this.seriesTooltipsToggle.setLabel(this.chartTranslator.translate("tooltips")).setLabelAlignment("left").setLabelWidth("flex").setInputWidth(40).setValue(this.chartProxy.getTooltipsEnabled()).onValueChange((function(t){return e.chartProxy.setSeriesProperty("tooltipEnabled",t)}))},t.prototype.initSeriesStrokeWidth=function(){var e=this;this.seriesStrokeWidthSlider.setLabel(this.chartTranslator.translate("strokeWidth")).setMaxValue(10).setTextFieldWidth(45).setValue(this.chartProxy.getSeriesProperty("strokeWidth")).onValueChange((function(t){return e.chartProxy.setSeriesProperty("strokeWidth",t)}))},t.prototype.initOpacity=function(){var e=this;this.seriesLineOpacitySlider.setLabel(this.chartTranslator.translate("strokeOpacity")).setStep(.05).setMaxValue(1).setTextFieldWidth(45).setValue(this.chartProxy.getSeriesProperty("strokeOpacity")).onValueChange((function(t){return e.chartProxy.setSeriesProperty("strokeOpacity",t)})),this.seriesFillOpacitySlider.setLabel(this.chartTranslator.translate("fillOpacity")).setStep(.05).setMaxValue(1).setTextFieldWidth(45).setValue(this.chartProxy.getSeriesProperty("fillOpacity")).onValueChange((function(t){return e.chartProxy.setSeriesProperty("fillOpacity",t)}))},t.prototype.initLabelPanel=function(){var e=this,t={family:this.chartProxy.getSeriesProperty("labelFontFamily"),style:this.chartProxy.getSeriesProperty("labelFontStyle"),weight:this.chartProxy.getSeriesProperty("labelFontWeight"),size:parseInt(this.chartProxy.getSeriesProperty("labelFontSize")),color:this.chartProxy.getSeriesProperty("labelColor")},o={enabled:this.chartProxy.getLabelEnabled(),setEnabled:function(t){return e.chartProxy.setSeriesProperty("labelEnabled",t)},suppressEnabledCheckbox:!1,initialFont:t,setFont:function(t){t.family&&e.chartProxy.setSeriesProperty("labelFontFamily",t.family),t.weight&&e.chartProxy.setSeriesProperty("labelFontWeight",t.weight),t.size&&e.chartProxy.setSeriesProperty("labelFontSize",t.size),t.color&&e.chartProxy.setSeriesProperty("labelColor",t.color)}},i=new p.LabelPanel(o);this.getContext().wireBean(i),this.activePanels.push(i);var r=new u.CalloutPanel(this.chartProxy);this.getContext().wireBean(r),i.addCompToPanel(r),this.activePanels.push(r),this.seriesGroup.addItem(i)},t.prototype.initShadowPanel=function(){var e=new l.ShadowPanel(this.chartProxy);this.getContext().wireBean(e),this.seriesGroup.getGui().appendChild(e.getGui()),this.seriesGroup.addItem(e)},t.prototype.destroyActivePanels=function(){this.activePanels.forEach((function(e){a._.removeFromParent(e.getGui()),e.destroy()}))},t.prototype.destroy=function(){this.destroyActivePanels(),e.prototype.destroy.call(this)},t.TEMPLATE='<div> \n <ag-group-component ref="seriesGroup">\n <ag-toggle-button ref="seriesTooltipsToggle"></ag-toggle-button>\n <ag-slider ref="seriesStrokeWidthSlider"></ag-slider>\n <ag-slider ref="seriesLineOpacitySlider"></ag-slider>\n <ag-slider ref="seriesFillOpacitySlider"></ag-slider>\n </ag-group-component>\n </div>',n([a.RefSelector("seriesGroup"),s("design:type",a.AgGroupComponent)],t.prototype,"seriesGroup",void 0),n([a.RefSelector("seriesTooltipsToggle"),s("design:type",a.AgToggleButton)],t.prototype,"seriesTooltipsToggle",void 0),n([a.RefSelector("seriesStrokeWidthSlider"),s("design:type",a.AgSlider)],t.prototype,"seriesStrokeWidthSlider",void 0),n([a.RefSelector("seriesLineOpacitySlider"),s("design:type",a.AgSlider)],t.prototype,"seriesLineOpacitySlider",void 0),n([a.RefSelector("seriesFillOpacitySlider"),s("design:type",a.AgSlider)],t.prototype,"seriesFillOpacitySlider",void 0),n([a.Autowired("chartTranslator"),s("design:type",c.ChartTranslator)],t.prototype,"chartTranslator",void 0),n([a.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"init",null),t}(a.Component);t.PieSeriesPanel=d},function(e,t,o){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),n=this&&this.__decorate||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},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(1),l=o(13),p=function(e){function t(t){var o=e.call(this)||this;return o.chartProxy=t,o}return r(t,e),t.prototype.init=function(){this.setTemplate(t.TEMPLATE),this.initCalloutOptions()},t.prototype.initCalloutOptions=function(){var e=this;this.calloutGroup.setTitle(this.chartTranslator.translate("callout")).setEnabled(!0).hideOpenCloseIcons(!0).hideEnabledCheckbox(!0);var t=function(t,o,i,r){o.setLabel(e.chartTranslator.translate(i)).setValue(e.chartProxy.getSeriesProperty(t)).setMaxValue(r).setTextFieldWidth(45).onValueChange((function(o){return e.chartProxy.setSeriesProperty(t,o)}))};t("calloutLength",this.calloutLengthSlider,"length",40),t("calloutStrokeWidth",this.calloutStrokeWidthSlider,"strokeWidth",10),t("labelOffset",this.labelOffsetSlider,"offset",30)},t.TEMPLATE='<div>\n <ag-group-component ref="calloutGroup">\n <ag-slider ref="calloutLengthSlider"></ag-slider>\n <ag-slider ref="calloutStrokeWidthSlider"></ag-slider>\n <ag-slider ref="labelOffsetSlider"></ag-slider>\n </ag-group-component>\n </div>',n([a.RefSelector("seriesGroup"),s("design:type",a.AgGroupComponent)],t.prototype,"seriesGroup",void 0),n([a.RefSelector("calloutGroup"),s("design:type",a.AgGroupComponent)],t.prototype,"calloutGroup",void 0),n([a.RefSelector("calloutLengthSlider"),s("design:type",a.AgSlider)],t.prototype,"calloutLengthSlider",void 0),n([a.RefSelector("calloutStrokeWidthSlider"),s("design:type",a.AgSlider)],t.prototype,"calloutStrokeWidthSlider",void 0),n([a.RefSelector("labelOffsetSlider"),s("design:type",a.AgSlider)],t.prototype,"labelOffsetSlider",void 0),n([a.Autowired("chartTranslator"),s("design:type",l.ChartTranslator)],t.prototype,"chartTranslator",void 0),n([a.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"init",null),t}(a.Component);t.CalloutPanel=p},function(e,t,o){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),n=this&&this.__decorate||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},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(1),l=o(315),p=o(71),u=o(230),c=o(13),d=function(e){function t(t){var o=e.call(this)||this;return o.activePanels=[],o.chartController=t,o.chartProxy=o.chartController.getChartProxy(),o.chart=o.chartProxy.getChart(),o}return r(t,e),t.prototype.init=function(){this.setTemplate(t.TEMPLATE),this.initGroup(),this.initTitles(),this.initPaddingPanel()},t.prototype.initGroup=function(){this.chartGroup.setTitle(this.chartTranslator.translate("chart")).toggleGroupExpand(!1).hideEnabledCheckbox(!0)},t.prototype.initTitles=function(){var e=this,t=this.chart.title?this.chart.title.text:"",o={family:this.chart.title?this.chartProxy.getTitleProperty("fontFamily"):"Verdana, sans-serif",style:this.chart.title?this.chartProxy.getTitleProperty("fontStyle"):"",weight:this.chart.title?this.chartProxy.getTitleProperty("fontWeight"):"Normal",size:this.chart.title?parseInt(this.chartProxy.getTitleProperty("fontSize")):22,color:this.chart.title?this.chartProxy.getTitleProperty("color"):"black"},i=function(t){t.family&&e.chartProxy.setTitleProperty("fontFamily",t.family),t.weight&&e.chartProxy.setTitleProperty("fontWeight",t.weight),t.size&&e.chartProxy.setTitleProperty("fontSize",t.size),t.color&&e.chartProxy.setTitleProperty("color",t.color)};this.titleInput.setLabel(this.chartTranslator.translate("title")).setLabelAlignment("top").setLabelWidth("flex").setValue(t).onValueChange((function(r){e.chart.title||(e.chart.title=u.Caption.create({text:t}),i(o));var s=e.chart.title;s.text=r,e.chart.title=s,n.setEnabled(a._.exists(e.chart.title.text))}));var r={name:this.chartTranslator.translate("font"),enabled:!0,suppressEnabledCheckbox:!0,initialFont:o,setFont:i},n=new p.LabelPanel(r);this.getContext().wireBean(n),this.chartGroup.addItem(n),this.activePanels.push(n),n.setEnabled(a._.exists(t))},t.prototype.initPaddingPanel=function(){var e=new l.PaddingPanel(this.chartController);this.getContext().wireBean(e),this.chartGroup.addItem(e),this.activePanels.push(e)},t.prototype.destroyActivePanels=function(){this.activePanels.forEach((function(e){a._.removeFromParent(e.getGui()),e.destroy()}))},t.prototype.destroy=function(){this.destroyActivePanels(),e.prototype.destroy.call(this)},t.TEMPLATE='<div>\n <ag-group-component ref="chartGroup">\n <ag-input-text-area ref="titleInput"></ag-input-text-area>\n </ag-group-component>\n <div>',n([a.RefSelector("chartGroup"),s("design:type",a.AgGroupComponent)],t.prototype,"chartGroup",void 0),n([a.RefSelector("titleInput"),s("design:type",a.AgInputTextArea)],t.prototype,"titleInput",void 0),n([a.Autowired("chartTranslator"),s("design:type",c.ChartTranslator)],t.prototype,"chartTranslator",void 0),n([a.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"init",null),t}(a.Component);t.ChartPanel=d},function(e,t,o){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),n=this&&this.__decorate||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},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(1),l=o(13),p=function(e){function t(t){var o=e.call(this)||this;return o.chartProxy=t.getChartProxy(),o}return r(t,e),t.prototype.init=function(){this.setTemplate(t.TEMPLATE),this.initGroup(),this.initChartPaddingItems()},t.prototype.initGroup=function(){this.chartPaddingGroup.setTitle(this.chartTranslator.translate("padding")).hideOpenCloseIcons(!0).hideEnabledCheckbox(!0)},t.prototype.initChartPaddingItems=function(){var e=this,t=function(t,o,i){o.setLabel(e.chartTranslator.translate(i)).setValue(e.chartProxy.getChartPadding(t)).setMaxValue(200).setTextFieldWidth(45).onValueChange((function(o){return e.chartProxy.setChartPaddingProperty(t,o)}))};t("top",this.paddingTopSlider,"top"),t("right",this.paddingRightSlider,"right"),t("bottom",this.paddingBottomSlider,"bottom"),t("left",this.paddingLeftSlider,"left")},t.TEMPLATE='<div>\n <ag-group-component ref="chartPaddingGroup">\n <ag-slider ref="paddingTopSlider"></ag-slider>\n <ag-slider ref="paddingRightSlider"></ag-slider>\n <ag-slider ref="paddingBottomSlider"></ag-slider>\n <ag-slider ref="paddingLeftSlider"></ag-slider>\n </ag-group-component>\n <div>',n([a.RefSelector("chartPaddingGroup"),s("design:type",a.AgGroupComponent)],t.prototype,"chartPaddingGroup",void 0),n([a.RefSelector("paddingTopSlider"),s("design:type",a.AgSlider)],t.prototype,"paddingTopSlider",void 0),n([a.RefSelector("paddingRightSlider"),s("design:type",a.AgSlider)],t.prototype,"paddingRightSlider",void 0),n([a.RefSelector("paddingBottomSlider"),s("design:type",a.AgSlider)],t.prototype,"paddingBottomSlider",void 0),n([a.RefSelector("paddingLeftSlider"),s("design:type",a.AgSlider)],t.prototype,"paddingLeftSlider",void 0),n([a.Autowired("chartTranslator"),s("design:type",l.ChartTranslator)],t.prototype,"chartTranslator",void 0),n([a.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"init",null),t}(a.Component);t.PaddingPanel=p},function(e,t,o){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),n=this&&this.__decorate||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},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(1),l=o(161),p=o(13),u=o(160),c=function(e){function t(t){var o=e.call(this)||this;return o.activePanels=[],o.chartController=t,o.chartProxy=t.getChartProxy(),o}return r(t,e),t.prototype.init=function(){this.setTemplate(t.TEMPLATE),this.initSeriesGroup(),this.initSeriesTooltips(),this.initSeriesLineWidth(),this.initOpacity(),this.initMarkersPanel(),this.initShadowPanel()},t.prototype.initSeriesGroup=function(){this.seriesGroup.setTitle(this.chartTranslator.translate("series")).toggleGroupExpand(!1).hideEnabledCheckbox(!0)},t.prototype.initSeriesTooltips=function(){var e=this;this.seriesTooltipsToggle.setLabel(this.chartTranslator.translate("tooltips")).setLabelAlignment("left").setLabelWidth("flex").setInputWidth(40).setValue(this.chartProxy.getTooltipsEnabled()).onValueChange((function(t){return e.chartProxy.setSeriesProperty("tooltipEnabled",t)}))},t.prototype.initSeriesLineWidth=function(){var e=this;this.seriesLineWidthSlider.setLabel(this.chartTranslator.translate("lineWidth")).setMaxValue(10).setTextFieldWidth(45).setValue(this.chartProxy.getSeriesProperty("strokeWidth")).onValueChange((function(t){return e.chartProxy.setSeriesProperty("strokeWidth",t)}))},t.prototype.initOpacity=function(){var e=this;this.seriesLineOpacitySlider.setLabel(this.chartTranslator.translate("strokeOpacity")).setStep(.05).setMaxValue(1).setTextFieldWidth(45).setValue(this.chartProxy.getSeriesProperty("strokeOpacity")).onValueChange((function(t){return e.chartProxy.setSeriesProperty("strokeOpacity",t)})),this.seriesFillOpacitySlider.setLabel(this.chartTranslator.translate("fillOpacity")).setStep(.05).setMaxValue(1).setTextFieldWidth(45).setValue(this.chartProxy.getSeriesProperty("fillOpacity")).onValueChange((function(t){return e.chartProxy.setSeriesProperty("fillOpacity",t)}))},t.prototype.initMarkersPanel=function(){var e=new l.MarkersPanel(this.chartProxy);this.getContext().wireBean(e),this.seriesGroup.addItem(e),this.activePanels.push(e)},t.prototype.initShadowPanel=function(){var e=new u.ShadowPanel(this.chartProxy);this.getContext().wireBean(e),this.seriesGroup.addItem(e),this.activePanels.push(e)},t.prototype.destroyActivePanels=function(){this.activePanels.forEach((function(e){a._.removeFromParent(e.getGui()),e.destroy()}))},t.prototype.destroy=function(){this.destroyActivePanels(),e.prototype.destroy.call(this)},t.TEMPLATE='<div> \n <ag-group-component ref="seriesGroup">\n <ag-toggle-button ref="seriesTooltipsToggle"></ag-toggle-button>\n <ag-slider ref="seriesLineWidthSlider"></ag-slider>\n <ag-slider ref="seriesLineOpacitySlider"></ag-slider>\n <ag-slider ref="seriesFillOpacitySlider"></ag-slider>\n </ag-group-component>\n </div>',n([a.RefSelector("seriesGroup"),s("design:type",a.AgGroupComponent)],t.prototype,"seriesGroup",void 0),n([a.RefSelector("seriesTooltipsToggle"),s("design:type",a.AgToggleButton)],t.prototype,"seriesTooltipsToggle",void 0),n([a.RefSelector("seriesLineWidthSlider"),s("design:type",a.AgSlider)],t.prototype,"seriesLineWidthSlider",void 0),n([a.RefSelector("seriesLineOpacitySlider"),s("design:type",a.AgSlider)],t.prototype,"seriesLineOpacitySlider",void 0),n([a.RefSelector("seriesFillOpacitySlider"),s("design:type",a.AgSlider)],t.prototype,"seriesFillOpacitySlider",void 0),n([a.Autowired("chartTranslator"),s("design:type",p.ChartTranslator)],t.prototype,"chartTranslator",void 0),n([a.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"init",null),t}(a.Component);t.AreaSeriesPanel=c},function(e,t,o){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),n=this&&this.__decorate||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},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(1),l=o(161),p=o(13),u=function(e){function t(t){var o=e.call(this)||this;return o.activePanels=[],o.chartProxy=t.getChartProxy(),o}return r(t,e),t.prototype.init=function(){this.setTemplate(t.TEMPLATE),this.initSeriesGroup(),this.initSeriesTooltips(),this.initMarkersPanel()},t.prototype.initSeriesGroup=function(){this.seriesGroup.setTitle(this.chartTranslator.translate("series")).toggleGroupExpand(!1).hideEnabledCheckbox(!0)},t.prototype.initSeriesTooltips=function(){var e=this;this.seriesTooltipsToggle.setLabel(this.chartTranslator.translate("tooltips")).setLabelAlignment("left").setLabelWidth("flex").setInputWidth(40).setValue(this.chartProxy.getTooltipsEnabled()).onValueChange((function(t){return e.chartProxy.setSeriesProperty("tooltipEnabled",t)}))},t.prototype.initMarkersPanel=function(){var e=new l.MarkersPanel(this.chartProxy);this.getContext().wireBean(e),this.seriesGroup.addItem(e),this.activePanels.push(e)},t.prototype.destroyActivePanels=function(){this.activePanels.forEach((function(e){a._.removeFromParent(e.getGui()),e.destroy()}))},t.prototype.destroy=function(){this.destroyActivePanels(),e.prototype.destroy.call(this)},t.TEMPLATE='<div> \n <ag-group-component ref="seriesGroup">\n <ag-toggle-button ref="seriesTooltipsToggle"></ag-toggle-button> \n </ag-group-component>\n </div>',n([a.RefSelector("seriesGroup"),s("design:type",a.AgGroupComponent)],t.prototype,"seriesGroup",void 0),n([a.RefSelector("seriesTooltipsToggle"),s("design:type",a.AgToggleButton)],t.prototype,"seriesTooltipsToggle",void 0),n([a.RefSelector("seriesLineWidthSlider"),s("design:type",a.AgSlider)],t.prototype,"seriesLineWidthSlider",void 0),n([a.Autowired("chartTranslator"),s("design:type",p.ChartTranslator)],t.prototype,"chartTranslator",void 0),n([a.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"init",null),t}(a.Component);t.ScatterSeriesPanel=u},function(e,t,o){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),n=this&&this.__decorate||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},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(1),l=o(319),p=function(e){function t(o){var i=e.call(this,t.TEMPLATE)||this;return i.miniCharts=[],i.cardItems=[],i.chartController=o,i.activePalette=i.chartController.getActivePalette(),i.palettes=i.chartController.getPalettes(),i}return r(t,e),t.prototype.postConstruct=function(){var e=this;this.palettes.forEach((function(t,o){var i=new l.MiniChartsContainer(o,e.chartController);e.getContext().wireBean(i),e.miniCharts.push(i),e.eMiniChartsContainer.appendChild(i.getGui()),e.addCardLink(o)})),this.ePrevBtn.insertAdjacentElement("afterbegin",a._.createIconNoSpan("smallLeft",this.gridOptionsWrapper)),this.eNextBtn.insertAdjacentElement("afterbegin",a._.createIconNoSpan("smallRight",this.gridOptionsWrapper)),this.addDestroyableEventListener(this.ePrevBtn,"click",this.prev.bind(this)),this.addDestroyableEventListener(this.eNextBtn,"click",this.next.bind(this)),this.setActivePalette(this.activePalette,0)},t.prototype.addCardLink=function(e){var t=this,o=document.createElement("div");a._.addCssClass(o,"ag-nav-card-item"),o.innerHTML="●",this.addDestroyableEventListener(o,"click",(function(){e===t.activePalette||t.isAnimating||t.setActivePalette(e,e<t.activePalette?1:2)})),this.eCardSelector.appendChild(o),this.cardItems.push(o)},t.prototype.getPrev=function(){var e=this.activePalette-1;return e<0&&(e=this.palettes.length-1),e},t.prototype.prev=function(){if(!this.isAnimating){var e=this.getPrev();this.setActivePalette(e,1)}},t.prototype.getNext=function(){var e=this.activePalette+1;return e===this.palettes.length&&(e=0),e},t.prototype.next=function(){if(!this.isAnimating){var e=this.getNext();this.setActivePalette(e,2)}},t.prototype.setActivePalette=function(e,t){var o=this;if(a._.radioCssClass(this.cardItems[e],"ag-selected"),t){var i=this.miniCharts[this.activePalette],r=i.getGui(),n=this.miniCharts[e],s=n.getGui();i.refreshSelected(),n.refreshSelected();var l=1===t?-1:1,p=s.style.left=a._.getAbsoluteWidth(this.getGui())*l+"px";a._.removeCssClass(s,"ag-hidden"),a._.addCssClass(r,"ag-animating"),a._.addCssClass(s,"ag-animating"),this.activePalette=e,this.chartController.setChartWithPalette(this.chartController.getChartType(),this.activePalette),this.isAnimating=!0,window.setTimeout((function(){r.style.left=-1*parseFloat(p)+"px",s.style.left="0px"}),50),window.setTimeout((function(){o.isAnimating=!1,a._.removeCssClass(r,"ag-animating"),a._.removeCssClass(s,"ag-animating"),a._.addCssClass(r,"ag-hidden")}),500)}else this.miniCharts.forEach((function(t,o){a._.addOrRemoveCssClass(t.getGui(),"ag-hidden",o!==e)})),this.miniCharts[this.activePalette].refreshSelected(),this.activePalette=e},t.TEMPLATE='<div class="ag-chart-settings-wrapper">\n <div ref="eMiniChartsContainer" class="ag-chart-settings-mini-charts-container"></div>\n <div class="ag-chart-settings-nav-bar">\n <div ref="ePrevBtn" class="ag-chart-settings-prev-btn">\n <button type="button"></button>\n </div>\n <div ref="eCardSelector" class="ag-nav-card-selector"></div>\n <div ref="eNextBtn" class="ag-chart-settings-next-btn">\n <button type="button"></button>\n </div>\n </div>\n </div>',n([a.Autowired("gridOptionsWrapper"),s("design:type",a.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),n([a.RefSelector("eMiniChartsContainer"),s("design:type",HTMLElement)],t.prototype,"eMiniChartsContainer",void 0),n([a.RefSelector("eCardSelector"),s("design:type",HTMLElement)],t.prototype,"eCardSelector",void 0),n([a.RefSelector("ePrevBtn"),s("design:type",HTMLElement)],t.prototype,"ePrevBtn",void 0),n([a.RefSelector("eNextBtn"),s("design:type",HTMLElement)],t.prototype,"eNextBtn",void 0),n([a.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"postConstruct",null),t}(a.Component);t.ChartSettingsPanel=p},function(e,t,o){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),n=this&&this.__decorate||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},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(1),l=o(13),p=o(16),u=o(225),c=o(54),d=o(228),h=o(163),f=o(102),g=o(104),y=o(320),v=o(100),m=o(103),C=o(73),w=function(e){function t(o,i){var r=e.call(this,t.TEMPLATE)||this;r.wrappers={};var n=i.getPalettes();return r.fills=n[o].fills,r.strokes=n[o].strokes,r.chartController=i,r}return r(t,e),t.prototype.init=function(){var e=this,t={columnGroup:[P,S,T],barGroup:[O,A,D],pieGroup:[b,E],lineGroup:[R],scatterGroup:[x,F],areaGroup:[M,N,L]},o=this.getGui();Object.keys(t).forEach((function(i){var r=t[i],n=new a.AgGroupComponent({title:e.chartTranslator.translate(i),suppressEnabledCheckbox:!0,enabled:!0,suppressOpenCloseIcons:!0});e.getContext().wireBean(n),r.forEach((function(t){var o=document.createElement("div");a._.addCssClass(o,"ag-chart-mini-thumbnail"),e.addDestroyableEventListener(o,"click",(function(){e.chartController.setChartType(t.chartType),e.refreshSelected()})),e.wrappers[t.chartType]=o;var i=new t(o,e.fills,e.strokes);e.getContext().wireBean(i),n.addItem(o)})),o.appendChild(n.getGui())})),this.refreshSelected()},t.prototype.refreshSelected=function(){var e=this.chartController.getChartType();for(var t in this.wrappers)a._.addOrRemoveCssClass(this.wrappers[t],"ag-selected",t===e)},t.TEMPLATE='<div class="ag-chart-settings-mini-wrapper"></div>',n([a.Autowired("chartTranslator"),s("design:type",l.ChartTranslator)],t.prototype,"chartTranslator",void 0),n([a.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"init",null),t}(a.Component);t.MiniChartsContainer=w;var _=function(e){function t(){var t,o=null!==e&&e.apply(this,arguments)||this;return o.size=58,o.padding=5,o.root=new p.Group,o.scene=((t=new u.Scene({width:o.size,height:o.size})).root=o.root,t),o.element=o.scene.canvas.element,o}return r(t,e),n([a.Autowired("chartTranslator"),s("design:type",l.ChartTranslator)],t.prototype,"chartTranslator",void 0),t}(a.Component);t.MiniChart=_;var b=function(e){function t(o,i,r){var n=e.call(this)||this;return n.radius=(n.size-2*n.padding)/2,n.center=n.radius+n.padding,n.sectors=t.angles.map((function(e){var t=d.Sector.create(n.center,n.center,0,n.radius,e[0],e[1]);return t.stroke=void 0,t})),n.scene.parent=o,n.root.append(n.sectors),n.updateColors(i,r),n}return r(t,e),t.prototype.init=function(){this.scene.canvas.element.title=this.chartTranslator.translate("pieTooltip")},t.prototype.updateColors=function(e,t){this.sectors.forEach((function(o,i){o.fill=e[i],o.stroke=t[i]}))},t.chartType=a.ChartType.Pie,t.angles=[[c.toRadians(-90),c.toRadians(30)],[c.toRadians(30),c.toRadians(120)],[c.toRadians(120),c.toRadians(180)],[c.toRadians(180),c.toRadians(210)],[c.toRadians(210),c.toRadians(240)],[c.toRadians(240),c.toRadians(270)]],n([a.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"init",null),t}(_);t.MiniPie=b;var E=function(e){function t(t,o,i){var r=e.call(this)||this;return r.radius=(r.size-2*r.padding)/2,r.center=r.radius+r.padding,r.sectors=b.angles.map((function(e){var t=d.Sector.create(r.center,r.center,.6*r.radius,r.radius,e[0],e[1]);return t.stroke=void 0,t})),r.scene.parent=t,r.root.append(r.sectors),r.updateColors(o,i),r}return r(t,e),t.prototype.init=function(){this.scene.canvas.element.title=this.chartTranslator.translate("doughnutTooltip")},t.prototype.updateColors=function(e,t){this.sectors.forEach((function(o,i){o.fill=e[i],o.stroke=t[i]}))},t.chartType=a.ChartType.Doughnut,n([a.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"init",null),t}(_),R=function(e){function t(t,o,i){var r=e.call(this)||this;r.scene.parent=t;var n=r.size,s=r.padding,a=f.default();a.domain=[0,4],a.range=[s,n-s];var l=f.default();l.domain=[0,10],l.range=[n-s,s];var p=g.Line.create(s,s,s,n-s+3);p.stroke="gray",p.strokeWidth=1;var u=g.Line.create(s-3,n-s,n-s,n-s);u.stroke="gray",u.strokeWidth=1,r.lines=[[9,7,8,5,6],[5,6,3,4,1],[1,3,4,8,7]].map((function(e){var t=new h.Path;return t.strokeWidth=3,t.lineCap="round",t.fill=void 0,e.forEach((function(e,o){t.path[o>0?"lineTo":"moveTo"](a.convert(o),l.convert(e))})),t}));var c=new y.ClipRect;c.x=s,c.y=s,c.width=n-2*s,c.height=n-2*s,c.append(r.lines);var d=r.root;return d.append(c),d.append(p),d.append(u),r.updateColors(o,i),r}return r(t,e),t.prototype.init=function(){this.scene.canvas.element.title=this.chartTranslator.translate("lineTooltip")},t.prototype.updateColors=function(e,t){this.lines.forEach((function(e,o){e.stroke=t[o]}))},t.chartType=a.ChartType.Line,n([a.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"init",null),t}(_),P=function(e){function t(t,o,i){var r=e.call(this)||this;r.scene.parent=t;var n=r.size,s=r.padding,a=new m.BandScale;a.domain=[0,1,2],a.range=[s,n-s],a.paddingInner=.3,a.paddingOuter=.3;var l=f.default();l.domain=[0,4],l.range=[n-s,s];var p=g.Line.create(s,s,s,n-s+3);p.stroke="gray",p.strokeWidth=1;var u=g.Line.create(s-3,n-s,n-s,n-s);u.stroke="gray",u.strokeWidth=1,r.axes=[p,u];var c=Math.floor(1)%2/2,d=l.convert(0);r.bars=[2,3,4].map((function(e,t){var o=l.convert(e),i=new v.Rect;i.strokeWidth=1,i.x=Math.floor(a.convert(t))+c,i.y=Math.floor(o)+c;var r=a.bandwidth,n=d-o;return i.width=Math.floor(r)+Math.floor(i.x%1+r%1),i.height=Math.floor(n)+Math.floor(i.y%1+n%1),i}));var h=r.root;return h.append(r.bars),h.append(p),h.append(u),r.updateColors(o,i),r}return r(t,e),t.prototype.init=function(){this.scene.canvas.element.title=this.chartTranslator.translate("groupedColumnTooltip")},t.prototype.updateColors=function(e,t){this.bars.forEach((function(o,i){o.fill=e[i],o.stroke=t[i]}))},t.chartType=a.ChartType.GroupedColumn,n([a.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"init",null),t}(_),O=function(e){function t(t,o,i){var r=e.call(this)||this;r.scene.parent=t;var n=r.size,s=r.padding,a=new m.BandScale;a.domain=[0,1,2],a.range=[s,n-s],a.paddingInner=.3,a.paddingOuter=.3;var l=f.default();l.domain=[0,4],l.range=[n-s,s];var p=g.Line.create(s,s,s,n-s+3);p.stroke="gray",p.strokeWidth=1;var u=g.Line.create(s-3,n-s,n-s,n-s);u.stroke="gray",u.strokeWidth=1,r.axes=[p,u];var c=Math.floor(1)%2/2,d=l.convert(0);r.bars=[2,3,4].map((function(e,t){var o=l.convert(e),i=new v.Rect;i.strokeWidth=1,i.x=Math.floor(s)+c,i.y=Math.floor(a.convert(t))+c;var r=a.bandwidth,n=d-o;return i.width=Math.floor(n)+Math.floor(i.y%1+n%1),i.height=Math.floor(r)+Math.floor(i.x%1+r%1),i}));var h=r.root;return h.append(r.bars),h.append(p),h.append(u),r.updateColors(o,i),r}return r(t,e),t.prototype.init=function(){this.scene.canvas.element.title=this.chartTranslator.translate("groupedBarTooltip")},t.prototype.updateColors=function(e,t){this.bars.forEach((function(o,i){o.fill=e[i],o.stroke=t[i]}))},t.chartType=a.ChartType.GroupedBar,n([a.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"init",null),t}(_),S=function(e){function t(t,o,i){var r=e.call(this)||this;r.scene.parent=t;var n=r.size,s=r.padding,a=new m.BandScale;a.domain=[0,1,2],a.range=[s,n-s],a.paddingInner=.3,a.paddingOuter=.3;var l=f.default();l.domain=[0,16],l.range=[n-s,s];var p=g.Line.create(s,s,s,n-s+3);p.stroke="gray",p.strokeWidth=1;var u=g.Line.create(s-3,n-s,n-s,n-s);u.stroke="gray",u.strokeWidth=1;var c=Math.floor(1)%2/2,d=l.convert(0);r.bars=[[8,12,16],[6,9,12],[2,3,4]].map((function(e){return e.map((function(e,t){var o=l.convert(e),i=new v.Rect;i.strokeWidth=1,i.x=Math.floor(a.convert(t))+c,i.y=Math.floor(o)+c;var r=a.bandwidth,n=d-o;return i.width=Math.floor(r)+Math.floor(i.x%1+r%1),i.height=Math.floor(n)+Math.floor(i.y%1+n%1),i}))}));var h=r.root;return h.append([].concat.apply([],r.bars)),h.append(p),h.append(u),r.updateColors(o,i),r}return r(t,e),t.prototype.init=function(){this.scene.canvas.element.title=this.chartTranslator.translate("stackedColumnTooltip")},t.prototype.updateColors=function(e,t){this.bars.forEach((function(o,i){o.forEach((function(o){o.fill=e[i],o.stroke=t[i]}))}))},t.chartType=a.ChartType.StackedColumn,n([a.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"init",null),t}(_),A=function(e){function t(t,o,i){var r=e.call(this)||this;r.scene.parent=t;var n=r.size,s=r.padding,a=new m.BandScale;a.domain=[0,1,2],a.range=[s,n-s],a.paddingInner=.3,a.paddingOuter=.3;var l=f.default();l.domain=[0,16],l.range=[n-s,s];var p=g.Line.create(s,s,s,n-s+3);p.stroke="gray",p.strokeWidth=1;var u=g.Line.create(s-3,n-s,n-s,n-s);u.stroke="gray",u.strokeWidth=1;var c=Math.floor(1)%2/2,d=l.convert(0);r.bars=[[8,12,16],[6,9,12],[2,3,4]].map((function(e){return e.map((function(e,t){var o=l.convert(e),i=new v.Rect;i.strokeWidth=1,i.x=Math.floor(s)+c,i.y=Math.floor(a.convert(t))+c;var r=a.bandwidth,n=d-o;return i.width=Math.floor(n)+Math.floor(i.y%1+n%1),i.height=Math.floor(r)+Math.floor(i.x%1+r%1),i}))}));var h=r.root;return h.append([].concat.apply([],r.bars)),h.append(p),h.append(u),r.updateColors(o,i),r}return r(t,e),t.prototype.init=function(){this.scene.canvas.element.title=this.chartTranslator.translate("stackedBarTooltip")},t.prototype.updateColors=function(e,t){this.bars.forEach((function(o,i){o.forEach((function(o){o.fill=e[i],o.stroke=t[i]}))}))},t.chartType=a.ChartType.StackedBar,n([a.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"init",null),t}(_),T=function(e){function t(t,o,i){var r=e.call(this)||this;r.scene.parent=t;var n=r.size,s=r.padding,a=new m.BandScale;a.domain=[0,1,2],a.range=[s,n-s],a.paddingInner=.3,a.paddingOuter=.3;var l=f.default();l.domain=[0,10],l.range=[n-s,s];var p=g.Line.create(s,s,s,n-s+3);p.stroke="gray",p.strokeWidth=1;var u=g.Line.create(s-3,n-s,n-s,n-s);u.stroke="gray",u.strokeWidth=1;var c=Math.floor(1)%2/2,d=l.convert(0);r.bars=[[10,10,10],[6,7,8],[2,4,6]].map((function(e){return e.map((function(e,t){var o=l.convert(e),i=new v.Rect;i.strokeWidth=1,i.x=Math.floor(a.convert(t))+c,i.y=Math.floor(o)+c;var r=a.bandwidth,n=d-o;return i.width=Math.floor(r)+Math.floor(i.x%1+r%1),i.height=Math.floor(n)+Math.floor(i.y%1+n%1),i}))}));var h=r.root;return h.append([].concat.apply([],r.bars)),h.append(p),h.append(u),r.updateColors(o,i),r}return r(t,e),t.prototype.init=function(){this.scene.canvas.element.title=this.chartTranslator.translate("normalizedColumnTooltip")},t.prototype.updateColors=function(e,t){this.bars.forEach((function(o,i){o.forEach((function(o){o.fill=e[i],o.stroke=t[i]}))}))},t.chartType=a.ChartType.NormalizedColumn,n([a.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"init",null),t}(_),D=function(e){function t(t,o,i){var r=e.call(this)||this;r.scene.parent=t;var n=r.size,s=r.padding,a=new m.BandScale;a.domain=[0,1,2],a.range=[s,n-s],a.paddingInner=.3,a.paddingOuter=.3;var l=f.default();l.domain=[0,10],l.range=[n-s,s];var p=g.Line.create(s,s,s,n-s+3);p.stroke="gray",p.strokeWidth=1;var u=g.Line.create(s-3,n-s,n-s,n-s);u.stroke="gray",u.strokeWidth=1;var c=Math.floor(1)%2/2,d=l.convert(0);r.bars=[[10,10,10],[6,7,8],[2,4,6]].map((function(e){return e.map((function(e,t){var o=l.convert(e),i=new v.Rect;i.strokeWidth=1,i.x=Math.floor(s)+c,i.y=Math.floor(a.convert(t))+c;var r=a.bandwidth,n=d-o;return i.width=Math.floor(n)+Math.floor(i.y%1+n%1),i.height=Math.floor(r)+Math.floor(i.x%1+r%1),i}))}));var h=r.root;return h.append([].concat.apply([],r.bars)),h.append(p),h.append(u),r.updateColors(o,i),r}return r(t,e),t.prototype.init=function(){this.scene.canvas.element.title=this.chartTranslator.translate("normalizedBarTooltip")},t.prototype.updateColors=function(e,t){this.bars.forEach((function(o,i){o.forEach((function(o){o.fill=e[i],o.stroke=t[i]}))}))},t.chartType=a.ChartType.NormalizedBar,n([a.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"init",null),t}(_),x=function(e){function t(t,o,i){var r=e.call(this)||this;r.scene.parent=t;var n=r.size,s=r.padding,a=f.default();a.domain=[-.5,4],a.range=[2*s,n-s];var l=f.default();l.domain=[-.5,3.5],l.range=[n-s,s];var p=g.Line.create(s,s,s,n-s+3);p.stroke="gray",p.strokeWidth=1;var u=g.Line.create(s-3,n-s,n-s,n-s);u.stroke="gray",u.strokeWidth=1;var c=[];[[[.3,3],[1.1,.9],[2,.4],[3.4,2.4]],[[0,.3],[1,2],[2.4,1.4],[3,0]]].forEach((function(e,t){e.forEach((function(e,t){var o=new C.Arc;o.strokeWidth=1,o.centerX=a.convert(e[0]),o.centerY=l.convert(e[1]),o.radiusX=2.5,o.radiusY=2.5,c.push(o)}))})),r.points=c;var d=new y.ClipRect;d.x=s,d.y=s,d.width=n-2*s,d.height=n-2*s,d.append(r.points);var h=r.root;return h.append(d),h.append(p),h.append(u),r.updateColors(o,i),r}return r(t,e),t.prototype.init=function(){this.scene.canvas.element.title=this.chartTranslator.translate("scatterTooltip")},t.prototype.updateColors=function(e,t){this.points.forEach((function(o,i){o.stroke=t[i%t.length],o.fill=e[i%e.length]}))},t.chartType=a.ChartType.Scatter,n([a.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"init",null),t}(_),F=function(e){function t(t,o,i){var r=e.call(this)||this;r.scene.parent=t;var n=r.size,s=r.padding,a=f.default();a.domain=[0,1],a.range=[2*s,n-s];var l=f.default();l.domain=[0,1],l.range=[n-s,s];var p=g.Line.create(s,s,s,n-s+3);p.stroke="gray",p.strokeWidth=1;var u=g.Line.create(s-3,n-s,n-s,n-s);u.stroke="gray",u.strokeWidth=1;var c=[];[[[.1,.3,5],[.5,.4,7],[.2,.8,7]],[[.8,.7,5],[.7,.3,9]]].forEach((function(e,t){e.forEach((function(e,t){var o=new C.Arc;o.strokeWidth=1,o.centerX=a.convert(e[0]),o.centerY=l.convert(e[1]),o.radiusX=e[2],o.radiusY=e[2],o.fillOpacity=.7,c.push(o)}))})),r.points=c;var d=new y.ClipRect;d.x=s,d.y=s,d.width=n-2*s,d.height=n-2*s,d.append(r.points);var h=r.root;return h.append(d),h.append(p),h.append(u),r.updateColors(o,i),r}return r(t,e),t.prototype.init=function(){this.scene.canvas.element.title=this.chartTranslator.translate("bubbleTooltip")},t.prototype.updateColors=function(e,t){this.points.forEach((function(o,i){o.stroke=t[i%t.length],o.fill=e[i%e.length]}))},t.chartType=a.ChartType.Bubble,n([a.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"init",null),t}(_),M=function(e){function t(o,i,r,n){void 0===n&&(n=t.data);var s=e.call(this)||this;s.scene.parent=o;var a=s.size,l=s.padding,p=new m.BandScale;p.paddingInner=1,p.paddingOuter=0,p.domain=[0,1,2],p.range=[l+.5,a-l-.5];var u=f.default();u.domain=[0,6],u.range=[a-l+.5,l];var c=g.Line.create(l,l,l,a-l+3);c.stroke="gray",c.strokeWidth=1;var d=g.Line.create(l-3,a-l,a-l,a-l);d.stroke="gray",d.strokeWidth=1;for(var y=n.length,v=2*y-1,C=[],w=u.convert(0),_=0;_<y;_++)for(var b=n[_],E=b.length,R=p.convert(_),P=void 0,O=0;O<E;O++){P=b[O];var S=u.convert(P),A=C[O]||(C[O]=[]);A[_]={x:R,y:S},A[v-_]={x:R,y:w}}s.areas=C.reverse().map((function(e){var t=new h.Path;t.strokeWidth=1,t.fillOpacity=.7;var o=t.path;return o.clear(),e.forEach((function(e,t){t?o.lineTo(e.x,e.y):o.moveTo(e.x,e.y)})),o.closePath(),t}));var T=s.root;return T.append(s.areas),T.append(c),T.append(d),s.updateColors(i,r),s}return r(t,e),t.prototype.init=function(){this.scene.canvas.element.title=this.chartTranslator.translate("groupedAreaTooltip")},t.prototype.updateColors=function(e,t){this.areas.forEach((function(o,i){o.fill=e[i],o.stroke=t[i]}))},t.chartType=a.ChartType.Area,t.data=[[1,3,5],[2,6,4],[5,3,1]],n([a.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"init",null),t}(_),N=function(e){function t(o,i,r,n){void 0===n&&(n=t.data);var s=e.call(this)||this;s.scene.parent=o;var a=s.size,l=s.padding,p=new m.BandScale;p.paddingInner=1,p.paddingOuter=0,p.domain=[0,1,2],p.range=[l+.5,a-l-.5];var u=f.default();u.domain=[0,16],u.range=[a-l+.5,l+.5];var c=g.Line.create(l,l,l,a-l+3);c.stroke="gray",c.strokeWidth=1;var d=g.Line.create(l-3,a-l,a-l,a-l);d.stroke="gray",d.strokeWidth=1;for(var y=n.length,v=2*y-1,C=[],w=0;w<y;w++)for(var _=n[w],b=_.length,E=p.convert(w),R=0,P=void 0,O=0;O<b;O++){P=_[O];var S=u.convert(R+P),A=C[O]||(C[O]=[]);A[w]={x:E,y:S},A[v-w]={x:E,y:u.convert(R)},R+=P}s.areas=C.map((function(e){var t=new h.Path;t.strokeWidth=1;var o=t.path;return o.clear(),e.forEach((function(e,t){t?o.lineTo(e.x,e.y):o.moveTo(e.x,e.y)})),o.closePath(),t}));var T=s.root;return T.append(s.areas),T.append(c),T.append(d),s.updateColors(i,r),s}return r(t,e),t.prototype.init=function(){this.scene.canvas.element.title=this.chartTranslator.translate("stackedAreaTooltip")},t.prototype.updateColors=function(e,t){this.areas.forEach((function(o,i){o.fill=e[i],o.stroke=t[i]}))},t.chartType=a.ChartType.StackedArea,t.data=[[2,3,2],[3,6,5],[6,2,2]],n([a.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"init",null),t}(_),L=function(e){function t(o,i,r,n){return void 0===n&&(n=t.data),e.call(this,o,i,r,n)||this}return r(t,e),t.prototype.init=function(){this.scene.canvas.element.title=this.chartTranslator.translate("normalizedAreaTooltip")},t.chartType=a.ChartType.NormalizedArea,t.data=N.data.map((function(e){var t=e.reduce((function(e,t){return e+t}),0);return e.map((function(e){return e/t*16}))})),n([a.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"init",null),t}(N)},function(e,t,o){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var n=o(28),s=o(72),a=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.isContainerNode=!0,t.path=new s.Path2D,t._active=!0,t._dirtyPath=!0,t._x=0,t._y=0,t._width=10,t._height=10,t}return r(t,e),t.prototype.isPointInNode=function(e,t){var o=this.transformPoint(e,t);return o.x>=this.x&&o.x<=this.x+this.width&&o.y>=this.y&&o.y<=this.y+this.height},Object.defineProperty(t.prototype,"active",{get:function(){return this._active},set:function(e){this._active!==e&&(this._active=e,this.dirty=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dirtyPath",{get:function(){return this._dirtyPath},set:function(e){this._dirtyPath!==e&&(this._dirtyPath=e,e&&(this.dirty=!0))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"x",{get:function(){return this._x},set:function(e){this._x!==e&&(this._x=e,this.dirtyPath=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"y",{get:function(){return this._y},set:function(e){this._y!==e&&(this._y=e,this.dirtyPath=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function(){return this._width},set:function(e){this._width!==e&&(this._width=e,this.dirtyPath=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this._height},set:function(e){this._height!==e&&(this._height=e,this.dirtyPath=!0)},enumerable:!0,configurable:!0}),t.prototype.updatePath=function(){var e=this.path;e.clear(),e.rect(this.x,this.y,this.width,this.height),this.dirtyPath=!1},t.prototype.render=function(e){this.active&&(this.dirtyPath&&this.updatePath(),this.scene.appendPath(this.path),e.clip());for(var t=this.children,o=t.length,i=0;i<o;i++){e.save();var r=t[i];r.visible&&r.render(e),e.restore()}},t.className="ClipRect",t}(n.Node);t.ClipRect=a},function(e,t,o){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var n=o(1),s=o(50),a=function(e){function t(o){var i=e.call(this,o)||this;i.initChartOptions(o.chartType,i.defaultOptions()),o.grouping?i.chart=t.isBarChart(o.chartType)?s.ChartBuilder.createGroupedBarChart(i.chartOptions):s.ChartBuilder.createGroupedColumnChart(i.chartOptions):i.chart=t.isBarChart(o.chartType)?s.ChartBuilder.createBarChart(i.chartOptions):s.ChartBuilder.createColumnChart(i.chartOptions);var r=s.ChartBuilder.createSeries(i.chartOptions.seriesDefaults);return r&&i.chart.addSeries(r),i}return r(t,e),t.prototype.update=function(e){var o=this.chart,i=o.series[0];i.data=e.data,i.xField=e.category.id,i.yFields=e.fields.map((function(e){return e.colId})),i.yFieldNames=e.fields.map((function(e){return e.displayName})),t.isBarChart(this.chartProxyParams.chartType)?o.yAxis.labelRotation=this.overrideLabelRotation(e.category.id)?0:this.chartOptions.yAxis.labelRotation:o.xAxis.labelRotation=this.overrideLabelRotation(e.category.id)?0:this.chartOptions.xAxis.labelRotation;var r=this.overriddenPalette?this.overriddenPalette:this.chartProxyParams.getSelectedPalette();i.fills=r.fills,i.strokes=r.strokes},t.prototype.setSeriesProperty=function(e,t){this.getChart().series.forEach((function(o){return o[e]=t})),this.chartOptions.seriesDefaults||(this.chartOptions.seriesDefaults={}),this.chartOptions.seriesDefaults[e]=t,this.raiseChartOptionsChangedEvent()},t.prototype.getSeriesProperty=function(e){return this.chartOptions.seriesDefaults?""+this.chartOptions.seriesDefaults[e]:""},t.prototype.getTooltipsEnabled=function(){return!!this.chartOptions.seriesDefaults&&!!this.chartOptions.seriesDefaults.tooltipEnabled},t.prototype.getLabelEnabled=function(){return!!this.chartOptions.seriesDefaults&&!!this.chartOptions.seriesDefaults.labelEnabled},t.isBarChart=function(e){return e===n.ChartType.GroupedBar||e===n.ChartType.StackedBar||e===n.ChartType.NormalizedBar},t.prototype.defaultOptions=function(){var e=this.chartProxyParams.getSelectedPalette(),t=this.chartProxyParams.chartType;return{parent:this.chartProxyParams.parentElement,background:{fill:this.getBackgroundColor()},padding:{top:20,right:20,bottom:20,left:20},legendPosition:"right",legendPadding:20,legend:{enabled:!0,labelFontStyle:void 0,labelFontWeight:"normal",labelFontSize:12,labelFontFamily:"Verdana, sans-serif",labelColor:this.getLabelColor(),itemPaddingX:16,itemPaddingY:8,markerPadding:4,markerSize:14,markerStrokeWidth:1},xAxis:{type:"category",labelFontStyle:void 0,labelFontWeight:"normal",labelFontSize:12,labelFontFamily:"Verdana, sans-serif",labelColor:this.getLabelColor(),labelRotation:335,tickColor:"rgba(195, 195, 195, 1)",tickSize:6,tickWidth:1,tickPadding:5,lineColor:"rgba(195, 195, 195, 1)",lineWidth:1,gridStyle:[{stroke:this.getAxisGridColor(),lineDash:[4,2]}]},yAxis:{type:"number",labelFontStyle:void 0,labelFontWeight:"normal",labelFontSize:12,labelFontFamily:"Verdana, sans-serif",labelColor:this.getLabelColor(),labelRotation:0,tickColor:"rgba(195, 195, 195, 1)",tickSize:6,tickWidth:1,tickPadding:5,lineColor:"rgba(195, 195, 195, 1)",lineWidth:1,gridStyle:[{stroke:this.getAxisGridColor(),lineDash:[4,2]}]},seriesDefaults:{type:"bar",fills:e.fills,strokes:e.strokes,grouped:t===n.ChartType.GroupedColumn||t===n.ChartType.GroupedBar,normalizedTo:t===n.ChartType.NormalizedColumn||t===n.ChartType.NormalizedBar?100:void 0,strokeWidth:1,tooltipEnabled:!0,labelEnabled:!1,labelFontStyle:void 0,labelFontWeight:"normal",labelFontSize:12,labelFontFamily:"Verdana, sans-serif",labelColor:this.getLabelColor(),tooltipRenderer:void 0,showInLegend:!0,shadow:{enabled:!1,blur:5,xOffset:3,yOffset:3,color:"rgba(0,0,0,0.5)"},strokeOpacity:1,fillOpacity:1}}},t}(o(105).CartesianChartProxy);t.BarChartProxy=a},function(e,t,o){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var n=o(1),s=o(50),a=o(165),l=function(e){function t(t){var o=e.call(this,t)||this;o.chartType=t.chartType,o.initChartOptions(t.chartType,o.defaultOptions()),t.grouping?o.chart=s.ChartBuilder.createGroupedAreaChart(o.chartOptions):o.chart=s.ChartBuilder.createAreaChart(o.chartOptions),o.setAxisPadding(o.chart);var i=s.ChartBuilder.createSeries(o.chartOptions.seriesDefaults);return i&&o.chart.addSeries(i),o}return r(t,e),t.prototype.setAxisPadding=function(e){var t=e.xAxis;t instanceof a.CategoryAxis&&(t.scale.paddingInner=1,t.scale.paddingOuter=0)},t.prototype.update=function(e){var t=this.chart;if(this.chartType===n.ChartType.Area)this.updateAreaChart(e);else{var o=this.chart.series[0];o.data=e.data,o.xField=e.category.id,o.yFields=e.fields.map((function(e){return e.colId})),o.yFieldNames=e.fields.map((function(e){return e.displayName}));var i=this.overriddenPalette?this.overriddenPalette:this.chartProxyParams.getSelectedPalette();o.fills=i.fills,o.strokes=i.strokes}t.xAxis.labelRotation=this.overrideLabelRotation(e.category.id)?0:this.chartOptions.xAxis.labelRotation},t.prototype.updateAreaChart=function(e){var t=this;if(0!==e.fields.length){var o=this.chart,i=e.fields.map((function(e){return e.colId})),r={};o.series.map((function(e){return e})).forEach((function(e){var t=e.yFields[0];i.indexOf(t)>-1?r[t]=e:o.removeSeries(e)})),e.fields.forEach((function(i,n){var a=t.chartOptions.seriesDefaults,l=r[i.colId],p=l||s.ChartBuilder.createSeries(a);if(p){p.yFieldNames=[i.displayName],p.data=e.data,p.xField=e.category.id,p.yFields=[i.colId];var u=t.overriddenPalette?t.overriddenPalette:t.chartProxyParams.getSelectedPalette(),c=u.fills;p.fills=[c[n%c.length]];var d=u.strokes;p.strokes=[d[n%d.length]],l||o.addSeries(p)}}))}else this.chart.removeAllSeries()},t.prototype.setSeriesProperty=function(e,t){this.getChart().series.forEach((function(o){return o[e]=t})),this.chartOptions.seriesDefaults||(this.chartOptions.seriesDefaults={}),this.chartOptions.seriesDefaults[e]=t,this.raiseChartOptionsChangedEvent()},t.prototype.getSeriesProperty=function(e){return this.chartOptions.seriesDefaults?""+this.chartOptions.seriesDefaults[e]:""},t.prototype.getTooltipsEnabled=function(){return!!this.chartOptions.seriesDefaults&&!!this.chartOptions.seriesDefaults.tooltipEnabled},t.prototype.getMarkersEnabled=function(){return!!this.chartOptions.seriesDefaults&&!!this.chartOptions.seriesDefaults.marker},t.prototype.defaultOptions=function(){var e=this.chartProxyParams.getSelectedPalette();return{background:{fill:this.getBackgroundColor()},padding:{top:20,right:20,bottom:20,left:20},legendPosition:"right",legendPadding:20,legend:{enabled:!0,labelFontStyle:void 0,labelFontWeight:"normal",labelFontSize:12,labelFontFamily:"Verdana, sans-serif",labelColor:this.getLabelColor(),itemPaddingX:16,itemPaddingY:8,markerPadding:4,markerSize:14,markerStrokeWidth:1},xAxis:{type:"category",labelFontStyle:void 0,labelFontWeight:"normal",labelFontSize:12,labelFontFamily:"Verdana, sans-serif",labelColor:this.getLabelColor(),labelRotation:335,tickColor:"rgba(195, 195, 195, 1)",tickSize:6,tickWidth:1,tickPadding:5,lineColor:"rgba(195, 195, 195, 1)",lineWidth:1,gridStyle:[{stroke:this.getAxisGridColor(),lineDash:[4,2]}]},yAxis:{type:"number",labelFontStyle:void 0,labelFontWeight:"normal",labelFontSize:12,labelFontFamily:"Verdana, sans-serif",labelColor:this.getLabelColor(),labelRotation:0,tickColor:"rgba(195, 195, 195, 1)",tickSize:6,tickWidth:1,tickPadding:5,lineColor:"rgba(195, 195, 195, 1)",lineWidth:1,gridStyle:[{stroke:this.getAxisGridColor(),lineDash:[4,2]}]},seriesDefaults:{type:"area",fills:e.fills,strokes:e.strokes,strokeWidth:3,strokeOpacity:1,fillOpacity:this.chartProxyParams.chartType===n.ChartType.Area?.7:1,normalizedTo:this.chartProxyParams.chartType===n.ChartType.NormalizedArea?100:void 0,marker:!0,markerSize:6,markerStrokeWidth:1,tooltipEnabled:!0,tooltipRenderer:void 0,showInLegend:!0,shadow:{enabled:!1,blur:5,xOffset:3,yOffset:3,color:"rgba(0,0,0,0.5)"}}}},t}(o(105).CartesianChartProxy);t.AreaChartProxy=l},function(e,t,o){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var n=o(1),s=o(50),a=function(e){function t(t){var o=e.call(this,t)||this;return o.initChartOptions(n.ChartType.Line,o.defaultOptions()),t.grouping?o.chart=s.ChartBuilder.createGroupedLineChart(o.chartOptions):o.chart=s.ChartBuilder.createLineChart(o.chartOptions),o}return r(t,e),t.prototype.update=function(e){var t=this,o=this.chart;if(0!==e.fields.length){var i=this.chart,r=e.fields.map((function(e){return e.colId})),n={};i.series.map((function(e){return e})).forEach((function(e){var t=e.yField;r.indexOf(t)>-1?n[t]=e:i.removeSeries(e)})),e.fields.forEach((function(o,r){var a=t.chartOptions.seriesDefaults,l=n[o.colId],p=l||s.ChartBuilder.createSeries(a);if(p){p.title=o.displayName,p.data=e.data,p.xField=e.category.id,p.yField=o.colId;var u=t.overriddenPalette?t.overriddenPalette:t.chartProxyParams.getSelectedPalette(),c=u.fills;p.fill=c[r%c.length];var d=u.strokes;p.stroke=d[r%d.length],l||i.addSeries(p)}})),o.xAxis.labelRotation=this.overrideLabelRotation(e.category.id)?0:this.chartOptions.xAxis.labelRotation}else this.chart.removeAllSeries()},t.prototype.setSeriesProperty=function(e,t){this.getChart().series.forEach((function(o){return o[e]=t})),this.chartOptions.seriesDefaults||(this.chartOptions.seriesDefaults={}),this.chartOptions.seriesDefaults[e]=t,this.raiseChartOptionsChangedEvent()},t.prototype.getSeriesProperty=function(e){return this.chartOptions.seriesDefaults?""+this.chartOptions.seriesDefaults[e]:""},t.prototype.getTooltipsEnabled=function(){return!!this.chartOptions.seriesDefaults&&!!this.chartOptions.seriesDefaults.tooltipEnabled},t.prototype.getMarkersEnabled=function(){return!!this.chartOptions.seriesDefaults&&!!this.chartOptions.seriesDefaults.marker},t.prototype.defaultOptions=function(){var e=this.chartProxyParams.getSelectedPalette();return{background:{fill:this.getBackgroundColor()},padding:{top:20,right:20,bottom:20,left:20},legendPosition:"right",legendPadding:20,legend:{enabled:!0,labelFontStyle:void 0,labelFontWeight:"normal",labelFontSize:12,labelFontFamily:"Verdana, sans-serif",labelColor:this.getLabelColor(),itemPaddingX:16,itemPaddingY:8,markerPadding:4,markerSize:14,markerStrokeWidth:1},xAxis:{type:"category",labelFontStyle:void 0,labelFontWeight:"normal",labelFontSize:12,labelFontFamily:"Verdana, sans-serif",labelColor:this.getLabelColor(),labelRotation:335,tickColor:"rgba(195, 195, 195, 1)",tickSize:6,tickWidth:1,tickPadding:5,lineColor:"rgba(195, 195, 195, 1)",lineWidth:1,gridStyle:[{stroke:this.getAxisGridColor(),lineDash:[4,2]}]},yAxis:{type:"number",labelFontStyle:void 0,labelFontWeight:"normal",labelFontSize:12,labelFontFamily:"Verdana, sans-serif",labelColor:this.getLabelColor(),labelRotation:0,tickColor:"rgba(195, 195, 195, 1)",tickSize:6,tickWidth:1,tickPadding:5,lineColor:"rgba(195, 195, 195, 1)",lineWidth:1,gridStyle:[{stroke:this.getAxisGridColor(),lineDash:[4,2]}]},seriesDefaults:{type:"line",fills:e.fills,strokes:e.strokes,strokeWidth:3,marker:!0,markerSize:6,markerStrokeWidth:1,tooltipEnabled:!0,tooltipRenderer:void 0,showInLegend:!0,title:""}}},t}(o(105).CartesianChartProxy);t.LineChartProxy=a},function(e,t,o){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var n=o(50),s=o(1),a=function(e){function t(t){var o=e.call(this,t)||this;return o.initChartOptions(s.ChartType.Pie,o.defaultOptions()),o.chart=n.ChartBuilder.createPolarChart(o.chartOptions),o}return r(t,e),t.prototype.update=function(e){if(0!==e.fields.length){var t=this.chart,o=t.series[0],i=o&&o.angleField,r=e.fields[0].colId,s=e.fields[0].displayName,a=o,l=void 0;if(i!==r){t.removeSeries(o);var p=this.chartOptions.seriesDefaults,u=p.title?Object.create(p.title):{};u.text=s,p.title=u,p.angleField=r,l=p.calloutColors,a=n.ChartBuilder.createSeries(p)}a.labelField=e.category.id,a.data=e.data;var c=this.overriddenPalette?this.overriddenPalette:this.chartProxyParams.getSelectedPalette();a.fills=c.fills,a.strokes=c.strokes,l&&(a.calloutColors=l),o||t.addSeries(a)}else this.chart.removeAllSeries()},t.prototype.defaultOptions=function(){var e=this.chartProxyParams.getSelectedPalette();return{background:{fill:this.getBackgroundColor()},padding:{top:50,right:50,bottom:50,left:50},legendPosition:"right",legendPadding:20,legend:{enabled:!0,labelFontStyle:void 0,labelFontWeight:"normal",labelFontSize:12,labelFontFamily:"Verdana, sans-serif",labelColor:this.getLabelColor(),itemPaddingX:16,itemPaddingY:8,markerPadding:4,markerSize:14,markerStrokeWidth:1},seriesDefaults:{type:"pie",fills:e.fills,strokes:e.strokes,strokeWidth:1,strokeOpacity:1,fillOpacity:1,calloutColors:e.strokes,calloutLength:10,calloutStrokeWidth:1,labelOffset:3,labelEnabled:!1,labelFontStyle:void 0,labelFontWeight:"normal",labelFontSize:12,labelFontFamily:"Verdana, sans-serif",labelColor:this.getLabelColor(),labelMinAngle:0,tooltipEnabled:!0,tooltipRenderer:void 0,showInLegend:!0,shadow:{enabled:!1,blur:5,xOffset:3,yOffset:3,color:"rgba(0,0,0,0.5)"},title:{enabled:!1,font:"bold 12px Verdana, sans-serif",color:"black"}}}},t}(o(232).PolarChartProxy);t.PieChartProxy=a},function(e,t,o){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var n=o(50),s=o(1),a=function(e){function t(t){var o=e.call(this,t)||this;return o.initChartOptions(s.ChartType.Doughnut,o.defaultOptions()),o.chart=n.ChartBuilder.createDoughnutChart(o.chartOptions),o}return r(t,e),t.prototype.update=function(e){var t=this;if(0!==e.fields.length){var o=this.chart,i=e.fields.map((function(e){return e.colId})),r={};o.series.forEach((function(e){var t=e,o=t.angleField;i.indexOf(o)>=0&&(r[o]=t)}));var s=this.chartOptions.seriesDefaults,a=s.title?Object.create(s.title):{};s.title=a;var l=0;e.fields.forEach((function(o,i){var p=r[o.colId];a.text=o.displayName,s.angleField=o.colId,s.showInLegend=0===i;var u=s.calloutColors,c=p||n.ChartBuilder.createSeries(s);c.labelField=e.category.id,c.data=e.data,0===i&&(c.toggleSeriesItem=function(e,t){var o=c.chart;o&&o.series.forEach((function(o){o.enabled[e]=t})),c.scheduleData()}),c.outerRadiusOffset=l,l-=20,c.innerRadiusOffset=l,l-=20;var d=t.overriddenPalette?t.overriddenPalette:t.chartProxyParams.getSelectedPalette();c.fills=d.fills,c.strokes=d.strokes,u&&(c.calloutColors=u),p||(r[o.colId]=c)}));var p=[];for(var u in r)p.push(r[u]);o.series=p}else this.chart.removeAllSeries()},t.prototype.defaultOptions=function(){var e=this.chartProxyParams.getSelectedPalette();return{background:{fill:this.getBackgroundColor()},padding:{top:50,right:50,bottom:50,left:50},legendPosition:"right",legendPadding:20,legend:{enabled:!0,labelFontStyle:void 0,labelFontWeight:"normal",labelFontSize:12,labelFontFamily:"Verdana, sans-serif",labelColor:this.getLabelColor(),itemPaddingX:16,itemPaddingY:8,markerPadding:4,markerSize:14,markerStrokeWidth:1},seriesDefaults:{type:"pie",fills:e.fills,strokes:e.strokes,strokeWidth:1,strokeOpacity:1,fillOpacity:1,calloutColors:e.strokes,calloutLength:10,calloutStrokeWidth:1,labelOffset:3,labelEnabled:!1,labelFontStyle:void 0,labelFontWeight:"normal",labelFontSize:12,labelFontFamily:"Verdana, sans-serif",labelColor:this.getLabelColor(),labelMinAngle:0,tooltipEnabled:!0,tooltipRenderer:void 0,showInLegend:!0,shadow:{enabled:!1,blur:5,xOffset:3,yOffset:3,color:"rgba(0,0,0,0.5)"},title:{enabled:!1,font:"bold 12px Verdana, sans-serif",color:"black"}}}},t}(o(232).PolarChartProxy);t.DoughnutChartProxy=a},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(1),r=o(106),n=o(21),s=o(76),a=o(110),l=o(68),p=o(111),u=o(114),c=o(115),d=o(116),h=o(56),f=o(78),g=o(69),y=o(70),v=o(40),m=o(108),C=o(117),w=o(80),_=o(81),b=o(240),E=o(176),R=o(175),P=o(82),O=o(118),S=o(43),A=o(109),T=o(166),D=o(242),x=o(119),F=o(120),M=o(121),N=o(68);t.AggregationStage=N.AggregationStage;var L=o(110);t.GroupStage=L.GroupStage;var I=o(167);t.SetFilter=I.SetFilter;var G=o(168);t.SetValueModel=G.SetValueModel;var k=o(118);t.StatusBar=k.StatusBar;var W=o(82);t.StatusBarService=W.StatusBarService;var V=o(76);t.ClipboardService=V.ClipboardService;var H=o(111);t.EnterpriseBoot=H.EnterpriseBoot;var j=o(106);t.EnterpriseMenu=j.EnterpriseMenu;var B=o(75);t.MenuItemComponent=B.MenuItemComponent;var U=o(107);t.MenuList=U.MenuList;var z=o(21);t.RangeController=z.RangeController;var Y=o(112);t.RowGroupDropZonePanel=Y.RowGroupDropZonePanel;var K=o(114);t.ContextMenuFactory=K.ContextMenuFactory;var X=o(115);t.ViewportRowModel=X.ViewportRowModel;var q=o(170);t.RichSelectCellEditor=q.RichSelectCellEditor;var Q=o(171);t.RichSelectRow=Q.RichSelectRow;var $=o(77);t.VirtualList=$.VirtualList;var Z=o(79);t.BaseDropZonePanel=Z.BaseDropZonePanel;var J=o(113);t.PivotDropZonePanel=J.PivotDropZonePanel;var ee=o(116);t.SideBarComp=ee.SideBarComp;var te=o(56);t.LicenseManager=te.LicenseManager;var oe=o(69);t.PivotStage=oe.PivotStage;var ie=o(70);t.PivotColDefService=ie.PivotColDefService;var re=o(172);t.PivotModePanel=re.PivotModePanel;var ne=o(40);t.AggFuncService=ne.AggFuncService;var se=o(78);t.MD5=se.MD5;var ae=o(169);t.SetFilterListItem=ae.SetFilterListItem;var le=o(173);t.DropZoneColumnComp=le.DropZoneColumnComp;var pe=o(174);t.ValuesDropZonePanel=pe.ValuesDropZonePanel;var ue=o(117);t.ExcelCreator=ue.ExcelCreator;var ce=o(80);t.ExcelXmlFactory=ce.ExcelXmlFactory;var de=o(81);t.ExcelXlsxFactory=de.ExcelXlsxFactory;var he=o(119);t.WatermarkComp=he.WatermarkComp;var fe=o(120);t.FillHandle=fe.FillHandle;var ge=o(121);t.RangeHandle=ge.RangeHandle;var ye={viewport:c.ViewportRowModel,serverSide:b.ServerSideRowModel};i.Grid.setEnterpriseBeans([r.EnterpriseMenuFactory,C.ExcelCreator,w.ExcelXmlFactory,_.ExcelXlsxFactory,n.RangeController,s.ClipboardService,g.PivotStage,y.PivotColDefService,u.ContextMenuFactory,a.GroupStage,l.AggregationStage,p.EnterpriseBoot,v.AggFuncService,h.LicenseManager,f.MD5,m.MenuItemMapper,P.StatusBarService],ye),i.Grid.setEnterpriseComponents([{componentName:"AgPrimaryColsHeader",theClass:A.PrimaryColsHeaderPanel},{componentName:"AgPrimaryColsList",theClass:T.PrimaryColsListPanel},{componentName:"AgHorizontalResize",theClass:E.HorizontalResizeComp},{componentName:"AgSideBar",theClass:d.SideBarComp},{componentName:"AgStatusBar",theClass:O.StatusBar},{componentName:"AgNameValue",theClass:S.NameValueComp},{componentName:"AgGridHeaderDropZones",theClass:D.GridHeaderDropZones},{componentName:"AgSideBarButtons",theClass:R.SideBarButtonsComp},{componentName:"AgWatermark",theClass:x.WatermarkComp},{componentName:"AgFillHandle",theClass:F.FillHandle},{componentName:"AgRangeHandle",theClass:M.RangeHandle}])},function(e,t,o){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),n=this&&this.__decorate||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},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(1),l=function(e){function t(t,o,i,r,n){var s=e.call(this)||this;return s.processingColumnStateChange=!1,s.columnGroup=t,s.columnDept=o,s.expandedCallback=i,s.allowDragging=r,s.expanded=n,s}return r(t,e),t.prototype.init=function(){this.setTemplate(t.TEMPLATE),this.eDragHandle=a._.createIconNoSpan("columnDrag",this.gridOptionsWrapper),a._.addCssClass(this.eDragHandle,"ag-column-drag"),this.cbSelect.getGui().insertAdjacentElement("afterend",this.eDragHandle),this.displayName=this.columnController.getDisplayNameForOriginalColumnGroup(null,this.columnGroup,"toolPanel"),a._.missing(this.displayName)&&(this.displayName=">>"),this.eLabel.innerHTML=this.displayName?this.displayName:"",this.setupExpandContract(),this.addCssClass("ag-toolpanel-indent-"+this.columnDept),this.addDestroyableEventListener(this.eventService,a.Events.EVENT_COLUMN_PIVOT_MODE_CHANGED,this.onColumnStateChanged.bind(this)),this.addDestroyableEventListener(this.eLabel,"click",this.onLabelClicked.bind(this)),this.addDestroyableEventListener(this.cbSelect,a.AgCheckbox.EVENT_CHANGED,this.onCheckboxChanged.bind(this)),this.setOpenClosedIcons(),this.setupDragging(),this.onColumnStateChanged(),this.addVisibilityListenersToAllChildren(),a.CssClassApplier.addToolPanelClassesFromColDef(this.columnGroup.getColGroupDef(),this.getGui(),this.gridOptionsWrapper,null,this.columnGroup)},t.prototype.addVisibilityListenersToAllChildren=function(){var e=this;this.columnGroup.getLeafColumns().forEach((function(t){e.addDestroyableEventListener(t,a.Column.EVENT_VISIBLE_CHANGED,e.onColumnStateChanged.bind(e)),e.addDestroyableEventListener(t,a.Column.EVENT_VALUE_CHANGED,e.onColumnStateChanged.bind(e)),e.addDestroyableEventListener(t,a.Column.EVENT_PIVOT_CHANGED,e.onColumnStateChanged.bind(e)),e.addDestroyableEventListener(t,a.Column.EVENT_ROW_GROUP_CHANGED,e.onColumnStateChanged.bind(e))}))},t.prototype.setupDragging=function(){var e=this;if(this.allowDragging){var t={type:a.DragSourceType.ToolPanel,eElement:this.eDragHandle,dragItemName:this.displayName,dragItemCallback:function(){return e.createDragItem()}};this.dragAndDropService.addDragSource(t,!0),this.addDestroyFunc((function(){return e.dragAndDropService.removeDragSource(t)}))}else a._.setDisplayed(this.eDragHandle,!1)},t.prototype.createDragItem=function(){var e={};return this.columnGroup.getLeafColumns().forEach((function(t){e[t.getId()]=t.isVisible()})),{columns:this.columnGroup.getLeafColumns(),visibleState:e}},t.prototype.setupExpandContract=function(){this.eGroupClosedIcon.appendChild(a._.createIcon("columnSelectClosed",this.gridOptionsWrapper,null)),this.eGroupOpenedIcon.appendChild(a._.createIcon("columnSelectOpen",this.gridOptionsWrapper,null)),this.addDestroyableEventListener(this.eGroupClosedIcon,"click",this.onExpandOrContractClicked.bind(this)),this.addDestroyableEventListener(this.eGroupOpenedIcon,"click",this.onExpandOrContractClicked.bind(this));var e=new a.TouchListener(this.eColumnGroupIcons,!0);this.addDestroyableEventListener(e,a.TouchListener.EVENT_TAP,this.onExpandOrContractClicked.bind(this)),this.addDestroyFunc(e.destroy.bind(e))},t.prototype.onLabelClicked=function(){var e=!this.cbSelect.getValue();this.onChangeCommon(e)},t.prototype.onCheckboxChanged=function(e){this.onChangeCommon(e.selected)},t.prototype.onChangeCommon=function(e){if(!this.processingColumnStateChange){var t=this.columnGroup.getLeafColumns();if(this.columnController.isPivotMode())e?this.actionCheckedReduce(t):this.actionUnCheckedReduce(t);else{var o=t.filter((function(e){return!e.getColDef().lockVisible&&!e.getColDef().suppressToolPanel}));this.columnController.setColumnsVisible(o,e,"toolPanelUi")}this.selectionCallback&&this.selectionCallback(this.isSelected())}},t.prototype.actionUnCheckedReduce=function(e){var t=[],o=[],i=[];e.forEach((function(e){e.isPivotActive()&&t.push(e),e.isRowGroupActive()&&i.push(e),e.isValueActive()&&o.push(e)})),t.length>0&&this.columnController.removePivotColumns(t,"toolPanelUi"),i.length>0&&this.columnController.removeRowGroupColumns(i,"toolPanelUi"),o.length>0&&this.columnController.removeValueColumns(o,"toolPanelUi")},t.prototype.actionCheckedReduce=function(e){var t=[],o=[],i=[];e.forEach((function(e){e.isAnyFunctionActive()||(e.isAllowValue()?t.push(e):e.isAllowRowGroup()?o.push(e):e.isAllowRowGroup()&&i.push(e))})),t.length>0&&this.columnController.addValueColumns(t,"toolPanelUi"),o.length>0&&this.columnController.addRowGroupColumns(o,"toolPanelUi"),i.length>0&&this.columnController.addPivotColumns(i,"toolPanelUi")},t.prototype.onColumnStateChanged=function(){var e=this.workOutSelectedValue(),t=this.workOutReadOnlyValue();this.processingColumnStateChange=!0,this.cbSelect.setValue(e),this.selectionCallback&&this.selectionCallback(this.isSelected()),this.cbSelect.setReadOnly(t),this.processingColumnStateChange=!1},t.prototype.workOutReadOnlyValue=function(){var e=this.columnController.isPivotMode(),t=0;return this.columnGroup.getLeafColumns().forEach((function(o){e?o.isAnyFunctionAllowed()&&t++:o.getColDef().lockVisible||t++})),0===t},t.prototype.workOutSelectedValue=function(){for(var e,t=this.columnController.isPivotMode(),o=this.columnGroup.getLeafColumns(),i=o.length,r={visible:0,hidden:0},n={visible:0,hidden:0},s=0;s<i;s++){var a=o[s],l=a.getColDef().lockVisible||a.getColDef().suppressToolPanel,p=this.isColumnVisible(a,t)?"visible":"hidden";r[p]++,l&&n[p]++}return n.visible+n.hidden!==i&&(r.visible-=n.visible,r.hidden-=n.hidden),null==(e=r.visible>0&&r.hidden>0?null:r.visible>0)?void 0:e},t.prototype.isColumnVisible=function(e,t){if(t){var o=e.isPivotActive(),i=e.isRowGroupActive(),r=e.isValueActive();return o||i||r}return e.isVisible()},t.prototype.onExpandOrContractClicked=function(){this.expanded=!this.expanded,this.setOpenClosedIcons(),this.expandedCallback()},t.prototype.setOpenClosedIcons=function(){var e=this.expanded;a._.setDisplayed(this.eGroupClosedIcon,!e),a._.setDisplayed(this.eGroupOpenedIcon,e)},t.prototype.isExpanded=function(){return this.expanded},t.prototype.getDisplayName=function(){return this.displayName},t.prototype.onSelectAllChanged=function(e){(e&&!this.cbSelect.getValue()||!e&&this.cbSelect.getValue())&&(this.cbSelect.isReadOnly()||this.cbSelect.toggle())},t.prototype.isSelected=function(){return this.cbSelect.getValue()},t.prototype.isSelectable=function(){return!this.cbSelect.isReadOnly()},t.prototype.isExpandable=function(){return!0},t.prototype.setExpanded=function(e){this.expanded!==e&&this.onExpandOrContractClicked()},t.TEMPLATE='<div class="ag-column-tool-panel-column-group">\n <span class="ag-column-group-icons" ref="eColumnGroupIcons" >\n <span class="ag-column-group-closed-icon" ref="eGroupOpenedIcon"></span>\n <span class="ag-column-group-opened-icon" ref="eGroupClosedIcon"></span>\n </span>\n <ag-checkbox ref="cbSelect" class="ag-column-select-checkbox"></ag-checkbox>\n <span class="ag-column-tool-panel-column-label" ref="eLabel"></span>\n </div>',n([a.Autowired("gridOptionsWrapper"),s("design:type",a.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),n([a.Autowired("columnController"),s("design:type",a.ColumnController)],t.prototype,"columnController",void 0),n([a.Autowired("dragAndDropService"),s("design:type",a.DragAndDropService)],t.prototype,"dragAndDropService",void 0),n([a.Autowired("eventService"),s("design:type",a.EventService)],t.prototype,"eventService",void 0),n([a.RefSelector("cbSelect"),s("design:type",a.AgCheckbox)],t.prototype,"cbSelect",void 0),n([a.RefSelector("eLabel"),s("design:type",HTMLElement)],t.prototype,"eLabel",void 0),n([a.RefSelector("eGroupOpenedIcon"),s("design:type",HTMLElement)],t.prototype,"eGroupOpenedIcon",void 0),n([a.RefSelector("eGroupClosedIcon"),s("design:type",HTMLElement)],t.prototype,"eGroupClosedIcon",void 0),n([a.RefSelector("eColumnGroupIcons"),s("design:type",HTMLElement)],t.prototype,"eColumnGroupIcons",void 0),n([a.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"init",null),t}(a.Component);t.ToolPanelColumnGroupComp=l},function(e,t,o){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),n=this&&this.__decorate||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},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(1),l=function(e){function t(t,o,i,r){var n=e.call(this)||this;return n.processingColumnStateChange=!1,n.column=t,n.columnDept=o,n.allowDragging=i,n.groupsExist=r,n}return r(t,e),t.prototype.init=function(){this.setTemplate(t.TEMPLATE),this.eDragHandle=a._.createIconNoSpan("columnDrag",this.gridOptionsWrapper),a._.addCssClass(this.eDragHandle,"ag-column-drag"),this.cbSelect.getGui().insertAdjacentElement("afterend",this.eDragHandle),this.displayName=this.columnController.getDisplayNameForColumn(this.column,"toolPanel");var e=a._.escape(this.displayName);this.eLabel.innerHTML=e;var o=this.columnDept;this.groupsExist&&this.addCssClass("ag-toolpanel-add-group-indent"),this.addCssClass("ag-toolpanel-indent-"+o),this.setupDragging(),this.addDestroyableEventListener(this.eventService,a.Events.EVENT_COLUMN_PIVOT_MODE_CHANGED,this.onColumnStateChanged.bind(this)),this.addDestroyableEventListener(this.column,a.Column.EVENT_VALUE_CHANGED,this.onColumnStateChanged.bind(this)),this.addDestroyableEventListener(this.column,a.Column.EVENT_PIVOT_CHANGED,this.onColumnStateChanged.bind(this)),this.addDestroyableEventListener(this.column,a.Column.EVENT_ROW_GROUP_CHANGED,this.onColumnStateChanged.bind(this)),this.addDestroyableEventListener(this.column,a.Column.EVENT_VISIBLE_CHANGED,this.onColumnStateChanged.bind(this)),this.addDestroyableEventListener(this.gridOptionsWrapper,"functionsReadOnly",this.onColumnStateChanged.bind(this)),this.addDestroyableEventListener(this.cbSelect,a.AgCheckbox.EVENT_CHANGED,this.onCheckboxChanged.bind(this)),this.addDestroyableEventListener(this.eLabel,"click",this.onLabelClicked.bind(this)),this.onColumnStateChanged(),a.CssClassApplier.addToolPanelClassesFromColDef(this.column.getColDef(),this.getGui(),this.gridOptionsWrapper,this.column,null)},t.prototype.onLabelClicked=function(){if(!this.gridOptionsWrapper.isFunctionsReadOnly()){var e=!this.cbSelect.getValue();this.onChangeCommon(e)}},t.prototype.onCheckboxChanged=function(e){this.onChangeCommon(e.selected)},t.prototype.onChangeCommon=function(e){this.column.getColDef().lockVisible||this.processingColumnStateChange||(this.columnController.isPivotMode()?e?this.actionCheckedPivotMode():this.actionUnCheckedPivotMode():this.columnController.setColumnVisible(this.column,e,"columnMenu"),this.selectionCallback&&this.selectionCallback(this.isSelected()))},t.prototype.actionUnCheckedPivotMode=function(){var e=this.gridOptionsWrapper.isFunctionsPassive(),t=this.column,o=this.columnController;if(t.isPivotActive())if(e){var i=this.columnController.getPivotColumns().slice();i.push(t);var r={type:a.Events.EVENT_COLUMN_PIVOT_CHANGE_REQUEST,columns:i,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(r)}else o.removePivotColumn(t,"columnMenu");if(t.isValueActive())if(e){var n=this.columnController.getValueColumns().slice();n.push(t);var s={type:a.Events.EVENT_COLUMN_VALUE_CHANGE_REQUEST,columns:n,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(s)}else o.removeValueColumn(t,"columnMenu");if(t.isRowGroupActive())if(e){var l=this.columnController.getRowGroupColumns().slice();l.push(t);var p={type:a.Events.EVENT_COLUMN_ROW_GROUP_CHANGE_REQUEST,columns:l,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(p)}else o.removeRowGroupColumn(t,"columnMenu")},t.prototype.actionCheckedPivotMode=function(){var e=this.column;if(!(e.isValueActive()||e.isPivotActive()||e.isRowGroupActive())){var t=this.gridOptionsWrapper.isFunctionsPassive();if(e.isAllowValue())if(t){var o=this.columnController.getValueColumns().slice();a._.removeFromArray(o,e);var i={type:a.Events.EVENT_COLUMN_VALUE_CHANGE_REQUEST,api:this.gridApi,columnApi:this.columnApi,columns:o};this.eventService.dispatchEvent(i)}else this.columnController.addValueColumn(e,"columnMenu");else if(e.isAllowRowGroup())if(t){var r=this.columnController.getRowGroupColumns().slice();a._.removeFromArray(r,e);var n={type:a.Events.EVENT_COLUMN_ROW_GROUP_CHANGE_REQUEST,api:this.gridApi,columnApi:this.columnApi,columns:r};this.eventService.dispatchEvent(n)}else this.columnController.addRowGroupColumn(e,"columnMenu");else if(e.isAllowPivot())if(t){var s=this.columnController.getPivotColumns().slice();a._.removeFromArray(s,e);var l={type:a.Events.EVENT_COLUMN_PIVOT_CHANGE_REQUEST,api:this.gridApi,columnApi:this.columnApi,columns:s};this.eventService.dispatchEvent(l)}else this.columnController.addPivotColumn(e,"columnMenu")}},t.prototype.setupDragging=function(){var e=this;if(this.allowDragging){var t={type:a.DragSourceType.ToolPanel,eElement:this.eDragHandle,dragItemName:this.displayName,dragItemCallback:function(){return e.createDragItem()}};this.dragAndDropService.addDragSource(t,!0),this.addDestroyFunc((function(){return e.dragAndDropService.removeDragSource(t)}))}else a._.setDisplayed(this.eDragHandle,!1)},t.prototype.createDragItem=function(){var e={};return e[this.column.getId()]=this.column.isVisible(),{columns:[this.column],visibleState:e}},t.prototype.onColumnStateChanged=function(){this.processingColumnStateChange=!0;var e,t=this.columnController.isPivotMode();if(t){var o=this.column.isAnyFunctionActive();this.cbSelect.setValue(o),this.selectionCallback&&this.selectionCallback(this.isSelected())}else this.cbSelect.setValue(this.column.isVisible()),this.selectionCallback&&this.selectionCallback(this.isSelected());if(t){var i=this.gridOptionsWrapper.isFunctionsReadOnly(),r=!this.column.isAnyFunctionAllowed();e=i||r}else e=!!this.column.getColDef().lockVisible;this.cbSelect.setReadOnly(e);var n=t&&this.gridOptionsWrapper.isFunctionsPassive();this.cbSelect.setPassive(n),this.processingColumnStateChange=!1},t.prototype.getDisplayName=function(){return this.displayName},t.prototype.onSelectAllChanged=function(e){e!==this.cbSelect.getValue()&&(this.cbSelect.isReadOnly()||this.cbSelect.toggle())},t.prototype.isSelected=function(){return this.cbSelect.getValue()},t.prototype.isSelectable=function(){return!this.cbSelect.isReadOnly()},t.prototype.isExpandable=function(){return!1},t.prototype.setExpanded=function(e){console.warn("ag-grid: can not expand a column item that does not represent a column group header")},t.TEMPLATE='<div class="ag-column-tool-panel-column">\n <ag-checkbox ref="cbSelect" class="ag-column-select-checkbox"></ag-checkbox>\n <span class="ag-column-tool-panel-column-label" ref="eLabel"></span>\n </div>',n([a.Autowired("gridOptionsWrapper"),s("design:type",a.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),n([a.Autowired("columnController"),s("design:type",a.ColumnController)],t.prototype,"columnController",void 0),n([a.Autowired("eventService"),s("design:type",a.EventService)],t.prototype,"eventService",void 0),n([a.Autowired("dragAndDropService"),s("design:type",a.DragAndDropService)],t.prototype,"dragAndDropService",void 0),n([a.Autowired("columnApi"),s("design:type",a.ColumnApi)],t.prototype,"columnApi",void 0),n([a.Autowired("gridApi"),s("design:type",a.GridApi)],t.prototype,"gridApi",void 0),n([a.RefSelector("eLabel"),s("design:type",HTMLElement)],t.prototype,"eLabel",void 0),n([a.RefSelector("cbSelect"),s("design:type",a.AgCheckbox)],t.prototype,"cbSelect",void 0),n([a.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"init",null),t}(a.Component);t.ToolPanelColumnComp=l},function(e,t,o){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),n=this&&this.__decorate||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},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(1),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.needRefresh=!1,t}return r(t,e),t.prototype.refresh=function(){if(this.suppressRefresh)return!0;var e=!this.needRefresh;return this.needRefresh=!1,e},t.prototype.init=function(e){var t=this;this.rowId=e.node.id,this.masterGridApi=e.api,this.suppressRefresh=e.suppressRefresh,this.selectAndSetTemplate(e),a._.exists(this.eDetailGrid)?(this.addThemeToDetailGrid(),this.createDetailsGrid(e),this.registerDetailWithMaster(e.node),this.loadRowData(e),window.setTimeout((function(){t.detailGridOptions.api&&t.detailGridOptions.api.doLayout()}),0)):console.warn('ag-Grid: reference to eDetailGrid was missing from the details template. Please add ref="eDetailGrid" to the template.'),this.addDestroyableEventListener(e.node.parent,a.RowNode.EVENT_DATA_CHANGED,(function(){t.needRefresh=!0}))},t.prototype.addThemeToDetailGrid=function(){var e=this.environment.getTheme().theme;e&&a._.addCssClass(this.eDetailGrid,e)},t.prototype.registerDetailWithMaster=function(e){var t=this,o={id:this.rowId,api:this.detailGridOptions.api,columnApi:this.detailGridOptions.columnApi};this.masterGridApi.addDetailGridInfo(this.rowId,o),e.detailGridInfo=o,this.addDestroyFunc((function(){t.masterGridApi.removeDetailGridInfo(t.rowId),e.detailGridInfo=null}))},t.prototype.selectAndSetTemplate=function(e){var o=e;if(a._.missing(o.template))this.setTemplate(t.TEMPLATE);else if("string"==typeof o.template)this.setTemplate(o.template);else if("function"==typeof o.template){var i=(0,o.template)(e);this.setTemplate(i)}else console.warn("ag-Grid: detailCellRendererParams.template should be function or string"),this.setTemplate(t.TEMPLATE)},t.prototype.createDetailsGrid=function(e){var t=this,o=e.detailGridOptions;a._.missing(o)&&console.warn("ag-Grid: could not find detail grid options for master detail, please set gridOptions.detailCellRendererParams.detailGridOptions"),this.detailGridOptions=a._.cloneObject(o),new a.Grid(this.eDetailGrid,this.detailGridOptions,{$scope:e.$scope,$compile:e.$compile,seedBeanInstances:{agGridReact:e.agGridReact,frameworkComponentWrapper:e.frameworkComponentWrapper}}),this.addDestroyFunc((function(){t.detailGridOptions.api&&t.detailGridOptions.api.destroy()}))},t.prototype.loadRowData=function(e){var t=e.getDetailRowData;t?t({node:e.node,data:e.data,successCallback:this.setRowData.bind(this)}):console.warn("ag-Grid: could not find getDetailRowData for master / detail, please set gridOptions.detailCellRendererParams.getDetailRowData")},t.prototype.setRowData=function(e){this.detailGridOptions.api&&this.detailGridOptions.api.setRowData(e)},t.TEMPLATE='<div class="ag-details-row">\n <div ref="eDetailGrid" class="ag-details-grid"/>\n </div>',n([a.RefSelector("eDetailGrid"),s("design:type",HTMLElement)],t.prototype,"eDetailGrid",void 0),n([a.Autowired("gridOptionsWrapper"),s("design:type",a.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),n([a.Autowired("environment"),s("design:type",a.Environment)],t.prototype,"environment",void 0),t}(a.Component);t.DetailCellRenderer=l},function(e,t,o){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),n=this&&this.__decorate||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},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(1),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.postConstruct=function(){if(this.setLabel("totalRows","Total Rows"),"clientSide"===this.gridApi.getModel().getType()){this.addCssClass("ag-status-panel"),this.addCssClass("ag-status-panel-total-row-count"),this.setDisplayed(!0);var e=this.onDataChanged.bind(this);this.eventService.addEventListener(a.Events.EVENT_MODEL_UPDATED,e)}else console.warn("ag-Grid: agTotalRowCountComponent should only be used with the client side row model.")},t.prototype.onDataChanged=function(){this.setValue(this.getRowCountValue())},t.prototype.getRowCountValue=function(){var e=0;return this.gridApi.forEachLeafNode((function(t){return e+=1})),""+e},t.prototype.init=function(){},n([a.Autowired("eventService"),s("design:type",a.EventService)],t.prototype,"eventService",void 0),n([a.Autowired("gridApi"),s("design:type",a.GridApi)],t.prototype,"gridApi",void 0),n([a.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"postConstruct",null),t}(o(43).NameValueComp);t.TotalRowsComp=l},function(e,t,o){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),n=this&&this.__decorate||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},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(1),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.postConstruct=function(){"clientSide"===this.gridApi.getModel().getType()?(this.setLabel("totalAndFilteredRows","Rows"),this.addCssClass("ag-status-panel"),this.addCssClass("ag-status-panel-total-and-filtered-row-count"),this.setDisplayed(!0),this.addDestroyableEventListener(this.eventService,a.Events.EVENT_MODEL_UPDATED,this.onDataChanged.bind(this))):console.warn("ag-Grid: agTotalAndFilteredRowCountComponent should only be used with the client side row model.")},t.prototype.onDataChanged=function(){var e=this.getFilteredRowCountValue(),t=this.getTotalRowCount();if(e===t)this.setValue(e);else{var o=this.gridOptionsWrapper.getLocaleTextFunc();this.setValue(e+" "+o("of","of")+" "+t)}},t.prototype.getFilteredRowCountValue=function(){var e=0;return this.gridApi.forEachNodeAfterFilter((function(t){t.group||e++})),e},t.prototype.getTotalRowCount=function(){var e=0;return this.gridApi.forEachNode((function(t){t.group||e++})),e},t.prototype.init=function(){},n([a.Autowired("gridApi"),s("design:type",a.GridApi)],t.prototype,"gridApi",void 0),n([a.Autowired("eventService"),s("design:type",a.EventService)],t.prototype,"eventService",void 0),n([a.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"postConstruct",null),t}(o(43).NameValueComp);t.TotalAndFilteredRowsComp=l},function(e,t,o){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),n=this&&this.__decorate||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},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(1),l=o(172),p=o(112),u=o(174),c=o(113),d=o(233),h=function(e){function t(){var o=e.call(this,t.TEMPLATE)||this;return o.initialised=!1,o.childDestroyFuncs=[],o}return r(t,e),t.prototype.setVisible=function(t){e.prototype.setDisplayed.call(this,t),t&&!this.initialised&&this.init(this.params)},t.prototype.init=function(e){var t={suppressSideButtons:!1,suppressColumnSelectAll:!1,suppressColumnFilter:!1,suppressColumnExpandAll:!1,contractColumnSelection:!1,suppressPivotMode:!1,suppressRowGroups:!1,suppressValues:!1,suppressPivots:!1,api:this.gridApi};a._.mergeDeep(t,e),this.params=t,this.params.suppressPivotMode||this.addComponent(new l.PivotModePanel),this.addComponent(new d.PrimaryColsPanel(!0,this.params)),this.params.suppressRowGroups||this.addComponent(new p.RowGroupDropZonePanel(!1)),this.params.suppressValues||this.addComponent(new u.ValuesDropZonePanel(!1)),this.params.suppressPivots||this.addComponent(new c.PivotDropZonePanel(!1)),this.initialised=!0},t.prototype.addComponent=function(e){this.getContext().wireBean(e),this.getGui().appendChild(e.getGui()),this.childDestroyFuncs.push(e.destroy.bind(e))},t.prototype.destroyChildren=function(){this.childDestroyFuncs.forEach((function(e){return e()})),this.childDestroyFuncs.length=0,a._.clearElement(this.getGui())},t.prototype.refresh=function(){this.destroyChildren(),this.init(this.params)},t.prototype.destroy=function(){this.destroyChildren(),e.prototype.destroy.call(this)},t.TEMPLATE='<div class="ag-column-panel"></div>',n([a.Autowired("gridOptionsWrapper"),s("design:type",a.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),n([a.Autowired("gridApi"),s("design:type",a.GridApi)],t.prototype,"gridApi",void 0),n([a.Autowired("eventService"),s("design:type",a.EventService)],t.prototype,"eventService",void 0),t}(a.Component);t.ColumnToolPanel=h},function(e,t,o){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),n=this&&this.__decorate||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},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(1),l=o(21),p=o(43),u=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return r(t,e),t.prototype.postConstruct=function(){this.isValidRowModel()?(this.avgAggregationComp.setLabel("average","Average"),this.countAggregationComp.setLabel("count","Count"),this.minAggregationComp.setLabel("min","Min"),this.maxAggregationComp.setLabel("max","Max"),this.sumAggregationComp.setLabel("sum","Sum"),this.addDestroyableEventListener(this.eventService,a.Events.EVENT_RANGE_SELECTION_CHANGED,this.onRangeSelectionChanged.bind(this)),this.addDestroyableEventListener(this.eventService,a.Events.EVENT_MODEL_UPDATED,this.onRangeSelectionChanged.bind(this))):console.warn("ag-Grid: agAggregationComponent should only be used with the client and server side row model.")},t.prototype.isValidRowModel=function(){var e=this.gridApi.getModel().getType();return"clientSide"===e||"serverSide"===e},t.prototype.init=function(){},t.prototype.setAggregationComponentValue=function(e,t,o){var i=this.getAggregationValueComponent(e);a._.exists(i)&&i&&(i.setValue(a._.formatNumberTwoDecimalPlacesAndCommas(t)),i.setDisplayed(o))},t.prototype.getAggregationValueComponent=function(e){var t=e+"AggregationComp",o=null,i=a._.exists(this.gridOptions.statusBar)&&this.gridOptions.statusBar?a._.find(this.gridOptions.statusBar.statusPanels,(function(e){return"agAggregationComponent"===e.statusPanel})):null;return a._.exists(i)&&i?(!a._.exists(i.statusPanelParams)||a._.exists(i.statusPanelParams)&&a._.exists(i.statusPanelParams.aggFuncs)&&a._.exists(a._.find(i.statusPanelParams.aggFuncs,(function(t){return t===e}))))&&(o=this[t]):o=this[t],o},t.prototype.onRangeSelectionChanged=function(){var e=this,t=this.rangeController.getCellRanges(),o=0,i=0,r=0,n=null,s=0,l={};t&&!a._.missingOrEmpty(t)&&t.forEach((function(t){for(var p=e.rangeController.getRangeStartRow(t),u=e.rangeController.getRangeEndRow(t);;){if(a._.missing(p)||!p||e.rowPositionUtils.before(u,p)||!p||!t.columns)break;t.columns.forEach((function(t){if(null!==p){var u=e.cellPositionUtils.createId({rowPinned:p.rowPinned,column:t,rowIndex:p.rowIndex});if(!l[u]){l[u]=!0;var c=e.rowRenderer.getRowNode(p);if(!a._.missing(c)){var d=e.valueService.getValue(t,c);a._.missing(d)||""===d||(d.value&&(d=d.value),"string"==typeof d&&(d=Number(d)),"number"!=typeof d||isNaN(d)||(o+=d,(null===s||d>s)&&(s=d),(null===n||d<n)&&(n=d),r++),i++)}}}})),p=e.cellNavigationService.getRowBelow(p)}}));var p=i>1,u=r>1;this.setAggregationComponentValue("count",i,p),this.setAggregationComponentValue("sum",o,u),this.setAggregationComponentValue("min",n,u),this.setAggregationComponentValue("max",s,u),this.setAggregationComponentValue("avg",o/r,u)},t.TEMPLATE='<div class="ag-status-panel ag-status-panel-aggregations">\n <ag-name-value ref="avgAggregationComp"></ag-name-value>\n <ag-name-value ref="countAggregationComp"></ag-name-value>\n <ag-name-value ref="minAggregationComp"></ag-name-value>\n <ag-name-value ref="maxAggregationComp"></ag-name-value>\n <ag-name-value ref="sumAggregationComp"></ag-name-value>\n </div>',n([a.Autowired("eventService"),s("design:type",a.EventService)],t.prototype,"eventService",void 0),n([a.Autowired("rangeController"),s("design:type",l.RangeController)],t.prototype,"rangeController",void 0),n([a.Autowired("valueService"),s("design:type",a.ValueService)],t.prototype,"valueService",void 0),n([a.Autowired("cellNavigationService"),s("design:type",a.CellNavigationService)],t.prototype,"cellNavigationService",void 0),n([a.Autowired("rowRenderer"),s("design:type",a.RowRenderer)],t.prototype,"rowRenderer",void 0),n([a.Autowired("gridOptionsWrapper"),s("design:type",a.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),n([a.Autowired("gridOptions"),s("design:type",Object)],t.prototype,"gridOptions",void 0),n([a.Autowired("gridApi"),s("design:type",a.GridApi)],t.prototype,"gridApi",void 0),n([a.Autowired("cellPositionUtils"),s("design:type",a.CellPositionUtils)],t.prototype,"cellPositionUtils",void 0),n([a.Autowired("rowPositionUtils"),s("design:type",a.RowPositionUtils)],t.prototype,"rowPositionUtils",void 0),n([a.RefSelector("sumAggregationComp"),s("design:type",p.NameValueComp)],t.prototype,"sumAggregationComp",void 0),n([a.RefSelector("countAggregationComp"),s("design:type",p.NameValueComp)],t.prototype,"countAggregationComp",void 0),n([a.RefSelector("minAggregationComp"),s("design:type",p.NameValueComp)],t.prototype,"minAggregationComp",void 0),n([a.RefSelector("maxAggregationComp"),s("design:type",p.NameValueComp)],t.prototype,"maxAggregationComp",void 0),n([a.RefSelector("avgAggregationComp"),s("design:type",p.NameValueComp)],t.prototype,"avgAggregationComp",void 0),n([a.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"postConstruct",null),t}(a.Component);t.AggregationComp=u},function(e,t,o){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),n=this&&this.__decorate||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},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(1),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.postConstruct=function(){if(this.isValidRowModel()){this.setLabel("selectedRows","Selected"),this.addCssClass("ag-status-panel"),this.addCssClass("ag-status-panel-selected-row-count");var e=this.gridApi.getSelectedRows().length;this.setValue(e),this.setDisplayed(e>0);var t=this.onRowSelectionChanged.bind(this);this.eventService.addEventListener(a.Events.EVENT_MODEL_UPDATED,t),this.eventService.addEventListener(a.Events.EVENT_SELECTION_CHANGED,t)}else console.warn("ag-Grid: agSelectedRowCountComponent should only be used with the client and server side row model.")},t.prototype.isValidRowModel=function(){var e=this.gridApi.getModel().getType();return"clientSide"===e||"serverSide"===e},t.prototype.onRowSelectionChanged=function(){var e=this.gridApi.getSelectedRows().length;this.setValue(e),this.setDisplayed(e>0)},t.prototype.init=function(){},n([a.Autowired("eventService"),s("design:type",a.EventService)],t.prototype,"eventService",void 0),n([a.Autowired("gridApi"),s("design:type",a.GridApi)],t.prototype,"gridApi",void 0),n([a.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"postConstruct",null),t}(o(43).NameValueComp);t.SelectedRowsComp=l},function(e,t,o){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),n=this&&this.__decorate||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},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(1),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.postConstruct=function(){if(this.setLabel("filteredRows","Filtered"),"clientSide"===this.gridApi.getModel().getType()){this.addCssClass("ag-status-panel"),this.addCssClass("ag-status-panel-filtered-row-count"),this.setDisplayed(!0);var e=this.onDataChanged.bind(this);this.eventService.addEventListener(a.Events.EVENT_MODEL_UPDATED,e)}else console.warn("ag-Grid: agFilteredRowCountComponent should only be used with the client side row model.")},t.prototype.onDataChanged=function(){var e=this.getTotalRowCountValue(),t=this.getFilteredRowCountValue();this.setValue(t),this.setDisplayed(e!==t)},t.prototype.getTotalRowCountValue=function(){var e=0;return this.gridApi.forEachNode((function(t){return e+=1})),e},t.prototype.getFilteredRowCountValue=function(){var e=0;return this.gridApi.forEachNodeAfterFilter((function(t){t.group||(e+=1)})),e},t.prototype.init=function(){},n([a.Autowired("eventService"),s("design:type",a.EventService)],t.prototype,"eventService",void 0),n([a.Autowired("gridApi"),s("design:type",a.GridApi)],t.prototype,"gridApi",void 0),n([a.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"postConstruct",null),t}(o(43).NameValueComp);t.FilteredRowsComp=l},function(e,t,o){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),n=this&&this.__decorate||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},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(1),l=o(337),p=function(e){function t(){var o=e.call(this,t.TEMPLATE)||this;return o.initialised=!1,o}return r(t,e),t.prototype.init=function(){var e=this;this.initialised=!0,this.eventService.addEventListener("newColumnsLoaded",(function(){return e.onColumnsChanged()})),this.columnController.isReady()&&this.onColumnsChanged()},t.prototype.onColumnsChanged=function(){var e=this,t=this.getGui();a._.clearElement(t);var o=this.columnController.getAllPrimaryColumns();o&&o.filter((function(e){return e.isFilterAllowed()})).forEach((function(t){return e.addColumnComps(t)}))},t.prototype.refresh=function(){},t.prototype.setVisible=function(t){e.prototype.setDisplayed.call(this,t),t&&!this.initialised&&this.init()},t.prototype.addColumnComps=function(e){var t=new l.ToolPanelFilterComp;this.getContext().wireBean(t),t.setColumn(e),this.appendChild(t)},t.TEMPLATE='<div class="ag-filter-panel" ref="ePanelContainer" />',n([a.Autowired("eventService"),s("design:type",a.EventService)],t.prototype,"eventService",void 0),n([a.Autowired("columnController"),s("design:type",a.ColumnController)],t.prototype,"columnController",void 0),t}(a.Component);t.FiltersToolPanel=p},function(e,t,o){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),n=this&&this.__decorate||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},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(1),l=function(e){function t(){var o=e.call(this,t.TEMPLATE)||this;return o.expanded=!1,o}return r(t,e),t.prototype.postConstruct=function(){this.eExpandChecked=a._.createIconNoSpan("columnSelectOpen",this.gridOptionsWrapper),this.eExpandUnchecked=a._.createIconNoSpan("columnSelectClosed",this.gridOptionsWrapper),this.eExpand.appendChild(this.eExpandChecked),this.eExpand.appendChild(this.eExpandUnchecked)},t.prototype.setColumn=function(e){this.column=e;var t=this.columnController.getDisplayNameForColumn(this.column,"header",!1);this.eFilterName.innerText=t,this.addDestroyableEventListener(this.eFilterToolPanelHeader,"click",this.doExpandOrCollapse.bind(this)),this.addDestroyableEventListener(this.eventService,a.Events.EVENT_FILTER_OPENED,this.onFilterOpened.bind(this)),this.addInIcon("filter",this.eFilterIcon,this.column),a._.addOrRemoveCssClass(this.eFilterIcon,"ag-hidden",!this.isFilterActive()),a._.addCssClass(this.eExpandChecked,"ag-hidden"),this.addDestroyableEventListener(this.column,a.Column.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this))},t.prototype.addInIcon=function(e,t,o){if(null!=t){var i=a._.createIconNoSpan(e,this.gridOptionsWrapper,o);i.innerHTML="&nbsp",t.appendChild(i)}},t.prototype.isFilterActive=function(){return this.filterManager.isFilterActive(this.column)},t.prototype.onFilterChanged=function(){a._.addOrRemoveCssClass(this.eFilterIcon,"ag-hidden",!this.isFilterActive())},t.prototype.doExpandOrCollapse=function(){this.expanded?this.doCollapse():this.doExpand()},t.prototype.doExpand=function(){var e=this;this.expanded=!0;var t=a._.loadTemplate('<div class="ag-filter-air" />');this.filterManager.getOrCreateFilterWrapper(this.column,"TOOLBAR").filterPromise.then((function(o){t.appendChild(o.getGui()),e.agFilterToolPanelBody.appendChild(t),o.afterGuiAttached&&o.afterGuiAttached({})})),a._.setDisplayed(this.eExpandChecked,!0),a._.setDisplayed(this.eExpandUnchecked,!1)},t.prototype.doCollapse=function(){this.expanded=!1,this.agFilterToolPanelBody.removeChild(this.agFilterToolPanelBody.children[0]),a._.setDisplayed(this.eExpandChecked,!1),a._.setDisplayed(this.eExpandUnchecked,!0)},t.prototype.onFilterOpened=function(e){"COLUMN_MENU"===e.source&&e.column===this.column&&this.expanded&&this.doCollapse()},t.TEMPLATE='<div class="ag-filter-toolpanel-instance" >\n <div class="ag-filter-toolpanel-header ag-header-cell-label" ref="eFilterToolPanelHeader">\n <div ref="eExpand"></div>\n <span ref="eFilterName" class="ag-header-cell-text"></span>\n <span ref="eFilterIcon" class="ag-header-icon ag-filter-icon" aria-hidden="true"></span>\n </div>\n <div class="ag-filter-toolpanel-body ag-filter" ref="agFilterToolPanelBody"/>\n </div>',n([a.Autowired("gridApi"),s("design:type",a.GridApi)],t.prototype,"gridApi",void 0),n([a.Autowired("filterManager"),s("design:type",a.FilterManager)],t.prototype,"filterManager",void 0),n([a.Autowired("eventService"),s("design:type",a.EventService)],t.prototype,"eventService",void 0),n([a.Autowired("gridOptionsWrapper"),s("design:type",a.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),n([a.Autowired("columnController"),s("design:type",a.ColumnController)],t.prototype,"columnController",void 0),n([a.RefSelector("eFilterToolPanelHeader"),s("design:type",HTMLElement)],t.prototype,"eFilterToolPanelHeader",void 0),n([a.RefSelector("eFilterName"),s("design:type",HTMLElement)],t.prototype,"eFilterName",void 0),n([a.RefSelector("agFilterToolPanelBody"),s("design:type",HTMLElement)],t.prototype,"agFilterToolPanelBody",void 0),n([a.RefSelector("eFilterIcon"),s("design:type",HTMLElement)],t.prototype,"eFilterIcon",void 0),n([a.RefSelector("eExpand"),s("design:type",HTMLElement)],t.prototype,"eExpand",void 0),n([a.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"postConstruct",null),t}(a.Component);t.ToolPanelFilterComp=l},function(e,t,o){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),n=this&&this.__decorate||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},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(1),l=function(e){function t(){return e.call(this,'<div class="ag-input-wrapper" role="presentation"><input ref="eFloatingFilterText" class="ag-floating-filter-input"></div>')||this}return r(t,e),t.prototype.init=function(e){this.eFloatingFilterText.disabled=!0,this.column=e.column},t.prototype.onParentModelChanged=function(e){if(e){var t=e instanceof Array?e:e.values;if(t&&0!==t.length){for(var o=0;o<t.length;o++){var i=t[o],r=this.valueFormatterService.formatValue(this.column,null,null,i);null!=r&&(t[o]=r)}var n=t.length>10?t.slice(0,10).concat("..."):t,s="("+t.length+") "+n.join(",");this.eFloatingFilterText.value=s}else this.eFloatingFilterText.value=""}else this.eFloatingFilterText.value=""},n([a.RefSelector("eFloatingFilterText"),s("design:type",HTMLInputElement)],t.prototype,"eFloatingFilterText",void 0),n([a.Autowired("valueFormatterService"),s("design:type",a.ValueFormatterService)],t.prototype,"valueFormatterService",void 0),t}(a.Component);t.SetFloatingFilterComp=l},function(e,t,o){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),n=this&&this.__decorate||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},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(1),l=o(176),p=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return r(t,e),t.prototype.getToolPanelId=function(){return this.toolPanelId},t.prototype.setToolPanelDef=function(e){this.toolPanelId=e.id;var t={api:this.gridOptionsWrapper.getApi()},o=this.userComponentFactory.newToolPanelComponent(e,t);null!=o?o.then(this.setToolPanelComponent.bind(this)):console.warn("ag-grid: error processing tool panel component "+e.id+". You need to specify either 'toolPanel' or 'toolPanelFramework'")},t.prototype.setupResize=function(){var e=new l.HorizontalResizeComp;this.getContext().wireBean(e),e.setElementToResize(this.getGui()),this.appendChild(e)},t.prototype.setToolPanelComponent=function(e){this.toolPanelCompInstance=e,this.appendChild(e)},t.prototype.refresh=function(){this.toolPanelCompInstance.refresh()},t.TEMPLATE='<div class="ag-tool-panel-wrapper"/>',n([a.Autowired("userComponentFactory"),s("design:type",a.UserComponentFactory)],t.prototype,"userComponentFactory",void 0),n([a.Autowired("gridOptionsWrapper"),s("design:type",a.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),n([a.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"setupResize",null),t}(a.Component);t.ToolPanelWrapper=p},function(e,t,o){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var n=o(1),s=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.stringList=[],t.stringMap={},t}return r(t,e),t.prototype.onNewHeaderGroupingRow=function(){var e=[],t=this;return this.rows.push({cells:e,height:this.headerRowHeight}),{onColumn:function(o,i,r){var s=t.styleLinker(n.RowType.HEADER_GROUPING,1,i,"grouping-"+o,void 0,void 0);e.push(t.createMergedCell(s&&s.length>0?s[0]:void 0,"s",o,r))}}},t.prototype.onNewHeaderColumn=function(e,t){var o=this,i=this;return function(r,s,a){var l=o.extractHeaderValue(r),p=i.styleLinker(n.RowType.HEADER,e,s,l,r,void 0);t.push(o.createCell(p&&p.length>0?p[0]:void 0,"s",l))}},t.prototype.parse=function(){var e,t,o,i,r=[{name:this.sheetName,table:{columns:this.cols,rows:(e=this.customHeader,t=this.rows,o=this.customFooter,i=[],e&&e.forEach((function(e){return i.push({cells:e})})),t.forEach((function(e){return i.push(e)})),o&&o.forEach((function(e){return i.push({cells:e})})),i)}}];return this.excelFactory.createExcel(this.excelStyles,r,this.stringList)},t.prototype.onNewBodyColumn=function(e,t){var o=this,i=this;return function(r,s,a){var l,p=o.extractRowCellValue(r,s,n.Constants.EXPORT_TYPE_EXCEL,a),u=i.styleLinker(n.RowType.BODY,e,s,p,r,a);if(u&&1==u.length)l=u[0];else if(u&&u.length>1){var c=u.join("-");o.mixedStyles[c]||o.addNewMixedStyle(u),l=o.mixedStyles[c].excelID}var d=n._.isNumeric(p)?"n":"s";t.push(i.createCell(l,d,p))}},t.prototype.getStringPosition=function(e){var t=this.stringMap[e];return void 0===t&&(t=this.stringMap[e]=this.stringList.length,this.stringList.push(e)),t},t.prototype.createCell=function(e,t,o){var i=e&&this.stylesByIds[e],r=void 0!==i;var n=function(){if(r&&i.dataType)switch(i.dataType){case"string":return"s";case"number":return"n";case"dateTime":return"d";case"error":return"e";case"boolean":return"b";default:console.warn("ag-grid: Unrecognized data type for excel export ["+i.id+".dataType="+i.dataType+"]")}return t}();return{styleId:r?e:void 0,data:{type:n,value:"s"===n?this.getStringPosition(null==o?"":o).toString():"n"===n?Number(o).toString():o}}},t.prototype.createMergedCell=function(e,t,o,i){return{styleId:this.styleExists(e)?e:void 0,data:{type:t,value:"s"===t?this.getStringPosition(null==o?"":o).toString():o},mergeAcross:i}},t}(o(234).ExcelXmlSerializingSession);t.ExcelXlsxSerializingSession=s},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={getTemplate:function(){return{name:"Workbook",properties:{prefixedAttributes:[{prefix:"xmlns:",map:{o:"urn:schemas-microsoft-com:office:office",x:"urn:schemas-microsoft-com:office:excel",ss:"urn:schemas-microsoft-com:office:spreadsheet",html:"http://www.w3.org/TR/REC-html40"}}],rawMap:{xmlns:"urn:schemas-microsoft-com:office:spreadsheet"}}}}}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={getTemplate:function(){return{name:"ExcelWorkbook",properties:{rawMap:{xmlns:"urn:schemas-microsoft-com:office:excel"}},children:[{name:"WindowHeight",textNode:"8130"},{name:"WindowWidth",textNode:"15135"},{name:"WindowHeight",textNode:"8130"},{name:"WindowTopX",textNode:"120"},{name:"WindowTopY",textNode:"45"},{name:"ProtectStructure",textNode:"False"},{name:"ProtectWindow",textNode:"False"}]}}}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(1),r=o(344),n=o(345),s={getTemplate:function(e){var t=e.table,o=e.name,s=t.columns,a=t.rows,l=i._.map(s,(function(e){return r.default.getTemplate(e)})),p=i._.map(a,(function(e){return n.default.getTemplate(e)}));return{name:"Worksheet",children:[{name:"Table",children:l.concat(p)}],properties:{prefixedAttributes:[{prefix:"ss:",map:{Name:o}}]}}}};t.default=s},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={getTemplate:function(e){return{name:"Column",properties:{prefixedAttributes:[{prefix:"ss:",map:{Width:e.width}}]}}}}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(1),r=o(346),n={getTemplate:function(e){var t=e.cells;return{name:"Row",children:i._.map(t,(function(e){return r.default.getTemplate(e)}))}}};t.default=n},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={getTemplate:function(e){var t=e.mergeAcross,o=e.styleId,i=e.data,r={};return t&&(r.MergeAcross=t),o&&(r.StyleID=o),{name:"Cell",properties:{prefixedAttributes:[{prefix:"ss:",map:r}]},children:[{name:"Data",properties:{prefixedAttributes:[{prefix:"ss:",map:{Type:i.type}}]},textNode:i.value}]}}}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={getTemplate:function(){return{name:"DocumentProperties",properties:{rawMap:{xmlns:"urn:schemas-microsoft-com:office:office"}},children:[{name:"Version",textNode:"12.00"}]}}}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={getTemplate:function(e){var t=e.alignment;return{name:"Alignment",properties:{prefixedAttributes:[{prefix:"ss:",map:{Vertical:t.vertical,Horizontal:t.horizontal,Indent:t.indent,ReadingOrder:t.readingOrder,Rotate:t.rotate,ShrinkToFit:t.shrinkToFit,VerticalText:t.verticalText,WrapText:t.wrapText}}]}}}}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={getTemplate:function(e){var t=e.borders;return{name:"Borders",children:[t.borderBottom,t.borderLeft,t.borderRight,t.borderTop].map((function(e,t){return{name:"Border",properties:{prefixedAttributes:[{prefix:"ss:",map:{Position:0==t?"Bottom":1==t?"Left":2==t?"Right":"Top",LineStyle:e.lineStyle,Weight:e.weight,Color:e.color}}]}}}))}}}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={getTemplate:function(e){var t=e.font;return{name:"Font",properties:{prefixedAttributes:[{prefix:"ss:",map:{Bold:t.bold,FontName:t.fontName,Italic:t.italic,Color:t.color,Outline:t.outline,Shadow:t.shadow,Size:t.size,StrikeThrough:t.strikeThrough,Underline:t.underline,VerticalAlign:t.verticalAlign}},{prefix:"x:",map:{CharSet:t.charSet,Family:t.family}}]}}}}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={getTemplate:function(e){var t=e.interior;return{name:"Interior",properties:{prefixedAttributes:[{prefix:"ss:",map:{Color:t.color,Pattern:t.pattern,PatternColor:t.patternColor}}]}}}}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={getTemplate:function(e){return{name:"Protection",properties:{prefixedAttributes:[{prefix:"ss:",map:{Protected:e.protection.protected,HideFormula:e.protection.hideFormula}}]}}}}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={getTemplate:function(e){return{name:"NumberFormat",properties:{prefixedAttributes:[{prefix:"ss:",map:{Format:e.numberFormat.format}}]}}}}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={getTemplate:function(e){var t=e.id,o=e.name;return{name:"Style",properties:{prefixedAttributes:[{prefix:"ss:",map:{ID:t,Name:o||t}}]}}}}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i={getTemplate:function(){var e=(new Date).toJSON();return{name:"cp:coreProperties",properties:{prefixedAttributes:[{prefix:"xmlns:",map:{cp:"http://schemas.openxmlformats.org/package/2006/metadata/core-properties",dc:"http://purl.org/dc/elements/1.1/",dcterms:"http://purl.org/dc/terms/",dcmitype:"http://purl.org/dc/dcmitype/",xsi:"http://www.w3.org/2001/XMLSchema-instance"}}]},children:[{name:"dc:creator",textNode:"ag-Grid"},{name:"dc:title",textNode:"Workbook"},{name:"dcterms:created",properties:{rawMap:{"xsi:type":"dcterms:W3CDTF"}},textNode:e},{name:"dcterms:modified",properties:{rawMap:{"xsi:type":"dcterms:W3CDTF"}},textNode:e}]}}};t.default=i},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(1),r=o(357),n={getTemplate:function(){return{name:"Types",properties:{rawMap:{xmlns:"http://schemas.openxmlformats.org/package/2006/content-types"}},children:i._.map([{name:"Default",Extension:"rels",ContentType:"application/vnd.openxmlformats-package.relationships+xml"},{name:"Default",ContentType:"application/xml",Extension:"xml"},{name:"Override",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml",PartName:"/xl/workbook.xml"},{name:"Override",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml",PartName:"/xl/worksheets/sheet1.xml"},{name:"Override",ContentType:"application/vnd.openxmlformats-officedocument.theme+xml",PartName:"/xl/theme/theme1.xml"},{name:"Override",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml",PartName:"/xl/styles.xml"},{name:"Override",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml",PartName:"/xl/sharedStrings.xml"},{name:"Override",ContentType:"application/vnd.openxmlformats-package.core-properties+xml",PartName:"/docProps/core.xml"}],r.default.getTemplate)}}};t.default=n},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={getTemplate:function(e){var t=e.name,o=e.ContentType;return{name:t,properties:{rawMap:{Extension:e.Extension,PartName:e.PartName,ContentType:o}}}}}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(359),r={getTemplate:function(){return{name:"a:theme",properties:{prefixedAttributes:[{prefix:"xmlns:",map:{a:"http://schemas.openxmlformats.org/drawingml/2006/main"}}],rawMap:{name:"Office Theme"}},children:[i.default.getTemplate(),{name:"a:objectDefaults"},{name:"a:extraClrSchemeLst"}]}}};t.default=r},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(360),r=o(361),n=o(362),s={getTemplate:function(){return{name:"a:themeElements",children:[i.default.getTemplate(),r.default.getTemplate(),n.default.getTemplate()]}}};t.default=s},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){return{name:"a:"+e[0],children:[{name:"a:"+e[1],properties:{rawMap:{val:e[2],lastClr:e[3]}}}]}},r={getTemplate:function(){return{name:"a:clrScheme",properties:{rawMap:{name:"Office"}},children:[i(["dk1","sysClr","windowText","000000"]),i(["lt1","sysClr","window","FFFFFF"]),i(["dk2","srgbClr","44546A"]),i(["lt2","srgbClr","E7E6E6"]),i(["accent1","srgbClr","4472C4"]),i(["accent2","srgbClr","ED7D31"]),i(["accent3","srgbClr","A5A5A5"]),i(["accent4","srgbClr","FFC000"]),i(["accent5","srgbClr","5B9BD5"]),i(["accent6","srgbClr","70AD47"]),i(["hlink","srgbClr","0563C1"]),i(["folHlink","srgbClr","954F72"])]}}};t.default=r},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(1),r=function(e){var t=e[0],o=e[1];return{name:"a:"+t,properties:{rawMap:{script:e[2],typeface:o,panose:e[3]}}}},n={getTemplate:function(){var e=i._.utf8_encode;return{name:"a:fontScheme",properties:{rawMap:{name:"Office"}},children:[{name:"a:majorFont",children:[r(["latin","Calibri Light",void 0,"020F0302020204030204"]),r(["ea",""]),r(["cs",""]),r(["font",e("游ゴシック Light"),"Jpan"]),r(["font",e("맑은 고딕"),"Hang"]),r(["font",e("等线 Light"),"Hans"]),r(["font",e("新細明體"),"Hant"]),r(["font","Times New Roman","Arab"]),r(["font","Times New Roman","Hebr"]),r(["font","Tahoma","Thai"]),r(["font","Nyala","Ethi"]),r(["font","Vrinda","Beng"]),r(["font","Shruti","Gujr"]),r(["font","MoolBoran","Khmr"]),r(["font","Tunga","Knda"]),r(["font","Raavi","Guru"]),r(["font","Euphemia","Cans"]),r(["font","Plantagenet Cherokee","Cher"]),r(["font","Microsoft Yi Baiti","Yiii"]),r(["font","Microsoft Himalaya","Tibt"]),r(["font","MV Boli","Thaa"]),r(["font","Mangal","Deva"]),r(["font","Gautami","Telu"]),r(["font","Latha","Taml"]),r(["font","Estrangelo Edessa","Syrc"]),r(["font","Kalinga","Orya"]),r(["font","Kartika","Mlym"]),r(["font","DokChampa","Laoo"]),r(["font","Iskoola Pota","Sinh"]),r(["font","Mongolian Baiti","Mong"]),r(["font","Times New Roman","Viet"]),r(["font","Microsoft Uighur","Uigh"]),r(["font","Sylfaen","Geor"]),r(["font","Arial","Armn"]),r(["font","Leelawadee UI","Bugi"]),r(["font","Microsoft JhengHei","Bopo"]),r(["font","Javanese Text","Java"]),r(["font","Segoe UI","Lisu"]),r(["font","Myanmar Text","Mymr"]),r(["font","Ebrima","Nkoo"]),r(["font","Nirmala UI","Olck"]),r(["font","Ebrima","Osma"]),r(["font","Phagspa","Phag"]),r(["font","Estrangelo Edessa","Syrn"]),r(["font","Estrangelo Edessa","Syrj"]),r(["font","Estrangelo Edessa","Syre"]),r(["font","Nirmala UI","Sora"]),r(["font","Microsoft Tai Le","Tale"]),r(["font","Microsoft New Tai Lue","Talu"]),r(["font","Ebrima","Tfng"])]},{name:"a:minorFont",children:[r(["latin","Calibri",void 0,"020F0502020204030204"]),r(["ea",""]),r(["cs",""]),r(["font",e("游ゴシック"),"Jpan"]),r(["font",e("맑은 고딕"),"Hang"]),r(["font",e("等线"),"Hans"]),r(["font",e("新細明體"),"Hant"]),r(["font","Arial","Arab"]),r(["font","Arial","Hebr"]),r(["font","Tahoma","Thai"]),r(["font","Nyala","Ethi"]),r(["font","Vrinda","Beng"]),r(["font","Shruti","Gujr"]),r(["font","DaunPenh","Khmr"]),r(["font","Tunga","Knda"]),r(["font","Raavi","Guru"]),r(["font","Euphemia","Cans"]),r(["font","Plantagenet Cherokee","Cher"]),r(["font","Microsoft Yi Baiti","Yiii"]),r(["font","Microsoft Himalaya","Tibt"]),r(["font","MV Boli","Thaa"]),r(["font","Mangal","Deva"]),r(["font","Gautami","Telu"]),r(["font","Latha","Taml"]),r(["font","Estrangelo Edessa","Syrc"]),r(["font","Kalinga","Orya"]),r(["font","Kartika","Mlym"]),r(["font","DokChampa","Laoo"]),r(["font","Iskoola Pota","Sinh"]),r(["font","Mongolian Baiti","Mong"]),r(["font","Arial","Viet"]),r(["font","Microsoft Uighur","Uigh"]),r(["font","Sylfaen","Geor"]),r(["font","Arial","Armn"]),r(["font","Leelawadee UI","Bugi"]),r(["font","Microsoft JhengHei","Bopo"]),r(["font","Javanese Text","Java"]),r(["font","Segoe UI","Lisu"]),r(["font","Myanmar Text","Mymr"]),r(["font","Ebrima","Nkoo"]),r(["font","Nirmala UI","Olck"]),r(["font","Ebrima","Osma"]),r(["font","Phagspa","Phag"]),r(["font","Estrangelo Edessa","Syrn"]),r(["font","Estrangelo Edessa","Syrj"]),r(["font","Estrangelo Edessa","Syre"]),r(["font","Nirmala UI","Sora"]),r(["font","Microsoft Tai Le","Tale"]),r(["font","Microsoft New Tai Lue","Talu"]),r(["font","Ebrima","Tfng"])]}]}}};t.default=n},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(1),r=function(e,t,o){return{name:"a:"+e,properties:{rawMap:{val:t}},children:o}},n=function(e){var t=e[0],o=e[1],i=e[2],n=e[3],s=e[4],a=e[5],l=[];return l.push(r("satMod",i)),n&&l.push(r("lumMod",n)),s&&l.push(r("tint",s)),a&&l.push(r("shade",a)),{name:"a:gs",properties:{rawMap:{pos:t}},children:[{name:"a:schemeClr",properties:{rawMap:{val:o}},children:l}]}},s=function(e,t){return{name:"a:solidFill",children:[r("schemeClr",e,t)]}},a=function(e){var t=e[0],o=e[1],i=e[2],r=e[3],s=e[4],a=s[0],l=s[1];return{name:"a:gradFill",properties:{rawMap:{rotWithShape:t}},children:[{name:"a:gsLst",children:[n(o),n(i),n(r)]},{name:"a:lin",properties:{rawMap:{ang:a,scaled:l}}}]}},l=function(e){return{name:"a:ln",properties:{rawMap:{w:e[0],cap:e[1],cmpd:e[2],algn:e[3]}},children:[s("phClr"),r("prstDash","solid"),{name:"a:miter",properties:{rawMap:{lim:"800000"}}}]}},p=function(e){var t=[];if(e){var o=e[0],n=e[1],s=e[2],a=e[3],l=e[4];t.push({name:"a:outerShdw",properties:{rawMap:{blurRad:o,dist:n,dir:s,algn:a,rotWithShape:l}},children:[r("srgbClr","000000",[r("alpha","63000")])]})}return{name:"a:effectStyle",children:[i._.assign({},{name:"a:effectLst"},t.length?{children:t}:{})]}},u={getTemplate:function(){return{name:"a:fmtScheme",properties:{rawMap:{name:"Office"}},children:[{name:"a:fillStyleLst",children:[s("phClr"),a(["1",["0","phClr","105000","110000","67000"],["50000","phClr","103000","105000","73000"],["100000","phClr","109000","105000","81000"],["5400000","0"]]),a(["1",["0","phClr","103000","102000","94000"],["50000","phClr","110000","100000",void 0,"100000"],["100000","phClr","120000","99000",void 0,"78000"],["5400000","0"]])]},{name:"a:lnStyleLst",children:[l(["6350","flat","sng","ctr"]),l(["12700","flat","sng","ctr"]),l(["19050","flat","sng","ctr"])]},{name:"a:effectStyleLst",children:[p(),p(),p(["57150","19050","5400000","ctr","0"])]},{name:"a:bgFillStyleLst",children:[s("phClr"),s("phClr",[r("tint","95000"),r("satMod","170000")]),a(["1",["0","phClr","150000","102000","93000","98000"],["50000","phClr","130000","103000","98000","90000"],["100000","phClr","120000",void 0,void 0,"63000"],["5400000","0"]])]}]}}};t.default=u},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(1),r=function(e){return{name:"si",children:[{name:"t",textNode:i._.utf8_encode(i._.escape(e.toString()))}]}},n={getTemplate:function(e){return{name:"sst",properties:{rawMap:{xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main",count:e.length,uniqueCount:e.length}},children:i._.map(e,r)}}};t.default=n},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(1),r=o(235),n={getTemplate:function(e){return{name:"numFmts",properties:{rawMap:{count:e.length}},children:i._.map(e,r.default.getTemplate)}}};t.default=n},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(1),r=o(236),n={getTemplate:function(e){return{name:"fonts",properties:{rawMap:{count:e.length}},children:i._.map(e,r.default.getTemplate)}}};t.default=n},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(1),r=o(367),n={getTemplate:function(e){return{name:"fills",properties:{rawMap:{count:e.length}},children:i._.map(e,r.default.getTemplate)}}};t.default=n},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={getTemplate:function(e){var t=e.patternType,o=e.fgTheme,i=e.fgTint,r=e.fgRgb,n=e.bgRgb,s=e.bgIndexed,a={name:"patternFill",properties:{rawMap:{patternType:t}}};return(o||i||r)&&(a.children=[{name:"fgColor",properties:{rawMap:{theme:o,tint:i,rgb:r}}}]),s&&(a.children||(a.children=[]),a.children.push({name:"bgColor",properties:{rawMap:{indexed:s,rgb:n}}})),{name:"fill",children:[a]}}}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(1),r=o(237),n={getTemplate:function(e){return{name:"borders",properties:{rawMap:{count:e.length}},children:i._.map(e,r.default.getTemplate)}}};t.default=n},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(1),r=o(238),n={getTemplate:function(e){return{name:"cellStyleXfs",properties:{rawMap:{count:e.length}},children:i._.map(e,r.default.getTemplate)}}};t.default=n},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){return{Automatic:"general",Left:"left",Center:"center",Right:"right",Fill:"fill",Justify:"justify",CenterAcrossSelection:"centerContinuous",Distributed:"distributed",JustifyDistributed:"justify"}[e]||"general"},r=function(e){return{Automatic:void 0,Top:"top",Bottom:"bottom",Center:"center",Justify:"justify",Distributed:"distributed",JustifyDistributed:"justify"}[e]||void 0},n=function(e){var t=["Context","LeftToRight","RightToLeft"].indexOf(e);return Math.max(t,0)},s={getTemplate:function(e){var t=e.horizontal,o=e.indent,s=e.readingOrder,a=e.rotate,l=e.shrinkToFit,p=e.vertical,u=e.wrapText;return{name:"alignment",properties:{rawMap:{horizontal:t&&i(t),indent:o,readingOrder:s&&n(s),textRotation:a,shrinkToFit:l,vertical:p&&r(p),wrapText:u}}}}};t.default=s},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={getTemplate:function(e){var t=!1===e.protected?0:1;return{name:"protection",properties:{rawMap:{hidden:!0===e.hideFormula?1:0,locked:t}}}}}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(1),r=o(238),n={getTemplate:function(e){return{name:"cellXfs",properties:{rawMap:{count:e.length}},children:i._.map(e,r.default.getTemplate)}}};t.default=n},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(1),r=o(374),n={getTemplate:function(e){return{name:"cellStyles",properties:{rawMap:{count:e.length}},children:i._.map(e,r.default.getTemplate)}}};t.default=n},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={getTemplate:function(e){return{name:"cellStyle",properties:{rawMap:{builtinId:e.builtinId,name:e.name,xfId:e.xfId}}}}}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(376),r={getTemplate:function(e){return{name:"workbook",properties:{prefixedAttributes:[{prefix:"xmlns:",map:{r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships"}}],rawMap:{xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main"}},children:[i.default.getTemplate(e)]}}};t.default=r},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(1),r=o(377),n={getTemplate:function(e){return{name:"sheets",children:i._.map(e,r.default.getTemplate)}}};t.default=n},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={getTemplate:function(e,t){var o=(t+1).toString();return{name:"sheet",properties:{rawMap:{name:e,sheetId:o,"r:id":"rId"+o}}}}}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i={getTemplate:function(e){var t=e.min,o=e.max,i=e.s,r=e.width,n=void 0===r?10:r,s=e.hidden,a=e.bestFit,l=function(e){return Math.max(Math.ceil((e-12)/7+1),10)}(n);return{name:"col",properties:{rawMap:{min:t,max:o,width:l,style:i,hidden:s?"1":"0",bestFit:a?"1":"0",customWidth:10!=l?"1":"0"}}}}};t.default=i},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(1),r=o(239),n=o(380),s={getTemplate:function(e,t){var o=e.index,s=e.collapsed,a=e.hidden,l=e.height,p=e.s,u=e.cells,c=void 0===u?[]:u;return function(e,t){for(var o=[],i=0,n=0;n<e.length;n++){(a=e[n]).mergeAcross&&(o.push({pos:n,excelPos:i}),i+=e[n].mergeAcross),i++}if(o.length)for(n=o.length-1;n>=0;n--){for(var s=[],a=e[o[n].pos],l=1;l<=a.mergeAcross;l++)s.push({ref:""+r.getExcelColumnName(o[n].excelPos+1+l)+(t+1),styleId:a.styleId,data:{type:"empty",value:null}});s.length&&e.splice.apply(e,[o[n].pos+1,0].concat(s))}}(c,t),{name:"row",properties:{rawMap:{r:o,collapsed:s,hidden:a?"1":"0",ht:l,customHeight:null!=l?"1":"0",s:p,customFormat:null!=p?"1":"0"}},children:i._.map(c,n.default.getTemplate)}}};t.default=s},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(1),r=o(177),n={getTemplate:function(e){var t=e.ref,o=e.data,n=e.styleId,s=o.type,a=o.value,l=s;s.charAt(0)===s.charAt(0).toUpperCase()&&(l=function(e){var t=e.charAt(0).toLowerCase();return"s"===t?"inlineStr":t}(s));var p,u={name:"c",properties:{rawMap:{r:t,t:"empty"===l?void 0:l,s:n?r.getStyleId(n):void 0}}};return p="inlineStr"===l?[{name:"is",children:[{name:"t",textNode:i._.escape(i._.utf8_encode(a))}]}]:[{name:"v",textNode:a}],i._.assign({},u,{children:p})}};t.default=n},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={getTemplate:function(e){return{name:"mergeCell",properties:{rawMap:{ref:e}}}}}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(1),r=o(383),n={getTemplate:function(e){return{name:"Relationships",properties:{rawMap:{xmlns:"http://schemas.openxmlformats.org/package/2006/relationships"}},children:i._.map(e,r.default.getTemplate)}}};t.default=n},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={getTemplate:function(e){return{name:"Relationship",properties:{rawMap:{Id:e.Id,Type:e.Type,Target:e.Target}}}}}},function(e,t,o){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),n=this&&this.__decorate||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},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},a=this&&this.__param||function(e,t){return function(o,i){t(o,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});var l=o(1),p=o(241),u=function(e){function t(t,o){var i=e.call(this,t)||this;return i.displayIndexStart=0,i.displayIndexEnd=0,i.cacheTop=0,i.blockHeights={},i.parentRowNode=o,i}return r(t,e),t.prototype.setBeans=function(e){this.logger=e.create("ServerSideCache")},t.prototype.init=function(){e.prototype.init.call(this)},t.prototype.getRowBounds=function(e){var t,o=this;this.logger.log("getRowBounds("+e+")");var i=!1,r=null;if(this.forEachBlockInOrder((function(n){i||(n.isDisplayIndexInBlock(e)?(t=n.getRowBounds(e,o.getVirtualRowCount()),i=!0):n.isBlockBefore(e)&&(r=n))})),!i){var n=void 0,s=void 0;null!==r?(n=r.getBlockTop()+r.getBlockHeight(),s=r.getDisplayIndexEnd()):(n=this.cacheTop,s=this.displayIndexStart);var a=e-s;t={rowHeight:this.cacheParams.rowHeight,rowTop:n+a*this.cacheParams.rowHeight}}return this.logger.log("getRowBounds("+e+"), result = "+t),t},t.prototype.destroyBlock=function(t){e.prototype.destroyBlock.call(this,t)},t.prototype.getRowIndexAtPixel=function(e){var t,o=this;this.logger.log("getRowIndexAtPixel("+e+")");var i,r=!1;if(this.forEachBlockInOrder((function(n){r||(n.isPixelInRange(e)?(t=n.getRowIndexAtPixel(e,o.getVirtualRowCount()),r=!0):n.getBlockTop()<e&&(i=n))})),!r){var n=void 0,s=void 0;i?(n=i.getBlockTop()+i.getBlockHeight(),s=i.getDisplayIndexEnd()):(n=this.cacheTop,s=this.displayIndexStart);var a=(e-n)/this.cacheParams.rowHeight|0;t=s+a}var l=this.getDisplayIndexEnd()-1;return t>l&&(t=l),this.logger.log("getRowIndexAtPixel("+e+") result = "+t),t},t.prototype.clearRowTops=function(){var e=this;this.forEachBlockInOrder((function(t){return t.clearRowTops(e.getVirtualRowCount())}))},t.prototype.setDisplayIndexes=function(e,t){var o=this;this.displayIndexStart=e.peek(),this.cacheTop=t.value;var i=-1,r=this.getBlockSize();this.forEachBlockInOrder((function(n,s){var a=s-i-1,p=a*r;p>0&&e.skip(p);for(var u=1;u<=a;u++){var c=s-u;l._.exists(o.blockHeights[c])?t.value+=o.blockHeights[c]:t.value+=r*o.cacheParams.rowHeight}i=s,n.setDisplayIndexes(e,o.getVirtualRowCount(),t),o.blockHeights[s]=n.getBlockHeight()}));var n=(i+1)*r-1,s=this.getVirtualRowCount()-n-1;s>0&&(e.skip(s),t.value+=s*this.cacheParams.rowHeight),this.displayIndexEnd=e.peek(),this.cacheHeight=t.value-this.cacheTop},t.prototype.getRow=function(e,t){if(void 0===t&&(t=!1),!this.isDisplayIndexInCache(e))return null;var o=null,i=null;if(this.forEachBlockInOrder((function(t){t.isDisplayIndexInBlock(e)?o=t:t.isBlockBefore(e)&&(i=t)})),l._.missing(o)&&t)return null;var r=this.getBlockSize();if(l._.missing(o)){var n,s=void 0,a=void 0;if(i){s=i.getBlockNumber()+1,n=i.getDisplayIndexEnd(),a=i.getBlockHeight()+i.getBlockTop();for(;!(e>=n&&e<n+r);){n+=r;var p=this.blockHeights[s];l._.exists(p)?a+=p:a+=this.cacheParams.rowHeight*r,s++}}else{var u=e-this.displayIndexStart;s=Math.floor(u/r),n=this.displayIndexStart+s*r,a=this.cacheTop+s*r*this.cacheParams.rowHeight}o=this.createBlock(s,n,{value:a}),this.logger.log("block missing, rowIndex = "+e+", creating #"+s+", displayIndexStart = "+n)}return o?o.getRow(e):null},t.prototype.getBlockSize=function(){return this.cacheParams.blockSize?this.cacheParams.blockSize:p.ServerSideBlock.DefaultBlockSize},t.prototype.getTopLevelRowDisplayedIndex=function(e){var t,o=this.getBlockSize(),i=Math.floor(e/o),r=this.getBlock(i);if(r)return r.getRowUsingLocalIndex(e,!0).rowIndex;if(this.forEachBlockInOrder((function(e,o){i>o&&(t=e)})),t){var n=o*(t.getBlockNumber()+1)-1,s=e-n;return t.getRowUsingLocalIndex(n,!0).rowIndex+s}return e},t.prototype.createBlock=function(e,t,o){var i=new p.ServerSideBlock(e,this.parentRowNode,this.cacheParams,this);this.getContext().wireBean(i);var r=new l.NumberSequence(t);return i.setDisplayIndexes(r,this.getVirtualRowCount(),o),this.postCreateBlock(i),i},t.prototype.getDisplayIndexEnd=function(){return this.displayIndexEnd},t.prototype.isDisplayIndexInCache=function(e){return 0!==this.getVirtualRowCount()&&(e>=this.displayIndexStart&&e<this.displayIndexEnd)},t.prototype.getChildCache=function(e){var t=this;if(l._.missingOrEmpty(e))return this;var o=e[0],i=null;if(this.forEachBlockInOrder((function(e){e.forEachNodeShallow((function(e){e.key===o&&(i=e.childrenCache)}),new l.NumberSequence,t.getVirtualRowCount())})),i){var r=e.slice(1,e.length);return i?i.getChildCache(r):null}return null},t.prototype.isPixelInRange=function(e){return 0!==this.getVirtualRowCount()&&(e>=this.cacheTop&&e<this.cacheTop+this.cacheHeight)},t.prototype.refreshCacheAfterSort=function(e,t){var o,i=this,r=this.parentRowNode.level+1;if(r<this.cacheParams.rowGroupCols.length){var n=this.cacheParams.rowGroupCols[r].field,s=t.indexOf(n)>-1,a=e.indexOf(n)>-1;o=s&&a}else o=!0;o?this.purgeCache():this.forEachBlockInOrder((function(o){if(o.isGroupLevel()){o.forEachNodeShallow((function(o){var i=o.childrenCache;i&&i.refreshCacheAfterSort(e,t)}),new l.NumberSequence,i.getVirtualRowCount())}}))},n([l.Autowired("eventService"),s("design:type",l.EventService)],t.prototype,"eventService",void 0),n([l.Autowired("gridOptionsWrapper"),s("design:type",l.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),n([a(0,l.Qualifier("loggerFactory")),s("design:type",Function),s("design:paramtypes",[l.LoggerFactory]),s("design:returntype",void 0)],t.prototype,"setBeans",null),n([l.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"init",null),t}(l.RowNodeCache);t.ServerSideCache=u},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(1),r=o(106),n=o(21),s=o(76),a=o(110),l=o(68),p=o(111),u=o(114),c=o(115),d=o(116),h=o(56),f=o(78),g=o(69),y=o(70),v=o(40),m=o(108),C=o(117),w=o(80),_=o(81),b=o(240),E=o(176),R=o(175),P=o(82),O=o(118),S=o(43),A=o(109),T=o(166),D=o(242),x=o(119),F=o(120),M=o(121),N=o(68);t.AggregationStage=N.AggregationStage;var L=o(110);t.GroupStage=L.GroupStage;var I=o(167);t.SetFilter=I.SetFilter;var G=o(168);t.SetValueModel=G.SetValueModel;var k=o(118);t.StatusBar=k.StatusBar;var W=o(82);t.StatusBarService=W.StatusBarService;var V=o(76);t.ClipboardService=V.ClipboardService;var H=o(111);t.EnterpriseBoot=H.EnterpriseBoot;var j=o(106);t.EnterpriseMenu=j.EnterpriseMenu;var B=o(75);t.MenuItemComponent=B.MenuItemComponent;var U=o(107);t.MenuList=U.MenuList;var z=o(21);t.RangeController=z.RangeController;var Y=o(112);t.RowGroupDropZonePanel=Y.RowGroupDropZonePanel;var K=o(114);t.ContextMenuFactory=K.ContextMenuFactory;var X=o(115);t.ViewportRowModel=X.ViewportRowModel;var q=o(170);t.RichSelectCellEditor=q.RichSelectCellEditor;var Q=o(171);t.RichSelectRow=Q.RichSelectRow;var $=o(77);t.VirtualList=$.VirtualList;var Z=o(79);t.BaseDropZonePanel=Z.BaseDropZonePanel;var J=o(113);t.PivotDropZonePanel=J.PivotDropZonePanel;var ee=o(116);t.SideBarComp=ee.SideBarComp;var te=o(56);t.LicenseManager=te.LicenseManager;var oe=o(69);t.PivotStage=oe.PivotStage;var ie=o(70);t.PivotColDefService=ie.PivotColDefService;var re=o(172);t.PivotModePanel=re.PivotModePanel;var ne=o(40);t.AggFuncService=ne.AggFuncService;var se=o(78);t.MD5=se.MD5;var ae=o(169);t.SetFilterListItem=ae.SetFilterListItem;var le=o(173);t.DropZoneColumnComp=le.DropZoneColumnComp;var pe=o(174);t.ValuesDropZonePanel=pe.ValuesDropZonePanel;var ue=o(117);t.ExcelCreator=ue.ExcelCreator;var ce=o(80);t.ExcelXmlFactory=ce.ExcelXmlFactory;var de=o(81);t.ExcelXlsxFactory=de.ExcelXlsxFactory;var he=o(119);t.WatermarkComp=he.WatermarkComp;var fe=o(120);t.FillHandle=fe.FillHandle;var ge=o(121);t.RangeHandle=ge.RangeHandle;var ye={viewport:c.ViewportRowModel,serverSide:b.ServerSideRowModel};i.Grid.setEnterpriseBeans([r.EnterpriseMenuFactory,C.ExcelCreator,w.ExcelXmlFactory,_.ExcelXlsxFactory,n.RangeController,s.ClipboardService,g.PivotStage,y.PivotColDefService,u.ContextMenuFactory,a.GroupStage,l.AggregationStage,p.EnterpriseBoot,v.AggFuncService,h.LicenseManager,f.MD5,m.MenuItemMapper,P.StatusBarService],ye),i.Grid.setEnterpriseComponents([{componentName:"AgPrimaryColsHeader",theClass:A.PrimaryColsHeaderPanel},{componentName:"AgPrimaryColsList",theClass:T.PrimaryColsListPanel},{componentName:"AgHorizontalResize",theClass:E.HorizontalResizeComp},{componentName:"AgSideBar",theClass:d.SideBarComp},{componentName:"AgStatusBar",theClass:O.StatusBar},{componentName:"AgNameValue",theClass:S.NameValueComp},{componentName:"AgGridHeaderDropZones",theClass:D.GridHeaderDropZones},{componentName:"AgSideBarButtons",theClass:R.SideBarButtonsComp},{componentName:"AgWatermark",theClass:x.WatermarkComp},{componentName:"AgFillHandle",theClass:F.FillHandle},{componentName:"AgRangeHandle",theClass:M.RangeHandle}])}])}));