UNPKG

ag-grid-community

Version:

Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue

4 lines 1.13 MB
var it=class{constructor(){this.allSyncListeners=new Map,this.allAsyncListeners=new Map,this.globalSyncListeners=new Set,this.globalAsyncListeners=new Set,this.asyncFunctionsQueue=[],this.scheduled=!1,this.firedEvents={}}setFrameworkOverrides(e){this.frameworkOverrides=e}getListeners(e,t,i){const o=t?this.allAsyncListeners:this.allSyncListeners;let s=o.get(e);return!s&&i&&(s=new Set,o.set(e,s)),s}noRegisteredListenersExist(){return this.allSyncListeners.size===0&&this.allAsyncListeners.size===0&&this.globalSyncListeners.size===0&&this.globalAsyncListeners.size===0}addEventListener(e,t,i=!1){this.getListeners(e,i,!0).add(t)}removeEventListener(e,t,i=!1){const o=this.getListeners(e,i,!1);o&&(o.delete(t),o.size===0&&(i?this.allAsyncListeners:this.allSyncListeners).delete(e))}addGlobalListener(e,t=!1){this.getGlobalListeners(t).add(e)}removeGlobalListener(e,t=!1){this.getGlobalListeners(t).delete(e)}dispatchEvent(e){this.dispatchToListeners(e,!0),this.dispatchToListeners(e,!1),this.firedEvents[e.type]=!0}dispatchEventOnce(e){this.firedEvents[e.type]||this.dispatchEvent(e)}dispatchToListeners(e,t){const i=e.type;if(t&&"event"in e){const a=e.event;a instanceof Event&&(e.eventPath=a.composedPath())}const{frameworkOverrides:o}=this,s=a=>{const l=o?()=>o.wrapIncoming(a):a;t?this.dispatchAsync(l):l()},n=this.getListeners(i,t,!1);if((n?.size??0)>0){const a=new Set(n);for(const l of a)n?.has(l)&&s(()=>l(e))}const r=this.getGlobalListeners(t);if(r.size>0){const a=new Set(r);for(const l of a)s(()=>l(i,e))}}getGlobalListeners(e){return e?this.globalAsyncListeners:this.globalSyncListeners}dispatchAsync(e){if(this.asyncFunctionsQueue.push(e),!this.scheduled){const t=()=>{window.setTimeout(this.flushAsyncQueue.bind(this),0)};this.frameworkOverrides?this.frameworkOverrides.wrapIncoming(t):t(),this.scheduled=!0}}flushAsyncQueue(){this.scheduled=!1;const e=this.asyncFunctionsQueue.slice();this.asyncFunctionsQueue=[],e.forEach(t=>t())}};function bg(e,t){return t}function xs(e){return e?.getLocaleTextFunc()??bg}function Xr(e,t,i,o){const s=t[i];return e.getLocaleTextFunc()(i,typeof s=="function"?s(o):s,o)}function Be(e){return e==null||e===""?null:e}function F(e){return e!=null&&e!==""}function _(e){return!F(e)}function go(e){return e!=null&&typeof e.toString=="function"?e.toString():null}function Ut(e,t){const i=e?JSON.stringify(e):null,o=t?JSON.stringify(t):null;return i===o}function Jr(e,t,i=!1){const o=e==null,s=t==null;if(e&&e.toNumber&&(e=e.toNumber()),t&&t.toNumber&&(t=t.toNumber()),o&&s)return 0;if(o)return-1;if(s)return 1;function n(r,a){return r>a?1:r<a?-1:0}if(typeof e!="string"||!i)return n(e,t);try{return e.localeCompare(t)}catch{return n(e,t)}}var ea=new Set(["__proto__","constructor","prototype"]);function Sg(e,t){if(e!=null){if(Array.isArray(e)){for(let i=0;i<e.length;i++)t(i.toString(),e[i]);return}for(const i of Object.keys(e).filter(o=>!ea.has(o)))t(i,e[i])}}function de(e,t,i=!0,o=!1){F(t)&&Sg(t,(s,n)=>{let r=e[s];r!==n&&(o&&r==null&&n!=null&&typeof n=="object"&&n.constructor===Object&&(r={},e[s]=r),ta(n)&&ta(r)&&!Array.isArray(r)?de(r,n,i,o):(i||n!==void 0)&&(e[s]=n))})}function wi(e,t,i){if(!t||!e)return;if(!i)return e[t];const o=t.split(".");let s=e;for(let n=0;n<o.length;n++){if(s==null)return;s=s[o[n]]}return s}function ta(e){return typeof e=="object"&&e!==null}var Fs=class Wt{static applyGlobalGridOptions(t){if(!Wt.gridOptions)return{...t};let i={};return de(i,Wt.gridOptions,!0,!0),Wt.mergeStrategy==="deep"?de(i,t,!0,!0):i={...i,...t},Wt.gridOptions.context&&(i.context=Wt.gridOptions.context),t.context&&(Wt.mergeStrategy==="deep"&&i.context&&de(t.context,i.context,!0,!0),i.context=t.context),i}};Fs.gridOptions=void 0,Fs.mergeStrategy="shallow";var po=Fs;function yg(e,t="shallow"){po.gridOptions=e,po.mergeStrategy=t}function ia(e){return po.gridOptions?.[e]}var oa={suppressContextMenu:!1,preventDefaultOnContextMenu:!1,allowContextMenuWithControlKey:!1,suppressMenuHide:!0,enableBrowserTooltips:!1,tooltipTrigger:"hover",tooltipShowDelay:2e3,tooltipHideDelay:1e4,tooltipMouseTrack:!1,tooltipShowMode:"standard",tooltipInteraction:!1,copyHeadersToClipboard:!1,copyGroupHeadersToClipboard:!1,clipboardDelimiter:" ",suppressCopyRowsToClipboard:!1,suppressCopySingleCellRanges:!1,suppressLastEmptyLineOnPaste:!1,suppressClipboardPaste:!1,suppressClipboardApi:!1,suppressCutToClipboard:!1,maintainColumnOrder:!1,enableStrictPivotColumnOrder:!1,suppressFieldDotNotation:!1,allowDragFromColumnsToolPanel:!1,suppressMovableColumns:!1,suppressColumnMoveAnimation:!1,suppressMoveWhenColumnDragging:!1,suppressDragLeaveHidesColumns:!1,suppressRowGroupHidesColumns:!1,suppressAutoSize:!1,autoSizePadding:20,skipHeaderOnAutoSize:!1,singleClickEdit:!1,suppressClickEdit:!1,readOnlyEdit:!1,stopEditingWhenCellsLoseFocus:!1,enterNavigatesVertically:!1,enterNavigatesVerticallyAfterEdit:!1,enableCellEditingOnBackspace:!1,undoRedoCellEditing:!1,undoRedoCellEditingLimit:10,suppressCsvExport:!1,suppressExcelExport:!1,cacheQuickFilter:!1,includeHiddenColumnsInQuickFilter:!1,excludeChildrenWhenTreeDataFiltering:!1,enableAdvancedFilter:!1,includeHiddenColumnsInAdvancedFilter:!1,enableCharts:!1,masterDetail:!1,keepDetailRows:!1,keepDetailRowsCount:10,detailRowAutoHeight:!1,tabIndex:0,rowBuffer:10,valueCache:!1,valueCacheNeverExpires:!1,enableCellExpressions:!1,suppressTouch:!1,suppressFocusAfterRefresh:!1,suppressBrowserResizeObserver:!1,suppressPropertyNamesCheck:!1,suppressChangeDetection:!1,debug:!1,suppressLoadingOverlay:!1,suppressNoRowsOverlay:!1,pagination:!1,paginationPageSize:100,paginationPageSizeSelector:!0,paginationAutoPageSize:!1,paginateChildRows:!1,suppressPaginationPanel:!1,pivotMode:!1,pivotPanelShow:"never",pivotDefaultExpanded:0,pivotSuppressAutoColumn:!1,suppressExpandablePivotGroups:!1,functionsReadOnly:!1,suppressAggFuncInHeader:!1,alwaysAggregateAtRootLevel:!1,aggregateOnlyChangedColumns:!1,suppressAggFilteredOnly:!1,removePivotHeaderRowWhenSingleValueColumn:!1,animateRows:!0,cellFlashDuration:500,cellFadeDuration:1e3,allowShowChangeAfterFilter:!1,domLayout:"normal",ensureDomOrder:!1,enableRtl:!1,suppressColumnVirtualisation:!1,suppressMaxRenderedRowRestriction:!1,suppressRowVirtualisation:!1,rowDragManaged:!1,rowDragInsertDelay:500,suppressRowDrag:!1,suppressMoveWhenRowDragging:!1,rowDragEntireRow:!1,rowDragMultiRow:!1,embedFullWidthRows:!1,groupDisplayType:"singleColumn",groupDefaultExpanded:0,groupMaintainOrder:!1,groupSelectsChildren:!1,groupSuppressBlankHeader:!1,groupSelectsFiltered:!1,showOpenedGroup:!1,groupRemoveSingleChildren:!1,groupRemoveLowestSingleChildren:!1,groupHideOpenParents:!1,groupAllowUnbalanced:!1,rowGroupPanelShow:"never",suppressMakeColumnVisibleAfterUnGroup:!1,treeData:!1,rowGroupPanelSuppressSort:!1,suppressGroupRowsSticky:!1,rowModelType:"clientSide",asyncTransactionWaitMillis:50,suppressModelUpdateAfterUpdateTransaction:!1,cacheOverflowSize:1,infiniteInitialRowCount:1,serverSideInitialRowCount:1,cacheBlockSize:100,maxBlocksInCache:-1,maxConcurrentDatasourceRequests:2,blockLoadDebounceMillis:0,purgeClosedRowNodes:!1,serverSideSortAllLevels:!1,serverSideOnlyRefreshFilteredGroups:!1,serverSidePivotResultFieldSeparator:"_",viewportRowModelPageSize:5,viewportRowModelBufferSize:5,alwaysShowHorizontalScroll:!1,alwaysShowVerticalScroll:!1,debounceVerticalScrollbar:!1,suppressHorizontalScroll:!1,suppressScrollOnNewData:!1,suppressScrollWhenPopupsAreOpen:!1,suppressAnimationFrame:!1,suppressMiddleClickScrolls:!1,suppressPreventDefaultOnMouseWheel:!1,rowMultiSelectWithClick:!1,suppressRowDeselection:!1,suppressRowClickSelection:!1,suppressCellFocus:!1,suppressHeaderFocus:!1,suppressMultiRangeSelection:!1,enableCellTextSelection:!1,enableRangeSelection:!1,enableRangeHandle:!1,enableFillHandle:!1,fillHandleDirection:"xy",suppressClearOnFillReduction:!1,accentedSort:!1,unSortIcon:!1,suppressMultiSort:!1,alwaysMultiSort:!1,suppressMaintainUnsortedOrder:!1,suppressRowHoverHighlight:!1,suppressRowTransform:!1,columnHoverHighlight:!1,deltaSort:!1,enableGroupEdit:!1,groupLockGroupColumns:0,serverSideEnableClientSideSort:!1,suppressServerSideFullWidthLoadingRow:!1,pivotMaxGeneratedColumns:-1,columnMenu:"new",reactiveCustomComponents:!0,suppressSetFilterByDefault:!1,rowNumbers:!1,enableFilterHandlers:!1};function ue(e,t,i){i==null||typeof i=="string"&&i==""?Ps(e,t):we(e,t,i)}function we(e,t,i){e.setAttribute(sa(t),i.toString())}function Ps(e,t){e.removeAttribute(sa(t))}function sa(e){return`aria-${e}`}function $e(e,t){t?e.setAttribute("role",t):e.removeAttribute("role")}function Rg(e){let t;return e==="asc"?t="ascending":e==="desc"?t="descending":e==="mixed"?t="other":t="none",t}function Eg(e){return parseInt(e.getAttribute("aria-posinset"),10)}function xg(e){return e.getAttribute("aria-label")}function yt(e,t){ue(e,"label",t)}function $t(e,t){ue(e,"labelledby",t)}function Fg(e,t){ue(e,"describedby",t)}function na(e,t){ue(e,"live",t)}function Pg(e,t){ue(e,"atomic",t)}function Dg(e,t){ue(e,"relevant",t)}function ra(e,t){ue(e,"invalid",t)}function Mg(e,t){ue(e,"level",t)}function aa(e,t){ue(e,"disabled",t)}function Ds(e,t){ue(e,"hidden",t)}function Tg(e,t){ue(e,"activedescendant",t)}function fo(e,t){we(e,"expanded",t)}function kg(e){Ps(e,"expanded")}function la(e,t){we(e,"setsize",t)}function da(e,t){we(e,"posinset",t)}function Ag(e,t){we(e,"multiselectable",t)}function ca(e,t){we(e,"rowcount",t)}function bi(e,t){we(e,"rowindex",t)}function Ig(e,t){we(e,"rowspan",t)}function ua(e,t){we(e,"colcount",t)}function Ms(e,t){we(e,"colindex",t)}function ha(e,t){we(e,"colspan",t)}function ga(e,t){we(e,"sort",t)}function pa(e){Ps(e,"sort")}function mo(e,t){ue(e,"selected",t)}function Lg(e,t){we(e,"checked",t===void 0?"mixed":t)}function fa(e,t){ue(e,"controls",t)}function ma(e,t){fa(e,t.id),$t(t,e.id)}function Ca(e,t){ue(e,"owns",t)}function Bg(e,t){ue(e,"haspopup",t===!1?null:t)}function Co(e,t){return t===void 0?e("ariaIndeterminate","indeterminate"):t===!0?e("ariaChecked","checked"):e("ariaUnchecked","unchecked")}var Ts,ks,As,Is,Ls,Bs,Hs;function ot(){return Ts===void 0&&(Ts=/^((?!chrome|android).)*safari/i.test(navigator.userAgent)),Ts}function Gs(){return ks===void 0&&(ks=/(firefox)/i.test(navigator.userAgent)),ks}function va(){return As===void 0&&(As=/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform)),As}function st(){return Is===void 0&&(Is=/iPad|iPhone|iPod/.test(navigator.platform)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1),Is}function Os(e){if(!e)return null;const t=e.tabIndex,i=e.getAttribute("tabIndex");return t===-1&&(i===null||i===""&&!Gs())?null:t.toString()}function Hg(){if(Hs!==void 0)return Hs;if(!document.body)return-1;let e=1e6;const t=Gs()?6e6:1e9,i=document.createElement("div");for(document.body.appendChild(i);;){const o=e*2;if(i.style.height=o+"px",o>t||i.clientHeight!==o)break;e=o}return document.body.removeChild(i),Hs=e,e}function Gg(){return Bs==null&&wa(),Bs}function wa(){const e=document.body,t=document.createElement("div");t.style.width=t.style.height="100px",t.style.opacity="0",t.style.overflow="scroll",t.style.msOverflowStyle="scrollbar",t.style.position="absolute",e.appendChild(t);let i=t.offsetWidth-t.clientWidth;i===0&&t.clientWidth===0&&(i=null),t.parentNode&&t.parentNode.removeChild(t),i!=null&&(Bs=i,Ls=i===0)}function ba(){return Ls==null&&wa(),Ls}function Og(e,t,i){const o=e.parentElement;let s=o&&o.firstChild;for(;s;)t&&s.classList.toggle(t,s===e),i&&s.classList.toggle(i,s!==e),s=s.nextSibling}var Vg="[tabindex], input, select, button, textarea, [href]",Sa="[disabled], .ag-disabled:not(.ag-button), .ag-disabled *";function Vs(e){const t=Element.prototype.matches||Element.prototype.msMatchesSelector,o=t.call(e,"input, select, button, textarea"),s=t.call(e,Sa),n=xe(e);return o&&!s&&n}function $(e,t,i={}){const{skipAriaHidden:o}=i;e.classList.toggle("ag-hidden",!t),o||Ds(e,!t)}function ya(e,t,i={}){const{skipAriaHidden:o}=i;e.classList.toggle("ag-invisible",!t),o||Ds(e,!t)}function qt(e,t){const i="disabled",o=t?n=>n.setAttribute(i,""):n=>n.removeAttribute(i);o(e);const s=e.querySelectorAll("input")??[];for(const n of s)o(n)}function Rt(e,t,i){let o=0;for(;e;){if(e.classList.contains(t))return!0;if(e=e.parentElement,typeof i=="number"){if(++o>i)break}else if(e===i)break}return!1}function Et(e){const{height:t,width:i,borderTopWidth:o,borderRightWidth:s,borderBottomWidth:n,borderLeftWidth:r,paddingTop:a,paddingRight:l,paddingBottom:d,paddingLeft:c,marginTop:u,marginRight:h,marginBottom:g,marginLeft:p,boxSizing:f}=window.getComputedStyle(e);return{height:parseFloat(t||"0"),width:parseFloat(i||"0"),borderTopWidth:parseFloat(o||"0"),borderRightWidth:parseFloat(s||"0"),borderBottomWidth:parseFloat(n||"0"),borderLeftWidth:parseFloat(r||"0"),paddingTop:parseFloat(a||"0"),paddingRight:parseFloat(l||"0"),paddingBottom:parseFloat(d||"0"),paddingLeft:parseFloat(c||"0"),marginTop:parseFloat(u||"0"),marginRight:parseFloat(h||"0"),marginBottom:parseFloat(g||"0"),marginLeft:parseFloat(p||"0"),boxSizing:f}}function vo(e){const t=Et(e);return t.boxSizing==="border-box"?t.height-t.paddingTop-t.paddingBottom:t.height}function Kt(e){const t=Et(e);return t.boxSizing==="border-box"?t.width-t.paddingLeft-t.paddingRight:t.width}function Ns(e){const{height:t,marginBottom:i,marginTop:o}=Et(e);return Math.floor(t+i+o)}function Si(e){const{width:t,marginLeft:i,marginRight:o}=Et(e);return Math.floor(t+i+o)}function Ra(e){const t=e.getBoundingClientRect(),{borderTopWidth:i,borderLeftWidth:o,borderRightWidth:s,borderBottomWidth:n}=Et(e);return{top:t.top+(i||0),left:t.left+(o||0),right:t.right+(s||0),bottom:t.bottom+(n||0)}}function wo(e,t){let i=e.scrollLeft;return t&&(i=Math.abs(i)),i}function bo(e,t,i){i&&(t*=-1),e.scrollLeft=t}function le(e){for(;e&&e.firstChild;)e.removeChild(e.firstChild)}function be(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function Ea(e){return!!e.offsetParent}function xe(e){const t=e;return t.checkVisibility?t.checkVisibility({checkVisibilityCSS:!0}):!(!Ea(e)||window.getComputedStyle(e).visibility!=="visible")}function So(e){const t=document.createElement("div");return t.innerHTML=(e||"").trim(),t.firstChild}function xa(e,t,i){i&&i.nextSibling===t||(e.firstChild?i?i.nextSibling?e.insertBefore(t,i.nextSibling):e.appendChild(t):e.firstChild&&e.firstChild!==t&&e.insertAdjacentElement("afterbegin",t):e.appendChild(t))}function Fa(e,t){for(let i=0;i<t.length;i++){const o=t[i],s=e.children[i];s!==o&&e.insertBefore(o,s)}}function Ng(e){return e.replace(/[A-Z]/g,t=>`-${t.toLocaleLowerCase()}`)}function yi(e,t){if(t)for(const i of Object.keys(t)){const o=t[i];if(!i||!i.length||o==null)continue;const s=Ng(i),n=o.toString(),r=n.replace(/\s*!important/g,""),a=r.length!=n.length?"important":void 0;e.style.setProperty(s,r,a)}}function jt(e){return()=>{const t=e();return t?Pa(t)||Da(t):!0}}function Pa(e){return e.clientWidth<e.scrollWidth}function Da(e){return e.clientHeight<e.scrollHeight}function yo(e,t){t==="flex"?(e.style.removeProperty("width"),e.style.removeProperty("minWidth"),e.style.removeProperty("maxWidth"),e.style.flex="1 1 auto"):Me(e,t)}function Me(e,t){t=zs(t),e.style.width=t,e.style.maxWidth=t,e.style.minWidth=t}function Ri(e,t){t=zs(t),e.style.height=t,e.style.maxHeight=t,e.style.minHeight=t}function zs(e){return typeof e=="number"?`${e}px`:e}function Ro(e){return e instanceof Node||e instanceof HTMLElement}function Se(e,t,i){i==null||i===""?e.removeAttribute(t):e.setAttribute(t,i.toString())}function qe(e,t,i){const s=Ua(e).ResizeObserver,n=s?new s(i):null;return n?.observe(t),()=>n?.disconnect()}function zg(e){const t=lt(e),i="getSelection"in t?t.getSelection():null,o=[];for(let s=0;s<(i?.rangeCount??0);s++){const n=i?.getRangeAt(s);n&&o.push(n)}return{selection:i,ranges:o}}function Wg(e,t){if(!e.gos.get("enableCellTextSelection")||!Gs()&&!ot())return t();const{selection:o,ranges:s}=zg(e);t(),o?.removeAllRanges();for(const n of s)o?.addRange(n)}function He(e,t){const i=Ua(e);i.requestAnimationFrame?i.requestAnimationFrame(t):i.webkitRequestAnimationFrame?i.webkitRequestAnimationFrame(t):i.setTimeout(t,0)}var Ma="data-ref",Ws;function Ta(){return Ws??(Ws=document.createTextNode(" ")),Ws.cloneNode()}function U(e){const{attrs:t,children:i,cls:o,ref:s,role:n,tag:r}=e,a=document.createElement(r);if(o&&(a.className=o),s&&a.setAttribute(Ma,s),n&&a.setAttribute("role",n),t)for(const l of Object.keys(t))a.setAttribute(l,t[l]);if(i)if(typeof i=="string")a.textContent=i;else{let l=!0;for(const d of i)d&&(typeof d=="string"?(a.appendChild(document.createTextNode(d)),l=!1):typeof d=="function"?a.appendChild(d()):(l&&(a.appendChild(Ta()),l=!1),a.append(U(d)),a.appendChild(Ta())))}return a}var ka={};function Eo(e,t){ka[t]||(e(),ka[t]=!0)}function nt(e,t,...i){e.get("debug")&&console.log("AG Grid: "+t,...i)}function xt(e,...t){Eo(()=>console.warn("AG Grid: "+e,...t),e+t?.join(""))}function Yt(e,...t){Eo(()=>console.error("AG Grid: "+e,...t),e+t?.join(""))}var _g={pending:!1,funcs:[]},Ug={pending:!1,funcs:[]};function xo(e,t="setTimeout",i){const o=t==="raf"?Ug:_g;if(o.funcs.push(e),o.pending)return;o.pending=!0;const s=()=>{const n=o.funcs.slice();o.funcs.length=0,o.pending=!1,n.forEach(r=>r())};t==="raf"?He(i,s):window.setTimeout(s,0)}function ie(e,t,i){let o;return function(...s){const n=this;window.clearTimeout(o),o=window.setTimeout(function(){e.isAlive()&&t.apply(n,s)},i)}}function Aa(e,t){let i=0;return function(...o){const s=this,n=Date.now();n-i<t||(i=n,e.apply(s,o))}}function Ia(e,t,i=100,o){const s=Date.now();let n=null,r=!1;const a=()=>{const l=Date.now()-s>i;(e()||l)&&(t(),r=!0,n!=null&&(window.clearInterval(n),n=null),l&&o&&xt(o))};a(),r||(n=window.setInterval(a,10))}var La="https://www.ag-grid.com",D="34.1.2",Ba=2e3,Ha=100,Ga="_version_",Oa=null,Qt=`${La}/javascript-data-grid`;function $g(e){Oa=e}function qg(e){Qt=e}function Va(e,t,i){return Oa?.getConsoleMessage(e,t)??[Qg(e,t,i)]}function _s(e,t,i,o){e(`error #${t}`,...Va(t,i,o))}function Kg(e){if(!e)return String(e);const t={};for(const i of Object.keys(e))typeof e[i]!="object"&&typeof e[i]!="function"&&(t[i]=e[i]);return JSON.stringify(t)}function jg(e){let t=e;return e instanceof Error?t=e.toString():typeof e=="object"&&(t=Kg(e)),t}function Fo(e){return e===void 0?"undefined":e===null?"null":e}function Us(e,t){return`${e}?${t.toString()}`}function Yg(e,t,i){const o=Array.from(t.entries()).sort((n,r)=>r[1].length-n[1].length);let s=Us(e,t);for(const[n,r]of o){if(n===Ga)continue;const a=s.length-i;if(a<=0)break;const l="...",d=a+l.length,c=r.length-d>Ha?r.slice(0,r.length-d)+l:r.slice(0,Ha)+l;t.set(n,c),s=Us(e,t)}return s}function Na(e,t){const i=new URLSearchParams;if(i.append(Ga,D),t)for(const n of Object.keys(t))i.append(n,jg(t[n]));const o=`${Qt}/errors/${e}`,s=Us(o,i);return s.length<=Ba?s:Yg(o,i,Ba)}var Qg=(e,t,i)=>{const o=Na(e,t);return`${i?i+` `:""}Visit ${o}${i?"":` Alternatively register the ValidationModule to see the full message in the console.`}`};function R(...e){_s(xt,e[0],e[1])}function N(...e){_s(Yt,e[0],e[1])}function Ei(e,t,i){_s(Yt,e,t,i)}function za(e,t){const i=t[0];return`error #${i} `+Va(i,t[1],e).join(" ")}function Te(...e){return za(void 0,e)}function Zg(...e){return za(` `,e)}function Wa(e,t){return e.get("rowModelType")===t}function te(e,t){return Wa(e,"clientSide")}function Ft(e,t){return Wa(e,"serverSide")}function ne(e,t){return e.get("domLayout")===t}function rt(e){return Pi(e)!==void 0}function $s(e){return typeof e.get("getRowHeight")=="function"}function Xg(e,t){return t?!e.get("enableStrictPivotColumnOrder"):e.get("maintainColumnOrder")}function Ke(e,t,i=!1,o){const{gos:s,environment:n}=e;if(o==null&&(o=n.getDefaultRowHeight()),$s(s)){if(i)return{height:o,estimated:!0};const l={node:t,data:t.data},d=s.getCallback("getRowHeight")(l);if(qs(d))return d===0&&R(23),{height:Math.max(1,d),estimated:!1}}if(t.detail&&s.get("masterDetail"))return Jg(s);const r=s.get("rowHeight");return{height:r&&qs(r)?r:o,estimated:!1}}function Jg(e){if(e.get("detailRowAutoHeight"))return{height:1,estimated:!1};const t=e.get("detailRowHeight");return qs(t)?{height:t,estimated:!1}:{height:300,estimated:!1}}function at(e){const{environment:t,gos:i}=e,o=i.get("rowHeight");if(!o||_(o))return t.getDefaultRowHeight();const s=t.refreshRowHeightVariable();return s!==-1?s:(R(24),t.getDefaultRowHeight())}function qs(e){return!isNaN(e)&&typeof e=="number"&&isFinite(e)}function _a(e,t,i){const o=t[e.getDomDataKey()];return o?o[i]:void 0}function Pt(e,t,i,o){const s=e.getDomDataKey();let n=t[s];_(n)&&(n={},t[s]=n),n[i]=o}function oe(e){const{gos:t,eGridDiv:i}=e;let o=null;const s=t.get("getDocument");return s&&F(s)?o=s():i&&(o=i.ownerDocument),o&&F(o)?o:document}function Ua(e){return oe(e).defaultView||window}function lt(e){return e.eGridDiv.getRootNode()}function q(e){return lt(e).activeElement}function Po(e){let t=null,i=null;try{t=oe(e).fullscreenElement}catch{}finally{t||(t=lt(e));const o=t.querySelector("body");o?i=o:t instanceof ShadowRoot?i=t:t instanceof Document?i=t?.documentElement:i=t}return i}function ep(e){return Po(e)?.clientWidth??(window.innerWidth||-1)}function tp(e){return Po(e)?.clientHeight??(window.innerHeight||-1)}function $a(e,t,i){const s=e.getBoundingClientRect().height,n=ep(i)-2,r=tp(i)-2;if(!e.offsetParent)return;const l=Ra(e.offsetParent),{clientY:d,clientX:c}=t;let u=d-l.top-s/2,h=c-l.left-10;const g=oe(i),p=g.defaultView||window,f=p.pageYOffset||g.documentElement.scrollTop,m=p.pageXOffset||g.documentElement.scrollLeft;n>0&&h+e.clientWidth>n+m&&(h=n+m-e.clientWidth),h<0&&(h=0),r>0&&u+e.clientHeight>r+f&&(u=r+f-e.clientHeight),u<0&&(u=0),e.style.left=`${h}px`,e.style.top=`${u}px`}function Ks(e){const t=q(e);return t===null||t===oe(e).body}function Dt(e){return e.get("ensureDomOrder")?!1:e.get("animateRows")}function js(e){return!(e.get("paginateChildRows")||e.get("groupHideOpenParents")||ne(e,"print"))}function ke(e){return!e.get("autoGroupColumnDef")?.comparator&&!e.get("treeData")}function Do(e){const t=e.get("groupAggFiltering");if(typeof t=="function")return e.getCallback("groupAggFiltering");if(t===!0)return()=>!0}function Ys(e){return e.get("grandTotalRow")}function ip(e){const t=e.get("groupTotalRow");return typeof t=="function"?e.getCallback("groupTotalRow"):()=>t??void 0}function op(e){return e.get("groupHideOpenParents")?!0:e.get("groupDisplayType")==="multipleColumns"}function Qs(e,t){return t?!1:e.get("groupDisplayType")==="groupRows"}function Zs(e,t,i){return!!t.group&&!t.footer&&Qs(e,i)}function Mt(e){const t=e.getCallback("getRowId");return t===void 0?t:i=>{let o=t(i);return typeof o!="string"&&(Eo(()=>R(25,{id:o}),"getRowIdString"),o=String(o)),o}}function qa(e,t){const i=e.get("groupHideParentOfSingleChild");return!!(i===!0||i==="leafGroupsOnly"&&t.leafGroup||e.get("groupRemoveSingleChildren")||e.get("groupRemoveLowestSingleChildren")&&t.leafGroup)}function Ka(e){const t=e.get("maxConcurrentDatasourceRequests");return t>0?t:void 0}function sp(e,t){const i=e.get("suppressGroupChangesColumnVisibility");if(i===!0||t&&i==="suppressHideOnGroup"||!t&&i==="suppressShowOnUngroup")return!1;const o=e.get("suppressRowGroupHidesColumns");if(t&&o===!0)return!1;const s=e.get("suppressMakeColumnVisibleAfterUnGroup");return!(!t&&s===!0)}function Tt(e){return e?.checkboxes??!0}function xi(e){return e?.mode==="multiRow"&&(e.headerCheckbox??!0)}function Fi(e){if(typeof e=="object")return e.checkboxLocation??"selectionColumn"}function Xs(e){return e?.hideDisabledCheckboxes??!1}function ja(e){return typeof e.get("rowSelection")!="string"}function np(e){return e.get("cellSelection")!==void 0}function rp(e){const t=e.get("cellSelection");return t!==void 0?typeof t!="boolean"?t?.suppressMultiRanges??!1:!1:e.get("suppressMultiRangeSelection")}function Ge(e){const t=e.get("cellSelection");return t!==void 0?!!t:e.get("enableRangeSelection")}function ap(e){const t=e.get("cellSelection");return t!==void 0?typeof t!="boolean"&&t.handle?.mode==="fill"?t.handle:void 0:{mode:"fill",setFillValue:e.get("fillOperation"),direction:e.get("fillHandleDirection"),suppressClearOnFillReduction:e.get("suppressClearOnFillReduction")}}function Ya(e){const t=e.get("rowSelection")??"single";if(typeof t=="string"){const i=e.get("suppressRowClickSelection"),o=e.get("suppressRowDeselection");return i&&o?!1:i?"enableDeselection":o?"enableSelection":!0}return t.mode==="singleRow"||t.mode==="multiRow"?t.enableClickSelection??!1:!1}function lp(e){const t=Ya(e);return t===!0||t==="enableSelection"}function dp(e){const t=Ya(e);return t===!0||t==="enableDeselection"}function Mo(e){const t=e.get("rowSelection");return typeof t=="string"?e.get("isRowSelectable"):t?.isRowSelectable}function Pi(e){const t="beanName"in e&&e.beanName==="gos"?e.get("rowSelection"):e.rowSelection;if(typeof t=="string")switch(t){case"multiple":return"multiRow";case"single":return"singleRow";default:return}switch(t?.mode){case"multiRow":case"singleRow":return t.mode;default:return}}function Zt(e){return Pi(e)==="multiRow"}function cp(e){const t=e.get("rowSelection");return typeof t=="string"?e.get("rowMultiSelectWithClick"):t?.enableSelectionWithoutKeys??!1}function Di(e){const t=e.get("rowSelection");if(typeof t=="string"){const i=e.get("groupSelectsChildren"),o=e.get("groupSelectsFiltered");return i&&o?"filteredDescendants":i?"descendants":"self"}return t?.mode==="multiRow"?t.groupSelects:void 0}function Qa(e,t=!0){const i=e.get("rowSelection");return typeof i!="object"?t?"all":void 0:i.mode==="multiRow"?i.selectAll:"all"}function Xt(e){const t=Di(e);return t==="descendants"||t==="filteredDescendants"}function Za(e){const t=e.get("rowSelection");return typeof t=="object"&&t.masterSelects||"self"}function Xa(e){return e.isModuleRegistered("SetFilter")&&!e.get("suppressSetFilterByDefault")}function fe(e){return e.get("columnMenu")==="legacy"}function Ja(e){return!fe(e)}function el(e){return!e||e.length<2?e:"on"+e[0].toUpperCase()+e.substring(1)}function up(e,t,i){typeof e!="object"&&(e={});const o={...e};return i.forEach(s=>{const n=t[s];typeof n<"u"&&(o[s]=n)}),o}function hp(e,t){if(!e)return;const i={};let o=!1;if(Object.keys(e).forEach(r=>{i[r]=e[r],o=!0}),!o)return;const s={type:"gridOptionsChanged",options:i};t.dispatchEvent(s);const n={type:"componentStateChanged",...i};t.dispatchEvent(n)}function B(e,t){return e.addGridCommonParams(t)}function Js(e){return e.get("treeData")?e.get("treeDataParentIdField")?"treeSelfRef":e.get("treeDataChildrenField")?"treeNested":"treePath":"group"}function gp(e,t){return e[t]??e.gridOptions?.[t]??ia(t)??oa[t]}var tl="__ag_Grid_Stop_Propagation",pp=["touchstart","touchend","touchmove","touchcancel","scroll"],fp=["wheel"],en={};function dt(e){e[tl]=!0}function Oe(e){return e[tl]===!0}var il=(()=>{const e={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};return i=>{if(typeof en[i]=="boolean")return en[i];const o=document.createElement(e[i]||"div");return i="on"+i,en[i]=i in o}})();function ol(e,t,i){let o=t;for(;o;){const s=_a(e,o,i);if(s)return s;o=o.parentElement}return null}function sl(e,t){return!t||!e?!1:Cp(t).indexOf(e)>=0}function mp(e){const t=[];let i=e.target;for(;i;)t.push(i),i=i.parentElement;return t}function Cp(e){const t=e;return t.path?t.path:t.composedPath?t.composedPath():mp(t)}function vp(e,t,i,o){const s=nl(i);let n;s!=null&&(n={passive:s}),e&&e.addEventListener&&e.addEventListener(t,i,o,n)}var nl=e=>{const t=pp.includes(e),i=fp.includes(e);if(t)return!0;if(i)return!1},S=class{constructor(){this.destroyFunctions=[],this.destroyed=!1,this.__v_skip=!0,this.propertyListenerId=0,this.lastChangeSetIdLookup={},this.isAlive=()=>!this.destroyed}preWireBeans(e){this.beans=e,this.stubContext=e.context,this.eventSvc=e.eventSvc,this.gos=e.gos}destroy(){const{destroyFunctions:e}=this;for(let t=0;t<e.length;t++)e[t]();e.length=0,this.destroyed=!0,this.dispatchLocalEvent({type:"destroyed"})}addEventListener(e,t,i){this.localEventService||(this.localEventService=new it),this.localEventService.addEventListener(e,t,i)}removeEventListener(e,t,i){this.localEventService?.removeEventListener(e,t,i)}dispatchLocalEvent(e){this.localEventService?.dispatchEvent(e)}addManagedElementListeners(e,t){return this._setupListeners(e,t)}addManagedEventListeners(e){return this._setupListeners(this.eventSvc,e)}addManagedListeners(e,t){return this._setupListeners(e,t)}_setupListeners(e,t){const i=[];for(const o of Object.keys(t)){const s=t[o];s&&i.push(this._setupListener(e,o,s))}return i}_setupListener(e,t,i){if(this.destroyed)return()=>null;let o;return wp(e)?(e.__addEventListener(t,i),o=()=>(e.__removeEventListener(t,i),null)):(e instanceof HTMLElement?vp(this.beans.frameworkOverrides,e,t,i):e.addEventListener(t,i),o=()=>(e.removeEventListener(t,i),null)),this.destroyFunctions.push(o),()=>(o(),this.destroyFunctions=this.destroyFunctions.filter(s=>s!==o),null)}setupGridOptionListener(e,t){const{gos:i}=this;i.addPropertyEventListener(e,t);const o=()=>(i.removePropertyEventListener(e,t),null);return this.destroyFunctions.push(o),()=>(o(),this.destroyFunctions=this.destroyFunctions.filter(s=>s!==o),null)}addManagedPropertyListener(e,t){return this.destroyed?()=>null:this.setupGridOptionListener(e,t)}addManagedPropertyListeners(e,t){if(this.destroyed)return;const i=e.join("-")+this.propertyListenerId++,o=s=>{if(s.changeSet){if(s.changeSet&&s.changeSet.id===this.lastChangeSetIdLookup[i])return;this.lastChangeSetIdLookup[i]=s.changeSet.id}const n={type:"gridPropertyChanged",changeSet:s.changeSet,source:s.source};t(n)};e.forEach(s=>this.setupGridOptionListener(s,o))}getLocaleTextFunc(){return xs(this.beans.localeSvc)}addDestroyFunc(e){this.isAlive()?this.destroyFunctions.push(e):e()}createOptionalManagedBean(e,t){return e?this.createManagedBean(e,t):void 0}createManagedBean(e,t){const i=this.createBean(e,t);return this.addDestroyFunc(this.destroyBean.bind(this,e,t)),i}createBean(e,t,i){return(t||this.stubContext).createBean(e,i)}destroyBean(e,t){return(t||this.stubContext).destroyBean(e)}destroyBeans(e,t){return(t||this.stubContext).destroyBeans(e)}};function wp(e){return e.__addEventListener!==void 0}var bp=/[&<>"']/g,Sp={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function kt(e){return e?.toString().toString()??null}function Mi(e){return kt(e)?.replace(bp,t=>Sp[t])??null}var yp={resizable:!0,sortable:!0},Rp=0;function rl(){return Rp++}function je(e){return e instanceof Ye}var Ye=class extends S{constructor(e,t,i,o){super(),this.colDef=e,this.userProvidedColDef=t,this.colId=i,this.primary=o,this.isColumn=!0,this.instanceId=rl(),this.autoHeaderHeight=null,this.moving=!1,this.resizing=!1,this.menuVisible=!1,this.lastLeftPinned=!1,this.firstRightPinned=!1,this.filterActive=!1,this.colEventSvc=new it,this.tooltipEnabled=!1,this.rowGroupActive=!1,this.pivotActive=!1,this.aggregationActive=!1,this.flex=null,this.colIdSanitised=Mi(i)}destroy(){super.destroy(),this.beans.rowSpanSvc?.deregister(this)}getInstanceId(){return this.instanceId}setState(){const{colDef:e,beans:{sortSvc:t,pinnedCols:i,colFlex:o}}=this;t?.initCol(this);const s=e.hide;s!==void 0?this.visible=!s:this.visible=!e.initialHide,i?.initCol(this),o?.initCol(this)}setColDef(e,t,i){const o=e.spanRows!==this.colDef.spanRows;this.colDef=e,this.userProvidedColDef=t,this.initMinAndMaxWidths(),this.initDotNotation(),this.initTooltip(),o&&(this.beans.rowSpanSvc?.deregister(this),this.initRowSpan()),this.dispatchColEvent("colDefChanged",i)}getUserProvidedColDef(){return this.userProvidedColDef}getParent(){return this.parent}getOriginalParent(){return this.originalParent}postConstruct(){this.setState(),this.initMinAndMaxWidths(),this.resetActualWidth("gridInitializing"),this.initDotNotation(),this.initTooltip(),this.initRowSpan(),this.addPivotListener()}initDotNotation(){const{gos:e,colDef:{field:t,tooltipField:i}}=this,o=e.get("suppressFieldDotNotation");this.fieldContainsDots=F(t)&&t.indexOf(".")>=0&&!o,this.tooltipFieldContainsDots=F(i)&&i.indexOf(".")>=0&&!o}initMinAndMaxWidths(){const e=this.colDef;this.minWidth=e.minWidth??this.beans.environment.getDefaultColumnMinWidth(),this.maxWidth=e.maxWidth??Number.MAX_SAFE_INTEGER}initTooltip(){this.beans.tooltipSvc?.initCol(this)}initRowSpan(){this.colDef.spanRows&&this.beans.rowSpanSvc?.register(this)}addPivotListener(){const e=this.beans.pivotColDefSvc,t=this.colDef.pivotValueColumn;!e||!t||this.addManagedListeners(t,{colDefChanged:i=>{const o=e.recreateColDef(this.colDef);this.setColDef(o,o,i.source)}})}resetActualWidth(e){const t=this.calculateColInitialWidth(this.colDef);this.setActualWidth(t,e,!0)}calculateColInitialWidth(e){let t;const i=e.width,o=e.initialWidth;return i!=null?t=i:o!=null?t=o:t=200,Math.max(Math.min(t,this.maxWidth),this.minWidth)}isEmptyGroup(){return!1}isRowGroupDisplayed(e){return this.beans.showRowGroupCols?.isRowGroupDisplayed(this,e)??!1}isPrimary(){return this.primary}isFilterAllowed(){return!!this.colDef.filter}isFieldContainsDots(){return this.fieldContainsDots}isTooltipEnabled(){return this.tooltipEnabled}isTooltipFieldContainsDots(){return this.tooltipFieldContainsDots}getHighlighted(){return this.highlighted}__addEventListener(e,t){this.colEventSvc.addEventListener(e,t)}__removeEventListener(e,t){this.colEventSvc.removeEventListener(e,t)}addEventListener(e,t){this.frameworkEventListenerService=this.beans.frameworkOverrides.createLocalEventListenerWrapper?.(this.frameworkEventListenerService,this.colEventSvc);const i=this.frameworkEventListenerService?.wrap(e,t)??t;this.colEventSvc.addEventListener(e,i)}removeEventListener(e,t){const i=this.frameworkEventListenerService?.unwrap(e,t)??t;this.colEventSvc.removeEventListener(e,i)}createColumnFunctionCallbackParams(e){return B(this.gos,{node:e,data:e.data,column:this,colDef:this.colDef})}isSuppressNavigable(e){return this.beans.cellNavigation?.isSuppressNavigable(this,e)??!1}isCellEditable(e){return this.beans.editSvc?.isCellEditable({rowNode:e,column:this})??!1}isSuppressFillHandle(){return!!this.colDef.suppressFillHandle}isAutoHeight(){return!!this.colDef.autoHeight}isAutoHeaderHeight(){return!!this.colDef.autoHeaderHeight}isRowDrag(e){return this.isColumnFunc(e,this.colDef.rowDrag)}isDndSource(e){return this.isColumnFunc(e,this.colDef.dndSource)}isCellCheckboxSelection(e){return this.beans.selectionSvc?.isCellCheckboxSelection(this,e)??!1}isSuppressPaste(e){return this.isColumnFunc(e,this.colDef?.suppressPaste??null)}isResizable(){return!!this.getColDefValue("resizable")}getColDefValue(e){return this.colDef[e]??yp[e]}isColumnFunc(e,t){if(typeof t=="boolean")return t;if(typeof t=="function"){const i=this.createColumnFunctionCallbackParams(e);return t(i)}return!1}createColumnEvent(e,t){return B(this.gos,{type:e,column:this,columns:[this],source:t})}isMoving(){return this.moving}getSort(){return this.sort}isSortable(){return!!this.getColDefValue("sortable")}isSortAscending(){return this.sort==="asc"}isSortDescending(){return this.sort==="desc"}isSortNone(){return _(this.sort)}isSorting(){return F(this.sort)}getSortIndex(){return this.sortIndex}isMenuVisible(){return this.menuVisible}getAggFunc(){return this.aggFunc}getLeft(){return this.left}getOldLeft(){return this.oldLeft}getRight(){return this.left+this.actualWidth}setLeft(e,t){this.oldLeft=this.left,this.left!==e&&(this.left=e,this.dispatchColEvent("leftChanged",t))}isFilterActive(){return this.filterActive}isHovered(){return R(261),!!this.beans.colHover?.isHovered(this)}setFirstRightPinned(e,t){this.firstRightPinned!==e&&(this.firstRightPinned=e,this.dispatchColEvent("firstRightPinnedChanged",t))}setLastLeftPinned(e,t){this.lastLeftPinned!==e&&(this.lastLeftPinned=e,this.dispatchColEvent("lastLeftPinnedChanged",t))}isFirstRightPinned(){return this.firstRightPinned}isLastLeftPinned(){return this.lastLeftPinned}isPinned(){return this.pinned==="left"||this.pinned==="right"}isPinnedLeft(){return this.pinned==="left"}isPinnedRight(){return this.pinned==="right"}getPinned(){return this.pinned}setVisible(e,t){const i=e===!0;this.visible!==i&&(this.visible=i,this.dispatchColEvent("visibleChanged",t)),this.dispatchStateUpdatedEvent("hide")}isVisible(){return this.visible}isSpanHeaderHeight(){return!this.getColDef().suppressSpanHeaderHeight}getFirstRealParent(){let e=this.getOriginalParent();for(;e&&e.isPadding();)e=e.getOriginalParent();return e}getColumnGroupPaddingInfo(){let e=this.getParent();if(!e||!e.isPadding())return{numberOfParents:0,isSpanningTotal:!1};const t=e.getPaddingLevel()+1;let i=!0;for(;e;){if(!e.isPadding()){i=!1;break}e=e.getParent()}return{numberOfParents:t,isSpanningTotal:i}}getColDef(){return this.colDef}getDefinition(){return this.colDef}getColumnGroupShow(){return this.colDef.columnGroupShow}getColId(){return this.colId}getId(){return this.colId}getUniqueId(){return this.colId}getActualWidth(){return this.actualWidth}getAutoHeaderHeight(){return this.autoHeaderHeight}setAutoHeaderHeight(e){const t=e!==this.autoHeaderHeight;return this.autoHeaderHeight=e,t}createBaseColDefParams(e){return B(this.gos,{node:e,data:e.data,colDef:this.colDef,column:this})}getColSpan(e){if(_(this.colDef.colSpan))return 1;const t=this.createBaseColDefParams(e),i=this.colDef.colSpan(t);return Math.max(i,1)}getRowSpan(e){if(_(this.colDef.rowSpan))return 1;const t=this.createBaseColDefParams(e),i=this.colDef.rowSpan(t);return Math.max(i,1)}setActualWidth(e,t,i=!1){e=Math.max(e,this.minWidth),e=Math.min(e,this.maxWidth),this.actualWidth!==e&&(this.actualWidth=e,this.flex!=null&&t!=="flex"&&t!=="gridInitializing"&&(this.flex=null),i||this.fireColumnWidthChangedEvent(t)),this.dispatchStateUpdatedEvent("width")}fireColumnWidthChangedEvent(e){this.dispatchColEvent("widthChanged",e)}isGreaterThanMax(e){return e>this.maxWidth}getMinWidth(){return this.minWidth}getMaxWidth(){return this.maxWidth}getFlex(){return this.flex}isRowGroupActive(){return this.rowGroupActive}isPivotActive(){return this.pivotActive}isAnyFunctionActive(){return this.isPivotActive()||this.isRowGroupActive()||this.isValueActive()}isAnyFunctionAllowed(){return this.isAllowPivot()||this.isAllowRowGroup()||this.isAllowValue()}isValueActive(){return this.aggregationActive}isAllowPivot(){return this.colDef.enablePivot===!0}isAllowValue(){return this.colDef.enableValue===!0}isAllowRowGroup(){return this.colDef.enableRowGroup===!0}dispatchColEvent(e,t,i){const o=this.createColumnEvent(e,t);i&&de(o,i),this.colEventSvc.dispatchEvent(o)}dispatchStateUpdatedEvent(e){this.colEventSvc.dispatchEvent({type:"columnStateUpdated",key:e})}};function re(e){return e instanceof Jt}var Jt=class extends S{constructor(e,t,i,o){super(),this.colGroupDef=e,this.groupId=t,this.padding=i,this.level=o,this.isColumn=!1,this.expandable=!1,this.instanceId=rl(),this.expandableListenerRemoveCallback=null,this.expanded=!!e?.openByDefault}destroy(){this.expandableListenerRemoveCallback&&this.reset(null,void 0),super.destroy()}reset(e,t){this.colGroupDef=e,this.level=t,this.originalParent=null,this.expandableListenerRemoveCallback&&this.expandableListenerRemoveCallback(),this.children=void 0,this.expandable=void 0}getInstanceId(){return this.instanceId}getOriginalParent(){return this.originalParent}getLevel(){return this.level}isVisible(){return this.children?this.children.some(e=>e.isVisible()):!1}isPadding(){return this.padding}setExpanded(e){this.expanded=e===void 0?!1:e,this.dispatchLocalEvent({type:"expandedChanged"})}isExpandable(){return this.expandable}isExpanded(){return this.expanded}getGroupId(){return this.groupId}getId(){return this.getGroupId()}setChildren(e){this.children=e}getChildren(){return this.children}getColGroupDef(){return this.colGroupDef}getLeafColumns(){const e=[];return this.addLeafColumns(e),e}forEachLeafColumn(e){if(this.children)for(const t of this.children)je(t)?e(t):re(t)&&t.forEachLeafColumn(e)}addLeafColumns(e){this.children&&this.children.forEach(t=>{je(t)?e.push(t):re(t)&&t.addLeafColumns(e)})}getColumnGroupShow(){const e=this.colGroupDef;if(e)return e.columnGroupShow}setupExpandable(){this.setExpandable(),this.expandableListenerRemoveCallback&&this.expandableListenerRemoveCallback();const e=this.onColumnVisibilityChanged.bind(this);this.getLeafColumns().forEach(t=>t.__addEventListener("visibleChanged",e)),this.expandableListenerRemoveCallback=()=>{this.getLeafColumns().forEach(t=>t.__removeEventListener("visibleChanged",e)),this.expandableListenerRemoveCallback=null}}setExpandable(){if(this.isPadding())return;let e=!1,t=!1,i=!1;const o=this.findChildrenRemovingPadding();for(let n=0,r=o.length;n<r;n++){const a=o[n];if(!a.isVisible())continue;const l=a.getColumnGroupShow();l==="open"?(e=!0,i=!0):l==="closed"?(t=!0,i=!0):(e=!0,t=!0)}const s=e&&t&&i;this.expandable!==s&&(this.expandable=s,this.dispatchLocalEvent({type:"expandableChanged"}))}findChildrenRemovingPadding(){const e=[],t=i=>{i.forEach(o=>{re(o)&&o.isPadding()?t(o.children):e.push(o)})};return t(this.children),e}onColumnVisibilityChanged(){this.setExpandable()}},Ep={numericColumn:{headerClass:"ag-right-aligned-header",cellClass:"ag-right-aligned-cell"},rightAligned:{headerClass:"ag-right-aligned-header",cellClass:"ag-right-aligned-cell"}};function tn(e,t,i){const o={},s=e.gos;return Object.assign(o,s.get("defaultColGroupDef")),Object.assign(o,t),s.validateColDef(o,i),o}var al=class{constructor(){this.existingKeys={}}addExistingKeys(e){for(let t=0;t<e.length;t++)this.existingKeys[e[t]]=!0}getUniqueKey(e,t){e=go(e);let i=0;for(;;){let o=e??t;if(o?i!==0&&(o+="_"+i):o=i,!this.existingKeys[o]){const s=String(o);return e&&i>0&&R(273,{providedId:e,usedId:s}),this.existingKeys[s]=!0,s}i++}}},Ti=Object.freeze([]);function W(e){if(e?.length)return e[e.length-1]}function ct(e,t,i){return e==null&&t==null?!0:e!=null&&t!=null&&e.length===t.length&&e.every((o,s)=>i?i(o,t[s]):t[s]===o)}function To(e,t){if(e)for(const i of e)t(i)}function me(e,t){const i=e.indexOf(t);i>=0&&e.splice(i,1)}function ll(e,t,i){for(let o=0;o<t.length;o++)me(e,t[o]);for(let o=t.length-1;o>=0;o--)e.splice(i,0,t[o])}function xp(e){return[].concat.apply([],e)}var Qe="ag-Grid-AutoColumn",ko="ag-Grid-SelectionColumn",Ao="ag-Grid-RowNumbersColumn";function on(e){const t=[],i=o=>{for(let s=0;s<o.length;s++){const n=o[s];je(n)?t.push(n):re(n)&&i(n.getChildren())}};return i(e),t}function Ze(e){return e.reduce((t,i)=>t+i.getActualWidth(),0)}function ki(e,t,i){const o={};if(!t)return;Ve(null,t,n=>{o[n.getInstanceId()]=n}),i&&Ve(null,i,n=>{o[n.getInstanceId()]=null});const s=Object.values(o).filter(n=>n!=null);e.context.destroyBeans(s)}function Io(e){return e.getId().startsWith(Qe)}function Xe(e){return(typeof e=="string"?e:"getColId"in e?e.getColId():e.colId)?.startsWith(ko)??!1}function Je(e){return(typeof e=="string"?e:"getColId"in e?e.getColId():e.colId)?.startsWith(Ao)??!1}function dl(e){return Xe(e)||Je(e)}function Lo(e){let t=[];return e instanceof Array?t=e:typeof e=="string"&&(t=e.split(",")),t}function cl(e,t){return ct(e,t,(i,o)=>i.getColId()===o.getColId())}function ul(e){e.map={},e.list.forEach(t=>e.map[t.getId()]=t)}function At(e){return e==="gridOptionsUpdated"?"gridOptionsChanged":e}function sn(e,t){const i=e===t,o=e.getColDef()===t,s=e.getColId()==t;return i||o||s}var Fp=(e,t)=>(i,o)=>{const s={value1:void 0,value2:void 0};let n=!1;return e&&(e[i]!==void 0&&(s.value1=e[i],n=!0),F(o)&&e[o]!==void 0&&(s.value2=e[o],n=!0)),!n&&t&&(t[i]!==void 0&&(s.value1=t[i]),F(o)&&t[o]!==void 0&&(s.value2=t[o])),s};function Pp(e,t=null,i,o,s){const{existingCols:n,existingGroups:r}=gl(o),a=new Map(n.map(m=>[m.getId(),m])),l=new Map(r.map(m=>[m.getId(),m]));let d=0;const c=(m,C)=>{if(d=Math.max(d,C),ml(m)){if(!e.colGroupSvc)return null;const E=m.groupId,x=l.get(E),I=tn(e,m,E),H=new Jt(I,E,!1,C);return e.context.createBean(H),x&&H.setExpanded(x.isExpanded()),H.setChildren(m.children.map(G=>c(G,C+1))),H}const v=m.colId;let w=a.get(v);const y=Ai(e,m,w?.getColId()??v);return w?(w.setColDef(y,m,s),nn(e,w,y,s)):(w=new Ye(y,m,v,i),e.context.createBean(w)),e.dataTypeSvc?.addColumnListeners(w),w},u=t?.map(m=>c(m,0))??[];let h=0;const g={getUniqueKey:(m,C)=>String(++h)},p=e.colGroupSvc?e.colGroupSvc.balanceColumnTree(u,0,d,g):u;return Ve(null,p,(m,C)=>{re(m)&&m.setupExpandable(),m.originalParent=C}),{columnTree:p,treeDepth:d}}function hl(e,t=null,i,o,s){const n=new al,{existingCols:r,existingGroups:a,existingColKeys:l}=gl(o);n.addExistingKeys(l);const d=pl(e,t,0,i,r,n,a,s),{colGroupSvc:c}=e,u=c?.findMaxDepth(d,0)??0,h=c?c.balanceColumnTree(d,0,u,n):d;return Ve(null,h,(p,f)=>{re(p)&&p.setupExpandable(),p.originalParent=f}),{columnTree:h,treeDepth:u}}function gl(e){const t=[],i=[],o=[];return e&&Ve(null,e,s=>{if(re(s)){const n=s;i.push(n)}else{const n=s;o.push(n.getId()),t.push(n)}}),{existingCols:t,existingGroups:i,existingColKeys:o}}function pl(e,t,i,o,s,n,r,a){if(!t)return[];const{colGroupSvc:l}=e,d=new Array(t.length);for(let c=0;c<d.length;c++){const u=t[c];l&&ml(u)?d[c]=l.createProvidedColumnGroup(o,u,i,s,n,r,a):d[c]=Dp(e,o,u,s,n,a)}return d}function Dp(e,t,i,o,s,n){const r=Mp(i,o);r&&o?.splice(r.idx,1);let a=r?.column;if(a){const l=Ai(e,i,a.getColId());a.setColDef(l,i,n),nn(e,a,l,n)}else{const l=s.getUniqueKey(i.colId,i.field),d=Ai(e,i,l);a=new Ye(d,i,l,t),e.context.createBean(a)}return e.dataTypeSvc?.addColumnListeners(a),a}function fl(e,t,i,o,s,n,r,a){const{sortSvc:l,pinnedCols:d,colFlex:c}=e;i!==void 0&&t.setVisible(!i,a),l&&(l.updateColSort(t,o,a),s!==void 0&&l.setColSortIndex(t,s)),n!==void 0&&d?.setColPinned(t,n),r!==void 0&&c?.setColFlex(t,r)}function nn(e,t,i,o){fl(e,t,i.hide,i.sort,i.sortIndex,i.pinned,i.flex,o);const s=t.getFlex();if(!(s!=null&&s>0))if(i.width!=null)t.setActualWidth(i.width,o);else{const n=t.getActualWidth();t.setActualWidth(n,o)}}function Mp(e,t){if(t)for(let i=0;i<t.length;i++){const o=t[i].getUserProvidedColDef();if(!o)continue;if(e.colId!=null){if(t[i].getId()===e.colId)return{idx:i,column:t[i]};continue}if(e.field!=null){if(o.field===e.field)return{idx:i,column:t[i]};continue}if(o===e)return{idx:i,column:t[i]}}}function Ai(e,t,i,o){const{gos:s,dataTypeSvc:n}=e,r={},a=s.get("defaultColDef");de(r,a,!1,!0);const l=Tp(e,r,t,i);l&&kp(e,l,r);const d=r.cellDataType;de(r,t,!1,!0),d!==void 0&&(r.cellDataType=d);const c=s.get("autoGroupColumnDef"),u=ke(s);return t.rowGroup&&c&&u&&de(r,{sort:c.sort,initialSort:c.initialSort},!1,!0),n&&(n.postProcess(r),n.validateColDef(r)),s.validateColDef(r,i,o),r}function Tp(e,t,i,o){const s=e.dataTypeSvc?.updateColDefAndGetColumnType(t,i,o),n=i.type??s??t.type;return t.type=n,n?Lo(n):void 0}function kp(e,t,i){if(!t.length)return;const o=Object.assign({},Ep),s=e.gos.get("columnTypes")||{};for(const n of Object.keys(s)){const r=s[n];n in o?R(34,{key:n}):(r.type&&R(35),o[n]=r)}t.forEach(n=>{const r=o[n.trim()];r?de(i,r,!1,!0):R(36,{t:n})})}function ml(e){return e.children!==void 0}function Ve(e,t,i){if(t)for(let o=0;o<t.length;o++){const s=t[o];re(s)&&Ve(s,s.getChildren(),i),i(s,e)}}function Cl(e,t){const i=[],o=[],s=[];return e.forEach(r=>{const a=r.getColDef().lockPosition;a==="right"?s.push(r):a==="left"||a===!0?i.push(r):o.push(r)}),t.get("enableRtl")?[...s,...o,...i]:[...i,...o,...s]}function vl(e,t){let i=!0;return Ve(null,t,o=>{if(!re(o))return;const s=o,n=s.getColGroupDef();if(!(n&&n.marryChildren))return;const a=[];s.getLeafColumns().forEach(h=>{const g=e.indexOf(h);a.push(g)});const l=Math.max.apply(Math,a),d=Math.min.apply(Math,a),c=l-d,u=s.getLeafColumns().length-1;c>u&&(i=!1)}),i}function wl(e,t){if(!e||e.length==0)return;const i=t(e[0]);for(let o=1;o<e.length;o++)if(i!==t(e[o]))return;return i}function bl(e,t,i){if(!t.length)return;const o=t.length===1?t[0]:null,s=wl(t,n=>n.getPinned());e.dispatchEvent({type:"columnPinned",pinned:s??null,columns:t,column:o,source:i})}function Ap(e,t,i){if(!t.length)return;const o=t.length===1?t[0]:null,s=wl(t,n=>n.isVisible());e.dispatchEvent({type:"columnVisible",visible:s,columns:t,column:o,source:i})}function Sl(e,t,i,o){e.dispatchEvent({type:t,columns:i,column:i&&i.length==1?i[0]:null,source:o})}function ei(e,t,i,o,s=null){t?.length&&e.dispatchEvent({type:"columnResized",columns:t,column:t.length===1?t[0]:null,flexColumns:s,finished:i,source:o})}function Fe(e,t,i){const{colModel:o,rowGroupColsSvc:s,pivotColsSvc:n,autoColSvc:r,selectionColSvc:a,colAnimation:l,visibleCols:d,pivotResultCols:c,environment:u,valueColsSvc:h,eventSvc:g,gos:p}=e,f=o.getColDefCols()??[],m=a?.getColumns();if(!f?.length&&!m?.length)return!1;if(t?.state&&!t.state.forEach)return R(32),!1;const C=(E,x,I,H,G)=>{if(!E)return;const L=Fp(x,t.defaultState),A=L("flex").value1;if(fl(e,E,L("hide").value1,L("sort").value1,L("sortIndex").value1,L("pinned").value1,A,i),A==null){const Q=L("width").value1;if(Q!=null){const ae=E.getColDef().minWidth??u.getDefaultColumnMinWidth();ae!=null&&Q>=ae&&E.setActualWidth(Q,i)}}G||!E.isPrimary()||(h?.syncColumnWithState(E,i,L),s?.syncColumnWithState(E,i,L,I),n?.syncColumnWithState(E,i,L,H))},v=(E,x,I)=>{const H=Rl(e,i),G=x.slice(),L={},A={},Q=[],ae=[],Le=[];let pe=0;const vg=s?.columns.slice()??[],wg=n?.columns.slice()??[];E.forEach(ce=>{const vi=ce.colId;if(vi.startsWith(Qe)){Q.push(ce),Le.push(ce);return}if(Xe(vi)){ae.push(ce),Le.push(ce);return}const _t=I(vi);_t?(C(_t,ce,L,A,!1),me(G,_t)):(Le.push(ce),pe+=1)});const Yr=ce=>C(ce,null,L,A,!1);G.forEach(Yr),s?.sortColumns(xl.bind(s,L,vg)),n?.sortColumns(xl.bind(n,A,wg)),o.refreshCols(!1);const Qr=(ce,vi,Es=[])=>{vi.forEach(_t=>{const Zr=ce(_t.colId);me(Es,Zr),C(Zr,_t,null,null,!0)}),Es.forEach(Yr)};return Qr(ce=>r?.getColumn(ce)??null,Q,r?.getColumns()?.slice()),Qr(ce=>a?.getColumn(ce)??null,ae,a?.getColumns()?.slice()),Ip(t,o,p),d.refresh(i),g.dispatchEvent({type:"columnEverythingChanged",source:i}),H(),{unmatchedAndAutoStates:Le,unmatchedCount:pe}};l?.start();let{unmatchedAndAutoStates:w,unmatchedCount:y}=v(t.state||[],f,E=>o.getColDefCol(E));if(w.length>0||F(t.defaultState)){const E=c?.getPivotResultCols()?.list??[];y=v(w,E,x=>c?.getPivotResultCol(x)??null).unmatchedCount}return l?.finish(),y===0}function yl(e,t){const{colModel:i,autoColSvc:o,selectionColSvc:s,eventSvc: