<html>
<head>
<!-- you don't need ignore=notused in your code, this is just here to trick the cache -->
<script src="ag-grid-enterprise.js"></script>
<script src="script.js"></script>
</head>
<style>
.ag-header-cell-filtered {
background-color: #e5e5e5;
}
</style>
<body>
<input placeholder="Filter..." type="text"
onpaste="onFilterChanged(this.value)"
oninput="onFilterChanged(this.value)"
onchange="onFilterChanged(this.value)"
onchange="onFilterChanged(this.value)"
onkeydown="onFilterChanged(this.value)"
onkeyup="onFilterChanged(this.value)"/>
<div id="myGrid" class="ag-fresh" style="height: 450px; margin-top: 4px;"></div>
</body>
</html>
var columnDefs = [
{headerName: "Athlete", field: "athlete", width: 150, sort: 'desc'},
{headerName: "Age", field: "age", width: 90},
{headerName: "Country", field: "country", width: 120},
{headerName: "Year", field: "year", width: 90, unSortIcon: true},
{headerName: "Date", field: "date", width: 110, comparator: dateComparator},
{headerName: "Sport", field: "sport", width: 110},
{headerName: "Gold", field: "gold", width: 100},
{headerName: "Silver", field: "silver", width: 100},
{headerName: "Bronze", field: "bronze", width: 100},
{headerName: "Total", field: "total", width: 100}
];
function dateComparator(date1, date2) {
var date1Number = monthToComparableNumber(date1);
var date2Number = monthToComparableNumber(date2);
if (date1Number===null && date2Number===null) {
return 0;
}
if (date1Number===null) {
return -1;
}
if (date2Number===null) {
return 1;
}
return date1Number - date2Number;
}
// eg 29/08/2004 gets converted to 20040829
function monthToComparableNumber(date) {
if (date === undefined || date === null || date.length !== 10) {
return null;
}
var yearNumber = date.substring(6,10);
var monthNumber = date.substring(3,5);
var dayNumber = date.substring(0,2);
var result = (yearNumber*10000) + (monthNumber*100) + dayNumber;
return result;
}
var gridOptions = {
columnDefs: columnDefs,
rowData: null,
enableSorting: true
};
// setup the grid after the page has finished loading
document.addEventListener('DOMContentLoaded', function() {
var gridDiv = document.querySelector('#myGrid');
new agGrid.Grid(gridDiv, gridOptions);
// do http request to get our sample data - not using any framework to keep the example self contained.
// you will probably use a framework like JQuery, Angular or something else to do your HTTP calls.
var httpRequest = new XMLHttpRequest();
httpRequest.open('GET', 'https://www.ag-grid.com/olympicWinners.json');
httpRequest.send();
httpRequest.onreadystatechange = function() {
if (httpRequest.readyState == 4 && httpRequest.status == 200) {
var httpResult = JSON.parse(httpRequest.responseText);
gridOptions.api.setRowData(httpResult);
}
};
});
/* Styles go here */
!function(b,c){"object"==typeof exports&&"object"==typeof module?module.exports=c():"function"==typeof define&&define.amd?define([],c):"object"==typeof exports?exports.agGrid=c():b.agGrid=c()}(this,function(){return function(a){function c(d){if(b[d])return b[d].exports;var e=b[d]={exports:{},id:d,loaded:!1};return a[d].call(e.exports,e,e.exports,c),e.loaded=!0,e.exports}var b={};return c.m=a,c.c=b,c.p="",c(0)}([function(a,b,c){c(1);var d=c(135).populateClientExports;d(b);var e=c(3).populateClientExports;e(b),c(136),c(140),c(142),c(144),c(146),c(148)},function(a,b,c){var d=c(2),e=c(102),f=c(107),g=c(108),h=c(109),i=c(110),j=c(113),k=c(122),l=c(124),m=c(125),n=c(126),o=c(129),p=c(133),q=c(120),r=c(121),s=c(111),t=c(112),u=c(106),v=c(134),w={viewport:m.ViewportRowModel};d.Grid.setEnterpriseBeans([o.ToolPanelComp,e.EnterpriseMenuFactory,p.RowGroupCompFactory,v.PivotCompFactory,n.PivotColumnsPanel,f.RangeController,g.ClipboardService,s.PivotStage,t.PivotColDefService,l.ContextMenuFactory,h.GroupStage,i.AggregationStage,j.EnterpriseBoot,u.AggFuncService,k.StatusBar,q.LicenseManager,r.MD5],w)},function(a,b,c){var d=c(3).populateClientExports;d(b)},function(a,b,c){function Va(a){a.BalancedColumnTreeBuilder=s.BalancedColumnTreeBuilder,a.ColumnController=h.ColumnController,a.ColumnKeyCreator=t.ColumnKeyCreator,a.ColumnUtils=u.ColumnUtils,a.DisplayedGroupCreator=v.DisplayedGroupCreator,a.GroupInstanceIdCreator=w.GroupInstanceIdCreator,a.ComponentUtil=g.ComponentUtil,a.initialiseAgGridWithAngular1=i.initialiseAgGridWithAngular1,a.initialiseAgGridWithWebComponents=j.initialiseAgGridWithWebComponents,a.Context=x.Context,a.Autowired=x.Autowired,a.PostConstruct=x.PostConstruct,a.PreDestroy=x.PreDestroy,a.Optional=x.Optional,a.Bean=x.Bean,a.Qualifier=x.Qualifier,a.Listener=Ga.Listener,a.QuerySelector=Ga.QuerySelector,a.DragAndDropService=y.DragAndDropService,a.DragService=z.DragService,a.DragSourceType=y.DragSourceType,a.Column=o.Column,a.ColumnGroup=n.ColumnGroup,a.GridCell=k.GridCell,a.GridRow=pa.GridRow,a.OriginalColumnGroup=m.OriginalColumnGroup,a.RowNode=l.RowNode,a.FilterManager=A.FilterManager,a.NumberFilter=B.NumberFilter,a.TextFilter=C.TextFilter,a.GridPanel=D.GridPanel,a.MouseEventService=E.MouseEventService,a.BodyDropPivotTarget=Ia.BodyDropPivotTarget,a.BodyDropTarget=Ja.BodyDropTarget,a.CssClassApplier=F.CssClassApplier,a.HeaderContainer=G.HeaderContainer,a.HeaderRenderer=H.HeaderRenderer,a.HeaderRowComp=Na.HeaderRowComp,a.HeaderTemplateLoader=I.HeaderTemplateLoader,a.HorizontalDragService=J.HorizontalDragService,a.MoveColumnController=K.MoveColumnController,a.RenderedHeaderCell=L.RenderedHeaderCell,a.RenderedHeaderGroupCell=M.RenderedHeaderGroupCell,a.StandardMenuFactory=N.StandardMenuFactory,a.BorderLayout=O.BorderLayout,a.TabbedLayout=P.TabbedLayout,a.VerticalStack=Q.VerticalStack,a.FocusService=Ka.FocusService,a.MethodNotImplementedException=Ta.MethodNotImplementedException,a.LargeTextCellEditor=Aa.LargeTextCellEditor,a.PopupEditorWrapper=va.PopupEditorWrapper,a.PopupSelectCellEditor=wa.PopupSelectCellEditor,a.PopupTextCellEditor=xa.PopupTextCellEditor,a.SelectCellEditor=ya.SelectCellEditor,a.TextCellEditor=za.TextCellEditor,a.AnimateShowChangeCellRenderer=Oa.AnimateShowChangeCellRenderer,a.AnimateSlideCellRenderer=ta.AnimateSlideCellRenderer,a.GroupCellRenderer=Ca.GroupCellRenderer,a.SetLeftFeature=La.SetLeftFeature,a.AutoWidthCalculator=R.AutoWidthCalculator,a.CellEditorFactory=ua.CellEditorFactory,a.RenderedHeaderCell=L.RenderedHeaderCell,a.CellRendererFactory=Ba.CellRendererFactory,a.CellRendererService=Da.CellRendererService,a.CheckboxSelectionComponent=Fa.CheckboxSelectionComponent,a.RenderedCell=Ma.RenderedCell,a.RenderedRow=S.RenderedRow,a.RowRenderer=T.RowRenderer,a.ValueFormatterService=Ea.ValueFormatterService,a.FilterStage=U.FilterStage,a.FlattenStage=V.FlattenStage,a.InMemoryRowModel=qa.InMemoryRowModel,a.SortStage=W.SortStage,a.InMemoryNodeManager=Pa.InMemoryNodeManager,a.FloatingRowModel=X.FloatingRowModel,a.PaginationController=Y.PaginationController,a.VirtualPageRowModel=ra.VirtualPageRowModel,a.VirtualPageCache=Qa.VirtualPageCache,a.VirtualPage=Ra.VirtualPage,a.AgCheckbox=Ha.AgCheckbox,a.Component=Z.Component,a.PopupService=oa.PopupService,a.MenuItemComponent=sa.MenuItemComponent,a.MenuList=$.MenuList,a.Listener=Ga.Listener,a.QuerySelector=Ga.QuerySelector,a.TouchListener=Ua.TouchListener,a.BaseFrameworkFactory=Sa.BaseFrameworkFactory,a.CellNavigationService=_.CellNavigationService,a.ColumnChangeEvent=aa.ColumnChangeEvent,a.Constants=ba.Constants,a.CsvCreator=ca.CsvCreator,a.Events=f.Events,a.EventService=da.EventService,a.ExpressionService=ea.ExpressionService,a.FocusedCellController=p.FocusedCellController,a.defaultGroupComparator=q.defaultGroupComparator,a.Grid=d.Grid,a.GridApi=e.GridApi,a.GridCore=fa.GridCore,a.GridOptionsWrapper=r.GridOptionsWrapper,a.Logger=ga.Logger,a.MasterSlaveService=ha.MasterSlaveService,a.SelectionController=ia.SelectionController,a.CheckboxSelectionComponent=Fa.CheckboxSelectionComponent,a.SortController=ja.SortController,a.SvgFactory=ka.SvgFactory,a.TemplateService=la.TemplateService,a.Utils=ma.Utils,a.NumberSequence=ma.NumberSequence,a.ValueService=na.ValueService}var d=c(4),e=c(13),f=c(12),g=c(11),h=c(15),i=c(96),j=c(97),k=c(35),l=c(29),m=c(19),n=c(16),o=c(17),p=c(37),q=c(83),r=c(5),s=c(21),t=c(22),u=c(18),v=c(23),w=c(82),x=c(8),y=c(70),z=c(33),A=c(45),B=c(48),C=c(47),D=c(26),E=c(34),F=c(74),G=c(69),H=c(68),I=c(77),J=c(73),K=c(79),L=c(76),M=c(72),N=c(84),O=c(32),P=c(98),Q=c(99),R=c(24),S=c(39),T=c(25),U=c(85),V=c(87),W=c(86),X=c(28),Y=c(43),Z=c(49),$=c(100),_=c(67),aa=c(81),ba=c(10),ca=c(14),da=c(6),ea=c(20),fa=c(42),ga=c(7),ha=c(27),ia=c(30),ja=c(44),ka=c(61),la=c(38),ma=c(9),na=c(31),oa=c(46),pa=c(36),qa=c(91),ra=c(88),sa=c(101),ta=c(58),ua=c(50),va=c(53),wa=c(55),xa=c(54),ya=c(52),za=c(51),Aa=c(56),Ba=c(57),Ca=c(60),Da=c(62),Ea=c(63),Fa=c(64),Ga=c(94),Ha=c(93),Ia=c(80),Ja=c(78),Ka=c(41),La=c(65),Ma=c(40),Na=c(71),Oa=c(59),Pa=c(92),Qa=c(89),Ra=c(90),Sa=c(95),Ta=c(66),Ua=c(75);b.populateClientExports=Va},function(a,b,c){var d=c(5),e=c(43),f=c(28),g=c(30),h=c(15),i=c(25),j=c(68),k=c(45),l=c(31),m=c(27),n=c(6),o=c(26),p=c(13),q=c(77),r=c(21),s=c(23),t=c(20),u=c(38),v=c(46),w=c(7),x=c(18),y=c(24),z=c(73),A=c(8),B=c(14),C=c(42),D=c(84),E=c(70),F=c(33),G=c(44),H=c(37),I=c(34),J=c(67),K=c(9),L=c(85),M=c(86),N=c(87),O=c(41),P=c(50),Q=c(12),R=c(88),S=c(91),T=c(57),U=c(62),V=c(63),W=c(93),X=c(95),Y=function(){function a(b,c,R){b||console.error("ag-Grid: no div element provided to the grid"),c||console.error("ag-Grid: no gridOptions provided to the grid");var S=this.getRowModelClass(c),Y=K.Utils.exists(a.enterpriseBeans),Z=R?R.frameworkFactory:null;K.Utils.missing(Z)&&(Z=new X.BaseFrameworkFactory),this.context=new A.Context({overrideBeans:a.enterpriseBeans,seed:{enterprise:Y,gridOptions:c,eGridDiv:b,$scope:R?R.$scope:null,$compile:R?R.$compile:null,quickFilterOnScope:R?R.quickFilterOnScope:null,globalEventListener:R?R.globalEventListener:null,frameworkFactory:Z},beans:[S,T.CellRendererFactory,z.HorizontalDragService,q.HeaderTemplateLoader,f.FloatingRowModel,F.DragService,s.DisplayedGroupCreator,n.EventService,d.GridOptionsWrapper,g.SelectionController,k.FilterManager,h.ColumnController,i.RowRenderer,j.HeaderRenderer,t.ExpressionService,r.BalancedColumnTreeBuilder,B.CsvCreator,u.TemplateService,o.GridPanel,v.PopupService,l.ValueService,m.MasterSlaveService,w.LoggerFactory,x.ColumnUtils,y.AutoWidthCalculator,p.GridApi,e.PaginationController,v.PopupService,C.GridCore,D.StandardMenuFactory,E.DragAndDropService,G.SortController,h.ColumnApi,H.FocusedCellController,I.MouseEventService,J.CellNavigationService,L.FilterStage,M.SortStage,N.FlattenStage,O.FocusService,P.CellEditorFactory,U.CellRendererService,V.ValueFormatterService],components:[{componentName:"AgCheckbox",theClass:W.AgCheckbox}],debug:!!c.debug});var $=this.context.getBean("eventService"),_={api:c.api,columnApi:c.columnApi};$.dispatchEvent(Q.Events.EVENT_GRID_READY,_),c.debug&&console.log("ag-Grid -> initialised successfully, enterprise = "+Y)}return a.setEnterpriseBeans=function(b,c){this.enterpriseBeans=b,K.Utils.iterateObject(c,function(b,c){return a.RowModelClasses[b]=c})},a.prototype.getRowModelClass=function(b){var c=b.rowModelType;if(K.Utils.exists(c)){var d=a.RowModelClasses[c];if(K.Utils.exists(d))return d;console.error("ag-Grid: count not find matching row model for rowModelType "+c),"viewport"===c&&console.error("ag-Grid: rowModelType viewport is only available in ag-Grid Enterprise")}return S.InMemoryRowModel},a.prototype.destroy=function(){this.context.destroy()},a.RowModelClasses={virtual:R.VirtualPageRowModel,pagination:S.InMemoryRowModel},a}();b.Grid=Y},function(a,b,c){function q(a){return a===!0||"true"===a}function r(a,b){return a>0?a:b}var d=this&&this.__decorate||function(a,b,c,d){var g,e=arguments.length,f=e<3?b:null===d?d=Object.getOwnPropertyDescriptor(b,c):d;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)f=Reflect.decorate(a,b,c,d);else for(var h=a.length-1;h>=0;h--)(g=a[h])&&(f=(e<3?g(f):e>3?g(b,c,f):g(b,c))||f);return e>3&&f&&Object.defineProperty(b,c,f),f},e=this&&this.__metadata||function(a,b){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(a,b)},f=this&&this.__param||function(a,b){return function(c,d){b(c,d,a)}},g=c(6),h=c(10),i=c(11),j=c(13),k=c(8),l=c(15),m=c(9),n=25,o=5,p=5,s=function(){function a(){this.propertyEventService=new g.EventService,this.domDataKey="__AG_"+Math.random().toString}return a.prototype.agWire=function(a,b){this.gridOptions.api=a,this.gridOptions.columnApi=b,this.checkForDeprecated()},a.prototype.destroy=function(){this.gridOptions.api=null,this.gridOptions.columnApi=null},a.prototype.init=function(){this.eventService.addGlobalListener(this.globalEventHandler.bind(this)),this.setupCellRenderers(),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: rowSelectionMulti must be true for groupSelectsChildren to make sense")},a.prototype.setupCellRenderers=function(){this.fullWidthCellRenderer=this.frameworkFactory.gridOptionsFullWidthCellRenderer(this.gridOptions),this.groupRowRenderer=this.frameworkFactory.gridOptionsGroupRowRenderer(this.gridOptions),this.groupRowInnerRenderer=this.frameworkFactory.gridOptionsGroupRowInnerRenderer(this.gridOptions)},a.prototype.getDomDataKey=function(){return this.domDataKey},a.prototype.getFullWidthCellRenderer=function(){return this.fullWidthCellRenderer},a.prototype.getGroupRowRenderer=function(){return this.groupRowRenderer},a.prototype.getGroupRowInnerRenderer=function(){return this.groupRowInnerRenderer},a.prototype.isEnterprise=function(){return this.enterprise},a.prototype.isRowSelection=function(){return"single"===this.gridOptions.rowSelection||"multiple"===this.gridOptions.rowSelection},a.prototype.isRowDeselection=function(){return q(this.gridOptions.rowDeselection)},a.prototype.isRowSelectionMulti=function(){return"multiple"===this.gridOptions.rowSelection},a.prototype.getContext=function(){return this.gridOptions.context},a.prototype.isPivotMode=function(){return q(this.gridOptions.pivotMode)},a.prototype.isRowModelPagination=function(){return this.gridOptions.rowModelType===h.Constants.ROW_MODEL_TYPE_PAGINATION},a.prototype.isRowModelVirtual=function(){return this.gridOptions.rowModelType===h.Constants.ROW_MODEL_TYPE_VIRTUAL},a.prototype.isRowModelViewport=function(){return this.gridOptions.rowModelType===h.Constants.ROW_MODEL_TYPE_VIEWPORT},a.prototype.isRowModelDefault=function(){return!(this.isRowModelPagination()||this.isRowModelVirtual()||this.isRowModelViewport())},a.prototype.isFullRowEdit=function(){return"fullRow"===this.gridOptions.editType},a.prototype.isSuppressFocusAfterRefresh=function(){return q(this.gridOptions.suppressFocusAfterRefresh)},a.prototype.isShowToolPanel=function(){return q(this.gridOptions.showToolPanel)},a.prototype.isToolPanelSuppressRowGroups=function(){return q(this.gridOptions.toolPanelSuppressRowGroups)},a.prototype.isToolPanelSuppressValues=function(){return q(this.gridOptions.toolPanelSuppressValues)},a.prototype.isToolPanelSuppressPivots=function(){return q(this.gridOptions.toolPanelSuppressPivots)},a.prototype.isToolPanelSuppressPivotMode=function(){return q(this.gridOptions.toolPanelSuppressPivotMode)},a.prototype.isSuppressTouch=function(){return q(this.gridOptions.suppressTouch)},a.prototype.isEnableCellChangeFlash=function(){return q(this.gridOptions.enableCellChangeFlash)},a.prototype.isGroupSelectsChildren=function(){return q(this.gridOptions.groupSelectsChildren)},a.prototype.isGroupIncludeFooter=function(){return q(this.gridOptions.groupIncludeFooter)},a.prototype.isGroupSuppressBlankHeader=function(){return q(this.gridOptions.groupSuppressBlankHeader)},a.prototype.isSuppressRowClickSelection=function(){return q(this.gridOptions.suppressRowClickSelection)},a.prototype.isSuppressCellSelection=function(){return q(this.gridOptions.suppressCellSelection)},a.prototype.isSuppressMultiSort=function(){return q(this.gridOptions.suppressMultiSort)},a.prototype.isGroupSuppressAutoColumn=function(){return q(this.gridOptions.groupSuppressAutoColumn)},a.prototype.isSuppressDragLeaveHidesColumns=function(){return q(this.gridOptions.suppressDragLeaveHidesColumns)},a.prototype.isForPrint=function(){return q(this.gridOptions.forPrint)},a.prototype.isSuppressHorizontalScroll=function(){return q(this.gridOptions.suppressHorizontalScroll)},a.prototype.isSuppressLoadingOverlay=function(){return q(this.gridOptions.suppressLoadingOverlay)},a.prototype.isSuppressNoRowsOverlay=function(){return q(this.gridOptions.suppressNoRowsOverlay)},a.prototype.isSuppressFieldDotNotation=function(){return q(this.gridOptions.suppressFieldDotNotation)},a.prototype.getFloatingTopRowData=function(){return this.gridOptions.floatingTopRowData},a.prototype.getFloatingBottomRowData=function(){return this.gridOptions.floatingBottomRowData},a.prototype.isFunctionsPassive=function(){return q(this.gridOptions.functionsPassive)},a.prototype.isSuppressRowHoverClass=function(){return q(this.gridOptions.suppressRowHoverClass)},a.prototype.getQuickFilterText=function(){return this.gridOptions.quickFilterText},a.prototype.isUnSortIcon=function(){return q(this.gridOptions.unSortIcon)},a.prototype.isSuppressMenuHide=function(){return q(this.gridOptions.suppressMenuHide)},a.prototype.getRowStyle=function(){return this.gridOptions.rowStyle},a.prototype.getRowClass=function(){return this.gridOptions.rowClass},a.prototype.getRowStyleFunc=function(){return this.gridOptions.getRowStyle},a.prototype.getRowClassFunc=function(){return this.gridOptions.getRowClass},a.prototype.getDoesDataFlowerFunc=function(){return this.gridOptions.doesDataFlower},a.prototype.getScrollbarWidth=function(){return this.gridOptions.scrollbarWidth},a.prototype.getIsFullWidthCellFunc=function(){return this.gridOptions.isFullWidthCell},a.prototype.getFullWidthCellRendererParams=function(){return this.gridOptions.fullWidthCellRendererParams},a.prototype.getBusinessKeyForNodeFunc=function(){return this.gridOptions.getBusinessKeyForNode},a.prototype.getHeaderCellRenderer=function(){return this.gridOptions.headerCellRenderer},a.prototype.getApi=function(){return this.gridOptions.api},a.prototype.getColumnApi=function(){return this.gridOptions.columnApi},a.prototype.isEnableColResize=function(){return q(this.gridOptions.enableColResize)},a.prototype.isSingleClickEdit=function(){return q(this.gridOptions.singleClickEdit)},a.prototype.getGroupDefaultExpanded=function(){return this.gridOptions.groupDefaultExpanded},a.prototype.getAutoSizePadding=function(){return this.gridOptions.autoSizePadding},a.prototype.getMaxConcurrentDatasourceRequests=function(){return this.gridOptions.maxConcurrentDatasourceRequests},a.prototype.getMaxPagesInCache=function(){return this.gridOptions.maxPagesInCache},a.prototype.getPaginationOverflowSize=function(){return this.gridOptions.paginationOverflowSize},a.prototype.getPaginationPageSize=function(){return this.gridOptions.paginationPageSize},a.prototype.getPaginationInitialRowCount=function(){return this.gridOptions.paginationInitialRowCount},a.prototype.getRowData=function(){return this.gridOptions.rowData},a.prototype.isGroupUseEntireRow=function(){return q(this.gridOptions.groupUseEntireRow)},a.prototype.getGroupColumnDef=function(){return this.gridOptions.groupColumnDef},a.prototype.isGroupSuppressRow=function(){return q(this.gridOptions.groupSuppressRow)},a.prototype.getRowGroupPanelShow=function(){return this.gridOptions.rowGroupPanelShow},a.prototype.getPivotPanelShow=function(){return this.gridOptions.pivotPanelShow},a.prototype.isAngularCompileRows=function(){return q(this.gridOptions.angularCompileRows)},a.prototype.isAngularCompileFilters=function(){return q(this.gridOptions.angularCompileFilters)},a.prototype.isAngularCompileHeaders=function(){return q(this.gridOptions.angularCompileHeaders)},a.prototype.isDebug=function(){return q(this.gridOptions.debug)},a.prototype.getColumnDefs=function(){return this.gridOptions.columnDefs},a.prototype.getDatasource=function(){return this.gridOptions.datasource},a.prototype.getViewportDatasource=function(){return this.gridOptions.viewportDatasource},a.prototype.isEnableSorting=function(){return q(this.gridOptions.enableSorting)||q(this.gridOptions.enableServerSideSorting)},a.prototype.isEnableCellExpressions=function(){return q(this.gridOptions.enableCellExpressions)},a.prototype.isSuppressMiddleClickScrolls=function(){return q(this.gridOptions.suppressMiddleClickScrolls)},a.prototype.isSuppressPreventDefaultOnMouseWheel=function(){return q(this.gridOptions.suppressPreventDefaultOnMouseWheel)},a.prototype.isEnableServerSideSorting=function(){return q(this.gridOptions.enableServerSideSorting)},a.prototype.isSuppressColumnVirtualisation=function(){return q(this.gridOptions.suppressColumnVirtualisation)},a.prototype.isSuppressContextMenu=function(){return q(this.gridOptions.suppressContextMenu)},a.prototype.isSuppressCopyRowsToClipboard=function(){return q(this.gridOptions.suppressCopyRowsToClipboard)},a.prototype.isEnableFilter=function(){return q(this.gridOptions.enableFilter)||q(this.gridOptions.enableServerSideFilter)},a.prototype.isEnableServerSideFilter=function(){return this.gridOptions.enableServerSideFilter},a.prototype.isSuppressScrollLag=function(){return q(this.gridOptions.suppressScrollLag)},a.prototype.isSuppressMovableColumns=function(){return q(this.gridOptions.suppressMovableColumns)},a.prototype.isSuppressColumnMoveAnimation=function(){return q(this.gridOptions.suppressColumnMoveAnimation)},a.prototype.isSuppressMenuColumnPanel=function(){return q(this.gridOptions.suppressMenuColumnPanel)},a.prototype.isSuppressMenuFilterPanel=function(){return q(this.gridOptions.suppressMenuFilterPanel)},a.prototype.isSuppressUseColIdForGroups=function(){return q(this.gridOptions.suppressUseColIdForGroups)},a.prototype.isSuppressAggFuncInHeader=function(){return q(this.gridOptions.suppressAggFuncInHeader)},a.prototype.isSuppressMenuMainPanel=function(){return q(this.gridOptions.suppressMenuMainPanel)},a.prototype.isEnableRangeSelection=function(){return q(this.gridOptions.enableRangeSelection)},a.prototype.isRememberGroupStateWhenNewData=function(){return q(this.gridOptions.rememberGroupStateWhenNewData)},a.prototype.getIcons=function(){return this.gridOptions.icons},a.prototype.getAggFuncs=function(){return this.gridOptions.aggFuncs},a.prototype.getIsScrollLag=function(){return this.gridOptions.isScrollLag},a.prototype.getSortingOrder=function(){return this.gridOptions.sortingOrder},a.prototype.getSlaveGrids=function(){return this.gridOptions.slaveGrids},a.prototype.getGroupRowRendererParams=function(){return this.gridOptions.groupRowRendererParams},a.prototype.getOverlayLoadingTemplate=function(){return this.gridOptions.overlayLoadingTemplate},a.prototype.getOverlayNoRowsTemplate=function(){return this.gridOptions.overlayNoRowsTemplate},a.prototype.getCheckboxSelection=function(){return this.gridOptions.checkboxSelection},a.prototype.isSuppressAutoSize=function(){return q(this.gridOptions.suppressAutoSize)},a.prototype.isSuppressParentsInRowNodes=function(){return q(this.gridOptions.suppressParentsInRowNodes)},a.prototype.isEnableStatusBar=function(){return q(this.gridOptions.enableStatusBar)},a.prototype.isFunctionsReadOnly=function(){return q(this.gridOptions.functionsReadOnly)},a.prototype.getDefaultColDef=function(){return this.gridOptions.defaultColDef},a.prototype.getDefaultColGroupDef=function(){return this.gridOptions.defaultColGroupDef},a.prototype.getHeaderCellTemplate=function(){return this.gridOptions.headerCellTemplate},a.prototype.getHeaderCellTemplateFunc=function(){return this.gridOptions.getHeaderCellTemplate},a.prototype.getNodeChildDetailsFunc=function(){return this.gridOptions.getNodeChildDetails},a.prototype.getGroupRowAggNodesFunc=function(){return this.gridOptions.groupRowAggNodes},a.prototype.getContextMenuItemsFunc=function(){return this.gridOptions.getContextMenuItems},a.prototype.getMainMenuItemsFunc=function(){return this.gridOptions.getMainMenuItems},a.prototype.getRowNodeIdFunc=function(){return this.gridOptions.getRowNodeId},a.prototype.getProcessSecondaryColDefFunc=function(){return this.gridOptions.processSecondaryColDef},a.prototype.getProcessSecondaryColGroupDefFunc=function(){return this.gridOptions.processSecondaryColGroupDef},a.prototype.getProcessCellForClipboardFunc=function(){return this.gridOptions.processCellForClipboard},a.prototype.getProcessCellFromClipboardFunc=function(){return this.gridOptions.processCellFromClipboard},a.prototype.getViewportRowModelPageSize=function(){return r(this.gridOptions.viewportRowModelPageSize,o)},a.prototype.getViewportRowModelBufferSize=function(){return r(this.gridOptions.viewportRowModelBufferSize,p)},a.prototype.setProperty=function(a,b){var c=this.gridOptions,d=c[a];c[a]=b,this.propertyEventService.dispatchEvent(a,{currentValue:b,previousValue:d})},a.prototype.addEventListener=function(a,b){this.propertyEventService.addEventListener(a,b)},a.prototype.removeEventListener=function(a,b){this.propertyEventService.removeEventListener(a,b)},a.prototype.executeProcessRowPostCreateFunc=function(a){this.gridOptions.processRowPostCreate&&this.gridOptions.processRowPostCreate(a)},a.prototype.getHeaderHeight=function(){return"number"==typeof this.gridOptions.headerHeight?this.gridOptions.headerHeight:25},a.prototype.isExternalFilterPresent=function(){return"function"==typeof this.gridOptions.isExternalFilterPresent&&this.gridOptions.isExternalFilterPresent()},a.prototype.doesExternalFilterPass=function(a){return"function"==typeof this.gridOptions.doesExternalFilterPass&&this.gridOptions.doesExternalFilterPass(a)},a.prototype.getLayoutInterval=function(){return"number"==typeof this.gridOptions.layoutInterval?this.gridOptions.layoutInterval:h.Constants.LAYOUT_INTERVAL},a.prototype.getMinColWidth=function(){return this.gridOptions.minColWidth>a.MIN_COL_WIDTH?this.gridOptions.minColWidth:a.MIN_COL_WIDTH},a.prototype.getMaxColWidth=function(){return this.gridOptions.maxColWidth>a.MIN_COL_WIDTH?this.gridOptions.maxColWidth:null},a.prototype.getColWidth=function(){return"number"!=typeof this.gridOptions.colWidth||this.gridOptions.colWidth<a.MIN_COL_WIDTH?200:this.gridOptions.colWidth},a.prototype.getRowBuffer=function(){return"number"==typeof this.gridOptions.rowBuffer?(this.gridOptions.rowBuffer<0&&console.warn("ag-Grid: rowBuffer should not be negative"),this.gridOptions.rowBuffer):h.Constants.ROW_BUFFER_SIZE},a.prototype.checkForDeprecated=function(){var a=this.gridOptions;a.suppressUnSort&&console.warn("ag-grid: as of v1.12.4 suppressUnSort is not used. Please use sortOrder instead."),a.suppressDescSort&&console.warn("ag-grid: as of v1.12.4 suppressDescSort is not used. Please use sortOrder instead."),a.groupAggFields&&console.warn("ag-grid: as of v3 groupAggFields is not used. Please add appropriate agg fields to your columns."),a.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"),a.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"),(a.ready||a.onReady)&&console.warn("ag-grid: as of v3.3 ready event is now called gridReady, so the callback should be onGridReady"),"boolean"==typeof a.groupDefaultExpanded&&console.warn("ag-grid: groupDefaultExpanded can no longer be boolean. for groupDefaultExpanded=true, use groupDefaultExpanded=9999 instead, to expand all the groups"),(a.onRowDeselected||a.rowDeselected)&&console.warn("ag-grid: since version 3.4 event rowDeselected no longer exists, please check the docs"),a.rowsAlreadyGrouped&&console.warn("ag-grid: since version 3.4 rowsAlreadyGrouped no longer exists, please use getNodeChildDetails() instead"),a.groupAggFunction&&console.warn("ag-grid: since version 4.3.x groupAggFunction is now called groupRowAggNodes")},a.prototype.getLocaleTextFunc=function(){if(this.gridOptions.localeTextFunc)return this.gridOptions.localeTextFunc;var a=this;return function(b,c){var d=a.gridOptions.localeText;return d&&d[b]?d[b]:c}},a.prototype.globalEventHandler=function(a,b){var c=i.ComponentUtil.getCallbackForEvent(a);"function"==typeof this.gridOptions[c]&&this.gridOptions[c](b)},a.prototype.getRowHeightAsNumber=function(){var a=this.gridOptions.rowHeight;return m.Utils.missing(a)?n:"number"==typeof this.gridOptions.rowHeight?this.gridOptions.rowHeight:(console.warn("ag-Grid row height must be a number if not using standard row model"),n)},a.prototype.getRowHeightForNode=function(a){if("number"==typeof this.gridOptions.rowHeight)return this.gridOptions.rowHeight;if("function"==typeof this.gridOptions.getRowHeight){var b={node:a,data:a.data,api:this.gridOptions.api,context:this.gridOptions.context};return this.gridOptions.getRowHeight(b)}return n},a.MIN_COL_WIDTH=10,a.PROP_HEADER_HEIGHT="headerHeight",d([k.Autowired("gridOptions"),e("design:type",Object)],a.prototype,"gridOptions",void 0),d([k.Autowired("columnController"),e("design:type",l.ColumnController)],a.prototype,"columnController",void 0),d([k.Autowired("eventService"),e("design:type",g.EventService)],a.prototype,"eventService",void 0),d([k.Autowired("enterprise"),e("design:type",Boolean)],a.prototype,"enterprise",void 0),d([k.Autowired("frameworkFactory"),e("design:type",Object)],a.prototype,"frameworkFactory",void 0),d([f(0,k.Qualifier("gridApi")),f(1,k.Qualifier("columnApi")),e("design:type",Function),e("design:paramtypes",[j.GridApi,l.ColumnApi]),e("design:returntype",void 0)],a.prototype,"agWire",null),d([k.PreDestroy,e("design:type",Function),e("design:paramtypes",[]),e("design:returntype",void 0)],a.prototype,"destroy",null),d([k.PostConstruct,e("design:type",Function),e("design:paramtypes",[]),e("design:returntype",void 0)],a.prototype,"init",null),a=d([k.Bean("gridOptionsWrapper"),e("design:paramtypes",[])],a)}();b.GridOptionsWrapper=s},function(a,b,c){var d=this&&this.__decorate||function(a,b,c,d){var g,e=arguments.length,f=e<3?b:null===d?d=Object.getOwnPropertyDescriptor(b,c):d;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)f=Reflect.decorate(a,b,c,d);else for(var h=a.length-1;h>=0;h--)(g=a[h])&&(f=(e<3?g(f):e>3?g(b,c,f):g(b,c))||f);return e>3&&f&&Object.defineProperty(b,c,f),f},e=this&&this.__metadata||function(a,b){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(a,b)},f=this&&this.__param||function(a,b){return function(c,d){b(c,d,a)}},g=c(7),h=c(9),i=c(8),j=c(8),k=function(){function a(){this.allListeners={},this.globalListeners=[]}return a.prototype.agWire=function(a,b){void 0===b&&(b=null),this.logger=a.create("EventService"),b&&this.addGlobalListener(b)},a.prototype.getListenerList=function(a){var b=this.allListeners[a];return b||(b=[],this.allListeners[a]=b),b},a.prototype.addEventListener=function(a,b){var c=this.getListenerList(a);c.indexOf(b)<0&&c.push(b)},a.prototype.addModalPriorityEventListener=function(b,c){this.addEventListener(b+a.PRIORITY,c)},a.prototype.addGlobalListener=function(a){this.globalListeners.push(a)},a.prototype.removeEventListener=function(a,b){var c=this.getListenerList(a);h.Utils.removeFromArray(c,b)},a.prototype.removeGlobalListener=function(a){h.Utils.removeFromArray(this.globalListeners,a)},a.prototype.dispatchEvent=function(b,c){c||(c={});var d=this.getListenerList(b+a.PRIORITY);d.forEach(function(a){a(c)});var e=this.getListenerList(b);e.forEach(function(a){a(c)}),this.globalListeners.forEach(function(a){a(b,c)})},a.PRIORITY="-P1",d([f(0,j.Qualifier("loggerFactory")),f(1,j.Qualifier("globalEventListener")),e("design:type",Function),e("design:paramtypes",[g.LoggerFactory,Function]),e("design:returntype",void 0)],a.prototype,"agWire",null),a=d([i.Bean("eventService"),e("design:paramtypes",[])],a)}();b.EventService=k},function(a,b,c){var d=this&&this.__decorate||function(a,b,c,d){var g,e=arguments.length,f=e<3?b:null===d?d=Object.getOwnPropertyDescriptor(b,c):d;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)f=Reflect.decorate(a,b,c,d);else for(var h=a.length-1;h>=0;h--)(g=a[h])&&(f=(e<3?g(f):e>3?g(b,c,f):g(b,c))||f);return e>3&&f&&Object.defineProperty(b,c,f),f},e=this&&this.__metadata||function(a,b){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(a,b)},f=this&&this.__param||function(a,b){return function(c,d){b(c,d,a)}},g=c(5),h=c(8),i=c(8),j=function(){function a(){}return a.prototype.setBeans=function(a){this.logging=a.isDebug()},a.prototype.create=function(a){return new k(a,this.logging)},d([f(0,i.Qualifier("gridOptionsWrapper")),e("design:type",Function),e("design:paramtypes",[g.GridOptionsWrapper]),e("design:returntype",void 0)],a.prototype,"setBeans",null),a=d([h.Bean("loggerFactory"),e("design:paramtypes",[])],a)}();b.LoggerFactory=j;var k=function(){function a(a,b){this.name=a,this.logging=b}return a.prototype.log=function(a){this.logging&&console.log("ag-Grid."+this.name+": "+a)},a}();b.Logger=k},function(a,b,c){function g(a,b){var c=[null].concat(b),d=a.bind.apply(a,c);return new d}function h(a,b,c){var d=o(a);d.postConstructMethods||(d.postConstructMethods=[]),d.postConstructMethods.push(b)}function i(a,b,c){var d=o(a);d.preDestroyMethods||(d.preDestroyMethods=[]),d.preDestroyMethods.push(b)}function j(a){return function(b){var c=o(b.prototype);c.beanName=a}}function k(a){return m.bind(this,a,!1)}function l(a){return m.bind(this,a,!0)}function m(a,b,c,d,e){if(null===a)return void console.error("ag-Grid: Autowired name should not be null");if("number"==typeof e)return void console.error("ag-Grid: Autowired should be on an attribute");var f=o(c);f.agClassAttributes||(f.agClassAttributes=[]),f.agClassAttributes.push({attributeName:d,beanName:a,optional:b})}function n(a){return function(b,c,d){var e;if("number"==typeof d){var f;c?(e=o(b),f=c):(e=o(b.prototype),f="agConstructor"),e.autowireMethods||(e.autowireMethods={}),e.autowireMethods[f]||(e.autowireMethods[f]={}),e.autowireMethods[f][d]=a}}}function o(a){var b=a.__agBeanMetaData;return b||(b={},a.__agBeanMetaData=b),b}var d=c(9),e=c(7),f=function(){function a(a){if(this.beans={},this.componentsMappedByName={},this.destroyed=!1,a&&a.beans){this.contextParams=a,this.logger=new e.Logger("Context",this.contextParams.debug),this.logger.log(">> creating ag-Application Context"),this.setupComponents(),this.createBeans();var b=d.Utils.mapObject(this.beans,function(a){return a.beanInstance});this.wireBeans(b),this.logger.log(">> ag-Application Context ready - component is alive");
}}return a.prototype.setupComponents=function(){var a=this;this.contextParams.components&&this.contextParams.components.forEach(function(b){return a.addComponent(b)})},a.prototype.addComponent=function(a){var b=a.componentName.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),c=b.toUpperCase();this.componentsMappedByName[c]=a.theClass},a.prototype.createComponent=function(a){var b=a.nodeName;if(this.componentsMappedByName&&this.componentsMappedByName[b]){var c=new this.componentsMappedByName[b];return this.copyAttributesFromNode(a,c.getGui()),this.wireBean(c),c}return null},a.prototype.copyAttributesFromNode=function(a,b){if(a.attributes)for(var c=a.attributes.length,d=0;d<c;d++){var e=a.attributes[d];b.setAttribute(e.name,e.value)}},a.prototype.wireBean=function(a){this.wireBeans([a])},a.prototype.wireBeans=function(a){this.autoWireBeans(a),this.methodWireBeans(a),this.postConstruct(a)},a.prototype.createBeans=function(){var a=this;this.contextParams.beans.forEach(this.createBeanEntry.bind(this)),this.contextParams.overrideBeans&&this.contextParams.overrideBeans.forEach(this.createBeanEntry.bind(this)),d.Utils.iterateObject(this.beans,function(b,c){var d;c.bean.prototype.__agBeanMetaData&&c.bean.prototype.__agBeanMetaData.autowireMethods&&c.bean.prototype.__agBeanMetaData.autowireMethods.agConstructor&&(d=c.bean.prototype.__agBeanMetaData.autowireMethods.agConstructor);var e=a.getBeansForParameters(d,c.beanName),f=g(c.bean,e);c.beanInstance=f,a.logger.log("bean "+a.getBeanName(f)+" created")})},a.prototype.createBeanEntry=function(a){var b=a.prototype.__agBeanMetaData;if(!b){var c;return c=a.prototype.constructor?a.prototype.constructor.name:""+a,void console.error("context item "+c+" is not a bean")}var d={bean:a,beanInstance:null,beanName:b.beanName};this.beans[b.beanName]=d},a.prototype.autoWireBeans=function(a){var b=this;a.forEach(function(a){return b.autoWireBean(a)})},a.prototype.methodWireBeans=function(a){var b=this;a.forEach(function(a){return b.methodWireBean(a)})},a.prototype.autoWireBean=function(a){var b=this;if(a&&a.__agBeanMetaData&&a.__agBeanMetaData.agClassAttributes){var c=a.__agBeanMetaData.agClassAttributes;if(c){var d=this.getBeanName(a);c.forEach(function(c){var e=b.lookupBeanInstance(d,c.beanName,c.optional);a[c.attributeName]=e})}}},a.prototype.getBeanName=function(a){var b=a.constructor.toString(),c=b.substring(9,b.indexOf("("));return c},a.prototype.methodWireBean=function(a){var c,b=this;a.__agBeanMetaData&&(c=a.__agBeanMetaData.autowireMethods),d.Utils.iterateObject(c,function(c,d){if("agConstructor"!==c){var e=b.getBeanName(a),f=b.getBeansForParameters(d,e);a[c].apply(a,f)}})},a.prototype.getBeansForParameters=function(a,b){var c=this,e=[];return a&&d.Utils.iterateObject(a,function(a,d){var f=c.lookupBeanInstance(b,d);e[Number(a)]=f}),e},a.prototype.lookupBeanInstance=function(a,b,c){if(void 0===c&&(c=!1),"context"===b)return this;if(this.contextParams.seed&&this.contextParams.seed.hasOwnProperty(b))return this.contextParams.seed[b];var d=this.beans[b];return d?d.beanInstance:(c||console.error("ag-Grid: unable to find bean reference "+b+" while initialising "+a),null)},a.prototype.postConstruct=function(a){a.forEach(function(a){a.__agBeanMetaData&&a.__agBeanMetaData.postConstructMethods&&a.__agBeanMetaData.postConstructMethods.forEach(function(b){return a[b]()})})},a.prototype.getBean=function(a){return this.lookupBeanInstance("getBean",a,!0)},a.prototype.destroy=function(){this.destroyed||(this.logger.log(">> Shutting down ag-Application Context"),d.Utils.iterateObject(this.beans,function(a,b){var c=b.beanInstance;c.__agBeanMetaData&&c.__agBeanMetaData.preDestroyMethods&&c.__agBeanMetaData.preDestroyMethods.forEach(function(a){return c[a]()})}),this.destroyed=!0,this.logger.log(">> ag-Application Context shut down - component is dead"))},a}();b.Context=f,b.PostConstruct=h,b.PreDestroy=i,b.Bean=j,b.Autowired=k,b.Optional=l,b.Qualifier=n},function(a,b){var c=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,d=/([^\s,]+)/g,e=function(){function a(){this.timestamp=(new Date).getTime()}return a.prototype.print=function(a){var b=(new Date).getTime()-this.timestamp;console.log(a+" = "+b),this.timestamp=(new Date).getTime()},a}();b.Timer=e;var f=function(){function a(){}return a.areEventsNear=function(a,b,c){if(0===c)return!1;var d=Math.abs(a.clientX-b.clientX),e=Math.abs(a.clientY-b.clientY);return Math.max(d,e)<=c},a.getNameOfClass=function(a){var b=/function (.{1,})\(/,c=a.toString(),d=b.exec(c);return d&&d.length>1?d[1]:""},a.values=function(a){var b=[];return this.iterateObject(a,function(a,c){b.push(c)}),b},a.getValueUsingField=function(a,b,c){if(b&&a){if(c){for(var d=b.split("."),e=a,f=0;f<d.length;f++)if(e=e[d[f]],this.missing(e))return null;return e}return a[b]}},a.iterateObject=function(a,b){if(!this.missing(a))for(var c=Object.keys(a),d=0;d<c.length;d++){var e=c[d],f=a[e];b(e,f)}},a.cloneObject=function(a){for(var b={},c=Object.keys(a),d=0;d<c.length;d++){var e=c[d],f=a[e];b[e]=f}return b},a.map=function(a,b){for(var c=[],d=0;d<a.length;d++){var e=a[d],f=b(e);c.push(f)}return c},a.mapObject=function(b,c){var d=[];return a.iterateObject(b,function(a,b){d.push(c(b))}),d},a.forEach=function(a,b){if(a)for(var c=0;c<a.length;c++){var d=a[c];b(d,c)}},a.filter=function(a,b){var c=[];return a.forEach(function(a){b(a)&&c.push(a)}),c},a.assign=function(a,b){this.exists(b)&&this.iterateObject(b,function(b,c){a[b]=c})},a.getFunctionParameters=function(a){var b=a.toString().replace(c,""),e=b.slice(b.indexOf("(")+1,b.indexOf(")")).match(d);return null===e?[]:e},a.find=function(a,b,c){if(null===a||void 0===a)return null;for(var d,e=0;e<a.length;e++){var f=a[e];if("string"==typeof b){if(f[b]===c){d=f;break}}else{var g=b;if(g(f)){d=f;break}}}return d},a.toStrings=function(a){return this.map(a,function(a){return void 0!==a&&null!==a&&a.toString?a.toString():null})},a.iterateArray=function(a,b){for(var c=0;c<a.length;c++){var d=a[c];b(d,c)}},a.isNode=function(a){return"function"==typeof Node?a instanceof Node:a&&"object"==typeof a&&"number"==typeof a.nodeType&&"string"==typeof a.nodeName},a.isElement=function(a){return"function"==typeof HTMLElement?a instanceof HTMLElement:a&&"object"==typeof a&&null!==a&&1===a.nodeType&&"string"==typeof a.nodeName},a.isNodeOrElement=function(a){return this.isNode(a)||this.isElement(a)},a.addChangeListener=function(a,b){a.addEventListener("changed",b),a.addEventListener("paste",b),a.addEventListener("input",b),a.addEventListener("keydown",b),a.addEventListener("keyup",b)},a.makeNull=function(a){return null===a||void 0===a||""===a?null:a},a.missing=function(a){return!this.exists(a)},a.missingOrEmpty=function(a){return this.missing(a)||0===a.length},a.exists=function(a){return null!==a&&void 0!==a&&""!==a},a.existsAndNotEmpty=function(a){return this.exists(a)&&a.length>0},a.removeAllChildren=function(a){if(a)for(;a.hasChildNodes();)a.removeChild(a.lastChild)},a.removeElement=function(a,b){this.removeFromParent(a.querySelector(b))},a.removeFromParent=function(a){a&&a.parentNode&&a.parentNode.removeChild(a)},a.isVisible=function(a){return null!==a.offsetParent},a.loadTemplate=function(a){var b=document.createElement("div");return b.innerHTML=a,b.firstChild},a.addOrRemoveCssClass=function(a,b,c){c?this.addCssClass(a,b):this.removeCssClass(a,b)},a.callIfPresent=function(a){a&&a()},a.addCssClass=function(a,b){var c=this;if(b&&0!==b.length){if(b.indexOf(" ")>=0)return void b.split(" ").forEach(function(b){return c.addCssClass(a,b)});if(a.classList)a.classList.add(b);else if(a.className&&a.className.length>0){var d=a.className.split(" ");d.indexOf(b)<0&&(d.push(b),a.className=d.join(" "))}else a.className=b}},a.containsClass=function(a,b){if(a.classList)return a.classList.contains(b);if(a.className){var c=a.className===b,d=a.className.indexOf(" "+b+" ")>=0,e=0===a.className.indexOf(b+" "),f=a.className.lastIndexOf(" "+b)===a.className.length-b.length-1;return c||d||e||f}return!1},a.getElementAttribute=function(a,b){if(a.attributes){if(a.attributes[b]){var c=a.attributes[b];return c.value}return null}return null},a.offsetHeight=function(a){return a&&a.clientHeight?a.clientHeight:0},a.offsetWidth=function(a){return a&&a.clientWidth?a.clientWidth:0},a.removeCssClass=function(a,b){if(a.className&&a.className.length>0){var c=a.className.split(" "),d=c.indexOf(b);d>=0&&(c.splice(d,1),a.className=c.join(" "))}},a.removeRepeatsFromArray=function(a,b){if(a)for(var c=a.length-2;c>=0;c--){var d=a[c]===b,e=a[c+1]===b;d&&e&&a.splice(c+1,1)}},a.removeFromArray=function(a,b){a.indexOf(b)>=0&&a.splice(a.indexOf(b),1)},a.insertIntoArray=function(a,b,c){a.splice(c,0,b)},a.moveInArray=function(a,b,c){var d=this;b.forEach(function(b){d.removeFromArray(a,b)}),b.slice().reverse().forEach(function(b){d.insertIntoArray(a,b,c)})},a.defaultComparator=function(a,b){var c=null===a||void 0===a,d=null===b||void 0===b;if(c&&d)return 0;if(c)return-1;if(d)return 1;if("string"==typeof a)try{return a.localeCompare(b)}catch(a){}return a<b?-1:a>b?1:0},a.compareArrays=function(a,b){if(this.missing(a)&&this.missing(b))return!0;if(this.missing(a)||this.missing(b))return!1;if(a.length!==b.length)return!1;for(var c=0;c<a.length;c++)if(a[c]!==b[c])return!1;return!0},a.toStringOrNull=function(a){return this.exists(a)&&a.toString?a.toString():null},a.formatWidth=function(a){return"number"==typeof a?a+"px":a},a.formatNumberTwoDecimalPlacesAndCommas=function(a){return"number"==typeof a?(Math.round(100*a)/100).toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"):""},a.createIcon=function(a,b,c,d){var e=document.createElement("span");return e.appendChild(this.createIconNoSpan(a,b,c,d)),e},a.createIconNoSpan=function(a,b,c,d){var e;if(c&&c.getColDef().icons&&(e=c.getColDef().icons[a]),!e&&b.getIcons()&&(e=b.getIcons()[a]),e){var f;if("function"==typeof e)f=e();else{if("string"!=typeof e)throw"icon from grid options needs to be a string or a function";f=e}if("string"==typeof f)return this.loadTemplate(f);if(this.isNodeOrElement(f))return f;throw"iconRenderer should return back a string or a dom object"}return d?d():null},a.addStylesToElement=function(a,b){b&&Object.keys(b).forEach(function(c){a.style[c]=b[c]})},a.isScrollShowing=function(a){return a.clientHeight<a.scrollHeight},a.getScrollbarWidth=function(){var a=document.createElement("div");a.style.visibility="hidden",a.style.width="100px",a.style.msOverflowStyle="scrollbar",document.body.appendChild(a);var b=a.offsetWidth;a.style.overflow="scroll";var c=document.createElement("div");c.style.width="100%",a.appendChild(c);var d=c.offsetWidth;return a.parentNode.removeChild(a),b-d},a.isKeyPressed=function(a,b){var c=a.which||a.keyCode;return c===b},a.setVisible=function(a,b,c){b?this.exists(c)?a.style.display=c:a.style.display="inline":a.style.display="none"},a.isBrowserIE=function(){return void 0===this.isIE&&(this.isIE=!!document.documentMode),this.isIE},a.isBrowserSafari=function(){return void 0===this.isSafari&&(this.isSafari=Object.prototype.toString.call(window.HTMLElement).indexOf("Constructor")>0),this.isSafari},a.getTarget=function(a){var b=a;return b.target||b.srcElement},a.getBodyWidth=function(){return document.body?document.body.clientWidth:window.innerHeight?window.innerWidth:document.documentElement&&document.documentElement.clientWidth?document.documentElement.clientWidth:-1},a.getBodyHeight=function(){return document.body?document.body.clientHeight:window.innerHeight?window.innerHeight:document.documentElement&&document.documentElement.clientHeight?document.documentElement.clientHeight:-1},a.setCheckboxState=function(a,b){"boolean"==typeof b?(a.checked=b,a.indeterminate=!1):a.indeterminate=!0},a.traverseNodesWithKey=function(a,b){function d(a){a.forEach(function(a){if(a.group){c.push(a.key);var e=c.join("|");b(a,e),d(a.childrenAfterGroup),c.pop()}})}var c=[];d(a)},a.normalizeWheel=function(a){var b=10,c=40,d=800,e=0,f=0,g=0,h=0;return"detail"in a&&(f=a.detail),"wheelDelta"in a&&(f=-a.wheelDelta/120),"wheelDeltaY"in a&&(f=-a.wheelDeltaY/120),"wheelDeltaX"in a&&(e=-a.wheelDeltaX/120),"axis"in a&&a.axis===a.HORIZONTAL_AXIS&&(e=f,f=0),g=e*b,h=f*b,"deltaY"in a&&(h=a.deltaY),"deltaX"in a&&(g=a.deltaX),(g||h)&&a.deltaMode&&(1==a.deltaMode?(g*=c,h*=c):(g*=d,h*=d)),g&&!e&&(e=g<1?-1:1),h&&!f&&(f=h<1?-1:1),{spinX:e,spinY:f,pixelX:g,pixelY:h}},a}();b.Utils=f;var g=function(){function a(){this.nextValue=0}return a.prototype.next=function(){var a=this.nextValue;return this.nextValue++,a},a}();b.NumberSequence=g},function(a,b){var c=function(){function a(){}return a.STEP_EVERYTHING=0,a.STEP_FILTER=1,a.STEP_SORT=2,a.STEP_MAP=3,a.STEP_AGGREGATE=4,a.STEP_PIVOT=5,a.ROW_BUFFER_SIZE=10,a.LAYOUT_INTERVAL=500,a.KEY_BACKSPACE=8,a.KEY_TAB=9,a.KEY_ENTER=13,a.KEY_SHIFT=16,a.KEY_ESCAPE=27,a.KEY_SPACE=32,a.KEY_LEFT=37,a.KEY_UP=38,a.KEY_RIGHT=39,a.KEY_DOWN=40,a.KEY_DELETE=46,a.KEY_A=65,a.KEY_C=67,a.KEY_V=86,a.KEY_D=68,a.KEY_F2=113,a.ROW_MODEL_TYPE_PAGINATION="pagination",a.ROW_MODEL_TYPE_VIRTUAL="virtual",a.ROW_MODEL_TYPE_VIEWPORT="viewport",a.ROW_MODEL_TYPE_NORMAL="normal",a.ALWAYS="always",a.ONLY_WHEN_GROUPING="onlyWhenGrouping",a.FLOATING_TOP="top",a.FLOATING_BOTTOM="bottom",a}();b.Constants=c},function(a,b,c){function g(a){(a.ready||a.onReady)&&console.warn("ag-grid: as of v3.3 ready event is now called gridReady, so the callback should be onGridReady"),(a.rowDeselected||a.onRowDeselected)&&console.warn("ag-grid: as of v3.4 rowDeselected no longer exists. Please check the docs.")}var d=c(12),e=c(9),f=function(){function a(){}return a.getEventCallbacks=function(){return a.EVENT_CALLBACKS||(a.EVENT_CALLBACKS=[],a.EVENTS.forEach(function(b){a.EVENT_CALLBACKS.push(a.getCallbackForEvent(b))})),a.EVENT_CALLBACKS},a.copyAttributesToGridOptions=function(b,c){g(c),"object"!=typeof b&&(b={});var d=b;return a.ARRAY_PROPERTIES.concat(a.STRING_PROPERTIES).concat(a.OBJECT_PROPERTIES).concat(a.FUNCTION_PROPERTIES).forEach(function(a){"undefined"!=typeof c[a]&&(d[a]=c[a])}),a.BOOLEAN_PROPERTIES.forEach(function(b){"undefined"!=typeof c[b]&&(d[b]=a.toBoolean(c[b]))}),a.NUMBER_PROPERTIES.forEach(function(b){"undefined"!=typeof c[b]&&(d[b]=a.toNumber(c[b]))}),a.getEventCallbacks().forEach(function(a){"undefined"!=typeof c[a]&&(d[a]=c[a])}),b},a.getCallbackForEvent=function(a){return!a||a.length<2?a:"on"+a[0].toUpperCase()+a.substr(1)},a.processOnChange=function(b,c,d,e){if(b){g(b);var f=c;a.ARRAY_PROPERTIES.concat(a.OBJECT_PROPERTIES).concat(a.STRING_PROPERTIES).forEach(function(a){b[a]&&(f[a]=b[a].currentValue)}),a.BOOLEAN_PROPERTIES.forEach(function(c){b[c]&&(f[c]=a.toBoolean(b[c].currentValue))}),a.NUMBER_PROPERTIES.forEach(function(c){b[c]&&(f[c]=a.toNumber(b[c].currentValue))}),a.getEventCallbacks().forEach(function(a){b[a]&&(f[a]=b[a].currentValue)}),b.showToolPanel&&d.showToolPanel(a.toBoolean(b.showToolPanel.currentValue)),b.quickFilterText&&d.setQuickFilter(b.quickFilterText.currentValue),b.rowData&&d.setRowData(b.rowData.currentValue),b.floatingTopRowData&&d.setFloatingTopRowData(b.floatingTopRowData.currentValue),b.floatingBottomRowData&&d.setFloatingBottomRowData(b.floatingBottomRowData.currentValue),b.columnDefs&&d.setColumnDefs(b.columnDefs.currentValue),b.datasource&&d.setDatasource(b.datasource.currentValue),b.headerHeight&&d.setHeaderHeight(a.toNumber(b.headerHeight.currentValue)),b.pivotMode&&e.setPivotMode(a.toBoolean(b.pivotMode.currentValue))}},a.toBoolean=function(a){return"boolean"==typeof a?a:"string"==typeof a&&("TRUE"===a.toUpperCase()||""==a)},a.toNumber=function(a){return"number"==typeof a?a:"string"==typeof a?Number(a):void 0},a.EVENTS=[],a.STRING_PROPERTIES=["sortingOrder","rowClass","rowSelection","overlayLoadingTemplate","overlayNoRowsTemplate","headerCellTemplate","quickFilterText","rowModelType","editType"],a.OBJECT_PROPERTIES=["rowStyle","context","groupColumnDef","localeText","icons","datasource","viewportDatasource","groupRowRendererParams","aggFuncs","fullWidthCellRendererParams","defaultColGroupDef","defaultColDef"],a.ARRAY_PROPERTIES=["slaveGrids","rowData","floatingTopRowData","floatingBottomRowData","columnDefs"],a.NUMBER_PROPERTIES=["rowHeight","rowBuffer","colWidth","headerHeight","groupDefaultExpanded","minColWidth","maxColWidth","viewportRowModelPageSize","viewportRowModelBufferSize","layoutInterval","autoSizePadding","maxPagesInCache","maxConcurrentDatasourceRequests","paginationOverflowSize","paginationPageSize","paginationInitialRowCount","scrollbarWidth"],a.BOOLEAN_PROPERTIES=["toolPanelSuppressRowGroups","toolPanelSuppressValues","toolPanelSuppressPivots","toolPanelSuppressPivotMode","suppressRowClickSelection","suppressCellSelection","suppressHorizontalScroll","debug","enableColResize","enableCellExpressions","enableSorting","enableServerSideSorting","enableFilter","enableServerSideFilter","angularCompileRows","angularCompileFilters","angularCompileHeaders","groupSuppressAutoColumn","groupSelectsChildren","groupIncludeFooter","groupUseEntireRow","groupSuppressRow","groupSuppressBlankHeader","forPrint","suppressMenuHide","rowDeselection","unSortIcon","suppressMultiSort","suppressScrollLag","singleClickEdit","suppressLoadingOverlay","suppressNoRowsOverlay","suppressAutoSize","suppressParentsInRowNodes","showToolPanel","suppressColumnMoveAnimation","suppressMovableColumns","suppressFieldDotNotation","enableRangeSelection","suppressEnterprise","rowGroupPanelShow","pivotPanelShow","suppressTouch","suppressContextMenu","suppressMenuFilterPanel","suppressMenuMainPanel","suppressMenuColumnPanel","enableStatusBar","rememberGroupStateWhenNewData","enableCellChangeFlash","suppressDragLeaveHidesColumns","suppressMiddleClickScrolls","suppressPreventDefaultOnMouseWheel","suppressUseColIdForGroups","suppressCopyRowsToClipboard","pivotMode","suppressAggFuncInHeader","suppressColumnVirtualisation","suppressFocusAfterRefresh","functionsPassive","functionsReadOnly","suppressRowHoverClass"],a.FUNCTION_PROPERTIES=["headerCellRenderer","localeTextFunc","groupRowInnerRenderer","groupRowInnerRendererFramework","groupRowRenderer","groupRowRendererFramework","isScrollLag","isExternalFilterPresent","getRowHeight","doesExternalFilterPass","getRowClass","getRowStyle","getHeaderCellTemplate","traverseNode","getContextMenuItems","getMainMenuItems","processRowPostCreate","processCellForClipboard","getNodeChildDetails","groupRowAggNodes","getRowNodeId","isFullWidthCell","fullWidthCellRenderer","fullWidthCellRendererFramework","doesDataFlower","processSecondaryColDef","processSecondaryColGroupDef"],a.ALL_PROPERTIES=a.ARRAY_PROPERTIES.concat(a.OBJECT_PROPERTIES).concat(a.STRING_PROPERTIES).concat(a.NUMBER_PROPERTIES).concat(a.FUNCTION_PROPERTIES).concat(a.BOOLEAN_PROPERTIES),a}();b.ComponentUtil=f,e.Utils.iterateObject(d.Events,function(a,b){f.EVENTS.push(b)})},function(a,b){var c=function(){function a(){}return a.EVENT_COLUMN_EVERYTHING_CHANGED="columnEverythingChanged",a.EVENT_NEW_COLUMNS_LOADED="newColumnsLoaded",a.EVENT_COLUMN_PIVOT_MODE_CHANGED="columnPivotModeChanged",a.EVENT_COLUMN_ROW_GROUP_CHANGED="columnRowGroupChanged",a.EVENT_COLUMN_PIVOT_CHANGED="columnPivotChanged",a.EVENT_GRID_COLUMNS_CHANGED="gridColumnsChanged",a.EVENT_COLUMN_VALUE_CHANGED="columnValueChanged",a.EVENT_COLUMN_MOVED="columnMoved",a.EVENT_COLUMN_VISIBLE="columnVisible",a.EVENT_COLUMN_PINNED="columnPinned",a.EVENT_COLUMN_GROUP_OPENED="columnGroupOpened",a.EVENT_COLUMN_RESIZED="columnResized",a.EVENT_DISPLAYED_COLUMNS_CHANGED="displayedColumnsChanged",a.EVENT_VIRTUAL_COLUMNS_CHANGED="virtualColumnsChanged",a.EVENT_ROW_GROUP_OPENED="rowGroupOpened",a.EVENT_ROW_DATA_CHANGED="rowDataChanged",a.EVENT_FLOATING_ROW_DATA_CHANGED="floatingRowDataChanged",a.EVENT_RANGE_SELECTION_CHANGED="rangeSelectionChanged",a.EVENT_COLUMN_ROW_GROUP_ADD_REQUEST="columnRowGroupAddRequest",a.EVENT_COLUMN_ROW_GROUP_REMOVE_REQUEST="columnRowGroupRemoveRequest",a.EVENT_COLUMN_PIVOT_ADD_REQUEST="columnPivotAddRequest",a.EVENT_COLUMN_PIVOT_REMOVE_REQUEST="columnPivotRemoveRequest",a.EVENT_COLUMN_VALUE_ADD_REQUEST="columnValueAddRequest",a.EVENT_COLUMN_VALUE_REMOVE_REQUEST="columnValueRemoveRequest",a.EVENT_COLUMN_AGG_FUNC_CHANGE_REQUEST="columnAggFuncChangeRequest",a.EVENT_FLASH_CELLS="clipboardPaste",a.EVENT_MODEL_UPDATED="modelUpdated",a.EVENT_CELL_CLICKED="cellClicked",a.EVENT_CELL_DOUBLE_CLICKED="cellDoubleClicked",a.EVENT_CELL_CONTEXT_MENU="cellContextMenu",a.EVENT_CELL_VALUE_CHANGED="cellValueChanged",a.EVENT_ROW_VALUE_CHANGED="rowValueChanged",a.EVENT_CELL_FOCUSED="cellFocused",a.EVENT_ROW_SELECTED="rowSelected",a.EVENT_SELECTION_CHANGED="selectionChanged",a.EVENT_BEFORE_FILTER_CHANGED="beforeFilterChanged",a.EVENT_FILTER_CHANGED="filterChanged",a.EVENT_AFTER_FILTER_CHANGED="afterFilterChanged",a.EVENT_FILTER_MODIFIED="filterModified",a.EVENT_BEFORE_SORT_CHANGED="beforeSortChanged",a.EVENT_SORT_CHANGED="sortChanged",a.EVENT_AFTER_SORT_CHANGED="afterSortChanged",a.EVENT_VIRTUAL_ROW_REMOVED="virtualRowRemoved",a.EVENT_ROW_CLICKED="rowClicked",a.EVENT_ROW_DOUBLE_CLICKED="rowDoubleClicked",a.EVENT_GRID_READY="gridReady",a.EVENT_GRID_SIZE_CHANGED="gridSizeChanged",a.EVENT_VIEWPORT_CHANGED="viewportChanged",a.EVENT_DRAG_STARTED="dragStarted",a.EVENT_DRAG_STOPPED="dragStopped",a.EVENT_ITEMS_ADDED="itemsAdded",a.EVENT_ITEMS_REMOVED="itemsRemoved",a}();b.Events=c},function(a,b,c){var d=this&&this.__decorate||function(a,b,c,d){var g,e=arguments.length,f=e<3?b:null===d?d=Object.getOwnPropertyDescriptor(b,c):d;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)f=Reflect.decorate(a,b,c,d);else for(var h=a.length-1;h>=0;h--)(g=a[h])&&(f=(e<3?g(f):e>3?g(b,c,f):g(b,c))||f);return e>3&&f&&Object.defineProperty(b,c,f),f},e=this&&this.__metadata||function(a,b){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(a,b)},f=c(14),g=c(25),h=c(68),i=c(45),j=c(15),k=c(30),l=c(5),m=c(26),n=c(31),o=c(27),p=c(6),q=c(28),r=c(10),s=c(8),t=c(42),u=c(44),v=c(43),w=c(37),x=c(35),y=c(9),z=c(57),A=c(50),B=function(){function a(){}return a.prototype.init=function(){switch(this.rowModel.getType()){case r.Constants.ROW_MODEL_TYPE_NORMAL:case r.Constants.ROW_MODEL_TYPE_PAGINATION:this.inMemoryRowModel=this.rowModel;break;case r.Constants.ROW_MODEL_TYPE_VIRTUAL:this.virtualPageRowModel=this.rowModel}},a.prototype.__getMasterSlaveService=function(){return this.masterSlaveService},a.prototype.getFirstRenderedRow=function(){return this.rowRenderer.getFirstVirtualRenderedRow()},a.prototype.getLastRenderedRow=function(){return this.rowRenderer.getLastVirtualRenderedRow()},a.prototype.getDataAsCsv=function(a){return this.csvCreator.getDataAsCsv(a)},a.prototype.exportDataAsCsv=function(a){this.csvCreator.exportDataAsCsv(a)},a.prototype.setDatasource=function(a){this.gridOptionsWrapper.isRowModelPagination()?this.paginationController.setDatasource(a):this.gridOptionsWrapper.isRowModelVirtual()?this.rowModel.setDatasource(a):console.warn("ag-Grid: you can only use a datasource when gridOptions.rowModelType is '"+r.Constants.ROW_MODEL_TYPE_VIRTUAL+"' or '"+r.Constants.ROW_MODEL_TYPE_PAGINATION+"'")},a.prototype.setViewportDatasource=function(a){this.gridOptionsWrapper.isRowModelViewport()?this.rowModel.setViewportDatasource(a):console.warn("ag-Grid: you can only use a datasource when gridOptions.rowModelType is '"+r.Constants.ROW_MODEL_TYPE_VIEWPORT+"'")},a.prototype.setRowData=function(a){this.gridOptionsWrapper.isRowModelDefault()?(this.selectionController.reset(),this.inMemoryRowModel.setRowData(a,!0)):console.log("cannot call setRowData unless using normal row model")},a.prototype.setFloatingTopRowData=function(a){this.floatingRowModel.setFloatingTopRowData(a)},a.prototype.setFloatingBottomRowData=function(a){this.floatingRowModel.setFloatingBottomRowData(a)},a.prototype.getFloatingTopRowCount=function(){return this.floatingRowModel.getFloatingTopRowCount()},a.prototype.getFloatingBottomRowCount=function(){return this.floatingRowModel.getFloatingBottomRowCount()},a.prototype.getFloatingTopRow=function(a){return this.floatingRowModel.getFloatingTopRow(a)},a.prototype.getFloatingBottomRow=function(a){return this.floatingRowModel.getFloatingBottomRow(a)},a.prototype.setColumnDefs=function(a){this.columnController.setColumnDefs(a)},a.prototype.refreshRows=function(a){this.rowRenderer.refreshRows(a)},a.prototype.refreshCells=function(a,b,c){void 0===c&&(c=!1),this.rowRenderer.refreshCells(a,b,c)},a.prototype.rowDataChanged=function(a){this.rowRenderer.rowDataChanged(a)},a.prototype.refreshView=function(){this.rowRenderer.refreshView()},a.prototype.setFunctionsReadOnly=function(a){this.gridOptionsWrapper.setProperty("functionsReadOnly",a)},a.prototype.softRefreshView=function(){this.rowRenderer.softRefreshView()},a.prototype.refreshGroupRows=function(){this.rowRenderer.refreshGroupRows()},a.prototype.refreshHeader=function(){this.headerRenderer.refreshHeader()},a.prototype.isAnyFilterPresent=function(){return this.filterManager.isAnyFilterPresent()},a.prototype.isAdvancedFilterPresent=function(){return this.filterManager.isAdvancedFilterPresent()},a.prototype.isQuickFilterPresent=function(){return this.filterManager.isQuickFilterPresent()},a.prototype.getModel=function(){return this.rowModel},a.prototype.onGroupExpandedOrCollapsed=function(a){y.Utils.missing(this.inMemoryRowModel)&&console.log("cannot call onGroupExpandedOrCollapsed unless using normal row model"),this.inMemoryRowModel.refreshModel(r.Constants.STEP_MAP,a)},a.prototype.refreshInMemoryRowModel=function(){y.Utils.missing(this.inMemoryRowModel)&&console.log("cannot call refreshInMemoryRowModel unless using normal row model"),this.inMemoryRowModel.refreshModel(r.Constants.STEP_EVERYTHING)},a.prototype.expandAll=function(){y.Utils.missing(this.inMemoryRowModel)&&console.log("cannot call expandAll unless using normal row model"),this.inMemoryRowModel.expandOrCollapseAll(!0)},a.prototype.collapseAll=function(){y.Utils.missing(this.inMemoryRowModel)&&console.log("cannot call collapseAll unless using normal row model"),this.inMemoryRowModel.expandOrCollapseAll(!1)},a.prototype.addVirtualRowListener=function(a,b,c){"string"!=typeof a&&console.log("ag-Grid: addVirtualRowListener is deprecated, please use addRenderedRowListener."),this.addRenderedRowListener(a,b,c)},a.prototype.addRenderedRowListener=function(a,b,c){"virtualRowRemoved"===a&&(console.log("ag-Grid: event virtualRowRemoved is deprecated, now called renderedRowRemoved"),a=""),"virtualRowSelected"===a&&console.log("ag-Grid: event virtualRowSelected is deprecated, to register for individual row selection events, add a listener directly to the row node."),this.rowRenderer.addRenderedRowListener(a,b,c)},a.prototype.setQuickFilter=function(a){this.filterManager.setQuickFilter(a)},a.prototype.selectIndex=function(a,b,c){console.log("ag-Grid: do not use api for selection, call node.setSelected(value) instead"),c&&console.log("ag-Grid: suppressEvents is no longer supported, stop listening for the event if you no longer want it"),this.selectionController.selectIndex(a,b)},a.prototype.deselectIndex=function(a,b){void 0===b&&(b=!1),console.log("ag-Grid: do not use api for selection, call node.setSelected(value) instead"),b&&console.log("ag-Grid: suppressEvents is no longer supported, stop listening for the event if you no longer want it"),this.selectionController.deselectIndex(a)},a.prototype.selectNode=function(a,b,c){void 0===b&&(b=!1),void 0===c&&(c=!1),console.log("ag-Grid: API for selection is deprecated, call node.setSelected(value) instead"),c&&console.log("ag-Grid: suppressEvents is no longer supported, stop listening for the event if you no longer want it"),a.setSelectedParams({newValue:!0,clearSelection:!b})},a.prototype.deselectNode=function(a,b){void 0===b&&(b=!1),console.log("ag-Grid: API for selection is deprecated, call node.setSelected(value) instead"),b&&console.log("ag-Grid: suppressEvents is no longer supported, stop listening for the event if you no longer want it"),a.setSelectedParams({newValue:!1})},a.prototype.selectAll=function(){this.selectionController.selectAllRowNodes()},a.prototype.deselectAll=function(){this.selectionController.deselectAllRowNodes()},a.prototype.recomputeAggregates=function(){y.Utils.missing(this.inMemoryRowModel)&&console.log("cannot call recomputeAggregates unless using normal row model"),this.inMemoryRowModel.refreshModel(r.Constants.STEP_AGGREGATE)},a.prototype.sizeColumnsToFit=function(){return this.gridOptionsWrapper.isForPrint()?void console.warn("ag-grid: sizeColumnsToFit does not work when forPrint=true"):void this.gridPanel.sizeColumnsToFit()},a.prototype.showLoadingOverlay=function(){this.gridPanel.showLoadingOverlay()},a.prototype.showNoRowsOverlay=function(){this.gridPanel.showNoRowsOverlay()},a.prototype.hideOverlay=function(){this.gridPanel.hideOverlay()},a.prototype.isNodeSelected=function(a){return console.log("ag-Grid: no need to call api.isNodeSelected(), just call node.isSelected() instead"),a.isSelected()},a.prototype.getSelectedNodesById=function(){return console.error("ag-Grid: since version 3.4, getSelectedNodesById no longer exists, use getSelectedNodes() instead"),null},a.prototype.getSelectedNodes=function(){return this.selectionController.getSelectedNodes()},a.prototype.getSelectedRows=function(){return this.selectionController.getSelectedRows()},a.prototype.getBestCostNodeSelection=function(){return this.selectionController.getBestCostNodeSelection()},a.prototype.getRenderedNodes=function(){return this.rowRenderer.getRenderedNodes()},a.prototype.ensureColIndexVisible=function(a){console.warn("ag-Grid: ensureColIndexVisible(index) no longer supported, use ensureColumnVisible(colKey) instead.")},a.prototype.ensureColumnVisible=function(a){this.gridPanel.ensureColumnVisible(a)},a.prototype.ensureIndexVisible=function(a){this.gridPanel.ensureIndexVisible(a)},a.prototype.ensureNodeVisible=function(a){this.gridCore.ensureNodeVisible(a)},a.prototype.forEachLeafNode=function(a){y.Utils.missing(this.inMemoryRowModel)&&console.log("cannot call forEachNodeAfterFilter unless using normal row model"),this.inMemoryRowModel.forEachLeafNode(a)},a.prototype.forEachNode=function(a){this.rowModel.forEachNode(a)},a.prototype.forEachNodeAfterFilter=function(a){y.Utils.missing(this.inMemoryRowModel)&&console.log("cannot call forEachNodeAfterFilter unless using normal row model"),this.inMemoryRowModel.forEachNodeAfterFilter(a)},a.prototype.forEachNodeAfterFilterAndSort=function(a){y.Utils.missing(this.inMemoryRowModel)&&console.log("cannot call forEachNodeAfterFilterAndSort unless using normal row model"),this.inMemoryRowModel.forEachNodeAfterFilterAndSort(a)},a.prototype.getFilterApiForColDef=function(a){return console.warn("ag-grid API method getFilterApiForColDef deprecated, use getFilterApi instead"),this.getFilterInstance(a)},a.prototype.getFilterInstance=function(a){var b=this.columnController.getPrimaryColumn(a);if(b)return this.filterManager.getFilterComponent(b)},a.prototype.getFilterApi=function(a){return console.warn("ag-Grid: getFilterApi is deprecated, use getFilterInstance instead"),this.getFilterInstance(a)},a.prototype.destroyFilter=function(a){var b=this.columnController.getPrimaryColumn(a);if(b)return this.filterManager.destroyFilter(b)},a.prototype.getColumnDef=function(a){var b=this.columnController.getPrimaryColumn(a);return b?b.getColDef():null},a.prototype.onFilterChanged=function(){this.filterManager.onFilterChanged()},a.prototype.setSortModel=function(a){this.sortController.setSortModel(a)},a.prototype.getSortModel=function(){return this.sortController.getSortModel()},a.prototype.setFilterModel=function(a){this.filterManager.setFilterModel(a)},a.prototype.getFilterModel=function(){return this.filterManager.getFilterModel()},a.prototype.getFocusedCell=function(){return this.focusedCellController.getFocusedCell()},a.prototype.setFocusedCell=function(a,b,c){this.focusedCellController.setFocusedCell(a,b,c,!0)},a.prototype.setHeaderHeight=function(a){this.gridOptionsWrapper.setProperty(l.GridOptionsWrapper.PROP_HEADER_HEIGHT,a)},a.prototype.showToolPanel=function(a){
this.gridCore.showToolPanel(a)},a.prototype.isToolPanelShowing=function(){return this.gridCore.isToolPanelShowing()},a.prototype.doLayout=function(){this.gridCore.doLayout()},a.prototype.getValue=function(a,b){var c=this.columnController.getPrimaryColumn(a);return this.valueService.getValue(c,b)},a.prototype.addEventListener=function(a,b){this.eventService.addEventListener(a,b)},a.prototype.addGlobalListener=function(a){this.eventService.addGlobalListener(a)},a.prototype.removeEventListener=function(a,b){this.eventService.removeEventListener(a,b)},a.prototype.removeGlobalListener=function(a){this.eventService.removeGlobalListener(a)},a.prototype.dispatchEvent=function(a,b){this.eventService.dispatchEvent(a,b)},a.prototype.destroy=function(){this.context.destroy()},a.prototype.resetQuickFilter=function(){this.rowModel.forEachNode(function(a){return a.quickFilterAggregateText=null})},a.prototype.getRangeSelections=function(){return this.rangeController?this.rangeController.getCellRanges():(console.warn("ag-Grid: cell range selection is only available in ag-Grid Enterprise"),null)},a.prototype.addRangeSelection=function(a){this.rangeController||console.warn("ag-Grid: cell range selection is only available in ag-Grid Enterprise"),this.rangeController.addRange(a)},a.prototype.clearRangeSelection=function(){this.rangeController||console.warn("ag-Grid: cell range selection is only available in ag-Grid Enterprise"),this.rangeController.clearSelection()},a.prototype.copySelectedRowsToClipboard=function(a,b){this.clipboardService||console.warn("ag-Grid: clipboard is only available in ag-Grid Enterprise");this.clipboardService.copySelectedRowsToClipboard(a,b)},a.prototype.copySelectedRangeToClipboard=function(a){this.clipboardService||console.warn("ag-Grid: clipboard is only available in ag-Grid Enterprise"),this.clipboardService.copySelectedRangeToClipboard(a)},a.prototype.copySelectedRangeDown=function(){this.clipboardService||console.warn("ag-Grid: clipboard is only available in ag-Grid Enterprise"),this.clipboardService.copyRangeDown()},a.prototype.showColumnMenuAfterButtonClick=function(a,b){var c=this.columnController.getPrimaryColumn(a);this.menuFactory.showMenuAfterButtonClick(c,b)},a.prototype.showColumnMenuAfterMouseClick=function(a,b){var c=this.columnController.getPrimaryColumn(a);this.menuFactory.showMenuAfterMouseEvent(c,b)},a.prototype.stopEditing=function(a){void 0===a&&(a=!1),this.rowRenderer.stopEditing(a)},a.prototype.startEditingCell=function(a){var b=this.columnController.getGridColumn(a.colKey),c=new x.GridCell(a.rowIndex,null,b);this.rowRenderer.startEditingCell(c,a.keyPress,a.charPress)},a.prototype.addAggFunc=function(a,b){this.aggFuncService&&this.aggFuncService.addAggFunc(a,b)},a.prototype.addAggFuncs=function(a){this.aggFuncService&&this.aggFuncService.addAggFuncs(a)},a.prototype.clearAggFuncs=function(){this.aggFuncService&&this.aggFuncService.clear()},a.prototype.insertItemsAtIndex=function(a,b){this.rowModel.insertItemsAtIndex(a,b)},a.prototype.removeItems=function(a){this.rowModel.removeItems(a)},a.prototype.addItems=function(a){this.rowModel.addItems(a)},a.prototype.refreshVirtualPageCache=function(){this.virtualPageRowModel?this.virtualPageRowModel.refreshVirtualPageCache():console.warn("ag-Grid: api.refreshVirtualPageCache is only available when rowModelType='virtual'.")},a.prototype.purgeVirtualPageCache=function(){this.virtualPageRowModel?this.virtualPageRowModel.purgeVirtualPageCache():console.warn("ag-Grid: api.refreshVirtualPageCache is only available when rowModelType='virtual'.")},a.prototype.getVirtualRowCount=function(){return this.virtualPageRowModel?this.virtualPageRowModel.getVirtualRowCount():void console.warn("ag-Grid: api.getVirtualRowCount is only available when rowModelType='virtual'.")},a.prototype.isMaxRowFound=function(){return this.virtualPageRowModel?this.virtualPageRowModel.isMaxRowFound():void console.warn("ag-Grid: api.isMaxRowFound is only available when rowModelType='virtual'.")},a.prototype.setVirtualRowCount=function(a,b){this.virtualPageRowModel?this.virtualPageRowModel.setVirtualRowCount(a,b):console.warn("ag-Grid: api.setVirtualRowCount is only available when rowModelType='virtual'.")},a.prototype.getVirtualPageState=function(){return this.virtualPageRowModel?this.virtualPageRowModel.getVirtualPageState():void console.warn("ag-Grid: api.getVirtualPageState is only available when rowModelType='virtual'.")},a.prototype.checkGridSize=function(){this.gridPanel.sizeHeaderAndBody()},d([s.Autowired("csvCreator"),e("design:type",f.CsvCreator)],a.prototype,"csvCreator",void 0),d([s.Autowired("gridCore"),e("design:type",t.GridCore)],a.prototype,"gridCore",void 0),d([s.Autowired("rowRenderer"),e("design:type",g.RowRenderer)],a.prototype,"rowRenderer",void 0),d([s.Autowired("headerRenderer"),e("design:type",h.HeaderRenderer)],a.prototype,"headerRenderer",void 0),d([s.Autowired("filterManager"),e("design:type",i.FilterManager)],a.prototype,"filterManager",void 0),d([s.Autowired("columnController"),e("design:type",j.ColumnController)],a.prototype,"columnController",void 0),d([s.Autowired("selectionController"),e("design:type",k.SelectionController)],a.prototype,"selectionController",void 0),d([s.Autowired("gridOptionsWrapper"),e("design:type",l.GridOptionsWrapper)],a.prototype,"gridOptionsWrapper",void 0),d([s.Autowired("gridPanel"),e("design:type",m.GridPanel)],a.prototype,"gridPanel",void 0),d([s.Autowired("valueService"),e("design:type",n.ValueService)],a.prototype,"valueService",void 0),d([s.Autowired("masterSlaveService"),e("design:type",o.MasterSlaveService)],a.prototype,"masterSlaveService",void 0),d([s.Autowired("eventService"),e("design:type",p.EventService)],a.prototype,"eventService",void 0),d([s.Autowired("floatingRowModel"),e("design:type",q.FloatingRowModel)],a.prototype,"floatingRowModel",void 0),d([s.Autowired("context"),e("design:type",s.Context)],a.prototype,"context",void 0),d([s.Autowired("rowModel"),e("design:type",Object)],a.prototype,"rowModel",void 0),d([s.Autowired("sortController"),e("design:type",u.SortController)],a.prototype,"sortController",void 0),d([s.Autowired("paginationController"),e("design:type",v.PaginationController)],a.prototype,"paginationController",void 0),d([s.Autowired("focusedCellController"),e("design:type",w.FocusedCellController)],a.prototype,"focusedCellController",void 0),d([s.Optional("rangeController"),e("design:type",Object)],a.prototype,"rangeController",void 0),d([s.Optional("clipboardService"),e("design:type",Object)],a.prototype,"clipboardService",void 0),d([s.Optional("aggFuncService"),e("design:type",Object)],a.prototype,"aggFuncService",void 0),d([s.Autowired("menuFactory"),e("design:type",Object)],a.prototype,"menuFactory",void 0),d([s.Autowired("cellRendererFactory"),e("design:type",z.CellRendererFactory)],a.prototype,"cellRendererFactory",void 0),d([s.Autowired("cellEditorFactory"),e("design:type",A.CellEditorFactory)],a.prototype,"cellEditorFactory",void 0),d([s.PostConstruct,e("design:type",Function),e("design:paramtypes",[]),e("design:returntype",void 0)],a.prototype,"init",null),a=d([s.Bean("gridApi"),e("design:paramtypes",[])],a)}();b.GridApi=B},function(a,b,c){var d=this&&this.__decorate||function(a,b,c,d){var g,e=arguments.length,f=e<3?b:null===d?d=Object.getOwnPropertyDescriptor(b,c):d;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)f=Reflect.decorate(a,b,c,d);else for(var h=a.length-1;h>=0;h--)(g=a[h])&&(f=(e<3?g(f):e>3?g(b,c,f):g(b,c))||f);return e>3&&f&&Object.defineProperty(b,c,f),f},e=this&&this.__metadata||function(a,b){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(a,b)},f=c(15),g=c(31),h=c(8),i=c(5),j=c(10),k=c(28),l=c(9),m=c(30),n="\r\n",o=function(){function a(){}return a.prototype.exportDataAsCsv=function(a){var b=this.getDataAsCsv(a),c=a&&a.fileName&&0!==a.fileName.length,d=c?a.fileName:"export.csv",e=new Blob(["\ufeff",b],{type:"text/csv;charset=utf-8;"});if(window.navigator.msSaveOrOpenBlob)window.navigator.msSaveOrOpenBlob(e,d);else{var f=document.createElement("a");f.href=window.URL.createObjectURL(e),f.download=d,document.body.appendChild(f),f.click(),document.body.removeChild(f)}},a.prototype.getDataAsCsv=function(a){function A(a){if((!e||!a.group)&&(!g||!a.footer)&&(!p||a.isSelected())&&!(h&&"top"===a.floating||i&&"bottom"===a.floating)){var b=a.level===-1;b&&!a.leafGroup||(y.forEach(function(b,e){var f;f=a.group&&x&&0===e?c.createValueForGroupNode(a):c.valueService.getValue(b,a),f=c.processCell(a,b,f,u),null!==f&&void 0!==f||(f=""),0!=e&&(d+=q),d+=c.putInQuotes(f,r)}),d+=n)}}function B(a,b){var e=c.getHeaderName(v,a);null!==e&&void 0!==e||(e=""),0!=b&&(d+=q),d+=c.putInQuotes(e,r)}if(this.rowModel.getType()!==j.Constants.ROW_MODEL_TYPE_NORMAL)return console.log("ag-Grid: getDataAsCsv is only available for standard row model"),"";var y,b=this.rowModel,c=this,d="",e=a&&a.skipGroups,f=a&&a.skipHeader,g=a&&a.skipFooters,h=a&&a.skipFloatingTop,i=a&&a.skipFloatingBottom,k=a&&a.customHeader,m=a&&a.customFooter,o=a&&a.allColumns,p=a&&a.onlySelected,q=a&&a.columnSeparator||",",r=a&&a.suppressQuotes,s=a&&a.columnKeys,t=a&&a.onlySelectedAllPages,u=a&&a.processCellCallback,v=a&&a.processHeaderCallback,w=this.columnController.isPivotMode(),x=this.columnController.getRowGroupColumns().length>0;if(y=l.Utils.existsAndNotEmpty(s)?this.columnController.getGridColumns(s):o&&!w?this.columnController.getAllPrimaryColumns():this.columnController.getAllDisplayedColumns(),!y||0===y.length)return"";if(k&&(d+=a.customHeader),f||(y.forEach(B),d+=n),this.floatingRowModel.forEachFloatingTopRow(A),w)b.forEachPivotNode(A);else if(t){var z=this.selectionController.getSelectedNodes();z.forEach(A)}else b.forEachNodeAfterFilterAndSort(A);return this.floatingRowModel.forEachFloatingBottomRow(A),m&&(d+=a.customFooter),d},a.prototype.getHeaderName=function(a,b){return a?a({column:b,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()}):this.columnController.getDisplayNameForColumn(b,!0)},a.prototype.processCell=function(a,b,c,d){return d?d({column:b,node:a,value:c,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()}):c},a.prototype.createValueForGroupNode=function(a){for(var b=[a.key];a.parent;)a=a.parent,b.push(a.key);return b.reverse().join(" -> ")},a.prototype.putInQuotes=function(a,b){if(b)return a;if(null===a||void 0===a)return'""';var c;"string"==typeof a?c=a:"function"==typeof a.toString?c=a.toString():(console.warn("unknown value type during csv conversion"),c="");var d=c.replace(/"/g,'""');return'"'+d+'"'},d([h.Autowired("rowModel"),e("design:type",Object)],a.prototype,"rowModel",void 0),d([h.Autowired("floatingRowModel"),e("design:type",k.FloatingRowModel)],a.prototype,"floatingRowModel",void 0),d([h.Autowired("columnController"),e("design:type",f.ColumnController)],a.prototype,"columnController",void 0),d([h.Autowired("valueService"),e("design:type",g.ValueService)],a.prototype,"valueService",void 0),d([h.Autowired("gridOptionsWrapper"),e("design:type",i.GridOptionsWrapper)],a.prototype,"gridOptionsWrapper",void 0),d([h.Autowired("selectionController"),e("design:type",m.SelectionController)],a.prototype,"selectionController",void 0),a=d([h.Bean("csvCreator"),e("design:paramtypes",[])],a)}();b.CsvCreator=o},function(a,b,c){var d=this&&this.__decorate||function(a,b,c,d){var g,e=arguments.length,f=e<3?b:null===d?d=Object.getOwnPropertyDescriptor(b,c):d;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)f=Reflect.decorate(a,b,c,d);else for(var h=a.length-1;h>=0;h--)(g=a[h])&&(f=(e<3?g(f):e>3?g(b,c,f):g(b,c))||f);return e>3&&f&&Object.defineProperty(b,c,f),f},e=this&&this.__metadata||function(a,b){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(a,b)},f=this&&this.__param||function(a,b){return function(c,d){b(c,d,a)}},g=c(9),h=c(16),i=c(17),j=c(5),k=c(20),l=c(21),m=c(23),n=c(24),o=c(6),p=c(18),q=c(7),r=c(12),s=c(81),t=c(19),u=c(82),v=c(83),w=c(8),x=c(26),y=function(){function a(){}return a.prototype.sizeColumnsToFit=function(a){this._columnController.sizeColumnsToFit(a)},a.prototype.setColumnGroupOpened=function(a,b,c){this._columnController.setColumnGroupOpened(a,b,c)},a.prototype.getColumnGroup=function(a,b){return this._columnController.getColumnGroup(a,b)},a.prototype.getDisplayNameForColumn=function(a){return this._columnController.getDisplayNameForColumn(a)},a.prototype.getDisplayNameForColumnGroup=function(a){return this._columnController.getDisplayNameForColumnGroup(a)},a.prototype.getColumn=function(a){return this._columnController.getPrimaryColumn(a)},a.prototype.setColumnState=function(a){return this._columnController.setColumnState(a)},a.prototype.getColumnState=function(){return this._columnController.getColumnState()},a.prototype.resetColumnState=function(){this._columnController.resetColumnState()},a.prototype.isPinning=function(){return this._columnController.isPinningLeft()||this._columnController.isPinningRight()},a.prototype.isPinningLeft=function(){return this._columnController.isPinningLeft()},a.prototype.isPinningRight=function(){return this._columnController.isPinningRight()},a.prototype.getDisplayedColAfter=function(a){return this._columnController.getDisplayedColAfter(a)},a.prototype.getDisplayedColBefore=function(a){return this._columnController.getDisplayedColBefore(a)},a.prototype.setColumnVisible=function(a,b){this._columnController.setColumnVisible(a,b)},a.prototype.setColumnsVisible=function(a,b){this._columnController.setColumnsVisible(a,b)},a.prototype.setColumnPinned=function(a,b){this._columnController.setColumnPinned(a,b)},a.prototype.setColumnsPinned=function(a,b){this._columnController.setColumnsPinned(a,b)},a.prototype.getAllColumns=function(){return this._columnController.getAllPrimaryColumns()},a.prototype.getAllGridColumns=function(){return this._columnController.getAllGridColumns()},a.prototype.getDisplayedLeftColumns=function(){return this._columnController.getDisplayedLeftColumns()},a.prototype.getDisplayedCenterColumns=function(){return this._columnController.getDisplayedCenterColumns()},a.prototype.getDisplayedRightColumns=function(){return this._columnController.getDisplayedRightColumns()},a.prototype.getAllDisplayedColumns=function(){return this._columnController.getAllDisplayedColumns()},a.prototype.getAllDisplayedVirtualColumns=function(){return this._columnController.getAllDisplayedVirtualColumns()},a.prototype.moveColumn=function(a,b){this._columnController.moveColumnByIndex(a,b)},a.prototype.moveRowGroupColumn=function(a,b){this._columnController.moveRowGroupColumn(a,b)},a.prototype.setColumnAggFunct=function(a,b){this._columnController.setColumnAggFunc(a,b)},a.prototype.setColumnWidth=function(a,b,c){void 0===c&&(c=!0),this._columnController.setColumnWidth(a,b,c)},a.prototype.setPivotMode=function(a){this._columnController.setPivotMode(a)},a.prototype.isPivotMode=function(){return this._columnController.isPivotMode()},a.prototype.getSecondaryPivotColumn=function(a,b){return this._columnController.getSecondaryPivotColumn(a,b)},a.prototype.getValueColumns=function(){return this._columnController.getValueColumns()},a.prototype.removeValueColumn=function(a){this._columnController.removeValueColumn(a)},a.prototype.removeValueColumns=function(a){this._columnController.removeValueColumns(a)},a.prototype.addValueColumn=function(a){this._columnController.addValueColumn(a)},a.prototype.addValueColumns=function(a){this._columnController.addValueColumns(a)},a.prototype.setRowGroupColumns=function(a){this._columnController.setRowGroupColumns(a)},a.prototype.removeRowGroupColumn=function(a){this._columnController.removeRowGroupColumn(a)},a.prototype.removeRowGroupColumns=function(a){this._columnController.removeRowGroupColumns(a)},a.prototype.addRowGroupColumn=function(a){this._columnController.addRowGroupColumn(a)},a.prototype.addRowGroupColumns=function(a){this._columnController.addRowGroupColumns(a)},a.prototype.getRowGroupColumns=function(){return this._columnController.getRowGroupColumns()},a.prototype.setPivotColumns=function(a){this._columnController.setPivotColumns(a)},a.prototype.removePivotColumn=function(a){this._columnController.removePivotColumn(a)},a.prototype.removePivotColumns=function(a){this._columnController.removePivotColumns(a)},a.prototype.addPivotColumn=function(a){this._columnController.addPivotColumn(a)},a.prototype.addPivotColumns=function(a){this._columnController.addPivotColumns(a)},a.prototype.getPivotColumns=function(){return this._columnController.getPivotColumns()},a.prototype.getLeftDisplayedColumnGroups=function(){return this._columnController.getLeftDisplayedColumnGroups()},a.prototype.getCenterDisplayedColumnGroups=function(){return this._columnController.getCenterDisplayedColumnGroups()},a.prototype.getRightDisplayedColumnGroups=function(){return this._columnController.getRightDisplayedColumnGroups()},a.prototype.getAllDisplayedColumnGroups=function(){return this._columnController.getAllDisplayedColumnGroups()},a.prototype.autoSizeColumn=function(a){return this._columnController.autoSizeColumn(a)},a.prototype.autoSizeColumns=function(a){return this._columnController.autoSizeColumns(a)},a.prototype.autoSizeAllColumns=function(){this._columnController.autoSizeAllColumns()},a.prototype.setSecondaryColumns=function(a){this._columnController.setSecondaryColumns(a)},a.prototype.columnGroupOpened=function(a,b){console.error("ag-Grid: columnGroupOpened no longer exists, use setColumnGroupOpened"),this.setColumnGroupOpened(a,b)},a.prototype.hideColumns=function(a,b){console.error("ag-Grid: hideColumns is deprecated, use setColumnsVisible"),this._columnController.setColumnsVisible(a,!b)},a.prototype.hideColumn=function(a,b){console.error("ag-Grid: hideColumn is deprecated, use setColumnVisible"),this._columnController.setColumnVisible(a,!b)},a.prototype.setState=function(a){return console.error("ag-Grid: setState is deprecated, use setColumnState"),this.setColumnState(a)},a.prototype.getState=function(){return console.error("ag-Grid: getState is deprecated, use getColumnState"),this.getColumnState()},a.prototype.resetState=function(){console.error("ag-Grid: resetState is deprecated, use resetColumnState"),this.resetColumnState()},a.prototype.getAggregationColumns=function(){return console.error("ag-Grid: getAggregationColumns is deprecated, use getValueColumns"),this._columnController.getValueColumns()},a.prototype.removeAggregationColumn=function(a){console.error("ag-Grid: removeAggregationColumn is deprecated, use removeValueColumn"),this._columnController.removeValueColumn(a)},a.prototype.removeAggregationColumns=function(a){console.error("ag-Grid: removeAggregationColumns is deprecated, use removeValueColumns"),this._columnController.removeValueColumns(a)},a.prototype.addAggregationColumn=function(a){console.error("ag-Grid: addAggregationColumn is deprecated, use addValueColumn"),this._columnController.addValueColumn(a)},a.prototype.addAggregationColumns=function(a){console.error("ag-Grid: addAggregationColumns is deprecated, use addValueColumns"),this._columnController.addValueColumns(a)},a.prototype.setColumnAggFunction=function(a,b){console.error("ag-Grid: setColumnAggFunction is deprecated, use setColumnAggFunc"),this._columnController.setColumnAggFunc(a,b)},a.prototype.getDisplayNameForCol=function(a){return console.error("ag-Grid: getDisplayNameForCol is deprecated, use getDisplayNameForColumn"),this.getDisplayNameForColumn(a)},d([w.Autowired("columnController"),e("design:type",z)],a.prototype,"_columnController",void 0),a=d([w.Bean("columnApi"),e("design:paramtypes",[])],a)}();b.ColumnApi=y;var z=function(){function a(){this.primaryHeaderRowCount=0,this.secondaryHeaderRowCount=0,this.secondaryColumnsPresent=!1,this.gridHeaderRowCount=0,this.displayedLeftColumns=[],this.displayedRightColumns=[],this.displayedCenterColumns=[],this.allDisplayedColumns=[],this.allDisplayedVirtualColumns=[],this.rowGroupColumns=[],this.valueColumns=[],this.pivotColumns=[],this.ready=!1,this.pivotMode=!1}return a.prototype.init=function(){this.pivotMode=this.gridOptionsWrapper.isPivotMode(),this.gridOptionsWrapper.getColumnDefs()&&this.setColumnDefs(this.gridOptionsWrapper.getColumnDefs())},a.prototype.setViewportLeftAndRight=function(){this.viewportLeft=this.scrollPosition,this.viewportRight=this.totalWidth+this.scrollPosition},a.prototype.checkDisplayedCenterColumns=function(){if(g.Utils.exists(this.displayedCenterColumns)){var a=this.allDisplayedVirtualColumns.map(function(a){return a.getId()}).join("#");this.updateVirtualSets();var b=this.allDisplayedVirtualColumns.map(function(a){return a.getId()}).join("#");a!==b&&this.eventService.dispatchEvent(r.Events.EVENT_VIRTUAL_COLUMNS_CHANGED)}},a.prototype.setWidthAndScrollPosition=function(a,b){a===this.totalWidth&&b===this.scrollPosition||(this.totalWidth=a,this.scrollPosition=b,this.setViewportLeftAndRight(),this.ready&&this.checkDisplayedCenterColumns())},a.prototype.isPivotMode=function(){return this.pivotMode},a.prototype.setPivotMode=function(a){if(a!==this.pivotMode){this.pivotMode=a,this.updateDisplayedColumns();var b=new s.ColumnChangeEvent(r.Events.EVENT_COLUMN_PIVOT_MODE_CHANGED);this.eventService.dispatchEvent(r.Events.EVENT_COLUMN_PIVOT_MODE_CHANGED,b)}},a.prototype.getSecondaryPivotColumn=function(a,b){if(!this.secondaryColumnsPresent)return null;var c=this.getPrimaryColumn(b),d=null;return this.secondaryColumns.forEach(function(b){var e=b.getColDef().pivotKeys,f=b.getColDef().pivotValueColumn,h=g.Utils.compareArrays(e,a),i=f===c;h&&i&&(d=b)}),d},a.prototype.setBeans=function(a){this.logger=a.create("ColumnController")},a.prototype.setFirstRightAndLastLeftPinned=function(){var a=this.displayedLeftColumns?this.displayedLeftColumns[this.displayedLeftColumns.length-1]:null,b=this.displayedRightColumns?this.displayedRightColumns[0]:null;this.gridColumns.forEach(function(c){c.setLastLeftPinned(c===a),c.setFirstRightPinned(c===b)})},a.prototype.autoSizeColumns=function(a){for(var b=this,c=[],d=-1;0!==d;)d=0,this.actionOnGridColumns(a,function(a){if(!(c.indexOf(a)>=0)){var e=b.autoWidthCalculator.getPreferredWidthForColumn(a);if(e>0){var f=b.normaliseColumnWidth(a,e);a.setActualWidth(f),c.push(a),d++}return!0}},function(){return new s.ColumnChangeEvent(r.Events.EVENT_COLUMN_RESIZED).withFinished(!0)})},a.prototype.autoSizeColumn=function(a){this.autoSizeColumns([a])},a.prototype.autoSizeAllColumns=function(){var a=this.getAllDisplayedColumns();this.autoSizeColumns(a)},a.prototype.getColumnsFromTree=function(a){function c(a){for(var d=0;d<a.length;d++){var e=a[d];e instanceof i.Column?b.push(e):e instanceof t.OriginalColumnGroup&&c(e.getChildren())}}var b=[];return c(a),b},a.prototype.getAllDisplayedColumnGroups=function(){return this.displayedLeftColumnTree&&this.displayedRightColumnTree&&this.displayedCentreColumnTree?this.displayedLeftColumnTree.concat(this.displayedCentreColumnTree).concat(this.displayedRightColumnTree):null},a.prototype.getPrimaryColumnTree=function(){return this.primaryBalancedTree},a.prototype.getHeaderRowCount=function(){return this.gridHeaderRowCount},a.prototype.getLeftDisplayedColumnGroups=function(){return this.displayedLeftColumnTree},a.prototype.getRightDisplayedColumnGroups=function(){return this.displayedRightColumnTree},a.prototype.getCenterDisplayedColumnGroups=function(){return this.displayedCentreColumnTree},a.prototype.getDisplayedColumnGroups=function(a){switch(a){case i.Column.PINNED_LEFT:return this.getLeftDisplayedColumnGroups();case i.Column.PINNED_RIGHT:return this.getRightDisplayedColumnGroups();default:return this.getCenterDisplayedColumnGroups()}},a.prototype.isColumnDisplayed=function(a){return this.getAllDisplayedColumns().indexOf(a)>=0},a.prototype.getAllDisplayedColumns=function(){return this.allDisplayedColumns},a.prototype.getAllDisplayedVirtualColumns=function(){return this.allDisplayedVirtualColumns},a.prototype.getPinnedLeftContainerWidth=function(){return this.getWidthOfColsInList(this.displayedLeftColumns)},a.prototype.getPinnedRightContainerWidth=function(){return this.getWidthOfColsInList(this.displayedRightColumns)},a.prototype.addRowGroupColumns=function(a,b){var c=this;this.actionOnPrimaryColumns(a,function(a){return!a.isRowGroupActive()&&(c.rowGroupColumns.push(a),a.setRowGroupActive(!0),!0)},function(){return new s.ColumnChangeEvent(r.Events.EVENT_COLUMN_ROW_GROUP_CHANGED)},b)},a.prototype.setRowGroupColumns=function(a){var b=[];this.rowGroupColumns.forEach(function(a){a.setRowGroupActive(!1),b.push(a)}),this.rowGroupColumns.length=0,this.addRowGroupColumns(a,b)},a.prototype.addRowGroupColumn=function(a){this.addRowGroupColumns([a])},a.prototype.removeRowGroupColumns=function(a){var b=this;this.actionOnPrimaryColumns(a,function(a){return!!a.isRowGroupActive()&&(g.Utils.removeFromArray(b.rowGroupColumns,a),a.setRowGroupActive(!1),!0)},function(){return new s.ColumnChangeEvent(r.Events.EVENT_COLUMN_ROW_GROUP_CHANGED)})},a.prototype.removeRowGroupColumn=function(a){this.removeRowGroupColumns([a])},a.prototype.addPivotColumns=function(a,b){var c=this;this.actionOnPrimaryColumns(a,function(a){return!a.isPivotActive()&&(c.pivotColumns.push(a),a.setPivotActive(!0),!0)},function(){return new s.ColumnChangeEvent(r.Events.EVENT_COLUMN_PIVOT_CHANGED)},b)},a.prototype.setPivotColumns=function(a){var b=[];this.pivotColumns.forEach(function(a){a.setPivotActive(!1),b.push(a)}),this.pivotColumns.length=0,this.addPivotColumns(a,b)},a.prototype.addPivotColumn=function(a){this.addPivotColumns([a])},a.prototype.removePivotColumns=function(a){var b=this;this.actionOnPrimaryColumns(a,function(a){return!!a.isPivotActive()&&(g.Utils.removeFromArray(b.pivotColumns,a),a.setPivotActive(!1),!0)},function(){return new s.ColumnChangeEvent(r.Events.EVENT_COLUMN_PIVOT_CHANGED)})},a.prototype.removePivotColumn=function(a){this.removePivotColumns([a])},a.prototype.addValueColumns=function(a){var b=this;this.actionOnPrimaryColumns(a,function(a){if(a.isValueActive())return!1;if(!a.getAggFunc()){var c=b.aggFuncService.getDefaultAggFunc();a.setAggFunc(c)}return b.valueColumns.push(a),a.setValueActive(!0),!0},function(){return new s.ColumnChangeEvent(r.Events.EVENT_COLUMN_VALUE_CHANGED)})},a.prototype.addValueColumn=function(a){this.addValueColumns([a])},a.prototype.removeValueColumn=function(a){this.removeValueColumns([a])},a.prototype.removeValueColumns=function(a){var b=this;this.actionOnPrimaryColumns(a,function(a){return!!a.isValueActive()&&(g.Utils.removeFromArray(b.valueColumns,a),a.setValueActive(!1),!0)},function(){return new s.ColumnChangeEvent(r.Events.EVENT_COLUMN_VALUE_CHANGED)})},a.prototype.normaliseColumnWidth=function(a,b){return b<a.getMinWidth()&&(b=a.getMinWidth()),a.isGreaterThanMax(b)&&(b=a.getMaxWidth()),b},a.prototype.getPrimaryOrGridColumn=function(a){var b=this.getPrimaryColumn(a);return b?b:this.getGridColumn(a)},a.prototype.setColumnWidth=function(a,b,c){var d=this.getPrimaryOrGridColumn(a);if(d){b=this.normaliseColumnWidth(d,b);var e=d.getActualWidth()!==b;if(e&&(d.setActualWidth(b),this.setLeftValues()),c||e){var f=new s.ColumnChangeEvent(r.Events.EVENT_COLUMN_RESIZED).withColumn(d).withFinished(c);this.eventService.dispatchEvent(r.Events.EVENT_COLUMN_RESIZED,f)}this.checkDisplayedCenterColumns()}},a.prototype.setColumnAggFunc=function(a,b){a.setAggFunc(b);var c=new s.ColumnChangeEvent(r.Events.EVENT_COLUMN_VALUE_CHANGED).withColumn(a);this.eventService.dispatchEvent(r.Events.EVENT_COLUMN_VALUE_CHANGED,c)},a.prototype.moveRowGroupColumn=function(a,b){var c=this.rowGroupColumns[a];this.rowGroupColumns.splice(a,1),this.rowGroupColumns.splice(b,0,c);var d=new s.ColumnChangeEvent(r.Events.EVENT_COLUMN_ROW_GROUP_CHANGED);this.eventService.dispatchEvent(r.Events.EVENT_COLUMN_ROW_GROUP_CHANGED,d)},a.prototype.moveColumns=function(a,b){if(b>this.gridColumns.length-a.length)return console.warn("ag-Grid: tried to insert columns in invalid location, toIndex = "+b),void console.warn("ag-Grid: remember that you should not count the moving columns when calculating the new index");var c=this.getGridColumns(a),d=!this.doesMovePassRules(c,b);if(!d){this.gridPanel.turnOnAnimationForABit(),g.Utils.moveInArray(this.gridColumns,c,b),this.updateDisplayedColumns();var e=new s.ColumnChangeEvent(r.Events.EVENT_COLUMN_MOVED).withToIndex(b).withColumns(c);1===c.length&&e.withColumn(c[0]),this.eventService.dispatchEvent(r.Events.EVENT_COLUMN_MOVED,e)}},a.prototype.doesMovePassRules=function(a,b){var c=this.gridColumns.slice();g.Utils.moveInArray(c,a,b);for(var d=0;d<c.length-1;d++){var e=c[d],f=c[d+1];if(f.isVisible()){var h=this.columnUtils.getOriginalPathForColumn(e,this.gridBalancedTree),i=this.columnUtils.getOriginalPathForColumn(f,this.gridBalancedTree);i&&h||console.log("next path is missing");for(var j=0;j<h.length;j++){var k=h[j],l=i[j],m=k!==l,n=k.getColGroupDef(),o=n&&n.marryChildren,p=m&&o;if(p)for(var q=d+1;q<c.length;q++){var r=c[q],s=this.columnUtils.getOriginalPathForColumn(r,this.gridBalancedTree),t=s[j];if(t===k)return!1}}}}return!0},a.prototype.moveColumn=function(a,b){this.moveColumns([a],b)},a.prototype.moveColumnByIndex=function(a,b){var c=this.gridColumns[a];this.moveColumn(c,b)},a.prototype.getBodyContainerWidth=function(){var a=this.getWidthOfColsInList(this.displayedCenterColumns);return a},a.prototype.getValueColumns=function(){return this.valueColumns?this.valueColumns:[]},a.prototype.getPivotColumns=function(){return this.pivotColumns?this.pivotColumns:[]},a.prototype.isPivotActive=function(){return this.pivotColumns&&this.pivotColumns.length>0&&this.pivotMode},a.prototype.getRowGroupColumns=function(){return this.rowGroupColumns?this.rowGroupColumns:[]},a.prototype.getDisplayedCenterColumns=function(){return this.displayedCenterColumns.slice(0)},a.prototype.getDisplayedLeftColumns=function(){return this.displayedLeftColumns.slice(0)},a.prototype.getDisplayedRightColumns=function(){return this.displayedRightColumns.slice(0)},a.prototype.getDisplayedColumns=function(a){switch(a){case i.Column.PINNED_LEFT:return this.getDisplayedLeftColumns();case i.Column.PINNED_RIGHT:return this.getDisplayedRightColumns();default:return this.getDisplayedCenterColumns()}},a.prototype.getAllPrimaryColumns=function(){return this.primaryColumns},a.prototype.getAllGridColumns=function(){return this.gridColumns},a.prototype.isEmpty=function(){return g.Utils.missingOrEmpty(this.gridColumns)},a.prototype.isRowGroupEmpty=function(){return g.Utils.missingOrEmpty(this.rowGroupColumns)},a.prototype.setColumnVisible=function(a,b){this.setColumnsVisible([a],b)},a.prototype.setColumnsVisible=function(a,b){this.gridPanel.turnOnAnimationForABit(),this.actionOnGridColumns(a,function(a){return a.setVisible(b),!0},function(){return new s.ColumnChangeEvent(r.Events.EVENT_COLUMN_VISIBLE).withVisible(b)})},a.prototype.setColumnPinned=function(a,b){this.setColumnsPinned([a],b)},a.prototype.setColumnsPinned=function(a,b){this.gridPanel.turnOnAnimationForABit();var c;c=b===!0||b===i.Column.PINNED_LEFT?i.Column.PINNED_LEFT:b===i.Column.PINNED_RIGHT?i.Column.PINNED_RIGHT:null,this.actionOnGridColumns(a,function(a){return a.setPinned(c),!0},function(){return new s.ColumnChangeEvent(r.Events.EVENT_COLUMN_PINNED).withPinned(c)})},a.prototype.actionOnGridColumns=function(a,b,c,d){this.actionOnColumns(a,this.getGridColumn.bind(this),b,c,d)},a.prototype.actionOnPrimaryColumns=function(a,b,c,d){this.actionOnColumns(a,this.getPrimaryColumn.bind(this),b,c,d)},a.prototype.actionOnColumns=function(a,b,c,d,e){if(!g.Utils.missingOrEmpty(a)||!g.Utils.missingOrEmpty(e)){var f=[];if(a.forEach(function(a){var d=b(a);if(d){var e=c(d);e!==!1&&f.push(d)}}),0!==f.length||!g.Utils.missingOrEmpty(e)){g.Utils.existsAndNotEmpty(e)&&e.forEach(function(a){f.indexOf(a)<0&&f.push(a)}),this.updateDisplayedColumns();var h=d();
h.withColumns(f),1===f.length&&h.withColumn(f[0]),this.eventService.dispatchEvent(h.getType(),h)}}},a.prototype.getDisplayedColBefore=function(a){var b=this.getAllDisplayedColumns(),c=b.indexOf(a);return c>0?b[c-1]:null},a.prototype.getDisplayedColAfter=function(a){var b=this.getAllDisplayedColumns(),c=b.indexOf(a);return c<b.length-1?b[c+1]:null},a.prototype.isPinningLeft=function(){return this.displayedLeftColumns.length>0},a.prototype.isPinningRight=function(){return this.displayedRightColumns.length>0},a.prototype.getPrimaryAndSecondaryAndAutoColumns=function(){var a=this.primaryColumns?this.primaryColumns.slice(0):[];return this.groupAutoColumnActive&&a.push(this.groupAutoColumn),this.secondaryColumnsPresent&&this.secondaryColumns.forEach(function(b){return a.push(b)}),a},a.prototype.createStateItemFromColumn=function(a){var b=a.isRowGroupActive()?this.rowGroupColumns.indexOf(a):null,c=a.isPivotActive()?this.pivotColumns.indexOf(a):null,d=a.isValueActive()?a.getAggFunc():null,e={colId:a.getColId(),hide:!a.isVisible(),aggFunc:d,width:a.getActualWidth(),pivotIndex:c,pinned:a.getPinned(),rowGroupIndex:b};return e},a.prototype.getColumnState=function(){if(g.Utils.missing(this.primaryColumns))return[];var a=this.primaryColumns.map(this.createStateItemFromColumn.bind(this));return this.pivotMode||this.orderColumnStateList(a),a},a.prototype.orderColumnStateList=function(a){var b=this.gridColumns.map(function(a){return a.getColId()});a.sort(function(a,c){var d=b.indexOf(a.colId),e=b.indexOf(c.colId);return d-e})},a.prototype.resetColumnState=function(){var a=this.getColumnsFromTree(this.primaryBalancedTree),b=[];a&&a.forEach(function(a){b.push({colId:a.getColId(),aggFunc:a.getColDef().aggFunc,hide:a.getColDef().hide,pinned:a.getColDef().pinned,rowGroupIndex:a.getColDef().rowGroupIndex,pivotIndex:a.getColDef().pivotIndex,width:a.getColDef().width})}),this.setColumnState(b)},a.prototype.setColumnState=function(a){var b=this;if(g.Utils.missingOrEmpty(this.primaryColumns))return!1;var c=this.primaryColumns.slice();this.rowGroupColumns=[],this.valueColumns=[],this.pivotColumns=[];var d=!0,e={},f={};a&&a.forEach(function(a){var h=b.getPrimaryColumn(a.colId);h?(b.syncColumnWithStateItem(h,a,e,f),g.Utils.removeFromArray(c,h)):(console.warn("ag-grid: column "+a.colId+" not found"),d=!1)}),c.forEach(this.syncColumnWithNoState.bind(this)),this.rowGroupColumns.sort(this.sortColumnListUsingIndexes.bind(this,e)),this.pivotColumns.sort(this.sortColumnListUsingIndexes.bind(this,f)),this.copyDownGridColumns();var h=a.map(function(a){return a.colId});this.gridColumns.sort(function(a,b){var c=h.indexOf(a.getId()),d=h.indexOf(b.getId());return c-d}),this.updateDisplayedColumns();var i=new s.ColumnChangeEvent(r.Events.EVENT_COLUMN_EVERYTHING_CHANGED);return this.eventService.dispatchEvent(r.Events.EVENT_COLUMN_EVERYTHING_CHANGED,i),d},a.prototype.sortColumnListUsingIndexes=function(a,b,c){var d=a[b.getId()],e=a[c.getId()];return d-e},a.prototype.syncColumnWithNoState=function(a){a.setVisible(!1),a.setAggFunc(null),a.setPinned(null),a.setRowGroupActive(!1),a.setPivotActive(!1),a.setValueActive(!1)},a.prototype.syncColumnWithStateItem=function(a,b,c,d){a.setVisible(!b.hide),a.setPinned(b.pinned),b.width>=this.gridOptionsWrapper.getMinColWidth()&&a.setActualWidth(b.width),"string"==typeof b.aggFunc?(a.setAggFunc(b.aggFunc),a.setValueActive(!0),this.valueColumns.push(a)):(a.setAggFunc(null),a.setValueActive(!1)),"number"==typeof b.rowGroupIndex?(this.rowGroupColumns.push(a),a.setRowGroupActive(!0),c[a.getId()]=b.rowGroupIndex):a.setRowGroupActive(!1),"number"==typeof b.pivotIndex?(this.pivotColumns.push(a),a.setPivotActive(!0),d[a.getId()]=b.pivotIndex):a.setPivotActive(!1)},a.prototype.getGridColumns=function(a){return this.getColumns(a,this.getGridColumn.bind(this))},a.prototype.getColumns=function(a,b){var c=[];return a&&a.forEach(function(a){var d=b(a);d&&c.push(d)}),c},a.prototype.getColumnWithValidation=function(a){var b=this.getPrimaryColumn(a);return b||console.warn("ag-Grid: could not find column "+b),b},a.prototype.getPrimaryColumn=function(a){return this.getColumn(a,this.primaryColumns)},a.prototype.getGridColumn=function(a){return this.getColumn(a,this.gridColumns)},a.prototype.getColumn=function(a,b){function d(b){var c=b===a,d=b.getColDef()===a,e=b.getColId()==a;return c||d||e}if(!a)return null;for(var c=0;c<b.length;c++)if(d(b[c]))return b[c];return this.groupAutoColumnActive&&d(this.groupAutoColumn)?this.groupAutoColumn:null},a.prototype.getDisplayNameForColumn=function(a,b){void 0===b&&(b=!1);var c=this.getHeaderName(a.getColDef(),a,null);return b?this.wrapHeaderNameWithAggFunc(a,c):c},a.prototype.getDisplayNameForColumnGroup=function(a){var b=a.getOriginalColumnGroup().getColGroupDef();return b?this.getHeaderName(b,null,a):null},a.prototype.getHeaderName=function(a,b,c){var d=a.headerValueGetter;if(d){var e={colDef:a,column:b,columnGroup:c,api:this.gridOptionsWrapper.getApi(),context:this.gridOptionsWrapper.getContext()};return"function"==typeof d?d(e):"string"==typeof d?this.expressionService.evaluate(d,e):(console.warn("ag-grid: headerValueGetter must be a function or a string"),"")}return a.headerName},a.prototype.wrapHeaderNameWithAggFunc=function(a,b){if(this.gridOptionsWrapper.isSuppressAggFuncInHeader())return b;var f,c=a.getColDef().pivotValueColumn,d=g.Utils.exists(c),e=null;if(d)e=c.getAggFunc(),f=!0;else{var h=a.isValueActive(),i=this.pivotMode||!this.isRowGroupEmpty();h&&i?(e=a.getAggFunc(),f=!0):f=!1}if(f){var j="string"==typeof e?e:"func";return j+"("+b+")"}return b},a.prototype.getColumnGroup=function(a,b){if(!a)return null;if(a instanceof h.ColumnGroup)return a;var c=this.getAllDisplayedColumnGroups(),d="number"==typeof b,e=null;return this.columnUtils.depthFirstAllColumnTreeSearch(c,function(c){if(c instanceof h.ColumnGroup){var g,f=c;g=d?a===f.getGroupId()&&b===f.getInstanceId():a===f.getGroupId(),g&&(e=f)}}),e},a.prototype.setColumnDefs=function(a){var b=this.balancedColumnTreeBuilder.createBalancedColumnGroups(a,!0);this.primaryBalancedTree=b.balancedTree,this.primaryHeaderRowCount=b.treeDept+1,this.primaryColumns=this.getColumnsFromTree(this.primaryBalancedTree),this.extractRowGroupColumns(),this.extractPivotColumns(),this.createValueColumns(),this.copyDownGridColumns(),this.updateDisplayedColumns(),this.ready=!0;var c=new s.ColumnChangeEvent(r.Events.EVENT_COLUMN_EVERYTHING_CHANGED);this.eventService.dispatchEvent(r.Events.EVENT_COLUMN_EVERYTHING_CHANGED,c),this.eventService.dispatchEvent(r.Events.EVENT_NEW_COLUMNS_LOADED)},a.prototype.isReady=function(){return this.ready},a.prototype.extractRowGroupColumns=function(){var a=this;this.rowGroupColumns.forEach(function(a){return a.setRowGroupActive(!1)}),this.rowGroupColumns=[],this.primaryColumns.forEach(function(b){"number"==typeof b.getColDef().rowGroupIndex&&(a.rowGroupColumns.push(b),b.setRowGroupActive(!0))}),this.rowGroupColumns.sort(function(a,b){return a.getColDef().rowGroupIndex-b.getColDef().rowGroupIndex})},a.prototype.extractPivotColumns=function(){var a=this;this.pivotColumns.forEach(function(a){return a.setPivotActive(!1)}),this.pivotColumns=[],this.primaryColumns.forEach(function(b){"number"==typeof b.getColDef().pivotIndex&&(a.pivotColumns.push(b),b.setPivotActive(!0))}),this.pivotColumns.sort(function(a,b){return a.getColDef().pivotIndex-b.getColDef().pivotIndex})},a.prototype.setColumnGroupOpened=function(a,b,c){var d=this.getColumnGroup(a,c);if(d){this.logger.log("columnGroupOpened("+d.getGroupId()+","+b+")"),d.setExpanded(b),this.gridPanel.turnOnAnimationForABit(),this.updateGroupsAndDisplayedColumns();var e=new s.ColumnChangeEvent(r.Events.EVENT_COLUMN_GROUP_OPENED).withColumnGroup(d);this.eventService.dispatchEvent(r.Events.EVENT_COLUMN_GROUP_OPENED,e)}},a.prototype.getColumnGroupState=function(){var a={};return this.columnUtils.depthFirstDisplayedColumnTreeSearch(this.getAllDisplayedColumnGroups(),function(b){if(b instanceof h.ColumnGroup){var c=b,d=c.getGroupId();a.hasOwnProperty(d)||(a[d]=c.isExpanded())}}),a},a.prototype.setColumnGroupState=function(a){this.columnUtils.depthFirstDisplayedColumnTreeSearch(this.getAllDisplayedColumnGroups(),function(b){if(b instanceof h.ColumnGroup){var c=b,d=c.getGroupId(),e=a[d]===!0&&c.isExpandable();e&&c.setExpanded(!0)}})},a.prototype.calculateColumnsForDisplay=function(){var a;return a=this.pivotMode&&!this.secondaryColumnsPresent?this.createColumnsToDisplayFromValueColumns():g.Utils.filter(this.gridColumns,function(a){return a.isVisible()}),this.createGroupAutoColumn(),this.groupAutoColumnActive&&a.unshift(this.groupAutoColumn),a},a.prototype.createColumnsToDisplayFromValueColumns=function(){var a=this,b=this.valueColumns.slice();return b.sort(function(b,c){return a.gridColumns.indexOf(b)-a.gridColumns.indexOf(c)}),b},a.prototype.updateDisplayedColumns=function(){var a=this.getColumnGroupState(),b=this.calculateColumnsForDisplay();this.buildDisplayedTrees(b),this.setColumnGroupState(a),this.updateGroupsAndDisplayedColumns(),this.setFirstRightAndLastLeftPinned()},a.prototype.isSecondaryColumnsPresent=function(){return this.secondaryColumnsPresent},a.prototype.setSecondaryColumns=function(a){var b=a&&a.length>0;if(b||this.secondaryColumnsPresent){if(b){this.processSecondaryColumnDefinitions(a);var c=this.balancedColumnTreeBuilder.createBalancedColumnGroups(a,!1);this.secondaryBalancedTree=c.balancedTree,this.secondaryHeaderRowCount=c.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.copyDownGridColumns(),this.updateDisplayedColumns()}},a.prototype.processSecondaryColumnDefinitions=function(a){function d(a){a.forEach(function(a){var e=g.Utils.exists(a.children);if(e){var f=a;c&&c(f),d(f.children)}else{var h=a;b&&b(h)}})}var b=this.gridOptionsWrapper.getProcessSecondaryColDefFunc(),c=this.gridOptionsWrapper.getProcessSecondaryColGroupDefFunc();(b||c)&&d(a)},a.prototype.copyDownGridColumns=function(){this.secondaryColumns?(this.gridBalancedTree=this.secondaryBalancedTree.slice(),this.gridHeaderRowCount=this.secondaryHeaderRowCount,this.gridColumns=this.secondaryColumns.slice()):(this.gridBalancedTree=this.primaryBalancedTree.slice(),this.gridHeaderRowCount=this.primaryHeaderRowCount,this.gridColumns=this.primaryColumns.slice()),this.clearDisplayedColumns();var a=new s.ColumnChangeEvent(r.Events.EVENT_GRID_COLUMNS_CHANGED);this.eventService.dispatchEvent(r.Events.EVENT_GRID_COLUMNS_CHANGED,a)},a.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=[]},a.prototype.updateGroupsAndDisplayedColumns=function(){this.updateGroups(),this.updateDisplayedColumnsFromTrees(),this.updateVirtualSets();var a=new s.ColumnChangeEvent(r.Events.EVENT_DISPLAYED_COLUMNS_CHANGED);this.eventService.dispatchEvent(r.Events.EVENT_DISPLAYED_COLUMNS_CHANGED,a)},a.prototype.updateDisplayedColumnsFromTrees=function(){this.addToDisplayedColumns(this.displayedLeftColumnTree,this.displayedLeftColumns),this.addToDisplayedColumns(this.displayedCentreColumnTree,this.displayedCenterColumns),this.addToDisplayedColumns(this.displayedRightColumnTree,this.displayedRightColumns),this.allDisplayedColumns=this.displayedLeftColumns.concat(this.displayedCenterColumns).concat(this.displayedRightColumns),this.setLeftValues()},a.prototype.setLeftValues=function(){this.setLeftValuesOfColumns(),this.setLeftValuesOfGroups()},a.prototype.setLeftValuesOfColumns=function(){var a=this.primaryColumns.slice(0);[this.displayedLeftColumns,this.displayedRightColumns,this.displayedCenterColumns].forEach(function(b){var c=0;b.forEach(function(b){b.setLeft(c),c+=b.getActualWidth(),g.Utils.removeFromArray(a,b)})}),a.forEach(function(a){a.setLeft(null)})},a.prototype.setLeftValuesOfGroups=function(){[this.displayedLeftColumnTree,this.displayedRightColumnTree,this.displayedCentreColumnTree].forEach(function(a){a.forEach(function(a){if(a instanceof h.ColumnGroup){var b=a;b.checkLeft()}})})},a.prototype.addToDisplayedColumns=function(a,b){b.length=0,this.columnUtils.depthFirstDisplayedColumnTreeSearch(a,function(a){a instanceof i.Column&&b.push(a)})},a.prototype.updateDisplayedCenterVirtualColumns=function(){var a,b=this.gridOptionsWrapper.isSuppressColumnVirtualisation()||this.gridOptionsWrapper.isForPrint();a=b?this.displayedCenterColumns:this.filterOutColumnsWithinViewport(this.displayedCenterColumns),this.allDisplayedVirtualColumns=a.concat(this.displayedLeftColumns).concat(this.displayedRightColumns);var c={};return this.allDisplayedVirtualColumns.forEach(function(a){c[a.getId()]=!0}),c},a.prototype.getVirtualHeaderGroupRow=function(a,b){var c;switch(a){case i.Column.PINNED_LEFT:c=this.displayedLeftHeaderRows[b];break;case i.Column.PINNED_RIGHT:c=this.displayedRightHeaderRows[b];break;default:c=this.displayedCentreHeaderRows[b]}return g.Utils.missing(c)&&(c=[]),c},a.prototype.updateDisplayedVirtualGroups=function(a){function b(c,d,e){for(var f=!1,g=0;g<c.length;g++){var j,h=c[g];if(h instanceof i.Column)j=a[h.getId()]===!0;else{var k=h;j=b(k.getDisplayedChildren(),d,e+1)}j&&(f=!0,d[e]||(d[e]=[]),d[e].push(h))}return f}this.displayedLeftHeaderRows={},this.displayedRightHeaderRows={},this.displayedCentreHeaderRows={},b(this.displayedLeftColumnTree,this.displayedLeftHeaderRows,0),b(this.displayedRightColumnTree,this.displayedRightHeaderRows,0),b(this.displayedCentreColumnTree,this.displayedCentreHeaderRows,0)},a.prototype.updateVirtualSets=function(){var a=this.updateDisplayedCenterVirtualColumns();this.updateDisplayedVirtualGroups(a)},a.prototype.filterOutColumnsWithinViewport=function(a){var b=this,c=g.Utils.filter(a,function(a){var c=a.getLeft(),d=a.getLeft()+a.getActualWidth(),e=c<b.viewportLeft&&d<b.viewportLeft,f=c>b.viewportRight&&d>b.viewportRight,g=!e&&!f;return g});return c},a.prototype.sizeColumnsToFit=function(a){function p(a){g.Utils.removeFromArray(e,a),d.push(a)}function q(a){for(var b=0,c=0;c<a.length;c++)b+=a[c].getActualWidth();return b}var b=this,c=this.getAllDisplayedColumns();if(!(a<=0||0===c.length)){for(var d=g.Utils.filter(c,function(a){return a.getColDef().suppressSizeToFit===!0}),e=g.Utils.filter(c,function(a){return a.getColDef().suppressSizeToFit!==!0}),f=e.slice(0),h=!1;!h;){h=!0;var i=a-q(d);if(i<=0)e.forEach(function(a){a.setMinimum()});else for(var j=i/q(e),k=i,l=e.length-1;l>=0;l--){var m=e[l],n=Math.round(m.getActualWidth()*j);if(n<m.getMinWidth())m.setMinimum(),p(m),h=!1;else if(m.isGreaterThanMax(n))m.setActualWidth(m.getMaxWidth()),p(m),h=!1;else{var o=0===l;o?m.setActualWidth(k):m.setActualWidth(n)}k-=n}}this.setLeftValues(),f.forEach(function(a){var c=new s.ColumnChangeEvent(r.Events.EVENT_COLUMN_RESIZED).withColumn(a);b.eventService.dispatchEvent(r.Events.EVENT_COLUMN_RESIZED,c)}),this.checkDisplayedCenterColumns()}},a.prototype.buildDisplayedTrees=function(a){var b=g.Utils.filter(a,function(a){return"left"===a.getPinned()}),c=g.Utils.filter(a,function(a){return"right"===a.getPinned()}),d=g.Utils.filter(a,function(a){return"left"!==a.getPinned()&&"right"!==a.getPinned()}),e=new u.GroupInstanceIdCreator;this.displayedLeftColumnTree=this.displayedGroupCreator.createDisplayedGroups(b,this.gridBalancedTree,e),this.displayedRightColumnTree=this.displayedGroupCreator.createDisplayedGroups(c,this.gridBalancedTree,e),this.displayedCentreColumnTree=this.displayedGroupCreator.createDisplayedGroups(d,this.gridBalancedTree,e)},a.prototype.updateGroups=function(){var a=this.getAllDisplayedColumnGroups();this.columnUtils.depthFirstAllColumnTreeSearch(a,function(a){if(a instanceof h.ColumnGroup){var b=a;b.calculateDisplayedColumns()}})},a.prototype.createGroupAutoColumn=function(){var b=this.rowGroupColumns.length>0&&!this.gridOptionsWrapper.isGroupSuppressAutoColumn()&&!this.gridOptionsWrapper.isGroupUseEntireRow()&&!this.gridOptionsWrapper.isGroupSuppressRow();if(this.groupAutoColumnActive=b,b&&!this.groupAutoColumn){var c=this.gridOptionsWrapper.getGroupColumnDef();if(!c){var d=this.gridOptionsWrapper.getLocaleTextFunc();c={headerName:d("group","Group"),comparator:v.defaultGroupComparator,valueGetter:function(a){return a.node.group?a.node.key:a.data&&a.colDef.field?a.data[a.colDef.field]:null},cellRenderer:"group"}}c.suppressMovable=!0;var e=a.GROUP_AUTO_COLUMN_ID;this.groupAutoColumn=new i.Column(c,e,!0),this.context.wireBean(this.groupAutoColumn)}},a.prototype.createValueColumns=function(){this.valueColumns.forEach(function(a){return a.setValueActive(!1)}),this.valueColumns=[];for(var a=0;a<this.primaryColumns.length;a++){var b=this.primaryColumns[a];b.getColDef().aggFunc&&(b.setAggFunc(b.getColDef().aggFunc),this.valueColumns.push(b),b.setValueActive(!0))}},a.prototype.getWidthOfColsInList=function(a){for(var b=0,c=0;c<a.length;c++)b+=a[c].getActualWidth();return b},a.GROUP_AUTO_COLUMN_ID="ag-Grid-AutoColumn",d([w.Autowired("gridOptionsWrapper"),e("design:type",j.GridOptionsWrapper)],a.prototype,"gridOptionsWrapper",void 0),d([w.Autowired("expressionService"),e("design:type",k.ExpressionService)],a.prototype,"expressionService",void 0),d([w.Autowired("balancedColumnTreeBuilder"),e("design:type",l.BalancedColumnTreeBuilder)],a.prototype,"balancedColumnTreeBuilder",void 0),d([w.Autowired("displayedGroupCreator"),e("design:type",m.DisplayedGroupCreator)],a.prototype,"displayedGroupCreator",void 0),d([w.Autowired("autoWidthCalculator"),e("design:type",n.AutoWidthCalculator)],a.prototype,"autoWidthCalculator",void 0),d([w.Autowired("eventService"),e("design:type",o.EventService)],a.prototype,"eventService",void 0),d([w.Autowired("columnUtils"),e("design:type",p.ColumnUtils)],a.prototype,"columnUtils",void 0),d([w.Autowired("gridPanel"),e("design:type",x.GridPanel)],a.prototype,"gridPanel",void 0),d([w.Autowired("context"),e("design:type",w.Context)],a.prototype,"context",void 0),d([w.Optional("aggFuncService"),e("design:type",Object)],a.prototype,"aggFuncService",void 0),d([w.PostConstruct,e("design:type",Function),e("design:paramtypes",[]),e("design:returntype",void 0)],a.prototype,"init",null),d([f(0,w.Qualifier("loggerFactory")),e("design:type",Function),e("design:paramtypes",[q.LoggerFactory]),e("design:returntype",void 0)],a.prototype,"setBeans",null),a=d([w.Bean("columnController"),e("design:paramtypes",[])],a)}();b.ColumnController=z},function(a,b,c){var d=c(17),e=c(6),f=function(){function a(a,b,c){this.displayedChildren=[],this.moving=!1,this.eventService=new e.EventService,this.groupId=b,this.instanceId=c,this.originalColumnGroup=a}return a.prototype.getParent=function(){return this.parent},a.prototype.setParent=function(a){this.parent=a},a.prototype.getUniqueId=function(){return this.groupId+"_"+this.instanceId},a.prototype.checkLeft=function(){if(this.displayedChildren.forEach(function(b){b instanceof a&&b.checkLeft()}),this.displayedChildren.length>0){var b=this.displayedChildren[0].getLeft();this.setLeft(b)}else this.setLeft(null)},a.prototype.getLeft=function(){return this.left},a.prototype.setLeft=function(b){this.left!==b&&(this.left=b,this.eventService.dispatchEvent(a.EVENT_LEFT_CHANGED))},a.prototype.addEventListener=function(a,b){this.eventService.addEventListener(a,b)},a.prototype.removeEventListener=function(a,b){this.eventService.removeEventListener(a,b)},a.prototype.setMoving=function(a){this.getDisplayedLeafColumns().forEach(function(b){return b.setMoving(a)})},a.prototype.isMoving=function(){return this.moving},a.prototype.getGroupId=function(){return this.groupId},a.prototype.getInstanceId=function(){return this.instanceId},a.prototype.isChildInThisGroupDeepSearch=function(b){var c=!1;return this.children.forEach(function(d){b===d&&(c=!0),d instanceof a&&d.isChildInThisGroupDeepSearch(b)&&(c=!0)}),c},a.prototype.getActualWidth=function(){var a=0;return this.displayedChildren&&this.displayedChildren.forEach(function(b){a+=b.getActualWidth()}),a},a.prototype.getMinWidth=function(){var a=0;return this.displayedChildren.forEach(function(b){a+=b.getMinWidth()}),a},a.prototype.addChild=function(a){this.children||(this.children=[]),this.children.push(a)},a.prototype.getDisplayedChildren=function(){return this.displayedChildren},a.prototype.getLeafColumns=function(){var a=[];return this.addLeafColumns(a),a},a.prototype.getDisplayedLeafColumns=function(){var a=[];return this.addDisplayedLeafColumns(a),a},a.prototype.getDefinition=function(){return this.originalColumnGroup.getColGroupDef()},a.prototype.getColGroupDef=function(){return this.originalColumnGroup.getColGroupDef()},a.prototype.isPadding=function(){return this.originalColumnGroup.isPadding()},a.prototype.isExpandable=function(){return this.originalColumnGroup.isExpandable()},a.prototype.isExpanded=function(){return this.originalColumnGroup.isExpanded()},a.prototype.setExpanded=function(a){this.originalColumnGroup.setExpanded(a)},a.prototype.addDisplayedLeafColumns=function(b){this.displayedChildren.forEach(function(c){c instanceof d.Column?b.push(c):c instanceof a&&c.addDisplayedLeafColumns(b)})},a.prototype.addLeafColumns=function(b){this.children.forEach(function(c){c instanceof d.Column?b.push(c):c instanceof a&&c.addLeafColumns(b)})},a.prototype.getChildren=function(){return this.children},a.prototype.getColumnGroupShow=function(){return this.originalColumnGroup.getColumnGroupShow()},a.prototype.getOriginalColumnGroup=function(){return this.originalColumnGroup},a.prototype.calculateDisplayedColumns=function(){if(this.displayedChildren=[],!this.originalColumnGroup.isExpandable())return void(this.displayedChildren=this.children);for(var b=0,c=this.children.length;b<c;b++){var d=this.children[b],e=d.getColumnGroupShow();switch(e){case a.HEADER_GROUP_SHOW_OPEN:this.originalColumnGroup.isExpanded()&&this.displayedChildren.push(d);break;case a.HEADER_GROUP_SHOW_CLOSED:this.originalColumnGroup.isExpanded()||this.displayedChildren.push(d);break;default:this.displayedChildren.push(d)}}},a.HEADER_GROUP_SHOW_OPEN="open",a.HEADER_GROUP_SHOW_CLOSED="closed",a.EVENT_LEFT_CHANGED="leftChanged",a}();b.ColumnGroup=f},function(a,b,c){var d=this&&this.__decorate||function(a,b,c,d){var g,e=arguments.length,f=e<3?b:null===d?d=Object.getOwnPropertyDescriptor(b,c):d;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)f=Reflect.decorate(a,b,c,d);else for(var h=a.length-1;h>=0;h--)(g=a[h])&&(f=(e<3?g(f):e>3?g(b,c,f):g(b,c))||f);return e>3&&f&&Object.defineProperty(b,c,f),f},e=this&&this.__metadata||function(a,b){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(a,b)},f=c(6),g=c(9),h=c(8),i=c(5),j=c(18),k=function(){function a(a,b,c){this.moving=!1,this.filterActive=!1,this.eventService=new f.EventService,this.rowGroupActive=!1,this.pivotActive=!1,this.aggregationActive=!1,this.colDef=a,this.visible=!a.hide,this.sort=a.sort,this.sortedAt=a.sortedAt,this.colId=b,this.primary=c}return a.prototype.setParent=function(a){this.parent=a},a.prototype.getParent=function(){return this.parent},a.prototype.initialise=function(){this.floatingCellRenderer=this.frameworkFactory.colDefFloatingCellRenderer(this.colDef),this.cellRenderer=this.frameworkFactory.colDefCellRenderer(this.colDef),this.cellEditor=this.frameworkFactory.colDefCellEditor(this.colDef),this.filter=this.frameworkFactory.colDefFilter(this.colDef),this.setPinned(this.colDef.pinned);var a=this.gridOptionsWrapper.getMinColWidth(),b=this.gridOptionsWrapper.getMaxColWidth();this.colDef.minWidth?this.minWidth=this.colDef.minWidth:this.minWidth=a,this.colDef.maxWidth?this.maxWidth=this.colDef.maxWidth:this.maxWidth=b,this.actualWidth=this.columnUtils.calculateColInitialWidth(this.colDef);var c=this.gridOptionsWrapper.isSuppressFieldDotNotation();this.fieldContainsDots=g.Utils.exists(this.colDef.field)&&this.colDef.field.indexOf(".")>=0&&!c,this.tooltipFieldContainsDots=g.Utils.exists(this.colDef.tooltipField)&&this.colDef.tooltipField.indexOf(".")>=0&&!c,this.validate()},a.prototype.getCellRenderer=function(){return this.cellRenderer},a.prototype.getCellEditor=function(){return this.cellEditor},a.prototype.getFloatingCellRenderer=function(){return this.floatingCellRenderer},a.prototype.getFilter=function(){return this.filter},a.prototype.getUniqueId=function(){return this.getId()},a.prototype.isPrimary=function(){return this.primary},a.prototype.isFilterAllowed=function(){return this.primary&&!this.colDef.suppressFilter},a.prototype.isFieldContainsDots=function(){return this.fieldContainsDots},a.prototype.isTooltipFieldContainsDots=function(){return this.tooltipFieldContainsDots},a.prototype.validate=function(){this.gridOptionsWrapper.isEnterprise()||(g.Utils.exists(this.colDef.aggFunc)&&console.warn("ag-Grid: aggFunc is only valid in ag-Grid-Enterprise"),g.Utils.exists(this.colDef.rowGroupIndex)&&console.warn("ag-Grid: rowGroupIndex is only valid in ag-Grid-Enterprise")),g.Utils.exists(this.colDef.width)&&"number"!=typeof this.colDef.width&&console.warn("ag-Grid: colDef.width should be a number, not "+typeof this.colDef.width)},a.prototype.addEventListener=function(a,b){this.eventService.addEventListener(a,b)},a.prototype.removeEventListener=function(a,b){this.eventService.removeEventListener(a,b)},a.prototype.createIsColumnFuncParams=function(a){return{node:a,column:this,colDef:this.colDef,context:this.gridOptionsWrapper.getContext(),api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi()}},a.prototype.isSuppressNavigable=function(a){if("boolean"==typeof this.colDef.suppressNavigable)return this.colDef.suppressNavigable;if("function"==typeof this.colDef.suppressNavigable){var b=this.createIsColumnFuncParams(a),c=this.colDef.suppressNavigable;return c(b)}return!1},a.prototype.isCellEditable=function(a){if("boolean"==typeof this.colDef.editable)return this.colDef.editable;if("function"==typeof this.colDef.editable){var b=this.createIsColumnFuncParams(a),c=this.colDef.editable;return c(b)}return!1},a.prototype.setMoving=function(b){this.moving=b,this.eventService.dispatchEvent(a.EVENT_MOVING_CHANGED)},a.prototype.isMoving=function(){return this.moving},a.prototype.getSort=function(){return this.sort},a.prototype.setSort=function(b){this.sort!==b&&(this.sort=b,this.eventService.dispatchEvent(a.EVENT_SORT_CHANGED))},a.prototype.isSortAscending=function(){return this.sort===a.SORT_ASC},a.prototype.isSortDescending=function(){return this.sort===a.SORT_DESC},a.prototype.isSortNone=function(){return g.Utils.missing(this.sort)},a.prototype.getSortedAt=function(){return this.sortedAt},a.prototype.setSortedAt=function(a){this.sortedAt=a},a.prototype.setAggFunc=function(a){this.aggFunc=a},a.prototype.getAggFunc=function(){return this.aggFunc},a.prototype.getLeft=function(){return this.left},a.prototype.getRight=function(){return this.left+this.actualWidth},a.prototype.setLeft=function(b){this.left!==b&&(this.left=b,this.eventService.dispatchEvent(a.EVENT_LEFT_CHANGED))},a.prototype.isFilterActive=function(){return this.filterActive},a.prototype.setFilterActive=function(b){this.filterActive!==b&&(this.filterActive=b,this.eventService.dispatchEvent(a.EVENT_FILTER_CHANGED))},a.prototype.setPinned=function(b){this.gridOptionsWrapper.isForPrint()||(b===!0||b===a.PINNED_LEFT?this.pinned=a.PINNED_LEFT:b===a.PINNED_RIGHT?this.pinned=a.PINNED_RIGHT:this.pinned=null)},a.prototype.setFirstRightPinned=function(b){this.firstRightPinned!==b&&(this.firstRightPinned=b,this.eventService.dispatchEvent(a.EVENT_FIRST_RIGHT_PINNED_CHANGED))},a.prototype.setLastLeftPinned=function(b){this.lastLeftPinned!==b&&(this.lastLeftPinned=b,this.eventService.dispatchEvent(a.EVENT_LAST_LEFT_PINNED_CHANGED))},a.prototype.isFirstRightPinned=function(){return this.firstRightPinned},a.prototype.isLastLeftPinned=function(){return this.lastLeftPinned},a.prototype.isPinned=function(){return this.pinned===a.PINNED_LEFT||this.pinned===a.PINNED_RIGHT},a.prototype.isPinnedLeft=function(){return this.pinned===a.PINNED_LEFT},a.prototype.isPinnedRight=function(){return this.pinned===a.PINNED_RIGHT},a.prototype.getPinned=function(){return this.pinned},a.prototype.setVisible=function(b){var c=b===!0;this.visible!==c&&(this.visible=c,this.eventService.dispatchEvent(a.EVENT_VISIBLE_CHANGED))},a.prototype.isVisible=function(){return this.visible},a.prototype.getColDef=function(){return this.colDef},a.prototype.getColumnGroupShow=function(){return this.colDef.columnGroupShow},a.prototype.getColId=function(){return this.colId},a.prototype.getId=function(){return this.getColId()},a.prototype.getDefinition=function(){return this.colDef},a.prototype.getActualWidth=function(){return this.actualWidth},a.prototype.setActualWidth=function(b){this.actualWidth!==b&&(this.actualWidth=b,this.eventService.dispatchEvent(a.EVENT_WIDTH_CHANGED))},a.prototype.isGreaterThanMax=function(a){return!!this.maxWidth&&a>this.maxWidth},a.prototype.getMinWidth=function(){return this.minWidth},a.prototype.getMaxWidth=function(){return this.maxWidth},a.prototype.setMinimum=function(){this.setActualWidth(this.minWidth)},a.prototype.setRowGroupActive=function(b){this.rowGroupActive!==b&&(this.rowGroupActive=b,this.eventService.dispatchEvent(a.EVENT_ROW_GROUP_CHANGED,this))},a.prototype.isRowGroupActive=function(){return this.rowGroupActive},a.prototype.setPivotActive=function(b){this.pivotActive!==b&&(this.pivotActive=b,this.eventService.dispatchEvent(a.EVENT_PIVOT_CHANGED,this))},a.prototype.isPivotActive=function(){return this.pivotActive},a.prototype.isAnyFunctionActive=function(){return this.isPivotActive()||this.isRowGroupActive()||this.isValueActive()},a.prototype.isAnyFunctionAllowed=function(){return this.isAllowPivot()||this.isAllowRowGroup()||this.isAllowValue()},a.prototype.setValueActive=function(b){this.aggregationActive!==b&&(this.aggregationActive=b,this.eventService.dispatchEvent(a.EVENT_VALUE_CHANGED,this))},a.prototype.isValueActive=function(){return this.aggregationActive},a.prototype.isAllowPivot=function(){return this.colDef.enablePivot===!0},a.prototype.isAllowValue=function(){return this.colDef.enableValue===!0},a.prototype.isAllowRowGroup=function(){return this.colDef.enableRowGroup===!0},a.EVENT_MOVING_CHANGED="movingChanged",a.EVENT_LEFT_CHANGED="leftChanged",a.EVENT_WIDTH_CHANGED="widthChanged",a.EVENT_LAST_LEFT_PINNED_CHANGED="lastLeftPinnedChanged",a.EVENT_FIRST_RIGHT_PINNED_CHANGED="firstRightPinnedChanged",a.EVENT_VISIBLE_CHANGED="visibleChanged",a.EVENT_FILTER_CHANGED="filterChanged",a.EVENT_SORT_CHANGED="sortChanged",a.EVENT_ROW_GROUP_CHANGED="columnRowGroupChanged",a.EVENT_PIVOT_CHANGED="columnPivotChanged",a.EVENT_VALUE_CHANGED="columnValueChanged",a.PINNED_RIGHT="right",a.PINNED_LEFT="left",a.SORT_ASC="asc",a.SORT_DESC="desc",d([h.Autowired("gridOptionsWrapper"),e("design:type",i.GridOptionsWrapper)],a.prototype,"gridOptionsWrapper",void 0),d([h.Autowired("columnUtils"),e("design:type",j.ColumnUtils)],a.prototype,"columnUtils",void 0),d([h.Autowired("frameworkFactory"),e("design:type",Object)],a.prototype,"frameworkFactory",void 0),d([h.PostConstruct,e("design:type",Function),e("design:paramtypes",[]),e("design:returntype",void 0)],a.prototype,"initialise",null),a}();b.Column=k},function(a,b,c){var d=this&&this.__decorate||function(a,b,c,d){var g,e=arguments.length,f=e<3?b:null===d?d=Object.getOwnPropertyDescriptor(b,c):d;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)f=Reflect.decorate(a,b,c,d);else for(var h=a.length-1;h>=0;h--)(g=a[h])&&(f=(e<3?g(f):e>3?g(b,c,f):g(b,c))||f);return e>3&&f&&Object.defineProperty(b,c,f),f},e=this&&this.__metadata||function(a,b){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(a,b);
},f=c(5),g=c(16),h=c(19),i=c(8),j=c(8),k=function(){function a(){}return a.prototype.calculateColInitialWidth=function(a){return a.width?a.width<this.gridOptionsWrapper.getMinColWidth()?this.gridOptionsWrapper.getMinColWidth():a.width:this.gridOptionsWrapper.getColWidth()},a.prototype.getOriginalPathForColumn=function(a,b){function e(b,f){for(var g=0;g<b.length;g++){if(d)return;var i=b[g];if(i instanceof h.OriginalColumnGroup){var j=i;e(j.getChildren(),f+1),c[f]=i}else i===a&&(d=!0)}}var c=[],d=!1;return e(b,0),d?c:null},a.prototype.depthFirstOriginalTreeSearch=function(a,b){var c=this;a&&a.forEach(function(a){a instanceof h.OriginalColumnGroup&&c.depthFirstOriginalTreeSearch(a.getChildren(),b),b(a)})},a.prototype.depthFirstAllColumnTreeSearch=function(a,b){var c=this;a&&a.forEach(function(a){a instanceof g.ColumnGroup&&c.depthFirstAllColumnTreeSearch(a.getChildren(),b),b(a)})},a.prototype.depthFirstDisplayedColumnTreeSearch=function(a,b){var c=this;a&&a.forEach(function(a){a instanceof g.ColumnGroup&&c.depthFirstDisplayedColumnTreeSearch(a.getDisplayedChildren(),b),b(a)})},d([j.Autowired("gridOptionsWrapper"),e("design:type",f.GridOptionsWrapper)],a.prototype,"gridOptionsWrapper",void 0),a=d([i.Bean("columnUtils"),e("design:paramtypes",[])],a)}();b.ColumnUtils=k},function(a,b,c){var d=c(16),e=c(17),f=function(){function a(a,b,c){this.expandable=!1,this.colGroupDef=a,this.groupId=b,this.expanded=a&&!!a.openByDefault,this.padding=c}return a.prototype.isPadding=function(){return this.padding},a.prototype.setExpanded=function(a){this.expanded=a},a.prototype.isExpandable=function(){return this.expandable},a.prototype.isExpanded=function(){return this.expanded},a.prototype.getGroupId=function(){return this.groupId},a.prototype.getId=function(){return this.getGroupId()},a.prototype.setChildren=function(a){this.children=a},a.prototype.getChildren=function(){return this.children},a.prototype.getColGroupDef=function(){return this.colGroupDef},a.prototype.getLeafColumns=function(){var a=[];return this.addLeafColumns(a),a},a.prototype.addLeafColumns=function(b){this.children.forEach(function(c){c instanceof e.Column?b.push(c):c instanceof a&&c.addLeafColumns(b)})},a.prototype.getColumnGroupShow=function(){return this.padding?this.children[0].getColumnGroupShow():this.colGroupDef.columnGroupShow},a.prototype.calculateExpandable=function(){for(var a=!1,b=!1,c=!1,e=0,f=this.children.length;e<f;e++){var g=this.children[e],h=g.getColumnGroupShow();h===d.ColumnGroup.HEADER_GROUP_SHOW_OPEN?(a=!0,c=!0):h===d.ColumnGroup.HEADER_GROUP_SHOW_CLOSED?(b=!0,c=!0):(a=!0,b=!0)}this.expandable=a&&b&&c},a}();b.OriginalColumnGroup=f},function(a,b,c){var d=this&&this.__decorate||function(a,b,c,d){var g,e=arguments.length,f=e<3?b:null===d?d=Object.getOwnPropertyDescriptor(b,c):d;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)f=Reflect.decorate(a,b,c,d);else for(var h=a.length-1;h>=0;h--)(g=a[h])&&(f=(e<3?g(f):e>3?g(b,c,f):g(b,c))||f);return e>3&&f&&Object.defineProperty(b,c,f),f},e=this&&this.__metadata||function(a,b){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(a,b)},f=this&&this.__param||function(a,b){return function(c,d){b(c,d,a)}},g=c(7),h=c(8),i=c(8),j=function(){function a(){this.expressionToFunctionCache={}}return a.prototype.setBeans=function(a){this.logger=a.create("ExpressionService")},a.prototype.evaluate=function(a,b){try{var c=this.createExpressionFunction(a),d=c(b.value,b.context,b.node,b.data,b.colDef,b.rowIndex,b.api,b.getValue,b.column,b.columnGroup);return d}catch(b){return this.logger.log("Processing of the expression failed"),this.logger.log("Expression = "+a),this.logger.log("Exception = "+b),null}},a.prototype.createExpressionFunction=function(a){if(this.expressionToFunctionCache[a])return this.expressionToFunctionCache[a];var b=this.createFunctionBody(a),c=new Function("x, ctx, node, data, colDef, rowIndex, api, getValue, column, columnGroup",b);return this.expressionToFunctionCache[a]=c,c},a.prototype.createFunctionBody=function(a){return a.indexOf("return")>=0?a:"return "+a+";"},d([f(0,i.Qualifier("loggerFactory")),e("design:type",Function),e("design:paramtypes",[g.LoggerFactory]),e("design:returntype",void 0)],a.prototype,"setBeans",null),a=d([h.Bean("expressionService"),e("design:paramtypes",[])],a)}();b.ExpressionService=j},function(a,b,c){var d=this&&this.__decorate||function(a,b,c,d){var g,e=arguments.length,f=e<3?b:null===d?d=Object.getOwnPropertyDescriptor(b,c):d;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)f=Reflect.decorate(a,b,c,d);else for(var h=a.length-1;h>=0;h--)(g=a[h])&&(f=(e<3?g(f):e>3?g(b,c,f):g(b,c))||f);return e>3&&f&&Object.defineProperty(b,c,f),f},e=this&&this.__metadata||function(a,b){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(a,b)},f=this&&this.__param||function(a,b){return function(c,d){b(c,d,a)}},g=c(5),h=c(7),i=c(18),j=c(22),k=c(19),l=c(17),m=c(8),n=c(8),o=c(8),p=c(8),q=c(9),r=function(){function a(){}return a.prototype.setBeans=function(a){this.logger=a.create("BalancedColumnTreeBuilder")},a.prototype.createBalancedColumnGroups=function(a,b){var c=new j.ColumnKeyCreator,d=this.recursivelyCreateColumns(a,0,c,b),e=this.findMaxDept(d,0);this.logger.log("Number of levels for grouped columns is "+e);var f=this.balanceColumnTree(d,0,e,c);return this.columnUtils.depthFirstOriginalTreeSearch(f,function(a){a instanceof k.OriginalColumnGroup&&a.calculateExpandable()}),{balancedTree:f,treeDept:e}},a.prototype.balanceColumnTree=function(a,b,c,d){var e=this,f=[];return a.forEach(function(a){if(a instanceof k.OriginalColumnGroup){var g=a,h=e.balanceColumnTree(g.getChildren(),b+1,c,d);g.setChildren(h),f.push(g)}else{for(var i=a,j=c-1;j>=b;j--){var l=d.getUniqueKey(null,null),m=e.createMergedColGroupDef(null),n=new k.OriginalColumnGroup(m,l,!0);n.setChildren([i]),i=n}f.push(i)}}),f},a.prototype.findMaxDept=function(a,b){for(var c=b,d=0;d<a.length;d++){var e=a[d];if(e instanceof k.OriginalColumnGroup){var f=e,g=this.findMaxDept(f.getChildren(),b+1);c<g&&(c=g)}}return c},a.prototype.recursivelyCreateColumns=function(a,b,c,d){var e=this,f=[];return a?(a.forEach(function(a){var g;g=e.isColumnGroup(a)?e.createColumnGroup(c,d,a,b):e.createColumn(c,d,a),f.push(g)}),f):f},a.prototype.createColumnGroup=function(a,b,c,d){var e=this.createMergedColGroupDef(c),f=a.getUniqueKey(e.groupId,null),g=new k.OriginalColumnGroup(e,f,!1),h=this.recursivelyCreateColumns(e.children,d+1,a,b);return g.setChildren(h),g},a.prototype.createMergedColGroupDef=function(a){var b={};return q.Utils.assign(b,this.gridOptionsWrapper.getDefaultColGroupDef()),q.Utils.assign(b,a),this.checkForDeprecatedItems(b),b},a.prototype.createColumn=function(a,b,c){var d={};q.Utils.assign(d,this.gridOptionsWrapper.getDefaultColDef()),q.Utils.assign(d,c),this.checkForDeprecatedItems(d);var e=a.getUniqueKey(d.colId,d.field),f=new l.Column(d,e,b);return this.context.wireBean(f),f},a.prototype.checkForDeprecatedItems=function(a){if(a){var b=a;void 0!==b.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!==b.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!==b.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!==b.suppressRowGroup&&console.warn("ag-grid: colDef.suppressRowGroup is deprecated, please use colDef.type instead"),void 0!==b.suppressAggregation&&console.warn("ag-grid: colDef.suppressAggregation is deprecated, please use colDef.type instead"),(b.suppressRowGroup||b.suppressAggregation)&&console.warn("ag-grid: colDef.suppressAggregation and colDef.suppressRowGroup are deprecated, use allowRowGroup, allowPivot and allowValue instead"),b.displayName&&(console.warn("ag-grid: Found displayName "+b.displayName+", please use headerName instead, displayName is deprecated."),b.headerName=b.displayName)}},a.prototype.isColumnGroup=function(a){return void 0!==a.children},d([o.Autowired("gridOptionsWrapper"),e("design:type",g.GridOptionsWrapper)],a.prototype,"gridOptionsWrapper",void 0),d([o.Autowired("columnUtils"),e("design:type",i.ColumnUtils)],a.prototype,"columnUtils",void 0),d([o.Autowired("context"),e("design:type",p.Context)],a.prototype,"context",void 0),d([f(0,n.Qualifier("loggerFactory")),e("design:type",Function),e("design:paramtypes",[h.LoggerFactory]),e("design:returntype",void 0)],a.prototype,"setBeans",null),a=d([m.Bean("balancedColumnTreeBuilder"),e("design:paramtypes",[])],a)}();b.BalancedColumnTreeBuilder=r},function(a,b,c){var d=c(9),e=function(){function a(){this.existingKeys=[]}return a.prototype.getUniqueKey=function(a,b){a=d.Utils.toStringOrNull(a);for(var c=0;;){var e;if(a?(e=a,0!==c&&(e+="_"+c)):b?(e=b,0!==c&&(e+="_"+c)):e=""+c,this.existingKeys.indexOf(e)<0)return this.existingKeys.push(e),e;c++}},a}();b.ColumnKeyCreator=e},function(a,b,c){var d=this&&this.__decorate||function(a,b,c,d){var g,e=arguments.length,f=e<3?b:null===d?d=Object.getOwnPropertyDescriptor(b,c):d;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)f=Reflect.decorate(a,b,c,d);else for(var h=a.length-1;h>=0;h--)(g=a[h])&&(f=(e<3?g(f):e>3?g(b,c,f):g(b,c))||f);return e>3&&f&&Object.defineProperty(b,c,f),f},e=this&&this.__metadata||function(a,b){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(a,b)},f=c(18),g=c(16),h=c(19),i=c(8),j=c(8),k=function(){function a(){}return a.prototype.createDisplayedGroups=function(a,b,c){var f,h,d=this,e=[];return a.forEach(function(a){for(var i=d.getOriginalPathForColumn(b,a),j=[],k=!h,l=0;l<i.length;l++)if(k||i[l]!==h[l]){var m=i[l],n=m.getGroupId(),o=c.getInstanceIdForKey(n),p=new g.ColumnGroup(m,n,o);j[l]=p,0==l?e.push(p):j[l-1].addChild(p)}else j[l]=f[l];var q=0===j.length;if(q)e.push(a);else{var r=j[j.length-1];r.addChild(a)}f=j,h=i}),this.setupParentsIntoColumns(e,null),e},a.prototype.setupParentsIntoColumns=function(a,b){var c=this;a.forEach(function(a){if(a.setParent(b),a instanceof g.ColumnGroup){var d=a;c.setupParentsIntoColumns(d.getChildren(),d)}})},a.prototype.createFakePath=function(a){for(var b=[],c=a,d=0;c&&c[0]&&c[0]instanceof h.OriginalColumnGroup;)b.push(new h.OriginalColumnGroup(null,"FAKE_PATH_"+d,!0)),c=c[0].getChildren(),d++;return b},a.prototype.getOriginalPathForColumn=function(a,b){function e(a,f){for(var g=0;g<a.length;g++){if(d)return;var i=a[g];if(i instanceof h.OriginalColumnGroup){var j=i;e(j.getChildren(),f+1),c[f]=i}else i===b&&(d=!0)}}var c=[],d=!1;return e(a,0),d?c:this.createFakePath(a)},d([j.Autowired("columnUtils"),e("design:type",f.ColumnUtils)],a.prototype,"columnUtils",void 0),a=d([i.Bean("displayedGroupCreator"),e("design:paramtypes",[])],a)}();b.DisplayedGroupCreator=k},function(a,b,c){var d=this&&this.__decorate||function(a,b,c,d){var g,e=arguments.length,f=e<3?b:null===d?d=Object.getOwnPropertyDescriptor(b,c):d;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)f=Reflect.decorate(a,b,c,d);else for(var h=a.length-1;h>=0;h--)(g=a[h])&&(f=(e<3?g(f):e>3?g(b,c,f):g(b,c))||f);return e>3&&f&&Object.defineProperty(b,c,f),f},e=this&&this.__metadata||function(a,b){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(a,b)},f=c(25),g=c(26),h=c(8),i=c(8),j=c(68),k=c(76),l=c(5),m=function(){function a(){}return a.prototype.getPreferredWidthForColumn=function(a){var b=this.getHeaderCellForColumn(a);if(!b)return-1;var c=document.createElement("span");c.style.position="fixed";var d=this.gridPanel.getBodyContainer();d.appendChild(c),this.putRowCellsIntoDummyContainer(a,c),this.cloneItemIntoDummy(b.getGui(),c);var e=c.offsetWidth;d.removeChild(c);var f=this.gridOptionsWrapper.getAutoSizePadding();return("number"!=typeof f||f<0)&&(f=4),e+f},a.prototype.getHeaderCellForColumn=function(a){var b=null;return this.headerRenderer.forEachHeaderElement(function(c){if(c instanceof k.RenderedHeaderCell){var d=c;d.getColumn()===a&&(b=d)}}),b},a.prototype.putRowCellsIntoDummyContainer=function(a,b){var c=this,d=this.rowRenderer.getAllCellsForColumn(a);d.forEach(function(a,d){c.cloneItemIntoDummy(a,b)})},a.prototype.cloneItemIntoDummy=function(a,b){var c=a.cloneNode(!0);c.style.width="",c.style.position="static",c.style.left="";var d=document.createElement("div");d.style.display="table-row",d.appendChild(c),b.appendChild(d)},d([i.Autowired("rowRenderer"),e("design:type",f.RowRenderer)],a.prototype,"rowRenderer",void 0),d([i.Autowired("headerRenderer"),e("design:type",j.HeaderRenderer)],a.prototype,"headerRenderer",void 0),d([i.Autowired("gridPanel"),e("design:type",g.GridPanel)],a.prototype,"gridPanel",void 0),d([i.Autowired("gridOptionsWrapper"),e("design:type",l.GridOptionsWrapper)],a.prototype,"gridOptionsWrapper",void 0),a=d([h.Bean("autoWidthCalculator"),e("design:paramtypes",[])],a)}();b.AutoWidthCalculator=m},function(a,b,c){var d=this&&this.__decorate||function(a,b,c,d){var g,e=arguments.length,f=e<3?b:null===d?d=Object.getOwnPropertyDescriptor(b,c):d;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)f=Reflect.decorate(a,b,c,d);else for(var h=a.length-1;h>=0;h--)(g=a[h])&&(f=(e<3?g(f):e>3?g(b,c,f):g(b,c))||f);return e>3&&f&&Object.defineProperty(b,c,f),f},e=this&&this.__metadata||function(a,b){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(a,b)},f=this&&this.__param||function(a,b){return function(c,d){b(c,d,a)}},g=c(9),h=c(5),i=c(26),j=c(20),k=c(38),l=c(31),m=c(6),n=c(28),o=c(39),p=c(12),q=c(10),r=c(8),s=c(42),t=c(15),u=c(7),v=c(37),w=c(67),x=c(35),y=function(){function a(){this.renderedRows={},this.renderedTopFloatingRows=[],this.renderedBottomFloatingRows=[],this.destroyFunctions=[]}return a.prototype.agWire=function(a){this.logger=this.loggerFactory.create("RowRenderer"),this.logger=a.create("BalancedColumnTreeBuilder")},a.prototype.setupDocumentFragments=function(){var a=!!document.createDocumentFragment;a&&(this.eBodyContainerDF=document.createDocumentFragment(),this.gridOptionsWrapper.isForPrint()||(this.ePinnedLeftColsContainerDF=document.createDocumentFragment(),this.ePinnedRightColsContainerDF=document.createDocumentFragment()))},a.prototype.init=function(){var a=this;this.getContainersFromGridPanel(),this.setupDocumentFragments();var b=this.onColumnEvent.bind(this),c=this.refreshView.bind(this);this.eventService.addEventListener(p.Events.EVENT_DISPLAYED_COLUMNS_CHANGED,b),this.eventService.addEventListener(p.Events.EVENT_COLUMN_RESIZED,b),this.eventService.addEventListener(p.Events.EVENT_MODEL_UPDATED,c),this.eventService.addEventListener(p.Events.EVENT_FLOATING_ROW_DATA_CHANGED,c),this.destroyFunctions.push(function(){a.eventService.removeEventListener(p.Events.EVENT_DISPLAYED_COLUMNS_CHANGED,b),a.eventService.removeEventListener(p.Events.EVENT_COLUMN_RESIZED,b),a.eventService.removeEventListener(p.Events.EVENT_MODEL_UPDATED,c),a.eventService.removeEventListener(p.Events.EVENT_FLOATING_ROW_DATA_CHANGED,c)}),this.refreshView()},a.prototype.onColumnEvent=function(a){this.setMainRowWidths()},a.prototype.getContainersFromGridPanel=function(){this.eFullWidthContainer=this.gridPanel.getFullWidthCellContainer(),this.eBodyContainer=this.gridPanel.getBodyContainer(),this.ePinnedLeftColsContainer=this.gridPanel.getPinnedLeftColsContainer(),this.ePinnedRightColsContainer=this.gridPanel.getPinnedRightColsContainer(),this.eFloatingTopContainer=this.gridPanel.getFloatingTopContainer(),this.eFloatingTopPinnedLeftContainer=this.gridPanel.getPinnedLeftFloatingTop(),this.eFloatingTopPinnedRightContainer=this.gridPanel.getPinnedRightFloatingTop(),this.eFloatingTopFullWidthContainer=this.gridPanel.getFloatingTopFullWidthCellContainer(),this.eFloatingBottomContainer=this.gridPanel.getFloatingBottomContainer(),this.eFloatingBottomPinnedLeftContainer=this.gridPanel.getPinnedLeftFloatingBottom(),this.eFloatingBottomPinnedRightContainer=this.gridPanel.getPinnedRightFloatingBottom(),this.eFloatingBottomFullWithContainer=this.gridPanel.getFloatingBottomFullWidthCellContainer(),this.eBodyViewport=this.gridPanel.getBodyViewport(),this.eAllBodyContainers=[this.eBodyContainer,this.eFloatingBottomContainer,this.eFloatingTopContainer],this.eAllPinnedLeftContainers=[this.ePinnedLeftColsContainer,this.eFloatingBottomPinnedLeftContainer,this.eFloatingTopPinnedLeftContainer],this.eAllPinnedRightContainers=[this.ePinnedRightColsContainer,this.eFloatingBottomPinnedRightContainer,this.eFloatingTopPinnedRightContainer]},a.prototype.setRowModel=function(a){this.rowModel=a},a.prototype.getAllCellsForColumn=function(a){function c(c,d){var e=d.getCellForCol(a);e&&b.push(e)}var b=[];return g.Utils.iterateObject(this.renderedRows,c),g.Utils.iterateObject(this.renderedBottomFloatingRows,c),g.Utils.iterateObject(this.renderedTopFloatingRows,c),b},a.prototype.setMainRowWidths=function(){var a=this.columnController.getBodyContainerWidth()+"px";this.eAllBodyContainers.forEach(function(b){for(var c=b.querySelectorAll(".ag-row"),d=0;d<c.length;d++)c[d].style.width=a})},a.prototype.refreshAllFloatingRows=function(){this.refreshFloatingRows(this.renderedTopFloatingRows,this.floatingRowModel.getFloatingTopRowData(),this.eFloatingTopPinnedLeftContainer,this.eFloatingTopPinnedRightContainer,this.eFloatingTopContainer,this.eFloatingTopFullWidthContainer),this.refreshFloatingRows(this.renderedBottomFloatingRows,this.floatingRowModel.getFloatingBottomRowData(),this.eFloatingBottomPinnedLeftContainer,this.eFloatingBottomPinnedRightContainer,this.eFloatingBottomContainer,this.eFloatingBottomFullWithContainer)},a.prototype.refreshFloatingRows=function(a,b,c,d,e,f){var h=this;a.forEach(function(a){a.destroy()}),a.length=0;var i=this.columnController.getAllDisplayedColumns();g.Utils.missingOrEmpty(i)||b&&b.forEach(function(b,g){var i=new o.RenderedRow(h.$scope,h,e,null,f,c,null,d,null,b,g);h.context.wireBean(i),a.push(i)})},a.prototype.refreshView=function(a){this.logger.log("refreshView");var b=this.focusedCellController.getFocusCellToUseAfterRefresh(),c=a?a.fromIndex:null;if(!this.gridOptionsWrapper.isForPrint()){var d=this.rowModel.getRowCombinedHeight();this.eBodyContainer.style.height=d+"px",this.eFullWidthContainer.style.height=d+"px",this.ePinnedLeftColsContainer.style.height=d+"px",this.ePinnedRightColsContainer.style.height=d+"px"}this.refreshAllVirtualRows(c),this.refreshAllFloatingRows(),this.restoreFocusedCell(b)},a.prototype.restoreFocusedCell=function(a){a&&this.focusedCellController.setFocusedCell(a.rowIndex,a.column,a.floating,!0)},a.prototype.softRefreshView=function(){var a=this.focusedCellController.getFocusCellToUseAfterRefresh();this.forEachRenderedCell(function(a){a.isVolatile()&&a.refreshCell()}),this.restoreFocusedCell(a)},a.prototype.stopEditing=function(a){void 0===a&&(a=!1),this.forEachRenderedRow(function(b,c){c.stopEditing(a)})},a.prototype.forEachRenderedCell=function(a){g.Utils.iterateObject(this.renderedRows,function(b,c){c.forEachRenderedCell(a)})},a.prototype.forEachRenderedRow=function(a){g.Utils.iterateObject(this.renderedRows,a),g.Utils.iterateObject(this.renderedTopFloatingRows,a),g.Utils.iterateObject(this.renderedBottomFloatingRows,a)},a.prototype.addRenderedRowListener=function(a,b,c){var d=this.renderedRows[b];d.addEventListener(a,c)},a.prototype.refreshRows=function(a){if(a&&0!=a.length){var b=this.focusedCellController.getFocusCellToUseAfterRefresh(),c=[];g.Utils.iterateObject(this.renderedRows,function(b,d){var e=d.getRowNode();a.indexOf(e)>=0&&c.push(b)}),this.removeVirtualRow(c),this.drawVirtualRows(),this.restoreFocusedCell(b)}},a.prototype.refreshCells=function(a,b,c){void 0===c&&(c=!1),a&&0!=a.length&&g.Utils.iterateObject(this.renderedRows,function(d,e){var f=e.getRowNode();a.indexOf(f)>=0&&e.refreshCells(b,c)})},a.prototype.rowDataChanged=function(a){var b=[],c=this.renderedRows;Object.keys(c).forEach(function(d){var e=c[d];e.isDataInList(a)&&b.push(d)}),this.removeVirtualRow(b),this.drawVirtualRows()},a.prototype.destroy=function(){this.destroyFunctions.forEach(function(a){return a()});var a=Object.keys(this.renderedRows);this.removeVirtualRow(a)},a.prototype.refreshAllVirtualRows=function(a){var b=Object.keys(this.renderedRows);this.removeVirtualRow(b,a),this.drawVirtualRows()},a.prototype.refreshGroupRows=function(){var a=this,b=[];Object.keys(this.renderedRows).forEach(function(c){var d=a.renderedRows[c];d.isGroup()&&b.push(c)}),this.removeVirtualRow(b),this.ensureRowsRendered()},a.prototype.removeVirtualRow=function(a,b){var c=this,d="number"==typeof b?b:-1;a.forEach(function(a){a>=d&&c.unbindVirtualRow(a)})},a.prototype.unbindVirtualRow=function(a){var b=this.renderedRows[a];b.destroy();var c={node:b.getRowNode(),rowIndex:a};this.eventService.dispatchEvent(p.Events.EVENT_VIRTUAL_ROW_REMOVED,c),delete this.renderedRows[a]},a.prototype.drawVirtualRows=function(){this.workOutFirstAndLastRowsToRender(),this.ensureRowsRendered()},a.prototype.workOutFirstAndLastRowsToRender=function(){var a,b;if(this.rowModel.isRowsToRender()){var c=this.rowModel.getRowCount();if(this.gridOptionsWrapper.isForPrint())a=0,b=c;else{var d=this.eBodyViewport.scrollTop,e=d+this.eBodyViewport.offsetHeight,f=this.rowModel.getRowIndexAtPixel(d),g=this.rowModel.getRowIndexAtPixel(e),h=this.gridOptionsWrapper.getRowBuffer();f-=h,g+=h,f<0&&(f=0),g>c-1&&(g=c-1),a=f,b=g}}else a=0,b=-1;var i=a!==this.firstRenderedRow,j=b!==this.lastRenderedRow;if(i||j){this.firstRenderedRow=a,this.lastRenderedRow=b;var k={firstRow:a,lastRow:b};this.eventService.dispatchEvent(p.Events.EVENT_VIEWPORT_CHANGED,k)}},a.prototype.getFirstVirtualRenderedRow=function(){return this.firstRenderedRow},a.prototype.getLastVirtualRenderedRow=function(){return this.lastRenderedRow},a.prototype.ensureRowsRendered=function(){for(var a=this,b=Object.keys(this.renderedRows),c=this.firstRenderedRow;c<=this.lastRenderedRow;c++)if(b.indexOf(c.toString())>=0)b.splice(b.indexOf(c.toString()),1);else{var d=this.rowModel.getRow(c);d&&this.insertRow(d,c)}this.removeVirtualRow(b),this.eBodyContainerDF&&(this.eBodyContainer.appendChild(this.eBodyContainerDF),this.gridOptionsWrapper.isForPrint()||(this.ePinnedLeftColsContainer.appendChild(this.ePinnedLeftColsContainerDF),this.ePinnedRightColsContainer.appendChild(this.ePinnedRightColsContainerDF))),this.gridOptionsWrapper.isAngularCompileRows()&&setTimeout(function(){a.$scope.$apply()},0)},a.prototype.insertRow=function(a,b){var c=this.columnController.getAllDisplayedColumns();if(!g.Utils.missingOrEmpty(c)){var d=new o.RenderedRow(this.$scope,this,this.eBodyContainer,this.eBodyContainerDF,this.eFullWidthContainer,this.ePinnedLeftColsContainer,this.ePinnedLeftColsContainerDF,this.ePinnedRightColsContainer,this.ePinnedRightColsContainerDF,a,b);this.context.wireBean(d),this.renderedRows[b]=d}},a.prototype.getRenderedNodes=function(){var a=this.renderedRows;return Object.keys(a).map(function(b){return a[b].getRowNode()})},a.prototype.navigateToNextCell=function(a,b,c,d){for(var e=new x.GridCell(b,d,c);;){if(e=this.cellNavigationService.getNextCellToFocus(a,e),g.Utils.missing(e))break;var f=this.gridOptionsWrapper.isGroupUseEntireRow();if(!f)break;var h=this.rowModel.getRow(e.rowIndex);if(!h.group)break}e&&(g.Utils.missing(e.floating)&&this.gridPanel.ensureIndexVisible(e.rowIndex),e.column.isPinned()||this.gridPanel.ensureColumnVisible(e.column),this.gridPanel.horizontallyScrollHeaderCenterAndFloatingCenter(),this.focusedCellController.setFocusedCell(e.rowIndex,e.column,e.floating,!0),this.rangeController&&this.rangeController.setRangeToCell(new x.GridCell(e.rowIndex,e.floating,e.column)))},a.prototype.startEditingCell=function(a,b,c){var d=this.getComponentForCell(a);d.startRowOrCellEdit(b,c)},a.prototype.getComponentForCell=function(a){var b;switch(a.floating){case q.Constants.FLOATING_TOP:b=this.renderedTopFloatingRows[a.rowIndex];break;case q.Constants.FLOATING_BOTTOM:b=this.renderedBottomFloatingRows[a.rowIndex];break;default:b=this.renderedRows[a.rowIndex]}if(!b)return null;var c=b.getRenderedCellForColumn(a.column);return c},a.prototype.onTabKeyDown=function(a,b){var c=a.isEditing(),d=a.getGridCell(),e=this.moveFocusToNextCell(d,b.shiftKey,c),f=g.Utils.exists(e);f&&(c?this.gridOptionsWrapper.isFullRowEdit()?this.moveEditToNextRow(a,e):this.moveEditToNextCell(a,e):e.focusCell(!0),b.preventDefault())},a.prototype.moveEditToNextCell=function(a,b){a.stopEditing(),b.startEditingIfEnabled(null,null,!0),b.focusCell(!1)},a.prototype.moveEditToNextRow=function(a,b){var c=a.getGridCell(),d=b.getGridCell(),e=c.rowIndex===d.rowIndex&&c.floating===d.floating;if(e)a.setFocusOutOnEditor(),b.setFocusInOnEditor();else{var f=a.getRenderedRow(),g=b.getRenderedRow();a.setFocusOutOnEditor(),f.stopEditing(),g.startRowEditing(),b.setFocusInOnEditor()}b.focusCell()},a.prototype.moveFocusToNextCell=function(a,b,c){for(var d=a;;){if(d=this.cellNavigationService.getNextTabbedCell(d,b),!d)return null;var e=g.Utils.missing(d.floating);e&&this.gridPanel.ensureIndexVisible(d.rowIndex),this.gridPanel.ensureColumnVisible(d.column),this.gridPanel.horizontallyScrollHeaderCenterAndFloatingCenter();var f=this.getComponentForCell(d);if((!c||f.isCellEditable())&&!f.isSuppressNavigable())return this.rangeController&&this.rangeController.setRangeToCell(new x.GridCell(d.rowIndex,d.floating,d.column)),f}},d([r.Autowired("columnController"),e("design:type",t.ColumnController)],a.prototype,"columnController",void 0),d([r.Autowired("gridOptionsWrapper"),e("design:type",h.GridOptionsWrapper)],a.prototype,"gridOptionsWrapper",void 0),d([r.Autowired("gridCore"),e("design:type",s.GridCore)],a.prototype,"gridCore",void 0),d([r.Autowired("gridPanel"),e("design:type",i.GridPanel)],a.prototype,"gridPanel",void 0),d([r.Autowired("$compile"),e("design:type",Object)],a.prototype,"$compile",void 0),d([r.Autowired("$scope"),e("design:type",Object)],a.prototype,"$scope",void 0),d([r.Autowired("expressionService"),e("design:type",j.ExpressionService)],a.prototype,"expressionService",void 0),d([r.Autowired("templateService"),e("design:type",k.TemplateService)],a.prototype,"templateService",void 0),d([r.Autowired("valueService"),e("design:type",l.ValueService)],a.prototype,"valueService",void 0),d([r.Autowired("eventService"),e("design:type",m.EventService)],a.prototype,"eventService",void 0),d([r.Autowired("floatingRowModel"),e("design:type",n.FloatingRowModel)],a.prototype,"floatingRowModel",void 0),d([r.Autowired("context"),e("design:type",r.Context)],a.prototype,"context",void 0),d([r.Autowired("loggerFactory"),e("design:type",u.LoggerFactory)],a.prototype,"loggerFactory",void 0),d([r.Autowired("rowModel"),e("design:type",Object)],a.prototype,"rowModel",void 0),d([r.Autowired("focusedCellController"),e("design:type",v.FocusedCellController)],a.prototype,"focusedCellController",void 0),d([r.Optional("rangeController"),e("design:type",Object)],a.prototype,"rangeController",void 0),d([r.Autowired("cellNavigationService"),e("design:type",w.CellNavigationService)],a.prototype,"cellNavigationService",void 0),d([f(0,r.Qualifier("loggerFactory")),e("design:type",Function),e("design:paramtypes",[u.LoggerFactory]),e("design:returntype",void 0)],a.prototype,"agWire",null),d([r.PostConstruct,e("design:type",Function),e("design:paramtypes",[]),e("design:returntype",void 0)],a.prototype,"init",null),d([r.PreDestroy,e("design:type",Function),e("design:paramtypes",[]),e("design:returntype",void 0)],a.prototype,"destroy",null),a=d([r.Bean("rowRenderer"),e("design:paramtypes",[])],a)}();b.RowRenderer=y},function(a,b,c){var d=this&&this.__decorate||function(a,b,c,d){var g,e=arguments.length,f=e<3?b:null===d?d=Object.getOwnPropertyDescriptor(b,c):d;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)f=Reflect.decorate(a,b,c,d);else for(var h=a.length-1;h>=0;h--)(g=a[h])&&(f=(e<3?g(f):e>3?g(b,c,f):g(b,c))||f);return e>3&&f&&Object.defineProperty(b,c,f),f},e=this&&this.__metadata||function(a,b){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(a,b)},f=this&&this.__param||function(a,b){return function(c,d){b(c,d,a)}},g=c(9),h=c(27),i=c(5),j=c(15),k=c(25),l=c(28),m=c(32),n=c(7),o=c(8),p=c(6),q=c(12),r=c(33),s=c(10),t=c(30),u=c(14),v=c(34),w=c(37),x='<div><div class="ag-header"><div class="ag-pinned-left-header"></div><div class="ag-pinned-right-header"></div><div class="ag-header-viewport"><div class="ag-header-container"></div></div><div class="ag-header-overlay"></div></div><div class="ag-floating-top"><div class="ag-pinned-left-floating-top"></div><div class="ag-pinned-right-floating-top"></div><div class="ag-floating-top-viewport"><div class="ag-floating-top-container"></div></div><div class="ag-floating-top-full-width-container"></div></div><div class="ag-floating-bottom"><div class="ag-pinned-left-floating-bottom"></div><div class="ag-pinned-right-floating-bottom"></div><div class="ag-floating-bottom-viewport"><div class="ag-floating-bottom-container"></div></div><div class="ag-floating-bottom-full-width-container"></div></div><div class="ag-body"><div class="ag-pinned-left-cols-viewport"><div class="ag-pinned-left-cols-container"></div></div><div class="ag-pinned-right-cols-viewport"><div class="ag-pinned-right-cols-container"></div></div><div class="ag-body-viewport-wrapper"><div class="ag-body-viewport"><div class="ag-body-container"></div></div></div><div class="ag-full-width-viewport"><div class="ag-full-width-container"></div></div></div></div>',y='<div><div class="ag-header-container"></div><div class="ag-floating-top-container"></div><div class="ag-body-container"></div><div class="ag-floating-bottom-container"></div></div>',z='<div class="ag-overlay-panel"><div class="ag-overlay-wrapper ag-overlay-[OVERLAY_NAME]-wrapper">[OVERLAY_TEMPLATE]</div></div>',A='<span class="ag-overlay-loading-center">[LOADING...]</span>',B='<span class="ag-overlay-no-rows-center">[NO_ROWS_TO_SHOW]</span>',C=function(){function a(){this.requestAnimationFrameExists="function"==typeof requestAnimationFrame,this.scrollLagCounter=0,this.scrollLagTicking=!1,this.lastLeftPosition=-1,this.lastTopPosition=-1,this.animationThreadCount=0,this.destroyFunctions=[]}return a.prototype.agWire=function(a){this.forPrint=this.gridOptionsWrapper.isForPrint(),this.setScrollBarWidth(),this.logger=a.create("GridPanel"),this.findElements()},a.prototype.setScrollBarWidth=function(){var a=this.gridOptionsWrapper.getScrollbarWidth();("number"!=typeof a||a<0)&&(a=g.Utils.getScrollbarWidth()),this.scrollWidth=a},a.prototype.destroy=function(){this.destroyFunctions.forEach(function(a){return a()})},a.prototype.onRowDataChanged=function(){this.rowModel.isEmpty()&&!this.gridOptionsWrapper.isSuppressNoRowsOverlay()?this.showNoRowsOverlay():this.hideOverlay()},a.prototype.getLayout=function(){return this.layout},a.prototype.init=function(){this.addEventListeners(),this.addDragListeners(),this.useScrollLag=this.isUseScrollLag(),this.layout=new m.BorderLayout({overlays:{loading:g.Utils.loadTemplate(this.createLoadingOverlayTemplate()),noRows:g.Utils.loadTemplate(this.createNoRowsOverlayTemplate())},center:this.eRoot,dontFill:this.forPrint,name:"eGridPanel"}),this.layout.addSizeChangeListener(this.sizeHeaderAndBody.bind(this)),this.addScrollListener(),this.setLeftAndRightBounds(),this.gridOptionsWrapper.isSuppressHorizontalScroll()&&(this.eBodyViewport.style.overflowX="hidden"),this.gridOptionsWrapper.isRowModelDefault()&&!this.gridOptionsWrapper.getRowData()&&this.showLoadingOverlay(),this.setWidthsOfContainers(),this.showPinnedColContainersIfNeeded(),this.sizeHeaderAndBody(),this.disableBrowserDragging(),this.addShortcutKeyListeners(),this.addMouseEvents(),this.addKeyboardEvents(),this.addBodyViewportListener(),this.$scope&&this.addAngularApplyCheck()},a.prototype.addAngularApplyCheck=function(){
var a=this,b=!1,c=function(){b||(b=!0,setTimeout(function(){b=!1,a.$scope.$apply()},0))};this.eventService.addEventListener(q.Events.EVENT_DISPLAYED_COLUMNS_CHANGED,c),this.eventService.addEventListener(q.Events.EVENT_VIRTUAL_COLUMNS_CHANGED,c),this.destroyFunctions.push(function(){a.eventService.removeEventListener(q.Events.EVENT_DISPLAYED_COLUMNS_CHANGED,c),a.eventService.removeEventListener(q.Events.EVENT_VIRTUAL_COLUMNS_CHANGED,c)})},a.prototype.disableBrowserDragging=function(){this.eRoot.addEventListener("dragstart",function(a){if(a.target instanceof HTMLImageElement)return a.preventDefault(),!1})},a.prototype.addEventListeners=function(){var a=this,b=this.onDisplayedColumnsChanged.bind(this),c=this.onColumnResized.bind(this),d=this.sizeHeaderAndBody.bind(this),e=this.onRowDataChanged.bind(this);this.eventService.addEventListener(q.Events.EVENT_DISPLAYED_COLUMNS_CHANGED,b),this.eventService.addEventListener(q.Events.EVENT_COLUMN_RESIZED,c),this.eventService.addEventListener(q.Events.EVENT_FLOATING_ROW_DATA_CHANGED,d),this.gridOptionsWrapper.addEventListener(i.GridOptionsWrapper.PROP_HEADER_HEIGHT,d),this.eventService.addEventListener(q.Events.EVENT_ROW_DATA_CHANGED,e),this.eventService.addEventListener(q.Events.EVENT_ITEMS_ADDED,e),this.eventService.addEventListener(q.Events.EVENT_ITEMS_REMOVED,e),this.destroyFunctions.push(function(){a.eventService.removeEventListener(q.Events.EVENT_DISPLAYED_COLUMNS_CHANGED,b),a.eventService.removeEventListener(q.Events.EVENT_COLUMN_RESIZED,c),a.eventService.removeEventListener(q.Events.EVENT_FLOATING_ROW_DATA_CHANGED,d),a.gridOptionsWrapper.removeEventListener(i.GridOptionsWrapper.PROP_HEADER_HEIGHT,d),a.eventService.removeEventListener(q.Events.EVENT_ROW_DATA_CHANGED,e),a.eventService.removeEventListener(q.Events.EVENT_ITEMS_ADDED,e),a.eventService.removeEventListener(q.Events.EVENT_ITEMS_REMOVED,e)})},a.prototype.addDragListeners=function(){var a=this;if(!this.forPrint&&this.gridOptionsWrapper.isEnableRangeSelection()&&!g.Utils.missing(this.rangeController)){var b=[this.ePinnedLeftColsContainer,this.ePinnedRightColsContainer,this.eBodyContainer,this.eFloatingTop,this.eFloatingBottom];b.forEach(function(b){var c={dragStartPixels:0,eElement:b,onDragStart:a.rangeController.onDragStart.bind(a.rangeController),onDragStop:a.rangeController.onDragStop.bind(a.rangeController),onDragging:a.rangeController.onDragging.bind(a.rangeController)};a.dragService.addDragSource(c),a.destroyFunctions.push(function(){return a.dragService.removeDragSource(c)})})}},a.prototype.addMouseEvents=function(){var a=this,b=["click","mousedown","dblclick","contextmenu"];b.forEach(function(b){var c=a.processMouseEvent.bind(a,b);a.eAllCellContainers.forEach(function(d){d.addEventListener(b,c),a.destroyFunctions.push(function(){return d.removeEventListener(b,c)})})})},a.prototype.addKeyboardEvents=function(){var a=this,b=["keydown","keypress"];b.forEach(function(b){var c=a.processKeyboardEvent.bind(a,b);a.eAllCellContainers.forEach(function(d){d.addEventListener(b,c),a.destroyFunctions.push(function(){return d.removeEventListener(b,c)})})})},a.prototype.addBodyViewportListener=function(){var a=this;if(!this.gridOptionsWrapper.isForPrint()){var b=function(b){var c=g.Utils.getTarget(b);c===a.eBodyViewport&&(a.onContextMenu(b),a.preventDefaultOnContextMenu(b))};this.eBodyViewport.addEventListener("contextmenu",b),this.destroyFunctions.push(function(){return a.eBodyViewport.removeEventListener("contextmenu",b)})}},a.prototype.getCellForEvent=function(a){for(var b=this.gridOptionsWrapper.getDomDataKey(),c=g.Utils.getTarget(a);c;){var d=c[b];if(d&&d.renderedCell)return d.renderedCell;c=c.parentElement}return null},a.prototype.getRowForEvent=function(a){for(var b=this.gridOptionsWrapper.getDomDataKey(),c=g.Utils.getTarget(a);c;){var d=c[b];if(d&&d.renderedRow)return d.renderedRow;c=c.parentElement}return null},a.prototype.processKeyboardEvent=function(a,b){var c=this.getCellForEvent(b);if(c)switch(a){case"keydown":c.onKeyDown(b);break;case"keypress":c.onKeyPress(b)}},a.prototype.processMouseEvent=function(a,b){var c=this.getCellForEvent(b);c&&c.onMouseEvent(a,b);var d=this.getRowForEvent(b);d&&d.onMouseEvent(a,b),this.preventDefaultOnContextMenu(b)},a.prototype.onContextMenu=function(a){a.ctrlKey||a.metaKey||this.contextMenuFactory&&!this.gridOptionsWrapper.isSuppressContextMenu()&&(this.contextMenuFactory.showMenu(null,null,null,a),a.preventDefault())},a.prototype.preventDefaultOnContextMenu=function(a){this.gridOptionsWrapper.isSuppressMiddleClickScrolls()&&2===a.which&&a.preventDefault()},a.prototype.addShortcutKeyListeners=function(){var a=this;this.eAllCellContainers.forEach(function(b){b.addEventListener("keydown",function(b){var c=a.getCellForEvent(b);if((!c||!c.isEditing())&&(b.ctrlKey||b.metaKey))switch(b.which){case s.Constants.KEY_A:return a.onCtrlAndA(b);case s.Constants.KEY_C:return a.onCtrlAndC(b);case s.Constants.KEY_V:return a.onCtrlAndV(b);case s.Constants.KEY_D:return a.onCtrlAndD(b)}})})},a.prototype.onCtrlAndA=function(a){if(this.rangeController&&this.rowModel.isRowsToRender()){var b,c,d;c=this.floatingRowModel.isEmpty(s.Constants.FLOATING_TOP)?null:s.Constants.FLOATING_TOP,this.floatingRowModel.isEmpty(s.Constants.FLOATING_BOTTOM)?(d=null,b=this.rowModel.getRowCount()-1):(d=s.Constants.FLOATING_BOTTOM,b=this.floatingRowModel.getFloatingBottomRowData().length=1);var e=this.columnController.getAllDisplayedColumns();if(g.Utils.missingOrEmpty(e))return;this.rangeController.setRange({rowStart:0,floatingStart:c,rowEnd:b,floatingEnd:d,columnStart:e[0],columnEnd:e[e.length-1]})}return a.preventDefault(),!1},a.prototype.onCtrlAndC=function(a){if(this.clipboardService){var b=this.focusedCellController.getFocusedCell();return this.clipboardService.copyToClipboard(),a.preventDefault(),b&&this.focusedCellController.setFocusedCell(b.rowIndex,b.column,b.floating,!0),!1}},a.prototype.onCtrlAndV=function(a){if(this.rangeController)return this.clipboardService.pasteFromClipboard(),!1},a.prototype.onCtrlAndD=function(a){if(this.clipboardService)return this.clipboardService.copyRangeDown(),a.preventDefault(),!1},a.prototype.getPinnedLeftFloatingTop=function(){return this.ePinnedLeftFloatingTop},a.prototype.getPinnedRightFloatingTop=function(){return this.ePinnedRightFloatingTop},a.prototype.getFloatingTopContainer=function(){return this.eFloatingTopContainer},a.prototype.getPinnedLeftFloatingBottom=function(){return this.ePinnedLeftFloatingBottom},a.prototype.getPinnedRightFloatingBottom=function(){return this.ePinnedRightFloatingBottom},a.prototype.getFloatingBottomContainer=function(){return this.eFloatingBottomContainer},a.prototype.createOverlayTemplate=function(a,b,c){var d=z.replace("[OVERLAY_NAME]",a);return d=c?d.replace("[OVERLAY_TEMPLATE]",c):d.replace("[OVERLAY_TEMPLATE]",b)},a.prototype.createLoadingOverlayTemplate=function(){var a=this.gridOptionsWrapper.getOverlayLoadingTemplate(),b=this.createOverlayTemplate("loading",A,a),c=this.gridOptionsWrapper.getLocaleTextFunc(),d=b.replace("[LOADING...]",c("loadingOoo","Loading..."));return d},a.prototype.createNoRowsOverlayTemplate=function(){var a=this.gridOptionsWrapper.getOverlayNoRowsTemplate(),b=this.createOverlayTemplate("no-rows",B,a),c=this.gridOptionsWrapper.getLocaleTextFunc(),d=b.replace("[NO_ROWS_TO_SHOW]",c("noRowsToShow","No Rows To Show"));return d},a.prototype.ensureIndexVisible=function(a){this.logger.log("ensureIndexVisible: "+a);var b=this.rowModel.getRowCount();if("number"!=typeof a||a<0||a>=b)return void console.warn("invalid row index for ensureIndexVisible: "+a);var c=this.rowModel.getRow(a),d=c.rowTop,e=d+c.rowHeight,f=this.eBodyViewport.scrollTop,g=this.eBodyViewport.offsetHeight,h=this.isHorizontalScrollShowing();h&&(g-=this.scrollWidth);var i=f+g,j=f>d,k=i<e,l=this.columnController.isPinningRight()?this.ePinnedRightColsViewport:this.eBodyViewport;if(j)l.scrollTop=d,this.rowRenderer.drawVirtualRows();else if(k){var m=e-g;l.scrollTop=m,this.rowRenderer.drawVirtualRows()}},a.prototype.getCenterWidth=function(){return this.eBodyViewport.clientWidth},a.prototype.isHorizontalScrollShowing=function(){var a=this.eBodyViewport.clientWidth<this.eBodyViewport.scrollWidth;return a},a.prototype.isVerticalScrollShowing=function(){return this.columnController.isPinningRight()?g.Utils.isScrollShowing(this.ePinnedRightColsViewport):g.Utils.isScrollShowing(this.eBodyViewport)},a.prototype.isBodyVerticalScrollShowing=function(){return!this.columnController.isPinningRight()&&g.Utils.isScrollShowing(this.eBodyViewport)},a.prototype.periodicallyCheck=function(){this.forPrint||(this.setBottomPaddingOnPinnedRight(),this.setMarginOnFullWidthCellContainer())},a.prototype.setBottomPaddingOnPinnedRight=function(){if(!this.forPrint&&this.columnController.isPinningRight()){var a=this.eBodyViewport.clientWidth<this.eBodyViewport.scrollWidth;a?this.ePinnedRightColsContainer.style.marginBottom=this.scrollWidth+"px":this.ePinnedRightColsContainer.style.marginBottom=""}},a.prototype.setMarginOnFullWidthCellContainer=function(){this.forPrint||(this.isVerticalScrollShowing()?this.eFullWidthCellViewport.style.borderRight=this.scrollWidth+"px solid transparent":this.eFullWidthCellViewport.style.borderRight="",this.isHorizontalScrollShowing()?this.eFullWidthCellViewport.style.borderBottom=this.scrollWidth+"px solid transparent":this.eFullWidthCellViewport.style.borderBottom="")},a.prototype.ensureColumnVisible=function(a){var b=this.columnController.getGridColumn(a);if(b){if(b.isPinned())return void console.warn("calling ensureIndexVisible on a "+b.getPinned()+" pinned column doesn't make sense for column "+b.getColId());if(!this.columnController.isColumnDisplayed(b))return void console.warn("column is not currently visible");var c=b.getLeft(),d=c+b.getActualWidth(),e=this.eBodyViewport.scrollLeft,f=this.eBodyViewport.offsetWidth,g=this.eBodyViewport.clientHeight<this.eBodyViewport.scrollHeight;g&&(f-=this.scrollWidth);var h=e+f,i=e>c,j=h<d;if(i)this.eBodyViewport.scrollLeft=c;else if(j){var k=d-f;this.eBodyViewport.scrollLeft=k}this.setLeftAndRightBounds()}},a.prototype.showLoadingOverlay=function(){this.gridOptionsWrapper.isSuppressLoadingOverlay()||this.layout.showOverlay("loading")},a.prototype.showNoRowsOverlay=function(){this.gridOptionsWrapper.isSuppressNoRowsOverlay()||this.layout.showOverlay("noRows")},a.prototype.hideOverlay=function(){this.layout.hideOverlay()},a.prototype.getWidthForSizeColsToFit=function(){var a=this.eBody.clientWidth,b=this.isBodyVerticalScrollShowing();return b&&(a-=this.scrollWidth),a},a.prototype.sizeColumnsToFit=function(a){var b=this,c=this.getWidthForSizeColsToFit();c>0?this.columnController.sizeColumnsToFit(c):void 0===a?setTimeout(function(){b.sizeColumnsToFit(100)},0):100===a?setTimeout(function(){b.sizeColumnsToFit(-1)},100):console.log("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?")},a.prototype.getBodyContainer=function(){return this.eBodyContainer},a.prototype.getFullWidthCellContainer=function(){return this.eFullWidthCellContainer},a.prototype.getFloatingTopFullWidthCellContainer=function(){return this.eFloatingTopFullWidthCellContainer},a.prototype.getFloatingBottomFullWidthCellContainer=function(){return this.eFloatingBottomFullWidthCellContainer},a.prototype.getDropTargetBodyContainers=function(){return this.forPrint?[this.eBodyContainer,this.eFloatingTopContainer,this.eFloatingBottomContainer]:[this.eBodyViewport,this.eFloatingTopViewport,this.eFloatingBottomViewport]},a.prototype.getBodyViewport=function(){return this.eBodyViewport},a.prototype.getPinnedLeftColsContainer=function(){return this.ePinnedLeftColsContainer},a.prototype.getDropTargetLeftContainers=function(){return this.forPrint?[]:[this.ePinnedLeftColsViewport,this.ePinnedLeftFloatingBottom,this.ePinnedLeftFloatingTop]},a.prototype.getPinnedRightColsContainer=function(){return this.ePinnedRightColsContainer},a.prototype.getDropTargetPinnedRightContainers=function(){return this.forPrint?[]:[this.ePinnedRightColsViewport,this.ePinnedRightFloatingBottom,this.ePinnedRightFloatingTop]},a.prototype.getHeaderContainer=function(){return this.eHeaderContainer},a.prototype.getHeaderOverlay=function(){return this.eHeaderOverlay},a.prototype.getRoot=function(){return this.eRoot},a.prototype.getPinnedLeftHeader=function(){return this.ePinnedLeftHeader},a.prototype.getPinnedRightHeader=function(){return this.ePinnedRightHeader},a.prototype.queryHtmlElement=function(a){return this.eRoot.querySelector(a)},a.prototype.findElements=function(){this.forPrint?(this.eRoot=g.Utils.loadTemplate(y),g.Utils.addCssClass(this.eRoot,"ag-root"),g.Utils.addCssClass(this.eRoot,"ag-font-style"),g.Utils.addCssClass(this.eRoot,"ag-no-scrolls")):(this.eRoot=g.Utils.loadTemplate(x),g.Utils.addCssClass(this.eRoot,"ag-root"),g.Utils.addCssClass(this.eRoot,"ag-font-style"),g.Utils.addCssClass(this.eRoot,"ag-scrolls")),this.forPrint?(this.eHeaderContainer=this.queryHtmlElement(".ag-header-container"),this.eBodyContainer=this.queryHtmlElement(".ag-body-container"),this.eFloatingTopContainer=this.queryHtmlElement(".ag-floating-top-container"),this.eFloatingBottomContainer=this.queryHtmlElement(".ag-floating-bottom-container"),this.eAllCellContainers=[this.eBodyContainer,this.eFloatingTopContainer,this.eFloatingBottomContainer],this.eFullWidthCellContainer=this.eBodyContainer,this.eFloatingBottomFullWidthCellContainer=this.eFloatingBottomContainer,this.eFloatingTopFullWidthCellContainer=this.eFloatingTopContainer):(this.eBody=this.queryHtmlElement(".ag-body"),this.eBodyContainer=this.queryHtmlElement(".ag-body-container"),this.eBodyViewport=this.queryHtmlElement(".ag-body-viewport"),this.eBodyViewportWrapper=this.queryHtmlElement(".ag-body-viewport-wrapper"),this.eFullWidthCellContainer=this.queryHtmlElement(".ag-full-width-container"),this.eFullWidthCellViewport=this.queryHtmlElement(".ag-full-width-viewport"),this.ePinnedLeftColsContainer=this.queryHtmlElement(".ag-pinned-left-cols-container"),this.ePinnedRightColsContainer=this.queryHtmlElement(".ag-pinned-right-cols-container"),this.ePinnedLeftColsViewport=this.queryHtmlElement(".ag-pinned-left-cols-viewport"),this.ePinnedRightColsViewport=this.queryHtmlElement(".ag-pinned-right-cols-viewport"),this.ePinnedLeftHeader=this.queryHtmlElement(".ag-pinned-left-header"),this.ePinnedRightHeader=this.queryHtmlElement(".ag-pinned-right-header"),this.eHeader=this.queryHtmlElement(".ag-header"),this.eHeaderContainer=this.queryHtmlElement(".ag-header-container"),this.eHeaderOverlay=this.queryHtmlElement(".ag-header-overlay"),this.eHeaderViewport=this.queryHtmlElement(".ag-header-viewport"),this.eFloatingTop=this.queryHtmlElement(".ag-floating-top"),this.ePinnedLeftFloatingTop=this.queryHtmlElement(".ag-pinned-left-floating-top"),this.ePinnedRightFloatingTop=this.queryHtmlElement(".ag-pinned-right-floating-top"),this.eFloatingTopContainer=this.queryHtmlElement(".ag-floating-top-container"),this.eFloatingTopViewport=this.queryHtmlElement(".ag-floating-top-viewport"),this.eFloatingTopFullWidthCellContainer=this.queryHtmlElement(".ag-floating-top-full-width-container"),this.eFloatingBottom=this.queryHtmlElement(".ag-floating-bottom"),this.ePinnedLeftFloatingBottom=this.queryHtmlElement(".ag-pinned-left-floating-bottom"),this.ePinnedRightFloatingBottom=this.queryHtmlElement(".ag-pinned-right-floating-bottom"),this.eFloatingBottomContainer=this.queryHtmlElement(".ag-floating-bottom-container"),this.eFloatingBottomViewport=this.queryHtmlElement(".ag-floating-bottom-viewport"),this.eFloatingBottomFullWidthCellContainer=this.queryHtmlElement(".ag-floating-bottom-full-width-container"),this.eAllCellContainers=[this.ePinnedLeftColsContainer,this.ePinnedRightColsContainer,this.eBodyContainer,this.eFloatingTop,this.eFloatingBottom],this.addMouseWheelEventListeners())},a.prototype.addMouseWheelEventListeners=function(){var a=this,b=this.genericMouseWheelListener.bind(this),c=this.centerMouseWheelListener.bind(this);this.ePinnedLeftColsViewport.addEventListener("mousewheel",b),this.eBodyViewport.addEventListener("mousewheel",c),this.ePinnedLeftColsViewport.addEventListener("DOMMouseScroll",b),this.eBodyViewport.addEventListener("DOMMouseScroll",c),this.destroyFunctions.push(function(){a.ePinnedLeftColsViewport.removeEventListener("mousewheel",b),a.eBodyViewport.removeEventListener("mousewheel",c),a.ePinnedLeftColsViewport.removeEventListener("DOMMouseScroll",b),a.eBodyViewport.removeEventListener("DOMMouseScroll",c)})},a.prototype.getHeaderViewport=function(){return this.eHeaderViewport},a.prototype.centerMouseWheelListener=function(a){if(this.columnController.isPinningRight())return this.generalMouseWheelListener(a,this.ePinnedRightColsViewport)},a.prototype.genericMouseWheelListener=function(a){var b;return b=this.columnController.isPinningRight()?this.ePinnedRightColsViewport:this.eBodyViewport,this.generalMouseWheelListener(a,b)},a.prototype.generalMouseWheelListener=function(a,b){var c=g.Utils.normalizeWheel(a);if(Math.abs(c.pixelX)>Math.abs(c.pixelY)){var d=this.eBodyViewport.scrollLeft+c.pixelX;this.eBodyViewport.scrollLeft=d}else{var e=this.eBodyViewport.scrollTop+c.pixelY;b.scrollTop=e}return this.gridOptionsWrapper.isSuppressPreventDefaultOnMouseWheel()||a.preventDefault(),!1},a.prototype.onColumnResized=function(){this.setWidthsOfContainers()},a.prototype.onDisplayedColumnsChanged=function(){this.setWidthsOfContainers(),this.showPinnedColContainersIfNeeded(),this.sizeHeaderAndBody()},a.prototype.setWidthsOfContainers=function(){this.logger.log("setWidthsOfContainers()"),this.showPinnedColContainersIfNeeded();var a=this.columnController.getBodyContainerWidth()+"px";if(this.eBodyContainer.style.width=a,!this.forPrint){this.eFloatingBottomContainer.style.width=a,this.eFloatingTopContainer.style.width=a;var b=this.columnController.getPinnedLeftContainerWidth()+"px";this.ePinnedLeftColsContainer.style.width=b,this.ePinnedLeftFloatingBottom.style.width=b,this.ePinnedLeftFloatingTop.style.width=b,this.eBodyViewportWrapper.style.marginLeft=b;var c=this.columnController.getPinnedRightContainerWidth()+"px";this.ePinnedRightColsContainer.style.width=c,this.ePinnedRightFloatingBottom.style.width=c,this.ePinnedRightFloatingTop.style.width=c,this.eBodyViewportWrapper.style.marginRight=c}},a.prototype.showPinnedColContainersIfNeeded=function(){this.forPrint||(this.columnController.isPinningLeft()?(this.ePinnedLeftHeader.style.display="inline-block",this.ePinnedLeftColsViewport.style.display="inline"):(this.ePinnedLeftHeader.style.display="none",this.ePinnedLeftColsViewport.style.display="none"),this.columnController.isPinningRight()?(this.ePinnedRightHeader.style.display="inline-block",this.ePinnedRightColsViewport.style.display="inline",this.eBodyViewport.style.overflowY="hidden"):(this.ePinnedRightHeader.style.display="none",this.ePinnedRightColsViewport.style.display="none",this.eBodyViewport.style.overflowY="auto"))},a.prototype.sizeHeaderAndBody=function(){if(!this.forPrint){this.setLeftAndRightBounds();var a=this.layout.getCentreHeight();if(a){var b=this.gridOptionsWrapper.getHeaderHeight(),c=this.columnController.getHeaderRowCount(),d=b*c;this.eHeader.style.height=d+"px";var e=this.floatingRowModel.getFloatingTopTotalHeight(),f=d+e,g=this.floatingRowModel.getFloatingBottomTotalHeight(),h=a-g,i=a-d-g-e;this.eBody.style.top=f+"px",this.eBody.style.height=i+"px",this.eFloatingTop.style.top=d+"px",this.eFloatingTop.style.height=e+"px",this.eFloatingBottom.style.height=g+"px",this.eFloatingBottom.style.top=h+"px",this.ePinnedLeftColsViewport.style.height=i+"px",this.ePinnedRightColsViewport.style.height=i+"px"}}},a.prototype.setHorizontalScrollPosition=function(a){this.eBodyViewport.scrollLeft=a},a.prototype.scrollHorizontally=function(a){var b=this.eBodyViewport.scrollLeft;this.setHorizontalScrollPosition(b+a);var c=this.eBodyViewport.scrollLeft;return c-b},a.prototype.getHorizontalScrollPosition=function(){return this.forPrint?0:this.eBodyViewport.scrollLeft},a.prototype.turnOnAnimationForABit=function(){var a=this;if(!this.gridOptionsWrapper.isSuppressColumnMoveAnimation()){this.animationThreadCount++;var b=this.animationThreadCount;g.Utils.addCssClass(this.eRoot,"ag-column-moving"),setTimeout(function(){a.animationThreadCount===b&&g.Utils.removeCssClass(a.eRoot,"ag-column-moving")},300)}},a.prototype.addScrollListener=function(){function c(){var a=b.eBodyViewport.scrollLeft;if(a!==b.lastLeftPosition&&(b.lastLeftPosition=a,b.horizontallyScrollHeaderCenterAndFloatingCenter(),b.masterSlaveService.fireHorizontalScrollEvent(a),b.setLeftAndRightBounds()),!b.columnController.isPinningRight()){var c=b.eBodyViewport.scrollTop;c!==b.lastTopPosition&&(b.lastTopPosition=c,b.verticallyScrollLeftPinned(c),b.verticallyScrollFullWidthCellContainer(c),b.rowRenderer.drawVirtualRows())}}function d(){var a=b.ePinnedRightColsViewport.scrollTop;a!==b.lastTopPosition&&(b.lastTopPosition=a,b.verticallyScrollLeftPinned(a),b.verticallyScrollFullWidthCellContainer(a),b.verticallyScrollBody(a),b.rowRenderer.drawVirtualRows())}var a=this;if(!this.forPrint){var b=this,e=this.useScrollLag?this.debounce.bind(this,c):c,f=this.useScrollLag?this.debounce.bind(this,d):d;this.eBodyViewport.addEventListener("scroll",e),this.ePinnedRightColsViewport.addEventListener("scroll",f),this.destroyFunctions.push(function(){a.eBodyViewport.removeEventListener("scroll",e),a.ePinnedRightColsViewport.removeEventListener("scroll",f)});var g=function(){a.ePinnedLeftColsViewport.scrollTop=0};this.ePinnedLeftColsViewport.addEventListener("scroll",g),this.destroyFunctions.push(function(){a.ePinnedLeftColsViewport.removeEventListener("scroll",g)}),this.addIEPinFix(d)}},a.prototype.addIEPinFix=function(a){var b=this,c=function(){b.columnController.isPinningRight()&&setTimeout(function(){a()},0)};this.eventService.addEventListener(q.Events.EVENT_MODEL_UPDATED,c),this.destroyFunctions.push(function(){return b.eventService.removeEventListener(q.Events.EVENT_MODEL_UPDATED,c)})},a.prototype.setLeftAndRightBounds=function(){if(!this.gridOptionsWrapper.isForPrint()){var a=this.eBodyViewport.scrollLeft,b=this.eBody.offsetWidth;this.columnController.setWidthAndScrollPosition(b,a)}},a.prototype.isUseScrollLag=function(){return!this.gridOptionsWrapper.isSuppressScrollLag()&&(this.gridOptionsWrapper.getIsScrollLag()?this.gridOptionsWrapper.getIsScrollLag()():g.Utils.isBrowserIE()||g.Utils.isBrowserSafari())},a.prototype.debounce=function(a){var b=this;if(this.requestAnimationFrameExists&&g.Utils.isBrowserSafari())this.scrollLagTicking||(this.scrollLagTicking=!0,requestAnimationFrame(function(){a(),b.scrollLagTicking=!1}));else{this.scrollLagCounter++;var c=this.scrollLagCounter;setTimeout(function(){b.scrollLagCounter===c&&a()},50)}},a.prototype.horizontallyScrollHeaderCenterAndFloatingCenter=function(){var a=this.eBodyViewport.scrollLeft;this.eHeaderContainer.style.left=-a+"px",this.eFloatingBottomContainer.style.left=-a+"px",this.eFloatingTopContainer.style.left=-a+"px"},a.prototype.verticallyScrollLeftPinned=function(a){this.ePinnedLeftColsContainer.style.top=-a+"px"},a.prototype.verticallyScrollFullWidthCellContainer=function(a){this.eFullWidthCellContainer.style.top=-a+"px"},a.prototype.verticallyScrollBody=function(a){this.eBodyViewport.scrollTop=a},a.prototype.getVerticalScrollPosition=function(){return this.forPrint?0:this.eBodyViewport.scrollTop},a.prototype.getBodyViewportClientRect=function(){return this.forPrint?this.eBodyContainer.getBoundingClientRect():this.eBodyViewport.getBoundingClientRect()},a.prototype.getFloatingTopClientRect=function(){return this.forPrint?this.eFloatingTopContainer.getBoundingClientRect():this.eFloatingTop.getBoundingClientRect()},a.prototype.getFloatingBottomClientRect=function(){return this.forPrint?this.eFloatingBottomContainer.getBoundingClientRect():this.eFloatingBottom.getBoundingClientRect()},a.prototype.getPinnedLeftColsViewportClientRect=function(){return this.ePinnedLeftColsViewport.getBoundingClientRect()},a.prototype.getPinnedRightColsViewportClientRect=function(){return this.ePinnedRightColsViewport.getBoundingClientRect()},a.prototype.addScrollEventListener=function(a){this.eBodyViewport.addEventListener("scroll",a)},a.prototype.removeScrollEventListener=function(a){this.eBodyViewport.removeEventListener("scroll",a)},d([o.Autowired("masterSlaveService"),e("design:type",h.MasterSlaveService)],a.prototype,"masterSlaveService",void 0),d([o.Autowired("gridOptionsWrapper"),e("design:type",i.GridOptionsWrapper)],a.prototype,"gridOptionsWrapper",void 0),d([o.Autowired("columnController"),e("design:type",j.ColumnController)],a.prototype,"columnController",void 0),d([o.Autowired("rowRenderer"),e("design:type",k.RowRenderer)],a.prototype,"rowRenderer",void 0),d([o.Autowired("floatingRowModel"),e("design:type",l.FloatingRowModel)],a.prototype,"floatingRowModel",void 0),d([o.Autowired("eventService"),e("design:type",p.EventService)],a.prototype,"eventService",void 0),d([o.Autowired("rowModel"),e("design:type",Object)],a.prototype,"rowModel",void 0),d([o.Optional("rangeController"),e("design:type",Object)],a.prototype,"rangeController",void 0),d([o.Autowired("dragService"),e("design:type",r.DragService)],a.prototype,"dragService",void 0),d([o.Autowired("selectionController"),e("design:type",t.SelectionController)],a.prototype,"selectionController",void 0),d([o.Optional("clipboardService"),e("design:type",Object)],a.prototype,"clipboardService",void 0),d([o.Autowired("csvCreator"),e("design:type",u.CsvCreator)],a.prototype,"csvCreator",void 0),d([o.Autowired("mouseEventService"),e("design:type",v.MouseEventService)],a.prototype,"mouseEventService",void 0),d([o.Autowired("focusedCellController"),e("design:type",w.FocusedCellController)],a.prototype,"focusedCellController",void 0),d([o.Autowired("$scope"),e("design:type",Object)],a.prototype,"$scope",void 0),d([o.Optional("contextMenuFactory"),e("design:type",Object)],a.prototype,"contextMenuFactory",void 0),d([f(0,o.Qualifier("loggerFactory")),e("design:type",Function),e("design:paramtypes",[n.LoggerFactory]),e("design:returntype",void 0)],a.prototype,"agWire",null),d([o.PreDestroy,e("design:type",Function),e("design:paramtypes",[]),e("design:returntype",void 0)],a.prototype,"destroy",null),d([o.PostConstruct,e("design:type",Function),e("design:paramtypes",[]),e("design:returntype",void 0)],a.prototype,"init",null),a=d([o.Bean("gridPanel"),e("design:paramtypes",[])],a)}();b.GridPanel=C},function(a,b,c){var d=this&&this.__decorate||function(a,b,c,d){var g,e=arguments.length,f=e<3?b:null===d?d=Object.getOwnPropertyDescriptor(b,c):d;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)f=Reflect.decorate(a,b,c,d);else for(var h=a.length-1;h>=0;h--)(g=a[h])&&(f=(e<3?g(f):e>3?g(b,c,f):g(b,c))||f);return e>3&&f&&Object.defineProperty(b,c,f),f},e=this&&this.__metadata||function(a,b){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(a,b)},f=this&&this.__param||function(a,b){return function(c,d){b(c,d,a)}},g=c(5),h=c(15),i=c(26),j=c(6),k=c(7),l=c(12),m=c(8),n=c(8),o=c(8),p=c(8),q=function(){function a(){this.consuming=!1}return a.prototype.setBeans=function(a){this.logger=a.create("MasterSlaveService")},a.prototype.init=function(){this.eventService.addEventListener(l.Events.EVENT_COLUMN_MOVED,this.fireColumnEvent.bind(this)),this.eventService.addEventListener(l.Events.EVENT_COLUMN_VISIBLE,this.fireColumnEvent.bind(this)),this.eventService.addEventListener(l.Events.EVENT_COLUMN_PINNED,this.fireColumnEvent.bind(this)),this.eventService.addEventListener(l.Events.EVENT_COLUMN_GROUP_OPENED,this.fireColumnEvent.bind(this)),this.eventService.addEventListener(l.Events.EVENT_COLUMN_RESIZED,this.fireColumnEvent.bind(this))},a.prototype.fireEvent=function(a){if(!this.consuming){var b=this.gridOptionsWrapper.getSlaveGrids();b&&b.forEach(function(b){if(b.api){var c=b.api.__getMasterSlaveService();a(c)}})}},a.prototype.onEvent=function(a){this.consuming=!0,a(),this.consuming=!1},a.prototype.fireColumnEvent=function(a){this.fireEvent(function(b){b.onColumnEvent(a)})},a.prototype.fireHorizontalScrollEvent=function(a){this.fireEvent(function(b){b.onScrollEvent(a)})},a.prototype.onScrollEvent=function(a){var b=this;this.onEvent(function(){b.gridPanel.setHorizontalScrollPosition(a)})},a.prototype.getMasterColumns=function(a){var b=[];return a.getColumn()&&b.push(a.getColumn()),a.getColumns()&&a.getColumns().forEach(function(a){b.push(a)}),b},a.prototype.getColumnIds=function(a){var b=[];return a.getColumn()?b.push(a.getColumn().getColId()):a.getColumns()&&a.getColumns().forEach(function(a){b.push(a.getColId())}),b},a.prototype.onColumnEvent=function(a){var b=this;this.onEvent(function(){var d,c=a.getColumn();if(c&&(d=b.columnController.getPrimaryColumn(c.getColId())),!c||d){var f,e=a.getColumnGroup();if(e){var g=e.getGroupId(),h=e.getInstanceId();f=b.columnController.getColumnGroup(g,h)}if(!e||f){var i=b.getColumnIds(a),j=b.getMasterColumns(a);switch(a.getType()){case l.Events.EVENT_COLUMN_PIVOT_CHANGED:console.warn("ag-Grid: pivoting is not supported with Master / Slave grids. You can only use one of these features at a time in a grid.");break;case l.Events.EVENT_COLUMN_MOVED:b.logger.log("onColumnEvent-> processing "+a+" toIndex = "+a.getToIndex()),b.columnController.moveColumns(i,a.getToIndex());break;case l.Events.EVENT_COLUMN_VISIBLE:b.logger.log("onColumnEvent-> processing "+a+" visible = "+a.isVisible()),b.columnController.setColumnsVisible(i,a.isVisible());break;case l.Events.EVENT_COLUMN_PINNED:b.logger.log("onColumnEvent-> processing "+a+" pinned = "+a.getPinned()),b.columnController.setColumnsPinned(i,a.getPinned());break;case l.Events.EVENT_COLUMN_GROUP_OPENED:b.logger.log("onColumnEvent-> processing "+a+" expanded = "+e.isExpanded()),b.columnController.setColumnGroupOpened(f,e.isExpanded());break;case l.Events.EVENT_COLUMN_RESIZED:j.forEach(function(c){b.logger.log("onColumnEvent-> processing "+a+" actualWidth = "+c.getActualWidth()),b.columnController.setColumnWidth(c.getColId(),c.getActualWidth(),a.isFinished())})}}}})},d([o.Autowired("gridOptionsWrapper"),e("design:type",g.GridOptionsWrapper)],a.prototype,"gridOptionsWrapper",void 0),d([o.Autowired("columnController"),e("design:type",h.ColumnController)],a.prototype,"columnController",void 0),d([o.Autowired("gridPanel"),e("design:type",i.GridPanel)],a.prototype,"gridPanel",void 0),d([o.Autowired("eventService"),e("design:type",j.EventService)],a.prototype,"eventService",void 0),d([f(0,n.Qualifier("loggerFactory")),e("design:type",Function),e("design:paramtypes",[k.LoggerFactory]),e("design:returntype",void 0)],a.prototype,"setBeans",null),d([p.PostConstruct,e("design:type",Function),e("design:paramtypes",[]),e("design:returntype",void 0)],a.prototype,"init",null),a=d([m.Bean("masterSlaveService"),e("design:paramtypes",[])],a)}();b.MasterSlaveService=q},function(a,b,c){var d=this&&this.__decorate||function(a,b,c,d){var g,e=arguments.length,f=e<3?b:null===d?d=Object.getOwnPropertyDescriptor(b,c):d;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)f=Reflect.decorate(a,b,c,d);else for(var h=a.length-1;h>=0;h--)(g=a[h])&&(f=(e<3?g(f):e>3?g(b,c,f):g(b,c))||f);return e>3&&f&&Object.defineProperty(b,c,f),f},e=this&&this.__metadata||function(a,b){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(a,b)},f=c(5),g=c(29),h=c(8),i=c(6),j=c(8),k=c(12),l=c(8),m=c(10),n=c(9),o=function(){function a(){}return a.prototype.init=function(){this.setFloatingTopRowData(this.gridOptionsWrapper.getFloatingTopRowData()),this.setFloatingBottomRowData(this.gridOptionsWrapper.getFloatingBottomRowData())},a.prototype.isEmpty=function(a){var b=a===m.Constants.FLOATING_TOP?this.floatingTopRows:this.floatingBottomRows;return n.Utils.missingOrEmpty(b)},a.prototype.isRowsToRender=function(a){return!this.isEmpty(a)},a.prototype.getRowAtPixel=function(a,b){
var c=b===m.Constants.FLOATING_TOP?this.floatingTopRows:this.floatingBottomRows;if(n.Utils.missingOrEmpty(c))return 0;for(var d=0;d<c.length;d++){var e=c[d],f=e.rowTop+e.rowHeight-1;if(f>=a)return d}return c.length-1},a.prototype.setFloatingTopRowData=function(a){this.floatingTopRows=this.createNodesFromData(a,!0),this.eventService.dispatchEvent(k.Events.EVENT_FLOATING_ROW_DATA_CHANGED)},a.prototype.setFloatingBottomRowData=function(a){this.floatingBottomRows=this.createNodesFromData(a,!1),this.eventService.dispatchEvent(k.Events.EVENT_FLOATING_ROW_DATA_CHANGED)},a.prototype.createNodesFromData=function(a,b){var c=this,d=[];if(a){var e=0;a.forEach(function(a){var f=new g.RowNode;c.context.wireBean(f),f.data=a,f.floating=b?m.Constants.FLOATING_TOP:m.Constants.FLOATING_BOTTOM,f.rowTop=e,f.rowHeight=c.gridOptionsWrapper.getRowHeightForNode(f),e+=f.rowHeight,d.push(f)})}return d},a.prototype.getFloatingTopRowData=function(){return this.floatingTopRows},a.prototype.getFloatingBottomRowData=function(){return this.floatingBottomRows},a.prototype.getFloatingTopTotalHeight=function(){return this.getTotalHeight(this.floatingTopRows)},a.prototype.getFloatingTopRowCount=function(){return this.floatingTopRows?this.floatingTopRows.length:0},a.prototype.getFloatingBottomRowCount=function(){return this.floatingBottomRows?this.floatingBottomRows.length:0},a.prototype.getFloatingTopRow=function(a){return this.floatingTopRows[a]},a.prototype.getFloatingBottomRow=function(a){return this.floatingBottomRows[a]},a.prototype.forEachFloatingTopRow=function(a){n.Utils.missingOrEmpty(this.floatingTopRows)||this.floatingTopRows.forEach(a)},a.prototype.forEachFloatingBottomRow=function(a){n.Utils.missingOrEmpty(this.floatingBottomRows)||this.floatingBottomRows.forEach(a)},a.prototype.getFloatingBottomTotalHeight=function(){return this.getTotalHeight(this.floatingBottomRows)},a.prototype.getTotalHeight=function(a){if(a&&0!==a.length){var b=a[a.length-1];return b.rowTop+b.rowHeight}return 0},d([j.Autowired("gridOptionsWrapper"),e("design:type",f.GridOptionsWrapper)],a.prototype,"gridOptionsWrapper",void 0),d([j.Autowired("eventService"),e("design:type",i.EventService)],a.prototype,"eventService",void 0),d([j.Autowired("context"),e("design:type",h.Context)],a.prototype,"context",void 0),d([l.PostConstruct,e("design:type",Function),e("design:paramtypes",[]),e("design:returntype",void 0)],a.prototype,"init",null),a=d([h.Bean("floatingRowModel"),e("design:paramtypes",[])],a)}();b.FloatingRowModel=o},function(a,b,c){var d=this&&this.__decorate||function(a,b,c,d){var g,e=arguments.length,f=e<3?b:null===d?d=Object.getOwnPropertyDescriptor(b,c):d;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)f=Reflect.decorate(a,b,c,d);else for(var h=a.length-1;h>=0;h--)(g=a[h])&&(f=(e<3?g(f):e>3?g(b,c,f):g(b,c))||f);return e>3&&f&&Object.defineProperty(b,c,f),f},e=this&&this.__metadata||function(a,b){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(a,b)},f=c(6),g=c(12),h=c(5),i=c(30),j=c(31),k=c(15),l=c(8),m=c(10),n=function(){function a(){this.childrenMapped={},this.selected=!1}return a.prototype.setData=function(b){var c=this.data;this.data=b;var d={oldData:c,newData:b};this.dispatchLocalEvent(a.EVENT_DATA_CHANGED,d)},a.prototype.setDataAndId=function(b,c){var d=this.data;this.data=b,this.setId(c),this.selectionController.syncInRowNode(this);var e={oldData:d,newData:b};this.dispatchLocalEvent(a.EVENT_DATA_CHANGED,e)},a.prototype.setId=function(a){var b=this.gridOptionsWrapper.getRowNodeIdFunc();b?this.data?this.id=b(this.data):this.id=void 0:this.id=a},a.prototype.dispatchLocalEvent=function(a,b){this.eventService&&this.eventService.dispatchEvent(a,b)},a.prototype.setDataValue=function(b,c){var d=this.columnController.getGridColumn(b);this.valueService.setValue(this,d,c);var e={column:d,newValue:c};this.dispatchLocalEvent(a.EVENT_CELL_CHANGED,e)},a.prototype.resetQuickFilterAggregateText=function(){this.quickFilterAggregateText=null},a.prototype.isExpandable=function(){return this.group||this.canFlower},a.prototype.isSelected=function(){return this.footer?this.sibling.isSelected():this.selected},a.prototype.depthFirstSearch=function(a){this.childrenAfterGroup&&this.childrenAfterGroup.forEach(function(b){return b.depthFirstSearch(a)}),a(this)},a.prototype.calculateSelectedFromChildren=function(){var d,a=!1,b=!1,c=!1;if(this.childrenAfterGroup)for(var e=0;e<this.childrenAfterGroup.length;e++){var f=this.childrenAfterGroup[e].isSelected();switch(f){case!0:a=!0;break;case!1:b=!0;break;default:c=!0}}d=c?void 0:!(!a||b)||!(!a&&b)&&void 0,this.selectThisNode(d)},a.prototype.calculateSelectedFromChildrenBubbleUp=function(){this.calculateSelectedFromChildren(),this.parent&&this.parent.calculateSelectedFromChildrenBubbleUp()},a.prototype.setSelectedInitialValue=function(a){this.selected=a},a.prototype.setSelected=function(a,b,c){void 0===b&&(b=!1),void 0===c&&(c=!1),this.setSelectedParams({newValue:a,clearSelection:b,tailingNodeInSequence:c,rangeSelect:!1})},a.prototype.setSelectedParams=function(a){var b=a.newValue===!0,c=a.clearSelection===!0,d=a.tailingNodeInSequence===!0,e=a.rangeSelect===!0;if(void 0===this.id)return void console.warn("ag-Grid: cannot select node until id for node is known");if(this.floating)return void console.log("ag-Grid: cannot select floating rows");if(this.footer)return void this.sibling.setSelectedParams(a);if(e){var f=this.rowModel.getType()===m.Constants.ROW_MODEL_TYPE_NORMAL,h=this.selectionController.getLastSelectedNode()!==this,i=this.gridOptionsWrapper.isRowSelectionMulti();if(f&&h&&i)return void this.doRowRangeSelection()}this.selectThisNode(b);var j=this.gridOptionsWrapper.isGroupSelectsChildren();j&&this.group&&this.selectChildNodes(b);var k=!d;k&&(!b||!c&&this.gridOptionsWrapper.isRowSelectionMulti()||this.selectionController.clearOtherNodes(this),j&&this.parent&&this.parent.calculateSelectedFromChildrenBubbleUp(),this.mainEventService.dispatchEvent(g.Events.EVENT_SELECTION_CHANGED),b&&this.selectionController.setLastSelectedNode(this))},a.prototype.doRowRangeSelection=function(){var e,a=this,b=this.selectionController.getLastSelectedNode(),c=!b,d=!1,f=this.gridOptionsWrapper.isGroupSelectsChildren(),h=this.rowModel;h.forEachNodeAfterFilterAndSort(function(g){var h=c&&!d;c||g!==b&&g!==a||(c=!0);var i=g.group&&f;if(!i){var j=c&&!d,k=g.isParentOfNode(e);g.selectThisNode(j||k)}h&&(g!==b&&g!==a||(d=!0,e=g===b?b:a))}),f&&this.calculatedSelectedForAllGroupNodes(),this.mainEventService.dispatchEvent(g.Events.EVENT_SELECTION_CHANGED)},a.prototype.isParentOfNode=function(a){for(var b=this.parent;b;){if(b===a)return!0;b=b.parent}return!1},a.prototype.calculatedSelectedForAllGroupNodes=function(){var a=this.rowModel;a.getTopLevelNodes().forEach(function(a){a.group&&(a.depthFirstSearch(function(a){a.group&&a.calculateSelectedFromChildren()}),a.calculateSelectedFromChildren())})},a.prototype.selectThisNode=function(b){if(this.selected!==b){this.selected=b,this.eventService&&this.dispatchLocalEvent(a.EVENT_ROW_SELECTED);var c={node:this};this.mainEventService.dispatchEvent(g.Events.EVENT_ROW_SELECTED,c)}},a.prototype.selectChildNodes=function(a){for(var b=0;b<this.childrenAfterGroup.length;b++)this.childrenAfterGroup[b].setSelectedParams({newValue:a,clearSelection:!1,tailingNodeInSequence:!0})},a.prototype.addEventListener=function(a,b){this.eventService||(this.eventService=new f.EventService),this.eventService.addEventListener(a,b)},a.prototype.removeEventListener=function(a,b){this.eventService.removeEventListener(a,b)},a.prototype.onMouseEnter=function(){this.dispatchLocalEvent(a.EVENT_MOUSE_ENTER)},a.prototype.onMouseLeave=function(){this.dispatchLocalEvent(a.EVENT_MOUSE_LEAVE)},a.EVENT_ROW_SELECTED="rowSelected",a.EVENT_DATA_CHANGED="dataChanged",a.EVENT_CELL_CHANGED="cellChanged",a.EVENT_MOUSE_ENTER="mouseEnter",a.EVENT_MOUSE_LEAVE="mouseLeave",d([l.Autowired("eventService"),e("design:type",f.EventService)],a.prototype,"mainEventService",void 0),d([l.Autowired("gridOptionsWrapper"),e("design:type",h.GridOptionsWrapper)],a.prototype,"gridOptionsWrapper",void 0),d([l.Autowired("selectionController"),e("design:type",i.SelectionController)],a.prototype,"selectionController",void 0),d([l.Autowired("columnController"),e("design:type",k.ColumnController)],a.prototype,"columnController",void 0),d([l.Autowired("valueService"),e("design:type",j.ValueService)],a.prototype,"valueService",void 0),d([l.Autowired("rowModel"),e("design:type",Object)],a.prototype,"rowModel",void 0),a}();b.RowNode=n},function(a,b,c){var d=this&&this.__decorate||function(a,b,c,d){var g,e=arguments.length,f=e<3?b:null===d?d=Object.getOwnPropertyDescriptor(b,c):d;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)f=Reflect.decorate(a,b,c,d);else for(var h=a.length-1;h>=0;h--)(g=a[h])&&(f=(e<3?g(f):e>3?g(b,c,f):g(b,c))||f);return e>3&&f&&Object.defineProperty(b,c,f),f},e=this&&this.__metadata||function(a,b){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(a,b)},f=this&&this.__param||function(a,b){return function(c,d){b(c,d,a)}},g=c(9),h=c(8),i=c(8),j=c(7),k=c(6),l=c(12),m=c(8),n=c(5),o=c(8),p=c(10),q=function(){function a(){}return a.prototype.setBeans=function(a){this.logger=a.create("SelectionController"),this.reset(),this.gridOptionsWrapper.isRowModelDefault()?this.eventService.addEventListener(l.Events.EVENT_ROW_DATA_CHANGED,this.reset.bind(this)):this.logger.log("dont know what to do here")},a.prototype.init=function(){this.groupSelectsChildren=this.gridOptionsWrapper.isGroupSelectsChildren(),this.eventService.addEventListener(l.Events.EVENT_ROW_SELECTED,this.onRowSelected.bind(this))},a.prototype.setLastSelectedNode=function(a){this.lastSelectedNode=a},a.prototype.getLastSelectedNode=function(){return this.lastSelectedNode},a.prototype.getSelectedNodes=function(){var a=[];return g.Utils.iterateObject(this.selectedNodes,function(b,c){c&&a.push(c)}),a},a.prototype.getSelectedRows=function(){var a=[];return g.Utils.iterateObject(this.selectedNodes,function(b,c){c&&a.push(c.data)}),a},a.prototype.removeGroupsFromSelection=function(){var a=this;g.Utils.iterateObject(this.selectedNodes,function(b,c){c&&c.group&&(a.selectedNodes[c.id]=void 0)})},a.prototype.updateGroupsFromChildrenSelections=function(){this.rowModel.getType()!==p.Constants.ROW_MODEL_TYPE_NORMAL&&console.warn("updateGroupsFromChildrenSelections not available when rowModel is not normal");var a=this.rowModel;a.getTopLevelNodes().forEach(function(a){a.depthFirstSearch(function(a){a.group&&a.calculateSelectedFromChildren()})})},a.prototype.getNodeForIdIfSelected=function(a){return this.selectedNodes[a]},a.prototype.clearOtherNodes=function(a){var b=this,c={};g.Utils.iterateObject(this.selectedNodes,function(d,e){e&&e.id!==a.id&&(b.selectedNodes[e.id].setSelectedParams({newValue:!1,clearSelection:!1,tailingNodeInSequence:!0}),b.groupSelectsChildren&&e.parent&&(c[e.parent.id]=e.parent))}),g.Utils.iterateObject(c,function(a,b){b.calculateSelectedFromChildren()})},a.prototype.onRowSelected=function(a){var b=a.node;this.groupSelectsChildren&&b.group||(b.isSelected()?this.selectedNodes[b.id]=b:this.selectedNodes[b.id]=void 0)},a.prototype.syncInRowNode=function(a){void 0!==this.selectedNodes[a.id]?(a.setSelectedInitialValue(!0),this.selectedNodes[a.id]=a):a.setSelectedInitialValue(!1)},a.prototype.reset=function(){this.logger.log("reset"),this.selectedNodes={},this.lastSelectedNode=null},a.prototype.getBestCostNodeSelection=function(){function d(a){for(var b=0,e=a.length;b<e;b++){var f=a[b];f.isSelected()?c.push(f):f.group&&f.children&&d(f.children)}}this.rowModel.getType()!==p.Constants.ROW_MODEL_TYPE_NORMAL&&console.warn("getBestCostNodeSelection is only avilable when using normal row model");var a=this.rowModel,b=a.getTopLevelNodes();if(null===b)return void console.warn("selectAll not available doing rowModel=virtual");var c=[];return d(b),c},a.prototype.setRowModel=function(a){this.rowModel=a},a.prototype.isEmpty=function(){var a=0;return g.Utils.iterateObject(this.selectedNodes,function(b,c){c&&a++}),0===a},a.prototype.deselectAllRowNodes=function(){g.Utils.iterateObject(this.selectedNodes,function(a,b){b&&b.selectThisNode(!1)}),this.rowModel.getType()===p.Constants.ROW_MODEL_TYPE_NORMAL&&this.groupSelectsChildren&&this.updateGroupsFromChildrenSelections(),this.selectedNodes={},this.eventService.dispatchEvent(l.Events.EVENT_SELECTION_CHANGED)},a.prototype.selectAllRowNodes=function(){if(this.rowModel.getType()!==p.Constants.ROW_MODEL_TYPE_NORMAL)throw"selectAll only available with normal row model, ie not virtual pagination";this.rowModel.forEachNode(function(a){a.selectThisNode(!0)}),this.eventService.dispatchEvent(l.Events.EVENT_SELECTION_CHANGED)},a.prototype.selectNode=function(a,b){a.setSelectedParams({newValue:!0,clearSelection:!b})},a.prototype.deselectIndex=function(a){var b=this.rowModel.getRow(a);this.deselectNode(b)},a.prototype.deselectNode=function(a){a.setSelectedParams({newValue:!1,clearSelection:!1})},a.prototype.selectIndex=function(a,b){var c=this.rowModel.getRow(a);this.selectNode(c,b)},d([m.Autowired("eventService"),e("design:type",k.EventService)],a.prototype,"eventService",void 0),d([m.Autowired("rowModel"),e("design:type",Object)],a.prototype,"rowModel",void 0),d([m.Autowired("gridOptionsWrapper"),e("design:type",n.GridOptionsWrapper)],a.prototype,"gridOptionsWrapper",void 0),d([f(0,i.Qualifier("loggerFactory")),e("design:type",Function),e("design:paramtypes",[j.LoggerFactory]),e("design:returntype",void 0)],a.prototype,"setBeans",null),d([o.PostConstruct,e("design:type",Function),e("design:paramtypes",[]),e("design:returntype",void 0)],a.prototype,"init",null),a=d([h.Bean("selectionController"),e("design:paramtypes",[])],a)}();b.SelectionController=q},function(a,b,c){var d=this&&this.__decorate||function(a,b,c,d){var g,e=arguments.length,f=e<3?b:null===d?d=Object.getOwnPropertyDescriptor(b,c):d;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)f=Reflect.decorate(a,b,c,d);else for(var h=a.length-1;h>=0;h--)(g=a[h])&&(f=(e<3?g(f):e>3?g(b,c,f):g(b,c))||f);return e>3&&f&&Object.defineProperty(b,c,f),f},e=this&&this.__metadata||function(a,b){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(a,b)},f=c(5),g=c(20),h=c(15),i=c(8),j=c(9),k=c(12),l=c(6),m=function(){function a(){this.initialised=!1}return a.prototype.init=function(){this.cellExpressions=this.gridOptionsWrapper.isEnableCellExpressions(),this.userProvidedTheGroups=j.Utils.exists(this.gridOptionsWrapper.getNodeChildDetailsFunc()),this.suppressUseColIdForGroups=this.gridOptionsWrapper.isSuppressUseColIdForGroups(),this.initialised=!0},a.prototype.getValue=function(a,b){return this.getValueUsingSpecificData(a,b.data,b)},a.prototype.getValueUsingSpecificData=function(a,b,c){this.initialised||this.init();var f,d=a.getColDef(),e=d.field;if(f=b&&c.group&&!this.userProvidedTheGroups&&!this.suppressUseColIdForGroups?c.data?c.data[a.getId()]:void 0:d.valueGetter?this.executeValueGetter(d.valueGetter,b,a,c):e&&b?j.Utils.getValueUsingField(b,e,a.isFieldContainsDots()):void 0,this.cellExpressions&&"string"==typeof f&&0===f.indexOf("=")){var g=f.substring(1);f=this.executeValueGetter(g,b,a,c)}return f},a.prototype.setValue=function(a,b,c){var d=this.columnController.getPrimaryColumn(b);if(a&&d){var e=a.data;if(!j.Utils.missing(e)){var f=d.getColDef().field,g=d.getColDef().newValueHandler;if(j.Utils.missing(f)&&j.Utils.missing(g))return void console.warn("ag-Grid: you need either field or newValueHandler set on colDef for editing to work");var h={node:a,data:a.data,oldValue:this.getValue(d,a),newValue:c,colDef:d.getColDef(),api:this.gridOptionsWrapper.getApi(),context:this.gridOptionsWrapper.getContext()};g?g(h):this.setValueUsingField(e,f,c,d.isFieldContainsDots()),a.resetQuickFilterAggregateText(),h.newValue=this.getValue(d,a),"function"==typeof d.getColDef().onCellValueChanged&&d.getColDef().onCellValueChanged(h),this.eventService.dispatchEvent(k.Events.EVENT_CELL_VALUE_CHANGED,h)}}},a.prototype.setValueUsingField=function(a,b,c,d){if(d)for(var e=b.split("."),f=a;e.length>0&&f;){var g=e.shift();0===e.length?f[g]=c:f=f[g]}else a[b]=c},a.prototype.executeValueGetter=function(a,b,c,d){var e=this.gridOptionsWrapper.getContext(),f=this.gridOptionsWrapper.getApi(),g={data:b,node:d,colDef:c.getColDef(),api:f,context:e,getValue:this.getValueCallback.bind(this,b,d)};return"function"==typeof a?a(g):"string"==typeof a?this.expressionService.evaluate(a,g):void 0},a.prototype.getValueCallback=function(a,b,c){var d=this.columnController.getPrimaryColumn(c);return d?this.getValueUsingSpecificData(d,a,b):null},d([i.Autowired("gridOptionsWrapper"),e("design:type",f.GridOptionsWrapper)],a.prototype,"gridOptionsWrapper",void 0),d([i.Autowired("expressionService"),e("design:type",g.ExpressionService)],a.prototype,"expressionService",void 0),d([i.Autowired("columnController"),e("design:type",h.ColumnController)],a.prototype,"columnController",void 0),d([i.Autowired("eventService"),e("design:type",l.EventService)],a.prototype,"eventService",void 0),d([i.PostConstruct,e("design:type",Function),e("design:paramtypes",[]),e("design:returntype",void 0)],a.prototype,"init",null),a=d([i.Bean("valueService"),e("design:paramtypes",[])],a)}();b.ValueService=m},function(a,b,c){var d=c(9),e=function(){function a(b){this.centerHeightLastTime=-1,this.centerWidthLastTime=-1,this.centerLeftMarginLastTime=-1,this.visibleLastTime=!1,this.sizeChangeListeners=[],this.isLayoutPanel=!0,this.fullHeight=!b.north&&!b.south;var c;b.dontFill?(c=a.TEMPLATE_DONT_FILL,this.layoutActive=!1):(c=this.fullHeight?a.TEMPLATE_FULL_HEIGHT:a.TEMPLATE_NORMAL,this.layoutActive=!0),this.eGui=d.Utils.loadTemplate(c),this.id="borderLayout",b.name&&(this.id+="_"+b.name),this.eGui.setAttribute("id",this.id),this.childPanels=[],b&&this.setupPanels(b),this.overlays=b.overlays,this.setupOverlays()}return a.prototype.addSizeChangeListener=function(a){this.sizeChangeListeners.push(a)},a.prototype.fireSizeChanged=function(){this.sizeChangeListeners.forEach(function(a){a()})},a.prototype.setupPanels=function(a){this.eNorthWrapper=this.eGui.querySelector("#north"),this.eSouthWrapper=this.eGui.querySelector("#south"),this.eEastWrapper=this.eGui.querySelector("#east"),this.eWestWrapper=this.eGui.querySelector("#west"),this.eCenterWrapper=this.eGui.querySelector("#center"),this.eOverlayWrapper=this.eGui.querySelector("#overlay"),this.eCenterRow=this.eGui.querySelector("#centerRow"),this.eNorthChildLayout=this.setupPanel(a.north,this.eNorthWrapper),this.eSouthChildLayout=this.setupPanel(a.south,this.eSouthWrapper),this.eEastChildLayout=this.setupPanel(a.east,this.eEastWrapper),this.eWestChildLayout=this.setupPanel(a.west,this.eWestWrapper),this.eCenterChildLayout=this.setupPanel(a.center,this.eCenterWrapper)},a.prototype.setupPanel=function(a,b){if(b)return a?a.isLayoutPanel?(this.childPanels.push(a),b.appendChild(a.getGui()),a):(b.appendChild(a),null):(b.parentNode.removeChild(b),null)},a.prototype.getGui=function(){return this.eGui},a.prototype.doLayout=function(){var a=this,b=d.Utils.isVisible(this.eGui);if(!b)return this.visibleLastTime=!1,!1;var c=!1;this.visibleLastTime!==b&&(c=!0),this.visibleLastTime=!0;var e=[this.eNorthChildLayout,this.eSouthChildLayout,this.eEastChildLayout,this.eWestChildLayout];if(e.forEach(function(b){var d=a.layoutChild(b);d&&(c=!0)}),this.layoutActive){var f=this.layoutHeight(),g=this.layoutWidth();(f||g)&&(c=!0)}var h=this.layoutChild(this.eCenterChildLayout);return h&&(c=!0),c&&this.fireSizeChanged(),c},a.prototype.layoutChild=function(a){return!!a&&a.doLayout()},a.prototype.layoutHeight=function(){return this.fullHeight?this.layoutHeightFullHeight():this.layoutHeightNormal()},a.prototype.layoutHeightFullHeight=function(){var a=d.Utils.offsetHeight(this.eGui);return a<0&&(a=0),this.centerHeightLastTime!==a&&(this.centerHeightLastTime=a,!0)},a.prototype.layoutHeightNormal=function(){var a=d.Utils.offsetHeight(this.eGui),b=d.Utils.offsetHeight(this.eNorthWrapper),c=d.Utils.offsetHeight(this.eSouthWrapper),e=a-b-c;return e<0&&(e=0),this.centerHeightLastTime!==e&&(this.eCenterRow.style.height=e+"px",this.centerHeightLastTime=e,!0)},a.prototype.getCentreHeight=function(){return this.centerHeightLastTime},a.prototype.layoutWidth=function(){var a=d.Utils.offsetWidth(this.eGui),b=d.Utils.offsetWidth(this.eEastWrapper),c=d.Utils.offsetWidth(this.eWestWrapper),e=a-b-c;e<0&&(e=0);var f=!1;return this.centerLeftMarginLastTime!==c&&(this.centerLeftMarginLastTime=c,this.eCenterWrapper.style.marginLeft=c+"px",f=!0),this.centerWidthLastTime!==e&&(this.centerWidthLastTime=e,this.eCenterWrapper.style.width=e+"px",f=!0),f},a.prototype.setEastVisible=function(a){this.eEastWrapper&&(this.eEastWrapper.style.display=a?"":"none"),this.doLayout()},a.prototype.setupOverlays=function(){return this.overlays?void this.hideOverlay():void this.eOverlayWrapper.parentNode.removeChild(this.eOverlayWrapper)},a.prototype.hideOverlay=function(){d.Utils.removeAllChildren(this.eOverlayWrapper),this.eOverlayWrapper.style.display="none"},a.prototype.showOverlay=function(a){var b=this.overlays?this.overlays[a]:null;b?(d.Utils.removeAllChildren(this.eOverlayWrapper),this.eOverlayWrapper.style.display="",this.eOverlayWrapper.appendChild(b)):(console.log("ag-Grid: unknown overlay"),this.hideOverlay())},a.TEMPLATE_FULL_HEIGHT='<div class="ag-bl ag-bl-full-height"> <div class="ag-bl-west ag-bl-full-height-west" id="west"></div> <div class="ag-bl-east ag-bl-full-height-east" id="east"></div> <div class="ag-bl-center ag-bl-full-height-center" id="center"></div> <div class="ag-bl-overlay" id="overlay"></div></div>',a.TEMPLATE_NORMAL='<div class="ag-bl ag-bl-normal"> <div id="north"></div> <div class="ag-bl-center-row ag-bl-normal-center-row" id="centerRow"> <div class="ag-bl-west ag-bl-normal-west" id="west"></div> <div class="ag-bl-east ag-bl-normal-east" id="east"></div> <div class="ag-bl-center ag-bl-normal-center" id="center"></div> </div> <div id="south"></div> <div class="ag-bl-overlay" id="overlay"></div></div>',a.TEMPLATE_DONT_FILL='<div class="ag-bl ag-bl-dont-fill"> <div id="north"></div> <div id="centerRow"> <div id="west"></div> <div id="east"></div> <div id="center"></div> </div> <div id="south"></div> <div class="ag-bl-overlay" id="overlay"></div></div>',a}();b.BorderLayout=e},function(a,b,c){var d=this&&this.__decorate||function(a,b,c,d){var g,e=arguments.length,f=e<3?b:null===d?d=Object.getOwnPropertyDescriptor(b,c):d;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)f=Reflect.decorate(a,b,c,d);else for(var h=a.length-1;h>=0;h--)(g=a[h])&&(f=(e<3?g(f):e>3?g(b,c,f):g(b,c))||f);return e>3&&f&&Object.defineProperty(b,c,f),f},e=this&&this.__metadata||function(a,b){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(a,b)},f=c(8),g=c(7),h=c(9),i=c(6),j=c(12),k=c(5),l=function(){function a(){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 a.prototype.init=function(){this.logger=this.loggerFactory.create("DragService"),this.eBody=document.querySelector("body")},a.prototype.destroy=function(){this.dragSources.forEach(this.removeListener.bind(this)),this.dragSources.length=0},a.prototype.removeListener=function(a){var b=a.dragSource.eElement,c=a.mouseDownListener;if(b.removeEventListener("mousedown",c),a.touchEnabled){var d=a.touchStartListener;b.removeEventListener("touchstart",d)}},a.prototype.removeDragSource=function(a){var b=h.Utils.find(this.dragSources,function(b){return b.dragSource===a});b&&(this.removeListener(b),h.Utils.removeFromArray(this.dragSources,b))},a.prototype.setNoSelectToBody=function(a){h.Utils.exists(this.eBody)&&h.Utils.addOrRemoveCssClass(this.eBody,"ag-body-no-select",a)},a.prototype.addDragSource=function(a,b){void 0===b&&(b=!1);var c=this.onMouseDown.bind(this,a);a.eElement.addEventListener("mousedown",c);var d=null,e=this.gridOptionsWrapper.isSuppressTouch(),f=b&&!e;f&&(d=this.onTouchStart.bind(this,a),a.eElement.addEventListener("touchstart",d)),this.dragSources.push({dragSource:a,mouseDownListener:c,touchStartListener:d,touchEnabled:b})},a.prototype.onTouchStart=function(a,b){var c=this;this.currentDragParams=a,this.dragging=!1;var d=b.touches[0];this.touchLastTime=d,this.touchStart=d,b.preventDefault(),a.eElement.addEventListener("touchmove",this.onTouchMoveListener),a.eElement.addEventListener("touchend",this.onTouchEndListener),a.eElement.addEventListener("touchcancel",this.onTouchEndListener),this.dragEndFunctions.push(function(){a.eElement.removeEventListener("touchmove",c.onTouchMoveListener),a.eElement.removeEventListener("touchend",c.onTouchEndListener),a.eElement.removeEventListener("touchcancel",c.onTouchEndListener)}),0===a.dragStartPixels&&this.onCommonMove(d,this.touchStart)},a.prototype.onMouseDown=function(a,b){var c=this;0===b.button&&(this.currentDragParams=a,this.dragging=!1,this.mouseEventLastTime=b,this.mouseStartEvent=b,document.addEventListener("mousemove",this.onMouseMoveListener),document.addEventListener("mouseup",this.onMouseUpListener),this.dragEndFunctions.push(function(){document.removeEventListener("mousemove",c.onMouseMoveListener),document.removeEventListener("mouseup",c.onMouseUpListener)}),0===a.dragStartPixels&&this.onMouseMove(b))},a.prototype.isEventNearStartEvent=function(a,b){var c=h.Utils.exists(this.currentDragParams.dragStartPixels)?this.currentDragParams.dragStartPixels:4;return h.Utils.areEventsNear(a,b,c)},a.prototype.getFirstActiveTouch=function(a){for(var b=0;b<a.length;b++){var c=a[b].identifier===this.touchStart.identifier;if(c)return a[b]}return null},a.prototype.onCommonMove=function(a,b){if(!this.dragging){var c=!this.dragging&&this.isEventNearStartEvent(a,b);if(c)return;this.dragging=!0,this.eventService.dispatchEvent(j.Events.EVENT_DRAG_STARTED),this.currentDragParams.onDragStart(b),this.setNoSelectToBody(!0)}this.currentDragParams.onDragging(a)},a.prototype.onTouchMove=function(a){var b=this.getFirstActiveTouch(a.touches);b&&this.onCommonMove(b,this.touchStart)},a.prototype.onMouseMove=function(a){this.onCommonMove(a,this.mouseStartEvent)},a.prototype.onTouchUp=function(a){var b=this.getFirstActiveTouch(a.targetTouches);b||(b=this.touchLastTime),this.onUpCommon(b)},a.prototype.onMouseUp=function(a){this.onUpCommon(a)},a.prototype.onUpCommon=function(a){this.dragging&&(this.dragging=!1,this.currentDragParams.onDragStop(a),this.eventService.dispatchEvent(j.Events.EVENT_DRAG_STOPPED)),this.setNoSelectToBody(!1),this.mouseStartEvent=null,this.mouseEventLastTime=null,this.touchStart=null,this.touchLastTime=null,this.currentDragParams=null,this.dragEndFunctions.forEach(function(a){return a()}),this.dragEndFunctions.length=0},d([f.Autowired("loggerFactory"),e("design:type",g.LoggerFactory)],a.prototype,"loggerFactory",void 0),d([f.Autowired("eventService"),e("design:type",i.EventService)],a.prototype,"eventService",void 0),d([f.Autowired("gridOptionsWrapper"),e("design:type",k.GridOptionsWrapper)],a.prototype,"gridOptionsWrapper",void 0),d([f.PostConstruct,e("design:type",Function),e("design:paramtypes",[]),e("design:returntype",void 0)],a.prototype,"init",null),d([f.PreDestroy,e("design:type",Function),e("design:paramtypes",[]),e("design:returntype",void 0)],a.prototype,"destroy",null),a=d([f.Bean("dragService"),e("design:paramtypes",[])],a)}();b.DragService=l},function(a,b,c){var d=this&&this.__decorate||function(a,b,c,d){var g,e=arguments.length,f=e<3?b:null===d?d=Object.getOwnPropertyDescriptor(b,c):d;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)f=Reflect.decorate(a,b,c,d);else for(var h=a.length-1;h>=0;h--)(g=a[h])&&(f=(e<3?g(f):e>3?g(b,c,f):g(b,c))||f);return e>3&&f&&Object.defineProperty(b,c,f),f},e=this&&this.__metadata||function(a,b){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(a,b)},f=c(8),g=c(8),h=c(26),i=c(15),j=c(17),k=c(10),l=c(28),m=c(9),n=c(35),o=c(5),p=function(){function a(){}return a.prototype.getCellForMouseEvent=function(a){var b=this.getFloating(a),c=this.getRowIndex(a,b),d=this.getColumn(a);return c>=0&&m.Utils.exists(d)?new n.GridCell(c,b,d):null},a.prototype.getFloating=function(a){var b=!this.floatingRowModel.isEmpty(k.Constants.FLOATING_TOP),c=!this.floatingRowModel.isEmpty(k.Constants.FLOATING_BOTTOM),d=b?this.gridPanel.getFloatingTopClientRect():null,e=c?this.gridPanel.getFloatingBottomClientRect():null;return b&&d.bottom>=a.clientY?k.Constants.FLOATING_TOP:c&&e.top<=a.clientY?k.Constants.FLOATING_BOTTOM:null},a.prototype.getFloatingRowIndex=function(a,b){var c;switch(b){case k.Constants.FLOATING_TOP:c=this.gridPanel.getFloatingTopClientRect();break;case k.Constants.FLOATING_BOTTOM:c=this.gridPanel.getFloatingBottomClientRect()}var d=a.clientY-c.top,e=this.floatingRowModel.getRowAtPixel(d,b);return e},a.prototype.getRowIndex=function(a,b){switch(b){case k.Constants.FLOATING_TOP:case k.Constants.FLOATING_BOTTOM:return this.getFloatingRowIndex(a,b);default:return this.getBodyRowIndex(a)}},a.prototype.getBodyRowIndex=function(a){var b=this.gridPanel.getBodyViewportClientRect(),c=this.gridPanel.getVerticalScrollPosition(),d=a.clientY-b.top+c,e=this.rowModel.getRowIndexAtPixel(d);return e},a.prototype.getContainer=function(a){var b=this.gridPanel.getBodyViewportClientRect(),c=a.clientX;return c<b.left&&this.columnController.isPinningLeft()?j.Column.PINNED_LEFT:c>b.right&&this.columnController.isPinningRight()?j.Column.PINNED_RIGHT:null},a.prototype.getColumn=function(a){if(this.columnController.isEmpty())return null;var e,b=this.getContainer(a),c=this.getColumnsForContainer(b),d=this.getXForContainer(b,a);return d<0&&(e=c[0]),c.forEach(function(a){var b=d>=a.getLeft(),c=d<=a.getRight();b&&c&&(e=a)}),e||(e=c[c.length-1]),e},a.prototype.getColumnsForContainer=function(a){switch(a){case j.Column.PINNED_LEFT:return this.columnController.getDisplayedLeftColumns();case j.Column.PINNED_RIGHT:return this.columnController.getDisplayedRightColumns();default:return this.columnController.getDisplayedCenterColumns()}},a.prototype.getXForContainer=function(a,b){var c;switch(a){case j.Column.PINNED_LEFT:c=this.gridPanel.getPinnedLeftColsViewportClientRect().left;break;case j.Column.PINNED_RIGHT:c=this.gridPanel.getPinnedRightColsViewportClientRect().left;break;default:var d=this.gridPanel.getBodyViewportClientRect(),e=this.gridPanel.getHorizontalScrollPosition();c=d.left-e}var f=b.clientX-c;return f},d([g.Autowired("gridPanel"),e("design:type",h.GridPanel)],a.prototype,"gridPanel",void 0),d([g.Autowired("columnController"),e("design:type",i.ColumnController)],a.prototype,"columnController",void 0),d([g.Autowired("rowModel"),e("design:type",Object)],a.prototype,"rowModel",void 0),d([g.Autowired("floatingRowModel"),e("design:type",l.FloatingRowModel)],a.prototype,"floatingRowModel",void 0),d([g.Autowired("gridOptionsWrapper"),e("design:type",o.GridOptionsWrapper)],a.prototype,"gridOptionsWrapper",void 0),a=d([f.Bean("mouseEventService"),e("design:paramtypes",[])],a)}();b.MouseEventService=p},function(a,b,c){var d=c(9),e=c(36),f=function(){function a(a,b,c){this.rowIndex=a,this.column=c,this.floating=d.Utils.makeNull(b)}return a.prototype.getGridRow=function(){return new e.GridRow(this.rowIndex,this.floating)},a.prototype.toString=function(){return"rowIndex = "+this.rowIndex+", floating = "+this.floating+", column = "+(this.column?this.column.getId():null)},a.prototype.createId=function(){return this.rowIndex+"."+this.floating+"."+this.column.getId()},a}();b.GridCell=f},function(a,b,c){var d=c(10),e=c(9),f=c(35),g=function(){function a(a,b){this.rowIndex=a,this.floating=e.Utils.makeNull(b)}return a.prototype.isFloatingTop=function(){
return this.floating===d.Constants.FLOATING_TOP},a.prototype.isFloatingBottom=function(){return this.floating===d.Constants.FLOATING_BOTTOM},a.prototype.isNotFloating=function(){return!this.isFloatingBottom()&&!this.isFloatingTop()},a.prototype.equals=function(a){return this.rowIndex===a.rowIndex&&this.floating===a.floating},a.prototype.toString=function(){return"rowIndex = "+this.rowIndex+", floating = "+this.floating},a.prototype.getGridCell=function(a){return new f.GridCell(this.rowIndex,this.floating,a)},a.prototype.before=function(a){var b=a.floating;switch(this.floating){case d.Constants.FLOATING_TOP:if(b!==d.Constants.FLOATING_TOP)return!0;break;case d.Constants.FLOATING_BOTTOM:if(b!==d.Constants.FLOATING_BOTTOM)return!1;break;default:if(e.Utils.exists(b))return b!==d.Constants.FLOATING_TOP}return this.rowIndex<=a.rowIndex},a}();b.GridRow=g},function(a,b,c){var d=this&&this.__decorate||function(a,b,c,d){var g,e=arguments.length,f=e<3?b:null===d?d=Object.getOwnPropertyDescriptor(b,c):d;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)f=Reflect.decorate(a,b,c,d);else for(var h=a.length-1;h>=0;h--)(g=a[h])&&(f=(e<3?g(f):e>3?g(b,c,f):g(b,c))||f);return e>3&&f&&Object.defineProperty(b,c,f),f},e=this&&this.__metadata||function(a,b){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(a,b)},f=c(8),g=c(6),h=c(12),i=c(5),j=c(15),k=c(9),l=c(35),m=c(10),n=function(){function a(){}return a.prototype.init=function(){this.eventService.addEventListener(h.Events.EVENT_COLUMN_PIVOT_MODE_CHANGED,this.clearFocusedCell.bind(this)),this.eventService.addEventListener(h.Events.EVENT_COLUMN_EVERYTHING_CHANGED,this.clearFocusedCell.bind(this)),this.eventService.addEventListener(h.Events.EVENT_COLUMN_GROUP_OPENED,this.clearFocusedCell.bind(this)),this.eventService.addEventListener(h.Events.EVENT_COLUMN_MOVED,this.clearFocusedCell.bind(this)),this.eventService.addEventListener(h.Events.EVENT_COLUMN_PINNED,this.clearFocusedCell.bind(this)),this.eventService.addEventListener(h.Events.EVENT_COLUMN_ROW_GROUP_CHANGED,this.clearFocusedCell.bind(this)),this.eventService.addEventListener(h.Events.EVENT_COLUMN_VISIBLE,this.clearFocusedCell.bind(this))},a.prototype.clearFocusedCell=function(){this.focusedCell=null,this.onCellFocused(!1)},a.prototype.getFocusedCell=function(){return this.focusedCell},a.prototype.getFocusCellToUseAfterRefresh=function(){if(this.gridOptionsWrapper.isSuppressFocusAfterRefresh())return null;if(!this.focusedCell)return null;var a=this.getGridCellForDomElement(document.activeElement);if(!a)return null;var b=this.focusedCell.createId(),c=a.createId();return b===c?this.focusedCell:null},a.prototype.getGridCellForDomElement=function(a){function g(a){var b=k.Utils.getElementAttribute(a,"row");k.Utils.exists(b)&&k.Utils.containsClass(a,"ag-row")&&(0===b.indexOf("ft")?(d=m.Constants.FLOATING_TOP,b=b.substr(3)):0===b.indexOf("fb")?(d=m.Constants.FLOATING_BOTTOM,b=b.substr(3)):d=null,c=parseInt(b))}function h(a){var c=k.Utils.getElementAttribute(a,"colid");if(k.Utils.exists(c)&&k.Utils.containsClass(a,"ag-cell")){var d=e.columnController.getGridColumn(c);d&&(b=d)}}if(!a)return null;for(var b=null,c=null,d=null,e=this;a;)g(a),h(a),a=a.parentNode;if(k.Utils.exists(b)&&k.Utils.exists(c)){var f=new l.GridCell(c,d,b);return f}return null},a.prototype.setFocusedCell=function(a,b,c,d){if(void 0===d&&(d=!1),!this.gridOptionsWrapper.isSuppressCellSelection()){var e=k.Utils.makeNull(this.columnController.getGridColumn(b));this.focusedCell=new l.GridCell(a,k.Utils.makeNull(c),e),this.onCellFocused(d)}},a.prototype.isCellFocused=function(a){return!k.Utils.missing(this.focusedCell)&&(this.focusedCell.column===a.column&&this.isRowFocused(a.rowIndex,a.floating))},a.prototype.isRowFocused=function(a,b){if(k.Utils.missing(this.focusedCell))return!1;var c=k.Utils.makeNull(b);return this.focusedCell.rowIndex===a&&this.focusedCell.floating===c},a.prototype.onCellFocused=function(a){var b={rowIndex:null,column:null,floating:null,forceBrowserFocus:a};this.focusedCell&&(b.rowIndex=this.focusedCell.rowIndex,b.column=this.focusedCell.column,b.floating=this.focusedCell.floating),this.eventService.dispatchEvent(h.Events.EVENT_CELL_FOCUSED,b)},d([f.Autowired("eventService"),e("design:type",g.EventService)],a.prototype,"eventService",void 0),d([f.Autowired("gridOptionsWrapper"),e("design:type",i.GridOptionsWrapper)],a.prototype,"gridOptionsWrapper",void 0),d([f.Autowired("columnController"),e("design:type",j.ColumnController)],a.prototype,"columnController",void 0),d([f.PostConstruct,e("design:type",Function),e("design:paramtypes",[]),e("design:returntype",void 0)],a.prototype,"init",null),a=d([f.Bean("focusedCellController"),e("design:paramtypes",[])],a)}();b.FocusedCellController=n},function(a,b,c){var d=this&&this.__decorate||function(a,b,c,d){var g,e=arguments.length,f=e<3?b:null===d?d=Object.getOwnPropertyDescriptor(b,c):d;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)f=Reflect.decorate(a,b,c,d);else for(var h=a.length-1;h>=0;h--)(g=a[h])&&(f=(e<3?g(f):e>3?g(b,c,f):g(b,c))||f);return e>3&&f&&Object.defineProperty(b,c,f),f},e=this&&this.__metadata||function(a,b){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(a,b)},f=c(8),g=c(8),h=function(){function a(){this.templateCache={},this.waitingCallbacks={}}return a.prototype.getTemplate=function(a,b){var c=this.templateCache[a];if(c)return c;var d=this.waitingCallbacks[a],e=this;if(!d){d=[],this.waitingCallbacks[a]=d;var f=new XMLHttpRequest;f.onload=function(){e.handleHttpResult(this,a)},f.open("GET",a),f.send()}return b&&d.push(b),null},a.prototype.handleHttpResult=function(a,b){if(200!==a.status||null===a.response)return void console.warn("Unable to get template error "+a.status+" - "+b);this.templateCache[b]=a.response||a.responseText;for(var c=this.waitingCallbacks[b],d=0;d<c.length;d++){var e=c[d];e()}if(this.$scope){var f=this;setTimeout(function(){f.$scope.$apply()},0)}},d([g.Autowired("$scope"),e("design:type",Object)],a.prototype,"$scope",void 0),a=d([f.Bean("templateService"),e("design:paramtypes",[])],a)}();b.TemplateService=h},function(a,b,c){var d=this&&this.__decorate||function(a,b,c,d){var g,e=arguments.length,f=e<3?b:null===d?d=Object.getOwnPropertyDescriptor(b,c):d;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)f=Reflect.decorate(a,b,c,d);else for(var h=a.length-1;h>=0;h--)(g=a[h])&&(f=(e<3?g(f):e>3?g(b,c,f):g(b,c))||f);return e>3&&f&&Object.defineProperty(b,c,f),f},e=this&&this.__metadata||function(a,b){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(a,b)},f=c(9),g=c(40),h=c(29),i=c(5),j=c(15),k=c(17),l=c(12),m=c(6),n=c(8),o=c(37),p=c(10),q=c(62),r=c(57),s=c(26),t=function(){function a(a,b,c,d,e,f,g,h,i,j,k){this.eAllRowContainers=[],this.renderedCells={},this.destroyFunctions=[],this.editingRow=!1,this.initialised=!1,this.parentScope=a,this.rowRenderer=b,this.eBodyContainer=c,this.eBodyContainerDF=d,this.eFullWidthContainer=e,this.ePinnedLeftContainer=f,this.ePinnedLeftContainerDF=g,this.ePinnedRightContainer=h,this.ePinnedRightContainerDF=i,this.rowIndex=k,this.rowNode=j}return a.prototype.setupRowContainers=function(){var a=this.gridOptionsWrapper.getIsFullWidthCellFunc(),b=!!a&&a(this.rowNode),c=this.rowNode.group&&this.gridOptionsWrapper.isGroupUseEntireRow();b?this.setupFullWidthContainers():c?this.setupFullWidthGroupContainers():this.setupNormalContainers()},a.prototype.addDomData=function(a){var b=this.gridOptionsWrapper.getDomDataKey(),c=a;c[b]={renderedRow:this},this.destroyFunctions.push(function(){c[b]=null})},a.prototype.setupFullWidthContainers=function(){this.fullWidthRow=!0,this.fullWidthCellRenderer=this.gridOptionsWrapper.getFullWidthCellRenderer(),this.fullWidthCellRendererParams=this.gridOptionsWrapper.getFullWidthCellRendererParams(),f.Utils.missing(this.fullWidthCellRenderer)&&console.warn("ag-Grid: you need to provide a fullWidthCellRenderer if using isFullWidthCell()"),this.eFullWidthRow=this.createRowContainer(null,this.eFullWidthContainer),this.gridOptionsWrapper.isForPrint()||this.addMouseWheelListenerToFullWidthRow()},a.prototype.addMouseWheelListenerToFullWidthRow=function(){var a=this,b=this.gridPanel.genericMouseWheelListener.bind(this.gridPanel);this.eFullWidthRow.addEventListener("mousewheel",b),this.eFullWidthRow.addEventListener("DOMMouseScroll",b),this.destroyFunctions.push(function(){a.eFullWidthRow.removeEventListener("mousewheel",b),a.eFullWidthRow.removeEventListener("DOMMouseScroll",b)})},a.prototype.setupFullWidthGroupContainers=function(){this.fullWidthRow=!0,this.fullWidthCellRenderer=this.gridOptionsWrapper.getGroupRowRenderer(),this.fullWidthCellRendererParams=this.gridOptionsWrapper.getGroupRowRendererParams(),this.fullWidthCellRenderer||(this.fullWidthCellRenderer=r.CellRendererFactory.GROUP,this.fullWidthCellRendererParams={innerRenderer:this.gridOptionsWrapper.getGroupRowInnerRenderer()}),this.eFullWidthRow=this.createRowContainer(null,this.eFullWidthContainer),this.gridOptionsWrapper.isForPrint()||this.addMouseWheelListenerToFullWidthRow()},a.prototype.setupNormalContainers=function(){this.fullWidthRow=!1,this.eBodyRow=this.createRowContainer(this.eBodyContainerDF,this.eBodyContainer),this.gridOptionsWrapper.isForPrint()||(this.ePinnedLeftRow=this.createRowContainer(this.ePinnedLeftContainerDF,this.ePinnedLeftContainer),this.ePinnedRightRow=this.createRowContainer(this.ePinnedRightContainerDF,this.ePinnedRightContainer))},a.prototype.init=function(){this.setupRowContainers(),this.scope=this.createChildScopeOrNull(this.rowNode.data),this.fullWidthRow?this.refreshFullWidthComponent():this.refreshCellsIntoRow(),this.addGridClasses(),this.addStyleFromRowStyle(),this.addStyleFromRowStyleFunc(),this.addClassesFromRowClass(),this.addClassesFromRowClassFunc(),this.addRowIds(),this.setTopAndHeightCss(),this.addRowSelectedListener(),this.addCellFocusedListener(),this.addNodeDataChangedListener(),this.addColumnListener(),this.addHoverFunctionality(),this.gridOptionsWrapper.executeProcessRowPostCreateFunc({eRow:this.eBodyRow,ePinnedLeftRow:this.ePinnedLeftRow,ePinnedRightRow:this.ePinnedRightRow,node:this.rowNode,api:this.gridOptionsWrapper.getApi(),rowIndex:this.rowIndex,addRenderedRowListener:this.addEventListener.bind(this),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()}),this.addDataChangedListener(),this.initialised=!0},a.prototype.stopRowEditing=function(a){this.stopEditing(a)},a.prototype.stopEditing=function(a){if(void 0===a&&(a=!1),this.forEachRenderedCell(function(b){b.stopEditing(a)}),this.editingRow&&(this.setEditingRow(!1),!a)){var b={node:this.rowNode,data:this.rowNode.data,api:this.gridOptionsWrapper.getApi(),context:this.gridOptionsWrapper.getContext()};this.mainEventService.dispatchEvent(l.Events.EVENT_ROW_VALUE_CHANGED,b)}},a.prototype.startRowEditing=function(a,b,c){void 0===a&&(a=null),void 0===b&&(b=null),void 0===c&&(c=null),this.editingRow||(this.forEachRenderedCell(function(d){var e=d===c;e?d.startEditingIfEnabled(a,b,e):d.startEditingIfEnabled(null,null,e)}),this.setEditingRow(!0))},a.prototype.setEditingRow=function(a){this.editingRow=a,this.eAllRowContainers.forEach(function(b){return f.Utils.addOrRemoveCssClass(b,"ag-row-editing",a)})},a.prototype.addDataChangedListener=function(){var a=this,b=function(){a.addStyleFromRowStyleFunc(),a.addClassesFromRowClass()};this.rowNode.addEventListener(h.RowNode.EVENT_DATA_CHANGED,b),this.destroyFunctions.push(function(){return a.rowNode.removeEventListener(h.RowNode.EVENT_DATA_CHANGED,b)})},a.prototype.angular1Compile=function(a){this.scope&&this.$compile(a)(this.scope)},a.prototype.addColumnListener=function(){var a=this,b=this.onDisplayedColumnsChanged.bind(this),c=this.onVirtualColumnsChanged.bind(this),d=this.onGridColumnsChanged.bind(this);this.mainEventService.addEventListener(l.Events.EVENT_DISPLAYED_COLUMNS_CHANGED,b),this.mainEventService.addEventListener(l.Events.EVENT_VIRTUAL_COLUMNS_CHANGED,c),this.mainEventService.addEventListener(l.Events.EVENT_COLUMN_RESIZED,b),this.mainEventService.addEventListener(l.Events.EVENT_GRID_COLUMNS_CHANGED,d),this.destroyFunctions.push(function(){a.mainEventService.removeEventListener(l.Events.EVENT_DISPLAYED_COLUMNS_CHANGED,b),a.mainEventService.removeEventListener(l.Events.EVENT_VIRTUAL_COLUMNS_CHANGED,c),a.mainEventService.removeEventListener(l.Events.EVENT_COLUMN_RESIZED,b),a.mainEventService.removeEventListener(l.Events.EVENT_GRID_COLUMNS_CHANGED,d)})},a.prototype.onDisplayedColumnsChanged=function(a){if(this.fullWidthRow){var b=a.getType()===l.Events.EVENT_COLUMN_PINNED;b&&this.refreshFullWidthComponent()}else this.refreshCellsIntoRow()},a.prototype.onVirtualColumnsChanged=function(a){this.fullWidthRow||this.refreshCellsIntoRow()},a.prototype.onGridColumnsChanged=function(){var a=Object.keys(this.renderedCells);this.removeRenderedCells(a)},a.prototype.refreshCellsIntoRow=function(){var a=this,b=this.columnController.getAllDisplayedVirtualColumns(),c=Object.keys(this.renderedCells);b.forEach(function(b){var d=a.getOrCreateCell(b);a.ensureCellInCorrectRow(d),f.Utils.removeFromArray(c,b.getColId())}),this.removeRenderedCells(c)},a.prototype.removeRenderedCells=function(a){var b=this;a.forEach(function(a){var c=b.renderedCells[a];f.Utils.missing(c)||(c.getParentRow()&&(c.getParentRow().removeChild(c.getGui()),c.setParentRow(null)),c.destroy(),b.renderedCells[a]=null)})},a.prototype.ensureCellInCorrectRow=function(a){var d,b=a.getGui(),c=a.getColumn();switch(c.getPinned()){case k.Column.PINNED_LEFT:d=this.ePinnedLeftRow;break;case k.Column.PINNED_RIGHT:d=this.ePinnedRightRow;break;default:d=this.eBodyRow}var e=a.getParentRow(),f=e!==d;f&&(e&&e.removeChild(b),d.appendChild(b),a.setParentRow(d))},a.prototype.getOrCreateCell=function(a){var b=a.getColId();if(this.renderedCells[b])return this.renderedCells[b];var c=new g.RenderedCell(a,this.rowNode,this.rowIndex,this.scope,this);return this.context.wireBean(c),this.renderedCells[b]=c,this.angular1Compile(c.getGui()),this.editingRow&&c.startEditingIfEnabled(),c},a.prototype.onRowSelected=function(){var a=this.rowNode.isSelected();this.eAllRowContainers.forEach(function(b){return f.Utils.addOrRemoveCssClass(b,"ag-row-selected",a)})},a.prototype.addRowSelectedListener=function(){var a=this,b=this.onRowSelected.bind(this);this.rowNode.addEventListener(h.RowNode.EVENT_ROW_SELECTED,b),this.destroyFunctions.push(function(){a.rowNode.removeEventListener(h.RowNode.EVENT_ROW_SELECTED,b)})},a.prototype.onMouseEvent=function(a,b){switch(a){case"dblclick":this.onRowDblClick(b);break;case"click":this.onRowClick(b)}},a.prototype.addHoverFunctionality=function(){var a=this;if(!this.gridOptionsWrapper.isSuppressRowHoverClass()){var b=this.rowNode.onMouseEnter.bind(this.rowNode),c=this.rowNode.onMouseLeave.bind(this.rowNode);this.eAllRowContainers.forEach(function(a){a.addEventListener("mouseenter",b),a.addEventListener("mouseleave",c)});var d=this.addHoverClass.bind(this,!0),e=this.addHoverClass.bind(this,!1);this.rowNode.addEventListener(h.RowNode.EVENT_MOUSE_ENTER,d),this.rowNode.addEventListener(h.RowNode.EVENT_MOUSE_LEAVE,e),this.destroyFunctions.push(function(){a.eAllRowContainers.forEach(function(a){a.removeEventListener("mouseenter",b),a.removeEventListener("mouseleave",c)}),a.rowNode.removeEventListener(h.RowNode.EVENT_MOUSE_ENTER,d),a.rowNode.removeEventListener(h.RowNode.EVENT_MOUSE_LEAVE,e)})}},a.prototype.addHoverClass=function(a){this.eAllRowContainers.forEach(function(b){return f.Utils.addOrRemoveCssClass(b,"ag-row-hover",a)})},a.prototype.addCellFocusedListener=function(){var a=this,b=null,c=function(){var c=a.focusedCellController.isRowFocused(a.rowIndex,a.rowNode.floating);c!==b&&(a.eAllRowContainers.forEach(function(a){return f.Utils.addOrRemoveCssClass(a,"ag-row-focus",c)}),a.eAllRowContainers.forEach(function(a){return f.Utils.addOrRemoveCssClass(a,"ag-row-no-focus",!c)}),b=c),!c&&a.editingRow&&a.stopEditing(!1)};this.mainEventService.addEventListener(l.Events.EVENT_CELL_FOCUSED,c),this.destroyFunctions.push(function(){a.mainEventService.removeEventListener(l.Events.EVENT_CELL_FOCUSED,c)}),c()},a.prototype.forEachRenderedCell=function(a){f.Utils.iterateObject(this.renderedCells,function(b,c){c&&a(c)})},a.prototype.addNodeDataChangedListener=function(){var a=this,b=function(){var b=!1,c=!0;a.forEachRenderedCell(function(a){return a.refreshCell(b,c)}),a.onRowSelected()};this.rowNode.addEventListener(h.RowNode.EVENT_DATA_CHANGED,b),this.destroyFunctions.push(function(){a.rowNode.removeEventListener(h.RowNode.EVENT_DATA_CHANGED,b)})},a.prototype.setTopAndHeightCss=function(){if(!this.gridOptionsWrapper.isForPrint()){var a=this.rowNode.rowTop+"px";this.eAllRowContainers.forEach(function(b){return b.style.top=a})}var b=this.rowNode.rowHeight+"px";this.eAllRowContainers.forEach(function(a){return a.style.height=b})},a.prototype.addRowIds=function(){var a=this.rowIndex.toString();if(this.rowNode.floating===p.Constants.FLOATING_BOTTOM?a="fb-"+a:this.rowNode.floating===p.Constants.FLOATING_TOP&&(a="ft-"+a),this.eAllRowContainers.forEach(function(b){return b.setAttribute("row",a)}),"function"==typeof this.gridOptionsWrapper.getBusinessKeyForNodeFunc()){var b=this.gridOptionsWrapper.getBusinessKeyForNodeFunc()(this.rowNode);"string"!=typeof b&&"number"!=typeof b||this.eAllRowContainers.forEach(function(a){return a.setAttribute("row-id",b)})}},a.prototype.addEventListener=function(a,b){this.renderedRowEventService||(this.renderedRowEventService=new m.EventService),this.renderedRowEventService.addEventListener(a,b)},a.prototype.removeEventListener=function(a,b){this.renderedRowEventService.removeEventListener(a,b)},a.prototype.getRenderedCellForColumn=function(a){return this.renderedCells[a.getColId()]},a.prototype.getCellForCol=function(a){var b=this.renderedCells[a.getColId()];return b?b.getGui():null},a.prototype.destroy=function(){this.destroyScope(),this.destroyFullWidthComponent(),this.forEachRenderedCell(function(a){return a.destroy()}),this.destroyFunctions.forEach(function(a){return a()}),this.renderedRowEventService&&this.renderedRowEventService.dispatchEvent(a.EVENT_RENDERED_ROW_REMOVED,{node:this.rowNode})},a.prototype.destroyScope=function(){this.scope&&(this.scope.$destroy(),this.scope=null)},a.prototype.isDataInList=function(a){return a.indexOf(this.rowNode.data)>=0},a.prototype.isGroup=function(){return this.rowNode.group===!0},a.prototype.refreshFullWidthComponent=function(){this.destroyFullWidthComponent(),this.createFullWidthComponent()},a.prototype.createFullWidthComponent=function(){var a=this.createFullWidthParams(this.eFullWidthRow);this.fullWidthRowComponent=this.cellRendererService.useCellRenderer(this.fullWidthCellRenderer,this.eFullWidthRow,a),this.angular1Compile(this.eFullWidthRow)},a.prototype.destroyFullWidthComponent=function(){this.fullWidthRowComponent&&(this.fullWidthRowComponent.destroy&&this.fullWidthRowComponent.destroy(),this.fullWidthRowComponent=null),f.Utils.removeAllChildren(this.eFullWidthRow)},a.prototype.createFullWidthParams=function(a){var b={data:this.rowNode.data,node:this.rowNode,$scope:this.scope,rowIndex:this.rowIndex,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext(),eGridCell:a,eParentOfValue:a,addRenderedRowListener:this.addEventListener.bind(this),colDef:{cellRenderer:this.fullWidthCellRenderer,cellRendererParams:this.fullWidthCellRendererParams}};return this.fullWidthCellRendererParams&&f.Utils.assign(b,this.fullWidthCellRendererParams),b},a.prototype.createGroupSpanningEntireRowCell=function(a){var b=document.createElement("span");if(!a){var c=this.createFullWidthParams(b),d=this.cellRendererService.useCellRenderer(this.fullWidthCellRenderer,b,c);d&&d.destroy&&this.destroyFunctions.push(function(){return d.destroy()})}return this.rowNode.footer?f.Utils.addCssClass(b,"ag-footer-cell-entire-row"):f.Utils.addCssClass(b,"ag-group-cell-entire-row"),b},a.prototype.createChildScopeOrNull=function(a){if(this.gridOptionsWrapper.isAngularCompileRows()){var b=this.parentScope.$new();return b.data=a,b.rowNode=this.rowNode,b.context=this.gridOptionsWrapper.getContext(),b}return null},a.prototype.addStyleFromRowStyle=function(){var a=this.gridOptionsWrapper.getRowStyle();a&&("function"==typeof a?console.log("ag-Grid: rowStyle should be an object of key/value styles, not be a function, use getRowStyle() instead"):this.eAllRowContainers.forEach(function(b){return f.Utils.addStylesToElement(b,a)}))},a.prototype.addStyleFromRowStyleFunc=function(){var a=this.gridOptionsWrapper.getRowStyleFunc();if(a){var b={data:this.rowNode.data,node:this.rowNode,api:this.gridOptionsWrapper.getApi(),context:this.gridOptionsWrapper.getContext(),$scope:this.scope},c=a(b);this.eAllRowContainers.forEach(function(a){return f.Utils.addStylesToElement(a,c)})}},a.prototype.createParams=function(){var a={node:this.rowNode,data:this.rowNode.data,rowIndex:this.rowIndex,$scope:this.scope,context:this.gridOptionsWrapper.getContext(),api:this.gridOptionsWrapper.getApi()};return a},a.prototype.createEvent=function(a,b){var c=this.createParams();return c.event=a,c.eventSource=b,c},a.prototype.createRowContainer=function(a,b){var c=document.createElement("div");this.addDomData(c);var d=a?a:b;return d.appendChild(c),this.eAllRowContainers.push(c),this.destroyFunctions.push(function(){b.removeChild(c)}),c},a.prototype.onRowDblClick=function(a){var b=this.createEvent(a,this);this.mainEventService.dispatchEvent(l.Events.EVENT_ROW_DOUBLE_CLICKED,b)},a.prototype.onRowClick=function(a){var b=this.createEvent(a,this);this.mainEventService.dispatchEvent(l.Events.EVENT_ROW_CLICKED,b);var c=a.ctrlKey||a.metaKey,d=a.shiftKey;if(!this.rowNode.group&&!this.rowNode.floating){var e=this.gridOptionsWrapper;e.isRowSelection()&&(e.isSuppressRowClickSelection()||(this.rowNode.isSelected()?c?e.isRowDeselection()&&this.rowNode.setSelectedParams({newValue:!1}):this.rowNode.setSelectedParams({newValue:!0,clearSelection:!0}):this.rowNode.setSelectedParams({newValue:!0,clearSelection:!c,rangeSelect:d})))}},a.prototype.getRowNode=function(){return this.rowNode},a.prototype.refreshCells=function(a,b){if(a){var c=this.columnController.getGridColumns(a);this.forEachRenderedCell(function(a){var d=a.getColumn();c.indexOf(d)>=0&&a.refreshCell(b)})}},a.prototype.addClassesFromRowClassFunc=function(){var a=this,b=[],c=this.gridOptionsWrapper.getRowClassFunc();if(c){var d={node:this.rowNode,data:this.rowNode.data,rowIndex:this.rowIndex,context:this.gridOptionsWrapper.getContext(),api:this.gridOptionsWrapper.getApi()},e=c(d);e&&("string"==typeof e?b.push(e):Array.isArray(e)&&e.forEach(function(a){b.push(a)}))}b.forEach(function(b){a.eAllRowContainers.forEach(function(a){return f.Utils.addCssClass(a,b)})})},a.prototype.addGridClasses=function(){var a=this,b=[];b.push("ag-row"),b.push("ag-row-no-focus"),b.push(this.rowIndex%2==0?"ag-row-even":"ag-row-odd"),this.rowNode.isSelected()&&b.push("ag-row-selected"),this.rowNode.group?(b.push("ag-row-group"),b.push("ag-row-level-"+this.rowNode.level),!this.rowNode.footer&&this.rowNode.expanded&&b.push("ag-row-group-expanded"),this.rowNode.footer||this.rowNode.expanded||b.push("ag-row-group-contracted"),this.rowNode.footer&&b.push("ag-row-footer")):this.rowNode.parent?b.push("ag-row-level-"+(this.rowNode.parent.level+1)):b.push("ag-row-level-0"),this.fullWidthRow&&b.push("ag-full-width-row"),b.forEach(function(b){a.eAllRowContainers.forEach(function(a){return f.Utils.addCssClass(a,b)})})},a.prototype.addClassesFromRowClass=function(){var a=this,b=[],c=this.gridOptionsWrapper.getRowClass();c&&("function"==typeof c?console.warn("ag-Grid: rowClass should not be a function, please use getRowClass instead"):"string"==typeof c?b.push(c):Array.isArray(c)&&c.forEach(function(a){b.push(a)})),b.forEach(function(b){a.eAllRowContainers.forEach(function(a){return f.Utils.addCssClass(a,b)})})},a.EVENT_RENDERED_ROW_REMOVED="renderedRowRemoved",d([n.Autowired("gridOptionsWrapper"),e("design:type",i.GridOptionsWrapper)],a.prototype,"gridOptionsWrapper",void 0),d([n.Autowired("columnController"),e("design:type",j.ColumnController)],a.prototype,"columnController",void 0),d([n.Autowired("$compile"),e("design:type",Object)],a.prototype,"$compile",void 0),d([n.Autowired("eventService"),e("design:type",m.EventService)],a.prototype,"mainEventService",void 0),d([n.Autowired("context"),e("design:type",n.Context)],a.prototype,"context",void 0),d([n.Autowired("focusedCellController"),e("design:type",o.FocusedCellController)],a.prototype,"focusedCellController",void 0),d([n.Autowired("cellRendererService"),e("design:type",q.CellRendererService)],a.prototype,"cellRendererService",void 0),d([n.Autowired("gridPanel"),e("design:type",s.GridPanel)],a.prototype,"gridPanel",void 0),d([n.PostConstruct,e("design:type",Function),e("design:paramtypes",[]),e("design:returntype",void 0)],a.prototype,"init",null),a}();b.RenderedRow=t},function(a,b,c){var d=this&&this.__extends||function(a,b){function d(){this.constructor=a}for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c]);a.prototype=null===b?Object.create(b):(d.prototype=b.prototype,new d)},e=this&&this.__decorate||function(a,b,c,d){var g,e=arguments.length,f=e<3?b:null===d?d=Object.getOwnPropertyDescriptor(b,c):d;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)f=Reflect.decorate(a,b,c,d);else for(var h=a.length-1;h>=0;h--)(g=a[h])&&(f=(e<3?g(f):e>3?g(b,c,f):g(b,c))||f);return e>3&&f&&Object.defineProperty(b,c,f),f},f=this&&this.__metadata||function(a,b){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(a,b)},g=c(9),h=c(17),i=c(29),j=c(5),k=c(20),l=c(25),m=c(38),n=c(15),o=c(31),p=c(6),q=c(10),r=c(12),s=c(8),t=c(13),u=c(37),v=c(35),w=c(41),x=c(50),y=c(49),z=c(46),A=c(57),B=c(62),C=c(63),D=c(64),E=c(65),F=c(66),G=function(a){function b(b,c,d,e,f){a.call(this,"<div/>"),this.firstRightPinned=!1,this.lastLeftPinned=!1,this.eGridCell=this.getGui(),this.column=b,this.node=c,this.rowIndex=d,this.scope=e,this.renderedRow=f,this.gridCell=new v.GridCell(d,c.floating,b)}return d(b,a),b.prototype.getGridCell=function(){return this.gridCell},b.prototype.setFocusInOnEditor=function(){this.editingCell&&this.cellEditor&&this.cellEditor.focusIn&&this.cellEditor.focusIn()},b.prototype.setFocusOutOnEditor=function(){this.editingCell&&this.cellEditor&&this.cellEditor.focusOut&&this.cellEditor.focusOut()},b.prototype.destroy=function(){a.prototype.destroy.call(this),this.cellEditor&&this.cellEditor.destroy&&this.cellEditor.destroy(),this.cellRenderer&&this.cellRenderer.destroy&&this.cellRenderer.destroy()},b.prototype.setPinnedClasses=function(){var a=this,b=function(){a.firstRightPinned!==a.column.isFirstRightPinned()&&(a.firstRightPinned=a.column.isFirstRightPinned(),g.Utils.addOrRemoveCssClass(a.eGridCell,"ag-cell-first-right-pinned",a.firstRightPinned)),a.lastLeftPinned!==a.column.isLastLeftPinned()&&(a.lastLeftPinned=a.column.isLastLeftPinned(),g.Utils.addOrRemoveCssClass(a.eGridCell,"ag-cell-last-left-pinned",a.lastLeftPinned))};this.column.addEventListener(h.Column.EVENT_FIRST_RIGHT_PINNED_CHANGED,b),this.column.addEventListener(h.Column.EVENT_LAST_LEFT_PINNED_CHANGED,b),this.addDestroyFunc(function(){a.column.removeEventListener(h.Column.EVENT_FIRST_RIGHT_PINNED_CHANGED,b),a.column.removeEventListener(h.Column.EVENT_LAST_LEFT_PINNED_CHANGED,b)}),b()},b.prototype.getParentRow=function(){return this.eParentRow},b.prototype.setParentRow=function(a){this.eParentRow=a},b.prototype.calculateCheckboxSelection=function(){if(this.node.floating)return!1;var a=this.column.getColDef();if("boolean"==typeof a.checkboxSelection)return a.checkboxSelection;var b;if("function"==typeof a.checkboxSelection&&(b=a.checkboxSelection),!b&&this.gridOptionsWrapper.getCheckboxSelection()&&(b=this.gridOptionsWrapper.getCheckboxSelection()),b){var c=this.createParams();return b(c)}return!1},b.prototype.getColumn=function(){return this.column},b.prototype.getValue=function(){var a=this.getDataForRow();return this.valueService.getValueUsingSpecificData(this.column,a,this.node)},b.prototype.getDataForRow=function(){if(this.node.footer)return this.node.data;if(this.node.group){var a=this.gridOptionsWrapper.isGroupIncludeFooter(),b=this.gridOptionsWrapper.isGroupSuppressBlankHeader();return this.node.expanded&&a&&!b?void 0:this.node.data}return this.node.data},b.prototype.addRangeSelectedListener=function(){var a=this;if(this.rangeController){var b=0,c=function(){var c=a.rangeController.getCellRangeCount(a.gridCell);b!==c&&(g.Utils.addOrRemoveCssClass(a.eGridCell,"ag-cell-range-selected",0!==c),g.Utils.addOrRemoveCssClass(a.eGridCell,"ag-cell-range-selected-1",1===c),g.Utils.addOrRemoveCssClass(a.eGridCell,"ag-cell-range-selected-2",2===c),g.Utils.addOrRemoveCssClass(a.eGridCell,"ag-cell-range-selected-3",3===c),g.Utils.addOrRemoveCssClass(a.eGridCell,"ag-cell-range-selected-4",c>=4),b=c)};this.eventService.addEventListener(r.Events.EVENT_RANGE_SELECTION_CHANGED,c),this.addDestroyFunc(function(){a.eventService.removeEventListener(r.Events.EVENT_RANGE_SELECTION_CHANGED,c)}),c()}},b.prototype.addHighlightListener=function(){var a=this;if(this.rangeController){var b=function(b){var c=a.gridCell.createId(),d=b.cells[c];d&&a.animateCellWithHighlight()};this.eventService.addEventListener(r.Events.EVENT_FLASH_CELLS,b),this.addDestroyFunc(function(){a.eventService.removeEventListener(r.Events.EVENT_FLASH_CELLS,b)})}},b.prototype.addChangeListener=function(){var a=this,b=function(b){b.column===a.column&&(a.refreshCell(),a.animateCellWithDataChanged())};this.addDestroyableEventListener(this.node,i.RowNode.EVENT_CELL_CHANGED,b)},b.prototype.animateCellWithDataChanged=function(){(this.gridOptionsWrapper.isEnableCellChangeFlash()||this.column.getColDef().enableCellChangeFlash)&&this.animateCell("data-changed")},b.prototype.animateCellWithHighlight=function(){this.animateCell("highlight")},b.prototype.animateCell=function(a){var b=this,c="ag-cell-"+a,d="ag-cell-"+a+"-animation";g.Utils.addCssClass(this.eGridCell,c),g.Utils.removeCssClass(this.eGridCell,d),setTimeout(function(){g.Utils.removeCssClass(b.eGridCell,c),g.Utils.addCssClass(b.eGridCell,d),setTimeout(function(){g.Utils.removeCssClass(b.eGridCell,d)},1e3)},500)},b.prototype.addCellFocusedListener=function(){var a=this,b=null,c=function(c){var d=a.focusedCellController.isCellFocused(a.gridCell);d!==b&&(g.Utils.addOrRemoveCssClass(a.eGridCell,"ag-cell-focus",d),g.Utils.addOrRemoveCssClass(a.eGridCell,"ag-cell-no-focus",!d),b=d),d&&c&&c.forceBrowserFocus&&a.eGridCell.focus();var e=a.gridOptionsWrapper.isFullRowEdit();d||e||!a.editingCell||a.stopRowOrCellEdit()};this.eventService.addEventListener(r.Events.EVENT_CELL_FOCUSED,c),this.addDestroyFunc(function(){a.eventService.removeEventListener(r.Events.EVENT_CELL_FOCUSED,c)}),c()},b.prototype.setWidthOnCell=function(){var a=this,b=function(){a.eGridCell.style.width=a.column.getActualWidth()+"px"};this.column.addEventListener(h.Column.EVENT_WIDTH_CHANGED,b),this.addDestroyFunc(function(){a.column.removeEventListener(h.Column.EVENT_WIDTH_CHANGED,b)}),b()},b.prototype.init=function(){this.value=this.getValue(),this.checkboxSelection=this.calculateCheckboxSelection(),this.setWidthOnCell(),this.setPinnedClasses(),this.addRangeSelectedListener(),this.addHighlightListener(),this.addChangeListener(),this.addCellFocusedListener(),this.addDomData();var a=new E.SetLeftFeature(this.column,this.eGridCell);this.addDestroyFunc(a.destroy.bind(a)),this.gridOptionsWrapper.isSuppressCellSelection()||this.eGridCell.setAttribute("tabindex","-1"),this.addClasses(),this.setInlineEditingClass(),this.createParentOfValue(),this.populateCell()},b.prototype.addDomData=function(){var a=this.gridOptionsWrapper.getDomDataKey(),b=this.eGridCell;b[a]={renderedCell:this},this.addDestroyFunc(function(){
return b[a]=null})},b.prototype.onEnterKeyDown=function(){this.editingCell?(this.stopRowOrCellEdit(),this.focusCell(!0)):this.startRowOrCellEdit(q.Constants.KEY_ENTER)},b.prototype.onF2KeyDown=function(){this.editingCell||this.startRowOrCellEdit(q.Constants.KEY_F2)},b.prototype.onEscapeKeyDown=function(){this.editingCell&&(this.stopRowOrCellEdit(!0),this.focusCell(!0))},b.prototype.onPopupEditorClosed=function(){this.editingCell&&(this.stopRowOrCellEdit(!0),this.focusedCellController.isCellFocused(this.gridCell)&&this.focusCell(!0))},b.prototype.isEditing=function(){return this.editingCell},b.prototype.onTabKeyDown=function(a){this.rowRenderer.onTabKeyDown(this,a)},b.prototype.onBackspaceOrDeleteKeyPressed=function(a){this.editingCell||this.startRowOrCellEdit(a)},b.prototype.onSpaceKeyPressed=function(a){if(!this.editingCell&&this.gridOptionsWrapper.isRowSelection()){var b=this.node.isSelected();this.node.setSelected(!b)}a.preventDefault()},b.prototype.onNavigationKeyPressed=function(a,b){this.editingCell&&this.stopRowOrCellEdit(),this.rowRenderer.navigateToNextCell(b,this.rowIndex,this.column,this.node.floating),a.preventDefault()},b.prototype.onKeyPress=function(a){var c=g.Utils.getTarget(a),d=c!==this.getGui();if(!d&&!this.editingCell){var e=String.fromCharCode(a.charCode);" "===e?this.onSpaceKeyPressed(a):b.PRINTABLE_CHARACTERS.indexOf(e)>=0&&(this.startRowOrCellEdit(null,e),a.preventDefault())}},b.prototype.onKeyDown=function(a){var b=a.which||a.keyCode;switch(b){case q.Constants.KEY_ENTER:this.onEnterKeyDown();break;case q.Constants.KEY_F2:this.onF2KeyDown();break;case q.Constants.KEY_ESCAPE:this.onEscapeKeyDown();break;case q.Constants.KEY_TAB:this.onTabKeyDown(a);break;case q.Constants.KEY_BACKSPACE:case q.Constants.KEY_DELETE:this.onBackspaceOrDeleteKeyPressed(b);break;case q.Constants.KEY_DOWN:case q.Constants.KEY_UP:case q.Constants.KEY_RIGHT:case q.Constants.KEY_LEFT:this.onNavigationKeyPressed(a,b)}},b.prototype.createCellEditorParams=function(a,b,c){var d={value:this.getValue(),keyPress:a,charPress:b,column:this.column,node:this.node,api:this.gridOptionsWrapper.getApi(),cellStartedEdit:c,columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext(),onKeyDown:this.onKeyDown.bind(this),stopEditing:this.stopEditingAndFocus.bind(this),eGridCell:this.eGridCell},e=this.column.getColDef();return e.cellEditorParams&&g.Utils.assign(d,e.cellEditorParams),d},b.prototype.createCellEditor=function(a,b,c){var d=this.createCellEditorParams(a,b,c),e=this.cellEditorFactory.createCellEditor(this.column.getCellEditor(),d);return e},b.prototype.stopEditingAndFocus=function(){this.stopRowOrCellEdit(),this.focusCell(!0)},b.prototype.startRowOrCellEdit=function(a,b){this.gridOptionsWrapper.isFullRowEdit()?this.renderedRow.startRowEditing(a,b,this):this.startEditingIfEnabled(a,b,!0)},b.prototype.startEditingIfEnabled=function(a,b,c){if(void 0===a&&(a=null),void 0===b&&(b=null),void 0===c&&(c=!1),this.isCellEditable()&&!this.editingCell){var d=this.createCellEditor(a,b,c);return d.isCancelBeforeStart&&d.isCancelBeforeStart()?(d.destroy&&d.destroy(),!1):d.getGui?(this.cellEditor=d,this.editingCell=!0,this.cellEditorInPopup=this.cellEditor.isPopup&&this.cellEditor.isPopup(),this.setInlineEditingClass(),this.cellEditorInPopup?this.addPopupCellEditor():this.addInCellEditor(),d.afterGuiAttached&&d.afterGuiAttached(),!0):(console.warn("ag-Grid: cellEditor for column "+this.column.getId()+" is missing getGui() method"),d.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?"),!1)}},b.prototype.addInCellEditor=function(){g.Utils.removeAllChildren(this.eGridCell),this.eGridCell.appendChild(this.cellEditor.getGui()),this.gridOptionsWrapper.isAngularCompileRows()&&this.$compile(this.eGridCell)(this.scope)},b.prototype.addPopupCellEditor=function(){var a=this,b=this.cellEditor.getGui();this.hideEditorPopup=this.popupService.addAsModalPopup(b,!0,function(){a.editingCell&&a.onPopupEditorClosed()}),this.popupService.positionPopupOverComponent({eventSource:this.eGridCell,ePopup:b,keepWithinBounds:!0}),this.gridOptionsWrapper.isAngularCompileRows()&&this.$compile(b)(this.scope)},b.prototype.focusCell=function(a){void 0===a&&(a=!1),this.focusedCellController.setFocusedCell(this.rowIndex,this.column,this.node.floating,a)},b.prototype.stopRowOrCellEdit=function(a){void 0===a&&(a=!1),this.gridOptionsWrapper.isFullRowEdit()?this.renderedRow.stopRowEditing(a):this.stopEditing(a)},b.prototype.stopEditing=function(a){if(void 0===a&&(a=!1),this.editingCell){this.editingCell=!1;var b=this.cellEditor.isCancelAfterEnd&&this.cellEditor.isCancelAfterEnd(),c=!a&&!b;if(c){var d=this.cellEditor.getValue();this.valueService.setValue(this.node,this.column,d),this.value=this.getValue()}this.cellEditor.destroy&&this.cellEditor.destroy(),this.cellEditorInPopup?(this.hideEditorPopup(),this.hideEditorPopup=null):(g.Utils.removeAllChildren(this.eGridCell),this.checkboxSelection?this.eGridCell.appendChild(this.eCellWrapper):this.cellRenderer&&this.eGridCell.appendChild(this.cellRenderer.getGui())),this.setInlineEditingClass(),this.refreshCell()}},b.prototype.createParams=function(){var a={node:this.node,data:this.node.data,value:this.value,rowIndex:this.rowIndex,colDef:this.column.getColDef(),$scope:this.scope,context:this.gridOptionsWrapper.getContext(),api:this.gridApi,columnApi:this.columnApi};return a},b.prototype.createEvent=function(a){var b=this.createParams();return b.event=a,b},b.prototype.getRenderedRow=function(){return this.renderedRow},b.prototype.isSuppressNavigable=function(){return this.column.isSuppressNavigable(this.node)},b.prototype.isCellEditable=function(){return!this.node.group&&this.column.isCellEditable(this.node)},b.prototype.onMouseEvent=function(a,b){switch(a){case"click":this.onCellClicked(b);break;case"mousedown":this.onMouseDown();break;case"dblclick":this.onCellDoubleClicked(b);break;case"contextmenu":this.onContextMenu(b)}},b.prototype.onContextMenu=function(a){if(!a.ctrlKey&&!a.metaKey){var b=this.column.getColDef(),c=this.createEvent(a);this.eventService.dispatchEvent(r.Events.EVENT_CELL_CONTEXT_MENU,c),b.onCellContextMenu&&b.onCellContextMenu(c),this.contextMenuFactory&&!this.gridOptionsWrapper.isSuppressContextMenu()&&(this.contextMenuFactory.showMenu(this.node,this.column,this.value,a),a.preventDefault())}},b.prototype.onCellDoubleClicked=function(a){var b=this.column.getColDef(),c=this.createEvent(a);this.eventService.dispatchEvent(r.Events.EVENT_CELL_DOUBLE_CLICKED,c),"function"==typeof b.onCellDoubleClicked&&b.onCellDoubleClicked(c),this.gridOptionsWrapper.isSingleClickEdit()||this.startRowOrCellEdit()},b.prototype.onMouseDown=function(){if(this.focusCell(!1),this.rangeController){var a=this.gridCell,b=this.rangeController.isCellInAnyRange(a);b||this.rangeController.setRangeToCell(a)}},b.prototype.onCellClicked=function(a){var b=this.createEvent(a);this.eventService.dispatchEvent(r.Events.EVENT_CELL_CLICKED,b);var c=this.column.getColDef();c.onCellClicked&&c.onCellClicked(b),this.gridOptionsWrapper.isSingleClickEdit()&&this.startRowOrCellEdit()},b.prototype.setInlineEditingClass=function(){var a=this.editingCell&&!this.cellEditorInPopup;g.Utils.addOrRemoveCssClass(this.eGridCell,"ag-cell-inline-editing",a),g.Utils.addOrRemoveCssClass(this.eGridCell,"ag-cell-not-inline-editing",!a)},b.prototype.populateCell=function(){this.putDataIntoCell(),this.addStylesFromColDef(),this.addClassesFromColDef(),this.addClassesFromRules()},b.prototype.addStylesFromColDef=function(){var a=this.column.getColDef();if(a.cellStyle){var b;if("function"==typeof a.cellStyle){var c={value:this.value,data:this.node.data,node:this.node,colDef:a,column:this.column,$scope:this.scope,context:this.gridOptionsWrapper.getContext(),api:this.gridOptionsWrapper.getApi()},d=a.cellStyle;b=d(c)}else b=a.cellStyle;b&&g.Utils.addStylesToElement(this.eGridCell,b)}},b.prototype.addClassesFromColDef=function(){var a=this,b=this.column.getColDef();if(b.cellClass){var c;if("function"==typeof b.cellClass){var d={value:this.value,data:this.node.data,node:this.node,colDef:b,$scope:this.scope,context:this.gridOptionsWrapper.getContext(),api:this.gridOptionsWrapper.getApi()},e=b.cellClass;c=e(d)}else c=b.cellClass;"string"==typeof c?g.Utils.addCssClass(this.eGridCell,c):Array.isArray(c)&&c.forEach(function(b){g.Utils.addCssClass(a.eGridCell,b)})}},b.prototype.addClassesFromRules=function(){var a=this.column.getColDef(),b=a.cellClassRules;if("object"==typeof b&&null!==b)for(var c={value:this.value,data:this.node.data,node:this.node,colDef:a,rowIndex:this.rowIndex,api:this.gridOptionsWrapper.getApi(),context:this.gridOptionsWrapper.getContext()},d=Object.keys(b),e=0;e<d.length;e++){var i,f=d[e],h=b[f];"string"==typeof h?i=this.expressionService.evaluate(h,c):"function"==typeof h&&(i=h(c)),i?g.Utils.addCssClass(this.eGridCell,f):g.Utils.removeCssClass(this.eGridCell,f)}},b.prototype.createParentOfValue=function(){if(this.checkboxSelection){this.eCellWrapper=document.createElement("span"),g.Utils.addCssClass(this.eCellWrapper,"ag-cell-wrapper"),this.eGridCell.appendChild(this.eCellWrapper);var a=new D.CheckboxSelectionComponent;this.context.wireBean(a),a.init({rowNode:this.node}),this.eCellWrapper.appendChild(a.getGui()),this.addDestroyFunc(function(){return a.destroy()}),this.eSpanWithValue=document.createElement("span"),g.Utils.addCssClass(this.eSpanWithValue,"ag-cell-value"),this.eCellWrapper.appendChild(this.eSpanWithValue),this.eParentOfValue=this.eSpanWithValue}else g.Utils.addCssClass(this.eGridCell,"ag-cell-value"),this.eParentOfValue=this.eGridCell},b.prototype.isVolatile=function(){return this.column.getColDef().volatile},b.prototype.refreshCell=function(a,b){function f(){var a=d.formatValue(d.value),b=d.column.getColDef().cellRendererParams,c=d.createRendererAndRefreshParams(a,b);d.cellRenderer.refresh(c),d.addClassesFromRules()}function h(){g.Utils.removeAllChildren(d.eParentOfValue),d.cellRenderer&&d.cellRenderer.destroy&&d.cellRenderer.destroy(),d.cellRenderer=null,d.populateCell(),d.gridOptionsWrapper.isAngularCompileRows()&&d.$compile(d.eGridCell)(d.scope)}void 0===a&&(a=!1),void 0===b&&(b=!1),this.value=this.getValue();var c=!1,d=this,e=!b&&this.cellRenderer&&this.cellRenderer.refresh;if(e)try{f()}catch(a){if(!(a instanceof F.MethodNotImplementedException))throw a;c=!0}e&&!c||h(),a&&this.animateCellWithDataChanged()},b.prototype.putDataIntoCell=function(){var a=this.column.getColDef(),b=this.column.getCellRenderer(),c=this.column.getFloatingCellRenderer(),d=this.valueFormatterService.formatValue(this.column,this.node,this.scope,this.rowIndex,this.value);if(a.template)this.eParentOfValue.innerHTML=a.template;else if(a.templateUrl){var e=this.templateService.getTemplate(a.templateUrl,this.refreshCell.bind(this,!0));e&&(this.eParentOfValue.innerHTML=e)}else if(c&&this.node.floating)this.useCellRenderer(c,a.floatingCellRendererParams,d);else if(b)this.useCellRenderer(b,a.cellRendererParams,d);else{var f=null!==d&&void 0!==d,h=f?d:this.value;g.Utils.exists(h)&&""!==h&&(this.eParentOfValue.textContent=h.toString())}if(a.tooltipField){var i=this.getDataForRow();if(g.Utils.exists(i)){var j=g.Utils.getValueUsingField(i,a.tooltipField,this.column.isTooltipFieldContainsDots());g.Utils.exists(j)&&this.eParentOfValue.setAttribute("title",j)}}},b.prototype.formatValue=function(a){return this.valueFormatterService.formatValue(this.column,this.node,this.scope,this.rowIndex,a)},b.prototype.createRendererAndRefreshParams=function(a,b){var c={value:this.value,valueFormatted:a,valueGetter:this.getValue,formatValue:this.formatValue.bind(this),data:this.node.data,node:this.node,colDef:this.column.getColDef(),column:this.column,$scope:this.scope,rowIndex:this.rowIndex,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext(),refreshCell:this.refreshCell.bind(this),eGridCell:this.eGridCell,eParentOfValue:this.eParentOfValue,addRenderedRowListener:this.renderedRow.addEventListener.bind(this.renderedRow)};return b&&g.Utils.assign(c,b),c},b.prototype.useCellRenderer=function(a,b,c){var d=this.createRendererAndRefreshParams(c,b);this.cellRenderer=this.cellRendererService.useCellRenderer(a,this.eParentOfValue,d)},b.prototype.addClasses=function(){g.Utils.addCssClass(this.eGridCell,"ag-cell"),this.eGridCell.setAttribute("colId",this.column.getColId()),this.node.group&&this.node.footer&&g.Utils.addCssClass(this.eGridCell,"ag-footer-cell"),this.node.group&&!this.node.footer&&g.Utils.addCssClass(this.eGridCell,"ag-group-cell")},b.PRINTABLE_CHARACTERS="qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM1234567890!\"£$%^&*()_+-=[];'#,./|<>?:@~{}",e([s.Autowired("context"),f("design:type",s.Context)],b.prototype,"context",void 0),e([s.Autowired("columnApi"),f("design:type",n.ColumnApi)],b.prototype,"columnApi",void 0),e([s.Autowired("gridApi"),f("design:type",t.GridApi)],b.prototype,"gridApi",void 0),e([s.Autowired("gridOptionsWrapper"),f("design:type",j.GridOptionsWrapper)],b.prototype,"gridOptionsWrapper",void 0),e([s.Autowired("expressionService"),f("design:type",k.ExpressionService)],b.prototype,"expressionService",void 0),e([s.Autowired("rowRenderer"),f("design:type",l.RowRenderer)],b.prototype,"rowRenderer",void 0),e([s.Autowired("$compile"),f("design:type",Object)],b.prototype,"$compile",void 0),e([s.Autowired("templateService"),f("design:type",m.TemplateService)],b.prototype,"templateService",void 0),e([s.Autowired("valueService"),f("design:type",o.ValueService)],b.prototype,"valueService",void 0),e([s.Autowired("eventService"),f("design:type",p.EventService)],b.prototype,"eventService",void 0),e([s.Autowired("columnController"),f("design:type",n.ColumnController)],b.prototype,"columnController",void 0),e([s.Optional("rangeController"),f("design:type",Object)],b.prototype,"rangeController",void 0),e([s.Autowired("focusedCellController"),f("design:type",u.FocusedCellController)],b.prototype,"focusedCellController",void 0),e([s.Optional("contextMenuFactory"),f("design:type",Object)],b.prototype,"contextMenuFactory",void 0),e([s.Autowired("focusService"),f("design:type",w.FocusService)],b.prototype,"focusService",void 0),e([s.Autowired("cellEditorFactory"),f("design:type",x.CellEditorFactory)],b.prototype,"cellEditorFactory",void 0),e([s.Autowired("cellRendererFactory"),f("design:type",A.CellRendererFactory)],b.prototype,"cellRendererFactory",void 0),e([s.Autowired("popupService"),f("design:type",z.PopupService)],b.prototype,"popupService",void 0),e([s.Autowired("cellRendererService"),f("design:type",B.CellRendererService)],b.prototype,"cellRendererService",void 0),e([s.Autowired("valueFormatterService"),f("design:type",C.ValueFormatterService)],b.prototype,"valueFormatterService",void 0),e([s.PostConstruct,f("design:type",Function),f("design:paramtypes",[]),f("design:returntype",void 0)],b.prototype,"init",null),b}(y.Component);b.RenderedCell=G},function(a,b,c){var d=this&&this.__decorate||function(a,b,c,d){var g,e=arguments.length,f=e<3?b:null===d?d=Object.getOwnPropertyDescriptor(b,c):d;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)f=Reflect.decorate(a,b,c,d);else for(var h=a.length-1;h>=0;h--)(g=a[h])&&(f=(e<3?g(f):e>3?g(b,c,f):g(b,c))||f);return e>3&&f&&Object.defineProperty(b,c,f),f},e=this&&this.__metadata||function(a,b){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(a,b)},f=c(8),g=c(9),h=c(42),i=c(15),j=c(10),k=c(35),l=function(){function a(){this.destroyMethods=[],this.listeners=[]}return a.prototype.addListener=function(a){this.listeners.push(a)},a.prototype.removeListener=function(a){g.Utils.removeFromArray(this.listeners,a)},a.prototype.init=function(){var a=this.onFocus.bind(this),b=this.gridCore.getRootGui();b.addEventListener("focus",a,!0),this.destroyMethods.push(function(){b.removeEventListener("focus",a)})},a.prototype.onFocus=function(a){var b=this.getCellForFocus(a);b&&this.informListeners({gridCell:b})},a.prototype.getCellForFocus=function(a){function i(a){var b=g.Utils.getElementAttribute(a,"row");g.Utils.exists(b)&&g.Utils.containsClass(a,"ag-row")&&(0===b.indexOf("ft")?(d=j.Constants.FLOATING_TOP,b=b.substr(3)):0===b.indexOf("fb")?(d=j.Constants.FLOATING_BOTTOM,b=b.substr(3)):d=null,c=parseInt(b))}function l(a){var c=g.Utils.getElementAttribute(a,"colid");if(g.Utils.exists(c)&&g.Utils.containsClass(a,"ag-cell")){var d=e.columnController.getGridColumn(c);d&&(b=d)}}for(var b=null,c=null,d=null,e=this,f=a.target;f;)i(f),l(f),f=f.parentNode;if(g.Utils.exists(b)&&g.Utils.exists(c)){var h=new k.GridCell(c,d,b);return h}return null},a.prototype.informListeners=function(a){this.listeners.forEach(function(b){return b(a)})},a.prototype.destroy=function(){this.destroyMethods.forEach(function(a){return a()})},d([f.Autowired("gridCore"),e("design:type",h.GridCore)],a.prototype,"gridCore",void 0),d([f.Autowired("columnController"),e("design:type",i.ColumnController)],a.prototype,"columnController",void 0),d([f.PostConstruct,e("design:type",Function),e("design:paramtypes",[]),e("design:returntype",void 0)],a.prototype,"init",null),d([f.PreDestroy,e("design:type",Function),e("design:paramtypes",[]),e("design:returntype",void 0)],a.prototype,"destroy",null),a=d([f.Bean("focusService"),e("design:paramtypes",[])],a)}();b.FocusService=l},function(a,b,c){var d=this&&this.__decorate||function(a,b,c,d){var g,e=arguments.length,f=e<3?b:null===d?d=Object.getOwnPropertyDescriptor(b,c):d;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)f=Reflect.decorate(a,b,c,d);else for(var h=a.length-1;h>=0;h--)(g=a[h])&&(f=(e<3?g(f):e>3?g(b,c,f):g(b,c))||f);return e>3&&f&&Object.defineProperty(b,c,f),f},e=this&&this.__metadata||function(a,b){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(a,b)},f=this&&this.__param||function(a,b){return function(c,d){b(c,d,a)}},g=c(5),h=c(43),i=c(15),j=c(25),k=c(45),l=c(6),m=c(26),n=c(7),o=c(10),p=c(46),q=c(12),r=c(32),s=c(8),t=c(37),u=c(49),v=function(){function a(a){this.destroyFunctions=[],this.logger=a.create("GridCore")}return a.prototype.init=function(){var b,a=this,c=this.createSouthPanel();this.toolPanel&&!this.gridOptionsWrapper.isForPrint()&&(b=this.toolPanel.getGui());var d=this.createNorthPanel();this.eRootPanel=new r.BorderLayout({center:this.gridPanel.getLayout(),east:b,north:d,south:c,dontFill:this.gridOptionsWrapper.isForPrint(),name:"eRootPanel"}),this.showToolPanel(this.gridOptionsWrapper.isShowToolPanel()),this.eGridDiv.appendChild(this.eRootPanel.getGui()),this.$scope&&this.$scope.$watch(this.quickFilterOnScope,function(b){return a.filterManager.setQuickFilter(b)}),this.gridOptionsWrapper.isForPrint()||this.addWindowResizeListener(),this.doLayout(),this.finished=!1,this.periodicallyDoLayout(),this.eventService.addEventListener(q.Events.EVENT_COLUMN_ROW_GROUP_CHANGED,this.onRowGroupChanged.bind(this)),this.eventService.addEventListener(q.Events.EVENT_COLUMN_EVERYTHING_CHANGED,this.onRowGroupChanged.bind(this)),this.onRowGroupChanged(),this.logger.log("ready")},a.prototype.createNorthPanel=function(){var a=this;if(!this.gridOptionsWrapper.isEnterprise())return null;var b=document.createElement("div"),c=this.onDropPanelVisible.bind(this);return this.rowGroupComp=this.rowGroupCompFactory.create(),this.pivotComp=this.pivotCompFactory.create(),b.appendChild(this.rowGroupComp.getGui()),b.appendChild(this.pivotComp.getGui()),this.rowGroupComp.addEventListener(u.Component.EVENT_VISIBLE_CHANGED,c),this.pivotComp.addEventListener(u.Component.EVENT_VISIBLE_CHANGED,c),this.destroyFunctions.push(function(){a.rowGroupComp.removeEventListener(u.Component.EVENT_VISIBLE_CHANGED,c),a.pivotComp.removeEventListener(u.Component.EVENT_VISIBLE_CHANGED,c)}),this.onDropPanelVisible(),b},a.prototype.onDropPanelVisible=function(){var a=this.rowGroupComp.isVisible()&&this.pivotComp.isVisible();this.rowGroupComp.addOrRemoveCssClass("ag-width-half",a),this.pivotComp.addOrRemoveCssClass("ag-width-half",a)},a.prototype.getRootGui=function(){return this.eRootPanel.getGui()},a.prototype.createSouthPanel=function(){!this.statusBar&&this.gridOptionsWrapper.isEnableStatusBar()&&console.warn("ag-Grid: status bar is only available in ag-Grid-Enterprise");var a=this.statusBar&&this.gridOptionsWrapper.isEnableStatusBar(),b=this.gridOptionsWrapper.isRowModelPagination()&&!this.gridOptionsWrapper.isForPrint();if(!a&&!b)return null;var c=document.createElement("div");return a&&c.appendChild(this.statusBar.getGui()),b&&c.appendChild(this.paginationController.getGui()),c},a.prototype.onRowGroupChanged=function(){if(this.rowGroupComp){var a=this.gridOptionsWrapper.getRowGroupPanelShow();if(a===o.Constants.ALWAYS)this.rowGroupComp.setVisible(!0);else if(a===o.Constants.ONLY_WHEN_GROUPING){var b=!this.columnController.isRowGroupEmpty();this.rowGroupComp.setVisible(b)}else this.rowGroupComp.setVisible(!1);this.eRootPanel.doLayout()}},a.prototype.addWindowResizeListener=function(){var a=this.doLayout.bind(this);window.addEventListener("resize",a),this.destroyFunctions.push(function(){return window.removeEventListener("resize",a)})},a.prototype.periodicallyDoLayout=function(){var a=this;if(!this.finished){var b=this.gridOptionsWrapper.getLayoutInterval();b>0?setTimeout(function(){a.doLayout(),a.gridPanel.periodicallyCheck(),a.periodicallyDoLayout()},b):setTimeout(function(){a.periodicallyDoLayout()},5e3)}},a.prototype.showToolPanel=function(a){return a&&!this.toolPanel?(console.warn("ag-Grid: toolPanel is only available in ag-Grid Enterprise"),void(this.toolPanelShowing=!1)):(this.toolPanelShowing=a,void(this.toolPanel&&(this.toolPanel.setVisible(a),this.eRootPanel.doLayout())))},a.prototype.isToolPanelShowing=function(){return this.toolPanelShowing},a.prototype.destroy=function(){this.finished=!0,this.eGridDiv.removeChild(this.eRootPanel.getGui()),this.logger.log("Grid DOM removed"),this.destroyFunctions.forEach(function(a){return a()})},a.prototype.ensureNodeVisible=function(a){if(this.doingVirtualPaging)throw"Cannot use ensureNodeVisible when doing virtual paging, as we cannot check rows that are not in memory";for(var b=this.rowModel.getRowCount(),c="function"==typeof a,d=-1,e=0;e<b;e++){var f=this.rowModel.getRow(e);if(c){if(a(f)){d=e;break}}else if(a===f||a===f.data){d=e;break}}d>=0&&this.gridPanel.ensureIndexVisible(d)},a.prototype.doLayout=function(){var a=this.eRootPanel.doLayout();if(a){this.rowRenderer.drawVirtualRows();var b={clientWidth:this.eRootPanel.getGui().clientWidth,clientHeight:this.eRootPanel.getGui().clientHeight};this.eventService.dispatchEvent(q.Events.EVENT_GRID_SIZE_CHANGED,b)}},d([s.Autowired("gridOptions"),e("design:type",Object)],a.prototype,"gridOptions",void 0),d([s.Autowired("gridOptionsWrapper"),e("design:type",g.GridOptionsWrapper)],a.prototype,"gridOptionsWrapper",void 0),d([s.Autowired("paginationController"),e("design:type",h.PaginationController)],a.prototype,"paginationController",void 0),d([s.Autowired("rowModel"),e("design:type",Object)],a.prototype,"rowModel",void 0),d([s.Autowired("columnController"),e("design:type",i.ColumnController)],a.prototype,"columnController",void 0),d([s.Autowired("rowRenderer"),e("design:type",j.RowRenderer)],a.prototype,"rowRenderer",void 0),d([s.Autowired("filterManager"),e("design:type",k.FilterManager)],a.prototype,"filterManager",void 0),d([s.Autowired("eventService"),e("design:type",l.EventService)],a.prototype,"eventService",void 0),d([s.Autowired("gridPanel"),e("design:type",m.GridPanel)],a.prototype,"gridPanel",void 0),d([s.Autowired("eGridDiv"),e("design:type",HTMLElement)],a.prototype,"eGridDiv",void 0),d([s.Autowired("$scope"),e("design:type",Object)],a.prototype,"$scope",void 0),d([s.Autowired("quickFilterOnScope"),e("design:type",String)],a.prototype,"quickFilterOnScope",void 0),d([s.Autowired("popupService"),e("design:type",p.PopupService)],a.prototype,"popupService",void 0),d([s.Autowired("focusedCellController"),e("design:type",t.FocusedCellController)],a.prototype,"focusedCellController",void 0),d([s.Optional("rowGroupCompFactory"),e("design:type",Object)],a.prototype,"rowGroupCompFactory",void 0),d([s.Optional("pivotCompFactory"),e("design:type",Object)],a.prototype,"pivotCompFactory",void 0),d([s.Optional("toolPanel"),e("design:type",u.Component)],a.prototype,"toolPanel",void 0),d([s.Optional("statusBar"),e("design:type",u.Component)],a.prototype,"statusBar",void 0),d([s.PostConstruct,e("design:type",Function),e("design:paramtypes",[]),e("design:returntype",void 0)],a.prototype,"init",null),d([s.PreDestroy,e("design:type",Function),e("design:paramtypes",[]),e("design:returntype",void 0)],a.prototype,"destroy",null),a=d([s.Bean("gridCore"),f(0,s.Qualifier("loggerFactory")),e("design:paramtypes",[n.LoggerFactory])],a)}();b.GridCore=v},function(a,b,c){var d=this&&this.__decorate||function(a,b,c,d){var g,e=arguments.length,f=e<3?b:null===d?d=Object.getOwnPropertyDescriptor(b,c):d;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)f=Reflect.decorate(a,b,c,d);else for(var h=a.length-1;h>=0;h--)(g=a[h])&&(f=(e<3?g(f):e>3?g(b,c,f):g(b,c))||f);return e>3&&f&&Object.defineProperty(b,c,f),f},e=this&&this.__metadata||function(a,b){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(a,b)},f=c(9),g=c(5),h=c(8),i=c(26),j=c(30),k=c(44),l=c(6),m=c(12),n=c(45),o=c(10),p='<div class="ag-paging-panel ag-font-style"><span id="pageRowSummaryPanel" class="ag-paging-row-summary-panel"><span id="firstRowOnPage"></span> [TO] <span id="lastRowOnPage"></span> [OF] <span id="recordCount"></span></span><span class="ag-paging-page-summary-panel"><button type="button" class="ag-paging-button" id="btFirst">[FIRST]</button><button type="button" class="ag-paging-button" id="btPrevious">[PREVIOUS]</button>[PAGE] <span id="current"></span> [OF] <span id="total"></span><button type="button" class="ag-paging-button" id="btNext">[NEXT]</button><button type="button" class="ag-paging-button" id="btLast">[LAST]</button></span></div>',q=function(){function a(){}return a.prototype.init=function(){var a=this;this.rowModel.getType()===o.Constants.ROW_MODEL_TYPE_NORMAL&&(this.inMemoryRowModel=this.rowModel),this.setupComponents(),this.callVersion=0;var b=this.gridOptionsWrapper.isRowModelPagination();this.eventService.addEventListener(m.Events.EVENT_FILTER_CHANGED,function(){b&&a.gridOptionsWrapper.isEnableServerSideFilter()&&a.reset(!1)}),this.eventService.addEventListener(m.Events.EVENT_SORT_CHANGED,function(){b&&a.gridOptionsWrapper.isEnableServerSideSorting()&&a.reset(!1)}),b&&this.gridOptionsWrapper.getDatasource()&&this.setDatasource(this.gridOptionsWrapper.getDatasource())},a.prototype.setDatasource=function(a){this.datasource=a,a&&this.reset(!0)},a.prototype.checkForDeprecated=function(){var a=this.datasource;f.Utils.exists(a.pageSize)&&console.error("ag-Grid: since version 5.1.x, pageSize is replaced with grid property paginationPageSize")},a.prototype.reset=function(a){if(!f.Utils.missing(this.datasource)){this.checkForDeprecated();var b=f.Utils.exists(this.gridOptionsWrapper.getRowNodeIdFunc()),c=a||!b;c&&this.selectionController.reset(),this.pageSize=this.gridOptionsWrapper.getPaginationPageSize(),this.pageSize>=1||(this.pageSize=100),"number"==typeof this.datasource.rowCount&&this.datasource.rowCount>=0?(this.rowCount=this.datasource.rowCount,this.foundMaxRow=!0,this.calculateTotalPages()):(this.rowCount=0,this.foundMaxRow=!1,this.totalPages=null),this.currentPage=0,this.ePageRowSummaryPanel.style.visibility="hidden",this.setTotalLabels(),this.loadPage()}},a.prototype.myToLocaleString=function(a){return"number"!=typeof a?"":a.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,")},a.prototype.setTotalLabels=function(){if(this.foundMaxRow)this.lbTotal.innerHTML=this.myToLocaleString(this.totalPages),this.lbRecordCount.innerHTML=this.myToLocaleString(this.rowCount);else{var a=this.gridOptionsWrapper.getLocaleTextFunc()("more","more");this.lbTotal.innerHTML=a,this.lbRecordCount.innerHTML=a}},a.prototype.calculateTotalPages=function(){this.totalPages=Math.floor((this.rowCount-1)/this.pageSize)+1},a.prototype.pageLoaded=function(a,b){var c=this.currentPage*this.pageSize;this.inMemoryRowModel.setRowData(a,!0,c),!this.foundMaxRow&&"number"==typeof b&&b>=0&&(this.foundMaxRow=!0,this.rowCount=b,this.calculateTotalPages(),this.setTotalLabels(),this.currentPage>this.totalPages&&(this.currentPage=this.totalPages-1,this.loadPage())),this.enableOrDisableButtons(),this.updateRowLabels()},a.prototype.updateRowLabels=function(){var a,b;this.isZeroPagesToDisplay()?(a=0,b=0):(a=this.pageSize*this.currentPage+1,b=a+this.pageSize-1,this.foundMaxRow&&b>this.rowCount&&(b=this.rowCount)),this.lbFirstRowOnPage.innerHTML=this.myToLocaleString(a),this.lbLastRowOnPage.innerHTML=this.myToLocaleString(b),this.ePageRowSummaryPanel.style.visibility=""},a.prototype.loadPage=function(){function k(a,b){e.isCallDaemon(d)||e.pageLoaded(a,b)}function l(){e.isCallDaemon(d)||e.inMemoryRowModel.setRowData([],!0)}var a=this;this.enableOrDisableButtons();var b=this.currentPage*this.pageSize,c=(this.currentPage+1)*this.pageSize;this.lbCurrent.innerHTML=this.myToLocaleString(this.currentPage+1),this.callVersion++;var d=this.callVersion,e=this;this.gridPanel.showLoadingOverlay();var g;this.gridOptionsWrapper.isEnableServerSideSorting()&&(g=this.sortController.getSortModel());var h;this.gridOptionsWrapper.isEnableServerSideFilter()&&(h=this.filterManager.getFilterModel());var i={startRow:b,endRow:c,successCallback:k,failCallback:l,sortModel:g,filterModel:h,context:this.gridOptionsWrapper.getContext()},j=f.Utils.getFunctionParameters(this.datasource.getRows);j.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.")),setTimeout(function(){a.datasource.getRows(i)},0)},a.prototype.isCallDaemon=function(a){return a!==this.callVersion},a.prototype.onBtNext=function(){this.currentPage++,this.loadPage()},a.prototype.onBtPrevious=function(){this.currentPage--,this.loadPage()},a.prototype.onBtFirst=function(){this.currentPage=0,this.loadPage()},a.prototype.onBtLast=function(){this.currentPage=this.totalPages-1,this.loadPage()},a.prototype.isZeroPagesToDisplay=function(){return this.foundMaxRow&&0===this.totalPages},a.prototype.enableOrDisableButtons=function(){var a=0===this.currentPage;this.btPrevious.disabled=a,this.btFirst.disabled=a;var b=this.isZeroPagesToDisplay(),c=this.foundMaxRow&&this.currentPage===this.totalPages-1,d=c||b;this.btNext.disabled=d;var e=!this.foundMaxRow||b||this.currentPage===this.totalPages-1;this.btLast.disabled=e},a.prototype.createTemplate=function(){var a=this.gridOptionsWrapper.getLocaleTextFunc();return p.replace("[PAGE]",a("page","Page")).replace("[TO]",a("to","to")).replace("[OF]",a("of","of")).replace("[OF]",a("of","of")).replace("[FIRST]",a("first","First")).replace("[PREVIOUS]",a("previous","Previous")).replace("[NEXT]",a("next","Next")).replace("[LAST]",a("last","Last"))},a.prototype.getGui=function(){return this.eGui},a.prototype.setupComponents=function(){this.eGui=f.Utils.loadTemplate(this.createTemplate()),this.btNext=this.eGui.querySelector("#btNext"),this.btPrevious=this.eGui.querySelector("#btPrevious"),this.btFirst=this.eGui.querySelector("#btFirst"),this.btLast=this.eGui.querySelector("#btLast"),this.lbCurrent=this.eGui.querySelector("#current"),this.lbTotal=this.eGui.querySelector("#total"),this.lbRecordCount=this.eGui.querySelector("#recordCount"),this.lbFirstRowOnPage=this.eGui.querySelector("#firstRowOnPage"),this.lbLastRowOnPage=this.eGui.querySelector("#lastRowOnPage"),this.ePageRowSummaryPanel=this.eGui.querySelector("#pageRowSummaryPanel");var a=this;this.btNext.addEventListener("click",function(){
a.onBtNext()}),this.btPrevious.addEventListener("click",function(){a.onBtPrevious()}),this.btFirst.addEventListener("click",function(){a.onBtFirst()}),this.btLast.addEventListener("click",function(){a.onBtLast()})},d([h.Autowired("filterManager"),e("design:type",n.FilterManager)],a.prototype,"filterManager",void 0),d([h.Autowired("gridPanel"),e("design:type",i.GridPanel)],a.prototype,"gridPanel",void 0),d([h.Autowired("gridOptionsWrapper"),e("design:type",g.GridOptionsWrapper)],a.prototype,"gridOptionsWrapper",void 0),d([h.Autowired("selectionController"),e("design:type",j.SelectionController)],a.prototype,"selectionController",void 0),d([h.Autowired("sortController"),e("design:type",k.SortController)],a.prototype,"sortController",void 0),d([h.Autowired("eventService"),e("design:type",l.EventService)],a.prototype,"eventService",void 0),d([h.Autowired("rowModel"),e("design:type",Object)],a.prototype,"rowModel",void 0),d([h.PostConstruct,e("design:type",Function),e("design:paramtypes",[]),e("design:returntype",void 0)],a.prototype,"init",null),a=d([h.Bean("paginationController"),e("design:paramtypes",[])],a)}();b.PaginationController=q},function(a,b,c){var d=this&&this.__decorate||function(a,b,c,d){var g,e=arguments.length,f=e<3?b:null===d?d=Object.getOwnPropertyDescriptor(b,c):d;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)f=Reflect.decorate(a,b,c,d);else for(var h=a.length-1;h>=0;h--)(g=a[h])&&(f=(e<3?g(f):e>3?g(b,c,f):g(b,c))||f);return e>3&&f&&Object.defineProperty(b,c,f),f},e=this&&this.__metadata||function(a,b){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(a,b)},f=c(17),g=c(8),h=c(5),i=c(15),j=c(6),k=c(12),l=c(8),m=c(9),n=function(){function a(){}return a.prototype.progressSort=function(a,b){a.setSort(this.getNextSortDirection(a)),a.getSort()?a.setSortedAt((new Date).valueOf()):a.setSortedAt(null);var c=b&&!this.gridOptionsWrapper.isSuppressMultiSort();c||this.clearSortBarThisColumn(a),this.dispatchSortChangedEvents()},a.prototype.dispatchSortChangedEvents=function(){this.eventService.dispatchEvent(k.Events.EVENT_BEFORE_SORT_CHANGED),this.eventService.dispatchEvent(k.Events.EVENT_SORT_CHANGED),this.eventService.dispatchEvent(k.Events.EVENT_AFTER_SORT_CHANGED)},a.prototype.clearSortBarThisColumn=function(a){this.columnController.getPrimaryAndSecondaryAndAutoColumns().forEach(function(b){b!==a&&b.setSort(null)})},a.prototype.getNextSortDirection=function(b){var c;if(c=b.getColDef().sortingOrder?b.getColDef().sortingOrder:this.gridOptionsWrapper.getSortingOrder()?this.gridOptionsWrapper.getSortingOrder():a.DEFAULT_SORTING_ORDER,!Array.isArray(c)||c.length<=0)return void console.warn("ag-grid: sortingOrder must be an array with at least one element, currently it's "+c);var g,d=c.indexOf(b.getSort()),e=d<0,f=d==c.length-1;return g=e||f?c[0]:c[d+1],a.DEFAULT_SORTING_ORDER.indexOf(g)<0?(console.warn("ag-grid: invalid sort type "+g),null):g},a.prototype.getSortModel=function(){var a=this.getColumnsWithSortingOrdered();return m.Utils.map(a,function(a){return{colId:a.getColId(),sort:a.getSort()}})},a.prototype.setSortModel=function(a){if(!this.gridOptionsWrapper.isEnableSorting())return void console.warn("ag-grid: You are setting the sort model on a grid that does not have sorting enabled");var b=a&&a.length>0,c=this.columnController.getPrimaryAndSecondaryAndAutoColumns();c.forEach(function(c){var d=null,e=-1;if(b&&!c.getColDef().suppressSorting)for(var f=0;f<a.length;f++){var g=a[f];"string"==typeof g.colId&&"string"==typeof c.getColId()&&g.colId===c.getColId()&&(d=g.sort,e=f)}d?(c.setSort(d),c.setSortedAt(e)):(c.setSort(null),c.setSortedAt(null))}),this.dispatchSortChangedEvents()},a.prototype.getColumnsWithSortingOrdered=function(){var a=this.columnController.getPrimaryAndSecondaryAndAutoColumns(),b=m.Utils.filter(a,function(a){return!!a.getSort()});return b.sort(function(a,b){return a.sortedAt-b.sortedAt}),b},a.prototype.getSortForRowController=function(){var a=this.getColumnsWithSortingOrdered();return m.Utils.map(a,function(a){var b=a.getSort()===f.Column.SORT_ASC;return{inverter:b?1:-1,column:a}})},a.DEFAULT_SORTING_ORDER=[f.Column.SORT_ASC,f.Column.SORT_DESC,null],d([g.Autowired("gridOptionsWrapper"),e("design:type",h.GridOptionsWrapper)],a.prototype,"gridOptionsWrapper",void 0),d([g.Autowired("columnController"),e("design:type",i.ColumnController)],a.prototype,"columnController",void 0),d([g.Autowired("eventService"),e("design:type",j.EventService)],a.prototype,"eventService",void 0),a=d([l.Bean("sortController"),e("design:paramtypes",[])],a)}();b.SortController=n},function(a,b,c){var d=this&&this.__decorate||function(a,b,c,d){var g,e=arguments.length,f=e<3?b:null===d?d=Object.getOwnPropertyDescriptor(b,c):d;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)f=Reflect.decorate(a,b,c,d);else for(var h=a.length-1;h>=0;h--)(g=a[h])&&(f=(e<3?g(f):e>3?g(b,c,f):g(b,c))||f);return e>3&&f&&Object.defineProperty(b,c,f),f},e=this&&this.__metadata||function(a,b){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(a,b)},f=c(9),g=c(5),h=c(46),i=c(31),j=c(15),k=c(47),l=c(48),m=c(8),n=c(6),o=c(12),p=function(){function a(){this.allFilters={},this.quickFilter=null,this.availableFilters={text:k.TextFilter,number:l.NumberFilter}}return a.prototype.init=function(){this.eventService.addEventListener(o.Events.EVENT_ROW_DATA_CHANGED,this.onNewRowsLoaded.bind(this)),this.eventService.addEventListener(o.Events.EVENT_NEW_COLUMNS_LOADED,this.onNewColumnsLoaded.bind(this)),this.quickFilter=this.parseQuickFilter(this.gridOptionsWrapper.getQuickFilterText()),this.checkExternalFilter()},a.prototype.registerFilter=function(a,b){this.availableFilters[a]=b},a.prototype.setFilterModel=function(a){var b=this;if(a){var c=Object.keys(a);f.Utils.iterateObject(this.allFilters,function(d,e){f.Utils.removeFromArray(c,d);var g=a[d];b.setModelOnFilterWrapper(e.filter,g)}),f.Utils.iterateArray(c,function(c){var d=b.columnController.getPrimaryColumn(c);if(!d)return void console.warn("Warning ag-grid setFilterModel - no column found for colId "+c);var e=b.getOrCreateFilterWrapper(d);b.setModelOnFilterWrapper(e.filter,a[c])})}else f.Utils.iterateObject(this.allFilters,function(a,c){b.setModelOnFilterWrapper(c.filter,null)});this.onFilterChanged()},a.prototype.setModelOnFilterWrapper=function(a,b){return"function"!=typeof a.setModel?void console.warn("Warning ag-grid - filter missing setModel method, which is needed for setFilterModel"):void a.setModel(b)},a.prototype.getFilterModel=function(){var a={};return f.Utils.iterateObject(this.allFilters,function(b,c){var d=c.filter;if("function"!=typeof d.getModel)return void console.warn("Warning ag-grid - filter API missing getModel method, which is needed for getFilterModel");var e=d.getModel();f.Utils.exists(e)&&(a[b]=e)}),a},a.prototype.isAdvancedFilterPresent=function(){var a=!1;return f.Utils.iterateObject(this.allFilters,function(b,c){c.filter.isFilterActive()&&(a=!0)}),a},a.prototype.updateFilterFlagInColumns=function(){f.Utils.iterateObject(this.allFilters,function(a,b){var c=b.filter.isFilterActive();b.column.setFilterActive(c)})},a.prototype.isAnyFilterPresent=function(){return this.isQuickFilterPresent()||this.advancedFilterPresent||this.externalFilterPresent},a.prototype.doesFilterPass=function(a,b){for(var c=a.data,d=Object.keys(this.allFilters),e=0,f=d.length;e<f;e++){var g=d[e],h=this.allFilters[g];if(void 0!==h&&h.filter!==b&&h.filter.isFilterActive()){h.filter.doesFilterPass||console.error("Filter is missing method doesFilterPass");var i={node:a,data:c};if(!h.filter.doesFilterPass(i))return!1}}return!0},a.prototype.parseQuickFilter=function(a){return f.Utils.missing(a)||""===a?null:this.gridOptionsWrapper.isRowModelVirtual()?(console.warn("ag-grid: cannot do quick filtering when doing virtual paging"),null):a.toUpperCase()},a.prototype.setQuickFilter=function(a){var b=this.parseQuickFilter(a);this.quickFilter!==b&&(this.quickFilter=b,this.onFilterChanged())},a.prototype.checkExternalFilter=function(){this.externalFilterPresent=this.gridOptionsWrapper.isExternalFilterPresent()},a.prototype.onFilterChanged=function(){this.eventService.dispatchEvent(o.Events.EVENT_BEFORE_FILTER_CHANGED),this.advancedFilterPresent=this.isAdvancedFilterPresent(),this.updateFilterFlagInColumns(),this.checkExternalFilter(),f.Utils.iterateObject(this.allFilters,function(a,b){b.filter.onAnyFilterChanged&&b.filter.onAnyFilterChanged()}),this.eventService.dispatchEvent(o.Events.EVENT_FILTER_CHANGED),this.eventService.dispatchEvent(o.Events.EVENT_AFTER_FILTER_CHANGED)},a.prototype.isQuickFilterPresent=function(){return null!==this.quickFilter},a.prototype.doesRowPassOtherFilters=function(a,b){return this.doesRowPassFilter(b,a)},a.prototype.doesRowPassFilter=function(a,b){return!(this.isQuickFilterPresent()&&(a.quickFilterAggregateText||this.aggregateRowForQuickFilter(a),a.quickFilterAggregateText.indexOf(this.quickFilter)<0))&&(!(this.externalFilterPresent&&!this.gridOptionsWrapper.doesExternalFilterPass(a))&&!(this.advancedFilterPresent&&!this.doesFilterPass(a,b)))},a.prototype.aggregateRowForQuickFilter=function(a){var b=this,c=[],d=this.columnController.getAllPrimaryColumns();d.forEach(function(d){var f,e=b.valueService.getValue(d,a),g=d.getColDef();if(d.getColDef().getQuickFilterText){var h={value:e,node:a,data:a.data,column:d,colDef:g};f=d.getColDef().getQuickFilterText(h)}else f=e;f&&""!==f&&c.push(f.toString().toUpperCase())}),a.quickFilterAggregateText=c.join("_")},a.prototype.onNewRowsLoaded=function(){f.Utils.iterateObject(this.allFilters,function(a,b){b.filter.onNewRowsLoaded&&b.filter.onNewRowsLoaded()}),this.updateFilterFlagInColumns()},a.prototype.createValueGetter=function(a){var b=this;return function(d){return b.valueService.getValue(a,d)}},a.prototype.getFilterComponent=function(a){var b=this.getOrCreateFilterWrapper(a);return b.filter},a.prototype.getOrCreateFilterWrapper=function(a){var b=this.allFilters[a.getColId()];return b||(b=this.createFilterWrapper(a),this.allFilters[a.getColId()]=b),b},a.prototype.createFilterInstance=function(a){var e,b=a.getFilter(),c="function"==typeof b,d=f.Utils.missing(b)||"string"==typeof b;if(c)e=b,this.assertMethodHasNoParameters(e);else{if(!d)return console.error("ag-Grid: colDef.filter should be function or a string"),null;var g=b;e=this.getFilterFromCache(g)}var h=new e;return this.checkFilterHasAllMandatoryMethods(h,a),this.context.wireBean(h),h},a.prototype.checkFilterHasAllMandatoryMethods=function(a,b){["getGui","isFilterActive","doesFilterPass","getModel","setModel"].forEach(function(c){var d=!a[c];if(d)throw"Filter for column "+b.getColId()+" is missing method "+c})},a.prototype.createParams=function(a){var b=this,c=this.onFilterChanged.bind(this),d=function(){return b.eventService.dispatchEvent(o.Events.EVENT_FILTER_MODIFIED)},e=this.doesRowPassOtherFilters.bind(this,a.filter),g=a.column.getColDef(),h={column:a.column,colDef:g,rowModel:this.rowModel,filterChangedCallback:c,filterModifiedCallback:d,valueGetter:this.createValueGetter(a.column),doesRowPassOtherFilter:e,context:this.gridOptionsWrapper.getContext(),$scope:a.scope};return g.filterParams&&f.Utils.assign(h,g.filterParams),h},a.prototype.createFilterWrapper=function(a){var b={column:a,filter:null,scope:null,gui:null};return b.filter=this.createFilterInstance(a),this.initialiseFilterAndPutIntoGui(b),b},a.prototype.initialiseFilterAndPutIntoGui=function(a){this.gridOptionsWrapper.isAngularCompileFilters()&&(a.scope=this.$scope.$new(),a.scope.context=this.gridOptionsWrapper.getContext());var b=this.createParams(a);a.filter.init(b);var c=document.createElement("div");c.className="ag-filter";var d=a.filter.getGui();if(f.Utils.isNodeOrElement(d))c.appendChild(d);else{var e=document.createElement("span");e.innerHTML=d,c.appendChild(e)}a.scope?a.gui=this.$compile(c)(a.scope)[0]:a.gui=c},a.prototype.getFilterFromCache=function(a){var b=this.enterprise?"set":"text",c=this.availableFilters[b];return f.Utils.missing(a)?c:(this.enterprise||"set"!==a||(console.warn("ag-Grid: Set filter is only available in Enterprise ag-Grid"),a="text"),this.availableFilters[a]?this.availableFilters[a]:(console.error("ag-Grid: Could not find filter type "+a),this.availableFilters[c]))},a.prototype.onNewColumnsLoaded=function(){this.destroy()},a.prototype.destroyFilter=function(a){var b=this.allFilters[a.getColId()];b&&(this.disposeFilterWrapper(b),this.onFilterChanged())},a.prototype.disposeFilterWrapper=function(a){a.filter.destroy&&a.filter.destroy(),a.column.setFilterActive(!1),delete this.allFilters[a.column.getColId()]},a.prototype.destroy=function(){var a=this;f.Utils.iterateObject(this.allFilters,function(b,c){a.disposeFilterWrapper(c)})},a.prototype.assertMethodHasNoParameters=function(a){var b=f.Utils.getFunctionParameters(a);b.length>0&&(console.warn("ag-grid: It looks like your filter is of the old type and expecting parameters in the constructor."),console.warn("ag-grid: From ag-grid 1.14, the constructor should take no parameters and init() used instead."))},d([m.Autowired("$compile"),e("design:type",Object)],a.prototype,"$compile",void 0),d([m.Autowired("$scope"),e("design:type",Object)],a.prototype,"$scope",void 0),d([m.Autowired("gridOptionsWrapper"),e("design:type",g.GridOptionsWrapper)],a.prototype,"gridOptionsWrapper",void 0),d([m.Autowired("gridCore"),e("design:type",Object)],a.prototype,"gridCore",void 0),d([m.Autowired("popupService"),e("design:type",h.PopupService)],a.prototype,"popupService",void 0),d([m.Autowired("valueService"),e("design:type",i.ValueService)],a.prototype,"valueService",void 0),d([m.Autowired("columnController"),e("design:type",j.ColumnController)],a.prototype,"columnController",void 0),d([m.Autowired("rowModel"),e("design:type",Object)],a.prototype,"rowModel",void 0),d([m.Autowired("eventService"),e("design:type",n.EventService)],a.prototype,"eventService",void 0),d([m.Autowired("enterprise"),e("design:type",Boolean)],a.prototype,"enterprise",void 0),d([m.Autowired("context"),e("design:type",m.Context)],a.prototype,"context",void 0),d([m.PostConstruct,e("design:type",Function),e("design:paramtypes",[]),e("design:returntype",void 0)],a.prototype,"init",null),d([m.PreDestroy,e("design:type",Function),e("design:paramtypes",[]),e("design:returntype",void 0)],a.prototype,"destroy",null),a=d([m.Bean("filterManager"),e("design:paramtypes",[])],a)}();b.FilterManager=p},function(a,b,c){var d=this&&this.__decorate||function(a,b,c,d){var g,e=arguments.length,f=e<3?b:null===d?d=Object.getOwnPropertyDescriptor(b,c):d;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)f=Reflect.decorate(a,b,c,d);else for(var h=a.length-1;h>=0;h--)(g=a[h])&&(f=(e<3?g(f):e>3?g(b,c,f):g(b,c))||f);return e>3&&f&&Object.defineProperty(b,c,f),f},e=this&&this.__metadata||function(a,b){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(a,b)},f=c(9),g=c(10),h=c(8),i=c(42),j=function(){function a(){}return a.prototype.getPopupParent=function(){return this.gridCore.getRootGui()},a.prototype.positionPopupForMenu=function(a){var f,b=a.eventSource.getBoundingClientRect(),c=this.getPopupParent().getBoundingClientRect(),d=b.right-c.left-2,e=b.top-c.top;f=a.ePopup.clientWidth>0?a.ePopup.clientWidth:200;var g=c.right-c.left,h=g-f;d>h&&(d=b.left-c.left-f),d<0&&(d=0),a.ePopup.style.left=d+"px",a.ePopup.style.top=e+"px"},a.prototype.positionPopupUnderMouseEvent=function(a){var b=this.getPopupParent().getBoundingClientRect();this.positionPopup({ePopup:a.ePopup,x:a.mouseEvent.clientX-b.left,y:a.mouseEvent.clientY-b.top,keepWithinBounds:!0})},a.prototype.positionPopupUnderComponent=function(a){var b=a.eventSource.getBoundingClientRect(),c=this.getPopupParent().getBoundingClientRect();this.positionPopup({ePopup:a.ePopup,minWidth:a.minWidth,nudgeX:a.nudgeX,nudgeY:a.nudgeY,x:b.left-c.left,y:b.top-c.top+b.height,keepWithinBounds:a.keepWithinBounds})},a.prototype.positionPopupOverComponent=function(a){var b=a.eventSource.getBoundingClientRect(),c=this.getPopupParent().getBoundingClientRect();this.positionPopup({ePopup:a.ePopup,minWidth:a.minWidth,nudgeX:a.nudgeX,nudgeY:a.nudgeY,x:b.left-c.left,y:b.top-c.top,keepWithinBounds:a.keepWithinBounds})},a.prototype.positionPopup=function(a){function e(){var d;d=a.minWidth>0?a.minWidth:a.ePopup.clientWidth>0?a.ePopup.clientWidth:200;var e=b.right-b.left,f=e-d-5;c>f&&(c=f),c<0&&(c=0)}function f(){var c;c=a.ePopup.clientWidth>0?a.ePopup.clientHeight:200;var e=b.bottom-b.top,f=e-c-5;d>f&&(d=f),d<0&&(d=0)}var b=this.getPopupParent().getBoundingClientRect(),c=a.x,d=a.y;a.nudgeX&&(c+=a.nudgeX),a.nudgeY&&(d+=a.nudgeY),a.keepWithinBounds&&(e(),f()),a.ePopup.style.left=c+"px",a.ePopup.style.top=d+"px"},a.prototype.addAsModalPopup=function(a,b,c){function l(a){var b=a.which||a.keyCode;b===g.Constants.KEY_ESCAPE&&m(null)}function m(b){b&&b===j||b&&b===k||i||(i=!0,h.getPopupParent().removeChild(a),d.removeEventListener("keydown",l),d.removeEventListener("click",m),d.removeEventListener("touchstart",m),d.removeEventListener("contextmenu",m),a.removeEventListener("click",n),a.removeEventListener("touchstart",o),c&&c())}function n(a){j=a}function o(a){k=a}var d=document.body;if(!d)return void console.warn("ag-grid: could not find the body of the document, document.body is empty");a.style.top="0px",a.style.left="0px";var e=f.Utils.isVisible(a);if(!e){this.getPopupParent().appendChild(a);var h=this,i=!1;setTimeout(function(){b&&d.addEventListener("keydown",l),d.addEventListener("click",m),d.addEventListener("touchstart",m),d.addEventListener("contextmenu",m),a.addEventListener("click",n),a.addEventListener("touchstart",o)},0);var j=null,k=null;return m}},d([h.Autowired("gridCore"),e("design:type",i.GridCore)],a.prototype,"gridCore",void 0),a=d([h.Bean("popupService"),e("design:paramtypes",[])],a)}();b.PopupService=j},function(a,b,c){var d=this&&this.__decorate||function(a,b,c,d){var g,e=arguments.length,f=e<3?b:null===d?d=Object.getOwnPropertyDescriptor(b,c):d;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)f=Reflect.decorate(a,b,c,d);else for(var h=a.length-1;h>=0;h--)(g=a[h])&&(f=(e<3?g(f):e>3?g(b,c,f):g(b,c))||f);return e>3&&f&&Object.defineProperty(b,c,f),f},e=this&&this.__metadata||function(a,b){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(a,b)},f=c(9),g=c(8),h=c(5),i=function(){function a(){}return a.prototype.init=function(b){this.filterParams=b,this.applyActive=b.apply===!0,this.newRowsActionKeep="keep"===b.newRowsAction,this.filterText=null,this.filterType=a.CONTAINS,this.createGui()},a.prototype.onNewRowsLoaded=function(){this.newRowsActionKeep||(this.setType(a.CONTAINS),this.setFilter(null))},a.prototype.afterGuiAttached=function(){this.eFilterTextField.focus()},a.prototype.doesFilterPass=function(b){if(!this.filterText)return!0;var c=this.filterParams.valueGetter(b.node);if(!c)return!1;var d=c.toString().toLowerCase();switch(this.filterType){case a.CONTAINS:return d.indexOf(this.filterText)>=0;case a.EQUALS:return d===this.filterText;case a.NOT_EQUALS:return d!=this.filterText;case a.STARTS_WITH:return 0===d.indexOf(this.filterText);case a.ENDS_WITH:var e=d.lastIndexOf(this.filterText);return e>=0&&e===d.length-this.filterText.length;default:return console.warn("invalid filter type "+this.filterType),!1}},a.prototype.getGui=function(){return this.eGui},a.prototype.isFilterActive=function(){return null!==this.filterText},a.prototype.createTemplate=function(){var b=this.gridOptionsWrapper.getLocaleTextFunc();return'<div>\n <div>\n <select class="ag-filter-select" id="filterType">\n <option value="'+a.CONTAINS+'">'+b("contains","Contains")+'</option>\n <option value="'+a.EQUALS+'">'+b("equals","Equals")+'</option>\n <option value="'+a.NOT_EQUALS+'">'+b("notEquals","Not equals")+'</option>\n <option value="'+a.STARTS_WITH+'">'+b("startsWith","Starts with")+'</option>\n <option value="'+a.ENDS_WITH+'">'+b("endsWith","Ends with")+'</option>\n </select>\n </div>\n <div>\n <input class="ag-filter-filter" id="filterText" type="text" placeholder="'+b("filterOoo","Filter...")+'"/>\n </div>\n <div class="ag-filter-apply-panel" id="applyPanel">\n <button type="button" id="applyButton">'+b("applyFilter","Apply Filter")+"</button>\n </div>\n </div>"},a.prototype.createGui=function(){this.eGui=f.Utils.loadTemplate(this.createTemplate()),this.eFilterTextField=this.eGui.querySelector("#filterText"),this.eTypeSelect=this.eGui.querySelector("#filterType"),f.Utils.addChangeListener(this.eFilterTextField,this.onFilterChanged.bind(this)),this.eTypeSelect.addEventListener("change",this.onTypeChanged.bind(this)),this.setupApply()},a.prototype.setupApply=function(){var a=this;this.applyActive?(this.eApplyButton=this.eGui.querySelector("#applyButton"),this.eApplyButton.addEventListener("click",function(){a.filterParams.filterChangedCallback()})):f.Utils.removeElement(this.eGui,"#applyPanel")},a.prototype.onTypeChanged=function(){this.filterType=this.eTypeSelect.value,this.filterChanged()},a.prototype.onFilterChanged=function(){var a=f.Utils.makeNull(this.eFilterTextField.value);a&&""===a.trim()&&(a=null);var b;b=null!==a&&void 0!==a?a.toLowerCase():null,this.filterText!==b&&(this.filterText=b,this.filterChanged())},a.prototype.filterChanged=function(){this.filterParams.filterModifiedCallback(),this.applyActive||this.filterParams.filterChangedCallback()},a.prototype.setType=function(a){this.filterType=a,this.eTypeSelect.value=a},a.prototype.setFilter=function(a){a=f.Utils.makeNull(a),a?(this.filterText=a.toLowerCase(),this.eFilterTextField.value=a):(this.filterText=null,this.eFilterTextField.value=null)},a.prototype.getType=function(){return this.filterType},a.prototype.getFilter=function(){return this.filterText},a.prototype.getModel=function(){return this.isFilterActive()?{type:this.filterType,filter:this.filterText}:null},a.prototype.setModel=function(a){a?(this.setType(a.type),this.setFilter(a.filter)):this.setFilter(null)},a.CONTAINS="contains",a.EQUALS="equals",a.NOT_EQUALS="notEquals",a.STARTS_WITH="startsWith",a.ENDS_WITH="endsWith",d([g.Autowired("gridOptionsWrapper"),e("design:type",h.GridOptionsWrapper)],a.prototype,"gridOptionsWrapper",void 0),a}();b.TextFilter=i},function(a,b,c){var d=this&&this.__decorate||function(a,b,c,d){var g,e=arguments.length,f=e<3?b:null===d?d=Object.getOwnPropertyDescriptor(b,c):d;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)f=Reflect.decorate(a,b,c,d);else for(var h=a.length-1;h>=0;h--)(g=a[h])&&(f=(e<3?g(f):e>3?g(b,c,f):g(b,c))||f);return e>3&&f&&Object.defineProperty(b,c,f),f},e=this&&this.__metadata||function(a,b){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(a,b)},f=c(9),g=c(8),h=c(5),i=function(){function a(){}return a.prototype.init=function(b){this.filterParams=b,this.applyActive=b.apply===!0,this.newRowsActionKeep="keep"===b.newRowsAction,this.filterNumber=null,this.filterType=a.EQUALS,this.createGui()},a.prototype.onNewRowsLoaded=function(){this.newRowsActionKeep||(this.setType(a.EQUALS),this.setFilter(null))},a.prototype.afterGuiAttached=function(){this.eFilterTextField.focus()},a.prototype.doesFilterPass=function(b){if(null===this.filterNumber)return!0;var c=this.filterParams.valueGetter(b.node);if(!c&&0!==c)return!1;var d;switch(d="number"==typeof c?c:parseFloat(c),this.filterType){case a.EQUALS:return d===this.filterNumber;case a.LESS_THAN:return d<this.filterNumber;case a.GREATER_THAN:return d>this.filterNumber;case a.LESS_THAN_OR_EQUAL:return d<=this.filterNumber;case a.GREATER_THAN_OR_EQUAL:return d>=this.filterNumber;case a.NOT_EQUAL:return d!=this.filterNumber;default:return console.warn("invalid filter type "+this.filterType),!1}},a.prototype.getGui=function(){return this.eGui},a.prototype.isFilterActive=function(){return null!==this.filterNumber},a.prototype.createTemplate=function(){var b=this.gridOptionsWrapper.getLocaleTextFunc();return'<div>\n <div>\n <select class="ag-filter-select" id="filterType">\n <option value="'+a.EQUALS+'">'+b("equals","Equals")+'</option>\n <option value="'+a.NOT_EQUAL+'">'+b("notEqual","Not equal")+'</option>\n <option value="'+a.LESS_THAN+'">'+b("lessThan","Less than")+'</option>\n <option value="'+a.LESS_THAN_OR_EQUAL+'">'+b("lessThanOrEqual","Less than or equal")+'</option>\n <option value="'+a.GREATER_THAN+'">'+b("greaterThan","Greater than")+'</option>\n <option value="'+a.GREATER_THAN_OR_EQUAL+'">'+b("greaterThanOrEqual","Greater than or equal")+'</option>\n </select>\n </div>\n <div>\n <input class="ag-filter-filter" id="filterText" type="text" placeholder="'+b("filterOoo","Filter...")+'"/>\n </div>\n <div class="ag-filter-apply-panel" id="applyPanel">\n <button type="button" id="applyButton">'+b("applyFilter","Apply Filter")+"</button>\n </div>\n </div>"},a.prototype.createGui=function(){this.eGui=f.Utils.loadTemplate(this.createTemplate()),this.eFilterTextField=this.eGui.querySelector("#filterText"),this.eTypeSelect=this.eGui.querySelector("#filterType"),f.Utils.addChangeListener(this.eFilterTextField,this.onFilterChanged.bind(this)),this.eTypeSelect.addEventListener("change",this.onTypeChanged.bind(this)),this.setupApply()},a.prototype.setupApply=function(){var a=this;this.applyActive?(this.eApplyButton=this.eGui.querySelector("#applyButton"),this.eApplyButton.addEventListener("click",function(){a.filterParams.filterChangedCallback()})):f.Utils.removeElement(this.eGui,"#applyPanel")},a.prototype.onTypeChanged=function(){this.filterType=this.eTypeSelect.value,this.filterChanged()},a.prototype.filterChanged=function(){this.filterParams.filterModifiedCallback(),this.applyActive||this.filterParams.filterChangedCallback()},a.prototype.onFilterChanged=function(){var a=f.Utils.makeNull(this.eFilterTextField.value);a&&""===a.trim()&&(a=null);var b;b=null!==a&&void 0!==a?parseFloat(a):null,this.filterNumber!==b&&(this.filterNumber=b,this.filterChanged())},a.prototype.setType=function(a){this.filterType=a,this.eTypeSelect.value=a},a.prototype.setFilter=function(a){a=f.Utils.makeNull(a),null!==a&&"number"!=typeof a&&(a=parseFloat(a)),this.filterNumber=a,this.eFilterTextField.value=a},a.prototype.getFilter=function(){return this.filterNumber},a.prototype.getModel=function(){return this.isFilterActive()?{type:this.filterType,filter:this.filterNumber}:null},a.prototype.setModel=function(a){a?(this.setType(a.type),this.setFilter(a.filter)):this.setFilter(null)},a.EQUALS="equals",a.NOT_EQUAL="notEqual",a.LESS_THAN="lessThan",a.LESS_THAN_OR_EQUAL="lessThanOrEqual",a.GREATER_THAN="greaterThan",a.GREATER_THAN_OR_EQUAL="greaterThanOrEqual",d([g.Autowired("gridOptionsWrapper"),e("design:type",h.GridOptionsWrapper)],a.prototype,"gridOptionsWrapper",void 0),a}();b.NumberFilter=i},function(a,b,c){var d=c(9),e=c(6),f=c(5),g=function(){function a(a){this.destroyFunctions=[],this.childComponents=[],this.annotatedEventListeners=[],this.visible=!0,a&&this.setTemplate(a)}return a.prototype.instantiate=function(a){this.instantiateRecurse(this.getGui(),a)},a.prototype.instantiateRecurse=function(a,b){for(var c=a.childNodes?a.childNodes.length:0,d=0;d<c;d++){var e=a.childNodes[d],f=b.createComponent(e);f?this.swapComponentForNode(f,a,e):e.childNodes&&this.instantiateRecurse(e,b)}},a.prototype.swapComponentForNode=function(a,b,c){b.replaceChild(a.getGui(),c),this.childComponents.push(a),this.swapInComponentForQuerySelectors(a,c)},a.prototype.swapInComponentForQuerySelectors=function(a,b){var c=this.__agComponentMetaData;if(c&&c.querySelectors){var d=this;c.querySelectors.forEach(function(c){d[c.attributeName]===b&&(d[c.attributeName]=a)})}},a.prototype.setTemplate=function(a){this.eGui=d.Utils.loadTemplate(a),this.eGui.__agComponent=this,this.addAnnotatedEventListeners(),this.wireQuerySelectors()},a.prototype.wireQuerySelectors=function(){var a=this,b=this.__agComponentMetaData;if(b&&b.querySelectors&&this.eGui){var c=this;b.querySelectors.forEach(function(b){var d=a.eGui.querySelector(b.querySelector);if(d){var e=d.__agComponent;e?c[b.attributeName]=e:c[b.attributeName]=d}})}},a.prototype.addAnnotatedEventListeners=function(){var a=this;this.removeAnnotatedEventListeners();var b=this.__agComponentMetaData;b&&b.listenerMethods&&this.eGui&&(this.annotatedEventListeners||(this.annotatedEventListeners=[]),b.listenerMethods.forEach(function(b){var c=a[b.methodName].bind(a);a.eGui.addEventListener(b.eventName,c),a.annotatedEventListeners.push({eventName:b.eventName,listener:c})}))},a.prototype.removeAnnotatedEventListeners=function(){var a=this;this.annotatedEventListeners&&this.eGui&&(this.annotatedEventListeners.forEach(function(b){a.eGui.removeEventListener(b.eventName,b.listener)}),this.annotatedEventListeners=null)},a.prototype.addEventListener=function(a,b){this.localEventService||(this.localEventService=new e.EventService),this.localEventService.addEventListener(a,b)},a.prototype.removeEventListener=function(a,b){this.localEventService&&this.localEventService.removeEventListener(a,b)},a.prototype.dispatchEventAsync=function(a,b){var c=this;setTimeout(function(){return c.dispatchEvent(a,b)},0)},a.prototype.dispatchEvent=function(a,b){this.localEventService&&this.localEventService.dispatchEvent(a,b)},a.prototype.getGui=function(){return this.eGui},a.prototype.queryForHtmlElement=function(a){return this.eGui.querySelector(a)},a.prototype.queryForHtmlInputElement=function(a){return this.eGui.querySelector(a)},a.prototype.appendChild=function(a){if(d.Utils.isNodeOrElement(a))this.eGui.appendChild(a);else{var b=a;this.eGui.appendChild(b.getGui()),this.childComponents.push(b)}},a.prototype.isVisible=function(){return this.visible},a.prototype.setVisible=function(b){b!==this.visible&&(this.visible=b,d.Utils.addOrRemoveCssClass(this.eGui,"ag-hidden",!b),this.dispatchEvent(a.EVENT_VISIBLE_CHANGED,{visible:this.visible}))},a.prototype.addOrRemoveCssClass=function(a,b){d.Utils.addOrRemoveCssClass(this.eGui,a,b)},a.prototype.destroy=function(){this.childComponents.forEach(function(a){return a.destroy()}),this.destroyFunctions.forEach(function(a){return a()}),this.removeAnnotatedEventListeners()},a.prototype.addGuiEventListener=function(a,b){var c=this;this.getGui().addEventListener(a,b),this.destroyFunctions.push(function(){return c.getGui().removeEventListener(a,b)})},a.prototype.addDestroyableEventListener=function(a,b,c){a instanceof HTMLElement?a.addEventListener(b,c):a instanceof f.GridOptionsWrapper?a.addEventListener(b,c):a.addEventListener(b,c),this.destroyFunctions.push(function(){a instanceof HTMLElement?a.removeEventListener(b,c):a instanceof f.GridOptionsWrapper?a.removeEventListener(b,c):a.removeEventListener(b,c)})},a.prototype.addDestroyFunc=function(a){this.destroyFunctions.push(a)},a.prototype.addCssClass=function(a){d.Utils.addCssClass(this.getGui(),a)},a.prototype.getAttribute=function(a){var b=this.getGui();return b?b.getAttribute(a):null},a.EVENT_VISIBLE_CHANGED="visibleChanged",a}();b.Component=g},function(a,b,c){var d=this&&this.__decorate||function(a,b,c,d){var g,e=arguments.length,f=e<3?b:null===d?d=Object.getOwnPropertyDescriptor(b,c):d;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)f=Reflect.decorate(a,b,c,d);else for(var h=a.length-1;h>=0;h--)(g=a[h])&&(f=(e<3?g(f):e>3?g(b,c,f):g(b,c))||f);
return e>3&&f&&Object.defineProperty(b,c,f),f},e=this&&this.__metadata||function(a,b){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(a,b)},f=c(8),g=c(9),h=c(51),i=c(52),j=c(53),k=c(54),l=c(55),m=c(5),n=c(56),o=function(){function a(){this.cellEditorMap={}}return a.prototype.init=function(){this.cellEditorMap[a.TEXT]=h.TextCellEditor,this.cellEditorMap[a.SELECT]=i.SelectCellEditor,this.cellEditorMap[a.POPUP_TEXT]=k.PopupTextCellEditor,this.cellEditorMap[a.POPUP_SELECT]=l.PopupSelectCellEditor,this.cellEditorMap[a.LARGE_TEXT]=n.LargeTextCellEditor},a.prototype.addCellEditor=function(a,b){this.cellEditorMap[a]=b},a.prototype.createCellEditor=function(b,c){var d;g.Utils.missing(b)?d=this.cellEditorMap[a.TEXT]:"string"==typeof b?(d=this.cellEditorMap[b],g.Utils.missing(d)&&(console.warn("ag-Grid: unable to find cellEditor for key "+b),d=this.cellEditorMap[a.TEXT])):d=b;var e=new d;return this.context.wireBean(e),e.init&&e.init(c),e.isPopup&&e.isPopup()&&(this.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."),e=new j.PopupEditorWrapper(e),e.init(c)),e},a.TEXT="text",a.SELECT="select",a.POPUP_TEXT="popupText",a.POPUP_SELECT="popupSelect",a.LARGE_TEXT="largeText",d([f.Autowired("context"),e("design:type",f.Context)],a.prototype,"context",void 0),d([f.Autowired("gridOptionsWrapper"),e("design:type",m.GridOptionsWrapper)],a.prototype,"gridOptionsWrapper",void 0),d([f.PostConstruct,e("design:type",Function),e("design:paramtypes",[]),e("design:returntype",void 0)],a.prototype,"init",null),a=d([f.Bean("cellEditorFactory"),e("design:paramtypes",[])],a)}();b.CellEditorFactory=o},function(a,b,c){var d=this&&this.__extends||function(a,b){function d(){this.constructor=a}for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c]);a.prototype=null===b?Object.create(b):(d.prototype=b.prototype,new d)},e=c(10),f=c(49),g=c(9),h=function(a){function b(){a.call(this,b.TEMPLATE)}return d(b,a),b.prototype.init=function(a){var c,b=this.getGui();if(a.cellStartedEdit){this.focusAfterAttached=!0;var d=a.keyPress===e.Constants.KEY_BACKSPACE||a.keyPress===e.Constants.KEY_DELETE;d?c="":a.charPress?c=a.charPress:(c=a.value,a.keyPress!==e.Constants.KEY_F2&&(this.highlightAllOnFocus=!0))}else this.focusAfterAttached=!1,c=a.value;g.Utils.exists(c)&&(b.value=c),this.addDestroyableEventListener(b,"keydown",function(a){var b=a.keyCode===e.Constants.KEY_LEFT||a.keyCode===e.Constants.KEY_RIGHT;b&&a.stopPropagation()})},b.prototype.afterGuiAttached=function(){if(this.focusAfterAttached){var a=this.getGui();if(a.focus(),this.highlightAllOnFocus)a.select();else{var b=a.value?a.value.length:0;b>0&&a.setSelectionRange(b,b)}}},b.prototype.focusIn=function(){var a=this.getGui();a.focus(),a.select()},b.prototype.getValue=function(){var a=this.getGui();return a.value},b.TEMPLATE='<input class="ag-cell-edit-input" type="text"/>',b}(f.Component);b.TextCellEditor=h},function(a,b,c){var d=this&&this.__extends||function(a,b){function d(){this.constructor=a}for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c]);a.prototype=null===b?Object.create(b):(d.prototype=b.prototype,new d)},e=c(49),f=c(9),g=c(10),h=function(a){function b(){a.call(this,'<div class="ag-cell-edit-input"><select class="ag-cell-edit-input"/></div>'),this.eSelect=this.getGui().querySelector("select")}return d(b,a),b.prototype.init=function(a){var b=this;return this.focusAfterAttached=a.cellStartedEdit,f.Utils.missing(a.values)?void console.log("ag-Grid: no values found for select cellEditor"):(a.values.forEach(function(c){var d=document.createElement("option");d.value=c,d.text=c,a.value===c&&(d.selected=!0),b.eSelect.appendChild(d)}),this.addDestroyableEventListener(this.eSelect,"change",function(){return a.stopEditing()}),this.addDestroyableEventListener(this.eSelect,"keydown",function(a){var b=a.keyCode===g.Constants.KEY_UP||a.keyCode===g.Constants.KEY_DOWN;b&&a.stopPropagation()}),void this.addDestroyableEventListener(this.eSelect,"mousedown",function(a){a.stopPropagation()}))},b.prototype.afterGuiAttached=function(){this.focusAfterAttached&&this.eSelect.focus()},b.prototype.focusIn=function(){this.eSelect.focus()},b.prototype.getValue=function(){return this.eSelect.value},b}(e.Component);b.SelectCellEditor=h},function(a,b,c){var d=this&&this.__extends||function(a,b){function d(){this.constructor=a}for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c]);a.prototype=null===b?Object.create(b):(d.prototype=b.prototype,new d)},e=c(49),f=function(a){function b(b){a.call(this,'<div class="ag-popup-editor"/>'),this.getGuiCalledOnChild=!1,this.cellEditor=b,this.addDestroyFunc(function(){return b.destroy()}),this.addDestroyableEventListener(a.prototype.getGui.call(this),"keydown",this.onKeyDown.bind(this))}return d(b,a),b.prototype.onKeyDown=function(a){this.params.onKeyDown(a)},b.prototype.getGui=function(){return this.getGuiCalledOnChild||(this.appendChild(this.cellEditor.getGui()),this.getGuiCalledOnChild=!0),a.prototype.getGui.call(this)},b.prototype.init=function(a){this.params=a},b.prototype.afterGuiAttached=function(){this.cellEditor.afterGuiAttached&&this.cellEditor.afterGuiAttached()},b.prototype.getValue=function(){return this.cellEditor.getValue()},b.prototype.isPopup=function(){return!0},b.prototype.isCancelBeforeStart=function(){if(this.cellEditor.isCancelBeforeStart)return this.cellEditor.isCancelBeforeStart()},b.prototype.isCancelAfterEnd=function(){if(this.cellEditor.isCancelAfterEnd)return this.cellEditor.isCancelAfterEnd()},b.prototype.focusIn=function(){this.cellEditor.focusIn&&this.cellEditor.focusIn()},b.prototype.focusOut=function(){this.cellEditor.focusOut&&this.cellEditor.focusOut()},b}(e.Component);b.PopupEditorWrapper=f},function(a,b,c){var d=this&&this.__extends||function(a,b){function d(){this.constructor=a}for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c]);a.prototype=null===b?Object.create(b):(d.prototype=b.prototype,new d)},e=c(51),f=function(a){function b(){a.apply(this,arguments)}return d(b,a),b.prototype.isPopup=function(){return!0},b}(e.TextCellEditor);b.PopupTextCellEditor=f},function(a,b,c){var d=this&&this.__extends||function(a,b){function d(){this.constructor=a}for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c]);a.prototype=null===b?Object.create(b):(d.prototype=b.prototype,new d)},e=c(52),f=function(a){function b(){a.apply(this,arguments)}return d(b,a),b.prototype.isPopup=function(){return!0},b}(e.SelectCellEditor);b.PopupSelectCellEditor=f},function(a,b,c){var d=this&&this.__extends||function(a,b){function d(){this.constructor=a}for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c]);a.prototype=null===b?Object.create(b):(d.prototype=b.prototype,new d)},e=c(49),f=c(10),g=c(9),h=function(a){function b(){a.call(this,b.TEMPLATE)}return d(b,a),b.prototype.init=function(a){this.params=a,this.focusAfterAttached=a.cellStartedEdit,this.textarea=document.createElement("textarea"),this.textarea.maxLength=a.maxLength?a.maxLength:"200",this.textarea.cols=a.cols?a.cols:"60",this.textarea.rows=a.rows?a.rows:"10",g.Utils.exists(a.value)&&(this.textarea.value=a.value.toString()),this.getGui().querySelector(".ag-large-textarea").appendChild(this.textarea),this.addGuiEventListener("keydown",this.onKeyDown.bind(this))},b.prototype.onKeyDown=function(a){var b=a.which||a.keyCode;(b==f.Constants.KEY_LEFT||b==f.Constants.KEY_UP||b==f.Constants.KEY_RIGHT||b==f.Constants.KEY_DOWN||a.shiftKey&&b==f.Constants.KEY_ENTER)&&a.stopPropagation()},b.prototype.afterGuiAttached=function(){this.focusAfterAttached&&this.textarea.focus()},b.prototype.getValue=function(){return this.textarea.value},b.prototype.isPopup=function(){return!0},b.TEMPLATE='<div class="ag-large-text" tabindex="0"><div class="ag-large-textarea"></div></div>',b}(e.Component);b.LargeTextCellEditor=h},function(a,b,c){var d=this&&this.__decorate||function(a,b,c,d){var g,e=arguments.length,f=e<3?b:null===d?d=Object.getOwnPropertyDescriptor(b,c):d;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)f=Reflect.decorate(a,b,c,d);else for(var h=a.length-1;h>=0;h--)(g=a[h])&&(f=(e<3?g(f):e>3?g(b,c,f):g(b,c))||f);return e>3&&f&&Object.defineProperty(b,c,f),f},e=this&&this.__metadata||function(a,b){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(a,b)},f=c(8),g=c(9),h=c(5),i=c(6),j=c(20),k=c(58),l=c(59),m=c(60),n=function(){function a(){this.cellRendererMap={}}return a.prototype.init=function(){this.cellRendererMap[a.ANIMATE_SLIDE]=k.AnimateSlideCellRenderer,this.cellRendererMap[a.ANIMATE_SHOW_CHANGE]=l.AnimateShowChangeCellRenderer,this.cellRendererMap[a.GROUP]=m.GroupCellRenderer},a.prototype.addCellRenderer=function(a,b){this.cellRendererMap[a]=b},a.prototype.getCellRenderer=function(a){var b=this.cellRendererMap[a];return g.Utils.missing(b)?(console.warn("ag-Grid: unable to find cellRenderer for key "+a),null):b},a.ANIMATE_SLIDE="animateSlide",a.ANIMATE_SHOW_CHANGE="animateShowChange",a.GROUP="group",d([f.Autowired("gridOptionsWrapper"),e("design:type",h.GridOptionsWrapper)],a.prototype,"gridOptionsWrapper",void 0),d([f.Autowired("expressionService"),e("design:type",j.ExpressionService)],a.prototype,"expressionService",void 0),d([f.Autowired("eventService"),e("design:type",i.EventService)],a.prototype,"eventService",void 0),d([f.PostConstruct,e("design:type",Function),e("design:paramtypes",[]),e("design:returntype",void 0)],a.prototype,"init",null),a=d([f.Bean("cellRendererFactory"),e("design:paramtypes",[])],a)}();b.CellRendererFactory=n},function(a,b,c){var d=this&&this.__extends||function(a,b){function d(){this.constructor=a}for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c]);a.prototype=null===b?Object.create(b):(d.prototype=b.prototype,new d)},e=c(9),f=c(49),g=function(a){function b(){a.call(this,b.TEMPLATE),this.refreshCount=0,this.eCurrent=this.queryForHtmlElement(".ag-value-slide-current")}return d(b,a),b.prototype.init=function(a){this.params=a,this.refresh(a)},b.prototype.addSlideAnimation=function(){var a=this;this.refreshCount++;var b=this.refreshCount;this.ePrevious&&this.getGui().removeChild(this.ePrevious),this.ePrevious=e.Utils.loadTemplate('<span class="ag-value-slide-previous ag-fade-out"></span>'),this.ePrevious.innerHTML=this.eCurrent.innerHTML,this.getGui().insertBefore(this.ePrevious,this.eCurrent),setTimeout(function(){b===a.refreshCount&&e.Utils.addCssClass(a.ePrevious,"ag-fade-out-end")},50),setTimeout(function(){b===a.refreshCount&&(a.getGui().removeChild(a.ePrevious),a.ePrevious=null)},3e3)},b.prototype.refresh=function(a){var b=a.value;e.Utils.missing(b)&&(b=""),b!==this.lastValue&&(this.addSlideAnimation(),this.lastValue=b,e.Utils.exists(a.valueFormatted)?this.eCurrent.innerHTML=a.valueFormatted:e.Utils.exists(a.value)?this.eCurrent.innerHTML=b:this.eCurrent.innerHTML="")},b.TEMPLATE='<span><span class="ag-value-slide-current"></span></span>',b}(f.Component);b.AnimateSlideCellRenderer=g},function(a,b,c){var d=this&&this.__extends||function(a,b){function d(){this.constructor=a}for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c]);a.prototype=null===b?Object.create(b):(d.prototype=b.prototype,new d)},e=c(9),f=c(49),g="↑",h="↓",i=function(a){function b(){a.call(this,b.TEMPLATE),this.refreshCount=0}return d(b,a),b.prototype.init=function(a){this.params=a,this.eValue=this.queryForHtmlElement(".ag-value-change-value"),this.eDelta=this.queryForHtmlElement(".ag-value-change-delta"),this.refresh(a)},b.prototype.showDelta=function(a,b){var c=Math.abs(b),d=a.formatValue(c),f=e.Utils.exists(d)?d:c,i=b>=0;i?this.eDelta.innerHTML=g+f:this.eDelta.innerHTML=h+f,e.Utils.addOrRemoveCssClass(this.eDelta,"ag-value-change-delta-up",i),e.Utils.addOrRemoveCssClass(this.eDelta,"ag-value-change-delta-down",!i)},b.prototype.setTimerToRemoveDelta=function(){var a=this;this.refreshCount++;var b=this.refreshCount;setTimeout(function(){b===a.refreshCount&&a.hideDeltaValue()},2e3)},b.prototype.hideDeltaValue=function(){e.Utils.removeCssClass(this.eValue,"ag-value-change-value-highlight"),this.eDelta.innerHTML=""},b.prototype.refresh=function(a){var b=a.value;if(b!==this.lastValue){if(e.Utils.exists(a.valueFormatted)?this.eValue.innerHTML=a.valueFormatted:e.Utils.exists(a.value)?this.eValue.innerHTML=b:this.eValue.innerHTML="","number"==typeof b&&"number"==typeof this.lastValue){var c=b-this.lastValue;this.showDelta(a,c)}this.lastValue&&e.Utils.addCssClass(this.eValue,"ag-value-change-value-highlight"),this.setTimerToRemoveDelta(),this.lastValue=b}},b.TEMPLATE='<span><span class="ag-value-change-delta"></span><span class="ag-value-change-value"></span></span>',b}(f.Component);b.AnimateShowChangeCellRenderer=i},function(a,b,c){var d=this&&this.__extends||function(a,b){function d(){this.constructor=a}for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c]);a.prototype=null===b?Object.create(b):(d.prototype=b.prototype,new d)},e=this&&this.__decorate||function(a,b,c,d){var g,e=arguments.length,f=e<3?b:null===d?d=Object.getOwnPropertyDescriptor(b,c):d;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)f=Reflect.decorate(a,b,c,d);else for(var h=a.length-1;h>=0;h--)(g=a[h])&&(f=(e<3?g(f):e>3?g(b,c,f):g(b,c))||f);return e>3&&f&&Object.defineProperty(b,c,f),f},f=this&&this.__metadata||function(a,b){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(a,b)},g=c(61),h=c(5),i=c(20),j=c(6),k=c(10),l=c(9),m=c(12),n=c(8),o=c(49),p=c(62),q=c(63),r=c(64),s=c(15),t=g.SvgFactory.getInstance(),u=function(a){function b(){a.call(this,b.TEMPLATE),this.eExpanded=this.queryForHtmlElement(".ag-group-expanded"),this.eContracted=this.queryForHtmlElement(".ag-group-contracted"),this.eCheckbox=this.queryForHtmlElement(".ag-group-checkbox"),this.eValue=this.queryForHtmlElement(".ag-group-value"),this.eChildCount=this.queryForHtmlElement(".ag-group-child-count")}return d(b,a),b.prototype.init=function(a){this.rowNode=a.node,this.rowIndex=a.rowIndex,this.gridApi=a.api,this.addExpandAndContract(a.eGridCell),this.addCheckboxIfNeeded(a),this.addValueElement(a),this.addPadding(a)},b.prototype.addPadding=function(a){var b=this.rowNode,c=a.suppressPadding;if(!c&&(b.footer||b.level>0)){var d;d=a.colDef&&a.padding>=0?a.padding:10;var e=b.level*d,f=this.columnController.isPivotMode()&&this.rowNode.leafGroup;b.footer?e+=15:b.isExpandable()&&!f||(e+=10),this.getGui().style.paddingLeft=e+"px"}},b.prototype.addValueElement=function(a){a.innerRenderer?this.createFromInnerRenderer(a):this.rowNode.footer?this.createFooterCell(a):this.rowNode.group?(this.createGroupCell(a),this.addChildCount(a)):this.createLeafCell(a)},b.prototype.createFromInnerRenderer=function(a){var b=this.cellRendererService.useCellRenderer(a.innerRenderer,this.eValue,a);this.addDestroyFunc(function(){b&&b.destroy&&b.destroy()})},b.prototype.createFooterCell=function(a){var b,c=this.getGroupName(a);if(a.footerValueGetter){var d=a.footerValueGetter,e=l.Utils.cloneObject(a);e.value=c,"function"==typeof d?b=d(e):"string"==typeof d?b=this.expressionService.evaluate(d,e):console.warn("ag-Grid: footerValueGetter should be either a function or a string (expression)")}else b="Total "+c;this.eValue.innerHTML=b},b.prototype.createGroupCell=function(a){var b=a.columnApi.getRowGroupColumns(),c=b[a.node.level];l.Utils.missing(c)&&(c=a.column);var d=c.getColDef(),e=this.getGroupName(a),f=this.valueFormatterService.formatValue(c,a.node,a.scope,this.rowIndex,e);if(d&&"function"==typeof d.cellRenderer)a.value=e,a.valueFormatted=f,d.cellRendererParams&&l.Utils.assign(a,d.cellRendererParams),this.cellRendererService.useCellRenderer(d.cellRenderer,this.eValue,a);else{var g=l.Utils.exists(f)?f:e;l.Utils.exists(g)&&""!==g&&this.eValue.appendChild(document.createTextNode(g))}},b.prototype.addChildCount=function(a){var b=a.suppressCount;!b&&a.node.allChildrenCount>=0&&(this.eChildCount.innerHTML="("+a.node.allChildrenCount+")")},b.prototype.getGroupName=function(a){if(a.keyMap&&"object"==typeof a.keyMap){var b=a.keyMap[a.node.key];return b?b:a.node.key}return a.node.key},b.prototype.createLeafCell=function(a){l.Utils.exists(a.value)&&(this.eValue.innerHTML=a.value)},b.prototype.isUserWantsSelected=function(a){return"function"==typeof a.checkbox?a.checkbox(a):a.checkbox===!0},b.prototype.addCheckboxIfNeeded=function(a){var b=this.isUserWantsSelected(a)&&!this.rowNode.footer&&!this.rowNode.floating&&!this.rowNode.flower;if(b){var c=new r.CheckboxSelectionComponent;this.context.wireBean(c),c.init({rowNode:this.rowNode}),this.eCheckbox.appendChild(c.getGui()),this.addDestroyFunc(function(){return c.destroy()})}},b.prototype.addExpandAndContract=function(a){var b=l.Utils.createIconNoSpan("groupExpanded",this.gridOptionsWrapper,null,t.createGroupContractedIcon),c=l.Utils.createIconNoSpan("groupContracted",this.gridOptionsWrapper,null,t.createGroupExpandedIcon);this.eExpanded.appendChild(b),this.eContracted.appendChild(c),this.addDestroyableEventListener(this.eExpanded,"click",this.onExpandOrContract.bind(this)),this.addDestroyableEventListener(this.eContracted,"click",this.onExpandOrContract.bind(this)),this.addDestroyableEventListener(a,"dblclick",this.onExpandOrContract.bind(this)),this.addDestroyableEventListener(a,"keydown",this.onKeyDown.bind(this)),this.showExpandAndContractIcons()},b.prototype.onKeyDown=function(a){l.Utils.isKeyPressed(a,k.Constants.KEY_ENTER)&&(this.onExpandOrContract(),a.preventDefault())},b.prototype.onExpandOrContract=function(){this.rowNode.expanded=!this.rowNode.expanded;var a=this.getRefreshFromIndex();this.gridApi.onGroupExpandedOrCollapsed(a),this.showExpandAndContractIcons();var b={node:this.rowNode};this.eventService.dispatchEvent(m.Events.EVENT_ROW_GROUP_OPENED,b)},b.prototype.showExpandAndContractIcons=function(){var a=this.columnController.isPivotMode()&&this.rowNode.leafGroup,b=this.rowNode.isExpandable()&&!this.rowNode.footer&&!a;b?(l.Utils.setVisible(this.eExpanded,this.rowNode.expanded),l.Utils.setVisible(this.eContracted,!this.rowNode.expanded)):(l.Utils.setVisible(this.eExpanded,!1),l.Utils.setVisible(this.eContracted,!1))},b.prototype.getRefreshFromIndex=function(){return this.gridOptionsWrapper.isGroupIncludeFooter()?this.rowIndex:this.rowIndex+1},b.TEMPLATE='<span><span class="ag-group-expanded"></span><span class="ag-group-contracted"></span><span class="ag-group-checkbox"></span><span class="ag-group-value"></span><span class="ag-group-child-count"></span></span>',e([n.Autowired("gridOptionsWrapper"),f("design:type",h.GridOptionsWrapper)],b.prototype,"gridOptionsWrapper",void 0),e([n.Autowired("expressionService"),f("design:type",i.ExpressionService)],b.prototype,"expressionService",void 0),e([n.Autowired("eventService"),f("design:type",j.EventService)],b.prototype,"eventService",void 0),e([n.Autowired("cellRendererService"),f("design:type",p.CellRendererService)],b.prototype,"cellRendererService",void 0),e([n.Autowired("valueFormatterService"),f("design:type",q.ValueFormatterService)],b.prototype,"valueFormatterService",void 0),e([n.Autowired("context"),f("design:type",n.Context)],b.prototype,"context",void 0),e([n.Autowired("columnController"),f("design:type",s.ColumnController)],b.prototype,"columnController",void 0),b}(o.Component);b.GroupCellRenderer=u},function(a,b){function e(a,b){var d=f(b),e=document.createElementNS(c,"polygon");return e.setAttribute("points",a),d.appendChild(e),d}function f(a){var b=document.createElementNS(c,"svg");return a>0?(b.setAttribute("width",a),b.setAttribute("height",a)):(b.setAttribute("width","10"),b.setAttribute("height","10")),b}var c="http://www.w3.org/2000/svg",d=function(){function a(){}return a.getInstance=function(){return this.theInstance||(this.theInstance=new a),this.theInstance},a.prototype.createFilterSvg=function(){var a=f(),b=document.createElementNS(c,"polygon");return b.setAttribute("points","0,0 4,4 4,10 6,10 6,4 10,0"),b.setAttribute("class","ag-header-icon"),a.appendChild(b),a},a.prototype.createFilterSvg12=function(){var a=f(12),b=document.createElementNS(c,"polygon");return b.setAttribute("points","0,0 5,5 5,12 7,12 7,5 12,0"),b.setAttribute("class","ag-header-icon"),a.appendChild(b),a},a.prototype.createMenuSvg=function(){var a=document.createElementNS(c,"svg"),b="12";return a.setAttribute("width",b),a.setAttribute("height",b),["0","5","10"].forEach(function(d){var e=document.createElementNS(c,"rect");e.setAttribute("y",d),e.setAttribute("width",b),e.setAttribute("height","2"),e.setAttribute("class","ag-header-icon"),a.appendChild(e)}),a},a.prototype.createColumnsSvg12=function(){var a=f(12);return[0,4,8].forEach(function(b){[0,7].forEach(function(d){var e=document.createElementNS(c,"rect");e.setAttribute("y",b.toString()),e.setAttribute("x",d.toString()),e.setAttribute("width","5"),e.setAttribute("height","3"),e.setAttribute("class","ag-header-icon"),a.appendChild(e)})}),a},a.prototype.createArrowUpSvg=function(){return e("0,10 5,0 10,10")},a.prototype.createArrowLeftSvg=function(){return e("10,0 0,5 10,10")},a.prototype.createArrowDownSvg=function(){return e("0,0 5,10 10,0")},a.prototype.createArrowRightSvg=function(){return e("0,0 10,5 0,10")},a.prototype.createSmallArrowRightSvg=function(){return e("0,0 6,3 0,6",6)},a.prototype.createSmallArrowDownSvg=function(){return e("0,0 3,6 6,0",6)},a.prototype.createArrowUpDownSvg=function(){var a=f(),b=document.createElementNS(c,"polygon");b.setAttribute("points","0,4 5,0 10,4"),a.appendChild(b);var d=document.createElementNS(c,"polygon");return d.setAttribute("points","0,6 5,10 10,6"),a.appendChild(d),a},a.getFromCacheOrCreate=function(a,b){var c=this.imageCache[a];return c||(c=document.createElement("img"),c.src=b,this.imageCache[a]=c),c.cloneNode()},a.prototype.createFolderOpen=function(){return a.getFromCacheOrCreate("FolderOpen","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAZpJREFUeNqkU0tLQkEUPjN3ShAzF66CaNGiaNEviFpLgbSpXf2ACIqgFkELaVFhtAratQ8qokU/oFVbMQtJvWpWGvYwtet9TWfu1QorvOGBb84M5/WdOTOEcw7tCKHBlT8sMIhr4BfLGXC4BrALM8QUoveHG9oPQ/NhwVCQbOjp0C5F6zDiwE7Aed/p5tKWruufTlY8bkqliqVN8wvH6wvhydWd5UYdkYCqqgaKotQTCEewnJuDBSqVmshOrWhKgCJVqeHcKtiGKdqTgGIOQmwGum7AxVUKinXKzX1/1y5Xp6g8gpe8iBxuGZhcKjyXQZIkmBkfczS62YnRQCKX75/b3t8QDNhD8QX83V5Ipe7Bybug2Pt5NJ7A4nEqGOQKT+Bzu0HTDNB1syUYYxCJy0kwzIRogb0rKjAiQVXXHLVQrqqvsZtsFu8hbyXwe73WeMQtO5GonJGxuiyeC+Oa4fF5PEirw9nbx9FdxtN5eMwkzcgRnoeCa9DVM/CvH/R2l+axkz3clQguOFjw1f+FUzEQCqJG2v3OHwIMAOW1JPnAAAJxAAAAAElFTkSuQmCC")},a.prototype.createFolderClosed=function(){return a.getFromCacheOrCreate("FolderClosed","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAARlJREFUeNqsUz1PwzAUPDtOUASpYKkQVWcQA/+DhbLA32CoKAMSTAwgFsQfQWLoX4GRDFXGIiqiyk4e7wUWmg8phJPOtvzunc6WrYgIXaD06KKhij0eD2uqUxBeDC9OmcNKCYd7ujm7ryodXz5ong6UPpqcP9+O76y1vwS+7yOOY1jr0OttlQyiaB0n148TAyK9XFqkaboiSTEYDNnkDUkyKxkkiSQkzQbwsiyHcBXz+Tv6/W1m+QiSEDT1igTO5RBWYbH4rNwPw/AnQU5ek0EdCj33SgLjHEHYzoAkgfmHBDmZuktsQqHPvxN0MyCbbWjtIQjWWhlIj/QqtT+6QrSz+6ef9DF7VTwFzE2madnu5K2prt/5S4ABADcIlSf6Ag8YAAAAAElFTkSuQmCC")},a.prototype.createColumnIcon=function(){return a.getFromCacheOrCreate("ColumnIcon","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAYAAAAOCAYAAAAMn20lAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoV2luZG93cykiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6RTcwQ0JFMzlENjZEMTFFNUFEQ0U5RDRCNjFFRENGMUMiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6RTcwQ0JFM0FENjZEMTFFNUFEQ0U5RDRCNjFFRENGMUMiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDpFNzBDQkUzN0Q2NkQxMUU1QURDRTlENEI2MUVEQ0YxQyIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDpFNzBDQkUzOEQ2NkQxMUU1QURDRTlENEI2MUVEQ0YxQyIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PqDOrJYAAABxSURBVHjalJBBDsAgCAQXxXvj2/o/X9Cvmd4lUpV4MXroJMTAuihQSklVMSCysxSBW4uWKzjG6zZLDxrlWis5EVEThoWmi3N+nxAYs2WnXQY34L3HisMWPQlHB+2FPtNW6D/8+ziBRcroOXc0B/wEGABY6TPS1FU0bwAAAABJRU5ErkJggg==")},a.prototype.createColumnsIcon=function(){return a.getFromCacheOrCreate("ColumnsIcon","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoV2luZG93cykiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6OENFQkI4NDhENzJDMTFFNUJDNEVFRjgwRDI3MkU1Q0EiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6OENFQkI4NDlENzJDMTFFNUJDNEVFRjgwRDI3MkU1Q0EiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDo4Q0VCQjg0NkQ3MkMxMUU1QkM0RUVGODBEMjcyRTVDQSIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDo4Q0VCQjg0N0Q3MkMxMUU1QkM0RUVGODBEMjcyRTVDQSIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/Pj6ozGQAAAAuSURBVHjaYmRgYPjPgBswQml8anBK/idGDQsxNpCghnTAOBoGo2EwGgZgABBgAHbrH/l4grETAAAAAElFTkSuQmCC")},a.prototype.createPinIcon=function(){return a.getFromCacheOrCreate("PinIcon","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAedJREFUeNqkUktLG1EYPTN31CIN0oWbIAWhKJR0FXcG6gOqkKGKVvEXCKULC91YSBcK7jXgQoIbFxn3ErFgFlIfCxUsQsCoIJYEm9LWNsGmJjPTM+Oo44Aa6IUzd+bec77H+UYyTRP/s5SsLFfCCxEjOhD9CXw64ccXJj7nLleYaMSvaa/+Au9Y73P3RUUBDIuXyaAxGu35A7xnkM57A7icCZXIO8/nkVleRn1/f9cv0xzjfVclFdi9N8ZivfnDQxQKBTwoFvFicLCVQSesJIpHMEY8dSqQWa54Eov1fF9ZQVHXsZNMblhnNE/wPmJPIX1zjOG2+fkgslnozHR2eopLcSIe3yoD48y45FbIxoVJNjimyMehoW3T58PvdBq53V18zeWwFo+vUfyBlCVvj0Li4/M1DnaAUtXCQkNDR4f/294eaoTAwdHRCROMWlzJZfC+1cKcJF07b5o+btWvV1eDyVBouyUcDj5UFDg924tVYtERpz0mCkmSulOp1GQgEIj0yvKPYiKBlwMDQXfPU47walEEmb8z0a5p2qaiKMPEoz6ezQLdM8DWNDDzltym24YthHimquoshSoDicvzZkK9S+h48pjCN4ZhrBPHTptlD0qevezwdCtAHVHrMti4A7rr3eb+E2AAoGnGkgkzpg8AAAAASUVORK5CYII=")},a.prototype.createPlusIcon=function(){return a.getFromCacheOrCreate("PlusIcon","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAatJREFUeNqkU71KA0EQ/vaiib+lWCiordidpSg+QHwDBSt7n8DGhwhYCPoEgqCCINomARuLVIqgYKFG5f6z68xOzrvzYuXA3P7MzLffN7unjDH4jw3xx91bQXuxU4woNDjUX7VgsFOIH3/BnHgC0J65AzwFjDpZgoG7vb7lMsPDq6MiuK+B+kjGwFpCUjwK1DIQ3/dl0ssVh5TTM0UJP8aBgBKGleSGIWyP0oKYRm3KPSgYJ0Q0EpEgCASA2WmWZQY3kazBmjP9UhBFEbTWAgA0f9W2yHeG+vrd+tqGy5r5xNTT9erSqpvfdxwHN7fXOQZ0QhzH1oWArLsfXXieJ/KTGEZLcbVaTVn9ALTOLk9L+mYX5lxd0Xh6eGyVgspK6APwI8n3x9hmNpORJOuBo5ah8GcTc7dAHmkhNpYQlpHr47Hq2NspA1yEwHkoO/MVYLMmWJNarjEUQBzQw7rPvardFC8tZuOEwwB4p9PHqXgCdm738sUDJPB8mnwKj7qCTtJ527+XyAs6tOf2Bb6SP0OeGxRTVMp2h9nweWMoKS20l3+QT/vwqfZbgAEAUCrnlLQ+w4QAAAAASUVORK5CYII=")},a.prototype.createMinusIcon=function(){return a.getFromCacheOrCreate("MinusIcon","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAKVJREFUeNpi/P//PwMlgImBQjBqAAMDy3JGRgZGBoaZQGxMikZg3J0F4nSWHxC+cUBamvHXr18Zfv36Bca/f/8G43///oExKLphmImJieHagQMQF7QDiSwg/vnzJ8P3799RDPj79y+KRhhmBLr6I1DPNJABtxkYZM4xMFx7uXAhSX5/CtQD0gv0OgMfyCAgZgViZiL1/wXi30D8h3E0KVNuAECAAQDr51qtGxzf1wAAAABJRU5ErkJggg==")},a.prototype.createMoveIcon=function(){return a.getFromCacheOrCreate("MoveIcon","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAoZJREFUeNpsU81rE0EUf7uzu2lNVJL6Eb0IBWusepqcKm3wEFkvxqDgQbwUtYeeg5cccwj4F7QKChEPipRcdMGDiaAoJAexLYViwYsfbU1JYkx3Zz98b8220Wbg7ez7vXm/mffmN9Kh1G2QGQOmMDiRyYEkSaCoKjDGdAAooOUdxzFsIcDzPPhSvgeO7YDrOLBRmQdlJHULVE0DNRSCvqFjUuHqhWP8+etvhR5m0CeengVhmiAsywdl2Dt03K1wZSrO220XaCaf8AFrQel32s0mrDcaWfovrq3Vc9OTvHj/Tb0Xzh6JxQwNyxtIgPXpqqJk94fDM+1Oh6CaEF4QTiIOGJ/DdQtBObsEmGxbll/rkCyDPDwMzW4XhHD88EH0NcRxDUeX4/qdnsi0s8Aas+kEp8Zg82pMkmpDigKbjSbQTD7hFL94/jin9ZRHBNLo3Wrt+uUkbzQsiEZVMPGKfv76DaawodnahkhY86+PNnXxs77ZgVOjMahWVuufi1NJRZhWvvT0beHGtQn++Nm7en+DzqXO8vfVxX+wsYnT/JWxWEe95P0eILsvkkdPKn4PUEBJmunILab5992PLVU++skoNmOniT7JX2Fkt5GM1EjqbMohXzQmqo7KwCQ6zYKiabu30PpQAnZ0HKSRMcMRwnBddw4ZOO4GLRYKFFdDhrrteTMMdWB9/QTdH8sIp0EKmNT4GWDjGZAPJ3TcrbBv+ibfwtwDqBvzYck/truxYjjLZRDflwLt7JUmEoAymdPV7INa5IXn0Uw+4f8PIqATMLQIWpQ0E/RFTmQ4nLx0B1Zfzrsr5eAmbLQW2hYpHwkcqfegNBJhzwY9sGC4aCZaF81CAvePAAMAcwtApJX/Wo0AAAAASUVORK5CYII=")},a.prototype.createLeftIcon=function(){return a.getFromCacheOrCreate("LeftIcon","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAe9JREFUeNqkUz1oE2EYfu7uuyRKLCFt6g+4VNQWWod+mQRRR1En0UFOHKoNCMKNju4SEQsOzsFNcRGl4CS42AzaKhKcsqhk0Etj7u+773y/6+USbOLSF5574b33eX+e906L4xh7MaYeC/c/IFcowMznEzDTBGPMoldnqEFtkPy708mIqvHHe0s7BcaYJYSwRwPu9vbYRH1XJI4tEYb2jYtHOHko9LvdxE9cYZQcBoF9+9oJ7jgRQt+HFAJSyv9rkO6UkGvXF3mr9QelkpkUINsYR6T8Jrkay8i+b9+5yfnmppMmSFw6e4yrIynBBsdS3jQ1PH/zeTiBIt+9dZpvbTlZh1+Oh/Z3F33XRUj7R1GUxA3DwMx0EYHnDUUMPe9Rfe1tc26uiL6M8aXno+UH6O7PIShPIapMQx6sQMxW4JbL+MkKCKhwNgGN2FD7Pnz82j63coF/aoc4ekDHtxfrzUniaZrW/FfEBomI9Scv7fnVq7zdBwIqajBWpeTd99d3vgBNCaQSzMOLyJ+6ApSPWxSzD61a/MfThupSjVuvxk2A3sazYYGBGbML0OcvW9rMyeRLFO8eVGXnKyacMiug5ikSplLs05dXzqNQWpbv6/URjpK+m6JH3GhQQI2QI+RTmBO0EwQ/RUBcqe31d/4rwAB0lPTXqN6HzgAAAABJRU5ErkJggg==")},a.prototype.createRightIcon=function(){return a.getFromCacheOrCreate("RightIcon","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAfBJREFUeNqkUz1s00AU/hwSh1SEhiFCYuhCVSExgHRiYKjEVCEyMMGAsjCxZunesWM7dIgEA8JISPyoUhFDFoZOSE2GgtrSIAYWSEPb1HUS23c+8+7iuE5/JKQ+6fOdz/e+970fG2EY4jyWVo9b819hGEZ8WCgW4z2dV2lZFUJYgnNwz9PwXRebc3cGBMfN6XSQy+eHryyCMuv43dRpBCpSz7b1qlB+cI3RWkEYlv+LQFkgBLxuV8s9OAhQLk0w7vsnSHQKVMhqQuYRSRBouK5AqyXwpHSdvfywUYkKb8UEFIU9fXybOY6A+jbszGAP7O/7RBKg2eR4dH+KvV5ej0k0gaqobXO0214c3acUDnt99Pp9cKqDUqLsx68LuHd3gtU+b1eOCOiSaaZQKJjgMsSOy7EnJcSYCZnLwKbojic1weTVMXz81KhTexeSKdSXqrUzh2X84Qxr9SQmx1P48q6mnTPZrJUs4jMp5QlHlSd1Y203fRGFK8DPV28HzqZpjXShW3+D00bamCrpNU9DuvvcGsjea1rO+nvw39+AxRCGckyO8ciQFG8gPT27ptX8/b4gt1asYGdzRGE6MVCXCJcj5NShbG9B/NnYhttpyMYL5XmTYEdw1KgMFSgJJiEbIXNGPQXBi+CTrzTO+zv/E2AA3Y8Nbp4Kn1sAAAAASUVORK5CYII=")},a.prototype.createColumnVisibleIcon=function(){return a.getFromCacheOrCreate("ColumnVisibleIcon","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAdhJREFUeNrUk01LAlEUhu845QdRUxZBhIIWtFBso2AwRAVNLqKltHCb63b9A/9AixZCELhyYdAmEyYCBcOlNa1CSQoxog/DMY3x9p5B27Zw1YGH8XrO+55759wROOdsmLCwIWNoAwFh/ugfZQKsAQV4gbNf9woqIAeuQHOgGxgIMNix2Wx7iqIsxmKxWU3TxgqFgpWSsix3fT5fK5VKPedyuftOp5OE7oz60hHsYD8UCh3k83k5k8ksGYYx5XK5rK2WzgiIrPQf5aiGakljakVRjKDrZaPR6Oi6zglVVTlFMnnMZXmdK8o2x674IE+1pCHtCFx2w+GwE9u3drtd81yJRAKdDXZ4eGSuFxb87PHxjg3yVEsaNNolg5NSqTTVbDaX7Agq8Hg8TFWLbGVl0xTY7TY2Our5NfhCQPNAWtFisdSr1WqvWCwawWBwRpKkcZyXadoN83qXmSQ50V1jGxurpnGlUqnH4/FzvItTmoo5ApjQNMIOh2MrEon4o9Gov1arzZXL5XHKBwKBT7fbXU+n07fZbPa23W5f4BVd93o9TgYimATTMHHCbB5PN9ZSf0LmrsEHRDWInvB8w/oFvAv920iFDkBzF/64fHTjvoFOxsL//5h+BBgAwjbgRLl5ImwAAAAASUVORK5CYII=")},a.prototype.createColumnHiddenIcon=function(){return a.getFromCacheOrCreate("ColumnHiddenIcon","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoV2luZG93cykiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6N0ZGNDRBMkJENkU3MTFFNUIwOTBGRTc0MTA3OTI2OEYiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6N0ZGNDRBMkNENkU3MTFFNUIwOTBGRTc0MTA3OTI2OEYiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDo3RkY0NEEyOUQ2RTcxMUU1QjA5MEZFNzQxMDc5MjY4RiIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDo3RkY0NEEyQUQ2RTcxMUU1QjA5MEZFNzQxMDc5MjY4RiIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PjQ0mkwAAACISURBVHjaYvz//z8DJYCJgUIwDAxgKSwspMwAIOYDYlcgtgNiJSBWBGJhIGaHyoHAJyD+CcRvgfg+EN8D4kNAvBtkwGEg1iNgkSCUlgBibSg7D4gvgwywRXKBChArALEIELMCsQBU8Qcg/g3Eb4D4ARDfBeKDMBeAnLcWikkGjKMpcRAYABBgACqXGpPEq63VAAAAAElFTkSuQmCC");
},a.prototype.createColumnIndeterminateIcon=function(){return a.getFromCacheOrCreate("ColumnIndeterminateIcon","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoV2luZG93cykiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6OUY1QTkyNDUxRTkzMTFFNkFEQzVDNjE1NDE4RDlEQUMiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6OUY1QTkyNDYxRTkzMTFFNkFEQzVDNjE1NDE4RDlEQUMiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDo5RjVBOTI0MzFFOTMxMUU2QURDNUM2MTU0MThEOURBQyIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDo5RjVBOTI0NDFFOTMxMUU2QURDNUM2MTU0MThEOURBQyIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/Por9Q7gAAAGzSURBVHja1JOxSwJRHMffqXcqSoVBQ0FDNN7iIBxO5WA3NYoEjm0u/T2Bkw2ONZlgNEk4Bw6GiGiippmRnp76+n4PbWhpcOoHH57P+36/7/e8n4qUUmxSLrFhbRygoJwPq6tsgRMQB0cgtNINQA0UwCMYrX3rAAUB516v9zIejx+nUqm90WgUDIfDaq1WE9PpdK6q6mc2m+0WCoUX7K/hu+O5TPCBq0gkUiqXy0PbtqVlWXK5XDqwuE4mEzmfzyU11NJDr3C73SZOfeh0OtPxeCyR7oixlzhdVqtV2ev1nCB+Tw219NDrQRtJwzBCaF+bzWbsSGQyGVEsFoWmacLj8YjBYCBisZhIp9MC3Qhq6YEmyQ5OTdO8bTQak263K8m69d+FIOc5tfTQywAvTrmIRqM3pVLptd1uy3q9/nN3slgsZLPZlHxGDbX00Ou8ApfLxbdh+P3+MyTriURC7/f7+7hCsFKpCF3XvwKBQCuXyz3n8/ln/Bb3yH9iOAPcYAfsIiSEsAOsh9hvA99qDizwAVMDphbWd+zfwFBZTSOFfqBxJv4YPk6cDcYMVv7/n+lbgAEAtdcjOjP715MAAAAASUVORK5CYII=")},a.prototype.createGroupIcon=function(){return a.getFromCacheOrCreate("GroupIcon","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoV2luZG93cykiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6NUVCNUI1OUNENkYwMTFFNThGNjJDNUE3ODIwMEZERDciIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6NUVCNUI1OURENkYwMTFFNThGNjJDNUE3ODIwMEZERDciPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDo1RUI1QjU5QUQ2RjAxMUU1OEY2MkM1QTc4MjAwRkRENyIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDo1RUI1QjU5QkQ2RjAxMUU1OEY2MkM1QTc4MjAwRkRENyIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PlkCTGoAAACDSURBVHjaYmRgYPjPgBswQun/+BT8X3x5DoZErG4KCj/3/DcMNZMNuRiYGPADRiRX4HYBJV5AB0QrhAGW//8hehgZES6FiaGLYzUAq7sxNf0nxQCsinHFAguegCPKBYxoYfAfWQxNnPgwINJVYMDEQCEYfLHASGoKRQlxPN7BqQggwAAN+SopPnDCwgAAAABJRU5ErkJggg==")},a.prototype.createPivotIcon=function(){return a.getFromCacheOrCreate("PivotIcon","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAitJREFUeNqcU01rE1EUPfPVJjFqdYw2pJQkNS2hYhQUiwj+AaugKFYUBWutG3HjokgNrroRKYKbglBBFF0o1IW404qClGIDxpYKTQgULZJmmpiYkPnwvmtNspPmweOcmXnnvPPufSOdjsf7AfjR3PiOU6OjV50mh9CqtmVJDlkNjWU3tPXEiA6hlS3Lkm3HQbFYxO5hnTF0pQ3Bwa3MAxc98F9wMd95TsOOswpzoRFa1TJNyaKHtTUD07cNdv9wx6jtNDNW53N369xyOiC0qmmanMAwcjh+/yimrr/D28kjf8WLizjY3c38YzKJw729zKcTCU4gtLUE+Xwejy+94gWfl5agKQr8uo4Eccu2USr48SWVQq5QWE/gcAJZuIgF5XIF5yf7GfcGg9Cos4O3UoiFw2jFLrx+/wtRet+3nkJoOAEbkJtty5g484I+yUivrODekxb4tmuInZhCuFPHyHAXZubnUTXNWgKhlc1qlY+gaZsw9PwkY4fPhxsDXvxcrWL25TE8G+8DFAOxSAQHotG6AWlrRXS52vD08ifGr5kM1+BBPIBkOo3flQpaNA2zCwug+8MGdkMCPoLbvQ0DDw8xRgIBBNvbsUoF6yK+h+pQJpN91JH9PT2NCWS1Ui4rNhtswZubPxi/LS9TTWxemKTK/9t1jtramEBo1Vw226pRvEfj3oaL6v3vVRYaoZXcodA12ePpbOZXtEuljEToprmZprpBvehn4Y8AAwDB0mLL0M405wAAAABJRU5ErkJggg==")},a.prototype.createAggregationIcon=function(){return a.getFromCacheOrCreate("AggregationIcon","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAMZJREFUeNpi/P//PwMlgImBQjDwBrCgmMYENq8RiLVxqL8KxPX//v1DiIACEYYZGRlBmBOIe4B4PRDrQMUYoGyQGIoebAbADJkAxFuAWA9JXJdYA0CYC4inAPFOINZHlkPWgxKIcFMhQA0aFveB+DbOUERxDhQAbTEC4qNAPBfqEmRx3F6AAhOgojNAvBikGckumDiKHhY0B3ECcTVQQhRIg/B1NNeeB1IgQ7/BXYvmdE6oAnYcPv4NxF+BerAbMDTzAkCAAQChYIl8b86M1gAAAABJRU5ErkJggg==")},a.prototype.createDropNotAllowedIcon=function(){return a.getFromCacheOrCreate("DropNotAllowedIcon","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoV2luZG93cykiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6MjUyQ0MxNDY0NjBDMTFFNkEzMUVGQUE3NkQzQzU4MjYiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6MjUyQ0MxNDc0NjBDMTFFNkEzMUVGQUE3NkQzQzU4MjYiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDoyNTJDQzE0NDQ2MEMxMUU2QTMxRUZBQTc2RDNDNTgyNiIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDoyNTJDQzE0NTQ2MEMxMUU2QTMxRUZBQTc2RDNDNTgyNiIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PstpFisAAAGLSURBVHjalJNPKERRFMbnvRmKpAnjhURKWXjJLNQsqDE7KxI1NhYU2cjKxtbGZpSNqSFT/qxkYafmLWyU2LElCwYLo0SS8J36rk7XbJz61f33nXPuuec6ad8PWdYHJsEAaOPaDTgGeXCqD0cs8TqYCf21bjIHsmC2nIMCGOT4C3yCV44rQRXPS4BOkNIOchTL4RI4A0fggvtdYAj0g2qeFc10hKlNUXwF1sAOeALfdHCuxMZEsyoOFrjwTK8bTN3YMGvjcf7BzF3RukxHIl2DfSVuALvgQIn3wCJ44zwpDpqY/i2458YouARpzmV9BEyAExWk2RTRARUgxiuMqytsg3nWRCzMgL/PWATtoJfVr+PeHd/70OoJ6bxajotyhYCTmBJv8XVssdRljD0hFoiDDCcyfgcrjFyyxFGwBBI8K5YJ+573iEEriHOjBdSr55KoSbDM4ppekFrlHPWZCupJpcoP4IWCRt7bRA5MK7sqxRQ/irxIDegAPez7qDqbNeJyv1Huvvmf7/wjwABtLlYtICx9HQAAAABJRU5ErkJggg==")},a.prototype.createGroupIcon12=function(){return a.getFromCacheOrCreate("GroupIcon12","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAYAAABWdVznAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoV2luZG93cykiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6MTNFQzE0NTdEOTk1MTFFNUI4MjJGMjBFRDk4MkMxNjAiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6MTNFQzE0NThEOTk1MTFFNUI4MjJGMjBFRDk4MkMxNjAiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDoxM0VDMTQ1NUQ5OTUxMUU1QjgyMkYyMEVEOTgyQzE2MCIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDoxM0VDMTQ1NkQ5OTUxMUU1QjgyMkYyMEVEOTgyQzE2MCIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PiInRbAAAAEjSURBVHjaYuTi5XqkpKvI9/fXHwZWDlaGZ/eeM7x59raDAQj4pOQrBBUVGP78+MfAzMbE8PLKhU8Mhnb6/6//P/f/8N/d/x8AWUn1cf+BaleCsFPt5P/T/v//3/zj//8JQFrB1vM/I5IN3EAbfgBt+Au0QRBqw3sMG0DiQMwPxFuB2BzKZmLAAViA+BOU/QOI7wPxRyhfCIhT0NT/ZETi7AZiZiD+DOXL6EdlGdkWFzF8evaDgUuIg2F9eiTYBrhuIJ4NxHegfDsgnobuJGQbNgBxMRDfhfLFgDgB3UnInPVALMxAACDbcBGItwDxAyhfCRismejBiuyHiUBsDMQmUL6cSXIJf0hTDsNboEN42RkYJth58TPisV0eaMNFdBsAAgwANVJzd8zQrUcAAAAASUVORK5CYII=")},a.prototype.createCutIcon=function(){return a.getFromCacheOrCreate("CutIcon","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAlRJREFUeNqkU09okmEcfj6ThNRhjUEJDhxDZ1t4sI3lDrKDhESHpC6x6yBoh52GfcdBJDvtElEUdKhOSq1JjF0SabSton9OmIeRxVKIrUgdU5xvv8e+hXXYpRcefv+e5/mh7/tpSin8z9Gi0Sg0TTsv+edarfa+Wq2iUqmgXC6DudVqhd1uh81ma+UWi8Uv3G5ZPJ9MJmGq1+twOBynBOek6T9oG+fkkU8djymVSiGTyWBiYuL6QSb7YvLIp679+D0ej57NZpX8JD0QCPj7+vrgcrnAyJp9zskj3zD928Tr9er5fF5FIhFdiH4aMLJmn/N98R+Dq5qGSUFQwKFs1AuFggqFQrrT6bzIyJp9zoMGn7qWQU6ST4JNQeK3kd/n8+nFYlGFw+HFdDqtWLOfMHjk5wwDjckRwGYGeJVnBMdXgaNrbveJKysr/etu91pHtVo8BnyXWUnwsgHM7wAVX7MJ0cEmjWvW4eGzjpGRXnNnZ8cFeRi9pRI+dnXtjMbj/cLp57rG1tbPH0tLwd3l5QHp3RBU8E7Txr4MDb1V8bh60tOzfhN4vTc9rRYkCm4tGDX7nJNHPnWt/+CFpt1rF9emptScxKfA2DNZwThn9NtNWjoxMH1Tqru+va02NzbK47FY4PHMzJtdYPYD8OChGDCyZp9z8sinrnWXt4E7q4ODRbrelw0x2Xjyn1fImn3OySOfutYt+IDRSeCycAZeAYm7wKLkshR87A1+cILDAss4EDkNXJI8Ows8yin1nENn+5MXNA3hnpHzHBKYjWhqe4lffwkwAMRcPMqRQZ4vAAAAAElFTkSuQmCC")},a.prototype.createCopyIcon=function(){return a.getFromCacheOrCreate("CopyIcon","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAgBJREFUeNqMk79rFEEcxd/M7V2QAzVFEOMFGwNiIGCjEdIEhYODmEawsFf8G4QQSCPYyqUWCdhY2qSQECSpInvFJYT8Ki6dZO8Sb2P29pfvu+4sm+UKv/AYZna/b95ndla9WFyEUmoewG0Mr+9hGB5EYYhypZIseO0fCHa3sP/LhxVFkazd+by0tOIFAQac+3w5imPYto1Pa2tv+VxR+8bRuv8EevIRxn5uQoszpWI2RjSIBgMMLi/hui76/T6+Li+v8Pkz9k0Wo409pFHAJooUCiWqYlk46nTQ2ttD+/gY75pNPKjVmmfd7gf2vKbu5U0sMWBpzWatNcAkv7n789lZ1GdmMqQ3cbxApIUikg58H5S0JgkSE/L/L1JmoNJmMZEDzCNdK5cxwtFxHHxcXcXTqalm27Zf7rRaRKBBhkAhxcgjiYlUo16HfKlqtYpv29u95Az81EClCFLyaQ0SCib/dtNJ6qsGfDmJnRqoXIKiyVUDz8sSSGy5VnI3ikh5k1KplBnog/V19BxnRCZmV15dGCSdO1wziphcS3rrT7d71zk5Ob8+Pf3eMN4aH3/8qtGYM0hp7iyJbO0bBOrMPTz8kl6OpGoTEzEncwapaCLrRNfu6Wli0Etl6mbfdb0MiYrlXsjZyAUTE0qwOxsbo9aQ3/dGEWlYRRcX5xxG/wowAC8cIjzfyA4lAAAAAElFTkSuQmCC")},a.prototype.createPasteIcon=function(){return a.getFromCacheOrCreate("PasteIcon","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAadJREFUeNpinGLPAAaMjAxwcJ9Tk+0Bt7YPkCkKFXqt8PXqFsXv13/B1Pz/D6FZENoYZgKxMYgh9OI6i567q5hFUp4kiH9i3qTnT3auqWPgZ/gDVXsWiNPBFk+2hxtwxi0syfjy5csM0vFzGTg42Bj4+XnAEh8/fmH48eMXw9OFyQy6uroMu1bNAxlgAnbB338IJ6hlzWU4uXgJw6FDO4Ga+Rl4eXkZWFlZGb58/crw6eNHBjG7Iga1yAiG7SvmwfWw/P2LMADkraiYaIb79+4xYAOKSkpgNch6UFzwFxgy//79Y5BTUMBqwF+g3H8mJgZkPSgu+Ac04M+/fwz4AAswulBc8Ocfqg1/kGWxAEagAch6WP78RfUCIQOYmJkZ/qC44A+qAb8JeIEZZMkfXC4gwgsQNUgG/CbRC2BXIhvw8AsDgzQnkgEEvACxBMJ++h0YJmufMTA8ABry8xckGkFOxIdBakBqQXpAekGZiXPTSwbeUAEgB5hsObm58acDoJp3nxkYNn1gEANyP4MNAGKxh18ZbsXxsjMQA97/Z7gF0gPEfwACDAB/y9xB1I3/FQAAAABJRU5ErkJggg==")},a.prototype.createMenuIcon=function(){return a.getFromCacheOrCreate("MenuIcon","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoV2luZG93cykiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6QjM3MUVBMzlERkJEMTFFNUEwMjFFNDJDMDlCMUY3OTciIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6QjM3MUVBM0FERkJEMTFFNUEwMjFFNDJDMDlCMUY3OTciPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDpCMzcxRUEzN0RGQkQxMUU1QTAyMUU0MkMwOUIxRjc5NyIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDpCMzcxRUEzOERGQkQxMUU1QTAyMUU0MkMwOUIxRjc5NyIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/Pux7nZcAAAGtSURBVHjalFM9a8JQFL0veYkfYJUQEYuIIF07uToVpGuHOgid3dJN+i+K4C6CXQqFjplcCoKbXZ0EqRUFP/CTxCS9NzTdNOmBx32P3Nx3zj33sXq9/tRqtbRYLCaLomhBANi2La5WK7NSqTRYNpt1LMsCLACO47iLMXY2CoIAm80GZFkGoVQqfWy3WzBNE6gQVveNhmHAbreDYrHYZaPRKKTr+i0ykTDBPnUzgfYEvFkYDAZWoVDQWb/fB9QD6XQajscjBCkQDodhOBzCcrkEVq1WXfoEL9EPlEdSZrMZ8Pl8frVYLO7QgRB+sPx+/GUk4qUGNvOdYSO+JpPJJdHyc8ADnUluIpH45vv9XiFbiFIQC71IjuBe5ZlM5gYlPHLOL7C4AcEgofXbXC7X4PF4vKuqahf+AWJxOBwgEokA6/V67kFRFFcGLU/SqShJkusATSNbr9fQ6XSuU6mUQP3BBIaJZyM6BuPx2Mnn85+sVqu9ttvt+2QyGXgOqInT6RTK5fIbwwl0iFI0Gv2btCA9QPdcOVzTtOdms/mAnnKkaAexES0UcG/hc375EWAA94tOP0vEOEcAAAAASUVORK5CYII=")},a.prototype.createCheckboxCheckedIcon=function(){return a.getFromCacheOrCreate("CheckboxCheckedIcon","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA2ZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDpFQ0VGQkU3ODM4MTFFNjExQjlCQzhERUVDNkNGMzFDMyIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDpBRkJCRDU1MTEyM0ExMUU2ODE4MUUyOTNBNTRGQkIxNyIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDpBRkJCRDU1MDEyM0ExMUU2ODE4MUUyOTNBNTRGQkIxNyIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgQ1M2IChXaW5kb3dzKSI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOjIzMkM4M0M1M0MxMUU2MTFCOUJDOERFRUM2Q0YzMUMzIiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOkVDRUZCRTc4MzgxMUU2MTFCOUJDOERFRUM2Q0YzMUMzIi8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+riMaEQAAAL5JREFUeNqUks0JhDAQhSd7tgtLMDUIyTXF2IdNWIE3c0ruYg9LtgcPzvpEF8SfHR8MGR75hpcwRERmrjQXCyutDKUQAkuFu2AUpsyiJ1JK0UtycRgGMsbsPBFYVRVZaw/+7Zu895znOY/j+PPWT7oGp2lirTU3TbPz/4IAAGLALeic47Ztlx7RELHrusPAAwgoy7LlrOuay7I8TXIadYOLouC+7+XgBiP2lTbw0crFGAF9ANq1kS75G8xXgAEAiqu9OeWZ/voAAAAASUVORK5CYII=")},a.prototype.createCheckboxCheckedReadOnlyIcon=function(){return a.getFromCacheOrCreate("CheckboxCheckedReadOnlyIcon","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoV2luZG93cykiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6NTZENDVDNkY0NDVFMTFFNkI1MjZCRkJDQ0FEMUEyNDMiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6NTZENDVDNzA0NDVFMTFFNkI1MjZCRkJDQ0FEMUEyNDMiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDo1NkQ0NUM2RDQ0NUUxMUU2QjUyNkJGQkNDQUQxQTI0MyIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDo1NkQ0NUM2RTQ0NUUxMUU2QjUyNkJGQkNDQUQxQTI0MyIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PiE1TFsAAAGLSURBVHjadJI9a8JQFIbfSFBBakDaDg5O0nay4OSPsEFoCq4JODhUShd3F9emFreKqJOlS6Xg4OB/cIkZijjXwRa/uthzLokESS683I+cJ+fec15pv9/DHfP5/JSmR1KedOEcW6QP0nMqlfp2YyUXJOiWpleSAv/xQzIIfudNyAO9+UHr9Rrtdhuz2SzOMU4sQrQ4o7nF2f3SDIdD1Ot19Ho9ODEtYs454z0p7gdNp1OYpontdot0Ou0ec+wDgyrvlsslxuPxAdpsNmg0GnxFVCoVaJrm/WeewSte9ft9lMtljEYj8YWvNhgMkMvloOs6ZFn2gpeHnaIoohDNZhO73Q7dbhfRaBTVahWJROL4FX+y06frQqGAyWSCTqcDy7KwWq1Qq9WQzWb9nv8VcpqLcDgsrprJZASkqiqKxWJAS/HJ4IvTXCSTSRiGISpYKpUQiUSCjPAknOMxgLRYLGDbtsgci8WOIbbZHbvHaznNMcJJwPV+SbprOSnA5Ddccq4eyeY3kUyvyf8FGAAA/p3KIKgjXwAAAABJRU5ErkJggg==")},a.prototype.createCheckboxUncheckedIcon=function(){return a.getFromCacheOrCreate("CheckboxUncheckedIcon","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA2ZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDpFQ0VGQkU3ODM4MTFFNjExQjlCQzhERUVDNkNGMzFDMyIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDo2MkU1Rjk1NDExNDExMUU2ODhEQkMyRTJGOUNGODYyQyIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDo2MkU1Rjk1MzExNDExMUU2ODhEQkMyRTJGOUNGODYyQyIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgQ1M2IChXaW5kb3dzKSI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOjI1MkM4M0M1M0MxMUU2MTFCOUJDOERFRUM2Q0YzMUMzIiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOkVDRUZCRTc4MzgxMUU2MTFCOUJDOERFRUM2Q0YzMUMzIi8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+t+CXswAAAFBJREFUeNrsksENwDAIA023a9YGNqlItkixlAFIn1VOMv5wvACAOxOZWUwsB6Gqswp36QivJNhBRHDhI0f8j9jNrCy4O2twNMobT/7QeQUYAFaKU1yE2OfhAAAAAElFTkSuQmCC")},a.prototype.createCheckboxUncheckedReadOnlyIcon=function(){return a.getFromCacheOrCreate("CheckboxUncheckedReadOnlyIcon","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoV2luZG93cykiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6NjE4MjE1MTc0NDVFMTFFNjgyNzA5QzQ5MjBBRTM0QTkiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6NjE4MjE1MTg0NDVFMTFFNjgyNzA5QzQ5MjBBRTM0QTkiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDo2MTgyMTUxNTQ0NUUxMUU2ODI3MDlDNDkyMEFFMzRBOSIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDo2MTgyMTUxNjQ0NUUxMUU2ODI3MDlDNDkyMEFFMzRBOSIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PoIZc5kAAADFSURBVHjaYvz//z8DDDx69EgESBUBsQ8Qq0GFbwDxJiCeJCcn9wamlhGmEagpGEjNBWJ+BuzgExAnATWvhWuEaloN4jPgByBbQkGaGR8+fCgK5NwBYj4G4gDIZlUmIJFLgiYGqNoCkEY/BtKBD0ijBhka1ZkYyAO/mKDxRCq4xwSNXFLBVlB0iAEZt0mODmBkvgKlCGjkMhCRAECp5xU4cKDJKAyIP+PR9BmWalDSKloi9wUFOSj0gPgWyE9APBE5kQMEGAD0/UBfnjaiGAAAAABJRU5ErkJggg==")},a.prototype.createCheckboxIndeterminateIcon=function(){return a.getFromCacheOrCreate("CheckboxIndeterminateIcon","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA2ZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDpFQ0VGQkU3ODM4MTFFNjExQjlCQzhERUVDNkNGMzFDMyIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDpGMjU4MzhGQjEyM0ExMUU2QjAxM0Q2QjZFQ0IzNzM4NiIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDpGMjU4MzhGQTEyM0ExMUU2QjAxM0Q2QjZFQ0IzNzM4NiIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgQ1M2IChXaW5kb3dzKSI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOjIzMkM4M0M1M0MxMUU2MTFCOUJDOERFRUM2Q0YzMUMzIiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOkVDRUZCRTc4MzgxMUU2MTFCOUJDOERFRUM2Q0YzMUMzIi8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+2Xml2QAAAGBJREFUeNpiYGBg8ATiZ0D8n0j8DKqH4dnhw4f/EwtAakF6GEGmAAEDKYCRkZGBiYFMQH+NLNjcjw2ghwMLIQWDx48Do/H5kSNHiNZw9OhREPUCRHiBNJOQyJ+A9AAEGACqkFldNkPUwwAAAABJRU5ErkJggg==")},a.prototype.createCheckboxIndeterminateReadOnlyIcon=function(){return a.getFromCacheOrCreate("CheckboxIndeterminateReadOnlyIcon","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoV2luZG93cykiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6Nzg3RjczNTA0NDVFMTFFNkE4Q0NDN0E3NUI3Qjk5QjIiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6Nzg3RjczNTE0NDVFMTFFNkE4Q0NDN0E3NUI3Qjk5QjIiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDo3ODdGNzM0RTQ0NUUxMUU2QThDQ0M3QTc1QjdCOTlCMiIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDo3ODdGNzM0RjQ0NUUxMUU2QThDQ0M3QTc1QjdCOTlCMiIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PhD2+R8AAADRSURBVHjaYvz//z8DDDx69EgESBUBsQ8Qq0GFbwDxJiCeJCcn9wamlhGmEagpGEjNBWJ+BuzgExAnATWvhWuEaloN4jPgByBbQkGaGR8+fCgK5NwBYj4G4gDIZlUmIJFLgiYGqNoCkEY/BtKBDwuQ0IDx5OXl8aoGegvGVGdiIA/8YoHGkz6aiYTAPSZo5JIKtoKiQwzIuE1ydAAj8xUoRUAjl4GIBABKPa/AgQNNRmFA/BmPps+wVIOSVtESuS8oyEGhB8S3QH4C4onIiRwgwABzikY1hHfO+QAAAABJRU5ErkJggg==")},a.prototype.createGroupExpandedIcon=function(){return a.getFromCacheOrCreate("GroupExpandedIcon","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAsAAAALCAYAAACprHcmAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoV2luZG93cykiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6NzBBODQ4M0ExMjM4MTFFNkFDNEJDMjUzQUJBQ0I2QjkiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6NzBBODQ4M0IxMjM4MTFFNkFDNEJDMjUzQUJBQ0I2QjkiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDo3MEE4NDgzODEyMzgxMUU2QUM0QkMyNTNBQkFDQjZCOSIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDo3MEE4NDgzOTEyMzgxMUU2QUM0QkMyNTNBQkFDQjZCOSIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PhKAo60AAADVSURBVHjajFC9DkRgEJzzFhqiligURKcjR+UFJK7wGN7jOq+glXgCvSgUCnyVn47GHsVdcURsss3s7OzOPEzTdB3HeTPGeMMw0DQNOI4Dz/PI8xyWZSGO4y4MwxeSJGnruqarGseRNE1r4fv+YSgIwgErioJwpgrggHmeR7Bt+xZ5GAbCNE2/0zvpv78v6bpOUFX1lvK6roQz92dkWZYJiqLcSmOeZ9qDb6uqusx5WRaSJIlBFEUnTdNuC536vifXdaksSwqCgLIsoyiKdnNs23l+BBgAK/54I/P5bhMAAAAASUVORK5CYII=")},a.prototype.createGroupContractedIcon=function(){return a.getFromCacheOrCreate("GroupContractedIcon","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAsAAAALCAYAAACprHcmAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoV2luZG93cykiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6N0U2QUVBRDYxMjM4MTFFNjk3NjVBRUM0MUJDRjFCODgiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6N0U2QUVBRDcxMjM4MTFFNjk3NjVBRUM0MUJDRjFCODgiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDo3RTZBRUFENDEyMzgxMUU2OTc2NUFFQzQxQkNGMUI4OCIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDo3RTZBRUFENTEyMzgxMUU2OTc2NUFFQzQxQkNGMUI4OCIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PhjzsKsAAADSSURBVHjajJAvioVgFMXPuAuLYhYMBsVmU54mNyA4wWW4j2luwSq4ArsYDAZ9X/JP0+KZ58CkgTffD264l3MPnPPh+34cRdGXEEL1PA/TNEFRFKiqirZtEQQByrJ85nn+iaqq5nEc+Y5t2+g4zow0TSlD13XEf66/JElChGEoJV7Xldj3/WfRNI0A/sx9v3Fdl7BtW8r5ui6CkpimSViWJSU+joN38fMwDG+F53nSMAwBXdejuq6fr9K5LAvjOGbf98yyjE3TsCiKO5x4/Ty+BRgA3R6JXc/jqsQAAAAASUVORK5CYII=")},a.imageCache={},a}();b.SvgFactory=d},function(a,b,c){var d=this&&this.__decorate||function(a,b,c,d){var g,e=arguments.length,f=e<3?b:null===d?d=Object.getOwnPropertyDescriptor(b,c):d;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)f=Reflect.decorate(a,b,c,d);else for(var h=a.length-1;h>=0;h--)(g=a[h])&&(f=(e<3?g(f):e>3?g(b,c,f):g(b,c))||f);return e>3&&f&&Object.defineProperty(b,c,f),f},e=this&&this.__metadata||function(a,b){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(a,b)},f=c(9),g=c(8),h=c(57),i=function(){function a(){}return a.prototype.useCellRenderer=function(a,b,c){var d=this.lookUpCellRenderer(a);if(!f.Utils.missing(d)){var e,g=null;this.checkForDeprecatedItems(d);var h=this.doesImplementICellRenderer(d);if(h){var i=d;g=new i,this.context.wireBean(g),g.init&&g.init(c),e=g.getGui()}else{var j=d;e=j(c)}if(null!==e&&""!==e)return f.Utils.isNodeOrElement(e)?b.appendChild(e):b.innerHTML=e,g}},a.prototype.checkForDeprecatedItems=function(a){a&&a.renderer&&console.warn("ag-grid: colDef.cellRenderer should not be an object, it should be a string, function or class. this changed in v4.1.x, please check the documentation on Cell Rendering, or if you are doing grouping, look at the grouping examples.")},a.prototype.doesImplementICellRenderer=function(a){return a.prototype&&"getGui"in a.prototype},a.prototype.lookUpCellRenderer=function(a){return"string"==typeof a?this.cellRendererFactory.getCellRenderer(a):a},d([g.Autowired("cellRendererFactory"),e("design:type",h.CellRendererFactory)],a.prototype,"cellRendererFactory",void 0),d([g.Autowired("context"),e("design:type",g.Context)],a.prototype,"context",void 0),a=d([g.Bean("cellRendererService"),e("design:paramtypes",[])],a)}();b.CellRendererService=i},function(a,b,c){var d=this&&this.__decorate||function(a,b,c,d){var g,e=arguments.length,f=e<3?b:null===d?d=Object.getOwnPropertyDescriptor(b,c):d;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)f=Reflect.decorate(a,b,c,d);else for(var h=a.length-1;h>=0;h--)(g=a[h])&&(f=(e<3?g(f):e>3?g(b,c,f):g(b,c))||f);return e>3&&f&&Object.defineProperty(b,c,f),f},e=this&&this.__metadata||function(a,b){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(a,b)},f=c(8),g=c(5),h=function(){function a(){}return a.prototype.formatValue=function(a,b,c,d,e){var f,g=a.getColDef();f=b.floating&&g.floatingCellFormatter?g.floatingCellFormatter:g.cellFormatter;var h=null;if(f){var i={value:e,node:b,column:a,$scope:c,rowIndex:d,api:this.gridOptionsWrapper.getApi(),context:this.gridOptionsWrapper.getContext()};h=f(i)}return h},d([f.Autowired("gridOptionsWrapper"),e("design:type",g.GridOptionsWrapper)],a.prototype,"gridOptionsWrapper",void 0),a=d([f.Bean("valueFormatterService"),e("design:paramtypes",[])],a)}();b.ValueFormatterService=h},function(a,b,c){var d=this&&this.__extends||function(a,b){function d(){this.constructor=a}for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c]);a.prototype=null===b?Object.create(b):(d.prototype=b.prototype,new d)},e=this&&this.__decorate||function(a,b,c,d){var g,e=arguments.length,f=e<3?b:null===d?d=Object.getOwnPropertyDescriptor(b,c):d;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)f=Reflect.decorate(a,b,c,d);else for(var h=a.length-1;h>=0;h--)(g=a[h])&&(f=(e<3?g(f):e>3?g(b,c,f):g(b,c))||f);return e>3&&f&&Object.defineProperty(b,c,f),f},f=this&&this.__metadata||function(a,b){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(a,b)},g=c(49),h=c(29),i=c(9),j=c(8),k=c(5),l=c(61),m=l.SvgFactory.getInstance(),n=function(a){function b(){a.call(this,'<span class="ag-selection-checkbox"/>')}return d(b,a),b.prototype.createAndAddIcons=function(){this.eCheckedIcon=i.Utils.createIconNoSpan("checkboxChecked",this.gridOptionsWrapper,null,m.createCheckboxCheckedIcon),this.eUncheckedIcon=i.Utils.createIconNoSpan("checkboxUnchecked",this.gridOptionsWrapper,null,m.createCheckboxUncheckedIcon),this.eIndeterminateIcon=i.Utils.createIconNoSpan("checkboxIndeterminate",this.gridOptionsWrapper,null,m.createCheckboxIndeterminateIcon);var a=this.getGui();a.appendChild(this.eCheckedIcon),a.appendChild(this.eUncheckedIcon),a.appendChild(this.eIndeterminateIcon)},b.prototype.onSelectionChanged=function(){var a=this.rowNode.isSelected();i.Utils.setVisible(this.eCheckedIcon,a===!0),i.Utils.setVisible(this.eUncheckedIcon,a===!1),i.Utils.setVisible(this.eIndeterminateIcon,"boolean"!=typeof a)},b.prototype.onCheckedClicked=function(){this.rowNode.setSelected(!1)},b.prototype.onUncheckedClicked=function(a){this.rowNode.setSelectedParams({newValue:!0,rangeSelect:a.shiftKey})},b.prototype.onIndeterminateClicked=function(a){this.rowNode.setSelectedParams({newValue:!0,rangeSelect:a.shiftKey})},b.prototype.init=function(a){this.createAndAddIcons(),this.rowNode=a.rowNode,this.onSelectionChanged(),this.addGuiEventListener("click",function(a){return a.stopPropagation()}),this.addGuiEventListener("dblclick",function(a){return a.stopPropagation()}),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,h.RowNode.EVENT_ROW_SELECTED,this.onSelectionChanged.bind(this))},e([j.Autowired("gridOptionsWrapper"),f("design:type",k.GridOptionsWrapper)],b.prototype,"gridOptionsWrapper",void 0),b}(g.Component);b.CheckboxSelectionComponent=n},function(a,b,c){var d=c(9),e=c(17),f=function(){function a(a,b){
this.destroyFunctions=[],this.columnOrGroup=a,this.eCell=b,this.init()}return a.prototype.init=function(){var a=this,b=this.onLeftChanged.bind(this);this.columnOrGroup.addEventListener(e.Column.EVENT_LEFT_CHANGED,b),this.destroyFunctions.push(function(){a.columnOrGroup.removeEventListener(e.Column.EVENT_LEFT_CHANGED,b)}),this.onLeftChanged()},a.prototype.onLeftChanged=function(){var a=this.columnOrGroup.getLeft();d.Utils.exists(a)?this.eCell.style.left=this.columnOrGroup.getLeft()+"px":this.eCell.style.left=""},a.prototype.destroy=function(){this.destroyFunctions.forEach(function(a){a()})},a}();b.SetLeftFeature=f},function(a,b){var c=function(){function a(){}return a}();b.MethodNotImplementedException=c},function(a,b,c){var d=this&&this.__decorate||function(a,b,c,d){var g,e=arguments.length,f=e<3?b:null===d?d=Object.getOwnPropertyDescriptor(b,c):d;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)f=Reflect.decorate(a,b,c,d);else for(var h=a.length-1;h>=0;h--)(g=a[h])&&(f=(e<3?g(f):e>3?g(b,c,f):g(b,c))||f);return e>3&&f&&Object.defineProperty(b,c,f),f},e=this&&this.__metadata||function(a,b){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(a,b)},f=c(8),g=c(10),h=c(15),i=c(28),j=c(9),k=c(36),l=c(35),m=function(){function a(){}return a.prototype.getNextCellToFocus=function(a,b){switch(a){case g.Constants.KEY_UP:return this.getCellAbove(b);case g.Constants.KEY_DOWN:return this.getCellBelow(b);case g.Constants.KEY_RIGHT:return this.getCellToRight(b);case g.Constants.KEY_LEFT:return this.getCellToLeft(b);default:console.log("ag-Grid: unknown key for navigation "+a)}},a.prototype.getCellToLeft=function(a){var b=this.columnController.getDisplayedColBefore(a.column);return b?new l.GridCell(a.rowIndex,a.floating,b):null},a.prototype.getCellToRight=function(a){var b=this.columnController.getDisplayedColAfter(a.column);return b?new l.GridCell(a.rowIndex,a.floating,b):null},a.prototype.getRowBelow=function(a){return this.isLastRowInContainer(a)?a.isFloatingBottom()?null:a.isNotFloating()?this.floatingRowModel.isRowsToRender(g.Constants.FLOATING_BOTTOM)?new k.GridRow(0,g.Constants.FLOATING_BOTTOM):null:this.rowModel.isRowsToRender()?new k.GridRow(0,null):this.floatingRowModel.isRowsToRender(g.Constants.FLOATING_BOTTOM)?new k.GridRow(0,g.Constants.FLOATING_BOTTOM):null:new k.GridRow(a.rowIndex+1,a.floating)},a.prototype.getCellBelow=function(a){var b=this.getRowBelow(a.getGridRow());return b?new l.GridCell(b.rowIndex,b.floating,a.column):null},a.prototype.isLastRowInContainer=function(a){if(a.isFloatingTop()){var b=this.floatingRowModel.getFloatingTopRowData().length-1;return b===a.rowIndex}if(a.isFloatingBottom()){var c=this.floatingRowModel.getFloatingBottomRowData().length-1;return c===a.rowIndex}var d=this.rowModel.getRowCount()-1;return d===a.rowIndex},a.prototype.getRowAbove=function(a){return 0===a.rowIndex?a.isFloatingTop()?null:a.isNotFloating()?this.floatingRowModel.isRowsToRender(g.Constants.FLOATING_TOP)?this.getLastFloatingTopRow():null:this.rowModel.isRowsToRender()?this.getLastBodyCell():this.floatingRowModel.isRowsToRender(g.Constants.FLOATING_TOP)?this.getLastFloatingTopRow():null:new k.GridRow(a.rowIndex-1,a.floating)},a.prototype.getCellAbove=function(a){var b=this.getRowAbove(a.getGridRow());return b?new l.GridCell(b.rowIndex,b.floating,a.column):null},a.prototype.getLastBodyCell=function(){var a=this.rowModel.getRowCount()-1;return new k.GridRow(a,null)},a.prototype.getLastFloatingTopRow=function(){var a=this.floatingRowModel.getFloatingTopRowData().length-1;return new k.GridRow(a,g.Constants.FLOATING_TOP)},a.prototype.getNextTabbedCell=function(a,b){return b?this.getNextTabbedCellBackwards(a):this.getNextTabbedCellForwards(a)},a.prototype.getNextTabbedCellForwards=function(a){var b=this.columnController.getAllDisplayedColumns(),c=a.rowIndex,d=a.floating,e=this.columnController.getDisplayedColAfter(a.column);if(!e){e=b[0];var f=this.getRowBelow(a.getGridRow());if(j.Utils.missing(f))return;c=f.rowIndex,d=f.floating}return new l.GridCell(c,d,e)},a.prototype.getNextTabbedCellBackwards=function(a){var b=this.columnController.getAllDisplayedColumns(),c=a.rowIndex,d=a.floating,e=this.columnController.getDisplayedColBefore(a.column);if(!e){e=b[b.length-1];var f=this.getRowAbove(a.getGridRow());if(j.Utils.missing(f))return;c=f.rowIndex,d=f.floating}return new l.GridCell(c,d,e)},d([f.Autowired("columnController"),e("design:type",h.ColumnController)],a.prototype,"columnController",void 0),d([f.Autowired("rowModel"),e("design:type",Object)],a.prototype,"rowModel",void 0),d([f.Autowired("floatingRowModel"),e("design:type",i.FloatingRowModel)],a.prototype,"floatingRowModel",void 0),a=d([f.Bean("cellNavigationService"),e("design:paramtypes",[])],a)}();b.CellNavigationService=m},function(a,b,c){var d=this&&this.__decorate||function(a,b,c,d){var g,e=arguments.length,f=e<3?b:null===d?d=Object.getOwnPropertyDescriptor(b,c):d;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)f=Reflect.decorate(a,b,c,d);else for(var h=a.length-1;h>=0;h--)(g=a[h])&&(f=(e<3?g(f):e>3?g(b,c,f):g(b,c))||f);return e>3&&f&&Object.defineProperty(b,c,f),f},e=this&&this.__metadata||function(a,b){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(a,b)},f=c(5),g=c(15),h=c(26),i=c(17),j=c(8),k=c(69),l=c(6),m=c(12),n=function(){function a(){}return a.prototype.init=function(){var a=this;this.eHeaderViewport=this.gridPanel.getHeaderViewport(),this.eRoot=this.gridPanel.getRoot(),this.eHeaderOverlay=this.gridPanel.getHeaderOverlay(),this.centerContainer=new k.HeaderContainer(this.gridPanel.getHeaderContainer(),this.gridPanel.getHeaderViewport(),this.eRoot,null),this.childContainers=[this.centerContainer],this.gridOptionsWrapper.isForPrint()||(this.pinnedLeftContainer=new k.HeaderContainer(this.gridPanel.getPinnedLeftHeader(),null,this.eRoot,i.Column.PINNED_LEFT),this.pinnedRightContainer=new k.HeaderContainer(this.gridPanel.getPinnedRightHeader(),null,this.eRoot,i.Column.PINNED_RIGHT),this.childContainers.push(this.pinnedLeftContainer),this.childContainers.push(this.pinnedRightContainer)),this.childContainers.forEach(function(b){return a.context.wireBean(b)}),this.eventService.addEventListener(m.Events.EVENT_GRID_COLUMNS_CHANGED,this.onGridColumnsChanged.bind(this)),this.eventService.addEventListener(m.Events.EVENT_COLUMN_VALUE_CHANGED,this.refreshHeader.bind(this)),this.eventService.addEventListener(m.Events.EVENT_COLUMN_RESIZED,this.setPinnedColContainerWidth.bind(this)),this.eventService.addEventListener(m.Events.EVENT_DISPLAYED_COLUMNS_CHANGED,this.setPinnedColContainerWidth.bind(this)),this.columnController.isReady()&&this.refreshHeader()},a.prototype.forEachHeaderElement=function(a){this.childContainers.forEach(function(b){return b.forEachHeaderElement(a)})},a.prototype.destroy=function(){this.childContainers.forEach(function(a){return a.destroy()})},a.prototype.onGridColumnsChanged=function(){this.setHeight()},a.prototype.refreshHeader=function(){this.setHeight(),this.childContainers.forEach(function(a){return a.refresh()}),this.setPinnedColContainerWidth()},a.prototype.setHeight=function(){if(this.eHeaderOverlay){var a=this.gridOptionsWrapper.getHeaderHeight(),b=this.columnController.getHeaderRowCount();this.eHeaderOverlay.style.height=a+"px",this.eHeaderOverlay.style.top=(b-1)*a+"px"}},a.prototype.setPinnedColContainerWidth=function(){if(!this.gridOptionsWrapper.isForPrint()){var a=this.columnController.getPinnedLeftContainerWidth();this.eHeaderViewport.style.marginLeft=a+"px",this.pinnedLeftContainer.setWidth(a);var b=this.columnController.getPinnedRightContainerWidth();this.eHeaderViewport.style.marginRight=b+"px",this.pinnedRightContainer.setWidth(b)}},d([j.Autowired("gridOptionsWrapper"),e("design:type",f.GridOptionsWrapper)],a.prototype,"gridOptionsWrapper",void 0),d([j.Autowired("columnController"),e("design:type",g.ColumnController)],a.prototype,"columnController",void 0),d([j.Autowired("gridPanel"),e("design:type",h.GridPanel)],a.prototype,"gridPanel",void 0),d([j.Autowired("context"),e("design:type",j.Context)],a.prototype,"context",void 0),d([j.Autowired("eventService"),e("design:type",l.EventService)],a.prototype,"eventService",void 0),d([j.PostConstruct,e("design:type",Function),e("design:paramtypes",[]),e("design:returntype",void 0)],a.prototype,"init",null),d([j.PreDestroy,e("design:type",Function),e("design:paramtypes",[]),e("design:returntype",void 0)],a.prototype,"destroy",null),a=d([j.Bean("headerRenderer"),e("design:paramtypes",[])],a)}();b.HeaderRenderer=n},function(a,b,c){var d=this&&this.__decorate||function(a,b,c,d){var g,e=arguments.length,f=e<3?b:null===d?d=Object.getOwnPropertyDescriptor(b,c):d;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)f=Reflect.decorate(a,b,c,d);else for(var h=a.length-1;h>=0;h--)(g=a[h])&&(f=(e<3?g(f):e>3?g(b,c,f):g(b,c))||f);return e>3&&f&&Object.defineProperty(b,c,f),f},e=this&&this.__metadata||function(a,b){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(a,b)},f=c(9),g=c(5),h=c(8),i=c(70),j=c(15),k=c(26),l=c(6),m=c(12),n=c(71),o=c(78),p=function(){function a(a,b,c,d){this.headerRowComps=[],this.eContainer=a,this.eRoot=c,this.pinned=d,this.eViewport=b}return a.prototype.setWidth=function(a){this.eContainer.style.width=a+"px"},a.prototype.forEachHeaderElement=function(a){this.headerRowComps.forEach(function(b){return b.forEachHeaderElement(a)})},a.prototype.init=function(){this.setupDragAndDrop(),this.eventService.addEventListener(m.Events.EVENT_COLUMN_VALUE_CHANGED,this.onGridColumnsChanged.bind(this)),this.eventService.addEventListener(m.Events.EVENT_GRID_COLUMNS_CHANGED,this.onGridColumnsChanged.bind(this))},a.prototype.destroy=function(){this.removeHeaderRowComps()},a.prototype.onGridColumnsChanged=function(){this.removeHeaderRowComps(),this.createHeaderRowComps()},a.prototype.refresh=function(){this.onGridColumnsChanged()},a.prototype.setupDragAndDrop=function(){var a=this.eViewport?this.eViewport:this.eContainer,b=new o.BodyDropTarget(this.pinned,a);this.context.wireBean(b)},a.prototype.removeHeaderRowComps=function(){this.headerRowComps.forEach(function(a){a.destroy()}),this.headerRowComps.length=0,f.Utils.removeAllChildren(this.eContainer)},a.prototype.createHeaderRowComps=function(){for(var a=this.columnController.getHeaderRowCount(),b=0;b<a;b++){var c=b!==a-1,d=new n.HeaderRowComp(b,c,this.pinned,this.eRoot,this.dropTarget);this.context.wireBean(d),this.headerRowComps.push(d),this.eContainer.appendChild(d.getGui())}},d([h.Autowired("gridOptionsWrapper"),e("design:type",g.GridOptionsWrapper)],a.prototype,"gridOptionsWrapper",void 0),d([h.Autowired("context"),e("design:type",h.Context)],a.prototype,"context",void 0),d([h.Autowired("$scope"),e("design:type",Object)],a.prototype,"$scope",void 0),d([h.Autowired("dragAndDropService"),e("design:type",i.DragAndDropService)],a.prototype,"dragAndDropService",void 0),d([h.Autowired("columnController"),e("design:type",j.ColumnController)],a.prototype,"columnController",void 0),d([h.Autowired("gridPanel"),e("design:type",k.GridPanel)],a.prototype,"gridPanel",void 0),d([h.Autowired("eventService"),e("design:type",l.EventService)],a.prototype,"eventService",void 0),d([h.PostConstruct,e("design:type",Function),e("design:paramtypes",[]),e("design:returntype",void 0)],a.prototype,"init",null),a}();b.HeaderContainer=p},function(a,b,c){var d=this&&this.__decorate||function(a,b,c,d){var g,e=arguments.length,f=e<3?b:null===d?d=Object.getOwnPropertyDescriptor(b,c):d;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)f=Reflect.decorate(a,b,c,d);else for(var h=a.length-1;h>=0;h--)(g=a[h])&&(f=(e<3?g(f):e>3?g(b,c,f):g(b,c))||f);return e>3&&f&&Object.defineProperty(b,c,f),f},e=this&&this.__metadata||function(a,b){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(a,b)},f=this&&this.__param||function(a,b){return function(c,d){b(c,d,a)}},g=c(7),h=c(8),i=c(9),j=c(5),k=c(61),l=c(33),m=c(15),n=k.SvgFactory.getInstance();!function(a){a[a.ToolPanel=0]="ToolPanel",a[a.HeaderCell=1]="HeaderCell"}(b.DragSourceType||(b.DragSourceType={}));var p=(b.DragSourceType,function(){function a(){this.dragSourceAndParamsList=[],this.dropTargets=[]}return a.prototype.init=function(){this.ePinnedIcon=i.Utils.createIcon("columnMovePin",this.gridOptionsWrapper,null,n.createPinIcon),this.ePlusIcon=i.Utils.createIcon("columnMoveAdd",this.gridOptionsWrapper,null,n.createPlusIcon),this.eHiddenIcon=i.Utils.createIcon("columnMoveHide",this.gridOptionsWrapper,null,n.createColumnHiddenIcon),this.eMoveIcon=i.Utils.createIcon("columnMoveMove",this.gridOptionsWrapper,null,n.createMoveIcon),this.eLeftIcon=i.Utils.createIcon("columnMoveLeft",this.gridOptionsWrapper,null,n.createLeftIcon),this.eRightIcon=i.Utils.createIcon("columnMoveRight",this.gridOptionsWrapper,null,n.createRightIcon),this.eGroupIcon=i.Utils.createIcon("columnMoveGroup",this.gridOptionsWrapper,null,n.createGroupIcon),this.eAggregateIcon=i.Utils.createIcon("columnMoveValue",this.gridOptionsWrapper,null,n.createAggregationIcon),this.ePivotIcon=i.Utils.createIcon("columnMovePivot",this.gridOptionsWrapper,null,n.createPivotIcon),this.eDropNotAllowedIcon=i.Utils.createIcon("dropNotAllowed",this.gridOptionsWrapper,null,n.createDropNotAllowedIcon)},a.prototype.setBeans=function(a){this.logger=a.create("OldToolPanelDragAndDropService"),this.eBody=document.querySelector("body"),this.eBody||console.warn("ag-Grid: could not find document body, it is needed for dragging columns")},a.prototype.addDragSource=function(a,b){void 0===b&&(b=!1);var c={eElement:a.eElement,onDragStart:this.onDragStart.bind(this,a),onDragStop:this.onDragStop.bind(this),onDragging:this.onDragging.bind(this)};this.dragSourceAndParamsList.push({params:c,dragSource:a}),this.dragService.addDragSource(c,b)},a.prototype.removeDragSource=function(a){var b=i.Utils.find(this.dragSourceAndParamsList,function(b){return b.dragSource===a});b&&(this.dragService.removeDragSource(b.params),i.Utils.removeFromArray(this.dragSourceAndParamsList,b))},a.prototype.destroy=function(){var a=this;this.dragSourceAndParamsList.forEach(function(b){a.dragService.removeDragSource(b.params)}),this.dragSourceAndParamsList.length=0},a.prototype.nudge=function(){this.dragging&&this.onDragging(this.eventLastTime,!0)},a.prototype.onDragStart=function(a,b){this.dragging=!0,this.dragSource=a,this.eventLastTime=b,this.dragSource.dragItem.forEach(function(a){return a.setMoving(!0)}),this.dragItem=this.dragSource.dragItem,this.lastDropTarget=this.dragSource.dragSourceDropTarget,this.createGhost()},a.prototype.onDragStop=function(a){if(this.eventLastTime=null,this.dragging=!1,this.dragItem.forEach(function(a){return a.setMoving(!1)}),this.lastDropTarget&&this.lastDropTarget.onDragStop){var b=this.createDropTargetEvent(this.lastDropTarget,a,null,!1);this.lastDropTarget.onDragStop(b)}this.lastDropTarget=null,this.dragItem=null,this.removeGhost()},a.prototype.onDragging=function(a,b){var c=this.workOutDirection(a);this.eventLastTime=a,this.positionGhost(a);var d=i.Utils.find(this.dropTargets,this.isMouseOnDropTarget.bind(this,a));if(d!==this.lastDropTarget)this.leaveLastTargetIfExists(a,c,b),this.enterDragTargetIfExists(d,a,c,b),this.lastDropTarget=d;else if(d){var e=this.createDropTargetEvent(d,a,c,b);d.onDragging(e)}},a.prototype.enterDragTargetIfExists=function(a,b,c,d){if(a){var e=this.createDropTargetEvent(a,b,c,d);a.onDragEnter(e),this.setGhostIcon(a.getIconName?a.getIconName():null)}},a.prototype.leaveLastTargetIfExists=function(a,b,c){if(this.lastDropTarget){var d=this.createDropTargetEvent(this.lastDropTarget,a,b,c);this.lastDropTarget.onDragLeave(d),this.setGhostIcon(null)}},a.prototype.getAllContainersFromDropTarget=function(a){var b=[a.getContainer()],c=a.getSecondaryContainers?a.getSecondaryContainers():null;return c&&(b=b.concat(c)),b},a.prototype.isMouseOnDropTarget=function(a,b){var c=this.getAllContainersFromDropTarget(b),d=!1;return c.forEach(function(b){if(b){var c=b.getBoundingClientRect();if(0!==c.width&&0!==c.height){var e=a.clientX>=c.left&&a.clientX<=c.right,f=a.clientY>=c.top&&a.clientY<=c.bottom;e&&f&&(d=!0)}}}),d},a.prototype.addDropTarget=function(a){this.dropTargets.push(a)},a.prototype.workOutDirection=function(b){var c;return c=this.eventLastTime.clientX>b.clientX?a.DIRECTION_LEFT:this.eventLastTime.clientX<b.clientX?a.DIRECTION_RIGHT:null},a.prototype.createDropTargetEvent=function(a,b,c,d){var e=a.getContainer().getBoundingClientRect(),f=b.clientX-e.left,g=b.clientY-e.top,h={event:b,x:f,y:g,direction:c,dragSource:this.dragSource,fromNudge:d};return h},a.prototype.positionGhost=function(a){var b=this.eGhost.getBoundingClientRect(),c=b.height,d=i.Utils.getBodyWidth()-2,e=i.Utils.getBodyHeight()-2,f=a.pageY-c/2,g=a.pageX-30,h=window.pageYOffset||document.documentElement.scrollTop,j=window.pageXOffset||document.documentElement.scrollLeft;d>0&&g+this.eGhost.clientWidth>d+j&&(g=d+j-this.eGhost.clientWidth),g<0&&(g=0),e>0&&f+this.eGhost.clientHeight>e+h&&(f=e+h-this.eGhost.clientHeight),f<0&&(f=0),this.eGhost.style.left=g+"px",this.eGhost.style.top=f+"px"},a.prototype.removeGhost=function(){this.eGhost&&this.eBody.removeChild(this.eGhost),this.eGhost=null},a.prototype.createGhost=function(){this.eGhost=i.Utils.loadTemplate(a.GHOST_TEMPLATE),this.eGhostIcon=this.eGhost.querySelector(".ag-dnd-ghost-icon"),this.lastDropTarget&&this.setGhostIcon(this.lastDropTarget.getIconName?this.lastDropTarget.getIconName():null);var b=this.eGhost.querySelector(".ag-dnd-ghost-label");b.innerHTML=this.dragSource.dragItemName,this.eGhost.style.height=this.gridOptionsWrapper.getHeaderHeight()+"px",this.eGhost.style.top="20px",this.eGhost.style.left="20px",this.eBody.appendChild(this.eGhost)},a.prototype.setGhostIcon=function(b,c){void 0===c&&(c=!1),i.Utils.removeAllChildren(this.eGhostIcon);var d;switch(b){case a.ICON_ADD:d=this.ePlusIcon;break;case a.ICON_PINNED:d=this.ePinnedIcon;break;case a.ICON_MOVE:d=this.eMoveIcon;break;case a.ICON_LEFT:d=this.eLeftIcon;break;case a.ICON_RIGHT:d=this.eRightIcon;break;case a.ICON_GROUP:d=this.eGroupIcon;break;case a.ICON_AGGREGATE:d=this.eAggregateIcon;break;case a.ICON_PIVOT:d=this.ePivotIcon;break;case a.ICON_NOT_ALLOWED:d=this.eDropNotAllowedIcon;break;default:d=this.eHiddenIcon}this.eGhostIcon.appendChild(d),i.Utils.addOrRemoveCssClass(this.eGhostIcon,"ag-shake-left-to-right",c)},a.DIRECTION_LEFT="left",a.DIRECTION_RIGHT="right",a.ICON_PINNED="pinned",a.ICON_ADD="add",a.ICON_MOVE="move",a.ICON_LEFT="left",a.ICON_RIGHT="right",a.ICON_GROUP="group",a.ICON_AGGREGATE="aggregate",a.ICON_PIVOT="pivot",a.ICON_NOT_ALLOWED="notAllowed",a.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>',d([h.Autowired("gridOptionsWrapper"),e("design:type",j.GridOptionsWrapper)],a.prototype,"gridOptionsWrapper",void 0),d([h.Autowired("dragService"),e("design:type",l.DragService)],a.prototype,"dragService",void 0),d([h.Autowired("columnController"),e("design:type",m.ColumnController)],a.prototype,"columnController",void 0),d([h.PostConstruct,e("design:type",Function),e("design:paramtypes",[]),e("design:returntype",void 0)],a.prototype,"init",null),d([f(0,h.Qualifier("loggerFactory")),e("design:type",Function),e("design:paramtypes",[g.LoggerFactory]),e("design:returntype",void 0)],a.prototype,"setBeans",null),d([h.PreDestroy,e("design:type",Function),e("design:paramtypes",[]),e("design:returntype",void 0)],a.prototype,"destroy",null),a=d([h.Bean("dragAndDropService"),e("design:paramtypes",[])],a)}());b.DragAndDropService=p},function(a,b,c){var d=this&&this.__extends||function(a,b){function d(){this.constructor=a}for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c]);a.prototype=null===b?Object.create(b):(d.prototype=b.prototype,new d)},e=this&&this.__decorate||function(a,b,c,d){var g,e=arguments.length,f=e<3?b:null===d?d=Object.getOwnPropertyDescriptor(b,c):d;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)f=Reflect.decorate(a,b,c,d);else for(var h=a.length-1;h>=0;h--)(g=a[h])&&(f=(e<3?g(f):e>3?g(b,c,f):g(b,c))||f);return e>3&&f&&Object.defineProperty(b,c,f),f},f=this&&this.__metadata||function(a,b){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(a,b)},g=c(49),h=c(8),i=c(5),j=c(16),k=c(15),l=c(72),m=c(76),n=c(6),o=c(12),p=c(9),q=function(a){function b(b,c,d,e,f){a.call(this,'<div class="ag-header-row"/>'),this.headerElements={},this.dept=b,this.showingGroups=c,this.pinned=d,this.eRoot=e,this.dropTarget=f}return d(b,a),b.prototype.forEachHeaderElement=function(a){var b=this;Object.keys(this.headerElements).forEach(function(c){var d=b.headerElements[c];a(d)})},b.prototype.destroy=function(){var b=Object.keys(this.headerElements);this.removeAndDestroyChildComponents(b),a.prototype.destroy.call(this)},b.prototype.removeAndDestroyChildComponents=function(a){var b=this;a.forEach(function(a){var c=b.headerElements[a];b.getGui().removeChild(c.getGui()),c.destroy(),delete b.headerElements[a]})},b.prototype.onRowHeightChanged=function(){var a=this.gridOptionsWrapper.getHeaderHeight();this.getGui().style.top=this.dept*a+"px",this.getGui().style.height=a+"px"},b.prototype.init=function(){this.onRowHeightChanged(),this.onVirtualColumnsChanged(),this.addDestroyableEventListener(this.gridOptionsWrapper,i.GridOptionsWrapper.PROP_HEADER_HEIGHT,this.onRowHeightChanged.bind(this)),this.addDestroyableEventListener(this.eventService,o.Events.EVENT_VIRTUAL_COLUMNS_CHANGED,this.onVirtualColumnsChanged.bind(this)),this.addDestroyableEventListener(this.eventService,o.Events.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this))},b.prototype.onDisplayedColumnsChanged=function(){if(this.showingGroups){var a=Object.keys(this.headerElements);this.removeAndDestroyChildComponents(a)}this.onVirtualColumnsChanged()},b.prototype.onVirtualColumnsChanged=function(){var a=this,b=Object.keys(this.headerElements),c=this.columnController.getVirtualHeaderGroupRow(this.pinned,this.dept);c.forEach(function(c){var d=c.getUniqueId();if(b.indexOf(d)>=0)return void p.Utils.removeFromArray(b,d);if(!(c instanceof j.ColumnGroup&&0===c.getDisplayedChildren().length)){var e=a.createHeaderElement(c);a.headerElements[d]=e,a.getGui().appendChild(e.getGui())}}),this.removeAndDestroyChildComponents(b)},b.prototype.createHeaderElement=function(a){var b;return b=a instanceof j.ColumnGroup?new l.RenderedHeaderGroupCell(a,this.eRoot,this.dropTarget):new m.RenderedHeaderCell(a,this.eRoot,this.dropTarget),this.context.wireBean(b),b},e([h.Autowired("gridOptionsWrapper"),f("design:type",i.GridOptionsWrapper)],b.prototype,"gridOptionsWrapper",void 0),e([h.Autowired("columnController"),f("design:type",k.ColumnController)],b.prototype,"columnController",void 0),e([h.Autowired("context"),f("design:type",h.Context)],b.prototype,"context",void 0),e([h.Autowired("eventService"),f("design:type",n.EventService)],b.prototype,"eventService",void 0),e([h.PostConstruct,f("design:type",Function),f("design:paramtypes",[]),f("design:returntype",void 0)],b.prototype,"init",null),b}(g.Component);b.HeaderRowComp=q},function(a,b,c){var d=this&&this.__decorate||function(a,b,c,d){var g,e=arguments.length,f=e<3?b:null===d?d=Object.getOwnPropertyDescriptor(b,c):d;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)f=Reflect.decorate(a,b,c,d);else for(var h=a.length-1;h>=0;h--)(g=a[h])&&(f=(e<3?g(f):e>3?g(b,c,f):g(b,c))||f);return e>3&&f&&Object.defineProperty(b,c,f),f},e=this&&this.__metadata||function(a,b){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(a,b)},f=c(9),g=c(61),h=c(15),i=c(45),j=c(5),k=c(17),l=c(73),m=c(8),n=c(74),o=c(70),p=c(65),q=c(75),r=g.SvgFactory.getInstance(),s=function(){function a(a,b,c){this.destroyFunctions=[],this.columnGroup=a,this.eRoot=b,this.dragSourceDropTarget=c}return a.prototype.getGui=function(){return this.eHeaderGroupCell},a.prototype.onIndividualColumnResized=function(a){this.columnGroup.isChildInThisGroupDeepSearch(a)&&this.setWidth()},a.prototype.init=function(){this.eHeaderGroupCell=document.createElement("div"),n.CssClassApplier.addHeaderClassesFromCollDef(this.columnGroup.getColGroupDef(),this.eHeaderGroupCell,this.gridOptionsWrapper,null,this.columnGroup),this.displayName=this.columnController.getDisplayNameForColumnGroup(this.columnGroup),this.setupResize(),this.addClasses(),this.setupLabel(),this.setupMove(),this.setWidth();var a=new p.SetLeftFeature(this.columnGroup,this.eHeaderGroupCell);this.destroyFunctions.push(a.destroy.bind(a))},a.prototype.setupLabel=function(){if(this.displayName&&""!==this.displayName){var a=document.createElement("div");a.className="ag-header-group-cell-label",this.eHeaderGroupCell.appendChild(a),f.Utils.isBrowserSafari()&&(a.style.display="table-cell");var b=document.createElement("span");b.className="ag-header-group-text",b.innerHTML=this.displayName,a.appendChild(b),this.columnGroup.isExpandable()&&this.addGroupExpandIcon(a)}},a.prototype.addClasses=function(){f.Utils.addCssClass(this.eHeaderGroupCell,"ag-header-group-cell"),this.columnGroup.isPadding()?f.Utils.addCssClass(this.eHeaderGroupCell,"ag-header-group-cell-no-group"):f.Utils.addCssClass(this.eHeaderGroupCell,"ag-header-group-cell-with-group")},a.prototype.setupResize=function(){var a=this;this.gridOptionsWrapper.isEnableColResize()&&(this.eHeaderCellResize=document.createElement("div"),this.eHeaderCellResize.className="ag-header-cell-resize",this.eHeaderGroupCell.appendChild(this.eHeaderCellResize),this.dragService.addDragHandling({eDraggableElement:this.eHeaderCellResize,eBody:this.eRoot,cursor:"col-resize",startAfterPixels:0,onDragStart:this.onDragStart.bind(this),onDragging:this.onDragging.bind(this)}),this.gridOptionsWrapper.isSuppressAutoSize()||this.eHeaderCellResize.addEventListener("dblclick",function(b){var c=[];a.columnGroup.getDisplayedLeafColumns().forEach(function(a){a.getColDef().suppressAutoSize||c.push(a.getColId())}),c.length>0&&a.columnController.autoSizeColumns(c)}))},a.prototype.isSuppressMoving=function(){var a=!1;this.columnGroup.getLeafColumns().forEach(function(b){b.getColDef().suppressMovable&&(a=!0)});var b=a||this.gridOptionsWrapper.isSuppressMovableColumns()||this.gridOptionsWrapper.isForPrint();return b},a.prototype.setupMove=function(){var a=this,b=this.eHeaderGroupCell.querySelector(".ag-header-group-cell-label");if(b&&!this.isSuppressMoving()&&b){var c={type:o.DragSourceType.HeaderCell,eElement:b,dragItemName:this.displayName,dragItem:this.getAllColumnsInThisGroup(),dragSourceDropTarget:this.dragSourceDropTarget};this.dragAndDropService.addDragSource(c,!0),this.destroyFunctions.push(function(){return a.dragAndDropService.removeDragSource(c)})}},a.prototype.getAllColumnsInThisGroup=function(){var a=this.columnGroup.getOriginalColumnGroup().getLeafColumns(),b=[];return this.columnController.getAllDisplayedColumns().forEach(function(c){a.indexOf(c)>=0&&(b.push(c),f.Utils.removeFromArray(a,c))}),a.forEach(function(a){return b.push(a)}),b},a.prototype.setWidth=function(){var a=this,b=function(){a.eHeaderGroupCell.style.width=a.columnGroup.getActualWidth()+"px"};this.columnGroup.getLeafColumns().forEach(function(c){c.addEventListener(k.Column.EVENT_WIDTH_CHANGED,b),a.destroyFunctions.push(function(){c.removeEventListener(k.Column.EVENT_WIDTH_CHANGED,b)})}),b()},a.prototype.destroy=function(){this.destroyFunctions.forEach(function(a){a()})},a.prototype.addGroupExpandIcon=function(a){var c,b=this;c=this.columnGroup.isExpanded()?f.Utils.createIcon("columnGroupOpened",this.gridOptionsWrapper,null,r.createGroupContractedIcon):f.Utils.createIcon("columnGroupClosed",this.gridOptionsWrapper,null,r.createGroupExpandedIcon),c.className="ag-header-expand-icon",a.appendChild(c);var d=function(){var a=!b.columnGroup.isExpanded();b.columnController.setColumnGroupOpened(b.columnGroup,a)};c.addEventListener("click",d),this.destroyFunctions.push(function(){c.removeEventListener("click",d)});var e=new q.TouchListener(c);e.addEventListener(q.TouchListener.EVENT_TAP,d),this.destroyFunctions.push(function(){e.removeEventListener(q.TouchListener.EVENT_TAP,d),e.destroy()})},a.prototype.onDragStart=function(){var a=this;this.groupWidthStart=this.columnGroup.getActualWidth(),this.childrenWidthStarts=[],this.columnGroup.getDisplayedLeafColumns().forEach(function(b){a.childrenWidthStarts.push(b.getActualWidth())})},a.prototype.onDragging=function(a,b){var c=this,d=this.groupWidthStart+a,e=this.columnGroup.getMinWidth();d<e&&(d=e);var f=d/this.groupWidthStart,g=d,h=this.columnGroup.getDisplayedLeafColumns();h.forEach(function(a,d){var i,e=d!==h.length-1;if(e){var j=c.childrenWidthStarts[d];i=j*f,i<a.getMinWidth()&&(i=a.getMinWidth()),g-=i}else i=g;c.columnController.setColumnWidth(a,i,b)})},d([m.Autowired("filterManager"),e("design:type",i.FilterManager)],a.prototype,"filterManager",void 0),d([m.Autowired("gridOptionsWrapper"),e("design:type",j.GridOptionsWrapper)],a.prototype,"gridOptionsWrapper",void 0),d([m.Autowired("horizontalDragService"),e("design:type",l.HorizontalDragService)],a.prototype,"dragService",void 0),d([m.Autowired("columnController"),e("design:type",h.ColumnController)],a.prototype,"columnController",void 0),d([m.Autowired("dragAndDropService"),e("design:type",o.DragAndDropService)],a.prototype,"dragAndDropService",void 0),d([m.PostConstruct,e("design:type",Function),e("design:paramtypes",[]),e("design:returntype",void 0)],a.prototype,"init",null),a}();b.RenderedHeaderGroupCell=s},function(a,b,c){var d=this&&this.__decorate||function(a,b,c,d){var g,e=arguments.length,f=e<3?b:null===d?d=Object.getOwnPropertyDescriptor(b,c):d;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)f=Reflect.decorate(a,b,c,d);else for(var h=a.length-1;h>=0;h--)(g=a[h])&&(f=(e<3?g(f):e>3?g(b,c,f):g(b,c))||f);return e>3&&f&&Object.defineProperty(b,c,f),f},e=this&&this.__metadata||function(a,b){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(a,b)},f=c(8),g=function(){function a(){}return a.prototype.addDragHandling=function(a){a.eDraggableElement.addEventListener("mousedown",function(b){new h(a,b)})},a=d([f.Bean("horizontalDragService"),e("design:paramtypes",[])],a)}();b.HorizontalDragService=g;var h=function(){function a(a,b){this.mouseMove=this.onMouseMove.bind(this),this.mouseUp=this.onMouseUp.bind(this),this.mouseLeave=this.onMouseLeave.bind(this),this.lastDelta=0,this.params=a,this.eDragParent=document.querySelector("body"),this.dragStartX=b.clientX,this.startEvent=b,this.eDragParent.addEventListener("mousemove",this.mouseMove),this.eDragParent.addEventListener("mouseup",this.mouseUp),this.eDragParent.addEventListener("mouseleave",this.mouseLeave),this.draggingStarted=!1;var c="number"==typeof a.startAfterPixels&&a.startAfterPixels>0;c||this.startDragging()}return a.prototype.startDragging=function(){this.draggingStarted=!0,this.oldBodyCursor=this.params.eBody.style.cursor,this.oldParentCursor=this.eDragParent.style.cursor,this.oldMsUserSelect=this.eDragParent.style.msUserSelect,this.oldWebkitUserSelect=this.eDragParent.style.webkitUserSelect,this.params.eBody.style.cursor=this.params.cursor,this.eDragParent.style.cursor=this.params.cursor,this.eDragParent.style.msUserSelect="none",this.eDragParent.style.webkitUserSelect="none",this.params.onDragStart(this.startEvent)},a.prototype.onMouseMove=function(a){var b=a.clientX;if(this.lastDelta=b-this.dragStartX,!this.draggingStarted){var c=Math.abs(this.lastDelta)>=this.params.startAfterPixels;c&&this.startDragging()}this.draggingStarted&&this.params.onDragging(this.lastDelta,!1)},a.prototype.onMouseUp=function(){this.stopDragging()},a.prototype.onMouseLeave=function(){this.stopDragging()},a.prototype.stopDragging=function(){this.draggingStarted&&(this.params.eBody.style.cursor=this.oldBodyCursor,
this.eDragParent.style.cursor=this.oldParentCursor,this.eDragParent.style.msUserSelect=this.oldMsUserSelect,this.eDragParent.style.webkitUserSelect=this.oldWebkitUserSelect,this.params.onDragging(this.lastDelta,!0)),this.eDragParent.removeEventListener("mousemove",this.mouseMove),this.eDragParent.removeEventListener("mouseup",this.mouseUp),this.eDragParent.removeEventListener("mouseleave",this.mouseLeave)},a}()},function(a,b,c){var d=c(9),e=function(){function a(){}return a.addHeaderClassesFromCollDef=function(a,b,c,e,f){if(a&&a.headerClass){var g;if("function"==typeof a.headerClass){var h={colDef:a,column:e,columnGroup:f,context:c.getContext(),api:c.getApi()},i=a.headerClass;g=i(h)}else g=a.headerClass;"string"==typeof g?d.Utils.addCssClass(b,g):Array.isArray(g)&&g.forEach(function(a){d.Utils.addCssClass(b,a)})}},a}();b.CssClassApplier=e},function(a,b,c){var d=c(6),e=c(9),f=function(){function a(a){var b=this;this.destroyFuncs=[],this.touching=!1,this.eventService=new d.EventService,this.eElement=a;var c=this.onTouchStart.bind(this),e=this.onTouchMove.bind(this),f=this.onTouchEnd.bind(this);this.eElement.addEventListener("touchstart",c),this.eElement.addEventListener("touchmove",e),this.eElement.addEventListener("touchend",f),this.destroyFuncs.push(function(){b.eElement.addEventListener("touchstart",c),b.eElement.addEventListener("touchmove",e),b.eElement.addEventListener("touchend",f)})}return a.prototype.getActiveTouch=function(a){for(var b=0;b<a.length;b++){var c=a[b].identifier===this.touchStart.identifier;if(c)return a[b]}return null},a.prototype.addEventListener=function(a,b){this.eventService.addEventListener(a,b)},a.prototype.removeEventListener=function(a,b){this.eventService.removeEventListener(a,b)},a.prototype.onTouchStart=function(b){var c=this;if(!this.touching){this.touchStart=b.touches[0],this.touching=!0,this.moved=!1;var d=this.touchStart;setTimeout(function(){var b=c.touchStart===d;c.touching&&b&&!c.moved&&(c.moved=!0,c.eventService.dispatchEvent(a.EVENT_LONG_TAP,c.touchStart))},500)}},a.prototype.onTouchMove=function(a){if(this.touching){var b=this.getActiveTouch(a.touches);if(b){var c=!e.Utils.areEventsNear(b,this.touchStart,4);c&&(this.moved=!0)}}},a.prototype.onTouchEnd=function(b){this.touching&&(this.moved||this.eventService.dispatchEvent(a.EVENT_TAP,this.touchStart),this.touching=!1)},a.prototype.destroy=function(){this.destroyFuncs.forEach(function(a){return a()})},a.EVENT_TAP="tap",a.EVENT_LONG_TAP="longTap",a}();b.TouchListener=f},function(a,b,c){var d=this&&this.__decorate||function(a,b,c,d){var g,e=arguments.length,f=e<3?b:null===d?d=Object.getOwnPropertyDescriptor(b,c):d;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)f=Reflect.decorate(a,b,c,d);else for(var h=a.length-1;h>=0;h--)(g=a[h])&&(f=(e<3?g(f):e>3?g(b,c,f):g(b,c))||f);return e>3&&f&&Object.defineProperty(b,c,f),f},e=this&&this.__metadata||function(a,b){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(a,b)},f=c(9),g=c(17),h=c(45),i=c(15),j=c(77),k=c(5),l=c(73),m=c(42),n=c(8),o=c(74),p=c(70),q=c(44),r=c(65),s=c(75),t=function(){function a(a,b,c){this.destroyFunctions=[],this.column=a,this.eRoot=b,this.dragSourceDropTarget=c}return a.prototype.getColumn=function(){return this.column},a.prototype.init=function(){this.eHeaderCell=this.headerTemplateLoader.createHeaderElement(this.column),f.Utils.addCssClass(this.eHeaderCell,"ag-header-cell"),this.createScope(),this.addAttributes(),o.CssClassApplier.addHeaderClassesFromCollDef(this.column.getColDef(),this.eHeaderCell,this.gridOptionsWrapper,this.column,null);var a=this.eHeaderCell.querySelector("#agHeaderCellLabel");this.displayName=this.columnController.getDisplayNameForColumn(this.column,!0),this.setupMovingCss(),this.setupTooltip(),this.setupResize(),this.setupTap(),this.setupMove(a),this.setupMenu(),this.setupSort(a),this.setupFilterIcon(),this.setupText(),this.setupWidth();var b=new r.SetLeftFeature(this.column,this.eHeaderCell);this.destroyFunctions.push(b.destroy.bind(b))},a.prototype.setupTooltip=function(){var a=this.column.getColDef();a.headerTooltip&&(this.eHeaderCell.title=a.headerTooltip)},a.prototype.setupText=function(){var b,a=this.column.getColDef();a.headerCellRenderer?b=a.headerCellRenderer:this.gridOptionsWrapper.getHeaderCellRenderer()&&(b=this.gridOptionsWrapper.getHeaderCellRenderer());var c=this.eHeaderCell.querySelector("#agText");c&&(b?this.useRenderer(this.displayName,b,c):(c.className="ag-header-cell-text",c.innerHTML=this.displayName))},a.prototype.setupFilterIcon=function(){var a=this,b=this.eHeaderCell.querySelector("#agFilter");if(b){var c=function(){var c=a.column.isFilterActive();f.Utils.addOrRemoveCssClass(a.eHeaderCell,"ag-header-cell-filtered",c),f.Utils.addOrRemoveCssClass(b,"ag-hidden",!c)};this.column.addEventListener(g.Column.EVENT_FILTER_CHANGED,c),this.destroyFunctions.push(function(){a.column.removeEventListener(g.Column.EVENT_FILTER_CHANGED,c)}),c()}},a.prototype.setupWidth=function(){var a=this,b=function(){a.eHeaderCell.style.width=a.column.getActualWidth()+"px"};this.column.addEventListener(g.Column.EVENT_WIDTH_CHANGED,b),this.destroyFunctions.push(function(){a.column.removeEventListener(g.Column.EVENT_WIDTH_CHANGED,b)}),b()},a.prototype.getGui=function(){return this.eHeaderCell},a.prototype.destroy=function(){this.destroyFunctions.forEach(function(a){a()})},a.prototype.createScope=function(){var a=this;this.gridOptionsWrapper.isAngularCompileHeaders()&&(this.childScope=this.$scope.$new(),this.childScope.colDef=this.column.getColDef(),this.childScope.colDefWrapper=this.column,this.childScope.context=this.gridOptionsWrapper.getContext(),this.destroyFunctions.push(function(){a.childScope.$destroy()}))},a.prototype.addAttributes=function(){this.eHeaderCell.setAttribute("colId",this.column.getColId())},a.prototype.setupMenu=function(){var a=this,b=this.eHeaderCell.querySelector("#agMenu");if(b){var c=!this.menuFactory.isMenuEnabled(this.column)||this.column.getColDef().suppressMenu;if(c)return void f.Utils.removeFromParent(b);b.addEventListener("click",function(){return a.showMenu(b)}),this.gridOptionsWrapper.isSuppressMenuHide()||(b.style.opacity="0",this.eHeaderCell.addEventListener("mouseover",function(){b.style.opacity="1"}),this.eHeaderCell.addEventListener("mouseout",function(){b.style.opacity="0"}));var d=b.style;d.transition="opacity 0.2s, border 0.2s",d["-webkit-transition"]="opacity 0.2s, border 0.2s"}},a.prototype.showMenu=function(a){this.menuFactory.showMenuAfterButtonClick(this.column,a)},a.prototype.setupMovingCss=function(){var a=this,b=function(){a.column.isMoving()?f.Utils.addCssClass(a.eHeaderCell,"ag-header-cell-moving"):f.Utils.removeCssClass(a.eHeaderCell,"ag-header-cell-moving")};b(),this.column.addEventListener(g.Column.EVENT_MOVING_CHANGED,b),this.destroyFunctions.push(function(){a.column.removeEventListener(g.Column.EVENT_MOVING_CHANGED,b)})},a.prototype.setupMove=function(a){var b=this,c=this.gridOptionsWrapper.isSuppressMovableColumns()||this.column.getColDef().suppressMovable||this.gridOptionsWrapper.isForPrint();if(!c&&a){var d={type:p.DragSourceType.HeaderCell,eElement:a,dragItem:[this.column],dragItemName:this.displayName,dragSourceDropTarget:this.dragSourceDropTarget};this.dragAndDropService.addDragSource(d,!0),this.destroyFunctions.push(function(){return b.dragAndDropService.removeDragSource(d)})}},a.prototype.setupTap=function(){var a=this;if(!this.gridOptionsWrapper.isSuppressTouch()){var b=new s.TouchListener(this.getGui()),c=function(b){a.sortController.progressSort(a.column,!1)},d=function(b){a.gridOptionsWrapper.getApi().showColumnMenuAfterMouseClick(a.column,b)};b.addEventListener(s.TouchListener.EVENT_TAP,c),b.addEventListener(s.TouchListener.EVENT_LONG_TAP,d),this.destroyFunctions.push(function(){b.removeEventListener(s.TouchListener.EVENT_TAP,c),b.removeEventListener(s.TouchListener.EVENT_LONG_TAP,d),b.destroy()})}},a.prototype.setupResize=function(){var a=this,b=this.column.getColDef(),c=this.eHeaderCell.querySelector("#agResizeBar");if(c){var d=this.gridOptionsWrapper.isEnableColResize()&&!b.suppressResize;if(!d)return void f.Utils.removeFromParent(c);this.horizontalDragService.addDragHandling({eDraggableElement:c,eBody:this.eRoot,cursor:"col-resize",startAfterPixels:0,onDragStart:this.onDragStart.bind(this),onDragging:this.onDragging.bind(this)});var e=!this.gridOptionsWrapper.isSuppressAutoSize()&&!b.suppressAutoSize;e&&c.addEventListener("dblclick",function(){a.columnController.autoSizeColumn(a.column)})}},a.prototype.useRenderer=function(a,b,c){var g,d={colDef:this.column.getColDef(),$scope:this.childScope,context:this.gridOptionsWrapper.getContext(),value:a,api:this.gridOptionsWrapper.getApi(),eHeaderCell:this.eHeaderCell},e=b(d);if(f.Utils.isNodeOrElement(e))g=e;else{var h=document.createElement("span");h.innerHTML=e,g=h}if(this.gridOptionsWrapper.isAngularCompileHeaders()){var i=this.$compile(g)(this.childScope)[0];c.appendChild(i)}else c.appendChild(g)},a.prototype.setupSort=function(a){var b=this,c=this.gridOptionsWrapper.isEnableSorting()&&!this.column.getColDef().suppressSorting;if(!c)return f.Utils.removeFromParent(this.eHeaderCell.querySelector("#agSortAsc")),f.Utils.removeFromParent(this.eHeaderCell.querySelector("#agSortDesc")),void f.Utils.removeFromParent(this.eHeaderCell.querySelector("#agNoSort"));f.Utils.addCssClass(this.eHeaderCell,"ag-header-cell-sortable"),a&&a.addEventListener("click",function(a){b.sortController.progressSort(b.column,a.shiftKey)});var d=this.eHeaderCell.querySelector("#agSortAsc"),e=this.eHeaderCell.querySelector("#agSortDesc"),h=this.eHeaderCell.querySelector("#agNoSort"),i=function(){if(f.Utils.addOrRemoveCssClass(b.eHeaderCell,"ag-header-cell-sorted-asc",b.column.isSortAscending()),f.Utils.addOrRemoveCssClass(b.eHeaderCell,"ag-header-cell-sorted-desc",b.column.isSortDescending()),f.Utils.addOrRemoveCssClass(b.eHeaderCell,"ag-header-cell-sorted-none",b.column.isSortNone()),d&&f.Utils.addOrRemoveCssClass(d,"ag-hidden",!b.column.isSortAscending()),e&&f.Utils.addOrRemoveCssClass(e,"ag-hidden",!b.column.isSortDescending()),h){var a=!b.column.getColDef().unSortIcon&&!b.gridOptionsWrapper.isUnSortIcon();f.Utils.addOrRemoveCssClass(h,"ag-hidden",a||!b.column.isSortNone())}};this.column.addEventListener(g.Column.EVENT_SORT_CHANGED,i),this.destroyFunctions.push(function(){b.column.removeEventListener(g.Column.EVENT_SORT_CHANGED,i)}),i()},a.prototype.onDragStart=function(){this.startWidth=this.column.getActualWidth()},a.prototype.onDragging=function(a,b){var c=this.startWidth+a;this.columnController.setColumnWidth(this.column,c,b)},a.prototype.onIndividualColumnResized=function(a){if(this.column===a){var b=a.getActualWidth()+"px";this.eHeaderCell.style.width=b}},d([n.Autowired("context"),e("design:type",n.Context)],a.prototype,"context",void 0),d([n.Autowired("filterManager"),e("design:type",h.FilterManager)],a.prototype,"filterManager",void 0),d([n.Autowired("columnController"),e("design:type",i.ColumnController)],a.prototype,"columnController",void 0),d([n.Autowired("$compile"),e("design:type",Object)],a.prototype,"$compile",void 0),d([n.Autowired("gridCore"),e("design:type",m.GridCore)],a.prototype,"gridCore",void 0),d([n.Autowired("headerTemplateLoader"),e("design:type",j.HeaderTemplateLoader)],a.prototype,"headerTemplateLoader",void 0),d([n.Autowired("horizontalDragService"),e("design:type",l.HorizontalDragService)],a.prototype,"horizontalDragService",void 0),d([n.Autowired("menuFactory"),e("design:type",Object)],a.prototype,"menuFactory",void 0),d([n.Autowired("gridOptionsWrapper"),e("design:type",k.GridOptionsWrapper)],a.prototype,"gridOptionsWrapper",void 0),d([n.Autowired("dragAndDropService"),e("design:type",p.DragAndDropService)],a.prototype,"dragAndDropService",void 0),d([n.Autowired("sortController"),e("design:type",q.SortController)],a.prototype,"sortController",void 0),d([n.Autowired("$scope"),e("design:type",Object)],a.prototype,"$scope",void 0),d([n.PostConstruct,e("design:type",Function),e("design:paramtypes",[]),e("design:returntype",void 0)],a.prototype,"init",null),a}();b.RenderedHeaderCell=t},function(a,b,c){var d=this&&this.__decorate||function(a,b,c,d){var g,e=arguments.length,f=e<3?b:null===d?d=Object.getOwnPropertyDescriptor(b,c):d;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)f=Reflect.decorate(a,b,c,d);else for(var h=a.length-1;h>=0;h--)(g=a[h])&&(f=(e<3?g(f):e>3?g(b,c,f):g(b,c))||f);return e>3&&f&&Object.defineProperty(b,c,f),f},e=this&&this.__metadata||function(a,b){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(a,b)},f=c(9),g=c(61),h=c(5),i=c(8),j=g.SvgFactory.getInstance(),k=function(){function a(){}return a.prototype.createHeaderElement=function(a){var b={column:a,colDef:a.getColDef,context:this.gridOptionsWrapper.getContext(),api:this.gridOptionsWrapper.getApi()},c=a.getColDef().headerCellTemplate;if("function"==typeof c){var d=c;c=d(b)}if(!c&&this.gridOptionsWrapper.getHeaderCellTemplate()&&(c=this.gridOptionsWrapper.getHeaderCellTemplate()),!c&&this.gridOptionsWrapper.getHeaderCellTemplateFunc()){var e=this.gridOptionsWrapper.getHeaderCellTemplateFunc();c=e(b)}c||(c=this.createDefaultHeaderElement(a));var g;return"string"==typeof c?g=f.Utils.loadTemplate(c):f.Utils.isNodeOrElement(c)?g=c:console.error("ag-Grid: header template must be a string or an HTML element"),g},a.prototype.createDefaultHeaderElement=function(b){var c=f.Utils.loadTemplate(a.HEADER_CELL_TEMPLATE);return this.addInIcon(c,"sortAscending","#agSortAsc",b,j.createArrowUpSvg),this.addInIcon(c,"sortDescending","#agSortDesc",b,j.createArrowDownSvg),this.addInIcon(c,"sortUnSort","#agNoSort",b,j.createArrowUpDownSvg),this.addInIcon(c,"menu","#agMenu",b,j.createMenuSvg),this.addInIcon(c,"filter","#agFilter",b,j.createFilterSvg),c},a.prototype.addInIcon=function(a,b,c,d,e){var g=f.Utils.createIconNoSpan(b,this.gridOptionsWrapper,d,e);a.querySelector(c).appendChild(g)},a.HEADER_CELL_TEMPLATE='<div class="ag-header-cell"> <div id="agResizeBar" class="ag-header-cell-resize"></div> <span id="agMenu" class="ag-header-icon ag-header-cell-menu-button"></span> <div id="agHeaderCellLabel" class="ag-header-cell-label"> <span id="agSortAsc" class="ag-header-icon ag-sort-ascending-icon"></span> <span id="agSortDesc" class="ag-header-icon ag-sort-descending-icon"></span> <span id="agNoSort" class="ag-header-icon ag-sort-none-icon"></span> <span id="agFilter" class="ag-header-icon ag-filter-icon"></span> <span id="agText" class="ag-header-cell-text"></span> </div></div>',d([i.Autowired("gridOptionsWrapper"),e("design:type",h.GridOptionsWrapper)],a.prototype,"gridOptionsWrapper",void 0),a=d([i.Bean("headerTemplateLoader"),e("design:paramtypes",[])],a)}();b.HeaderTemplateLoader=k},function(a,b,c){var d=this&&this.__decorate||function(a,b,c,d){var g,e=arguments.length,f=e<3?b:null===d?d=Object.getOwnPropertyDescriptor(b,c):d;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)f=Reflect.decorate(a,b,c,d);else for(var h=a.length-1;h>=0;h--)(g=a[h])&&(f=(e<3?g(f):e>3?g(b,c,f):g(b,c))||f);return e>3&&f&&Object.defineProperty(b,c,f),f},e=this&&this.__metadata||function(a,b){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(a,b)},f=c(70),g=c(8),h=c(79),i=c(17),j=c(26),k=c(80),l=c(15),m=function(){function a(a,b){this.pinned=a,this.eContainer=b}return a.prototype.getSecondaryContainers=function(){return this.eSecondaryContainers},a.prototype.getContainer=function(){return this.eContainer},a.prototype.init=function(){switch(this.moveColumnController=new h.MoveColumnController(this.pinned),this.context.wireBean(this.moveColumnController),this.bodyDropPivotTarget=new k.BodyDropPivotTarget(this.pinned),this.context.wireBean(this.bodyDropPivotTarget),this.pinned){case i.Column.PINNED_LEFT:this.eSecondaryContainers=this.gridPanel.getDropTargetLeftContainers();break;case i.Column.PINNED_RIGHT:this.eSecondaryContainers=this.gridPanel.getDropTargetPinnedRightContainers();break;default:this.eSecondaryContainers=this.gridPanel.getDropTargetBodyContainers()}this.dragAndDropService.addDropTarget(this)},a.prototype.getIconName=function(){return this.currentDropListener.getIconName()},a.prototype.isUseBodyDropPivotTarget=function(a){return!!this.columnController.isPivotMode()&&a.dragSource.type===f.DragSourceType.ToolPanel},a.prototype.onDragEnter=function(a){var b=this.isUseBodyDropPivotTarget(a);b?this.currentDropListener=this.bodyDropPivotTarget:this.currentDropListener=this.moveColumnController,this.currentDropListener.onDragEnter(a)},a.prototype.onDragLeave=function(a){this.currentDropListener.onDragLeave(a)},a.prototype.onDragging=function(a){this.currentDropListener.onDragging(a)},a.prototype.onDragStop=function(a){this.currentDropListener.onDragStop(a)},d([g.Autowired("context"),e("design:type",g.Context)],a.prototype,"context",void 0),d([g.Autowired("gridPanel"),e("design:type",j.GridPanel)],a.prototype,"gridPanel",void 0),d([g.Autowired("dragAndDropService"),e("design:type",f.DragAndDropService)],a.prototype,"dragAndDropService",void 0),d([g.Autowired("columnController"),e("design:type",l.ColumnController)],a.prototype,"columnController",void 0),d([g.PostConstruct,e("design:type",Function),e("design:paramtypes",[]),e("design:returntype",void 0)],a.prototype,"init",null),a}();b.BodyDropTarget=m},function(a,b,c){var d=this&&this.__decorate||function(a,b,c,d){var g,e=arguments.length,f=e<3?b:null===d?d=Object.getOwnPropertyDescriptor(b,c):d;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)f=Reflect.decorate(a,b,c,d);else for(var h=a.length-1;h>=0;h--)(g=a[h])&&(f=(e<3?g(f):e>3?g(b,c,f):g(b,c))||f);return e>3&&f&&Object.defineProperty(b,c,f),f},e=this&&this.__metadata||function(a,b){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(a,b)},f=c(8),g=c(7),h=c(15),i=c(17),j=c(9),k=c(70),l=c(26),m=c(5),n=function(){function a(a){this.needToMoveLeft=!1,this.needToMoveRight=!1,this.pinned=a,this.centerContainer=!j.Utils.exists(a)}return a.prototype.init=function(){this.logger=this.loggerFactory.create("MoveColumnController")},a.prototype.getIconName=function(){return this.pinned?k.DragAndDropService.ICON_PINNED:k.DragAndDropService.ICON_MOVE},a.prototype.onDragEnter=function(a){var b=a.dragSource.dragItem;this.columnController.setColumnsVisible(b,!0),this.columnController.setColumnsPinned(b,this.pinned),this.onDragging(a,!0)},a.prototype.onDragLeave=function(a){var b=!this.gridOptionsWrapper.isSuppressDragLeaveHidesColumns()&&!a.fromNudge;if(b){var c=a.dragSource.dragItem;this.columnController.setColumnsVisible(c,!1)}this.ensureIntervalCleared()},a.prototype.onDragStop=function(){this.ensureIntervalCleared()},a.prototype.adjustXForScroll=function(a){return this.centerContainer?a.x+this.gridPanel.getHorizontalScrollPosition():a.x},a.prototype.workOutNewIndex=function(a,b,c,d,e){return d===k.DragAndDropService.DIRECTION_LEFT?this.getNewIndexForColMovingLeft(a,b,c,e):this.getNewIndexForColMovingRight(a,b,c,e)},a.prototype.checkCenterForScrolling=function(a){if(this.centerContainer){var b=this.gridPanel.getHorizontalScrollPosition(),c=b+this.gridPanel.getCenterWidth();this.needToMoveLeft=a<b+50,this.needToMoveRight=a>c-50,this.needToMoveLeft||this.needToMoveRight?this.ensureIntervalStarted():this.ensureIntervalCleared()}},a.prototype.onDragging=function(a,b){if(void 0===b&&(b=!1),this.lastDraggingEvent=a,a.direction){var c=this.adjustXForScroll(a);b||this.checkCenterForScrolling(c);var d=a.dragSource.dragItem;this.attemptMoveColumns(d,a.direction,c,b)}},a.prototype.attemptMoveColumns=function(a,b,c,d){var i,e=this.columnController.getDisplayedColumns(this.pinned),f=this.columnController.getAllGridColumns(),g=b===k.DragAndDropService.DIRECTION_LEFT,h=b===k.DragAndDropService.DIRECTION_RIGHT,l=j.Utils.filter(a,function(a){return e.indexOf(a)>=0});i=g?l[0]:l[l.length-1];var m=this.workOutNewIndex(e,f,i,b,c),n=f.indexOf(i);!d&&g&&m>=n||!d&&h&&m<=n||(h&&(m=m-a.length+1),this.columnController.moveColumns(a,m))},a.prototype.getNewIndexForColMovingLeft=function(a,b,c,d){for(var e=0,f=null,g=0;g<a.length;g++){var h=a[g];if(h!==c){if(e+=h.getActualWidth(),e>d)break;f=h}}var i;if(f){i=b.indexOf(f)+1;var j=b.indexOf(c);j<i&&i--}else i=0;return i},a.prototype.getNewIndexForColMovingRight=function(a,b,c,d){for(var e=c,f=e.getActualWidth(),g=null,h=0;h<a.length&&!(f>d);h++){var i=a[h];i!==e&&(f+=i.getActualWidth(),g=i)}var j;if(g){j=b.indexOf(g)+1;var k=b.indexOf(e);k<j&&j--}else j=0;return j},a.prototype.ensureIntervalStarted=function(){this.movingIntervalId||(this.intervalCount=0,this.failedMoveAttempts=0,this.movingIntervalId=setInterval(this.moveInterval.bind(this),100),this.needToMoveLeft?this.dragAndDropService.setGhostIcon(k.DragAndDropService.ICON_LEFT,!0):this.dragAndDropService.setGhostIcon(k.DragAndDropService.ICON_RIGHT,!0))},a.prototype.ensureIntervalCleared=function(){this.moveInterval&&(clearInterval(this.movingIntervalId),this.movingIntervalId=null,this.dragAndDropService.setGhostIcon(k.DragAndDropService.ICON_MOVE))},a.prototype.moveInterval=function(){var a;this.intervalCount++,a=10+5*this.intervalCount,a>100&&(a=100);var b;if(this.needToMoveLeft?b=this.gridPanel.scrollHorizontally(-a):this.needToMoveRight&&(b=this.gridPanel.scrollHorizontally(a)),0!==b)this.onDragging(this.lastDraggingEvent),this.failedMoveAttempts=0;else if(this.failedMoveAttempts++,this.dragAndDropService.setGhostIcon(k.DragAndDropService.ICON_PINNED),this.failedMoveAttempts>7){var c=this.lastDraggingEvent.dragSource.dragItem,d=this.needToMoveLeft?i.Column.PINNED_LEFT:i.Column.PINNED_RIGHT;this.columnController.setColumnsPinned(c,d),this.dragAndDropService.nudge()}},d([f.Autowired("loggerFactory"),e("design:type",g.LoggerFactory)],a.prototype,"loggerFactory",void 0),d([f.Autowired("columnController"),e("design:type",h.ColumnController)],a.prototype,"columnController",void 0),d([f.Autowired("gridPanel"),e("design:type",l.GridPanel)],a.prototype,"gridPanel",void 0),d([f.Autowired("dragAndDropService"),e("design:type",k.DragAndDropService)],a.prototype,"dragAndDropService",void 0),d([f.Autowired("gridOptionsWrapper"),e("design:type",m.GridOptionsWrapper)],a.prototype,"gridOptionsWrapper",void 0),d([f.PostConstruct,e("design:type",Function),e("design:paramtypes",[]),e("design:returntype",void 0)],a.prototype,"init",null),a}();b.MoveColumnController=n},function(a,b,c){var d=this&&this.__decorate||function(a,b,c,d){var g,e=arguments.length,f=e<3?b:null===d?d=Object.getOwnPropertyDescriptor(b,c):d;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)f=Reflect.decorate(a,b,c,d);else for(var h=a.length-1;h>=0;h--)(g=a[h])&&(f=(e<3?g(f):e>3?g(b,c,f):g(b,c))||f);return e>3&&f&&Object.defineProperty(b,c,f),f},e=this&&this.__metadata||function(a,b){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(a,b)},f=c(70),g=c(15),h=c(8),i=c(5),j=function(){function a(a){this.columnsToAggregate=[],this.columnsToGroup=[],this.columnsToPivot=[],this.pinned=a}return a.prototype.onDragEnter=function(a){var b=this;if(this.clearColumnsList(),!this.gridOptionsWrapper.isFunctionsReadOnly()){var c=a.dragSource.dragItem;c.forEach(function(a){a.isPrimary()&&(a.isAnyFunctionActive()||(a.isAllowValue()?b.columnsToAggregate.push(a):a.isAllowRowGroup()?b.columnsToGroup.push(a):a.isAllowRowGroup()&&b.columnsToPivot.push(a)))})}},a.prototype.getIconName=function(){var a=this.columnsToAggregate.length+this.columnsToGroup.length+this.columnsToPivot.length;return a>0?this.pinned?f.DragAndDropService.ICON_PINNED:f.DragAndDropService.ICON_MOVE:null},a.prototype.onDragLeave=function(a){this.clearColumnsList()},a.prototype.clearColumnsList=function(){this.columnsToAggregate.length=0,this.columnsToGroup.length=0,this.columnsToPivot.length=0},a.prototype.onDragging=function(a){},a.prototype.onDragStop=function(a){this.columnsToAggregate.length>0&&this.columnController.addValueColumns(this.columnsToAggregate),this.columnsToGroup.length>0&&this.columnController.addRowGroupColumns(this.columnsToGroup),this.columnsToPivot.length>0&&this.columnController.addPivotColumns(this.columnsToPivot)},d([h.Autowired("columnController"),e("design:type",g.ColumnController)],a.prototype,"columnController",void 0),d([h.Autowired("gridOptionsWrapper"),e("design:type",i.GridOptionsWrapper)],a.prototype,"gridOptionsWrapper",void 0),a}();b.BodyDropPivotTarget=j},function(a,b,c){var d=function(){function a(a){this.type=a}return a.prototype.toString=function(){var a="ColumnChangeEvent {type: "+this.type;return this.column&&(a+=", column: "+this.column.getColId()),this.columnGroup&&(a+=this.columnGroup.getColGroupDef().headerName),this.toIndex&&(a+=", toIndex: "+this.toIndex),this.visible&&(a+=", visible: "+this.visible),this.pinned&&(a+=", pinned: "+this.pinned),"boolean"==typeof this.finished&&(a+=", finished: "+this.finished),a+="}"},a.prototype.withPinned=function(a){return this.pinned=a,this},a.prototype.withVisible=function(a){return this.visible=a,this},a.prototype.isVisible=function(){return this.visible},a.prototype.getPinned=function(){return this.pinned},a.prototype.withColumn=function(a){return this.column=a,this},a.prototype.withColumns=function(a){return this.columns=a,this},a.prototype.withFinished=function(a){return this.finished=a,this},a.prototype.withColumnGroup=function(a){return this.columnGroup=a,this},a.prototype.withToIndex=function(a){return this.toIndex=a,this},a.prototype.getToIndex=function(){return this.toIndex},a.prototype.getType=function(){return this.type},a.prototype.getColumn=function(){return this.column},a.prototype.getColumns=function(){return this.columns},a.prototype.getColumnGroup=function(){return this.columnGroup},a.prototype.isFinished=function(){return this.finished},a}();b.ColumnChangeEvent=d},function(a,b){var c=function(){function a(){this.existingIds={}}return a.prototype.getInstanceIdForKey=function(a){var c,b=this.existingIds[a];return c="number"!=typeof b?0:b+1,this.existingIds[a]=c,c},a}();b.GroupInstanceIdCreator=c},function(a,b,c){function e(a,b,c,e){var f=d.Utils.exists(c)&&c.group,g=d.Utils.exists(e)&&e.group,h=f&&g,i=!f&&!g;return h?d.Utils.defaultComparator(c.key,e.key):i?d.Utils.defaultComparator(a,b):f?1:-1}var d=c(9);b.defaultGroupComparator=e},function(a,b,c){var d=this&&this.__decorate||function(a,b,c,d){var g,e=arguments.length,f=e<3?b:null===d?d=Object.getOwnPropertyDescriptor(b,c):d;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)f=Reflect.decorate(a,b,c,d);else for(var h=a.length-1;h>=0;h--)(g=a[h])&&(f=(e<3?g(f):e>3?g(b,c,f):g(b,c))||f);return e>3&&f&&Object.defineProperty(b,c,f),f},e=this&&this.__metadata||function(a,b){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(a,b)},f=c(8),g=c(45),h=c(9),i=c(46),j=c(5),k=function(){function a(){}return a.prototype.showMenuAfterMouseEvent=function(a,b){var c=this;this.showPopup(a,function(a){c.popupService.positionPopupUnderMouseEvent({mouseEvent:b,ePopup:a})})},a.prototype.showMenuAfterButtonClick=function(a,b){var c=this;this.showPopup(a,function(a){c.popupService.positionPopupUnderComponent({eventSource:b,ePopup:a,keepWithinBounds:!0})})},a.prototype.showPopup=function(a,b){var c=this.filterManager.getOrCreateFilterWrapper(a),d=document.createElement("div");h.Utils.addCssClass(d,"ag-menu"),d.appendChild(c.gui);var e=this.popupService.addAsModalPopup(d,!0);if(b(d),c.filter.afterGuiAttached){var f={hidePopup:e};c.filter.afterGuiAttached(f)}},a.prototype.isMenuEnabled=function(a){return this.gridOptionsWrapper.isEnableFilter()&&a.isFilterAllowed()},d([f.Autowired("filterManager"),e("design:type",g.FilterManager)],a.prototype,"filterManager",void 0),d([f.Autowired("popupService"),e("design:type",i.PopupService)],a.prototype,"popupService",void 0),d([f.Autowired("gridOptionsWrapper"),e("design:type",j.GridOptionsWrapper)],a.prototype,"gridOptionsWrapper",void 0),a=d([f.Bean("menuFactory"),e("design:paramtypes",[])],a)}();b.StandardMenuFactory=k},function(a,b,c){var d=this&&this.__decorate||function(a,b,c,d){var g,e=arguments.length,f=e<3?b:null===d?d=Object.getOwnPropertyDescriptor(b,c):d;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)f=Reflect.decorate(a,b,c,d);else for(var h=a.length-1;h>=0;h--)(g=a[h])&&(f=(e<3?g(f):e>3?g(b,c,f):g(b,c))||f);return e>3&&f&&Object.defineProperty(b,c,f),f},e=this&&this.__metadata||function(a,b){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(a,b)},f=c(8),g=c(8),h=c(5),i=c(45),j=function(){function a(){}return a.prototype.execute=function(a){var b;b=!this.gridOptionsWrapper.isEnableServerSideFilter()&&this.filterManager.isAnyFilterPresent(),this.recursivelyFilter(a,b)},a.prototype.recursivelyFilter=function(a,b){var c=this;a.childrenAfterGroup.forEach(function(a){a.group&&c.recursivelyFilter(a,b)});var d;b?(d=[],a.childrenAfterGroup.forEach(function(a){a.group?a.childrenAfterFilter.length>0&&d.push(a):c.filterManager.doesRowPassFilter(a)&&d.push(a)})):d=a.childrenAfterGroup,a.childrenAfterFilter=d,this.setAllChildrenCount(a)},a.prototype.setAllChildrenCount=function(a){var b=0;a.childrenAfterFilter.forEach(function(a){a.group?b+=a.allChildrenCount:b++}),a.allChildrenCount=b},d([g.Autowired("gridOptionsWrapper"),e("design:type",h.GridOptionsWrapper)],a.prototype,"gridOptionsWrapper",void 0),d([g.Autowired("filterManager"),e("design:type",i.FilterManager)],a.prototype,"filterManager",void 0),a=d([f.Bean("filterStage"),e("design:paramtypes",[])],a)}();b.FilterStage=j},function(a,b,c){var d=this&&this.__decorate||function(a,b,c,d){var g,e=arguments.length,f=e<3?b:null===d?d=Object.getOwnPropertyDescriptor(b,c):d;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)f=Reflect.decorate(a,b,c,d);else for(var h=a.length-1;h>=0;h--)(g=a[h])&&(f=(e<3?g(f):e>3?g(b,c,f):g(b,c))||f);return e>3&&f&&Object.defineProperty(b,c,f),f},e=this&&this.__metadata||function(a,b){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(a,b)},f=c(8),g=c(5),h=c(44),i=c(31),j=c(9),k=function(){function a(){}return a.prototype.execute=function(a){var b;this.gridOptionsWrapper.isEnableServerSideSorting()||(b=this.sortController.getSortForRowController()),this.sortRowNode(a,b)},a.prototype.sortRowNode=function(a,b){var c=this;a.childrenAfterFilter.forEach(function(a){a.group&&c.sortRowNode(a,b)}),a.childrenAfterSort=a.childrenAfterFilter.slice(0);var d=j.Utils.exists(b)&&b.length>0;d&&a.childrenAfterSort.sort(this.compareRowNodes.bind(this,b)),this.updateChildIndexes(a)},a.prototype.compareRowNodes=function(a,b,c){for(var d=0,e=a.length;d<e;d++){var k,f=a[d],g=f.inverter===-1,h=this.valueService.getValue(f.column,b),i=this.valueService.getValue(f.column,c);if(k=f.column.getColDef().comparator?f.column.getColDef().comparator(h,i,b,c,g):j.Utils.defaultComparator(h,i),0!==k)return k*f.inverter}return 0},a.prototype.updateChildIndexes=function(a){j.Utils.missing(a.childrenAfterSort)||a.childrenAfterSort.forEach(function(b,c){b.firstChild=0===c,b.lastChild=c===a.childrenAfterSort.length-1,b.childIndex=c})},d([f.Autowired("gridOptionsWrapper"),e("design:type",g.GridOptionsWrapper)],a.prototype,"gridOptionsWrapper",void 0),d([f.Autowired("sortController"),e("design:type",h.SortController)],a.prototype,"sortController",void 0),d([f.Autowired("valueService"),e("design:type",i.ValueService)],a.prototype,"valueService",void 0),a=d([f.Bean("sortStage"),e("design:paramtypes",[])],a)}();b.SortStage=k},function(a,b,c){var d=this&&this.__decorate||function(a,b,c,d){var g,e=arguments.length,f=e<3?b:null===d?d=Object.getOwnPropertyDescriptor(b,c):d;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)f=Reflect.decorate(a,b,c,d);else for(var h=a.length-1;h>=0;h--)(g=a[h])&&(f=(e<3?g(f):e>3?g(b,c,f):g(b,c))||f);return e>3&&f&&Object.defineProperty(b,c,f),
f},e=this&&this.__metadata||function(a,b){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(a,b)},f=c(8),g=c(29),h=c(9),i=c(5),j=c(30),k=c(6),l=c(15),m=function(){function a(){}return a.prototype.execute=function(a){var b=[],c={value:0},d=this.columnController.isPivotMode(),e=d&&a.leafGroup,f=e?[a]:a.childrenAfterSort;return this.recursivelyAddToRowsToDisplay(f,b,c,d),b},a.prototype.recursivelyAddToRowsToDisplay=function(a,b,c,d){if(!h.Utils.missingOrEmpty(a))for(var e=this.gridOptionsWrapper.isGroupSuppressRow(),f=0;f<a.length;f++){var g=a[f],i=e&&g.group,j=d&&!g.group,k=j||i;if(k||this.addRowNodeToRowsToDisplay(g,b,c),g.group&&g.expanded&&(this.recursivelyAddToRowsToDisplay(g.childrenAfterSort,b,c,d),this.gridOptionsWrapper.isGroupIncludeFooter())){var l=this.createFooterNode(g);this.addRowNodeToRowsToDisplay(l,b,c)}if(g.canFlower&&g.expanded){var m=this.createFlowerNode(g);this.addRowNodeToRowsToDisplay(m,b,c)}}},a.prototype.addRowNodeToRowsToDisplay=function(a,b,c){b.push(a),a.rowHeight=this.gridOptionsWrapper.getRowHeightForNode(a),a.rowTop=c.value,c.value+=a.rowHeight},a.prototype.createFooterNode=function(a){var b=new g.RowNode;return this.context.wireBean(b),Object.keys(a).forEach(function(c){b[c]=a[c]}),b.footer=!0,b.sibling=a,a.sibling=b,b},a.prototype.createFlowerNode=function(a){var b=new g.RowNode;return this.context.wireBean(b),b.flower=!0,b.parent=a,b.data=a.data,b.level=a.level+1,b},d([f.Autowired("gridOptionsWrapper"),e("design:type",i.GridOptionsWrapper)],a.prototype,"gridOptionsWrapper",void 0),d([f.Autowired("selectionController"),e("design:type",j.SelectionController)],a.prototype,"selectionController",void 0),d([f.Autowired("eventService"),e("design:type",k.EventService)],a.prototype,"eventService",void 0),d([f.Autowired("context"),e("design:type",f.Context)],a.prototype,"context",void 0),d([f.Autowired("columnController"),e("design:type",l.ColumnController)],a.prototype,"columnController",void 0),a=d([f.Bean("flattenStage"),e("design:paramtypes",[])],a)}();b.FlattenStage=m},function(a,b,c){var d=this&&this.__decorate||function(a,b,c,d){var g,e=arguments.length,f=e<3?b:null===d?d=Object.getOwnPropertyDescriptor(b,c):d;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)f=Reflect.decorate(a,b,c,d);else for(var h=a.length-1;h>=0;h--)(g=a[h])&&(f=(e<3?g(f):e>3?g(b,c,f):g(b,c))||f);return e>3&&f&&Object.defineProperty(b,c,f),f},e=this&&this.__metadata||function(a,b){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(a,b)},f=c(9),g=c(5),h=c(8),i=c(6),j=c(30),k=c(12),l=c(44),m=c(45),n=c(10),o=c(89),p=function(){function a(){this.destroyFunctions=[]}return a.prototype.init=function(){this.gridOptionsWrapper.isRowModelVirtual()&&(this.addEventListeners(),this.setDatasource(this.gridOptionsWrapper.getDatasource()))},a.prototype.addEventListeners=function(){var a=this,b=this.onSortChanged.bind(this),c=this.onFilterChanged.bind(this);this.eventService.addEventListener(k.Events.EVENT_FILTER_CHANGED,c),this.eventService.addEventListener(k.Events.EVENT_SORT_CHANGED,b),this.destroyFunctions.push(function(){a.eventService.removeEventListener(k.Events.EVENT_FILTER_CHANGED,c),a.eventService.removeEventListener(k.Events.EVENT_SORT_CHANGED,b)})},a.prototype.onFilterChanged=function(){this.gridOptionsWrapper.isEnableServerSideFilter()&&this.reset()},a.prototype.onSortChanged=function(){this.gridOptionsWrapper.isEnableServerSideSorting()&&this.reset()},a.prototype.destroy=function(){this.destroyFunctions.forEach(function(a){return a()})},a.prototype.getType=function(){return n.Constants.ROW_MODEL_TYPE_VIRTUAL},a.prototype.setDatasource=function(a){this.datasource=a,a&&(this.checkForDeprecated(),this.reset())},a.prototype.checkForDeprecated=function(){var a=this.datasource;f.Utils.exists(a.maxConcurrentRequests)&&console.error("ag-Grid: since version 5.1.x, maxConcurrentRequests is replaced with grid property maxConcurrentDatasourceRequests"),f.Utils.exists(a.maxPagesInCache)&&console.error("ag-Grid: since version 5.1.x, maxPagesInCache is replaced with grid property maxPagesInPaginationCache"),f.Utils.exists(a.overflowSize)&&console.error("ag-Grid: since version 5.1.x, overflowSize is replaced with grid property paginationOverflowSize"),f.Utils.exists(a.pageSize)&&console.error("ag-Grid: since version 5.1.x, pageSize is replaced with grid property paginationPageSize")},a.prototype.isEmpty=function(){return f.Utils.missing(this.virtualPageCache)},a.prototype.isRowsToRender=function(){return f.Utils.exists(this.virtualPageCache)},a.prototype.reset=function(){if(!f.Utils.missing(this.datasource)){var a=f.Utils.exists(this.gridOptionsWrapper.getRowNodeIdFunc());a||this.selectionController.reset(),this.resetCache(),this.eventService.dispatchEvent(k.Events.EVENT_MODEL_UPDATED)}},a.prototype.resetCache=function(){var a={datasource:this.datasource,filterModel:this.filterManager.getFilterModel(),sortModel:this.sortController.getSortModel(),maxConcurrentDatasourceRequests:this.gridOptionsWrapper.getMaxConcurrentDatasourceRequests(),paginationOverflowSize:this.gridOptionsWrapper.getPaginationOverflowSize(),paginationInitialRowCount:this.gridOptionsWrapper.getPaginationInitialRowCount(),maxPagesInCache:this.gridOptionsWrapper.getMaxPagesInCache(),pageSize:this.gridOptionsWrapper.getPaginationPageSize(),rowHeight:this.gridOptionsWrapper.getRowHeightAsNumber(),lastAccessedSequence:new f.NumberSequence};a.maxConcurrentDatasourceRequests>=1||(a.maxConcurrentDatasourceRequests=2),a.pageSize>=1||(a.pageSize=100),a.paginationInitialRowCount>=1||(a.paginationInitialRowCount=0),a.paginationOverflowSize>=1||(a.paginationOverflowSize=1),this.virtualPageCache&&this.virtualPageCache.destroy(),this.virtualPageCache=new o.VirtualPageCache(a),this.context.wireBean(this.virtualPageCache)},a.prototype.getRow=function(a){return this.virtualPageCache?this.virtualPageCache.getRow(a):null},a.prototype.forEachNode=function(a){this.virtualPageCache&&this.virtualPageCache.forEachNode(a)},a.prototype.getRowCombinedHeight=function(){return this.virtualPageCache?this.virtualPageCache.getRowCombinedHeight():0},a.prototype.getRowIndexAtPixel=function(a){return this.virtualPageCache?this.virtualPageCache.getRowIndexAtPixel(a):-1},a.prototype.getRowCount=function(){return this.virtualPageCache?this.virtualPageCache.getRowCount():0},a.prototype.insertItemsAtIndex=function(a,b){this.virtualPageCache&&this.virtualPageCache.insertItemsAtIndex(a,b)},a.prototype.removeItems=function(a){console.log("ag-Grid: it is not possible to removeItems when using virtual pagination. Instead use the API to refresh the cache")},a.prototype.addItems=function(a){console.log("ag-Grid: it is not possible to add items when using virtual pagination as the grid does not know that last index of your data - instead either use insertItemsAtIndex OR refresh the cache.")},a.prototype.refreshVirtualPageCache=function(){this.virtualPageCache&&this.virtualPageCache.refreshVirtualPageCache()},a.prototype.purgeVirtualPageCache=function(){this.virtualPageCache&&this.virtualPageCache.purgeVirtualPageCache()},a.prototype.getVirtualRowCount=function(){return this.virtualPageCache?this.virtualPageCache.getVirtualRowCount():null},a.prototype.isMaxRowFound=function(){if(this.virtualPageCache)return this.virtualPageCache.isMaxRowFound()},a.prototype.setVirtualRowCount=function(a,b){this.virtualPageCache&&this.virtualPageCache.setVirtualRowCount(a,b)},a.prototype.getVirtualPageState=function(){return this.virtualPageCache?this.virtualPageCache.getPageState():null},d([h.Autowired("gridOptionsWrapper"),e("design:type",g.GridOptionsWrapper)],a.prototype,"gridOptionsWrapper",void 0),d([h.Autowired("filterManager"),e("design:type",m.FilterManager)],a.prototype,"filterManager",void 0),d([h.Autowired("sortController"),e("design:type",l.SortController)],a.prototype,"sortController",void 0),d([h.Autowired("selectionController"),e("design:type",j.SelectionController)],a.prototype,"selectionController",void 0),d([h.Autowired("eventService"),e("design:type",i.EventService)],a.prototype,"eventService",void 0),d([h.Autowired("context"),e("design:type",h.Context)],a.prototype,"context",void 0),d([h.PostConstruct,e("design:type",Function),e("design:paramtypes",[]),e("design:returntype",void 0)],a.prototype,"init",null),d([h.PreDestroy,e("design:type",Function),e("design:paramtypes",[]),e("design:returntype",void 0)],a.prototype,"destroy",null),a=d([h.Bean("rowModel"),e("design:paramtypes",[])],a)}();b.VirtualPageRowModel=p},function(a,b,c){var d=this&&this.__decorate||function(a,b,c,d){var g,e=arguments.length,f=e<3?b:null===d?d=Object.getOwnPropertyDescriptor(b,c):d;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)f=Reflect.decorate(a,b,c,d);else for(var h=a.length-1;h>=0;h--)(g=a[h])&&(f=(e<3?g(f):e>3?g(b,c,f):g(b,c))||f);return e>3&&f&&Object.defineProperty(b,c,f),f},e=this&&this.__metadata||function(a,b){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(a,b)},f=this&&this.__param||function(a,b){return function(c,d){b(c,d,a)}},g=c(9),h=c(8),i=c(6),j=c(12),k=c(7),l=c(90),m=function(){function a(a){this.pages={},this.activePageLoadsCount=0,this.pagesInCacheCount=0,this.maxRowFound=!1,this.active=!0,this.cacheParams=a,this.virtualRowCount=a.paginationInitialRowCount}return a.prototype.setBeans=function(a){this.logger=a.create("VirtualPageCache")},a.prototype.init=function(){this.getRow(0)},a.prototype.getRowCombinedHeight=function(){return this.virtualRowCount*this.cacheParams.rowHeight},a.prototype.forEachNode=function(a){var b=this,c=0;g.Utils.iterateObject(this.pages,function(d,e){for(var f=e.getStartRow(),g=e.getEndRow(),h=f;h<g;h++)if(h<b.virtualRowCount){var i=e.getRow(h);a(i,c),c++}})},a.prototype.getRowIndexAtPixel=function(a){if(0!==this.cacheParams.rowHeight){var b=Math.floor(a/this.cacheParams.rowHeight);return b>=this.virtualRowCount?this.virtualRowCount-1:b}return 0},a.prototype.moveItemsDown=function(a,b,c){for(var d=a.getStartRow(),e=a.getEndRow(),f=b+c,g=e-1;g>=d;g--)if(!(g<f)){var h=g-c,i=this.getRow(h,!0);i?a.setRowNode(g,i):(a.setBlankRowNode(g),a.setDirty())}},a.prototype.insertItems=function(a,b,c){for(var d=a.getStartRow(),e=a.getEndRow(),f=[],g=0;g<c.length;g++){var h=b+g,i=h>=d&&h<e;if(i){var j=c[g],k=a.setNewData(h,j);f.push(k)}}return f},a.prototype.insertItemsAtIndex=function(a,b){var c=this,d=Object.keys(this.pages).map(function(a){return parseInt(a)}).sort().reverse(),e=[];d.forEach(function(d){var f=c.pages[d],g=f.getEndRow();if(!(g<=a)){c.moveItemsDown(f,a,b.length);var h=c.insertItems(f,a,b);h.forEach(function(a){return e.push(a)})}}),this.maxRowFound&&(this.virtualRowCount+=b.length),this.dispatchModelUpdated(),this.eventService.dispatchEvent(j.Events.EVENT_ITEMS_ADDED,e)},a.prototype.getRowCount=function(){return this.virtualRowCount},a.prototype.onPageLoaded=function(a){this.active&&(this.logger.log("onPageLoaded: page = "+a.page.getPageNumber()+", lastRow = "+a.lastRow),this.activePageLoadsCount--,this.checkPageToLoad(),a.success&&this.checkVirtualRowCount(a.page,a.lastRow))},a.prototype.destroy=function(){this.active=!1},a.prototype.getRow=function(a,b){void 0===b&&(b=!1);var c=Math.floor(a/this.cacheParams.pageSize),d=this.pages[c];if(!d){if(b)return null;d=this.createPage(c)}return d.getRow(a)},a.prototype.createPage=function(a){var b=new l.VirtualPage(a,this.cacheParams);this.context.wireBean(b),b.addEventListener(l.VirtualPage.EVENT_LOAD_COMPLETE,this.onPageLoaded.bind(this)),this.pages[a]=b,this.pagesInCacheCount++;var c=g.Utils.exists(this.cacheParams.maxPagesInCache)&&this.pagesInCacheCount>this.cacheParams.maxPagesInCache;if(c){var d=this.findLeastRecentlyUsedPage(b);this.removePageFromCache(d)}return this.checkPageToLoad(),b},a.prototype.removePageFromCache=function(a){a&&(delete this.pages[a.getPageNumber()],this.pagesInCacheCount--)},a.prototype.printCacheStatus=function(){this.logger.log("checkPageToLoad: activePageLoadsCount = "+this.activePageLoadsCount+", pages = "+JSON.stringify(this.getPageState()))},a.prototype.checkPageToLoad=function(){if(this.printCacheStatus(),this.activePageLoadsCount>=this.cacheParams.maxConcurrentDatasourceRequests)return void this.logger.log("checkPageToLoad: max loads exceeded");var a=null;g.Utils.iterateObject(this.pages,function(b,c){c.getState()===l.VirtualPage.STATE_DIRTY&&(a=c)}),a?(a.load(),this.activePageLoadsCount++,this.logger.log("checkPageToLoad: loading page "+a.getPageNumber()),this.printCacheStatus()):this.logger.log("checkPageToLoad: no pages to load")},a.prototype.findLeastRecentlyUsedPage=function(a){var b=null;return g.Utils.iterateObject(this.pages,function(c,d){d!==a&&(g.Utils.missing(b)||d.getLastAccessed()<b.getLastAccessed())&&(b=d)}),b},a.prototype.checkVirtualRowCount=function(a,b){if("number"==typeof b&&b>=0)this.virtualRowCount=b,this.maxRowFound=!0,this.dispatchModelUpdated();else if(!this.maxRowFound){var c=(a.getPageNumber()+1)*this.cacheParams.pageSize,d=c+this.cacheParams.paginationOverflowSize;this.virtualRowCount<d&&(this.virtualRowCount=d,this.dispatchModelUpdated())}},a.prototype.dispatchModelUpdated=function(){this.active&&this.eventService.dispatchEvent(j.Events.EVENT_MODEL_UPDATED)},a.prototype.getPageState=function(){var a=[];return g.Utils.iterateObject(this.pages,function(b,c){a.push({pageNumber:b,startRow:c.getStartRow(),endRow:c.getEndRow(),pageStatus:c.getState()})}),a},a.prototype.refreshVirtualPageCache=function(){g.Utils.iterateObject(this.pages,function(a,b){b.setDirty()}),this.checkPageToLoad()},a.prototype.purgeVirtualPageCache=function(){var a=this,b=g.Utils.values(this.pages);b.forEach(function(b){return a.removePageFromCache(b)}),this.dispatchModelUpdated()},a.prototype.getVirtualRowCount=function(){return this.virtualRowCount},a.prototype.isMaxRowFound=function(){return this.maxRowFound},a.prototype.setVirtualRowCount=function(a,b){this.virtualRowCount=a,g.Utils.exists(b)&&(this.maxRowFound=b),this.maxRowFound||this.virtualRowCount%this.cacheParams.pageSize===0&&this.virtualRowCount++,this.dispatchModelUpdated()},d([h.Autowired("eventService"),e("design:type",i.EventService)],a.prototype,"eventService",void 0),d([h.Autowired("context"),e("design:type",h.Context)],a.prototype,"context",void 0),d([f(0,h.Qualifier("loggerFactory")),e("design:type",Function),e("design:paramtypes",[k.LoggerFactory]),e("design:returntype",void 0)],a.prototype,"setBeans",null),d([h.PostConstruct,e("design:type",Function),e("design:paramtypes",[]),e("design:returntype",void 0)],a.prototype,"init",null),a}();b.VirtualPageCache=m},function(a,b,c){var d=this&&this.__decorate||function(a,b,c,d){var g,e=arguments.length,f=e<3?b:null===d?d=Object.getOwnPropertyDescriptor(b,c):d;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)f=Reflect.decorate(a,b,c,d);else for(var h=a.length-1;h>=0;h--)(g=a[h])&&(f=(e<3?g(f):e>3?g(b,c,f):g(b,c))||f);return e>3&&f&&Object.defineProperty(b,c,f),f},e=this&&this.__metadata||function(a,b){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(a,b)},f=c(9),g=c(5),h=c(29),i=c(8),j=c(6),k=function(){function a(b,c){this.state=a.STATE_DIRTY,this.version=0,this.localEventService=new j.EventService,this.pageNumber=b,this.cacheParams=c,this.startRow=b*c.pageSize,this.endRow=this.startRow+c.pageSize}return a.prototype.setDirty=function(){this.version++,this.state=a.STATE_DIRTY},a.prototype.setDirtyAndPurge=function(){this.setDirty(),this.rowNodes.forEach(function(a){a.setData(null)})},a.prototype.getStartRow=function(){return this.startRow},a.prototype.getEndRow=function(){return this.endRow},a.prototype.getPageNumber=function(){return this.pageNumber},a.prototype.addEventListener=function(a,b){this.localEventService.addEventListener(a,b)},a.prototype.removeEventListener=function(a,b){this.localEventService.removeEventListener(a,b)},a.prototype.getLastAccessed=function(){return this.lastAccessed},a.prototype.getState=function(){return this.state},a.prototype.setRowNode=function(a,b){var c=a-this.startRow;this.rowNodes[c]=b,this.setTopOnRowNode(b,a)},a.prototype.setBlankRowNode=function(a){var b=a-this.startRow,c=this.createBlankRowNode(a);return this.rowNodes[b]=c,c},a.prototype.setNewData=function(a,b){var c=this.setBlankRowNode(a);return c.setDataAndId(b,a.toString()),c},a.prototype.init=function(){this.createRowNodes()},a.prototype.createRowNodes=function(){this.rowNodes=[];for(var a=0;a<this.cacheParams.pageSize;a++){var b=this.startRow+a,c=this.createBlankRowNode(b);this.rowNodes.push(c)}},a.prototype.setTopOnRowNode=function(a,b){a.rowTop=this.cacheParams.rowHeight*b},a.prototype.createBlankRowNode=function(a){var b=new h.RowNode;return this.context.wireBean(b),b.rowHeight=this.cacheParams.rowHeight,this.setTopOnRowNode(b,a),b},a.prototype.getRow=function(a){this.lastAccessed=this.cacheParams.lastAccessedSequence.next();var b=a-this.startRow;return this.rowNodes[b]},a.prototype.load=function(){var b=this;this.state=a.STATE_LOADING;var c={startRow:this.startRow,endRow:this.endRow,successCallback:this.pageLoaded.bind(this,this.version),failCallback:this.pageLoadFailed.bind(this),sortModel:this.cacheParams.sortModel,filterModel:this.cacheParams.filterModel,context:this.gridOptionsWrapper.getContext()};if(f.Utils.missing(this.cacheParams.datasource.getRows))return void console.warn("ag-Grid: datasource is missing getRows method");var d=f.Utils.getFunctionParameters(this.cacheParams.datasource.getRows);d.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.")),setTimeout(function(){b.cacheParams.datasource.getRows(c)},0)},a.prototype.pageLoadFailed=function(){this.state=a.STATE_FAILED;var b={success:!0,page:this};this.localEventService.dispatchEvent(a.EVENT_LOAD_COMPLETE,b)},a.prototype.populateWithRowData=function(a){var b=this;this.rowNodes.forEach(function(c,d){var e=a[d];if(f.Utils.exists(e)){var g=b.startRow+d;c.setDataAndId(e,g.toString())}else c.setDataAndId(void 0,void 0)})},a.prototype.pageLoaded=function(b,c,d){b===this.version&&(this.state=a.STATE_LOADED,this.populateWithRowData(c));var e={success:!0,page:this,lastRow:d};this.localEventService.dispatchEvent(a.EVENT_LOAD_COMPLETE,e)},a.EVENT_LOAD_COMPLETE="loadComplete",a.STATE_DIRTY="dirty",a.STATE_LOADING="loading",a.STATE_LOADED="loaded",a.STATE_FAILED="failed",d([i.Autowired("gridOptionsWrapper"),e("design:type",g.GridOptionsWrapper)],a.prototype,"gridOptionsWrapper",void 0),d([i.Autowired("context"),e("design:type",i.Context)],a.prototype,"context",void 0),d([i.PostConstruct,e("design:type",Function),e("design:paramtypes",[]),e("design:returntype",void 0)],a.prototype,"init",null),a}();b.VirtualPage=k},function(a,b,c){var q,d=this&&this.__decorate||function(a,b,c,d){var g,e=arguments.length,f=e<3?b:null===d?d=Object.getOwnPropertyDescriptor(b,c):d;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)f=Reflect.decorate(a,b,c,d);else for(var h=a.length-1;h>=0;h--)(g=a[h])&&(f=(e<3?g(f):e>3?g(b,c,f):g(b,c))||f);return e>3&&f&&Object.defineProperty(b,c,f),f},e=this&&this.__metadata||function(a,b){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(a,b)},f=c(9),g=c(10),h=c(5),i=c(15),j=c(45),k=c(29),l=c(6),m=c(12),n=c(8),o=c(30),p=c(92);!function(a){a[a.Normal=0]="Normal",a[a.AfterFilter=1]="AfterFilter",a[a.AfterFilterAndSort=2]="AfterFilterAndSort",a[a.PivotNodes=3]="PivotNodes"}(q||(q={}));var r=function(){function a(){}return a.prototype.init=function(){this.eventService.addModalPriorityEventListener(m.Events.EVENT_COLUMN_EVERYTHING_CHANGED,this.refreshModel.bind(this,g.Constants.STEP_EVERYTHING)),this.eventService.addModalPriorityEventListener(m.Events.EVENT_COLUMN_ROW_GROUP_CHANGED,this.refreshModel.bind(this,g.Constants.STEP_EVERYTHING)),this.eventService.addModalPriorityEventListener(m.Events.EVENT_COLUMN_VALUE_CHANGED,this.onValueChanged.bind(this)),this.eventService.addModalPriorityEventListener(m.Events.EVENT_COLUMN_PIVOT_CHANGED,this.refreshModel.bind(this,g.Constants.STEP_PIVOT)),this.eventService.addModalPriorityEventListener(m.Events.EVENT_FILTER_CHANGED,this.refreshModel.bind(this,g.Constants.STEP_FILTER)),this.eventService.addModalPriorityEventListener(m.Events.EVENT_SORT_CHANGED,this.refreshModel.bind(this,g.Constants.STEP_SORT)),this.eventService.addModalPriorityEventListener(m.Events.EVENT_COLUMN_PIVOT_MODE_CHANGED,this.refreshModel.bind(this,g.Constants.STEP_PIVOT)),this.rootNode=new k.RowNode,this.nodeManager=new p.InMemoryNodeManager(this.rootNode,this.gridOptionsWrapper,this.context,this.eventService),this.context.wireBean(this.rootNode),this.gridOptionsWrapper.isRowModelDefault()&&this.setRowData(this.gridOptionsWrapper.getRowData(),this.columnController.isReady())},a.prototype.getType=function(){return g.Constants.ROW_MODEL_TYPE_NORMAL},a.prototype.onValueChanged=function(){this.columnController.isPivotActive()?this.refreshModel(g.Constants.STEP_PIVOT):this.refreshModel(g.Constants.STEP_AGGREGATE)},a.prototype.refreshModel=function(a,b,c){var d=this;switch(a){case g.Constants.STEP_EVERYTHING:var e=performance.now();this.doRowGrouping(c);var f=performance.now();console.log("ag-grid 6.3.0, grouping took: "+(f-e)+" milliseconds.");case g.Constants.STEP_FILTER:var e=performance.now();this.doFilter();var f=performance.now();console.log("ag-grid 6.3.0, filtering took: "+(f-e)+" milliseconds.");case g.Constants.STEP_PIVOT:this.doPivot();case g.Constants.STEP_AGGREGATE:this.doAggregate();case g.Constants.STEP_SORT:var e=performance.now();this.doSort();var f=performance.now();console.log("ag-grid 6.3.0, sorting took: "+(f-e)+" milliseconds.");case g.Constants.STEP_MAP:this.doRowsToDisplay()}this.eventService.dispatchEvent(m.Events.EVENT_MODEL_UPDATED,{fromIndex:b}),this.$scope&&setTimeout(function(){d.$scope.$apply()},0)},a.prototype.isEmpty=function(){var a,b=f.Utils.exists(this.gridOptionsWrapper.getNodeChildDetailsFunc());a=b?f.Utils.missing(this.rootNode.childrenAfterGroup)||0===this.rootNode.childrenAfterGroup.length:f.Utils.missing(this.rootNode.allLeafChildren)||0===this.rootNode.allLeafChildren.length;var c=f.Utils.missing(this.rootNode)||a||!this.columnController.isReady();return c},a.prototype.isRowsToRender=function(){return f.Utils.exists(this.rowsToDisplay)&&this.rowsToDisplay.length>0},a.prototype.setDatasource=function(a){console.error("ag-Grid: should never call setDatasource on inMemoryRowController")},a.prototype.getTopLevelNodes=function(){return this.rootNode?this.rootNode.childrenAfterGroup:null},a.prototype.getRow=function(a){return this.rowsToDisplay[a]},a.prototype.getVirtualRowCount=function(){return console.warn("ag-Grid: rowModel.getVirtualRowCount() is not longer a function, use rowModel.getRowCount() instead"),this.getRowCount()},a.prototype.getRowCount=function(){return this.rowsToDisplay?this.rowsToDisplay.length:0},a.prototype.getRowIndexAtPixel=function(a){if(this.isEmpty())return-1;var b=0,c=this.rowsToDisplay.length-1;if(a<=0)return 0;var d=this.rowsToDisplay[this.rowsToDisplay.length-1];if(d.rowTop<=a)return this.rowsToDisplay.length-1;for(;;){var e=Math.floor((b+c)/2),f=this.rowsToDisplay[e];if(this.isRowInPixel(f,a))return e;f.rowTop<a?b=e+1:f.rowTop>a&&(c=e-1)}},a.prototype.isRowInPixel=function(a,b){var c=a.rowTop,d=a.rowTop+a.rowHeight,e=c<=b&&d>b;return e},a.prototype.getRowCombinedHeight=function(){if(this.rowsToDisplay&&this.rowsToDisplay.length>0){var a=this.rowsToDisplay[this.rowsToDisplay.length-1],b=a.rowTop+a.rowHeight;return b}return 0},a.prototype.forEachLeafNode=function(a){this.rootNode.allLeafChildren&&this.rootNode.allLeafChildren.forEach(function(b,c){return a(b,c)})},a.prototype.forEachNode=function(a){this.recursivelyWalkNodesAndCallback(this.rootNode.childrenAfterGroup,a,q.Normal,0)},a.prototype.forEachNodeAfterFilter=function(a){this.recursivelyWalkNodesAndCallback(this.rootNode.childrenAfterFilter,a,q.AfterFilter,0)},a.prototype.forEachNodeAfterFilterAndSort=function(a){this.recursivelyWalkNodesAndCallback(this.rootNode.childrenAfterSort,a,q.AfterFilterAndSort,0)},a.prototype.forEachPivotNode=function(a){this.recursivelyWalkNodesAndCallback([this.rootNode],a,q.PivotNodes,0)},a.prototype.recursivelyWalkNodesAndCallback=function(a,b,c,d){if(a)for(var e=0;e<a.length;e++){var f=a[e];if(b(f,d++),f.group){var g;switch(c){case q.Normal:g=f.childrenAfterGroup;break;case q.AfterFilter:g=f.childrenAfterFilter;break;case q.AfterFilterAndSort:g=f.childrenAfterSort;break;case q.PivotNodes:g=f.leafGroup?null:f.childrenAfterSort}g&&(d=this.recursivelyWalkNodesAndCallback(g,b,c,d))}}return d},a.prototype.doAggregate=function(){this.aggregationStage&&this.aggregationStage.execute(this.rootNode)},a.prototype.expandOrCollapseAll=function(a){function b(c){c&&c.forEach(function(c){c.group&&(c.expanded=a,b(c.childrenAfterGroup))})}this.rootNode&&b(this.rootNode.childrenAfterGroup),this.refreshModel(g.Constants.STEP_MAP)},a.prototype.doSort=function(){this.sortStage.execute(this.rootNode)},a.prototype.doRowGrouping=function(a){var b=f.Utils.exists(this.gridOptionsWrapper.getNodeChildDetailsFunc());b||(this.groupStage?(this.selectionController.removeGroupsFromSelection(),this.groupStage.execute(this.rootNode),this.restoreGroupState(a),this.gridOptionsWrapper.isGroupSelectsChildren()&&this.selectionController.updateGroupsFromChildrenSelections()):this.rootNode.childrenAfterGroup=this.rootNode.allLeafChildren)},a.prototype.restoreGroupState=function(a){a&&f.Utils.traverseNodesWithKey(this.rootNode.childrenAfterGroup,function(b,c){"boolean"==typeof a[c]&&(b.expanded=a[c])})},a.prototype.doFilter=function(){this.filterStage.execute(this.rootNode)},a.prototype.doPivot=function(){this.pivotStage&&this.pivotStage.execute(this.rootNode)},a.prototype.getGroupState=function(){if(!this.rootNode.childrenAfterGroup||!this.gridOptionsWrapper.isRememberGroupStateWhenNewData())return null;var a={};return f.Utils.traverseNodesWithKey(this.rootNode.childrenAfterGroup,function(b,c){return a[c]=b.expanded}),a},a.prototype.setRowData=function(a,b,c){var d=this.getGroupState();this.nodeManager.setRowData(a,c),this.eventService.dispatchEvent(m.Events.EVENT_ROW_DATA_CHANGED),b&&this.refreshModel(g.Constants.STEP_EVERYTHING,null,d)},a.prototype.doRowsToDisplay=function(){this.rowsToDisplay=this.flattenStage.execute(this.rootNode)},a.prototype.insertItemsAtIndex=function(a,b){var c=this.getGroupState(),d=this.nodeManager.insertItemsAtIndex(a,b);this.refreshAndFireEvent(m.Events.EVENT_ITEMS_ADDED,d,c)},a.prototype.removeItems=function(a){var b=this.getGroupState(),c=this.nodeManager.removeItems(a);this.refreshAndFireEvent(m.Events.EVENT_ITEMS_REMOVED,c,b)},a.prototype.addItems=function(a){var b=this.getGroupState(),c=this.nodeManager.addItems(a);this.refreshAndFireEvent(m.Events.EVENT_ITEMS_ADDED,c,b)},a.prototype.refreshAndFireEvent=function(a,b,c){b&&(this.refreshModel(g.Constants.STEP_EVERYTHING,null,c),this.eventService.dispatchEvent(a,{rowNodes:b}))},d([n.Autowired("gridOptionsWrapper"),e("design:type",h.GridOptionsWrapper)],a.prototype,"gridOptionsWrapper",void 0),d([n.Autowired("columnController"),e("design:type",i.ColumnController)],a.prototype,"columnController",void 0),d([n.Autowired("filterManager"),e("design:type",j.FilterManager)],a.prototype,"filterManager",void 0),d([n.Autowired("$scope"),e("design:type",Object)],a.prototype,"$scope",void 0),d([n.Autowired("selectionController"),e("design:type",o.SelectionController)],a.prototype,"selectionController",void 0),d([n.Autowired("eventService"),e("design:type",l.EventService)],a.prototype,"eventService",void 0),d([n.Autowired("context"),e("design:type",n.Context)],a.prototype,"context",void 0),d([n.Autowired("filterStage"),e("design:type",Object)],a.prototype,"filterStage",void 0),d([n.Autowired("sortStage"),e("design:type",Object)],a.prototype,"sortStage",void 0),d([n.Autowired("flattenStage"),e("design:type",Object)],a.prototype,"flattenStage",void 0),d([n.Optional("groupStage"),e("design:type",Object)],a.prototype,"groupStage",void 0),d([n.Optional("aggregationStage"),e("design:type",Object)],a.prototype,"aggregationStage",void 0),d([n.Optional("pivotStage"),e("design:type",Object)],a.prototype,"pivotStage",void 0),d([n.PostConstruct,e("design:type",Function),e("design:paramtypes",[]),e("design:returntype",void 0)],a.prototype,"init",null),a=d([n.Bean("rowModel"),e("design:paramtypes",[])],a)}();b.InMemoryRowModel=r},function(a,b,c){var d=c(29),e=c(9),f=function(){function a(a,b,c,d){this.nextId=0,this.rootNode=a,this.gridOptionsWrapper=b,this.context=c,this.eventService=d,this.rootNode.group=!0,this.rootNode.level=-1,this.rootNode.allLeafChildren=[],this.rootNode.childrenAfterGroup=[],this.rootNode.childrenAfterSort=[],this.rootNode.childrenAfterFilter=[]}return a.prototype.setRowData=function(b,c){if(this.rootNode.childrenAfterFilter=null,this.rootNode.childrenAfterGroup=null,this.rootNode.childrenAfterSort=null,this.rootNode.childrenMapped=null,this.nextId=e.Utils.exists(c)?c:0,!b)return this.rootNode.allLeafChildren=[],void(this.rootNode.childrenAfterGroup=[]);this.getNodeChildDetails=this.gridOptionsWrapper.getNodeChildDetailsFunc(),this.suppressParentsInRowNodes=this.gridOptionsWrapper.isSuppressParentsInRowNodes(),this.doesDataFlower=this.gridOptionsWrapper.getDoesDataFlowerFunc();var d=e.Utils.exists(this.getNodeChildDetails),f=this.recursiveFunction(b,null,a.TOP_LEVEL);d?(this.rootNode.childrenAfterGroup=f,this.setLeafChildren(this.rootNode)):this.rootNode.allLeafChildren=f},a.prototype.recursiveFunction=function(a,b,c){var d=this;if("string"==typeof a)return void 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");var e=[];return a.forEach(function(a){var f=d.createNode(a,b,c),g=d.getNodeChildDetails?d.getNodeChildDetails(a):null;g&&g.group&&(f.group=!0,f.childrenAfterGroup=d.recursiveFunction(g.children,f,c+1),f.expanded=g.expanded===!0,f.field=g.field,f.key=g.key,d.setLeafChildren(f)),e.push(f)}),e},a.prototype.createNode=function(a,b,c){var e=new d.RowNode;this.context.wireBean(e);var f=this.getNodeChildDetails?this.getNodeChildDetails(a):null;return f&&f.group?(e.group=!0,e.childrenAfterGroup=this.recursiveFunction(f.children,e,c+1),e.expanded=f.expanded===!0,e.field=f.field,e.key=f.key,e.canFlower=!1,this.setLeafChildren(e)):(e.group=!1,e.canFlower=!!this.doesDataFlower&&this.doesDataFlower(a),e.canFlower&&(e.expanded=!1)),b&&!this.suppressParentsInRowNodes&&(e.parent=b),e.level=c,e.setDataAndId(a,this.nextId.toString()),this.nextId++,e},a.prototype.setLeafChildren=function(a){a.allLeafChildren=[],a.childrenAfterGroup&&a.childrenAfterGroup.forEach(function(b){b.group?b.allLeafChildren&&b.allLeafChildren.forEach(function(b){return a.allLeafChildren.push(b)}):a.allLeafChildren.push(b)})},a.prototype.insertItemsAtIndex=function(b,c){var d=this;if(this.isRowsAlreadyGrouped())return null;var f=this.rootNode.allLeafChildren;if(b>f.length)return void console.warn("ag-Grid: invalid index "+b+", max index is "+f.length);var g=[];return c.forEach(function(c){var h=d.createNode(c,null,a.TOP_LEVEL);e.Utils.insertIntoArray(f,h,b),g.push(h)}),g.length>0?g:null},a.prototype.removeItems=function(a){if(!this.isRowsAlreadyGrouped()){var b=this.rootNode.allLeafChildren,c=[];return a.forEach(function(a){var d=b.indexOf(a);d>=0&&(a.setSelected(!1),b.splice(d,1)),c.push(a)}),c.length>0?c:null}},a.prototype.addItems=function(a){var b=this.rootNode.allLeafChildren;return this.insertItemsAtIndex(b.length,a)},a.prototype.isRowsAlreadyGrouped=function(){var a=e.Utils.exists(this.gridOptionsWrapper.getNodeChildDetailsFunc());return!!a&&(console.warn("ag-Grid: adding and removing rows is not supported when using nodeChildDetailsFunc, ie it is not supported if providing groups"),
!0)},a.TOP_LEVEL=0,a}();b.InMemoryNodeManager=f},function(a,b,c){var d=this&&this.__extends||function(a,b){function d(){this.constructor=a}for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c]);a.prototype=null===b?Object.create(b):(d.prototype=b.prototype,new d)},e=this&&this.__decorate||function(a,b,c,d){var g,e=arguments.length,f=e<3?b:null===d?d=Object.getOwnPropertyDescriptor(b,c):d;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)f=Reflect.decorate(a,b,c,d);else for(var h=a.length-1;h>=0;h--)(g=a[h])&&(f=(e<3?g(f):e>3?g(b,c,f):g(b,c))||f);return e>3&&f&&Object.defineProperty(b,c,f),f},f=this&&this.__metadata||function(a,b){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(a,b)},g=c(49),h=c(94),i=c(9),j=c(8),k=c(5),l=c(61),m=l.SvgFactory.getInstance(),n=function(a){function b(){a.call(this,b.TEMPLATE),this.selected=!1,this.readOnly=!1,this.passive=!1}return d(b,a),b.prototype.init=function(){this.loadIcons(),this.updateIcons();var a=this.getAttribute("label");a&&(this.eLabel.innerText=a)},b.prototype.loadIcons=function(){i.Utils.removeAllChildren(this.eChecked),i.Utils.removeAllChildren(this.eUnchecked),i.Utils.removeAllChildren(this.eIndeterminate),this.readOnly?(this.eChecked.appendChild(i.Utils.createIconNoSpan("checkboxCheckedReadOnly",this.gridOptionsWrapper,null,m.createCheckboxCheckedReadOnlyIcon)),this.eUnchecked.appendChild(i.Utils.createIconNoSpan("checkboxUncheckedReadOnly",this.gridOptionsWrapper,null,m.createCheckboxUncheckedReadOnlyIcon)),this.eIndeterminate.appendChild(i.Utils.createIconNoSpan("checkboxIndeterminateReadOnly",this.gridOptionsWrapper,null,m.createCheckboxIndeterminateReadOnlyIcon))):(this.eChecked.appendChild(i.Utils.createIconNoSpan("checkboxChecked",this.gridOptionsWrapper,null,m.createCheckboxCheckedIcon)),this.eUnchecked.appendChild(i.Utils.createIconNoSpan("checkboxUnchecked",this.gridOptionsWrapper,null,m.createCheckboxUncheckedIcon)),this.eIndeterminate.appendChild(i.Utils.createIconNoSpan("checkboxIndeterminate",this.gridOptionsWrapper,null,m.createCheckboxIndeterminateIcon)))},b.prototype.onClick=function(){this.readOnly||this.toggle()},b.prototype.getNextValue=function(){return void 0===this.selected||!this.selected},b.prototype.setPassive=function(a){this.passive=a},b.prototype.setReadOnly=function(a){this.readOnly=a,this.loadIcons()},b.prototype.isReadOnly=function(){return this.readOnly},b.prototype.isSelected=function(){return this.selected},b.prototype.toggle=function(){var a=this.getNextValue();this.passive?this.dispatchEvent(b.EVENT_CHANGED,{selected:a}):this.setSelected(a)},b.prototype.setSelected=function(a){this.selected!==a&&(a===!0?this.selected=!0:a===!1?this.selected=!1:this.selected=void 0,this.updateIcons(),this.dispatchEvent(b.EVENT_CHANGED,{selected:this.selected}))},b.prototype.updateIcons=function(){i.Utils.setVisible(this.eChecked,this.selected===!0),i.Utils.setVisible(this.eUnchecked,this.selected===!1),i.Utils.setVisible(this.eIndeterminate,void 0===this.selected)},b.EVENT_CHANGED="change",b.TEMPLATE='<span class="ag-checkbox"> <span class="ag-checkbox-checked"></span> <span class="ag-checkbox-unchecked"></span> <span class="ag-checkbox-indeterminate"></span> <span class="ag-checkbox-label"></span></span>',e([j.Autowired("gridOptionsWrapper"),f("design:type",k.GridOptionsWrapper)],b.prototype,"gridOptionsWrapper",void 0),e([h.QuerySelector(".ag-checkbox-checked"),f("design:type",HTMLElement)],b.prototype,"eChecked",void 0),e([h.QuerySelector(".ag-checkbox-unchecked"),f("design:type",HTMLElement)],b.prototype,"eUnchecked",void 0),e([h.QuerySelector(".ag-checkbox-indeterminate"),f("design:type",HTMLElement)],b.prototype,"eIndeterminate",void 0),e([h.QuerySelector(".ag-checkbox-label"),f("design:type",HTMLElement)],b.prototype,"eLabel",void 0),e([j.PostConstruct,f("design:type",Function),f("design:paramtypes",[]),f("design:returntype",void 0)],b.prototype,"init",null),e([h.Listener("click"),f("design:type",Function),f("design:paramtypes",[]),f("design:returntype",void 0)],b.prototype,"onClick",null),b}(g.Component);b.AgCheckbox=n},function(a,b){function c(a){return d.bind(this,a)}function d(a,b,c,d){if(null===a)return void console.error("ag-Grid: QuerySelector selector should not be null");if("number"==typeof d)return void console.error("ag-Grid: QuerySelector should be on an attribute");var e=g(b);e.querySelectors||(e.querySelectors=[]),e.querySelectors.push({attributeName:c,querySelector:a})}function e(a){return f.bind(this,a)}function f(a,b,c,d){if(null===a)return void console.error("ag-Grid: EventListener eventName should not be null");var e=g(b);e.listenerMethods||(e.listenerMethods=[]),e.listenerMethods.push({methodName:c,eventName:a})}function g(a){var b=a.__agComponentMetaData;return b||(b={},a.__agComponentMetaData=b),b}b.QuerySelector=c,b.Listener=e},function(a,b){var c=function(){function a(){}return a.prototype.colDefFloatingCellRenderer=function(a){return a.floatingCellRenderer},a.prototype.colDefCellRenderer=function(a){return a.cellRenderer},a.prototype.colDefCellEditor=function(a){return a.cellEditor},a.prototype.colDefFilter=function(a){return a.filter},a.prototype.gridOptionsFullWidthCellRenderer=function(a){return a.fullWidthCellRenderer},a.prototype.gridOptionsGroupRowRenderer=function(a){return a.groupRowRenderer},a.prototype.gridOptionsGroupRowInnerRenderer=function(a){return a.groupRowInnerRenderer},a}();b.BaseFrameworkFactory=c},function(a,b,c){function e(a){var b=a.module("agGrid",[]);b.directive("agGrid",function(){return{restrict:"A",controller:["$element","$scope","$compile","$attrs",f],scope:!0}})}function f(a,b,c,e){var f,g,h=e.agGrid;if(g=h+".quickFilterText",f=b.$eval(h),!f)return void console.warn("WARNING - grid options for ag-Grid not found. Please ensure the attribute ag-grid points to a valid object on the scope");var i=a[0],j={$scope:b,$compile:c,quickFilterOnScope:g},k=new d.Grid(i,f,j);b.$on("$destroy",function(){k.destroy()})}var d=c(4);b.initialiseAgGridWithAngular1=e},function(a,b,c){function g(){if(!f){f=!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 a=Object.create(HTMLElement.prototype);d.ComponentUtil.ALL_PROPERTIES.forEach(function(b){Object.defineProperty(a,b,{set:function(a){this.__agGridSetProperty(b,a)},get:function(){return this.__agGridGetProperty(b)}})}),a.__agGridSetProperty=function(a,b){this.__attributes||(this.__attributes={}),this.__attributes[a]=b;var c={};c[a]={currentValue:b},this.onChange(c)},a.onChange=function(a){this._initialised&&d.ComponentUtil.processOnChange(a,this._gridOptions,this.api,this.columnApi)},a.__agGridGetProperty=function(a){return this.__attributes||(this.__attributes={}),this.__attributes[a]},a.setGridOptions=function(a){var b=this.globalEventListener.bind(this);this._gridOptions=d.ComponentUtil.copyAttributesToGridOptions(a,this);var c={globalEventListener:b};this._agGrid=new e.Grid(this,this._gridOptions,c),this.api=a.api,this.columnApi=a.columnApi,this._initialised=!0},a.createdCallback=function(){for(var a=0;a<this.attributes.length;a++){var b=this.attributes[a];this.setPropertyFromAttribute(b)}},a.setPropertyFromAttribute=function(a){var b=h(a.nodeName),c=a.nodeValue;d.ComponentUtil.ALL_PROPERTIES.indexOf(b)>=0&&(this[b]=c)},a.attachedCallback=function(a){},a.detachedCallback=function(a){},a.attributeChangedCallback=function(a){var b=this.attributes[a];this.setPropertyFromAttribute(b)},a.globalEventListener=function(a,b){var c=a.toLowerCase(),d=new Event(c),e=d;e.agGridDetails=b,this.dispatchEvent(d);var f="on"+c;"function"==typeof this[f]&&this[f](d)},document.registerElement("ag-grid",{prototype:a})}}function h(a){if("string"==typeof a){var b=a.replace(/-([a-z])/g,function(a){return a[1].toUpperCase()});return b}return a}var d=c(11),e=c(4),f=!1;b.initialiseAgGridWithWebComponents=g},function(a,b,c){var d=c(9),e=function(){function a(b){var c=this;this.items=[],this.params=b,this.eGui=document.createElement("div"),this.eGui.innerHTML=a.TEMPLATE,this.eHeader=this.eGui.querySelector("#tabHeader"),this.eBody=this.eGui.querySelector("#tabBody"),d.Utils.addCssClass(this.eGui,b.cssClass),b.items&&b.items.forEach(function(a){return c.addItem(a)})}return a.prototype.setAfterAttachedParams=function(a){this.afterAttachedParams=a},a.prototype.getMinWidth=function(){var a=document.createElement("span");a.style.position="fixed",this.eGui.appendChild(a);var b=0;return this.items.forEach(function(c){d.Utils.removeAllChildren(a);var e=c.tabbedItem.body.cloneNode(!0);a.appendChild(e),b<a.offsetWidth&&(b=a.offsetWidth)}),this.eGui.removeChild(a),b},a.prototype.showFirstItem=function(){this.items.length>0&&this.showItemWrapper(this.items[0])},a.prototype.addItem=function(a){var b=document.createElement("span");b.appendChild(a.title),d.Utils.addCssClass(b,"ag-tab"),this.eHeader.appendChild(b);var c={tabbedItem:a,eHeaderButton:b};this.items.push(c),b.addEventListener("click",this.showItemWrapper.bind(this,c))},a.prototype.showItem=function(a){var b=d.Utils.find(this.items,function(b){return b.tabbedItem===a});b&&this.showItemWrapper(b)},a.prototype.showItemWrapper=function(a){return this.params.onItemClicked&&this.params.onItemClicked({item:a.tabbedItem}),this.activeItem===a?void d.Utils.callIfPresent(this.params.onActiveItemClicked):(d.Utils.removeAllChildren(this.eBody),this.eBody.appendChild(a.tabbedItem.body),this.activeItem&&d.Utils.removeCssClass(this.activeItem.eHeaderButton,"ag-tab-selected"),d.Utils.addCssClass(a.eHeaderButton,"ag-tab-selected"),this.activeItem=a,void(a.tabbedItem.afterAttachedCallback&&a.tabbedItem.afterAttachedCallback(this.afterAttachedParams)))},a.prototype.getGui=function(){return this.eGui},a.TEMPLATE='<div><div id="tabHeader" class="ag-tab-header"></div><div id="tabBody" class="ag-tab-body"></div></div>',a}();b.TabbedLayout=e},function(a,b){var c=function(){function a(){this.isLayoutPanel=!0,this.childPanels=[],this.eGui=document.createElement("div"),this.eGui.style.height="100%"}return a.prototype.addPanel=function(a,b){var c;a.isLayoutPanel?(this.childPanels.push(a),c=a.getGui()):c=a,b&&(c.style.height=b),this.eGui.appendChild(c)},a.prototype.getGui=function(){return this.eGui},a.prototype.doLayout=function(){for(var a=0;a<this.childPanels.length;a++)this.childPanels[a].doLayout()},a}();b.VerticalStack=c},function(a,b,c){var d=this&&this.__extends||function(a,b){function d(){this.constructor=a}for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c]);a.prototype=null===b?Object.create(b):(d.prototype=b.prototype,new d)},e=this&&this.__decorate||function(a,b,c,d){var g,e=arguments.length,f=e<3?b:null===d?d=Object.getOwnPropertyDescriptor(b,c):d;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)f=Reflect.decorate(a,b,c,d);else for(var h=a.length-1;h>=0;h--)(g=a[h])&&(f=(e<3?g(f):e>3?g(b,c,f):g(b,c))||f);return e>3&&f&&Object.defineProperty(b,c,f),f},f=this&&this.__metadata||function(a,b){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(a,b)},g=c(49),h=c(8),i=c(9),j=c(46),k=c(101),l=function(a){function b(){a.call(this,b.TEMPLATE),this.timerCount=0}return d(b,a),b.prototype.clearActiveItem=function(){this.removeActiveItem(),this.removeOldChildPopup()},b.prototype.addMenuItems=function(a,b){var c=this;i.Utils.missing(a)||a.forEach(function(a){if("separator"===a)c.addSeparator();else{var d;d="string"==typeof a?b[a]:a,c.addItem(d)}})},b.prototype.addItem=function(a){var b=this,c=new k.MenuItemComponent(a);this.context.wireBean(c),this.getGui().appendChild(c.getGui()),c.addEventListener(k.MenuItemComponent.EVENT_ITEM_SELECTED,function(d){a.childMenu?b.showChildMenu(a,c):b.dispatchEvent(k.MenuItemComponent.EVENT_ITEM_SELECTED,d)}),c.addGuiEventListener("mouseenter",this.mouseEnterItem.bind(this,a,c)),c.addGuiEventListener("mouseleave",function(){return b.timerCount++}),a.childMenu&&this.addDestroyFunc(function(){return a.childMenu.destroy()})},b.prototype.mouseEnterItem=function(a,b){a.disabled||(this.activeMenuItemParams!==a&&this.removeOldChildPopup(),this.removeActiveItem(),this.activeMenuItemParams=a,this.activeMenuItem=b,i.Utils.addCssClass(this.activeMenuItem.getGui(),"ag-menu-option-active"),a.childMenu&&this.addHoverForChildPopup(a,b))},b.prototype.removeActiveItem=function(){this.activeMenuItem&&(i.Utils.removeCssClass(this.activeMenuItem.getGui(),"ag-menu-option-active"),this.activeMenuItem=null,this.activeMenuItemParams=null)},b.prototype.addHoverForChildPopup=function(a,b){var c=this,d=this.timerCount;setTimeout(function(){var e=d===c.timerCount,f=c.showingChildMenu===a.childMenu;e&&!f&&c.showChildMenu(a,b)},500)},b.prototype.showChildMenu=function(a,b){this.removeOldChildPopup();var c=i.Utils.loadTemplate('<div class="ag-menu"></div>');c.appendChild(a.childMenu.getGui()),this.childPopupRemoveFunc=this.popupService.addAsModalPopup(c,!0),this.popupService.positionPopupForMenu({eventSource:b.getGui(),ePopup:c}),this.showingChildMenu=a.childMenu},b.prototype.addSeparator=function(){this.getGui().appendChild(i.Utils.loadTemplate(b.SEPARATOR_TEMPLATE))},b.prototype.removeOldChildPopup=function(){this.childPopupRemoveFunc&&(this.showingChildMenu.clearActiveItem(),this.childPopupRemoveFunc(),this.childPopupRemoveFunc=null,this.showingChildMenu=null)},b.prototype.destroy=function(){this.removeOldChildPopup(),a.prototype.destroy.call(this)},b.TEMPLATE='<div class="ag-menu-list"></div>',b.SEPARATOR_TEMPLATE='<div class="ag-menu-separator"> <span class="ag-menu-separator-cell"></span> <span class="ag-menu-separator-cell"></span> <span class="ag-menu-separator-cell"></span> <span class="ag-menu-separator-cell"></span></div>',e([h.Autowired("context"),f("design:type",h.Context)],b.prototype,"context",void 0),e([h.Autowired("popupService"),f("design:type",j.PopupService)],b.prototype,"popupService",void 0),b}(g.Component);b.MenuList=l},function(a,b,c){var d=this&&this.__extends||function(a,b){function d(){this.constructor=a}for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c]);a.prototype=null===b?Object.create(b):(d.prototype=b.prototype,new d)},e=this&&this.__decorate||function(a,b,c,d){var g,e=arguments.length,f=e<3?b:null===d?d=Object.getOwnPropertyDescriptor(b,c):d;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)f=Reflect.decorate(a,b,c,d);else for(var h=a.length-1;h>=0;h--)(g=a[h])&&(f=(e<3?g(f):e>3?g(b,c,f):g(b,c))||f);return e>3&&f&&Object.defineProperty(b,c,f),f},f=this&&this.__metadata||function(a,b){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(a,b)},g=c(49),h=c(8),i=c(46),j=c(9),k=c(61),l=k.SvgFactory.getInstance(),m=function(a){function b(c){a.call(this,b.TEMPLATE),this.params=c,c.checked?this.queryForHtmlElement("#eIcon").innerHTML="✔":c.icon?j.Utils.isNodeOrElement(c.icon)?this.queryForHtmlElement("#eIcon").appendChild(c.icon):"string"==typeof c.icon?this.queryForHtmlElement("#eIcon").innerHTML=c.icon:console.log("ag-Grid: menu item icon must be DOM node or string"):this.queryForHtmlElement("#eIcon").innerHTML=" ",c.shortcut&&(this.queryForHtmlElement("#eShortcut").innerHTML=c.shortcut),c.childMenu?this.queryForHtmlElement("#ePopupPointer").appendChild(l.createSmallArrowRightSvg()):this.queryForHtmlElement("#ePopupPointer").innerHTML=" ",this.queryForHtmlElement("#eName").innerHTML=c.name,c.disabled?j.Utils.addCssClass(this.getGui(),"ag-menu-option-disabled"):this.addGuiEventListener("click",this.onOptionSelected.bind(this))}return d(b,a),b.prototype.onOptionSelected=function(){this.dispatchEvent(b.EVENT_ITEM_SELECTED,this.params),this.params.action&&this.params.action()},b.TEMPLATE='<div class="ag-menu-option"> <span id="eIcon" class="ag-menu-option-icon"></span> <span id="eName" class="ag-menu-option-text"></span> <span id="eShortcut" class="ag-menu-option-shortcut"></span> <span id="ePopupPointer" class="ag-menu-option-popup-pointer"></span></div>',b.EVENT_ITEM_SELECTED="itemSelected",e([h.Autowired("popupService"),f("design:type",i.PopupService)],b.prototype,"popupService",void 0),b}(g.Component);b.MenuItemComponent=m},function(a,b,c){var d=this&&this.__decorate||function(a,b,c,d){var g,e=arguments.length,f=e<3?b:null===d?d=Object.getOwnPropertyDescriptor(b,c):d;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)f=Reflect.decorate(a,b,c,d);else for(var h=a.length-1;h>=0;h--)(g=a[h])&&(f=(e<3?g(f):e>3?g(b,c,f):g(b,c))||f);return e>3&&f&&Object.defineProperty(b,c,f),f},e=this&&this.__metadata||function(a,b){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(a,b)},f=c(2),g=c(103),h=c(106),i=f.SvgFactory.getInstance(),j=function(){function a(){}return a.prototype.showMenuAfterMouseEvent=function(a,b){var c=this;this.showMenu(a,function(a){c.popupService.positionPopupUnderMouseEvent({mouseEvent:b,ePopup:a.getGui()})})},a.prototype.showMenuAfterButtonClick=function(a,b){var c=this;this.showMenu(a,function(a){c.popupService.positionPopupUnderComponent({eventSource:b,ePopup:a.getGui(),nudgeX:-9,nudgeY:-26,minWidth:a.getMinWidth(),keepWithinBounds:!0})})},a.prototype.showMenu=function(a,b){var c=this,d=new k(a,this.lastSelectedTab);this.context.wireBean(d);var e=d.getGui(),f=this.popupService.addAsModalPopup(e,!0,function(){return d.destroy()});b(d),d.afterGuiAttached({hidePopup:f}),d.addEventListener(k.EVENT_TAB_SELECTED,function(a){c.lastSelectedTab=a.key})},a.prototype.isMenuEnabled=function(a){var b=!this.gridOptionsWrapper.isSuppressMenuColumnPanel(),c=!this.gridOptionsWrapper.isSuppressMenuMainPanel(),d=!this.gridOptionsWrapper.isSuppressMenuFilterPanel()&&a.isFilterAllowed();return b||c||d},d([f.Autowired("context"),e("design:type",f.Context)],a.prototype,"context",void 0),d([f.Autowired("popupService"),e("design:type",f.PopupService)],a.prototype,"popupService",void 0),d([f.Autowired("gridOptionsWrapper"),e("design:type",f.GridOptionsWrapper)],a.prototype,"gridOptionsWrapper",void 0),a=d([f.Bean("menuFactory"),e("design:paramtypes",[])],a)}();b.EnterpriseMenuFactory=j;var k=function(){function a(a,b){this.eventService=new f.EventService,this.column=a,this.initialSelection=b}return a.prototype.addEventListener=function(a,b){this.eventService.addEventListener(a,b)},a.prototype.getMinWidth=function(){return this.tabbedLayout.getMinWidth()},a.prototype.init=function(){var a=[];this.gridOptionsWrapper.isSuppressMenuMainPanel()||(this.createMainPanel(),a.push(this.tabItemGeneral)),!this.gridOptionsWrapper.isSuppressMenuFilterPanel()&&this.column.isFilterAllowed()&&(this.createFilterPanel(),a.push(this.tabItemFilter)),this.gridOptionsWrapper.isSuppressMenuColumnPanel()||(this.createColumnsPanel(),a.push(this.tabItemColumns)),this.tabbedLayout=new f.TabbedLayout({items:a,cssClass:"ag-menu",onActiveItemClicked:this.onHidePopup.bind(this),onItemClicked:this.onTabItemClicked.bind(this)})},a.prototype.showTabBasedOnPreviousSelection=function(){this.tabItemColumns&&this.initialSelection===a.TAB_COLUMNS?this.tabbedLayout.showItem(this.tabItemColumns):this.tabItemFilter&&this.initialSelection===a.TAB_FILTER?this.tabbedLayout.showItem(this.tabItemFilter):this.tabItemGeneral&&this.initialSelection===a.TAB_GENERAL?this.tabbedLayout.showItem(this.tabItemGeneral):this.tabbedLayout.showFirstItem()},a.prototype.onTabItemClicked=function(b){var c;switch(b.item){case this.tabItemColumns:c=a.TAB_COLUMNS;break;case this.tabItemFilter:c=a.TAB_FILTER;break;case this.tabItemGeneral:c=a.TAB_GENERAL}c&&this.eventService.dispatchEvent(a.EVENT_TAB_SELECTED,{key:c})},a.prototype.destroy=function(){this.columnSelectPanel&&this.columnSelectPanel.destroy(),this.mainMenuList&&this.mainMenuList.destroy()},a.prototype.createPinnedSubMenu=function(){var a=this,b=new f.MenuList;this.context.wireBean(b);var c=this.gridOptionsWrapper.getLocaleTextFunc();return b.addItem({name:c("pinLeft","Pin Left"),action:function(){return a.columnController.setColumnPinned(a.column,f.Column.PINNED_LEFT)},checked:this.column.isPinnedLeft()}),b.addItem({name:c("pinRight","Pin Right"),action:function(){return a.columnController.setColumnPinned(a.column,f.Column.PINNED_RIGHT)},checked:this.column.isPinnedRight()}),b.addItem({name:c("noPin","No Pin"),action:function(){return a.columnController.setColumnPinned(a.column,null)},checked:!this.column.isPinned()}),b},a.prototype.createAggregationSubMenu=function(){var a=this,b=new f.MenuList;this.context.wireBean(b);var g,c=this.gridOptionsWrapper.getLocaleTextFunc(),d=this.column.isValueActive(),e=this.aggFuncService.getFuncNames();return g=this.column.isPrimary()?this.column:this.column.getColDef().pivotValueColumn,e.forEach(function(e){b.addItem({name:c(e,e),action:function(){a.columnController.setColumnAggFunc(g,e),a.columnController.addValueColumn(g)},checked:d&&g.getAggFunc()===e})}),b},a.prototype.createBuiltInMenuOptions=function(){var a=this,b=this.gridOptionsWrapper.getLocaleTextFunc(),c={pinSubMenu:{name:b("pinColumn","Pin Column"),icon:f.Utils.createIconNoSpan("menuPin",this.gridOptionsWrapper,null,i.createPinIcon),childMenu:this.createPinnedSubMenu()},valueAggSubMenu:{name:b("valueAggregation","Value Aggregation"),icon:f.Utils.createIconNoSpan("menuValue",this.gridOptionsWrapper,null,i.createAggregationIcon),childMenu:this.createAggregationSubMenu()},autoSizeThis:{name:b("autosizeThiscolumn","Autosize This Column"),action:function(){return a.columnController.autoSizeColumn(a.column)}},autoSizeAll:{name:b("autosizeAllColumns","Autosize All Columns"),action:function(){return a.columnController.autoSizeAllColumns()}},rowGroup:{name:b("groupBy","Group by")+" "+this.column.getColDef().headerName,action:function(){return a.columnController.addRowGroupColumn(a.column)},icon:f.Utils.createIconNoSpan("menuAddRowGroup",this.gridOptionsWrapper,null,i.createGroupIcon12)},rowUnGroup:{name:b("ungroupBy","Un-Group by")+" "+this.column.getColDef().headerName,action:function(){return a.columnController.removeRowGroupColumn(a.column)},icon:f.Utils.createIconNoSpan("menuRemoveRowGroup",this.gridOptionsWrapper,null,i.createGroupIcon12)},resetColumns:{name:b("resetColumns","Reset Columns"),action:function(){return a.columnController.resetColumnState()}},expandAll:{name:b("expandAll","Expand All"),action:function(){return a.gridApi.expandAll()}},contractAll:{name:b("collapseAll","Collapse All"),action:function(){return a.gridApi.collapseAll()}},toolPanel:{name:b("toolPanel","Tool Panel"),checked:this.gridApi.isToolPanelShowing(),action:function(){return a.gridApi.showToolPanel(!a.gridApi.isToolPanelShowing())}}};return c},a.prototype.getMenuItems=function(){var c,b=this.getDefaultMenuOptions(),d=this.gridOptionsWrapper.getMainMenuItemsFunc();if(d){var e=d({column:this.column,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext(),defaultItems:b});c=e}else c=b;return f.Utils.removeRepeatsFromArray(c,a.MENU_ITEM_SEPARATOR),c},a.prototype.getDefaultMenuOptions=function(){var b=[],c=this.columnController.getRowGroupColumns().length,d=c>0,e=this.columnController.getRowGroupColumns().indexOf(this.column)>=0,f=this.column.isAllowValue(),g=this.column.isAllowRowGroup(),h=this.column.isPrimary(),i=this.columnController.isPivotMode();b.push("pinSubMenu");var j=h&&d&&f||!h;j&&b.push("valueAggSubMenu"),b.push(a.MENU_ITEM_SEPARATOR),b.push("autoSizeThis"),b.push("autoSizeAll"),b.push(a.MENU_ITEM_SEPARATOR),g&&this.column.isPrimary()&&(e?b.push("rowUnGroup"):b.push("rowGroup")),b.push(a.MENU_ITEM_SEPARATOR),b.push("resetColumns"),b.push("toolPanel");var k=i?c>1:c>0;return k&&(b.push("expandAll"),b.push("contractAll")),b},a.prototype.createMainPanel=function(){this.mainMenuList=new f.MenuList,this.context.wireBean(this.mainMenuList);var a=this.getMenuItems(),b=this.createBuiltInMenuOptions();this.mainMenuList.addMenuItems(a,b),this.mainMenuList.addEventListener(f.MenuItemComponent.EVENT_ITEM_SELECTED,this.onHidePopup.bind(this)),this.tabItemGeneral={title:i.createMenuSvg(),body:this.mainMenuList.getGui()}},a.prototype.onHidePopup=function(){this.hidePopupFunc()},a.prototype.createFilterPanel=function(){var b,a=this.filterManager.getOrCreateFilterWrapper(this.column);a.filter.afterGuiAttached&&(b=a.filter.afterGuiAttached.bind(a.filter)),this.tabItemFilter={title:i.createFilterSvg12(),body:a.gui,afterAttachedCallback:b}},a.prototype.createColumnsPanel=function(){var a=document.createElement("div");f.Utils.addCssClass(a,"ag-menu-column-select-wrapper"),this.columnSelectPanel=new g.ColumnSelectPanel(!1),this.context.wireBean(this.columnSelectPanel),a.appendChild(this.columnSelectPanel.getGui()),this.tabItemColumns={title:i.createColumnsSvg12(),body:a}},a.prototype.afterGuiAttached=function(a){this.tabbedLayout.setAfterAttachedParams({hidePopup:a.hidePopup}),this.showTabBasedOnPreviousSelection(),this.hidePopupFunc=a.hidePopup},a.prototype.getGui=function(){return this.tabbedLayout.getGui()},a.EVENT_TAB_SELECTED="tabSelected",a.TAB_FILTER="filter",a.TAB_GENERAL="general",a.TAB_COLUMNS="columns",a.MENU_ITEM_SEPARATOR="separator",d([f.Autowired("columnController"),e("design:type",f.ColumnController)],a.prototype,"columnController",void 0),d([f.Autowired("filterManager"),e("design:type",f.FilterManager)],a.prototype,"filterManager",void 0),d([f.Autowired("context"),e("design:type",f.Context)],a.prototype,"context",void 0),d([f.Autowired("gridApi"),e("design:type",f.GridApi)],a.prototype,"gridApi",void 0),d([f.Autowired("gridOptionsWrapper"),e("design:type",f.GridOptionsWrapper)],a.prototype,"gridOptionsWrapper",void 0),d([f.Autowired("aggFuncService"),e("design:type",h.AggFuncService)],a.prototype,"aggFuncService",void 0),d([f.PostConstruct,e("design:type",Function),e("design:paramtypes",[]),e("design:returntype",void 0)],a.prototype,"init",null),a}();b.EnterpriseMenu=k},function(a,b,c){var d=this&&this.__extends||function(a,b){function d(){this.constructor=a}for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c]);a.prototype=null===b?Object.create(b):(d.prototype=b.prototype,new d)},e=this&&this.__decorate||function(a,b,c,d){var g,e=arguments.length,f=e<3?b:null===d?d=Object.getOwnPropertyDescriptor(b,c):d;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)f=Reflect.decorate(a,b,c,d);else for(var h=a.length-1;h>=0;h--)(g=a[h])&&(f=(e<3?g(f):e>3?g(b,c,f):g(b,c))||f);return e>3&&f&&Object.defineProperty(b,c,f),f},f=this&&this.__metadata||function(a,b){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(a,b)},g=c(2),h=c(104),i=c(105),j=function(a){function b(c){a.call(this,b.TEMPLATE),this.allowDragging=c}return d(b,a),b.prototype.init=function(){this.addDestroyableEventListener(this.globalEventService,g.Events.EVENT_COLUMN_EVERYTHING_CHANGED,this.onColumnsChanged.bind(this)),this.columnController.isReady()&&this.onColumnsChanged()},b.prototype.onColumnsChanged=function(){this.destroyAllRenderedElements(),this.columnTree=this.columnController.getPrimaryColumnTree(),this.recursivelyRenderComponents(this.columnTree,0)},b.prototype.destroy=function(){a.prototype.destroy.call(this),this.destroyAllRenderedElements()},b.prototype.destroyAllRenderedElements=function(){g.Utils.removeAllChildren(this.getGui()),this.renderedItems&&g.Utils.iterateObject(this.renderedItems,function(a,b){return b.destroy()}),this.renderedItems={}},b.prototype.recursivelyRenderGroupComponent=function(a,b){var c;if(!a.getColGroupDef()||!a.getColGroupDef().suppressToolPanel){if(a.isPadding())c=b;else{var d=new h.RenderedGroup(a,b,this.onGroupExpanded.bind(this),this.allowDragging);this.context.wireBean(d),this.appendChild(d.getGui()),c=b+1,this.renderedItems[a.getId()]=d}this.recursivelyRenderComponents(a.getChildren(),c)}},b.prototype.recursivelyRenderColumnComponent=function(a,b){if(!a.getColDef()||!a.getColDef().suppressToolPanel){var c=new i.RenderedColumn(a,b,this.allowDragging);this.context.wireBean(c),this.appendChild(c.getGui()),this.renderedItems[a.getId()]=c}},b.prototype.recursivelyRenderComponents=function(a,b){var c=this;a.forEach(function(a){a instanceof g.OriginalColumnGroup?c.recursivelyRenderGroupComponent(a,b):c.recursivelyRenderColumnComponent(a,b)})},b.prototype.recursivelySetVisibility=function(a,b){var c=this;a.forEach(function(a){var d=c.renderedItems[a.getId()];if(d&&d.setVisible(b),a instanceof g.OriginalColumnGroup){var f,e=a;if(d){var h=d.isExpanded();f=!!b&&h}else f=b;var i=e.getChildren();c.recursivelySetVisibility(i,f)}})},b.prototype.onGroupExpanded=function(){this.recursivelySetVisibility(this.columnTree,!0)},b.TEMPLATE='<div class="ag-column-select-panel"></div>',e([g.Autowired("columnController"),f("design:type",g.ColumnController)],b.prototype,"columnController",void 0),e([g.Autowired("eventService"),f("design:type",g.EventService)],b.prototype,"globalEventService",void 0),e([g.Autowired("context"),f("design:type",g.Context)],b.prototype,"context",void 0),e([g.PostConstruct,f("design:type",Function),f("design:paramtypes",[]),f("design:returntype",void 0)],b.prototype,"init",null),b}(g.Component);b.ColumnSelectPanel=j},function(a,b,c){var d=this&&this.__extends||function(a,b){function d(){this.constructor=a}for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c]);a.prototype=null===b?Object.create(b):(d.prototype=b.prototype,new d)},e=this&&this.__decorate||function(a,b,c,d){var g,e=arguments.length,f=e<3?b:null===d?d=Object.getOwnPropertyDescriptor(b,c):d;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)f=Reflect.decorate(a,b,c,d);else for(var h=a.length-1;h>=0;h--)(g=a[h])&&(f=(e<3?g(f):e>3?g(b,c,f):g(b,c))||f);return e>3&&f&&Object.defineProperty(b,c,f),f},f=this&&this.__metadata||function(a,b){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(a,b)},g=c(2),h=g.SvgFactory.getInstance(),i=function(a){function b(c,d,e,f){a.call(this,b.TEMPLATE),this.expanded=!0,this.processingColumnStateChange=!1,this.columnGroup=c,this.columnDept=d,this.expandedCallback=e,this.allowDragging=f}return d(b,a),b.prototype.init=function(){this.instantiate(this.context);var a=this.queryForHtmlElement("#eText");this.displayName=this.columnGroup.getColGroupDef()?this.columnGroup.getColGroupDef().headerName:null,g.Utils.missing(this.displayName)&&(this.displayName=">>"),a.innerHTML=this.displayName,this.setupExpandContract();var b=this.queryForHtmlElement("#eIndent");b.style.width=10*this.columnDept+"px",this.addDestroyableEventListener(a,"click",this.onClick.bind(this)),this.addDestroyableEventListener(this.eventService,g.Events.EVENT_COLUMN_PIVOT_MODE_CHANGED,this.onColumnStateChanged.bind(this)),this.addDestroyableEventListener(this.cbSelect,g.AgCheckbox.EVENT_CHANGED,this.onCheckboxChanged.bind(this));var c=this.queryForHtmlElement("#eCheckboxAndText"),d=new g.TouchListener(c);this.addDestroyableEventListener(d,g.TouchListener.EVENT_TAP,this.onClick.bind(this)),this.addDestroyFunc(d.destroy.bind(d)),this.setOpenClosedIcons(),this.allowDragging&&this.addDragSource(),this.onColumnStateChanged(),this.addVisibilityListenersToAllChildren()},b.prototype.addVisibilityListenersToAllChildren=function(){var a=this;this.columnGroup.getLeafColumns().forEach(function(b){a.addDestroyableEventListener(b,g.Column.EVENT_VISIBLE_CHANGED,a.onColumnStateChanged.bind(a)),a.addDestroyableEventListener(b,g.Column.EVENT_VALUE_CHANGED,a.onColumnStateChanged.bind(a)),a.addDestroyableEventListener(b,g.Column.EVENT_PIVOT_CHANGED,a.onColumnStateChanged.bind(a)),a.addDestroyableEventListener(b,g.Column.EVENT_ROW_GROUP_CHANGED,a.onColumnStateChanged.bind(a))})},b.prototype.addDragSource=function(){var a=this,b={type:g.DragSourceType.ToolPanel,eElement:this.getGui(),dragItemName:this.displayName,dragItem:this.columnGroup.getLeafColumns()};this.dragAndDropService.addDragSource(b,!0),this.addDestroyFunc(function(){return a.dragAndDropService.removeDragSource(b)})},b.prototype.setupExpandContract=function(){
this.eGroupClosedIcon=this.queryForHtmlElement("#eGroupClosedIcon"),this.eGroupOpenedIcon=this.queryForHtmlElement("#eGroupOpenedIcon"),this.eGroupClosedIcon.appendChild(g.Utils.createIcon("columnSelectClosed",this.gridOptionsWrapper,null,h.createFolderClosed)),this.eGroupOpenedIcon.appendChild(g.Utils.createIcon("columnSelectOpen",this.gridOptionsWrapper,null,h.createFolderOpen)),this.addDestroyableEventListener(this.eGroupClosedIcon,"click",this.onExpandOrContractClicked.bind(this)),this.addDestroyableEventListener(this.eGroupOpenedIcon,"click",this.onExpandOrContractClicked.bind(this));var a=this.queryForHtmlElement("#eColumnGroupIcons"),b=new g.TouchListener(a);this.addDestroyableEventListener(b,g.TouchListener.EVENT_TAP,this.onExpandOrContractClicked.bind(this)),this.addDestroyFunc(b.destroy.bind(b))},b.prototype.onClick=function(){this.cbSelect.setSelected(!this.cbSelect.isSelected())},b.prototype.onCheckboxChanged=function(){if(!this.processingColumnStateChange){var a=this.columnGroup.getLeafColumns(),b=this.cbSelect.isSelected();this.columnController.isPivotMode()?b?this.actionCheckedReduce(a):this.actionUnCheckedReduce(a):this.columnController.setColumnsVisible(a,b)}},b.prototype.actionUnCheckedReduce=function(a){var b=[],c=[],d=[];a.forEach(function(a){a.isPivotActive()&&b.push(a),a.isRowGroupActive()&&d.push(a),a.isValueActive()&&c.push(a)}),b.length>0&&this.columnController.removePivotColumns(b),d.length>0&&this.columnController.removeRowGroupColumns(d),c.length>0&&this.columnController.removeValueColumns(c)},b.prototype.actionCheckedReduce=function(a){var b=[],c=[],d=[];a.forEach(function(a){a.isAnyFunctionActive()||(a.isAllowValue()?b.push(a):a.isAllowRowGroup()?c.push(a):a.isAllowRowGroup()&&d.push(a))}),b.length>0&&this.columnController.addValueColumns(b),c.length>0&&this.columnController.addRowGroupColumns(c),d.length>0&&this.columnController.addPivotColumns(d)},b.prototype.onColumnStateChanged=function(){var a=this,b=this.columnController.isPivotMode(),c=0,d=0;this.columnGroup.getLeafColumns().forEach(function(e){a.isColumnVisible(e,b)?c++:d++});var e;e=c>0&&d>0?null:c>0,this.processingColumnStateChange=!0,this.cbSelect.setSelected(e),this.processingColumnStateChange=!1},b.prototype.isColumnVisible=function(a,b){if(b){var c=a.isPivotActive(),d=a.isRowGroupActive(),e=a.isValueActive();return c||d||e}return a.isVisible()},b.prototype.onExpandOrContractClicked=function(){this.expanded=!this.expanded,this.setOpenClosedIcons(),this.expandedCallback()},b.prototype.setOpenClosedIcons=function(){var a=this.expanded;g.Utils.setVisible(this.eGroupClosedIcon,!a),g.Utils.setVisible(this.eGroupOpenedIcon,a)},b.prototype.isExpanded=function(){return this.expanded},b.TEMPLATE='<div class="ag-column-select-column-group"> <span id="eIndent" class="ag-column-select-indent"></span> <span id="eColumnGroupIcons" class="ag-column-group-icons"> <span id="eGroupOpenedIcon" class="ag-column-group-closed-icon"></span> <span id="eGroupClosedIcon" class="ag-column-group-opened-icon"></span> </span> <span id="eCheckboxAndText"> <ag-checkbox class="ag-column-select-checkbox"></ag-checkbox> <span id="eText" class="ag-column-select-column-group-label"></span> </span></div>',e([g.Autowired("gridOptionsWrapper"),f("design:type",g.GridOptionsWrapper)],b.prototype,"gridOptionsWrapper",void 0),e([g.Autowired("columnController"),f("design:type",g.ColumnController)],b.prototype,"columnController",void 0),e([g.Autowired("gridPanel"),f("design:type",g.GridPanel)],b.prototype,"gridPanel",void 0),e([g.Autowired("context"),f("design:type",g.Context)],b.prototype,"context",void 0),e([g.Autowired("dragAndDropService"),f("design:type",g.DragAndDropService)],b.prototype,"dragAndDropService",void 0),e([g.Autowired("eventService"),f("design:type",g.EventService)],b.prototype,"eventService",void 0),e([g.QuerySelector(".ag-column-select-checkbox"),f("design:type",g.AgCheckbox)],b.prototype,"cbSelect",void 0),e([g.PostConstruct,f("design:type",Function),f("design:paramtypes",[]),f("design:returntype",void 0)],b.prototype,"init",null),b}(g.Component);b.RenderedGroup=i},function(a,b,c){var d=this&&this.__extends||function(a,b){function d(){this.constructor=a}for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c]);a.prototype=null===b?Object.create(b):(d.prototype=b.prototype,new d)},e=this&&this.__decorate||function(a,b,c,d){var g,e=arguments.length,f=e<3?b:null===d?d=Object.getOwnPropertyDescriptor(b,c):d;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)f=Reflect.decorate(a,b,c,d);else for(var h=a.length-1;h>=0;h--)(g=a[h])&&(f=(e<3?g(f):e>3?g(b,c,f):g(b,c))||f);return e>3&&f&&Object.defineProperty(b,c,f),f},f=this&&this.__metadata||function(a,b){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(a,b)},g=c(2),i=(g.SvgFactory.getInstance(),function(a){function b(c,d,e){a.call(this,b.TEMPLATE),this.processingColumnStateChange=!1,this.column=c,this.columnDept=d,this.allowDragging=e}return d(b,a),b.prototype.init=function(){this.displayName=this.columnController.getDisplayNameForColumn(this.column),this.eText.innerHTML=this.displayName,this.eIndent.style.width=10*this.columnDept+"px",this.allowDragging&&this.addDragSource(),this.addDestroyableEventListener(this.eventService,g.Events.EVENT_COLUMN_PIVOT_MODE_CHANGED,this.onColumnStateChanged.bind(this)),this.addDestroyableEventListener(this.column,g.Column.EVENT_VALUE_CHANGED,this.onColumnStateChanged.bind(this)),this.addDestroyableEventListener(this.column,g.Column.EVENT_PIVOT_CHANGED,this.onColumnStateChanged.bind(this)),this.addDestroyableEventListener(this.column,g.Column.EVENT_ROW_GROUP_CHANGED,this.onColumnStateChanged.bind(this)),this.addDestroyableEventListener(this.column,g.Column.EVENT_VISIBLE_CHANGED,this.onColumnStateChanged.bind(this)),this.addDestroyableEventListener(this.gridOptionsWrapper,"functionsReadOnly",this.onColumnStateChanged.bind(this)),this.instantiate(this.context),this.onColumnStateChanged(),this.addDestroyableEventListener(this.cbSelect,g.AgCheckbox.EVENT_CHANGED,this.onChange.bind(this)),this.addDestroyableEventListener(this.eText,"click",this.onClick.bind(this)),this.addTap()},b.prototype.addTap=function(){var a=new g.TouchListener(this.getGui());this.addDestroyableEventListener(a,g.TouchListener.EVENT_TAP,this.onClick.bind(this)),this.addDestroyFunc(a.destroy.bind(a))},b.prototype.onClick=function(){this.cbSelect.isReadOnly()||this.cbSelect.toggle()},b.prototype.onChange=function(a){this.processingColumnStateChange||(this.columnController.isPivotMode()?a.selected?this.actionCheckedPivotMode():this.actionUnCheckedPivotMode():this.columnController.setColumnVisible(this.column,a.selected))},b.prototype.actionUnCheckedPivotMode=function(){var a=this.gridOptionsWrapper.isFunctionsPassive(),b=this.column,c=this.columnController;b.isPivotActive()&&(a?this.eventService.dispatchEvent(g.Events.EVENT_COLUMN_PIVOT_REMOVE_REQUEST,{columns:[b]}):c.removePivotColumn(b)),b.isValueActive()&&(a?this.eventService.dispatchEvent(g.Events.EVENT_COLUMN_VALUE_REMOVE_REQUEST,{columns:[b]}):c.removeValueColumn(b)),b.isRowGroupActive()&&(a?this.eventService.dispatchEvent(g.Events.EVENT_COLUMN_ROW_GROUP_REMOVE_REQUEST,{columns:[b]}):c.removeRowGroupColumn(b))},b.prototype.actionCheckedPivotMode=function(){var a=this.column,b=this.columnController;if(!(a.isValueActive()||a.isPivotActive()||a.isRowGroupActive())){var c=this.gridOptionsWrapper.isFunctionsPassive();a.isAllowValue()?c?this.eventService.dispatchEvent(g.Events.EVENT_COLUMN_VALUE_ADD_REQUEST,{columns:[a]}):b.addValueColumn(a):a.isAllowRowGroup()?c?this.eventService.dispatchEvent(g.Events.EVENT_COLUMN_ROW_GROUP_ADD_REQUEST,{columns:[a]}):b.addRowGroupColumn(a):a.isAllowPivot()&&(c?this.eventService.dispatchEvent(g.Events.EVENT_COLUMN_PIVOT_ADD_REQUEST,{columns:[a]}):b.addPivotColumn(a))}},b.prototype.addDragSource=function(){var a=this,b={type:g.DragSourceType.ToolPanel,eElement:this.getGui(),dragItemName:this.displayName,dragItem:[this.column]};this.dragAndDropService.addDragSource(b,!0),this.addDestroyFunc(function(){return a.dragAndDropService.removeDragSource(b)})},b.prototype.onColumnStateChanged=function(){this.processingColumnStateChange=!0;var a=this.columnController.isPivotMode();if(a){var b=this.column.isAnyFunctionActive();this.cbSelect.setSelected(b)}else this.cbSelect.setSelected(this.column.isVisible());var c=a&&(this.gridOptionsWrapper.isFunctionsReadOnly()||!this.column.isAnyFunctionAllowed());this.cbSelect.setReadOnly(c);var d=a&&this.gridOptionsWrapper.isFunctionsPassive();this.cbSelect.setPassive(d),this.processingColumnStateChange=!1},b.TEMPLATE='<div class="ag-column-select-column"> <span class="ag-column-select-indent"></span> <ag-checkbox class="ag-column-select-checkbox"></ag-checkbox> <span class="ag-column-select-label"></span></div>',e([g.Autowired("gridOptionsWrapper"),f("design:type",g.GridOptionsWrapper)],b.prototype,"gridOptionsWrapper",void 0),e([g.Autowired("columnController"),f("design:type",g.ColumnController)],b.prototype,"columnController",void 0),e([g.Autowired("eventService"),f("design:type",g.EventService)],b.prototype,"eventService",void 0),e([g.Autowired("dragAndDropService"),f("design:type",g.DragAndDropService)],b.prototype,"dragAndDropService",void 0),e([g.Autowired("gridPanel"),f("design:type",g.GridPanel)],b.prototype,"gridPanel",void 0),e([g.Autowired("context"),f("design:type",g.Context)],b.prototype,"context",void 0),e([g.QuerySelector(".ag-column-select-label"),f("design:type",HTMLElement)],b.prototype,"eText",void 0),e([g.QuerySelector(".ag-column-select-indent"),f("design:type",HTMLElement)],b.prototype,"eIndent",void 0),e([g.QuerySelector(".ag-column-select-checkbox"),f("design:type",g.AgCheckbox)],b.prototype,"cbSelect",void 0),e([g.PostConstruct,f("design:type",Function),f("design:paramtypes",[]),f("design:returntype",void 0)],b.prototype,"init",null),b}(g.Component));b.RenderedColumn=i},function(a,b,c){function h(a){for(var b=null,c=a.length,d=0;d<c;d++)"number"==typeof a[d]&&(null===b?b=a[d]:b+=a[d]);return b}function i(a){return a.length>=0?a[0]:null}function j(a){return a.length>=0?a[a.length-1]:null}function k(a){for(var b=null,c=a.length,d=0;d<c;d++)"number"==typeof a[d]&&(null===b?b=a[d]:b>a[d]&&(b=a[d]));return b}function l(a){for(var b=null,c=a.length,d=0;d<c;d++)"number"==typeof a[d]&&(null===b?b=a[d]:b<a[d]&&(b=a[d]));return b}function m(a){for(var b={value:0,toString:function(){return this.value.toString()}},c=a.length,d=0;d<c;d++){var e=f.Utils.exists(a[d])&&"number"==typeof a[d].value;e?b+=a[d].value:b.value++}return b}function n(a){for(var b=0,c=0,d=a.length,e=0;e<d;e++){var g=a[e],h=f.Utils.exists(g)&&"number"==typeof g.value&&"number"==typeof g.count;"number"==typeof g?(b+=g,c++):h&&(b+=g.value*g.count,c+=g.count)}var i=null;0!==c&&(i=b/c);var j={count:c,value:i,toString:function(){return"number"==typeof this.value?this.value.toString():""}};return j}var d=this&&this.__decorate||function(a,b,c,d){var g,e=arguments.length,f=e<3?b:null===d?d=Object.getOwnPropertyDescriptor(b,c):d;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)f=Reflect.decorate(a,b,c,d);else for(var h=a.length-1;h>=0;h--)(g=a[h])&&(f=(e<3?g(f):e>3?g(b,c,f):g(b,c))||f);return e>3&&f&&Object.defineProperty(b,c,f),f},e=this&&this.__metadata||function(a,b){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(a,b)},f=c(2),g=function(){function a(){this.aggFuncsMap={},this.initialised=!1}return a.prototype.init=function(){this.initialised||(this.initialised=!0,this.initialiseWithDefaultAggregations(),this.addAggFuncs(this.gridOptionsWrapper.getAggFuncs()))},a.prototype.initialiseWithDefaultAggregations=function(){this.aggFuncsMap[a.AGG_SUM]=h,this.aggFuncsMap[a.AGG_FIRST]=i,this.aggFuncsMap[a.AGG_LAST]=j,this.aggFuncsMap[a.AGG_MIN]=k,this.aggFuncsMap[a.AGG_MAX]=l,this.aggFuncsMap[a.AGG_COUNT]=m,this.aggFuncsMap[a.AGG_AVG]=n},a.prototype.getDefaultAggFunc=function(){if(this.aggFuncsMap[a.AGG_SUM])return a.AGG_SUM;var b=this.getFuncNames();return f.Utils.existsAndNotEmpty(b)?b[0]:null},a.prototype.addAggFuncs=function(a){f.Utils.iterateObject(a,this.addAggFunc.bind(this))},a.prototype.addAggFunc=function(a,b){this.init(),this.aggFuncsMap[a]=b},a.prototype.getAggFunc=function(a){return this.init(),this.aggFuncsMap[a]},a.prototype.getFuncNames=function(){return Object.keys(this.aggFuncsMap).sort()},a.prototype.clear=function(){this.aggFuncsMap={}},a.AGG_SUM="sum",a.AGG_FIRST="first",a.AGG_LAST="last",a.AGG_MIN="min",a.AGG_MAX="max",a.AGG_COUNT="count",a.AGG_AVG="avg",d([f.Autowired("gridOptionsWrapper"),e("design:type",f.GridOptionsWrapper)],a.prototype,"gridOptionsWrapper",void 0),d([f.PostConstruct,e("design:type",Function),e("design:paramtypes",[]),e("design:returntype",void 0)],a.prototype,"init",null),a=d([f.Bean("aggFuncService"),e("design:paramtypes",[])],a)}();b.AggFuncService=g},function(a,b,c){var d=this&&this.__decorate||function(a,b,c,d){var g,e=arguments.length,f=e<3?b:null===d?d=Object.getOwnPropertyDescriptor(b,c):d;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)f=Reflect.decorate(a,b,c,d);else for(var h=a.length-1;h>=0;h--)(g=a[h])&&(f=(e<3?g(f):e>3?g(b,c,f):g(b,c))||f);return e>3&&f&&Object.defineProperty(b,c,f),f},e=this&&this.__metadata||function(a,b){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(a,b)},f=c(2),g=function(){function a(){this.bodyScrollListener=this.onBodyScroll.bind(this),this.dragging=!1}return a.prototype.init=function(){this.logger=this.loggerFactory.create("RangeController"),this.eventService.addEventListener(f.Events.EVENT_COLUMN_EVERYTHING_CHANGED,this.clearSelection.bind(this)),this.eventService.addEventListener(f.Events.EVENT_COLUMN_GROUP_OPENED,this.clearSelection.bind(this)),this.eventService.addEventListener(f.Events.EVENT_COLUMN_MOVED,this.clearSelection.bind(this)),this.eventService.addEventListener(f.Events.EVENT_COLUMN_PINNED,this.clearSelection.bind(this)),this.eventService.addEventListener(f.Events.EVENT_COLUMN_ROW_GROUP_CHANGED,this.clearSelection.bind(this)),this.eventService.addEventListener(f.Events.EVENT_COLUMN_VISIBLE,this.clearSelection.bind(this)),this.eventService.addEventListener(f.Events.EVENT_SORT_CHANGED,this.clearSelection.bind(this))},a.prototype.setRangeToCell=function(a){if(this.gridOptionsWrapper.isEnableRangeSelection()){var b=this.updateSelectedColumns(a.column,a.column);if(b){var c={start:new f.GridCell(a.rowIndex,a.floating,a.column),end:new f.GridCell(a.rowIndex,a.floating,a.column),columns:b};this.cellRanges=[],this.cellRanges.push(c),this.activeRange=null,this.dispatchChangedEvent(!0,!1)}}},a.prototype.setRange=function(a){this.gridOptionsWrapper.isEnableRangeSelection()&&(this.cellRanges=[],this.addRange(a))},a.prototype.addRange=function(a){if(this.gridOptionsWrapper.isEnableRangeSelection()){var b=this.columnController.getColumnWithValidation(a.columnStart),c=this.columnController.getPrimaryColumn(a.columnEnd);if(b&&c){var d=this.updateSelectedColumns(b,c);if(d){var e={start:new f.GridCell(a.rowStart,a.floatingStart,b),end:new f.GridCell(a.rowEnd,a.floatingEnd,c),columns:d};this.cellRanges||(this.cellRanges=[]),this.cellRanges.push(e),this.dispatchChangedEvent(!0,!1)}}}},a.prototype.getCellRanges=function(){return this.cellRanges},a.prototype.isEmpty=function(){return f.Utils.missingOrEmpty(this.cellRanges)},a.prototype.isMoreThanOneCell=function(){if(f.Utils.missingOrEmpty(this.cellRanges))return!1;if(this.cellRanges.length>1)return!0;var a=this.cellRanges[0],b=a.start.column===a.end.column&&a.start.rowIndex===a.end.rowIndex;return!b},a.prototype.clearSelection=function(){f.Utils.missing(this.cellRanges)||(this.activeRange=null,this.cellRanges=null,this.dispatchChangedEvent(!0,!1))},a.prototype.onBodyScroll=function(){this.onDragging(this.lastMouseEvent)},a.prototype.isCellInAnyRange=function(a){return this.getCellRangeCount(a)>0},a.prototype.isCellInSpecificRange=function(a,b){var c=b.columns.indexOf(a.column)>=0,d=this.isRowInRange(a.rowIndex,a.floating,b);return c&&d},a.prototype.getCellRangeCount=function(a){var b=this;if(f.Utils.missingOrEmpty(this.cellRanges))return 0;var c=0;return this.cellRanges.forEach(function(d){b.isCellInSpecificRange(a,d)&&c++}),c},a.prototype.isRowInRange=function(a,b,c){var d=new f.GridRow(c.start.rowIndex,c.start.floating),e=new f.GridRow(c.end.rowIndex,c.end.floating),g=d.before(e)?d:e,h=d.before(e)?e:d,i=new f.GridRow(a,b);if(i.equals(g)||i.equals(h))return!0;var j=!i.before(g),k=i.before(h);return j&&k},a.prototype.onDragStart=function(a){if(this.gridOptionsWrapper.isEnableRangeSelection()){var b=a.ctrlKey||a.metaKey;!f.Utils.missing(this.cellRanges)&&b||(this.cellRanges=[]);var c=this.mouseEventService.getCellForMouseEvent(a);f.Utils.missing(c)||(this.createNewActiveRange(c),this.gridPanel.addScrollEventListener(this.bodyScrollListener),this.dragging=!0,this.lastMouseEvent=a,this.selectionChanged(!1,!0))}},a.prototype.createNewActiveRange=function(a){this.activeRange={start:new f.GridCell(a.rowIndex,a.floating,a.column),end:new f.GridCell(a.rowIndex,a.floating,a.column),columns:[a.column]},this.cellRanges.push(this.activeRange)},a.prototype.selectionChanged=function(a,b){this.activeRange.columns=this.updateSelectedColumns(this.activeRange.start.column,this.activeRange.end.column),this.dispatchChangedEvent(a,b)},a.prototype.dispatchChangedEvent=function(a,b){this.eventService.dispatchEvent(f.Events.EVENT_RANGE_SELECTION_CHANGED,{finished:a,started:b})},a.prototype.onDragStop=function(){this.dragging&&(this.gridPanel.removeScrollEventListener(this.bodyScrollListener),this.lastMouseEvent=null,this.dragging=!1,this.dispatchChangedEvent(!0,!1))},a.prototype.onDragging=function(a){if(this.dragging){this.lastMouseEvent=a;var b=this.mouseEventService.getCellForMouseEvent(a);if(!f.Utils.missing(b)){var c=!1;b.column!==this.activeRange.end.column&&(this.activeRange.end.column=b.column,c=!0);var d=!1;b.rowIndex===this.activeRange.end.rowIndex&&b.floating===this.activeRange.end.floating||(this.activeRange.end.rowIndex=b.rowIndex,this.activeRange.end.floating=b.floating,d=!0),(c||d)&&this.selectionChanged(!1,!1)}}},a.prototype.updateSelectedColumns=function(a,b){var c=this.columnController.getAllDisplayedColumns(),d=c.indexOf(a),e=c.indexOf(b);if(d<0)return console.log("ag-Grid: column "+a.getId()+" is not visible"),null;if(e<0)return console.log("ag-Grid: column "+b.getId()+" is not visible"),null;for(var f=Math.min(d,e),g=Math.max(d,e),h=[],i=f;i<=g;i++)h.push(c[i]);return h},d([f.Autowired("loggerFactory"),e("design:type",f.LoggerFactory)],a.prototype,"loggerFactory",void 0),d([f.Autowired("gridPanel"),e("design:type",f.GridPanel)],a.prototype,"gridPanel",void 0),d([f.Autowired("rowModel"),e("design:type",Object)],a.prototype,"rowModel",void 0),d([f.Autowired("eventService"),e("design:type",f.EventService)],a.prototype,"eventService",void 0),d([f.Autowired("columnController"),e("design:type",f.ColumnController)],a.prototype,"columnController",void 0),d([f.Autowired("rowRenderer"),e("design:type",f.RowRenderer)],a.prototype,"rowRenderer",void 0),d([f.Autowired("focusedCellController"),e("design:type",f.FocusedCellController)],a.prototype,"focusedCellController",void 0),d([f.Autowired("mouseEventService"),e("design:type",f.MouseEventService)],a.prototype,"mouseEventService",void 0),d([f.Autowired("gridOptionsWrapper"),e("design:type",f.GridOptionsWrapper)],a.prototype,"gridOptionsWrapper",void 0),d([f.PostConstruct,e("design:type",Function),e("design:paramtypes",[]),e("design:returntype",void 0)],a.prototype,"init",null),a=d([f.Bean("rangeController"),e("design:paramtypes",[])],a)}();b.RangeController=g},function(a,b,c){var d=this&&this.__decorate||function(a,b,c,d){var g,e=arguments.length,f=e<3?b:null===d?d=Object.getOwnPropertyDescriptor(b,c):d;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)f=Reflect.decorate(a,b,c,d);else for(var h=a.length-1;h>=0;h--)(g=a[h])&&(f=(e<3?g(f):e>3?g(b,c,f):g(b,c))||f);return e>3&&f&&Object.defineProperty(b,c,f),f},e=this&&this.__metadata||function(a,b){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(a,b)},f=c(2),g=c(107),h=function(){function a(){}return a.prototype.init=function(){this.logger=this.loggerFactory.create("ClipboardService")},a.prototype.pasteFromClipboard=function(){var a=this;this.logger.log("pasteFromClipboard"),this.executeOnTempElement(function(a){a.focus()},function(b){var c=b.value;a.finishPasteFromClipboard(c)})},a.prototype.copyRangeDown=function(){var a=this;if(!this.rangeController.isEmpty()){var b={},c=null,d=[],e=[];this.iterateFirstActiveRange(function(g,h,i){c?(d.push(h),i.forEach(function(d,e){if(d.isCellEditable(h)){var i=c[e];a.valueService.setValue(h,d,i);var j=new f.GridCell(g.rowIndex,g.floating,d).createId();b[j]=!0}})):(c=[],i.forEach(function(b){var d=a.valueService.getValue(b,h);c.push(d),e.push(b.getId())}))}),this.rowRenderer.refreshView(),this.rowRenderer.refreshCells(d,e),this.eventService.dispatchEvent(f.Events.EVENT_FLASH_CELLS,{cells:b})}},a.prototype.finishPasteFromClipboard=function(a){var b=this;if(!f.Utils.missingOrEmpty(a)){var c=this.focusedCellController.getFocusedCell();if(c){var d=this.dataToArray(a);if(d){var e=d[d.length-1];1===e.length&&""===e[0]&&f.Utils.removeFromArray(d,e);var g=new f.GridRow(c.rowIndex,c.floating),h={},i=[],j=[];d.forEach(function(a,d){if(g){var e=b.getRowNode(g);i.push(e);var k=c.column;a.forEach(function(a){if(!f.Utils.missing(k)&&k.isCellEditable(e)){var c=b.processRangeCell(e,k,a,b.gridOptionsWrapper.getProcessCellFromClipboardFunc());b.valueService.setValue(e,k,c);var d=new f.GridCell(g.rowIndex,g.floating,k).createId();h[d]=!0,j.indexOf(k.getId())<0&&j.push(k.getId()),k=b.columnController.getDisplayedColAfter(k)}}),g=b.cellNavigationService.getRowBelow(g)}}),this.rowRenderer.refreshCells(i,j),this.eventService.dispatchEvent(f.Events.EVENT_FLASH_CELLS,{cells:h}),this.focusedCellController.setFocusedCell(c.rowIndex,c.column,c.floating,!0)}}}},a.prototype.copyToClipboard=function(a){void 0===a&&(a=!1),this.logger.log("copyToClipboard: includeHeaders = "+a);var b=!this.selectionController.isEmpty()&&!this.gridOptionsWrapper.isSuppressCopyRowsToClipboard();this.rangeController.isMoreThanOneCell()?this.copySelectedRangeToClipboard(a):b?this.copySelectedRowsToClipboard(a):this.rangeController.isEmpty()||this.copySelectedRangeToClipboard(a)},a.prototype.iterateFirstActiveRange=function(a,b){if(!this.rangeController.isEmpty()){var c=this.rangeController.getCellRanges(),d=c[0],e=d.start.getGridRow(),g=d.end.getGridRow(),h=e.before(g),i=h?e:g,j=h?g:e;for(f.Utils.exists(b)&&b(d.columns);;){var k=this.getRowNode(i);if(a(i,k,d.columns),i.equals(j))break;i=this.cellNavigationService.getRowBelow(i)}}},a.prototype.copySelectedRangeToClipboard=function(a){var b=this;if(void 0===a&&(a=!1),!this.rangeController.isEmpty()){var c="",d={},e=function(d){a&&(d.forEach(function(a,d){var e=b.columnController.getDisplayNameForColumn(a,!0);0!=d&&(c+="\t"),f.Utils.exists(e)&&(c+=e)}),c+="\r\n")},g=function(a,e,g){g.forEach(function(g,h){var i=b.valueService.getValue(g,e),j=b.processRangeCell(e,g,i,b.gridOptionsWrapper.getProcessCellForClipboardFunc());0!=h&&(c+="\t"),f.Utils.exists(j)&&(c+=j);var k=new f.GridCell(a.rowIndex,a.floating,g).createId();d[k]=!0}),c+="\r\n"};this.iterateFirstActiveRange(g,e),this.copyDataToClipboard(c),this.eventService.dispatchEvent(f.Events.EVENT_FLASH_CELLS,{cells:d})}},a.prototype.processRangeCell=function(a,b,c,d){return d?d({column:b,node:a,value:c,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()}):c},a.prototype.getRowNode=function(a){switch(a.floating){case f.Constants.FLOATING_TOP:return this.floatingRowModel.getFloatingTopRowData()[a.rowIndex];case f.Constants.FLOATING_BOTTOM:return this.floatingRowModel.getFloatingBottomRowData()[a.rowIndex];default:return this.rowModel.getRow(a.rowIndex)}},a.prototype.copySelectedRowsToClipboard=function(a,b){void 0===a&&(a=!1);var c=!a,d={columnKeys:b,skipHeader:c,skipFooters:!0,columnSeparator:"\t",onlySelected:!0,processCellCallback:this.gridOptionsWrapper.getProcessCellForClipboardFunc()},e=this.csvCreator.getDataAsCsv(d);this.copyDataToClipboard(e)},a.prototype.copyDataToClipboard=function(a){this.executeOnTempElement(function(b){return b.value=a,b.select(),b.focus(),document.execCommand("copy")})},a.prototype.executeOnTempElement=function(a,b){var c=document.createElement("textarea");c.style.width="1px",c.style.height="1px",c.style.top="0px",c.style.left="0px",c.style.position="absolute",c.style.opacity="0.0";var d=this.gridCore.getRootGui();d.appendChild(c);try{var e=a(c);this.logger.log("Clipboard operation result: "+e)}catch(a){this.logger.log("Browser doesn\t support document.execComment('copy') for clipboard operations")}b?setTimeout(function(){b(c),d.removeChild(c)},0):d.removeChild(c)},a.prototype.dataToArray=function(a){for(var b="\t",c=new RegExp("(\\"+b+'|\\r?\\n|\\r|^)(?:"([^"]*(?:""[^"]*)*)"|([^"\\'+b+"\\r\\n]*))","gi"),d=[[]],e=null;e=c.exec(a);){var f=e[1];f.length&&f!==b&&d.push([]);var g;g=e[2]?e[2].replace(new RegExp('""',"g"),'"'):e[3],d[d.length-1].push(g)}return d},d([f.Autowired("csvCreator"),e("design:type",f.CsvCreator)],a.prototype,"csvCreator",void 0),d([f.Autowired("loggerFactory"),e("design:type",f.LoggerFactory)],a.prototype,"loggerFactory",void 0),d([f.Autowired("selectionController"),e("design:type",f.SelectionController)],a.prototype,"selectionController",void 0),d([f.Autowired("rangeController"),e("design:type",g.RangeController)],a.prototype,"rangeController",void 0),d([f.Autowired("rowModel"),e("design:type",Object)],a.prototype,"rowModel",void 0),d([f.Autowired("floatingRowModel"),e("design:type",f.FloatingRowModel)],a.prototype,"floatingRowModel",void 0),d([f.Autowired("valueService"),e("design:type",f.ValueService)],a.prototype,"valueService",void 0),d([f.Autowired("focusedCellController"),e("design:type",f.FocusedCellController)],a.prototype,"focusedCellController",void 0),d([f.Autowired("rowRenderer"),e("design:type",f.RowRenderer)],a.prototype,"rowRenderer",void 0),d([f.Autowired("columnController"),e("design:type",f.ColumnController)],a.prototype,"columnController",void 0),d([f.Autowired("eventService"),e("design:type",f.EventService)],a.prototype,"eventService",void 0),d([f.Autowired("cellNavigationService"),e("design:type",f.CellNavigationService)],a.prototype,"cellNavigationService",void 0),d([f.Autowired("gridOptionsWrapper"),e("design:type",f.GridOptionsWrapper)],a.prototype,"gridOptionsWrapper",void 0),d([f.Autowired("gridCore"),e("design:type",f.GridCore)],a.prototype,"gridCore",void 0),d([f.PostConstruct,e("design:type",Function),e("design:paramtypes",[]),e("design:returntype",void 0)],a.prototype,"init",null),a=d([f.Bean("clipboardService"),e("design:paramtypes",[])],a)}();b.ClipboardService=h},function(a,b,c){var d=this&&this.__decorate||function(a,b,c,d){var g,e=arguments.length,f=e<3?b:null===d?d=Object.getOwnPropertyDescriptor(b,c):d;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)f=Reflect.decorate(a,b,c,d);else for(var h=a.length-1;h>=0;h--)(g=a[h])&&(f=(e<3?g(f):e>3?g(b,c,f):g(b,c))||f);return e>3&&f&&Object.defineProperty(b,c,f),f},e=this&&this.__metadata||function(a,b){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(a,b)},f=c(2),g=function(){function a(){}return a.prototype.execute=function(a){var c,b=this.columnController.getRowGroupColumns();c=this.gridOptionsWrapper.isGroupSuppressRow()?-1:this.gridOptionsWrapper.getGroupDefaultExpanded();var d={value:-1};this.recursivelyGroup(a,b,0,c,d)},a.prototype.recursivelyGroup=function(a,b,c,d,e){var f=this,g=c<b.length;if(a.leafGroup=c===b.length,g){var h=b[c];this.setChildrenAfterGroup(a,h,e,d,c),a.childrenAfterGroup.forEach(function(a){f.recursivelyGroup(a,b,c+1,d,e)})}else a.childrenAfterGroup=a.allLeafChildren,a.childrenAfterGroup.forEach(function(b){b.level=c,b.parent=a})},a.prototype.setChildrenAfterGroup=function(a,b,c,d,e){var f=this;a.childrenAfterGroup=[],a.childrenMapped={},a.allLeafChildren.forEach(function(g){var h=f.getKeyForNode(b,g),i=a.childrenMapped[h];i||(i=f.createGroup(b,h,a,c,d,e),a.childrenMapped[h]=i,a.childrenAfterGroup.push(i)),i.allLeafChildren.push(g)})},a.prototype.getKeyForNode=function(a,b){var d,c=this.valueService.getValue(a,b),e=a.getColDef().keyCreator;return d=e?e({value:c}):c},a.prototype.createGroup=function(a,b,c,d,e,g){var h=new f.RowNode;this.context.wireBean(h),h.group=!0,h.field=a.getColDef().field,h.id=d.value.toString(),h.key=b,h.expanded=this.isExpanded(e,g),h.allLeafChildren=[],h.allChildrenCount=0,h.level=g,d.value--;var i=!this.gridOptionsWrapper.isSuppressParentsInRowNodes();return h.parent=i?c:null,h},a.prototype.isExpanded=function(a,b){return a===-1||b<a},d([f.Autowired("selectionController"),e("design:type",f.SelectionController)],a.prototype,"selectionController",void 0),d([f.Autowired("gridOptionsWrapper"),e("design:type",f.GridOptionsWrapper)],a.prototype,"gridOptionsWrapper",void 0),d([f.Autowired("columnController"),e("design:type",f.ColumnController)],a.prototype,"columnController",void 0),d([f.Autowired("valueService"),e("design:type",f.ValueService)],a.prototype,"valueService",void 0),d([f.Autowired("eventService"),e("design:type",f.EventService)],a.prototype,"eventService",void 0),d([f.Autowired("context"),e("design:type",f.Context)],a.prototype,"context",void 0),a=d([f.Bean("groupStage"),e("design:paramtypes",[])],a)}();b.GroupStage=g},function(a,b,c){var d=this&&this.__decorate||function(a,b,c,d){var g,e=arguments.length,f=e<3?b:null===d?d=Object.getOwnPropertyDescriptor(b,c):d;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)f=Reflect.decorate(a,b,c,d);else for(var h=a.length-1;h>=0;h--)(g=a[h])&&(f=(e<3?g(f):e>3?g(b,c,f):g(b,c))||f);return e>3&&f&&Object.defineProperty(b,c,f),f},e=this&&this.__metadata||function(a,b){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(a,b)},f=c(2),g=c(111),h=c(106),i=function(){function a(){}return a.prototype.execute=function(a){var b=f.Utils.exists(this.gridOptionsWrapper.getNodeChildDetailsFunc());if(!b){var c=this.columnController.isPivotActive(),d=this.columnController.getValueColumns(),e=c?this.columnController.getPivotColumns():[];this.recursivelyCreateAggData(a,d,e)}},a.prototype.recursivelyCreateAggData=function(a,b,c){var d=this;a.childrenAfterFilter.forEach(function(a){a.group&&d.recursivelyCreateAggData(a,b,c)}),this.aggregateRowNode(a,b,c)},a.prototype.aggregateRowNode=function(a,b,c){var g,d=0===b.length,e=0===c.length,f=this.gridOptionsWrapper.getGroupRowAggNodesFunc();g=f?f(a.childrenAfterFilter):d?null:e?this.aggregateRowNodeUsingValuesOnly(a,b):this.aggregateRowNodeUsingValuesAndPivot(a),a.data=g,a.sibling&&(a.sibling.data=g)},a.prototype.aggregateRowNodeUsingValuesAndPivot=function(a){var b=this,c={},d=this.pivotStage.getPivotColumnDefs();return d.forEach(function(d){var e,f=d.pivotValueColumn;if(a.leafGroup){var g=d.pivotKeys;e=b.getValuesFromMappedSet(a.childrenMapped,g,f)}else e=b.getValuesPivotNonLeaf(a,d.colId);c[d.colId]=b.aggregateValues(e,f.getAggFunc())}),this.putInValueForGroupNode(c,a),c},a.prototype.aggregateRowNodeUsingValuesOnly=function(a,b){var c=this,d={},e=this.getValuesNormal(a,b);return b.forEach(function(a,b){d[a.getId()]=c.aggregateValues(e[b],a.getAggFunc())}),this.putInValueForGroupNode(d,a),d},a.prototype.putInValueForGroupNode=function(a,b){a[f.ColumnController.GROUP_AUTO_COLUMN_ID]=b.key},a.prototype.getValuesPivotNonLeaf=function(a,b){var c=[];return a.childrenAfterFilter.forEach(function(a){var d=a.data[b];c.push(d)}),c},a.prototype.getValuesFromMappedSet=function(a,b,c){var d=this,e=a;if(b.forEach(function(a){return e=e?e[a]:null}),!e)return[];
var f=[];return e.forEach(function(a){var b=d.valueService.getValue(c,a);f.push(b)}),f},a.prototype.getValuesNormal=function(a,b){var c=[];b.forEach(function(){return c.push([])});for(var d=b.length,e=a.childrenAfterFilter.length,f=0;f<e;f++)for(var g=a.childrenAfterFilter[f],h=0;h<d;h++){var j,i=b[h];j=g.group?g.data[i.getId()]:this.valueService.getValueUsingSpecificData(i,g.data,g),c[h].push(j)}return c},a.prototype.aggregateValues=function(a,b){var c;if(c="string"==typeof b?this.aggFuncService.getAggFunc(b):b,"function"!=typeof c)return console.error("ag-Grid: unrecognised aggregation function "+b),null;var d=c(a);return d},d([f.Autowired("gridOptionsWrapper"),e("design:type",f.GridOptionsWrapper)],a.prototype,"gridOptionsWrapper",void 0),d([f.Autowired("columnController"),e("design:type",f.ColumnController)],a.prototype,"columnController",void 0),d([f.Autowired("valueService"),e("design:type",f.ValueService)],a.prototype,"valueService",void 0),d([f.Autowired("pivotStage"),e("design:type",g.PivotStage)],a.prototype,"pivotStage",void 0),d([f.Autowired("aggFuncService"),e("design:type",h.AggFuncService)],a.prototype,"aggFuncService",void 0),a=d([f.Bean("aggregationStage"),e("design:paramtypes",[])],a)}();b.AggregationStage=i},function(a,b,c){var d=this&&this.__decorate||function(a,b,c,d){var g,e=arguments.length,f=e<3?b:null===d?d=Object.getOwnPropertyDescriptor(b,c):d;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)f=Reflect.decorate(a,b,c,d);else for(var h=a.length-1;h>=0;h--)(g=a[h])&&(f=(e<3?g(f):e>3?g(b,c,f):g(b,c))||f);return e>3&&f&&Object.defineProperty(b,c,f),f},e=this&&this.__metadata||function(a,b){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(a,b)},f=c(2),g=c(112),h=function(){function a(){this.uniqueValues={}}return a.prototype.execute=function(a){this.columnController.isPivotActive()?this.executePivotOn(a):this.executePivotOff()},a.prototype.executePivotOff=function(){this.aggregationColumnsHashLastTime=null,this.uniqueValues={},this.columnController.setSecondaryColumns(null)},a.prototype.executePivotOn=function(a){var b=this.bucketUpRowNodes(a),c=this.setUniqueValues(b),d=this.columnController.getValueColumns(),e=d.map(function(a){return a.getId()}).join("#"),f=this.aggregationColumnsHashLastTime!==e;if(this.aggregationColumnsHashLastTime=e,c||f){var g=this.pivotColDefService.createPivotColumnDefs(this.uniqueValues);this.pivotColumnGroupDefs=g.pivotColumnGroupDefs,this.pivotColumnDefs=g.pivotColumnDefs,this.columnController.setSecondaryColumns(this.pivotColumnGroupDefs)}},a.prototype.setUniqueValues=function(a){var b=JSON.stringify(a),c=JSON.stringify(this.uniqueValues),d=b!==c;return!!d&&(this.uniqueValues=a,!0)},a.prototype.bucketUpRowNodes=function(a){function d(a){a.leafGroup?c.bucketRowNode(a,b):a.childrenAfterFilter.forEach(function(a){d(a)})}var b={},c=this;return d(a),b},a.prototype.bucketRowNode=function(a,b){var c=this.columnController.getPivotColumns();return 0===c.length?void(a.childrenMapped=null):void(a.childrenMapped=this.bucketChildren(a.childrenAfterFilter,c,0,b))},a.prototype.bucketChildren=function(a,b,c,d){var e=this,g={},h=b[c];if(a.forEach(function(a){var b=e.valueService.getValue(h,a);f.Utils.missing(b)&&(b=""),d[b]||(d[b]={}),g[b]||(g[b]=[]),g[b].push(a)}),c===b.length-1)return g;var i={};return f.Utils.iterateObject(g,function(a,f){i[a]=e.bucketChildren(f,b,c+1,d[a])}),i},a.prototype.getPivotColumnDefs=function(){return this.pivotColumnDefs},d([f.Autowired("rowModel"),e("design:type",Object)],a.prototype,"rowModel",void 0),d([f.Autowired("valueService"),e("design:type",f.ValueService)],a.prototype,"valueService",void 0),d([f.Autowired("columnController"),e("design:type",f.ColumnController)],a.prototype,"columnController",void 0),d([f.Autowired("eventService"),e("design:type",f.EventService)],a.prototype,"eventService",void 0),d([f.Autowired("pivotColDefService"),e("design:type",g.PivotColDefService)],a.prototype,"pivotColDefService",void 0),a=d([f.Bean("pivotStage"),e("design:paramtypes",[])],a)}();b.PivotStage=h},function(a,b,c){var d=this&&this.__decorate||function(a,b,c,d){var g,e=arguments.length,f=e<3?b:null===d?d=Object.getOwnPropertyDescriptor(b,c):d;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)f=Reflect.decorate(a,b,c,d);else for(var h=a.length-1;h>=0;h--)(g=a[h])&&(f=(e<3?g(f):e>3?g(b,c,f):g(b,c))||f);return e>3&&f&&Object.defineProperty(b,c,f),f},e=this&&this.__metadata||function(a,b){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(a,b)},f=c(2),g=function(){function a(){}return a.prototype.createPivotColumnDefs=function(a){var b=[],c=[],d=this.columnController.getPivotColumns(),e=d.length,g=new f.NumberSequence;this.recursivelyAddGroup(b,c,1,a,[],g,e,d);var h=c.map(function(a){return f.Utils.cloneObject(a)});return{pivotColumnGroupDefs:b,pivotColumnDefs:h}},a.prototype.recursivelyAddGroup=function(a,b,c,d,e,g,h,i){var j=this;f.Utils.iterateObject(d,function(d,f){var k=e.slice(0);k.push(d);var l=c!==h;if(l){var m={children:[],headerName:d,pivotKeys:k};a.push(m),j.recursivelyAddGroup(m.children,b,c+1,f,k,g,h,i)}else{var n=j.columnController.getValueColumns(),o={children:[],headerName:d,pivotKeys:k};if(a.push(o),0===n.length){var p=j.createColDef(null,"-",k,g);o.children.push(p),b.push(p)}else n.forEach(function(a){var c=j.createColDef(a,a.getColDef().headerName,k,g);o.children.push(c),b.push(c)})}});var k=i[c-1].getColDef(),l=k.pivotComparator,m=this.headerNameComparator.bind(this,l);a.sort(m)},a.prototype.createColDef=function(a,b,c,d){var e={};if(a){var g=a.getColDef();f.Utils.assign(e,g),e.hide=!1}return e.headerName=b,e.colId="pivot_"+d.next(),e.pivotKeys=c,e.pivotValueColumn=a,e},a.prototype.headerNameComparator=function(a,b,c){return a?a(b.headerName,c.headerName):b.headerName<c.headerName?-1:b.headerName>c.headerName?1:0},d([f.Autowired("columnController"),e("design:type",f.ColumnController)],a.prototype,"columnController",void 0),a=d([f.Bean("pivotColDefService"),e("design:paramtypes",[])],a)}();b.PivotColDefService=g},function(a,b,c){var d=this&&this.__decorate||function(a,b,c,d){var g,e=arguments.length,f=e<3?b:null===d?d=Object.getOwnPropertyDescriptor(b,c):d;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)f=Reflect.decorate(a,b,c,d);else for(var h=a.length-1;h>=0;h--)(g=a[h])&&(f=(e<3?g(f):e>3?g(b,c,f):g(b,c))||f);return e>3&&f&&Object.defineProperty(b,c,f),f},e=this&&this.__metadata||function(a,b){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(a,b)},f=c(2),g=c(114),h=c(118),i=c(120),j=function(){function a(){}return a.prototype.init=function(){this.filterManager.registerFilter("set",g.SetFilter),this.cellEditorFactory.addCellEditor(a.RICH_SELECT,h.RichSelectCellEditor),this.licenseManager.validateLicense()},a.RICH_SELECT="richSelect",d([f.Autowired("filterManager"),e("design:type",f.FilterManager)],a.prototype,"filterManager",void 0),d([f.Autowired("cellEditorFactory"),e("design:type",f.CellEditorFactory)],a.prototype,"cellEditorFactory",void 0),d([f.Autowired("licenseManager"),e("design:type",i.LicenseManager)],a.prototype,"licenseManager",void 0),d([f.PostConstruct,e("design:type",Function),e("design:paramtypes",[]),e("design:returntype",void 0)],a.prototype,"init",null),a=d([f.Bean("enterpriseBoot"),e("design:paramtypes",[])],a)}();b.EnterpriseBoot=j},function(a,b,c){var d=this&&this.__extends||function(a,b){function d(){this.constructor=a}for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c]);a.prototype=null===b?Object.create(b):(d.prototype=b.prototype,new d)},e=this&&this.__decorate||function(a,b,c,d){var g,e=arguments.length,f=e<3?b:null===d?d=Object.getOwnPropertyDescriptor(b,c):d;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)f=Reflect.decorate(a,b,c,d);else for(var h=a.length-1;h>=0;h--)(g=a[h])&&(f=(e<3?g(f):e>3?g(b,c,f):g(b,c))||f);return e>3&&f&&Object.defineProperty(b,c,f),f},f=this&&this.__metadata||function(a,b){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(a,b)},g=c(2),h=c(115),i=c(116),j=c(117),k=function(a){function b(){a.call(this)}return d(b,a),b.prototype.postConstruct=function(){this.setTemplate(this.createTemplate()),this.virtualList=new j.VirtualList,this.context.wireBean(this.virtualList),this.getGui().querySelector("#richList").appendChild(this.virtualList.getGui())},b.prototype.init=function(a){this.params=a,this.applyActive=this.params.apply===!0,this.suppressSorting=this.params.suppressSorting===!0,this.newRowsActionKeep="keep"===this.params.newRowsAction,g.Utils.exists(this.params.cellHeight)&&this.virtualList.setRowHeight(this.params.cellHeight),this.virtualList.setComponentCreator(this.createSetListItem.bind(this)),this.model=new h.SetFilterModel(a.colDef,a.rowModel,a.valueGetter,a.doesRowPassOtherFilter,this.suppressSorting),this.virtualList.setModel(new l(this.model)),this.createGui()},b.prototype.createSetListItem=function(a){var b=this,c=this.params.cellRenderer,d=new i.SetFilterListItem(a,c);return this.context.wireBean(d),d.setSelected(this.model.isValueSelected(a)),d.addEventListener(i.SetFilterListItem.EVENT_SELECTED,function(){b.onItemSelected(a,d.isSelected())}),d},b.prototype.afterGuiAttached=function(a){this.virtualList.refresh(),this.eMiniFilter.focus()},b.prototype.isFilterActive=function(){return this.model.isFilterActive()},b.prototype.doesFilterPass=function(a){if(this.model.isEverythingSelected())return!0;if(this.model.isNothingSelected())return!1;var b=this.params.valueGetter(a.node);if(this.params.colDef.keyCreator&&(b=this.params.colDef.keyCreator({value:b})),b=g.Utils.makeNull(b),Array.isArray(b)){for(var c=0;c<b.length;c++)if(this.model.isValueSelected(b[c]))return!0;return!1}return this.model.isValueSelected(b)},b.prototype.onNewRowsLoaded=function(){var a=this.params&&"keep"===this.params.newRowsAction,b=this.eSelectAll&&this.eSelectAll.checked&&!this.eSelectAll.indeterminate;this.model.refreshAfterNewRowsLoaded(a,b),this.updateSelectAll(),this.virtualList.refresh()},b.prototype.onAnyFilterChanged=function(){this.model.refreshAfterAnyFilterChanged(),this.virtualList.refresh()},b.prototype.createTemplate=function(){var a=this.gridOptionsWrapper.getLocaleTextFunc();return'<div>\n <div class="ag-filter-header-container">\n <input class="ag-filter-filter" type="text" placeholder="'+a("searchOoo","Search...")+'"/>\n </div>\n <div class="ag-filter-header-container">\n <label>\n <input id="selectAll" type="checkbox" class="ag-filter-checkbox"/>\n <span class="ag-filter-value">('+a("selectAll","Select All")+')</span>\n </label>\n </div>\n <div id="richList" class="ag-set-filter-list"></div>\n <div class="ag-filter-apply-panel" id="applyPanel">\n <button type="button" id="applyButton">'+a("applyFilter","Apply Filter")+"</button>\n </div>\n </div>"},b.prototype.createGui=function(){var a=this;this.eSelectAll=this.queryForHtmlElement("#selectAll"),this.eMiniFilter=this.queryForHtmlElement(".ag-filter-filter"),this.eMiniFilter.value=this.model.getMiniFilter(),this.addDestroyableEventListener(this.eMiniFilter,"input",function(){a.onMiniFilterChanged()}),this.eSelectAll.onclick=this.onSelectAll.bind(this),this.updateSelectAll(),this.setupApply(),this.virtualList.refresh()},b.prototype.updateSelectAll=function(){this.model.isEverythingSelected()?(this.eSelectAll.indeterminate=!1,this.eSelectAll.checked=!0):this.model.isNothingSelected()?(this.eSelectAll.indeterminate=!1,this.eSelectAll.checked=!1):this.eSelectAll.indeterminate=!0},b.prototype.setupApply=function(){var a=this;this.applyActive?(this.eApplyButton=this.queryForHtmlElement("#applyButton"),this.eApplyButton.addEventListener("click",function(){a.params.filterChangedCallback()})):g.Utils.removeElement(this.getGui(),"#applyPanel")},b.prototype.filterChanged=function(){this.params.filterModifiedCallback(),this.applyActive||this.params.filterChangedCallback()},b.prototype.onMiniFilterChanged=function(){var a=this.model.setMiniFilter(this.eMiniFilter.value);a&&this.virtualList.refresh()},b.prototype.onSelectAll=function(){var a=this.eSelectAll.checked;a?this.model.selectEverything():this.model.selectNothing(),this.virtualList.refresh(),this.filterChanged()},b.prototype.onItemSelected=function(a,b){b?this.model.selectValue(a):this.model.unselectValue(a),this.updateSelectAll(),this.filterChanged()},b.prototype.setMiniFilter=function(a){this.model.setMiniFilter(a)},b.prototype.getMiniFilter=function(){return this.model.getMiniFilter()},b.prototype.selectEverything=function(){this.model.selectEverything(),this.updateSelectAll(),this.virtualList.refresh()},b.prototype.selectNothing=function(){this.model.selectNothing(),this.updateSelectAll(),this.virtualList.refresh()},b.prototype.unselectValue=function(a){this.model.unselectValue(a),this.updateSelectAll(),this.virtualList.refresh()},b.prototype.selectValue=function(a){this.model.selectValue(a),this.updateSelectAll(),this.virtualList.refresh()},b.prototype.isValueSelected=function(a){return this.model.isValueSelected(a)},b.prototype.isEverythingSelected=function(){return this.model.isEverythingSelected()},b.prototype.isNothingSelected=function(){return this.model.isNothingSelected()},b.prototype.getUniqueValueCount=function(){return this.model.getUniqueValueCount()},b.prototype.getUniqueValue=function(a){return this.model.getUniqueValue(a)},b.prototype.getModel=function(){return this.model.getModel()},b.prototype.setModel=function(a){this.model.setModel(a),this.virtualList.refresh()},e([g.Autowired("gridOptionsWrapper"),f("design:type",g.GridOptionsWrapper)],b.prototype,"gridOptionsWrapper",void 0),e([g.Autowired("context"),f("design:type",g.Context)],b.prototype,"context",void 0),e([g.PostConstruct,f("design:type",Function),f("design:paramtypes",[]),f("design:returntype",void 0)],b.prototype,"postConstruct",null),b}(g.Component);b.SetFilter=k;var l=function(){function a(a){this.model=a}return a.prototype.getRowCount=function(){return this.model.getDisplayedValueCount()},a.prototype.getRow=function(a){return this.model.getDisplayedValue(a)},a}()},function(a,b,c){var d=c(2),e=function(){function a(a,b,c,e,f){this.suppressSorting=f,this.colDef=a,this.rowModel=b,this.valueGetter=c,this.doesRowPassOtherFilters=e,this.filterParams=this.colDef.filterParams,d.Utils.exists(this.filterParams)?(this.usingProvidedSet=d.Utils.exists(this.filterParams.values),this.showingAvailableOnly=this.filterParams.suppressRemoveEntries!==!0):(this.usingProvidedSet=!1,this.showingAvailableOnly=!0),this.createAllUniqueValues(),this.createAvailableUniqueValues(),this.displayedValues=this.availableUniqueValues,this.miniFilter=null,this.selectedValuesMap={},this.selectEverything()}return a.prototype.refreshAfterNewRowsLoaded=function(a,b){this.createAllUniqueValues(),this.createAvailableUniqueValues();var c=Object.keys(this.selectedValuesMap);this.selectedValuesMap={},this.processMiniFilter(),a?this.setModel(c,b):this.selectEverything()},a.prototype.refreshAfterAnyFilterChanged=function(){this.showingAvailableOnly&&(this.createAvailableUniqueValues(),this.processMiniFilter())},a.prototype.createAllUniqueValues=function(){if(this.usingProvidedSet)this.allUniqueValues=d.Utils.toStrings(this.filterParams.values);else{var a=this.getUniqueValues(!1);this.allUniqueValues=d.Utils.toStrings(a)}this.suppressSorting||this.sortValues(this.allUniqueValues)},a.prototype.createAvailableUniqueValues=function(){var a=!this.showingAvailableOnly||this.usingProvidedSet;if(a)return void(this.availableUniqueValues=this.allUniqueValues);var b=this.getUniqueValues(!0);this.availableUniqueValues=d.Utils.toStrings(b),this.sortValues(this.availableUniqueValues)},a.prototype.sortValues=function(a){this.filterParams&&this.filterParams.comparator?a.sort(this.filterParams.comparator):this.colDef.comparator?a.sort(this.colDef.comparator):a.sort(d.Utils.defaultComparator)},a.prototype.getUniqueValues=function(a){function e(a){c.hasOwnProperty(a)||(d.push(a),c[a]=1)}var b=this,c={},d=[];return this.rowModel.forEachLeafNode?(this.rowModel.forEachLeafNode(function(c){if(!c.group){var d=b.valueGetter(c);if(b.colDef.keyCreator&&(d=b.colDef.keyCreator({value:d})),""!==d&&void 0!==d||(d=null),a&&!b.doesRowPassOtherFilters(c))return;if(null!=d&&Array.isArray(d))for(var f=0;f<d.length;f++)e(d[f]);else e(d)}}),d):(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"),[])},a.prototype.setMiniFilter=function(a){return a=d.Utils.makeNull(a),this.miniFilter!==a&&(this.miniFilter=a,this.processMiniFilter(),!0)},a.prototype.getMiniFilter=function(){return this.miniFilter},a.prototype.processMiniFilter=function(){if(null===this.miniFilter)return void(this.displayedValues=this.availableUniqueValues);this.displayedValues=[];for(var a=this.miniFilter.toUpperCase(),b=0,c=this.availableUniqueValues.length;b<c;b++){var d=this.availableUniqueValues[b];null!==d&&d.toString().toUpperCase().indexOf(a)>=0&&this.displayedValues.push(d)}},a.prototype.getDisplayedValueCount=function(){return this.displayedValues.length},a.prototype.getDisplayedValue=function(a){return this.displayedValues[a]},a.prototype.selectEverything=function(){for(var a=this.allUniqueValues.length,b=0;b<a;b++){var c=this.allUniqueValues[b];this.selectedValuesMap[c]=null}this.selectedValuesCount=a},a.prototype.isFilterActive=function(){return this.allUniqueValues.length!==this.selectedValuesCount},a.prototype.selectNothing=function(){this.selectedValuesMap={},this.selectedValuesCount=0},a.prototype.getUniqueValueCount=function(){return this.allUniqueValues.length},a.prototype.getUniqueValue=function(a){return this.allUniqueValues[a]},a.prototype.unselectValue=function(a){void 0!==this.selectedValuesMap[a]&&(delete this.selectedValuesMap[a],this.selectedValuesCount--)},a.prototype.selectValue=function(a){void 0===this.selectedValuesMap[a]&&(this.selectedValuesMap[a]=null,this.selectedValuesCount++)},a.prototype.isValueSelected=function(a){return void 0!==this.selectedValuesMap[a]},a.prototype.isEverythingSelected=function(){return this.allUniqueValues.length===this.selectedValuesCount},a.prototype.isNothingSelected=function(){return 0===this.selectedValuesCount},a.prototype.getModel=function(){if(!this.isFilterActive())return null;var a=[];return d.Utils.iterateObject(this.selectedValuesMap,function(b){a.push(b)}),a},a.prototype.setModel=function(a,b){if(void 0===b&&(b=!1),a&&!b){this.selectNothing();for(var c=0;c<a.length;c++){var d=a[c];this.allUniqueValues.indexOf(d)>=0&&this.selectValue(a[c])}}else this.selectEverything()},a}();b.SetFilterModel=e},function(a,b,c){var d=this&&this.__extends||function(a,b){function d(){this.constructor=a}for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c]);a.prototype=null===b?Object.create(b):(d.prototype=b.prototype,new d)},e=this&&this.__decorate||function(a,b,c,d){var g,e=arguments.length,f=e<3?b:null===d?d=Object.getOwnPropertyDescriptor(b,c):d;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)f=Reflect.decorate(a,b,c,d);else for(var h=a.length-1;h>=0;h--)(g=a[h])&&(f=(e<3?g(f):e>3?g(b,c,f):g(b,c))||f);return e>3&&f&&Object.defineProperty(b,c,f),f},f=this&&this.__metadata||function(a,b){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(a,b)},g=c(2),h=function(a){function b(c,d){a.call(this,b.TEMPLATE),this.value=c,this.cellRenderer=d}return d(b,a),b.prototype.init=function(){var a=this;this.render(),this.eCheckbox=this.queryForHtmlInputElement("input"),this.addDestroyableEventListener(this.eCheckbox,"click",function(){return a.dispatchEvent(b.EVENT_SELECTED)})},b.prototype.isSelected=function(){return this.eCheckbox.checked},b.prototype.setSelected=function(a){this.eCheckbox.checked=a},b.prototype.render=function(){var a=this.queryForHtmlElement(".ag-filter-value");if(this.cellRenderer){var b=this.cellRendererService.useCellRenderer(this.cellRenderer,a,{value:this.value});b&&b.destroy&&this.addDestroyFunc(b.destroy.bind(b))}else{var c=this.gridOptionsWrapper.getLocaleTextFunc(),d="("+c("blanks","Blanks")+")",e=null===this.value?d:this.value;a.innerHTML=e}},b.EVENT_SELECTED="selected",b.TEMPLATE='<label class="ag-set-filter-item"><input type="checkbox" class="ag-filter-checkbox"/><span class="ag-filter-value"></span></label>',e([g.Autowired("gridOptionsWrapper"),f("design:type",g.GridOptionsWrapper)],b.prototype,"gridOptionsWrapper",void 0),e([g.Autowired("cellRendererService"),f("design:type",g.CellRendererService)],b.prototype,"cellRendererService",void 0),e([g.PostConstruct,f("design:type",Function),f("design:paramtypes",[]),f("design:returntype",void 0)],b.prototype,"init",null),b}(g.Component);b.SetFilterListItem=h},function(a,b,c){var d=this&&this.__extends||function(a,b){function d(){this.constructor=a}for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c]);a.prototype=null===b?Object.create(b):(d.prototype=b.prototype,new d)},e=this&&this.__decorate||function(a,b,c,d){var g,e=arguments.length,f=e<3?b:null===d?d=Object.getOwnPropertyDescriptor(b,c):d;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)f=Reflect.decorate(a,b,c,d);else for(var h=a.length-1;h>=0;h--)(g=a[h])&&(f=(e<3?g(f):e>3?g(b,c,f):g(b,c))||f);return e>3&&f&&Object.defineProperty(b,c,f),f},f=this&&this.__metadata||function(a,b){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(a,b)},g=c(2),h=function(a){function b(){a.call(this,null),this.rowsInBodyContainer={},this.rowHeight=20}return d(b,a),b.prototype.init=function(){this.setTemplate(b.TEMPLATE),this.eListContainer=this.queryForHtmlElement(".ag-virtual-list-container"),this.addScrollListener()},b.prototype.ensureIndexVisible=function(a){var b=this.model.getRowCount();if("number"!=typeof a||a<0||a>=b)return void console.warn("invalid row index for ensureIndexVisible: "+a);var c=a*this.rowHeight,d=c+this.rowHeight,e=this.getGui().scrollTop,f=this.getGui().offsetHeight,g=e+f,h=e>c,i=g<d;if(h)this.getGui().scrollTop=c;else if(i){var j=d-f;this.getGui().scrollTop=j}},b.prototype.setComponentCreator=function(a){this.componentCreator=a},b.prototype.getRowHeight=function(){return this.rowHeight},b.prototype.getScrollTop=function(){return this.getGui().scrollTop},b.prototype.setRowHeight=function(a){this.rowHeight=a,this.refresh()},b.prototype.refresh=function(){g.Utils.missing(this.model)||(this.eListContainer.style.height=this.model.getRowCount()*this.rowHeight+"px",this.clearVirtualRows(),this.drawVirtualRows())},b.prototype.clearVirtualRows=function(){var a=Object.keys(this.rowsInBodyContainer);this.removeVirtualRows(a)},b.prototype.drawVirtualRows=function(){var a=this.getGui().scrollTop,b=a+this.getGui().offsetHeight,c=Math.floor(a/this.rowHeight),d=Math.floor(b/this.rowHeight);this.ensureRowsRendered(c,d)},b.prototype.ensureRowsRendered=function(a,b){for(var c=Object.keys(this.rowsInBodyContainer),d=a;d<=b;d++)if(c.indexOf(d.toString())>=0)c.splice(c.indexOf(d.toString()),1);else if(this.model.getRowCount()>d){var e=this.model.getRow(d);this.insertRow(e,d)}this.removeVirtualRows(c)},b.prototype.removeVirtualRows=function(a){var b=this;a.forEach(function(a){var c=b.rowsInBodyContainer[a];b.eListContainer.removeChild(c.eDiv),c.rowComponent.destroy&&c.rowComponent.destroy(),delete b.rowsInBodyContainer[a]})},b.prototype.insertRow=function(a,b){var c=document.createElement("div");g.Utils.addCssClass(c,"ag-virtual-list-item"),c.style.top=this.rowHeight*b+"px";var d=this.componentCreator(a);c.appendChild(d.getGui()),this.eListContainer.appendChild(c),this.rowsInBodyContainer[b]={rowComponent:d,eDiv:c}},b.prototype.addScrollListener=function(){var a=this;this.addGuiEventListener("scroll",function(){a.drawVirtualRows()})},b.prototype.setModel=function(a){this.model=a},b.TEMPLATE='<div class="ag-virtual-list-viewport"><div class="ag-virtual-list-container"></div></div>',e([g.PostConstruct,f("design:type",Function),f("design:paramtypes",[]),f("design:returntype",void 0)],b.prototype,"init",null),b}(g.Component);b.VirtualList=h},function(a,b,c){var d=this&&this.__extends||function(a,b){function d(){this.constructor=a}for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c]);a.prototype=null===b?Object.create(b):(d.prototype=b.prototype,new d)},e=this&&this.__decorate||function(a,b,c,d){var g,e=arguments.length,f=e<3?b:null===d?d=Object.getOwnPropertyDescriptor(b,c):d;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)f=Reflect.decorate(a,b,c,d);else for(var h=a.length-1;h>=0;h--)(g=a[h])&&(f=(e<3?g(f):e>3?g(b,c,f):g(b,c))||f);return e>3&&f&&Object.defineProperty(b,c,f),f},f=this&&this.__metadata||function(a,b){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(a,b)},g=c(2),h=c(119),i=c(117),j=function(a){function b(){a.call(this,b.TEMPLATE)}return d(b,a),b.prototype.init=function(a){if(this.params=a,this.selectedValue=a.value,this.cellRenderer=a.cellRenderer,this.focusAfterAttached=a.cellStartedEdit,this.virtualList=new i.VirtualList,this.context.wireBean(this.virtualList),this.virtualList.setComponentCreator(this.createRowComponent.bind(this)),this.getGui().querySelector(".ag-rich-select-list").appendChild(this.virtualList.getGui()),this.renderSelectedValue(),g.Utils.missing(a.values))return void console.log("ag-Grid: richSelectCellEditor requires values for it to work");var b=a.values;this.virtualList.setModel({getRowCount:function(){return b.length},getRow:function(a){return b[a]}}),this.addGuiEventListener("keydown",this.onKeyDown.bind(this)),this.addDestroyableEventListener(this.virtualList.getGui(),"click",this.onClick.bind(this)),this.addDestroyableEventListener(this.virtualList.getGui(),"mousemove",this.onMouseMove.bind(this))},b.prototype.onKeyDown=function(a){var b=a.which||a.keyCode;switch(b){case g.Constants.KEY_ENTER:this.onEnterKeyDown();break;case g.Constants.KEY_DOWN:case g.Constants.KEY_UP:this.onNavigationKeyPressed(a,b)}},b.prototype.onEnterKeyDown=function(){this.params.stopEditing()},b.prototype.onNavigationKeyPressed=function(a,b){a.stopPropagation();var c=this.params.values.indexOf(this.selectedValue),d=b===g.Constants.KEY_UP?c-1:c+1;if(d>=0&&d<this.params.values.length){var e=this.params.values[d];this.setSelectedValue(e)}},b.prototype.renderSelectedValue=function(){var a=this.getGui().querySelector(".ag-rich-select-value");if(this.cellRenderer){var b=this.cellRendererService.useCellRenderer(this.cellRenderer,a,{value:this.selectedValue});b&&b.destroy&&this.addDestroyFunc(function(){return b.destroy()})}else g.Utils.exists(this.selectedValue)?a.innerHTML=this.selectedValue.toString():a.innerHTML=""},b.prototype.setSelectedValue=function(a){if(this.selectedValue!==a){var b=this.params.values.indexOf(a);b>=0&&(this.selectedValue=a,this.virtualList.ensureIndexVisible(b),this.virtualList.refresh())}},b.prototype.createRowComponent=function(a){var b=new h.RichSelectRow(this.cellRenderer);return this.context.wireBean(b),b.setState(a,a===this.selectedValue),b},b.prototype.onMouseMove=function(a){var b=this.virtualList.getGui().getBoundingClientRect(),c=this.virtualList.getScrollTop(),d=a.clientY-b.top+c,e=Math.floor(d/this.virtualList.getRowHeight()),f=this.params.values[e];g.Utils.exists(f)&&this.setSelectedValue(f)},b.prototype.onClick=function(){this.params.stopEditing()},b.prototype.afterGuiAttached=function(){var a=this.params.values.indexOf(this.selectedValue);this.virtualList.refresh(),a>=0&&this.virtualList.ensureIndexVisible(a),this.virtualList.refresh(),this.focusAfterAttached&&this.getGui().focus()},b.prototype.getValue=function(){return this.selectedValue},b.prototype.isPopup=function(){return!0},b.TEMPLATE='<div class="ag-rich-select" tabindex="0"><div class="ag-rich-select-value"></div><div class="ag-rich-select-list"></div></div>',e([g.Autowired("context"),f("design:type",g.Context)],b.prototype,"context",void 0),e([g.Autowired("cellRendererService"),f("design:type",g.CellRendererService)],b.prototype,"cellRendererService",void 0),b}(g.Component);b.RichSelectCellEditor=j},function(a,b,c){var d=this&&this.__extends||function(a,b){function d(){this.constructor=a}for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c]);a.prototype=null===b?Object.create(b):(d.prototype=b.prototype,new d)},e=this&&this.__decorate||function(a,b,c,d){var g,e=arguments.length,f=e<3?b:null===d?d=Object.getOwnPropertyDescriptor(b,c):d;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)f=Reflect.decorate(a,b,c,d);else for(var h=a.length-1;h>=0;h--)(g=a[h])&&(f=(e<3?g(f):e>3?g(b,c,f):g(b,c))||f);return e>3&&f&&Object.defineProperty(b,c,f),f},f=this&&this.__metadata||function(a,b){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(a,b)},g=c(2),h=function(a){function b(b){a.call(this,'<div class="ag-rich-select-row"></div>'),this.cellRenderer=b}return d(b,a),b.prototype.setState=function(a,b){g.Utils.exists(this.cellRenderer)?this.populateWithRenderer(a):this.populateWithoutRenderer(a),g.Utils.addOrRemoveCssClass(this.getGui(),"ag-rich-select-row-selected",b)},b.prototype.populateWithoutRenderer=function(a){g.Utils.exists(a)&&""!==a&&(this.getGui().textContent=a.toString())},b.prototype.populateWithRenderer=function(a){var b=this.cellRendererService.useCellRenderer(this.cellRenderer,this.getGui(),{value:a});b&&b.destroy&&this.addDestroyFunc(b.destroy.bind(b))},e([g.Autowired("cellRendererService"),f("design:type",g.CellRendererService)],b.prototype,"cellRendererService",void 0),b}(g.Component);b.RichSelectRow=h},function(a,b,c){var d=this&&this.__decorate||function(a,b,c,d){var g,e=arguments.length,f=e<3?b:null===d?d=Object.getOwnPropertyDescriptor(b,c):d;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)f=Reflect.decorate(a,b,c,d);else for(var h=a.length-1;h>=0;h--)(g=a[h])&&(f=(e<3?g(f):e>3?g(b,c,f):g(b,c))||f);return e>3&&f&&Object.defineProperty(b,c,f),f},e=this&&this.__metadata||function(a,b){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(a,b)},f=c(2),g=c(2),h=c(121),i=function(){function a(){}return a.prototype.validateLicense=function(){var b=a.getGridReleaseDate(),c=!1,d=!1;if(!g.Utils.missingOrEmpty(a.licenseKey)&&a.licenseKey.length>32){var e=a.licenseKey.length-32,f=a.licenseKey.substring(e),h=a.licenseKey.substring(0,e);if(f===this.md5.md5(h)){var i=h.substring(h.lastIndexOf("_")+1,h.length),j=new Date(parseInt(a.decode(i)));isNaN(j.getTime())||(c=!0,d=b<j)}}if(c){if(!d){var k=a.formatDate(j),l=a.formatDate(b);a.outputMessage("********************* License not compatible with installed version of ag-Grid Enterprise. *********************","Your license for ag-Grid Enterprise expired on "+k+" but the version installed was released on "+l+". Please contact ag-Grid Support to renew your license")}}else a.outputMessage("********************************************* Invalid License **************************************************","* Your license for ag-Grid Enterprise is not valid - please contact ag-Grid support to obtain a valid license. *")},a.outputMessage=function(a,b){console.error("****************************************************************************************************************"),console.error("*************************************** ag-Grid Enterprise License *********************************************"),console.error(a),console.error(b),console.error("****************************************************************************************************************"),console.error("****************************************************************************************************************");
},a.formatDate=function(a){var b=["January","February","March","April","May","June","July","August","September","October","November","December"],c=a.getDate(),d=a.getMonth(),e=a.getFullYear();return c+" "+b[d]+" "+e},a.getGridReleaseDate=function(){return new Date(parseInt(a.decode(a.RELEASE_INFORMATION)))},a.decode=function(b){for(var e,f,g,h,i,j,k,c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",d="",l=0,m=b.replace(/[^A-Za-z0-9+\/=]/g,"");l<m.length;)h=c.indexOf(m.charAt(l++)),i=c.indexOf(m.charAt(l++)),j=c.indexOf(m.charAt(l++)),k=c.indexOf(m.charAt(l++)),e=h<<2|i>>4,f=(15&i)<<4|j>>2,g=(3&j)<<6|k,d+=String.fromCharCode(e),64!=j&&(d+=String.fromCharCode(f)),64!=k&&(d+=String.fromCharCode(g));return d=a.utf8_decode(d)},a.utf8_decode=function(a){a=a.replace(/rn/g,"n");for(var b="",c=0;c<a.length;c++){var d=a.charCodeAt(c);d<128?b+=String.fromCharCode(d):d>127&&d<2048?(b+=String.fromCharCode(d>>6|192),b+=String.fromCharCode(63&d|128)):(b+=String.fromCharCode(d>>12|224),b+=String.fromCharCode(d>>6&63|128),b+=String.fromCharCode(63&d|128))}return b},a.setLicenseKey=function(b){a.licenseKey=b},a.RELEASE_INFORMATION="MTQ2ODM5ODkxNjg4MA==",d([f.Autowired("md5"),e("design:type",h.MD5)],a.prototype,"md5",void 0),a=d([f.Bean("licenseManager"),e("design:paramtypes",[])],a)}();b.LicenseManager=i},function(a,b,c){var d=this&&this.__decorate||function(a,b,c,d){var g,e=arguments.length,f=e<3?b:null===d?d=Object.getOwnPropertyDescriptor(b,c):d;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)f=Reflect.decorate(a,b,c,d);else for(var h=a.length-1;h>=0;h--)(g=a[h])&&(f=(e<3?g(f):e>3?g(b,c,f):g(b,c))||f);return e>3&&f&&Object.defineProperty(b,c,f),f},e=this&&this.__metadata||function(a,b){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(a,b)},f=c(2),g=function(){function a(){this.ieCompatibility=!1}return a.prototype.init=function(){this.ieCompatibility="5d41402abc4b2a76b9719d911017c592"!=this.md5("hello")},a.prototype.md5cycle=function(a,b){var c=a[0],d=a[1],e=a[2],f=a[3];c=this.ff(c,d,e,f,b[0],7,-680876936),f=this.ff(f,c,d,e,b[1],12,-389564586),e=this.ff(e,f,c,d,b[2],17,606105819),d=this.ff(d,e,f,c,b[3],22,-1044525330),c=this.ff(c,d,e,f,b[4],7,-176418897),f=this.ff(f,c,d,e,b[5],12,1200080426),e=this.ff(e,f,c,d,b[6],17,-1473231341),d=this.ff(d,e,f,c,b[7],22,-45705983),c=this.ff(c,d,e,f,b[8],7,1770035416),f=this.ff(f,c,d,e,b[9],12,-1958414417),e=this.ff(e,f,c,d,b[10],17,-42063),d=this.ff(d,e,f,c,b[11],22,-1990404162),c=this.ff(c,d,e,f,b[12],7,1804603682),f=this.ff(f,c,d,e,b[13],12,-40341101),e=this.ff(e,f,c,d,b[14],17,-1502002290),d=this.ff(d,e,f,c,b[15],22,1236535329),c=this.gg(c,d,e,f,b[1],5,-165796510),f=this.gg(f,c,d,e,b[6],9,-1069501632),e=this.gg(e,f,c,d,b[11],14,643717713),d=this.gg(d,e,f,c,b[0],20,-373897302),c=this.gg(c,d,e,f,b[5],5,-701558691),f=this.gg(f,c,d,e,b[10],9,38016083),e=this.gg(e,f,c,d,b[15],14,-660478335),d=this.gg(d,e,f,c,b[4],20,-405537848),c=this.gg(c,d,e,f,b[9],5,568446438),f=this.gg(f,c,d,e,b[14],9,-1019803690),e=this.gg(e,f,c,d,b[3],14,-187363961),d=this.gg(d,e,f,c,b[8],20,1163531501),c=this.gg(c,d,e,f,b[13],5,-1444681467),f=this.gg(f,c,d,e,b[2],9,-51403784),e=this.gg(e,f,c,d,b[7],14,1735328473),d=this.gg(d,e,f,c,b[12],20,-1926607734),c=this.hh(c,d,e,f,b[5],4,-378558),f=this.hh(f,c,d,e,b[8],11,-2022574463),e=this.hh(e,f,c,d,b[11],16,1839030562),d=this.hh(d,e,f,c,b[14],23,-35309556),c=this.hh(c,d,e,f,b[1],4,-1530992060),f=this.hh(f,c,d,e,b[4],11,1272893353),e=this.hh(e,f,c,d,b[7],16,-155497632),d=this.hh(d,e,f,c,b[10],23,-1094730640),c=this.hh(c,d,e,f,b[13],4,681279174),f=this.hh(f,c,d,e,b[0],11,-358537222),e=this.hh(e,f,c,d,b[3],16,-722521979),d=this.hh(d,e,f,c,b[6],23,76029189),c=this.hh(c,d,e,f,b[9],4,-640364487),f=this.hh(f,c,d,e,b[12],11,-421815835),e=this.hh(e,f,c,d,b[15],16,530742520),d=this.hh(d,e,f,c,b[2],23,-995338651),c=this.ii(c,d,e,f,b[0],6,-198630844),f=this.ii(f,c,d,e,b[7],10,1126891415),e=this.ii(e,f,c,d,b[14],15,-1416354905),d=this.ii(d,e,f,c,b[5],21,-57434055),c=this.ii(c,d,e,f,b[12],6,1700485571),f=this.ii(f,c,d,e,b[3],10,-1894986606),e=this.ii(e,f,c,d,b[10],15,-1051523),d=this.ii(d,e,f,c,b[1],21,-2054922799),c=this.ii(c,d,e,f,b[8],6,1873313359),f=this.ii(f,c,d,e,b[15],10,-30611744),e=this.ii(e,f,c,d,b[6],15,-1560198380),d=this.ii(d,e,f,c,b[13],21,1309151649),c=this.ii(c,d,e,f,b[4],6,-145523070),f=this.ii(f,c,d,e,b[11],10,-1120210379),e=this.ii(e,f,c,d,b[2],15,718787259),d=this.ii(d,e,f,c,b[9],21,-343485551),a[0]=this.add32(c,a[0]),a[1]=this.add32(d,a[1]),a[2]=this.add32(e,a[2]),a[3]=this.add32(f,a[3])},a.prototype.cmn=function(a,b,c,d,e,f){return b=this.add32(this.add32(b,a),this.add32(d,f)),this.add32(b<<e|b>>>32-e,c)},a.prototype.ff=function(a,b,c,d,e,f,g){return this.cmn(b&c|~b&d,a,b,e,f,g)},a.prototype.gg=function(a,b,c,d,e,f,g){return this.cmn(b&d|c&~d,a,b,e,f,g)},a.prototype.hh=function(a,b,c,d,e,f,g){return this.cmn(b^c^d,a,b,e,f,g)},a.prototype.ii=function(a,b,c,d,e,f,g){return this.cmn(c^(b|~d),a,b,e,f,g)},a.prototype.md51=function(a){var d,b=a.length,c=[1732584193,-271733879,-1732584194,271733878];for(d=64;d<=a.length;d+=64)this.md5cycle(c,this.md5blk(a.substring(d-64,d)));a=a.substring(d-64);var e=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(d=0;d<a.length;d++)e[d>>2]|=a.charCodeAt(d)<<(d%4<<3);if(e[d>>2]|=128<<(d%4<<3),d>55)for(this.md5cycle(c,e),d=0;d<16;d++)e[d]=0;return e[14]=8*b,this.md5cycle(c,e),c},a.prototype.md5blk=function(a){var c,b=[];for(c=0;c<64;c+=4)b[c>>2]=a.charCodeAt(c)+(a.charCodeAt(c+1)<<8)+(a.charCodeAt(c+2)<<16)+(a.charCodeAt(c+3)<<24);return b},a.prototype.rhex=function(a){for(var b="0123456789abcdef".split(""),c="",d=0;d<4;d++)c+=b[a>>8*d+4&15]+b[a>>8*d&15];return c},a.prototype.hex=function(a){for(var b=0;b<a.length;b++)a[b]=this.rhex(a[b]);return a.join("")},a.prototype.md5=function(a){return this.hex(this.md51(a))},a.prototype.add32=function(a,b){return this.ieCompatibility?this.add32Compat(a,b):this.add32Std(a,b)},a.prototype.add32Std=function(a,b){return a+b&4294967295},a.prototype.add32Compat=function(a,b){var c=(65535&a)+(65535&b),d=(a>>16)+(b>>16)+(c>>16);return d<<16|65535&c},d([f.PostConstruct,e("design:type",Function),e("design:paramtypes",[]),e("design:returntype",void 0)],a.prototype,"init",null),a=d([f.Bean("md5"),e("design:paramtypes",[])],a)}();b.MD5=g},function(a,b,c){var d=this&&this.__extends||function(a,b){function d(){this.constructor=a}for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c]);a.prototype=null===b?Object.create(b):(d.prototype=b.prototype,new d)},e=this&&this.__decorate||function(a,b,c,d){var g,e=arguments.length,f=e<3?b:null===d?d=Object.getOwnPropertyDescriptor(b,c):d;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)f=Reflect.decorate(a,b,c,d);else for(var h=a.length-1;h>=0;h--)(g=a[h])&&(f=(e<3?g(f):e>3?g(b,c,f):g(b,c))||f);return e>3&&f&&Object.defineProperty(b,c,f),f},f=this&&this.__metadata||function(a,b){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(a,b)},g=c(2),h=c(123),i=c(107),j=function(a){function b(){a.call(this,b.TEMPLATE),this.aggregationsComponent=new g.Component('<div class="ag-status-bar-aggregations"></div>'),this.infoLabel=new g.Component('<div class="ag-status-bar-info-label"></div>')}return d(b,a),b.prototype.init=function(){this.createStatusItems(),this.eventService.addEventListener(g.Events.EVENT_RANGE_SELECTION_CHANGED,this.onRangeSelectionChanged.bind(this))},b.prototype.createStatusItems=function(){var a=this,b=this.gridOptionsWrapper.getLocaleTextFunc();this.statusItemSum=new h.StatusItem(b("sum","Sum")),this.statusItemCount=new h.StatusItem(b("count","Count")),this.statusItemMin=new h.StatusItem(b("min","Min")),this.statusItemMax=new h.StatusItem(b("max","Max")),this.statusItemAvg=new h.StatusItem(b("average","Average")),this.forEachStatusItem(function(b){a.context.wireBean(b),a.aggregationsComponent.appendChild(b),b.setVisible(!1)}),this.appendChild(this.infoLabel),this.appendChild(this.aggregationsComponent)},b.prototype.forEachStatusItem=function(a){[this.statusItemAvg,this.statusItemCount,this.statusItemMin,this.statusItemMax,this.statusItemSum].forEach(a)},b.prototype.onRangeSelectionChanged=function(){var a=this,b=this.rangeController.getCellRanges(),c=0,d=0,e=0,f=null,h=null,i={};g.Utils.missingOrEmpty(b)||b.forEach(function(b){for(var j=b.start.getGridRow(),k=b.end.getGridRow(),l=j.before(k),m=l?j:k,n=l?k:j;;){if(b.columns.forEach(function(b){var j=m.getGridCell(b).createId();if(!i[j]){i[j]=!0;var k=a.getRowNode(m),l=a.valueService.getValue(b,k);g.Utils.missing(l)||""===l||(l.value&&(l=l.value),"string"==typeof l&&(l=Number(l)),"number"!=typeof l||isNaN(l)||(c+=l,(null===h||l>h)&&(h=l),(null===f||l<f)&&(f=l),e++),d++)}}),m.equals(n))break;m=a.cellNavigationService.getRowBelow(m)}});var j=d>1,k=e>0;j&&this.statusItemCount.setValue(d),this.statusItemCount.setVisible(j),k&&(this.statusItemSum.setValue(c),this.statusItemMin.setValue(f),this.statusItemMax.setValue(h),this.statusItemAvg.setValue(c/e)),this.statusItemSum.setVisible(k),this.statusItemMin.setVisible(k),this.statusItemMax.setVisible(k),this.statusItemAvg.setVisible(k)},b.prototype.getRowNode=function(a){switch(a.floating){case g.Constants.FLOATING_TOP:return this.floatingRowModel.getFloatingTopRowData()[a.rowIndex];case g.Constants.FLOATING_BOTTOM:return this.floatingRowModel.getFloatingBottomRowData()[a.rowIndex];default:return this.rowModel.getRow(a.rowIndex)}},b.TEMPLATE='<div class="ag-status-bar"></div>',e([g.Autowired("eventService"),f("design:type",g.EventService)],b.prototype,"eventService",void 0),e([g.Autowired("rangeController"),f("design:type",i.RangeController)],b.prototype,"rangeController",void 0),e([g.Autowired("valueService"),f("design:type",g.ValueService)],b.prototype,"valueService",void 0),e([g.Autowired("cellNavigationService"),f("design:type",g.CellNavigationService)],b.prototype,"cellNavigationService",void 0),e([g.Autowired("floatingRowModel"),f("design:type",g.FloatingRowModel)],b.prototype,"floatingRowModel",void 0),e([g.Autowired("rowModel"),f("design:type",Object)],b.prototype,"rowModel",void 0),e([g.Autowired("context"),f("design:type",g.Context)],b.prototype,"context",void 0),e([g.Autowired("gridOptionsWrapper"),f("design:type",g.GridOptionsWrapper)],b.prototype,"gridOptionsWrapper",void 0),e([g.PostConstruct,f("design:type",Function),f("design:paramtypes",[]),f("design:returntype",void 0)],b.prototype,"init",null),b=e([g.Bean("statusBar"),f("design:paramtypes",[])],b)}(g.Component);b.StatusBar=j},function(a,b,c){var d=this&&this.__extends||function(a,b){function d(){this.constructor=a}for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c]);a.prototype=null===b?Object.create(b):(d.prototype=b.prototype,new d)},e=this&&this.__decorate||function(a,b,c,d){var g,e=arguments.length,f=e<3?b:null===d?d=Object.getOwnPropertyDescriptor(b,c):d;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)f=Reflect.decorate(a,b,c,d);else for(var h=a.length-1;h>=0;h--)(g=a[h])&&(f=(e<3?g(f):e>3?g(b,c,f):g(b,c))||f);return e>3&&f&&Object.defineProperty(b,c,f),f},f=this&&this.__metadata||function(a,b){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(a,b)},g=c(2),h=function(a){function b(c){a.call(this,b.TEMPLATE),this.queryForHtmlElement("#_label").innerHTML=c}return d(b,a),b.prototype.init=function(){this.lbValue=this.queryForHtmlElement("#_value")},b.prototype.setValue=function(a){this.lbValue.innerHTML=g.Utils.formatNumberTwoDecimalPlacesAndCommas(a)},b.TEMPLATE='<span class="ag-status-bar-item"> <span id="_label"></span> <span id="_value"></span></span>',e([g.PostConstruct,f("design:type",Function),f("design:paramtypes",[]),f("design:returntype",void 0)],b.prototype,"init",null),b}(g.Component);b.StatusItem=h},function(a,b,c){var d=this&&this.__extends||function(a,b){function d(){this.constructor=a}for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c]);a.prototype=null===b?Object.create(b):(d.prototype=b.prototype,new d)},e=this&&this.__decorate||function(a,b,c,d){var g,e=arguments.length,f=e<3?b:null===d?d=Object.getOwnPropertyDescriptor(b,c):d;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)f=Reflect.decorate(a,b,c,d);else for(var h=a.length-1;h>=0;h--)(g=a[h])&&(f=(e<3?g(f):e>3?g(b,c,f):g(b,c))||f);return e>3&&f&&Object.defineProperty(b,c,f),f},f=this&&this.__metadata||function(a,b){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(a,b)},g=c(2),h=c(108),i=g.SvgFactory.getInstance(),j=function(){function a(){}return a.prototype.init=function(){},a.prototype.getMenuItems=function(a,b,c){var d;if(d=g.Utils.exists(a)?["copy","copyWithHeaders","paste","separator","toolPanel"]:["toolPanel"],this.gridOptionsWrapper.getContextMenuItemsFunc()){var e=this.gridOptionsWrapper.getContextMenuItemsFunc(),f={node:a,column:b,value:c,defaultItems:d,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()},h=e(f);return h}return d},a.prototype.showMenu=function(a,b,c,d){var e=this.getMenuItems(a,b,c);if(!g.Utils.missingOrEmpty(e)){var f=new k(e);this.context.wireBean(f);var h=f.getGui(),i=this.popupService.addAsModalPopup(h,!0,function(){return f.destroy()});this.popupService.positionPopupUnderMouseEvent({mouseEvent:d,ePopup:h}),f.afterGuiAttached(i)}},e([g.Autowired("context"),f("design:type",g.Context)],a.prototype,"context",void 0),e([g.Autowired("popupService"),f("design:type",g.PopupService)],a.prototype,"popupService",void 0),e([g.Autowired("gridOptionsWrapper"),f("design:type",g.GridOptionsWrapper)],a.prototype,"gridOptionsWrapper",void 0),e([g.PostConstruct,f("design:type",Function),f("design:paramtypes",[]),f("design:returntype",void 0)],a.prototype,"init",null),a=e([g.Bean("contextMenuFactory"),f("design:paramtypes",[])],a)}();b.ContextMenuFactory=j;var k=function(a){function b(b){a.call(this,'<div class="ag-menu"></div>'),this.menuItems=b}return d(b,a),b.prototype.createDefaultMenuItems=function(){var a=this,b=this.gridOptionsWrapper.getLocaleTextFunc(),c={copy:{name:b("copy","Copy"),shortcut:b("ctrlC","Ctrl+C"),icon:i.createCopyIcon(),action:function(){return a.clipboardService.copyToClipboard(!1)}},copyWithHeaders:{name:b("copyWithHeaders","Copy with Headers"),icon:i.createCopyIcon(),action:function(){return a.clipboardService.copyToClipboard(!0)}},paste:{name:b("paste","Paste"),shortcut:b("ctrlV","Ctrl+V"),disabled:!0,icon:i.createPasteIcon(),action:function(){return a.clipboardService.pasteFromClipboard()}},toolPanel:{name:b("toolPanel","Tool Panel"),checked:this.gridApi.isToolPanelShowing(),action:function(){return a.gridApi.showToolPanel(!a.gridApi.isToolPanelShowing())}}};return c},b.prototype.addMenuItems=function(){this.menuList=new g.MenuList,this.context.wireBean(this.menuList);var a=this.createDefaultMenuItems();this.menuList.addMenuItems(this.menuItems,a),this.getGui().appendChild(this.menuList.getGui()),this.menuList.addEventListener(g.MenuItemComponent.EVENT_ITEM_SELECTED,this.onHidePopup.bind(this))},b.prototype.onHidePopup=function(){this.hidePopupFunc()},b.prototype.afterGuiAttached=function(a){this.hidePopupFunc=a},e([g.Autowired("context"),f("design:type",g.Context)],b.prototype,"context",void 0),e([g.Autowired("clipboardService"),f("design:type",h.ClipboardService)],b.prototype,"clipboardService",void 0),e([g.Autowired("gridOptionsWrapper"),f("design:type",g.GridOptionsWrapper)],b.prototype,"gridOptionsWrapper",void 0),e([g.Autowired("gridApi"),f("design:type",g.GridApi)],b.prototype,"gridApi",void 0),e([g.PostConstruct,f("design:type",Function),f("design:paramtypes",[]),f("design:returntype",void 0)],b.prototype,"addMenuItems",null),b}(g.Component)},function(a,b,c){var d=this&&this.__decorate||function(a,b,c,d){var g,e=arguments.length,f=e<3?b:null===d?d=Object.getOwnPropertyDescriptor(b,c):d;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)f=Reflect.decorate(a,b,c,d);else for(var h=a.length-1;h>=0;h--)(g=a[h])&&(f=(e<3?g(f):e>3?g(b,c,f):g(b,c))||f);return e>3&&f&&Object.defineProperty(b,c,f),f},e=this&&this.__metadata||function(a,b){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(a,b)},f=c(2),g=function(){function a(){this.firstRow=-1,this.lastRow=-1,this.rowCount=-1,this.rowNodesByIndex={}}return a.prototype.init=function(){this.rowHeight=this.gridOptionsWrapper.getRowHeightAsNumber(),this.eventService.addEventListener(f.Events.EVENT_VIEWPORT_CHANGED,this.onViewportChanged.bind(this));var a=this.gridOptionsWrapper.isRowModelViewport();a&&this.gridOptionsWrapper.getViewportDatasource()&&this.setViewportDatasource(this.gridOptionsWrapper.getViewportDatasource())},a.prototype.destroy=function(){this.destroyCurrentDatasource()},a.prototype.destroyCurrentDatasource=function(){this.viewportDatasource&&this.viewportDatasource.destroy&&this.viewportDatasource.destroy()},a.prototype.calculateFirstRow=function(a){var b=this.gridOptionsWrapper.getViewportRowModelBufferSize(),c=this.gridOptionsWrapper.getViewportRowModelPageSize(),d=a-b;return d<0?0:Math.floor(d/c)*c},a.prototype.calculateLastRow=function(a){var b=this.gridOptionsWrapper.getViewportRowModelBufferSize(),c=this.gridOptionsWrapper.getViewportRowModelPageSize(),d=a+b,e=Math.ceil(d/c)*c;return e<=this.rowCount?e:this.rowCount},a.prototype.onViewportChanged=function(a){var b=this.calculateFirstRow(a.firstRow),c=this.calculateLastRow(a.lastRow);this.firstRow===b&&this.lastRow===c||(this.firstRow=b,this.lastRow=c,this.purgeRowsNotInViewport(),this.viewportDatasource&&this.viewportDatasource.setViewportRange(this.firstRow,this.lastRow))},a.prototype.purgeRowsNotInViewport=function(){var a=this;Object.keys(this.rowNodesByIndex).forEach(function(b){var c=parseInt(b);(c<a.firstRow||c>a.lastRow)&&delete a.rowNodesByIndex[c]})},a.prototype.setViewportDatasource=function(a){this.destroyCurrentDatasource(),this.viewportDatasource=a,this.rowCount=0,a.init?a.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.")},a.prototype.getType=function(){return f.Constants.ROW_MODEL_TYPE_VIEWPORT},a.prototype.getRow=function(a){return this.rowNodesByIndex[a]||(this.rowNodesByIndex[a]=this.createBlankRowNode(a)),this.rowNodesByIndex[a]},a.prototype.getRowCount=function(){return this.rowCount},a.prototype.getRowIndexAtPixel=function(a){return 0!==this.rowHeight?Math.floor(a/this.rowHeight):0},a.prototype.getRowCombinedHeight=function(){return this.rowCount*this.rowHeight},a.prototype.isEmpty=function(){return this.rowCount>0},a.prototype.isRowsToRender=function(){return this.rowCount>0},a.prototype.forEachNode=function(a){var b=this,c=0;Object.keys(this.rowNodesByIndex).forEach(function(d){var e=parseInt(d),f=b.rowNodesByIndex[e];a(f,c),c++})},a.prototype.setRowData=function(a){var b=this;f.Utils.iterateObject(a,function(a,c){var d=parseInt(a);if(d>=b.firstRow&&d<=b.lastRow){var e=b.rowNodesByIndex[d];f.Utils.missing(e)&&(e=b.createBlankRowNode(d),b.rowNodesByIndex[d]=e),e.setDataAndId(c,d.toString())}})},a.prototype.createBlankRowNode=function(a){var b=new f.RowNode;return this.context.wireBean(b),b.rowHeight=this.rowHeight,b.rowTop=this.rowHeight*a,b},a.prototype.setRowCount=function(a){a!==this.rowCount&&(this.rowCount=a,this.eventService.dispatchEvent(f.Events.EVENT_MODEL_UPDATED))},a.prototype.insertItemsAtIndex=function(a,b){console.log("not yet supported")},a.prototype.removeItems=function(a){console.log("not yet supported")},a.prototype.addItems=function(a){console.log("not yet supported")},d([f.Autowired("gridOptionsWrapper"),e("design:type",f.GridOptionsWrapper)],a.prototype,"gridOptionsWrapper",void 0),d([f.Autowired("eventService"),e("design:type",f.EventService)],a.prototype,"eventService",void 0),d([f.Autowired("selectionController"),e("design:type",f.SelectionController)],a.prototype,"selectionController",void 0),d([f.Autowired("context"),e("design:type",f.Context)],a.prototype,"context",void 0),d([f.PostConstruct,e("design:type",Function),e("design:paramtypes",[]),e("design:returntype",void 0)],a.prototype,"init",null),d([f.PreDestroy,e("design:type",Function),e("design:paramtypes",[]),e("design:returntype",void 0)],a.prototype,"destroy",null),a=d([f.Bean("rowModel"),e("design:paramtypes",[])],a)}();b.ViewportRowModel=g},function(a,b,c){var d=this&&this.__extends||function(a,b){function d(){this.constructor=a}for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c]);a.prototype=null===b?Object.create(b):(d.prototype=b.prototype,new d)},e=this&&this.__decorate||function(a,b,c,d){var g,e=arguments.length,f=e<3?b:null===d?d=Object.getOwnPropertyDescriptor(b,c):d;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)f=Reflect.decorate(a,b,c,d);else for(var h=a.length-1;h>=0;h--)(g=a[h])&&(f=(e<3?g(f):e>3?g(b,c,f):g(b,c))||f);return e>3&&f&&Object.defineProperty(b,c,f),f},f=this&&this.__metadata||function(a,b){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(a,b)},g=c(2),h=c(127),i=g.SvgFactory.getInstance(),j=function(a){function b(b){a.call(this,b,!1)}return d(b,a),b.prototype.passBeansUp=function(){a.prototype.setBeans.call(this,{gridOptionsWrapper:this.gridOptionsWrapper,eventService:this.eventService,context:this.context,loggerFactory:this.loggerFactory,dragAndDropService:this.dragAndDropService});var b=this.gridOptionsWrapper.getLocaleTextFunc(),c=b("pivotColumnsEmptyMessage","Drag here to pivot"),d=b("pivots","Pivots");a.prototype.init.call(this,{dragAndDropIcon:g.DragAndDropService.ICON_GROUP,icon:g.Utils.createIconNoSpan("pivotPanel",this.gridOptionsWrapper,null,i.createPivotIcon),emptyMessage:c,title:d}),this.addDestroyableEventListener(this.eventService,g.Events.EVENT_COLUMN_EVERYTHING_CHANGED,this.refresh.bind(this)),this.addDestroyableEventListener(this.eventService,g.Events.EVENT_COLUMN_PIVOT_CHANGED,this.refresh.bind(this)),this.addDestroyableEventListener(this.eventService,g.Events.EVENT_COLUMN_PIVOT_MODE_CHANGED,this.checkVisibility.bind(this)),this.refresh()},b.prototype.refresh=function(){this.checkVisibility(),this.refreshGui()},b.prototype.checkVisibility=function(){var a=this.columnController.isPivotMode();if(this.isHorizontal())switch(this.gridOptionsWrapper.getPivotPanelShow()){case"always":this.setVisible(a);break;case"onlyWhenPivoting":var b=this.columnController.isPivotActive();this.setVisible(a&&b);break;default:this.setVisible(!1)}else this.setVisible(a)},b.prototype.isColumnDroppable=function(a){if(this.gridOptionsWrapper.isFunctionsReadOnly())return!1;if(!a.isPrimary())return!1;var b=a.isAllowPivot(),c=!a.isPivotActive();return b&&c},b.prototype.removeColumns=function(a){if(this.gridOptionsWrapper.isFunctionsPassive())this.eventService.dispatchEvent(g.Events.EVENT_COLUMN_PIVOT_REMOVE_REQUEST,{columns:a});else{var b=g.Utils.filter(a,function(a){return a.isPivotActive()});this.columnController.removePivotColumns(b)}},b.prototype.getIconName=function(){return this.isPotentialDndColumns()?g.DragAndDropService.ICON_PIVOT:g.DragAndDropService.ICON_NOT_ALLOWED},b.prototype.addColumns=function(a){this.gridOptionsWrapper.isFunctionsPassive()?this.eventService.dispatchEvent(g.Events.EVENT_COLUMN_PIVOT_ADD_REQUEST,{columns:a}):this.columnController.addPivotColumns(a)},b.prototype.getExistingColumns=function(){return this.columnController.getPivotColumns()},e([g.Autowired("columnController"),f("design:type",g.ColumnController)],b.prototype,"columnController",void 0),e([g.Autowired("eventService"),f("design:type",g.EventService)],b.prototype,"eventService",void 0),e([g.Autowired("gridOptionsWrapper"),f("design:type",g.GridOptionsWrapper)],b.prototype,"gridOptionsWrapper",void 0),e([g.Autowired("context"),f("design:type",g.Context)],b.prototype,"context",void 0),e([g.Autowired("loggerFactory"),f("design:type",g.LoggerFactory)],b.prototype,"loggerFactory",void 0),e([g.Autowired("dragAndDropService"),f("design:type",g.DragAndDropService)],b.prototype,"dragAndDropService",void 0),e([g.PostConstruct,f("design:type",Function),f("design:paramtypes",[]),f("design:returntype",void 0)],b.prototype,"passBeansUp",null),b}(h.AbstractColumnDropPanel);b.PivotColumnsPanel=j},function(a,b,c){var d=this&&this.__extends||function(a,b){function d(){this.constructor=a}for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c]);a.prototype=null===b?Object.create(b):(d.prototype=b.prototype,new d)},e=c(2),f=c(128),g=function(a){function b(b,c){a.call(this,'<div class="ag-column-drop ag-font-style ag-column-drop-'+(b?"horizontal":"vertical")+'"></div>'),this.guiDestroyFunctions=[],this.horizontal=b,this.valueColumn=c}return d(b,a),b.prototype.isHorizontal=function(){return this.horizontal},b.prototype.setBeans=function(a){this.beans=a},b.prototype.destroy=function(){this.destroyGui(),a.prototype.destroy.call(this)},b.prototype.destroyGui=function(){this.guiDestroyFunctions.forEach(function(a){return a()}),this.guiDestroyFunctions.length=0,e.Utils.removeAllChildren(this.getGui())},b.prototype.init=function(a){this.params=a,this.logger=this.beans.loggerFactory.create("AbstractColumnDropPanel"),this.beans.eventService.addEventListener(e.Events.EVENT_COLUMN_EVERYTHING_CHANGED,this.refreshGui.bind(this)),this.addDestroyableEventListener(this.beans.gridOptionsWrapper,"functionsReadOnly",this.refreshGui.bind(this)),this.setupDropTarget(),this.refreshGui()},b.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)},this.beans.dragAndDropService.addDropTarget(this.dropTarget)},b.prototype.onDragging=function(){},b.prototype.onDragEnter=function(a){var b=a.dragSource.dragItem,c=e.Utils.filter(b,this.isColumnDroppable.bind(this)),d=c.length>0;d&&(this.potentialDndColumns=c,this.refreshGui())},b.prototype.isPotentialDndColumns=function(){return e.Utils.existsAndNotEmpty(this.potentialDndColumns)},b.prototype.onDragLeave=function(a){var b=a.dragSource.dragSourceDropTarget===this.dropTarget;if(b){var c=a.dragSource.dragItem;this.removeColumns(c)}this.potentialDndColumns&&(this.potentialDndColumns=null,this.refreshGui())},b.prototype.onDragStop=function(){this.potentialDndColumns&&(this.addColumns(this.potentialDndColumns),this.potentialDndColumns=null,this.refreshGui())},b.prototype.refreshGui=function(){this.destroyGui(),this.addIconAndTitleToGui(),this.addEmptyMessageToGui(),this.addExistingColumnsToGui(),this.addPotentialDragItemsToGui()},b.prototype.addPotentialDragItemsToGui=function(){var a=this,b=this.isExistingColumnsEmpty();this.potentialDndColumns&&this.potentialDndColumns.forEach(function(c){b||a.addArrowToGui(),b=!1;var d=new f.ColumnComponent(c,a.dropTarget,!0,a.valueColumn);d.addEventListener(f.ColumnComponent.EVENT_COLUMN_REMOVE,a.removeColumns.bind(a,[c])),a.beans.context.wireBean(d),a.getGui().appendChild(d.getGui()),a.guiDestroyFunctions.push(function(){return d.destroy()})})},b.prototype.addExistingColumnsToGui=function(){var a=this,b=this.getExistingColumns();b.forEach(function(b,c){c>0&&a.addArrowToGui();var d=new f.ColumnComponent(b,a.dropTarget,!1,a.valueColumn);d.addEventListener(f.ColumnComponent.EVENT_COLUMN_REMOVE,a.removeColumns.bind(a,[b])),a.beans.context.wireBean(d),a.getGui().appendChild(d.getGui()),a.guiDestroyFunctions.push(function(){return d.destroy()})})},b.prototype.addIconAndTitleToGui=function(){var a=this.horizontal&&this.isExistingColumnsEmpty(),b=this.params.icon;if(e.Utils.addCssClass(b,"ag-column-drop-icon"),e.Utils.addOrRemoveCssClass(b,"ag-faded",a),this.getGui().appendChild(b),!this.horizontal){var c=document.createElement("span");c.innerHTML=this.params.title,e.Utils.addCssClass(c,"ag-column-drop-title"),e.Utils.addOrRemoveCssClass(c,"ag-faded",a),this.getGui().appendChild(c)}},b.prototype.isExistingColumnsEmpty=function(){return 0===this.getExistingColumns().length},b.prototype.addEmptyMessageToGui=function(){var a=this.isExistingColumnsEmpty()&&!this.potentialDndColumns;if(a){var b=document.createElement("span");b.innerHTML=this.params.emptyMessage,e.Utils.addCssClass(b,"ag-column-drop-empty-message"),this.getGui().appendChild(b)}},b.prototype.addArrowToGui=function(){if(this.horizontal){var a=document.createElement("span");a.innerHTML="→",this.getGui().appendChild(a)}},b}(e.Component);b.AbstractColumnDropPanel=g},function(a,b,c){var d=this&&this.__extends||function(a,b){function d(){this.constructor=a}for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c]);a.prototype=null===b?Object.create(b):(d.prototype=b.prototype,new d)},e=this&&this.__decorate||function(a,b,c,d){var g,e=arguments.length,f=e<3?b:null===d?d=Object.getOwnPropertyDescriptor(b,c):d;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)f=Reflect.decorate(a,b,c,d);else for(var h=a.length-1;h>=0;h--)(g=a[h])&&(f=(e<3?g(f):e>3?g(b,c,f):g(b,c))||f);return e>3&&f&&Object.defineProperty(b,c,f),f},f=this&&this.__metadata||function(a,b){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(a,b)},g=c(2),h=c(117),i=c(106),j=function(a){function b(c,d,e,f){a.call(this,b.TEMPLATE),this.popupShowing=!1,this.valueColumn=f,this.column=c,this.dragSourceDropTarget=d,this.ghost=e}return d(b,a),b.prototype.init=function(){this.displayName=this.columnController.getDisplayNameForColumn(this.column),this.setupComponents(),this.ghost||this.gridOptionsWrapper.isFunctionsReadOnly()||this.addDragSource()},b.prototype.addDragSource=function(){var a=this,b={type:g.DragSourceType.ToolPanel,eElement:this.eText,dragItem:[this.column],dragItemName:this.displayName,dragSourceDropTarget:this.dragSourceDropTarget};this.dragAndDropService.addDragSource(b,!0),this.addDestroyFunc(function(){return a.dragAndDropService.removeDragSource(b)})},b.prototype.setupComponents=function(){this.setTextValue(),this.setupRemove(),this.ghost&&g.Utils.addCssClass(this.getGui(),"ag-column-drop-cell-ghost"),this.valueColumn&&!this.gridOptionsWrapper.isFunctionsReadOnly()&&this.addGuiEventListener("click",this.onShowAggFuncSelection.bind(this))},b.prototype.setupRemove=function(){var a=this;g.Utils.setVisible(this.btRemove,!this.gridOptionsWrapper.isFunctionsReadOnly()),this.addDestroyableEventListener(this.btRemove,"click",function(c){a.dispatchEvent(b.EVENT_COLUMN_REMOVE),c.stopPropagation()});var c=new g.TouchListener(this.btRemove);this.addDestroyableEventListener(c,g.TouchListener.EVENT_TAP,function(){a.dispatchEvent(b.EVENT_COLUMN_REMOVE)}),this.addDestroyFunc(c.destroy.bind(c))},b.prototype.setTextValue=function(){var a;if(this.valueColumn){var b=this.column.getAggFunc(),c="string"==typeof b?b:"agg";a=c+"("+this.displayName+")"}else a=this.displayName;this.eText.innerHTML=a},b.prototype.onShowAggFuncSelection=function(){var a=this;if(!this.popupShowing){this.popupShowing=!0;var b=new h.VirtualList,c=this.aggFuncService.getFuncNames();b.setModel({getRow:function(a){return c[a]},getRowCount:function(){return c.length}}),this.context.wireBean(b);var d=g.Utils.loadTemplate('<div class="ag-select-agg-func-popup"></div>');d.style.top="0px",d.style.left="0px",d.appendChild(b.getGui()),d.style.height="100px",d.style.width=this.getGui().clientWidth+"px";var e=function(){b.destroy(),a.popupShowing=!1},f=this.popupService.addAsModalPopup(d,!0,e);b.setComponentCreator(this.createAggSelect.bind(this,f)),this.popupService.positionPopupUnderComponent({eventSource:this.getGui(),ePopup:d,keepWithinBounds:!0}),b.refresh()}},b.prototype.createAggSelect=function(a,b){var c=this,d=function(){if(a(),c.gridOptionsWrapper.isFunctionsPassive()){var d={columns:[c.column],aggFunc:b};c.eventService.dispatchEvent(g.Events.EVENT_COLUMN_AGG_FUNC_CHANGE_REQUEST,d)}else c.columnController.setColumnAggFunc(c.column,b)},e=new k(d,b.toString());return e},
b.EVENT_COLUMN_REMOVE="columnRemove",b.TEMPLATE='<span class="ag-column-drop-cell">\n <span class="ag-column-drop-cell-text"></span>\n <span class="ag-column-drop-cell-button">✖</span>\n </span>',e([g.Autowired("dragAndDropService"),f("design:type",g.DragAndDropService)],b.prototype,"dragAndDropService",void 0),e([g.Autowired("columnController"),f("design:type",g.ColumnController)],b.prototype,"columnController",void 0),e([g.Autowired("gridPanel"),f("design:type",g.GridPanel)],b.prototype,"gridPanel",void 0),e([g.Autowired("context"),f("design:type",g.Context)],b.prototype,"context",void 0),e([g.Autowired("popupService"),f("design:type",g.PopupService)],b.prototype,"popupService",void 0),e([g.Autowired("aggFuncService"),f("design:type",i.AggFuncService)],b.prototype,"aggFuncService",void 0),e([g.Autowired("gridOptionsWrapper"),f("design:type",g.GridOptionsWrapper)],b.prototype,"gridOptionsWrapper",void 0),e([g.Autowired("eventService"),f("design:type",g.EventService)],b.prototype,"eventService",void 0),e([g.QuerySelector(".ag-column-drop-cell-text"),f("design:type",HTMLElement)],b.prototype,"eText",void 0),e([g.QuerySelector(".ag-column-drop-cell-button"),f("design:type",HTMLElement)],b.prototype,"btRemove",void 0),e([g.PostConstruct,f("design:type",Function),f("design:paramtypes",[]),f("design:returntype",void 0)],b.prototype,"init",null),b}(g.Component);b.ColumnComponent=j;var k=function(a){function b(b,c){a.call(this,'<div class="ag-select-agg-func-item"/>'),this.getGui().innerText=c,this.value=c,this.addGuiEventListener("click",b)}return d(b,a),b}(g.Component)},function(a,b,c){var d=this&&this.__extends||function(a,b){function d(){this.constructor=a}for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c]);a.prototype=null===b?Object.create(b):(d.prototype=b.prototype,new d)},e=this&&this.__decorate||function(a,b,c,d){var g,e=arguments.length,f=e<3?b:null===d?d=Object.getOwnPropertyDescriptor(b,c):d;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)f=Reflect.decorate(a,b,c,d);else for(var h=a.length-1;h>=0;h--)(g=a[h])&&(f=(e<3?g(f):e>3?g(b,c,f):g(b,c))||f);return e>3&&f&&Object.defineProperty(b,c,f),f},f=this&&this.__metadata||function(a,b){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(a,b)},g=c(2),h=c(103),i=c(130),j=c(126),k=c(131),l=c(132),m=function(a){function b(){a.call(this,b.TEMPLATE),this.initialised=!1}return d(b,a),b.prototype.setVisible=function(b){a.prototype.setVisible.call(this,b),b&&!this.initialised&&this.init()},b.prototype.init=function(){this.gridOptionsWrapper.isToolPanelSuppressPivotMode()||this.addComponent(new k.PivotModePanel),this.addComponent(new h.ColumnSelectPanel(!0)),this.gridOptionsWrapper.isToolPanelSuppressRowGroups()||this.addComponent(new i.RowGroupColumnsPanel(!1)),this.gridOptionsWrapper.isToolPanelSuppressValues()||this.addComponent(new l.ValuesColumnPanel(!1)),this.gridOptionsWrapper.isToolPanelSuppressPivots()||this.addComponent(new j.PivotColumnsPanel(!1)),this.initialised=!0},b.prototype.addComponent=function(a){this.context.wireBean(a),this.getGui().appendChild(a.getGui()),this.addDestroyFunc(function(){a.destroy()})},b.TEMPLATE='<div class="ag-tool-panel"></div>',e([g.Autowired("context"),f("design:type",g.Context)],b.prototype,"context",void 0),e([g.Autowired("gridOptionsWrapper"),f("design:type",g.GridOptionsWrapper)],b.prototype,"gridOptionsWrapper",void 0),b=e([g.Bean("toolPanel"),f("design:paramtypes",[])],b)}(g.Component);b.ToolPanelComp=m},function(a,b,c){var d=this&&this.__extends||function(a,b){function d(){this.constructor=a}for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c]);a.prototype=null===b?Object.create(b):(d.prototype=b.prototype,new d)},e=this&&this.__decorate||function(a,b,c,d){var g,e=arguments.length,f=e<3?b:null===d?d=Object.getOwnPropertyDescriptor(b,c):d;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)f=Reflect.decorate(a,b,c,d);else for(var h=a.length-1;h>=0;h--)(g=a[h])&&(f=(e<3?g(f):e>3?g(b,c,f):g(b,c))||f);return e>3&&f&&Object.defineProperty(b,c,f),f},f=this&&this.__metadata||function(a,b){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(a,b)},g=c(2),h=c(127),i=g.SvgFactory.getInstance(),j=function(a){function b(b){a.call(this,b,!1)}return d(b,a),b.prototype.passBeansUp=function(){a.prototype.setBeans.call(this,{gridOptionsWrapper:this.gridOptionsWrapper,eventService:this.eventService,context:this.context,loggerFactory:this.loggerFactory,dragAndDropService:this.dragAndDropService});var b=this.gridOptionsWrapper.getLocaleTextFunc(),c=b("rowGroupColumnsEmptyMessage","Drag here to group"),d=b("groups","Groups");a.prototype.init.call(this,{dragAndDropIcon:g.DragAndDropService.ICON_GROUP,icon:g.Utils.createIconNoSpan("rowGroupPanel",this.gridOptionsWrapper,null,i.createGroupIcon),emptyMessage:c,title:d}),this.addDestroyableEventListener(this.eventService,g.Events.EVENT_COLUMN_ROW_GROUP_CHANGED,this.refreshGui.bind(this))},b.prototype.isColumnDroppable=function(a){if(this.gridOptionsWrapper.isFunctionsReadOnly())return!1;if(!a.isPrimary())return!1;var b=a.isAllowRowGroup(),c=!a.isRowGroupActive();return b&&c},b.prototype.removeColumns=function(a){var b=this;if(this.gridOptionsWrapper.isFunctionsPassive())this.eventService.dispatchEvent(g.Events.EVENT_COLUMN_ROW_GROUP_REMOVE_REQUEST,{columns:a});else{var c=this.columnController.getRowGroupColumns();a.forEach(function(a){var d=c.indexOf(a)>=0;d&&(b.columnController.removeRowGroupColumn(a),b.columnController.setColumnVisible(a,!0))})}},b.prototype.getIconName=function(){return this.isPotentialDndColumns()?g.DragAndDropService.ICON_GROUP:g.DragAndDropService.ICON_NOT_ALLOWED},b.prototype.addColumns=function(a){this.gridOptionsWrapper.isFunctionsPassive()?this.eventService.dispatchEvent(g.Events.EVENT_COLUMN_ROW_GROUP_ADD_REQUEST,{columns:a}):this.columnController.addRowGroupColumns(a)},b.prototype.getExistingColumns=function(){return this.columnController.getRowGroupColumns()},e([g.Autowired("columnController"),f("design:type",g.ColumnController)],b.prototype,"columnController",void 0),e([g.Autowired("eventService"),f("design:type",g.EventService)],b.prototype,"eventService",void 0),e([g.Autowired("gridOptionsWrapper"),f("design:type",g.GridOptionsWrapper)],b.prototype,"gridOptionsWrapper",void 0),e([g.Autowired("context"),f("design:type",g.Context)],b.prototype,"context",void 0),e([g.Autowired("loggerFactory"),f("design:type",g.LoggerFactory)],b.prototype,"loggerFactory",void 0),e([g.Autowired("dragAndDropService"),f("design:type",g.DragAndDropService)],b.prototype,"dragAndDropService",void 0),e([g.PostConstruct,f("design:type",Function),f("design:paramtypes",[]),f("design:returntype",void 0)],b.prototype,"passBeansUp",null),b}(h.AbstractColumnDropPanel);b.RowGroupColumnsPanel=j},function(a,b,c){var d=this&&this.__extends||function(a,b){function d(){this.constructor=a}for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c]);a.prototype=null===b?Object.create(b):(d.prototype=b.prototype,new d)},e=this&&this.__decorate||function(a,b,c,d){var g,e=arguments.length,f=e<3?b:null===d?d=Object.getOwnPropertyDescriptor(b,c):d;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)f=Reflect.decorate(a,b,c,d);else for(var h=a.length-1;h>=0;h--)(g=a[h])&&(f=(e<3?g(f):e>3?g(b,c,f):g(b,c))||f);return e>3&&f&&Object.defineProperty(b,c,f),f},f=this&&this.__metadata||function(a,b){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(a,b)},g=c(2),h=function(a){function b(){a.call(this)}return d(b,a),b.prototype.createTemplate=function(){var a=this.gridOptionsWrapper.getLocaleTextFunc();return'<div class="ag-pivot-mode">\n <ag-checkbox class="ag-pivot-mode-select" label="'+a("pivotMode","Pivot Mode")+'"></ag-checkbox>\n </div>'},b.prototype.init=function(){this.setTemplate(this.createTemplate()),this.instantiate(this.context),this.cbPivotMode.setSelected(this.columnController.isPivotMode()),this.addDestroyableEventListener(this.cbPivotMode,g.AgCheckbox.EVENT_CHANGED,this.onBtPivotMode.bind(this)),this.addDestroyableEventListener(this.eventService,g.Events.EVENT_COLUMN_EVERYTHING_CHANGED,this.onPivotModeChanged.bind(this)),this.addDestroyableEventListener(this.eventService,g.Events.EVENT_COLUMN_PIVOT_MODE_CHANGED,this.onPivotModeChanged.bind(this))},b.prototype.onBtPivotMode=function(){var a=this.cbPivotMode.isSelected();a!==this.columnController.isPivotMode()&&this.columnController.setPivotMode(a)},b.prototype.onPivotModeChanged=function(){var a=this.columnController.isPivotMode();this.cbPivotMode.setSelected(a)},e([g.Autowired("columnController"),f("design:type",g.ColumnController)],b.prototype,"columnController",void 0),e([g.Autowired("eventService"),f("design:type",g.EventService)],b.prototype,"eventService",void 0),e([g.Autowired("context"),f("design:type",g.Context)],b.prototype,"context",void 0),e([g.Autowired("gridOptionsWrapper"),f("design:type",g.GridOptionsWrapper)],b.prototype,"gridOptionsWrapper",void 0),e([g.QuerySelector(".ag-pivot-mode-select"),f("design:type",g.AgCheckbox)],b.prototype,"cbPivotMode",void 0),e([g.PostConstruct,f("design:type",Function),f("design:paramtypes",[]),f("design:returntype",void 0)],b.prototype,"init",null),b}(g.Component);b.PivotModePanel=h},function(a,b,c){var d=this&&this.__extends||function(a,b){function d(){this.constructor=a}for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c]);a.prototype=null===b?Object.create(b):(d.prototype=b.prototype,new d)},e=this&&this.__decorate||function(a,b,c,d){var g,e=arguments.length,f=e<3?b:null===d?d=Object.getOwnPropertyDescriptor(b,c):d;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)f=Reflect.decorate(a,b,c,d);else for(var h=a.length-1;h>=0;h--)(g=a[h])&&(f=(e<3?g(f):e>3?g(b,c,f):g(b,c))||f);return e>3&&f&&Object.defineProperty(b,c,f),f},f=this&&this.__metadata||function(a,b){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(a,b)},g=c(2),h=c(127),i=g.SvgFactory.getInstance(),j=function(a){function b(b){a.call(this,b,!0)}return d(b,a),b.prototype.passBeansUp=function(){a.prototype.setBeans.call(this,{gridOptionsWrapper:this.gridOptionsWrapper,eventService:this.eventService,context:this.context,loggerFactory:this.loggerFactory,dragAndDropService:this.dragAndDropService});var b=this.gridOptionsWrapper.getLocaleTextFunc(),c=b("pivotColumnsEmptyMessage","Drag here to aggregate"),d=b("values","Values");a.prototype.init.call(this,{dragAndDropIcon:g.DragAndDropService.ICON_AGGREGATE,icon:g.Utils.createIconNoSpan("valuePanel",this.gridOptionsWrapper,null,i.createAggregationIcon),emptyMessage:c,title:d}),this.addDestroyableEventListener(this.eventService,g.Events.EVENT_COLUMN_VALUE_CHANGED,this.refreshGui.bind(this))},b.prototype.getIconName=function(){return this.isPotentialDndColumns()?g.DragAndDropService.ICON_AGGREGATE:g.DragAndDropService.ICON_NOT_ALLOWED},b.prototype.isColumnDroppable=function(a){if(this.gridOptionsWrapper.isFunctionsReadOnly())return!1;if(!a.isPrimary())return!1;var b=a.isAllowValue(),c=!a.isValueActive();return b&&c},b.prototype.removeColumns=function(a){if(this.gridOptionsWrapper.isFunctionsPassive())this.eventService.dispatchEvent(g.Events.EVENT_COLUMN_VALUE_REMOVE_REQUEST,{columns:a});else{var b=g.Utils.filter(a,function(a){return a.isValueActive()});this.columnController.removeValueColumns(b)}},b.prototype.addColumns=function(a){this.gridOptionsWrapper.isFunctionsPassive()?this.eventService.dispatchEvent(g.Events.EVENT_COLUMN_VALUE_ADD_REQUEST,{columns:a}):this.columnController.addValueColumns(a)},b.prototype.getExistingColumns=function(){return this.columnController.getValueColumns()},e([g.Autowired("columnController"),f("design:type",g.ColumnController)],b.prototype,"columnController",void 0),e([g.Autowired("eventService"),f("design:type",g.EventService)],b.prototype,"eventService",void 0),e([g.Autowired("gridOptionsWrapper"),f("design:type",g.GridOptionsWrapper)],b.prototype,"gridOptionsWrapper",void 0),e([g.Autowired("context"),f("design:type",g.Context)],b.prototype,"context",void 0),e([g.Autowired("loggerFactory"),f("design:type",g.LoggerFactory)],b.prototype,"loggerFactory",void 0),e([g.Autowired("dragAndDropService"),f("design:type",g.DragAndDropService)],b.prototype,"dragAndDropService",void 0),e([g.PostConstruct,f("design:type",Function),f("design:paramtypes",[]),f("design:returntype",void 0)],b.prototype,"passBeansUp",null),b}(h.AbstractColumnDropPanel);b.ValuesColumnPanel=j},function(a,b,c){var d=this&&this.__decorate||function(a,b,c,d){var g,e=arguments.length,f=e<3?b:null===d?d=Object.getOwnPropertyDescriptor(b,c):d;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)f=Reflect.decorate(a,b,c,d);else for(var h=a.length-1;h>=0;h--)(g=a[h])&&(f=(e<3?g(f):e>3?g(b,c,f):g(b,c))||f);return e>3&&f&&Object.defineProperty(b,c,f),f},e=this&&this.__metadata||function(a,b){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(a,b)},f=c(2),g=c(130),h=function(){function a(){}return a.prototype.create=function(){var a=new g.RowGroupColumnsPanel(!0);return this.context.wireBean(a),a},d([f.Autowired("context"),e("design:type",f.Context)],a.prototype,"context",void 0),a=d([f.Bean("rowGroupCompFactory"),e("design:paramtypes",[])],a)}();b.RowGroupCompFactory=h},function(a,b,c){var d=this&&this.__decorate||function(a,b,c,d){var g,e=arguments.length,f=e<3?b:null===d?d=Object.getOwnPropertyDescriptor(b,c):d;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)f=Reflect.decorate(a,b,c,d);else for(var h=a.length-1;h>=0;h--)(g=a[h])&&(f=(e<3?g(f):e>3?g(b,c,f):g(b,c))||f);return e>3&&f&&Object.defineProperty(b,c,f),f},e=this&&this.__metadata||function(a,b){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(a,b)},f=c(2),g=c(126),h=function(){function a(){}return a.prototype.create=function(){var a=new g.PivotColumnsPanel(!0);return this.context.wireBean(a),a},d([f.Autowired("context"),e("design:type",f.Context)],a.prototype,"context",void 0),a=d([f.Bean("pivotCompFactory"),e("design:paramtypes",[])],a)}();b.PivotCompFactory=h},function(a,b,c){function K(a){a.AggFuncService=D.AggFuncService,a.MD5=E.MD5,a.RichSelectCellEditor=t.RichSelectCellEditor,a.RichSelectRow=u.RichSelectRow,a.VirtualList=v.VirtualList,a.AggregationStage=g.AggregationStage,a.GroupStage=h.GroupStage,a.PivotColDefService=B.PivotColDefService,a.PivotStage=A.PivotStage,a.SetFilter=i.SetFilter,a.SetFilterListItem=F.SetFilterListItem,a.SetFilterModel=j.SetFilterModel,a.StatusBar=k.StatusBar,a.StatusItem=l.StatusItem,a.AbstractColumnDropPanel=w.AbstractColumnDropPanel,a.ColumnComponent=G.ColumnComponent,a.PivotColumnsPanel=x.PivotColumnsPanel,a.PivotModePanel=C.PivotModePanel,a.RowGroupColumnsPanel=q.RowGroupColumnsPanel,a.ValuesColumnPanel=H.ValuesColumnPanel,a.ToolPanelComp=y.ToolPanelComp,a.ColumnSelectPanel=d.ColumnSelectPanel,a.RenderedColumn=e.RenderedColumn,a.RenderedGroup=f.RenderedGroup,a.ViewportRowModel=s.ViewportRowModel,a.ClipboardService=m.ClipboardService,a.ContextMenuFactory=r.ContextMenuFactory,a.EnterpriseBoot=n.EnterpriseBoot,a.EnterpriseMenu=o.EnterpriseMenu,a.LicenseManager=z.LicenseManager,a.PivotCompFactory=I.PivotCompFactory,a.RangeController=p.RangeController,a.RowGroupCompFactory=J.RowGroupCompFactory}var d=c(103),e=c(105),f=c(104),g=c(110),h=c(109),i=c(114),j=c(115),k=c(122),l=c(123),m=c(108),n=c(113),o=c(102),p=c(107),q=c(130),r=c(124),s=c(125),t=c(118),u=c(119),v=c(117),w=c(127),x=c(126),y=c(129),z=c(120),A=c(111),B=c(112),C=c(131),D=c(106),E=c(121),F=c(116),G=c(128),H=c(132),I=c(134),J=c(133);b.populateClientExports=K},function(a,b,c){var d=c(137);"string"==typeof d&&(d=[[a.id,d,""]]);c(139)(d,{});d.locals&&(a.exports=d.locals)},function(a,b,c){b=a.exports=c(138)(),b.push([a.id,'ag-grid-ng2 {\n display: inline-block;\n}\n.ag-select-agg-func-popup {\n position: absolute;\n}\n.ag-body-no-select {\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n.ag-root {\n/* set to relative, so absolute popups appear relative to this */\n position: relative;\n -webkit-box-sizing: border-box;\n -moz-box-sizing: border-box;\n box-sizing: border-box;\n/* was getting some \'should be there\' scrolls, this sorts it out */\n overflow: hidden;\n}\n.ag-font-style {\n cursor: default;\n/* disable user mouse selection */\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n.ag-no-scrolls {\n white-space: nowrap;\n display: inline-block;\n}\n.ag-scrolls {\n height: 100%;\n}\n.ag-popup-backdrop {\n position: fixed;\n left: 0px;\n top: 0px;\n width: 100%;\n height: 100%;\n}\n.ag-header {\n position: absolute;\n top: 0px;\n left: 0px;\n white-space: nowrap;\n -webkit-box-sizing: border-box;\n -moz-box-sizing: border-box;\n box-sizing: border-box;\n overflow: hidden;\n width: 100%;\n}\n.ag-pinned-left-header {\n float: left;\n -webkit-box-sizing: border-box;\n -moz-box-sizing: border-box;\n box-sizing: border-box;\n display: inline-block;\n overflow: hidden;\n height: 100%;\n}\n.ag-pinned-right-header {\n float: right;\n -webkit-box-sizing: border-box;\n -moz-box-sizing: border-box;\n box-sizing: border-box;\n display: inline-block;\n overflow: hidden;\n height: 100%;\n}\n.ag-header-viewport {\n -webkit-box-sizing: border-box;\n -moz-box-sizing: border-box;\n box-sizing: border-box;\n overflow: hidden;\n height: 100%;\n}\n.ag-scrolls .ag-header-row {\n position: absolute;\n}\n.ag-scrolls .ag-header-container {\n -webkit-box-sizing: border-box;\n -moz-box-sizing: border-box;\n box-sizing: border-box;\n position: relative;\n white-space: nowrap;\n height: 100%;\n}\n.ag-no-scrolls .ag-header-container {\n white-space: nowrap;\n}\n.ag-header-overlay {\n display: block;\n position: absolute;\n}\n.ag-header-cell {\n -webkit-box-sizing: border-box;\n -moz-box-sizing: border-box;\n box-sizing: border-box;\n vertical-align: bottom;\n text-align: center;\n display: inline-block;\n height: 100%;\n position: absolute;\n}\n.ag-dnd-ghost {\n font-size: 14px;\n font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;\n position: absolute;\n background: #e5e5e5;\n border: 1px solid #000;\n cursor: move;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n -webkit-box-sizing: border-box;\n -moz-box-sizing: border-box;\n box-sizing: border-box;\n overflow: hidden;\n -o-text-overflow: ellipsis;\n text-overflow: ellipsis;\n padding: 3px;\n line-height: 1.4;\n}\n.ag-dnd-ghost-icon {\n display: inline-block;\n float: left;\n padding-left: 2px;\n padding-right: 2px;\n}\n.ag-dnd-ghost-label {\n display: inline-block;\n}\n.ag-header-group-cell {\n height: 100%;\n display: inline-block;\n -webkit-box-sizing: border-box;\n -moz-box-sizing: border-box;\n box-sizing: border-box;\n -o-text-overflow: ellipsis;\n text-overflow: ellipsis;\n overflow: hidden;\n position: absolute;\n}\n.ag-header-group-cell-label {\n -o-text-overflow: ellipsis;\n text-overflow: ellipsis;\n overflow: hidden;\n}\n.ag-header-cell-label {\n -o-text-overflow: ellipsis;\n text-overflow: ellipsis;\n overflow: hidden;\n}\n.ag-header-cell-resize {\n height: 100%;\n width: 4px;\n float: right;\n cursor: col-resize;\n}\n.ag-header-expand-icon {\n padding-left: 4px;\n}\n.ag-header-cell-menu-button {\n float: right;\n}\n.ag-overlay-panel {\n display: table;\n width: 100%;\n height: 100%;\n pointer-events: none;\n}\n.ag-overlay-wrapper {\n display: table-cell;\n vertical-align: middle;\n text-align: center;\n}\n.ag-bl-overlay {\n pointer-events: none;\n position: absolute;\n height: 100%;\n width: 100%;\n top: 0px;\n left: 0px;\n}\n.ag-bl-full-height {\n height: 100%;\n overflow: auto;\n position: relative;\n}\n.ag-bl-full-height-west {\n height: 100%;\n float: left;\n}\n.ag-bl-full-height-east {\n height: 100%;\n float: right;\n}\n.ag-bl-full-height-center {\n height: 100%;\n}\n.ag-bl-normal {\n height: 100%;\n position: relative;\n}\n.ag-bl-normal-center-row {\n height: 100%;\n overflow: hidden;\n}\n.ag-bl-normal-west {\n height: 100%;\n float: left;\n}\n.ag-bl-normal-east {\n height: 100%;\n float: right;\n}\n.ag-bl-normal-center {\n height: 100%;\n}\n.ag-bl-dont-fill {\n position: relative;\n}\n.ag-body {\n height: 100%;\n width: 100%;\n -webkit-box-sizing: border-box;\n -moz-box-sizing: border-box;\n box-sizing: border-box;\n position: absolute;\n}\n.ag-floating-top {\n position: absolute;\n left: 0px;\n width: 100%;\n white-space: nowrap;\n -webkit-box-sizing: border-box;\n -moz-box-sizing: border-box;\n box-sizing: border-box;\n overflow: hidden;\n}\n.ag-pinned-left-floating-top {\n float: left;\n -webkit-box-sizing: border-box;\n -moz-box-sizing: border-box;\n box-sizing: border-box;\n display: inline-block;\n overflow: hidden;\n height: 100%;\n}\n.ag-pinned-right-floating-top {\n float: right;\n -webkit-box-sizing: border-box;\n -moz-box-sizing: border-box;\n box-sizing: border-box;\n display: inline-block;\n overflow: hidden;\n height: 100%;\n}\n.ag-floating-top-viewport {\n -webkit-box-sizing: border-box;\n -moz-box-sizing: border-box;\n box-sizing: border-box;\n overflow: hidden;\n height: 100%;\n}\n.ag-floating-top-container {\n -webkit-box-sizing: border-box;\n -moz-box-sizing: border-box;\n box-sizing: border-box;\n position: relative;\n white-space: nowrap;\n}\n.ag-floating-bottom {\n position: absolute;\n left: 0px;\n width: 100%;\n white-space: nowrap;\n -webkit-box-sizing: border-box;\n -moz-box-sizing: border-box;\n box-sizing: border-box;\n overflow: hidden;\n}\n.ag-pinned-left-floating-bottom {\n float: left;\n -webkit-box-sizing: border-box;\n -moz-box-sizing: border-box;\n box-sizing: border-box;\n display: inline-block;\n overflow: hidden;\n height: 100%;\n}\n.ag-pinned-right-floating-bottom {\n float: right;\n -webkit-box-sizing: border-box;\n -moz-box-sizing: border-box;\n box-sizing: border-box;\n display: inline-block;\n overflow: hidden;\n height: 100%;\n}\n.ag-floating-bottom-viewport {\n -webkit-box-sizing: border-box;\n -moz-box-sizing: border-box;\n box-sizing: border-box;\n overflow: hidden;\n height: 100%;\n}\n.ag-floating-bottom-container {\n -webkit-box-sizing: border-box;\n -moz-box-sizing: border-box;\n box-sizing: border-box;\n position: relative;\n white-space: nowrap;\n}\n.ag-pinned-left-cols-viewport {\n float: left;\n overflow: hidden;\n}\n.ag-pinned-left-cols-container {\n display: inline-block;\n position: relative;\n}\n.ag-pinned-right-cols-viewport {\n float: right;\n overflow-x: hidden;\n overflow-y: auto;\n}\n.ag-pinned-right-cols-container {\n display: inline-block;\n position: relative;\n}\n.ag-body-viewport-wrapper {\n height: 100%;\n}\n.ag-body-viewport {\n overflow-x: auto;\n overflow-y: auto;\n height: 100%;\n}\n.ag-full-width-viewport {\n height: 100%;\n width: 100%;\n position: absolute;\n top: 0px;\n left: 0px;\n display: inline;\n pointer-events: none;\n -webkit-box-sizing: border-box;\n -moz-box-sizing: border-box;\n box-sizing: border-box;\n overflow: hidden;\n}\n.ag-full-width-container {\n overflow: hidden;\n position: relative;\n width: 100%;\n}\n.ag-floating-bottom-full-width-container {\n height: 100%;\n width: 100%;\n position: absolute;\n top: 0px;\n left: 0px;\n pointer-events: none;\n overflow: hidden;\n display: inline;\n}\n.ag-floating-top-full-width-container {\n height: 100%;\n width: 100%;\n position: absolute;\n top: 0px;\n left: 0px;\n pointer-events: none;\n overflow: hidden;\n display: inline;\n}\n.ag-full-width-row {\n pointer-events: all;\n overflow: hidden;\n}\n.ag-scrolls .ag-body-container {\n position: relative;\n display: inline-block;\n}\n.ag-scrolls .ag-row {\n white-space: nowrap;\n position: absolute;\n width: 100%;\n}\n.ag-no-scrolls .ag-row {\n position: relative;\n}\n.ag-column-drop {\n width: 100%;\n -webkit-box-sizing: border-box;\n -moz-box-sizing: border-box;\n box-sizing: border-box;\n}\n.ag-column-drop-vertical .ag-column-drop-cell {\n display: block;\n}\n.ag-column-drop-vertical .ag-column-drop-empty-message {\n display: block;\n}\n.ag-column-drop-vertical .ag-column-drop-cell-button {\n float: right;\n line-height: 16px;\n}\n.ag-column-drop-horizontal {\n white-space: nowrap;\n}\n.ag-cell {\n display: inline-block;\n white-space: nowrap;\n height: 100%;\n -webkit-box-sizing: border-box;\n -moz-box-sizing: border-box;\n box-sizing: border-box;\n -o-text-overflow: ellipsis;\n text-overflow: ellipsis;\n overflow: hidden;\n position: absolute;\n}\n.ag-fade-out {\n opacity: 1;\n -ms-filter: none;\n filter: none;\n margin-right: 5px;\n -webkit-transition: opacity 3s, margin-right 3s;\n -moz-transition: opacity 3s, margin-right 3s;\n -o-transition: opacity 3s, margin-right 3s;\n -ms-transition: opacity 3s, margin-right 3s;\n transition: opacity 3s, margin-right 3s;\n -webkit-transition-timing-function: linear;\n -moz-transition-timing-function: linear;\n -o-transition-timing-function: linear;\n -ms-transition-timing-function: linear;\n transition-timing-function: linear;\n}\n.ag-fade-out-end {\n opacity: 0;\n -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";\n filter: alpha(opacity=0);\n margin-right: 10px;\n}\n.ag-cell-edit-input {\n width: 100%;\n height: 100%;\n}\n.ag-group-cell-entire-row {\n width: 100%;\n display: inline-block;\n white-space: nowrap;\n height: 100%;\n -webkit-box-sizing: border-box;\n -moz-box-sizing: border-box;\n box-sizing: border-box;\n -o-text-overflow: ellipsis;\n text-overflow: ellipsis;\n overflow: hidden;\n}\n.ag-footer-cell-entire-row {\n width: 100%;\n display: inline-block;\n white-space: nowrap;\n height: 100%;\n -webkit-box-sizing: border-box;\n -moz-box-sizing: border-box;\n box-sizing: border-box;\n -o-text-overflow: ellipsis;\n text-overflow: ellipsis;\n overflow: hidden;\n}\n.ag-large .ag-root {\n font-size: 20px;\n}\n.ag-popup-editor {\n position: absolute;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n.ag-menu {\n position: absolute;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n.ag-menu-column-select-wrapper {\n width: 200px;\n height: 300px;\n overflow: auto;\n}\n.ag-menu-list {\n display: table;\n border-collapse: collapse;\n}\n.ag-menu-option {\n display: table-row;\n}\n.ag-menu-option-text {\n display: table-cell;\n}\n.ag-menu-option-shortcut {\n display: table-cell;\n}\n.ag-menu-option-icon {\n display: table-cell;\n}\n.ag-menu-option-popup-pointer {\n display: table-cell;\n}\n.ag-menu-separator {\n display: table-row;\n}\n.ag-menu-separator-cell {\n display: table-cell;\n}\n.ag-virtual-list-viewport {\n overflow-x: auto;\n height: 100%;\n width: 100%;\n}\n.ag-virtual-list-container {\n position: relative;\n overflow: hidden;\n}\n.ag-rich-select {\n outline: none;\n}\n.ag-rich-select-list {\n width: 200px;\n height: 200px;\n}\n.ag-set-filter-list {\n width: 200px;\n height: 200px;\n}\n.ag-set-filter-item {\n -o-text-overflow: ellipsis;\n text-overflow: ellipsis;\n overflow: hidden;\n white-space: nowrap;\n}\n.ag-virtual-list-item {\n position: absolute;\n width: 100%;\n}\n.ag-filter-filter {\n width: 170px;\n margin: 4px;\n}\n.ag-filter-select {\n width: 110px;\n margin: 4px 4px 0px 4px;\n}\n.ag-no-vertical-scroll .ag-scrolls {\n height: unset;\n}\n.ag-no-vertical-scroll .ag-body {\n height: unset;\n}\n.ag-no-vertical-scroll .ag-body-viewport-wrapper {\n height: unset;\n}\n.ag-no-vertical-scroll .ag-body-viewport {\n height: unset;\n}\n.ag-list-selection {\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n cursor: default;\n}\n.ag-tool-panel {\n width: 200px;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n cursor: default;\n height: 100%;\n -webkit-box-sizing: border-box;\n -moz-box-sizing: border-box;\n box-sizing: border-box;\n overflow: auto;\n}\n.ag-column-select-indent {\n display: inline-block;\n}\n.ag-column-select-column {\n margin-left: 14px;\n white-space: nowrap;\n}\n.ag-column-select-column-group {\n white-space: nowrap;\n}\n.ag-hidden {\n display: none;\n}\n.ag-faded {\n opacity: 0.3;\n -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=30)";\n filter: alpha(opacity=30);\n}\n.ag-width-half {\n width: 50%;\n display: inline-block;\n}\n.ag-shake-left-to-right {\n -webkit-animation-name: ag-shake-left-to-right;\n -moz-animation-name: ag-shake-left-to-right;\n -o-animation-name: ag-shake-left-to-right;\n -ms-animation-name: ag-shake-left-to-right;\n animation-name: ag-shake-left-to-right;\n -webkit-animation-duration: 0.2s;\n -moz-animation-duration: 0.2s;\n -o-animation-duration: 0.2s;\n -ms-animation-duration: 0.2s;\n animation-duration: 0.2s;\n -webkit-animation-iteration-count: infinite;\n -moz-animation-iteration-count: infinite;\n -o-animation-iteration-count: infinite;\n -ms-animation-iteration-count: infinite;\n animation-iteration-count: infinite;\n -webkit-animation-direction: alternate;\n -moz-animation-direction: alternate;\n -o-animation-direction: alternate;\n -ms-animation-direction: alternate;\n animation-direction: alternate;\n}\n@-moz-keyframes ag-shake-left-to-right {\n from {\n padding-left: 6px;\n padding-right: 2px;\n }\n to {\n padding-left: 2px;\n padding-right: 6px;\n }\n}\n@-webkit-keyframes ag-shake-left-to-right {\n from {\n padding-left: 6px;\n padding-right: 2px;\n }\n to {\n padding-left: 2px;\n padding-right: 6px;\n }\n}\n@-o-keyframes ag-shake-left-to-right {\n from {\n padding-left: 6px;\n padding-right: 2px;\n }\n to {\n padding-left: 2px;\n padding-right: 6px;\n }\n}\n@keyframes ag-shake-left-to-right {\n from {\n padding-left: 6px;\n padding-right: 2px;\n }\n to {\n padding-left: 2px;\n padding-right: 6px;\n }\n}\n',""])},function(a,b){a.exports=function(){var a=[];return a.toString=function(){for(var b=[],c=0;c<this.length;c++){var d=this[c];d[2]?b.push("@media "+d[2]+"{"+d[1]+"}"):b.push(d[1])}return b.join("")},a.i=function(b,c){"string"==typeof b&&(b=[[null,b,""]]);for(var d={},e=0;e<this.length;e++){var f=this[e][0];"number"==typeof f&&(d[f]=!0)}for(e=0;e<b.length;e++){var g=b[e];"number"==typeof g[0]&&d[g[0]]||(c&&!g[2]?g[2]=c:c&&(g[2]="("+g[2]+") and ("+c+")"),a.push(g))}},a}},function(a,b,c){function k(a,b){for(var c=0;c<a.length;c++){var e=a[c],f=d[e.id];if(f){f.refs++;for(var g=0;g<f.parts.length;g++)f.parts[g](e.parts[g]);for(;g<e.parts.length;g++)f.parts.push(q(e.parts[g],b))}else{for(var h=[],g=0;g<e.parts.length;g++)h.push(q(e.parts[g],b));d[e.id]={id:e.id,refs:1,parts:h}}}}function l(a){for(var b=[],c={},d=0;d<a.length;d++){var e=a[d],f=e[0],g=e[1],h=e[2],i=e[3],j={css:g,media:h,sourceMap:i};c[f]?c[f].parts.push(j):b.push(c[f]={id:f,parts:[j]})}return b}function m(a,b){var c=g(),d=j[j.length-1];if("top"===a.insertAt)d?d.nextSibling?c.insertBefore(b,d.nextSibling):c.appendChild(b):c.insertBefore(b,c.firstChild),j.push(b);else{if("bottom"!==a.insertAt)throw new Error("Invalid value for parameter 'insertAt'. Must be 'top' or 'bottom'.");c.appendChild(b)}}function n(a){a.parentNode.removeChild(a);var b=j.indexOf(a);b>=0&&j.splice(b,1)}function o(a){var b=document.createElement("style");return b.type="text/css",m(a,b),b}function p(a){var b=document.createElement("link");return b.rel="stylesheet",m(a,b),b}function q(a,b){var c,d,e;if(b.singleton){var f=i++;c=h||(h=o(b)),d=s.bind(null,c,f,!1),
e=s.bind(null,c,f,!0)}else a.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(c=p(b),d=u.bind(null,c),e=function(){n(c),c.href&&URL.revokeObjectURL(c.href)}):(c=o(b),d=t.bind(null,c),e=function(){n(c)});return d(a),function(c){if(c){if(c.css===a.css&&c.media===a.media&&c.sourceMap===a.sourceMap)return;d(a=c)}else e()}}function s(a,b,c,d){var e=c?"":d.css;if(a.styleSheet)a.styleSheet.cssText=r(b,e);else{var f=document.createTextNode(e),g=a.childNodes;g[b]&&a.removeChild(g[b]),g.length?a.insertBefore(f,g[b]):a.appendChild(f)}}function t(a,b){var c=b.css,d=b.media;b.sourceMap;if(d&&a.setAttribute("media",d),a.styleSheet)a.styleSheet.cssText=c;else{for(;a.firstChild;)a.removeChild(a.firstChild);a.appendChild(document.createTextNode(c))}}function u(a,b){var c=b.css,e=(b.media,b.sourceMap);e&&(c+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(e))))+" */");var f=new Blob([c],{type:"text/css"}),g=a.href;a.href=URL.createObjectURL(f),g&&URL.revokeObjectURL(g)}var d={},e=function(a){var b;return function(){return"undefined"==typeof b&&(b=a.apply(this,arguments)),b}},f=e(function(){return/msie [6-9]\b/.test(window.navigator.userAgent.toLowerCase())}),g=e(function(){return document.head||document.getElementsByTagName("head")[0]}),h=null,i=0,j=[];a.exports=function(a,b){b=b||{},"undefined"==typeof b.singleton&&(b.singleton=f()),"undefined"==typeof b.insertAt&&(b.insertAt="bottom");var c=l(a);return k(c,b),function(e){for(var f=[],g=0;g<c.length;g++){var h=c[g],i=d[h.id];i.refs--,f.push(i)}if(e){var j=l(e);k(j,b)}for(var g=0;g<f.length;g++){var i=f[g];if(0===i.refs){for(var m=0;m<i.parts.length;m++)i.parts[m]();delete d[i.id]}}}};var r=function(){var a=[];return function(b,c){return a[b]=c,a.filter(Boolean).join("\n")}}()},function(a,b,c){var d=c(141);"string"==typeof d&&(d=[[a.id,d,""]]);c(139)(d,{});d.locals&&(a.exports=d.locals)},function(a,b,c){b=a.exports=c(138)(),b.push([a.id,'.ag-fresh {\n line-height: 1.4;\n font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;\n font-size: 14px;\n color: #222;\n/* this is for the rowGroupPanel, that appears along the top of the grid */\n/* this is for the column drops that appear in the toolPanel */\n}\n.ag-fresh img {\n vertical-align: middle;\n border: 0;\n}\n.ag-fresh .ag-root {\n border: 1px solid #808080;\n}\n.ag-fresh .ag-cell-not-inline-editing {\n padding: 2px;\n}\n.ag-fresh .ag-cell-range-selected-1:not(.ag-cell-focus) {\n background-color: rgba(120,120,120,0.4);\n}\n.ag-fresh .ag-cell-range-selected-2:not(.ag-cell-focus) {\n background-color: rgba(80,80,80,0.4);\n}\n.ag-fresh .ag-cell-range-selected-3:not(.ag-cell-focus) {\n background-color: rgba(40,40,40,0.4);\n}\n.ag-fresh .ag-cell-range-selected-4:not(.ag-cell-focus) {\n background-color: rgba(0,0,0,0.4);\n}\n.ag-fresh .ag-column-moving .ag-cell {\n -webkit-transition: left 0.2s;\n -moz-transition: left 0.2s;\n -o-transition: left 0.2s;\n -ms-transition: left 0.2s;\n transition: left 0.2s;\n}\n.ag-fresh .ag-column-moving .ag-header-cell {\n -webkit-transition: left 0.2s;\n -moz-transition: left 0.2s;\n -o-transition: left 0.2s;\n -ms-transition: left 0.2s;\n transition: left 0.2s;\n}\n.ag-fresh .ag-column-moving .ag-header-group-cell {\n -webkit-transition: left 0.2s;\n -moz-transition: left 0.2s;\n -o-transition: left 0.2s;\n -ms-transition: left 0.2s;\n transition: left 0.2s;\n}\n.ag-fresh .ag-cell-focus {\n border: 1px solid #a9a9a9;\n}\n.ag-fresh .ag-cell-no-focus {\n border-right: 1px dotted #808080;\n border-top: 1px solid transparent;\n border-left: 1px solid transparent;\n border-bottom: 1px solid transparent;\n}\n.ag-fresh .ag-cell-first-right-pinned {\n border-left: 1px solid #808080;\n}\n.ag-fresh .ag-cell-last-left-pinned {\n border-right: 1px solid #808080;\n}\n.ag-fresh .ag-cell-highlight {\n border: 1px solid #006400;\n}\n.ag-fresh .ag-cell-highlight-animation {\n -webkit-transition: border 1s;\n -moz-transition: border 1s;\n -o-transition: border 1s;\n -ms-transition: border 1s;\n transition: border 1s;\n}\n.ag-fresh .ag-value-change-delta {\n padding-right: 2px;\n}\n.ag-fresh .ag-value-change-delta-up {\n color: #006400;\n}\n.ag-fresh .ag-value-change-delta-down {\n color: #8b0000;\n}\n.ag-fresh .ag-value-change-value {\n background-color: transparent;\n border-radius: 1px;\n padding-left: 1px;\n padding-right: 1px;\n -webkit-transition: background-color 1s;\n -moz-transition: background-color 1s;\n -o-transition: background-color 1s;\n -ms-transition: background-color 1s;\n transition: background-color 1s;\n}\n.ag-fresh .ag-value-change-value-highlight {\n background-color: #cec;\n -webkit-transition: background-color 0.1s;\n -moz-transition: background-color 0.1s;\n -o-transition: background-color 0.1s;\n -ms-transition: background-color 0.1s;\n transition: background-color 0.1s;\n}\n.ag-fresh .ag-rich-select {\n font-size: 14px;\n border: 1px solid #808080;\n background-color: #fff;\n}\n.ag-fresh .ag-rich-select-value {\n padding: 2px;\n}\n.ag-fresh .ag-rich-select-list {\n border-top: 1px solid #d3d3d3;\n}\n.ag-fresh .ag-rich-select-row {\n padding: 2px;\n}\n.ag-fresh .ag-rich-select-row-selected {\n background-color: #bde2e5;\n}\n.ag-fresh .ag-large-text {\n border: 1px solid #808080;\n}\n.ag-fresh .ag-header {\n color: #000;\n background: -webkit-linear-gradient(#fff, #d3d3d3);\n background: -moz-linear-gradient(#fff, #d3d3d3);\n background: -o-linear-gradient(#fff, #d3d3d3);\n background: -ms-linear-gradient(#fff, #d3d3d3);\n background: linear-gradient(#fff, #d3d3d3);\n border-bottom: 1px solid #808080;\n font-weight: normal;\n}\n.ag-fresh .ag-header-icon {\n color: #000;\n stroke: none;\n fill: #000;\n}\n.ag-fresh .ag-no-scrolls .ag-header-container {\n background: -webkit-linear-gradient(#fff, #d3d3d3);\n background: -moz-linear-gradient(#fff, #d3d3d3);\n background: -o-linear-gradient(#fff, #d3d3d3);\n background: -ms-linear-gradient(#fff, #d3d3d3);\n background: linear-gradient(#fff, #d3d3d3);\n border-bottom: 1px solid #808080;\n}\n.ag-fresh .ag-header-cell {\n border-right: 1px solid #808080;\n}\n.ag-fresh .ag-header-cell-moving .ag-header-cell-label {\n opacity: 0.5;\n -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";\n filter: alpha(opacity=50);\n}\n.ag-fresh .ag-header-cell-moving {\n background-color: #bebebe;\n}\n.ag-fresh .ag-header-group-cell {\n border-right: 1px solid #808080;\n}\n.ag-fresh .ag-header-group-cell-with-group {\n border-bottom: 1px solid #808080;\n}\n.ag-fresh .ag-header-cell-label {\n padding: 4px 2px 4px 2px;\n}\n.ag-fresh .ag-header-cell-text {\n padding-left: 2px;\n}\n.ag-fresh .ag-header-group-cell-label {\n padding: 4px;\n padding-left: 10px;\n}\n.ag-fresh .ag-header-group-text {\n margin-right: 2px;\n}\n.ag-fresh .ag-header-cell-menu-button {\n padding: 2px;\n margin-top: 4px;\n border: 1px solid transparent;\n border-radius: 3px;\n -webkit-box-sizing: content-box /* When using bootstrap, box-sizing was set to \'border-box\' */;\n -moz-box-sizing: content-box /* When using bootstrap, box-sizing was set to \'border-box\' */;\n box-sizing: content-box /* When using bootstrap, box-sizing was set to \'border-box\' */;\n line-height: 0px /* normal line height, a space was appearing below the menu button */;\n}\n.ag-fresh .ag-pinned-right-header {\n border-left: 1px solid #808080;\n}\n.ag-fresh .ag-header-cell-menu-button:hover {\n border: 1px solid #808080;\n}\n.ag-fresh .ag-body {\n background-color: #f6f6f6;\n}\n.ag-fresh .ag-row {\n -webkit-transition: background-color 0.1s;\n -moz-transition: background-color 0.1s;\n -o-transition: background-color 0.1s;\n -ms-transition: background-color 0.1s;\n transition: background-color 0.1s;\n}\n.ag-fresh .ag-row-odd {\n background-color: #f6f6f6;\n}\n.ag-fresh .ag-row-even {\n background-color: #fff;\n}\n.ag-fresh .ag-row-selected {\n background-color: #b0e0e6;\n}\n.ag-fresh .ag-floating-top .ag-row {\n background-color: #f0f0f0;\n}\n.ag-fresh .ag-floating-bottom .ag-row {\n background-color: #f0f0f0;\n}\n.ag-fresh .ag-overlay-loading-wrapper {\n background-color: rgba(255,255,255,0.5);\n}\n.ag-fresh .ag-overlay-loading-center {\n background-color: #fff;\n border: 1px solid #808080;\n border-radius: 10px;\n padding: 10px;\n color: #000;\n}\n.ag-fresh .ag-overlay-no-rows-center {\n background-color: #fff;\n border: 1px solid #808080;\n border-radius: 10px;\n padding: 10px;\n}\n.ag-fresh .ag-group-cell-entire-row {\n background-color: #f6f6f6;\n padding: 2px;\n}\n.ag-fresh .ag-footer-cell-entire-row {\n background-color: #f6f6f6;\n padding: 2px;\n}\n.ag-fresh .ag-group-cell {\n font-style: italic;\n}\n.ag-fresh .ag-group-expanded {\n padding-right: 4px;\n}\n.ag-fresh .ag-group-contracted {\n padding-right: 4px;\n}\n.ag-fresh .ag-group-value {\n padding-right: 2px;\n}\n.ag-fresh .ag-group-checkbox {\n padding-right: 2px;\n}\n.ag-fresh .ag-footer-cell {\n font-style: italic;\n}\n.ag-fresh .ag-menu {\n border: 1px solid #808080;\n background-color: #f6f6f6;\n cursor: default;\n font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;\n font-size: 14px;\n}\n.ag-fresh .ag-menu .ag-tab-header {\n background-color: #e6e6e6;\n}\n.ag-fresh .ag-menu .ag-tab {\n padding: 6px 8px 6px 8px;\n margin: 2px 2px 0px 2px;\n display: inline-block;\n border-right: 1px solid transparent;\n border-left: 1px solid transparent;\n border-top: 1px solid transparent;\n border-top-right-radius: 2px;\n border-top-left-radius: 2px;\n}\n.ag-fresh .ag-menu .ag-tab-selected {\n background-color: #f6f6f6;\n border-right: 1px solid #d3d3d3;\n border-left: 1px solid #d3d3d3;\n border-top: 1px solid #d3d3d3;\n}\n.ag-fresh .ag-menu-separator {\n border-top: 1px solid #d3d3d3;\n}\n.ag-fresh .ag-menu-option-active {\n background-color: #bde2e5;\n}\n.ag-fresh .ag-menu-option-icon {\n padding: 2px 4px 2px 4px;\n vertical-align: middle;\n}\n.ag-fresh .ag-menu-option-text {\n padding: 2px 4px 2px 4px;\n vertical-align: middle;\n}\n.ag-fresh .ag-menu-option-shortcut {\n padding: 2px 2px 2px 20px;\n vertical-align: middle;\n}\n.ag-fresh .ag-menu-option-popup-pointer {\n padding: 2px 4px 2px 4px;\n vertical-align: middle;\n}\n.ag-fresh .ag-menu-option-disabled {\n opacity: 0.5;\n -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";\n filter: alpha(opacity=50);\n}\n.ag-fresh .ag-menu-column-select-wrapper {\n margin: 2px;\n}\n.ag-fresh .ag-filter-checkbox {\n position: relative;\n top: 2px;\n left: 2px;\n}\n.ag-fresh .ag-filter-header-container {\n border-bottom: 1px solid #d3d3d3;\n}\n.ag-fresh .ag-filter-apply-panel {\n border-top: 1px solid #d3d3d3;\n padding: 2px;\n}\n.ag-fresh .ag-filter-value {\n margin-left: 4px;\n}\n.ag-fresh .ag-selection-checkbox {\n padding-right: 4px;\n}\n.ag-fresh .ag-paging-panel {\n padding: 4px;\n}\n.ag-fresh .ag-paging-button {\n margin-left: 4px;\n margin-right: 4px;\n}\n.ag-fresh .ag-paging-row-summary-panel {\n display: inline-block;\n width: 300px;\n}\n.ag-fresh .ag-tool-panel {\n background-color: #f6f6f6;\n border-right: 1px solid #808080;\n border-bottom: 1px solid #808080;\n border-top: 1px solid #808080;\n color: #222;\n}\n.ag-fresh .ag-status-bar {\n color: #222;\n background-color: #f6f6f6;\n font-size: 14px;\n height: 22px;\n border-bottom: 1px solid #808080;\n border-left: 1px solid #808080;\n border-right: 1px solid #808080;\n padding: 2px;\n}\n.ag-fresh .ag-status-bar-aggregations {\n float: right;\n}\n.ag-fresh .ag-status-bar-item {\n padding-left: 10px;\n}\n.ag-fresh .ag-column-drop-cell {\n background: -webkit-linear-gradient(#fff, #d3d3d3);\n background: -moz-linear-gradient(#fff, #d3d3d3);\n background: -o-linear-gradient(#fff, #d3d3d3);\n background: -ms-linear-gradient(#fff, #d3d3d3);\n background: linear-gradient(#fff, #d3d3d3);\n color: #000;\n border: 1px solid #808080;\n}\n.ag-fresh .ag-column-drop-cell-ghost {\n opacity: 0.5;\n -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";\n filter: alpha(opacity=50);\n}\n.ag-fresh .ag-column-drop-cell-text {\n padding-left: 2px;\n padding-right: 2px;\n}\n.ag-fresh .ag-column-drop-cell-button {\n border: 1px solid transparent;\n padding-left: 2px;\n padding-right: 2px;\n border-radius: 3px;\n}\n.ag-fresh .ag-column-drop-cell-button:hover {\n border: 1px solid #808080;\n}\n.ag-fresh .ag-column-drop-empty-message {\n padding-left: 2px;\n padding-right: 2px;\n color: #808080;\n}\n.ag-fresh .ag-column-drop-icon {\n padding-right: 4px;\n}\n.ag-fresh .ag-column-drop {\n background-color: #f6f6f6;\n}\n.ag-fresh .ag-column-drop-horizontal {\n padding: 4px 4px 4px 4px;\n border-top: 1px solid #808080;\n border-left: 1px solid #808080;\n border-right: 1px solid #808080;\n}\n.ag-fresh .ag-column-drop-horizontal .ag-column-drop-cell {\n padding: 2px;\n}\n.ag-fresh .ag-column-drop-vertical {\n padding: 4px 4px 10px 4px;\n border-bottom: 1px solid #808080;\n}\n.ag-fresh .ag-column-drop-vertical .ag-column-drop-cell {\n margin-top: 2px;\n}\n.ag-fresh .ag-column-drop-vertical .ag-column-drop-empty-message {\n text-align: center;\n padding: 5px;\n}\n.ag-fresh .ag-pivot-mode {\n border-bottom: 1px solid #808080;\n padding: 4px;\n background-color: #f6f6f6;\n}\n.ag-fresh .ag-tool-panel .ag-column-select-panel {\n border-bottom: 1px solid #808080;\n}\n.ag-fresh .ag-select-agg-func-popup {\n cursor: default;\n position: absolute;\n font-size: 14px;\n background-color: #fff;\n border: 1px solid #808080;\n}\n.ag-fresh .ag-select-agg-func-item {\n padding-left: 2px;\n padding-right: 2px;\n}\n.ag-fresh .ag-select-agg-func-item:hover {\n background-color: #bde2e5;\n}\n',""])},function(a,b,c){var d=c(143);"string"==typeof d&&(d=[[a.id,d,""]]);c(139)(d,{});d.locals&&(a.exports=d.locals)},function(a,b,c){b=a.exports=c(138)(),b.push([a.id,'.ag-dark {\n line-height: 1.4;\n font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;\n font-size: 14px;\n color: #ccc;\n/* this is for the rowGroupPanel, that appears along the top of the grid */\n/* this is for the column drops that appear in the toolPanel */\n}\n.ag-dark img {\n vertical-align: middle;\n border: 0;\n}\n.ag-dark .ag-root {\n border: 1px solid #808080;\n}\n.ag-dark .ag-cell-not-inline-editing {\n padding: 2px;\n}\n.ag-dark .ag-cell-range-selected-1:not(.ag-cell-focus) {\n background-color: rgba(100,160,160,0.4);\n}\n.ag-dark .ag-cell-range-selected-2:not(.ag-cell-focus) {\n background-color: rgba(100,190,190,0.4);\n}\n.ag-dark .ag-cell-range-selected-3:not(.ag-cell-focus) {\n background-color: rgba(100,220,220,0.4);\n}\n.ag-dark .ag-cell-range-selected-4:not(.ag-cell-focus) {\n background-color: rgba(100,250,250,0.4);\n}\n.ag-dark .ag-column-moving .ag-cell {\n -webkit-transition: left 0.2s;\n -moz-transition: left 0.2s;\n -o-transition: left 0.2s;\n -ms-transition: left 0.2s;\n transition: left 0.2s;\n}\n.ag-dark .ag-column-moving .ag-header-cell {\n -webkit-transition: left 0.2s;\n -moz-transition: left 0.2s;\n -o-transition: left 0.2s;\n -ms-transition: left 0.2s;\n transition: left 0.2s;\n}\n.ag-dark .ag-column-moving .ag-header-group-cell {\n -webkit-transition: left 0.2s;\n -moz-transition: left 0.2s;\n -o-transition: left 0.2s;\n -ms-transition: left 0.2s;\n transition: left 0.2s;\n}\n.ag-dark .ag-cell-focus {\n border: 1px solid #a9a9a9;\n}\n.ag-dark .ag-cell-no-focus {\n border-right: 1px dotted #808080;\n border-top: 1px solid transparent;\n border-left: 1px solid transparent;\n border-bottom: 1px solid transparent;\n}\n.ag-dark .ag-cell-first-right-pinned {\n border-left: 1px solid #808080;\n}\n.ag-dark .ag-cell-last-left-pinned {\n border-right: 1px solid #808080;\n}\n.ag-dark .ag-cell-highlight {\n border: 1px solid #90ee90;\n}\n.ag-dark .ag-cell-highlight-animation {\n -webkit-transition: border 1s;\n -moz-transition: border 1s;\n -o-transition: border 1s;\n -ms-transition: border 1s;\n transition: border 1s;\n}\n.ag-dark .ag-value-change-delta {\n padding-right: 2px;\n}\n.ag-dark .ag-value-change-delta-up {\n color: #adff2f;\n}\n.ag-dark .ag-value-change-delta-down {\n color: #f00;\n}\n.ag-dark .ag-value-change-value {\n background-color: transparent;\n border-radius: 1px;\n padding-left: 1px;\n padding-right: 1px;\n -webkit-transition: background-color 1s;\n -moz-transition: background-color 1s;\n -o-transition: background-color 1s;\n -ms-transition: background-color 1s;\n transition: background-color 1s;\n}\n.ag-dark .ag-value-change-value-highlight {\n background-color: #d2691e;\n -webkit-transition: background-color 0.1s;\n -moz-transition: background-color 0.1s;\n -o-transition: background-color 0.1s;\n -ms-transition: background-color 0.1s;\n transition: background-color 0.1s;\n}\n.ag-dark .ag-rich-select {\n font-size: 14px;\n border: 1px solid #808080;\n background-color: #302e2e;\n}\n.ag-dark .ag-rich-select-value {\n padding: 2px;\n}\n.ag-dark .ag-rich-select-list {\n border-top: 1px solid #555;\n}\n.ag-dark .ag-rich-select-row {\n padding: 2px;\n}\n.ag-dark .ag-rich-select-row-selected {\n background-color: #4a708b;\n}\n.ag-dark .ag-large-text {\n border: 1px solid #808080;\n}\n.ag-dark .ag-header {\n color: #e0e0e0;\n background: #626262;\n border-bottom: 1px solid #808080;\n font-weight: normal;\n}\n.ag-dark .ag-header-icon {\n color: #e0e0e0;\n stroke: none;\n fill: #e0e0e0;\n}\n.ag-dark .ag-no-scrolls .ag-header-container {\n background: #626262;\n border-bottom: 1px solid #808080;\n}\n.ag-dark .ag-header-cell {\n border-right: 1px solid #808080;\n}\n.ag-dark .ag-header-cell-moving .ag-header-cell-label {\n opacity: 0.5;\n -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";\n filter: alpha(opacity=50);\n}\n.ag-dark .ag-header-cell-moving {\n background-color: #bebebe;\n}\n.ag-dark .ag-header-group-cell {\n border-right: 1px solid #808080;\n}\n.ag-dark .ag-header-group-cell-with-group {\n border-bottom: 1px solid #808080;\n}\n.ag-dark .ag-header-cell-label {\n padding: 4px 2px 4px 2px;\n}\n.ag-dark .ag-header-cell-text {\n padding-left: 2px;\n}\n.ag-dark .ag-header-group-cell-label {\n padding: 4px;\n padding-left: 10px;\n}\n.ag-dark .ag-header-group-text {\n margin-right: 2px;\n}\n.ag-dark .ag-header-cell-menu-button {\n padding: 2px;\n margin-top: 4px;\n border: 1px solid transparent;\n border-radius: 3px;\n -webkit-box-sizing: content-box /* When using bootstrap, box-sizing was set to \'border-box\' */;\n -moz-box-sizing: content-box /* When using bootstrap, box-sizing was set to \'border-box\' */;\n box-sizing: content-box /* When using bootstrap, box-sizing was set to \'border-box\' */;\n line-height: 0px /* normal line height, a space was appearing below the menu button */;\n}\n.ag-dark .ag-pinned-right-header {\n border-left: 1px solid #808080;\n}\n.ag-dark .ag-header-cell-menu-button:hover {\n border: 1px solid #808080;\n}\n.ag-dark .ag-body {\n background-color: #302e2e;\n}\n.ag-dark .ag-row {\n -webkit-transition: background-color 0.1s;\n -moz-transition: background-color 0.1s;\n -o-transition: background-color 0.1s;\n -ms-transition: background-color 0.1s;\n transition: background-color 0.1s;\n}\n.ag-dark .ag-row-odd {\n background-color: #302e2e;\n}\n.ag-dark .ag-row-even {\n background-color: #403e3e;\n}\n.ag-dark .ag-row-selected {\n background-color: #4a708b;\n}\n.ag-dark .ag-floating-top .ag-row {\n background-color: #333;\n}\n.ag-dark .ag-floating-bottom .ag-row {\n background-color: #333;\n}\n.ag-dark .ag-overlay-loading-wrapper {\n background-color: rgba(255,255,255,0.5);\n}\n.ag-dark .ag-overlay-loading-center {\n background-color: #fff;\n border: 1px solid #808080;\n border-radius: 10px;\n padding: 10px;\n color: #000;\n}\n.ag-dark .ag-overlay-no-rows-center {\n background-color: #fff;\n border: 1px solid #808080;\n border-radius: 10px;\n padding: 10px;\n}\n.ag-dark .ag-group-cell-entire-row {\n background-color: #302e2e;\n padding: 2px;\n}\n.ag-dark .ag-footer-cell-entire-row {\n background-color: #302e2e;\n padding: 2px;\n}\n.ag-dark .ag-group-cell {\n font-style: italic;\n}\n.ag-dark .ag-group-expanded {\n padding-right: 4px;\n}\n.ag-dark .ag-group-contracted {\n padding-right: 4px;\n}\n.ag-dark .ag-group-value {\n padding-right: 2px;\n}\n.ag-dark .ag-group-checkbox {\n padding-right: 2px;\n}\n.ag-dark .ag-footer-cell {\n font-style: italic;\n}\n.ag-dark .ag-menu {\n border: 1px solid #555;\n background-color: #302e2e;\n cursor: default;\n font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;\n font-size: 14px;\n}\n.ag-dark .ag-menu .ag-tab-header {\n background-color: #626262;\n}\n.ag-dark .ag-menu .ag-tab {\n padding: 6px 8px 6px 8px;\n margin: 2px 2px 0px 2px;\n display: inline-block;\n border-right: 1px solid transparent;\n border-left: 1px solid transparent;\n border-top: 1px solid transparent;\n border-top-right-radius: 2px;\n border-top-left-radius: 2px;\n}\n.ag-dark .ag-menu .ag-tab-selected {\n background-color: #302e2e;\n border-right: 1px solid #555;\n border-left: 1px solid #555;\n border-top: 1px solid #555;\n}\n.ag-dark .ag-menu-separator {\n border-top: 1px solid #555;\n}\n.ag-dark .ag-menu-option-active {\n background-color: #4a708b;\n}\n.ag-dark .ag-menu-option-icon {\n padding: 2px 4px 2px 4px;\n vertical-align: middle;\n}\n.ag-dark .ag-menu-option-text {\n padding: 2px 4px 2px 4px;\n vertical-align: middle;\n}\n.ag-dark .ag-menu-option-shortcut {\n padding: 2px 2px 2px 20px;\n vertical-align: middle;\n}\n.ag-dark .ag-menu-option-popup-pointer {\n padding: 2px 4px 2px 4px;\n vertical-align: middle;\n}\n.ag-dark .ag-menu-option-disabled {\n opacity: 0.5;\n -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";\n filter: alpha(opacity=50);\n}\n.ag-dark .ag-menu-column-select-wrapper {\n margin: 2px;\n}\n.ag-dark .ag-filter-checkbox {\n position: relative;\n top: 2px;\n left: 2px;\n}\n.ag-dark .ag-filter-header-container {\n border-bottom: 1px solid #555;\n}\n.ag-dark .ag-filter-apply-panel {\n border-top: 1px solid #555;\n padding: 2px;\n}\n.ag-dark .ag-filter-value {\n margin-left: 4px;\n}\n.ag-dark .ag-selection-checkbox {\n padding-right: 4px;\n}\n.ag-dark .ag-paging-panel {\n padding: 4px;\n}\n.ag-dark .ag-paging-button {\n margin-left: 4px;\n margin-right: 4px;\n}\n.ag-dark .ag-paging-row-summary-panel {\n display: inline-block;\n width: 300px;\n}\n.ag-dark .ag-tool-panel {\n background-color: #302e2e;\n border-right: 1px solid #808080;\n border-bottom: 1px solid #808080;\n border-top: 1px solid #808080;\n color: #ccc;\n}\n.ag-dark .ag-status-bar {\n color: #ccc;\n background-color: #302e2e;\n font-size: 14px;\n height: 22px;\n border-bottom: 1px solid #808080;\n border-left: 1px solid #808080;\n border-right: 1px solid #808080;\n padding: 2px;\n}\n.ag-dark .ag-status-bar-aggregations {\n float: right;\n}\n.ag-dark .ag-status-bar-item {\n padding-left: 10px;\n}\n.ag-dark .ag-column-drop-cell {\n background: #403e3e;\n color: #e0e0e0;\n border: 1px solid #666;\n}\n.ag-dark .ag-column-drop-cell-ghost {\n opacity: 0.5;\n -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";\n filter: alpha(opacity=50);\n}\n.ag-dark .ag-column-drop-cell-text {\n padding-left: 2px;\n padding-right: 2px;\n}\n.ag-dark .ag-column-drop-cell-button {\n border: 1px solid transparent;\n padding-left: 2px;\n padding-right: 2px;\n border-radius: 3px;\n}\n.ag-dark .ag-column-drop-cell-button:hover {\n border: 1px solid #808080;\n}\n.ag-dark .ag-column-drop-empty-message {\n padding-left: 2px;\n padding-right: 2px;\n color: #808080;\n}\n.ag-dark .ag-column-drop-icon {\n padding-right: 4px;\n}\n.ag-dark .ag-column-drop {\n background-color: #302e2e;\n}\n.ag-dark .ag-column-drop-horizontal {\n padding: 4px 4px 4px 4px;\n border-top: 1px solid #808080;\n border-left: 1px solid #808080;\n border-right: 1px solid #808080;\n}\n.ag-dark .ag-column-drop-horizontal .ag-column-drop-cell {\n padding: 2px;\n}\n.ag-dark .ag-column-drop-vertical {\n padding: 4px 4px 10px 4px;\n border-bottom: 1px solid #808080;\n}\n.ag-dark .ag-column-drop-vertical .ag-column-drop-cell {\n margin-top: 2px;\n}\n.ag-dark .ag-column-drop-vertical .ag-column-drop-empty-message {\n text-align: center;\n padding: 5px;\n}\n.ag-dark .ag-pivot-mode {\n border-bottom: 1px solid #808080;\n padding: 4px;\n background-color: #302e2e;\n}\n.ag-dark .ag-tool-panel .ag-column-select-panel {\n border-bottom: 1px solid #808080;\n}\n.ag-dark .ag-select-agg-func-popup {\n cursor: default;\n position: absolute;\n font-size: 14px;\n background-color: #302e2e;\n border: 1px solid #808080;\n}\n.ag-dark .ag-select-agg-func-item {\n padding-left: 2px;\n padding-right: 2px;\n}\n.ag-dark .ag-select-agg-func-item:hover {\n background-color: #4a708b;\n}\n.ag-dark ::-webkit-scrollbar {\n width: 12px;\n height: 12px;\n background: #302e2e;\n}\n.ag-dark ::-webkit-scrollbar-thumb {\n background-color: #626262;\n}\n.ag-dark ::-webkit-scrollbar-corner {\n background: #302e2e;\n}\n.ag-dark select {\n background-color: #302e2e;\n color: #ccc;\n}\n.ag-dark input {\n background-color: #302e2e;\n color: #ccc;\n}\n',""])},function(a,b,c){var d=c(145);"string"==typeof d&&(d=[[a.id,d,""]]);c(139)(d,{});d.locals&&(a.exports=d.locals)},function(a,b,c){b=a.exports=c(138)(),b.push([a.id,'.ag-blue {\n line-height: 1.4;\n font-family: Calibri, "Segoe UI", Thonburi, Arial, Verdana, sans-serif;\n font-size: 10pt;\n color: #222;\n/* this is for the rowGroupPanel, that appears along the top of the grid */\n/* this is for the column drops that appear in the toolPanel */\n}\n.ag-blue img {\n vertical-align: middle;\n border: 0;\n}\n.ag-blue .ag-root {\n border: 1px solid #9bc2e6;\n}\n.ag-blue .ag-cell-not-inline-editing {\n padding: 2px;\n}\n.ag-blue .ag-cell-range-selected-1:not(.ag-cell-focus) {\n background-color: rgba(120,120,120,0.4);\n}\n.ag-blue .ag-cell-range-selected-2:not(.ag-cell-focus) {\n background-color: rgba(80,80,80,0.4);\n}\n.ag-blue .ag-cell-range-selected-3:not(.ag-cell-focus) {\n background-color: rgba(40,40,40,0.4);\n}\n.ag-blue .ag-cell-range-selected-4:not(.ag-cell-focus) {\n background-color: rgba(0,0,0,0.4);\n}\n.ag-blue .ag-column-moving .ag-cell {\n -webkit-transition: left 0.2s;\n -moz-transition: left 0.2s;\n -o-transition: left 0.2s;\n -ms-transition: left 0.2s;\n transition: left 0.2s;\n}\n.ag-blue .ag-column-moving .ag-header-cell {\n -webkit-transition: left 0.2s;\n -moz-transition: left 0.2s;\n -o-transition: left 0.2s;\n -ms-transition: left 0.2s;\n transition: left 0.2s;\n}\n.ag-blue .ag-column-moving .ag-header-group-cell {\n -webkit-transition: left 0.2s;\n -moz-transition: left 0.2s;\n -o-transition: left 0.2s;\n -ms-transition: left 0.2s;\n transition: left 0.2s;\n}\n.ag-blue .ag-cell-focus {\n border: 2px solid #217346;\n}\n.ag-blue .ag-cell-no-focus {\n border-right: 1px dotted #9bc2e6;\n border-top: 2px solid transparent;\n border-left: 2px solid transparent;\n border-bottom: 1px dotted #9bc2e6;\n}\n.ag-blue .ag-cell-first-right-pinned {\n border-left: 1px solid #9bc2e6;\n}\n.ag-blue .ag-cell-last-left-pinned {\n border-right: 1px solid #9bc2e6;\n}\n.ag-blue .ag-cell-highlight {\n border: 1px solid #006400;\n}\n.ag-blue .ag-cell-highlight-animation {\n -webkit-transition: border 1s;\n -moz-transition: border 1s;\n -o-transition: border 1s;\n -ms-transition: border 1s;\n transition: border 1s;\n}\n.ag-blue .ag-value-change-delta {\n padding-right: 2px;\n}\n.ag-blue .ag-value-change-delta-up {\n color: #006400;\n}\n.ag-blue .ag-value-change-delta-down {\n color: #8b0000;\n}\n.ag-blue .ag-value-change-value {\n background-color: transparent;\n border-radius: 1px;\n padding-left: 1px;\n padding-right: 1px;\n -webkit-transition: background-color 1s;\n -moz-transition: background-color 1s;\n -o-transition: background-color 1s;\n -ms-transition: background-color 1s;\n transition: background-color 1s;\n}\n.ag-blue .ag-value-change-value-highlight {\n background-color: #cec;\n -webkit-transition: background-color 0.1s;\n -moz-transition: background-color 0.1s;\n -o-transition: background-color 0.1s;\n -ms-transition: background-color 0.1s;\n transition: background-color 0.1s;\n}\n.ag-blue .ag-rich-select {\n font-size: 14px;\n border: 1px solid #9bc2e6;\n background-color: #fff;\n}\n.ag-blue .ag-rich-select-value {\n padding: 2px;\n}\n.ag-blue .ag-rich-select-list {\n border-top: 1px solid #d3d3d3;\n}\n.ag-blue .ag-rich-select-row {\n padding: 2px;\n}\n.ag-blue .ag-rich-select-row-selected {\n background-color: #c7c7c7;\n}\n.ag-blue .ag-large-text {\n border: 1px solid #9bc2e6;\n}\n.ag-blue .ag-header {\n color: #fff;\n background: #5b9bd5;\n border-bottom: 1px solid #9bc2e6;\n font-weight: 600;\n}\n.ag-blue .ag-header-icon {\n color: #fff;\n stroke: none;\n fill: #fff;\n}\n.ag-blue .ag-no-scrolls .ag-header-container {\n background: #5b9bd5;\n border-bottom: 1px solid #9bc2e6;\n}\n.ag-blue .ag-header-cell {\n border-right: 1px solid #9bc2e6;\n}\n.ag-blue .ag-header-cell-moving .ag-header-cell-label {\n opacity: 0.5;\n -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";\n filter: alpha(opacity=50);\n}\n.ag-blue .ag-header-cell-moving {\n background-color: #bebebe;\n}\n.ag-blue .ag-header-group-cell {\n border-right: 1px solid #9bc2e6;\n}\n.ag-blue .ag-header-group-cell-with-group {\n border-bottom: 1px solid #9bc2e6;\n}\n.ag-blue .ag-header-cell-label {\n padding: 4px 2px 4px 2px;\n}\n.ag-blue .ag-header-cell-text {\n padding-left: 2px;\n}\n.ag-blue .ag-header-group-cell-label {\n padding: 4px;\n padding-left: 10px;\n}\n.ag-blue .ag-header-group-text {\n margin-right: 2px;\n}\n.ag-blue .ag-header-cell-menu-button {\n padding: 2px;\n margin-top: 4px;\n border: 1px solid transparent;\n border-radius: 3px;\n -webkit-box-sizing: content-box /* When using bootstrap, box-sizing was set to \'border-box\' */;\n -moz-box-sizing: content-box /* When using bootstrap, box-sizing was set to \'border-box\' */;\n box-sizing: content-box /* When using bootstrap, box-sizing was set to \'border-box\' */;\n line-height: 0px /* normal line height, a space was appearing below the menu button */;\n}\n.ag-blue .ag-pinned-right-header {\n border-left: 1px solid #9bc2e6;\n}\n.ag-blue .ag-header-cell-menu-button:hover {\n border: 1px solid #9bc2e6;\n}\n.ag-blue .ag-body {\n background-color: #f6f6f6;\n}\n.ag-blue .ag-row {\n -webkit-transition: background-color 0.1s;\n -moz-transition: background-color 0.1s;\n -o-transition: background-color 0.1s;\n -ms-transition: background-color 0.1s;\n transition: background-color 0.1s;\n}\n.ag-blue .ag-row-odd {\n background-color: #ddebf7;\n}\n.ag-blue .ag-row-even {\n background-color: #fff;\n}\n.ag-blue .ag-row-selected {\n background-color: #c7c7c7;\n}\n.ag-blue .ag-floating-top .ag-row {\n background-color: #f0f0f0;\n}\n.ag-blue .ag-floating-bottom .ag-row {\n background-color: #f0f0f0;\n}\n.ag-blue .ag-overlay-loading-wrapper {\n background-color: rgba(255,255,255,0.5);\n}\n.ag-blue .ag-overlay-loading-center {\n background-color: #fff;\n border: 1px solid #9bc2e6;\n border-radius: 10px;\n padding: 10px;\n color: #000;\n}\n.ag-blue .ag-overlay-no-rows-center {\n background-color: #fff;\n border: 1px solid #9bc2e6;\n border-radius: 10px;\n padding: 10px;\n}\n.ag-blue .ag-group-cell-entire-row {\n background-color: #f6f6f6;\n padding: 2px;\n}\n.ag-blue .ag-footer-cell-entire-row {\n background-color: #f6f6f6;\n padding: 2px;\n}\n.ag-blue .ag-group-cell {\n font-style: italic;\n}\n.ag-blue .ag-group-expanded {\n padding-right: 4px;\n}\n.ag-blue .ag-group-contracted {\n padding-right: 4px;\n}\n.ag-blue .ag-group-value {\n padding-right: 2px;\n}\n.ag-blue .ag-group-checkbox {\n padding-right: 2px;\n}\n.ag-blue .ag-footer-cell {\n font-style: italic;\n}\n.ag-blue .ag-menu {\n border: 1px solid #808080;\n background-color: #f6f6f6;\n cursor: default;\n font-family: Calibri, "Segoe UI", Thonburi, Arial, Verdana, sans-serif;\n font-size: 10pt;\n}\n.ag-blue .ag-menu .ag-tab-header {\n background-color: #5b9bd5;\n}\n.ag-blue .ag-menu .ag-tab {\n padding: 6px 8px 6px 8px;\n margin: 2px 2px 0px 2px;\n display: inline-block;\n border-right: 1px solid transparent;\n border-left: 1px solid transparent;\n border-top: 1px solid transparent;\n border-top-right-radius: 2px;\n border-top-left-radius: 2px;\n}\n.ag-blue .ag-menu .ag-tab-selected {\n background-color: #9bc2e6;\n border-right: 1px solid #d3d3d3;\n border-left: 1px solid #d3d3d3;\n border-top: 1px solid #d3d3d3;\n}\n.ag-blue .ag-menu-separator {\n border-top: 1px solid #d3d3d3;\n}\n.ag-blue .ag-menu-option-active {\n background-color: #c7c7c7;\n}\n.ag-blue .ag-menu-option-icon {\n padding: 2px 4px 2px 4px;\n vertical-align: middle;\n}\n.ag-blue .ag-menu-option-text {\n padding: 2px 4px 2px 4px;\n vertical-align: middle;\n}\n.ag-blue .ag-menu-option-shortcut {\n padding: 2px 2px 2px 20px;\n vertical-align: middle;\n}\n.ag-blue .ag-menu-option-popup-pointer {\n padding: 2px 4px 2px 4px;\n vertical-align: middle;\n}\n.ag-blue .ag-menu-option-disabled {\n opacity: 0.5;\n -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";\n filter: alpha(opacity=50);\n}\n.ag-blue .ag-menu-column-select-wrapper {\n margin: 2px;\n}\n.ag-blue .ag-filter-checkbox {\n position: relative;\n top: 2px;\n left: 2px;\n}\n.ag-blue .ag-filter-header-container {\n border-bottom: 1px solid #d3d3d3;\n}\n.ag-blue .ag-filter-apply-panel {\n border-top: 1px solid #d3d3d3;\n padding: 2px;\n}\n.ag-blue .ag-filter-value {\n margin-left: 4px;\n}\n.ag-blue .ag-selection-checkbox {\n padding-right: 4px;\n}\n.ag-blue .ag-paging-panel {\n padding: 4px;\n}\n.ag-blue .ag-paging-button {\n margin-left: 4px;\n margin-right: 4px;\n}\n.ag-blue .ag-paging-row-summary-panel {\n display: inline-block;\n width: 300px;\n}\n.ag-blue .ag-tool-panel {\n background-color: #f6f6f6;\n border-right: 1px solid #9bc2e6;\n border-bottom: 1px solid #9bc2e6;\n border-top: 1px solid #9bc2e6;\n color: #222;\n}\n.ag-blue .ag-status-bar {\n color: #222;\n background-color: #f6f6f6;\n font-size: 10pt;\n height: 22px;\n border-bottom: 1px solid #9bc2e6;\n border-left: 1px solid #9bc2e6;\n border-right: 1px solid #9bc2e6;\n padding: 2px;\n}\n.ag-blue .ag-status-bar-aggregations {\n float: right;\n}\n.ag-blue .ag-status-bar-item {\n padding-left: 10px;\n}\n.ag-blue .ag-column-drop-cell {\n background: #ddebf7;\n color: #000;\n border: 1px solid #808080;\n}\n.ag-blue .ag-column-drop-cell-ghost {\n opacity: 0.5;\n -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";\n filter: alpha(opacity=50);\n}\n.ag-blue .ag-column-drop-cell-text {\n padding-left: 2px;\n padding-right: 2px;\n}\n.ag-blue .ag-column-drop-cell-button {\n border: 1px solid transparent;\n padding-left: 2px;\n padding-right: 2px;\n border-radius: 3px;\n}\n.ag-blue .ag-column-drop-cell-button:hover {\n border: 1px solid #9bc2e6;\n}\n.ag-blue .ag-column-drop-empty-message {\n padding-left: 2px;\n padding-right: 2px;\n color: #808080;\n}\n.ag-blue .ag-column-drop-icon {\n padding-right: 4px;\n}\n.ag-blue .ag-column-drop {\n background-color: #f6f6f6;\n}\n.ag-blue .ag-column-drop-horizontal {\n padding: 4px 4px 4px 4px;\n border-top: 1px solid #9bc2e6;\n border-left: 1px solid #9bc2e6;\n border-right: 1px solid #9bc2e6;\n}\n.ag-blue .ag-column-drop-horizontal .ag-column-drop-cell {\n padding: 2px;\n}\n.ag-blue .ag-column-drop-vertical {\n padding: 4px 4px 10px 4px;\n border-bottom: 1px solid #9bc2e6;\n}\n.ag-blue .ag-column-drop-vertical .ag-column-drop-cell {\n margin-top: 2px;\n}\n.ag-blue .ag-column-drop-vertical .ag-column-drop-empty-message {\n text-align: center;\n padding: 5px;\n}\n.ag-blue .ag-pivot-mode {\n border-bottom: 1px solid #9bc2e6;\n padding: 4px;\n background-color: #f6f6f6;\n}\n.ag-blue .ag-tool-panel .ag-column-select-panel {\n border-bottom: 1px solid #9bc2e6;\n}\n.ag-blue .ag-select-agg-func-popup {\n cursor: default;\n position: absolute;\n font-size: 14px;\n background-color: #fff;\n border: 1px solid #9bc2e6;\n}\n.ag-blue .ag-select-agg-func-item {\n padding-left: 2px;\n padding-right: 2px;\n}\n.ag-blue .ag-select-agg-func-item:hover {\n background-color: #c7c7c7;\n}\n',""]);
},function(a,b,c){var d=c(147);"string"==typeof d&&(d=[[a.id,d,""]]);c(139)(d,{});d.locals&&(a.exports=d.locals)},function(a,b,c){b=a.exports=c(138)(),b.push([a.id,".ag-material {\n line-height: 1.4;\n font-family: Roboto;\n font-size: 14px;\n color: #666;\n/* this is for the rowGroupPanel, that appears along the top of the grid */\n/* this is for the column drops that appear in the toolPanel */\n}\n.ag-material img {\n vertical-align: middle;\n border: 0;\n}\n.ag-material .ag-root {\n border: none;\n}\n.ag-material .ag-cell-not-inline-editing {\n padding: 2px;\n}\n.ag-material .ag-cell-range-selected-1:not(.ag-cell-focus) {\n background-color: rgba(120,120,120,0.4);\n}\n.ag-material .ag-cell-range-selected-2:not(.ag-cell-focus) {\n background-color: rgba(80,80,80,0.4);\n}\n.ag-material .ag-cell-range-selected-3:not(.ag-cell-focus) {\n background-color: rgba(40,40,40,0.4);\n}\n.ag-material .ag-cell-range-selected-4:not(.ag-cell-focus) {\n background-color: rgba(0,0,0,0.4);\n}\n.ag-material .ag-column-moving .ag-cell {\n -webkit-transition: left 0.2s;\n -moz-transition: left 0.2s;\n -o-transition: left 0.2s;\n -ms-transition: left 0.2s;\n transition: left 0.2s;\n}\n.ag-material .ag-column-moving .ag-header-cell {\n -webkit-transition: left 0.2s;\n -moz-transition: left 0.2s;\n -o-transition: left 0.2s;\n -ms-transition: left 0.2s;\n transition: left 0.2s;\n}\n.ag-material .ag-column-moving .ag-header-group-cell {\n -webkit-transition: left 0.2s;\n -moz-transition: left 0.2s;\n -o-transition: left 0.2s;\n -ms-transition: left 0.2s;\n transition: left 0.2s;\n}\n.ag-material .ag-cell-focus {\n border: 1px solid #d3d3d3;\n}\n.ag-material .ag-cell-no-focus {\n border-right: 1px solid transparent;\n border-top: 1px solid transparent;\n border-left: 1px solid transparent;\n border-bottom: 1px solid #d3d3d3;\n}\n.ag-material .ag-cell-first-right-pinned {\n border-left: none;\n}\n.ag-material .ag-cell-last-left-pinned {\n border-right: none;\n}\n.ag-material .ag-cell-highlight {\n border: 1px solid #006400;\n}\n.ag-material .ag-cell-highlight-animation {\n -webkit-transition: border 1s;\n -moz-transition: border 1s;\n -o-transition: border 1s;\n -ms-transition: border 1s;\n transition: border 1s;\n}\n.ag-material .ag-value-change-delta {\n padding-right: 2px;\n}\n.ag-material .ag-value-change-delta-up {\n color: #006400;\n}\n.ag-material .ag-value-change-delta-down {\n color: #8b0000;\n}\n.ag-material .ag-value-change-value {\n background-color: transparent;\n border-radius: 1px;\n padding-left: 1px;\n padding-right: 1px;\n -webkit-transition: background-color 1s;\n -moz-transition: background-color 1s;\n -o-transition: background-color 1s;\n -ms-transition: background-color 1s;\n transition: background-color 1s;\n}\n.ag-material .ag-value-change-value-highlight {\n background-color: #cec;\n -webkit-transition: background-color 0.1s;\n -moz-transition: background-color 0.1s;\n -o-transition: background-color 0.1s;\n -ms-transition: background-color 0.1s;\n transition: background-color 0.1s;\n}\n.ag-material .ag-rich-select {\n font-size: 14px;\n border: none;\n background-color: #fff;\n}\n.ag-material .ag-rich-select-value {\n padding: 2px;\n}\n.ag-material .ag-rich-select-list {\n border-top: 1px solid #d3d3d3;\n}\n.ag-material .ag-rich-select-row {\n padding: 2px;\n}\n.ag-material .ag-rich-select-row-selected {\n background-color: #bde2e5;\n}\n.ag-material .ag-large-text {\n border: none;\n}\n.ag-material .ag-header {\n color: #666;\n background: none;\n border-bottom: none;\n font-weight: bold;\n}\n.ag-material .ag-header-icon {\n color: #666;\n stroke: none;\n fill: #666;\n}\n.ag-material .ag-no-scrolls .ag-header-container {\n background: none;\n border-bottom: none;\n}\n.ag-material .ag-header-cell {\n border-right: none;\n}\n.ag-material .ag-header-cell-moving .ag-header-cell-label {\n opacity: 0.5;\n -ms-filter: \"progid:DXImageTransform.Microsoft.Alpha(Opacity=50)\";\n filter: alpha(opacity=50);\n}\n.ag-material .ag-header-cell-moving {\n background-color: #bebebe;\n}\n.ag-material .ag-header-group-cell {\n border-right: none;\n}\n.ag-material .ag-header-group-cell-with-group {\n border-bottom: none;\n}\n.ag-material .ag-header-cell-label {\n padding: 4px 2px 4px 2px;\n}\n.ag-material .ag-header-cell-text {\n padding-left: 2px;\n}\n.ag-material .ag-header-group-cell-label {\n padding: 4px;\n padding-left: 10px;\n}\n.ag-material .ag-header-group-text {\n margin-right: 2px;\n}\n.ag-material .ag-header-cell-menu-button {\n padding: 2px;\n margin-top: 4px;\n border: 1px solid transparent;\n border-radius: 3px;\n -webkit-box-sizing: content-box /* When using bootstrap, box-sizing was set to 'border-box' */;\n -moz-box-sizing: content-box /* When using bootstrap, box-sizing was set to 'border-box' */;\n box-sizing: content-box /* When using bootstrap, box-sizing was set to 'border-box' */;\n line-height: 0px /* normal line height, a space was appearing below the menu button */;\n}\n.ag-material .ag-pinned-right-header {\n border-left: none;\n}\n.ag-material .ag-header-cell-menu-button:hover {\n border: none;\n}\n.ag-material .ag-body {\n background-color: #fff;\n}\n.ag-material .ag-row {\n -webkit-transition: background-color 0.1s;\n -moz-transition: background-color 0.1s;\n -o-transition: background-color 0.1s;\n -ms-transition: background-color 0.1s;\n transition: background-color 0.1s;\n}\n.ag-material .ag-row-odd {\n background-color: #fff;\n}\n.ag-material .ag-row-even {\n background-color: #fff;\n}\n.ag-material .ag-row-selected {\n background-color: #f5f5f5;\n}\n.ag-material .ag-floating-top .ag-row {\n background-color: #f0f0f0;\n}\n.ag-material .ag-floating-bottom .ag-row {\n background-color: #f0f0f0;\n}\n.ag-material .ag-overlay-loading-wrapper {\n background-color: rgba(255,255,255,0.5);\n}\n.ag-material .ag-overlay-loading-center {\n background-color: #fff;\n border: none;\n border-radius: 10px;\n padding: 10px;\n color: #000;\n}\n.ag-material .ag-overlay-no-rows-center {\n background-color: #fff;\n border: none;\n border-radius: 10px;\n padding: 10px;\n}\n.ag-material .ag-group-cell-entire-row {\n background-color: #fff;\n padding: 2px;\n}\n.ag-material .ag-footer-cell-entire-row {\n background-color: #fff;\n padding: 2px;\n}\n.ag-material .ag-group-cell {\n font-style: italic;\n}\n.ag-material .ag-group-expanded {\n padding-right: 4px;\n}\n.ag-material .ag-group-contracted {\n padding-right: 4px;\n}\n.ag-material .ag-group-value {\n padding-right: 2px;\n}\n.ag-material .ag-group-checkbox {\n padding-right: 2px;\n}\n.ag-material .ag-footer-cell {\n font-style: italic;\n}\n.ag-material .ag-menu {\n border: 1px solid #808080;\n background-color: #fff;\n cursor: default;\n font-family: Roboto;\n font-size: 14px;\n}\n.ag-material .ag-menu .ag-tab-header {\n background-color: #f6f6f6;\n}\n.ag-material .ag-menu .ag-tab {\n padding: 6px 16px 6px 16px;\n margin: 2px 2px 0px 2px;\n display: inline-block;\n border-right: 1px solid transparent;\n border-left: 1px solid transparent;\n border-top: 1px solid transparent;\n border-top-right-radius: 2px;\n border-top-left-radius: 2px;\n}\n.ag-material .ag-menu .ag-tab-selected {\n background-color: #fff;\n border-right: 1px solid transparent;\n border-left: 1px solid transparent;\n border-top: 1px solid transparent;\n}\n.ag-material .ag-menu-separator {\n border-top: 1px solid #d3d3d3;\n}\n.ag-material .ag-menu-option-active {\n background-color: #bde2e5;\n}\n.ag-material .ag-menu-option-icon {\n padding: 10px 6px 10px 6px;\n vertical-align: middle;\n}\n.ag-material .ag-menu-option-text {\n padding: 10px 6px 10px 6px;\n vertical-align: middle;\n}\n.ag-material .ag-menu-option-shortcut {\n padding: 10px 6px 10px 20px;\n vertical-align: middle;\n}\n.ag-material .ag-menu-option-popup-pointer {\n padding: 10px 6px 10px 6px;\n vertical-align: middle;\n}\n.ag-material .ag-menu-option-disabled {\n opacity: 0.5;\n -ms-filter: \"progid:DXImageTransform.Microsoft.Alpha(Opacity=50)\";\n filter: alpha(opacity=50);\n}\n.ag-material .ag-menu-column-select-wrapper {\n margin: 2px;\n}\n.ag-material .ag-filter-checkbox {\n position: relative;\n top: 2px;\n left: 2px;\n}\n.ag-material .ag-filter-header-container {\n border-bottom: 1px solid #d3d3d3;\n}\n.ag-material .ag-filter-apply-panel {\n border-top: 1px solid #d3d3d3;\n padding: 2px;\n}\n.ag-material .ag-filter-value {\n margin-left: 4px;\n}\n.ag-material .ag-selection-checkbox {\n padding-right: 4px;\n}\n.ag-material .ag-paging-panel {\n padding: 4px;\n}\n.ag-material .ag-paging-button {\n margin-left: 4px;\n margin-right: 4px;\n}\n.ag-material .ag-paging-row-summary-panel {\n display: inline-block;\n width: 300px;\n}\n.ag-material .ag-tool-panel {\n background-color: #fff;\n border-right: none;\n border-bottom: none;\n border-top: none;\n color: #666;\n}\n.ag-material .ag-status-bar {\n color: #666;\n background-color: #fff;\n font-size: 14px;\n height: 22px;\n border-bottom: none;\n border-left: none;\n border-right: none;\n padding: 2px;\n}\n.ag-material .ag-status-bar-aggregations {\n float: right;\n}\n.ag-material .ag-status-bar-item {\n padding-left: 10px;\n}\n.ag-material .ag-column-drop-cell {\n background: none;\n color: #000;\n border: 1px solid #808080;\n}\n.ag-material .ag-column-drop-cell-ghost {\n opacity: 0.5;\n -ms-filter: \"progid:DXImageTransform.Microsoft.Alpha(Opacity=50)\";\n filter: alpha(opacity=50);\n}\n.ag-material .ag-column-drop-cell-text {\n padding-left: 2px;\n padding-right: 2px;\n}\n.ag-material .ag-column-drop-cell-button {\n border: 1px solid transparent;\n padding-left: 2px;\n padding-right: 2px;\n border-radius: 3px;\n}\n.ag-material .ag-column-drop-cell-button:hover {\n border: none;\n}\n.ag-material .ag-column-drop-empty-message {\n padding-left: 2px;\n padding-right: 2px;\n color: #808080;\n}\n.ag-material .ag-column-drop-icon {\n padding-right: 4px;\n}\n.ag-material .ag-column-drop {\n background-color: #fff;\n}\n.ag-material .ag-column-drop-horizontal {\n padding: 4px 4px 4px 4px;\n border-top: none;\n border-left: none;\n border-right: none;\n}\n.ag-material .ag-column-drop-horizontal .ag-column-drop-cell {\n padding: 2px;\n}\n.ag-material .ag-column-drop-vertical {\n padding: 4px 4px 10px 4px;\n border-bottom: none;\n}\n.ag-material .ag-column-drop-vertical .ag-column-drop-cell {\n margin-top: 2px;\n}\n.ag-material .ag-column-drop-vertical .ag-column-drop-empty-message {\n text-align: center;\n padding: 5px;\n}\n.ag-material .ag-pivot-mode {\n border-bottom: none;\n padding: 4px;\n background-color: #fff;\n}\n.ag-material .ag-tool-panel .ag-column-select-panel {\n border-bottom: none;\n}\n.ag-material .ag-select-agg-func-popup {\n cursor: default;\n position: absolute;\n font-size: 14px;\n background-color: #fff;\n border: none;\n}\n.ag-material .ag-select-agg-func-item {\n padding-left: 2px;\n padding-right: 2px;\n}\n.ag-material .ag-select-agg-func-item:hover {\n background-color: #bde2e5;\n}\n.ag-material .ag-row-hover {\n background-color: #eee !important;\n}\n.ag-material .ag-cell-not-inline-editing {\n padding-top: 15px;\n}\n.ag-material .ag-header-cell-menu-button:hover {\n border: 1px solid #808080;\n}\n.ag-material .ag-header-cell-label {\n text-align: left;\n}\n.ag-material .ag-header {\n border-bottom: 1px solid #808080;\n}\n.ag-material .ag-selection-checkbox {\n padding-right: 12px;\n padding-left: 12px;\n}\n",""])},function(a,b,c){var d=c(149);"string"==typeof d&&(d=[[a.id,d,""]]);c(139)(d,{});d.locals&&(a.exports=d.locals)},function(a,b,c){b=a.exports=c(138)(),b.push([a.id,'.ag-bootstrap {\n line-height: 1.4;\n font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;\n font-size: 14px;\n color: #000;\n/* this is for the rowGroupPanel, that appears along the top of the grid */\n/* this is for the column drops that appear in the toolPanel */\n}\n.ag-bootstrap img {\n vertical-align: middle;\n border: 0;\n}\n.ag-bootstrap .ag-root {\n border: none;\n}\n.ag-bootstrap .ag-cell-not-inline-editing {\n padding: 4px;\n}\n.ag-bootstrap .ag-cell-range-selected-1:not(.ag-cell-focus) {\n background-color: rgba(120,120,120,0.4);\n}\n.ag-bootstrap .ag-cell-range-selected-2:not(.ag-cell-focus) {\n background-color: rgba(80,80,80,0.4);\n}\n.ag-bootstrap .ag-cell-range-selected-3:not(.ag-cell-focus) {\n background-color: rgba(40,40,40,0.4);\n}\n.ag-bootstrap .ag-cell-range-selected-4:not(.ag-cell-focus) {\n background-color: rgba(0,0,0,0.4);\n}\n.ag-bootstrap .ag-column-moving .ag-cell {\n -webkit-transition: left 0.2s;\n -moz-transition: left 0.2s;\n -o-transition: left 0.2s;\n -ms-transition: left 0.2s;\n transition: left 0.2s;\n}\n.ag-bootstrap .ag-column-moving .ag-header-cell {\n -webkit-transition: left 0.2s;\n -moz-transition: left 0.2s;\n -o-transition: left 0.2s;\n -ms-transition: left 0.2s;\n transition: left 0.2s;\n}\n.ag-bootstrap .ag-column-moving .ag-header-group-cell {\n -webkit-transition: left 0.2s;\n -moz-transition: left 0.2s;\n -o-transition: left 0.2s;\n -ms-transition: left 0.2s;\n transition: left 0.2s;\n}\n.ag-bootstrap .ag-cell-focus {\n border: 2px solid #217346;\n}\n.ag-bootstrap .ag-cell-no-focus {\n border-right: none;\n border-top: 1px solid transparent;\n border-left: 1px solid transparent;\n border-bottom: 1px solid transparent;\n}\n.ag-bootstrap .ag-cell-first-right-pinned {\n border-left: none;\n}\n.ag-bootstrap .ag-cell-last-left-pinned {\n border-right: none;\n}\n.ag-bootstrap .ag-cell-highlight {\n border: 1px solid #006400;\n}\n.ag-bootstrap .ag-cell-highlight-animation {\n -webkit-transition: border 1s;\n -moz-transition: border 1s;\n -o-transition: border 1s;\n -ms-transition: border 1s;\n transition: border 1s;\n}\n.ag-bootstrap .ag-value-change-delta {\n padding-right: 2px;\n}\n.ag-bootstrap .ag-value-change-delta-up {\n color: #006400;\n}\n.ag-bootstrap .ag-value-change-delta-down {\n color: #8b0000;\n}\n.ag-bootstrap .ag-value-change-value {\n background-color: transparent;\n border-radius: 1px;\n padding-left: 1px;\n padding-right: 1px;\n -webkit-transition: background-color 1s;\n -moz-transition: background-color 1s;\n -o-transition: background-color 1s;\n -ms-transition: background-color 1s;\n transition: background-color 1s;\n}\n.ag-bootstrap .ag-value-change-value-highlight {\n background-color: #cec;\n -webkit-transition: background-color 0.1s;\n -moz-transition: background-color 0.1s;\n -o-transition: background-color 0.1s;\n -ms-transition: background-color 0.1s;\n transition: background-color 0.1s;\n}\n.ag-bootstrap .ag-rich-select {\n font-size: 14px;\n border: none;\n background-color: #fff;\n}\n.ag-bootstrap .ag-rich-select-value {\n padding: 2px;\n}\n.ag-bootstrap .ag-rich-select-list {\n border-top: 1px solid #d3d3d3;\n}\n.ag-bootstrap .ag-rich-select-row {\n padding: 2px;\n}\n.ag-bootstrap .ag-rich-select-row-selected {\n background-color: #bde2e5;\n}\n.ag-bootstrap .ag-large-text {\n border: none;\n}\n.ag-bootstrap .ag-header {\n color: #000;\n background: none;\n border-bottom: none;\n font-weight: 600;\n}\n.ag-bootstrap .ag-header-icon {\n color: #000;\n stroke: none;\n fill: #000;\n}\n.ag-bootstrap .ag-no-scrolls .ag-header-container {\n background: none;\n border-bottom: none;\n}\n.ag-bootstrap .ag-header-cell {\n border-right: none;\n}\n.ag-bootstrap .ag-header-cell-moving .ag-header-cell-label {\n opacity: 0.5;\n -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";\n filter: alpha(opacity=50);\n}\n.ag-bootstrap .ag-header-cell-moving {\n background-color: #bebebe;\n}\n.ag-bootstrap .ag-header-group-cell {\n border-right: none;\n}\n.ag-bootstrap .ag-header-group-cell-with-group {\n border-bottom: none;\n}\n.ag-bootstrap .ag-header-cell-label {\n padding: 4px 2px 4px 2px;\n}\n.ag-bootstrap .ag-header-cell-text {\n padding-left: 2px;\n}\n.ag-bootstrap .ag-header-group-cell-label {\n padding: 4px;\n padding-left: 10px;\n}\n.ag-bootstrap .ag-header-group-text {\n margin-right: 2px;\n}\n.ag-bootstrap .ag-header-cell-menu-button {\n padding: 2px;\n margin-top: 4px;\n border: 1px solid transparent;\n border-radius: 3px;\n -webkit-box-sizing: content-box /* When using bootstrap, box-sizing was set to \'border-box\' */;\n -moz-box-sizing: content-box /* When using bootstrap, box-sizing was set to \'border-box\' */;\n box-sizing: content-box /* When using bootstrap, box-sizing was set to \'border-box\' */;\n line-height: 0px /* normal line height, a space was appearing below the menu button */;\n}\n.ag-bootstrap .ag-pinned-right-header {\n border-left: none;\n}\n.ag-bootstrap .ag-header-cell-menu-button:hover {\n border: none;\n}\n.ag-bootstrap .ag-body {\n background-color: #f6f6f6;\n}\n.ag-bootstrap .ag-row {\n -webkit-transition: background-color 0.1s;\n -moz-transition: background-color 0.1s;\n -o-transition: background-color 0.1s;\n -ms-transition: background-color 0.1s;\n transition: background-color 0.1s;\n}\n.ag-bootstrap .ag-row-odd {\n background-color: #f6f6f6;\n}\n.ag-bootstrap .ag-row-even {\n background-color: #fff;\n}\n.ag-bootstrap .ag-row-selected {\n background-color: #b0e0e6;\n}\n.ag-bootstrap .ag-floating-top .ag-row {\n background-color: #f0f0f0;\n}\n.ag-bootstrap .ag-floating-bottom .ag-row {\n background-color: #f0f0f0;\n}\n.ag-bootstrap .ag-overlay-loading-wrapper {\n background-color: rgba(255,255,255,0.5);\n}\n.ag-bootstrap .ag-overlay-loading-center {\n background-color: #fff;\n border: none;\n border-radius: 10px;\n padding: 10px;\n color: #000;\n}\n.ag-bootstrap .ag-overlay-no-rows-center {\n background-color: #fff;\n border: none;\n border-radius: 10px;\n padding: 10px;\n}\n.ag-bootstrap .ag-group-cell-entire-row {\n background-color: #f6f6f6;\n padding: 4px;\n}\n.ag-bootstrap .ag-footer-cell-entire-row {\n background-color: #f6f6f6;\n padding: 4px;\n}\n.ag-bootstrap .ag-group-cell {\n font-style: italic;\n}\n.ag-bootstrap .ag-group-expanded {\n padding-right: 4px;\n}\n.ag-bootstrap .ag-group-contracted {\n padding-right: 4px;\n}\n.ag-bootstrap .ag-group-value {\n padding-right: 2px;\n}\n.ag-bootstrap .ag-group-checkbox {\n padding-right: 2px;\n}\n.ag-bootstrap .ag-footer-cell {\n font-style: italic;\n}\n.ag-bootstrap .ag-menu {\n border: 1px solid #808080;\n background-color: #f6f6f6;\n cursor: default;\n font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;\n font-size: 14px;\n}\n.ag-bootstrap .ag-menu .ag-tab-header {\n background-color: #e6e6e6;\n}\n.ag-bootstrap .ag-menu .ag-tab {\n padding: 6px 8px 6px 8px;\n margin: 2px 2px 0px 2px;\n display: inline-block;\n border-right: 1px solid transparent;\n border-left: 1px solid transparent;\n border-top: 1px solid transparent;\n border-top-right-radius: 2px;\n border-top-left-radius: 2px;\n}\n.ag-bootstrap .ag-menu .ag-tab-selected {\n background-color: #f6f6f6;\n border-right: 1px solid #d3d3d3;\n border-left: 1px solid #d3d3d3;\n border-top: 1px solid #d3d3d3;\n}\n.ag-bootstrap .ag-menu-separator {\n border-top: 1px solid #d3d3d3;\n}\n.ag-bootstrap .ag-menu-option-active {\n background-color: #bde2e5;\n}\n.ag-bootstrap .ag-menu-option-icon {\n padding: 2px 4px 2px 4px;\n vertical-align: middle;\n}\n.ag-bootstrap .ag-menu-option-text {\n padding: 2px 4px 2px 4px;\n vertical-align: middle;\n}\n.ag-bootstrap .ag-menu-option-shortcut {\n padding: 2px 2px 2px 20px;\n vertical-align: middle;\n}\n.ag-bootstrap .ag-menu-option-popup-pointer {\n padding: 2px 4px 2px 4px;\n vertical-align: middle;\n}\n.ag-bootstrap .ag-menu-option-disabled {\n opacity: 0.5;\n -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";\n filter: alpha(opacity=50);\n}\n.ag-bootstrap .ag-menu-column-select-wrapper {\n margin: 2px;\n}\n.ag-bootstrap .ag-filter-checkbox {\n position: relative;\n top: 2px;\n left: 2px;\n}\n.ag-bootstrap .ag-filter-header-container {\n border-bottom: 1px solid #d3d3d3;\n}\n.ag-bootstrap .ag-filter-apply-panel {\n border-top: 1px solid #d3d3d3;\n padding: 2px;\n}\n.ag-bootstrap .ag-filter-value {\n margin-left: 4px;\n}\n.ag-bootstrap .ag-selection-checkbox {\n padding-right: 4px;\n}\n.ag-bootstrap .ag-paging-panel {\n padding: 4px;\n}\n.ag-bootstrap .ag-paging-button {\n margin-left: 4px;\n margin-right: 4px;\n}\n.ag-bootstrap .ag-paging-row-summary-panel {\n display: inline-block;\n width: 300px;\n}\n.ag-bootstrap .ag-tool-panel {\n background-color: #f6f6f6;\n border-right: none;\n border-bottom: none;\n border-top: none;\n color: #000;\n}\n.ag-bootstrap .ag-status-bar {\n color: #000;\n background-color: #f6f6f6;\n font-size: 14px;\n height: 22px;\n border-bottom: none;\n border-left: none;\n border-right: none;\n padding: 2px;\n}\n.ag-bootstrap .ag-status-bar-aggregations {\n float: right;\n}\n.ag-bootstrap .ag-status-bar-item {\n padding-left: 10px;\n}\n.ag-bootstrap .ag-column-drop-cell {\n background: none;\n color: #000;\n border: 1px solid #808080;\n}\n.ag-bootstrap .ag-column-drop-cell-ghost {\n opacity: 0.5;\n -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";\n filter: alpha(opacity=50);\n}\n.ag-bootstrap .ag-column-drop-cell-text {\n padding-left: 2px;\n padding-right: 2px;\n}\n.ag-bootstrap .ag-column-drop-cell-button {\n border: 1px solid transparent;\n padding-left: 2px;\n padding-right: 2px;\n border-radius: 3px;\n}\n.ag-bootstrap .ag-column-drop-cell-button:hover {\n border: none;\n}\n.ag-bootstrap .ag-column-drop-empty-message {\n padding-left: 2px;\n padding-right: 2px;\n color: #808080;\n}\n.ag-bootstrap .ag-column-drop-icon {\n padding-right: 4px;\n}\n.ag-bootstrap .ag-column-drop {\n background-color: #f6f6f6;\n}\n.ag-bootstrap .ag-column-drop-horizontal {\n padding: 4px 4px 4px 4px;\n border-top: none;\n border-left: none;\n border-right: none;\n}\n.ag-bootstrap .ag-column-drop-horizontal .ag-column-drop-cell {\n padding: 2px;\n}\n.ag-bootstrap .ag-column-drop-vertical {\n padding: 4px 4px 10px 4px;\n border-bottom: none;\n}\n.ag-bootstrap .ag-column-drop-vertical .ag-column-drop-cell {\n margin-top: 2px;\n}\n.ag-bootstrap .ag-column-drop-vertical .ag-column-drop-empty-message {\n text-align: center;\n padding: 5px;\n}\n.ag-bootstrap .ag-pivot-mode {\n border-bottom: none;\n padding: 4px;\n background-color: #f6f6f6;\n}\n.ag-bootstrap .ag-tool-panel .ag-column-select-panel {\n border-bottom: none;\n}\n.ag-bootstrap .ag-select-agg-func-popup {\n cursor: default;\n position: absolute;\n font-size: 14px;\n background-color: #fff;\n border: none;\n}\n.ag-bootstrap .ag-select-agg-func-item {\n padding-left: 2px;\n padding-right: 2px;\n}\n.ag-bootstrap .ag-select-agg-func-item:hover {\n background-color: #bde2e5;\n}\n',""])}])});