UNPKG

ag-grid-community

Version:

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

5 lines 1.36 MB
(function(Bi,lo){typeof exports=="object"&&typeof module<"u"?module.exports=lo():typeof define=="function"&&define.amd?define("agGrid",lo):Bi.agGrid=lo()})(typeof globalThis<"u"?globalThis:typeof self<"u"?self:this,function(){var Bi={},lo=Bi,Gr={exports:Bi};if(typeof gA>"u")var gA=function(t){throw new Error("Unknown module: "+t)};var Nr=Object.defineProperty,Pv=Object.getOwnPropertyDescriptor,Dv=Object.getOwnPropertyNames,Mv=Object.prototype.hasOwnProperty,Tv=(e,t)=>{for(var i in t)Nr(e,i,{get:t[i],enumerable:!0})},Av=(e,t,i,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of Dv(t))!Mv.call(e,s)&&s!==i&&Nr(e,s,{get:()=>t[s],enumerable:!(o=Pv(t,s))||o.enumerable});return e},Iv=e=>Av(Nr({},"__esModule",{value:!0}),e),Ud={};Tv(Ud,{ALWAYS_SYNC_GLOBAL_EVENTS:()=>es,AgAbstractCellEditor:()=>Ao,AgAbstractInputField:()=>jt,AgAbstractLabel:()=>al,AgCheckbox:()=>Ko,AgCheckboxSelector:()=>or,AgColumn:()=>vi,AgColumnGroup:()=>Yi,AgContentEditableField:()=>yv,AgContentEditableFieldSelector:()=>aA,AgFieldSet:()=>Rv,AgFieldSetSelector:()=>cA,AgFilterButtonSelector:()=>UD,AgInputDateField:()=>sm,AgInputDateFieldSelector:()=>Wl,AgInputNumberField:()=>wr,AgInputNumberFieldSelector:()=>_l,AgInputTextArea:()=>rm,AgInputTextAreaSelector:()=>nm,AgInputTextField:()=>mt,AgInputTextFieldSelector:()=>ss,AgPickerField:()=>am,AgPromise:()=>te,AgProvidedColumnGroup:()=>Fo,AgRadioButton:()=>nd,AgRadioButtonSelector:()=>QD,AgSelect:()=>br,AgSelectSelector:()=>lm,AgToggleButton:()=>Ev,AgToggleButtonSelector:()=>hA,AlignedGridsModule:()=>Vf,AllCommunityModule:()=>sv,AutoGenerateColumnsModule:()=>$f,BaseComponentWrapper:()=>iA,BaseCreator:()=>Xf,BaseGridSerializingSession:()=>Jf,BaseSelectionService:()=>jC,BeanStub:()=>R,BigIntFilterModule:()=>FC,CellApiModule:()=>Mf,CellRangeType:()=>bh,CellSpanModule:()=>UC,CellStyleModule:()=>iv,CheckboxEditorModule:()=>Om,ClientSideRowModelApiModule:()=>Jg,ClientSideRowModelModule:()=>el,ColumnApiModule:()=>ul,ColumnAutoSizeModule:()=>Yf,ColumnHoverModule:()=>Zf,Component:()=>Q,CsvExportModule:()=>tm,CustomEditorModule:()=>zm,CustomFilterModule:()=>RC,DETAIL_ROW_ID_PREFIX:()=>Zn,DateEditorModule:()=>Vm,DateFilterModule:()=>PC,DragAndDropModule:()=>op,DragSourceType:()=>sh,EventApiModule:()=>AC,ExternalFilterModule:()=>MC,FakeHScrollComp:()=>Yh,FakeVScrollComp:()=>Zh,FileInputOverlayModule:()=>_f,FilterButtonComp:()=>rd,FilterComp:()=>tC,FilterWrapperComp:()=>eC,GRAND_TOTAL_ROW_ID:()=>Zu,GROUP_AUTO_COLUMN_ID:()=>Si,GROUP_HIERARCHY_COLUMN_ID_PREFIX:()=>w1,GROUP_TOTAL_ROW_ID_PREFIX:()=>Os,GridBodyCtrl:()=>Jh,GridCoreCreator:()=>If,GridCtrl:()=>ug,GridHeaderCtrl:()=>Bh,GridStateModule:()=>VC,HeaderRowContainerCtrl:()=>Kh,HighlightChangesModule:()=>zC,InfiniteRowModelModule:()=>TC,KeyCode:()=>S,LargeTextEditorModule:()=>Nm,LocaleModule:()=>kC,LocaleService:()=>IC,ManagedFocusFeature:()=>Zi,ModuleRegistry:()=>La,NumberEditorModule:()=>Bm,NumberFilterModule:()=>xC,PaginationModule:()=>kd,PaginationPageNumbersModule:()=>GC,PinnedRowModel:()=>vh,PinnedRowModule:()=>NC,PositionableFeature:()=>rh,ProvidedFilter:()=>lh,QuickFilterModule:()=>DC,ROOT_NODE_ID:()=>Vs,ROW_NUMBERS_COLUMN_ID:()=>Wu,RenderApiModule:()=>WC,RowApiModule:()=>zf,RowAutoHeightModule:()=>_C,RowContainerCtrl:()=>ng,RowDragModule:()=>sp,RowNode:()=>Ft,RowSelectionModule:()=>XC,RowStyleModule:()=>ov,SELECTION_COLUMN_ID:()=>Hs,STRUCTURED_SCHEMA_FEATURES:()=>eb,ScrollApiModule:()=>Wf,SelectEditorModule:()=>Gm,ServerSideTransactionResultStatus:()=>wh,TabGuardComp:()=>Ia,TabGuardCtrl:()=>oA,TabGuardFeature:()=>sA,TextEditorModule:()=>Hm,TextFilterModule:()=>EC,TooltipModule:()=>Nl,TouchListener:()=>Ei,UndoRedoEditModule:()=>Lm,ValidationModule:()=>zd,ValueCacheModule:()=>Df,VanillaFrameworkOverrides:()=>Af,_BOOLEAN_MIXED_GRID_OPTIONS:()=>El,_BaseSingleColService:()=>$C,_ChangedRowNodes:()=>qo,_ColumnFilterModule:()=>no,_ColumnGroupModule:()=>wp,_ColumnMoveModule:()=>fp,_CsrmSsrmSharedApiModule:()=>Ng,_DATA_TYPE_DERIVED_COL_DEF_PROPERTIES:()=>X2,_DragModule:()=>il,_EditCoreModule:()=>Mt,_EmptyBean:()=>Ab,_FilterCoreModule:()=>Ir,_FilterValueModule:()=>Td,_GET_ALL_EVENTS:()=>BE,_GET_ALL_GRID_OPTIONS:()=>hf,_GET_SHALLOW_GRID_OPTIONS:()=>YE,_HeaderComp:()=>ff,_HorizontalResizeModule:()=>rp,_KeyboardNavigationModule:()=>Rf,_PUBLIC_EVENTS:()=>Sl,_PUBLIC_EVENT_HANDLERS_MAP:()=>lr,_PopupModule:()=>is,_ROW_ID_PREFIX_BOTTOM_PINNED:()=>zs,_ROW_ID_PREFIX_ROW_GROUP:()=>ia,_ROW_ID_PREFIX_TOP_PINNED:()=>Ns,_RowModelSharedApiModule:()=>zg,_STOP_PROPAGATION_CALLBACKS:()=>Mo,_SharedDragAndDropModule:()=>ol,_SharedExportModule:()=>Qf,_SharedMenuModule:()=>qm,_SharedRowSelectionModule:()=>QC,_SortModule:()=>Ja,_SsrmInfiniteSharedApiModule:()=>Wg,_UserColumnService:()=>LC,_addAdditionalCss:()=>of,_addColumnDefaultAndTypes:()=>Is,_addFocusableContainerListener:()=>Ph,_addGridCommonParams:()=>z,_applyColumnState:()=>Et,_applyHeaderWrapperHidden:()=>Uh,_applyHeaderWrapperMaxHeight:()=>$h,_areCellsEqual:()=>Us,_attemptToRestoreCellFocus:()=>Mh,_buildColumnTree:()=>bp,_canSkipShowingRowGroup:()=>cu,_clamp:()=>gi,_combineAttributesAndGridOptions:()=>e1,_consoleError:()=>ag,_convertColumnEventSourceType:()=>yi,_coreThemeDefaults:()=>Mp,_createCellId:()=>yh,_createElement:()=>V,_createGlobalRowEvent:()=>oa,_createIcon:()=>$g,_createIconNoSpan:()=>ce,_createRowNodeSibling:()=>ch,_createUserColumn:()=>Nn,_createValidationWarning:()=>W,_csrmFirstLeaf:()=>$o,_csrmReorderAllLeafs:()=>_g,_defaultPivotSort:()=>Kn,_destroyColumnTreeAll:()=>qu,_destroyColumnTreeUnused:()=>Ku,_dispatchColumnChangedEvent:()=>ks,_doDeltaSort:()=>Qg,_emitValidationWarning:()=>nf,_errMsg:()=>it,_errorForGrid:()=>Lg,_errorWithoutAttribution:()=>Ua,_findEnterpriseCoreModule:()=>wg,_focusGridInnerElement:()=>Dh,_focusNextGridCoreContainer:()=>Fi,_forEachChangedGroupDepthFirst:()=>Lr,_formatNumberCommas:()=>ou,_getAbsoluteRowIndex:()=>xh,_getAvailableSortTypes:()=>C1,_getCallbackForEvent:()=>vu,_getCellByPosition:()=>xi,_getCellCtrlForEventTarget:()=>js,_getCellPositionForEvent:()=>ep,_getCellRendererDetails:()=>Xn,_getCheckboxLocation:()=>yo,_getCheckboxes:()=>Ci,_getClientSideRowModel:()=>je,_getColumnStateFromColDef:()=>Uu,_getDefaultFloatingFilterType:()=>Xm,_getDefaultSimpleFilter:()=>Qm,_getDisplaySortForColumn:()=>zu,_getEditorRendererDetails:()=>Y1,_getEnableColumnSelection:()=>zt,_getFillHandle:()=>Y0,_getFilterDetails:()=>th,_getFilterModel:()=>fe,_getFilterParamsForDataType:()=>Zm,_getFirstRow:()=>da,_getFloatingFilterCompDetails:()=>ih,_getFloatingFiltersHeight:()=>pa,_getGlobalGridOption:()=>kn,_getGrandTotalPinnedFloat:()=>au,_getGrandTotalRow:()=>Bn,_getGridOption:()=>i1,_getGridRegisteredModules:()=>OS,_getGroupAggFiltering:()=>bo,_getGroupSelection:()=>Eo,_getGroupSelectsDescendants:()=>Ki,_getGroupTotalRowCallback:()=>$0,_getHeaderCheckbox:()=>So,_getHeaderClassesFromColDef:()=>Sa,_getHeaderRowCount:()=>Ih,_getInnerCellRendererDetails:()=>N1,_getIsRowSelectable:()=>As,_getLastRow:()=>ca,_getMaxConcurrentDatasourceRequests:()=>uu,_getNormalisedMousePosition:()=>tl,_getPinnedSectionWidths:()=>fa,_getRowAbove:()=>Lo,_getRowBelow:()=>ua,_getRowContainerClass:()=>sg,_getRowContainerOptions:()=>zo,_getRowCtrlForEventTarget:()=>ig,_getRowHeightAsNumber:()=>Nt,_getRowHeightForNode:()=>yt,_getRowIdCallback:()=>mi,_getRowNode:()=>Ye,_getRowSelectionMode:()=>Ro,_getRowSpanContainerClass:()=>rg,_getServerSideRowModel:()=>dh,_getShouldDisplayTooltip:()=>U6,_getSortModel:()=>Xa,_getSuppressMultiRanges:()=>j0,_getToolPanelClassesFromColDef:()=>Vb,_getValueUsingDotPath:()=>mr,_getViewportRowModel:()=>tb,_interpretAsRightClick:()=>wu,_isAnimateRows:()=>fi,_isCalculatedColumnsEnabled:()=>sf,_isCellSelectionEnabled:()=>ht,_isClientSideRowModel:()=>Ee,_isColumnMenuAnchoringEnabled:()=>Cu,_isColumnsSortingCoupledToGroup:()=>Rt,_isDomLayout:()=>pe,_isFiniteNumber:()=>Ts,_isFullWidthGroupRow:()=>On,_isGetRowHeightFunction:()=>Ln,_isGroupHideColumnsUntilExpanded:()=>du,_isGroupMultiAutoColumn:()=>lu,_isGroupRowsSticky:()=>Hn,_isGroupUseEntireRow:()=>Vn,_isHeaderFocusSuppressed:()=>ze,_isLegacyMenuEnabled:()=>Ie,_isMultiRowSelection:()=>qi,_isProtoPollutionKey:()=>Ps,_isRowBefore:()=>Rh,_isRowNumbers:()=>ru,_isRowSelection:()=>St,_isSameRow:()=>Eh,_isServerSideRowModel:()=>$i,_isSetFilterByDefault:()=>mu,_isShowTooltipWhenTruncated:()=>os,_isStopPropagationForAgGrid:()=>pt,_isUseApplyButton:()=>To,_isUsingNewCellSelectionAPI:()=>K0,_isUsingNewRowSelectionAPI:()=>hu,_logPreInitWarn:()=>iy,_mergeDeep:()=>Ae,_mergedEqual:()=>Ui,_normaliseCalculatedExpression:()=>OE,_normalizeSortType:()=>gt,_partitionByPinned:()=>ma,_preInitErrMsg:()=>oy,_prevOrNextDisplayedRow:()=>Ws,_processOnChange:()=>t1,_refreshFilterUi:()=>Jl,_refreshHandlerAndUi:()=>_m,_registerModule:()=>Mi,_resetColumnState:()=>Iu,_resetMissingModuleReports:()=>YS,_resolvePivotColumnForRow:()=>Wt,_resolvePivotSort:()=>v1,_resolveSortOptions:()=>Kg,_selectAllCells:()=>og,_setColMenuVisible:()=>td,_setColsVisible:()=>Po,_setUmd:()=>vg,_shouldUpdateColVisibilityAfterGroup:()=>q0,_skipFocusableContainerListenerForAgGrid:()=>wb,_stopPropagationForAgGrid:()=>$t,_suppressCellMouseEvent:()=>No,_themeAlpineParams:()=>Yp,_themeBalhamParams:()=>Zp,_themeMaterialParams:()=>Xp,_themeQuartzParams:()=>Kp,_toFiniteNumber:()=>iu,_translateForFilter:()=>Ke,_unwrapUserComp:()=>Dt,_updateFilterModel:()=>ed,_updatePinnedSectionWidths:()=>Hh,_updateRowNodeAfterSort:()=>Xg,_warnForGrid:()=>$a,_warnOnce:()=>Wo,_warnWithoutAttribution:()=>_a,agTestIdFor:()=>D,buttonStyleAlpine:()=>Ip,buttonStyleBalham:()=>kp,buttonStyleBase:()=>Tp,buttonStyleQuartz:()=>Ap,checkboxStyleDefault:()=>Zo,colorSchemeDark:()=>LR,colorSchemeDarkBlue:()=>OR,colorSchemeDarkWarm:()=>BR,colorSchemeLight:()=>DR,colorSchemeLightCold:()=>IR,colorSchemeLightWarm:()=>TR,colorSchemeVariable:()=>Qo,columnDropStyleBordered:()=>fl,columnDropStylePlain:()=>ml,convertColumnGroupState:()=>d6,convertColumnState:()=>Hf,createGrid:()=>r6,createPart:()=>Z,createTheme:()=>Yo,dispatchColumnVisibleEvent:()=>zn,enableDevValidations:()=>j5,forEachColDef:()=>Yn,getGridApi:()=>a6,getGridElement:()=>Lf,iconOverrides:()=>KR,iconSetAlpine:()=>Bp,iconSetBalham:()=>Hp,iconSetMaterial:()=>Vp,iconSetQuartz:()=>nr,iconSetQuartzBold:()=>QR,iconSetQuartzLight:()=>ZR,iconSetQuartzRegular:()=>zp,inputStyleBase:()=>tE,inputStyleBordered:()=>ar,inputStyleUnderlined:()=>Wp,isColumn:()=>g1,isColumnGroup:()=>Ne,isColumnGroupAutoCol:()=>jn,isColumnSelectionCol:()=>Do,isCombinedFilterModel:()=>ea,isProvidedColumnGroup:()=>xo,isRowNumberCol:()=>Ge,isSpecialCol:()=>_u,onRowHeightChanged:()=>ja,provideGlobalGridOptions:()=>W0,resetRowHeights:()=>Ya,setupAgTestIds:()=>tA,styleMaterial:()=>Qp,tabStyleAlpine:()=>$p,tabStyleBase:()=>nE,tabStyleMaterial:()=>Up,tabStyleQuartz:()=>_p,tabStyleRolodex:()=>qp,themeAlpine:()=>CE,themeBalham:()=>wE,themeMaterial:()=>yE,themeQuartz:()=>jp,wrapAgTestIdFor:()=>Y5}),Gr.exports=Iv(Ud);var S={BACKSPACE:"Backspace",TAB:"Tab",ENTER:"Enter",ESCAPE:"Escape",SPACE:" ",LEFT:"ArrowLeft",UP:"ArrowUp",RIGHT:"ArrowRight",DOWN:"ArrowDown",DELETE:"Delete",F2:"F2",PAGE_UP:"PageUp",PAGE_DOWN:"PageDown",PAGE_HOME:"Home",PAGE_END:"End",A:"KeyA",C:"KeyC",D:"KeyD",V:"KeyV",X:"KeyX",Y:"KeyY",Z:"KeyZ"},kv=65,Lv=67,Hv=86,Bv=68,Vv=90,Ov=89;function $d(e){const{keyCode:t}=e;let i;switch(t){case kv:i=S.A;break;case Lv:i=S.C;break;case Hv:i=S.V;break;case Bv:i=S.D;break;case Vv:i=S.Z;break;case Ov:i=S.Y;break;default:i=e.code}return i}var zr="36.1.0",Gv=':where([class^=ag-]),:where([class^=ag-]):after,:where([class^=ag-]):before{box-sizing:border-box}:where([class^=ag-]):where(button){color:inherit}:where([class^=ag-]):where(input:not([type]),input[type=text],input[type=number],input[type=tel],input[type=date],input[type=datetime-local],textarea){font-family:inherit;font-size:inherit;line-height:inherit;padding:0}:where([class^=ag-]):where(div,span,label):focus-visible{box-shadow:inset var(--ag-focus-shadow);outline:none;&:where(.invalid){box-shadow:inset var(--ag-focus-error-shadow)}}:where([class^=ag-]) ::-ms-clear{display:none}.ag-hidden{display:none!important}.ag-invisible{visibility:hidden!important}.ag-tab-guard{display:block;height:0;position:absolute;width:0}.ag-tab-guard-top{top:1px}.ag-tab-guard-bottom{bottom:1px}.ag-measurement-container{height:0;overflow:hidden;visibility:hidden;width:0}.ag-measurement-element-border{display:inline-block}.ag-measurement-element-border:before{border-left:var(--ag-internal-measurement-border);content:"";display:block}.ag-aria-description-container{border:0;clip-path:inset(50%);height:1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px;z-index:9999}.ag-popup{background-color:var(--ag-wrapper-background-color)}.ag-popup-child{max-width:min(100%,calc(100vw - 30px));top:0;z-index:5}.ag-popup-child:where(:not(.ag-tooltip-custom)){box-shadow:var(--ag-popup-shadow)}.ag-input-wrapper,.ag-picker-field-wrapper{align-items:center;display:flex;flex:1 1 auto;line-height:normal;position:relative}.ag-input-field{align-items:center;display:flex;flex-direction:row}.ag-input-field-input:where(:not([type=checkbox],[type=radio])){flex:1 1 auto;min-width:0;width:100%}.ag-styled-root{cursor:default;display:contents;line-height:normal;white-space:normal;-webkit-font-smoothing:antialiased;color:var(--ag-text-color);color-scheme:var(--ag-browser-color-scheme);font-family:var(--ag-font-family);font-size:var(--ag-font-size);font-weight:var(--ag-font-weight);--ag-indentation-level:0}:where(.ag-toolbar) .ag-react-container:where(:not(.ag-react-wrapper-block)){display:contents}:where(.ag-icon):before{align-items:center;background-color:currentcolor;color:inherit;content:"";display:flex;font-family:inherit;font-size:var(--ag-icon-size);font-style:normal;font-variant:normal;height:var(--ag-icon-size);justify-content:center;line-height:var(--ag-icon-size);-webkit-mask-size:contain;mask-size:contain;text-transform:none;width:var(--ag-icon-size)}.ag-icon{background-position:50%;background-repeat:no-repeat;background-size:contain;color:var(--ag-icon-color);display:block;height:var(--ag-icon-size);position:relative;-webkit-print-color-adjust:exact;print-color-adjust:exact;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:var(--ag-icon-size)}.ag-disabled .ag-icon,[disabled] .ag-icon{opacity:.5}.ag-icon-grip.ag-disabled,.ag-icon-grip[disabled]{opacity:.35}.ag-icon-loading{animation-duration:1s;animation-iteration-count:infinite;animation-name:spin;animation-timing-function:linear}@keyframes spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.ag-resizer{pointer-events:none;position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none;z-index:1}:where(.ag-resizer){&.ag-resizer-topLeft{cursor:nwse-resize;height:5px;left:0;top:0;width:5px}&.ag-resizer-top{cursor:ns-resize;height:5px;left:5px;right:5px;top:0}&.ag-resizer-topRight{cursor:nesw-resize;height:5px;right:0;top:0;width:5px}&.ag-resizer-right{bottom:5px;cursor:ew-resize;right:0;top:5px;width:5px}&.ag-resizer-bottomRight{bottom:0;cursor:nwse-resize;height:5px;right:0;width:5px}&.ag-resizer-bottom{bottom:0;cursor:ns-resize;height:5px;left:5px;right:5px}&.ag-resizer-bottomLeft{bottom:0;cursor:nesw-resize;height:5px;left:0;width:5px}&.ag-resizer-left{bottom:5px;cursor:ew-resize;left:0;top:5px;width:5px}}.ag-menu{background-color:var(--ag-menu-background-color);border:var(--ag-menu-border);border-radius:var(--ag-border-radius);box-shadow:var(--ag-menu-shadow);color:var(--ag-menu-text-color);max-height:100%;overflow-y:auto;position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none}',Nv=typeof window!="object"||!window?.document?.fonts?.forEach,qd=!1,zv=!1,Wr=()=>Nv&&!zv||qd,ei=(e,t,i,o,s,r,n=!1)=>{if(Wr())return;let a=e;o&&(a=`@layer ${CSS.escape(o).replaceAll("\\.",".")} { ${e} }`);let l=st.map.get(t);if(l||(l=[],st.map.set(t,l)),l.some(h=>h.injectedCss===a))return;const d=document.createElement("style");r&&d.setAttribute("nonce",r),d.dataset.agCss=i,d.dataset.agCssVersion=zr,d.textContent=a;const c={rawCss:e,injectedCss:a,el:d,priority:s,isParams:n};let u;for(const h of l){if(h.priority>s)break;u=h}if(u){u.el.after(d);const h=l.indexOf(u);l.splice(h+1,0,c)}else t.nodeName==="STYLE"?t.after(d):t.insertBefore(d,t.querySelector(":not(title, meta)")),l.push(c)},Kd=(e,t,i,o)=>{ei(Gv,e,"shared",t,0,i),o?.forEach((s,r)=>s.forEach(n=>ei(n,e,r,t,0,i)))},Wv=(e,t,i,o,s,r)=>{if(Wr())return;const n=st.grids.get(e);n?n.paramsCss=t:st.grids.set(e,{styleContainer:o,paramsCss:t}),_r(o),t&&i&&ei(t,o,i,s,2,r,!0)},_v=e=>{const t=st.grids.get(e)?.styleContainer;if(!t)return;st.grids.delete(e),Array.from(st.grids.values()).some(o=>o.styleContainer===t)?_r(t):(_r(t,!0),st.map.delete(t))},_r=(e,t=!1)=>{const i=new Set;for(const s of st.grids.values())s.styleContainer===e&&i.add(s.paramsCss);const o=st.map.get(e)??[];for(let s=o.length-1;s>=0;s--)(t||o[s].isParams&&!i.has(o[s].rawCss))&&(o[s].el.remove(),o.splice(s,1))},jd=()=>{const e=globalThis.agStyleInjectionVersions??(globalThis.agStyleInjectionVersions=new Map);let t=e.get(zr);return t||(t={map:new WeakMap,grids:new Map,paramsId:0},e.set(zr,t)),t},st=jd(),Z=e=>new Yd(e),At="$default",Uv=0,Yd=class{constructor({feature:e,params:t,modeParams:i={},css:o,cssImports:s}){this.feature=e,this.css=o,this.cssImports=s,this.modeParams={[At]:{...i[At]??{},...t??{}},...i}}use(e,t,i){let o=this._inject;if(o==null){let{css:s}=this;if(s){const r=`ag-theme-${this.feature??"part"}-${++Uv}`;typeof s=="function"&&(s=s()),s=`:where(.${r}) { ${s} } `;for(const n of this.cssImports??[])s=`@import url(${JSON.stringify(n)}); ${s}`;o={css:s,class:r}}else o=!1;this._inject=o}return o&&e&&ei(o.css,e,o.class,t,1,i),o?o.class:!1}};function $v(e,t){return new te(i=>{i(window.setInterval(e,t))})}var te=class ls{constructor(t){this.status=0,this.resolution=null,this.waiters=[],t(i=>this.onDone(i),i=>this.onReject(i))}static all(t){return t.length?new ls(i=>{let o=t.length;const s=new Array(o);t.forEach((r,n)=>{r.then(a=>{s[n]=a,o--,o===0&&i(s)})})}):ls.resolve()}static resolve(t=null){return new ls(i=>i(t))}then(t){return new ls(i=>{this.status===1?i(t(this.resolution)):this.waiters.push(o=>i(t(o)))})}onDone(t){this.status=1,this.resolution=t;for(const i of this.waiters)i(t)}onReject(t){}},ti=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()},r=this.getListeners(i,t,!1);if((r?.size??0)>0){const a=new Set(r);for(const l of a)r?.has(l)&&s(()=>l(e))}const n=this.getGlobalListeners(t);if(n.size>0){const a=new Set(n);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)},i=this.frameworkOverrides;i?i.wrapIncoming(t):t(),this.scheduled=!0}}flushAsyncQueue(){this.scheduled=!1;const e=this.asyncFunctionsQueue.slice();this.asyncFunctionsQueue=[];for(const t of e)t()}};function ge(e){const t=e?.length;return t?e[t-1]:void 0}function vt(e,t,i){if(e===t)return!0;if(!e||!t)return e==null&&t==null;const o=e.length;if(o!==t.length)return!1;if(i){for(let s=0;s<o;++s){const r=e[s],n=t[s];if(r!==n&&!i(r,n))return!1}return!0}for(let s=0;s<o;++s)if(e[s]!==t[s])return!1;return!0}function qv(e,t){if(!t)return[];const i=t.length;if(e&&e!==t&&e.length===i){for(let o=0;o<i;++o)if(e[o]!==t[o])return t.slice();return e}return t.slice()}function It(e,t){const i=e.indexOf(t);i>=0&&e.splice(i,1)}function Kv(e,t){const i=e.length,o=t.length;if(!i||!o)return;let s=0;const r=new Set(t);for(let n=0;n<i;++n){const a=e[n];r.has(a)||(n!==s&&(e[s]=a),++s)}s<i&&(e.length=s)}function Zd(e,t,i){const o=t.length;for(let s=0;s<o;++s)It(e,t[s]);for(let s=o-1;s>=0;s--)e.splice(i,0,t[s])}function jv(e,t){if(e===t)return[];const i=e?.length,o=t?.length;if(!i)return t?t.slice():[];if(!o)return e?e.slice():[];const s=new Set(e);for(let r=0;r<o;++r){const n=t[r];s.delete(n)||s.add(n)}return Array.from(s)}function ds(e,t,i){const o=e.get(t);if(o===void 0){e.set(t,[i]);return}o.push(i)}function Yv(e){const t=new Map;if(e)for(let i=0,o=e.length;i<o;++i)t.set(e[i],i);return t}var wt=e=>e==null||e===""?null:e;function T(e){return e!=null&&e!==""}function ye(e){return!T(e)}var Qd=e=>e!=null&&typeof e.toString=="function"?e.toString():null,co=(e,t)=>{const i=e?JSON.stringify(e):null,o=t?JSON.stringify(t):null;return i===o},Xd=(e,t,i=!1)=>(typeof e=="object"&&e!==null&&typeof e.toNumber=="function"&&(e=e.toNumber()),typeof t=="object"&&t!==null&&typeof t.toNumber=="function"&&(t=t.toNumber()),e==null?t==null?0:-1:t==null?1:!i||typeof e!="string"?e>t?1:e<t?-1:0:e.localeCompare(t));function $e(e){return e.eRootDiv.getRootNode()}function J(e){return $e(e).activeElement}function ve(e){const{gos:t,eRootDiv:i}=e;let o=null;const s=t.get("getDocument");return s&&T(s)?o=s():i&&(o=i.ownerDocument),o&&T(o)?o:document}function Ur(e){const t=J(e);return t===null||t===ve(e).body}function cs(e){return ve(e).defaultView||window}function $r(e){let t=null,i;try{t=ve(e).fullscreenElement}catch{}finally{t||(t=$e(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 Zv(e){return $r(e)?.clientWidth??(window.innerWidth||-1)}function Qv(e){return $r(e)?.clientHeight??(window.innerHeight||-1)}function Je(e,t,i){i==null||typeof i=="string"&&i==""?Jd(e,t):qe(e,t,i)}function qe(e,t,i){e.setAttribute(ec(t),i.toString())}function Jd(e,t){e.removeAttribute(ec(t))}function ec(e){return`aria-${e}`}function rt(e,t){t?e.setAttribute("role",t):e.removeAttribute("role")}function Xv(e){return e.getAttribute("aria-label")}function ii(e,t){Je(e,"label",t)}function uo(e,t){Je(e,"labelledby",t)}function tc(e,t){Je(e,"live",t)}function Jv(e,t){Je(e,"atomic",t)}function ew(e,t){Je(e,"relevant",t)}function qr(e,t){Je(e,"invalid",t)}function ic(e,t){Je(e,"disabled",t)}function oc(e,t){Je(e,"hidden",t)}function Kr(e,t){qe(e,"expanded",t)}function tw(e,t){qe(e,"setsize",t)}function iw(e,t){qe(e,"posinset",t)}function ow(e,t){qe(e,"multiselectable",t)}function sw(e,t){qe(e,"rowcount",t)}function us(e,t){qe(e,"rowindex",t)}function rw(e,t){qe(e,"rowspan",t)}function nw(e,t){qe(e,"colcount",t)}function sc(e,t){qe(e,"colindex",t)}function aw(e,t){qe(e,"colspan",t)}function lw(e,t){qe(e,"sort",t)}function dw(e){Jd(e,"sort")}function rc(e,t){Je(e,"selected",t)}function cw(e,t){Je(e,"controls",t)}function nc(e,t){Je(e,"owns",t)}function hs(e,t){return t===void 0?e("ariaIndeterminate","indeterminate"):t===!0?e("ariaChecked","checked"):e("ariaUnchecked","unchecked")}var uw="[tabindex], input, select, button, textarea, [href]",ac="[disabled], .ag-disabled:not(.ag-button), .ag-disabled *";function ho(e){return!e||!e.matches("input, select, button, textarea")||!e.matches(ac)?!1:at(e)}function Y(e,t,i={}){const{skipAriaHidden:o}=i;e.classList.toggle("ag-hidden",!t),o||oc(e,!t)}function hw(e,t,i={}){const{skipAriaHidden:o}=i;e.classList.toggle("ag-invisible",!t),o||oc(e,!t)}function go(e,t){const i="disabled",o=t?r=>r.setAttribute(i,""):r=>r.removeAttribute(i);o(e);const s=e.querySelectorAll("input")??[];for(const r of s)o(r)}function oi(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 si(e){const{height:t,width:i,borderTopWidth:o,borderRightWidth:s,borderBottomWidth:r,borderLeftWidth:n,paddingTop:a,paddingRight:l,paddingBottom:d,paddingLeft:c,marginTop:u,marginRight:h,marginBottom:g,marginLeft:p,boxSizing:f}=window.getComputedStyle(e),m=Number.parseFloat;return{height:m(t||"0"),width:m(i||"0"),borderTopWidth:m(o||"0"),borderRightWidth:m(s||"0"),borderBottomWidth:m(r||"0"),borderLeftWidth:m(n||"0"),paddingTop:m(a||"0"),paddingRight:m(l||"0"),paddingBottom:m(d||"0"),paddingLeft:m(c||"0"),marginTop:m(u||"0"),marginRight:m(h||"0"),marginBottom:m(g||"0"),marginLeft:m(p||"0"),boxSizing:f}}function jr(e){const t=si(e);return t.boxSizing==="border-box"?t.height-t.paddingTop-t.paddingBottom-t.borderTopWidth-t.borderBottomWidth:t.height}function gs(e){const t=si(e);return t.boxSizing==="border-box"?t.width-t.paddingLeft-t.paddingRight-t.borderLeftWidth-t.borderRightWidth:t.width}function lc(e){const{height:t,marginBottom:i,marginTop:o}=si(e);return Math.floor(t+i+o)}function ps(e){const{width:t,marginLeft:i,marginRight:o}=si(e);return Math.floor(t+i+o)}function dc(e){const t=e.getBoundingClientRect(),{borderTopWidth:i,borderLeftWidth:o,borderRightWidth:s,borderBottomWidth:r}=si(e);return{top:t.top+(i||0),left:t.left+(o||0),right:t.right+(s||0),bottom:t.bottom+(r||0)}}function nt(e,t){let i=e.scrollLeft;return t&&(i=Math.abs(i)),i}function Vi(e,t,i){i&&(t*=-1),e.scrollLeft=t}function we(e){for(;e?.firstChild;)e.firstChild.remove()}function Ve(e){e?.parentNode&&e.remove()}function cc(e){return!!e.offsetParent}function at(e){return e.checkVisibility?e.checkVisibility({checkVisibilityCSS:!0}):!(!cc(e)||window.getComputedStyle(e).visibility!=="visible")}function Yr(e){const t=document.createElement("div");return t.innerHTML=(e||"").trim(),t.firstChild}function uc(e,t,i){i?.nextSibling!==t&&(e.firstChild?i?i.nextSibling?e.insertBefore(t,i.nextSibling):e.appendChild(t):e.firstChild&&e.firstChild!==t&&e.prepend(t):e.appendChild(t))}function ri(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 gw(e){return e.replace(/[A-Z]/g,t=>`-${t.toLocaleLowerCase()}`)}function po(e,t){if(t)for(const i of Object.keys(t)){const o=t[i];if(!i?.length||o==null)continue;const s=gw(i),r=o.toString(),n=r.replace(/\s*!important/g,""),a=n.length!=r.length?"important":void 0;e.style.setProperty(s,n,a)}}function ni(e){return()=>{const t=e();return t?hc(t)||pw(t):!0}}function hc(e){return e.clientWidth<e.scrollWidth}function pw(e){return e.clientHeight<e.scrollHeight}function fs(e,t){t==="flex"?(e.style.removeProperty("width"),e.style.removeProperty("minWidth"),e.style.removeProperty("maxWidth"),e.style.flex="1 1 auto"):bt(e,t)}function bt(e,t){t=Zr(t),e.style.width=t,e.style.maxWidth=t,e.style.minWidth=t}function Oi(e,t){t=Zr(t),e.style.height=t,e.style.maxHeight=t,e.style.minHeight=t}function Zr(e){return typeof e=="number"?`${e}px`:e}function Qr(e){return e instanceof Node||e instanceof HTMLElement}function Fe(e,t,i){i==null||i===""?e.removeAttribute(t):e.setAttribute(t,i.toString())}function fw(e,t){if(!t.isContentEditable)return;const i=cs(e).getSelection();if(!i)return;const o=ve(e).createRange();o.selectNodeContents(t),o.collapse(!1),i.removeAllRanges(),i.addRange(o)}function kt(e,t,i){const s=cs(e).ResizeObserver,r=s?new s(i):null;return r?.observe(t),()=>r?.disconnect()}function mw(e,t,i,o){const r=cs(e).IntersectionObserver,n=r?new r(a=>{i(ge(a))},o):null;return n?.observe(t),()=>n?.disconnect()}function lt(e,t){const i=cs(e);i.requestAnimationFrame?i.requestAnimationFrame(t):i.webkitRequestAnimationFrame?i.webkitRequestAnimationFrame(t):i.setTimeout(t,0)}var gc="data-ref",Xr;function pc(){return Xr??(Xr=document.createTextNode(" ")),Xr.cloneNode()}function Lt(e){const{attrs:t,children:i,cls:o,ref:s,role:r,tag:n}=e,a=document.createElement(n);if(o&&(a.className=o),s&&a.setAttribute(gc,s),r&&a.setAttribute("role",r),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(pc()),l=!1),a.append(Lt(d)),a.appendChild(pc())))}return a}var Cw=["touchstart","touchend","touchmove","touchcancel","scroll"],vw=["wheel"],Jr={},ms=(()=>{const e={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};return i=>{if(typeof Jr[i]=="boolean")return Jr[i];const o=document.createElement(e[i]||"div");return i="on"+i,Jr[i]=i in o}})();function fc(e,t){return!t||!e?!1:bw(t).indexOf(e)>=0}function ww(e){const t=[];let i=e.target;for(;i;)t.push(i),i=i.parentElement;return t}function bw(e){const t=e;return t.path?t.path:t.composedPath?t.composedPath():ww(t)}function Sw(e,t,i){const o=yw(t);let s;o!=null&&(s={passive:o}),e.addEventListener(t,i,s)}var yw=e=>{const t=Cw.includes(e),i=vw.includes(e);if(t)return!0;if(i)return!1};function mc(e,t,i){if(i===0)return!1;const o=Math.abs(e.clientX-t.clientX),s=Math.abs(e.clientY-t.clientY);return Math.max(o,s)<=i}var Gi=(e,t)=>{const i=e.identifier;for(let o=0,s=t.length;o<s;++o){const r=t[o];if(r.identifier===i)return r}return null};function Cs(e,t){return e.gos.isElementInThisInstance(t.target)}function Rw(e,t,i){const s=e.getBoundingClientRect().height,r=Zv(i)-2,n=Qv(i)-2;if(!e.offsetParent)return;const l=dc(e.offsetParent),{clientY:d,clientX:c}=t;let u=d-l.top-s/2,h=c-l.left-10;const g=ve(i),p=g.defaultView||window,f=p.pageYOffset||g.documentElement.scrollTop,m=p.pageXOffset||g.documentElement.scrollLeft;r>0&&h+e.clientWidth>r+m&&(h=r+m-e.clientWidth),h<0&&(h=0),n>0&&u+e.clientHeight>n+f&&(u=n+f-e.clientHeight),u<0&&(u=0),e.style.left=`${h}px`,e.style.top=`${u}px`}var vs=(e,...t)=>{for(const i of t){const[o,s,r,n]=i;o.addEventListener(s,r,n),e.push(i)}},en=e=>{if(e){for(const[t,i,o,s]of e)t.removeEventListener(i,o,s);e.length=0}},Ht=e=>{e.cancelable&&e.preventDefault()};function Ew(e,t){return t}function Cc(e){return e?.getLocaleTextFunc()??Ew}function xw(e,t,i,o){const s=t[i];return e.getLocaleTextFunc()(i,typeof s=="function"?s(o):s,o)}function Fw(e){return(t,i,o)=>e({key:t,defaultValue:i,variableValues:o})}function Pw(e){return(t,i,o)=>{let s=e?.[t];if(s&&o?.length){let r=0;for(;!(r>=o.length||s.indexOf("${variable}")===-1);)s=s.replace("${variable}",o[r++])}return s??i}}var Dw={type:"destroyed"},Re=class{constructor(){this.beans=null,this.gos=null,this.eventSvc=null,this.destroyed=!1,this.localEventService=null,this.stubContext=null,this.destroyFunctions=null,this.propertyListenerId=0,this.lastChangeSetIdLookup=null}preWireBeans(e){this.beans=e,this.gos=e.gos,this.eventSvc=e.eventSvc,this.stubContext=e.context}destroy(){const e=this.destroyFunctions;if(e){for(let t=0;t<e.length;t++)e[t]();e.length=0}this.destroyed=!0,this.dispatchLocalEvent(Dw)}addEventListener(e,t,i){let o=this.localEventService;o||(o=new ti,this.localEventService=o),o.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=[],o=Object.keys(t);for(let s=0,r=o.length;s<r;++s){const n=o[s],a=t[n];a&&i.push(this._setupListener(e,n,a))}return i}_setupListener(e,t,i){if(this.destroyed)return()=>null;let o;if(Mw(e))e.__addEventListener(t,i),o=()=>(e.__removeEventListener(t,i),null);else{const s=Tw(e);e instanceof HTMLElement?Sw(e,t,i):s?e.addListener(t,i):e.addEventListener(t,i),o=s?()=>(e.removeListener(t,i),null):()=>(e.removeEventListener(t,i),null)}return this.registerDestroyFunc(o)}setupPropertyListener(e,t){const{gos:i}=this;i.addPropertyEventListener(e,t);const o=()=>(i.removePropertyEventListener(e,t),null);return this.registerDestroyFunc(o)}addManagedPropertyListener(e,t){return this.destroyed?()=>null:this.setupPropertyListener(e,t)}addManagedPropertyListeners(e,t){if(this.destroyed)return;const i=e.join("-")+this.propertyListenerId++,o=s=>{const r=s.changeSet;if(r){let a=this.lastChangeSetIdLookup;if(a||(a={},this.lastChangeSetIdLookup=a),r.id===a[i])return;a[i]=r.id}const n={type:"propertyChanged",changeSet:r,source:s.source};t(n)};for(let s=0,r=e.length;s<r;++s)this.setupPropertyListener(e[s],o)}isAlive(){return!this.destroyed}getLocaleTextFunc(){return Cc(this.beans.localeSvc)}pushDestroyFunc(e){const t=this.destroyFunctions;t?t.push(e):this.destroyFunctions=[e]}registerDestroyFunc(e){return this.pushDestroyFunc(e),()=>{e();const t=this.destroyFunctions;return t&&It(t,e),null}}addDestroyFunc(e){this.destroyed?e():this.pushDestroyFunc(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)}};Re.prototype.__v_skip=!0;function Mw(e){return e.__addEventListener!==void 0}function Tw(e){return e.eventServiceType==="global"}var x=null;function tn(e){return typeof e?.getGui=="function"}var vc=class{constructor(e){this.cssClassStates={},this.getGui=e}toggleCss(e,t){if(!e)return;if(e.includes(" ")){const o=(e||"").split(" ");if(o.length>1){for(const s of o)this.toggleCss(s,t);return}}this.cssClassStates[e]!==t&&e.length&&(this.getGui()?.classList.toggle(e,t),this.cssClassStates[e]=t)}},Aw=0,Ni=class extends Re{constructor(e,t){super(),this.suppressDataRefValidation=!1,this.displayed=!0,this.visible=!0,this.compId=Aw++,this.cssManager=new vc(()=>this.eGui),this.componentSelectors=new Map((t??[]).map(i=>[i.selector,i])),e&&this.setTemplate(e)}preConstruct(){this.wireTemplate(this.getGui()),this.addGlobalCss()}wireTemplate(e,t){e&&this.gos&&(this.applyElementsToComponent(e),this.createChildComponentsFromTags(e,t))}getCompId(){return this.compId}getDataRefAttribute(e){return e.getAttribute?e.getAttribute(gc):null}applyElementsToComponent(e,t,i,o=null){if(t===void 0&&(t=this.getDataRefAttribute(e)),t){const s=this[t];if(s===x)this[t]=o??e;else{const r=i?.[t];if(!this.suppressDataRefValidation&&!r)throw new Error(`data-ref: ${t} on ${this.constructor.name} with ${s}`)}}}createChildComponentsFromTags(e,t){const i=[];for(const o of e.childNodes??[])i.push(o);for(const o of i){if(!(o instanceof HTMLElement))continue;const s=this.createComponentFromElement(o,r=>{const n=r.getGui();if(n)for(const a of o.attributes??[])n.setAttribute(a.name,a.value)},t);if(s){if(s.addItems&&o.children.length){this.createChildComponentsFromTags(o,t);const r=Array.prototype.slice.call(o.children);s.addItems(r)}this.swapComponentForNode(s,e,o)}else o.childNodes&&this.createChildComponentsFromTags(o,t)}}createComponentFromElement(e,t,i){const o=e.nodeName,s=this.getDataRefAttribute(e),r=o.indexOf("AG-")===0,n=r?this.componentSelectors.get(o):null;let a=null;if(n){const l=i&&s?i[s]:void 0;a=new n.component(l),a.setParentComponent(this),this.createBean(a,null,t)}else if(r)throw new Error(`selector: ${o}`);return this.applyElementsToComponent(e,s,i,a),a}swapComponentForNode(e,t,i){const o=e.getGui();t.replaceChild(o,i),t.insertBefore(document.createComment(i.nodeName),o),this.addDestroyFunc(this.destroyBean.bind(this,e))}activateTabIndex(e,t){const i=t??this.gos.get("tabIndex");e||(e=[]),e.length||e.push(this.getGui());for(const o of e)o.setAttribute("tabindex",i.toString())}setTemplate(e,t,i){let o;typeof e=="string"||e==null?o=Yr(e):o=Lt(e),this.setTemplateFromElement(o,t,i)}setTemplateFromElement(e,t,i,o=!1){if(this.eGui=e,this.suppressDataRefValidation=o,t)for(let s=0;s<t.length;s++){const r=t[s];this.componentSelectors.set(r.selector,r)}this.wireTemplate(e,i)}getGui(){return this.eGui}getFocusableElement(){return this.eGui}getAriaElement(){return this.getFocusableElement()}setParentComponent(e){this.parentComponent=e}getParentComponent(){return this.parentComponent}setGui(e){this.eGui=e}queryForHtmlElement(e){return this.eGui.querySelector(e)}getContainerAndElement(e,t){let i=t;return e==null?null:(i||(i=this.eGui),Qr(e)?{element:e,parent:i}:{element:e.getGui(),parent:i})}prependChild(e,t){const{element:i,parent:o}=this.getContainerAndElement(e,t)||{};!i||!o||o.prepend(i)}appendChild(e,t){const{element:i,parent:o}=this.getContainerAndElement(e,t)||{};!i||!o||o.appendChild(i)}isDisplayed(){return this.displayed}setVisible(e,t={}){if(e!==this.visible){this.visible=e;const{skipAriaHidden:i}=t;hw(this.eGui,e,{skipAriaHidden:i})}}setDisplayed(e,t={}){if(e!==this.displayed){this.displayed=e;const{skipAriaHidden:i}=t;Y(this.eGui,e,{skipAriaHidden:i});const o={type:"displayChanged",visible:this.displayed};this.dispatchLocalEvent(o)}}destroy(){this.parentComponent&&(this.parentComponent=void 0),super.destroy()}addGuiEventListener(e,t,i){this.eGui.addEventListener(e,t,i),this.addDestroyFunc(()=>this.eGui.removeEventListener(e,t))}addCss(e){this.cssManager.toggleCss(e,!0)}removeCss(e){this.cssManager.toggleCss(e,!1)}toggleCss(e,t){this.cssManager.toggleCss(e,t)}registerCSS(e){this.css===wc?(this.css=[e],this.addGlobalCss()):(this.css||(this.css=[]),this.css.push(e))}addGlobalCss(){if(Array.isArray(this.css)){const e="component-"+Object.getPrototypeOf(this)?.constructor?.name;for(const t of this.css??[])this.beans.environment.addGlobalCSS(t,e)}this.css=wc}},wc=Symbol(),Iw=1,kw=class{constructor(e){this.beans={},this.createdBeans=[],this.destroyed=!1,this.instanceId=Iw++,e?.beanClasses&&(this.beanDestroyComparator=e.beanDestroyComparator,this.init(e))}init(e){this.id=e.id,this.beans.context=this,this.destroyCallback=e.destroyCallback;for(const t of Object.keys(e.providedBeanInstances))this.beans[t]=e.providedBeanInstances[t];for(const t of e.beanClasses){const i=new t;i.beanName?this.beans[i.beanName]=i:console.error(`Bean ${t.name} is missing beanName`),this.createdBeans.push(i)}for(const t of e.derivedBeans??[]){const{beanName:i,bean:o}=t(this);this.beans[i]=o,this.createdBeans.push(o)}e.beanInitComparator&&this.createdBeans.sort(e.beanInitComparator),this.initBeans(this.createdBeans)}getBeanInstances(){return Object.values(this.beans)}createBean(e,t){return this.initBeans([e],t),e}initBeans(e,t){const i=this.beans;for(const o of e)o.preWireBeans?.(i),o.wireBeans?.(i);for(const o of e)o.preConstruct?.();t&&e.forEach(t);for(const o of e)o.postConstruct?.()}getBeans(){return this.beans}getBean(e){return this.beans[e]}getId(){return this.id}destroy(){if(this.destroyed)return;this.destroyed=!0;const e=this.getBeanInstances();this.beanDestroyComparator&&e.sort(this.beanDestroyComparator),this.destroyBeans(e),this.beans={},this.createdBeans=[],this.destroyCallback?.()}destroyBean(e){e?.destroy?.()}destroyBeans(e){if(e)for(let t=0;t<e.length;t++)this.destroyBean(e[t]);return[]}isDestroyed(){return this.destroyed}},on=new Set,ws=(e,t)=>{on.has(t)||(on.add(t),e())};ws._set=on;var Lw={pending:!1,funcs:[]},Hw={pending:!1,funcs:[]};function sn(e,t="setTimeout",i){const o=t==="raf"?Hw:Lw;if(o.funcs.push(e),o.pending)return;o.pending=!0;const s=()=>{const r=o.funcs.slice();o.funcs.length=0,o.pending=!1;for(const n of r)n()};t==="raf"?lt(i,s):window.setTimeout(s,0)}function ue(e,t,i){let o;return function(...s){const r=this;return window.clearTimeout(o),o=window.setTimeout(function(){e.isAlive()&&t.apply(r,s)},i),o}}function bc(e,t){let i=0;return function(...o){const s=this,r=Date.now();r-i<t||(i=r,e.apply(s,o))}}function Bw(e,t,i,o=100){const s=Date.now();let r=null,n=!1;const a=()=>{r!=null&&(window.clearInterval(r),r=null)};e.addDestroyFunc(a);const l=()=>{const d=Date.now()-s>o;(t()||d)&&(i(),n=!0,a())};l(),n||(r=window.setInterval(l,10))}var Vw=class extends Re{constructor(){super(),this.beanName="ariaAnnounce",this.descriptionContainer=null,this.pendingAnnouncements=new Map,this.lastAnnouncement="",this.updateAnnouncement=ue(this,this.updateAnnouncement.bind(this),200)}setDescriptionContainer(e){this.descriptionContainer=e,tc(e,"polite"),ew(e,"additions text"),Jv(e,!0),this.updateAnnouncement()}announceValue(e,t){this.pendingAnnouncements.set(t,e),this.updateAnnouncement()}updateAnnouncement(){if(!this.descriptionContainer)return;const e=Array.from(this.pendingAnnouncements.values()).join(". ");this.pendingAnnouncements.clear(),this.descriptionContainer.textContent="",setTimeout(()=>{this.handleAnnouncementUpdate(e)},50)}handleAnnouncementUpdate(e){if(!this.isAlive()||!this.descriptionContainer)return;let t=e;if(t==null||t.replace(/[ .]/g,"")==""){this.lastAnnouncement="";return}this.lastAnnouncement===t&&(t=`${t}\u200B`),this.lastAnnouncement=t,this.descriptionContainer.textContent=t}destroy(){super.destroy(),this.descriptionContainer=null,this.pendingAnnouncements.clear()}};function Ow(e,t){const[i,o]=yc();o.appendChild(t);const s=Rc(e,o);return[i,s]}function Sc(e,t,i){const[o,s]=Ow(e,i);return t.appendChild(o),()=>{s(),o.remove()}}function yc(){const e={tag:"div",cls:"ag-styled-root"},t=Lt({...e,children:[{...e,children:[e]}]});return[t,t.firstElementChild.firstElementChild]}function Rc(e,t,i,o){const s=t.parentElement,r=s.parentElement,n=()=>{const[a,l,d]=e.getStyledRootClasses(o);r.className=["ag-styled-root",a].join(" "),s.className=["ag-styled-root",l].join(" "),t.className=["ag-styled-root",d].join(" "),i?.()};return n(),e.onThemeChanged(n)}var Gw=class extends Re{constructor(){super(...arguments),this.beanName="dragAndDrop",this.dragSourceAndParamsList=[],this.dragItem=null,this.dragInitialSourcePointerOffsetX=0,this.dragInitialSourcePointerOffsetY=0,this.lastMouseEvent=null,this.lastDraggingEvent=null,this.dragSource=null,this.dragImageCompPromise=null,this.dragImageComp=null,this.disconnect=null,this.dragImageLastIcon=void 0,this.dragImageLastLabel=void 0,this.dropTargets=[],this.externalDropZoneCount=0,this.lastDropTarget=null}addDragSource(e,t=!1){const i={capturePointer:!0,dragSource:e,eElement:e.eElement,dragStartPixels:e.dragStartPixels,onDragStart:o=>this.onDragStart(e,o),onDragStop:this.onDragStop.bind(this),onDragging:this.onDragging.bind(this),onDragCancel:this.onDragCancel.bind(this),includeTouch:t};this.dragSourceAndParamsList.push(i),this.beans.dragSvc.addDragSource(i)}setDragImageCompIcon(e,t=!1){const i=this.dragImageComp;i&&(t||this.dragImageLastIcon!==e)&&(this.dragImageLastIcon=e,i.setIcon(e,t))}removeDragSource(e){const{dragSourceAndParamsList:t,beans:i}=this;for(let o=0,s=t.length;o<s;o++)if(t[o].dragSource===e){const r=t[o];i.dragSvc?.removeDragSource(r),t.splice(o,1);break}}destroy(){const{dragSourceAndParamsList:e,dropTargets:t,beans:i}=this,o=i.dragSvc;for(const s of e)o?.removeDragSource(s);e.length=0,t.length=0,this.externalDropZoneCount=0,this.clearDragAndDropProperties(),super.destroy()}nudge(){const e=this.lastMouseEvent;e&&this.onDragging(e,!0)}onDragStart(e,t){this.lastMouseEvent=t,this.dragSource=e,this.dragItem=e.getDragItem();const i=e.eElement.getBoundingClientRect();this.dragInitialSourcePointerOffsetX=t.clientX-i.left,this.dragInitialSourcePointerOffsetY=t.clientY-i.top,e.onDragStarted?.(),this.createAndUpdateDragImageComp(e)}onDragStop(e){const{dragSource:t,lastDropTarget:i}=this;if(t?.onDragStopped?.(),i){const o=this.dropTargetEvent(i,e,!1);i.onDragStop?.(o)}this.clearDragAndDropProperties()}onDragCancel(){const{dragSource:e,lastDropTarget:t,lastMouseEvent:i}=this;if(e?.onDragCancelled?.(),t&&i){const o=this.dropTargetEvent(t,i,!1);t.onDragCancel?.(o)}this.clearDragAndDropProperties()}onDragging(e,t=!1){this.positionDragImageComp(e);const i=this.findCurrentDropTarget(e),{lastDropTarget:o,dragSource:s,dragItem:r}=this;let n=!1;if(i!==o){if(n=!0,o){const a=this.dropTargetEvent(o,e,t);o.onDragLeave?.(a)}if(o!==null&&!i?this.handleExit(s,r):o===null&&i&&this.handleEnter(s,r),i){const a=this.dropTargetEvent(i,e,t);i.onDragEnter?.(a)}this.lastDropTarget=i}else if(i){const a=this.dropTargetEvent(i,e,t);i.onDragging?.(a),a?.changed&&(n=!0)}this.lastMouseEvent=e,n&&this.updateDragImageComp()}clearDragAndDropProperties(){this.removeDragImageComp(this.dragImageComp),this.dragImageCompPromise=null,this.dragImageLastIcon=void 0,this.dragImageLastLabel=void 0,this.lastMouseEvent=null,this.lastDraggingEvent=null,this.lastDropTarget=null,this.dragItem=null,this.dragInitialSourcePointerOffsetX=0,this.dragInitialSourcePointerOffsetY=0,this.dragSource=null}getAllContainersFromDropTarget(e){const t=e.getContainer(),i=e.getSecondaryContainers?.(),o=i?.length;if(!o)return[[t]];const s=new Array(o+1);s[0]=[t];for(let r=0;r<o;++r)s[r+1]=i[r];return s}isMouseOnDropTarget(e,t){const i=this.getAllContainersFromDropTarget(t);let o=!1;const s=(a,l)=>{for(const d of l){const{width:c,height:u,left:h,right:g,top:p,bottom:f}=d.getBoundingClientRect();if(c===0||u===0)return!1;const m=a.clientX>=h&&a.clientX<g,C=a.clientY>=p&&a.clientY<f;if(!m||!C)return!1}return!0};for(const a of i)if(s(e,a)){o=!0;break}const{eElement:r,type:n}=this.dragSource;return t.targetContainsSource&&!t.getContainer().contains(r)?!1:o&&t.isInterestedIn(n,r)}findCurrentDropTarget(e){const t=[],i=this.dropTargets;for(let n=0,a=i.length;n<a;++n){const l=i[n];this.isMouseOnDropTarget(e,l)&&t.push(l)}const o=t.length;if(o===0)return null;if(o===1)return t[0];const r=$e(this.beans).elementsFromPoint(e.clientX,e.clientY);for(let n=0,a=r.length;n<a;++n){const l=r[n];for(let d=0,c=t.length;d<c;d++){const u=t[d],h=this.getAllContainersFromDropTarget(u);let g=!1;for(let p=0,f=h.length;p<f&&!g;p++){const m=h[p];for(let C=0,v=m.length;C<v;C++)if(m[C]===l){g=!0;break}}if(g)return u}}return null}addDropTarget(e){this.dropTargets.push(e),e.external&&this.externalDropZoneCount++}removeDropTarget(e){const t=e.getContainer(),i=this.dropTargets;let o=0;for(let s=0,r=i.length;s<r;++s){const n=i[s];if(n.getContainer()===t){n.external&&--this.externalDropZoneCount;continue}o!==s&&(i[o]=n),++o}i.length=o}hasExternalDropZones(){return this.externalDropZoneCount>0}findExternalZone(e){const t=this.dropTargets;for(let i=0,o=t.length;i<o;++i){const s=t[i];if(s.external&&s.getContainer()===e)return s}return null}dropTargetEvent(e,t,i){const{dragSource:o,dragItem:s,lastDraggingEvent:r,lastMouseEvent:n,dragInitialSourcePointerOffsetX:a,dragInitialSourcePointerOffsetY:l}=this,d=e.getContainer(),c=d.getBoundingClientRect(),{clientX:u,clientY:h}=t,g=u-(n?.clientX||0),p=h-(n?.clientY||0),f=this.createEvent({event:t,x:u-c.left,y:h-c.top,vDirection:p>0?"down":p<0?"up":null,hDirection:g<0?"left":g>0?"right":null,initialSourcePointerOffsetX:a,initialSourcePointerOffsetY:l,dragSource:o,fromNudge:i,dragItem:s,dropZoneTarget:d,dropTarget:r?.dropTarget??null,changed:!!r?.changed});return this.lastDraggingEvent=f,f}positionDragImageComp(e){const t=this.dragImageComp?.getGui();t&&Rw(t,e,this.beans)}removeDragImageComp(e){this.dragImageComp===e&&(this.dragImageComp=null),e&&(this.disconnect?.(),this.disconnect=null,this.destroyBean(e))}createAndUpdateDragImageComp(e){const t=this.createDragImageComp(e)??null;this.dragImageCompPromise=t,t?.then(i=>{const o=this.lastMouseEvent;if(t!==this.dragImageCompPromise||!o||!this.isAlive()){this.destroyBean(i);return}this.dragImageCompPromise=null,this.dragImageLastIcon=void 0,this.dragImageLastLabel=void 0;const s=this.dragImageComp;s!==i&&(this.dragImageComp=i,this.removeDragImageComp(s)),i&&(this.appendDragImageComp(i),this.updateDragImageComp(),this.positionDragImageComp(o))})}appendDragImageComp(e){const t=e.getGui(),i=t.style;i.position="absolute",i.zIndex="9999",this.beans.dragSvc?.hasPointerCapture()&&(i.pointerEvents="none"),this.gos.setInstanceDomData(t),i.top="20px",i.left="20px";const o=$r(this.beans);if(!o){this.warnNoBody();return}this.disconnect=Sc(this.beans.environment,o,t)}updateDragImageComp(){const{dragImageComp:e,dragSource:t,lastDropTarget:i,lastDraggingEvent:o,dragImageLastLabel:s}=this;if(!e)return;this.setDragImageCompIcon(i?.getIconName?.(o)??null);let r=t?.dragItemName;typeof r=="function"&&(r=r(o)),r||(r=""),s!==r&&(this.dragImageLastLabel=r,e.setLabel(r))}},Ec=(e,t)=>{if(t!=null&&e?.setPointerCapture)try{return e.setPointerCapture(t),e.hasPointerCapture(t)}catch{}return!1},Nw=(e,t)=>{if(typeof PointerEvent>"u"||!(t instanceof PointerEvent))return null;const i=t.pointerId;if(!Ec(e,i))return null;const o={eElement:e,pointerId:i,onLost(s){Ww(o,s)}};return e.addEventListener("lostpointercapture",o.onLost),o},zw=e=>{if(!e)return;xc(e);const{eElement:t,pointerId:i}=e;if(t){try{t.releasePointerCapture(i)}catch{}e.eElement=null}},xc=e=>{const{eElement:t,onLost:i}=e;t&&i&&(t.removeEventListener("lostpointercapture",i),e.onLost=null)},Ww=(e,t)=>{xc(e);const{eElement:i,pointerId:o}=e;i&&t.pointerId===o&&Ec(i,o)},rn,nn,an,ln,dn,cn,un;function Bt(){return rn===void 0&&(rn=/^((?!chrome|android).)*safari/i.test(navigator.userAgent)),rn}function ai(){return nn===void 0&&(nn=/(firefox)/i.test(navigator.userAgent)),nn}function Fc(){return an===void 0&&(an=/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform)),an}function li(){return ln===void 0&&(ln=/iPad|iPhone|iPod/.test(navigator.platform)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1),ln}function hn(e){if(!e)return null;const t=e.tabIndex,i=e.getAttribute("tabIndex");return t===-1&&(i===null||i===""&&!ai())?null:t.toString()}function