@linked365/pptb-bulk-data-studio 0.3.1 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +16 -7
- package/dist/assets/index-aLK2xdt6.js +132 -0
- package/dist/index.html +1 -1
- package/npm-shrinkwrap.json +44 -4
- package/package.json +5 -2
- package/dist/assets/index-D48tHekB.js +0 -88
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
(function(){"use strict";var FC=document.createElement("style");FC.textContent=`:root{--separator-border: rgba(128, 128, 128, .35);--sash-hover-transition-duration: .1s}.allotment-module_splitView__L-yRc{height:100%;overflow:hidden;position:relative;width:100%}.allotment-module_splitView__L-yRc>.allotment-module_sashContainer__fzwJF{height:100%;pointer-events:none;position:absolute;width:100%}.allotment-module_splitView__L-yRc>.allotment-module_sashContainer__fzwJF>.allotment-module_sash__QA-2t{pointer-events:auto}.allotment-module_splitView__L-yRc>.allotment-module_splitViewContainer__rQnVa{height:100%;position:relative;white-space:nowrap;width:100%}.allotment-module_splitView__L-yRc>.allotment-module_splitViewContainer__rQnVa>.allotment-module_splitViewView__MGZ6O{overflow:hidden;position:absolute;white-space:initial}.allotment-module_splitView__L-yRc.allotment-module_vertical__WSwwa>.allotment-module_splitViewContainer__rQnVa>.allotment-module_splitViewView__MGZ6O{width:100%}.allotment-module_splitView__L-yRc.allotment-module_horizontal__7doS8>.allotment-module_splitViewContainer__rQnVa>.allotment-module_splitViewView__MGZ6O{height:100%}.allotment-module_splitView__L-yRc.allotment-module_separatorBorder__x-rDS>.allotment-module_splitViewContainer__rQnVa>.allotment-module_splitViewView__MGZ6O:not(:first-child):before{background-color:var(--separator-border);content:" ";left:0;pointer-events:none;position:absolute;top:0;z-index:5}.allotment-module_splitView__L-yRc.allotment-module_separatorBorder__x-rDS.allotment-module_vertical__WSwwa>.allotment-module_splitViewContainer__rQnVa>.allotment-module_splitViewView__MGZ6O:not(:first-child):before{height:1px;width:100%}.allotment-module_splitView__L-yRc.allotment-module_separatorBorder__x-rDS.allotment-module_horizontal__7doS8>.allotment-module_splitViewContainer__rQnVa>.allotment-module_splitViewView__MGZ6O:not(:first-child):before{height:100%;width:1px}:root{--focus-border: #007fd4;--sash-size: 8px;--sash-hover-size: 4px}.sash-module_sash__K-9lB{position:absolute;z-index:35;touch-action:none;pointer-events:auto;text-align:initial}.sash-module_sash__K-9lB.sash-module_disabled__Hm-wx{pointer-events:none}.sash-module_sash__K-9lB.sash-module_mac__Jf6OJ.sash-module_vertical__pB-rs{cursor:col-resize}.sash-module_sash__K-9lB.sash-module_vertical__pB-rs.sash-module_minimum__-UKxp{cursor:e-resize}.sash-module_sash__K-9lB.sash-module_vertical__pB-rs.sash-module_maximum__TCWxD{cursor:w-resize}.sash-module_sash__K-9lB.sash-module_mac__Jf6OJ.sash-module_horizontal__kFbiw{cursor:row-resize}.sash-module_sash__K-9lB.sash-module_horizontal__kFbiw.sash-module_minimum__-UKxp{cursor:s-resize}.sash-module_sash__K-9lB.sash-module_horizontal__kFbiw.sash-module_maximum__TCWxD{cursor:n-resize}.sash-module_sash__K-9lB.sash-module_disabled__Hm-wx{cursor:default!important;pointer-events:none!important}.sash-module_sash__K-9lB.sash-module_vertical__pB-rs{cursor:ew-resize;top:0;width:var(--sash-size);height:100%}.sash-module_sash__K-9lB.sash-module_horizontal__kFbiw{cursor:ns-resize;left:0;width:100%;height:var(--sash-size)}.sash-module_sash__K-9lB:not(.sash-module_disabled__Hm-wx)>.sash-module_orthogonal-drag-handle__Yii2-{content:" ";height:calc(var(--sash-size) * 2);width:calc(var(--sash-size) * 2);z-index:100;display:block;cursor:all-scroll;position:absolute}.sash-module_sash__K-9lB.sash-module_horizontal__kFbiw.sash-module_orthogonal-edge-north__f7Noe:not(.sash-module_disabled__Hm-wx)>.sash-module_orthogonal-drag-handle__Yii2-.sash-module_start__uZEDk,.sash-module_sash__K-9lB.sash-module_horizontal__kFbiw.sash-module_orthogonal-edge-south__6ZrFC:not(.sash-module_disabled__Hm-wx)>.sash-module_orthogonal-drag-handle__Yii2-.sash-module_end__0TP-R{cursor:nwse-resize}.sash-module_sash__K-9lB.sash-module_horizontal__kFbiw.sash-module_orthogonal-edge-north__f7Noe:not(.sash-module_disabled__Hm-wx)>.sash-module_orthogonal-drag-handle__Yii2-.sash-module_end__0TP-R,.sash-module_sash__K-9lB.sash-module_horizontal__kFbiw.sash-module_orthogonal-edge-south__6ZrFC:not(.sash-module_disabled__Hm-wx)>.sash-module_orthogonal-drag-handle__Yii2-.sash-module_start__uZEDk{cursor:nesw-resize}.sash-module_sash__K-9lB.sash-module_vertical__pB-rs>.sash-module_orthogonal-drag-handle__Yii2-.sash-module_start__uZEDk{left:calc(var(--sash-size) * -.5);top:calc(var(--sash-size) * -1)}.sash-module_sash__K-9lB.sash-module_vertical__pB-rs>.sash-module_orthogonal-drag-handle__Yii2-.sash-module_end__0TP-R{left:calc(var(--sash-size) * -.5);bottom:calc(var(--sash-size) * -1)}.sash-module_sash__K-9lB.sash-module_horizontal__kFbiw>.sash-module_orthogonal-drag-handle__Yii2-.sash-module_start__uZEDk{top:calc(var(--sash-size) * -.5);left:calc(var(--sash-size) * -1)}.sash-module_sash__K-9lB.sash-module_horizontal__kFbiw>.sash-module_orthogonal-drag-handle__Yii2-.sash-module_end__0TP-R{top:calc(var(--sash-size) * -.5);right:calc(var(--sash-size) * -1)}.sash-module_sash__K-9lB:before{content:"";pointer-events:none;position:absolute;width:100%;height:100%;transition:background-color var(--sash-hover-transition-duration) ease-out;background:transparent}.sash-module_sash__K-9lB.sash-module_vertical__pB-rs:before{width:var(--sash-hover-size);left:calc(50% - (var(--sash-hover-size) / 2))}.sash-module_sash__K-9lB.sash-module_horizontal__kFbiw:before{height:var(--sash-hover-size);top:calc(50% - (var(--sash-hover-size) / 2))}.sash-module_sash__K-9lB.sash-module_hover__80W6I:before,.sash-module_sash__K-9lB.sash-module_active__bJspD:before{background:var(--focus-border)}*{margin:0;padding:0;box-sizing:border-box}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;background:linear-gradient(135deg,#667eea,#764ba2);color:#333;line-height:1.6;padding:2px;min-height:100vh}#root{margin:0 auto}.header{text-align:center;color:#fff;margin-bottom:30px}.header h1{font-size:2.5rem;margin-bottom:10px;text-shadow:2px 2px 4px rgba(0,0,0,.3)}.subtitle{font-size:1.1rem;opacity:.95}.card{background:#fff;border-radius:12px;padding:25px;margin-bottom:25px;box-shadow:0 10px 30px #0003}.card h2{color:#667eea;margin-bottom:20px;font-size:1.5rem;border-bottom:2px solid #f0f0f0;padding-bottom:10px}.card h3{color:#555;margin:15px 0 10px;font-size:1.1rem}.info-box{background:#f8f9fa;border-left:4px solid #667eea;padding:15px;border-radius:6px;margin:10px 0}.info-box.success{background:#d4edda;border-left-color:#28a745}.info-box.error{background:#f8d7da;border-left-color:#dc3545}.info-box.warning{background:#fff3cd;border-left-color:#ffc107}.loading{display:flex;align-items:center;gap:10px}.loading:before{content:"";width:16px;height:16px;border:2px solid #667eea;border-top-color:transparent;border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.connection-details{display:grid;gap:8px}.connection-item{display:flex;gap:10px}.connection-item strong{min-width:100px;color:#667eea}.env-badge{display:inline-block;padding:4px 12px;border-radius:12px;font-size:.85rem;font-weight:600;text-transform:uppercase}.env-badge.production{background:#dc3545;color:#fff}.env-badge.sandbox{background:#ffc107;color:#333}.env-badge.dev{background:#17a2b8;color:#fff}.btn{background:#667eea;color:#fff;border:none;padding:10px 20px;border-radius:6px;cursor:pointer;font-size:14px;font-weight:500;transition:all .3s ease;margin:5px}.btn:hover:not(:disabled){background:#5568d3;transform:translateY(-2px);box-shadow:0 4px 8px #667eea4d}.btn:active:not(:disabled){transform:translateY(0)}.btn:disabled{background:#ccc;cursor:not-allowed;opacity:.6}.btn-primary{background:#0078d4}.btn-primary:hover:not(:disabled){background:#106ebe}.btn-success{background:#28a745}.btn-success:hover:not(:disabled){background:#218838}.btn-info{background:#17a2b8}.btn-info:hover:not(:disabled){background:#138496}.btn-warning{background:#ffc107;color:#333}.btn-warning:hover:not(:disabled){background:#e0a800}.btn-error{background:#dc3545}.btn-error:hover:not(:disabled){background:#c82333}.btn-secondary{background:#6c757d}.btn-secondary:hover:not(:disabled){background:#5a6268}.button-group{display:flex;flex-wrap:wrap;gap:5px;margin:10px 0}.input-group{margin:15px 0}.input-group label{display:block;margin-bottom:5px;font-weight:600;color:#555}.input-group input{width:100%;padding:10px;border:2px solid #e0e0e0;border-radius:6px;font-size:14px;transition:border-color .3s ease}.input-group input:focus{outline:none;border-color:#667eea}.example-group{margin:20px 0;padding:15px;background:#f8f9fa;border-radius:8px}.output{background:#1e1e1e;color:#d4d4d4;padding:15px;border-radius:6px;font-family:Consolas,Monaco,Courier New,monospace;font-size:13px;white-space:pre-wrap;word-wrap:break-word;max-height:300px;overflow-y:auto;margin-top:10px;min-height:50px}.output:empty:before{content:"No output yet...";color:#666;font-style:italic}.log{background:#1e1e1e;color:#d4d4d4;padding:15px;border-radius:6px;font-family:Consolas,Monaco,Courier New,monospace;font-size:13px;max-height:300px;overflow-y:auto;margin-top:10px}.log-entry{padding:8px;margin:4px 0;border-radius:4px;border-left:3px solid #667eea;background:#2d2d30}.log-entry.error{border-left-color:#dc3545;background:#3d2d2e}.log-entry.success{border-left-color:#28a745;background:#2d3d2e}.log-entry.warning{border-left-color:#ffc107;background:#3d3d2e}.log-timestamp{color:#858585;font-size:11px;margin-right:10px}@media(max-width:768px){body{padding:10px}.header h1{font-size:2rem}.card{padding:15px}.button-group{flex-direction:column}.btn{width:100%}}.output::-webkit-scrollbar,.log::-webkit-scrollbar{width:8px}.output::-webkit-scrollbar-track,.log::-webkit-scrollbar-track{background:#2d2d30}.output::-webkit-scrollbar-thumb,.log::-webkit-scrollbar-thumb{background:#667eea;border-radius:4px}.output::-webkit-scrollbar-thumb:hover,.log::-webkit-scrollbar-thumb:hover{background:#5568d3}.fetchxml-editor{font-family:Consolas,Monaco,Courier New,monospace;font-size:13px;line-height:1.5;background:#fafafa;color:#242424;border:1px solid #d1d1d1;border-radius:4px;min-height:220px}.fetchxml-editor--disabled{opacity:.6}.fetchxml-editor--disabled textarea{pointer-events:none}.fetchxml-editor__textarea,.fetchxml-editor__pre{outline:none}.fetchxml-editor__pre{margin:0}.token.tag,.token.tag .token.punctuation{color:#0078d4}.token.attr-name{color:#b5461d}.token.attr-value,.token.string{color:#107c10}.token.punctuation{color:#616161}[data-theme=dark] .fetchxml-editor{background:#1e1e1e;color:#d4d4d4;border-color:#444}[data-theme=dark] .token.tag,[data-theme=dark] .token.tag .token.punctuation{color:#569cd6}[data-theme=dark] .token.attr-name{color:#9cdcfe}[data-theme=dark] .token.attr-value,[data-theme=dark] .token.string{color:#ce9178}[data-theme=dark] .token.punctuation{color:gray}.ag-cell .fui-Combobox,.ag-cell .fui-Dropdown,.ag-cell [class*=combobox-fit]{min-width:0!important;max-width:100%!important}.ag-cell .fui-Combobox input{min-width:0!important}.ag-cell .fui-Input{min-width:0!important;width:100%!important}
|
|
2
|
+
/*$vite$:1*/`,document.head.appendChild(FC);function RC(e,t){for(var o=0;o<t.length;o++){const r=t[o];if(typeof r!="string"&&!Array.isArray(r)){for(const n in r)if(n!=="default"&&!(n in e)){const i=Object.getOwnPropertyDescriptor(r,n);i&&Object.defineProperty(e,n,i.get?i:{enumerable:!0,get:()=>r[n]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var EC=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Xl(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ep={exports:{}},Zl={},_p={exports:{}},Xe={};var _C;function RT(){if(_C)return Xe;_C=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),n=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),s=Symbol.for("react.context"),a=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),f=Symbol.iterator;function g(z){return z===null||typeof z!="object"?null:(z=f&&z[f]||z["@@iterator"],typeof z=="function"?z:null)}var m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b=Object.assign,w={};function y(z,H,te){this.props=z,this.context=H,this.refs=w,this.updater=te||m}y.prototype.isReactComponent={},y.prototype.setState=function(z,H){if(typeof z!="object"&&typeof z!="function"&&z!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,z,H,"setState")},y.prototype.forceUpdate=function(z){this.updater.enqueueForceUpdate(this,z,"forceUpdate")};function k(){}k.prototype=y.prototype;function C(z,H,te){this.props=z,this.context=H,this.refs=w,this.updater=te||m}var F=C.prototype=new k;F.constructor=C,b(F,y.prototype),F.isPureReactComponent=!0;var E=Array.isArray,_=Object.prototype.hasOwnProperty,P={current:null},D={key:!0,ref:!0,__self:!0,__source:!0};function M(z,H,te){var re,be={},me=null,He=null;if(H!=null)for(re in H.ref!==void 0&&(He=H.ref),H.key!==void 0&&(me=""+H.key),H)_.call(H,re)&&!D.hasOwnProperty(re)&&(be[re]=H[re]);var we=arguments.length-2;if(we===1)be.children=te;else if(1<we){for(var Ce=Array(we),xe=0;xe<we;xe++)Ce[xe]=arguments[xe+2];be.children=Ce}if(z&&z.defaultProps)for(re in we=z.defaultProps,we)be[re]===void 0&&(be[re]=we[re]);return{$$typeof:e,type:z,key:me,ref:He,props:be,_owner:P.current}}function A(z,H){return{$$typeof:e,type:z.type,key:H,ref:z.ref,props:z.props,_owner:z._owner}}function O(z){return typeof z=="object"&&z!==null&&z.$$typeof===e}function K(z){var H={"=":"=0",":":"=2"};return"$"+z.replace(/[=:]/g,function(te){return H[te]})}var W=/\/+/g;function L(z,H){return typeof z=="object"&&z!==null&&z.key!=null?K(""+z.key):H.toString(36)}function V(z,H,te,re,be){var me=typeof z;(me==="undefined"||me==="boolean")&&(z=null);var He=!1;if(z===null)He=!0;else switch(me){case"string":case"number":He=!0;break;case"object":switch(z.$$typeof){case e:case t:He=!0}}if(He)return He=z,be=be(He),z=re===""?"."+L(He,0):re,E(be)?(te="",z!=null&&(te=z.replace(W,"$&/")+"/"),V(be,H,te,"",function(xe){return xe})):be!=null&&(O(be)&&(be=A(be,te+(!be.key||He&&He.key===be.key?"":(""+be.key).replace(W,"$&/")+"/")+z)),H.push(be)),1;if(He=0,re=re===""?".":re+":",E(z))for(var we=0;we<z.length;we++){me=z[we];var Ce=re+L(me,we);He+=V(me,H,te,Ce,be)}else if(Ce=g(z),typeof Ce=="function")for(z=Ce.call(z),we=0;!(me=z.next()).done;)me=me.value,Ce=re+L(me,we++),He+=V(me,H,te,Ce,be);else if(me==="object")throw H=String(z),Error("Objects are not valid as a React child (found: "+(H==="[object Object]"?"object with keys {"+Object.keys(z).join(", ")+"}":H)+"). If you meant to render a collection of children, use an array instead.");return He}function U(z,H,te){if(z==null)return z;var re=[],be=0;return V(z,re,"","",function(me){return H.call(te,me,be++)}),re}function $(z){if(z._status===-1){var H=z._result;H=H(),H.then(function(te){(z._status===0||z._status===-1)&&(z._status=1,z._result=te)},function(te){(z._status===0||z._status===-1)&&(z._status=2,z._result=te)}),z._status===-1&&(z._status=0,z._result=H)}if(z._status===1)return z._result.default;throw z._result}var Y={current:null},I={transition:null},X={ReactCurrentDispatcher:Y,ReactCurrentBatchConfig:I,ReactCurrentOwner:P};function j(){throw Error("act(...) is not supported in production builds of React.")}return Xe.Children={map:U,forEach:function(z,H,te){U(z,function(){H.apply(this,arguments)},te)},count:function(z){var H=0;return U(z,function(){H++}),H},toArray:function(z){return U(z,function(H){return H})||[]},only:function(z){if(!O(z))throw Error("React.Children.only expected to receive a single React element child.");return z}},Xe.Component=y,Xe.Fragment=o,Xe.Profiler=n,Xe.PureComponent=C,Xe.StrictMode=r,Xe.Suspense=c,Xe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=X,Xe.act=j,Xe.cloneElement=function(z,H,te){if(z==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+z+".");var re=b({},z.props),be=z.key,me=z.ref,He=z._owner;if(H!=null){if(H.ref!==void 0&&(me=H.ref,He=P.current),H.key!==void 0&&(be=""+H.key),z.type&&z.type.defaultProps)var we=z.type.defaultProps;for(Ce in H)_.call(H,Ce)&&!D.hasOwnProperty(Ce)&&(re[Ce]=H[Ce]===void 0&&we!==void 0?we[Ce]:H[Ce])}var Ce=arguments.length-2;if(Ce===1)re.children=te;else if(1<Ce){we=Array(Ce);for(var xe=0;xe<Ce;xe++)we[xe]=arguments[xe+2];re.children=we}return{$$typeof:e,type:z.type,key:be,ref:me,props:re,_owner:He}},Xe.createContext=function(z){return z={$$typeof:s,_currentValue:z,_currentValue2:z,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},z.Provider={$$typeof:i,_context:z},z.Consumer=z},Xe.createElement=M,Xe.createFactory=function(z){var H=M.bind(null,z);return H.type=z,H},Xe.createRef=function(){return{current:null}},Xe.forwardRef=function(z){return{$$typeof:a,render:z}},Xe.isValidElement=O,Xe.lazy=function(z){return{$$typeof:h,_payload:{_status:-1,_result:z},_init:$}},Xe.memo=function(z,H){return{$$typeof:d,type:z,compare:H===void 0?null:H}},Xe.startTransition=function(z){var H=I.transition;I.transition={};try{z()}finally{I.transition=H}},Xe.unstable_act=j,Xe.useCallback=function(z,H){return Y.current.useCallback(z,H)},Xe.useContext=function(z){return Y.current.useContext(z)},Xe.useDebugValue=function(){},Xe.useDeferredValue=function(z){return Y.current.useDeferredValue(z)},Xe.useEffect=function(z,H){return Y.current.useEffect(z,H)},Xe.useId=function(){return Y.current.useId()},Xe.useImperativeHandle=function(z,H,te){return Y.current.useImperativeHandle(z,H,te)},Xe.useInsertionEffect=function(z,H){return Y.current.useInsertionEffect(z,H)},Xe.useLayoutEffect=function(z,H){return Y.current.useLayoutEffect(z,H)},Xe.useMemo=function(z,H){return Y.current.useMemo(z,H)},Xe.useReducer=function(z,H,te){return Y.current.useReducer(z,H,te)},Xe.useRef=function(z){return Y.current.useRef(z)},Xe.useState=function(z){return Y.current.useState(z)},Xe.useSyncExternalStore=function(z,H,te){return Y.current.useSyncExternalStore(z,H,te)},Xe.useTransition=function(){return Y.current.useTransition()},Xe.version="18.3.1",Xe}var PC;function Yl(){return PC||(PC=1,_p.exports=RT()),_p.exports}var DC;function ET(){if(DC)return Zl;DC=1;var e=Yl(),t=Symbol.for("react.element"),o=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,n=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function s(a,c,d){var h,f={},g=null,m=null;d!==void 0&&(g=""+d),c.key!==void 0&&(g=""+c.key),c.ref!==void 0&&(m=c.ref);for(h in c)r.call(c,h)&&!i.hasOwnProperty(h)&&(f[h]=c[h]);if(a&&a.defaultProps)for(h in c=a.defaultProps,c)f[h]===void 0&&(f[h]=c[h]);return{$$typeof:t,type:a,key:g,ref:m,props:f,_owner:n.current}}return Zl.Fragment=o,Zl.jsx=s,Zl.jsxs=s,Zl}var TC;function _T(){return TC||(TC=1,Ep.exports=ET()),Ep.exports}var B=_T();const PT=RC({__proto__:null,default:Xl(B)},[B]);var S=Yl();const J=Xl(S),ju=RC({__proto__:null,default:J},[S]);var Wu={},Pp={exports:{}},Po={},Dp={exports:{}},Tp={};var MC;function DT(){return MC||(MC=1,(function(e){function t(I,X){var j=I.length;I.push(X);e:for(;0<j;){var z=j-1>>>1,H=I[z];if(0<n(H,X))I[z]=X,I[j]=H,j=z;else break e}}function o(I){return I.length===0?null:I[0]}function r(I){if(I.length===0)return null;var X=I[0],j=I.pop();if(j!==X){I[0]=j;e:for(var z=0,H=I.length,te=H>>>1;z<te;){var re=2*(z+1)-1,be=I[re],me=re+1,He=I[me];if(0>n(be,j))me<H&&0>n(He,be)?(I[z]=He,I[me]=j,z=me):(I[z]=be,I[re]=j,z=re);else if(me<H&&0>n(He,j))I[z]=He,I[me]=j,z=me;else break e}}return X}function n(I,X){var j=I.sortIndex-X.sortIndex;return j!==0?j:I.id-X.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var s=Date,a=s.now();e.unstable_now=function(){return s.now()-a}}var c=[],d=[],h=1,f=null,g=3,m=!1,b=!1,w=!1,y=typeof setTimeout=="function"?setTimeout:null,k=typeof clearTimeout=="function"?clearTimeout:null,C=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function F(I){for(var X=o(d);X!==null;){if(X.callback===null)r(d);else if(X.startTime<=I)r(d),X.sortIndex=X.expirationTime,t(c,X);else break;X=o(d)}}function E(I){if(w=!1,F(I),!b)if(o(c)!==null)b=!0,$(_);else{var X=o(d);X!==null&&Y(E,X.startTime-I)}}function _(I,X){b=!1,w&&(w=!1,k(M),M=-1),m=!0;var j=g;try{for(F(X),f=o(c);f!==null&&(!(f.expirationTime>X)||I&&!K());){var z=f.callback;if(typeof z=="function"){f.callback=null,g=f.priorityLevel;var H=z(f.expirationTime<=X);X=e.unstable_now(),typeof H=="function"?f.callback=H:f===o(c)&&r(c),F(X)}else r(c);f=o(c)}if(f!==null)var te=!0;else{var re=o(d);re!==null&&Y(E,re.startTime-X),te=!1}return te}finally{f=null,g=j,m=!1}}var P=!1,D=null,M=-1,A=5,O=-1;function K(){return!(e.unstable_now()-O<A)}function W(){if(D!==null){var I=e.unstable_now();O=I;var X=!0;try{X=D(!0,I)}finally{X?L():(P=!1,D=null)}}else P=!1}var L;if(typeof C=="function")L=function(){C(W)};else if(typeof MessageChannel<"u"){var V=new MessageChannel,U=V.port2;V.port1.onmessage=W,L=function(){U.postMessage(null)}}else L=function(){y(W,0)};function $(I){D=I,P||(P=!0,L())}function Y(I,X){M=y(function(){I(e.unstable_now())},X)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(I){I.callback=null},e.unstable_continueExecution=function(){b||m||(b=!0,$(_))},e.unstable_forceFrameRate=function(I){0>I||125<I?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):A=0<I?Math.floor(1e3/I):5},e.unstable_getCurrentPriorityLevel=function(){return g},e.unstable_getFirstCallbackNode=function(){return o(c)},e.unstable_next=function(I){switch(g){case 1:case 2:case 3:var X=3;break;default:X=g}var j=g;g=X;try{return I()}finally{g=j}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(I,X){switch(I){case 1:case 2:case 3:case 4:case 5:break;default:I=3}var j=g;g=I;try{return X()}finally{g=j}},e.unstable_scheduleCallback=function(I,X,j){var z=e.unstable_now();switch(typeof j=="object"&&j!==null?(j=j.delay,j=typeof j=="number"&&0<j?z+j:z):j=z,I){case 1:var H=-1;break;case 2:H=250;break;case 5:H=1073741823;break;case 4:H=1e4;break;default:H=5e3}return H=j+H,I={id:h++,callback:X,priorityLevel:I,startTime:j,expirationTime:H,sortIndex:-1},j>z?(I.sortIndex=j,t(d,I),o(c)===null&&I===o(d)&&(w?(k(M),M=-1):w=!0,Y(E,j-z))):(I.sortIndex=H,t(c,I),b||m||(b=!0,$(_))),I},e.unstable_shouldYield=K,e.unstable_wrapCallback=function(I){var X=g;return function(){var j=g;g=X;try{return I.apply(this,arguments)}finally{g=j}}}})(Tp)),Tp}var AC;function TT(){return AC||(AC=1,Dp.exports=DT()),Dp.exports}var IC;function MT(){if(IC)return Po;IC=1;var e=Yl(),t=TT();function o(l){for(var u="https://reactjs.org/docs/error-decoder.html?invariant="+l,p=1;p<arguments.length;p++)u+="&args[]="+encodeURIComponent(arguments[p]);return"Minified React error #"+l+"; visit "+u+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var r=new Set,n={};function i(l,u){s(l,u),s(l+"Capture",u)}function s(l,u){for(n[l]=u,l=0;l<u.length;l++)r.add(u[l])}var a=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),c=Object.prototype.hasOwnProperty,d=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,h={},f={};function g(l){return c.call(f,l)?!0:c.call(h,l)?!1:d.test(l)?f[l]=!0:(h[l]=!0,!1)}function m(l,u,p,v){if(p!==null&&p.type===0)return!1;switch(typeof u){case"function":case"symbol":return!0;case"boolean":return v?!1:p!==null?!p.acceptsBooleans:(l=l.toLowerCase().slice(0,5),l!=="data-"&&l!=="aria-");default:return!1}}function b(l,u,p,v){if(u===null||typeof u>"u"||m(l,u,p,v))return!0;if(v)return!1;if(p!==null)switch(p.type){case 3:return!u;case 4:return u===!1;case 5:return isNaN(u);case 6:return isNaN(u)||1>u}return!1}function w(l,u,p,v,x,R,T){this.acceptsBooleans=u===2||u===3||u===4,this.attributeName=v,this.attributeNamespace=x,this.mustUseProperty=p,this.propertyName=l,this.type=u,this.sanitizeURL=R,this.removeEmptyString=T}var y={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(l){y[l]=new w(l,0,!1,l,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(l){var u=l[0];y[u]=new w(u,1,!1,l[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(l){y[l]=new w(l,2,!1,l.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(l){y[l]=new w(l,2,!1,l,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(l){y[l]=new w(l,3,!1,l.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(l){y[l]=new w(l,3,!0,l,null,!1,!1)}),["capture","download"].forEach(function(l){y[l]=new w(l,4,!1,l,null,!1,!1)}),["cols","rows","size","span"].forEach(function(l){y[l]=new w(l,6,!1,l,null,!1,!1)}),["rowSpan","start"].forEach(function(l){y[l]=new w(l,5,!1,l.toLowerCase(),null,!1,!1)});var k=/[\-:]([a-z])/g;function C(l){return l[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(l){var u=l.replace(k,C);y[u]=new w(u,1,!1,l,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(l){var u=l.replace(k,C);y[u]=new w(u,1,!1,l,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(l){var u=l.replace(k,C);y[u]=new w(u,1,!1,l,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(l){y[l]=new w(l,1,!1,l.toLowerCase(),null,!1,!1)}),y.xlinkHref=new w("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(l){y[l]=new w(l,1,!1,l.toLowerCase(),null,!0,!0)});function F(l,u,p,v){var x=y.hasOwnProperty(u)?y[u]:null;(x!==null?x.type!==0:v||!(2<u.length)||u[0]!=="o"&&u[0]!=="O"||u[1]!=="n"&&u[1]!=="N")&&(b(u,p,x,v)&&(p=null),v||x===null?g(u)&&(p===null?l.removeAttribute(u):l.setAttribute(u,""+p)):x.mustUseProperty?l[x.propertyName]=p===null?x.type===3?!1:"":p:(u=x.attributeName,v=x.attributeNamespace,p===null?l.removeAttribute(u):(x=x.type,p=x===3||x===4&&p===!0?"":""+p,v?l.setAttributeNS(v,u,p):l.setAttribute(u,p))))}var E=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,_=Symbol.for("react.element"),P=Symbol.for("react.portal"),D=Symbol.for("react.fragment"),M=Symbol.for("react.strict_mode"),A=Symbol.for("react.profiler"),O=Symbol.for("react.provider"),K=Symbol.for("react.context"),W=Symbol.for("react.forward_ref"),L=Symbol.for("react.suspense"),V=Symbol.for("react.suspense_list"),U=Symbol.for("react.memo"),$=Symbol.for("react.lazy"),Y=Symbol.for("react.offscreen"),I=Symbol.iterator;function X(l){return l===null||typeof l!="object"?null:(l=I&&l[I]||l["@@iterator"],typeof l=="function"?l:null)}var j=Object.assign,z;function H(l){if(z===void 0)try{throw Error()}catch(p){var u=p.stack.trim().match(/\n( *(at )?)/);z=u&&u[1]||""}return`
|
|
3
|
+
`+z+l}var te=!1;function re(l,u){if(!l||te)return"";te=!0;var p=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(u)if(u=function(){throw Error()},Object.defineProperty(u.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(u,[])}catch(oe){var v=oe}Reflect.construct(l,[],u)}else{try{u.call()}catch(oe){v=oe}l.call(u.prototype)}else{try{throw Error()}catch(oe){v=oe}l()}}catch(oe){if(oe&&v&&typeof oe.stack=="string"){for(var x=oe.stack.split(`
|
|
4
|
+
`),R=v.stack.split(`
|
|
5
|
+
`),T=x.length-1,N=R.length-1;1<=T&&0<=N&&x[T]!==R[N];)N--;for(;1<=T&&0<=N;T--,N--)if(x[T]!==R[N]){if(T!==1||N!==1)do if(T--,N--,0>N||x[T]!==R[N]){var G=`
|
|
6
|
+
`+x[T].replace(" at new "," at ");return l.displayName&&G.includes("<anonymous>")&&(G=G.replace("<anonymous>",l.displayName)),G}while(1<=T&&0<=N);break}}}finally{te=!1,Error.prepareStackTrace=p}return(l=l?l.displayName||l.name:"")?H(l):""}function be(l){switch(l.tag){case 5:return H(l.type);case 16:return H("Lazy");case 13:return H("Suspense");case 19:return H("SuspenseList");case 0:case 2:case 15:return l=re(l.type,!1),l;case 11:return l=re(l.type.render,!1),l;case 1:return l=re(l.type,!0),l;default:return""}}function me(l){if(l==null)return null;if(typeof l=="function")return l.displayName||l.name||null;if(typeof l=="string")return l;switch(l){case D:return"Fragment";case P:return"Portal";case A:return"Profiler";case M:return"StrictMode";case L:return"Suspense";case V:return"SuspenseList"}if(typeof l=="object")switch(l.$$typeof){case K:return(l.displayName||"Context")+".Consumer";case O:return(l._context.displayName||"Context")+".Provider";case W:var u=l.render;return l=l.displayName,l||(l=u.displayName||u.name||"",l=l!==""?"ForwardRef("+l+")":"ForwardRef"),l;case U:return u=l.displayName||null,u!==null?u:me(l.type)||"Memo";case $:u=l._payload,l=l._init;try{return me(l(u))}catch{}}return null}function He(l){var u=l.type;switch(l.tag){case 24:return"Cache";case 9:return(u.displayName||"Context")+".Consumer";case 10:return(u._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return l=u.render,l=l.displayName||l.name||"",u.displayName||(l!==""?"ForwardRef("+l+")":"ForwardRef");case 7:return"Fragment";case 5:return u;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return me(u);case 8:return u===M?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof u=="function")return u.displayName||u.name||null;if(typeof u=="string")return u}return null}function we(l){switch(typeof l){case"boolean":case"number":case"string":case"undefined":return l;case"object":return l;default:return""}}function Ce(l){var u=l.type;return(l=l.nodeName)&&l.toLowerCase()==="input"&&(u==="checkbox"||u==="radio")}function xe(l){var u=Ce(l)?"checked":"value",p=Object.getOwnPropertyDescriptor(l.constructor.prototype,u),v=""+l[u];if(!l.hasOwnProperty(u)&&typeof p<"u"&&typeof p.get=="function"&&typeof p.set=="function"){var x=p.get,R=p.set;return Object.defineProperty(l,u,{configurable:!0,get:function(){return x.call(this)},set:function(T){v=""+T,R.call(this,T)}}),Object.defineProperty(l,u,{enumerable:p.enumerable}),{getValue:function(){return v},setValue:function(T){v=""+T},stopTracking:function(){l._valueTracker=null,delete l[u]}}}}function $e(l){l._valueTracker||(l._valueTracker=xe(l))}function Ht(l){if(!l)return!1;var u=l._valueTracker;if(!u)return!0;var p=u.getValue(),v="";return l&&(v=Ce(l)?l.checked?"true":"false":l.value),l=v,l!==p?(u.setValue(l),!0):!1}function Vt(l){if(l=l||(typeof document<"u"?document:void 0),typeof l>"u")return null;try{return l.activeElement||l.body}catch{return l.body}}function bo(l,u){var p=u.checked;return j({},u,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:p??l._wrapperState.initialChecked})}function Jo(l,u){var p=u.defaultValue==null?"":u.defaultValue,v=u.checked!=null?u.checked:u.defaultChecked;p=we(u.value!=null?u.value:p),l._wrapperState={initialChecked:v,initialValue:p,controlled:u.type==="checkbox"||u.type==="radio"?u.checked!=null:u.value!=null}}function Dn(l,u){u=u.checked,u!=null&&F(l,"checked",u,!1)}function Ne(l,u){Dn(l,u);var p=we(u.value),v=u.type;if(p!=null)v==="number"?(p===0&&l.value===""||l.value!=p)&&(l.value=""+p):l.value!==""+p&&(l.value=""+p);else if(v==="submit"||v==="reset"){l.removeAttribute("value");return}u.hasOwnProperty("value")?St(l,u.type,p):u.hasOwnProperty("defaultValue")&&St(l,u.type,we(u.defaultValue)),u.checked==null&&u.defaultChecked!=null&&(l.defaultChecked=!!u.defaultChecked)}function De(l,u,p){if(u.hasOwnProperty("value")||u.hasOwnProperty("defaultValue")){var v=u.type;if(!(v!=="submit"&&v!=="reset"||u.value!==void 0&&u.value!==null))return;u=""+l._wrapperState.initialValue,p||u===l.value||(l.value=u),l.defaultValue=u}p=l.name,p!==""&&(l.name=""),l.defaultChecked=!!l._wrapperState.initialChecked,p!==""&&(l.name=p)}function St(l,u,p){(u!=="number"||Vt(l.ownerDocument)!==l)&&(p==null?l.defaultValue=""+l._wrapperState.initialValue:l.defaultValue!==""+p&&(l.defaultValue=""+p))}var dt=Array.isArray;function Pe(l,u,p,v){if(l=l.options,u){u={};for(var x=0;x<p.length;x++)u["$"+p[x]]=!0;for(p=0;p<l.length;p++)x=u.hasOwnProperty("$"+l[p].value),l[p].selected!==x&&(l[p].selected=x),x&&v&&(l[p].defaultSelected=!0)}else{for(p=""+we(p),u=null,x=0;x<l.length;x++){if(l[x].value===p){l[x].selected=!0,v&&(l[x].defaultSelected=!0);return}u!==null||l[x].disabled||(u=l[x])}u!==null&&(u.selected=!0)}}function pt(l,u){if(u.dangerouslySetInnerHTML!=null)throw Error(o(91));return j({},u,{value:void 0,defaultValue:void 0,children:""+l._wrapperState.initialValue})}function Kt(l,u){var p=u.value;if(p==null){if(p=u.children,u=u.defaultValue,p!=null){if(u!=null)throw Error(o(92));if(dt(p)){if(1<p.length)throw Error(o(93));p=p[0]}u=p}u==null&&(u=""),p=u}l._wrapperState={initialValue:we(p)}}function co(l,u){var p=we(u.value),v=we(u.defaultValue);p!=null&&(p=""+p,p!==l.value&&(l.value=p),u.defaultValue==null&&l.defaultValue!==p&&(l.defaultValue=p)),v!=null&&(l.defaultValue=""+v)}function Rt(l){var u=l.textContent;u===l._wrapperState.initialValue&&u!==""&&u!==null&&(l.value=u)}function er(l){switch(l){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function ri(l,u){return l==null||l==="http://www.w3.org/1999/xhtml"?er(u):l==="http://www.w3.org/2000/svg"&&u==="foreignObject"?"http://www.w3.org/1999/xhtml":l}var st,At=(function(l){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(u,p,v,x){MSApp.execUnsafeLocalFunction(function(){return l(u,p,v,x)})}:l})(function(l,u){if(l.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in l)l.innerHTML=u;else{for(st=st||document.createElement("div"),st.innerHTML="<svg>"+u.valueOf().toString()+"</svg>",u=st.firstChild;l.firstChild;)l.removeChild(l.firstChild);for(;u.firstChild;)l.appendChild(u.firstChild)}});function ni(l,u){if(u){var p=l.firstChild;if(p&&p===l.lastChild&&p.nodeType===3){p.nodeValue=u;return}}l.textContent=u}var Ys={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Wb=["Webkit","ms","Moz","O"];Object.keys(Ys).forEach(function(l){Wb.forEach(function(u){u=u+l.charAt(0).toUpperCase()+l.substring(1),Ys[u]=Ys[l]})});function Cf(l,u,p){return u==null||typeof u=="boolean"||u===""?"":p||typeof u!="number"||u===0||Ys.hasOwnProperty(l)&&Ys[l]?(""+u).trim():u+"px"}function ge(l,u){l=l.style;for(var p in u)if(u.hasOwnProperty(p)){var v=p.indexOf("--")===0,x=Cf(p,u[p],v);p==="float"&&(p="cssFloat"),v?l.setProperty(p,x):l[p]=x}}var at=j({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Ge(l,u){if(u){if(at[l]&&(u.children!=null||u.dangerouslySetInnerHTML!=null))throw Error(o(137,l));if(u.dangerouslySetInnerHTML!=null){if(u.children!=null)throw Error(o(60));if(typeof u.dangerouslySetInnerHTML!="object"||!("__html"in u.dangerouslySetInnerHTML))throw Error(o(61))}if(u.style!=null&&typeof u.style!="object")throw Error(o(62))}}function Ke(l,u){if(l.indexOf("-")===-1)return typeof u.is=="string";switch(l){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Dt=null;function Yt(l){return l=l.target||l.srcElement||window,l.correspondingUseElement&&(l=l.correspondingUseElement),l.nodeType===3?l.parentNode:l}var tr=null,Fr=null,Rr=null;function ii(l){if(l=Eu(l)){if(typeof tr!="function")throw Error(o(280));var u=l.stateNode;u&&(u=Gf(u),tr(l.stateNode,l.type,u))}}function or(l){Fr?Rr?Rr.push(l):Rr=[l]:Fr=l}function $r(){if(Fr){var l=Fr,u=Rr;if(Rr=Fr=null,ii(l),u)for(l=0;l<u.length;l++)ii(u[l])}}function Vi(l,u){return l(u)}function wo(){}var si=!1;function yf(l,u,p){if(si)return l(u,p);si=!0;try{return Vi(l,u,p)}finally{si=!1,(Fr!==null||Rr!==null)&&(wo(),$r())}}function ai(l,u){var p=l.stateNode;if(p===null)return null;var v=Gf(p);if(v===null)return null;p=v[u];e:switch(u){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(v=!v.disabled)||(l=l.type,v=!(l==="button"||l==="input"||l==="select"||l==="textarea")),l=!v;break e;default:l=!1}if(l)return null;if(p&&typeof p!="function")throw Error(o(231,u,typeof p));return p}var Gi=!1;if(a)try{var ji={};Object.defineProperty(ji,"passive",{get:function(){Gi=!0}}),window.addEventListener("test",ji,ji),window.removeEventListener("test",ji,ji)}catch{Gi=!1}function Kr(l,u,p,v,x,R,T,N,G){var oe=Array.prototype.slice.call(arguments,3);try{u.apply(p,oe)}catch(le){this.onError(le)}}var Xr=!1,Qs=null,Js=!1,Rl=null,NJ={onError:function(l){Xr=!0,Qs=l}};function LJ(l,u,p,v,x,R,T,N,G){Xr=!1,Qs=null,Kr.apply(NJ,arguments)}function zJ(l,u,p,v,x,R,T,N,G){if(LJ.apply(this,arguments),Xr){if(Xr){var oe=Qs;Xr=!1,Qs=null}else throw Error(o(198));Js||(Js=!0,Rl=oe)}}function ea(l){var u=l,p=l;if(l.alternate)for(;u.return;)u=u.return;else{l=u;do u=l,(u.flags&4098)!==0&&(p=u.return),l=u.return;while(l)}return u.tag===3?p:null}function U_(l){if(l.tag===13){var u=l.memoizedState;if(u===null&&(l=l.alternate,l!==null&&(u=l.memoizedState)),u!==null)return u.dehydrated}return null}function $_(l){if(ea(l)!==l)throw Error(o(188))}function HJ(l){var u=l.alternate;if(!u){if(u=ea(l),u===null)throw Error(o(188));return u!==l?null:l}for(var p=l,v=u;;){var x=p.return;if(x===null)break;var R=x.alternate;if(R===null){if(v=x.return,v!==null){p=v;continue}break}if(x.child===R.child){for(R=x.child;R;){if(R===p)return $_(x),l;if(R===v)return $_(x),u;R=R.sibling}throw Error(o(188))}if(p.return!==v.return)p=x,v=R;else{for(var T=!1,N=x.child;N;){if(N===p){T=!0,p=x,v=R;break}if(N===v){T=!0,v=x,p=R;break}N=N.sibling}if(!T){for(N=R.child;N;){if(N===p){T=!0,p=R,v=x;break}if(N===v){T=!0,v=R,p=x;break}N=N.sibling}if(!T)throw Error(o(189))}}if(p.alternate!==v)throw Error(o(190))}if(p.tag!==3)throw Error(o(188));return p.stateNode.current===p?l:u}function K_(l){return l=HJ(l),l!==null?X_(l):null}function X_(l){if(l.tag===5||l.tag===6)return l;for(l=l.child;l!==null;){var u=X_(l);if(u!==null)return u;l=l.sibling}return null}var Z_=t.unstable_scheduleCallback,Y_=t.unstable_cancelCallback,VJ=t.unstable_shouldYield,GJ=t.unstable_requestPaint,jt=t.unstable_now,jJ=t.unstable_getCurrentPriorityLevel,qb=t.unstable_ImmediatePriority,Q_=t.unstable_UserBlockingPriority,Sf=t.unstable_NormalPriority,WJ=t.unstable_LowPriority,J_=t.unstable_IdlePriority,xf=null,Tn=null;function qJ(l){if(Tn&&typeof Tn.onCommitFiberRoot=="function")try{Tn.onCommitFiberRoot(xf,l,void 0,(l.current.flags&128)===128)}catch{}}var Zr=Math.clz32?Math.clz32:KJ,UJ=Math.log,$J=Math.LN2;function KJ(l){return l>>>=0,l===0?32:31-(UJ(l)/$J|0)|0}var kf=64,Ff=4194304;function cu(l){switch(l&-l){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return l&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return l&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return l}}function Rf(l,u){var p=l.pendingLanes;if(p===0)return 0;var v=0,x=l.suspendedLanes,R=l.pingedLanes,T=p&268435455;if(T!==0){var N=T&~x;N!==0?v=cu(N):(R&=T,R!==0&&(v=cu(R)))}else T=p&~x,T!==0?v=cu(T):R!==0&&(v=cu(R));if(v===0)return 0;if(u!==0&&u!==v&&(u&x)===0&&(x=v&-v,R=u&-u,x>=R||x===16&&(R&4194240)!==0))return u;if((v&4)!==0&&(v|=p&16),u=l.entangledLanes,u!==0)for(l=l.entanglements,u&=v;0<u;)p=31-Zr(u),x=1<<p,v|=l[p],u&=~x;return v}function XJ(l,u){switch(l){case 1:case 2:case 4:return u+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return u+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function ZJ(l,u){for(var p=l.suspendedLanes,v=l.pingedLanes,x=l.expirationTimes,R=l.pendingLanes;0<R;){var T=31-Zr(R),N=1<<T,G=x[T];G===-1?((N&p)===0||(N&v)!==0)&&(x[T]=XJ(N,u)):G<=u&&(l.expiredLanes|=N),R&=~N}}function Ub(l){return l=l.pendingLanes&-1073741825,l!==0?l:l&1073741824?1073741824:0}function eP(){var l=kf;return kf<<=1,(kf&4194240)===0&&(kf=64),l}function $b(l){for(var u=[],p=0;31>p;p++)u.push(l);return u}function uu(l,u,p){l.pendingLanes|=u,u!==536870912&&(l.suspendedLanes=0,l.pingedLanes=0),l=l.eventTimes,u=31-Zr(u),l[u]=p}function YJ(l,u){var p=l.pendingLanes&~u;l.pendingLanes=u,l.suspendedLanes=0,l.pingedLanes=0,l.expiredLanes&=u,l.mutableReadLanes&=u,l.entangledLanes&=u,u=l.entanglements;var v=l.eventTimes;for(l=l.expirationTimes;0<p;){var x=31-Zr(p),R=1<<x;u[x]=0,v[x]=-1,l[x]=-1,p&=~R}}function Kb(l,u){var p=l.entangledLanes|=u;for(l=l.entanglements;p;){var v=31-Zr(p),x=1<<v;x&u|l[v]&u&&(l[v]|=u),p&=~x}}var ht=0;function tP(l){return l&=-l,1<l?4<l?(l&268435455)!==0?16:536870912:4:1}var oP,Xb,rP,nP,iP,Zb=!1,Ef=[],Wi=null,qi=null,Ui=null,du=new Map,hu=new Map,$i=[],QJ="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function sP(l,u){switch(l){case"focusin":case"focusout":Wi=null;break;case"dragenter":case"dragleave":qi=null;break;case"mouseover":case"mouseout":Ui=null;break;case"pointerover":case"pointerout":du.delete(u.pointerId);break;case"gotpointercapture":case"lostpointercapture":hu.delete(u.pointerId)}}function fu(l,u,p,v,x,R){return l===null||l.nativeEvent!==R?(l={blockedOn:u,domEventName:p,eventSystemFlags:v,nativeEvent:R,targetContainers:[x]},u!==null&&(u=Eu(u),u!==null&&Xb(u)),l):(l.eventSystemFlags|=v,u=l.targetContainers,x!==null&&u.indexOf(x)===-1&&u.push(x),l)}function JJ(l,u,p,v,x){switch(u){case"focusin":return Wi=fu(Wi,l,u,p,v,x),!0;case"dragenter":return qi=fu(qi,l,u,p,v,x),!0;case"mouseover":return Ui=fu(Ui,l,u,p,v,x),!0;case"pointerover":var R=x.pointerId;return du.set(R,fu(du.get(R)||null,l,u,p,v,x)),!0;case"gotpointercapture":return R=x.pointerId,hu.set(R,fu(hu.get(R)||null,l,u,p,v,x)),!0}return!1}function aP(l){var u=ta(l.target);if(u!==null){var p=ea(u);if(p!==null){if(u=p.tag,u===13){if(u=U_(p),u!==null){l.blockedOn=u,iP(l.priority,function(){rP(p)});return}}else if(u===3&&p.stateNode.current.memoizedState.isDehydrated){l.blockedOn=p.tag===3?p.stateNode.containerInfo:null;return}}}l.blockedOn=null}function _f(l){if(l.blockedOn!==null)return!1;for(var u=l.targetContainers;0<u.length;){var p=Qb(l.domEventName,l.eventSystemFlags,u[0],l.nativeEvent);if(p===null){p=l.nativeEvent;var v=new p.constructor(p.type,p);Dt=v,p.target.dispatchEvent(v),Dt=null}else return u=Eu(p),u!==null&&Xb(u),l.blockedOn=p,!1;u.shift()}return!0}function lP(l,u,p){_f(l)&&p.delete(u)}function eee(){Zb=!1,Wi!==null&&_f(Wi)&&(Wi=null),qi!==null&&_f(qi)&&(qi=null),Ui!==null&&_f(Ui)&&(Ui=null),du.forEach(lP),hu.forEach(lP)}function pu(l,u){l.blockedOn===u&&(l.blockedOn=null,Zb||(Zb=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,eee)))}function gu(l){function u(x){return pu(x,l)}if(0<Ef.length){pu(Ef[0],l);for(var p=1;p<Ef.length;p++){var v=Ef[p];v.blockedOn===l&&(v.blockedOn=null)}}for(Wi!==null&&pu(Wi,l),qi!==null&&pu(qi,l),Ui!==null&&pu(Ui,l),du.forEach(u),hu.forEach(u),p=0;p<$i.length;p++)v=$i[p],v.blockedOn===l&&(v.blockedOn=null);for(;0<$i.length&&(p=$i[0],p.blockedOn===null);)aP(p),p.blockedOn===null&&$i.shift()}var El=E.ReactCurrentBatchConfig,Pf=!0;function tee(l,u,p,v){var x=ht,R=El.transition;El.transition=null;try{ht=1,Yb(l,u,p,v)}finally{ht=x,El.transition=R}}function oee(l,u,p,v){var x=ht,R=El.transition;El.transition=null;try{ht=4,Yb(l,u,p,v)}finally{ht=x,El.transition=R}}function Yb(l,u,p,v){if(Pf){var x=Qb(l,u,p,v);if(x===null)gw(l,u,v,Df,p),sP(l,v);else if(JJ(x,l,u,p,v))v.stopPropagation();else if(sP(l,v),u&4&&-1<QJ.indexOf(l)){for(;x!==null;){var R=Eu(x);if(R!==null&&oP(R),R=Qb(l,u,p,v),R===null&&gw(l,u,v,Df,p),R===x)break;x=R}x!==null&&v.stopPropagation()}else gw(l,u,v,null,p)}}var Df=null;function Qb(l,u,p,v){if(Df=null,l=Yt(v),l=ta(l),l!==null)if(u=ea(l),u===null)l=null;else if(p=u.tag,p===13){if(l=U_(u),l!==null)return l;l=null}else if(p===3){if(u.stateNode.current.memoizedState.isDehydrated)return u.tag===3?u.stateNode.containerInfo:null;l=null}else u!==l&&(l=null);return Df=l,null}function cP(l){switch(l){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(jJ()){case qb:return 1;case Q_:return 4;case Sf:case WJ:return 16;case J_:return 536870912;default:return 16}default:return 16}}var Ki=null,Jb=null,Tf=null;function uP(){if(Tf)return Tf;var l,u=Jb,p=u.length,v,x="value"in Ki?Ki.value:Ki.textContent,R=x.length;for(l=0;l<p&&u[l]===x[l];l++);var T=p-l;for(v=1;v<=T&&u[p-v]===x[R-v];v++);return Tf=x.slice(l,1<v?1-v:void 0)}function Mf(l){var u=l.keyCode;return"charCode"in l?(l=l.charCode,l===0&&u===13&&(l=13)):l=u,l===10&&(l=13),32<=l||l===13?l:0}function Af(){return!0}function dP(){return!1}function rr(l){function u(p,v,x,R,T){this._reactName=p,this._targetInst=x,this.type=v,this.nativeEvent=R,this.target=T,this.currentTarget=null;for(var N in l)l.hasOwnProperty(N)&&(p=l[N],this[N]=p?p(R):R[N]);return this.isDefaultPrevented=(R.defaultPrevented!=null?R.defaultPrevented:R.returnValue===!1)?Af:dP,this.isPropagationStopped=dP,this}return j(u.prototype,{preventDefault:function(){this.defaultPrevented=!0;var p=this.nativeEvent;p&&(p.preventDefault?p.preventDefault():typeof p.returnValue!="unknown"&&(p.returnValue=!1),this.isDefaultPrevented=Af)},stopPropagation:function(){var p=this.nativeEvent;p&&(p.stopPropagation?p.stopPropagation():typeof p.cancelBubble!="unknown"&&(p.cancelBubble=!0),this.isPropagationStopped=Af)},persist:function(){},isPersistent:Af}),u}var _l={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(l){return l.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ew=rr(_l),mu=j({},_l,{view:0,detail:0}),ree=rr(mu),tw,ow,vu,If=j({},mu,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:nw,button:0,buttons:0,relatedTarget:function(l){return l.relatedTarget===void 0?l.fromElement===l.srcElement?l.toElement:l.fromElement:l.relatedTarget},movementX:function(l){return"movementX"in l?l.movementX:(l!==vu&&(vu&&l.type==="mousemove"?(tw=l.screenX-vu.screenX,ow=l.screenY-vu.screenY):ow=tw=0,vu=l),tw)},movementY:function(l){return"movementY"in l?l.movementY:ow}}),hP=rr(If),nee=j({},If,{dataTransfer:0}),iee=rr(nee),see=j({},mu,{relatedTarget:0}),rw=rr(see),aee=j({},_l,{animationName:0,elapsedTime:0,pseudoElement:0}),lee=rr(aee),cee=j({},_l,{clipboardData:function(l){return"clipboardData"in l?l.clipboardData:window.clipboardData}}),uee=rr(cee),dee=j({},_l,{data:0}),fP=rr(dee),hee={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},fee={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},pee={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function gee(l){var u=this.nativeEvent;return u.getModifierState?u.getModifierState(l):(l=pee[l])?!!u[l]:!1}function nw(){return gee}var mee=j({},mu,{key:function(l){if(l.key){var u=hee[l.key]||l.key;if(u!=="Unidentified")return u}return l.type==="keypress"?(l=Mf(l),l===13?"Enter":String.fromCharCode(l)):l.type==="keydown"||l.type==="keyup"?fee[l.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:nw,charCode:function(l){return l.type==="keypress"?Mf(l):0},keyCode:function(l){return l.type==="keydown"||l.type==="keyup"?l.keyCode:0},which:function(l){return l.type==="keypress"?Mf(l):l.type==="keydown"||l.type==="keyup"?l.keyCode:0}}),vee=rr(mee),bee=j({},If,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),pP=rr(bee),wee=j({},mu,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:nw}),Cee=rr(wee),yee=j({},_l,{propertyName:0,elapsedTime:0,pseudoElement:0}),See=rr(yee),xee=j({},If,{deltaX:function(l){return"deltaX"in l?l.deltaX:"wheelDeltaX"in l?-l.wheelDeltaX:0},deltaY:function(l){return"deltaY"in l?l.deltaY:"wheelDeltaY"in l?-l.wheelDeltaY:"wheelDelta"in l?-l.wheelDelta:0},deltaZ:0,deltaMode:0}),kee=rr(xee),Fee=[9,13,27,32],iw=a&&"CompositionEvent"in window,bu=null;a&&"documentMode"in document&&(bu=document.documentMode);var Ree=a&&"TextEvent"in window&&!bu,gP=a&&(!iw||bu&&8<bu&&11>=bu),mP=" ",vP=!1;function bP(l,u){switch(l){case"keyup":return Fee.indexOf(u.keyCode)!==-1;case"keydown":return u.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function wP(l){return l=l.detail,typeof l=="object"&&"data"in l?l.data:null}var Pl=!1;function Eee(l,u){switch(l){case"compositionend":return wP(u);case"keypress":return u.which!==32?null:(vP=!0,mP);case"textInput":return l=u.data,l===mP&&vP?null:l;default:return null}}function _ee(l,u){if(Pl)return l==="compositionend"||!iw&&bP(l,u)?(l=uP(),Tf=Jb=Ki=null,Pl=!1,l):null;switch(l){case"paste":return null;case"keypress":if(!(u.ctrlKey||u.altKey||u.metaKey)||u.ctrlKey&&u.altKey){if(u.char&&1<u.char.length)return u.char;if(u.which)return String.fromCharCode(u.which)}return null;case"compositionend":return gP&&u.locale!=="ko"?null:u.data;default:return null}}var Pee={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function CP(l){var u=l&&l.nodeName&&l.nodeName.toLowerCase();return u==="input"?!!Pee[l.type]:u==="textarea"}function yP(l,u,p,v){or(v),u=zf(u,"onChange"),0<u.length&&(p=new ew("onChange","change",null,p,v),l.push({event:p,listeners:u}))}var wu=null,Cu=null;function Dee(l){zP(l,0)}function Bf(l){var u=Il(l);if(Ht(u))return l}function Tee(l,u){if(l==="change")return u}var SP=!1;if(a){var sw;if(a){var aw="oninput"in document;if(!aw){var xP=document.createElement("div");xP.setAttribute("oninput","return;"),aw=typeof xP.oninput=="function"}sw=aw}else sw=!1;SP=sw&&(!document.documentMode||9<document.documentMode)}function kP(){wu&&(wu.detachEvent("onpropertychange",FP),Cu=wu=null)}function FP(l){if(l.propertyName==="value"&&Bf(Cu)){var u=[];yP(u,Cu,l,Yt(l)),yf(Dee,u)}}function Mee(l,u,p){l==="focusin"?(kP(),wu=u,Cu=p,wu.attachEvent("onpropertychange",FP)):l==="focusout"&&kP()}function Aee(l){if(l==="selectionchange"||l==="keyup"||l==="keydown")return Bf(Cu)}function Iee(l,u){if(l==="click")return Bf(u)}function Bee(l,u){if(l==="input"||l==="change")return Bf(u)}function Oee(l,u){return l===u&&(l!==0||1/l===1/u)||l!==l&&u!==u}var Yr=typeof Object.is=="function"?Object.is:Oee;function yu(l,u){if(Yr(l,u))return!0;if(typeof l!="object"||l===null||typeof u!="object"||u===null)return!1;var p=Object.keys(l),v=Object.keys(u);if(p.length!==v.length)return!1;for(v=0;v<p.length;v++){var x=p[v];if(!c.call(u,x)||!Yr(l[x],u[x]))return!1}return!0}function RP(l){for(;l&&l.firstChild;)l=l.firstChild;return l}function EP(l,u){var p=RP(l);l=0;for(var v;p;){if(p.nodeType===3){if(v=l+p.textContent.length,l<=u&&v>=u)return{node:p,offset:u-l};l=v}e:{for(;p;){if(p.nextSibling){p=p.nextSibling;break e}p=p.parentNode}p=void 0}p=RP(p)}}function _P(l,u){return l&&u?l===u?!0:l&&l.nodeType===3?!1:u&&u.nodeType===3?_P(l,u.parentNode):"contains"in l?l.contains(u):l.compareDocumentPosition?!!(l.compareDocumentPosition(u)&16):!1:!1}function PP(){for(var l=window,u=Vt();u instanceof l.HTMLIFrameElement;){try{var p=typeof u.contentWindow.location.href=="string"}catch{p=!1}if(p)l=u.contentWindow;else break;u=Vt(l.document)}return u}function lw(l){var u=l&&l.nodeName&&l.nodeName.toLowerCase();return u&&(u==="input"&&(l.type==="text"||l.type==="search"||l.type==="tel"||l.type==="url"||l.type==="password")||u==="textarea"||l.contentEditable==="true")}function Nee(l){var u=PP(),p=l.focusedElem,v=l.selectionRange;if(u!==p&&p&&p.ownerDocument&&_P(p.ownerDocument.documentElement,p)){if(v!==null&&lw(p)){if(u=v.start,l=v.end,l===void 0&&(l=u),"selectionStart"in p)p.selectionStart=u,p.selectionEnd=Math.min(l,p.value.length);else if(l=(u=p.ownerDocument||document)&&u.defaultView||window,l.getSelection){l=l.getSelection();var x=p.textContent.length,R=Math.min(v.start,x);v=v.end===void 0?R:Math.min(v.end,x),!l.extend&&R>v&&(x=v,v=R,R=x),x=EP(p,R);var T=EP(p,v);x&&T&&(l.rangeCount!==1||l.anchorNode!==x.node||l.anchorOffset!==x.offset||l.focusNode!==T.node||l.focusOffset!==T.offset)&&(u=u.createRange(),u.setStart(x.node,x.offset),l.removeAllRanges(),R>v?(l.addRange(u),l.extend(T.node,T.offset)):(u.setEnd(T.node,T.offset),l.addRange(u)))}}for(u=[],l=p;l=l.parentNode;)l.nodeType===1&&u.push({element:l,left:l.scrollLeft,top:l.scrollTop});for(typeof p.focus=="function"&&p.focus(),p=0;p<u.length;p++)l=u[p],l.element.scrollLeft=l.left,l.element.scrollTop=l.top}}var Lee=a&&"documentMode"in document&&11>=document.documentMode,Dl=null,cw=null,Su=null,uw=!1;function DP(l,u,p){var v=p.window===p?p.document:p.nodeType===9?p:p.ownerDocument;uw||Dl==null||Dl!==Vt(v)||(v=Dl,"selectionStart"in v&&lw(v)?v={start:v.selectionStart,end:v.selectionEnd}:(v=(v.ownerDocument&&v.ownerDocument.defaultView||window).getSelection(),v={anchorNode:v.anchorNode,anchorOffset:v.anchorOffset,focusNode:v.focusNode,focusOffset:v.focusOffset}),Su&&yu(Su,v)||(Su=v,v=zf(cw,"onSelect"),0<v.length&&(u=new ew("onSelect","select",null,u,p),l.push({event:u,listeners:v}),u.target=Dl)))}function Of(l,u){var p={};return p[l.toLowerCase()]=u.toLowerCase(),p["Webkit"+l]="webkit"+u,p["Moz"+l]="moz"+u,p}var Tl={animationend:Of("Animation","AnimationEnd"),animationiteration:Of("Animation","AnimationIteration"),animationstart:Of("Animation","AnimationStart"),transitionend:Of("Transition","TransitionEnd")},dw={},TP={};a&&(TP=document.createElement("div").style,"AnimationEvent"in window||(delete Tl.animationend.animation,delete Tl.animationiteration.animation,delete Tl.animationstart.animation),"TransitionEvent"in window||delete Tl.transitionend.transition);function Nf(l){if(dw[l])return dw[l];if(!Tl[l])return l;var u=Tl[l],p;for(p in u)if(u.hasOwnProperty(p)&&p in TP)return dw[l]=u[p];return l}var MP=Nf("animationend"),AP=Nf("animationiteration"),IP=Nf("animationstart"),BP=Nf("transitionend"),OP=new Map,NP="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Xi(l,u){OP.set(l,u),i(u,[l])}for(var hw=0;hw<NP.length;hw++){var fw=NP[hw],zee=fw.toLowerCase(),Hee=fw[0].toUpperCase()+fw.slice(1);Xi(zee,"on"+Hee)}Xi(MP,"onAnimationEnd"),Xi(AP,"onAnimationIteration"),Xi(IP,"onAnimationStart"),Xi("dblclick","onDoubleClick"),Xi("focusin","onFocus"),Xi("focusout","onBlur"),Xi(BP,"onTransitionEnd"),s("onMouseEnter",["mouseout","mouseover"]),s("onMouseLeave",["mouseout","mouseover"]),s("onPointerEnter",["pointerout","pointerover"]),s("onPointerLeave",["pointerout","pointerover"]),i("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),i("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),i("onBeforeInput",["compositionend","keypress","textInput","paste"]),i("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),i("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),i("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var xu="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Vee=new Set("cancel close invalid load scroll toggle".split(" ").concat(xu));function LP(l,u,p){var v=l.type||"unknown-event";l.currentTarget=p,zJ(v,u,void 0,l),l.currentTarget=null}function zP(l,u){u=(u&4)!==0;for(var p=0;p<l.length;p++){var v=l[p],x=v.event;v=v.listeners;e:{var R=void 0;if(u)for(var T=v.length-1;0<=T;T--){var N=v[T],G=N.instance,oe=N.currentTarget;if(N=N.listener,G!==R&&x.isPropagationStopped())break e;LP(x,N,oe),R=G}else for(T=0;T<v.length;T++){if(N=v[T],G=N.instance,oe=N.currentTarget,N=N.listener,G!==R&&x.isPropagationStopped())break e;LP(x,N,oe),R=G}}}if(Js)throw l=Rl,Js=!1,Rl=null,l}function Et(l,u){var p=u[yw];p===void 0&&(p=u[yw]=new Set);var v=l+"__bubble";p.has(v)||(HP(u,l,2,!1),p.add(v))}function pw(l,u,p){var v=0;u&&(v|=4),HP(p,l,v,u)}var Lf="_reactListening"+Math.random().toString(36).slice(2);function ku(l){if(!l[Lf]){l[Lf]=!0,r.forEach(function(p){p!=="selectionchange"&&(Vee.has(p)||pw(p,!1,l),pw(p,!0,l))});var u=l.nodeType===9?l:l.ownerDocument;u===null||u[Lf]||(u[Lf]=!0,pw("selectionchange",!1,u))}}function HP(l,u,p,v){switch(cP(u)){case 1:var x=tee;break;case 4:x=oee;break;default:x=Yb}p=x.bind(null,u,p,l),x=void 0,!Gi||u!=="touchstart"&&u!=="touchmove"&&u!=="wheel"||(x=!0),v?x!==void 0?l.addEventListener(u,p,{capture:!0,passive:x}):l.addEventListener(u,p,!0):x!==void 0?l.addEventListener(u,p,{passive:x}):l.addEventListener(u,p,!1)}function gw(l,u,p,v,x){var R=v;if((u&1)===0&&(u&2)===0&&v!==null)e:for(;;){if(v===null)return;var T=v.tag;if(T===3||T===4){var N=v.stateNode.containerInfo;if(N===x||N.nodeType===8&&N.parentNode===x)break;if(T===4)for(T=v.return;T!==null;){var G=T.tag;if((G===3||G===4)&&(G=T.stateNode.containerInfo,G===x||G.nodeType===8&&G.parentNode===x))return;T=T.return}for(;N!==null;){if(T=ta(N),T===null)return;if(G=T.tag,G===5||G===6){v=R=T;continue e}N=N.parentNode}}v=v.return}yf(function(){var oe=R,le=Yt(p),ce=[];e:{var se=OP.get(l);if(se!==void 0){var ye=ew,Fe=l;switch(l){case"keypress":if(Mf(p)===0)break e;case"keydown":case"keyup":ye=vee;break;case"focusin":Fe="focus",ye=rw;break;case"focusout":Fe="blur",ye=rw;break;case"beforeblur":case"afterblur":ye=rw;break;case"click":if(p.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":ye=hP;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ye=iee;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ye=Cee;break;case MP:case AP:case IP:ye=lee;break;case BP:ye=See;break;case"scroll":ye=ree;break;case"wheel":ye=kee;break;case"copy":case"cut":case"paste":ye=uee;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ye=pP}var Re=(u&4)!==0,Wt=!Re&&l==="scroll",Z=Re?se!==null?se+"Capture":null:se;Re=[];for(var q=oe,Q;q!==null;){Q=q;var fe=Q.stateNode;if(Q.tag===5&&fe!==null&&(Q=fe,Z!==null&&(fe=ai(q,Z),fe!=null&&Re.push(Fu(q,fe,Q)))),Wt)break;q=q.return}0<Re.length&&(se=new ye(se,Fe,null,p,le),ce.push({event:se,listeners:Re}))}}if((u&7)===0){e:{if(se=l==="mouseover"||l==="pointerover",ye=l==="mouseout"||l==="pointerout",se&&p!==Dt&&(Fe=p.relatedTarget||p.fromElement)&&(ta(Fe)||Fe[li]))break e;if((ye||se)&&(se=le.window===le?le:(se=le.ownerDocument)?se.defaultView||se.parentWindow:window,ye?(Fe=p.relatedTarget||p.toElement,ye=oe,Fe=Fe?ta(Fe):null,Fe!==null&&(Wt=ea(Fe),Fe!==Wt||Fe.tag!==5&&Fe.tag!==6)&&(Fe=null)):(ye=null,Fe=oe),ye!==Fe)){if(Re=hP,fe="onMouseLeave",Z="onMouseEnter",q="mouse",(l==="pointerout"||l==="pointerover")&&(Re=pP,fe="onPointerLeave",Z="onPointerEnter",q="pointer"),Wt=ye==null?se:Il(ye),Q=Fe==null?se:Il(Fe),se=new Re(fe,q+"leave",ye,p,le),se.target=Wt,se.relatedTarget=Q,fe=null,ta(le)===oe&&(Re=new Re(Z,q+"enter",Fe,p,le),Re.target=Q,Re.relatedTarget=Wt,fe=Re),Wt=fe,ye&&Fe)t:{for(Re=ye,Z=Fe,q=0,Q=Re;Q;Q=Ml(Q))q++;for(Q=0,fe=Z;fe;fe=Ml(fe))Q++;for(;0<q-Q;)Re=Ml(Re),q--;for(;0<Q-q;)Z=Ml(Z),Q--;for(;q--;){if(Re===Z||Z!==null&&Re===Z.alternate)break t;Re=Ml(Re),Z=Ml(Z)}Re=null}else Re=null;ye!==null&&VP(ce,se,ye,Re,!1),Fe!==null&&Wt!==null&&VP(ce,Wt,Fe,Re,!0)}}e:{if(se=oe?Il(oe):window,ye=se.nodeName&&se.nodeName.toLowerCase(),ye==="select"||ye==="input"&&se.type==="file")var _e=Tee;else if(CP(se))if(SP)_e=Bee;else{_e=Aee;var Me=Mee}else(ye=se.nodeName)&&ye.toLowerCase()==="input"&&(se.type==="checkbox"||se.type==="radio")&&(_e=Iee);if(_e&&(_e=_e(l,oe))){yP(ce,_e,p,le);break e}Me&&Me(l,se,oe),l==="focusout"&&(Me=se._wrapperState)&&Me.controlled&&se.type==="number"&&St(se,"number",se.value)}switch(Me=oe?Il(oe):window,l){case"focusin":(CP(Me)||Me.contentEditable==="true")&&(Dl=Me,cw=oe,Su=null);break;case"focusout":Su=cw=Dl=null;break;case"mousedown":uw=!0;break;case"contextmenu":case"mouseup":case"dragend":uw=!1,DP(ce,p,le);break;case"selectionchange":if(Lee)break;case"keydown":case"keyup":DP(ce,p,le)}var Ae;if(iw)e:{switch(l){case"compositionstart":var Oe="onCompositionStart";break e;case"compositionend":Oe="onCompositionEnd";break e;case"compositionupdate":Oe="onCompositionUpdate";break e}Oe=void 0}else Pl?bP(l,p)&&(Oe="onCompositionEnd"):l==="keydown"&&p.keyCode===229&&(Oe="onCompositionStart");Oe&&(gP&&p.locale!=="ko"&&(Pl||Oe!=="onCompositionStart"?Oe==="onCompositionEnd"&&Pl&&(Ae=uP()):(Ki=le,Jb="value"in Ki?Ki.value:Ki.textContent,Pl=!0)),Me=zf(oe,Oe),0<Me.length&&(Oe=new fP(Oe,l,null,p,le),ce.push({event:Oe,listeners:Me}),Ae?Oe.data=Ae:(Ae=wP(p),Ae!==null&&(Oe.data=Ae)))),(Ae=Ree?Eee(l,p):_ee(l,p))&&(oe=zf(oe,"onBeforeInput"),0<oe.length&&(le=new fP("onBeforeInput","beforeinput",null,p,le),ce.push({event:le,listeners:oe}),le.data=Ae))}zP(ce,u)})}function Fu(l,u,p){return{instance:l,listener:u,currentTarget:p}}function zf(l,u){for(var p=u+"Capture",v=[];l!==null;){var x=l,R=x.stateNode;x.tag===5&&R!==null&&(x=R,R=ai(l,p),R!=null&&v.unshift(Fu(l,R,x)),R=ai(l,u),R!=null&&v.push(Fu(l,R,x))),l=l.return}return v}function Ml(l){if(l===null)return null;do l=l.return;while(l&&l.tag!==5);return l||null}function VP(l,u,p,v,x){for(var R=u._reactName,T=[];p!==null&&p!==v;){var N=p,G=N.alternate,oe=N.stateNode;if(G!==null&&G===v)break;N.tag===5&&oe!==null&&(N=oe,x?(G=ai(p,R),G!=null&&T.unshift(Fu(p,G,N))):x||(G=ai(p,R),G!=null&&T.push(Fu(p,G,N)))),p=p.return}T.length!==0&&l.push({event:u,listeners:T})}var Gee=/\r\n?/g,jee=/\u0000|\uFFFD/g;function GP(l){return(typeof l=="string"?l:""+l).replace(Gee,`
|
|
7
|
+
`).replace(jee,"")}function Hf(l,u,p){if(u=GP(u),GP(l)!==u&&p)throw Error(o(425))}function Vf(){}var mw=null,vw=null;function bw(l,u){return l==="textarea"||l==="noscript"||typeof u.children=="string"||typeof u.children=="number"||typeof u.dangerouslySetInnerHTML=="object"&&u.dangerouslySetInnerHTML!==null&&u.dangerouslySetInnerHTML.__html!=null}var ww=typeof setTimeout=="function"?setTimeout:void 0,Wee=typeof clearTimeout=="function"?clearTimeout:void 0,jP=typeof Promise=="function"?Promise:void 0,qee=typeof queueMicrotask=="function"?queueMicrotask:typeof jP<"u"?function(l){return jP.resolve(null).then(l).catch(Uee)}:ww;function Uee(l){setTimeout(function(){throw l})}function Cw(l,u){var p=u,v=0;do{var x=p.nextSibling;if(l.removeChild(p),x&&x.nodeType===8)if(p=x.data,p==="/$"){if(v===0){l.removeChild(x),gu(u);return}v--}else p!=="$"&&p!=="$?"&&p!=="$!"||v++;p=x}while(p);gu(u)}function Zi(l){for(;l!=null;l=l.nextSibling){var u=l.nodeType;if(u===1||u===3)break;if(u===8){if(u=l.data,u==="$"||u==="$!"||u==="$?")break;if(u==="/$")return null}}return l}function WP(l){l=l.previousSibling;for(var u=0;l;){if(l.nodeType===8){var p=l.data;if(p==="$"||p==="$!"||p==="$?"){if(u===0)return l;u--}else p==="/$"&&u++}l=l.previousSibling}return null}var Al=Math.random().toString(36).slice(2),Mn="__reactFiber$"+Al,Ru="__reactProps$"+Al,li="__reactContainer$"+Al,yw="__reactEvents$"+Al,$ee="__reactListeners$"+Al,Kee="__reactHandles$"+Al;function ta(l){var u=l[Mn];if(u)return u;for(var p=l.parentNode;p;){if(u=p[li]||p[Mn]){if(p=u.alternate,u.child!==null||p!==null&&p.child!==null)for(l=WP(l);l!==null;){if(p=l[Mn])return p;l=WP(l)}return u}l=p,p=l.parentNode}return null}function Eu(l){return l=l[Mn]||l[li],!l||l.tag!==5&&l.tag!==6&&l.tag!==13&&l.tag!==3?null:l}function Il(l){if(l.tag===5||l.tag===6)return l.stateNode;throw Error(o(33))}function Gf(l){return l[Ru]||null}var Sw=[],Bl=-1;function Yi(l){return{current:l}}function _t(l){0>Bl||(l.current=Sw[Bl],Sw[Bl]=null,Bl--)}function xt(l,u){Bl++,Sw[Bl]=l.current,l.current=u}var Qi={},Co=Yi(Qi),No=Yi(!1),oa=Qi;function Ol(l,u){var p=l.type.contextTypes;if(!p)return Qi;var v=l.stateNode;if(v&&v.__reactInternalMemoizedUnmaskedChildContext===u)return v.__reactInternalMemoizedMaskedChildContext;var x={},R;for(R in p)x[R]=u[R];return v&&(l=l.stateNode,l.__reactInternalMemoizedUnmaskedChildContext=u,l.__reactInternalMemoizedMaskedChildContext=x),x}function Lo(l){return l=l.childContextTypes,l!=null}function jf(){_t(No),_t(Co)}function qP(l,u,p){if(Co.current!==Qi)throw Error(o(168));xt(Co,u),xt(No,p)}function UP(l,u,p){var v=l.stateNode;if(u=u.childContextTypes,typeof v.getChildContext!="function")return p;v=v.getChildContext();for(var x in v)if(!(x in u))throw Error(o(108,He(l)||"Unknown",x));return j({},p,v)}function Wf(l){return l=(l=l.stateNode)&&l.__reactInternalMemoizedMergedChildContext||Qi,oa=Co.current,xt(Co,l),xt(No,No.current),!0}function $P(l,u,p){var v=l.stateNode;if(!v)throw Error(o(169));p?(l=UP(l,u,oa),v.__reactInternalMemoizedMergedChildContext=l,_t(No),_t(Co),xt(Co,l)):_t(No),xt(No,p)}var ci=null,qf=!1,xw=!1;function KP(l){ci===null?ci=[l]:ci.push(l)}function Xee(l){qf=!0,KP(l)}function Ji(){if(!xw&&ci!==null){xw=!0;var l=0,u=ht;try{var p=ci;for(ht=1;l<p.length;l++){var v=p[l];do v=v(!0);while(v!==null)}ci=null,qf=!1}catch(x){throw ci!==null&&(ci=ci.slice(l+1)),Z_(qb,Ji),x}finally{ht=u,xw=!1}}return null}var Nl=[],Ll=0,Uf=null,$f=0,Er=[],_r=0,ra=null,ui=1,di="";function na(l,u){Nl[Ll++]=$f,Nl[Ll++]=Uf,Uf=l,$f=u}function XP(l,u,p){Er[_r++]=ui,Er[_r++]=di,Er[_r++]=ra,ra=l;var v=ui;l=di;var x=32-Zr(v)-1;v&=~(1<<x),p+=1;var R=32-Zr(u)+x;if(30<R){var T=x-x%5;R=(v&(1<<T)-1).toString(32),v>>=T,x-=T,ui=1<<32-Zr(u)+x|p<<x|v,di=R+l}else ui=1<<R|p<<x|v,di=l}function kw(l){l.return!==null&&(na(l,1),XP(l,1,0))}function Fw(l){for(;l===Uf;)Uf=Nl[--Ll],Nl[Ll]=null,$f=Nl[--Ll],Nl[Ll]=null;for(;l===ra;)ra=Er[--_r],Er[_r]=null,di=Er[--_r],Er[_r]=null,ui=Er[--_r],Er[_r]=null}var nr=null,ir=null,Tt=!1,Qr=null;function ZP(l,u){var p=Mr(5,null,null,0);p.elementType="DELETED",p.stateNode=u,p.return=l,u=l.deletions,u===null?(l.deletions=[p],l.flags|=16):u.push(p)}function YP(l,u){switch(l.tag){case 5:var p=l.type;return u=u.nodeType!==1||p.toLowerCase()!==u.nodeName.toLowerCase()?null:u,u!==null?(l.stateNode=u,nr=l,ir=Zi(u.firstChild),!0):!1;case 6:return u=l.pendingProps===""||u.nodeType!==3?null:u,u!==null?(l.stateNode=u,nr=l,ir=null,!0):!1;case 13:return u=u.nodeType!==8?null:u,u!==null?(p=ra!==null?{id:ui,overflow:di}:null,l.memoizedState={dehydrated:u,treeContext:p,retryLane:1073741824},p=Mr(18,null,null,0),p.stateNode=u,p.return=l,l.child=p,nr=l,ir=null,!0):!1;default:return!1}}function Rw(l){return(l.mode&1)!==0&&(l.flags&128)===0}function Ew(l){if(Tt){var u=ir;if(u){var p=u;if(!YP(l,u)){if(Rw(l))throw Error(o(418));u=Zi(p.nextSibling);var v=nr;u&&YP(l,u)?ZP(v,p):(l.flags=l.flags&-4097|2,Tt=!1,nr=l)}}else{if(Rw(l))throw Error(o(418));l.flags=l.flags&-4097|2,Tt=!1,nr=l}}}function QP(l){for(l=l.return;l!==null&&l.tag!==5&&l.tag!==3&&l.tag!==13;)l=l.return;nr=l}function Kf(l){if(l!==nr)return!1;if(!Tt)return QP(l),Tt=!0,!1;var u;if((u=l.tag!==3)&&!(u=l.tag!==5)&&(u=l.type,u=u!=="head"&&u!=="body"&&!bw(l.type,l.memoizedProps)),u&&(u=ir)){if(Rw(l))throw JP(),Error(o(418));for(;u;)ZP(l,u),u=Zi(u.nextSibling)}if(QP(l),l.tag===13){if(l=l.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(o(317));e:{for(l=l.nextSibling,u=0;l;){if(l.nodeType===8){var p=l.data;if(p==="/$"){if(u===0){ir=Zi(l.nextSibling);break e}u--}else p!=="$"&&p!=="$!"&&p!=="$?"||u++}l=l.nextSibling}ir=null}}else ir=nr?Zi(l.stateNode.nextSibling):null;return!0}function JP(){for(var l=ir;l;)l=Zi(l.nextSibling)}function zl(){ir=nr=null,Tt=!1}function _w(l){Qr===null?Qr=[l]:Qr.push(l)}var Zee=E.ReactCurrentBatchConfig;function _u(l,u,p){if(l=p.ref,l!==null&&typeof l!="function"&&typeof l!="object"){if(p._owner){if(p=p._owner,p){if(p.tag!==1)throw Error(o(309));var v=p.stateNode}if(!v)throw Error(o(147,l));var x=v,R=""+l;return u!==null&&u.ref!==null&&typeof u.ref=="function"&&u.ref._stringRef===R?u.ref:(u=function(T){var N=x.refs;T===null?delete N[R]:N[R]=T},u._stringRef=R,u)}if(typeof l!="string")throw Error(o(284));if(!p._owner)throw Error(o(290,l))}return l}function Xf(l,u){throw l=Object.prototype.toString.call(u),Error(o(31,l==="[object Object]"?"object with keys {"+Object.keys(u).join(", ")+"}":l))}function eD(l){var u=l._init;return u(l._payload)}function tD(l){function u(Z,q){if(l){var Q=Z.deletions;Q===null?(Z.deletions=[q],Z.flags|=16):Q.push(q)}}function p(Z,q){if(!l)return null;for(;q!==null;)u(Z,q),q=q.sibling;return null}function v(Z,q){for(Z=new Map;q!==null;)q.key!==null?Z.set(q.key,q):Z.set(q.index,q),q=q.sibling;return Z}function x(Z,q){return Z=as(Z,q),Z.index=0,Z.sibling=null,Z}function R(Z,q,Q){return Z.index=Q,l?(Q=Z.alternate,Q!==null?(Q=Q.index,Q<q?(Z.flags|=2,q):Q):(Z.flags|=2,q)):(Z.flags|=1048576,q)}function T(Z){return l&&Z.alternate===null&&(Z.flags|=2),Z}function N(Z,q,Q,fe){return q===null||q.tag!==6?(q=wC(Q,Z.mode,fe),q.return=Z,q):(q=x(q,Q),q.return=Z,q)}function G(Z,q,Q,fe){var _e=Q.type;return _e===D?le(Z,q,Q.props.children,fe,Q.key):q!==null&&(q.elementType===_e||typeof _e=="object"&&_e!==null&&_e.$$typeof===$&&eD(_e)===q.type)?(fe=x(q,Q.props),fe.ref=_u(Z,q,Q),fe.return=Z,fe):(fe=wp(Q.type,Q.key,Q.props,null,Z.mode,fe),fe.ref=_u(Z,q,Q),fe.return=Z,fe)}function oe(Z,q,Q,fe){return q===null||q.tag!==4||q.stateNode.containerInfo!==Q.containerInfo||q.stateNode.implementation!==Q.implementation?(q=CC(Q,Z.mode,fe),q.return=Z,q):(q=x(q,Q.children||[]),q.return=Z,q)}function le(Z,q,Q,fe,_e){return q===null||q.tag!==7?(q=ha(Q,Z.mode,fe,_e),q.return=Z,q):(q=x(q,Q),q.return=Z,q)}function ce(Z,q,Q){if(typeof q=="string"&&q!==""||typeof q=="number")return q=wC(""+q,Z.mode,Q),q.return=Z,q;if(typeof q=="object"&&q!==null){switch(q.$$typeof){case _:return Q=wp(q.type,q.key,q.props,null,Z.mode,Q),Q.ref=_u(Z,null,q),Q.return=Z,Q;case P:return q=CC(q,Z.mode,Q),q.return=Z,q;case $:var fe=q._init;return ce(Z,fe(q._payload),Q)}if(dt(q)||X(q))return q=ha(q,Z.mode,Q,null),q.return=Z,q;Xf(Z,q)}return null}function se(Z,q,Q,fe){var _e=q!==null?q.key:null;if(typeof Q=="string"&&Q!==""||typeof Q=="number")return _e!==null?null:N(Z,q,""+Q,fe);if(typeof Q=="object"&&Q!==null){switch(Q.$$typeof){case _:return Q.key===_e?G(Z,q,Q,fe):null;case P:return Q.key===_e?oe(Z,q,Q,fe):null;case $:return _e=Q._init,se(Z,q,_e(Q._payload),fe)}if(dt(Q)||X(Q))return _e!==null?null:le(Z,q,Q,fe,null);Xf(Z,Q)}return null}function ye(Z,q,Q,fe,_e){if(typeof fe=="string"&&fe!==""||typeof fe=="number")return Z=Z.get(Q)||null,N(q,Z,""+fe,_e);if(typeof fe=="object"&&fe!==null){switch(fe.$$typeof){case _:return Z=Z.get(fe.key===null?Q:fe.key)||null,G(q,Z,fe,_e);case P:return Z=Z.get(fe.key===null?Q:fe.key)||null,oe(q,Z,fe,_e);case $:var Me=fe._init;return ye(Z,q,Q,Me(fe._payload),_e)}if(dt(fe)||X(fe))return Z=Z.get(Q)||null,le(q,Z,fe,_e,null);Xf(q,fe)}return null}function Fe(Z,q,Q,fe){for(var _e=null,Me=null,Ae=q,Oe=q=0,no=null;Ae!==null&&Oe<Q.length;Oe++){Ae.index>Oe?(no=Ae,Ae=null):no=Ae.sibling;var nt=se(Z,Ae,Q[Oe],fe);if(nt===null){Ae===null&&(Ae=no);break}l&&Ae&&nt.alternate===null&&u(Z,Ae),q=R(nt,q,Oe),Me===null?_e=nt:Me.sibling=nt,Me=nt,Ae=no}if(Oe===Q.length)return p(Z,Ae),Tt&&na(Z,Oe),_e;if(Ae===null){for(;Oe<Q.length;Oe++)Ae=ce(Z,Q[Oe],fe),Ae!==null&&(q=R(Ae,q,Oe),Me===null?_e=Ae:Me.sibling=Ae,Me=Ae);return Tt&&na(Z,Oe),_e}for(Ae=v(Z,Ae);Oe<Q.length;Oe++)no=ye(Ae,Z,Oe,Q[Oe],fe),no!==null&&(l&&no.alternate!==null&&Ae.delete(no.key===null?Oe:no.key),q=R(no,q,Oe),Me===null?_e=no:Me.sibling=no,Me=no);return l&&Ae.forEach(function(ls){return u(Z,ls)}),Tt&&na(Z,Oe),_e}function Re(Z,q,Q,fe){var _e=X(Q);if(typeof _e!="function")throw Error(o(150));if(Q=_e.call(Q),Q==null)throw Error(o(151));for(var Me=_e=null,Ae=q,Oe=q=0,no=null,nt=Q.next();Ae!==null&&!nt.done;Oe++,nt=Q.next()){Ae.index>Oe?(no=Ae,Ae=null):no=Ae.sibling;var ls=se(Z,Ae,nt.value,fe);if(ls===null){Ae===null&&(Ae=no);break}l&&Ae&&ls.alternate===null&&u(Z,Ae),q=R(ls,q,Oe),Me===null?_e=ls:Me.sibling=ls,Me=ls,Ae=no}if(nt.done)return p(Z,Ae),Tt&&na(Z,Oe),_e;if(Ae===null){for(;!nt.done;Oe++,nt=Q.next())nt=ce(Z,nt.value,fe),nt!==null&&(q=R(nt,q,Oe),Me===null?_e=nt:Me.sibling=nt,Me=nt);return Tt&&na(Z,Oe),_e}for(Ae=v(Z,Ae);!nt.done;Oe++,nt=Q.next())nt=ye(Ae,Z,Oe,nt.value,fe),nt!==null&&(l&&nt.alternate!==null&&Ae.delete(nt.key===null?Oe:nt.key),q=R(nt,q,Oe),Me===null?_e=nt:Me.sibling=nt,Me=nt);return l&&Ae.forEach(function(Pte){return u(Z,Pte)}),Tt&&na(Z,Oe),_e}function Wt(Z,q,Q,fe){if(typeof Q=="object"&&Q!==null&&Q.type===D&&Q.key===null&&(Q=Q.props.children),typeof Q=="object"&&Q!==null){switch(Q.$$typeof){case _:e:{for(var _e=Q.key,Me=q;Me!==null;){if(Me.key===_e){if(_e=Q.type,_e===D){if(Me.tag===7){p(Z,Me.sibling),q=x(Me,Q.props.children),q.return=Z,Z=q;break e}}else if(Me.elementType===_e||typeof _e=="object"&&_e!==null&&_e.$$typeof===$&&eD(_e)===Me.type){p(Z,Me.sibling),q=x(Me,Q.props),q.ref=_u(Z,Me,Q),q.return=Z,Z=q;break e}p(Z,Me);break}else u(Z,Me);Me=Me.sibling}Q.type===D?(q=ha(Q.props.children,Z.mode,fe,Q.key),q.return=Z,Z=q):(fe=wp(Q.type,Q.key,Q.props,null,Z.mode,fe),fe.ref=_u(Z,q,Q),fe.return=Z,Z=fe)}return T(Z);case P:e:{for(Me=Q.key;q!==null;){if(q.key===Me)if(q.tag===4&&q.stateNode.containerInfo===Q.containerInfo&&q.stateNode.implementation===Q.implementation){p(Z,q.sibling),q=x(q,Q.children||[]),q.return=Z,Z=q;break e}else{p(Z,q);break}else u(Z,q);q=q.sibling}q=CC(Q,Z.mode,fe),q.return=Z,Z=q}return T(Z);case $:return Me=Q._init,Wt(Z,q,Me(Q._payload),fe)}if(dt(Q))return Fe(Z,q,Q,fe);if(X(Q))return Re(Z,q,Q,fe);Xf(Z,Q)}return typeof Q=="string"&&Q!==""||typeof Q=="number"?(Q=""+Q,q!==null&&q.tag===6?(p(Z,q.sibling),q=x(q,Q),q.return=Z,Z=q):(p(Z,q),q=wC(Q,Z.mode,fe),q.return=Z,Z=q),T(Z)):p(Z,q)}return Wt}var Hl=tD(!0),oD=tD(!1),Zf=Yi(null),Yf=null,Vl=null,Pw=null;function Dw(){Pw=Vl=Yf=null}function Tw(l){var u=Zf.current;_t(Zf),l._currentValue=u}function Mw(l,u,p){for(;l!==null;){var v=l.alternate;if((l.childLanes&u)!==u?(l.childLanes|=u,v!==null&&(v.childLanes|=u)):v!==null&&(v.childLanes&u)!==u&&(v.childLanes|=u),l===p)break;l=l.return}}function Gl(l,u){Yf=l,Pw=Vl=null,l=l.dependencies,l!==null&&l.firstContext!==null&&((l.lanes&u)!==0&&(zo=!0),l.firstContext=null)}function Pr(l){var u=l._currentValue;if(Pw!==l)if(l={context:l,memoizedValue:u,next:null},Vl===null){if(Yf===null)throw Error(o(308));Vl=l,Yf.dependencies={lanes:0,firstContext:l}}else Vl=Vl.next=l;return u}var ia=null;function Aw(l){ia===null?ia=[l]:ia.push(l)}function rD(l,u,p,v){var x=u.interleaved;return x===null?(p.next=p,Aw(u)):(p.next=x.next,x.next=p),u.interleaved=p,hi(l,v)}function hi(l,u){l.lanes|=u;var p=l.alternate;for(p!==null&&(p.lanes|=u),p=l,l=l.return;l!==null;)l.childLanes|=u,p=l.alternate,p!==null&&(p.childLanes|=u),p=l,l=l.return;return p.tag===3?p.stateNode:null}var es=!1;function Iw(l){l.updateQueue={baseState:l.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function nD(l,u){l=l.updateQueue,u.updateQueue===l&&(u.updateQueue={baseState:l.baseState,firstBaseUpdate:l.firstBaseUpdate,lastBaseUpdate:l.lastBaseUpdate,shared:l.shared,effects:l.effects})}function fi(l,u){return{eventTime:l,lane:u,tag:0,payload:null,callback:null,next:null}}function ts(l,u,p){var v=l.updateQueue;if(v===null)return null;if(v=v.shared,(Je&2)!==0){var x=v.pending;return x===null?u.next=u:(u.next=x.next,x.next=u),v.pending=u,hi(l,p)}return x=v.interleaved,x===null?(u.next=u,Aw(v)):(u.next=x.next,x.next=u),v.interleaved=u,hi(l,p)}function Qf(l,u,p){if(u=u.updateQueue,u!==null&&(u=u.shared,(p&4194240)!==0)){var v=u.lanes;v&=l.pendingLanes,p|=v,u.lanes=p,Kb(l,p)}}function iD(l,u){var p=l.updateQueue,v=l.alternate;if(v!==null&&(v=v.updateQueue,p===v)){var x=null,R=null;if(p=p.firstBaseUpdate,p!==null){do{var T={eventTime:p.eventTime,lane:p.lane,tag:p.tag,payload:p.payload,callback:p.callback,next:null};R===null?x=R=T:R=R.next=T,p=p.next}while(p!==null);R===null?x=R=u:R=R.next=u}else x=R=u;p={baseState:v.baseState,firstBaseUpdate:x,lastBaseUpdate:R,shared:v.shared,effects:v.effects},l.updateQueue=p;return}l=p.lastBaseUpdate,l===null?p.firstBaseUpdate=u:l.next=u,p.lastBaseUpdate=u}function Jf(l,u,p,v){var x=l.updateQueue;es=!1;var R=x.firstBaseUpdate,T=x.lastBaseUpdate,N=x.shared.pending;if(N!==null){x.shared.pending=null;var G=N,oe=G.next;G.next=null,T===null?R=oe:T.next=oe,T=G;var le=l.alternate;le!==null&&(le=le.updateQueue,N=le.lastBaseUpdate,N!==T&&(N===null?le.firstBaseUpdate=oe:N.next=oe,le.lastBaseUpdate=G))}if(R!==null){var ce=x.baseState;T=0,le=oe=G=null,N=R;do{var se=N.lane,ye=N.eventTime;if((v&se)===se){le!==null&&(le=le.next={eventTime:ye,lane:0,tag:N.tag,payload:N.payload,callback:N.callback,next:null});e:{var Fe=l,Re=N;switch(se=u,ye=p,Re.tag){case 1:if(Fe=Re.payload,typeof Fe=="function"){ce=Fe.call(ye,ce,se);break e}ce=Fe;break e;case 3:Fe.flags=Fe.flags&-65537|128;case 0:if(Fe=Re.payload,se=typeof Fe=="function"?Fe.call(ye,ce,se):Fe,se==null)break e;ce=j({},ce,se);break e;case 2:es=!0}}N.callback!==null&&N.lane!==0&&(l.flags|=64,se=x.effects,se===null?x.effects=[N]:se.push(N))}else ye={eventTime:ye,lane:se,tag:N.tag,payload:N.payload,callback:N.callback,next:null},le===null?(oe=le=ye,G=ce):le=le.next=ye,T|=se;if(N=N.next,N===null){if(N=x.shared.pending,N===null)break;se=N,N=se.next,se.next=null,x.lastBaseUpdate=se,x.shared.pending=null}}while(!0);if(le===null&&(G=ce),x.baseState=G,x.firstBaseUpdate=oe,x.lastBaseUpdate=le,u=x.shared.interleaved,u!==null){x=u;do T|=x.lane,x=x.next;while(x!==u)}else R===null&&(x.shared.lanes=0);la|=T,l.lanes=T,l.memoizedState=ce}}function sD(l,u,p){if(l=u.effects,u.effects=null,l!==null)for(u=0;u<l.length;u++){var v=l[u],x=v.callback;if(x!==null){if(v.callback=null,v=p,typeof x!="function")throw Error(o(191,x));x.call(v)}}}var Pu={},An=Yi(Pu),Du=Yi(Pu),Tu=Yi(Pu);function sa(l){if(l===Pu)throw Error(o(174));return l}function Bw(l,u){switch(xt(Tu,u),xt(Du,l),xt(An,Pu),l=u.nodeType,l){case 9:case 11:u=(u=u.documentElement)?u.namespaceURI:ri(null,"");break;default:l=l===8?u.parentNode:u,u=l.namespaceURI||null,l=l.tagName,u=ri(u,l)}_t(An),xt(An,u)}function jl(){_t(An),_t(Du),_t(Tu)}function aD(l){sa(Tu.current);var u=sa(An.current),p=ri(u,l.type);u!==p&&(xt(Du,l),xt(An,p))}function Ow(l){Du.current===l&&(_t(An),_t(Du))}var It=Yi(0);function ep(l){for(var u=l;u!==null;){if(u.tag===13){var p=u.memoizedState;if(p!==null&&(p=p.dehydrated,p===null||p.data==="$?"||p.data==="$!"))return u}else if(u.tag===19&&u.memoizedProps.revealOrder!==void 0){if((u.flags&128)!==0)return u}else if(u.child!==null){u.child.return=u,u=u.child;continue}if(u===l)break;for(;u.sibling===null;){if(u.return===null||u.return===l)return null;u=u.return}u.sibling.return=u.return,u=u.sibling}return null}var Nw=[];function Lw(){for(var l=0;l<Nw.length;l++)Nw[l]._workInProgressVersionPrimary=null;Nw.length=0}var tp=E.ReactCurrentDispatcher,zw=E.ReactCurrentBatchConfig,aa=0,Bt=null,Qt=null,oo=null,op=!1,Mu=!1,Au=0,Yee=0;function yo(){throw Error(o(321))}function Hw(l,u){if(u===null)return!1;for(var p=0;p<u.length&&p<l.length;p++)if(!Yr(l[p],u[p]))return!1;return!0}function Vw(l,u,p,v,x,R){if(aa=R,Bt=u,u.memoizedState=null,u.updateQueue=null,u.lanes=0,tp.current=l===null||l.memoizedState===null?tte:ote,l=p(v,x),Mu){R=0;do{if(Mu=!1,Au=0,25<=R)throw Error(o(301));R+=1,oo=Qt=null,u.updateQueue=null,tp.current=rte,l=p(v,x)}while(Mu)}if(tp.current=ip,u=Qt!==null&&Qt.next!==null,aa=0,oo=Qt=Bt=null,op=!1,u)throw Error(o(300));return l}function Gw(){var l=Au!==0;return Au=0,l}function In(){var l={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return oo===null?Bt.memoizedState=oo=l:oo=oo.next=l,oo}function Dr(){if(Qt===null){var l=Bt.alternate;l=l!==null?l.memoizedState:null}else l=Qt.next;var u=oo===null?Bt.memoizedState:oo.next;if(u!==null)oo=u,Qt=l;else{if(l===null)throw Error(o(310));Qt=l,l={memoizedState:Qt.memoizedState,baseState:Qt.baseState,baseQueue:Qt.baseQueue,queue:Qt.queue,next:null},oo===null?Bt.memoizedState=oo=l:oo=oo.next=l}return oo}function Iu(l,u){return typeof u=="function"?u(l):u}function jw(l){var u=Dr(),p=u.queue;if(p===null)throw Error(o(311));p.lastRenderedReducer=l;var v=Qt,x=v.baseQueue,R=p.pending;if(R!==null){if(x!==null){var T=x.next;x.next=R.next,R.next=T}v.baseQueue=x=R,p.pending=null}if(x!==null){R=x.next,v=v.baseState;var N=T=null,G=null,oe=R;do{var le=oe.lane;if((aa&le)===le)G!==null&&(G=G.next={lane:0,action:oe.action,hasEagerState:oe.hasEagerState,eagerState:oe.eagerState,next:null}),v=oe.hasEagerState?oe.eagerState:l(v,oe.action);else{var ce={lane:le,action:oe.action,hasEagerState:oe.hasEagerState,eagerState:oe.eagerState,next:null};G===null?(N=G=ce,T=v):G=G.next=ce,Bt.lanes|=le,la|=le}oe=oe.next}while(oe!==null&&oe!==R);G===null?T=v:G.next=N,Yr(v,u.memoizedState)||(zo=!0),u.memoizedState=v,u.baseState=T,u.baseQueue=G,p.lastRenderedState=v}if(l=p.interleaved,l!==null){x=l;do R=x.lane,Bt.lanes|=R,la|=R,x=x.next;while(x!==l)}else x===null&&(p.lanes=0);return[u.memoizedState,p.dispatch]}function Ww(l){var u=Dr(),p=u.queue;if(p===null)throw Error(o(311));p.lastRenderedReducer=l;var v=p.dispatch,x=p.pending,R=u.memoizedState;if(x!==null){p.pending=null;var T=x=x.next;do R=l(R,T.action),T=T.next;while(T!==x);Yr(R,u.memoizedState)||(zo=!0),u.memoizedState=R,u.baseQueue===null&&(u.baseState=R),p.lastRenderedState=R}return[R,v]}function lD(){}function cD(l,u){var p=Bt,v=Dr(),x=u(),R=!Yr(v.memoizedState,x);if(R&&(v.memoizedState=x,zo=!0),v=v.queue,qw(hD.bind(null,p,v,l),[l]),v.getSnapshot!==u||R||oo!==null&&oo.memoizedState.tag&1){if(p.flags|=2048,Bu(9,dD.bind(null,p,v,x,u),void 0,null),ro===null)throw Error(o(349));(aa&30)!==0||uD(p,u,x)}return x}function uD(l,u,p){l.flags|=16384,l={getSnapshot:u,value:p},u=Bt.updateQueue,u===null?(u={lastEffect:null,stores:null},Bt.updateQueue=u,u.stores=[l]):(p=u.stores,p===null?u.stores=[l]:p.push(l))}function dD(l,u,p,v){u.value=p,u.getSnapshot=v,fD(u)&&pD(l)}function hD(l,u,p){return p(function(){fD(u)&&pD(l)})}function fD(l){var u=l.getSnapshot;l=l.value;try{var p=u();return!Yr(l,p)}catch{return!0}}function pD(l){var u=hi(l,1);u!==null&&on(u,l,1,-1)}function gD(l){var u=In();return typeof l=="function"&&(l=l()),u.memoizedState=u.baseState=l,l={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Iu,lastRenderedState:l},u.queue=l,l=l.dispatch=ete.bind(null,Bt,l),[u.memoizedState,l]}function Bu(l,u,p,v){return l={tag:l,create:u,destroy:p,deps:v,next:null},u=Bt.updateQueue,u===null?(u={lastEffect:null,stores:null},Bt.updateQueue=u,u.lastEffect=l.next=l):(p=u.lastEffect,p===null?u.lastEffect=l.next=l:(v=p.next,p.next=l,l.next=v,u.lastEffect=l)),l}function mD(){return Dr().memoizedState}function rp(l,u,p,v){var x=In();Bt.flags|=l,x.memoizedState=Bu(1|u,p,void 0,v===void 0?null:v)}function np(l,u,p,v){var x=Dr();v=v===void 0?null:v;var R=void 0;if(Qt!==null){var T=Qt.memoizedState;if(R=T.destroy,v!==null&&Hw(v,T.deps)){x.memoizedState=Bu(u,p,R,v);return}}Bt.flags|=l,x.memoizedState=Bu(1|u,p,R,v)}function vD(l,u){return rp(8390656,8,l,u)}function qw(l,u){return np(2048,8,l,u)}function bD(l,u){return np(4,2,l,u)}function wD(l,u){return np(4,4,l,u)}function CD(l,u){if(typeof u=="function")return l=l(),u(l),function(){u(null)};if(u!=null)return l=l(),u.current=l,function(){u.current=null}}function yD(l,u,p){return p=p!=null?p.concat([l]):null,np(4,4,CD.bind(null,u,l),p)}function Uw(){}function SD(l,u){var p=Dr();u=u===void 0?null:u;var v=p.memoizedState;return v!==null&&u!==null&&Hw(u,v[1])?v[0]:(p.memoizedState=[l,u],l)}function xD(l,u){var p=Dr();u=u===void 0?null:u;var v=p.memoizedState;return v!==null&&u!==null&&Hw(u,v[1])?v[0]:(l=l(),p.memoizedState=[l,u],l)}function kD(l,u,p){return(aa&21)===0?(l.baseState&&(l.baseState=!1,zo=!0),l.memoizedState=p):(Yr(p,u)||(p=eP(),Bt.lanes|=p,la|=p,l.baseState=!0),u)}function Qee(l,u){var p=ht;ht=p!==0&&4>p?p:4,l(!0);var v=zw.transition;zw.transition={};try{l(!1),u()}finally{ht=p,zw.transition=v}}function FD(){return Dr().memoizedState}function Jee(l,u,p){var v=is(l);if(p={lane:v,action:p,hasEagerState:!1,eagerState:null,next:null},RD(l))ED(u,p);else if(p=rD(l,u,p,v),p!==null){var x=_o();on(p,l,v,x),_D(p,u,v)}}function ete(l,u,p){var v=is(l),x={lane:v,action:p,hasEagerState:!1,eagerState:null,next:null};if(RD(l))ED(u,x);else{var R=l.alternate;if(l.lanes===0&&(R===null||R.lanes===0)&&(R=u.lastRenderedReducer,R!==null))try{var T=u.lastRenderedState,N=R(T,p);if(x.hasEagerState=!0,x.eagerState=N,Yr(N,T)){var G=u.interleaved;G===null?(x.next=x,Aw(u)):(x.next=G.next,G.next=x),u.interleaved=x;return}}catch{}p=rD(l,u,x,v),p!==null&&(x=_o(),on(p,l,v,x),_D(p,u,v))}}function RD(l){var u=l.alternate;return l===Bt||u!==null&&u===Bt}function ED(l,u){Mu=op=!0;var p=l.pending;p===null?u.next=u:(u.next=p.next,p.next=u),l.pending=u}function _D(l,u,p){if((p&4194240)!==0){var v=u.lanes;v&=l.pendingLanes,p|=v,u.lanes=p,Kb(l,p)}}var ip={readContext:Pr,useCallback:yo,useContext:yo,useEffect:yo,useImperativeHandle:yo,useInsertionEffect:yo,useLayoutEffect:yo,useMemo:yo,useReducer:yo,useRef:yo,useState:yo,useDebugValue:yo,useDeferredValue:yo,useTransition:yo,useMutableSource:yo,useSyncExternalStore:yo,useId:yo,unstable_isNewReconciler:!1},tte={readContext:Pr,useCallback:function(l,u){return In().memoizedState=[l,u===void 0?null:u],l},useContext:Pr,useEffect:vD,useImperativeHandle:function(l,u,p){return p=p!=null?p.concat([l]):null,rp(4194308,4,CD.bind(null,u,l),p)},useLayoutEffect:function(l,u){return rp(4194308,4,l,u)},useInsertionEffect:function(l,u){return rp(4,2,l,u)},useMemo:function(l,u){var p=In();return u=u===void 0?null:u,l=l(),p.memoizedState=[l,u],l},useReducer:function(l,u,p){var v=In();return u=p!==void 0?p(u):u,v.memoizedState=v.baseState=u,l={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:l,lastRenderedState:u},v.queue=l,l=l.dispatch=Jee.bind(null,Bt,l),[v.memoizedState,l]},useRef:function(l){var u=In();return l={current:l},u.memoizedState=l},useState:gD,useDebugValue:Uw,useDeferredValue:function(l){return In().memoizedState=l},useTransition:function(){var l=gD(!1),u=l[0];return l=Qee.bind(null,l[1]),In().memoizedState=l,[u,l]},useMutableSource:function(){},useSyncExternalStore:function(l,u,p){var v=Bt,x=In();if(Tt){if(p===void 0)throw Error(o(407));p=p()}else{if(p=u(),ro===null)throw Error(o(349));(aa&30)!==0||uD(v,u,p)}x.memoizedState=p;var R={value:p,getSnapshot:u};return x.queue=R,vD(hD.bind(null,v,R,l),[l]),v.flags|=2048,Bu(9,dD.bind(null,v,R,p,u),void 0,null),p},useId:function(){var l=In(),u=ro.identifierPrefix;if(Tt){var p=di,v=ui;p=(v&~(1<<32-Zr(v)-1)).toString(32)+p,u=":"+u+"R"+p,p=Au++,0<p&&(u+="H"+p.toString(32)),u+=":"}else p=Yee++,u=":"+u+"r"+p.toString(32)+":";return l.memoizedState=u},unstable_isNewReconciler:!1},ote={readContext:Pr,useCallback:SD,useContext:Pr,useEffect:qw,useImperativeHandle:yD,useInsertionEffect:bD,useLayoutEffect:wD,useMemo:xD,useReducer:jw,useRef:mD,useState:function(){return jw(Iu)},useDebugValue:Uw,useDeferredValue:function(l){var u=Dr();return kD(u,Qt.memoizedState,l)},useTransition:function(){var l=jw(Iu)[0],u=Dr().memoizedState;return[l,u]},useMutableSource:lD,useSyncExternalStore:cD,useId:FD,unstable_isNewReconciler:!1},rte={readContext:Pr,useCallback:SD,useContext:Pr,useEffect:qw,useImperativeHandle:yD,useInsertionEffect:bD,useLayoutEffect:wD,useMemo:xD,useReducer:Ww,useRef:mD,useState:function(){return Ww(Iu)},useDebugValue:Uw,useDeferredValue:function(l){var u=Dr();return Qt===null?u.memoizedState=l:kD(u,Qt.memoizedState,l)},useTransition:function(){var l=Ww(Iu)[0],u=Dr().memoizedState;return[l,u]},useMutableSource:lD,useSyncExternalStore:cD,useId:FD,unstable_isNewReconciler:!1};function Jr(l,u){if(l&&l.defaultProps){u=j({},u),l=l.defaultProps;for(var p in l)u[p]===void 0&&(u[p]=l[p]);return u}return u}function $w(l,u,p,v){u=l.memoizedState,p=p(v,u),p=p==null?u:j({},u,p),l.memoizedState=p,l.lanes===0&&(l.updateQueue.baseState=p)}var sp={isMounted:function(l){return(l=l._reactInternals)?ea(l)===l:!1},enqueueSetState:function(l,u,p){l=l._reactInternals;var v=_o(),x=is(l),R=fi(v,x);R.payload=u,p!=null&&(R.callback=p),u=ts(l,R,x),u!==null&&(on(u,l,x,v),Qf(u,l,x))},enqueueReplaceState:function(l,u,p){l=l._reactInternals;var v=_o(),x=is(l),R=fi(v,x);R.tag=1,R.payload=u,p!=null&&(R.callback=p),u=ts(l,R,x),u!==null&&(on(u,l,x,v),Qf(u,l,x))},enqueueForceUpdate:function(l,u){l=l._reactInternals;var p=_o(),v=is(l),x=fi(p,v);x.tag=2,u!=null&&(x.callback=u),u=ts(l,x,v),u!==null&&(on(u,l,v,p),Qf(u,l,v))}};function PD(l,u,p,v,x,R,T){return l=l.stateNode,typeof l.shouldComponentUpdate=="function"?l.shouldComponentUpdate(v,R,T):u.prototype&&u.prototype.isPureReactComponent?!yu(p,v)||!yu(x,R):!0}function DD(l,u,p){var v=!1,x=Qi,R=u.contextType;return typeof R=="object"&&R!==null?R=Pr(R):(x=Lo(u)?oa:Co.current,v=u.contextTypes,R=(v=v!=null)?Ol(l,x):Qi),u=new u(p,R),l.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=sp,l.stateNode=u,u._reactInternals=l,v&&(l=l.stateNode,l.__reactInternalMemoizedUnmaskedChildContext=x,l.__reactInternalMemoizedMaskedChildContext=R),u}function TD(l,u,p,v){l=u.state,typeof u.componentWillReceiveProps=="function"&&u.componentWillReceiveProps(p,v),typeof u.UNSAFE_componentWillReceiveProps=="function"&&u.UNSAFE_componentWillReceiveProps(p,v),u.state!==l&&sp.enqueueReplaceState(u,u.state,null)}function Kw(l,u,p,v){var x=l.stateNode;x.props=p,x.state=l.memoizedState,x.refs={},Iw(l);var R=u.contextType;typeof R=="object"&&R!==null?x.context=Pr(R):(R=Lo(u)?oa:Co.current,x.context=Ol(l,R)),x.state=l.memoizedState,R=u.getDerivedStateFromProps,typeof R=="function"&&($w(l,u,R,p),x.state=l.memoizedState),typeof u.getDerivedStateFromProps=="function"||typeof x.getSnapshotBeforeUpdate=="function"||typeof x.UNSAFE_componentWillMount!="function"&&typeof x.componentWillMount!="function"||(u=x.state,typeof x.componentWillMount=="function"&&x.componentWillMount(),typeof x.UNSAFE_componentWillMount=="function"&&x.UNSAFE_componentWillMount(),u!==x.state&&sp.enqueueReplaceState(x,x.state,null),Jf(l,p,x,v),x.state=l.memoizedState),typeof x.componentDidMount=="function"&&(l.flags|=4194308)}function Wl(l,u){try{var p="",v=u;do p+=be(v),v=v.return;while(v);var x=p}catch(R){x=`
|
|
8
|
+
Error generating stack: `+R.message+`
|
|
9
|
+
`+R.stack}return{value:l,source:u,stack:x,digest:null}}function Xw(l,u,p){return{value:l,source:null,stack:p??null,digest:u??null}}function Zw(l,u){try{console.error(u.value)}catch(p){setTimeout(function(){throw p})}}var nte=typeof WeakMap=="function"?WeakMap:Map;function MD(l,u,p){p=fi(-1,p),p.tag=3,p.payload={element:null};var v=u.value;return p.callback=function(){fp||(fp=!0,dC=v),Zw(l,u)},p}function AD(l,u,p){p=fi(-1,p),p.tag=3;var v=l.type.getDerivedStateFromError;if(typeof v=="function"){var x=u.value;p.payload=function(){return v(x)},p.callback=function(){Zw(l,u)}}var R=l.stateNode;return R!==null&&typeof R.componentDidCatch=="function"&&(p.callback=function(){Zw(l,u),typeof v!="function"&&(rs===null?rs=new Set([this]):rs.add(this));var T=u.stack;this.componentDidCatch(u.value,{componentStack:T!==null?T:""})}),p}function ID(l,u,p){var v=l.pingCache;if(v===null){v=l.pingCache=new nte;var x=new Set;v.set(u,x)}else x=v.get(u),x===void 0&&(x=new Set,v.set(u,x));x.has(p)||(x.add(p),l=bte.bind(null,l,u,p),u.then(l,l))}function BD(l){do{var u;if((u=l.tag===13)&&(u=l.memoizedState,u=u!==null?u.dehydrated!==null:!0),u)return l;l=l.return}while(l!==null);return null}function OD(l,u,p,v,x){return(l.mode&1)===0?(l===u?l.flags|=65536:(l.flags|=128,p.flags|=131072,p.flags&=-52805,p.tag===1&&(p.alternate===null?p.tag=17:(u=fi(-1,1),u.tag=2,ts(p,u,1))),p.lanes|=1),l):(l.flags|=65536,l.lanes=x,l)}var ite=E.ReactCurrentOwner,zo=!1;function Eo(l,u,p,v){u.child=l===null?oD(u,null,p,v):Hl(u,l.child,p,v)}function ND(l,u,p,v,x){p=p.render;var R=u.ref;return Gl(u,x),v=Vw(l,u,p,v,R,x),p=Gw(),l!==null&&!zo?(u.updateQueue=l.updateQueue,u.flags&=-2053,l.lanes&=~x,pi(l,u,x)):(Tt&&p&&kw(u),u.flags|=1,Eo(l,u,v,x),u.child)}function LD(l,u,p,v,x){if(l===null){var R=p.type;return typeof R=="function"&&!bC(R)&&R.defaultProps===void 0&&p.compare===null&&p.defaultProps===void 0?(u.tag=15,u.type=R,zD(l,u,R,v,x)):(l=wp(p.type,null,v,u,u.mode,x),l.ref=u.ref,l.return=u,u.child=l)}if(R=l.child,(l.lanes&x)===0){var T=R.memoizedProps;if(p=p.compare,p=p!==null?p:yu,p(T,v)&&l.ref===u.ref)return pi(l,u,x)}return u.flags|=1,l=as(R,v),l.ref=u.ref,l.return=u,u.child=l}function zD(l,u,p,v,x){if(l!==null){var R=l.memoizedProps;if(yu(R,v)&&l.ref===u.ref)if(zo=!1,u.pendingProps=v=R,(l.lanes&x)!==0)(l.flags&131072)!==0&&(zo=!0);else return u.lanes=l.lanes,pi(l,u,x)}return Yw(l,u,p,v,x)}function HD(l,u,p){var v=u.pendingProps,x=v.children,R=l!==null?l.memoizedState:null;if(v.mode==="hidden")if((u.mode&1)===0)u.memoizedState={baseLanes:0,cachePool:null,transitions:null},xt(Ul,sr),sr|=p;else{if((p&1073741824)===0)return l=R!==null?R.baseLanes|p:p,u.lanes=u.childLanes=1073741824,u.memoizedState={baseLanes:l,cachePool:null,transitions:null},u.updateQueue=null,xt(Ul,sr),sr|=l,null;u.memoizedState={baseLanes:0,cachePool:null,transitions:null},v=R!==null?R.baseLanes:p,xt(Ul,sr),sr|=v}else R!==null?(v=R.baseLanes|p,u.memoizedState=null):v=p,xt(Ul,sr),sr|=v;return Eo(l,u,x,p),u.child}function VD(l,u){var p=u.ref;(l===null&&p!==null||l!==null&&l.ref!==p)&&(u.flags|=512,u.flags|=2097152)}function Yw(l,u,p,v,x){var R=Lo(p)?oa:Co.current;return R=Ol(u,R),Gl(u,x),p=Vw(l,u,p,v,R,x),v=Gw(),l!==null&&!zo?(u.updateQueue=l.updateQueue,u.flags&=-2053,l.lanes&=~x,pi(l,u,x)):(Tt&&v&&kw(u),u.flags|=1,Eo(l,u,p,x),u.child)}function GD(l,u,p,v,x){if(Lo(p)){var R=!0;Wf(u)}else R=!1;if(Gl(u,x),u.stateNode===null)lp(l,u),DD(u,p,v),Kw(u,p,v,x),v=!0;else if(l===null){var T=u.stateNode,N=u.memoizedProps;T.props=N;var G=T.context,oe=p.contextType;typeof oe=="object"&&oe!==null?oe=Pr(oe):(oe=Lo(p)?oa:Co.current,oe=Ol(u,oe));var le=p.getDerivedStateFromProps,ce=typeof le=="function"||typeof T.getSnapshotBeforeUpdate=="function";ce||typeof T.UNSAFE_componentWillReceiveProps!="function"&&typeof T.componentWillReceiveProps!="function"||(N!==v||G!==oe)&&TD(u,T,v,oe),es=!1;var se=u.memoizedState;T.state=se,Jf(u,v,T,x),G=u.memoizedState,N!==v||se!==G||No.current||es?(typeof le=="function"&&($w(u,p,le,v),G=u.memoizedState),(N=es||PD(u,p,N,v,se,G,oe))?(ce||typeof T.UNSAFE_componentWillMount!="function"&&typeof T.componentWillMount!="function"||(typeof T.componentWillMount=="function"&&T.componentWillMount(),typeof T.UNSAFE_componentWillMount=="function"&&T.UNSAFE_componentWillMount()),typeof T.componentDidMount=="function"&&(u.flags|=4194308)):(typeof T.componentDidMount=="function"&&(u.flags|=4194308),u.memoizedProps=v,u.memoizedState=G),T.props=v,T.state=G,T.context=oe,v=N):(typeof T.componentDidMount=="function"&&(u.flags|=4194308),v=!1)}else{T=u.stateNode,nD(l,u),N=u.memoizedProps,oe=u.type===u.elementType?N:Jr(u.type,N),T.props=oe,ce=u.pendingProps,se=T.context,G=p.contextType,typeof G=="object"&&G!==null?G=Pr(G):(G=Lo(p)?oa:Co.current,G=Ol(u,G));var ye=p.getDerivedStateFromProps;(le=typeof ye=="function"||typeof T.getSnapshotBeforeUpdate=="function")||typeof T.UNSAFE_componentWillReceiveProps!="function"&&typeof T.componentWillReceiveProps!="function"||(N!==ce||se!==G)&&TD(u,T,v,G),es=!1,se=u.memoizedState,T.state=se,Jf(u,v,T,x);var Fe=u.memoizedState;N!==ce||se!==Fe||No.current||es?(typeof ye=="function"&&($w(u,p,ye,v),Fe=u.memoizedState),(oe=es||PD(u,p,oe,v,se,Fe,G)||!1)?(le||typeof T.UNSAFE_componentWillUpdate!="function"&&typeof T.componentWillUpdate!="function"||(typeof T.componentWillUpdate=="function"&&T.componentWillUpdate(v,Fe,G),typeof T.UNSAFE_componentWillUpdate=="function"&&T.UNSAFE_componentWillUpdate(v,Fe,G)),typeof T.componentDidUpdate=="function"&&(u.flags|=4),typeof T.getSnapshotBeforeUpdate=="function"&&(u.flags|=1024)):(typeof T.componentDidUpdate!="function"||N===l.memoizedProps&&se===l.memoizedState||(u.flags|=4),typeof T.getSnapshotBeforeUpdate!="function"||N===l.memoizedProps&&se===l.memoizedState||(u.flags|=1024),u.memoizedProps=v,u.memoizedState=Fe),T.props=v,T.state=Fe,T.context=G,v=oe):(typeof T.componentDidUpdate!="function"||N===l.memoizedProps&&se===l.memoizedState||(u.flags|=4),typeof T.getSnapshotBeforeUpdate!="function"||N===l.memoizedProps&&se===l.memoizedState||(u.flags|=1024),v=!1)}return Qw(l,u,p,v,R,x)}function Qw(l,u,p,v,x,R){VD(l,u);var T=(u.flags&128)!==0;if(!v&&!T)return x&&$P(u,p,!1),pi(l,u,R);v=u.stateNode,ite.current=u;var N=T&&typeof p.getDerivedStateFromError!="function"?null:v.render();return u.flags|=1,l!==null&&T?(u.child=Hl(u,l.child,null,R),u.child=Hl(u,null,N,R)):Eo(l,u,N,R),u.memoizedState=v.state,x&&$P(u,p,!0),u.child}function jD(l){var u=l.stateNode;u.pendingContext?qP(l,u.pendingContext,u.pendingContext!==u.context):u.context&&qP(l,u.context,!1),Bw(l,u.containerInfo)}function WD(l,u,p,v,x){return zl(),_w(x),u.flags|=256,Eo(l,u,p,v),u.child}var Jw={dehydrated:null,treeContext:null,retryLane:0};function eC(l){return{baseLanes:l,cachePool:null,transitions:null}}function qD(l,u,p){var v=u.pendingProps,x=It.current,R=!1,T=(u.flags&128)!==0,N;if((N=T)||(N=l!==null&&l.memoizedState===null?!1:(x&2)!==0),N?(R=!0,u.flags&=-129):(l===null||l.memoizedState!==null)&&(x|=1),xt(It,x&1),l===null)return Ew(u),l=u.memoizedState,l!==null&&(l=l.dehydrated,l!==null)?((u.mode&1)===0?u.lanes=1:l.data==="$!"?u.lanes=8:u.lanes=1073741824,null):(T=v.children,l=v.fallback,R?(v=u.mode,R=u.child,T={mode:"hidden",children:T},(v&1)===0&&R!==null?(R.childLanes=0,R.pendingProps=T):R=Cp(T,v,0,null),l=ha(l,v,p,null),R.return=u,l.return=u,R.sibling=l,u.child=R,u.child.memoizedState=eC(p),u.memoizedState=Jw,l):tC(u,T));if(x=l.memoizedState,x!==null&&(N=x.dehydrated,N!==null))return ste(l,u,T,v,N,x,p);if(R){R=v.fallback,T=u.mode,x=l.child,N=x.sibling;var G={mode:"hidden",children:v.children};return(T&1)===0&&u.child!==x?(v=u.child,v.childLanes=0,v.pendingProps=G,u.deletions=null):(v=as(x,G),v.subtreeFlags=x.subtreeFlags&14680064),N!==null?R=as(N,R):(R=ha(R,T,p,null),R.flags|=2),R.return=u,v.return=u,v.sibling=R,u.child=v,v=R,R=u.child,T=l.child.memoizedState,T=T===null?eC(p):{baseLanes:T.baseLanes|p,cachePool:null,transitions:T.transitions},R.memoizedState=T,R.childLanes=l.childLanes&~p,u.memoizedState=Jw,v}return R=l.child,l=R.sibling,v=as(R,{mode:"visible",children:v.children}),(u.mode&1)===0&&(v.lanes=p),v.return=u,v.sibling=null,l!==null&&(p=u.deletions,p===null?(u.deletions=[l],u.flags|=16):p.push(l)),u.child=v,u.memoizedState=null,v}function tC(l,u){return u=Cp({mode:"visible",children:u},l.mode,0,null),u.return=l,l.child=u}function ap(l,u,p,v){return v!==null&&_w(v),Hl(u,l.child,null,p),l=tC(u,u.pendingProps.children),l.flags|=2,u.memoizedState=null,l}function ste(l,u,p,v,x,R,T){if(p)return u.flags&256?(u.flags&=-257,v=Xw(Error(o(422))),ap(l,u,T,v)):u.memoizedState!==null?(u.child=l.child,u.flags|=128,null):(R=v.fallback,x=u.mode,v=Cp({mode:"visible",children:v.children},x,0,null),R=ha(R,x,T,null),R.flags|=2,v.return=u,R.return=u,v.sibling=R,u.child=v,(u.mode&1)!==0&&Hl(u,l.child,null,T),u.child.memoizedState=eC(T),u.memoizedState=Jw,R);if((u.mode&1)===0)return ap(l,u,T,null);if(x.data==="$!"){if(v=x.nextSibling&&x.nextSibling.dataset,v)var N=v.dgst;return v=N,R=Error(o(419)),v=Xw(R,v,void 0),ap(l,u,T,v)}if(N=(T&l.childLanes)!==0,zo||N){if(v=ro,v!==null){switch(T&-T){case 4:x=2;break;case 16:x=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:x=32;break;case 536870912:x=268435456;break;default:x=0}x=(x&(v.suspendedLanes|T))!==0?0:x,x!==0&&x!==R.retryLane&&(R.retryLane=x,hi(l,x),on(v,l,x,-1))}return vC(),v=Xw(Error(o(421))),ap(l,u,T,v)}return x.data==="$?"?(u.flags|=128,u.child=l.child,u=wte.bind(null,l),x._reactRetry=u,null):(l=R.treeContext,ir=Zi(x.nextSibling),nr=u,Tt=!0,Qr=null,l!==null&&(Er[_r++]=ui,Er[_r++]=di,Er[_r++]=ra,ui=l.id,di=l.overflow,ra=u),u=tC(u,v.children),u.flags|=4096,u)}function UD(l,u,p){l.lanes|=u;var v=l.alternate;v!==null&&(v.lanes|=u),Mw(l.return,u,p)}function oC(l,u,p,v,x){var R=l.memoizedState;R===null?l.memoizedState={isBackwards:u,rendering:null,renderingStartTime:0,last:v,tail:p,tailMode:x}:(R.isBackwards=u,R.rendering=null,R.renderingStartTime=0,R.last=v,R.tail=p,R.tailMode=x)}function $D(l,u,p){var v=u.pendingProps,x=v.revealOrder,R=v.tail;if(Eo(l,u,v.children,p),v=It.current,(v&2)!==0)v=v&1|2,u.flags|=128;else{if(l!==null&&(l.flags&128)!==0)e:for(l=u.child;l!==null;){if(l.tag===13)l.memoizedState!==null&&UD(l,p,u);else if(l.tag===19)UD(l,p,u);else if(l.child!==null){l.child.return=l,l=l.child;continue}if(l===u)break e;for(;l.sibling===null;){if(l.return===null||l.return===u)break e;l=l.return}l.sibling.return=l.return,l=l.sibling}v&=1}if(xt(It,v),(u.mode&1)===0)u.memoizedState=null;else switch(x){case"forwards":for(p=u.child,x=null;p!==null;)l=p.alternate,l!==null&&ep(l)===null&&(x=p),p=p.sibling;p=x,p===null?(x=u.child,u.child=null):(x=p.sibling,p.sibling=null),oC(u,!1,x,p,R);break;case"backwards":for(p=null,x=u.child,u.child=null;x!==null;){if(l=x.alternate,l!==null&&ep(l)===null){u.child=x;break}l=x.sibling,x.sibling=p,p=x,x=l}oC(u,!0,p,null,R);break;case"together":oC(u,!1,null,null,void 0);break;default:u.memoizedState=null}return u.child}function lp(l,u){(u.mode&1)===0&&l!==null&&(l.alternate=null,u.alternate=null,u.flags|=2)}function pi(l,u,p){if(l!==null&&(u.dependencies=l.dependencies),la|=u.lanes,(p&u.childLanes)===0)return null;if(l!==null&&u.child!==l.child)throw Error(o(153));if(u.child!==null){for(l=u.child,p=as(l,l.pendingProps),u.child=p,p.return=u;l.sibling!==null;)l=l.sibling,p=p.sibling=as(l,l.pendingProps),p.return=u;p.sibling=null}return u.child}function ate(l,u,p){switch(u.tag){case 3:jD(u),zl();break;case 5:aD(u);break;case 1:Lo(u.type)&&Wf(u);break;case 4:Bw(u,u.stateNode.containerInfo);break;case 10:var v=u.type._context,x=u.memoizedProps.value;xt(Zf,v._currentValue),v._currentValue=x;break;case 13:if(v=u.memoizedState,v!==null)return v.dehydrated!==null?(xt(It,It.current&1),u.flags|=128,null):(p&u.child.childLanes)!==0?qD(l,u,p):(xt(It,It.current&1),l=pi(l,u,p),l!==null?l.sibling:null);xt(It,It.current&1);break;case 19:if(v=(p&u.childLanes)!==0,(l.flags&128)!==0){if(v)return $D(l,u,p);u.flags|=128}if(x=u.memoizedState,x!==null&&(x.rendering=null,x.tail=null,x.lastEffect=null),xt(It,It.current),v)break;return null;case 22:case 23:return u.lanes=0,HD(l,u,p)}return pi(l,u,p)}var KD,rC,XD,ZD;KD=function(l,u){for(var p=u.child;p!==null;){if(p.tag===5||p.tag===6)l.appendChild(p.stateNode);else if(p.tag!==4&&p.child!==null){p.child.return=p,p=p.child;continue}if(p===u)break;for(;p.sibling===null;){if(p.return===null||p.return===u)return;p=p.return}p.sibling.return=p.return,p=p.sibling}},rC=function(){},XD=function(l,u,p,v){var x=l.memoizedProps;if(x!==v){l=u.stateNode,sa(An.current);var R=null;switch(p){case"input":x=bo(l,x),v=bo(l,v),R=[];break;case"select":x=j({},x,{value:void 0}),v=j({},v,{value:void 0}),R=[];break;case"textarea":x=pt(l,x),v=pt(l,v),R=[];break;default:typeof x.onClick!="function"&&typeof v.onClick=="function"&&(l.onclick=Vf)}Ge(p,v);var T;p=null;for(oe in x)if(!v.hasOwnProperty(oe)&&x.hasOwnProperty(oe)&&x[oe]!=null)if(oe==="style"){var N=x[oe];for(T in N)N.hasOwnProperty(T)&&(p||(p={}),p[T]="")}else oe!=="dangerouslySetInnerHTML"&&oe!=="children"&&oe!=="suppressContentEditableWarning"&&oe!=="suppressHydrationWarning"&&oe!=="autoFocus"&&(n.hasOwnProperty(oe)?R||(R=[]):(R=R||[]).push(oe,null));for(oe in v){var G=v[oe];if(N=x?.[oe],v.hasOwnProperty(oe)&&G!==N&&(G!=null||N!=null))if(oe==="style")if(N){for(T in N)!N.hasOwnProperty(T)||G&&G.hasOwnProperty(T)||(p||(p={}),p[T]="");for(T in G)G.hasOwnProperty(T)&&N[T]!==G[T]&&(p||(p={}),p[T]=G[T])}else p||(R||(R=[]),R.push(oe,p)),p=G;else oe==="dangerouslySetInnerHTML"?(G=G?G.__html:void 0,N=N?N.__html:void 0,G!=null&&N!==G&&(R=R||[]).push(oe,G)):oe==="children"?typeof G!="string"&&typeof G!="number"||(R=R||[]).push(oe,""+G):oe!=="suppressContentEditableWarning"&&oe!=="suppressHydrationWarning"&&(n.hasOwnProperty(oe)?(G!=null&&oe==="onScroll"&&Et("scroll",l),R||N===G||(R=[])):(R=R||[]).push(oe,G))}p&&(R=R||[]).push("style",p);var oe=R;(u.updateQueue=oe)&&(u.flags|=4)}},ZD=function(l,u,p,v){p!==v&&(u.flags|=4)};function Ou(l,u){if(!Tt)switch(l.tailMode){case"hidden":u=l.tail;for(var p=null;u!==null;)u.alternate!==null&&(p=u),u=u.sibling;p===null?l.tail=null:p.sibling=null;break;case"collapsed":p=l.tail;for(var v=null;p!==null;)p.alternate!==null&&(v=p),p=p.sibling;v===null?u||l.tail===null?l.tail=null:l.tail.sibling=null:v.sibling=null}}function So(l){var u=l.alternate!==null&&l.alternate.child===l.child,p=0,v=0;if(u)for(var x=l.child;x!==null;)p|=x.lanes|x.childLanes,v|=x.subtreeFlags&14680064,v|=x.flags&14680064,x.return=l,x=x.sibling;else for(x=l.child;x!==null;)p|=x.lanes|x.childLanes,v|=x.subtreeFlags,v|=x.flags,x.return=l,x=x.sibling;return l.subtreeFlags|=v,l.childLanes=p,u}function lte(l,u,p){var v=u.pendingProps;switch(Fw(u),u.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return So(u),null;case 1:return Lo(u.type)&&jf(),So(u),null;case 3:return v=u.stateNode,jl(),_t(No),_t(Co),Lw(),v.pendingContext&&(v.context=v.pendingContext,v.pendingContext=null),(l===null||l.child===null)&&(Kf(u)?u.flags|=4:l===null||l.memoizedState.isDehydrated&&(u.flags&256)===0||(u.flags|=1024,Qr!==null&&(pC(Qr),Qr=null))),rC(l,u),So(u),null;case 5:Ow(u);var x=sa(Tu.current);if(p=u.type,l!==null&&u.stateNode!=null)XD(l,u,p,v,x),l.ref!==u.ref&&(u.flags|=512,u.flags|=2097152);else{if(!v){if(u.stateNode===null)throw Error(o(166));return So(u),null}if(l=sa(An.current),Kf(u)){v=u.stateNode,p=u.type;var R=u.memoizedProps;switch(v[Mn]=u,v[Ru]=R,l=(u.mode&1)!==0,p){case"dialog":Et("cancel",v),Et("close",v);break;case"iframe":case"object":case"embed":Et("load",v);break;case"video":case"audio":for(x=0;x<xu.length;x++)Et(xu[x],v);break;case"source":Et("error",v);break;case"img":case"image":case"link":Et("error",v),Et("load",v);break;case"details":Et("toggle",v);break;case"input":Jo(v,R),Et("invalid",v);break;case"select":v._wrapperState={wasMultiple:!!R.multiple},Et("invalid",v);break;case"textarea":Kt(v,R),Et("invalid",v)}Ge(p,R),x=null;for(var T in R)if(R.hasOwnProperty(T)){var N=R[T];T==="children"?typeof N=="string"?v.textContent!==N&&(R.suppressHydrationWarning!==!0&&Hf(v.textContent,N,l),x=["children",N]):typeof N=="number"&&v.textContent!==""+N&&(R.suppressHydrationWarning!==!0&&Hf(v.textContent,N,l),x=["children",""+N]):n.hasOwnProperty(T)&&N!=null&&T==="onScroll"&&Et("scroll",v)}switch(p){case"input":$e(v),De(v,R,!0);break;case"textarea":$e(v),Rt(v);break;case"select":case"option":break;default:typeof R.onClick=="function"&&(v.onclick=Vf)}v=x,u.updateQueue=v,v!==null&&(u.flags|=4)}else{T=x.nodeType===9?x:x.ownerDocument,l==="http://www.w3.org/1999/xhtml"&&(l=er(p)),l==="http://www.w3.org/1999/xhtml"?p==="script"?(l=T.createElement("div"),l.innerHTML="<script><\/script>",l=l.removeChild(l.firstChild)):typeof v.is=="string"?l=T.createElement(p,{is:v.is}):(l=T.createElement(p),p==="select"&&(T=l,v.multiple?T.multiple=!0:v.size&&(T.size=v.size))):l=T.createElementNS(l,p),l[Mn]=u,l[Ru]=v,KD(l,u,!1,!1),u.stateNode=l;e:{switch(T=Ke(p,v),p){case"dialog":Et("cancel",l),Et("close",l),x=v;break;case"iframe":case"object":case"embed":Et("load",l),x=v;break;case"video":case"audio":for(x=0;x<xu.length;x++)Et(xu[x],l);x=v;break;case"source":Et("error",l),x=v;break;case"img":case"image":case"link":Et("error",l),Et("load",l),x=v;break;case"details":Et("toggle",l),x=v;break;case"input":Jo(l,v),x=bo(l,v),Et("invalid",l);break;case"option":x=v;break;case"select":l._wrapperState={wasMultiple:!!v.multiple},x=j({},v,{value:void 0}),Et("invalid",l);break;case"textarea":Kt(l,v),x=pt(l,v),Et("invalid",l);break;default:x=v}Ge(p,x),N=x;for(R in N)if(N.hasOwnProperty(R)){var G=N[R];R==="style"?ge(l,G):R==="dangerouslySetInnerHTML"?(G=G?G.__html:void 0,G!=null&&At(l,G)):R==="children"?typeof G=="string"?(p!=="textarea"||G!=="")&&ni(l,G):typeof G=="number"&&ni(l,""+G):R!=="suppressContentEditableWarning"&&R!=="suppressHydrationWarning"&&R!=="autoFocus"&&(n.hasOwnProperty(R)?G!=null&&R==="onScroll"&&Et("scroll",l):G!=null&&F(l,R,G,T))}switch(p){case"input":$e(l),De(l,v,!1);break;case"textarea":$e(l),Rt(l);break;case"option":v.value!=null&&l.setAttribute("value",""+we(v.value));break;case"select":l.multiple=!!v.multiple,R=v.value,R!=null?Pe(l,!!v.multiple,R,!1):v.defaultValue!=null&&Pe(l,!!v.multiple,v.defaultValue,!0);break;default:typeof x.onClick=="function"&&(l.onclick=Vf)}switch(p){case"button":case"input":case"select":case"textarea":v=!!v.autoFocus;break e;case"img":v=!0;break e;default:v=!1}}v&&(u.flags|=4)}u.ref!==null&&(u.flags|=512,u.flags|=2097152)}return So(u),null;case 6:if(l&&u.stateNode!=null)ZD(l,u,l.memoizedProps,v);else{if(typeof v!="string"&&u.stateNode===null)throw Error(o(166));if(p=sa(Tu.current),sa(An.current),Kf(u)){if(v=u.stateNode,p=u.memoizedProps,v[Mn]=u,(R=v.nodeValue!==p)&&(l=nr,l!==null))switch(l.tag){case 3:Hf(v.nodeValue,p,(l.mode&1)!==0);break;case 5:l.memoizedProps.suppressHydrationWarning!==!0&&Hf(v.nodeValue,p,(l.mode&1)!==0)}R&&(u.flags|=4)}else v=(p.nodeType===9?p:p.ownerDocument).createTextNode(v),v[Mn]=u,u.stateNode=v}return So(u),null;case 13:if(_t(It),v=u.memoizedState,l===null||l.memoizedState!==null&&l.memoizedState.dehydrated!==null){if(Tt&&ir!==null&&(u.mode&1)!==0&&(u.flags&128)===0)JP(),zl(),u.flags|=98560,R=!1;else if(R=Kf(u),v!==null&&v.dehydrated!==null){if(l===null){if(!R)throw Error(o(318));if(R=u.memoizedState,R=R!==null?R.dehydrated:null,!R)throw Error(o(317));R[Mn]=u}else zl(),(u.flags&128)===0&&(u.memoizedState=null),u.flags|=4;So(u),R=!1}else Qr!==null&&(pC(Qr),Qr=null),R=!0;if(!R)return u.flags&65536?u:null}return(u.flags&128)!==0?(u.lanes=p,u):(v=v!==null,v!==(l!==null&&l.memoizedState!==null)&&v&&(u.child.flags|=8192,(u.mode&1)!==0&&(l===null||(It.current&1)!==0?Jt===0&&(Jt=3):vC())),u.updateQueue!==null&&(u.flags|=4),So(u),null);case 4:return jl(),rC(l,u),l===null&&ku(u.stateNode.containerInfo),So(u),null;case 10:return Tw(u.type._context),So(u),null;case 17:return Lo(u.type)&&jf(),So(u),null;case 19:if(_t(It),R=u.memoizedState,R===null)return So(u),null;if(v=(u.flags&128)!==0,T=R.rendering,T===null)if(v)Ou(R,!1);else{if(Jt!==0||l!==null&&(l.flags&128)!==0)for(l=u.child;l!==null;){if(T=ep(l),T!==null){for(u.flags|=128,Ou(R,!1),v=T.updateQueue,v!==null&&(u.updateQueue=v,u.flags|=4),u.subtreeFlags=0,v=p,p=u.child;p!==null;)R=p,l=v,R.flags&=14680066,T=R.alternate,T===null?(R.childLanes=0,R.lanes=l,R.child=null,R.subtreeFlags=0,R.memoizedProps=null,R.memoizedState=null,R.updateQueue=null,R.dependencies=null,R.stateNode=null):(R.childLanes=T.childLanes,R.lanes=T.lanes,R.child=T.child,R.subtreeFlags=0,R.deletions=null,R.memoizedProps=T.memoizedProps,R.memoizedState=T.memoizedState,R.updateQueue=T.updateQueue,R.type=T.type,l=T.dependencies,R.dependencies=l===null?null:{lanes:l.lanes,firstContext:l.firstContext}),p=p.sibling;return xt(It,It.current&1|2),u.child}l=l.sibling}R.tail!==null&&jt()>$l&&(u.flags|=128,v=!0,Ou(R,!1),u.lanes=4194304)}else{if(!v)if(l=ep(T),l!==null){if(u.flags|=128,v=!0,p=l.updateQueue,p!==null&&(u.updateQueue=p,u.flags|=4),Ou(R,!0),R.tail===null&&R.tailMode==="hidden"&&!T.alternate&&!Tt)return So(u),null}else 2*jt()-R.renderingStartTime>$l&&p!==1073741824&&(u.flags|=128,v=!0,Ou(R,!1),u.lanes=4194304);R.isBackwards?(T.sibling=u.child,u.child=T):(p=R.last,p!==null?p.sibling=T:u.child=T,R.last=T)}return R.tail!==null?(u=R.tail,R.rendering=u,R.tail=u.sibling,R.renderingStartTime=jt(),u.sibling=null,p=It.current,xt(It,v?p&1|2:p&1),u):(So(u),null);case 22:case 23:return mC(),v=u.memoizedState!==null,l!==null&&l.memoizedState!==null!==v&&(u.flags|=8192),v&&(u.mode&1)!==0?(sr&1073741824)!==0&&(So(u),u.subtreeFlags&6&&(u.flags|=8192)):So(u),null;case 24:return null;case 25:return null}throw Error(o(156,u.tag))}function cte(l,u){switch(Fw(u),u.tag){case 1:return Lo(u.type)&&jf(),l=u.flags,l&65536?(u.flags=l&-65537|128,u):null;case 3:return jl(),_t(No),_t(Co),Lw(),l=u.flags,(l&65536)!==0&&(l&128)===0?(u.flags=l&-65537|128,u):null;case 5:return Ow(u),null;case 13:if(_t(It),l=u.memoizedState,l!==null&&l.dehydrated!==null){if(u.alternate===null)throw Error(o(340));zl()}return l=u.flags,l&65536?(u.flags=l&-65537|128,u):null;case 19:return _t(It),null;case 4:return jl(),null;case 10:return Tw(u.type._context),null;case 22:case 23:return mC(),null;case 24:return null;default:return null}}var cp=!1,xo=!1,ute=typeof WeakSet=="function"?WeakSet:Set,ke=null;function ql(l,u){var p=l.ref;if(p!==null)if(typeof p=="function")try{p(null)}catch(v){Gt(l,u,v)}else p.current=null}function nC(l,u,p){try{p()}catch(v){Gt(l,u,v)}}var YD=!1;function dte(l,u){if(mw=Pf,l=PP(),lw(l)){if("selectionStart"in l)var p={start:l.selectionStart,end:l.selectionEnd};else e:{p=(p=l.ownerDocument)&&p.defaultView||window;var v=p.getSelection&&p.getSelection();if(v&&v.rangeCount!==0){p=v.anchorNode;var x=v.anchorOffset,R=v.focusNode;v=v.focusOffset;try{p.nodeType,R.nodeType}catch{p=null;break e}var T=0,N=-1,G=-1,oe=0,le=0,ce=l,se=null;t:for(;;){for(var ye;ce!==p||x!==0&&ce.nodeType!==3||(N=T+x),ce!==R||v!==0&&ce.nodeType!==3||(G=T+v),ce.nodeType===3&&(T+=ce.nodeValue.length),(ye=ce.firstChild)!==null;)se=ce,ce=ye;for(;;){if(ce===l)break t;if(se===p&&++oe===x&&(N=T),se===R&&++le===v&&(G=T),(ye=ce.nextSibling)!==null)break;ce=se,se=ce.parentNode}ce=ye}p=N===-1||G===-1?null:{start:N,end:G}}else p=null}p=p||{start:0,end:0}}else p=null;for(vw={focusedElem:l,selectionRange:p},Pf=!1,ke=u;ke!==null;)if(u=ke,l=u.child,(u.subtreeFlags&1028)!==0&&l!==null)l.return=u,ke=l;else for(;ke!==null;){u=ke;try{var Fe=u.alternate;if((u.flags&1024)!==0)switch(u.tag){case 0:case 11:case 15:break;case 1:if(Fe!==null){var Re=Fe.memoizedProps,Wt=Fe.memoizedState,Z=u.stateNode,q=Z.getSnapshotBeforeUpdate(u.elementType===u.type?Re:Jr(u.type,Re),Wt);Z.__reactInternalSnapshotBeforeUpdate=q}break;case 3:var Q=u.stateNode.containerInfo;Q.nodeType===1?Q.textContent="":Q.nodeType===9&&Q.documentElement&&Q.removeChild(Q.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(o(163))}}catch(fe){Gt(u,u.return,fe)}if(l=u.sibling,l!==null){l.return=u.return,ke=l;break}ke=u.return}return Fe=YD,YD=!1,Fe}function Nu(l,u,p){var v=u.updateQueue;if(v=v!==null?v.lastEffect:null,v!==null){var x=v=v.next;do{if((x.tag&l)===l){var R=x.destroy;x.destroy=void 0,R!==void 0&&nC(u,p,R)}x=x.next}while(x!==v)}}function up(l,u){if(u=u.updateQueue,u=u!==null?u.lastEffect:null,u!==null){var p=u=u.next;do{if((p.tag&l)===l){var v=p.create;p.destroy=v()}p=p.next}while(p!==u)}}function iC(l){var u=l.ref;if(u!==null){var p=l.stateNode;l.tag,l=p,typeof u=="function"?u(l):u.current=l}}function QD(l){var u=l.alternate;u!==null&&(l.alternate=null,QD(u)),l.child=null,l.deletions=null,l.sibling=null,l.tag===5&&(u=l.stateNode,u!==null&&(delete u[Mn],delete u[Ru],delete u[yw],delete u[$ee],delete u[Kee])),l.stateNode=null,l.return=null,l.dependencies=null,l.memoizedProps=null,l.memoizedState=null,l.pendingProps=null,l.stateNode=null,l.updateQueue=null}function JD(l){return l.tag===5||l.tag===3||l.tag===4}function eT(l){e:for(;;){for(;l.sibling===null;){if(l.return===null||JD(l.return))return null;l=l.return}for(l.sibling.return=l.return,l=l.sibling;l.tag!==5&&l.tag!==6&&l.tag!==18;){if(l.flags&2||l.child===null||l.tag===4)continue e;l.child.return=l,l=l.child}if(!(l.flags&2))return l.stateNode}}function sC(l,u,p){var v=l.tag;if(v===5||v===6)l=l.stateNode,u?p.nodeType===8?p.parentNode.insertBefore(l,u):p.insertBefore(l,u):(p.nodeType===8?(u=p.parentNode,u.insertBefore(l,p)):(u=p,u.appendChild(l)),p=p._reactRootContainer,p!=null||u.onclick!==null||(u.onclick=Vf));else if(v!==4&&(l=l.child,l!==null))for(sC(l,u,p),l=l.sibling;l!==null;)sC(l,u,p),l=l.sibling}function aC(l,u,p){var v=l.tag;if(v===5||v===6)l=l.stateNode,u?p.insertBefore(l,u):p.appendChild(l);else if(v!==4&&(l=l.child,l!==null))for(aC(l,u,p),l=l.sibling;l!==null;)aC(l,u,p),l=l.sibling}var uo=null,en=!1;function os(l,u,p){for(p=p.child;p!==null;)tT(l,u,p),p=p.sibling}function tT(l,u,p){if(Tn&&typeof Tn.onCommitFiberUnmount=="function")try{Tn.onCommitFiberUnmount(xf,p)}catch{}switch(p.tag){case 5:xo||ql(p,u);case 6:var v=uo,x=en;uo=null,os(l,u,p),uo=v,en=x,uo!==null&&(en?(l=uo,p=p.stateNode,l.nodeType===8?l.parentNode.removeChild(p):l.removeChild(p)):uo.removeChild(p.stateNode));break;case 18:uo!==null&&(en?(l=uo,p=p.stateNode,l.nodeType===8?Cw(l.parentNode,p):l.nodeType===1&&Cw(l,p),gu(l)):Cw(uo,p.stateNode));break;case 4:v=uo,x=en,uo=p.stateNode.containerInfo,en=!0,os(l,u,p),uo=v,en=x;break;case 0:case 11:case 14:case 15:if(!xo&&(v=p.updateQueue,v!==null&&(v=v.lastEffect,v!==null))){x=v=v.next;do{var R=x,T=R.destroy;R=R.tag,T!==void 0&&((R&2)!==0||(R&4)!==0)&&nC(p,u,T),x=x.next}while(x!==v)}os(l,u,p);break;case 1:if(!xo&&(ql(p,u),v=p.stateNode,typeof v.componentWillUnmount=="function"))try{v.props=p.memoizedProps,v.state=p.memoizedState,v.componentWillUnmount()}catch(N){Gt(p,u,N)}os(l,u,p);break;case 21:os(l,u,p);break;case 22:p.mode&1?(xo=(v=xo)||p.memoizedState!==null,os(l,u,p),xo=v):os(l,u,p);break;default:os(l,u,p)}}function oT(l){var u=l.updateQueue;if(u!==null){l.updateQueue=null;var p=l.stateNode;p===null&&(p=l.stateNode=new ute),u.forEach(function(v){var x=Cte.bind(null,l,v);p.has(v)||(p.add(v),v.then(x,x))})}}function tn(l,u){var p=u.deletions;if(p!==null)for(var v=0;v<p.length;v++){var x=p[v];try{var R=l,T=u,N=T;e:for(;N!==null;){switch(N.tag){case 5:uo=N.stateNode,en=!1;break e;case 3:uo=N.stateNode.containerInfo,en=!0;break e;case 4:uo=N.stateNode.containerInfo,en=!0;break e}N=N.return}if(uo===null)throw Error(o(160));tT(R,T,x),uo=null,en=!1;var G=x.alternate;G!==null&&(G.return=null),x.return=null}catch(oe){Gt(x,u,oe)}}if(u.subtreeFlags&12854)for(u=u.child;u!==null;)rT(u,l),u=u.sibling}function rT(l,u){var p=l.alternate,v=l.flags;switch(l.tag){case 0:case 11:case 14:case 15:if(tn(u,l),Bn(l),v&4){try{Nu(3,l,l.return),up(3,l)}catch(Re){Gt(l,l.return,Re)}try{Nu(5,l,l.return)}catch(Re){Gt(l,l.return,Re)}}break;case 1:tn(u,l),Bn(l),v&512&&p!==null&&ql(p,p.return);break;case 5:if(tn(u,l),Bn(l),v&512&&p!==null&&ql(p,p.return),l.flags&32){var x=l.stateNode;try{ni(x,"")}catch(Re){Gt(l,l.return,Re)}}if(v&4&&(x=l.stateNode,x!=null)){var R=l.memoizedProps,T=p!==null?p.memoizedProps:R,N=l.type,G=l.updateQueue;if(l.updateQueue=null,G!==null)try{N==="input"&&R.type==="radio"&&R.name!=null&&Dn(x,R),Ke(N,T);var oe=Ke(N,R);for(T=0;T<G.length;T+=2){var le=G[T],ce=G[T+1];le==="style"?ge(x,ce):le==="dangerouslySetInnerHTML"?At(x,ce):le==="children"?ni(x,ce):F(x,le,ce,oe)}switch(N){case"input":Ne(x,R);break;case"textarea":co(x,R);break;case"select":var se=x._wrapperState.wasMultiple;x._wrapperState.wasMultiple=!!R.multiple;var ye=R.value;ye!=null?Pe(x,!!R.multiple,ye,!1):se!==!!R.multiple&&(R.defaultValue!=null?Pe(x,!!R.multiple,R.defaultValue,!0):Pe(x,!!R.multiple,R.multiple?[]:"",!1))}x[Ru]=R}catch(Re){Gt(l,l.return,Re)}}break;case 6:if(tn(u,l),Bn(l),v&4){if(l.stateNode===null)throw Error(o(162));x=l.stateNode,R=l.memoizedProps;try{x.nodeValue=R}catch(Re){Gt(l,l.return,Re)}}break;case 3:if(tn(u,l),Bn(l),v&4&&p!==null&&p.memoizedState.isDehydrated)try{gu(u.containerInfo)}catch(Re){Gt(l,l.return,Re)}break;case 4:tn(u,l),Bn(l);break;case 13:tn(u,l),Bn(l),x=l.child,x.flags&8192&&(R=x.memoizedState!==null,x.stateNode.isHidden=R,!R||x.alternate!==null&&x.alternate.memoizedState!==null||(uC=jt())),v&4&&oT(l);break;case 22:if(le=p!==null&&p.memoizedState!==null,l.mode&1?(xo=(oe=xo)||le,tn(u,l),xo=oe):tn(u,l),Bn(l),v&8192){if(oe=l.memoizedState!==null,(l.stateNode.isHidden=oe)&&!le&&(l.mode&1)!==0)for(ke=l,le=l.child;le!==null;){for(ce=ke=le;ke!==null;){switch(se=ke,ye=se.child,se.tag){case 0:case 11:case 14:case 15:Nu(4,se,se.return);break;case 1:ql(se,se.return);var Fe=se.stateNode;if(typeof Fe.componentWillUnmount=="function"){v=se,p=se.return;try{u=v,Fe.props=u.memoizedProps,Fe.state=u.memoizedState,Fe.componentWillUnmount()}catch(Re){Gt(v,p,Re)}}break;case 5:ql(se,se.return);break;case 22:if(se.memoizedState!==null){sT(ce);continue}}ye!==null?(ye.return=se,ke=ye):sT(ce)}le=le.sibling}e:for(le=null,ce=l;;){if(ce.tag===5){if(le===null){le=ce;try{x=ce.stateNode,oe?(R=x.style,typeof R.setProperty=="function"?R.setProperty("display","none","important"):R.display="none"):(N=ce.stateNode,G=ce.memoizedProps.style,T=G!=null&&G.hasOwnProperty("display")?G.display:null,N.style.display=Cf("display",T))}catch(Re){Gt(l,l.return,Re)}}}else if(ce.tag===6){if(le===null)try{ce.stateNode.nodeValue=oe?"":ce.memoizedProps}catch(Re){Gt(l,l.return,Re)}}else if((ce.tag!==22&&ce.tag!==23||ce.memoizedState===null||ce===l)&&ce.child!==null){ce.child.return=ce,ce=ce.child;continue}if(ce===l)break e;for(;ce.sibling===null;){if(ce.return===null||ce.return===l)break e;le===ce&&(le=null),ce=ce.return}le===ce&&(le=null),ce.sibling.return=ce.return,ce=ce.sibling}}break;case 19:tn(u,l),Bn(l),v&4&&oT(l);break;case 21:break;default:tn(u,l),Bn(l)}}function Bn(l){var u=l.flags;if(u&2){try{e:{for(var p=l.return;p!==null;){if(JD(p)){var v=p;break e}p=p.return}throw Error(o(160))}switch(v.tag){case 5:var x=v.stateNode;v.flags&32&&(ni(x,""),v.flags&=-33);var R=eT(l);aC(l,R,x);break;case 3:case 4:var T=v.stateNode.containerInfo,N=eT(l);sC(l,N,T);break;default:throw Error(o(161))}}catch(G){Gt(l,l.return,G)}l.flags&=-3}u&4096&&(l.flags&=-4097)}function hte(l,u,p){ke=l,nT(l)}function nT(l,u,p){for(var v=(l.mode&1)!==0;ke!==null;){var x=ke,R=x.child;if(x.tag===22&&v){var T=x.memoizedState!==null||cp;if(!T){var N=x.alternate,G=N!==null&&N.memoizedState!==null||xo;N=cp;var oe=xo;if(cp=T,(xo=G)&&!oe)for(ke=x;ke!==null;)T=ke,G=T.child,T.tag===22&&T.memoizedState!==null?aT(x):G!==null?(G.return=T,ke=G):aT(x);for(;R!==null;)ke=R,nT(R),R=R.sibling;ke=x,cp=N,xo=oe}iT(l)}else(x.subtreeFlags&8772)!==0&&R!==null?(R.return=x,ke=R):iT(l)}}function iT(l){for(;ke!==null;){var u=ke;if((u.flags&8772)!==0){var p=u.alternate;try{if((u.flags&8772)!==0)switch(u.tag){case 0:case 11:case 15:xo||up(5,u);break;case 1:var v=u.stateNode;if(u.flags&4&&!xo)if(p===null)v.componentDidMount();else{var x=u.elementType===u.type?p.memoizedProps:Jr(u.type,p.memoizedProps);v.componentDidUpdate(x,p.memoizedState,v.__reactInternalSnapshotBeforeUpdate)}var R=u.updateQueue;R!==null&&sD(u,R,v);break;case 3:var T=u.updateQueue;if(T!==null){if(p=null,u.child!==null)switch(u.child.tag){case 5:p=u.child.stateNode;break;case 1:p=u.child.stateNode}sD(u,T,p)}break;case 5:var N=u.stateNode;if(p===null&&u.flags&4){p=N;var G=u.memoizedProps;switch(u.type){case"button":case"input":case"select":case"textarea":G.autoFocus&&p.focus();break;case"img":G.src&&(p.src=G.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(u.memoizedState===null){var oe=u.alternate;if(oe!==null){var le=oe.memoizedState;if(le!==null){var ce=le.dehydrated;ce!==null&&gu(ce)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(o(163))}xo||u.flags&512&&iC(u)}catch(se){Gt(u,u.return,se)}}if(u===l){ke=null;break}if(p=u.sibling,p!==null){p.return=u.return,ke=p;break}ke=u.return}}function sT(l){for(;ke!==null;){var u=ke;if(u===l){ke=null;break}var p=u.sibling;if(p!==null){p.return=u.return,ke=p;break}ke=u.return}}function aT(l){for(;ke!==null;){var u=ke;try{switch(u.tag){case 0:case 11:case 15:var p=u.return;try{up(4,u)}catch(G){Gt(u,p,G)}break;case 1:var v=u.stateNode;if(typeof v.componentDidMount=="function"){var x=u.return;try{v.componentDidMount()}catch(G){Gt(u,x,G)}}var R=u.return;try{iC(u)}catch(G){Gt(u,R,G)}break;case 5:var T=u.return;try{iC(u)}catch(G){Gt(u,T,G)}}}catch(G){Gt(u,u.return,G)}if(u===l){ke=null;break}var N=u.sibling;if(N!==null){N.return=u.return,ke=N;break}ke=u.return}}var fte=Math.ceil,dp=E.ReactCurrentDispatcher,lC=E.ReactCurrentOwner,Tr=E.ReactCurrentBatchConfig,Je=0,ro=null,Xt=null,ho=0,sr=0,Ul=Yi(0),Jt=0,Lu=null,la=0,hp=0,cC=0,zu=null,Ho=null,uC=0,$l=1/0,gi=null,fp=!1,dC=null,rs=null,pp=!1,ns=null,gp=0,Hu=0,hC=null,mp=-1,vp=0;function _o(){return(Je&6)!==0?jt():mp!==-1?mp:mp=jt()}function is(l){return(l.mode&1)===0?1:(Je&2)!==0&&ho!==0?ho&-ho:Zee.transition!==null?(vp===0&&(vp=eP()),vp):(l=ht,l!==0||(l=window.event,l=l===void 0?16:cP(l.type)),l)}function on(l,u,p,v){if(50<Hu)throw Hu=0,hC=null,Error(o(185));uu(l,p,v),((Je&2)===0||l!==ro)&&(l===ro&&((Je&2)===0&&(hp|=p),Jt===4&&ss(l,ho)),Vo(l,v),p===1&&Je===0&&(u.mode&1)===0&&($l=jt()+500,qf&&Ji()))}function Vo(l,u){var p=l.callbackNode;ZJ(l,u);var v=Rf(l,l===ro?ho:0);if(v===0)p!==null&&Y_(p),l.callbackNode=null,l.callbackPriority=0;else if(u=v&-v,l.callbackPriority!==u){if(p!=null&&Y_(p),u===1)l.tag===0?Xee(cT.bind(null,l)):KP(cT.bind(null,l)),qee(function(){(Je&6)===0&&Ji()}),p=null;else{switch(tP(v)){case 1:p=qb;break;case 4:p=Q_;break;case 16:p=Sf;break;case 536870912:p=J_;break;default:p=Sf}p=vT(p,lT.bind(null,l))}l.callbackPriority=u,l.callbackNode=p}}function lT(l,u){if(mp=-1,vp=0,(Je&6)!==0)throw Error(o(327));var p=l.callbackNode;if(Kl()&&l.callbackNode!==p)return null;var v=Rf(l,l===ro?ho:0);if(v===0)return null;if((v&30)!==0||(v&l.expiredLanes)!==0||u)u=bp(l,v);else{u=v;var x=Je;Je|=2;var R=dT();(ro!==l||ho!==u)&&(gi=null,$l=jt()+500,ua(l,u));do try{mte();break}catch(N){uT(l,N)}while(!0);Dw(),dp.current=R,Je=x,Xt!==null?u=0:(ro=null,ho=0,u=Jt)}if(u!==0){if(u===2&&(x=Ub(l),x!==0&&(v=x,u=fC(l,x))),u===1)throw p=Lu,ua(l,0),ss(l,v),Vo(l,jt()),p;if(u===6)ss(l,v);else{if(x=l.current.alternate,(v&30)===0&&!pte(x)&&(u=bp(l,v),u===2&&(R=Ub(l),R!==0&&(v=R,u=fC(l,R))),u===1))throw p=Lu,ua(l,0),ss(l,v),Vo(l,jt()),p;switch(l.finishedWork=x,l.finishedLanes=v,u){case 0:case 1:throw Error(o(345));case 2:da(l,Ho,gi);break;case 3:if(ss(l,v),(v&130023424)===v&&(u=uC+500-jt(),10<u)){if(Rf(l,0)!==0)break;if(x=l.suspendedLanes,(x&v)!==v){_o(),l.pingedLanes|=l.suspendedLanes&x;break}l.timeoutHandle=ww(da.bind(null,l,Ho,gi),u);break}da(l,Ho,gi);break;case 4:if(ss(l,v),(v&4194240)===v)break;for(u=l.eventTimes,x=-1;0<v;){var T=31-Zr(v);R=1<<T,T=u[T],T>x&&(x=T),v&=~R}if(v=x,v=jt()-v,v=(120>v?120:480>v?480:1080>v?1080:1920>v?1920:3e3>v?3e3:4320>v?4320:1960*fte(v/1960))-v,10<v){l.timeoutHandle=ww(da.bind(null,l,Ho,gi),v);break}da(l,Ho,gi);break;case 5:da(l,Ho,gi);break;default:throw Error(o(329))}}}return Vo(l,jt()),l.callbackNode===p?lT.bind(null,l):null}function fC(l,u){var p=zu;return l.current.memoizedState.isDehydrated&&(ua(l,u).flags|=256),l=bp(l,u),l!==2&&(u=Ho,Ho=p,u!==null&&pC(u)),l}function pC(l){Ho===null?Ho=l:Ho.push.apply(Ho,l)}function pte(l){for(var u=l;;){if(u.flags&16384){var p=u.updateQueue;if(p!==null&&(p=p.stores,p!==null))for(var v=0;v<p.length;v++){var x=p[v],R=x.getSnapshot;x=x.value;try{if(!Yr(R(),x))return!1}catch{return!1}}}if(p=u.child,u.subtreeFlags&16384&&p!==null)p.return=u,u=p;else{if(u===l)break;for(;u.sibling===null;){if(u.return===null||u.return===l)return!0;u=u.return}u.sibling.return=u.return,u=u.sibling}}return!0}function ss(l,u){for(u&=~cC,u&=~hp,l.suspendedLanes|=u,l.pingedLanes&=~u,l=l.expirationTimes;0<u;){var p=31-Zr(u),v=1<<p;l[p]=-1,u&=~v}}function cT(l){if((Je&6)!==0)throw Error(o(327));Kl();var u=Rf(l,0);if((u&1)===0)return Vo(l,jt()),null;var p=bp(l,u);if(l.tag!==0&&p===2){var v=Ub(l);v!==0&&(u=v,p=fC(l,v))}if(p===1)throw p=Lu,ua(l,0),ss(l,u),Vo(l,jt()),p;if(p===6)throw Error(o(345));return l.finishedWork=l.current.alternate,l.finishedLanes=u,da(l,Ho,gi),Vo(l,jt()),null}function gC(l,u){var p=Je;Je|=1;try{return l(u)}finally{Je=p,Je===0&&($l=jt()+500,qf&&Ji())}}function ca(l){ns!==null&&ns.tag===0&&(Je&6)===0&&Kl();var u=Je;Je|=1;var p=Tr.transition,v=ht;try{if(Tr.transition=null,ht=1,l)return l()}finally{ht=v,Tr.transition=p,Je=u,(Je&6)===0&&Ji()}}function mC(){sr=Ul.current,_t(Ul)}function ua(l,u){l.finishedWork=null,l.finishedLanes=0;var p=l.timeoutHandle;if(p!==-1&&(l.timeoutHandle=-1,Wee(p)),Xt!==null)for(p=Xt.return;p!==null;){var v=p;switch(Fw(v),v.tag){case 1:v=v.type.childContextTypes,v!=null&&jf();break;case 3:jl(),_t(No),_t(Co),Lw();break;case 5:Ow(v);break;case 4:jl();break;case 13:_t(It);break;case 19:_t(It);break;case 10:Tw(v.type._context);break;case 22:case 23:mC()}p=p.return}if(ro=l,Xt=l=as(l.current,null),ho=sr=u,Jt=0,Lu=null,cC=hp=la=0,Ho=zu=null,ia!==null){for(u=0;u<ia.length;u++)if(p=ia[u],v=p.interleaved,v!==null){p.interleaved=null;var x=v.next,R=p.pending;if(R!==null){var T=R.next;R.next=x,v.next=T}p.pending=v}ia=null}return l}function uT(l,u){do{var p=Xt;try{if(Dw(),tp.current=ip,op){for(var v=Bt.memoizedState;v!==null;){var x=v.queue;x!==null&&(x.pending=null),v=v.next}op=!1}if(aa=0,oo=Qt=Bt=null,Mu=!1,Au=0,lC.current=null,p===null||p.return===null){Jt=1,Lu=u,Xt=null;break}e:{var R=l,T=p.return,N=p,G=u;if(u=ho,N.flags|=32768,G!==null&&typeof G=="object"&&typeof G.then=="function"){var oe=G,le=N,ce=le.tag;if((le.mode&1)===0&&(ce===0||ce===11||ce===15)){var se=le.alternate;se?(le.updateQueue=se.updateQueue,le.memoizedState=se.memoizedState,le.lanes=se.lanes):(le.updateQueue=null,le.memoizedState=null)}var ye=BD(T);if(ye!==null){ye.flags&=-257,OD(ye,T,N,R,u),ye.mode&1&&ID(R,oe,u),u=ye,G=oe;var Fe=u.updateQueue;if(Fe===null){var Re=new Set;Re.add(G),u.updateQueue=Re}else Fe.add(G);break e}else{if((u&1)===0){ID(R,oe,u),vC();break e}G=Error(o(426))}}else if(Tt&&N.mode&1){var Wt=BD(T);if(Wt!==null){(Wt.flags&65536)===0&&(Wt.flags|=256),OD(Wt,T,N,R,u),_w(Wl(G,N));break e}}R=G=Wl(G,N),Jt!==4&&(Jt=2),zu===null?zu=[R]:zu.push(R),R=T;do{switch(R.tag){case 3:R.flags|=65536,u&=-u,R.lanes|=u;var Z=MD(R,G,u);iD(R,Z);break e;case 1:N=G;var q=R.type,Q=R.stateNode;if((R.flags&128)===0&&(typeof q.getDerivedStateFromError=="function"||Q!==null&&typeof Q.componentDidCatch=="function"&&(rs===null||!rs.has(Q)))){R.flags|=65536,u&=-u,R.lanes|=u;var fe=AD(R,N,u);iD(R,fe);break e}}R=R.return}while(R!==null)}fT(p)}catch(_e){u=_e,Xt===p&&p!==null&&(Xt=p=p.return);continue}break}while(!0)}function dT(){var l=dp.current;return dp.current=ip,l===null?ip:l}function vC(){(Jt===0||Jt===3||Jt===2)&&(Jt=4),ro===null||(la&268435455)===0&&(hp&268435455)===0||ss(ro,ho)}function bp(l,u){var p=Je;Je|=2;var v=dT();(ro!==l||ho!==u)&&(gi=null,ua(l,u));do try{gte();break}catch(x){uT(l,x)}while(!0);if(Dw(),Je=p,dp.current=v,Xt!==null)throw Error(o(261));return ro=null,ho=0,Jt}function gte(){for(;Xt!==null;)hT(Xt)}function mte(){for(;Xt!==null&&!VJ();)hT(Xt)}function hT(l){var u=mT(l.alternate,l,sr);l.memoizedProps=l.pendingProps,u===null?fT(l):Xt=u,lC.current=null}function fT(l){var u=l;do{var p=u.alternate;if(l=u.return,(u.flags&32768)===0){if(p=lte(p,u,sr),p!==null){Xt=p;return}}else{if(p=cte(p,u),p!==null){p.flags&=32767,Xt=p;return}if(l!==null)l.flags|=32768,l.subtreeFlags=0,l.deletions=null;else{Jt=6,Xt=null;return}}if(u=u.sibling,u!==null){Xt=u;return}Xt=u=l}while(u!==null);Jt===0&&(Jt=5)}function da(l,u,p){var v=ht,x=Tr.transition;try{Tr.transition=null,ht=1,vte(l,u,p,v)}finally{Tr.transition=x,ht=v}return null}function vte(l,u,p,v){do Kl();while(ns!==null);if((Je&6)!==0)throw Error(o(327));p=l.finishedWork;var x=l.finishedLanes;if(p===null)return null;if(l.finishedWork=null,l.finishedLanes=0,p===l.current)throw Error(o(177));l.callbackNode=null,l.callbackPriority=0;var R=p.lanes|p.childLanes;if(YJ(l,R),l===ro&&(Xt=ro=null,ho=0),(p.subtreeFlags&2064)===0&&(p.flags&2064)===0||pp||(pp=!0,vT(Sf,function(){return Kl(),null})),R=(p.flags&15990)!==0,(p.subtreeFlags&15990)!==0||R){R=Tr.transition,Tr.transition=null;var T=ht;ht=1;var N=Je;Je|=4,lC.current=null,dte(l,p),rT(p,l),Nee(vw),Pf=!!mw,vw=mw=null,l.current=p,hte(p),GJ(),Je=N,ht=T,Tr.transition=R}else l.current=p;if(pp&&(pp=!1,ns=l,gp=x),R=l.pendingLanes,R===0&&(rs=null),qJ(p.stateNode),Vo(l,jt()),u!==null)for(v=l.onRecoverableError,p=0;p<u.length;p++)x=u[p],v(x.value,{componentStack:x.stack,digest:x.digest});if(fp)throw fp=!1,l=dC,dC=null,l;return(gp&1)!==0&&l.tag!==0&&Kl(),R=l.pendingLanes,(R&1)!==0?l===hC?Hu++:(Hu=0,hC=l):Hu=0,Ji(),null}function Kl(){if(ns!==null){var l=tP(gp),u=Tr.transition,p=ht;try{if(Tr.transition=null,ht=16>l?16:l,ns===null)var v=!1;else{if(l=ns,ns=null,gp=0,(Je&6)!==0)throw Error(o(331));var x=Je;for(Je|=4,ke=l.current;ke!==null;){var R=ke,T=R.child;if((ke.flags&16)!==0){var N=R.deletions;if(N!==null){for(var G=0;G<N.length;G++){var oe=N[G];for(ke=oe;ke!==null;){var le=ke;switch(le.tag){case 0:case 11:case 15:Nu(8,le,R)}var ce=le.child;if(ce!==null)ce.return=le,ke=ce;else for(;ke!==null;){le=ke;var se=le.sibling,ye=le.return;if(QD(le),le===oe){ke=null;break}if(se!==null){se.return=ye,ke=se;break}ke=ye}}}var Fe=R.alternate;if(Fe!==null){var Re=Fe.child;if(Re!==null){Fe.child=null;do{var Wt=Re.sibling;Re.sibling=null,Re=Wt}while(Re!==null)}}ke=R}}if((R.subtreeFlags&2064)!==0&&T!==null)T.return=R,ke=T;else e:for(;ke!==null;){if(R=ke,(R.flags&2048)!==0)switch(R.tag){case 0:case 11:case 15:Nu(9,R,R.return)}var Z=R.sibling;if(Z!==null){Z.return=R.return,ke=Z;break e}ke=R.return}}var q=l.current;for(ke=q;ke!==null;){T=ke;var Q=T.child;if((T.subtreeFlags&2064)!==0&&Q!==null)Q.return=T,ke=Q;else e:for(T=q;ke!==null;){if(N=ke,(N.flags&2048)!==0)try{switch(N.tag){case 0:case 11:case 15:up(9,N)}}catch(_e){Gt(N,N.return,_e)}if(N===T){ke=null;break e}var fe=N.sibling;if(fe!==null){fe.return=N.return,ke=fe;break e}ke=N.return}}if(Je=x,Ji(),Tn&&typeof Tn.onPostCommitFiberRoot=="function")try{Tn.onPostCommitFiberRoot(xf,l)}catch{}v=!0}return v}finally{ht=p,Tr.transition=u}}return!1}function pT(l,u,p){u=Wl(p,u),u=MD(l,u,1),l=ts(l,u,1),u=_o(),l!==null&&(uu(l,1,u),Vo(l,u))}function Gt(l,u,p){if(l.tag===3)pT(l,l,p);else for(;u!==null;){if(u.tag===3){pT(u,l,p);break}else if(u.tag===1){var v=u.stateNode;if(typeof u.type.getDerivedStateFromError=="function"||typeof v.componentDidCatch=="function"&&(rs===null||!rs.has(v))){l=Wl(p,l),l=AD(u,l,1),u=ts(u,l,1),l=_o(),u!==null&&(uu(u,1,l),Vo(u,l));break}}u=u.return}}function bte(l,u,p){var v=l.pingCache;v!==null&&v.delete(u),u=_o(),l.pingedLanes|=l.suspendedLanes&p,ro===l&&(ho&p)===p&&(Jt===4||Jt===3&&(ho&130023424)===ho&&500>jt()-uC?ua(l,0):cC|=p),Vo(l,u)}function gT(l,u){u===0&&((l.mode&1)===0?u=1:(u=Ff,Ff<<=1,(Ff&130023424)===0&&(Ff=4194304)));var p=_o();l=hi(l,u),l!==null&&(uu(l,u,p),Vo(l,p))}function wte(l){var u=l.memoizedState,p=0;u!==null&&(p=u.retryLane),gT(l,p)}function Cte(l,u){var p=0;switch(l.tag){case 13:var v=l.stateNode,x=l.memoizedState;x!==null&&(p=x.retryLane);break;case 19:v=l.stateNode;break;default:throw Error(o(314))}v!==null&&v.delete(u),gT(l,p)}var mT;mT=function(l,u,p){if(l!==null)if(l.memoizedProps!==u.pendingProps||No.current)zo=!0;else{if((l.lanes&p)===0&&(u.flags&128)===0)return zo=!1,ate(l,u,p);zo=(l.flags&131072)!==0}else zo=!1,Tt&&(u.flags&1048576)!==0&&XP(u,$f,u.index);switch(u.lanes=0,u.tag){case 2:var v=u.type;lp(l,u),l=u.pendingProps;var x=Ol(u,Co.current);Gl(u,p),x=Vw(null,u,v,l,x,p);var R=Gw();return u.flags|=1,typeof x=="object"&&x!==null&&typeof x.render=="function"&&x.$$typeof===void 0?(u.tag=1,u.memoizedState=null,u.updateQueue=null,Lo(v)?(R=!0,Wf(u)):R=!1,u.memoizedState=x.state!==null&&x.state!==void 0?x.state:null,Iw(u),x.updater=sp,u.stateNode=x,x._reactInternals=u,Kw(u,v,l,p),u=Qw(null,u,v,!0,R,p)):(u.tag=0,Tt&&R&&kw(u),Eo(null,u,x,p),u=u.child),u;case 16:v=u.elementType;e:{switch(lp(l,u),l=u.pendingProps,x=v._init,v=x(v._payload),u.type=v,x=u.tag=Ste(v),l=Jr(v,l),x){case 0:u=Yw(null,u,v,l,p);break e;case 1:u=GD(null,u,v,l,p);break e;case 11:u=ND(null,u,v,l,p);break e;case 14:u=LD(null,u,v,Jr(v.type,l),p);break e}throw Error(o(306,v,""))}return u;case 0:return v=u.type,x=u.pendingProps,x=u.elementType===v?x:Jr(v,x),Yw(l,u,v,x,p);case 1:return v=u.type,x=u.pendingProps,x=u.elementType===v?x:Jr(v,x),GD(l,u,v,x,p);case 3:e:{if(jD(u),l===null)throw Error(o(387));v=u.pendingProps,R=u.memoizedState,x=R.element,nD(l,u),Jf(u,v,null,p);var T=u.memoizedState;if(v=T.element,R.isDehydrated)if(R={element:v,isDehydrated:!1,cache:T.cache,pendingSuspenseBoundaries:T.pendingSuspenseBoundaries,transitions:T.transitions},u.updateQueue.baseState=R,u.memoizedState=R,u.flags&256){x=Wl(Error(o(423)),u),u=WD(l,u,v,p,x);break e}else if(v!==x){x=Wl(Error(o(424)),u),u=WD(l,u,v,p,x);break e}else for(ir=Zi(u.stateNode.containerInfo.firstChild),nr=u,Tt=!0,Qr=null,p=oD(u,null,v,p),u.child=p;p;)p.flags=p.flags&-3|4096,p=p.sibling;else{if(zl(),v===x){u=pi(l,u,p);break e}Eo(l,u,v,p)}u=u.child}return u;case 5:return aD(u),l===null&&Ew(u),v=u.type,x=u.pendingProps,R=l!==null?l.memoizedProps:null,T=x.children,bw(v,x)?T=null:R!==null&&bw(v,R)&&(u.flags|=32),VD(l,u),Eo(l,u,T,p),u.child;case 6:return l===null&&Ew(u),null;case 13:return qD(l,u,p);case 4:return Bw(u,u.stateNode.containerInfo),v=u.pendingProps,l===null?u.child=Hl(u,null,v,p):Eo(l,u,v,p),u.child;case 11:return v=u.type,x=u.pendingProps,x=u.elementType===v?x:Jr(v,x),ND(l,u,v,x,p);case 7:return Eo(l,u,u.pendingProps,p),u.child;case 8:return Eo(l,u,u.pendingProps.children,p),u.child;case 12:return Eo(l,u,u.pendingProps.children,p),u.child;case 10:e:{if(v=u.type._context,x=u.pendingProps,R=u.memoizedProps,T=x.value,xt(Zf,v._currentValue),v._currentValue=T,R!==null)if(Yr(R.value,T)){if(R.children===x.children&&!No.current){u=pi(l,u,p);break e}}else for(R=u.child,R!==null&&(R.return=u);R!==null;){var N=R.dependencies;if(N!==null){T=R.child;for(var G=N.firstContext;G!==null;){if(G.context===v){if(R.tag===1){G=fi(-1,p&-p),G.tag=2;var oe=R.updateQueue;if(oe!==null){oe=oe.shared;var le=oe.pending;le===null?G.next=G:(G.next=le.next,le.next=G),oe.pending=G}}R.lanes|=p,G=R.alternate,G!==null&&(G.lanes|=p),Mw(R.return,p,u),N.lanes|=p;break}G=G.next}}else if(R.tag===10)T=R.type===u.type?null:R.child;else if(R.tag===18){if(T=R.return,T===null)throw Error(o(341));T.lanes|=p,N=T.alternate,N!==null&&(N.lanes|=p),Mw(T,p,u),T=R.sibling}else T=R.child;if(T!==null)T.return=R;else for(T=R;T!==null;){if(T===u){T=null;break}if(R=T.sibling,R!==null){R.return=T.return,T=R;break}T=T.return}R=T}Eo(l,u,x.children,p),u=u.child}return u;case 9:return x=u.type,v=u.pendingProps.children,Gl(u,p),x=Pr(x),v=v(x),u.flags|=1,Eo(l,u,v,p),u.child;case 14:return v=u.type,x=Jr(v,u.pendingProps),x=Jr(v.type,x),LD(l,u,v,x,p);case 15:return zD(l,u,u.type,u.pendingProps,p);case 17:return v=u.type,x=u.pendingProps,x=u.elementType===v?x:Jr(v,x),lp(l,u),u.tag=1,Lo(v)?(l=!0,Wf(u)):l=!1,Gl(u,p),DD(u,v,x),Kw(u,v,x,p),Qw(null,u,v,!0,l,p);case 19:return $D(l,u,p);case 22:return HD(l,u,p)}throw Error(o(156,u.tag))};function vT(l,u){return Z_(l,u)}function yte(l,u,p,v){this.tag=l,this.key=p,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=u,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=v,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Mr(l,u,p,v){return new yte(l,u,p,v)}function bC(l){return l=l.prototype,!(!l||!l.isReactComponent)}function Ste(l){if(typeof l=="function")return bC(l)?1:0;if(l!=null){if(l=l.$$typeof,l===W)return 11;if(l===U)return 14}return 2}function as(l,u){var p=l.alternate;return p===null?(p=Mr(l.tag,u,l.key,l.mode),p.elementType=l.elementType,p.type=l.type,p.stateNode=l.stateNode,p.alternate=l,l.alternate=p):(p.pendingProps=u,p.type=l.type,p.flags=0,p.subtreeFlags=0,p.deletions=null),p.flags=l.flags&14680064,p.childLanes=l.childLanes,p.lanes=l.lanes,p.child=l.child,p.memoizedProps=l.memoizedProps,p.memoizedState=l.memoizedState,p.updateQueue=l.updateQueue,u=l.dependencies,p.dependencies=u===null?null:{lanes:u.lanes,firstContext:u.firstContext},p.sibling=l.sibling,p.index=l.index,p.ref=l.ref,p}function wp(l,u,p,v,x,R){var T=2;if(v=l,typeof l=="function")bC(l)&&(T=1);else if(typeof l=="string")T=5;else e:switch(l){case D:return ha(p.children,x,R,u);case M:T=8,x|=8;break;case A:return l=Mr(12,p,u,x|2),l.elementType=A,l.lanes=R,l;case L:return l=Mr(13,p,u,x),l.elementType=L,l.lanes=R,l;case V:return l=Mr(19,p,u,x),l.elementType=V,l.lanes=R,l;case Y:return Cp(p,x,R,u);default:if(typeof l=="object"&&l!==null)switch(l.$$typeof){case O:T=10;break e;case K:T=9;break e;case W:T=11;break e;case U:T=14;break e;case $:T=16,v=null;break e}throw Error(o(130,l==null?l:typeof l,""))}return u=Mr(T,p,u,x),u.elementType=l,u.type=v,u.lanes=R,u}function ha(l,u,p,v){return l=Mr(7,l,v,u),l.lanes=p,l}function Cp(l,u,p,v){return l=Mr(22,l,v,u),l.elementType=Y,l.lanes=p,l.stateNode={isHidden:!1},l}function wC(l,u,p){return l=Mr(6,l,null,u),l.lanes=p,l}function CC(l,u,p){return u=Mr(4,l.children!==null?l.children:[],l.key,u),u.lanes=p,u.stateNode={containerInfo:l.containerInfo,pendingChildren:null,implementation:l.implementation},u}function xte(l,u,p,v,x){this.tag=u,this.containerInfo=l,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=$b(0),this.expirationTimes=$b(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=$b(0),this.identifierPrefix=v,this.onRecoverableError=x,this.mutableSourceEagerHydrationData=null}function yC(l,u,p,v,x,R,T,N,G){return l=new xte(l,u,p,N,G),u===1?(u=1,R===!0&&(u|=8)):u=0,R=Mr(3,null,null,u),l.current=R,R.stateNode=l,R.memoizedState={element:v,isDehydrated:p,cache:null,transitions:null,pendingSuspenseBoundaries:null},Iw(R),l}function kte(l,u,p){var v=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:P,key:v==null?null:""+v,children:l,containerInfo:u,implementation:p}}function bT(l){if(!l)return Qi;l=l._reactInternals;e:{if(ea(l)!==l||l.tag!==1)throw Error(o(170));var u=l;do{switch(u.tag){case 3:u=u.stateNode.context;break e;case 1:if(Lo(u.type)){u=u.stateNode.__reactInternalMemoizedMergedChildContext;break e}}u=u.return}while(u!==null);throw Error(o(171))}if(l.tag===1){var p=l.type;if(Lo(p))return UP(l,p,u)}return u}function wT(l,u,p,v,x,R,T,N,G){return l=yC(p,v,!0,l,x,R,T,N,G),l.context=bT(null),p=l.current,v=_o(),x=is(p),R=fi(v,x),R.callback=u??null,ts(p,R,x),l.current.lanes=x,uu(l,x,v),Vo(l,v),l}function yp(l,u,p,v){var x=u.current,R=_o(),T=is(x);return p=bT(p),u.context===null?u.context=p:u.pendingContext=p,u=fi(R,T),u.payload={element:l},v=v===void 0?null:v,v!==null&&(u.callback=v),l=ts(x,u,T),l!==null&&(on(l,x,T,R),Qf(l,x,T)),T}function Sp(l){return l=l.current,l.child?(l.child.tag===5,l.child.stateNode):null}function CT(l,u){if(l=l.memoizedState,l!==null&&l.dehydrated!==null){var p=l.retryLane;l.retryLane=p!==0&&p<u?p:u}}function SC(l,u){CT(l,u),(l=l.alternate)&&CT(l,u)}function Fte(){return null}var yT=typeof reportError=="function"?reportError:function(l){console.error(l)};function xC(l){this._internalRoot=l}xp.prototype.render=xC.prototype.render=function(l){var u=this._internalRoot;if(u===null)throw Error(o(409));yp(l,u,null,null)},xp.prototype.unmount=xC.prototype.unmount=function(){var l=this._internalRoot;if(l!==null){this._internalRoot=null;var u=l.containerInfo;ca(function(){yp(null,l,null,null)}),u[li]=null}};function xp(l){this._internalRoot=l}xp.prototype.unstable_scheduleHydration=function(l){if(l){var u=nP();l={blockedOn:null,target:l,priority:u};for(var p=0;p<$i.length&&u!==0&&u<$i[p].priority;p++);$i.splice(p,0,l),p===0&&aP(l)}};function kC(l){return!(!l||l.nodeType!==1&&l.nodeType!==9&&l.nodeType!==11)}function kp(l){return!(!l||l.nodeType!==1&&l.nodeType!==9&&l.nodeType!==11&&(l.nodeType!==8||l.nodeValue!==" react-mount-point-unstable "))}function ST(){}function Rte(l,u,p,v,x){if(x){if(typeof v=="function"){var R=v;v=function(){var oe=Sp(T);R.call(oe)}}var T=wT(u,v,l,0,null,!1,!1,"",ST);return l._reactRootContainer=T,l[li]=T.current,ku(l.nodeType===8?l.parentNode:l),ca(),T}for(;x=l.lastChild;)l.removeChild(x);if(typeof v=="function"){var N=v;v=function(){var oe=Sp(G);N.call(oe)}}var G=yC(l,0,!1,null,null,!1,!1,"",ST);return l._reactRootContainer=G,l[li]=G.current,ku(l.nodeType===8?l.parentNode:l),ca(function(){yp(u,G,p,v)}),G}function Fp(l,u,p,v,x){var R=p._reactRootContainer;if(R){var T=R;if(typeof x=="function"){var N=x;x=function(){var G=Sp(T);N.call(G)}}yp(u,T,l,x)}else T=Rte(p,u,l,x,v);return Sp(T)}oP=function(l){switch(l.tag){case 3:var u=l.stateNode;if(u.current.memoizedState.isDehydrated){var p=cu(u.pendingLanes);p!==0&&(Kb(u,p|1),Vo(u,jt()),(Je&6)===0&&($l=jt()+500,Ji()))}break;case 13:ca(function(){var v=hi(l,1);if(v!==null){var x=_o();on(v,l,1,x)}}),SC(l,1)}},Xb=function(l){if(l.tag===13){var u=hi(l,134217728);if(u!==null){var p=_o();on(u,l,134217728,p)}SC(l,134217728)}},rP=function(l){if(l.tag===13){var u=is(l),p=hi(l,u);if(p!==null){var v=_o();on(p,l,u,v)}SC(l,u)}},nP=function(){return ht},iP=function(l,u){var p=ht;try{return ht=l,u()}finally{ht=p}},tr=function(l,u,p){switch(u){case"input":if(Ne(l,p),u=p.name,p.type==="radio"&&u!=null){for(p=l;p.parentNode;)p=p.parentNode;for(p=p.querySelectorAll("input[name="+JSON.stringify(""+u)+'][type="radio"]'),u=0;u<p.length;u++){var v=p[u];if(v!==l&&v.form===l.form){var x=Gf(v);if(!x)throw Error(o(90));Ht(v),Ne(v,x)}}}break;case"textarea":co(l,p);break;case"select":u=p.value,u!=null&&Pe(l,!!p.multiple,u,!1)}},Vi=gC,wo=ca;var Ete={usingClientEntryPoint:!1,Events:[Eu,Il,Gf,or,$r,gC]},Vu={findFiberByHostInstance:ta,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},_te={bundleType:Vu.bundleType,version:Vu.version,rendererPackageName:Vu.rendererPackageName,rendererConfig:Vu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:E.ReactCurrentDispatcher,findHostInstanceByFiber:function(l){return l=K_(l),l===null?null:l.stateNode},findFiberByHostInstance:Vu.findFiberByHostInstance||Fte,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Rp=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Rp.isDisabled&&Rp.supportsFiber)try{xf=Rp.inject(_te),Tn=Rp}catch{}}return Po.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Ete,Po.createPortal=function(l,u){var p=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!kC(u))throw Error(o(200));return kte(l,u,null,p)},Po.createRoot=function(l,u){if(!kC(l))throw Error(o(299));var p=!1,v="",x=yT;return u!=null&&(u.unstable_strictMode===!0&&(p=!0),u.identifierPrefix!==void 0&&(v=u.identifierPrefix),u.onRecoverableError!==void 0&&(x=u.onRecoverableError)),u=yC(l,1,!1,null,null,p,!1,v,x),l[li]=u.current,ku(l.nodeType===8?l.parentNode:l),new xC(u)},Po.findDOMNode=function(l){if(l==null)return null;if(l.nodeType===1)return l;var u=l._reactInternals;if(u===void 0)throw typeof l.render=="function"?Error(o(188)):(l=Object.keys(l).join(","),Error(o(268,l)));return l=K_(u),l=l===null?null:l.stateNode,l},Po.flushSync=function(l){return ca(l)},Po.hydrate=function(l,u,p){if(!kp(u))throw Error(o(200));return Fp(null,l,u,!0,p)},Po.hydrateRoot=function(l,u,p){if(!kC(l))throw Error(o(405));var v=p!=null&&p.hydratedSources||null,x=!1,R="",T=yT;if(p!=null&&(p.unstable_strictMode===!0&&(x=!0),p.identifierPrefix!==void 0&&(R=p.identifierPrefix),p.onRecoverableError!==void 0&&(T=p.onRecoverableError)),u=wT(u,null,l,1,p??null,x,!1,R,T),l[li]=u.current,ku(l),v)for(l=0;l<v.length;l++)p=v[l],x=p._getVersion,x=x(p._source),u.mutableSourceEagerHydrationData==null?u.mutableSourceEagerHydrationData=[p,x]:u.mutableSourceEagerHydrationData.push(p,x);return new xp(u)},Po.render=function(l,u,p){if(!kp(u))throw Error(o(200));return Fp(null,l,u,!1,p)},Po.unmountComponentAtNode=function(l){if(!kp(l))throw Error(o(40));return l._reactRootContainer?(ca(function(){Fp(null,null,l,!1,function(){l._reactRootContainer=null,l[li]=null})}),!0):!1},Po.unstable_batchedUpdates=gC,Po.unstable_renderSubtreeIntoContainer=function(l,u,p,v){if(!kp(p))throw Error(o(200));if(l==null||l._reactInternals===void 0)throw Error(o(38));return Fp(l,u,p,!1,v)},Po.version="18.3.1-next-f1338f8080-20240426",Po}var BC;function OC(){if(BC)return Pp.exports;BC=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Pp.exports=MT(),Pp.exports}var NC;function AT(){if(NC)return Wu;NC=1;var e=OC();return Wu.createRoot=e.createRoot,Wu.hydrateRoot=e.hydrateRoot,Wu}var IT=AT();function BT(){const[e,t]=S.useState(null),[o,r]=S.useState(!0),n=S.useCallback(async()=>{try{const i=await window.toolboxAPI.connections.getActiveConnection();t(i)}catch(i){console.error("Error refreshing connection:",i)}finally{r(!1)}},[]);return S.useEffect(()=>{n()},[n]),{connection:e,isLoading:o,refreshConnection:n}}function OT(e){S.useEffect(()=>{const t=(o,r)=>{e(r.event,r.data)};return window.toolboxAPI.events.on(t),()=>{}},[e])}function NT(){const[e,t]=S.useState([]),o=S.useCallback((n,i="info")=>{console.log(`[${i.toUpperCase()}] ${n}`),t(s=>[{timestamp:new Date,message:n,type:i},...s.slice(0,49)])},[]),r=S.useCallback(()=>{t([])},[]);return{logs:e,addLog:o,clearLogs:r}}const Mp=typeof window>"u"?global:window,Ap="@griffel/";function LT(e,t){return Mp[Symbol.for(Ap+e)]||(Mp[Symbol.for(Ap+e)]=t),Mp[Symbol.for(Ap+e)]}const Ip=LT("DEFINITION_LOOKUP_TABLE",{}),Ql="data-make-styles-bucket",zT="data-priority",Bp=7,Op="___",HT=Op.length+Bp,VT=0,GT=1;function jT(e){for(var t=0,o,r=0,n=e.length;n>=4;++r,n-=4)o=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,o=(o&65535)*1540483477+((o>>>16)*59797<<16),o^=o>>>24,t=(o&65535)*1540483477+((o>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(n){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}function WT(e){const t=e.length;if(t===Bp)return e;for(let o=t;o<Bp;o++)e+="0";return e}function LC(e,t,o=[]){return Op+WT(jT(e+t))}function zC(e,t){let o="",r="";for(const n in e){const i=e[n];if(i===0){r+=n+" ";continue}const s=Array.isArray(i),a=t==="rtl"?(s?i[1]:i)+" ":(s?i[0]:i)+" ";o+=a,r+=a}return[o.slice(0,-1),r.slice(0,-1)]}function HC(e,t){const o={};for(const r in e){const[n,i]=zC(e[r],t);if(i===""){o[r]="";continue}const s=LC(i,t),a=s+(n===""?"":" "+n);Ip[s]=[e[r],t],o[r]=a}return o}const VC={};function de(){let e=null,t="",o="";const r=new Array(arguments.length);for(let f=0;f<arguments.length;f++){const g=arguments[f];if(typeof g=="string"&&g!==""){const m=g.indexOf(Op);if(m===-1)t+=g+" ";else{const b=g.substr(m,HT);m>0&&(t+=g.slice(0,m)),o+=b,r[f]=b}}}if(o==="")return t.slice(0,-1);const n=VC[o];if(n!==void 0)return t+n;const i=[];for(let f=0;f<arguments.length;f++){const g=r[f];if(g){const m=Ip[g];m&&(i.push(m[VT]),e=m[GT])}}const s=Object.assign.apply(Object,[{}].concat(i)),[a,c]=zC(s,e),d=LC(c,e,r),h=d+" "+a;return VC[o]=h,Ip[d]=[s,e],t+h}function qT(e){return Array.isArray(e)?e:[e]}function UT(e,t,o,r){const n=[];if(r[Ql]=t,r[zT]=String(o),e)for(const s in r)e.setAttribute(s,r[s]);function i(s){return e?.sheet?e.sheet.insertRule(s,e.sheet.cssRules.length):n.push(s)}return{elementAttributes:r,insertRule:i,element:e,bucketName:t,cssRules(){return e?.sheet?Array.from(e.sheet.cssRules).map(s=>s.cssText):n}}}const GC=["r","d","l","v","w","f","i","h","a","s","k","t","m","c"].reduce((e,t,o)=>(e[t]=o,e),{});function $T(e,t,o){return(e==="m"?e+t:e)+o}function KT(e,t,o,r,n={}){var i,s;const a=e==="m",c=(i=n.m)!==null&&i!==void 0?i:"0",d=(s=n.p)!==null&&s!==void 0?s:0,h=$T(e,c,d);if(!r.stylesheets[h]){const f=t&&t.createElement("style"),g=UT(f,e,d,Object.assign({},r.styleElementAttributes,a&&{media:c}));r.stylesheets[h]=g,t?.head&&f&&t.head.insertBefore(f,ZT(t,o,e,r,n))}return r.stylesheets[h]}function XT(e,t,o){var r,n;const i=t+((r=o.m)!==null&&r!==void 0?r:""),s=e.getAttribute(Ql)+((n=e.media)!==null&&n!==void 0?n:"");return i===s}function ZT(e,t,o,r,n={}){var i,s;const a=GC[o],c=(i=n.m)!==null&&i!==void 0?i:"",d=(s=n.p)!==null&&s!==void 0?s:0;let h=w=>a-GC[w.getAttribute(Ql)],f=e.head.querySelectorAll(`[${Ql}]`);if(o==="m"){const w=e.head.querySelectorAll(`[${Ql}="${o}"]`);w.length&&(f=w,h=y=>r.compareMediaQueries(c,y.media))}const g=w=>XT(w,o,n)?d-Number(w.getAttribute("data-priority")):h(w),m=f.length;let b=m-1;for(;b>=0;){const w=f.item(b);if(g(w)>0)return w.nextSibling;b--}return m>0?f.item(0):t?t.nextSibling:null}function jC(e,t){try{e.insertRule(t)}catch{}}let YT=0;const QT=(e,t)=>e<t?-1:e>t?1:0;function JT(e=typeof document>"u"?void 0:document,t={}){const{classNameHashSalt:o,unstable_filterCSSRule:r,insertionPoint:n,styleElementAttributes:i,compareMediaQueries:s=QT}=t,a={classNameHashSalt:o,insertionCache:{},stylesheets:{},styleElementAttributes:Object.freeze(i),compareMediaQueries:s,id:`d${YT++}`,insertCSSRules(c){for(const d in c){const h=c[d];for(let f=0,g=h.length;f<g;f++){const[m,b]=qT(h[f]),w=KT(d,e,n||null,a,b);a.insertionCache[m]||(a.insertionCache[m]=d,r?r(m)&&jC(w,m):jC(w,m))}}}};return a}const WC=()=>{const e={};return function(o,r){e[o.id]===void 0&&(o.insertCSSRules(r),e[o.id]=!0)}};function qC(e,t,o=WC){const r=o();let n=null,i=null;function s(a){const{dir:c,renderer:d}=a,h=c==="ltr";return h?n===null&&(n=HC(e,c)):i===null&&(i=HC(e,c)),r(d,t),h?n:i}return s}function eM(e,t,o,r=WC){const n=r();function i(s){const{dir:a,renderer:c}=s,d=a==="ltr"?e:t||e;return n(c,Array.isArray(o)?{r:o}:o),d}return i}function tM(){return typeof window<"u"&&!!(window.document&&window.document.createElement)}const UC=ju.useInsertionEffect?ju.useInsertionEffect:void 0,$C=()=>{const e={};return function(o,r){if(UC&&tM()){UC(()=>{o.insertCSSRules(r)},[o,r]);return}e[o.id]===void 0&&(o.insertCSSRules(r),e[o.id]=!0)}},oM=S.createContext(JT());function qu(){return S.useContext(oM)}const KC=S.createContext("ltr"),rM=({children:e,dir:t})=>S.createElement(KC.Provider,{value:t},e);function XC(){return S.useContext(KC)}function Se(e,t){const o=qC(e,t,$C);return function(){const n=XC(),i=qu();return o({dir:n,renderer:i})}}function je(e,t,o){const r=eM(e,t,o,$C);return function(){const i=XC(),s=qu();return r({dir:i,renderer:s})}}function nM(e,t){if(t){const o=Object.keys(t).reduce((r,n)=>`${r}--${n}: ${t[n]}; `,"");return`${e} { ${o} }`}return`${e} {}`}const Uu=Symbol.for("fui.slotRenderFunction"),fa=Symbol.for("fui.slotElementType"),ZC=Symbol.for("fui.slotClassNameProp");function Le(e,t){const{defaultProps:o,elementType:r}=t,n=Np(e),i={...o,...n,[fa]:r,[ZC]:n?.className||o?.className};return n&&typeof n.children=="function"&&(i[Uu]=n.children,i.children=o?.children),i}function et(e,t){if(!(e===null||e===void 0&&!t.renderByDefault))return Le(e,t)}function Np(e){return typeof e=="string"||typeof e=="number"||iM(e)||S.isValidElement(e)?{children:e}:e}const iM=e=>typeof e=="object"&&e!==null&&Symbol.iterator in e;function Lp(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)&&!S.isValidElement(e)}function YC(e){return!!e?.hasOwnProperty(fa)}const bt=(...e)=>{const t={};for(const o of e){const r=Array.isArray(o)?o:Object.keys(o);for(const n of r)t[n]=1}return t},sM=bt(["onAuxClick","onAnimationEnd","onAnimationStart","onCopy","onCut","onPaste","onCompositionEnd","onCompositionStart","onCompositionUpdate","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onInput","onSubmit","onLoad","onError","onKeyDown","onKeyDownCapture","onKeyPress","onKeyUp","onAbort","onCanPlay","onCanPlayThrough","onDurationChange","onEmptied","onEncrypted","onEnded","onLoadedData","onLoadedMetadata","onLoadStart","onPause","onPlay","onPlaying","onProgress","onRateChange","onSeeked","onSeeking","onStalled","onSuspend","onTimeUpdate","onVolumeChange","onWaiting","onClick","onClickCapture","onContextMenu","onDoubleClick","onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onMouseUpCapture","onSelect","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onScroll","onWheel","onPointerCancel","onPointerDown","onPointerEnter","onPointerLeave","onPointerMove","onPointerOut","onPointerOver","onPointerUp","onGotPointerCapture","onLostPointerCapture"]),aM=bt(["accessKey","children","className","contentEditable","dir","draggable","hidden","htmlFor","id","lang","popover","ref","role","style","tabIndex","title","translate","spellCheck","name"]),lM=bt(["itemID","itemProp","itemRef","itemScope","itemType"]),qt=bt(aM,sM,lM),cM=bt(qt,["form"]),QC=bt(qt,["height","loop","muted","preload","src","width"]),uM=bt(QC,["poster"]),dM=bt(qt,["start"]),hM=bt(qt,["value"]),fM=bt(qt,["download","href","hrefLang","media","referrerPolicy","rel","target","type"]),pM=bt(qt,["dateTime"]),$u=bt(qt,["autoFocus","disabled","form","formAction","formEncType","formMethod","formNoValidate","formTarget","popoverTarget","popoverTargetAction","type","value"]),gM=bt($u,["accept","alt","autoCorrect","autoCapitalize","autoComplete","checked","dirname","form","height","inputMode","list","max","maxLength","min","minLength","multiple","pattern","placeholder","readOnly","required","src","step","size","type","value","width"]),mM=bt($u,["autoCapitalize","cols","dirname","form","maxLength","placeholder","readOnly","required","rows","wrap"]),vM=bt($u,["form","multiple","required"]),bM=bt(qt,["selected","value"]),wM=bt(qt,["cellPadding","cellSpacing"]),CM=qt,yM=bt(qt,["colSpan","rowSpan","scope"]),SM=bt(qt,["colSpan","headers","rowSpan","scope"]),xM=bt(qt,["span"]),kM=bt(qt,["span"]),FM=bt(qt,["disabled","form"]),RM=bt(qt,["acceptCharset","action","encType","encType","method","noValidate","target"]),EM=bt(qt,["allow","allowFullScreen","allowPaymentRequest","allowTransparency","csp","height","importance","referrerPolicy","sandbox","src","srcDoc","width"]),_M=bt(qt,["alt","crossOrigin","height","src","srcSet","useMap","width"]),PM=bt(qt,["open","onCancel","onClose"]);function DM(e,t,o){const r=Array.isArray(t),n={},i=Object.keys(e);for(const s of i)(!r&&t[s]||r&&t.indexOf(s)>=0||s.indexOf("data-")===0||s.indexOf("aria-")===0)&&(!o||o?.indexOf(s)===-1)&&(n[s]=e[s]);return n}const TM={label:cM,audio:QC,video:uM,ol:dM,li:hM,a:fM,button:$u,input:gM,textarea:mM,select:vM,option:bM,table:wM,tr:CM,th:yM,td:SM,colGroup:xM,col:kM,fieldset:FM,form:RM,iframe:EM,img:_M,time:pM,dialog:PM};function JC(e,t,o){const r=e&&TM[e]||qt;return r.as=1,DM(t,r,o)}const pa=({primarySlotTagName:e,props:t,excludedPropNames:o})=>({root:{style:t.style,className:t.className},primary:JC(e,t,[...o||[],"style","className"])}),wt=(e,t,o)=>{var r;return JC((r=t.as)!==null&&r!==void 0?r:e,t,o)};function e0(e,t){const o=S.useRef(void 0),r=S.useCallback((i,s)=>(o.current!==void 0&&t(o.current),o.current=e(i,s),o.current),[t,e]),n=S.useCallback(()=>{o.current!==void 0&&(t(o.current),o.current=void 0)},[t]);return S.useEffect(()=>n,[n]),[r,n]}const t0=S.createContext(void 0),MM=t0.Provider,o0=S.createContext(void 0),AM="",IM=o0.Provider;function BM(){var e;return(e=S.useContext(o0))!==null&&e!==void 0?e:AM}const r0=S.createContext(void 0),OM={},NM=r0.Provider;function LM(){var e;return(e=S.useContext(r0))!==null&&e!==void 0?e:OM}const n0=S.createContext(void 0),zM={targetDocument:typeof document=="object"?document:void 0,dir:"ltr"},HM=n0.Provider;function lt(){var e;return(e=S.useContext(n0))!==null&&e!==void 0?e:zM}const i0=S.createContext(void 0),VM=i0.Provider;function zp(){var e;return(e=S.useContext(i0))!==null&&e!==void 0?e:{}}const Hp=S.createContext(void 0),GM=()=>{},jM=Hp.Provider,qe=e=>{var t,o;return(o=(t=S.useContext(Hp))===null||t===void 0?void 0:t[e])!==null&&o!==void 0?o:GM},s0=S.createContext(void 0);s0.Provider;function WM(){return S.useContext(s0)}const qM=e=>(e(0),0),UM=e=>e;function Vp(){const{targetDocument:e}=lt(),t=e?.defaultView,o=t?t.requestAnimationFrame:qM,r=t?t.cancelAnimationFrame:UM;return e0(o,r)}function $M(e){return typeof e=="function"}const io=e=>{"use no memo";const[t,o]=S.useState(()=>e.defaultState===void 0?e.initialState:KM(e.defaultState)?e.defaultState():e.defaultState),r=S.useRef(e.state);S.useEffect(()=>{r.current=e.state},[e.state]);const n=S.useCallback(i=>{$M(i)&&i(r.current)},[]);return XM(e.state)?[e.state,n]:[t,o]};function KM(e){return typeof e=="function"}const XM=e=>{"use no memo";const[t]=S.useState(()=>e!==void 0);return t};function Ku(){return typeof window<"u"&&!!(window.document&&window.document.createElement)}const a0={current:0},ZM=S.createContext(void 0);function l0(){var e;return(e=S.useContext(ZM))!==null&&e!==void 0?e:a0}function YM(){const e=l0()!==a0,[t,o]=S.useState(e);return Ku()&&e&&S.useLayoutEffect(()=>{o(!1)},[]),t}const Zt=Ku()?S.useLayoutEffect:S.useEffect,pe=e=>{const t=S.useRef(()=>{throw new Error("Cannot call an event handler while rendering")});return Zt(()=>{t.current=e},[e]),S.useCallback((...o)=>{const r=t.current;return r(...o)},[t])};function Gp(){const e=S.useRef(!0);return S.useEffect(()=>{e.current&&(e.current=!1)},[]),e.current}function QM(){return S.useReducer(e=>e+1,0)[1]}const c0=S.createContext(void 0);c0.Provider;function JM(){return S.useContext(c0)||""}function Go(e="fui-",t){"use no memo";const o=l0(),r=JM(),n=ju.useId;if(n){const i=n(),s=S.useMemo(()=>i.replace(/:/g,""),[i]);return t||`${r}${e}${s}`}return S.useMemo(()=>t||`${r}${e}${++o.current}`,[r,e,t,o])}function tt(...e){"use no memo";const t=S.useCallback(o=>{t.current=o;for(const r of e)typeof r=="function"?r(o):r&&(r.current=o)},[...e]);return t}const u0=(e,t)=>!!e?.contains(t),Xu=e=>{const{targetDocument:t}=lt(),o=t?.defaultView,{refs:r,callback:n,element:i,disabled:s,disabledFocusOnIframe:a,contains:c=u0}=e,d=S.useRef(void 0);t2({element:i,disabled:a||s,callback:n,refs:r,contains:c});const h=S.useRef(!1),f=pe(m=>{if(h.current){h.current=!1;return}const b=m.composedPath()[0];r.every(y=>!c(y.current||null,b))&&!s&&n(m)}),g=pe(m=>{h.current=r.some(b=>c(b.current||null,m.target))});S.useEffect(()=>{if(s)return;let m=e2(o);const b=w=>{if(w===m){m=void 0;return}f(w)};return i?.addEventListener("click",b,!0),i?.addEventListener("touchstart",b,!0),i?.addEventListener("contextmenu",b,!0),i?.addEventListener("mousedown",g,!0),d.current=o?.setTimeout(()=>{m=void 0},1),()=>{i?.removeEventListener("click",b,!0),i?.removeEventListener("touchstart",b,!0),i?.removeEventListener("contextmenu",b,!0),i?.removeEventListener("mousedown",g,!0),o?.clearTimeout(d.current),m=void 0}},[f,i,s,g,o])},e2=e=>{if(e){var t,o;if(typeof e.window=="object"&&e.window===e)return e.event;var r;return(r=(o=e.ownerDocument)===null||o===void 0||(t=o.defaultView)===null||t===void 0?void 0:t.event)!==null&&r!==void 0?r:void 0}},jp="fuiframefocus",t2=e=>{const{disabled:t,element:o,callback:r,contains:n=u0,pollDuration:i=100,refs:s}=e,a=S.useRef(void 0),c=pe(d=>{s.every(f=>!n(f.current||null,d.target))&&!t&&r(d)});S.useEffect(()=>{if(!t)return o?.addEventListener(jp,c,!0),()=>{o?.removeEventListener(jp,c,!0)}},[o,t,c]),S.useEffect(()=>{var d;if(!t)return a.current=o==null||(d=o.defaultView)===null||d===void 0?void 0:d.setInterval(()=>{const h=o?.activeElement;if(h?.tagName==="IFRAME"||h?.tagName==="WEBVIEW"){const f=new CustomEvent(jp,{bubbles:!0});h.dispatchEvent(f)}},i),()=>{var h;o==null||(h=o.defaultView)===null||h===void 0||h.clearInterval(a.current)}},[o,t,i])},d0=e=>{const{refs:t,callback:o,element:r,disabled:n,contains:i}=e,s=pe(a=>{const c=i||((f,g)=>!!f?.contains(g)),d=a.composedPath()[0];t.every(f=>!c(f.current||null,d))&&!n&&o(a)});S.useEffect(()=>{if(!n)return r?.addEventListener("wheel",s),r?.addEventListener("touchmove",s),()=>{r?.removeEventListener("wheel",s),r?.removeEventListener("touchmove",s)}},[s,r,n])},o2=e=>-1,r2=e=>{};function ga(){const{targetDocument:e}=lt(),t=e?.defaultView,o=t?t.setTimeout:o2,r=t?t.clearTimeout:r2;return e0(o,r)}const n2=parseInt(S.version,10)>=19;function Jl(e){if(e)return n2?e.props.ref:e.ref}function We(e,t){return(...o)=>{e?.(...o),t?.(...o)}}function vi(e,t){var o;const r=e;var n;return!!(!(r==null||(o=r.ownerDocument)===null||o===void 0)&&o.defaultView&&r instanceof r.ownerDocument.defaultView[(n=void 0)!==null&&n!==void 0?n:"HTMLElement"])}function h0(e){return!!e.type.isFluentTriggerComponent}function Zu(e,t){return typeof e=="function"?e(t):e?f0(e,t):e||null}function f0(e,t){if(!S.isValidElement(e)||e.type===S.Fragment)throw new Error("A trigger element must be a single element for this component. Please ensure that you're not using React Fragments.");if(h0(e)){const o=f0(e.props.children,t);return S.cloneElement(e,void 0,o)}else return S.cloneElement(e,t)}function ec(e){return S.isValidElement(e)?h0(e)?ec(e.props.children):e:null}function p0(e){return e instanceof Set?e:new Set(e)}function g0(e){const[t,o]=io({initialState:new Set,defaultState:S.useMemo(()=>e.defaultSelectedItems&&p0(e.defaultSelectedItems),[e.defaultSelectedItems]),state:S.useMemo(()=>e.selectedItems&&p0(e.selectedItems),[e.selectedItems])});return[t,(n,i)=>{var s;(s=e.onSelectionChange)===null||s===void 0||s.call(e,n,{selectedItems:i}),o(i)}]}function i2(e){const[t,o]=g0(e);return[t,{deselectItem:n=>o(n,new Set),selectItem:(n,i)=>o(n,new Set([i])),toggleAllItems:()=>{},toggleItem:(n,i)=>o(n,new Set([i])),clearItems:n=>o(n,new Set),isSelected:n=>{var i;return(i=t.has(n))!==null&&i!==void 0?i:!1}}]}function s2(e){const[t,o]=g0(e);return[t,{toggleItem:(n,i)=>{const s=new Set(t);t.has(i)?s.delete(i):s.add(i),o(n,s)},selectItem:(n,i)=>{const s=new Set(t);s.add(i),o(n,s)},deselectItem:(n,i)=>{const s=new Set(t);s.delete(i),o(n,s)},clearItems:n=>{o(n,new Set)},isSelected:n=>t.has(n),toggleAllItems:(n,i)=>{const s=i.every(c=>t.has(c)),a=new Set(t);s?a.clear():i.forEach(c=>a.add(c)),o(n,a)}}]}function a2(e){"use no memo";return e.selectionMode==="multiselect"?s2(e):i2(e)}function l2(e){return e&&!!e._virtual}function c2(e){return l2(e)&&e._virtual.parent||null}function m0(e,t={}){if(!e)return null;if(!t.skipVirtual){const r=c2(e);if(r)return r}const o=e.parentNode;return o&&o.nodeType===11?o.host:o}function ma(e,t){if(!e||!t)return!1;if(e===t)return!0;{const o=new WeakSet;for(;t;){const r=m0(t,{skipVirtual:o.has(t)});if(o.add(t),r===e)return!0;t=r}}return!1}function v0(e,t){e&&Object.assign(e,{_virtual:{parent:t}})}function u2(e,t){return{...t,[fa]:e}}var Wp={exports:{}},ft={};var b0;function d2(){if(b0)return ft;b0=1;var e=60103,t=60106,o=60107,r=60108,n=60114,i=60109,s=60110,a=60112,c=60113,d=60120,h=60115,f=60116,g=60121,m=60122,b=60117,w=60129,y=60131;if(typeof Symbol=="function"&&Symbol.for){var k=Symbol.for;e=k("react.element"),t=k("react.portal"),o=k("react.fragment"),r=k("react.strict_mode"),n=k("react.profiler"),i=k("react.provider"),s=k("react.context"),a=k("react.forward_ref"),c=k("react.suspense"),d=k("react.suspense_list"),h=k("react.memo"),f=k("react.lazy"),g=k("react.block"),m=k("react.server.block"),b=k("react.fundamental"),w=k("react.debug_trace_mode"),y=k("react.legacy_hidden")}function C(L){if(typeof L=="object"&&L!==null){var V=L.$$typeof;switch(V){case e:switch(L=L.type,L){case o:case n:case r:case c:case d:return L;default:switch(L=L&&L.$$typeof,L){case s:case a:case f:case h:case i:return L;default:return V}}case t:return V}}}var F=i,E=e,_=a,P=o,D=f,M=h,A=t,O=n,K=r,W=c;return ft.ContextConsumer=s,ft.ContextProvider=F,ft.Element=E,ft.ForwardRef=_,ft.Fragment=P,ft.Lazy=D,ft.Memo=M,ft.Portal=A,ft.Profiler=O,ft.StrictMode=K,ft.Suspense=W,ft.isAsyncMode=function(){return!1},ft.isConcurrentMode=function(){return!1},ft.isContextConsumer=function(L){return C(L)===s},ft.isContextProvider=function(L){return C(L)===i},ft.isElement=function(L){return typeof L=="object"&&L!==null&&L.$$typeof===e},ft.isForwardRef=function(L){return C(L)===a},ft.isFragment=function(L){return C(L)===o},ft.isLazy=function(L){return C(L)===f},ft.isMemo=function(L){return C(L)===h},ft.isPortal=function(L){return C(L)===t},ft.isProfiler=function(L){return C(L)===n},ft.isStrictMode=function(L){return C(L)===r},ft.isSuspense=function(L){return C(L)===c},ft.isValidElementType=function(L){return typeof L=="string"||typeof L=="function"||L===o||L===n||L===w||L===r||L===c||L===d||L===y||typeof L=="object"&&L!==null&&(L.$$typeof===f||L.$$typeof===h||L.$$typeof===i||L.$$typeof===s||L.$$typeof===a||L.$$typeof===b||L.$$typeof===g||L[0]===m)},ft.typeOf=C,ft}var w0;function h2(){return w0||(w0=1,Wp.exports=d2()),Wp.exports}h2();function C0(e,t){return function(r,n,i,s,a){return YC(n)?t(u2(r,n),null,i,s,a):YC(r)?t(r,n,i,s,a):e(r,n,i,s,a)}}function y0(e){const{as:t,[ZC]:o,[fa]:r,[Uu]:n,...i}=e,s=i,a=typeof r=="string"?t??r:r;return typeof a!="string"&&t&&(s.as=t),{elementType:a,props:s,renderFunction:n}}const cs=PT,f2=(e,t,o)=>{const{elementType:r,renderFunction:n,props:i}=y0(e),s={...i,...t};return n?cs.jsx(S.Fragment,{children:n(r,s)},o):cs.jsx(r,s,o)},p2=(e,t,o)=>{const{elementType:r,renderFunction:n,props:i}=y0(e),s={...i,...t};return n?cs.jsx(S.Fragment,{children:n(r,{...s,children:cs.jsxs(S.Fragment,{children:s.children},void 0)})},o):cs.jsxs(r,s,o)},ae=C0(cs.jsx,f2),gt=C0(cs.jsxs,p2),S0=S.createContext(void 0),g2={},m2=S0.Provider,v2=()=>{const e=S.useContext(S0);return e??g2},b2=(e,t)=>ae(HM,{value:t.provider,children:ae(MM,{value:t.theme,children:ae(IM,{value:t.themeClassName,children:ae(jM,{value:t.customStyleHooks_unstable,children:ae(NM,{value:t.tooltip,children:ae(rM,{dir:t.textDirection,children:ae(m2,{value:t.iconDirection,children:ae(VM,{value:t.overrides_unstable,children:gt(e.root,{children:[Ku()?null:ae("style",{dangerouslySetInnerHTML:{__html:e.serverStyleProps.cssRule},...e.serverStyleProps.attributes}),e.root.children]})})})})})})})})});var w2=typeof WeakRef<"u",x0=class{constructor(e){w2&&typeof e=="object"?this._weakRef=new WeakRef(e):this._instance=e}deref(){var e,t;let o;return this._weakRef?(o=(e=this._weakRef)==null?void 0:e.deref(),o||delete this._weakRef):(o=this._instance,(t=o?.isDisposed)!=null&&t.call(o)&&delete this._instance),o}},jo="keyborg:focusin",tc="keyborg:focusout";function C2(e){const t=e.HTMLElement,o=t.prototype.focus;let r=!1;return t.prototype.focus=function(){r=!0},e.document.createElement("button").focus(),t.prototype.focus=o,r}var qp=!1;function rn(e){const t=e.focus;t.__keyborgNativeFocus?t.__keyborgNativeFocus.call(e):e.focus()}function y2(e){const t=e;qp||(qp=C2(t));const o=t.HTMLElement.prototype.focus;if(o.__keyborgNativeFocus)return;t.HTMLElement.prototype.focus=c;const r=new Set,n=h=>{const f=h.target;if(!f)return;const g=new CustomEvent(tc,{cancelable:!0,bubbles:!0,composed:!0,detail:{originalEvent:h}});f.dispatchEvent(g)},i=h=>{const f=h.target;if(!f)return;let g=h.composedPath()[0];const m=new Set;for(;g;)g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?(m.add(g),g=g.host):g=g.parentNode;for(const b of r){const w=b.deref();(!w||!m.has(w))&&(r.delete(b),w&&(w.removeEventListener("focusin",i,!0),w.removeEventListener("focusout",n,!0)))}s(f,h.relatedTarget||void 0)},s=(h,f,g)=>{var m;const b=h.shadowRoot;if(b){for(const k of r)if(k.deref()===b)return;b.addEventListener("focusin",i,!0),b.addEventListener("focusout",n,!0),r.add(new x0(b));return}const w={relatedTarget:f,originalEvent:g},y=new CustomEvent(jo,{cancelable:!0,bubbles:!0,composed:!0,detail:w});y.details=w,(qp||a.lastFocusedProgrammatically)&&(w.isFocusedProgrammatically=h===((m=a.lastFocusedProgrammatically)==null?void 0:m.deref()),a.lastFocusedProgrammatically=void 0),h.dispatchEvent(y)},a=t.__keyborgData={focusInHandler:i,focusOutHandler:n,shadowTargets:r};t.document.addEventListener("focusin",t.__keyborgData.focusInHandler,!0),t.document.addEventListener("focusout",t.__keyborgData.focusOutHandler,!0);function c(){const h=t.__keyborgData;return h&&(h.lastFocusedProgrammatically=new x0(this)),o.apply(this,arguments)}let d=t.document.activeElement;for(;d&&d.shadowRoot;)s(d),d=d.shadowRoot.activeElement;c.__keyborgNativeFocus=o}function S2(e){const t=e,o=t.HTMLElement.prototype,r=o.focus.__keyborgNativeFocus,n=t.__keyborgData;if(n){t.document.removeEventListener("focusin",n.focusInHandler,!0),t.document.removeEventListener("focusout",n.focusOutHandler,!0);for(const i of n.shadowTargets){const s=i.deref();s&&(s.removeEventListener("focusin",n.focusInHandler,!0),s.removeEventListener("focusout",n.focusOutHandler,!0))}n.shadowTargets.clear(),delete t.__keyborgData}r&&(o.focus=r)}var x2=500,k0=0,k2=class{constructor(e,t){this._isNavigatingWithKeyboard_DO_NOT_USE=!1,this._onFocusIn=r=>{if(this._isMouseOrTouchUsedTimer||this.isNavigatingWithKeyboard)return;const n=r.detail;n.relatedTarget&&(n.isFocusedProgrammatically||n.isFocusedProgrammatically===void 0||(this.isNavigatingWithKeyboard=!0))},this._onMouseDown=r=>{r.buttons===0||r.clientX===0&&r.clientY===0&&r.screenX===0&&r.screenY===0||this._onMouseOrTouch()},this._onMouseOrTouch=()=>{const r=this._win;r&&(this._isMouseOrTouchUsedTimer&&r.clearTimeout(this._isMouseOrTouchUsedTimer),this._isMouseOrTouchUsedTimer=r.setTimeout(()=>{delete this._isMouseOrTouchUsedTimer},1e3)),this.isNavigatingWithKeyboard=!1},this._onKeyDown=r=>{this.isNavigatingWithKeyboard?this._shouldDismissKeyboardNavigation(r)&&this._scheduleDismiss():this._shouldTriggerKeyboardNavigation(r)&&(this.isNavigatingWithKeyboard=!0)},this.id="c"+ ++k0,this._win=e;const o=e.document;if(t){const r=t.triggerKeys,n=t.dismissKeys;r?.length&&(this._triggerKeys=new Set(r)),n?.length&&(this._dismissKeys=new Set(n))}o.addEventListener(jo,this._onFocusIn,!0),o.addEventListener("mousedown",this._onMouseDown,!0),e.addEventListener("keydown",this._onKeyDown,!0),o.addEventListener("touchstart",this._onMouseOrTouch,!0),o.addEventListener("touchend",this._onMouseOrTouch,!0),o.addEventListener("touchcancel",this._onMouseOrTouch,!0),y2(e)}get isNavigatingWithKeyboard(){return this._isNavigatingWithKeyboard_DO_NOT_USE}set isNavigatingWithKeyboard(e){this._isNavigatingWithKeyboard_DO_NOT_USE!==e&&(this._isNavigatingWithKeyboard_DO_NOT_USE=e,this.update())}dispose(){const e=this._win;if(e){this._isMouseOrTouchUsedTimer&&(e.clearTimeout(this._isMouseOrTouchUsedTimer),this._isMouseOrTouchUsedTimer=void 0),this._dismissTimer&&(e.clearTimeout(this._dismissTimer),this._dismissTimer=void 0),S2(e);const t=e.document;t.removeEventListener(jo,this._onFocusIn,!0),t.removeEventListener("mousedown",this._onMouseDown,!0),e.removeEventListener("keydown",this._onKeyDown,!0),t.removeEventListener("touchstart",this._onMouseOrTouch,!0),t.removeEventListener("touchend",this._onMouseOrTouch,!0),t.removeEventListener("touchcancel",this._onMouseOrTouch,!0),delete this._win}}isDisposed(){return!!this._win}update(){var e,t;const o=(t=(e=this._win)==null?void 0:e.__keyborg)==null?void 0:t.refs;if(o)for(const r of Object.keys(o))Up.update(o[r],this.isNavigatingWithKeyboard)}_shouldTriggerKeyboardNavigation(e){var t;if(e.key==="Tab")return!0;const o=(t=this._win)==null?void 0:t.document.activeElement,r=!this._triggerKeys||this._triggerKeys.has(e.keyCode),n=o&&(o.tagName==="INPUT"||o.tagName==="TEXTAREA"||o.isContentEditable);return r&&!n}_shouldDismissKeyboardNavigation(e){var t;return(t=this._dismissKeys)==null?void 0:t.has(e.keyCode)}_scheduleDismiss(){const e=this._win;if(e){this._dismissTimer&&(e.clearTimeout(this._dismissTimer),this._dismissTimer=void 0);const t=e.document.activeElement;this._dismissTimer=e.setTimeout(()=>{this._dismissTimer=void 0;const o=e.document.activeElement;t&&o&&t===o&&(this.isNavigatingWithKeyboard=!1)},x2)}}},Up=class xT{constructor(t,o){this._cb=[],this._id="k"+ ++k0,this._win=t;const r=t.__keyborg;r?(this._core=r.core,r.refs[this._id]=this):(this._core=new k2(t,o),t.__keyborg={core:this._core,refs:{[this._id]:this}})}static create(t,o){return new xT(t,o)}static dispose(t){t.dispose()}static update(t,o){t._cb.forEach(r=>r(o))}dispose(){var t;const o=(t=this._win)==null?void 0:t.__keyborg;o?.refs[this._id]&&(delete o.refs[this._id],Object.keys(o.refs).length===0&&(o.core.dispose(),delete this._win.__keyborg)),this._cb=[],delete this._core,delete this._win}isNavigatingWithKeyboard(){var t;return!!((t=this._core)!=null&&t.isNavigatingWithKeyboard)}subscribe(t){this._cb.push(t)}unsubscribe(t){const o=this._cb.indexOf(t);o>=0&&this._cb.splice(o,1)}setVal(t){this._core&&(this._core.isNavigatingWithKeyboard=t)}};function Yu(e,t){return Up.create(e,t)}function Qu(e){Up.dispose(e)}const ar="data-tabster",F2="data-tabster-dummy",F0=`:is(${["a[href]","button","input","select","textarea","*[tabindex]","*[contenteditable]","details > summary","audio[controls]","video[controls]"].join(", ")}):not(:disabled)`,On={EscapeGroupper:1,Restorer:2,Deloser:3},bi={Invisible:0,PartiallyVisible:1,Visible:2},us={Source:0,Target:1},Ar={Both:0,Vertical:1,Horizontal:2,Grid:3,GridLinear:4},Ot={ArrowUp:1,ArrowDown:2,ArrowLeft:3,ArrowRight:4,PageUp:5,PageDown:6,Home:7,End:8},Ju={Unlimited:0,Limited:1,LimitedTrapFocus:2},oc={Enter:1,Escape:2},R2={Outside:2};function so(e,t){var o;return(o=e.storageEntry(t))===null||o===void 0?void 0:o.tabster}function R0(e,t,o){var r,n,i;const s=o||e._noop?void 0:t.getAttribute(ar);let a=e.storageEntry(t),c;if(s)if(s!==((r=a?.attr)===null||r===void 0?void 0:r.string))try{const g=JSON.parse(s);if(typeof g!="object")throw new Error(`Value is not a JSON object, got '${s}'.`);c={string:s,object:g}}catch{}else return;else if(!a)return;a||(a=e.storageEntry(t,!0)),a.tabster||(a.tabster={});const d=a.tabster||{},h=((n=a.attr)===null||n===void 0?void 0:n.object)||{},f=c?.object||{};for(const g of Object.keys(h))if(!f[g]){if(g==="root"){const m=d[g];m&&e.root.onRoot(m,!0)}switch(g){case"deloser":case"root":case"groupper":case"modalizer":case"restorer":case"mover":const m=d[g];m&&(m.dispose(),delete d[g]);break;case"observed":delete d[g],e.observedElement&&e.observedElement.onObservedElementUpdate(t);break;case"focusable":case"outline":case"uncontrolled":case"sys":delete d[g];break}}for(const g of Object.keys(f)){const m=f.sys;switch(g){case"deloser":d.deloser?d.deloser.setProps(f.deloser):e.deloser&&(d.deloser=e.deloser.createDeloser(t,f.deloser));break;case"root":d.root?d.root.setProps(f.root):d.root=e.root.createRoot(t,f.root,m),e.root.onRoot(d.root);break;case"modalizer":{let b;const w=e.modalizer;if(d.modalizer){const y=f.modalizer,k=y.id;k&&((i=h?.modalizer)===null||i===void 0?void 0:i.id)!==k?(d.modalizer.dispose(),b=y):d.modalizer.setProps(y)}else w&&(b=f.modalizer);w&&b&&(d.modalizer=w.createModalizer(t,b,m))}break;case"restorer":d.restorer?d.restorer.setProps(f.restorer):e.restorer&&f.restorer&&(d.restorer=e.restorer.createRestorer(t,f.restorer));break;case"focusable":d.focusable=f.focusable;break;case"groupper":d.groupper?d.groupper.setProps(f.groupper):e.groupper&&(d.groupper=e.groupper.createGroupper(t,f.groupper,m));break;case"mover":d.mover?d.mover.setProps(f.mover):e.mover&&(d.mover=e.mover.createMover(t,f.mover,m));break;case"observed":e.observedElement&&(d.observed=f.observed,e.observedElement.onObservedElementUpdate(t));break;case"uncontrolled":d.uncontrolled=f.uncontrolled;break;case"outline":e.outline&&(d.outline=f.outline);break;case"sys":d.sys=f.sys;break;default:console.error(`Unknown key '${g}' in data-tabster attribute value.`)}}c?a.attr=c:(Object.keys(d).length===0&&(delete a.tabster,delete a.attr),e.storageEntry(t,!1))}const E2="tabster:focusin",_2="tabster:focusout",$p="tabster:movefocus",P2="tabster:modalizer:active",D2="tabster:modalizer:inactive",T2="tabster:mover:state",Kp="tabster:mover:movefocus",E0="tabster:mover:memorized-element",Xp="tabster:groupper:movefocus",Zp="tabster:restorer:restore-focus",M2="tabster:root:focus",A2="tabster:root:blur",I2=typeof CustomEvent<"u"?CustomEvent:function(){};class Ir extends I2{constructor(t,o){super(t,{bubbles:!0,cancelable:!0,composed:!0,detail:o}),this.details=o}}class B2 extends Ir{constructor(t){super(E2,t)}}class O2 extends Ir{constructor(t){super(_2,t)}}class wi extends Ir{constructor(t){super($p,t)}}class _0 extends Ir{constructor(t){super(T2,t)}}class N2 extends Ir{constructor(t){super(Kp,t)}}class Yp extends Ir{constructor(t){super(Xp,t)}}class L2 extends Ir{constructor(t){super(P2,t)}}class z2 extends Ir{constructor(t){super(D2,t)}}class P0 extends Ir{constructor(){super(Zp)}}class H2 extends Ir{constructor(t){super(M2,t)}}class V2 extends Ir{constructor(t){super(A2,t)}}const ie={createMutationObserver:e=>new MutationObserver(e),createTreeWalker:(e,t,o,r)=>e.createTreeWalker(t,o,r),getParentNode:e=>e?e.parentNode:null,getParentElement:e=>e?e.parentElement:null,nodeContains:(e,t)=>!!(t&&e?.contains(t)),getActiveElement:e=>e.activeElement,querySelector:(e,t)=>e.querySelector(t),querySelectorAll:(e,t)=>Array.prototype.slice.call(e.querySelectorAll(t),0),getElementById:(e,t)=>e.getElementById(t),getFirstChild:e=>e?.firstChild||null,getLastChild:e=>e?.lastChild||null,getNextSibling:e=>e?.nextSibling||null,getPreviousSibling:e=>e?.previousSibling||null,getFirstElementChild:e=>e?.firstElementChild||null,getLastElementChild:e=>e?.lastElementChild||null,getNextElementSibling:e=>e?.nextElementSibling||null,getPreviousElementSibling:e=>e?.previousElementSibling||null,appendChild:(e,t)=>e.appendChild(t),insertBefore:(e,t,o)=>e.insertBefore(t,o),getSelection:e=>{var t;return((t=e.ownerDocument)===null||t===void 0?void 0:t.getSelection())||null},getElementsByName:(e,t)=>e.ownerDocument.getElementsByName(t)};function G2(e){for(const t of Object.keys(e))ie[t]=e[t]}let Qp;const D0=typeof DOMRect<"u"?DOMRect:class{constructor(e,t,o,r){this.left=e||0,this.top=t||0,this.right=(e||0)+(o||0),this.bottom=(t||0)+(r||0)}};let j2=0;try{document.createTreeWalker(document,NodeFilter.SHOW_ELEMENT),Qp=!1}catch{Qp=!0}const Jp=100;function Nn(e){const t=e();let o=t.__tabsterInstanceContext;return o||(o={elementByUId:{},basics:{Promise:t.Promise||void 0,WeakRef:t.WeakRef||void 0},containerBoundingRectCache:{},lastContainerBoundingRectCacheId:0,fakeWeakRefs:[],fakeWeakRefsStarted:!1},t.__tabsterInstanceContext=o),o}function W2(e){const t=e.__tabsterInstanceContext;t&&(t.elementByUId={},delete t.WeakRef,t.containerBoundingRectCache={},t.containerBoundingRectCacheTimer&&e.clearTimeout(t.containerBoundingRectCacheTimer),t.fakeWeakRefsTimer&&e.clearTimeout(t.fakeWeakRefsTimer),t.fakeWeakRefs=[],delete e.__tabsterInstanceContext)}function q2(e){const t=e.__tabsterInstanceContext;return new(t?.basics.WeakMap||WeakMap)}function U2(e){return!!e.querySelector(F0)}class T0{constructor(t){this._target=t}deref(){return this._target}static cleanup(t,o){return t._target?o||!tg(t._target.ownerDocument,t._target)?(delete t._target,!0):!1:!0}}class Wo{constructor(t,o,r){const n=Nn(t);let i;n.WeakRef?i=new n.WeakRef(o):(i=new T0(o),n.fakeWeakRefs.push(i)),this._ref=i,this._data=r}get(){const t=this._ref;let o;return t&&(o=t.deref(),o||delete this._ref),o}getData(){return this._data}}function M0(e,t){const o=Nn(e);o.fakeWeakRefs=o.fakeWeakRefs.filter(r=>!T0.cleanup(r,t))}function A0(e){const t=Nn(e);t.fakeWeakRefsStarted||(t.fakeWeakRefsStarted=!0,t.WeakRef=Q2(t)),t.fakeWeakRefsTimer||(t.fakeWeakRefsTimer=e().setTimeout(()=>{t.fakeWeakRefsTimer=void 0,M0(e),A0(e)},120*1e3))}function $2(e){const t=Nn(e);t.fakeWeakRefsStarted=!1,t.fakeWeakRefsTimer&&(e().clearTimeout(t.fakeWeakRefsTimer),t.fakeWeakRefsTimer=void 0,t.fakeWeakRefs=[])}function eg(e,t,o){if(t.nodeType!==Node.ELEMENT_NODE)return;const r=Qp?o:{acceptNode:o};return ie.createTreeWalker(e,t,NodeFilter.SHOW_ELEMENT,r,!1)}function I0(e,t){let o=t.__tabsterCacheId;const r=Nn(e),n=o?r.containerBoundingRectCache[o]:void 0;if(n)return n.rect;const i=t.ownerDocument&&t.ownerDocument.documentElement;if(!i)return new D0;let s=0,a=0,c=i.clientWidth,d=i.clientHeight;if(t!==i){const f=t.getBoundingClientRect();s=Math.max(s,f.left),a=Math.max(a,f.top),c=Math.min(c,f.right),d=Math.min(d,f.bottom)}const h=new D0(s<c?s:-1,a<d?a:-1,s<c?c-s:0,a<d?d-a:0);return o||(o="r-"+ ++r.lastContainerBoundingRectCacheId,t.__tabsterCacheId=o),r.containerBoundingRectCache[o]={rect:h,element:t},r.containerBoundingRectCacheTimer||(r.containerBoundingRectCacheTimer=window.setTimeout(()=>{r.containerBoundingRectCacheTimer=void 0;for(const f of Object.keys(r.containerBoundingRectCache))delete r.containerBoundingRectCache[f].element.__tabsterCacheId;r.containerBoundingRectCache={}},50)),h}function B0(e,t,o){const r=O0(t);if(!r)return!1;const n=I0(e,r),i=t.getBoundingClientRect(),s=i.height*(1-o),a=Math.max(0,n.top-i.top),c=Math.max(0,i.bottom-n.bottom),d=a+c;return d===0||d<=s}function K2(e,t,o){const r=O0(t);if(r){const n=I0(e,r),i=t.getBoundingClientRect();o?r.scrollTop+=i.top-n.top:r.scrollTop+=i.bottom-n.bottom}}function O0(e){const t=e.ownerDocument;if(t){for(let o=ie.getParentElement(e);o;o=ie.getParentElement(o))if(o.scrollWidth>o.clientWidth||o.scrollHeight>o.clientHeight)return o;return t.documentElement}return null}function X2(e){e.__shouldIgnoreFocus=!0}function N0(e){return!!e.__shouldIgnoreFocus}function Z2(e){const t=new Uint32Array(4);if(e.crypto&&e.crypto.getRandomValues)e.crypto.getRandomValues(t);else if(e.msCrypto&&e.msCrypto.getRandomValues)e.msCrypto.getRandomValues(t);else for(let r=0;r<t.length;r++)t[r]=4294967295*Math.random();const o=[];for(let r=0;r<t.length;r++)o.push(t[r].toString(36));return o.push("|"),o.push((++j2).toString(36)),o.push("|"),o.push(Date.now().toString(36)),o.join("")}function ed(e,t){const o=Nn(e);let r=t.__tabsterElementUID;return r||(r=t.__tabsterElementUID=Z2(e())),!o.elementByUId[r]&&tg(t.ownerDocument,t)&&(o.elementByUId[r]=new Wo(e,t)),r}function L0(e,t){const o=Nn(e);for(const r of Object.keys(o.elementByUId)){const n=o.elementByUId[r],i=n&&n.get();i&&t&&!ie.nodeContains(t,i)||delete o.elementByUId[r]}}function tg(e,t){return ie.nodeContains(e?.body,t)}function z0(e,t){const o=e.matches||e.matchesSelector||e.msMatchesSelector||e.webkitMatchesSelector;return o&&o.call(e,t)}function Y2(e){const t=Nn(e);if(t.basics.Promise)return t.basics.Promise;throw new Error("No Promise defined.")}function Q2(e){return e.basics.WeakRef}let J2=0;class rc{constructor(t,o,r){const n=t.getWindow;this._tabster=t,this._element=new Wo(n,o),this._props={...r},this.id="i"+ ++J2}getElement(){return this._element.get()}getProps(){return this._props}setProps(t){this._props={...t}}}class td{constructor(t,o,r,n,i){var s;this._focusIn=h=>{if(this._fixedTarget){const g=this._fixedTarget.get();g&&rn(g);return}const f=this.input;if(this.onFocusIn&&f){const g=h.relatedTarget;this.onFocusIn(this,this._isBackward(!0,f,g),g)}},this._focusOut=h=>{if(this._fixedTarget)return;this.useDefaultAction=!1;const f=this.input;if(this.onFocusOut&&f){const g=h.relatedTarget;this.onFocusOut(this,this._isBackward(!1,f,g),g)}};const a=t(),c=a.document.createElement("i");c.tabIndex=0,c.setAttribute("role","none"),c.setAttribute(F2,""),c.setAttribute("aria-hidden","true");const d=c.style;d.position="fixed",d.width=d.height="1px",d.opacity="0.001",d.zIndex="-1",d.setProperty("content-visibility","hidden"),X2(c),this.input=c,this.isFirst=r.isFirst,this.isOutside=o,this._isPhantom=(s=r.isPhantom)!==null&&s!==void 0?s:!1,this._fixedTarget=i,c.addEventListener("focusin",this._focusIn),c.addEventListener("focusout",this._focusOut),c.__tabsterDummyContainer=n,this._isPhantom&&(this._disposeTimer=a.setTimeout(()=>{delete this._disposeTimer,this.dispose()},0),this._clearDisposeTimeout=()=>{this._disposeTimer&&(a.clearTimeout(this._disposeTimer),delete this._disposeTimer),delete this._clearDisposeTimeout})}dispose(){var t;this._clearDisposeTimeout&&this._clearDisposeTimeout();const o=this.input;o&&(delete this._fixedTarget,delete this.onFocusIn,delete this.onFocusOut,delete this.input,o.removeEventListener("focusin",this._focusIn),o.removeEventListener("focusout",this._focusOut),delete o.__tabsterDummyContainer,(t=ie.getParentNode(o))===null||t===void 0||t.removeChild(o))}setTopLeft(t,o){var r;const n=(r=this.input)===null||r===void 0?void 0:r.style;n&&(n.top=`${t}px`,n.left=`${o}px`)}_isBackward(t,o,r){return t&&!r?!this.isFirst:!!(r&&o.compareDocumentPosition(r)&Node.DOCUMENT_POSITION_FOLLOWING)}}const od={Root:1,Modalizer:2,Mover:3,Groupper:4};class va{constructor(t,o,r,n,i,s){this._element=o,this._instance=new tA(t,o,this,r,n,i,s)}_setHandlers(t,o){this._onFocusIn=t,this._onFocusOut=o}moveOut(t){var o;(o=this._instance)===null||o===void 0||o.moveOut(t)}moveOutWithDefaultAction(t,o){var r;(r=this._instance)===null||r===void 0||r.moveOutWithDefaultAction(t,o)}getHandler(t){return t?this._onFocusIn:this._onFocusOut}setTabbable(t){var o;(o=this._instance)===null||o===void 0||o.setTabbable(this,t)}dispose(){this._instance&&(this._instance.dispose(this),delete this._instance),delete this._onFocusIn,delete this._onFocusOut}static moveWithPhantomDummy(t,o,r,n,i){const a=new td(t.getWindow,!0,{isPhantom:!0,isFirst:!0}).input;if(a){let c,d;if(o.tagName==="BODY")c=o,d=r&&n||!r&&!n?ie.getFirstElementChild(o):null;else{r&&(!n||n&&!t.focusable.isFocusable(o,!1,!0,!0))?(c=o,d=n?o.firstElementChild:null):(c=ie.getParentElement(o),d=r&&n||!r&&!n?o:ie.getNextElementSibling(o));let h,f;do h=r&&n||!r&&!n?ie.getPreviousElementSibling(d):d,f=ba(h),f===o?d=r&&n||!r&&!n?h:ie.getNextElementSibling(h):f=null;while(f)}c?.dispatchEvent(new wi({by:"root",owner:c,next:null,relatedEvent:i}))&&(ie.insertBefore(c,a,d),rn(a))}}static addPhantomDummyWithTarget(t,o,r,n){const s=new td(t.getWindow,!0,{isPhantom:!0,isFirst:!0},void 0,new Wo(t.getWindow,n)).input;if(s){let a,c;U2(o)&&!r?(a=o,c=ie.getFirstElementChild(o)):(a=ie.getParentElement(o),c=r?o:ie.getNextElementSibling(o)),a&&ie.insertBefore(a,s,c)}}}class eA{constructor(t){this._updateQueue=new Set,this._lastUpdateQueueTime=0,this._changedParents=new WeakSet,this._dummyElements=[],this._dummyCallbacks=new WeakMap,this._domChanged=o=>{var r;this._changedParents.has(o)||(this._changedParents.add(o),!this._updateDummyInputsTimer&&(this._updateDummyInputsTimer=(r=this._win)===null||r===void 0?void 0:r.call(this).setTimeout(()=>{delete this._updateDummyInputsTimer;for(const n of this._dummyElements){const i=n.get();if(i){const s=this._dummyCallbacks.get(i);if(s){const a=ie.getParentNode(i);(!a||this._changedParents.has(a))&&s()}}}this._changedParents=new WeakSet},Jp)))},this._win=t}add(t,o){!this._dummyCallbacks.has(t)&&this._win&&(this._dummyElements.push(new Wo(this._win,t)),this._dummyCallbacks.set(t,o),this.domChanged=this._domChanged)}remove(t){this._dummyElements=this._dummyElements.filter(o=>{const r=o.get();return r&&r!==t}),this._dummyCallbacks.delete(t),this._dummyElements.length===0&&delete this.domChanged}dispose(){var t;const o=(t=this._win)===null||t===void 0?void 0:t.call(this);this._updateTimer&&(o?.clearTimeout(this._updateTimer),delete this._updateTimer),this._updateDummyInputsTimer&&(o?.clearTimeout(this._updateDummyInputsTimer),delete this._updateDummyInputsTimer),this._changedParents=new WeakSet,this._dummyCallbacks=new WeakMap,this._dummyElements=[],this._updateQueue.clear(),delete this.domChanged,delete this._win}updatePositions(t){this._win&&(this._updateQueue.add(t),this._lastUpdateQueueTime=Date.now(),this._scheduledUpdatePositions())}_scheduledUpdatePositions(){var t;this._updateTimer||(this._updateTimer=(t=this._win)===null||t===void 0?void 0:t.call(this).setTimeout(()=>{if(delete this._updateTimer,this._lastUpdateQueueTime+Jp<=Date.now()){const o=new Map,r=[];for(const n of this._updateQueue)r.push(n(o));this._updateQueue.clear();for(const n of r)n();o.clear()}else this._scheduledUpdatePositions()},Jp))}}class tA{constructor(t,o,r,n,i,s,a){this._wrappers=[],this._isOutside=!1,this._transformElements=new Set,this._onFocusIn=(m,b,w)=>{this._onFocus(!0,m,b,w)},this._onFocusOut=(m,b,w)=>{this._onFocus(!1,m,b,w)},this.moveOut=m=>{var b;const w=this._firstDummy,y=this._lastDummy;if(w&&y){this._ensurePosition();const k=w.input,C=y.input,F=(b=this._element)===null||b===void 0?void 0:b.get();if(k&&C&&F){let E;m?(k.tabIndex=0,E=k):(C.tabIndex=0,E=C),E&&rn(E)}}},this.moveOutWithDefaultAction=(m,b)=>{var w;const y=this._firstDummy,k=this._lastDummy;if(y&&k){this._ensurePosition();const C=y.input,F=k.input,E=(w=this._element)===null||w===void 0?void 0:w.get();if(C&&F&&E){let _;m?!y.isOutside&&this._tabster.focusable.isFocusable(E,!0,!0,!0)?_=E:(y.useDefaultAction=!0,C.tabIndex=0,_=C):(k.useDefaultAction=!0,F.tabIndex=0,_=F),_&&E.dispatchEvent(new wi({by:"root",owner:E,next:null,relatedEvent:b}))&&rn(_)}}},this.setTabbable=(m,b)=>{var w,y;for(const C of this._wrappers)if(C.manager===m){C.tabbable=b;break}const k=this._getCurrent();if(k){const C=k.tabbable?0:-1;let F=(w=this._firstDummy)===null||w===void 0?void 0:w.input;F&&(F.tabIndex=C),F=(y=this._lastDummy)===null||y===void 0?void 0:y.input,F&&(F.tabIndex=C)}},this._addDummyInputs=()=>{this._addTimer||(this._addTimer=this._getWindow().setTimeout(()=>{delete this._addTimer,this._ensurePosition(),this._addTransformOffsets()},0))},this._addTransformOffsets=()=>{this._tabster._dummyObserver.updatePositions(this._computeTransformOffsets)},this._computeTransformOffsets=m=>{var b,w;const y=((b=this._firstDummy)===null||b===void 0?void 0:b.input)||((w=this._lastDummy)===null||w===void 0?void 0:w.input),k=this._transformElements,C=new Set;let F=0,E=0;const _=this._getWindow();for(let P=y;P&&P.nodeType===Node.ELEMENT_NODE;P=ie.getParentElement(P)){let D=m.get(P);if(D===void 0){const M=_.getComputedStyle(P).transform;M&&M!=="none"&&(D={scrollTop:P.scrollTop,scrollLeft:P.scrollLeft}),m.set(P,D||null)}D&&(C.add(P),k.has(P)||P.addEventListener("scroll",this._addTransformOffsets),F+=D.scrollTop,E+=D.scrollLeft)}for(const P of k)C.has(P)||P.removeEventListener("scroll",this._addTransformOffsets);return this._transformElements=C,()=>{var P,D;(P=this._firstDummy)===null||P===void 0||P.setTopLeft(F,E),(D=this._lastDummy)===null||D===void 0||D.setTopLeft(F,E)}};const c=o.get();if(!c)throw new Error("No element");this._tabster=t,this._getWindow=t.getWindow,this._callForDefaultAction=a;const d=c.__tabsterDummy;if((d||this)._wrappers.push({manager:r,priority:n,tabbable:!0}),d)return d;c.__tabsterDummy=this;const h=i?.dummyInputsPosition,f=c.tagName;this._isOutside=h?h===R2.Outside:(s||f==="UL"||f==="OL"||f==="TABLE")&&!(f==="LI"||f==="TD"||f==="TH"),this._firstDummy=new td(this._getWindow,this._isOutside,{isFirst:!0},o),this._lastDummy=new td(this._getWindow,this._isOutside,{isFirst:!1},o);const g=this._firstDummy.input;g&&t._dummyObserver.add(g,this._addDummyInputs),this._firstDummy.onFocusIn=this._onFocusIn,this._firstDummy.onFocusOut=this._onFocusOut,this._lastDummy.onFocusIn=this._onFocusIn,this._lastDummy.onFocusOut=this._onFocusOut,this._element=o,this._addDummyInputs()}dispose(t,o){var r,n,i,s;if((this._wrappers=this._wrappers.filter(c=>c.manager!==t&&!o)).length===0){delete((r=this._element)===null||r===void 0?void 0:r.get()).__tabsterDummy;for(const h of this._transformElements)h.removeEventListener("scroll",this._addTransformOffsets);this._transformElements.clear();const c=this._getWindow();this._addTimer&&(c.clearTimeout(this._addTimer),delete this._addTimer);const d=(n=this._firstDummy)===null||n===void 0?void 0:n.input;d&&this._tabster._dummyObserver.remove(d),(i=this._firstDummy)===null||i===void 0||i.dispose(),(s=this._lastDummy)===null||s===void 0||s.dispose()}}_onFocus(t,o,r,n){var i;const s=this._getCurrent();s&&(!o.useDefaultAction||this._callForDefaultAction)&&((i=s.manager.getHandler(t))===null||i===void 0||i(o,r,n))}_getCurrent(){return this._wrappers.sort((t,o)=>t.tabbable!==o.tabbable?t.tabbable?-1:1:t.priority-o.priority),this._wrappers[0]}_ensurePosition(){var t,o,r;const n=(t=this._element)===null||t===void 0?void 0:t.get(),i=(o=this._firstDummy)===null||o===void 0?void 0:o.input,s=(r=this._lastDummy)===null||r===void 0?void 0:r.input;if(!(!n||!i||!s))if(this._isOutside){const a=ie.getParentNode(n);if(a){const c=ie.getNextSibling(n);c!==s&&ie.insertBefore(a,s,c),ie.getPreviousElementSibling(n)!==i&&ie.insertBefore(a,i,n)}}else{ie.getLastElementChild(n)!==s&&ie.appendChild(n,s);const a=ie.getFirstElementChild(n);a&&a!==i&&a.parentNode&&ie.insertBefore(a.parentNode,i,a)}}}function H0(e){let t=null;for(let o=ie.getLastElementChild(e);o;o=ie.getLastElementChild(o))t=o;return t||void 0}function oA(e,t){let o=e,r=null;for(;o&&!r;)r=t?ie.getPreviousElementSibling(o):ie.getNextElementSibling(o),o=ie.getParentElement(o);return r||void 0}function og(e,t,o,r){const n=e.storageEntry(t,!0);let i=!1;if(!n.aug){if(r===void 0)return i;n.aug={}}if(r===void 0){if(o in n.aug){const s=n.aug[o];delete n.aug[o],s===null?t.removeAttribute(o):t.setAttribute(o,s),i=!0}}else{let s;o in n.aug||(s=t.getAttribute(o)),s!==void 0&&s!==r&&(n.aug[o]=s,r===null?t.removeAttribute(o):t.setAttribute(o,r),i=!0)}return r===void 0&&Object.keys(n.aug).length===0&&(delete n.aug,e.storageEntry(t,!1)),i}function rA(e){var t,o;const r=e.ownerDocument,n=(t=r.defaultView)===null||t===void 0?void 0:t.getComputedStyle(e);return e.offsetParent===null&&r.body!==e&&n?.position!=="fixed"||n?.visibility==="hidden"||n?.position==="fixed"&&(n.display==="none"||((o=e.parentElement)===null||o===void 0?void 0:o.offsetParent)===null&&r.body!==e.parentElement)}function rg(e){return e.tagName==="INPUT"&&!!e.name&&e.type==="radio"}function nA(e){if(!rg(e))return;const t=e.name;let o=Array.from(ie.getElementsByName(e,t)),r;return o=o.filter(n=>rg(n)?(n.checked&&(r=n),!0):!1),{name:t,buttons:new Set(o),checked:r}}function ba(e){var t;return((t=e?.__tabsterDummyContainer)===null||t===void 0?void 0:t.get())||null}function ng(e,t){const o=JSON.stringify(e);return t===!0?o:{[ar]:o}}function iA(e,t){for(const o of Object.keys(t)){const r=t[o];r?e[o]=r:delete e[o]}}function sA(e,t,o){let r;{const n=e.getAttribute(ar);if(n)try{r=JSON.parse(n)}catch{}}r||(r={}),iA(r,t),Object.keys(r).length>0?e.setAttribute(ar,ng(r,!0)):e.removeAttribute(ar)}class V0 extends va{constructor(t,o,r,n){super(t,o,od.Root,n,void 0,!0),this._onDummyInputFocus=i=>{var s;if(i.useDefaultAction)this._setFocused(!1);else{this._tabster.keyboardNavigation.setNavigatingWithKeyboard(!0);const a=this._element.get();if(a){this._setFocused(!0);const c=this._tabster.focusedElement.getFirstOrLastTabbable(i.isFirst,{container:a,ignoreAccessibility:!0});if(c){rn(c);return}}(s=i.input)===null||s===void 0||s.blur()}},this._setHandlers(this._onDummyInputFocus),this._tabster=t,this._setFocused=r}}class aA extends rc{constructor(t,o,r,n,i){super(t,o,n),this._isFocused=!1,this._setFocused=d=>{var h;if(this._setFocusedTimer&&(this._tabster.getWindow().clearTimeout(this._setFocusedTimer),delete this._setFocusedTimer),this._isFocused===d)return;const f=this._element.get();f&&(d?(this._isFocused=!0,(h=this._dummyManager)===null||h===void 0||h.setTabbable(!1),f.dispatchEvent(new H2({element:f}))):this._setFocusedTimer=this._tabster.getWindow().setTimeout(()=>{var g;delete this._setFocusedTimer,this._isFocused=!1,(g=this._dummyManager)===null||g===void 0||g.setTabbable(!0),f.dispatchEvent(new V2({element:f}))},0))},this._onFocusIn=d=>{const h=this._tabster.getParent,f=this._element.get();let g=d.composedPath()[0];do{if(g===f){this._setFocused(!0);return}g=g&&h(g)}while(g)},this._onFocusOut=()=>{this._setFocused(!1)},this._onDispose=r;const s=t.getWindow;this.uid=ed(s,o),this._sys=i,(t.controlTab||t.rootDummyInputs)&&this.addDummyInputs();const c=s().document;c.addEventListener(jo,this._onFocusIn),c.addEventListener(tc,this._onFocusOut),this._add()}addDummyInputs(){this._dummyManager||(this._dummyManager=new V0(this._tabster,this._element,this._setFocused,this._sys))}dispose(){var t;this._onDispose(this);const o=this._tabster.getWindow(),r=o.document;r.removeEventListener(jo,this._onFocusIn),r.removeEventListener(tc,this._onFocusOut),this._setFocusedTimer&&(o.clearTimeout(this._setFocusedTimer),delete this._setFocusedTimer),(t=this._dummyManager)===null||t===void 0||t.dispose(),this._remove()}moveOutWithDefaultAction(t,o){const r=this._dummyManager;if(r)r.moveOutWithDefaultAction(t,o);else{const n=this.getElement();n&&V0.moveWithPhantomDummy(this._tabster,n,!0,t,o)}}_add(){}_remove(){}}class ct{constructor(t,o){this._autoRootWaiting=!1,this._roots={},this._forceDummy=!1,this.rootById={},this._autoRootCreate=()=>{var r;const n=this._win().document,i=n.body;if(i){this._autoRootUnwait(n);const s=this._autoRoot;if(s)return sA(i,{root:s}),R0(this._tabster,i),(r=so(this._tabster,i))===null||r===void 0?void 0:r.root}else this._autoRootWaiting||(this._autoRootWaiting=!0,n.addEventListener("readystatechange",this._autoRootCreate))},this._onRootDispose=r=>{delete this._roots[r.id]},this._tabster=t,this._win=t.getWindow,this._autoRoot=o,t.queueInit(()=>{this._autoRoot&&this._autoRootCreate()})}_autoRootUnwait(t){t.removeEventListener("readystatechange",this._autoRootCreate),this._autoRootWaiting=!1}dispose(){const t=this._win();this._autoRootUnwait(t.document),delete this._autoRoot,Object.keys(this._roots).forEach(o=>{this._roots[o]&&(this._roots[o].dispose(),delete this._roots[o])}),this.rootById={}}createRoot(t,o,r){const n=new aA(this._tabster,t,this._onRootDispose,o,r);return this._roots[n.id]=n,this._forceDummy&&n.addDummyInputs(),n}addDummyInputs(){this._forceDummy=!0;const t=this._roots;for(const o of Object.keys(t))t[o].addDummyInputs()}static getRootByUId(t,o){const r=t().__tabsterInstance;return r&&r.root.rootById[o]}static getTabsterContext(t,o,r={}){var n,i,s,a;if(!o.ownerDocument)return;const{checkRtl:c,referenceElement:d}=r,h=t.getParent;t.drainInitQueue();let f,g,m,b,w=!1,y,k,C,F,E=d||o;const _={};for(;E&&(!f||c);){const D=so(t,E);if(c&&C===void 0){const W=E.dir;W&&(C=W.toLowerCase()==="rtl")}if(!D){E=h(E);continue}const M=E.tagName;(D.uncontrolled||M==="IFRAME"||M==="WEBVIEW")&&t.focusable.isVisible(E)&&(F=E),!b&&(!((n=D.focusable)===null||n===void 0)&&n.excludeFromMover)&&!m&&(w=!0);const A=D.modalizer,O=D.groupper,K=D.mover;!g&&A&&(g=A),!m&&O&&(!g||A)&&(g?(!O.isActive()&&O.getProps().tabbability&&g.userId!==((i=t.modalizer)===null||i===void 0?void 0:i.activeId)&&(g=void 0,m=O),k=O):m=O),!b&&K&&(!g||A)&&(!O||E!==o)&&E.contains(o)&&(b=K,y=!!m&&m!==O),D.root&&(f=D.root),!((s=D.focusable)===null||s===void 0)&&s.ignoreKeydown&&Object.assign(_,D.focusable.ignoreKeydown),E=h(E)}if(!f){const D=t.root;D._autoRoot&&!((a=o.ownerDocument)===null||a===void 0)&&a.body&&(f=D._autoRootCreate())}return m&&!b&&(y=!0),f?{root:f,modalizer:g,groupper:m,mover:b,groupperBeforeMover:y,modalizerInGroupper:k,rtl:c?!!C:void 0,uncontrolled:F,excludedFromMover:w,ignoreKeydown:D=>!!_[D.key]}:void 0}static getRoot(t,o){var r;const n=t.getParent;for(let i=o;i;i=n(i)){const s=(r=so(t,i))===null||r===void 0?void 0:r.root;if(s)return s}}onRoot(t,o){o?delete this.rootById[t.uid]:this.rootById[t.uid]=t}}class G0{constructor(){this._callbacks=[]}dispose(){this._callbacks=[],delete this._val}subscribe(t){const o=this._callbacks;o.indexOf(t)<0&&o.push(t)}subscribeFirst(t){const o=this._callbacks,r=o.indexOf(t);r>=0&&o.splice(r,1),o.unshift(t)}unsubscribe(t){const o=this._callbacks.indexOf(t);o>=0&&this._callbacks.splice(o,1)}setVal(t,o){this._val!==t&&(this._val=t,this._callCallbacks(t,o))}getVal(){return this._val}trigger(t,o){this._callCallbacks(t,o)}_callCallbacks(t,o){this._callbacks.forEach(r=>r(t,o))}}class lA{constructor(t){this._tabster=t}dispose(){}getProps(t){const o=so(this._tabster,t);return o&&o.focusable||{}}isFocusable(t,o,r,n){return z0(t,F0)&&(o||t.tabIndex!==-1)?(r||this.isVisible(t))&&(n||this.isAccessible(t)):!1}isVisible(t){if(!t.ownerDocument||t.nodeType!==Node.ELEMENT_NODE||rA(t))return!1;const o=t.ownerDocument.body.getBoundingClientRect();return!(o.width===0&&o.height===0)}isAccessible(t){var o;for(let r=t;r;r=ie.getParentElement(r)){const n=so(this._tabster,r);if(this._isHidden(r)||!((o=n?.focusable)===null||o===void 0?void 0:o.ignoreAriaDisabled)&&this._isDisabled(r))return!1}return!0}_isDisabled(t){return t.hasAttribute("disabled")}_isHidden(t){var o;const r=t.getAttribute("aria-hidden");return!!(r&&r.toLowerCase()==="true"&&!(!((o=this._tabster.modalizer)===null||o===void 0)&&o.isAugmented(t)))}findFirst(t,o){return this.findElement({...t},o)}findLast(t,o){return this.findElement({isBackward:!0,...t},o)}findNext(t,o){return this.findElement({...t},o)}findPrev(t,o){return this.findElement({...t,isBackward:!0},o)}findDefault(t,o){return this.findElement({...t,acceptCondition:r=>this.isFocusable(r,t.includeProgrammaticallyFocusable)&&!!this.getProps(r).isDefault},o)||null}findAll(t){return this._findElements(!0,t)||[]}findElement(t,o){const r=this._findElements(!1,t,o);return r&&r[0]}_findElements(t,o,r){var n,i,s;const{container:a,currentElement:c=null,includeProgrammaticallyFocusable:d,useActiveModalizer:h,ignoreAccessibility:f,modalizerId:g,isBackward:m,onElement:b}=o;r||(r={});const w=[];let{acceptCondition:y}=o;const k=!!y;if(!a)return null;y||(y=_=>this.isFocusable(_,d,!1,f));const C={container:a,modalizerUserId:g===void 0&&h?(n=this._tabster.modalizer)===null||n===void 0?void 0:n.activeId:g||((s=(i=ct.getTabsterContext(this._tabster,a))===null||i===void 0?void 0:i.modalizer)===null||s===void 0?void 0:s.userId),from:c||a,isBackward:m,isFindAll:t,acceptCondition:y,hasCustomCondition:k,includeProgrammaticallyFocusable:d,ignoreAccessibility:f,cachedGrouppers:{},cachedRadioGroups:{}},F=eg(a.ownerDocument,a,_=>this._acceptElement(_,C));if(!F)return null;const E=_=>{var P,D;const M=(P=C.foundElement)!==null&&P!==void 0?P:C.foundBackward;return M&&w.push(M),t?M&&(C.found=!1,delete C.foundElement,delete C.foundBackward,delete C.fromCtx,C.from=M,b&&!b(M))?!1:!!(M||_):(M&&r&&(r.uncontrolled=(D=ct.getTabsterContext(this._tabster,M))===null||D===void 0?void 0:D.uncontrolled),!!(_&&!M))};if(c||(r.outOfDOMOrder=!0),c&&ie.nodeContains(a,c))F.currentNode=c;else if(m){const _=H0(a);if(!_)return null;if(this._acceptElement(_,C)===NodeFilter.FILTER_ACCEPT&&!E(!0))return C.skippedFocusable&&(r.outOfDOMOrder=!0),w;F.currentNode=_}do m?F.previousNode():F.nextNode();while(E());return C.skippedFocusable&&(r.outOfDOMOrder=!0),w.length?w:null}_acceptElement(t,o){var r,n,i;if(o.found)return NodeFilter.FILTER_ACCEPT;const s=o.foundBackward;if(s&&(t===s||!ie.nodeContains(s,t)))return o.found=!0,o.foundElement=s,NodeFilter.FILTER_ACCEPT;const a=o.container;if(t===a)return NodeFilter.FILTER_SKIP;if(!ie.nodeContains(a,t)||ba(t)||ie.nodeContains(o.rejectElementsFrom,t))return NodeFilter.FILTER_REJECT;const c=o.currentCtx=ct.getTabsterContext(this._tabster,t);if(!c)return NodeFilter.FILTER_SKIP;if(N0(t))return this.isFocusable(t,void 0,!0,!0)&&(o.skippedFocusable=!0),NodeFilter.FILTER_SKIP;if(!o.hasCustomCondition&&(t.tagName==="IFRAME"||t.tagName==="WEBVIEW"))return this.isVisible(t)&&((r=c.modalizer)===null||r===void 0?void 0:r.userId)===((n=this._tabster.modalizer)===null||n===void 0?void 0:n.activeId)?(o.found=!0,o.rejectElementsFrom=o.foundElement=t,NodeFilter.FILTER_ACCEPT):NodeFilter.FILTER_REJECT;if(!o.ignoreAccessibility&&!this.isAccessible(t))return this.isFocusable(t,!1,!0,!0)&&(o.skippedFocusable=!0),NodeFilter.FILTER_REJECT;let d,h=o.fromCtx;h||(h=o.fromCtx=ct.getTabsterContext(this._tabster,o.from));const f=h?.mover;let g=c.groupper,m=c.mover;if(d=(i=this._tabster.modalizer)===null||i===void 0?void 0:i.acceptElement(t,o),d!==void 0&&(o.skippedFocusable=!0),d===void 0&&(g||m||f)){const b=g?.getElement(),w=f?.getElement();let y=m?.getElement();if(y&&ie.nodeContains(w,y)&&ie.nodeContains(a,w)&&(!b||!m||ie.nodeContains(w,b))&&(m=f,y=w),b){if(b===a||!ie.nodeContains(a,b))g=void 0;else if(!ie.nodeContains(b,t))return NodeFilter.FILTER_REJECT}if(y){if(!ie.nodeContains(a,y))m=void 0;else if(!ie.nodeContains(y,t))return NodeFilter.FILTER_REJECT}g&&m&&(y&&b&&!ie.nodeContains(b,y)?m=void 0:g=void 0),g&&(d=g.acceptElement(t,o)),m&&(d=m.acceptElement(t,o))}if(d===void 0&&(d=o.acceptCondition(t)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP,d===NodeFilter.FILTER_SKIP&&this.isFocusable(t,!1,!0,!0)&&(o.skippedFocusable=!0)),d===NodeFilter.FILTER_ACCEPT&&!o.found){if(!o.isFindAll&&rg(t)&&!t.checked){const b=t.name;let w=o.cachedRadioGroups[b];if(w||(w=nA(t),w&&(o.cachedRadioGroups[b]=w)),w?.checked&&w.checked!==t)return NodeFilter.FILTER_SKIP}o.isBackward?(o.foundBackward=t,d=NodeFilter.FILTER_SKIP):(o.found=!0,o.foundElement=t)}return d}}const Nt={Tab:"Tab",Enter:"Enter",Escape:"Escape",PageUp:"PageUp",PageDown:"PageDown",End:"End",Home:"Home",ArrowLeft:"ArrowLeft",ArrowUp:"ArrowUp",ArrowRight:"ArrowRight",ArrowDown:"ArrowDown"};function cA(e,t){var o;const r=e.getParent;let n=t;do{const i=(o=so(e,n))===null||o===void 0?void 0:o.uncontrolled;if(i&&e.uncontrolled.isUncontrolledCompletely(n,!!i.completely))return n;n=r(n)}while(n)}const j0={[On.Restorer]:0,[On.Deloser]:1,[On.EscapeGroupper]:2};class Lt extends G0{constructor(t,o){super(),this._init=()=>{const r=this._win(),n=r.document;n.addEventListener(jo,this._onFocusIn,!0),n.addEventListener(tc,this._onFocusOut,!0),r.addEventListener("keydown",this._onKeyDown,!0);const i=ie.getActiveElement(n);i&&i!==n.body&&this._setFocusedElement(i),this.subscribe(this._onChanged)},this._onFocusIn=r=>{const n=r.composedPath()[0];n&&this._setFocusedElement(n,r.detail.relatedTarget,r.detail.isFocusedProgrammatically)},this._onFocusOut=r=>{var n;this._setFocusedElement(void 0,(n=r.detail)===null||n===void 0?void 0:n.originalEvent.relatedTarget)},this._validateFocusedElement=r=>{},this._onKeyDown=r=>{if(r.key!==Nt.Tab||r.ctrlKey)return;const n=this.getVal();if(!n||!n.ownerDocument||n.contentEditable==="true")return;const i=this._tabster,s=i.controlTab,a=ct.getTabsterContext(i,n);if(!a||a.ignoreKeydown(r))return;const c=r.shiftKey,d=Lt.findNextTabbable(i,a,void 0,n,void 0,c,!0),h=a.root.getElement();if(!h)return;const f=d?.element,g=cA(i,n);if(f){const m=d.uncontrolled;if(a.uncontrolled||ie.nodeContains(m,n)){if(!d.outOfDOMOrder&&m===a.uncontrolled||g&&!ie.nodeContains(g,f))return;va.addPhantomDummyWithTarget(i,n,c,f);return}if(m&&i.focusable.isVisible(m)||f.tagName==="IFRAME"&&i.focusable.isVisible(f)){h.dispatchEvent(new wi({by:"root",owner:h,next:f,relatedEvent:r}))&&va.moveWithPhantomDummy(i,m??f,!1,c,r);return}(s||d?.outOfDOMOrder)&&h.dispatchEvent(new wi({by:"root",owner:h,next:f,relatedEvent:r}))&&(r.preventDefault(),r.stopImmediatePropagation(),rn(f))}else!g&&h.dispatchEvent(new wi({by:"root",owner:h,next:null,relatedEvent:r}))&&a.root.moveOutWithDefaultAction(c,r)},this._onChanged=(r,n)=>{var i,s;if(r)r.dispatchEvent(new B2(n));else{const a=(i=this._lastVal)===null||i===void 0?void 0:i.get();if(a){const c={...n},d=ct.getTabsterContext(this._tabster,a),h=(s=d?.modalizer)===null||s===void 0?void 0:s.userId;h&&(c.modalizerId=h),a.dispatchEvent(new O2(c))}}},this._tabster=t,this._win=o,t.queueInit(this._init)}dispose(){super.dispose();const t=this._win(),o=t.document;o.removeEventListener(jo,this._onFocusIn,!0),o.removeEventListener(tc,this._onFocusOut,!0),t.removeEventListener("keydown",this._onKeyDown,!0),this.unsubscribe(this._onChanged);const r=this._asyncFocus;r&&(t.clearTimeout(r.timeout),delete this._asyncFocus),delete Lt._lastResetElement,delete this._nextVal,delete this._lastVal}static forgetMemorized(t,o){var r,n;let i=Lt._lastResetElement,s=i&&i.get();s&&ie.nodeContains(o,s)&&delete Lt._lastResetElement,s=(n=(r=t._nextVal)===null||r===void 0?void 0:r.element)===null||n===void 0?void 0:n.get(),s&&ie.nodeContains(o,s)&&delete t._nextVal,i=t._lastVal,s=i&&i.get(),s&&ie.nodeContains(o,s)&&delete t._lastVal}getFocusedElement(){return this.getVal()}getLastFocusedElement(){var t;let o=(t=this._lastVal)===null||t===void 0?void 0:t.get();return(!o||o&&!tg(o.ownerDocument,o))&&(this._lastVal=o=void 0),o}focus(t,o,r,n){return this._tabster.focusable.isFocusable(t,o,!1,r)?(t.focus({preventScroll:n}),!0):!1}focusDefault(t){const o=this._tabster.focusable.findDefault({container:t});return o?(this._tabster.focusedElement.focus(o),!0):!1}getFirstOrLastTabbable(t,o){var r;const{container:n,ignoreAccessibility:i}=o;let s;if(n){const a=ct.getTabsterContext(this._tabster,n);a&&(s=(r=Lt.findNextTabbable(this._tabster,a,n,void 0,void 0,!t,i))===null||r===void 0?void 0:r.element)}return s&&!ie.nodeContains(n,s)&&(s=void 0),s||void 0}_focusFirstOrLast(t,o){const r=this.getFirstOrLastTabbable(t,o);return r?(this.focus(r,!1,!0),!0):!1}focusFirst(t){return this._focusFirstOrLast(!0,t)}focusLast(t){return this._focusFirstOrLast(!1,t)}resetFocus(t){if(!this._tabster.focusable.isVisible(t))return!1;if(this._tabster.focusable.isFocusable(t,!0,!0,!0))this.focus(t);else{const o=t.getAttribute("tabindex"),r=t.getAttribute("aria-hidden");t.tabIndex=-1,t.setAttribute("aria-hidden","true"),Lt._lastResetElement=new Wo(this._win,t),this.focus(t,!0,!0),this._setOrRemoveAttribute(t,"tabindex",o),this._setOrRemoveAttribute(t,"aria-hidden",r)}return!0}requestAsyncFocus(t,o,r){const n=this._tabster.getWindow(),i=this._asyncFocus;if(i){if(j0[t]>j0[i.source])return;n.clearTimeout(i.timeout)}this._asyncFocus={source:t,callback:o,timeout:n.setTimeout(()=>{this._asyncFocus=void 0,o()},r)}}cancelAsyncFocus(t){const o=this._asyncFocus;o?.source===t&&(this._tabster.getWindow().clearTimeout(o.timeout),this._asyncFocus=void 0)}_setOrRemoveAttribute(t,o,r){r===null?t.removeAttribute(o):t.setAttribute(o,r)}_setFocusedElement(t,o,r){var n,i;if(this._tabster._noop)return;const s={relatedTarget:o};if(t){const c=(n=Lt._lastResetElement)===null||n===void 0?void 0:n.get();if(Lt._lastResetElement=void 0,c===t||N0(t))return;s.isFocusedProgrammatically=r;const d=ct.getTabsterContext(this._tabster,t),h=(i=d?.modalizer)===null||i===void 0?void 0:i.userId;h&&(s.modalizerId=h)}const a=this._nextVal={element:t?new Wo(this._win,t):void 0,detail:s};t&&t!==this._val&&this._validateFocusedElement(t),this._nextVal===a&&this.setVal(t,s),this._nextVal=void 0}setVal(t,o){super.setVal(t,o),t&&(this._lastVal=new Wo(this._win,t))}static findNextTabbable(t,o,r,n,i,s,a){const c=r||o.root.getElement();if(!c)return null;let d=null;const h=Lt._isTabbingTimer,f=t.getWindow();h&&f.clearTimeout(h),Lt.isTabbing=!0,Lt._isTabbingTimer=f.setTimeout(()=>{delete Lt._isTabbingTimer,Lt.isTabbing=!1},0);const g=o.modalizer,m=o.groupper,b=o.mover,w=y=>{if(d=y.findNextTabbable(n,i,s,a),n&&!d?.element){const k=y!==g&&ie.getParentElement(y.getElement());if(k){const C=ct.getTabsterContext(t,n,{referenceElement:k});if(C){const F=y.getElement(),E=s?F:F&&H0(F)||F;E&&(d=Lt.findNextTabbable(t,C,r,E,k,s,a),d&&(d.outOfDOMOrder=!0))}}}};if(m&&b)w(o.groupperBeforeMover?m:b);else if(m)w(m);else if(b)w(b);else if(g)w(g);else{const y={container:c,currentElement:n,referenceElement:i,ignoreAccessibility:a,useActiveModalizer:!0},k={};d={element:t.focusable[s?"findPrev":"findNext"](y,k),outOfDOMOrder:k.outOfDOMOrder,uncontrolled:k.uncontrolled}}return d}}Lt.isTabbing=!1;class uA extends va{constructor(t,o,r,n){super(r,t,od.Groupper,n,!0),this._setHandlers((i,s,a)=>{var c,d;const h=t.get(),f=i.input;if(h&&f){const g=ct.getTabsterContext(r,f);if(g){let m;m=(c=o.findNextTabbable(a||void 0,void 0,s,!0))===null||c===void 0?void 0:c.element,m||(m=(d=Lt.findNextTabbable(r,g,void 0,i.isOutside?f:oA(h,!s),void 0,s,!0))===null||d===void 0?void 0:d.element),m&&rn(m)}}})}}class dA extends rc{constructor(t,o,r,n,i){super(t,o,n),this._shouldTabInside=!1,this.makeTabbable(!1),this._onDispose=r,t.controlTab||(this.dummyManager=new uA(this._element,this,t,i))}dispose(){var t;this._onDispose(this),this._element.get(),(t=this.dummyManager)===null||t===void 0||t.dispose(),delete this.dummyManager,delete this._first}findNextTabbable(t,o,r,n){const i=this.getElement();if(!i)return null;const s=ba(t)===i;if(!this._shouldTabInside&&t&&ie.nodeContains(i,t)&&!s)return{element:void 0,outOfDOMOrder:!0};const a=this.getFirst(!0);if(!t||!ie.nodeContains(i,t)||s)return{element:a,outOfDOMOrder:!0};const c=this._tabster;let d=null,h=!1,f;if(this._shouldTabInside&&a){const g={container:i,currentElement:t,referenceElement:o,ignoreAccessibility:n,useActiveModalizer:!0},m={};d=c.focusable[r?"findPrev":"findNext"](g,m),h=!!m.outOfDOMOrder,!d&&this._props.tabbability===Ju.LimitedTrapFocus&&(d=c.focusable[r?"findLast":"findFirst"]({container:i,ignoreAccessibility:n,useActiveModalizer:!0},m),h=!0),f=m.uncontrolled}return{element:d,uncontrolled:f,outOfDOMOrder:h}}makeTabbable(t){this._shouldTabInside=t||!this._props.tabbability}isActive(t){var o;const r=this.getElement()||null;let n=!0;for(let s=ie.getParentElement(r);s;s=ie.getParentElement(s)){const a=(o=so(this._tabster,s))===null||o===void 0?void 0:o.groupper;a&&(a._shouldTabInside||(n=!1))}let i=n?this._props.tabbability?this._shouldTabInside:!1:void 0;if(i&&t){const s=this._tabster.focusedElement.getFocusedElement();s&&(i=s!==this.getFirst(!0))}return i}getFirst(t){var o;const r=this.getElement();let n;if(r){if(t&&this._tabster.focusable.isFocusable(r))return r;n=(o=this._first)===null||o===void 0?void 0:o.get(),n||(n=this._tabster.focusable.findFirst({container:r,useActiveModalizer:!0})||void 0,n&&this.setFirst(n))}return n}setFirst(t){t?this._first=new Wo(this._tabster.getWindow,t):delete this._first}acceptElement(t,o){const r=o.cachedGrouppers,n=ie.getParentElement(this.getElement()),i=n&&ct.getTabsterContext(this._tabster,n),s=i?.groupper,a=i?.groupperBeforeMover?s:void 0;let c;const d=g=>{let m=r[g.id],b;return m?b=m.isActive:(b=this.isActive(!0),m=r[g.id]={isActive:b}),b};if(a&&(c=a.getElement(),!d(a)&&c&&o.container!==c&&ie.nodeContains(o.container,c)))return o.skippedFocusable=!0,NodeFilter.FILTER_REJECT;const h=d(this),f=this.getElement();if(f&&h!==!0){if(f===t&&s&&(c||(c=s.getElement()),c&&!d(s)&&ie.nodeContains(o.container,c)&&c!==o.container)||f!==t&&ie.nodeContains(f,t))return o.skippedFocusable=!0,NodeFilter.FILTER_REJECT;const g=r[this.id];let m;if("first"in g?m=g.first:m=g.first=this.getFirst(!0),m&&o.acceptCondition(m))return o.rejectElementsFrom=f,o.skippedFocusable=!0,m!==o.from?(o.found=!0,o.foundElement=m,NodeFilter.FILTER_ACCEPT):NodeFilter.FILTER_REJECT}}}class hA{constructor(t,o){this._current={},this._grouppers={},this._init=()=>{const r=this._win();this._tabster.focusedElement.subscribeFirst(this._onFocus);const n=r.document,i=ie.getActiveElement(n);i&&this._onFocus(i),n.addEventListener("mousedown",this._onMouseDown,!0),r.addEventListener("keydown",this._onKeyDown,!0),r.addEventListener(Xp,this._onMoveFocus)},this._onGroupperDispose=r=>{delete this._grouppers[r.id]},this._onFocus=r=>{r&&this._updateCurrent(r)},this._onMouseDown=r=>{let n=r.target;for(;n&&!this._tabster.focusable.isFocusable(n);)n=this._tabster.getParent(n);n&&this._updateCurrent(n)},this._onKeyDown=r=>{if(r.key!==Nt.Enter&&r.key!==Nt.Escape||r.ctrlKey||r.altKey||r.shiftKey||r.metaKey)return;const n=this._tabster.focusedElement.getFocusedElement();n&&this.handleKeyPress(n,r)},this._onMoveFocus=r=>{var n;const i=r.composedPath()[0],s=(n=r.detail)===null||n===void 0?void 0:n.action;i&&s!==void 0&&!r.defaultPrevented&&(s===oc.Enter?this._enterGroupper(i):this._escapeGroupper(i),r.stopImmediatePropagation())},this._tabster=t,this._win=o,t.queueInit(this._init)}dispose(){const t=this._win();this._tabster.focusedElement.cancelAsyncFocus(On.EscapeGroupper),this._current={},this._updateTimer&&(t.clearTimeout(this._updateTimer),delete this._updateTimer),this._tabster.focusedElement.unsubscribe(this._onFocus),t.document.removeEventListener("mousedown",this._onMouseDown,!0),t.removeEventListener("keydown",this._onKeyDown,!0),t.removeEventListener(Xp,this._onMoveFocus),Object.keys(this._grouppers).forEach(o=>{this._grouppers[o]&&(this._grouppers[o].dispose(),delete this._grouppers[o])})}createGroupper(t,o,r){const n=this._tabster,i=new dA(n,t,this._onGroupperDispose,o,r);this._grouppers[i.id]=i;const s=n.focusedElement.getFocusedElement();return s&&ie.nodeContains(t,s)&&!this._updateTimer&&(this._updateTimer=this._win().setTimeout(()=>{delete this._updateTimer,s===n.focusedElement.getFocusedElement()&&this._updateCurrent(s)},0)),i}forgetCurrentGrouppers(){this._current={}}_updateCurrent(t){var o;this._updateTimer&&(this._win().clearTimeout(this._updateTimer),delete this._updateTimer);const r=this._tabster,n={};for(let i=r.getParent(t);i;i=r.getParent(i)){const s=(o=so(r,i))===null||o===void 0?void 0:o.groupper;if(s){n[s.id]=!0,this._current[s.id]=s;const a=s.isActive()||t!==i&&(!s.getProps().delegated||s.getFirst(!1)!==t);s.makeTabbable(a)}}for(const i of Object.keys(this._current)){const s=this._current[i];s.id in n||(s.makeTabbable(!1),s.setFirst(void 0),delete this._current[i])}}_enterGroupper(t,o){const r=this._tabster,n=ct.getTabsterContext(r,t),i=n?.groupper||n?.modalizerInGroupper,s=i?.getElement();if(i&&s&&(t===s||i.getProps().delegated&&t===i.getFirst(!1))){const a=r.focusable.findNext({container:s,currentElement:t,useActiveModalizer:!0});if(a&&(!o||o&&s.dispatchEvent(new wi({by:"groupper",owner:s,next:a,relatedEvent:o}))))return o&&(o.preventDefault(),o.stopImmediatePropagation()),a.focus(),a}return null}_escapeGroupper(t,o,r){const n=this._tabster,i=ct.getTabsterContext(n,t);let s=i?.groupper||i?.modalizerInGroupper;const a=s?.getElement();if(s&&a&&ie.nodeContains(a,t)){let c;if(t!==a||r)c=s.getFirst(!0);else{const d=ie.getParentElement(a),h=d?ct.getTabsterContext(n,d):void 0;s=h?.groupper,c=s?.getFirst(!0)}if(c&&(!o||o&&a.dispatchEvent(new wi({by:"groupper",owner:a,next:c,relatedEvent:o}))))return s&&s.makeTabbable(!1),c.focus(),c}return null}moveFocus(t,o){return o===oc.Enter?this._enterGroupper(t):this._escapeGroupper(t)}handleKeyPress(t,o,r){const n=this._tabster,i=ct.getTabsterContext(n,t);if(i&&(i?.groupper||i?.modalizerInGroupper)){if(n.focusedElement.cancelAsyncFocus(On.EscapeGroupper),i.ignoreKeydown(o))return;if(o.key===Nt.Enter)this._enterGroupper(t,o);else if(o.key===Nt.Escape){const s=n.focusedElement.getFocusedElement();n.focusedElement.requestAsyncFocus(On.EscapeGroupper,()=>{s!==n.focusedElement.getFocusedElement()&&(r&&!s||!r)||this._escapeGroupper(t,o,r)},0)}}}}class fA extends G0{constructor(t){super(),this._onChange=o=>{this.setVal(o,void 0)},this._keyborg=Yu(t()),this._keyborg.subscribe(this._onChange)}dispose(){super.dispose(),this._keyborg&&(this._keyborg.unsubscribe(this._onChange),Qu(this._keyborg),delete this._keyborg)}setNavigatingWithKeyboard(t){var o;(o=this._keyborg)===null||o===void 0||o.setVal(t)}isNavigatingWithKeyboard(){var t;return!!(!((t=this._keyborg)===null||t===void 0)&&t.isNavigatingWithKeyboard())}}let pA=0;const ig="aria-hidden";class gA extends va{constructor(t,o,r){super(o,t,od.Modalizer,r),this._setHandlers((n,i)=>{var s,a;const c=t.get(),d=c&&((s=ct.getRoot(o,c))===null||s===void 0?void 0:s.getElement()),h=n.input;let f;if(d&&h){const g=ba(h),m=ct.getTabsterContext(o,g||h);m&&(f=(a=Lt.findNextTabbable(o,m,d,h,void 0,i,!0))===null||a===void 0?void 0:a.element),f&&rn(f)}})}}class mA extends rc{constructor(t,o,r,n,i,s){super(t,o,n),this._wasFocused=0,this.userId=n.id,this._onDispose=r,this._activeElements=s,t.controlTab||(this.dummyManager=new gA(this._element,t,i))}makeActive(t){if(this._isActive!==t){this._isActive=t;const o=this.getElement();if(o){const r=this._activeElements,n=r.map(i=>i.get()).indexOf(o);t?n<0&&r.push(new Wo(this._tabster.getWindow,o)):n>=0&&r.splice(n,1)}this._dispatchEvent(t)}}focused(t){return t||(this._wasFocused=++pA),this._wasFocused}setProps(t){t.id&&(this.userId=t.id),this._props={...t}}dispose(){var t;this.makeActive(!1),this._onDispose(this),(t=this.dummyManager)===null||t===void 0||t.dispose(),delete this.dummyManager,this._activeElements=[],this._remove()}isActive(){return!!this._isActive}contains(t){return ie.nodeContains(this.getElement(),t)}findNextTabbable(t,o,r,n){var i,s;if(!this.getElement())return null;const c=this._tabster;let d=null,h=!1,f;const g=t&&((i=ct.getRoot(c,t))===null||i===void 0?void 0:i.getElement());if(g){const m={container:g,currentElement:t,referenceElement:o,ignoreAccessibility:n,useActiveModalizer:!0},b={};d=c.focusable[r?"findPrev":"findNext"](m,b),!d&&this._props.isTrapped&&(!((s=c.modalizer)===null||s===void 0)&&s.activeId)?(d=c.focusable[r?"findLast":"findFirst"]({container:g,ignoreAccessibility:n,useActiveModalizer:!0},b),d===null&&(d=t),h=!0):h=!!b.outOfDOMOrder,f=b.uncontrolled}return{element:d,uncontrolled:f,outOfDOMOrder:h}}_dispatchEvent(t,o){const r=this.getElement();let n=!1;if(r){const i=o?this._activeElements.map(s=>s.get()):[r];for(const s of i)if(s){const a={id:this.userId,element:r},c=t?new L2(a):new z2(a);s.dispatchEvent(c),c.defaultPrevented&&(n=!0)}}return n}_remove(){}}class vA{constructor(t,o,r){this._onModalizerDispose=i=>{const s=i.id,a=i.userId,c=this._parts[a];if(delete this._modalizers[s],c&&(delete c[s],Object.keys(c).length===0)){delete this._parts[a];const d=this._activationHistory,h=[];let f;for(let g=d.length;g--;){const m=d[g];m!==a&&m!==f&&(f=m,(m||h.length>0)&&h.unshift(m))}if(this._activationHistory=h,this.activeId===a){const g=h[0],m=g?Object.values(this._parts[g])[0]:void 0;this.setActive(m)}}},this._onKeyDown=i=>{var s;if(i.key!==Nt.Escape)return;const a=this._tabster,c=a.focusedElement.getFocusedElement();if(c){const d=ct.getTabsterContext(a,c),h=d?.modalizer;if(d&&!d.groupper&&h?.isActive()&&!d.ignoreKeydown(i)){const f=h.userId;if(f){const g=this._parts[f];if(g){const m=Object.keys(g).map(b=>{var w;const y=g[b],k=y.getElement();let C;return k&&(C=(w=so(a,k))===null||w===void 0?void 0:w.groupper),y&&k&&C?{el:k,focusedSince:y.focused(!0)}:{focusedSince:0}}).filter(b=>b.focusedSince>0).sort((b,w)=>b.focusedSince>w.focusedSince?-1:b.focusedSince<w.focusedSince?1:0);if(m.length){const b=m[0].el;b&&((s=a.groupper)===null||s===void 0||s.handleKeyPress(b,i,!0))}}}}}},this._onFocus=(i,s)=>{var a;const c=this._tabster,d=i&&ct.getTabsterContext(c,i);if(!d||!i)return;const h=this._augMap;for(let b=i;b;b=ie.getParentElement(b))h.has(b)&&(h.delete(b),og(c,b,ig));let f=d.modalizer;const g=so(c,i),m=g?.modalizer;if(m&&(m.focused(),m.userId===this.activeId&&g.groupper)){const b=c.getParent(i),w=b&&((a=ct.getTabsterContext(c,b))===null||a===void 0?void 0:a.modalizer);if(w)f=w;else{this.setActive(void 0);return}}if(f?.focused(),f?.userId===this.activeId){this.currentIsOthersAccessible=f?.getProps().isOthersAccessible;return}if(s.isFocusedProgrammatically||this.currentIsOthersAccessible||f?.getProps().isAlwaysAccessible)this.setActive(f);else{const b=this._win();b.clearTimeout(this._restoreModalizerFocusTimer),this._restoreModalizerFocusTimer=b.setTimeout(()=>this._restoreModalizerFocus(i),100)}},this._tabster=t,this._win=t.getWindow,this._modalizers={},this._parts={},this._augMap=new WeakMap,this._aug=[],this._alwaysAccessibleSelector=o,this._accessibleCheck=r,this._activationHistory=[],this.activeElements=[],t.controlTab||t.root.addDummyInputs(),this._win().addEventListener("keydown",this._onKeyDown,!0),t.queueInit(()=>{this._tabster.focusedElement.subscribe(this._onFocus)})}dispose(){const t=this._win();t.removeEventListener("keydown",this._onKeyDown,!0),Object.keys(this._modalizers).forEach(o=>{this._modalizers[o]&&(this._modalizers[o].dispose(),delete this._modalizers[o])}),t.clearTimeout(this._restoreModalizerFocusTimer),t.clearTimeout(this._hiddenUpdateTimer),this._parts={},delete this.activeId,this.activeElements=[],this._augMap=new WeakMap,this._aug=[],this._tabster.focusedElement.unsubscribe(this._onFocus)}createModalizer(t,o,r){var n;const i=new mA(this._tabster,t,this._onModalizerDispose,o,r,this.activeElements),s=i.id,a=o.id;this._modalizers[s]=i;let c=this._parts[a];c||(c=this._parts[a]={}),c[s]=i;const d=(n=this._tabster.focusedElement.getFocusedElement())!==null&&n!==void 0?n:null;return t!==d&&ie.nodeContains(t,d)&&(a!==this.activeId?this.setActive(i):i.makeActive(!0)),i}isAugmented(t){return this._augMap.has(t)}hiddenUpdate(){this._hiddenUpdateTimer||(this._hiddenUpdateTimer=this._win().setTimeout(()=>{delete this._hiddenUpdateTimer,this._hiddenUpdate()},250))}setActive(t){const o=t?.userId,r=this.activeId;if(r===o)return;if(this.activeId=o,r){const i=this._parts[r];if(i)for(const s of Object.keys(i))i[s].makeActive(!1)}if(o){const i=this._parts[o];if(i)for(const s of Object.keys(i))i[s].makeActive(!0)}this.currentIsOthersAccessible=t?.getProps().isOthersAccessible,this.hiddenUpdate();const n=this._activationHistory;n[0]!==o&&(o!==void 0||n.length>0)&&n.unshift(o)}focus(t,o,r){const n=this._tabster,i=ct.getTabsterContext(n,t),s=i?.modalizer;if(s){this.setActive(s);const a=s.getProps(),c=s.getElement();if(c){if(o===void 0&&(o=a.isNoFocusFirst),!o&&n.keyboardNavigation.isNavigatingWithKeyboard()&&n.focusedElement.focusFirst({container:c})||(r===void 0&&(r=a.isNoFocusDefault),!r&&n.focusedElement.focusDefault(c)))return!0;n.focusedElement.resetFocus(c)}}return!1}activate(t){var o;const r=t?(o=ct.getTabsterContext(this._tabster,t))===null||o===void 0?void 0:o.modalizer:void 0;return!t||r?(this.setActive(r),!0):!1}acceptElement(t,o){var r;const n=o.modalizerUserId,i=(r=o.currentCtx)===null||r===void 0?void 0:r.modalizer;if(n)for(const a of this.activeElements){const c=a.get();if(c&&(ie.nodeContains(t,c)||c===t))return NodeFilter.FILTER_SKIP}const s=n===i?.userId||!n&&i?.getProps().isAlwaysAccessible?void 0:NodeFilter.FILTER_SKIP;return s!==void 0&&(o.skippedFocusable=!0),s}_hiddenUpdate(){var t;const o=this._tabster,r=o.getWindow().document.body,n=this.activeId,i=this._parts,s=[],a=[],c=this._alwaysAccessibleSelector,d=c?Array.from(ie.querySelectorAll(r,c)):[],h=[];for(const k of Object.keys(i)){const C=i[k];for(const F of Object.keys(C)){const E=C[F],_=E.getElement(),D=E.getProps().isAlwaysAccessible;_&&(k===n?(h.push(_),this.currentIsOthersAccessible||s.push(_)):D?d.push(_):a.push(_))}}const f=this._augMap,g=s.length>0?[...s,...d]:void 0,m=[],b=new WeakMap,w=(k,C)=>{var F;const E=k.tagName;if(E==="SCRIPT"||E==="STYLE")return;let _=!1;f.has(k)?C?_=!0:(f.delete(k),og(o,k,ig)):C&&!(!((F=this._accessibleCheck)===null||F===void 0)&&F.call(this,k,h))&&og(o,k,ig,"true")&&(f.set(k,!0),_=!0),_&&(m.push(new Wo(o.getWindow,k)),b.set(k,!0))},y=k=>{var C;for(let F=ie.getFirstElementChild(k);F;F=ie.getNextElementSibling(F)){let E=!1,_=!1,P=!1;if(g){const D=o.getParent(F);for(const M of g){if(F===M){E=!0;break}if(ie.nodeContains(F,M)){_=!0;break}else ie.nodeContains(M,D)&&(P=!0)}_||!((C=F.__tabsterElementFlags)===null||C===void 0)&&C.noDirectAriaHidden?y(F):!E&&!P&&w(F,!0)}else w(F,!1)}};g||d.forEach(k=>w(k,!1)),a.forEach(k=>w(k,!0)),r&&y(r),(t=this._aug)===null||t===void 0||t.map(k=>k.get()).forEach(k=>{k&&!b.get(k)&&w(k,!1)}),this._aug=m,this._augMap=b}_restoreModalizerFocus(t){var o;const r=t?.ownerDocument;if(!t||!r)return;const n=this._tabster.focusedElement.getFocusedElement(),i=n&&((o=ct.getTabsterContext(this._tabster,n))===null||o===void 0?void 0:o.modalizer);if(!n||n&&i?.userId===this.activeId)return;const s=this._tabster,a=ct.getTabsterContext(s,t),c=a?.modalizer,d=this.activeId;if(!c&&!d||c&&d===c.userId)return;const h=a?.root.getElement();if(h){let f=s.focusable.findFirst({container:h,useActiveModalizer:!0});if(f){if(t.compareDocumentPosition(f)&document.DOCUMENT_POSITION_PRECEDING&&(f=s.focusable.findLast({container:h,useActiveModalizer:!0}),!f))throw new Error("Something went wrong.");s.focusedElement.focus(f);return}}t.blur()}}const bA=["input","textarea","*[contenteditable]"].join(", ");class wA extends va{constructor(t,o,r,n){super(o,t,od.Mover,n),this._onFocusDummyInput=i=>{var s,a;const c=this._element.get(),d=i.input;if(c&&d){const h=ct.getTabsterContext(this._tabster,c);let f;h&&(f=(s=Lt.findNextTabbable(this._tabster,h,void 0,d,void 0,!i.isFirst,!0))===null||s===void 0?void 0:s.element);const g=(a=this._getMemorized())===null||a===void 0?void 0:a.get();g&&this._tabster.focusable.isFocusable(g)&&(f=g),f&&rn(f)}},this._tabster=o,this._getMemorized=r,this._setHandlers(this._onFocusDummyInput)}}const sg=1,W0=2,q0=3;class CA extends rc{constructor(t,o,r,n,i){var s;super(t,o,n),this._visible={},this._onIntersection=c=>{for(const d of c){const h=d.target,f=ed(this._win,h);let g,m=this._fullyVisible;if(d.intersectionRatio>=.25?(g=d.intersectionRatio>=.75?bi.Visible:bi.PartiallyVisible,g===bi.Visible&&(m=f)):g=bi.Invisible,this._visible[f]!==g){g===void 0?(delete this._visible[f],m===f&&delete this._fullyVisible):(this._visible[f]=g,this._fullyVisible=m);const b=this.getState(h);b&&h.dispatchEvent(new _0(b))}}},this._win=t.getWindow,this.visibilityTolerance=(s=n.visibilityTolerance)!==null&&s!==void 0?s:.8,(this._props.trackState||this._props.visibilityAware)&&(this._intersectionObserver=new IntersectionObserver(this._onIntersection,{threshold:[0,.25,.5,.75,1]}),this._observeState()),this._onDispose=r;const a=()=>n.memorizeCurrent?this._current:void 0;t.controlTab||(this.dummyManager=new wA(this._element,t,a,i))}dispose(){var t;this._onDispose(this),this._intersectionObserver&&(this._intersectionObserver.disconnect(),delete this._intersectionObserver),delete this._current,delete this._fullyVisible,delete this._allElements,delete this._updateQueue,this._unobserve&&(this._unobserve(),delete this._unobserve);const o=this._win();this._setCurrentTimer&&(o.clearTimeout(this._setCurrentTimer),delete this._setCurrentTimer),this._updateTimer&&(o.clearTimeout(this._updateTimer),delete this._updateTimer),(t=this.dummyManager)===null||t===void 0||t.dispose(),delete this.dummyManager}setCurrent(t){t?this._current=new Wo(this._win,t):this._current=void 0,(this._props.trackState||this._props.visibilityAware)&&!this._setCurrentTimer&&(this._setCurrentTimer=this._win().setTimeout(()=>{var o;delete this._setCurrentTimer;const r=[];this._current!==this._prevCurrent&&(r.push(this._current),r.push(this._prevCurrent),this._prevCurrent=this._current);for(const n of r){const i=n?.get();if(i&&((o=this._allElements)===null||o===void 0?void 0:o.get(i))===this){const s=this._props;if(i&&(s.visibilityAware!==void 0||s.trackState)){const a=this.getState(i);a&&i.dispatchEvent(new _0(a))}}}}))}getCurrent(){var t;return((t=this._current)===null||t===void 0?void 0:t.get())||null}findNextTabbable(t,o,r,n){const i=this.getElement(),s=i&&ba(t)===i;if(!i)return null;let a=null,c=!1,d;if(this._props.tabbable||s||t&&!ie.nodeContains(i,t)){const h={currentElement:t,referenceElement:o,container:i,ignoreAccessibility:n,useActiveModalizer:!0},f={};a=this._tabster.focusable[r?"findPrev":"findNext"](h,f),c=!!f.outOfDOMOrder,d=f.uncontrolled}return{element:a,uncontrolled:d,outOfDOMOrder:c}}acceptElement(t,o){var r,n;if(!Lt.isTabbing)return!((r=o.currentCtx)===null||r===void 0)&&r.excludedFromMover?NodeFilter.FILTER_REJECT:void 0;const{memorizeCurrent:i,visibilityAware:s,hasDefault:a=!0}=this._props,c=this.getElement();if(c&&(i||s||a)&&(!ie.nodeContains(c,o.from)||ba(o.from)===c)){let d;if(i){const h=(n=this._current)===null||n===void 0?void 0:n.get();h&&o.acceptCondition(h)&&(d=h)}if(!d&&a&&(d=this._tabster.focusable.findDefault({container:c,useActiveModalizer:!0})),!d&&s&&(d=this._tabster.focusable.findElement({container:c,useActiveModalizer:!0,isBackward:o.isBackward,acceptCondition:h=>{var f;const g=ed(this._win,h),m=this._visible[g];return c!==h&&!!(!((f=this._allElements)===null||f===void 0)&&f.get(h))&&o.acceptCondition(h)&&(m===bi.Visible||m===bi.PartiallyVisible&&(s===bi.PartiallyVisible||!this._fullyVisible))}})),d)return o.found=!0,o.foundElement=d,o.rejectElementsFrom=c,o.skippedFocusable=!0,NodeFilter.FILTER_ACCEPT}}_observeState(){const t=this.getElement();if(this._unobserve||!t||typeof MutationObserver>"u")return;const o=this._win(),r=this._allElements=new WeakMap,n=this._tabster.focusable;let i=this._updateQueue=[];const s=ie.createMutationObserver(m=>{for(const b of m){const w=b.target,y=b.removedNodes,k=b.addedNodes;if(b.type==="attributes")b.attributeName==="tabindex"&&i.push({element:w,type:W0});else{for(let C=0;C<y.length;C++)i.push({element:y[C],type:q0});for(let C=0;C<k.length;C++)i.push({element:k[C],type:sg})}}f()}),a=(m,b)=>{var w,y;const k=r.get(m);k&&b&&((w=this._intersectionObserver)===null||w===void 0||w.unobserve(m),r.delete(m)),!k&&!b&&(r.set(m,this),(y=this._intersectionObserver)===null||y===void 0||y.observe(m))},c=m=>{const b=n.isFocusable(m);r.get(m)?b||a(m,!0):b&&a(m)},d=m=>{const{mover:b}=g(m);if(b&&b!==this)if(b.getElement()===m&&n.isFocusable(m))a(m);else return;const w=eg(o.document,m,y=>{const{mover:k,groupper:C}=g(y);if(k&&k!==this)return NodeFilter.FILTER_REJECT;const F=C?.getFirst(!0);return C&&C.getElement()!==y&&F&&F!==y?NodeFilter.FILTER_REJECT:(n.isFocusable(y)&&a(y),NodeFilter.FILTER_SKIP)});if(w)for(w.currentNode=m;w.nextNode(););},h=m=>{r.get(m)&&a(m,!0);for(let w=ie.getFirstElementChild(m);w;w=ie.getNextElementSibling(w))h(w)},f=()=>{!this._updateTimer&&i.length&&(this._updateTimer=o.setTimeout(()=>{delete this._updateTimer;for(const{element:m,type:b}of i)switch(b){case W0:c(m);break;case sg:d(m);break;case q0:h(m);break}i=this._updateQueue=[]},0))},g=m=>{const b={};for(let w=m;w;w=ie.getParentElement(w)){const y=so(this._tabster,w);if(y&&(y.groupper&&!b.groupper&&(b.groupper=y.groupper),y.mover)){b.mover=y.mover;break}}return b};i.push({element:t,type:sg}),f(),s.observe(t,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["tabindex"]}),this._unobserve=()=>{s.disconnect()}}getState(t){const o=ed(this._win,t);if(o in this._visible){const r=this._visible[o]||bi.Invisible;return{isCurrent:this._current?this._current.get()===t:void 0,visibility:r}}}}function yA(e,t,o,r,n,i,s,a){const c=o<n?n-o:s<e?e-s:0,d=r<i?i-r:a<t?t-a:0;return c===0?d:d===0?c:Math.sqrt(c*c+d*d)}class SA{constructor(t,o){this._init=()=>{const r=this._win();r.addEventListener("keydown",this._onKeyDown,!0),r.addEventListener(Kp,this._onMoveFocus),r.addEventListener(E0,this._onMemorizedElement),this._tabster.focusedElement.subscribe(this._onFocus)},this._onMoverDispose=r=>{delete this._movers[r.id]},this._onFocus=r=>{var n;let i=r,s=r;for(let a=ie.getParentElement(r);a;a=ie.getParentElement(a)){const c=(n=so(this._tabster,a))===null||n===void 0?void 0:n.mover;c&&(c.setCurrent(s),i=void 0),!i&&this._tabster.focusable.isFocusable(a)&&(i=s=a)}},this._onKeyDown=async r=>{var n;if(this._ignoredInputTimer&&(this._win().clearTimeout(this._ignoredInputTimer),delete this._ignoredInputTimer),(n=this._ignoredInputResolve)===null||n===void 0||n.call(this,!1),r.ctrlKey||r.altKey||r.shiftKey||r.metaKey)return;const i=r.key;let s;if(i===Nt.ArrowDown?s=Ot.ArrowDown:i===Nt.ArrowRight?s=Ot.ArrowRight:i===Nt.ArrowUp?s=Ot.ArrowUp:i===Nt.ArrowLeft?s=Ot.ArrowLeft:i===Nt.PageDown?s=Ot.PageDown:i===Nt.PageUp?s=Ot.PageUp:i===Nt.Home?s=Ot.Home:i===Nt.End&&(s=Ot.End),!s)return;const a=this._tabster.focusedElement.getFocusedElement();!a||await this._isIgnoredInput(a,i)||this._moveFocus(a,s,r)},this._onMoveFocus=r=>{var n;const i=r.composedPath()[0],s=(n=r.detail)===null||n===void 0?void 0:n.key;i&&s!==void 0&&!r.defaultPrevented&&(this._moveFocus(i,s),r.stopImmediatePropagation())},this._onMemorizedElement=r=>{var n;const i=r.composedPath()[0];let s=(n=r.detail)===null||n===void 0?void 0:n.memorizedElement;if(i){const a=ct.getTabsterContext(this._tabster,i),c=a?.mover;c&&(s&&!ie.nodeContains(c.getElement(),s)&&(s=void 0),c.setCurrent(s),r.stopImmediatePropagation())}},this._tabster=t,this._win=o,this._movers={},t.queueInit(this._init)}dispose(){var t;const o=this._win();this._tabster.focusedElement.unsubscribe(this._onFocus),(t=this._ignoredInputResolve)===null||t===void 0||t.call(this,!1),this._ignoredInputTimer&&(o.clearTimeout(this._ignoredInputTimer),delete this._ignoredInputTimer),o.removeEventListener("keydown",this._onKeyDown,!0),o.removeEventListener(Kp,this._onMoveFocus),o.removeEventListener(E0,this._onMemorizedElement),Object.keys(this._movers).forEach(r=>{this._movers[r]&&(this._movers[r].dispose(),delete this._movers[r])})}createMover(t,o,r){const n=new CA(this._tabster,t,this._onMoverDispose,o,r);return this._movers[n.id]=n,n}moveFocus(t,o){return this._moveFocus(t,o)}_moveFocus(t,o,r){var n,i;const s=this._tabster,a=ct.getTabsterContext(s,t,{checkRtl:!0});if(!a||!a.mover||a.excludedFromMover||r&&a.ignoreKeydown(r))return null;const c=a.mover,d=c.getElement();if(a.groupperBeforeMover){const M=a.groupper;if(M&&!M.isActive(!0)){for(let A=ie.getParentElement(M.getElement());A&&A!==d;A=ie.getParentElement(A))if(!((i=(n=so(s,A))===null||n===void 0?void 0:n.groupper)===null||i===void 0)&&i.isActive(!0))return null}else return null}if(!d)return null;const h=s.focusable,f=c.getProps(),g=f.direction||Ar.Both,m=g===Ar.Both,b=m||g===Ar.Vertical,w=m||g===Ar.Horizontal,y=g===Ar.GridLinear,k=y||g===Ar.Grid,C=f.cyclic;let F,E,_,P=0,D=0;if(k&&(_=t.getBoundingClientRect(),P=Math.ceil(_.left),D=Math.floor(_.right)),a.rtl&&(o===Ot.ArrowRight?o=Ot.ArrowLeft:o===Ot.ArrowLeft&&(o=Ot.ArrowRight)),o===Ot.ArrowDown&&b||o===Ot.ArrowRight&&(w||k))if(F=h.findNext({currentElement:t,container:d,useActiveModalizer:!0}),F&&k){const M=Math.ceil(F.getBoundingClientRect().left);!y&&D>M&&(F=void 0)}else!F&&C&&(F=h.findFirst({container:d,useActiveModalizer:!0}));else if(o===Ot.ArrowUp&&b||o===Ot.ArrowLeft&&(w||k))if(F=h.findPrev({currentElement:t,container:d,useActiveModalizer:!0}),F&&k){const M=Math.floor(F.getBoundingClientRect().right);!y&&M>P&&(F=void 0)}else!F&&C&&(F=h.findLast({container:d,useActiveModalizer:!0}));else if(o===Ot.Home)k?h.findElement({container:d,currentElement:t,useActiveModalizer:!0,isBackward:!0,acceptCondition:M=>{var A;if(!h.isFocusable(M))return!1;const O=Math.ceil((A=M.getBoundingClientRect().left)!==null&&A!==void 0?A:0);return M!==t&&P<=O?!0:(F=M,!1)}}):F=h.findFirst({container:d,useActiveModalizer:!0});else if(o===Ot.End)k?h.findElement({container:d,currentElement:t,useActiveModalizer:!0,acceptCondition:M=>{var A;if(!h.isFocusable(M))return!1;const O=Math.ceil((A=M.getBoundingClientRect().left)!==null&&A!==void 0?A:0);return M!==t&&P>=O?!0:(F=M,!1)}}):F=h.findLast({container:d,useActiveModalizer:!0});else if(o===Ot.PageUp){if(h.findElement({currentElement:t,container:d,useActiveModalizer:!0,isBackward:!0,acceptCondition:M=>h.isFocusable(M)?B0(this._win,M,c.visibilityTolerance)?(F=M,!1):!0:!1}),k&&F){const M=Math.ceil(F.getBoundingClientRect().left);h.findElement({currentElement:F,container:d,useActiveModalizer:!0,acceptCondition:A=>{if(!h.isFocusable(A))return!1;const O=Math.ceil(A.getBoundingClientRect().left);return P<O||M>=O?!0:(F=A,!1)}})}E=!1}else if(o===Ot.PageDown){if(h.findElement({currentElement:t,container:d,useActiveModalizer:!0,acceptCondition:M=>h.isFocusable(M)?B0(this._win,M,c.visibilityTolerance)?(F=M,!1):!0:!1}),k&&F){const M=Math.ceil(F.getBoundingClientRect().left);h.findElement({currentElement:F,container:d,useActiveModalizer:!0,isBackward:!0,acceptCondition:A=>{if(!h.isFocusable(A))return!1;const O=Math.ceil(A.getBoundingClientRect().left);return P>O||M<=O?!0:(F=A,!1)}})}E=!0}else if(k){const M=o===Ot.ArrowUp,A=P,O=Math.ceil(_.top),K=D,W=Math.floor(_.bottom);let L,V,U=0;h.findAll({container:d,currentElement:t,isBackward:M,onElement:$=>{const Y=$.getBoundingClientRect(),I=Math.ceil(Y.left),X=Math.ceil(Y.top),j=Math.floor(Y.right),z=Math.floor(Y.bottom);if(M&&O<z||!M&&W>X)return!0;const H=Math.ceil(Math.min(K,j))-Math.floor(Math.max(A,I)),te=Math.ceil(Math.min(K-A,j-I));if(H>0&&te>=H){const re=H/te;re>U&&(L=$,U=re)}else if(U===0){const re=yA(A,O,K,W,I,X,j,z);(V===void 0||re<V)&&(V=re,L=$)}else if(U>0)return!1;return!0}}),F=L}return F&&(!r||r&&d.dispatchEvent(new wi({by:"mover",owner:d,next:F,relatedEvent:r})))?(E!==void 0&&K2(this._win,F,E),r&&(r.preventDefault(),r.stopImmediatePropagation()),rn(F),F):null}async _isIgnoredInput(t,o){if(t.getAttribute("aria-expanded")==="true"&&(t.hasAttribute("aria-activedescendant")||t.getAttribute("role")==="combobox"))return!0;if(z0(t,bA)){let r=0,n=0,i=0,s;if(t.tagName==="INPUT"||t.tagName==="TEXTAREA"){const a=t.type;if(i=(t.value||"").length,a==="email"||a==="number"){if(i){const d=ie.getSelection(t);if(d){const h=d.toString().length,f=o===Nt.ArrowLeft||o===Nt.ArrowUp;if(d.modify("extend",f?"backward":"forward","character"),h!==d.toString().length)return d.modify("extend",f?"forward":"backward","character"),!0;i=0}}}else{const d=t.selectionStart;if(d===null)return a==="hidden";r=d||0,n=t.selectionEnd||0}}else t.contentEditable==="true"&&(s=new(Y2(this._win))(a=>{this._ignoredInputResolve=m=>{delete this._ignoredInputResolve,a(m)};const c=this._win();this._ignoredInputTimer&&c.clearTimeout(this._ignoredInputTimer);const{anchorNode:d,focusNode:h,anchorOffset:f,focusOffset:g}=ie.getSelection(t)||{};this._ignoredInputTimer=c.setTimeout(()=>{var m,b,w;delete this._ignoredInputTimer;const{anchorNode:y,focusNode:k,anchorOffset:C,focusOffset:F}=ie.getSelection(t)||{};if(y!==d||k!==h||C!==f||F!==g){(m=this._ignoredInputResolve)===null||m===void 0||m.call(this,!1);return}if(r=C||0,n=F||0,i=((b=t.textContent)===null||b===void 0?void 0:b.length)||0,y&&k&&ie.nodeContains(t,y)&&ie.nodeContains(t,k)&&y!==t){let E=!1;const _=P=>{if(P===y)E=!0;else if(P===k)return!0;const D=P.textContent;if(D&&!ie.getFirstChild(P)){const A=D.length;E?k!==y&&(n+=A):(r+=A,n+=A)}let M=!1;for(let A=ie.getFirstChild(P);A&&!M;A=A.nextSibling)M=_(A);return M};_(t)}(w=this._ignoredInputResolve)===null||w===void 0||w.call(this,!0)},0)}));if(s&&!await s||r!==n||r>0&&(o===Nt.ArrowLeft||o===Nt.ArrowUp||o===Nt.Home)||r<i&&(o===Nt.ArrowRight||o===Nt.ArrowDown||o===Nt.End))return!0}return!1}}function xA(e,t,o,r){if(typeof MutationObserver>"u")return()=>{};const n=t.getWindow;let i;const s=h=>{var f,g,m,b,w;const y=new Set;for(const k of h){const C=k.target,F=k.removedNodes,E=k.addedNodes;if(k.type==="attributes")k.attributeName===ar&&(y.has(C)||o(t,C));else{for(let _=0;_<F.length;_++){const P=F[_];y.add(P),a(P,!0),(g=(f=t._dummyObserver).domChanged)===null||g===void 0||g.call(f,C)}for(let _=0;_<E.length;_++)a(E[_]),(b=(m=t._dummyObserver).domChanged)===null||b===void 0||b.call(m,C)}}y.clear(),(w=t.modalizer)===null||w===void 0||w.hiddenUpdate()};function a(h,f){i||(i=Nn(n).elementByUId),c(h,f);const g=eg(e,h,m=>c(m,f));if(g)for(;g.nextNode(););}function c(h,f){var g;if(!h.getAttribute)return NodeFilter.FILTER_SKIP;const m=h.__tabsterElementUID;return m&&i&&(f?delete i[m]:(g=i[m])!==null&&g!==void 0||(i[m]=new Wo(n,h))),(so(t,h)||h.hasAttribute(ar))&&o(t,h,f),NodeFilter.FILTER_SKIP}const d=ie.createMutationObserver(s);return r&&a(n().document.body),d.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:[ar]}),()=>{d.disconnect()}}class kA{constructor(t){this._isUncontrolledCompletely=t}isUncontrolledCompletely(t,o){var r;const n=(r=this._isUncontrolledCompletely)===null||r===void 0?void 0:r.call(this,t,o);return n===void 0?o:n}}class FA extends rc{constructor(t,o,r){var n;if(super(t,o,r),this._hasFocus=!1,this._onFocusOut=i=>{var s;const a=(s=this._element)===null||s===void 0?void 0:s.get();a&&i.relatedTarget===null&&a.dispatchEvent(new P0),a&&!ie.nodeContains(a,i.relatedTarget)&&(this._hasFocus=!1)},this._onFocusIn=()=>{this._hasFocus=!0},this._props.type===us.Source){const i=(n=this._element)===null||n===void 0?void 0:n.get();i?.addEventListener("focusout",this._onFocusOut),i?.addEventListener("focusin",this._onFocusIn),this._hasFocus=ie.nodeContains(i,i&&ie.getActiveElement(i.ownerDocument))}}dispose(){var t;if(this._props.type===us.Source){const o=(t=this._element)===null||t===void 0?void 0:t.get();o?.removeEventListener("focusout",this._onFocusOut),o?.removeEventListener("focusin",this._onFocusIn),this._hasFocus&&this._tabster.getWindow().document.body.dispatchEvent(new P0)}}}class rd{constructor(t){this._stack=[],this._getWindow=t}push(t){var o;((o=this._stack[this._stack.length-1])===null||o===void 0?void 0:o.get())!==t&&(this._stack.length>rd.DEPTH&&this._stack.shift(),this._stack.push(new Wo(this._getWindow,t)))}pop(t=()=>!0){var o;const r=this._getWindow().document;for(let n=this._stack.length-1;n>=0;n--){const i=(o=this._stack.pop())===null||o===void 0?void 0:o.get();if(i&&ie.nodeContains(r.body,ie.getParentElement(i))&&t(i))return i}}}rd.DEPTH=10;class RA{constructor(t){this._onRestoreFocus=o=>{var r,n;this._focusedElementState.cancelAsyncFocus(On.Restorer);const i=o.composedPath()[0];if(i){const s=(n=(r=so(this._tabster,i))===null||r===void 0?void 0:r.restorer)===null||n===void 0?void 0:n.getProps().id;this._focusedElementState.requestAsyncFocus(On.Restorer,()=>this._restoreFocus(i,s),0)}},this._onFocusIn=o=>{var r;if(!o)return;const n=so(this._tabster,o);((r=n?.restorer)===null||r===void 0?void 0:r.getProps().type)===us.Target&&this._history.push(o)},this._restoreFocus=(o,r)=>{var n;const i=this._getWindow().document;if(ie.getActiveElement(i)!==i.body||!this._keyboardNavState.isNavigatingWithKeyboard()&&ie.nodeContains(i.body,o))return;const s=a=>{var c,d;const h=(d=(c=so(this._tabster,a))===null||c===void 0?void 0:c.restorer)===null||d===void 0?void 0:d.getProps();return h?h.id:null};(n=this._history.pop(a=>r===s(a)))===null||n===void 0||n.focus()},this._tabster=t,this._getWindow=t.getWindow,this._getWindow().addEventListener(Zp,this._onRestoreFocus),this._history=new rd(this._getWindow),this._keyboardNavState=t.keyboardNavigation,this._focusedElementState=t.focusedElement,this._focusedElementState.subscribe(this._onFocusIn)}dispose(){const t=this._getWindow();this._focusedElementState.unsubscribe(this._onFocusIn),this._focusedElementState.cancelAsyncFocus(On.Restorer),t.removeEventListener(Zp,this._onRestoreFocus)}createRestorer(t,o){const r=new FA(this._tabster,t,o);return o.type===us.Target&&ie.getActiveElement(t.ownerDocument)===t&&this._history.push(t),r}}class EA{constructor(t){this.keyboardNavigation=t.keyboardNavigation,this.focusedElement=t.focusedElement,this.focusable=t.focusable,this.root=t.root,this.uncontrolled=t.uncontrolled,this.core=t}}class _A{constructor(t,o){var r,n;this._forgetMemorizedElements=[],this._wrappers=new Set,this._initQueue=[],this._version="8.7.0",this._noop=!1,this.getWindow=()=>{if(!this._win)throw new Error("Using disposed Tabster.");return this._win},this._storage=q2(t),this._win=t;const i=this.getWindow;o?.DOMAPI&&G2({...o.DOMAPI}),this.keyboardNavigation=new fA(i),this.focusedElement=new Lt(this,i),this.focusable=new lA(this),this.root=new ct(this,o?.autoRoot),this.uncontrolled=new kA(o?.checkUncontrolledCompletely||o?.checkUncontrolledTrappingFocus),this.controlTab=(r=o?.controlTab)!==null&&r!==void 0?r:!0,this.rootDummyInputs=!!o?.rootDummyInputs,this._dummyObserver=new eA(i),this.getParent=(n=o?.getParent)!==null&&n!==void 0?n:ie.getParentNode,this.internal={stopObserver:()=>{this._unobserve&&(this._unobserve(),delete this._unobserve)},resumeObserver:s=>{if(!this._unobserve){const a=i().document;this._unobserve=xA(a,this,R0,s)}}},A0(i),this.queueInit(()=>{this.internal.resumeObserver(!0)})}_mergeProps(t){var o;t&&(this.getParent=(o=t.getParent)!==null&&o!==void 0?o:this.getParent)}createTabster(t,o){const r=new EA(this);return t||this._wrappers.add(r),this._mergeProps(o),r}disposeTabster(t,o){o?this._wrappers.clear():this._wrappers.delete(t),this._wrappers.size===0&&this.dispose()}dispose(){var t,o,r,n,i,s,a,c;this.internal.stopObserver();const d=this._win;d?.clearTimeout(this._initTimer),delete this._initTimer,this._initQueue=[],this._forgetMemorizedElements=[],d&&this._forgetMemorizedTimer&&(d.clearTimeout(this._forgetMemorizedTimer),delete this._forgetMemorizedTimer),(t=this.outline)===null||t===void 0||t.dispose(),(o=this.crossOrigin)===null||o===void 0||o.dispose(),(r=this.deloser)===null||r===void 0||r.dispose(),(n=this.groupper)===null||n===void 0||n.dispose(),(i=this.mover)===null||i===void 0||i.dispose(),(s=this.modalizer)===null||s===void 0||s.dispose(),(a=this.observedElement)===null||a===void 0||a.dispose(),(c=this.restorer)===null||c===void 0||c.dispose(),this.keyboardNavigation.dispose(),this.focusable.dispose(),this.focusedElement.dispose(),this.root.dispose(),this._dummyObserver.dispose(),$2(this.getWindow),L0(this.getWindow),this._storage=new WeakMap,this._wrappers.clear(),d&&(W2(d),delete d.__tabsterInstance,delete this._win)}storageEntry(t,o){const r=this._storage;let n=r.get(t);return n?o===!1&&Object.keys(n).length===0&&r.delete(t):o===!0&&(n={},r.set(t,n)),n}forceCleanup(){this._win&&(this._forgetMemorizedElements.push(this._win.document.body),!this._forgetMemorizedTimer&&(this._forgetMemorizedTimer=this._win.setTimeout(()=>{delete this._forgetMemorizedTimer;for(let t=this._forgetMemorizedElements.shift();t;t=this._forgetMemorizedElements.shift())L0(this.getWindow,t),Lt.forgetMemorized(this.focusedElement,t)},0),M0(this.getWindow,!0)))}queueInit(t){var o;this._win&&(this._initQueue.push(t),this._initTimer||(this._initTimer=(o=this._win)===null||o===void 0?void 0:o.setTimeout(()=>{delete this._initTimer,this.drainInitQueue()},0)))}drainInitQueue(){if(!this._win)return;const t=this._initQueue;this._initQueue=[],t.forEach(o=>o())}}function PA(e,t){let o=AA(e);return o?o.createTabster(!1,t):(o=new _A(e,t),e.__tabsterInstance=o,o.createTabster())}function DA(e){const t=e.core;return t.groupper||(t.groupper=new hA(t,t.getWindow)),t.groupper}function TA(e){const t=e.core;return t.mover||(t.mover=new SA(t,t.getWindow)),t.mover}function U0(e,t,o){const r=e.core;return r.modalizer||(r.modalizer=new vA(r,t,o)),r.modalizer}function $0(e){const t=e.core;return t.restorer||(t.restorer=new RA(t)),t.restorer}function MA(e,t){e.core.disposeTabster(e,t)}function AA(e){return e.__tabsterInstance}const IA=e=>e;function BA(e){const t=e?.defaultView||void 0,o=t?.__tabsterShadowDOMAPI;if(t)return PA(t,{autoRoot:{},controlTab:!1,getParent:m0,checkUncontrolledCompletely:r=>{var n;return((n=r.firstElementChild)===null||n===void 0?void 0:n.hasAttribute("data-is-focus-trap-zone-bumper"))===!0||void 0},DOMAPI:o})}function ds(e=IA){const{targetDocument:t}=lt(),o=S.useRef(null);return Zt(()=>{const r=BA(t);if(r)return o.current=e(r),()=>{MA(r),o.current=null}},[t,e]),o}const nd=e=>{ds();const t=ng(e,!0);return S.useMemo(()=>({[ar]:t}),[t])},id=(e={})=>{const{circular:t,axis:o,memorizeCurrent:r=!0,tabbable:n,ignoreDefaultKeydown:i,unstable_hasDefault:s}=e;return ds(TA),nd({mover:{cyclic:!!t,direction:OA(o??"vertical"),memorizeCurrent:r,tabbable:n,hasDefault:s},...i&&{focusable:{ignoreKeydown:i}}})};function OA(e){switch(e){case"horizontal":return Ar.Horizontal;case"grid":return Ar.Grid;case"grid-linear":return Ar.GridLinear;case"both":return Ar.Both;default:return Ar.Vertical}}const NA=e=>(ds(DA),nd({groupper:{tabbability:LA(e?.tabBehavior)},focusable:{ignoreKeydown:e?.ignoreDefaultKeydown}})),LA=e=>{switch(e){case"unlimited":return Ju.Unlimited;case"limited":return Ju.Limited;case"limited-trap-focus":return Ju.LimitedTrapFocus;default:return}},wa=()=>{const e=ds(),{targetDocument:t}=lt(),o=S.useCallback((a,c)=>{var d;return a&&((d=e.current)===null||d===void 0?void 0:d.focusable.findAll({container:a,acceptCondition:c}))||[]},[e]),r=S.useCallback(a=>{var c;return a&&((c=e.current)===null||c===void 0?void 0:c.focusable.findFirst({container:a}))},[e]),n=S.useCallback(a=>{var c;return a&&((c=e.current)===null||c===void 0?void 0:c.focusable.findLast({container:a}))},[e]),i=S.useCallback((a,c={})=>{if(!e.current||!t||!a)return null;const{container:d=t.body}=c;return e.current.focusable.findNext({currentElement:a,container:d})},[e,t]),s=S.useCallback((a,c={})=>{if(!e.current||!t||!a)return null;const{container:d=t.body}=c;return e.current.focusable.findPrev({currentElement:a,container:d})},[e,t]);return{findAllFocusable:o,findFirstFocusable:r,findLastFocusable:n,findNextFocusable:i,findPrevFocusable:s}},K0="data-fui-focus-visible",X0="data-fui-focus-within";function zA(e,t){if(Z0(e))return()=>{};const o={current:void 0},r=Yu(t);function n(c){r.isNavigatingWithKeyboard()&&vi(c)&&(o.current=c,c.setAttribute(K0,""))}function i(){o.current&&(o.current.removeAttribute(K0),o.current=void 0)}r.subscribe(c=>{c?n(t.document.activeElement):i()});const s=c=>{i();const d=c.composedPath()[0];n(d)},a=c=>{(!c.relatedTarget||vi(c.relatedTarget)&&!e.contains(c.relatedTarget))&&i()};return e.addEventListener(jo,s),e.addEventListener("focusout",a),e.focusVisible=!0,e.contains(t.document.activeElement)&&n(t.document.activeElement),()=>{i(),e.removeEventListener(jo,s),e.removeEventListener("focusout",a),e.focusVisible=void 0,Qu(r)}}function Z0(e){return e?e.focusVisible?!0:Z0(e?.parentElement):!1}function Y0(e={}){const t=lt(),o=S.useRef(null);var r;const n=(r=e.targetDocument)!==null&&r!==void 0?r:t.targetDocument;return S.useEffect(()=>{if(n?.defaultView&&o.current)return zA(o.current,n.defaultView)},[o,n]),o}function HA(e,t){const o=Yu(t);o.subscribe(i=>{i||Q0(e)});const r=i=>{o.isNavigatingWithKeyboard()&&J0(i.target)&&VA(e)},n=i=>{(!i.relatedTarget||J0(i.relatedTarget)&&!e.contains(i.relatedTarget))&&Q0(e)};return e.addEventListener(jo,r),e.addEventListener("focusout",n),()=>{e.removeEventListener(jo,r),e.removeEventListener("focusout",n),Qu(o)}}function VA(e){e.setAttribute(X0,"")}function Q0(e){e.removeAttribute(X0)}function J0(e){return e?!!(e&&typeof e=="object"&&"classList"in e&&"contains"in e):!1}function ey(){const{targetDocument:e}=lt(),t=S.useRef(null);return S.useEffect(()=>{if(e?.defaultView&&t.current)return HA(t.current,e.defaultView)},[t,e]),t}function ag(){const{targetDocument:e}=lt(),t=S.useRef(null);return S.useEffect(()=>{const o=e?.defaultView;if(o){const r=Yu(o);return t.current=r,()=>{Qu(r),t.current=null}}},[e]),t}function ty(e){const t=ag(),o=pe(e);S.useEffect(()=>{const r=t.current;if(r){const n=i=>{o(i)};return r.subscribe(n),n(r.isNavigatingWithKeyboard()),()=>{r.unsubscribe(n)}}},[t,o])}const GA="data-tabster-never-hide",jA=e=>e.hasAttribute(GA);function WA(e){U0(e,void 0,jA),$0(e)}const sd=(e={})=>{const{trapFocus:t,alwaysFocusable:o,legacyTrapFocus:r}=e;ds(WA);const n=Go("modal-",e.id),i=nd({restorer:{type:us.Source},...t&&{modalizer:{id:n,isOthersAccessible:!t,isAlwaysAccessible:o,isTrapped:r&&t}}}),s=nd({restorer:{type:us.Target}});return{modalAttributes:i,triggerAttributes:s}},qA=(...e)=>{"use no memo";const t=e.reduce((o,r)=>(r?.[ar]&&o.push(r[ar]),o),[]);return S.useMemo(()=>({[ar]:t.length>0?t.reduce(UA):void 0}),t)},UA=(e,t)=>JSON.stringify(Object.assign(oy(e),oy(t))),oy=e=>{try{return JSON.parse(e)}catch{return{}}};function $A(){return ds($0),ng({restorer:{type:us.Source}})}function KA(){const e=ag();return S.useCallback(()=>{var t,o;return(o=(t=e.current)===null||t===void 0?void 0:t.isNavigatingWithKeyboard())!==null&&o!==void 0?o:!1},[e])}function XA(){const e=ag();return S.useCallback(t=>{var o;(o=e.current)===null||o===void 0||o.setVal(t)},[e])}function ZA(){const e=ds(U0),[t]=ga();return S.useCallback(r=>{t(()=>{var n;(n=e.current)===null||n===void 0||n.activate(r)},0)},[e,t])}const ne={2:"#050505",4:"#0a0a0a",6:"#0f0f0f",8:"#141414",10:"#1a1a1a",12:"#1f1f1f",14:"#242424",16:"#292929",18:"#2e2e2e",20:"#333333",22:"#383838",24:"#3d3d3d",26:"#424242",30:"#4d4d4d",32:"#525252",34:"#575757",36:"#5c5c5c",38:"#616161",40:"#666666",42:"#6b6b6b",44:"#707070",46:"#757575",60:"#999999",68:"#adadad",70:"#b3b3b3",74:"#bdbdbd",78:"#c7c7c7",82:"#d1d1d1",84:"#d6d6d6",86:"#dbdbdb",88:"#e0e0e0",90:"#e6e6e6",92:"#ebebeb",94:"#f0f0f0",96:"#f5f5f5",98:"#fafafa"},fo={5:"rgba(255, 255, 255, 0.05)",10:"rgba(255, 255, 255, 0.1)",20:"rgba(255, 255, 255, 0.2)",40:"rgba(255, 255, 255, 0.4)",50:"rgba(255, 255, 255, 0.5)",60:"rgba(255, 255, 255, 0.6)",70:"rgba(255, 255, 255, 0.7)",80:"rgba(255, 255, 255, 0.8)"},lr={5:"rgba(0, 0, 0, 0.05)",10:"rgba(0, 0, 0, 0.1)",20:"rgba(0, 0, 0, 0.2)",30:"rgba(0, 0, 0, 0.3)",40:"rgba(0, 0, 0, 0.4)",50:"rgba(0, 0, 0, 0.5)"},YA={50:"rgba(26, 26, 26, 0.5)"},QA={70:"rgba(31, 31, 31, 0.7)"},ry={50:"rgba(36, 36, 36, 0.5)",80:"rgba(36, 36, 36, 0.8)"},ze="#ffffff",ad="#000000",JA={shade50:"#130204",shade40:"#230308",shade30:"#420610",shade20:"#590815",shade10:"#690a19",primary:"#750b1c",tint10:"#861b2c",tint20:"#962f3f",tint30:"#ac4f5e",tint40:"#d69ca5",tint50:"#e9c7cd",tint60:"#f9f0f2"},ny={shade50:"#200205",shade40:"#3b0509",shade30:"#6e0811",shade20:"#960b18",shade10:"#b10e1c",primary:"#c50f1f",tint10:"#cc2635",tint20:"#d33f4c",tint30:"#dc626d",tint40:"#eeacb2",tint50:"#f6d1d5",tint60:"#fdf3f4"},eI={shade50:"#210809",shade40:"#3f1011",shade30:"#751d1f",shade20:"#9f282b",shade10:"#bc2f32",primary:"#d13438",tint10:"#d7494c",tint20:"#dc5e62",tint30:"#e37d80",tint40:"#f1bbbc",tint50:"#f8dadb",tint60:"#fdf6f6"},tI={shade50:"#230900",shade40:"#411200",shade30:"#7a2101",shade20:"#a62d01",shade10:"#c43501",primary:"#da3b01",tint10:"#de501c",tint20:"#e36537",tint30:"#e9835e",tint40:"#f4bfab",tint50:"#f9dcd1",tint60:"#fdf6f3"},oI={shade50:"#200d03",shade40:"#3d1805",shade30:"#712d09",shade20:"#9a3d0c",shade10:"#b6480e",primary:"#ca5010",tint10:"#d06228",tint20:"#d77440",tint30:"#df8e64",tint40:"#efc4ad",tint50:"#f7dfd2",tint60:"#fdf7f4"},rI={shade50:"#271002",shade40:"#4a1e04",shade30:"#8a3707",shade20:"#bc4b09",shade10:"#de590b",primary:"#f7630c",tint10:"#f87528",tint20:"#f98845",tint30:"#faa06b",tint40:"#fdcfb4",tint50:"#fee5d7",tint60:"#fff9f5"},nI={shade50:"#291600",shade40:"#4d2a00",shade30:"#8f4e00",shade20:"#c26a00",shade10:"#e67e00",primary:"#ff8c00",tint10:"#ff9a1f",tint20:"#ffa83d",tint30:"#ffba66",tint40:"#ffddb3",tint50:"#ffedd6",tint60:"#fffaf5"},iI={shade50:"#251a00",shade40:"#463100",shade30:"#835b00",shade20:"#b27c00",shade10:"#d39300",primary:"#eaa300",tint10:"#edad1c",tint20:"#efb839",tint30:"#f2c661",tint40:"#f9e2ae",tint50:"#fcefd3",tint60:"#fefbf4"},sI={shade50:"#282400",shade40:"#4c4400",shade30:"#817400",shade20:"#c0ad00",shade10:"#e4cc00",primary:"#fde300",tint10:"#fde61e",tint20:"#fdea3d",tint30:"#feee66",tint40:"#fef7b2",tint50:"#fffad6",tint60:"#fffef5"},aI={shade50:"#1f1900",shade40:"#3a2f00",shade30:"#6c5700",shade20:"#937700",shade10:"#ae8c00",primary:"#c19c00",tint10:"#c8a718",tint20:"#d0b232",tint30:"#dac157",tint40:"#ecdfa5",tint50:"#f5eece",tint60:"#fdfbf2"},lI={shade50:"#181202",shade40:"#2e2103",shade30:"#553e06",shade20:"#745408",shade10:"#89640a",primary:"#986f0b",tint10:"#a47d1e",tint20:"#b18c34",tint30:"#c1a256",tint40:"#e0cea2",tint50:"#efe4cb",tint60:"#fbf8f2"},cI={shade50:"#170e07",shade40:"#2b1a0e",shade30:"#50301a",shade20:"#6c4123",shade10:"#804d29",primary:"#8e562e",tint10:"#9c663f",tint20:"#a97652",tint30:"#bb8f6f",tint40:"#ddc3b0",tint50:"#edded3",tint60:"#faf7f4"},uI={shade50:"#0c1501",shade40:"#162702",shade30:"#294903",shade20:"#376304",shade10:"#427505",primary:"#498205",tint10:"#599116",tint20:"#6ba02b",tint30:"#85b44c",tint40:"#bdd99b",tint50:"#dbebc7",tint60:"#f6faf0"},dI={shade50:"#002111",shade40:"#003d20",shade30:"#00723b",shade20:"#009b51",shade10:"#00b85f",primary:"#00cc6a",tint10:"#19d279",tint20:"#34d889",tint30:"#5ae0a0",tint40:"#a8f0cd",tint50:"#cff7e4",tint60:"#f3fdf8"},hI={shade50:"#031a02",shade40:"#063004",shade30:"#0b5a08",shade20:"#0e7a0b",shade10:"#11910d",primary:"#13a10e",tint10:"#27ac22",tint20:"#3db838",tint30:"#5ec75a",tint40:"#a7e3a5",tint50:"#cef0cd",tint60:"#f2fbf2"},iy={shade50:"#031403",shade40:"#052505",shade30:"#094509",shade20:"#0c5e0c",shade10:"#0e700e",primary:"#107c10",tint10:"#218c21",tint20:"#359b35",tint30:"#54b054",tint40:"#9fd89f",tint50:"#c9eac9",tint60:"#f1faf1"},fI={shade50:"#021102",shade40:"#032003",shade30:"#063b06",shade20:"#085108",shade10:"#0a5f0a",primary:"#0b6a0b",tint10:"#1a7c1a",tint20:"#2d8e2d",tint30:"#4da64d",tint40:"#9ad29a",tint50:"#c6e7c6",tint60:"#f0f9f0"},pI={shade50:"#001d1f",shade40:"#00373a",shade30:"#00666d",shade20:"#008b94",shade10:"#00a5af",primary:"#00b7c3",tint10:"#18bfca",tint20:"#32c8d1",tint30:"#58d3db",tint40:"#a6e9ed",tint50:"#cef3f5",tint60:"#f2fcfd"},gI={shade50:"#001516",shade40:"#012728",shade30:"#02494c",shade20:"#026467",shade10:"#037679",primary:"#038387",tint10:"#159195",tint20:"#2aa0a4",tint30:"#4cb4b7",tint40:"#9bd9db",tint50:"#c7ebec",tint60:"#f0fafa"},mI={shade50:"#000f12",shade40:"#001b22",shade30:"#00333f",shade20:"#004555",shade10:"#005265",primary:"#005b70",tint10:"#0f6c81",tint20:"#237d92",tint30:"#4496a9",tint40:"#94c8d4",tint50:"#c3e1e8",tint60:"#eff7f9"},vI={shade50:"#001322",shade40:"#002440",shade30:"#004377",shade20:"#005ba1",shade10:"#006cbf",primary:"#0078d4",tint10:"#1a86d9",tint20:"#3595de",tint30:"#5caae5",tint40:"#a9d3f2",tint50:"#d0e7f8",tint60:"#f3f9fd"},bI={shade50:"#000c16",shade40:"#00172a",shade30:"#002c4e",shade20:"#003b6a",shade10:"#00467e",primary:"#004e8c",tint10:"#125e9a",tint20:"#286fa8",tint30:"#4a89ba",tint40:"#9abfdc",tint50:"#c7dced",tint60:"#f0f6fa"},wI={shade50:"#0d1126",shade40:"#182047",shade30:"#2c3c85",shade20:"#3c51b4",shade10:"#4760d5",primary:"#4f6bed",tint10:"#637cef",tint20:"#778df1",tint30:"#93a4f4",tint40:"#c8d1fa",tint50:"#e1e6fc",tint60:"#f7f9fe"},CI={shade50:"#00061d",shade40:"#000c36",shade30:"#001665",shade20:"#001e89",shade10:"#0023a2",primary:"#0027b4",tint10:"#173bbd",tint20:"#3050c6",tint30:"#546fd2",tint40:"#a3b2e8",tint50:"#ccd5f3",tint60:"#f2f4fc"},yI={shade50:"#120f25",shade40:"#221d46",shade30:"#3f3682",shade20:"#5649b0",shade10:"#6656d1",primary:"#7160e8",tint10:"#8172eb",tint20:"#9184ee",tint30:"#a79cf1",tint40:"#d2ccf8",tint50:"#e7e4fb",tint60:"#f9f8fe"},SI={shade50:"#0f0717",shade40:"#1c0e2b",shade30:"#341a51",shade20:"#46236e",shade10:"#532982",primary:"#5c2e91",tint10:"#6b3f9e",tint20:"#7c52ab",tint30:"#9470bd",tint40:"#c6b1de",tint50:"#e0d3ed",tint60:"#f7f4fb"},xI={shade50:"#160418",shade40:"#29072e",shade30:"#4c0d55",shade20:"#671174",shade10:"#7a1589",primary:"#881798",tint10:"#952aa4",tint20:"#a33fb1",tint30:"#b55fc1",tint40:"#d9a7e0",tint50:"#eaceef",tint60:"#faf2fb"},kI={shade50:"#1f091d",shade40:"#3a1136",shade30:"#6d2064",shade20:"#932b88",shade10:"#af33a1",primary:"#c239b3",tint10:"#c94cbc",tint20:"#d161c4",tint30:"#da7ed0",tint40:"#edbbe7",tint50:"#f5daf2",tint60:"#fdf5fc"},FI={shade50:"#1c0b1f",shade40:"#35153a",shade30:"#63276d",shade20:"#863593",shade10:"#9f3faf",primary:"#b146c2",tint10:"#ba58c9",tint20:"#c36bd1",tint30:"#cf87da",tint40:"#e6bfed",tint50:"#f2dcf5",tint60:"#fcf6fd"},RI={shade50:"#24091b",shade40:"#441232",shade30:"#80215d",shade20:"#ad2d7e",shade10:"#cd3595",primary:"#e43ba6",tint10:"#e750b0",tint20:"#ea66ba",tint30:"#ef85c8",tint40:"#f7c0e3",tint50:"#fbddf0",tint60:"#fef6fb"},EI={shade50:"#1f0013",shade40:"#390024",shade30:"#6b0043",shade20:"#91005a",shade10:"#ac006b",primary:"#bf0077",tint10:"#c71885",tint20:"#ce3293",tint30:"#d957a8",tint40:"#eca5d1",tint50:"#f5cee6",tint60:"#fcf2f9"},_I={shade50:"#13000c",shade40:"#240017",shade30:"#43002b",shade20:"#5a003b",shade10:"#6b0045",primary:"#77004d",tint10:"#87105d",tint20:"#98246f",tint30:"#ad4589",tint40:"#d696c0",tint50:"#e9c4dc",tint60:"#faf0f6"},PI={shade50:"#141313",shade40:"#252323",shade30:"#444241",shade20:"#5d5958",shade10:"#6e6968",primary:"#7a7574",tint10:"#8a8584",tint20:"#9a9594",tint30:"#afabaa",tint40:"#d7d4d4",tint50:"#eae8e8",tint60:"#faf9f9"},DI={shade50:"#0f0e0e",shade40:"#1c1b1a",shade30:"#343231",shade20:"#474443",shade10:"#54514f",primary:"#5d5a58",tint10:"#706d6b",tint20:"#84817e",tint30:"#9e9b99",tint40:"#cecccb",tint50:"#e5e4e3",tint60:"#f8f8f8"},TI={shade50:"#111314",shade40:"#1f2426",shade30:"#3b4447",shade20:"#505c60",shade10:"#5f6d71",primary:"#69797e",tint10:"#79898d",tint20:"#89989d",tint30:"#a0adb2",tint40:"#cdd6d8",tint50:"#e4e9ea",tint60:"#f8f9fa"},MI={shade50:"#090a0b",shade40:"#111315",shade30:"#202427",shade20:"#2b3135",shade10:"#333a3f",primary:"#394146",tint10:"#4d565c",tint20:"#626c72",tint30:"#808a90",tint40:"#bcc3c7",tint50:"#dbdfe1",tint60:"#f6f7f8"},it={red:eI,green:iy,darkOrange:tI,yellow:sI,berry:kI,lightGreen:hI,marigold:iI},Ci={darkRed:JA,cranberry:ny,pumpkin:oI,peach:nI,gold:aI,brass:lI,brown:cI,forest:uI,seafoam:dI,darkGreen:fI,lightTeal:pI,teal:gI,steel:mI,blue:vI,royalBlue:bI,cornflower:wI,navy:CI,lavender:yI,purple:SI,grape:xI,lilac:FI,pink:RI,magenta:EI,plum:_I,beige:PI,mink:DI,platinum:TI,anchor:MI},ot={cranberry:ny,green:iy,orange:rI},sy=["red","green","darkOrange","yellow","berry","lightGreen","marigold"],ay=["darkRed","cranberry","pumpkin","peach","gold","brass","brown","forest","seafoam","darkGreen","lightTeal","teal","steel","blue","royalBlue","cornflower","navy","lavender","purple","grape","lilac","pink","magenta","plum","beige","mink","platinum","anchor"],Do={success:"green",warning:"orange",danger:"cranberry"},nc=sy.reduce((e,t)=>{const o=t.slice(0,1).toUpperCase()+t.slice(1),r={[`colorPalette${o}Background1`]:it[t].tint60,[`colorPalette${o}Background2`]:it[t].tint40,[`colorPalette${o}Background3`]:it[t].primary,[`colorPalette${o}Foreground1`]:it[t].shade10,[`colorPalette${o}Foreground2`]:it[t].shade30,[`colorPalette${o}Foreground3`]:it[t].primary,[`colorPalette${o}BorderActive`]:it[t].primary,[`colorPalette${o}Border1`]:it[t].tint40,[`colorPalette${o}Border2`]:it[t].primary};return Object.assign(e,r)},{});nc.colorPaletteYellowForeground1=it.yellow.shade30,nc.colorPaletteRedForegroundInverted=it.red.tint20,nc.colorPaletteGreenForegroundInverted=it.green.tint20,nc.colorPaletteYellowForegroundInverted=it.yellow.tint40;const AI=ay.reduce((e,t)=>{const o=t.slice(0,1).toUpperCase()+t.slice(1),r={[`colorPalette${o}Background2`]:Ci[t].tint40,[`colorPalette${o}Foreground2`]:Ci[t].shade30,[`colorPalette${o}BorderActive`]:Ci[t].primary};return Object.assign(e,r)},{}),II={...nc,...AI},Ca=Object.entries(Do).reduce((e,[t,o])=>{const r=t.slice(0,1).toUpperCase()+t.slice(1),n={[`colorStatus${r}Background1`]:ot[o].tint60,[`colorStatus${r}Background2`]:ot[o].tint40,[`colorStatus${r}Background3`]:ot[o].primary,[`colorStatus${r}Foreground1`]:ot[o].shade10,[`colorStatus${r}Foreground2`]:ot[o].shade30,[`colorStatus${r}Foreground3`]:ot[o].primary,[`colorStatus${r}ForegroundInverted`]:ot[o].tint30,[`colorStatus${r}BorderActive`]:ot[o].primary,[`colorStatus${r}Border1`]:ot[o].tint40,[`colorStatus${r}Border2`]:ot[o].primary};return Object.assign(e,n)},{});Ca.colorStatusDangerBackground3Hover=ot[Do.danger].shade10,Ca.colorStatusDangerBackground3Pressed=ot[Do.danger].shade20,Ca.colorStatusWarningForeground1=ot[Do.warning].shade20,Ca.colorStatusWarningForeground3=ot[Do.warning].shade20,Ca.colorStatusWarningBorder2=ot[Do.warning].shade20;const BI=e=>({colorNeutralForeground1:ne[14],colorNeutralForeground1Hover:ne[14],colorNeutralForeground1Pressed:ne[14],colorNeutralForeground1Selected:ne[14],colorNeutralForeground2:ne[26],colorNeutralForeground2Hover:ne[14],colorNeutralForeground2Pressed:ne[14],colorNeutralForeground2Selected:ne[14],colorNeutralForeground2BrandHover:e[80],colorNeutralForeground2BrandPressed:e[70],colorNeutralForeground2BrandSelected:e[80],colorNeutralForeground3:ne[38],colorNeutralForeground3Hover:ne[26],colorNeutralForeground3Pressed:ne[26],colorNeutralForeground3Selected:ne[26],colorNeutralForeground3BrandHover:e[80],colorNeutralForeground3BrandPressed:e[70],colorNeutralForeground3BrandSelected:e[80],colorNeutralForeground4:ne[44],colorNeutralForegroundDisabled:ne[74],colorNeutralForegroundInvertedDisabled:fo[40],colorBrandForegroundLink:e[70],colorBrandForegroundLinkHover:e[60],colorBrandForegroundLinkPressed:e[40],colorBrandForegroundLinkSelected:e[70],colorNeutralForeground2Link:ne[26],colorNeutralForeground2LinkHover:ne[14],colorNeutralForeground2LinkPressed:ne[14],colorNeutralForeground2LinkSelected:ne[14],colorCompoundBrandForeground1:e[80],colorCompoundBrandForeground1Hover:e[70],colorCompoundBrandForeground1Pressed:e[60],colorBrandForeground1:e[80],colorBrandForeground2:e[70],colorBrandForeground2Hover:e[60],colorBrandForeground2Pressed:e[30],colorNeutralForeground1Static:ne[14],colorNeutralForegroundStaticInverted:ze,colorNeutralForegroundInverted:ze,colorNeutralForegroundInvertedHover:ze,colorNeutralForegroundInvertedPressed:ze,colorNeutralForegroundInvertedSelected:ze,colorNeutralForegroundInverted2:ze,colorNeutralForegroundOnBrand:ze,colorNeutralForegroundInvertedLink:ze,colorNeutralForegroundInvertedLinkHover:ze,colorNeutralForegroundInvertedLinkPressed:ze,colorNeutralForegroundInvertedLinkSelected:ze,colorBrandForegroundInverted:e[100],colorBrandForegroundInvertedHover:e[110],colorBrandForegroundInvertedPressed:e[100],colorBrandForegroundOnLight:e[80],colorBrandForegroundOnLightHover:e[70],colorBrandForegroundOnLightPressed:e[50],colorBrandForegroundOnLightSelected:e[60],colorNeutralBackground1:ze,colorNeutralBackground1Hover:ne[96],colorNeutralBackground1Pressed:ne[88],colorNeutralBackground1Selected:ne[92],colorNeutralBackground2:ne[98],colorNeutralBackground2Hover:ne[94],colorNeutralBackground2Pressed:ne[86],colorNeutralBackground2Selected:ne[90],colorNeutralBackground3:ne[96],colorNeutralBackground3Hover:ne[92],colorNeutralBackground3Pressed:ne[84],colorNeutralBackground3Selected:ne[88],colorNeutralBackground4:ne[94],colorNeutralBackground4Hover:ne[98],colorNeutralBackground4Pressed:ne[96],colorNeutralBackground4Selected:ze,colorNeutralBackground5:ne[92],colorNeutralBackground5Hover:ne[96],colorNeutralBackground5Pressed:ne[94],colorNeutralBackground5Selected:ne[98],colorNeutralBackground6:ne[90],colorNeutralBackgroundInverted:ne[16],colorNeutralBackgroundStatic:ne[20],colorNeutralBackgroundAlpha:fo[50],colorNeutralBackgroundAlpha2:fo[80],colorSubtleBackground:"transparent",colorSubtleBackgroundHover:ne[96],colorSubtleBackgroundPressed:ne[88],colorSubtleBackgroundSelected:ne[92],colorSubtleBackgroundLightAlphaHover:fo[70],colorSubtleBackgroundLightAlphaPressed:fo[50],colorSubtleBackgroundLightAlphaSelected:"transparent",colorSubtleBackgroundInverted:"transparent",colorSubtleBackgroundInvertedHover:lr[10],colorSubtleBackgroundInvertedPressed:lr[30],colorSubtleBackgroundInvertedSelected:lr[20],colorTransparentBackground:"transparent",colorTransparentBackgroundHover:"transparent",colorTransparentBackgroundPressed:"transparent",colorTransparentBackgroundSelected:"transparent",colorNeutralBackgroundDisabled:ne[94],colorNeutralBackgroundInvertedDisabled:fo[10],colorNeutralStencil1:ne[90],colorNeutralStencil2:ne[98],colorNeutralStencil1Alpha:lr[10],colorNeutralStencil2Alpha:lr[5],colorBackgroundOverlay:lr[40],colorScrollbarOverlay:lr[50],colorBrandBackground:e[80],colorBrandBackgroundHover:e[70],colorBrandBackgroundPressed:e[40],colorBrandBackgroundSelected:e[60],colorCompoundBrandBackground:e[80],colorCompoundBrandBackgroundHover:e[70],colorCompoundBrandBackgroundPressed:e[60],colorBrandBackgroundStatic:e[80],colorBrandBackground2:e[160],colorBrandBackground2Hover:e[150],colorBrandBackground2Pressed:e[130],colorBrandBackground3Static:e[60],colorBrandBackground4Static:e[40],colorBrandBackgroundInverted:ze,colorBrandBackgroundInvertedHover:e[160],colorBrandBackgroundInvertedPressed:e[140],colorBrandBackgroundInvertedSelected:e[150],colorNeutralCardBackground:ne[98],colorNeutralCardBackgroundHover:ze,colorNeutralCardBackgroundPressed:ne[96],colorNeutralCardBackgroundSelected:ne[92],colorNeutralCardBackgroundDisabled:ne[94],colorNeutralStrokeAccessible:ne[38],colorNeutralStrokeAccessibleHover:ne[34],colorNeutralStrokeAccessiblePressed:ne[30],colorNeutralStrokeAccessibleSelected:e[80],colorNeutralStroke1:ne[82],colorNeutralStroke1Hover:ne[78],colorNeutralStroke1Pressed:ne[70],colorNeutralStroke1Selected:ne[74],colorNeutralStroke2:ne[88],colorNeutralStroke3:ne[94],colorNeutralStrokeSubtle:ne[88],colorNeutralStrokeOnBrand:ze,colorNeutralStrokeOnBrand2:ze,colorNeutralStrokeOnBrand2Hover:ze,colorNeutralStrokeOnBrand2Pressed:ze,colorNeutralStrokeOnBrand2Selected:ze,colorBrandStroke1:e[80],colorBrandStroke2:e[140],colorBrandStroke2Hover:e[120],colorBrandStroke2Pressed:e[80],colorBrandStroke2Contrast:e[140],colorCompoundBrandStroke:e[80],colorCompoundBrandStrokeHover:e[70],colorCompoundBrandStrokePressed:e[60],colorNeutralStrokeDisabled:ne[88],colorNeutralStrokeInvertedDisabled:fo[40],colorTransparentStroke:"transparent",colorTransparentStrokeInteractive:"transparent",colorTransparentStrokeDisabled:"transparent",colorNeutralStrokeAlpha:lr[5],colorNeutralStrokeAlpha2:fo[20],colorStrokeFocus1:ze,colorStrokeFocus2:ad,colorNeutralShadowAmbient:"rgba(0,0,0,0.12)",colorNeutralShadowKey:"rgba(0,0,0,0.14)",colorNeutralShadowAmbientLighter:"rgba(0,0,0,0.06)",colorNeutralShadowKeyLighter:"rgba(0,0,0,0.07)",colorNeutralShadowAmbientDarker:"rgba(0,0,0,0.20)",colorNeutralShadowKeyDarker:"rgba(0,0,0,0.24)",colorBrandShadowAmbient:"rgba(0,0,0,0.30)",colorBrandShadowKey:"rgba(0,0,0,0.25)"}),ly={borderRadiusNone:"0",borderRadiusSmall:"2px",borderRadiusMedium:"4px",borderRadiusLarge:"6px",borderRadiusXLarge:"8px",borderRadiusCircular:"10000px"},cy={curveAccelerateMax:"cubic-bezier(0.9,0.1,1,0.2)",curveAccelerateMid:"cubic-bezier(1,0,1,1)",curveAccelerateMin:"cubic-bezier(0.8,0,0.78,1)",curveDecelerateMax:"cubic-bezier(0.1,0.9,0.2,1)",curveDecelerateMid:"cubic-bezier(0,0,0,1)",curveDecelerateMin:"cubic-bezier(0.33,0,0.1,1)",curveEasyEaseMax:"cubic-bezier(0.8,0,0.2,1)",curveEasyEase:"cubic-bezier(0.33,0,0.67,1)",curveLinear:"cubic-bezier(0,0,1,1)"},uy={durationUltraFast:"50ms",durationFaster:"100ms",durationFast:"150ms",durationNormal:"200ms",durationGentle:"250ms",durationSlow:"300ms",durationSlower:"400ms",durationUltraSlow:"500ms"},dy={fontSizeBase100:"10px",fontSizeBase200:"12px",fontSizeBase300:"14px",fontSizeBase400:"16px",fontSizeBase500:"20px",fontSizeBase600:"24px",fontSizeHero700:"28px",fontSizeHero800:"32px",fontSizeHero900:"40px",fontSizeHero1000:"68px"},hy={lineHeightBase100:"14px",lineHeightBase200:"16px",lineHeightBase300:"20px",lineHeightBase400:"22px",lineHeightBase500:"28px",lineHeightBase600:"32px",lineHeightHero700:"36px",lineHeightHero800:"40px",lineHeightHero900:"52px",lineHeightHero1000:"92px"},fy={fontWeightRegular:400,fontWeightMedium:500,fontWeightSemibold:600,fontWeightBold:700},py={fontFamilyBase:"'Segoe UI', 'Segoe UI Web (West European)', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', sans-serif",fontFamilyMonospace:"Consolas, 'Courier New', Courier, monospace",fontFamilyNumeric:"Bahnschrift, 'Segoe UI', 'Segoe UI Web (West European)', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', sans-serif"},zt={none:"0",xxs:"2px",xs:"4px",sNudge:"6px",s:"8px",mNudge:"10px",m:"12px",l:"16px",xl:"20px",xxl:"24px",xxxl:"32px"},gy={spacingHorizontalNone:zt.none,spacingHorizontalXXS:zt.xxs,spacingHorizontalXS:zt.xs,spacingHorizontalSNudge:zt.sNudge,spacingHorizontalS:zt.s,spacingHorizontalMNudge:zt.mNudge,spacingHorizontalM:zt.m,spacingHorizontalL:zt.l,spacingHorizontalXL:zt.xl,spacingHorizontalXXL:zt.xxl,spacingHorizontalXXXL:zt.xxxl},my={spacingVerticalNone:zt.none,spacingVerticalXXS:zt.xxs,spacingVerticalXS:zt.xs,spacingVerticalSNudge:zt.sNudge,spacingVerticalS:zt.s,spacingVerticalMNudge:zt.mNudge,spacingVerticalM:zt.m,spacingVerticalL:zt.l,spacingVerticalXL:zt.xl,spacingVerticalXXL:zt.xxl,spacingVerticalXXXL:zt.xxxl},vy={strokeWidthThin:"1px",strokeWidthThick:"2px",strokeWidthThicker:"3px",strokeWidthThickest:"4px"},qo={colorNeutralForeground1:"var(--colorNeutralForeground1)",colorNeutralForeground4:"var(--colorNeutralForeground4)",colorTransparentBackground:"var(--colorTransparentBackground)",colorPaletteRedBackground1:"var(--colorPaletteRedBackground1)",colorPaletteRedForeground1:"var(--colorPaletteRedForeground1)",colorPaletteGreenBackground1:"var(--colorPaletteGreenBackground1)",colorPaletteGreenForeground1:"var(--colorPaletteGreenForeground1)",shadow64:"var(--shadow64)"};function ld(e,t,o=""){return{[`shadow2${o}`]:`0 0 2px ${e}, 0 1px 2px ${t}`,[`shadow4${o}`]:`0 0 2px ${e}, 0 2px 4px ${t}`,[`shadow8${o}`]:`0 0 2px ${e}, 0 4px 8px ${t}`,[`shadow16${o}`]:`0 0 2px ${e}, 0 8px 16px ${t}`,[`shadow28${o}`]:`0 0 8px ${e}, 0 14px 28px ${t}`,[`shadow64${o}`]:`0 0 8px ${e}, 0 32px 64px ${t}`}}const OI=e=>{const t=BI(e);return{...ly,...dy,...hy,...py,...fy,...vy,...gy,...my,...uy,...cy,...t,...II,...Ca,...ld(t.colorNeutralShadowAmbient,t.colorNeutralShadowKey),...ld(t.colorBrandShadowAmbient,t.colorBrandShadowKey,"Brand")}},by={10:"#061724",20:"#082338",30:"#0a2e4a",40:"#0c3b5e",50:"#0e4775",60:"#0f548c",70:"#115ea3",80:"#0f6cbd",90:"#2886de",100:"#479ef5",110:"#62abf5",120:"#77b7f7",130:"#96c6fa",140:"#b4d6fa",150:"#cfe4fa",160:"#ebf3fc"},nn=sy.reduce((e,t)=>{const o=t.slice(0,1).toUpperCase()+t.slice(1),r={[`colorPalette${o}Background1`]:it[t].shade40,[`colorPalette${o}Background2`]:it[t].shade30,[`colorPalette${o}Background3`]:it[t].primary,[`colorPalette${o}Foreground1`]:it[t].tint30,[`colorPalette${o}Foreground2`]:it[t].tint40,[`colorPalette${o}Foreground3`]:it[t].tint20,[`colorPalette${o}BorderActive`]:it[t].tint30,[`colorPalette${o}Border1`]:it[t].primary,[`colorPalette${o}Border2`]:it[t].tint20};return Object.assign(e,r)},{});nn.colorPaletteRedForeground3=it.red.tint30,nn.colorPaletteRedBorder2=it.red.tint30,nn.colorPaletteGreenForeground3=it.green.tint40,nn.colorPaletteGreenBorder2=it.green.tint40,nn.colorPaletteDarkOrangeForeground3=it.darkOrange.tint30,nn.colorPaletteDarkOrangeBorder2=it.darkOrange.tint30,nn.colorPaletteRedForegroundInverted=it.red.primary,nn.colorPaletteGreenForegroundInverted=it.green.primary,nn.colorPaletteYellowForegroundInverted=it.yellow.shade30;const lg=ay.reduce((e,t)=>{const o=t.slice(0,1).toUpperCase()+t.slice(1),r={[`colorPalette${o}Background2`]:Ci[t].shade30,[`colorPalette${o}Foreground2`]:Ci[t].tint40,[`colorPalette${o}BorderActive`]:Ci[t].tint30};return Object.assign(e,r)},{});lg.colorPaletteDarkRedBackground2=Ci.darkRed.shade20,lg.colorPalettePlumBackground2=Ci.plum.shade20;const NI={...nn,...lg},yi=Object.entries(Do).reduce((e,[t,o])=>{const r=t.slice(0,1).toUpperCase()+t.slice(1),n={[`colorStatus${r}Background1`]:ot[o].shade40,[`colorStatus${r}Background2`]:ot[o].shade30,[`colorStatus${r}Background3`]:ot[o].primary,[`colorStatus${r}Foreground1`]:ot[o].tint30,[`colorStatus${r}Foreground2`]:ot[o].tint40,[`colorStatus${r}Foreground3`]:ot[o].tint20,[`colorStatus${r}BorderActive`]:ot[o].tint30,[`colorStatus${r}ForegroundInverted`]:ot[o].shade10,[`colorStatus${r}Border1`]:ot[o].primary,[`colorStatus${r}Border2`]:ot[o].tint20};return Object.assign(e,n)},{});yi.colorStatusDangerBackground3Hover=ot[Do.danger].shade10,yi.colorStatusDangerBackground3Pressed=ot[Do.danger].shade20,yi.colorStatusDangerForeground3=ot[Do.danger].tint40,yi.colorStatusDangerBorder2=ot[Do.danger].tint30,yi.colorStatusSuccessForeground3=ot[Do.success].tint40,yi.colorStatusSuccessBorder2=ot[Do.success].tint40,yi.colorStatusWarningForegroundInverted=ot[Do.warning].shade20;const LI=OI(by),zI=e=>({colorNeutralForeground1:ze,colorNeutralForeground1Hover:ze,colorNeutralForeground1Pressed:ze,colorNeutralForeground1Selected:ze,colorNeutralForeground2:ne[84],colorNeutralForeground2Hover:ze,colorNeutralForeground2Pressed:ze,colorNeutralForeground2Selected:ze,colorNeutralForeground2BrandHover:e[100],colorNeutralForeground2BrandPressed:e[90],colorNeutralForeground2BrandSelected:e[100],colorNeutralForeground3:ne[68],colorNeutralForeground3Hover:ne[84],colorNeutralForeground3Pressed:ne[84],colorNeutralForeground3Selected:ne[84],colorNeutralForeground3BrandHover:e[100],colorNeutralForeground3BrandPressed:e[90],colorNeutralForeground3BrandSelected:e[100],colorNeutralForeground4:ne[60],colorNeutralForegroundDisabled:ne[36],colorNeutralForegroundInvertedDisabled:fo[40],colorBrandForegroundLink:e[100],colorBrandForegroundLinkHover:e[110],colorBrandForegroundLinkPressed:e[90],colorBrandForegroundLinkSelected:e[100],colorNeutralForeground2Link:ne[84],colorNeutralForeground2LinkHover:ze,colorNeutralForeground2LinkPressed:ze,colorNeutralForeground2LinkSelected:ze,colorCompoundBrandForeground1:e[100],colorCompoundBrandForeground1Hover:e[110],colorCompoundBrandForeground1Pressed:e[90],colorBrandForeground1:e[100],colorBrandForeground2:e[110],colorBrandForeground2Hover:e[130],colorBrandForeground2Pressed:e[160],colorNeutralForeground1Static:ne[14],colorNeutralForegroundStaticInverted:ze,colorNeutralForegroundInverted:ne[14],colorNeutralForegroundInvertedHover:ne[14],colorNeutralForegroundInvertedPressed:ne[14],colorNeutralForegroundInvertedSelected:ne[14],colorNeutralForegroundInverted2:ne[14],colorNeutralForegroundOnBrand:ze,colorNeutralForegroundInvertedLink:ze,colorNeutralForegroundInvertedLinkHover:ze,colorNeutralForegroundInvertedLinkPressed:ze,colorNeutralForegroundInvertedLinkSelected:ze,colorBrandForegroundInverted:e[80],colorBrandForegroundInvertedHover:e[70],colorBrandForegroundInvertedPressed:e[60],colorBrandForegroundOnLight:e[80],colorBrandForegroundOnLightHover:e[70],colorBrandForegroundOnLightPressed:e[50],colorBrandForegroundOnLightSelected:e[60],colorNeutralBackground1:ne[16],colorNeutralBackground1Hover:ne[24],colorNeutralBackground1Pressed:ne[12],colorNeutralBackground1Selected:ne[22],colorNeutralBackground2:ne[12],colorNeutralBackground2Hover:ne[20],colorNeutralBackground2Pressed:ne[8],colorNeutralBackground2Selected:ne[18],colorNeutralBackground3:ne[8],colorNeutralBackground3Hover:ne[16],colorNeutralBackground3Pressed:ne[4],colorNeutralBackground3Selected:ne[14],colorNeutralBackground4:ne[4],colorNeutralBackground4Hover:ne[12],colorNeutralBackground4Pressed:ad,colorNeutralBackground4Selected:ne[10],colorNeutralBackground5:ad,colorNeutralBackground5Hover:ne[8],colorNeutralBackground5Pressed:ne[2],colorNeutralBackground5Selected:ne[6],colorNeutralBackground6:ne[20],colorNeutralBackgroundInverted:ze,colorNeutralBackgroundStatic:ne[24],colorNeutralBackgroundAlpha:YA[50],colorNeutralBackgroundAlpha2:QA[70],colorSubtleBackground:"transparent",colorSubtleBackgroundHover:ne[22],colorSubtleBackgroundPressed:ne[18],colorSubtleBackgroundSelected:ne[20],colorSubtleBackgroundLightAlphaHover:ry[80],colorSubtleBackgroundLightAlphaPressed:ry[50],colorSubtleBackgroundLightAlphaSelected:"transparent",colorSubtleBackgroundInverted:"transparent",colorSubtleBackgroundInvertedHover:lr[10],colorSubtleBackgroundInvertedPressed:lr[30],colorSubtleBackgroundInvertedSelected:lr[20],colorTransparentBackground:"transparent",colorTransparentBackgroundHover:"transparent",colorTransparentBackgroundPressed:"transparent",colorTransparentBackgroundSelected:"transparent",colorNeutralBackgroundDisabled:ne[8],colorNeutralBackgroundInvertedDisabled:fo[10],colorNeutralStencil1:ne[34],colorNeutralStencil2:ne[20],colorNeutralStencil1Alpha:fo[10],colorNeutralStencil2Alpha:fo[5],colorBackgroundOverlay:lr[50],colorScrollbarOverlay:fo[60],colorBrandBackground:e[70],colorBrandBackgroundHover:e[80],colorBrandBackgroundPressed:e[40],colorBrandBackgroundSelected:e[60],colorCompoundBrandBackground:e[100],colorCompoundBrandBackgroundHover:e[110],colorCompoundBrandBackgroundPressed:e[90],colorBrandBackgroundStatic:e[80],colorBrandBackground2:e[20],colorBrandBackground2Hover:e[40],colorBrandBackground2Pressed:e[10],colorBrandBackground3Static:e[60],colorBrandBackground4Static:e[40],colorBrandBackgroundInverted:ze,colorBrandBackgroundInvertedHover:e[160],colorBrandBackgroundInvertedPressed:e[140],colorBrandBackgroundInvertedSelected:e[150],colorNeutralCardBackground:ne[20],colorNeutralCardBackgroundHover:ne[24],colorNeutralCardBackgroundPressed:ne[18],colorNeutralCardBackgroundSelected:ne[22],colorNeutralCardBackgroundDisabled:ne[8],colorNeutralStrokeAccessible:ne[68],colorNeutralStrokeAccessibleHover:ne[74],colorNeutralStrokeAccessiblePressed:ne[70],colorNeutralStrokeAccessibleSelected:e[100],colorNeutralStroke1:ne[40],colorNeutralStroke1Hover:ne[46],colorNeutralStroke1Pressed:ne[42],colorNeutralStroke1Selected:ne[44],colorNeutralStroke2:ne[32],colorNeutralStroke3:ne[24],colorNeutralStrokeSubtle:ne[4],colorNeutralStrokeOnBrand:ne[16],colorNeutralStrokeOnBrand2:ze,colorNeutralStrokeOnBrand2Hover:ze,colorNeutralStrokeOnBrand2Pressed:ze,colorNeutralStrokeOnBrand2Selected:ze,colorBrandStroke1:e[100],colorBrandStroke2:e[50],colorBrandStroke2Hover:e[50],colorBrandStroke2Pressed:e[30],colorBrandStroke2Contrast:e[50],colorCompoundBrandStroke:e[100],colorCompoundBrandStrokeHover:e[110],colorCompoundBrandStrokePressed:e[90],colorNeutralStrokeDisabled:ne[26],colorNeutralStrokeInvertedDisabled:fo[40],colorTransparentStroke:"transparent",colorTransparentStrokeInteractive:"transparent",colorTransparentStrokeDisabled:"transparent",colorNeutralStrokeAlpha:fo[10],colorNeutralStrokeAlpha2:fo[20],colorStrokeFocus1:ad,colorStrokeFocus2:ze,colorNeutralShadowAmbient:"rgba(0,0,0,0.24)",colorNeutralShadowKey:"rgba(0,0,0,0.28)",colorNeutralShadowAmbientLighter:"rgba(0,0,0,0.12)",colorNeutralShadowKeyLighter:"rgba(0,0,0,0.14)",colorNeutralShadowAmbientDarker:"rgba(0,0,0,0.40)",colorNeutralShadowKeyDarker:"rgba(0,0,0,0.48)",colorBrandShadowAmbient:"rgba(0,0,0,0.30)",colorBrandShadowKey:"rgba(0,0,0,0.25)"}),HI=(e=>{const t=zI(e);return{...ly,...dy,...hy,...py,...fy,...vy,...gy,...my,...uy,...cy,...t,...NI,...yi,...ld(t.colorNeutralShadowAmbient,t.colorNeutralShadowKey),...ld(t.colorBrandShadowAmbient,t.colorBrandShadowKey,"Brand")}})(by),wy={root:"fui-FluentProvider"},VI=qC({root:{sj55zd:"f19n0e5",De3pzq:"fxugw4r",fsow6f:["f1o700av","fes3tcz"],Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi"}},{d:[".f19n0e5{color:var(--colorNeutralForeground1);}",".fxugw4r{background-color:var(--colorNeutralBackground1);}",".f1o700av{text-align:left;}",".fes3tcz{text-align:right;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".figsok6{font-weight:var(--fontWeightRegular);}",".f1i3iumi{line-height:var(--lineHeightBase300);}"]}),GI=e=>{"use no memo";const t=qu(),o=VI({dir:e.dir,renderer:t});return e.root.className=de(wy.root,e.themeClassName,o.root,e.root.className),e},jI=S.useInsertionEffect?S.useInsertionEffect:Zt,WI=(e,t)=>{if(!e?.head)return;const o=e.createElement("style");return Object.keys(t).forEach(r=>{o.setAttribute(r,t[r])}),e.head.appendChild(o),o},qI=(e,t)=>{const o=e.sheet;o&&(o.cssRules.length>0&&o.deleteRule(0),o.insertRule(t,0))},UI=e=>{"use no memo";const{targetDocument:t,theme:o,rendererAttributes:r}=e,n=S.useRef(void 0),i=Go(wy.root),s=r,a=S.useMemo(()=>nM(`.${i}`,o),[o,i]);return $I(t,i),jI(()=>{const c=t?.getElementById(i);return c?n.current=c:(n.current=WI(t,{...s,id:i}),n.current&&qI(n.current,a)),()=>{var d;(d=n.current)===null||d===void 0||d.remove()}},[i,t,a,s]),{styleTagId:i,rule:a}};function $I(e,t){S.useState(()=>{if(!e)return;const o=e.getElementById(t);o&&e.head.append(o)})}const KI={},XI={},ZI=(e,t)=>{"use no memo";const o=lt(),r=YI(),n=zp(),i=S.useContext(Hp)||KI,{applyStylesToPortals:s=!0,customStyleHooks_unstable:a,dir:c=o.dir,targetDocument:d=o.targetDocument,theme:h,overrides_unstable:f={}}=e,g=cg(r,h),m=cg(n,f),b=cg(i,a),w=qu();var y;const{styleTagId:k,rule:C}=UI({theme:g,targetDocument:d,rendererAttributes:(y=w.styleElementAttributes)!==null&&y!==void 0?y:XI});return{applyStylesToPortals:s,customStyleHooks_unstable:b,dir:c,targetDocument:d,theme:g,overrides_unstable:m,themeClassName:k,components:{root:"div"},root:Le(wt("div",{...e,dir:c,ref:tt(t,Y0({targetDocument:d}))}),{elementType:"div"}),serverStyleProps:{cssRule:C,attributes:{...w.styleElementAttributes,id:k}}}};function cg(e,t){return e&&t?{...e,...t}:e||t}function YI(){return S.useContext(t0)}function QI(e){const{applyStylesToPortals:t,customStyleHooks_unstable:o,dir:r,root:n,targetDocument:i,theme:s,themeClassName:a,overrides_unstable:c}=e,d=S.useMemo(()=>({dir:r,targetDocument:i}),[r,i]),[h]=S.useState(()=>({})),f=S.useMemo(()=>({textDirection:r}),[r]);return{customStyleHooks_unstable:o,overrides_unstable:c,provider:d,textDirection:r,iconDirection:f,tooltip:h,theme:s,themeClassName:t?n.className:a}}const Cy=S.forwardRef((e,t)=>{const o=ZI(e,t);GI(o);const r=QI(o);return b2(o,r)});Cy.displayName="FluentProvider";var ug={exports:{}},dg={};var yy;function JI(){return yy||(yy=1,(function(e){function t($,Y){var I=$.length;$.push(Y);e:for(;0<I;){var X=I-1>>>1,j=$[X];if(0<n(j,Y))$[X]=Y,$[I]=j,I=X;else break e}}function o($){return $.length===0?null:$[0]}function r($){if($.length===0)return null;var Y=$[0],I=$.pop();if(I!==Y){$[0]=I;e:for(var X=0,j=$.length,z=j>>>1;X<z;){var H=2*(X+1)-1,te=$[H],re=H+1,be=$[re];if(0>n(te,I))re<j&&0>n(be,te)?($[X]=be,$[re]=I,X=re):($[X]=te,$[H]=I,X=H);else if(re<j&&0>n(be,I))$[X]=be,$[re]=I,X=re;else break e}}return Y}function n($,Y){var I=$.sortIndex-Y.sortIndex;return I!==0?I:$.id-Y.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var s=Date,a=s.now();e.unstable_now=function(){return s.now()-a}}var c=[],d=[],h=1,f=null,g=3,m=!1,b=!1,w=!1,y=!1,k=typeof setTimeout=="function"?setTimeout:null,C=typeof clearTimeout=="function"?clearTimeout:null,F=typeof setImmediate<"u"?setImmediate:null;function E($){for(var Y=o(d);Y!==null;){if(Y.callback===null)r(d);else if(Y.startTime<=$)r(d),Y.sortIndex=Y.expirationTime,t(c,Y);else break;Y=o(d)}}function _($){if(w=!1,E($),!b)if(o(c)!==null)b=!0,P||(P=!0,W());else{var Y=o(d);Y!==null&&U(_,Y.startTime-$)}}var P=!1,D=-1,M=5,A=-1;function O(){return y?!0:!(e.unstable_now()-A<M)}function K(){if(y=!1,P){var $=e.unstable_now();A=$;var Y=!0;try{e:{b=!1,w&&(w=!1,C(D),D=-1),m=!0;var I=g;try{t:{for(E($),f=o(c);f!==null&&!(f.expirationTime>$&&O());){var X=f.callback;if(typeof X=="function"){f.callback=null,g=f.priorityLevel;var j=X(f.expirationTime<=$);if($=e.unstable_now(),typeof j=="function"){f.callback=j,E($),Y=!0;break t}f===o(c)&&r(c),E($)}else r(c);f=o(c)}if(f!==null)Y=!0;else{var z=o(d);z!==null&&U(_,z.startTime-$),Y=!1}}break e}finally{f=null,g=I,m=!1}Y=void 0}}finally{Y?W():P=!1}}}var W;if(typeof F=="function")W=function(){F(K)};else if(typeof MessageChannel<"u"){var L=new MessageChannel,V=L.port2;L.port1.onmessage=K,W=function(){V.postMessage(null)}}else W=function(){k(K,0)};function U($,Y){D=k(function(){$(e.unstable_now())},Y)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function($){$.callback=null},e.unstable_forceFrameRate=function($){0>$||125<$?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):M=0<$?Math.floor(1e3/$):5},e.unstable_getCurrentPriorityLevel=function(){return g},e.unstable_next=function($){switch(g){case 1:case 2:case 3:var Y=3;break;default:Y=g}var I=g;g=Y;try{return $()}finally{g=I}},e.unstable_requestPaint=function(){y=!0},e.unstable_runWithPriority=function($,Y){switch($){case 1:case 2:case 3:case 4:case 5:break;default:$=3}var I=g;g=$;try{return Y()}finally{g=I}},e.unstable_scheduleCallback=function($,Y,I){var X=e.unstable_now();switch(typeof I=="object"&&I!==null?(I=I.delay,I=typeof I=="number"&&0<I?X+I:X):I=X,$){case 1:var j=-1;break;case 2:j=250;break;case 5:j=1073741823;break;case 4:j=1e4;break;default:j=5e3}return j=I+j,$={id:h++,callback:Y,priorityLevel:$,startTime:I,expirationTime:j,sortIndex:-1},I>X?($.sortIndex=I,t(d,$),o(c)===null&&$===o(d)&&(w?(C(D),D=-1):w=!0,U(_,I-X))):($.sortIndex=j,t(c,$),b||m||(b=!0,P||(P=!0,W()))),$},e.unstable_shouldYield=O,e.unstable_wrapCallback=function($){var Y=g;return function(){var I=g;g=Y;try{return $.apply(this,arguments)}finally{g=I}}}})(dg)),dg}var Sy;function eB(){return Sy||(Sy=1,ug.exports=JI()),ug.exports}var xy=eB();const tB=e=>o=>{const r=S.useRef(o.value),n=S.useRef(0),i=S.useRef(null);return i.current||(i.current={value:r,version:n,listeners:[]}),Zt(()=>{r.current=o.value,n.current+=1,xy.unstable_runWithPriority(xy.unstable_NormalPriority,()=>{i.current.listeners.forEach(s=>{s([n.current,o.value])})})},[o.value]),S.createElement(e,{value:i.current},o.children)},Si=e=>{const t=S.createContext({value:{current:e},version:{current:-1},listeners:[]});return t.Provider=tB(t.Provider),delete t.Consumer,t},hs=(e,t)=>{const o=S.useContext(e),{value:{current:r},version:{current:n},listeners:i}=o,s=t(r),[a,c]=S.useState([r,s]),d=f=>{c(g=>{if(!f)return[r,s];if(f[0]<=n)return Object.is(g[1],s)?g:[r,s];try{if(Object.is(g[0],f[1]))return g;const m=t(f[1]);return Object.is(g[1],m)?g:[f[1],m]}catch{}return[g[0],g[1]]})};Object.is(a[1],s)||d(void 0);const h=pe(d);return Zt(()=>(i.push(h),()=>{const f=i.indexOf(h);i.splice(f,1)}),[h,i]),a[1]};function ic(e){const t=S.useContext(e);return t.version?t.version.current!==-1:!1}const fs="Enter",sn=" ",ky="Tab",cd="ArrowDown",ud="ArrowLeft",dd="ArrowRight",hd="ArrowUp",oB="End",rB="Home",nB="PageDown",iB="PageUp",ya="Escape";function Sa(e,t){const{disabled:o,disabledFocusable:r=!1,["aria-disabled"]:n,onClick:i,onKeyDown:s,onKeyUp:a,...c}=t??{},d=typeof n=="string"?n==="true":n,h=o||r||d,f=pe(b=>{h?(b.preventDefault(),b.stopPropagation()):i?.(b)}),g=pe(b=>{if(s?.(b),b.isDefaultPrevented())return;const w=b.key;if(h&&(w===fs||w===sn)){b.preventDefault(),b.stopPropagation();return}if(w===sn){b.preventDefault();return}else w===fs&&(b.preventDefault(),b.currentTarget.click())}),m=pe(b=>{if(a?.(b),b.isDefaultPrevented())return;const w=b.key;if(h&&(w===fs||w===sn)){b.preventDefault(),b.stopPropagation();return}w===sn&&(b.preventDefault(),b.currentTarget.click())});if(e==="button"||e===void 0)return{...c,disabled:o&&!r,"aria-disabled":r?!0:d,onClick:r?void 0:f,onKeyUp:r?void 0:a,onKeyDown:r?void 0:s};{const b=!!c.href;let w=b?void 0:"button";!w&&h&&(w="link");const y={role:w,tabIndex:r||!b&&!o?0:void 0,...c,onClick:f,onKeyUp:m,onKeyDown:g,"aria-disabled":h};return e==="a"&&h&&(y.href=void 0),y}}const To=()=>{},sB={controller:{active:To,blur:To,find:To,first:To,focus:To,focusLastActive:To,scrollActiveIntoView:To,last:To,next:To,prev:To,showAttributes:To,hideAttributes:To,showFocusVisibleAttributes:To,hideFocusVisibleAttributes:To}},hg=S.createContext(void 0),fg=hg.Provider,Fy=()=>{var e;return(e=S.useContext(hg))!==null&&e!==void 0?e:sB},aB=()=>!!S.useContext(hg);function lB(e){const{matchOption:t}=e,{targetDocument:o}=lt(),r=S.useRef(null),n=S.useRef(null),i=S.useCallback(c=>vi(c)&&t(c)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP,[t]),s=S.useCallback(c=>{c&&o?(n.current=c,r.current=o.createTreeWalker(c,NodeFilter.SHOW_ELEMENT,i)):(n.current=null,r.current=null)},[o,i]);return{optionWalker:S.useMemo(()=>({first:()=>!r.current||!n.current?null:(r.current.currentNode=n.current,r.current.firstChild()),last:()=>!r.current||!n.current?null:(r.current.currentNode=n.current,r.current.lastChild()),next:()=>r.current?r.current.nextNode():null,prev:()=>r.current?r.current.previousNode():null,find:(c,d)=>{if(!r.current||!n.current)return null;const h=d?o?.getElementById(d):null;r.current.currentNode=h??n.current;let f=r.current.currentNode;for(;f&&!c(f.id);)f=r.current.nextNode();return f},setCurrent:c=>{r.current&&(r.current.currentNode=c)}}),[o]),listboxCallbackRef:s}}const Ry="data-activedescendant",xa="data-activedescendant-focusvisible",Ey=e=>{if(!e)return;const t=_y(e.parentElement);if(!t)return;const{offsetHeight:o}=e,r=Py(e,t),{scrollMarginTop:n,scrollMarginBottom:i}=cB(e),{offsetHeight:s,scrollTop:a}=t,c=r-n<a,d=r+o+i>a+s,h=2;c?t.scrollTo(0,r-n-h):d&&t.scrollTo(0,r+o+i-s+h)},_y=e=>e?e.scrollHeight>e.offsetHeight?e:_y(e.parentElement):null,Py=(e,t)=>!e||e===t?0:e.contains(t)?t.offsetTop*-1:e.offsetTop+Py(e.offsetParent,t),cB=e=>{var t;const o=(t=e.ownerDocument)===null||t===void 0?void 0:t.defaultView;if(!o)return{scrollMarginTop:0,scrollMarginBottom:0};const r=o.getComputedStyle(e);var n;const i=(n=fd(r.scrollMarginTop))!==null&&n!==void 0?n:fd(r.scrollMarginBlockStart);var s;const a=(s=fd(r.scrollMarginBottom))!==null&&s!==void 0?s:fd(r.scrollMarginBlockEnd);return{scrollMarginTop:i,scrollMarginBottom:a}},fd=e=>e?parseInt(e,10):0,uB=e=>new CustomEvent("activedescendantchange",{bubbles:!0,cancelable:!1,composed:!0,detail:e});function pg(e){const{imperativeRef:t,matchOption:o}=e,r=S.useRef(!1),n=S.useRef(!0),i=S.useRef(null),s=S.useRef(null),a=S.useRef(null),c=S.useRef(!0),d=S.useCallback(()=>{var E;(E=a.current)===null||E===void 0||E.removeAttribute("aria-activedescendant")},[]),h=S.useCallback(E=>{if(E&&(i.current=E),c.current&&i.current){var _;(_=a.current)===null||_===void 0||_.setAttribute("aria-activedescendant",i.current)}},[]);ty(E=>{r.current=E;const _=w();_&&(E&&n.current?_.setAttribute(xa,""):_.removeAttribute(xa))});const f=pe(o),g=S.useRef(null),{optionWalker:m,listboxCallbackRef:b}=lB({matchOption:f}),w=S.useCallback(()=>{var E;return(E=g.current)===null||E===void 0?void 0:E.querySelector(`#${i.current}`)},[g]),y=S.useCallback(E=>{n.current=E;const _=w();_&&(E&&r.current?_.setAttribute(xa,""):_.removeAttribute(xa))},[w]),k=S.useCallback(()=>{const E=w();E&&(E.removeAttribute(Ry),E.removeAttribute(xa)),d(),s.current=i.current,i.current=null;var _;return(_=E?.id)!==null&&_!==void 0?_:null},[w,d]),C=S.useCallback(E=>{if(!E)return;const _=k();Ey(E),h(E.id),E.setAttribute(Ry,""),r.current&&n.current&&E.setAttribute(xa,"");const P=uB({id:E.id,previousId:_});E.dispatchEvent(P)},[k,h]),F=S.useMemo(()=>({first:({passive:E}={})=>{const _=m.first();return E||C(_),_?.id},last:({passive:E}={})=>{const _=m.last();return E||C(_),_?.id},next:({passive:E}={})=>{const _=w();if(!_)return;m.setCurrent(_);const P=m.next();return E||C(P),P?.id},prev:({passive:E}={})=>{const _=w();if(!_)return;m.setCurrent(_);const P=m.prev();return E||C(P),P?.id},blur:()=>{k()},active:()=>{var E;return(E=w())===null||E===void 0?void 0:E.id},focus:E=>{if(!g.current)return;const _=g.current.querySelector(`#${E}`);_&&C(_)},focusLastActive:()=>{if(!g.current||!s.current)return;const E=g.current.querySelector(`#${s.current}`);if(E)return C(E),!0},find(E,{passive:_,startFrom:P}={}){const D=m.find(E,P);return _||C(D),D?.id},scrollActiveIntoView:()=>{if(!g.current)return;const E=w();E&&Ey(E)},showAttributes(){c.current=!0,h()},hideAttributes(){c.current=!1,d()},showFocusVisibleAttributes(){y(!0)},hideFocusVisibleAttributes(){y(!1)}}),[m,g,h,d,C,k,w,y]);return S.useImperativeHandle(t,()=>F),{listboxRef:tt(g,b),activeParentRef:a,controller:F}}const dB=Se({root:{mc9l5x:"f1w7gpdv",Bg96gwp:"fez10in"},rtl:{Bz10aip:"f13rod7r"}},{d:[".f1w7gpdv{display:inline;}",".fez10in{line-height:0;}",".f13rod7r{transform:scaleX(-1);}"]}),hB=(e,t)=>{const{title:o,primaryFill:r="currentColor",...n}=e,i={...n,title:void 0,fill:r},s=dB(),a=v2();return i.className=de(s.root,t?.flipInRtl&&a?.textDirection==="rtl"&&s.rtl,i.className),o&&(i["aria-label"]=o),!i["aria-label"]&&!i["aria-labelledby"]?i["aria-hidden"]=!0:i.role="img",i},fB=Se({root:{B8gzw0y:"f1dd5bof"}},{m:[["@media (forced-colors: active){.f1dd5bof{forced-color-adjust:auto;}}",{m:"(forced-colors: active)"}]]}),Ue=(e,t,o,r)=>{const n=t==="1em"?"20":t,i=S.forwardRef((s,a)=>{const c=fB(),d=hB(s,{flipInRtl:r?.flipInRtl}),h={...d,className:de(d.className,c.root),ref:a,width:t,height:t,viewBox:`0 0 ${n} ${n}`,xmlns:"http://www.w3.org/2000/svg"};return typeof o=="string"?S.createElement("svg",{...h,dangerouslySetInnerHTML:{__html:o}}):S.createElement("svg",h,...o.map(f=>S.createElement("path",{d:f,fill:h.fill})))});return i.displayName=e,i},pB=Ue("CalendarLtrRegular","1em",["M7 11a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm1 2a1 1 0 1 1-2 0 1 1 0 0 1 2 0Zm2-2a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm1 2a1 1 0 1 1-2 0 1 1 0 0 1 2 0Zm2-2a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm4-5.5A2.5 2.5 0 0 0 14.5 3h-9A2.5 2.5 0 0 0 3 5.5v9A2.5 2.5 0 0 0 5.5 17h9a2.5 2.5 0 0 0 2.5-2.5v-9ZM4 7h12v7.5c0 .83-.67 1.5-1.5 1.5h-9A1.5 1.5 0 0 1 4 14.5V7Zm1.5-3h9c.83 0 1.5.67 1.5 1.5V6H4v-.5C4 4.67 4.67 4 5.5 4Z"]),gB=Ue("SearchFilled","1em",["M13.54 14.6a6.5 6.5 0 1 1 1.06-1.06l3.43 3.43a.75.75 0 0 1-.98 1.13l-.08-.07-3.43-3.43Zm.96-5.1a5 5 0 1 0-10 0 5 5 0 0 0 10 0Z"]),mB=Ue("SearchRegular","1em",["M13.73 14.44a6.5 6.5 0 1 1 .7-.7l3.42 3.4a.5.5 0 0 1-.63.77l-.07-.06-3.42-3.41Zm-.71-.71A5.54 5.54 0 0 0 15 9.5a5.5 5.5 0 1 0-1.98 4.23Z"]),vB=Ue("SlideSearchRegular","1em",["M5.5 7a.5.5 0 0 0 0 1h6a.5.5 0 0 0 0-1h-6Zm3.03 3.5a4.5 4.5 0 0 0-.68-1h6.65a.5.5 0 0 1 0 1H8.53Zm.47 2c0 .17 0 .34-.03.5h3.53a.5.5 0 0 0 0-1H8.97c.02.16.03.33.03.5Zm-6-6v1.76c-.36.12-.7.3-1 .5V6.5A2.5 2.5 0 0 1 4.5 4h11A2.5 2.5 0 0 1 18 6.5v7a2.5 2.5 0 0 1-2.5 2.5h-5.38l-1-1h6.38c.83 0 1.5-.67 1.5-1.5v-7c0-.83-.67-1.5-1.5-1.5h-11C3.67 5 3 5.67 3 6.5ZM4.5 16c.79 0 1.51-.26 2.1-.7l2.55 2.55a.5.5 0 1 0 .7-.7L7.3 14.6A3.5 3.5 0 1 0 4.5 16Zm0-1a2.5 2.5 0 1 1 0-5 2.5 2.5 0 0 1 0 5Z"]),bB=Ue("NumberSymbolSquareRegular","1em",["M9.1 6.01a.5.5 0 0 1 .39.6L9.19 8h2.48L12 6.4a.5.5 0 0 1 .98.2l-.3 1.4h.81a.5.5 0 0 1 0 1h-1.02l-.43 2H13a.5.5 0 0 1 0 1h-1.17l-.34 1.6a.5.5 0 1 1-.98-.2l.3-1.4H8.33L8 13.6a.5.5 0 1 1-.98-.2l.3-1.4H6.5a.5.5 0 0 1 0-1h1.02l.43-2H7a.5.5 0 0 1 0-1h1.17l.34-1.6a.5.5 0 0 1 .6-.39ZM8.55 11h2.47l.43-2H8.98l-.43 2ZM3 5.5A2.5 2.5 0 0 1 5.5 3h9A2.5 2.5 0 0 1 17 5.5v9a2.5 2.5 0 0 1-2.5 2.5h-9A2.5 2.5 0 0 1 3 14.5v-9ZM5.5 4C4.67 4 4 4.67 4 5.5v9c0 .83.67 1.5 1.5 1.5h9c.83 0 1.5-.67 1.5-1.5v-9c0-.83-.67-1.5-1.5-1.5h-9Z"]),wB=Ue("HandPointFilled","1em",["M10 2a2 2 0 0 0-2 2v5.67l-1.31-.69a3.53 3.53 0 0 0-4.53 1.1.88.88 0 0 0 .37 1.32c4.33 1.87 5.95 3.58 6.67 4.9.54 1 1.61 1.85 2.9 1.67l2.87-.4a2.5 2.5 0 0 0 2.08-1.86l.82-3.25a4 4 0 0 0-3.29-4.94L12 7.14V4a2 2 0 0 0-2-2Z"]),CB=Ue("SaveFilled","1em",["M3 5c0-1.1.9-2 2-2h1v3.5C6 7.33 6.67 8 7.5 8h4c.83 0 1.5-.67 1.5-1.5V3h.38a2 2 0 0 1 1.41.59l1.62 1.62A2 2 0 0 1 17 6.62V15a2 2 0 0 1-2 2v-5.5c0-.83-.67-1.5-1.5-1.5h-7c-.83 0-1.5.67-1.5 1.5V17a2 2 0 0 1-2-2V5Zm9-2H7v3.5c0 .28.22.5.5.5h4a.5.5 0 0 0 .5-.5V3Zm2 8.5V17H6v-5.5c0-.28.22-.5.5-.5h7c.28 0 .5.22.5.5Z"]),yB=Ue("AddSquareFilled","1em",["M3 6a3 3 0 0 1 3-3h8a3 3 0 0 1 3 3v8a3 3 0 0 1-3 3H6a3 3 0 0 1-3-3V6Zm7.5.5a.5.5 0 0 0-1 0v3h-3a.5.5 0 0 0 0 1h3v3a.5.5 0 1 0 1 0v-3h3a.5.5 0 1 0 0-1h-3v-3Z"]),Dy=Ue("CircleFilled","1em",["M10 2a8 8 0 1 0 0 16 8 8 0 0 0 0-16Z"]),SB=Ue("CurrencyDollarEuroFilled","1em",["M5.5 2a.75.75 0 0 0-.75.75v.33A3.5 3.5 0 0 0 2 6.5v.28c0 1.47.85 2.8 2.17 3.42l.58.27v4.87a2 2 0 0 1-1.25-1.86V12.4a.75.75 0 0 0-1.5 0v1.08a3.5 3.5 0 0 0 2.75 3.42v.35a.75.75 0 0 0 1.5 0v-.35A3.5 3.5 0 0 0 9 13.48v-.27c0-1.46-.84-2.8-2.17-3.42l-.58-.27V4.64A2 2 0 0 1 7.5 6.5v1.1a.75.75 0 0 0 1.5 0V6.5a3.5 3.5 0 0 0-2.75-3.42v-.33A.75.75 0 0 0 5.5 2Zm-2 4.5a2 2 0 0 1 1.25-1.86v4.18A2.28 2.28 0 0 1 3.5 6.78V6.5Zm2.75 8.84v-4.16a2.27 2.27 0 0 1 1.25 2.03v.27a2 2 0 0 1-1.25 1.86ZM12.5 10c0-.34.02-.66.06-.98h1.7a.75.75 0 0 0 0-1.5h-1.38A6.1 6.1 0 0 1 13.61 6c.67-1 1.52-1.5 2.36-1.5.3 0 .63.1.86.25a.75.75 0 0 0 .84-1.24 3.1 3.1 0 0 0-1.7-.51c-1.49 0-2.75.9-3.6 2.16a7.8 7.8 0 0 0-1.05 2.36h-.57a.75.75 0 0 0 0 1.5h.3a10.02 10.02 0 0 0-.05 1h-.25a.75.75 0 1 0 0 1.5h.37a8.2 8.2 0 0 0 1.25 3.32c.85 1.26 2.11 2.16 3.6 2.16.54 0 1.2-.14 1.72-.52a.75.75 0 1 0-.87-1.22c-.21.15-.53.24-.85.24-.84 0-1.69-.5-2.36-1.5a6.6 6.6 0 0 1-.97-2.48h1.61a.75.75 0 1 0 0-1.5H12.5V10Z"]),xB=Ue("ArrowClockwiseFilled","1em",["M4 10a6 6 0 0 1 9.97-4.5h-1.22a.75.75 0 0 0 0 1.5h3c.41 0 .75-.34.75-.75v-3a.75.75 0 0 0-1.5 0v1.16a7.5 7.5 0 1 0 2.5 5.31.75.75 0 0 0-1.5.06V10a6 6 0 0 1-12 0Z"]),kB=Ue("TextBaselineFilled","1em",["M10.7 3.47a.75.75 0 0 0-1.4 0l-3.75 9.5a.75.75 0 0 0 1.4.56l1.2-3.03h3.7l1.2 3.03a.75.75 0 0 0 1.4-.56l-3.75-9.5ZM11.27 9H8.73L10 5.8 11.27 9Z","M2.5 16a.5.5 0 0 0 0 1h15a.5.5 0 0 0 0-1h-15Z"]),FB=Ue("TextBulletListSquareSearchRegular","1em",["M5.75 3h8.5A2.75 2.75 0 0 1 17 5.75v8.5A2.75 2.75 0 0 1 14.25 17h-4.13l-1-1h5.13c.97 0 1.75-.78 1.75-1.75v-8.5C16 4.78 15.22 4 14.25 4h-8.5C4.78 4 4 4.78 4 5.75v3.28c-.35.04-.68.11-1 .23V5.75A2.75 2.75 0 0 1 5.75 3ZM9.5 14a.5.5 0 0 1 0-1h4a.5.5 0 0 1 0 1h-4Zm-2-6.75a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0Zm2-.25a.5.5 0 0 0 0 1h4a.5.5 0 0 0 0-1h-4Zm0 3a.5.5 0 0 0 0 1h4a.5.5 0 0 0 0-1h-4Zm-5 7c.79 0 1.51-.26 2.1-.7l2.55 2.55a.5.5 0 1 0 .7-.7L7.3 15.6A3.5 3.5 0 1 0 4.5 17Zm0-1a2.5 2.5 0 1 1 0-5 2.5 2.5 0 0 1 0 5Z"]),RB=Ue("CheckmarkFilled","1em",["M7.03 13.9 3.56 10a.75.75 0 0 0-1.12 1l4 4.5c.29.32.79.34 1.09.03l10.5-10.5a.75.75 0 0 0-1.06-1.06l-9.94 9.94Z"]),EB=Ue("CheckmarkSquareRegular","1em",["M6 3a3 3 0 0 0-3 3v8a3 3 0 0 0 3 3h8a3 3 0 0 0 3-3V6a3 3 0 0 0-3-3H6ZM4 6c0-1.1.9-2 2-2h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6Zm9.35 2.35a.5.5 0 0 0-.7-.7L9 11.29 7.35 9.65a.5.5 0 1 0-.7.7l2 2c.2.2.5.2.7 0l4-4Z"]),gg=Ue("ChevronDownRegular","1em",["M15.85 7.65c.2.2.2.5 0 .7l-5.46 5.49a.55.55 0 0 1-.78 0L4.15 8.35a.5.5 0 1 1 .7-.7L10 12.8l5.15-5.16c.2-.2.5-.2.7 0Z"]),_B=Ue("ChevronLeftFilled","1em",["M12.27 15.8a.75.75 0 0 1-1.06-.03l-5-5.25a.75.75 0 0 1 0-1.04l5-5.25a.75.75 0 1 1 1.08 1.04L7.8 10l4.5 4.73c.29.3.28.78-.02 1.06Z"]),PB=Ue("ChevronLeftRegular","1em",["M12.35 15.85a.5.5 0 0 1-.7 0L6.16 10.4a.55.55 0 0 1 0-.78l5.49-5.46a.5.5 0 1 1 .7.7L7.2 10l5.16 5.15c.2.2.2.5 0 .7Z"]),DB=Ue("ChevronRightFilled","1em",["M7.73 4.2a.75.75 0 0 1 1.06.03l5 5.25c.28.3.28.75 0 1.04l-5 5.25a.75.75 0 1 1-1.08-1.04L12.2 10l-4.5-4.73a.75.75 0 0 1 .02-1.06Z"]),TB=Ue("ChevronRightRegular","1em",["M7.65 4.15c.2-.2.5-.2.7 0l5.49 5.46c.21.22.21.57 0 .78l-5.49 5.46a.5.5 0 0 1-.7-.7L12.8 10 7.65 4.85a.5.5 0 0 1 0-.7Z"]),MB=Ue("BorderTopBottomThickRegular","1em",["M6 4.5a1.5 1.5 0 0 0-1.43 1.04.75.75 0 0 1-1.38-.58A3 3 0 0 1 6 3h8a3 3 0 0 1 2.81 1.96.75.75 0 0 1-1.38.58A1.5 1.5 0 0 0 14 4.5H6ZM3.75 12a.75.75 0 0 1-.75-.75v-2.5a.75.75 0 0 1 1.5 0v2.5c0 .41-.34.75-.75.75ZM14 15.5H6a1.5 1.5 0 0 1-1.43-1.04.75.75 0 0 0-1.38.58A3 3 0 0 0 6 17h8a3 3 0 0 0 2.81-1.96.75.75 0 0 0-1.38-.58l-.03.08a1.5 1.5 0 0 1-1.4.96Zm1.5-4.25a.75.75 0 0 0 1.5 0v-2.5a.75.75 0 0 0-1.5 0v2.5Z"]),AB=Ue("DeleteFilled","1em",["M8.5 4h3a1.5 1.5 0 0 0-3 0Zm-1 0a2.5 2.5 0 0 1 5 0h5a.5.5 0 0 1 0 1h-1.05l-1.2 10.34A3 3 0 0 1 12.27 18H7.73a3 3 0 0 1-2.98-2.66L3.55 5H2.5a.5.5 0 0 1 0-1h5ZM9 8a.5.5 0 0 0-1 0v6a.5.5 0 0 0 1 0V8Zm2.5-.5a.5.5 0 0 0-.5.5v6a.5.5 0 0 0 1 0V8a.5.5 0 0 0-.5-.5Z"]),mg=Ue("DismissRegular","1em",["m4.09 4.22.06-.07a.5.5 0 0 1 .63-.06l.07.06L10 9.29l5.15-5.14a.5.5 0 0 1 .63-.06l.07.06c.18.17.2.44.06.63l-.06.07L10.71 10l5.14 5.15c.18.17.2.44.06.63l-.06.07a.5.5 0 0 1-.63.06l-.07-.06L10 10.71l-5.15 5.14a.5.5 0 0 1-.63.06l-.07-.06a.5.5 0 0 1-.06-.63l.06-.07L9.29 10 4.15 4.85a.5.5 0 0 1-.06-.63l.06-.07-.06.07Z"]),IB=Ue("FolderOpenFilled","1em",["M4.5 3A2.5 2.5 0 0 0 2 5.5v6.97l1.57-2.72A3.5 3.5 0 0 1 6.6 8H16v-.5A2.5 2.5 0 0 0 13.5 5H9.7L8.16 3.44A1.5 1.5 0 0 0 7.09 3H4.5Zm-.07 7.25A2.5 2.5 0 0 1 6.6 9H17a2 2 0 0 1 1.73 3l-2.16 3.75A2.5 2.5 0 0 1 14.4 17H4a2 2 0 0 1-1.73-3l2.16-3.75Z"],{flipInRtl:!0}),BB=Ue("Calculator20Regular","20",["M8 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Zm0 3a1 1 0 1 1-2 0 1 1 0 0 1 2 0Zm5-2a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm1 2a1 1 0 1 1-2 0 1 1 0 0 1 2 0Zm-4-2a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm1 2a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM7.5 4C6.67 4 6 4.67 6 5.5v1C6 7.33 6.67 8 7.5 8h5c.83 0 1.5-.67 1.5-1.5v-1c0-.83-.67-1.5-1.5-1.5h-5ZM7 5.5c0-.28.22-.5.5-.5h5c.28 0 .5.22.5.5v1a.5.5 0 0 1-.5.5h-5a.5.5 0 0 1-.5-.5v-1Zm9 10a2.5 2.5 0 0 1-2.5 2.5h-7A2.5 2.5 0 0 1 4 15.5v-11A2.5 2.5 0 0 1 6.5 2h7A2.5 2.5 0 0 1 16 4.5v11Zm-1-11c0-.83-.67-1.5-1.5-1.5h-7C5.67 3 5 3.67 5 4.5v11c0 .83.67 1.5 1.5 1.5h7c.83 0 1.5-.67 1.5-1.5v-11Z"]),OB=Ue("HandPoint20Regular","20",["M10 3a1 1 0 0 0-1 1v6.5a.5.5 0 0 1-.73.44L6.22 9.87a2.53 2.53 0 0 0-3.16.67c4.35 1.9 6.16 3.7 7.02 5.28.42.78 1.15 1.27 1.88 1.16l2.87-.4a1.5 1.5 0 0 0 1.25-1.11l.82-3.25a3 3 0 0 0-2.46-3.7l-3.01-.46a.5.5 0 0 1-.43-.5V4a1 1 0 0 0-1-1ZM8 4a2 2 0 1 1 4 0v3.14l2.58.38a4 4 0 0 1 3.3 4.94l-.83 3.25a2.5 2.5 0 0 1-2.08 1.87l-2.87.4c-1.29.17-2.36-.68-2.9-1.69-.72-1.3-2.34-3.02-6.67-4.9a.88.88 0 0 1-.37-1.31 3.53 3.53 0 0 1 4.53-1.1l1.31.7V4Z"]),NB=Ue("Warning12Filled","12",["M5.21 1.46a.9.9 0 0 1 1.58 0l4.09 7.17a.92.92 0 0 1-.79 1.37H1.91a.92.92 0 0 1-.79-1.37l4.1-7.17ZM5.5 4.5v1a.5.5 0 0 0 1 0v-1a.5.5 0 0 0-1 0ZM6 6.75a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5Z"]),LB=Ue("Info24Filled","24",["M12 2a10 10 0 1 1 0 20 10 10 0 0 1 0-20Zm0 8.5a.75.75 0 0 0-.75.75v5a.75.75 0 0 0 1.5 0v-5a.75.75 0 0 0-.75-.75ZM12 9a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z"]),zB=Ue("Edit24Regular","24",["M20.95 3.05a3.58 3.58 0 0 0-5.06 0L3.94 15c-.4.4-.7.92-.82 1.48l-1.1 4.6a.75.75 0 0 0 .9.9l4.6-1.1A3.1 3.1 0 0 0 9 20.07L20.95 8.11a3.58 3.58 0 0 0 0-5.06Zm-4 1.06a2.08 2.08 0 1 1 2.94 2.94l-.89.89L16.06 5l.9-.9ZM15 6.06 17.94 9l-10 10a1.6 1.6 0 0 1-.76.43l-3.42.8.82-3.4c.06-.3.21-.56.42-.77l10-10Z"]),HB=Ue("Pin20Regular","20",["M10.12 3.14a2 2 0 0 1 3.2-.52l4.06 4.05a2 2 0 0 1-.52 3.2l-3.46 1.74a1.5 1.5 0 0 0-.72.78L11.25 16a1 1 0 0 1-1.64.33L7 13.7 3.7 17H3v-.7L6.3 13l-2.62-2.61a1 1 0 0 1 .34-1.64L7.6 7.32c.34-.14.62-.4.78-.72l1.73-3.46Zm2.5.18a1 1 0 0 0-1.6.26L9.29 7.04a2.5 2.5 0 0 1-1.31 1.2L4.39 9.69l5.93 5.93 1.43-3.59a2.5 2.5 0 0 1 1.2-1.3l3.46-1.74a1 1 0 0 0 .26-1.6l-4.05-4.06Z"]),Ty=Ue("Checkmark12Filled","12",["M9.76 3.2c.3.29.32.76.04 1.06l-4.25 4.5a.75.75 0 0 1-1.08.02L2.22 6.53a.75.75 0 0 1 1.06-1.06l1.7 1.7L8.7 3.24a.75.75 0 0 1 1.06-.04Z"]),VB=Ue("Checkmark16Filled","16",["M14.05 3.49c.28.3.27.77-.04 1.06l-7.93 7.47A.85.85 0 0 1 4.9 12L2.22 9.28a.75.75 0 1 1 1.06-1.06l2.24 2.27 7.47-7.04a.75.75 0 0 1 1.06.04Z"]),My=Ue("CheckmarkCircle12Filled","12",["M1 6a5 5 0 1 1 10 0A5 5 0 0 1 1 6Zm7.35-.9a.5.5 0 1 0-.7-.7L5.5 6.54 4.35 5.4a.5.5 0 1 0-.7.7l1.5 1.5c.2.2.5.2.7 0l2.5-2.5Z"]),GB=Ue("Square12Filled","12",["M2 4c0-1.1.9-2 2-2h4a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V4Z"]),jB=Ue("Square16Filled","16",["M2 4.5A2.5 2.5 0 0 1 4.5 2h7A2.5 2.5 0 0 1 14 4.5v7a2.5 2.5 0 0 1-2.5 2.5h-7A2.5 2.5 0 0 1 2 11.5v-7Z"]),Ay=Ue("ErrorCircle12Filled","12",["M6 11A5 5 0 1 0 6 1a5 5 0 0 0 0 10Zm-.75-2.75a.75.75 0 1 1 1.5 0 .75.75 0 0 1-1.5 0Zm.26-4.84a.5.5 0 0 1 .98 0l.01.09v2.59a.5.5 0 0 1-1 0V3.41Z"]),WB=Ue("Delete20Regular","20",["M8.5 4h3a1.5 1.5 0 0 0-3 0Zm-1 0a2.5 2.5 0 0 1 5 0h5a.5.5 0 0 1 0 1h-1.05l-1.2 10.34A3 3 0 0 1 12.27 18H7.73a3 3 0 0 1-2.98-2.66L3.55 5H2.5a.5.5 0 0 1 0-1h5ZM5.74 15.23A2 2 0 0 0 7.73 17h4.54a2 2 0 0 0 1.99-1.77L15.44 5H4.56l1.18 10.23ZM8.5 7.5c.28 0 .5.22.5.5v6a.5.5 0 0 1-1 0V8c0-.28.22-.5.5-.5ZM12 8a.5.5 0 0 0-1 0v6a.5.5 0 0 0 1 0V8Z"]),qB=Ue("Dismiss20Regular","20",["m4.09 4.22.06-.07a.5.5 0 0 1 .63-.06l.07.06L10 9.29l5.15-5.14a.5.5 0 0 1 .63-.06l.07.06c.18.17.2.44.06.63l-.06.07L10.71 10l5.14 5.15c.18.17.2.44.06.63l-.06.07a.5.5 0 0 1-.63.06l-.07-.06L10 10.71l-5.15 5.14a.5.5 0 0 1-.63.06l-.07-.06a.5.5 0 0 1-.06-.63l.06-.07L9.29 10 4.15 4.85a.5.5 0 0 1-.06-.63l.06-.07-.06.07Z"]),UB=Ue("DismissCircle20Regular","20",["M10 2a8 8 0 1 1 0 16 8 8 0 0 1 0-16Zm0 1a7 7 0 1 0 0 14 7 7 0 0 0 0-14ZM7.8 7.11l.08.06L10 9.3l2.12-2.12a.5.5 0 0 1 .64-.06l.07.06c.17.18.2.44.06.64l-.06.07L10.7 10l2.12 2.12c.17.17.2.44.06.64l-.06.07a.5.5 0 0 1-.64.06l-.07-.06L10 10.7l-2.12 2.12a.5.5 0 0 1-.64.06l-.07-.06a.5.5 0 0 1-.06-.64l.06-.07L9.3 10 7.17 7.88a.5.5 0 0 1-.06-.64l.06-.07a.5.5 0 0 1 .64-.06Z"]),$B="fui-Icon-filled",KB="fui-Icon-regular",XB=Se({root:{mc9l5x:"fjseox"},visible:{mc9l5x:"f1w7gpdv"}},{d:[".fjseox{display:none;}",".f1w7gpdv{display:inline;}"]}),Iy=(e,t)=>{const o=r=>{const{className:n,filled:i,...s}=r,a=XB();return S.createElement(S.Fragment,null,S.createElement(e,Object.assign({},s,{className:de(a.root,i&&a.visible,$B,n)})),S.createElement(t,Object.assign({},s,{className:de(a.root,!i&&a.visible,KB,n)})))};return o.displayName="CompoundIcon",o},mt={...{durationUltraFast:50,durationFaster:100,durationFast:150,durationNormal:200,durationGentle:250,durationSlow:300,durationSlower:400,durationUltraSlow:500},...{curveAccelerateMax:"cubic-bezier(0.9,0.1,1,0.2)",curveAccelerateMid:"cubic-bezier(1,0,1,1)",curveAccelerateMin:"cubic-bezier(0.8,0,0.78,1)",curveDecelerateMax:"cubic-bezier(0.1,0.9,0.2,1)",curveDecelerateMid:"cubic-bezier(0,0,0,1)",curveDecelerateMin:"cubic-bezier(0.33,0,0.1,1)",curveEasyEaseMax:"cubic-bezier(0.8,0,0.2,1)",curveEasyEase:"cubic-bezier(0.33,0,0.67,1)",curveLinear:"cubic-bezier(0,0,1,1)"}};function ZB(e){if(e.playState==="running"){var t;if(e.overallProgress!==void 0){var o;const a=(o=e.overallProgress)!==null&&o!==void 0?o:0;return a>0&&a<1}var r;const i=Number((r=e.currentTime)!==null&&r!==void 0?r:0);var n;const s=Number((n=(t=e.effect)===null||t===void 0?void 0:t.getTiming().duration)!==null&&n!==void 0?n:0);return i>0&&i<s}return!1}const YB={fill:"forwards"},QB={duration:1};function JB(){var e;const t=typeof window<"u"&&typeof((e=window.Animation)===null||e===void 0?void 0:e.prototype.persist)=="function";return S.useCallback((o,r,n)=>{const i=Array.isArray(r)?r:[r],{isReducedMotion:s}=n,a=i.map(c=>{const{keyframes:d,reducedMotion:h=QB,...f}=c,{keyframes:g=d,...m}=h,b=s?g:d,w={...YB,...f,...s&&m};try{const k=o.animate(b,w);if(t)k?.persist();else{const C=b[b.length-1];var y;Object.assign((y=o.style)!==null&&y!==void 0?y:{},C)}return k}catch{return null}}).filter(c=>!!c);return{set playbackRate(c){a.forEach(d=>{d.playbackRate=c})},setMotionEndCallbacks(c,d){const h=a.map(f=>new Promise((g,m)=>{f.onfinish=()=>g(),f.oncancel=()=>m()}));Promise.all(h).then(()=>{c()}).catch(()=>{d()})},isRunning(){return a.some(c=>ZB(c))},cancel:()=>{a.forEach(c=>{c.cancel()})},pause:()=>{a.forEach(c=>{c.pause()})},play:()=>{a.forEach(c=>{c.play()})},finish:()=>{a.forEach(c=>{c.finish()})},reverse:()=>{a.forEach(c=>{c.reverse()})}}},[t])}function By(){"use no memo";return JB()}function Oy(e){const t=S.useRef(void 0);return S.useImperativeHandle(e,()=>({setPlayState:o=>{if(o==="running"){var r;(r=t.current)===null||r===void 0||r.play()}if(o==="paused"){var n;(n=t.current)===null||n===void 0||n.pause()}},setPlaybackRate:o=>{t.current&&(t.current.playbackRate=o)}})),t}const eO="screen and (prefers-reduced-motion: reduce)";function Ny(){const{targetDocument:e}=lt();var t;const o=(t=e?.defaultView)!==null&&t!==void 0?t:null,r=S.useRef(!1),n=S.useCallback(()=>r.current,[]);return Zt(()=>{if(o===null||typeof o.matchMedia!="function")return;const i=o.matchMedia(eO);i.matches&&(r.current=!0);const s=a=>{r.current=a.matches};return i.addEventListener("change",s),()=>{i.removeEventListener("change",s)}},[o]),n}const tO=["@fluentui/react-motion: Invalid child element.",`
|
|
10
|
+
`,"Motion factories require a single child element to be passed. ","That element element should support ref forwarding i.e. it should be either an intrinsic element (e.g. div) or a component that uses React.forwardRef()."].join("");function Ly(e,t=!0){const o=S.useRef(null);S.useEffect(()=>{},[t]);try{const r=S.Children.only(e);if(S.isValidElement(r))return[S.cloneElement(r,{ref:tt(o,Jl(r))}),o]}catch{}throw new Error(tO)}const zy=S.createContext(void 0);zy.Provider;const Hy=()=>{var e;return(e=S.useContext(zy))!==null&&e!==void 0?e:"default"},oO=Symbol("MOTION_DEFINITION");function Vy(e){return Object.assign(o=>{"use no memo";const{children:r,imperativeRef:n,onMotionFinish:i,onMotionStart:s,onMotionCancel:a,...c}=o,d=c,[h,f]=Ly(r),g=Oy(n),m=Hy()==="skip",b=S.useRef({skipMotions:m,params:d}),w=By(),y=Ny(),k=pe(()=>{s?.(null)}),C=pe(()=>{i?.(null)}),F=pe(()=>{a?.(null)});return Zt(()=>{b.current={skipMotions:m,params:d}}),Zt(()=>{const E=f.current;if(E){const _=typeof e=="function"?e({element:E,...b.current.params}):e;k();const P=w(E,_,{isReducedMotion:y()});return g.current=P,P.setMotionEndCallbacks(C,F),b.current.skipMotions&&P.finish(),()=>{P.cancel()}}},[w,f,g,y,C,k,F]),h},{[oO]:typeof e=="function"?e:()=>e})}const Gy=S.createContext(void 0);Gy.Provider;function rO(e=!1,t=!1){const o=S.useRef(t?e:!0),r=QM(),n=S.useCallback(i=>{o.current!==i&&(o.current=i,r())},[r]);return S.useEffect(()=>{e&&(o.current=e)}),[e||o.current,n]}const jy=Symbol("PRESENCE_MOTION_DEFINITION"),nO=Symbol.for("interruptablePresence");function ka(e){return Object.assign(t=>{"use no memo";const r={...S.useContext(Gy),...t},n=Hy()==="skip",{appear:i,children:s,imperativeRef:a,onExit:c,onMotionFinish:d,onMotionStart:h,onMotionCancel:f,visible:g,unmountOnExit:m,...b}=r,w=b,[y,k]=rO(g,m),[C,F]=Ly(s,y),E=Oy(a),_=S.useRef({appear:i,params:w,skipMotions:n}),P=By(),D=Gp(),M=Ny(),A=pe(W=>{h?.(null,{direction:W})}),O=pe(W=>{d?.(null,{direction:W}),W==="exit"&&m&&(k(!1),c?.())}),K=pe(W=>{f?.(null,{direction:W})});return Zt(()=>{_.current={appear:i,params:w,skipMotions:n}}),Zt(()=>{const W=F.current;if(!W)return;let L;function V(){L&&($&&L.isRunning()||(L.cancel(),E.current=void 0))}const U=typeof e=="function"?e({element:W,..._.current.params}):e,$=U[nO];if($&&(L=E.current,L&&L.isRunning()))return L.reverse(),V;const Y=g?U.enter:U.exit,I=g?"enter":"exit",X=!_.current.appear&&D,j=_.current.skipMotions;return X||A(I),L=P(W,Y,{isReducedMotion:M()}),X?(L.finish(),V):(E.current=L,L.setMotionEndCallbacks(()=>O(I),()=>K(I)),j&&L.finish(),V)},[P,F,E,M,O,A,K,g]),y?C:null},{[jy]:typeof e=="function"?e:()=>e},{In:Vy(typeof e=="function"?(...t)=>e(...t).enter:e.enter),Out:Vy(typeof e=="function"?(...t)=>e(...t).exit:e.exit)})}function iO(e,t){return r=>e({...t,...r})}function sc(e,t){const o=e[jy],r=iO(o,t);return ka(r)}function vg(e,t){const{as:o,children:r,...n}=e??{};if(e===null){const s=!t.defaultProps.visible&&t.defaultProps.unmountOnExit,a=(c,d)=>s?null:S.createElement(S.Fragment,null,d.children);return{[Uu]:a,[fa]:t.elementType}}const i={...t.defaultProps,...n,[fa]:t.elementType};return typeof r=="function"&&(i[Uu]=r),i}const Fa=({direction:e,duration:t,easing:o=mt.curveLinear,delay:r=0,fromOpacity:n=0,toOpacity:i=1})=>{const s=[{opacity:n},{opacity:i}];return e==="exit"&&s.reverse(),{keyframes:s,duration:t,easing:o,delay:r,fill:"both"}},Wy=ka(({duration:e=mt.durationNormal,easing:t=mt.curveEasyEase,delay:o=0,exitDuration:r=e,exitEasing:n=t,exitDelay:i=o,fromOpacity:s=0,toOpacity:a=1})=>({enter:Fa({direction:"enter",duration:e,easing:t,delay:o,fromOpacity:s,toOpacity:a}),exit:Fa({direction:"exit",duration:r,easing:n,delay:i,fromOpacity:s,toOpacity:a})}));sc(Wy,{duration:mt.durationFast});const sO=sc(Wy,{duration:mt.durationGentle}),qy=({direction:e,duration:t,easing:o=mt.curveLinear,delay:r=0,fromScale:n=.9,toScale:i=1})=>{const s=[{scale:n},{scale:i}];return e==="exit"&&s.reverse(),{keyframes:s,duration:t,easing:o,delay:r}},bg=ka(({duration:e=mt.durationGentle,easing:t=mt.curveDecelerateMax,delay:o=0,exitDuration:r=mt.durationNormal,exitEasing:n=mt.curveAccelerateMax,exitDelay:i=o,fromScale:s=.9,toScale:a=1,animateOpacity:c=!0})=>{const d=[qy({direction:"enter",duration:e,easing:t,delay:o,fromScale:s,toScale:a})],h=[qy({direction:"exit",duration:r,easing:n,delay:i,fromScale:s,toScale:a})];return c&&(d.push(Fa({direction:"enter",duration:e,easing:t,delay:o})),h.push(Fa({direction:"exit",duration:r,easing:n,delay:i}))),{enter:d,exit:h}});sc(bg,{duration:mt.durationNormal,exitDuration:mt.durationFast}),sc(bg,{duration:mt.durationSlow,exitDuration:mt.durationGentle});function aO(e){const t=e.clientX,o=e.clientY,r=t+1,n=o+1;function i(){return{left:t,top:o,right:r,bottom:n,x:t,y:o,height:1,width:1}}return{getBoundingClientRect:i}}const Uy="data-popper-is-intersecting",$y="data-popper-escaped",Ky="data-popper-reference-hidden",lO="data-popper-placement",wg="fui-positioningend",cO=({options:e})=>e,Xy=S.createContext(void 0);Xy.Provider;const uO=()=>{var e;return(e=S.useContext(Xy))!==null&&e!==void 0?e:cO},dO=["top","right","bottom","left"],ps=Math.min,cr=Math.max,pd=Math.round,an=e=>({x:e,y:e}),hO={left:"right",right:"left",bottom:"top",top:"bottom"},fO={start:"end",end:"start"};function Cg(e,t,o){return cr(e,ps(t,o))}function Ln(e,t){return typeof e=="function"?e(t):e}function zn(e){return e.split("-")[0]}function Ra(e){return e.split("-")[1]}function yg(e){return e==="x"?"y":"x"}function Sg(e){return e==="y"?"height":"width"}const pO=new Set(["top","bottom"]);function ln(e){return pO.has(zn(e))?"y":"x"}function xg(e){return yg(ln(e))}function gO(e,t,o){o===void 0&&(o=!1);const r=Ra(e),n=xg(e),i=Sg(n);let s=n==="x"?r===(o?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=gd(s)),[s,gd(s)]}function mO(e){const t=gd(e);return[kg(e),t,kg(t)]}function kg(e){return e.replace(/start|end/g,t=>fO[t])}const Zy=["left","right"],Yy=["right","left"],vO=["top","bottom"],bO=["bottom","top"];function wO(e,t,o){switch(e){case"top":case"bottom":return o?t?Yy:Zy:t?Zy:Yy;case"left":case"right":return t?vO:bO;default:return[]}}function CO(e,t,o,r){const n=Ra(e);let i=wO(zn(e),o==="start",r);return n&&(i=i.map(s=>s+"-"+n),t&&(i=i.concat(i.map(kg)))),i}function gd(e){return e.replace(/left|right|bottom|top/g,t=>hO[t])}function yO(e){return{top:0,right:0,bottom:0,left:0,...e}}function Qy(e){return typeof e!="number"?yO(e):{top:e,right:e,bottom:e,left:e}}function md(e){const{x:t,y:o,width:r,height:n}=e;return{width:r,height:n,top:o,left:t,right:t+r,bottom:o+n,x:t,y:o}}function Jy(e,t,o){let{reference:r,floating:n}=e;const i=ln(t),s=xg(t),a=Sg(s),c=zn(t),d=i==="y",h=r.x+r.width/2-n.width/2,f=r.y+r.height/2-n.height/2,g=r[a]/2-n[a]/2;let m;switch(c){case"top":m={x:h,y:r.y-n.height};break;case"bottom":m={x:h,y:r.y+r.height};break;case"right":m={x:r.x+r.width,y:f};break;case"left":m={x:r.x-n.width,y:f};break;default:m={x:r.x,y:r.y}}switch(Ra(t)){case"start":m[s]-=g*(o&&d?-1:1);break;case"end":m[s]+=g*(o&&d?-1:1);break}return m}const SO=async(e,t,o)=>{const{placement:r="bottom",strategy:n="absolute",middleware:i=[],platform:s}=o,a=i.filter(Boolean),c=await(s.isRTL==null?void 0:s.isRTL(t));let d=await s.getElementRects({reference:e,floating:t,strategy:n}),{x:h,y:f}=Jy(d,r,c),g=r,m={},b=0;for(let w=0;w<a.length;w++){const{name:y,fn:k}=a[w],{x:C,y:F,data:E,reset:_}=await k({x:h,y:f,initialPlacement:r,placement:g,strategy:n,middlewareData:m,rects:d,platform:s,elements:{reference:e,floating:t}});h=C??h,f=F??f,m={...m,[y]:{...m[y],...E}},_&&b<=50&&(b++,typeof _=="object"&&(_.placement&&(g=_.placement),_.rects&&(d=_.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:n}):_.rects),{x:h,y:f}=Jy(d,g,c)),w=-1)}return{x:h,y:f,placement:g,strategy:n,middlewareData:m}};async function Ea(e,t){var o;t===void 0&&(t={});const{x:r,y:n,platform:i,rects:s,elements:a,strategy:c}=e,{boundary:d="clippingAncestors",rootBoundary:h="viewport",elementContext:f="floating",altBoundary:g=!1,padding:m=0}=Ln(t,e),b=Qy(m),y=a[g?f==="floating"?"reference":"floating":f],k=md(await i.getClippingRect({element:(o=await(i.isElement==null?void 0:i.isElement(y)))==null||o?y:y.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:d,rootBoundary:h,strategy:c})),C=f==="floating"?{x:r,y:n,width:s.floating.width,height:s.floating.height}:s.reference,F=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),E=await(i.isElement==null?void 0:i.isElement(F))?await(i.getScale==null?void 0:i.getScale(F))||{x:1,y:1}:{x:1,y:1},_=md(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:C,offsetParent:F,strategy:c}):C);return{top:(k.top-_.top+b.top)/E.y,bottom:(_.bottom-k.bottom+b.bottom)/E.y,left:(k.left-_.left+b.left)/E.x,right:(_.right-k.right+b.right)/E.x}}const xO=e=>({name:"arrow",options:e,async fn(t){const{x:o,y:r,placement:n,rects:i,platform:s,elements:a,middlewareData:c}=t,{element:d,padding:h=0}=Ln(e,t)||{};if(d==null)return{};const f=Qy(h),g={x:o,y:r},m=xg(n),b=Sg(m),w=await s.getDimensions(d),y=m==="y",k=y?"top":"left",C=y?"bottom":"right",F=y?"clientHeight":"clientWidth",E=i.reference[b]+i.reference[m]-g[m]-i.floating[b],_=g[m]-i.reference[m],P=await(s.getOffsetParent==null?void 0:s.getOffsetParent(d));let D=P?P[F]:0;(!D||!await(s.isElement==null?void 0:s.isElement(P)))&&(D=a.floating[F]||i.floating[b]);const M=E/2-_/2,A=D/2-w[b]/2-1,O=ps(f[k],A),K=ps(f[C],A),W=O,L=D-w[b]-K,V=D/2-w[b]/2+M,U=Cg(W,V,L),$=!c.arrow&&Ra(n)!=null&&V!==U&&i.reference[b]/2-(V<W?O:K)-w[b]/2<0,Y=$?V<W?V-W:V-L:0;return{[m]:g[m]+Y,data:{[m]:U,centerOffset:V-U-Y,...$&&{alignmentOffset:Y}},reset:$}}}),kO=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var o,r;const{placement:n,middlewareData:i,rects:s,initialPlacement:a,platform:c,elements:d}=t,{mainAxis:h=!0,crossAxis:f=!0,fallbackPlacements:g,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:w=!0,...y}=Ln(e,t);if((o=i.arrow)!=null&&o.alignmentOffset)return{};const k=zn(n),C=ln(a),F=zn(a)===a,E=await(c.isRTL==null?void 0:c.isRTL(d.floating)),_=g||(F||!w?[gd(a)]:mO(a)),P=b!=="none";!g&&P&&_.push(...CO(a,w,b,E));const D=[a,..._],M=await Ea(t,y),A=[];let O=((r=i.flip)==null?void 0:r.overflows)||[];if(h&&A.push(M[k]),f){const V=gO(n,s,E);A.push(M[V[0]],M[V[1]])}if(O=[...O,{placement:n,overflows:A}],!A.every(V=>V<=0)){var K,W;const V=(((K=i.flip)==null?void 0:K.index)||0)+1,U=D[V];if(U&&(!(f==="alignment"?C!==ln(U):!1)||O.every(I=>ln(I.placement)===C?I.overflows[0]>0:!0)))return{data:{index:V,overflows:O},reset:{placement:U}};let $=(W=O.filter(Y=>Y.overflows[0]<=0).sort((Y,I)=>Y.overflows[1]-I.overflows[1])[0])==null?void 0:W.placement;if(!$)switch(m){case"bestFit":{var L;const Y=(L=O.filter(I=>{if(P){const X=ln(I.placement);return X===C||X==="y"}return!0}).map(I=>[I.placement,I.overflows.filter(X=>X>0).reduce((X,j)=>X+j,0)]).sort((I,X)=>I[1]-X[1])[0])==null?void 0:L[0];Y&&($=Y);break}case"initialPlacement":$=a;break}if(n!==$)return{reset:{placement:$}}}return{}}}};function eS(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function tS(e){return dO.some(t=>e[t]>=0)}const FO=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:o}=t,{strategy:r="referenceHidden",...n}=Ln(e,t);switch(r){case"referenceHidden":{const i=await Ea(t,{...n,elementContext:"reference"}),s=eS(i,o.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:tS(s)}}}case"escaped":{const i=await Ea(t,{...n,altBoundary:!0}),s=eS(i,o.floating);return{data:{escapedOffsets:s,escaped:tS(s)}}}default:return{}}}}},oS=new Set(["left","top"]);async function RO(e,t){const{placement:o,platform:r,elements:n}=e,i=await(r.isRTL==null?void 0:r.isRTL(n.floating)),s=zn(o),a=Ra(o),c=ln(o)==="y",d=oS.has(s)?-1:1,h=i&&c?-1:1,f=Ln(t,e);let{mainAxis:g,crossAxis:m,alignmentAxis:b}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return a&&typeof b=="number"&&(m=a==="end"?b*-1:b),c?{x:m*h,y:g*d}:{x:g*d,y:m*h}}const EO=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var o,r;const{x:n,y:i,placement:s,middlewareData:a}=t,c=await RO(t,e);return s===((o=a.offset)==null?void 0:o.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:n+c.x,y:i+c.y,data:{...c,placement:s}}}}},_O=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:o,y:r,placement:n}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:a={fn:y=>{let{x:k,y:C}=y;return{x:k,y:C}}},...c}=Ln(e,t),d={x:o,y:r},h=await Ea(t,c),f=ln(zn(n)),g=yg(f);let m=d[g],b=d[f];if(i){const y=g==="y"?"top":"left",k=g==="y"?"bottom":"right",C=m+h[y],F=m-h[k];m=Cg(C,m,F)}if(s){const y=f==="y"?"top":"left",k=f==="y"?"bottom":"right",C=b+h[y],F=b-h[k];b=Cg(C,b,F)}const w=a.fn({...t,[g]:m,[f]:b});return{...w,data:{x:w.x-o,y:w.y-r,enabled:{[g]:i,[f]:s}}}}}},PO=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:o,y:r,placement:n,rects:i,middlewareData:s}=t,{offset:a=0,mainAxis:c=!0,crossAxis:d=!0}=Ln(e,t),h={x:o,y:r},f=ln(n),g=yg(f);let m=h[g],b=h[f];const w=Ln(a,t),y=typeof w=="number"?{mainAxis:w,crossAxis:0}:{mainAxis:0,crossAxis:0,...w};if(c){const F=g==="y"?"height":"width",E=i.reference[g]-i.floating[F]+y.mainAxis,_=i.reference[g]+i.reference[F]-y.mainAxis;m<E?m=E:m>_&&(m=_)}if(d){var k,C;const F=g==="y"?"width":"height",E=oS.has(zn(n)),_=i.reference[f]-i.floating[F]+(E&&((k=s.offset)==null?void 0:k[f])||0)+(E?0:y.crossAxis),P=i.reference[f]+i.reference[F]+(E?0:((C=s.offset)==null?void 0:C[f])||0)-(E?y.crossAxis:0);b<_?b=_:b>P&&(b=P)}return{[g]:m,[f]:b}}}},DO=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var o,r;const{placement:n,rects:i,platform:s,elements:a}=t,{apply:c=()=>{},...d}=Ln(e,t),h=await Ea(t,d),f=zn(n),g=Ra(n),m=ln(n)==="y",{width:b,height:w}=i.floating;let y,k;f==="top"||f==="bottom"?(y=f,k=g===(await(s.isRTL==null?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(k=f,y=g==="end"?"top":"bottom");const C=w-h.top-h.bottom,F=b-h.left-h.right,E=ps(w-h[y],C),_=ps(b-h[k],F),P=!t.middlewareData.shift;let D=E,M=_;if((o=t.middlewareData.shift)!=null&&o.enabled.x&&(M=F),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(D=C),P&&!g){const O=cr(h.left,0),K=cr(h.right,0),W=cr(h.top,0),L=cr(h.bottom,0);m?M=b-2*(O!==0||K!==0?O+K:cr(h.left,h.right)):D=w-2*(W!==0||L!==0?W+L:cr(h.top,h.bottom))}await c({...t,availableWidth:M,availableHeight:D});const A=await s.getDimensions(a.floating);return b!==A.width||w!==A.height?{reset:{rects:!0}}:{}}}};function vd(){return typeof window<"u"}function _a(e){return rS(e)?(e.nodeName||"").toLowerCase():"#document"}function Uo(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Hn(e){var t;return(t=(rS(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function rS(e){return vd()?e instanceof Node||e instanceof Uo(e).Node:!1}function Br(e){return vd()?e instanceof Element||e instanceof Uo(e).Element:!1}function cn(e){return vd()?e instanceof HTMLElement||e instanceof Uo(e).HTMLElement:!1}function nS(e){return!vd()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Uo(e).ShadowRoot}const TO=new Set(["inline","contents"]);function ac(e){const{overflow:t,overflowX:o,overflowY:r,display:n}=Or(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+o)&&!TO.has(n)}const MO=new Set(["table","td","th"]);function AO(e){return MO.has(_a(e))}const IO=[":popover-open",":modal"];function bd(e){return IO.some(t=>{try{return e.matches(t)}catch{return!1}})}const BO=["transform","translate","scale","rotate","perspective"],OO=["transform","translate","scale","rotate","perspective","filter"],NO=["paint","layout","strict","content"];function Fg(e){const t=Rg(),o=Br(e)?Or(e):e;return BO.some(r=>o[r]?o[r]!=="none":!1)||(o.containerType?o.containerType!=="normal":!1)||!t&&(o.backdropFilter?o.backdropFilter!=="none":!1)||!t&&(o.filter?o.filter!=="none":!1)||OO.some(r=>(o.willChange||"").includes(r))||NO.some(r=>(o.contain||"").includes(r))}function LO(e){let t=xi(e);for(;cn(t)&&!Pa(t);){if(Fg(t))return t;if(bd(t))return null;t=xi(t)}return null}function Rg(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const zO=new Set(["html","body","#document"]);function Pa(e){return zO.has(_a(e))}function Or(e){return Uo(e).getComputedStyle(e)}function wd(e){return Br(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function xi(e){if(_a(e)==="html")return e;const t=e.assignedSlot||e.parentNode||nS(e)&&e.host||Hn(e);return nS(t)?t.host:t}function iS(e){const t=xi(e);return Pa(t)?e.ownerDocument?e.ownerDocument.body:e.body:cn(t)&&ac(t)?t:iS(t)}function sS(e,t,o){var r;t===void 0&&(t=[]);const n=iS(e),i=n===((r=e.ownerDocument)==null?void 0:r.body),s=Uo(n);return i?(Eg(s),t.concat(s,s.visualViewport||[],ac(n)?n:[],[])):t.concat(n,sS(n,[]))}function Eg(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function aS(e){const t=Or(e);let o=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const n=cn(e),i=n?e.offsetWidth:o,s=n?e.offsetHeight:r,a=pd(o)!==i||pd(r)!==s;return a&&(o=i,r=s),{width:o,height:r,$:a}}function lS(e){return Br(e)?e:e.contextElement}function Da(e){const t=lS(e);if(!cn(t))return an(1);const o=t.getBoundingClientRect(),{width:r,height:n,$:i}=aS(t);let s=(i?pd(o.width):o.width)/r,a=(i?pd(o.height):o.height)/n;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const HO=an(0);function cS(e){const t=Uo(e);return!Rg()||!t.visualViewport?HO:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function VO(e,t,o){return t===void 0&&(t=!1),!o||t&&o!==Uo(e)?!1:t}function lc(e,t,o,r){t===void 0&&(t=!1),o===void 0&&(o=!1);const n=e.getBoundingClientRect(),i=lS(e);let s=an(1);t&&(r?Br(r)&&(s=Da(r)):s=Da(e));const a=VO(i,o,r)?cS(i):an(0);let c=(n.left+a.x)/s.x,d=(n.top+a.y)/s.y,h=n.width/s.x,f=n.height/s.y;if(i){const g=Uo(i),m=r&&Br(r)?Uo(r):r;let b=g,w=Eg(b);for(;w&&r&&m!==b;){const y=Da(w),k=w.getBoundingClientRect(),C=Or(w),F=k.left+(w.clientLeft+parseFloat(C.paddingLeft))*y.x,E=k.top+(w.clientTop+parseFloat(C.paddingTop))*y.y;c*=y.x,d*=y.y,h*=y.x,f*=y.y,c+=F,d+=E,b=Uo(w),w=Eg(b)}}return md({width:h,height:f,x:c,y:d})}function Cd(e,t){const o=wd(e).scrollLeft;return t?t.left+o:lc(Hn(e)).left+o}function uS(e,t){const o=e.getBoundingClientRect(),r=o.left+t.scrollLeft-Cd(e,o),n=o.top+t.scrollTop;return{x:r,y:n}}function GO(e){let{elements:t,rect:o,offsetParent:r,strategy:n}=e;const i=n==="fixed",s=Hn(r),a=t?bd(t.floating):!1;if(r===s||a&&i)return o;let c={scrollLeft:0,scrollTop:0},d=an(1);const h=an(0),f=cn(r);if((f||!f&&!i)&&((_a(r)!=="body"||ac(s))&&(c=wd(r)),cn(r))){const m=lc(r);d=Da(r),h.x=m.x+r.clientLeft,h.y=m.y+r.clientTop}const g=s&&!f&&!i?uS(s,c):an(0);return{width:o.width*d.x,height:o.height*d.y,x:o.x*d.x-c.scrollLeft*d.x+h.x+g.x,y:o.y*d.y-c.scrollTop*d.y+h.y+g.y}}function jO(e){return Array.from(e.getClientRects())}function WO(e){const t=Hn(e),o=wd(e),r=e.ownerDocument.body,n=cr(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=cr(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-o.scrollLeft+Cd(e);const a=-o.scrollTop;return Or(r).direction==="rtl"&&(s+=cr(t.clientWidth,r.clientWidth)-n),{width:n,height:i,x:s,y:a}}const dS=25;function qO(e,t){const o=Uo(e),r=Hn(e),n=o.visualViewport;let i=r.clientWidth,s=r.clientHeight,a=0,c=0;if(n){i=n.width,s=n.height;const h=Rg();(!h||h&&t==="fixed")&&(a=n.offsetLeft,c=n.offsetTop)}const d=Cd(r);if(d<=0){const h=r.ownerDocument,f=h.body,g=getComputedStyle(f),m=h.compatMode==="CSS1Compat"&&parseFloat(g.marginLeft)+parseFloat(g.marginRight)||0,b=Math.abs(r.clientWidth-f.clientWidth-m);b<=dS&&(i-=b)}else d<=dS&&(i+=d);return{width:i,height:s,x:a,y:c}}const UO=new Set(["absolute","fixed"]);function $O(e,t){const o=lc(e,!0,t==="fixed"),r=o.top+e.clientTop,n=o.left+e.clientLeft,i=cn(e)?Da(e):an(1),s=e.clientWidth*i.x,a=e.clientHeight*i.y,c=n*i.x,d=r*i.y;return{width:s,height:a,x:c,y:d}}function hS(e,t,o){let r;if(t==="viewport")r=qO(e,o);else if(t==="document")r=WO(Hn(e));else if(Br(t))r=$O(t,o);else{const n=cS(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return md(r)}function fS(e,t){const o=xi(e);return o===t||!Br(o)||Pa(o)?!1:Or(o).position==="fixed"||fS(o,t)}function KO(e,t){const o=t.get(e);if(o)return o;let r=sS(e,[]).filter(a=>Br(a)&&_a(a)!=="body"),n=null;const i=Or(e).position==="fixed";let s=i?xi(e):e;for(;Br(s)&&!Pa(s);){const a=Or(s),c=Fg(s);!c&&a.position==="fixed"&&(n=null),(i?!c&&!n:!c&&a.position==="static"&&!!n&&UO.has(n.position)||ac(s)&&!c&&fS(e,s))?r=r.filter(h=>h!==s):n=a,s=xi(s)}return t.set(e,r),r}function XO(e){let{element:t,boundary:o,rootBoundary:r,strategy:n}=e;const s=[...o==="clippingAncestors"?bd(t)?[]:KO(t,this._c):[].concat(o),r],a=s[0],c=s.reduce((d,h)=>{const f=hS(t,h,n);return d.top=cr(f.top,d.top),d.right=ps(f.right,d.right),d.bottom=ps(f.bottom,d.bottom),d.left=cr(f.left,d.left),d},hS(t,a,n));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function ZO(e){const{width:t,height:o}=aS(e);return{width:t,height:o}}function YO(e,t,o){const r=cn(t),n=Hn(t),i=o==="fixed",s=lc(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const c=an(0);function d(){c.x=Cd(n)}if(r||!r&&!i)if((_a(t)!=="body"||ac(n))&&(a=wd(t)),r){const m=lc(t,!0,i,t);c.x=m.x+t.clientLeft,c.y=m.y+t.clientTop}else n&&d();i&&!r&&n&&d();const h=n&&!r&&!i?uS(n,a):an(0),f=s.left+a.scrollLeft-c.x-h.x,g=s.top+a.scrollTop-c.y-h.y;return{x:f,y:g,width:s.width,height:s.height}}function _g(e){return Or(e).position==="static"}function pS(e,t){if(!cn(e)||Or(e).position==="fixed")return null;if(t)return t(e);let o=e.offsetParent;return Hn(e)===o&&(o=o.ownerDocument.body),o}function gS(e,t){const o=Uo(e);if(bd(e))return o;if(!cn(e)){let n=xi(e);for(;n&&!Pa(n);){if(Br(n)&&!_g(n))return n;n=xi(n)}return o}let r=pS(e,t);for(;r&&AO(r)&&_g(r);)r=pS(r,t);return r&&Pa(r)&&_g(r)&&!Fg(r)?o:r||LO(e)||o}const QO=async function(e){const t=this.getOffsetParent||gS,o=this.getDimensions,r=await o(e.floating);return{reference:YO(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function JO(e){return Or(e).direction==="rtl"}const eN={convertOffsetParentRelativeRectToViewportRelativeRect:GO,getDocumentElement:Hn,getClippingRect:XO,getOffsetParent:gS,getElementRects:QO,getClientRects:jO,getDimensions:ZO,getScale:Da,isElement:Br,isRTL:JO},tN=Ea,oN=EO,rN=_O,nN=kO,iN=DO,mS=FO,sN=xO,vS=PO,aN=(e,t,o)=>{const r=new Map,n={platform:eN,...o},i={...n.platform,_c:r};return SO(e,t,{...n,platform:i})};function bS(e){const t=e.split("-");return{side:t[0],alignment:t[1]}}const lN=e=>e.nodeName==="HTML"?e:e.parentNode||e.host,cN=e=>{var t;if(e.nodeType!==1)return{};const o=(t=e.ownerDocument)===null||t===void 0?void 0:t.defaultView;return o?o.getComputedStyle(e,null):{}},yd=e=>{const t=e&&lN(e);if(!t)return document.body;switch(t.nodeName){case"HTML":case"BODY":return t.ownerDocument.body;case"#document":return t.body}const{overflow:o,overflowX:r,overflowY:n}=cN(t);return/(auto|scroll|overlay)/.test(o+n+r)?t:yd(t)},uN=e=>{var t;const o=yd(e);return o?o!==((t=o.ownerDocument)===null||t===void 0?void 0:t.body):!1};function Pg(e,t){if(t==="window")return e?.ownerDocument.documentElement;if(t==="clippingParents")return"clippingAncestors";if(t==="scrollParent"){let o=yd(e);return o.nodeName==="BODY"&&(o=e?.ownerDocument.documentElement),o}return t}function wS(e,t){return typeof e=="number"||typeof e=="object"&&e!==null?Dg(e,t):typeof e=="function"?o=>{const r=e(o);return Dg(r,t)}:{mainAxis:t}}const Dg=(e,t)=>{if(typeof e=="number")return{mainAxis:e+t};var o;return{...e,mainAxis:((o=e.mainAxis)!==null&&o!==void 0?o:0)+t}};function CS(e,t){if(typeof e=="number")return e;const{start:o,end:r,...n}=e,i=n,s=t?"end":"start",a=t?"start":"end";return e[s]&&(i.left=e[s]),e[a]&&(i.right=e[a]),i}const dN=e=>({above:"top",below:"bottom",before:e?"right":"left",after:e?"left":"right"}),hN=()=>({start:"start",end:"end",top:"start",bottom:"end",center:void 0}),fN=(e,t)=>{const o=e==="above"||e==="below",r=t==="top"||t==="bottom";return o&&r||!o&&!r},yS=(e,t,o)=>{const r=fN(t,e)?"center":e,n=t&&dN(o)[t],i=r&&hN()[r];return n&&i?`${n}-${i}`:n},pN=()=>({top:"above",bottom:"below",right:"after",left:"before"}),gN=e=>e==="above"||e==="below"?{start:"start",end:"end"}:{start:"top",end:"bottom"},mN=e=>{const{side:t,alignment:o}=bS(e),r=pN()[t],n=o&&gN(r)[o];return{position:r,alignment:n}},vN={above:{position:"above",align:"center"},"above-start":{position:"above",align:"start"},"above-end":{position:"above",align:"end"},below:{position:"below",align:"center"},"below-start":{position:"below",align:"start"},"below-end":{position:"below",align:"end"},before:{position:"before",align:"center"},"before-top":{position:"before",align:"top"},"before-bottom":{position:"before",align:"bottom"},after:{position:"after",align:"center"},"after-top":{position:"after",align:"top"},"after-bottom":{position:"after",align:"bottom"}};function cc(e){return e==null?{}:typeof e=="string"?vN[e]:e}function Tg(e,t,o){const r=S.useRef(!0),[n]=S.useState(()=>({value:e,callback:t,facade:{get current(){return n.value},set current(i){const s=n.value;s!==i&&(n.value=i,n.callback(i,s))}}}));return Zt(()=>{r.current=!1},[]),n.callback=t,n.facade}function bN(e){let t;return()=>(t||(t=new Promise(o=>{Promise.resolve().then(()=>{t=void 0,o(e())})})),t)}function wN(e){const{arrow:t,middlewareData:o}=e;if(!o.arrow||!t)return;const{x:r,y:n}=o.arrow;Object.assign(t.style,{left:r!=null?`${r}px`:"",top:n!=null?`${n}px`:""})}function CN(e){var t,o,r;const{container:n,placement:i,middlewareData:s,strategy:a,lowPPI:c,coordinates:d,useTransform:h=!0}=e;if(!n)return;n.setAttribute(lO,i),n.removeAttribute(Uy),s.intersectionObserver.intersecting&&n.setAttribute(Uy,""),n.removeAttribute($y),!((t=s.hide)===null||t===void 0)&&t.escaped&&n.setAttribute($y,""),n.removeAttribute(Ky),!((o=s.hide)===null||o===void 0)&&o.referenceHidden&&n.setAttribute(Ky,"");const f=((r=n.ownerDocument.defaultView)===null||r===void 0?void 0:r.devicePixelRatio)||1,g=Math.round(d.x*f)/f,m=Math.round(d.y*f)/f;if(Object.assign(n.style,{position:a}),h){Object.assign(n.style,{transform:c?`translate(${g}px, ${m}px)`:`translate3d(${g}px, ${m}px, 0)`});return}Object.assign(n.style,{left:`${g}px`,top:`${m}px`})}const yN=e=>{switch(e){case"always":case!0:return{applyMaxWidth:!0,applyMaxHeight:!0};case"width-always":case"width":return{applyMaxWidth:!0,applyMaxHeight:!1};case"height-always":case"height":return{applyMaxWidth:!1,applyMaxHeight:!0};default:return!1}};function SS(e){const t=[];let o=e;for(;o;){const r=yd(o);if(e.ownerDocument.body===r){t.push(r);break}if(r.nodeName==="BODY"&&r!==e.ownerDocument.body)break;t.push(r),o=r}return t}function SN(e,t){return new e.ResizeObserver(t)}function xN(e){let t=!1;const{container:o,target:r,arrow:n,strategy:i,middleware:s,placement:a,useTransform:c=!0,disableUpdateOnResize:d=!1}=e,h=o.ownerDocument.defaultView;if(!r||!o||!h)return{updatePosition:()=>{},dispose:()=>{}};const f=d?null:SN(h,k=>{k.every(F=>F.contentRect.width>0&&F.contentRect.height>0)&&w()});let g=!0;const m=new Set;Object.assign(o.style,{position:"fixed",left:0,top:0,margin:0});const b=()=>{t||(g&&(SS(o).forEach(k=>m.add(k)),vi(r)&&SS(r).forEach(k=>m.add(k)),m.forEach(k=>{k.addEventListener("scroll",w,{passive:!0})}),f?.observe(o),vi(r)&&f?.observe(r),g=!1),Object.assign(o.style,{position:i}),aN(r,o,{placement:a,middleware:s,strategy:i}).then(({x:k,y:C,middlewareData:F,placement:E})=>{t||(wN({arrow:n,middlewareData:F}),CN({container:o,middlewareData:F,placement:E,coordinates:{x:k,y:C},lowPPI:(h?.devicePixelRatio||1)<=1,strategy:i,useTransform:c}),o.dispatchEvent(new CustomEvent(wg)))}).catch(k=>{}))},w=bN(()=>b()),y=()=>{t=!0,h&&(h.removeEventListener("scroll",w),h.removeEventListener("resize",w)),m.forEach(k=>{k.removeEventListener("scroll",w)}),m.clear(),f?.disconnect()};return h&&(h.addEventListener("scroll",w,{passive:!0}),h.addEventListener("resize",w)),w(),{updatePosition:w,dispose:y}}function kN(){return{name:"coverTarget",fn:e=>{const{placement:t,rects:o,x:r,y:n}=e,i=bS(t).side,s={x:r,y:n};switch(i){case"bottom":s.y-=o.reference.height;break;case"top":s.y+=o.reference.height;break;case"left":s.x+=o.reference.width;break;case"right":s.x-=o.reference.width;break}return s}}}function FN(e){const{hasScrollableElement:t,flipBoundary:o,container:r,fallbackPositions:n=[],isRtl:i}=e,s=n.reduce((a,c)=>{const{position:d,align:h}=cc(c),f=yS(h,d,i);return f&&a.push(f),a},[]);return nN({...t&&{boundary:"clippingAncestors"},...o&&{altBoundary:!0,boundary:Pg(r,o)},fallbackStrategy:"bestFit",...s.length&&{fallbackPlacements:s}})}function RN(){return{name:"intersectionObserver",fn:async e=>{const t=e.rects.floating,o=await tN(e,{altBoundary:!0}),r=o.top<t.height&&o.top>0,n=o.bottom<t.height&&o.bottom>0;return{data:{intersecting:r||n}}}}}const EN=e=>({name:"resetMaxSize",fn({middlewareData:t,elements:o}){var r;if(!((r=t.resetMaxSize)===null||r===void 0)&&r.maxSizeAlreadyReset)return{};const{applyMaxWidth:n,applyMaxHeight:i}=e;return n&&(o.floating.style.removeProperty("box-sizing"),o.floating.style.removeProperty("max-width"),o.floating.style.removeProperty("width")),i&&(o.floating.style.removeProperty("box-sizing"),o.floating.style.removeProperty("max-height"),o.floating.style.removeProperty("height")),{data:{maxSizeAlreadyReset:!0},reset:{rects:!0}}}});function _N(e,t){const{container:o,overflowBoundary:r,overflowBoundaryPadding:n,isRtl:i}=t;return iN({...n&&{padding:CS(n,i)},...r&&{altBoundary:!0,boundary:Pg(o,r)},apply({availableHeight:s,availableWidth:a,elements:c,rects:d}){const h=(m,b,w)=>{if(m&&(c.floating.style.setProperty("box-sizing","border-box"),c.floating.style.setProperty(`max-${b}`,`${w}px`),d.floating[b]>w)){c.floating.style.setProperty(b,`${w}px`);const y=b==="width"?"x":"y";c.floating.style.getPropertyValue(`overflow-${y}`)||c.floating.style.setProperty(`overflow-${y}`,"auto")}},{applyMaxWidth:f,applyMaxHeight:g}=e;h(f,"width",a),h(g,"height",s)}})}function PN(e){return!e||typeof e=="number"||typeof e=="object"?e:({rects:{floating:t,reference:o},placement:r})=>{const{position:n,alignment:i}=mN(r);return e({positionedRect:t,targetRect:o,position:n,alignment:i})}}function DN(e){const t=PN(e);return oN(t)}function TN(e){const{hasScrollableElement:t,shiftToCoverTarget:o,disableTether:r,overflowBoundary:n,container:i,overflowBoundaryPadding:s,isRtl:a}=e;return rN({...t&&{boundary:"clippingAncestors"},...o&&{crossAxis:!0,limiter:vS({crossAxis:!0,mainAxis:!1})},...r&&{crossAxis:r==="all",limiter:vS({crossAxis:r!=="all",mainAxis:!1})},...s&&{padding:CS(s,a)},...n&&{altBoundary:!0,boundary:Pg(i,n)}})}const xS="--fui-match-target-size";function MN(){return{name:"matchTargetSize",fn:async e=>{const{rects:{reference:t,floating:o},elements:{floating:r},middlewareData:{matchTargetSize:{matchTargetSizeAttempt:n=!1}={}}}=e;if(t.width===o.width||n)return{};const{width:i}=t;return r.style.setProperty(xS,`${i}px`),r.style.width||(r.style.width=`var(${xS})`),{data:{matchTargetSizeAttempt:!0},reset:{rects:!0}}}}}function AN(e,t){const{align:o,arrowPadding:r,autoSize:n,coverTarget:i,disableUpdateOnResize:s,flipBoundary:a,offset:c,overflowBoundary:d,pinned:h,position:f,unstable_disableTether:g,strategy:m,overflowBoundaryPadding:b,fallbackPositions:w,useTransform:y,matchTargetSize:k,shiftToCoverTarget:C}=t;return S.useCallback((F,E)=>e({container:F,arrow:E,options:{autoSize:n,disableUpdateOnResize:s,matchTargetSize:k,offset:c,strategy:m,coverTarget:i,flipBoundary:a,overflowBoundary:d,useTransform:y,overflowBoundaryPadding:b,pinned:h,arrowPadding:r,align:o,fallbackPositions:w,shiftToCoverTarget:C,position:f,unstable_disableTether:g}}),[n,s,k,c,m,i,a,d,y,b,h,r,o,w,C,f,g,e])}function IN(e){const{dir:t,targetDocument:o}=lt(),r=t==="rtl",n=AN(uO(),e),{positionFixed:i}=e;return S.useCallback((s,a)=>{const c=uN(s),d=n(s,a),{autoSize:h,disableUpdateOnResize:f,matchTargetSize:g,offset:m,coverTarget:b,flipBoundary:w,overflowBoundary:y,useTransform:k,overflowBoundaryPadding:C,pinned:F,position:E,arrowPadding:_,strategy:P,align:D,fallbackPositions:M,shiftToCoverTarget:A,unstable_disableTether:O}=d,K=yN(h),W=[K&&EN(K),g&&MN(),m&&DN(m),b&&kN(),!F&&FN({container:s,flipBoundary:w,hasScrollableElement:c,isRtl:r,fallbackPositions:M}),TN({container:s,hasScrollableElement:c,overflowBoundary:y,disableTether:O,overflowBoundaryPadding:C,isRtl:r,shiftToCoverTarget:A}),K&&_N(K,{container:s,overflowBoundary:y,overflowBoundaryPadding:C,isRtl:r}),RN(),a&&sN({element:a,padding:_}),mS({strategy:"referenceHidden"}),mS({strategy:"escaped"}),!1].filter(Boolean);return{placement:yS(D,E,r),middleware:W,strategy:P??i?"fixed":"absolute",disableUpdateOnResize:f,useTransform:k}},[n,r,o,i])}function Sd(e){"use no memo";const t=S.useRef(null),o=S.useRef(null),r=S.useRef(null),n=S.useRef(null),i=S.useRef(null),{enabled:s=!0}=e,a=IN(e),c=S.useCallback(()=>{t.current&&t.current.dispose(),t.current=null;var b;const w=(b=r.current)!==null&&b!==void 0?b:o.current;s&&Ku()&&w&&n.current&&(t.current=xN({container:n.current,target:w,arrow:i.current,...a(n.current,i.current)}))},[s,a]),d=pe(b=>{r.current=b,c()});S.useImperativeHandle(e.positioningRef,()=>({updatePosition:()=>{var b;return(b=t.current)===null||b===void 0?void 0:b.updatePosition()},setTarget:b=>{e.target,d(b)}}),[e.target,d]),Zt(()=>{var b;d((b=e.target)!==null&&b!==void 0?b:null)},[e.target,d]),Zt(()=>{c()},[c]);const h=Tg(null,b=>{o.current!==b&&(o.current=b,c())}),f=pe(()=>{var b;return(b=e.onPositioningEnd)===null||b===void 0?void 0:b.call(e)}),g=Tg(null,b=>{if(n.current!==b){var w;(w=n.current)===null||w===void 0||w.removeEventListener(wg,f),b?.addEventListener(wg,f),n.current=b,c()}}),m=Tg(null,b=>{i.current!==b&&(i.current=b,c())});return{targetRef:h,containerRef:g,arrowRef:m}}const kS=e=>{const[t,o]=S.useState(e);return[t,n=>{if(n==null){o(void 0);return}let i;n instanceof MouseEvent?i=n:i=n.nativeEvent;const s=aO(i);o(s)}]};function BN(){let e=!1;const t=[];return{isActive(){return e},toggleActive(o){e!==o&&(e=o,t.forEach(r=>r(e)))},subscribe(o){return t.push(o),()=>{const r=t.indexOf(o);r>-1&&t.splice(r,1)}}}}var Mg={exports:{}},Ag={};var FS;function ON(){if(FS)return Ag;FS=1;var e=Yl();function t(f,g){return f===g&&(f!==0||1/f===1/g)||f!==f&&g!==g}var o=typeof Object.is=="function"?Object.is:t,r=e.useState,n=e.useEffect,i=e.useLayoutEffect,s=e.useDebugValue;function a(f,g){var m=g(),b=r({inst:{value:m,getSnapshot:g}}),w=b[0].inst,y=b[1];return i(function(){w.value=m,w.getSnapshot=g,c(w)&&y({inst:w})},[f,m,g]),n(function(){return c(w)&&y({inst:w}),f(function(){c(w)&&y({inst:w})})},[f]),s(m),m}function c(f){var g=f.getSnapshot;f=f.value;try{var m=g();return!o(f,m)}catch{return!0}}function d(f,g){return g()}var h=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?d:a;return Ag.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:h,Ag}var RS;function NN(){return RS||(RS=1,Mg.exports=ON()),Mg.exports}var ES=NN();function _S(e,t){return{topLeft:[e.left-t[0],e.top-t[1]],topRight:[e.right-t[0],e.top-t[1]],bottomRight:[e.right-t[0],e.bottom-t[1]],bottomLeft:[e.left-t[0],e.bottom-t[1]]}}const PS=20;function DS(e,t){return Math.sqrt((e[0]-t[0])**2+(e[1]-t[1])**2)}function LN(e,t){const o=DS(e,t);return o===0?[0,0]:[(e[0]-t[0])/o,(e[1]-t[1])/o]}function zN(e,t,o){const r=[(e[0]+t[0])/2,(e[1]+t[1])/2],n=LN([o[0],o[1]],[r[0],r[1]]),i=DS([r[0],r[1]],[o[0],o[1]]);return[r[0]+n[0]*(i+PS),r[1]+n[1]*(i+PS)]}function xd(e){return`M ${e} z`}const HN=Se({wrapper:{mc9l5x:"fjseox",Bqenvij:"fniina8",a9b677:"f3tsq5r",Bkecrkj:"f1aehjj5"},wrapperActive:{mc9l5x:"ftgm304"},svg:{Bkfmm31:"f1au8mb3",Bkecrkj:"f1aehjj5",qhf8xq:"f19dog8a",Bhzewxz:"f15twtuk",oyh7mz:["f1vgc2s3","f1e31b4d"]},triangle:{Bkecrkj:"f1cguypg"},triangleDebug:{Bceei9c:"f7116n6",Bkfmm31:"f1xab38x"},rectDebug:{Bkfmm31:"fyegryc"}},{d:[".fjseox{display:none;}",".fniina8{height:0;}",".f3tsq5r{width:0;}",".f1aehjj5{pointer-events:none;}",".ftgm304{display:block;}",".f1au8mb3{fill:transparent;}",".f19dog8a{position:fixed;}",".f15twtuk{top:0;}",".f1vgc2s3{left:0;}",".f1e31b4d{right:0;}",".f1cguypg{pointer-events:auto;}",".f7116n6{cursor:crosshair;}",".f1xab38x{fill:color-mix(in srgb, var(--colorPaletteGreenBackground3) 20%, transparent);}",".fyegryc{fill:color-mix(in srgb, var(--colorPaletteRedBackground3) 20%, transparent);}"]});function TS(e){if(e.width<=0||e.height<=0)return"";let t="";return t+=`M ${e.x},${e.y} `,t+=`V ${e.y+e.height} `,t+=`H ${e.x+e.width} `,t+=`V ${e.y} `,t+=`H ${e.x} `,t+="Z ",t}function VN(e,t,o,r){let n=`M 0,0 H ${e} V ${t} H 0 Z `;return n+=TS(o),n+=TS(r),n}const MS={top:0,right:0,bottom:0,left:0,width:0,height:0,x:0,y:0,toJSON(){return""}};function AS(e,t){return e.top===t.top&&e.right===t.right&&e.bottom===t.bottom&&e.left===t.left&&e.width===t.width&&e.height===t.height}function GN(e,t){return e[0]===t[0]&&e[1]===t[1]}const jN=S.memo(e=>{const{debug:t,onMouseEnter:o,onMouseMove:r,onMouseLeave:n,stateStore:i}=e,s=Go(),a=HN(),c=ES.useSyncExternalStore(i.subscribe,i.isActive),d=S.useRef(null),[h,f]=S.useState(()=>({containerRect:MS,targetRect:MS,mouseCoordinates:[0,0]}));S.useImperativeHandle(e.imperativeRef,()=>({updateSVG(V){f(U=>AS(U.containerRect,V.containerRect)&&AS(U.targetRect,V.targetRect)&&GN(U.mouseCoordinates,V.mouseCoordinates)?U:V)}}),[]);const{containerRect:g,targetRect:m,mouseCoordinates:b}=h,w=Math.min(m.top,g.top),y=Math.min(m.left,g.left),k=Math.max(m.bottom,g.bottom),C=Math.max(m.right,g.right),F=_S(g,[y,w]),E=_S(m,[y,w]),_=[b[0]-y,b[1]-w],P=zN(F.topLeft,F.bottomRight,_),D=[P,F.topLeft,F.topRight],M=[P,F.topRight,F.bottomRight],A=[P,F.bottomRight,F.bottomLeft],O=[P,F.bottomLeft,F.topLeft],K=C-y,W=k-w,L=VN(K,W,{x:E.topLeft[0],y:E.topLeft[1],width:m.width,height:m.height},{x:F.topLeft[0],y:F.topLeft[1],width:g.width,height:g.height});return S.createElement("div",{className:de(a.wrapper,c&&a.wrapperActive),"data-safe-zone":""},c?S.createElement("svg",{"aria-hidden":!0,className:a.svg,xmlns:"http://www.w3.org/2000/svg",ref:d,style:{width:`${K}px`,height:`${W}px`,transform:`translate(${y}px, ${w}px)`}},S.createElement("g",{className:de(a.triangle,t&&a.triangleDebug),clipPath:`url(#${s})`,onMouseEnter:o,onMouseMove:r,onMouseLeave:n},S.createElement("path",{d:xd(D)}),S.createElement("path",{d:xd(M)}),S.createElement("path",{d:xd(A)}),S.createElement("path",{d:xd(O)})),S.createElement("clipPath",{id:s},S.createElement("path",{d:L})),t&&S.createElement("path",{className:a.rectDebug,d:L})):null)}),WN=2e3;function qN({debug:e=!1,disabled:t=!1,onSafeZoneEnter:o,onSafeZoneMove:r,onSafeZoneLeave:n,onSafeZoneTimeout:i,timeout:s=1500}={}){const[a]=S.useState(BN),c=S.useRef(null),d=S.useRef(null),h=S.useRef(null),[f,g]=ga(),[m,b]=Vp(),w=S.useRef({x:0,y:0}),y=S.useMemo(()=>{if(t)return()=>{};let _=null;function P(){g(),a.toggleActive(!1)}return D=>{D===null&&_?.removeEventListener("mouseenter",P),_=D,D?.addEventListener("mouseenter",P)}},[g,t,a]),k=S.useMemo(()=>{if(t)return()=>{};let _=null;function P(D){w.current={x:D.clientX,y:D.clientY},a.isActive()||a.toggleActive(!0),f(()=>{a.toggleActive(!1)},WN)}return D=>{D===null&&(b(),g(),_?.removeEventListener("mousemove",P)),_=D,D?.addEventListener("mousemove",P)}},[b,g,t,a,f]),C=pe(_=>{o?.(_),f(()=>{a.toggleActive(!1),i?.()},s)}),F=pe(_=>{f(()=>{a.toggleActive(!1),i?.()},s),r?.(_)}),E=pe(_=>{n?.(_)});return S.useEffect(()=>a.subscribe(_=>{if(_){let P=function(){const D=d.current,M=h.current;if(D&&M){var A;(A=c.current)===null||A===void 0||A.updateSVG({containerRect:D.getBoundingClientRect(),mouseCoordinates:[w.current.x,w.current.y],targetRect:M.getBoundingClientRect()})}m(P)};P();return}b()}),[b,m,a]),{containerRef:tt(d,y),targetRef:tt(h,k),elementToRender:S.useMemo(()=>t?null:S.createElement(jN,{debug:e,onMouseEnter:C,onMouseMove:F,onMouseLeave:E,imperativeRef:c,stateStore:a}),[t,e,C,F,E,a])}}const Ig=Si(void 0),UN={open:!1,setOpen:()=>null,toggleOpen:()=>null,triggerRef:{current:null},contentRef:{current:null},arrowRef:{current:null},openOnContext:!1,openOnHover:!1,size:"medium",trapFocus:!1,inline:!1};Ig.Provider;const ao=e=>hs(Ig,(t=UN)=>e(t)),$N=(e,t)=>{const o=ao(C=>C.contentRef),r=ao(C=>C.openOnHover),n=ao(C=>C.setOpen),i=ao(C=>C.mountNode),s=ao(C=>C.arrowRef),a=ao(C=>C.size),c=ao(C=>C.withArrow),d=ao(C=>C.appearance),h=ao(C=>C.trapFocus),f=ao(C=>C.inertTrapFocus),g=ao(C=>C.inline),{modalAttributes:m}=sd({trapFocus:h,legacyTrapFocus:!f,alwaysFocusable:!h}),b={inline:g,appearance:d,withArrow:c,size:a,arrowRef:s,mountNode:i,components:{root:"div"},root:Le(wt("div",{ref:tt(t,o),role:h?"dialog":"group","aria-modal":h?!0:void 0,...m,...e}),{elementType:"div"})},{onMouseEnter:w,onMouseLeave:y,onKeyDown:k}=b.root;return b.root.onMouseEnter=C=>{r&&n(C,!0),w?.(C)},b.root.onMouseLeave=C=>{r&&n(C,!1),y?.(C)},b.root.onKeyDown=C=>{var F;C.key==="Escape"&&(!((F=o.current)===null||F===void 0)&&F.contains(C.target))&&(C.preventDefault(),n(C,!1)),k?.(C)},b};function IS(e){return vi(e)?{element:e}:typeof e=="object"?e===null?{element:null}:e:{}}const KN=Se({root:{qhf8xq:"f1euv43f",Bhzewxz:"f15twtuk",oyh7mz:["f1vgc2s3","f1e31b4d"],j35jbq:["f1e31b4d","f1vgc2s3"],Bj3rh1h:"f494woh"}},{d:[".f1euv43f{position:absolute;}",".f15twtuk{top:0;}",".f1vgc2s3{left:0;}",".f1e31b4d{right:0;}",".f494woh{z-index:1000000;}"]}),BS=ju.useInsertionEffect,XN=e=>{"use no memo";const{className:t,dir:o,focusVisibleRef:r,targetNode:n}=e,i=S.useMemo(()=>{if(n===void 0||e.disabled)return null;const s=n.ownerDocument.createElement("div");return n.appendChild(s),s},[n,e.disabled]);return S.useMemo(()=>{i&&(i.className=t,i.setAttribute("dir",o),i.setAttribute("data-portal-node","true"),r.current=i)},[t,o,i,r]),S.useEffect(()=>()=>{i?.remove()},[i]),i},ZN=()=>{let e;function t(r,n){return e||(n&&(e=r.ownerDocument.createElement("div"),r.appendChild(e)),e)}function o(){e&&(e.remove(),e=void 0)}return{get:t,dispose:o}},YN=BS?e=>{"use no memo";const{className:t,dir:o,focusVisibleRef:r,targetNode:n}=e,[i]=S.useState(ZN),s=S.useMemo(()=>n===void 0||e.disabled?null:new Proxy({},{get(a,c){if(c==="nodeType")return 1;if(c==="remove"){const f=i.get(n,!1);return f&&f.childNodes.length===0&&i.dispose(),()=>{}}const d=i.get(n,!0),h=d?d[c]:void 0;return typeof h=="function"?h.bind(d):h},set(a,c,d){const h=c==="_virtual"||c==="focusVisible",f=h?i.get(n,!1):i.get(n,!0);return h&&!f?!0:f?(Object.assign(f,{[c]:d}),!0):!1}}),[i,n,e.disabled]);return BS(()=>{if(!s)return;const a=t.split(" ").filter(Boolean);return s.classList.add(...a),s.setAttribute("dir",o),s.setAttribute("data-portal-node","true"),r.current=s,()=>{s.classList.remove(...a),s.removeAttribute("dir")}},[t,o,s,r]),S.useEffect(()=>()=>{s?.remove()},[s]),s}:XN,QN=e=>{"use no memo";const{targetDocument:t,dir:o}=lt(),r=WM(),n=Y0(),i=KN(),s=BM(),a={dir:o,disabled:e.disabled,focusVisibleRef:n,className:de(s,i.root,e.className),targetNode:r??t?.body};return YN(a)},JN=e=>{const{element:t,className:o}=IS(e.mountNode),r=S.useRef(null),n=QN({disabled:!!t,className:o}),i=t??n,s={children:e.children,mountNode:i,virtualParentRootRef:r};return S.useEffect(()=>{if(!i)return;const a=r.current,c=i.contains(a);if(a&&!c)return v0(i,a),()=>{v0(i,void 0)}},[r,i]),s};var gs=OC();const e5=Xl(gs),t5=e=>S.createElement("span",{hidden:!0,ref:e.virtualParentRootRef},e.mountNode&&gs.createPortal(S.createElement(S.Fragment,null,e.children,S.createElement("span",{hidden:!0})),e.mountNode)),ms=e=>{const t=JN(e);return t5(t)};ms.displayName="Portal";const o5=e=>{const t=gt(e.root,{children:[e.withArrow&&ae("div",{ref:e.arrowRef,className:e.arrowClassName}),e.root.children]});return e.inline?t:ae(ms,{mountNode:e.mountNode,children:t})},r5={root:"fui-PopoverSurface"},n5={small:6,medium:8,large:8},i5=Se({root:{sj55zd:"f19n0e5",De3pzq:"fxugw4r",Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"ft85np5",Bgfg5da:0,B9xav0g:0,oivjwe:0,Bn0qgzm:0,B4g9neb:0,zhjwy3:0,wvpqe5:0,ibv6hh:0,u1mtju:0,h3c5rm:0,vrafjx:0,Bekrc4i:0,i8vvqc:0,g2u3we:0,icvyot:0,B4j52fo:0,irswps:"f9ggezi",Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi",B93otf3:"f18k4bn6",vin17d:"fo1kyvf",Ezkn3b:"fetxo7e",nyiy2g:"f8x1vz1",swvrvq:"f8g0anz",Bkovbt3:"fezwn9i",hgjdhn:"fz5efge",fsy9dk:"f1ydixl4",B3ogreh:"f8dgqj5",jv49x5:"fnyfnr8",Bk7o48c:"fgw77r4",Bv12yb3:"f1noc5he",i09l9u:"f1k46bua",Bcrj8ia:"f1lhuzxm",Bmmhre5:"f1f9qikc",Bhu2qc9:"fymb6k8"},inline:{Bj3rh1h:"f19g0ac"},inverted:{De3pzq:"fg3r6xk",sj55zd:"fonrgv7"},brand:{De3pzq:"ffp7eso",sj55zd:"f1phragk"},smallPadding:{Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1sy4kr4"},mediumPadding:{Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f4zyqsv"},largePadding:{Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"fop8ug2"},smallArrow:{rhnwrx:"f1s3jn22",Bdy53xb:"fv40uqz"},mediumLargeArrow:{rhnwrx:"f1f72gjr",Bdy53xb:"f69yoe5"},arrow:{B7ck84d:"f1ewtqcl",qhf8xq:"f1euv43f",Bj3rh1h:"f1bsuimh",De3pzq:"f1u2r49w",B2eet1l:"fqhgnl",Beyfa6y:"f17bz04i",Bz10aip:"f36o3x3",Bqenvij:"fzofk8q",a9b677:"f1wbx1ie",Ftih45:"f1wl9k8s",Br0sdwz:"f1aocrix",cmx5o7:"f1ljr5q2",susq4k:0,Biibvgv:0,Bicfajf:0,qehafq:0,Brs5u8j:"f155f1qt",Ccq8qp:"f9mhzq7",Baz25je:"fr6rhvx",Bcgcnre:0,Bqjgrrk:0,qa3bma:0,y0oebl:0,Biqmznv:0,Bm6vgfq:0,Bbv0w2i:0,uvfttm:0,eqrjj:0,Bk5zm6e:0,m598lv:0,B4f6apu:0,ydt019:0,Bq4z7u6:0,Bdkvgpv:0,B0qfbqy:0,kj8mxx:"f1kc0wz4",r59vdv:"fgq90dz",Bkw5xw4:"fq0y47f",hl6cv3:"f1pwrbz6",aea9ga:"f1hxxcvm",yayu3t:"fw8rgyo",Bhsv975:"f1wnzycx",rhl9o9:"f1730wal",B7gxrvb:"f1fy4ixr",B6q6orb:"fobkauc",B0lu1f8:"f16bqv1l"}},{d:[".f19n0e5{color:var(--colorNeutralForeground1);}",".fxugw4r{background-color:var(--colorNeutralBackground1);}",[".ft85np5{border-radius:var(--borderRadiusMedium);}",{p:-1}],[".f9ggezi{border:1px solid var(--colorTransparentStroke);}",{p:-2}],".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".figsok6{font-weight:var(--fontWeightRegular);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".f18k4bn6{animation-composition:accumulate;}",".fo1kyvf{animation-duration:var(--durationSlower);}",".fetxo7e{animation-timing-function:var(--curveDecelerateMid);}",".f8x1vz1{--fui-positioning-slide-distance-x:0px;}",".f8g0anz{--fui-positioning-slide-distance-y:10px;}",".fezwn9i[data-popper-placement^=right]{--fui-positioning-slide-distance-x:-10px;}",".fz5efge[data-popper-placement^=right]{--fui-positioning-slide-distance-y:0px;}",".f1ydixl4[data-popper-placement^=bottom]{--fui-positioning-slide-distance-x:0px;}",".f8dgqj5[data-popper-placement^=bottom]{--fui-positioning-slide-distance-y:-10px;}",".fnyfnr8[data-popper-placement^=left]{--fui-positioning-slide-distance-x:10px;}",".fgw77r4[data-popper-placement^=left]{--fui-positioning-slide-distance-y:0px;}",".f1noc5he{animation-name:f1m0q9mo,f79suad;}",".fymb6k8{filter:drop-shadow(0 0 2px var(--colorNeutralShadowAmbient)) drop-shadow(0 8px 16px var(--colorNeutralShadowKey));}",".f19g0ac{z-index:1;}",".fg3r6xk{background-color:var(--colorNeutralBackgroundStatic);}",".fonrgv7{color:var(--colorNeutralForegroundStaticInverted);}",".ffp7eso{background-color:var(--colorBrandBackground);}",".f1phragk{color:var(--colorNeutralForegroundOnBrand);}",[".f1sy4kr4{padding:12px;}",{p:-1}],[".f4zyqsv{padding:16px;}",{p:-1}],[".fop8ug2{padding:20px;}",{p:-1}],".f1s3jn22{--fui-positioning-arrow-height:8.484px;}",".fv40uqz{--fui-positioning-arrow-offset:-4.242px;}",".f1f72gjr{--fui-positioning-arrow-height:11.312px;}",".f69yoe5{--fui-positioning-arrow-offset:-5.656px;}",".f1ewtqcl{box-sizing:border-box;}",".f1euv43f{position:absolute;}",".f1bsuimh{z-index:-1;}",".f1u2r49w{background-color:inherit;}",".fqhgnl{background-clip:content-box;}",".f17bz04i{border-bottom-left-radius:var(--borderRadiusSmall);}",".f36o3x3{transform:rotate(var(--fui-positioning-arrow-angle));}",".fzofk8q{height:var(--fui-positioning-arrow-height);}",".f1wbx1ie{width:var(--fui-positioning-arrow-height);}",'.f1wl9k8s::before{content:"";}',".f1aocrix::before{display:block;}",".f1ljr5q2::before{background-color:inherit;}",[".f155f1qt::before{margin:-1px;}",{p:-1}],".f9mhzq7::before{width:100%;}",".fr6rhvx::before{height:100%;}",[".f1kc0wz4::before{border:1px solid var(--colorTransparentStroke);}",{p:-2}],".fgq90dz::before{border-bottom-left-radius:var(--borderRadiusSmall);}",".fq0y47f::before{clip-path:polygon(0% 0%, 100% 100%, 0% 100%);}",'[data-popper-placement^="top"] .f1pwrbz6{bottom:var(--fui-positioning-arrow-offset);}','[data-popper-placement^="top"] .f1hxxcvm{--fui-positioning-arrow-angle:-45deg;}','[data-popper-placement^="right"] .fw8rgyo{left:var(--fui-positioning-arrow-offset);}','[data-popper-placement^="right"] .f1wnzycx{--fui-positioning-arrow-angle:45deg;}','[data-popper-placement^="bottom"] .f1730wal{top:var(--fui-positioning-arrow-offset);}','[data-popper-placement^="bottom"] .f1fy4ixr{--fui-positioning-arrow-angle:135deg;}','[data-popper-placement^="left"] .fobkauc{right:var(--fui-positioning-arrow-offset);}','[data-popper-placement^="left"] .f16bqv1l{--fui-positioning-arrow-angle:225deg;}'],k:["@keyframes f1m0q9mo{from{opacity:-1;}to{opacity:0;}}","@keyframes f79suad{from{transform:translate(var(--fui-positioning-slide-distance-x), var(--fui-positioning-slide-distance-y));}}"],m:[["@media (prefers-reduced-motion){.f1k46bua[data-popper-placement]{animation-duration:1ms;}}",{m:"(prefers-reduced-motion)"}],["@media (prefers-reduced-motion){.f1lhuzxm[data-popper-placement]{animation-name:f1m0q9mo;}}",{m:"(prefers-reduced-motion)"}]],t:["@supports not (animation-composition: accumulate){.f1f9qikc[data-popper-placement]{animation-name:f1m0q9mo;}}"]}),s5=e=>{"use no memo";const t=i5();return e.root.className=de(r5.root,t.root,e.inline&&t.inline,e.size==="small"&&t.smallPadding,e.size==="medium"&&t.mediumPadding,e.size==="large"&&t.largePadding,e.appearance==="inverted"&&t.inverted,e.appearance==="brand"&&t.brand,e.root.className),e.arrowClassName=de(t.arrow,e.size==="small"?t.smallArrow:t.mediumLargeArrow),e},Bg=S.forwardRef((e,t)=>{const o=$N(e,t);return s5(o),qe("usePopoverSurfaceStyles_unstable")(o),o5(o)});Bg.displayName="PopoverSurface";const a5=4,l5=e=>{const[t,o]=kS(),r={size:"medium",contextTarget:t,setContextTarget:o,...e},n=S.Children.toArray(e.children);let i,s;n.length===2?(i=n[0],s=n[1]):n.length===1&&(s=n[0]);const[a,c]=c5(r),[d,h]=ga(),f=pe((_,P)=>{if(h(),!(_ instanceof Event)&&_.persist&&_.persist(),_.type==="mouseleave"){var D;d(()=>{c(_,P)},(D=e.mouseLeaveDelay)!==null&&D!==void 0?D:500)}else c(_,P)}),g=S.useCallback(_=>{f(_,!a)},[f,a]),m=u5(r),{targetDocument:b}=lt();var w;Xu({contains:ma,element:b,callback:_=>f(_,!1),refs:[m.triggerRef,m.contentRef],disabled:!a,disabledFocusOnIframe:!(!((w=e.closeOnIframeFocus)!==null&&w!==void 0)||w)});const y=r.openOnContext||r.closeOnScroll;d0({contains:ma,element:b,callback:_=>f(_,!1),refs:[m.triggerRef,m.contentRef],disabled:!a||!y});const{findFirstFocusable:k}=wa(),C=ZA();S.useEffect(()=>{if(e.unstable_disableAutoFocus)return;const _=m.contentRef.current;if(a&&_){var P;const D=!isNaN((P=_.getAttribute("tabIndex"))!==null&&P!==void 0?P:void 0),M=D?_:k(_);M?.focus(),D&&C(_)}},[k,C,a,m.contentRef,e.unstable_disableAutoFocus]);var F,E;return{...r,...m,inertTrapFocus:(F=e.inertTrapFocus)!==null&&F!==void 0?F:e.legacyTrapFocus===void 0?!1:!e.legacyTrapFocus,popoverTrigger:i,popoverSurface:s,open:a,setOpen:f,toggleOpen:g,setContextTarget:o,contextTarget:t,inline:(E=e.inline)!==null&&E!==void 0?E:!1}};function c5(e){"use no memo";const t=pe((s,a)=>{var c;return(c=e.onOpenChange)===null||c===void 0?void 0:c.call(e,s,a)}),[o,r]=io({state:e.open,defaultState:e.defaultOpen,initialState:!1});e.open=o!==void 0?o:e.open;const n=e.setContextTarget,i=S.useCallback((s,a)=>{a&&s.type==="contextmenu"&&n(s),a||n(void 0),r(a),t?.(s,{open:a})},[r,t,n]);return[o,i]}function u5(e){"use no memo";const t={position:"above",align:"center",arrowPadding:2*a5,target:e.openOnContext?e.contextTarget:void 0,...cc(e.positioning)};t.coverTarget&&(e.withArrow=!1),e.withArrow&&(t.offset=wS(t.offset,n5[e.size]));const{targetRef:o,containerRef:r,arrowRef:n}=Sd(t);return{triggerRef:o,contentRef:r,arrowRef:n}}const d5=e=>{const{appearance:t,arrowRef:o,contentRef:r,inline:n,mountNode:i,open:s,openOnContext:a,openOnHover:c,setOpen:d,size:h,toggleOpen:f,trapFocus:g,triggerRef:m,withArrow:b,inertTrapFocus:w}=e;return S.createElement(Ig.Provider,{value:{appearance:t,arrowRef:o,contentRef:r,inline:n,mountNode:i,open:s,openOnContext:a,openOnHover:c,setOpen:d,toggleOpen:f,triggerRef:m,size:h,trapFocus:g,inertTrapFocus:w,withArrow:b}},e.popoverTrigger,e.open&&e.popoverSurface)},Og=e=>{const t=l5(e);return d5(t)};Og.displayName="Popover";const h5=e=>{const{children:t,disableButtonEnhancement:o=!1}=e,r=ec(t),n=ao(F=>F.open),i=ao(F=>F.setOpen),s=ao(F=>F.toggleOpen),a=ao(F=>F.triggerRef),c=ao(F=>F.openOnHover),d=ao(F=>F.openOnContext),{triggerAttributes:h}=sd(),f=F=>{d&&(F.preventDefault(),i(F,!0))},g=F=>{d||s(F)},m=F=>{F.key===ya&&n&&!F.isDefaultPrevented()&&(i(F,!1),F.preventDefault())},b=F=>{c&&i(F,!0)},w=F=>{c&&i(F,!1)},y={...h,"aria-expanded":`${n}`,...r?.props,onMouseEnter:pe(We(r?.props.onMouseEnter,b)),onMouseLeave:pe(We(r?.props.onMouseLeave,w)),onContextMenu:pe(We(r?.props.onContextMenu,f)),ref:tt(a,Jl(r))},k={...y,onClick:pe(We(r?.props.onClick,g)),onKeyDown:pe(We(r?.props.onKeyDown,m))},C=Sa(r?.type==="button"||r?.type==="a"?r.type:"div",k);return{children:Zu(e.children,Sa(r?.type==="button"||r?.type==="a"?r.type:"div",d?y:o?k:C))}},f5=e=>e.children,kd=e=>{const t=h5(e);return f5(t)};kd.displayName="PopoverTrigger",kd.isFluentTriggerComponent=!0;const p5=6,g5=4,m5=e=>-1,v5=e=>{};function b5(e){const{targetDocument:t}=lt(),o=t?.defaultView,r=o?o.setTimeout:m5,n=o?o.clearTimeout:v5,i=S.useRef(void 0),s=S.useCallback((c,d)=>(i.current!==void 0&&n(i.current),i.current=r(c,d??0),i.current),[n,r]),a=S.useCallback(()=>{i.current!==void 0&&(n(i.current),i.current=void 0)},[n]);return S.useEffect(()=>{const c=e.current;return()=>{(!c||!c.isConnected)&&a()}},[a,e]),[s,a]}const w5=e=>{"use no memo";var t,o,r,n,i,s,a;const c=LM(),d=YM(),{targetDocument:h}=lt(),[f,g]=io({state:e.visible,initialState:!1}),{appearance:m="normal",children:b,content:w,withArrow:y=!1,positioning:k="above",onVisibleChange:C,relationship:F,showDelay:E=250,hideDelay:_=250,mountNode:P}=e,D={withArrow:y,positioning:k,showDelay:E,hideDelay:_,relationship:F,visible:f,shouldRenderTooltip:f,appearance:m,mountNode:P,components:{content:"div"},content:Le(w,{defaultProps:{role:"tooltip"},elementType:"div"})};D.content.id=Go("tooltip-",D.content.id);const M={enabled:D.visible,arrowPadding:2*g5,position:"above",align:"center",offset:4,...cc(D.positioning)};D.withArrow&&(M.offset=wS(M.offset,p5));const{targetRef:A,containerRef:O,arrowRef:K}=Sd(M),[W,L]=b5(O),V=S.useCallback((te,re)=>{L(),g(be=>(re.visible!==be&&C?.(te,re),re.visible))},[L,g,C]);D.content.ref=tt(D.content.ref,O),D.arrowRef=K,Zt(()=>{if(f){var te;const re={hide:me=>V(void 0,{visible:!1,documentKeyboardEvent:me})};(te=c.visibleTooltip)===null||te===void 0||te.hide(),c.visibleTooltip=re;const be=me=>{me.key===ya&&!me.defaultPrevented&&(re.hide(me),me.preventDefault())};return h?.addEventListener("keydown",be,{capture:!0}),()=>{c.visibleTooltip===re&&(c.visibleTooltip=void 0),h?.removeEventListener("keydown",be,{capture:!0})}}},[c,h,f,V]);const U=S.useRef(!1),$=S.useCallback(te=>{if(te.type==="focus"&&U.current){U.current=!1;return}const re=c.visibleTooltip?0:D.showDelay;W(()=>{V(te,{visible:!0})},re),te.persist()},[W,V,D.showDelay,c]),Y=KA(),[I]=S.useState(()=>{const te=be=>{var me;!((me=be.detail)===null||me===void 0)&&me.isFocusedProgrammatically&&!Y()&&(U.current=!0)};let re=null;return be=>{re?.removeEventListener(jo,te),be?.addEventListener(jo,te),re=be}}),X=S.useCallback(te=>{let re=D.hideDelay;te.type==="blur"&&(re=0,U.current=h?.activeElement===te.target),W(()=>{V(te,{visible:!1})},re),te.persist()},[W,V,D.hideDelay,h]);D.content.onPointerEnter=We(D.content.onPointerEnter,L),D.content.onPointerLeave=We(D.content.onPointerLeave,X),D.content.onFocus=We(D.content.onFocus,L),D.content.onBlur=We(D.content.onBlur,X);const j=ec(b),z={},H=(j==null||(t=j.props)===null||t===void 0?void 0:t["aria-haspopup"])&&((j==null||(o=j.props)===null||o===void 0?void 0:o["aria-expanded"])===!0||(j==null||(r=j.props)===null||r===void 0?void 0:r["aria-expanded"])==="true");return F==="label"?typeof D.content.children=="string"?z["aria-label"]=D.content.children:(z["aria-labelledby"]=D.content.id,D.shouldRenderTooltip=!0):F==="description"&&(z["aria-describedby"]=D.content.id,D.shouldRenderTooltip=!0),(d||H)&&(D.shouldRenderTooltip=!1),D.children=Zu(b,{...z,...j?.props,ref:tt(Jl(j),I,M.target===void 0?A:void 0),onPointerEnter:pe(We(j==null||(n=j.props)===null||n===void 0?void 0:n.onPointerEnter,$)),onPointerLeave:pe(We(j==null||(i=j.props)===null||i===void 0?void 0:i.onPointerLeave,X)),onFocus:pe(We(j==null||(s=j.props)===null||s===void 0?void 0:s.onFocus,$)),onBlur:pe(We(j==null||(a=j.props)===null||a===void 0?void 0:a.onBlur,X))}),D},C5=e=>gt(S.Fragment,{children:[e.children,e.shouldRenderTooltip&&ae(ms,{mountNode:e.mountNode,children:gt(e.content,{children:[e.withArrow&&ae("div",{ref:e.arrowRef,className:e.arrowClassName}),e.content.children]})})]}),y5={content:"fui-Tooltip__content"},S5=Se({root:{mc9l5x:"fjseox",B7ck84d:"f1ewtqcl",B2u0y6b:"f132xexn",Bceei9c:"f158kwzp",Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bg96gwp:"fwrc4pm",Btd35i7:"fokg9q4",Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"ft85np5",Bgfg5da:0,B9xav0g:0,oivjwe:0,Bn0qgzm:0,B4g9neb:0,zhjwy3:0,wvpqe5:0,ibv6hh:0,u1mtju:0,h3c5rm:0,vrafjx:0,Bekrc4i:0,i8vvqc:0,g2u3we:0,icvyot:0,B4j52fo:0,irswps:"f9ggezi",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1bzqsji",De3pzq:"fxugw4r",sj55zd:"f19n0e5",Bhu2qc9:"fxeb0a7"},visible:{mc9l5x:"ftgm304"},inverted:{De3pzq:"fg3r6xk",sj55zd:"fonrgv7"},arrow:{B7ck84d:"f1ewtqcl",qhf8xq:"f1euv43f",Bj3rh1h:"f1bsuimh",rhnwrx:"f1s3jn22",Bdy53xb:"fv40uqz",De3pzq:"f1u2r49w",B2eet1l:"fqhgnl",Beyfa6y:"f17bz04i",Bz10aip:"f36o3x3",Bqenvij:"fzofk8q",a9b677:"f1wbx1ie",Ftih45:"f1wl9k8s",Br0sdwz:"f1aocrix",cmx5o7:"f1ljr5q2",susq4k:0,Biibvgv:0,Bicfajf:0,qehafq:0,Brs5u8j:"f155f1qt",Ccq8qp:"f9mhzq7",Baz25je:"fr6rhvx",Bcgcnre:0,Bqjgrrk:0,qa3bma:0,y0oebl:0,Biqmznv:0,Bm6vgfq:0,Bbv0w2i:0,uvfttm:0,eqrjj:0,Bk5zm6e:0,m598lv:0,B4f6apu:0,ydt019:0,Bq4z7u6:0,Bdkvgpv:0,B0qfbqy:0,kj8mxx:"f1kc0wz4",r59vdv:"fgq90dz",Bkw5xw4:"fq0y47f",hl6cv3:"f1pwrbz6",aea9ga:"f1hxxcvm",yayu3t:"fw8rgyo",Bhsv975:"f1wnzycx",rhl9o9:"f1730wal",B7gxrvb:"f1fy4ixr",B6q6orb:"fobkauc",B0lu1f8:"f16bqv1l"}},{d:[".fjseox{display:none;}",".f1ewtqcl{box-sizing:border-box;}",".f132xexn{max-width:240px;}",".f158kwzp{cursor:default;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".fokg9q4{overflow-wrap:break-word;}",[".ft85np5{border-radius:var(--borderRadiusMedium);}",{p:-1}],[".f9ggezi{border:1px solid var(--colorTransparentStroke);}",{p:-2}],[".f1bzqsji{padding:4px 11px 6px 11px;}",{p:-1}],".fxugw4r{background-color:var(--colorNeutralBackground1);}",".f19n0e5{color:var(--colorNeutralForeground1);}",".fxeb0a7{filter:drop-shadow(0 0 2px var(--colorNeutralShadowAmbient)) drop-shadow(0 4px 8px var(--colorNeutralShadowKey));}",".ftgm304{display:block;}",".fg3r6xk{background-color:var(--colorNeutralBackgroundStatic);}",".fonrgv7{color:var(--colorNeutralForegroundStaticInverted);}",".f1euv43f{position:absolute;}",".f1bsuimh{z-index:-1;}",".f1s3jn22{--fui-positioning-arrow-height:8.484px;}",".fv40uqz{--fui-positioning-arrow-offset:-4.242px;}",".f1u2r49w{background-color:inherit;}",".fqhgnl{background-clip:content-box;}",".f17bz04i{border-bottom-left-radius:var(--borderRadiusSmall);}",".f36o3x3{transform:rotate(var(--fui-positioning-arrow-angle));}",".fzofk8q{height:var(--fui-positioning-arrow-height);}",".f1wbx1ie{width:var(--fui-positioning-arrow-height);}",'.f1wl9k8s::before{content:"";}',".f1aocrix::before{display:block;}",".f1ljr5q2::before{background-color:inherit;}",[".f155f1qt::before{margin:-1px;}",{p:-1}],".f9mhzq7::before{width:100%;}",".fr6rhvx::before{height:100%;}",[".f1kc0wz4::before{border:1px solid var(--colorTransparentStroke);}",{p:-2}],".fgq90dz::before{border-bottom-left-radius:var(--borderRadiusSmall);}",".fq0y47f::before{clip-path:polygon(0% 0%, 100% 100%, 0% 100%);}",'[data-popper-placement^="top"] .f1pwrbz6{bottom:var(--fui-positioning-arrow-offset);}','[data-popper-placement^="top"] .f1hxxcvm{--fui-positioning-arrow-angle:-45deg;}','[data-popper-placement^="right"] .fw8rgyo{left:var(--fui-positioning-arrow-offset);}','[data-popper-placement^="right"] .f1wnzycx{--fui-positioning-arrow-angle:45deg;}','[data-popper-placement^="bottom"] .f1730wal{top:var(--fui-positioning-arrow-offset);}','[data-popper-placement^="bottom"] .f1fy4ixr{--fui-positioning-arrow-angle:135deg;}','[data-popper-placement^="left"] .fobkauc{right:var(--fui-positioning-arrow-offset);}','[data-popper-placement^="left"] .f16bqv1l{--fui-positioning-arrow-angle:225deg;}']}),x5=e=>{"use no memo";const t=S5();return e.content.className=de(y5.content,t.root,e.appearance==="inverted"&&t.inverted,e.visible&&t.visible,e.content.className),e.arrowClassName=t.arrow,e},Vn=e=>{const t=w5(e);return x5(t),qe("useTooltipStyles_unstable")(t),C5(t)};Vn.displayName="Tooltip",Vn.isFluentTriggerComponent=!0;const k5=e=>{const{iconOnly:t,iconPosition:o}=e;return gt(e.root,{children:[o!=="after"&&e.icon&&ae(e.icon,{}),!t&&e.root.children,o==="after"&&e.icon&&ae(e.icon,{})]})},OS=S.createContext(void 0),F5={};OS.Provider;const R5=()=>{var e;return(e=S.useContext(OS))!==null&&e!==void 0?e:F5},NS=(e,t)=>{const{size:o}=R5(),{appearance:r="secondary",as:n="button",disabled:i=!1,disabledFocusable:s=!1,icon:a,iconPosition:c="before",shape:d="rounded",size:h=o??"medium"}=e,f=et(a,{elementType:"span"});return{appearance:r,disabled:i,disabledFocusable:s,iconPosition:c,shape:d,size:h,iconOnly:!!(f?.children&&!e.children),components:{root:"button",icon:"span"},root:Le(wt(n,Sa(e.as,e)),{elementType:"button",defaultProps:{ref:t,type:n==="button"?"button":void 0}}),icon:f}},LS={root:"fui-Button",icon:"fui-Button__icon"},E5=je("r1f29ykk",null,{r:[".r1f29ykk{align-items:center;box-sizing:border-box;display:inline-flex;justify-content:center;text-decoration-line:none;vertical-align:middle;margin:0;overflow:hidden;background-color:var(--colorNeutralBackground1);color:var(--colorNeutralForeground1);border:var(--strokeWidthThin) solid var(--colorNeutralStroke1);font-family:var(--fontFamilyBase);outline-style:none;padding:5px var(--spacingHorizontalM);min-width:96px;border-radius:var(--borderRadiusMedium);font-size:var(--fontSizeBase300);font-weight:var(--fontWeightSemibold);line-height:var(--lineHeightBase300);transition-duration:var(--durationFaster);transition-property:background,border,color;transition-timing-function:var(--curveEasyEase);}",".r1f29ykk:hover{background-color:var(--colorNeutralBackground1Hover);border-color:var(--colorNeutralStroke1Hover);color:var(--colorNeutralForeground1Hover);cursor:pointer;}",".r1f29ykk:hover:active,.r1f29ykk:active:focus-visible{background-color:var(--colorNeutralBackground1Pressed);border-color:var(--colorNeutralStroke1Pressed);color:var(--colorNeutralForeground1Pressed);outline-style:none;}",".r1f29ykk[data-fui-focus-visible]{border-color:var(--colorStrokeFocus2);border-radius:var(--borderRadiusMedium);border-width:1px;outline:var(--strokeWidthThick) solid var(--colorTransparentStroke);box-shadow:0 0 0 var(--strokeWidthThin) var(--colorStrokeFocus2) inset;z-index:1;}"],s:["@media screen and (prefers-reduced-motion: reduce){.r1f29ykk{transition-duration:0.01ms;}}","@media (forced-colors: active){.r1f29ykk:focus{border-color:ButtonText;}.r1f29ykk:hover{background-color:HighlightText;border-color:Highlight;color:Highlight;forced-color-adjust:none;}.r1f29ykk:hover:active,.r1f29ykk:active:focus-visible{background-color:HighlightText;border-color:Highlight;color:Highlight;forced-color-adjust:none;}}","@supports (-moz-appearance:button){.r1f29ykk[data-fui-focus-visible]{box-shadow:0 0 0 calc(var(--strokeWidthThin) + 0.25px) var(--colorStrokeFocus2) inset;}}"]}),_5=je("rywnvv2",null,[".rywnvv2{align-items:center;display:inline-flex;justify-content:center;font-size:20px;height:20px;width:20px;--fui-Button__icon--spacing:var(--spacingHorizontalSNudge);}"]),P5=Se({outline:{De3pzq:"f1c21dwh",Jwef8y:"fjxutwb",Bpjbzib:"fkoldzo"},primary:{De3pzq:"ffp7eso",g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],sj55zd:"f1phragk",Jwef8y:"f15wkkf3",Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],Bi91k9c:"f1rq72xc",Bpjbzib:"f1ksv2xa",im15vp:"fhvnf4x",Hjvxdg:["fb6swo4","f232fm2"],Gpfmf1:"f1klyf7k",ustxxc:["f232fm2","fb6swo4"],Brsut9c:"f1d6mv4x",By8wz76:"f1nz3ub2",Bcq6wej:"fag2qd2",Jcjdmf:["fmvhcg7","f14bpyus"],sc4o1m:"f1o3dhpw",Bosien3:["f14bpyus","fmvhcg7"],B7iucu3:"fqc85l4",B8gzw0y:"f1h3a8gf",Bbkh6qg:"fkiggi6",F230oe:"f8gmj8i",Bdw8ktp:["f1ap8nzx","fjag8bx"],Bj1xduy:"f1igan7k",Bhh2cfd:["fjag8bx","f1ap8nzx"],Bahaeuw:"f1v3eptx",Bv2bamp:"f1ysmecq",vxuvv6:"faulsx",Bli9q98:["f79t15f","f8qmx7k"],Bx2tt8t:"fbtzoaq",yad0b3:["f8qmx7k","f79t15f"],j2fop7:"fd4bjan"},secondary:{},subtle:{De3pzq:"fhovq9v",g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],sj55zd:"fkfq4zb",Jwef8y:"f1t94bn6",Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],Bi91k9c:"fnwyq0v",Bk3fhr4:"ft1hn21",Bmfj8id:"fuxngvv",Bbdnnc7:"fy5bs14",Bpjbzib:"f1q1yqic",im15vp:"fhvnf4x",Hjvxdg:["fb6swo4","f232fm2"],Gpfmf1:"f1klyf7k",ustxxc:["f232fm2","fb6swo4"],Brsut9c:"fwga7ee",Bqou3pl:"f1nhwcv0",Bsnehw8:"f1gm6xmp",wsxvnf:"f1xxsver",Bahaeuw:"f1v3eptx",Buhizc3:"fivsta0",j2fop7:"fd4bjan",Bqabnb4:"f3m6zum"},transparent:{De3pzq:"f1c21dwh",g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],sj55zd:"fkfq4zb",Jwef8y:"fjxutwb",Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],Bi91k9c:"f139oj5f",Bk3fhr4:"ft1hn21",Bmfj8id:"fuxngvv",Bpjbzib:"fkoldzo",im15vp:"fhvnf4x",Hjvxdg:["fb6swo4","f232fm2"],Gpfmf1:"f1klyf7k",ustxxc:["f232fm2","fb6swo4"],Brsut9c:"f1l983o9",Bqou3pl:"f1nhwcv0",Bsnehw8:"f1gm6xmp",Bbkh6qg:"fxoo9op",Bahaeuw:"f1v3eptx",Bv2bamp:"f1i0gk12",j2fop7:"fd4bjan"},circular:{Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"f44lkw9"},rounded:{},square:{Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"f1fabniw"},small:{Bf4jedk:"fh7ncta",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"fneth5b",Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"ft85np5",Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",Bg96gwp:"fwrc4pm"},smallWithIcon:{Byoj8tv:"f1brlhvm",z8tnut:"f1sl3k7w"},medium:{},large:{Bf4jedk:"f14es27b",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f4db1ww",Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"ft85np5",Be2twd7:"fod5ikn",Bhrd7zp:"fl43uef",Bg96gwp:"faaz57k"},largeWithIcon:{Byoj8tv:"fy7v416",z8tnut:"f1a1bwwz"}},{d:[".f1c21dwh{background-color:var(--colorTransparentBackground);}",".ffp7eso{background-color:var(--colorBrandBackground);}",".f1p3nwhy{border-top-color:transparent;}",".f11589ue{border-right-color:transparent;}",".f1pdflbu{border-left-color:transparent;}",".f1q5o8ev{border-bottom-color:transparent;}",".f1phragk{color:var(--colorNeutralForegroundOnBrand);}",".fhovq9v{background-color:var(--colorSubtleBackground);}",".fkfq4zb{color:var(--colorNeutralForeground2);}",[".f44lkw9{border-radius:var(--borderRadiusCircular);}",{p:-1}],[".f1fabniw{border-radius:var(--borderRadiusNone);}",{p:-1}],".fh7ncta{min-width:64px;}",[".fneth5b{padding:3px var(--spacingHorizontalS);}",{p:-1}],[".ft85np5{border-radius:var(--borderRadiusMedium);}",{p:-1}],".fy9rknc{font-size:var(--fontSizeBase200);}",".figsok6{font-weight:var(--fontWeightRegular);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".f1brlhvm{padding-bottom:1px;}",".f1sl3k7w{padding-top:1px;}",".f14es27b{min-width:96px;}",[".f4db1ww{padding:8px var(--spacingHorizontalL);}",{p:-1}],[".ft85np5{border-radius:var(--borderRadiusMedium);}",{p:-1}],".fod5ikn{font-size:var(--fontSizeBase400);}",".fl43uef{font-weight:var(--fontWeightSemibold);}",".faaz57k{line-height:var(--lineHeightBase400);}",".fy7v416{padding-bottom:7px;}",".f1a1bwwz{padding-top:7px;}"],h:[".fjxutwb:hover{background-color:var(--colorTransparentBackgroundHover);}",".fkoldzo:hover:active,.fkoldzo:active:focus-visible{background-color:var(--colorTransparentBackgroundPressed);}",".f15wkkf3:hover{background-color:var(--colorBrandBackgroundHover);}",".f1s2uweq:hover{border-top-color:transparent;}",".fr80ssc:hover{border-right-color:transparent;}",".fecsdlb:hover{border-left-color:transparent;}",".f1ukrpxl:hover{border-bottom-color:transparent;}",".f1rq72xc:hover{color:var(--colorNeutralForegroundOnBrand);}",".f1ksv2xa:hover:active,.f1ksv2xa:active:focus-visible{background-color:var(--colorBrandBackgroundPressed);}",".fhvnf4x:hover:active,.fhvnf4x:active:focus-visible{border-top-color:transparent;}",".fb6swo4:hover:active,.fb6swo4:active:focus-visible{border-right-color:transparent;}",".f232fm2:hover:active,.f232fm2:active:focus-visible{border-left-color:transparent;}",".f1klyf7k:hover:active,.f1klyf7k:active:focus-visible{border-bottom-color:transparent;}",".f1d6mv4x:hover:active,.f1d6mv4x:active:focus-visible{color:var(--colorNeutralForegroundOnBrand);}",".f1t94bn6:hover{background-color:var(--colorSubtleBackgroundHover);}",".fnwyq0v:hover{color:var(--colorNeutralForeground2Hover);}",".ft1hn21:hover .fui-Icon-filled{display:inline;}",".fuxngvv:hover .fui-Icon-regular{display:none;}",".fy5bs14:hover .fui-Button__icon{color:var(--colorNeutralForeground2BrandHover);}",".f1q1yqic:hover:active,.f1q1yqic:active:focus-visible{background-color:var(--colorSubtleBackgroundPressed);}",".fwga7ee:hover:active,.fwga7ee:active:focus-visible{color:var(--colorNeutralForeground2Pressed);}",".f1nhwcv0:hover:active .fui-Icon-filled,.f1nhwcv0:active:focus-visible .fui-Icon-filled{display:inline;}",".f1gm6xmp:hover:active .fui-Icon-regular,.f1gm6xmp:active:focus-visible .fui-Icon-regular{display:none;}",".f1xxsver:hover:active .fui-Button__icon,.f1xxsver:active:focus-visible .fui-Button__icon{color:var(--colorNeutralForeground2BrandPressed);}",".f139oj5f:hover{color:var(--colorNeutralForeground2BrandHover);}",".f1l983o9:hover:active,.f1l983o9:active:focus-visible{color:var(--colorNeutralForeground2BrandPressed);}"],m:[["@media (forced-colors: active){.f1nz3ub2{background-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fag2qd2{border-top-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f14bpyus{border-left-color:HighlightText;}.fmvhcg7{border-right-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1o3dhpw{border-bottom-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fqc85l4{color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1h3a8gf{forced-color-adjust:none;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fkiggi6:hover{background-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f8gmj8i:hover{border-top-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1ap8nzx:hover{border-right-color:Highlight;}.fjag8bx:hover{border-left-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1igan7k:hover{border-bottom-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1v3eptx:hover{color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1ysmecq:hover:active,.f1ysmecq:active:focus-visible{background-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.faulsx:hover:active,.faulsx:active:focus-visible{border-top-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f79t15f:hover:active,.f79t15f:active:focus-visible{border-right-color:Highlight;}.f8qmx7k:hover:active,.f8qmx7k:active:focus-visible{border-left-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fbtzoaq:hover:active,.fbtzoaq:active:focus-visible{border-bottom-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fd4bjan:hover:active,.fd4bjan:active:focus-visible{color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fivsta0:hover .fui-Button__icon{color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f3m6zum:hover:active .fui-Button__icon,.f3m6zum:active:focus-visible .fui-Button__icon{color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fxoo9op:hover{background-color:var(--colorTransparentBackground);}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1i0gk12:hover:active,.f1i0gk12:active:focus-visible{background-color:var(--colorTransparentBackground);}}",{m:"(forced-colors: active)"}]]}),D5=Se({base:{De3pzq:"f1bg9a2p",g2u3we:"f1jj8ep1",h3c5rm:["f15xbau","fy0fskl"],B9xav0g:"f4ikngz",zhjwy3:["fy0fskl","f15xbau"],sj55zd:"f1s2aq7o",Bceei9c:"fdrzuqr",Bfinmwp:"f15x8b5r",Jwef8y:"f1falr9n",Bgoe8wy:"f12mpcsy",Bwzppfd:["f1gwvigk","f18rmfxp"],oetu4i:"f1jnshp0",gg5e9n:["f18rmfxp","f1gwvigk"],Bi91k9c:"fvgxktp",eoavqd:"fphbwmw",Bk3fhr4:"f19vpps7",Bmfj8id:"fv5swzo",Bbdnnc7:"f1al02dq",Bpjbzib:"f1jct5ie",im15vp:"f13txml0",Hjvxdg:["f1ncddno","f1axfvow"],Gpfmf1:"f1z04ada",ustxxc:["f1axfvow","f1ncddno"],Brsut9c:"f1uhomfy",Bses4qk:"fy9mucy",Bqou3pl:"f1g9va8i",Bsnehw8:"fwgvudy",wsxvnf:"fom6jww"},highContrast:{By8wz76:"f14ptb23",Bcq6wej:"f9dbb4x",Jcjdmf:["f3qs60o","f5u9ap2"],sc4o1m:"fwd1oij",Bosien3:["f5u9ap2","f3qs60o"],B7iucu3:"f1cyfu5x",Grqk0h:"f127ot8j",h3ptyc:"f19etb0b",Buw724y:["f4f984j","fw441p0"],Buk7464:"f3d22hf",Hwei09:["fw441p0","f4f984j"],Bbkh6qg:"fj8k9ua",F230oe:"fifrq0d",Bdw8ktp:["f196mwp7","fnekfq"],Bj1xduy:"f1l6uprw",Bhh2cfd:["fnekfq","f196mwp7"],Bahaeuw:"fa9u7a5",Buhizc3:"f1m71e0y",Bv2bamp:"fw24f3",vxuvv6:"f1nznrny",Bli9q98:["fq8nxuu","f1ao3jkc"],Bx2tt8t:"ftoixeo",yad0b3:["f1ao3jkc","fq8nxuu"],j2fop7:"fpmuzpx",Bqabnb4:"f168odog"},outline:{De3pzq:"f1c21dwh",Jwef8y:"f9ql6rf",Bpjbzib:"f9r0db0"},primary:{g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],im15vp:"fhvnf4x",Hjvxdg:["fb6swo4","f232fm2"],Gpfmf1:"f1klyf7k",ustxxc:["f232fm2","fb6swo4"]},secondary:{},subtle:{De3pzq:"f1c21dwh",g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],Jwef8y:"f9ql6rf",Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],Bpjbzib:"f9r0db0",im15vp:"fhvnf4x",Hjvxdg:["fb6swo4","f232fm2"],Gpfmf1:"f1klyf7k",ustxxc:["f232fm2","fb6swo4"]},transparent:{De3pzq:"f1c21dwh",g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],Jwef8y:"f9ql6rf",Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],Bpjbzib:"f9r0db0",im15vp:"fhvnf4x",Hjvxdg:["fb6swo4","f232fm2"],Gpfmf1:"f1klyf7k",ustxxc:["f232fm2","fb6swo4"]}},{d:[".f1bg9a2p{background-color:var(--colorNeutralBackgroundDisabled);}",".f1jj8ep1{border-top-color:var(--colorNeutralStrokeDisabled);}",".f15xbau{border-right-color:var(--colorNeutralStrokeDisabled);}",".fy0fskl{border-left-color:var(--colorNeutralStrokeDisabled);}",".f4ikngz{border-bottom-color:var(--colorNeutralStrokeDisabled);}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".fdrzuqr{cursor:not-allowed;}",".f15x8b5r .fui-Button__icon{color:var(--colorNeutralForegroundDisabled);}",".f1c21dwh{background-color:var(--colorTransparentBackground);}",".f1p3nwhy{border-top-color:transparent;}",".f11589ue{border-right-color:transparent;}",".f1pdflbu{border-left-color:transparent;}",".f1q5o8ev{border-bottom-color:transparent;}"],h:[".f1falr9n:hover{background-color:var(--colorNeutralBackgroundDisabled);}",".f12mpcsy:hover{border-top-color:var(--colorNeutralStrokeDisabled);}",".f1gwvigk:hover{border-right-color:var(--colorNeutralStrokeDisabled);}",".f18rmfxp:hover{border-left-color:var(--colorNeutralStrokeDisabled);}",".f1jnshp0:hover{border-bottom-color:var(--colorNeutralStrokeDisabled);}",".fvgxktp:hover{color:var(--colorNeutralForegroundDisabled);}",".fphbwmw:hover{cursor:not-allowed;}",".f19vpps7:hover .fui-Icon-filled{display:none;}",".fv5swzo:hover .fui-Icon-regular{display:inline;}",".f1al02dq:hover .fui-Button__icon{color:var(--colorNeutralForegroundDisabled);}",".f1jct5ie:hover:active,.f1jct5ie:active:focus-visible{background-color:var(--colorNeutralBackgroundDisabled);}",".f13txml0:hover:active,.f13txml0:active:focus-visible{border-top-color:var(--colorNeutralStrokeDisabled);}",".f1ncddno:hover:active,.f1ncddno:active:focus-visible{border-right-color:var(--colorNeutralStrokeDisabled);}",".f1axfvow:hover:active,.f1axfvow:active:focus-visible{border-left-color:var(--colorNeutralStrokeDisabled);}",".f1z04ada:hover:active,.f1z04ada:active:focus-visible{border-bottom-color:var(--colorNeutralStrokeDisabled);}",".f1uhomfy:hover:active,.f1uhomfy:active:focus-visible{color:var(--colorNeutralForegroundDisabled);}",".fy9mucy:hover:active,.fy9mucy:active:focus-visible{cursor:not-allowed;}",".f1g9va8i:hover:active .fui-Icon-filled,.f1g9va8i:active:focus-visible .fui-Icon-filled{display:none;}",".fwgvudy:hover:active .fui-Icon-regular,.fwgvudy:active:focus-visible .fui-Icon-regular{display:inline;}",".fom6jww:hover:active .fui-Button__icon,.fom6jww:active:focus-visible .fui-Button__icon{color:var(--colorNeutralForegroundDisabled);}",".f9ql6rf:hover{background-color:var(--colorTransparentBackground);}",".f9r0db0:hover:active,.f9r0db0:active:focus-visible{background-color:var(--colorTransparentBackground);}",".f1s2uweq:hover{border-top-color:transparent;}",".fr80ssc:hover{border-right-color:transparent;}",".fecsdlb:hover{border-left-color:transparent;}",".f1ukrpxl:hover{border-bottom-color:transparent;}",".fhvnf4x:hover:active,.fhvnf4x:active:focus-visible{border-top-color:transparent;}",".fb6swo4:hover:active,.fb6swo4:active:focus-visible{border-right-color:transparent;}",".f232fm2:hover:active,.f232fm2:active:focus-visible{border-left-color:transparent;}",".f1klyf7k:hover:active,.f1klyf7k:active:focus-visible{border-bottom-color:transparent;}"],m:[["@media (forced-colors: active){.f14ptb23{background-color:ButtonFace;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f9dbb4x{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f3qs60o{border-right-color:GrayText;}.f5u9ap2{border-left-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fwd1oij{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1cyfu5x{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f127ot8j .fui-Button__icon{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f19etb0b:focus{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f4f984j:focus{border-right-color:GrayText;}.fw441p0:focus{border-left-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f3d22hf:focus{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fj8k9ua:hover{background-color:ButtonFace;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fifrq0d:hover{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f196mwp7:hover{border-right-color:GrayText;}.fnekfq:hover{border-left-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1l6uprw:hover{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fa9u7a5:hover{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1m71e0y:hover .fui-Button__icon{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fw24f3:hover:active,.fw24f3:active:focus-visible{background-color:ButtonFace;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1nznrny:hover:active,.f1nznrny:active:focus-visible{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1ao3jkc:hover:active,.f1ao3jkc:active:focus-visible{border-left-color:GrayText;}.fq8nxuu:hover:active,.fq8nxuu:active:focus-visible{border-right-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.ftoixeo:hover:active,.ftoixeo:active:focus-visible{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fpmuzpx:hover:active,.fpmuzpx:active:focus-visible{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f168odog:hover:active .fui-Button__icon,.f168odog:active:focus-visible .fui-Button__icon{color:GrayText;}}",{m:"(forced-colors: active)"}]]}),T5=Se({circular:{Bw81rd7:0,kdpuga:0,dm238s:0,B6xbmo0:0,B3whbx2:"f1062rbf"},rounded:{},square:{Bw81rd7:0,kdpuga:0,dm238s:0,B6xbmo0:0,B3whbx2:"fj0ryk1"},primary:{B8q5s1w:"f17t0x8g",Bci5o5g:["f194v5ow","fk7jm04"],n8qw10:"f1qgg65p",Bdrgwmp:["fk7jm04","f194v5ow"],j6ew2k:["fhgccpy","fjo7pq6"],he4mth:"f32wu9k",Byr4aka:"fu5nqqq",lks7q5:["f13prjl2","f1nl83rv"],Bnan3qt:"f1czftr5",k1dn9:["f1nl83rv","f13prjl2"],Bqsb82s:["fixhny3","f18mfu3r"],jg1oma:"feygou5"},small:{Bw81rd7:0,kdpuga:0,dm238s:0,B6xbmo0:0,B3whbx2:"fazmxh"},medium:{},large:{Bw81rd7:0,kdpuga:0,dm238s:0,B6xbmo0:0,B3whbx2:"f1b6alqh"}},{d:[[".f1062rbf[data-fui-focus-visible]{border-radius:var(--borderRadiusCircular);}",{p:-1}],[".fj0ryk1[data-fui-focus-visible]{border-radius:var(--borderRadiusNone);}",{p:-1}],".f17t0x8g[data-fui-focus-visible]{border-top-color:var(--colorStrokeFocus2);}",".f194v5ow[data-fui-focus-visible]{border-right-color:var(--colorStrokeFocus2);}",".fk7jm04[data-fui-focus-visible]{border-left-color:var(--colorStrokeFocus2);}",".f1qgg65p[data-fui-focus-visible]{border-bottom-color:var(--colorStrokeFocus2);}",".fhgccpy[data-fui-focus-visible]{box-shadow:var(--shadow2),0 0 0 var(--strokeWidthThin) var(--colorStrokeFocus2) inset,0 0 0 var(--strokeWidthThick) var(--colorNeutralForegroundOnBrand) inset;}",".fjo7pq6[data-fui-focus-visible]{box-shadow:var(--shadow2),0 0 0 var(--strokeWidthThin) var(--colorStrokeFocus2) inset,0 0 0 var(--strokeWidthThick) var(--colorNeutralForegroundOnBrand) inset;}",".f32wu9k[data-fui-focus-visible]:hover{box-shadow:var(--shadow2),0 0 0 var(--strokeWidthThin) var(--colorStrokeFocus2) inset;}",".fu5nqqq[data-fui-focus-visible]:hover{border-top-color:var(--colorStrokeFocus2);}",".f13prjl2[data-fui-focus-visible]:hover{border-right-color:var(--colorStrokeFocus2);}",".f1nl83rv[data-fui-focus-visible]:hover{border-left-color:var(--colorStrokeFocus2);}",".f1czftr5[data-fui-focus-visible]:hover{border-bottom-color:var(--colorStrokeFocus2);}",[".fazmxh[data-fui-focus-visible]{border-radius:var(--borderRadiusSmall);}",{p:-1}],[".f1b6alqh[data-fui-focus-visible]{border-radius:var(--borderRadiusLarge);}",{p:-1}]],t:["@supports (-moz-appearance:button){.f18mfu3r[data-fui-focus-visible]{box-shadow:var(--shadow2),0 0 0 calc(var(--strokeWidthThin) + 0.25px) var(--colorStrokeFocus2) inset,0 0 0 var(--strokeWidthThick) var(--colorNeutralForegroundOnBrand) inset;}.fixhny3[data-fui-focus-visible]{box-shadow:var(--shadow2),0 0 0 calc(var(--strokeWidthThin) + 0.25px) var(--colorStrokeFocus2) inset,0 0 0 var(--strokeWidthThick) var(--colorNeutralForegroundOnBrand) inset;}}","@supports (-moz-appearance:button){.feygou5[data-fui-focus-visible]:hover{box-shadow:var(--shadow2),0 0 0 calc(var(--strokeWidthThin) + 0.25px) var(--colorStrokeFocus2) inset;}}"]}),M5=Se({small:{Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"fu97m5z",Bf4jedk:"f17fgpbq",B2u0y6b:"f1jt17bm"},medium:{Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f18ktai2",Bf4jedk:"fwbmr0d",B2u0y6b:"f44c6la"},large:{Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1hbd1aw",Bf4jedk:"f12clzc2",B2u0y6b:"fjy1crr"}},{d:[[".fu97m5z{padding:1px;}",{p:-1}],".f17fgpbq{min-width:24px;}",".f1jt17bm{max-width:24px;}",[".f18ktai2{padding:5px;}",{p:-1}],".fwbmr0d{min-width:32px;}",".f44c6la{max-width:32px;}",[".f1hbd1aw{padding:7px;}",{p:-1}],".f12clzc2{min-width:40px;}",".fjy1crr{max-width:40px;}"]}),A5=Se({small:{Be2twd7:"fe5j1ua",Bqenvij:"fjamq6b",a9b677:"f64fuq3",Bqrlyyl:"fbaiahx"},medium:{},large:{Be2twd7:"f1rt2boy",Bqenvij:"frvgh55",a9b677:"fq4mcun",Bqrlyyl:"f1exjqw5"},before:{t21cq0:["f1nizpg2","f1a695kz"]},after:{Frg6f3:["f1a695kz","f1nizpg2"]}},{d:[".fe5j1ua{font-size:20px;}",".fjamq6b{height:20px;}",".f64fuq3{width:20px;}",".fbaiahx{--fui-Button__icon--spacing:var(--spacingHorizontalXS);}",".f1rt2boy{font-size:24px;}",".frvgh55{height:24px;}",".fq4mcun{width:24px;}",".f1exjqw5{--fui-Button__icon--spacing:var(--spacingHorizontalSNudge);}",".f1nizpg2{margin-right:var(--fui-Button__icon--spacing);}",".f1a695kz{margin-left:var(--fui-Button__icon--spacing);}"]}),zS=e=>{"use no memo";const t=E5(),o=_5(),r=P5(),n=D5(),i=T5(),s=M5(),a=A5(),{appearance:c,disabled:d,disabledFocusable:h,icon:f,iconOnly:g,iconPosition:m,shape:b,size:w}=e;return e.root.className=de(LS.root,t,c&&r[c],r[w],f&&w==="small"&&r.smallWithIcon,f&&w==="large"&&r.largeWithIcon,r[b],(d||h)&&n.base,(d||h)&&n.highContrast,c&&(d||h)&&n[c],c==="primary"&&i.primary,i[w],i[b],g&&s[w],e.root.className),e.icon&&(e.icon.className=de(LS.icon,o,!!e.root.children&&a[m],a[w],e.icon.className)),e},ut=S.forwardRef((e,t)=>{const o=NS(e,t);return zS(o),qe("useButtonStyles_unstable")(o),k5(o)});ut.displayName="Button";const I5=e=>{const{icon:t,iconOnly:o}=e;return gt(e.root,{children:[e.icon&&ae(e.icon,{}),!o&&e.root.children,(!o||!t?.children)&&e.menuIcon&&ae(e.menuIcon,{})]})},B5=({menuIcon:e,...t},o)=>{"use no memo";const r=NS(t,o);return r.root["aria-expanded"]=t["aria-expanded"]?t["aria-expanded"]==="true"||t["aria-expanded"]===!0:!1,{...r,iconOnly:!t.children,components:{root:"button",icon:"span",menuIcon:"span"},menuIcon:et(e,{defaultProps:{children:S.createElement(gg,null)},renderByDefault:!0,elementType:"span"})}},Ng={root:"fui-MenuButton",icon:"fui-MenuButton__icon",menuIcon:"fui-MenuButton__menuIcon"},O5=Se({base:{D0sxk3:"fxoiby5",t6yez3:"f15q0o9g"},outline:{g2u3we:"f1ly1fcm",h3c5rm:["fi8bssc","fj6btzu"],B9xav0g:"f1s9tnsa",zhjwy3:["fj6btzu","fi8bssc"],B4j52fo:"fgx37oo",Bekrc4i:["f130t4y6","f1efpmoh"],Bn0qgzm:"fv51ejd",ibv6hh:["f1efpmoh","f130t4y6"],sj55zd:"f14nttnl"},primary:{De3pzq:"f8w4g0q"},secondary:{De3pzq:"f1nfm20t",g2u3we:"f1ly1fcm",h3c5rm:["fi8bssc","fj6btzu"],B9xav0g:"f1s9tnsa",zhjwy3:["fj6btzu","fi8bssc"],sj55zd:"f14nttnl"},subtle:{De3pzq:"fq5gl1p",sj55zd:"f1eryozh"},transparent:{De3pzq:"f1q9pm1r",sj55zd:"f1qj7y59"}},{d:[".fxoiby5 .fui-Icon-filled{display:inline;}",".f15q0o9g .fui-Icon-regular{display:none;}",".f1ly1fcm{border-top-color:var(--colorNeutralStroke1Selected);}",".fi8bssc{border-right-color:var(--colorNeutralStroke1Selected);}",".fj6btzu{border-left-color:var(--colorNeutralStroke1Selected);}",".f1s9tnsa{border-bottom-color:var(--colorNeutralStroke1Selected);}",".fgx37oo{border-top-width:var(--strokeWidthThicker);}",".f130t4y6{border-right-width:var(--strokeWidthThicker);}",".f1efpmoh{border-left-width:var(--strokeWidthThicker);}",".fv51ejd{border-bottom-width:var(--strokeWidthThicker);}",".f14nttnl{color:var(--colorNeutralForeground1Selected);}",".f8w4g0q{background-color:var(--colorBrandBackgroundSelected);}",".f1nfm20t{background-color:var(--colorNeutralBackground1Selected);}",".fq5gl1p{background-color:var(--colorSubtleBackgroundSelected);}",".f1eryozh{color:var(--colorNeutralForeground2Selected);}",".f1q9pm1r{background-color:var(--colorTransparentBackgroundSelected);}",".f1qj7y59{color:var(--colorNeutralForeground2BrandSelected);}"]}),N5=Se({outline:{sj55zd:"f14nttnl"},primary:{},secondary:{sj55zd:"f14nttnl"},subtle:{sj55zd:"f1qj7y59"},transparent:{sj55zd:"f1qj7y59"},highContrast:{Bahaeuw:"f1v3eptx"}},{d:[".f14nttnl{color:var(--colorNeutralForeground1Selected);}",".f1qj7y59{color:var(--colorNeutralForeground2BrandSelected);}"],m:[["@media (forced-colors: active){.f1v3eptx:hover{color:Highlight;}}",{m:"(forced-colors: active)"}]]}),L5=Se({base:{Bg96gwp:"fez10in"},small:{Be2twd7:"f1ugzwwg",Bqenvij:"fvblgha",Bg96gwp:"fwrc4pm",a9b677:"frx94fk"},medium:{Be2twd7:"f1ugzwwg",Bqenvij:"fvblgha",Bg96gwp:"fwrc4pm",a9b677:"frx94fk"},large:{Be2twd7:"f4ybsrx",Bqenvij:"fd461yt",Bg96gwp:"faaz57k",a9b677:"fjw5fx7"},notIconOnly:{Frg6f3:["fbyavb5","fm0x6gh"]}},{d:[".fez10in{line-height:0;}",".f1ugzwwg{font-size:12px;}",".fvblgha{height:12px;}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".frx94fk{width:12px;}",".f4ybsrx{font-size:16px;}",".fd461yt{height:16px;}",".faaz57k{line-height:var(--lineHeightBase400);}",".fjw5fx7{width:16px;}",".fbyavb5{margin-left:var(--spacingHorizontalXS);}",".fm0x6gh{margin-right:var(--spacingHorizontalXS);}"]}),z5=e=>{"use no memo";const t=O5(),o=N5(),r=L5();return e.root.className=de(Ng.root,e.root["aria-expanded"]&&t.base,e.root["aria-expanded"]&&t[e.appearance],e.root.className),e.icon&&(e.icon.className=de(Ng.icon,e.root["aria-expanded"]&&o[e.appearance]&&o.highContrast,e.icon.className)),e.menuIcon&&(e.menuIcon.className=de(Ng.menuIcon,r.base,r[e.size],!e.iconOnly&&r.notIconOnly,e.menuIcon.className)),zS({...e,iconPosition:"before"}),e},HS=S.forwardRef((e,t)=>{const o=B5(e,t);return z5(o),qe("useMenuButtonStyles_unstable")(o),I5(o)});HS.displayName="MenuButton";const VS=S.createContext(void 0),H5=VS.Provider,V5=()=>S.useContext(VS),G5=e=>{var t,o,r,n;const{generatedControlId:i,orientation:s,required:a,size:c,validationState:d}=e,h=(t=e.label)===null||t===void 0?void 0:t.htmlFor,f=(o=e.label)===null||o===void 0?void 0:o.id,g=(r=e.validationMessage)===null||r===void 0?void 0:r.id,m=(n=e.hint)===null||n===void 0?void 0:n.id;return{field:S.useMemo(()=>({generatedControlId:i,hintId:m,labelFor:h,labelId:f,orientation:s,required:a,size:c,validationMessageId:g,validationState:d}),[i,m,h,f,s,a,c,g,d])}};function vs(e,t){return GS(V5(),e,t)}function GS(e,t,o){if(!e)return t;t={...t};const{generatedControlId:r,hintId:n,labelFor:i,labelId:s,required:a,validationMessageId:c,validationState:d}=e;if(r){var h,f;(f=(h=t).id)!==null&&f!==void 0||(h.id=r)}if(s&&(!o?.supportsLabelFor||i!==t.id)){var g,m,b;(b=(g=t)[m="aria-labelledby"])!==null&&b!==void 0||(g[m]=s)}if((c||n)&&(t["aria-describedby"]=[c,n,t?.["aria-describedby"]].filter(Boolean).join(" ")),d==="error"){var w,y,k;(k=(w=t)[y="aria-invalid"])!==null&&k!==void 0||(w[y]=!0)}if(a)if(o?.supportsRequired){var C,F;(F=(C=t).required)!==null&&F!==void 0||(C.required=!0)}else{var E,_,P;(P=(E=t)[_="aria-required"])!==null&&P!==void 0||(E[_]=!0)}if(o?.supportsSize){var D,M;(M=(D=t).size)!==null&&M!==void 0||(D.size=e.size)}return t}const j5=(e,t)=>{let{children:o}=e;return typeof o=="function"&&(o=o(GS(t.field)||{})),ae(H5,{value:t?.field,children:gt(e.root,{children:[e.label&&ae(e.label,{}),o,e.validationMessage&>(e.validationMessage,{children:[e.validationMessageIcon&&ae(e.validationMessageIcon,{}),e.validationMessage.children]}),e.hint&&ae(e.hint,{})]})})},W5=(e,t)=>{const{disabled:o=!1,required:r=!1,weight:n="regular",size:i="medium"}=e;return{disabled:o,required:et(r===!0?"*":r||void 0,{defaultProps:{"aria-hidden":"true"},elementType:"span"}),weight:n,size:i,components:{root:"label",required:"span"},root:Le(wt("label",{ref:t,...e}),{elementType:"label"})}},q5=e=>gt(e.root,{children:[e.root.children,e.required&&ae(e.required,{})]}),jS={root:"fui-Label",required:"fui-Label__required"},U5=Se({root:{Bahqtrf:"fk6fouc",sj55zd:"f19n0e5"},disabled:{sj55zd:"f1s2aq7o",B7iucu3:"f1cyfu5x"},required:{sj55zd:"f1whyuy6",uwmqm3:["fruq291","f7x41pl"]},small:{Be2twd7:"fy9rknc",Bg96gwp:"fwrc4pm"},medium:{Be2twd7:"fkhj508",Bg96gwp:"f1i3iumi"},large:{Be2twd7:"fod5ikn",Bg96gwp:"faaz57k",Bhrd7zp:"fl43uef"},semibold:{Bhrd7zp:"fl43uef"}},{d:[".fk6fouc{font-family:var(--fontFamilyBase);}",".f19n0e5{color:var(--colorNeutralForeground1);}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".f1whyuy6{color:var(--colorPaletteRedForeground3);}",".fruq291{padding-left:var(--spacingHorizontalXS);}",".f7x41pl{padding-right:var(--spacingHorizontalXS);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".fkhj508{font-size:var(--fontSizeBase300);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".fod5ikn{font-size:var(--fontSizeBase400);}",".faaz57k{line-height:var(--lineHeightBase400);}",".fl43uef{font-weight:var(--fontWeightSemibold);}"],m:[["@media (forced-colors: active){.f1cyfu5x{color:GrayText;}}",{m:"(forced-colors: active)"}]]}),$5=e=>{"use no memo";const t=U5();return e.root.className=de(jS.root,t.root,e.disabled&&t.disabled,t[e.size],e.weight==="semibold"&&t.semibold,e.root.className),e.required&&(e.required.className=de(jS.required,t.required,e.disabled&&t.disabled,e.required.className)),e},Nr=S.forwardRef((e,t)=>{const o=W5(e,t);return $5(o),qe("useLabelStyles_unstable")(o),q5(o)});Nr.displayName="Label";const K5={error:S.createElement(Ay,null),warning:S.createElement(NB,null),success:S.createElement(My,null),none:void 0},X5=(e,t)=>{const{children:o,orientation:r="vertical",required:n=!1,validationState:i=e.validationMessage?"error":"none",size:s="medium"}=e,a=Go("field-"),c=a+"__control",d=Le(wt("div",{...e,ref:t},["children"]),{elementType:"div"}),h=et(e.label,{defaultProps:{htmlFor:c,id:a+"__label",required:n,size:s},elementType:Nr}),f=et(e.validationMessage,{defaultProps:{id:a+"__validationMessage",role:i==="error"||i==="warning"?"alert":void 0},elementType:"div"}),g=et(e.hint,{defaultProps:{id:a+"__hint"},elementType:"div"}),m=K5[i],b=et(e.validationMessageIcon,{renderByDefault:!!m,defaultProps:{children:m},elementType:"span"});return{children:o,generatedControlId:c,orientation:r,required:n,size:s,validationState:i,components:{root:"div",label:Nr,validationMessage:"div",validationMessageIcon:"span",hint:"div"},root:d,label:h,validationMessageIcon:b,validationMessage:f,hint:g}},uc={root:"fui-Field",label:"fui-Field__label",validationMessage:"fui-Field__validationMessage",validationMessageIcon:"fui-Field__validationMessageIcon",hint:"fui-Field__hint"},Z5=Se({base:{mc9l5x:"f13qh94s"},horizontal:{Budl1dq:"f2wwaib",wkccdc:"f1645dqt"},horizontalNoLabel:{uwmqm3:["f15jqgz8","fggqkej"],Budl1dq:"f1c2z91y"}},{d:[".f13qh94s{display:grid;}",".f2wwaib{grid-template-columns:33% 1fr;}",".f1645dqt{grid-template-rows:auto auto auto 1fr;}",".f15jqgz8{padding-left:33%;}",".fggqkej{padding-right:33%;}",".f1c2z91y{grid-template-columns:1fr;}"]}),Y5=Se({base:{B2u0y6b:"f6nezus",Bxyxcbc:"f1iqmcbn"},vertical:{z8tnut:"fclwglc",Byoj8tv:"fywfov9",jrapky:"fyacil5"},verticalLarge:{z8tnut:"f1sl3k7w",Byoj8tv:"f1brlhvm",jrapky:"f8l5zjj"},horizontal:{z8tnut:"fp2oml8",Byoj8tv:"f1tdddsa",t21cq0:["fkujibs","f199hnxi"],Ijaq50:"f16hsg94",nk6f5a:"f1nzqi2z"},horizontalSmall:{z8tnut:"f1ywm7hm",Byoj8tv:"f14wxoun"},horizontalLarge:{z8tnut:"f1hqyr95",Byoj8tv:"fm4hlj0"}},{d:[".f6nezus{max-width:max-content;}",".f1iqmcbn{max-height:max-content;}",".fclwglc{padding-top:var(--spacingVerticalXXS);}",".fywfov9{padding-bottom:var(--spacingVerticalXXS);}",".fyacil5{margin-bottom:var(--spacingVerticalXXS);}",".f1sl3k7w{padding-top:1px;}",".f1brlhvm{padding-bottom:1px;}",".f8l5zjj{margin-bottom:var(--spacingVerticalXS);}",".fp2oml8{padding-top:var(--spacingVerticalSNudge);}",".f1tdddsa{padding-bottom:var(--spacingVerticalSNudge);}",".fkujibs{margin-right:var(--spacingHorizontalM);}",".f199hnxi{margin-left:var(--spacingHorizontalM);}",".f16hsg94{grid-row-start:1;}",".f1nzqi2z{grid-row-end:-1;}",".f1ywm7hm{padding-top:var(--spacingVerticalXS);}",".f14wxoun{padding-bottom:var(--spacingVerticalXS);}",".f1hqyr95{padding-top:9px;}",".fm4hlj0{padding-bottom:9px;}"]}),Q5=je("r5c4z9l",null,[".r5c4z9l{margin-top:var(--spacingVerticalXXS);color:var(--colorNeutralForeground3);font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase200);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase200);}"]),J5=Se({error:{sj55zd:"f1hcrxcs"},withIcon:{uwmqm3:["frawy03","fg4c52"]}},{d:[".f1hcrxcs{color:var(--colorPaletteRedForeground1);}",".frawy03{padding-left:calc(12px + var(--spacingHorizontalXS));}",".fg4c52{padding-right:calc(12px + var(--spacingHorizontalXS));}"]}),eL=je("ra7h1uk","r1rh6bd7",[".ra7h1uk{display:inline-block;font-size:12px;margin-left:calc(-12px - var(--spacingHorizontalXS));margin-right:var(--spacingHorizontalXS);line-height:0;vertical-align:-1px;}",".r1rh6bd7{display:inline-block;font-size:12px;margin-right:calc(-12px - var(--spacingHorizontalXS));margin-left:var(--spacingHorizontalXS);line-height:0;vertical-align:-1px;}"]),tL=Se({error:{sj55zd:"f1hcrxcs"},warning:{sj55zd:"f1k5f75o"},success:{sj55zd:"ffmvakt"}},{d:[".f1hcrxcs{color:var(--colorPaletteRedForeground1);}",".f1k5f75o{color:var(--colorPaletteDarkOrangeForeground1);}",".ffmvakt{color:var(--colorPaletteGreenForeground1);}"]}),oL=e=>{"use no memo";const{validationState:t,size:o}=e,r=e.orientation==="horizontal",n=Z5();e.root.className=de(uc.root,n.base,r&&n.horizontal,r&&!e.label&&n.horizontalNoLabel,e.root.className);const i=Y5();e.label&&(e.label.className=de(uc.label,i.base,r&&i.horizontal,r&&o==="small"&&i.horizontalSmall,r&&o==="large"&&i.horizontalLarge,!r&&i.vertical,!r&&o==="large"&&i.verticalLarge,e.label.className));const s=eL(),a=tL();e.validationMessageIcon&&(e.validationMessageIcon.className=de(uc.validationMessageIcon,s,t!=="none"&&a[t],e.validationMessageIcon.className));const c=Q5(),d=J5();return e.validationMessage&&(e.validationMessage.className=de(uc.validationMessage,c,t==="error"&&d.error,!!e.validationMessageIcon&&d.withIcon,e.validationMessage.className)),e.hint&&(e.hint.className=de(uc.hint,c,e.hint.className)),e},bs=S.forwardRef((e,t)=>{const o=X5(e,t);oL(o),qe("useFieldStyles_unstable")(o);const r=G5(o);return j5(o,r)});bs.displayName="Field";const rL=(e,t)=>{"use no memo";e=vs(e,{supportsLabelFor:!0,supportsRequired:!0});const{disabled:o=!1,required:r,shape:n="square",size:i="medium",labelPosition:s="after",onChange:a}=e,[c,d]=io({defaultState:e.defaultChecked,state:e.checked,initialState:!1}),h=pa({props:e,primarySlotTagName:"input",excludedPropNames:["checked","defaultChecked","size","onChange"]}),f=c==="mixed",g=Go("checkbox-",h.primary.id);let m;f?n==="circular"?m=S.createElement(Dy,null):m=i==="large"?S.createElement(jB,null):S.createElement(GB,null):c&&(m=i==="large"?S.createElement(VB,null):S.createElement(Ty,null));const b={shape:n,checked:c,disabled:o,size:i,labelPosition:s,components:{root:"span",input:"input",indicator:"div",label:Nr},root:Le(e.root,{defaultProps:{ref:ey(),...h.root},elementType:"span"}),input:Le(e.input,{defaultProps:{type:"checkbox",id:g,ref:t,checked:c===!0,...h.primary},elementType:"input"}),label:et(e.label,{defaultProps:{htmlFor:g,disabled:o,required:r,size:"medium"},elementType:Nr}),indicator:et(e.indicator,{renderByDefault:!0,defaultProps:{"aria-hidden":!0,children:m},elementType:"div"})};b.input.onChange=pe(y=>{const k=y.currentTarget.indeterminate?"mixed":y.currentTarget.checked;a?.(y,{checked:k}),d(k)});const w=tt(b.input.ref);return b.input.ref=w,Zt(()=>{w.current&&(w.current.indeterminate=f)},[w,f]),b},nL=e=>gt(e.root,{children:[ae(e.input,{}),e.labelPosition==="before"&&e.label&&ae(e.label,{}),e.indicator&&ae(e.indicator,{}),e.labelPosition==="after"&&e.label&&ae(e.label,{})]}),Fd={root:"fui-Checkbox",label:"fui-Checkbox__label",input:"fui-Checkbox__input",indicator:"fui-Checkbox__indicator"},iL=je("r1nzur1d","r128arqq",{r:[".r1nzur1d{position:relative;display:inline-flex;cursor:pointer;max-width:fit-content;vertical-align:middle;color:var(--colorNeutralForeground3);}",".r1nzur1d:focus{outline-style:none;}",".r1nzur1d:focus-visible{outline-style:none;}",".r1nzur1d[data-fui-focus-within]:focus-within{border-top-color:transparent;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent;}",'.r1nzur1d[data-fui-focus-within]:focus-within::after{content:"";position:absolute;pointer-events:none;z-index:1;border:2px solid var(--colorStrokeFocus2);border-radius:var(--borderRadiusMedium);top:calc(2px * -1);right:calc(2px * -1);bottom:calc(2px * -1);left:calc(2px * -1);}',".r128arqq{position:relative;display:inline-flex;cursor:pointer;max-width:fit-content;vertical-align:middle;color:var(--colorNeutralForeground3);}",".r128arqq:focus{outline-style:none;}",".r128arqq:focus-visible{outline-style:none;}",".r128arqq[data-fui-focus-within]:focus-within{border-top-color:transparent;border-left-color:transparent;border-bottom-color:transparent;border-right-color:transparent;}",'.r128arqq[data-fui-focus-within]:focus-within::after{content:"";position:absolute;pointer-events:none;z-index:1;border:2px solid var(--colorStrokeFocus2);border-radius:var(--borderRadiusMedium);top:calc(2px * -1);left:calc(2px * -1);bottom:calc(2px * -1);right:calc(2px * -1);}'],s:["@media (forced-colors: active){.r1nzur1d[data-fui-focus-within]:focus-within::after{border-top-color:Highlight;border-right-color:Highlight;border-bottom-color:Highlight;border-left-color:Highlight;}}","@media (forced-colors: active){.r128arqq[data-fui-focus-within]:focus-within::after{border-top-color:Highlight;border-left-color:Highlight;border-bottom-color:Highlight;border-right-color:Highlight;}}"]}),sL=Se({unchecked:{Bi91k9c:"f3p8bqa",pv5h1i:"fium13f",lj723h:"f1r2dosr",Hnthvo:"f1729es6"},checked:{sj55zd:"f19n0e5",wkncrt:"f35ds98",zxk7z7:"f12mnkne",Hmsnfy:"fei9a8h",e6czan:"fix56y3",pv5h1i:"f1bcv2js",qbydtz:"f7dr4go",Hnthvo:"f1r5cpua"},mixed:{sj55zd:"f19n0e5",Hmsnfy:"f1l27tf0",zxk7z7:"fcilktj",pv5h1i:"f1lphd54",Bunfa6h:"f1obkvq7",Hnthvo:"f2gmbuh",B15ykmv:"f1oy4fa1"},disabled:{Bceei9c:"f158kwzp",sj55zd:"f1s2aq7o",Hmsnfy:"f1w7mfl5",zxk7z7:"fcoafq6",B7iucu3:"f1cyfu5x",Bptavk6:"f1lwde8o"}},{h:[".f3p8bqa:hover{color:var(--colorNeutralForeground2);}",".fium13f:hover{--fui-Checkbox__indicator--borderColor:var(--colorNeutralStrokeAccessibleHover);}",".fix56y3:hover{--fui-Checkbox__indicator--backgroundColor:var(--colorCompoundBrandBackgroundHover);}",".f1bcv2js:hover{--fui-Checkbox__indicator--borderColor:var(--colorCompoundBrandBackgroundHover);}",".f1lphd54:hover{--fui-Checkbox__indicator--borderColor:var(--colorCompoundBrandStrokeHover);}",".f1obkvq7:hover{--fui-Checkbox__indicator--color:var(--colorCompoundBrandForeground1Hover);}"],a:[".f1r2dosr:active{color:var(--colorNeutralForeground1);}",".f1729es6:active{--fui-Checkbox__indicator--borderColor:var(--colorNeutralStrokeAccessiblePressed);}",".f7dr4go:active{--fui-Checkbox__indicator--backgroundColor:var(--colorCompoundBrandBackgroundPressed);}",".f1r5cpua:active{--fui-Checkbox__indicator--borderColor:var(--colorCompoundBrandBackgroundPressed);}",".f2gmbuh:active{--fui-Checkbox__indicator--borderColor:var(--colorCompoundBrandStrokePressed);}",".f1oy4fa1:active{--fui-Checkbox__indicator--color:var(--colorCompoundBrandForeground1Pressed);}"],d:[".f19n0e5{color:var(--colorNeutralForeground1);}",".f35ds98{--fui-Checkbox__indicator--backgroundColor:var(--colorCompoundBrandBackground);}",".f12mnkne{--fui-Checkbox__indicator--color:var(--colorNeutralForegroundInverted);}",".fei9a8h{--fui-Checkbox__indicator--borderColor:var(--colorCompoundBrandBackground);}",".f1l27tf0{--fui-Checkbox__indicator--borderColor:var(--colorCompoundBrandStroke);}",".fcilktj{--fui-Checkbox__indicator--color:var(--colorCompoundBrandForeground1);}",".f158kwzp{cursor:default;}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".f1w7mfl5{--fui-Checkbox__indicator--borderColor:var(--colorNeutralStrokeDisabled);}",".fcoafq6{--fui-Checkbox__indicator--color:var(--colorNeutralForegroundDisabled);}"],m:[["@media (forced-colors: active){.f1cyfu5x{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1lwde8o{--fui-Checkbox__indicator--color:GrayText;}}",{m:"(forced-colors: active)"}]]}),aL=je("ruo9svu",null,[".ruo9svu{box-sizing:border-box;cursor:inherit;height:100%;margin:0;opacity:0;position:absolute;top:0;width:calc(16px + 2 * var(--spacingHorizontalS));}"]),lL=Se({before:{j35jbq:["f1e31b4d","f1vgc2s3"]},after:{oyh7mz:["f1vgc2s3","f1e31b4d"]},large:{a9b677:"f1mq5jt6"}},{d:[".f1e31b4d{right:0;}",".f1vgc2s3{left:0;}",".f1mq5jt6{width:calc(20px + 2 * var(--spacingHorizontalS));}"]}),cL=je("rl7ci6d",null,[".rl7ci6d{align-self:flex-start;box-sizing:border-box;flex-shrink:0;display:flex;align-items:center;justify-content:center;overflow:hidden;color:var(--fui-Checkbox__indicator--color);background-color:var(--fui-Checkbox__indicator--backgroundColor);border-color:var(--fui-Checkbox__indicator--borderColor, var(--colorNeutralStrokeAccessible));border-style:solid;border-width:var(--strokeWidthThin);border-radius:var(--borderRadiusSmall);margin:var(--spacingVerticalS) var(--spacingHorizontalS);fill:currentColor;pointer-events:none;font-size:12px;height:16px;width:16px;}"]),uL=Se({large:{Be2twd7:"f4ybsrx",Bqenvij:"fjamq6b",a9b677:"f64fuq3"},circular:{Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"f44lkw9"}},{d:[".f4ybsrx{font-size:16px;}",".fjamq6b{height:20px;}",".f64fuq3{width:20px;}",[".f44lkw9{border-radius:var(--borderRadiusCircular);}",{p:-1}]]}),dL=Se({base:{qb2dma:"f7nlbp4",sj55zd:"f1ym3bx4",Bceei9c:"fpo1scq",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1f5q0n8"},before:{z189sj:["f7x41pl","fruq291"]},after:{uwmqm3:["fruq291","f7x41pl"]},medium:{B6of3ja:"fjzwpt6",jrapky:"fh6j2fo"},large:{B6of3ja:"f1xlvstr",jrapky:"f49ad5g"}},{d:[".f7nlbp4{align-self:center;}",".f1ym3bx4{color:inherit;}",".fpo1scq{cursor:inherit;}",[".f1f5q0n8{padding:var(--spacingVerticalS) var(--spacingHorizontalS);}",{p:-1}],".f7x41pl{padding-right:var(--spacingHorizontalXS);}",".fruq291{padding-left:var(--spacingHorizontalXS);}",".fjzwpt6{margin-top:calc((16px - var(--lineHeightBase300)) / 2);}",".fh6j2fo{margin-bottom:calc((16px - var(--lineHeightBase300)) / 2);}",".f1xlvstr{margin-top:calc((20px - var(--lineHeightBase300)) / 2);}",".f49ad5g{margin-bottom:calc((20px - var(--lineHeightBase300)) / 2);}"]}),hL=e=>{"use no memo";const{checked:t,disabled:o,labelPosition:r,shape:n,size:i}=e,s=iL(),a=sL();e.root.className=de(Fd.root,s,o?a.disabled:t==="mixed"?a.mixed:t?a.checked:a.unchecked,e.root.className);const c=aL(),d=lL();e.input.className=de(Fd.input,c,i==="large"&&d.large,d[r],e.input.className);const h=cL(),f=uL();e.indicator&&(e.indicator.className=de(Fd.indicator,h,i==="large"&&f.large,n==="circular"&&f.circular,e.indicator.className));const g=dL();return e.label&&(e.label.className=de(Fd.label,g.base,g[i],g[r],e.label.className)),e},Rd=S.forwardRef((e,t)=>{const o=rL(e,t);return hL(o),qe("useCheckboxStyles_unstable")(o),nL(o)});Rd.displayName="Checkbox";const Lg=Si({activeOption:void 0,appearance:"outline",focusVisible:!1,open:!1,registerOption(){return()=>{}},selectedOptions:[],selectOption(){},setActiveOption(){},setOpen(){},size:"medium"});Lg.Provider;const fL={activeOption:void 0,focusVisible:!1,multiselect:!1,getOptionById(){},getOptionsMatchingValue(){return[]},registerOption(){return()=>{}},selectedOptions:[],onOptionClick(){},onActiveDescendantChange(){},selectOption(){},setActiveOption(){}},Ta=Si(void 0),$o=e=>hs(Ta,(t=fL)=>e(t)),pL=Ta.Provider;function WS(e){const{appearance:t,open:o,getOptionById:r,getOptionsMatchingValue:n,registerOption:i,selectedOptions:s,selectOption:a,setOpen:c,size:d,activeDescendantController:h,onOptionClick:f,onActiveDescendantChange:g}=e,m={activeOption:void 0,appearance:t,focusVisible:!1,open:o,registerOption:i,selectedOptions:s,selectOption:a,setActiveOption:()=>null,setOpen:c,size:d},b={activeOption:void 0,focusVisible:!1,getOptionById:r,getOptionsMatchingValue:n,registerOption:i,selectedOptions:s,selectOption:a,setActiveOption:()=>null,onOptionClick:f,onActiveDescendantChange:g},w=S.useMemo(()=>({controller:h}),[h]);return{combobox:m,activeDescendant:w,listbox:b}}function gL(e){const t=ic(Ta),{getOptionById:o,getOptionsMatchingValue:r,multiselect:n,registerOption:i,selectedOptions:s,selectOption:a,activeDescendantController:c}=e,d=$o(w=>w.registerOption),h=$o(w=>w.onOptionClick),f=$o(w=>w.onActiveDescendantChange),m={activeOption:void 0,focusVisible:!1,getOptionById:o,getOptionsMatchingValue:r,multiselect:n,registerOption:t?d:i,selectedOptions:s,selectOption:a,setActiveOption:()=>{},onOptionClick:h,onActiveDescendantChange:f},b=S.useMemo(()=>({controller:c}),[c]);return{listbox:m,activeDescendant:b}}function dc(e,t={}){const{open:o=!0,multiselect:r=!1}=t,n=e.key,{altKey:i,ctrlKey:s,key:a,metaKey:c}=e;return a.length===1&&n!==sn&&!i&&!s&&!c?"Type":o?n===hd&&i||n===fs||!r&&n===sn?"CloseSelect":r&&n===sn?"Select":n===ya?"Close":n===cd?"Next":n===hd?"Previous":n===rB?"First":n===oB?"Last":n===iB?"PageUp":n===nB?"PageDown":n===ky?"Tab":"None":n===cd||n===hd||n===fs||n===sn?"Open":"None"}const qS=()=>{const e=S.useRef(new Map),t=S.useMemo(()=>({getCount:()=>e.current.size,getOptionAtIndex:()=>{},getIndexOfId:()=>-1,getOptionById:d=>e.current.get(d),getOptionsMatchingText:d=>Array.from(e.current.values()).filter(({text:h})=>d(h)),getOptionsMatchingValue:d=>{const h=[];for(const f of e.current.values())d(f.value)&&h.push(f);return h}}),[]),o=S.useCallback(r=>(e.current.set(r.id,r),()=>e.current.delete(r.id)),[]);return{...t,options:Array.from(e.current.values()),registerOption:o}},US=e=>{const{defaultSelectedOptions:t,multiselect:o,onOptionSelect:r}=e,[n,i]=io({state:e.selectedOptions,defaultState:t,initialState:[]}),s=S.useCallback((c,d)=>{if(d.disabled)return;let h=[d.value];if(o){const f=n.findIndex(g=>g===d.value);f>-1?h=[...n.slice(0,f),...n.slice(f+1)]:h=[...n,d.value]}i(h),r?.(c,{optionValue:d.value,optionText:d.text,selectedOptions:h})},[r,o,n,i]);return{clearSelection:c=>{i([]),r?.(c,{optionValue:void 0,optionText:void 0,selectedOptions:[]})},selectOption:s,selectedOptions:n}},hc={root:"fui-Option",checkIcon:"fui-Option__checkIcon"},mL=Se({root:{Bt984gj:"f122n59",Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"ft85np5",sj55zd:"f19n0e5",i8kkvl:"f1ufnopg",Bceei9c:"f1k6fduh",mc9l5x:"f22iagw",Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bg96gwp:"f1i3iumi",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"fm5eomj",qhf8xq:"f10pi13n",Jwef8y:"f1knas48",Bi91k9c:"feu1g3u",zqbkvg:"fo79ri9",h82x05:["f1osiabc","f1e8le25"],cqj998:"f1yusjty",j3hlsh:["f1e8le25","f1osiabc"],ecr2s2:"fb40n2d",lj723h:"f1g4hkjv",Btxx2vb:"f1lnr2zp",sltcwy:["f1ogfk9z","f1g7j8ec"],dnwvvm:"fiuf46r",Blyvkvs:["f1g7j8ec","f1ogfk9z"]},active:{Bowz1zl:"f11vrvdw",oxogb1:"f17hxjb7",Ix2sn8:"f1dha69c",q7v32p:"f1lm7500",B7cbj04:0,Bewtojm:0,b50fsz:0,B1wzb3v:0,Bqwk70n:0,B37u8z8:0,avt0cx:0,f0sref:0,B9fkznv:0,Be3o27t:0,Bertapg:0,B53xpsf:0,Bsv72rj:0,B39dzdd:0,Btq9bd3:0,Bqfxd14:0,atup0s:"fo7xqb",Fffuxt:0,Bttcd12:0,Beitzug:0,Bqougee:0,B86i8pi:"f1kurthe",Bhijsxg:"fwq15dy",kktds4:"f1pb3wry",Bmau3bo:["ftjv2f4","f1flhb1f"],npektv:["f1flhb1f","ftjv2f4"]},disabled:{sj55zd:"f1s2aq7o",Jwef8y:"f9ql6rf",Bi91k9c:"fvgxktp",zqbkvg:"f185j3qj",h82x05:["f1dligi3","f1vydzie"],cqj998:"fjw1di3",j3hlsh:["f1vydzie","f1dligi3"],ecr2s2:"fgj9um3",lj723h:"f19wldhg",Btxx2vb:"f1ss0kt2",sltcwy:["f1t6oli3","fjy9ci8"],dnwvvm:"fresaxk",Blyvkvs:["fjy9ci8","f1t6oli3"],B7iucu3:"f1cyfu5x"},selected:{},checkIcon:{Bnnss6s:"fi64zpg",Be2twd7:"fod5ikn",Frg6f3:["f18b9hdq","fn6qj8t"],t21cq0:["f1xk557c","f1h9en5y"],Bcdw1i0:"fd7fpy0",Bo70h7d:"fvc9v3g"},selectedCheck:{Bcdw1i0:"f1022m68"},multiselectCheck:{Bgfg5da:0,B9xav0g:0,oivjwe:0,Bn0qgzm:0,B4g9neb:0,zhjwy3:0,wvpqe5:0,ibv6hh:0,u1mtju:0,h3c5rm:0,vrafjx:0,Bekrc4i:0,i8vvqc:0,g2u3we:0,icvyot:0,B4j52fo:0,irswps:"f1l3cf7o",Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"fq9zq91",B7ck84d:"f1ewtqcl",mc9l5x:"f22iagw",Bt984gj:"f122n59",Brf1p80:"f4d9j23",Bkfmm31:"f1w9h62z",Be2twd7:"f1ugzwwg",Bqenvij:"fd461yt",a9b677:"fjw5fx7",Bcdw1i0:"f1022m68"},selectedMultiselectCheck:{De3pzq:"ftywsgz",sj55zd:"fqpbvvt",g2u3we:"f3xi7mh",h3c5rm:["ftovhe4","f1wczvin"],B9xav0g:"f68vbr6",zhjwy3:["f1wczvin","ftovhe4"]},checkDisabled:{sj55zd:"f1s2aq7o",B7iucu3:"f1cyfu5x"},multiselectCheckDisabled:{g2u3we:"f1r1t4y1",h3c5rm:["fmj8ijw","figx54m"],B9xav0g:"f360ss8",zhjwy3:["figx54m","fmj8ijw"]}},{d:[".f122n59{align-items:center;}",[".ft85np5{border-radius:var(--borderRadiusMedium);}",{p:-1}],".f19n0e5{color:var(--colorNeutralForeground1);}",".f1ufnopg{column-gap:var(--spacingHorizontalXS);}",".f1k6fduh{cursor:pointer;}",".f22iagw{display:flex;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",[".fm5eomj{padding:var(--spacingVerticalSNudge) var(--spacingHorizontalS);}",{p:-1}],".f10pi13n{position:relative;}",'.f11vrvdw[data-activedescendant-focusvisible]::after{content:"";}',".f17hxjb7[data-activedescendant-focusvisible]::after{position:absolute;}",".f1dha69c[data-activedescendant-focusvisible]::after{pointer-events:none;}",".f1lm7500[data-activedescendant-focusvisible]::after{z-index:1;}",[".fo7xqb[data-activedescendant-focusvisible]::after{border:2px solid var(--colorStrokeFocus2);}",{p:-2}],[".f1kurthe[data-activedescendant-focusvisible]::after{border-radius:var(--borderRadiusMedium);}",{p:-1}],".fwq15dy[data-activedescendant-focusvisible]::after{top:-2px;}",".f1pb3wry[data-activedescendant-focusvisible]::after{bottom:-2px;}",".ftjv2f4[data-activedescendant-focusvisible]::after{left:-2px;}",".f1flhb1f[data-activedescendant-focusvisible]::after{right:-2px;}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".fi64zpg{flex-shrink:0;}",".fod5ikn{font-size:var(--fontSizeBase400);}",".f18b9hdq{margin-left:calc(var(--spacingHorizontalXXS) * -1);}",".fn6qj8t{margin-right:calc(var(--spacingHorizontalXXS) * -1);}",".f1xk557c{margin-right:var(--spacingHorizontalXXS);}",".f1h9en5y{margin-left:var(--spacingHorizontalXXS);}",".fd7fpy0{visibility:hidden;}",".fvc9v3g svg{display:block;}",".f1022m68{visibility:visible;}",[".f1l3cf7o{border:var(--strokeWidthThin) solid var(--colorNeutralStrokeAccessible);}",{p:-2}],[".fq9zq91{border-radius:var(--borderRadiusSmall);}",{p:-1}],".f1ewtqcl{box-sizing:border-box;}",".f4d9j23{justify-content:center;}",".f1w9h62z{fill:currentColor;}",".f1ugzwwg{font-size:12px;}",".fd461yt{height:16px;}",".fjw5fx7{width:16px;}",".ftywsgz{background-color:var(--colorCompoundBrandBackground);}",".fqpbvvt{color:var(--colorNeutralForegroundInverted);}",".f3xi7mh{border-top-color:var(--colorCompoundBrandBackground);}",".ftovhe4{border-right-color:var(--colorCompoundBrandBackground);}",".f1wczvin{border-left-color:var(--colorCompoundBrandBackground);}",".f68vbr6{border-bottom-color:var(--colorCompoundBrandBackground);}",".f1r1t4y1{border-top-color:var(--colorNeutralForegroundDisabled);}",".fmj8ijw{border-right-color:var(--colorNeutralForegroundDisabled);}",".figx54m{border-left-color:var(--colorNeutralForegroundDisabled);}",".f360ss8{border-bottom-color:var(--colorNeutralForegroundDisabled);}"],h:[".f1knas48:hover{background-color:var(--colorNeutralBackground1Hover);}",".feu1g3u:hover{color:var(--colorNeutralForeground1Hover);}",".fo79ri9:hover .fui-Option__checkIcon{border-top-color:var(--colorNeutralForeground1Hover);}",".f1osiabc:hover .fui-Option__checkIcon{border-right-color:var(--colorNeutralForeground1Hover);}",".f1e8le25:hover .fui-Option__checkIcon{border-left-color:var(--colorNeutralForeground1Hover);}",".f1yusjty:hover .fui-Option__checkIcon{border-bottom-color:var(--colorNeutralForeground1Hover);}",".f9ql6rf:hover{background-color:var(--colorTransparentBackground);}",".fvgxktp:hover{color:var(--colorNeutralForegroundDisabled);}",".f185j3qj:hover .fui-Option__checkIcon{border-top-color:var(--colorNeutralForegroundDisabled);}",".f1dligi3:hover .fui-Option__checkIcon{border-right-color:var(--colorNeutralForegroundDisabled);}",".f1vydzie:hover .fui-Option__checkIcon{border-left-color:var(--colorNeutralForegroundDisabled);}",".fjw1di3:hover .fui-Option__checkIcon{border-bottom-color:var(--colorNeutralForegroundDisabled);}"],a:[".fb40n2d:active{background-color:var(--colorNeutralBackground1Pressed);}",".f1g4hkjv:active{color:var(--colorNeutralForeground1Pressed);}",".f1lnr2zp:active .fui-Option__checkIcon{border-top-color:var(--colorNeutralForeground1Hover);}",".f1ogfk9z:active .fui-Option__checkIcon{border-right-color:var(--colorNeutralForeground1Hover);}",".f1g7j8ec:active .fui-Option__checkIcon{border-left-color:var(--colorNeutralForeground1Hover);}",".fiuf46r:active .fui-Option__checkIcon{border-bottom-color:var(--colorNeutralForeground1Hover);}",".fgj9um3:active{background-color:var(--colorTransparentBackground);}",".f19wldhg:active{color:var(--colorNeutralForegroundDisabled);}",".f1ss0kt2:active .fui-Option__checkIcon{border-top-color:var(--colorNeutralForegroundDisabled);}",".f1t6oli3:active .fui-Option__checkIcon{border-right-color:var(--colorNeutralForegroundDisabled);}",".fjy9ci8:active .fui-Option__checkIcon{border-left-color:var(--colorNeutralForegroundDisabled);}",".fresaxk:active .fui-Option__checkIcon{border-bottom-color:var(--colorNeutralForegroundDisabled);}"],m:[["@media (forced-colors: active){.f1cyfu5x{color:GrayText;}}",{m:"(forced-colors: active)"}]]}),vL=e=>{"use no memo";const{disabled:t,multiselect:o,selected:r}=e,n=mL();return e.root.className=de(hc.root,n.root,n.active,t&&n.disabled,r&&n.selected,e.root.className),e.checkIcon&&(e.checkIcon.className=de(hc.checkIcon,n.checkIcon,o&&n.multiselectCheck,r&&n.selectedCheck,r&&o&&n.selectedMultiselectCheck,t&&n.checkDisabled,t&&o&&n.multiselectCheckDisabled,e.checkIcon.className)),e},$S={activeOption:void 0,focusVisible:!1,setActiveOption:()=>null},bL=(e,t)=>{"use no memo";const{multiselect:o,disableAutoFocus:r=!1}=e,n=qS(),{listboxRef:i,activeParentRef:s,controller:a}=pg({matchOption:V=>V.classList.contains(hc.root)}),c=ic(Ta),d=$o(V=>V.onActiveDescendantChange),h=$o(V=>V.getOptionById),f=$o(V=>V.getOptionsMatchingValue),g=c?h:n.getOptionById,m=c?f:n.getOptionsMatchingValue,b=S.useMemo(()=>{let V=null;const U=$=>{d?.($)};return $=>{if(!$){V?.removeEventListener("activedescendantchange",U);return}V=$,V.addEventListener("activedescendantchange",U)}},[d]),[w,y]=S.useState(!1);ty(y);const k=Fy(),C=aB(),F=C?k.controller:a,{clearSelection:E,selectedOptions:_,selectOption:P}=US(e),D=V=>{const U=dc(V,{open:!0}),$=F.active(),Y=$?g($):null;switch(U){case"First":case"Last":case"Next":case"Previous":case"PageDown":case"PageUp":case"CloseSelect":case"Select":V.preventDefault();break}switch(U){case"Next":Y?F.next():F.first();break;case"Previous":Y?F.prev():F.first();break;case"PageUp":case"First":F.first();break;case"PageDown":case"Last":F.last();break;case"Select":case"CloseSelect":Y&&P(V,Y);break}},M=$o(V=>V.selectedOptions),A=$o(V=>V.selectOption),O=c?{selectedOptions:M,selectOption:A,...$S}:{selectedOptions:_,selectOption:P,...$S};S.useEffect(()=>{if(!C){if(F.hideFocusVisibleAttributes(),!r)if(!o&&O.selectedOptions.length>0){const V=m(U=>U===O.selectedOptions[0]).pop();V?.id&&F.focus(V.id)}else F.first();return()=>{F.blur()}}},[]);const K=S.useCallback(()=>{C||(F.showFocusVisibleAttributes(),w&&F.scrollActiveIntoView())},[F,C,w]),W=S.useCallback(()=>{C||F.hideFocusVisibleAttributes()},[F,C]),L={components:{root:"div"},root:Le(wt("div",{ref:tt(t,s,i,b),role:o?"menu":"listbox",tabIndex:0,...e}),{elementType:"div"}),standalone:!c,multiselect:o,clearSelection:E,activeDescendantController:F,onActiveDescendantChange:d,...n,...O};return L.root.onKeyDown=pe(We(L.root.onKeyDown,D)),L.root.onFocus=pe(We(L.root.onFocus,K)),L.root.onBlur=pe(We(L.root.onBlur,W)),L},wL=(e,t)=>ae(fg,{value:t.activeDescendant,children:ae(Ta.Provider,{value:t.listbox,children:ae(e.root,{})})}),CL={root:"fui-Listbox"},yL=Se({root:{De3pzq:"fxugw4r",B7ck84d:"f1ewtqcl",mc9l5x:"f22iagw",Beiy3e4:"f1vx9l62",Bf4jedk:"f3hsy1e",Bmxbyg5:"f5zp4f",Bw0xxkn:0,oeaueh:0,Bpd4iqm:0,Befb4lg:"f1iepc6i",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1t35pdg",Belr9w4:"fiut8dr"}},{d:[".fxugw4r{background-color:var(--colorNeutralBackground1);}",".f1ewtqcl{box-sizing:border-box;}",".f22iagw{display:flex;}",".f1vx9l62{flex-direction:column;}",".f3hsy1e{min-width:160px;}",".f5zp4f{overflow-y:auto;}",[".f1iepc6i{outline:1px solid var(--colorTransparentStroke);}",{p:-1}],[".f1t35pdg{padding:var(--spacingHorizontalXS);}",{p:-1}],".fiut8dr{row-gap:var(--spacingHorizontalXXS);}"]}),SL=e=>{"use no memo";const t=yL();return e.root.className=de(CL.root,t.root,e.root.className),e},Ed=S.forwardRef((e,t)=>{const o=bL(e,t),r=gL(o);return SL(o),qe("useListboxStyles_unstable")(o),wL(o,r)});Ed.displayName="Listbox";function xL(e,t){if(e!==void 0)return e;let o="",r=!1;return S.Children.forEach(t,n=>{typeof n=="string"?o+=n:r=!0}),r&&console.warn("Provide a `text` prop to Option components when they contain non-string children."),o}const kL=(e,t)=>{const{children:o,disabled:r,text:n,value:i}=e,s=S.useRef(null),a=xL(n,o),c=i??a,d=Go("fluent-option",e.id),h=S.useMemo(()=>({id:d,disabled:r,text:a,value:c}),[d,r,a,c]),{controller:f}=Fy(),g=$o(E=>E.multiselect),m=$o(E=>E.registerOption),b=$o(E=>{const _=E.selectedOptions;return c!==void 0&&_.find(P=>P===c)!==void 0}),w=$o(E=>E.selectOption),y=$o(E=>E.onOptionClick);let k=S.createElement(RB,null);g&&(k=b?S.createElement(Ty,null):"");const C=E=>{var _;if(r){E.preventDefault();return}f.focus(d),w(E,h),y(E),(_=e.onClick)===null||_===void 0||_.call(e,E)};S.useEffect(()=>{if(d&&s.current)return m(h,s.current)},[d,h,m]);const F=g?{role:"menuitemcheckbox","aria-checked":b}:{role:"option","aria-selected":b};return{components:{root:"div",checkIcon:"span"},root:Le(wt("div",{ref:tt(t,s),"aria-disabled":r?"true":void 0,id:d,...F,...e,onClick:C}),{elementType:"div"}),checkIcon:et(e.checkIcon,{renderByDefault:!0,defaultProps:{"aria-hidden":"true",children:k},elementType:"span"}),disabled:r,multiselect:g,selected:b,focusVisible:!1,active:!1}},FL=e=>gt(e.root,{children:[e.checkIcon&&ae(e.checkIcon,{}),e.root.children]}),Lr=S.forwardRef((e,t)=>{const o=kL(e,t);return vL(o),qe("useOptionStyles_unstable")(o),FL(o)});Lr.displayName="Option";const KS=e=>{"use no memo";const{appearance:t="outline",disableAutoFocus:o,children:r,clearable:n=!1,editable:i=!1,inlinePopup:s=!1,mountNode:a=void 0,multiselect:c,onOpenChange:d,size:h="medium",activeDescendantController:f,freeform:g=!1,disabled:m=!1,onActiveOptionChange:b=null}=e,w=qS(),{getOptionsMatchingValue:y}=w,{getOptionById:k}=w,C=S.useCallback(()=>{const H=f.active();return H?k(H):void 0},[f,k]),F=C(),E=S.useCallback(H=>{let te;if(typeof H=="function"){const re=C();te=H(re)}te?f.focus(te.id):f.blur()},[f,C]),[_,P]=S.useState(!1),[D,M]=S.useState(!1),A=S.useRef(!1),O=Gp(),[K,W]=io({state:e.value,initialState:void 0}),{selectedOptions:L,selectOption:V,clearSelection:U}=US(e),$=S.useCallback((H,te)=>{gs.unstable_batchedUpdates(()=>{W(void 0),V(H,te)})},[W,V]),Y=S.useMemo(()=>{if(K!==void 0)return K;if(O&&e.defaultValue!==void 0)return e.defaultValue;const H=y(te=>L.includes(te)).map(te=>te.text);return c?i?"":H.join(", "):H[0]},[K,i,y,c,L]),[I,X]=io({state:e.open,defaultState:e.defaultOpen,initialState:!1}),j=S.useCallback((H,te)=>{m||(d?.(H,{open:te}),gs.unstable_batchedUpdates(()=>{!te&&!g&&W(void 0),X(te)}))},[d,X,W,g,m]);S.useEffect(()=>{if(I){if(!c&&L.length>0){const H=y(te=>te===L[0]).pop();H?.id&&f.focus(H.id)}}else f.blur()},[I,f]),S.useEffect(()=>{I&&!o&&!f.active()&&f.first()},[I,r,o,f,k]);const z=pe(H=>{const te=H.detail.previousId?w.getOptionById(H.detail.previousId):null,re=w.getOptionById(H.detail.id);b?.(H,{event:H,type:"change",previousOption:te,nextOption:re})});return{...w,freeform:g,disabled:m,selectOption:$,clearSelection:U,selectedOptions:L,activeOption:F,appearance:t,clearable:n,focusVisible:_,ignoreNextBlur:A,inlinePopup:s,mountNode:a,open:I,hasFocus:D,setActiveOption:E,setFocusVisible:P,setHasFocus:M,setOpen:j,setValue:W,size:h,value:Y,multiselect:c,onOptionClick:pe(H=>{c||j(H,!1)}),onActiveDescendantChange:z}};function XS(e){const{positioning:t}=e,r={position:"below",align:"start",offset:{crossAxis:0,mainAxis:2},fallbackPositions:["above","after","after-top","before","before-top"],matchTargetSize:"width",autoSize:!0,...cc(t)},{targetRef:n,containerRef:i}=Sd(r);return[i,n]}function ZS(e,t,o){const{state:{multiselect:r},triggerRef:n,defaultProps:i}=o,s=Go("fluent-listbox",Lp(e)?e.id:void 0),a=et(e,{renderByDefault:!0,elementType:Ed,defaultProps:{id:s,multiselect:r,tabIndex:void 0,...i}}),c=vs({id:s},{supportsLabelFor:!0});a&&!a["aria-label"]&&!a["aria-labelledby"]&&c["aria-labelledby"]&&(a["aria-labelledby"]=c["aria-labelledby"]);const d=pe(We(g=>{g.preventDefault()},a?.onMouseDown)),h=pe(We(g=>{var m;g.preventDefault(),(m=n.current)===null||m===void 0||m.focus()},a?.onClick)),f=tt(a?.ref,t);return a&&(a.ref=f,a.onMouseDown=d,a.onClick=h),a}function YS(e,t,o){const{state:{open:r,setOpen:n,setHasFocus:i},defaultProps:s,elementType:a,activeDescendantController:c}=o,d=Le(e,{defaultProps:{type:"text","aria-expanded":r,role:"combobox",...typeof s=="object"&&s},elementType:a}),h=S.useRef(null);return d.ref=tt(h,d.ref,t),d.onBlur=We(f=>{n(f,!1),i(!1)},d.onBlur),d.onFocus=We(f=>{f.target===f.currentTarget&&i(!0)},d.onFocus),d.onClick=We(f=>{n(f,!r)},d.onClick),d.onKeyDown=We(RL({activeDescendantController:c,...o.state}),d.onKeyDown),d}function RL(e){const{activeDescendantController:t,getOptionById:o,setOpen:r,selectOption:n,multiselect:i,open:s}=e,a=S.useCallback(()=>{const w=t.active();return w?o(w):void 0},[t,o]),c=()=>{t.first()},d=()=>{t.last()},h=w=>{w?t.next():t.first()},f=w=>{w?t.prev():t.first()},g=()=>{for(let w=0;w<10;w++)t.prev()},m=()=>{for(let w=0;w<10;w++)t.next()},b=XA();return pe(w=>{const y=dc(w,{open:s,multiselect:i}),k=a();switch(y){case"First":case"Last":case"Next":case"Previous":case"PageDown":case"PageUp":case"Open":case"Close":case"CloseSelect":case"Select":w.preventDefault();break}switch(b(!0),y){case"First":c();break;case"Last":d();break;case"Next":h(k);break;case"Previous":f(k);break;case"PageDown":m();break;case"PageUp":g();break;case"Open":r(w,!0);break;case"Close":w.stopPropagation(),r(w,!1);break;case"CloseSelect":!i&&!k?.disabled&&r(w,!1);case"Select":k&&n(w,k);break;case"Tab":!i&&k&&n(w,k);break}})}function EL(e,t,o){"use no memo";const{state:{open:r,value:n,selectOption:i,setValue:s,multiselect:a,selectedOptions:c,clearSelection:d,getOptionById:h,setOpen:f},freeform:g,defaultProps:m,activeDescendantController:b}=o,w=M=>{if(!r&&!g){const A=b.active(),O=A?h(A):null;n&&O&&n.trim().toLowerCase()===O?.text.toLowerCase()&&i(M,O),s(void 0)}},y=M=>{const A=M?.trim().toLowerCase();if(!A||A.length===0){b.blur();return}const O=W=>W.toLowerCase().indexOf(A)===0,K=b.find(W=>{const L=h(W);return!!L&&O(L.text)});if(!K){b.blur();return}return h(K)},k=M=>{const A=M.target.value;s(A);const O=y(A);!a&&c.length===1&&(A.length<1||!O)&&d(M)},C=YS(e,t,{state:o.state,defaultProps:m,elementType:"input",activeDescendantController:b});C.onChange=We(C.onChange,k),C.onBlur=We(C.onBlur,w);const[F,E]=S.useState(!1),_=S.useRef(!1),P=C.onKeyDown,D=pe(M=>{!r&&dc(M)==="Type"&&f(M,!0),M.key===ud||M.key===dd?E(!0):E(!1);const A=dc(M,{open:r,multiselect:a});if(A==="Type"?_.current=!0:(A==="Open"&&M.key!==" "||A==="Next"||A==="Previous"||A==="First"||A==="Last"||A==="PageUp"||A==="PageDown")&&(_.current=!1),(_.current||!r)&&M.key===" "){var O;e==null||(O=e.onKeyDown)===null||O===void 0||O.call(e,M);return}P?.(M)});return C.onKeyDown=D,F&&(C["aria-activedescendant"]=void 0),C}const _L=(e,t)=>{"use no memo";var o,r;e=vs(e,{supportsLabelFor:!0,supportsRequired:!0,supportsSize:!0});const{listboxRef:n,activeParentRef:i,controller:s}=pg({matchOption:H=>H.classList.contains(hc.root)}),a=KS({...e,editable:!0,activeDescendantController:s}),{clearable:c,clearSelection:d,disabled:h,multiselect:f,open:g,selectedOptions:m,setOpen:b,value:w,hasFocus:y}=a,[k,C]=XS(e),{disableAutoFocus:F=!1,freeform:E,inlinePopup:_}=e,P=Go("combobox-"),{primary:D,root:M}=pa({props:e,primarySlotTagName:"input",excludedPropNames:["children","size"]}),A=S.useRef(null),O=ZS(e.listbox,tt(k,n),{state:a,triggerRef:A,defaultProps:{children:e.children,disableAutoFocus:F}});var K;const W=EL((K=e.input)!==null&&K!==void 0?K:{},tt(A,i,t),{state:a,freeform:E,defaultProps:{type:"text",value:w??"","aria-controls":g?O?.id:void 0,...D},activeDescendantController:s}),L=Le(e.root,{defaultProps:{"aria-owns":!_&&g?O?.id:void 0,...M},elementType:"div"});L.ref=tt(L.ref,C);const V=m.length>0&&!h&&c&&!f,U={components:{root:"div",input:"input",expandIcon:"span",listbox:Ed,clearIcon:"span"},root:L,input:W,listbox:g||y?O:void 0,clearIcon:et(e.clearIcon,{defaultProps:{"aria-hidden":"true",children:S.createElement(mg,null)},elementType:"span",renderByDefault:!0}),expandIcon:et(e.expandIcon,{renderByDefault:!0,defaultProps:{"aria-disabled":h?"true":void 0,"aria-expanded":g,children:S.createElement(gg,null),role:"button"},elementType:"span"}),showClearIcon:V,activeDescendantController:s,...a},{targetDocument:$}=lt();Xu({element:$,callback:H=>b(H,!1),refs:[A,k,C],disabled:!g});const{onMouseDown:Y}=U.expandIcon||{},I=pe(We(Y,H=>{var te;H.preventDefault(),U.setOpen(H,!U.open),(te=A.current)===null||te===void 0||te.focus()}));if(U.expandIcon){U.expandIcon.onMouseDown=I;const H=U.expandIcon["aria-label"]||U.expandIcon["aria-labelledby"],te="Open";if(!H)if(e["aria-labelledby"]){var X;const re=(X=U.expandIcon.id)!==null&&X!==void 0?X:`${P}-chevron`,be=`${re} ${U.input["aria-labelledby"]}`;U.expandIcon["aria-label"]=te,U.expandIcon.id=re,U.expandIcon["aria-labelledby"]=be}else e["aria-label"]?U.expandIcon["aria-label"]=`${te} ${e["aria-label"]}`:U.expandIcon["aria-label"]=te}const j=pe(We((o=U.clearIcon)===null||o===void 0?void 0:o.onMouseDown,H=>{H.preventDefault()})),z=pe(We((r=U.clearIcon)===null||r===void 0?void 0:r.onClick,H=>{d(H)}));return U.clearIcon&&(U.clearIcon.onMouseDown=j,U.clearIcon.onClick=z),f&&(U.clearIcon=void 0),U},PL=(e,t)=>ae(e.root,{children:ae(fg,{value:t.activeDescendant,children:ae(pL,{value:t.listbox,children:gt(Lg.Provider,{value:t.combobox,children:[ae(e.input,{}),e.clearIcon&&ae(e.clearIcon,{}),e.expandIcon&&ae(e.expandIcon,{}),e.listbox&&(e.inlinePopup?ae(e.listbox,{}):ae(ms,{mountNode:e.mountNode,children:ae(e.listbox,{})}))]})})})}),fc={root:"fui-Combobox",input:"fui-Combobox__input",expandIcon:"fui-Combobox__expandIcon",clearIcon:"fui-Combobox__clearIcon",listbox:"fui-Combobox__listbox"},DL=Se({root:{Bt984gj:"f122n59",Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"ft85np5",B7ck84d:"f1ewtqcl",i8kkvl:"f14mj54c",mc9l5x:"fwk3njj",Budl1dq:"fz17x9o",Brf1p80:"f1869bpl",Bf4jedk:"f1exfvgq",qhf8xq:"f10pi13n",ha4doy:"fmrv4ls",Bbr2w1p:"f14a1fxs",Bduesf4:"f3e99gv",Bpq79vn:"fhljsf7",li1rpt:"f1gw3sf2",Bsft5z2:"f13zj6fq",E3zdtr:"f1mdlcz9",Eqx8gd:["f1a7op3","f1cjjd47"],By385i5:"f1gboi2j",B1piin3:["f1cjjd47","f1a7op3"],Dlnsje:"f145g4dw",d9w3h3:["f1kp91vd","f1ibwz09"],B3778ie:["f1ibwz09","f1kp91vd"],B1q35kw:0,Bw17bha:0,Bcgy8vk:0,Bjuhk93:"f1mnjydx",Gjdm7m:"f13evtba",b1kco5:"f1yk9hq",Ba2ppi3:"fhwpy7i",F2fol1:"f14ee0xe",lck23g:"f1xhbsuh",wi16st:"fsrmcvb",ywj3b2:"f1t3k7v9",umuwi5:"fjw5xc1",Blcqepd:"f1xdyd5c",nplu4u:"fatpbeo",Bioka5o:"fb7uyps",Bnupc0a:"fx04xgm",bing71:"f1c7in40",Bercvud:"f1ibeo51"},listbox:{E5pizo:"f1hg901r",Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"ft85np5",Bxyxcbc:"fmmk62d",B7ck84d:"f1ewtqcl"},listboxCollapsed:{mc9l5x:"fjseox"},inlineListbox:{Bj3rh1h:"f19g0ac"},small:{Bqenvij:"frvgh55",z189sj:["fdw0yi8","fk8j09s"]},medium:{Bqenvij:"f1d2rq10",z189sj:["f11gcy0p","f1ng84yb"]},large:{i8kkvl:"f1rjii52",Bqenvij:"fbhnoac",z189sj:["fw5db7e","f1uw59to"]},outline:{De3pzq:"fxugw4r",Bgfg5da:0,B9xav0g:"f1c1zstj",oivjwe:0,Bn0qgzm:0,B4g9neb:0,zhjwy3:0,wvpqe5:0,ibv6hh:0,u1mtju:0,h3c5rm:0,vrafjx:0,Bekrc4i:0,i8vvqc:0,g2u3we:0,icvyot:0,B4j52fo:0,irswps:"fhz96rm"},outlineInteractive:{Bgoe8wy:"fvcxoqz",Bwzppfd:["f1ub3y4t","f1m52nbi"],oetu4i:"f1l4zc64",gg5e9n:["f1m52nbi","f1ub3y4t"],B6oc9vd:"fvs00aa",ak43y8:["f1assf6x","f4ruux4"],wmxk5l:"f1z0osm6",B50zh58:["f4ruux4","f1assf6x"],Bvq3b66:"f1b473iu",Brahy3i:["f381qr8","ft4skwv"],zoxjo1:"f1qzcrsd",an54nd:["ft4skwv","f381qr8"]},underline:{De3pzq:"f1c21dwh",B9xav0g:0,oivjwe:0,Bn0qgzm:0,Bgfg5da:"f9ez7ne",Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"fokr779"},"filled-lighter":{De3pzq:"fxugw4r",Bgfg5da:0,B9xav0g:0,oivjwe:0,Bn0qgzm:0,B4g9neb:0,zhjwy3:0,wvpqe5:0,ibv6hh:0,u1mtju:0,h3c5rm:0,vrafjx:0,Bekrc4i:0,i8vvqc:0,g2u3we:0,icvyot:0,B4j52fo:0,irswps:"f88035w"},"filled-darker":{De3pzq:"f16xq7d1",Bgfg5da:0,B9xav0g:0,oivjwe:0,Bn0qgzm:0,B4g9neb:0,zhjwy3:0,wvpqe5:0,ibv6hh:0,u1mtju:0,h3c5rm:0,vrafjx:0,Bekrc4i:0,i8vvqc:0,g2u3we:0,icvyot:0,B4j52fo:0,irswps:"f88035w"},invalid:{tvckwq:"fs4k3qj",gk2u95:["fcee079","fmyw78r"],hhx65j:"f1fgmyf4",Bxowmz0:["fmyw78r","fcee079"]},invalidUnderline:{hhx65j:"f1fgmyf4"},disabled:{Bceei9c:"fdrzuqr",De3pzq:"f1c21dwh",g2u3we:"f1jj8ep1",h3c5rm:["f15xbau","fy0fskl"],B9xav0g:"f4ikngz",zhjwy3:["fy0fskl","f15xbau"],Bcq6wej:"f9dbb4x",Jcjdmf:["f3qs60o","f5u9ap2"],sc4o1m:"fwd1oij",Bosien3:["f5u9ap2","f3qs60o"]}},{d:[".f122n59{align-items:center;}",[".ft85np5{border-radius:var(--borderRadiusMedium);}",{p:-1}],".f1ewtqcl{box-sizing:border-box;}",".f14mj54c{column-gap:var(--spacingHorizontalXXS);}",".fwk3njj{display:inline-grid;}",".fz17x9o{grid-template-columns:1fr auto;}",".f1869bpl{justify-content:space-between;}",".f1exfvgq{min-width:250px;}",".f10pi13n{position:relative;}",".fmrv4ls{vertical-align:middle;}",".f1gw3sf2::after{box-sizing:border-box;}",'.f13zj6fq::after{content:"";}',".f1mdlcz9::after{position:absolute;}",".f1a7op3::after{left:-1px;}",".f1cjjd47::after{right:-1px;}",".f1gboi2j::after{bottom:-1px;}",".f145g4dw::after{height:max(2px, var(--borderRadiusMedium));}",".f1kp91vd::after{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1ibwz09::after{border-bottom-right-radius:var(--borderRadiusMedium);}",[".f1mnjydx::after{border-bottom:var(--strokeWidthThick) solid var(--colorCompoundBrandStroke);}",{p:-1}],".f13evtba::after{clip-path:inset(calc(100% - 2px) 0 0 0);}",".f1yk9hq::after{transform:scaleX(0);}",".fhwpy7i::after{transition-property:transform;}",".f14ee0xe::after{transition-duration:var(--durationUltraFast);}",".f1xhbsuh::after{transition-delay:var(--curveAccelerateMid);}",".f1hg901r{box-shadow:var(--shadow16);}",[".ft85np5{border-radius:var(--borderRadiusMedium);}",{p:-1}],".fmmk62d{max-height:80vh;}",".fjseox{display:none;}",".f19g0ac{z-index:1;}",".frvgh55{height:24px;}",".fdw0yi8{padding-right:var(--spacingHorizontalSNudge);}",".fk8j09s{padding-left:var(--spacingHorizontalSNudge);}",".f1d2rq10{height:32px;}",".f11gcy0p{padding-right:var(--spacingHorizontalMNudge);}",".f1ng84yb{padding-left:var(--spacingHorizontalMNudge);}",".f1rjii52{column-gap:var(--spacingHorizontalSNudge);}",".fbhnoac{height:40px;}",".fw5db7e{padding-right:var(--spacingHorizontalM);}",".f1uw59to{padding-left:var(--spacingHorizontalM);}",".fxugw4r{background-color:var(--colorNeutralBackground1);}",[".fhz96rm{border:var(--strokeWidthThin) solid var(--colorNeutralStroke1);}",{p:-2}],".f1c1zstj{border-bottom-color:var(--colorNeutralStrokeAccessible);}",".f1c21dwh{background-color:var(--colorTransparentBackground);}",[".f9ez7ne{border-bottom:var(--strokeWidthThin) solid var(--colorNeutralStrokeAccessible);}",{p:-1}],[".fokr779{border-radius:0;}",{p:-1}],[".f88035w{border:var(--strokeWidthThin) solid var(--colorTransparentStroke);}",{p:-2}],".f16xq7d1{background-color:var(--colorNeutralBackground3);}",[".f88035w{border:var(--strokeWidthThin) solid var(--colorTransparentStroke);}",{p:-2}],".fs4k3qj:not(:focus-within),.fs4k3qj:hover:not(:focus-within){border-top-color:var(--colorPaletteRedBorder2);}",".fcee079:not(:focus-within),.fcee079:hover:not(:focus-within){border-right-color:var(--colorPaletteRedBorder2);}",".fmyw78r:not(:focus-within),.fmyw78r:hover:not(:focus-within){border-left-color:var(--colorPaletteRedBorder2);}",".f1fgmyf4:not(:focus-within),.f1fgmyf4:hover:not(:focus-within){border-bottom-color:var(--colorPaletteRedBorder2);}",".fdrzuqr{cursor:not-allowed;}",".f1jj8ep1{border-top-color:var(--colorNeutralStrokeDisabled);}",".f15xbau{border-right-color:var(--colorNeutralStrokeDisabled);}",".fy0fskl{border-left-color:var(--colorNeutralStrokeDisabled);}",".f4ikngz{border-bottom-color:var(--colorNeutralStrokeDisabled);}"],w:[".f14a1fxs:focus-within{outline-width:2px;}",".f3e99gv:focus-within{outline-style:solid;}",".fhljsf7:focus-within{outline-color:transparent;}",".fjw5xc1:focus-within::after{transform:scaleX(1);}",".f1xdyd5c:focus-within::after{transition-property:transform;}",".fatpbeo:focus-within::after{transition-duration:var(--durationNormal);}",".fb7uyps:focus-within::after{transition-delay:var(--curveDecelerateMid);}",".f1ibeo51:focus-within:active::after{border-bottom-color:var(--colorCompoundBrandStrokePressed);}",".f1b473iu:focus-within{border-top-color:var(--colorNeutralStroke1Pressed);}",".f381qr8:focus-within{border-right-color:var(--colorNeutralStroke1Pressed);}",".ft4skwv:focus-within{border-left-color:var(--colorNeutralStroke1Pressed);}",".f1qzcrsd:focus-within{border-bottom-color:var(--colorNeutralStrokeAccessiblePressed);}"],m:[["@media screen and (prefers-reduced-motion: reduce){.fsrmcvb::after{transition-duration:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.f1t3k7v9::after{transition-delay:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.fx04xgm:focus-within::after{transition-duration:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.f1c7in40:focus-within::after{transition-delay:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media (forced-colors: active){.f9dbb4x{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f3qs60o{border-right-color:GrayText;}.f5u9ap2{border-left-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fwd1oij{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}]],h:[".fvcxoqz:hover{border-top-color:var(--colorNeutralStroke1Hover);}",".f1ub3y4t:hover{border-right-color:var(--colorNeutralStroke1Hover);}",".f1m52nbi:hover{border-left-color:var(--colorNeutralStroke1Hover);}",".f1l4zc64:hover{border-bottom-color:var(--colorNeutralStrokeAccessibleHover);}"],a:[".fvs00aa:active{border-top-color:var(--colorNeutralStroke1Pressed);}",".f1assf6x:active{border-right-color:var(--colorNeutralStroke1Pressed);}",".f4ruux4:active{border-left-color:var(--colorNeutralStroke1Pressed);}",".f1z0osm6:active{border-bottom-color:var(--colorNeutralStrokeAccessiblePressed);}"]}),TL=Se({input:{qb2dma:"f1ub7u0d",De3pzq:"f1c21dwh",Bgfg5da:0,B9xav0g:0,oivjwe:0,Bn0qgzm:0,B4g9neb:0,zhjwy3:0,wvpqe5:0,ibv6hh:0,u1mtju:0,h3c5rm:0,vrafjx:0,Bekrc4i:0,i8vvqc:0,g2u3we:0,icvyot:0,B4j52fo:0,irswps:"f3bhgqh",sj55zd:"f19n0e5",Bahqtrf:"fk6fouc",Brovlpu:"ftqa4ok",yvdlaj:"fwyc1cq",B3o7kgh:"f13ta7ih"},small:{Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",Bg96gwp:"fwrc4pm",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:["fxe2rs","f1gflqzi"]},medium:{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:["fzy81xo","f58b53b"]},large:{Bahqtrf:"fk6fouc",Be2twd7:"fod5ikn",Bhrd7zp:"figsok6",Bg96gwp:"faaz57k",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:["f1kdav7a","footqm6"]},disabled:{sj55zd:"f1s2aq7o",De3pzq:"f1c21dwh",Bceei9c:"fdrzuqr",yvdlaj:"fahhnxm"}},{d:[".f1ub7u0d{align-self:stretch;}",".f1c21dwh{background-color:var(--colorTransparentBackground);}",[".f3bhgqh{border:none;}",{p:-2}],".f19n0e5{color:var(--colorNeutralForeground1);}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fwyc1cq::-webkit-input-placeholder{color:var(--colorNeutralForeground4);}",".fwyc1cq::-moz-placeholder{color:var(--colorNeutralForeground4);}",".f13ta7ih::-webkit-input-placeholder{opacity:1;}",".f13ta7ih::-moz-placeholder{opacity:1;}",".fy9rknc{font-size:var(--fontSizeBase200);}",".figsok6{font-weight:var(--fontWeightRegular);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",[".fxe2rs{padding:0 0 0 calc(var(--spacingHorizontalSNudge) + var(--spacingHorizontalXXS));}",{p:-1}],[".f1gflqzi{padding:0 calc(var(--spacingHorizontalSNudge) + var(--spacingHorizontalXXS)) 0 0;}",{p:-1}],".fkhj508{font-size:var(--fontSizeBase300);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",[".fzy81xo{padding:0 0 0 calc(var(--spacingHorizontalMNudge) + var(--spacingHorizontalXXS));}",{p:-1}],[".f58b53b{padding:0 calc(var(--spacingHorizontalMNudge) + var(--spacingHorizontalXXS)) 0 0;}",{p:-1}],".fod5ikn{font-size:var(--fontSizeBase400);}",".faaz57k{line-height:var(--lineHeightBase400);}",[".f1kdav7a{padding:0 0 0 calc(var(--spacingHorizontalM) + var(--spacingHorizontalSNudge));}",{p:-1}],[".footqm6{padding:0 calc(var(--spacingHorizontalM) + var(--spacingHorizontalSNudge)) 0 0;}",{p:-1}],".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".fdrzuqr{cursor:not-allowed;}",".fahhnxm::-webkit-input-placeholder{color:var(--colorNeutralForegroundDisabled);}",".fahhnxm::-moz-placeholder{color:var(--colorNeutralForegroundDisabled);}"],f:[".ftqa4ok:focus{outline-style:none;}"]}),ML=Se({icon:{B7ck84d:"f1ewtqcl",sj55zd:"fxkbij4",Bceei9c:"f1k6fduh",mc9l5x:"ftgm304",Be2twd7:"f1pp30po",Bo70h7d:"fvc9v3g"},hidden:{mc9l5x:"fjseox"},visuallyHidden:{Bh84pgu:"f1ekcaio",Bqenvij:"f1mpe4l3",jrapky:0,Frg6f3:0,t21cq0:0,B6of3ja:0,B74szlk:"f1jlpb2r",B68tc82:0,Bmxbyg5:0,Bpg54ce:"f1a3p1vp",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1c5fvqg",a9b677:"frkrog8",qhf8xq:"f1euv43f"},small:{Be2twd7:"f4ybsrx",Frg6f3:["f1h9en5y","f1xk557c"]},medium:{Be2twd7:"fe5j1ua",Frg6f3:["f1h9en5y","f1xk557c"]},large:{Be2twd7:"f1rt2boy",Frg6f3:["f1t5qyk5","f1ikr372"]},disabled:{sj55zd:"f1s2aq7o",Bceei9c:"fdrzuqr"}},{d:[".f1ewtqcl{box-sizing:border-box;}",".fxkbij4{color:var(--colorNeutralStrokeAccessible);}",".f1k6fduh{cursor:pointer;}",".ftgm304{display:block;}",".f1pp30po{font-size:var(--fontSizeBase500);}",".fvc9v3g svg{display:block;}",".fjseox{display:none;}",".f1ekcaio{clip:rect(0px, 0px, 0px, 0px);}",".f1mpe4l3{height:1px;}",[".f1jlpb2r{margin:-1px;}",{p:-1}],[".f1a3p1vp{overflow:hidden;}",{p:-1}],[".f1c5fvqg{padding:0px;}",{p:-1}],".frkrog8{width:1px;}",".f1euv43f{position:absolute;}",".f4ybsrx{font-size:16px;}",".f1h9en5y{margin-left:var(--spacingHorizontalXXS);}",".f1xk557c{margin-right:var(--spacingHorizontalXXS);}",".fe5j1ua{font-size:20px;}",".f1rt2boy{font-size:24px;}",".f1t5qyk5{margin-left:var(--spacingHorizontalSNudge);}",".f1ikr372{margin-right:var(--spacingHorizontalSNudge);}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".fdrzuqr{cursor:not-allowed;}"]}),AL=e=>{"use no memo";const{appearance:t,open:o,size:r,showClearIcon:n}=e,i=`${e.input["aria-invalid"]}`=="true",s=e.input.disabled,a=DL(),c=ML(),d=TL();return e.root.className=de(fc.root,a.root,a[t],a[r],!s&&t==="outline"&&a.outlineInteractive,i&&t!=="underline"&&a.invalid,i&&t==="underline"&&a.invalidUnderline,s&&a.disabled,e.root.className),e.input.className=de(fc.input,d.input,d[r],s&&d.disabled,e.input.className),e.listbox&&(e.listbox.className=de(fc.listbox,a.listbox,e.inlinePopup&&a.inlineListbox,!o&&a.listboxCollapsed,e.listbox.className)),e.expandIcon&&(e.expandIcon.className=de(fc.expandIcon,c.icon,c[r],s&&c.disabled,n&&c.visuallyHidden,e.expandIcon.className)),e.clearIcon&&(e.clearIcon.className=de(fc.clearIcon,c.icon,c[r],s&&c.disabled,!n&&c.hidden,e.clearIcon.className)),e},Ma=S.forwardRef((e,t)=>{const o=_L(e,t),r=WS(o);return AL(o),qe("useComboboxStyles_unstable")(o),PL(o,r)});Ma.displayName="Combobox";function IL(e,t,o){"use no memo";const{state:{open:r,setOpen:n,getOptionById:i},defaultProps:s,activeDescendantController:a}=o,c=S.useRef(""),[d,h]=ga(),f=(w,y={startFromNext:!1})=>{const{startFromNext:k}=y,C=a.active(),F=a.find(E=>{const _=i(E);return!!_&&w(_.text)},{startFrom:k?a.next({passive:!0}):C});return F||a.find(E=>{const _=i(E);return!!_&&w(_.text)})},g=()=>{f(w=>w.toLocaleLowerCase().indexOf(c.current)===0,{startFromNext:c.current.length===1})||BL(c.current)&&f(w=>w.toLocaleLowerCase().indexOf(c.current[0])===0,{startFromNext:!0})||a.blur()},m=w=>{h(),dc(w)==="Type"&&(c.current+=w.key.toLowerCase(),d(()=>{c.current=""},500),r&&g(),!r&&n(w,!0))},b=YS(e,t,{state:o.state,defaultProps:s,elementType:"button",activeDescendantController:a});return b.onKeyDown=We(m,b.onKeyDown),b}function BL(e){for(let t=1;t<e.length;t++)if(e[t]!==e[t-1])return!1;return!0}const OL=(e,t)=>{"use no memo";var o;e=vs(e,{supportsLabelFor:!0,supportsSize:!0});const{listboxRef:r,activeParentRef:n,controller:i}=pg({matchOption:W=>W.classList.contains(hc.root)}),s=KS({...e,activeDescendantController:i,freeform:!1}),{clearable:a,clearSelection:c,disabled:d,hasFocus:h,multiselect:f,open:g,selectedOptions:m,setOpen:b}=s,{primary:w,root:y}=pa({props:e,primarySlotTagName:"button",excludedPropNames:["children"]}),[k,C]=XS(e),F=S.useRef(null),E=ZS(e.listbox,tt(k,r),{state:s,triggerRef:F,defaultProps:{children:e.children}}),{targetDocument:_}=lt();Xu({element:_,callback:W=>b(W,!1),refs:[F,k,C],disabled:!g});var P;const D=IL((P=e.button)!==null&&P!==void 0?P:{},tt(F,n,t),{state:s,defaultProps:{type:"button",tabIndex:w.disabled?void 0:0,children:s.value||e.placeholder,"aria-controls":g?E?.id:void 0,...w},activeDescendantController:i}),M=Le(e.root,{defaultProps:{"aria-owns":!e.inlinePopup&&g?E?.id:void 0,children:e.children,...y},elementType:"div"});M.ref=tt(M.ref,C);const A=m.length>0&&!d&&a&&!f,O={components:{root:"div",button:"button",clearButton:"button",expandIcon:"span",listbox:Ed},root:M,button:D,listbox:g||h?E:void 0,clearButton:et(e.clearButton,{defaultProps:{"aria-label":"Clear selection",children:S.createElement(mg,null),tabIndex:A?0:void 0,type:"button"},elementType:"button",renderByDefault:!0}),expandIcon:et(e.expandIcon,{renderByDefault:!0,defaultProps:{children:S.createElement(gg,null)},elementType:"span"}),placeholderVisible:!s.value&&!!e.placeholder,showClearButton:A,activeDescendantController:i,...s},K=pe(We((o=O.clearButton)===null||o===void 0?void 0:o.onClick,W=>{var L;c(W),(L=F.current)===null||L===void 0||L.focus()}));return O.clearButton&&(O.clearButton.onClick=K),f&&(O.clearButton=void 0),O},NL=(e,t)=>ae(e.root,{children:ae(fg,{value:t.activeDescendant,children:ae(Ta.Provider,{value:t.listbox,children:gt(Lg.Provider,{value:t.combobox,children:[gt(e.button,{children:[e.button.children,e.expandIcon&&ae(e.expandIcon,{})]}),e.clearButton&&ae(e.clearButton,{}),e.listbox&&(e.inlinePopup?ae(e.listbox,{}):ae(ms,{mountNode:e.mountNode,children:ae(e.listbox,{})}))]})})})}),pc={root:"fui-Dropdown",button:"fui-Dropdown__button",clearButton:"fui-Dropdown__clearButton",expandIcon:"fui-Dropdown__expandIcon",listbox:"fui-Dropdown__listbox"},LL=Se({root:{Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"ft85np5",B7ck84d:"f1ewtqcl",mc9l5x:"ftuwxu6",Bf4jedk:"f1exfvgq",qhf8xq:"f10pi13n",ha4doy:"fmrv4ls",Bbr2w1p:"f14a1fxs",Bduesf4:"f3e99gv",Bpq79vn:"fhljsf7",li1rpt:"f1gw3sf2",Bsft5z2:"f13zj6fq",E3zdtr:"f1mdlcz9",Eqx8gd:["f1a7op3","f1cjjd47"],By385i5:"f1gboi2j",B1piin3:["f1cjjd47","f1a7op3"],Dlnsje:"ffyw7fx",d9w3h3:["f1kp91vd","f1ibwz09"],B3778ie:["f1ibwz09","f1kp91vd"],B1q35kw:0,Bw17bha:0,Bcgy8vk:0,Bjuhk93:"f1mnjydx",Gjdm7m:"f13evtba",b1kco5:"f1yk9hq",Ba2ppi3:"fhwpy7i",F2fol1:"f14ee0xe",lck23g:"f1xhbsuh",wi16st:"fsrmcvb",ywj3b2:"f1t3k7v9",umuwi5:"fjw5xc1",Blcqepd:"f1xdyd5c",nplu4u:"fatpbeo",Bioka5o:"fb7uyps",Bnupc0a:"fx04xgm",bing71:"f1c7in40",Bercvud:"f1ibeo51",Br277j9:"f18qfb8s",Btis473:"f1m082s7"},listbox:{B7ck84d:"f1ewtqcl",E5pizo:"f1hg901r",Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"ft85np5",Bxyxcbc:"fmmk62d"},listboxCollapsed:{mc9l5x:"fjseox"},inlineListbox:{Bj3rh1h:"f19g0ac"},button:{Bt984gj:"f122n59",De3pzq:"f1c21dwh",Bgfg5da:0,B9xav0g:0,oivjwe:0,Bn0qgzm:0,B4g9neb:0,zhjwy3:0,wvpqe5:0,ibv6hh:0,u1mtju:0,h3c5rm:0,vrafjx:0,Bekrc4i:0,i8vvqc:0,g2u3we:0,icvyot:0,B4j52fo:0,irswps:"f3bhgqh",B7ck84d:"f1ewtqcl",sj55zd:"f19n0e5",i8kkvl:"f14mj54c",Bceei9c:"f1k6fduh",mc9l5x:"f13qh94s",Bahqtrf:"fk6fouc",Budl1dq:"f12nh0o2",Brf1p80:"f1869bpl",fsow6f:["f1o700av","fes3tcz"],a9b677:"fly5x3f",Brovlpu:"ftqa4ok"},placeholder:{sj55zd:"fxc4j92"},small:{Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",Bg96gwp:"fwrc4pm",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:["fye6m5k","f3cq2dl"]},medium:{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:["f14ev680","f58uxzw"]},large:{i8kkvl:"f1rjii52",Bahqtrf:"fk6fouc",Be2twd7:"fod5ikn",Bhrd7zp:"figsok6",Bg96gwp:"faaz57k",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:["f139mn7i","f1v3q0m"]},outline:{De3pzq:"fxugw4r",Bgfg5da:0,B9xav0g:"f1c1zstj",oivjwe:0,Bn0qgzm:0,B4g9neb:0,zhjwy3:0,wvpqe5:0,ibv6hh:0,u1mtju:0,h3c5rm:0,vrafjx:0,Bekrc4i:0,i8vvqc:0,g2u3we:0,icvyot:0,B4j52fo:0,irswps:"fhz96rm"},outlineInteractive:{Bgoe8wy:"fvcxoqz",Bwzppfd:["f1ub3y4t","f1m52nbi"],oetu4i:"f1l4zc64",gg5e9n:["f1m52nbi","f1ub3y4t"],B6oc9vd:"fvs00aa",ak43y8:["f1assf6x","f4ruux4"],wmxk5l:"f1z0osm6",B50zh58:["f4ruux4","f1assf6x"],Bvq3b66:"f1b473iu",Brahy3i:["f381qr8","ft4skwv"],zoxjo1:"f1qzcrsd",an54nd:["ft4skwv","f381qr8"]},underline:{De3pzq:"f1c21dwh",B9xav0g:0,oivjwe:0,Bn0qgzm:0,Bgfg5da:"f9ez7ne",Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"fokr779"},"filled-lighter":{De3pzq:"fxugw4r",Bgfg5da:0,B9xav0g:0,oivjwe:0,Bn0qgzm:0,B4g9neb:0,zhjwy3:0,wvpqe5:0,ibv6hh:0,u1mtju:0,h3c5rm:0,vrafjx:0,Bekrc4i:0,i8vvqc:0,g2u3we:0,icvyot:0,B4j52fo:0,irswps:"fs2rfia"},"filled-darker":{De3pzq:"f16xq7d1",Bgfg5da:0,B9xav0g:0,oivjwe:0,Bn0qgzm:0,B4g9neb:0,zhjwy3:0,wvpqe5:0,ibv6hh:0,u1mtju:0,h3c5rm:0,vrafjx:0,Bekrc4i:0,i8vvqc:0,g2u3we:0,icvyot:0,B4j52fo:0,irswps:"fs2rfia"},invalid:{tvckwq:"fs4k3qj",gk2u95:["fcee079","fmyw78r"],hhx65j:"f1fgmyf4",Bxowmz0:["fmyw78r","fcee079"]},invalidUnderline:{hhx65j:"f1fgmyf4"},disabled:{Bceei9c:"fdrzuqr",De3pzq:"f1c21dwh",g2u3we:"f1jj8ep1",h3c5rm:["f15xbau","fy0fskl"],B9xav0g:"f4ikngz",zhjwy3:["fy0fskl","f15xbau"],Bcq6wej:"f9dbb4x",Jcjdmf:["f3qs60o","f5u9ap2"],sc4o1m:"fwd1oij",Bosien3:["f5u9ap2","f3qs60o"]},disabledText:{sj55zd:"f1s2aq7o",Bceei9c:"fdrzuqr"},hidden:{mc9l5x:"fjseox"}},{d:[[".ft85np5{border-radius:var(--borderRadiusMedium);}",{p:-1}],".f1ewtqcl{box-sizing:border-box;}",".ftuwxu6{display:inline-flex;}",".f1exfvgq{min-width:250px;}",".f10pi13n{position:relative;}",".fmrv4ls{vertical-align:middle;}",".f1gw3sf2::after{box-sizing:border-box;}",'.f13zj6fq::after{content:"";}',".f1mdlcz9::after{position:absolute;}",".f1a7op3::after{left:-1px;}",".f1cjjd47::after{right:-1px;}",".f1gboi2j::after{bottom:-1px;}",".ffyw7fx::after{height:max(var(--strokeWidthThick), var(--borderRadiusMedium));}",".f1kp91vd::after{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1ibwz09::after{border-bottom-right-radius:var(--borderRadiusMedium);}",[".f1mnjydx::after{border-bottom:var(--strokeWidthThick) solid var(--colorCompoundBrandStroke);}",{p:-1}],".f13evtba::after{clip-path:inset(calc(100% - 2px) 0 0 0);}",".f1yk9hq::after{transform:scaleX(0);}",".fhwpy7i::after{transition-property:transform;}",".f14ee0xe::after{transition-duration:var(--durationUltraFast);}",".f1xhbsuh::after{transition-delay:var(--curveAccelerateMid);}",".f1hg901r{box-shadow:var(--shadow16);}",[".ft85np5{border-radius:var(--borderRadiusMedium);}",{p:-1}],".fmmk62d{max-height:80vh;}",".fjseox{display:none;}",".f19g0ac{z-index:1;}",".f122n59{align-items:center;}",".f1c21dwh{background-color:var(--colorTransparentBackground);}",[".f3bhgqh{border:none;}",{p:-2}],".f19n0e5{color:var(--colorNeutralForeground1);}",".f14mj54c{column-gap:var(--spacingHorizontalXXS);}",".f1k6fduh{cursor:pointer;}",".f13qh94s{display:grid;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".f12nh0o2{grid-template-columns:[content] 1fr [icon] auto [end];}",".f1869bpl{justify-content:space-between;}",".f1o700av{text-align:left;}",".fes3tcz{text-align:right;}",".fly5x3f{width:100%;}",".fxc4j92{color:var(--colorNeutralForeground4);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".figsok6{font-weight:var(--fontWeightRegular);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",[".fye6m5k{padding:3px var(--spacingHorizontalSNudge) 3px calc(var(--spacingHorizontalSNudge) + var(--spacingHorizontalXXS));}",{p:-1}],[".f3cq2dl{padding:3px calc(var(--spacingHorizontalSNudge) + var(--spacingHorizontalXXS)) 3px var(--spacingHorizontalSNudge);}",{p:-1}],".fkhj508{font-size:var(--fontSizeBase300);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",[".f14ev680{padding:5px var(--spacingHorizontalMNudge) 5px calc(var(--spacingHorizontalMNudge) + var(--spacingHorizontalXXS));}",{p:-1}],[".f58uxzw{padding:5px calc(var(--spacingHorizontalMNudge) + var(--spacingHorizontalXXS)) 5px var(--spacingHorizontalMNudge);}",{p:-1}],".f1rjii52{column-gap:var(--spacingHorizontalSNudge);}",".fod5ikn{font-size:var(--fontSizeBase400);}",".faaz57k{line-height:var(--lineHeightBase400);}",[".f139mn7i{padding:7px var(--spacingHorizontalM) 7px calc(var(--spacingHorizontalM) + var(--spacingHorizontalSNudge));}",{p:-1}],[".f1v3q0m{padding:7px calc(var(--spacingHorizontalM) + var(--spacingHorizontalSNudge)) 7px var(--spacingHorizontalM);}",{p:-1}],".fxugw4r{background-color:var(--colorNeutralBackground1);}",[".fhz96rm{border:var(--strokeWidthThin) solid var(--colorNeutralStroke1);}",{p:-2}],".f1c1zstj{border-bottom-color:var(--colorNeutralStrokeAccessible);}",[".f9ez7ne{border-bottom:var(--strokeWidthThin) solid var(--colorNeutralStrokeAccessible);}",{p:-1}],[".fokr779{border-radius:0;}",{p:-1}],[".fs2rfia{border:var(--strokeWidthThin) solid transparent;}",{p:-2}],".f16xq7d1{background-color:var(--colorNeutralBackground3);}",[".fs2rfia{border:var(--strokeWidthThin) solid transparent;}",{p:-2}],".fs4k3qj:not(:focus-within),.fs4k3qj:hover:not(:focus-within){border-top-color:var(--colorPaletteRedBorder2);}",".fcee079:not(:focus-within),.fcee079:hover:not(:focus-within){border-right-color:var(--colorPaletteRedBorder2);}",".fmyw78r:not(:focus-within),.fmyw78r:hover:not(:focus-within){border-left-color:var(--colorPaletteRedBorder2);}",".f1fgmyf4:not(:focus-within),.f1fgmyf4:hover:not(:focus-within){border-bottom-color:var(--colorPaletteRedBorder2);}",".fdrzuqr{cursor:not-allowed;}",".f1jj8ep1{border-top-color:var(--colorNeutralStrokeDisabled);}",".f15xbau{border-right-color:var(--colorNeutralStrokeDisabled);}",".fy0fskl{border-left-color:var(--colorNeutralStrokeDisabled);}",".f4ikngz{border-bottom-color:var(--colorNeutralStrokeDisabled);}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}"],w:[".f14a1fxs:focus-within{outline-width:2px;}",".f3e99gv:focus-within{outline-style:solid;}",".fhljsf7:focus-within{outline-color:transparent;}",".fjw5xc1:focus-within::after{transform:scaleX(1);}",".f1xdyd5c:focus-within::after{transition-property:transform;}",".fatpbeo:focus-within::after{transition-duration:var(--durationNormal);}",".fb7uyps:focus-within::after{transition-delay:var(--curveDecelerateMid);}",".f1ibeo51:focus-within:active::after{border-bottom-color:var(--colorCompoundBrandStrokePressed);}",".f1b473iu:focus-within{border-top-color:var(--colorNeutralStroke1Pressed);}",".f381qr8:focus-within{border-right-color:var(--colorNeutralStroke1Pressed);}",".ft4skwv:focus-within{border-left-color:var(--colorNeutralStroke1Pressed);}",".f1qzcrsd:focus-within{border-bottom-color:var(--colorNeutralStrokeAccessiblePressed);}"],m:[["@media screen and (prefers-reduced-motion: reduce){.fsrmcvb::after{transition-duration:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.f1t3k7v9::after{transition-delay:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.fx04xgm:focus-within::after{transition-duration:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.f1c7in40:focus-within::after{transition-delay:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media (forced-colors: active){.f9dbb4x{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f3qs60o{border-right-color:GrayText;}.f5u9ap2{border-left-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fwd1oij{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}]],t:["@supports selector(:has(*)){.f18qfb8s:has(.fui-Dropdown__clearButton:focus)::after{border-bottom-color:initial;}}","@supports selector(:has(*)){.f1m082s7:has(.fui-Dropdown__clearButton:focus)::after{transform:scaleX(0);}}"],f:[".ftqa4ok:focus{outline-style:none;}"],h:[".fvcxoqz:hover{border-top-color:var(--colorNeutralStroke1Hover);}",".f1ub3y4t:hover{border-right-color:var(--colorNeutralStroke1Hover);}",".f1m52nbi:hover{border-left-color:var(--colorNeutralStroke1Hover);}",".f1l4zc64:hover{border-bottom-color:var(--colorNeutralStrokeAccessibleHover);}"],a:[".fvs00aa:active{border-top-color:var(--colorNeutralStroke1Pressed);}",".f1assf6x:active{border-right-color:var(--colorNeutralStroke1Pressed);}",".f4ruux4:active{border-left-color:var(--colorNeutralStroke1Pressed);}",".f1z0osm6:active{border-bottom-color:var(--colorNeutralStrokeAccessiblePressed);}"]}),zL=Se({icon:{B7ck84d:"f1ewtqcl",sj55zd:"fxkbij4",mc9l5x:"ftgm304",Be2twd7:"f1pp30po",Br312pm:"f12w6cgp",Bw0ie65:"f8bv1bt",Bo70h7d:"fvc9v3g"},small:{Be2twd7:"f4ybsrx",Frg6f3:["f1h9en5y","f1xk557c"]},medium:{Be2twd7:"fe5j1ua",Frg6f3:["f1h9en5y","f1xk557c"]},large:{Be2twd7:"f1rt2boy",Frg6f3:["f1t5qyk5","f1ikr372"]},disabled:{sj55zd:"f1s2aq7o"}},{d:[".f1ewtqcl{box-sizing:border-box;}",".fxkbij4{color:var(--colorNeutralStrokeAccessible);}",".ftgm304{display:block;}",".f1pp30po{font-size:var(--fontSizeBase500);}",".f12w6cgp{grid-column-start:icon;}",".f8bv1bt{grid-column-end:end;}",".fvc9v3g svg{display:block;}",".f4ybsrx{font-size:16px;}",".f1h9en5y{margin-left:var(--spacingHorizontalXXS);}",".f1xk557c{margin-right:var(--spacingHorizontalXXS);}",".fe5j1ua{font-size:20px;}",".f1rt2boy{font-size:24px;}",".f1t5qyk5{margin-left:var(--spacingHorizontalSNudge);}",".f1ikr372{margin-right:var(--spacingHorizontalSNudge);}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}"]}),HL=je("rticfuj","r1vp6jef",{r:[".rticfuj{align-self:center;background-color:var(--colorTransparentBackground);border:none;cursor:pointer;height:fit-content;margin:0;margin-right:var(--spacingHorizontalMNudge);padding:0;position:relative;}",".rticfuj:focus{outline-style:none;}",".rticfuj:focus-visible{outline-style:none;}",".rticfuj[data-fui-focus-visible]{border-top-color:transparent;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent;}",'.rticfuj[data-fui-focus-visible]::after{content:"";position:absolute;pointer-events:none;z-index:1;border:2px solid var(--colorStrokeFocus2);border-radius:var(--borderRadiusMedium);top:calc(2px * -1);right:calc(2px * -1);bottom:calc(2px * -1);left:calc(2px * -1);}',".r1vp6jef{align-self:center;background-color:var(--colorTransparentBackground);border:none;cursor:pointer;height:fit-content;margin:0;margin-left:var(--spacingHorizontalMNudge);padding:0;position:relative;}",".r1vp6jef:focus{outline-style:none;}",".r1vp6jef:focus-visible{outline-style:none;}",".r1vp6jef[data-fui-focus-visible]{border-top-color:transparent;border-left-color:transparent;border-bottom-color:transparent;border-right-color:transparent;}",'.r1vp6jef[data-fui-focus-visible]::after{content:"";position:absolute;pointer-events:none;z-index:1;border:2px solid var(--colorStrokeFocus2);border-radius:var(--borderRadiusMedium);top:calc(2px * -1);left:calc(2px * -1);bottom:calc(2px * -1);right:calc(2px * -1);}'],s:["@media (forced-colors: active){.rticfuj[data-fui-focus-visible]::after{border-top-color:Highlight;border-right-color:Highlight;border-bottom-color:Highlight;border-left-color:Highlight;}}","@media (forced-colors: active){.r1vp6jef[data-fui-focus-visible]::after{border-top-color:Highlight;border-left-color:Highlight;border-bottom-color:Highlight;border-right-color:Highlight;}}"]}),VL=e=>{"use no memo";const{appearance:t,open:o,placeholderVisible:r,showClearButton:n,size:i}=e,s=`${e.button["aria-invalid"]}`=="true",a=e.button.disabled,c=LL(),d=zL(),h=HL();return e.root.className=de(pc.root,c.root,c[t],!a&&t==="outline"&&c.outlineInteractive,s&&t!=="underline"&&c.invalid,s&&t==="underline"&&c.invalidUnderline,a&&c.disabled,e.root.className),e.button.className=de(pc.button,c.button,c[i],r&&c.placeholder,a&&c.disabledText,e.button.className),e.listbox&&(e.listbox.className=de(pc.listbox,c.listbox,e.inlinePopup&&c.inlineListbox,!o&&c.listboxCollapsed,e.listbox.className)),e.expandIcon&&(e.expandIcon.className=de(pc.expandIcon,d.icon,d[i],a&&d.disabled,n&&c.hidden,e.expandIcon.className)),e.clearButton&&(e.clearButton.className=de(pc.clearButton,h,d.icon,d[i],a&&d.disabled,!n&&c.hidden,e.clearButton.className)),e},QS=S.forwardRef((e,t)=>{const o=OL(e,t),r=WS(o);return VL(o),qe("useDropdownStyles_unstable")(o),NL(o,r)});QS.displayName="Dropdown";function GL(e,t){return t===""?!0:e.toLowerCase().includes(t.toLowerCase())}function JS(e){return typeof e=="string"?e:e.value}function jL(e,t,o){const{filter:r=GL,noOptionsMessage:n="We couldn't find any matches.",optionToReactKey:i=JS,optionToText:s=JS,renderOption:a=d=>typeof d=="string"?S.createElement(Lr,{key:d},d):S.createElement(Lr,{...d,key:i(d),text:s(d),value:d.value},d.children)}=o,c=S.useMemo(()=>{const d=e.trim();return t.filter(h=>r(s(h),d))},[t,s,r,e]);return c.length===0?[S.createElement(Lr,{"aria-disabled":"true",key:"no-results",text:""},n)]:c.map(d=>a(d))}const e1=(e,t)=>{e=vs(e,{supportsLabelFor:!0,supportsRequired:!0,supportsSize:!0});const o=zp();var r;const{size:n="medium",appearance:i=(r=o.inputDefaultAppearance)!==null&&r!==void 0?r:"outline",onChange:s}=e,[a,c]=io({state:e.value,defaultState:e.defaultValue,initialState:""}),d=pa({props:e,primarySlotTagName:"input",excludedPropNames:["size","onChange","value","defaultValue"]}),h={size:n,appearance:i,components:{root:"span",input:"input",contentBefore:"span",contentAfter:"span"},input:Le(e.input,{defaultProps:{type:"text",ref:t,...d.primary},elementType:"input"}),contentAfter:et(e.contentAfter,{elementType:"span"}),contentBefore:et(e.contentBefore,{elementType:"span"}),root:Le(e.root,{defaultProps:d.root,elementType:"span"})};return h.input.value=a,h.input.onChange=pe(f=>{const g=f.target.value;s?.(f,{value:g}),c(g)}),h},WL=e=>gt(e.root,{children:[e.contentBefore&&ae(e.contentBefore,{}),ae(e.input,{}),e.contentAfter&&ae(e.contentAfter,{})]}),_d={root:"fui-Input",input:"fui-Input__input",contentBefore:"fui-Input__contentBefore",contentAfter:"fui-Input__contentAfter"},qL=je("r1oeeo9n","r9sxh5",{r:[".r1oeeo9n{display:inline-flex;align-items:center;flex-wrap:nowrap;gap:var(--spacingHorizontalXXS);border-radius:var(--borderRadiusMedium);position:relative;box-sizing:border-box;vertical-align:middle;min-height:32px;font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase300);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase300);background-color:var(--colorNeutralBackground1);border:1px solid var(--colorNeutralStroke1);border-bottom-color:var(--colorNeutralStrokeAccessible);}",'.r1oeeo9n::after{box-sizing:border-box;content:"";position:absolute;left:-1px;bottom:-1px;right:-1px;height:max(2px, var(--borderRadiusMedium));border-bottom-left-radius:var(--borderRadiusMedium);border-bottom-right-radius:var(--borderRadiusMedium);border-bottom:2px solid var(--colorCompoundBrandStroke);clip-path:inset(calc(100% - 2px) 0 0 0);transform:scaleX(0);transition-property:transform;transition-duration:var(--durationUltraFast);transition-delay:var(--curveAccelerateMid);}',".r1oeeo9n:focus-within::after{transform:scaleX(1);transition-property:transform;transition-duration:var(--durationNormal);transition-delay:var(--curveDecelerateMid);}",".r1oeeo9n:focus-within:active::after{border-bottom-color:var(--colorCompoundBrandStrokePressed);}",".r1oeeo9n:focus-within{outline:2px solid transparent;}",".r9sxh5{display:inline-flex;align-items:center;flex-wrap:nowrap;gap:var(--spacingHorizontalXXS);border-radius:var(--borderRadiusMedium);position:relative;box-sizing:border-box;vertical-align:middle;min-height:32px;font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase300);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase300);background-color:var(--colorNeutralBackground1);border:1px solid var(--colorNeutralStroke1);border-bottom-color:var(--colorNeutralStrokeAccessible);}",'.r9sxh5::after{box-sizing:border-box;content:"";position:absolute;right:-1px;bottom:-1px;left:-1px;height:max(2px, var(--borderRadiusMedium));border-bottom-right-radius:var(--borderRadiusMedium);border-bottom-left-radius:var(--borderRadiusMedium);border-bottom:2px solid var(--colorCompoundBrandStroke);clip-path:inset(calc(100% - 2px) 0 0 0);transform:scaleX(0);transition-property:transform;transition-duration:var(--durationUltraFast);transition-delay:var(--curveAccelerateMid);}',".r9sxh5:focus-within::after{transform:scaleX(1);transition-property:transform;transition-duration:var(--durationNormal);transition-delay:var(--curveDecelerateMid);}",".r9sxh5:focus-within:active::after{border-bottom-color:var(--colorCompoundBrandStrokePressed);}",".r9sxh5:focus-within{outline:2px solid transparent;}"],s:["@media screen and (prefers-reduced-motion: reduce){.r1oeeo9n::after{transition-duration:0.01ms;transition-delay:0.01ms;}}","@media screen and (prefers-reduced-motion: reduce){.r1oeeo9n:focus-within::after{transition-duration:0.01ms;transition-delay:0.01ms;}}","@media screen and (prefers-reduced-motion: reduce){.r9sxh5::after{transition-duration:0.01ms;transition-delay:0.01ms;}}","@media screen and (prefers-reduced-motion: reduce){.r9sxh5:focus-within::after{transition-duration:0.01ms;transition-delay:0.01ms;}}"]}),UL=Se({small:{sshi5w:"f1pha7fy",Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",Bg96gwp:"fwrc4pm"},medium:{},large:{sshi5w:"f1w5jphr",Bahqtrf:"fk6fouc",Be2twd7:"fod5ikn",Bhrd7zp:"figsok6",Bg96gwp:"faaz57k",i8kkvl:0,Belr9w4:0,rmohyg:"f1eyhf9v"},outline:{},outlineInteractive:{Bgoe8wy:"fvcxoqz",Bwzppfd:["f1ub3y4t","f1m52nbi"],oetu4i:"f1l4zc64",gg5e9n:["f1m52nbi","f1ub3y4t"],Drbcw7:"f8vnjqi",udz0bu:["fz1etlk","f1hc16gm"],Be8ivqh:"f1klwx88",ofdepl:["f1hc16gm","fz1etlk"]},underline:{De3pzq:"f1c21dwh",Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"fokr779",icvyot:"f1ern45e",vrafjx:["f1n71otn","f1deefiw"],wvpqe5:["f1deefiw","f1n71otn"],Eqx8gd:["f1n6gb5g","f15yvnhg"],B1piin3:["f15yvnhg","f1n6gb5g"]},underlineInteractive:{oetu4i:"f1l4zc64",Be8ivqh:"f1klwx88",d9w3h3:0,B3778ie:0,B4j8arr:0,Bl18szs:0,Blrzh8d:"f2ale1x"},filled:{g2u3we:"fghlq4f",h3c5rm:["f1gn591s","fjscplz"],B9xav0g:"fb073pr",zhjwy3:["fjscplz","f1gn591s"]},filledInteractive:{q7v0qe:"ftmjh5b",kmh5ft:["f17blpuu","fsrcdbj"],nagaa4:"f1tpwn32",B1yhkcb:["fsrcdbj","f17blpuu"]},invalid:{tvckwq:"fs4k3qj",gk2u95:["fcee079","fmyw78r"],hhx65j:"f1fgmyf4",Bxowmz0:["fmyw78r","fcee079"]},"filled-darker":{De3pzq:"f16xq7d1"},"filled-lighter":{De3pzq:"fxugw4r"},"filled-darker-shadow":{De3pzq:"f16xq7d1",E5pizo:"fyed02w"},"filled-lighter-shadow":{De3pzq:"fxugw4r",E5pizo:"fyed02w"},disabled:{Bceei9c:"fdrzuqr",De3pzq:"f1c21dwh",g2u3we:"f1jj8ep1",h3c5rm:["f15xbau","fy0fskl"],B9xav0g:"f4ikngz",zhjwy3:["fy0fskl","f15xbau"],Bcq6wej:"f9dbb4x",Jcjdmf:["f3qs60o","f5u9ap2"],sc4o1m:"fwd1oij",Bosien3:["f5u9ap2","f3qs60o"],Bsft5z2:"fhr9occ",Bduesf4:"f99w1ws"},smallWithContentBefore:{uwmqm3:["fk8j09s","fdw0yi8"]},smallWithContentAfter:{z189sj:["fdw0yi8","fk8j09s"]},mediumWithContentBefore:{uwmqm3:["f1ng84yb","f11gcy0p"]},mediumWithContentAfter:{z189sj:["f11gcy0p","f1ng84yb"]},largeWithContentBefore:{uwmqm3:["f1uw59to","fw5db7e"]},largeWithContentAfter:{z189sj:["fw5db7e","f1uw59to"]}},{d:[".f1pha7fy{min-height:24px;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".figsok6{font-weight:var(--fontWeightRegular);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".f1w5jphr{min-height:40px;}",".fod5ikn{font-size:var(--fontSizeBase400);}",".faaz57k{line-height:var(--lineHeightBase400);}",[".f1eyhf9v{gap:var(--spacingHorizontalSNudge);}",{p:-1}],".f1c21dwh{background-color:var(--colorTransparentBackground);}",[".fokr779{border-radius:0;}",{p:-1}],".f1ern45e{border-top-style:none;}",".f1n71otn{border-right-style:none;}",".f1deefiw{border-left-style:none;}",".f1n6gb5g::after{left:0;}",".f15yvnhg::after{right:0;}",[".f2ale1x::after{border-radius:0;}",{p:-1}],".fghlq4f{border-top-color:var(--colorTransparentStroke);}",".f1gn591s{border-right-color:var(--colorTransparentStroke);}",".fjscplz{border-left-color:var(--colorTransparentStroke);}",".fb073pr{border-bottom-color:var(--colorTransparentStroke);}",".fs4k3qj:not(:focus-within),.fs4k3qj:hover:not(:focus-within){border-top-color:var(--colorPaletteRedBorder2);}",".fcee079:not(:focus-within),.fcee079:hover:not(:focus-within){border-right-color:var(--colorPaletteRedBorder2);}",".fmyw78r:not(:focus-within),.fmyw78r:hover:not(:focus-within){border-left-color:var(--colorPaletteRedBorder2);}",".f1fgmyf4:not(:focus-within),.f1fgmyf4:hover:not(:focus-within){border-bottom-color:var(--colorPaletteRedBorder2);}",".f16xq7d1{background-color:var(--colorNeutralBackground3);}",".fxugw4r{background-color:var(--colorNeutralBackground1);}",".fyed02w{box-shadow:var(--shadow2);}",".fdrzuqr{cursor:not-allowed;}",".f1jj8ep1{border-top-color:var(--colorNeutralStrokeDisabled);}",".f15xbau{border-right-color:var(--colorNeutralStrokeDisabled);}",".fy0fskl{border-left-color:var(--colorNeutralStrokeDisabled);}",".f4ikngz{border-bottom-color:var(--colorNeutralStrokeDisabled);}",".fhr9occ::after{content:unset;}",".fk8j09s{padding-left:var(--spacingHorizontalSNudge);}",".fdw0yi8{padding-right:var(--spacingHorizontalSNudge);}",".f1ng84yb{padding-left:var(--spacingHorizontalMNudge);}",".f11gcy0p{padding-right:var(--spacingHorizontalMNudge);}",".f1uw59to{padding-left:var(--spacingHorizontalM);}",".fw5db7e{padding-right:var(--spacingHorizontalM);}"],h:[".fvcxoqz:hover{border-top-color:var(--colorNeutralStroke1Hover);}",".f1ub3y4t:hover{border-right-color:var(--colorNeutralStroke1Hover);}",".f1m52nbi:hover{border-left-color:var(--colorNeutralStroke1Hover);}",".f1l4zc64:hover{border-bottom-color:var(--colorNeutralStrokeAccessibleHover);}",".ftmjh5b:hover,.ftmjh5b:focus-within{border-top-color:var(--colorTransparentStrokeInteractive);}",".f17blpuu:hover,.f17blpuu:focus-within{border-right-color:var(--colorTransparentStrokeInteractive);}",".fsrcdbj:hover,.fsrcdbj:focus-within{border-left-color:var(--colorTransparentStrokeInteractive);}",".f1tpwn32:hover,.f1tpwn32:focus-within{border-bottom-color:var(--colorTransparentStrokeInteractive);}"],a:[".f8vnjqi:active,.f8vnjqi:focus-within{border-top-color:var(--colorNeutralStroke1Pressed);}",".fz1etlk:active,.fz1etlk:focus-within{border-right-color:var(--colorNeutralStroke1Pressed);}",".f1hc16gm:active,.f1hc16gm:focus-within{border-left-color:var(--colorNeutralStroke1Pressed);}",".f1klwx88:active,.f1klwx88:focus-within{border-bottom-color:var(--colorNeutralStrokeAccessiblePressed);}"],m:[["@media (forced-colors: active){.f9dbb4x{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f3qs60o{border-right-color:GrayText;}.f5u9ap2{border-left-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fwd1oij{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}]],w:[".f99w1ws:focus-within{outline-style:none;}"]}),$L=je("r12stul0",null,[".r12stul0{align-self:stretch;box-sizing:border-box;flex-grow:1;min-width:0;border-style:none;padding:0 var(--spacingHorizontalM);color:var(--colorNeutralForeground1);background-color:transparent;outline-style:none;font-family:inherit;font-size:inherit;font-weight:inherit;line-height:inherit;}",".r12stul0::-webkit-input-placeholder{color:var(--colorNeutralForeground4);opacity:1;}",".r12stul0::-moz-placeholder{color:var(--colorNeutralForeground4);opacity:1;}",".r12stul0::placeholder{color:var(--colorNeutralForeground4);opacity:1;}"]),KL=Se({small:{uwmqm3:["f1f5gg8d","f1vdfbxk"],z189sj:["f1vdfbxk","f1f5gg8d"]},medium:{},large:{uwmqm3:["fnphzt9","flt1dlf"],z189sj:["flt1dlf","fnphzt9"]},smallWithContentBefore:{uwmqm3:["fgiv446","ffczdla"]},smallWithContentAfter:{z189sj:["ffczdla","fgiv446"]},mediumWithContentBefore:{uwmqm3:["fgiv446","ffczdla"]},mediumWithContentAfter:{z189sj:["ffczdla","fgiv446"]},largeWithContentBefore:{uwmqm3:["fk8j09s","fdw0yi8"]},largeWithContentAfter:{z189sj:["fdw0yi8","fk8j09s"]},disabled:{sj55zd:"f1s2aq7o",De3pzq:"f1c21dwh",Bceei9c:"fdrzuqr",yvdlaj:"fahhnxm"}},{d:[".f1f5gg8d{padding-left:var(--spacingHorizontalS);}",".f1vdfbxk{padding-right:var(--spacingHorizontalS);}",".fnphzt9{padding-left:calc(var(--spacingHorizontalM) + var(--spacingHorizontalSNudge));}",".flt1dlf{padding-right:calc(var(--spacingHorizontalM) + var(--spacingHorizontalSNudge));}",".fgiv446{padding-left:var(--spacingHorizontalXXS);}",".ffczdla{padding-right:var(--spacingHorizontalXXS);}",".fk8j09s{padding-left:var(--spacingHorizontalSNudge);}",".fdw0yi8{padding-right:var(--spacingHorizontalSNudge);}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".f1c21dwh{background-color:var(--colorTransparentBackground);}",".fdrzuqr{cursor:not-allowed;}",".fahhnxm::-webkit-input-placeholder{color:var(--colorNeutralForegroundDisabled);}",".fahhnxm::-moz-placeholder{color:var(--colorNeutralForegroundDisabled);}"]}),XL=je("r1572tok",null,[".r1572tok{box-sizing:border-box;color:var(--colorNeutralForeground3);display:flex;}",".r1572tok>svg{font-size:20px;}"]),ZL=Se({disabled:{sj55zd:"f1s2aq7o"},small:{Duoase:"f3qv9w"},medium:{},large:{Duoase:"f16u2scb"}},{d:[".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".f3qv9w>svg{font-size:16px;}",".f16u2scb>svg{font-size:24px;}"]}),t1=e=>{"use no memo";const{size:t,appearance:o}=e,r=e.input.disabled,n=`${e.input["aria-invalid"]}`=="true",i=o.startsWith("filled"),s=UL(),a=KL(),c=ZL();e.root.className=de(_d.root,qL(),s[t],e.contentBefore&&s[`${t}WithContentBefore`],e.contentAfter&&s[`${t}WithContentAfter`],s[o],!r&&o==="outline"&&s.outlineInteractive,!r&&o==="underline"&&s.underlineInteractive,!r&&i&&s.filledInteractive,i&&s.filled,!r&&n&&s.invalid,r&&s.disabled,e.root.className),e.input.className=de(_d.input,$L(),a[t],e.contentBefore&&a[`${t}WithContentBefore`],e.contentAfter&&a[`${t}WithContentAfter`],r&&a.disabled,e.input.className);const d=[XL(),r&&c.disabled,c[t]];return e.contentBefore&&(e.contentBefore.className=de(_d.contentBefore,...d,e.contentBefore.className)),e.contentAfter&&(e.contentAfter.className=de(_d.contentAfter,...d,e.contentAfter.className)),e},Pd=S.forwardRef((e,t)=>{const o=e1(e,t);return t1(o),qe("useInputStyles_unstable")(o),WL(o)});Pd.displayName="Input";const zg=Si(void 0),YL={open:!1,setOpen:()=>!1,checkedValues:{},onCheckedValueChange:()=>null,isSubmenu:!1,triggerRef:{current:null},menuPopoverRef:{current:null},mountNode:null,triggerId:"",openOnContext:!1,openOnHover:!1,hasIcons:!1,hasCheckmarks:!1,inline:!1,persistOnItemClick:!1},QL=zg.Provider,Ct=e=>hs(zg,(t=YL)=>e(t)),o1=S.createContext(void 0),JL=!1,ez=o1.Provider,tz=()=>{var e;return(e=S.useContext(o1))!==null&&e!==void 0?e:JL},Hg=Si(void 0),oz={checkedValues:{},setFocusByFirstCharacter:()=>null,toggleCheckbox:()=>null,selectRadio:()=>null,hasIcons:!1,hasCheckmarks:!1},rz=Hg.Provider,Vg=e=>hs(Hg,(t=oz)=>e(t)),gc="fuimenuenter",nz=e=>{const{refs:t,callback:o,element:r,disabled:n}=e,i=pe(s=>{const a=t[0],c=s.target;var d;!ma((d=a.current)!==null&&d!==void 0?d:null,c)&&!n&&o(s)});S.useEffect(()=>{if(r!=null)return n||r.addEventListener(gc,i),()=>{r.removeEventListener(gc,i)}},[i,r,n])},iz=(e,t)=>{e.dispatchEvent(new CustomEvent(gc,{bubbles:!0,detail:{nativeEvent:t}}))};function Gg(){const e=Ct(o=>o.isSubmenu),t=ic(Hg);return e||t}const r1=e=>{"use no memo";const{targetDocument:t}=lt();return Ct(r=>r.triggerRef),Ct(r=>r.inline),S.useRef(null)},jg="fuimenusafezonetimeout",sz=e=>{const t=S.useRef(null);return S.useCallback(o=>{var r;(r=t.current)===null||r===void 0||r.removeEventListener(jg,e),o?.addEventListener(jg,e),t.current=o},[e])},az=Se({root:{a9b677:"fjw5fx7",Bqenvij:"fd461yt",Bcdw1i0:"fd7fpy0",Bnnss6s:"fi64zpg"},rootChecked:{Bcdw1i0:"f1022m68",Bnnss6s:"fi64zpg"}},{d:[".fjw5fx7{width:16px;}",".fd461yt{height:16px;}",".fd7fpy0{visibility:hidden;}",".fi64zpg{flex-shrink:0;}",".f1022m68{visibility:visible;}"]}),lz=e=>{"use no memo";const t=az();e.checkmark&&(e.checkmark.className=de(t.root,e.checked&&t.rootChecked,e.checkmark.className))},ki={root:"fui-MenuItem",icon:"fui-MenuItem__icon",checkmark:"fui-MenuItem__checkmark",submenuIndicator:"fui-MenuItem__submenuIndicator",content:"fui-MenuItem__content",secondaryContent:"fui-MenuItem__secondaryContent",subText:"fui-MenuItem__subText"},cz=je("rfoezjv","r8lt3v0",{r:[".rfoezjv{border-radius:var(--borderRadiusMedium);position:relative;color:var(--colorNeutralForeground2);background-color:var(--colorNeutralBackground1);padding-right:var(--spacingVerticalSNudge);padding-left:var(--spacingVerticalSNudge);padding-top:var(--spacingVerticalSNudge);padding-bottom:var(--spacingVerticalSNudge);box-sizing:border-box;max-width:290px;min-height:32px;flex-shrink:0;display:flex;align-items:start;font-size:var(--fontSizeBase300);cursor:pointer;gap:4px;-webkit-user-select:none;-moz-user-select:none;user-select:none;}",".rfoezjv:hover{background-color:var(--colorNeutralBackground1Hover);color:var(--colorNeutralForeground2Hover);}",".rfoezjv:hover .fui-Icon-filled{display:inline;}",".rfoezjv:hover .fui-Icon-regular{display:none;}",".rfoezjv:hover .fui-MenuItem__icon{color:var(--colorNeutralForeground2BrandSelected);}",".rfoezjv:hover .fui-MenuItem__subText{color:var(--colorNeutralForeground3Hover);}",".rfoezjv:hover:active{background-color:var(--colorNeutralBackground1Pressed);color:var(--colorNeutralForeground2Pressed);}",".rfoezjv:hover:active .fui-MenuItem__subText{color:var(--colorNeutralForeground3Pressed);}",".rfoezjv:focus{outline-style:none;}",".rfoezjv:focus-visible{outline-style:none;}",".rfoezjv[data-fui-focus-visible]{border-top-color:transparent;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent;}",'.rfoezjv[data-fui-focus-visible]::after{content:"";position:absolute;pointer-events:none;z-index:1;border:2px solid var(--colorStrokeFocus2);border-radius:var(--borderRadiusMedium);top:calc(2px * -1);right:calc(2px * -1);bottom:calc(2px * -1);left:calc(2px * -1);}',".r8lt3v0{border-radius:var(--borderRadiusMedium);position:relative;color:var(--colorNeutralForeground2);background-color:var(--colorNeutralBackground1);padding-left:var(--spacingVerticalSNudge);padding-right:var(--spacingVerticalSNudge);padding-top:var(--spacingVerticalSNudge);padding-bottom:var(--spacingVerticalSNudge);box-sizing:border-box;max-width:290px;min-height:32px;flex-shrink:0;display:flex;align-items:start;font-size:var(--fontSizeBase300);cursor:pointer;gap:4px;-webkit-user-select:none;-moz-user-select:none;user-select:none;}",".r8lt3v0:hover{background-color:var(--colorNeutralBackground1Hover);color:var(--colorNeutralForeground2Hover);}",".r8lt3v0:hover .fui-Icon-filled{display:inline;}",".r8lt3v0:hover .fui-Icon-regular{display:none;}",".r8lt3v0:hover .fui-MenuItem__icon{color:var(--colorNeutralForeground2BrandSelected);}",".r8lt3v0:hover .fui-MenuItem__subText{color:var(--colorNeutralForeground3Hover);}",".r8lt3v0:hover:active{background-color:var(--colorNeutralBackground1Pressed);color:var(--colorNeutralForeground2Pressed);}",".r8lt3v0:hover:active .fui-MenuItem__subText{color:var(--colorNeutralForeground3Pressed);}",".r8lt3v0:focus{outline-style:none;}",".r8lt3v0:focus-visible{outline-style:none;}",".r8lt3v0[data-fui-focus-visible]{border-top-color:transparent;border-left-color:transparent;border-bottom-color:transparent;border-right-color:transparent;}",'.r8lt3v0[data-fui-focus-visible]::after{content:"";position:absolute;pointer-events:none;z-index:1;border:2px solid var(--colorStrokeFocus2);border-radius:var(--borderRadiusMedium);top:calc(2px * -1);left:calc(2px * -1);bottom:calc(2px * -1);right:calc(2px * -1);}'],s:['@media (forced-colors: active){.rfoezjv:hover{background-color:Canvas;border-color:Highlight;color:Highlight;}.rfoezjv:focus{outline-style:none;}.rfoezjv:focus-visible{outline-style:none;}.rfoezjv[data-fui-focus-visible]{border-top-color:transparent;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent;}@media (forced-colors: active){.rfoezjv[data-fui-focus-visible]::after{border-top-color:Highlight;border-right-color:Highlight;border-bottom-color:Highlight;border-left-color:Highlight;}}.rfoezjv[data-fui-focus-visible]::after{content:"";position:absolute;pointer-events:none;z-index:1;border:2px solid Highlight;border-radius:var(--borderRadiusMedium);top:calc(2px * -1);right:calc(2px * -1);bottom:calc(2px * -1);left:calc(2px * -1);}}',"@media (forced-colors: active){.rfoezjv[data-fui-focus-visible]::after{border-top-color:Highlight;border-right-color:Highlight;border-bottom-color:Highlight;border-left-color:Highlight;}}",'@media (forced-colors: active){.r8lt3v0:hover{background-color:Canvas;border-color:Highlight;color:Highlight;}.r8lt3v0:focus{outline-style:none;}.r8lt3v0:focus-visible{outline-style:none;}.r8lt3v0[data-fui-focus-visible]{border-top-color:transparent;border-left-color:transparent;border-bottom-color:transparent;border-right-color:transparent;}@media (forced-colors: active){.r8lt3v0[data-fui-focus-visible]::after{border-top-color:Highlight;border-left-color:Highlight;border-bottom-color:Highlight;border-right-color:Highlight;}}.r8lt3v0[data-fui-focus-visible]::after{content:"";position:absolute;pointer-events:none;z-index:1;border:2px solid Highlight;border-radius:var(--borderRadiusMedium);top:calc(2px * -1);left:calc(2px * -1);bottom:calc(2px * -1);right:calc(2px * -1);}}',"@media (forced-colors: active){.r8lt3v0[data-fui-focus-visible]::after{border-top-color:Highlight;border-left-color:Highlight;border-bottom-color:Highlight;border-right-color:Highlight;}}"]}),uz=je("r1ls86vo","rpbc5dr",[".r1ls86vo{padding-left:2px;padding-right:2px;background-color:transparent;flex-grow:1;}",".rpbc5dr{padding-right:2px;padding-left:2px;background-color:transparent;flex-grow:1;}"]),dz=je("r12mwwux","r1ewgu5j",[".r12mwwux{padding-left:2px;padding-right:2px;font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase200);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase300);color:var(--colorNeutralForeground3);}",".r12mwwux:hover{color:var(--colorNeutralForeground3Hover);}",".r12mwwux:focus{color:var(--colorNeutralForeground3Hover);}",".r1ewgu5j{padding-right:2px;padding-left:2px;font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase200);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase300);color:var(--colorNeutralForeground3);}",".r1ewgu5j:hover{color:var(--colorNeutralForeground3Hover);}",".r1ewgu5j:focus{color:var(--colorNeutralForeground3Hover);}"]),hz=je("ro9koqv",null,[".ro9koqv{width:20px;height:20px;font-size:20px;line-height:0;align-items:center;display:inline-flex;justify-content:center;flex-shrink:0;}"]),fz=je("r9c34qo",null,[".r9c34qo{width:20px;height:20px;font-size:20px;line-height:0;align-items:center;display:inline-flex;justify-content:center;}"]),pz=je("rk2ppru",null,[".rk2ppru{font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase100);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase100);color:var(--colorNeutralForeground3);}"]),gz=Se({checkmark:{B6of3ja:"fmnzpld"},splitItemMain:{Bh6795r:"fqerorx"},splitItemTrigger:{Btl43ni:["f1ozlkrg","f10ostut"],Beyfa6y:["f1deotkl","f1krrbdw"],uwmqm3:["f1cnd47f","fhxju0i"],Ftih45:"f1wl9k8s",Ccq8qp:"f1yn80uh",Baz25je:"f68mna0",cmx5o7:"f1p5zmk"},disabled:{sj55zd:"f1s2aq7o",Bi91k9c:"fvgxktp",Jwef8y:"f1ijtazh",eoavqd:"fphbwmw",Bk3fhr4:"f19vpps7",Bmfj8id:"fv5swzo",Bg7n49j:"f1q1x1ba",c7f7en:"ff3wrqt",B2d53fq:"fcvwxyo",iro3zm:"f1to34ca",Bumww26:"fszh5vc",t0hwav:"ft33916",B7iucu3:"f1cyfu5x",Bahaeuw:"fa9u7a5",Bbkh6qg:"f1wzezsb",B3ejlan:"f1egomlm",B41git9:"f1wf2001",Boq1n10:"fied5gk",Dcq74g:"f1efp33f",rxnm8d:"f1m2zpi7",wxluhh:"fei14nx",idgcvv:"f12hmwa5",j9xr24:"f1hzwxd0"}},{d:[".fmnzpld{margin-top:2px;}",".fqerorx{flex-grow:1;}",".f1ozlkrg{border-top-left-radius:0;}",".f10ostut{border-top-right-radius:0;}",".f1deotkl{border-bottom-left-radius:0;}",".f1krrbdw{border-bottom-right-radius:0;}",".f1cnd47f{padding-left:0;}",".fhxju0i{padding-right:0;}",'.f1wl9k8s::before{content:"";}',".f1yn80uh::before{width:var(--strokeWidthThin);}",".f68mna0::before{height:24px;}",".f1p5zmk::before{background-color:var(--colorNeutralStroke1);}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}"],h:[".fvgxktp:hover{color:var(--colorNeutralForegroundDisabled);}",".f1ijtazh:hover{background-color:var(--colorNeutralBackground1);}",".fphbwmw:hover{cursor:not-allowed;}",".f19vpps7:hover .fui-Icon-filled{display:none;}",".fv5swzo:hover .fui-Icon-regular{display:inline;}",".f1q1x1ba:hover .fui-MenuItem__icon{color:var(--colorNeutralForegroundDisabled);}",".ff3wrqt:hover .fui-MenuItem__subText{color:var(--colorNeutralForegroundDisabled);}",".fcvwxyo:hover:active{color:var(--colorNeutralForegroundDisabled);}",".f1to34ca:hover:active{background-color:var(--colorNeutralBackground1);}",".fszh5vc:hover:active .fui-MenuItem__subText{color:var(--colorNeutralForegroundDisabled);}"],f:[".ft33916:focus{color:var(--colorNeutralForegroundDisabled);}"],m:[["@media (forced-colors: active){.f1cyfu5x{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fa9u7a5:hover{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1wzezsb:hover{background-color:Canvas;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1egomlm:hover .fui-MenuItem__icon{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1wf2001:hover .fui-MenuItem__icon{background-color:Canvas;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fied5gk:hover .fui-MenuItem__subText{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1efp33f:hover:active{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1m2zpi7:hover:active{background-color:Canvas;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fei14nx:hover:active .fui-MenuItem__subText{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f12hmwa5:focus{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1hzwxd0:focus{background-color:Canvas;}}",{m:"(forced-colors: active)"}]]}),mz=Se({disabled:{sj55zd:"f1s2aq7o",B7iucu3:"f1cyfu5x"}},{d:[".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}"],m:[["@media (forced-colors: active){.f1cyfu5x{color:GrayText;}}",{m:"(forced-colors: active)"}]]}),vz=Se({content:{mc9l5x:"f22iagw",Beiy3e4:"f1vx9l62"},secondaryContent:{qb2dma:"f7nlbp4"},submenuIndicator:{qb2dma:"f7nlbp4"}},{d:[".f22iagw{display:flex;}",".f1vx9l62{flex-direction:column;}",".f7nlbp4{align-self:center;}"]}),bz=e=>{"use no memo";const t=gz(),o=cz(),r=uz(),n=dz(),i=hz(),s=fz(),a=vz(),c=pz(),d=mz(),h=!!e.subText;return e.root.className=de(ki.root,o,e.disabled&&t.disabled,e.root.className),e.content&&(e.content.className=de(ki.content,r,e.content.className,h&&a.content)),e.checkmark&&(e.checkmark.className=de(ki.checkmark,t.checkmark,e.checkmark.className)),e.secondaryContent&&(e.secondaryContent.className=de(ki.secondaryContent,n,e.disabled&&t.disabled,e.secondaryContent.className,h&&a.secondaryContent)),e.icon&&(e.icon.className=de(ki.icon,i,e.icon.className)),e.submenuIndicator&&(e.submenuIndicator.className=de(ki.submenuIndicator,s,e.submenuIndicator.className,h&&a.submenuIndicator)),e.subText&&(e.subText.className=de(ki.subText,e.disabled&&d.disabled,e.subText.className,c)),lz(e),e},wz=["after","after-bottom","before-top","before","before-bottom","above"],Cz=e=>{const t=Gg(),{hoverDelay:o=500,inline:r=!1,hasCheckmarks:n=!1,hasIcons:i=!1,closeOnScroll:s=!1,openOnContext:a=!1,persistOnItemClick:c=!1,openOnHover:d=t,defaultCheckedValues:h,mountNode:f=null,safeZone:g}=e,{targetDocument:m}=lt(),b=Go("menu"),[w,y]=kS(),k={position:t?"after":"below",align:t?"top":"start",target:e.openOnContext?w:void 0,fallbackPositions:t?wz:void 0,...cc(e.positioning)},C=S.Children.toArray(e.children);let F,E;C.length===2?(F=C[0],E=C[1]):C.length===1&&(E=C[0]);const{targetRef:_,containerRef:P}=Sd(k),D=g&&d,M=S.useRef({isInside:!1,mouseCoordinates:{x:0,y:0}}),A=qN({disabled:!D,timeout:typeof g=="object"?g.timeout:300,onSafeZoneEnter:$=>{L($,{open:!0,keyboard:!1,type:"menuSafeZoneMouseEnter",event:$}),M.current.isInside=!0},onSafeZoneLeave:()=>{M.current.isInside=!1},onSafeZoneMove:$=>{M.current.mouseCoordinates={x:$.clientX,y:$.clientY}},onSafeZoneTimeout:()=>{const $=new CustomEvent(jg);if(L($,{open:!1,keyboard:!1,type:"menuSafeZoneTimeout",event:$}),M.current.isInside&&m){const I=m.elementsFromPoint(M.current.mouseCoordinates.x,M.current.mouseCoordinates.y).find(X=>X.classList.contains(ki.root));I?.dispatchEvent($)}}}),O=tt(_,A.targetRef),K=tt(P,A.containerRef),[W,L]=Sz({hoverDelay:o,isSubmenu:t,setContextTarget:y,closeOnScroll:s,menuPopoverRef:K,triggerRef:O,open:e.open,defaultOpen:e.defaultOpen,onOpenChange:e.onOpenChange,openOnContext:a}),[V,U]=yz({checkedValues:e.checkedValues,defaultCheckedValues:h,onCheckedValueChange:e.onCheckedValueChange});return{inline:r,hoverDelay:o,triggerId:b,isSubmenu:t,openOnHover:d,contextTarget:w,setContextTarget:y,hasCheckmarks:n,hasIcons:i,closeOnScroll:s,menuTrigger:F,menuPopover:E,mountNode:f,triggerRef:O,menuPopoverRef:K,components:{},openOnContext:a,open:W,setOpen:L,checkedValues:V,onCheckedValueChange:U,persistOnItemClick:c,safeZone:A.elementToRender}},yz=e=>{const[t,o]=io({state:e.checkedValues,defaultState:e.defaultCheckedValues,initialState:{}}),r=pe((n,{name:i,checkedItems:s})=>{var a;(a=e.onCheckedValueChange)===null||a===void 0||a.call(e,n,{name:i,checkedItems:s}),o(c=>({...c,[i]:s}))});return[t,r]},Sz=e=>{"use no memo";const{targetDocument:t}=lt(),o=Ct(w=>w.setOpen),r=pe((w,y)=>{var k;return(k=e.onOpenChange)===null||k===void 0?void 0:k.call(e,w,y)}),n=S.useRef(!1),[i,s]=io({state:e.open,defaultState:e.defaultOpen,initialState:!1}),a=pe((w,y)=>{const k=w instanceof CustomEvent&&w.type===gc?w.detail.nativeEvent:w;r?.(k,{...y}),y.open&&w.type==="contextmenu"&&e.setContextTarget(w),y.open||e.setContextTarget(void 0),y.bubble&&o(w,{...y}),s(y.open)}),[c,d]=ga(),h=pe((w,y)=>{if(d(),!(w instanceof Event)&&w.persist&&w.persist(),!y.ignoreHoverDelay&&(w.type==="mouseleave"||w.type==="mouseover"||w.type==="mousemove"||w.type===gc)){var C;!((C=e.triggerRef.current)===null||C===void 0)&&C.contains(w.target)&&(n.current=w.type==="mouseover"||w.type==="mousemove"),c(()=>a(w,y),e.hoverDelay)}else a(w,y)});Xu({contains:ma,disabled:!i,element:t,refs:[e.menuPopoverRef,!e.openOnContext&&e.triggerRef].filter(Boolean),callback:w=>h(w,{open:!1,type:"clickOutside",event:w})});const f=e.openOnContext||e.closeOnScroll;d0({contains:ma,element:t,callback:w=>h(w,{open:!1,type:"scrollOutside",event:w}),refs:[e.menuPopoverRef,!e.openOnContext&&e.triggerRef].filter(Boolean),disabled:!i||!f}),nz({element:t,callback:w=>{n.current||h(w,{open:!1,type:"menuMouseEnter",event:w})},disabled:!i,refs:[e.menuPopoverRef]});const{findFirstFocusable:g}=wa(),m=S.useCallback(()=>{const w=g(e.menuPopoverRef.current);w?.focus()},[g,e.menuPopoverRef]),b=Gp();return S.useEffect(()=>{if(i)m();else if(!b&&t?.activeElement===t?.body){var w;(w=e.triggerRef.current)===null||w===void 0||w.focus()}},[e.triggerRef,e.isSubmenu,i,m,t,e.menuPopoverRef]),[i,h]};function xz(e){const{checkedValues:t,hasCheckmarks:o,hasIcons:r,inline:n,isSubmenu:i,menuPopoverRef:s,mountNode:a,onCheckedValueChange:c,open:d,openOnContext:h,openOnHover:f,persistOnItemClick:g,safeZone:m,setOpen:b,triggerId:w,triggerRef:y}=e;return{menu:{checkedValues:t,hasCheckmarks:o,hasIcons:r,inline:n,isSubmenu:i,menuPopoverRef:s,mountNode:a,onCheckedValueChange:c,open:d,openOnContext:h,openOnHover:f,persistOnItemClick:g,safeZone:m,setOpen:b,triggerId:w,triggerRef:y}}}const kz=(e,t)=>S.createElement(QL,{value:t.menu},e.menuTrigger,e.open&&e.menuPopover),n1=e=>{const t=Cz(e),o=xz(t);return kz(t,o)};n1.displayName="Menu";const Fz=(e,t)=>{"use no memo";const o=Vg(n=>n.setFocusByFirstCharacter),{onKeyDown:r}=e.root;return e.root.onKeyDown=n=>{var i;r?.(n),!(((i=n.key)===null||i===void 0?void 0:i.length)>1)&&t.current&&o?.(n,t.current)},e},i1=S.createContext(void 0),s1={setMultiline:()=>null};i1.Provider;const a1=()=>{var e;return(e=S.useContext(i1))!==null&&e!==void 0?e:s1},l1=()=>a1()!==s1,Rz=Iy(DB,TB),Ez=Iy(_B,PB),_z=(e,t)=>{const o=tz(),r=Ct(C=>C.persistOnItemClick),{as:n="div",disabled:i=!1,hasSubmenu:s=o,persistOnClick:a=r,content:c,...d}=e,{hasIcons:h,hasCheckmarks:f}=Dz({hasSubmenu:s}),g=Ct(C=>C.setOpen);Pz({multiline:!!e.subText,hasSubmenu:s});const{dir:m}=lt(),b=S.useRef(null),w=S.useRef(!1),y=r1(Tz(e.role)),k={hasSubmenu:s,disabled:i,persistOnClick:a,components:{root:"div",icon:"span",checkmark:"span",submenuIndicator:"span",content:"span",secondaryContent:"span",subText:"span"},root:Le(wt(n,Sa(n,{role:"menuitem",...d,disabled:!1,disabledFocusable:i,ref:tt(t,b,y),onKeyDown:pe(C=>{var F;(F=e.onKeyDown)===null||F===void 0||F.call(e,C),!C.isDefaultPrevented()&&(C.key===sn||C.key===fs)&&(w.current=!0)}),onMouseMove:pe(C=>{var F;if(C.currentTarget.ownerDocument.activeElement!==C.currentTarget){var E;(E=b.current)===null||E===void 0||E.focus()}(F=e.onMouseMove)===null||F===void 0||F.call(e,C)}),onClick:pe(C=>{var F;!s&&!a&&(g(C,{open:!1,keyboard:w.current,bubble:!0,type:"menuItemClick",event:C}),w.current=!1),(F=e.onClick)===null||F===void 0||F.call(e,C)})})),{elementType:"div"}),icon:et(e.icon,{renderByDefault:h,elementType:"span"}),checkmark:et(e.checkmark,{renderByDefault:f,elementType:"span"}),submenuIndicator:et(e.submenuIndicator,{renderByDefault:s,defaultProps:{children:m==="ltr"?S.createElement(Rz,null):S.createElement(Ez,null)},elementType:"span"}),content:et(e.content,{renderByDefault:!!e.children,defaultProps:{children:e.children},elementType:"span"}),secondaryContent:et(e.secondaryContent,{elementType:"span"}),subText:et(e.subText,{elementType:"span"})};return Fz(k,b),k},Pz=e=>{const{hasSubmenu:t,multiline:o}=e,r=l1()&&t,{setMultiline:n}=a1();Zt(()=>{r||n(o)},[n,o,r])},Dz=e=>{const{hasSubmenu:t}=e,o=Vg(i=>i.hasIcons),r=Vg(i=>i.hasCheckmarks),n=l1()&&t;return{hasIcons:o&&!n,hasCheckmarks:r&&!n}},Tz=e=>{switch(e){case"menuitemcheckbox":return"MenuItemCheckbox";case"menuitemradio":return"MenuItemRadio"}return"MenuItem"},Mz=e=>gt(e.root,{children:[e.checkmark&&ae(e.checkmark,{}),e.icon&&ae(e.icon,{}),e.content&>(e.content,{children:[e.content.children,e.subText&&ae(e.subText,{})]}),e.secondaryContent&&ae(e.secondaryContent,{}),e.submenuIndicator&&ae(e.submenuIndicator,{})]}),Wg=S.forwardRef((e,t)=>{const o=_z(e,t);return bz(o),qe("useMenuItemStyles_unstable")(o),Mz(o)});Wg.displayName="MenuItem";const Az=(e,t)=>{const{findAllFocusable:o}=wa(),{targetDocument:r}=lt(),n=Iz(),i=ic(zg),s=id({circular:!0});Bz(e,n,i)&&console.warn("You are using both MenuList and Menu props, we recommend you to use Menu props when available");const a=S.useRef(null),c=r1();S.useEffect(()=>{const k=a.current;if(i&&r&&k){const C=F=>{const E=F.detail.next;E&&k.contains(r.activeElement)&&!k.contains(E)&&F.preventDefault()};return r.addEventListener($p,C),()=>{r.removeEventListener($p,C)}}},[a,r,i]);const d=S.useCallback((k,C)=>{const F=["menuitem","menuitemcheckbox","menuitemradio"];if(!a.current)return;const E=o(a.current,O=>O.hasAttribute("role")&&F.indexOf(O.getAttribute("role"))!==-1);let _=E.indexOf(C)+1;_===E.length&&(_=0);const P=E.map(O=>{var K;return(K=O.textContent)===null||K===void 0?void 0:K.charAt(0).toLowerCase()}),D=k.key.toLowerCase(),M=(O,K)=>{for(let W=O;W<P.length;W++)if(D===P[W])return W;return-1};let A=M(_);A===-1&&(A=M(0)),A>-1&&E[A].focus()},[o]);var h;const[f,g]=io({state:(h=e.checkedValues)!==null&&h!==void 0?h:i?n.checkedValues:void 0,defaultState:e.defaultCheckedValues,initialState:{}});var m;const b=(m=e.onCheckedValueChange)!==null&&m!==void 0?m:i?n.onCheckedValueChange:void 0,w=pe((k,C,F,E)=>{const P=[...f?.[C]||[]];E?P.splice(P.indexOf(F),1):P.push(F),b?.(k,{name:C,checkedItems:P}),g(D=>({...D,[C]:P}))}),y=pe((k,C,F)=>{const E=[F];g(_=>({..._,[C]:E})),b?.(k,{name:C,checkedItems:E})});return{components:{root:"div"},root:Le(wt("div",{ref:tt(t,a,c),role:"menu","aria-labelledby":n.triggerId,...s,...e}),{elementType:"div"}),hasIcons:n.hasIcons||!1,hasCheckmarks:n.hasCheckmarks||!1,checkedValues:f,hasMenuContext:i,setFocusByFirstCharacter:d,selectRadio:y,toggleCheckbox:w}},Iz=()=>{const e=Ct(i=>i.checkedValues),t=Ct(i=>i.onCheckedValueChange),o=Ct(i=>i.triggerId),r=Ct(i=>i.hasIcons),n=Ct(i=>i.hasCheckmarks);return{checkedValues:e,onCheckedValueChange:t,triggerId:o,hasIcons:r,hasCheckmarks:n}},Bz=(e,t,o)=>{let r=!1;for(const n in t)e[n]&&(r=!0);return o&&r},Oz=(e,t)=>ae(rz,{value:t.menuList,children:ae(e.root,{})});function Nz(e){const{checkedValues:t,hasCheckmarks:o,hasIcons:r,selectRadio:n,setFocusByFirstCharacter:i,toggleCheckbox:s}=e;return{menuList:{checkedValues:t,hasCheckmarks:o,hasIcons:r,selectRadio:n,setFocusByFirstCharacter:i,toggleCheckbox:s}}}const Lz={root:"fui-MenuList"},zz=Se({root:{mc9l5x:"f22iagw",Beiy3e4:"f1vx9l62",i8kkvl:0,Belr9w4:0,rmohyg:"f1t6b6ee"},hasMenuContext:{Bqenvij:"f1l02sjl"}},{d:[".f22iagw{display:flex;}",".f1vx9l62{flex-direction:column;}",[".f1t6b6ee{gap:2px;}",{p:-1}],".f1l02sjl{height:100%;}"]}),Hz=e=>{"use no memo";const t=zz();return e.root.className=de(Lz.root,t.root,e.hasMenuContext&&t.hasMenuContext,e.root.className),e},c1=S.forwardRef((e,t)=>{const o=Az(e,t),r=Nz(o);return Hz(o),qe("useMenuListStyles_unstable")(o),Oz(o,r)});c1.displayName="MenuList";const Vz=(e,t)=>{"use no memo";const o=Ct(P=>P.safeZone),r=Ct(P=>P.menuPopoverRef),n=Ct(P=>P.setOpen),i=Ct(P=>P.open),s=Ct(P=>P.openOnHover),a=Ct(P=>P.triggerRef),c=Gg(),d=S.useRef(!0),h=$A(),[f,g]=ga(),{dir:m}=lt(),b=m==="ltr"?ud:dd,w=S.useCallback(P=>{P&&P.addEventListener("mouseover",D=>{d.current&&(d.current=!1,iz(r.current,D),f(()=>{d.current=!0},250))})},[r,f]);S.useEffect(()=>()=>g(),[g]);var y;const k=(y=Ct(P=>P.inline))!==null&&y!==void 0?y:!1,C=Ct(P=>P.mountNode),F=Le(wt("div",{role:"presentation",...h,...e,ref:tt(t,r,w)}),{elementType:"div"}),{onMouseEnter:E,onKeyDown:_}=F;return F.onMouseEnter=pe(P=>{(s||c)&&n(P,{open:!0,keyboard:!1,type:"menuPopoverMouseEnter",event:P}),E?.(P)}),F.onKeyDown=pe(P=>{const D=P.key;if(D===ya||c&&D===b){var M;i&&(!((M=r.current)===null||M===void 0)&&M.contains(P.target))&&!P.isDefaultPrevented()&&(n(P,{open:!1,keyboard:!0,type:"menuPopoverKeyDown",event:P}),P.preventDefault())}if(D===ky&&(n(P,{open:!1,keyboard:!0,type:"menuPopoverKeyDown",event:P}),!c)){var A;(A=a.current)===null||A===void 0||A.focus()}_?.(P)}),{inline:k,mountNode:C,safeZone:o,components:{root:"div"},root:F}},Gz={root:"fui-MenuPopover"},jz=Se({root:{Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"ft85np5",De3pzq:"fxugw4r",sj55zd:"f19n0e5",B7ck84d:"f1ewtqcl",Bf4jedk:"fl8fusi",B2u0y6b:"f1kaai3v",B68tc82:"f1p9o1ba",a9b677:"f1ahpp82",E5pizo:"f1hg901r",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"fd3pd8h",Bgfg5da:0,B9xav0g:0,oivjwe:0,Bn0qgzm:0,B4g9neb:0,zhjwy3:0,wvpqe5:0,ibv6hh:0,u1mtju:0,h3c5rm:0,vrafjx:0,Bekrc4i:0,i8vvqc:0,g2u3we:0,icvyot:0,B4j52fo:0,irswps:"f9ggezi",Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi",B93otf3:"f18k4bn6",vin17d:"fo1kyvf",Ezkn3b:"fetxo7e",nyiy2g:"f8x1vz1",swvrvq:"f8g0anz",Bkovbt3:"fezwn9i",hgjdhn:"fz5efge",fsy9dk:"f1ydixl4",B3ogreh:"f8dgqj5",jv49x5:"fnyfnr8",Bk7o48c:"fgw77r4",Bv12yb3:"f1noc5he",i09l9u:"f1k46bua",Bcrj8ia:"f1lhuzxm",Bmmhre5:"f1f9qikc"}},{d:[[".ft85np5{border-radius:var(--borderRadiusMedium);}",{p:-1}],".fxugw4r{background-color:var(--colorNeutralBackground1);}",".f19n0e5{color:var(--colorNeutralForeground1);}",".f1ewtqcl{box-sizing:border-box;}",".fl8fusi{min-width:138px;}",".f1kaai3v{max-width:300px;}",".f1p9o1ba{overflow-x:hidden;}",".f1ahpp82{width:max-content;}",".f1hg901r{box-shadow:var(--shadow16);}",[".fd3pd8h{padding:4px;}",{p:-1}],[".f9ggezi{border:1px solid var(--colorTransparentStroke);}",{p:-2}],".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".figsok6{font-weight:var(--fontWeightRegular);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".f18k4bn6{animation-composition:accumulate;}",".fo1kyvf{animation-duration:var(--durationSlower);}",".fetxo7e{animation-timing-function:var(--curveDecelerateMid);}",".f8x1vz1{--fui-positioning-slide-distance-x:0px;}",".f8g0anz{--fui-positioning-slide-distance-y:10px;}",".fezwn9i[data-popper-placement^=right]{--fui-positioning-slide-distance-x:-10px;}",".fz5efge[data-popper-placement^=right]{--fui-positioning-slide-distance-y:0px;}",".f1ydixl4[data-popper-placement^=bottom]{--fui-positioning-slide-distance-x:0px;}",".f8dgqj5[data-popper-placement^=bottom]{--fui-positioning-slide-distance-y:-10px;}",".fnyfnr8[data-popper-placement^=left]{--fui-positioning-slide-distance-x:10px;}",".fgw77r4[data-popper-placement^=left]{--fui-positioning-slide-distance-y:0px;}",".f1noc5he{animation-name:f1m0q9mo,f79suad;}"],k:["@keyframes f1m0q9mo{from{opacity:-1;}to{opacity:0;}}","@keyframes f79suad{from{transform:translate(var(--fui-positioning-slide-distance-x), var(--fui-positioning-slide-distance-y));}}"],m:[["@media (prefers-reduced-motion){.f1k46bua[data-popper-placement]{animation-duration:1ms;}}",{m:"(prefers-reduced-motion)"}],["@media (prefers-reduced-motion){.f1lhuzxm[data-popper-placement]{animation-name:f1m0q9mo;}}",{m:"(prefers-reduced-motion)"}]],t:["@supports not (animation-composition: accumulate){.f1f9qikc[data-popper-placement]{animation-name:f1m0q9mo;}}"]}),Wz=e=>{"use no memo";const t=jz();return e.root.className=de(Gz.root,t.root,e.root.className),e},qz=e=>e.inline?gt(S.Fragment,{children:[ae(e.root,{}),e.safeZone]}):gt(ms,{mountNode:e.mountNode,children:[ae(e.root,{}),e.safeZone]}),u1=S.forwardRef((e,t)=>{const o=Vz(e,t);return Wz(o),qe("useMenuPopoverStyles_unstable")(o),qz(o)});u1.displayName="MenuPopover";function Uz(){}const $z=e=>{const{children:t,disableButtonEnhancement:o=!1}=e,r=Ct(V=>V.triggerRef),n=Ct(V=>V.menuPopoverRef),i=Ct(V=>V.setOpen),s=Ct(V=>V.open),a=Ct(V=>V.triggerId),c=Ct(V=>V.openOnHover),d=Ct(V=>V.openOnContext),h=Gg(),{findFirstFocusable:f}=wa(),g=S.useCallback(()=>{const V=f(n.current);V?.focus()},[f,n]),m=S.useRef(!1),b=S.useRef(!1),w=S.useRef(!1),{dir:y}=lt(),k=y==="ltr"?dd:ud,C=ec(t),F=sz(pe(()=>{h&&(b.current=!0)})),E=V=>{Aa(V)||V.isDefaultPrevented()||d&&(V.preventDefault(),i(V,{open:!0,keyboard:!1,type:"menuTriggerContextMenu",event:V}))},_=V=>{Aa(V)||d||(i(V,{open:!s,keyboard:m.current,type:"menuTriggerClick",event:V}),m.current=!1)},P=V=>{if(Aa(V)||V.isDefaultPrevented())return;const U=V.key;!d&&(h&&U===k||!h&&U===cd)&&i(V,{open:!0,keyboard:!0,type:"menuTriggerKeyDown",event:V}),U===ya&&!h&&i(V,{open:!1,keyboard:!0,type:"menuTriggerKeyDown",event:V}),s&&U===k&&h&&g()},D=V=>{Aa(V)||c&&(w.current?i(V,{open:!0,keyboard:!1,type:"menuTriggerMouseEnter",event:V}):b.current&&(i(V,{open:!0,keyboard:!1,ignoreHoverDelay:!0,type:"menuTriggerMouseEnter",event:V}),b.current=!1))},M=V=>{Aa(V)||c&&!w.current&&(i(V,{open:!0,keyboard:!1,type:"menuTriggerMouseMove",event:V}),w.current=!0)},A=V=>{Aa(V)||c&&i(V,{open:!1,keyboard:!1,type:"menuTriggerMouseLeave",event:V})};var O;const K={id:a,...C?.props,ref:tt(r,Jl(C),F),onMouseEnter:pe((O=C?.props.onMouseEnter)!==null&&O!==void 0?O:Uz),onMouseLeave:pe(We(C?.props.onMouseLeave,A)),onContextMenu:pe(We(C?.props.onContextMenu,E)),onMouseMove:pe(We(C?.props.onMouseMove,M)),onMouseOver:pe(We(C?.props.onMouseOver,D))},W={"aria-haspopup":"menu","aria-expanded":!s&&!h?void 0:s,...K,onClick:pe(We(C?.props.onClick,_)),onKeyDown:pe(We(C?.props.onKeyDown,P))},L=Sa(C?.type==="button"||C?.type==="a"?C.type:"div",W);return{isSubmenu:h,children:Zu(t,d?K:o?W:L)}},Aa=e=>{const t=o=>o.hasAttribute("disabled")||o.hasAttribute("aria-disabled")&&o.getAttribute("aria-disabled")==="true";return vi(e.target)&&t(e.target)?!0:vi(e.currentTarget)&&t(e.currentTarget)},Kz=e=>S.createElement(ez,{value:e.isSubmenu},e.children),qg=e=>{const t=$z(e);return Kz(t)};qg.displayName="MenuTrigger",qg.isFluentTriggerComponent=!0;const Xz=(e,t)=>{e=vs(e,{supportsLabelFor:!0,supportsRequired:!0});const{checked:o,defaultChecked:r,disabled:n,labelPosition:i="after",size:s="medium",onChange:a,required:c}=e,d=pa({props:e,primarySlotTagName:"input",excludedPropNames:["checked","defaultChecked","onChange","size"]}),h=Go("switch-",d.primary.id),f=Le(e.root,{defaultProps:{ref:ey(),...d.root},elementType:"div"}),g=Le(e.indicator,{defaultProps:{"aria-hidden":!0,children:S.createElement(Dy,null)},elementType:"div"}),m=Le(e.input,{defaultProps:{checked:o,defaultChecked:r,id:h,ref:t,role:"switch",type:"checkbox",...d.primary},elementType:"input"});m.onChange=We(m.onChange,w=>a?.(w,{checked:w.currentTarget.checked}));const b=et(e.label,{defaultProps:{disabled:n,htmlFor:h,required:c,size:"medium"},elementType:Nr});return{labelPosition:i,components:{root:"div",indicator:"div",input:"input",label:Nr},root:f,indicator:g,input:m,label:b,size:s}},Zz=e=>{const{labelPosition:t}=e;return gt(e.root,{children:[ae(e.input,{}),t!=="after"&&e.label&&ae(e.label,{}),ae(e.indicator,{}),t==="after"&&e.label&&ae(e.label,{})]})},Dd={root:"fui-Switch",indicator:"fui-Switch__indicator",input:"fui-Switch__input",label:"fui-Switch__label"},Yz=je("r2i81i2","rofhmb8",{r:[".r2i81i2{align-items:flex-start;box-sizing:border-box;display:inline-flex;position:relative;}",".r2i81i2:focus{outline-style:none;}",".r2i81i2:focus-visible{outline-style:none;}",".r2i81i2[data-fui-focus-within]:focus-within{border-top-color:transparent;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent;}",'.r2i81i2[data-fui-focus-within]:focus-within::after{content:"";position:absolute;pointer-events:none;z-index:1;border:2px solid var(--colorStrokeFocus2);border-radius:var(--borderRadiusMedium);top:calc(2px * -1);right:calc(2px * -1);bottom:calc(2px * -1);left:calc(2px * -1);}',".rofhmb8{align-items:flex-start;box-sizing:border-box;display:inline-flex;position:relative;}",".rofhmb8:focus{outline-style:none;}",".rofhmb8:focus-visible{outline-style:none;}",".rofhmb8[data-fui-focus-within]:focus-within{border-top-color:transparent;border-left-color:transparent;border-bottom-color:transparent;border-right-color:transparent;}",'.rofhmb8[data-fui-focus-within]:focus-within::after{content:"";position:absolute;pointer-events:none;z-index:1;border:2px solid var(--colorStrokeFocus2);border-radius:var(--borderRadiusMedium);top:calc(2px * -1);left:calc(2px * -1);bottom:calc(2px * -1);right:calc(2px * -1);}'],s:["@media (forced-colors: active){.r2i81i2[data-fui-focus-within]:focus-within::after{border-top-color:Highlight;border-right-color:Highlight;border-bottom-color:Highlight;border-left-color:Highlight;}}","@media (forced-colors: active){.rofhmb8[data-fui-focus-within]:focus-within::after{border-top-color:Highlight;border-left-color:Highlight;border-bottom-color:Highlight;border-right-color:Highlight;}}"]}),Qz=Se({vertical:{Beiy3e4:"f1vx9l62"}},{d:[".f1vx9l62{flex-direction:column;}"]}),Jz=je("r1c3hft5",null,{r:[".r1c3hft5{border-radius:var(--borderRadiusCircular);border:1px solid;line-height:0;box-sizing:border-box;fill:currentColor;flex-shrink:0;font-size:18px;height:20px;margin:var(--spacingVerticalS) var(--spacingHorizontalS);pointer-events:none;transition-duration:var(--durationNormal);transition-timing-function:var(--curveEasyEase);transition-property:background,border,color;width:40px;}",".r1c3hft5>*{transition-duration:var(--durationNormal);transition-timing-function:var(--curveEasyEase);transition-property:transform;}"],s:["@media screen and (prefers-reduced-motion: reduce){.r1c3hft5{transition-duration:0.01ms;}}","@media (forced-colors: active){.r1c3hft5{color:CanvasText;}.r1c3hft5>i{forced-color-adjust:none;}}","@media screen and (prefers-reduced-motion: reduce){.r1c3hft5>*{transition-duration:0.01ms;}}"]}),e3=Se({labelAbove:{B6of3ja:"f1hu3pq6"},sizeSmall:{Be2twd7:"fses1vf",Bqenvij:"fd461yt",a9b677:"f1szoe96"}},{d:[".f1hu3pq6{margin-top:0;}",".fses1vf{font-size:14px;}",".fd461yt{height:16px;}",".f1szoe96{width:32px;}"]}),t3=je("rsji9ng","r15xih98",{r:[".rsji9ng{box-sizing:border-box;cursor:pointer;height:100%;margin:0;opacity:0;position:absolute;width:calc(40px + 2 * var(--spacingHorizontalS));}",".rsji9ng:checked~.fui-Switch__indicator>*{transform:translateX(20px);}",".rsji9ng:disabled{cursor:default;}",".rsji9ng:disabled~.fui-Switch__indicator{color:var(--colorNeutralForegroundDisabled);}",".rsji9ng:disabled~.fui-Switch__label{cursor:default;color:var(--colorNeutralForegroundDisabled);}",".rsji9ng:enabled:not(:checked)~.fui-Switch__indicator{color:var(--colorNeutralStrokeAccessible);border-color:var(--colorNeutralStrokeAccessible);}",".rsji9ng:enabled:not(:checked)~.fui-Switch__label{color:var(--colorNeutralForeground1);}",".rsji9ng:enabled:not(:checked):hover~.fui-Switch__indicator{color:var(--colorNeutralStrokeAccessibleHover);border-color:var(--colorNeutralStrokeAccessibleHover);}",".rsji9ng:enabled:not(:checked):hover:active~.fui-Switch__indicator{color:var(--colorNeutralStrokeAccessiblePressed);border-color:var(--colorNeutralStrokeAccessiblePressed);}",".rsji9ng:enabled:checked~.fui-Switch__indicator{background-color:var(--colorCompoundBrandBackground);color:var(--colorNeutralForegroundInverted);border-color:var(--colorTransparentStroke);}",".rsji9ng:enabled:checked:hover~.fui-Switch__indicator{background-color:var(--colorCompoundBrandBackgroundHover);border-color:var(--colorTransparentStrokeInteractive);}",".rsji9ng:enabled:checked:hover:active~.fui-Switch__indicator{background-color:var(--colorCompoundBrandBackgroundPressed);border-color:var(--colorTransparentStrokeInteractive);}",".rsji9ng:disabled:not(:checked)~.fui-Switch__indicator{border-color:var(--colorNeutralStrokeDisabled);}",".rsji9ng:disabled:checked~.fui-Switch__indicator{background-color:var(--colorNeutralBackgroundDisabled);border-color:var(--colorTransparentStrokeDisabled);}",".r15xih98{box-sizing:border-box;cursor:pointer;height:100%;margin:0;opacity:0;position:absolute;width:calc(40px + 2 * var(--spacingHorizontalS));}",".r15xih98:checked~.fui-Switch__indicator>*{transform:translateX(-20px);}",".r15xih98:disabled{cursor:default;}",".r15xih98:disabled~.fui-Switch__indicator{color:var(--colorNeutralForegroundDisabled);}",".r15xih98:disabled~.fui-Switch__label{cursor:default;color:var(--colorNeutralForegroundDisabled);}",".r15xih98:enabled:not(:checked)~.fui-Switch__indicator{color:var(--colorNeutralStrokeAccessible);border-color:var(--colorNeutralStrokeAccessible);}",".r15xih98:enabled:not(:checked)~.fui-Switch__label{color:var(--colorNeutralForeground1);}",".r15xih98:enabled:not(:checked):hover~.fui-Switch__indicator{color:var(--colorNeutralStrokeAccessibleHover);border-color:var(--colorNeutralStrokeAccessibleHover);}",".r15xih98:enabled:not(:checked):hover:active~.fui-Switch__indicator{color:var(--colorNeutralStrokeAccessiblePressed);border-color:var(--colorNeutralStrokeAccessiblePressed);}",".r15xih98:enabled:checked~.fui-Switch__indicator{background-color:var(--colorCompoundBrandBackground);color:var(--colorNeutralForegroundInverted);border-color:var(--colorTransparentStroke);}",".r15xih98:enabled:checked:hover~.fui-Switch__indicator{background-color:var(--colorCompoundBrandBackgroundHover);border-color:var(--colorTransparentStrokeInteractive);}",".r15xih98:enabled:checked:hover:active~.fui-Switch__indicator{background-color:var(--colorCompoundBrandBackgroundPressed);border-color:var(--colorTransparentStrokeInteractive);}",".r15xih98:disabled:not(:checked)~.fui-Switch__indicator{border-color:var(--colorNeutralStrokeDisabled);}",".r15xih98:disabled:checked~.fui-Switch__indicator{background-color:var(--colorNeutralBackgroundDisabled);border-color:var(--colorTransparentStrokeDisabled);}"],s:["@media (forced-colors: active){.rsji9ng:disabled~.fui-Switch__indicator{color:GrayText;border-color:GrayText;}.rsji9ng:disabled~.fui-Switch__label{color:GrayText;}.rsji9ng:hover{color:CanvasText;}.rsji9ng:hover:active{color:CanvasText;}.rsji9ng:enabled:checked:hover~.fui-Switch__indicator{background-color:Highlight;color:Canvas;}.rsji9ng:enabled:checked:hover:active~.fui-Switch__indicator{background-color:Highlight;color:Canvas;}.rsji9ng:enabled:checked~.fui-Switch__indicator{background-color:Highlight;color:Canvas;}}","@media (forced-colors: active){.r15xih98:disabled~.fui-Switch__indicator{color:GrayText;border-color:GrayText;}.r15xih98:disabled~.fui-Switch__label{color:GrayText;}.r15xih98:hover{color:CanvasText;}.r15xih98:hover:active{color:CanvasText;}.r15xih98:enabled:checked:hover~.fui-Switch__indicator{background-color:Highlight;color:Canvas;}.r15xih98:enabled:checked:hover:active~.fui-Switch__indicator{background-color:Highlight;color:Canvas;}.r15xih98:enabled:checked~.fui-Switch__indicator{background-color:Highlight;color:Canvas;}}"]}),o3=Se({before:{j35jbq:["f1e31b4d","f1vgc2s3"],Bhzewxz:"f15twtuk"},after:{oyh7mz:["f1vgc2s3","f1e31b4d"],Bhzewxz:"f15twtuk"},above:{B5kzvoi:"f1yab3r1",Bqenvij:"f1aar7gd",a9b677:"fly5x3f"},sizeSmall:{a9b677:"f83td6f",oedwrj:["f1t5zc5r","fmy58zi"]}},{d:[".f1e31b4d{right:0;}",".f1vgc2s3{left:0;}",".f15twtuk{top:0;}",".f1yab3r1{bottom:0;}",".f1aar7gd{height:calc(20px + var(--spacingVerticalS));}",".fly5x3f{width:100%;}",".f83td6f{width:calc(32px + 2 * var(--spacingHorizontalS));}",".f1t5zc5r:checked~.fui-Switch__indicator>*{transform:translateX(16px);}",".fmy58zi:checked~.fui-Switch__indicator>*{transform:translateX(-16px);}"]}),r3=Se({base:{Bceei9c:"f1k6fduh",jrapky:"f49ad5g",B6of3ja:"f1xlvstr",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1f5q0n8"},sizeSmall:{Be2twd7:"fy9rknc",Bg96gwp:"fwrc4pm",jrapky:"f1suqah5",B6of3ja:"f26bnac"},above:{z8tnut:"f1ywm7hm",Byoj8tv:"f14wxoun",a9b677:"fly5x3f"},after:{uwmqm3:["fruq291","f7x41pl"]},before:{z189sj:["f7x41pl","fruq291"]}},{d:[".f1k6fduh{cursor:pointer;}",".f49ad5g{margin-bottom:calc((20px - var(--lineHeightBase300)) / 2);}",".f1xlvstr{margin-top:calc((20px - var(--lineHeightBase300)) / 2);}",[".f1f5q0n8{padding:var(--spacingVerticalS) var(--spacingHorizontalS);}",{p:-1}],".fy9rknc{font-size:var(--fontSizeBase200);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".f1suqah5{margin-bottom:calc((16px - var(--lineHeightBase200)) / 2);}",".f26bnac{margin-top:calc((16px - var(--lineHeightBase200)) / 2);}",".f1ywm7hm{padding-top:var(--spacingVerticalXS);}",".f14wxoun{padding-bottom:var(--spacingVerticalXS);}",".fly5x3f{width:100%;}",".fruq291{padding-left:var(--spacingHorizontalXS);}",".f7x41pl{padding-right:var(--spacingHorizontalXS);}"]}),n3=e=>{"use no memo";const t=Yz(),o=Qz(),r=Jz(),n=e3(),i=t3(),s=o3(),a=r3(),{label:c,labelPosition:d,size:h}=e;return e.root.className=de(Dd.root,t,d==="above"&&o.vertical,e.root.className),e.indicator.className=de(Dd.indicator,r,c&&d==="above"&&n.labelAbove,h==="small"&&n.sizeSmall,e.indicator.className),e.input.className=de(Dd.input,i,c&&s[d],h==="small"&&s.sizeSmall,e.input.className),e.label&&(e.label.className=de(Dd.label,a.base,a[d],h==="small"&&a.sizeSmall,e.label.className)),e},d1=S.forwardRef((e,t)=>{const o=Xz(e,t);return n3(o),qe("useSwitchStyles_unstable")(o),Zz(o)});d1.displayName="Switch";const i3=(e,t)=>{const{wrap:o,truncate:r,block:n,italic:i,underline:s,strikethrough:a,size:c,font:d,weight:h,align:f}=e;return{align:f??"start",block:n??!1,font:d??"base",italic:i??!1,size:c??300,strikethrough:a??!1,truncate:r??!1,underline:s??!1,weight:h??"regular",wrap:o??!0,components:{root:"span"},root:Le(wt("span",{ref:t,...e}),{elementType:"span"})}},s3=e=>ae(e.root,{}),a3={root:"fui-Text"},l3=Se({root:{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bg96gwp:"f1i3iumi",Bhrd7zp:"figsok6",fsow6f:"fpgzoln",mc9l5x:"f1w7gpdv",Huce71:"f6juhto",B68tc82:0,Bmxbyg5:0,Bpg54ce:"f1gl81tg",ygn44y:"f2jf649"},nowrap:{Huce71:"fz5stix",B68tc82:0,Bmxbyg5:0,Bpg54ce:"f1a3p1vp"},truncate:{ygn44y:"f1cmbuwj"},block:{mc9l5x:"ftgm304"},italic:{B80ckks:"f1j4dglz"},underline:{w71qe1:"f13mvf36"},strikethrough:{w71qe1:"fv5q2k7"},strikethroughUnderline:{w71qe1:"f1drk4o6"},base100:{Be2twd7:"f13mqy1h",Bg96gwp:"fcpl73t"},base200:{Be2twd7:"fy9rknc",Bg96gwp:"fwrc4pm"},base400:{Be2twd7:"fod5ikn",Bg96gwp:"faaz57k"},base500:{Be2twd7:"f1pp30po",Bg96gwp:"f106mvju"},base600:{Be2twd7:"f1x0m3f5",Bg96gwp:"fb86gi6"},hero700:{Be2twd7:"fojgt09",Bg96gwp:"fcen8rp"},hero800:{Be2twd7:"fccw675",Bg96gwp:"f1ebx5kk"},hero900:{Be2twd7:"f15afnhw",Bg96gwp:"fr3w3wp"},hero1000:{Be2twd7:"fpyltcb",Bg96gwp:"f1ivgwrt"},monospace:{Bahqtrf:"f1fedwem"},numeric:{Bahqtrf:"f1uq0ln5"},weightMedium:{Bhrd7zp:"fdj6btp"},weightSemibold:{Bhrd7zp:"fl43uef"},weightBold:{Bhrd7zp:"flh3ekv"},alignCenter:{fsow6f:"f17mccla"},alignEnd:{fsow6f:"f12ymhq5"},alignJustify:{fsow6f:"f1j59e10"}},{d:[".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".figsok6{font-weight:var(--fontWeightRegular);}",".fpgzoln{text-align:start;}",".f1w7gpdv{display:inline;}",".f6juhto{white-space:normal;}",[".f1gl81tg{overflow:visible;}",{p:-1}],".f2jf649{text-overflow:clip;}",".fz5stix{white-space:nowrap;}",[".f1a3p1vp{overflow:hidden;}",{p:-1}],".f1cmbuwj{text-overflow:ellipsis;}",".ftgm304{display:block;}",".f1j4dglz{font-style:italic;}",".f13mvf36{text-decoration-line:underline;}",".fv5q2k7{text-decoration-line:line-through;}",".f1drk4o6{text-decoration-line:line-through underline;}",".f13mqy1h{font-size:var(--fontSizeBase100);}",".fcpl73t{line-height:var(--lineHeightBase100);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".fod5ikn{font-size:var(--fontSizeBase400);}",".faaz57k{line-height:var(--lineHeightBase400);}",".f1pp30po{font-size:var(--fontSizeBase500);}",".f106mvju{line-height:var(--lineHeightBase500);}",".f1x0m3f5{font-size:var(--fontSizeBase600);}",".fb86gi6{line-height:var(--lineHeightBase600);}",".fojgt09{font-size:var(--fontSizeHero700);}",".fcen8rp{line-height:var(--lineHeightHero700);}",".fccw675{font-size:var(--fontSizeHero800);}",".f1ebx5kk{line-height:var(--lineHeightHero800);}",".f15afnhw{font-size:var(--fontSizeHero900);}",".fr3w3wp{line-height:var(--lineHeightHero900);}",".fpyltcb{font-size:var(--fontSizeHero1000);}",".f1ivgwrt{line-height:var(--lineHeightHero1000);}",".f1fedwem{font-family:var(--fontFamilyMonospace);}",".f1uq0ln5{font-family:var(--fontFamilyNumeric);}",".fdj6btp{font-weight:var(--fontWeightMedium);}",".fl43uef{font-weight:var(--fontWeightSemibold);}",".flh3ekv{font-weight:var(--fontWeightBold);}",".f17mccla{text-align:center;}",".f12ymhq5{text-align:end;}",".f1j59e10{text-align:justify;}"]}),c3=e=>{"use no memo";const t=l3();return e.root.className=de(a3.root,t.root,e.wrap===!1&&t.nowrap,e.truncate&&t.truncate,e.block&&t.block,e.italic&&t.italic,e.underline&&t.underline,e.strikethrough&&t.strikethrough,e.underline&&e.strikethrough&&t.strikethroughUnderline,e.size===100&&t.base100,e.size===200&&t.base200,e.size===400&&t.base400,e.size===500&&t.base500,e.size===600&&t.base600,e.size===700&&t.hero700,e.size===800&&t.hero800,e.size===900&&t.hero900,e.size===1e3&&t.hero1000,e.font==="monospace"&&t.monospace,e.font==="numeric"&&t.numeric,e.weight==="medium"&&t.weightMedium,e.weight==="semibold"&&t.weightSemibold,e.weight==="bold"&&t.weightBold,e.align==="center"&&t.alignCenter,e.align==="end"&&t.alignEnd,e.align==="justify"&&t.alignJustify,e.root.className),e},mc=S.forwardRef((e,t)=>{const o=i3(e,t);return c3(o),qe("useTextStyles_unstable")(o),s3(o)});mc.displayName="Text";const u3=e=>ae(e.root,{children:ae(e.textarea,{})}),d3=(e,t)=>{e=vs(e,{supportsLabelFor:!0,supportsRequired:!0,supportsSize:!0});const o=zp();var r;const{size:n="medium",appearance:i=(r=o.inputDefaultAppearance)!==null&&r!==void 0?r:"outline",resize:s="none",onChange:a}=e,[c,d]=io({state:e.value,defaultState:e.defaultValue,initialState:void 0}),h=pa({props:e,primarySlotTagName:"textarea",excludedPropNames:["onChange","value","defaultValue"]}),f={size:n,appearance:i,resize:s,components:{root:"span",textarea:"textarea"},textarea:Le(e.textarea,{defaultProps:{ref:t,...h.primary},elementType:"textarea"}),root:Le(e.root,{defaultProps:h.root,elementType:"span"})};return f.textarea.value=c,f.textarea.onChange=pe(g=>{const m=g.target.value;a?.(g,{value:m}),d(m)}),f},h1={root:"fui-Textarea",textarea:"fui-Textarea__textarea"},h3=Se({base:{mc9l5x:"ftuwxu6",B7ck84d:"f1ewtqcl",qhf8xq:"f10pi13n",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1yiegib",jrapky:0,Frg6f3:0,t21cq0:0,B6of3ja:0,B74szlk:"f1s184ao",Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"ft85np5",ha4doy:"f12kltsn"},disabled:{De3pzq:"f1c21dwh",Bgfg5da:0,B9xav0g:0,oivjwe:0,Bn0qgzm:0,B4g9neb:0,zhjwy3:0,wvpqe5:0,ibv6hh:0,u1mtju:0,h3c5rm:0,vrafjx:0,Bekrc4i:0,i8vvqc:0,g2u3we:0,icvyot:0,B4j52fo:0,irswps:"ff3nzm7",Bcq6wej:"f9dbb4x",Jcjdmf:["f3qs60o","f5u9ap2"],sc4o1m:"fwd1oij",Bosien3:["f5u9ap2","f3qs60o"]},interactive:{li1rpt:"f1gw3sf2",Bsft5z2:"f13zj6fq",E3zdtr:"f1mdlcz9",Eqx8gd:["f1a7op3","f1cjjd47"],By385i5:"f1gboi2j",B1piin3:["f1cjjd47","f1a7op3"],Dlnsje:"ffyw7fx",d9w3h3:["f1kp91vd","f1ibwz09"],B3778ie:["f1ibwz09","f1kp91vd"],B1q35kw:0,Bw17bha:0,Bcgy8vk:0,Bjuhk93:"f1mnjydx",Gjdm7m:"fj2g8qd",b1kco5:"f1yk9hq",Ba2ppi3:"fhwpy7i",F2fol1:"f14ee0xe",lck23g:"f1xhbsuh",wi16st:"fsrmcvb",ywj3b2:"f1t3k7v9",umuwi5:"fjw5xc1",Blcqepd:"f1xdyd5c",nplu4u:"fatpbeo",Bioka5o:"fb7uyps",Bnupc0a:"fx04xgm",bing71:"f1c7in40",Bercvud:"f1ibeo51",Bbr2w1p:"f1vnc8sk",Bduesf4:"f3e99gv",Bpq79vn:"fhljsf7"},filled:{Bgfg5da:0,B9xav0g:0,oivjwe:0,Bn0qgzm:0,B4g9neb:0,zhjwy3:0,wvpqe5:0,ibv6hh:0,u1mtju:0,h3c5rm:0,vrafjx:0,Bekrc4i:0,i8vvqc:0,g2u3we:0,icvyot:0,B4j52fo:0,irswps:"f88035w",q7v0qe:"ftmjh5b",kmh5ft:["f17blpuu","fsrcdbj"],nagaa4:"f1tpwn32",B1yhkcb:["fsrcdbj","f17blpuu"]},"filled-darker":{De3pzq:"f16xq7d1"},"filled-lighter":{De3pzq:"fxugw4r"},"filled-darker-shadow":{De3pzq:"f16xq7d1",Bgfg5da:0,B9xav0g:0,oivjwe:0,Bn0qgzm:0,B4g9neb:0,zhjwy3:0,wvpqe5:0,ibv6hh:0,u1mtju:0,h3c5rm:0,vrafjx:0,Bekrc4i:0,i8vvqc:0,g2u3we:0,icvyot:0,B4j52fo:0,irswps:"f1gmd7mu",E5pizo:"fyed02w"},"filled-lighter-shadow":{De3pzq:"fxugw4r",Bgfg5da:0,B9xav0g:0,oivjwe:0,Bn0qgzm:0,B4g9neb:0,zhjwy3:0,wvpqe5:0,ibv6hh:0,u1mtju:0,h3c5rm:0,vrafjx:0,Bekrc4i:0,i8vvqc:0,g2u3we:0,icvyot:0,B4j52fo:0,irswps:"f1gmd7mu",E5pizo:"fyed02w"},outline:{De3pzq:"fxugw4r",Bgfg5da:0,B9xav0g:"f1c1zstj",oivjwe:0,Bn0qgzm:0,B4g9neb:0,zhjwy3:0,wvpqe5:0,ibv6hh:0,u1mtju:0,h3c5rm:0,vrafjx:0,Bekrc4i:0,i8vvqc:0,g2u3we:0,icvyot:0,B4j52fo:0,irswps:"fhz96rm"},outlineInteractive:{kzujx5:0,oetu4i:"f1l4zc64",gvrnp0:0,xv9156:0,jek2p4:0,gg5e9n:0,Beu9t3s:0,dt87k2:0,Bt1vbvt:0,Bwzppfd:0,Bop6t4b:0,B2zwrfe:0,Bwp2tzp:0,Bgoe8wy:0,Bf40cpq:0,ckks6v:0,Baalond:"f9mts5e",v2iqwr:0,wmxk5l:"f1z0osm6",Bj33j0h:0,Bs0cc2w:0,qwjtx1:0,B50zh58:0,f7epvg:0,e1hlit:0,B7mkhst:0,ak43y8:0,Bbcopvn:0,Bvecx4l:0,lwioe0:0,B6oc9vd:0,e2sjt0:0,uqwnxt:0,asj8p9:"f1acnei2",Br8fjdy:0,zoxjo1:"f1so894s",Bt3ojkv:0,B7pmvfx:0,Bfht2n1:0,an54nd:0,t1ykpo:0,Belqbek:0,bbt1vd:0,Brahy3i:0,r7b1zc:0,rexu52:0,ovtnii:0,Bvq3b66:0,Bawrxx6:0,Bbs6y8j:0,B2qpgjt:"f19ezbcq"},invalid:{tvckwq:"fs4k3qj",gk2u95:["fcee079","fmyw78r"],hhx65j:"f1fgmyf4",Bxowmz0:["fmyw78r","fcee079"]}},{d:[".ftuwxu6{display:inline-flex;}",".f1ewtqcl{box-sizing:border-box;}",".f10pi13n{position:relative;}",[".f1yiegib{padding:0 0 var(--strokeWidthThick) 0;}",{p:-1}],[".f1s184ao{margin:0;}",{p:-1}],[".ft85np5{border-radius:var(--borderRadiusMedium);}",{p:-1}],".f12kltsn{vertical-align:top;}",".f1c21dwh{background-color:var(--colorTransparentBackground);}",[".ff3nzm7{border:var(--strokeWidthThin) solid var(--colorNeutralStrokeDisabled);}",{p:-2}],".f1gw3sf2::after{box-sizing:border-box;}",'.f13zj6fq::after{content:"";}',".f1mdlcz9::after{position:absolute;}",".f1a7op3::after{left:-1px;}",".f1cjjd47::after{right:-1px;}",".f1gboi2j::after{bottom:-1px;}",".ffyw7fx::after{height:max(var(--strokeWidthThick), var(--borderRadiusMedium));}",".f1kp91vd::after{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1ibwz09::after{border-bottom-right-radius:var(--borderRadiusMedium);}",[".f1mnjydx::after{border-bottom:var(--strokeWidthThick) solid var(--colorCompoundBrandStroke);}",{p:-1}],".fj2g8qd::after{clip-path:inset(calc(100% - var(--strokeWidthThick)) 0 0 0);}",".f1yk9hq::after{transform:scaleX(0);}",".fhwpy7i::after{transition-property:transform;}",".f14ee0xe::after{transition-duration:var(--durationUltraFast);}",".f1xhbsuh::after{transition-delay:var(--curveAccelerateMid);}",[".f88035w{border:var(--strokeWidthThin) solid var(--colorTransparentStroke);}",{p:-2}],".f16xq7d1{background-color:var(--colorNeutralBackground3);}",".fxugw4r{background-color:var(--colorNeutralBackground1);}",[".f1gmd7mu{border:var(--strokeWidthThin) solid var(--colorTransparentStrokeInteractive);}",{p:-2}],".fyed02w{box-shadow:var(--shadow2);}",[".f1gmd7mu{border:var(--strokeWidthThin) solid var(--colorTransparentStrokeInteractive);}",{p:-2}],[".fhz96rm{border:var(--strokeWidthThin) solid var(--colorNeutralStroke1);}",{p:-2}],".f1c1zstj{border-bottom-color:var(--colorNeutralStrokeAccessible);}",".fs4k3qj:not(:focus-within),.fs4k3qj:hover:not(:focus-within){border-top-color:var(--colorPaletteRedBorder2);}",".fcee079:not(:focus-within),.fcee079:hover:not(:focus-within){border-right-color:var(--colorPaletteRedBorder2);}",".fmyw78r:not(:focus-within),.fmyw78r:hover:not(:focus-within){border-left-color:var(--colorPaletteRedBorder2);}",".f1fgmyf4:not(:focus-within),.f1fgmyf4:hover:not(:focus-within){border-bottom-color:var(--colorPaletteRedBorder2);}"],m:[["@media (forced-colors: active){.f9dbb4x{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f3qs60o{border-right-color:GrayText;}.f5u9ap2{border-left-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fwd1oij{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media screen and (prefers-reduced-motion: reduce){.fsrmcvb::after{transition-duration:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.f1t3k7v9::after{transition-delay:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.fx04xgm:focus-within::after{transition-duration:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.f1c7in40:focus-within::after{transition-delay:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}]],w:[".fjw5xc1:focus-within::after{transform:scaleX(1);}",".f1xdyd5c:focus-within::after{transition-property:transform;}",".fatpbeo:focus-within::after{transition-duration:var(--durationNormal);}",".fb7uyps:focus-within::after{transition-delay:var(--curveDecelerateMid);}",".f1ibeo51:focus-within:active::after{border-bottom-color:var(--colorCompoundBrandStrokePressed);}",".f1vnc8sk:focus-within{outline-width:var(--strokeWidthThick);}",".f3e99gv:focus-within{outline-style:solid;}",".fhljsf7:focus-within{outline-color:transparent;}",[".f19ezbcq:focus-within{border:var(--strokeWidthThin) solid var(--colorNeutralStroke1Pressed);}",{p:-2}],".f1so894s:focus-within{border-bottom-color:var(--colorCompoundBrandStroke);}"],h:[".ftmjh5b:hover,.ftmjh5b:focus-within{border-top-color:var(--colorTransparentStrokeInteractive);}",".f17blpuu:hover,.f17blpuu:focus-within{border-right-color:var(--colorTransparentStrokeInteractive);}",".fsrcdbj:hover,.fsrcdbj:focus-within{border-left-color:var(--colorTransparentStrokeInteractive);}",".f1tpwn32:hover,.f1tpwn32:focus-within{border-bottom-color:var(--colorTransparentStrokeInteractive);}",[".f9mts5e:hover{border:var(--strokeWidthThin) solid var(--colorNeutralStroke1Hover);}",{p:-2}],".f1l4zc64:hover{border-bottom-color:var(--colorNeutralStrokeAccessibleHover);}"],a:[[".f1acnei2:active{border:var(--strokeWidthThin) solid var(--colorNeutralStroke1Pressed);}",{p:-2}],".f1z0osm6:active{border-bottom-color:var(--colorNeutralStrokeAccessiblePressed);}"]}),f3=Se({base:{icvyot:"f1ern45e",vrafjx:["f1n71otn","f1deefiw"],oivjwe:"f1h8hb77",wvpqe5:["f1deefiw","f1n71otn"],jrapky:0,Frg6f3:0,t21cq0:0,B6of3ja:0,B74szlk:"f1s184ao",De3pzq:"f3rmtva",B7ck84d:"f1ewtqcl",sj55zd:"f19n0e5",Bh6795r:"fqerorx",Bahqtrf:"fk6fouc",Bqenvij:"f1l02sjl",yvdlaj:"fwyc1cq",B3o7kgh:"f13ta7ih",oeaueh:"f1s6fcnf"},disabled:{sj55zd:"f1s2aq7o",Bceei9c:"fdrzuqr",yvdlaj:"fahhnxm"},small:{sshi5w:"f1w5jphr",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1pnffij",Bxyxcbc:"f192z54u",Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",Bg96gwp:"fwrc4pm"},medium:{sshi5w:"fvmd9f",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1ww82xo",Bxyxcbc:"f1if7ixc",Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi"},large:{sshi5w:"f1kfson",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f15hvtkj",Bxyxcbc:"f3kip1f",Bahqtrf:"fk6fouc",Be2twd7:"fod5ikn",Bhrd7zp:"figsok6",Bg96gwp:"faaz57k"}},{d:[".f1ern45e{border-top-style:none;}",".f1n71otn{border-right-style:none;}",".f1deefiw{border-left-style:none;}",".f1h8hb77{border-bottom-style:none;}",[".f1s184ao{margin:0;}",{p:-1}],".f3rmtva{background-color:transparent;}",".f1ewtqcl{box-sizing:border-box;}",".f19n0e5{color:var(--colorNeutralForeground1);}",".fqerorx{flex-grow:1;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".f1l02sjl{height:100%;}",".fwyc1cq::-webkit-input-placeholder{color:var(--colorNeutralForeground4);}",".fwyc1cq::-moz-placeholder{color:var(--colorNeutralForeground4);}",".f13ta7ih::-webkit-input-placeholder{opacity:1;}",".f13ta7ih::-moz-placeholder{opacity:1;}",".f1s6fcnf{outline-style:none;}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".fdrzuqr{cursor:not-allowed;}",".fahhnxm::-webkit-input-placeholder{color:var(--colorNeutralForegroundDisabled);}",".fahhnxm::-moz-placeholder{color:var(--colorNeutralForegroundDisabled);}",".f1w5jphr{min-height:40px;}",[".f1pnffij{padding:var(--spacingVerticalXS) calc(var(--spacingHorizontalSNudge) + var(--spacingHorizontalXXS));}",{p:-1}],".f192z54u{max-height:200px;}",".fy9rknc{font-size:var(--fontSizeBase200);}",".figsok6{font-weight:var(--fontWeightRegular);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".fvmd9f{min-height:52px;}",[".f1ww82xo{padding:var(--spacingVerticalSNudge) calc(var(--spacingHorizontalMNudge) + var(--spacingHorizontalXXS));}",{p:-1}],".f1if7ixc{max-height:260px;}",".fkhj508{font-size:var(--fontSizeBase300);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".f1kfson{min-height:64px;}",[".f15hvtkj{padding:var(--spacingVerticalS) calc(var(--spacingHorizontalM) + var(--spacingHorizontalXXS));}",{p:-1}],".f3kip1f{max-height:320px;}",".fod5ikn{font-size:var(--fontSizeBase400);}",".faaz57k{line-height:var(--lineHeightBase400);}"]}),p3=Se({none:{B3rzk8w:"f1o1s39h"},both:{B3rzk8w:"f1pxm0xe"},horizontal:{B3rzk8w:"fq6nmtn"},vertical:{B3rzk8w:"f1f5ktr4"}},{d:[".f1o1s39h{resize:none;}",".f1pxm0xe{resize:both;}",".fq6nmtn{resize:horizontal;}",".f1f5ktr4{resize:vertical;}"]}),g3=e=>{"use no memo";const{size:t,appearance:o,resize:r}=e,n=e.textarea.disabled,i=`${e.textarea["aria-invalid"]}`=="true",s=o.startsWith("filled"),a=h3();e.root.className=de(h1.root,a.base,n&&a.disabled,!n&&s&&a.filled,!n&&a[o],!n&&a.interactive,!n&&o==="outline"&&a.outlineInteractive,!n&&i&&a.invalid,e.root.className);const c=f3(),d=p3();return e.textarea.className=de(h1.textarea,c.base,c[t],d[r],n&&c.disabled,e.textarea.className),e},f1=S.forwardRef((e,t)=>{const o=d3(e,t);return g3(o),qe("useTextareaStyles_unstable")(o),u3(o)});f1.displayName="Textarea";const m3=je("r6pzz3z",null,[".r6pzz3z{overflow-y:hidden;overflow-y:clip;scrollbar-gutter:stable;}"]),v3=je("r144vlu9",null,[".r144vlu9{overflow-y:hidden;}"]);function b3(){const e=m3(),t=v3(),{targetDocument:o}=lt(),r=S.useCallback(()=>{var i;if(!o)return;var s;Math.floor(o.body.getBoundingClientRect().height)>((s=(i=o.defaultView)===null||i===void 0?void 0:i.innerHeight)!==null&&s!==void 0?s:0)&&(o.documentElement.classList.add(e),o.body.classList.add(t))},[o,e,t]),n=S.useCallback(()=>{o&&(o.documentElement.classList.remove(e),o.body.classList.remove(t))},[o,e,t]);return{disableBodyScroll:r,enableBodyScroll:n}}function w3(e,t){const{findFirstFocusable:o}=wa(),{targetDocument:r}=lt(),n=S.useRef(null);return S.useEffect(()=>{if(!e)return;const i=n.current&&o(n.current);if(i)i.focus();else{var s;(s=n.current)===null||s===void 0||s.focus()}},[o,e,t,r]),n}const C3={open:!1,inertTrapFocus:!1,modalType:"modal",isNestedDialog:!1,unmountOnClose:!0,dialogRef:{current:null},requestOpenChange(){}},Ug=Si(void 0),y3=Ug.Provider,ur=e=>hs(Ug,(t=C3)=>e(t)),S3=!1,p1=S.createContext(void 0),g1=p1.Provider,x3=()=>{var e;return(e=S.useContext(p1))!==null&&e!==void 0?e:S3},m1=sc(bg,{fromScale:.85,easing:mt.curveDecelerateMid,duration:mt.durationGentle,exitEasing:mt.curveAccelerateMin,exitDuration:mt.durationGentle}),k3=e=>{const{children:t,modalType:o="modal",onOpenChange:r,inertTrapFocus:n=!1,unmountOnClose:i=!0}=e,s=Go("dialog-title-"),[a,c]=F3(t),[d,h]=io({state:e.open,defaultState:e.defaultOpen,initialState:!1}),f=pe(y=>{r?.(y.event,y),y.event.isDefaultPrevented()||h(y.open)}),g=w3(d,o),{modalAttributes:m,triggerAttributes:b}=sd({trapFocus:o!=="non-modal",legacyTrapFocus:!n}),w=ic(Ug);return{components:{surfaceMotion:m1},inertTrapFocus:n,open:d,modalType:o,content:c,trigger:a,requestOpenChange:f,dialogTitleId:s,isNestedDialog:w,unmountOnClose:i,dialogRef:g,modalAttributes:m,triggerAttributes:b,surfaceMotion:vg(e.surfaceMotion,{elementType:m1,defaultProps:{visible:d,appear:i,unmountOnExit:i}})}};function F3(e){const t=S.Children.toArray(e);switch(t.length){case 2:return t;case 1:return[void 0,t[0]];default:return[void 0,void 0]}}const v1=S.createContext(void 0);function R3(){return S.useContext(v1)}const E3=S.forwardRef((e,t)=>S.createElement(v1.Provider,{value:t},e.children)),_3=(e,t)=>ae(y3,{value:t.dialog,children:gt(g1,{value:t.dialogSurface,children:[e.trigger,e.content&&ae(e.surfaceMotion,{children:ae(E3,{children:e.content})})]})});function P3(e){const{modalType:t,open:o,dialogRef:r,dialogTitleId:n,isNestedDialog:i,inertTrapFocus:s,requestOpenChange:a,modalAttributes:c,triggerAttributes:d,unmountOnClose:h}=e;return{dialog:{open:o,modalType:t,dialogRef:r,dialogTitleId:n,isNestedDialog:i,inertTrapFocus:s,modalAttributes:c,triggerAttributes:d,unmountOnClose:h,requestOpenChange:a},dialogSurface:!1}}const Gn=S.memo(e=>{const t=k3(e),o=P3(t);return _3(t,o)});Gn.displayName="Dialog";const D3=e=>{const t=x3(),{children:o,disableButtonEnhancement:r=!1,action:n=t?"close":"open"}=e,i=ec(o),s=ur(f=>f.requestOpenChange),{triggerAttributes:a}=sd(),c=pe(f=>{var g,m;i==null||(g=(m=i.props).onClick)===null||g===void 0||g.call(m,f),f.isDefaultPrevented()||s({event:f,type:"triggerClick",open:n==="open"})}),d={...i?.props,ref:Jl(i),onClick:c,...a},h=Sa(i?.type==="button"||i?.type==="a"?i.type:"div",{...d,type:"button"});return{children:Zu(o,r?d:h)}},T3=e=>e.children,Fi=e=>{const t=D3(e);return T3(t)};Fi.displayName="DialogTrigger",Fi.isFluentTriggerComponent=!0;const M3=(e,t)=>{const{position:o="end",fluid:r=!1}=e;return{components:{root:"div"},root:Le(wt("div",{ref:t,...e}),{elementType:"div"}),position:o,fluid:r}},A3=e=>ae(e.root,{}),I3={root:"fui-DialogActions"},B3=je("rhfpeu0",null,{r:[".rhfpeu0{gap:8px;height:fit-content;box-sizing:border-box;display:flex;grid-row-start:3;grid-row-end:3;}"],s:["@media screen and (max-width: 480px){.rhfpeu0{flex-direction:column;justify-self:stretch;}}"]}),O3=Se({gridPositionEnd:{Bdqf98w:"f1a7i8kp",Br312pm:"fd46tj4",Bw0ie65:"fsyjsko",Btsd7tp:"f1n00o3b",ufxxby:"f1mvsp37",Bq5p579:"flbz1vp"},gridPositionStart:{Bdqf98w:"fsxvdwy",Br312pm:"fwpfdsa",Bw0ie65:"f1e2fz10",Ew0qkd:"f119phc2",ufxxby:"f1j719yo",Bq5p579:"flbz1vp"},fluidStart:{Bw0ie65:"fsyjsko"},fluidEnd:{Br312pm:"fwpfdsa"}},{d:[".f1a7i8kp{justify-self:end;}",".fd46tj4{grid-column-start:2;}",".fsyjsko{grid-column-end:4;}",".fsxvdwy{justify-self:start;}",".fwpfdsa{grid-column-start:1;}",".f1e2fz10{grid-column-end:2;}"],m:[["@media screen and (max-width: 480px){.f1n00o3b{grid-column-start:1;}}",{m:"screen and (max-width: 480px)"}],["@media screen and (max-width: 480px){.f1mvsp37{grid-row-start:4;}}",{m:"screen and (max-width: 480px)"}],["@media screen and (max-width: 480px){.flbz1vp{grid-row-end:auto;}}",{m:"screen and (max-width: 480px)"}],["@media screen and (max-width: 480px){.f119phc2{grid-column-end:4;}}",{m:"screen and (max-width: 480px)"}],["@media screen and (max-width: 480px){.f1j719yo{grid-row-start:3;}}",{m:"screen and (max-width: 480px)"}]]}),N3=e=>{"use no memo";const t=B3(),o=O3();return e.root.className=de(I3.root,t,e.position==="start"&&o.gridPositionStart,e.position==="end"&&o.gridPositionEnd,e.fluid&&e.position==="start"&&o.fluidStart,e.fluid&&e.position==="end"&&o.fluidEnd,e.root.className),e},ws=S.forwardRef((e,t)=>{const o=M3(e,t);return N3(o),qe("useDialogActionsStyles_unstable")(o),A3(o)});ws.displayName="DialogActions";const L3=(e,t)=>{var o;return{components:{root:"div"},root:Le(wt((o=e.as)!==null&&o!==void 0?o:"div",{ref:t,...e}),{elementType:"div"})}},z3=e=>ae(e.root,{}),H3={root:"fui-DialogBody"},V3=je("rhwx3p8",null,{r:[".rhwx3p8{overflow:unset;gap:8px;display:grid;max-height:calc(100vh - 2 * 24px);max-height:calc(100dvh - 2 * 24px);box-sizing:border-box;grid-template-rows:auto 1fr;grid-template-columns:1fr 1fr auto;}"],s:["@media screen and (max-width: 480px){.rhwx3p8{max-width:100vw;grid-template-rows:auto 1fr auto;}}","@media screen and (max-height: 359px){.rhwx3p8{max-height:unset;}}"]}),G3=e=>{"use no memo";const t=V3();return e.root.className=de(H3.root,t,e.root.className),e},Cs=S.forwardRef((e,t)=>{const o=L3(e,t);return G3(o),qe("useDialogBodyStyles_unstable")(o),z3(o)});Cs.displayName="DialogBody";const b1={root:"fui-DialogTitle",action:"fui-DialogTitle__action"},j3=je("rxjm636",null,[".rxjm636{font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase500);font-weight:var(--fontWeightSemibold);line-height:var(--lineHeightBase500);margin:0;grid-row-start:1;grid-row-end:1;grid-column-start:1;grid-column-end:3;}"]),W3=Se({rootWithoutAction:{Bw0ie65:"fsyjsko"}},{d:[".fsyjsko{grid-column-end:4;}"]}),q3=je("r13kcrze",null,[".r13kcrze{grid-row-start:1;grid-row-end:1;grid-column-start:3;justify-self:end;align-self:start;}"]),U3=je("r2avt6e","roj2bbc",{r:[".r2avt6e{overflow:visible;padding:0;border-style:none;position:relative;box-sizing:content-box;background-color:inherit;color:inherit;font-family:inherit;font-size:inherit;cursor:pointer;line-height:0;-webkit-appearance:button;text-align:unset;}",".r2avt6e:focus{outline-style:none;}",".r2avt6e:focus-visible{outline-style:none;}",".r2avt6e[data-fui-focus-visible]{border-top-color:transparent;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent;}",'.r2avt6e[data-fui-focus-visible]::after{content:"";position:absolute;pointer-events:none;z-index:1;border:2px solid var(--colorStrokeFocus2);border-radius:var(--borderRadiusMedium);top:calc(2px * -1);right:calc(2px * -1);bottom:calc(2px * -1);left:calc(2px * -1);}',".roj2bbc{overflow:visible;padding:0;border-style:none;position:relative;box-sizing:content-box;background-color:inherit;color:inherit;font-family:inherit;font-size:inherit;cursor:pointer;line-height:0;-webkit-appearance:button;text-align:unset;}",".roj2bbc:focus{outline-style:none;}",".roj2bbc:focus-visible{outline-style:none;}",".roj2bbc[data-fui-focus-visible]{border-top-color:transparent;border-left-color:transparent;border-bottom-color:transparent;border-right-color:transparent;}",'.roj2bbc[data-fui-focus-visible]::after{content:"";position:absolute;pointer-events:none;z-index:1;border:2px solid var(--colorStrokeFocus2);border-radius:var(--borderRadiusMedium);top:calc(2px * -1);left:calc(2px * -1);bottom:calc(2px * -1);right:calc(2px * -1);}'],s:["@media (forced-colors: active){.r2avt6e[data-fui-focus-visible]::after{border-top-color:Highlight;border-right-color:Highlight;border-bottom-color:Highlight;border-left-color:Highlight;}}","@media (forced-colors: active){.roj2bbc[data-fui-focus-visible]::after{border-top-color:Highlight;border-left-color:Highlight;border-bottom-color:Highlight;border-right-color:Highlight;}}"]}),w1=e=>{"use no memo";const t=j3(),o=q3(),r=W3();return e.root.className=de(b1.root,t,!e.action&&r.rootWithoutAction,e.root.className),e.action&&(e.action.className=de(b1.action,o,e.action.className)),e},$3=(e,t)=>{const{action:o}=e,r=ur(i=>i.modalType),n=U3();return{components:{root:"h2",action:"div"},root:Le(wt("h2",{ref:t,id:ur(i=>i.dialogTitleId),...e}),{elementType:"h2"}),action:et(o,{renderByDefault:r==="non-modal",defaultProps:{children:S.createElement(Fi,{disableButtonEnhancement:!0,action:"close"},S.createElement("button",{type:"button",className:n,"aria-label":"close"},S.createElement(qB,null)))},elementType:"div"})}},K3=e=>gt(S.Fragment,{children:[ae(e.root,{children:e.root.children}),e.action&&ae(e.action,{})]}),$g=S.forwardRef((e,t)=>{const o=$3(e,t);return w1(o),qe("useDialogTitleStyles_unstable")(o),K3(o)});$g.displayName="DialogTitle";const C1=sO,y1=(e,t)=>{const o=R3(),r=ur(y=>y.modalType),n=ur(y=>y.isNestedDialog),i=ur(y=>y.modalAttributes),s=ur(y=>y.dialogRef),a=ur(y=>y.requestOpenChange),c=ur(y=>y.dialogTitleId),d=ur(y=>y.open),h=ur(y=>y.unmountOnClose),f=pe(y=>{if(Lp(e.backdrop)){var k,C;(k=(C=e.backdrop).onClick)===null||k===void 0||k.call(C,y)}r==="modal"&&!y.isDefaultPrevented()&&a({event:y,open:!1,type:"backdropClick"})}),g=pe(y=>{var k;(k=e.onKeyDown)===null||k===void 0||k.call(e,y),y.key===ya&&!y.isDefaultPrevented()&&(a({event:y,open:!1,type:"escapeKeyDown"}),y.preventDefault())}),m=et(e.backdrop,{renderByDefault:r!=="non-modal",defaultProps:{"aria-hidden":"true"},elementType:"div"});m&&(m.onClick=f);const{disableBodyScroll:b,enableBodyScroll:w}=b3();return Zt(()=>{if(!d){w();return}if(!(n||r==="non-modal"))return b(),()=>w()},[d,r,n,b,w]),{components:{backdrop:"div",root:"div",backdropMotion:C1},open:d,backdrop:m,isNestedDialog:n,unmountOnClose:h,mountNode:e.mountNode,root:Le(wt("div",{tabIndex:-1,role:r==="alert"?"alertdialog":"dialog","aria-modal":r!=="non-modal","aria-labelledby":e["aria-label"]?void 0:c,"aria-hidden":!h&&!d?!0:void 0,...e,...i,onKeyDown:g,ref:tt(t,o,s)}),{elementType:"div"}),backdropMotion:vg(e.backdropMotion,{elementType:C1,defaultProps:{appear:h,visible:d}}),transitionStatus:void 0}},S1=(e,t)=>gt(ms,{mountNode:e.mountNode,children:[e.backdrop&&e.backdropMotion&&ae(e.backdropMotion,{children:ae(e.backdrop,{})}),ae(g1,{value:t.dialogSurface,children:ae(e.root,{})})]}),x1={root:"fui-DialogSurface",backdrop:"fui-DialogSurface__backdrop"},X3=je("r1u3t6p6","r5coedp",{r:[".r1u3t6p6{inset:0;padding:24px;margin:auto;border-style:none;overflow:unset;border:1px solid var(--colorTransparentStroke);border-radius:var(--borderRadiusXLarge);display:block;-webkit-user-select:unset;-moz-user-select:unset;user-select:unset;visibility:unset;position:fixed;height:fit-content;max-width:600px;max-height:100vh;max-height:100dvh;box-sizing:border-box;background-color:var(--colorNeutralBackground1);color:var(--colorNeutralForeground1);box-shadow:var(--shadow64);}",".r1u3t6p6:focus{outline-style:none;}",".r1u3t6p6:focus-visible{outline-style:none;}",".r1u3t6p6[data-fui-focus-visible]{border-top-color:transparent;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent;}",'.r1u3t6p6[data-fui-focus-visible]::after{content:"";position:absolute;pointer-events:none;z-index:1;border:2px solid var(--colorStrokeFocus2);border-radius:var(--borderRadiusMedium);top:calc(2px * -1);right:calc(2px * -1);bottom:calc(2px * -1);left:calc(2px * -1);}',".r5coedp{inset:0;padding:24px;margin:auto;border-style:none;overflow:unset;border:1px solid var(--colorTransparentStroke);border-radius:var(--borderRadiusXLarge);display:block;-webkit-user-select:unset;-moz-user-select:unset;user-select:unset;visibility:unset;position:fixed;height:fit-content;max-width:600px;max-height:100vh;max-height:100dvh;box-sizing:border-box;background-color:var(--colorNeutralBackground1);color:var(--colorNeutralForeground1);box-shadow:var(--shadow64);}",".r5coedp:focus{outline-style:none;}",".r5coedp:focus-visible{outline-style:none;}",".r5coedp[data-fui-focus-visible]{border-top-color:transparent;border-left-color:transparent;border-bottom-color:transparent;border-right-color:transparent;}",'.r5coedp[data-fui-focus-visible]::after{content:"";position:absolute;pointer-events:none;z-index:1;border:2px solid var(--colorStrokeFocus2);border-radius:var(--borderRadiusMedium);top:calc(2px * -1);left:calc(2px * -1);bottom:calc(2px * -1);right:calc(2px * -1);}'],s:["@media (forced-colors: active){.r1u3t6p6[data-fui-focus-visible]::after{border-top-color:Highlight;border-right-color:Highlight;border-bottom-color:Highlight;border-left-color:Highlight;}}","@media screen and (max-width: 480px){.r1u3t6p6{max-width:100vw;}}","@media screen and (max-height: 359px){.r1u3t6p6{overflow-y:auto;padding-right:calc(24px - 4px);border-right-width:4px;border-top-width:4px;border-bottom-width:4px;}}","@media (forced-colors: active){.r5coedp[data-fui-focus-visible]::after{border-top-color:Highlight;border-left-color:Highlight;border-bottom-color:Highlight;border-right-color:Highlight;}}","@media screen and (max-width: 480px){.r5coedp{max-width:100vw;}}","@media screen and (max-height: 359px){.r5coedp{overflow-y:auto;padding-left:calc(24px - 4px);border-left-width:4px;border-top-width:4px;border-bottom-width:4px;}}"]}),Z3=je("r1e18s3l",null,[".r1e18s3l{inset:0px;background-color:var(--colorBackgroundOverlay);position:fixed;}"]),Y3=Se({nestedDialogBackdrop:{De3pzq:"f1c21dwh"},dialogHidden:{Bkecrkj:"f1aehjj5"}},{d:[".f1c21dwh{background-color:var(--colorTransparentBackground);}",".f1aehjj5{pointer-events:none;}"]}),Q3=e=>{"use no memo";const{isNestedDialog:t,root:o,backdrop:r,open:n,unmountOnClose:i}=e,s=X3(),a=Z3(),c=Y3(),d=!i&&!n;return o.className=de(x1.root,s,d&&c.dialogHidden,o.className),r&&(r.className=de(x1.backdrop,a,t&&c.nestedDialogBackdrop,d&&c.dialogHidden,r.className)),e};function k1(e){return{dialogSurface:!0}}const ys=S.forwardRef((e,t)=>{const o=y1(e,t),r=k1();return Q3(o),qe("useDialogSurfaceStyles_unstable")(o),S1(o,r)});ys.displayName="DialogSurface";const J3=(e,t)=>{var o;return{components:{root:"div"},root:Le(wt((o=e.as)!==null&&o!==void 0?o:"div",{ref:t,...e}),{elementType:"div"})}},e4=e=>ae(e.root,{}),t4={root:"fui-DialogContent"},o4=je("r1v5zwsm",null,{r:[".r1v5zwsm{padding:var(--strokeWidthThick);margin:calc(var(--strokeWidthThick) * -1);font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase300);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase300);overflow-y:auto;min-height:32px;box-sizing:border-box;grid-row-start:2;grid-row-end:2;grid-column-start:1;grid-column-end:4;}"],s:["@media screen and (max-height: 359px){.r1v5zwsm{overflow-y:unset;}}"]}),r4=e=>{"use no memo";const t=o4();return e.root.className=de(t4.root,t,e.root.className),e},Ss=S.forwardRef((e,t)=>{const o=J3(e,t);return r4(o),qe("useDialogContentStyles_unstable")(o),e4(o)});Ss.displayName="DialogContent";const n4=(e,t)=>{const{size:o="medium",vertical:r=!1}=e,n=id({circular:!0,axis:"both"}),i={size:o,vertical:r,components:{root:"div"},root:Le(wt("div",{role:"toolbar",ref:t,...r&&{"aria-orientation":"vertical"},...n,...e}),{elementType:"div"})},[s,a]=i4({checkedValues:e.checkedValues,defaultCheckedValues:e.defaultCheckedValues,onCheckedValueChange:e.onCheckedValueChange}),c=pe((h,f,g,m)=>{if(f&&g){const w=[...s?.[f]||[]];m?w.splice(w.indexOf(g),1):w.push(g),a?.(h,{name:f,checkedItems:w})}}),d=pe((h,f,g,m)=>{f&&g&&a?.(h,{name:f,checkedItems:[g]})});return{...i,handleToggleButton:c,handleRadio:d,checkedValues:s??{}}},i4=e=>{const[t,o]=io({state:e.checkedValues,defaultState:e.defaultCheckedValues,initialState:{}}),{onCheckedValueChange:r}=e,n=pe((i,{name:s,checkedItems:a})=>{r&&r(i,{name:s,checkedItems:a}),o(c=>c?{...c,[s]:a}:{[s]:a})});return[t,n]},F1=Si(void 0),s4={size:"medium",handleToggleButton:()=>null,handleRadio:()=>null,vertical:!1,checkedValues:{}},a4=e=>hs(F1,(t=s4)=>e(t)),l4=(e,t)=>ae(F1.Provider,{value:t.toolbar,children:ae(e.root,{children:e.root.children})}),c4={root:"fui-Toolbar"},u4=Se({root:{mc9l5x:"f22iagw",Bt984gj:"f122n59",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1yqiaad"},vertical:{Beiy3e4:"f1vx9l62",a9b677:"f1acs6jw"},small:{Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"fvz760z"},medium:{Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1yqiaad"},large:{Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1ms6bdn"}},{d:[".f22iagw{display:flex;}",".f122n59{align-items:center;}",[".f1yqiaad{padding:4px 8px;}",{p:-1}],".f1vx9l62{flex-direction:column;}",".f1acs6jw{width:fit-content;}",[".fvz760z{padding:0px 4px;}",{p:-1}],[".f1yqiaad{padding:4px 8px;}",{p:-1}],[".f1ms6bdn{padding:4px 20px;}",{p:-1}]]}),d4=e=>{"use no memo";const t=u4(),{vertical:o,size:r}=e;return e.root.className=de(c4.root,t.root,o&&t.vertical,r==="small"&&!o&&t.small,r==="medium"&&!o&&t.medium,r==="large"&&!o&&t.large,e.root.className),e};function h4(e){const{size:t,handleToggleButton:o,vertical:r,checkedValues:n,handleRadio:i}=e;return{toolbar:{size:t,vertical:r,handleToggleButton:o,handleRadio:i,checkedValues:n}}}const R1=S.forwardRef((e,t)=>{const o=n4(e,t),r=h4(o);return d4(o),qe("useToolbarStyles_unstable")(o),l4(o,r)});R1.displayName="Toolbar";const f4=(e,t)=>{const o=a4(r=>r.vertical);return{components:{root:"div"},root:Le(wt("div",{ref:t,role:"presentation",...e}),{elementType:"div"}),vertical:o}},p4={root:"fui-ToolbarGroup"},g4=Se({root:{mc9l5x:"f22iagw",Bt984gj:"f122n59"},vertical:{Beiy3e4:"f1vx9l62",a9b677:"f1acs6jw"}},{d:[".f22iagw{display:flex;}",".f122n59{align-items:center;}",".f1vx9l62{flex-direction:column;}",".f1acs6jw{width:fit-content;}"]}),m4=e=>{"use no memo";const{vertical:t}=e,o=g4();return e.root.className=de(p4.root,o.root,t&&o.vertical,e.root.className),e},v4=e=>ae(e.root,{children:e.root.children}),Kg=S.forwardRef((e,t)=>{const o=f4(e,t);return m4(o),qe("useToolbarGroupStyles_unstable")(o),v4(o)});Kg.displayName="ToolbarGroup";const b4={scrollState:"none",setScrollState:()=>({})},E1=S.createContext(void 0),Xg=E1.Provider,Zg=()=>{var e;return(e=S.useContext(E1))!==null&&e!==void 0?e:b4},Yg=()=>{const[e,t]=S.useState("none");return{setScrollState:t,scrollState:e}},_1={drawerSizeVar:"--fui-Drawer--size"},w4=Se({start:{h3c5rm:0,vrafjx:0,Bekrc4i:0,u1mtju:["f1xteiwb","fsqykmd"],oyh7mz:["f1vgc2s3","f1e31b4d"],j35jbq:["fvfyk4","frppm18"]},end:{zhjwy3:0,wvpqe5:0,ibv6hh:0,B4g9neb:["fsqykmd","f1xteiwb"],j35jbq:["f1e31b4d","f1vgc2s3"],oyh7mz:["frppm18","fvfyk4"]},bottom:{B5kzvoi:"f1yab3r1",Bhzewxz:"f198g47y"},small:{Bjr0ffy:"f1exhnwo"},medium:{Bjr0ffy:"fqofjzu"},large:{Bjr0ffy:"fce6y3m"},full:{Bjr0ffy:"fsdmzs6"}},{d:[[".f1xteiwb{border-right:var(--strokeWidthThin) solid var(--colorTransparentStroke);}",{p:-1}],[".fsqykmd{border-left:var(--strokeWidthThin) solid var(--colorTransparentStroke);}",{p:-1}],".f1vgc2s3{left:0;}",".f1e31b4d{right:0;}",".fvfyk4{right:auto;}",".frppm18{left:auto;}",[".fsqykmd{border-left:var(--strokeWidthThin) solid var(--colorTransparentStroke);}",{p:-1}],[".f1xteiwb{border-right:var(--strokeWidthThin) solid var(--colorTransparentStroke);}",{p:-1}],".f1yab3r1{bottom:0;}",".f198g47y{top:auto;}",".f1exhnwo{--fui-Drawer--size:320px;}",".fqofjzu{--fui-Drawer--size:592px;}",".fce6y3m{--fui-Drawer--size:940px;}",".fsdmzs6{--fui-Drawer--size:100vw;}"]}),C4=Se({small:{Bjr0ffy:"f1exhnwo"},medium:{Bjr0ffy:"fqofjzu"},large:{Bjr0ffy:"fce6y3m"},full:{Bjr0ffy:"f1rat34m"}},{d:[".f1exhnwo{--fui-Drawer--size:320px;}",".fqofjzu{--fui-Drawer--size:592px;}",".fce6y3m{--fui-Drawer--size:940px;}",".f1rat34m{--fui-Drawer--size:100%;}"]}),P1=({position:e,size:t})=>{const o=w4(),r=C4();return de(o[e],e==="bottom"&&r[t],e!=="bottom"&&o[t])},Qg={small:mt.durationGentle,medium:mt.durationSlow,large:mt.durationSlower,full:mt.durationUltraSlow};function D1(e,t,o){const r=`translate3d(var(${t}), 0, 0)`,n=`translate3d(calc(var(${t}) * -1), 0, 0)`,i=`translate3d(0, var(${t}), 0)`;return e==="start"?o==="ltr"?n:r:e==="end"?o==="ltr"?r:n:e==="bottom"?i:"translate3d(0, 0, 0)"}const T1=ka(({position:e,size:t,dir:o})=>{const r=[{transform:D1(e,_1.drawerSizeVar,o),opacity:0},{transform:"translate3d(0, 0, 0)",opacity:1}],n=Qg[t];return{enter:{keyframes:r,duration:n,easing:mt.curveDecelerateMid},exit:{keyframes:[...r].reverse(),duration:n,easing:mt.curveAccelerateMin}}}),y4=ka(({position:e,size:t,dir:o})=>{const r=[{transform:D1(e,_1.drawerSizeVar,o),boxShadow:`0px ${qo.colorTransparentBackground}`,opacity:0},{transform:"translate3d(0, 0, 0)",boxShadow:qo.shadow64,opacity:1}],n=Qg[t];return{enter:{keyframes:r,duration:n,easing:mt.curveDecelerateMid},exit:{keyframes:[...r].reverse(),duration:n,easing:mt.curveAccelerateMin}}}),S4=ka(({size:e})=>{const t=Qg[e],o=mt.curveLinear;return{enter:Fa({direction:"enter",duration:t,easing:o}),exit:Fa({direction:"exit",duration:t,easing:o})}});function M1(e){const{open:t=!1,size:o="small",position:r="start",unmountOnClose:n=!0}=e;return{size:o,position:r,open:t,unmountOnClose:n}}const x4=je("rl76ifk",null,[".rl76ifk{inset:0px;position:fixed;background-color:var(--colorBackgroundOverlay);}"]),k4=Se({nested:{De3pzq:"f1c21dwh"},drawerHidden:{Bkecrkj:"f1aehjj5"}},{d:[".f1c21dwh{background-color:var(--colorTransparentBackground);}",".f1aehjj5{pointer-events:none;}"]}),F4=e=>{"use no memo";const{isNestedDialog:t,backdrop:o,open:r,unmountOnClose:n}=e,i=x4(),s=k4(),a=!n&&!r;return o&&(o.className=de(i,t&&s.nested,a&&s.drawerHidden,o.className)),e},Jg=S.forwardRef((e,t)=>{const o=y1({...e,as:e.as},t),r=k1();return F4(o),qe("useOverlayDrawerSurfaceStyles_unstable")(o),S1(o,r)});Jg.displayName="OverlayDrawerSurface";function A1(e,t,o){return e===null?null:{...e,children:(r,n)=>e?.children?e.children(t,{...n,...o}):S.createElement(t,{...n,...o},n.children)}}const R4={active:!0,canRender:!0,ref:S.createRef(),type:"idle"},E4=(e,t)=>{const{open:o,size:r,position:n,unmountOnClose:i}=M1(e),{modalType:s="modal",inertTrapFocus:a,onOpenChange:c,backdropMotion:d,surfaceMotion:h,mountNode:f}=e,{dir:g,targetDocument:m}=lt(),{element:b}=IS(f),w=!!(b&&m?.body!==b),y=Np(e.backdrop),C=Le({...e,ref:t,unmountOnClose:i,backdrop:s!=="non-modal"&&y!==null?{...y}:null,backdropMotion:A1(d,S4,{size:r})},{elementType:Jg}),F=Le({open:o,onOpenChange:c,inertTrapFocus:a,modalType:s,unmountOnClose:i,surfaceMotion:A1(h,y4,{position:n,size:r,dir:g}),children:null},{elementType:Gn});return{components:{root:Jg,dialog:Gn},root:C,dialog:F,open:o,size:r,position:n,hasMountNodeElement:w,unmountOnClose:i,mountNode:f,motion:R4}},_4=(e,t)=>ae(Xg,{value:t,children:ae(e.dialog,{children:ae(e.root,{})})}),I1={root:"fui-OverlayDrawer",backdrop:"fui-OverlayDrawer__backdrop"},P4=je("r7dfyj8","rmx02j7",{r:[".r7dfyj8{overflow:hidden;width:var(--fui-Drawer--size);max-width:100vw;height:auto;max-height:100vh;box-sizing:border-box;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;background-color:var(--colorNeutralBackground1);color:var(--colorNeutralForeground1);position:fixed;top:0;bottom:0;}",".r7dfyj8:focus{outline-style:none;}",".r7dfyj8:focus-visible{outline-style:none;}",".r7dfyj8[data-fui-focus-visible]{border-top-color:transparent;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent;}",'.r7dfyj8[data-fui-focus-visible]::after{content:"";position:absolute;pointer-events:none;z-index:1;border:2px solid var(--colorStrokeFocus2);border-radius:var(--borderRadiusMedium);top:calc(2px * -1);right:calc(2px * -1);bottom:calc(2px * -1);left:calc(2px * -1);}',".rmx02j7{overflow:hidden;width:var(--fui-Drawer--size);max-width:100vw;height:auto;max-height:100vh;box-sizing:border-box;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;background-color:var(--colorNeutralBackground1);color:var(--colorNeutralForeground1);position:fixed;top:0;bottom:0;}",".rmx02j7:focus{outline-style:none;}",".rmx02j7:focus-visible{outline-style:none;}",".rmx02j7[data-fui-focus-visible]{border-top-color:transparent;border-left-color:transparent;border-bottom-color:transparent;border-right-color:transparent;}",'.rmx02j7[data-fui-focus-visible]::after{content:"";position:absolute;pointer-events:none;z-index:1;border:2px solid var(--colorStrokeFocus2);border-radius:var(--borderRadiusMedium);top:calc(2px * -1);left:calc(2px * -1);bottom:calc(2px * -1);right:calc(2px * -1);}'],s:["@media (forced-colors: active){.r7dfyj8[data-fui-focus-visible]::after{border-top-color:Highlight;border-right-color:Highlight;border-bottom-color:Highlight;border-left-color:Highlight;}}","@media (forced-colors: active){.rmx02j7[data-fui-focus-visible]::after{border-top-color:Highlight;border-left-color:Highlight;border-bottom-color:Highlight;border-right-color:Highlight;}}"]}),D4=Se({start:{},end:{},bottom:{Bhzewxz:"f198g47y",Bqenvij:"fub80nq",a9b677:"fr97h3j"},absolute:{qhf8xq:"f1euv43f"}},{d:[".f198g47y{top:auto;}",".fub80nq{height:var(--fui-Drawer--size);}",".fr97h3j{width:100vw;}",".f1euv43f{position:absolute;}"]}),T4=e=>{"use no memo";const t=P1(e),o=P4(),r=D4(),n=e.hasMountNodeElement&&r.absolute,i=e.root.backdrop;return e.root.className=de(I1.root,t,o,r[e.position],n,e.root.className),i&&(i.className=de(I1.backdrop,n,i.className)),e},B1=S.forwardRef((e,t)=>{const o=E4(e,t),r=Yg();return T4(o),qe("useDrawerOverlayStyles_unstable")(o),qe("useOverlayDrawerStyles_unstable")(o),_4(o,r)});B1.displayName="OverlayDrawer";const M4={active:!0,canRender:!0,ref:S.createRef(),type:"idle"},A4=(e,t)=>{const{size:o,position:r,open:n,unmountOnClose:i}=M1(e),{separator:s=!1,surfaceMotion:a}=e,{dir:c}=lt(),[d,h]=S.useState(n?"enter":"exit");return{components:{root:"div",surfaceMotion:T1},root:Le(wt("div",{...e,ref:t,"aria-hidden":!i&&!n?!0:void 0}),{elementType:"div"}),open:n,position:r,size:o,separator:s,unmountOnClose:i,animationDirection:d,surfaceMotion:vg(a,{elementType:T1,defaultProps:{position:r,size:o,dir:c,visible:n,appear:i,unmountOnExit:i,onMotionFinish:(f,{direction:g})=>h(g),onMotionStart:(f,{direction:g})=>{g==="enter"&&h("enter")}}}),motion:M4}},I4=(e,t)=>ae(Xg,{value:t,children:ae(e.surfaceMotion,{children:ae(e.root,{})})}),B4={root:"fui-InlineDrawer"},O4=je("rkjj3x6",null,[".rkjj3x6{overflow:hidden;width:var(--fui-Drawer--size);max-width:100vw;height:auto;max-height:100vh;box-sizing:border-box;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;background-color:var(--colorNeutralBackground1);color:var(--colorNeutralForeground1);position:relative;}"]),N4=Se({separatorStart:{h3c5rm:0,vrafjx:0,Bekrc4i:0,u1mtju:["f1cxmi7i","f1j970fk"]},separatorEnd:{zhjwy3:0,wvpqe5:0,ibv6hh:0,B4g9neb:["f1j970fk","f1cxmi7i"]},separatorBottom:{g2u3we:0,icvyot:0,B4j52fo:0,i8vvqc:"f1n3kblk"},start:{},end:{},bottom:{a9b677:"fly5x3f",Bqenvij:"fub80nq"},animationExitStart:{a9b677:"f3tsq5r",Bgfg5da:0,B9xav0g:0,oivjwe:0,Bn0qgzm:0,B4g9neb:0,zhjwy3:0,wvpqe5:0,ibv6hh:0,u1mtju:0,h3c5rm:0,vrafjx:0,Bekrc4i:0,i8vvqc:0,g2u3we:0,icvyot:0,B4j52fo:0,irswps:"f3bhgqh"},animationExitEnd:{a9b677:"f3tsq5r",Bgfg5da:0,B9xav0g:0,oivjwe:0,Bn0qgzm:0,B4g9neb:0,zhjwy3:0,wvpqe5:0,ibv6hh:0,u1mtju:0,h3c5rm:0,vrafjx:0,Bekrc4i:0,i8vvqc:0,g2u3we:0,icvyot:0,B4j52fo:0,irswps:"f3bhgqh"},animationExitBottom:{Bqenvij:"fniina8",Bgfg5da:0,B9xav0g:0,oivjwe:0,Bn0qgzm:0,B4g9neb:0,zhjwy3:0,wvpqe5:0,ibv6hh:0,u1mtju:0,h3c5rm:0,vrafjx:0,Bekrc4i:0,i8vvqc:0,g2u3we:0,icvyot:0,B4j52fo:0,irswps:"f3bhgqh"}},{d:[[".f1cxmi7i{border-right:1px solid var(--colorNeutralBackground3);}",{p:-1}],[".f1j970fk{border-left:1px solid var(--colorNeutralBackground3);}",{p:-1}],[".f1j970fk{border-left:1px solid var(--colorNeutralBackground3);}",{p:-1}],[".f1cxmi7i{border-right:1px solid var(--colorNeutralBackground3);}",{p:-1}],[".f1n3kblk{border-top:1px solid var(--colorNeutralBackground3);}",{p:-1}],".fly5x3f{width:100%;}",".fub80nq{height:var(--fui-Drawer--size);}",".f3tsq5r{width:0;}",[".f3bhgqh{border:none;}",{p:-2}],[".f3bhgqh{border:none;}",{p:-2}],".fniina8{height:0;}",[".f3bhgqh{border:none;}",{p:-2}]]});function L4(e,t){if(e.separator)switch(e.position){case"start":return t.separatorStart;case"end":return t.separatorEnd;case"bottom":return t.separatorBottom;default:return}}function z4(e,t){switch(e.position){case"start":return t.animationExitStart;case"end":return t.animationExitEnd;case"bottom":return t.animationExitBottom;default:return}}const H4=e=>{"use no memo";const t=O4(),o=P1(e),r=N4();return e.root.className=de(B4.root,t,o,L4(e,r),r[e.position],e.animationDirection==="exit"&&z4(e,r),e.root.className),e},O1=S.forwardRef((e,t)=>{const o=A4(e,t),r=Yg();return H4(o),qe("useDrawerInlineStyles_unstable")(o),qe("useInlineDrawerStyles_unstable")(o),I4(o,r)});O1.displayName="InlineDrawer";const V4=(e,t)=>{const o=e.type==="inline"?O1:B1,r=Le({ref:t,...e},{elementType:o});return{components:{root:o},root:r}},G4=(e,t)=>ae(Xg,{value:t,children:ae(e.root,{})}),j4={root:"fui-Drawer"},W4=e=>{"use no memo";return e.root.className=de(j4.root,e.root.className),e},em=S.forwardRef((e,t)=>{const o=V4(e,t),r=Yg();return W4(o),qe("useDrawerStyles_unstable")(o),G4(o,r)});em.displayName="Drawer";const q4=({scrollTop:e,scrollHeight:t,clientHeight:o})=>t<=o?"none":e===0?"top":e+o===t?"bottom":"middle",U4=(e,t)=>{const{targetDocument:o}=lt(),r=o?.defaultView,{setScrollState:n}=Zg(),i=S.useRef(null),s=tt(t,i),[a,c]=Vp(),[d,h]=Vp(),f=S.useCallback(()=>{i.current&&n(q4(i.current))},[n]),g=S.useCallback(()=>{c(),a(f)},[c,a,f]);return Zt(f,[e.children,f]),Zt(()=>{if(!i.current||!r?.ResizeObserver)return;const m=new r.ResizeObserver(()=>d(f));return m.observe(i.current),()=>{m.disconnect(),h()}},[d,h,f,r]),{components:{root:"div"},root:Le(wt("div",{ref:s,...e,onScroll:We(e.onScroll,g)}),{elementType:"div"})}},$4=e=>ae(e.root,{}),K4={root:"fui-DrawerBody"},X4=je("ri6rvx7",null,[".ri6rvx7{padding:0 var(--spacingHorizontalXXL);flex:1;align-self:stretch;position:relative;z-index:1;overflow:auto;}",".ri6rvx7:last-child{padding-bottom:calc(var(--spacingHorizontalXXL) + 1px);}",".ri6rvx7:first-child{padding-top:calc(var(--spacingHorizontalXXL) + 1px);}"]),Z4=e=>{"use no memo";const t=X4();return e.root.className=de(K4.root,t,e.root.className),e},tm=S.forwardRef((e,t)=>{const o=U4(e,t);return Z4(o),qe("useDrawerBodyStyles_unstable")(o),$4(o)});tm.displayName="DrawerBody";const Y4=(e,t)=>{const{scrollState:o}=Zg();return{components:{root:"header"},root:Le(wt("header",{ref:t,role:"none",...e}),{elementType:"header"}),scrollState:o}},Q4=e=>ae(e.root,{}),J4={root:"fui-DrawerHeader"},eH=je("r3ovn4i",null,[".r3ovn4i{width:100%;max-width:100%;padding:var(--spacingVerticalXXL) var(--spacingHorizontalXXL) var(--spacingVerticalS);gap:var(--spacingHorizontalS);align-self:stretch;display:flex;flex-direction:column;box-sizing:border-box;position:relative;z-index:2;}"]),tH=Se({separator:{Dlnsje:"fxnjyrl",E3zdtr:"f1mdlcz9",B1piin3:["f15yvnhg","f1n6gb5g"],Eqx8gd:["f1n6gb5g","f15yvnhg"],Bp15pi3:"f1564nw5",Bjyk6c5:"fdlpgxj",F2fol1:"f15cmg8x",Ba2ppi3:"f3f8dgl",B1dyfl9:"fjvo4va",Bsft5z2:"f13zj6fq",By385i5:"fo72kxq"},separatorVisible:{Bp15pi3:"fjsqi2x"}},{d:[".fxnjyrl::after{height:1px;}",".f1mdlcz9::after{position:absolute;}",".f15yvnhg::after{right:0;}",".f1n6gb5g::after{left:0;}",".f1564nw5::after{opacity:0;}",".fdlpgxj::after{background-color:var(--colorNeutralStroke1);}",".f15cmg8x::after{transition-duration:var(--durationNormal);}",".f3f8dgl::after{transition-property:opacity;}",".fjvo4va::after{transition-timing-function:var(--curveEasyEase);}",'.f13zj6fq::after{content:"";}',".fo72kxq::after{bottom:0;}",".fjsqi2x::after{opacity:1;}"]}),oH=e=>{"use no memo";const t=eH(),o=tH();return e.root.className=de(J4.root,t,e.scrollState!=="none"&&o.separator,["middle","bottom"].includes(e.scrollState)&&o.separatorVisible,e.root.className),e},om=S.forwardRef((e,t)=>{const o=Y4(e,t);return oH(o),qe("useDrawerHeaderStyles_unstable")(o),Q4(o)});om.displayName="DrawerHeader";const rH=(e,t)=>{const{children:o,heading:r}=e,n=ur(i=>i.dialogTitleId);return{components:{root:"div",heading:"h2",action:"div"},root:Le(wt("div",{ref:t,...e}),{elementType:"div"}),heading:et(r,{defaultProps:{id:n,children:o},renderByDefault:!0,elementType:"h2"}),action:et(e.action,{elementType:"div"})}},nH=e=>gt(e.root,{children:[e.heading&&ae(e.heading,{}),e.action&&ae(e.action,{})]}),rm={root:"fui-DrawerHeaderTitle",heading:"fui-DrawerHeaderTitle__heading",action:"fui-DrawerHeaderTitle__action"},iH=Se({root:{mc9l5x:"f22iagw",Brf1p80:"f1869bpl",Bt984gj:"f122n59",i8kkvl:"fsnqrgy"},action:{t21cq0:["faqnl2i","fd75udd"]}},{d:[".f22iagw{display:flex;}",".f1869bpl{justify-content:space-between;}",".f122n59{align-items:center;}",".fsnqrgy{column-gap:var(--spacingHorizontalS);}",".faqnl2i{margin-right:calc(var(--spacingHorizontalS) * -1);}",".fd75udd{margin-left:calc(var(--spacingHorizontalS) * -1);}"]}),sH=e=>{"use no memo";const t=iH(),{heading:o={},action:r,components:n}=e;return w1({components:{root:n.heading,action:n.action},root:o,action:r}),e.root.className=de(rm.root,t.root,e.root.className),e.heading&&(e.heading.className=de(rm.heading,e.heading.className)),e.action&&(e.action.className=de(rm.action,t.action,e.action.className)),e},N1=S.forwardRef((e,t)=>{const o=rH(e,t);return sH(o),qe("useDrawerHeaderTitleStyles_unstable")(o),nH(o)});N1.displayName="DrawerHeaderTitle";const aH=(e,t)=>({components:{root:"nav"},root:Le(wt("nav",{ref:t,...e}),{elementType:"nav"})}),lH=e=>ae(e.root,{}),cH={root:"fui-DrawerHeaderNavigation"},uH=je("r1ig4pwh",null,[".r1ig4pwh{margin:calc(var(--spacingVerticalS) * -1) calc(var(--spacingHorizontalL) * -1);}"]),dH=e=>{"use no memo";const t=uH();return e.root.className=de(cH.root,t,e.root.className),e},L1=S.forwardRef((e,t)=>{const o=aH(e,t);return dH(o),qe("useDrawerHeaderNavigationStyles_unstable")(o),lH(o)});L1.displayName="DrawerHeaderNavigation";const hH=(e,t)=>{const{scrollState:o}=Zg();return{components:{root:"footer"},root:Le(wt("footer",{ref:t,role:"none",...e}),{elementType:"footer"}),scrollState:o}},fH=e=>ae(e.root,{}),pH={root:"fui-DrawerFooter"},gH=je("r1snvl2j",null,[".r1snvl2j{width:100%;max-width:100%;padding:var(--spacingVerticalL) var(--spacingHorizontalXXL) var(--spacingVerticalXXL);display:flex;justify-content:flex-start;align-items:center;column-gap:var(--spacingHorizontalS);box-sizing:border-box;position:relative;z-index:2;}"]),mH=Se({separator:{Baz25je:"f16b62f1",Brfgrao:"f1j7ml58",mdwyqc:["f1f351id","f1fzr1x6"],Fbdkly:["f1fzr1x6","f1f351id"],vz82u:"f1dhznln",cmx5o7:"f1p5zmk",h7gv66:"f1ljjo4k",B8bqphf:"ffd2d9j",wjn42g:"ffdt3s5",Ftih45:"f1wl9k8s",Bciustq:"ffi060y"},separatorVisible:{vz82u:"f1b3qyzu"}},{d:[".f16b62f1::before{height:1px;}",".f1j7ml58::before{position:absolute;}",".f1f351id::before{right:0;}",".f1fzr1x6::before{left:0;}",".f1dhznln::before{opacity:0;}",".f1p5zmk::before{background-color:var(--colorNeutralStroke1);}",".f1ljjo4k::before{transition-duration:var(--durationNormal);}",".ffd2d9j::before{transition-property:opacity;}",".ffdt3s5::before{transition-timing-function:var(--curveEasyEase);}",'.f1wl9k8s::before{content:"";}',".ffi060y::before{top:0;}",".f1b3qyzu::before{opacity:1;}"]}),vH=e=>{"use no memo";const t=gH(),o=mH();return e.root.className=de(pH.root,t,e.scrollState!=="none"&&o.separator,["middle","top"].includes(e.scrollState)&&o.separatorVisible,e.root.className),e},nm=S.forwardRef((e,t)=>{const o=hH(e,t);return vH(o),qe("useDrawerFooterStyles_unstable")(o),fH(o)});nm.displayName="DrawerFooter";const bH=(e,t)=>{const{size:o="medium",disabled:r=!1,root:n,contentBefore:i,dismiss:s,contentAfter:a,value:c,defaultValue:d,...h}=e,f=S.useRef(null),g=S.useRef(null),[m,b]=io({state:c,defaultState:d,initialState:""}),[w,y]=S.useState(!1),k=S.useCallback(()=>{y(!0)},[y]),C=S.useCallback(D=>{var M;y(!!(!((M=f.current)===null||M===void 0)&&M.contains(D.relatedTarget)))},[y]),F=Np(n),E=pe(D=>{var M,A;if(Lp(s)){var O;(O=s.onClick)===null||O===void 0||O.call(s,D)}const K="";b(K),(M=e.onChange)===null||M===void 0||M.call(e,D,{value:K}),(A=g.current)===null||A===void 0||A.focus()}),_=e1({type:"search",disabled:r,size:o,value:m,root:Le({...F,ref:tt(F?.ref,f),onFocus:We(F?.onFocus,k),onBlur:We(F?.onBlur,C)},{elementType:"span"}),contentBefore:et(i,{renderByDefault:!0,defaultProps:{children:S.createElement(mB,null)},elementType:"span"}),contentAfter:et(a,{renderByDefault:!0,elementType:"span"}),...h,onChange:pe(D=>{var M;const A=D.target.value;(M=e.onChange)===null||M===void 0||M.call(e,D,{value:A}),b(A)})},tt(g,t)),P={..._,components:{..._.components,dismiss:"span"},dismiss:et(s,{defaultProps:{children:S.createElement(mg,null),role:"button","aria-label":"clear",tabIndex:-1},renderByDefault:!0,elementType:"span"}),disabled:r,focused:w,size:o};return P.dismiss&&(P.dismiss.onClick=E),P},wH=e=>gt(e.root,{children:[e.contentBefore&&ae(e.contentBefore,{}),ae(e.input,{}),e.contentAfter&>(e.contentAfter,{children:[e.contentAfter.children,e.dismiss&&ae(e.dismiss,{})]})]}),vc={root:"fui-SearchBox",dismiss:"fui-SearchBox__dismiss",contentAfter:"fui-SearchBox__contentAfter",contentBefore:"fui-SearchBox__contentBefore",input:"fui-SearchBox__input"},CH=Se({small:{i8kkvl:"fjuset5",B2u0y6b:"f1xzfw5u",uwmqm3:["fk8j09s","fdw0yi8"],z189sj:["fdw0yi8","fk8j09s"]},medium:{i8kkvl:"fjuset5",B2u0y6b:"f1xzfw5u",uwmqm3:["f1f5gg8d","f1vdfbxk"],z189sj:["f1vdfbxk","f1f5gg8d"]},large:{i8kkvl:"fjuset5",B2u0y6b:"f1xzfw5u",uwmqm3:["f1ng84yb","f11gcy0p"],z189sj:["f11gcy0p","f1ng84yb"]},input:{uwmqm3:["fk8j09s","fdw0yi8"],z189sj:["fhxju0i","f1cnd47f"],Boqhc8c:"f18izjht",B8uat0v:"fcoa6sg"},unfocusedNoContentAfter:{z189sj:["fhxju0i","f1cnd47f"]}},{d:[".fjuset5{column-gap:0;}",".f1xzfw5u{max-width:468px;}",".fk8j09s{padding-left:var(--spacingHorizontalSNudge);}",".fdw0yi8{padding-right:var(--spacingHorizontalSNudge);}",".f1f5gg8d{padding-left:var(--spacingHorizontalS);}",".f1vdfbxk{padding-right:var(--spacingHorizontalS);}",".f1ng84yb{padding-left:var(--spacingHorizontalMNudge);}",".f11gcy0p{padding-right:var(--spacingHorizontalMNudge);}",".fhxju0i{padding-right:0;}",".f1cnd47f{padding-left:0;}",".f18izjht::-webkit-search-decoration{display:none;}",".fcoa6sg::-webkit-search-cancel-button{display:none;}"]}),yH=Se({small:{z189sj:["fdw0yi8","fk8j09s"]},medium:{z189sj:["f1vdfbxk","f1f5gg8d"]},large:{z189sj:["f11gcy0p","f1ng84yb"]}},{d:[".fdw0yi8{padding-right:var(--spacingHorizontalSNudge);}",".fk8j09s{padding-left:var(--spacingHorizontalSNudge);}",".f1vdfbxk{padding-right:var(--spacingHorizontalS);}",".f1f5gg8d{padding-left:var(--spacingHorizontalS);}",".f11gcy0p{padding-right:var(--spacingHorizontalMNudge);}",".f1ng84yb{padding-left:var(--spacingHorizontalMNudge);}"]}),SH=Se({contentAfter:{uwmqm3:["f1uw59to","fw5db7e"],i8kkvl:"f1ufnopg"},rest:{Bqenvij:"fniina8",a9b677:"f3tsq5r",uwmqm3:["f1cnd47f","fhxju0i"],B68tc82:0,Bmxbyg5:0,Bpg54ce:"f1a3p1vp"}},{d:[".f1uw59to{padding-left:var(--spacingHorizontalM);}",".fw5db7e{padding-right:var(--spacingHorizontalM);}",".f1ufnopg{column-gap:var(--spacingHorizontalXS);}",".fniina8{height:0;}",".f3tsq5r{width:0;}",".f1cnd47f{padding-left:0;}",".fhxju0i{padding-right:0;}",[".f1a3p1vp{overflow:hidden;}",{p:-1}]]}),xH=je("r1pvzcuu",null,[".r1pvzcuu{box-sizing:border-box;color:var(--colorNeutralForeground3);display:flex;cursor:pointer;}",".r1pvzcuu>svg{font-size:20px;}"]),kH=Se({disabled:{sj55zd:"f1s2aq7o"},small:{Duoase:"f3qv9w"},medium:{},large:{Duoase:"f16u2scb"}},{d:[".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".f3qv9w>svg{font-size:16px;}",".f16u2scb>svg{font-size:24px;}"]}),FH=e=>{"use no memo";const{disabled:t,focused:o,size:r}=e,n=CH(),i=yH(),s=SH(),a=xH(),c=kH();return e.root.className=de(vc.root,n[r],!o&&n.unfocusedNoContentAfter,e.root.className),e.input.className=de(vc.input,n.input,!o&&i[r],e.input.className),e.dismiss&&(e.dismiss.className=de(vc.dismiss,a,t&&c.disabled,c[r],e.dismiss.className)),e.contentBefore&&(e.contentBefore.className=de(vc.contentBefore,e.contentBefore.className)),e.contentAfter?e.contentAfter.className=de(vc.contentAfter,s.contentAfter,!o&&s.rest,e.contentAfter.className):e.dismiss&&(e.dismiss.className=de(e.dismiss.className,s.contentAfter)),t1(e),e},z1=S.forwardRef((e,t)=>{const o=bH(e,t);return FH(o),qe("useSearchBoxStyles_unstable")(o),wH(o)});z1.displayName="SearchBox";function RH(e={selectionMode:"multiselect"}){const{selectionMode:t,defaultSelectedItems:o,onSelectionChange:r}=e,[n,i]=io({state:e.selectedItems,defaultState:o,initialState:[]}),[s,a]=a2({selectionMode:t,defaultSelectedItems:o,selectedItems:n,onSelectionChange:(b,w)=>{i(w.selectedItems),r?.(b,w)}}),c=pe((b,w)=>a.toggleItem(b,w)),d=pe((b,w)=>{a.toggleAllItems(b,w)}),h=pe((b,w)=>a.deselectItem(b,w)),f=pe((b,w)=>a.selectItem(b,w)),g=pe(b=>a.clearItems(b));return{selectedItems:S.useMemo(()=>Array.from(s),[s]),toggleItem:c,toggleAllItems:d,deselectItem:h,selectItem:f,setSelectedItems:i,isSelected:b=>a.isSelected(b),clearSelection:g}}const EH=(e,t)=>e==="composite"?"grid":t?"listbox":"list",_H=e=>{switch(e){case"list":return"listitem";case"listbox":return"option";case"grid":return"row";default:return"listitem"}},PH="ul",DH=(e,t)=>{const{navigationMode:o,selectionMode:r,selectedItems:n,defaultSelectedItems:i,onSelectionChange:s}=e,a=e.as||o==="composite"?"div":PH,c=id({axis:"vertical",memorizeCurrent:!0}),[d,h]=io({state:n,defaultState:i,initialState:[]}),f=pe((y,k)=>{const C=Array.from(k.selectedItems);h(C),s?.(y,{event:y,type:"change",selectedItems:C})}),g=RH({onSelectionChange:f,selectionMode:r||"multiselect",selectedItems:d}),m=e.role||EH(o,!!r),b=_H(m);wa();const w=pe(y=>{});return{components:{root:a},root:Le(wt(a,{ref:t,role:m,...r&&{"aria-multiselectable":r==="multiselect"?!0:void 0},...c,...e}),{elementType:a}),listItemRole:b,validateListItem:w,navigationMode:o,selection:r?g:void 0}},TH={selection:void 0,validateListItem:()=>{}},H1=Si(void 0),MH=H1.Provider,Td=e=>hs(H1,(t=TH)=>e(t)),V1=S.createContext(void 0),AH=V1.Provider,IH=()=>S.useContext(V1)||{navigationMode:void 0,listItemRole:"listitem"},BH=(e,t)=>ae(MH,{value:t.listContext,children:ae(AH,{value:t.synchronousContext,children:ae(e.root,{})})}),OH={root:"fui-List"},NH=je("r1m6yby2",null,[".r1m6yby2{padding:0;margin:0;text-indent:0;list-style-type:none;}"]),LH=e=>{"use no memo";const t=NH();return e.root.className=de(OH.root,t,e.root.className),e};function zH(e){const{selection:t,navigationMode:o,listItemRole:r,validateListItem:n}=e,i={selection:t,navigationMode:o,validateListItem:n},s=S.useMemo(()=>({listItemRole:r,navigationMode:o}),[r,o]);return{listContext:i,synchronousContext:s}}const G1=S.forwardRef((e,t)=>{const o=DH(e,t),r=zH(o);return LH(o),qe("useListStyles_unstable")(o),BH(o,r)});G1.displayName="List";const j1="ListItemAction",HH=e=>new CustomEvent(j1,{cancelable:!0,bubbles:!0,detail:{originalEvent:e}}),VH="li",GH=(e,t)=>{const o=Go("listItem"),{value:r=o,onKeyDown:n,onClick:i,tabIndex:s,role:a,onAction:c,disabledSelection:d}=e,h=Td(I=>{var X;return(X=I.selection)===null||X===void 0?void 0:X.toggleItem}),{navigationMode:f,listItemRole:g}=IH(),m=Td(I=>!!I.selection);var b;const w=(b=Td(I=>{var X;return(X=I.selection)===null||X===void 0?void 0:X.isSelected(r)}))!==null&&b!==void 0?b:!1,y=Td(I=>I.validateListItem),k=e.as||f==="composite"?"div":VH,C=a||g,F=!!(m||f||s===0),E=S.useRef(null),_=S.useRef(null),P=pe(I=>{c?.(I,{event:I,value:r,type:j1}),!I.defaultPrevented&&m&&!d&&h?.(I.detail.originalEvent,r)});S.useEffect(()=>{E.current&&y(E.current)},[y]);const D=I=>{const X=HH(I);P(X),I.target.dispatchEvent(X)},M=NA({ignoreDefaultKeydown:{Enter:!0},tabBehavior:"limited-trap-focus"}),A=pe(I=>{i?.(I),!(I.defaultPrevented||ma(_.current,I.target))&&D(I)}),O=pe(I=>{if(n?.(I),!I.defaultPrevented){if(I.target!==I.currentTarget){if(F){switch(I.key){case ud:I.target.dispatchEvent(new Yp({action:oc.Escape}));break;case cd:case hd:I.preventDefault(),I.target.dispatchEvent(new Yp({action:oc.Escape})),I.currentTarget.dispatchEvent(new N2({key:Ot[I.key]}))}return}return}switch(I.key){case sn:I.preventDefault(),m?d||h?.(I,r):D(I);break;case fs:D(I);break;case dd:f==="composite"&&I.target.dispatchEvent(new Yp({action:oc.Enter}));break}}}),K=pe((I,X)=>{!m||I.defaultPrevented||h?.(I,r)}),W=id({axis:"horizontal"}),L=qA(F?W:{},M,e),V=Le(wt(k,{ref:tt(E,t),tabIndex:F?0:void 0,role:C,id:String(r),...m&&{"aria-selected":w,"aria-disabled":d&&!c||void 0},...e,...L,onKeyDown:O,onClick:m||i||c?A:void 0}),{elementType:k}),U=et(e.checkmark,{defaultProps:{checked:w,tabIndex:-1,disabled:d},renderByDefault:m,elementType:Rd}),$=tt(U?.ref,_);return U&&(U.onChange=We(U.onChange,K),U.ref=$),{components:{root:k,checkmark:Rd},root:V,checkmark:U,disabled:d&&!c,selectable:m,navigable:F}},jH=e=>gt(e.root,{children:[e.checkmark&&ae(e.checkmark,{}),e.root.children]}),W1={root:"fui-ListItem",checkmark:"fui-ListItem__checkmark"},WH=je("rikgcmv",null,[".rikgcmv{padding:0;margin:0;text-indent:0;list-style-type:none;}",".rikgcmv[data-fui-focus-visible]{outline:var(--strokeWidthThick) solid var(--colorStrokeFocus2);border-radius:var(--borderRadiusMedium);}"]),qH=Se({root:{qb2dma:"f7nlbp4",Bpb5tq4:0,Biccaaf:0,Gaeyjg:0,ldoezw:0,B6gmeee:"f1bgo3o3"}},{d:[".f7nlbp4{align-self:center;}",[".f1bgo3o3 .fui-Checkbox__indicator{margin:4px;}",{p:-1}]]}),UH=Se({rootClickableOrSelectable:{mc9l5x:"f22iagw",Bceei9c:"f1k6fduh"},disabled:{Bceei9c:"f158kwzp"}},{d:[".f22iagw{display:flex;}",".f1k6fduh{cursor:pointer;}",".f158kwzp{cursor:default;}"]}),$H=e=>{"use no memo";const t=WH(),o=qH(),r=UH();return e.root.className=de(W1.root,t,(e.selectable||e.navigable)&&r.rootClickableOrSelectable,e.disabled&&r.disabled,e.root.className),e.checkmark&&(e.checkmark.className=de(W1.checkmark,o.root,e.checkmark.className)),e},q1=S.forwardRef((e,t)=>{const o=GH(e,t);return $H(o),qe("useListItemStyles_unstable")(o),jH(o)});q1.displayName="ListItem";function Qe(e){for(var t=arguments.length,o=new Array(t>1?t-1:0),r=1;r<t;r++)o[r-1]=arguments[r];throw new Error(typeof e=="number"?"[MobX] minified error nr: "+e+(o.length?" "+o.map(String).join(","):"")+". Find the full error at: https://github.com/mobxjs/mobx/blob/main/packages/mobx/src/errors.ts":"[MobX] "+e)}var KH={};function Md(){return typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:KH}var U1=Object.assign,Ad=Object.getOwnPropertyDescriptor,un=Object.defineProperty,Id=Object.prototype,im=[];Object.freeze(im);var $1={};Object.freeze($1);var XH=typeof Proxy<"u",ZH=Object.toString();function K1(){XH||Qe("Proxy not available")}function X1(e){var t=!1;return function(){if(!t)return t=!0,e.apply(this,arguments)}}var Ia=function(){};function zr(e){return typeof e=="function"}function xs(e){var t=typeof e;switch(t){case"string":case"symbol":case"number":return!0}return!1}function Bd(e){return e!==null&&typeof e=="object"}function jn(e){if(!Bd(e))return!1;var t=Object.getPrototypeOf(e);if(t==null)return!0;var o=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return typeof o=="function"&&o.toString()===ZH}function Z1(e){var t=e?.constructor;return t?t.name==="GeneratorFunction"||t.displayName==="GeneratorFunction":!1}function bc(e,t,o){un(e,t,{enumerable:!1,writable:!0,configurable:!0,value:o})}function Y1(e,t,o){un(e,t,{enumerable:!1,writable:!1,configurable:!0,value:o})}function ks(e,t){var o="isMobX"+e;return t.prototype[o]=!0,function(r){return Bd(r)&&r[o]===!0}}function Ba(e){return e!=null&&Object.prototype.toString.call(e)==="[object Map]"}function YH(e){var t=Object.getPrototypeOf(e),o=Object.getPrototypeOf(t),r=Object.getPrototypeOf(o);return r===null}function Wn(e){return e!=null&&Object.prototype.toString.call(e)==="[object Set]"}var Q1=typeof Object.getOwnPropertySymbols<"u";function QH(e){var t=Object.keys(e);if(!Q1)return t;var o=Object.getOwnPropertySymbols(e);return o.length?[].concat(t,o.filter(function(r){return Id.propertyIsEnumerable.call(e,r)})):t}var Oa=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Q1?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames;function J1(e){return e===null?null:typeof e=="object"?""+e:e}function qn(e,t){return Id.hasOwnProperty.call(e,t)}var JH=Object.getOwnPropertyDescriptors||function(t){var o={};return Oa(t).forEach(function(r){o[r]=Ad(t,r)}),o};function Ko(e,t){return!!(e&t)}function Xo(e,t,o){return o?e|=t:e&=~t,e}function ex(e,t){(t==null||t>e.length)&&(t=e.length);for(var o=0,r=Array(t);o<t;o++)r[o]=e[o];return r}function eV(e,t){for(var o=0;o<t.length;o++){var r=t[o];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,oV(r.key),r)}}function Na(e,t,o){return t&&eV(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function La(e,t){var o=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(o)return(o=o.call(e)).next.bind(o);if(Array.isArray(e)||(o=rV(e))||t){o&&(e=o);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
11
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Fs(){return Fs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)({}).hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},Fs.apply(null,arguments)}function tx(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,sm(e,t)}function sm(e,t){return sm=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(o,r){return o.__proto__=r,o},sm(e,t)}function tV(e,t){if(typeof e!="object"||!e)return e;var o=e[Symbol.toPrimitive];if(o!==void 0){var r=o.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function oV(e){var t=tV(e,"string");return typeof t=="symbol"?t:t+""}function rV(e,t){if(e){if(typeof e=="string")return ex(e,t);var o={}.toString.call(e).slice(8,-1);return o==="Object"&&e.constructor&&(o=e.constructor.name),o==="Map"||o==="Set"?Array.from(e):o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?ex(e,t):void 0}}var dn=Symbol("mobx-stored-annotations");function hn(e){function t(o,r){if(Cc(r))return e.decorate_20223_(o,r);wc(o,r,e)}return Object.assign(t,e)}function wc(e,t,o){qn(e,dn)||bc(e,dn,Fs({},e[dn])),uV(o)||(e[dn][t]=o)}function nV(e){return qn(e,dn)||bc(e,dn,Fs({},e[dn])),e[dn]}function Cc(e){return typeof e=="object"&&typeof e.kind=="string"}var Be=Symbol("mobx administration"),Ri=(function(){function e(o){o===void 0&&(o="Atom"),this.name_=void 0,this.flags_=0,this.observers_=new Set,this.lastAccessedBy_=0,this.lowestObserverState_=rt.NOT_TRACKING_,this.onBOL=void 0,this.onBUOL=void 0,this.name_=o}var t=e.prototype;return t.onBO=function(){this.onBOL&&this.onBOL.forEach(function(r){return r()})},t.onBUO=function(){this.onBUOL&&this.onBUOL.forEach(function(r){return r()})},t.reportObserved=function(){return Cx(this)},t.reportChanged=function(){dr(),yx(this),hr()},t.toString=function(){return this.name_},Na(e,[{key:"isBeingObserved",get:function(){return Ko(this.flags_,e.isBeingObservedMask_)},set:function(r){this.flags_=Xo(this.flags_,e.isBeingObservedMask_,r)}},{key:"isPendingUnobservation",get:function(){return Ko(this.flags_,e.isPendingUnobservationMask_)},set:function(r){this.flags_=Xo(this.flags_,e.isPendingUnobservationMask_,r)}},{key:"diffValue",get:function(){return Ko(this.flags_,e.diffValueMask_)?1:0},set:function(r){this.flags_=Xo(this.flags_,e.diffValueMask_,r===1)}}])})();Ri.isBeingObservedMask_=1,Ri.isPendingUnobservationMask_=2,Ri.diffValueMask_=4;var am=ks("Atom",Ri);function ox(e,t,o){t===void 0&&(t=Ia),o===void 0&&(o=Ia);var r=new Ri(e);return t!==Ia&&g6(r,t),o!==Ia&&Rx(r,o),r}function iV(e,t){return Xx(e,t)}function sV(e,t){return Object.is?Object.is(e,t):e===t?e!==0||1/e===1/t:e!==e&&t!==t}var Od={structural:iV,default:sV};function Rs(e,t,o){return Mx(e)?e:Array.isArray(e)?eo.array(e,{name:o}):jn(e)?eo.object(e,void 0,{name:o}):Ba(e)?eo.map(e,{name:o}):Wn(e)?eo.set(e,{name:o}):typeof e=="function"&&!Ha(e)&&!Fc(e)?Z1(e)?Va(e):kc(o,e):e}function aV(e,t,o){if(e==null||oh(e)||eh(e)||Ds(e)||gn(e))return e;if(Array.isArray(e))return eo.array(e,{name:o,deep:!1});if(jn(e))return eo.object(e,void 0,{name:o,deep:!1});if(Ba(e))return eo.map(e,{name:o,deep:!1});if(Wn(e))return eo.set(e,{name:o,deep:!1})}function Nd(e){return e}function lV(e,t){return Xx(e,t)?t:e}var cV="override";function uV(e){return e.annotationType_===cV}function yc(e,t){return{annotationType_:e,options_:t,make_:dV,extend_:hV,decorate_20223_:fV}}function dV(e,t,o,r){var n;if((n=this.options_)!=null&&n.bound)return this.extend_(e,t,o,!1)===null?0:1;if(r===e.target_)return this.extend_(e,t,o,!1)===null?0:2;if(Ha(o.value))return 1;var i=rx(e,this,t,o,!1);return un(r,t,i),2}function hV(e,t,o,r){var n=rx(e,this,t,o);return e.defineProperty_(t,n,r)}function fV(e,t){var o=t.kind,r=t.name,n=t.addInitializer,i=this,s=function(d){var h,f,g,m;return Es((h=(f=i.options_)==null?void 0:f.name)!=null?h:r.toString(),d,(g=(m=i.options_)==null?void 0:m.autoAction)!=null?g:!1)};if(o=="field")return function(c){var d,h=c;return Ha(h)||(h=s(h)),(d=i.options_)!=null&&d.bound&&(h=h.bind(this),h.isMobxAction=!0),h};if(o=="method"){var a;return Ha(e)||(e=s(e)),(a=this.options_)!=null&&a.bound&&n(function(){var c=this,d=c[r].bind(c);d.isMobxAction=!0,c[r]=d}),e}Qe("Cannot apply '"+i.annotationType_+"' to '"+String(r)+"' (kind: "+o+"):"+(`
|
|
12
|
+
'`+i.annotationType_+"' can only be used on properties with a function value."))}function pV(e,t,o,r){t.annotationType_,r.value}function rx(e,t,o,r,n){var i,s,a,c,d,h,f;n===void 0&&(n=ve.safeDescriptors),pV(e,t,o,r);var g=r.value;if((i=t.options_)!=null&&i.bound){var m;g=g.bind((m=e.proxy_)!=null?m:e.target_)}return{value:Es((s=(a=t.options_)==null?void 0:a.name)!=null?s:o.toString(),g,(c=(d=t.options_)==null?void 0:d.autoAction)!=null?c:!1,(h=t.options_)!=null&&h.bound?(f=e.proxy_)!=null?f:e.target_:void 0),configurable:n?e.isPlainObject_:!0,enumerable:!1,writable:!n}}function nx(e,t){return{annotationType_:e,options_:t,make_:gV,extend_:mV,decorate_20223_:vV}}function gV(e,t,o,r){var n;if(r===e.target_)return this.extend_(e,t,o,!1)===null?0:2;if((n=this.options_)!=null&&n.bound&&(!qn(e.target_,t)||!Fc(e.target_[t]))&&this.extend_(e,t,o,!1)===null)return 0;if(Fc(o.value))return 1;var i=ix(e,this,t,o,!1,!1);return un(r,t,i),2}function mV(e,t,o,r){var n,i=ix(e,this,t,o,(n=this.options_)==null?void 0:n.bound);return e.defineProperty_(t,i,r)}function vV(e,t){var o,r=t.name,n=t.addInitializer;return Fc(e)||(e=Va(e)),(o=this.options_)!=null&&o.bound&&n(function(){var i=this,s=i[r].bind(i);s.isMobXFlow=!0,i[r]=s}),e}function bV(e,t,o,r){t.annotationType_,r.value}function ix(e,t,o,r,n,i){i===void 0&&(i=ve.safeDescriptors),bV(e,t,o,r);var s=r.value;if(Fc(s)||(s=Va(s)),n){var a;s=s.bind((a=e.proxy_)!=null?a:e.target_),s.isMobXFlow=!0}return{value:s,configurable:i?e.isPlainObject_:!0,enumerable:!1,writable:!i}}function lm(e,t){return{annotationType_:e,options_:t,make_:wV,extend_:CV,decorate_20223_:yV}}function wV(e,t,o){return this.extend_(e,t,o,!1)===null?0:1}function CV(e,t,o,r){return SV(e,this,t,o),e.defineComputedProperty_(t,Fs({},this.options_,{get:o.get,set:o.set}),r)}function yV(e,t){var o=this,r=t.name,n=t.addInitializer;return n(function(){var i=Ts(this)[Be],s=Fs({},o.options_,{get:e,context:this});s.name||(s.name="ObservableObject."+r.toString()),i.values_.set(r,new Hr(s))}),function(){return this[Be].getObservablePropValue_(r)}}function SV(e,t,o,r){t.annotationType_,r.get}function Ld(e,t){return{annotationType_:e,options_:t,make_:xV,extend_:kV,decorate_20223_:FV}}function xV(e,t,o){return this.extend_(e,t,o,!1)===null?0:1}function kV(e,t,o,r){var n,i;return RV(e,this),e.defineObservableProperty_(t,o.value,(n=(i=this.options_)==null?void 0:i.enhancer)!=null?n:Rs,r)}function FV(e,t){var o=this,r=t.kind,n=t.name,i=new WeakSet;function s(a,c){var d,h,f=Ts(a)[Be],g=new _s(c,(d=(h=o.options_)==null?void 0:h.enhancer)!=null?d:Rs,"ObservableObject."+n.toString(),!1);f.values_.set(n,g),i.add(a)}if(r=="accessor")return{get:function(){return i.has(this)||s(this,e.get.call(this)),this[Be].getObservablePropValue_(n)},set:function(c){return i.has(this)||s(this,c),this[Be].setObservablePropValue_(n,c)},init:function(c){return i.has(this)||s(this,c),c}}}function RV(e,t,o,r){t.annotationType_}var EV="true",_V=sx();function sx(e){return{annotationType_:EV,options_:e,make_:PV,extend_:DV,decorate_20223_:TV}}function PV(e,t,o,r){var n,i;if(o.get)return Vd.make_(e,t,o,r);if(o.set){var s=Ha(o.set)?o.set:Es(t.toString(),o.set);return r===e.target_?e.defineProperty_(t,{configurable:ve.safeDescriptors?e.isPlainObject_:!0,set:s})===null?0:2:(un(r,t,{configurable:!0,set:s}),2)}if(r!==e.target_&&typeof o.value=="function"){var a;if(Z1(o.value)){var c,d=(c=this.options_)!=null&&c.autoBind?Va.bound:Va;return d.make_(e,t,o,r)}var h=(a=this.options_)!=null&&a.autoBind?kc.bound:kc;return h.make_(e,t,o,r)}var f=((n=this.options_)==null?void 0:n.deep)===!1?eo.ref:eo;if(typeof o.value=="function"&&(i=this.options_)!=null&&i.autoBind){var g;o.value=o.value.bind((g=e.proxy_)!=null?g:e.target_)}return f.make_(e,t,o,r)}function DV(e,t,o,r){var n,i;if(o.get)return Vd.extend_(e,t,o,r);if(o.set)return e.defineProperty_(t,{configurable:ve.safeDescriptors?e.isPlainObject_:!0,set:Es(t.toString(),o.set)},r);if(typeof o.value=="function"&&(n=this.options_)!=null&&n.autoBind){var s;o.value=o.value.bind((s=e.proxy_)!=null?s:e.target_)}var a=((i=this.options_)==null?void 0:i.deep)===!1?eo.ref:eo;return a.extend_(e,t,o,r)}function TV(e,t){Qe("'"+this.annotationType_+"' cannot be used as a decorator")}var MV="observable",AV="observable.ref",IV="observable.shallow",BV="observable.struct",ax={deep:!0,name:void 0,defaultDecorator:void 0,proxy:!0};Object.freeze(ax);function zd(e){return e||ax}var cm=Ld(MV),OV=Ld(AV,{enhancer:Nd}),NV=Ld(IV,{enhancer:aV}),LV=Ld(BV,{enhancer:lV}),lx=hn(cm);function Hd(e){return e.deep===!0?Rs:e.deep===!1?Nd:HV(e.defaultDecorator)}function zV(e){var t;return e?(t=e.defaultDecorator)!=null?t:sx(e):void 0}function HV(e){var t,o;return e&&(t=(o=e.options_)==null?void 0:o.enhancer)!=null?t:Rs}function cx(e,t,o){if(Cc(t))return cm.decorate_20223_(e,t);if(xs(t)){wc(e,t,cm);return}return Mx(e)?e:jn(e)?eo.object(e,t,o):Array.isArray(e)?eo.array(e,t):Ba(e)?eo.map(e,t):Wn(e)?eo.set(e,t):typeof e=="object"&&e!==null?e:eo.box(e,t)}U1(cx,lx);var VV={box:function(t,o){var r=zd(o);return new _s(t,Hd(r),r.name,!0,r.equals)},array:function(t,o){var r=zd(o);return(ve.useProxies===!1||r.proxy===!1?z6:P6)(t,Hd(r),r.name)},map:function(t,o){var r=zd(o);return new Ox(t,Hd(r),r.name)},set:function(t,o){var r=zd(o);return new Lx(t,Hd(r),r.name)},object:function(t,o,r){return _i(function(){return _x(ve.useProxies===!1||r?.proxy===!1?Ts({},r):F6({},r),t,o)})},ref:hn(OV),shallow:hn(NV),deep:lx,struct:hn(LV)},eo=U1(cx,VV),ux="computed",GV="computed.struct",um=lm(ux),jV=lm(GV,{equals:Od.structural}),Vd=function(t,o){if(Cc(o))return um.decorate_20223_(t,o);if(xs(o))return wc(t,o,um);if(jn(t))return hn(lm(ux,t));var r=jn(o)?o:{};return r.get=t,r.name||(r.name=t.name||""),new Hr(r)};Object.assign(Vd,um),Vd.struct=hn(jV);var dx,hx,Gd=0,WV=1,qV=(dx=(hx=Ad(function(){},"name"))==null?void 0:hx.configurable)!=null?dx:!1,fx={value:"action",configurable:!0,writable:!1,enumerable:!1};function Es(e,t,o,r){o===void 0&&(o=!1);function n(){return UV(e,o,t,r||this,arguments)}return n.isMobxAction=!0,n.toString=function(){return t.toString()},qV&&(fx.value=e,un(n,"name",fx)),n}function UV(e,t,o,r,n){var i=$V(e,t);try{return o.apply(r,n)}catch(s){throw i.error_=s,s}finally{KV(i)}}function $V(e,t,o,r){var n=!1,i=0,s=ve.trackingDerivation,a=!t||!s;dr();var c=ve.allowStateChanges;a&&(Ps(),c=jd(!0));var d=fm(!0),h={runAsAction_:a,prevDerivation_:s,prevAllowStateChanges_:c,prevAllowStateReads_:d,notifySpy_:n,startTime_:i,actionId_:WV++,parentActionId_:Gd};return Gd=h.actionId_,h}function KV(e){Gd!==e.actionId_&&Qe(30),Gd=e.parentActionId_,e.error_!==void 0&&(ve.suppressReactionErrors=!0),Wd(e.prevAllowStateChanges_),Sc(e.prevAllowStateReads_),hr(),e.runAsAction_&&Un(e.prevDerivation_),ve.suppressReactionErrors=!1}function XV(e,t){var o=jd(e);try{return t()}finally{Wd(o)}}function jd(e){var t=ve.allowStateChanges;return ve.allowStateChanges=e,t}function Wd(e){ve.allowStateChanges=e}var _s=(function(e){function t(r,n,i,s,a){var c;return i===void 0&&(i="ObservableValue"),a===void 0&&(a=Od.default),c=e.call(this,i)||this,c.enhancer=void 0,c.name_=void 0,c.equals=void 0,c.hasUnreportedChange_=!1,c.interceptors_=void 0,c.changeListeners_=void 0,c.value_=void 0,c.dehancer=void 0,c.enhancer=n,c.name_=i,c.equals=a,c.value_=n(r,void 0,i),c}tx(t,e);var o=t.prototype;return o.dehanceValue=function(n){return this.dehancer!==void 0?this.dehancer(n):n},o.set=function(n){this.value_,n=this.prepareNewValue_(n),n!==ve.UNCHANGED&&this.setNewValue_(n)},o.prepareNewValue_=function(n){if(fr(this)){var i=pr(this,{object:this,type:pn,newValue:n});if(!i)return ve.UNCHANGED;n=i.newValue}return n=this.enhancer(n,this.value_,this.name_),this.equals(this.value_,n)?ve.UNCHANGED:n},o.setNewValue_=function(n){var i=this.value_;this.value_=n,this.reportChanged(),Vr(this)&&Gr(this,{type:pn,object:this,newValue:n,oldValue:i})},o.get=function(){return this.reportObserved(),this.dehanceValue(this.value_)},o.intercept_=function(n){return Rc(this,n)},o.observe_=function(n,i){return i&&n({observableKind:"value",debugObjectName:this.name_,object:this,type:pn,newValue:this.value_,oldValue:void 0}),Ec(this,n)},o.raw=function(){return this.value_},o.toJSON=function(){return this.get()},o.toString=function(){return this.name_+"["+this.value_+"]"},o.valueOf=function(){return J1(this.get())},o[Symbol.toPrimitive]=function(){return this.valueOf()},t})(Ri),Hr=(function(){function e(o){this.dependenciesState_=rt.NOT_TRACKING_,this.observing_=[],this.newObserving_=null,this.observers_=new Set,this.runId_=0,this.lastAccessedBy_=0,this.lowestObserverState_=rt.UP_TO_DATE_,this.unboundDepsCount_=0,this.value_=new $d(null),this.name_=void 0,this.triggeredBy_=void 0,this.flags_=0,this.derivation=void 0,this.setter_=void 0,this.isTracing_=Ud.NONE,this.scope_=void 0,this.equals_=void 0,this.requiresReaction_=void 0,this.keepAlive_=void 0,this.onBOL=void 0,this.onBUOL=void 0,o.get||Qe(31),this.derivation=o.get,this.name_=o.name||"ComputedValue",o.set&&(this.setter_=Es("ComputedValue-setter",o.set)),this.equals_=o.equals||(o.compareStructural||o.struct?Od.structural:Od.default),this.scope_=o.context,this.requiresReaction_=o.requiresReaction,this.keepAlive_=!!o.keepAlive}var t=e.prototype;return t.onBecomeStale_=function(){e6(this)},t.onBO=function(){this.onBOL&&this.onBOL.forEach(function(r){return r()})},t.onBUO=function(){this.onBUOL&&this.onBUOL.forEach(function(r){return r()})},t.get=function(){if(this.isComputing&&Qe(32,this.name_,this.derivation),ve.inBatch===0&&this.observers_.size===0&&!this.keepAlive_)dm(this)&&(this.warnAboutUntrackedRead_(),dr(),this.value_=this.computeValue_(!1),hr());else if(Cx(this),dm(this)){var r=ve.trackingContext;this.keepAlive_&&!r&&(ve.trackingContext=this),this.trackAndCompute()&&JV(this),ve.trackingContext=r}var n=this.value_;if(Kd(n))throw n.cause;return n},t.set=function(r){if(this.setter_){this.isRunningSetter&&Qe(33,this.name_),this.isRunningSetter=!0;try{this.setter_.call(this.scope_,r)}finally{this.isRunningSetter=!1}}else Qe(34,this.name_)},t.trackAndCompute=function(){var r=this.value_,n=this.dependenciesState_===rt.NOT_TRACKING_,i=this.computeValue_(!0),s=n||Kd(r)||Kd(i)||!this.equals_(r,i);return s&&(this.value_=i),s},t.computeValue_=function(r){this.isComputing=!0;var n=jd(!1),i;if(r)i=px(this,this.derivation,this.scope_);else if(ve.disableErrorBoundaries===!0)i=this.derivation.call(this.scope_);else try{i=this.derivation.call(this.scope_)}catch(s){i=new $d(s)}return Wd(n),this.isComputing=!1,i},t.suspend_=function(){this.keepAlive_||(hm(this),this.value_=void 0)},t.observe_=function(r,n){var i=this,s=!0,a=void 0;return u6(function(){var c=i.get();if(!s||n){var d=Ps();r({observableKind:"computed",debugObjectName:i.name_,type:pn,object:i,newValue:c,oldValue:a}),Un(d)}s=!1,a=c})},t.warnAboutUntrackedRead_=function(){},t.toString=function(){return this.name_+"["+this.derivation.toString()+"]"},t.valueOf=function(){return J1(this.get())},t[Symbol.toPrimitive]=function(){return this.valueOf()},Na(e,[{key:"isComputing",get:function(){return Ko(this.flags_,e.isComputingMask_)},set:function(r){this.flags_=Xo(this.flags_,e.isComputingMask_,r)}},{key:"isRunningSetter",get:function(){return Ko(this.flags_,e.isRunningSetterMask_)},set:function(r){this.flags_=Xo(this.flags_,e.isRunningSetterMask_,r)}},{key:"isBeingObserved",get:function(){return Ko(this.flags_,e.isBeingObservedMask_)},set:function(r){this.flags_=Xo(this.flags_,e.isBeingObservedMask_,r)}},{key:"isPendingUnobservation",get:function(){return Ko(this.flags_,e.isPendingUnobservationMask_)},set:function(r){this.flags_=Xo(this.flags_,e.isPendingUnobservationMask_,r)}},{key:"diffValue",get:function(){return Ko(this.flags_,e.diffValueMask_)?1:0},set:function(r){this.flags_=Xo(this.flags_,e.diffValueMask_,r===1)}}])})();Hr.isComputingMask_=1,Hr.isRunningSetterMask_=2,Hr.isBeingObservedMask_=4,Hr.isPendingUnobservationMask_=8,Hr.diffValueMask_=16;var qd=ks("ComputedValue",Hr),rt;(function(e){e[e.NOT_TRACKING_=-1]="NOT_TRACKING_",e[e.UP_TO_DATE_=0]="UP_TO_DATE_",e[e.POSSIBLY_STALE_=1]="POSSIBLY_STALE_",e[e.STALE_=2]="STALE_"})(rt||(rt={}));var Ud;(function(e){e[e.NONE=0]="NONE",e[e.LOG=1]="LOG",e[e.BREAK=2]="BREAK"})(Ud||(Ud={}));var $d=function(t){this.cause=void 0,this.cause=t};function Kd(e){return e instanceof $d}function dm(e){switch(e.dependenciesState_){case rt.UP_TO_DATE_:return!1;case rt.NOT_TRACKING_:case rt.STALE_:return!0;case rt.POSSIBLY_STALE_:{for(var t=fm(!0),o=Ps(),r=e.observing_,n=r.length,i=0;i<n;i++){var s=r[i];if(qd(s)){if(ve.disableErrorBoundaries)s.get();else try{s.get()}catch{return Un(o),Sc(t),!0}if(e.dependenciesState_===rt.STALE_)return Un(o),Sc(t),!0}}return mx(e),Un(o),Sc(t),!1}}}function ioe(e){}function px(e,t,o){var r=fm(!0);mx(e),e.newObserving_=new Array(e.runId_===0?100:e.observing_.length),e.unboundDepsCount_=0,e.runId_=++ve.runId;var n=ve.trackingDerivation;ve.trackingDerivation=e,ve.inBatch++;var i;if(ve.disableErrorBoundaries===!0)i=t.call(o);else try{i=t.call(o)}catch(s){i=new $d(s)}return ve.inBatch--,ve.trackingDerivation=n,ZV(e),Sc(r),i}function ZV(e){for(var t=e.observing_,o=e.observing_=e.newObserving_,r=rt.UP_TO_DATE_,n=0,i=e.unboundDepsCount_,s=0;s<i;s++){var a=o[s];a.diffValue===0&&(a.diffValue=1,n!==s&&(o[n]=a),n++),a.dependenciesState_>r&&(r=a.dependenciesState_)}for(o.length=n,e.newObserving_=null,i=t.length;i--;){var c=t[i];c.diffValue===0&&bx(c,e),c.diffValue=0}for(;n--;){var d=o[n];d.diffValue===1&&(d.diffValue=0,QV(d,e))}r!==rt.UP_TO_DATE_&&(e.dependenciesState_=r,e.onBecomeStale_())}function hm(e){var t=e.observing_;e.observing_=[];for(var o=t.length;o--;)bx(t[o],e);e.dependenciesState_=rt.NOT_TRACKING_}function gx(e){var t=Ps();try{return e()}finally{Un(t)}}function Ps(){var e=ve.trackingDerivation;return ve.trackingDerivation=null,e}function Un(e){ve.trackingDerivation=e}function fm(e){var t=ve.allowStateReads;return ve.allowStateReads=e,t}function Sc(e){ve.allowStateReads=e}function mx(e){if(e.dependenciesState_!==rt.UP_TO_DATE_){e.dependenciesState_=rt.UP_TO_DATE_;for(var t=e.observing_,o=t.length;o--;)t[o].lowestObserverState_=rt.UP_TO_DATE_}}var Xd=function(){this.version=6,this.UNCHANGED={},this.trackingDerivation=null,this.trackingContext=null,this.runId=0,this.mobxGuid=0,this.inBatch=0,this.pendingUnobservations=[],this.pendingReactions=[],this.isRunningReactions=!1,this.allowStateChanges=!1,this.allowStateReads=!0,this.enforceActions=!0,this.spyListeners=[],this.globalReactionErrorHandlers=[],this.computedRequiresReaction=!1,this.reactionRequiresObservable=!1,this.observableRequiresReaction=!1,this.disableErrorBoundaries=!1,this.suppressReactionErrors=!1,this.useProxies=!0,this.verifyProxies=!1,this.safeDescriptors=!0},Zd=!0,vx=!1,ve=(function(){var e=Md();return e.__mobxInstanceCount>0&&!e.__mobxGlobals&&(Zd=!1),e.__mobxGlobals&&e.__mobxGlobals.version!==new Xd().version&&(Zd=!1),Zd?e.__mobxGlobals?(e.__mobxInstanceCount+=1,e.__mobxGlobals.UNCHANGED||(e.__mobxGlobals.UNCHANGED={}),e.__mobxGlobals):(e.__mobxInstanceCount=1,e.__mobxGlobals=new Xd):(setTimeout(function(){vx||Qe(35)},1),new Xd)})();function YV(){if((ve.pendingReactions.length||ve.inBatch||ve.isRunningReactions)&&Qe(36),vx=!0,Zd){var e=Md();--e.__mobxInstanceCount===0&&(e.__mobxGlobals=void 0),ve=new Xd}}function QV(e,t){e.observers_.add(t),e.lowestObserverState_>t.dependenciesState_&&(e.lowestObserverState_=t.dependenciesState_)}function bx(e,t){e.observers_.delete(t),e.observers_.size===0&&wx(e)}function wx(e){e.isPendingUnobservation===!1&&(e.isPendingUnobservation=!0,ve.pendingUnobservations.push(e))}function dr(){ve.inBatch++}function hr(){if(--ve.inBatch===0){Sx();for(var e=ve.pendingUnobservations,t=0;t<e.length;t++){var o=e[t];o.isPendingUnobservation=!1,o.observers_.size===0&&(o.isBeingObserved&&(o.isBeingObserved=!1,o.onBUO()),o instanceof Hr&&o.suspend_())}ve.pendingUnobservations=[]}}function Cx(e){var t=ve.trackingDerivation;return t!==null?(t.runId_!==e.lastAccessedBy_&&(e.lastAccessedBy_=t.runId_,t.newObserving_[t.unboundDepsCount_++]=e,!e.isBeingObserved&&ve.trackingContext&&(e.isBeingObserved=!0,e.onBO())),e.isBeingObserved):(e.observers_.size===0&&ve.inBatch>0&&wx(e),!1)}function yx(e){e.lowestObserverState_!==rt.STALE_&&(e.lowestObserverState_=rt.STALE_,e.observers_.forEach(function(t){t.dependenciesState_===rt.UP_TO_DATE_&&t.onBecomeStale_(),t.dependenciesState_=rt.STALE_}))}function JV(e){e.lowestObserverState_!==rt.STALE_&&(e.lowestObserverState_=rt.STALE_,e.observers_.forEach(function(t){t.dependenciesState_===rt.POSSIBLY_STALE_?t.dependenciesState_=rt.STALE_:t.dependenciesState_===rt.UP_TO_DATE_&&(e.lowestObserverState_=rt.UP_TO_DATE_)}))}function e6(e){e.lowestObserverState_===rt.UP_TO_DATE_&&(e.lowestObserverState_=rt.POSSIBLY_STALE_,e.observers_.forEach(function(t){t.dependenciesState_===rt.UP_TO_DATE_&&(t.dependenciesState_=rt.POSSIBLY_STALE_,t.onBecomeStale_())}))}var fn=(function(){function e(o,r,n,i){o===void 0&&(o="Reaction"),this.name_=void 0,this.onInvalidate_=void 0,this.errorHandler_=void 0,this.requiresObservable_=void 0,this.observing_=[],this.newObserving_=[],this.dependenciesState_=rt.NOT_TRACKING_,this.runId_=0,this.unboundDepsCount_=0,this.flags_=0,this.isTracing_=Ud.NONE,this.name_=o,this.onInvalidate_=r,this.errorHandler_=n,this.requiresObservable_=i}var t=e.prototype;return t.onBecomeStale_=function(){this.schedule_()},t.schedule_=function(){this.isScheduled||(this.isScheduled=!0,ve.pendingReactions.push(this),Sx())},t.runReaction_=function(){if(!this.isDisposed){dr(),this.isScheduled=!1;var r=ve.trackingContext;if(ve.trackingContext=this,dm(this)){this.isTrackPending=!0;try{this.onInvalidate_()}catch(n){this.reportExceptionInDerivation_(n)}}ve.trackingContext=r,hr()}},t.track=function(r){if(!this.isDisposed){dr(),this.isRunning=!0;var n=ve.trackingContext;ve.trackingContext=this;var i=px(this,r,void 0);ve.trackingContext=n,this.isRunning=!1,this.isTrackPending=!1,this.isDisposed&&hm(this),Kd(i)&&this.reportExceptionInDerivation_(i.cause),hr()}},t.reportExceptionInDerivation_=function(r){var n=this;if(this.errorHandler_){this.errorHandler_(r,this);return}if(ve.disableErrorBoundaries)throw r;var i="[mobx] uncaught error in '"+this+"'";ve.suppressReactionErrors||console.error(i,r),ve.globalReactionErrorHandlers.forEach(function(s){return s(r,n)})},t.dispose=function(){this.isDisposed||(this.isDisposed=!0,this.isRunning||(dr(),hm(this),hr()))},t.getDisposer_=function(r){var n=this,i=function s(){n.dispose(),r==null||r.removeEventListener==null||r.removeEventListener("abort",s)};return r==null||r.addEventListener==null||r.addEventListener("abort",i),i[Be]=this,"dispose"in Symbol&&typeof Symbol.dispose=="symbol"&&(i[Symbol.dispose]=i),i},t.toString=function(){return"Reaction["+this.name_+"]"},t.trace=function(r){},Na(e,[{key:"isDisposed",get:function(){return Ko(this.flags_,e.isDisposedMask_)},set:function(r){this.flags_=Xo(this.flags_,e.isDisposedMask_,r)}},{key:"isScheduled",get:function(){return Ko(this.flags_,e.isScheduledMask_)},set:function(r){this.flags_=Xo(this.flags_,e.isScheduledMask_,r)}},{key:"isTrackPending",get:function(){return Ko(this.flags_,e.isTrackPendingMask_)},set:function(r){this.flags_=Xo(this.flags_,e.isTrackPendingMask_,r)}},{key:"isRunning",get:function(){return Ko(this.flags_,e.isRunningMask_)},set:function(r){this.flags_=Xo(this.flags_,e.isRunningMask_,r)}},{key:"diffValue",get:function(){return Ko(this.flags_,e.diffValueMask_)?1:0},set:function(r){this.flags_=Xo(this.flags_,e.diffValueMask_,r===1)}}])})();fn.isDisposedMask_=1,fn.isScheduledMask_=2,fn.isTrackPendingMask_=4,fn.isRunningMask_=8,fn.diffValueMask_=16;var t6=100,pm=function(t){return t()};function Sx(){ve.inBatch>0||ve.isRunningReactions||pm(o6)}function o6(){ve.isRunningReactions=!0;for(var e=ve.pendingReactions,t=0;e.length>0;){++t===t6&&(console.error("[mobx] cycle in reaction: "+e[0]),e.splice(0));for(var o=e.splice(0),r=0,n=o.length;r<n;r++)o[r].runReaction_()}ve.isRunningReactions=!1}var Yd=ks("Reaction",fn);function r6(e){var t=pm;pm=function(r){return e(function(){return t(r)})}}function xc(){return!1}function soe(e){}function aoe(e){}function loe(e){}function n6(e){return console.warn("[mobx.spy] Is a no-op in production builds"),function(){}}var xx="action",i6="action.bound",kx="autoAction",s6="autoAction.bound",a6="<unnamed action>",gm=yc(xx),l6=yc(i6,{bound:!0}),mm=yc(kx,{autoAction:!0}),c6=yc(s6,{autoAction:!0,bound:!0});function Fx(e){var t=function(r,n){if(zr(r))return Es(r.name||a6,r,e);if(zr(n))return Es(r,n,e);if(Cc(n))return(e?mm:gm).decorate_20223_(r,n);if(xs(n))return wc(r,n,e?mm:gm);if(xs(r))return hn(yc(e?kx:xx,{name:r,autoAction:e}))};return t}var za=Fx(!1);Object.assign(za,gm);var kc=Fx(!0);Object.assign(kc,mm),za.bound=hn(l6),kc.bound=hn(c6);function Ha(e){return zr(e)&&e.isMobxAction===!0}function u6(e,t){var o,r,n,i;t===void 0&&(t=$1);var s=(o=(r=t)==null?void 0:r.name)!=null?o:"Autorun",a=!t.scheduler&&!t.delay,c;if(a)c=new fn(s,function(){this.track(f)},t.onError,t.requiresObservable);else{var d=h6(t),h=!1;c=new fn(s,function(){h||(h=!0,d(function(){h=!1,c.isDisposed||c.track(f)}))},t.onError,t.requiresObservable)}function f(){e(c)}return(n=t)!=null&&(n=n.signal)!=null&&n.aborted||c.schedule_(),c.getDisposer_((i=t)==null?void 0:i.signal)}var d6=function(t){return t()};function h6(e){return e.scheduler?e.scheduler:e.delay?function(t){return setTimeout(t,e.delay)}:d6}var f6="onBO",p6="onBUO";function g6(e,t,o){return Ex(f6,e,t,o)}function Rx(e,t,o){return Ex(p6,e,t,o)}function Ex(e,t,o,r){var n=rh(t),i=zr(r)?r:o,s=e+"L";return n[s]?n[s].add(i):n[s]=new Set([i]),function(){var a=n[s];a&&(a.delete(i),a.size===0&&delete n[s])}}var m6="never",Qd="always",v6="observed";function b6(e){e.isolateGlobalState===!0&&YV();var t=e.useProxies,o=e.enforceActions;if(t!==void 0&&(ve.useProxies=t===Qd?!0:t===m6?!1:typeof Proxy<"u"),t==="ifavailable"&&(ve.verifyProxies=!0),o!==void 0){var r=o===Qd?Qd:o===v6;ve.enforceActions=r,ve.allowStateChanges=!(r===!0||r===Qd)}["computedRequiresReaction","reactionRequiresObservable","observableRequiresReaction","disableErrorBoundaries","safeDescriptors"].forEach(function(n){n in e&&(ve[n]=!!e[n])}),ve.allowStateReads=!ve.observableRequiresReaction,e.reactionScheduler&&r6(e.reactionScheduler)}function _x(e,t,o,r){var n=JH(t);return _i(function(){var i=Ts(e,r)[Be];Oa(n).forEach(function(s){i.extend_(s,n[s],o&&s in o?o[s]:!0)})}),e}function w6(e,t){return Px(rh(e,t))}function Px(e){var t={name:e.name_};return e.observing_&&e.observing_.length>0&&(t.dependencies=C6(e.observing_).map(Px)),t}function C6(e){return Array.from(new Set(e))}var y6=0;function Dx(){this.message="FLOW_CANCELLED"}Dx.prototype=Object.create(Error.prototype);var vm=nx("flow"),S6=nx("flow.bound",{bound:!0}),Va=Object.assign(function(t,o){if(Cc(o))return vm.decorate_20223_(t,o);if(xs(o))return wc(t,o,vm);var r=t,n=r.name||"<unnamed flow>",i=function(){var a=this,c=arguments,d=++y6,h=za(n+" - runid: "+d+" - init",r).apply(a,c),f,g=void 0,m=new Promise(function(b,w){var y=0;f=w;function k(E){g=void 0;var _;try{_=za(n+" - runid: "+d+" - yield "+y++,h.next).call(h,E)}catch(P){return w(P)}F(_)}function C(E){g=void 0;var _;try{_=za(n+" - runid: "+d+" - yield "+y++,h.throw).call(h,E)}catch(P){return w(P)}F(_)}function F(E){if(zr(E?.then)){E.then(F,w);return}return E.done?b(E.value):(g=Promise.resolve(E.value),g.then(k,C))}k(void 0)});return m.cancel=za(n+" - runid: "+d+" - cancel",function(){try{g&&Tx(g);var b=h.return(void 0),w=Promise.resolve(b.value);w.then(Ia,Ia),Tx(w),f(new Dx)}catch(y){f(y)}}),m};return i.isMobXFlow=!0,i},vm);Va.bound=hn(S6);function Tx(e){zr(e.cancel)&&e.cancel()}function Fc(e){return e?.isMobXFlow===!0}function x6(e,t){return e?oh(e)||!!e[Be]||am(e)||Yd(e)||qd(e):!1}function Mx(e){return x6(e)}function $n(e,t){t===void 0&&(t=void 0),dr();try{return e.apply(t)}finally{hr()}}function Ga(e){return e[Be]}var k6={has:function(t,o){return Ga(t).has_(o)},get:function(t,o){return Ga(t).get_(o)},set:function(t,o,r){var n;return xs(o)?(n=Ga(t).set_(o,r,!0))!=null?n:!0:!1},deleteProperty:function(t,o){var r;return xs(o)?(r=Ga(t).delete_(o,!0))!=null?r:!0:!1},defineProperty:function(t,o,r){var n;return(n=Ga(t).defineProperty_(o,r))!=null?n:!0},ownKeys:function(t){return Ga(t).ownKeys_()},preventExtensions:function(t){Qe(13)}};function F6(e,t){var o,r;return K1(),e=Ts(e,t),(r=(o=e[Be]).proxy_)!=null?r:o.proxy_=new Proxy(e,k6)}function fr(e){return e.interceptors_!==void 0&&e.interceptors_.length>0}function Rc(e,t){var o=e.interceptors_||(e.interceptors_=[]);return o.push(t),X1(function(){var r=o.indexOf(t);r!==-1&&o.splice(r,1)})}function pr(e,t){var o=Ps();try{for(var r=[].concat(e.interceptors_||[]),n=0,i=r.length;n<i&&(t=r[n](t),t&&!t.type&&Qe(14),!!t);n++);return t}finally{Un(o)}}function Vr(e){return e.changeListeners_!==void 0&&e.changeListeners_.length>0}function Ec(e,t){var o=e.changeListeners_||(e.changeListeners_=[]);return o.push(t),X1(function(){var r=o.indexOf(t);r!==-1&&o.splice(r,1)})}function Gr(e,t){var o=Ps(),r=e.changeListeners_;if(r){r=r.slice();for(var n=0,i=r.length;n<i;n++)r[n](t);Un(o)}}function R6(e,t,o){return _i(function(){var r,n=Ts(e,o)[Be];(r=t)!=null||(t=nV(e)),Oa(t).forEach(function(i){return n.make_(i,t[i])})}),e}var bm=Symbol("mobx-keys");function Ax(e,t,o){return jn(e)?_x(e,e,t,o):(_i(function(){var r=Ts(e,o)[Be];if(!e[bm]){var n=Object.getPrototypeOf(e),i=new Set([].concat(Oa(e),Oa(n)));i.delete("constructor"),i.delete(Be),bc(n,bm,i)}e[bm].forEach(function(s){return r.make_(s,t&&s in t?t[s]:!0)})}),e)}var Ix="splice",pn="update",E6=1e4,_6={get:function(t,o){var r=t[Be];return o===Be?r:o==="length"?r.getArrayLength_():typeof o=="string"&&!isNaN(o)?r.get_(parseInt(o)):qn(Jd,o)?Jd[o]:t[o]},set:function(t,o,r){var n=t[Be];return o==="length"&&n.setArrayLength_(r),typeof o=="symbol"||isNaN(o)?t[o]=r:n.set_(parseInt(o),r),!0},preventExtensions:function(){Qe(15)}},wm=(function(){function e(o,r,n,i){o===void 0&&(o="ObservableArray"),this.owned_=void 0,this.legacyMode_=void 0,this.atom_=void 0,this.values_=[],this.interceptors_=void 0,this.changeListeners_=void 0,this.enhancer_=void 0,this.dehancer=void 0,this.proxy_=void 0,this.lastKnownLength_=0,this.owned_=n,this.legacyMode_=i,this.atom_=new Ri(o),this.enhancer_=function(s,a){return r(s,a,"ObservableArray[..]")}}var t=e.prototype;return t.dehanceValue_=function(r){return this.dehancer!==void 0?this.dehancer(r):r},t.dehanceValues_=function(r){return this.dehancer!==void 0&&r.length>0?r.map(this.dehancer):r},t.intercept_=function(r){return Rc(this,r)},t.observe_=function(r,n){return n===void 0&&(n=!1),n&&r({observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:"splice",index:0,added:this.values_.slice(),addedCount:this.values_.length,removed:[],removedCount:0}),Ec(this,r)},t.getArrayLength_=function(){return this.atom_.reportObserved(),this.values_.length},t.setArrayLength_=function(r){(typeof r!="number"||isNaN(r)||r<0)&&Qe("Out of range: "+r);var n=this.values_.length;if(r!==n)if(r>n){for(var i=new Array(r-n),s=0;s<r-n;s++)i[s]=void 0;this.spliceWithArray_(n,0,i)}else this.spliceWithArray_(r,n-r)},t.updateArrayLength_=function(r,n){r!==this.lastKnownLength_&&Qe(16),this.lastKnownLength_+=n,this.legacyMode_&&n>0&&$x(r+n+1)},t.spliceWithArray_=function(r,n,i){var s=this;this.atom_;var a=this.values_.length;if(r===void 0?r=0:r>a?r=a:r<0&&(r=Math.max(0,a+r)),arguments.length===1?n=a-r:n==null?n=0:n=Math.max(0,Math.min(n,a-r)),i===void 0&&(i=im),fr(this)){var c=pr(this,{object:this.proxy_,type:Ix,index:r,removedCount:n,added:i});if(!c)return im;n=c.removedCount,i=c.added}if(i=i.length===0?i:i.map(function(f){return s.enhancer_(f,void 0)}),this.legacyMode_){var d=i.length-n;this.updateArrayLength_(a,d)}var h=this.spliceItemsIntoValues_(r,n,i);return(n!==0||i.length!==0)&&this.notifyArraySplice_(r,i,h),this.dehanceValues_(h)},t.spliceItemsIntoValues_=function(r,n,i){if(i.length<E6){var s;return(s=this.values_).splice.apply(s,[r,n].concat(i))}else{var a=this.values_.slice(r,r+n),c=this.values_.slice(r+n);this.values_.length+=i.length-n;for(var d=0;d<i.length;d++)this.values_[r+d]=i[d];for(var h=0;h<c.length;h++)this.values_[r+i.length+h]=c[h];return a}},t.notifyArrayChildUpdate_=function(r,n,i){var s=!this.owned_&&xc(),a=Vr(this),c=a||s?{observableKind:"array",object:this.proxy_,type:pn,debugObjectName:this.atom_.name_,index:r,newValue:n,oldValue:i}:null;this.atom_.reportChanged(),a&&Gr(this,c)},t.notifyArraySplice_=function(r,n,i){var s=!this.owned_&&xc(),a=Vr(this),c=a||s?{observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:Ix,index:r,removed:i,added:n,removedCount:i.length,addedCount:n.length}:null;this.atom_.reportChanged(),a&&Gr(this,c)},t.get_=function(r){if(this.legacyMode_&&r>=this.values_.length){console.warn("[mobx] Out of bounds read: "+r);return}return this.atom_.reportObserved(),this.dehanceValue_(this.values_[r])},t.set_=function(r,n){var i=this.values_;if(this.legacyMode_&&r>i.length&&Qe(17,r,i.length),r<i.length){this.atom_;var s=i[r];if(fr(this)){var a=pr(this,{type:pn,object:this.proxy_,index:r,newValue:n});if(!a)return;n=a.newValue}n=this.enhancer_(n,s);var c=n!==s;c&&(i[r]=n,this.notifyArrayChildUpdate_(r,n,s))}else{for(var d=new Array(r+1-i.length),h=0;h<d.length-1;h++)d[h]=void 0;d[d.length-1]=n,this.spliceWithArray_(i.length,0,d)}},e})();function P6(e,t,o,r){return o===void 0&&(o="ObservableArray"),r===void 0&&(r=!1),K1(),_i(function(){var n=new wm(o,t,r,!1);Y1(n.values_,Be,n);var i=new Proxy(n.values_,_6);return n.proxy_=i,e&&e.length&&n.spliceWithArray_(0,0,e),i})}var Jd={clear:function(){return this.splice(0)},replace:function(t){var o=this[Be];return o.spliceWithArray_(0,o.values_.length,t)},toJSON:function(){return this.slice()},splice:function(t,o){for(var r=arguments.length,n=new Array(r>2?r-2:0),i=2;i<r;i++)n[i-2]=arguments[i];var s=this[Be];switch(arguments.length){case 0:return[];case 1:return s.spliceWithArray_(t);case 2:return s.spliceWithArray_(t,o)}return s.spliceWithArray_(t,o,n)},spliceWithArray:function(t,o,r){return this[Be].spliceWithArray_(t,o,r)},push:function(){for(var t=this[Be],o=arguments.length,r=new Array(o),n=0;n<o;n++)r[n]=arguments[n];return t.spliceWithArray_(t.values_.length,0,r),t.values_.length},pop:function(){return this.splice(Math.max(this[Be].values_.length-1,0),1)[0]},shift:function(){return this.splice(0,1)[0]},unshift:function(){for(var t=this[Be],o=arguments.length,r=new Array(o),n=0;n<o;n++)r[n]=arguments[n];return t.spliceWithArray_(0,0,r),t.values_.length},reverse:function(){return ve.trackingDerivation&&Qe(37,"reverse"),this.replace(this.slice().reverse()),this},sort:function(){ve.trackingDerivation&&Qe(37,"sort");var t=this.slice();return t.sort.apply(t,arguments),this.replace(t),this},remove:function(t){var o=this[Be],r=o.dehanceValues_(o.values_).indexOf(t);return r>-1?(this.splice(r,1),!0):!1}};yt("at",Zo),yt("concat",Zo),yt("flat",Zo),yt("includes",Zo),yt("indexOf",Zo),yt("join",Zo),yt("lastIndexOf",Zo),yt("slice",Zo),yt("toString",Zo),yt("toLocaleString",Zo),yt("toSorted",Zo),yt("toSpliced",Zo),yt("with",Zo),yt("every",jr),yt("filter",jr),yt("find",jr),yt("findIndex",jr),yt("findLast",jr),yt("findLastIndex",jr),yt("flatMap",jr),yt("forEach",jr),yt("map",jr),yt("some",jr),yt("toReversed",jr),yt("reduce",Bx),yt("reduceRight",Bx);function yt(e,t){typeof Array.prototype[e]=="function"&&(Jd[e]=t(e))}function Zo(e){return function(){var t=this[Be];t.atom_.reportObserved();var o=t.dehanceValues_(t.values_);return o[e].apply(o,arguments)}}function jr(e){return function(t,o){var r=this,n=this[Be];n.atom_.reportObserved();var i=n.dehanceValues_(n.values_);return i[e](function(s,a){return t.call(o,s,a,r)})}}function Bx(e){return function(){var t=this,o=this[Be];o.atom_.reportObserved();var r=o.dehanceValues_(o.values_),n=arguments[0];return arguments[0]=function(i,s,a){return n(i,s,a,t)},r[e].apply(r,arguments)}}var D6=ks("ObservableArrayAdministration",wm);function eh(e){return Bd(e)&&D6(e[Be])}var T6={},Ei="add",th="delete",Ox=(function(){function e(o,r,n){var i=this;r===void 0&&(r=Rs),n===void 0&&(n="ObservableMap"),this.enhancer_=void 0,this.name_=void 0,this[Be]=T6,this.data_=void 0,this.hasMap_=void 0,this.keysAtom_=void 0,this.interceptors_=void 0,this.changeListeners_=void 0,this.dehancer=void 0,this.enhancer_=r,this.name_=n,zr(Map)||Qe(18),_i(function(){i.keysAtom_=ox("ObservableMap.keys()"),i.data_=new Map,i.hasMap_=new Map,o&&i.merge(o)})}var t=e.prototype;return t.has_=function(r){return this.data_.has(r)},t.has=function(r){var n=this;if(!ve.trackingDerivation)return this.has_(r);var i=this.hasMap_.get(r);if(!i){var s=i=new _s(this.has_(r),Nd,"ObservableMap.key?",!1);this.hasMap_.set(r,s),Rx(s,function(){return n.hasMap_.delete(r)})}return i.get()},t.set=function(r,n){var i=this.has_(r);if(fr(this)){var s=pr(this,{type:i?pn:Ei,object:this,newValue:n,name:r});if(!s)return this;n=s.newValue}return i?this.updateValue_(r,n):this.addValue_(r,n),this},t.delete=function(r){var n=this;if(this.keysAtom_,fr(this)){var i=pr(this,{type:th,object:this,name:r});if(!i)return!1}if(this.has_(r)){var s=xc(),a=Vr(this),c=a||s?{observableKind:"map",debugObjectName:this.name_,type:th,object:this,oldValue:this.data_.get(r).value_,name:r}:null;return $n(function(){var d;n.keysAtom_.reportChanged(),(d=n.hasMap_.get(r))==null||d.setNewValue_(!1);var h=n.data_.get(r);h.setNewValue_(void 0),n.data_.delete(r)}),a&&Gr(this,c),!0}return!1},t.updateValue_=function(r,n){var i=this.data_.get(r);if(n=i.prepareNewValue_(n),n!==ve.UNCHANGED){var s=xc(),a=Vr(this),c=a||s?{observableKind:"map",debugObjectName:this.name_,type:pn,object:this,oldValue:i.value_,name:r,newValue:n}:null;i.setNewValue_(n),a&&Gr(this,c)}},t.addValue_=function(r,n){var i=this;this.keysAtom_,$n(function(){var d,h=new _s(n,i.enhancer_,"ObservableMap.key",!1);i.data_.set(r,h),n=h.value_,(d=i.hasMap_.get(r))==null||d.setNewValue_(!0),i.keysAtom_.reportChanged()});var s=xc(),a=Vr(this),c=a||s?{observableKind:"map",debugObjectName:this.name_,type:Ei,object:this,name:r,newValue:n}:null;a&&Gr(this,c)},t.get=function(r){return this.has(r)?this.dehanceValue_(this.data_.get(r).get()):this.dehanceValue_(void 0)},t.dehanceValue_=function(r){return this.dehancer!==void 0?this.dehancer(r):r},t.keys=function(){return this.keysAtom_.reportObserved(),this.data_.keys()},t.values=function(){var r=this,n=this.keys();return Nx({next:function(){var s=n.next(),a=s.done,c=s.value;return{done:a,value:a?void 0:r.get(c)}}})},t.entries=function(){var r=this,n=this.keys();return Nx({next:function(){var s=n.next(),a=s.done,c=s.value;return{done:a,value:a?void 0:[c,r.get(c)]}}})},t[Symbol.iterator]=function(){return this.entries()},t.forEach=function(r,n){for(var i=La(this),s;!(s=i()).done;){var a=s.value,c=a[0],d=a[1];r.call(n,d,c,this)}},t.merge=function(r){var n=this;return Ds(r)&&(r=new Map(r)),$n(function(){jn(r)?QH(r).forEach(function(i){return n.set(i,r[i])}):Array.isArray(r)?r.forEach(function(i){var s=i[0],a=i[1];return n.set(s,a)}):Ba(r)?(YH(r)||Qe(19,r),r.forEach(function(i,s){return n.set(s,i)})):r!=null&&Qe(20,r)}),this},t.clear=function(){var r=this;$n(function(){gx(function(){for(var n=La(r.keys()),i;!(i=n()).done;){var s=i.value;r.delete(s)}})})},t.replace=function(r){var n=this;return $n(function(){for(var i=M6(r),s=new Map,a=!1,c=La(n.data_.keys()),d;!(d=c()).done;){var h=d.value;if(!i.has(h)){var f=n.delete(h);if(f)a=!0;else{var g=n.data_.get(h);s.set(h,g)}}}for(var m=La(i.entries()),b;!(b=m()).done;){var w=b.value,y=w[0],k=w[1],C=n.data_.has(y);if(n.set(y,k),n.data_.has(y)){var F=n.data_.get(y);s.set(y,F),C||(a=!0)}}if(!a)if(n.data_.size!==s.size)n.keysAtom_.reportChanged();else for(var E=n.data_.keys(),_=s.keys(),P=E.next(),D=_.next();!P.done;){if(P.value!==D.value){n.keysAtom_.reportChanged();break}P=E.next(),D=_.next()}n.data_=s}),this},t.toString=function(){return"[object ObservableMap]"},t.toJSON=function(){return Array.from(this)},t.observe_=function(r,n){return Ec(this,r)},t.intercept_=function(r){return Rc(this,r)},Na(e,[{key:"size",get:function(){return this.keysAtom_.reportObserved(),this.data_.size}},{key:Symbol.toStringTag,get:function(){return"Map"}}])})(),Ds=ks("ObservableMap",Ox);function Nx(e){return e[Symbol.toStringTag]="MapIterator",km(e)}function M6(e){if(Ba(e)||Ds(e))return e;if(Array.isArray(e))return new Map(e);if(jn(e)){var t=new Map;for(var o in e)t.set(o,e[o]);return t}else return Qe(21,e)}var A6={},Lx=(function(){function e(o,r,n){var i=this;r===void 0&&(r=Rs),n===void 0&&(n="ObservableSet"),this.name_=void 0,this[Be]=A6,this.data_=new Set,this.atom_=void 0,this.changeListeners_=void 0,this.interceptors_=void 0,this.dehancer=void 0,this.enhancer_=void 0,this.name_=n,zr(Set)||Qe(22),this.enhancer_=function(s,a){return r(s,a,n)},_i(function(){i.atom_=ox(i.name_),o&&i.replace(o)})}var t=e.prototype;return t.dehanceValue_=function(r){return this.dehancer!==void 0?this.dehancer(r):r},t.clear=function(){var r=this;$n(function(){gx(function(){for(var n=La(r.data_.values()),i;!(i=n()).done;){var s=i.value;r.delete(s)}})})},t.forEach=function(r,n){for(var i=La(this),s;!(s=i()).done;){var a=s.value;r.call(n,a,a,this)}},t.add=function(r){var n=this;if(this.atom_,fr(this)){var i=pr(this,{type:Ei,object:this,newValue:r});if(!i)return this;r=i.newValue}if(!this.has(r)){$n(function(){n.data_.add(n.enhancer_(r,void 0)),n.atom_.reportChanged()});var s=!1,a=Vr(this),c=a||s?{observableKind:"set",debugObjectName:this.name_,type:Ei,object:this,newValue:r}:null;a&&Gr(this,c)}return this},t.delete=function(r){var n=this;if(fr(this)){var i=pr(this,{type:th,object:this,oldValue:r});if(!i)return!1}if(this.has(r)){var s=!1,a=Vr(this),c=a||s?{observableKind:"set",debugObjectName:this.name_,type:th,object:this,oldValue:r}:null;return $n(function(){n.atom_.reportChanged(),n.data_.delete(r)}),a&&Gr(this,c),!0}return!1},t.has=function(r){return this.atom_.reportObserved(),this.data_.has(this.dehanceValue_(r))},t.entries=function(){var r=this.values();return zx({next:function(){var i=r.next(),s=i.value,a=i.done;return a?{value:void 0,done:a}:{value:[s,s],done:a}}})},t.keys=function(){return this.values()},t.values=function(){this.atom_.reportObserved();var r=this,n=this.data_.values();return zx({next:function(){var s=n.next(),a=s.value,c=s.done;return c?{value:void 0,done:c}:{value:r.dehanceValue_(a),done:c}}})},t.intersection=function(r){if(Wn(r)&&!gn(r))return r.intersection(this);var n=new Set(this);return n.intersection(r)},t.union=function(r){if(Wn(r)&&!gn(r))return r.union(this);var n=new Set(this);return n.union(r)},t.difference=function(r){return new Set(this).difference(r)},t.symmetricDifference=function(r){if(Wn(r)&&!gn(r))return r.symmetricDifference(this);var n=new Set(this);return n.symmetricDifference(r)},t.isSubsetOf=function(r){return new Set(this).isSubsetOf(r)},t.isSupersetOf=function(r){return new Set(this).isSupersetOf(r)},t.isDisjointFrom=function(r){if(Wn(r)&&!gn(r))return r.isDisjointFrom(this);var n=new Set(this);return n.isDisjointFrom(r)},t.replace=function(r){var n=this;return gn(r)&&(r=new Set(r)),$n(function(){Array.isArray(r)?(n.clear(),r.forEach(function(i){return n.add(i)})):Wn(r)?(n.clear(),r.forEach(function(i){return n.add(i)})):r!=null&&Qe("Cannot initialize set from "+r)}),this},t.observe_=function(r,n){return Ec(this,r)},t.intercept_=function(r){return Rc(this,r)},t.toJSON=function(){return Array.from(this)},t.toString=function(){return"[object ObservableSet]"},t[Symbol.iterator]=function(){return this.values()},Na(e,[{key:"size",get:function(){return this.atom_.reportObserved(),this.data_.size}},{key:Symbol.toStringTag,get:function(){return"Set"}}])})(),gn=ks("ObservableSet",Lx);function zx(e){return e[Symbol.toStringTag]="SetIterator",km(e)}var Hx=Object.create(null),Vx="remove",Gx=(function(){function e(o,r,n,i){r===void 0&&(r=new Map),i===void 0&&(i=_V),this.target_=void 0,this.values_=void 0,this.name_=void 0,this.defaultAnnotation_=void 0,this.keysAtom_=void 0,this.changeListeners_=void 0,this.interceptors_=void 0,this.proxy_=void 0,this.isPlainObject_=void 0,this.appliedAnnotations_=void 0,this.pendingKeys_=void 0,this.target_=o,this.values_=r,this.name_=n,this.defaultAnnotation_=i,this.keysAtom_=new Ri("ObservableObject.keys"),this.isPlainObject_=jn(this.target_)}var t=e.prototype;return t.getObservablePropValue_=function(r){return this.values_.get(r).get()},t.setObservablePropValue_=function(r,n){var i=this.values_.get(r);if(i instanceof Hr)return i.set(n),!0;if(fr(this)){var s=pr(this,{type:pn,object:this.proxy_||this.target_,name:r,newValue:n});if(!s)return null;n=s.newValue}if(n=i.prepareNewValue_(n),n!==ve.UNCHANGED){var a=Vr(this),c=!1,d=a||c?{type:pn,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,oldValue:i.value_,name:r,newValue:n}:null;i.setNewValue_(n),a&&Gr(this,d)}return!0},t.get_=function(r){return ve.trackingDerivation&&!qn(this.target_,r)&&this.has_(r),this.target_[r]},t.set_=function(r,n,i){return i===void 0&&(i=!1),qn(this.target_,r)?this.values_.has(r)?this.setObservablePropValue_(r,n):i?Reflect.set(this.target_,r,n):(this.target_[r]=n,!0):this.extend_(r,{value:n,enumerable:!0,writable:!0,configurable:!0},this.defaultAnnotation_,i)},t.has_=function(r){if(!ve.trackingDerivation)return r in this.target_;this.pendingKeys_||(this.pendingKeys_=new Map);var n=this.pendingKeys_.get(r);return n||(n=new _s(r in this.target_,Nd,"ObservableObject.key?",!1),this.pendingKeys_.set(r,n)),n.get()},t.make_=function(r,n){if(n===!0&&(n=this.defaultAnnotation_),n!==!1){if(!(r in this.target_)){var i;if((i=this.target_[dn])!=null&&i[r])return;Qe(1,n.annotationType_,this.name_+"."+r.toString())}for(var s=this.target_;s&&s!==Id;){var a=Ad(s,r);if(a){var c=n.make_(this,r,a,s);if(c===0)return;if(c===1)break}s=Object.getPrototypeOf(s)}Wx(this,n,r)}},t.extend_=function(r,n,i,s){if(s===void 0&&(s=!1),i===!0&&(i=this.defaultAnnotation_),i===!1)return this.defineProperty_(r,n,s);var a=i.extend_(this,r,n,s);return a&&Wx(this,i,r),a},t.defineProperty_=function(r,n,i){i===void 0&&(i=!1),this.keysAtom_;try{dr();var s=this.delete_(r);if(!s)return s;if(fr(this)){var a=pr(this,{object:this.proxy_||this.target_,name:r,type:Ei,newValue:n.value});if(!a)return null;var c=a.newValue;n.value!==c&&(n=Fs({},n,{value:c}))}if(i){if(!Reflect.defineProperty(this.target_,r,n))return!1}else un(this.target_,r,n);this.notifyPropertyAddition_(r,n.value)}finally{hr()}return!0},t.defineObservableProperty_=function(r,n,i,s){s===void 0&&(s=!1),this.keysAtom_;try{dr();var a=this.delete_(r);if(!a)return a;if(fr(this)){var c=pr(this,{object:this.proxy_||this.target_,name:r,type:Ei,newValue:n});if(!c)return null;n=c.newValue}var d=jx(r),h={configurable:ve.safeDescriptors?this.isPlainObject_:!0,enumerable:!0,get:d.get,set:d.set};if(s){if(!Reflect.defineProperty(this.target_,r,h))return!1}else un(this.target_,r,h);var f=new _s(n,i,"ObservableObject.key",!1);this.values_.set(r,f),this.notifyPropertyAddition_(r,f.value_)}finally{hr()}return!0},t.defineComputedProperty_=function(r,n,i){i===void 0&&(i=!1),this.keysAtom_;try{dr();var s=this.delete_(r);if(!s)return s;if(fr(this)){var a=pr(this,{object:this.proxy_||this.target_,name:r,type:Ei,newValue:void 0});if(!a)return null}n.name||(n.name="ObservableObject.key"),n.context=this.proxy_||this.target_;var c=jx(r),d={configurable:ve.safeDescriptors?this.isPlainObject_:!0,enumerable:!1,get:c.get,set:c.set};if(i){if(!Reflect.defineProperty(this.target_,r,d))return!1}else un(this.target_,r,d);this.values_.set(r,new Hr(n)),this.notifyPropertyAddition_(r,void 0)}finally{hr()}return!0},t.delete_=function(r,n){if(n===void 0&&(n=!1),this.keysAtom_,!qn(this.target_,r))return!0;if(fr(this)){var i=pr(this,{object:this.proxy_||this.target_,name:r,type:Vx});if(!i)return null}try{var s;dr();var a=Vr(this),c=!1,d=this.values_.get(r),h=void 0;if(!d&&(a||c)){var f;h=(f=Ad(this.target_,r))==null?void 0:f.value}if(n){if(!Reflect.deleteProperty(this.target_,r))return!1}else delete this.target_[r];if(d&&(this.values_.delete(r),d instanceof _s&&(h=d.value_),yx(d)),this.keysAtom_.reportChanged(),(s=this.pendingKeys_)==null||(s=s.get(r))==null||s.set(r in this.target_),a||c){var g={type:Vx,observableKind:"object",object:this.proxy_||this.target_,debugObjectName:this.name_,oldValue:h,name:r};a&&Gr(this,g)}}finally{hr()}return!0},t.observe_=function(r,n){return Ec(this,r)},t.intercept_=function(r){return Rc(this,r)},t.notifyPropertyAddition_=function(r,n){var i,s=Vr(this),a=!1;if(s||a){var c=s||a?{type:Ei,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,name:r,newValue:n}:null;s&&Gr(this,c)}(i=this.pendingKeys_)==null||(i=i.get(r))==null||i.set(!0),this.keysAtom_.reportChanged()},t.ownKeys_=function(){return this.keysAtom_.reportObserved(),Oa(this.target_)},t.keys_=function(){return this.keysAtom_.reportObserved(),Object.keys(this.target_)},e})();function Ts(e,t){var o;if(qn(e,Be))return e;var r=(o=t?.name)!=null?o:"ObservableObject",n=new Gx(e,new Map,String(r),zV(t));return bc(e,Be,n),e}var I6=ks("ObservableObjectAdministration",Gx);function jx(e){return Hx[e]||(Hx[e]={get:function(){return this[Be].getObservablePropValue_(e)},set:function(o){return this[Be].setObservablePropValue_(e,o)}})}function oh(e){return Bd(e)?I6(e[Be]):!1}function Wx(e,t,o){var r;(r=e.target_[dn])==null||delete r[o]}var B6=Ux(0),O6=(function(){var e=!1,t={};return Object.defineProperty(t,"0",{set:function(){e=!0}}),Object.create(t)[0]=1,e===!1})(),Cm=0,qx=function(){};function N6(e,t){Object.setPrototypeOf?Object.setPrototypeOf(e.prototype,t):e.prototype.__proto__!==void 0?e.prototype.__proto__=t:e.prototype=t}N6(qx,Array.prototype);var ym=(function(e){function t(r,n,i,s){var a;return i===void 0&&(i="ObservableArray"),s===void 0&&(s=!1),a=e.call(this)||this,_i(function(){var c=new wm(i,n,s,!0);c.proxy_=a,Y1(a,Be,c),r&&r.length&&a.spliceWithArray(0,0,r),O6&&Object.defineProperty(a,"0",B6)}),a}tx(t,e);var o=t.prototype;return o.concat=function(){this[Be].atom_.reportObserved();for(var n=arguments.length,i=new Array(n),s=0;s<n;s++)i[s]=arguments[s];return Array.prototype.concat.apply(this.slice(),i.map(function(a){return eh(a)?a.slice():a}))},o[Symbol.iterator]=function(){var r=this,n=0;return km({next:function(){return n<r.length?{value:r[n++],done:!1}:{done:!0,value:void 0}}})},Na(t,[{key:"length",get:function(){return this[Be].getArrayLength_()},set:function(n){this[Be].setArrayLength_(n)}},{key:Symbol.toStringTag,get:function(){return"Array"}}])})(qx);Object.entries(Jd).forEach(function(e){var t=e[0],o=e[1];t!=="concat"&&bc(ym.prototype,t,o)});function Ux(e){return{enumerable:!1,configurable:!0,get:function(){return this[Be].get_(e)},set:function(o){this[Be].set_(e,o)}}}function L6(e){un(ym.prototype,""+e,Ux(e))}function $x(e){if(e>Cm){for(var t=Cm;t<e+100;t++)L6(t);Cm=e}}$x(1e3);function z6(e,t,o){return new ym(e,t,o)}function rh(e,t){if(typeof e=="object"&&e!==null){if(eh(e))return t!==void 0&&Qe(23),e[Be].atom_;if(gn(e))return e.atom_;if(Ds(e)){if(t===void 0)return e.keysAtom_;var o=e.data_.get(t)||e.hasMap_.get(t);return o||Qe(25,t,Sm(e)),o}if(oh(e)){if(!t)return Qe(26);var r=e[Be].values_.get(t);return r||Qe(27,t,Sm(e)),r}if(am(e)||qd(e)||Yd(e))return e}else if(zr(e)&&Yd(e[Be]))return e[Be];Qe(28)}function H6(e,t){if(e||Qe(29),am(e)||qd(e)||Yd(e)||Ds(e)||gn(e))return e;if(e[Be])return e[Be];Qe(24,e)}function Sm(e,t){var o;if(t!==void 0)o=rh(e,t);else{if(Ha(e))return e.name;oh(e)||Ds(e)||gn(e)?o=H6(e):o=rh(e)}return o.name_}function _i(e){var t=Ps(),o=jd(!0);dr();try{return e()}finally{hr(),Wd(o),Un(t)}}var Kx=Id.toString;function Xx(e,t,o){return o===void 0&&(o=-1),xm(e,t,o)}function xm(e,t,o,r,n){if(e===t)return e!==0||1/e===1/t;if(e==null||t==null)return!1;if(e!==e)return t!==t;var i=typeof e;if(i!=="function"&&i!=="object"&&typeof t!="object")return!1;var s=Kx.call(e);if(s!==Kx.call(t))return!1;switch(s){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!=+e?+t!=+t:+e==0?1/+e===1/t:+e==+t;case"[object Date]":case"[object Boolean]":return+e==+t;case"[object Symbol]":return typeof Symbol<"u"&&Symbol.valueOf.call(e)===Symbol.valueOf.call(t);case"[object Map]":case"[object Set]":o>=0&&o++;break}e=Zx(e),t=Zx(t);var a=s==="[object Array]";if(!a){if(typeof e!="object"||typeof t!="object")return!1;var c=e.constructor,d=t.constructor;if(c!==d&&!(zr(c)&&c instanceof c&&zr(d)&&d instanceof d)&&"constructor"in e&&"constructor"in t)return!1}if(o===0)return!1;o<0&&(o=-1),r=r||[],n=n||[];for(var h=r.length;h--;)if(r[h]===e)return n[h]===t;if(r.push(e),n.push(t),a){if(h=e.length,h!==t.length)return!1;for(;h--;)if(!xm(e[h],t[h],o-1,r,n))return!1}else{var f=Object.keys(e),g=f.length;if(Object.keys(t).length!==g)return!1;for(var m=0;m<g;m++){var b=f[m];if(!(qn(t,b)&&xm(e[b],t[b],o-1,r,n)))return!1}}return r.pop(),n.pop(),!0}function Zx(e){return eh(e)?e.slice():Ba(e)||Ds(e)||Wn(e)||gn(e)?Array.from(e.entries()):e}var Yx,V6=((Yx=Md().Iterator)==null?void 0:Yx.prototype)||{};function km(e){return e[Symbol.iterator]=G6,Object.assign(Object.create(V6),e)}function G6(){return this}if(["Symbol","Map","Set"].forEach(function(e){var t=Md();typeof t[e]>"u"&&Qe("MobX requires global '"+e+"' to be available or polyfilled")}),typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__=="object"&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:n6,extras:{getDebugName:Sm},$mobx:Be}),!S.useState)throw new Error("mobx-react-lite requires React with Hooks support");if(!R6)throw new Error("mobx-react-lite@3 requires mobx at least version 6 to be available");function j6(e){e()}function W6(e){e||(e=j6),b6({reactionScheduler:e})}function q6(e){return w6(e)}var U6=1e4,$6=1e4,K6=(function(){function e(t){var o=this;Object.defineProperty(this,"finalize",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"registrations",{enumerable:!0,configurable:!0,writable:!0,value:new Map}),Object.defineProperty(this,"sweepTimeout",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"sweep",{enumerable:!0,configurable:!0,writable:!0,value:function(r){r===void 0&&(r=U6),clearTimeout(o.sweepTimeout),o.sweepTimeout=void 0;var n=Date.now();o.registrations.forEach(function(i,s){n-i.registeredAt>=r&&(o.finalize(i.value),o.registrations.delete(s))}),o.registrations.size>0&&o.scheduleSweep()}}),Object.defineProperty(this,"finalizeAllImmediately",{enumerable:!0,configurable:!0,writable:!0,value:function(){o.sweep(0)}})}return Object.defineProperty(e.prototype,"register",{enumerable:!1,configurable:!0,writable:!0,value:function(t,o,r){this.registrations.set(r,{value:o,registeredAt:Date.now()}),this.scheduleSweep()}}),Object.defineProperty(e.prototype,"unregister",{enumerable:!1,configurable:!0,writable:!0,value:function(t){this.registrations.delete(t)}}),Object.defineProperty(e.prototype,"scheduleSweep",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.sweepTimeout===void 0&&(this.sweepTimeout=setTimeout(this.sweep,$6))}}),e})(),X6=typeof FinalizationRegistry<"u"?FinalizationRegistry:K6,_c=new X6(function(e){var t;(t=e.reaction)===null||t===void 0||t.dispose(),e.reaction=null});function Qx(e){e.reaction=new fn("observer".concat(e.name),function(){var t;e.stateVersion=Symbol(),(t=e.onStoreChange)===null||t===void 0||t.call(e)})}function Z6(e,t){t===void 0&&(t="observed");var o=J.useRef(null);if(!o.current){var r={reaction:null,onStoreChange:null,stateVersion:Symbol(),name:t,subscribe:function(a){return _c.unregister(r),r.onStoreChange=a,r.reaction||(Qx(r),r.stateVersion=Symbol()),function(){var c;r.onStoreChange=null,(c=r.reaction)===null||c===void 0||c.dispose(),r.reaction=null}},getSnapshot:function(){return r.stateVersion}};o.current=r}var n=o.current;n.reaction||(Qx(n),_c.register(o,n,n)),J.useDebugValue(n.reaction,q6),ES.useSyncExternalStore(n.subscribe,n.getSnapshot,n.getSnapshot);var i,s;if(n.reaction.track(function(){try{i=e()}catch(a){s=a}}),s)throw s;return i}var Fm,Rm,Jx=typeof Symbol=="function"&&Symbol.for,Y6=(Rm=(Fm=Object.getOwnPropertyDescriptor(function(){},"name"))===null||Fm===void 0?void 0:Fm.configurable)!==null&&Rm!==void 0?Rm:!1,ek=Jx?Symbol.for("react.forward_ref"):typeof S.forwardRef=="function"&&S.forwardRef(function(e){return null}).$$typeof,tk=Jx?Symbol.for("react.memo"):typeof S.memo=="function"&&S.memo(function(e){return null}).$$typeof;function Q6(e,t){var o;if(tk&&e.$$typeof===tk)throw new Error("[mobx-react-lite] You are trying to use `observer` on a function component wrapped in either another `observer` or `React.memo`. The observer already applies 'React.memo' for you.");var r=(o=void 0)!==null&&o!==void 0?o:!1,n=e,i=e.displayName||e.name;if(ek&&e.$$typeof===ek&&(r=!0,n=e.render,typeof n!="function"))throw new Error("[mobx-react-lite] `render` property of ForwardRef was not a function");var s=function(a,c){return Z6(function(){return n(a,c)},i)};return s.displayName=e.displayName,Y6&&Object.defineProperty(s,"name",{value:e.name,writable:!0,configurable:!0}),e.contextTypes&&(s.contextTypes=e.contextTypes),r&&(s=S.forwardRef(s)),s=S.memo(s),e8(e,s),s}var J6={$$typeof:!0,render:!0,compare:!0,type:!0,displayName:!0};function e8(e,t){Object.keys(e).forEach(function(o){J6[o]||Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(e,o))})}var Em;W6(gs.unstable_batchedUpdates),Em=_c.finalizeAllImmediately;function t8(e,t){if(ok(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var o=Object.keys(e),r=Object.keys(t);if(o.length!==r.length)return!1;for(var n=0;n<o.length;n++)if(!Object.hasOwnProperty.call(t,o[n])||!ok(e[o[n]],t[o[n]]))return!1;return!0}function ok(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}var rk=Symbol("patchMixins"),nk=Symbol("patchedDefinition");function o8(e,t){var o=e[rk]=e[rk]||{},r=o[t]=o[t]||{};return r.locks=r.locks||0,r.methods=r.methods||[],r}function ik(e,t){for(var o=this,r=arguments.length,n=new Array(r>2?r-2:0),i=2;i<r;i++)n[i-2]=arguments[i];t.locks++;try{var s;return e!=null&&(s=e.apply(this,n)),s}finally{t.locks--,t.locks===0&&t.methods.forEach(function(a){a.apply(o,n)})}}function sk(e,t){var o=function(){for(var n=arguments.length,i=new Array(n),s=0;s<n;s++)i[s]=arguments[s];ik.call.apply(ik,[this,e,t].concat(i))};return o}function r8(e,t,o){var r=o8(e,t);r.methods.indexOf(o)<0&&r.methods.push(o);var n=Object.getOwnPropertyDescriptor(e,t);if(!(n&&n[nk])){var i=e[t],s=ak(e,t,n?n.enumerable:void 0,r,i);Object.defineProperty(e,t,s)}}function ak(e,t,o,r,n){var i,s=sk(n,r);return i={},i[nk]=!0,i.get=function(){return s},i.set=function(c){if(this===e)s=sk(c,r);else{var d=ak(this,t,o,r,c);Object.defineProperty(this,t,d)}},i.configurable=!0,i.enumerable=o,i}var lk=Symbol("ObserverAdministration"),ck=Symbol("isMobXReactObserver");function _m(e){var t;return(t=e[lk])!=null?t:e[lk]={reaction:null,mounted:!1,reactionInvalidatedBeforeMount:!1,forceUpdate:null,name:Pm(e.constructor),state:void 0,props:void 0,context:void 0}}function n8(e){var t=e.prototype;if(e[ck]){var o=Pm(e);throw new Error("The provided component class ("+o+") has already been declared as an observer component.")}else e[ck]=!0;if(t.componentWillReact)throw new Error("The componentWillReact life-cycle event is no longer supported");if(e.__proto__!==S.PureComponent){if(!t.shouldComponentUpdate)t.shouldComponentUpdate=uk;else if(t.shouldComponentUpdate!==uk)throw new Error("It is not allowed to use shouldComponentUpdate in observer based components.")}var r=t.render;if(typeof r!="function"){var n=Pm(e);throw new Error("[mobx-react] class component ("+n+") is missing `render` method.\n`observer` requires `render` being a function defined on prototype.\n`render = () => {}` or `render = function() {}` is not supported.")}t.render=function(){return Object.defineProperty(this,"render",{configurable:!1,writable:!1,value:i8.call(this,r)}),this.render()};var i=t.componentDidMount;return t.componentDidMount=function(){var s=this,a=_m(this);return a.mounted=!0,_c.unregister(this),a.forceUpdate=function(){return s.forceUpdate()},(!a.reaction||a.reactionInvalidatedBeforeMount)&&a.forceUpdate(),i?.apply(this,arguments)},r8(t,"componentWillUnmount",function(){var s,a=_m(this);(s=a.reaction)==null||s.dispose(),a.reaction=null,a.forceUpdate=null,a.mounted=!1,a.reactionInvalidatedBeforeMount=!1}),e}function Pm(e){return e.displayName||e.name||"<component>"}function i8(e){var t=e.bind(this),o=_m(this);function r(){o.reaction||(o.reaction=s8(o),o.mounted||_c.register(this,o,this));var n=void 0,i=void 0;if(o.reaction.track(function(){try{i=XV(!1,t)}catch(s){n=s}}),n)throw n;return i}return r}function s8(e){return new fn(e.name+".render()",function(){if(!e.mounted){e.reactionInvalidatedBeforeMount=!0;return}try{e.forceUpdate==null||e.forceUpdate()}catch{var t;(t=e.reaction)==null||t.dispose(),e.reaction=null}})}function uk(e,t){return this.state!==t?!0:!t8(this.props,e)}function Mo(e,t){return e.isMobxInjector===!0&&console.warn("Mobx observer: You are trying to use `observer` on a component that already has `inject`. Please apply `observer` before applying `inject`"),Object.prototype.isPrototypeOf.call(S.Component,e)||Object.prototype.isPrototypeOf.call(S.PureComponent,e)?n8(e):Q6(e)}if(J.version.split(".")[0],!S.Component)throw new Error("mobx-react requires React to be available");if(!eo)throw new Error("mobx-react requires mobx to be available");var Ao={},dk;function a8(){if(dk)return Ao;dk=1;var e=Ao&&Ao.__assign||function(){return e=Object.assign||function(_){for(var P,D=1,M=arguments.length;D<M;D++){P=arguments[D];for(var A in P)Object.prototype.hasOwnProperty.call(P,A)&&(_[A]=P[A])}return _},e.apply(this,arguments)},t=Ao&&Ao.__createBinding||(Object.create?(function(_,P,D,M){M===void 0&&(M=D);var A=Object.getOwnPropertyDescriptor(P,D);(!A||("get"in A?!P.__esModule:A.writable||A.configurable))&&(A={enumerable:!0,get:function(){return P[D]}}),Object.defineProperty(_,M,A)}):(function(_,P,D,M){M===void 0&&(M=D),_[M]=P[D]})),o=Ao&&Ao.__setModuleDefault||(Object.create?(function(_,P){Object.defineProperty(_,"default",{enumerable:!0,value:P})}):function(_,P){_.default=P}),r=Ao&&Ao.__importStar||function(_){if(_&&_.__esModule)return _;var P={};if(_!=null)for(var D in _)D!=="default"&&Object.prototype.hasOwnProperty.call(_,D)&&t(P,_,D);return o(P,_),P},n=Ao&&Ao.__rest||function(_,P){var D={};for(var M in _)Object.prototype.hasOwnProperty.call(_,M)&&P.indexOf(M)<0&&(D[M]=_[M]);if(_!=null&&typeof Object.getOwnPropertySymbols=="function")for(var A=0,M=Object.getOwnPropertySymbols(_);A<M.length;A++)P.indexOf(M[A])<0&&Object.prototype.propertyIsEnumerable.call(_,M[A])&&(D[M[A]]=_[M[A]]);return D};Object.defineProperty(Ao,"__esModule",{value:!0});var i=r(Yl()),s=89,a=90,c=77,d=57,h=219,f=222,g=192,m=100,b=3e3,w=typeof window<"u"&&"navigator"in window&&/Win/i.test(navigator.platform),y=typeof window<"u"&&"navigator"in window&&/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform),k="npm__react-simple-code-editor__textarea",C=`
|
|
13
|
+
/**
|
|
14
|
+
* Reset the text fill color so that placeholder is visible
|
|
15
|
+
*/
|
|
16
|
+
.`.concat(k,`:empty {
|
|
17
|
+
-webkit-text-fill-color: inherit !important;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Hack to apply on some CSS on IE10 and IE11
|
|
22
|
+
*/
|
|
23
|
+
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
|
|
24
|
+
/**
|
|
25
|
+
* IE doesn't support '-webkit-text-fill-color'
|
|
26
|
+
* So we use 'color: transparent' to make the text transparent on IE
|
|
27
|
+
* Unlike other browsers, it doesn't affect caret color in IE
|
|
28
|
+
*/
|
|
29
|
+
.`).concat(k,` {
|
|
30
|
+
color: transparent !important;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.`).concat(k,`::selection {
|
|
34
|
+
background-color: #accef7 !important;
|
|
35
|
+
color: transparent !important;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
`),F=i.forwardRef(function(P,D){var M=P.autoFocus,A=P.disabled,O=P.form,K=P.highlight,W=P.ignoreTabKey,L=W===void 0?!1:W,V=P.insertSpaces,U=V===void 0?!0:V,$=P.maxLength,Y=P.minLength,I=P.name,X=P.onBlur,j=P.onClick,z=P.onFocus,H=P.onKeyDown,te=P.onKeyUp,re=P.onValueChange,be=P.padding,me=be===void 0?0:be,He=P.placeholder,we=P.preClassName,Ce=P.readOnly,xe=P.required,$e=P.style,Ht=P.tabSize,Vt=Ht===void 0?2:Ht,bo=P.textareaClassName,Jo=P.textareaId,Dn=P.value,Ne=n(P,["autoFocus","disabled","form","highlight","ignoreTabKey","insertSpaces","maxLength","minLength","name","onBlur","onClick","onFocus","onKeyDown","onKeyUp","onValueChange","padding","placeholder","preClassName","readOnly","required","style","tabSize","textareaClassName","textareaId","value"]),De=i.useRef({stack:[],offset:-1}),St=i.useRef(null),dt=i.useState(!0),Pe=dt[0],pt=dt[1],Kt={paddingTop:typeof me=="object"?me.top:me,paddingRight:typeof me=="object"?me.right:me,paddingBottom:typeof me=="object"?me.bottom:me,paddingLeft:typeof me=="object"?me.left:me},co=K(Dn),Rt=function(ge,at){return ge.substring(0,at).split(`
|
|
39
|
+
`)},er=i.useCallback(function(ge,at){var Ge,Ke,Dt;at===void 0&&(at=!1);var Yt=De.current,tr=Yt.stack,Fr=Yt.offset;if(tr.length&&Fr>-1){De.current.stack=tr.slice(0,Fr+1);var Rr=De.current.stack.length;if(Rr>m){var ii=Rr-m;De.current.stack=tr.slice(ii,Rr),De.current.offset=Math.max(De.current.offset-ii,0)}}var or=Date.now();if(at){var $r=De.current.stack[De.current.offset];if($r&&or-$r.timestamp<b){var Vi=/[^a-z0-9]([a-z0-9]+)$/i,wo=(Ge=Rt($r.value,$r.selectionStart).pop())===null||Ge===void 0?void 0:Ge.match(Vi),si=(Ke=Rt(ge.value,ge.selectionStart).pop())===null||Ke===void 0?void 0:Ke.match(Vi);if(wo?.[1]&&(!((Dt=si?.[1])===null||Dt===void 0)&&Dt.startsWith(wo[1]))){De.current.stack[De.current.offset]=e(e({},ge),{timestamp:or});return}}}De.current.stack.push(e(e({},ge),{timestamp:or})),De.current.offset++},[]),ri=i.useCallback(function(){var ge=St.current;if(ge){var at=ge.value,Ge=ge.selectionStart,Ke=ge.selectionEnd;er({value:at,selectionStart:Ge,selectionEnd:Ke})}},[er]),st=function(ge){var at=St.current;at&&(at.value=ge.value,at.selectionStart=ge.selectionStart,at.selectionEnd=ge.selectionEnd,re?.(ge.value))},At=function(ge){var at=St.current,Ge=De.current.stack[De.current.offset];Ge&&at&&(De.current.stack[De.current.offset]=e(e({},Ge),{selectionStart:at.selectionStart,selectionEnd:at.selectionEnd})),er(ge),st(ge)},ni=function(){var ge=De.current,at=ge.stack,Ge=ge.offset,Ke=at[Ge-1];Ke&&(st(Ke),De.current.offset=Math.max(Ge-1,0))},Ys=function(){var ge=De.current,at=ge.stack,Ge=ge.offset,Ke=at[Ge+1];Ke&&(st(Ke),De.current.offset=Math.min(Ge+1,at.length-1))},Wb=function(ge){if(!(H&&(H(ge),ge.defaultPrevented))){ge.key==="Escape"&&ge.currentTarget.blur();var at=ge.currentTarget,Ge=at.value,Ke=at.selectionStart,Dt=at.selectionEnd,Yt=(U?" ":" ").repeat(Vt);if(ge.key==="Tab"&&!L&&Pe)if(ge.preventDefault(),ge.shiftKey){var tr=Rt(Ge,Ke),Fr=tr.length-1,Rr=Rt(Ge,Dt).length-1,ii=Ge.split(`
|
|
40
|
+
`).map(function(Xr,Qs){return Qs>=Fr&&Qs<=Rr&&Xr.startsWith(Yt)?Xr.substring(Yt.length):Xr}).join(`
|
|
41
|
+
`);if(Ge!==ii){var or=tr[Fr];At({value:ii,selectionStart:or?.startsWith(Yt)?Ke-Yt.length:Ke,selectionEnd:Dt-(Ge.length-ii.length)})}}else if(Ke!==Dt){var tr=Rt(Ge,Ke),$r=tr.length-1,Vi=Rt(Ge,Dt).length-1,or=tr[$r];At({value:Ge.split(`
|
|
42
|
+
`).map(function(Js,Rl){return Rl>=$r&&Rl<=Vi?Yt+Js:Js}).join(`
|
|
43
|
+
`),selectionStart:or&&/\S/.test(or)?Ke+Yt.length:Ke,selectionEnd:Dt+Yt.length*(Vi-$r+1)})}else{var wo=Ke+Yt.length;At({value:Ge.substring(0,Ke)+Yt+Ge.substring(Dt),selectionStart:wo,selectionEnd:wo})}else if(ge.key==="Backspace"){var si=Ke!==Dt,yf=Ge.substring(0,Ke);if(yf.endsWith(Yt)&&!si){ge.preventDefault();var wo=Ke-Yt.length;At({value:Ge.substring(0,Ke-Yt.length)+Ge.substring(Dt),selectionStart:wo,selectionEnd:wo})}}else if(ge.key==="Enter"){if(Ke===Dt){var ai=Rt(Ge,Ke).pop(),Gi=ai?.match(/^\s+/);if(Gi?.[0]){ge.preventDefault();var ji=`
|
|
44
|
+
`+Gi[0],wo=Ke+ji.length;At({value:Ge.substring(0,Ke)+ji+Ge.substring(Dt),selectionStart:wo,selectionEnd:wo})}}}else if(ge.keyCode===d||ge.keyCode===h||ge.keyCode===f||ge.keyCode===g){var Kr=void 0;ge.keyCode===d&&ge.shiftKey?Kr=["(",")"]:ge.keyCode===h?ge.shiftKey?Kr=["{","}"]:Kr=["[","]"]:ge.keyCode===f?ge.shiftKey?Kr=['"','"']:Kr=["'","'"]:ge.keyCode===g&&!ge.shiftKey&&(Kr=["`","`"]),Ke!==Dt&&Kr&&(ge.preventDefault(),At({value:Ge.substring(0,Ke)+Kr[0]+Ge.substring(Ke,Dt)+Kr[1]+Ge.substring(Dt),selectionStart:Ke,selectionEnd:Dt+2}))}else(y?ge.metaKey&&ge.keyCode===a:ge.ctrlKey&&ge.keyCode===a)&&!ge.shiftKey&&!ge.altKey?(ge.preventDefault(),ni()):(y?ge.metaKey&&ge.keyCode===a&&ge.shiftKey:w?ge.ctrlKey&&ge.keyCode===s:ge.ctrlKey&&ge.keyCode===a&&ge.shiftKey)&&!ge.altKey?(ge.preventDefault(),Ys()):ge.keyCode===c&&ge.ctrlKey&&(!y||ge.shiftKey)&&(ge.preventDefault(),pt(function(Xr){return!Xr}))}},Cf=function(ge){var at=ge.currentTarget,Ge=at.value,Ke=at.selectionStart,Dt=at.selectionEnd;er({value:Ge,selectionStart:Ke,selectionEnd:Dt},!0),re(Ge)};return i.useEffect(function(){ri()},[ri]),i.useImperativeHandle(D,function(){return{get session(){return{history:De.current}},set session(ge){De.current=ge.history}}},[]),i.createElement("div",e({},Ne,{style:e(e({},E.container),$e)}),i.createElement("pre",e({className:we,"aria-hidden":"true",style:e(e(e({},E.editor),E.highlight),Kt)},typeof co=="string"?{dangerouslySetInnerHTML:{__html:co+"<br />"}}:{children:co})),i.createElement("textarea",{ref:function(ge){return St.current=ge},style:e(e(e({},E.editor),E.textarea),Kt),className:k+(bo?" ".concat(bo):""),id:Jo,value:Dn,onChange:Cf,onKeyDown:Wb,onClick:j,onKeyUp:te,onFocus:z,onBlur:X,disabled:A,form:O,maxLength:$,minLength:Y,name:I,placeholder:He,readOnly:Ce,required:xe,autoFocus:M,autoCapitalize:"off",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"data-gramm":!1}),i.createElement("style",{dangerouslySetInnerHTML:{__html:C}}))}),E={container:{position:"relative",textAlign:"left",boxSizing:"border-box",padding:0,overflow:"hidden"},textarea:{position:"absolute",top:0,left:0,height:"100%",width:"100%",resize:"none",color:"inherit",overflow:"hidden",MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",WebkitTextFillColor:"transparent"},highlight:{position:"relative",pointerEvents:"none"},editor:{margin:0,border:0,background:"none",boxSizing:"inherit",display:"inherit",fontFamily:"inherit",fontSize:"inherit",fontStyle:"inherit",fontVariantLigatures:"inherit",fontWeight:"inherit",letterSpacing:"inherit",lineHeight:"inherit",tabSize:"inherit",textIndent:"inherit",textRendering:"inherit",textTransform:"inherit",whiteSpace:"pre-wrap",wordBreak:"keep-all",overflowWrap:"break-word"}};return Ao.default=F,Ao}var l8=a8();const hk=Xl(l8);var Dm={exports:{}},fk;function c8(){return fk||(fk=1,(function(e){var t=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};var o=(function(r){var n=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,i=0,s={},a={manual:r.Prism&&r.Prism.manual,disableWorkerMessageHandler:r.Prism&&r.Prism.disableWorkerMessageHandler,util:{encode:function C(F){return F instanceof c?new c(F.type,C(F.content),F.alias):Array.isArray(F)?F.map(C):F.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(C){return Object.prototype.toString.call(C).slice(8,-1)},objId:function(C){return C.__id||Object.defineProperty(C,"__id",{value:++i}),C.__id},clone:function C(F,E){E=E||{};var _,P;switch(a.util.type(F)){case"Object":if(P=a.util.objId(F),E[P])return E[P];_={},E[P]=_;for(var D in F)F.hasOwnProperty(D)&&(_[D]=C(F[D],E));return _;case"Array":return P=a.util.objId(F),E[P]?E[P]:(_=[],E[P]=_,F.forEach(function(M,A){_[A]=C(M,E)}),_);default:return F}},getLanguage:function(C){for(;C;){var F=n.exec(C.className);if(F)return F[1].toLowerCase();C=C.parentElement}return"none"},setLanguage:function(C,F){C.className=C.className.replace(RegExp(n,"gi"),""),C.classList.add("language-"+F)},currentScript:function(){if(typeof document>"u")return null;if(document.currentScript&&document.currentScript.tagName==="SCRIPT")return document.currentScript;try{throw new Error}catch(_){var C=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(_.stack)||[])[1];if(C){var F=document.getElementsByTagName("script");for(var E in F)if(F[E].src==C)return F[E]}return null}},isActive:function(C,F,E){for(var _="no-"+F;C;){var P=C.classList;if(P.contains(F))return!0;if(P.contains(_))return!1;C=C.parentElement}return!!E}},languages:{plain:s,plaintext:s,text:s,txt:s,extend:function(C,F){var E=a.util.clone(a.languages[C]);for(var _ in F)E[_]=F[_];return E},insertBefore:function(C,F,E,_){_=_||a.languages;var P=_[C],D={};for(var M in P)if(P.hasOwnProperty(M)){if(M==F)for(var A in E)E.hasOwnProperty(A)&&(D[A]=E[A]);E.hasOwnProperty(M)||(D[M]=P[M])}var O=_[C];return _[C]=D,a.languages.DFS(a.languages,function(K,W){W===O&&K!=C&&(this[K]=D)}),D},DFS:function C(F,E,_,P){P=P||{};var D=a.util.objId;for(var M in F)if(F.hasOwnProperty(M)){E.call(F,M,F[M],_||M);var A=F[M],O=a.util.type(A);O==="Object"&&!P[D(A)]?(P[D(A)]=!0,C(A,E,null,P)):O==="Array"&&!P[D(A)]&&(P[D(A)]=!0,C(A,E,M,P))}}},plugins:{},highlightAll:function(C,F){a.highlightAllUnder(document,C,F)},highlightAllUnder:function(C,F,E){var _={callback:E,container:C,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};a.hooks.run("before-highlightall",_),_.elements=Array.prototype.slice.apply(_.container.querySelectorAll(_.selector)),a.hooks.run("before-all-elements-highlight",_);for(var P=0,D;D=_.elements[P++];)a.highlightElement(D,F===!0,_.callback)},highlightElement:function(C,F,E){var _=a.util.getLanguage(C),P=a.languages[_];a.util.setLanguage(C,_);var D=C.parentElement;D&&D.nodeName.toLowerCase()==="pre"&&a.util.setLanguage(D,_);var M=C.textContent,A={element:C,language:_,grammar:P,code:M};function O(W){A.highlightedCode=W,a.hooks.run("before-insert",A),A.element.innerHTML=A.highlightedCode,a.hooks.run("after-highlight",A),a.hooks.run("complete",A),E&&E.call(A.element)}if(a.hooks.run("before-sanity-check",A),D=A.element.parentElement,D&&D.nodeName.toLowerCase()==="pre"&&!D.hasAttribute("tabindex")&&D.setAttribute("tabindex","0"),!A.code){a.hooks.run("complete",A),E&&E.call(A.element);return}if(a.hooks.run("before-highlight",A),!A.grammar){O(a.util.encode(A.code));return}if(F&&r.Worker){var K=new Worker(a.filename);K.onmessage=function(W){O(W.data)},K.postMessage(JSON.stringify({language:A.language,code:A.code,immediateClose:!0}))}else O(a.highlight(A.code,A.grammar,A.language))},highlight:function(C,F,E){var _={code:C,grammar:F,language:E};if(a.hooks.run("before-tokenize",_),!_.grammar)throw new Error('The language "'+_.language+'" has no grammar.');return _.tokens=a.tokenize(_.code,_.grammar),a.hooks.run("after-tokenize",_),c.stringify(a.util.encode(_.tokens),_.language)},tokenize:function(C,F){var E=F.rest;if(E){for(var _ in E)F[_]=E[_];delete F.rest}var P=new f;return g(P,P.head,C),h(C,P,F,P.head,0),b(P)},hooks:{all:{},add:function(C,F){var E=a.hooks.all;E[C]=E[C]||[],E[C].push(F)},run:function(C,F){var E=a.hooks.all[C];if(!(!E||!E.length))for(var _=0,P;P=E[_++];)P(F)}},Token:c};r.Prism=a;function c(C,F,E,_){this.type=C,this.content=F,this.alias=E,this.length=(_||"").length|0}c.stringify=function C(F,E){if(typeof F=="string")return F;if(Array.isArray(F)){var _="";return F.forEach(function(O){_+=C(O,E)}),_}var P={type:F.type,content:C(F.content,E),tag:"span",classes:["token",F.type],attributes:{},language:E},D=F.alias;D&&(Array.isArray(D)?Array.prototype.push.apply(P.classes,D):P.classes.push(D)),a.hooks.run("wrap",P);var M="";for(var A in P.attributes)M+=" "+A+'="'+(P.attributes[A]||"").replace(/"/g,""")+'"';return"<"+P.tag+' class="'+P.classes.join(" ")+'"'+M+">"+P.content+"</"+P.tag+">"};function d(C,F,E,_){C.lastIndex=F;var P=C.exec(E);if(P&&_&&P[1]){var D=P[1].length;P.index+=D,P[0]=P[0].slice(D)}return P}function h(C,F,E,_,P,D){for(var M in E)if(!(!E.hasOwnProperty(M)||!E[M])){var A=E[M];A=Array.isArray(A)?A:[A];for(var O=0;O<A.length;++O){if(D&&D.cause==M+","+O)return;var K=A[O],W=K.inside,L=!!K.lookbehind,V=!!K.greedy,U=K.alias;if(V&&!K.pattern.global){var $=K.pattern.toString().match(/[imsuy]*$/)[0];K.pattern=RegExp(K.pattern.source,$+"g")}for(var Y=K.pattern||K,I=_.next,X=P;I!==F.tail&&!(D&&X>=D.reach);X+=I.value.length,I=I.next){var j=I.value;if(F.length>C.length)return;if(!(j instanceof c)){var z=1,H;if(V){if(H=d(Y,X,C,L),!H||H.index>=C.length)break;var me=H.index,te=H.index+H[0].length,re=X;for(re+=I.value.length;me>=re;)I=I.next,re+=I.value.length;if(re-=I.value.length,X=re,I.value instanceof c)continue;for(var be=I;be!==F.tail&&(re<te||typeof be.value=="string");be=be.next)z++,re+=be.value.length;z--,j=C.slice(X,re),H.index-=X}else if(H=d(Y,0,j,L),!H)continue;var me=H.index,He=H[0],we=j.slice(0,me),Ce=j.slice(me+He.length),xe=X+j.length;D&&xe>D.reach&&(D.reach=xe);var $e=I.prev;we&&($e=g(F,$e,we),X+=we.length),m(F,$e,z);var Ht=new c(M,W?a.tokenize(He,W):He,U,He);if(I=g(F,$e,Ht),Ce&&g(F,I,Ce),z>1){var Vt={cause:M+","+O,reach:xe};h(C,F,E,I.prev,X,Vt),D&&Vt.reach>D.reach&&(D.reach=Vt.reach)}}}}}}function f(){var C={value:null,prev:null,next:null},F={value:null,prev:C,next:null};C.next=F,this.head=C,this.tail=F,this.length=0}function g(C,F,E){var _=F.next,P={value:E,prev:F,next:_};return F.next=P,_.prev=P,C.length++,P}function m(C,F,E){for(var _=F.next,P=0;P<E&&_!==C.tail;P++)_=_.next;F.next=_,_.prev=F,C.length-=P}function b(C){for(var F=[],E=C.head.next;E!==C.tail;)F.push(E.value),E=E.next;return F}if(!r.document)return r.addEventListener&&(a.disableWorkerMessageHandler||r.addEventListener("message",function(C){var F=JSON.parse(C.data),E=F.language,_=F.code,P=F.immediateClose;r.postMessage(a.highlight(_,a.languages[E],E)),P&&r.close()},!1)),a;var w=a.util.currentScript();w&&(a.filename=w.src,w.hasAttribute("data-manual")&&(a.manual=!0));function y(){a.manual||a.highlightAll()}if(!a.manual){var k=document.readyState;k==="loading"||k==="interactive"&&w&&w.defer?document.addEventListener("DOMContentLoaded",y):window.requestAnimationFrame?window.requestAnimationFrame(y):window.setTimeout(y,16)}return a})(t);e.exports&&(e.exports=o),typeof EC<"u"&&(EC.Prism=o),o.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},o.languages.markup.tag.inside["attr-value"].inside.entity=o.languages.markup.entity,o.languages.markup.doctype.inside["internal-subset"].inside=o.languages.markup,o.hooks.add("wrap",function(r){r.type==="entity"&&(r.attributes.title=r.content.replace(/&/,"&"))}),Object.defineProperty(o.languages.markup.tag,"addInlined",{value:function(n,i){var s={};s["language-"+i]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:o.languages[i]},s.cdata=/^<!\[CDATA\[|\]\]>$/i;var a={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:s}};a["language-"+i]={pattern:/[\s\S]+/,inside:o.languages[i]};var c={};c[n]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return n}),"i"),lookbehind:!0,greedy:!0,inside:a},o.languages.insertBefore("markup","cdata",c)}}),Object.defineProperty(o.languages.markup.tag,"addAttribute",{value:function(r,n){o.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+r+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[n,"language-"+n],inside:o.languages[n]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),o.languages.html=o.languages.markup,o.languages.mathml=o.languages.markup,o.languages.svg=o.languages.markup,o.languages.xml=o.languages.extend("markup",{}),o.languages.ssml=o.languages.xml,o.languages.atom=o.languages.xml,o.languages.rss=o.languages.xml,(function(r){var n=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;r.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+n.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+n.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+n.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+n.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:n,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},r.languages.css.atrule.inside.rest=r.languages.css;var i=r.languages.markup;i&&(i.tag.addInlined("style","css"),i.tag.addAttribute("style","css"))})(o),o.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},o.languages.javascript=o.languages.extend("clike",{"class-name":[o.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),o.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,o.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:o.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:o.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:o.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:o.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:o.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),o.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:o.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),o.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),o.languages.markup&&(o.languages.markup.tag.addInlined("script","javascript"),o.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),o.languages.js=o.languages.javascript,(function(){if(typeof o>"u"||typeof document>"u")return;Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var r="Loading…",n=function(w,y){return"✖ Error "+w+" while fetching file: "+y},i="✖ Error: File does not exist or is empty",s={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},a="data-src-status",c="loading",d="loaded",h="failed",f="pre[data-src]:not(["+a+'="'+d+'"]):not(['+a+'="'+c+'"])';function g(w,y,k){var C=new XMLHttpRequest;C.open("GET",w,!0),C.onreadystatechange=function(){C.readyState==4&&(C.status<400&&C.responseText?y(C.responseText):C.status>=400?k(n(C.status,C.statusText)):k(i))},C.send(null)}function m(w){var y=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(w||"");if(y){var k=Number(y[1]),C=y[2],F=y[3];return C?F?[k,Number(F)]:[k,void 0]:[k,k]}}o.hooks.add("before-highlightall",function(w){w.selector+=", "+f}),o.hooks.add("before-sanity-check",function(w){var y=w.element;if(y.matches(f)){w.code="",y.setAttribute(a,c);var k=y.appendChild(document.createElement("CODE"));k.textContent=r;var C=y.getAttribute("data-src"),F=w.language;if(F==="none"){var E=(/\.(\w+)$/.exec(C)||[,"none"])[1];F=s[E]||E}o.util.setLanguage(k,F),o.util.setLanguage(y,F);var _=o.plugins.autoloader;_&&_.loadLanguages(F),g(C,function(P){y.setAttribute(a,d);var D=m(y.getAttribute("data-range"));if(D){var M=P.split(/\r\n?|\n/g),A=D[0],O=D[1]==null?M.length:D[1];A<0&&(A+=M.length),A=Math.max(0,Math.min(A-1,M.length)),O<0&&(O+=M.length),O=Math.max(0,Math.min(O,M.length)),P=M.slice(A,O).join(`
|
|
45
|
+
`),y.hasAttribute("data-start")||y.setAttribute("data-start",String(A+1))}k.textContent=P,o.highlightElement(k)},function(P){y.setAttribute(a,h),k.textContent=P})}}),o.plugins.fileHighlight={highlight:function(y){for(var k=(y||document).querySelectorAll(f),C=0,F;F=k[C++];)o.highlightElement(F)}};var b=!1;o.fileHighlight=function(){b||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),b=!0),o.plugins.fileHighlight.highlight.apply(this,arguments)}})()})(Dm)),Dm.exports}var u8=c8();const nh=Xl(u8);Prism.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},Prism.languages.markup.tag.inside["attr-value"].inside.entity=Prism.languages.markup.entity,Prism.languages.markup.doctype.inside["internal-subset"].inside=Prism.languages.markup,Prism.hooks.add("wrap",function(e){e.type==="entity"&&(e.attributes.title=e.content.replace(/&/,"&"))}),Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function(t,o){var r={};r["language-"+o]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:Prism.languages[o]},r.cdata=/^<!\[CDATA\[|\]\]>$/i;var n={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:r}};n["language-"+o]={pattern:/[\s\S]+/,inside:Prism.languages[o]};var i={};i[t]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return t}),"i"),lookbehind:!0,greedy:!0,inside:n},Prism.languages.insertBefore("markup","cdata",i)}}),Object.defineProperty(Prism.languages.markup.tag,"addAttribute",{value:function(e,t){Prism.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,"language-"+t],inside:Prism.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),Prism.languages.html=Prism.languages.markup,Prism.languages.mathml=Prism.languages.markup,Prism.languages.svg=Prism.languages.markup,Prism.languages.xml=Prism.languages.extend("markup",{}),Prism.languages.ssml=Prism.languages.xml,Prism.languages.atom=Prism.languages.xml,Prism.languages.rss=Prism.languages.xml;const d8=Mo(e=>{const{dvSvc:t,vm:o,onLog:r}=e,[n,i]=J.useState([]),[s,a]=J.useState(o.selectedView),[c,d]=J.useState(o.selectedView?.fetchXml||""),[h,f]=J.useState(""),g=C=>{try{const E=new DOMParser().parseFromString(C,"application/xml");if(E.getElementsByTagName("parsererror")[0])return null;const D=new XMLSerializer().serializeToString(E).replace(/(>)(<)(\/*)/g,`$1
|
|
46
|
+
$2$3`);let M=0;return D.split(`
|
|
47
|
+
`).map(A=>{const O=/^<\/.+>/.test(A),K=/^<[^!?].*[^/]>$/.test(A)&&!/^<[^!?].*\/>$/.test(A);O&&(M=Math.max(M-1,0));const W=" ".repeat(M);return K&&(M+=1),`${W}${A}`}).join(`
|
|
48
|
+
`)}catch{return null}};J.useEffect(()=>{(async()=>o.viewSelectorOpen&&o.tables.length===0&&await t.getTables().then(F=>{o.tables=F,r(`Loaded ${F.length} tables`,"success")}).catch(F=>{r(`Error loading tables: ${F.message}`,"error")}))()},[o.viewSelectorOpen,r]),J.useEffect(()=>{(async()=>o.selectedTable&&(i([]),i(await t.getViews(o.selectedTable))))()},[o.selectedTable]),J.useEffect(()=>{(async()=>{if(o.selectedTable&&(!o.selectedTable.fields||o.selectedTable.fields.length===0)){const F=await t.getFields(o.selectedTable.logicalName);o.selectedTable.fields=F}})()},[o.selectedTable]),J.useEffect(()=>{(async()=>s&&(s.fieldNames=c.match(/attribute\s+name\s*=\s*["']([^"']+)["']/g)?.map(F=>F.match(/["']([^"']+)["']/)?.[1]).filter(F=>F!==void 0)||[]))()},[s,c]),J.useEffect(()=>{if(s){const C=s.fetchXml||"",F=g(C);d(F||C)}else d("")},[s]);const m=(C,F)=>{o.selectedTable=o.tables.find(E=>E.logicalName===F.optionValue),f(o.selectedTable?.displayName||"")},b=(C,F)=>{a(n.find(E=>E.id===F.optionValue))},w=()=>{s&&(s.fetchXml=c,o.selectedView=s,o.viewSelectorOpen=!1,r(`Selected view: ${s.label}`,"success"))},y=o.tables.map(C=>({children:C.displayName,value:C.logicalName})),k=jL(h,y,{noOptionsMessage:"No tables found"});return B.jsx(B.Fragment,{children:B.jsxs(em,{open:o.viewSelectorOpen,onOpenChange:(C,F)=>o.viewSelectorOpen=F.open,size:"medium",children:[B.jsx(om,{children:"Select a View"}),B.jsx(tm,{children:B.jsxs("div",{children:[B.jsx(bs,{label:"Table",children:B.jsx(Ma,{clearable:!0,disabled:o.tables.length===0,onOptionSelect:m,placeholder:"Select a table",value:h,selectedOptions:o.selectedTable?[o.selectedTable.logicalName]:[],onChange:C=>f(C.target.value),children:k})}),B.jsx(bs,{label:"View",children:B.jsx(Ma,{disabled:n.length===0,onOptionSelect:b,placeholder:"Select a view",value:s?.label||"",children:n.map(C=>B.jsx(Lr,{text:C.label,value:C.id,children:C.label},C.id))})}),B.jsx(bs,{label:"FetchXML",children:B.jsx(hk,{value:c,onValueChange:C=>{s&&d(C)},highlight:C=>nh.highlight(C,nh.languages.markup,"markup"),padding:12,className:`fetchxml-editor${s?"":" fetchxml-editor--disabled"}`,preClassName:"fetchxml-editor__pre",textareaClassName:"fetchxml-editor__textarea"})})]})}),B.jsx(nm,{style:{display:"flex",width:"100%"},children:B.jsx(ut,{style:{marginLeft:"auto"},appearance:"primary",onClick:w,children:"Select"})})]})})});var Ms=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,o){const r=t?this.allAsyncListeners:this.allSyncListeners;let n=r.get(e);return!n&&o&&(n=new Set,r.set(e,n)),n}noRegisteredListenersExist(){return this.allSyncListeners.size===0&&this.allAsyncListeners.size===0&&this.globalSyncListeners.size===0&&this.globalAsyncListeners.size===0}addEventListener(e,t,o=!1){this.getListeners(e,o,!0).add(t)}removeEventListener(e,t,o=!1){const r=this.getListeners(e,o,!1);r&&(r.delete(t),r.size===0&&(o?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 o=e.type;if(t&&"event"in e){const a=e.event;a instanceof Event&&(e.eventPath=a.composedPath())}const{frameworkOverrides:r}=this,n=a=>{const c=r?()=>r.wrapIncoming(a):a;t?this.dispatchAsync(c):c()},i=this.getListeners(o,t,!1);if((i?.size??0)>0){const a=new Set(i);for(const c of a)i?.has(c)&&n(()=>c(e))}const s=this.getGlobalListeners(t);if(s.size>0){const a=new Set(s);for(const c of a)n(()=>c(o,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=[];for(const t of e)t()}};function Pi(e){return e==null||e===""?null:e}function Ee(e){return e!=null&&e!==""}function Ut(e){return!Ee(e)}function Tm(e){return e!=null&&typeof e.toString=="function"?e.toString():null}function pk(e,t){const o=e?JSON.stringify(e):null,r=t?JSON.stringify(t):null;return o===r}function h8(e,t,o={}){o.transform&&(e=o.transform(e),t=o.transform(t));const r=e==null,n=t==null;if(e?.toNumber&&(e=e.toNumber()),t?.toNumber&&(t=t.toNumber()),r&&n)return 0;if(r)return-1;if(n)return 1;function i(s,a){return s>a?1:s<a?-1:0}if(typeof e!="string"||!o.accentedCompare)return i(e,t);try{return e.localeCompare(t)}catch{return i(e,t)}}var f8=/[&<>"']/g,p8={"&":"&","<":"<",">":">",'"':""","'":"'"};function Pc(e){return e?.toString().toString()??null}function Dc(e){return Pc(e)?.replace(f8,t=>p8[t])??null}function gk(e){return typeof e=="string"&&e.startsWith("=")&&e.length>1}function mn(e){return e.eRootDiv.getRootNode()}function Mt(e){return mn(e).activeElement}function lo(e){const{gos:t,eRootDiv:o}=e;let r=null;const n=t.get("getDocument");return n&&Ee(n)?r=n():o&&(r=o.ownerDocument),r&&Ee(r)?r:document}function Mm(e){const t=Mt(e);return t===null||t===lo(e).body}function mk(e){return lo(e).defaultView||window}function Am(e){let t=null,o=null;try{t=lo(e).fullscreenElement}catch{}finally{t||(t=mn(e));const r=t.querySelector("body");r?o=r:t instanceof ShadowRoot?o=t:t instanceof Document?o=t?.documentElement:o=t}return o}function g8(e){return Am(e)?.clientWidth??(window.innerWidth||-1)}function m8(e){return Am(e)?.clientHeight??(window.innerHeight||-1)}function vn(e,t,o){o==null||typeof o=="string"&&o==""?vk(e,t):bn(e,t,o)}function bn(e,t,o){e.setAttribute(bk(t),o.toString())}function vk(e,t){e.removeAttribute(bk(t))}function bk(e){return`aria-${e}`}function ja(e,t){t?e.setAttribute("role",t):e.removeAttribute("role")}function v8(e){const t=e?.direction;return t==="asc"?"ascending":t==="desc"?"descending":t==="mixed"?"other":"none"}function b8(e){return e.getAttribute("aria-label")}function Wa(e,t){vn(e,"label",t)}function Tc(e,t){vn(e,"labelledby",t)}function wk(e,t){vn(e,"live",t)}function w8(e,t){vn(e,"atomic",t)}function C8(e,t){vn(e,"relevant",t)}function Ck(e,t){vn(e,"invalid",t)}function yk(e,t){vn(e,"hidden",t)}function Im(e,t){bn(e,"expanded",t)}function y8(e,t){bn(e,"setsize",t)}function S8(e,t){bn(e,"posinset",t)}function x8(e,t){bn(e,"rowcount",t)}function k8(e,t){bn(e,"rowindex",t)}function F8(e,t){bn(e,"colcount",t)}function Sk(e,t){bn(e,"colindex",t)}function R8(e,t){bn(e,"colspan",t)}function E8(e,t){bn(e,"sort",t)}function _8(e){vk(e,"sort")}function xk(e,t){vn(e,"selected",t)}function P8(e,t){vn(e,"controls",t)}function D8(e,t){P8(e,t.id),Tc(t,e.id)}function kk(e,t){vn(e,"owns",t)}function ih(e,t){return t===void 0?e("ariaIndeterminate","indeterminate"):t===!0?e("ariaChecked","checked"):e("ariaUnchecked","unchecked")}var T8="[tabindex], input, select, button, textarea, [href]",Fk="[disabled], .ag-disabled:not(.ag-button), .ag-disabled *";function Mc(e){return!e||!e.matches("input, select, button, textarea")||!e.matches(Fk)?!1:Xn(e)}function kt(e,t,o={}){const{skipAriaHidden:r}=o;e.classList.toggle("ag-hidden",!t),r||yk(e,!t)}function M8(e,t,o={}){const{skipAriaHidden:r}=o;e.classList.toggle("ag-invisible",!t),r||yk(e,!t)}function Ac(e,t){const o="disabled",r=t?i=>i.setAttribute(o,""):i=>i.removeAttribute(o);r(e);const n=e.querySelectorAll("input")??[];for(const i of n)r(i)}function As(e,t,o){let r=0;for(;e;){if(e.classList.contains(t))return!0;if(e=e.parentElement,typeof o=="number"){if(++r>o)break}else if(e===o)break}return!1}function Is(e){const{height:t,width:o,borderTopWidth:r,borderRightWidth:n,borderBottomWidth:i,borderLeftWidth:s,paddingTop:a,paddingRight:c,paddingBottom:d,paddingLeft:h,marginTop:f,marginRight:g,marginBottom:m,marginLeft:b,boxSizing:w}=window.getComputedStyle(e),y=Number.parseFloat;return{height:y(t||"0"),width:y(o||"0"),borderTopWidth:y(r||"0"),borderRightWidth:y(n||"0"),borderBottomWidth:y(i||"0"),borderLeftWidth:y(s||"0"),paddingTop:y(a||"0"),paddingRight:y(c||"0"),paddingBottom:y(d||"0"),paddingLeft:y(h||"0"),marginTop:y(f||"0"),marginRight:y(g||"0"),marginBottom:y(m||"0"),marginLeft:y(b||"0"),boxSizing:w}}function Bm(e){const t=Is(e);return t.boxSizing==="border-box"?t.height-t.paddingTop-t.paddingBottom-t.borderTopWidth-t.borderBottomWidth:t.height}function sh(e){const t=Is(e);return t.boxSizing==="border-box"?t.width-t.paddingLeft-t.paddingRight-t.borderLeftWidth-t.borderRightWidth:t.width}function Rk(e){const{height:t,marginBottom:o,marginTop:r}=Is(e);return Math.floor(t+o+r)}function ah(e){const{width:t,marginLeft:o,marginRight:r}=Is(e);return Math.floor(t+o+r)}function Ek(e){const t=e.getBoundingClientRect(),{borderTopWidth:o,borderLeftWidth:r,borderRightWidth:n,borderBottomWidth:i}=Is(e);return{top:t.top+(o||0),left:t.left+(r||0),right:t.right+(n||0),bottom:t.bottom+(i||0)}}function lh(e,t){let o=e.scrollLeft;return t&&(o=Math.abs(o)),o}function ch(e,t,o){o&&(t*=-1),e.scrollLeft=t}function Kn(e){for(;e?.firstChild;)e.firstChild.remove()}function qa(e){e?.parentNode&&e.remove()}function Om(e){return!!e.offsetParent}function Xn(e){return e.checkVisibility?e.checkVisibility({checkVisibilityCSS:!0}):!(!Om(e)||window.getComputedStyle(e).visibility!=="visible")}function Nm(e){const t=document.createElement("div");return t.innerHTML=(e||"").trim(),t.firstChild}function uh(e){return()=>{const t=e();return t?Lm(t)||_k(t):!0}}function Lm(e){return e.clientWidth<e.scrollWidth}function _k(e){return e.clientHeight<e.scrollHeight}function dh(e,t){t==="flex"?(e.style.removeProperty("width"),e.style.removeProperty("minWidth"),e.style.removeProperty("maxWidth"),e.style.flex="1 1 auto"):wn(e,t)}function wn(e,t){t=zm(t),e.style.width=t,e.style.maxWidth=t,e.style.minWidth=t}function Ic(e,t){t=zm(t),e.style.height=t,e.style.maxHeight=t,e.style.minHeight=t}function zm(e){return typeof e=="number"?`${e}px`:e}function Pk(e){return e instanceof Node||e instanceof HTMLElement}function Wr(e,t,o){o==null||o===""?e.removeAttribute(t):e.setAttribute(t,o.toString())}function Zn(e,t,o){const n=mk(e).ResizeObserver,i=n?new n(o):null;return i?.observe(t),()=>i?.disconnect()}function Yn(e,t){const o=mk(e);o.requestAnimationFrame?o.requestAnimationFrame(t):o.webkitRequestAnimationFrame?o.webkitRequestAnimationFrame(t):o.setTimeout(t,0)}var Dk="data-ref",Hm;function Tk(){return Hm??(Hm=document.createTextNode(" ")),Hm.cloneNode()}function Di(e){const{attrs:t,children:o,cls:r,ref:n,role:i,tag:s}=e,a=document.createElement(s);if(r&&(a.className=r),n&&a.setAttribute(Dk,n),i&&a.setAttribute("role",i),t)for(const c of Object.keys(t))a.setAttribute(c,t[c]);if(o)if(typeof o=="string")a.textContent=o;else{let c=!0;for(const d of o)d&&(typeof d=="string"?(a.appendChild(document.createTextNode(d)),c=!1):typeof d=="function"?a.appendChild(d()):(c&&(a.appendChild(Tk()),c=!1),a.append(Di(d)),a.appendChild(Tk())))}return a}var A8=["touchstart","touchend","touchmove","touchcancel","scroll"],I8=["wheel"],Vm={},Mk=(()=>{const e={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};return o=>{if(typeof Vm[o]=="boolean")return Vm[o];const r=document.createElement(e[o]||"div");return o="on"+o,Vm[o]=o in r}})();function B8(e,t){return!t||!e?!1:N8(t).indexOf(e)>=0}function O8(e){const t=[];let o=e.target;for(;o;)t.push(o),o=o.parentElement;return t}function N8(e){const t=e;return t.path?t.path:t.composedPath?t.composedPath():O8(t)}function L8(e,t,o){const r=z8(t);let n;r!=null&&(n={passive:r}),e.addEventListener(t,o,n)}var z8=e=>{const t=A8.includes(e),o=I8.includes(e);if(t)return!0;if(o)return!1};function Ak(e,t,o){if(o===0)return!1;const r=Math.abs(e.clientX-t.clientX),n=Math.abs(e.clientY-t.clientY);return Math.max(r,n)<=o}var Ua=(e,t)=>{const o=e.identifier;for(let r=0,n=t.length;r<n;++r){const i=t[r];if(i.identifier===o)return i}return null};function Bc(e,t){return e.gos.isElementInThisInstance(t.target)}function H8(e,t,o){const n=e.getBoundingClientRect().height,i=g8(o)-2,s=m8(o)-2;if(!e.offsetParent)return;const c=Ek(e.offsetParent),{clientY:d,clientX:h}=t;let f=d-c.top-n/2,g=h-c.left-10;const m=lo(o),b=m.defaultView||window,w=b.pageYOffset||m.documentElement.scrollTop,y=b.pageXOffset||m.documentElement.scrollLeft;i>0&&g+e.clientWidth>i+y&&(g=i+y-e.clientWidth),g<0&&(g=0),s>0&&f+e.clientHeight>s+w&&(f=s+w-e.clientHeight),f<0&&(f=0),e.style.left=`${g}px`,e.style.top=`${f}px`}var hh=(e,...t)=>{for(const o of t){const[r,n,i,s]=o;r.addEventListener(n,i,s),e.push(o)}},Gm=e=>{if(e){for(const[t,o,r,n]of e)t.removeEventListener(o,r,n);e.length=0}},$a=e=>{e.cancelable&&e.preventDefault()};function V8(e,t){return t}function Ik(e){return e?.getLocaleTextFunc()??V8}function G8(e,t,o,r){const n=t[o];return e.getLocaleTextFunc()(o,typeof n=="function"?n(r):n,r)}var Io=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,o){this.localEventService||(this.localEventService=new Ms),this.localEventService.addEventListener(e,t,o)}removeEventListener(e,t,o){this.localEventService?.removeEventListener(e,t,o)}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 o=[];for(const r of Object.keys(t)){const n=t[r];n&&o.push(this._setupListener(e,r,n))}return o}_setupListener(e,t,o){if(this.destroyed)return()=>null;let r;if(j8(e))e.__addEventListener(t,o),r=()=>(e.__removeEventListener(t,o),null);else{const n=W8(e);e instanceof HTMLElement?L8(e,t,o):n?e.addListener(t,o):e.addEventListener(t,o),r=n?()=>(e.removeListener(t,o),null):()=>(e.removeEventListener(t,o),null)}return this.destroyFunctions.push(r),()=>(r(),this.destroyFunctions=this.destroyFunctions.filter(n=>n!==r),null)}setupPropertyListener(e,t){const{gos:o}=this;o.addPropertyEventListener(e,t);const r=()=>(o.removePropertyEventListener(e,t),null);return this.destroyFunctions.push(r),()=>(r(),this.destroyFunctions=this.destroyFunctions.filter(n=>n!==r),null)}addManagedPropertyListener(e,t){return this.destroyed?()=>null:this.setupPropertyListener(e,t)}addManagedPropertyListeners(e,t){if(this.destroyed)return;const o=e.join("-")+this.propertyListenerId++,r=n=>{if(n.changeSet){if(n.changeSet&&n.changeSet.id===this.lastChangeSetIdLookup[o])return;this.lastChangeSetIdLookup[o]=n.changeSet.id}const i={type:"propertyChanged",changeSet:n.changeSet,source:n.source};t(i)};for(const n of e)this.setupPropertyListener(n,r)}getLocaleTextFunc(){return Ik(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 o=this.createBean(e,t);return this.addDestroyFunc(this.destroyBean.bind(this,e,t)),o}createBean(e,t,o){return(t||this.stubContext).createBean(e,o)}destroyBean(e,t){return(t||this.stubContext).destroyBean(e)}destroyBeans(e,t){return(t||this.stubContext).destroyBeans(e)}};function j8(e){return e.__addEventListener!==void 0}function W8(e){return e.eventServiceType==="global"}var ue=class extends Io{},jm=new Set,fh=(e,t)=>{jm.has(t)||(jm.add(t),e())};fh._set=jm;var q8={pending:!1,funcs:[]},U8={pending:!1,funcs:[]};function Wm(e,t="setTimeout",o){const r=t==="raf"?U8:q8;if(r.funcs.push(e),r.pending)return;r.pending=!0;const n=()=>{const i=r.funcs.slice();r.funcs.length=0,r.pending=!1;for(const s of i)s()};t==="raf"?Yn(o,n):window.setTimeout(n,0)}function Qn(e,t,o){let r;return function(...n){const i=this;return window.clearTimeout(r),r=window.setTimeout(function(){e.isAlive()&&t.apply(i,n)},o),r}}function Bk(e,t){let o=0;return function(...r){const n=this,i=Date.now();i-o<t||(o=i,e.apply(n,r))}}function $8(e,t,o,r=100){const n=Date.now();let i=null,s=!1;const a=()=>{i!=null&&(window.clearInterval(i),i=null)};e.addDestroyFunc(a);const c=()=>{const d=Date.now()-n>r;(t()||d)&&(o(),s=!0,a())};c(),s||(i=window.setInterval(c,10))}var K8=new Set(["__proto__","constructor","prototype"]);function X8(e,t){if(e!=null){if(Array.isArray(e)){for(let o=0;o<e.length;o++)t(o.toString(),e[o]);return}for(const o of Object.keys(e).filter(r=>!K8.has(r)))t(o,e[o])}}function ko(e,t,o=!0,r=!1){Ee(t)&&X8(t,(n,i)=>{let s=e[n];s!==i&&(r&&s==null&&i!=null&&typeof i=="object"&&i.constructor===Object&&(s={},e[n]=s),Ok(i)&&Ok(s)&&!Array.isArray(s)?ko(s,i,o,r):(o||i!==void 0)&&(e[n]=i))})}function Ok(e){return typeof e=="object"&&e!==null}var qm=class mi{static applyGlobalGridOptions(t){if(!mi.gridOptions)return{...t};let o={};return ko(o,mi.gridOptions,!0,!0),mi.mergeStrategy==="deep"?ko(o,t,!0,!0):o={...o,...t},mi.gridOptions.context&&(o.context=mi.gridOptions.context),t.context&&(mi.mergeStrategy==="deep"&&o.context&&ko(t.context,o.context,!0,!0),o.context=t.context),o}static applyGlobalGridOption(t,o){if(mi.mergeStrategy==="deep"){const r=Nk(t);if(r&&typeof r=="object"&&typeof o=="object")return mi.applyGlobalGridOptions({[t]:o})[t]}return o}};qm.gridOptions=void 0,qm.mergeStrategy="shallow";var Um=qm;function Nk(e){return Um.gridOptions?.[e]}var Lk={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,refreshAfterGroupEdit:!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,enableFilterHandlers:!1},zk="https://www.ag-grid.com";function ph(e,t,...o){e.get("debug")&&console.log("AG Grid: "+t,...o)}function Oc(e,...t){fh(()=>console.warn("AG Grid: "+e,...t),e+t?.join(""))}function Ka(e,...t){fh(()=>console.error("AG Grid: "+e,...t),e+t?.join(""))}var Hk=new Set,gh={},Bs={},mh,Vk=!1,Gk=!1,Z8=!1;function Y8(e){const[t,o]=e.version.split(".")||[],[r,n]=mh.split(".")||[];return t===r&&o===n}function Q8(e){mh||(mh=e.version);const t=r=>`You are using incompatible versions of AG Grid modules. Major and minor versions should always match across modules. ${r} Please update all modules to the same version.`;e.version?Y8(e)||Ka(t(`'${e.moduleName}' is version ${e.version} but the other modules are version ${mh}.`)):Ka(t(`'${e.moduleName}' is incompatible.`));const o=e.validate?.();o&&!o.isValid&&Ka(`${o.message}`)}function Nc(e,t,o=!1){o||(Vk=!0),Q8(e);const r=e.rowModels??["all"];Hk.add(e);let n;t!==void 0?(Gk=!0,Bs[t]===void 0&&(Bs[t]={}),n=Bs[t]):n=gh;for(const i of r)n[i]===void 0&&(n[i]={}),n[i][e.moduleName]=e;if(e.dependsOn)for(const i of e.dependsOn)Nc(i,t,o)}function J8(e){delete Bs[e]}function $m(e,t,o){const r=n=>!!gh[n]?.[e]||!!Bs[t]?.[n]?.[e];return r(o)||r("all")}function Km(){return Gk}function e7(e,t){const o=Bs[e]??{};return[...Object.values(gh.all??{}),...Object.values(o.all??{}),...Object.values(gh[t]??{}),...Object.values(o[t]??{})]}function t7(){return new Set(Hk)}function o7(e,t){const o=Bs[e]??{};return[...Object.values(o.all??{}),...Object.values(o[t]??{})]}function r7(){return Vk}function jk(){return Z8}var Xm=class{static register(e){Nc(e,void 0)}static registerModules(e){for(const t of e)Nc(t,void 0)}},Ve="35.0.0",Wk=2e3,qk=100,Uk="_version_",$k=null,Xa=`${zk}/javascript-data-grid`;function n7(e){$k=e}function i7(e){Xa=e}function Kk(e,t,o){return $k?.(e,t)??[c7(e,t,o)]}function Zm(e,t,o,r,n){e(`${r?"warning":"error"} #${t}`,...Kk(t,o,n))}function s7(e){if(!e)return String(e);const t={};for(const o of Object.keys(e))typeof e[o]!="object"&&typeof e[o]!="function"&&(t[o]=e[o]);return JSON.stringify(t)}function a7(e){let t=e;return e instanceof Error?t=e.toString():typeof e=="object"&&(t=s7(e)),t}function vh(e){return e===void 0?"undefined":e===null?"null":e}function Ym(e,t){return`${e}?${t.toString()}`}function l7(e,t,o){const r=Array.from(t.entries()).sort((i,s)=>s[1].length-i[1].length);let n=Ym(e,t);for(const[i,s]of r){if(i===Uk)continue;const a=n.length-o;if(a<=0)break;const c="...",d=a+c.length,h=s.length-d>qk?s.slice(0,s.length-d)+c:s.slice(0,qk)+c;t.set(i,h),n=Ym(e,t)}return n}function Xk(e,t){const o=new URLSearchParams;if(o.append(Uk,Ve),t)for(const i of Object.keys(t))o.append(i,a7(t[i]));const r=`${Xa}/errors/${e}`,n=Ym(r,o);return n.length<=Wk?n:l7(r,o,Wk)}var c7=(e,t,o)=>{const r=Xk(e,t);return`${`${o?o+`
|
|
49
|
+
`:""}Visit ${r}`}${o?"":`
|
|
50
|
+
Alternatively register the ValidationModule to see the full message in the console.`}`};function he(...e){Zm(Oc,e[0],e[1],!0)}function Ft(...e){Zm(Ka,e[0],e[1],!1)}function Lc(e,t,o){Zm(Ka,e,t,!1,o)}function u7(e,t){const o=t[0];return`error #${o} `+Kk(o,t[1],e).join(" ")}function Cn(...e){return u7(void 0,e)}function Zk(e,t){return e.get("rowModelType")===t}function Fo(e,t){return Zk(e,"clientSide")}function Qm(e,t){return Zk(e,"serverSide")}function po(e,t){return e.get("domLayout")===t}function Os(e){return yh(e)!==void 0}function Yk(e){return typeof e.get("getRowHeight")=="function"}function d7(e,t){return t?!e.get("enableStrictPivotColumnOrder"):e.get("maintainColumnOrder")}function h7({gos:e,formula:t}){const o=e.get("rowNumbers");return o||!!t?.active&&o!==!1}function bh(e,t,o=!1,r){const{gos:n,environment:i}=e;if(r==null&&(r=i.getDefaultRowHeight()),Yk(n)){if(o)return{height:r,estimated:!0};const c={node:t,data:t.data},d=n.getCallback("getRowHeight")(c);if(Jm(d))return d===0&&he(23),{height:Math.max(1,d),estimated:!1}}if(t.detail&&n.get("masterDetail"))return f7(n);const s=n.get("rowHeight");return{height:s&&Jm(s)?s:r,estimated:!1}}function f7(e){if(e.get("detailRowAutoHeight"))return{height:1,estimated:!1};const t=e.get("detailRowHeight");return Jm(t)?{height:t,estimated:!1}:{height:300,estimated:!1}}function Qk(e){const{environment:t,gos:o}=e,r=o.get("rowHeight");if(!r||Ut(r))return t.getDefaultRowHeight();const n=t.refreshRowHeightVariable();return n!==-1?n:(he(24),t.getDefaultRowHeight())}function Jm(e){return!isNaN(e)&&typeof e=="number"&&isFinite(e)}function Jk(e,t,o){const r=t[e.getDomDataKey()];return r?r[o]:void 0}function Ns(e,t,o,r){const n=e.getDomDataKey();let i=t[n];Ut(i)&&(i={},t[n]=i),i[o]=r}function Za(e){return e.get("ensureDomOrder")?!1:e.get("animateRows")}function eF(e){return!(e.get("paginateChildRows")||e.get("groupHideOpenParents")||po(e,"print"))}function yn(e){return!e.get("autoGroupColumnDef")?.comparator&&!e.get("treeData")}function ev(e){const t=e.get("groupAggFiltering");if(typeof t=="function")return e.getCallback("groupAggFiltering");if(t===!0)return()=>!0}function tF(e,t){return t?!1:e.get("groupDisplayType")==="groupRows"}function p7(e,t,o){return!!t.group&&!t.footer&&tF(e,o)}function tv(e){const t=e.getCallback("getRowId");return t===void 0?t:o=>{let r=t(o);return typeof r!="string"&&(fh(()=>he(25,{id:r}),"getRowIdString"),r=String(r)),r}}function Ya(e){return e?.checkboxes??!0}function wh(e){return e?.mode==="multiRow"&&(e.headerCheckbox??!0)}function Ch(e){if(typeof e=="object")return e.checkboxLocation??"selectionColumn"}function ov(e){return e?.hideDisabledCheckboxes??!1}function g7(e){return typeof e.get("rowSelection")!="string"}function zc(e){const t=e.get("cellSelection");return t!==void 0?!!t:e.get("enableRangeSelection")}function Qa(e){const t=e.get("cellSelection")??!1;return(typeof t=="object"&&t.enableColumnSelection)??!1}function oF(e){const t=e.get("rowSelection")??"single";if(typeof t=="string"){const o=e.get("suppressRowClickSelection"),r=e.get("suppressRowDeselection");return o&&r?!1:o?"enableDeselection":r?"enableSelection":!0}return t.mode==="singleRow"||t.mode==="multiRow"?t.enableClickSelection??!1:!1}function m7(e){const t=oF(e);return t===!0||t==="enableSelection"}function v7(e){const t=oF(e);return t===!0||t==="enableDeselection"}function rv(e){const t=e.get("rowSelection");return typeof t=="string"?e.get("isRowSelectable"):t?.isRowSelectable}function yh(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 Sh(e){return yh(e)==="multiRow"}function b7(e){const t=e.get("rowSelection");return typeof t=="string"?e.get("rowMultiSelectWithClick"):t?.enableSelectionWithoutKeys??!1}function xh(e){const t=e.get("rowSelection");if(typeof t=="string"){const o=e.get("groupSelectsChildren"),r=e.get("groupSelectsFiltered");return o&&r?"filteredDescendants":o?"descendants":"self"}return t?.mode==="multiRow"?t.groupSelects:void 0}function rF(e,t=!0){const o=e.get("rowSelection");return typeof o!="object"?t?"all":void 0:o.mode==="multiRow"?o.selectAll:"all"}function w7(e){const t=e.get("rowSelection");return typeof t=="string"?!1:t?.mode==="multiRow"?t.ctrlASelectsRows??!1:!1}function Hc(e){const t=xh(e);return t==="descendants"||t==="filteredDescendants"}function nF(e){const t=e.get("rowSelection");return typeof t=="object"&&t.masterSelects||"self"}function C7(e){return e.isModuleRegistered("SetFilter")&&!e.get("suppressSetFilterByDefault")}function Yo(e){return e.get("columnMenu")==="legacy"}function y7(e){return!Yo(e)}function S7(e){return!e||e.length<2?e:"on"+e[0].toUpperCase()+e.substring(1)}function x7(e,t,o){typeof e!="object"&&(e={});const r={...e};for(const n of o){const i=t[n];typeof i<"u"&&(r[n]=i)}return r}function k7(e,t){if(!e)return;const o={};let r=!1;for(const s of Object.keys(e))o[s]=e[s],r=!0;if(!r)return;const n={type:"gridOptionsChanged",options:o};t.dispatchEvent(n);const i={type:"componentStateChanged",...o};t.dispatchEvent(i)}function Ze(e,t){return e.addCommon(t)}function kh(e,t){return e[t]??e.gridOptions?.[t]??Nk(t)??Lk[t]}function F7({gos:e},t){return t.button===2||t.ctrlKey&&e.get("allowContextMenuWithControlKey")}var R7={resizable:!0,sortable:!0},E7=0;function iF(){return E7++}function Ti(e){return e instanceof Ls}var _7=["asc","desc",null],P7=[{type:"absolute",direction:"asc"},{type:"absolute",direction:"desc"},null],Ls=class extends ue{constructor(e,t,o,r){super(),this.colDef=e,this.userProvidedColDef=t,this.colId=o,this.primary=r,this.isColumn=!0,this.instanceId=iF(),this.autoHeaderHeight=null,this.sortDef=qr(),this._wasSortExplicitlyRemoved=!1,this.moving=!1,this.resizing=!1,this.menuVisible=!1,this.formulaRef=null,this.lastLeftPinned=!1,this.firstRightPinned=!1,this.filterActive=!1,this.colEventSvc=new Ms,this.tooltipEnabled=!1,this.rowGroupActive=!1,this.pivotActive=!1,this.aggregationActive=!1,this.flex=null,this.colIdSanitised=Dc(o)}destroy(){super.destroy(),this.beans.rowSpanSvc?.deregister(this)}getInstanceId(){return this.instanceId}initState(){const{colDef:e,beans:{sortSvc:t,pinnedCols:o,colFlex:r}}=this;t?.initCol(this);const n=e.hide;n!==void 0?this.visible=!n:this.visible=!e.initialHide,o?.initCol(this),r?.initCol(this)}setColDef(e,t,o){const r=e.spanRows!==this.colDef.spanRows;this.colDef=e,this.userProvidedColDef=t,this.initMinAndMaxWidths(),this.initDotNotation(),this.initTooltip(),r&&(this.beans.rowSpanSvc?.deregister(this),this.initRowSpan()),this.dispatchColEvent("colDefChanged",o)}getUserProvidedColDef(){return this.userProvidedColDef}getParent(){return this.parent}getOriginalParent(){return this.originalParent}postConstruct(){this.initState(),this.initMinAndMaxWidths(),this.resetActualWidth("gridInitializing"),this.initDotNotation(),this.initTooltip(),this.initRowSpan(),this.addPivotListener()}initDotNotation(){const{gos:e,colDef:{field:t,tooltipField:o}}=this,r=e.get("suppressFieldDotNotation");this.fieldContainsDots=Ee(t)&&t.includes(".")&&!r,this.tooltipFieldContainsDots=Ee(o)&&o.includes(".")&&!r}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:o=>{const r=e.recreateColDef(this.colDef);this.setColDef(r,r,o.source)}})}resetActualWidth(e){const t=this.calculateColInitialWidth(this.colDef);this.setActualWidth(t,e,!0)}calculateColInitialWidth(e){let t;const o=e.width,r=e.initialWidth;return o!=null?t=o:r!=null?t=r: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 o=this.frameworkEventListenerService?.wrap(e,t)??t;this.colEventSvc.addEventListener(e,o)}removeEventListener(e,t){const o=this.frameworkEventListenerService?.unwrap(e,t)??t;this.colEventSvc.removeEventListener(e,o)}createColumnFunctionCallbackParams(e){return Ze(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]??R7[e]}isColumnFunc(e,t){if(typeof t=="boolean")return t;if(typeof t=="function"){const o=this.createColumnFunctionCallbackParams(e);return t(o)}return!1}createColumnEvent(e,t){return Ze(this.gos,{type:e,column:this,columns:[this],source:t})}isMoving(){return this.moving}getSort(){return this.sortDef.direction}getSortDef(){return this.sortDef.direction?this.sortDef:null}getColDefAllowedSortTypes(){const e=[],{sort:t,initialSort:o}=this.colDef,r=t===null?t:Jn(t?.type),n=o===null?o:Jn(o?.type);return r&&e.push(r),n&&e.push(n),e}getSortingOrder(){const e=this.getColDefAllowedSortTypes().includes("absolute")?P7:_7;return(this.colDef.sortingOrder??this.gos.get("sortingOrder")??e).map(t=>qr(t))}getAvailableSortTypes(){const e=this.getSortingOrder().reduce((t,o)=>(o.direction&&t.push(o.type),t),this.getColDefAllowedSortTypes());return new Set(e)}get wasSortExplicitlyRemoved(){return this._wasSortExplicitlyRemoved}setSortDef(e,t=!1){t||(this._wasSortExplicitlyRemoved=!e.direction),this.sortDef=e}isSortable(){return!!this.getColDefValue("sortable")}isSortAscending(){return this.getSort()==="asc"}isSortDescending(){return this.getSort()==="desc"}isSortNone(){return Ut(this.getSort())}isSorting(){return Ee(this.getSort())}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 he(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 o=e===!0;this.visible!==o&&(this.visible=o,this.dispatchColEvent("visibleChanged",t)),this.dispatchStateUpdatedEvent("hide")}isVisible(){return this.visible}isSpanHeaderHeight(){return!this.getColDef().suppressSpanHeaderHeight}getFirstRealParent(){let e=this.getOriginalParent();for(;e?.isPadding();)e=e.getOriginalParent();return e}getColumnGroupPaddingInfo(){let e=this.getParent();if(!e?.isPadding())return{numberOfParents:0,isSpanningTotal:!1};const t=e.getPaddingLevel()+1;let o=!0;for(;e;){if(!e.isPadding()){o=!1;break}e=e.getParent()}return{numberOfParents:t,isSpanningTotal:o}}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 Ze(this.gos,{node:e,data:e.data,colDef:this.colDef,column:this})}getColSpan(e){if(Ut(this.colDef.colSpan))return 1;const t=this.createBaseColDefParams(e),o=this.colDef.colSpan(t);return Math.max(o,1)}getRowSpan(e){if(Ut(this.colDef.rowSpan))return 1;const t=this.createBaseColDefParams(e),o=this.colDef.rowSpan(t);return Math.max(o,1)}setActualWidth(e,t,o=!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),o||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}isAllowFormula(){return this.colDef.allowFormula===!0}dispatchColEvent(e,t,o){const r=this.createColumnEvent(e,t);o&&ko(r,o),this.colEventSvc.dispatchEvent(r)}dispatchStateUpdatedEvent(e){this.colEventSvc.dispatchEvent({type:"columnStateUpdated",key:e})}};function qr(e){return Ja(e)?{direction:e.direction,type:e.type}:{direction:Rh(e),type:Jn(e)}}function Mi(e){return e==="asc"||e==="desc"||e===null}function nv(e){return e==="default"||e==="absolute"}function Ja(e){if(!e||typeof e!="object")return!1;const t=e;return nv(t.type)&&Mi(t.direction)}function Fh(e,t){return e?t?e.type===t.type&&e.direction===t.direction:e?e.direction===null:!0:t?t.direction===null:!0}function Rh(e){return Mi(e)?e:null}function Jn(e){return nv(e)?e:"default"}function go(e){return e instanceof Eh}var Eh=class extends ue{constructor(e,t,o,r){super(),this.colGroupDef=e,this.groupId=t,this.padding=o,this.level=r,this.isColumn=!1,this.expandable=!1,this.instanceId=iF(),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)Ti(t)?e(t):go(t)&&t.forEachLeafColumn(e)}addLeafColumns(e){if(this.children)for(const t of this.children)Ti(t)?e.push(t):go(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);for(const t of this.getLeafColumns())t.__addEventListener("visibleChanged",e);this.expandableListenerRemoveCallback=()=>{for(const t of this.getLeafColumns())t.__removeEventListener("visibleChanged",e);this.expandableListenerRemoveCallback=null}}setExpandable(){if(this.isPadding())return;let e=!1,t=!1,o=!1;const r=this.findChildrenRemovingPadding();for(let i=0,s=r.length;i<s;i++){const a=r[i];if(!a.isVisible())continue;const c=a.getColumnGroupShow();c==="open"?(e=!0,o=!0):c==="closed"?(t=!0,o=!0):(e=!0,t=!0)}const n=e&&t&&o;this.expandable!==n&&(this.expandable=n,this.dispatchLocalEvent({type:"expandableChanged"}))}findChildrenRemovingPadding(){const e=[],t=o=>{for(const r of o)go(r)&&r.isPadding()?t(r.children):e.push(r)};return t(this.children),e}onColumnVisibilityChanged(){this.setExpandable()}},D7={numericColumn:{headerClass:"ag-right-aligned-header",cellClass:"ag-right-aligned-cell"},rightAligned:{headerClass:"ag-right-aligned-header",cellClass:"ag-right-aligned-cell"}};function sF(e,t,o){const r={},n=e.gos;return Object.assign(r,n.get("defaultColGroupDef")),Object.assign(r,t),n.validateColDef(r,o),r}var T7=class{constructor(){this.existingKeys={}}addExistingKeys(e){for(let t=0;t<e.length;t++)this.existingKeys[e[t]]=!0}getUniqueKey(e,t){e=Tm(e);let o=0;for(;;){let r=e??t;if(r?o!==0&&(r+="_"+o):r=o,!this.existingKeys[r]){const n=String(r);return e&&o>0&&he(273,{providedId:e,usedId:n}),this.existingKeys[n]=!0,n}o++}}};function vt(e){if(e?.length)return e[e.length-1]}function el(e,t,o){if(e===t)return!0;if(!e||!t)return e==null&&t==null;const r=e.length;if(r!==t.length)return!1;for(let n=0;n<r;n++)if(e[n]!==t[n]&&!o?.(e[n],t[n]))return!1;return!0}function Vc(e,t){if(e){for(const o of e)if(t(o))return!0}}function zs(e,t){const o=e.indexOf(t);o>=0&&e.splice(o,1)}function aF(e,t,o){for(let r=0;r<t.length;r++)zs(e,t[r]);for(let r=t.length-1;r>=0;r--)e.splice(o,0,t[r])}var _h="ag-Grid-AutoColumn",lF="ag-Grid-SelectionColumn",cF="ag-Grid-RowNumbersColumn";function M7(e){const t=[],o=r=>{for(let n=0;n<r.length;n++){const i=r[n];Ti(i)?t.push(i):go(i)&&o(i.getChildren())}};return o(e),t}function tl(e){return e.reduce((t,o)=>t+o.getActualWidth(),0)}function Ph(e,t,o){const r={};if(!t)return;ei(null,t,i=>{r[i.getInstanceId()]=i}),o&&ei(null,o,i=>{r[i.getInstanceId()]=null});const n=Object.values(r).filter(i=>i!=null);e.context.destroyBeans(n)}function uF(e){return e.getId().startsWith(_h)}function ol(e){return(typeof e=="string"?e:"getColId"in e?e.getColId():e.colId)?.startsWith(lF)??!1}function rl(e){return(typeof e=="string"?e:"getColId"in e?e.getColId():e.colId)?.startsWith(cF)??!1}function Dh(e){let t=[];return e instanceof Array?t=e:typeof e=="string"&&(t=e.split(",")),t}function A7(e,t){return el(e,t,(o,r)=>o.getColId()===r.getColId())}function I7(e){e.map={};for(const t of e.list)e.map[t.getId()]=t}function nl(e){return e==="optionsUpdated"?"gridOptionsChanged":e}function dF(e,t){const o=e===t,r=e.getColDef()===t,n=e.getColId()==t;return o||r||n}var B7=(e,t)=>(o,r)=>{const n={value1:void 0,value2:void 0};let i=!1;return e&&(e[o]!==void 0&&(n.value1=e[o],i=!0),Ee(r)&&e[r]!==void 0&&(n.value2=e[r],i=!0)),!i&&t&&(t[o]!==void 0&&(n.value1=t[o]),Ee(r)&&t[r]!==void 0&&(n.value2=t[r])),n};function O7(e,t){const o={...e,sort:void 0,colId:t},r=hF(e);return r&&(o.sort=r.direction,o.sortType=r.type),o}function hF(e){const{sort:t,initialSort:o}=e,r=Ja(t)||Mi(t),n=Ja(o)||Mi(o);return r?qr(t):n?qr(o):null}var N7=(e,t)=>{go(e)&&e.setupExpandable(),e.originalParent=t};function L7(e,t=null,o,r,n){const i=new T7,{existingCols:s,existingGroups:a,existingColKeys:c}=z7(r);i.addExistingKeys(c);const d=fF(e,t,0,o,s,i,a,n),{colGroupSvc:h}=e,f=h?.findMaxDepth(d,0)??0,g=h?h.balanceColumnTree(d,0,f,i):d;return ei(null,g,N7),{columnTree:g,treeDepth:f}}function z7(e){const t=[],o=[],r=[];return e&&ei(null,e,n=>{if(go(n)){const i=n;o.push(i)}else{const i=n;r.push(i.getId()),t.push(i)}}),{existingCols:t,existingGroups:o,existingColKeys:r}}function fF(e,t,o,r,n,i,s,a){if(!t)return[];const{colGroupSvc:c}=e,d=new Array(t.length);for(let h=0;h<d.length;h++){const f=t[h];c&&q7(f)?d[h]=c.createProvidedColumnGroup(r,f,o,n,i,s,a):d[h]=H7(e,r,f,n,i,a)}return d}function H7(e,t,o,r,n,i){const s=G7(o,r);s&&r?.splice(s.idx,1);let a=s?.column;if(a){const c=iv(e,o,a.getColId());a.setColDef(c,o,i),V7(e,a,c,i)}else{const c=n.getUniqueKey(o.colId,o.field),d=iv(e,o,c);a=new Ls(d,o,c,t),e.context.createBean(a)}return e.dataTypeSvc?.addColumnListeners(a),a}function pF(e,t,o,r,n,i,s,a){const{sortSvc:c,pinnedCols:d,colFlex:h}=e;o!==void 0&&t.setVisible(!o,a),c&&(c.updateColSort(t,r,a),n!==void 0&&c.setColSortIndex(t,n)),i!==void 0&&d?.setColPinned(t,i),s!==void 0&&h?.setColFlex(t,s)}function V7(e,t,o,r){pF(e,t,o.hide,o.sort,o.sortIndex,o.pinned,o.flex,r);const n=t.getFlex();if(!(n!=null&&n>0))if(o.width!=null)t.setActualWidth(o.width,r);else{const i=t.getActualWidth();t.setActualWidth(i,r)}}function G7(e,t){if(t)for(let o=0;o<t.length;o++){const r=t[o].getUserProvidedColDef();if(!r)continue;if(e.colId!=null){if(t[o].getId()===e.colId)return{idx:o,column:t[o]};continue}if(e.field!=null){if(r.field===e.field)return{idx:o,column:t[o]};continue}if(r===e)return{idx:o,column:t[o]}}}function iv(e,t,o,r){const{gos:n,dataTypeSvc:i}=e,s={},a=n.get("defaultColDef");ko(s,a,!1,!0);const c=j7(e,s,t,o);c&&W7(e,c,s);const d=s.cellDataType;ko(s,t,!1,!0),d!==void 0&&(s.cellDataType=d);const h=n.get("autoGroupColumnDef"),f=yn(n);return t.rowGroup&&h&&f&&ko(s,{sort:h.sort,initialSort:h.initialSort},!1,!0),i?.postProcess(s),i?.validateColDef(s),n.validateColDef(s,o,r),s}function j7(e,t,o,r){const n=e.dataTypeSvc?.updateColDefAndGetColumnType(t,o,r),i=o.type??n??t.type;return t.type=i,i?Dh(i):void 0}function W7(e,t,o){if(!t.length)return;const r=Object.assign({},D7),n=e.gos.get("columnTypes")||{};for(const i of Object.keys(n)){const s=n[i];i in r?he(34,{key:i}):(s.type&&he(35),r[i]=s)}for(const i of t){const s=r[i.trim()];s?ko(o,s,!1,!0):he(36,{t:i})}}function q7(e){return e.children!==void 0}function ei(e,t,o){if(t)for(let r=0;r<t.length;r++){const n=t[r];go(n)&&ei(n,n.getChildren(),o),o(n,e)}}function gF(e,t){const o=[],r=[],n=[];return e.forEach(s=>{const a=s.getColDef().lockPosition;a==="right"?n.push(s):a==="left"||a===!0?o.push(s):r.push(s)}),t.get("enableRtl")?[...n,...r,...o]:[...o,...r,...n]}function mF(e,t){let o=!0;return ei(null,t,r=>{if(!go(r))return;const n=r;if(!n.getColGroupDef()?.marryChildren)return;const a=[];for(const g of n.getLeafColumns()){const m=e.indexOf(g);a.push(m)}const c=Math.max.apply(Math,a),d=Math.min.apply(Math,a),h=c-d,f=n.getLeafColumns().length-1;h>f&&(o=!1)}),o}function vF(e,t){if(!e||e.length==0)return;const o=t(e[0]);for(let r=1;r<e.length;r++)if(o!==t(e[r]))return;return o}function bF(e,t,o){if(!t.length)return;const r=t.length===1?t[0]:null,n=vF(t,i=>i.getPinned());e.dispatchEvent({type:"columnPinned",pinned:n??null,columns:t,column:r,source:o})}function U7(e,t,o){if(!t.length)return;const r=t.length===1?t[0]:null,n=vF(t,i=>i.isVisible());e.dispatchEvent({type:"columnVisible",visible:n,columns:t,column:r,source:o})}function $7(e,t,o,r){e.dispatchEvent({type:t,columns:o,column:o&&o.length==1?o[0]:null,source:r})}function Th(e,t,o,r,n=null){t?.length&&e.dispatchEvent({type:"columnResized",columns:t,column:t.length===1?t[0]:null,flexColumns:n,finished:o,source:r})}function sv(e,t,o){const{colModel:r,rowGroupColsSvc:n,pivotColsSvc:i,autoColSvc:s,selectionColSvc:a,colAnimation:c,visibleCols:d,pivotResultCols:h,environment:f,valueColsSvc:g,eventSvc:m,gos:b}=e,w=r.getColDefCols()??[],y=a?.getColumns();if(!w.length&&!y?.length)return!1;if(t?.state&&!t.state.forEach)return he(32),!1;const k=(_,P,D,M,A)=>{if(!_)return;const O=B7(P,t.defaultState),K=O("flex").value1,W=O("sort").value1,L=O("sortType").value1,V=Mi(W)||nv(L),U=Jn(L),$=Rh(W),Y=V?{type:U,direction:$}:void 0;if(pF(e,_,O("hide").value1,Y,O("sortIndex").value1,O("pinned").value1,K,o),K==null){const I=O("width").value1;if(I!=null){const X=_.getColDef().minWidth??f.getDefaultColumnMinWidth();X!=null&&I>=X&&_.setActualWidth(I,o)}}A||!_.isPrimary()||(g?.syncColumnWithState(_,o,O),n?.syncColumnWithState(_,o,O,D),i?.syncColumnWithState(_,o,O,M))},C=(_,P,D)=>{const M=wF(e,o),A=P.slice(),O={},K={},W=[],L=[],V=[];let U=0;const $=n?.columns.slice()??[],Y=i?.columns.slice()??[];for(const j of _){const z=j.colId;if(z.startsWith(_h)){W.push(j),V.push(j);continue}if(ol(z)){L.push(j),V.push(j);continue}const te=D(z);te?(k(te,j,O,K,!1),zs(A,te)):(V.push(j),U+=1)}const I=j=>k(j,null,O,K,!1);A.forEach(I),n?.sortColumns(yF.bind(n,O,$)),i?.sortColumns(yF.bind(i,K,Y)),r.refreshCols(!1,o);const X=(j,z,H=[])=>{for(const te of z){const re=j(te.colId);zs(H,re),k(re,te,null,null,!0)}H.forEach(I)};return X(j=>s?.getColumn(j)??null,W,s?.getColumns()?.slice()),X(j=>a?.getColumn(j)??null,L,a?.getColumns()?.slice()),X7(t,r,b),d.refresh(o),m.dispatchEvent({type:"columnEverythingChanged",source:o}),M(),{unmatchedAndAutoStates:V,unmatchedCount:U}};c?.start();let{unmatchedAndAutoStates:F,unmatchedCount:E}=C(t.state||[],w,_=>r.getColDefCol(_));if(F.length>0||Ee(t.defaultState)){const _=h?.getPivotResultCols()?.list??[];E=C(F,_,P=>h?.getPivotResultCol(P)??null).unmatchedCount}return c?.finish(),E===0}function wF(e,t){const{rowGroupColsSvc:o,pivotColsSvc:r,valueColsSvc:n,colModel:i,sortSvc:s,eventSvc:a}=e,c={rowGroupColumns:o?.columns.slice()??[],pivotColumns:r?.columns.slice()??[],valueColumns:n?.columns.slice()??[]},d=CF(e),h={};for(const f of d)h[f.colId]=f;return()=>{const f=(P,D,M,A)=>{const O=D.map(A),K=M.map(A);if(el(O,K))return;const L=new Set(D);for(const U of M)L.delete(U)||L.add(U);const V=[...L];a.dispatchEvent({type:P,columns:V,column:V.length===1?V[0]:null,source:t})},g=P=>{const D=[];return i.forAllCols(M=>{const A=h[M.getColId()];A&&P(A,M)&&D.push(M)}),D},m=P=>P.getColId();f("columnRowGroupChanged",c.rowGroupColumns,o?.columns??[],m),f("columnPivotChanged",c.pivotColumns,r?.columns??[],m);const w=g((P,D)=>{const M=P.aggFunc!=null,A=M!=D.isValueActive(),O=M&&P.aggFunc!=D.getAggFunc();return A||O});w.length>0&&$7(a,"columnValueChanged",w,t),Th(a,g((P,D)=>P.width!=D.getActualWidth()),!0,t),bF(a,g((P,D)=>P.pinned!=D.getPinned()),t),U7(a,g((P,D)=>P.hide==D.isVisible()),t);const E=g((P,D)=>!Fh(D.getSortDef(),{type:Jn(P.sortType),direction:Rh(P.sort)})||P.sortIndex!=D.getSortIndex());E.length>0&&s?.dispatchSortChangedEvents(t,E);const _=CF(e);Y7(d,_,t,i,a)}}function CF(e){const{colModel:t,rowGroupColsSvc:o,pivotColsSvc:r}=e,n=t.getColDefCols();if(Ut(n)||!t.isAlive())return[];const i=o?.columns,s=r?.columns,a=[],c=h=>{const f=h.isRowGroupActive()&&i?i.indexOf(h):null,g=h.isPivotActive()&&s?s.indexOf(h):null,m=h.isValueActive()?h.getAggFunc():null,b=h.getSortIndex()!=null?h.getSortIndex():null;a.push({colId:h.getColId(),width:h.getActualWidth(),hide:!h.isVisible(),pinned:h.getPinned(),sort:h.getSort(),sortType:h.getSortDef()?.type,sortIndex:b,aggFunc:m,rowGroup:h.isRowGroupActive(),rowGroupIndex:f,pivot:h.isPivotActive(),pivotIndex:g,flex:h.getFlex()??null})};t.forAllCols(h=>c(h));const d=new Map(t.getCols().map((h,f)=>[h.getColId(),f]));return a.sort((h,f)=>{const g=d.has(h.colId)?d.get(h.colId):-1,m=d.has(f.colId)?d.get(f.colId):-1;return g-m}),a}function K7(e){const t=(y,k)=>y??k??null,o=e.getColDef(),r=qr(t(o.sort,o.initialSort)),n=r.direction,i=r.type,s=t(o.sortIndex,o.initialSortIndex),a=t(o.hide,o.initialHide),c=t(o.pinned,o.initialPinned),d=t(o.width,o.initialWidth),h=t(o.flex,o.initialFlex);let f=t(o.rowGroupIndex,o.initialRowGroupIndex),g=t(o.rowGroup,o.initialRowGroup);f==null&&!g&&(f=null,g=null);let m=t(o.pivotIndex,o.initialPivotIndex),b=t(o.pivot,o.initialPivot);m==null&&!b&&(m=null,b=null);const w=t(o.aggFunc,o.initialAggFunc);return{colId:e.getColId(),sort:n,sortType:i,sortIndex:s,hide:a,pinned:c,width:d,flex:h,rowGroup:g,rowGroupIndex:f,pivot:b,pivotIndex:m,aggFunc:w}}function X7(e,t,o){if(!e.applyOrder||!e.state)return;const r=[];for(const n of e.state)n.colId!=null&&r.push(n.colId);Z7(t.cols,r,t,o)}function Z7(e,t,o,r){if(e==null)return;let n=[];const i={};for(const a of t){if(i[a])continue;const c=e.map[a];c&&(n.push(c),i[a]=!0)}let s=0;for(const a of e.list){const c=a.getColId();if(i[c]!=null)continue;c.startsWith(_h)?n.splice(s++,0,a):n.push(a)}if(n=gF(n,r),!mF(n,o.getColTree())){he(39);return}e.list=n}function Y7(e,t,o,r,n){const i={};for(const h of t)i[h.colId]=h;const s={};for(const h of e)i[h.colId]&&(s[h.colId]=!0);const a=e.filter(h=>s[h.colId]),c=t.filter(h=>s[h.colId]),d=[];c.forEach((h,f)=>{const g=a?.[f];if(g&&g.colId!==h.colId){const m=r.getCol(g.colId);m&&d.push(m)}}),d.length&&n.dispatchEvent({type:"columnMoved",columns:d,column:d.length===1?d[0]:null,finished:!0,source:o})}var yF=(e,t,o,r)=>{const n=e[o.getId()],i=e[r.getId()],s=n!=null,a=i!=null;if(s&&a)return n-i;if(s)return-1;if(a)return 1;const c=t.indexOf(o),d=t.indexOf(r),h=c>=0,f=d>=0;return h&&f?c-d:h?-1:1},Q7=class extends ue{constructor(){super(...arguments),this.beanName="colModel",this.pivotMode=!1,this.ready=!1,this.changeEventsDispatching=!1}postConstruct(){this.pivotMode=this.gos.get("pivotMode"),this.addManagedPropertyListeners(["groupDisplayType","treeData","treeDataDisplayType","groupHideOpenParents","rowNumbers","hidePaddedHeaderRows"],e=>this.refreshAll(nl(e.source))),this.addManagedPropertyListeners(["defaultColDef","defaultColGroupDef","columnTypes","suppressFieldDotNotation"],this.recreateColumnDefs.bind(this)),this.addManagedPropertyListener("pivotMode",e=>this.setPivotMode(this.gos.get("pivotMode"),nl(e.source)))}createColsFromColDefs(e){const{beans:t}=this,{valueCache:o,colAutosize:r,rowGroupColsSvc:n,pivotColsSvc:i,valueColsSvc:s,visibleCols:a,eventSvc:c,groupHierarchyColSvc:d}=t,h=this.colDefs?wF(t,e):void 0;o?.expire();const f=this.colDefCols?.list,g=this.colDefCols?.tree,m=L7(t,this.colDefs,!0,g,e);Ph(t,this.colDefCols?.tree,m.columnTree);const b=m.columnTree,w=m.treeDepth,y=M7(b),k={};for(const C of y)k[C.getId()]=C;this.colDefCols={tree:b,treeDepth:w,list:y,map:k},this.createColumnsForService([d],this.colDefCols,e),n?.extractCols(e,f),i?.extractCols(e,f),s?.extractCols(e,f),this.ready=!0,this.changeEventsDispatching=!0,this.refreshCols(!0,e),this.changeEventsDispatching=!1,a.refresh(e),c.dispatchEvent({type:"columnEverythingChanged",source:e}),h&&(this.changeEventsDispatching=!0,h(),this.changeEventsDispatching=!1),c.dispatchEvent({type:"newColumnsLoaded",source:e}),e==="gridInitializing"&&r?.applyAutosizeStrategy()}refreshCols(e,t){if(!this.colDefCols)return;const o=this.cols?.tree;this.saveColOrder();const{autoColSvc:r,selectionColSvc:n,rowNumbersSvc:i,quickFilter:s,pivotResultCols:a,showRowGroupCols:c,rowAutoHeight:d,visibleCols:h,colViewport:f,eventSvc:g,formula:m}=this.beans,b=this.selectCols(a,this.colDefCols);m?.setFormulasActive(b),this.createColumnsForService([r,n,i],b,t);const w=d7(this.gos,this.showingPivotResult);(!e||w)&&this.restoreColOrder(b),this.positionLockedCols(b),c?.refresh(),s?.refreshCols(),this.setColSpanActive(),d?.setAutoHeightActive(b),h.clear(),f.clear(),el(o,this.cols.tree)||g.dispatchEvent({type:"gridColumnsChanged"})}createColumnsForService(e,t,o){for(const r of e)r&&(r.createColumns(t,n=>{this.lastOrder=n(this.lastOrder),this.lastPivotOrder=n(this.lastPivotOrder)},o),r.addColumns(t))}selectCols(e,t){const o=e?.getPivotResultCols()??null;this.showingPivotResult=o!=null;const{map:r,list:n,tree:i,treeDepth:s}=o??t;return this.cols={list:n.slice(),map:{...r},tree:i.slice(),treeDepth:s},o&&(o.list.some(c=>this.cols?.map[c.getColId()]!==void 0)||(this.lastPivotOrder=null)),this.cols}getColsToShow(){if(!this.cols)return[];const{beans:e,showingPivotResult:t,cols:o}=this,{valueColsSvc:r,selectionColSvc:n}=e,i=this.isPivotMode()&&!t,s=n?.isSelectionColumnEnabled(),a=h7(e),c=r?.columns;return o.list.filter(h=>{const f=uF(h);if(i){const g=c?.includes(h);return f||g||s&&ol(h)||a&&rl(h)}else return f||h.isVisible()})}refreshAll(e){this.ready&&(this.refreshCols(!1,e),this.beans.visibleCols.refresh(e))}setColsVisible(e,t=!1,o){sv(this.beans,{state:e.map(r=>({colId:typeof r=="string"?r:r.getColId(),hide:!t}))},o)}restoreColOrder(e){const t=this.showingPivotResult?this.lastPivotOrder:this.lastOrder;if(!t)return;const o=t.filter(f=>e.map[f.getId()]!=null);if(o.length===0)return;if(o.length===e.list.length){e.list=o;return}const r=f=>{const g=f.getOriginalParent();return g?g.getChildren().length>1?!0:r(g):!1};if(!o.some(f=>r(f))){const f=new Set(o);for(const g of e.list)f.has(g)||o.push(g);e.list=o;return}const n=new Map;for(let f=0;f<o.length;f++){const g=o[f];n.set(g,f)}const i=e.list.filter(f=>!n.has(f));if(i.length===0){e.list=o;return}const s=(f,g)=>{const m=g?g.getOriginalParent():f.getOriginalParent();if(!m)return null;let b=null,w=null;for(const y of m.getChildren())if(!(y===g||y===f)){if(y instanceof Ls){const k=n.get(y);if(k==null)continue;(b==null||b<k)&&(b=k,w=y);continue}y.forEachLeafColumn(k=>{const C=n.get(k);C!=null&&(b==null||b<C)&&(b=C,w=k)})}return w??s(f,m)},a=[],c=new Map;for(const f of i){const g=s(f,null);if(g==null){a.push(f);continue}const m=c.get(g);m===void 0?c.set(g,f):Array.isArray(m)?m.push(f):c.set(g,[m,f])}const d=new Array(e.list.length);let h=d.length-1;for(let f=a.length-1;f>=0;f--)d[h--]=a[f];for(let f=o.length-1;f>=0;f--){const g=o[f],m=c.get(g);if(m)if(Array.isArray(m))for(let b=m.length-1;b>=0;b--){const w=m[b];d[h--]=w}else d[h--]=m;d[h--]=g}e.list=d}positionLockedCols(e){e.list=gF(e.list,this.gos)}saveColOrder(){this.showingPivotResult?this.lastPivotOrder=this.cols?.list??null:this.lastOrder=this.cols?.list??null}getColumnDefs(e){return this.colDefCols&&this.beans.colDefFactory?.getColumnDefs(this.colDefCols.list,this.showingPivotResult,this.lastOrder,this.cols?.list??[],e)}setColSpanActive(){this.colSpanActive=!!this.cols?.list.some(e=>e.getColDef().colSpan!=null)}isPivotMode(){return this.pivotMode}setPivotMode(e,t){if(e===this.pivotMode||(this.pivotMode=e,!this.ready))return;this.refreshCols(!1,t);const{visibleCols:o,eventSvc:r}=this.beans;o.refresh(t),r.dispatchEvent({type:"columnPivotModeChanged"})}isPivotActive(){const e=this.beans.pivotColsSvc?.columns;return this.pivotMode&&!!e?.length}recreateColumnDefs(e){if(!this.cols)return;this.beans.autoColSvc?.updateColumns(e);const t=nl(e.source);this.createColsFromColDefs(t)}setColumnDefs(e,t){this.colDefs=e,this.createColsFromColDefs(t)}destroy(){Ph(this.beans,this.colDefCols?.tree),super.destroy()}getColTree(){return this.cols?.tree??[]}getColDefColTree(){return this.colDefCols?.tree??[]}getColDefCols(){return this.colDefCols?.list??null}getCols(){return this.cols?.list??[]}forAllCols(e){const{pivotResultCols:t,autoColSvc:o,selectionColSvc:r,groupHierarchyColSvc:n}=this.beans;Vc(this.colDefCols?.list,e)||Vc(o?.columns?.list,e)||Vc(r?.columns?.list,e)||Vc(n?.columns?.list,e)||Vc(t?.getPivotResultCols()?.list,e)}getColsForKeys(e){return e?e.map(t=>this.getCol(t)).filter(t=>t!=null):[]}getColDefCol(e){return this.colDefCols?.list?this.getColFromCollection(e,this.colDefCols):null}getCol(e){return e==null?null:this.getColFromCollection(e,this.cols)}getColById(e){return this.cols?.map[e]??null}getColFromCollection(e,t){if(t==null)return null;const{map:o,list:r}=t;if(typeof e=="string"&&o[e])return o[e];for(let a=0;a<r.length;a++)if(dF(r[a],e))return r[a];const{autoColSvc:n,selectionColSvc:i,groupHierarchyColSvc:s}=this.beans;return n?.getColumn(e)??i?.getColumn(e)??s?.getColumn(e)??null}},J7=class{constructor(){this.existingIds={}}getInstanceIdForKey(e){const t=this.existingIds[e];let o;return typeof t!="number"?o=0:o=t+1,this.existingIds[e]=o,o}},il=class extends ue{};function Gc(e,t,o){return o&&e.addDestroyFunc(()=>t.destroyBean(o)),o??e}var Te=null;function SF(e){return typeof e?.getGui=="function"}var jc=class{constructor(e){this.cssClassStates={},this.getGui=e}toggleCss(e,t){if(!e)return;if(e.includes(" ")){const r=(e||"").split(" ");if(r.length>1){for(const n of r)this.toggleCss(n,t);return}}this.cssClassStates[e]!==t&&e.length&&(this.getGui()?.classList.toggle(e,t),this.cssClassStates[e]=t)}},e9=0,Wc=class extends Io{constructor(e,t){super(),this.suppressDataRefValidation=!1,this.displayed=!0,this.visible=!0,this.compId=e9++,this.cssManager=new jc(()=>this.eGui),this.componentSelectors=new Map((t??[]).map(o=>[o.selector,o])),e&&this.setTemplate(e)}preConstruct(){this.wireTemplate(this.getGui());const e="component-"+Object.getPrototypeOf(this)?.constructor?.name;for(const t of this.css??[])this.beans.environment.addGlobalCSS(t,e)}wireTemplate(e,t){e&&this.gos&&(this.applyElementsToComponent(e),this.createChildComponentsFromTags(e,t))}getCompId(){return this.compId}getDataRefAttribute(e){return e.getAttribute?e.getAttribute(Dk):null}applyElementsToComponent(e,t,o,r=null){if(t===void 0&&(t=this.getDataRefAttribute(e)),t){const n=this[t];if(n===Te)this[t]=r??e;else{const i=o?.[t];if(!this.suppressDataRefValidation&&!i)throw new Error(`data-ref: ${t} on ${this.constructor.name} with ${n}`)}}}createChildComponentsFromTags(e,t){const o=[];for(const r of e.childNodes??[])o.push(r);for(const r of o){if(!(r instanceof HTMLElement))continue;const n=this.createComponentFromElement(r,i=>{const s=i.getGui();if(s)for(const a of r.attributes??[])s.setAttribute(a.name,a.value)},t);if(n){if(n.addItems&&r.children.length){this.createChildComponentsFromTags(r,t);const i=Array.prototype.slice.call(r.children);n.addItems(i)}this.swapComponentForNode(n,e,r)}else r.childNodes&&this.createChildComponentsFromTags(r,t)}}createComponentFromElement(e,t,o){const r=e.nodeName,n=this.getDataRefAttribute(e),i=r.indexOf("AG-")===0,s=i?this.componentSelectors.get(r):null;let a=null;if(s){const c=o&&n?o[n]:void 0;a=new s.component(c),a.setParentComponent(this),this.createBean(a,null,t)}else if(i)throw new Error(`selector: ${r}`);return this.applyElementsToComponent(e,n,o,a),a}swapComponentForNode(e,t,o){const r=e.getGui();t.replaceChild(r,o),t.insertBefore(document.createComment(o.nodeName),r),this.addDestroyFunc(this.destroyBean.bind(this,e))}activateTabIndex(e,t){const o=t??this.gos.get("tabIndex");e||(e=[]),e.length||e.push(this.getGui());for(const r of e)r.setAttribute("tabindex",o.toString())}setTemplate(e,t,o){let r;typeof e=="string"||e==null?r=Nm(e):r=Di(e),this.setTemplateFromElement(r,t,o)}setTemplateFromElement(e,t,o,r=!1){if(this.eGui=e,this.suppressDataRefValidation=r,t)for(let n=0;n<t.length;n++){const i=t[n];this.componentSelectors.set(i.selector,i)}this.wireTemplate(e,o)}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 o=t;return e==null?null:(o||(o=this.eGui),Pk(e)?{element:e,parent:o}:{element:e.getGui(),parent:o})}prependChild(e,t){const{element:o,parent:r}=this.getContainerAndElement(e,t)||{};!o||!r||r.insertAdjacentElement("afterbegin",o)}appendChild(e,t){const{element:o,parent:r}=this.getContainerAndElement(e,t)||{};!o||!r||r.appendChild(o)}isDisplayed(){return this.displayed}setVisible(e,t={}){if(e!==this.visible){this.visible=e;const{skipAriaHidden:o}=t;M8(this.eGui,e,{skipAriaHidden:o})}}setDisplayed(e,t={}){if(e!==this.displayed){this.displayed=e;const{skipAriaHidden:o}=t;kt(this.eGui,e,{skipAriaHidden:o});const r={type:"displayChanged",visible:this.displayed};this.dispatchLocalEvent(r)}}destroy(){this.parentComponent&&(this.parentComponent=void 0),super.destroy()}addGuiEventListener(e,t,o){this.eGui.addEventListener(e,t,o),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||(this.css=[]),this.css.push(e)}},Ro=class extends Wc{};function xF(e){return typeof e=="object"&&!!e.component}function t9(e,t){return new Ye(o=>{o(window.setInterval(e,t))})}var Ye=class Gu{constructor(t){this.status=0,this.resolution=null,this.waiters=[],t(o=>this.onDone(o),o=>this.onReject(o))}static all(t){return t.length?new Gu(o=>{let r=t.length;const n=new Array(r);t.forEach((i,s)=>{i.then(a=>{n[s]=a,r--,r===0&&o(n)})})}):Gu.resolve()}static resolve(t=null){return new Gu(o=>o(t))}then(t){return new Gu(o=>{this.status===1?o(t(this.resolution)):this.waiters.push(r=>o(t(r)))})}onDone(t){this.status=1,this.resolution=t;for(const o of this.waiters)o(t)}onReject(t){}};function o9(e){return e?e.prototype&&"getGui"in e.prototype:!1}function kF(e,t,o,r){const{name:n}=o;let i,s,a,c,d,h;if(t){const f=t,g=f[n+"Selector"],m=g?g(r):null,b=w=>{typeof w=="string"?i=w:w!=null&&w!==!0&&(e.isFrameworkComponent(w)?a=w:s=w)};m?(b(m.component),c=m.params,d=m.popup,h=m.popupPosition):b(f[n])}return{compName:i,jsComp:s,fwComp:a,paramsFromSelector:c,popupFromSelector:d,popupPositionFromSelector:h}}var r9=class extends ue{constructor(){super(...arguments),this.beanName="userCompFactory"}wireBeans(e){this.agCompUtils=e.agCompUtils,this.registry=e.registry,this.frameworkCompWrapper=e.frameworkCompWrapper,this.gridOptions=e.gridOptions}getCompDetailsFromGridOptions(e,t,o,r=!1){return this.getCompDetails(this.gridOptions,e,t,o,r)}getCompDetails(e,t,o,r,n=!1){const{name:i,cellRenderer:s}=t;let{compName:a,jsComp:c,fwComp:d,paramsFromSelector:h,popupFromSelector:f,popupPositionFromSelector:g}=kF(this.beans.frameworkOverrides,e,t,r),m,b;const w=F=>{const E=this.registry.getUserComponent(i,F);E&&(c=E.componentFromFramework?void 0:E.component,d=E.componentFromFramework?E.component:void 0,m=E.params,b=E.processParams)};if(a!=null&&w(a),c==null&&d==null&&o!=null&&w(o),c&&s&&!o9(c)&&(c=this.agCompUtils?.adaptFunction(t,c)),!c&&!d){const{validation:F}=this.beans;n&&(a!==o||!o)?a?F?.isProvidedUserComp(a)||Ft(50,{compName:a}):o?F||Ft(260,{...this.gos.getModuleErrorParams(),propName:i,compName:o}):Ft(216,{name:i}):o&&!F&&Ft(146,{comp:o});return}const y=this.mergeParams(e,t,r,h,m,b),k=c==null,C=c??d;return{componentFromFramework:k,componentClass:C,params:y,type:t,popupFromSelector:f,popupPositionFromSelector:g,newAgStackInstance:()=>this.newAgStackInstance(C,k,y,t)}}newAgStackInstance(e,t,o,r){const n=!t;let i;n?i=new e:i=this.frameworkCompWrapper.wrap(e,r.mandatoryMethods,r.optionalMethods,r),this.createBean(i);const s=i.init?.(o);return s==null?Ye.resolve(i):s.then(()=>i)}mergeParams(e,t,o,r=null,n,i){const s={...o,...n},c=e?.[t.name+"Params"];if(typeof c=="function"){const d=c(o);ko(s,d)}else typeof c=="object"&&ko(s,c);return ko(s,r),i?i(s):s}},n9={name:"dragAndDropImageComponent",mandatoryMethods:["setIcon","setLabel"]},i9={name:"headerComponent",optionalMethods:["refresh"]},s9={name:"innerHeaderComponent"},a9={name:"innerHeaderGroupComponent"},l9={name:"headerGroupComponent"},c9={name:"cellRenderer",optionalMethods:["refresh","afterGuiAttached"],cellRenderer:!0},u9={name:"loadingCellRenderer",cellRenderer:!0},d9={name:"cellEditor",mandatoryMethods:["getValue"],optionalMethods:["isPopup","isCancelBeforeStart","isCancelAfterEnd","getPopupPosition","focusIn","focusOut","afterGuiAttached","refresh"]},h9={name:"tooltipComponent"},av={name:"filter",mandatoryMethods:["isFilterActive","doesFilterPass","getModel","setModel"],optionalMethods:["afterGuiAttached","afterGuiDetached","onNewRowsLoaded","getModelAsString","onFloatingFilterChanged","onAnyFilterChanged","refresh"]},f9={name:"floatingFilterComponent",mandatoryMethods:["onParentModelChanged"],optionalMethods:["afterGuiAttached","refresh"]},p9={name:"fullWidthCellRenderer",optionalMethods:["refresh","afterGuiAttached"],cellRenderer:!0},g9={name:"loadingCellRenderer",cellRenderer:!0},m9={name:"groupRowRenderer",optionalMethods:["afterGuiAttached"],cellRenderer:!0},v9={name:"detailCellRenderer",optionalMethods:["refresh"],cellRenderer:!0};function b9(e,t){return e.getCompDetailsFromGridOptions(n9,"agDragAndDropImage",t,!0)}function w9(e,t,o){return e.getCompDetails(t,i9,"agColumnHeader",o)}function C9(e,t,o){return e.getCompDetails(t,s9,void 0,o)}function y9(e,t){const o=t.columnGroup.getColGroupDef();return e.getCompDetails(o,l9,"agColumnGroupHeader",t)}function S9(e,t,o){return e.getCompDetails(t,a9,void 0,o)}function x9(e,t){return e.getCompDetailsFromGridOptions(p9,void 0,t,!0)}function k9(e,t){return e.getCompDetailsFromGridOptions(g9,"agLoadingCellRenderer",t,!0)}function F9(e,t){return e.getCompDetailsFromGridOptions(m9,"agGroupRowRenderer",t,!0)}function R9(e,t){return e.getCompDetailsFromGridOptions(v9,"agDetailCellRenderer",t,!0)}function FF(e,t,o){return e.getCompDetails(t,c9,void 0,o)}function RF(e,t,o){return e.getCompDetails(t,u9,"agSkeletonCellRenderer",o,!0)}function EF(e,t,o){return e.getCompDetails(t,d9,"agCellEditor",o,!0)}function E9(e,t,o,r){const n=t.filter;return xF(n)&&(t={filter:n.component,filterParams:t.filterParams}),e.getCompDetails(t,av,r,o,!0)}function _9(e,t){return e.getCompDetails(t.colDef,h9,"agTooltipComponent",t,!0)}function P9(e,t,o,r){return e.getCompDetails(t,f9,r,o)}function _F(e,t){return kF(e,t,av)}function lv(e,t,o){return e.mergeParams(t,av,o)}function cv(e){const t=e;return t?.getFrameworkComponentInstance!=null?t.getFrameworkComponentInstance():e}function D9(e){return typeof e=="object"&&!!e.getComp}var ee={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"},T9=65,M9=67,A9=86,I9=68,B9=90,O9=89;function PF(e){const{keyCode:t}=e;let o;switch(t){case T9:o=ee.A;break;case M9:o=ee.C;break;case A9:o=ee.V;break;case I9:o=ee.D;break;case B9:o=ee.Z;break;case O9:o=ee.Y;break;default:o=e.code}return o}var uv=class extends Wc{isPopup(){return!0}setParentComponent(e){e.addCss("ag-has-popup"),super.setParentComponent(e)}destroy(){const e=this.parentComponent;e?.isAlive()&&e.getGui().classList.remove("ag-has-popup"),super.destroy()}},dv,hv,fv,pv,gv,mv,vv;function qc(){return dv===void 0&&(dv=/^((?!chrome|android).)*safari/i.test(navigator.userAgent)),dv}function DF(){return hv===void 0&&(hv=/(firefox)/i.test(navigator.userAgent)),hv}function TF(){return fv===void 0&&(fv=/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform)),fv}function Hs(){return pv===void 0&&(pv=/iPad|iPhone|iPod/.test(navigator.platform)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1),pv}function bv(e){if(!e)return null;const t=e.tabIndex,o=e.getAttribute("tabIndex");return t===-1&&(o===null||o===""&&!DF())?null:t.toString()}function N9(){if(vv!==void 0)return vv;if(!document.body)return-1;let e=1e6;const t=DF()?6e6:1e9,o=document.createElement("div");for(document.body.appendChild(o);;){const r=e*2;if(o.style.height=r+"px",r>t||o.clientHeight!==r)break;e=r}return o.remove(),vv=e,e}function L9(){return mv==null&&MF(),mv}function MF(){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 o=t.offsetWidth-t.clientWidth;o===0&&t.clientWidth===0&&(o=null),t.parentNode&&t.remove(),o!=null&&(mv=o,gv=o===0)}function AF(){return gv==null&&MF(),gv}var wv=!1,Mh=0;function z9(e){Mh>0||(e.addEventListener("keydown",Ah),e.addEventListener("mousedown",Ah))}function H9(e){Mh>0||(e.removeEventListener("keydown",Ah),e.removeEventListener("mousedown",Ah))}function Ah(e){const t=wv,o=e.type==="keydown";o&&(e.ctrlKey||e.metaKey||e.altKey)||t!==o&&(wv=o)}function V9(e){const t=lo(e);return z9(t),Mh++,()=>{Mh--,H9(t)}}function IF(){return wv}function sl(e,t,o=!1){const r=T8;let n=Fk;t&&(n+=", "+t),o&&(n+=', [tabindex="-1"]');const i=Array.prototype.slice.apply(e.querySelectorAll(r)).filter(c=>Xn(c)),s=Array.prototype.slice.apply(e.querySelectorAll(n));return s.length?((c,d)=>c.filter(h=>d.indexOf(h)===-1))(i,s):i}function Vs(e,t=!1,o=!1,r=!1){const n=sl(e,r?".ag-tab-guard":null,o),i=t?vt(n):n[0];return i?(i.focus({preventScroll:!0}),!0):!1}function al(e,t,o,r){const n=sl(t,o?':not([tabindex="-1"])':null),i=Mt(e);let s;o?s=n.findIndex(c=>c.contains(i)):s=n.indexOf(i);const a=s+(r?-1:1);return a<0||a>=n.length?null:n[a]}function BF(e,t=5){let o=0;for(;e&&bv(e)===null&&++o<=t;)e=e.parentElement;return bv(e)===null?null:e}var G9="ag-focus-managed",OF=class extends Io{constructor(e,t={isStopPropagation:()=>!1,stopPropagation:()=>{}},o={}){super(),this.eFocusable=e,this.stopPropagationCallbacks=t,this.callbacks=o,this.callbacks={shouldStopEventPropagation:()=>!1,onTabKeyDown:r=>{if(r.defaultPrevented)return;const n=al(this.beans,this.eFocusable,!1,r.shiftKey);n&&(n.focus(),r.preventDefault())},...o}}postConstruct(){const{eFocusable:e,callbacks:{onFocusIn:t,onFocusOut:o}}=this;e.classList.add(G9),this.addKeyDownListeners(e),t&&this.addManagedElementListeners(e,{focusin:t}),o&&this.addManagedElementListeners(e,{focusout:o})}addKeyDownListeners(e){this.addManagedElementListeners(e,{keydown:t=>{if(t.defaultPrevented||this.stopPropagationCallbacks.isStopPropagation(t))return;const{callbacks:o}=this;if(o.shouldStopEventPropagation(t)){this.stopPropagationCallbacks.stopPropagation(t);return}t.key===ee.TAB?o.onTabKeyDown(t):o.handleKeyDown&&o.handleKeyDown(t)}})}},Cv={TAB_GUARD:"ag-tab-guard",TAB_GUARD_TOP:"ag-tab-guard-top",TAB_GUARD_BOTTOM:"ag-tab-guard-bottom"},j9=class extends Io{constructor(e,t){super(),this.stopPropagationCallbacks=t,this.skipTabGuardFocus=!1,this.forcingFocusOut=!1,this.allowFocus=!1;const{comp:o,eTopGuard:r,eBottomGuard:n,focusTrapActive:i,forceFocusOutWhenTabGuardsAreEmpty:s,isFocusableContainer:a,focusInnerElement:c,onFocusIn:d,onFocusOut:h,shouldStopEventPropagation:f,onTabKeyDown:g,handleKeyDown:m,isEmpty:b,eFocusableElement:w}=e;this.comp=o,this.eTopGuard=r,this.eBottomGuard=n,this.providedFocusInnerElement=c,this.eFocusableElement=w,this.focusTrapActive=!!i,this.forceFocusOutWhenTabGuardsAreEmpty=!!s,this.isFocusableContainer=!!a,this.providedFocusIn=d,this.providedFocusOut=h,this.providedShouldStopEventPropagation=f,this.providedOnTabKeyDown=g,this.providedHandleKeyDown=m,this.providedIsEmpty=b}postConstruct(){this.createManagedBean(new OF(this.eFocusableElement,this.stopPropagationCallbacks,{shouldStopEventPropagation:()=>this.shouldStopEventPropagation(),onTabKeyDown:e=>this.onTabKeyDown(e),handleKeyDown:e=>this.handleKeyDown(e),onFocusIn:e=>this.onFocusIn(e),onFocusOut:e=>this.onFocusOut(e)})),this.activateTabGuards();for(const e of[this.eTopGuard,this.eBottomGuard])this.addManagedElementListeners(e,{focus:this.onFocus.bind(this)})}handleKeyDown(e){this.providedHandleKeyDown&&this.providedHandleKeyDown(e)}tabGuardsAreActive(){return!!this.eTopGuard&&this.eTopGuard.hasAttribute("tabIndex")}shouldStopEventPropagation(){return this.providedShouldStopEventPropagation?this.providedShouldStopEventPropagation():!1}activateTabGuards(){if(this.forcingFocusOut)return;const e=this.gos.get("tabIndex");this.comp.setTabIndex(e.toString())}deactivateTabGuards(){this.comp.setTabIndex()}onFocus(e){if(this.isFocusableContainer&&!this.eFocusableElement.contains(e.relatedTarget)&&!this.allowFocus){this.findNextElementOutsideAndFocus(e.target===this.eBottomGuard);return}if(this.skipTabGuardFocus){this.skipTabGuardFocus=!1;return}if(this.forceFocusOutWhenTabGuardsAreEmpty&&(this.providedIsEmpty?this.providedIsEmpty():sl(this.eFocusableElement,".ag-tab-guard").length===0)){this.findNextElementOutsideAndFocus(e.target===this.eBottomGuard);return}if(this.isFocusableContainer&&this.eFocusableElement.contains(e.relatedTarget))return;const t=e.target===this.eBottomGuard;!(this.providedFocusInnerElement?this.providedFocusInnerElement(t):this.focusInnerElement(t))&&this.forceFocusOutWhenTabGuardsAreEmpty&&this.findNextElementOutsideAndFocus(e.target===this.eBottomGuard)}findNextElementOutsideAndFocus(e){const t=lo(this.beans),o=sl(t.body,null,!0),r=o.indexOf(e?this.eTopGuard:this.eBottomGuard);if(r===-1)return;let n,i;e?(n=0,i=r):(n=r+1,i=o.length);const s=o.slice(n,i),a=this.gos.get("tabIndex");s.sort((c,d)=>{const h=Number.parseInt(c.getAttribute("tabindex")||"0"),f=Number.parseInt(d.getAttribute("tabindex")||"0");return f===a?1:h===a?-1:h===0?1:f===0?-1:h-f}),s[e?s.length-1:0]?.focus()}onFocusIn(e){this.focusTrapActive||this.forcingFocusOut||(this.providedFocusIn&&this.providedFocusIn(e),this.isFocusableContainer||this.deactivateTabGuards())}onFocusOut(e){this.focusTrapActive||(this.providedFocusOut&&this.providedFocusOut(e),this.eFocusableElement.contains(e.relatedTarget)||this.activateTabGuards())}onTabKeyDown(e){if(this.providedOnTabKeyDown){this.providedOnTabKeyDown(e);return}if(this.focusTrapActive||e.defaultPrevented)return;const t=this.tabGuardsAreActive();t&&this.deactivateTabGuards();const o=this.getNextFocusableElement(e.shiftKey);t&&setTimeout(()=>this.activateTabGuards(),0),o&&(o.focus(),e.preventDefault())}focusInnerElement(e=!1){const t=sl(this.eFocusableElement);return this.tabGuardsAreActive()&&(t.splice(0,1),t.splice(-1,1)),t.length?(t[e?t.length-1:0].focus({preventScroll:!0}),!0):!1}getNextFocusableElement(e){return al(this.beans,this.eFocusableElement,!1,e)}forceFocusOutOfContainer(e=!1){if(this.forcingFocusOut)return;const t=e?this.eTopGuard:this.eBottomGuard;this.activateTabGuards(),this.skipTabGuardFocus=!0,this.forcingFocusOut=!0,t.focus(),window.setTimeout(()=>{this.forcingFocusOut=!1,this.activateTabGuards()})}isTabGuard(e,t){return e===this.eTopGuard&&!t||e===this.eBottomGuard&&(t??!0)}setAllowFocus(e){this.allowFocus=e}},NF="ag-resizer-wrapper",Ai=(e,t)=>({tag:"div",ref:`${e}Resizer`,cls:`ag-resizer ag-resizer-${t}`}),W9={tag:"div",cls:NF,children:[Ai("eTopLeft","topLeft"),Ai("eTop","top"),Ai("eTopRight","topRight"),Ai("eRight","right"),Ai("eBottomRight","bottomRight"),Ai("eBottom","bottom"),Ai("eBottomLeft","bottomLeft"),Ai("eLeft","left")]},q9=class extends Io{constructor(e,t){super(),this.element=e,this.dragStartPosition={x:0,y:0},this.position={x:0,y:0},this.lastSize={width:-1,height:-1},this.positioned=!1,this.resizersAdded=!1,this.resizeListeners=[],this.boundaryEl=null,this.isResizing=!1,this.isMoving=!1,this.resizable={},this.movable=!1,this.currentResizer=null,this.config={popup:!1,...t}}wireBeans(e){this.popupSvc=e.popupSvc,this.dragSvc=e.dragSvc}center(e){const{clientHeight:t,clientWidth:o}=this.offsetParent,r=o/2-this.getWidth()/2,n=t/2-this.getHeight()/2;this.offsetElement(r,n,e)}initialisePosition(e){if(this.positioned)return;const{centered:t,forcePopupParentAsOffsetParent:o,minWidth:r,width:n,minHeight:i,height:s,x:a,y:c}=this.config;this.offsetParent||this.setOffsetParent();let d=0,h=0;const f=Xn(this.element);if(f){const g=this.findBoundaryElement(),m=window.getComputedStyle(g);if(m.minWidth!=null){const b=g.offsetWidth-this.element.offsetWidth;h=Number.parseInt(m.minWidth,10)-b}if(m.minHeight!=null){const b=g.offsetHeight-this.element.offsetHeight;d=Number.parseInt(m.minHeight,10)-b}}if(this.minHeight=i||d,this.minWidth=r||h,n&&this.setWidth(n),s&&this.setHeight(s),(!n||!s)&&this.refreshSize(),t)this.center(e);else if(a||c)this.offsetElement(a,c,e);else if(f&&o){let g=this.boundaryEl,m=!0;if(g||(g=this.findBoundaryElement(),m=!1),g){const b=Number.parseFloat(g.style.top),w=Number.parseFloat(g.style.left);m?this.offsetElement(Number.isNaN(w)?0:w,Number.isNaN(b)?0:b,e):this.setPosition(w,b)}}this.positioned=!!this.offsetParent}isPositioned(){return this.positioned}getPosition(){return this.position}setMovable(e,t){if(!this.config.popup||e===this.movable)return;this.movable=e;const o=this.moveElementDragListener||{eElement:t,onDragStart:this.onMoveStart.bind(this),onDragging:this.onMove.bind(this),onDragStop:this.onMoveEnd.bind(this)};e?(this.dragSvc?.addDragSource(o),this.moveElementDragListener=o):(this.dragSvc?.removeDragSource(o),this.moveElementDragListener=void 0)}setResizable(e){if(this.clearResizeListeners(),e?this.addResizers():this.removeResizers(),typeof e=="boolean"){if(e===!1)return;e={topLeft:e,top:e,topRight:e,right:e,bottomRight:e,bottom:e,bottomLeft:e,left:e}}for(const t of Object.keys(e)){const o=!!e[t],r=this.getResizerElement(t),n={dragStartPixels:0,eElement:r,onDragStart:i=>this.onResizeStart(i,t),onDragging:this.onResize.bind(this),onDragStop:i=>this.onResizeEnd(i,t)};(o||!this.isAlive()&&!o)&&(o?(this.dragSvc?.addDragSource(n),this.resizeListeners.push(n),r.style.pointerEvents="all"):r.style.pointerEvents="none",this.resizable[t]=o)}}removeSizeFromEl(){this.element.style.removeProperty("height"),this.element.style.removeProperty("width"),this.element.style.removeProperty("flex")}restoreLastSize(){this.element.style.flex="0 0 auto";const{height:e,width:t}=this.lastSize;t!==-1&&(this.element.style.width=`${t}px`),e!==-1&&(this.element.style.height=`${e}px`)}getHeight(){return this.element.offsetHeight}setHeight(e){const{popup:t}=this.config,o=this.element;let r=!1;if(typeof e=="string"&&e.includes("%"))Ic(o,e),e=Rk(o),r=!0;else if(e=Math.max(this.minHeight,e),this.positioned){const n=this.getAvailableHeight();n&&e>n&&(e=n)}this.getHeight()!==e&&(r?(o.style.maxHeight="unset",o.style.minHeight="unset"):t?Ic(o,e):(o.style.height=`${e}px`,o.style.flex="0 0 auto",this.lastSize.height=typeof e=="number"?e:Number.parseFloat(e)))}getAvailableHeight(){const{popup:e,forcePopupParentAsOffsetParent:t}=this.config;this.positioned||this.initialisePosition();const{clientHeight:o}=this.offsetParent;if(!o)return null;const r=this.element.getBoundingClientRect(),n=this.offsetParent.getBoundingClientRect(),i=e?this.position.y:r.top,s=e?0:n.top;let a=0;if(t){const d=this.element.parentElement;if(d){const{bottom:h}=d.getBoundingClientRect();a=h-r.bottom}}return o+s-i-a}getWidth(){return this.element.offsetWidth}setWidth(e){const t=this.element,{popup:o}=this.config;let r=!1;if(typeof e=="string"&&e.includes("%"))wn(t,e),e=ah(t),r=!0;else if(this.positioned){e=Math.max(this.minWidth,e);const{clientWidth:n}=this.offsetParent,i=o?this.position.x:this.element.getBoundingClientRect().left;n&&e+i>n&&(e=n-i)}this.getWidth()!==e&&(r?(t.style.maxWidth="unset",t.style.minWidth="unset"):this.config.popup?wn(t,e):(t.style.width=`${e}px`,t.style.flex=" unset",this.lastSize.width=typeof e=="number"?e:Number.parseFloat(e)))}offsetElement(e=0,t=0,o){const{forcePopupParentAsOffsetParent:r}=this.config,n=r?this.boundaryEl:this.element;n&&(this.popupSvc?.positionPopup({ePopup:n,keepWithinBounds:!0,skipObserver:this.movable||this.isResizable(),updatePosition:()=>({x:e,y:t}),postProcessCallback:o}),this.setPosition(Number.parseFloat(n.style.left),Number.parseFloat(n.style.top)))}constrainSizeToAvailableHeight(e){if(!this.config.forcePopupParentAsOffsetParent)return;const t=()=>{const o=this.getAvailableHeight();this.element.style.setProperty("max-height",`${o}px`)};e&&this.popupSvc?(this.resizeObserverSubscriber?.(),this.resizeObserverSubscriber=Zn(this.beans,this.popupSvc?.getPopupParent(),t)):(this.element.style.removeProperty("max-height"),this.resizeObserverSubscriber&&(this.resizeObserverSubscriber(),this.resizeObserverSubscriber=void 0))}setPosition(e,t){this.position.x=e,this.position.y=t}updateDragStartPosition(e,t){this.dragStartPosition={x:e,y:t}}calculateMouseMovement(e){const{e:t,isLeft:o,isTop:r,anywhereWithin:n,topBuffer:i}=e,s=t.clientX-this.dragStartPosition.x,a=t.clientY-this.dragStartPosition.y,c=this.shouldSkipX(t,!!o,!!n,s)?0:s,d=this.shouldSkipY(t,!!r,i,a)?0:a;return{movementX:c,movementY:d}}shouldSkipX(e,t,o,r){const n=this.element.getBoundingClientRect(),i=this.offsetParent.getBoundingClientRect(),s=this.boundaryEl.getBoundingClientRect(),a=this.config.popup?this.position.x:n.left;let c=a<=0&&i.left>=e.clientX||i.right<=e.clientX&&i.right<=s.right;return c?!0:(t?c=r<0&&e.clientX>a+i.left||r>0&&e.clientX<a+i.left:o?c=r<0&&e.clientX>s.right||r>0&&e.clientX<a+i.left:c=r<0&&e.clientX>s.right||r>0&&e.clientX<s.right,c)}shouldSkipY(e,t,o=0,r){const n=this.element.getBoundingClientRect(),i=this.offsetParent.getBoundingClientRect(),s=this.boundaryEl.getBoundingClientRect(),a=this.config.popup?this.position.y:n.top;let c=a<=0&&i.top>=e.clientY||i.bottom<=e.clientY&&i.bottom<=s.bottom;return c?!0:(t?c=r<0&&e.clientY>a+i.top+o||r>0&&e.clientY<a+i.top:c=r<0&&e.clientY>s.bottom||r>0&&e.clientY<s.bottom,c)}createResizeMap(){const e=t=>({element:this.element.querySelector(`[data-ref=${t}Resizer]`)});this.resizerMap={topLeft:e("eTopLeft"),top:e("eTop"),topRight:e("eTopRight"),right:e("eRight"),bottomRight:e("eBottomRight"),bottom:e("eBottom"),bottomLeft:e("eBottomLeft"),left:e("eLeft")}}addResizers(){if(this.resizersAdded)return;const e=this.element;e&&(e.appendChild(Di(W9)),this.createResizeMap(),this.resizersAdded=!0)}removeResizers(){this.resizerMap=void 0,this.element.querySelector(`.${NF}`)?.remove(),this.resizersAdded=!1}getResizerElement(e){return this.resizerMap[e].element}onResizeStart(e,t){this.boundaryEl=this.findBoundaryElement(),this.positioned||this.initialisePosition(),this.currentResizer={isTop:!!t.match(/top/i),isRight:!!t.match(/right/i),isBottom:!!t.match(/bottom/i),isLeft:!!t.match(/left/i)},this.element.classList.add("ag-resizing"),this.resizerMap[t].element.classList.add("ag-active");const{popup:o,forcePopupParentAsOffsetParent:r}=this.config;!o&&!r&&this.applySizeToSiblings(this.currentResizer.isBottom||this.currentResizer.isTop),this.isResizing=!0,this.updateDragStartPosition(e.clientX,e.clientY)}getSiblings(){const t=this.element.parentElement;return t?Array.prototype.slice.call(t.children).filter(o=>!o.classList.contains("ag-hidden")):null}getMinSizeOfSiblings(){const e=this.getSiblings()||[];let t=0,o=0;for(const r of e){const n=!!r.style.flex&&r.style.flex!=="0 0 auto";if(r===this.element)continue;let i=this.minHeight||0,s=this.minWidth||0;if(n){const a=window.getComputedStyle(r);a.minHeight&&(i=Number.parseInt(a.minHeight,10)),a.minWidth&&(s=Number.parseInt(a.minWidth,10))}else i=r.offsetHeight,s=r.offsetWidth;t+=i,o+=s}return{height:t,width:o}}applySizeToSiblings(e){let t=null;const o=this.getSiblings();if(o){for(let r=0;r<o.length;r++){const n=o[r];n!==t&&(e?n.style.height=`${n.offsetHeight}px`:n.style.width=`${n.offsetWidth}px`,n.style.flex="0 0 auto",n===this.element&&(t=o[r+1]))}t&&(t.style.removeProperty("height"),t.style.removeProperty("min-height"),t.style.removeProperty("max-height"),t.style.flex="1 1 auto")}}isResizable(){return Object.values(this.resizable).some(e=>e)}onResize(e){if(!this.isResizing||!this.currentResizer)return;const{popup:t,forcePopupParentAsOffsetParent:o}=this.config,{isTop:r,isRight:n,isBottom:i,isLeft:s}=this.currentResizer,a=n||s,c=i||r,{movementX:d,movementY:h}=this.calculateMouseMovement({e,isLeft:s,isTop:r}),f=this.position.x,g=this.position.y;let m=0,b=0;if(a&&d){const w=s?-1:1,y=this.getWidth(),k=y+d*w;let C=!1;s&&(m=y-k,(f+m<=0||k<=this.minWidth)&&(C=!0,m=0)),C||this.setWidth(k)}if(c&&h){const w=r?-1:1,y=this.getHeight(),k=y+h*w;let C=!1;r?(b=y-k,(g+b<=0||k<=this.minHeight)&&(C=!0,b=0)):!this.config.popup&&!this.config.forcePopupParentAsOffsetParent&&y<k&&this.getMinSizeOfSiblings().height+k>this.element.parentElement.offsetHeight&&(C=!0),C||this.setHeight(k)}this.updateDragStartPosition(e.clientX,e.clientY),((t||o)&&m||b)&&this.offsetElement(f+m,g+b)}onResizeEnd(e,t){this.isResizing=!1,this.currentResizer=null,this.boundaryEl=null,this.element.classList.remove("ag-resizing"),this.resizerMap[t].element.classList.remove("ag-active"),this.dispatchLocalEvent({type:"resize"})}refreshSize(){const e=this.element;this.config.popup&&(this.config.width||this.setWidth(e.offsetWidth),this.config.height||this.setHeight(e.offsetHeight))}onMoveStart(e){this.boundaryEl=this.findBoundaryElement(),this.positioned||this.initialisePosition(),this.isMoving=!0,this.element.classList.add("ag-moving"),this.updateDragStartPosition(e.clientX,e.clientY)}onMove(e){if(!this.isMoving)return;const{x:t,y:o}=this.position;let r;this.config.calculateTopBuffer&&(r=this.config.calculateTopBuffer());const{movementX:n,movementY:i}=this.calculateMouseMovement({e,isTop:!0,anywhereWithin:!0,topBuffer:r});this.offsetElement(t+n,o+i),this.updateDragStartPosition(e.clientX,e.clientY)}onMoveEnd(){this.isMoving=!1,this.boundaryEl=null,this.element.classList.remove("ag-moving")}setOffsetParent(){this.config.forcePopupParentAsOffsetParent&&this.popupSvc?this.offsetParent=this.popupSvc.getPopupParent():this.offsetParent=this.element.offsetParent}findBoundaryElement(){let e=this.element;for(;e;){if(window.getComputedStyle(e).position!=="static")return e;e=e.parentElement}return this.element}clearResizeListeners(){for(;this.resizeListeners.length;){const e=this.resizeListeners.pop();this.dragSvc?.removeDragSource(e)}}destroy(){super.destroy(),this.moveElementDragListener&&this.dragSvc?.removeDragSource(this.moveElementDragListener),this.constrainSizeToAvailableHeight(!1),this.clearResizeListeners(),this.removeResizers()}},yv="T",U9=new RegExp(`[${yv} ]`),$9=new RegExp(`^\\d{4}-\\d{2}-\\d{2}(${yv}\\d{2}:\\d{2}:\\d{2}\\D?)?`);function Gs(e,t){return e.toString().padStart(t,"0")}function LF(e,t=!0,o=yv){if(!e)return null;let r=[e.getFullYear(),e.getMonth()+1,e.getDate()].map(n=>Gs(n,2)).join("-");return t&&(r+=o+[e.getHours(),e.getMinutes(),e.getSeconds()].map(n=>Gs(n,2)).join(":")),r}function Ih(e,t=!0){return e?t?[String(e.getFullYear()),String(e.getMonth()+1),Gs(e.getDate(),2),Gs(e.getHours(),2),`:${Gs(e.getMinutes(),2)}`,`:${Gs(e.getSeconds(),2)}`]:[e.getFullYear(),e.getMonth()+1,Gs(e.getDate(),2)].map(String):null}function Bh(e,t=!1){return!!Sv(e,t)}function K9(e){return Bh(e,!0)}function Sv(e,t=!1,o){if(!e||!$9.test(e))return null;const[r,n]=e.split(U9);if(!r)return null;const i=r.split("-").map(m=>Number.parseInt(m,10));if(i.filter(m=>!isNaN(m)).length!==3)return null;const[s,a,c]=i,d=new Date(s,a-1,c);if(d.getFullYear()!==s||d.getMonth()!==a-1||d.getDate()!==c||!n&&t)return null;if(!n||n==="00:00:00")return d;const[h,f,g]=n.split(":").map(m=>Number.parseInt(m,10));if(h>=0&&h<24)d.setHours(h);else if(t)return null;if(f>=0&&f<60)d.setMinutes(f);else if(t)return null;if(g>=0&&g<60)d.setSeconds(g);else if(t)return null;return d}function xv(e){const{inputValue:t,allSuggestions:o,hideIrrelevant:r,filterByPercentageOfBestMatch:n}=e;let i=(o??[]).map((c,d)=>({value:c,relevance:X9(t,c),idx:d}));if(i.sort((c,d)=>c.relevance-d.relevance),r&&(i=i.filter(c=>c.relevance<Math.max(c.value.length,t.length))),i.length>0&&n&&n>0){const d=i[0].relevance*n;i=i.filter(h=>d-h.relevance<0)}const s=[],a=[];for(const c of i)s.push(c.value),a.push(c.idx);return{values:s,indices:a}}function X9(e,t){const o=e.length,r=t.length;if(r===0)return o||0;let n=e.toLocaleLowerCase(),i=t.toLocaleLowerCase(),s;e.length<t.length&&(s=i,i=n,n=s,s=t,t=e,e=s);let a=new Uint16Array(r+1),c=new Uint16Array(r+1);for(let f=0;f<=r;f++)a[f]=f;let d=0;const h=o/2-10;for(let f=1;f<=o;f++){const g=e[f-1],m=n[f-1];c[0]=f;for(let b=1;b<=r;b++){const w=t[b-1],y=i[b-1];if(m!==y){const k=c[b-1],C=a[b],F=a[b-1];let E=k<C?k:C;F<E&&(E=F),c[b]=E+1|0;continue}if(d++,g===w&&d++,f>1&&b>1){const k=e[f-2],C=n[f-2],F=t[b-2],E=i[b-2];C===E&&(d++,k===F&&d++)}f<h&&d++,c[b]=a[b-1]}s=a,a=c,c=s}return a[r]/(d+1)}function zF(e){return e.altKey||e.ctrlKey||e.metaKey?!1:e.key?.length===1}var Z9=".ag-label{white-space:nowrap}:where(.ag-ltr) .ag-label{margin-right:var(--ag-spacing)}:where(.ag-rtl) .ag-label{margin-left:var(--ag-spacing)}:where(.ag-label-align-right) .ag-label{order:1}:where(.ag-ltr) :where(.ag-label-align-right) .ag-label{margin-left:var(--ag-spacing)}:where(.ag-rtl) :where(.ag-label-align-right) .ag-label{margin-right:var(--ag-spacing)}.ag-label-align-right>*{flex:none}.ag-label-align-top{align-items:flex-start;flex-direction:column;>*{align-self:stretch}}.ag-label-ellipsis{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:where(.ag-label-align-top) .ag-label{margin-bottom:calc(var(--ag-spacing)*.5)}",Y9=class extends Wc{constructor(e,t,o){super(t,o),this.labelSeparator="",this.labelAlignment="left",this.disabled=!1,this.label="",this.config=e||{},this.registerCSS(Z9)}postConstruct(){this.addCss("ag-labeled"),this.eLabel.classList.add("ag-label");const{labelSeparator:e,label:t,labelWidth:o,labelAlignment:r,disabled:n,labelEllipsis:i}=this.config;n!=null&&this.setDisabled(n),e!=null&&this.setLabelSeparator(e),t!=null&&this.setLabel(t),o!=null&&this.setLabelWidth(o),i!=null&&this.setLabelEllipsis(i),this.setLabelAlignment(r||this.labelAlignment),this.refreshLabel()}refreshLabel(){const{label:e,eLabel:t}=this;Kn(t),typeof e=="string"?t.innerText=e+this.labelSeparator:e&&t.appendChild(e),e===""?(kt(t,!1),ja(t,"presentation")):(kt(t,!0),ja(t,null))}setLabelSeparator(e){return this.labelSeparator===e?this:(this.labelSeparator=e,this.label!=null&&this.refreshLabel(),this)}getLabelId(){const e=this.eLabel;return e.id=e.id||`ag-${this.getCompId()}-label`,e.id}getLabel(){return this.label}setLabel(e){return this.label===e?this:(this.label=e,this.refreshLabel(),this)}setLabelAlignment(e){const o=this.getGui().classList;return o.toggle("ag-label-align-left",e==="left"),o.toggle("ag-label-align-right",e==="right"),o.toggle("ag-label-align-top",e==="top"),this}setLabelEllipsis(e){return this.eLabel.classList.toggle("ag-label-ellipsis",e),this}setLabelWidth(e){return this.label==null?this:(dh(this.eLabel,e),this)}setDisabled(e){e=!!e;const t=this.getGui();return Ac(t,e),t.classList.toggle("ag-disabled",e),this.disabled=e,this}isDisabled(){return!!this.disabled}},HF=class extends Y9{constructor(e,t,o,r){super(e,t,o),this.className=r}postConstruct(){super.postConstruct();const{width:e,value:t,onValueChange:o,ariaLabel:r}=this.config;e!=null&&this.setWidth(e),t!=null&&this.setValue(t),o!=null&&this.onValueChange(o),r!=null&&this.setAriaLabel(r),this.className&&this.addCss(this.className),this.refreshAriaLabelledBy()}setLabel(e){return super.setLabel(e),this.refreshAriaLabelledBy(),this}refreshAriaLabelledBy(){const e=this.getAriaElement(),t=this.getLabelId(),o=this.getLabel();o==null||o==""||b8(e)!==null?Tc(e,""):Tc(e,t??"")}setAriaLabel(e){return Wa(this.getAriaElement(),e),this.refreshAriaLabelledBy(),this}onValueChange(e){return this.addManagedListeners(this,{fieldValueChanged:()=>e(this.getValue())}),this}getWidth(){return this.getGui().clientWidth}setWidth(e){return wn(this.getGui(),e),this}getPreviousValue(){return this.previousValue}getValue(){return this.value}setValue(e,t){return this.value===e?this:(this.previousValue=this.value,this.value=e,t||this.dispatchLocalEvent({type:"fieldValueChanged"}),this)}};function Q9(e){return{tag:"div",role:"presentation",children:[{tag:"div",ref:"eLabel",cls:"ag-input-field-label"},{tag:"div",ref:"eWrapper",cls:"ag-wrapper ag-input-wrapper",role:"presentation",children:[{tag:e,ref:"eInput",cls:"ag-input-field-input"}]}]}}var ll=class extends HF{constructor(e,t,o="text",r="input"){super(e,e?.template??Q9(r),[],t),this.inputType=o,this.displayFieldTag=r,this.eLabel=Te,this.eWrapper=Te,this.eInput=Te}postConstruct(){super.postConstruct(),this.setInputType(this.inputType);const{eLabel:e,eWrapper:t,eInput:o,className:r}=this;e.classList.add(`${r}-label`),t.classList.add(`${r}-input-wrapper`),o.classList.add(`${r}-input`),this.addCss("ag-input-field"),o.id=o.id||`ag-${this.getCompId()}-input`;const{inputName:n,inputWidth:i,inputPlaceholder:s,autoComplete:a,tabIndex:c}=this.config;n!=null&&this.setInputName(n),i!=null&&this.setInputWidth(i),s!=null&&this.setInputPlaceholder(s),a!=null&&this.setAutoComplete(a),this.addInputListeners(),this.activateTabIndex([o],c)}addInputListeners(){this.addManagedElementListeners(this.eInput,{input:e=>this.setValue(e.target.value)})}setInputType(e){this.displayFieldTag==="input"&&(this.inputType=e,Wr(this.eInput,"type",e))}getInputElement(){return this.eInput}getWrapperElement(){return this.eWrapper}setInputWidth(e){return dh(this.eWrapper,e),this}setInputName(e){return this.getInputElement().setAttribute("name",e),this}getFocusableElement(){return this.eInput}setMaxLength(e){const t=this.eInput;return t.maxLength=e,this}setInputPlaceholder(e){return Wr(this.eInput,"placeholder",e),this}setInputAriaLabel(e){return Wa(this.eInput,e),this.refreshAriaLabelledBy(),this}setDisabled(e){return Ac(this.eInput,e),super.setDisabled(e)}setAutoComplete(e){if(e===!0)Wr(this.eInput,"autocomplete",null);else{const t=typeof e=="string"?e:"off";Wr(this.eInput,"autocomplete",t)}return this}},kv=class extends ll{constructor(e,t="ag-checkbox",o="checkbox"){super(e,t,o),this.labelAlignment="right",this.selected=!1,this.readOnly=!1,this.passive=!1}postConstruct(){super.postConstruct();const{readOnly:e,passive:t,name:o}=this.config;typeof e=="boolean"&&this.setReadOnly(e),typeof t=="boolean"&&this.setPassive(t),o!=null&&this.setName(o)}addInputListeners(){this.addManagedElementListeners(this.eInput,{click:this.onCheckboxClick.bind(this)}),this.addManagedElementListeners(this.eLabel,{click:this.toggle.bind(this)})}getNextValue(){return this.selected===void 0?!0:!this.selected}setPassive(e){this.passive=e}isReadOnly(){return this.readOnly}setReadOnly(e){this.eWrapper.classList.toggle("ag-disabled",e),this.eInput.disabled=e,this.readOnly=e}setDisabled(e){return this.eWrapper.classList.toggle("ag-disabled",e),super.setDisabled(e)}toggle(){if(this.eInput.disabled)return;const e=this.isSelected(),t=this.getNextValue();this.passive?this.dispatchChange(t,e):this.setValue(t)}getValue(){return this.isSelected()}setValue(e,t){return this.refreshSelectedClass(e),this.setSelected(e,t),this}setName(e){const t=this.getInputElement();return t.name=e,this}isSelected(){return this.selected}setSelected(e,t){if(this.isSelected()===e)return;this.previousValue=this.isSelected(),e=this.selected=typeof e=="boolean"?e:void 0;const o=this.eInput;o.checked=e,o.indeterminate=e===void 0,t||this.dispatchChange(this.selected,this.previousValue)}dispatchChange(e,t,o){this.dispatchLocalEvent({type:"fieldValueChanged",selected:e,previousValue:t,event:o});const r=this.getInputElement();this.eventSvc.dispatchEvent({type:"checkboxChanged",id:r.id,name:r.name,selected:e,previousValue:t})}onCheckboxClick(e){if(this.passive||this.eInput.disabled)return;const t=this.isSelected(),o=this.selected=e.target.checked;this.refreshSelectedClass(o),this.dispatchChange(o,t,e)}refreshSelectedClass(e){const t=this.eWrapper.classList;t.toggle("ag-checked",e===!0),t.toggle("ag-indeterminate",e==null)}},Fv={selector:"AG-CHECKBOX",component:kv},J9=class extends kv{constructor(e){super(e,"ag-radio-button","radio")}isSelected(){return this.eInput.checked}toggle(){this.eInput.disabled||this.isSelected()||this.setValue(!0)}addInputListeners(){super.addInputListeners(),this.addManagedEventListeners({checkboxChanged:this.onChange.bind(this)})}onChange(e){const t=this.eInput;e.selected&&e.name&&t.name&&t.name===e.name&&e.id&&t.id!==e.id&&this.setValue(!1,!0)}},Rv=class extends ll{constructor(e,t="ag-text-field",o="text"){super(e,t,o)}postConstruct(){super.postConstruct(),this.config.allowedCharPattern&&this.preventDisallowedCharacters()}setValue(e,t){const o=this.eInput;return o.value!==e&&(o.value=Ee(e)?e:""),super.setValue(e,t)}setStartValue(e){this.setValue(e,!0)}setCustomValidity(e){const t=this.eInput,o=e.length>0;t.setCustomValidity(e),o&&t.reportValidity(),Ck(t,o)}preventDisallowedCharacters(){const e=new RegExp(`[${this.config.allowedCharPattern}]`),t=o=>{zF(o)&&o.key&&!e.test(o.key)&&o.preventDefault()};this.addManagedListeners(this.eInput,{keydown:t,paste:o=>{o.clipboardData?.getData("text")?.split("").some(n=>!e.test(n))&&o.preventDefault()}})}},eG=class extends Rv{constructor(e){super(e,"ag-number-field","number")}postConstruct(){super.postConstruct();const e=this.eInput;this.addManagedListeners(e,{blur:()=>{const i=Number.parseFloat(e.value),s=isNaN(i)?"":this.normalizeValue(i.toString());this.value!==s&&this.setValue(s)},wheel:this.onWheel.bind(this)}),e.step="any";const{precision:t,min:o,max:r,step:n}=this.config;typeof t=="number"&&this.setPrecision(t),typeof o=="number"&&this.setMin(o),typeof r=="number"&&this.setMax(r),typeof n=="number"&&this.setStep(n)}onWheel(e){Mt(this.beans)===this.eInput&&e.preventDefault()}normalizeValue(e){return e===""?"":(this.precision!=null&&(e=this.adjustPrecision(e)),e)}adjustPrecision(e,t){const o=this.precision;if(o==null)return e;if(t){const n=Number.parseFloat(e).toFixed(o);return Number.parseFloat(n).toString()}const r=String(e).split(".");if(r.length>1){if(r[1].length<=o)return e;if(o>0)return`${r[0]}.${r[1].slice(0,o)}`}return r[0]}setMin(e){return this.min===e?this:(this.min=e,Wr(this.eInput,"min",e),this)}setMax(e){return this.max===e?this:(this.max=e,Wr(this.eInput,"max",e),this)}setPrecision(e){return this.precision=e,this}setStep(e){return this.step===e?this:(this.step=e,Wr(this.eInput,"step",e),this)}setValue(e,t){return this.setValueOrInputValue(o=>super.setValue(o,t),()=>this,e)}setStartValue(e){return this.setValueOrInputValue(t=>super.setValue(t,!0),t=>{this.eInput.value=t},e)}setValueOrInputValue(e,t,o){if(Ee(o)){let r=this.isScientificNotation(o);if(r&&this.eInput.validity.valid)return e(o);if(!r){o=this.adjustPrecision(o);const n=this.normalizeValue(o);r=o!=n}if(r)return t(o)}return e(o)}getValue(e=!1){const t=this.eInput;if(!t.validity.valid&&!e)return;const o=t.value;return this.isScientificNotation(o)?this.adjustPrecision(o,!0):super.getValue()}isScientificNotation(e){return typeof e=="string"&&e.includes("e")}},tG={selector:"AG-INPUT-NUMBER-FIELD",component:eG},oG=".ag-list-item{align-items:center;display:flex;height:var(--ag-list-item-height);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;&.ag-active-item{background-color:var(--ag-row-hover-color)}}",rG="ag-active-item",nG=(e,t)=>({tag:"div",cls:`ag-list-item ag-${e}-list-item`,attrs:{role:"option"},children:[{tag:"span",ref:"eText",children:t}]}),iG=class extends Wc{constructor(e,t,o){super(nG(e,t)),this.label=t,this.value=o,this.eText=Te}postConstruct(){this.createTooltip(),this.addEventListeners()}setHighlighted(e){const t=this.getGui();t.classList.toggle(rG,e),xk(t,e),this.dispatchLocalEvent({type:"itemHighlighted",highlighted:e})}getHeight(){return this.getGui().clientHeight}setIndex(e,t){const o=this.getGui();S8(o,e),y8(o,t)}createTooltip(){const e={getTooltipValue:()=>this.label,getGui:()=>this.getGui(),getLocation:()=>"UNKNOWN",shouldDisplayTooltip:()=>Lm(this.eText)},t=this.createOptionalManagedBean(this.beans.registry.createDynamicBean("highlightTooltipFeature",!1,e,this));t&&(this.tooltipFeature=t)}addEventListeners(){const e=this.getParentComponent();e&&(this.addGuiEventListener("mouseover",()=>{e.highlightItem(this)}),this.addGuiEventListener("mousedown",t=>{t.preventDefault(),t.stopPropagation(),e.setValue(this.value)}))}},sG=class extends Wc{constructor(e="default"){super({tag:"div",cls:`ag-list ag-${e}-list`}),this.cssIdentifier=e,this.options=[],this.listItems=[],this.highlightedItem=null,this.registerCSS(oG)}postConstruct(){const e=this.getGui();this.addManagedElementListeners(e,{mouseleave:()=>this.clearHighlighted()})}handleKeyDown(e){const t=e.key;switch(t){case ee.ENTER:if(!this.highlightedItem)this.setValue(this.getValue());else{const o=this.listItems.indexOf(this.highlightedItem);this.setValueByIndex(o)}break;case ee.DOWN:case ee.UP:e.preventDefault(),this.navigate(t);break;case ee.PAGE_DOWN:case ee.PAGE_UP:case ee.PAGE_HOME:case ee.PAGE_END:e.preventDefault(),this.navigateToPage(t);break}}addOptions(e){for(const t of e)this.addOption(t);return this}addOption(e){const{value:t,text:o}=e,r=o??t;return this.options.push({value:t,text:r}),this.renderOption(t,r),this.updateIndices(),this}clearOptions(){this.options=[],this.reset(!0);for(const e of this.listItems)e.destroy();Kn(this.getGui()),this.listItems=[],this.refreshAriaRole()}updateOptions(e){const t=this.options!==e;return t&&(this.clearOptions(),this.addOptions(e)),t}setValue(e,t){if(this.value===e)return this.fireItemSelected(),this;if(e==null)return this.reset(t),this;const o=this.options.findIndex(r=>r.value===e);if(o!==-1){const r=this.options[o];this.value=r.value,this.displayValue=r.text,this.highlightItem(this.listItems[o]),t||this.fireChangeEvent()}return this}setValueByIndex(e){return this.setValue(this.options[e].value)}getValue(){return this.value}getDisplayValue(){return this.displayValue}refreshHighlighted(){this.clearHighlighted();const e=this.options.findIndex(t=>t.value===this.value);e!==-1&&this.highlightItem(this.listItems[e])}highlightItem(e){const t=e.getGui();if(!Xn(t))return;this.clearHighlighted(),e.setHighlighted(!0),this.highlightedItem=e;const o=this.getGui(),{scrollTop:r,clientHeight:n}=o,{offsetTop:i,offsetHeight:s}=t;(i+s>r+n||i<r)&&t.scrollIntoView({block:"nearest"})}hideItemTooltip(){this.highlightedItem?.tooltipFeature?.attemptToHideTooltip()}destroy(){this.hideItemTooltip(),super.destroy()}reset(e){this.value=null,this.displayValue=null,this.clearHighlighted(),e||this.fireChangeEvent()}clearHighlighted(){this.highlightedItem?.setHighlighted(!1),this.highlightedItem=null}renderOption(e,t){const o=new iG(this.cssIdentifier,t,e);o.setParentComponent(this);const r=this.createManagedBean(o);this.listItems.push(r),this.getGui().appendChild(r.getGui())}navigate(e){const t=e===ee.DOWN;let o;const{listItems:r,highlightedItem:n}=this;if(!n)o=t?r[0]:vt(r);else{let s=r.indexOf(n)+(t?1:-1);s=Math.min(Math.max(s,0),r.length-1),o=r[s]}this.highlightItem(o)}navigateToPage(e){const{listItems:t,highlightedItem:o}=this;if(!o||t.length===0)return;const r=t.indexOf(o),n=this.options.length-1,i=t[0].getHeight(),s=Math.floor(this.getGui().clientHeight/i);let a=-1;e===ee.PAGE_HOME?a=0:e===ee.PAGE_END?a=n:e===ee.PAGE_DOWN?a=Math.min(r+s,n):e===ee.PAGE_UP&&(a=Math.max(r-s,0)),a!==-1&&this.highlightItem(t[a])}refreshAriaRole(){ja(this.getGui(),this.options.length===0?"presentation":"listbox")}updateIndices(){this.refreshAriaRole();const e=this.listItems,t=e.length;e.forEach((o,r)=>{o.setIndex(r+1,t)})}fireChangeEvent(){this.dispatchLocalEvent({type:"fieldValueChanged"}),this.fireItemSelected()}fireItemSelected(){this.dispatchLocalEvent({type:"selectedItem"})}},aG=".ag-picker-field-display{flex:1 1 auto}.ag-picker-field{align-items:center;display:flex}.ag-picker-field-icon{border:0;cursor:pointer;display:flex;margin:0;padding:0}.ag-picker-field-wrapper{background-color:var(--ag-picker-button-background-color);border:var(--ag-picker-button-border);border-radius:5px;min-height:max(var(--ag-list-item-height),calc(var(--ag-spacing)*4));overflow:hidden;&:where(.ag-picker-has-focus),&:where(:focus-within){background-color:var(--ag-picker-button-focus-background-color);border:var(--ag-picker-button-focus-border);box-shadow:var(--ag-focus-shadow);&:where(.invalid){box-shadow:var(--ag-focus-error-shadow)}}&:where(.invalid){background-color:var(--ag-input-invalid-background-color);border:var(--ag-input-invalid-border);color:var(--ag-input-invalid-text-color)}&:disabled{opacity:.5}}",lG={tag:"div",cls:"ag-picker-field",role:"presentation",children:[{tag:"div",ref:"eLabel"},{tag:"div",ref:"eWrapper",cls:"ag-wrapper ag-picker-field-wrapper ag-picker-collapsed",children:[{tag:"div",ref:"eDisplayField",cls:"ag-picker-field-display"},{tag:"div",ref:"eIcon",cls:"ag-picker-field-icon",attrs:{"aria-hidden":"true"}}]}]},cG=class extends HF{constructor(e){if(super(e,e?.template||lG,e?.agComponents||[],e?.className),this.isPickerDisplayed=!1,this.skipClick=!1,this.pickerGap=4,this.hideCurrentPicker=null,this.eLabel=Te,this.eWrapper=Te,this.eDisplayField=Te,this.eIcon=Te,this.registerCSS(aG),this.ariaRole=e?.ariaRole,this.onPickerFocusIn=this.onPickerFocusIn.bind(this),this.onPickerFocusOut=this.onPickerFocusOut.bind(this),!e)return;const{pickerGap:t,maxPickerHeight:o,variableWidth:r,minPickerWidth:n,maxPickerWidth:i}=e;t!=null&&(this.pickerGap=t),this.variableWidth=!!r,o!=null&&this.setPickerMaxHeight(o),n!=null&&this.setPickerMinWidth(n),i!=null&&this.setPickerMaxWidth(i)}postConstruct(){super.postConstruct(),this.setupAria();const e=`ag-${this.getCompId()}-display`;this.eDisplayField.setAttribute("id",e);const t=this.getAriaElement();this.addManagedElementListeners(t,{keydown:this.onKeyDown.bind(this)}),this.addManagedElementListeners(this.eLabel,{mousedown:this.onLabelOrWrapperMouseDown.bind(this)}),this.addManagedElementListeners(this.eWrapper,{mousedown:this.onLabelOrWrapperMouseDown.bind(this)});const{pickerIcon:o,inputWidth:r}=this.config;if(o){const n=this.beans.iconSvc.createIconNoSpan(o);n&&this.eIcon.appendChild(n)}r!=null&&this.setInputWidth(r)}setupAria(){const e=this.getAriaElement();e.setAttribute("tabindex",this.gos.get("tabIndex").toString()),Im(e,!1),this.ariaRole&&ja(e,this.ariaRole)}onLabelOrWrapperMouseDown(e){if(e){const t=this.getFocusableElement();if(t!==this.eWrapper&&e?.target===t)return;e.preventDefault(),this.getFocusableElement().focus()}if(this.skipClick){this.skipClick=!1;return}this.isDisabled()||(this.isPickerDisplayed?this.hidePicker():this.showPicker())}onKeyDown(e){switch(e.key){case ee.UP:case ee.DOWN:case ee.ENTER:case ee.SPACE:e.preventDefault(),this.onLabelOrWrapperMouseDown();break;case ee.ESCAPE:this.isPickerDisplayed&&(e.preventDefault(),e.stopPropagation(),this.hideCurrentPicker&&this.hideCurrentPicker());break}}showPicker(){this.isPickerDisplayed=!0,this.pickerComponent||(this.pickerComponent=this.createPickerComponent());const e=this.pickerComponent.getGui();e.addEventListener("focusin",this.onPickerFocusIn),e.addEventListener("focusout",this.onPickerFocusOut),this.hideCurrentPicker=this.renderAndPositionPicker(),this.toggleExpandedStyles(!0)}renderAndPositionPicker(){const e=this.pickerComponent.getGui();this.gos.get("suppressScrollWhenPopupsAreOpen")||([this.destroyMouseWheelFunc]=this.addManagedEventListeners({bodyScroll:()=>{this.hidePicker()}}));const t=this.getLocaleTextFunc(),{config:{pickerAriaLabelKey:o,pickerAriaLabelValue:r,modalPicker:n=!0},maxPickerHeight:i,minPickerWidth:s,maxPickerWidth:a,variableWidth:c,beans:d,eWrapper:h}=this,f={modal:n,eChild:e,closeOnEsc:!0,closedCallback:()=>{const w=Mm(d);this.beforeHidePicker(),w&&this.isAlive()&&this.getFocusableElement().focus()},ariaLabel:t(o,r),anchorToElement:h};e.style.position="absolute";const g=d.popupSvc,m=g.addPopup(f);c?(s&&(e.style.minWidth=s),e.style.width=zm(ah(h)),a&&(e.style.maxWidth=a)):dh(e,a??ah(h));const b=i??`${Bm(g.getPopupParent())}px`;return e.style.setProperty("max-height",b),this.alignPickerToComponent(),m.hideFunc}alignPickerToComponent(){if(!this.pickerComponent)return;const{pickerGap:e,config:{pickerType:t},beans:{popupSvc:o,gos:r},eWrapper:n,pickerComponent:i}=this,s=r.get("enableRtl")?"right":"left";o.positionPopupByComponent({type:t,eventSource:n,ePopup:i.getGui(),position:"under",alignSide:s,keepWithinBounds:!0,nudgeY:e})}beforeHidePicker(){this.destroyMouseWheelFunc&&(this.destroyMouseWheelFunc(),this.destroyMouseWheelFunc=void 0),this.toggleExpandedStyles(!1);const e=this.pickerComponent.getGui();e.removeEventListener("focusin",this.onPickerFocusIn),e.removeEventListener("focusout",this.onPickerFocusOut),this.isPickerDisplayed=!1,this.pickerComponent=void 0,this.hideCurrentPicker=null}toggleExpandedStyles(e){if(!this.isAlive())return;const t=this.getAriaElement();Im(t,e);const o=this.eWrapper.classList;o.toggle("ag-picker-expanded",e),o.toggle("ag-picker-collapsed",!e)}onPickerFocusIn(){this.togglePickerHasFocus(!0)}onPickerFocusOut(e){this.pickerComponent?.getGui().contains(e.relatedTarget)||this.togglePickerHasFocus(!1)}togglePickerHasFocus(e){this.pickerComponent&&this.eWrapper.classList.toggle("ag-picker-has-focus",e)}hidePicker(){this.hideCurrentPicker&&(this.hideCurrentPicker(),this.dispatchLocalEvent({type:"pickerHidden"}))}setInputWidth(e){return dh(this.eWrapper,e),this}getFocusableElement(){return this.eWrapper}setPickerGap(e){return this.pickerGap=e,this}setPickerMinWidth(e){return typeof e=="number"&&(e=`${e}px`),this.minPickerWidth=e??void 0,this}setPickerMaxWidth(e){return typeof e=="number"&&(e=`${e}px`),this.maxPickerWidth=e??void 0,this}setPickerMaxHeight(e){return typeof e=="number"&&(e=`${e}px`),this.maxPickerHeight=e??void 0,this}destroy(){this.hidePicker(),super.destroy()}},uG=".ag-select{align-items:center;display:flex;&.ag-disabled{opacity:.5}}:where(.ag-select){.ag-picker-field-wrapper{cursor:default}&.ag-disabled .ag-picker-field-wrapper:focus{box-shadow:none}&:not(.ag-cell-editor,.ag-label-align-top){min-height:var(--ag-list-item-height)}.ag-picker-field-display{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ag-picker-field-icon{align-items:center;display:flex}}:where(.ag-ltr) :where(.ag-select){.ag-picker-field-wrapper{padding-left:calc(var(--ag-cell-horizontal-padding)/2);padding-right:var(--ag-spacing)}}:where(.ag-rtl) :where(.ag-select){.ag-picker-field-wrapper{padding-left:var(--ag-spacing);padding-right:calc(var(--ag-cell-horizontal-padding)/2)}}.ag-select-list{background-color:var(--ag-picker-list-background-color);border:var(--ag-picker-list-border);border-radius:var(--ag-border-radius);box-shadow:var(--ag-dropdown-shadow);overflow:hidden auto}.ag-select-list-item{cursor:default;-webkit-user-select:none;-moz-user-select:none;user-select:none;:where(span){overflow:hidden;text-overflow:ellipsis;white-space:nowrap}}:where(.ag-ltr) .ag-select-list-item{padding-left:calc(var(--ag-cell-horizontal-padding)/2)}:where(.ag-rtl) .ag-select-list-item{padding-right:calc(var(--ag-cell-horizontal-padding)/2)}",VF=class extends cG{constructor(e){super({pickerAriaLabelKey:"ariaLabelSelectField",pickerAriaLabelValue:"Select Field",pickerType:"ag-list",className:"ag-select",pickerIcon:"selectOpen",ariaRole:"combobox",...e}),this.registerCSS(uG)}postConstruct(){this.tooltipFeature=this.createOptionalManagedBean(this.beans.registry.createDynamicBean("tooltipFeature",!1,{shouldDisplayTooltip:uh(()=>this.eDisplayField),getGui:()=>this.getGui()})),super.postConstruct(),this.createListComponent(),this.eWrapper.tabIndex=this.gos.get("tabIndex");const{options:e,value:t,placeholder:o}=this.config;e!=null&&this.addOptions(e),t!=null&&this.setValue(t,!0),o&&t==null&&(this.eDisplayField.textContent=o),this.addManagedElementListeners(this.eWrapper,{focusout:this.onWrapperFocusOut.bind(this)})}onWrapperFocusOut(e){this.eWrapper.contains(e.relatedTarget)||this.hidePicker()}createListComponent(){const e=this.createBean(new sG("select"));this.listComponent=e,e.setParentComponent(this);const t=e.getAriaElement(),o=`ag-select-list-${e.getCompId()}`;t.setAttribute("id",o),D8(this.getAriaElement(),t),e.addManagedElementListeners(e.getGui(),{mousedown:r=>{r?.preventDefault()}}),e.addManagedListeners(e,{selectedItem:()=>{this.hidePicker(),this.dispatchLocalEvent({type:"selectedItem"})},fieldValueChanged:()=>{this.listComponent&&(this.setValue(this.listComponent.getValue(),!1,!0),this.hidePicker())}})}createPickerComponent(){return this.listComponent}beforeHidePicker(){this.listComponent?.hideItemTooltip(),super.beforeHidePicker()}onKeyDown(e){const{key:t}=e;switch(t===ee.TAB&&this.hidePicker(),t){case ee.ENTER:case ee.UP:case ee.DOWN:case ee.PAGE_UP:case ee.PAGE_DOWN:case ee.PAGE_HOME:case ee.PAGE_END:e.preventDefault(),this.isPickerDisplayed?this.listComponent?.handleKeyDown(e):super.onKeyDown(e);break;case ee.ESCAPE:super.onKeyDown(e);break;case ee.SPACE:this.isPickerDisplayed?e.preventDefault():super.onKeyDown(e);break}}showPicker(){const e=this.listComponent;e&&(super.showPicker(),e.refreshHighlighted())}addOptions(e){for(const t of e)this.addOption(t);return this}addOption(e){return this.listComponent.addOption(e),this}clearOptions(){return this.listComponent?.clearOptions(),this.setValue(void 0,!0),this}updateOptions(e){return this.listComponent?.updateOptions(e)&&this.setValue(void 0,!0),this}setValue(e,t,o){const{listComponent:r,config:{placeholder:n},eDisplayField:i,tooltipFeature:s}=this;if(this.value===e||!r)return this;if(o||r.setValue(e,!0),r.getValue()===this.getValue())return this;let c=r.getDisplayValue();return c==null&&n&&(c=n),i.textContent=c,s?.setTooltipAndRefresh(c??null),super.setValue(e,t)}destroy(){this.listComponent=this.destroyBean(this.listComponent),super.destroy()}},dG={selector:"AG-SELECT",component:VF},hG=':where(.ag-root-wrapper,.ag-external,.ag-popup,.ag-dnd-ghost,.ag-chart),:where(.ag-root-wrapper,.ag-external,.ag-popup,.ag-dnd-ghost,.ag-chart) :where([class^=ag-]){box-sizing:border-box;&:after,&:before{box-sizing:border-box}&: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(button){color:inherit}}:where(.ag-root-wrapper,ag-external,.ag-popup,.ag-dnd-ghost,.ag-chart) :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;&:before{border-left:var(--ag-internal-measurement-border);content:"";display:block}}.ag-popup-child{top:0;z-index:5;&: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-chart,.ag-dnd-ghost,.ag-external,.ag-popup,.ag-root-wrapper{cursor:default;line-height:normal;white-space:normal;-webkit-font-smoothing:antialiased;background-color:var(--ag-background-color);color:var(--ag-text-color);color-scheme:var(--ag-browser-color-scheme);font-family:var(--ag-font-family);font-size:var(--ag-font-size);--ag-indentation-level:0}: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-user-select:none;-moz-user-select:none;user-select:none;width:var(--ag-icon-size)}.ag-disabled,[disabled]{.ag-icon{opacity:.5}&.ag-icon-grip{opacity:.35}}.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}}',Ev=typeof window!="object"||!window?.document?.fonts?.forEach,cl=(e,t,o,r,n,i)=>{if(Ev)return;r&&(e=`@layer ${CSS.escape(r).replaceAll("\\.",".")} { ${e} }`);let s=ul.map.get(t);if(s||(s=[],ul.map.set(t,s)),s.some(h=>h.css===e))return;const a=document.createElement("style");i&&a.setAttribute("nonce",i),a.dataset.agGlobalCss=o,a.textContent=e;const c={css:e,el:a,priority:n};let d;for(const h of s){if(h.priority>n)break;d=h}if(d){d.el.insertAdjacentElement("afterend",a);const h=s.indexOf(d);s.splice(h+1,0,c)}else t.insertBefore(a,t.querySelector(":not(title, meta)")),s.push(c)},GF=(e,t,o,r)=>{cl(hG,e,"shared",t,0,o),r?.forEach((n,i)=>n.forEach(s=>cl(s,e,i,t,0,o)))},fG=e=>{ul.grids.add(e)},pG=e=>{if(ul.grids.delete(e),ul.grids.size===0){ul.map=new WeakMap;for(const t of document.head.querySelectorAll("style[data-ag-global-css]"))t.remove()}},jF,ul=(jF=typeof window=="object"?window:{}).agStyleInjectionState??(jF.agStyleInjectionState={map:new WeakMap,grids:new Set}),Sn=e=>new WF(e),Ii="$default",gG=0,WF=class{constructor({feature:e,params:t,modeParams:o={},css:r,cssImports:n}){this.feature=e,this.css=r,this.cssImports=n,this.modeParams={[Ii]:{...o[Ii]??{},...t??{}},...o}}use(e,t,o){let r=this._inject;if(r==null){let{css:n}=this;if(n){const i=`ag-theme-${this.feature??"part"}-${++gG}`;typeof n=="function"&&(n=n()),n=`:where(.${i}) {
|
|
51
|
+
${n}
|
|
52
|
+
}
|
|
53
|
+
`;for(const s of this.cssImports??[])n=`@import url(${JSON.stringify(s)});
|
|
54
|
+
${n}`;r={css:n,class:i}}else r=!1;this._inject=r}return r&&e&&cl(r.css,e,r.class,t,1,o),r?r.class:!1}},mG=e=>e.replace(/[A-Z]/g,t=>`-${t}`).toLowerCase(),qF=e=>`--ag-${mG(e)}`,xn=e=>`var(${qF(e)})`,vG=(e,t,o)=>Math.max(t,Math.min(o,e)),bG=e=>{const t=new Map;return o=>{const r=o;return t.has(r)||t.set(r,e(o)),t.get(r)}},kn=e=>({ref:"accentColor",mix:e}),gr=e=>({ref:"foregroundColor",mix:e}),mr=e=>({ref:"foregroundColor",mix:e,onto:"backgroundColor"}),wG=e=>({ref:"foregroundColor",mix:e,onto:"headerBackgroundColor"}),Bo={ref:"backgroundColor"},dl={ref:"foregroundColor"},ti={ref:"accentColor"},Oh={backgroundColor:"#fff",foregroundColor:"#181d1f",borderColor:gr(.15),chromeBackgroundColor:mr(.02),browserColorScheme:"light"},CG={...Oh,textColor:dl,accentColor:"#2196f3",invalidColor:"#e02525",fontFamily:["-apple-system","BlinkMacSystemFont","Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue","sans-serif"],subtleTextColor:{ref:"textColor",mix:.5},borderWidth:1,borderRadius:4,spacing:8,fontSize:14,focusShadow:{spread:3,color:kn(.5)},focusErrorShadow:{spread:3,color:{ref:"invalidColor",onto:"backgroundColor",mix:.5}},popupShadow:"0 0 16px #00000026",cardShadow:"0 1px 4px 1px #00000018",dropdownShadow:{ref:"cardShadow"},listItemHeight:{calc:"max(iconSize, dataFontSize) + widgetVerticalSpacing"},dragAndDropImageBackgroundColor:Bo,dragAndDropImageBorder:!0,dragAndDropImageNotAllowedBorder:{color:{ref:"invalidColor",onto:"dragAndDropImageBackgroundColor",mix:.5}},dragAndDropImageShadow:{ref:"popupShadow"},iconSize:16,iconColor:"inherit",toggleButtonWidth:28,toggleButtonHeight:18,toggleButtonOnBackgroundColor:ti,toggleButtonOffBackgroundColor:mr(.3),toggleButtonSwitchBackgroundColor:Bo,toggleButtonSwitchInset:2,tooltipBackgroundColor:{ref:"chromeBackgroundColor"},tooltipErrorBackgroundColor:{ref:"invalidColor",onto:"backgroundColor",mix:.1},tooltipTextColor:{ref:"textColor"},tooltipErrorTextColor:{ref:"invalidColor"},tooltipBorder:!0,tooltipErrorBorder:{color:{ref:"invalidColor",onto:"backgroundColor",mix:.25}}},yG=["colorScheme","color","length","scale","borderStyle","border","shadow","image","fontFamily","fontWeight","duration"],SG=bG(e=>(e=e.toLowerCase(),yG.find(t=>e.endsWith(t.toLowerCase()))??"length")),Nh=e=>typeof e=="object"&&e?.ref?xn(e.ref):typeof e=="string"?e:typeof e=="number"?String(e):!1,_v=e=>{if(typeof e=="string")return e;if(e&&"ref"in e){const t=xn(e.ref);return e.mix==null?t:`color-mix(in srgb, ${e.onto?xn(e.onto):"transparent"}, ${t} ${vG(e.mix*100,0,100)}%)`}return!1},xG=Nh,hl=e=>typeof e=="string"?e:typeof e=="number"?`${e}px`:e&&"calc"in e?`calc(${e.calc.replace(/ ?[*/+] ?/g," $& ").replace(/-?\b[a-z][a-z0-9]*\b(?![-(])/gi,o=>o[0]==="-"?o:" "+xn(o)+" ")})`:e&&"ref"in e?xn(e.ref):!1,kG=Nh,Pv=(e,t)=>typeof e=="string"?e:e===!0?Pv({},t):e===!1?t==="columnBorder"?Pv({color:"transparent"},t):"none":e&&"ref"in e?xn(e.ref):UF(e.style??"solid")+" "+hl(e.width??{ref:"borderWidth"})+" "+_v(e.color??{ref:"borderColor"}),FG=e=>typeof e=="string"?e:e===!1?"none":e&&"ref"in e?xn(e.ref):[hl(e.offsetX??0),hl(e.offsetY??0),hl(e.radius??0),hl(e.spread??0),_v(e.color??{ref:"foregroundColor"})].join(" "),UF=Nh,$F=e=>typeof e=="string"?e.includes(",")?e:KF(e):e&&"googleFont"in e?$F(e.googleFont):e&&"ref"in e?xn(e.ref):Array.isArray(e)?e.map(t=>(typeof t=="object"&&"googleFont"in t&&(t=t.googleFont),KF(t))).join(", "):!1,KF=e=>/^[\w-]+$|\w\(/.test(e)?e:JSON.stringify(e),RG=Nh,XF=e=>typeof e=="string"?e:e&&"url"in e?`url(${JSON.stringify(e.url)})`:e&&"svg"in e?XF({url:`data:image/svg+xml,${encodeURIComponent(e.svg)}`}):e&&"ref"in e?xn(e.ref):!1,EG=(e,t,o)=>typeof e=="string"?e:typeof e=="number"?(e>=10&&o.warn(104,{value:e,param:t}),`${e}s`):e&&"ref"in e?xn(e.ref):!1,_G={color:_v,colorScheme:xG,length:hl,scale:kG,border:Pv,borderStyle:UF,shadow:FG,image:XF,fontFamily:$F,fontWeight:RG,duration:EG},PG=(e,t,o)=>{const r=SG(e);return _G[r](t,e,o)},DG=e=>new ZF(e),ZF=class kT{constructor(t,o=[]){this.themeLogger=t,this.parts=o}withPart(t){return typeof t=="function"&&(t=t()),t instanceof WF?new kT(this.themeLogger,[...this.parts,t]):(this.themeLogger.preInitErr(259,"Invalid part",{part:t}),this)}withoutPart(t){return this.withPart(Sn({feature:t}))}withParams(t,o=Ii){return this.withPart(Sn({modeParams:{[o]:t}}))}_startUse({styleContainer:t,cssLayer:o,nonce:r,loadThemeGoogleFonts:n,moduleCss:i}){if(Ev)return;MG(),GF(t,o,r,i);const s=TG(this);if(s.length>0)for(const a of s)n&&AG(a,r);for(const a of this.parts)a.use(t,o,r)}_getCssClass(){return this._cssClassCache??(this._cssClassCache=YF(this.parts).map(t=>t.use(void 0,void 0,void 0)).filter(Boolean).join(" "))}_getModeParams(){let t=this._paramsCache;if(!t){const o={[Ii]:{...CG}};for(const r of YF(this.parts))for(const n of Object.keys(r.modeParams)){const i=r.modeParams[n];if(i){const s=o[n]??(o[n]={}),a=new Set;for(const c of Object.keys(i)){const d=i[c];d!==void 0&&(s[c]=d,a.add(c))}if(n===Ii)for(const c of Object.keys(o)){const d=o[c];if(c!==Ii)for(const h of a)delete d[h]}}}this._paramsCache=t=o}return t}_getPerInstanceCss(t){const o="##SELECTOR##";let r=this._paramsCssCache;if(!r){let n="",i="";const s=this._getModeParams();for(const c of Object.keys(s)){const d=s[c];if(c!==Ii){const f=`:where([data-ag-theme-mode="${typeof CSS=="object"?CSS.escape(c):c}"]) & {
|
|
55
|
+
`;n+=f,i+=f}for(const h of Object.keys(d).sort()){const f=d[h],g=PG(h,f,this.themeLogger);if(g===!1)this.themeLogger.error(107,{key:h,value:f});else{const m=qF(h),b=m.replace("--ag-","--ag-inherited-");n+=` ${m}: var(${b}, ${g});
|
|
56
|
+
`,i+=` ${b}: var(${m});
|
|
57
|
+
`}}c!==Ii&&(n+=`}
|
|
58
|
+
`,i+=`}
|
|
59
|
+
`)}let a=`${o} {
|
|
60
|
+
${n}}
|
|
61
|
+
`;a+=`:has(> ${o}):not(${o}) {
|
|
62
|
+
${i}}
|
|
63
|
+
`,this._paramsCssCache=r=a}return r.replaceAll(o,`:where(.${t})`)}},YF=e=>{const t=new Map;for(const r of e)t.set(r.feature,r);const o=[];for(const r of e)(!r.feature||t.get(r.feature)===r)&&o.push(r);return o},TG=e=>{const t=new Set,o=i=>{if(Array.isArray(i))i.forEach(o);else{const s=i?.googleFont;typeof s=="string"&&t.add(s)}};return Object.values(e._getModeParams()).flatMap(i=>Object.values(i)).forEach(o),Array.from(t).sort()},QF=!1,MG=()=>{if(!QF){QF=!0;for(const e of Array.from(document.head.querySelectorAll('style[data-ag-scope="legacy"]')))e.remove()}},AG=async(e,t)=>{const o=`@import url('https://${IG}/css2?family=${encodeURIComponent(e)}:wght@100;200;300;400;500;600;700;800;900&display=swap');
|
|
64
|
+
`;cl(o,document.head,`googleFont:${e}`,void 0,0,t)},IG="fonts.googleapis.com",BG=1,OG=class{constructor(e){this.beans={},this.createdBeans=[],this.destroyed=!1,this.instanceId=BG++,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 o=new t;o.beanName?this.beans[o.beanName]=o:console.error(`Bean ${t.name} is missing beanName`),this.createdBeans.push(o)}for(const t of e.derivedBeans??[]){const{beanName:o,bean:r}=t(this);this.beans[o]=r,this.createdBeans.push(r)}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 o=this.beans;for(const r of e)r.preWireBeans?.(o),r.wireBeans?.(o);for(const r of e)r.preConstruct?.();t&&e.forEach(t);for(const r of e)r.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}},NG=0,JF={cssName:"--ag-list-item-height",changeKey:"listItemHeightChanged",defaultValue:24},LG=class extends Io{constructor(){super(...arguments),this.beanName="environment",this.sizeEls=new Map,this.lastKnownValues=new Map,this.sizesMeasured=!1,this.paramsClass=`ag-theme-params-${++NG}`,this.globalCSS=[]}wireBeans(e){this.eRootDiv=e.eRootDiv}postConstruct(){const{gos:e,eRootDiv:t}=this;e.setInstanceDomData(t);const o=e.get("themeStyleContainer"),r=typeof ShadowRoot<"u",n=r&&t.getRootNode()instanceof ShadowRoot;this.eStyleContainer=(typeof o=="function"?o():o)??(n?t:document.head),!o&&!n&&r&&zG(t,this.shadowRootError.bind(this),this.addDestroyFunc.bind(this)),this.cssLayer=e.get("themeCssLayer"),this.styleNonce=e.get("styleNonce"),this.addManagedPropertyListener("theme",()=>this.handleThemeChange()),this.handleThemeChange(),this.getSizeEl(JF),this.initVariables(),this.addDestroyFunc(()=>pG(this)),this.mutationObserver=new MutationObserver(()=>{this.fireStylesChangedEvent("themeChanged")}),this.addDestroyFunc(()=>this.mutationObserver.disconnect())}applyThemeClasses(e,t=[]){const{theme:o}=this;let r;o?r=`${this.paramsClass} ${o._getCssClass()}`:r=this.applyLegacyThemeClasses();for(const n of Array.from(e.classList))n.startsWith("ag-theme-")&&e.classList.remove(n);if(r){const n=e.className;e.className=`${n}${n?" ":""}${r}${t?.length?" "+t.join(" "):""}`}}applyLegacyThemeClasses(){let e="";this.mutationObserver.disconnect();let t=this.eRootDiv;for(;t;){let o=!1;for(const r of Array.from(t.classList))r.startsWith("ag-theme-")&&(o=!0,e=e?`${e} ${r}`:r);o&&this.mutationObserver.observe(t,{attributes:!0,attributeFilter:["class"]}),t=t.parentElement}return e}addGlobalCSS(e,t){this.theme?cl(e,this.eStyleContainer,t,this.cssLayer,0,this.styleNonce):this.globalCSS.push([e,t])}getDefaultListItemHeight(){return this.getCSSVariablePixelValue(JF)}getCSSVariablePixelValue(e){const t=this.lastKnownValues.get(e);if(t!=null)return t;const o=this.measureSizeEl(e);return o==="detached"||o==="no-styles"?(e.cacheDefault&&this.lastKnownValues.set(e,e.defaultValue),e.defaultValue):(this.lastKnownValues.set(e,o),o)}measureSizeEl(e){const t=this.getSizeEl(e);if(t.offsetParent==null)return"detached";const o=t.offsetWidth;return o===Dv?"no-styles":(this.sizesMeasured=!0,o)}getMeasurementContainer(){let e=this.eMeasurementContainer;return e||(e=this.eMeasurementContainer=Di({tag:"div",cls:"ag-measurement-container"}),this.eRootDiv.appendChild(e)),e}getSizeEl(e){let t=this.sizeEls.get(e);if(t)return t;const o=this.getMeasurementContainer();t=Di({tag:"div"});const{border:r,noWarn:n}=e;r?(t.className="ag-measurement-element-border",t.style.setProperty("--ag-internal-measurement-border",`var(${e.cssName}, solid ${Dv}px)`)):t.style.width=`var(${e.cssName}, ${Dv}px)`,o.appendChild(t),this.sizeEls.set(e,t);let i=this.measureSizeEl(e);i==="no-styles"&&!n&&this.varError(e);const s=Zn(this.beans,t,()=>{const a=this.measureSizeEl(e);a==="detached"||a==="no-styles"||(this.lastKnownValues.set(e,a),a!==i&&(i=a,this.fireStylesChangedEvent(e.changeKey)))});return this.addDestroyFunc(()=>s()),t}handleThemeChange(){const{gos:e,theme:t}=this,o=e.get("theme");let r;if(o==="legacy")r=void 0;else{const n=o??this.getDefaultTheme();n instanceof ZF?r=n:this.themeError(n)}r!==t&&this.handleNewTheme(r),this.postProcessThemeChange(r,o)}handleNewTheme(e){const{gos:t,eRootDiv:o,globalCSS:r}=this,n=this.getAdditionalCss();if(e){fG(this),GF(this.eStyleContainer,this.cssLayer,this.styleNonce,n);for(const[s,a]of r)cl(s,this.eStyleContainer,a,this.cssLayer,0,this.styleNonce);r.length=0}this.theme=e,e?._startUse({loadThemeGoogleFonts:t.get("loadThemeGoogleFonts"),styleContainer:this.eStyleContainer,cssLayer:this.cssLayer,nonce:this.styleNonce,moduleCss:n});let i=this.eParamsStyle;if(!i){i=this.eParamsStyle=Di({tag:"style"});const s=t.get("styleNonce");s&&i.setAttribute("nonce",s),o.appendChild(i)}Ev||(i.textContent=e?._getPerInstanceCss(this.paramsClass)||""),this.applyThemeClasses(o),this.fireStylesChangedEvent("themeChanged")}fireStylesChangedEvent(e){this.eventSvc.dispatchEvent({type:"stylesChanged",[e]:!0})}},Dv=15538,zG=(e,t,o)=>{let r=60;const n=setInterval(()=>{typeof ShadowRoot<"u"&&e.getRootNode()instanceof ShadowRoot&&(t(),clearInterval(n)),(Om(e)||--r<0)&&clearInterval(n)},1e3);o(()=>clearInterval(n))},HG=class extends Io{constructor(){super(...arguments),this.beanName="registry"}registerDynamicBeans(e){if(e){this.dynamicBeans??(this.dynamicBeans={});for(const t of Object.keys(e))this.dynamicBeans[t]=e[t]}}createDynamicBean(e,t,...o){if(!this.dynamicBeans)throw new Error(this.getDynamicError(e,!0));const r=this.dynamicBeans[e];if(r==null){if(t)throw new Error(this.getDynamicError(e,!1));return}return new r(...o)}},VG=class extends Io{constructor(){super(...arguments),this.beanName="eventSvc",this.eventServiceType="global",this.globalSvc=new Ms}addListener(e,t,o){this.globalSvc.addEventListener(e,t,o)}removeListener(e,t,o){this.globalSvc.removeEventListener(e,t,o)}addGlobalListener(e,t=!1){this.globalSvc.addGlobalListener(e,t)}removeGlobalListener(e,t=!1){this.globalSvc.removeGlobalListener(e,t)}dispatchEvent(e){this.globalSvc.dispatchEvent(this.gos.addCommon(e))}dispatchEventOnce(e){this.globalSvc.dispatchEventOnce(this.gos.addCommon(e))}},eR=class extends Io{constructor(e,t){super(),this.ctrl=e,t&&(this.beans=t)}postConstruct(){this.refreshTooltip()}setBrowserTooltip(e,t){const o="title",r=this.ctrl.getGui();r&&(e!=null&&(e!=""||t)?r.setAttribute(o,e):r.removeAttribute(o))}updateTooltipText(){const{getTooltipValue:e}=this.ctrl;e&&(this.tooltip=e())}createTooltipFeatureIfNeeded(){if(this.tooltipManager==null){const e=this.beans.registry.createDynamicBean("tooltipStateManager",!0,this.ctrl,()=>this.tooltip);e&&(this.tooltipManager=this.createBean(e,this.beans.context))}}attemptToShowTooltip(){this.tooltipManager?.prepareToShowTooltip()}attemptToHideTooltip(){this.tooltipManager?.hideTooltip()}setTooltipAndRefresh(e){this.tooltip=e,this.refreshTooltip()}refreshTooltip(e){this.browserTooltips=this.beans.gos.get("enableBrowserTooltips"),this.updateTooltipText(),this.browserTooltips?(this.setBrowserTooltip(this.tooltip),this.tooltipManager=this.destroyBean(this.tooltipManager,this.beans.context)):(this.setBrowserTooltip(e?"":null,e),this.createTooltipFeatureIfNeeded())}destroy(){this.tooltipManager=this.destroyBean(this.tooltipManager,this.beans.context),super.destroy()}},GG=1e3,jG=1e3,tR=100,oR,Lh=!1,WG=class extends Io{constructor(e,t){super(),this.tooltipCtrl=e,this.getTooltipValue=t,this.interactionEnabled=!1,this.isInteractingWithTooltip=!1,this.state=0,this.tooltipInstanceCount=0,this.tooltipMouseTrack=!1}wireBeans(e){this.popupSvc=e.popupSvc}postConstruct(){this.gos.get("tooltipInteraction")&&(this.interactionEnabled=!0),this.tooltipTrigger=this.getTooltipTrigger(),this.tooltipMouseTrack=this.gos.get("tooltipMouseTrack");const e=this.tooltipCtrl.getGui();this.tooltipTrigger===0&&this.addManagedListeners(e,{mouseenter:this.onMouseEnter.bind(this),mouseleave:this.onMouseLeave.bind(this)}),this.tooltipTrigger===1&&this.addManagedListeners(e,{focusin:this.onFocusIn.bind(this),focusout:this.onFocusOut.bind(this)}),this.addManagedListeners(e,{mousemove:this.onMouseMove.bind(this)}),this.interactionEnabled||this.addManagedListeners(e,{mousedown:this.onMouseDown.bind(this),keydown:this.onKeyDown.bind(this)})}getGridOptionsTooltipDelay(e){const t=this.gos.get(e);return Math.max(200,t)}getTooltipDelay(e){return e==="show"?this.tooltipCtrl.getTooltipShowDelayOverride?.()??this.getGridOptionsTooltipDelay("tooltipShowDelay"):this.tooltipCtrl.getTooltipHideDelayOverride?.()??this.getGridOptionsTooltipDelay("tooltipHideDelay")}destroy(){this.setToDoNothing(),super.destroy()}getTooltipTrigger(){const e=this.gos.get("tooltipTrigger");return!e||e==="hover"?0:1}onMouseEnter(e){this.interactionEnabled&&this.interactiveTooltipTimeoutId&&(this.unlockService(),this.startHideTimeout()),!Hs()&&(Lh?this.showTooltipTimeoutId=window.setTimeout(()=>{this.prepareToShowTooltip(e)},tR):this.prepareToShowTooltip(e))}onMouseMove(e){this.lastMouseEvent&&(this.lastMouseEvent=e),this.tooltipMouseTrack&&this.state===2&&this.tooltipComp&&this.positionTooltip()}onMouseDown(){this.setToDoNothing()}onMouseLeave(){this.interactionEnabled?this.lockService():this.setToDoNothing()}onFocusIn(){this.prepareToShowTooltip()}onFocusOut(e){const t=e.relatedTarget,o=this.tooltipCtrl.getGui(),r=this.tooltipComp?.getGui();this.isInteractingWithTooltip||o.contains(t)||this.interactionEnabled&&r?.contains(t)||this.setToDoNothing()}onKeyDown(){this.isInteractingWithTooltip&&(this.isInteractingWithTooltip=!1),this.setToDoNothing()}prepareToShowTooltip(e){if(this.state!=0||Lh)return;let t=0;e&&(t=this.isLastTooltipHiddenRecently()?200:this.getTooltipDelay("show")),this.lastMouseEvent=e||null,this.showTooltipTimeoutId=window.setTimeout(this.showTooltip.bind(this),t),this.state=1}isLastTooltipHiddenRecently(){return Date.now()-oR<GG}setToDoNothing(e){!e&&this.state===2&&this.hideTooltip(),this.onBodyScrollEventCallback&&(this.onBodyScrollEventCallback(),this.onBodyScrollEventCallback=void 0),this.clearEventHandlers(),this.onDocumentKeyDownCallback&&(this.onDocumentKeyDownCallback(),this.onDocumentKeyDownCallback=void 0),this.clearTimeouts(),this.state=0,this.lastMouseEvent=null}showTooltip(){const e=this.getTooltipValue(),t=this.tooltipCtrl;if(!Ee(e)||t.shouldDisplayTooltip&&!t.shouldDisplayTooltip()){this.setToDoNothing();return}const o=this.gos.addCommon({location:t.getLocation?.()??"UNKNOWN",value:e,hideTooltipCallback:()=>this.hideTooltip(!0),...t.getAdditionalParams?.()});this.state=2,this.tooltipInstanceCount++;const r=this.newTooltipComponentCallback.bind(this,this.tooltipInstanceCount);this.createTooltipComp(o,r)}hideTooltip(e){!e&&this.isInteractingWithTooltip||(this.tooltipComp&&(this.destroyTooltipComp(),oR=Date.now()),this.eventSvc.dispatchEvent({type:"tooltipHide",parentGui:this.tooltipCtrl.getGui()}),e&&(this.isInteractingWithTooltip=!1),this.setToDoNothing(!0))}newTooltipComponentCallback(e,t){if(this.state!==2||this.tooltipInstanceCount!==e){this.destroyBean(t);return}const r=t.getGui();this.tooltipComp=t,r.classList.contains("ag-tooltip")||r.classList.add("ag-tooltip-custom"),this.tooltipTrigger===0&&r.classList.add("ag-tooltip-animate"),this.interactionEnabled&&r.classList.add("ag-tooltip-interactive");const n=this.getLocaleTextFunc(),i=this.popupSvc?.addPopup({eChild:r,ariaLabel:n("ariaLabelTooltip","Tooltip")});if(i&&(this.tooltipPopupDestroyFunc=i.hideFunc),this.positionTooltip(),this.tooltipTrigger===1){const s=()=>this.setToDoNothing();[this.onBodyScrollEventCallback]=this.addManagedEventListeners({bodyScroll:s}),this.setEventHandlers(s)}this.interactionEnabled&&([this.tooltipMouseEnterListener,this.tooltipMouseLeaveListener]=this.addManagedElementListeners(r,{mouseenter:this.onTooltipMouseEnter.bind(this),mouseleave:this.onTooltipMouseLeave.bind(this)}),[this.onDocumentKeyDownCallback]=this.addManagedElementListeners(lo(this.beans),{keydown:s=>{r.contains(s?.target)||this.onKeyDown()}}),this.tooltipTrigger===1&&([this.tooltipFocusInListener,this.tooltipFocusOutListener]=this.addManagedElementListeners(r,{focusin:this.onTooltipFocusIn.bind(this),focusout:this.onTooltipFocusOut.bind(this)}))),this.eventSvc.dispatchEvent({type:"tooltipShow",tooltipGui:r,parentGui:this.tooltipCtrl.getGui()}),this.startHideTimeout()}onTooltipMouseEnter(){this.isInteractingWithTooltip=!0,this.unlockService()}onTooltipMouseLeave(){this.isTooltipFocused()||(this.isInteractingWithTooltip=!1,this.lockService())}onTooltipFocusIn(){this.isInteractingWithTooltip=!0}isTooltipFocused(){const e=this.tooltipComp?.getGui(),t=Mt(this.beans);return!!e&&e.contains(t)}onTooltipFocusOut(e){const t=this.tooltipCtrl.getGui();this.isTooltipFocused()||(this.isInteractingWithTooltip=!1,t.contains(e.relatedTarget)?this.startHideTimeout():this.hideTooltip())}positionTooltip(){const e={type:"tooltip",ePopup:this.tooltipComp.getGui(),nudgeY:18,skipObserver:this.tooltipMouseTrack};this.lastMouseEvent?this.popupSvc?.positionPopupUnderMouseEvent({...e,mouseEvent:this.lastMouseEvent}):this.popupSvc?.positionPopupByComponent({...e,eventSource:this.tooltipCtrl.getGui(),position:"under",keepWithinBounds:!0,nudgeY:5})}destroyTooltipComp(){this.tooltipComp.getGui().classList.add("ag-tooltip-hiding");const e=this.tooltipPopupDestroyFunc,t=this.tooltipComp,o=this.tooltipTrigger===0?jG:0;window.setTimeout(()=>{e(),this.destroyBean(t)},o),this.clearTooltipListeners(),this.tooltipPopupDestroyFunc=void 0,this.tooltipComp=void 0}clearTooltipListeners(){for(const e of[this.tooltipMouseEnterListener,this.tooltipMouseLeaveListener,this.tooltipFocusInListener,this.tooltipFocusOutListener])e&&e();this.tooltipMouseEnterListener=this.tooltipMouseLeaveListener=this.tooltipFocusInListener=this.tooltipFocusOutListener=null}lockService(){Lh=!0,this.interactiveTooltipTimeoutId=window.setTimeout(()=>{this.unlockService(),this.setToDoNothing()},tR)}unlockService(){Lh=!1,this.clearInteractiveTimeout()}startHideTimeout(){this.clearHideTimeout(),this.hideTooltipTimeoutId=window.setTimeout(this.hideTooltip.bind(this),this.getTooltipDelay("hide"))}clearShowTimeout(){this.showTooltipTimeoutId&&(window.clearTimeout(this.showTooltipTimeoutId),this.showTooltipTimeoutId=void 0)}clearHideTimeout(){this.hideTooltipTimeoutId&&(window.clearTimeout(this.hideTooltipTimeoutId),this.hideTooltipTimeoutId=void 0)}clearInteractiveTimeout(){this.interactiveTooltipTimeoutId&&(window.clearTimeout(this.interactiveTooltipTimeoutId),this.interactiveTooltipTimeoutId=void 0)}clearTimeouts(){this.clearShowTimeout(),this.clearHideTimeout(),this.clearInteractiveTimeout()}},qG=class extends eR{constructor(e,t,o){super(e,o),this.highlightTracker=t,this.onHighlight=this.onHighlight.bind(this)}postConstruct(){super.postConstruct(),this.wireHighlightListeners()}wireHighlightListeners(){this.addManagedPropertyListener("tooltipTrigger",({currentValue:e})=>{this.setTooltipMode(e)}),this.setTooltipMode(this.gos.get("tooltipTrigger")),this.highlightTracker.addEventListener("itemHighlighted",this.onHighlight)}onHighlight(e){this.tooltipMode===1&&(e.highlighted?this.attemptToShowTooltip():this.attemptToHideTooltip())}setTooltipMode(e="focus"){this.tooltipMode=e==="focus"?1:0}destroy(){this.highlightTracker.removeEventListener("itemHighlighted",this.onHighlight),super.destroy()}},zh=0,UG=200,$G=class extends Io{constructor(){super(...arguments),this.beanName="popupSvc",this.popupList=[]}postConstruct(){this.addManagedEventListeners({stylesChanged:this.handleThemeChange.bind(this)})}getPopupParent(){const e=this.gos.get("popupParent");return e||this.getDefaultPopupParent()}positionPopupUnderMouseEvent(e){const{ePopup:t,nudgeX:o,nudgeY:r,skipObserver:n}=e;this.positionPopup({ePopup:t,nudgeX:o,nudgeY:r,keepWithinBounds:!0,skipObserver:n,updatePosition:()=>this.calculatePointerAlign(e.mouseEvent),postProcessCallback:()=>this.callPostProcessPopup(e.additionalParams,e.type,e.ePopup,null,e.mouseEvent)})}calculatePointerAlign(e){const t=this.getParentRect();return{x:e.clientX-t.left,y:e.clientY-t.top}}positionPopupByComponent(e){const{ePopup:t,nudgeX:o,nudgeY:r,keepWithinBounds:n,eventSource:i,alignSide:s="left",position:a="over",type:c}=e,d=i.getBoundingClientRect(),h=this.getParentRect();this.setAlignedTo(i,t);const f=()=>{let g=d.left-h.left;s==="right"&&(g-=t.offsetWidth-d.width);let m;return a==="over"?(m=d.top-h.top,this.setAlignedStyles(t,"over")):(this.setAlignedStyles(t,"under"),this.shouldRenderUnderOrAbove(t,d,h,e.nudgeY||0)==="under"?m=d.top-h.top+d.height:m=d.top-t.offsetHeight-(r||0)*2-h.top),{x:g,y:m}};this.positionPopup({ePopup:t,nudgeX:o,nudgeY:r,keepWithinBounds:n,updatePosition:f,postProcessCallback:()=>this.callPostProcessPopup(e.additionalParams,c,t,i,null)})}positionPopupForMenu(e){const{eventSource:t,ePopup:o,event:r}=e,n=t.getBoundingClientRect(),i=this.getParentRect();this.setAlignedTo(t,o);let s=!1;const a=()=>{const c=this.keepXYWithinBounds(o,n.top-i.top,0),d=o.clientWidth>0?o.clientWidth:200;s||(o.style.minWidth=`${d}px`,s=!0);const f=i.right-i.left-d;let g;return this.gos.get("enableRtl")?(g=b(),g<0&&(g=m(),this.setAlignedStyles(o,"left")),g>f&&(g=0,this.setAlignedStyles(o,"right"))):(g=m(),g>f&&(g=b(),this.setAlignedStyles(o,"right")),g<0&&(g=0,this.setAlignedStyles(o,"left"))),{x:g,y:c};function m(){return n.right-i.left-2}function b(){return n.left-i.left-d}};this.positionPopup({ePopup:o,keepWithinBounds:!0,updatePosition:a,postProcessCallback:()=>this.callPostProcessPopup(e.additionalParams,"subMenu",o,t,r instanceof MouseEvent?r:void 0)})}shouldRenderUnderOrAbove(e,t,o,r){const n=o.bottom-t.bottom,i=t.top-o.top,s=e.offsetHeight+r;return n>s?"under":i>s||i>n?"above":"under"}setAlignedStyles(e,t){const o=this.getPopupIndex(e);if(o===-1)return;const r=this.popupList[o],{alignedToElement:n}=r;if(!n)return;const i=["right","left","over","above","under"];for(const s of i)n.classList.remove(`ag-has-popup-positioned-${s}`),e.classList.remove(`ag-popup-positioned-${s}`);t&&(n.classList.add(`ag-has-popup-positioned-${t}`),e.classList.add(`ag-popup-positioned-${t}`))}setAlignedTo(e,t){const o=this.getPopupIndex(t);if(o!==-1){const r=this.popupList[o];r.alignedToElement=e}}positionPopup(e){const{ePopup:t,keepWithinBounds:o,nudgeX:r,nudgeY:n,skipObserver:i,updatePosition:s}=e,a={width:0,height:0},c=(d=!1)=>{let{x:h,y:f}=s();d&&t.clientWidth===a.width&&t.clientHeight===a.height||(a.width=t.clientWidth,a.height=t.clientHeight,r&&(h+=r),n&&(f+=n),o&&(h=this.keepXYWithinBounds(t,h,1),f=this.keepXYWithinBounds(t,f,0)),t.style.left=`${h}px`,t.style.top=`${f}px`,e.postProcessCallback&&e.postProcessCallback())};if(c(),!i){const d=Zn(this.beans,t,()=>c(!0));setTimeout(()=>d(),UG)}}getParentRect(){const e=lo(this.beans);let t=this.getPopupParent();return t===e.body?t=e.documentElement:getComputedStyle(t).position==="static"&&(t=t.offsetParent),Ek(t)}keepXYWithinBounds(e,t,o){const r=o===0,n=r?"clientHeight":"clientWidth",i=r?"top":"left",s=r?"height":"width",a=r?"scrollTop":"scrollLeft",c=lo(this.beans),d=c.documentElement,h=this.getPopupParent(),f=e.getBoundingClientRect(),g=h.getBoundingClientRect(),m=c.documentElement.getBoundingClientRect(),b=h===c.body,w=Math.ceil(f[s]);let k=b?(r?Rk:ah)(d)+d[a]:h[n];b&&(k-=Math.abs(m[i]-g[i]));const C=k-w;return Math.min(Math.max(t,0),Math.max(C,0))}addPopup(e){const{eChild:t,ariaLabel:o,ariaOwns:r,alwaysOnTop:n,positionCallback:i,anchorToElement:s}=e,a=this.getPopupIndex(t);if(a!==-1)return{hideFunc:this.popupList[a].hideFunc};this.initialisePopupPosition(t);const c=this.createPopupWrapper(t,!!n,o,r),d=this.addEventListenersToPopup({...e,wrapperEl:c});return i&&i(),this.addPopupToPopupList(t,c,d,s),{hideFunc:d}}initialisePopupPosition(e){const o=this.getPopupParent().getBoundingClientRect();Ee(e.style.top)||(e.style.top=`${o.top*-1}px`),Ee(e.style.left)||(e.style.left=`${o.left*-1}px`)}createPopupWrapper(e,t,o,r){const n=this.getPopupParent(),{environment:i,gos:s}=this.beans,a=Di({tag:"div"});return i.applyThemeClasses(a),a.classList.add("ag-popup"),e.classList.add(s.get("enableRtl")?"ag-rtl":"ag-ltr","ag-popup-child"),e.hasAttribute("role")||ja(e,"dialog"),o?Wa(e,o):r&&(e.id||(e.id=`popup-component-${zh}`),kk(r,e.id)),a.appendChild(e),n.appendChild(a),t?this.setAlwaysOnTop(e,!0):this.bringPopupToFront(e),a}addEventListenersToPopup(e){const t=this.beans,o=lo(t),{wrapperEl:r,eChild:n,closedCallback:i,afterGuiAttached:s,closeOnEsc:a,modal:c,ariaOwns:d}=e;let h=!1;const f=w=>{if(!r.contains(Mt(t)))return;w.key===ee.ESCAPE&&!this.isStopPropagation(w)&&b({keyboardEvent:w})},g=w=>b({mouseEvent:w}),m=w=>b({touchEvent:w}),b=(w={})=>{const{mouseEvent:y,touchEvent:k,keyboardEvent:C,forceHide:F}=w;!F&&(this.isEventFromCurrentPopup({mouseEvent:y,touchEvent:k},n)||h)||(h=!0,r.remove(),o.removeEventListener("keydown",f),o.removeEventListener("mousedown",g),o.removeEventListener("touchstart",m),o.removeEventListener("contextmenu",g),this.eventSvc.removeListener("dragStarted",g),i&&i(y||k||C),this.removePopupFromPopupList(n,d))};return s&&s({hidePopup:b}),window.setTimeout(()=>{a&&o.addEventListener("keydown",f),c&&(o.addEventListener("mousedown",g),this.eventSvc.addListener("dragStarted",g),o.addEventListener("touchstart",m),o.addEventListener("contextmenu",g))},0),b}addPopupToPopupList(e,t,o,r){this.popupList.push({element:e,wrapper:t,hideFunc:o,instanceId:zh,isAnchored:!!r}),r&&this.setPopupPositionRelatedToElement(e,r),zh=zh+1}getPopupIndex(e){return this.popupList.findIndex(t=>t.element===e)}setPopupPositionRelatedToElement(e,t){const o=this.getPopupIndex(e);if(o===-1)return;const r=this.popupList[o];if(r.stopAnchoringPromise&&r.stopAnchoringPromise.then(i=>i&&i()),r.stopAnchoringPromise=void 0,r.isAnchored=!1,!t)return;const n=this.keepPopupPositionedRelativeTo({element:t,ePopup:e,hidePopup:r.hideFunc});return r.stopAnchoringPromise=n,r.isAnchored=!0,n}removePopupFromPopupList(e,t){this.setAlignedStyles(e,null),this.setPopupPositionRelatedToElement(e,null),t&&kk(t,null),this.popupList=this.popupList.filter(o=>o.element!==e)}keepPopupPositionedRelativeTo(e){const t=this.getPopupParent(),o=t.getBoundingClientRect(),{element:r,ePopup:n}=e,i=r.getBoundingClientRect(),s=f=>Number.parseInt(f.substring(0,f.length-1),10),a=(f,g)=>{const m=o[f]-i[f],b=s(n.style[f]);return{initialDiff:m,lastDiff:m,initial:b,last:b,direction:g}},c=a("top",0),d=a("left",1),h=this.beans.frameworkOverrides;return new Ye(f=>{h.wrapIncoming(()=>{t9(()=>{const g=t.getBoundingClientRect(),m=r.getBoundingClientRect();if(m.top==0&&m.left==0&&m.height==0&&m.width==0){e.hidePopup();return}const w=(y,k)=>{const C=s(n.style[k]);y.last!==C&&(y.initial=C,y.last=C);const F=g[k]-m[k];if(F!=y.lastDiff){const E=this.keepXYWithinBounds(n,y.initial+y.initialDiff-F,y.direction);n.style[k]=`${E}px`,y.last=E}y.lastDiff=F};w(c,"top"),w(d,"left")},200).then(g=>{f(()=>{g!=null&&window.clearInterval(g)})})},"popupPositioning")})}isEventFromCurrentPopup(e,t){const{mouseEvent:o,touchEvent:r}=e,n=o||r;if(!n)return!1;const i=this.getPopupIndex(t);if(i===-1)return!1;for(let s=i;s<this.popupList.length;s++){const a=this.popupList[s];if(B8(a.element,n))return!0}return this.isElementWithinCustomPopup(n.target)}isElementWithinCustomPopup(e){const t=lo(this.beans);for(;e&&e!==t.body;){if(e.classList.contains("ag-custom-component-popup")||e.parentElement===null)return!0;e=e.parentElement}return!1}getWrapper(e){for(;!e.classList.contains("ag-popup")&&e.parentElement;)e=e.parentElement;return e.classList.contains("ag-popup")?e:null}setAlwaysOnTop(e,t){const o=this.getWrapper(e);o&&(o.classList.toggle("ag-always-on-top",!!t),t&&this.bringPopupToFront(o))}bringPopupToFront(e){const t=this.getPopupParent(),o=Array.prototype.slice.call(t.querySelectorAll(".ag-popup")),r=o.length,n=this.getWrapper(e);if(!n||r<=1||!t.contains(e))return;const i=[],s=[];for(const g of o)g!==n&&(g.classList.contains("ag-always-on-top")?s.push(g):i.push(g));const a=[],c=s.length,f=n.classList.contains("ag-always-on-top")||!c?[...i,...s,n]:[...i,n,...s];for(let g=0;g<=r;g++){const m=f[g];if(o[g]===f[g]||m===n)continue;const b=m.querySelectorAll("div");for(const w of b)w.scrollTop!==0&&a.push([w,w.scrollTop]);g===0?t.insertAdjacentElement("afterbegin",m):f[g-1].insertAdjacentElement("afterend",m)}for(;a.length;){const g=a.pop();g[0].scrollTop=g[1]}}handleThemeChange(e){if(e.themeChanged){const t=this.beans.environment;for(const o of this.popupList)t.applyThemeClasses(o.wrapper)}}},KG=class extends uv{constructor(){super({tag:"div",cls:"ag-tooltip"})}init(e){const{value:t}=e,o=this.getGui();o.textContent=Pc(t);const r=e.location.replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase();o.classList.add(`ag-${r}-tooltip`)}},rR=(e,t)=>{if(t!=null&&e?.setPointerCapture)try{return e.setPointerCapture(t),e.hasPointerCapture(t)}catch{}return!1},XG=(e,t)=>{if(typeof PointerEvent>"u"||!(t instanceof PointerEvent))return null;const o=t.pointerId;if(!rR(e,o))return null;const r={eElement:e,pointerId:o,onLost(n){YG(r,n)}};return e.addEventListener("lostpointercapture",r.onLost),r},ZG=e=>{if(!e)return;nR(e);const{eElement:t,pointerId:o}=e;if(t){try{t.releasePointerCapture(o)}catch{}e.eElement=null}},nR=e=>{const{eElement:t,onLost:o}=e;t&&o&&(t.removeEventListener("lostpointercapture",o),e.onLost=null)},YG=(e,t)=>{nR(e);const{eElement:o,pointerId:r}=e;o&&t.pointerId===r&&rR(o,r)},fl,pl,Tv={passive:!0},Bi={passive:!1},Fn=e=>{if(!pl)pl=new WeakSet;else if(pl.has(e))return!1;return pl.add(e),!0},QG=class extends Io{constructor(){super(...arguments),this.beanName="dragSvc",this.dragging=!1,this.drag=null,this.dragSources=[]}get startTarget(){return this.drag?.start.target??null}isPointer(){return!!fl?.has(mn(this.beans))}hasPointerCapture(){const e=this.drag?.pointerCapture;return!!(e&&this.beans.eRootDiv.hasPointerCapture?.(e.pointerId))}destroy(){this.drag&&this.cancelDrag();const e=this.dragSources;for(const t of e)iR(t);e.length=0,super.destroy()}removeDragSource(e){const t=this.dragSources;for(let o=0,r=t.length;o<r;++o){const n=t[o];if(n.params===e){t.splice(o,1),iR(n);break}}}addDragSource(e){if(!this.isAlive())return;const{eElement:t,includeTouch:o}=e,r=[];let n;if(o){const d=t.style;d&&(n=d.touchAction,d.touchAction="none")}const i={handlers:r,params:e,oldTouchAction:n};this.dragSources.push(i),hh(r,[t,"pointerdown",d=>this.onPointerDown(e,d),Bi],[t,"mousedown",d=>this.onMouseDown(e,d)]);const c=this.gos.get("suppressTouch");o&&!c&&hh(r,[t,"touchstart",h=>this.onTouchStart(e,h),Bi])}cancelDrag(e){const t=this.drag;e??(e=t?.eElement),e&&this.eventSvc.dispatchEvent({type:"dragCancelled",target:e}),t?.params.onDragCancel?.(),this.destroyDrag()}shouldPreventMouseEvent(e){const t=e.type;return(t==="mousemove"||t==="pointermove")&&e.cancelable&&Bc(this.beans,e)&&!Mc(Av(e))}initDrag(e,...t){this.drag=e;const o=this.beans,r=a=>this.onScroll(a),n=a=>this.onKeyDown(a),i=mn(o),s=lo(o);hh(e.handlers,[i,"contextmenu",$a],[i,"keydown",n],[s,"scroll",r,{capture:!0}],[s.defaultView||window,"scroll",r],...t)}destroyDrag(){this.dragging=!1;const e=this.drag;if(e){const t=e.rootEl;fl?.get(t)===e&&fl.delete(t),this.drag=null,ZG(e.pointerCapture),Gm(e.handlers)}}onPointerDown(e,t){if(this.isPointer())return;const o=this.beans;if(pl?.has(t))return;const r=t.pointerType;if(r==="touch"&&(o.gos.get("suppressTouch")||!e.includeTouch||(e.stopPropagationForTouch&&t.stopPropagation(),Mc(Av(t))))||!t.isPrimary||r==="mouse"&&t.button!==0)return;this.destroyDrag();const n=mn(o),i=e.eElement,s=t.pointerId,a=new Mv(n,e,t,s);fl??(fl=new WeakMap),fl.set(n,a);const c=g=>{g.pointerId===s&&this.onMouseOrPointerMove(g)},d=g=>{g.pointerId===s&&this.onMouseOrPointerUp(g)},h=g=>{g.pointerId===s&&Fn(g)&&this.cancelDrag()},f=g=>this.draggingPreventDefault(g);this.initDrag(a,[n,"pointerup",d],[n,"pointercancel",h],[n,"pointermove",c,Bi],[n,"touchmove",f,Bi],[i,"mousemove",f,Bi]),e.dragStartPixels===0?this.onMouseOrPointerMove(t):Fn(t)}onTouchStart(e,t){if(this.gos.get("suppressTouch")||!e.includeTouch||!Fn(t)||Mc(Av(t)))return;if(e.stopPropagationForTouch&&t.stopPropagation(),this.isPointer()){this.dragging&&$a(t);return}this.destroyDrag();const r=this.beans,n=mn(r),i=new Mv(n,e,t.touches[0]),s=g=>this.onTouchMove(g),a=g=>this.onTouchUp(g),c=g=>this.onTouchCancel(g),d=g=>this.draggingPreventDefault(g),h=mn(r),f=t.target??e.eElement;this.initDrag(i,[f,"touchmove",s,Tv],[f,"touchend",a,Tv],[f,"touchcancel",c,Tv],[h,"touchmove",d,Bi],[h,"touchend",a,Bi],[h,"touchcancel",c,Bi]),e.dragStartPixels===0&&this.onMove(i.start)}draggingPreventDefault(e){this.dragging&&$a(e)}onMouseDown(e,t){if(t.button!==0||pl?.has(t)||this.isPointer())return;const o=this.beans;this.destroyDrag();const r=new Mv(mn(o),e,t),n=a=>this.onMouseOrPointerMove(a),i=a=>this.onMouseOrPointerUp(a),s=mn(o);this.initDrag(r,[s,"mousemove",n],[s,"mouseup",i]),e.dragStartPixels===0?this.onMouseOrPointerMove(t):Fn(t)}onScroll(e){if(!Fn(e))return;const t=this.drag,o=t?.lastDrag;o&&this.dragging&&t.params?.onDragging?.(o)}onMouseOrPointerMove(e){Fn(e)&&(qc()&&lo(this.beans).getSelection()?.removeAllRanges(),this.shouldPreventMouseEvent(e)&&$a(e),this.onMove(e))}onTouchCancel(e){const t=this.drag;!t||!Fn(e)||Ua(t.start,e.changedTouches)&&this.cancelDrag()}onTouchMove(e){const t=this.drag;if(!t||!Fn(e))return;const o=Ua(t.start,e.touches);o&&(this.onMove(o),this.draggingPreventDefault(e))}onMove(e){const t=this.drag;if(!t)return;t.lastDrag=e;const o=t.params;if(!this.dragging){const r=t.start,i=o.dragStartPixels??4;if(Ak(e,r,i)||(this.dragging=!0,o.capturePointer&&(t.pointerCapture=XG(this.beans.eRootDiv,e)),this.eventSvc.dispatchEvent({type:"dragStarted",target:o.eElement}),o.onDragStart?.(r),this.drag!==t)||(o.onDragging?.(r),this.drag!==t))return}o.onDragging?.(e)}onTouchUp(e){const t=this.drag;t&&Fn(e)&&this.onUp(Ua(t.start,e.changedTouches))}onMouseOrPointerUp(e){Fn(e)&&this.onUp(e)}onUp(e){const t=this.drag;t&&(e||(e=t.lastDrag),e&&this.dragging&&(this.dragging=!1,t.params.onDragStop?.(e),this.eventSvc.dispatchEvent({type:"dragStopped",target:t.params.eElement})),this.destroyDrag())}onKeyDown(e){e.key===ee.ESCAPE&&this.cancelDrag()}},iR=e=>{Gm(e.handlers);const t=e.oldTouchAction;if(t!=null){const o=e.params.eElement.style;o&&(o.touchAction=t)}},Mv=class{constructor(e,t,o,r=null){this.rootEl=e,this.params=t,this.start=o,this.pointerId=r,this.handlers=[],this.lastDrag=null,this.pointerCapture=null,this.eElement=t.eElement}},Av=e=>{const t=e.target;return t instanceof Element?t:null},JG=class extends Io{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.dragImageLastIcon=void 0,this.dragImageLastLabel=void 0,this.dropTargets=[],this.externalDropZoneCount=0,this.lastDropTarget=null}addDragSource(e,t=!1){const o={capturePointer:!0,dragSource:e,eElement:e.eElement,dragStartPixels:e.dragStartPixels,onDragStart:r=>this.onDragStart(e,r),onDragStop:this.onDragStop.bind(this),onDragging:this.onDragging.bind(this),onDragCancel:this.onDragCancel.bind(this),includeTouch:t};this.dragSourceAndParamsList.push(o),this.beans.dragSvc.addDragSource(o)}setDragImageCompIcon(e,t=!1){const o=this.dragImageComp;o&&(t||this.dragImageLastIcon!==e)&&(this.dragImageLastIcon=e,o.setIcon(e,t))}removeDragSource(e){const{dragSourceAndParamsList:t,beans:o}=this;for(let r=0,n=t.length;r<n;r++)if(t[r].dragSource===e){const i=t[r];o.dragSvc?.removeDragSource(i),t.splice(r,1);break}}destroy(){const{dragSourceAndParamsList:e,dropTargets:t,beans:o}=this,r=o.dragSvc;for(const n of e)r?.removeDragSource(n);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 o=e.eElement.getBoundingClientRect();this.dragInitialSourcePointerOffsetX=t.clientX-o.left,this.dragInitialSourcePointerOffsetY=t.clientY-o.top,e.onDragStarted?.(),this.createAndUpdateDragImageComp(e)}onDragStop(e){const{dragSource:t,lastDropTarget:o}=this;if(t?.onDragStopped?.(),o){const r=this.dropTargetEvent(o,e,!1);o.onDragStop?.(r)}this.clearDragAndDropProperties()}onDragCancel(){const{dragSource:e,lastDropTarget:t,lastMouseEvent:o}=this;if(e?.onDragCancelled?.(),t&&o){const r=this.dropTargetEvent(t,o,!1);t.onDragCancel?.(r)}this.clearDragAndDropProperties()}onDragging(e,t=!1){this.positionDragImageComp(e);const o=this.findCurrentDropTarget(e),{lastDropTarget:r,dragSource:n,dragItem:i}=this;let s=!1;if(o!==r){if(s=!0,r){const a=this.dropTargetEvent(r,e,t);r.onDragLeave?.(a)}if(r!==null&&!o?this.handleExit(n,i):r===null&&o&&this.handleEnter(n,i),o){const a=this.dropTargetEvent(o,e,t);o.onDragEnter?.(a)}this.lastDropTarget=o}else if(o){const a=this.dropTargetEvent(o,e,t);o.onDragging?.(a),a?.changed&&(s=!0)}this.lastMouseEvent=e,s&&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(),o=e.getSecondaryContainers?.(),r=o?.length;if(!r)return[[t]];const n=new Array(r+1);n[0]=[t];for(let i=0;i<r;++i)n[i+1]=o[i];return n}isMouseOnDropTarget(e,t){const o=this.getAllContainersFromDropTarget(t);let r=!1;const n=(a,c)=>{for(const d of c){const{width:h,height:f,left:g,right:m,top:b,bottom:w}=d.getBoundingClientRect();if(h===0||f===0)return!1;const y=a.clientX>=g&&a.clientX<m,k=a.clientY>=b&&a.clientY<w;if(!y||!k)return!1}return!0};for(const a of o)if(n(e,a)){r=!0;break}const{eElement:i,type:s}=this.dragSource;return t.targetContainsSource&&!t.getContainer().contains(i)?!1:r&&t.isInterestedIn(s,i)}findCurrentDropTarget(e){const t=[],o=this.dropTargets;for(let s=0,a=o.length;s<a;++s){const c=o[s];this.isMouseOnDropTarget(e,c)&&t.push(c)}const r=t.length;if(r===0)return null;if(r===1)return t[0];const i=mn(this.beans).elementsFromPoint(e.clientX,e.clientY);for(let s=0,a=i.length;s<a;++s){const c=i[s];for(let d=0,h=t.length;d<h;d++){const f=t[d],g=this.getAllContainersFromDropTarget(f);let m=!1;for(let b=0,w=g.length;b<w&&!m;b++){const y=g[b];for(let k=0,C=y.length;k<C;k++)if(y[k]===c){m=!0;break}}if(m)return f}}return null}addDropTarget(e){this.dropTargets.push(e),e.external&&this.externalDropZoneCount++}removeDropTarget(e){const t=e.getContainer(),o=this.dropTargets;let r=0;for(let n=0,i=o.length;n<i;++n){const s=o[n];if(s.getContainer()===t){s.external&&--this.externalDropZoneCount;continue}r!==n&&(o[r]=s),++r}o.length=r}hasExternalDropZones(){return this.externalDropZoneCount>0}findExternalZone(e){const t=this.dropTargets;for(let o=0,r=t.length;o<r;++o){const n=t[o];if(n.external&&n.getContainer()===e)return n}return null}dropTargetEvent(e,t,o){const{dragSource:r,dragItem:n,lastDraggingEvent:i,lastMouseEvent:s,dragInitialSourcePointerOffsetX:a,dragInitialSourcePointerOffsetY:c}=this,d=e.getContainer(),h=d.getBoundingClientRect(),{clientX:f,clientY:g}=t,m=f-(s?.clientX||0),b=g-(s?.clientY||0),w=this.createEvent({event:t,x:f-h.left,y:g-h.top,vDirection:b>0?"down":b<0?"up":null,hDirection:m<0?"left":m>0?"right":null,initialSourcePointerOffsetX:a,initialSourcePointerOffsetY:c,dragSource:r,fromNudge:o,dragItem:n,dropZoneTarget:d,dropTarget:i?.dropTarget??null,changed:!!i?.changed});return this.lastDraggingEvent=w,w}positionDragImageComp(e){const t=this.dragImageComp?.getGui();t&&H8(t,e,this.beans)}removeDragImageComp(e){this.dragImageComp===e&&(this.dragImageComp=null),e&&(e.getGui()?.remove(),this.destroyBean(e))}createAndUpdateDragImageComp(e){const t=this.createDragImageComp(e)??null;this.dragImageCompPromise=t,t?.then(o=>{if(t!==this.dragImageCompPromise||!this.lastMouseEvent||!this.isAlive()){this.destroyBean(o);return}this.dragImageCompPromise=null,this.dragImageLastIcon=void 0,this.dragImageLastLabel=void 0;const r=this.dragImageComp;r!==o&&(this.dragImageComp=o,this.removeDragImageComp(r)),o&&(this.appendDragImageComp(o),this.updateDragImageComp())})}appendDragImageComp(e){const t=e.getGui(),o=t.style;o.position="absolute",o.zIndex="9999",this.beans.dragSvc?.hasPointerCapture()&&(o.pointerEvents="none"),this.gos.setInstanceDomData(t),this.beans.environment.applyThemeClasses(t),o.top="20px",o.left="20px";const r=Am(this.beans);r?r.appendChild(t):this.warnNoBody()}updateDragImageComp(){const{dragImageComp:e,dragSource:t,lastDropTarget:o,lastDraggingEvent:r,dragImageLastLabel:n}=this;if(!e)return;this.setDragImageCompIcon(o?.getIconName?.(r)??null);let i=t?.dragItemName;typeof i=="function"&&(i=i(r)),i||(i=""),n!==i&&(this.dragImageLastLabel=i,e.setLabel(i))}},ej=class extends JG{createEvent(e){return Ze(this.gos,e)}createDragImageComp(e){const{gos:t,beans:o}=this;return b9(o.userCompFactory,Ze(t,{dragSource:e}))?.newAgStackInstance()}handleEnter(e,t){e?.onGridEnter?.(t)}handleExit(e,t){e?.onGridExit?.(t)}warnNoBody(){he(54)}isDropZoneWithinThisGrid(e){return this.beans.ctrlsSvc.getGridBodyCtrl().eGridBody.contains(e.dropZoneTarget)}registerGridDropTarget(e,t){const o={getContainer:e,isInterestedIn:r=>r===1||r===0,getIconName:()=>"notAllowed"};this.addDropTarget(o),t.addDestroyFunc(()=>this.removeDropTarget(o))}};function sR(e,t){return e+"_"+t}function $t(e){return e instanceof Uc}var Uc=class extends ue{constructor(e,t,o,r){super(),this.providedColumnGroup=e,this.groupId=t,this.partId=o,this.pinned=r,this.isColumn=!1,this.displayedChildren=[],this.autoHeaderHeight=null,this.parent=null,this.colIdSanitised=Dc(this.getUniqueId())}reset(){this.parent=null,this.children=null,this.displayedChildren=null}getParent(){return this.parent}getUniqueId(){return sR(this.groupId,this.partId)}isEmptyGroup(){return this.displayedChildren.length===0}isMoving(){const e=this.getProvidedColumnGroup().getLeafColumns();return!e||e.length===0?!1:e.every(t=>t.isMoving())}checkLeft(){for(const e of this.displayedChildren)$t(e)&&e.checkLeft();if(this.displayedChildren.length>0)if(this.gos.get("enableRtl")){const t=vt(this.displayedChildren).getLeft();this.setLeft(t)}else{const e=this.displayedChildren[0].getLeft();this.setLeft(e)}else this.setLeft(null)}getLeft(){return this.left}getOldLeft(){return this.oldLeft}setLeft(e){this.oldLeft=this.left,this.left!==e&&(this.left=e,this.dispatchLocalEvent({type:"leftChanged"}))}getPinned(){return this.pinned}getGroupId(){return this.groupId}getPartId(){return this.partId}getActualWidth(){let e=0;for(const t of this.displayedChildren??[])e+=t.getActualWidth();return e}isResizable(){if(!this.displayedChildren)return!1;let e=!1;for(const t of this.displayedChildren)t.isResizable()&&(e=!0);return e}getMinWidth(){let e=0;for(const t of this.displayedChildren)e+=t.getMinWidth();return e}addChild(e){this.children||(this.children=[]),this.children.push(e)}getDisplayedChildren(){return this.displayedChildren}getLeafColumns(){const e=[];return this.addLeafColumns(e),e}getDisplayedLeafColumns(){const e=[];return this.addDisplayedLeafColumns(e),e}getDefinition(){return this.providedColumnGroup.getColGroupDef()}getColGroupDef(){return this.providedColumnGroup.getColGroupDef()}isPadding(){return this.providedColumnGroup.isPadding()}isExpandable(){return this.providedColumnGroup.isExpandable()}isExpanded(){return this.providedColumnGroup.isExpanded()}setExpanded(e){this.providedColumnGroup.setExpanded(e)}isAutoHeaderHeight(){return!!this.getColGroupDef()?.autoHeaderHeight}getAutoHeaderHeight(){return this.autoHeaderHeight}setAutoHeaderHeight(e){const t=e!==this.autoHeaderHeight;return this.autoHeaderHeight=e,t}addDisplayedLeafColumns(e){for(const t of this.displayedChildren??[])Ti(t)?e.push(t):$t(t)&&t.addDisplayedLeafColumns(e)}addLeafColumns(e){for(const t of this.children??[])Ti(t)?e.push(t):$t(t)&&t.addLeafColumns(e)}getChildren(){return this.children}getColumnGroupShow(){return this.providedColumnGroup.getColumnGroupShow()}getProvidedColumnGroup(){return this.providedColumnGroup}getPaddingLevel(){const e=this.getParent();return!this.isPadding()||!e?.isPadding()?0:1+e.getPaddingLevel()}calculateDisplayedColumns(){this.displayedChildren=[];let e=this;for(;e?.isPadding();)e=e.getParent();if(!(e?e.getProvidedColumnGroup().isExpandable():!1)){this.displayedChildren=this.children,this.dispatchLocalEvent({type:"displayedChildrenChanged"});return}for(const o of this.children??[]){if($t(o)&&!o.displayedChildren?.length)continue;switch(o.getColumnGroupShow()){case"open":e.getProvidedColumnGroup().isExpanded()&&this.displayedChildren.push(o);break;case"closed":e.getProvidedColumnGroup().isExpanded()||this.displayedChildren.push(o);break;default:this.displayedChildren.push(o);break}}this.dispatchLocalEvent({type:"displayedChildrenChanged"})}},aR="row-group-",tj="t-",oj="b-",rj=0,Iv=class{constructor(e){this.id=void 0,this.destroyed=!1,this._groupData=void 0,this.master=!1,this.detail=void 0,this.rowIndex=null,this.field=null,this.rowGroupColumn=null,this.key=null,this.sourceRowIndex=-1,this._leafs=void 0,this.childrenMapped=null,this.treeParent=null,this.treeNodeFlags=0,this.displayed=!1,this.rowTop=null,this.oldRowTop=null,this.selectable=!0,this.__objectId=rj++,this.alreadyRendered=!1,this.formulaRowIndex=null,this.hovered=!1,this.__selected=!1,this.beans=e}get groupData(){const e=this._groupData;return e!==void 0?e:this.footer?this.sibling?.groupData:this.beans.groupStage?.loadGroupData(this)??null}set groupData(e){this._groupData=e}get allLeafChildren(){const e=this._leafs;return e===void 0?this.beans.groupStage?.loadLeafs?.(this)??null:e}set allLeafChildren(e){this._leafs=e}setData(e){this.setDataCommon(e,!1)}updateData(e){this.setDataCommon(e,!0)}setDataCommon(e,t){const{valueCache:o,eventSvc:r}=this.beans,n=this.data;this.data=e,o?.onDataChanged(),this.updateDataOnDetailNode(),this.resetQuickFilterAggregateText();const i=this.createDataChangedEvent(e,n,t);if(this.__localEventService?.dispatchEvent(i),this.sibling){this.sibling.data=e;const a=this.sibling.createDataChangedEvent(e,n,t);this.sibling.__localEventService?.dispatchEvent(a)}r.dispatchEvent({type:"rowNodeDataChanged",node:this});const s=this.pinnedSibling;s&&(s.data=e,s.__localEventService?.dispatchEvent(s.createDataChangedEvent(e,n,t)),r.dispatchEvent({type:"rowNodeDataChanged",node:s}))}updateDataOnDetailNode(){const e=this.detailNode;e&&(e.data=this.data)}createDataChangedEvent(e,t,o){return{type:"dataChanged",node:this,oldData:t,newData:e,update:o}}getRowIndexString(){return this.rowIndex==null?(Ft(13),null):this.rowPinned==="top"?tj+this.rowIndex:this.rowPinned==="bottom"?oj+this.rowIndex:this.rowIndex.toString()}setDataAndId(e,t){const{selectionSvc:o}=this.beans,r=o?.createDaemonNode?.(this),n=this.data;this.data=e,this.updateDataOnDetailNode(),this.setId(t),o&&(o.updateRowSelectable(this),o.syncInRowNode(this,r));const i=this.createDataChangedEvent(e,n,!1);this.__localEventService?.dispatchEvent(i)}setId(e){const t=tv(this.beans.gos);if(t)if(this.data){const o=this.parent?.getRoute()??[];this.id=t({data:this.data,parentKeys:o.length>0?o:void 0,level:this.level,rowPinned:this.rowPinned}),this.id.startsWith(aR)&&Ft(14,{groupPrefix:aR})}else this.id=void 0;else this.id=e}setRowTop(e){if(this.oldRowTop=this.rowTop,this.rowTop===e)return;this.rowTop=e,this.dispatchRowEvent("topChanged");const t=e!==null;this.displayed!==t&&(this.displayed=t,this.dispatchRowEvent("displayedChanged"))}clearRowTopAndRowIndex(){this.oldRowTop=null,this.setRowTop(null),this.setRowIndex(null)}setHovered(e){this.hovered=e}isHovered(){return this.hovered}setRowHeight(e,t=!1){this.rowHeight=e,this.rowHeightEstimated=t,this.dispatchRowEvent("heightChanged")}setExpanded(e,t,o){this.beans.expansionSvc?.setExpanded(this,e,t,o)}setDataValue(e,t,o){const{colModel:r,valueSvc:n,gos:i,editSvc:s}=this.beans,a=typeof e!="string"?e:r.getCol(e)??r.getColDefCol(e);if(!a)return!1;const c=n.getValueForDisplay({column:a,node:this,source:"api"}).value;if(i.get("readOnlyEdit")){const{beans:{eventSvc:h},data:f,rowIndex:g,rowPinned:m}=this;return h.dispatchEvent({type:"cellEditRequest",event:null,rowIndex:g,rowPinned:m,column:a,colDef:a.colDef,data:f,node:this,oldValue:c,newValue:t,value:t,source:o}),!1}if(s&&!s.committing){const h=s.setDataValue({rowNode:this,column:a},t,o);if(h!=null)return h}const d=n.setValue(this,a,t,o);return this.dispatchCellChangedEvent(a,t,c),d&&this.pinnedSibling?.dispatchCellChangedEvent(a,t,c),d}updateHasChildren(){let e=this.group&&!this.footer||!!this.childrenAfterGroup?.length;const{rowChildrenSvc:t}=this.beans;t&&(e=t.getHasChildrenValue(this)),e!==this.__hasChildren&&(this.__hasChildren=!!e,this.dispatchRowEvent("hasChildrenChanged"))}hasChildren(){return this.__hasChildren==null&&this.updateHasChildren(),this.__hasChildren}dispatchCellChangedEvent(e,t,o){const r={type:"cellChanged",node:this,column:e,newValue:t,oldValue:o};this.__localEventService?.dispatchEvent(r)}resetQuickFilterAggregateText(){this.quickFilterAggregateText=null}isExpandable(){return this.beans.expansionSvc?.isExpandable(this)??!1}isSelected(){if(this.footer)return this.sibling.isSelected();const e=this.rowPinned&&this.pinnedSibling;return e?e.isSelected():this.__selected}depthFirstSearch(e){const t=this.childrenAfterGroup;if(t)for(let o=0,r=t.length;o<r;++o)t[o].depthFirstSearch(e);e(this)}dispatchRowEvent(e){this.__localEventService?.dispatchEvent({type:e,node:this})}setSelected(e,t=!1,o="api"){this.beans.selectionSvc?.setNodesSelected({nodes:[this],newValue:e,clearSelection:t,source:o})}isRowPinned(){return!!this.rowPinned}__addEventListener(e,t){(this.__localEventService??(this.__localEventService=new Ms)).addEventListener(e,t)}__removeEventListener(e,t){this.removeLocalListener(e,t)}addEventListener(e,t){this.beans.validation?.checkRowEvents(e);const o=this.__localEventService??(this.__localEventService=new Ms);this.frameworkEventListenerService=this.beans.frameworkOverrides.createLocalEventListenerWrapper?.(this.frameworkEventListenerService,o);const r=this.frameworkEventListenerService?.wrap(e,t)??t;o.addEventListener(e,r)}removeEventListener(e,t){const o=this.frameworkEventListenerService?.unwrap(e,t)??t;this.removeLocalListener(e,o)}removeLocalListener(e,t){const o=this.__localEventService;o&&(o.removeEventListener(e,t),o.noRegisteredListenersExist()&&(this.__localEventService=null))}isFullWidthCell(){if(he(61),this.detail)return!0;const e=this.beans.gos.getCallback("isFullWidthRow");return e?e({rowNode:this}):!1}getRoute(){if(this.level===-1)return[];if(this.key==null)return;const e=[];let t=this;for(;t?.key!=null;)e.push(t.key),t=t.parent;return e.reverse()}setRowIndex(e){this.rowIndex!==e&&(this.rowIndex=e,this.dispatchRowEvent("rowIndexChanged"))}setAllChildrenCount(e){this.allChildrenCount!==e&&(this.allChildrenCount=e,this.dispatchRowEvent("allChildrenCountChanged"))}setUiLevel(e){this.uiLevel!==e&&(this.uiLevel=e,this.dispatchRowEvent("uiLevelChanged"))}getFirstChild(){const e=this.childStore;return e?e.getFirstNode():this.childrenAfterSort?.[0]??null}_destroy(e){if(this.destroyed)return!1;if(this.destroyed=!0,e?this.clearRowTopAndRowIndex():(this.setRowTop(null),this.setRowIndex(null)),!this.footer){const t=this.detailNode;t&&t._destroy(e);const o=this.sibling;o&&o._destroy(e)}return!0}};function nj(e,t,o){return Ze(t,{type:o,node:e,data:e.data,rowIndex:e.rowIndex,rowPinned:e.rowPinned})}var lR={agSetColumnFilter:"agSetColumnFilterHandler",agMultiColumnFilter:"agMultiColumnFilterHandler",agGroupColumnFilter:"agGroupColumnFilterHandler",agNumberColumnFilter:"agNumberColumnFilterHandler",agDateColumnFilter:"agDateColumnFilterHandler",agTextColumnFilter:"agTextColumnFilterHandler"},ij=new Set(Object.values(lR));function Oi(e,t){const o=e.filterUi;if(!o)return null;if(o.created)return o.promise;if(t)return null;const r=o.create(o.refreshed),n=o;return n.created=!0,n.promise=r,r}function sj(e,t,o,r,n,i,s){return t.refresh?.({...o,model:r,source:i,additionalEventAttributes:s}),e().then(a=>{if(a){const{filter:c,filterParams:d}=a;cR(c,d,r,n,i,s)}})}function cR(e,t,o,r,n,i){e?.refresh?.({...t,model:o,state:r,source:n,additionalEventAttributes:i})}function uR(e,t,o,r){const n=e();n?.created&&n.promise.then(i=>{const s=t();cR(i,n.filterParams,s,o()??{model:s},"ui",r)})}function dR(e){let t,o=!1,r;const{action:n,filterParams:i,getFilterUi:s,getModel:a,getState:c,updateState:d,updateModel:h,processModelToApply:f}=e;switch(n){case"apply":{const g=c();r=g?.model??null,f&&(r=f(r)),t={state:g?.state,model:r},o=!0;break}case"clear":{t={model:null},i?.buttons?.includes("apply")||(o=!0,r=null);break}case"reset":{t={model:null},o=!0,r=null;break}case"cancel":{t={model:a()};break}}d(t),o?h(r):uR(s,a,c,{fromAction:n})}function to(e,t){return e[t]??null}function Ni(e){return Di(e)}function aj(e){return{tag:"div",cls:e}}var lj=class extends Ro{constructor(e){const{className:t="ag-filter-apply-panel"}=e??{};super(aj(t)),this.listeners=[],this.validationMessage=null,this.className=t}updateButtons(e,t){const o=this.buttons;if(this.buttons=e,o===e)return;const r=this.getGui();Kn(r);let n;this.destroyListeners();const i=document.createDocumentFragment(),s=this.className,a=({type:d,label:h})=>{const f=k=>{this.dispatchLocalEvent({type:d,event:k})};["apply","clear","reset","cancel"].includes(d)||he(75);const g=d==="apply",b=Ni({tag:"button",attrs:{type:g&&t?"submit":"button"},ref:`${d}FilterButton`,cls:`ag-button ag-standard-button ${s}-button${g?" "+s+"-apply-button":""}`,children:h});this.activateTabIndex([b]),g&&(n=b);const w=k=>{k.key===ee.ENTER&&(k.preventDefault(),f(k))},y=this.listeners;b.addEventListener("click",f),y.push(()=>b.removeEventListener("click",f)),b.addEventListener("keydown",w),y.push(()=>b.removeEventListener("keydown",w)),i.append(b)};for(const d of e)a(d);this.eApply=n;const c=this.validationTooltipFeature;n&&!c?this.validationTooltipFeature=this.createOptionalManagedBean(this.beans.registry.createDynamicBean("tooltipFeature",!1,{getGui:()=>this.eApply,getLocation:()=>"advancedFilter",getTooltipShowDelayOverride:()=>1e3})):!n&&c&&(this.validationTooltipFeature=this.destroyBean(c)),r.append(i)}getApplyButton(){return this.eApply}updateValidity(e,t=null){const o=this.eApply;o&&(Ac(o,!e),this.validationMessage=t,this.validationTooltipFeature?.setTooltipAndRefresh(this.validationMessage))}destroyListeners(){for(const e of this.listeners)e();this.listeners=[]}destroy(){this.destroyListeners(),super.destroy()}},cj={applyFilter:"Apply",clearFilter:"Clear",resetFilter:"Reset",cancelFilter:"Cancel",textFilter:"Text Filter",numberFilter:"Number Filter",dateFilter:"Date Filter",setFilter:"Set Filter",filterOoo:"Filter...",empty:"Choose one",equals:"Equals",notEqual:"Does not equal",lessThan:"Less than",greaterThan:"Greater than",inRange:"Between",inRangeStart:"From",inRangeEnd:"To",lessThanOrEqual:"Less than or equal to",greaterThanOrEqual:"Greater than or equal to",contains:"Contains",notContains:"Does not contain",startsWith:"Begins with",endsWith:"Ends with",blank:"Blank",notBlank:"Not blank",before:"Before",after:"After",andCondition:"AND",orCondition:"OR",dateFormatOoo:"yyyy-mm-dd",filterSummaryInactive:"is (All)",filterSummaryContains:"contains",filterSummaryNotContains:"does not contain",filterSummaryTextEquals:"equals",filterSummaryTextNotEqual:"does not equal",filterSummaryStartsWith:"begins with",filterSummaryEndsWith:"ends with",filterSummaryBlank:"is blank",filterSummaryNotBlank:"is not blank",filterSummaryEquals:"=",filterSummaryNotEqual:"!=",filterSummaryGreaterThan:">",filterSummaryGreaterThanOrEqual:">=",filterSummaryLessThan:"<",filterSummaryLessThanOrEqual:"<=",filterSummaryInRange:"between",filterSummaryInRangeValues:e=>`(${e[0]}, ${e[1]})`,filterSummaryTextQuote:e=>`"${e[0]}"`,minDateValidation:e=>`Date must be after ${e[0]}`,maxDateValidation:e=>`Date must be before ${e[0]}`,strictMinValueValidation:e=>`Must be greater than ${e[0]}`,strictMaxValueValidation:e=>`Must be less than ${e[0]}`};function Rn(e,t,o){return G8(e,cj,t,o)}function hR(e,t){const{debounceMs:o}=e;return Hh(e)?(o!=null&&he(71),0):o??t}function Hh(e){return(e.buttons?.indexOf("apply")??-1)>=0}function fR(e,t,o,r){let n=Rn(e,o);if(typeof t=="function"){const i=Rn(e,r);n=t({filterOptionKey:r,filterOption:i,placeholder:n})}else typeof t=="string"&&(n=t);return n}var uj=class extends Ro{constructor(e,t,o,r,n,i){super(),this.column=e,this.wrapper=t,this.eventParent=o,this.updateModel=r,this.isGlobalButtons=n,this.enableGlobalButtonCheck=i,this.hidePopup=null,this.applyActive=!1}postConstruct(){const{comp:e,params:t}=this.wrapper,o=t,r=o.useForm,n=r?"form":"div";this.setTemplate({tag:n,cls:"ag-filter-wrapper"}),r&&this.addManagedElementListeners(this.getGui(),{submit:i=>{i?.preventDefault()},keydown:this.handleKeyDown.bind(this)}),this.appendChild(e.getGui()),this.params=o,this.resetButtonsPanel(o),this.addManagedListeners(this.eventParent,{filterParamsChanged:({column:i,params:s})=>{i===this.column&&this.resetButtonsPanel(s,this.params)},filterStateChanged:({column:i,state:s})=>{i===this.column&&this.eButtons?.updateValidity(s.valid!==!1)},filterAction:({column:i,action:s,event:a})=>{i===this.column&&this.afterAction(s,a)},...this.enableGlobalButtonCheck?{filterGlobalButtons:({isGlobal:i})=>{if(i!==this.isGlobalButtons){this.isGlobalButtons=i;const s=this.params;this.resetButtonsPanel(s,s,!0)}}}:void 0})}afterGuiAttached(e){e&&(this.hidePopup=e.hidePopup)}resetButtonsPanel(e,t,o){const{buttons:r,readOnly:n}=t??{},{buttons:i,readOnly:s,useForm:a}=e;if(!o&&n===s&&pk(r,i))return;const c=i&&i.length>0&&!e.readOnly&&!this.isGlobalButtons;let d=this.eButtons;if(c){const h=i.map(f=>{const g=`${f}Filter`;return{type:f,label:Rn(this,g)}});if(this.applyActive=Hh(this.params),!d){d=this.createBean(new lj),this.appendChild(d.getGui());const f=this.column,g=m=>({event:b})=>{this.updateModel(f,m,{fromButtons:!0}),this.afterAction(m,b)};d?.addManagedListeners(d,{apply:g("apply"),clear:g("clear"),reset:g("reset"),cancel:g("cancel")}),this.eButtons=d}d.updateButtons(h,a)}else this.applyActive=!1,d&&(qa(d.getGui()),this.eButtons=this.destroyBean(d))}close(e){const t=this.hidePopup;if(!t)return;const o=e,r=o?.key;let n;(r===ee.ENTER||r===ee.SPACE)&&(n={keyboardEvent:o}),t(n),this.hidePopup=null}afterAction(e,t){const{params:o,applyActive:r}=this,n=o?.closeOnApply;switch(e){case"apply":{t?.preventDefault(),n&&r&&this.close(t);break}case"reset":{n&&r&&this.close();break}case"cancel":{n&&this.close(t);break}}}handleKeyDown(e){!e.defaultPrevented&&e.key===ee.ENTER&&this.applyActive&&(this.updateModel(this.column,"apply",{fromButtons:!0}),this.afterAction("apply",e))}destroy(){this.hidePopup=null,this.eButtons=this.destroyBean(this.eButtons)}},dj={tag:"div",cls:"ag-filter"},hj=class extends Ro{constructor(e,t,o){super(dj),this.column=e,this.source=t,this.enableGlobalButtonCheck=o,this.wrapper=null}postConstruct(){this.beans.colFilter?.activeFilterComps.add(this),this.createFilter(!0),this.addManagedEventListeners({filterDestroyed:this.onFilterDestroyed.bind(this)})}hasFilter(){return this.wrapper!=null}getFilter(){return this.wrapper?.then(e=>e.comp)??null}afterInit(){return this.wrapper?.then(()=>{})??Ye.resolve()}afterGuiAttached(e){this.afterGuiAttachedParams=e,this.wrapper?.then(t=>{this.comp?.afterGuiAttached(e),t?.comp?.afterGuiAttached?.(e)})}afterGuiDetached(){this.wrapper?.then(e=>{e?.comp?.afterGuiDetached?.()})}createFilter(e){const{column:t,source:o,beans:{colFilter:r}}=this,n=r.getFilterUiForDisplay(t)??null;this.wrapper=n,n?.then(i=>{if(!i)return;const{isHandler:s,comp:a}=i;let c;if(s){const d=!!this.enableGlobalButtonCheck,h=this.createBean(new uj(t,i,r,r.updateModel.bind(r),d&&r.isGlobalButtons,d));this.comp=h,c=h.getGui()}else c=a.getGui(),Ee(c)||he(69,{guiFromFilter:c});this.appendChild(c),e?this.eventSvc.dispatchEvent({type:"filterOpened",column:t,source:o,eGui:this.getGui()}):a.afterGuiAttached?.(this.afterGuiAttachedParams)})}onFilterDestroyed(e){const{source:t,column:o}=e;(t==="api"||t==="paramsUpdated")&&o.getId()===this.column.getId()&&this.beans.colModel.getColDefCol(this.column)&&(Kn(this.getGui()),this.comp=this.destroyBean(this.comp),this.createFilter())}destroy(){this.beans.colFilter?.activeFilterComps.delete(this),this.eventSvc.dispatchEvent({type:"filterClosed",column:this.column}),this.wrapper=null,this.comp=this.destroyBean(this.comp),this.afterGuiAttachedParams=void 0,super.destroy()}},pR={january:"January",february:"February",march:"March",april:"April",may:"May",june:"June",july:"July",august:"August",september:"September",october:"October",november:"November",december:"December"},gR=["january","february","march","april","may","june","july","august","september","october","november","december"];function fj(e,t){return e==null?-1:t==null?1:Number.parseFloat(e)-Number.parseFloat(t)}function mR(e){return e instanceof Date&&!isNaN(e.getTime())}var Bv={number:()=>{},boolean:()=>({maxNumConditions:1,debounceMs:0,filterOptions:["empty",{displayKey:"true",displayName:"True",predicate:(e,t)=>t,numberOfInputs:0},{displayKey:"false",displayName:"False",predicate:(e,t)=>t===!1,numberOfInputs:0}]}),date:()=>({isValidDate:mR}),dateString:({dataTypeDefinition:e})=>({comparator:(t,o)=>{const r=e.dateParser(o);return o==null||r<t?-1:r>t?1:0},isValidDate:t=>typeof t=="string"&&mR(e.dateParser(t))}),dateTime:e=>Bv.date(e),dateTimeString:e=>Bv.dateString(e),object:()=>{},text:()=>{}},Ov={number:()=>({comparator:fj}),boolean:({t:e})=>({valueFormatter:t=>Ee(t.value)?e(String(t.value),t.value?"True":"False"):e("blanks","(Blanks)")}),date:({formatValue:e,t})=>({valueFormatter:o=>{const r=e(o);return Ee(r)?r:t("blanks","(Blanks)")},treeList:!0,treeListFormatter:(o,r)=>{if(o==="NaN")return t("invalidDate","Invalid Date");if(r===1&&o!=null){const n=gR[Number(o)-1];return t(n,pR[n])}return o??t("blanks","(Blanks)")},treeListPathGetter:o=>Ih(o,!1)}),dateString:({formatValue:e,dataTypeDefinition:t,t:o})=>({valueFormatter:r=>{const n=e(r);return Ee(n)?n:o("blanks","(Blanks)")},treeList:!0,treeListPathGetter:r=>Ih(t.dateParser(r??void 0),!1),treeListFormatter:(r,n)=>{if(n===1&&r!=null){const i=gR[Number(r)-1];return o(i,pR[i])}return r??o("blanks","(Blanks)")}}),dateTime:e=>{const t=Ov.date(e);return t.treeListPathGetter=Ih,t},dateTimeString(e){const t=e.dataTypeDefinition.dateParser,o=Ov.dateString(e);return o.treeListPathGetter=r=>Ih(t(r??void 0)),o},object:({formatValue:e,t})=>({valueFormatter:o=>{const r=e(o);return Ee(r)?r:t("blanks","(Blanks)")}}),text:()=>{}};function pj(e,t,o,r,n,i,s){let a=t,c=o;const d=e==="agSetColumnFilter";!c&&r.baseDataType==="object"&&!d&&(c=({column:m,node:b})=>n({column:m,node:b,value:i.valueSvc.getValue(m,b)}));const f=(d?Ov:Bv)[r.baseDataType],g=f({dataTypeDefinition:r,formatValue:n,t:s});return a=typeof t=="object"?{...g,...t}:g,{filterParams:a,filterValueGetter:c}}var gj={boolean:"agTextColumnFilter",date:"agDateColumnFilter",dateString:"agDateColumnFilter",dateTime:"agDateColumnFilter",dateTimeString:"agDateColumnFilter",number:"agNumberColumnFilter",object:"agTextColumnFilter",text:"agTextColumnFilter"},mj={boolean:"agTextColumnFloatingFilter",date:"agDateColumnFloatingFilter",dateString:"agDateColumnFloatingFilter",dateTime:"agDateColumnFloatingFilter",dateTimeString:"agDateColumnFloatingFilter",number:"agNumberColumnFloatingFilter",object:"agTextColumnFloatingFilter",text:"agTextColumnFloatingFilter"};function vj(e,t=!1){return(t?mj:gj)[e??"text"]}var bj=class extends q9{},vR="__ag_Grid_Stop_Propagation";function js(e){e[vR]=!0}function oi(e){return e[vR]===!0}var bR={isStopPropagation:oi,stopPropagation:js},$c=class extends OF{constructor(e,t){super(e,bR,t)}},wj=class extends Ro{constructor(e,t){super(),this.filterNameKey=e,this.cssIdentifier=t,this.applyActive=!1,this.debouncePending=!1,this.defaultDebounceMs=0}postConstruct(){const e={tag:"div",cls:`ag-filter-body-wrapper ag-${this.cssIdentifier}-body-wrapper`,children:[this.createBodyTemplate()]};this.setTemplate(e,this.getAgComponents()),this.createManagedBean(new $c(this.getFocusableElement(),{handleKeyDown:this.handleKeyDown.bind(this)})),this.positionableFeature=this.createBean(new bj(this.getPositionableElement(),{forcePopupParentAsOffsetParent:!0}))}handleKeyDown(e){}init(e){const t=e;this.setParams(t),this.setModelIntoUi(t.state.model,!0).then(()=>this.updateUiVisibility())}areStatesEqual(e,t){return e===t}refresh(e){const t=e,o=this.params;this.params=t;const{source:r,state:n,additionalEventAttributes:i}=t;r==="colDef"&&this.updateParams(t,o);const s=this.state;this.state=n;const a=i?.fromAction;return(a&&a!=="apply"||n.model!==s.model||!this.areStatesEqual(n.state,s.state))&&this.setModelIntoUi(n.model),!0}setParams(e){this.params=e,this.state=e.state,this.commonUpdateParams(e)}updateParams(e,t){this.commonUpdateParams(e,t)}commonUpdateParams(e,t){this.applyActive=Hh(e),this.setupApplyDebounced()}doesFilterPass(e){he(283);const{getHandler:t,model:o,column:r}=this.params;return t().doesFilterPass({...e,model:o,handlerParams:this.beans.colFilter.getHandlerParams(r)})}getFilterTitle(){return this.translate(this.filterNameKey)}isFilterActive(){return he(284),this.params.model!=null}setupApplyDebounced(){const e=hR(this.params,this.defaultDebounceMs),t=Qn(this,this.checkApplyDebounce.bind(this),e);this.applyDebounced=()=>{this.debouncePending=!0,t()}}checkApplyDebounce(){this.debouncePending&&(this.debouncePending=!1,this.doApplyModel())}getModel(){return he(285),this.params.model}setModel(e){he(286);const{beans:t,params:o}=this;return t.colFilter.setModelForColumnLegacy(o.column,e)}applyModel(e="api"){return this.doApplyModel()}canApply(e){return!0}doApplyModel(e){const{params:t,state:{valid:o=!0,model:r}}=this;if(!o)return!1;const n=!this.areModelsEqual(t.model,r);return n&&t.onAction("apply",e),n}onNewRowsLoaded(){}onUiChanged(e,t=!1){this.updateUiVisibility();const o=this.getModelFromUi(),r={model:o,state:this.getState(),valid:this.canApply(o)};this.state=r;const{params:n,gos:i,eventSvc:s,applyActive:a}=this;n.onStateChange(r),n.onUiChange(this.getUiChangeEventParams()),i.get("enableFilterHandlers")||s.dispatchEvent({type:"filterModified",column:n.column,filterInstance:this}),r.valid&&(e??(e=a?void 0:"debounce"),e==="immediately"?this.doApplyModel({afterFloatingFilter:t,afterDataChange:!1}):e==="debounce"&&this.applyDebounced())}getState(){}getUiChangeEventParams(){}afterGuiAttached(e){this.lastContainerType=e?.container,this.refreshFilterResizer(e?.container)}refreshFilterResizer(e){const{positionableFeature:t,gos:o}=this;if(!t)return;const r=e==="floatingFilter"||e==="columnFilter";r?(t.restoreLastSize(),t.setResizable(o.get("enableRtl")?{bottom:!0,bottomLeft:!0,left:!0}:{bottom:!0,bottomRight:!0,right:!0})):(t.removeSizeFromEl(),t.setResizable(!1)),t.constrainSizeToAvailableHeight(r)}afterGuiDetached(){this.checkApplyDebounce(),this.positionableFeature?.constrainSizeToAvailableHeight(!1)}destroy(){this.positionableFeature=this.destroyBean(this.positionableFeature),super.destroy()}translate(e,t){return Rn(this,e,t)}getPositionableElement(){return this.getGui()}areModelsEqual(e,t){return e===t||e==null&&t==null?!0:e==null||t==null?!1:this.areNonNullModelsEqual(e,t)}};function wR(e){return!!e.operator}function Cj(e,t,o){if(t==null)return null;let r=null;const{compName:n,jsComp:i,fwComp:s}=_F(e,t);return n?r={agSetColumnFilter:"agSetColumnFloatingFilter",agMultiColumnFilter:"agMultiColumnFloatingFilter",agGroupColumnFilter:"agGroupColumnFloatingFilter",agNumberColumnFilter:"agNumberColumnFloatingFilter",agDateColumnFilter:"agDateColumnFloatingFilter",agTextColumnFilter:"agTextColumnFloatingFilter"}[n]:i==null&&s==null&&t.filter===!0&&(r=o()),r}var Vh={AUTO_HEIGHT:"ag-layout-auto-height",NORMAL:"ag-layout-normal",PRINT:"ag-layout-print"},Nv=class extends ue{constructor(e){super(),this.view=e}postConstruct(){this.addManagedPropertyListener("domLayout",this.updateLayoutClasses.bind(this)),this.updateLayoutClasses()}updateLayoutClasses(){const e=this.gos.get("domLayout"),t={autoHeight:e==="autoHeight",normal:e==="normal",print:e==="print"},o=t.autoHeight?Vh.AUTO_HEIGHT:t.print?Vh.PRINT:Vh.NORMAL;this.view.updateLayoutClasses(o,t)}},Li="Viewport",CR="fakeVScrollComp",Lv=["fakeHScrollComp","centerHeader","topCenter","bottomCenter","stickyTopCenter","stickyBottomCenter"],yR=100,zv=150,yj=class extends ue{constructor(e){super(),this.clearRetryListenerFncs=[],this.lastScrollSource=[null,null],this.scrollLeft=-1,this.nextScrollTop=-1,this.scrollTop=-1,this.lastOffsetHeight=-1,this.lastScrollTop=-1,this.lastIsHorizontalScrollShowing=!1,this.scrollTimer=0,this.isScrollActive=!1,this.isVerticalPositionInvalidated=!0,this.isHorizontalPositionInvalidated=!0,this.eBodyViewport=e,this.resetLastHScrollDebounced=Qn(this,()=>this.lastScrollSource[1]=null,zv),this.resetLastVScrollDebounced=Qn(this,()=>this.lastScrollSource[0]=null,zv)}wireBeans(e){this.ctrlsSvc=e.ctrlsSvc,this.animationFrameSvc=e.animationFrameSvc,this.visibleCols=e.visibleCols}destroy(){super.destroy(),this.clearRetryListenerFncs=[],window.clearTimeout(this.scrollTimer)}postConstruct(){this.enableRtl=this.gos.get("enableRtl");const e=this.invalidateVerticalScroll.bind(this),t=this.invalidateHorizontalScroll.bind(this);this.addManagedEventListeners({displayedColumnsWidthChanged:this.onDisplayedColumnsWidthChanged.bind(this),bodyHeightChanged:e,scrollGapChanged:t}),this.addManagedElementListeners(this.eBodyViewport,{scroll:e}),this.ctrlsSvc.whenReady(this,o=>{this.centerRowsCtrl=o.center,this.onDisplayedColumnsWidthChanged(),this.addScrollListener()})}invalidateHorizontalScroll(){this.isHorizontalPositionInvalidated=!0}invalidateVerticalScroll(){this.isVerticalPositionInvalidated=!0}addScrollListener(){this.addHorizontalScrollListeners(),this.addVerticalScrollListeners()}addHorizontalScrollListeners(){this.addManagedElementListeners(this.centerRowsCtrl.eViewport,{scroll:this.onHScroll.bind(this,Li)});for(const e of Lv){const t=this.ctrlsSvc.get(e);this.registerScrollPartner(t,this.onHScroll.bind(this,e))}}addVerticalScrollListeners(){const e=this.ctrlsSvc.get("fakeVScrollComp"),t=this.gos.get("debounceVerticalScrollbar"),o=t?Qn(this,this.onVScroll.bind(this,Li),yR):this.onVScroll.bind(this,Li),r=t?Qn(this,this.onVScroll.bind(this,CR),yR):this.onVScroll.bind(this,CR);this.addManagedElementListeners(this.eBodyViewport,{scroll:o}),this.registerScrollPartner(e,r)}registerScrollPartner(e,t){e.onScrollCallback(t)}onDisplayedColumnsWidthChanged(){this.enableRtl&&this.horizontallyScrollHeaderCenterAndFloatingCenter()}horizontallyScrollHeaderCenterAndFloatingCenter(e){this.centerRowsCtrl!=null&&(e===void 0&&(e=this.centerRowsCtrl.getCenterViewportScrollLeft()),this.setScrollLeftForAllContainersExceptCurrent(Math.abs(e)))}setScrollLeftForAllContainersExceptCurrent(e){for(const t of[...Lv,Li]){if(this.lastScrollSource[1]===t)continue;const o=this.getViewportForSource(t);ch(o,e,this.enableRtl)}}getViewportForSource(e){return e===Li?this.centerRowsCtrl.eViewport:this.ctrlsSvc.get(e).eViewport}isControllingScroll(e,t){return this.lastScrollSource[t]==null?(t===0?this.lastScrollSource[0]=e:this.lastScrollSource[1]=e,!0):this.lastScrollSource[t]===e}onHScroll(e){if(!this.isControllingScroll(e,1))return;const t=this.centerRowsCtrl.eViewport,{scrollLeft:o}=t;if(this.shouldBlockScrollUpdate(1,o,!0))return;const r=lh(this.getViewportForSource(e),this.enableRtl);this.doHorizontalScroll(r),this.resetLastHScrollDebounced()}onVScroll(e){if(!this.isControllingScroll(e,0))return;let t;if(e===Li?t=this.eBodyViewport.scrollTop:t=this.ctrlsSvc.get("fakeVScrollComp").getScrollPosition(),this.shouldBlockScrollUpdate(0,t,!0))return;const{animationFrameSvc:o}=this;o?.setScrollTop(t),this.nextScrollTop=t,e===Li?this.ctrlsSvc.get("fakeVScrollComp").setScrollPosition(t):this.eBodyViewport.scrollTop=t,o?.active?o.schedule():this.scrollGridIfNeeded(!0),this.resetLastVScrollDebounced()}doHorizontalScroll(e){const t=this.ctrlsSvc.get("fakeHScrollComp").getScrollPosition();this.scrollLeft===e&&e===t||(this.scrollLeft=e,this.fireScrollEvent(1),this.horizontallyScrollHeaderCenterAndFloatingCenter(e),this.centerRowsCtrl.onHorizontalViewportChanged(!0))}isScrolling(){return this.isScrollActive}fireScrollEvent(e){const t={type:"bodyScroll",direction:e===1?"horizontal":"vertical",left:this.scrollLeft,top:this.scrollTop};this.isScrollActive=!0,this.eventSvc.dispatchEvent(t),window.clearTimeout(this.scrollTimer),this.scrollTimer=window.setTimeout(()=>{this.scrollTimer=0,this.isScrollActive=!1,this.eventSvc.dispatchEvent({...t,type:"bodyScrollEnd"})},zv)}shouldBlockScrollUpdate(e,t,o=!1){return o&&!Hs()?!1:e===0?this.shouldBlockVerticalScroll(t):this.shouldBlockHorizontalScroll(t)}shouldBlockVerticalScroll(e){const t=Bm(this.eBodyViewport),{scrollHeight:o}=this.eBodyViewport;return e<0||e+t>o}shouldBlockHorizontalScroll(e){const t=this.centerRowsCtrl.getCenterWidth(),{scrollWidth:o}=this.centerRowsCtrl.eViewport;if(this.enableRtl){if(e>0)return!0}else if(e<0)return!0;return Math.abs(e)+t>o}redrawRowsAfterScroll(){this.fireScrollEvent(0)}checkScrollLeft(){const e=this.scrollLeft;let t=!1;for(const o of Lv)if(this.getViewportForSource(o).scrollLeft!==e){t=!0;break}t&&this.onHScroll(Li)}scrollGridIfNeeded(e=!1){const t=this.scrollTop!=this.nextScrollTop;return t&&(this.scrollTop=this.nextScrollTop,e&&this.invalidateVerticalScroll(),this.redrawRowsAfterScroll()),t}setHorizontalScrollPosition(e,t=!1){const r=this.centerRowsCtrl.eViewport.scrollWidth-this.centerRowsCtrl.getCenterWidth();!t&&this.shouldBlockScrollUpdate(1,e)&&(this.enableRtl?e=e>0?0:r:e=Math.min(Math.max(e,0),r)),ch(this.centerRowsCtrl.eViewport,Math.abs(e),this.enableRtl),this.doHorizontalScroll(e)}setVerticalScrollPosition(e){this.invalidateVerticalScroll(),this.eBodyViewport.scrollTop=e}getVScrollPosition(){if(!this.isVerticalPositionInvalidated){const{lastOffsetHeight:o,lastScrollTop:r}=this;return{top:r,bottom:r+o}}this.isVerticalPositionInvalidated=!1;const{scrollTop:e,offsetHeight:t}=this.eBodyViewport;return this.lastScrollTop=e,this.lastOffsetHeight=t,{top:e,bottom:e+t}}getApproximateVScollPosition(){return this.lastScrollTop>=0&&this.lastOffsetHeight>=0?{top:this.scrollTop,bottom:this.scrollTop+this.lastOffsetHeight}:this.getVScrollPosition()}getHScrollPosition(){return this.centerRowsCtrl.getHScrollPosition()}isHorizontalScrollShowing(){return this.isHorizontalPositionInvalidated&&(this.lastIsHorizontalScrollShowing=this.centerRowsCtrl.isHorizontalScrollShowing(),this.isHorizontalPositionInvalidated=!1),this.lastIsHorizontalScrollShowing}scrollHorizontally(e){const t=this.centerRowsCtrl.eViewport.scrollLeft;return this.setHorizontalScrollPosition(t+e),this.centerRowsCtrl.eViewport.scrollLeft-t}scrollToTop(){this.eBodyViewport.scrollTop=0}ensureNodeVisible(e,t=null){const{rowModel:o}=this.beans,r=o.getRowCount();let n=-1;for(let i=0;i<r;i++){const s=o.getRow(i);if(typeof e=="function"){if(s&&e(s)){n=i;break}}else if(e===s||e===s.data){n=i;break}}n>=0&&this.ensureIndexVisible(n,t)}ensureIndexVisible(e,t,o=0){if(po(this.gos,"print"))return;const{rowModel:r}=this.beans,n=r.getRowCount();if(typeof e!="number"||e<0||e>=n){he(88,{index:e});return}this.clearRetryListeners();const{frameworkOverrides:i,pageBounds:s,rowContainerHeight:a,rowRenderer:c}=this.beans;i.wrapIncoming(()=>{const d=this.ctrlsSvc.getGridBodyCtrl(),h=r.getRow(e);let f,g,m=0;this.invalidateVerticalScroll();do{const{stickyTopHeight:b,stickyBottomHeight:w}=d,y=h.rowTop,k=h.rowHeight,C=s.getPixelOffset(),F=h.rowTop-C,E=F+h.rowHeight,_=this.getVScrollPosition(),P=a.divStretchOffset,D=_.top+P,M=_.bottom+P,A=M-D,O=a.getScrollPositionForPixel(F),K=a.getScrollPositionForPixel(E-A),W=Math.min((O+K)/2,F),L=D+b>F,V=M-w<E;let U=null;t==="top"?U=O-b:t==="bottom"?U=K+w:t==="middle"?U=W:L?U=O-b:V&&(K-O>A?U=O-b:U=K+w),U!==null&&(this.setVerticalScrollPosition(U),c.redraw({afterScroll:!0})),f=y!==h.rowTop||k!==h.rowHeight,g=b!==d.stickyTopHeight||w!==d.stickyBottomHeight,m++}while((f||g)&&m<10);if(this.animationFrameSvc?.flushAllFrames(),o<10&&(h?.stub||!this.beans.rowAutoHeight?.areRowsMeasured())){const b=this.getVScrollPosition().top;this.clearRetryListenerFncs=this.addManagedEventListeners({bodyScroll:()=>{const w=this.getVScrollPosition().top;b!==w&&this.clearRetryListeners()},modelUpdated:()=>{this.clearRetryListeners(),!(e>=r.getRowCount())&&this.ensureIndexVisible(e,t,o+1)}})}})}clearRetryListeners(){for(const e of this.clearRetryListenerFncs)e();this.clearRetryListenerFncs=[]}ensureColumnVisible(e,t="auto"){const{colModel:o,frameworkOverrides:r}=this.beans,n=o.getCol(e);if(!n||n.isPinned()||!this.visibleCols.isColDisplayed(n))return;const i=this.getPositionedHorizontalScroll(n,t);r.wrapIncoming(()=>{i!==null&&this.centerRowsCtrl.setCenterViewportScrollLeft(i),this.centerRowsCtrl.onHorizontalViewportChanged(),this.animationFrameSvc?.flushAllFrames()})}getPositionedHorizontalScroll(e,t){const{columnBeforeStart:o,columnAfterEnd:r}=this.isColumnOutsideViewport(e),n=this.centerRowsCtrl.getCenterWidth()<e.getActualWidth(),i=this.centerRowsCtrl.getCenterWidth(),s=this.enableRtl;let a=(s?o:r)||n,c=s?r:o;t!=="auto"&&(a=t==="start",c=t==="end");const d=t==="middle";if(a||c||d){const{colLeft:h,colMiddle:f,colRight:g}=this.getColumnBounds(e);return d?f-i/2:a?s?g:h:s?h-i:g-i}return null}isColumnOutsideViewport(e){const{start:t,end:o}=this.getViewportBounds(),{colLeft:r,colRight:n}=this.getColumnBounds(e),i=this.enableRtl,s=i?t>n:o<n,a=i?o<r:t>r;return{columnBeforeStart:s,columnAfterEnd:a}}getColumnBounds(e){const t=this.enableRtl,o=this.visibleCols.bodyWidth,r=e.getActualWidth(),n=e.getLeft(),i=t?-1:1,s=t?o-n:n,a=s+r*i,c=s+r/2*i;return{colLeft:s,colMiddle:c,colRight:a}}getViewportBounds(){const e=this.centerRowsCtrl.getCenterWidth(),t=this.centerRowsCtrl.getCenterViewportScrollLeft(),o=t,r=e+t;return{start:o,end:r,width:e}}},Hv=class extends ue{constructor(e,t=!1){super(),this.callback=e,this.addSpacer=t}postConstruct(){const e=this.setWidth.bind(this);this.addManagedPropertyListener("domLayout",e),this.addManagedEventListeners({columnContainerWidthChanged:e,displayedColumnsChanged:e,leftPinnedWidthChanged:e}),this.addSpacer&&this.addManagedEventListeners({rightPinnedWidthChanged:e,scrollVisibilityChanged:e,scrollbarWidthChanged:e}),this.setWidth()}setWidth(){const e=po(this.gos,"print"),{visibleCols:t,scrollVisibleSvc:o}=this.beans,r=t.bodyWidth,n=t.getColsLeftWidth(),i=t.getDisplayedColumnsRightWidth();let s;e?s=r+n+i:(s=r,this.addSpacer&&(this.gos.get("enableRtl")?n:i)===0&&o.verticalScrollShowing&&(s+=o.getScrollbarWidth())),this.callback(s)}},Sj=class extends ue{constructor(e){super(),this.centerContainerCtrl=e}wireBeans(e){this.scrollVisibleSvc=e.scrollVisibleSvc}postConstruct(){this.beans.ctrlsSvc.whenReady(this,e=>{this.gridBodyCtrl=e.gridBodyCtrl,this.listenForResize()}),this.addManagedEventListeners({scrollbarWidthChanged:this.onScrollbarWidthChanged.bind(this)}),this.addManagedPropertyListeners(["alwaysShowHorizontalScroll","alwaysShowVerticalScroll"],()=>{this.checkViewportAndScrolls()})}listenForResize(){const{beans:e,centerContainerCtrl:t,gridBodyCtrl:o}=this,r=()=>{Yn(e,()=>{this.onCenterViewportResized()})};t.registerViewportResizeListener(r),o.registerBodyViewportResizeListener(r)}onScrollbarWidthChanged(){this.checkViewportAndScrolls()}onCenterViewportResized(){if(this.scrollVisibleSvc.updateScrollGap(),this.centerContainerCtrl.isViewportInTheDOMTree()){const{pinnedCols:e,colFlex:t}=this.beans;e?.keepPinnedColumnsNarrowerThanViewport(),this.checkViewportAndScrolls();const o=this.centerContainerCtrl.getCenterWidth();o!==this.centerWidth&&(this.centerWidth=o,t?.refreshFlexedColumns({viewportWidth:this.centerWidth,updateBodyWidths:!0,fireResizedEvent:!0}))}else this.bodyHeight=0}checkViewportAndScrolls(){this.updateScrollVisibleService(),this.checkBodyHeight(),this.onHorizontalViewportChanged(),this.gridBodyCtrl.scrollFeature.checkScrollLeft()}getBodyHeight(){return this.bodyHeight}checkBodyHeight(){const e=this.gridBodyCtrl.eBodyViewport,t=Bm(e);this.bodyHeight!==t&&(this.bodyHeight=t,this.eventSvc.dispatchEvent({type:"bodyHeightChanged"}))}updateScrollVisibleService(){this.updateScrollVisibleServiceImpl(),setTimeout(this.updateScrollVisibleServiceImpl.bind(this),500)}updateScrollVisibleServiceImpl(){if(!this.isAlive())return;const e={horizontalScrollShowing:this.centerContainerCtrl.isHorizontalScrollShowing(),verticalScrollShowing:this.gridBodyCtrl.isVerticalScrollShowing()};this.scrollVisibleSvc.setScrollsVisible(e)}onHorizontalViewportChanged(){const e=this.centerContainerCtrl.getCenterWidth(),t=this.centerContainerCtrl.getViewportScrollLeft();this.beans.colViewport.setScrollPosition(e,t)}};function Gh(e,t,o,r){const n=t.getColDef().cellRendererParams?.suppressMouseEventHandling;return SR(e,t,o,r,n)}function xj(e,t,o,r){const n=t?.suppressMouseEventHandling;return SR(e,void 0,o,r,n)}function SR(e,t,o,r,n){return n?n(Ze(e,{column:t,node:o,event:r})):!1}function xR(e,t,o){let r=t;for(;r;){const n=Jk(e,r,o);if(n)return n;r=r.parentElement}return null}var jh="cellCtrl";function Vv(e,t){return xR(e,t,jh)}var Wh="renderedRow";function kj(e,t){return xR(e,t,Wh)}function Gv(e,t,o,r,n){const i=r?r.getColDef().suppressKeyboardEvent:void 0;if(!i)return!1;const s=Ze(e,{event:t,editing:n,column:r,node:o,data:o.data,colDef:r.getColDef()});return!!(i&&i(s))}function Fj(e){const{pinnedRowModel:t,rowModel:o,rangeSvc:r,visibleCols:n}=e;if(!r||n.allCols.length===0)return;const i=t?.isEmpty("top")??!0,s=t?.isEmpty("bottom")??!0,a=i?null:"top";let c,d;s?(c=null,d=o.getRowCount()-1):(c="bottom",d=t?.getPinnedBottomRowCount()??-1),r.setCellRange({rowStartIndex:0,rowStartPinned:a,rowEndIndex:d,rowEndPinned:c})}var Rj=class extends ue{constructor(e){super(),this.element=e}postConstruct(){this.addKeyboardListeners(),this.addMouseListeners(),this.beans.touchSvc?.mockRowContextMenu(this),this.editSvc=this.beans.editSvc}addKeyboardListeners(){const e="keydown",t=this.processKeyboardEvent.bind(this,e);this.addManagedElementListeners(this.element,{[e]:t})}addMouseListeners(){const t=["dblclick","contextmenu","mouseover","mouseout","click",Mk("touchstart")?"touchstart":"mousedown"];for(const o of t){const r=this.processMouseEvent.bind(this,o);this.addManagedElementListeners(this.element,{[o]:r})}}processMouseEvent(e,t){if(!Bc(this.beans,t)||oi(t))return;const{cellCtrl:o,rowCtrl:r}=this.getControlsForEventTarget(t.target);e==="contextmenu"?(o?.column&&o.dispatchCellContextMenuEvent(t),this.beans.contextMenuSvc?.handleContextMenuMouseEvent(t,void 0,r,o)):(o&&o.onMouseEvent(e,t),r&&r.onMouseEvent(e,t))}getControlsForEventTarget(e){const{gos:t}=this;return{cellCtrl:Vv(t,e),rowCtrl:kj(t,e)}}processKeyboardEvent(e,t){const{cellCtrl:o,rowCtrl:r}=this.getControlsForEventTarget(t.target);t.defaultPrevented||(o?this.processCellKeyboardEvent(o,e,t):r?.isFullWidth()&&this.processFullWidthRowKeyboardEvent(r,e,t))}processCellKeyboardEvent(e,t,o){const r=this.editSvc?.isEditing(e,{withOpenEditor:!0})??!1;!Gv(this.gos,o,e.rowNode,e.column,r)&&t==="keydown"&&(!r&&this.beans.navigation?.handlePageScrollingKey(o)||e.onKeyDown(o),this.doGridOperations(o,r),zF(o)&&e.processCharacter(o)),t==="keydown"&&this.eventSvc.dispatchEvent(e.createEvent(o,"cellKeyDown"))}processFullWidthRowKeyboardEvent(e,t,o){const{rowNode:r}=e,{focusSvc:n,navigation:i}=this.beans,a=n.getFocusedCell()?.column;if(!Gv(this.gos,o,r,a,!1)){const d=o.key;if(t==="keydown")switch(d){case ee.PAGE_HOME:case ee.PAGE_END:case ee.PAGE_UP:case ee.PAGE_DOWN:i?.handlePageScrollingKey(o,!0);break;case ee.LEFT:case ee.RIGHT:if(!this.gos.get("embedFullWidthRows"))break;case ee.UP:case ee.DOWN:e.onKeyboardNavigate(o);break;case ee.TAB:e.onTabKeyDown(o);break}}t==="keydown"&&this.eventSvc.dispatchEvent(e.createRowEvent("cellKeyDown",o))}doGridOperations(e,t){if(!e.ctrlKey&&!e.metaKey||t||!Bc(this.beans,e))return;const o=PF(e),{clipboardSvc:r,undoRedo:n}=this.beans;if(o===ee.A)return this.onCtrlAndA(e);if(o===ee.C)return this.onCtrlAndC(r,e);if(o===ee.D)return this.onCtrlAndD(r,e);if(o===ee.V)return this.onCtrlAndV(r,e);if(o===ee.X)return this.onCtrlAndX(r,e);if(o===ee.Y)return this.onCtrlAndY(n);if(o===ee.Z)return this.onCtrlAndZ(n,e)}onCtrlAndA(e){const{beans:{rowModel:t,rangeSvc:o,selectionSvc:r},gos:n}=this;o&&zc(n)&&!w7(n)&&t.isRowsToRender()?Fj(this.beans):r&&r.selectAllRowNodes({source:"keyboardSelectAll",selectAll:rF(n)}),e.preventDefault()}onCtrlAndC(e,t){if(!e||this.gos.get("enableCellTextSelection"))return;const{cellCtrl:o}=this.getControlsForEventTarget(t.target);this.editSvc?.isEditing(o,{withOpenEditor:!0})||(t.preventDefault(),e.copyToClipboard())}onCtrlAndX(e,t){if(!e||this.gos.get("enableCellTextSelection")||this.gos.get("suppressCutToClipboard"))return;const{cellCtrl:o}=this.getControlsForEventTarget(t.target);this.editSvc?.isEditing(o,{withOpenEditor:!0})||(t.preventDefault(),e.cutToClipboard(void 0,"ui"))}onCtrlAndV(e,t){const{cellCtrl:o}=this.getControlsForEventTarget(t.target);this.editSvc?.isEditing(o,{withOpenEditor:!0})||e&&!this.gos.get("suppressClipboardPaste")&&e.pasteFromClipboard()}onCtrlAndD(e,t){e&&!this.gos.get("suppressClipboardPaste")&&e.copyRangeDown(),t.preventDefault()}onCtrlAndZ(e,t){!this.gos.get("undoRedoCellEditing")||!e||(t.preventDefault(),t.shiftKey?e.redo("ui"):e.undo("ui"))}onCtrlAndY(e){e?.redo("ui")}},kR=class extends ue{constructor(e,t){super(),this.eContainer=e,this.eViewport=t}postConstruct(){this.addManagedEventListeners({rowContainerHeightChanged:this.onHeightChanged.bind(this,this.beans.rowContainerHeight)})}onHeightChanged(e){const t=e.uiContainerHeight,o=t!=null?`${t}px`:"";this.eContainer.style.height=o,this.eViewport&&(this.eViewport.style.height=o)}},qh=e=>e.topRowCtrls,Uh=e=>e.getStickyTopRowCtrls(),$h=e=>e.getStickyBottomRowCtrls(),Kh=e=>e.bottomRowCtrls,Xh=e=>e.allRowCtrls,jv=e=>e.getCtrls("top"),Wv=e=>e.getCtrls("center"),qv=e=>e.getCtrls("bottom"),Ej={center:{type:"center",name:"center-cols",getRowCtrls:Xh,getSpannedRowCtrls:Wv},left:{type:"left",name:"pinned-left-cols",pinnedType:"left",getRowCtrls:Xh,getSpannedRowCtrls:Wv},right:{type:"right",name:"pinned-right-cols",pinnedType:"right",getRowCtrls:Xh,getSpannedRowCtrls:Wv},fullWidth:{type:"fullWidth",name:"full-width",fullWidth:!0,getRowCtrls:Xh},topCenter:{type:"center",name:"floating-top",getRowCtrls:qh,getSpannedRowCtrls:jv},topLeft:{type:"left",name:"pinned-left-floating",container:"ag-pinned-left-floating-top",pinnedType:"left",getRowCtrls:qh,getSpannedRowCtrls:jv},topRight:{type:"right",name:"pinned-right-floating",container:"ag-pinned-right-floating-top",pinnedType:"right",getRowCtrls:qh,getSpannedRowCtrls:jv},topFullWidth:{type:"fullWidth",name:"floating-top-full-width",fullWidth:!0,getRowCtrls:qh},stickyTopCenter:{type:"center",name:"sticky-top",getRowCtrls:Uh},stickyTopLeft:{type:"left",name:"pinned-left-sticky-top",container:"ag-pinned-left-sticky-top",pinnedType:"left",getRowCtrls:Uh},stickyTopRight:{type:"right",name:"pinned-right-sticky-top",container:"ag-pinned-right-sticky-top",pinnedType:"right",getRowCtrls:Uh},stickyTopFullWidth:{type:"fullWidth",name:"sticky-top-full-width",fullWidth:!0,getRowCtrls:Uh},stickyBottomCenter:{type:"center",name:"sticky-bottom",getRowCtrls:$h},stickyBottomLeft:{type:"left",name:"pinned-left-sticky-bottom",container:"ag-pinned-left-sticky-bottom",pinnedType:"left",getRowCtrls:$h},stickyBottomRight:{type:"right",name:"pinned-right-sticky-bottom",container:"ag-pinned-right-sticky-bottom",pinnedType:"right",getRowCtrls:$h},stickyBottomFullWidth:{type:"fullWidth",name:"sticky-bottom-full-width",fullWidth:!0,getRowCtrls:$h},bottomCenter:{type:"center",name:"floating-bottom",getRowCtrls:Kh,getSpannedRowCtrls:qv},bottomLeft:{type:"left",name:"pinned-left-floating-bottom",container:"ag-pinned-left-floating-bottom",pinnedType:"left",getRowCtrls:Kh,getSpannedRowCtrls:qv},bottomRight:{type:"right",name:"pinned-right-floating-bottom",container:"ag-pinned-right-floating-bottom",pinnedType:"right",getRowCtrls:Kh,getSpannedRowCtrls:qv},bottomFullWidth:{type:"fullWidth",name:"floating-bottom-full-width",fullWidth:!0,getRowCtrls:Kh}};function FR(e){return`ag-${Kc(e).name}-viewport`}function Zh(e){const t=Kc(e);return t.container??`ag-${t.name}-container`}function _j(e){return`ag-${Kc(e).name}-spanned-cells-container`}function Kc(e){return Ej[e]}var Pj=["topCenter","topLeft","topRight"],Dj=["bottomCenter","bottomLeft","bottomRight"],Tj=["center","left","right"],Mj=["center","left","right","fullWidth"],Aj=["stickyTopCenter","stickyBottomCenter","center","topCenter","bottomCenter"],Ij=["left","bottomLeft","topLeft","stickyTopLeft","stickyBottomLeft"],Bj=["right","bottomRight","topRight","stickyTopRight","stickyBottomRight"],RR=["stickyTopCenter","stickyTopLeft","stickyTopRight"],ER=["stickyBottomCenter","stickyBottomLeft","stickyBottomRight"],Oj=[...RR,"stickyTopFullWidth",...ER,"stickyBottomFullWidth"],Nj=[...Pj,...Dj,...Tj,...RR,...ER],Lj=class extends ue{constructor(e){super(),this.name=e,this.visible=!0,this.EMPTY_CTRLS=[],this.options=Kc(e)}postConstruct(){this.enableRtl=this.gos.get("enableRtl"),this.forContainers(["center"],()=>{this.viewportSizeFeature=this.createManagedBean(new Sj(this)),this.addManagedEventListeners({stickyTopOffsetChanged:this.onStickyTopOffsetChanged.bind(this)})})}onStickyTopOffsetChanged(e){this.comp.setOffsetTop(`${e.offset}px`)}registerWithCtrlsService(){this.options.fullWidth||this.beans.ctrlsSvc.register(this.name,this)}forContainers(e,t){e.indexOf(this.name)>=0&&t()}setComp(e,t,o,r){this.comp=e,this.eContainer=t,this.eSpannedContainer=o,this.eViewport=r,this.createManagedBean(new Rj(this.eViewport??this.eContainer)),this.addPreventScrollWhileDragging(),this.listenOnDomOrder();const{pinnedCols:n,rangeSvc:i}=this.beans,s=()=>this.onPinnedWidthChanged();this.forContainers(Ij,()=>{this.pinnedWidthFeature=this.createOptionalManagedBean(n?.createPinnedWidthFeature(!0,this.eContainer,this.eSpannedContainer)),this.addManagedEventListeners({leftPinnedWidthChanged:s})}),this.forContainers(Bj,()=>{this.pinnedWidthFeature=this.createOptionalManagedBean(n?.createPinnedWidthFeature(!1,this.eContainer,this.eSpannedContainer)),this.addManagedEventListeners({rightPinnedWidthChanged:s})}),this.forContainers(Mj,()=>this.createManagedBean(new kR(this.eContainer,this.name==="center"?r:void 0))),i&&this.forContainers(Nj,()=>this.createManagedBean(i.createDragListenerFeature(this.eContainer))),this.forContainers(Aj,()=>this.createManagedBean(new Hv(a=>this.comp.setContainerWidth(`${a}px`)))),this.visible=this.isContainerVisible(),this.addListeners(),this.registerWithCtrlsService()}onScrollCallback(e){this.addManagedElementListeners(this.eViewport,{scroll:e})}addListeners(){const{spannedRowRenderer:e,gos:t}=this.beans,o=this.onDisplayedColumnsChanged.bind(this);this.addManagedEventListeners({displayedColumnsChanged:o,displayedColumnsWidthChanged:o,displayedRowsChanged:r=>this.onDisplayedRowsChanged(r.afterScroll)}),o(),this.onDisplayedRowsChanged(),e&&this.options.getSpannedRowCtrls&&t.get("enableCellSpan")&&this.addManagedListeners(e,{spannedRowsUpdated:()=>{const r=this.options.getSpannedRowCtrls(e);r&&this.comp.setSpannedRowCtrls(r,!1)}})}listenOnDomOrder(){if(Oj.indexOf(this.name)>=0){this.comp.setDomOrder(!0);return}const t=()=>{const o=this.gos.get("ensureDomOrder"),r=po(this.gos,"print");this.comp.setDomOrder(o||r)};this.addManagedPropertyListener("domLayout",t),t()}onDisplayedColumnsChanged(){this.forContainers(["center"],()=>this.onHorizontalViewportChanged())}addPreventScrollWhileDragging(){const{dragSvc:e}=this.beans;if(!e)return;const t=o=>{e.dragging&&o.cancelable&&o.preventDefault()};this.eContainer.addEventListener("touchmove",t,{passive:!1}),this.addDestroyFunc(()=>this.eContainer.removeEventListener("touchmove",t))}onHorizontalViewportChanged(e=!1){const t=this.getCenterWidth(),o=this.getCenterViewportScrollLeft();this.beans.colViewport.setScrollPosition(t,o,e)}hasHorizontalScrollGap(){return this.eContainer.clientWidth-this.eViewport.clientWidth<0}hasVerticalScrollGap(){return this.eContainer.clientHeight-this.eViewport.clientHeight<0}getCenterWidth(){return sh(this.eViewport)}getCenterViewportScrollLeft(){return lh(this.eViewport,this.enableRtl)}registerViewportResizeListener(e){const t=Zn(this.beans,this.eViewport,e);this.addDestroyFunc(()=>t())}isViewportInTheDOMTree(){return Om(this.eViewport)}getViewportScrollLeft(){return lh(this.eViewport,this.enableRtl)}isHorizontalScrollShowing(){return this.gos.get("alwaysShowHorizontalScroll")||Lm(this.eViewport)}setHorizontalScroll(e){this.comp.setHorizontalScroll(e)}getHScrollPosition(){return{left:this.eViewport.scrollLeft,right:this.eViewport.scrollLeft+this.eViewport.offsetWidth}}setCenterViewportScrollLeft(e){ch(this.eViewport,e,this.enableRtl)}isContainerVisible(){return!(this.options.pinnedType!=null)||!!this.pinnedWidthFeature&&this.pinnedWidthFeature.getWidth()>0}onPinnedWidthChanged(){const e=this.isContainerVisible();this.visible!=e&&(this.visible=e,this.onDisplayedRowsChanged())}onDisplayedRowsChanged(e=!1){const t=this.options.getRowCtrls(this.beans.rowRenderer);if(!this.visible||t.length===0){this.comp.setRowCtrls({rowCtrls:this.EMPTY_CTRLS});return}const o=po(this.gos,"print"),n=this.gos.get("embedFullWidthRows")||o,i=t.filter(s=>{const a=s.isFullWidth();return this.options.fullWidth?!n&&a:n||!a});this.comp.setRowCtrls({rowCtrls:i,useFlushSync:e})}},zj="ag-force-vertical-scroll",Hj="ag-selectable",Vj="ag-column-moving",Gj=class extends ue{constructor(){super(...arguments),this.stickyTopHeight=0,this.stickyBottomHeight=0}wireBeans(e){this.ctrlsSvc=e.ctrlsSvc,this.colModel=e.colModel,this.scrollVisibleSvc=e.scrollVisibleSvc,this.pinnedRowModel=e.pinnedRowModel,this.filterManager=e.filterManager,this.rowGroupColsSvc=e.rowGroupColsSvc}setComp(e,t,o,r,n,i,s){this.comp=e,this.eGridBody=t,this.eBodyViewport=o,this.eTop=r,this.eBottom=n,this.eStickyTop=i,this.eStickyBottom=s,this.eCenterColsViewport=o.querySelector(`.${FR("center")}`),this.eFullWidthContainer=o.querySelector(`.${Zh("fullWidth")}`),this.eStickyTopFullWidthContainer=i.querySelector(`.${Zh("stickyTopFullWidth")}`),this.eStickyBottomFullWidthContainer=s.querySelector(`.${Zh("stickyBottomFullWidth")}`),this.setCellTextSelection(this.gos.get("enableCellTextSelection")),this.addManagedPropertyListener("enableCellTextSelection",a=>this.setCellTextSelection(a.currentValue)),this.createManagedBean(new Nv(this.comp)),this.scrollFeature=this.createManagedBean(new yj(o)),this.beans.rowDragSvc?.setupRowDrag(o,this),this.setupRowAnimationCssClass(),this.addEventListeners(),this.addFocusListeners([r,o,n,i,s]),this.setGridRootRole(),this.onGridColumnsChanged(),this.addBodyViewportListener(),this.setFloatingHeights(),this.disableBrowserDragging(),this.addStopEditingWhenGridLosesFocus(),this.updateScrollingClasses(),this.filterManager?.setupAdvFilterHeaderComp(r),this.ctrlsSvc.register("gridBodyCtrl",this)}addEventListeners(){const e=this.setFloatingHeights.bind(this),t=this.setGridRootRole.bind(this),o=this.toggleRowResizeStyles.bind(this);this.addManagedEventListeners({gridColumnsChanged:this.onGridColumnsChanged.bind(this),scrollVisibilityChanged:this.onScrollVisibilityChanged.bind(this),scrollGapChanged:this.updateScrollingClasses.bind(this),pinnedRowDataChanged:e,pinnedHeightChanged:e,pinnedRowsChanged:e,headerHeightChanged:this.setStickyTopOffsetTop.bind(this),columnRowGroupChanged:t,columnPivotChanged:t,rowResizeStarted:o,rowResizeEnded:o}),this.addManagedPropertyListener("treeData",t)}toggleRowResizeStyles(e){const t=e.type==="rowResizeStarted";this.eBodyViewport.classList.toggle("ag-prevent-animation",t)}onGridColumnsChanged(){const e=this.beans.colModel.getCols();this.comp.setColumnCount(e.length)}onScrollVisibilityChanged(){const{scrollVisibleSvc:e}=this,t=e.verticalScrollShowing;this.setVerticalScrollPaddingVisible(t),this.setStickyWidth(t),this.setStickyBottomOffsetBottom();const o=t&&e.getScrollbarWidth()||0,r=AF()?16:0,n=`calc(100% + ${o+r}px)`;Yn(this.beans,()=>this.comp.setBodyViewportWidth(n)),this.updateScrollingClasses()}setGridRootRole(){const{rowGroupColsSvc:e,colModel:t,gos:o}=this;let r=o.get("treeData");if(!r){const n=t.isPivotMode();r=(e?e.columns.length:0)>=(n?2:1)}this.comp.setGridRootRole(r?"treegrid":"grid")}addFocusListeners(e){for(const t of e)this.addManagedElementListeners(t,{focusin:o=>{const{target:r}=o,n=As(r,"ag-root",t);t.classList.toggle("ag-has-focus",!n)},focusout:o=>{const{target:r,relatedTarget:n}=o,i=t.contains(n),s=As(n,"ag-root",t);As(r,"ag-root",t)||(!i||s)&&t.classList.remove("ag-has-focus")}})}setColumnMovingCss(e){this.comp.setColumnMovingCss(Vj,e)}setCellTextSelection(e=!1){this.comp.setCellSelectableCss(Hj,e)}updateScrollingClasses(){const{eGridBody:{classList:e},scrollVisibleSvc:t}=this;e.toggle("ag-body-vertical-content-no-gap",!t.verticalScrollGap),e.toggle("ag-body-horizontal-content-no-gap",!t.horizontalScrollGap)}disableBrowserDragging(){this.addManagedElementListeners(this.eGridBody,{dragstart:e=>{if(e.target instanceof HTMLImageElement)return e.preventDefault(),!1}})}addStopEditingWhenGridLosesFocus(){this.beans.editSvc?.addStopEditingWhenGridLosesFocus([this.eBodyViewport,this.eBottom,this.eTop,this.eStickyTop,this.eStickyBottom])}updateRowCount(){const e=(this.ctrlsSvc.getHeaderRowContainerCtrl()?.getRowCount()??0)+(this.filterManager?.getHeaderRowCount()??0),{rowModel:t}=this.beans,o=t.isLastRowIndexKnown()?t.getRowCount():-1,r=o===-1?-1:e+o;this.comp.setRowCount(r)}registerBodyViewportResizeListener(e){this.comp.registerBodyViewportResizeListener(e)}setVerticalScrollPaddingVisible(e){const t=e?"scroll":"hidden";this.comp.setPinnedTopBottomOverflowY(t)}isVerticalScrollShowing(){const e=this.gos.get("alwaysShowVerticalScroll"),t=e?zj:null,o=po(this.gos,"normal");return this.comp.setAlwaysVerticalScrollClass(t,e),e||o&&_k(this.eBodyViewport)}setupRowAnimationCssClass(){const{rowContainerHeight:e,environment:t}=this.beans;let o=t.sizesMeasured;const r=()=>{const n=o&&Za(this.gos)&&!e.stretching,i=n?"ag-row-animation":"ag-row-no-animation";this.comp.setRowAnimationCssOnBodyViewport(i,n)};r(),this.addManagedEventListeners({heightScaleChanged:r}),this.addManagedPropertyListener("animateRows",r),this.addManagedEventListeners({stylesChanged:()=>{!o&&t.sizesMeasured&&(o=!0,r())}})}addBodyViewportListener(){const{eBodyViewport:e,eStickyTop:t,eStickyBottom:o,eTop:r,eBottom:n,beans:{popupSvc:i,touchSvc:s}}=this,a=this.onBodyViewportContextMenu.bind(this);this.addManagedElementListeners(e,{contextmenu:a}),s?.mockBodyContextMenu(this,a),this.addManagedElementListeners(e,{wheel:this.onBodyViewportWheel.bind(this,i)});const c=this.onStickyWheel.bind(this);for(const h of[t,o,r,n])this.addManagedElementListeners(h,{wheel:c});const d=this.onHorizontalWheel.bind(this);for(const h of["left","right","topLeft","topRight","bottomLeft","bottomRight"])this.addManagedElementListeners(this.ctrlsSvc.get(h).eContainer,{wheel:d});this.addFullWidthContainerWheelListener()}addFullWidthContainerWheelListener(){this.addManagedElementListeners(this.eFullWidthContainer,{wheel:e=>this.onFullWidthContainerWheel(e)})}onFullWidthContainerWheel(e){const{deltaX:t,deltaY:o,shiftKey:r}=e;(r||Math.abs(t)>Math.abs(o))&&Bc(this.beans,e)&&this.scrollGridBodyToMatchEvent(e)}onStickyWheel(e){const{deltaY:t}=e;this.scrollVertically(t)>0&&e.preventDefault()}onHorizontalWheel(e){const{deltaX:t,deltaY:o,shiftKey:r}=e;(r||Math.abs(t)>Math.abs(o))&&this.scrollGridBodyToMatchEvent(e)}scrollGridBodyToMatchEvent(e){const{deltaX:t,deltaY:o}=e;e.preventDefault(),this.eCenterColsViewport.scrollBy({left:t||o})}onBodyViewportContextMenu(e,t,o){if(!e&&!o)return;this.gos.get("preventDefaultOnContextMenu")&&(e||o).preventDefault();const{target:r}=e||t;(r===this.eBodyViewport||r===this.ctrlsSvc.get("center").eViewport)&&this.beans.contextMenuSvc?.showContextMenu({mouseEvent:e,touchEvent:o,value:null,anchorToElement:this.eGridBody,source:"ui"})}onBodyViewportWheel(e,t){this.gos.get("suppressScrollWhenPopupsAreOpen")&&e?.hasAnchoredPopup()&&t.preventDefault()}scrollVertically(e){const t=this.eBodyViewport.scrollTop;return this.scrollFeature.setVerticalScrollPosition(t+e),this.eBodyViewport.scrollTop-t}setFloatingHeights(){const{pinnedRowModel:e,beans:{environment:t}}=this,o=e?.getPinnedTopTotalHeight(),r=e?.getPinnedBottomTotalHeight(),n=t.getPinnedRowBorderWidth(),i=t.getRowBorderWidth(),s=n-i,a=o?s+o:0,c=r?s+r:0;this.comp.setTopHeight(a),this.comp.setBottomHeight(c),this.comp.setTopInvisible(a<=0),this.comp.setBottomInvisible(c<=0),this.setStickyTopOffsetTop(),this.setStickyBottomOffsetBottom()}setStickyTopHeight(e=0){this.comp.setStickyTopHeight(`${e}px`),this.stickyTopHeight=e}setStickyBottomHeight(e=0){this.comp.setStickyBottomHeight(`${e}px`),this.stickyBottomHeight=e}setStickyWidth(e){if(!e)this.comp.setStickyTopWidth("100%"),this.comp.setStickyBottomWidth("100%");else{const t=this.scrollVisibleSvc.getScrollbarWidth();this.comp.setStickyTopWidth(`calc(100% - ${t}px)`),this.comp.setStickyBottomWidth(`calc(100% - ${t}px)`)}}setStickyTopOffsetTop(){const t=this.ctrlsSvc.get("gridHeaderCtrl").headerHeight+(this.filterManager?.getHeaderHeight()??0),o=this.pinnedRowModel?.getPinnedTopTotalHeight()??0;let r=0;t>0&&(r+=t),o>0&&(r+=o),r>0&&(r+=1),this.comp.setStickyTopTop(`${r}px`)}setStickyBottomOffsetBottom(){const{pinnedRowModel:e,scrollVisibleSvc:t,comp:o}=this,r=e?.getPinnedBottomTotalHeight()??0,i=t.horizontalScrollShowing&&t.getScrollbarWidth()||0,s=r+i;o.setStickyBottomBottom(`${s}px`)}};function jj(e,t){return Vv(e,t.target)?.getFocusedCellPosition()??null}var _R=class extends Ro{constructor(e,t){super(),this.direction=t,this.eViewport=Te,this.eContainer=Te,this.hideTimeout=0,this.setTemplate(e)}postConstruct(){this.addManagedEventListeners({scrollVisibilityChanged:this.onScrollVisibilityChanged.bind(this)}),this.onScrollVisibilityChanged(),this.toggleCss("ag-apple-scrollbar",TF()||Hs())}destroy(){super.destroy(),window.clearTimeout(this.hideTimeout)}initialiseInvisibleScrollbar(){this.invisibleScrollbar===void 0&&(this.invisibleScrollbar=AF(),this.invisibleScrollbar&&(this.hideAndShowInvisibleScrollAsNeeded(),this.addActiveListenerToggles()))}addActiveListenerToggles(){const e=this.getGui(),t=()=>this.toggleCss("ag-scrollbar-active",!0),o=()=>this.toggleCss("ag-scrollbar-active",!1);this.addManagedListeners(e,{mouseenter:t,mousedown:t,touchstart:t,mouseleave:o,touchend:o})}onScrollVisibilityChanged(){this.invisibleScrollbar===void 0&&this.initialiseInvisibleScrollbar(),Yn(this.beans,()=>this.setScrollVisible())}hideAndShowInvisibleScrollAsNeeded(){this.addManagedEventListeners({bodyScroll:e=>{e.direction===this.direction&&(this.hideTimeout&&(window.clearTimeout(this.hideTimeout),this.hideTimeout=0),this.toggleCss("ag-scrollbar-scrolling",!0))},bodyScrollEnd:()=>{this.hideTimeout=window.setTimeout(()=>{this.toggleCss("ag-scrollbar-scrolling",!1),this.hideTimeout=0},400)}})}attemptSettingScrollPosition(e){const t=this.eViewport;$8(this,()=>Xn(t),()=>this.setScrollPosition(e),100)}onScrollCallback(e){this.addManagedElementListeners(this.eViewport,{scroll:e})}},Wj={tag:"div",cls:"ag-body-horizontal-scroll",attrs:{"aria-hidden":"true"},children:[{tag:"div",ref:"eLeftSpacer",cls:"ag-horizontal-left-spacer"},{tag:"div",ref:"eViewport",cls:"ag-body-horizontal-scroll-viewport",children:[{tag:"div",ref:"eContainer",cls:"ag-body-horizontal-scroll-container"}]},{tag:"div",ref:"eRightSpacer",cls:"ag-horizontal-right-spacer"}]},qj=class extends _R{constructor(){super(Wj,"horizontal"),this.eLeftSpacer=Te,this.eRightSpacer=Te,this.setScrollVisibleDebounce=0}wireBeans(e){this.visibleCols=e.visibleCols,this.scrollVisibleSvc=e.scrollVisibleSvc}postConstruct(){super.postConstruct();const e=this.setFakeHScrollSpacerWidths.bind(this);this.addManagedEventListeners({displayedColumnsChanged:e,displayedColumnsWidthChanged:e,pinnedRowDataChanged:this.refreshCompBottom.bind(this)}),this.addManagedPropertyListener("domLayout",e),this.beans.ctrlsSvc.register("fakeHScrollComp",this),this.createManagedBean(new Hv(t=>this.eContainer.style.width=`${t}px`)),this.addManagedPropertyListeners(["suppressHorizontalScroll"],this.onScrollVisibilityChanged.bind(this))}destroy(){window.clearTimeout(this.setScrollVisibleDebounce),super.destroy()}initialiseInvisibleScrollbar(){this.invisibleScrollbar===void 0&&(this.enableRtl=this.gos.get("enableRtl"),super.initialiseInvisibleScrollbar(),this.invisibleScrollbar&&this.refreshCompBottom())}refreshCompBottom(){if(!this.invisibleScrollbar)return;const e=this.beans.pinnedRowModel?.getPinnedBottomTotalHeight()??0;this.getGui().style.bottom=`${e}px`}onScrollVisibilityChanged(){super.onScrollVisibilityChanged(),this.setFakeHScrollSpacerWidths()}setFakeHScrollSpacerWidths(){const e=this.scrollVisibleSvc.verticalScrollShowing;let t=this.visibleCols.getDisplayedColumnsRightWidth();const o=!this.enableRtl&&e,r=this.scrollVisibleSvc.getScrollbarWidth();o&&(t+=r),wn(this.eRightSpacer,t),this.eRightSpacer.classList.toggle("ag-scroller-corner",t<=r);let n=this.visibleCols.getColsLeftWidth();this.enableRtl&&e&&(n+=r),wn(this.eLeftSpacer,n),this.eLeftSpacer.classList.toggle("ag-scroller-corner",n<=r)}setScrollVisible(){const e=this.scrollVisibleSvc.horizontalScrollShowing,t=this.invisibleScrollbar,o=this.gos.get("suppressHorizontalScroll"),r=e&&this.scrollVisibleSvc.getScrollbarWidth()||0,i=o?0:r===0&&t?16:r,s=()=>{this.setScrollVisibleDebounce=0,this.toggleCss("ag-scrollbar-invisible",t),Ic(this.getGui(),i),Ic(this.eViewport,i),Ic(this.eContainer,i),i||this.eContainer.style.setProperty("min-height","1px"),this.setVisible(e,{skipAriaHidden:!0})};window.clearTimeout(this.setScrollVisibleDebounce),e?this.setScrollVisibleDebounce=window.setTimeout(s,100):s()}getScrollPosition(){return lh(this.eViewport,this.enableRtl)}setScrollPosition(e){Xn(this.eViewport)||this.attemptSettingScrollPosition(e),ch(this.eViewport,e,this.enableRtl)}},Uj={tag:"div",cls:"ag-body-vertical-scroll",attrs:{"aria-hidden":"true"},children:[{tag:"div",ref:"eViewport",cls:"ag-body-vertical-scroll-viewport",children:[{tag:"div",ref:"eContainer",cls:"ag-body-vertical-scroll-container"}]}]},$j=class extends _R{constructor(){super(Uj,"vertical")}postConstruct(){super.postConstruct(),this.createManagedBean(new kR(this.eContainer));const{ctrlsSvc:e}=this.beans;e.register("fakeVScrollComp",this),this.addManagedEventListeners({rowContainerHeightChanged:this.onRowContainerHeightChanged.bind(this,e)})}setScrollVisible(){const{scrollVisibleSvc:e}=this.beans,t=e.verticalScrollShowing,o=this.invisibleScrollbar,r=t&&e.getScrollbarWidth()||0,n=r===0&&o?16:r;this.toggleCss("ag-scrollbar-invisible",o),wn(this.getGui(),n),wn(this.eViewport,n),wn(this.eContainer,n),this.setDisplayed(t,{skipAriaHidden:!0})}onRowContainerHeightChanged(e){const o=e.getGridBodyCtrl().eBodyViewport,r=this.getScrollPosition(),n=o.scrollTop;r!=n&&this.setScrollPosition(n,!0)}getScrollPosition(){return this.eViewport.scrollTop}setScrollPosition(e,t){!t&&!Xn(this.eViewport)&&this.attemptSettingScrollPosition(e),this.eViewport.scrollTop=e}},Kj="ag-column-first",Xj="ag-column-last";function PR(e,t,o,r){return Ut(e)?[]:Yj(e.headerClass,e,t,o,r)}function DR(e,t,o){e.toggleCss(Kj,o.isColAtEdge(t,"first")),e.toggleCss(Xj,o.isColAtEdge(t,"last"))}function Zj(e,t,o,r){return Ze(t,{colDef:e,column:o,columnGroup:r})}function Yj(e,t,o,r,n){if(Ut(e))return[];let i;if(typeof e=="function"){const s=Zj(t,o,r,n);i=e(s)}else i=e;return typeof i=="string"?[i]:Array.isArray(i)?[...i]:[]}function TR(e,t){const o=e.column===t.column,r=e.rowPinned===t.rowPinned,n=e.rowIndex===t.rowIndex;return o&&r&&n}function Qj(e,t){switch(e.rowPinned){case"top":if(t.rowPinned!=="top")return!0;break;case"bottom":if(t.rowPinned!=="bottom")return!1;break;default:if(Ee(t.rowPinned))return t.rowPinned!=="top";break}return e.rowIndex<t.rowIndex}function Jj(e){let t=0,o;const{pinnedRowModel:r,rowModel:n,pageBounds:i}=e;return r?.getPinnedTopRowCount()?o="top":n.getRowCount()?(o=null,t=i.getFirstRow()):r?.getPinnedBottomRowCount()&&(o="bottom"),o===void 0?null:{rowIndex:t,rowPinned:o}}function eW(e){let t,o=null;const{pinnedRowModel:r,pageBounds:n}=e,i=r?.getPinnedBottomRowCount(),s=r?.getPinnedTopRowCount();return i?(o="bottom",t=i-1):e.rowModel.getRowCount()?t=n.getLastRow():s&&(o="top",t=s-1),t===void 0?null:{rowIndex:t,rowPinned:o}}function Ws(e,t){switch(t.rowPinned){case"top":return e.pinnedRowModel?.getPinnedTopRow(t.rowIndex);case"bottom":return e.pinnedRowModel?.getPinnedBottomRow(t.rowIndex);default:return e.rowModel.getRow(t.rowIndex)}}function Xc(e,t){const o=e.spannedRowRenderer?.getCellByPosition(t);if(o)return o;const r=e.rowRenderer.getRowByPosition(t);return r?r.getCellCtrl(t.column):null}function tW(e,t,o){const{rowModel:r,pinnedRowModel:n}=e;let i;return i??(i=r?.getRowNode(t)),o?i??(i=n?.getPinnedRowById(t,o)):(i??(i=n?.getPinnedRowById(t,"top")),i??(i=n?.getPinnedRowById(t,"bottom"))),i}function Yh(e,t,o=!1){const{rowIndex:r,rowPinned:n}=t,{pageBounds:i,pinnedRowModel:s,rowModel:a}=e;if(r===0)return n==="top"?null:n==="bottom"&&a.isRowsToRender()?{rowIndex:i.getLastRow(),rowPinned:null}:s?.isRowsToRender("top")?{rowIndex:s.getPinnedTopRowCount()-1,rowPinned:"top"}:null;if(o){const c=n?void 0:a.getRow(r);return AR(e,c,!0)??{rowIndex:r-1,rowPinned:n}}return{rowIndex:r-1,rowPinned:n}}function MR(e,t,o=!1){const{rowIndex:r,rowPinned:n}=t,{pageBounds:i,pinnedRowModel:s,rowModel:a}=e;if(oW(e,t))return n==="bottom"?null:n==="top"&&a.isRowsToRender()?{rowIndex:i.getFirstRow(),rowPinned:null}:s?.isRowsToRender("bottom")?{rowIndex:0,rowPinned:"bottom"}:null;if(o){const c=n?void 0:a.getRow(r);return AR(e,c)??{rowIndex:r+1,rowPinned:n}}return{rowIndex:r+1,rowPinned:n}}function AR(e,t,o=!1){const{gos:r,rowRenderer:n}=e;if(!t?.sticky||!eF(r))return;const i=n.getStickyTopRowCtrls(),s=n.getStickyBottomRowCtrls(),a=!s.some(f=>f.rowNode.rowIndex===t.rowIndex),c=a?i:s,d=(o?-1:1)*(a?-1:1);let h;for(let f=0;f<c.length;f++)if(c[f].rowNode.rowIndex===t.rowIndex){h=c[f+d];break}return h?{rowIndex:h.rowNode.rowIndex,rowPinned:null}:void 0}function oW(e,t){const{rowPinned:o,rowIndex:r}=t,{pinnedRowModel:n,pageBounds:i}=e;return o==="top"?(n?.getPinnedTopRowCount()??0)-1<=r:o==="bottom"?(n?.getPinnedBottomRowCount()??0)-1<=r:i.getLastRow()<=r}function qs(e){return e.gos.get("suppressHeaderFocus")||!!e.overlays?.exclusive}function Uv(e){return e.gos.get("suppressCellFocus")||!!e.overlays?.exclusive}function Zc(e,t,o=!1){const r=e.ctrlsSvc.get("gridCtrl");return!o&&r.focusNextInnerContainer(t)?!0:((o||!t&&!r.isDetailGrid())&&r.forceFocusOutOfContainer(t),!1)}function rW(e,t){const o=e.focusSvc,r=o.getFocusedCell();if(r&&t&&TR(r,t)){const{rowIndex:n,rowPinned:i,column:s}=t;Mm(e)&&o.setFocusedCell({rowIndex:n,column:s,rowPinned:i,forceBrowserFocus:!0,preventScrollOnBrowserFocus:!IF()})}}function En(e){return e.ctrlsSvc.getHeaderRowContainerCtrl()?.getRowCount()??0}function $v(e){const t=[],o=e.ctrlsSvc.getHeaderRowContainerCtrls();for(const r of o){if(!r)continue;const n=r.getGroupRowCount()||0;for(let i=0;i<n;i++){const s=r.getGroupRowCtrlAtIndex(i),a=t[i];if(s){const c=nW(e,s);(a==null||c>a)&&(t[i]=c)}}}return t}function nW(e,t){let r=e.colModel.isPivotMode()?sW(e):BR(e);const n=t.getHeaderCellCtrls();for(const i of n){const{column:s}=i,a=s.getAutoHeaderHeight();a!=null&&a>r&&s.isAutoHeaderHeight()&&(r=a)}return r}function Kv(e){let o=e.colModel.isPivotMode()?iW(e):Qh(e);return e.colModel.forAllCols(r=>{const n=r.getAutoHeaderHeight();n!=null&&n>o&&r.isAutoHeaderHeight()&&(o=n)}),o}function Qh(e){return e.gos.get("headerHeight")??e.environment.getDefaultHeaderHeight()}function IR(e){return e.gos.get("floatingFiltersHeight")??Qh(e)}function BR(e){return e.gos.get("groupHeaderHeight")??Qh(e)}function iW(e){return e.gos.get("pivotHeaderHeight")??Qh(e)}function sW(e){return e.gos.get("pivotGroupHeaderHeight")??BR(e)}function aW(e,t){return e.headerRowIndex===t.headerRowIndex&&e.column===t.column}var lW=class extends ue{setComp(e,t,o){this.comp=e,this.eGui=t;const{beans:r}=this,{headerNavigation:n,touchSvc:i,ctrlsSvc:s}=r;n&&this.createManagedBean(new $c(o,{onTabKeyDown:this.onTabKeyDown.bind(this),handleKeyDown:this.handleKeyDown.bind(this),onFocusOut:this.onFocusOut.bind(this)})),this.addManagedEventListeners({columnPivotModeChanged:this.onPivotModeChanged.bind(this,r),displayedColumnsChanged:this.onDisplayedColumnsChanged.bind(this,r)}),this.onPivotModeChanged(r),this.setupHeaderHeight();const a=this.onHeaderContextMenu.bind(this);this.addManagedElementListeners(this.eGui,{contextmenu:a}),i?.mockHeaderContextMenu(this,a),s.register("gridHeaderCtrl",this)}setupHeaderHeight(){const e=this.setHeaderHeight.bind(this);e(),this.addManagedPropertyListeners(["headerHeight","pivotHeaderHeight","groupHeaderHeight","pivotGroupHeaderHeight","floatingFiltersHeight"],e),this.addManagedEventListeners({headerRowsChanged:e,columnHeaderHeightChanged:e,columnGroupHeaderHeightChanged:()=>Yn(this.beans,()=>e()),stylesChanged:e,advancedFilterEnabledChanged:e})}setHeaderHeight(){const{beans:e}=this;let t=0;const o=$v(e).reduce((i,s)=>i+s,0),r=Kv(e);if(e.filterManager?.hasFloatingFilters()&&(t+=IR(e)),t+=o,t+=r,this.headerHeight===t)return;this.headerHeight=t;const n=`${t+1}px`;this.comp.setHeightAndMinHeight(n),this.eventSvc.dispatchEvent({type:"headerHeightChanged"})}onPivotModeChanged(e){const t=e.colModel.isPivotMode();this.comp.toggleCss("ag-pivot-on",t),this.comp.toggleCss("ag-pivot-off",!t)}onDisplayedColumnsChanged(e){const o=e.visibleCols.allCols.some(r=>r.isSpanHeaderHeight());this.comp.toggleCss("ag-header-allow-overflow",o)}onTabKeyDown(e){const t=this.gos.get("enableRtl"),o=e.shiftKey,r=o!==t?"LEFT":"RIGHT",{beans:n}=this,{headerNavigation:i,focusSvc:s}=n;(i.navigateHorizontally(r,!0,e)||!o&&s.focusOverlay(!1)||Zc(n,o,!0))&&e.preventDefault()}handleKeyDown(e){let t=null;const{headerNavigation:o}=this.beans;switch(e.key){case ee.LEFT:t="LEFT";case ee.RIGHT:{Ee(t)||(t="RIGHT"),o.navigateHorizontally(t,!1,e)&&e.preventDefault();break}case ee.UP:t="UP";case ee.DOWN:{Ee(t)||(t="DOWN"),o.navigateVertically(t,e)&&e.preventDefault();break}default:return}}onFocusOut(e){const{relatedTarget:t}=e,{eGui:o,beans:r}=this;!t&&o.contains(Mt(r))||o.contains(t)||(r.focusSvc.focusedHeader=null)}onHeaderContextMenu(e,t,o){const{menuSvc:r,ctrlsSvc:n}=this.beans;if(!e&&!o||!r?.isHeaderContextMenuEnabled())return;const{target:i}=e??t;(i===this.eGui||i===n.getHeaderRowContainerCtrl()?.eViewport)&&r.showHeaderContextMenu(void 0,e,o)}},Xv=class extends ue{constructor(e,t,o,r){super(),this.columnOrGroup=e,this.eCell=t,this.colsSpanning=r,this.columnOrGroup=e,this.ariaEl=t.querySelector("[role=columnheader]")||t,this.beans=o}setColsSpanning(e){this.colsSpanning=e,this.onLeftChanged()}getColumnOrGroup(){const{beans:e,colsSpanning:t}=this;return e.gos.get("enableRtl")&&t?vt(t):this.columnOrGroup}postConstruct(){const e=this.onLeftChanged.bind(this);this.addManagedListeners(this.columnOrGroup,{leftChanged:e}),this.setLeftFirstTime(),this.addManagedEventListeners({displayedColumnsWidthChanged:e}),this.addManagedPropertyListener("domLayout",e)}setLeftFirstTime(){const{gos:e,colAnimation:t}=this.beans,o=e.get("suppressColumnMoveAnimation"),r=Ee(this.columnOrGroup.getOldLeft());t?.isActive()&&r&&!o?this.animateInLeft():this.onLeftChanged()}animateInLeft(){const e=this.getColumnOrGroup(),t=this.modifyLeftForPrintLayout(e,e.getOldLeft()),o=this.modifyLeftForPrintLayout(e,e.getLeft());this.setLeft(t),this.actualLeft=o,this.beans.colAnimation.executeNextVMTurn(()=>{this.actualLeft===o&&this.setLeft(o)})}onLeftChanged(){const e=this.getColumnOrGroup(),t=e.getLeft();this.actualLeft=this.modifyLeftForPrintLayout(e,t),this.setLeft(this.actualLeft)}modifyLeftForPrintLayout(e,t){const{gos:o,visibleCols:r}=this.beans;if(!po(o,"print")||e.getPinned()==="left")return t;const i=r.getColsLeftWidth();if(e.getPinned()==="right"){const s=r.bodyWidth;return i+s+t}return i+t}setLeft(e){if(Ee(e)&&(this.eCell.style.left=`${e}px`),$t(this.columnOrGroup)){const t=this.columnOrGroup.getLeafColumns();if(!t.length)return;t.length>1&&R8(this.ariaEl,t.length)}}},cW=0,OR="headerCtrl",Zv=class extends ue{constructor(e,t){super(),this.column=e,this.rowCtrl=t,this.resizeToggleTimeout=0,this.resizeMultiplier=1,this.resizeFeature=null,this.lastFocusEvent=null,this.dragSource=null,this.reAttemptToFocus=!1,this.instanceId=e.getUniqueId()+"-"+cW++}postConstruct(){const e=this.refreshTabIndex.bind(this);this.addManagedPropertyListeners(["suppressHeaderFocus"],e),this.addManagedEventListeners({overlayExclusiveChanged:e})}setComp(e,t,o,r,n){t.setAttribute("col-id",this.column.colIdSanitised),this.wireComp(e,t,o,r,n),this.reAttemptToFocus&&(this.reAttemptToFocus=!1,this.focus(this.lastFocusEvent??void 0))}shouldStopEventPropagation(e){const{headerRowIndex:t,column:o}=this.beans.focusSvc.focusedHeader,r=o.getDefinition(),n=r?.suppressHeaderKeyboardEvent;if(!Ee(n))return!1;const i=Ze(this.gos,{colDef:r,column:o,headerRowIndex:t,event:e});return!!n(i)}getWrapperHasFocus(){return Mt(this.beans)===this.eGui}setGui(e,t){this.eGui=e,this.addDomData(t),t.addManagedListeners(this.beans.eventSvc,{displayedColumnsChanged:this.onDisplayedColumnsChanged.bind(this)}),t.addManagedElementListeners(this.eGui,{focus:this.onGuiFocus.bind(this)}),this.onDisplayedColumnsChanged(),this.refreshTabIndex()}refreshHeaderStyles(){const e=this.column.getDefinition();if(!e)return;const{headerStyle:t}=e;let o;if(typeof t=="function"){const r=this.getHeaderClassParams();o=t(r)}else o=t;o&&this.comp.setUserStyles(o)}onGuiFocus(){this.eventSvc.dispatchEvent({type:"headerFocused",column:this.column})}setupAutoHeight(e){const{wrapperElement:t,checkMeasuringCallback:o,compBean:r}=e,{beans:n}=this,i=f=>{if(!this.isAlive()||!r.isAlive())return;const{paddingTop:g,paddingBottom:m,borderBottomWidth:b,borderTopWidth:w}=Is(this.eGui),y=g+m+b+w,C=t.offsetHeight+y;if(f<5){const E=!lo(n)?.contains(t),_=C==0;if(E||_){Wm(()=>i(f+1),"raf",n);return}}this.setColHeaderHeight(this.column,C)};let s=!1,a;const c=()=>{const f=this.column.isAutoHeaderHeight();f&&!s&&d(),!f&&s&&h()},d=()=>{s=!0,this.comp.toggleCss("ag-header-cell-auto-height",!0),i(0),a=Zn(this.beans,t,()=>i(0))},h=()=>{s=!1,a&&a(),this.comp.toggleCss("ag-header-cell-auto-height",!1),a=void 0};c(),r.addDestroyFunc(()=>h()),r.addManagedListeners(this.column,{widthChanged:()=>s&&i(0)}),r.addManagedEventListeners({sortChanged:()=>{s&&window.setTimeout(()=>i(0))}}),o&&o(c)}onDisplayedColumnsChanged(){const{comp:e,column:t,beans:o,eGui:r}=this;!e||!t||!r||(DR(e,t,o.visibleCols),Sk(r,o.visibleCols.getAriaColIndex(t)))}addResizeAndMoveKeyboardListeners(e){e.addManagedListeners(this.eGui,{keydown:this.onGuiKeyDown.bind(this),keyup:this.onGuiKeyUp.bind(this)})}refreshTabIndex(){const e=qs(this.beans);this.eGui&&Wr(this.eGui,"tabindex",e?null:"-1")}onGuiKeyDown(e){const t=Mt(this.beans),o=e.key===ee.LEFT||e.key===ee.RIGHT;if(this.isResizing&&(e.preventDefault(),e.stopImmediatePropagation()),t!==this.eGui||!e.shiftKey&&!e.altKey&&!e.ctrlKey&&!e.metaKey)return;if((this.isResizing||o)&&(e.preventDefault(),e.stopImmediatePropagation()),(e.ctrlKey||e.metaKey)&&PF(e)===ee.C)return this.beans.clipboardSvc?.copyToClipboard();if(!o)return;const i=e.key===ee.LEFT!==this.gos.get("enableRtl")?"left":"right";if(e.altKey){this.isResizing=!0,this.resizeMultiplier+=1;const s=this.getViewportAdjustedResizeDiff(e);this.resizeHeader(s,e.shiftKey),this.resizeFeature?.toggleColumnResizing(!0)}else this.moveHeader(i)}moveHeader(e){this.beans.colMoves?.moveHeader(e,this.eGui,this.column,this.rowCtrl.pinned,this)}getViewportAdjustedResizeDiff(e){const t=this.getResizeDiff(e),{pinnedCols:o}=this.beans;return o?o.getHeaderResizeDiff(t,this.column):t}getResizeDiff(e){const{gos:t,column:o}=this;let r=e.key===ee.LEFT!==t.get("enableRtl");const n=o.getPinned(),i=t.get("enableRtl");return n&&i!==(n==="right")&&(r=!r),(r?-1:1)*this.resizeMultiplier}onGuiKeyUp(){this.isResizing&&(this.resizeToggleTimeout&&(window.clearTimeout(this.resizeToggleTimeout),this.resizeToggleTimeout=0),this.isResizing=!1,this.resizeMultiplier=1,this.resizeToggleTimeout=window.setTimeout(()=>{this.resizeFeature?.toggleColumnResizing(!1)},150))}handleKeyDown(e){const t=this.getWrapperHasFocus();switch(e.key){case ee.PAGE_DOWN:case ee.PAGE_UP:case ee.PAGE_HOME:case ee.PAGE_END:t&&e.preventDefault()}}addDomData(e){const t=OR,{eGui:o,gos:r}=this;Ns(r,o,t,this),e.addDestroyFunc(()=>Ns(r,o,t,null))}focus(e){if(!this.isAlive())return!1;const{eGui:t}=this;return t?(this.lastFocusEvent=e||null,t.focus()):this.reAttemptToFocus=!0,!0}focusThis(){this.beans.focusSvc.focusedHeader={headerRowIndex:this.rowCtrl.rowIndex,column:this.column}}removeDragSource(){this.dragSource&&(this.beans.dragAndDrop?.removeDragSource(this.dragSource),this.dragSource=null)}handleContextMenuMouseEvent(e,t,o){const r=e??t,{menuSvc:n,gos:i}=this.beans;i.get("preventDefaultOnContextMenu")&&r.preventDefault(),n?.isHeaderContextMenuEnabled(o)&&n.showHeaderContextMenu(o,e,t),this.dispatchColumnMouseEvent("columnHeaderContextMenu",o)}dispatchColumnMouseEvent(e,t){this.eventSvc.dispatchEvent({type:e,column:t})}setColHeaderHeight(e,t){if(!e.setAutoHeaderHeight(t))return;const{eventSvc:o}=this;e.isColumn?o.dispatchEvent({type:"columnHeaderHeightChanged",column:e,columns:[e],source:"autosizeColumnHeaderHeight"}):o.dispatchEvent({type:"columnGroupHeaderHeightChanged",columnGroup:e,source:"autosizeColumnGroupHeaderHeight"})}clearComponent(){this.removeDragSource(),this.resizeFeature=null,this.comp=null,this.eGui=null}destroy(){super.destroy(),this.column=null,this.lastFocusEvent=null,this.rowCtrl=null}},uW=class extends Zv{constructor(){super(...arguments),this.refreshFunctions={},this.userHeaderClasses=new Set,this.ariaDescriptionProperties=new Map}wireComp(e,t,o,r,n){this.comp=e;const{rowCtrl:i,column:s,beans:a}=this,{colResize:c,context:d,colHover:h,rangeSvc:f}=a,g=Gc(this,d,n);this.setGui(t,g),this.updateState(),this.setupWidth(g),this.setupMovingCss(g),this.setupMenuClass(g),this.setupSortableClass(g),this.setupWrapTextClass(),this.refreshSpanHeaderHeight(),this.setupAutoHeight({wrapperElement:r,checkMeasuringCallback:b=>this.setRefreshFunction("measuring",b),compBean:g}),this.addColumnHoverListener(g),this.setupFilterClass(g),this.setupStylesFromColDef(),this.setupClassesFromColDef(),this.setupTooltip(),this.addActiveHeaderMouseListeners(g),this.setupSelectAll(g),this.setupUserComp(),this.refreshAria(),c?this.resizeFeature=g.createManagedBean(c.createResizeFeature(i.pinned,s,o,e,this)):kt(o,!1),h?.createHoverFeature(g,[s],t),f?.createRangeHighlightFeature(g,s,e),g.createManagedBean(new Xv(s,t,a)),g.createManagedBean(new $c(t,{shouldStopEventPropagation:b=>this.shouldStopEventPropagation(b),onTabKeyDown:()=>null,handleKeyDown:this.handleKeyDown.bind(this),onFocusIn:this.onFocusIn.bind(this),onFocusOut:this.onFocusOut.bind(this)})),this.addResizeAndMoveKeyboardListeners(g),g.addManagedPropertyListeners(["suppressMovableColumns","suppressMenuHide","suppressAggFuncInHeader","enableAdvancedFilter"],()=>this.refresh()),g.addManagedListeners(s,{colDefChanged:()=>this.refresh(),formulaRefChanged:()=>this.refresh(),headerHighlightChanged:this.onHeaderHighlightChanged.bind(this)});const m=()=>this.checkDisplayName();g.addManagedEventListeners({columnValueChanged:m,columnRowGroupChanged:m,columnPivotChanged:m,headerHeightChanged:this.onHeaderHeightChanged.bind(this)}),g.addDestroyFunc(()=>{this.refreshFunctions={},this.selectAllFeature=null,this.dragSourceElement=void 0,this.userCompDetails=null,this.userHeaderClasses.clear(),this.ariaDescriptionProperties.clear(),this.clearComponent()})}resizeHeader(e,t){this.beans.colResize?.resizeHeader(this.column,e,t)}getHeaderClassParams(){const{column:e,beans:t}=this,o=e.colDef;return Ze(t.gos,{colDef:o,column:e,floatingFilter:!1})}setupUserComp(){const e=this.lookupUserCompDetails();e&&this.setCompDetails(e)}setCompDetails(e){this.userCompDetails=e,this.comp.setUserCompDetails(e)}lookupUserCompDetails(){const e=this.createParams(),t=this.column.getColDef();return w9(this.beans.userCompFactory,t,e)}createParams(){const{menuSvc:e,sortSvc:t,colFilter:o,gos:r}=this.beans;return Ze(r,{column:this.column,displayName:this.displayName,enableSorting:this.column.isSortable(),enableMenu:this.menuEnabled,enableFilterButton:this.openFilterEnabled&&!!e?.isHeaderFilterButtonEnabled(this.column),enableFilterIcon:!!o&&(!this.openFilterEnabled||Yo(this.gos)),showColumnMenu:(i,s)=>{e?.showColumnMenu({column:this.column,buttonElement:i,positionBy:"button",onClosedCallback:s})},showColumnMenuAfterMouseClick:(i,s)=>{e?.showColumnMenu({column:this.column,mouseEvent:i,positionBy:"mouse",onClosedCallback:s})},showFilter:i=>{e?.showFilterMenu({column:this.column,buttonElement:i,containerType:"columnFilter",positionBy:"button"})},progressSort:i=>{t?.progressSort(this.column,!!i,"uiColumnSorted")},setSort:(i,s)=>{t?.setSortForColumn(this.column,qr(i),!!s,"uiColumnSorted")},eGridHeader:this.eGui,setTooltip:(i,s)=>{r.assertModuleRegistered("Tooltip",3),this.setupTooltip(i,s)}})}setupSelectAll(e){const{selectionSvc:t}=this.beans;t&&(this.selectAllFeature=e.createOptionalManagedBean(t.createSelectAllFeature(this.column)),this.selectAllFeature?.setComp(this),e.addManagedPropertyListener("rowSelection",()=>{const o=t.createSelectAllFeature(this.column);o&&!this.selectAllFeature?(this.selectAllFeature=e.createManagedBean(o),this.selectAllFeature?.setComp(this),this.comp.refreshSelectAllGui()):this.selectAllFeature&&!o&&(this.comp.removeSelectAllGui(),this.selectAllFeature=this.destroyBean(this.selectAllFeature))}))}getSelectAllGui(){return this.selectAllFeature?.getCheckboxGui()}handleKeyDown(e){super.handleKeyDown(e),e.key===ee.SPACE?this.selectAllFeature?.onSpaceKeyDown(e):e.key===ee.ENTER?this.onEnterKeyDown(e):e.key===ee.DOWN&&e.altKey&&this.showMenuOnKeyPress(e,!1)}onEnterKeyDown(e){const{column:t,gos:o,sortable:r,beans:n}=this;let i=!1;(e.ctrlKey||e.metaKey)&&(i=this.showMenuOnKeyPress(e,!0)),i||(!e.altKey&&Qa(o)?n.rangeSvc?.handleColumnSelection(t,e):r&&n.sortSvc?.progressSort(t,e.shiftKey,"uiColumnSorted"))}showMenuOnKeyPress(e,t){const o=this.comp.getUserCompInstance();return NR(o)&&o.onMenuKeyboardShortcut(t)?(e.preventDefault(),!0):!1}onFocusIn(e){this.eGui.contains(e.relatedTarget)||(this.focusThis(),this.announceAriaDescription()),IF()&&this.setActiveHeader(!0)}onFocusOut(e){this.eGui.contains(e.relatedTarget)||this.setActiveHeader(!1)}setupTooltip(e,t){this.tooltipFeature=this.beans.tooltipSvc?.setupHeaderTooltip(this.tooltipFeature,this,e,t)}setupStylesFromColDef(){this.setRefreshFunction("headerStyles",this.refreshHeaderStyles.bind(this)),this.refreshHeaderStyles()}setupClassesFromColDef(){const e=()=>{const t=this.column.getColDef(),o=PR(t,this.gos,this.column,null),r=this.userHeaderClasses;this.userHeaderClasses=new Set(o);for(const n of o)r.has(n)?r.delete(n):this.comp.toggleCss(n,!0);for(const n of r)this.comp.toggleCss(n,!1)};this.setRefreshFunction("headerClasses",e),e()}setDragSource(e){this.dragSourceElement=e,this.removeDragSource(),!(!e||!this.draggable)&&(this.dragSource=this.beans.colMoves?.setDragSourceForHeader(e,this.column,this.displayName)??null)}updateState(){const{menuSvc:e}=this.beans;this.menuEnabled=!!e?.isColumnMenuInHeaderEnabled(this.column),this.openFilterEnabled=!!e?.isFilterMenuInHeaderEnabled(this.column),this.sortable=this.column.isSortable(),this.displayName=this.calculateDisplayName(),this.draggable=this.workOutDraggable()}setRefreshFunction(e,t){this.refreshFunctions[e]=t}refresh(){this.updateState(),this.refreshHeaderComp(),this.refreshAria();for(const e of Object.values(this.refreshFunctions))e()}refreshHeaderComp(){const e=this.lookupUserCompDetails();if(!e)return;(this.comp.getUserCompInstance()!=null&&this.userCompDetails.componentClass==e.componentClass?this.attemptHeaderCompRefresh(e.params):!1)?this.setDragSource(this.dragSourceElement):this.setCompDetails(e)}attemptHeaderCompRefresh(e){const t=this.comp.getUserCompInstance();return!t||!t.refresh?!1:t.refresh(e)}calculateDisplayName(){return this.beans.colNames.getDisplayNameForColumn(this.column,"header",!0)}checkDisplayName(){this.displayName!==this.calculateDisplayName()&&this.refresh()}workOutDraggable(){const e=this.column.getColDef();return!!(!this.gos.get("suppressMovableColumns")&&!e.suppressMovable&&!e.lockPosition)||!!e.enableRowGroup||!!e.enablePivot}setupWidth(e){const t=()=>{const o=this.column.getActualWidth();this.comp.setWidth(`${o}px`)};e.addManagedListeners(this.column,{widthChanged:t}),t()}setupMovingCss(e){const t=()=>{this.comp.toggleCss("ag-header-cell-moving",this.column.isMoving())};e.addManagedListeners(this.column,{movingChanged:t}),t()}setupMenuClass(e){const t=()=>{this.comp?.toggleCss("ag-column-menu-visible",this.column.isMenuVisible())};e.addManagedListeners(this.column,{menuVisibleChanged:t}),t()}setupSortableClass(e){const t=()=>{this.comp.toggleCss("ag-header-cell-sortable",!!this.sortable)};t(),this.setRefreshFunction("updateSortable",t),e.addManagedEventListeners({sortChanged:this.refreshAriaSort.bind(this)})}setupFilterClass(e){const t=()=>{const o=this.column.isFilterActive();this.comp.toggleCss("ag-header-cell-filtered",o),this.refreshAria()};e.addManagedListeners(this.column,{filterActiveChanged:t}),t()}setupWrapTextClass(){const e=()=>{const t=!!this.column.getColDef().wrapHeaderText;this.comp.toggleCss("ag-header-cell-wrap-text",t)};e(),this.setRefreshFunction("wrapText",e)}onHeaderHighlightChanged(){const e=this.column.getHighlighted(),t=e===0,o=e===1;this.comp.toggleCss("ag-header-highlight-before",t),this.comp.toggleCss("ag-header-highlight-after",o)}onDisplayedColumnsChanged(){super.onDisplayedColumnsChanged(),this.isAlive()&&this.onHeaderHeightChanged()}onHeaderHeightChanged(){this.refreshSpanHeaderHeight()}refreshSpanHeaderHeight(){const{eGui:e,column:t,comp:o,beans:r}=this,n=$v(this.beans),i=n.reduce((g,m)=>g+m,0)===0;if(o.toggleCss("ag-header-parent-hidden",i),!t.isSpanHeaderHeight()){e.style.removeProperty("top"),e.style.removeProperty("height"),o.toggleCss("ag-header-span-height",!1),o.toggleCss("ag-header-span-total",!1);return}const{numberOfParents:s,isSpanningTotal:a}=this.column.getColumnGroupPaddingInfo();o.toggleCss("ag-header-span-height",s>0);const c=Kv(r);if(s===0){o.toggleCss("ag-header-span-total",!1),e.style.setProperty("top","0px"),e.style.setProperty("height",`${c}px`);return}o.toggleCss("ag-header-span-total",a);const d=(this.column.getFirstRealParent()?.getLevel()??-1)+1,h=n.length-d;let f=0;for(let g=0;g<h;g++)f+=n[n.length-1-g];e.style.setProperty("top",`${-f}px`),e.style.setProperty("height",`${c+f}px`)}refreshAriaSort(){let e=null;const{beans:t,column:o,comp:r,sortable:n}=this;if(n){const i=this.getLocaleTextFunc(),s=t.sortSvc?.getDisplaySortForColumn(o)??null;r.setAriaSort(v8(s)),e=i("ariaSortableColumn","Press ENTER to sort")}else r.setAriaSort();this.setAriaDescriptionProperty("sort",e)}refreshAriaMenu(){let e=null;this.menuEnabled&&(e=this.getLocaleTextFunc()("ariaMenuColumn","Press ALT DOWN to open column menu")),this.setAriaDescriptionProperty("menu",e)}refreshAriaFilterButton(){let e=null;const{openFilterEnabled:t,gos:o}=this;t&&!Yo(o)&&(e=this.getLocaleTextFunc()("ariaFilterColumn","Press CTRL ENTER to open filter")),this.setAriaDescriptionProperty("filterButton",e)}refreshAriaFiltered(){let e=null;this.column.isFilterActive()&&(e=this.getLocaleTextFunc()("ariaColumnFiltered","Column Filtered")),this.setAriaDescriptionProperty("filter",e)}refreshAriaCellSelection(){let e=null;const{gos:t,column:o,beans:r}=this;if(Qa(t)){const i=this.getLocaleTextFunc(),s=r.rangeSvc?.isColumnInAnyRange(o);e=i("ariaColumnCellSelection",`Press CTRL+SPACE to ${s?"de":""}select all visible cells in this column`)}this.setAriaDescriptionProperty("cellSelection",e)}setAriaDescriptionProperty(e,t){const o=this.ariaDescriptionProperties;t!=null?o.set(e,t):o.delete(e)}announceAriaDescription(){const{beans:e,eGui:t,ariaDescriptionProperties:o}=this;if(!t.contains(Mt(e)))return;const r=Array.from(o.keys()).sort((n,i)=>n==="filter"?-1:i.charCodeAt(0)-n.charCodeAt(0)).map(n=>o.get(n)).join(". ");e.ariaAnnounce?.announceValue(r,"columnHeader")}refreshAria(){this.refreshAriaSort(),this.refreshAriaMenu(),this.refreshAriaFilterButton(),this.refreshAriaFiltered(),this.refreshAriaCellSelection()}addColumnHoverListener(e){this.beans.colHover?.addHeaderColumnHoverListener(e,this.comp,this.column)}addActiveHeaderMouseListeners(e){const t=n=>this.handleMouseOverChange(n.type==="mouseenter"),o=()=>{this.setActiveHeader(!0),this.dispatchColumnMouseEvent("columnHeaderClicked",this.column)},r=n=>this.handleContextMenuMouseEvent(n,void 0,this.column);e.addManagedListeners(this.eGui,{mouseenter:t,mouseleave:t,click:o,contextmenu:r})}handleMouseOverChange(e){this.setActiveHeader(e),this.eventSvc.dispatchEvent({type:e?"columnHeaderMouseOver":"columnHeaderMouseLeave",column:this.column})}setActiveHeader(e){this.comp.toggleCss("ag-header-active",e)}getAnchorElementForMenu(e){const t=this.comp.getUserCompInstance();return NR(t)?t.getAnchorElementForMenu(e):this.eGui}destroy(){this.tooltipFeature=this.destroyBean(this.tooltipFeature),super.destroy()}};function NR(e){return typeof e?.getAnchorElementForMenu=="function"&&typeof e.onMenuKeyboardShortcut=="function"}var dW=0,Yv=class extends ue{constructor(e,t,o){super(),this.rowIndex=e,this.pinned=t,this.type=o,this.instanceId=dW++,this.comp=null,this.allCtrls=[];let r="ag-header-row-column";o==="group"?r="ag-header-row-group":o==="filter"&&(r="ag-header-row-filter"),this.headerRowClass=`ag-header-row ${r}`}setRowIndex(e){this.rowIndex=e,this.comp?.setRowIndex(this.getAriaRowIndex()),this.onRowHeightChanged()}postConstruct(){this.isPrintLayout=po(this.gos,"print"),this.isEnsureDomOrder=this.gos.get("ensureDomOrder")}areCellsRendered(){return this.comp?this.allCtrls.every(e=>e.eGui!=null):!1}setComp(e,t,o=!0){this.comp=e,t=Gc(this,this.beans.context,t),o&&(this.setRowIndex(this.rowIndex),this.onVirtualColumnsChanged()),this.setWidth(),this.addEventListeners(t)}getAriaRowIndex(){return this.rowIndex+1}addEventListeners(e){const t=this.onRowHeightChanged.bind(this),o=this.onDisplayedColumnsChanged.bind(this);e.addManagedEventListeners({columnResized:this.setWidth.bind(this),displayedColumnsChanged:o,virtualColumnsChanged:r=>this.onVirtualColumnsChanged(r.afterScroll),columnGroupHeaderHeightChanged:t,columnHeaderHeightChanged:t,stylesChanged:t,advancedFilterEnabledChanged:t}),e.addManagedPropertyListener("domLayout",o),e.addManagedPropertyListener("ensureDomOrder",r=>this.isEnsureDomOrder=r.currentValue),e.addManagedPropertyListeners(["headerHeight","pivotHeaderHeight","groupHeaderHeight","pivotGroupHeaderHeight","floatingFiltersHeight"],t)}onDisplayedColumnsChanged(){this.isPrintLayout=po(this.gos,"print"),this.onVirtualColumnsChanged(),this.setWidth(),this.onRowHeightChanged()}setWidth(){if(!this.comp)return;const e=this.getWidthForRow();this.comp.setWidth(`${e}px`)}getWidthForRow(){const{visibleCols:e}=this.beans;return this.isPrintLayout?this.pinned!=null?0:e.getContainerWidth("right")+e.getContainerWidth("left")+e.getContainerWidth(null):e.getContainerWidth(this.pinned)}onRowHeightChanged(){if(!this.comp)return;const{topOffset:e,rowHeight:t}=this.getTopAndHeight();this.comp.setTop(e+"px"),this.comp.setHeight(t+"px")}getTopAndHeight(){let e=0;const t=$v(this.beans);for(let n=0;n<t.length;n++){if(n===this.rowIndex&&this.type==="group")return{topOffset:e,rowHeight:t[n]};e+=t[n]}const o=Kv(this.beans);if(this.type==="column")return{topOffset:e,rowHeight:o};e+=o;const r=IR(this.beans);return{topOffset:e,rowHeight:r}}onVirtualColumnsChanged(e=!1){if(!this.comp)return;const t=this.getUpdatedHeaderCtrls(),o=this.isEnsureDomOrder||this.isPrintLayout;this.comp.setHeaderCtrls(t,o,e)}getUpdatedHeaderCtrls(){const e=this.ctrlsById;this.ctrlsById=new Map;const t=this.getColumnsInViewport();for(const r of t)this.recycleAndCreateHeaderCtrls(r,this.ctrlsById,e);const o=r=>{const{focusSvc:n,visibleCols:i}=this.beans;return n.isHeaderWrapperFocused(r)?i.isVisible(r.column):!1};if(e)for(const[r,n]of e)o(n)?this.ctrlsById.set(r,n):this.destroyBean(n);return this.allCtrls=Array.from(this.ctrlsById.values()),this.allCtrls}getHeaderCellCtrls(){return this.allCtrls}recycleAndCreateHeaderCtrls(e,t,o){if(e.isEmptyGroup())return;const r=e.getUniqueId();let n;if(o&&(n=o.get(r),o.delete(r)),n&&n.column!=e&&(this.destroyBean(n),n=void 0),n==null)switch(this.type){case"filter":{n=this.createBean(this.beans.registry.createDynamicBean("headerFilterCellCtrl",!0,e,this));break}case"group":n=this.createBean(this.beans.registry.createDynamicBean("headerGroupCellCtrl",!0,e,this));break;default:n=this.createBean(new uW(e,this));break}t.set(r,n)}getColumnsInViewport(){if(!this.isPrintLayout)return this.getComponentsToRender();if(this.pinned)return[];const e=[];for(const t of["left",null,"right"])e.push(...this.getComponentsToRender(t));return e}getComponentsToRender(e=this.pinned){return this.type==="group"?this.beans.colViewport.getHeadersToRender(e,this.rowIndex):this.beans.colViewport.getColumnHeadersToRender(e)}focusHeader(e,t){const o=this.allCtrls.find(n=>n.column==e);return o?o.focus(t):!1}destroy(){this.allCtrls=this.destroyBeans(this.allCtrls),this.ctrlsById=void 0,this.comp=null,super.destroy()}},hW=class extends ue{constructor(e){super(),this.pinned=e,this.hidden=!1,this.includeFloatingFilter=!1,this.groupsRowCtrls=[]}setComp(e,t){this.comp=e,this.eViewport=t;const{pinnedCols:o,ctrlsSvc:r,colModel:n,colMoves:i}=this.beans;this.setupCenterWidth(),o?.setupHeaderPinnedWidth(this),this.setupDragAndDrop(i,this.eViewport);const s=this.refresh.bind(this,!0);this.addManagedEventListeners({displayedColumnsChanged:s,advancedFilterEnabledChanged:s});const a=`${typeof this.pinned=="string"?this.pinned:"center"}Header`;r.register(a,this),n.ready&&this.refresh()}getAllCtrls(){const e=[...this.groupsRowCtrls];return this.columnsRowCtrl&&e.push(this.columnsRowCtrl),this.filtersRowCtrl&&e.push(this.filtersRowCtrl),e}refresh(e=!1){const{focusSvc:t,filterManager:o,visibleCols:r}=this.beans;let n=0;const i=t.getFocusHeaderToUseAfterRefresh(),s=()=>{const f=r.headerGroupRowCount;n=f,e||(this.groupsRowCtrls=this.destroyBeans(this.groupsRowCtrls));const g=this.groupsRowCtrls.length;if(g!==f){if(g>f){for(let m=f;m<g;m++)this.destroyBean(this.groupsRowCtrls[m]);this.groupsRowCtrls.length=f;return}for(let m=g;m<f;m++){const b=this.createBean(new Yv(m,this.pinned,"group"));this.groupsRowCtrls.push(b)}}},a=()=>{const f=n++;if(this.hidden){this.columnsRowCtrl=this.destroyBean(this.columnsRowCtrl);return}this.columnsRowCtrl==null||!e?(this.columnsRowCtrl=this.destroyBean(this.columnsRowCtrl),this.columnsRowCtrl=this.createBean(new Yv(f,this.pinned,"column"))):this.columnsRowCtrl.rowIndex!==f&&this.columnsRowCtrl.setRowIndex(f)},c=()=>{this.includeFloatingFilter=!!o?.hasFloatingFilters()&&!this.hidden;const f=()=>{this.filtersRowCtrl=this.destroyBean(this.filtersRowCtrl)};if(!this.includeFloatingFilter){f();return}e||f();const g=n++;this.filtersRowCtrl?this.filtersRowCtrl.rowIndex!==g&&this.filtersRowCtrl.setRowIndex(g):this.filtersRowCtrl=this.createBean(new Yv(g,this.pinned,"filter"))},d=this.getAllCtrls();s(),a(),c();const h=this.getAllCtrls();this.comp.setCtrls(h),this.restoreFocusOnHeader(t,i),d.length!==h.length&&this.beans.eventSvc.dispatchEvent({type:"headerRowsChanged"})}getHeaderCtrlForColumn(e){const t=o=>o?.getHeaderCellCtrls().find(r=>r.column===e);if(Ti(e))return t(this.columnsRowCtrl);if(this.groupsRowCtrls.length!==0)for(let o=0;o<this.groupsRowCtrls.length;o++){const r=t(this.groupsRowCtrls[o]);if(r)return r}}getHtmlElementForColumnHeader(e){return this.getHeaderCtrlForColumn(e)?.eGui??null}getRowType(e){return this.getAllCtrls()[e]?.type}focusHeader(e,t,o){const n=this.getAllCtrls()[e];return n?n.focusHeader(t,o):!1}getGroupRowCount(){return this.groupsRowCtrls.length}getGroupRowCtrlAtIndex(e){return this.groupsRowCtrls[e]}getRowCount(){return this.groupsRowCtrls.length+(this.columnsRowCtrl?1:0)+(this.filtersRowCtrl?1:0)}setHorizontalScroll(e){this.comp.setViewportScrollLeft(e)}onScrollCallback(e){this.addManagedElementListeners(this.eViewport,{scroll:e})}destroy(){this.filtersRowCtrl=this.destroyBean(this.filtersRowCtrl),this.columnsRowCtrl=this.destroyBean(this.columnsRowCtrl),this.groupsRowCtrls=this.destroyBeans(this.groupsRowCtrls),super.destroy()}setupDragAndDrop(e,t){const o=e?.createBodyDropTarget(this.pinned,t);o&&this.createManagedBean(o)}restoreFocusOnHeader(e,t){if(!t)return;const{column:o}=t;o.getPinned()==this.pinned&&e.focusHeaderPosition({headerPosition:t,scroll:!1})}setupCenterWidth(){this.pinned==null&&this.createManagedBean(new Hv(e=>this.comp.setCenterWidth(`${e}px`),!0))}},fW=class extends ue{constructor(){super(...arguments),this.beanName="menuSvc"}postConstruct(){const{enterpriseMenuFactory:e,filterMenuFactory:t}=this.beans;this.activeMenuFactory=e??t}showColumnMenu(e){this.showColumnMenuCommon(this.activeMenuFactory,e,"columnMenu")}showFilterMenu(e){this.showColumnMenuCommon(zR(this.beans),e,e.containerType,!0)}showHeaderContextMenu(e,t,o){this.activeMenuFactory?.showMenuAfterContextMenuEvent(e,t,o)}hidePopupMenu(){this.beans.contextMenuSvc?.hideActiveMenu(),this.activeMenuFactory?.hideActiveMenu()}hideFilterMenu(){zR(this.beans)?.hideActiveMenu()}isColumnMenuInHeaderEnabled(e){const{suppressHeaderMenuButton:t}=e.getColDef();return!t&&!!this.activeMenuFactory?.isMenuEnabled(e)&&(Yo(this.gos)||!!this.beans.enterpriseMenuFactory)}isFilterMenuInHeaderEnabled(e){return!e.getColDef().suppressHeaderFilterButton&&!!this.beans.filterManager?.isFilterAllowed(e)}isHeaderContextMenuEnabled(e){return!(e&&Ti(e)?e.getColDef():e?.getColGroupDef())?.suppressHeaderContextMenu&&this.gos.get("columnMenu")==="new"}isHeaderMenuButtonAlwaysShowEnabled(){return this.isSuppressMenuHide()}isHeaderMenuButtonEnabled(){const e=!this.isSuppressMenuHide();return!(Hs()&&e)}isHeaderFilterButtonEnabled(e){return this.isFilterMenuInHeaderEnabled(e)&&!Yo(this.gos)&&!this.isFloatingFilterButtonDisplayed(e)}isFilterMenuItemEnabled(e){return!!this.beans.filterManager?.isFilterAllowed(e)&&!Yo(this.gos)&&!this.isFilterMenuInHeaderEnabled(e)&&!this.isFloatingFilterButtonDisplayed(e)}isFloatingFilterButtonEnabled(e){return!e.getColDef().suppressFloatingFilterButton}isFloatingFilterButtonDisplayed(e){return!!e.getColDef().floatingFilter&&this.isFloatingFilterButtonEnabled(e)}isSuppressMenuHide(){const e=this.gos,t=e.get("suppressMenuHide");return Yo(e)?e.exists("suppressMenuHide")?t:!1:t}showColumnMenuCommon(e,t,o,r){const{positionBy:n,onClosedCallback:i}=t,s=t.column;if(n==="button"){const{buttonElement:a}=t;e?.showMenuAfterButtonClick(s,a,o,i,r)}else if(n==="mouse"){const{mouseEvent:a}=t;e?.showMenuAfterMouseEvent(s,a,o,i,r)}else if(s){const a=this.beans,c=a.ctrlsSvc;c.getScrollFeature().ensureColumnVisible(s,"auto"),Yn(a,()=>{const d=c.getHeaderRowContainerCtrl(s.getPinned())?.getHeaderCtrlForColumn(s);d&&e?.showMenuAfterButtonClick(s,d.getAnchorElementForMenu(r),o,i,r)})}}};function LR(e,t,o){e.menuVisible!==t&&(e.menuVisible=t,e.dispatchColEvent("menuVisibleChanged",o))}function zR(e){const{enterpriseMenuFactory:t,filterMenuFactory:o,gos:r}=e;return t&&Yo(r)?t:o}var Qv=class extends uv{constructor(){super(...arguments),this.errorMessages=null}init(e){this.params=e,this.initialiseEditor(e),this.eEditor.onValueChange(()=>e.validate())}destroy(){this.errorMessages=null}},Jh=class extends Ro{constructor(){super()}};function pW(e,t,o){const r=zi(e,t,o);if(r){const{className:i}=r;if(typeof i=="string"&&i.includes("ag-icon")||typeof i=="object"&&i["ag-icon"])return r}const n=Ni({tag:"span"});return n.appendChild(r),n}function zi(e,t,o){let r=null;e==="smallDown"?he(262):e==="smallLeft"?he(263):e==="smallRight"&&he(264);const n=o?.getColDef().icons;if(n&&(r=n[e]),t.gos&&!r){const i=t.gos.get("icons");i&&(r=i[e])}if(r){let i;if(typeof r=="function")i=r();else if(typeof r=="string")i=r;else{he(38,{iconName:e});return}if(typeof i=="string")return Nm(i);if(Pk(i))return i;he(133,{iconName:e});return}else{const i=t.registry.getIcon(e);return i||t.validation?.validateIcon(e),Ni({tag:"span",cls:`ag-icon ag-icon-${i??e}`,role:"presentation",attrs:{unselectable:"on"}})}}var gW={tag:"div",cls:"ag-overlay-loading-center",children:[{tag:"span",ref:"eLoadingIcon",cls:"ag-loading-icon"},{tag:"span",ref:"eLoadingText",cls:"ag-loading-text"}]},mW=class extends Jh{constructor(){super(...arguments),this.eLoadingIcon=Te,this.eLoadingText=Te}init(e){const{beans:t,gos:o}=this,r=Pi(o.get("overlayLoadingTemplate")?.trim());if(this.setTemplate(r??gW),!r){const n=zi("overlayLoading",t,null);n&&this.eLoadingIcon.appendChild(n);const i=e.loading?.overlayText??this.getLocaleTextFunc()("loadingOoo","Loading...");this.eLoadingText.textContent=i,t.ariaAnnounce.announceValue(i,"overlay")}}},vW={tag:"div",cls:"ag-overlay-exporting-center",children:[{tag:"span",ref:"eExportingIcon",cls:"ag-loading-icon"},{tag:"span",ref:"eExportingText",cls:"ag-exporting-text"}]},bW=class extends Jh{constructor(){super(...arguments),this.eExportingIcon=Te,this.eExportingText=Te}init(e){const{beans:t}=this;this.setTemplate(vW);const o=zi("overlayExporting",t,null);o&&this.eExportingIcon.appendChild(o);const r=e.exporting?.overlayText??this.getLocaleTextFunc()("exportingOoo","Exporting...");this.eExportingText.textContent=r,t.ariaAnnounce.announceValue(r,"overlay")}},wW={tag:"span",cls:"ag-overlay-no-rows-center"},CW=class extends Jh{init(e){const{beans:t,gos:o}=this,r=Pi(o.get("overlayNoRowsTemplate")?.trim());if(this.setTemplate(r??wW),!r){const n=e.noRows?.overlayText??this.getLocaleTextFunc()("noRowsToShow","No Rows To Show");this.getGui().textContent=n,t.ariaAnnounce.announceValue(n,"overlay")}}},yW={tag:"span",cls:"ag-overlay-no-matching-rows-center"},SW=class extends Jh{init(e){const{beans:t}=this;this.setTemplate(yW);const o=e.noMatchingRows?.overlayText??this.getLocaleTextFunc()("noMatchingRows","No Matching Rows");this.getGui().textContent=o,t.ariaAnnounce.announceValue(o,"overlay")}},xW=".ag-dnd-ghost{align-items:center;background-color:var(--ag-drag-and-drop-image-background-color);border:var(--ag-drag-and-drop-image-border);border-radius:var(--ag-border-radius);box-shadow:var(--ag-drag-and-drop-image-shadow);color:var(--ag-text-color);cursor:move;display:flex;font-weight:500;gap:var(--ag-cell-widget-spacing);height:var(--ag-header-height);overflow:hidden;padding-left:var(--ag-cell-horizontal-padding);padding-right:var(--ag-cell-horizontal-padding);text-overflow:ellipsis;transform:translateY(calc(var(--ag-spacing)*2));white-space:nowrap}.ag-dnd-ghost-not-allowed{border:var(--ag-drag-and-drop-image-not-allowed-border)}",kW={tag:"div",children:[{tag:"div",ref:"eGhost",cls:"ag-dnd-ghost ag-unselectable",children:[{tag:"span",ref:"eIcon",cls:"ag-dnd-ghost-icon ag-shake-left-to-right"},{tag:"div",ref:"eLabel",cls:"ag-dnd-ghost-label"}]}]},FW=class extends Ro{constructor(){super(),this.dragSource=null,this.eIcon=Te,this.eLabel=Te,this.eGhost=Te,this.registerCSS(xW)}postConstruct(){const e=t=>pW(t,this.beans,null);this.dropIconMap={pinned:e("columnMovePin"),hide:e("columnMoveHide"),move:e("columnMoveMove"),left:e("columnMoveLeft"),right:e("columnMoveRight"),group:e("columnMoveGroup"),aggregate:e("columnMoveValue"),pivot:e("columnMovePivot"),notAllowed:e("dropNotAllowed")}}init(e){this.dragSource=e.dragSource,this.setTemplate(kW),this.beans.environment.applyThemeClasses(this.eGhost)}destroy(){this.dragSource=null,super.destroy()}setIcon(e,t){const{eGhost:o,eIcon:r,dragSource:n,dropIconMap:i,gos:s}=this;Kn(r);let a=null;e||(e=n?.getDefaultIconName?n.getDefaultIconName():"notAllowed"),a=i[e],o.classList.toggle("ag-dnd-ghost-not-allowed",e==="notAllowed"),r.classList.toggle("ag-shake-left-to-right",t),!(a===i.hide&&s.get("suppressDragLeaveHidesColumns"))&&a&&r.appendChild(a)}setLabel(e){this.eLabel.textContent=e}},RW=".ag-checkbox-cell{height:100%}",EW={tag:"div",cls:"ag-cell-wrapper ag-checkbox-cell",role:"presentation",children:[{tag:"ag-checkbox",ref:"eCheckbox",role:"presentation"}]},_W=class extends Ro{constructor(){super(EW,[Fv]),this.eCheckbox=Te,this.registerCSS(RW)}init(e){this.refresh(e);const{eCheckbox:t,beans:o}=this,r=t.getInputElement();r.setAttribute("tabindex","-1"),wk(r,"polite"),this.addManagedListeners(r,{click:n=>{if(js(n),t.isDisabled())return;const i=t.getValue();this.onCheckboxChanged(i)},dblclick:n=>{js(n)}}),this.addManagedElementListeners(e.eGridCell,{keydown:n=>{if(n.key===ee.SPACE&&!t.isDisabled()){e.eGridCell===Mt(o)&&t.toggle();const i=t.getValue();this.onCheckboxChanged(i),n.preventDefault()}}})}refresh(e){return this.params=e,this.updateCheckbox(e),!0}updateCheckbox(e){let t,o=!0;const{value:r,column:n,node:i}=e;if(i.group&&n)if(typeof r=="boolean")t=r;else{const f=n.getColId();f.startsWith(_h)?t=r==null||r===""?void 0:r==="true":i.aggData&&i.aggData[f]!==void 0||i.sourceRowIndex>=0?t=r??void 0:o=!1}else t=r??void 0;const{eCheckbox:s}=this;if(!o){s.setDisplayed(!1);return}s.setValue(t);const a=e.disabled??!n?.isCellEditable(i);s.setDisabled(a);const c=this.getLocaleTextFunc(),d=ih(c,t),h=a?d:`${c("ariaToggleCellValue","Press SPACE to toggle cell value")} (${d})`;s.setInputAriaLabel(h)}onCheckboxChanged(e){const{params:t}=this,{column:o,node:r,value:n}=t,{editSvc:i}=this.beans;if(!o)return;const s={rowNode:r,column:o};i?.dispatchCellEvent(s,null,"cellEditingStarted",{value:n});const a=r.setDataValue(o,e,"ui");i?.dispatchCellEvent(s,null,"cellEditingStopped",{oldValue:n,newValue:e,valueChanged:a}),a||this.updateCheckbox(t)}},PW=e=>{let t=e.childrenAfterGroup;for(;t?.length;){const o=t[0];if(o.sourceRowIndex>=0)return o;t=o.childrenAfterGroup}},Jv=class{constructor(){this.reordered=!1,this.removals=[],this.updates=new Set,this.adds=new Set}};function Yc(e){return!!(e.rowPinned&&e.pinnedSibling)}function vr(e,t,o,r){const n=t==="top";if(!o)return vr(e,t,n?e.getPinnedTopRow(0):e.getPinnedBottomRow(0),r);if(!r){const c=n?e.getPinnedTopRowCount():e.getPinnedBottomRowCount();return vr(e,t,o,n?e.getPinnedTopRow(c-1):e.getPinnedBottomRow(c-1))}let i=!1,s=!1;const a=[];return e.forEachPinnedRow(t,c=>{if(c===o&&!i){i=!0,a.push(c);return}if(i&&c===r){s=!0,a.push(c);return}i&&!s&&a.push(c)}),a}var DW={tag:"div",cls:"ag-selection-checkbox",role:"presentation",children:[{tag:"ag-checkbox",ref:"eCheckbox",role:"presentation"}]},TW=class extends Ro{constructor(){super(DW,[Fv]),this.eCheckbox=Te}postConstruct(){this.eCheckbox.setPassive(!0)}onDataChanged(){this.onSelectionChanged()}onSelectableChanged(){this.showOrHideSelect()}onSelectionChanged(){const e=this.getLocaleTextFunc(),{rowNode:t,eCheckbox:o}=this,r=t.isSelected(),n=ih(e,r),[i,s]=t.selectable?["ariaRowToggleSelection","Press Space to toggle row selection"]:["ariaRowSelectionDisabled","Row Selection is disabled for this row"],a=e(i,s);o.setValue(r,!0),o.setInputAriaLabel(`${a} (${n})`)}init(e){if(this.rowNode=e.rowNode,this.column=e.column,this.overrides=e.overrides,this.onSelectionChanged(),this.addManagedListeners(this.eCheckbox.getWrapperElement(),{dblclick:js,click:r=>{js(r),!this.eCheckbox.isDisabled()&&this.beans.selectionSvc?.handleSelectionEvent(r,this.rowNode,"checkboxSelected")}}),this.addManagedListeners(this.rowNode,{rowSelected:this.onSelectionChanged.bind(this),dataChanged:this.onDataChanged.bind(this),selectableChanged:this.onSelectableChanged.bind(this)}),this.addManagedPropertyListener("rowSelection",({currentValue:r,previousValue:n})=>{const i=typeof r=="object"?ov(r):void 0,s=typeof n=="object"?ov(n):void 0;i!==s&&this.onSelectableChanged()}),rv(this.gos)||typeof this.getIsVisible()=="function"){const r=this.showOrHideSelect.bind(this);this.addManagedEventListeners({displayedColumnsChanged:r}),this.addManagedListeners(this.rowNode,{dataChanged:r,cellChanged:r}),this.showOrHideSelect()}this.eCheckbox.getInputElement().setAttribute("tabindex","-1")}showOrHideSelect(){const{column:e,rowNode:t,overrides:o,gos:r}=this,n=t.selectable,i=this.getIsVisible();let s;if(typeof i=="function"){const f=o?.callbackParams;if(!e)s=i({...f,node:t,data:t.data});else{const g=e.createColumnFunctionCallbackParams(t);s=i({...f,...g})}}else s=i??!1;const a=n&&!s||!n&&s,c=n||s,d=r.get("rowSelection"),h=d&&typeof d!="string"?!ov(d):!!e?.getColDef().showDisabledCheckboxes;this.setVisible(c&&(a?h:!0)),this.setDisplayed(c&&(a?h:!0)),c&&this.eCheckbox.setDisabled(a),o?.removeHidden&&this.setDisplayed(c)}getIsVisible(){const e=this.overrides;if(e)return e.isVisible;const t=this.gos.get("rowSelection");return t&&typeof t!="string"?Ya(t):this.column?.getColDef()?.checkboxSelection}},MW=class{constructor(e,t){this.rowModel=e,this.pinnedRowModel=t,this.selectAll=!1,this.rootId=null,this.endId=null,this.cachedRange=[]}reset(){this.rootId=null,this.endId=null,this.cachedRange.length=0}setRoot(e){this.rootId=e.id,this.endId=null,this.cachedRange.length=0}setEndRange(e){this.endId=e.id,this.cachedRange.length=0}getRange(){if(this.cachedRange.length===0){const e=this.getRoot(),t=this.getEnd();if(e==null||t==null)return this.cachedRange;this.cachedRange=this.getNodesInRange(e,t)??[]}return this.cachedRange}isInRange(e){return this.rootId===null?!1:this.getRange().some(t=>t.id===e.id)}getRoot(e){if(this.rootId)return this.getRowNode(this.rootId);if(e)return this.setRoot(e),e}getEnd(){if(this.endId)return this.getRowNode(this.endId)}getRowNode(e){let t;const{rowModel:o,pinnedRowModel:r}=this;return t??(t=o.getRowNode(e)),r?.isManual()&&(t??(t=r.getPinnedRowById(e,"top")),t??(t=r.getPinnedRowById(e,"bottom"))),t}truncate(e){const t=this.getRange();if(t.length===0)return{keep:[],discard:[]};const o=t[0].id===this.rootId,r=t.findIndex(n=>n.id===e.id);if(r>-1){const n=t.slice(0,r),i=t.slice(r+1);return this.setEndRange(e),o?{keep:n,discard:i}:{keep:i,discard:n}}else return{keep:t,discard:[]}}extend(e,t=!1){const o=this.getRoot();if(o==null){const n=this.getRange().slice();return t&&e.depthFirstSearch(i=>!i.group&&n.push(i)),n.push(e),this.setRoot(e),{keep:n,discard:[]}}const r=this.getNodesInRange(o,e);if(!r)return this.setRoot(e),{keep:[e],discard:[]};if(r.find(n=>n.id===this.endId))return this.setEndRange(e),{keep:this.getRange(),discard:[]};{const n=this.getRange().slice();return this.setEndRange(e),{keep:this.getRange(),discard:n}}}getNodesInRange(e,t){const{pinnedRowModel:o,rowModel:r}=this;if(!o?.isManual())return r.getNodesInRangeForSelection(e,t);if(e.rowPinned==="top"&&!t.rowPinned)return vr(o,"top",e,void 0).concat(r.getNodesInRangeForSelection(r.getRow(0),t)??[]);if(e.rowPinned==="bottom"&&!t.rowPinned){const n=vr(o,"bottom",void 0,e),i=r.getRowCount(),s=r.getRow(i-1);return(r.getNodesInRangeForSelection(t,s)??[]).concat(n)}if(!e.rowPinned&&!t.rowPinned)return r.getNodesInRangeForSelection(e,t);if(e.rowPinned==="top"&&t.rowPinned==="top")return vr(o,"top",e,t);if(e.rowPinned==="bottom"&&t.rowPinned==="top"){const n=vr(o,"top",t,void 0),i=vr(o,"bottom",void 0,e),s=r.getRow(0),a=r.getRow(r.getRowCount()-1);return n.concat(r.getNodesInRangeForSelection(s,a)??[]).concat(i)}if(!e.rowPinned&&t.rowPinned==="top")return vr(o,"top",t,void 0).concat(r.getNodesInRangeForSelection(r.getRow(0),e)??[]);if(e.rowPinned==="top"&&t.rowPinned==="bottom"){const n=vr(o,"top",e,void 0),i=vr(o,"bottom",void 0,t),s=r.getRow(0),a=r.getRow(r.getRowCount()-1);return n.concat(r.getNodesInRangeForSelection(s,a)??[]).concat(i)}if(e.rowPinned==="bottom"&&t.rowPinned==="bottom")return vr(o,"bottom",e,t);if(!e.rowPinned&&t.rowPinned==="bottom"){const n=vr(o,"bottom",void 0,t),i=r.getRow(r.getRowCount());return(r.getNodesInRangeForSelection(e,i)??[]).concat(n)}return null}},AW=class extends ue{constructor(e){super(),this.column=e,this.cbSelectAllVisible=!1,this.processingEventFromCheckbox=!1}onSpaceKeyDown(e){const t=this.cbSelectAll;t.isDisplayed()&&!t.getGui().contains(Mt(this.beans))&&(e.preventDefault(),t.setValue(!t.getValue()))}getCheckboxGui(){return this.cbSelectAll.getGui()}setComp(e){this.headerCellCtrl=e;const t=this.createManagedBean(new kv);this.cbSelectAll=t,t.addCss("ag-header-select-all"),ja(t.getGui(),"presentation"),this.showOrHideSelectAll();const o=this.updateStateOfCheckbox.bind(this);this.addManagedEventListeners({newColumnsLoaded:()=>this.showOrHideSelectAll(),displayedColumnsChanged:this.onDisplayedColumnsChanged.bind(this),selectionChanged:o,paginationChanged:o,modelUpdated:o}),this.addManagedPropertyListener("rowSelection",({currentValue:r,previousValue:n})=>{const i=s=>typeof s=="string"||!s||s.mode==="singleRow"?void 0:s.selectAll;i(r)!==i(n)&&this.showOrHideSelectAll(),this.updateStateOfCheckbox()}),this.addManagedListeners(t,{fieldValueChanged:this.onCbSelectAll.bind(this)}),t.getInputElement().setAttribute("tabindex","-1"),this.refreshSelectAllLabel()}onDisplayedColumnsChanged(e){this.isAlive()&&this.showOrHideSelectAll(e.source==="uiColumnMoved")}showOrHideSelectAll(e=!1){const t=this.isCheckboxSelection();this.cbSelectAllVisible=t,this.cbSelectAll.setDisplayed(t),t&&(this.checkRightRowModelType("selectAllCheckbox"),this.checkSelectionType("selectAllCheckbox"),this.updateStateOfCheckbox()),this.refreshSelectAllLabel(e)}updateStateOfCheckbox(){if(!this.cbSelectAllVisible||this.processingEventFromCheckbox)return;this.processingEventFromCheckbox=!0;const e=this.getSelectAllMode(),t=this.beans.selectionSvc,o=this.cbSelectAll,r=t.getSelectAllState(e);o.setValue(r);const n=t.hasNodesToSelect(e);o.setDisabled(!n),this.refreshSelectAllLabel(),this.processingEventFromCheckbox=!1}refreshSelectAllLabel(e=!1){const t=this.getLocaleTextFunc(),{headerCellCtrl:o,cbSelectAll:r,cbSelectAllVisible:n}=this,i=r.getValue(),s=ih(t,i),a=t("ariaRowSelectAll","Press Space to toggle all rows selection");o.setAriaDescriptionProperty("selectAll",n?`${a} (${s})`:null),r.setInputAriaLabel(t("ariaHeaderSelection","Column with Header Selection")),e||o.announceAriaDescription()}checkSelectionType(e){return Sh(this.gos)?!0:(he(128,{feature:e}),!1)}checkRightRowModelType(e){const{gos:t,rowModel:o}=this.beans;return Fo(t)||Qm(t)?!0:(he(129,{feature:e,rowModel:o.getType()}),!1)}onCbSelectAll(){if(this.processingEventFromCheckbox||!this.cbSelectAllVisible)return;const e=this.cbSelectAll.getValue(),t=this.getSelectAllMode();let o="uiSelectAll";t==="currentPage"?o="uiSelectAllCurrentPage":t==="filtered"&&(o="uiSelectAllFiltered");const r={source:o,selectAll:t},n=this.beans.selectionSvc;e?n.selectAllRowNodes(r):n.deselectAllRowNodes(r)}isCheckboxSelection(){const{column:e,gos:t,beans:o}=this,i=typeof t.get("rowSelection")=="object"?"headerCheckbox":"headerCheckboxSelection";return HR(o,e)&&this.checkRightRowModelType(i)&&this.checkSelectionType(i)}getSelectAllMode(){const e=rF(this.gos,!1);if(e)return e;const{headerCheckboxSelectionCurrentPageOnly:t,headerCheckboxSelectionFilteredOnly:o}=this.column.getColDef();return t?"currentPage":o?"filtered":"all"}destroy(){super.destroy(),this.cbSelectAll=void 0,this.headerCellCtrl=void 0}};function HR({gos:e,selectionColSvc:t},o){const r=e.get("rowSelection"),n=o.getColDef(),{headerCheckboxSelection:i}=n;let s=!1;if(typeof r=="object"){const c=ol(o),d=uF(o);(Ch(r)==="autoGroupColumn"&&d||c&&t?.isSelectionColumnEnabled())&&(s=wh(r))}else typeof i=="function"?s=i(Ze(e,{column:o,colDef:n})):s=!!i;return s}var IW=class extends ue{postConstruct(){const{gos:e,beans:t}=this;this.selectionCtx=new MW(t.rowModel,t.pinnedRowModel),this.addManagedPropertyListeners(["isRowSelectable","rowSelection"],()=>{const o=rv(e);o!==this.isRowSelectable&&(this.isRowSelectable=o,this.updateSelectable())}),this.isRowSelectable=rv(e),this.addManagedEventListeners({cellValueChanged:o=>this.updateRowSelectable(o.node),rowNodeDataChanged:o=>this.updateRowSelectable(o.node)})}destroy(){super.destroy(),this.selectionCtx.reset()}createCheckboxSelectionComponent(){return new TW}createSelectAllFeature(e){if(HR(this.beans,e))return new AW(e)}isMultiSelect(){return Sh(this.gos)}onRowCtrlSelected(e,t,o){const r=!!e.rowNode.isSelected();e.forEachGui(o,n=>{n.rowComp.toggleCss("ag-row-selected",r);const i=n.element;xk(i,r),i.contains(Mt(this.beans))&&t(n)})}announceAriaRowSelection(e){if(this.isRowSelectionBlocked(e))return;const t=e.isSelected(),o=this.beans.editSvc?.isEditing({rowNode:e});if(!e.selectable||o)return;const n=this.getLocaleTextFunc()(t?"ariaRowDeselect":"ariaRowSelect",`Press SPACE to ${t?"deselect":"select"} this row`);this.beans.ariaAnnounce?.announceValue(n,"rowSelection")}isRowSelectionBlocked(e){return!e.selectable||e.rowPinned&&!Yc(e)||!Os(this.gos)}updateRowSelectable(e,t){const o=e.rowPinned&&e.pinnedSibling?e.pinnedSibling.selectable:this.isRowSelectable?.(e)??!0;return this.setRowSelectable(e,o,t),o}setRowSelectable(e,t,o){if(e.selectable!==t){if(e.selectable=t,e.dispatchRowEvent("selectableChanged"),o)return;if(Hc(this.gos)){const n=this.calculateSelectedFromChildren(e);this.setNodesSelected({nodes:[e],newValue:n??!1,source:"selectableChanged"});return}e.isSelected()&&!e.selectable&&this.setNodesSelected({nodes:[e],newValue:!1,source:"selectableChanged"})}}calculateSelectedFromChildren(e){let t=!1,o=!1;if(!e.childrenAfterGroup?.length)return e.selectable?e.__selected:null;for(let r=0;r<e.childrenAfterGroup.length;r++){const n=e.childrenAfterGroup[r];let i=n.isSelected();if(!n.selectable){const s=this.calculateSelectedFromChildren(n);if(s===null)continue;i=s}switch(i){case!0:t=!0;break;case!1:o=!0;break;default:return}}if(!(t&&o))return t?!0:o?!1:e.selectable?e.__selected:null}selectRowNode(e,t,o,r="api"){if(t&&e.destroyed)return!1;const n=!e.selectable&&t,i=e.__selected===t;if(n||i)return!1;e.__selected=t,e.dispatchRowEvent("rowSelected");const s=e.sibling;s&&s.footer&&s.__localEventService&&s.dispatchRowEvent("rowSelected");const a=e.pinnedSibling;return a?.rowPinned&&a.__localEventService&&a.dispatchRowEvent("rowSelected"),this.eventSvc.dispatchEvent({...nj(e,this.gos,"rowSelected"),event:o||null,source:r}),!0}isCellCheckboxSelection(e,t){const o=this.gos.get("rowSelection");if(o&&typeof o!="string"){const r=ol(e)&&Ya(o);return e.isColumnFunc(t,r)}else return e.isColumnFunc(t,e.colDef.checkboxSelection)}inferNodeSelections(e,t,o,r){const{gos:n,selectionCtx:i}=this,s=e.isSelected(),a=Hc(n),c=m7(n),d=v7(n),h=this.isMultiSelect(),f=r==="rowClicked";if(f&&!(c||d))return null;if(t&&o&&h){const g=i.getRoot();if(g)if(g.isSelected()){const m=i.isInRange(e)?i.truncate(e):i.extend(e,a);return{deselect:m.discard,select:m.keep,reset:!1}}else{const m=i.extend(e,a);return{select:[],deselect:m.keep,reset:!1}}else return null}else if(t&&h){const g=i.selectAll?this.beans.rowModel.getRow(0):void 0,m=i.getRoot(g),b=i.isInRange(e)?i.truncate(e):i.extend(e,a);return{select:b.keep,deselect:b.discard,reset:i.selectAll||!!(m&&!m.isSelected())}}else if(o){if(f){const g=!s;return g&&!c||!g&&!d?null:(i.setRoot(e),{node:e,newValue:g,clearSelection:!1})}return i.setRoot(e),{node:e,newValue:!s,clearSelection:!h}}else{i.setRoot(e);const g=b7(n),m=xh(n)==="filteredDescendants",b=f&&(!g||!c);if(m&&s===void 0&&Fo(n))return{node:e,newValue:!1,checkFilteredNodes:!0,clearSelection:!h||b};if(f){const w=s?!g:c;return w===s&&!b||w&&!c||!w&&!d?null:{node:e,newValue:w,clearSelection:!h||b,keepDescendants:e.group&&a}}return{node:e,newValue:!s,clearSelection:!h||b}}}},BW=class extends j9{constructor(e){super(e,bR)}},OW=500,NW=550,ef,LW=e=>{if(!ef)ef=new WeakSet;else if(ef.has(e))return!1;return ef.add(e),!0},gl=class{constructor(e,t=!1){this.eElement=e,this.preventClick=t,this.startListener=null,this.handlers=[],this.eventSvc=void 0,this.touchStart=null,this.lastTapTime=null,this.longPressTimer=0,this.moved=!1}addEventListener(e,t){let o=this.eventSvc;if(!o){if(o===null)return;this.eventSvc=o=new Ms;const r=this.onTouchStart.bind(this);this.startListener=r,this.eElement.addEventListener("touchstart",r,{passive:!0})}o.addEventListener(e,t)}removeEventListener(e,t){this.eventSvc?.removeEventListener(e,t)}onTouchStart(e){if(this.touchStart||!LW(e))return;const t=e.touches[0];this.touchStart=t;const o=this.handlers;if(!o.length){const r=this.eElement,n=r.ownerDocument,i=this.onTouchMove.bind(this),s=this.onTouchEnd.bind(this),a=this.onTouchCancel.bind(this),c={passive:!0},d={passive:!1};hh(o,[r,"touchmove",i,c],[n,"touchcancel",a,c],[n,"touchend",s,d],[n,"contextmenu",$a,d])}this.clearLongPress(),this.longPressTimer=window.setTimeout(()=>{this.longPressTimer=0,this.touchStart===t&&!this.moved&&(this.moved=!0,this.eventSvc?.dispatchEvent({type:"longTap",touchStart:t,touchEvent:e}))},NW)}onTouchMove(e){const{moved:t,touchStart:o}=this;if(!t&&o){const r=Ua(o,e.touches);r&&!Ak(r,o,4)&&(this.clearLongPress(),this.moved=!0)}}onTouchEnd(e){const t=this.touchStart;!t||!Ua(t,e.changedTouches)||(this.moved||(this.eventSvc?.dispatchEvent({type:"tap",touchStart:t}),this.checkDoubleTap(t)),this.preventClick&&$a(e),this.cancel())}onTouchCancel(e){const t=this.touchStart;!t||!Ua(t,e.changedTouches)||(this.lastTapTime=null,this.cancel())}checkDoubleTap(e){let t=Date.now();const o=this.lastTapTime;o&&t-o>OW&&(this.eventSvc?.dispatchEvent({type:"doubleTap",touchStart:e}),t=null),this.lastTapTime=t}cancel(){this.clearLongPress(),Gm(this.handlers),this.touchStart=null}clearLongPress(){window.clearTimeout(this.longPressTimer),this.longPressTimer=0,this.moved=!1}destroy(){const e=this.startListener;e&&(this.startListener=null,this.eElement.removeEventListener("touchstart",e)),this.cancel(),this.eElement=null,this.eventSvc=null}},VR=class{constructor(e="javascript"){this.frameworkName=e,this.renderingEngine="vanilla",this.batchFrameworkComps=!1,this.wrapIncoming=t=>t(),this.wrapOutgoing=t=>t(),this.baseDocLink=`${zk}/${this.frameworkName}-data-grid`,i7(this.baseDocLink)}frameworkComponent(e){return null}isFrameworkComponent(e){return!1}getDocLink(e){return this.baseDocLink+(e?"/"+e:"")}};function zW(e){return{beanName:"gridApi",bean:e.getBean("apiFunctionSvc").api}}var HW=["licenseManager","environment","eventSvc","gos","paginationAutoPageSizeSvc","apiFunctionSvc","gridApi","registry","agCompUtils","userCompFactory","rowContainerHeight","horizontalResizeSvc","localeSvc","pinnedRowModel","dragSvc","colGroupSvc","visibleCols","popupSvc","selectionSvc","colFilter","quickFilter","filterManager","colModel","headerNavigation","pageBounds","pagination","pageBoundsListener","rowSpanSvc","stickyRowSvc","rowRenderer","expressionSvc","alignedGridsSvc","navigation","valueCache","valueSvc","autoWidthCalc","filterMenuFactory","dragAndDrop","focusSvc","cellNavigation","cellStyles","scrollVisibleSvc","sortSvc","colHover","colAnimation","autoColSvc","selectionColSvc","changeDetectionSvc","animationFrameSvc","undoRedo","colDefFactory","rowStyleSvc","rowNodeBlockLoader","rowNodeSorter","ctrlsSvc","pinnedCols","dataTypeSvc","syncSvc","overlays","stateSvc","expansionSvc","apiEventSvc","ariaAnnounce","menuSvc","colMoves","colAutosize","colFlex","colResize","pivotColsSvc","valueColsSvc","rowGroupColsSvc","colNames","colViewport","pivotResultCols","showRowGroupCols","validation"],GR=Object.fromEntries(HW.map((e,t)=>[e,t]));function VW(e,t){const o=(e.beanName?GR[e.beanName]:void 0)??Number.MAX_SAFE_INTEGER,r=(t.beanName?GR[t.beanName]:void 0)??Number.MAX_SAFE_INTEGER;return o-r}function GW(e,t){return e?.beanName==="gridDestroySvc"?-1:t?.beanName==="gridDestroySvc"?1:0}var jW=class extends ue{constructor(){super(...arguments),this.additionalFocusableContainers=new Set}setComp(e,t,o){this.view=e,this.eGridHostDiv=t,this.eGui=o,this.eGui.setAttribute("grid-id",this.beans.context.getId());const{dragAndDrop:r,ctrlsSvc:n}=this.beans;r?.registerGridDropTarget(()=>this.eGui,this),this.createManagedBean(new Nv(this.view)),this.view.setRtlClass(this.gos.get("enableRtl")?"ag-rtl":"ag-ltr");const i=Zn(this.beans,this.eGridHostDiv,this.onGridSizeChanged.bind(this));this.addDestroyFunc(()=>i()),n.register("gridCtrl",this)}isDetailGrid(){return BF(this.getGui())?.getAttribute("row-id")?.startsWith("detail")||!1}getOptionalSelectors(){const e=this.beans;return{paginationSelector:e.pagination?.getPaginationSelector(),gridHeaderDropZonesSelector:e.registry?.getSelector("AG-GRID-HEADER-DROP-ZONES"),sideBarSelector:e.sideBar?.getSelector(),statusBarSelector:e.registry?.getSelector("AG-STATUS-BAR"),watermarkSelector:e.licenseManager?.getWatermarkSelector()}}onGridSizeChanged(){this.eventSvc.dispatchEvent({type:"gridSizeChanged",clientWidth:this.eGridHostDiv.clientWidth,clientHeight:this.eGridHostDiv.clientHeight})}destroyGridUi(){this.view.destroyGridUi()}getGui(){return this.eGui}setResizeCursor(e){const{view:t}=this;if(e===!1)t.setCursor(null);else{const o=e===1?"ew-resize":"ns-resize";t.setCursor(o)}}disableUserSelect(e){this.view.setUserSelect(e?"none":null)}focusNextInnerContainer(e){const t=this.getFocusableContainers(),{indexWithFocus:o,nextIndex:r}=this.getNextFocusableIndex(t,e);if(r<0||r>=t.length)return!1;if(r===0){if(o>0){const{visibleCols:n,focusSvc:i}=this.beans,s=n.allCols,a=vt(s);if(i.focusGridView({column:a,backwards:!0}))return!0}return!1}return this.focusContainer(t[r],e)}focusInnerElement(e){if(this.gos.getCallback("focusGridInnerElement")?.({fromBottom:!!e}))return!0;const o=this.getFocusableContainers(),{focusSvc:r,visibleCols:n}=this.beans,i=n.allCols;if(e){if(o.length>1)return this.focusContainer(vt(o),e);const s=vt(i);if(r.focusGridView({column:s,backwards:e}))return!0}if(this.gos.get("headerHeight")===0||qs(this.beans)){if(r.focusGridView({column:i[0],backwards:e}))return!0;for(let s=1;s<o.length;s++)if(Vs(o[s].getGui(),e))return!0;return!1}return r.focusFirstHeader()}forceFocusOutOfContainer(e=!1){this.view.forceFocusOutOfContainer(e)}addFocusableContainer(e){this.additionalFocusableContainers.add(e)}removeFocusableContainer(e){this.additionalFocusableContainers.delete(e)}allowFocusForNextCoreContainer(e){const t=this.view.getFocusableContainers(),{nextIndex:o}=this.getNextFocusableIndex(t,e),r=t[o];r?this.focusContainer(r):this.forceFocusOutOfContainer(e)}isFocusable(){const e=this.beans;return!Uv(e)||!qs(e)||!!e.sideBar?.comp?.isDisplayed()}getNextFocusableIndex(e,t){const o=Mt(this.beans),r=e.findIndex(i=>i.getGui().contains(o)),n=r+(t?-1:1);return{indexWithFocus:r,nextIndex:n}}focusContainer(e,t){e.setAllowFocus?.(!0);const o=Vs(e.getGui(),t,!1,!0);return e.setAllowFocus?.(!1),o}getFocusableContainers(){return[...this.view.getFocusableContainers(),...this.additionalFocusableContainers]}destroy(){this.additionalFocusableContainers.clear(),super.destroy()}},Ie=(e,t)=>{for(const o of Object.keys(t))t[o]=e;return t},jR={dispatchEvent:"CommunityCore",...Ie("CommunityCore",{destroy:0,getGridId:0,getGridOption:0,isDestroyed:0,setGridOption:0,updateGridOptions:0,isModuleRegistered:0}),...Ie("GridState",{getState:0,setState:0}),...Ie("SharedRowSelection",{setNodesSelected:0,selectAll:0,deselectAll:0,selectAllFiltered:0,deselectAllFiltered:0,selectAllOnCurrentPage:0,deselectAllOnCurrentPage:0,getSelectedNodes:0,getSelectedRows:0}),...Ie("RowApi",{redrawRows:0,setRowNodeExpanded:0,getRowNode:0,addRenderedRowListener:0,getRenderedNodes:0,forEachNode:0,getFirstDisplayedRowIndex:0,getLastDisplayedRowIndex:0,getDisplayedRowAtIndex:0,getDisplayedRowCount:0}),...Ie("ScrollApi",{getVerticalPixelRange:0,getHorizontalPixelRange:0,ensureColumnVisible:0,ensureIndexVisible:0,ensureNodeVisible:0}),...Ie("KeyboardNavigation",{getFocusedCell:0,clearFocusedCell:0,setFocusedCell:0,tabToNextCell:0,tabToPreviousCell:0,setFocusedHeader:0}),...Ie("EventApi",{addEventListener:0,addGlobalListener:0,removeEventListener:0,removeGlobalListener:0}),...Ie("ValueCache",{expireValueCache:0}),...Ie("CellApi",{getCellValue:0}),...Ie("SharedMenu",{showColumnMenu:0,hidePopupMenu:0}),...Ie("Sort",{onSortChanged:0}),...Ie("PinnedRow",{getPinnedTopRowCount:0,getPinnedBottomRowCount:0,getPinnedTopRow:0,getPinnedBottomRow:0,forEachPinnedRow:0}),...Ie("Overlay",{showLoadingOverlay:0,showNoRowsOverlay:0,hideOverlay:0}),...Ie("RenderApi",{setGridAriaProperty:0,refreshCells:0,refreshHeader:0,isAnimationFrameQueueEmpty:0,flushAllAnimationFrames:0,getSizesForCurrentTheme:0,getCellRendererInstances:0}),...Ie("HighlightChanges",{flashCells:0}),...Ie("RowDrag",{addRowDropZone:0,removeRowDropZone:0,getRowDropZoneParams:0,getRowDropPositionIndicator:0,setRowDropPositionIndicator:0}),...Ie("ColumnApi",{getColumnDefs:0,getColumnDef:0,getDisplayNameForColumn:0,getColumn:0,getColumns:0,applyColumnState:0,getColumnState:0,resetColumnState:0,isPinning:0,isPinningLeft:0,isPinningRight:0,getDisplayedColAfter:0,getDisplayedColBefore:0,setColumnsVisible:0,setColumnsPinned:0,getAllGridColumns:0,getDisplayedLeftColumns:0,getDisplayedCenterColumns:0,getDisplayedRightColumns:0,getAllDisplayedColumns:0,getAllDisplayedVirtualColumns:0}),...Ie("ColumnAutoSize",{sizeColumnsToFit:0,autoSizeColumns:0,autoSizeAllColumns:0}),...Ie("ColumnGroup",{setColumnGroupOpened:0,getColumnGroup:0,getProvidedColumnGroup:0,getDisplayNameForColumnGroup:0,getColumnGroupState:0,setColumnGroupState:0,resetColumnGroupState:0,getLeftDisplayedColumnGroups:0,getCenterDisplayedColumnGroups:0,getRightDisplayedColumnGroups:0,getAllDisplayedColumnGroups:0}),...Ie("ColumnMove",{moveColumnByIndex:0,moveColumns:0}),...Ie("ColumnResize",{setColumnWidths:0}),...Ie("ColumnHover",{isColumnHovered:0}),...Ie("EditCore",{getCellEditorInstances:0,getEditingCells:0,getEditRowValues:0,stopEditing:0,startEditingCell:0,isEditing:0,validateEdit:0}),...Ie("BatchEdit",{startBatchEdit:0,cancelBatchEdit:0,commitBatchEdit:0,isBatchEditing:0}),...Ie("UndoRedoEdit",{undoCellEditing:0,redoCellEditing:0,getCurrentUndoSize:0,getCurrentRedoSize:0}),...Ie("FilterCore",{isAnyFilterPresent:0,onFilterChanged:0}),...Ie("ColumnFilter",{isColumnFilterPresent:0,getColumnFilterInstance:0,destroyFilter:0,setFilterModel:0,getFilterModel:0,getColumnFilterModel:0,setColumnFilterModel:0,showColumnFilter:0,hideColumnFilter:0,getColumnFilterHandler:0,doFilterAction:0}),...Ie("QuickFilter",{isQuickFilterPresent:0,getQuickFilter:0,resetQuickFilter:0}),...Ie("Find",{findGetActiveMatch:0,findGetTotalMatches:0,findGoTo:0,findNext:0,findPrevious:0,findGetNumMatches:0,findGetParts:0,findClearActive:0,findRefresh:0}),...Ie("Pagination",{paginationIsLastPageFound:0,paginationGetPageSize:0,paginationGetCurrentPage:0,paginationGetTotalPages:0,paginationGetRowCount:0,paginationGoToNextPage:0,paginationGoToPreviousPage:0,paginationGoToFirstPage:0,paginationGoToLastPage:0,paginationGoToPage:0}),...Ie("CsrmSsrmSharedApi",{expandAll:0,collapseAll:0}),...Ie("SsrmInfiniteSharedApi",{setRowCount:0,getCacheBlockState:0,isLastRowIndexKnown:0}),...Ie("ClientSideRowModelApi",{onGroupExpandedOrCollapsed:0,refreshClientSideRowModel:0,isRowDataEmpty:0,forEachLeafNode:0,forEachNodeAfterFilter:0,forEachNodeAfterFilterAndSort:0,applyTransaction:0,applyTransactionAsync:0,flushAsyncTransactions:0,getBestCostNodeSelection:0,onRowHeightChanged:0,resetRowHeights:0}),...Ie("CsvExport",{getDataAsCsv:0,exportDataAsCsv:0}),...Ie("InfiniteRowModel",{refreshInfiniteCache:0,purgeInfiniteCache:0,getInfiniteRowCount:0}),...Ie("AdvancedFilter",{getAdvancedFilterModel:0,setAdvancedFilterModel:0,showAdvancedFilterBuilder:0,hideAdvancedFilterBuilder:0}),...Ie("IntegratedCharts",{getChartModels:0,getChartRef:0,getChartImageDataURL:0,downloadChart:0,openChartToolPanel:0,closeChartToolPanel:0,createRangeChart:0,createPivotChart:0,createCrossFilterChart:0,updateChart:0,restoreChart:0}),...Ie("Clipboard",{copyToClipboard:0,cutToClipboard:0,copySelectedRowsToClipboard:0,copySelectedRangeToClipboard:0,copySelectedRangeDown:0,pasteFromClipboard:0}),...Ie("ExcelExport",{getDataAsExcel:0,exportDataAsExcel:0,getSheetDataForExcel:0,getMultipleSheetsAsExcel:0,exportMultipleSheetsAsExcel:0}),...Ie("SharedMasterDetail",{addDetailGridInfo:0,removeDetailGridInfo:0,getDetailGridInfo:0,forEachDetailGridInfo:0}),...Ie("ContextMenu",{showContextMenu:0}),...Ie("ColumnMenu",{showColumnChooser:0,hideColumnChooser:0}),...Ie("CellSelection",{getCellRanges:0,addCellRange:0,clearRangeSelection:0,clearCellSelection:0}),...Ie("SharedRowGrouping",{setRowGroupColumns:0,removeRowGroupColumns:0,addRowGroupColumns:0,getRowGroupColumns:0,moveRowGroupColumn:0}),...Ie("SharedAggregation",{addAggFuncs:0,clearAggFuncs:0,setColumnAggFunc:0}),...Ie("SharedPivot",{isPivotMode:0,getPivotResultColumn:0,setValueColumns:0,getValueColumns:0,removeValueColumns:0,addValueColumns:0,setPivotColumns:0,removePivotColumns:0,addPivotColumns:0,getPivotColumns:0,setPivotResultColumns:0,getPivotResultColumns:0}),...Ie("ServerSideRowModelApi",{getServerSideSelectionState:0,setServerSideSelectionState:0,applyServerSideTransaction:0,applyServerSideTransactionAsync:0,applyServerSideRowData:0,retryServerSideLoads:0,flushServerSideAsyncTransactions:0,refreshServerSide:0,getServerSideGroupLevelState:0,onRowHeightChanged:0,resetRowHeights:0}),...Ie("SideBar",{isSideBarVisible:0,setSideBarVisible:0,setSideBarPosition:0,openToolPanel:0,closeToolPanel:0,getOpenedToolPanel:0,refreshToolPanel:0,isToolPanelShowing:0,getToolPanelInstance:0,getSideBar:0}),...Ie("StatusBar",{getStatusPanel:0}),...Ie("AiToolkit",{getStructuredSchema:0})},eb={isDestroyed:()=>!0,destroy(){},preConstruct(){},postConstruct(){},preWireBeans(){},wireBeans(){}},WW=(e,t)=>e.eventSvc.dispatchEvent(t),WR=class{};Reflect.defineProperty(WR,"name",{value:"GridApi"});var qW=class extends ue{constructor(){super(),this.beanName="apiFunctionSvc",this.api=new WR,this.fns={...eb,dispatchEvent:WW},this.preDestroyLink="";const{api:e}=this;for(const t of Object.keys(jR))e[t]=this.makeApi(t)[t]}postConstruct(){this.preDestroyLink=this.beans.frameworkOverrides.getDocLink("grid-lifecycle/#grid-pre-destroyed")}addFunction(e,t){const{fns:o,beans:r}=this;o!==eb&&(o[e]=r?.validation?.validateApiFunction(e,t)??t)}makeApi(e){return{[e]:(...t)=>{const{beans:o,fns:{[e]:r}}=this;return r?r(o,...t):this.apiNotFound(e)}}}apiNotFound(e){const{beans:t,gos:o,preDestroyLink:r}=this;if(!t)he(26,{fnName:e,preDestroyLink:r});else{const n=jR[e];o.assertModuleRegistered(n,`api.${e}`)&&he(27,{fnName:e,module:n})}}destroy(){super.destroy(),this.fns=eb,this.beans=null}};function UW(e){return e.context.getId()}function $W(e){e.gridDestroySvc.destroy()}function KW(e){return e.gridDestroySvc.destroyCalled}function XW(e,t){return e.gos.get(t)}function ZW(e,t,o){qR(e,{[t]:o})}function qR(e,t){e.gos.updateGridOptions({options:t})}function YW(e,t){const o=t.replace(/Module$/,"");return e.gos.isModuleRegistered(o)}var QW=class extends QG{shouldPreventMouseEvent(e){return this.gos.get("enableCellTextSelection")&&super.shouldPreventMouseEvent(e)}},JW=class extends ue{constructor(){super(...arguments),this.beanName="horizontalResizeSvc"}addResizeBar(e){const t={dragStartPixels:e.dragStartPixels||0,eElement:e.eResizeBar,onDragStart:this.onDragStart.bind(this,e),onDragStop:this.onDragStop.bind(this,e),onDragging:this.onDragging.bind(this,e),onDragCancel:this.onDragStop.bind(this,e),includeTouch:!0,stopPropagationForTouch:!0},{dragSvc:o}=this.beans;return o.addDragSource(t),()=>o.removeDragSource(t)}onDragStart(e,t){this.dragStartX=t.clientX,this.setResizeIcons();const o=t instanceof MouseEvent&&t.shiftKey===!0;e.onResizeStart(o)}setResizeIcons(){const e=this.beans.ctrlsSvc.get("gridCtrl");e.setResizeCursor(1),e.disableUserSelect(!0)}onDragStop(e){e.onResizeEnd(this.resizeAmount),this.resetIcons()}resetIcons(){const e=this.beans.ctrlsSvc.get("gridCtrl");e.setResizeCursor(!1),e.disableUserSelect(!1)}onDragging(e,t){this.resizeAmount=t.clientX-this.dragStartX,e.onResizing(this.resizeAmount)}},tf=class{constructor(e,t){this.active=!0,this.nodeIdsToColumns={},this.mapToItems={},this.keepingColumns=e,this.pathRoot={rowNode:t,children:null},this.mapToItems[t.id]=this.pathRoot}depthFirstSearchChangedPath(e,t){const{rowNode:o,children:r}=e;if(r)for(let n=0;n<r.length;++n)this.depthFirstSearchChangedPath(r[n],t);t(o)}depthFirstSearchEverything(e,t,o){const r=e.childrenAfterGroup;if(r)for(let n=0,i=r.length;n<i;++n){const s=r[n];s.childrenAfterGroup?this.depthFirstSearchEverything(s,t,o):o&&t(s)}t(e)}forEachChangedNodeDepthFirst(e,t=!1,o=!1){this.active&&!o?this.depthFirstSearchChangedPath(this.pathRoot,e):this.depthFirstSearchEverything(this.pathRoot.rowNode,e,t)}executeFromRootNode(e){e(this.pathRoot.rowNode)}createPathItems(e){let t=e,o=0;for(;!this.mapToItems[t.id];){const r={rowNode:t,children:null};this.mapToItems[t.id]=r,o++,t=t.parent}return o}populateColumnsMap(e,t){if(!this.keepingColumns||!t)return;let o=e;for(;o;){this.nodeIdsToColumns[o.id]||(this.nodeIdsToColumns[o.id]={});for(const r of t)this.nodeIdsToColumns[o.id][r.getId()]=!0;o=o.parent}}linkPathItems(e,t){let o=e;for(let r=0;r<t;r++){const n=this.mapToItems[o.id],i=this.mapToItems[o.parent.id];i.children||(i.children=[]),i.children.push(n),o=o.parent}}addParentNode(e,t){if(!e||e.isRowPinned())return;const o=this.createPathItems(e);this.linkPathItems(e,o),this.populateColumnsMap(e,t)}canSkip(e){return this.active&&!this.mapToItems[e.id]}getValueColumnsForNode(e,t){if(!this.keepingColumns)return t;const o=this.nodeIdsToColumns[e.id];return t.filter(n=>o[n.getId()])}getNotValueColumnsForNode(e,t){if(!this.keepingColumns)return null;const o=this.nodeIdsToColumns[e.id];return t.filter(n=>!o[n.getId()])}},UR={moduleName:"Drag",version:Ve,beans:[QW]},eq={moduleName:"SharedDragAndDrop",version:Ve,beans:[ej],dependsOn:[UR],userComponents:{agDragAndDropImage:FW},icons:{columnMovePin:"pin",columnMoveHide:"eye-slash",columnMoveMove:"arrows",columnMoveLeft:"left",columnMoveRight:"right",columnMoveGroup:"group",columnMoveValue:"aggregation",columnMovePivot:"pivot",dropNotAllowed:"not-allowed",rowDrag:"grip"}},tq={moduleName:"HorizontalResize",version:Ve,beans:[JW],dependsOn:[UR]},oq=":where(.ag-ltr) :where(.ag-column-moving){.ag-cell,.ag-header-cell,.ag-spanned-cell-wrapper{transition:left .2s}.ag-header-group-cell{transition:left .2s,width .2s}}:where(.ag-rtl) :where(.ag-column-moving){.ag-cell,.ag-header-cell,.ag-spanned-cell-wrapper{transition:right .2s}.ag-header-group-cell{transition:right .2s,width .2s}}",rq=class extends ue{constructor(){super(...arguments),this.beanName="colAnimation",this.executeNextFuncs=[],this.executeLaterFuncs=[],this.active=!1,this.activeNext=!1,this.suppressAnimation=!1,this.animationThreadCount=0}postConstruct(){this.beans.ctrlsSvc.whenReady(this,e=>this.gridBodyCtrl=e.gridBodyCtrl)}isActive(){return this.active&&!this.suppressAnimation}setSuppressAnimation(e){this.suppressAnimation=e}start(){if(this.active)return;const{gos:e}=this;e.get("suppressColumnMoveAnimation")||e.get("enableRtl")||(this.ensureAnimationCssClassPresent(),this.active=!0,this.activeNext=!0)}finish(){this.active&&this.flush(()=>this.activeNext=!1,()=>this.active=!1)}executeNextVMTurn(e){this.activeNext?this.executeNextFuncs.push(e):e()}executeLaterVMTurn(e){this.active?this.executeLaterFuncs.push(e):e()}ensureAnimationCssClassPresent(){this.animationThreadCount++;const e=this.animationThreadCount,{gridBodyCtrl:t}=this;t.setColumnMovingCss(!0),this.executeLaterFuncs.push(()=>{this.animationThreadCount===e&&t.setColumnMovingCss(!1)})}flush(e,t){const{executeNextFuncs:o,executeLaterFuncs:r}=this;if(o.length===0&&r.length===0){e(),t();return}const n=i=>{for(;i.length;){const s=i.pop();s&&s()}};this.beans.frameworkOverrides.wrapIncoming(()=>{window.setTimeout(()=>{e(),n(o)},0),window.setTimeout(()=>{t(),n(r)},200)})}};function nq(e,t,o){e.colMoves?.moveColumnByIndex(t,o,"api")}function iq(e,t,o){e.colMoves?.moveColumns(t,o,"api")}var sq=class extends ue{constructor(e){super(),this.pinned=e,this.columnsToAggregate=[],this.columnsToGroup=[],this.columnsToPivot=[]}onDragEnter(e){if(this.clearColumnsList(),this.gos.get("functionsReadOnly"))return;const t=e.dragItem.columns;if(t)for(const o of t)o.isPrimary()&&(o.isAnyFunctionActive()||(o.isAllowValue()?this.columnsToAggregate.push(o):o.isAllowRowGroup()?this.columnsToGroup.push(o):o.isAllowPivot()&&this.columnsToPivot.push(o)))}getIconName(){return this.columnsToAggregate.length+this.columnsToGroup.length+this.columnsToPivot.length>0?this.pinned?"pinned":"move":null}onDragLeave(e){this.clearColumnsList()}clearColumnsList(){this.columnsToAggregate.length=0,this.columnsToGroup.length=0,this.columnsToPivot.length=0}onDragging(e){}onDragStop(e){const{valueColsSvc:t,rowGroupColsSvc:o,pivotColsSvc:r}=this.beans;this.columnsToAggregate.length>0&&t?.addColumns(this.columnsToAggregate,"toolPanelDragAndDrop"),this.columnsToGroup.length>0&&o?.addColumns(this.columnsToGroup,"toolPanelDragAndDrop"),this.columnsToPivot.length>0&&r?.addColumns(this.columnsToPivot,"toolPanelDragAndDrop")}onDragCancel(){this.clearColumnsList()}};function aq(e,t){!t||t.length<=1||t.filter(r=>e.indexOf(r)<0).length>0||t.sort((r,n)=>{const i=e.indexOf(r),s=e.indexOf(n);return i-s})}function lq(e){const t=[...e];for(const o of e){let r=null,n=o.getParent();for(;n!=null&&n.getDisplayedLeafColumns().length===1;)r=n,n=n.getParent();if(r!=null){const s=!!r.getColGroupDef()?.marryChildren?r.getProvidedColumnGroup().getLeafColumns():r.getLeafColumns();for(const a of s)t.includes(a)||t.push(a)}}return t}function cq(e,t,o,r){const n=r.allCols;let i=null,s=null;for(let a=0;a<e.length;a++){const c=e[a],d=o.getProposedColumnOrder(t,c);if(!o.doesOrderPassRules(d))continue;const h=d.filter(g=>n.includes(g));if(s===null)s=h;else if(!el(h,s))break;const f=dq(d);(i===null||f<i.fragCount)&&(i={move:c,fragCount:f})}return i}function $R(e){const{isFromHeader:t,fromLeft:o,xPosition:r,fromEnter:n,fakeEvent:i,pinned:s,gos:a,colModel:c,colMoves:d,visibleCols:h}=e;let{allMovingColumns:f}=e;t&&(f=lq(f));const g=f.slice();aq(c.getCols(),g);const m=fq({movingCols:g,draggingRight:o,xPosition:r,pinned:s,gos:a,colModel:c,visibleCols:h}),b=uq(g,c);if(m.length===0)return;const w=m[0];if(b!==null&&(t||!n)&&!i&&(!o&&w>=b||o&&w<=b))return;const k=cq(m,g,d,h);if(!k)return;const C=k.move;if(!(C>c.getCols().length-g.length))return{columns:g,toIndex:C}}function KR(e){const{columns:t,toIndex:o}=$R(e)||{},{finished:r,colMoves:n}=e;return!t||o==null?null:(n.moveColumns(t,o,"uiColumnMoved",r),r?null:{columns:t,toIndex:o})}function uq(e,t){const o=t.getCols(),r=e.map(c=>o.indexOf(c)).sort((c,d)=>c-d),n=r[0];return vt(r)-n!==r.length-1?null:n}function dq(e){function t(r){const n=[];let i=r.getOriginalParent();for(;i!=null;)n.push(i),i=i.getOriginalParent();return n}let o=0;for(let r=0;r<e.length-1;r++){let n=t(e[r]),i=t(e[r+1]);[n,i]=n.length>i.length?[n,i]:[i,n];for(const s of n)i.indexOf(s)===-1&&o++}return o}function hq(e,t){switch(t){case"left":return e.leftCols;case"right":return e.rightCols;default:return e.centerCols}}function fq(e){const{movingCols:t,draggingRight:o,xPosition:r,pinned:n,gos:i,colModel:s,visibleCols:a}=e;if(i.get("suppressMovableColumns")||t.some(F=>F.getColDef().suppressMovable))return[];const d=hq(a,n),h=s.getCols(),f=d.filter(F=>t.includes(F)),g=d.filter(F=>!t.includes(F)),m=h.filter(F=>!t.includes(F));let b=0,w=r;if(o){let F=0;for(const E of f)F+=E.getActualWidth();w-=F}if(w>0){for(let F=0;F<g.length;F++){const E=g[F];if(w-=E.getActualWidth(),w<0)break;b++}o&&b++}let y;if(b>0){const F=g[b-1];y=m.indexOf(F)+1}else y=m.indexOf(g[0]),y===-1&&(y=0);const k=[y],C=(F,E)=>F-E;if(o){let F=y+1;const E=h.length-1;for(;F<=E;)k.push(F),F++;k.sort(C)}else{let F=y;const E=h.length-1;let _=h[F];for(;F<=E&&d.indexOf(_)<0;)F++,k.push(F),_=h[F];F=y-1;const P=0;for(;F>=P;)k.push(F),F--;k.sort(C).reverse()}return k}function tb(e){const{pinned:t,fromKeyboard:o,gos:r,ctrlsSvc:n,useHeaderRow:i,skipScrollPadding:s}=e;let a=n.getHeaderRowContainerCtrl(t)?.eViewport,{x:c}=e;return a?(o&&(c-=a.getBoundingClientRect().left),r.get("enableRtl")&&(i&&(a=a.querySelector(".ag-header-row")),c=a.clientWidth-c),t==null&&!s&&(c+=n.get("center").getCenterViewportScrollLeft()),c):0}function ob(e,t){for(const o of e)o.moving=t,o.dispatchColEvent("movingChanged","uiColumnMoved")}var XR=7,rb=100,of=rb/2,pq=5,gq=100,mq=class extends ue{constructor(e){super(),this.pinned=e,this.needToMoveLeft=!1,this.needToMoveRight=!1,this.lastMovedInfo=null,this.isCenterContainer=!Ee(e)}postConstruct(){this.beans.ctrlsSvc.whenReady(this,e=>{this.gridBodyCon=e.gridBodyCtrl})}getIconName(){const{pinned:e,lastDraggingEvent:t}=this,{dragItem:o}=t||{},r=o?.columns??[];for(const n of r){const i=n.getPinned();if(n.getColDef().lockPinned){if(i==e)return"move";continue}const s=o?.containerType;if(s===e||!e)return"move";if(e&&(!i||s!==e))return"pinned"}return"notAllowed"}onDragEnter(e){const t=e.dragItem,o=t.columns;if(e.dragSource.type===0)this.setColumnsVisible(o,!0,"uiColumnDragged");else{const n=t.visibleState,i=(o||[]).filter(s=>n[s.getId()]&&!s.isVisible());this.setColumnsVisible(i,!0,"uiColumnDragged")}this.gos.get("suppressMoveWhenColumnDragging")||this.attemptToPinColumns(o,this.pinned),this.onDragging(e,!0,!0)}onDragging(e=this.lastDraggingEvent,t=!1,o=!1,r=!1){const{gos:n,ctrlsSvc:i}=this.beans,s=n.get("suppressMoveWhenColumnDragging");if(r&&!s){this.finishColumnMoving();return}if(this.lastDraggingEvent=e,!e||!r&&Ut(e.hDirection))return;const a=tb({x:e.x,pinned:this.pinned,gos:n,ctrlsSvc:i});t||this.checkCenterForScrolling(a),s?this.handleColumnDragWhileSuppressingMovement(e,t,o,a,r):this.handleColumnDragWhileAllowingMovement(e,t,o,a,r)}onDragLeave(){this.ensureIntervalCleared(),this.clearHighlighted(),this.updateDragItemContainerType(),this.lastMovedInfo=null}onDragStop(){this.onDragging(this.lastDraggingEvent,!1,!0,!0),this.ensureIntervalCleared(),this.lastMovedInfo=null}onDragCancel(){this.clearHighlighted(),this.ensureIntervalCleared(),this.lastMovedInfo=null}setColumnsVisible(e,t,o){if(!e?.length)return;const r=e.filter(n=>!n.getColDef().lockVisible);r.length&&this.beans.colModel.setColsVisible(r,t,o)}finishColumnMoving(){this.clearHighlighted();const e=this.lastMovedInfo;if(!e)return;const{columns:t,toIndex:o}=e;this.beans.colMoves.moveColumns(t,o,"uiColumnMoved",!0)}updateDragItemContainerType(){const{lastDraggingEvent:e}=this;if(this.gos.get("suppressMoveWhenColumnDragging")||!e)return;const t=e.dragItem;t&&(t.containerType=this.pinned)}handleColumnDragWhileSuppressingMovement(e,t,o,r,n){const i=this.getAllMovingColumns(e,!0);if(n){const s=this.isAttemptingToPin(i);s&&this.attemptToPinColumns(i,void 0,!0);const{fromLeft:a,xPosition:c}=this.getNormalisedXPositionInfo(i,s)||{};if(a==null||c==null){this.finishColumnMoving();return}this.moveColumnsAfterHighlight({allMovingColumns:i,xPosition:c,fromEnter:t,fakeEvent:o,fromLeft:a})}else{if(!this.beans.dragAndDrop.isDropZoneWithinThisGrid(e))return;this.highlightHoveredColumn(i,r)}}handleColumnDragWhileAllowingMovement(e,t,o,r,n){const i=this.getAllMovingColumns(e),s=this.normaliseDirection(e.hDirection)==="right",a=e.dragSource.type===1,c=this.getMoveColumnParams({allMovingColumns:i,isFromHeader:a,xPosition:r,fromLeft:s,fromEnter:t,fakeEvent:o}),d=KR({...c,finished:n});d&&(this.lastMovedInfo=d)}getAllMovingColumns(e,t=!1){const o=e.dragSource.getDragItem();let r=null;t?(r=o.columnsInSplit,r||(r=o.columns)):r=o.columns;const n=i=>i.getColDef().lockPinned?i.getPinned()==this.pinned:!0;return r?r.filter(n):[]}getMoveColumnParams(e){const{allMovingColumns:t,isFromHeader:o,xPosition:r,fromLeft:n,fromEnter:i,fakeEvent:s}=e,{gos:a,colModel:c,colMoves:d,visibleCols:h}=this.beans;return{allMovingColumns:t,isFromHeader:o,fromLeft:n,xPosition:r,pinned:this.pinned,fromEnter:i,fakeEvent:s,gos:a,colModel:c,colMoves:d,visibleCols:h}}highlightHoveredColumn(e,t){const{gos:o,colModel:r}=this.beans,n=o.get("enableRtl"),i=r.getCols().filter(h=>h.isVisible()&&h.getPinned()===this.pinned);let s=null,a=null,c=null;for(const h of i){if(a=h.getActualWidth(),s=this.getNormalisedColumnLeft(h,0,n),s!=null){const f=s+a;if(s<=t&&f>=t){c=h;break}}s=null,a=null}if(c)e.indexOf(c)!==-1&&(c=null);else{for(let h=i.length-1;h>=0;h--){const f=i[h],g=i[h].getParent();if(!g){c=f;break}const m=g?.getDisplayedLeafColumns();if(m.length){c=vt(m);break}}if(!c)return;s=this.getNormalisedColumnLeft(c,0,n),a=c.getActualWidth()}if(this.lastHighlightedColumn?.column!==c&&this.clearHighlighted(),c==null||s==null||a==null)return;let d;t-s<a/2?d=0:d=1,ZR(c,d),this.lastHighlightedColumn={column:c,position:d}}getNormalisedXPositionInfo(e,t){const{gos:o,visibleCols:r}=this.beans,n=o.get("enableRtl"),{firstMovingCol:i,column:s,position:a}=this.getColumnMoveAndTargetInfo(e,t,n);if(!i||!s||a==null)return;const c=r.allCols,d=c.indexOf(i),h=c.indexOf(s),f=a===0,g=d<h||d===h&&!f;let m=0;if(f?g&&(m-=1):g||(m+=1),h+m===d)return;const b=c[h+m];if(!b)return;const w=this.getNormalisedColumnLeft(b,20,n);return{fromLeft:g,xPosition:w}}getColumnMoveAndTargetInfo(e,t,o){const r=this.lastHighlightedColumn||{},{firstMovingCol:n,lastMovingCol:i}=vq(e);if(!n||!i||r.column||!t)return{firstMovingCol:n,...r};const a=this.getPinDirection()==="left";return{firstMovingCol:n,position:a?1:0,column:a!==o?n:i}}normaliseDirection(e){if(this.gos.get("enableRtl"))switch(e){case"left":return"right";case"right":return"left"}return e}getNormalisedColumnLeft(e,t,o){const{gos:r,ctrlsSvc:n}=this.beans,i=e.getLeft();if(i==null)return null;const s=e.getActualWidth();return tb({x:o?i+s-t:i+t,pinned:e.getPinned(),useHeaderRow:o,skipScrollPadding:!0,gos:r,ctrlsSvc:n})}isAttemptingToPin(e){const t=this.needToMoveLeft||this.needToMoveRight,o=this.failedMoveAttempts>XR;return t&&o||e.some(r=>r.getPinned()!==this.pinned)}moveColumnsAfterHighlight(e){const{allMovingColumns:t,xPosition:o,fromEnter:r,fakeEvent:n,fromLeft:i}=e,s=this.getMoveColumnParams({allMovingColumns:t,isFromHeader:!0,xPosition:o,fromLeft:i,fromEnter:r,fakeEvent:n}),{columns:a,toIndex:c}=$R(s)||{};a&&c!=null&&(this.lastMovedInfo={columns:a,toIndex:c}),this.finishColumnMoving()}clearHighlighted(){const{lastHighlightedColumn:e}=this;e&&(ZR(e.column,null),this.lastHighlightedColumn=null)}checkCenterForScrolling(e){if(!this.isCenterContainer)return;const t=this.beans.ctrlsSvc.get("center"),o=t.getCenterViewportScrollLeft(),r=o+t.getCenterWidth();let n,i;this.gos.get("enableRtl")?(n=e<o+of,i=e>r-of):(i=e<o+of,n=e>r-of),this.needToMoveRight=n,this.needToMoveLeft=i,i||n?this.ensureIntervalStarted():this.ensureIntervalCleared()}ensureIntervalStarted(){this.movingIntervalId||(this.intervalCount=0,this.failedMoveAttempts=0,this.movingIntervalId=window.setInterval(this.moveInterval.bind(this),gq),this.beans.dragAndDrop.setDragImageCompIcon(this.needToMoveLeft?"left":"right",!0))}ensureIntervalCleared(){this.movingIntervalId&&(window.clearInterval(this.movingIntervalId),this.movingIntervalId=null,this.failedMoveAttempts=0,this.beans.dragAndDrop.setDragImageCompIcon(this.getIconName()))}moveInterval(){let e;this.intervalCount++,e=10+this.intervalCount*pq,e>rb&&(e=rb);let t=null;const o=this.gridBodyCon.scrollFeature;if(this.needToMoveLeft?t=o.scrollHorizontally(-e):this.needToMoveRight&&(t=o.scrollHorizontally(e)),t!==0)this.onDragging(this.lastDraggingEvent),this.failedMoveAttempts=0;else{this.failedMoveAttempts++;const{pinnedCols:r,dragAndDrop:n,gos:i}=this.beans;if(this.failedMoveAttempts<=XR+1||!r)return;if(n.setDragImageCompIcon("pinned"),!i.get("suppressMoveWhenColumnDragging")){const s=this.lastDraggingEvent?.dragItem.columns;this.attemptToPinColumns(s,void 0,!0)}}}getPinDirection(){if(this.needToMoveLeft||this.pinned==="left")return"left";if(this.needToMoveRight||this.pinned==="right")return"right"}attemptToPinColumns(e,t,o=!1){const r=(e||[]).filter(s=>!s.getColDef().lockPinned);if(!r.length)return 0;o&&(t=this.getPinDirection());const{pinnedCols:n,dragAndDrop:i}=this.beans;return n?.setColsPinned(r,t,"uiColumnDragged"),o&&i.nudge(),r.length}destroy(){super.destroy(),this.lastDraggingEvent=null,this.clearHighlighted(),this.lastMovedInfo=null}};function ZR(e,t){e.highlighted!==t&&(e.highlighted=t,e.dispatchColEvent("headerHighlightChanged","uiColumnMoved"))}function vq(e){const t=e.length;let o,r;for(let n=0;n<t;n++){if(!o){const i=e[n];i.getLeft()!=null&&(o=i)}if(!r){const i=e[t-1-n];i.getLeft()!=null&&(r=i)}if(o&&r)break}return{firstMovingCol:o,lastMovingCol:r}}var bq=class extends ue{constructor(e,t){super(),this.pinned=e,this.eContainer=t}postConstruct(){const{ctrlsSvc:e,dragAndDrop:t}=this.beans,o=this.pinned;e.whenReady(this,r=>{let n;const i=r.gridBodyCtrl.eBodyViewport;switch(o){case"left":n=[[i,r.left.eContainer],[r.bottomLeft.eContainer],[r.topLeft.eContainer]];break;case"right":n=[[i,r.right.eContainer],[r.bottomRight.eContainer],[r.topRight.eContainer]];break;default:n=[[i,r.center.eViewport],[r.bottomCenter.eViewport],[r.topCenter.eViewport]];break}this.eSecondaryContainers=n}),this.moveColumnFeature=this.createManagedBean(new mq(o)),this.bodyDropPivotTarget=this.createManagedBean(new sq(o)),t.addDropTarget(this),this.addDestroyFunc(()=>t.removeDropTarget(this))}isInterestedIn(e){return e===1||e===0&&this.gos.get("allowDragFromColumnsToolPanel")}getSecondaryContainers(){return this.eSecondaryContainers}getContainer(){return this.eContainer}getIconName(){return this.currentDropListener.getIconName()}isDropColumnInPivotMode(e){return this.beans.colModel.isPivotMode()&&e.dragSource.type===0}onDragEnter(e){this.currentDropListener=this.isDropColumnInPivotMode(e)?this.bodyDropPivotTarget:this.moveColumnFeature,this.currentDropListener.onDragEnter(e)}onDragLeave(e){this.currentDropListener.onDragLeave(e)}onDragging(e){this.currentDropListener.onDragging(e)}onDragStop(e){this.currentDropListener.onDragStop(e)}onDragCancel(){this.currentDropListener.onDragCancel()}},wq=class extends ue{constructor(){super(...arguments),this.beanName="colMoves"}moveColumnByIndex(e,t,o){const r=this.beans.colModel.getCols();if(!r)return;const n=r[e];this.moveColumns([n],t,o)}moveColumns(e,t,o,r=!0){const{colModel:n,colAnimation:i,visibleCols:s,eventSvc:a}=this.beans,c=n.getCols();if(!c)return;if(t>c.length-e.length){he(30,{toIndex:t});return}i?.start();const d=n.getColsForKeys(e);this.doesMovePassRules(d,t)&&(aF(n.getCols(),d,t),s.refresh(o),a.dispatchEvent({type:"columnMoved",columns:d,column:d.length===1?d[0]:null,toIndex:t,finished:r,source:o})),i?.finish()}doesMovePassRules(e,t){const o=this.getProposedColumnOrder(e,t);return this.doesOrderPassRules(o)}doesOrderPassRules(e){const{colModel:t,gos:o}=this.beans;return!(!mF(e,t.getColTree())||!(n=>{const i=d=>d?d==="left"||d===!0?-1:1:0,s=o.get("enableRtl");let a=s?1:-1,c=!0;for(const d of n){const h=i(d.getColDef().lockPosition);s?h>a&&(c=!1):h<a&&(c=!1),a=h}return c})(e))}getProposedColumnOrder(e,t){const r=this.beans.colModel.getCols().slice();return aF(r,e,t),r}createBodyDropTarget(e,t){return new bq(e,t)}moveHeader(e,t,o,r,n){const{ctrlsSvc:i,gos:s,colModel:a,visibleCols:c,focusSvc:d}=this.beans,h=t.getBoundingClientRect(),f=h.left,g=$t(o),m=g?h.width:o.getActualWidth(),b=e==="left"!==s.get("enableRtl"),w=tb({x:b?f-20:f+m+20,pinned:r,fromKeyboard:!0,gos:s,ctrlsSvc:i}),y=d.focusedHeader;KR({allMovingColumns:g?o.getLeafColumns():[o],isFromHeader:!0,fromLeft:e==="right",xPosition:w,pinned:r,fromEnter:!1,fakeEvent:!1,gos:s,colModel:a,colMoves:this,visibleCols:c,finished:!0});let k;if(g){const C=o.getDisplayedLeafColumns();k=b?C[0]:vt(C)}else k=o;if(i.getScrollFeature().ensureColumnVisible(k,"auto"),(!n.isAlive()||s.get("ensureDomOrder"))&&y){let C;if(g){const F=o.getGroupId(),E=o.getLeafColumns();if(!E.length)return;const _=E[0].getParent();if(!_)return;C=Cq(_,F)}else C=o;C&&d.focusHeaderPosition({headerPosition:{...y,column:C}})}}setDragSourceForHeader(e,t,o){const{gos:r,colModel:n,dragAndDrop:i,visibleCols:s}=this.beans;let a=!r.get("suppressDragLeaveHidesColumns");const c=$t(t),d=c?t.getProvidedColumnGroup().getLeafColumns():[t],f={type:1,eElement:e,getDefaultIconName:()=>a?"hide":"notAllowed",getDragItem:c?()=>Sq(t,s.allCols):()=>yq(t),dragItemName:o,onDragStarted:()=>{a=!r.get("suppressDragLeaveHidesColumns"),ob(d,!0)},onDragStopped:()=>ob(d,!1),onDragCancelled:()=>ob(d,!1),onGridEnter:g=>{if(a){const{columns:m=[],visibleState:b}=g??{},w=c?k=>!b||b[k.getColId()]:()=>!0,y=m.filter(k=>!k.getColDef().lockVisible&&w(k));n.setColsVisible(y,!0,"uiColumnMoved")}},onGridExit:g=>{if(a){const m=g?.columns?.filter(b=>!b.getColDef().lockVisible)||[];n.setColsVisible(m,!1,"uiColumnMoved")}}};return i.addDragSource(f,!0),f}};function Cq(e,t){for(;e;){if(e.getGroupId()===t)return e;e=e.getParent()}}function yq(e){const t={};return t[e.getId()]=e.isVisible(),{columns:[e],visibleState:t,containerType:e.pinned}}function Sq(e,t){const o=e.getProvidedColumnGroup().getLeafColumns(),r={};for(const a of o)r[a.getId()]=a.isVisible();const n=[];for(const a of t)o.indexOf(a)>=0&&(n.push(a),zs(o,a));for(const a of o)n.push(a);const i=[],s=e.getLeafColumns();for(const a of n)s.indexOf(a)!==-1&&i.push(a);return{columns:n,columnsInSplit:i,visibleState:r,containerType:i[0]?.pinned}}var xq={moduleName:"ColumnMove",version:Ve,beans:[wq,rq],apiFunctions:{moveColumnByIndex:nq,moveColumns:iq},dependsOn:[eq],css:[oq]},kq=class extends ue{constructor(){super(...arguments),this.beanName="autoWidthCalc"}postConstruct(){this.beans.ctrlsSvc.whenReady(this,e=>{this.centerRowContainerCtrl=e.center})}getPreferredWidthForColumn(e,t){const o=this.getHeaderCellForColumn(e);if(!o)return-1;const r=this.beans.rowRenderer.getAllCellsNotSpanningForColumn(e);return t||r.push(o),this.getPreferredWidthForElements(r)}getPreferredWidthForColumnGroup(e){const t=this.getHeaderCellForColumn(e);return t?this.getPreferredWidthForElements([t]):-1}getPreferredWidthForElements(e,t){const o=document.createElement("form");o.style.position="fixed";const r=this.centerRowContainerCtrl.eContainer;for(const i of e)this.cloneItemIntoDummy(i,o);r.appendChild(o);const n=o.offsetWidth;return o.remove(),t=t??this.gos.get("autoSizePadding"),n+t}getHeaderCellForColumn(e){let t=null;for(const o of this.beans.ctrlsSvc.getHeaderRowContainerCtrls()){const r=o.getHtmlElementForColumnHeader(e);r!=null&&(t=r)}return t}cloneItemIntoDummy(e,t){const o=e.cloneNode(!0);o.style.width="",o.style.position="static",o.style.left="";const r=document.createElement("div"),n=r.classList;["ag-header-cell","ag-header-group-cell"].some(a=>o.classList.contains(a))?(n.add("ag-header","ag-header-row"),r.style.position="static"):n.add("ag-row");let s=e.parentElement;for(;s;){if(["ag-header-row","ag-row"].some(c=>s.classList.contains(c))){for(let c=0;c<s.classList.length;c++){const d=s.classList[c];d!="ag-row-position-absolute"&&n.add(d)}break}s=s.parentElement}r.appendChild(o),t.appendChild(r)}},Fq={moduleName:"AutoWidth",version:Ve,beans:[kq]};function Rq(e,t,o=!0,r="api"){e.colResize?.setColumnWidths(t,!1,o,r)}var Eq=class extends ue{constructor(e,t,o,r){super(),this.comp=e,this.eResize=t,this.pinned=o,this.columnGroup=r}postConstruct(){if(!this.columnGroup.isResizable()){this.comp.setResizableDisplayed(!1);return}const{horizontalResizeSvc:e,gos:t,colAutosize:o}=this.beans,r=e.addResizeBar({eResizeBar:this.eResize,onResizeStart:this.onResizeStart.bind(this),onResizing:this.onResizing.bind(this,!1),onResizeEnd:this.onResizing.bind(this,!0)});this.addDestroyFunc(r),!t.get("suppressAutoSize")&&o&&this.addDestroyFunc(o.addColumnGroupResize(this.eResize,this.columnGroup,()=>this.resizeLeafColumnsToFit("uiColumnResized")))}onResizeStart(e){const{columnsToResize:t,resizeStartWidth:o,resizeRatios:r,groupAfterColumns:n,groupAfterStartWidth:i,groupAfterRatios:s}=this.getInitialValues(e);this.resizeCols=t,this.resizeStartWidth=o,this.resizeRatios=r,this.resizeTakeFromCols=n,this.resizeTakeFromStartWidth=i,this.resizeTakeFromRatios=s,this.toggleColumnResizing(!0)}onResizing(e,t,o="uiColumnResized"){const r=this.normaliseDragChange(t),n=this.resizeStartWidth+r;this.resizeColumnsFromLocalValues(n,o,e)}getInitialValues(e){const t=c=>c.reduce((d,h)=>d+h.getActualWidth(),0),o=(c,d)=>c.map(h=>h.getActualWidth()/d),r=this.getColumnsToResize(),n=t(r),i=o(r,n),s={columnsToResize:r,resizeStartWidth:n,resizeRatios:i};let a=null;if(e&&(a=this.beans.colGroupSvc?.getGroupAtDirection(this.columnGroup,"After")??null),a){const c=a.getDisplayedLeafColumns(),d=s.groupAfterColumns=c.filter(f=>f.isResizable()),h=s.groupAfterStartWidth=t(d);s.groupAfterRatios=o(d,h)}else s.groupAfterColumns=void 0,s.groupAfterStartWidth=void 0,s.groupAfterRatios=void 0;return s}resizeLeafColumnsToFit(e){const t=this.beans.autoWidthCalc.getPreferredWidthForColumnGroup(this.columnGroup),o=this.getInitialValues();t>o.resizeStartWidth&&this.resizeColumns(o,t,e,!0)}resizeColumnsFromLocalValues(e,t,o=!0){if(!this.resizeCols||!this.resizeRatios)return;const r={columnsToResize:this.resizeCols,resizeStartWidth:this.resizeStartWidth,resizeRatios:this.resizeRatios,groupAfterColumns:this.resizeTakeFromCols,groupAfterStartWidth:this.resizeTakeFromStartWidth,groupAfterRatios:this.resizeTakeFromRatios};this.resizeColumns(r,e,t,o)}resizeColumns(e,t,o,r=!0){const{columnsToResize:n,resizeStartWidth:i,resizeRatios:s,groupAfterColumns:a,groupAfterStartWidth:c,groupAfterRatios:d}=e,h=[];if(h.push({columns:n,ratios:s,width:t}),a){const f=t-i;h.push({columns:a,ratios:d,width:c-f})}this.beans.colResize?.resizeColumnSets({resizeSets:h,finished:r,source:o}),r&&this.toggleColumnResizing(!1)}toggleColumnResizing(e){this.comp.toggleCss("ag-column-resizing",e)}getColumnsToResize(){return this.columnGroup.getDisplayedLeafColumns().filter(t=>t.isResizable())}normaliseDragChange(e){let t=e;return this.gos.get("enableRtl")?this.pinned!=="left"&&(t*=-1):this.pinned==="right"&&(t*=-1),t}destroy(){super.destroy(),this.resizeCols=void 0,this.resizeRatios=void 0,this.resizeTakeFromCols=void 0,this.resizeTakeFromRatios=void 0}},_q=class extends ue{constructor(e,t,o,r,n){super(),this.pinned=e,this.column=t,this.eResize=o,this.comp=r,this.ctrl=n}postConstruct(){const e=[];let t,o;const r=()=>{if(kt(this.eResize,t),!t)return;const{horizontalResizeSvc:s,colAutosize:a}=this.beans,c=s.addResizeBar({eResizeBar:this.eResize,onResizeStart:this.onResizeStart.bind(this),onResizing:this.onResizing.bind(this,!1),onResizeEnd:this.onResizing.bind(this,!0)});e.push(c),o&&a&&e.push(a.addColumnAutosizeListeners(this.eResize,this.column))},n=()=>{for(const s of e)s();e.length=0},i=()=>{const s=this.column.isResizable(),a=!this.gos.get("suppressAutoSize")&&!this.column.getColDef().suppressAutoSize;(s!==t||a!==o)&&(t=s,o=a,n(),r())};i(),this.addDestroyFunc(n),this.ctrl.setRefreshFunction("resize",i)}onResizing(e,t){const{column:o,lastResizeAmount:r,resizeStartWidth:n,beans:i}=this,s=this.normaliseResizeAmount(t),a=n+s,c=[{key:o,newWidth:a}],{pinnedCols:d,ctrlsSvc:h,colResize:f}=i;if(this.column.getPinned()){const g=d?.leftWidth??0,m=d?.rightWidth??0,b=sh(h.getGridBodyCtrl().eBodyViewport)-50;if(g+m+(s-r)>b)return}this.lastResizeAmount=s,f?.setColumnWidths(c,this.resizeWithShiftKey,e,"uiColumnResized"),e&&this.toggleColumnResizing(!1)}onResizeStart(e){this.resizeStartWidth=this.column.getActualWidth(),this.lastResizeAmount=0,this.resizeWithShiftKey=e,this.toggleColumnResizing(!0)}toggleColumnResizing(e){this.column.resizing=e,this.comp.toggleCss("ag-column-resizing",e)}normaliseResizeAmount(e){let t=e;const o=this.pinned!=="left",r=this.pinned==="right";return this.gos.get("enableRtl")?o&&(t*=-1):r&&(t*=-1),t}},Pq=class extends ue{constructor(){super(...arguments),this.beanName="colResize"}setColumnWidths(e,t,o,r){const n=[],{colModel:i,gos:s,visibleCols:a}=this.beans;for(const c of e){const d=i.getColDefCol(c.key)||i.getCol(c.key);if(!d)continue;if(n.push({width:c.newWidth,ratios:[1],columns:[d]}),s.get("colResizeDefault")==="shift"&&(t=!t),t){const f=a.getColAfter(d);if(!f)continue;const g=d.getActualWidth()-c.newWidth,m=f.getActualWidth()+g;n.push({width:m,ratios:[1],columns:[f]})}}n.length!==0&&this.resizeColumnSets({resizeSets:n,finished:o,source:r})}resizeColumnSets(e){const{resizeSets:t,finished:o,source:r}=e;if(!(!t||t.every(h=>Dq(h)))){if(o){const h=t&&t.length>0?t[0].columns:null;Th(this.eventSvc,h,o,r)}return}const i=[],s=[];for(const h of t){const{width:f,columns:g,ratios:m}=h,b={},w={};for(const C of g)s.push(C);let y=!0,k=0;for(;y;){if(k++,k>1e3){Ft(31);break}y=!1;const C=[];let F=0,E=f;g.forEach((P,D)=>{if(w[P.getId()])E-=b[P.getId()];else{C.push(P);const A=m[D];F+=A}});const _=1/F;C.forEach((P,D)=>{const M=D===C.length-1;let A;M?A=E:(A=Math.round(m[D]*f*_),E-=A);const O=P.getMinWidth(),K=P.getMaxWidth();A<O?(A=O,w[P.getId()]=!0,y=!0):K>0&&A>K&&(A=K,w[P.getId()]=!0,y=!0),b[P.getId()]=A})}for(const C of g){const F=b[C.getId()];C.getActualWidth()!==F&&(C.setActualWidth(F,r),i.push(C))}}const a=i.length>0;let c=[];if(a){const{colFlex:h,visibleCols:f,colViewport:g}=this.beans;c=h?.refreshFlexedColumns({resizingCols:s,skipSetLeft:!0})??[],f.setLeftValues(r),f.updateBodyWidths(),g.checkViewportColumns()}const d=s.concat(c);(a||o)&&Th(this.eventSvc,d,o,r,c)}resizeHeader(e,t,o){if(!e.isResizable())return;const r=e.getActualWidth(),n=e.getMinWidth(),i=e.getMaxWidth(),s=Math.min(Math.max(r+t,n),i);this.setColumnWidths([{key:e,newWidth:s}],o,!0,"uiColumnResized")}createResizeFeature(e,t,o,r,n){return new _q(e,t,o,r,n)}createGroupResizeFeature(e,t,o,r){return new Eq(e,t,o,r)}};function Dq(e){const{columns:t,width:o}=e;let r=0,n=0,i=!0;for(const c of t){const d=c.getMinWidth();r+=d||0;const h=c.getMaxWidth();h>0?n+=h:i=!1}const s=o>=r,a=!i||o<=n;return s&&a}var Tq={moduleName:"ColumnResize",version:Ve,beans:[Pq],apiFunctions:{setColumnWidths:Rq},dependsOn:[tq,Fq]},Mq=class extends ue{constructor(e,t){super(),this.removeChildListenersFuncs=[],this.columnGroup=t,this.comp=e}postConstruct(){this.addListenersToChildrenColumns(),this.addManagedListeners(this.columnGroup,{displayedChildrenChanged:this.onDisplayedChildrenChanged.bind(this)}),this.onWidthChanged(),this.addDestroyFunc(this.removeListenersOnChildrenColumns.bind(this))}addListenersToChildrenColumns(){this.removeListenersOnChildrenColumns();const e=this.onWidthChanged.bind(this);for(const t of this.columnGroup.getLeafColumns())t.__addEventListener("widthChanged",e),t.__addEventListener("visibleChanged",e),this.removeChildListenersFuncs.push(()=>{t.__removeEventListener("widthChanged",e),t.__removeEventListener("visibleChanged",e)})}removeListenersOnChildrenColumns(){for(const e of this.removeChildListenersFuncs)e();this.removeChildListenersFuncs=[]}onDisplayedChildrenChanged(){this.addListenersToChildrenColumns(),this.onWidthChanged()}onWidthChanged(){const e=this.columnGroup.getActualWidth();this.comp.setWidth(`${e}px`),this.comp.toggleCss("ag-hidden",e===0)}},Aq=class extends Zv{constructor(){super(...arguments),this.onSuppressColMoveChange=()=>{!this.isAlive()||this.isSuppressMoving()?this.removeDragSource():this.dragSource||this.setDragSource(this.eGui)}}wireComp(e,t,o,r,n){const{column:i,beans:s}=this,{context:a,colNames:c,colHover:d,rangeSvc:h,colResize:f}=s;this.comp=e,n=Gc(this,a,n),this.setGui(t,n),this.displayName=c.getDisplayNameForColumnGroup(i,"header"),this.refreshHeaderStyles(),this.addClasses(),this.setupMovingCss(n),this.setupExpandable(n),this.setupTooltip(),this.refreshAnnouncement(),this.setupAutoHeight({wrapperElement:r,compBean:n}),this.setupUserComp(),this.addHeaderMouseListeners(n,r),this.addManagedPropertyListener("groupHeaderHeight",this.refreshMaxHeaderHeight.bind(this)),this.refreshMaxHeaderHeight();const g=this.rowCtrl.pinned,m=i.getProvidedColumnGroup().getLeafColumns();d?.createHoverFeature(n,m,t),h?.createRangeHighlightFeature(n,i,e),n.createManagedBean(new Xv(i,t,s)),n.createManagedBean(new Mq(e,i)),f?this.resizeFeature=n.createManagedBean(f.createGroupResizeFeature(e,o,g,i)):e.setResizableDisplayed(!1),n.createManagedBean(new $c(t,{shouldStopEventPropagation:this.shouldStopEventPropagation.bind(this),onTabKeyDown:()=>{},handleKeyDown:this.handleKeyDown.bind(this),onFocusIn:this.onFocusIn.bind(this)})),this.addHighlightListeners(n,m),this.addManagedEventListeners({cellSelectionChanged:()=>this.refreshAnnouncement()}),n.addManagedPropertyListener("suppressMovableColumns",this.onSuppressColMoveChange),this.addResizeAndMoveKeyboardListeners(n),n.addDestroyFunc(()=>this.clearComponent())}getHeaderClassParams(){const{column:e,beans:t}=this,o=e.getDefinition();return Ze(t.gos,{colDef:o,columnGroup:e,floatingFilter:!1})}refreshMaxHeaderHeight(){const{gos:e,comp:t}=this,o=e.get("groupHeaderHeight");o!=null?o===0?t.setHeaderWrapperHidden(!0):t.setHeaderWrapperMaxHeight(o):(t.setHeaderWrapperHidden(!1),t.setHeaderWrapperMaxHeight(null))}addHighlightListeners(e,t){if(this.beans.gos.get("suppressMoveWhenColumnDragging"))for(const o of t)e.addManagedListeners(o,{headerHighlightChanged:this.onLeafColumnHighlightChanged.bind(this,o)})}onLeafColumnHighlightChanged(e){const t=this.column.getDisplayedLeafColumns(),o=t[0]===e,r=vt(t)===e;if(!o&&!r)return;const n=e.getHighlighted(),i=!!this.rowCtrl.getHeaderCellCtrls().find(c=>c.column.isMoving());let s=!1,a=!1;if(i){const c=this.beans.gos.get("enableRtl"),d=n===1,h=n===0;o&&(c?a=d:s=h),r&&(c?s=h:a=d)}this.comp.toggleCss("ag-header-highlight-before",s),this.comp.toggleCss("ag-header-highlight-after",a)}resizeHeader(e,t){const{resizeFeature:o}=this;if(!o)return;const r=o.getInitialValues(t);o.resizeColumns(r,r.resizeStartWidth+e,"uiColumnResized",!0)}resizeLeafColumnsToFit(e){this.resizeFeature?.resizeLeafColumnsToFit(e)}setupUserComp(){const{colGroupSvc:e,userCompFactory:t,gos:o,enterpriseMenuFactory:r}=this.beans,n=this.column,i=n.getProvidedColumnGroup(),s=Ze(o,{displayName:this.displayName,columnGroup:n,setExpanded:c=>{e.setColumnGroupOpened(i,c,"gridInitializing")},setTooltip:(c,d)=>{o.assertModuleRegistered("Tooltip",3),this.setupTooltip(c,d)},showColumnMenu:(c,d)=>r?.showMenuAfterButtonClick(i,c,"columnMenu",d),showColumnMenuAfterMouseClick:(c,d)=>r?.showMenuAfterMouseEvent(i,c,"columnMenu",d),eGridHeader:this.eGui}),a=y9(t,s);a&&this.comp.setUserCompDetails(a)}addHeaderMouseListeners(e,t){const{column:o,comp:r,beans:{rangeSvc:n},gos:i}=this,s=h=>this.handleMouseOverChange(h.type==="mouseenter"),a=()=>this.dispatchColumnMouseEvent("columnHeaderClicked",o.getProvidedColumnGroup()),c=h=>this.handleContextMenuMouseEvent(h,void 0,o.getProvidedColumnGroup());e.addManagedListeners(this.eGui,{mouseenter:s,mouseleave:s,click:a,contextmenu:c}),r.toggleCss("ag-header-group-cell-selectable",Qa(i));const d=n?.createHeaderGroupCellMouseListenerFeature(this.column,t);d&&this.createManagedBean(d)}handleMouseOverChange(e){this.eventSvc.dispatchEvent({type:e?"columnHeaderMouseOver":"columnHeaderMouseLeave",column:this.column.getProvidedColumnGroup()})}setupTooltip(e,t){this.tooltipFeature=this.beans.tooltipSvc?.setupHeaderGroupTooltip(this.tooltipFeature,this,e,t)}setupExpandable(e){const t=this.column.getProvidedColumnGroup();this.refreshExpanded();const o=this.refreshExpanded.bind(this);e.addManagedListeners(t,{expandedChanged:o,expandableChanged:o})}refreshExpanded(){const{column:e}=this;this.expandable=e.isExpandable();const t=e.isExpanded();this.expandable?this.comp.setAriaExpanded(t?"true":"false"):this.comp.setAriaExpanded(void 0),this.refreshHeaderStyles()}addClasses(){const{column:e}=this,t=e.getColGroupDef(),o=PR(t,this.gos,null,e);e.isPadding()?(o.push("ag-header-group-cell-no-group"),e.getLeafColumns().every(n=>n.isSpanHeaderHeight())&&o.push("ag-header-span-height")):(o.push("ag-header-group-cell-with-group"),t?.wrapHeaderText&&o.push("ag-header-cell-wrap-text"));for(const r of o)this.comp.toggleCss(r,!0)}setupMovingCss(e){const{column:t}=this,r=t.getProvidedColumnGroup().getLeafColumns(),n=()=>this.comp.toggleCss("ag-header-cell-moving",t.isMoving());for(const i of r)e.addManagedListeners(i,{movingChanged:n});n()}onFocusIn(e){this.eGui.contains(e.relatedTarget)||(this.focusThis(),this.announceAriaDescription())}handleKeyDown(e){if(super.handleKeyDown(e),!this.getWrapperHasFocus())return;const{column:o,expandable:r,gos:n,beans:i}=this,s=Qa(n);if(e.key==ee.ENTER){if(s&&!e.altKey)i.rangeSvc?.handleColumnSelection(o,e);else if(r){const a=!o.isExpanded();i.colGroupSvc.setColumnGroupOpened(o.getProvidedColumnGroup(),a,"uiColumnExpanded")}}}refreshAnnouncement(){let e;const{gos:t,column:o,beans:r}=this;if(Qa(t)){const i=this.getLocaleTextFunc(),s=r.rangeSvc?.isColumnInAnyRange(o);e=i("ariaColumnCellSelection",`Press CTRL+SPACE to ${s?"de":""}select all visible cells in this column group`)}this.ariaAnnouncement=e}announceAriaDescription(){const{beans:e,eGui:t,ariaAnnouncement:o}=this;!o||!t.contains(Mt(e))||e.ariaAnnounce?.announceValue(o,"columnHeader")}setDragSource(e){!this.isAlive()||this.isSuppressMoving()||(this.removeDragSource(),e&&(this.dragSource=this.beans.colMoves?.setDragSourceForHeader(e,this.column,this.displayName)??null))}isSuppressMoving(){return this.gos.get("suppressMovableColumns")||this.column.getLeafColumns().some(e=>e.getColDef().suppressMovable||e.getColDef().lockPosition)}destroy(){this.tooltipFeature=this.destroyBean(this.tooltipFeature),super.destroy()}};function Iq(e,t,o){e.colGroupSvc?.setColumnGroupOpened(t,o,"api")}function Bq(e,t,o){return e.colGroupSvc?.getColumnGroup(t,o)??null}function Oq(e,t){return e.colGroupSvc?.getProvidedColGroup(t)??null}function Nq(e,t,o){return e.colNames.getDisplayNameForColumnGroup(t,o)||""}function Lq(e){return e.colGroupSvc?.getColumnGroupState()??[]}function zq(e,t){e.colGroupSvc?.setColumnGroupState(t,"api")}function Hq(e){e.colGroupSvc?.resetColumnGroupState("api")}function Vq(e){return e.visibleCols.treeLeft}function Gq(e){return e.visibleCols.treeCenter}function jq(e){return e.visibleCols.treeRight}function Wq(e){return e.visibleCols.getAllTrees()}function qq(e,t){for(let o=0;o<t.length;o++){const r=e.indexOf(t[o]);r>=0&&(e[r]=e[e.length-1],e.pop())}}var Uq=class extends ue{constructor(){super(...arguments),this.beanName="visibleCols",this.colsAndGroupsMap={},this.leftCols=[],this.rightCols=[],this.centerCols=[],this.allCols=[],this.headerGroupRowCount=0,this.bodyWidth=0,this.leftWidth=0,this.rightWidth=0,this.isBodyWidthDirty=!0}refresh(e,t=!1){const{colFlex:o,colModel:r,colGroupSvc:n,colViewport:i,selectionColSvc:s}=this.beans;t||this.buildTrees(r,n),n?.updateOpenClosedVisibility(),this.leftCols=nb(this.treeLeft),this.centerCols=nb(this.treeCenter),this.rightCols=nb(this.treeRight),s?.refreshVisibility(this.leftCols,this.centerCols,this.rightCols),this.joinColsAriaOrder(r),this.joinCols(),this.headerGroupRowCount=this.getHeaderRowCount(),this.setLeftValues(e),this.autoHeightCols=this.allCols.filter(a=>a.isAutoHeight()),o?.refreshFlexedColumns(),this.updateBodyWidths(),this.setFirstRightAndLastLeftPinned(r,this.leftCols,this.rightCols,e),i.checkViewportColumns(!1),this.eventSvc.dispatchEvent({type:"displayedColumnsChanged",source:e})}getHeaderRowCount(){if(!this.gos.get("hidePaddedHeaderRows"))return this.beans.colModel.cols.treeDepth;let e=0;for(const t of this.allCols){let o=t.getParent();for(;o;){if(!o.isPadding()){const r=o.getProvidedColumnGroup().getLevel()+1;r>e&&(e=r);break}o=o.getParent()}}return e}updateBodyWidths(){const e=tl(this.centerCols),t=tl(this.leftCols),o=tl(this.rightCols);this.isBodyWidthDirty=this.bodyWidth!==e,(this.bodyWidth!==e||this.leftWidth!==t||this.rightWidth!==o)&&(this.bodyWidth=e,this.leftWidth=t,this.rightWidth=o,this.eventSvc.dispatchEvent({type:"columnContainerWidthChanged"}),this.eventSvc.dispatchEvent({type:"displayedColumnsWidthChanged"}))}setLeftValues(e){this.setLeftValuesOfCols(e),this.setLeftValuesOfGroups()}setFirstRightAndLastLeftPinned(e,t,o,r){let n,i;this.gos.get("enableRtl")?(n=t?t[0]:null,i=o?vt(o):null):(n=t?vt(t):null,i=o?o[0]:null);for(const s of e.getCols())s.setLastLeftPinned(s===n,r),s.setFirstRightPinned(s===i,r)}buildTrees(e,t){const o=e.getColsToShow(),r=o.filter(c=>c.getPinned()=="left"),n=o.filter(c=>c.getPinned()=="right"),i=o.filter(c=>c.getPinned()!="left"&&c.getPinned()!="right"),s=new J7,a=c=>t?t.createColumnGroups(c):c.columns;this.treeLeft=a({columns:r,idCreator:s,pinned:"left",oldDisplayedGroups:this.treeLeft}),this.treeRight=a({columns:n,idCreator:s,pinned:"right",oldDisplayedGroups:this.treeRight}),this.treeCenter=a({columns:i,idCreator:s,pinned:null,oldDisplayedGroups:this.treeCenter}),this.updateColsAndGroupsMap()}clear(){this.leftCols=[],this.rightCols=[],this.centerCols=[],this.allCols=[],this.ariaOrderColumns=[]}joinColsAriaOrder(e){const t=e.getCols(),o=[],r=[],n=[];for(const i of t){const s=i.getPinned();s?s===!0||s==="left"?o.push(i):n.push(i):r.push(i)}this.ariaOrderColumns=o.concat(r).concat(n)}getAriaColIndex(e){let t;return $t(e)?t=e.getLeafColumns()[0]:t=e,this.ariaOrderColumns.indexOf(t)+1}setLeftValuesOfGroups(){for(const e of[this.treeLeft,this.treeRight,this.treeCenter])for(const t of e)$t(t)&&t.checkLeft()}setLeftValuesOfCols(e){const{colModel:t}=this.beans;if(!t.getColDefCols())return;const r=t.getCols().slice(0),n=this.gos.get("enableRtl");for(const i of[this.leftCols,this.rightCols,this.centerCols]){if(n){let s=tl(i);for(const a of i)s-=a.getActualWidth(),a.setLeft(s,e)}else{let s=0;for(const a of i)a.setLeft(s,e),s+=a.getActualWidth()}qq(r,i)}for(const i of r)i.setLeft(null,e)}joinCols(){this.gos.get("enableRtl")?this.allCols=this.rightCols.concat(this.centerCols).concat(this.leftCols):this.allCols=this.leftCols.concat(this.centerCols).concat(this.rightCols)}getAllTrees(){return this.treeLeft&&this.treeRight&&this.treeCenter?this.treeLeft.concat(this.treeCenter).concat(this.treeRight):null}isColDisplayed(e){return this.allCols.indexOf(e)>=0}getLeftColsForRow(e){const{leftCols:t,beans:{colModel:o}}=this;return o.colSpanActive?this.getColsForRow(e,t):t}getRightColsForRow(e){const{rightCols:t,beans:{colModel:o}}=this;return o.colSpanActive?this.getColsForRow(e,t):t}getColsForRow(e,t,o,r){const n=[];let i=null;for(let s=0;s<t.length;s++){const a=t[s],c=t.length-s,d=Math.min(a.getColSpan(e),c),h=[a];if(d>1){const g=d-1;for(let m=1;m<=g;m++)h.push(t[s+m]);s+=g}let f;if(o){f=!1;for(const g of h)o(g)&&(f=!0)}else f=!0;f&&(n.length===0&&i&&r&&r(a)&&n.push(i),n.push(a)),i=a}return n}getContainerWidth(e){switch(e){case"left":return this.leftWidth;case"right":return this.rightWidth;default:return this.bodyWidth}}getColBefore(e){const t=this.allCols,o=t.indexOf(e);return o>0?t[o-1]:null}isPinningLeft(){return this.leftCols.length>0}isPinningRight(){return this.rightCols.length>0}updateColsAndGroupsMap(){this.colsAndGroupsMap={};const e=t=>{this.colsAndGroupsMap[t.getUniqueId()]=t};Us(this.treeCenter,!1,e),Us(this.treeLeft,!1,e),Us(this.treeRight,!1,e)}isVisible(e){return this.colsAndGroupsMap[e.getUniqueId()]===e}getFirstColumn(){const e=this.gos.get("enableRtl"),t=["leftCols","centerCols","rightCols"];e&&t.reverse();for(let o=0;o<t.length;o++){const r=this[t[o]];if(r.length)return e?vt(r):r[0]}return null}getColAfter(e){const t=this.allCols,o=t.indexOf(e);return o<t.length-1?t[o+1]:null}getColsLeftWidth(){return tl(this.leftCols)}getDisplayedColumnsRightWidth(){return tl(this.rightCols)}isColAtEdge(e,t){const o=this.allCols;if(!o.length)return!1;const r=t==="first";let n;if($t(e)){const i=e.getDisplayedLeafColumns();if(!i.length)return!1;n=r?i[0]:vt(i)}else n=e;return(r?o[0]:vt(o))===n}};function Us(e,t,o){if(e)for(let r=0;r<e.length;r++){const n=e[r];if($t(n)){const i=t?n.getDisplayedChildren():n.getChildren();Us(i,t,o)}o(n)}}function nb(e){const t=[];return Us(e,!0,o=>{Ti(o)&&t.push(o)}),t}var $q=class extends ue{constructor(){super(...arguments),this.beanName="colGroupSvc"}getColumnGroupState(){const e=[],t=this.beans.colModel.getColTree();return ei(null,t,o=>{go(o)&&e.push({groupId:o.getGroupId(),open:o.isExpanded()})}),e}resetColumnGroupState(e){const t=this.beans.colModel.getColDefColTree();if(!t)return;const o=[];ei(null,t,r=>{if(go(r)){const n=r.getColGroupDef(),i={groupId:r.getGroupId(),open:n?n.openByDefault:void 0};o.push(i)}}),this.setColumnGroupState(o,e)}setColumnGroupState(e,t){const{colModel:o,colAnimation:r,visibleCols:n,eventSvc:i}=this.beans;if(!o.getColTree().length)return;r?.start();const a=[];for(const c of e){const d=c.groupId,h=c.open,f=this.getProvidedColGroup(d);f&&f.isExpanded()!==h&&(f.setExpanded(h),a.push(f))}n.refresh(t,!0),a.length&&i.dispatchEvent({type:"columnGroupOpened",columnGroup:a.length===1?a[0]:void 0,columnGroups:a}),r?.finish()}setColumnGroupOpened(e,t,o){let r;go(e)?r=e.getId():r=e||"",this.setColumnGroupState([{groupId:r,open:t}],o)}getProvidedColGroup(e){let t=null;return ei(null,this.beans.colModel.getColTree(),o=>{go(o)&&o.getId()===e&&(t=o)}),t}getGroupAtDirection(e,t){const o=e.getProvidedColumnGroup().getLevel()+e.getPaddingLevel(),r=e.getDisplayedLeafColumns(),n=t==="After"?vt(r):r[0],i=`getCol${t}`;for(;;){const s=this.beans.visibleCols[i](n);if(!s)return null;const a=this.getColGroupAtLevel(s,o);if(a!==e)return a}}getColGroupAtLevel(e,t){let o=e.getParent(),r,n;for(;r=o.getProvidedColumnGroup().getLevel(),n=o.getPaddingLevel(),!(r+n<=t);)o=o.getParent();return o}updateOpenClosedVisibility(){const e=this.beans.visibleCols.getAllTrees();Us(e,!1,t=>{$t(t)&&t.calculateDisplayedColumns()})}getColumnGroup(e,t){if(!e)return null;if($t(e))return e;const o=this.beans.visibleCols.getAllTrees(),r=typeof t=="number";let n=null;return Us(o,!1,i=>{if($t(i)){const s=i;let a;r?a=e===s.getGroupId()&&t===s.getPartId():a=e===s.getGroupId(),a&&(n=s)}}),n}createColumnGroups(e){const{columns:t,idCreator:o,pinned:r,oldDisplayedGroups:n,isStandaloneStructure:i}=e,s=this.mapOldGroupsById(n),a=[];let c=t;for(;c.length;){const d=c;c=[];let h=0;const f=g=>{const m=h;h=g;const b=d[m],y=($t(b)?b.getProvidedColumnGroup():b).getOriginalParent();if(y==null){for(let C=m;C<g;C++)a.push(d[C]);return}const k=this.createColumnGroup(y,o,s,r,i);for(let C=m;C<g;C++)k.addChild(d[C]);c.push(k)};for(let g=1;g<d.length;g++){const m=d[g],w=($t(m)?m.getProvidedColumnGroup():m).getOriginalParent(),y=d[h],C=($t(y)?y.getProvidedColumnGroup():y).getOriginalParent();w!==C&&f(g)}h<d.length&&f(d.length)}return i||this.setupParentsIntoCols(a,null),a}createProvidedColumnGroup(e,t,o,r,n,i,s){const a=n.getUniqueKey(t.groupId||null,null),c=sF(this.beans,t,a),d=new Eh(c,a,!1,o);this.createBean(d);const h=this.findExistingGroup(t,i);h&&i.splice(h.idx,1);const f=h?.group;f&&d.setExpanded(f.isExpanded());const g=fF(this.beans,c.children,o+1,e,r,n,i,s);return d.setChildren(g),d}balanceColumnTree(e,t,o,r){const n=[];for(let i=0;i<e.length;i++){const s=e[i];if(go(s)){const a=s,c=this.balanceColumnTree(a.getChildren(),t+1,o,r);a.setChildren(c),n.push(a)}else{let a,c;for(let d=t;d<o;d++){const h=r.getUniqueKey(null,null),f=sF(this.beans,null,h),g=new Eh(f,h,!0,d);this.createBean(g),c&&c.setChildren([g]),c=g,a||(a=c)}if(a&&c)if(n.push(a),e.some(h=>go(h))){c.setChildren([s]);continue}else{c.setChildren(e);break}n.push(s)}}return n}findDepth(e){let t=0,o=e;for(;o?.[0]&&go(o[0]);)t++,o=o[0].getChildren();return t}findMaxDepth(e,t){let o=t;for(let r=0;r<e.length;r++){const n=e[r];if(go(n)){const i=n,s=this.findMaxDepth(i.getChildren(),t+1);o<s&&(o=s)}}return o}balanceTreeForAutoCols(e,t){const o=[];for(const r of e){let n=r;for(let i=t-1;i>=0;i--){const s=new Eh(null,`FAKE_PATH_${r.getId()}}_${i}`,!0,i);this.createBean(s),s.setChildren([n]),n.originalParent=s,n=s}t===0&&(r.originalParent=null),o.push(n)}return o}findExistingGroup(e,t){if(e.groupId!=null)for(let r=0;r<t.length;r++){const n=t[r];if(n.getColGroupDef()&&n.getId()===e.groupId)return{idx:r,group:n}}}createColumnGroup(e,t,o,r,n){const i=e.getGroupId(),s=t.getInstanceIdForKey(i),a=sR(i,s);let c=o[a];return c&&c.getProvidedColumnGroup()!==e&&(c=null),Ee(c)?c.reset():(c=new Uc(e,i,s,r),n||this.createBean(c)),c}mapOldGroupsById(e){const t={},o=r=>{for(const n of r)if($t(n)){const i=n;t[n.getUniqueId()]=i,o(i.getChildren())}};return e&&o(e),t}setupParentsIntoCols(e,t){for(const o of e??[])if(o.parent!==t&&(this.beans.colViewport.colsWithinViewportHash=""),o.parent=t,$t(o)){const r=o;this.setupParentsIntoCols(r.getChildren(),r)}}},Kq={moduleName:"ColumnGroup",version:Ve,dynamicBeans:{headerGroupCellCtrl:Aq},beans:[$q],apiFunctions:{getAllDisplayedColumnGroups:Wq,getCenterDisplayedColumnGroups:Gq,getColumnGroup:Bq,getColumnGroupState:Lq,getDisplayNameForColumnGroup:Nq,getLeftDisplayedColumnGroups:Vq,getProvidedColumnGroup:Oq,getRightDisplayedColumnGroups:jq,resetColumnGroupState:Hq,setColumnGroupOpened:Iq,setColumnGroupState:zq}},Xq={tag:"div",cls:"ag-skeleton-container"},Zq=class extends Ro{constructor(){super(Xq)}init(t){const o=`ag-cell-skeleton-renderer-${this.getCompId()}`;this.getGui().setAttribute("id",o),this.addDestroyFunc(()=>Tc(t.eParentOfValue)),Tc(t.eParentOfValue,o),t.deferRender?this.setupLoading(t):t.node.failedLoad?this.setupFailed():this.setupLoading(t)}setupFailed(){const t=this.getLocaleTextFunc();this.getGui().textContent=t("loadingError","ERR");const o=t("ariaSkeletonCellLoadingFailed","Row failed to load");Wa(this.getGui(),o)}setupLoading(t){const o=Ni({tag:"div",cls:"ag-skeleton-effect"}),r=t.node.rowIndex;if(r!=null){const s=75+25*(r%2===0?Math.sin(r):Math.cos(r));o.style.width=`${s}%`}this.getGui().appendChild(o);const n=this.getLocaleTextFunc(),i=t.deferRender?n("ariaDeferSkeletonCellLoading","Cell is loading"):n("ariaSkeletonCellLoading","Row data is loading");Wa(this.getGui(),i)}refresh(t){return!1}},Yq={moduleName:"CheckboxCellRenderer",version:Ve,userComponents:{agCheckboxCellRenderer:_W}},Qq={moduleName:"SkeletonCellRenderer",version:Ve,userComponents:{agSkeletonCellRenderer:Zq}},Jq=class extends ue{constructor(){super(...arguments),this.beanName="colFlex",this.columnsHidden=!1}refreshFlexedColumns(e={}){const t=e.source??"flex";e.viewportWidth!=null&&(this.flexViewportWidth=e.viewportWidth);const o=this.flexViewportWidth,{visibleCols:r,colDelayRenderSvc:n}=this.beans,i=r.centerCols;let s=-1;if(e.resizingCols){const w=new Set(e.resizingCols);for(let y=i.length-1;y>=0;y--)if(w.has(i[y])){s=y;break}}let a=!1;const c=i.map((w,y)=>{const k=w.getFlex(),C=k!=null&&k>0&&y>s;return a||(a=C),{col:w,isFlex:C,flex:Math.max(0,k??0),initialSize:w.getActualWidth(),min:w.getMinWidth(),max:w.getMaxWidth(),targetSize:0}});if(a?(n?.hideColumns("colFlex"),this.columnsHidden=!0):this.columnsHidden&&this.revealColumns(n),!o||!a)return[];let d=c.length,h=c.reduce((w,y)=>w+y.flex,0),f=o;const g=(w,y)=>{w.frozenSize=y,w.col.setActualWidth(y,t),f-=y,h-=w.flex,d-=1},m=w=>w.frozenSize!=null;for(const w of c)w.isFlex||g(w,w.initialSize);for(;d>0;){const w=Math.round(h<1?f*h:f);let y,k=0,C=0;for(const _ of c){if(m(_))continue;y=_,C+=w*(_.flex/h);const P=C-k,D=Math.round(P);_.targetSize=D,k+=D}y&&(y.targetSize+=w-k);let F=0;for(const _ of c){if(m(_))continue;const P=_.targetSize,D=Math.min(Math.max(P,_.min),_.max);F+=D-P,_.violationType=D===P?void 0:D<P?"max":"min",_.targetSize=D}const E=F===0?"all":F>0?"min":"max";for(const _ of c)m(_)||(E==="all"||_.violationType===E)&&g(_,_.targetSize)}e.skipSetLeft||r.setLeftValues(t),e.updateBodyWidths&&r.updateBodyWidths();const b=c.filter(w=>w.isFlex&&!w.violationType).map(w=>w.col);if(e.fireResizedEvent){const w=c.filter(k=>k.initialSize!==k.frozenSize).map(k=>k.col),y=c.filter(k=>k.flex).map(k=>k.col);Th(this.eventSvc,w,!0,t,y)}return this.revealColumns(n),b}revealColumns(e){this.columnsHidden&&(e?.revealColumns("colFlex"),this.columnsHidden=!1)}initCol(e){const{flex:t,initialFlex:o}=e.colDef;t!==void 0?e.flex=t:o!==void 0&&(e.flex=o)}setColFlex(e,t){e.flex=t??null,e.dispatchStateUpdatedEvent("flex")}};function Qc(e,t,o){if(!t||!e)return;if(!o)return e[t];const r=t.split(".");let n=e;for(let i=0;i<r.length;i++){if(n==null)return;n=n[r[i]]}return n}var eU=["dateTimeString","dateString","text","number","boolean","date"],tU=class extends ue{constructor(){super(...arguments),this.beanName="dataTypeSvc",this.dataTypeDefinitions={},this.isPendingInference=!1,this.isColumnTypeOverrideInDataTypeDefinitions=!1,this.columnStateUpdatesPendingInference={},this.columnStateUpdateListenerDestroyFuncs=[],this.columnDefinitionPropsPerDataType={number(){return{cellEditor:"agNumberCellEditor"}},boolean(){return{cellEditor:"agCheckboxCellEditor",cellRenderer:"agCheckboxCellRenderer",getFindText:()=>null,suppressKeyboardEvent:e=>!!e.colDef.editable&&e.event.key===ee.SPACE}},date({formatValue:e}){return{cellEditor:"agDateCellEditor",keyCreator:e}},dateString({formatValue:e}){return{cellEditor:"agDateStringCellEditor",keyCreator:e}},dateTime(e){return this.date(e)},dateTimeString(e){return this.dateString(e)},object({formatValue:e,colModel:t,colId:o}){return{cellEditorParams:{useFormatter:!0},comparator:(r,n)=>{const i=t.getColDefCol(o),s=i?.getColDef();if(!i||!s)return 0;const a=r==null?"":e({column:i,node:null,value:r}),c=n==null?"":e({column:i,node:null,value:n});return a===c?0:a>c?1:-1},keyCreator:e}},text(){return{}}}}wireBeans(e){this.colModel=e.colModel}postConstruct(){this.processDataTypeDefinitions(),this.addManagedPropertyListener("dataTypeDefinitions",e=>{this.processDataTypeDefinitions(),this.colModel.recreateColumnDefs(e)})}processDataTypeDefinitions(){const e=this.getDefaultDataTypes(),t={},o={},r=h=>f=>{const{column:g,node:m,value:b}=f;let w=g.getColDef().valueFormatter;return w===h.groupSafeValueFormatter&&(w=h.valueFormatter),this.beans.valueSvc.formatValue(g,m,b,w)};for(const h of Object.keys(e)){const f=e[h],g={...f,groupSafeValueFormatter:JR(f,this.gos)};t[h]=g,o[h]=r(g)}const n=this.gos.get("dataTypeDefinitions")??{},i={};for(const h of Object.keys(n)){const f=n[h],g=this.processDataTypeDefinition(f,n,[h],e);g&&(t[h]=g,f.dataTypeMatcher&&(i[h]=f.dataTypeMatcher),o[h]=r(g))}const{valueParser:s,valueFormatter:a}=e.object,{valueParser:c,valueFormatter:d}=t.object;this.hasObjectValueParser=c!==s,this.hasObjectValueFormatter=d!==a,this.formatValueFuncs=o,this.dataTypeDefinitions=t,this.dataTypeMatchers=this.sortKeysInMatchers(i,e)}sortKeysInMatchers(e,t){const o={...e};for(const r of eU)delete o[r],o[r]=e[r]??t[r].dataTypeMatcher;return o}processDataTypeDefinition(e,t,o,r){let n;const i=e.extendsDataType;if(e.columnTypes&&(this.isColumnTypeOverrideInDataTypeDefinitions=!0),e.extendsDataType===e.baseDataType){let s=r[i];const a=t[i];if(s&&a&&(s=a),!QR(e,s,i))return;n=YR(s,e)}else{if(o.includes(i)){he(44);return}const s=t[i];if(!QR(e,s,i))return;const a=this.processDataTypeDefinition(s,t,[...o,i],r);if(!a)return;n=YR(a,e)}return{...n,groupSafeValueFormatter:JR(n,this.gos)}}updateColDefAndGetColumnType(e,t,o){let{cellDataType:r}=t;const{field:n}=t;if(r===void 0&&(r=e.cellDataType),(r==null||r===!0)&&(r=this.canInferCellDataType(e,t)?this.inferCellDataType(n,o):!1),!r){e.cellDataType=!1;return}const i=this.dataTypeDefinitions[r];if(!i){he(47,{cellDataType:r});return}return e.cellDataType=r,i.groupSafeValueFormatter&&(e.valueFormatter=i.groupSafeValueFormatter),i.valueParser&&(e.valueParser=i.valueParser),i.suppressDefaultProperties||this.setColDefPropertiesForBaseDataType(e,r,i,o),i.columnTypes}addColumnListeners(e){if(!this.isPendingInference)return;const t=this.columnStateUpdatesPendingInference[e.getColId()];if(!t)return;const o=r=>{t.add(r.key)};e.__addEventListener("columnStateUpdated",o),this.columnStateUpdateListenerDestroyFuncs.push(()=>e.__removeEventListener("columnStateUpdated",o))}canInferCellDataType(e,t){const{gos:o}=this;if(!Fo(o))return!1;const r={cellRenderer:!0,valueGetter:!0,valueParser:!0,refData:!0};if(ib(t,r))return!1;const n=t.type===null?e.type:t.type;if(n){const i=o.get("columnTypes")??{};if(Dh(n).some(a=>{const c=i[a.trim()];return c&&ib(c,r)}))return!1}return!ib(e,r)}inferCellDataType(e,t){if(!e)return;let o;const r=this.getInitialData();if(r){const i=e.includes(".")&&!this.gos.get("suppressFieldDotNotation");o=Qc(r,e,i)}else this.initWaitForRowData(t);return o==null?void 0:Object.keys(this.dataTypeMatchers).find(i=>this.dataTypeMatchers[i](o))??"object"}getInitialData(){const e=this.gos.get("rowData");if(e?.length)return e[0];if(this.initialData)return this.initialData;{const t=this.beans.rowModel.rootNode?._leafs;if(t?.length)return t[0].data}return null}initWaitForRowData(e){if(this.columnStateUpdatesPendingInference[e]=new Set,this.isPendingInference)return;this.isPendingInference=!0;const t=this.isColumnTypeOverrideInDataTypeDefinitions,{colAutosize:o,eventSvc:r}=this.beans;t&&o&&(o.shouldQueueResizeOperations=!0);const[n]=this.addManagedEventListeners({rowDataUpdateStarted:i=>{const{firstRowData:s}=i;s&&(n?.(),this.isPendingInference=!1,this.processColumnsPendingInference(s,t),this.columnStateUpdatesPendingInference={},t&&o?.processResizeOperations(),r.dispatchEvent({type:"dataTypesInferred"}))}})}processColumnsPendingInference(e,t){this.initialData=e;const o=[];this.destroyColumnStateUpdateListeners();const r={},n={};for(const i of Object.keys(this.columnStateUpdatesPendingInference)){const s=this.columnStateUpdatesPendingInference[i],a=this.colModel.getCol(i);if(!a)return;const c=a.getColDef();if(!this.resetColDefIntoCol(a,"cellDataTypeInferred"))return;const d=a.getColDef();if(t&&d.type&&d.type!==c.type){const h=rU(a,s);h.rowGroup&&h.rowGroupIndex==null&&(r[i]=h),h.pivot&&h.pivotIndex==null&&(n[i]=h),o.push(h)}}t&&o.push(...this.generateColumnStateForRowGroupAndPivotIndexes(r,n)),o.length&&sv(this.beans,{state:o},"cellDataTypeInferred"),this.initialData=null}generateColumnStateForRowGroupAndPivotIndexes(e,t){const o={},{rowGroupColsSvc:r,pivotColsSvc:n}=this.beans;return r?.restoreColumnOrder(o,e),n?.restoreColumnOrder(o,t),Object.values(o)}resetColDefIntoCol(e,t){const o=e.getUserProvidedColDef();if(!o)return!1;const r=iv(this.beans,o,e.getColId());return e.setColDef(r,o,t),!0}getDateStringTypeDefinition(e){const{dateString:t}=this.dataTypeDefinitions;return e?this.getDataTypeDefinition(e)??t:t}getDateParserFunction(e){return this.getDateStringTypeDefinition(e).dateParser}getDateFormatterFunction(e){return this.getDateStringTypeDefinition(e).dateFormatter}getDateIncludesTimeFlag(e){return e==="dateTime"||e==="dateTimeString"}getDataTypeDefinition(e){const t=e.getColDef();if(t.cellDataType)return this.dataTypeDefinitions[t.cellDataType]}getBaseDataType(e){return this.getDataTypeDefinition(e)?.baseDataType}checkType(e,t){if(t==null)return!0;const o=this.getDataTypeDefinition(e)?.dataTypeMatcher;return!o||e.getColDef().allowFormula&&this.beans.formula?.isFormula(t)?!0:o(t)}validateColDef(e){const t=o=>he(48,{property:o});if(e.cellDataType==="object"){const{object:o}=this.dataTypeDefinitions;e.valueFormatter===o.groupSafeValueFormatter&&!this.hasObjectValueFormatter&&t("Formatter"),e.editable&&e.valueParser===o.valueParser&&!this.hasObjectValueParser&&t("Parser")}}postProcess(e){const t=e.cellDataType;if(!t||typeof t!="string")return;const{dataTypeDefinitions:o,beans:r,formatValueFuncs:n}=this,i=o[t];i&&r.colFilter?.setColDefPropsForDataType(e,i,n[t])}getFormatValue(e){return this.formatValueFuncs[e]}isColPendingInference(e){return this.isPendingInference&&!!this.columnStateUpdatesPendingInference[e]}setColDefPropertiesForBaseDataType(e,t,o,r){const n=this.formatValueFuncs[t],i=this.columnDefinitionPropsPerDataType[o.baseDataType]({colDef:e,cellDataType:t,colModel:this.colModel,dataTypeDefinition:o,colId:r,formatValue:n});Object.assign(e,i)}getDateObjectTypeDef(e){const t=this.getLocaleTextFunc(),o=this.getDateIncludesTimeFlag(e);return{baseDataType:e,valueParser:r=>Sv(r.newValue&&String(r.newValue)),valueFormatter:r=>r.value==null?"":!(r.value instanceof Date)||isNaN(r.value.getTime())?t("invalidDate","Invalid Date"):LF(r.value,o)??"",dataTypeMatcher:r=>r instanceof Date}}getDateStringTypeDef(e){const t=this.getDateIncludesTimeFlag(e);return{baseDataType:e,dateParser:o=>Sv(o)??void 0,dateFormatter:o=>LF(o??null,t)??void 0,valueParser:o=>Bh(String(o.newValue))?o.newValue:null,valueFormatter:o=>Bh(String(o.value))?String(o.value):"",dataTypeMatcher:o=>typeof o=="string"&&Bh(o)}}getDefaultDataTypes(){const e=this.getLocaleTextFunc();return{number:{baseDataType:"number",valueParser:t=>t.newValue?.trim?.()===""?null:Number(t.newValue),valueFormatter:t=>t.value==null?"":typeof t.value!="number"||isNaN(t.value)?e("invalidNumber","Invalid Number"):String(t.value),dataTypeMatcher:t=>typeof t=="number"},text:{baseDataType:"text",valueParser:t=>t.newValue===""?null:Tm(t.newValue),dataTypeMatcher:t=>typeof t=="string"},boolean:{baseDataType:"boolean",valueParser:t=>t.newValue==null?t.newValue:t.newValue?.trim?.()===""?null:String(t.newValue).toLowerCase()==="true",valueFormatter:t=>t.value==null?"":String(t.value),dataTypeMatcher:t=>typeof t=="boolean"},date:this.getDateObjectTypeDef("date"),dateString:this.getDateStringTypeDef("dateString"),dateTime:this.getDateObjectTypeDef("dateTime"),dateTimeString:{...this.getDateStringTypeDef("dateTimeString"),dataTypeMatcher:t=>typeof t=="string"&&K9(t)},object:{baseDataType:"object",valueParser:()=>null,valueFormatter:t=>Tm(t.value)??""}}}destroyColumnStateUpdateListeners(){for(const e of this.columnStateUpdateListenerDestroyFuncs)e();this.columnStateUpdateListenerDestroyFuncs=[]}destroy(){this.dataTypeDefinitions={},this.dataTypeMatchers={},this.formatValueFuncs={},this.columnStateUpdatesPendingInference={},this.destroyColumnStateUpdateListeners(),super.destroy()}};function YR(e,t){const o={...e,...t};return e.columnTypes&&t.columnTypes&&t.appendColumnTypes&&(o.columnTypes=[...Dh(e.columnTypes),...Dh(t.columnTypes)]),o}function QR(e,t,o){return t?t.baseDataType!==e.baseDataType?(he(46),!1):!0:(he(45,{parentCellDataType:o}),!1)}function JR(e,t){if(e.valueFormatter)return o=>{if(o.node?.group){const r=(o.colDef.pivotValueColumn??o.column).getAggFunc();if(r){if(r==="first"||r==="last")return e.valueFormatter(o);if(e.baseDataType==="number"&&r!=="count"){if(typeof o.value=="number")return e.valueFormatter(o);if(typeof o.value=="object"){if(!o.value)return;if("toNumber"in o.value)return e.valueFormatter({...o,value:o.value.toNumber()});if("value"in o.value)return e.valueFormatter({...o,value:o.value.value})}}return}}else if(t.get("groupHideOpenParents")&&o.column.isRowGroupActive()&&typeof o.value=="string"&&!e.dataTypeMatcher?.(o.value))return;return e.valueFormatter(o)}}function oU(e,t,o,r){if(!t[o])return!1;const n=e[o];return n===null?(t[o]=!1,!1):r===void 0?!!n:n===r}function ib(e,t){return[["cellRenderer","agSparklineCellRenderer"],["valueGetter",void 0],["valueParser",void 0],["refData",void 0]].some(([o,r])=>oU(e,t,o,r))}function rU(e,t){const o=K7(e);for(const r of t)delete o[r],r==="rowGroup"?delete o.rowGroupIndex:r==="pivot"&&delete o.pivotIndex;return o}var nU={moduleName:"DataType",version:Ve,beans:[tU],dependsOn:[Yq]},iU={moduleName:"ColumnFlex",version:Ve,beans:[Jq]};function sU(e){if(!e||e==null)return null;const t=/([a-z])([A-Z])/g,o=/([A-Z]+)([A-Z])([a-z])/g;return e.replace(t,"$1 $2").replace(o,"$1 $2$3").replace(/\./g," ").split(" ").map(n=>n.substring(0,1).toUpperCase()+(n.length>1?n.substring(1,n.length):"")).join(" ")}var aU=class extends ue{constructor(){super(...arguments),this.beanName="colNames"}getDisplayNameForColumn(e,t,o=!1){if(!e)return null;const r=this.getHeaderName(e.getColDef(),e,null,null,t),{aggColNameSvc:n}=this.beans;return o&&n?n.getHeaderName(e,r):r}getDisplayNameForProvidedColumnGroup(e,t,o){const r=t?.getColGroupDef();return r?this.getHeaderName(r,null,e,t,o):null}getDisplayNameForColumnGroup(e,t){return this.getDisplayNameForProvidedColumnGroup(e,e.getProvidedColumnGroup(),t)}getHeaderName(e,t,o,r,n){const i=e.headerValueGetter;if(i){const s=Ze(this.gos,{colDef:e,column:t,columnGroup:o,providedColumnGroup:r,location:n});return typeof i=="function"?i(s):typeof i=="string"?this.beans.expressionSvc?.evaluate(i,s)??null:""}else{if(e.headerName!=null)return e.headerName;if(e.field)return sU(e.field)}return""}},lU=class extends ue{constructor(){super(...arguments),this.beanName="colViewport",this.colsWithinViewport=[],this.headerColsWithinViewport=[],this.colsWithinViewportHash="",this.rowsOfHeadersToRenderLeft={},this.rowsOfHeadersToRenderRight={},this.rowsOfHeadersToRenderCenter={},this.columnsToRenderLeft=[],this.columnsToRenderRight=[],this.columnsToRenderCenter=[]}wireBeans(e){this.visibleCols=e.visibleCols,this.colModel=e.colModel}postConstruct(){this.suppressColumnVirtualisation=this.gos.get("suppressColumnVirtualisation")}setScrollPosition(e,t,o=!1){const{visibleCols:r}=this,n=r.isBodyWidthDirty;if(!(e===this.scrollWidth&&t===this.scrollPosition&&!n)){if(this.scrollWidth=e,this.scrollPosition=t,r.isBodyWidthDirty=!0,this.gos.get("enableRtl")){const s=r.bodyWidth;this.viewportLeft=s-t-e,this.viewportRight=s-t}else this.viewportLeft=t,this.viewportRight=e+t;this.colModel.ready&&this.checkViewportColumns(o)}}getColumnHeadersToRender(e){switch(e){case"left":return this.columnsToRenderLeft;case"right":return this.columnsToRenderRight;default:return this.columnsToRenderCenter}}getHeadersToRender(e,t){let o;switch(e){case"left":o=this.rowsOfHeadersToRenderLeft[t];break;case"right":o=this.rowsOfHeadersToRenderRight[t];break;default:o=this.rowsOfHeadersToRenderCenter[t];break}return o??[]}extractViewportColumns(){const e=this.visibleCols.centerCols;this.isColumnVirtualisationSuppressed()?(this.colsWithinViewport=e,this.headerColsWithinViewport=e):(this.colsWithinViewport=e.filter(this.isColumnInRowViewport.bind(this)),this.headerColsWithinViewport=e.filter(this.isColumnInHeaderViewport.bind(this)))}isColumnVirtualisationSuppressed(){return this.suppressColumnVirtualisation||this.viewportRight===0}clear(){this.rowsOfHeadersToRenderLeft={},this.rowsOfHeadersToRenderRight={},this.rowsOfHeadersToRenderCenter={},this.colsWithinViewportHash=""}isColumnInHeaderViewport(e){return e.isAutoHeaderHeight()||cU(e)?!0:this.isColumnInRowViewport(e)}isColumnInRowViewport(e){if(e.isAutoHeight())return!0;const t=e.getLeft()||0,o=t+e.getActualWidth(),r=this.viewportLeft-200,n=this.viewportRight+200,i=t<r&&o<r,s=t>n&&o>n;return!i&&!s}getViewportColumns(){const{leftCols:e,rightCols:t}=this.visibleCols;return this.colsWithinViewport.concat(e).concat(t)}getColsWithinViewport(e){if(!this.colModel.colSpanActive)return this.colsWithinViewport;const t=i=>{const s=i.getLeft();return Ee(s)&&s>this.viewportLeft},o=this.isColumnVirtualisationSuppressed()?void 0:this.isColumnInRowViewport.bind(this),{visibleCols:r}=this,n=r.centerCols;return r.getColsForRow(e,n,o,t)}checkViewportColumns(e=!1){this.extractViewport()&&this.eventSvc.dispatchEvent({type:"virtualColumnsChanged",afterScroll:e})}calculateHeaderRows(){const{leftCols:e,rightCols:t}=this.visibleCols;this.columnsToRenderLeft=e,this.columnsToRenderRight=t,this.columnsToRenderCenter=this.colsWithinViewport;const o=r=>{const n=new Set,i={};for(const s of r){let a=s.getParent();const c=s.isSpanHeaderHeight();for(;a&&!n.has(a);){if(c&&a.isPadding()){a=a.getParent();continue}const h=a.getProvidedColumnGroup().getLevel();i[h]??(i[h]=[]),i[h].push(a),n.add(a),a=a.getParent()}}return i};this.rowsOfHeadersToRenderLeft=o(e),this.rowsOfHeadersToRenderRight=o(t),this.rowsOfHeadersToRenderCenter=o(this.headerColsWithinViewport)}extractViewport(){const e=r=>`${r.getId()}-${r.getPinned()||"normal"}`;this.extractViewportColumns();const t=this.getViewportColumns().map(e).join("#"),o=this.colsWithinViewportHash!==t;return o&&(this.colsWithinViewportHash=t,this.calculateHeaderRows()),o}};function cU(e){for(;e;){if(e.isAutoHeaderHeight())return!0;e=e.getParent()}return!1}var uU=class extends ue{constructor(){super(...arguments),this.beanName="agCompUtils"}adaptFunction(e,t){if(!e.cellRenderer)return null;class o{refresh(){return!1}getGui(){return this.eGui}init(n){const i=t(n),s=typeof i;if(s==="string"||s==="number"||s==="boolean"){this.eGui=Nm("<span>"+i+"</span>");return}if(i==null){this.eGui=Ni({tag:"span"});return}this.eGui=i}}return o}},dU={moduleName:"CellRendererFunction",version:Ve,beans:[uU]},hU=class extends HG{constructor(){super(...arguments),this.agGridDefaults={},this.agGridDefaultOverrides={},this.jsComps={},this.selectors={},this.icons={}}postConstruct(){const e=this.gos.get("components");if(e!=null)for(const t of Object.keys(e))this.jsComps[t]=e[t]}registerModule(e){const{icons:t,userComponents:o,dynamicBeans:r,selectors:n}=e;if(o){const i=(s,a,c,d)=>{this.agGridDefaults[s]=a,(c||d)&&(this.agGridDefaultOverrides[s]={params:c,processParams:d})};for(const s of Object.keys(o)){let a=o[s];if(D9(a)&&(a=a.getComp(this.beans)),typeof a=="object"){const{classImp:c,params:d,processParams:h}=a;i(s,c,d,h)}else i(s,a)}}this.registerDynamicBeans(r);for(const i of n??[])this.selectors[i.selector]=i;if(t)for(const i of Object.keys(t))this.icons[i]=t[i]}getUserComponent(e,t){const o=(a,c,d,h)=>({componentFromFramework:c,component:a,params:d,processParams:h}),{frameworkOverrides:r}=this.beans,n=r.frameworkComponent(t,this.gos.get("components"));if(n!=null)return o(n,!0);const i=this.jsComps[t];if(i){const a=r.isFrameworkComponent(i);return o(i,a)}const s=this.agGridDefaults[t];if(s){const a=this.agGridDefaultOverrides[t];return o(s,!1,a?.params,a?.processParams)}return this.beans.validation?.missingUserComponent(e,t,this.agGridDefaults,this.jsComps),null}getSelector(e){return this.selectors[e]}getIcon(e){return this.icons[e]}getDynamicError(e,t){return t?Cn(279,{name:e}):this.beans.validation?.missingDynamicBean(e)??Cn(256)}},fU=23,pU=class extends ue{constructor(){super(...arguments),this.beanName="ctrlsSvc",this.params={},this.ready=!1,this.readyCallbacks=[]}postConstruct(){this.addEventListener("ready",()=>{if(this.updateReady(),this.ready){for(const e of this.readyCallbacks)e(this.params);this.readyCallbacks.length=0}},this.beans.frameworkOverrides.runWhenReadyAsync?.()??!1)}updateReady(){const e=Object.values(this.params);this.ready=e.length===fU&&e.every(t=>t?.isAlive()??!1)}whenReady(e,t){this.ready?t(this.params):this.readyCallbacks.push(t),e.addDestroyFunc(()=>{const o=this.readyCallbacks.indexOf(t);o>=0&&this.readyCallbacks.splice(o,1)})}register(e,t){this.params[e]=t,this.updateReady(),this.ready&&this.dispatchLocalEvent({type:"ready"}),t.addDestroyFunc(()=>{this.updateReady()})}get(e){return this.params[e]}getGridBodyCtrl(){return this.params.gridBodyCtrl}getHeaderRowContainerCtrls(){const{leftHeader:e,centerHeader:t,rightHeader:o}=this.params;return[e,o,t]}getHeaderRowContainerCtrl(e){const t=this.params;switch(e){case"left":return t.leftHeader;case"right":return t.rightHeader;default:return t.centerHeader}}getScrollFeature(){return this.getGridBodyCtrl().scrollFeature}},gU='.ag-aria-description-container{border:0;z-index:9999;clip:rect(1px,1px,1px,1px);height:1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}.ag-unselectable{-webkit-user-select:none;-moz-user-select:none;user-select:none}.ag-selectable{-webkit-user-select:text;-moz-user-select:text;user-select:text}.ag-shake-left-to-right{animation-direction:alternate;animation-duration:.2s;animation-iteration-count:infinite;animation-name:ag-shake-left-to-right}@keyframes ag-shake-left-to-right{0%{padding-left:6px;padding-right:2px}to{padding-left:2px;padding-right:6px}}.ag-body-horizontal-scroll-viewport,.ag-body-vertical-scroll-viewport,.ag-body-viewport,.ag-center-cols-viewport,.ag-floating-bottom-viewport,.ag-floating-top-viewport,.ag-header-viewport,.ag-sticky-bottom-viewport,.ag-sticky-top-viewport{flex:1 1 auto;height:100%;min-width:0;overflow:hidden;position:relative}.ag-viewport{position:relative}.ag-spanning-container{position:absolute;top:0;z-index:1}.ag-body-viewport,.ag-center-cols-viewport,.ag-floating-bottom-viewport,.ag-floating-top-viewport,.ag-header-viewport,.ag-sticky-bottom-viewport,.ag-sticky-top-viewport{overflow-x:auto;-ms-overflow-style:none!important;scrollbar-width:none!important;&::-webkit-scrollbar{display:none!important}}.ag-body-viewport{display:flex;overflow-x:hidden;&:where(.ag-layout-normal){overflow-y:auto;-webkit-overflow-scrolling:touch}}.ag-floating-bottom-container,.ag-floating-top-container,.ag-sticky-bottom-container,.ag-sticky-top-container{min-height:1px}.ag-center-cols-viewport{min-height:100%;width:100%}.ag-body-horizontal-scroll-viewport{overflow-x:scroll}.ag-body-vertical-scroll-viewport{overflow-y:scroll}.ag-body-container,.ag-body-horizontal-scroll-container,.ag-body-vertical-scroll-container,.ag-center-cols-container,.ag-floating-bottom-container,.ag-floating-bottom-full-width-container,.ag-floating-top-container,.ag-full-width-container,.ag-header-container,.ag-pinned-left-cols-container,.ag-pinned-right-cols-container,.ag-sticky-bottom-container,.ag-sticky-top-container{position:relative}.ag-floating-bottom-container,.ag-floating-top-container,.ag-header-container,.ag-pinned-left-floating-bottom,.ag-pinned-left-floating-top,.ag-pinned-right-floating-bottom,.ag-pinned-right-floating-top,.ag-sticky-bottom-container,.ag-sticky-top-container{height:100%;white-space:nowrap}.ag-center-cols-container,.ag-pinned-right-cols-container{display:block}.ag-body-horizontal-scroll-container{height:100%}.ag-body-vertical-scroll-container{width:100%}.ag-floating-bottom-full-width-container,.ag-floating-top-full-width-container,.ag-full-width-container,.ag-sticky-bottom-full-width-container,.ag-sticky-top-full-width-container{pointer-events:none;position:absolute;top:0}:where(.ag-ltr) .ag-floating-bottom-full-width-container,:where(.ag-ltr) .ag-floating-top-full-width-container,:where(.ag-ltr) .ag-full-width-container,:where(.ag-ltr) .ag-sticky-bottom-full-width-container,:where(.ag-ltr) .ag-sticky-top-full-width-container{left:0}:where(.ag-rtl) .ag-floating-bottom-full-width-container,:where(.ag-rtl) .ag-floating-top-full-width-container,:where(.ag-rtl) .ag-full-width-container,:where(.ag-rtl) .ag-sticky-bottom-full-width-container,:where(.ag-rtl) .ag-sticky-top-full-width-container{right:0}.ag-full-width-container{width:100%}.ag-floating-bottom-full-width-container,.ag-floating-top-full-width-container{display:inline-block;height:100%;overflow:hidden;width:100%}.ag-body{display:flex;flex:1 1 auto;flex-direction:row!important;min-height:0;position:relative}.ag-body-horizontal-scroll,.ag-body-vertical-scroll{display:flex;min-height:0;min-width:0;position:relative;&:where(.ag-scrollbar-invisible){bottom:0;position:absolute;&:where(.ag-apple-scrollbar){opacity:0;transition:opacity .4s;visibility:hidden;&:where(.ag-scrollbar-scrolling,.ag-scrollbar-active){opacity:1;visibility:visible}}}}.ag-body-horizontal-scroll{width:100%;&:where(.ag-scrollbar-invisible){left:0;right:0}}.ag-body-vertical-scroll{height:100%;&:where(.ag-scrollbar-invisible){top:0;z-index:10}}:where(.ag-ltr) .ag-body-vertical-scroll{&:where(.ag-scrollbar-invisible){right:0}}:where(.ag-rtl) .ag-body-vertical-scroll{&:where(.ag-scrollbar-invisible){left:0}}.ag-force-vertical-scroll{overflow-y:scroll!important}.ag-horizontal-left-spacer,.ag-horizontal-right-spacer{height:100%;min-width:0;overflow-x:scroll;&:where(.ag-scroller-corner){overflow-x:hidden}}:where(.ag-row-animation) .ag-row{transition:transform .4s,top .4s,opacity .2s;&:where(.ag-after-created){transition:transform .4s,top .4s,height .4s,opacity .2s}}:where(.ag-row-animation.ag-prevent-animation) .ag-row{transition:none!important;&:where(.ag-row.ag-after-created){transition:none!important}}:where(.ag-row-no-animation) .ag-row{transition:none}.ag-row-loading{align-items:center;display:flex}.ag-row-position-absolute{position:absolute}.ag-row-position-relative{position:relative}.ag-full-width-row{overflow:hidden;pointer-events:all}.ag-row-inline-editing{z-index:1}.ag-row-dragging{z-index:2}.ag-stub-cell{align-items:center;display:flex}.ag-cell{display:inline-block;height:100%;position:absolute;white-space:nowrap;&:focus-visible{box-shadow:none}}.ag-cell-value{flex:1 1 auto}.ag-cell-value:not(.ag-allow-overflow),.ag-group-value{overflow:hidden;text-overflow:ellipsis}.ag-cell-wrap-text{white-space:normal;word-break:break-word}:where(.ag-cell) .ag-icon{display:inline-block;vertical-align:middle}.ag-floating-top{display:flex;overflow:hidden;position:relative;white-space:nowrap;width:100%}:where(.ag-floating-top:not(.ag-invisible)){border-bottom:var(--ag-pinned-row-border)}.ag-floating-bottom{display:flex;overflow:hidden;position:relative;white-space:nowrap;width:100%}:where(.ag-floating-bottom:not(.ag-invisible)){border-top:var(--ag-pinned-row-border)}.ag-sticky-bottom,.ag-sticky-top{background-color:var(--ag-data-background-color);display:flex;height:0;overflow:hidden;position:absolute;width:100%;z-index:1}.ag-opacity-zero{opacity:0!important}.ag-cell-label-container{align-items:center;display:flex;flex-direction:row-reverse;height:100%;justify-content:space-between;width:100%}:where(.ag-right-aligned-header){.ag-cell-label-container{flex-direction:row}.ag-header-cell-text{text-align:end}}.ag-column-group-icons{display:block;>*{cursor:pointer}}:where(.ag-ltr){direction:ltr;.ag-body,.ag-body-horizontal-scroll,.ag-body-viewport,.ag-floating-bottom,.ag-floating-top,.ag-header,.ag-sticky-bottom,.ag-sticky-top{flex-direction:row}}:where(.ag-rtl){direction:rtl;text-align:right;.ag-body,.ag-body-horizontal-scroll,.ag-body-viewport,.ag-floating-bottom,.ag-floating-top,.ag-header,.ag-sticky-bottom,.ag-sticky-top{flex-direction:row-reverse}.ag-icon-contracted,.ag-icon-expanded,.ag-icon-tree-closed{display:block}}:where(.ag-rtl){.ag-icon-contracted,.ag-icon-expanded,.ag-icon-tree-closed{transform:rotate(180deg)}}:where(.ag-rtl){.ag-icon-contracted,.ag-icon-expanded,.ag-icon-tree-closed{transform:rotate(-180deg)}}:where(.ag-ltr) .ag-row:not(.ag-row-level-0) .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}:where(.ag-rtl) .ag-row:not(.ag-row-level-0) .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}:where(.ag-ltr) .ag-row-group-leaf-indent{margin-left:calc(var(--ag-cell-widget-spacing) + var(--ag-icon-size))}:where(.ag-rtl) .ag-row-group-leaf-indent{margin-right:calc(var(--ag-cell-widget-spacing) + var(--ag-icon-size))}.ag-value-change-delta{padding:0 2px}.ag-value-change-delta-up{color:var(--ag-value-change-delta-up-color)}.ag-value-change-delta-down{color:var(--ag-value-change-delta-down-color)}.ag-value-change-value{background-color:transparent;border-radius:1px;padding-left:1px;padding-right:1px;transition:background-color 1s}.ag-value-change-value-highlight{background-color:var(--ag-value-change-value-highlight-background-color);transition:background-color .1s}.ag-cell-data-changed{background-color:var(--ag-value-change-value-highlight-background-color)!important}.ag-cell-data-changed-animation{background-color:transparent}.ag-cell-highlight{background-color:var(--ag-range-selection-highlight-color)!important}.ag-row,.ag-spanned-row{color:var(--ag-cell-text-color);font-family:var(--ag-cell-font-family);font-size:var(--ag-data-font-size);white-space:nowrap;--ag-internal-content-line-height:calc(min(var(--ag-row-height), var(--ag-line-height, 1000px)) - var(--ag-internal-row-border-width, 1px) - 2px)}.ag-row{background-color:var(--ag-data-background-color);border-bottom:var(--ag-row-border);height:var(--ag-row-height);width:100%;&.ag-row-editing-invalid{background-color:var(--ag-full-row-edit-invalid-background-color)}}:where(.ag-body-vertical-content-no-gap>div>div>div,.ag-body-vertical-content-no-gap>div>div>div>div)>.ag-row-last{border-bottom-color:transparent}.ag-sticky-bottom{border-top:var(--ag-row-border);box-sizing:content-box!important}.ag-group-contracted,.ag-group-expanded{cursor:pointer}.ag-cell,.ag-full-width-row .ag-cell-wrapper.ag-row-group{border:1px solid transparent;line-height:var(--ag-internal-content-line-height);-webkit-font-smoothing:subpixel-antialiased}:where(.ag-ltr) .ag-cell{border-right:var(--ag-column-border)}:where(.ag-rtl) .ag-cell{border-left:var(--ag-column-border)}.ag-spanned-cell-wrapper{background-color:var(--ag-data-background-color);position:absolute}.ag-spanned-cell-wrapper>.ag-spanned-cell{display:block;position:relative}:where(.ag-ltr) :where(.ag-body-horizontal-content-no-gap) .ag-column-last{border-right-color:transparent}:where(.ag-rtl) :where(.ag-body-horizontal-content-no-gap) .ag-column-last{border-left-color:transparent}.ag-cell-wrapper{align-items:center;display:flex;>:where(:not(.ag-cell-value,.ag-group-value)){align-items:center;display:flex;height:var(--ag-internal-content-line-height)}&:where(.ag-row-group){align-items:flex-start}:where(.ag-full-width-row) &:where(.ag-row-group){align-items:center;height:100%}}:where(.ag-ltr) .ag-cell-wrapper{padding-left:calc(var(--ag-indentation-level)*var(--ag-row-group-indent-size))}:where(.ag-rtl) .ag-cell-wrapper{padding-right:calc(var(--ag-indentation-level)*var(--ag-row-group-indent-size))}:where(.ag-cell-wrap-text:not(.ag-cell-auto-height)) .ag-cell-wrapper{align-items:normal;height:100%;:where(.ag-cell-value){height:100%}}:where(.ag-ltr) .ag-row>.ag-cell-wrapper.ag-row-group{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size)*var(--ag-indentation-level))}:where(.ag-rtl) .ag-row>.ag-cell-wrapper.ag-row-group{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size)*var(--ag-indentation-level))}.ag-cell-focus:not(.ag-cell-range-selected):focus-within,.ag-cell-range-single-cell,.ag-cell-range-single-cell.ag-cell-range-handle,.ag-context-menu-open .ag-cell-focus:not(.ag-cell-range-selected),.ag-context-menu-open .ag-full-width-row.ag-row-focus .ag-cell-wrapper.ag-row-group,.ag-full-width-row.ag-row-focus:focus .ag-cell-wrapper.ag-row-group{border:1px solid;border-color:var(--ag-range-selection-border-color);border-style:var(--ag-range-selection-border-style);outline:initial}.ag-full-width-row.ag-row-focus:focus{box-shadow:none}:where(.ag-ltr) .ag-group-contracted,:where(.ag-ltr) .ag-group-expanded,:where(.ag-ltr) .ag-row-drag,:where(.ag-ltr) .ag-selection-checkbox{margin-right:var(--ag-cell-widget-spacing)}:where(.ag-rtl) .ag-group-contracted,:where(.ag-rtl) .ag-group-expanded,:where(.ag-rtl) .ag-row-drag,:where(.ag-rtl) .ag-selection-checkbox{margin-left:var(--ag-cell-widget-spacing)}.ag-drag-handle-disabled{opacity:.35;pointer-events:none}:where(.ag-ltr) .ag-group-child-count{margin-left:3px}:where(.ag-rtl) .ag-group-child-count{margin-right:3px}.ag-row-highlight-above:after,.ag-row-highlight-below:after,.ag-row-highlight-inside:after{background-color:var(--ag-row-drag-indicator-color);border-radius:calc(var(--ag-row-drag-indicator-width)/2);content:"";height:var(--ag-row-drag-indicator-width);pointer-events:none;position:absolute;width:calc(100% - 1px)}:where(.ag-ltr) .ag-row-highlight-above:after,:where(.ag-ltr) .ag-row-highlight-below:after,:where(.ag-ltr) .ag-row-highlight-inside:after{left:1px}:where(.ag-rtl) .ag-row-highlight-above:after,:where(.ag-rtl) .ag-row-highlight-below:after,:where(.ag-rtl) .ag-row-highlight-inside:after{right:1px}.ag-row-highlight-above:after{top:0}.ag-row-highlight-below:after{bottom:0}.ag-row-highlight-indent:after{display:block;width:auto}:where(.ag-ltr) .ag-row-highlight-indent:after{left:calc((var(--ag-cell-widget-spacing) + var(--ag-icon-size))*2 + var(--ag-cell-horizontal-padding) + var(--ag-row-highlight-level)*var(--ag-row-group-indent-size));right:1px}:where(.ag-rtl) .ag-row-highlight-indent:after{left:1px;right:calc((var(--ag-cell-widget-spacing) + var(--ag-icon-size))*2 + var(--ag-cell-horizontal-padding) + var(--ag-row-highlight-level)*var(--ag-row-group-indent-size))}.ag-row-highlight-inside:after{background-color:var(--ag-selected-row-background-color);border:1px solid var(--ag-range-selection-border-color);display:block;height:auto;inset:0;width:auto}.ag-body,.ag-floating-bottom,.ag-floating-top{background-color:var(--ag-data-background-color)}.ag-row-odd{background-color:var(--ag-odd-row-background-color)}.ag-row-selected:before{background-color:var(--ag-selected-row-background-color);content:"";display:block;inset:0;pointer-events:none;position:absolute}.ag-row-hover.ag-full-width-row.ag-row-group:before,.ag-row-hover:not(.ag-full-width-row):before{background-color:var(--ag-row-hover-color);content:"";display:block;inset:0;pointer-events:none;position:absolute}.ag-row-hover.ag-row-selected:before{background-color:var(--ag-row-hover-color);background-image:linear-gradient(var(--ag-selected-row-background-color),var(--ag-selected-row-background-color))}.ag-row.ag-full-width-row.ag-row-group>*{position:relative}.ag-column-hover{background-color:var(--ag-column-hover-color)}.ag-header-range-highlight{background-color:var(--ag-range-header-highlight-color)}.ag-right-aligned-cell{font-variant-numeric:tabular-nums}:where(.ag-ltr) .ag-right-aligned-cell{text-align:right}:where(.ag-rtl) .ag-right-aligned-cell{text-align:left}.ag-right-aligned-cell .ag-cell-value,.ag-right-aligned-cell .ag-group-value{margin-left:auto}:where(.ag-ltr) .ag-cell:not(.ag-cell-inline-editing),:where(.ag-ltr) .ag-full-width-row .ag-cell-wrapper.ag-row-group{padding-left:calc(var(--ag-cell-horizontal-padding) - 1px + var(--ag-row-group-indent-size)*var(--ag-indentation-level));padding-right:calc(var(--ag-cell-horizontal-padding) - 1px)}:where(.ag-rtl) .ag-cell:not(.ag-cell-inline-editing),:where(.ag-rtl) .ag-full-width-row .ag-cell-wrapper.ag-row-group{padding-left:calc(var(--ag-cell-horizontal-padding) - 1px);padding-right:calc(var(--ag-cell-horizontal-padding) - 1px + var(--ag-row-group-indent-size)*var(--ag-indentation-level))}.ag-row>.ag-cell-wrapper{padding-left:calc(var(--ag-cell-horizontal-padding) - 1px);padding-right:calc(var(--ag-cell-horizontal-padding) - 1px)}.ag-row-dragging{cursor:move;opacity:.5}.ag-details-row{background-color:var(--ag-data-background-color);padding:calc(var(--ag-spacing)*3.75)}.ag-layout-auto-height,.ag-layout-print{.ag-center-cols-container,.ag-center-cols-viewport{min-height:150px}}.ag-overlay-exporting-wrapper,.ag-overlay-loading-wrapper,.ag-overlay-modal-wrapper{background-color:var(--ag-modal-overlay-background-color)}.ag-skeleton-container{align-content:center;height:100%;width:100%}.ag-skeleton-effect{animation:ag-skeleton-loading 1.5s ease-in-out .5s infinite;background-color:var(--ag-row-loading-skeleton-effect-color);border-radius:.25rem;height:1em;width:100%}:where(.ag-ltr) .ag-right-aligned-cell .ag-skeleton-effect{margin-left:auto}:where(.ag-rtl) .ag-right-aligned-cell .ag-skeleton-effect{margin-right:auto}@keyframes ag-skeleton-loading{0%{background-color:var(--ag-row-loading-skeleton-effect-color)}50%{background-color:color-mix(in srgb,transparent,var(--ag-row-loading-skeleton-effect-color) 40%)}to{background-color:var(--ag-row-loading-skeleton-effect-color)}}.ag-loading{align-items:center;display:flex;height:100%}:where(.ag-ltr) .ag-loading{padding-left:var(--ag-cell-horizontal-padding)}:where(.ag-rtl) .ag-loading{padding-right:var(--ag-cell-horizontal-padding)}:where(.ag-ltr) .ag-loading-icon{padding-right:var(--ag-cell-widget-spacing)}:where(.ag-rtl) .ag-loading-icon{padding-left:var(--ag-cell-widget-spacing)}.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-header{background-color:var(--ag-header-background-color);border-bottom:var(--ag-header-row-border);color:var(--ag-header-text-color);display:flex;font-family:var(--ag-header-font-family);font-size:var(--ag-header-font-size);font-weight:var(--ag-header-font-weight);overflow:hidden;white-space:nowrap;width:100%}.ag-header-row{height:var(--ag-header-height);position:absolute}.ag-floating-filter-button-button,.ag-header-cell-filter-button,.ag-header-cell-menu-button,.ag-header-expand-icon,.ag-panel-title-bar-button,:where(.ag-header-cell-sortable) .ag-header-cell-label,:where(.ag-header-group-cell-selectable) .ag-header-cell-comp-wrapper{cursor:pointer}:where(.ag-ltr) .ag-header-expand-icon{margin-left:4px}:where(.ag-rtl) .ag-header-expand-icon{margin-right:4px}.ag-header-row:where(:not(:first-child)){:where(.ag-header-cell:not(.ag-header-span-height.ag-header-span-total,.ag-header-parent-hidden),.ag-header-group-cell.ag-header-group-cell-with-group){border-top:var(--ag-header-row-border)}}.ag-header-row:where(:not(.ag-header-row-column-group)){overflow:hidden}:where(.ag-header.ag-header-allow-overflow) .ag-header-row{overflow:visible}.ag-header-cell{display:inline-flex;overflow:hidden}.ag-header-group-cell{contain:paint;display:flex}.ag-header-cell,.ag-header-group-cell{align-items:center;gap:var(--ag-cell-widget-spacing);height:100%;padding:0 var(--ag-cell-horizontal-padding);position:absolute}@property --ag-internal-moving-color{syntax:"<color>";inherits:false;initial-value:transparent}@property --ag-internal-hover-color{syntax:"<color>";inherits:false;initial-value:transparent}.ag-header-cell:where(:not(.ag-floating-filter)),.ag-header-group-cell{&:before{background-image:linear-gradient(var(--ag-internal-hover-color),var(--ag-internal-hover-color)),linear-gradient(var(--ag-internal-moving-color),var(--ag-internal-moving-color));content:"";inset:0;position:absolute;--ag-internal-moving-color:transparent;--ag-internal-hover-color:transparent;transition:--ag-internal-moving-color var(--ag-header-cell-background-transition-duration),--ag-internal-hover-color var(--ag-header-cell-background-transition-duration)}&:where(:hover):before{--ag-internal-hover-color:var(--ag-header-cell-hover-background-color)}&:where(.ag-header-cell-moving):before{--ag-internal-moving-color:var(--ag-header-cell-moving-background-color);--ag-internal-hover-color:var(--ag-header-cell-hover-background-color)}}:where(.ag-header-cell:not(.ag-floating-filter) *,.ag-header-group-cell *){position:relative;z-index:1}.ag-header-cell-menu-button:where(:not(.ag-header-menu-always-show)){opacity:0;transition:opacity .2s}.ag-header-cell-filter-button,:where(.ag-header-cell.ag-header-active) .ag-header-cell-menu-button{opacity:1}.ag-header-cell-label,.ag-header-group-cell-label{align-items:center;align-self:stretch;display:flex;flex:1 1 auto;overflow:hidden;padding:5px 0}:where(.ag-ltr) .ag-sort-indicator-icon{padding-left:var(--ag-spacing)}:where(.ag-rtl) .ag-sort-indicator-icon{padding-right:var(--ag-spacing)}.ag-header-cell-label{text-overflow:ellipsis}.ag-header-group-cell-label.ag-sticky-label{flex:none;max-width:100%;overflow:visible;position:sticky}:where(.ag-ltr) .ag-header-group-cell-label.ag-sticky-label{left:var(--ag-cell-horizontal-padding)}:where(.ag-rtl) .ag-header-group-cell-label.ag-sticky-label{right:var(--ag-cell-horizontal-padding)}.ag-header-cell-text,.ag-header-group-text{overflow:hidden;text-overflow:ellipsis}.ag-header-cell-text{word-break:break-word}.ag-header-cell-comp-wrapper{width:100%}:where(.ag-header-group-cell) .ag-header-cell-comp-wrapper{display:flex}:where(.ag-header-cell:not(.ag-header-cell-auto-height)) .ag-header-cell-comp-wrapper{align-items:center;display:flex;height:100%}.ag-header-cell-wrap-text .ag-header-cell-comp-wrapper{white-space:normal}.ag-header-cell-comp-wrapper-limited-height>*{overflow:hidden}:where(.ag-right-aligned-header) .ag-header-cell-label{flex-direction:row-reverse}:where(.ag-header-cell:not(.ag-right-aligned-header)){.ag-header-col-ref{color:var(--ag-subtle-text-color)}}:where(.ag-ltr) :where(.ag-header-cell:not(.ag-right-aligned-header)){.ag-header-col-ref{margin-right:var(--ag-spacing)}.ag-header-label-icon,.ag-header-menu-icon{margin-left:var(--ag-spacing)}}:where(.ag-rtl) :where(.ag-header-cell:not(.ag-right-aligned-header)){.ag-header-col-ref{margin-left:var(--ag-spacing)}.ag-header-label-icon,.ag-header-menu-icon{margin-right:var(--ag-spacing)}}:where(.ag-header-cell.ag-right-aligned-header){.ag-header-col-ref{color:var(--ag-subtle-text-color)}}:where(.ag-ltr) :where(.ag-header-cell.ag-right-aligned-header){.ag-header-col-ref{margin-left:var(--ag-spacing)}.ag-header-label-icon,.ag-header-menu-icon{margin-right:var(--ag-spacing)}}:where(.ag-rtl) :where(.ag-header-cell.ag-right-aligned-header){.ag-header-col-ref{margin-right:var(--ag-spacing)}.ag-header-label-icon,.ag-header-menu-icon{margin-left:var(--ag-spacing)}}.ag-header-cell:after,.ag-header-group-cell:where(:not(.ag-header-span-height.ag-header-group-cell-no-group)):after{content:"";height:var(--ag-header-column-border-height);position:absolute;top:calc(50% - var(--ag-header-column-border-height)*.5);z-index:1}:where(.ag-ltr) .ag-header-cell:after,:where(.ag-ltr) .ag-header-group-cell:where(:not(.ag-header-span-height.ag-header-group-cell-no-group)):after{border-right:var(--ag-header-column-border);right:0}:where(.ag-rtl) .ag-header-cell:after,:where(.ag-rtl) .ag-header-group-cell:where(:not(.ag-header-span-height.ag-header-group-cell-no-group)):after{border-left:var(--ag-header-column-border);left:0}.ag-header-highlight-after:after,.ag-header-highlight-before:after{background-color:var(--ag-column-drag-indicator-color);border-radius:calc(var(--ag-column-drag-indicator-width)/2);content:"";height:100%;position:absolute;top:0;width:var(--ag-column-drag-indicator-width)}:where(.ag-ltr) .ag-header-highlight-before:after{left:0}:where(.ag-rtl) .ag-header-highlight-before:after{right:0}:where(.ag-ltr) .ag-header-highlight-after:after{right:0;:where(.ag-pinned-left-header) &{right:1px}}:where(.ag-rtl) .ag-header-highlight-after:after{left:0;:where(.ag-pinned-left-header) &{left:1px}}.ag-header-cell-resize{align-items:center;cursor:ew-resize;display:flex;height:100%;position:absolute;top:0;width:8px;z-index:2;&:after{background-color:var(--ag-header-column-resize-handle-color);content:"";height:var(--ag-header-column-resize-handle-height);position:absolute;top:calc(50% - var(--ag-header-column-resize-handle-height)*.5);width:var(--ag-header-column-resize-handle-width);z-index:1}}:where(.ag-ltr) .ag-header-cell-resize{right:-3px;&:after{left:calc(50% - var(--ag-header-column-resize-handle-width))}}:where(.ag-rtl) .ag-header-cell-resize{left:-3px;&:after{right:calc(50% - var(--ag-header-column-resize-handle-width))}}:where(.ag-header-cell.ag-header-span-height) .ag-header-cell-resize:after{height:calc(100% - var(--ag-spacing)*4);top:calc(var(--ag-spacing)*2)}.ag-header-group-cell-no-group:where(.ag-header-span-height){display:none}.ag-sort-indicator-container{display:flex;gap:var(--ag-spacing)}.ag-layout-print{&.ag-body{display:block;height:unset}&.ag-root-wrapper{display:inline-block}.ag-body-horizontal-scroll,.ag-body-vertical-scroll{display:none}&.ag-force-vertical-scroll{overflow-y:visible!important}}@media print{.ag-root-wrapper.ag-layout-print{display:table;.ag-body-horizontal-scroll-viewport,.ag-body-viewport,.ag-center-cols-container,.ag-center-cols-viewport,.ag-root,.ag-root-wrapper-body,.ag-virtual-list-viewport{display:block!important;height:auto!important;overflow:hidden!important}.ag-cell,.ag-row{-moz-column-break-inside:avoid;break-inside:avoid}}}ag-grid,ag-grid-angular{display:block}.ag-root-wrapper{border:var(--ag-wrapper-border);border-radius:var(--ag-wrapper-border-radius);display:flex;flex-direction:column;overflow:hidden;position:relative;&.ag-layout-normal{height:100%}}.ag-root-wrapper-body{display:flex;flex-direction:row;&.ag-layout-normal{flex:1 1 auto;height:0;min-height:0}}.ag-root{display:flex;flex-direction:column;position:relative;&.ag-layout-auto-height,&.ag-layout-normal{flex:1 1 auto;overflow:hidden;width:0}&.ag-layout-normal{height:100%}}.ag-drag-handle{color:var(--ag-drag-handle-color);cursor:grab;:where(.ag-icon){color:var(--ag-drag-handle-color)}}.ag-chart-menu-icon,.ag-chart-settings-next,.ag-chart-settings-prev,.ag-column-group-icons,.ag-column-select-header-icon,.ag-filter-toolpanel-expand,.ag-floating-filter-button-button,.ag-group-title-bar-icon,.ag-header-cell-filter-button,.ag-header-cell-menu-button,.ag-header-expand-icon,.ag-panel-title-bar-button,.ag-panel-title-bar-button-icon,.ag-set-filter-group-icons,:where(.ag-group-contracted) .ag-icon,:where(.ag-group-expanded) .ag-icon{background-color:var(--ag-icon-button-background-color);border-radius:var(--ag-icon-button-border-radius);box-shadow:0 0 0 var(--ag-icon-button-background-spread) var(--ag-icon-button-background-color);color:var(--ag-icon-button-color);&:hover{background-color:var(--ag-icon-button-hover-background-color);box-shadow:0 0 0 var(--ag-icon-button-background-spread) var(--ag-icon-button-hover-background-color);color:var(--ag-icon-button-hover-color)}}:where(.ag-filter-active,.ag-filter-toolpanel-group-instance-header-icon,.ag-filter-toolpanel-instance-header-icon){position:relative;&:after{background-color:var(--ag-icon-button-active-indicator-color);border-radius:50%;content:"";height:6px;position:absolute;top:-1px;width:6px}}:where(.ag-ltr) :where(.ag-filter-active,.ag-filter-toolpanel-group-instance-header-icon,.ag-filter-toolpanel-instance-header-icon){&:after{right:-1px}}:where(.ag-rtl) :where(.ag-filter-active,.ag-filter-toolpanel-group-instance-header-icon,.ag-filter-toolpanel-instance-header-icon){&:after{left:-1px}}.ag-filter-active{background-image:linear-gradient(var(--ag-icon-button-active-background-color),var(--ag-icon-button-active-background-color));border-radius:1px;outline:solid var(--ag-icon-button-background-spread) var(--ag-icon-button-active-background-color);:where(.ag-icon-filter){clip-path:path("M8,0C8,4.415 11.585,8 16,8L16,16L0,16L0,0L8,0Z");color:var(--ag-icon-button-active-color)}}.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}',mU={wrapperBorder:!0,rowBorder:!0,headerRowBorder:!0,footerRowBorder:{ref:"rowBorder"},columnBorder:{style:"solid",width:1,color:"transparent"},headerColumnBorder:!1,headerColumnBorderHeight:"100%",pinnedColumnBorder:!0,pinnedRowBorder:!0,sidePanelBorder:!0,sideBarPanelWidth:250,sideBarBackgroundColor:{ref:"chromeBackgroundColor"},sideButtonBarBackgroundColor:{ref:"sideBarBackgroundColor"},sideButtonBarTopPadding:0,sideButtonSelectedUnderlineWidth:2,sideButtonSelectedUnderlineColor:"transparent",sideButtonSelectedUnderlineTransitionDuration:0,sideButtonBackgroundColor:"transparent",sideButtonTextColor:{ref:"textColor"},sideButtonHoverBackgroundColor:{ref:"sideButtonBackgroundColor"},sideButtonHoverTextColor:{ref:"sideButtonTextColor"},sideButtonSelectedBackgroundColor:Bo,sideButtonSelectedTextColor:{ref:"sideButtonTextColor"},sideButtonBorder:"solid 1px transparent",sideButtonSelectedBorder:!0,sideButtonLeftPadding:{ref:"spacing"},sideButtonRightPadding:{ref:"spacing"},sideButtonVerticalPadding:{calc:"spacing * 3"},headerBackgroundColor:{ref:"chromeBackgroundColor"},headerFontFamily:{ref:"fontFamily"},cellFontFamily:{ref:"fontFamily"},headerFontWeight:500,headerFontSize:{ref:"fontSize"},dataFontSize:{ref:"fontSize"},headerTextColor:{ref:"textColor"},headerCellHoverBackgroundColor:"transparent",headerCellMovingBackgroundColor:{ref:"headerCellHoverBackgroundColor"},headerCellBackgroundTransitionDuration:"0.2s",cellTextColor:{ref:"textColor"},rangeSelectionBorderStyle:"solid",rangeSelectionBorderColor:ti,rangeSelectionBackgroundColor:kn(.2),rangeSelectionChartBackgroundColor:"#0058FF1A",rangeSelectionChartCategoryBackgroundColor:"#00FF841A",rangeSelectionHighlightColor:kn(.5),rangeHeaderHighlightColor:wG(.08),rowNumbersSelectedColor:kn(.5),rowHoverColor:kn(.08),columnHoverColor:kn(.05),selectedRowBackgroundColor:kn(.12),modalOverlayBackgroundColor:{ref:"backgroundColor",mix:.66},dataBackgroundColor:Bo,oddRowBackgroundColor:{ref:"dataBackgroundColor"},wrapperBorderRadius:8,cellHorizontalPadding:{calc:"spacing * 2 * cellHorizontalPaddingScale"},cellWidgetSpacing:{calc:"spacing * 1.5"},cellHorizontalPaddingScale:1,rowGroupIndentSize:{calc:"cellWidgetSpacing + iconSize"},valueChangeDeltaUpColor:"#43a047",valueChangeDeltaDownColor:"#e53935",valueChangeValueHighlightBackgroundColor:"#16a08580",rowHeight:{calc:"max(iconSize, dataFontSize) + spacing * 3.25 * rowVerticalPaddingScale"},rowVerticalPaddingScale:1,headerHeight:{calc:"max(iconSize, dataFontSize) + spacing * 4 * headerVerticalPaddingScale"},headerVerticalPaddingScale:1,paginationPanelHeight:{ref:"rowHeight",calc:"max(rowHeight, 22px)"},dragHandleColor:gr(.7),headerColumnResizeHandleHeight:"30%",headerColumnResizeHandleWidth:2,headerColumnResizeHandleColor:{ref:"borderColor"},widgetContainerHorizontalPadding:{calc:"spacing * 1.5"},widgetContainerVerticalPadding:{calc:"spacing * 1.5"},widgetHorizontalSpacing:{calc:"spacing * 1.5"},widgetVerticalSpacing:{ref:"spacing"},iconButtonColor:{ref:"iconColor"},iconButtonBackgroundColor:"transparent",iconButtonBackgroundSpread:4,iconButtonBorderRadius:1,iconButtonHoverColor:{ref:"iconButtonColor"},iconButtonHoverBackgroundColor:gr(.1),iconButtonActiveColor:ti,iconButtonActiveBackgroundColor:kn(.28),iconButtonActiveIndicatorColor:ti,menuBorder:{color:gr(.2)},menuBackgroundColor:mr(.03),menuTextColor:mr(.95),menuShadow:{ref:"popupShadow"},menuSeparatorColor:{ref:"borderColor"},setFilterIndentSize:{ref:"iconSize"},chartMenuPanelWidth:260,chartMenuLabelColor:gr(.8),dialogShadow:{ref:"popupShadow"},cellEditingBorder:{color:ti},cellEditingShadow:{ref:"cardShadow"},fullRowEditInvalidBackgroundColor:{ref:"invalidColor",onto:"backgroundColor",mix:.25},dialogBorder:{color:gr(.2)},panelBackgroundColor:Bo,panelTitleBarHeight:{ref:"headerHeight"},panelTitleBarBackgroundColor:{ref:"headerBackgroundColor"},panelTitleBarIconColor:{ref:"headerTextColor"},panelTitleBarTextColor:{ref:"headerTextColor"},panelTitleBarFontWeight:{ref:"headerFontWeight"},panelTitleBarBorder:!0,columnSelectIndentSize:{ref:"iconSize"},toolPanelSeparatorBorder:!0,columnDropCellBackgroundColor:gr(.07),columnDropCellTextColor:{ref:"textColor"},columnDropCellDragHandleColor:{ref:"textColor"},columnDropCellBorder:{color:gr(.13)},selectCellBackgroundColor:gr(.07),selectCellBorder:{color:gr(.13)},advancedFilterBuilderButtonBarBorder:!0,advancedFilterBuilderIndentSize:{calc:"spacing * 2 + iconSize"},advancedFilterBuilderJoinPillColor:"#f08e8d",advancedFilterBuilderColumnPillColor:"#a6e194",advancedFilterBuilderOptionPillColor:"#f3c08b",advancedFilterBuilderValuePillColor:"#85c0e4",filterPanelApplyButtonColor:Bo,filterPanelApplyButtonBackgroundColor:ti,filterPanelCardSubtleColor:{ref:"textColor",mix:.7},filterPanelCardSubtleHoverColor:{ref:"textColor"},findMatchColor:dl,findMatchBackgroundColor:"#ffff00",findActiveMatchColor:dl,findActiveMatchBackgroundColor:"#ffa500",filterToolPanelGroupIndent:{ref:"spacing"},rowLoadingSkeletonEffectColor:gr(.15),statusBarLabelColor:dl,statusBarLabelFontWeight:500,statusBarValueColor:dl,statusBarValueFontWeight:500,pinnedSourceRowTextColor:{ref:"textColor"},pinnedSourceRowBackgroundColor:{ref:"dataBackgroundColor"},pinnedSourceRowFontWeight:600,pinnedRowFontWeight:600,pinnedRowBackgroundColor:{ref:"dataBackgroundColor"},pinnedRowTextColor:{ref:"textColor"},rowDragIndicatorColor:{ref:"rangeSelectionBorderColor"},rowDragIndicatorWidth:2,columnDragIndicatorColor:{ref:"accentColor"},columnDragIndicatorWidth:2},vU=".ag-cell-batch-edit{background-color:var(--ag-cell-batch-edit-background-color);color:var(--ag-cell-batch-edit-text-color);display:inherit}.ag-row-batch-edit{background-color:var(--ag-row-batch-edit-background-color);color:var(--ag-row-batch-edit-text-color)}",eE={cellBatchEditBackgroundColor:"rgba(220 181 139 / 16%)",cellBatchEditTextColor:"#422f00",rowBatchEditBackgroundColor:{ref:"cellBatchEditBackgroundColor"},rowBatchEditTextColor:{ref:"cellBatchEditTextColor"}},bU={...eE,cellBatchEditTextColor:"#f3d0b3"},wU=()=>Sn({feature:"batchEditStyle",params:eE,css:vU}),CU=wU(),yU=":where(.ag-button){background:none;border:none;color:inherit;cursor:pointer;font-family:inherit;font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin:0;padding:0;text-indent:inherit;text-shadow:inherit;text-transform:inherit;word-spacing:inherit;&:disabled{cursor:default}&:focus-visible{box-shadow:var(--ag-focus-shadow);outline:none}}.ag-standard-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:var(--ag-button-background-color);border:var(--ag-button-border);border-radius:var(--ag-button-border-radius);color:var(--ag-button-text-color);cursor:pointer;font-weight:var(--ag-button-font-weight);padding:var(--ag-button-vertical-padding) var(--ag-button-horizontal-padding);&:hover{background-color:var(--ag-button-hover-background-color);border:var(--ag-button-hover-border);color:var(--ag-button-hover-text-color)}&:active{background-color:var(--ag-button-active-background-color);border:var(--ag-button-active-border);color:var(--ag-button-active-text-color)}&:disabled{background-color:var(--ag-button-disabled-background-color);border:var(--ag-button-disabled-border);color:var(--ag-button-disabled-text-color)}}",SU={buttonTextColor:"inherit",buttonFontWeight:"normal",buttonBackgroundColor:"transparent",buttonBorder:!1,buttonBorderRadius:{ref:"borderRadius"},buttonHorizontalPadding:{calc:"spacing * 2"},buttonVerticalPadding:{ref:"spacing"},buttonHoverTextColor:{ref:"buttonTextColor"},buttonHoverBackgroundColor:{ref:"buttonBackgroundColor"},buttonHoverBorder:{ref:"buttonBorder"},buttonActiveTextColor:{ref:"buttonHoverTextColor"},buttonActiveBackgroundColor:{ref:"buttonHoverBackgroundColor"},buttonActiveBorder:{ref:"buttonHoverBorder"},buttonDisabledTextColor:{ref:"inputDisabledTextColor"},buttonDisabledBackgroundColor:{ref:"inputDisabledBackgroundColor"},buttonDisabledBorder:{ref:"inputDisabledBorder"}},xU=()=>Sn({feature:"buttonStyle",params:{...SU,buttonBackgroundColor:Bo,buttonBorder:!0,buttonHoverBackgroundColor:{ref:"rowHoverColor"},buttonActiveBorder:{color:ti}},css:yU}),kU=xU(),FU=".ag-column-drop-vertical-empty-message{align-items:center;border:dashed var(--ag-border-width);border-color:var(--ag-border-color);display:flex;inset:0;justify-content:center;margin:calc(var(--ag-spacing)*1.5) calc(var(--ag-spacing)*2);overflow:hidden;padding:calc(var(--ag-spacing)*2);position:absolute}",RU=()=>Sn({feature:"columnDropStyle",css:FU}),tE=RU(),EU={warn:(...e)=>{he(e[0],e[1])},error:(...e)=>{Ft(e[0],e[1])},preInitErr:(...e)=>{Lc(e[0],e[2],e[1])}},_U=()=>DG(EU).withParams(mU).withPart(kU).withPart(tE).withPart(CU),PU='.ag-checkbox-input-wrapper,.ag-radio-button-input-wrapper{background-color:var(--ag-checkbox-unchecked-background-color);border:solid var(--ag-checkbox-border-width) var(--ag-checkbox-unchecked-border-color);flex:none;height:var(--ag-icon-size);position:relative;width:var(--ag-icon-size);:where(input){-webkit-appearance:none;-moz-appearance:none;appearance:none;cursor:pointer;display:block;height:var(--ag-icon-size);margin:0;opacity:0;width:var(--ag-icon-size)}&:after{content:"";display:block;inset:0;-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;pointer-events:none;position:absolute}&:where(.ag-checked){background-color:var(--ag-checkbox-checked-background-color);border-color:var(--ag-checkbox-checked-border-color);&:after{background-color:var(--ag-checkbox-checked-shape-color)}}&:where(:focus-within,:active){box-shadow:var(--ag-focus-shadow)}&:where(.ag-disabled){filter:grayscale();opacity:.5}}.ag-checkbox-input-wrapper{border-radius:var(--ag-checkbox-border-radius);&:where(.ag-checked):after{-webkit-mask-image:var(--ag-checkbox-checked-shape-image);mask-image:var(--ag-checkbox-checked-shape-image)}&:where(.ag-indeterminate){background-color:var(--ag-checkbox-indeterminate-background-color);border-color:var(--ag-checkbox-indeterminate-border-color);&:after{background-color:var(--ag-checkbox-indeterminate-shape-color);-webkit-mask-image:var(--ag-checkbox-indeterminate-shape-image);mask-image:var(--ag-checkbox-indeterminate-shape-image)}}}.ag-cell-editing-error .ag-checkbox-input-wrapper:focus-within{box-shadow:var(--ag-focus-error-shadow)}.ag-radio-button-input-wrapper{border-radius:100%;&:where(.ag-checked):after{-webkit-mask-image:var(--ag-radio-checked-shape-image);mask-image:var(--ag-radio-checked-shape-image)}}',DU=()=>Sn({feature:"checkboxStyle",params:{checkboxBorderWidth:1,checkboxBorderRadius:{ref:"borderRadius"},checkboxUncheckedBackgroundColor:Bo,checkboxUncheckedBorderColor:mr(.3),checkboxCheckedBackgroundColor:ti,checkboxCheckedBorderColor:{ref:"checkboxCheckedBackgroundColor"},checkboxCheckedShapeImage:{svg:'<svg xmlns="http://www.w3.org/2000/svg" width="10" height="7" fill="none"><path stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.75" d="M1 3.5 3.5 6l5-5"/></svg>'},checkboxCheckedShapeColor:Bo,checkboxIndeterminateBackgroundColor:mr(.3),checkboxIndeterminateBorderColor:{ref:"checkboxIndeterminateBackgroundColor"},checkboxIndeterminateShapeImage:{svg:'<svg xmlns="http://www.w3.org/2000/svg" width="10" height="2" fill="none"><rect width="10" height="2" fill="#000" rx="1"/></svg>'},checkboxIndeterminateShapeColor:Bo,radioCheckedShapeImage:{svg:'<svg xmlns="http://www.w3.org/2000/svg" width="6" height="6" fill="none"><circle cx="3" cy="3" r="3" fill="#000"/></svg>'}},css:PU}),TU=DU(),oE=()=>({...Oh,...bU,backgroundColor:"hsl(217, 0%, 17%)",foregroundColor:"#FFF",chromeBackgroundColor:mr(.05),rowHoverColor:kn(.15),selectedRowBackgroundColor:kn(.2),menuBackgroundColor:mr(.1),browserColorScheme:"dark",popupShadow:"0 0px 20px #000A",cardShadow:"0 1px 4px 1px #000A",advancedFilterBuilderJoinPillColor:"#7a3a37",advancedFilterBuilderColumnPillColor:"#355f2d",advancedFilterBuilderOptionPillColor:"#5a3168",advancedFilterBuilderValuePillColor:"#374c86",filterPanelApplyButtonColor:dl,findMatchColor:Bo,findActiveMatchColor:Bo,checkboxUncheckedBorderColor:mr(.4),toggleButtonOffBackgroundColor:mr(.4),rowBatchEditBackgroundColor:mr(.1)}),MU=()=>({...oE(),backgroundColor:"#1f2836"}),AU=()=>Sn({feature:"colorScheme",params:Oh,modeParams:{light:Oh,dark:oE(),"dark-blue":MU()}}),IU=AU(),rE={aggregation:'<path d="M18 7V4H6l6 8-6 8h12v-3"/>',arrows:'<polyline points="5 9 2 12 5 15"/><polyline points="9 5 12 2 15 5"/><polyline points="15 19 12 22 9 19"/><polyline points="19 9 22 12 19 15"/><line x1="2" x2="22" y1="12" y2="12"/><line x1="12" x2="12" y1="2" y2="22"/>',asc:'<path d="m5 12 7-7 7 7"/><path d="M12 19V5"/>',cancel:'<path d="m18 6-12 12"/><path d="m6 6 12 12"/>',chart:'<line x1="18" x2="18" y1="20" y2="10"/><line x1="12" x2="12" y1="20" y2="4"/><line x1="6" x2="6" y1="20" y2="14"/>',"color-picker":'<path d="m19 11-8-8-8.6 8.6a2 2 0 0 0 0 2.8l5.2 5.2c.8.8 2 .8 2.8 0L19 11Z"/><path d="m5 2 5 5"/><path d="M2 13h15"/><path d="M22 20a2 2 0 1 1-4 0c0-1.6 1.7-2.4 2-4 .3 1.6 2 2.4 2 4Z"/>',columns:'<path d="M9 3H5a2 2 0 0 0-2 2v4m6-6h10a2 2 0 0 1 2 2v4M9 3v18m0 0h10a2 2 0 0 0 2-2V9M9 21H5a2 2 0 0 1-2-2V9m0 0h18"/>',contracted:'<path d="m9 18 6-6-6-6"/>',copy:'<rect width="14" height="14" x="8" y="8" rx="2" ry="2"/><path d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"/>',cross:'<path d="M18 6 6 18"/><path d="m6 6 12 12"/>',csv:'<path d="M14.5 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7.5L14.5 2z"/><polyline points="14 2 14 8 20 8"/><path d="M8 13h2"/><path d="M8 17h2"/><path d="M14 13h2"/><path d="M14 17h2"/>',cut:'<circle cx="6" cy="6" r="3"/><path d="M8.12 8.12 12 12"/><path d="M20 4 8.12 15.88"/><circle cx="6" cy="18" r="3"/><path d="M14.8 14.8 20 20"/>',desc:'<path d="M12 5v14"/><path d="m19 12-7 7-7-7"/>',down:'<path d="M12 5v14"/><path d="m19 12-7 7-7-7"/>',excel:'<path d="M14.5 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7.5L14.5 2z"/><polyline points="14 2 14 8 20 8"/><path d="M8 13h2"/><path d="M8 17h2"/><path d="M14 13h2"/><path d="M14 17h2"/>',expanded:'<path d="m15 18-6-6 6-6"/>',eye:'<path d="M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z"/><circle cx="12" cy="12" r="3"/>',"eye-slash":'<path d="M9.88 9.88a3 3 0 1 0 4.24 4.24"/><path d="M10.73 5.08A10.43 10.43 0 0 1 12 5c7 0 10 7 10 7a13.16 13.16 0 0 1-1.67 2.68"/><path d="M6.61 6.61A13.526 13.526 0 0 0 2 12s3 7 10 7a9.74 9.74 0 0 0 5.39-1.61"/><line x1="2" x2="22" y1="2" y2="22"/>',filter:'<path d="M3 6h18"/><path d="M7 12h10"/><path d="M10 18h4"/>',first:'<path d="m17 18-6-6 6-6"/><path d="M7 6v12"/>',grip:'<circle cx="5" cy="8" r="0.5"/><circle cx="12" cy="8" r="0.5"/><circle cx="19" cy="8" r="0.5"/><circle cx="5" cy="16" r="0.5"/><circle cx="12" cy="16" r="0.5"/><circle cx="19" cy="16" r="0.5"/><g stroke="none" fill="currentColor"><circle cx="5" cy="8" r="1"/><circle cx="12" cy="8" r="1"/><circle cx="19" cy="8" r="1"/><circle cx="5" cy="16" r="1"/><circle cx="12" cy="16" r="1"/><circle cx="19" cy="16" r="1"/></g>',group:'<path d="M16 12H3"/><path d="M16 18H3"/><path d="M10 6H3"/><path d="M21 18V8a2 2 0 0 0-2-2h-5"/><path d="m16 8-2-2 2-2"/>',last:'<path d="m7 18 6-6-6-6"/><path d="M17 6v12"/>',left:'<path d="m12 19-7-7 7-7"/><path d="M19 12H5"/>',linked:'<path d="M9 17H7A5 5 0 0 1 7 7h2"/><path d="M15 7h2a5 5 0 1 1 0 10h-2"/><line x1="8" x2="16" y1="12" y2="12"/>',loading:'<line x1="12" x2="12" y1="2" y2="6"/><line x1="12" x2="12" y1="18" y2="22"/><line x1="4.93" x2="7.76" y1="4.93" y2="7.76"/><line x1="16.24" x2="19.07" y1="16.24" y2="19.07"/><line x1="2" x2="6" y1="12" y2="12"/><line x1="18" x2="22" y1="12" y2="12"/><line x1="4.93" x2="7.76" y1="19.07" y2="16.24"/><line x1="16.24" x2="19.07" y1="7.76" y2="4.93"/>',maximize:'<polyline points="15 3 21 3 21 9"/><polyline points="9 21 3 21 3 15"/><line x1="21" x2="14" y1="3" y2="10"/><line x1="3" x2="10" y1="21" y2="14"/>',menu:'<line x1="4" x2="20" y1="12" y2="12"/><line x1="4" x2="20" y1="6" y2="6"/><line x1="4" x2="20" y1="18" y2="18"/>',"menu-alt":'<circle cx="12" cy="5" r="0.75" fill="#D9D9D9"/><circle cx="12" cy="12" r="0.75" fill="#D9D9D9"/><circle cx="12" cy="19" r="0.75" fill="#D9D9D9"/>',minimize:'<polyline points="4 14 10 14 10 20"/><polyline points="20 10 14 10 14 4"/><line x1="14" x2="21" y1="10" y2="3"/><line x1="3" x2="10" y1="21" y2="14"/>',minus:'<circle cx="12" cy="12" r="10"/><path d="M8 12h8"/>',next:'<path d="m9 18 6-6-6-6"/>',none:'<path d="m7 15 5 5 5-5"/><path d="m7 9 5-5 5 5"/>',"not-allowed":'<circle cx="12" cy="12" r="10"/><path d="m4.9 4.9 14.2 14.2"/>',paste:'<path d="M15 2H9a1 1 0 0 0-1 1v2c0 .6.4 1 1 1h6c.6 0 1-.4 1-1V3c0-.6-.4-1-1-1Z"/><path d="M8 4H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2M16 4h2a2 2 0 0 1 2 2v2M11 14h10"/><path d="m17 10 4 4-4 4"/>',pin:'<line x1="12" x2="12" y1="17" y2="22"/><path d="M5 17h14v-1.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V6h1a2 2 0 0 0 0-4H8a2 2 0 0 0 0 4h1v4.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24Z"/>',pivot:'<path d="M15 3v18"/><rect width="18" height="18" x="3" y="3" rx="2"/><path d="M21 9H3"/><path d="M21 15H3"/>',plus:'<circle cx="12" cy="12" r="10"/><path d="M8 12h8"/><path d="M12 8v8"/>',previous:'<path d="m15 18-6-6 6-6"/>',right:'<path d="M5 12h14"/><path d="m12 5 7 7-7 7"/>',save:'<path d="M12 17V3"/><path d="m6 11 6 6 6-6"/><path d="M19 21H5"/>',settings:'<path d="M20 7h-9"/><path d="M14 17H5"/><circle cx="17" cy="17" r="3"/><circle cx="7" cy="7" r="3"/>',"small-left":'<path d="m15 18-6-6 6-6"/>',"small-right":'<path d="m9 18 6-6-6-6"/>',tick:'<path d="M20 6 9 17l-5-5"/>',"tree-closed":'<path d="m9 18 6-6-6-6"/>',"tree-indeterminate":'<path d="M5 12h14"/>',"tree-open":'<path d="m6 9 6 6 6-6"/>',unlinked:'<path d="M9 17H7A5 5 0 0 1 7 7"/><path d="M15 7h2a5 5 0 0 1 4 8"/><line x1="8" x2="12" y1="12" y2="12"/><line x1="2" x2="22" y1="2" y2="22"/>',up:'<path d="m5 12 7-7 7 7"/><path d="M12 19V5"/>'},nE={aasc:'<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M13.2012 8.07928C13.6346 8.0793 14.0128 8.15365 14.3359 8.30193C14.6609 8.45018 14.9141 8.65595 15.0947 8.9201C15.2754 9.18439 15.3683 9.49109 15.374 9.83904H14.1904C14.1676 9.60898 14.0695 9.4303 13.8965 9.30291C13.7235 9.1756 13.4889 9.1115 13.1924 9.1115C12.9909 9.1115 12.8204 9.1404 12.6816 9.19744C12.543 9.25255 12.4364 9.32917 12.3623 9.42791C12.2901 9.52678 12.2539 9.63933 12.2539 9.76482C12.2501 9.8692 12.272 9.9604 12.3193 10.0383C12.3688 10.1162 12.4369 10.1843 12.5225 10.2414C12.6079 10.2964 12.7064 10.3451 12.8184 10.3869C12.9304 10.4268 13.0505 10.4609 13.1777 10.4894L13.7031 10.6144C13.9578 10.6715 14.1914 10.7479 14.4043 10.8429C14.6173 10.938 14.8021 11.0547 14.958 11.1935C15.1138 11.3323 15.2348 11.4957 15.3203 11.6838C15.4077 11.8719 15.4522 12.088 15.4541 12.3312C15.4522 12.6885 15.3611 12.9986 15.1807 13.2609C15.0019 13.5214 14.7427 13.7248 14.4043 13.8693C14.0678 14.0118 13.6617 14.0832 13.1865 14.0832C12.7153 14.0832 12.3048 14.0107 11.9551 13.8664C11.6071 13.7219 11.3345 13.5071 11.1387 13.2238C10.9449 12.9387 10.8435 12.5862 10.834 12.1662H12.0283C12.0416 12.362 12.0984 12.5252 12.1973 12.6564C12.298 12.7857 12.4323 12.8838 12.5996 12.9504C12.7688 13.0149 12.96 13.047 13.1729 13.047C13.3817 13.047 13.563 13.0169 13.7168 12.9562C13.8727 12.8954 13.9935 12.8106 14.0791 12.7023C14.1647 12.5939 14.208 12.469 14.208 12.3283C14.2079 12.1974 14.1686 12.0875 14.0908 11.9982C14.0148 11.9089 13.9022 11.8324 13.7539 11.7697C13.6076 11.707 13.4276 11.6501 13.2148 11.5988L12.5791 11.4387C12.0869 11.3189 11.6982 11.1318 11.4131 10.8771C11.128 10.6224 10.9855 10.2793 10.9873 9.84783C10.9854 9.49418 11.0804 9.18439 11.2705 8.9201C11.4625 8.65603 11.7261 8.45015 12.0605 8.30193C12.3951 8.15369 12.7754 8.07928 13.2012 8.07928Z" fill="black"/><path fill-rule="evenodd" clip-rule="evenodd" d="M5.8125 14.0002H4.48926L4.05664 12.6681H1.94824L1.51465 14.0002H0.19043L2.20703 8.15935H3.79883L5.8125 14.0002ZM2.26172 11.7043H3.74316L3.02539 9.49334H2.98047L2.26172 11.7043Z" fill="black"/><path fill-rule="evenodd" clip-rule="evenodd" d="M8.45215 8.15935C8.88165 8.15935 9.24031 8.22251 9.52734 8.34978C9.81445 8.47717 10.0303 8.65477 10.1748 8.88103C10.3192 9.10536 10.3916 9.36368 10.3916 9.65642C10.3916 9.88452 10.3461 10.085 10.2549 10.258C10.1637 10.4289 10.0384 10.5696 9.87891 10.6799C9.72117 10.7882 9.54024 10.8657 9.33691 10.9113V10.9679C9.55917 10.9775 9.76716 11.0406 9.96094 11.1564C10.1568 11.2724 10.3158 11.4356 10.4375 11.6447C10.5591 11.8519 10.6201 12.099 10.6201 12.3859C10.6201 12.6958 10.5427 12.9727 10.3887 13.216C10.2366 13.4573 10.0113 13.6486 9.71289 13.7892C9.41443 13.9299 9.04655 14.0002 8.60938 14.0002H6.11426V8.15935H8.45215ZM7.34863 12.9904H8.35547C8.69943 12.9904 8.95057 12.9252 9.1084 12.7941C9.26621 12.661 9.34473 12.4834 9.34473 12.2629C9.34468 12.1014 9.30643 11.9587 9.22852 11.8351C9.15056 11.7116 9.03903 11.6145 8.89453 11.5441C8.75195 11.4738 8.58148 11.4387 8.38379 11.4387H7.34863V12.9904ZM7.34863 10.6037H8.26465C8.43369 10.6036 8.58376 10.5737 8.71484 10.5148C8.84793 10.454 8.95227 10.3683 9.02832 10.258C9.10628 10.1477 9.14551 10.0155 9.14551 9.8615C9.14546 9.65055 9.07008 9.48001 8.91992 9.35076C8.77165 9.22169 8.56064 9.15741 8.28711 9.1574H7.34863V10.6037Z" fill="black"/><path d="M7.16602 0.377127C7.44584 0.189493 7.82551 0.20905 8.08496 0.442557L11.418 3.44256C11.7257 3.71966 11.7507 4.19428 11.4736 4.50213C11.1966 4.80961 10.7228 4.83441 10.415 4.55779L7.60938 2.03338L5.11328 4.53045C4.82042 4.82326 4.34562 4.82322 4.05273 4.53045C3.75986 4.23757 3.75989 3.7628 4.05273 3.4699L7.05273 0.4699L7.16602 0.377127Z" fill="black"/></svg>',adesc:'<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M10.3867 11.4697C10.6796 11.1771 11.1544 11.1769 11.4473 11.4697C11.7399 11.7626 11.7399 12.2374 11.4473 12.5303L8.44727 15.5303L8.33398 15.623C8.05425 15.8106 7.67449 15.7909 7.41504 15.5576L4.08203 12.5576C3.77415 12.2805 3.74927 11.8059 4.02637 11.498C4.30342 11.1907 4.77722 11.1657 5.08496 11.4424L7.89062 13.9668L10.3867 11.4697Z" fill="black"/><path d="M13.2012 3.0791C13.6346 3.07912 14.0128 3.1535 14.3359 3.30176C14.6611 3.45006 14.9141 3.65661 15.0947 3.9209C15.2752 4.18513 15.3683 4.49104 15.374 4.83887H14.1904C14.1676 4.60882 14.0695 4.43012 13.8965 4.30273C13.7235 4.17546 13.4889 4.11133 13.1924 4.11133C12.9909 4.11133 12.8204 4.14023 12.6816 4.19727C12.5431 4.25236 12.4364 4.32902 12.3623 4.42773C12.2901 4.52659 12.2539 4.63919 12.2539 4.76465C12.2501 4.86901 12.272 4.96023 12.3193 5.03809C12.3688 5.11604 12.4369 5.18417 12.5225 5.24121C12.6079 5.29623 12.7064 5.34496 12.8184 5.38672C12.9304 5.42661 13.0505 5.46075 13.1777 5.48926L13.7031 5.61426C13.9578 5.67128 14.1914 5.74776 14.4043 5.84277C14.6172 5.93784 14.8021 6.05457 14.958 6.19336C15.1139 6.33216 15.2348 6.49633 15.3203 6.68457C15.4076 6.8727 15.4522 7.08885 15.4541 7.33203C15.4521 7.68929 15.3612 7.99944 15.1807 8.26172C15.0019 8.52216 14.7427 8.72465 14.4043 8.86914C14.0678 9.01165 13.6617 9.08301 13.1865 9.08301C12.7153 9.08299 12.3048 9.01057 11.9551 8.86621C11.6072 8.72173 11.3345 8.50786 11.1387 8.22461C10.9447 7.9394 10.8435 7.58622 10.834 7.16602H12.0283C12.0416 7.36176 12.0985 7.52509 12.1973 7.65625C12.298 7.78554 12.4323 7.88365 12.5996 7.9502C12.7688 8.01477 12.96 8.04785 13.1729 8.04785C13.3817 8.04781 13.5629 8.01678 13.7168 7.95605C13.8727 7.89522 13.9935 7.81051 14.0791 7.70215C14.1646 7.59387 14.2079 7.46965 14.208 7.3291C14.208 7.19796 14.1687 7.08739 14.0908 6.99805C14.0148 6.90868 13.9022 6.83228 13.7539 6.76953C13.6076 6.70685 13.4276 6.64993 13.2148 6.59863L12.5791 6.43848C12.0868 6.31871 11.6982 6.13163 11.4131 5.87695C11.1279 5.62221 10.9855 5.27916 10.9873 4.84766C10.9854 4.49404 11.0804 4.18517 11.2705 3.9209C11.4625 3.65661 11.7259 3.45006 12.0605 3.30176C12.3951 3.15353 12.7754 3.0791 13.2012 3.0791Z" fill="black"/><path fill-rule="evenodd" clip-rule="evenodd" d="M5.8125 9H4.48926L4.05664 7.66797H1.94824L1.51465 9H0.19043L2.20703 3.15918H3.79883L5.8125 9ZM2.26172 6.7041H3.74316L3.02539 4.49414H2.98047L2.26172 6.7041Z" fill="black"/><path fill-rule="evenodd" clip-rule="evenodd" d="M8.45215 3.15918C8.88181 3.15918 9.24025 3.22322 9.52734 3.35059C9.81445 3.47798 10.0303 3.6546 10.1748 3.88086C10.3193 4.10518 10.3916 4.36351 10.3916 4.65625C10.3916 4.88432 10.3461 5.08484 10.2549 5.25781C10.1636 5.4289 10.0386 5.57039 9.87891 5.68066C9.72118 5.78898 9.54022 5.86549 9.33691 5.91113V5.96875C9.55913 5.9783 9.76719 6.04044 9.96094 6.15625C10.1568 6.27223 10.3158 6.43538 10.4375 6.64453C10.5591 6.85173 10.6201 7.09875 10.6201 7.38574C10.6201 7.69567 10.5427 7.97245 10.3887 8.21582C10.2366 8.45719 10.0113 8.64841 9.71289 8.78906C9.41442 8.9297 9.04658 8.99999 8.60938 9H6.11426V3.15918H8.45215ZM7.34863 7.99023H8.35547C8.69948 7.99023 8.95057 7.92504 9.1084 7.79395C9.26621 7.66085 9.34473 7.48325 9.34473 7.2627C9.34466 7.10125 9.3064 6.95844 9.22852 6.83496C9.15056 6.71143 9.03899 6.61427 8.89453 6.54395C8.75196 6.47365 8.58145 6.43848 8.38379 6.43848H7.34863V7.99023ZM7.34863 5.60352H8.26465C8.43369 5.60347 8.58376 5.57354 8.71484 5.51465C8.84791 5.45381 8.95228 5.36807 9.02832 5.25781C9.10623 5.14755 9.14551 5.01529 9.14551 4.86133C9.14542 4.65046 9.07002 4.48078 8.91992 4.35156C8.77163 4.22228 8.56087 4.15724 8.28711 4.15723H7.34863V5.60352Z" fill="black"/></svg>',"chevron-down":'<svg width="16" height="16" viewBox="0 0 16 16" class="ag-icon" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M12 6L8 10L4 6" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>',"chevron-left":'<svg width="16" height="16" viewBox="0 0 16 16" class="ag-icon" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M10 12L6 8L10 4" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>',"chevron-right":'<svg width="16" height="16" viewBox="0 0 16 16" class="ag-icon" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M6 12L10 8L6 4" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>',"chevron-up":'<svg width="16" height="16" viewBox="0 0 16 16" class="ag-icon" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M4 10L8 6L12 10" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>',"column-arrow":'<svg xmlns="http://www.w3.org/2000/svg" class="ag-icon" fill="none" viewBox="0 0 32 32"><path fill-rule="evenodd" clip-rule="evenodd" d="M0 26C0 28.2092 1.79086 30 4 30H14C16.2091 30 18 28.2092 18 26V15H25.8786L24.4394 16.4393C23.8536 17.0251 23.8536 17.9749 24.4394 18.5607C25.0252 19.1464 25.9748 19.1464 26.5606 18.5607L30.5606 14.5607C31.1464 13.9749 31.1464 13.0251 30.5606 12.4393L26.5606 8.43934C25.9748 7.85356 25.0252 7.85356 24.4394 8.43934C23.8536 9.02512 23.8536 9.97488 24.4394 10.5607L25.8786 12H18V6C18 3.79086 16.2091 2 14 2H4C1.79086 2 0 3.79086 0 6V26ZM14 5H10.5V12H15V6C15 5.44772 14.5523 5 14 5ZM4 5H7.5V12H3V6C3 5.44772 3.44772 5 4 5ZM10.5 15H15V26C15 26.5522 14.5523 27 14 27H10.5V15ZM4 27H7.5V15H3V26C3 26.5522 3.44772 27 4 27Z" fill="currentColor"/></svg>',edit:'<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M3.5 10.6262V12.5012H5.375L10.905 6.97122L9.03 5.09622L3.5 10.6262ZM12.355 5.52122C12.4014 5.47497 12.4381 5.42002 12.4632 5.35953C12.4883 5.29905 12.5012 5.23421 12.5012 5.16872C12.5012 5.10324 12.4883 5.0384 12.4632 4.97791C12.4381 4.91742 12.4014 4.86248 12.355 4.81622L11.185 3.64622C11.1387 3.59987 11.0838 3.5631 11.0233 3.53801C10.9628 3.51291 10.898 3.5 10.8325 3.5C10.767 3.5 10.7022 3.51291 10.6417 3.53801C10.5812 3.5631 10.5263 3.59987 10.48 3.64622L9.565 4.56122L11.44 6.43622L12.355 5.52122Z" fill="currentColor"/></svg>',"filter-add":'<svg width="16" height="16" viewBox="0 0 16 16" class="ag-icon" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M5.12126 7.75L10.8517 7.75" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"/><path d="M6.65934 11.748L9.32778 11.748" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"/><path d="M12.2943 1.04872V6.19184M14.9886 3.74341H9.68478" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"/><path d="M8.25488 3C8.04799 3.18323 7.91706 3.45099 7.91699 3.74902C7.91713 4.04868 8.04988 4.31681 8.25879 4.5H2C1.58579 4.5 1.25 4.16421 1.25 3.75C1.25 3.33579 1.58579 3 2 3H8.25488Z" fill="currentColor"/></svg>',"pinned-bottom":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" class="ag-icon" viewBox="0 0 16 16"><path fill="currentColor" d="M3.47 12.28A.75.75 0 0 1 4 11h8a.75.75 0 0 1 0 1.5H4a.75.75 0 0 1-.53-.22ZM12.731 5.256a.75.75 0 0 1-.2.524l-4 4a.75.75 0 0 1-1.06 0l-4-4a.75.75 0 1 1 1.06-1.06l2.72 2.72V2a.75.75 0 0 1 1.5 0v5.44l2.72-2.72a.75.75 0 0 1 1.26.536Z"/></svg>',"pinned-top":'<svg xmlns="http://www.w3.org/2000/svg" class="ag-icon" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M12.53 3.72A.75.75 0 0 1 12 5H4a.75.75 0 0 1 0-1.5h8a.75.75 0 0 1 .53.22ZM3.269 10.744a.75.75 0 0 1 .2-.524l4-4a.75.75 0 0 1 1.06 0l4 4a.75.75 0 1 1-1.06 1.06L8.75 8.56V14a.75.75 0 0 1-1.5 0V8.56l-2.72 2.72a.75.75 0 0 1-1.26-.536Z"/></svg>',"small-down":'<svg xmlns="http://www.w3.org/2000/svg" class="ag-icon" fill="black" stroke="none" viewBox="0 0 32 32"><path d="M7.334 10.667 16 21.334l8.667-10.667H7.334Z"/></svg>',"small-up":'<svg xmlns="http://www.w3.org/2000/svg" class="ag-icon" fill="black" stroke="none" viewBox="0 0 32 32"><path d="M7.334 21.333 16 10.666l8.667 10.667H7.334Z"/></svg>',"un-pin":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" class="ag-icon" viewBox="0 0 16 16"><path fill="currentColor" d="M8 11a.75.75 0 0 0-.75.75v3.333a.75.75 0 1 0 1.5 0V11.75A.75.75 0 0 0 8 11Z"/><path fill="currentColor" d="M13.11 1.436a.75.75 0 0 0-1.22-.872l-10 14a.75.75 0 1 0 1.22.872L5.207 12.5h7.376a.75.75 0 0 0 .75-.75v-1.174a2.08 2.08 0 0 0-1.153-1.863l-1.185-.599-.005-.002a.58.58 0 0 1-.323-.522V5.165a2.083 2.083 0 0 0 1.854-2.904l.589-.825Zm-3.943 5.52v.634a2.08 2.08 0 0 0 1.153 1.863l1.185.6.005.002a.58.58 0 0 1 .323.522V11H6.28l2.887-4.044ZM9.277 1H5.25a2.084 2.084 0 0 0-.083 4.165v1.676l1.5-2.132v-.292a.75.75 0 0 0-.75-.75H5.25a.584.584 0 0 1 0-1.167h2.972L9.277 1Z"/></svg>'},BU=(e={})=>{let t="";for(const o of[...Object.keys(rE),...Object.keys(nE)]){const r=OU(o,e.strokeWidth);t+=`.ag-icon-${o}::before { mask-image: url('data:image/svg+xml,${encodeURIComponent(r)}'); }
|
|
65
|
+
`}return t},OU=(e,t=1.5)=>{const o=nE[e];if(o)return o;const r=rE[e];if(!r)throw new Error(`Missing icon data for ${e}`);return`<svg xmlns="http://www.w3.org/2000/svg" class="ag-icon" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke="black" stroke-width="${t}" viewBox="0 0 24 24"><style>* { vector-effect: non-scaling-stroke; }</style>`+r+"</svg>"},NU=(e={})=>Sn({feature:"iconSet",css:()=>BU(e)}),LU=NU(),zU=':where(.ag-input-field-input[type=number]:not(.ag-number-field-input-stepper)){-webkit-appearance:textfield;-moz-appearance:textfield;appearance:textfield;&::-webkit-inner-spin-button,&::-webkit-outer-spin-button{-webkit-appearance:none;appearance:none;margin:0}}.ag-input-field-input:where(input:not([type]),input[type=text],input[type=number],input[type=tel],input[type=date],input[type=datetime-local],textarea){background-color:var(--ag-input-background-color);border:var(--ag-input-border);border-radius:var(--ag-input-border-radius);color:var(--ag-input-text-color);font-family:inherit;font-size:inherit;line-height:inherit;margin:0;min-height:var(--ag-input-height);padding:0;&:where(:disabled){background-color:var(--ag-input-disabled-background-color);border:var(--ag-input-disabled-border);color:var(--ag-input-disabled-text-color)}&:where(:focus){background-color:var(--ag-input-focus-background-color);border:var(--ag-input-focus-border);box-shadow:var(--ag-input-focus-shadow);color:var(--ag-input-focus-text-color);outline:none}&:where(:invalid){background-color:var(--ag-input-invalid-background-color);border:var(--ag-input-invalid-border);color:var(--ag-input-invalid-text-color)}&:where(.invalid){background-color:var(--ag-input-invalid-background-color);border:var(--ag-input-invalid-border);color:var(--ag-input-invalid-text-color)}&::-moz-placeholder{color:var(--ag-input-placeholder-text-color)}&::placeholder{color:var(--ag-input-placeholder-text-color)}}:where(.ag-ltr) .ag-input-field-input:where(input:not([type]),input[type=text],input[type=number],input[type=tel],input[type=date],input[type=datetime-local],textarea){padding-left:var(--ag-input-padding-start)}:where(.ag-rtl) .ag-input-field-input:where(input:not([type]),input[type=text],input[type=number],input[type=tel],input[type=date],input[type=datetime-local],textarea){padding-right:var(--ag-input-padding-start)}:where(.ag-column-select-header-filter-wrapper,.ag-filter-toolpanel-search,.ag-mini-filter,.ag-filter-filter,.ag-filter-add-select,.ag-floating-filter-search-icon){.ag-input-wrapper:before{background-color:currentcolor;color:var(--ag-input-icon-color);content:"";display:block;height:12px;-webkit-mask-image:url("data:image/svg+xml;charset=utf-8;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMiIgaGVpZ2h0PSIxMiIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMDAwIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS13aWR0aD0iMS41Ij48cGF0aCBkPSJNNS4zIDlhMy43IDMuNyAwIDEgMCAwLTcuNSAzLjcgMy43IDAgMCAwIDAgNy41Wk0xMC41IDEwLjUgOC4zIDguMiIvPjwvc3ZnPg==");mask-image:url("data:image/svg+xml;charset=utf-8;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMiIgaGVpZ2h0PSIxMiIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMDAwIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS13aWR0aD0iMS41Ij48cGF0aCBkPSJNNS4zIDlhMy43IDMuNyAwIDEgMCAwLTcuNSAzLjcgMy43IDAgMCAwIDAgNy41Wk0xMC41IDEwLjUgOC4zIDguMiIvPjwvc3ZnPg==");-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;opacity:.5;position:absolute;width:12px}}:where(.ag-ltr) :where(.ag-column-select-header-filter-wrapper,.ag-filter-toolpanel-search,.ag-mini-filter,.ag-filter-filter,.ag-filter-add-select,.ag-floating-filter-search-icon){.ag-input-wrapper:before{margin-left:var(--ag-spacing)}.ag-number-field-input,.ag-text-field-input{padding-left:calc(var(--ag-spacing)*1.5 + 12px)}}:where(.ag-rtl) :where(.ag-column-select-header-filter-wrapper,.ag-filter-toolpanel-search,.ag-mini-filter,.ag-filter-filter,.ag-filter-add-select,.ag-floating-filter-search-icon){.ag-input-wrapper:before{margin-right:var(--ag-spacing)}.ag-number-field-input,.ag-text-field-input{padding-right:calc(var(--ag-spacing)*1.5 + 12px)}}',HU=".ag-input-field-input:where(input:not([type]),input[type=text],input[type=number],input[type=tel],input[type=date],input[type=datetime-local],textarea){&:focus{box-shadow:var(--ag-focus-shadow);&:where(.invalid),&:where(:invalid){box-shadow:var(--ag-focus-error-shadow)}}}",VU={inputBackgroundColor:"transparent",inputBorder:!1,inputBorderRadius:0,inputTextColor:{ref:"textColor"},inputPlaceholderTextColor:{ref:"inputTextColor",mix:.5},inputPaddingStart:0,inputHeight:{calc:"max(iconSize, fontSize) + spacing * 2"},inputFocusBackgroundColor:{ref:"inputBackgroundColor"},inputFocusBorder:{ref:"inputBorder"},inputFocusShadow:"none",inputFocusTextColor:{ref:"inputTextColor"},inputDisabledBackgroundColor:{ref:"inputBackgroundColor"},inputDisabledBorder:{ref:"inputBorder"},inputDisabledTextColor:{ref:"inputTextColor"},inputInvalidBackgroundColor:{ref:"inputBackgroundColor"},inputInvalidBorder:{ref:"inputBorder"},inputInvalidTextColor:{ref:"inputTextColor"},inputIconColor:{ref:"inputTextColor"},pickerButtonBorder:!1,pickerButtonFocusBorder:{ref:"inputFocusBorder"},pickerButtonBackgroundColor:{ref:"backgroundColor"},pickerButtonFocusBackgroundColor:{ref:"backgroundColor"},pickerListBorder:!1,pickerListBackgroundColor:{ref:"backgroundColor"},colorPickerThumbSize:18,colorPickerTrackSize:12,colorPickerThumbBorderWidth:3,colorPickerTrackBorderRadius:12,colorPickerColorBorderRadius:4},GU=()=>Sn({feature:"inputStyle",params:{...VU,inputBackgroundColor:Bo,inputBorder:!0,inputBorderRadius:{ref:"borderRadius"},inputPaddingStart:{ref:"spacing"},inputFocusBorder:{color:ti},inputFocusShadow:{ref:"focusShadow"},inputDisabledBackgroundColor:mr(.06),inputDisabledTextColor:{ref:"textColor",mix:.5},inputInvalidBorder:{color:{ref:"invalidColor"}},pickerButtonBorder:!0,pickerListBorder:!0},css:()=>zU+HU}),jU=GU(),WU='.ag-tabs-header{background-color:var(--ag-tab-bar-background-color);border-bottom:var(--ag-tab-bar-border);display:flex;flex:1;gap:var(--ag-tab-spacing);padding:var(--ag-tab-bar-top-padding) var(--ag-tab-bar-horizontal-padding) 0}.ag-tabs-header-wrapper{display:flex}.ag-tabs-close-button-wrapper{align-items:center;border:0;display:flex;padding:var(--ag-spacing)}:where(.ag-ltr) .ag-tabs-close-button-wrapper{border-right:solid var(--ag-border-width) var(--ag-border-color)}:where(.ag-rtl) .ag-tabs-close-button-wrapper{border-left:solid var(--ag-border-width) var(--ag-border-color)}.ag-tabs-close-button{background-color:unset;border:0;cursor:pointer;padding:0}.ag-tab{align-items:center;background-color:var(--ag-tab-background-color);border-left:var(--ag-tab-selected-border-width) solid transparent;border-right:var(--ag-tab-selected-border-width) solid transparent;color:var(--ag-tab-text-color);cursor:pointer;display:flex;flex:1;justify-content:center;padding:var(--ag-tab-top-padding) var(--ag-tab-horizontal-padding) var(--ag-tab-bottom-padding);position:relative;&:hover{background-color:var(--ag-tab-hover-background-color);color:var(--ag-tab-hover-text-color)}&.ag-tab-selected{background-color:var(--ag-tab-selected-background-color);color:var(--ag-tab-selected-text-color)}&:after{background-color:var(--ag-tab-selected-underline-color);bottom:0;content:"";display:block;height:var(--ag-tab-selected-underline-width);left:0;opacity:0;position:absolute;right:0;transition:opacity var(--ag-tab-selected-underline-transition-duration)}&.ag-tab-selected:after{opacity:1}}:where(.ag-ltr) .ag-tab{&.ag-tab-selected{&:where(:not(:first-of-type)){border-left-color:var(--ag-tab-selected-border-color)}&:where(:not(:last-of-type)){border-right-color:var(--ag-tab-selected-border-color)}}}:where(.ag-rtl) .ag-tab{&.ag-tab-selected{&:where(:not(:first-of-type)){border-right-color:var(--ag-tab-selected-border-color)}&:where(:not(:last-of-type)){border-left-color:var(--ag-tab-selected-border-color)}}}',qU={tabBarBackgroundColor:"transparent",tabBarHorizontalPadding:0,tabBarTopPadding:0,tabBackgroundColor:"transparent",tabTextColor:{ref:"textColor"},tabHorizontalPadding:{ref:"spacing"},tabTopPadding:{ref:"spacing"},tabBottomPadding:{ref:"spacing"},tabSpacing:"0",tabHoverBackgroundColor:{ref:"tabBackgroundColor"},tabHoverTextColor:{ref:"tabTextColor"},tabSelectedBackgroundColor:{ref:"tabBackgroundColor"},tabSelectedTextColor:{ref:"tabTextColor"},tabSelectedBorderWidth:{ref:"borderWidth"},tabSelectedBorderColor:"transparent",tabSelectedUnderlineColor:"transparent",tabSelectedUnderlineWidth:0,tabSelectedUnderlineTransitionDuration:0,tabBarBorder:!1},UU=()=>Sn({feature:"tabStyle",params:{...qU,tabBarBorder:!0,tabBarBackgroundColor:gr(.05),tabTextColor:{ref:"textColor",mix:.7},tabSelectedTextColor:{ref:"textColor"},tabHoverTextColor:{ref:"textColor"},tabSelectedBorderColor:{ref:"borderColor"},tabSelectedBackgroundColor:Bo},css:WU}),$U=UU(),KU=()=>_U().withPart(TU).withPart(IU).withPart(LU).withPart($U).withPart(jU).withPart(tE).withParams({fontFamily:[{googleFont:"IBM Plex Sans"},"-apple-system","BlinkMacSystemFont","Segoe UI","Roboto","Oxygen-Sans","Ubuntu"]}),rf=KU(),XU={cssName:"--ag-cell-horizontal-padding",changeKey:"cellHorizontalPaddingChanged",defaultValue:16},ZU={cssName:"--ag-indentation-level",changeKey:"indentationLevelChanged",defaultValue:0,noWarn:!0,cacheDefault:!0},YU={cssName:"--ag-row-group-indent-size",changeKey:"rowGroupIndentSizeChanged",defaultValue:0},iE={cssName:"--ag-row-height",changeKey:"rowHeightChanged",defaultValue:42},sE={cssName:"--ag-header-height",changeKey:"headerHeightChanged",defaultValue:48},sb={cssName:"--ag-row-border",changeKey:"rowBorderWidthChanged",defaultValue:1,border:!0},aE={cssName:"--ag-pinned-row-border",changeKey:"pinnedRowBorderWidthChanged",defaultValue:1,border:!0};function QU(e,t){for(const o of t.sort((r,n)=>r.moduleName.localeCompare(n.moduleName))){const r=o.css;r&&e.set(`module-${o.moduleName}`,r)}}var JU=class extends LG{initVariables(){this.addManagedPropertyListener("rowHeight",()=>this.refreshRowHeightVariable()),this.getSizeEl(iE),this.getSizeEl(sE),this.getSizeEl(sb),this.getSizeEl(aE),this.refreshRowBorderWidthVariable()}getPinnedRowBorderWidth(){return this.getCSSVariablePixelValue(aE)}getRowBorderWidth(){return this.getCSSVariablePixelValue(sb)}getDefaultRowHeight(){return this.getCSSVariablePixelValue(iE)}getDefaultHeaderHeight(){return this.getCSSVariablePixelValue(sE)}getDefaultCellHorizontalPadding(){return this.getCSSVariablePixelValue(XU)}getCellPaddingLeft(){const e=this.getDefaultCellHorizontalPadding(),t=this.getCSSVariablePixelValue(ZU),o=this.getCSSVariablePixelValue(YU);return e-1+o*t}getCellPadding(){const e=this.getDefaultCellHorizontalPadding()-1;return this.getCellPaddingLeft()+e}getDefaultColumnMinWidth(){return Math.min(36,this.getDefaultRowHeight())}refreshRowHeightVariable(){const{eRootDiv:e}=this,t=e.style.getPropertyValue("--ag-line-height").trim(),o=this.gos.get("rowHeight");if(o==null||isNaN(o)||!isFinite(o))return t!==null&&e.style.setProperty("--ag-line-height",null),-1;const r=`${o}px`;return t!=r?(e.style.setProperty("--ag-line-height",r),o):t!=""?Number.parseFloat(t):-1}fireStylesChangedEvent(e){e==="rowBorderWidthChanged"&&this.refreshRowBorderWidthVariable(),super.fireStylesChangedEvent(e)}refreshRowBorderWidthVariable(){const e=this.getCSSVariablePixelValue(sb);this.eRootDiv.style.setProperty("--ag-internal-row-border-width",`${e}px`)}postProcessThemeChange(e,t){e&&getComputedStyle(this.getMeasurementContainer()).getPropertyValue("--ag-legacy-styles-loaded")&&Ft(t?106:239)}getAdditionalCss(){const e=new Map;return e.set("core",[gU]),QU(e,Array.from(t7())),e}getDefaultTheme(){return rf}varError(e){he(9,{variable:e})}themeError(e){Ft(240,{theme:e})}shadowRootError(){Ft(293)}},e$=class extends VG{postConstruct(){const{globalListener:e,globalSyncListener:t}=this.beans;e&&this.addGlobalListener(e,!0),t&&this.addGlobalListener(t,!1)}};function lE(e,t,o){const r=e.visibleCols.headerGroupRowCount;if(o>=r)return{column:t,headerRowIndex:o};let n=t.getParent();for(;n&&n.getProvidedColumnGroup().getLevel()>o;)n=n.getParent();const i=t.isSpanHeaderHeight();return!n||i&&n.isPadding()?{column:t,headerRowIndex:r}:{column:n,headerRowIndex:n.getProvidedColumnGroup().getLevel()}}var t$=class extends ue{constructor(){super(...arguments),this.beanName="headerNavigation",this.currentHeaderRowWithoutSpan=-1}postConstruct(){const e=this.beans;e.ctrlsSvc.whenReady(this,o=>{this.gridBodyCon=o.gridBodyCtrl});const t=lo(e);this.addManagedElementListeners(t,{mousedown:()=>{this.currentHeaderRowWithoutSpan=-1}})}getHeaderPositionForColumn(e,t){let o;const{colModel:r,colGroupSvc:n,ctrlsSvc:i}=this.beans;if(typeof e=="string"?(o=r.getCol(e),o||(o=n?.getColumnGroup(e)??null)):o=e,!o)return null;const a=i.getHeaderRowContainerCtrl()?.getAllCtrls(),c=vt(a||[]).type==="filter",d=En(this.beans)-1;let h=-1,f=o;for(;f;)h++,f=f.getParent();let g=h;return t&&c&&g===d-1&&g++,g===-1?null:{headerRowIndex:g,column:o}}navigateVertically(e,t){const{focusSvc:o,visibleCols:r}=this.beans,{focusedHeader:n}=o;if(!n)return!1;const{headerRowIndex:i}=n,s=n.column,a=En(this.beans),c=this.getHeaderRowType(i),d=r.headerGroupRowCount;let{headerRowIndex:h,column:f,headerRowIndexWithoutSpan:g}=e==="UP"?o$(c,s,i):r$(s,i,d),m=!1;return h<0&&(h=0,f=s,m=!0),h>=a?(h=-1,this.currentHeaderRowWithoutSpan=-1):g!==void 0&&(this.currentHeaderRowWithoutSpan=g),!m&&!f?!1:o.focusHeaderPosition({headerPosition:{headerRowIndex:h,column:f},allowUserOverride:!0,event:t})}navigateHorizontally(e,t=!1,o){const{focusSvc:r,gos:n}=this.beans,i={...r.focusedHeader};let s,a;this.currentHeaderRowWithoutSpan!==-1?i.headerRowIndex=this.currentHeaderRowWithoutSpan:this.currentHeaderRowWithoutSpan=i.headerRowIndex,e==="LEFT"!==n.get("enableRtl")?(a="Before",s=this.findHeader(i,a)):(a="After",s=this.findHeader(i,a));const c=n.getCallback("tabToNextHeader");if(t&&c){const d=r.focusHeaderPositionFromUserFunc({userFunc:c,headerPosition:s,direction:a});if(d){const{headerRowIndex:h}=r.focusedHeader||{};h!=null&&h!=i.headerRowIndex&&(this.currentHeaderRowWithoutSpan=h)}return d}return s||!t?r.focusHeaderPosition({headerPosition:s,direction:a,fromTab:t,allowUserOverride:!0,event:o}):this.focusNextHeaderRow(i,a,o)}focusNextHeaderRow(e,t,o){const r=this.beans,n=e.headerRowIndex;let i=null,s;const a=En(r),c=this.beans.visibleCols.allCols;if(t==="Before"){if(n<=0)return!1;i=vt(c),s=n-1,this.currentHeaderRowWithoutSpan-=1}else i=c[0],s=n+1,this.currentHeaderRowWithoutSpan<a?this.currentHeaderRowWithoutSpan+=1:this.currentHeaderRowWithoutSpan=-1;let{column:d,headerRowIndex:h}=lE(this.beans,i,s);return h>=a&&(h=-1),r.focusSvc.focusHeaderPosition({headerPosition:{column:d,headerRowIndex:h},direction:t,fromTab:!0,allowUserOverride:!0,event:o})}scrollToColumn(e,t="After"){if(e.getPinned())return;let o;if($t(e)){const r=e.getDisplayedLeafColumns();o=t==="Before"?vt(r):r[0]}else o=e;this.gridBodyCon.scrollFeature.ensureColumnVisible(o)}findHeader(e,t){const{colGroupSvc:o,visibleCols:r}=this.beans;let n=e.column;if(n instanceof Uc){const c=n.getDisplayedLeafColumns();n=t==="Before"?c[0]:c[c.length-1]}const i=t==="Before"?r.getColBefore(n):r.getColAfter(n);if(!i)return;const s=r.headerGroupRowCount;if(e.headerRowIndex>=s)return{headerRowIndex:e.headerRowIndex,column:i};const a=o?.getColGroupAtLevel(i,e.headerRowIndex);return a?a.isPadding()&&i.isSpanHeaderHeight()?{headerRowIndex:r.headerGroupRowCount,column:i}:{headerRowIndex:e.headerRowIndex,column:a??i}:{headerRowIndex:i instanceof Ls&&i.isSpanHeaderHeight()?r.headerGroupRowCount:e.headerRowIndex,column:i}}getHeaderRowType(e){const t=this.beans.ctrlsSvc.getHeaderRowContainerCtrl();if(t)return t.getRowType(e)}};function o$(e,t,o){const r=o-1;if(e!=="filter"){const n=t instanceof Ls&&t.isSpanHeaderHeight();let i=t.getParent();for(;i&&(i.getProvidedColumnGroup().getLevel()>r||n&&i.isPadding());)i=i.getParent();if(i)return n?{column:i,headerRowIndex:i.getProvidedColumnGroup().getLevel(),headerRowIndexWithoutSpan:r}:{column:i,headerRowIndex:r,headerRowIndexWithoutSpan:r}}return{column:t,headerRowIndex:r,headerRowIndexWithoutSpan:r}}function r$(e,t,o){const r=t+1,n={column:e,headerRowIndex:r,headerRowIndexWithoutSpan:r};if(e instanceof Uc){if(r>=o)return{column:e.getDisplayedLeafColumns()[0],headerRowIndex:o,headerRowIndexWithoutSpan:r};let s=e.getDisplayedChildren()[0];if(s instanceof Uc&&s.isPadding()){const c=s.getDisplayedLeafColumns()[0];c.isSpanHeaderHeight()&&(s=c)}n.column=s,s instanceof Ls&&s.isSpanHeaderHeight()&&(n.headerRowIndex=o,n.headerRowIndexWithoutSpan=r)}return n}var n$=class extends ue{constructor(){super(...arguments),this.beanName="focusSvc",this.focusFallbackTimeout=null,this.needsFocusRestored=!1}wireBeans(e){this.colModel=e.colModel,this.visibleCols=e.visibleCols,this.rowRenderer=e.rowRenderer,this.navigation=e.navigation,this.filterManager=e.filterManager,this.overlays=e.overlays}postConstruct(){const e=this.clearFocusedCell.bind(this);this.addManagedEventListeners({columnPivotModeChanged:e,newColumnsLoaded:this.onColumnEverythingChanged.bind(this),columnGroupOpened:e,columnRowGroupChanged:e}),this.addDestroyFunc(V9(this.beans))}attemptToRecoverFocus(){this.needsFocusRestored=!0,this.focusFallbackTimeout!=null&&clearTimeout(this.focusFallbackTimeout),this.focusFallbackTimeout=window.setTimeout(this.setFocusRecovered.bind(this),100)}setFocusRecovered(){this.needsFocusRestored=!1,this.focusFallbackTimeout!=null&&(clearTimeout(this.focusFallbackTimeout),this.focusFallbackTimeout=null)}shouldTakeFocus(){return this.gos.get("suppressFocusAfterRefresh")?(this.setFocusRecovered(),!1):this.needsFocusRestored?(this.setFocusRecovered(),!0):this.doesRowOrCellHaveBrowserFocus()}onColumnEverythingChanged(){if(!this.focusedCell)return;const e=this.focusedCell.column,t=this.colModel.getCol(e.getId());e!==t&&this.clearFocusedCell()}getFocusCellToUseAfterRefresh(){const{gos:e,focusedCell:t}=this;return e.get("suppressFocusAfterRefresh")||e.get("suppressCellFocus")||!t||!this.doesRowOrCellHaveBrowserFocus()?null:t}getFocusHeaderToUseAfterRefresh(){return this.gos.get("suppressFocusAfterRefresh")||!this.focusedHeader||!this.isDomDataPresentInHierarchy(Mt(this.beans),OR)?null:this.focusedHeader}doesRowOrCellHaveBrowserFocus(){const e=Mt(this.beans);return this.isDomDataPresentInHierarchy(e,jh)?!0:this.isDomDataPresentInHierarchy(e,Wh)}isDomDataPresentInHierarchy(e,t){let o=e;for(;o;){if(Jk(this.gos,o,t))return!0;o=o.parentNode}return!1}getFocusedCell(){return this.focusedCell}getFocusEventParams(e){const{rowIndex:t,rowPinned:o,column:r}=e,n={rowIndex:t,rowPinned:o,column:r,isFullWidthCell:!1},i=this.rowRenderer.getRowByPosition({rowIndex:t,rowPinned:o});return i&&(n.isFullWidthCell=i.isFullWidth()),n}clearFocusedCell(){if(this.focusedCell==null)return;const e=this.getFocusEventParams(this.focusedCell);this.focusedCell=null,this.eventSvc.dispatchEvent({type:"cellFocusCleared",...e})}setFocusedCell(e){this.setFocusRecovered();const{column:t,rowIndex:o,rowPinned:r,forceBrowserFocus:n=!1,preventScrollOnBrowserFocus:i=!1,sourceEvent:s}=e,a=this.colModel.getCol(t);if(!a){this.focusedCell=null;return}this.focusedCell={rowIndex:o,rowPinned:Pi(r),column:a};const c=this.getFocusEventParams(this.focusedCell);this.eventSvc.dispatchEvent({type:"cellFocused",...c,...this.previousCellFocusParams&&{previousParams:this.previousCellFocusParams},forceBrowserFocus:n,preventScrollOnBrowserFocus:i,sourceEvent:s}),this.previousCellFocusParams=c}isCellFocused(e){return this.focusedCell==null?!1:TR(e,this.focusedCell)}isHeaderWrapperFocused(e){if(this.focusedHeader==null)return!1;const{column:t,rowCtrl:{rowIndex:o,pinned:r}}=e,{column:n,headerRowIndex:i}=this.focusedHeader;return t===n&&o===i&&r==n.getPinned()}focusHeaderPosition(e){if(this.setFocusRecovered(),qs(this.beans))return!1;const{direction:t,fromTab:o,allowUserOverride:r,event:n,fromCell:i,rowWithoutSpanValue:s,scroll:a=!0}=e;let{headerPosition:c}=e;if(i&&this.filterManager?.isAdvFilterHeaderActive())return this.focusAdvancedFilter(c);if(r){const d=this.focusedHeader,h=En(this.beans);if(o){const f=this.gos.getCallback("tabToNextHeader");f&&(c=this.getHeaderPositionFromUserFunc({userFunc:f,direction:t,currentPosition:d,headerPosition:c,headerRowCount:h}))}else{const f=this.gos.getCallback("navigateToNextHeader");if(f&&n){const g={key:n.key,previousHeaderPosition:d,nextHeaderPosition:c,headerRowCount:h,event:n};c=f(g)}}}return c?this.focusProvidedHeaderPosition({headerPosition:c,direction:t,event:n,fromCell:i,rowWithoutSpanValue:s,scroll:a}):!1}focusHeaderPositionFromUserFunc(e){if(qs(this.beans))return!1;const{userFunc:t,headerPosition:o,direction:r,event:n}=e,i=this.focusedHeader,s=En(this.beans),a=this.getHeaderPositionFromUserFunc({userFunc:t,direction:r,currentPosition:i,headerPosition:o,headerRowCount:s});return!!a&&this.focusProvidedHeaderPosition({headerPosition:a,direction:r,event:n})}getHeaderPositionFromUserFunc(e){const{userFunc:t,direction:o,currentPosition:r,headerPosition:n,headerRowCount:i}=e,a=t({backwards:o==="Before",previousHeaderPosition:r,nextHeaderPosition:n,headerRowCount:i});return a===!0?r:a===!1?null:a}focusProvidedHeaderPosition(e){const{headerPosition:t,direction:o,fromCell:r,rowWithoutSpanValue:n,event:i,scroll:s=!0}=e,{column:a,headerRowIndex:c}=t,{filterManager:d,ctrlsSvc:h,headerNavigation:f}=this.beans;if(this.focusedHeader&&aW(e.headerPosition,this.focusedHeader))return!1;if(c===-1)return d?.isAdvFilterHeaderActive()?this.focusAdvancedFilter(t):this.focusGridView({column:a,event:i});s&&f?.scrollToColumn(a,o);const m=h.getHeaderRowContainerCtrl(a.getPinned())?.focusHeader(t.headerRowIndex,a,i)||!1;return f&&m&&(n!=null||r)&&(f.currentHeaderRowWithoutSpan=n??-1),m}focusFirstHeader(){if(this.overlays?.exclusive&&this.focusOverlay())return!0;const e=this.visibleCols.allCols[0];if(!e)return!1;const t=lE(this.beans,e,0);return this.focusHeaderPosition({headerPosition:t,rowWithoutSpanValue:0})}focusLastHeader(e){if(this.overlays?.exclusive&&this.focusOverlay(!0))return!0;const t=En(this.beans)-1,o=vt(this.visibleCols.allCols);return this.focusHeaderPosition({headerPosition:{headerRowIndex:t,column:o},rowWithoutSpanValue:-1,event:e})}focusPreviousFromFirstCell(e){return this.filterManager?.isAdvFilterHeaderActive()?this.focusAdvancedFilter(null):this.focusLastHeader(e)}isAnyCellFocused(){return!!this.focusedCell}isRowFocused(e,t){return this.focusedCell==null?!1:this.focusedCell.rowIndex===e&&this.focusedCell.rowPinned===Pi(t)}focusOverlay(e){const t=this.overlays?.isVisible()&&this.overlays.eWrapper?.getGui();return!!t&&Vs(t,e)}focusGridView(e){const{backwards:t=!1,canFocusOverlay:o=!0,event:r}=e;if(this.overlays?.exclusive)return o&&this.focusOverlay(t);if(Uv(this.beans))return t&&!qs(this.beans)?this.focusLastHeader():o&&this.focusOverlay(t)?!0:t?!1:Zc(this.beans,t);const n=t?eW(this.beans):Jj(this.beans);if(n){const i=e.column??this.focusedHeader?.column,{rowIndex:s,rowPinned:a}=n,c=Ws(this.beans,n);if(!i||!c||s==null)return!1;if(i.isSuppressNavigable(c)){const d=this.gos.get("enableRtl");let h;return!r||r.key===ee.TAB?h=d?ee.LEFT:ee.RIGHT:h=r.key,this.beans.navigation?.navigateToNextCell(null,h,{rowIndex:s,column:i,rowPinned:a||null},!0),!0}return this.navigation?.ensureCellVisible({rowIndex:s,column:i,rowPinned:a}),t&&this.rowRenderer.getRowByPosition(n)?.isFullWidth()&&this.navigation?.tryToFocusFullWidthRow(n,t)||(this.setFocusedCell({rowIndex:s,column:i,rowPinned:Pi(a),forceBrowserFocus:!0}),this.beans.rangeSvc?.setRangeToCell({rowIndex:s,rowPinned:a,column:i})),!0}return!!(o&&this.focusOverlay(t)||t&&this.focusLastHeader())}focusAdvancedFilter(e){return this.advFilterFocusColumn=e?.column,this.beans.advancedFilter?.getCtrl().focusHeaderComp()??!1}focusNextFromAdvancedFilter(e,t){const o=(t?void 0:this.advFilterFocusColumn)??this.visibleCols.allCols?.[0];return e?this.focusHeaderPosition({headerPosition:{column:o,headerRowIndex:En(this.beans)-1}}):this.focusGridView({column:o})}clearAdvancedFilterColumn(){this.advFilterFocusColumn=void 0}},i$=class extends ue{constructor(){super(...arguments),this.beanName="scrollVisibleSvc"}wireBeans(e){this.ctrlsSvc=e.ctrlsSvc,this.colAnimation=e.colAnimation}postConstruct(){this.horizontalScrollShowing=this.gos.get("alwaysShowHorizontalScroll")===!0,this.verticalScrollShowing=this.gos.get("alwaysShowVerticalScroll")===!0,this.getScrollbarWidth(),this.addManagedEventListeners({displayedColumnsChanged:this.updateScrollVisible.bind(this),displayedColumnsWidthChanged:this.updateScrollVisible.bind(this)})}updateScrollVisible(){const{colAnimation:e}=this;e?.isActive()?e.executeLaterVMTurn(()=>{e.executeLaterVMTurn(()=>this.updateScrollVisibleImpl())}):this.updateScrollVisibleImpl()}updateScrollVisibleImpl(){const e=this.ctrlsSvc.get("center");if(!e||this.colAnimation?.isActive())return;const t={horizontalScrollShowing:e.isHorizontalScrollShowing(),verticalScrollShowing:this.verticalScrollShowing};this.setScrollsVisible(t),this.updateScrollGap()}updateScrollGap(){const e=this.ctrlsSvc.get("center"),t=e.hasHorizontalScrollGap(),o=e.hasVerticalScrollGap();(this.horizontalScrollGap!==t||this.verticalScrollGap!==o)&&(this.horizontalScrollGap=t,this.verticalScrollGap=o,this.eventSvc.dispatchEvent({type:"scrollGapChanged"}))}setScrollsVisible(e){(this.horizontalScrollShowing!==e.horizontalScrollShowing||this.verticalScrollShowing!==e.verticalScrollShowing)&&(this.horizontalScrollShowing=e.horizontalScrollShowing,this.verticalScrollShowing=e.verticalScrollShowing,this.eventSvc.dispatchEvent({type:"scrollVisibilityChanged"}))}getScrollbarWidth(){if(this.scrollbarWidth==null){const e=this.gos.get("scrollbarWidth"),o=typeof e=="number"&&e>=0?e:L9();o!=null&&(this.scrollbarWidth=o,this.eventSvc.dispatchEvent({type:"scrollbarWidthChanged"}))}return this.scrollbarWidth}},s$=class extends ue{constructor(){super(...arguments),this.beanName="gridDestroySvc",this.destroyCalled=!1}destroy(){if(this.destroyCalled)return;const{stateSvc:e,ctrlsSvc:t,context:o}=this.beans;this.eventSvc.dispatchEvent({type:"gridPreDestroyed",state:e?.getState()??{}}),this.destroyCalled=!0,t.get("gridCtrl")?.destroyGridUi(),o.destroy(),super.destroy()}},a$=new Set(["gridPreDestroyed","fillStart","pasteStart"]),l$=["columnEverythingChanged","newColumnsLoaded","columnPivotModeChanged","pivotMaxColumnsExceeded","columnRowGroupChanged","expandOrCollapseAll","columnPivotChanged","gridColumnsChanged","columnValueChanged","columnMoved","columnVisible","columnPinned","columnGroupOpened","columnResized","displayedColumnsChanged","virtualColumnsChanged","columnHeaderMouseOver","columnHeaderMouseLeave","columnHeaderClicked","columnHeaderContextMenu","asyncTransactionsFlushed","rowGroupOpened","rowDataUpdated","pinnedRowDataChanged","pinnedRowsChanged","rangeSelectionChanged","cellSelectionChanged","chartCreated","chartRangeSelectionChanged","chartOptionsChanged","chartDestroyed","toolPanelVisibleChanged","toolPanelSizeChanged","modelUpdated","cutStart","cutEnd","pasteStart","pasteEnd","fillStart","fillEnd","cellSelectionDeleteStart","cellSelectionDeleteEnd","rangeDeleteStart","rangeDeleteEnd","undoStarted","undoEnded","redoStarted","redoEnded","cellClicked","cellDoubleClicked","cellMouseDown","cellContextMenu","cellValueChanged","cellEditRequest","rowValueChanged","headerFocused","cellFocused","rowSelected","selectionChanged","tooltipShow","tooltipHide","cellKeyDown","cellMouseOver","cellMouseOut","filterChanged","filterModified","filterUiChanged","filterOpened","floatingFilterUiChanged","advancedFilterBuilderVisibleChanged","sortChanged","virtualRowRemoved","rowClicked","rowDoubleClicked","gridReady","gridPreDestroyed","gridSizeChanged","viewportChanged","firstDataRendered","dragStarted","dragStopped","dragCancelled","rowEditingStarted","rowEditingStopped","cellEditingStarted","cellEditingStopped","bodyScroll","bodyScrollEnd","paginationChanged","componentStateChanged","storeRefreshed","stateUpdated","columnMenuVisibleChanged","contextMenuVisibleChanged","rowDragEnter","rowDragMove","rowDragLeave","rowDragEnd","rowDragCancel","findChanged","rowResizeStarted","rowResizeEnded","columnsReset","bulkEditingStarted","bulkEditingStopped","batchEditingStarted","batchEditingStopped"],ab=l$.reduce((e,t)=>(e[t]=S7(t),e),{}),ml={agSetColumnFilter:"SetFilter",agSetColumnFloatingFilter:"SetFilter",agMultiColumnFilter:"MultiFilter",agMultiColumnFloatingFilter:"MultiFilter",agGroupColumnFilter:"GroupFilter",agGroupColumnFloatingFilter:"GroupFilter",agGroupCellRenderer:"GroupCellRenderer",agGroupRowRenderer:"GroupCellRenderer",agRichSelect:"RichSelect",agRichSelectCellEditor:"RichSelect",agDetailCellRenderer:"SharedMasterDetail",agSparklineCellRenderer:"Sparklines",agDragAndDropImage:"SharedDragAndDrop",agColumnHeader:"ColumnHeaderComp",agColumnGroupHeader:"ColumnGroupHeaderComp",agSortIndicator:"Sort",agAnimateShowChangeCellRenderer:"HighlightChanges",agAnimateSlideCellRenderer:"HighlightChanges",agLoadingCellRenderer:"LoadingCellRenderer",agSkeletonCellRenderer:"SkeletonCellRenderer",agCheckboxCellRenderer:"CheckboxCellRenderer",agLoadingOverlay:"Overlay",agExportingOverlay:"Overlay",agNoRowsOverlay:"Overlay",agNoMatchingRowsOverlay:"Overlay",agTooltipComponent:"Tooltip",agReadOnlyFloatingFilter:"CustomFilter",agTextColumnFilter:"TextFilter",agNumberColumnFilter:"NumberFilter",agDateColumnFilter:"DateFilter",agDateInput:"DateFilter",agTextColumnFloatingFilter:"TextFilter",agNumberColumnFloatingFilter:"NumberFilter",agDateColumnFloatingFilter:"DateFilter",agCellEditor:"TextEditor",agSelectCellEditor:"SelectEditor",agTextCellEditor:"TextEditor",agNumberCellEditor:"NumberEditor",agDateCellEditor:"DateEditor",agDateStringCellEditor:"DateEditor",agCheckboxCellEditor:"CheckboxEditor",agLargeTextCellEditor:"LargeTextEditor",agMenuItem:"MenuItem",agColumnsToolPanel:"ColumnsToolPanel",agFiltersToolPanel:"FiltersToolPanel",agNewFiltersToolPanel:"NewFiltersToolPanel",agAggregationComponent:"StatusBar",agSelectedRowCountComponent:"StatusBar",agTotalRowCountComponent:"StatusBar",agFilteredRowCountComponent:"StatusBar",agTotalAndFilteredRowCountComponent:"StatusBar",agFindCellRenderer:"Find"};function cE(e){return`"${e}"`}var c$=()=>({checkboxSelection:{version:"32.2",message:"Use `rowSelection.checkboxes` in `GridOptions` instead."},headerCheckboxSelection:{version:"32.2",message:"Use `rowSelection.headerCheckbox = true` in `GridOptions` instead."},headerCheckboxSelectionFilteredOnly:{version:"32.2",message:'Use `rowSelection.selectAll = "filtered"` in `GridOptions` instead.'},headerCheckboxSelectionCurrentPageOnly:{version:"32.2",message:'Use `rowSelection.selectAll = "currentPage"` in `GridOptions` instead.'},showDisabledCheckboxes:{version:"32.2",message:"Use `rowSelection.hideDisabledCheckboxes = true` in `GridOptions` instead."},rowGroupingHierarchy:{version:"34.3",message:"Use `colDef.groupHierarchy` instead."}}),u$={allowFormula:"Formula",aggFunc:"SharedAggregation",autoHeight:"RowAutoHeight",cellClass:"CellStyle",cellClassRules:"CellStyle",cellEditor:({cellEditor:e,editable:t})=>t?typeof e=="string"?ml[e]??"CustomEditor":"CustomEditor":null,cellRenderer:({cellRenderer:e})=>typeof e!="string"?null:ml[e],cellStyle:"CellStyle",columnChooserParams:"ColumnMenu",contextMenuItems:"ContextMenu",dndSource:"DragAndDrop",dndSourceOnRowDrag:"DragAndDrop",editable:({editable:e,cellEditor:t})=>e&&!t?"TextEditor":null,enableCellChangeFlash:"HighlightChanges",enablePivot:"SharedPivot",enableRowGroup:"SharedRowGrouping",enableValue:"SharedAggregation",filter:({filter:e})=>e&&typeof e!="string"&&typeof e!="boolean"?"CustomFilter":typeof e=="string"?ml[e]??"ColumnFilter":"ColumnFilter",floatingFilter:"ColumnFilter",getQuickFilterText:"QuickFilter",headerTooltip:"Tooltip",headerTooltipValueGetter:"Tooltip",mainMenuItems:"ColumnMenu",menuTabs:e=>{const t=["columnsMenuTab","generalMenuTab"];return e.menuTabs?.some(o=>t.includes(o))?"ColumnMenu":null},pivot:"SharedPivot",pivotIndex:"SharedPivot",rowDrag:"RowDrag",rowGroup:"SharedRowGrouping",rowGroupIndex:"SharedRowGrouping",tooltipField:"Tooltip",tooltipValueGetter:"Tooltip",tooltipComponentSelector:"Tooltip",spanRows:"CellSpan",groupHierarchy:"SharedRowGrouping"},d$=()=>({autoHeight:{supportedRowModels:["clientSide","serverSide"],validate:(t,{paginationAutoPageSize:o})=>o?"colDef.autoHeight is not supported with paginationAutoPageSize.":null},allowFormula:{supportedRowModels:["clientSide"]},cellRendererParams:{validate:t=>(t.rowGroup!=null||t.rowGroupIndex!=null||t.cellRenderer==="agGroupCellRenderer")&&"checkbox"in t.cellRendererParams?'Since v33.0, `cellRendererParams.checkbox` has been deprecated. Use `rowSelection.checkboxLocation = "autoGroupColumn"` instead.':null},flex:{validate:(t,o)=>o.autoSizeStrategy?"colDef.flex is not supported with gridOptions.autoSizeStrategy":null},headerCheckboxSelection:{supportedRowModels:["clientSide","serverSide"],validate:(t,{rowSelection:o})=>o==="multiple"?null:"headerCheckboxSelection is only supported with rowSelection=multiple"},headerCheckboxSelectionCurrentPageOnly:{supportedRowModels:["clientSide"],validate:(t,{rowSelection:o})=>o==="multiple"?null:"headerCheckboxSelectionCurrentPageOnly is only supported with rowSelection=multiple"},headerCheckboxSelectionFilteredOnly:{supportedRowModels:["clientSide"],validate:(t,{rowSelection:o})=>o==="multiple"?null:"headerCheckboxSelectionFilteredOnly is only supported with rowSelection=multiple"},headerValueGetter:{validate:t=>{const o=t.headerValueGetter;return typeof o=="function"||typeof o=="string"?null:"headerValueGetter must be a function or a valid string expression"}},icons:{validate:({icons:t})=>{if(t){if(t.smallDown)return Cn(262);if(t.smallLeft)return Cn(263);if(t.smallRight)return Cn(264)}return null}},sort:{validate:t=>Ja(t.sort)||Mi(t.sort)?null:`sort must be of type (SortDirection | SortDef), currently it is ${typeof t.sort=="object"?JSON.stringify(t.sort):vh(t.sort)}`},initialSort:{validate:t=>Ja(t.initialSort)||Mi(t.initialSort)?null:`initialSort must be of non-null type (SortDirection | SortDef), currently it is ${typeof t.initialSort=="object"?JSON.stringify(t.initialSort):vh(t.initialSort)}`},sortingOrder:{validate:t=>{const o=t.sortingOrder;if(Array.isArray(o)&&o.length>0){const r=o.filter(n=>!(Ja(n)||Mi(n)));if(r.length>0)return`sortingOrder must be an array of type non-null (SortDirection | SortDef)[], incorrect items are: [${r.map(n=>typeof n=="string"||n==null?vh(n):JSON.stringify(n)).join(", ")}]`}else if(!Array.isArray(o)||!o.length)return`sortingOrder must be an array with at least one element, currently it is [${o}]`;return null}},type:{validate:t=>{const o=t.type;return o instanceof Array?o.some(n=>typeof n!="string")?"if colDef.type is supplied an array it should be of type 'string[]'":null:typeof o=="string"?null:"colDef.type should be of type 'string' | 'string[]'"}},rowSpan:{validate:(t,{suppressRowTransform:o})=>o?null:"colDef.rowSpan requires suppressRowTransform to be enabled."},spanRows:{dependencies:{editable:{required:[!1,void 0]},rowDrag:{required:[!1,void 0]},colSpan:{required:[void 0]},rowSpan:{required:[void 0]}},validate:(t,{rowSelection:o,cellSelection:r,suppressRowTransform:n,enableCellSpan:i,rowDragEntireRow:s,enableCellTextSelection:a})=>typeof o=="object"&&o?.mode==="singleRow"&&o?.enableClickSelection?"colDef.spanRows is not supported with rowSelection.clickSelection":r?"colDef.spanRows is not supported with cellSelection.":n?"colDef.spanRows is not supported with suppressRowTransform.":i?s?"colDef.spanRows is not supported with rowDragEntireRow.":a?"colDef.spanRows is not supported with enableCellTextSelection.":null:"colDef.spanRows requires enableCellSpan to be enabled."},groupHierarchy:{validate(t,{groupHierarchyConfig:o={}},r){const n=new Set(["year","quarter","month","formattedMonth","day","hour","minute","second"]),i=[];for(const s of t.groupHierarchy??[]){if(typeof s=="object"){r.validation?.validateColDef(s);continue}!n.has(s)&&!(s in o)&&i.push(cE(s))}if(i.length>0){const s=`The following parts of colDef.groupHierarchy are not recognised: ${i.join(", ")}.`,a=`Choose one of ${[...n].map(cE).join(", ")}, or define your own parts in gridOptions.groupHierarchyConfig.`;return`${s}
|
|
66
|
+
${a}`}return null}}}),h$={headerName:void 0,columnGroupShow:void 0,headerStyle:void 0,headerClass:void 0,toolPanelClass:void 0,headerValueGetter:void 0,pivotKeys:void 0,groupId:void 0,colId:void 0,sort:void 0,initialSort:void 0,field:void 0,type:void 0,cellDataType:void 0,tooltipComponent:void 0,tooltipField:void 0,headerTooltip:void 0,headerTooltipValueGetter:void 0,cellClass:void 0,showRowGroup:void 0,filter:void 0,initialAggFunc:void 0,defaultAggFunc:void 0,aggFunc:void 0,pinned:void 0,initialPinned:void 0,chartDataType:void 0,cellAriaRole:void 0,cellEditorPopupPosition:void 0,headerGroupComponent:void 0,headerGroupComponentParams:void 0,cellStyle:void 0,cellRenderer:void 0,cellRendererParams:void 0,cellEditor:void 0,cellEditorParams:void 0,filterParams:void 0,pivotValueColumn:void 0,headerComponent:void 0,headerComponentParams:void 0,floatingFilterComponent:void 0,floatingFilterComponentParams:void 0,tooltipComponentParams:void 0,refData:void 0,columnChooserParams:void 0,children:void 0,sortingOrder:void 0,allowedAggFuncs:void 0,menuTabs:void 0,pivotTotalColumnIds:void 0,cellClassRules:void 0,icons:void 0,sortIndex:void 0,initialSortIndex:void 0,flex:void 0,initialFlex:void 0,width:void 0,initialWidth:void 0,minWidth:void 0,maxWidth:void 0,rowGroupIndex:void 0,initialRowGroupIndex:void 0,pivotIndex:void 0,initialPivotIndex:void 0,suppressColumnsToolPanel:void 0,suppressFiltersToolPanel:void 0,openByDefault:void 0,marryChildren:void 0,suppressStickyLabel:void 0,hide:void 0,initialHide:void 0,rowGroup:void 0,initialRowGroup:void 0,pivot:void 0,initialPivot:void 0,checkboxSelection:void 0,showDisabledCheckboxes:void 0,headerCheckboxSelection:void 0,headerCheckboxSelectionFilteredOnly:void 0,headerCheckboxSelectionCurrentPageOnly:void 0,suppressHeaderMenuButton:void 0,suppressMovable:void 0,lockPosition:void 0,lockVisible:void 0,lockPinned:void 0,unSortIcon:void 0,suppressSizeToFit:void 0,suppressAutoSize:void 0,enableRowGroup:void 0,enablePivot:void 0,enableValue:void 0,editable:void 0,suppressPaste:void 0,suppressNavigable:void 0,enableCellChangeFlash:void 0,rowDrag:void 0,dndSource:void 0,autoHeight:void 0,wrapText:void 0,sortable:void 0,resizable:void 0,singleClickEdit:void 0,floatingFilter:void 0,cellEditorPopup:void 0,suppressFillHandle:void 0,wrapHeaderText:void 0,autoHeaderHeight:void 0,dndSourceOnRowDrag:void 0,valueGetter:void 0,valueSetter:void 0,filterValueGetter:void 0,keyCreator:void 0,valueFormatter:void 0,valueParser:void 0,comparator:void 0,equals:void 0,pivotComparator:void 0,suppressKeyboardEvent:void 0,suppressHeaderKeyboardEvent:void 0,colSpan:void 0,rowSpan:void 0,spanRows:void 0,getQuickFilterText:void 0,onCellValueChanged:void 0,onCellClicked:void 0,onCellDoubleClicked:void 0,onCellContextMenu:void 0,rowDragText:void 0,tooltipValueGetter:void 0,tooltipComponentSelector:void 0,cellRendererSelector:void 0,cellEditorSelector:void 0,suppressSpanHeaderHeight:void 0,useValueFormatterForExport:void 0,useValueParserForImport:void 0,mainMenuItems:void 0,contextMenuItems:void 0,suppressFloatingFilterButton:void 0,suppressHeaderFilterButton:void 0,suppressHeaderContextMenu:void 0,loadingCellRenderer:void 0,loadingCellRendererParams:void 0,loadingCellRendererSelector:void 0,context:void 0,dateComponent:void 0,dateComponentParams:void 0,getFindText:void 0,rowGroupingHierarchy:void 0,groupHierarchy:void 0,allowFormula:void 0},f$=()=>Object.keys(h$),p$=()=>({objectName:"colDef",allProperties:f$(),docsUrl:"column-properties/",deprecations:c$(),validations:d$()}),g$=["overlayLoadingTemplate","overlayNoRowsTemplate","gridId","quickFilterText","rowModelType","editType","domLayout","clipboardDelimiter","rowGroupPanelShow","multiSortKey","pivotColumnGroupTotals","pivotRowTotals","pivotPanelShow","fillHandleDirection","groupDisplayType","treeDataDisplayType","treeDataChildrenField","treeDataParentIdField","colResizeDefault","tooltipTrigger","serverSidePivotResultFieldSeparator","columnMenu","tooltipShowMode","invalidEditValueMode","grandTotalRow","themeCssLayer","findSearchValue","styleNonce","renderingMode"],m$=["components","rowStyle","context","autoGroupColumnDef","localeText","icons","datasource","dragAndDropImageComponentParams","serverSideDatasource","viewportDatasource","groupRowRendererParams","aggFuncs","fullWidthCellRendererParams","defaultColGroupDef","defaultColDef","defaultCsvExportParams","defaultExcelExportParams","columnTypes","rowClassRules","detailCellRendererParams","loadingCellRendererParams","overlayComponentParams","loadingOverlayComponentParams","noRowsOverlayComponentParams","activeOverlayParams","popupParent","themeStyleContainer","statusBar","chartThemeOverrides","customChartThemes","chartToolPanelsDef","dataTypeDefinitions","advancedFilterParent","advancedFilterBuilderParams","advancedFilterParams","formulaDataSource","formulaFuncs","initialState","autoSizeStrategy","selectionColumnDef","findOptions","filterHandlers","groupHierarchyConfig"],v$=["sortingOrder","alignedGrids","rowData","columnDefs","excelStyles","pinnedTopRowData","pinnedBottomRowData","chartThemes","rowClass","paginationPageSizeSelector","suppressOverlays"],uE=["rowHeight","detailRowHeight","rowBuffer","headerHeight","groupHeaderHeight","groupLockGroupColumns","floatingFiltersHeight","pivotHeaderHeight","pivotGroupHeaderHeight","groupDefaultExpanded","pivotDefaultExpanded","viewportRowModelPageSize","viewportRowModelBufferSize","autoSizePadding","maxBlocksInCache","maxConcurrentDatasourceRequests","tooltipShowDelay","tooltipHideDelay","cacheOverflowSize","paginationPageSize","cacheBlockSize","infiniteInitialRowCount","serverSideInitialRowCount","scrollbarWidth","asyncTransactionWaitMillis","blockLoadDebounceMillis","keepDetailRowsCount","undoRedoCellEditingLimit","cellFlashDuration","cellFadeDuration","tabIndex","pivotMaxGeneratedColumns","rowDragInsertDelay"],b$=["theme","rowSelection"],w$=["cellSelection","sideBar","rowNumbers","suppressGroupChangesColumnVisibility","groupAggFiltering","suppressStickyTotalRow","groupHideParentOfSingleChild","enableRowPinning"],dE=["loadThemeGoogleFonts","suppressMakeColumnVisibleAfterUnGroup","suppressRowClickSelection","suppressCellFocus","suppressHeaderFocus","suppressHorizontalScroll","groupSelectsChildren","alwaysShowHorizontalScroll","alwaysShowVerticalScroll","debug","enableBrowserTooltips","enableCellExpressions","groupSuppressBlankHeader","suppressMenuHide","suppressRowDeselection","unSortIcon","suppressMultiSort","alwaysMultiSort","singleClickEdit","suppressLoadingOverlay","suppressNoRowsOverlay","suppressAutoSize","skipHeaderOnAutoSize","suppressColumnMoveAnimation","suppressMoveWhenColumnDragging","suppressMovableColumns","suppressFieldDotNotation","enableRangeSelection","enableRangeHandle","enableFillHandle","suppressClearOnFillReduction","deltaSort","suppressTouch","allowContextMenuWithControlKey","suppressContextMenu","suppressDragLeaveHidesColumns","suppressRowGroupHidesColumns","suppressMiddleClickScrolls","suppressPreventDefaultOnMouseWheel","suppressCopyRowsToClipboard","copyHeadersToClipboard","copyGroupHeadersToClipboard","pivotMode","suppressAggFuncInHeader","suppressColumnVirtualisation","alwaysAggregateAtRootLevel","suppressFocusAfterRefresh","functionsReadOnly","animateRows","groupSelectsFiltered","groupRemoveSingleChildren","groupRemoveLowestSingleChildren","enableRtl","enableCellSpan","suppressClickEdit","rowDragEntireRow","rowDragManaged","refreshAfterGroupEdit","suppressRowDrag","suppressMoveWhenRowDragging","rowDragMultiRow","enableGroupEdit","embedFullWidthRows","suppressPaginationPanel","groupHideOpenParents","groupAllowUnbalanced","pagination","paginationAutoPageSize","suppressScrollOnNewData","suppressScrollWhenPopupsAreOpen","purgeClosedRowNodes","cacheQuickFilter","includeHiddenColumnsInQuickFilter","ensureDomOrder","accentedSort","suppressChangeDetection","valueCache","valueCacheNeverExpires","aggregateOnlyChangedColumns","suppressAnimationFrame","suppressExcelExport","suppressCsvExport","includeHiddenColumnsInAdvancedFilter","suppressMultiRangeSelection","enterNavigatesVerticallyAfterEdit","enterNavigatesVertically","suppressPropertyNamesCheck","rowMultiSelectWithClick","suppressRowHoverHighlight","suppressRowTransform","suppressClipboardPaste","suppressLastEmptyLineOnPaste","enableCharts","suppressMaintainUnsortedOrder","enableCellTextSelection","suppressBrowserResizeObserver","suppressMaxRenderedRowRestriction","excludeChildrenWhenTreeDataFiltering","tooltipMouseTrack","tooltipInteraction","keepDetailRows","paginateChildRows","preventDefaultOnContextMenu","undoRedoCellEditing","allowDragFromColumnsToolPanel","pivotSuppressAutoColumn","suppressExpandablePivotGroups","debounceVerticalScrollbar","detailRowAutoHeight","serverSideSortAllLevels","serverSideEnableClientSideSort","serverSideOnlyRefreshFilteredGroups","suppressAggFilteredOnly","showOpenedGroup","suppressClipboardApi","suppressModelUpdateAfterUpdateTransaction","stopEditingWhenCellsLoseFocus","groupMaintainOrder","columnHoverHighlight","readOnlyEdit","suppressRowVirtualisation","enableCellEditingOnBackspace","resetRowDataOnUpdate","removePivotHeaderRowWhenSingleValueColumn","suppressCopySingleCellRanges","suppressGroupRowsSticky","suppressCutToClipboard","rowGroupPanelSuppressSort","allowShowChangeAfterFilter","enableAdvancedFilter","masterDetail","treeData","reactiveCustomComponents","applyQuickFilterBeforePivotOrAgg","suppressServerSideFullWidthLoadingRow","suppressAdvancedFilterEval","loading","maintainColumnOrder","enableStrictPivotColumnOrder","suppressSetFilterByDefault","enableFilterHandlers","suppressStartEditOnTab","hidePaddedHeaderRows","ssrmExpandAllAffectsAllRows","animateColumnResizing"],C$=["doesExternalFilterPass","processPivotResultColDef","processPivotResultColGroupDef","getBusinessKeyForNode","isRowSelectable","rowDragText","groupRowRenderer","dragAndDropImageComponent","fullWidthCellRenderer","loadingCellRenderer","overlayComponent","loadingOverlayComponent","noRowsOverlayComponent","overlayComponentSelector","activeOverlay","detailCellRenderer","quickFilterParser","quickFilterMatcher","getLocaleText","isExternalFilterPresent","getRowHeight","getRowClass","getRowStyle","getFullRowEditValidationErrors","getContextMenuItems","getMainMenuItems","processRowPostCreate","processCellForClipboard","getGroupRowAgg","isFullWidthRow","sendToClipboard","focusGridInnerElement","navigateToNextHeader","tabToNextHeader","navigateToNextCell","tabToNextCell","processCellFromClipboard","getDocument","postProcessPopup","getChildCount","getDataPath","isRowMaster","postSortRows","processHeaderForClipboard","processUnpinnedColumns","processGroupHeaderForClipboard","paginationNumberFormatter","processDataFromClipboard","getServerSideGroupKey","isServerSideGroup","createChartContainer","getChartToolbarItems","fillOperation","isApplyServerSideTransaction","getServerSideGroupLevelParams","isServerSideGroupOpenByDefault","isGroupOpenByDefault","initialGroupOrderComparator","loadingCellRendererSelector","getRowId","chartMenuItems","groupTotalRow","alwaysPassFilter","isRowPinnable","isRowPinned","isRowValidDropPosition"],y$=()=>[...v$,...m$,...g$,...uE,...C$,...dE,...w$,...b$],S$=()=>({suppressLoadingOverlay:{version:"32",message:"Use `loading`=false instead."},enableFillHandle:{version:"32.2",message:"Use `cellSelection.handle` instead."},enableRangeHandle:{version:"32.2",message:"Use `cellSelection.handle` instead."},enableRangeSelection:{version:"32.2",message:"Use `cellSelection = true` instead."},suppressMultiRangeSelection:{version:"32.2",message:"Use `cellSelection.suppressMultiRanges` instead."},suppressClearOnFillReduction:{version:"32.2",message:"Use `cellSelection.handle.suppressClearOnFillReduction` instead."},fillHandleDirection:{version:"32.2",message:"Use `cellSelection.handle.direction` instead."},fillOperation:{version:"32.2",message:"Use `cellSelection.handle.setFillValue` instead."},suppressRowClickSelection:{version:"32.2",message:"Use `rowSelection.enableClickSelection` instead."},suppressRowDeselection:{version:"32.2",message:"Use `rowSelection.enableClickSelection` instead."},rowMultiSelectWithClick:{version:"32.2",message:"Use `rowSelection.enableSelectionWithoutKeys` instead."},groupSelectsChildren:{version:"32.2",message:'Use `rowSelection.groupSelects = "descendants"` instead.'},groupSelectsFiltered:{version:"32.2",message:'Use `rowSelection.groupSelects = "filteredDescendants"` instead.'},isRowSelectable:{version:"32.2",message:"Use `selectionOptions.isRowSelectable` instead."},suppressCopySingleCellRanges:{version:"32.2",message:"Use `rowSelection.copySelectedRows` instead."},suppressCopyRowsToClipboard:{version:"32.2",message:"Use `rowSelection.copySelectedRows` instead."},onRangeSelectionChanged:{version:"32.2",message:"Use `onCellSelectionChanged` instead."},onRangeDeleteStart:{version:"32.2",message:"Use `onCellSelectionDeleteStart` instead."},onRangeDeleteEnd:{version:"32.2",message:"Use `onCellSelectionDeleteEnd` instead."},suppressBrowserResizeObserver:{version:"32.2",message:"The grid always uses the browser's ResizeObserver, this grid option has no effect."},onColumnEverythingChanged:{version:"32.2",message:"Either use `onDisplayedColumnsChanged` which is fired at the same time, or use one of the more specific column events."},groupRemoveSingleChildren:{version:"33",message:"Use `groupHideParentOfSingleChild` instead."},groupRemoveLowestSingleChildren:{version:"33",message:'Use `groupHideParentOfSingleChild: "leafGroupsOnly"` instead.'},suppressRowGroupHidesColumns:{version:"33",message:'Use `suppressGroupChangesColumnVisibility: "suppressHideOnGroup"` instead.'},suppressMakeColumnVisibleAfterUnGroup:{version:"33",message:'Use `suppressGroupChangesColumnVisibility: "suppressShowOnUngroup"` instead.'},unSortIcon:{version:"33",message:"Use `defaultColDef.unSortIcon` instead."},sortingOrder:{version:"33",message:"Use `defaultColDef.sortingOrder` instead."},suppressPropertyNamesCheck:{version:"33",message:"`gridOptions` and `columnDefs` both have a `context` property that should be used for arbitrary user data. This means that column definitions and gridOptions should only contain valid properties making this property redundant."},suppressAdvancedFilterEval:{version:"34",message:"Advanced filter no longer uses function evaluation, so this option has no effect."}});function _n(e,t,o){return typeof t=="number"||t==null?t==null||t>=o?null:`${e}: value should be greater than or equal to ${o}`:`${e}: value should be a number`}var x$={alignedGrids:"AlignedGrids",allowContextMenuWithControlKey:"ContextMenu",autoSizeStrategy:"ColumnAutoSize",cellSelection:"CellSelection",columnHoverHighlight:"ColumnHover",datasource:"InfiniteRowModel",doesExternalFilterPass:"ExternalFilter",editType:"EditCore",invalidEditValueMode:"EditCore",enableAdvancedFilter:"AdvancedFilter",enableCellSpan:"CellSpan",enableCharts:"IntegratedCharts",enableRangeSelection:"CellSelection",enableRowPinning:"PinnedRow",findSearchValue:"Find",getFullRowEditValidationErrors:"EditCore",getContextMenuItems:"ContextMenu",getLocaleText:"Locale",getMainMenuItems:"ColumnMenu",getRowClass:"RowStyle",getRowStyle:"RowStyle",groupTotalRow:"SharedRowGrouping",grandTotalRow:"ClientSideRowModelHierarchy",initialState:"GridState",isExternalFilterPresent:"ExternalFilter",isRowPinnable:"PinnedRow",isRowPinned:"PinnedRow",localeText:"Locale",masterDetail:"SharedMasterDetail",pagination:"Pagination",pinnedBottomRowData:"PinnedRow",pinnedTopRowData:"PinnedRow",pivotMode:"SharedPivot",pivotPanelShow:"RowGroupingPanel",quickFilterText:"QuickFilter",rowClass:"RowStyle",rowClassRules:"RowStyle",rowData:"ClientSideRowModel",rowDragManaged:"RowDrag",refreshAfterGroupEdit:["RowGrouping","TreeData"],rowGroupPanelShow:"RowGroupingPanel",rowNumbers:"RowNumbers",rowSelection:"SharedRowSelection",rowStyle:"RowStyle",serverSideDatasource:"ServerSideRowModel",sideBar:"SideBar",statusBar:"StatusBar",treeData:"SharedTreeData",undoRedoCellEditing:"UndoRedoEdit",valueCache:"ValueCache",viewportDatasource:"ViewportRowModel"},k$=()=>{const e={autoSizePadding:{validate({autoSizePadding:o}){return _n("autoSizePadding",o,0)}},cacheBlockSize:{supportedRowModels:["serverSide","infinite"],validate({cacheBlockSize:o}){return _n("cacheBlockSize",o,1)}},cacheOverflowSize:{validate({cacheOverflowSize:o}){return _n("cacheOverflowSize",o,1)}},datasource:{supportedRowModels:["infinite"]},domLayout:{validate:o=>{const r=o.domLayout,n=["autoHeight","normal","print"];return r&&!n.includes(r)?`domLayout must be one of [${n.join()}], currently it's ${r}`:null}},enableFillHandle:{dependencies:{enableRangeSelection:{required:[!0]}}},enableRangeHandle:{dependencies:{enableRangeSelection:{required:[!0]}}},enableRangeSelection:{dependencies:{rowDragEntireRow:{required:[!1,void 0]}}},enableRowPinning:{supportedRowModels:["clientSide"],validate({enableRowPinning:o,pinnedTopRowData:r,pinnedBottomRowData:n}){return o&&(r||n)?"Manual row pinning cannot be used together with pinned row data. Either set `enableRowPinning` to `false`, or remove `pinnedTopRowData` and `pinnedBottomRowData`.":null}},isRowPinnable:{supportedRowModels:["clientSide"],validate({enableRowPinning:o,isRowPinnable:r,pinnedTopRowData:n,pinnedBottomRowData:i}){return r&&(n||i)?"Manual row pinning cannot be used together with pinned row data. Either remove `isRowPinnable`, or remove `pinnedTopRowData` and `pinnedBottomRowData`.":!o&&r?"`isRowPinnable` requires `enableRowPinning` to be set.":null}},isRowPinned:{supportedRowModels:["clientSide"],validate({enableRowPinning:o,isRowPinned:r,pinnedTopRowData:n,pinnedBottomRowData:i}){return r&&(n||i)?"Manual row pinning cannot be used together with pinned row data. Either remove `isRowPinned`, or remove `pinnedTopRowData` and `pinnedBottomRowData`.":!o&&r?"`isRowPinned` requires `enableRowPinning` to be set.":null}},groupDefaultExpanded:{supportedRowModels:["clientSide"]},groupHideOpenParents:{supportedRowModels:["clientSide","serverSide"],dependencies:{groupTotalRow:{required:[void 0,"bottom"]},treeData:{required:[void 0,!1],reason:"Tree Data has values at the group level so it doesn't make sense to hide them."}}},groupHideParentOfSingleChild:{dependencies:{groupHideOpenParents:{required:[void 0,!1]}}},groupRemoveLowestSingleChildren:{dependencies:{groupHideOpenParents:{required:[void 0,!1]},groupRemoveSingleChildren:{required:[void 0,!1]}}},groupRemoveSingleChildren:{dependencies:{groupHideOpenParents:{required:[void 0,!1]},groupRemoveLowestSingleChildren:{required:[void 0,!1]}}},groupSelectsChildren:{dependencies:{rowSelection:{required:["multiple"]}}},groupHierarchyConfig:{validate({groupHierarchyConfig:o={}},r,n){for(const i of Object.keys(o))n.validation?.validateColDef(o[i]);return null}},icons:{validate:({icons:o})=>{if(o){if(o.smallDown)return Cn(262);if(o.smallLeft)return Cn(263);if(o.smallRight)return Cn(264)}return null}},infiniteInitialRowCount:{validate({infiniteInitialRowCount:o}){return _n("infiniteInitialRowCount",o,1)}},initialGroupOrderComparator:{supportedRowModels:["clientSide"]},ssrmExpandAllAffectsAllRows:{validate:o=>{if(typeof o.ssrmExpandAllAffectsAllRows=="boolean"){if(o.rowModelType!=="serverSide")return"'ssrmExpandAllAffectsAllRows' is only supported with the Server Side Row Model.";if(o.ssrmExpandAllAffectsAllRows&&typeof o.getRowId!="function")return"'getRowId' callback must be provided for Server Side Row Model grouping to work correctly."}return null}},keepDetailRowsCount:{validate({keepDetailRowsCount:o}){return _n("keepDetailRowsCount",o,1)}},paginationPageSize:{validate({paginationPageSize:o}){return _n("paginationPageSize",o,1)}},paginationPageSizeSelector:{validate:o=>{const r=o.paginationPageSizeSelector;return typeof r=="boolean"||r==null||r.length?null:`'paginationPageSizeSelector' cannot be an empty array.
|
|
67
|
+
If you want to hide the page size selector, set paginationPageSizeSelector to false.`}},pivotMode:{dependencies:{treeData:{required:[!1,void 0],reason:"Pivot Mode is not supported with Tree Data."}}},quickFilterText:{supportedRowModels:["clientSide"]},rowBuffer:{validate({rowBuffer:o}){return _n("rowBuffer",o,0)}},rowClass:{validate:o=>typeof o.rowClass=="function"?"rowClass should not be a function, please use getRowClass instead":null},rowData:{supportedRowModels:["clientSide"]},rowDragManaged:{supportedRowModels:["clientSide"],dependencies:{pagination:{required:[!1,void 0]}}},rowSelection:{validate({rowSelection:o}){return o&&typeof o=="string"?'As of version 32.2.1, using `rowSelection` with the values "single" or "multiple" has been deprecated. Use the object value instead.':o&&typeof o!="object"?"Expected `RowSelectionOptions` object for the `rowSelection` property.":o&&o.mode!=="multiRow"&&o.mode!=="singleRow"?`Selection mode "${o.mode}" is invalid. Use one of 'singleRow' or 'multiRow'.`:null}},rowStyle:{validate:o=>{const r=o.rowStyle;return r&&typeof r=="function"?"rowStyle should be an object of key/value styles, not be a function, use getRowStyle() instead":null}},serverSideDatasource:{supportedRowModels:["serverSide"]},serverSideInitialRowCount:{supportedRowModels:["serverSide"],validate({serverSideInitialRowCount:o}){return _n("serverSideInitialRowCount",o,1)}},serverSideOnlyRefreshFilteredGroups:{supportedRowModels:["serverSide"]},serverSideSortAllLevels:{supportedRowModels:["serverSide"]},sortingOrder:{validate:o=>{const r=o.sortingOrder;if(Array.isArray(r)&&r.length>0){const n=r.filter(i=>!qr(i));if(n.length>0)return`sortingOrder must be an array of type (SortDirection | SortDef)[], incorrect items are: ${n.map(i=>typeof i=="string"||i==null?vh(i):JSON.stringify(i))}]`}else if(!Array.isArray(r)||!r.length)return`sortingOrder must be an array with at least one element, currently it's ${r}`;return null}},tooltipHideDelay:{validate:o=>o.tooltipHideDelay&&o.tooltipHideDelay<0?"tooltipHideDelay should not be lower than 0":null},tooltipShowDelay:{validate:o=>o.tooltipShowDelay&&o.tooltipShowDelay<0?"tooltipShowDelay should not be lower than 0":null},treeData:{supportedRowModels:["clientSide","serverSide"],validate:o=>{const r=o.rowModelType??"clientSide";switch(r){case"clientSide":{const{treeDataChildrenField:n,treeDataParentIdField:i,getDataPath:s,getRowId:a}=o;if(!n&&!i&&!s)return"treeData requires either 'treeDataChildrenField' or 'treeDataParentIdField' or 'getDataPath' in the clientSide row model.";if(n){if(s)return"Cannot use both 'treeDataChildrenField' and 'getDataPath' at the same time.";if(i)return"Cannot use both 'treeDataChildrenField' and 'treeDataParentIdField' at the same time."}if(i){if(!a)return"getRowId callback not provided, tree data with parent id cannot be built.";if(s)return"Cannot use both 'treeDataParentIdField' and 'getDataPath' at the same time."}return null}case"serverSide":{const n=`treeData requires 'isServerSideGroup' and 'getServerSideGroupKey' in the ${r} row model.`;return o.isServerSideGroup&&o.getServerSideGroupKey?null:n}}return null}},viewportDatasource:{supportedRowModels:["viewport"]},viewportRowModelBufferSize:{validate({viewportRowModelBufferSize:o}){return _n("viewportRowModelBufferSize",o,0)}},viewportRowModelPageSize:{validate({viewportRowModelPageSize:o}){return _n("viewportRowModelPageSize",o,1)}},rowDragEntireRow:{dependencies:{cellSelection:{required:[void 0]}}},autoGroupColumnDef:{validate({autoGroupColumnDef:o,showOpenedGroup:r}){return o?.field&&r?"autoGroupColumnDef.field and showOpenedGroup are not supported when used together.":o?.valueGetter&&r?"autoGroupColumnDef.valueGetter and showOpenedGroup are not supported when used together.":null}},renderingMode:{validate:o=>{const r=o.renderingMode,n=["default","legacy"];return r&&!n.includes(r)?`renderingMode must be one of [${n.join()}], currently it's ${r}`:null}},autoSizeStrategy:{validate:({autoSizeStrategy:o})=>{if(!o)return null;const r=["fitCellContents","fitGridWidth","fitProvidedWidth"],n=o.type;return n!=="fitCellContents"&&n!=="fitGridWidth"&&n!=="fitProvidedWidth"?`Invalid Auto-size strategy. \`autoSizeStrategy\` must be one of ${r.map(i=>'"'+i+'"').join(", ")}, currently it's ${n}`:n==="fitProvidedWidth"&&typeof o.width!="number"?`When using the 'fitProvidedWidth' auto-size strategy, must provide a numeric \`width\`. You provided ${o.width}`:null}}},t={};for(const o of dE)t[o]={expectedType:"boolean"};for(const o of uE)t[o]={expectedType:"number"};return ko(t,e),t},F$=()=>({objectName:"gridOptions",allProperties:[...y$(),...Object.values(ab)],propertyExceptions:["api"],docsUrl:"grid-options/",deprecations:S$(),validations:k$()}),R$=0,E$=0,hE="__ag_grid_instance",_$=class extends ue{constructor(){super(...arguments),this.beanName="gos",this.domDataKey="__AG_"+Math.random().toString(),this.instanceId=E$++,this.gridReadyFired=!1,this.queueEvents=[],this.propEventSvc=new Ms,this.globalEventHandlerFactory=e=>(t,o)=>{if(!this.isAlive())return;const r=a$.has(t);if(r&&!e||!r&&e||!P$(t))return;const n=(i,s)=>{const a=ab[i],c=this.gridOptions[a];typeof c=="function"&&this.beans.frameworkOverrides.wrapOutgoing(()=>c(s))};if(this.gridReadyFired)n(t,o);else if(t==="gridReady"){n(t,o),this.gridReadyFired=!0;for(const i of this.queueEvents)n(i.eventName,i.event);this.queueEvents=[]}else this.queueEvents.push({eventName:t,event:o})}}wireBeans(e){this.gridOptions=e.gridOptions,this.validation=e.validation,this.api=e.gridApi,this.gridId=e.context.getId()}get gridOptionsContext(){return this.gridOptions.context}postConstruct(){this.validateGridOptions(this.gridOptions),this.eventSvc.addGlobalListener(this.globalEventHandlerFactory().bind(this),!0),this.eventSvc.addGlobalListener(this.globalEventHandlerFactory(!0).bind(this),!1),this.propEventSvc.setFrameworkOverrides(this.beans.frameworkOverrides),this.addManagedEventListeners({gridOptionsChanged:({options:e})=>{this.updateGridOptions({options:e,force:!0,source:"optionsUpdated"})}})}destroy(){super.destroy(),this.queueEvents=[]}get(e){return this.gridOptions[e]??Lk[e]}getCallback(e){return this.mergeGridCommonParams(this.gridOptions[e])}exists(e){return Ee(this.gridOptions[e])}mergeGridCommonParams(e){return e&&(o=>e(this.addCommon(o)))}updateGridOptions({options:e,force:t,source:o="api"}){const r={id:R$++,properties:[]},n=[],{gridOptions:i,validation:s}=this;for(const a of Object.keys(e)){const c=Um.applyGlobalGridOption(a,e[a]);s?.warnOnInitialPropertyUpdate(o,a);const d=t||typeof c=="object"&&o==="api",h=i[a];if(d||h!==c){i[a]=c;const f={type:a,currentValue:c,previousValue:h,changeSet:r,source:o};n.push(f)}}this.validateGridOptions(this.gridOptions),r.properties=n.map(a=>a.type);for(const a of n)ph(this,`Updated property ${a.type} from`,a.previousValue," to ",a.currentValue),this.propEventSvc.dispatchEvent(a)}addPropertyEventListener(e,t){this.propEventSvc.addEventListener(e,t)}removePropertyEventListener(e,t){this.propEventSvc.removeEventListener(e,t)}getDomDataKey(){return this.domDataKey}addCommon(e){return e.api=this.api,e.context=this.gridOptionsContext,e}validateOptions(e,t){for(const o of Object.keys(e)){const r=e[o];if(r==null||r===!1)continue;let n=t[o];typeof n=="function"&&(n=n(e,this.gridOptions,this.beans)),n&&this.assertModuleRegistered(n,o)}}validateGridOptions(e){this.validateOptions(e,x$),this.validation?.processGridOptions(e)}validateColDef(e,t,o){(o||!this.beans.dataTypeSvc?.isColPendingInference(t))&&(this.validateOptions(e,u$),this.validation?.validateColDef(e))}assertModuleRegistered(e,t){const o=Array.isArray(e)?e.some(r=>this.isModuleRegistered(r)):this.isModuleRegistered(e);return o||Ft(200,{...this.getModuleErrorParams(),moduleName:e,reasonOrId:t}),o}getModuleErrorParams(){return{gridId:this.gridId,gridScoped:Km(),rowModelType:this.get("rowModelType"),isUmd:jk()}}isModuleRegistered(e){return $m(e,this.gridId,this.get("rowModelType"))}setInstanceDomData(e){e[hE]=this.instanceId}isElementInThisInstance(e){let t=e;for(;t;){const o=t[hE];if(Ee(o))return o===this.instanceId;t=t.parentElement}return!1}};function P$(e){return!!ab[e]}var D$=class extends ue{constructor(e,t){super(),this.column=e,this.eGui=t,this.lastMovingChanged=0}postConstruct(){this.addManagedElementListeners(this.eGui,{click:e=>e&&this.onClick(e)}),this.addManagedListeners(this.column,{movingChanged:()=>{this.lastMovingChanged=Date.now()}})}onClick(e){const{sortSvc:t,rangeSvc:o,gos:r}=this.beans;if(!(Qa(r)?e.altKey:!0))o?.handleColumnSelection(this.column,e);else if(this.column.isSortable()){const i=this.column.isMoving(),a=Date.now()-this.lastMovingChanged<50;i||a||t?.progressSortFromEvent(this.column,e)}}};function T$(e,t){const o={"aria-hidden":"true"};return{tag:"div",cls:"ag-cell-label-container",role:"presentation",children:[{tag:"span",ref:"eMenu",cls:"ag-header-icon ag-header-cell-menu-button",attrs:o},{tag:"span",ref:"eFilterButton",cls:"ag-header-icon ag-header-cell-filter-button",attrs:o},{tag:"div",ref:"eLabel",cls:"ag-header-cell-label",role:"presentation",children:[e?{tag:"span",ref:"eColRef",cls:"ag-header-col-ref"}:null,{tag:"span",ref:"eText",cls:"ag-header-cell-text"},{tag:"span",ref:"eFilter",cls:"ag-header-icon ag-header-label-icon ag-filter-icon",attrs:o},t?{tag:"ag-sort-indicator",ref:"eSortIndicator"}:null]}]}}var M$=class extends Ro{constructor(){super(...arguments),this.eFilter=Te,this.eFilterButton=Te,this.eSortIndicator=Te,this.eMenu=Te,this.eLabel=Te,this.eText=Te,this.eColRef=Te,this.eSortOrder=Te,this.eSortAsc=Te,this.eSortDesc=Te,this.eSortMixed=Te,this.eSortNone=Te,this.eSortAbsoluteAsc=Te,this.eSortAbsoluteDesc=Te,this.isLoadingInnerComponent=!1}refresh(e){const t=this.params;if(this.params=e,this.workOutTemplate(e,!!this.beans?.sortSvc)!=this.currentTemplate||this.workOutShowMenu()!=this.currentShowMenu||e.enableSorting!=this.currentSort||e.column.formulaRef!=this.currentRef||this.currentSuppressMenuHide!=null&&this.shouldSuppressMenuHide()!=this.currentSuppressMenuHide||t.enableFilterButton!=e.enableFilterButton||t.enableFilterIcon!=e.enableFilterIcon)return!1;if(this.innerHeaderComponent){const o={...e};ko(o,e.innerHeaderComponentParams),this.innerHeaderComponent.refresh?.(o)}else this.setDisplayName(e);return!0}workOutTemplate(e,t){const{formula:o}=this.beans,r=e.template;return r?r?.trim?r.trim():r:T$(!!o?.active,t)}init(e){this.params=e;const{sortSvc:t,touchSvc:o,rowNumbersSvc:r,userCompFactory:n}=this.beans,i=t?.getSortIndicatorSelector();this.currentTemplate=this.workOutTemplate(e,!!i),this.setTemplate(this.currentTemplate,i?[i]:void 0),this.eLabel&&(this.mouseListener??(this.mouseListener=this.createManagedBean(new D$(e.column,this.eLabel)))),o?.setupForHeader(this),this.setMenu(),this.setupSort(),this.setupColumnRefIndicator(),r?.setupForHeader(this),this.setupFilterIcon(),this.setupFilterButton(),this.workOutInnerHeaderComponent(n,e),this.setDisplayName(e)}workOutInnerHeaderComponent(e,t){const o=C9(e,t,t);o&&(this.isLoadingInnerComponent=!0,o.newAgStackInstance().then(r=>{this.isLoadingInnerComponent=!1,r&&(this.isAlive()?(this.innerHeaderComponent=r,this.eText&&this.eText.appendChild(r.getGui())):this.destroyBean(r))}))}setDisplayName(e){const{displayName:t}=e,o=this.currentDisplayName;this.currentDisplayName=t,!(!this.eText||o===t||this.innerHeaderComponent||this.isLoadingInnerComponent)&&(this.eText.textContent=Pc(t))}addInIcon(e,t,o){const r=zi(e,this.beans,o);r&&t.appendChild(r)}workOutShowMenu(){return this.params.enableMenu&&!!this.beans.menuSvc?.isHeaderMenuButtonEnabled()}shouldSuppressMenuHide(){return!!this.beans.menuSvc?.isHeaderMenuButtonAlwaysShowEnabled()}setMenu(){if(!this.eMenu)return;if(this.currentShowMenu=this.workOutShowMenu(),!this.currentShowMenu){qa(this.eMenu),this.eMenu=void 0;return}const{gos:e,eMenu:t,params:o}=this,r=Yo(e);this.addInIcon(r?"menu":"menuAlt",t,o.column),t.classList.toggle("ag-header-menu-icon",!r);const n=this.shouldSuppressMenuHide();this.currentSuppressMenuHide=n,this.addManagedElementListeners(t,{click:()=>this.showColumnMenu(this.eMenu)}),this.toggleMenuAlwaysShow(n)}toggleMenuAlwaysShow(e){this.eMenu?.classList.toggle("ag-header-menu-always-show",e)}showColumnMenu(e){const{currentSuppressMenuHide:t,params:o}=this;t||this.toggleMenuAlwaysShow(!0),o.showColumnMenu(e,()=>{t||this.toggleMenuAlwaysShow(!1)})}onMenuKeyboardShortcut(e){const{params:t,gos:o,beans:r,eMenu:n,eFilterButton:i}=this,s=t.column,a=Yo(o);if(e&&!a){if(r.menuSvc?.isFilterMenuInHeaderEnabled(s))return t.showFilter(i??n??this.getGui()),!0}else if(t.enableMenu)return this.showColumnMenu(n??i??this.getGui()),!0;return!1}setupSort(){const{sortSvc:e}=this.beans;if(!e)return;const{enableSorting:t,column:o}=this.params;if(this.currentSort=t,!this.eSortIndicator){this.eSortIndicator=this.createBean(e.createSortIndicator(!0));const{eSortIndicator:r,eSortOrder:n,eSortAsc:i,eSortDesc:s,eSortMixed:a,eSortNone:c,eSortAbsoluteAsc:d,eSortAbsoluteDesc:h}=this;r.attachCustomElements(n,i,s,a,c,d,h)}this.eSortIndicator.setupSort(o),this.currentSort&&e.setupHeader(this,o)}setupColumnRefIndicator(){const{eColRef:e,beans:{editModelSvc:t},params:o}=this;e&&(this.currentRef=o.column.formulaRef,e.textContent=this.currentRef,kt(e,!1),this.addManagedEventListeners({cellEditingStarted:()=>{const r=t?.getEditPositions(),n=!!this.currentRef&&!!r?.some(i=>i.column.isAllowFormula());kt(e,n)},cellEditingStopped:()=>{kt(e,!1)}}))}setupFilterIcon(){const{eFilter:e,params:t}=this;if(!e)return;const o=()=>{const r=t.column.isFilterActive();kt(e,r,{skipAriaHidden:!0})};this.configureFilter(t.enableFilterIcon,e,o,"filterActive")}setupFilterButton(){const{eFilterButton:e,params:t}=this;if(!e)return;this.configureFilter(t.enableFilterButton,e,this.onFilterChangedButton.bind(this),"filter")?this.addManagedElementListeners(e,{click:()=>t.showFilter(e)}):this.eFilterButton=void 0}configureFilter(e,t,o,r){if(!e)return qa(t),!1;const n=this.params.column;return this.addInIcon(r,t,n),this.addManagedListeners(n,{filterChanged:o}),o(),!0}onFilterChangedButton(){const e=this.params.column.isFilterActive();this.eFilterButton.classList.toggle("ag-filter-active",e)}getAnchorElementForMenu(e){const{eFilterButton:t,eMenu:o}=this;return e?t??o??this.getGui():o??t??this.getGui()}destroy(){super.destroy(),this.innerHeaderComponent=this.destroyBean(this.innerHeaderComponent),this.mouseListener=this.destroyBean(this.mouseListener)}},A$={tag:"div",cls:"ag-header-group-cell-label",role:"presentation",children:[{tag:"span",ref:"agLabel",cls:"ag-header-group-text",role:"presentation"},{tag:"span",ref:"agOpened",cls:"ag-header-icon ag-header-expand-icon ag-header-expand-icon-expanded"},{tag:"span",ref:"agClosed",cls:"ag-header-icon ag-header-expand-icon ag-header-expand-icon-collapsed"}]},I$=class extends Ro{constructor(){super(A$),this.agOpened=Te,this.agClosed=Te,this.agLabel=Te,this.isLoadingInnerComponent=!1}init(e){const{userCompFactory:t,touchSvc:o}=this.beans;this.params=e,this.checkWarnings(),this.workOutInnerHeaderGroupComponent(t,e),this.setupLabel(e),this.addGroupExpandIcon(e),this.setupExpandIcons(),o?.setupForHeaderGroup(this)}checkWarnings(){this.params.template&&he(89)}workOutInnerHeaderGroupComponent(e,t){const o=S9(e,t,t);o&&(this.isLoadingInnerComponent=!0,o.newAgStackInstance().then(r=>{this.isLoadingInnerComponent=!1,r&&(this.isAlive()?(this.innerHeaderGroupComponent=r,this.agLabel.appendChild(r.getGui())):this.destroyBean(r))}))}setupExpandIcons(){const{agOpened:e,agClosed:t,params:{columnGroup:o},beans:{colGroupSvc:r}}=this;this.addInIcon("columnGroupOpened",e),this.addInIcon("columnGroupClosed",t);const n=c=>{if(oi(c))return;const d=!o.isExpanded();r.setColumnGroupOpened(o.getProvidedColumnGroup(),d,"uiColumnExpanded")};this.addTouchAndClickListeners(t,n),this.addTouchAndClickListeners(e,n);const i=c=>{js(c)};this.addManagedElementListeners(t,{dblclick:i}),this.addManagedElementListeners(e,{dblclick:i}),this.addManagedElementListeners(this.getGui(),{dblclick:n}),this.updateIconVisibility();const s=o.getProvidedColumnGroup(),a=this.updateIconVisibility.bind(this);this.addManagedListeners(s,{expandedChanged:a,expandableChanged:a})}addTouchAndClickListeners(e,t){this.beans.touchSvc?.setupForHeaderGroupElement(this,e,t),this.addManagedElementListeners(e,{click:t})}updateIconVisibility(){const{agOpened:e,agClosed:t,params:{columnGroup:o}}=this;if(o.isExpandable()){const r=o.isExpanded();kt(e,r),kt(t,!r)}else kt(e,!1),kt(t,!1)}addInIcon(e,t){const o=zi(e,this.beans,null);o&&t.appendChild(o)}addGroupExpandIcon(e){if(!e.columnGroup.isExpandable()){const{agOpened:t,agClosed:o}=this;kt(t,!1),kt(o,!1)}}setupLabel(e){const{displayName:t,columnGroup:o}=e,{innerHeaderGroupComponent:r,isLoadingInnerComponent:n}=this,i=r||n;Ee(t)&&!i&&(this.agLabel.textContent=Pc(t)),this.toggleCss("ag-sticky-label",!o.getColGroupDef()?.suppressStickyLabel)}destroy(){super.destroy(),this.innerHeaderGroupComponent&&(this.destroyBean(this.innerHeaderGroupComponent),this.innerHeaderGroupComponent=void 0)}},B$={moduleName:"ColumnHeaderComp",version:Ve,userComponents:{agColumnHeader:M$},icons:{menu:"menu",menuAlt:"menu-alt"}},O$={moduleName:"ColumnGroupHeaderComp",version:Ve,userComponents:{agColumnGroupHeader:I$},icons:{columnGroupOpened:"expanded",columnGroupClosed:"contracted"}},N$=class extends ue{constructor(){super(...arguments),this.beanName="animationFrameSvc",this.p1={list:[],sorted:!1},this.p2={list:[],sorted:!1},this.f1={list:[],sorted:!1},this.destroyTasks=[],this.ticking=!1,this.scrollGoingDown=!0,this.lastScrollTop=0,this.taskCount=0}setScrollTop(e){this.scrollGoingDown=e>=this.lastScrollTop,e===0&&(this.scrollGoingDown=!0),this.lastScrollTop=e}postConstruct(){this.active=!this.gos.get("suppressAnimationFrame"),this.batchFrameworkComps=this.beans.frameworkOverrides.batchFrameworkComps}verify(){this.active===!1&&he(92)}createTask(e,t,o,r,n=!1){this.verify();let i=o;r&&this.batchFrameworkComps&&(i="f1");const s={task:e,index:t,createOrder:++this.taskCount,deferred:n};this.addTaskToList(this[i],s),this.schedule()}addTaskToList(e,t){e.list.push(t),e.sorted=!1}sortTaskList(e){if(e.sorted)return;const t=this.scrollGoingDown?1:-1;e.list.sort((o,r)=>o.deferred!==r.deferred?o.deferred?-1:1:o.index!==r.index?t*(r.index-o.index):r.createOrder-o.createOrder),e.sorted=!0}addDestroyTask(e){this.verify(),this.destroyTasks.push(e),this.schedule()}executeFrame(e){const{p1:t,p2:o,f1:r,destroyTasks:n,beans:i}=this,{ctrlsSvc:s,frameworkOverrides:a}=i,c=t.list,d=o.list,h=r.list,f=Date.now();let g=0;const m=e<=0,b=s.getScrollFeature();for(;m||g<e;){if(!b.scrollGridIfNeeded()){let y;if(c.length)this.sortTaskList(t),y=c.pop().task;else if(d.length)this.sortTaskList(o),y=d.pop().task;else if(h.length)a.wrapOutgoing(()=>{for(;(m||g<e)&&!b.scrollGridIfNeeded();){if(h.length)this.sortTaskList(r),y=h.pop().task,y();else break;g=Date.now()-f}}),y=()=>{};else if(n.length)y=n.pop();else break;y()}g=Date.now()-f}c.length||d.length||h.length||n.length?this.requestFrame():this.ticking=!1}flushAllFrames(){this.active&&this.executeFrame(-1)}schedule(){this.active&&(this.ticking||(this.ticking=!0,this.requestFrame()))}requestFrame(){const e=this.executeFrame.bind(this,60);Yn(this.beans,e)}isQueueEmpty(){return!this.ticking}},L$={moduleName:"AnimationFrame",version:Ve,beans:[N$]},z$=class extends ue{constructor(){super(...arguments),this.beanName="iconSvc"}createIconNoSpan(e,t){return zi(e,this.beans,t?.column)}},H$=class extends ue{constructor(){super(...arguments),this.beanName="touchSvc"}mockBodyContextMenu(e,t){this.mockContextMenu(e,e.eBodyViewport,t)}mockHeaderContextMenu(e,t){this.mockContextMenu(e,e.eGui,t)}mockRowContextMenu(e){if(!Hs())return;const t=(o,r,n)=>{const{rowCtrl:i,cellCtrl:s}=e.getControlsForEventTarget(n?.target??null);s?.column&&s.dispatchCellContextMenuEvent(n??null),this.beans.contextMenuSvc?.handleContextMenuMouseEvent(void 0,n,i,s)};this.mockContextMenu(e,e.element,t)}handleCellDoubleClick(e,t){return(()=>{if(!Hs()||Mk("dblclick"))return!1;const r=Date.now(),n=r-e.lastIPadMouseClickEvent<200;return e.lastIPadMouseClickEvent=r,n})()?(e.onCellDoubleClicked(t),t.preventDefault(),!0):!1}setupForHeader(e){const{gos:t,sortSvc:o,menuSvc:r}=this.beans;if(t.get("suppressTouch"))return;const{params:n,eMenu:i,eFilterButton:s}=e,a=new gl(e.getGui(),!0);e.addDestroyFunc(()=>a.destroy());const c=e.shouldSuppressMenuHide(),d=c&&Ee(i)&&n.enableMenu;let h=a;if(d&&(h=new gl(i,!0),e.addDestroyFunc(()=>h.destroy())),n.enableMenu||r?.isHeaderContextMenuEnabled(n.column)){const f=d?"tap":"longTap",g=m=>n.showColumnMenuAfterMouseClick(m.touchStart);e.addManagedListeners(h,{[f]:g}),e.addManagedListeners(a,{longTap:g})}if(n.enableSorting){const f=g=>{const m=g.touchStart.target;c&&(i?.contains(m)||s?.contains(m))||o?.progressSort(n.column,!1,"uiColumnSorted")};e.addManagedListeners(a,{tap:f})}if(n.enableFilterButton&&s){const f=new gl(s,!0);e.addManagedListeners(f,{tap:()=>n.showFilter(s)}),e.addDestroyFunc(()=>f.destroy())}}setupForHeaderGroup(e){const t=e.params;if(this.beans.menuSvc?.isHeaderContextMenuEnabled(t.columnGroup.getProvidedColumnGroup())){const o=new gl(t.eGridHeader,!0),r=n=>t.showColumnMenuAfterMouseClick(n.touchStart);e.addManagedListeners(o,{longTap:r}),e.addDestroyFunc(()=>o.destroy())}}setupForHeaderGroupElement(e,t,o){const r=new gl(t,!0);e.addManagedListeners(r,{tap:o}),e.addDestroyFunc(()=>r.destroy())}mockContextMenu(e,t,o){if(!Hs())return;const r=new gl(t),n=i=>{Bc(this.beans,i.touchEvent)&&o(void 0,i.touchStart,i.touchEvent)};e.addManagedListeners(r,{longTap:n}),e.addDestroyFunc(()=>r.destroy())}},V$={moduleName:"Touch",version:Ve,beans:[H$]},G$=class extends ue{constructor(){super(...arguments),this.beanName="cellNavigation"}wireBeans(e){this.rowSpanSvc=e.rowSpanSvc}getNextCellToFocus(e,t,o=!1){return o?this.getNextCellToFocusWithCtrlPressed(e,t):this.getNextCellToFocusWithoutCtrlPressed(e,t)}getNextCellToFocusWithCtrlPressed(e,t){const o=e===ee.UP,r=e===ee.DOWN,n=e===ee.LEFT;let i,s;const{pageBounds:a,gos:c,visibleCols:d,pinnedRowModel:h}=this.beans,{rowPinned:f}=t;if(o||r)f&&h?o?s=0:s=f==="top"?h.getPinnedTopRowCount()-1:h.getPinnedBottomRowCount()-1:s=o?a.getFirstRow():a.getLastRow(),i=t.column;else{const g=c.get("enableRtl");s=t.rowIndex,i=(n!==g?d.allCols:[...d.allCols].reverse()).find(b=>this.isCellGoodToFocusOn({rowIndex:s,rowPinned:null,column:b}))}return i?{rowIndex:s,rowPinned:f,column:i}:null}getNextCellToFocusWithoutCtrlPressed(e,t){let o=t,r=!1;for(;!r;){switch(e){case ee.UP:o=this.getCellAbove(o);break;case ee.DOWN:o=this.getCellBelow(o);break;case ee.RIGHT:o=this.gos.get("enableRtl")?this.getCellToLeft(o):this.getCellToRight(o);break;case ee.LEFT:o=this.gos.get("enableRtl")?this.getCellToRight(o):this.getCellToLeft(o);break;default:o=null,he(8,{key:e});break}o?r=this.isCellGoodToFocusOn(o):r=!0}return o}isCellGoodToFocusOn(e){const t=e.column;let o;const{pinnedRowModel:r,rowModel:n}=this.beans;switch(e.rowPinned){case"top":o=r?.getPinnedTopRow(e.rowIndex);break;case"bottom":o=r?.getPinnedBottomRow(e.rowIndex);break;default:o=n.getRow(e.rowIndex);break}return o?!this.isSuppressNavigable(t,o):!1}getCellToLeft(e){if(!e)return null;const t=this.beans.visibleCols.getColBefore(e.column);return t?{rowIndex:e.rowIndex,column:t,rowPinned:e.rowPinned}:null}getCellToRight(e){if(!e)return null;const t=this.beans.visibleCols.getColAfter(e.column);return t?{rowIndex:e.rowIndex,column:t,rowPinned:e.rowPinned}:null}getCellBelow(e){if(!e)return null;const t=this.rowSpanSvc?.getCellEnd(e)??e,o=MR(this.beans,t,!0);return o?{rowIndex:o.rowIndex,column:e.column,rowPinned:o.rowPinned}:null}getCellAbove(e){if(!e)return null;const t=this.rowSpanSvc?.getCellStart(e)??e,o=Yh(this.beans,{rowIndex:t.rowIndex,rowPinned:t.rowPinned},!0);return o?{rowIndex:o.rowIndex,column:e.column,rowPinned:o.rowPinned}:null}getNextTabbedCell(e,t){return t?this.getNextTabbedCellBackwards(e):this.getNextTabbedCellForwards(e)}getNextTabbedCellForwards(e){const{visibleCols:t,pagination:o}=this.beans,r=t.allCols;let n=e.rowIndex,i=e.rowPinned,s=t.getColAfter(e.column);if(!s){s=r[0];const a=MR(this.beans,e,!0);if(Ut(a)||!a.rowPinned&&!(o?.isRowInPage(a.rowIndex)??!0))return null;n=a?a.rowIndex:null,i=a?a.rowPinned:null}return{rowIndex:n,column:s,rowPinned:i}}getNextTabbedCellBackwards(e){const{beans:t}=this,{visibleCols:o,pagination:r}=t,n=o.allCols;let i=e.rowIndex,s=e.rowPinned,a=o.getColBefore(e.column);if(!a){a=vt(n);const c=Yh(t,{rowIndex:e.rowIndex,rowPinned:e.rowPinned},!0);if(Ut(c)||!c.rowPinned&&!(r?.isRowInPage(c.rowIndex)??!0))return null;i=c?c.rowIndex:null,s=c?c.rowPinned:null}return{rowIndex:i,column:a,rowPinned:s}}isSuppressNavigable(e,t){const{suppressNavigable:o}=e.colDef;if(typeof o=="boolean")return o;if(typeof o=="function"){const r=e.createColumnFunctionCallbackParams(t);return o(r)}return!1}};function j$(e){return e.focusSvc.getFocusedCell()}function W$(e){return e.focusSvc.clearFocusedCell()}function q$(e,t,o,r){e.focusSvc.setFocusedCell({rowIndex:t,column:o,rowPinned:r,forceBrowserFocus:!0})}function U$(e,t){return e.navigation?.tabToNextCell(!1,t)??!1}function $$(e,t){return e.navigation?.tabToNextCell(!0,t)??!1}function K$(e,t,o=!1){const r=e.headerNavigation?.getHeaderPositionForColumn(t,o);r&&e.focusSvc.focusHeaderPosition({headerPosition:r})}var X$=class extends ue{constructor(){super(...arguments),this.beanName="editModelSvc",this.edits=new Map,this.cellValidations=new fE,this.rowValidations=new pE,this.suspendEdits=!1}suspend(e){this.suspendEdits=e}removeEdits({rowNode:e,column:t}){if(!this.hasEdits({rowNode:e})||!e)return;const o=this.getEditRow(e);t?o.delete(t):o.clear(),o.size===0&&this.edits.delete(e)}getEditRow(e,t={}){if(this.suspendEdits||this.edits.size===0)return;const o=e&&this.edits.get(e);if(o)return o;if(t.checkSiblings){const r=e.pinnedSibling;if(r)return this.getEditRow(r)}}getEditRowDataValue(e,{checkSiblings:t}={}){if(!e||this.edits.size===0)return;const o=this.getEditRow(e),r=e.pinnedSibling,n=t&&r&&this.getEditRow(r);if(!o&&!n)return;const i=Object.assign({},e.data),s=(a,c)=>a.forEach(({pendingValue:d},h)=>{d!==br&&(c[h.getColId()]=d)});return o&&s(o,i),n&&s(n,i),i}getEdit(e,t){const o=this._getEdit(e);return t&&o?{...o}:o}_getEdit(e){if(!this.suspendEdits&&this.edits.size!==0)return e.rowNode&&e.column&&this.getEditRow(e.rowNode)?.get(e.column)}getEditMap(e=!0){if(this.suspendEdits||this.edits.size===0)return new Map;if(!e)return this.edits;const t=new Map;return this.edits.forEach((o,r)=>{const n=new Map;o.forEach(({editorState:i,...s},a)=>n.set(a,{...s})),t.set(r,n)}),t}setEditMap(e){this.edits.clear(),e.forEach((t,o)=>{const r=new Map;t.forEach((n,i)=>r.set(i,{...n})),this.edits.set(o,r)})}setEdit(e,t){(this.edits.size===0||!this.edits.has(e.rowNode))&&this.edits.set(e.rowNode,new Map);const o=this._getEdit(e),r=Object.assign({editorState:{isCancelAfterEnd:void 0,isCancelBeforeStart:void 0},...o,...t});return this.getEditRow(e.rowNode).set(e.column,r),r}clearEditValue(e){const{rowNode:t,column:o}=e;if(t)if(o){const r=this._getEdit(e);r&&(r.editorValue=void 0,r.pendingValue=r.sourceValue,r.state="changed")}else this.getEditRow(t)?.forEach(r=>{r.editorValue=void 0,r.pendingValue=r.sourceValue,r.state="changed"})}getState(e){if(!this.suspendEdits)return this.getEdit(e)?.state}getEditPositions(e){if(this.suspendEdits||(e??this.edits).size===0)return[];const t=[];return(e??this.edits).forEach((o,r)=>{for(const n of o.keys()){const{editorState:i,...s}=o.get(n);t.push({rowNode:r,column:n,...s})}}),t}hasRowEdits(e,t){return this.suspendEdits||this.edits.size===0?!1:!!this.getEditRow(e,t)}hasEdits(e={},t={}){if(this.suspendEdits||this.edits.size===0)return!1;const{rowNode:o,column:r}=e,{withOpenEditor:n}=t;if(o){const i=this.getEditRow(o,t);return i?r?n?this.getEdit(e)?.state==="editing":i.has(r)??!1:i.size!==0?n?Array.from(i.values()).some(({state:s})=>s==="editing"):!0:!1:!1}return n?this.getEditPositions().some(({state:i})=>i==="editing"):this.edits.size>0}start(e){const t=this.getEditRow(e.rowNode)??new Map,{rowNode:o,column:r}=e;r&&!t.has(r)&&t.set(r,{editorValue:void 0,pendingValue:br,sourceValue:this.beans.valueSvc.getValue(r,o,!1,"api"),state:"editing",editorState:{isCancelAfterEnd:void 0,isCancelBeforeStart:void 0}}),this.edits.set(o,t)}stop(e){this.hasEdits(e)&&(e?this.removeEdits(e):this.clear())}clear(){for(const e of this.edits.values())e.clear();this.edits.clear()}getCellValidationModel(){return this.cellValidations}getRowValidationModel(){return this.rowValidations}setCellValidationModel(e){this.cellValidations=e}setRowValidationModel(e){this.rowValidations=e}destroy(){super.destroy(),this.clear()}},fE=class{constructor(){this.cellValidations=new Map}getCellValidation(e){const{rowNode:t,column:o}=e||{};return this.cellValidations?.get(t)?.get(o)}hasCellValidation(e){return!e?.rowNode||!e.column?this.cellValidations.size>0:!!this.getCellValidation(e)}setCellValidation(e,t){const{rowNode:o,column:r}=e;this.cellValidations.has(o)||this.cellValidations.set(o,new Map),this.cellValidations.get(o).set(r,t)}clearCellValidation(e){const{rowNode:t,column:o}=e;this.cellValidations.get(t)?.delete(o)}setCellValidationMap(e){this.cellValidations=e}getCellValidationMap(){return this.cellValidations}clearCellValidationMap(){this.cellValidations.clear()}},pE=class{constructor(){this.rowValidations=new Map}getRowValidation(e){const{rowNode:t}=e||{};return this.rowValidations.get(t)}hasRowValidation(e){return e?.rowNode?!!this.getRowValidation(e):this.rowValidations.size>0}setRowValidation({rowNode:e},t){this.rowValidations.set(e,t)}clearRowValidation({rowNode:e}){this.rowValidations.delete(e)}setRowValidationMap(e){this.rowValidations=e}getRowValidationMap(){return this.rowValidations}clearRowValidationMap(){this.rowValidations.clear()}};function lb(e,t={}){const{rowIndex:o,rowId:r,rowCtrl:n,rowPinned:i}=t;if(n)return n;const{rowModel:s,rowRenderer:a}=e;let{rowNode:c}=t;return c||(r?c=tW(e,r,i):o!=null&&(c=s.getRow(o))),a.getRowCtrls(c?[c]:[])?.[0]}function Pt(e,t={}){const{cellCtrl:o,colId:r,columnId:n,column:i}=t;if(o)return o;const s=e.colModel.getCol(r??n??cb(i)),a=t.rowCtrl??lb(e,t),c=a?.getCellCtrl(s)??void 0;if(c)return c;const d=t.rowNode??a?.rowNode;if(d)return e.rowRenderer.getCellCtrls([d],[s])?.[0]}function gE(e){const{editSvc:t}=e;t?.isBatchEditing()?(Hi(e,{persist:!0}),wl(e)):t?.stopEditing(void 0,{source:"api"})}function Z$(e,t,o){const{gos:r,popupSvc:n}=t;if(!r.get("stopEditingWhenCellsLoseFocus"))return;const i=s=>{const a=s.relatedTarget;if(bv(a)===null){gE(t);return}let c=o.some(d=>d.contains(a))&&r.isElementInThisInstance(a);c||(c=!!n&&(n.getActivePopups().some(d=>d.contains(a))||n.isElementWithinCustomPopup(a))),c||gE(t)};for(const s of o)e.addManagedElementListeners(s,{focusout:i})}function cb(e){if(e)return typeof e=="string"?e:e.getColId()}var br=Symbol("unedited");function mE(e,t={}){const o=[],r=e.rowRenderer.getCellCtrls(t.rowNodes,t.columns);for(const n of r){const i=n.comp?.getCellEditor();i&&o.push({ctrl:n,editor:cv(i)})}return o}var Y$=(e,t={})=>mE(e,t).map(o=>o.editor);function Q$(e,t,o,r,n,i){t.length===0&&o?.rowNode&&o?.column&&vl(e,o,{key:r,event:n,cellStartedEdit:i});const{valueSvc:s,editSvc:a,editModelSvc:c}=e,{rowNode:d,column:h}=o??{};for(const f of t){const{rowNode:g,column:m}=f,b=Pt(e,f);if(!b){if(g&&m){const y=s.getValue(m,g,void 0,"api"),F=(o?.rowNode===g&&o?.column===m&&r||void 0)??a?.getCellDataValue(f,!1)??s.getValueForDisplay({column:m,node:g})?.value??y??br;c?.setEdit(f,{pendingValue:bl(e,F,!1,m),sourceValue:y,state:"editing"})}continue}const w=i&&d===b.rowNode&&b.column===h;vl(e,{rowNode:d,column:b.column},{key:w?r:null,event:w?n:null,cellStartedEdit:w&&i})}}function Pn({pendingValue:e,sourceValue:t}){return e===br&&(e=t),e!==t}function vl(e,t,o){const{key:r,event:n,cellStartedEdit:i,silent:s}=o??{},{editModelSvc:a,editSvc:c,gos:d,userCompFactory:h}=e,f=Pt(e,t),g=f?.comp?.getCellEditor(),m=bE(e,t,r,i&&!s),b=t.column.isAllowFormula(),w=a?.getEdit(t),y=m.value??w?.sourceValue;if(g){a?.setEdit(t,{editorValue:bl(e,y,!0,t.column),state:"editing"}),g.refresh?.(m);return}const k=t.column.getColDef(),C=EF(h,b?{...k,cellEditor:"agTextCellEditor"}:k,m);if(!C)return;const{popupFromSelector:F,popupPositionFromSelector:E}=C,_=F??!!k.cellEditorPopup,P=E??k.cellEditorPopupPosition;if(wE(C.params,n),!f)return;const{rangeFeature:D,rowCtrl:M,comp:A,onEditorAttachedFuncs:O}=f;a?.setEdit(t,{editorValue:bl(e,y,!0,t.column),state:"editing"}),f.editCompDetails=C,O.push(()=>D?.unsetComp()),A?.setEditDetails(C,_,P,d.get("reactiveCustomComponents")),M?.refreshRow({suppressFlash:!0});const K=a?.getEdit(t,!0);!s&&!K?.editorState?.cellStartedEditing&&(c?.dispatchCellEvent(t,n,"cellEditingStarted",{value:y}),a?.setEdit(t,{editorState:{cellStartedEditing:!0}}))}function vE(e,t,o){const r={editorValueExists:!1};if(ub(e)&&(t.getValidationErrors?.()?.length??0)>0||o?.isCancelling)return r;if(o?.isStopping){const i=t?.isCancelAfterEnd?.();if(i)return{...r,isCancelAfterEnd:i}}return{editorValue:t.getValue(),editorValueExists:!0}}function bE(e,t,o,r){const{valueSvc:n,gos:i,editSvc:s}=e,a=e.gos.get("enableGroupEdit"),c=Pt(e,t),d=t.rowNode?.rowIndex??void 0,h=s?.isBatchEditing(),f=e.colModel.getCol(t.column.getId()),{rowNode:g,column:m}=t,b=c.comp?.getCellEditor(),w=s?.getCellDataValue(t,!1),y=w===void 0?b?vE(e,b)?.editorValue:void 0:w,k=y===br?n.getValueForDisplay({column:f,node:g})?.value:y;let C=a?y:k;return m.isAllowFormula()&&e.formula?.isFormula(C)&&(C=e.formula?.normaliseFormula(C,!0)??C),Ze(i,{value:C,eventKey:o??null,column:m,colDef:m.getColDef(),rowIndex:d,node:g,data:g.data,cellStartedEdit:r??!1,onKeyDown:c?.onKeyDown.bind(c),stopEditing:F=>{s.stopEditing(t,{source:h?"ui":"api",suppressNavigateAfterEdit:F}),af(e,t)},eGridCell:c?.eGui,parseValue:F=>n.parseValue(f,g,F,c?.value),formatValue:c?.formatValue.bind(c),validate:()=>{s?.validateEdit()}})}function nf(e,t){const{editModelSvc:o}=e;o?.getEditMap().forEach((r,n)=>{r.forEach((i,s)=>{!t&&(i.state==="editing"||i.pendingValue===br)||!Pn(i)&&(i.state!=="editing"||t)&&o?.removeEdits({rowNode:n,column:s})})})}function J$(e,t){const o=t.comp?.getCellEditor();if(!o?.refresh)return;const{eventKey:r,cellStartedEdit:n}=t.editCompDetails.params,{column:i}=t,s=bE(e,t,r,n),a=i.getColDef(),c=EF(e.userCompFactory,a,s);o.refresh(wE(c.params,r))}function wE(e,t){return t instanceof KeyboardEvent&&e.column.getColDef().cellEditor==="agNumberCellEditor"?e.suppressPreventDefault=["-","+",".","e"].includes(t?.key??"")||e.suppressPreventDefault:t?.preventDefault?.(),e}function Hi(e,t){for(const o of e.editModelSvc?.getEditPositions()??[]){const r=Pt(e,o);if(!r)continue;const n=r.comp?.getCellEditor();if(!n)continue;const{editorValue:i,editorValueExists:s,isCancelAfterEnd:a}=vE(e,n,t);a&&e.editModelSvc?.setEdit(o,{editorState:{isCancelAfterEnd:a}}),sf(e,o,i,void 0,!s,t)}}function sf(e,t,o,r,n,i){const{editModelSvc:s,valueSvc:a}=e;if(!s)return;const{rowNode:c,column:d}=t;if(!(c&&d))return;let h=s.getEdit(t,!0);if(!h?.sourceValue){const f={sourceValue:a.getValue(d,c,void 0,"api"),pendingValue:h?bl(e,h.editorValue,!1,d):br};i?.persist&&(f.state="changed"),h=s.setEdit(t,f)}s.setEdit(t,{editorValue:n?bl(e,h.sourceValue,!0,d):o}),i?.persist&&eK(e,t)}function bl(e,t,o,r){const{formula:n}=e;return r.isAllowFormula()&&n?.isFormula(t)?n?.normaliseFormula(t,o)??t:t}function eK(e,t){const{editModelSvc:o}=e,r=o?.getEdit(t,!0);o?.setEdit(t,{pendingValue:bl(e,r?.editorValue,!1,t.column)})}function wl(e,t,o){t||(t=e.editModelSvc?.getEditPositions());for(const r of t??[])af(e,r,o)}function af(e,t,o){const r=e.gos.get("enableGroupEdit"),{editModelSvc:n}=e,i=Pt(e,t),s=n?.getEdit(t,!0);if(!i){s&&n?.setEdit(t,{state:"changed"});return}const{comp:a}=i;if(a&&!a.getCellEditor()){if(i?.refreshCell(),s){n?.setEdit(t,{state:"changed"});const d=r?CE(o,s):{valueChanged:!1,newValue:void 0,oldValue:s.sourceValue};yE(e,t,d,o)}return}if(ub(e)){const d=a?.getCellEditor()?.getValidationErrors?.(),h=n?.getCellValidationModel();d?.length?h?.setCellValidation(t,{errorMessages:d}):h?.clearCellValidation(t)}n?.setEdit(t,{state:"changed"}),a?.setEditDetails(),a?.refreshEditStyles(!1,!1),i?.refreshCell({force:!0,suppressFlash:!0});const c=n?.getEdit(t);if(c&&c.state==="changed"){const d=r?CE(o,c):{valueChanged:Pn(c)&&!o?.cancel,newValue:o?.cancel||c.editorState.isCancelAfterEnd?void 0:c?.editorValue??s?.pendingValue,oldValue:c?.sourceValue};yE(e,t,d,o)}}function CE(e,t){return e?.cancel?{valueChanged:!1,oldValue:t.sourceValue,newValue:void 0,value:t.sourceValue}:{valueChanged:Pn(t),oldValue:t.sourceValue,newValue:t.pendingValue,value:t.sourceValue}}function yE(e,t,o,{silent:r,event:n}={}){const{editSvc:i,editModelSvc:s}=e,a=s?.getEdit(t),{editorState:c}=a||{},{isCancelBeforeStart:d}=c||{};!r&&!d&&(i?.dispatchCellEvent(t,n,"cellEditingStopped",o),s?.setEdit(t,{editorState:{cellStoppedEditing:!0}}))}function ub(e){const{gos:t,colModel:o}=e,r=!!t.get("getFullRowEditValidationErrors"),n=o.getColumnDefs()?.filter(s=>s.editable).some(({cellEditorParams:s})=>{const{minLength:a,maxLength:c,getValidationErrors:d,min:h,max:f}=s||{};return a!==void 0||c!==void 0||d!==void 0||h!==void 0||f!==void 0}),i=e.gridApi.getCellEditorInstances().some(s=>s.getValidationElement||s.getValidationErrors);return n||r||i}function $s(e,t){if(!(t||ub(e)))return;const o=mE(e),r=new fE,{ariaAnnounce:n,localeSvc:i,editModelSvc:s,gos:a}=e,c=a.get("editType")==="fullRow",h=Ik(i)("ariaValidationErrorPrefix","Cell Editor Validation");for(const g of o){const{ctrl:m,editor:b}=g,{rowNode:w,column:y}=m,k=b.getValidationErrors?.()??[],C=b.getValidationElement?.(!1)||!b.isPopup?.()&&m.eGui;if(C){const F=k!=null&&k.length>0,E=F?k.join(". "):"";Ck(C,F),F&&n.announceValue(`${h} ${k}`,"editorValidation"),C instanceof HTMLInputElement?C.setCustomValidity(E):C.classList.toggle("invalid",F)}k?.length>0&&r.setCellValidation({rowNode:w,column:y},{errorMessages:k})}Hi(e,{persist:!1}),s?.setCellValidationModel(r);const f=new Set;for(const{ctrl:g}of o)f.add(g.rowCtrl);if(c){const g=tK(e);s?.setRowValidationModel(g)}for(const g of f.values()){g.rowEditStyleFeature?.applyRowStyles();for(const m of g.getAllCellCtrls())m.tooltipFeature?.refreshTooltip(!0),m.editorTooltipFeature?.refreshTooltip(!0),m.editStyleFeature?.applyCellStyles?.()}}var tK=e=>{const t=new pE,o=e.gos.get("getFullRowEditValidationErrors"),r=e.editModelSvc?.getEditMap();if(!r)return t;for(const n of r.keys()){const i=r.get(n);if(!i)continue;const s=[],{rowIndex:a,rowPinned:c}=n;for(const h of i.keys()){const f=i.get(h);if(!f)continue;const{editorValue:g,pendingValue:m,sourceValue:b}=f,w=g??(m===br?void 0:m)??b;s.push({column:h,colId:h.getColId(),rowIndex:a,rowPinned:c,oldValue:b,newValue:w})}const d=o?.({editorsState:s})??[];d.length>0&&t.setRowValidation({rowNode:n},{errorMessages:d})}return t};function oK(e){$s(e,!0);const t=e.editModelSvc?.getCellValidationModel().getCellValidationMap();if(!t)return null;const o=[];return t.forEach((r,n)=>{r.forEach(({errorMessages:i},s)=>{o.push({column:s,rowIndex:n.rowIndex,rowPinned:n.rowPinned,messages:i??null})})}),o}function rK(e,t,o,{rowNode:r,column:n},i){return Ze(e.gos,{type:o,node:r,data:r.data,value:i,column:n,colDef:n.getColDef(),rowPinned:r.rowPinned,event:t,rowIndex:r.rowIndex})}function nK(e,t=!1){return e===ee.DELETE?!0:!t&&e===ee.BACKSPACE?TF():!1}var iK=class extends ue{constructor(e,t,o,r){super(),this.cellCtrl=e,this.rowNode=o,this.rowCtrl=r,this.beans=t}init(){this.eGui=this.cellCtrl.eGui}onKeyDown(e){const t=e.key;switch(t){case ee.ENTER:this.onEnterKeyDown(e);break;case ee.F2:this.onF2KeyDown(e);break;case ee.ESCAPE:this.onEscapeKeyDown(e);break;case ee.TAB:this.onTabKeyDown(e);break;case ee.BACKSPACE:case ee.DELETE:this.onBackspaceOrDeleteKeyDown(t,e);break;case ee.DOWN:case ee.UP:case ee.RIGHT:case ee.LEFT:this.onNavigationKeyDown(e,t);break}}onNavigationKeyDown(e,t){const{cellCtrl:o,beans:r}=this;if(!r.editSvc?.isEditing(o,{withOpenEditor:!0})){if(e.shiftKey&&o.isRangeSelectionEnabled())this.onShiftRangeSelect(e);else{const n=o.getFocusedCellPosition();r.navigation?.navigateToNextCell(e,t,n,!0)}e.preventDefault()}}onShiftRangeSelect(e){const{rangeSvc:t,navigation:o}=this.beans;if(!t)return;const r=t.extendLatestRangeInDirection(e);r&&(e.key===ee.LEFT||e.key===ee.RIGHT?o?.ensureColumnVisible(r.column):o?.ensureRowVisible(r.rowIndex))}onTabKeyDown(e){this.beans.navigation?.onTabKeyDown(this.cellCtrl,e)}onBackspaceOrDeleteKeyDown(e,t){const{cellCtrl:o,beans:r,rowNode:n}=this,{gos:i,rangeSvc:s,eventSvc:a,editSvc:c}=r;if(a.dispatchEvent({type:"keyShortcutChangedCellStart"}),nK(e,i.get("enableCellEditingOnBackspace"))&&!c?.isEditing(o,{withOpenEditor:!0})){if(s&&zc(i))s.clearCellRangeCellValues({dispatchWrapperEvents:!0,wrapperEventSource:"deleteKey"});else if(o.isCellEditable()){const{column:d}=o,h=this.beans.valueSvc.getDeleteValue(d,n);n.setDataValue(d,h,"cellClear")}}else c?.isEditing(o,{withOpenEditor:!0})||r.editSvc?.startEditing(o,{startedEdit:!0,event:t});a.dispatchEvent({type:"keyShortcutChangedCellEnd"})}onEnterKeyDown(e){const{cellCtrl:t,beans:o}=this,{editSvc:r,navigation:n}=o,i=r?.isEditing(t,{withOpenEditor:!0}),s=t.rowNode,a=r?.isRowEditing(s,{withOpenEditor:!0}),c=d=>{r?.startEditing(d,{startedEdit:!0,event:e,source:"edit"})&&e.preventDefault()};if(i||a){if(this.isCtrlEnter(e)){r?.applyBulkEdit(t,o?.rangeSvc?.getCellRanges()||[]);return}if($s(o),r?.checkNavWithValidation(void 0,e)==="block-stop")return;r?.isEditing(t,{withOpenEditor:!0})?r?.stopEditing(t,{event:e,source:"edit"}):a&&!t.isCellEditable()?r?.stopEditing({rowNode:s},{event:e,source:"edit"}):c(t)}else if(o.gos.get("enterNavigatesVertically")){const d=e.shiftKey?ee.UP:ee.DOWN;n?.navigateToNextCell(null,d,t.cellPosition,!1)}else{if(r?.hasValidationErrors())return;r?.hasValidationErrors(t)&&r.revertSingleCellEdit(t,!0),c(t)}}isCtrlEnter(e){return(e.ctrlKey||e.metaKey)&&e.key===ee.ENTER}onF2KeyDown(e){const{cellCtrl:t,beans:{editSvc:o}}=this;o?.isEditing()&&($s(this.beans),o?.checkNavWithValidation(void 0,e)==="block-stop")||o?.startEditing(t,{startedEdit:!0,event:e})}onEscapeKeyDown(e){const{cellCtrl:t,beans:{editSvc:o}}=this;o?.checkNavWithValidation(t,e)==="block-stop"&&o.revertSingleCellEdit(t),setTimeout(()=>{o?.stopEditing(t,{event:e,cancel:!0})})}processCharacter(e){const o=e.target!==this.eGui,{beans:{editSvc:r},cellCtrl:n}=this;if(o||r?.isEditing(n,{withOpenEditor:!0}))return;if(e.key===ee.SPACE)this.onSpaceKeyDown(e);else if(r?.isCellEditable(n,"ui")){if(r?.hasValidationErrors()&&!r?.hasValidationErrors(n))return;r?.startEditing(n,{startedEdit:!0,event:e,source:"api"}),!n.editCompDetails?.params?.suppressPreventDefault&&e.preventDefault()}}onSpaceKeyDown(e){const{gos:t,editSvc:o}=this.beans,{rowNode:r}=this.cellCtrl;!o?.isEditing(this.cellCtrl,{withOpenEditor:!0})&&Os(t)&&this.beans.selectionSvc?.handleSelectionEvent(e,r,"spaceKey"),e.preventDefault()}},sK=class extends ue{constructor(e,t,o){super(),this.cellCtrl=e,this.column=o,this.beans=t}onMouseEvent(e,t){if(!oi(t))switch(e){case"click":this.onCellClicked(t);break;case"mousedown":case"touchstart":this.onMouseDown(t);break;case"dblclick":this.onCellDoubleClicked(t);break;case"mouseout":this.onMouseOut(t);break;case"mouseover":this.onMouseOver(t);break}}onCellClicked(e){if(this.beans.touchSvc?.handleCellDoubleClick(this,e))return;const{eventSvc:t,rangeSvc:o,editSvc:r,editModelSvc:n,frameworkOverrides:i,gos:s}=this.beans,a=e.ctrlKey||e.metaKey,{cellCtrl:c}=this,{column:d,cellPosition:h,rowNode:f}=c,g=Gh(s,d,f,e);o&&a&&!g&&o.getCellRangeCount(h)>1&&o.intersectLastRange(!0);const m=c.createEvent(e,"cellClicked");m.isEventHandlingSuppressed=g,t.dispatchEvent(m);const b=d.getColDef();if(b.onCellClicked&&window.setTimeout(()=>{i.wrapOutgoing(()=>{b.onCellClicked(m)})},0),!g&&n?.getState(c)!=="editing"){const w=r?.isEditing(),y=n?.getCellValidationModel().getCellValidationMap().size??0,k=n?.getRowValidationModel().getRowValidationMap().size??0;if(w&&(y>0||k>0))return;r?.shouldStartEditing(c,e)?r?.startEditing(c,{event:e}):r?.shouldStopEditing(c,e)&&(this.beans.gos.get("editType")==="fullRow"?r?.stopEditing(c,{event:e,source:"edit"}):r?.stopEditing(void 0,{event:e,source:"edit"}))}}onCellDoubleClicked(e){const{column:t,beans:o,cellCtrl:r}=this,{eventSvc:n,frameworkOverrides:i,editSvc:s,editModelSvc:a,gos:c}=o,d=Gh(c,r.column,r.rowNode,e),h=t.getColDef(),f=r.createEvent(e,"cellDoubleClicked");if(f.isEventHandlingSuppressed=d,n.dispatchEvent(f),typeof h.onCellDoubleClicked=="function"&&window.setTimeout(()=>{i.wrapOutgoing(()=>{h.onCellDoubleClicked(f)})},0),!d&&s?.shouldStartEditing(r,e)&&a?.getState(r)!=="editing"){const g=s?.isEditing(),m=a?.getCellValidationModel().getCellValidationMap().size??0,b=a?.getRowValidationModel().getRowValidationMap().size??0;if(g&&(m>0||b>0))return;s?.startEditing(r,{event:e})}}onMouseDown(e){const{shiftKey:t}=e,o=e.target,{cellCtrl:r,beans:n}=this,{eventSvc:i,rangeSvc:s,rowNumbersSvc:a,focusSvc:c,gos:d,editSvc:h}=n,{column:f,rowNode:g,cellPosition:m}=r,b=Gh(d,f,g,e),w=()=>{const F=r.createEvent(e,"cellMouseDown");F.isEventHandlingSuppressed=b,i.dispatchEvent(F)};if(b){w();return}if(this.isRightClickInExistingRange(e))return;const y=s&&!s.isEmpty(),k=this.containsWidget(o),C=rl(f);if(!(a&&C&&!a.handleMouseDownOnCell(m,e))){if(!t||!y){const F=h?.isEditing(r),_=d.get("enableCellTextSelection")&&e.defaultPrevented,P=(qc()||_)&&!F&&!Mc(o)&&!k;r.focusCell(P,e)}if(t&&y&&!c.isCellFocused(m)){e.preventDefault();const F=c.getFocusedCell();if(F){const{column:E,rowIndex:_,rowPinned:P}=F;h?.isEditing(F)&&h?.stopEditing(F),c.setFocusedCell({column:E,rowIndex:_,rowPinned:P,forceBrowserFocus:!0,preventScrollOnBrowserFocus:!0,sourceEvent:e})}}k||(s?.handleCellMouseDown(e,m),w())}}isRightClickInExistingRange(e){const{rangeSvc:t}=this.beans;if(t){const o=t.isCellInAnyRange(this.cellCtrl.cellPosition),r=F7(this.beans,e);if(o&&r)return!0}return!1}containsWidget(e){return As(e,"ag-selection-checkbox",3)||As(e,"ag-drag-handle",3)}onMouseOut(e){if(this.mouseStayingInsideCell(e))return;const{eventSvc:t,colHover:o}=this.beans;t.dispatchEvent(this.cellCtrl.createEvent(e,"cellMouseOut")),o?.clearMouseOver()}onMouseOver(e){if(this.mouseStayingInsideCell(e))return;const{eventSvc:t,colHover:o}=this.beans;t.dispatchEvent(this.cellCtrl.createEvent(e,"cellMouseOver")),o?.setMouseOver([this.column])}mouseStayingInsideCell(e){if(!e.target||!e.relatedTarget)return!1;const t=this.cellCtrl.eGui,o=t.contains(e.target),r=t.contains(e.relatedTarget);return o&&r}},aK=class extends ue{constructor(e,t){super(),this.cellCtrl=e,this.beans=t,this.column=e.column,this.rowNode=e.rowNode}setupRowSpan(){this.rowSpan=this.column.getRowSpan(this.rowNode),this.addManagedListeners(this.beans.eventSvc,{newColumnsLoaded:()=>this.onNewColumnsLoaded()})}init(){this.eSetLeft=this.cellCtrl.getRootElement(),this.eContent=this.cellCtrl.eGui;const e=this.cellCtrl.getCellSpan();if(e||(this.setupColSpan(),this.setupRowSpan()),this.onLeftChanged(),this.onWidthChanged(),e||this._legacyApplyRowSpan(),e){const t=this.refreshSpanHeight.bind(this,e);t(),this.addManagedListeners(this.beans.eventSvc,{paginationChanged:t,recalculateRowBounds:t,pinnedHeightChanged:t})}}refreshSpanHeight(e){const t=e.getCellHeight();t!=null&&(this.eContent.style.height=`${t}px`)}onNewColumnsLoaded(){const e=this.column.getRowSpan(this.rowNode);this.rowSpan!==e&&(this.rowSpan=e,this._legacyApplyRowSpan(!0))}onDisplayColumnsChanged(){const e=this.getColSpanningList();el(this.colsSpanning,e)||(this.colsSpanning=e,this.onWidthChanged(),this.onLeftChanged())}setupColSpan(){this.column.getColDef().colSpan!=null&&(this.colsSpanning=this.getColSpanningList(),this.addManagedListeners(this.beans.eventSvc,{displayedColumnsChanged:this.onDisplayColumnsChanged.bind(this),displayedColumnsWidthChanged:this.onWidthChanged.bind(this)}))}onWidthChanged(){if(!this.eContent)return;const e=this.getCellWidth();this.eContent.style.width=`${e}px`}getCellWidth(){return this.colsSpanning?this.colsSpanning.reduce((e,t)=>e+t.getActualWidth(),0):this.column.getActualWidth()}getColSpanningList(){const{column:e,rowNode:t}=this,o=e.getColSpan(t),r=[];if(o===1)r.push(e);else{let n=e;const i=e.getPinned();for(let s=0;n&&s<o&&(r.push(n),n=this.beans.visibleCols.getColAfter(n),!(!n||Ut(n)||i!==n.getPinned()));s++);}return r}onLeftChanged(){if(!this.eSetLeft)return;const e=this.modifyLeftForPrintLayout(this.getCellLeft());this.eSetLeft.style.left=e+"px"}getCellLeft(){let e;return this.beans.gos.get("enableRtl")&&this.colsSpanning?e=vt(this.colsSpanning):e=this.column,e.getLeft()}modifyLeftForPrintLayout(e){if(!this.cellCtrl.printLayout||this.column.getPinned()==="left")return e;const{visibleCols:t}=this.beans,o=t.getColsLeftWidth();if(this.column.getPinned()==="right"){const r=t.bodyWidth;return o+r+(e||0)}return o+(e||0)}_legacyApplyRowSpan(e){if(this.rowSpan===1&&!e)return;const o=Qk(this.beans)*this.rowSpan;this.eContent.style.height=`${o}px`,this.eContent.style.zIndex="1"}destroy(){super.destroy()}},lK="ag-cell",cK="ag-cell-auto-height",uK="ag-cell-normal-height",dK="ag-cell-focus",hK="ag-cell-first-right-pinned",fK="ag-cell-last-left-pinned",pK="ag-cell-not-inline-editing",gK="ag-cell-wrap-text",mK=0,Jc=class extends ue{constructor(e,t,o,r){super(),this.column=e,this.rowNode=t,this.rowCtrl=r,this.rangeFeature=void 0,this.rowResizeFeature=void 0,this.positionFeature=void 0,this.customStyleFeature=void 0,this.editStyleFeature=void 0,this.mouseListener=void 0,this.keyboardListener=void 0,this.suppressRefreshCell=!1,this.onCompAttachedFuncs=[],this.onEditorAttachedFuncs=[],this.focusEventWhileNotReady=null,this.hasBeenFocused=!1,this.hasEdit=!1,this.tooltipFeature=void 0,this.editorTooltipFeature=void 0,this.formulaTooltipFeature=void 0,this.beans=o,this.gos=o.gos,this.editSvc=o.editSvc,this.hasEdit=!!o.editSvc;const{colId:n}=e;this.instanceId=n+"-"+mK++,this.createCellPosition(),this.updateAndFormatValue(!1)}addFeatures(){const{beans:e}=this;this.positionFeature=new aK(this,e),this.customStyleFeature=e.cellStyles?.createCellCustomStyleFeature(this),this.editStyleFeature=e.editSvc?.createCellStyleFeature(this),this.mouseListener=new sK(this,e,this.column),this.keyboardListener=new iK(this,e,this.rowNode,this.rowCtrl),this.enableTooltipFeature(),this.enableFormulaTooltipFeature();const{rangeSvc:t}=e;t&&zc(e.gos)&&(this.rangeFeature=t.createCellRangeFeature(this)),rl(this.column)&&(this.rowResizeFeature=this.beans.rowNumbersSvc.createRowNumbersRowResizerFeature(this))}isCellSpanning(){return!1}getCellSpan(){}removeFeatures(){const e=this.beans.context;this.positionFeature=e.destroyBean(this.positionFeature),this.editorTooltipFeature=e.destroyBean(this.editorTooltipFeature),this.customStyleFeature=e.destroyBean(this.customStyleFeature),this.editStyleFeature=e.destroyBean(this.editStyleFeature),this.mouseListener=e.destroyBean(this.mouseListener),this.keyboardListener=e.destroyBean(this.keyboardListener),this.rangeFeature=e.destroyBean(this.rangeFeature),this.rowResizeFeature=e.destroyBean(this.rowResizeFeature),this.disableTooltipFeature(),this.disableFormulaTooltipFeature()}enableTooltipFeature(e,t){this.tooltipFeature=this.beans.tooltipSvc?.enableCellTooltipFeature(this,e,t)}enableFormulaTooltipFeature(){this.formulaTooltipFeature=this.beans.tooltipSvc?.setupFormulaTooltip(this)}disableTooltipFeature(){this.tooltipFeature=this.beans.context.destroyBean(this.tooltipFeature)}disableFormulaTooltipFeature(){this.formulaTooltipFeature=this.beans.context.destroyBean(this.formulaTooltipFeature)}enableEditorTooltipFeature(e){this.editorTooltipFeature&&this.disableEditorTooltipFeature(),this.editorTooltipFeature=this.beans.tooltipSvc?.setupCellEditorTooltip(this,e),$s(this.beans)}disableEditorTooltipFeature(){this.editorTooltipFeature=this.beans.context.destroyBean(this.editorTooltipFeature)}setComp(e,t,o,r,n,i,s){if(this.comp=e,this.eGui=t,this.printLayout=n,s??(s=this),this.addDomData(s),this.addFeatures(),s.addDestroyFunc(()=>this.removeFeatures()),this.onSuppressCellFocusChanged(this.beans.gos.get("suppressCellFocus")),this.setupFocus(),this.applyStaticCssClasses(),this.setWrapText(),this.onFirstRightPinnedChanged(),this.onLastLeftPinnedChanged(),this.onColumnHover(),this.setupControlComps(),this.setupAutoHeight(r,s),this.refreshFirstAndLastStyles(),this.checkFormulaError(),this.refreshAriaColIndex(),this.positionFeature?.init(),this.customStyleFeature?.setComp(e),this.editStyleFeature?.setComp(e),this.tooltipFeature?.refreshTooltip(),this.keyboardListener?.init(),this.rangeFeature?.setComp(e),this.rowResizeFeature?.refreshRowResizer(),i&&this.isCellEditable()||this.hasEdit&&this.editSvc?.isEditing(this,{withOpenEditor:!0})?this.editSvc?.startEditing(this,{startedEdit:!1,source:"api",silent:!0,continueEditing:!0}):this.showValue(!1,!0),this.onCompAttachedFuncs.length){for(const a of this.onCompAttachedFuncs)a();this.onCompAttachedFuncs=[]}}checkFormulaError(){const e=!!this.beans.formula?.getFormulaError(this.column,this.rowNode);this.eGui.classList.toggle("formula-error",e),this.formulaTooltipFeature?.refreshTooltip(),e?this.disableTooltipFeature():this.enableTooltipFeature()}setupAutoHeight(e,t){this.isAutoHeight=this.beans.rowAutoHeight?.setupCellAutoHeight(this,e,t)??!1}getCellAriaRole(){return this.column.getColDef().cellAriaRole??"gridcell"}isCellRenderer(){const e=this.column.getColDef();return e.cellRenderer!=null||e.cellRendererSelector!=null}getValueToDisplay(){return this.valueFormatted??this.value}getDeferLoadingCellRenderer(){const{beans:e,column:t}=this,{userCompFactory:o,ctrlsSvc:r,eventSvc:n}=e,i=t.getColDef(),s=this.createCellRendererParams();s.deferRender=!0;const a=RF(o,i,s);if(r.getGridBodyCtrl()?.scrollFeature?.isScrolling()){let c;const d=new Ye(f=>{c=f}),[h]=this.addManagedListeners(n,{bodyScrollEnd:()=>{c(),h()}});return{loadingComp:a,onReady:d}}return{loadingComp:a,onReady:Ye.resolve()}}showValue(e,t){const{beans:o,column:r,rowNode:n,rangeFeature:i}=this,{userCompFactory:s}=o;let a=this.getValueToDisplay(),c;const d=n.stub&&n.groupData?.[r.getId()]==null,h=r.getColDef();if(d||this.isCellRenderer()){const f=this.createCellRendererParams();!d||rl(r)?c=FF(s,h,f):c=RF(s,h,f)}if(!c&&!d&&o.findSvc?.isMatch(n,r)){const f=this.createCellRendererParams();c=FF(s,{...r.getColDef(),cellRenderer:"agFindCellRenderer"},f)}if(this.hasEdit&&this.editSvc.isBatchEditing()&&this.editSvc.isRowEditing(n,{checkSiblings:!0})){const f=this.editSvc.prepDetailsDuringBatch(this,{compDetails:c,valueToDisplay:a});f&&(f.compDetails?c=f.compDetails:f.valueToDisplay&&(a=f.valueToDisplay))}this.comp.setRenderDetails(c,a,e),this.customRowDragComp?.refreshVisibility(),!t&&i&&Yn(o,()=>i?.refreshHandle()),this.rowResizeFeature?.refreshRowResizer()}setupControlComps(){const e=this.column.getColDef();this.includeSelection=this.isIncludeControl(this.isCheckboxSelection(e),!0),this.includeRowDrag=this.isIncludeControl(e.rowDrag),this.includeDndSource=this.isIncludeControl(e.dndSource),this.comp.setIncludeSelection(this.includeSelection),this.comp.setIncludeDndSource(this.includeDndSource),this.comp.setIncludeRowDrag(this.includeRowDrag)}isForceWrapper(){return this.beans.gos.get("enableCellTextSelection")||this.column.isAutoHeight()}getCellValueClass(){const e="ag-cell-value",t=this.column.getColDef().cellRenderer==="agCheckboxCellRenderer";let o="";return t&&(o=" ag-allow-overflow"),`${e}${o}`}isIncludeControl(e,t=!1){return(this.rowNode.rowPinned==null||t&&Yc(this.rowNode))&&!!e}isCheckboxSelection(e){const{rowSelection:t,groupDisplayType:o}=this.beans.gridOptions,r=Ch(t),n=ol(this.column);return o==="custom"&&r!=="selectionColumn"&&n?!1:e.checkboxSelection||n&&typeof t=="object"&&Ya(t)}refreshShouldDestroy(){const e=this.column.getColDef(),t=this.includeSelection!=this.isIncludeControl(this.isCheckboxSelection(e),!0),o=this.includeRowDrag!=this.isIncludeControl(e.rowDrag),r=this.includeDndSource!=this.isIncludeControl(e.dndSource),n=this.isAutoHeight!=this.column.isAutoHeight();return t||o||r||n}onPopupEditorClosed(){const{editSvc:e}=this.beans;e?.isEditing(this,{withOpenEditor:!0})&&e?.stopEditing(this,{source:e?.isBatchEditing()?"ui":"api"})}stopEditing(e=!1){const{editSvc:t}=this.beans;return t?.stopEditing(this,{cancel:e,source:t?.isBatchEditing()?"ui":"api"})??!1}createCellRendererParams(){const{value:e,valueFormatted:t,column:o,rowNode:r,comp:n,eGui:i,beans:{valueSvc:s,gos:a,editSvc:c}}=this;return Ze(a,{value:e,valueFormatted:t,getValue:()=>s.getValueForDisplay({column:o,node:r}).value,setValue:h=>c?.setDataValue({rowNode:r,column:o},h)||r.setDataValue(o,h),formatValue:this.formatValue.bind(this),data:r.data,node:r,pinned:o.getPinned(),colDef:o.getColDef(),column:o,refreshCell:this.refreshCell.bind(this),eGridCell:i,eParentOfValue:n.getParentOfValue(),registerRowDragger:(h,f,g,m)=>this.registerRowDragger(h,f,m),setTooltip:(h,f)=>{a.assertModuleRegistered("Tooltip",3),this.tooltipFeature&&this.disableTooltipFeature(),this.enableTooltipFeature(h,f),this.tooltipFeature?.refreshTooltip()}})}onCellChanged(e){e.column===this.column&&this.refreshCell({})}refreshOrDestroyCell(e){if(this.refreshShouldDestroy()?this.rowCtrl?.recreateCell(this):this.refreshCell(e),this.hasEdit&&this.editCompDetails){const{editSvc:t,comp:o}=this;!o?.getCellEditor()&&t.isEditing(this,{withOpenEditor:!0})&&t.startEditing(this,{startedEdit:!1,source:"api",silent:!0})}}refreshCell({force:e,suppressFlash:t,newData:o}={}){const{editStyleFeature:r,customStyleFeature:n,rowCtrl:{rowEditStyleFeature:i},beans:{cellFlashSvc:s,filterManager:a},column:c,comp:d,suppressRefreshCell:h,tooltipFeature:f}=this;if(h)return;const{field:g,valueGetter:m,showRowGroup:b,enableCellChangeFlash:w}=c.getColDef(),y=g==null&&m==null&&b==null,k=e||y||o,C=!!d,F=this.updateAndFormatValue(C),E=k||F;if(C){if(E){this.showValue(!!o,!1);const _=a?.isSuppressFlashingCellsBecauseFiltering();!t&&!_&&w&&s?.flashCell(this),r?.applyCellStyles?.(),n?.applyUserStyles(),n?.applyClassesFromColDef(),i?.applyRowStyles(),this.checkFormulaError()}f?.refreshTooltip(),n?.applyCellClassRules()}}isCellEditable(){return this.column.isCellEditable(this.rowNode)}formatValue(e){return this.callValueFormatter(e)??e}callValueFormatter(e){return this.beans.valueSvc.formatValue(this.column,this.rowNode,e)}updateAndFormatValue(e){const t=this.value,o=this.valueFormatted,{value:r,valueFormatted:n}=this.beans.valueSvc.getValueForDisplay({column:this.column,node:this.rowNode,includeValueFormatted:!0});return this.value=r,this.valueFormatted=n,e?!this.valuesAreEqual(t,this.value)||this.valueFormatted!=o:!0}valuesAreEqual(e,t){const o=this.column.getColDef();return o.equals?o.equals(e,t):e===t}addDomData(e){const t=this.eGui;Ns(this.beans.gos,t,jh,this),e.addDestroyFunc(()=>Ns(this.beans.gos,t,jh,null))}createEvent(e,t){const{rowNode:o,column:r,value:n,beans:i}=this;return rK(i,e,t,{rowNode:o,column:r},n)}processCharacter(e){this.keyboardListener?.processCharacter(e)}onKeyDown(e){this.keyboardListener?.onKeyDown(e)}onMouseEvent(e,t){this.mouseListener?.onMouseEvent(e,t)}getColSpanningList(){return this.positionFeature?.getColSpanningList()??[]}onLeftChanged(){this.comp&&this.positionFeature?.onLeftChanged()}onDisplayedColumnsChanged(){this.eGui&&(this.refreshAriaColIndex(),this.refreshFirstAndLastStyles())}refreshFirstAndLastStyles(){const{comp:e,column:t,beans:o}=this;DR(e,t,o.visibleCols)}refreshAriaColIndex(){const e=this.beans.visibleCols.getAriaColIndex(this.column);Sk(this.eGui,e)}onWidthChanged(){return this.positionFeature?.onWidthChanged()}getRowPosition(){const{rowIndex:e,rowPinned:t}=this.cellPosition;return{rowIndex:e,rowPinned:t}}updateRangeBordersIfRangeCount(){this.comp&&this.rangeFeature?.updateRangeBordersIfRangeCount()}onCellSelectionChanged(){this.comp&&this.rangeFeature?.onCellSelectionChanged()}isRangeSelectionEnabled(){return this.rangeFeature!=null}focusCell(e=!1,t){const o=this.editSvc?.allowedFocusTargetOnValidation(this);o&&o!==this||this.beans.focusSvc.setFocusedCell({...this.getFocusedCellPosition(),forceBrowserFocus:e,sourceEvent:t})}restoreFocus(e=!1){const{beans:{editSvc:t,focusSvc:o},comp:r}=this;if(!r||t?.isEditing(this)||!this.isCellFocused()||!o.shouldTakeFocus())return;const n=()=>{if(!this.isAlive())return;const i=r.getFocusableElement();this.isCellFocused()&&i.focus({preventScroll:!0})};if(e){setTimeout(n,0);return}n()}onRowIndexChanged(){this.createCellPosition(),this.onCellFocused(),this.restoreFocus(),this.rangeFeature?.onCellSelectionChanged(),this.rowResizeFeature?.refreshRowResizer()}onSuppressCellFocusChanged(e){const t=this.eGui;t&&(rl(this.column)&&(e=!0),Wr(t,"tabindex",e?void 0:-1))}onFirstRightPinnedChanged(){if(!this.comp)return;const e=this.column.isFirstRightPinned();this.comp.toggleCss(hK,e)}onLastLeftPinnedChanged(){if(!this.comp)return;const e=this.column.isLastLeftPinned();this.comp.toggleCss(fK,e)}checkCellFocused(){return this.beans.focusSvc.isCellFocused(this.cellPosition)}isCellFocused(){const e=this.checkCellFocused();return this.hasBeenFocused||(this.hasBeenFocused=e),e}setupFocus(){this.restoreFocus(!0),this.onCellFocused(this.focusEventWhileNotReady??void 0)}onCellFocused(e){const{beans:t}=this;if(Uv(t))return;if(!this.comp){e&&(this.focusEventWhileNotReady=e);return}const o=this.isCellFocused(),r=t.editSvc?.isEditing(this)??!1;if(this.comp.toggleCss(dK,o),o&&e?.forceBrowserFocus){let n=this.comp.getFocusableElement();if(r){const i=sl(n,null,!0);i.length&&(n=i[0])}n.focus({preventScroll:!!e.preventScrollOnBrowserFocus})}o&&e&&this.rowCtrl.announceDescription()}createCellPosition(){const{rowIndex:e,rowPinned:t}=this.rowNode;this.cellPosition={rowIndex:e,rowPinned:Pi(t),column:this.column}}applyStaticCssClasses(){const{comp:e}=this;e.toggleCss(lK,!0),e.toggleCss(pK,!0);const t=this.column.isAutoHeight()==!0;e.toggleCss(cK,t),e.toggleCss(uK,!t)}onColumnHover(){this.beans.colHover?.onCellColumnHover(this.column,this.comp)}onColDefChanged(){this.comp&&(this.column.isTooltipEnabled()?(this.disableTooltipFeature(),this.enableTooltipFeature()):this.disableTooltipFeature(),this.setWrapText(),this.editSvc?.isEditing(this)?this.editSvc?.handleColDefChanged(this):this.refreshOrDestroyCell({force:!0,suppressFlash:!0}))}setWrapText(){const e=this.column.getColDef().wrapText==!0;this.comp.toggleCss(gK,e)}dispatchCellContextMenuEvent(e){const t=this.column.getColDef(),o=this.createEvent(e,"cellContextMenu"),{beans:r}=this;r.eventSvc.dispatchEvent(o),t.onCellContextMenu&&window.setTimeout(()=>{r.frameworkOverrides.wrapOutgoing(()=>{t.onCellContextMenu(o)})},0)}getCellRenderer(){return this.comp?.getCellRenderer()??null}destroy(){this.onCompAttachedFuncs=[],this.onEditorAttachedFuncs=[],this.isCellFocused()&&this.hasBrowserFocus()&&this.beans.focusSvc.attemptToRecoverFocus(),super.destroy()}hasBrowserFocus(){return this.eGui?.contains(Mt(this.beans))??!1}createSelectionCheckbox(){const e=this.beans.selectionSvc?.createCheckboxSelectionComponent();if(e)return this.beans.context.createBean(e),e.init({rowNode:this.rowNode,column:this.column}),e}createDndSource(){const e=this.beans.registry.createDynamicBean("dndSourceComp",!1,this.rowNode,this.column,this.eGui);return e&&this.beans.context.createBean(e),e}registerRowDragger(e,t,o){if(this.customRowDragComp){this.customRowDragComp.setDragElement(e,t);return}const r=this.createRowDragComp(e,t,o);r&&(this.customRowDragComp=r,this.addDestroyFunc(()=>{this.beans.context.destroyBean(r),this.customRowDragComp=null}),r.refreshVisibility())}createRowDragComp(e,t,o){const r=this.beans.rowDragSvc?.createRowDragCompForCell(this.rowNode,this.column,()=>this.value,e,t,o);if(r)return this.beans.context.createBean(r),r}cellEditorAttached(){for(const e of this.onEditorAttachedFuncs)e();this.onEditorAttachedFuncs=[]}setFocusedCellPosition(e){}getFocusedCellPosition(){return this.cellPosition}refreshAriaRowIndex(){}getRootElement(){return this.eGui}};function SE(e){if(e.group)return e.level;const t=e.parent;return t?t.level+1:0}var vK=0,db=class extends ue{constructor(e,t,o,r,n){super(),this.rowNode=e,this.useAnimationFrameForCreate=r,this.printLayout=n,this.allRowGuis=[],this.active=!0,this.centerCellCtrls={list:[],map:{}},this.leftCellCtrls={list:[],map:{}},this.rightCellCtrls={list:[],map:{}},this.slideInAnimation={left:!1,center:!1,right:!1,fullWidth:!1},this.fadeInAnimation={left:!1,center:!1,right:!1,fullWidth:!1},this.rowDragComps=[],this.lastMouseDownOnDragger=!1,this.emptyStyle={},this.updateColumnListsPending=!1,this.rowId=null,this.businessKey=null,this.beans=t,this.gos=t.gos,this.paginationPage=t.pagination?.getCurrentPage()??0,this.suppressRowTransform=this.gos.get("suppressRowTransform"),this.instanceId=e.id+"-"+vK++,this.rowId=Dc(e.id),this.initRowBusinessKey(),this.rowFocused=t.focusSvc.isRowFocused(this.rowNode.rowIndex,this.rowNode.rowPinned),this.rowLevel=SE(this.rowNode),this.setRowType(),this.setAnimateFlags(o),this.rowStyles=this.processStylesFromGridOptions(),this.rowEditStyleFeature=t.editSvc?.createRowStyleFeature(this),this.addListeners()}initRowBusinessKey(){this.businessKeyForNodeFunc=this.gos.get("getBusinessKeyForNode"),this.updateRowBusinessKey()}updateRowBusinessKey(){if(typeof this.businessKeyForNodeFunc!="function")return;const e=this.businessKeyForNodeFunc(this.rowNode);this.businessKey=Dc(e)}updateGui(e,t){e==="left"?this.leftGui=t:e==="right"?this.rightGui=t:e==="fullWidth"?this.fullWidthGui=t:this.centerGui=t}setComp(e,t,o,r){const{context:n,focusSvc:i}=this.beans;r=Gc(this,n,r);const s={rowComp:e,element:t,containerType:o,compBean:r};this.allRowGuis.push(s),this.updateGui(o,s),this.initialiseRowComp(s);const a=this.rowNode,c=this.rowType==="FullWidthLoading"||a.stub,d=!a.data&&this.beans.rowModel.getType()==="infinite";!c&&!d&&!a.rowPinned&&this.beans.rowRenderer.dispatchFirstDataRenderedEvent();const h=this.fullWidthGui?.element;h&&!this.beans.editSvc?.isEditing(this)&&i.isRowFocused(a.rowIndex,a.rowPinned)&&i.shouldTakeFocus()&&setTimeout(()=>h.focus({preventScroll:!0}),0)}unsetComp(e){this.allRowGuis=this.allRowGuis.filter(t=>t.containerType!==e),this.updateGui(e,void 0)}isCacheable(){return this.rowType==="FullWidthDetail"&&this.gos.get("keepDetailRows")}setCached(e){const t=e?"none":"";for(const o of this.allRowGuis)o.element.style.display=t}initialiseRowComp(e){const t=this.gos;this.onSuppressCellFocusChanged(this.beans.gos.get("suppressCellFocus")),this.listenOnDomOrder(e),this.onRowHeightChanged(e),this.updateRowIndexes(e),this.setFocusedClasses(e),this.setStylesFromGridOptions(!1,e),Os(t)&&this.rowNode.selectable&&this.onRowSelected(e),this.updateColumnLists(!this.useAnimationFrameForCreate);const o=e.rowComp,r=this.getInitialRowClasses(e.containerType);for(const n of r)o.toggleCss(n,!0);this.executeSlideAndFadeAnimations(e),this.rowNode.group&&Im(e.element,this.rowNode.expanded==!0),this.setRowCompRowId(o),this.setRowCompRowBusinessKey(o),Ns(t,e.element,Wh,this),e.compBean.addDestroyFunc(()=>Ns(t,e.element,Wh,null)),this.useAnimationFrameForCreate?this.beans.animationFrameSvc.createTask(this.addHoverFunctionality.bind(this,e),this.rowNode.rowIndex,"p2",!1):this.addHoverFunctionality(e),this.isFullWidth()&&this.setupFullWidth(e),t.get("rowDragEntireRow")&&this.addRowDraggerToRow(e),this.useAnimationFrameForCreate&&this.beans.animationFrameSvc.addDestroyTask(()=>{this.isAlive()&&e.rowComp.toggleCss("ag-after-created",!0)}),this.executeProcessRowPostCreateFunc()}setRowCompRowBusinessKey(e){this.businessKey!=null&&e.setRowBusinessKey(this.businessKey)}setRowCompRowId(e){const t=Dc(this.rowNode.id);this.rowId=t,t!=null&&e.setRowId(t)}executeSlideAndFadeAnimations(e){const{containerType:t}=e;this.slideInAnimation[t]&&(Wm(()=>{this.onTopChanged()}),this.slideInAnimation[t]=!1),this.fadeInAnimation[t]&&(Wm(()=>{e.rowComp.toggleCss("ag-opacity-zero",!1)}),this.fadeInAnimation[t]=!1)}addRowDraggerToRow(e){const t=this.beans.rowDragSvc?.createRowDragCompForRow(this.rowNode,e.element);if(!t)return;const o=this.createBean(t,this.beans.context);this.rowDragComps.push(o),e.compBean.addDestroyFunc(()=>{this.rowDragComps=this.rowDragComps.filter(r=>r!==o),this.rowEditStyleFeature=this.destroyBean(this.rowEditStyleFeature,this.beans.context),this.destroyBean(o,this.beans.context)})}setupFullWidth(e){const t=this.getPinnedForContainer(e.containerType),o=this.createFullWidthCompDetails(e.element,t);e.rowComp.showFullWidth(o)}getFullWidthCellRenderers(){return this.gos.get("embedFullWidthRows")?this.allRowGuis.map(e=>e?.rowComp?.getFullWidthCellRenderer()):[this.fullWidthGui?.rowComp?.getFullWidthCellRenderer()]}executeProcessRowPostCreateFunc(){const e=this.gos.getCallback("processRowPostCreate");if(!e||!this.areAllContainersReady())return;const t={eRow:this.centerGui.element,ePinnedLeftRow:this.leftGui?this.leftGui.element:void 0,ePinnedRightRow:this.rightGui?this.rightGui.element:void 0,node:this.rowNode,rowIndex:this.rowNode.rowIndex,addRenderedRowListener:this.addEventListener.bind(this)};e(t)}areAllContainersReady(){const{leftGui:e,centerGui:t,rightGui:o,beans:{visibleCols:r}}=this,n=!!e||!r.isPinningLeft(),i=!!t,s=!!o||!r.isPinningRight();return n&&i&&s}isNodeFullWidthCell(){if(this.rowNode.detail)return!0;const e=this.beans.gos.getCallback("isFullWidthRow");return e?e({rowNode:this.rowNode}):!1}setRowType(){const{rowNode:e,gos:t,beans:{colModel:o}}=this,r=e.stub&&!t.get("suppressServerSideFullWidthLoadingRow")&&!t.get("groupHideOpenParents"),n=this.isNodeFullWidthCell(),i=t.get("masterDetail")&&e.detail,s=o.isPivotMode(),a=p7(t,e,s);r?this.rowType="FullWidthLoading":i?this.rowType="FullWidthDetail":n?this.rowType="FullWidth":a?this.rowType="FullWidthGroup":this.rowType="Normal"}updateColumnLists(e=!1,t=!1){if(this.isFullWidth())return;const{animationFrameSvc:o}=this.beans;if(!o?.active||e||this.printLayout){this.updateColumnListsImpl(t);return}this.updateColumnListsPending||(o.createTask(()=>{this.active&&this.updateColumnListsImpl(!0)},this.rowNode.rowIndex,"p1",!1),this.updateColumnListsPending=!0)}getNewCellCtrl(e){if(!this.beans.rowSpanSvc?.isCellSpanning(e,this.rowNode))return new Jc(e,this.rowNode,this.beans,this)}isCorrectCtrlForSpan(e){return!this.beans.rowSpanSvc?.isCellSpanning(e.column,this.rowNode)}createCellCtrls(e,t,o=null){const r={list:[],map:{}},n=(d,h,f)=>{f!=null?r.list.splice(f,0,h):r.list.push(h),r.map[d]=h},i=[];for(const d of t){const h=d.getInstanceId();let f=e.map[h];f&&!this.isCorrectCtrlForSpan(f)&&(f.destroy(),f=void 0),f||(f=this.getNewCellCtrl(d)),f&&n(h,f)}for(const d of e.list){const h=d.column.getInstanceId();if(r.map[h]!=null)continue;!this.isCellEligibleToBeRemoved(d,o)?i.push([h,d]):d.destroy()}if(i.length)for(const[d,h]of i){const f=r.list.findIndex(m=>m.column.getLeft()>h.column.getLeft()),g=f===-1?void 0:Math.max(f-1,0);n(d,h,g)}const{focusSvc:s,visibleCols:a}=this.beans,c=s.getFocusedCell();if(c&&c.column.getPinned()==o){const d=c.column.getInstanceId();if(!r.map[d]&&a.allCols.includes(c.column)){const f=this.createFocusedCellCtrl();if(f){const g=r.list.findIndex(b=>b.column.getLeft()>f.column.getLeft()),m=g===-1?void 0:Math.max(g-1,0);n(d,f,m)}}}return r}createFocusedCellCtrl(){const{focusSvc:e,rowSpanSvc:t}=this.beans,o=e.getFocusedCell();if(!o)return;const r=t?.getCellSpan(o.column,this.rowNode);if(r){if(r.firstNode!==this.rowNode||!r.doesSpanContain(o))return}else if(!e.isRowFocused(this.rowNode.rowIndex,this.rowNode.rowPinned))return;return this.getNewCellCtrl(o.column)}updateColumnListsImpl(e){this.updateColumnListsPending=!1,this.createAllCellCtrls(),this.setCellCtrls(e)}setCellCtrls(e){for(const t of this.allRowGuis){const o=this.getCellCtrlsForContainer(t.containerType);t.rowComp.setCellCtrls(o,e)}}getCellCtrlsForContainer(e){switch(e){case"left":return this.leftCellCtrls.list;case"right":return this.rightCellCtrls.list;case"fullWidth":return[];case"center":return this.centerCellCtrls.list}}createAllCellCtrls(){const e=this.beans.colViewport,t=this.beans.visibleCols;if(this.printLayout)this.centerCellCtrls=this.createCellCtrls(this.centerCellCtrls,t.allCols),this.leftCellCtrls={list:[],map:{}},this.rightCellCtrls={list:[],map:{}};else{const o=e.getColsWithinViewport(this.rowNode);this.centerCellCtrls=this.createCellCtrls(this.centerCellCtrls,o);const r=t.getLeftColsForRow(this.rowNode);this.leftCellCtrls=this.createCellCtrls(this.leftCellCtrls,r,"left");const n=t.getRightColsForRow(this.rowNode);this.rightCellCtrls=this.createCellCtrls(this.rightCellCtrls,n,"right")}}isCellEligibleToBeRemoved(e,t){const{column:n}=e;if(n.getPinned()!=t||!this.isCorrectCtrlForSpan(e))return!0;const{visibleCols:i,editSvc:s}=this.beans,a=s?.isEditing(e),c=e.isCellFocused();return a||c?!(i.allCols.indexOf(n)>=0):!0}getDomOrder(){return this.gos.get("ensureDomOrder")||po(this.gos,"print")}listenOnDomOrder(e){const t=()=>{e.rowComp.setDomOrder(this.getDomOrder())};e.compBean.addManagedPropertyListeners(["domLayout","ensureDomOrder"],t)}setAnimateFlags(e){if(this.rowNode.sticky||!e)return;const t=Ee(this.rowNode.oldRowTop),{visibleCols:o}=this.beans,r=o.isPinningLeft(),n=o.isPinningRight();if(t){const{slideInAnimation:i}=this;if(this.isFullWidth()&&!this.gos.get("embedFullWidthRows")){i.fullWidth=!0;return}i.center=!0,i.left=r,i.right=n}else{const{fadeInAnimation:i}=this;if(this.isFullWidth()&&!this.gos.get("embedFullWidthRows")){i.fullWidth=!0;return}i.center=!0,i.left=r,i.right=n}}isFullWidth(){return this.rowType!=="Normal"}refreshFullWidth(){const e=(s,a)=>s?s.rowComp.refreshFullWidth(()=>this.createFullWidthCompDetails(s.element,a).params):!0,t=e(this.fullWidthGui,null),o=e(this.centerGui,null),r=e(this.leftGui,"left"),n=e(this.rightGui,"right");return t&&o&&r&&n}addListeners(){const{beans:e,gos:t,rowNode:o}=this,{expansionSvc:r,eventSvc:n,context:i,rowSpanSvc:s}=e;this.addManagedListeners(this.rowNode,{heightChanged:()=>this.onRowHeightChanged(),rowSelected:()=>this.onRowSelected(),rowIndexChanged:this.onRowIndexChanged.bind(this),topChanged:this.onTopChanged.bind(this),...r?.getRowExpandedListeners(this)??{}}),o.detail&&this.addManagedListeners(o.parent,{dataChanged:this.onRowNodeDataChanged.bind(this)}),this.addManagedListeners(o,{dataChanged:this.onRowNodeDataChanged.bind(this),cellChanged:this.postProcessCss.bind(this),rowHighlightChanged:this.onRowNodeHighlightChanged.bind(this),draggingChanged:this.postProcessRowDragging.bind(this),uiLevelChanged:this.onUiLevelChanged.bind(this),rowPinned:this.onRowPinned.bind(this)}),this.addManagedListeners(n,{paginationPixelOffsetChanged:this.onPaginationPixelOffsetChanged.bind(this),heightScaleChanged:this.onTopChanged.bind(this),displayedColumnsChanged:this.onDisplayedColumnsChanged.bind(this),virtualColumnsChanged:this.onVirtualColumnsChanged.bind(this),cellFocused:this.onCellFocusChanged.bind(this),cellFocusCleared:this.onCellFocusChanged.bind(this),paginationChanged:this.onPaginationChanged.bind(this),modelUpdated:this.refreshFirstAndLastRowStyles.bind(this),columnMoved:()=>this.updateColumnLists()}),s&&this.addManagedListeners(s,{spannedCellsUpdated:({pinned:a})=>{a&&!o.rowPinned||this.updateColumnLists()}}),this.addDestroyFunc(()=>{this.rowDragComps=this.destroyBeans(this.rowDragComps,i),this.tooltipFeature=this.destroyBean(this.tooltipFeature,i),this.rowEditStyleFeature=this.destroyBean(this.rowEditStyleFeature,i)}),this.addManagedPropertyListeners(["rowStyle","getRowStyle","rowClass","getRowClass","rowClassRules"],this.postProcessCss.bind(this)),this.addManagedPropertyListener("rowDragEntireRow",()=>{if(t.get("rowDragEntireRow")){for(const c of this.allRowGuis)this.addRowDraggerToRow(c);return}this.rowDragComps=this.destroyBeans(this.rowDragComps,i)}),this.addListenersForCellComps()}addListenersForCellComps(){this.addManagedListeners(this.rowNode,{rowIndexChanged:()=>{for(const e of this.getAllCellCtrls())e.onRowIndexChanged()},cellChanged:e=>{for(const t of this.getAllCellCtrls())t.onCellChanged(e)}})}onRowPinned(){for(const e of this.allRowGuis)e.rowComp.toggleCss("ag-row-pinned-source",!!this.rowNode.pinnedSibling)}onRowNodeDataChanged(e){this.refreshRow({suppressFlash:!e.update,newData:!e.update})}refreshRow(e){if(this.isFullWidth()!==!!this.isNodeFullWidthCell()){this.beans.rowRenderer.redrawRow(this.rowNode);return}if(this.isFullWidth()){this.refreshFullWidth()||this.beans.rowRenderer.redrawRow(this.rowNode);return}for(const o of this.getAllCellCtrls())o.refreshCell(e);for(const o of this.allRowGuis)this.setRowCompRowId(o.rowComp),this.updateRowBusinessKey(),this.setRowCompRowBusinessKey(o.rowComp);this.onRowSelected(),this.postProcessCss()}postProcessCss(){this.setStylesFromGridOptions(!0),this.postProcessClassesFromGridOptions(),this.postProcessRowClassRules(),this.rowEditStyleFeature?.applyRowStyles(),this.postProcessRowDragging()}onRowNodeHighlightChanged(){const e=this.beans.rowDropHighlightSvc,t=e?.row===this.rowNode?e.position:"none",o=t==="above",r=t==="inside",n=t==="below",i=t!=="none",s=o||n,a=this.rowNode.uiLevel,c=s&&a>0,d=c?a.toString():"0";for(const h of this.allRowGuis){const f=h.rowComp;f.toggleCss("ag-row-highlight-above",o),f.toggleCss("ag-row-highlight-inside",r),f.toggleCss("ag-row-highlight-below",n),f.toggleCss("ag-row-highlight-indent",c),i?h.element.style.setProperty("--ag-row-highlight-level",d):h.element.style.removeProperty("--ag-row-highlight-level")}}postProcessRowDragging(){const e=this.rowNode.dragging;for(const t of this.allRowGuis)t.rowComp.toggleCss("ag-row-dragging",e)}onDisplayedColumnsChanged(){this.updateColumnLists(!0),this.beans.rowAutoHeight?.requestCheckAutoHeight()}onVirtualColumnsChanged(){this.updateColumnLists(!1,!0)}getRowPosition(){return{rowPinned:Pi(this.rowNode.rowPinned),rowIndex:this.rowNode.rowIndex}}onKeyboardNavigate(e){const t=this.findFullWidthInfoForEvent(e);if(!t)return;const{rowGui:o,column:r}=t;if(!(o.element===e.target))return;const s=this.rowNode,{focusSvc:a,navigation:c}=this.beans,d=a.getFocusedCell(),h={rowIndex:s.rowIndex,rowPinned:s.rowPinned,column:d?.column??r};c?.navigateToNextCell(e,e.key,h,!0),e.preventDefault()}onTabKeyDown(e){if(e.defaultPrevented||oi(e))return;const t=this.allRowGuis.find(a=>a.element.contains(e.target)),o=t?t.element:null,r=o===e.target,n=Mt(this.beans);let i=!1;o&&n&&(i=o.contains(n)&&n.classList.contains("ag-cell"));let s=null;!r&&!i&&(s=al(this.beans,o,!1,e.shiftKey)),(this.isFullWidth()&&r||!s)&&this.beans.navigation?.onTabKeyDown(this,e)}getFullWidthElement(){return this.fullWidthGui?this.fullWidthGui.element:null}getRowYPosition(){const e=this.allRowGuis.find(t=>Xn(t.element))?.element;return e?e.getBoundingClientRect().top:0}onSuppressCellFocusChanged(e){const t=this.isFullWidth()&&e?void 0:this.gos.get("tabIndex");for(const o of this.allRowGuis)Wr(o.element,"tabindex",t)}onFullWidthRowFocused(e){const t=this.rowNode,o=e?this.isFullWidth()&&e.rowIndex===t.rowIndex&&e.rowPinned==t.rowPinned:!1;let r;if(this.fullWidthGui)r=this.fullWidthGui.element;else{const i=this.beans.colModel.getCol(e?.column)?.pinned;i?r=i==="right"?this.rightGui?.element:this.leftGui?.element:r=this.centerGui?.element}r&&(r.classList.toggle("ag-full-width-focus",o),o&&e?.forceBrowserFocus&&r.focus({preventScroll:!0}))}recreateCell(e){this.centerCellCtrls=this.removeCellCtrl(this.centerCellCtrls,e),this.leftCellCtrls=this.removeCellCtrl(this.leftCellCtrls,e),this.rightCellCtrls=this.removeCellCtrl(this.rightCellCtrls,e),e.destroy(),this.updateColumnLists()}removeCellCtrl(e,t){const o={list:[],map:{}};for(const r of e.list)r!==t&&(o.list.push(r),o.map[r.column.getInstanceId()]=r);return o}onMouseEvent(e,t){switch(e){case"dblclick":this.onRowDblClick(t);break;case"click":this.onRowClick(t);break;case"touchstart":case"mousedown":this.onRowMouseDown(t);break}}createRowEvent(e,t){const{rowNode:o}=this;return Ze(this.gos,{type:e,node:o,data:o.data,rowIndex:o.rowIndex,rowPinned:o.rowPinned,event:t})}createRowEventWithSource(e,t){const o=this.createRowEvent(e,t);return o.source=this,o}onRowDblClick(e){if(oi(e))return;const t=this.createRowEventWithSource("rowDoubleClicked",e);t.isEventHandlingSuppressed=this.isSuppressMouseEvent(e),this.beans.eventSvc.dispatchEvent(t)}findFullWidthInfoForEvent(e){if(!e)return;const t=this.findFullWidthRowGui(e.target),o=this.getColumnForFullWidth(t);if(!(!t||!o))return{rowGui:t,column:o}}findFullWidthRowGui(e){return this.allRowGuis.find(t=>t.element.contains(e))}getColumnForFullWidth(e){const{visibleCols:t}=this.beans;switch(e?.containerType){case"center":return t.centerCols[0];case"left":return t.leftCols[0];case"right":return t.rightCols[0];default:return t.allCols[0]}}onRowMouseDown(e){if(this.lastMouseDownOnDragger=As(e.target,"ag-row-drag",3),!this.isFullWidth()||this.isSuppressMouseEvent(e))return;const{rangeSvc:t,focusSvc:o}=this.beans;t?.removeAllCellRanges();const r=this.findFullWidthInfoForEvent(e);if(!r)return;const{rowGui:n,column:i}=r,s=n.element,a=e.target,c=this.rowNode;let d=e.defaultPrevented||qc();s&&s.contains(a)&&Mc(a)&&(d=!1),o.setFocusedCell({rowIndex:c.rowIndex,column:i,rowPinned:c.rowPinned,forceBrowserFocus:d})}isSuppressMouseEvent(e){const{gos:t,rowNode:o}=this;if(this.isFullWidth()){const n=this.findFullWidthRowGui(e.target);return xj(t,n?.rowComp.getFullWidthCellRendererParams(),o,e)}const r=Vv(t,e.target);return r!=null&&Gh(t,r.column,o,e)}onRowClick(e){if(oi(e)||this.lastMouseDownOnDragger)return;const o=this.isSuppressMouseEvent(e),{eventSvc:r,selectionSvc:n}=this.beans,i=this.createRowEventWithSource("rowClicked",e);i.isEventHandlingSuppressed=o,r.dispatchEvent(i),!o&&n?.handleSelectionEvent(e,this.rowNode,"rowClicked")}setupDetailRowAutoHeight(e){this.rowType==="FullWidthDetail"&&this.beans.masterDetailSvc?.setupDetailRowAutoHeight(this,e)}createFullWidthCompDetails(e,t){const{gos:o,rowNode:r}=this,n=Ze(o,{fullWidth:!0,data:r.data,node:r,value:r.key,valueFormatted:r.key,eGridCell:e,eParentOfValue:e,pinned:t,addRenderedRowListener:this.addEventListener.bind(this),registerRowDragger:(s,a,c,d)=>this.addFullWidthRowDragging(s,a,c,d),setTooltip:(s,a)=>{o.assertModuleRegistered("Tooltip",3),this.setupFullWidthRowTooltip(s,a)}}),i=this.beans.userCompFactory;switch(this.rowType){case"FullWidthDetail":return R9(i,n);case"FullWidthGroup":{const{value:s,valueFormatted:a}=this.beans.valueSvc.getValueForDisplay({node:this.rowNode,includeValueFormatted:!0});return n.value=s,n.valueFormatted=a,F9(i,n)}case"FullWidthLoading":return k9(i,n);default:return x9(i,n)}}setupFullWidthRowTooltip(e,t){this.fullWidthGui&&(this.tooltipFeature=this.beans.tooltipSvc?.setupFullWidthRowTooltip(this.tooltipFeature,this,e,t))}addFullWidthRowDragging(e,t,o="",r){const{rowDragSvc:n,context:i}=this.beans;if(!n||!this.isFullWidth())return;const s=n.createRowDragComp(()=>o,this.rowNode,void 0,e,t,r);this.createBean(s,i),this.addDestroyFunc(()=>{this.destroyBean(s,i)})}onUiLevelChanged(){const e=SE(this.rowNode);if(this.rowLevel!=e){const t="ag-row-level-"+e,o="ag-row-level-"+this.rowLevel;for(const r of this.allRowGuis)r.rowComp.toggleCss(t,!0),r.rowComp.toggleCss(o,!1)}this.rowLevel=e}isFirstRowOnPage(){return this.rowNode.rowIndex===this.beans.pageBounds.getFirstRow()}isLastRowOnPage(){return this.rowNode.rowIndex===this.beans.pageBounds.getLastRow()}refreshFirstAndLastRowStyles(){const e=this.isFirstRowOnPage(),t=this.isLastRowOnPage();if(this.firstRowOnPage!==e){this.firstRowOnPage=e;for(const o of this.allRowGuis)o.rowComp.toggleCss("ag-row-first",e)}if(this.lastRowOnPage!==t){this.lastRowOnPage=t;for(const o of this.allRowGuis)o.rowComp.toggleCss("ag-row-last",t)}}getAllCellCtrls(){return this.leftCellCtrls.list.length===0&&this.rightCellCtrls.list.length===0?this.centerCellCtrls.list:[...this.centerCellCtrls.list,...this.leftCellCtrls.list,...this.rightCellCtrls.list]}postProcessClassesFromGridOptions(){const e=[];if(this.beans.rowStyleSvc?.processClassesFromGridOptions(e,this.rowNode),!!e.length)for(const t of e)for(const o of this.allRowGuis)o.rowComp.toggleCss(t,!0)}postProcessRowClassRules(){this.beans.rowStyleSvc?.processRowClassRules(this.rowNode,e=>{for(const t of this.allRowGuis)t.rowComp.toggleCss(e,!0)},e=>{for(const t of this.allRowGuis)t.rowComp.toggleCss(e,!1)})}setStylesFromGridOptions(e,t){e&&(this.rowStyles=this.processStylesFromGridOptions()),this.forEachGui(t,o=>o.rowComp.setUserStyles(this.rowStyles))}getPinnedForContainer(e){return e==="left"||e==="right"?e:null}getInitialRowClasses(e){const t=this.getPinnedForContainer(e),o=this.isFullWidth(),{rowNode:r,beans:n}=this,i=[];i.push("ag-row"),i.push(this.rowFocused?"ag-row-focus":"ag-row-no-focus"),this.fadeInAnimation[e]&&i.push("ag-opacity-zero"),i.push(r.rowIndex%2===0?"ag-row-even":"ag-row-odd"),r.isRowPinned()&&(i.push("ag-row-pinned"),n.pinnedRowModel?.isManual()&&i.push("ag-row-pinned-manual")),!r.isRowPinned()&&r.pinnedSibling&&i.push("ag-row-pinned-source"),r.isSelected()&&i.push("ag-row-selected"),r.footer&&i.push("ag-row-footer"),i.push("ag-row-level-"+this.rowLevel),r.stub&&i.push("ag-row-loading"),o&&i.push("ag-full-width-row"),n.expansionSvc?.addExpandedCss(i,r),r.dragging&&i.push("ag-row-dragging");const{rowStyleSvc:s}=n;return s&&(s.processClassesFromGridOptions(i,r),s.preProcessRowClassRules(i,r)),i.push(this.printLayout?"ag-row-position-relative":"ag-row-position-absolute"),this.isFirstRowOnPage()&&i.push("ag-row-first"),this.isLastRowOnPage()&&i.push("ag-row-last"),o&&(t==="left"&&i.push("ag-cell-last-left-pinned"),t==="right"&&i.push("ag-cell-first-right-pinned")),i}processStylesFromGridOptions(){return this.beans.rowStyleSvc?.processStylesFromGridOptions(this.rowNode)??this.emptyStyle}onRowSelected(e){this.beans.selectionSvc?.onRowCtrlSelected(this,t=>{(t===this.centerGui||t===this.fullWidthGui)&&this.announceDescription()},e)}announceDescription(){this.beans.selectionSvc?.announceAriaRowSelection(this.rowNode)}addHoverFunctionality(e){if(!this.active)return;const{element:t,compBean:o}=e,{rowNode:r,beans:n,gos:i}=this;o.addManagedListeners(t,{pointerenter:s=>{s.pointerType==="mouse"&&r.dispatchRowEvent("mouseEnter")},pointerleave:s=>{s.pointerType==="mouse"&&r.dispatchRowEvent("mouseLeave")}}),o.addManagedListeners(r,{mouseEnter:()=>{!n.dragSvc?.dragging&&!i.get("suppressRowHoverHighlight")&&(t.classList.add("ag-row-hover"),r.setHovered(!0))},mouseLeave:()=>{this.resetHoveredStatus(t)}})}resetHoveredStatus(e){const t=e?[e]:this.allRowGuis.map(o=>o.element);for(const o of t)o.classList.remove("ag-row-hover");this.rowNode.setHovered(!1)}roundRowTopToBounds(e){const t=this.beans.ctrlsSvc.getScrollFeature().getApproximateVScollPosition(),o=this.applyPaginationOffset(t.top,!0)-100,r=this.applyPaginationOffset(t.bottom,!0)+100;return Math.min(Math.max(o,e),r)}forEachGui(e,t){if(e)t(e);else for(const o of this.allRowGuis)t(o)}isRowRendered(){return this.allRowGuis.length>0}onRowHeightChanged(e){if(this.rowNode.rowHeight==null)return;const t=this.rowNode.rowHeight,o=this.beans.environment.getDefaultRowHeight(),n=Yk(this.gos)?bh(this.beans,this.rowNode).height:void 0,i=n?`${Math.min(o,n)-2}px`:void 0;this.forEachGui(e,s=>{s.element.style.height=`${t}px`,i&&s.element.style.setProperty("--ag-line-height",i)})}destroyFirstPass(e=!1){this.active=!1;const{rowNode:t}=this;if(!e&&Za(this.gos)&&!t.sticky)if(t.rowTop!=null){const n=this.roundRowTopToBounds(t.rowTop);this.setRowTop(n)}else for(const n of this.allRowGuis)n.rowComp.toggleCss("ag-opacity-zero",!0);this.fullWidthGui?.element.contains(Mt(this.beans))&&this.beans.focusSvc.attemptToRecoverFocus(),t.setHovered(!1);const o=this.createRowEvent("virtualRowRemoved");this.dispatchLocalEvent(o),this.beans.eventSvc.dispatchEvent(o),super.destroy()}destroySecondPass(){this.allRowGuis.length=0;const e=t=>{for(const o of t.list)o.destroy();return{list:[],map:{}}};this.centerCellCtrls=e(this.centerCellCtrls),this.leftCellCtrls=e(this.leftCellCtrls),this.rightCellCtrls=e(this.rightCellCtrls)}setFocusedClasses(e){this.forEachGui(e,t=>{t.rowComp.toggleCss("ag-row-focus",this.rowFocused),t.rowComp.toggleCss("ag-row-no-focus",!this.rowFocused)})}onCellFocusChanged(){const{focusSvc:e}=this.beans,t=e.isRowFocused(this.rowNode.rowIndex,this.rowNode.rowPinned);t!==this.rowFocused&&(this.rowFocused=t,this.setFocusedClasses())}onPaginationChanged(){const e=this.beans.pagination?.getCurrentPage()??0;this.paginationPage!==e&&(this.paginationPage=e,this.onTopChanged()),this.refreshFirstAndLastRowStyles()}onTopChanged(){this.setRowTop(this.rowNode.rowTop)}onPaginationPixelOffsetChanged(){this.onTopChanged()}applyPaginationOffset(e,t=!1){if(this.rowNode.isRowPinned()||this.rowNode.sticky)return e;const o=this.beans.pageBounds.getPixelOffset();return e+o*(t?1:-1)}setRowTop(e){if(!this.printLayout&&Ee(e)){const t=this.applyPaginationOffset(e),n=`${this.rowNode.isRowPinned()||this.rowNode.sticky?t:this.beans.rowContainerHeight.getRealPixelPosition(t)}px`;this.setRowTopStyle(n)}}getInitialRowTop(e){return this.suppressRowTransform?this.getInitialRowTopShared(e):void 0}getInitialTransform(e){return this.suppressRowTransform?void 0:`translateY(${this.getInitialRowTopShared(e)})`}getInitialRowTopShared(e){if(this.printLayout)return"";const t=this.rowNode;let o;if(t.sticky)o=t.stickyRowTop;else{const r=this.slideInAnimation[e]?this.roundRowTopToBounds(t.oldRowTop):t.rowTop,n=this.applyPaginationOffset(r);o=t.isRowPinned()?n:this.beans.rowContainerHeight.getRealPixelPosition(n)}return o+"px"}setRowTopStyle(e){for(const t of this.allRowGuis)this.suppressRowTransform?t.rowComp.setTop(e):t.rowComp.setTransform(`translateY(${e})`)}getCellCtrl(e,t=!1){let o=null;for(const r of this.getAllCellCtrls())r.column==e&&(o=r);if(o!=null||t)return o;for(const r of this.getAllCellCtrls())r?.getColSpanningList().indexOf(e)>=0&&(o=r);return o}onRowIndexChanged(){this.rowNode.rowIndex!=null&&(this.onCellFocusChanged(),this.updateRowIndexes(),this.postProcessCss())}updateRowIndexes(e){const t=this.rowNode.getRowIndexString();if(t===null)return;const o=(this.beans.ctrlsSvc.getHeaderRowContainerCtrl()?.getRowCount()??0)+(this.beans.filterManager?.getHeaderRowCount()??0),r=this.rowNode.rowIndex%2===0,n=o+this.rowNode.rowIndex+1;this.forEachGui(e,i=>{i.rowComp.setRowIndex(t),i.rowComp.toggleCss("ag-row-even",r),i.rowComp.toggleCss("ag-row-odd",!r),k8(i.element,n)})}},bK=class extends ue{constructor(){super(),this.beanName="navigation",this.onPageDown=Bk(this.onPageDown,100),this.onPageUp=Bk(this.onPageUp,100)}postConstruct(){this.beans.ctrlsSvc.whenReady(this,e=>{this.gridBodyCon=e.gridBodyCtrl})}handlePageScrollingKey(e,t=!1){const o=e.key,r=e.altKey,n=e.ctrlKey||e.metaKey,i=!!this.beans.rangeSvc&&e.shiftKey,s=jj(this.gos,e);let a=!1;switch(o){case ee.PAGE_HOME:case ee.PAGE_END:!n&&!r&&(this.onHomeOrEndKey(o),a=!0);break;case ee.LEFT:case ee.RIGHT:case ee.UP:case ee.DOWN:if(!s)return!1;n&&!r&&!i&&(this.onCtrlUpDownLeftRight(o,s),a=!0);break;case ee.PAGE_DOWN:case ee.PAGE_UP:!n&&!r&&(a=this.handlePageUpDown(o,s,t));break}return a&&e.preventDefault(),a}handlePageUpDown(e,t,o){return o&&(t=this.beans.focusSvc.getFocusedCell()),t?(e===ee.PAGE_UP?this.onPageUp(t):this.onPageDown(t),!0):!1}navigateTo({scrollIndex:e,scrollType:t,scrollColumn:o,focusIndex:r,focusColumn:n,isAsync:i,rowPinned:s}){const{scrollFeature:a}=this.gridBodyCon;Ee(o)&&!o.isPinned()&&a.ensureColumnVisible(o),Ee(e)&&a.ensureIndexVisible(e,t),i||a.ensureIndexVisible(r);const{focusSvc:c,rangeSvc:d}=this.beans;c.setFocusedCell({rowIndex:r,column:n,rowPinned:s,forceBrowserFocus:!0}),d?.setRangeToCell({rowIndex:r,rowPinned:s,column:n})}onPageDown(e){const t=this.beans,o=hb(t),r=this.getViewportHeight(),{pageBounds:n,rowModel:i,rowAutoHeight:s}=t,a=n.getPixelOffset(),c=o.top+r,d=i.getRowIndexAtPixel(c+a);s?.active?this.navigateToNextPageWithAutoHeight(e,d):this.navigateToNextPage(e,d)}onPageUp(e){const t=this.beans,o=hb(t),{pageBounds:r,rowModel:n,rowAutoHeight:i}=t,s=r.getPixelOffset(),a=o.top,c=n.getRowIndexAtPixel(a+s);i?.active?this.navigateToNextPageWithAutoHeight(e,c,!0):this.navigateToNextPage(e,c,!0)}navigateToNextPage(e,t,o=!1){const{pageBounds:r,rowModel:n}=this.beans,i=this.getViewportHeight(),s=r.getFirstRow(),a=r.getLastRow(),c=r.getPixelOffset(),d=n.getRow(e.rowIndex),h=o?d?.rowHeight-i-c:i-c,f=d?.rowTop+h;let g=n.getRowIndexAtPixel(f+c);if(g===e.rowIndex){const b=o?-1:1;t=g=e.rowIndex+b}let m;o?(m="bottom",g<s&&(g=s),t<s&&(t=s)):(m="top",g>a&&(g=a),t>a&&(t=a)),this.isRowTallerThanView(n.getRow(g))&&(t=g,m="top"),this.navigateTo({scrollIndex:t,scrollType:m,scrollColumn:null,focusIndex:g,focusColumn:e.column})}navigateToNextPageWithAutoHeight(e,t,o=!1){this.navigateTo({scrollIndex:t,scrollType:o?"bottom":"top",scrollColumn:null,focusIndex:t,focusColumn:e.column}),setTimeout(()=>{const r=this.getNextFocusIndexForAutoHeight(e,o);this.navigateTo({scrollIndex:t,scrollType:o?"bottom":"top",scrollColumn:null,focusIndex:r,focusColumn:e.column,isAsync:!0})},50)}getNextFocusIndexForAutoHeight(e,t=!1){const o=t?-1:1,r=this.getViewportHeight(),{pageBounds:n,rowModel:i}=this.beans,s=n.getLastRow();let a=0,c=e.rowIndex;for(;c>=0&&c<=s;){const d=i.getRow(c);if(d){const h=d.rowHeight??0;if(a+h>r)break;a+=h}c+=o}return Math.max(0,Math.min(c,s))}getViewportHeight(){const e=this.beans,t=hb(e),o=this.beans.scrollVisibleSvc.getScrollbarWidth();let r=t.bottom-t.top;return e.ctrlsSvc.get("center").isHorizontalScrollShowing()&&(r-=o),r}isRowTallerThanView(e){if(!e)return!1;const t=e.rowHeight;return typeof t!="number"?!1:t>this.getViewportHeight()}onCtrlUpDownLeftRight(e,t){const o=this.beans.cellNavigation.getNextCellToFocus(e,t,!0),r=this.getNormalisedPosition(o),{rowIndex:n,rowPinned:i,column:s}=r??o,a=s;this.navigateTo({scrollIndex:n,scrollType:null,scrollColumn:a,focusIndex:n,focusColumn:a,rowPinned:i})}onHomeOrEndKey(e){const t=e===ee.PAGE_HOME,{visibleCols:o,pageBounds:r,rowModel:n}=this.beans,i=o.allCols,s=t?r.getFirstRow():r.getLastRow(),a=n.getRow(s);if(!a)return;const c=(t?i:[...i].reverse()).find(d=>!d.isSuppressNavigable(a));c&&this.navigateTo({scrollIndex:s,scrollType:null,scrollColumn:c,focusIndex:s,focusColumn:c})}onTabKeyDown(e,t){const o=t.shiftKey,r=this.tabToNextCellCommon(e,o,t),n=this.beans,{ctrlsSvc:i,pageBounds:s,focusSvc:a,gos:c}=n;if(r!==!1){r?t.preventDefault():r===null&&i.get("gridCtrl").allowFocusForNextCoreContainer(o);return}if(o){const{rowIndex:d,rowPinned:h}=e.getRowPosition();(h?d===0:d===s.getFirstRow())&&(c.get("headerHeight")===0||qs(n)?Zc(n,!0,!0):(t.preventDefault(),a.focusPreviousFromFirstCell(t)))}else e instanceof Jc&&e.focusCell(!0),(a.focusOverlay(!1)||Zc(n,o))&&t.preventDefault()}tabToNextCell(e,t){const o=this.beans,{focusSvc:r,rowRenderer:n}=o,i=r.getFocusedCell();if(!i)return!1;let s=Xc(o,i);return!s&&(s=n.getRowByPosition(i),!s?.isFullWidth())?!1:!!this.tabToNextCellCommon(s,e,t,"api")}tabToNextCellCommon(e,t,o,r="ui"){const{editSvc:n,focusSvc:i}=this.beans;let s;const a=e instanceof Jc?e:e.getAllCellCtrls()?.[0];return n?.isEditing()?s=n?.moveToNextCell(a,t,o,r):s=this.moveToNextCellNotEditing(e,t,o),s===null?s:s||!!i.focusedHeader}moveToNextCellNotEditing(e,t,o){const r=this.beans.visibleCols.allCols;let n;if(e instanceof db){if(n={...e.getRowPosition(),column:t?r[0]:vt(r)},this.gos.get("embedFullWidthRows")&&o){const s=e.findFullWidthInfoForEvent(o);s&&(n.column=s.column)}}else n=e.getFocusedCellPosition();const i=this.findNextCellToFocusOn(n,{backwards:t,startEditing:!1});if(i===!1)return null;if(i instanceof Jc)i.focusCell(!0);else if(i)return this.tryToFocusFullWidthRow(i,t);return Ee(i)}findNextCellToFocusOn(e,{backwards:t,startEditing:o,skipToNextEditableCell:r}){let n=e;const i=this.beans,{cellNavigation:s,gos:a,focusSvc:c,rowRenderer:d,rangeSvc:h}=i;for(;;){e!==n&&(e=n),t||(n=this.getLastCellOfColSpan(n)),n=s.getNextTabbedCell(n,t);const f=a.getCallback("tabToNextCell");if(Ee(f)){const w=f({backwards:t,editing:o,previousCellPosition:e,nextCellPosition:n||null});if(w===!0)n=e;else{if(w===!1)return!1;n={rowIndex:w.rowIndex,column:w.column,rowPinned:w.rowPinned}}}if(!n)return null;if(n.rowIndex<0){const b=En(i);return c.focusHeaderPosition({headerPosition:{headerRowIndex:b+n.rowIndex,column:n.column},fromCell:!0}),null}const g=a.get("editType")==="fullRow";if(o&&(!g||r)&&!this.isCellEditable(n))continue;this.ensureCellVisible(n);const m=Xc(i,n);if(!m){const b=d.getRowByPosition(n);if(!b||!b.isFullWidth()||o)continue;return{...b.getRowPosition(),column:n?.column}}if(!s.isSuppressNavigable(m.column,m.rowNode))return m.setFocusedCellPosition(n),h?.setRangeToCell(n),m}}isCellEditable(e){const t=this.lookupRowNodeForCell(e);return t?e.column.isCellEditable(t):!1}lookupRowNodeForCell({rowIndex:e,rowPinned:t}){const{pinnedRowModel:o,rowModel:r}=this.beans;return t==="top"?o?.getPinnedTopRow(e):t==="bottom"?o?.getPinnedBottomRow(e):r.getRow(e)}navigateToNextCell(e,t,o,r){let n=o,i=!1;const s=this.beans,{cellNavigation:a,focusSvc:c,gos:d}=s;for(;n&&(n===o||!this.isValidNavigateCell(n));)d.get("enableRtl")?t===ee.LEFT&&(n=this.getLastCellOfColSpan(n)):t===ee.RIGHT&&(n=this.getLastCellOfColSpan(n)),n=a.getNextCellToFocus(t,n),i=Ut(n);if(i&&e&&e.key===ee.UP&&(n={rowIndex:-1,rowPinned:null,column:o.column}),r){const f=d.getCallback("navigateToNextCell");if(Ee(f)){const m=f({key:t,previousCellPosition:o,nextCellPosition:n||null,event:e});Ee(m)?n={rowPinned:m.rowPinned,rowIndex:m.rowIndex,column:m.column}:n=null}}if(!n)return;if(n.rowIndex<0){const f=En(s);c.focusHeaderPosition({headerPosition:{headerRowIndex:f+n.rowIndex,column:o.column},event:e||void 0,fromCell:!0});return}const h=this.getNormalisedPosition(n);h?this.focusPosition(h):this.tryToFocusFullWidthRow(n)}getNormalisedPosition(e){if(!!this.beans.spannedRowRenderer?.getCellByPosition(e))return e;this.ensureCellVisible(e);const o=Xc(this.beans,e);return o?(e=o.getFocusedCellPosition(),this.ensureCellVisible(e),e):null}tryToFocusFullWidthRow(e,t){const{visibleCols:o,rowRenderer:r,focusSvc:n,eventSvc:i}=this.beans,s=o.allCols;if(!r.getRowByPosition(e)?.isFullWidth())return!1;const c=n.getFocusedCell(),d={rowIndex:e.rowIndex,rowPinned:e.rowPinned,column:e.column||(t?vt(s):s[0])};this.focusPosition(d);const h=t??(c!=null&&Qj(d,c));return i.dispatchEvent({type:"fullWidthRowFocused",rowIndex:d.rowIndex,rowPinned:d.rowPinned,column:d.column,isFullWidthCell:!0,fromBelow:h}),!0}focusPosition(e){const{focusSvc:t,rangeSvc:o}=this.beans;t.setFocusedCell({rowIndex:e.rowIndex,column:e.column,rowPinned:e.rowPinned,forceBrowserFocus:!0}),o?.setRangeToCell(e)}isValidNavigateCell(e){return!!Ws(this.beans,e)}getLastCellOfColSpan(e){const t=Xc(this.beans,e);if(!t)return e;const o=t.getColSpanningList();return o.length===1?e:{rowIndex:e.rowIndex,column:vt(o),rowPinned:e.rowPinned}}ensureCellVisible(e){const t=eF(this.gos),o=this.beans.rowModel.getRow(e.rowIndex),r=t&&o?.sticky,{scrollFeature:n}=this.gridBodyCon;!r&&Ut(e.rowPinned)&&n.ensureIndexVisible(e.rowIndex),e.column.isPinned()||n.ensureColumnVisible(e.column)}ensureColumnVisible(e){const t=this.gridBodyCon.scrollFeature;e.isPinned()||t.ensureColumnVisible(e)}ensureRowVisible(e){this.gridBodyCon.scrollFeature.ensureIndexVisible(e)}};function hb(e){return e.ctrlsSvc.getScrollFeature().getVScrollPosition()}var wK={moduleName:"KeyboardNavigation",version:Ve,beans:[bK,G$,t$],apiFunctions:{getFocusedCell:j$,clearFocusedCell:W$,setFocusedCell:q$,setFocusedHeader:K$,tabToNextCell:U$,tabToPreviousCell:$$}},CK=class extends ue{constructor(){super(...arguments),this.beanName="pageBoundsListener"}postConstruct(){this.addManagedEventListeners({modelUpdated:this.onModelUpdated.bind(this),recalculateRowBounds:this.calculatePages.bind(this)}),this.onModelUpdated()}onModelUpdated(e){this.calculatePages(),this.eventSvc.dispatchEvent({type:"paginationChanged",animate:e?.animate??!1,newData:e?.newData??!1,newPage:e?.newPage??!1,newPageSize:e?.newPageSize??!1,keepRenderedRows:e?.keepRenderedRows??!1})}calculatePages(){const{pageBounds:e,pagination:t,rowModel:o}=this.beans;t?t.calculatePages():e.calculateBounds(0,o.getRowCount()-1)}},yK=class extends ue{constructor(){super(...arguments),this.beanName="pageBounds",this.pixelOffset=0}getFirstRow(){return this.topRowBounds?.rowIndex??-1}getLastRow(){return this.bottomRowBounds?.rowIndex??-1}getCurrentPageHeight(){const{topRowBounds:e,bottomRowBounds:t}=this;return!e||!t?0:Math.max(t.rowTop+t.rowHeight-e.rowTop,0)}getCurrentPagePixelRange(){const{topRowBounds:e,bottomRowBounds:t}=this,o=e?.rowTop??0,r=t?t.rowTop+t.rowHeight:0;return{pageFirstPixel:o,pageLastPixel:r}}calculateBounds(e,t){const{rowModel:o}=this.beans,r=o.getRowBounds(e);r&&(r.rowIndex=e),this.topRowBounds=r;const n=o.getRowBounds(t);n&&(n.rowIndex=t),this.bottomRowBounds=n,this.calculatePixelOffset()}getPixelOffset(){return this.pixelOffset}calculatePixelOffset(){const e=this.topRowBounds?.rowTop??0;this.pixelOffset!==e&&(this.pixelOffset=e,this.eventSvc.dispatchEvent({type:"paginationPixelOffsetChanged"}))}},SK=".ag-pinned-left-floating-bottom,.ag-pinned-left-floating-top,.ag-pinned-right-floating-bottom,.ag-pinned-right-floating-top{min-width:0;overflow:hidden;position:relative}.ag-pinned-left-sticky-top,.ag-pinned-right-sticky-top{height:100%;overflow:hidden;position:relative}.ag-sticky-bottom-full-width-container,.ag-sticky-top-full-width-container{height:100%;overflow:hidden;width:100%}.ag-pinned-left-header,.ag-pinned-right-header{display:inline-block;height:100%;overflow:hidden;position:relative}.ag-body-horizontal-scroll:not(.ag-scrollbar-invisible){.ag-horizontal-left-spacer:not(.ag-scroller-corner){border-right:var(--ag-pinned-column-border)}.ag-horizontal-right-spacer:not(.ag-scroller-corner){border-left:var(--ag-pinned-column-border)}}.ag-pinned-right-header{border-left:var(--ag-pinned-column-border)}.ag-pinned-left-header{border-right:var(--ag-pinned-column-border)}.ag-cell.ag-cell-first-right-pinned:not(.ag-cell-range-left,.ag-cell-range-single-cell,.ag-cell-focus:not(.ag-cell-range-selected):focus-within){border-left:var(--ag-pinned-column-border)}.ag-cell.ag-cell-last-left-pinned:not(.ag-cell-range-right,.ag-cell-range-single-cell,.ag-cell-focus:not(.ag-cell-range-selected):focus-within){border-right:var(--ag-pinned-column-border)}.ag-pinned-left-header .ag-header-cell-resize:after{left:calc(50% - var(--ag-header-column-resize-handle-width))}.ag-pinned-right-header .ag-header-cell-resize:after{left:50%}.ag-pinned-left-header .ag-header-cell-resize{right:-3px}.ag-pinned-right-header .ag-header-cell-resize{left:-3px}",xK=class extends ue{constructor(e,t){super(),this.isLeft=e,this.elements=t,this.getWidth=e?()=>this.beans.pinnedCols.leftWidth:()=>this.beans.pinnedCols.rightWidth}postConstruct(){this.addManagedEventListeners({[`${this.isLeft?"left":"right"}PinnedWidthChanged`]:this.onPinnedWidthChanged.bind(this)})}onPinnedWidthChanged(){const e=this.getWidth(),t=e>0;for(const o of this.elements)o&&(kt(o,t),wn(o,e))}},kK=class extends ue{constructor(){super(...arguments),this.beanName="pinnedCols"}postConstruct(){this.beans.ctrlsSvc.whenReady(this,t=>{this.gridBodyCtrl=t.gridBodyCtrl});const e=this.checkContainerWidths.bind(this);this.addManagedEventListeners({displayedColumnsChanged:e,displayedColumnsWidthChanged:e}),this.addManagedPropertyListener("domLayout",e)}checkContainerWidths(){const{gos:e,visibleCols:t,eventSvc:o}=this.beans,r=po(e,"print"),n=r?0:t.getColsLeftWidth(),i=r?0:t.getDisplayedColumnsRightWidth();n!=this.leftWidth&&(this.leftWidth=n,o.dispatchEvent({type:"leftPinnedWidthChanged"})),i!=this.rightWidth&&(this.rightWidth=i,o.dispatchEvent({type:"rightPinnedWidthChanged"}))}keepPinnedColumnsNarrowerThanViewport(){const e=this.gridBodyCtrl.eBodyViewport,t=sh(e);if(t<=50)return;const o=this.getPinnedColumnsOverflowingViewport(t-50),r=this.gos.getCallback("processUnpinnedColumns"),{columns:n,hasLockedPinned:i}=o;let s=n;!s.length&&!i||(r&&(s=r({columns:s,viewportWidth:t})),s?.length&&(s=s.filter(a=>!rl(a)),this.setColsPinned(s,null,"viewportSizeFeature")))}createPinnedWidthFeature(e,...t){return new xK(e,t)}setColsPinned(e,t,o){const{colModel:r,colAnimation:n,visibleCols:i,gos:s}=this.beans;if(!r.cols||!e?.length)return;if(po(s,"print")){he(37);return}n?.start();let a;t===!0||t==="left"?a="left":t==="right"?a="right":a=null;const c=[];for(const d of e){if(!d)continue;const h=r.getCol(d);h&&h.getPinned()!==a&&(this.setColPinned(h,a),c.push(h))}c.length&&(i.refresh(o),bF(this.eventSvc,c,o)),n?.finish()}initCol(e){const{pinned:t,initialPinned:o}=e.colDef;t!==void 0?this.setColPinned(e,t):this.setColPinned(e,o)}setColPinned(e,t){t===!0||t==="left"?e.pinned="left":t==="right"?e.pinned="right":e.pinned=null,e.dispatchStateUpdatedEvent("pinned")}setupHeaderPinnedWidth(e){const{scrollVisibleSvc:t}=this.beans;if(e.pinned==null)return;const o=e.pinned==="left",r=e.pinned==="right";e.hidden=!0;const n=()=>{const i=o?this.leftWidth:this.rightWidth;if(i==null)return;const s=i==0,a=e.hidden!==s,c=this.gos.get("enableRtl"),d=t.getScrollbarWidth(),f=t.verticalScrollShowing&&(c&&o||!c&&r)?i+d:i;e.comp.setPinnedContainerWidth(`${f}px`),e.comp.setDisplayed(!s),a&&(e.hidden=s,e.refresh())};e.addManagedEventListeners({leftPinnedWidthChanged:n,rightPinnedWidthChanged:n,scrollVisibilityChanged:n,scrollbarWidthChanged:n})}getHeaderResizeDiff(e,t){if(t.getPinned()){const{leftWidth:r,rightWidth:n}=this,i=sh(this.beans.ctrlsSvc.getGridBodyCtrl().eBodyViewport)-50;if(r+n+e>i)if(i>r+n)e=i-r-n;else return 0}return e}getPinnedColumnsOverflowingViewport(e){const t=this.rightWidth??0,o=this.leftWidth??0,r=t+o;let n=!1;if(r<e)return{columns:[],hasLockedPinned:n};const{visibleCols:i}=this.beans,s=[...i.leftCols],a=[...i.rightCols];let c=0,d=0;const h=0,f=[];let g=r-h-e;for(;(d<s.length||c<a.length)&&g>0;){if(c<a.length){const m=a[c++];if(m.colDef.lockPinned){n=!0;continue}g-=m.getActualWidth(),f.push(m)}if(d<s.length&&g>0){const m=s[d++];if(m.colDef.lockPinned){n=!0;continue}g-=m.getActualWidth(),f.push(m)}}return{columns:f,hasLockedPinned:n}}},FK={moduleName:"PinnedColumn",version:Ve,beans:[kK],css:[SK]},RK=class extends Io{constructor(){super(),this.beanName="ariaAnnounce",this.descriptionContainer=null,this.pendingAnnouncements=new Map,this.lastAnnouncement="",this.updateAnnouncement=Qn(this,this.updateAnnouncement.bind(this),200)}postConstruct(){const e=this.beans,t=lo(e),o=this.descriptionContainer=t.createElement("div");o.classList.add("ag-aria-description-container"),wk(o,"polite"),C8(o,"additions text"),w8(o,!0),e.eRootDiv.appendChild(o)}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}`),this.lastAnnouncement=t,this.descriptionContainer.textContent=t}destroy(){super.destroy();const{descriptionContainer:e}=this;e&&(Kn(e),e.remove()),this.descriptionContainer=null,this.pendingAnnouncements.clear()}},EK=class extends RK{},_K={moduleName:"Aria",version:Ve,beans:[EK]},PK=":where(.ag-delay-render){.ag-cell,.ag-header-cell,.ag-header-group-cell,.ag-row,.ag-spanned-cell-wrapper{visibility:hidden}}",xE="ag-delay-render",DK=class extends ue{constructor(){super(...arguments),this.beanName="colDelayRenderSvc",this.hideRequested=!1,this.alreadyRevealed=!1,this.timesRetried=0,this.requesters=new Set}hideColumns(e){this.alreadyRevealed||this.requesters.has(e)||(this.requesters.add(e),this.hideRequested||(this.beans.ctrlsSvc.whenReady(this,t=>{t.gridBodyCtrl.eGridBody.classList.add(xE)}),this.hideRequested=!0))}revealColumns(e){if(this.alreadyRevealed||!this.isAlive()||(this.requesters.delete(e),this.requesters.size>0))return;const{renderStatus:t,ctrlsSvc:o}=this.beans;if(t){if(!t.areHeaderCellsRendered()&&this.timesRetried<5){this.timesRetried++,setTimeout(()=>this.revealColumns(e));return}this.timesRetried=0}o.getGridBodyCtrl().eGridBody.classList.remove(xE),this.alreadyRevealed=!0}},TK={moduleName:"ColumnDelayRender",version:Ve,beans:[DK],css:[PK]};function MK(e){e.overlays?.showLoadingOverlay()}function AK(e){e.overlays?.showNoRowsOverlay()}function IK(e){e.overlays?.hideOverlay()}var BK=".ag-overlay{inset:0;pointer-events:none;position:absolute;z-index:2}.ag-overlay-panel,.ag-overlay-wrapper{display:flex;height:100%;width:100%}.ag-overlay-wrapper{align-items:center;flex:none;justify-content:center;text-align:center}.ag-overlay-exporting-wrapper,.ag-overlay-loading-wrapper,.ag-overlay-modal-wrapper{pointer-events:all}.ag-overlay-exporting-center,.ag-overlay-loading-center{background:var(--ag-background-color);border:solid var(--ag-border-width) var(--ag-border-color);border-radius:var(--ag-border-radius);box-shadow:var(--ag-popup-shadow);display:flex;padding:var(--ag-spacing)}",OK={tag:"div",cls:"ag-overlay",role:"presentation",children:[{tag:"div",cls:"ag-overlay-panel",role:"presentation",children:[{tag:"div",ref:"eOverlayWrapper",cls:"ag-overlay-wrapper",role:"presentation"}]}]},kE=class extends Ro{constructor(){super(OK),this.eOverlayWrapper=Te,this.activeOverlay=null,this.activePromise=null,this.activeCssClass=null,this.elToFocusAfter=null,this.overlayExclusive=!1,this.oldWrapperPadding=null,this.registerCSS(BK)}handleKeyDown(e){if(e.key!==ee.TAB||e.defaultPrevented||oi(e))return;const{beans:t,eOverlayWrapper:o}=this;if(o&&al(t,o,!1,e.shiftKey))return;let n=!1;e.shiftKey?n=t.focusSvc.focusGridView({column:vt(t.visibleCols.allCols),backwards:!0,canFocusOverlay:!1}):n=Zc(t,!1),n&&e.preventDefault()}updateLayoutClasses(e,t){const o=this.eOverlayWrapper;if(!o)return;const r=o.classList,{AUTO_HEIGHT:n,NORMAL:i,PRINT:s}=Vh;r.toggle(n,t.autoHeight),r.toggle(i,t.normal),r.toggle(s,t.print)}postConstruct(){this.createManagedBean(new Nv(this)),this.setDisplayed(!1,{skipAriaHidden:!0}),this.beans.overlays.setWrapperComp(this,!1),this.addManagedElementListeners(this.getFocusableElement(),{keydown:this.handleKeyDown.bind(this)}),this.addManagedEventListeners({gridSizeChanged:this.refreshWrapperPadding.bind(this)})}setWrapperTypeClass(e){const t=this.eOverlayWrapper?.classList;if(!t){this.activeCssClass=null;return}this.activeCssClass&&t.toggle(this.activeCssClass,!1),this.activeCssClass=e,t.toggle(e,!0)}showOverlay(e,t,o){if(this.destroyActiveOverlay(),this.elToFocusAfter=null,this.activePromise=e,this.overlayExclusive=o,!e)return this.refreshWrapperPadding(),Ye.resolve();if(this.setWrapperTypeClass(t),this.setDisplayed(!0,{skipAriaHidden:!0}),this.refreshWrapperPadding(),o&&this.isGridFocused()){const r=Mt(this.beans);r&&!Mm(this.beans)&&(this.elToFocusAfter=r)}return e.then(r=>{const n=this.eOverlayWrapper;if(!n){this.destroyBean(r);return}if(this.activePromise!==e){this.activeOverlay!==r&&(this.destroyBean(r),r=null);return}this.activePromise=null,r&&(this.activeOverlay!==r&&(n.appendChild(r.getGui()),this.activeOverlay=r),o&&this.isGridFocused()&&Vs(n))}),e}refreshWrapperPadding(){if(!this.eOverlayWrapper){this.oldWrapperPadding=null;return}const e=!!this.activeOverlay||!!this.activePromise;let t=0;e&&!this.overlayExclusive&&(t=this.beans.ctrlsSvc.get("gridHeaderCtrl")?.headerHeight||0),t!==this.oldWrapperPadding&&(this.oldWrapperPadding=t,this.eOverlayWrapper.style.setProperty("padding-top",`${t}px`))}destroyActiveOverlay(){this.activePromise=null;const e=this.activeOverlay;if(!e){this.overlayExclusive=!1,this.elToFocusAfter=null,this.refreshWrapperPadding();return}let t=this.elToFocusAfter;this.elToFocusAfter=null,this.activeOverlay=null,this.overlayExclusive=!1,t&&!this.isGridFocused()&&(t=null),this.destroyBean(e);const o=this.eOverlayWrapper;o&&Kn(o),t?.focus?.({preventScroll:!0}),this.refreshWrapperPadding()}hideOverlay(){this.destroyActiveOverlay(),this.setDisplayed(!1,{skipAriaHidden:!0})}isGridFocused(){const e=Mt(this.beans);return!!e&&this.beans.eGridDiv.contains(e)}destroy(){this.elToFocusAfter=null,this.destroyActiveOverlay(),this.beans.overlays.setWrapperComp(this,!0),super.destroy(),this.eOverlayWrapper=null}},NK={selector:"AG-OVERLAY-WRAPPER",component:kE},LK=["refresh"],eu=e=>({name:e,optionalMethods:LK}),Ks={id:"agLoadingOverlay",overlayType:"loading",comp:eu("loadingOverlayComponent"),wrapperCls:"ag-overlay-loading-wrapper",exclusive:!0,compKey:"loadingOverlayComponent",paramsKey:"loadingOverlayComponentParams",isSuppressed:e=>{const t=e.get("loading");return t===!1||e.get("suppressLoadingOverlay")===!0&&t!==!0}},Cl={id:"agNoRowsOverlay",overlayType:"noRows",comp:eu("noRowsOverlayComponent"),wrapperCls:"ag-overlay-no-rows-wrapper",compKey:"noRowsOverlayComponent",paramsKey:"noRowsOverlayComponentParams",isSuppressed:e=>e.get("suppressNoRowsOverlay")},fb={id:"agNoMatchingRowsOverlay",overlayType:"noMatchingRows",comp:eu("noMatchingRowsOverlayComponent"),wrapperCls:"ag-overlay-no-matching-rows-wrapper"},lf={id:"agExportingOverlay",overlayType:"exporting",comp:eu("exportingOverlayComponent"),wrapperCls:"ag-overlay-exporting-wrapper",exclusive:!0},cf={id:"activeOverlay",comp:eu("activeOverlay"),wrapperCls:"ag-overlay-modal-wrapper",exclusive:!0},zK=e=>e?{agLoadingOverlay:Ks,agNoRowsOverlay:Cl,agNoMatchingRowsOverlay:fb,agExportingOverlay:lf}[e]??cf:null,HK=e=>e?{loading:Ks,noRows:Cl,noMatchingRows:fb,exporting:lf}[e]:null,VK=class extends ue{constructor(){super(...arguments),this.beanName="overlays",this.eWrapper=void 0,this.exclusive=!1,this.oldExclusive=!1,this.currentDef=null,this.showInitialOverlay=!0,this.userForcedNoRows=!1,this.exportsInProgress=0,this.newColumnsLoadedCleanup=null}postConstruct(){const e=this.gos;this.showInitialOverlay=Fo(e);const t=()=>{this.userForcedNoRows||this.updateOverlay(!1)},[o,r,n,i]=this.addManagedEventListeners({newColumnsLoaded:t,rowCountReady:()=>{this.disableInitialOverlay(),t(),r()},rowDataUpdated:t,modelUpdated:t});this.newColumnsLoadedCleanup=o,this.addManagedPropertyListeners(["loading","activeOverlay","activeOverlayParams","overlayComponentParams","loadingOverlayComponentParams","noRowsOverlayComponentParams"],s=>this.onPropChange(new Set(s.changeSet?.properties)))}destroy(){this.doHideOverlay(),super.destroy(),this.eWrapper=void 0}setWrapperComp(e,t){this.isAlive()&&(t?this.eWrapper===e&&(this.eWrapper=void 0):this.eWrapper=e,this.updateOverlay(!1))}isVisible(){return!!this.currentDef}showLoadingOverlay(){this.showInitialOverlay=!1;const e=this.gos;if(!this.eWrapper||e.get("activeOverlay")||this.isDisabled(Ks))return;const t=e.get("loading");!t&&t!==void 0||this.doShowOverlay(Ks)}showNoRowsOverlay(){this.showInitialOverlay=!1;const e=this.gos;!this.eWrapper||e.get("activeOverlay")||e.get("loading")||this.isDisabled(Cl)||(this.userForcedNoRows=!0,this.doShowOverlay(Cl))}async showExportOverlay(e){const{gos:t,beans:o}=this;if(!this.eWrapper||t.get("activeOverlay")||t.get("loading")||this.isDisabled(lf)||this.userForcedNoRows&&this.currentDef===Cl){e();return}const r=this.getDesiredDefWithOverride(lf);if(!r){e();return}this.exportsInProgress++,this.focusedCell=o.focusSvc.getFocusedCell(),await this.doShowOverlay(r),await new Promise(i=>setTimeout(()=>i()));const n=Date.now();try{e()}finally{const i=Date.now()-n,s=Math.max(0,300-i),a=()=>{this.exportsInProgress--,this.exportsInProgress===0&&(this.updateOverlay(!1),rW(o,this.focusedCell),this.focusedCell=null)};s>0?setTimeout(()=>a(),s):a()}}hideOverlay(){const e=this.gos;this.showInitialOverlay=!1;const t=this.userForcedNoRows;if(this.userForcedNoRows=!1,e.get("loading")){he(99);return}if(e.get("activeOverlay")){he(296);return}if(this.currentDef===fb){he(297);return}this.doHideOverlay(),t&&this.getOverlayDef()!==Cl&&this.updateOverlay(!1)}getOverlayWrapperSelector(){return NK}getOverlayWrapperCompClass(){return kE}onPropChange(e){const t=e.has("activeOverlay");if((t||e.has("loading"))&&this.updateOverlay(t))return;const o=this.currentDef,r=this.eWrapper?.activeOverlay;if(r&&o){const n=e.has("activeOverlayParams");if(o===cf)n&&r.refresh?.(this.makeCompParams(!0));else{const i=o.paramsKey;(e.has("overlayComponentParams")||i&&e.has(i))&&r.refresh?.(this.makeCompParams(!1,i,o.overlayType))}}}updateOverlay(e){const t=this.eWrapper;if(!t)return this.currentDef=null,!1;const o=this.getDesiredDefWithOverride(),r=this.currentDef,n=o===cf&&e;return o!==r?o?(this.doShowOverlay(o),!0):(this.disableInitialOverlay(),this.doHideOverlay()):n&&o?(t.hideOverlay(),this.doShowOverlay(o),!0):(o||this.disableInitialOverlay(),!1)}getDesiredDefWithOverride(e){const{gos:t}=this;let o=zK(t.get("activeOverlay"));return o||(o=e??this.getOverlayDef(),o&&this.isDisabled(o)&&(o=null)),o}getOverlayDef(){const{gos:e,beans:t}=this,{colModel:o,rowModel:r}=t,n=e.get("loading");if(n!==void 0){if(this.disableInitialOverlay(),n)return Ks}else if(this.showInitialOverlay){if(!this.isDisabled(Ks)&&(!e.get("columnDefs")||!o.ready||!e.get("rowData")))return Ks;this.disableInitialOverlay()}else this.disableInitialOverlay();const s=r.getOverlayType();return HK(s)}disableInitialOverlay(){this.showInitialOverlay=!1,this.newColumnsLoadedCleanup?.(),this.newColumnsLoadedCleanup=null}doShowOverlay(e){const{gos:t,beans:o}=this,{userCompFactory:r}=o;this.currentDef=e;const n=e!==cf,i=!!e.exclusive;this.exclusive=i;let s;(e.paramsKey&&t.get(e.paramsKey)||e.compKey&&t.get(e.compKey))&&(s=e.paramsKey);let a;n&&(t.get("overlayComponent")||t.get("overlayComponentSelector"))&&(a=r.getCompDetailsFromGridOptions({name:"overlayComponent",optionalMethods:["refresh"]},void 0,this.makeCompParams(!1,e.paramsKey,e.overlayType))),a??(a=r.getCompDetailsFromGridOptions(e.comp,n?e.id:void 0,this.makeCompParams(!n,s,e.overlayType),!1));const c=a?.newAgStackInstance()??null,d=this.eWrapper?this.eWrapper.showOverlay(c,e.wrapperCls,i):Ye.resolve();return this.eWrapper?.refreshWrapperPadding(),this.setExclusive(i),d}makeCompParams(e,t,o){const{gos:r}=this,n=e?r.get("activeOverlayParams"):{...r.get("overlayComponentParams"),...t&&r.get(t)||null,overlayType:o};return Ze(r,n??{})}doHideOverlay(){let e=!1;this.currentDef&&(this.currentDef=null,e=!0),this.exclusive=!1;const t=this.eWrapper;return t&&(t.hideOverlay(),t.refreshWrapperPadding(),this.setExclusive(!1)),e}setExclusive(e){this.oldExclusive!==e&&(this.oldExclusive=e,this.eventSvc.dispatchEvent({type:"overlayExclusiveChanged"}))}isDisabled(e){const{gos:t}=this;return e.overlayType&&t.get("suppressOverlays")?.includes(e.overlayType)||e.isSuppressed?.(t)===!0}},GK={moduleName:"Overlay",version:Ve,userComponents:{agLoadingOverlay:mW,agNoRowsOverlay:CW,agNoMatchingRowsOverlay:SW,agExportingOverlay:bW},apiFunctions:{showLoadingOverlay:MK,showNoRowsOverlay:AK,hideOverlay:IK},icons:{overlayLoading:"loading",overlayExporting:"loading"},beans:[VK]},jK=class extends ue{constructor(){super(...arguments),this.beanName="rowContainerHeight",this.scrollY=0,this.uiBodyHeight=0}postConstruct(){this.addManagedEventListeners({bodyHeightChanged:this.updateOffset.bind(this)}),this.maxDivHeight=N9(),ph(this.gos,"RowContainerHeightService - maxDivHeight = "+this.maxDivHeight)}updateOffset(){if(!this.stretching)return;const e=this.beans.ctrlsSvc.getScrollFeature().getVScrollPosition().top,t=this.getUiBodyHeight();(e!==this.scrollY||t!==this.uiBodyHeight)&&(this.scrollY=e,this.uiBodyHeight=t,this.calculateOffset())}calculateOffset(){this.setUiContainerHeight(this.maxDivHeight),this.pixelsToShave=this.modelHeight-this.uiContainerHeight,this.maxScrollY=this.uiContainerHeight-this.uiBodyHeight;const e=this.scrollY/this.maxScrollY,t=e*this.pixelsToShave;ph(this.gos,`RowContainerHeightService - Div Stretch Offset = ${t} (${this.pixelsToShave} * ${e})`),this.setDivStretchOffset(t)}setUiContainerHeight(e){e!==this.uiContainerHeight&&(this.uiContainerHeight=e,this.eventSvc.dispatchEvent({type:"rowContainerHeightChanged"}))}clearOffset(){this.setUiContainerHeight(this.modelHeight),this.pixelsToShave=0,this.setDivStretchOffset(0)}setDivStretchOffset(e){const t=typeof e=="number"?Math.floor(e):null;this.divStretchOffset!==t&&(this.divStretchOffset=t,this.eventSvc.dispatchEvent({type:"heightScaleChanged"}))}setModelHeight(e){this.modelHeight=e,this.stretching=e!=null&&this.maxDivHeight>0&&e>this.maxDivHeight,this.stretching?this.calculateOffset():this.clearOffset()}getRealPixelPosition(e){return e-this.divStretchOffset}getUiBodyHeight(){const e=this.beans.ctrlsSvc.getScrollFeature().getVScrollPosition();return e.bottom-e.top}getScrollPositionForPixel(e){if(this.pixelsToShave<=0)return e;const t=this.modelHeight-this.getUiBodyHeight(),o=e/t;return this.maxScrollY*o}},WK=400,qK=class extends ue{constructor(){super(...arguments),this.beanName="rowRenderer",this.destroyFuncsForColumnListeners=[],this.rowCtrlsByRowIndex={},this.zombieRowCtrls={},this.allRowCtrls=[],this.topRowCtrls=[],this.bottomRowCtrls=[],this.refreshInProgress=!1,this.dataFirstRenderedFired=!1,this.setupRangeSelectionListeners=()=>{const e=()=>{for(const i of this.getAllCellCtrls())i.onCellSelectionChanged()},t=()=>{for(const i of this.getAllCellCtrls())i.updateRangeBordersIfRangeCount()},o=()=>{this.eventSvc.addListener("cellSelectionChanged",e),this.eventSvc.addListener("columnMoved",t),this.eventSvc.addListener("columnPinned",t),this.eventSvc.addListener("columnVisible",t)},r=()=>{this.eventSvc.removeListener("cellSelectionChanged",e),this.eventSvc.removeListener("columnMoved",t),this.eventSvc.removeListener("columnPinned",t),this.eventSvc.removeListener("columnVisible",t)};this.addDestroyFunc(()=>r()),this.addManagedPropertyListeners(["enableRangeSelection","cellSelection"],()=>{zc(this.gos)?o():r()}),zc(this.gos)&&o()}}wireBeans(e){this.pageBounds=e.pageBounds,this.colModel=e.colModel,this.pinnedRowModel=e.pinnedRowModel,this.rowModel=e.rowModel,this.focusSvc=e.focusSvc,this.rowContainerHeight=e.rowContainerHeight,this.ctrlsSvc=e.ctrlsSvc,this.editSvc=e.editSvc}postConstruct(){this.ctrlsSvc.whenReady(this,e=>{this.gridBodyCtrl=e.gridBodyCtrl,this.initialise()})}initialise(){this.addManagedEventListeners({paginationChanged:this.onPageLoaded.bind(this),pinnedRowDataChanged:this.onPinnedRowDataChanged.bind(this),pinnedRowsChanged:this.onPinnedRowsChanged.bind(this),displayedColumnsChanged:this.onDisplayedColumnsChanged.bind(this),bodyScroll:this.onBodyScroll.bind(this),bodyHeightChanged:this.redraw.bind(this,{})}),this.addManagedPropertyListeners(["domLayout","embedFullWidthRows"],()=>this.onDomLayoutChanged()),this.addManagedPropertyListeners(["suppressMaxRenderedRowRestriction","rowBuffer"],()=>this.redraw()),this.addManagedPropertyListener("suppressCellFocus",r=>this.onSuppressCellFocusChanged(r.currentValue)),this.addManagedPropertyListeners(["groupSuppressBlankHeader","getBusinessKeyForNode","fullWidthCellRenderer","fullWidthCellRendererParams","suppressStickyTotalRow","groupRowRenderer","groupRowRendererParams","loadingCellRenderer","loadingCellRendererParams","detailCellRenderer","detailCellRendererParams","enableRangeSelection","enableCellTextSelection"],()=>this.redrawRows()),this.addManagedPropertyListener("cellSelection",({currentValue:r,previousValue:n})=>{(!n&&r||n&&!r)&&this.redrawRows()});const{stickyRowSvc:e,gos:t,showRowGroupCols:o}=this.beans;if(o&&this.addManagedPropertyListener("showOpenedGroup",()=>{const r=o.columns;r.length&&this.refreshCells({columns:r,force:!0})}),e)this.stickyRowFeature=e.createStickyRowFeature(this,this.createRowCon.bind(this),this.destroyRowCtrls.bind(this));else{const r=this.gridBodyCtrl;r.setStickyTopHeight(0),r.setStickyBottomHeight(0)}this.registerCellEventListeners(),this.initialiseCache(),this.printLayout=po(t,"print"),this.embedFullWidthRows=this.printLayout||t.get("embedFullWidthRows"),this.redrawAfterModelUpdate()}initialiseCache(){if(this.gos.get("keepDetailRows")){const e=this.getKeepDetailRowsCount(),t=e??3;this.cachedRowCtrls=new UK(t)}}getKeepDetailRowsCount(){return this.gos.get("keepDetailRowsCount")}getStickyTopRowCtrls(){return this.stickyRowFeature?.stickyTopRowCtrls??[]}getStickyBottomRowCtrls(){return this.stickyRowFeature?.stickyBottomRowCtrls??[]}updateAllRowCtrls(){const e=Object.values(this.rowCtrlsByRowIndex),t=Object.values(this.zombieRowCtrls),o=this.cachedRowCtrls?.getEntries()??[];t.length>0||o.length>0?this.allRowCtrls=[...e,...t,...o]:this.allRowCtrls=e}isCellBeingRendered(e,t){const o=this.rowCtrlsByRowIndex[e];return!t||!o?!!o:o.isFullWidth()?!0:!!this.beans.spannedRowRenderer?.getCellByPosition({rowIndex:e,column:t,rowPinned:null})||!!o.getCellCtrl(t)||!o.isRowRendered()}updateCellFocus(e){for(const t of this.getAllCellCtrls())t.onCellFocused(e);for(const t of this.getFullWidthRowCtrls())t.onFullWidthRowFocused(e)}onCellFocusChanged(e){if(e?.rowIndex!=null&&!e.rowPinned){const t=this.beans.colModel.getCol(e.column)??void 0;this.isCellBeingRendered(e.rowIndex,t)||this.redraw()}this.updateCellFocus(e)}onSuppressCellFocusChanged(e){for(const t of this.getAllCellCtrls())t.onSuppressCellFocusChanged(e);for(const t of this.getFullWidthRowCtrls())t.onSuppressCellFocusChanged(e)}registerCellEventListeners(){this.addManagedEventListeners({cellFocused:e=>this.onCellFocusChanged(e),cellFocusCleared:()=>this.updateCellFocus(),flashCells:e=>{const{cellFlashSvc:t}=this.beans;if(t)for(const o of this.getAllCellCtrls())t.onFlashCells(o,e)},columnHoverChanged:()=>{for(const e of this.getAllCellCtrls())e.onColumnHover()},displayedColumnsChanged:()=>{for(const e of this.getAllCellCtrls())e.onDisplayedColumnsChanged()},displayedColumnsWidthChanged:()=>{if(this.printLayout)for(const e of this.getAllCellCtrls())e.onLeftChanged()}}),this.setupRangeSelectionListeners(),this.refreshListenersToColumnsForCellComps(),this.addManagedEventListeners({gridColumnsChanged:this.refreshListenersToColumnsForCellComps.bind(this)}),this.addDestroyFunc(this.removeGridColumnListeners.bind(this))}removeGridColumnListeners(){for(const e of this.destroyFuncsForColumnListeners)e();this.destroyFuncsForColumnListeners.length=0}refreshListenersToColumnsForCellComps(){this.removeGridColumnListeners();const e=this.colModel.getCols();for(const t of e){const o=c=>{for(const d of this.getAllCellCtrls())d.column===t&&c(d)},r=()=>{o(c=>c.onLeftChanged())},n=()=>{o(c=>c.onWidthChanged())},i=()=>{o(c=>c.onFirstRightPinnedChanged())},s=()=>{o(c=>c.onLastLeftPinnedChanged())},a=()=>{o(c=>c.onColDefChanged())};t.__addEventListener("leftChanged",r),t.__addEventListener("widthChanged",n),t.__addEventListener("firstRightPinnedChanged",i),t.__addEventListener("lastLeftPinnedChanged",s),t.__addEventListener("colDefChanged",a),this.destroyFuncsForColumnListeners.push(()=>{t.__removeEventListener("leftChanged",r),t.__removeEventListener("widthChanged",n),t.__removeEventListener("firstRightPinnedChanged",i),t.__removeEventListener("lastLeftPinnedChanged",s),t.__removeEventListener("colDefChanged",a)})}}onDomLayoutChanged(){const e=po(this.gos,"print"),t=e||this.gos.get("embedFullWidthRows"),o=t!==this.embedFullWidthRows||this.printLayout!==e;this.printLayout=e,this.embedFullWidthRows=t,o&&this.redrawAfterModelUpdate({domLayoutChanged:!0})}datasourceChanged(){this.firstRenderedRow=0,this.lastRenderedRow=-1;const e=Object.keys(this.rowCtrlsByRowIndex);this.removeRowCtrls(e)}onPageLoaded(e){const t={recycleRows:e.keepRenderedRows,animate:e.animate,newData:e.newData,newPage:e.newPage,onlyBody:!0};this.redrawAfterModelUpdate(t)}getAllCellsNotSpanningForColumn(e){const t=[];for(const o of this.getAllRowCtrls()){const r=o.getCellCtrl(e,!0)?.eGui;r&&t.push(r)}return t}refreshFloatingRowComps(e=!0){this.refreshFloatingRows(this.topRowCtrls,"top",e),this.refreshFloatingRows(this.bottomRowCtrls,"bottom",e)}refreshFloatingRows(e,t,o){const{pinnedRowModel:r,beans:n,printLayout:i}=this,s=Object.fromEntries(e.map(c=>[c.rowNode.id,c]));r?.forEachPinnedRow(t,(c,d)=>{const h=e[d];h&&r.getPinnedRowById(h.rowNode.id,t)===void 0&&(h.destroyFirstPass(),h.destroySecondPass()),c.id in s&&o?(e[d]=s[c.id],delete s[c.id]):e[d]=new db(c,n,!1,!1,i)});const a=(t==="top"?r?.getPinnedTopRowCount():r?.getPinnedBottomRowCount())??0;e.length=a}onPinnedRowDataChanged(){const e={recycleRows:!0};this.redrawAfterModelUpdate(e)}onPinnedRowsChanged(){this.redrawAfterModelUpdate({recycleRows:!0})}redrawRow(e,t=!1){if(e.sticky)this.stickyRowFeature?.refreshStickyNode(e);else if(this.cachedRowCtrls?.has(e)){this.cachedRowCtrls.removeRow(e);return}else{const o=r=>{const n=r[e.rowIndex];n&&n.rowNode===e&&(n.destroyFirstPass(),n.destroySecondPass(),r[e.rowIndex]=this.createRowCon(e,!1,!1))};switch(e.rowPinned){case"top":o(this.topRowCtrls);break;case"bottom":o(this.bottomRowCtrls);break;default:o(this.rowCtrlsByRowIndex),this.updateAllRowCtrls()}}t||this.dispatchDisplayedRowsChanged(!1)}redrawRows(e){const{editSvc:t}=this.beans;if(t?.isEditing()&&(t.isBatchEditing()?t.cleanupEditors():t.stopEditing(void 0,{source:"api"})),e!=null){for(const r of e??[])this.redrawRow(r,!0);this.dispatchDisplayedRowsChanged(!1);return}this.redrawAfterModelUpdate()}redrawAfterModelUpdate(e={}){this.getLockOnRefresh();const t=this.beans.focusSvc?.getFocusCellToUseAfterRefresh();this.updateContainerHeights(),this.scrollToTopIfNewData(e);const o=!e.domLayoutChanged&&!!e.recycleRows,r=e.animate&&Za(this.gos),n=o?this.getRowsToRecycle():null;o||this.removeAllRowComps(),this.workOutFirstAndLastRowsToRender();const{stickyRowFeature:i,gos:s}=this;if(i){i.checkStickyRows();const a=i.extraTopHeight+i.extraBottomHeight;a&&this.updateContainerHeights(a)}this.recycleRows(n,r),this.gridBodyCtrl.updateRowCount(),e.onlyBody||this.refreshFloatingRowComps(s.get("enableRowPinning")?o:void 0),this.dispatchDisplayedRowsChanged(),t!=null&&this.restoreFocusedCell(t),this.releaseLockOnRefresh()}scrollToTopIfNewData(e){const t=e.newData||e.newPage,o=this.gos.get("suppressScrollOnNewData");t&&!o&&(this.gridBodyCtrl.scrollFeature.scrollToTop(),this.stickyRowFeature?.resetOffsets())}updateContainerHeights(e=0){const{rowContainerHeight:t}=this;if(this.printLayout){t.setModelHeight(null);return}let o=this.pageBounds.getCurrentPageHeight();o===0&&(o=1),t.setModelHeight(o+e)}getLockOnRefresh(){if(this.refreshInProgress)throw new Error(Cn(252));this.refreshInProgress=!0,this.beans.frameworkOverrides.getLockOnRefresh?.()}releaseLockOnRefresh(){this.refreshInProgress=!1,this.beans.frameworkOverrides.releaseLockOnRefresh?.()}isRefreshInProgress(){return this.refreshInProgress}restoreFocusedCell(e){if(!e)return;const t=this.beans.focusSvc,o=this.findPositionToFocus(e);if(!o){t.focusHeaderPosition({headerPosition:{headerRowIndex:En(this.beans)-1,column:e.column}});return}if(e.rowIndex!==o.rowIndex||e.rowPinned!=o.rowPinned){t.setFocusedCell({...o,preventScrollOnBrowserFocus:!0,forceBrowserFocus:!0});return}t.doesRowOrCellHaveBrowserFocus()||this.updateCellFocus(Ze(this.gos,{...o,forceBrowserFocus:!0,preventScrollOnBrowserFocus:!0,type:"cellFocused"}))}findPositionToFocus(e){const{pagination:t,pageBounds:o}=this.beans;let r=e;for(r.rowPinned==null&&t&&o&&!t.isRowInPage(r.rowIndex)&&(r={rowPinned:null,rowIndex:o.getFirstRow()});r;){if(r.rowPinned==null&&o)if(r.rowIndex<o.getFirstRow()){if(r=Yh(this.beans,{rowPinned:null,rowIndex:0}),!r)return null}else r.rowIndex>o.getLastRow()&&(r={rowPinned:null,rowIndex:o.getLastRow()});const n=this.getRowByPosition(r);if(n?.isAlive())return{...n.getRowPosition(),column:e.column};r=Yh(this.beans,r)}return null}getAllCellCtrls(){const e=[],t=this.getAllRowCtrls(),o=t.length;for(let r=0;r<o;r++){const n=t[r].getAllCellCtrls(),i=n.length;for(let s=0;s<i;s++)e.push(n[s])}return e}getAllRowCtrls(){const{spannedRowRenderer:e}=this.beans,t=this.getStickyTopRowCtrls(),o=this.getStickyBottomRowCtrls();return[...this.topRowCtrls,...this.bottomRowCtrls,...t,...o,...e?.getCtrls("top")??[],...e?.getCtrls("bottom")??[],...e?.getCtrls("center")??[],...Object.values(this.rowCtrlsByRowIndex)]}addRenderedRowListener(e,t,o){const r=this.rowCtrlsByRowIndex[t];r&&r.addEventListener(e,o)}refreshCells({rowNodes:e,columns:t,force:o,suppressFlash:r}={}){const n={force:o,newData:!1,suppressFlash:r};for(const i of this.getCellCtrls(e,t))i.refreshOrDestroyCell(n);this.refreshFullWidth(e)}refreshRows(e={}){for(const t of this.getRowCtrls(e.rowNodes))t.refreshRow(e);this.refreshFullWidth(e.rowNodes)}refreshFullWidth(e){if(!e)return;let t=!1;for(const o of this.getRowCtrls(e)){if(!o.isFullWidth())continue;o.refreshFullWidth()||(t=!0,this.redrawRow(o.rowNode,!0))}t&&this.dispatchDisplayedRowsChanged(!1)}getRowCtrls(e){const t=FE(e),o=this.getAllRowCtrls();return!e||!t?o:o.filter(r=>{const n=r.rowNode;return RE(n,t)})}getCellCtrls(e,t){let o;Ee(t)&&(o={},t.forEach(n=>{const i=this.colModel.getCol(n);Ee(i)&&(o[i.getId()]=!0)}));const r=[];for(const n of this.getRowCtrls(e))for(const i of n.getAllCellCtrls()){const s=i.column.getId();o&&!o[s]||r.push(i)}return r}destroy(){this.removeAllRowComps(!0),super.destroy()}removeAllRowComps(e=!1){const t=Object.keys(this.rowCtrlsByRowIndex);this.removeRowCtrls(t,e),this.stickyRowFeature?.destroyStickyCtrls()}getRowsToRecycle(){const e=[];for(const o of Object.keys(this.rowCtrlsByRowIndex))this.rowCtrlsByRowIndex[o].rowNode.id==null&&e.push(o);this.removeRowCtrls(e);const t={};for(const o of Object.values(this.rowCtrlsByRowIndex)){const r=o.rowNode;t[r.id]=o}return this.rowCtrlsByRowIndex={},t}removeRowCtrls(e,t=!1){for(const o of e){const r=this.rowCtrlsByRowIndex[o];r&&(r.destroyFirstPass(t),r.destroySecondPass()),delete this.rowCtrlsByRowIndex[o]}}onBodyScroll(e){e.direction==="vertical"&&this.redraw({afterScroll:!0})}redraw(e={}){const{focusSvc:t,animationFrameSvc:o}=this.beans,{afterScroll:r}=e;let n;const i=this.stickyRowFeature;i&&(n=t?.getFocusCellToUseAfterRefresh()||void 0);const s=this.firstRenderedRow,a=this.lastRenderedRow;this.workOutFirstAndLastRowsToRender();let c=!1;if(i){c=i.checkStickyRows();const h=i.extraTopHeight+i.extraBottomHeight;h&&this.updateContainerHeights(h)}const d=this.firstRenderedRow!==s||this.lastRenderedRow!==a;if(!(r&&!c&&!d)&&(this.getLockOnRefresh(),this.recycleRows(null,!1,r),this.releaseLockOnRefresh(),this.dispatchDisplayedRowsChanged(r&&!c),n!=null)){const h=t?.getFocusCellToUseAfterRefresh();n!=null&&h==null&&(o?.flushAllFrames(),this.restoreFocusedCell(n))}}removeRowCompsNotToDraw(e,t){const o={};for(const i of e)o[i]=!0;const n=Object.keys(this.rowCtrlsByRowIndex).filter(i=>!o[i]);this.removeRowCtrls(n,t)}calculateIndexesToDraw(e){const t=[];for(let s=this.firstRenderedRow;s<=this.lastRenderedRow;s++)t.push(s);const o=this.beans.pagination,r=this.beans.focusSvc?.getFocusedCell()?.rowIndex;r!=null&&(r<this.firstRenderedRow||r>this.lastRenderedRow)&&(!o||o.isRowInPage(r))&&r<this.rowModel.getRowCount()&&t.push(r);const n=s=>{const a=s.rowNode.rowIndex;a==null||a===r||(a<this.firstRenderedRow||a>this.lastRenderedRow)&&this.doNotUnVirtualiseRow(s)&&t.push(a)};for(const s of Object.values(this.rowCtrlsByRowIndex))n(s);if(e)for(const s of Object.values(e))n(s);t.sort((s,a)=>s-a);const i=[];for(let s=0;s<t.length;s++){const a=t[s],c=this.rowModel.getRow(a);c&&!c.sticky&&i.push(a)}return i}recycleRows(e,t=!1,o=!1){const r=this.calculateIndexesToDraw(e);(this.printLayout||o)&&(t=!1),this.removeRowCompsNotToDraw(r,!t);for(const n of r)this.createOrUpdateRowCtrl(n,e,t,o);if(e){const{animationFrameSvc:n}=this.beans;n?.active&&o&&!this.printLayout?n.addDestroyTask(()=>{this.destroyRowCtrls(e,t),this.updateAllRowCtrls(),this.dispatchDisplayedRowsChanged()}):this.destroyRowCtrls(e,t)}this.updateAllRowCtrls()}dispatchDisplayedRowsChanged(e=!1){this.eventSvc.dispatchEvent({type:"displayedRowsChanged",afterScroll:e})}onDisplayedColumnsChanged(){const{visibleCols:e}=this.beans,t=e.isPinningLeft(),o=e.isPinningRight();(this.pinningLeft!==t||o!==this.pinningRight)&&(this.pinningLeft=t,this.pinningRight=o,this.embedFullWidthRows&&this.redrawFullWidthEmbeddedRows())}redrawFullWidthEmbeddedRows(){const e=[];for(const t of this.getFullWidthRowCtrls()){const o=t.rowNode.rowIndex;e.push(o.toString())}this.refreshFloatingRowComps(),this.removeRowCtrls(e),this.redraw({afterScroll:!0})}getFullWidthRowCtrls(e){const t=FE(e);return this.getAllRowCtrls().filter(o=>{if(!o.isFullWidth())return!1;const r=o.rowNode;return!(t!=null&&!RE(r,t))})}createOrUpdateRowCtrl(e,t,o,r){let n,i=this.rowCtrlsByRowIndex[e];if(i||(n=this.rowModel.getRow(e),Ee(n)&&Ee(t)&&t[n.id]&&n.alreadyRendered&&(i=t[n.id],t[n.id]=null)),!i)if(n||(n=this.rowModel.getRow(e)),Ee(n))i=this.createRowCon(n,o,r);else return;n&&(n.alreadyRendered=!0),this.rowCtrlsByRowIndex[e]=i}destroyRowCtrls(e,t){const o=[];if(e){for(const r of Object.values(e))if(r){if(this.cachedRowCtrls&&r.isCacheable()){this.cachedRowCtrls.addRow(r);continue}if(r.destroyFirstPass(!t),t){const n=r.instanceId;this.zombieRowCtrls[n]=r,o.push(()=>{r.destroySecondPass(),delete this.zombieRowCtrls[n]})}else r.destroySecondPass()}}t&&(o.push(()=>{this.isAlive()&&(this.updateAllRowCtrls(),this.dispatchDisplayedRowsChanged())}),window.setTimeout(()=>{for(const r of o)r()},WK))}getRowBuffer(){return this.gos.get("rowBuffer")}getRowBufferInPixels(){const e=this.getRowBuffer(),t=Qk(this.beans);return e*t}workOutFirstAndLastRowsToRender(){const{rowContainerHeight:e,pageBounds:t,rowModel:o}=this;e.updateOffset();let r,n;if(!o.isRowsToRender())r=0,n=-1;else if(this.printLayout)this.beans.environment.refreshRowHeightVariable(),r=t.getFirstRow(),n=t.getLastRow();else{const h=this.getRowBufferInPixels(),f=this.ctrlsSvc.getScrollFeature(),g=this.gos.get("suppressRowVirtualisation");let m=!1,b,w;do{const E=t.getPixelOffset(),{pageFirstPixel:_,pageLastPixel:P}=t.getCurrentPagePixelRange(),D=e.divStretchOffset,M=f.getVScrollPosition(),A=M.top,O=M.bottom;g?(b=_+D,w=P+D):(b=Math.max(A+E-h,_)+D,w=Math.min(O+E+h,P)+D),this.firstVisibleVPixel=Math.max(A+E,_)+D,this.lastVisibleVPixel=Math.min(O+E,P)+D,m=this.ensureAllRowsInRangeHaveHeightsCalculated(b,w)}while(m);let y=o.getRowIndexAtPixel(b),k=o.getRowIndexAtPixel(w);const C=t.getFirstRow(),F=t.getLastRow();y<C&&(y=C),k>F&&(k=F),r=y,n=k}const i=po(this.gos,"normal"),s=this.gos.get("suppressMaxRenderedRowRestriction"),a=Math.max(this.getRowBuffer(),500);i&&!s&&n-r>a&&(n=r+a);const c=r!==this.firstRenderedRow,d=n!==this.lastRenderedRow;(c||d)&&(this.firstRenderedRow=r,this.lastRenderedRow=n,this.eventSvc.dispatchEvent({type:"viewportChanged",firstRow:r,lastRow:n}))}dispatchFirstDataRenderedEvent(){this.dataFirstRenderedFired||(this.dataFirstRenderedFired=!0,Yn(this.beans,()=>{this.beans.eventSvc.dispatchEvent({type:"firstDataRendered",firstRow:this.firstRenderedRow,lastRow:this.lastRenderedRow})}))}ensureAllRowsInRangeHaveHeightsCalculated(e,t){const o=this.pinnedRowModel?.ensureRowHeightsValid(),r=this.stickyRowFeature?.ensureRowHeightsValid(),{pageBounds:n,rowModel:i}=this,s=i.ensureRowHeightsValid(e,t,n.getFirstRow(),n.getLastRow());return(s||r)&&this.eventSvc.dispatchEvent({type:"recalculateRowBounds"}),r||s||o?(this.updateContainerHeights(),!0):!1}doNotUnVirtualiseRow(e){const r=e.rowNode,n=this.focusSvc.isRowFocused(r.rowIndex,r.rowPinned),i=this.editSvc?.isEditing(e),s=r.detail;return n||i||s?!!this.isRowPresent(r):!1}isRowPresent(e){return this.rowModel.isRowPresent(e)?this.beans.pagination?.isRowInPage(e.rowIndex)??!0:!1}createRowCon(e,t,o){const r=this.cachedRowCtrls?.getRow(e)??null;if(r)return r;const n=o&&!this.printLayout&&!!this.beans.animationFrameSvc?.active;return new db(e,this.beans,t,n,this.printLayout)}getRenderedNodes(){const e=Object.values(this.rowCtrlsByRowIndex).map(r=>r.rowNode),t=this.getStickyTopRowCtrls().map(r=>r.rowNode),o=this.getStickyBottomRowCtrls().map(r=>r.rowNode);return[...t,...e,...o]}getRowByPosition(e){let t;const{rowIndex:o}=e;switch(e.rowPinned){case"top":t=this.topRowCtrls[o];break;case"bottom":t=this.bottomRowCtrls[o];break;default:t=this.rowCtrlsByRowIndex[o],t||(t=this.getStickyTopRowCtrls().find(r=>r.rowNode.rowIndex===o)||null,t||(t=this.getStickyBottomRowCtrls().find(r=>r.rowNode.rowIndex===o)||null));break}return t}isRangeInRenderedViewport(e,t){if(e==null||t==null)return!1;const r=e>this.lastRenderedRow;return!(t<this.firstRenderedRow)&&!r}},UK=class{constructor(e){this.entriesMap={},this.entriesList=[],this.maxCount=e}addRow(e){if(this.entriesMap[e.rowNode.id]=e,this.entriesList.push(e),e.setCached(!0),this.entriesList.length>this.maxCount){const t=this.entriesList[0];t.destroyFirstPass(),t.destroySecondPass(),this.removeFromCache(t)}}getRow(e){if(e?.id==null)return null;const t=this.entriesMap[e.id];return t?(this.removeFromCache(t),t.setCached(!1),t.rowNode!=e?null:t):null}has(e){return this.entriesMap[e.id]!=null}removeRow(e){const t=e.id,o=this.entriesMap[t];delete this.entriesMap[t],zs(this.entriesList,o)}removeFromCache(e){const t=e.rowNode.id;delete this.entriesMap[t],zs(this.entriesList,e)}getEntries(){return this.entriesList}};function FE(e){if(!e)return;const t={top:{},bottom:{},normal:{}};for(const o of e){const r=o.id;switch(o.rowPinned){case"top":t.top[r]=o;break;case"bottom":t.bottom[r]=o;break;default:t.normal[r]=o;break}}return t}function RE(e,t){const o=e.id;switch(e.rowPinned){case"top":return t.top[o]!=null;case"bottom":return t.bottom[o]!=null;default:return t.normal[o]!=null}}var $K=class extends ue{constructor(){super(...arguments),this.beanName="rowNodeSorter"}postConstruct(){const{gos:e}=this;this.isAccentedSort=e.get("accentedSort"),this.primaryColumnsSortGroups=yn(e),this.firstLeaf=Fo(e)?PW:KK,this.addManagedPropertyListener("accentedSort",t=>this.isAccentedSort=t.currentValue),this.addManagedPropertyListener("autoGroupColumnDef",()=>this.primaryColumnsSortGroups=yn(e))}doFullSort(e,t){const o=e.map((r,n)=>({currentPos:n,rowNode:r}));return o.sort(this.compareRowNodes.bind(this,t)),o.map(r=>r.rowNode)}compareRowNodes(e,t,o){const r=t.rowNode,n=o.rowNode;for(let i=0,s=e.length;i<s;i++){const a=e[i],c=a.sort==="desc",d=this.getValue(r,a.column),h=this.getValue(n,a.column);let f;const g=this.getComparator(a,r);if(g)f=g(d,h,r,n,c);else{const b={accentedCompare:this.isAccentedSort};a.type==="absolute"&&(b.transform=XK),f=h8(d,h,b)}if(!isNaN(f)&&f!==0)return a.sort==="asc"?f:f*-1}return t.currentPos-o.currentPos}getComparator(e,t){const o=e.column.getColDef(),r=this.getComparatorFromColDef(o,e);if(r)return r;if(!o.showRowGroup)return;const n=!t.group&&o.field;if(!n)return;const i=this.beans.colModel.getColDefCol(n);if(i)return this.getComparatorFromColDef(i.getColDef(),e)}getComparatorFromColDef(e,t){const o=e.comparator;if(o!=null)return typeof o=="object"?o[Jn(t.type)]:o}getValue(e,t){if(this.primaryColumnsSortGroups&&e.rowGroupColumn===t)return this.getGroupDataValue(e,t);if(e.group&&t.getColDef().showRowGroup)return;const{valueSvc:o,formula:r}=this.beans,n=o.getValue(t,e,!1);return t.isAllowFormula()&&r?.isFormula(n)?r.resolveValue(t,e):n}getGroupDataValue(e,t){const{gos:o,valueSvc:r,colModel:n,showRowGroupCols:i}=this.beans;if(tF(o,n.isPivotActive())){const c=this.firstLeaf(e);return c&&r.getValue(t,c,!1)}const a=i?.getShowRowGroupCol(t.getId());if(a)return e.groupData?.[a.getId()]}},KK=e=>{if(e.data)return e;let t=e.childrenAfterGroup;for(;t?.length;){const o=t[0];if(o.data)return o;t=o.childrenAfterGroup}};function XK(e){if(!e)return e;const t=Number(e);return isNaN(t)?e:Math.abs(t)}function ZK(e){e.sortSvc?.onSortChanged("api")}var Xs=(e,t)=>({tag:"span",ref:`eSort${e}`,cls:`ag-sort-indicator-icon ag-sort-${t} ag-hidden`,attrs:{"aria-hidden":"true"}}),YK={tag:"span",cls:"ag-sort-indicator-container",children:[Xs("Order","order"),Xs("Asc","ascending-icon"),Xs("Desc","descending-icon"),Xs("Mixed","mixed-icon"),Xs("AbsoluteAsc","absolute-ascending-icon"),Xs("AbsoluteDesc","absolute-descending-icon"),Xs("None","none-icon")]},pb=class extends Ro{constructor(e){super(),this.eSortOrder=Te,this.eSortAsc=Te,this.eSortDesc=Te,this.eSortMixed=Te,this.eSortNone=Te,this.eSortAbsoluteAsc=Te,this.eSortAbsoluteDesc=Te,e||this.setTemplate(YK)}attachCustomElements(e,t,o,r,n,i,s){this.eSortOrder=e,this.eSortAsc=t,this.eSortDesc=o,this.eSortMixed=r,this.eSortNone=n,this.eSortAbsoluteAsc=i,this.eSortAbsoluteDesc=s}setupSort(e,t=!1){if(this.column=e,this.suppressOrder=t,this.setupMultiSortIndicator(),!e.isSortable()&&!e.getColDef().showRowGroup)return;this.addInIcon("sortAscending",this.eSortAsc,e),this.addInIcon("sortDescending",this.eSortDesc,e),this.addInIcon("sortUnSort",this.eSortNone,e),this.addInIcon("sortAbsoluteAscending",this.eSortAbsoluteAsc,e),this.addInIcon("sortAbsoluteDescending",this.eSortAbsoluteDesc,e);const o=this.updateIcons.bind(this),r=this.onSortChanged.bind(this);this.addManagedPropertyListener("unSortIcon",o),this.addManagedEventListeners({newColumnsLoaded:o,sortChanged:r,columnRowGroupChanged:r}),this.onSortChanged()}addInIcon(e,t,o){if(t==null)return;const r=zi(e,this.beans,o);r&&t.appendChild(r)}onSortChanged(){this.updateIcons(),this.suppressOrder||this.updateSortOrder()}updateIcons(){const{eSortAsc:e,eSortDesc:t,eSortAbsoluteAsc:o,eSortAbsoluteDesc:r,eSortNone:n,column:i,gos:s,beans:a}=this,c=a.sortSvc.getDisplaySortForColumn(i),d=Jn(c?.type),h=Rh(c?.direction),f=i.getAvailableSortTypes(),g=f.has("default"),m=f.has("absolute"),b=d==="absolute",w=d==="default",y=h==="asc",k=h==="desc";if(e&&kt(e,y&&w&&g,{skipAriaHidden:!0}),t&&kt(t,k&&w&&g,{skipAriaHidden:!0}),n){const C=!i.getColDef().unSortIcon&&!s.get("unSortIcon");kt(n,!C&&!h,{skipAriaHidden:!0})}o&&kt(o,y&&b&&m,{skipAriaHidden:!0}),r&&kt(r,k&&b&&m,{skipAriaHidden:!0})}setupMultiSortIndicator(){const{eSortMixed:e,column:t,gos:o}=this;this.addInIcon("sortUnSort",e,t);const r=t.getColDef().showRowGroup;yn(o)&&r&&(this.addManagedEventListeners({sortChanged:this.updateMultiSortIndicator.bind(this),columnRowGroupChanged:this.updateMultiSortIndicator.bind(this)}),this.updateMultiSortIndicator())}updateMultiSortIndicator(){const{eSortMixed:e,beans:t,column:o}=this;if(e){const r=t.sortSvc.getDisplaySortForColumn(o)?.direction==="mixed";kt(e,r,{skipAriaHidden:!0})}}updateSortOrder(){const{eSortOrder:e,column:t,beans:{sortSvc:o}}=this;if(!e)return;const r=o.getColumnsWithSortingOrdered(),n=o.getDisplaySortIndexForColumn(t)??-1,i=r.some(a=>o.getDisplaySortIndexForColumn(a)??!1),s=n>=0&&i;kt(e,s,{skipAriaHidden:!0}),n>=0?e.textContent=(n+1).toString():Kn(e)}},QK={selector:"AG-SORT-INDICATOR",component:pb},JK=class extends ue{constructor(){super(...arguments),this.beanName="sortSvc"}progressSort(e,t,o){const r=this.getNextSortDirection(e);this.setSortForColumn(e,r,t,o)}progressSortFromEvent(e,t){const r=this.gos.get("multiSortKey")==="ctrl"?t.ctrlKey||t.metaKey:t.shiftKey;this.progressSort(e,r,"uiColumnSorted")}setSortForColumn(e,t,o,r){const{gos:n,showRowGroupCols:i}=this.beans,s=yn(n);let a=[e];if(s&&e.getColDef().showRowGroup){const f=i?.getSourceColumnsForGroupColumn?.(e)?.filter(g=>g.isSortable());f&&(a=[e,...f])}for(const h of a)this.setColSort(h,t,r);const c=(o||n.get("alwaysMultiSort"))&&!n.get("suppressMultiSort"),d=[];if(!c){const h=this.clearSortBarTheseColumns(a,r);d.push(...h)}this.updateSortIndex(e),d.push(...a),this.dispatchSortChangedEvents(r,d)}updateSortIndex(e){const{gos:t,colModel:o,showRowGroupCols:r}=this.beans,n=yn(t),i=r?.getShowRowGroupCol(e.getId()),s=n&&i||e,a=this.getColumnsWithSortingOrdered();o.forAllCols(h=>this.setColSortIndex(h,null));const c=a.filter(h=>n&&h.getColDef().showRowGroup?!1:h!==s);(s.getSortDef()?[...c,s]:c).forEach((h,f)=>this.setColSortIndex(h,f))}onSortChanged(e,t){this.dispatchSortChangedEvents(e,t)}isSortActive(){let e=!1;return this.beans.colModel.forAllCols(t=>{if(t.getSortDef())return e=!0,!0}),e}dispatchSortChangedEvents(e,t){const o={type:"sortChanged",source:e};t&&(o.columns=t),this.eventSvc.dispatchEvent(o)}clearSortBarTheseColumns(e,t){const o=[];return this.beans.colModel.forAllCols(r=>{e.includes(r)||(r.getSortDef()&&o.push(r),this.setColSort(r,void 0,t))}),o}getNextSortDirection(e){const t=e.getSortingOrder(),o=e.getSortDef();let n=t.findIndex(i=>Fh(i,o))+1;return n>=t.length&&(n=0),qr(t[n])}getIndexedSortMap(){const{gos:e,colModel:t,showRowGroupCols:o,rowGroupColsSvc:r}=this.beans;let n=[];if(t.forAllCols(d=>{d.getSortDef()&&n.push(d)}),t.isPivotMode()){const d=yn(e);n=n.filter(h=>{const f=!!h.getAggFunc(),g=!h.isPrimary(),m=d?o?.getShowRowGroupCol(h.getId()):h.getColDef().showRowGroup;return f||g||m})}const i=r?.columns.filter(d=>!!d.getSortDef())??[],s={};n.forEach((d,h)=>s[d.getId()]=h),n.sort((d,h)=>{const f=d.getSortIndex(),g=h.getSortIndex();if(f!=null&&g!=null)return f-g;if(f==null&&g==null){const m=s[d.getId()],b=s[h.getId()];return m>b?1:-1}else return g==null?-1:1});const a=yn(e)&&!!i.length;a&&(n=[...new Set(n.map(d=>o?.getShowRowGroupCol(d.getId())??d))]);const c=new Map;if(n.forEach((d,h)=>c.set(d,h)),a)for(const d of i){const h=o.getShowRowGroupCol(d.getId());c.set(d,c.get(h))}return c}getColumnsWithSortingOrdered(){return[...this.getIndexedSortMap().entries()].sort(([,e],[,t])=>e-t).map(([e])=>e)}collectSortItems(e=!1){const t=[],o=this.getColumnsWithSortingOrdered();for(const r of o){const n=r.getSortDef()?.direction;if(!n)continue;const i=Jn(r.getSortDef()?.type),s={sort:n,type:i};e?s.colId=r.getId():s.column=r,t.push(s)}return t}getSortModel(){return this.collectSortItems(!0)}getSortOptions(){return this.collectSortItems()}canColumnDisplayMixedSort(e){const t=yn(this.gos),o=!!e.getColDef().showRowGroup;return t&&o}getDisplaySortForColumn(e){const t=this.beans.showRowGroupCols?.getSourceColumnsForGroupColumn(e);if(!this.canColumnDisplayMixedSort(e)||!t?.length)return e.getSortDef();const r=e.getColDef().field!=null||!!e.getColDef().valueGetter?[e,...t]:t,n=r[0].getSortDef();return r.every(s=>Fh(s.getSortDef(),n))?n:{type:Jn(e.getSortDef()?.type),direction:"mixed"}}getDisplaySortIndexForColumn(e){return this.getIndexedSortMap().get(e)}setupHeader(e,t){const o=()=>{const{type:r,direction:n}=qr(t.getSortDef());if(e.toggleCss("ag-header-cell-sorted-asc",n==="asc"),e.toggleCss("ag-header-cell-sorted-desc",n==="desc"),e.toggleCss("ag-header-cell-sorted-abs-asc",r==="absolute"&&n==="asc"),e.toggleCss("ag-header-cell-sorted-abs-desc",r==="absolute"&&n==="desc"),e.toggleCss("ag-header-cell-sorted-none",!n),t.getColDef().showRowGroup){const a=!this.beans.showRowGroupCols?.getSourceColumnsForGroupColumn(t)?.every(c=>n==c.getSortDef()?.direction);e.toggleCss("ag-header-cell-sorted-mixed",a)}};e.addManagedEventListeners({sortChanged:o,columnRowGroupChanged:o})}initCol(e){const{sortIndex:t,initialSortIndex:o}=e.colDef,r=hF(e.colDef);r&&e.setSortDef(r,!0),t!==void 0?t!==null&&(e.sortIndex=t):o!==null&&(e.sortIndex=o)}updateColSort(e,t,o){t!==void 0&&this.setColSort(e,qr(t),o)}setColSort(e,t,o){Fh(e.getSortDef(),t)||(e.setSortDef(qr(t),t===void 0),e.dispatchColEvent("sortChanged",o)),e.dispatchStateUpdatedEvent("sort")}setColSortIndex(e,t){e.sortIndex=t,e.dispatchStateUpdatedEvent("sortIndex")}createSortIndicator(e){return new pb(e)}getSortIndicatorSelector(){return QK}},EE={moduleName:"Sort",version:Ve,beans:[JK,$K],apiFunctions:{onSortChanged:ZK},userComponents:{agSortIndicator:pb},icons:{sortAscending:"asc",sortDescending:"desc",sortUnSort:"none",sortAbsoluteAscending:"aasc",sortAbsoluteDescending:"adesc"}},eX=class extends ue{constructor(){super(...arguments),this.beanName="syncSvc",this.waitingForColumns=!1}postConstruct(){this.addManagedPropertyListener("columnDefs",e=>this.setColumnDefs(e))}start(){this.beans.ctrlsSvc.whenReady(this,()=>{const e=this.gos.get("columnDefs");e?this.setColumnsAndData(e):this.waitingForColumns=!0,this.gridReady()})}setColumnsAndData(e){const{colModel:t,rowModel:o}=this.beans;t.setColumnDefs(e??[],"gridInitializing"),o.start()}gridReady(){const{eventSvc:e,gos:t}=this;e.dispatchEvent({type:"gridReady"}),ph(t,`initialised successfully, enterprise = ${t.isModuleRegistered("EnterpriseCore")}`)}setColumnDefs(e){const t=this.gos.get("columnDefs");if(t){if(this.waitingForColumns){this.waitingForColumns=!1,this.setColumnsAndData(t);return}this.beans.colModel.setColumnDefs(t,nl(e.source))}}},tX="paste",oX=class extends ue{constructor(){super(...arguments),this.beanName="changeDetectionSvc",this.clientSideRowModel=null}postConstruct(){const{gos:e,rowModel:t}=this.beans;Fo(e)&&(this.clientSideRowModel=t),this.addManagedEventListeners({cellValueChanged:this.onCellValueChanged.bind(this)})}onCellValueChanged(e){const{gos:t,rowRenderer:o}=this.beans;if(e.source===tX||t.get("suppressChangeDetection"))return;const r=e.node,n=[r],i=this.clientSideRowModel,s=i?.rootNode;if(s&&!r.isRowPinned()){const a=t.get("aggregateOnlyChangedColumns"),c=new tf(a,s);c.addParentNode(r.parent,[e.column]),i.doAggregate(c),c.forEachChangedNodeDepthFirst(d=>{n.push(d),d.sibling&&n.push(d.sibling)})}o.refreshCells({rowNodes:n})}},rX=class extends ue{constructor(){super(...arguments),this.beanName="expressionSvc",this.cache={}}evaluate(e,t){if(typeof e=="string")return this.evaluateExpression(e,t);Ft(15,{expression:e})}evaluateExpression(e,t){try{return this.createExpressionFunction(e)(t.value,t.context,t.oldValue,t.newValue,t.value,t.node,t.data,t.colDef,t.rowIndex,t.api,t.getValue,t.column,t.columnGroup)}catch(o){return Ft(16,{expression:e,params:t,e:o}),null}}createExpressionFunction(e){const t=this.cache;if(t[e])return t[e];const o=this.createFunctionBody(e),r=new Function("x, ctx, oldValue, newValue, value, node, data, colDef, rowIndex, api, getValue, column, columnGroup",o);return t[e]=r,r}createFunctionBody(e){return e.includes("return")?e:"return "+e+";"}},nX={moduleName:"Expression",version:Ve,beans:[rX]},iX={moduleName:"ChangeDetection",version:Ve,beans:[oX]},sX=class extends ue{constructor(){super(...arguments),this.beanName="valueSvc",this.hasEditSvc=!1,this.initialised=!1,this.isSsrm=!1}wireBeans(e){this.expressionSvc=e.expressionSvc,this.colModel=e.colModel,this.valueCache=e.valueCache,this.dataTypeSvc=e.dataTypeSvc,this.editSvc=e.editSvc,this.hasEditSvc=!!e.editSvc,this.formulaDataSvc=e.formulaDataSvc}postConstruct(){this.initialised||this.init()}init(){const{gos:e,valueCache:t}=this;this.executeValueGetter=t?this.executeValueGetterWithValueCache.bind(this):this.executeValueGetterWithoutValueCache.bind(this),this.isSsrm=Qm(e),this.cellExpressions=e.get("enableCellExpressions"),this.isTreeData=e.get("treeData"),this.initialised=!0;const o=r=>this.callColumnCellValueChangedHandler(r);this.eventSvc.addListener("cellValueChanged",o,!0),this.addDestroyFunc(()=>this.eventSvc.removeListener("cellValueChanged",o,!0)),this.addManagedPropertyListener("treeData",r=>this.isTreeData=r.currentValue)}getValueForDisplay(e){const{column:t,node:o,includeValueFormatted:r,useRawFormula:n,exporting:i,source:s="ui"}=e,{showRowGroupColValueSvc:a}=this.beans,c=!t&&o.group,d=t?.colDef.showRowGroup,h=!this.isTreeData||o.footer;if(a&&h&&(c||d)){const F=a.getGroupValue(o,t);if(F==null)return{value:null,valueFormatted:null};if(!r)return{value:F.value,valueFormatted:null};const E=a.formatAndPrefixGroupColValue(F,t,i);return{value:F.value,valueFormatted:E}}if(!t)return{value:o.key,valueFormatted:null};const f=o.leafGroup&&this.colModel.isPivotMode(),g=o.group&&o.expanded&&!o.footer&&!f,m=this.gos.get("groupSuppressBlankHeader")||!o.sibling,b=g&&!m;let w=this.getValue(t,o,b,s),y=w;const{formula:k}=this.beans,C=r&&!(i&&t.colDef.useValueFormatterForExport===!1);return t.isAllowFormula()&&k?.isFormula(w)&&(n?(w=k.normaliseFormula(w,!0),y=k.resolveValue(t,o)):(w=k.resolveValue(t,o),y=w)),{value:w,valueFormatted:C?this.formatValue(t,o,y):null}}getValue(e,t,o=!1,r="ui"){if(this.initialised||this.init(),!t)return;if(this.hasEditSvc&&r==="ui"){const a=this.editSvc;if(a.isEditing()){const c=a.getCellDataValue({rowNode:t,column:e},!0);if(c!==void 0)return c}}const i=e.getColDef().showRowGroup;if(typeof i=="string"&&(this.beans.rowGroupColsSvc?.getColumnIndex(i)??-1)>t.level)return null;let s=this.resolveValue(e,t,o);if(this.cellExpressions&&gk(s)){const a=s.substring(1);s=this.executeValueGetter(a,t.data,e,t)}return s}getFormulaFromDataSource(e,t){const o=this.formulaDataSvc;if(!o?.hasDataSource()||!e.isAllowFormula())return;const r=o.getFormula({column:e,rowNode:t});return gk(r)?r:void 0}resolveValue(e,t,o){const r=e.getColDef(),n=e.getColId(),i=this.isTreeData,s=this.getFormulaFromDataSource(e,t);if(s!==void 0)return s;const a=!o&&t.aggData&&t.aggData[n]!==void 0;if(i&&a)return t.aggData[n];const c=t.data,d=r.field;if(i&&r.valueGetter)return this.executeValueGetter(r.valueGetter,c,e,t);if(i&&d&&c)return Qc(c,d,e.isFieldContainsDots());const h=t.groupData;if(h&&n in h)return t.groupData[n];if(a)return t.aggData[n];const g=r.showRowGroup,m=typeof g!="string"||!t.group,b=this.isSsrm&&o&&!!r.aggFunc,w=this.isSsrm&&t.footer&&t.field&&(g===!0||g===t.field);if(r.valueGetter&&!b)return m?this.executeValueGetter(r.valueGetter,c,e,t):void 0;if(w)return Qc(c,t.field,e.isFieldContainsDots());if(d&&c&&!b)return m?Qc(c,d,e.isFieldContainsDots()):void 0}parseValue(e,t,o,r){const n=e.getColDef();if(n.allowFormula&&this.beans.formula?.isFormula(o))return o;const i=n.valueParser;if(Ee(i)){const s=Ze(this.gos,{node:t,data:t?.data,oldValue:r,newValue:o,colDef:n,column:e});return typeof i=="function"?i(s):this.expressionSvc?.evaluate(i,s)}return o}getDeleteValue(e,t){return Ee(e.getColDef().valueParser)?this.parseValue(e,t,"",this.getValueForDisplay({column:e,node:t}).value)??null:null}formatValue(e,t,o,r,n=!0){const{expressionSvc:i}=this.beans;let s=null,a;const c=e.getColDef();if(r?a=r:n&&(a=c.valueFormatter),a){const d=t?t.data:null,h=Ze(this.gos,{value:o,node:t,data:d,colDef:c,column:e});typeof a=="function"?s=a(h):s=i?i.evaluate(a,h):null}else if(c.refData)return c.refData[o]||"";return s==null&&Array.isArray(o)&&(s=o.join(", ")),s}setValue(e,t,o,r){const n=this.colModel.getColDefCol(t);if(!e||!n)return!1;this.ensureRowData(e);const i=n.getColDef();if(!this.isSetValueSupported({column:n,newValue:o,colDef:i}))return!1;const s=Ze(this.gos,{node:e,data:e.data,oldValue:this.getValue(n,e,void 0,r),newValue:o,colDef:i,column:n});s.newValue=o;const a=this.handleExternalFormulaChange({column:n,eventSource:r,newValue:o,setterParams:s,rowNode:e});if(a!==null)return a;let c=this.computeValueChange({column:n,newValue:o,params:s,rowData:e.data,valueSetter:i.valueSetter,field:i.field});return c===void 0&&(c=!0),c?this.finishValueChange(e,n,s,r):!1}finishValueChange(e,t,o,r){e.resetQuickFilterAggregateText(),this.valueCache?.onDataChanged();const n=this.getValue(t,e);return this.dispatchCellValueChangedEvent(e,o,n,r),e.pinnedSibling&&this.dispatchCellValueChangedEvent(e.pinnedSibling,o,n,r),!0}ensureRowData(e){Ut(e.data)&&(e.data={})}isSetValueSupported(e){const{column:t,newValue:o,colDef:r}=e,{field:n,valueSetter:i}=r,s=this.beans.formula,a=t.isAllowFormula()&&s?.isFormula(o),c=!!this.formulaDataSvc?.hasDataSource();return Ut(n)&&Ut(i)&&!(c&&a)?(he(17),!1):this.dataTypeSvc&&!this.dataTypeSvc.checkType(t,o)?(he(135),!1):!0}handleExternalFormulaChange(e){const{column:t,rowNode:o,newValue:r,eventSource:n,setterParams:i}=e,s=this.beans.formula,a=this.formulaDataSvc;if(!a?.hasDataSource()||!t.isAllowFormula())return null;const c=s?.isFormula(r),d=a.getFormula({column:t,rowNode:o});if(c){if(!(d!==r))return!1;a.setFormula({column:t,rowNode:o,formula:r});const f=s?.resolveValue(t,o),g=t.getColDef();if(Ee(g.valueSetter)||!Ut(g.field)){const m={...i,newValue:f};this.computeValueChange({column:t,newValue:f,params:m,rowData:o.data,valueSetter:g.valueSetter,field:g.field})}return this.finishValueChange(o,t,i,n)}return d!==void 0&&a.setFormula({column:t,rowNode:o,formula:void 0}),null}computeValueChange(e){const{valueSetter:t,params:o,rowData:r,field:n,column:i,newValue:s}=e;return Ee(t)?typeof t=="function"?t(o):this.expressionSvc?.evaluate(t,o):this.setValueUsingField(r,n,s,i.isFieldContainsDots())}dispatchCellValueChangedEvent(e,t,o,r){this.eventSvc.dispatchEvent({type:"cellValueChanged",event:null,rowIndex:e.rowIndex,rowPinned:e.rowPinned,column:t.column,colDef:t.colDef,data:e.data,node:e,oldValue:t.oldValue,newValue:o,value:o,source:r})}callColumnCellValueChangedHandler(e){const t=e.colDef.onCellValueChanged;typeof t=="function"&&this.beans.frameworkOverrides.wrapOutgoing(()=>{t({node:e.node,data:e.data,oldValue:e.oldValue,newValue:e.newValue,colDef:e.colDef,column:e.column,api:e.api,context:e.context})})}setValueUsingField(e,t,o,r){if(!t)return!1;let n=!1;if(!r)n=e[t]===o,n||(e[t]=o);else{const i=t.split(".");let s=e;for(;i.length>0&&s;){const a=i.shift();i.length===0?(n=s[a]===o,n||(s[a]=o)):s=s[a]}}return!n}executeValueGetterWithValueCache(e,t,o,r){const n=o.getColId(),i=this.valueCache.getValue(r,n);if(i!==void 0)return i;const s=this.executeValueGetterWithoutValueCache(e,t,o,r);return this.valueCache.setValue(r,n,s),s}executeValueGetterWithoutValueCache(e,t,o,r){const n=Ze(this.gos,{data:t,node:r,column:o,colDef:o.getColDef(),getValue:this.getValueCallback.bind(this,r)});let i;return typeof e=="function"?i=e(n):i=this.expressionSvc?.evaluate(e,n),i}getValueCallback(e,t){const o=this.colModel.getColDefCol(t);return o?this.getValue(o,e):null}getKeyForNode(e,t){const o=this.getValue(e,t),r=e.getColDef().keyCreator;let n=o;if(r){const i=Ze(this.gos,{value:o,colDef:e.getColDef(),column:e,node:t,data:t.data});n=r(i)}return typeof n=="string"||n==null||(n=String(n),n==="[object Object]"&&he(121)),n}},aX={moduleName:"CommunityCore",version:Ve,beans:[s$,qW,hU,r9,jK,Uq,e$,_$,Q7,yK,CK,qK,sX,n$,JU,i$,pU,eX,aU,lU,z$],icons:{selectOpen:"small-down",smallDown:"small-down",colorPicker:"color-picker",smallUp:"small-up",checkboxChecked:"small-up",checkboxIndeterminate:"checkbox-indeterminate",checkboxUnchecked:"checkbox-unchecked",radioButtonOn:"radio-button-on",radioButtonOff:"radio-button-off",smallLeft:"small-left",smallRight:"small-right"},apiFunctions:{getGridId:UW,destroy:$W,isDestroyed:KW,getGridOption:XW,setGridOption:ZW,updateGridOptions:qR,isModuleRegistered:YW},dependsOn:[nU,xq,Tq,EE,B$,Kq,O$,GK,iX,L$,wK,FK,_K,V$,dU,iU,nX,Qq,TK]},_E={AdvancedFilter:1,AiToolkit:1,AllEnterprise:1,BatchEdit:1,CellSelection:1,Clipboard:1,ColumnMenu:1,ColumnsToolPanel:1,ContextMenu:1,ExcelExport:1,FiltersToolPanel:1,Find:1,GridCharts:1,IntegratedCharts:1,GroupFilter:1,MasterDetail:1,Menu:1,MultiFilter:1,NewFiltersToolPanel:1,Pivot:1,RangeSelection:1,RichSelect:1,RowNumbers:1,RowGrouping:1,RowGroupingPanel:1,ServerSideRowModelApi:1,ServerSideRowModel:1,SetFilter:1,SideBar:1,Sparklines:1,StatusBar:1,TreeData:1,ViewportRowModel:1,Formula:1},gb=["TextFilter","NumberFilter","DateFilter","SetFilter","MultiFilter","GroupFilter","CustomFilter"],lX={EditCore:["TextEditor","NumberEditor","DateEditor","CheckboxEditor","LargeTextEditor","SelectEditor","RichSelect","CustomEditor"],CheckboxCellRenderer:["AllCommunity"],ClientSideRowModelHierarchy:["RowGrouping","Pivot","TreeData"],ColumnFilter:gb,ColumnGroupHeaderComp:["AllCommunity"],ColumnGroup:["AllCommunity"],ColumnHeaderComp:["AllCommunity"],ColumnMove:["AllCommunity"],ColumnResize:["AllCommunity"],CommunityCore:["AllCommunity"],CsrmSsrmSharedApi:["ClientSideRowModelApi","ServerSideRowModelApi"],RowModelSharedApi:["ClientSideRowModelApi","ServerSideRowModelApi"],EnterpriseCore:["AllEnterprise"],FilterCore:[...gb,"QuickFilter","ExternalFilter","AdvancedFilter"],GroupCellRenderer:["RowGrouping","Pivot","TreeData","MasterDetail","ServerSideRowModel"],KeyboardNavigation:["AllCommunity"],LoadingCellRenderer:["ServerSideRowModel"],MenuCore:["ColumnMenu","ContextMenu"],MenuItem:["ColumnMenu","ContextMenu","MultiFilter","IntegratedCharts","ColumnsToolPanel"],Overlay:["AllCommunity"],PinnedColumn:["AllCommunity"],SharedAggregation:["RowGrouping","Pivot","TreeData","ServerSideRowModel"],SharedDragAndDrop:["AllCommunity"],SharedMasterDetail:["MasterDetail","ServerSideRowModel"],SharedMenu:[...gb,"ColumnMenu","ContextMenu"],SharedPivot:["Pivot","ServerSideRowModel"],SharedRowGrouping:["RowGrouping","ServerSideRowModel"],SharedRowSelection:["RowSelection","ServerSideRowModel"],SkeletonCellRenderer:["ServerSideRowModel"],Sort:["AllCommunity"],SsrmInfiniteSharedApi:["InfiniteRowModel","ServerSideRowModelApi"],SharedTreeData:["TreeData","ServerSideRowModel"]},cX={InfiniteRowModel:"infinite",ClientSideRowModelApi:"clientSide",ClientSideRowModel:"clientSide",ServerSideRowModelApi:"serverSide",ServerSideRowModel:"serverSide",ViewportRowModel:"viewport"};function uX(e,t){const o=[];for(const r of Array.isArray(e)?e:[e]){const n=lX[r];if(n)for(const i of n){const s=cX[i];(!s||s===t)&&o.push(i)}else o.push(r)}return o}var PE=()=>`No AG Grid modules are registered! It is recommended to start with all Community features via the AllCommunityModule:
|
|
68
|
+
|
|
69
|
+
import { ModuleRegistry, AllCommunityModule } from 'ag-grid-community';
|
|
70
|
+
|
|
71
|
+
ModuleRegistry.registerModules([ AllCommunityModule ]);
|
|
72
|
+
`,dX=e=>{const t=e.map(r=>`import { ${tu(r)} } from '${_E[r]?"ag-grid-enterprise":"ag-grid-community"}';`);return e.some(r=>r==="IntegratedCharts"||r==="Sparklines")&&t.push("import { AgChartsEnterpriseModule } from 'ag-charts-enterprise';"),`import { ModuleRegistry } from 'ag-grid-community';
|
|
73
|
+
${t.join(`
|
|
74
|
+
`)}
|
|
75
|
+
|
|
76
|
+
ModuleRegistry.registerModules([ ${e.map(r=>tu(r,!0)).join(", ")} ]);
|
|
77
|
+
|
|
78
|
+
For more info see: ${Xa}/modules/`};function tu(e,t=!1){return t&&(e==="IntegratedCharts"||e==="Sparklines")?`${e}Module.with(AgChartsEnterpriseModule)`:`${e}Module`}function hX(e,t){const o=t.filter(i=>i==="IntegratedCharts"||i==="Sparklines");let r="";return!globalThis?.agCharts&&o.length>0?r=`Unable to use ${e} as either the ag-charts-community or ag-charts-enterprise script needs to be included alongside ag-grid-enterprise.
|
|
79
|
+
`:t.some(i=>_E[i])&&(r=r+`Unable to use ${e} as that requires the ag-grid-enterprise script to be included.
|
|
80
|
+
`),r}function DE({moduleName:e,rowModelType:t}){return`To use the ${e}Module you must set the gridOption "rowModelType='${t}'"`}var TE=({reasonOrId:e,moduleName:t,gridScoped:o,gridId:r,rowModelType:n,additionalText:i,isUmd:s})=>{const a=uX(t,n),c=typeof e=="string"?e:mX[e];if(s)return hX(c,a);const d=a.filter(g=>g==="IntegratedCharts"||g==="Sparklines"),h=d.length>0?`${d.map(g=>tu(g)).join()} must be initialised with an AG Charts module. One of 'AgChartsCommunityModule' / 'AgChartsEnterpriseModule'.`:"";return`${`Unable to use ${c} as ${a.length>1?"one of "+a.map(g=>tu(g)).join(", "):tu(a[0])} is not registered${o?" for gridId: "+r:""}. ${h} Check if you have registered the module:
|
|
81
|
+
`}
|
|
82
|
+
${dX(a)}`+(i?`
|
|
83
|
+
|
|
84
|
+
${i}`:"")},ME=e=>`${e} must be initialised with an AG Charts module. One of 'AgChartsCommunityModule' / 'AgChartsEnterpriseModule'.
|
|
85
|
+
|
|
86
|
+
import { AgChartsEnterpriseModule } from 'ag-charts-enterprise';
|
|
87
|
+
import { ModuleRegistry } from 'ag-grid-community';
|
|
88
|
+
import { ${e} } from 'ag-grid-enterprise';
|
|
89
|
+
|
|
90
|
+
ModuleRegistry.registerModules([${e}.with(AgChartsEnterpriseModule)]);
|
|
91
|
+
`,fX=e=>`AG Grid: Unable to use the Clipboard API (navigator.clipboard.${e}()). The reason why it could not be used has been logged in the previous line. For this reason the grid has defaulted to using a workaround which doesn't perform as well. Either fix why Clipboard API is blocked, OR stop this message from appearing by setting grid property suppressClipboardApi=true (which will default the grid to using the workaround rather than the API.`,pX={1:()=>"`rowData` must be an array",2:({nodeId:e})=>`Duplicate node id '${e}' detected from getRowId callback, this could cause issues in your grid.`,3:()=>"Calling gridApi.resetRowHeights() makes no sense when using Auto Row Height.",4:({id:e})=>`Could not find row id=${e}, data item was not found for this id`,5:({data:e})=>["Could not find data item as object was not found.",e," Consider using getRowId to help the Grid find matching row data"],6:()=>"'groupHideOpenParents' only works when specifying specific columns for 'colDef.showRowGroup'",7:()=>"Pivoting is not supported with aligned grids as it may produce different columns in each grid.",8:({key:e})=>`Unknown key for navigation ${e}`,9:({variable:e})=>`No value for ${e?.cssName}. This usually means that the grid has been initialised before styles have been loaded. The default value of ${e?.defaultValue} will be used and updated when styles load.`,10:({eventType:e})=>`As of v33, the '${e}' event is deprecated. Use the global 'modelUpdated' event to determine when row children have changed.`,11:()=>"No gridOptions provided to createGrid",12:({colKey:e})=>["column ",e," not found"],13:()=>"Could not find rowIndex, this means tasks are being executed on a rowNode that has been removed from the grid.",14:({groupPrefix:e})=>`Row IDs cannot start with ${e}, this is a reserved prefix for AG Grid's row grouping feature.`,15:({expression:e})=>["value should be either a string or a function",e],16:({expression:e,params:t,e:o})=>["Processing of the expression failed","Expression = ",e,"Params = ",t,"Exception = ",o],17:()=>"you need either field or valueSetter set on colDef for editing to work",18:()=>"alignedGrids contains an undefined option.",19:()=>"alignedGrids - No api found on the linked grid.",20:()=>`You may want to configure via a callback to avoid setup race conditions:
|
|
92
|
+
"alignedGrids: () => [linkedGrid]"`,21:()=>"pivoting is not supported with aligned grids. You can only use one of these features at a time in a grid.",22:({key:e})=>`${e} is an initial property and cannot be updated.`,23:()=>"The return of `getRowHeight` cannot be zero. If the intention is to hide rows, use a filter instead.",24:()=>"row height must be a number if not using standard row model",25:({id:e})=>["The getRowId callback must return a string. The ID ",e," is being cast to a string."],26:({fnName:e,preDestroyLink:t})=>`Grid API function ${e}() cannot be called as the grid has been destroyed.
|
|
93
|
+
Either clear local references to the grid api, when it is destroyed, or check gridApi.isDestroyed() to avoid calling methods against a destroyed grid.
|
|
94
|
+
To run logic when the grid is about to be destroyed use the gridPreDestroy event. See: ${t}`,27:({fnName:e,module:t})=>`API function '${e}' not registered to module '${t}'`,28:()=>"setRowCount cannot be used while using row grouping.",29:()=>"tried to call sizeColumnsToFit() but the grid is coming back with zero width, maybe the grid is not visible yet on the screen?",30:({toIndex:e})=>["tried to insert columns in invalid location, toIndex = ",e,"remember that you should not count the moving columns when calculating the new index"],31:()=>"infinite loop in resizeColumnSets",32:()=>"applyColumnState() - the state attribute should be an array, however an array was not found. Please provide an array of items (one for each col you want to change) for state.",33:()=>"stateItem.aggFunc must be a string. if using your own aggregation functions, register the functions first before using them in get/set state. This is because it is intended for the column state to be stored and retrieved as simple JSON.",34:({key:e})=>`the column type '${e}' is a default column type and cannot be overridden.`,35:()=>"Column type definitions 'columnTypes' with a 'type' attribute are not supported because a column type cannot refer to another column type. Only column definitions 'columnDefs' can use the 'type' attribute to refer to a column type.",36:({t:e})=>"colDef.type '"+e+"' does not correspond to defined gridOptions.columnTypes",37:()=>"Changing the column pinning status is not allowed with domLayout='print'",38:({iconName:e})=>`provided icon '${e}' needs to be a string or a function`,39:()=>"Applying column order broke a group where columns should be married together. Applying new order has been discarded.",40:({e,method:t})=>`${e}
|
|
95
|
+
${fX(t)}`,41:()=>"Browser did not allow document.execCommand('copy'). Ensure 'api.copySelectedRowsToClipboard() is invoked via a user event, i.e. button click, otherwise the browser will prevent it for security reasons.",42:()=>"Browser does not support document.execCommand('copy') for clipboard operations",43:({iconName:e})=>`As of v33, icon '${e}' is deprecated. Use the icon CSS name instead.`,44:()=>'Data type definition hierarchies (via the "extendsDataType" property) cannot contain circular references.',45:({parentCellDataType:e})=>`The data type definition ${e} does not exist.`,46:()=>'The "baseDataType" property of a data type definition must match that of its parent.',47:({cellDataType:e})=>`Missing data type definition - "${e}"`,48:({property:e})=>`Cell data type is "object" but no Value ${e} has been provided. Please either provide an object data type definition with a Value ${e}, or set "colDef.value${e}"`,49:({methodName:e})=>`Framework component is missing the method ${e}()`,50:({compName:e})=>`Could not find component ${e}, did you forget to configure this component?`,51:()=>"Export cancelled. Export is not allowed as per your configuration.",52:()=>"There is no `window` associated with the current `document`",53:()=>"unknown value type during csv conversion",54:()=>"Could not find document body, it is needed for drag and drop and context menu.",55:()=>"addRowDropZone - A container target needs to be provided",56:()=>"addRowDropZone - target already exists in the list of DropZones. Use `removeRowDropZone` before adding it again.",57:()=>"unable to show popup filter, filter instantiation failed",58:()=>"no values found for select cellEditor",59:()=>"cannot select pinned rows",60:()=>"cannot select node until it has finished loading",61:()=>"since version v32.2.0, rowNode.isFullWidthCell() has been deprecated. Instead check `rowNode.detail` followed by the user provided `isFullWidthRow` grid option.",62:({colId:e})=>`setFilterModel() - no column found for colId: ${e}`,63:({colId:e})=>`setFilterModel() - unable to fully apply model, filtering disabled for colId: ${e}`,64:({colId:e})=>`setFilterModel() - unable to fully apply model, unable to create filter for colId: ${e}`,65:()=>"filter missing setModel method, which is needed for setFilterModel",66:()=>"filter API missing getModel method, which is needed for getFilterModel",67:()=>"Filter is missing isFilterActive() method",68:()=>"Column Filter API methods have been disabled as Advanced Filters are enabled.",69:({guiFromFilter:e})=>`getGui method from filter returned ${e}; it should be a DOM element.`,70:({newFilter:e})=>`Grid option quickFilterText only supports string inputs, received: ${typeof e}`,71:()=>"debounceMs is ignored when apply button is present",72:({keys:e})=>["ignoring FilterOptionDef as it doesn't contain one of ",e],73:()=>"invalid FilterOptionDef supplied as it doesn't contain a 'displayKey'",74:()=>"no filter options for filter",75:()=>"Unknown button type specified",76:({filterModelType:e})=>['Unexpected type of filter "',e,'", it looks like the filter was configured with incorrect Filter Options'],77:()=>"Filter model is missing 'conditions'",78:()=>'Filter Model contains more conditions than "filterParams.maxNumConditions". Additional conditions have been ignored.',79:()=>'"filterParams.maxNumConditions" must be greater than or equal to zero.',80:()=>'"filterParams.numAlwaysVisibleConditions" must be greater than or equal to zero.',81:()=>'"filterParams.numAlwaysVisibleConditions" cannot be greater than "filterParams.maxNumConditions".',82:({param:e})=>`DateFilter ${e} is not a number`,83:()=>"DateFilter minValidYear should be <= maxValidYear",84:()=>"DateFilter minValidDate should be <= maxValidDate",85:()=>"DateFilter should not have both minValidDate and minValidYear parameters set at the same time! minValidYear will be ignored.",86:()=>"DateFilter should not have both maxValidDate and maxValidYear parameters set at the same time! maxValidYear will be ignored.",87:()=>"DateFilter parameter minValidDate should always be lower than or equal to parameter maxValidDate.",88:({index:e})=>`Invalid row index for ensureIndexVisible: ${e}`,89:()=>"A template was provided for Header Group Comp - templates are only supported for Header Comps (not groups)",90:()=>"datasource is missing getRows method",91:()=>"Filter is missing method doesFilterPass",92:()=>"AnimationFrameService called but animation frames are off",93:()=>"cannot add multiple ranges when `cellSelection.suppressMultiRanges = true`",94:({paginationPageSizeOption:e,pageSizeSet:t,pageSizesSet:o,pageSizeOptions:r})=>`'paginationPageSize=${e}'${t?"":" (default value)"}, but ${e} is not included in${o?"":" the default"} paginationPageSizeSelector=[${r?.join(", ")}].`,95:({paginationPageSizeOption:e,paginationPageSizeSelector:t})=>`Either set '${t}' to an array that includes ${e} or to 'false' to disable the page size selector.`,96:({id:e,data:t})=>["Duplicate ID",e,"found for pinned row with data",t,"When `getRowId` is defined, it must return unique IDs for all pinned rows. Use the `rowPinned` parameter."],97:({colId:e})=>`cellEditor for column ${e} is missing getGui() method`,98:()=>"popup cellEditor does not work with fullRowEdit - you cannot use them both - either turn off fullRowEdit, or stop using popup editors.",99:()=>"Since v32, `api.hideOverlay()` does not hide the loading overlay when `loading=true`. Set `loading=false` instead.",101:({propertyName:e,componentName:t,agGridDefaults:o,jsComps:r})=>{const n=[],i=[...Object.keys(o??[]).filter(a=>!["agCellEditor","agGroupRowRenderer","agSortIndicator"].includes(a)),...Object.keys(r??[]).filter(a=>!!r[a])],s=xv({inputValue:t,allSuggestions:i,hideIrrelevant:!0,filterByPercentageOfBestMatch:.8}).values;return n.push(`Could not find '${t}' component. It was configured as "${e}: '${t}'" but it wasn't found in the list of registered components.
|
|
96
|
+
`),s.length>0&&n.push(` Did you mean: [${s.slice(0,3)}]?
|
|
97
|
+
`),n.push("If using a custom component check it has been registered correctly."),n},102:()=>"selectAll: 'filtered' only works when gridOptions.rowModelType='clientSide'",103:()=>"Invalid selection state. When using client-side row model, the state must conform to `string[]`.",104:({value:e,param:t})=>`Numeric value ${e} passed to ${t} param will be interpreted as ${e} seconds. If this is intentional use "${e}s" to silence this warning.`,105:({e})=>["chart rendering failed",e],106:()=>`Theming API and Legacy Themes are both used in the same page. A Theming API theme has been provided to the 'theme' grid option, but the file (ag-grid.css) is also included and will cause styling issues. Remove ag-grid.css from the page. See the migration guide: ${Xa}/theming-migration/`,107:({key:e,value:t})=>`Invalid value for theme param ${e} - ${t}`,108:({e})=>["chart update failed",e],109:({inputValue:e,allSuggestions:t})=>{const o=xv({inputValue:e,allSuggestions:t,hideIrrelevant:!0,filterByPercentageOfBestMatch:.8}).values;return[`Could not find '${e}' aggregate function. It was configured as "aggFunc: '${e}'" but it wasn't found in the list of registered aggregations.`,o.length>0?` Did you mean: [${o.slice(0,3)}]?`:"","If using a custom aggregation function check it has been registered correctly."].join(`
|
|
98
|
+
`)},110:()=>"groupHideOpenParents only works when specifying specific columns for colDef.showRowGroup",111:()=>"Invalid selection state. When `groupSelects` is enabled, the state must conform to `IServerSideGroupSelectionState`.",113:()=>"Set Filter cannot initialise because you are using a row model that does not contain all rows in the browser. Either use a different filter type, or configure Set Filter such that you provide it with values",114:({component:e})=>`Could not find component with name of ${e}. Is it in Vue.components?`,116:()=>"Invalid selection state. The state must conform to `IServerSideSelectionState`.",117:()=>"selectAll must be of boolean type.",118:()=>"Infinite scrolling must be enabled in order to set the row count.",119:()=>"Unable to instantiate filter",120:()=>"MultiFloatingFilterComp expects MultiFilter as its parent",121:()=>"a column you are grouping or pivoting by has objects as values. If you want to group by complex objects then either a) use a colDef.keyCreator (see AG Grid docs) or b) to toString() on the object to return a key",122:()=>"could not find the document, document is empty",123:()=>"Advanced Filter is only supported with the Client-Side Row Model or Server-Side Row Model.",124:()=>"No active charts to update.",125:({chartId:e})=>`Unable to update chart. No active chart found with ID: ${e}.`,126:()=>"unable to restore chart as no chart model is provided",127:({allRange:e})=>`unable to create chart as ${e?"there are no columns in the grid":"no range is selected"}.`,128:({feature:e})=>`${e} is only available if using 'multiRow' selection mode.`,129:({feature:e,rowModel:t})=>`${e} is only available if using 'clientSide' or 'serverSide' rowModelType, you are using ${t}.`,130:()=>'cannot multi select unless selection mode is "multiRow"',132:()=>"Row selection features are not available unless `rowSelection` is enabled.",133:({iconName:e})=>`icon '${e}' function should return back a string or a dom object`,134:({iconName:e})=>`Did not find icon '${e}'`,135:()=>"Data type of the new value does not match the cell data type of the column",136:()=>"Unable to update chart as the 'type' is missing. It must be either 'rangeChartUpdate', 'pivotChartUpdate', or 'crossFilterChartUpdate'.",137:({type:e,currentChartType:t})=>`Unable to update chart as a '${e}' update type is not permitted on a ${t}.`,138:({chartType:e})=>`invalid chart type supplied: ${e}`,139:({customThemeName:e})=>`a custom chart theme with the name ${e} has been supplied but not added to the 'chartThemes' list`,140:({name:e})=>`no stock theme exists with the name '${e}' and no custom chart theme with that name was supplied to 'customChartThemes'`,141:()=>"cross filtering with row grouping is not supported.",142:()=>"cross filtering is only supported in the client side row model.",143:({panel:e})=>`'${e}' is not a valid Chart Tool Panel name`,144:({type:e})=>`Invalid charts data panel group name supplied: '${e}'`,145:({group:e})=>`As of v32, only one charts customize panel group can be expanded at a time. '${e}' will not be expanded.`,146:({comp:e})=>`Unable to instantiate component '${e}' as its module hasn't been loaded. Add 'ValidationModule' to see which module is required.`,147:({group:e})=>`Invalid charts customize panel group name supplied: '${e}'`,148:({group:e})=>`invalid chartGroupsDef config '${e}'`,149:({group:e,chartType:t})=>`invalid chartGroupsDef config '${e}.${t}'`,150:()=>"'seriesChartTypes' are required when the 'customCombo' chart type is specified.",151:({chartType:e})=>`invalid chartType '${e}' supplied in 'seriesChartTypes', converting to 'line' instead.`,152:({colId:e})=>`no 'seriesChartType' found for colId = '${e}', defaulting to 'line'.`,153:({chartDataType:e})=>`unexpected chartDataType value '${e}' supplied, instead use 'category', 'series' or 'excluded'`,154:({colId:e})=>`cross filtering requires a 'agSetColumnFilter' or 'agMultiColumnFilter' to be defined on the column with id: ${e}`,155:({option:e})=>`'${e}' is not a valid Chart Toolbar Option`,156:({panel:e})=>`Invalid panel in chartToolPanelsDef.panels: '${e}'`,157:({unrecognisedGroupIds:e})=>["unable to find group(s) for supplied groupIds:",e],158:()=>"can not expand a column item that does not represent a column group header",159:()=>"Invalid params supplied to createExcelFileForExcel() - `ExcelExportParams.data` is empty.",160:()=>"Export cancelled. Export is not allowed as per your configuration.",161:()=>"The Excel Exporter is currently on Multi Sheet mode. End that operation by calling 'api.getMultipleSheetAsExcel()' or 'api.exportMultipleSheetsAsExcel()'",162:({id:e,dataType:t})=>`Unrecognized data type for excel export [${e}.dataType=${t}]`,163:({featureName:e})=>`Excel table export does not work with ${e}. The exported Excel file will not contain any Excel tables.
|
|
99
|
+
Please turn off ${e} to enable Excel table exports.`,164:()=>"Unable to add data table to Excel sheet: A table already exists.",165:()=>"Unable to add data table to Excel sheet: Missing required parameters.",166:({unrecognisedGroupIds:e})=>["unable to find groups for these supplied groupIds:",e],167:({unrecognisedColIds:e})=>["unable to find columns for these supplied colIds:",e],168:()=>"detailCellRendererParams.template should be function or string",169:()=>'Reference to eDetailGrid was missing from the details template. Please add data-ref="eDetailGrid" to the template.',170:({providedStrategy:e})=>`invalid cellRendererParams.refreshStrategy = ${e} supplied, defaulting to refreshStrategy = 'rows'.`,171:()=>"could not find detail grid options for master detail, please set gridOptions.detailCellRendererParams.detailGridOptions",172:()=>"could not find getDetailRowData for master / detail, please set gridOptions.detailCellRendererParams.getDetailRowData",173:({group:e})=>`invalid chartGroupsDef config '${e}'`,174:({group:e,chartType:t})=>`invalid chartGroupsDef config '${e}.${t}'`,175:({menuTabName:e,itemsToConsider:t})=>[`Trying to render an invalid menu item '${e}'. Check that your 'menuTabs' contains one of `,t],176:({key:e})=>`unknown menu item type ${e}`,177:()=>"valid values for cellSelection.handle.direction are 'x', 'y' and 'xy'. Default to 'xy'.",178:({colId:e})=>`column ${e} is not visible`,179:()=>"totalValueGetter should be either a function or a string (expression)",180:()=>"agRichSelectCellEditor requires cellEditorParams.values to be set",181:()=>"agRichSelectCellEditor cannot have `multiSelect` and `allowTyping` set to `true`. AllowTyping has been turned off.",182:()=>'you cannot mix groupDisplayType = "multipleColumns" with treeData, only one column can be used to display groups when doing tree data',183:()=>"Group Column Filter only works on group columns. Please use a different filter.",184:({parentGroupData:e,childNodeData:t})=>["duplicate group keys for row data, keys should be unique",[e,t]],185:({data:e})=>["getDataPath() should not return an empty path",[e]],186:({rowId:e,rowData:t,duplicateRowsData:o})=>["duplicate group keys for row data, keys should be unique",e,t,...o??[]],187:({rowId:e,firstData:t,secondData:o})=>[`Duplicate node id ${e}. Row IDs are provided via the getRowId() callback. Please modify the getRowId() callback code to provide unique row id values.`,"first instance",t,"second instance",o],188:e=>`getRowId callback must be provided for Server Side Row Model ${e?.feature||"selection"} to work correctly.`,189:({startRow:e})=>`invalid value ${e} for startRow, the value should be >= 0`,190:({rowGroupId:e,data:t})=>["null and undefined values are not allowed for server side row model keys",e?`column = ${e}`:"","data is ",t],194:({method:e})=>`calling gridApi.${e}() is only possible when using rowModelType=\`clientSide\`.`,195:({justCurrentPage:e})=>`selecting just ${e?"current page":"filtered"} only works when gridOptions.rowModelType='clientSide'`,196:({key:e})=>`Provided ids must be of string type. Invalid id provided: ${e}`,197:()=>"`toggledNodes` must be an array of string ids.",199:()=>"getSelectedNodes and getSelectedRows functions cannot be used with select all functionality with the server-side row model. Use `api.getServerSideSelectionState()` instead.",200:TE,201:({rowModelType:e})=>`Could not find row model for rowModelType = ${e}`,202:()=>"`getSelectedNodes` and `getSelectedRows` functions cannot be used with `groupSelectsChildren` and the server-side row model. Use `api.getServerSideSelectionState()` instead.",203:()=>"Server Side Row Model does not support Dynamic Row Height and Cache Purging. Either a) remove getRowHeight() callback or b) remove maxBlocksInCache property. Purging has been disabled.",204:()=>"Server Side Row Model does not support Auto Row Height and Cache Purging. Either a) remove colDef.autoHeight or b) remove maxBlocksInCache property. Purging has been disabled.",205:({duplicateIdText:e})=>`Unable to display rows as duplicate row ids (${e}) were returned by the getRowId callback. Please modify the getRowId callback to provide unique ids.`,206:()=>"getRowId callback must be implemented for transactions to work. Transaction was ignored.",207:()=>'The Set Filter Parameter "defaultToNothingSelected" value was ignored because it does not work when "excelMode" is used.',208:()=>"Set Filter Value Formatter must return string values. Please ensure the Set Filter Value Formatter returns string values for complex objects.",209:()=>`Set Filter Key Creator is returning null for provided values and provided values are primitives. Please provide complex objects. See ${Xa}/filter-set-filter-list/#filter-value-types`,210:()=>"Set Filter has a Key Creator, but provided values are primitives. Did you mean to provide complex objects?",211:()=>"property treeList=true for Set Filter params, but you did not provide a treeListPathGetter or values of type Date.",212:()=>"please review all your toolPanel components, it seems like at least one of them doesn't have an id",213:()=>"Advanced Filter does not work with Filters Tool Panel. Filters Tool Panel has been disabled.",214:({key:e})=>`unable to lookup Tool Panel as invalid key supplied: ${e}`,215:({key:e,defaultByKey:t})=>`the key ${e} is not a valid key for specifying a tool panel, valid keys are: ${Object.keys(t??{}).join(",")}`,216:({name:e})=>`Missing component for '${e}'`,217:({invalidColIds:e})=>["unable to find grid columns for the supplied colDef(s):",e],218:({property:e,defaultOffset:t})=>`${e} must be a number, the value you provided is not a valid number. Using the default of ${t}px.`,219:({property:e})=>`Property ${e} does not exist on the target object.`,220:({lineDash:e})=>`'${e}' is not a valid 'lineDash' option.`,221:()=>"agAggregationComponent should only be used with the client and server side row model.",222:()=>"agFilteredRowCountComponent should only be used with the client side row model.",223:()=>"agSelectedRowCountComponent should only be used with the client and server side row model.",224:()=>"agTotalAndFilteredRowCountComponent should only be used with the client side row model.",225:()=>"agTotalRowCountComponent should only be used with the client side row model.",226:()=>"viewport is missing init method.",227:()=>"menu item icon must be DOM node or string",228:({menuItemOrString:e})=>`unrecognised menu item ${e}`,230:()=>"detailCellRendererParams.template is not supported by AG Grid React. To change the template, provide a Custom Detail Cell Renderer. See https://www.ag-grid.com/react-data-grid/master-detail-custom-detail/",231:()=>"As of v32, using custom components with `reactiveCustomComponents = false` is deprecated.",232:()=>"Using both rowData and v-model. rowData will be ignored.",233:({methodName:e})=>`Framework component is missing the method ${e}()`,234:()=>'Group Column Filter does not work with the colDef property "field". This property will be ignored.',235:()=>'Group Column Filter does not work with the colDef property "filterValueGetter". This property will be ignored.',236:()=>'Group Column Filter does not work with the colDef property "filterParams". This property will be ignored.',237:()=>"Group Column Filter does not work with Tree Data enabled. Please disable Tree Data, or use a different filter.",238:()=>"setRowCount can only accept a positive row count.",239:()=>'Theming API and CSS File Themes are both used in the same page. In v33 we released the Theming API as the new default method of styling the grid. See the migration docs https://www.ag-grid.com/react-data-grid/theming-migration/. Because no value was provided to the `theme` grid option it defaulted to themeQuartz. But the file (ag-grid.css) is also included and will cause styling issues. Either pass the string "legacy" to the theme grid option to use v32 style themes, or remove ag-grid.css from the page to use Theming API.',240:({theme:e})=>`theme grid option must be a Theming API theme object or the string "legacy", received: ${e}`,243:()=>"Failed to deserialize state - each provided state object must be an object.",244:()=>"Failed to deserialize state - `selectAllChildren` must be a boolean value or undefined.",245:()=>"Failed to deserialize state - `toggledNodes` must be an array.",246:()=>"Failed to deserialize state - Every `toggledNode` requires an associated string id.",247:()=>`Row selection state could not be parsed due to invalid data. Ensure all child state has toggledNodes or does not conform with the parent rule.
|
|
100
|
+
Please rebuild the selection state and reapply it.`,248:()=>"SetFloatingFilter expects SetFilter as its parent",249:()=>"Must supply a Value Formatter in Set Filter params when using a Key Creator",250:()=>"Must supply a Key Creator in Set Filter params when `treeList = true` on a group column, and Tree Data or Row Grouping is enabled.",251:({chartType:e})=>`AG Grid: Unable to create chart as an invalid chartType = '${e}' was supplied.`,252:()=>`cannot get grid to draw rows when it is in the middle of drawing rows.
|
|
101
|
+
Your code probably called a grid API method while the grid was in the render stage.
|
|
102
|
+
To overcome this, put the API call into a timeout, e.g. instead of api.redrawRows(), call setTimeout(function() { api.redrawRows(); }, 0).
|
|
103
|
+
To see what part of your code that caused the refresh check this stacktrace.`,253:({version:e})=>["Illegal version string: ",e],254:()=>"Cannot create chart: no chart themes available.",255:({point:e})=>`Lone surrogate U+${e?.toString(16).toUpperCase()} is not a scalar value`,256:()=>"Unable to initialise. See validation error, or load ValidationModule if missing.",257:()=>ME("IntegratedChartsModule"),258:()=>ME("SparklinesModule"),259:({part:e})=>`the argument to theme.withPart must be a Theming API part object, received: ${e}`,260:({propName:e,compName:t,gridScoped:o,gridId:r,rowModelType:n})=>TE({reasonOrId:`AG Grid '${e}' component: ${t}`,moduleName:ml[t],gridId:r,gridScoped:o,rowModelType:n}),261:()=>"As of v33, `column.isHovered()` is deprecated. Use `api.isColumnHovered(column)` instead.",262:()=>'As of v33, icon key "smallDown" is deprecated. Use "advancedFilterBuilderSelect" for Advanced Filter Builder dropdown, "selectOpen" for Select cell editor and dropdowns (e.g. Integrated Charts menu), "richSelectOpen" for Rich Select cell editor.',263:()=>'As of v33, icon key "smallLeft" is deprecated. Use "panelDelimiterRtl" for Row Group Panel / Pivot Panel, "subMenuOpenRtl" for sub-menus.',264:()=>'As of v33, icon key "smallRight" is deprecated. Use "panelDelimiter" for Row Group Panel / Pivot Panel, "subMenuOpen" for sub-menus.',265:({colId:e})=>`Unable to infer chart data type for column '${e}' if first data entry is null. Please specify "chartDataType", or a "cellDataType" in the column definition. For more information, see ${Xa}/integrated-charts-range-chart#coldefchartdatatype .`,266:()=>'As of v33.1, using "keyCreator" with the Rich Select Editor has been deprecated. It now requires the "formatValue" callback to convert complex data to strings.',267:()=>"Detail grids can not use a different theme to the master grid, the `theme` detail grid option will be ignored.",268:()=>"Transactions aren't supported with tree data when using treeDataChildrenField",269:()=>"When `masterSelects: 'detail'`, detail grids must be configured with multi-row selection",270:({id:e,parentId:t})=>`Cycle detected for row with id='${e}' and parent id='${t}'. Resetting the parent for row with id='${e}' and showing it as a root-level node.`,271:({id:e,parentId:t})=>`Parent row not found for row with id='${e}' and parent id='${t}'. Showing row with id='${e}' as a root-level node.`,272:()=>PE(),273:({providedId:e,usedId:t})=>`Provided column id '${e}' was already in use, ensure all column and group ids are unique. Using '${t}' instead.`,274:({prop:e})=>{let t=`Since v33, ${e} has been deprecated.`;switch(e){case"maxComponentCreationTimeMs":t+=" This property is no longer required and so will be removed in a future version.";break;case"setGridApi":t+=" This method is not called by AG Grid. To access the GridApi see: https://ag-grid.com/react-data-grid/grid-interface/#grid-api ";break;case"children":t+=" For multiple versions AgGridReact does not support children.";break}return t},275:DE,276:()=>"Row Numbers Row Resizer cannot be used when Grid Columns have `autoHeight` enabled.",277:({colId:e})=>`'enableFilterHandlers' is set to true, but column '${e}' does not have 'filter.doesFilterPass' or 'filter.handler' set.`,278:({colId:e})=>`Unable to create filter handler for column '${e}'`,279:e=>{},280:({colId:e})=>`'name' must be provided for custom filter components for column '${e}`,281:({colId:e})=>`Filter for column '${e}' does not have 'filterParams.buttons', but the new Filters Tool Panel has buttons configured. Either configure buttons for the filter, or disable buttons on the Filters Tool Panel.`,282:()=>"New filter tool panel requires `enableFilterHandlers: true`.",283:()=>"As of v34, use the same method on the filter handler (`api.getColumnFilterHandler(colKey)`) instead.",284:()=>"As of v34, filters are active when they have a model. Use `api.getColumnFilterModel()` instead.",285:()=>"As of v34, use (`api.getColumnFilterModel()`) instead.",286:()=>"As of v34, use (`api.setColumnFilterModel()`) instead.",287:()=>"`api.doFilterAction()` requires `enableFilterHandlers = true",288:()=>"`api.getColumnFilterModel(key, true)` requires `enableFilterHandlers = true",289:({rowModelType:e})=>`Row Model '${e}' is not supported with Batch Editing`,290:({rowIndex:e,rowPinned:t})=>`Row with index '${e}' and pinned state '${t}' not found`,291:()=>"License Key being set multiple times with different values. This can result in an incorrect license key being used,",292:({colId:e})=>`The Multi Filter for column '${e}' has buttons configured against the child filters. When 'enableFilterHandlers=true', buttons must instead be provided against the parent Multi Filter params. The child filter buttons will be ignored.`,293:()=>"The grid was initialised detached from the DOM and was then inserted into a Shadow Root. Theme styles are probably broken. Pass the themeStyleContainer grid option to let the grid know where in the document to insert theme CSS.",294:()=>"When using the `agRichSelectCellEditor` setting `filterListAsync = true` requires `allowTyping = true` and the `values()` callback must return a Promise of filtered values.",295:({blockedService:e})=>`colDef.allowFormula is not supported with ${e}. Formulas has been turned off.`,296:()=>"Since v35, `api.hideOverlay()` does not hide the overlay when `activeOverlay` is set. Set `activeOverlay=null` instead.",297:()=>'`api.hideOverlay()` does not hide the no matching rows overlay as it is only controlled by grid state. Set `suppressOverlays=["noMatchingRows"] to not show it.'};function gX(e,t){const o=pX[e];if(!o)return[`Missing error text for error id ${e}!`];const r=o(t),i=`
|
|
104
|
+
See ${Xk(e,t)}`;return Array.isArray(r)?r.concat(i):[r,i]}var mX={1:"Charting Aggregation",2:"pivotResultFields",3:"setTooltip"},AE=new WeakMap,IE=new WeakMap,vX=1,bX=class{create(e,t,o,r,n,i){const s=Um.applyGlobalGridOptions(t),a=s.gridId??String(vX++),c=this.getRegisteredModules(n,a,s.rowModelType),d=this.createBeansList(s.rowModelType,c,a),h=this.createProvidedBeans(e,s,n);if(!d)return;const g={providedBeanInstances:h,beanClasses:d,id:a,beanInitComparator:VW,beanDestroyComparator:GW,derivedBeans:[zW],destroyCallback:()=>{IE.delete(b),AE.delete(e),J8(a),i?.()}},m=new OG(g);this.registerModuleFeatures(m,c),o(m),m.getBean("syncSvc").start(),r?.(m);const b=m.getBean("gridApi");return AE.set(e,b),IE.set(b,e),b}getRegisteredModules(e,t,o){return Nc(aX,void 0,!0),e?.modules?.forEach(r=>Nc(r,t)),e7(t,BE(o))}registerModuleFeatures(e,t){const o=e.getBean("registry"),r=e.getBean("apiFunctionSvc");for(const n of t){o.registerModule(n);const i=n.apiFunctions;if(i){const s=Object.keys(i);for(const a of s)r?.addFunction(a,i[a])}}}createProvidedBeans(e,t,o){let r=o?o.frameworkOverrides:null;Ut(r)&&(r=new VR);const n={gridOptions:t,eGridDiv:e,eRootDiv:e,globalListener:o?o.globalListener:null,globalSyncListener:o?o.globalSyncListener:null,frameworkOverrides:r};return o?.providedBeanInstances&&Object.assign(n,o.providedBeanInstances),n}createBeansList(e,t,o){const r={clientSide:"ClientSideRowModel",infinite:"InfiniteRowModel",serverSide:"ServerSideRowModel",viewport:"ViewportRowModel"},n=BE(e),i=r[n];if(!i){Lc(201,{rowModelType:n},`Unknown rowModelType ${n}.`);return}if(!r7()){Lc(272,void 0,PE());return}if(!e){const a=Object.entries(r).filter(([c,d])=>$m(d,o,c));if(a.length==1){const[c,d]=a[0];if(c!==n){const h={moduleName:d,rowModelType:c};Lc(275,h,DE(h));return}}}if(!$m(i,o,n)){const a=jk(),c=`rowModelType = '${n}'`,d=`Missing module ${i}Module for rowModelType ${n}.`;Lc(200,{reasonOrId:c,moduleName:i,gridScoped:Km(),gridId:o,rowModelType:n,isUmd:a},d);return}const s=new Set;for(const a of t)for(const c of a.beans??[])s.add(c);return Array.from(s)}};function BE(e){return e??"clientSide"}var wX=class{wrap(e,t,o,r){const n=this.createWrapper(e,r);for(const i of t??[])this.createMethod(n,i,!0);for(const i of o??[])this.createMethod(n,i,!1);return n}createMethod(e,t,o){e.addMethod(t,this.createMethodProxy(e,t,o))}createMethodProxy(e,t,o){return function(){return e.hasMethod(t)?e.callMethod(t,arguments):(o&&he(49,{methodName:t}),null)}}};function mb(e){return e.get("tooltipShowMode")==="whenTruncated"}var CX={enableBrowserTooltips:!0,tooltipTrigger:!0,tooltipMouseTrack:!0,tooltipShowMode:!0,tooltipInteraction:!0,defaultColGroupDef:!0,suppressAutoSize:!0,skipHeaderOnAutoSize:!0,autoSizeStrategy:!0,components:!0,stopEditingWhenCellsLoseFocus:!0,undoRedoCellEditing:!0,undoRedoCellEditingLimit:!0,excelStyles:!0,cacheQuickFilter:!0,customChartThemes:!0,chartThemeOverrides:!0,chartToolPanelsDef:!0,loadingCellRendererSelector:!0,localeText:!0,keepDetailRows:!0,keepDetailRowsCount:!0,detailRowHeight:!0,detailRowAutoHeight:!0,tabIndex:!0,valueCache:!0,valueCacheNeverExpires:!0,enableCellExpressions:!0,suppressTouch:!0,suppressBrowserResizeObserver:!0,suppressPropertyNamesCheck:!0,debug:!0,dragAndDropImageComponent:!0,overlayComponent:!0,suppressOverlays:!0,loadingOverlayComponent:!0,suppressLoadingOverlay:!0,noRowsOverlayComponent:!0,paginationPageSizeSelector:!0,paginateChildRows:!0,pivotPanelShow:!0,pivotSuppressAutoColumn:!0,suppressExpandablePivotGroups:!0,aggFuncs:!0,allowShowChangeAfterFilter:!0,ensureDomOrder:!0,enableRtl:!0,suppressColumnVirtualisation:!0,suppressMaxRenderedRowRestriction:!0,suppressRowVirtualisation:!0,rowDragText:!0,groupLockGroupColumns:!0,suppressGroupRowsSticky:!0,rowModelType:!0,cacheOverflowSize:!0,infiniteInitialRowCount:!0,serverSideInitialRowCount:!0,maxBlocksInCache:!0,maxConcurrentDatasourceRequests:!0,blockLoadDebounceMillis:!0,serverSideOnlyRefreshFilteredGroups:!0,serverSidePivotResultFieldSeparator:!0,viewportRowModelPageSize:!0,viewportRowModelBufferSize:!0,debounceVerticalScrollbar:!0,suppressAnimationFrame:!0,suppressPreventDefaultOnMouseWheel:!0,scrollbarWidth:!0,icons:!0,suppressRowTransform:!0,gridId:!0,enableGroupEdit:!0,initialState:!0,processUnpinnedColumns:!0,createChartContainer:!0,getLocaleText:!0,getRowId:!0,reactiveCustomComponents:!0,renderingMode:!0,columnMenu:!0,suppressSetFilterByDefault:!0,getDataPath:!0,enableCellSpan:!0,enableFilterHandlers:!0,filterHandlers:!0},Oo="clientSide",mo="serverSide",yl="infinite",yX={onGroupExpandedOrCollapsed:[Oo],refreshClientSideRowModel:[Oo],isRowDataEmpty:[Oo],forEachLeafNode:[Oo],forEachNodeAfterFilter:[Oo],forEachNodeAfterFilterAndSort:[Oo],resetRowHeights:[Oo,mo],applyTransaction:[Oo],applyTransactionAsync:[Oo],flushAsyncTransactions:[Oo],getBestCostNodeSelection:[Oo],getServerSideSelectionState:[mo],setServerSideSelectionState:[mo],applyServerSideTransaction:[mo],applyServerSideTransactionAsync:[mo],applyServerSideRowData:[mo],retryServerSideLoads:[mo],flushServerSideAsyncTransactions:[mo],refreshServerSide:[mo],getServerSideGroupLevelState:[mo],refreshInfiniteCache:[yl],purgeInfiniteCache:[yl],getInfiniteRowCount:[yl],isLastRowIndexKnown:[yl,mo],expandAll:[Oo,mo],collapseAll:[Oo,mo],onRowHeightChanged:[Oo,mo],setRowCount:[yl,mo],getCacheBlockState:[yl,mo]},SX={showLoadingOverlay:{version:"v32",message:'`showLoadingOverlay` is deprecated. Use the grid option "loading"=true instead or setGridOption("loading", true).'},clearRangeSelection:{version:"v32.2",message:"Use `clearCellSelection` instead."},getInfiniteRowCount:{version:"v32.2",old:"getInfiniteRowCount()",new:"getDisplayedRowCount()"},selectAllFiltered:{version:"v33",old:"selectAllFiltered()",new:'selectAll("filtered")'},deselectAllFiltered:{version:"v33",old:"deselectAllFiltered()",new:'deselectAll("filtered")'},selectAllOnCurrentPage:{version:"v33",old:"selectAllOnCurrentPage()",new:'selectAll("currentPage")'},deselectAllOnCurrentPage:{version:"v33",old:"deselectAllOnCurrentPage()",new:'deselectAll("currentPage")'}};function xX(e,t,o){const r=SX[e];if(r){const{version:i,new:s,old:a,message:c}=r,d=a??e;return(...h)=>{const f=s?`Please use ${s} instead. `:"";return Oc(`Since ${i} api.${d} is deprecated. ${f}${c??""}`),t.apply(t,h)}}const n=yX[e];return n?(...i)=>{const s=o.rowModel.getType();if(!n.includes(s)){Ka(`api.${e} can only be called when gridOptions.rowModelType is ${n.join(" or ")}`);return}return t.apply(t,i)}:t}var kX={detailCellRendererCtrl:"SharedMasterDetail",dndSourceComp:"DragAndDrop",fillHandle:"CellSelection",groupCellRendererCtrl:"GroupCellRenderer",headerFilterCellCtrl:"ColumnFilter",headerGroupCellCtrl:"ColumnGroup",rangeHandle:"CellSelection",tooltipFeature:"Tooltip",highlightTooltipFeature:"Tooltip",tooltipStateManager:"Tooltip",groupStrategy:"RowGrouping",treeGroupStrategy:"TreeData",rowNumberRowResizer:"RowNumbers",singleCell:"EditCore",fullRow:"EditCore",agSetColumnFilterHandler:"SetFilter",agMultiColumnFilterHandler:"MultiFilter",agGroupColumnFilterHandler:"GroupFilter",agNumberColumnFilterHandler:"NumberFilter",agDateColumnFilterHandler:"DateFilter",agTextColumnFilterHandler:"TextFilter"},FX={expanded:1,contracted:1,"tree-closed":1,"tree-open":1,"tree-indeterminate":1,pin:1,"eye-slash":1,arrows:1,left:1,right:1,group:1,aggregation:1,pivot:1,"not-allowed":1,chart:1,cross:1,cancel:1,tick:1,first:1,previous:1,next:1,last:1,linked:1,unlinked:1,"color-picker":1,loading:1,menu:1,"menu-alt":1,filter:1,"filter-add":1,columns:1,maximize:1,minimize:1,copy:1,cut:1,paste:1,grip:1,save:1,csv:1,excel:1,"small-down":1,"small-left":1,"small-right":1,"small-up":1,asc:1,desc:1,aasc:1,adesc:1,none:1,up:1,down:1,plus:1,minus:1,settings:1,"checkbox-checked":1,"checkbox-indeterminate":1,"checkbox-unchecked":1,"radio-button-on":1,"radio-button-off":1,eye:1,"column-arrow":1,"un-pin":1,"pinned-top":1,"pinned-bottom":1,"chevron-up":1,"chevron-down":1,"chevron-left":1,"chevron-right":1,edit:1},RX={chart:"MenuCore",cancel:"EnterpriseCore",first:"Pagination",previous:"Pagination",next:"Pagination",last:"Pagination",linked:"IntegratedCharts",loadingMenuItems:"MenuCore",unlinked:"IntegratedCharts",menu:"ColumnHeaderComp",legacyMenu:"ColumnMenu",filter:"ColumnFilter",filterActive:"ColumnFilter",filterAdd:"NewFiltersToolPanel",filterCardCollapse:"NewFiltersToolPanel",filterCardExpand:"NewFiltersToolPanel",filterCardEditing:"NewFiltersToolPanel",filterTab:"ColumnMenu",filtersToolPanel:"FiltersToolPanel",columns:["MenuCore"],columnsToolPanel:["ColumnsToolPanel"],maximize:"EnterpriseCore",minimize:"EnterpriseCore",save:"MenuCore",columnGroupOpened:"ColumnGroupHeaderComp",columnGroupClosed:"ColumnGroupHeaderComp",accordionOpen:"EnterpriseCore",accordionClosed:"EnterpriseCore",accordionIndeterminate:"EnterpriseCore",columnSelectClosed:["ColumnsToolPanel","ColumnMenu"],columnSelectOpen:["ColumnsToolPanel","ColumnMenu"],columnSelectIndeterminate:["ColumnsToolPanel","ColumnMenu"],columnMovePin:"SharedDragAndDrop",columnMoveHide:"SharedDragAndDrop",columnMoveMove:"SharedDragAndDrop",columnMoveLeft:"SharedDragAndDrop",columnMoveRight:"SharedDragAndDrop",columnMoveGroup:"SharedDragAndDrop",columnMoveValue:"SharedDragAndDrop",columnMovePivot:"SharedDragAndDrop",dropNotAllowed:"SharedDragAndDrop",ensureColumnVisible:["ColumnsToolPanel","ColumnMenu"],groupContracted:"GroupCellRenderer",groupExpanded:"GroupCellRenderer",setFilterGroupClosed:"SetFilter",setFilterGroupOpen:"SetFilter",setFilterGroupIndeterminate:"SetFilter",setFilterLoading:"SetFilter",close:"EnterpriseCore",check:"MenuItem",colorPicker:"CommunityCore",groupLoading:"LoadingCellRenderer",overlayLoading:"Overlay",overlayExporting:"Overlay",menuAlt:"ColumnHeaderComp",menuPin:"MenuCore",menuValue:"MenuCore",menuAddRowGroup:["MenuCore","ColumnsToolPanel"],menuRemoveRowGroup:["MenuCore","ColumnsToolPanel"],clipboardCopy:"MenuCore",clipboardCut:"MenuCore",clipboardPaste:"MenuCore",pivotPanel:["ColumnsToolPanel","RowGroupingPanel"],rowGroupPanel:["ColumnsToolPanel","RowGroupingPanel"],valuePanel:"ColumnsToolPanel",columnDrag:"EnterpriseCore",rowDrag:["RowDrag","DragAndDrop"],csvExport:"MenuCore",excelExport:"MenuCore",smallDown:"CommunityCore",selectOpen:"CommunityCore",richSelectOpen:"RichSelect",richSelectRemove:"RichSelect",richSelectLoading:"RichSelect",smallLeft:"CommunityCore",smallRight:"CommunityCore",subMenuOpen:"MenuItem",subMenuOpenRtl:"MenuItem",panelDelimiter:"RowGroupingPanel",panelDelimiterRtl:"RowGroupingPanel",smallUp:"CommunityCore",sortAscending:["MenuCore","Sort"],sortDescending:["MenuCore","Sort"],sortAbsoluteAscending:["MenuCore","Sort"],sortAbsoluteDescending:["MenuCore","Sort"],sortUnSort:["MenuCore","Sort"],advancedFilterBuilder:"AdvancedFilter",advancedFilterBuilderDrag:"AdvancedFilter",advancedFilterBuilderInvalid:"AdvancedFilter",advancedFilterBuilderMoveUp:"AdvancedFilter",advancedFilterBuilderMoveDown:"AdvancedFilter",advancedFilterBuilderAdd:"AdvancedFilter",advancedFilterBuilderRemove:"AdvancedFilter",advancedFilterBuilderSelectOpen:"AdvancedFilter",chartsMenu:"IntegratedCharts",chartsMenuEdit:"IntegratedCharts",chartsMenuAdvancedSettings:"IntegratedCharts",chartsMenuAdd:"IntegratedCharts",chartsColorPicker:"IntegratedCharts",chartsThemePrevious:"IntegratedCharts",chartsThemeNext:"IntegratedCharts",chartsDownload:"IntegratedCharts",checkboxChecked:"CommunityCore",checkboxIndeterminate:"CommunityCore",checkboxUnchecked:"CommunityCore",radioButtonOn:"CommunityCore",radioButtonOff:"CommunityCore",rowPin:"PinnedRow",rowUnpin:"PinnedRow",rowPinBottom:"PinnedRow",rowPinTop:"PinnedRow"},EX=new Set(["colorPicker","smallUp","checkboxChecked","checkboxIndeterminate","checkboxUnchecked","radioButtonOn","radioButtonOff","smallDown","smallLeft","smallRight"]),_X=class extends ue{constructor(){super(...arguments),this.beanName="validation"}wireBeans(e){this.gridOptions=e.gridOptions,n7(gX)}warnOnInitialPropertyUpdate(e,t){e==="api"&&CX[t]&&he(22,{key:t})}processGridOptions(e){this.processOptions(e,F$())}validateApiFunction(e,t){return xX(e,t,this.beans)}missingUserComponent(e,t,o,r){const n=ml[t];n?this.gos.assertModuleRegistered(n,`AG Grid '${e}' component: ${t}`):he(101,{propertyName:e,componentName:t,agGridDefaults:o,jsComps:r})}missingDynamicBean(e){const t=kX[e];return t?Cn(200,{...this.gos.getModuleErrorParams(),moduleName:t,reasonOrId:e}):void 0}checkRowEvents(e){DX.has(e)&&he(10,{eventType:e})}validateIcon(e){if(EX.has(e)&&he(43,{iconName:e}),FX[e])return;const t=RX[e];if(t){Ft(200,{reasonOrId:`icon '${e}'`,moduleName:t,gridScoped:Km(),gridId:this.beans.context.getId(),rowModelType:this.gos.get("rowModelType"),additionalText:"Alternatively, use the CSS icon name directly."});return}he(134,{iconName:e})}isProvidedUserComp(e){return!!ml[e]}validateColDef(e){this.processOptions(e,p$())}processOptions(e,t){const{validations:o,deprecations:r,allProperties:n,propertyExceptions:i,objectName:s,docsUrl:a}=t;n&&this.gridOptions.suppressPropertyNamesCheck!==!0&&this.checkProperties(e,[...i??[],...Object.keys(r)],n,s,a);const c=new Set;if(Object.keys(e).forEach(h=>{const f=r[h];if(f){const{message:C,version:F}=f;c.add(`As of v${F}, ${String(h)} is deprecated. ${C??""}`)}const g=e[h];if(g==null||g===!1)return;const m=o[h];if(!m)return;const{dependencies:b,validate:w,supportedRowModels:y,expectedType:k}=m;if(k){const C=typeof g;if(C!==k){c.add(`${String(h)} should be of type '${k}' but received '${C}' (${g}).`);return}}if(y){const C=this.gridOptions.rowModelType??"clientSide";if(!y.includes(C)){c.add(`${String(h)} is not supported with the '${C}' row model. It is only valid with: ${y.join(", ")}.`);return}}if(b){const C=this.checkForRequiredDependencies(h,b,e);if(C){c.add(C);return}}if(w){const C=w(e,this.gridOptions,this.beans);if(C){c.add(C);return}}}),c.size>0)for(const h of c)Oc(h)}checkForRequiredDependencies(e,t,o){const n=Object.entries(t).filter(([i,s])=>{const a=o[i];return!s.required.includes(a)});return n.length===0?null:n.map(([i,s])=>`'${String(e)}' requires '${i}' to be one of [${s.required.map(a=>a===null?"null":a===void 0?"undefined":a).join(", ")}]. ${s.reason??""}`).join(`
|
|
105
|
+
`)}checkProperties(e,t,o,r,n){const i=["__ob__","__v_skip","__metadata__"],s=PX(Object.getOwnPropertyNames(e),[...i,...t,...o],o),a=Object.keys(s);for(const c of a){const d=s[c];let h=`invalid ${r} property '${c}' did you mean any of these: ${d.slice(0,8).join(", ")}.`;o.includes("context")&&(h+=`
|
|
106
|
+
If you are trying to annotate ${r} with application data, use the '${r}.context' property instead.`),Oc(h)}if(a.length>0&&n){const c=this.beans.frameworkOverrides.getDocLink(n);Oc(`to see all the valid ${r} properties please check: ${c}`)}}};function PX(e,t,o){const r={},n=e.filter(i=>!t.some(s=>s===i));if(n.length>0)for(const i of n)r[i]=xv({inputValue:i,allSuggestions:o}).values;return r}var DX=new Set(["firstChildChanged","lastChildChanged","childIndexChanged"]),OE={moduleName:"Validation",version:Ve,beans:[_X]};function vb(e){const t=e.sibling;t&&(t.childrenAfterFilter=e.childrenAfterFilter)}var TX=class extends ue{constructor(){super(...arguments),this.beanName="filterStage",this.step="filter",this.refreshProps=["excludeChildrenWhenTreeDataFiltering"]}wireBeans(e){this.filterManager=e.filterManager}execute(e){const t=!!this.filterManager?.isChildFilterPresent();this.beans.formula?.active?this.softFilter(t,e):this.filterNodes(t,e)}filterNodes(e,t){const o=(r,n)=>{r.hasChildren()&&e&&!n?r.childrenAfterFilter=r.childrenAfterGroup.filter(i=>{const s=i.childrenAfterFilter&&i.childrenAfterFilter.length>0,a=i.data&&this.filterManager.doesRowPassFilter({rowNode:i});return s||a}):r.childrenAfterFilter=r.childrenAfterGroup,vb(r)};if(this.doingTreeDataFiltering()){const r=(i,s)=>{if(i.childrenAfterGroup)for(let a=0;a<i.childrenAfterGroup.length;a++){const c=i.childrenAfterGroup[a],d=s||this.filterManager.doesRowPassFilter({rowNode:c});c.childrenAfterGroup?r(i.childrenAfterGroup[a],d):o(c,d)}o(i,s)},n=i=>r(i,!1);t.executeFromRootNode(n)}else{const r=n=>o(n,!1);t.forEachChangedNodeDepthFirst(r,!0)}}softFilter(e,t){const o=r=>{if(r.childrenAfterFilter=r.childrenAfterGroup,r.hasChildren())for(const n of r.childrenAfterGroup)n.softFiltered=e&&!(n.data&&this.filterManager.doesRowPassFilter({rowNode:n}));vb(r)};t.forEachChangedNodeDepthFirst(o,!0)}doingTreeDataFiltering(){const{gos:e}=this;return e.get("treeData")&&!e.get("excludeChildrenWhenTreeDataFiltering")}},MX=class extends Zv{constructor(){super(...arguments),this.iconCreated=!1}wireComp(e,t,o,r,n){this.comp=e;const i=Gc(this,this.beans.context,n);this.eButtonShowMainFilter=o,this.eFloatingFilterBody=r,this.setGui(t,i),this.setupActive(),this.refreshHeaderStyles(),this.setupWidth(i),this.setupLeft(i),this.setupHover(i),this.setupFocus(i),this.setupAria(),this.setupFilterButton(),this.setupUserComp(),this.setupSyncWithFilter(i),this.setupUi(),i.addManagedElementListeners(this.eButtonShowMainFilter,{click:this.showParentFilter.bind(this)}),this.setupFilterChangedListener(i);const s=()=>this.onColDefChanged(i);i.addManagedListeners(this.column,{colDefChanged:s}),i.addManagedEventListeners({filterSwitched:({column:a})=>{a===this.column&&s()}}),i.addDestroyFunc(()=>{this.eButtonShowMainFilter=null,this.eFloatingFilterBody=null,this.userCompDetails=null,this.clearComponent()})}resizeHeader(){}moveHeader(){}getHeaderClassParams(){const{column:e,beans:t}=this,o=e.colDef;return Ze(t.gos,{colDef:o,column:e,floatingFilter:!0})}setupActive(){const e=this.column.getColDef(),t=!!e.filter,o=!!e.floatingFilter;this.active=t&&o}setupUi(){if(this.comp.setButtonWrapperDisplayed(!this.suppressFilterButton&&this.active),this.comp.addOrRemoveBodyCssClass("ag-floating-filter-full-body",this.suppressFilterButton),this.comp.addOrRemoveBodyCssClass("ag-floating-filter-body",!this.suppressFilterButton),!this.active||this.iconCreated)return;const e=zi("filter",this.beans,this.column);e&&(this.iconCreated=!0,this.eButtonShowMainFilter.appendChild(e))}setupFocus(e){e.createManagedBean(new $c(this.eGui,{shouldStopEventPropagation:this.shouldStopEventPropagation.bind(this),onTabKeyDown:this.onTabKeyDown.bind(this),handleKeyDown:this.handleKeyDown.bind(this),onFocusIn:this.onFocusIn.bind(this)}))}setupAria(){const e=this.getLocaleTextFunc();Wa(this.eButtonShowMainFilter,e("ariaFilterMenuOpen","Open Filter Menu"))}onTabKeyDown(e){const{beans:t}=this;if(Mt(t)===this.eGui)return;const n=al(t,this.eGui,null,e.shiftKey);if(n){t.headerNavigation?.scrollToColumn(this.column),e.preventDefault(),n.focus();return}const i=this.findNextColumnWithFloatingFilter(e.shiftKey);i&&t.focusSvc.focusHeaderPosition({headerPosition:{headerRowIndex:this.rowCtrl.rowIndex,column:i},event:e})&&e.preventDefault()}findNextColumnWithFloatingFilter(e){const t=this.beans.visibleCols;let o=this.column;do if(o=e?t.getColBefore(o):t.getColAfter(o),!o)break;while(!o.getColDef().filter||!o.getColDef().floatingFilter);return o}handleKeyDown(e){super.handleKeyDown(e);const t=this.getWrapperHasFocus();switch(e.key){case ee.UP:case ee.DOWN:case ee.LEFT:case ee.RIGHT:if(t)return;js(e);case ee.ENTER:t&&Vs(this.eGui)&&e.preventDefault();break;case ee.ESCAPE:t||this.eGui.focus()}}onFocusIn(e){if(this.eGui.contains(e.relatedTarget))return;const o=!!e.relatedTarget&&!e.relatedTarget.classList.contains("ag-floating-filter"),r=!!e.relatedTarget&&As(e.relatedTarget,"ag-floating-filter");if(o&&r&&e.target===this.eGui){const n=this.lastFocusEvent,i=!!(n&&n.key===ee.TAB);if(n&&i){const s=n.shiftKey;Vs(this.eGui,s)}}this.focusThis()}setupHover(e){this.beans.colHover?.addHeaderFilterColumnHoverListener(e,this.comp,this.column,this.eGui)}setupLeft(e){const t=new Xv(this.column,this.eGui,this.beans);e.createManagedBean(t)}setupFilterButton(){this.suppressFilterButton=!this.beans.menuSvc?.isFloatingFilterButtonEnabled(this.column),this.highlightFilterButtonWhenActive=!Yo(this.gos)}setupUserComp(){if(!this.active)return;const e=this.beans.colFilter?.getFloatingFilterCompDetails(this.column,()=>this.showParentFilter());e&&this.setCompDetails(e)}setCompDetails(e){this.userCompDetails=e,this.comp.setCompDetails(e)}showParentFilter(){const e=this.suppressFilterButton?this.eFloatingFilterBody:this.eButtonShowMainFilter;this.beans.menuSvc?.showFilterMenu({column:this.column,buttonElement:e,containerType:"floatingFilter",positionBy:"button"})}setupSyncWithFilter(e){if(!this.active)return;const{beans:{colFilter:t},column:o,gos:r}=this,n=i=>{if(i?.source==="filterDestroyed"&&(!this.isAlive()||!t?.isAlive()))return;const s=this.comp.getFloatingFilterComp();s&&s.then(a=>{if(a){if(r.get("enableFilterHandlers")){const h=i;let f="filter";h?.afterFloatingFilter?f="ui":h?.afterDataChange?f="dataChanged":i?.source==="api"&&(f="api"),this.updateFloatingFilterParams(this.userCompDetails,f);return}const c=t?.getCurrentFloatingFilterParentModel(o),d=i?{...i,columns:i.columns??[],source:i.source==="api"?"api":"columnFilter"}:null;a.onParentModelChanged(c,d)}})};[this.destroySyncListener]=e.addManagedListeners(o,{filterChanged:n}),t?.isFilterActive(o)&&n(null)}setupWidth(e){const t=()=>{const o=`${this.column.getActualWidth()}px`;this.comp.setWidth(o)};e.addManagedListeners(this.column,{widthChanged:t}),t()}setupFilterChangedListener(e){this.active&&([this.destroyFilterChangedListener]=e.addManagedListeners(this.column,{filterChanged:this.updateFilterButton.bind(this)}),this.updateFilterButton())}updateFilterButton(){if(!this.suppressFilterButton&&this.comp){const e=!!this.beans.filterManager?.isFilterAllowed(this.column);this.comp.setButtonWrapperDisplayed(e),this.highlightFilterButtonWhenActive&&e&&this.eButtonShowMainFilter.classList.toggle("ag-filter-active",this.column.isFilterActive())}}onColDefChanged(e){const t=this.active;this.setupActive();const o=!t&&this.active;t&&!this.active&&(this.destroySyncListener(),this.destroyFilterChangedListener());const r=this.beans.colFilter,n=this.active?r?.getFloatingFilterCompDetails(this.column,()=>this.showParentFilter()):null,i=this.comp.getFloatingFilterComp();!i||!n?this.updateCompDetails(e,n,o):i.then(s=>{!s||r?.areFilterCompsDifferent(this.userCompDetails??null,n)?this.updateCompDetails(e,n,o):this.updateFloatingFilterParams(n,"colDef")})}updateCompDetails(e,t,o){this.isAlive()&&(this.setCompDetails(t),this.setupFilterButton(),this.setupUi(),o&&(this.setupSyncWithFilter(e),this.setupFilterChangedListener(e)))}updateFloatingFilterParams(e,t){if(!e)return;let o=e.params;this.comp.getFloatingFilterComp()?.then(r=>{typeof r?.refresh=="function"&&(this.gos.get("enableFilterHandlers")&&(o={...o,model:to(this.beans.colFilter?.model??{},this.column.getColId()),source:t}),r.refresh(o))})}addResizeAndMoveKeyboardListeners(){}destroy(){super.destroy(),this.destroySyncListener=null,this.destroyFilterChangedListener=null}};function AX(e,t){const o=e.colModel.getCol(t);if(!o){Ft(12,{colKey:t});return}e.menuSvc?.showColumnMenu({column:o,positionBy:"auto"})}function IX(e){e.menuSvc?.hidePopupMenu()}var BX={moduleName:"SharedMenu",version:Ve,beans:[fW],apiFunctions:{showColumnMenu:AX,hidePopupMenu:IX}},OX=class extends $G{getDefaultPopupParent(){return this.beans.ctrlsSvc.get("gridCtrl").getGui()}callPostProcessPopup(e,t,o,r,n){const i=this.gos.getCallback("postProcessPopup");if(i){const{column:s,rowNode:a}=e??{};i({column:s,rowNode:a,ePopup:o,type:t,eventSource:r,mouseEvent:n})}}getActivePopups(){return this.popupList.map(e=>e.element)}hasAnchoredPopup(){return this.popupList.some(e=>e.isAnchored)}isStopPropagation(e){return oi(e)}},bb={moduleName:"Popup",version:Ve,beans:[OX]},NX=".ag-set-filter{--ag-indentation-level:0}.ag-set-filter-item{align-items:center;display:flex;height:100%}:where(.ag-ltr) .ag-set-filter-item{padding-left:calc(var(--ag-widget-container-horizontal-padding) + var(--ag-indentation-level)*var(--ag-set-filter-indent-size))}:where(.ag-rtl) .ag-set-filter-item{padding-right:calc(var(--ag-widget-container-horizontal-padding) + var(--ag-indentation-level)*var(--ag-set-filter-indent-size))}.ag-set-filter-item-checkbox{display:flex;height:100%;width:100%}.ag-set-filter-group-icons{display:block;>*{cursor:pointer}}:where(.ag-ltr) .ag-set-filter-group-icons{margin-right:var(--ag-widget-container-horizontal-padding)}:where(.ag-rtl) .ag-set-filter-group-icons{margin-left:var(--ag-widget-container-horizontal-padding)}.ag-filter-body-wrapper{display:flex;flex-direction:column}:where(.ag-menu:not(.ag-tabs) .ag-filter) .ag-filter-body-wrapper,:where(.ag-menu:not(.ag-tabs) .ag-filter)>:not(.ag-filter-wrapper){min-width:180px}.ag-filter-filter{flex:1 1 0px}.ag-filter-condition{display:flex;justify-content:center}.ag-floating-filter-body{display:flex;flex:1 1 auto;height:100%;position:relative}.ag-floating-filter-full-body{align-items:center;display:flex;flex:1 1 auto;height:100%;overflow:hidden;width:100%}:where(.ag-floating-filter-full-body)>div{flex:1 1 auto}.ag-floating-filter-input{align-items:center;display:flex;width:100%;>*{flex:1 1 auto}:where(.ag-input-field-input[type=date]),:where(.ag-input-field-input[type=datetime-local]){width:1px}}.ag-floating-filter-button{display:flex;flex:none}.ag-date-floating-filter-wrapper{display:flex}.ag-set-floating-filter-input :where(input)[disabled]{pointer-events:none}.ag-floating-filter-button-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;height:var(--ag-icon-size);width:var(--ag-icon-size)}.ag-filter-loading{align-items:unset;background-color:var(--ag-chrome-background-color);height:100%;padding:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding);position:absolute;width:100%;z-index:1;:where(.ag-menu) &{background-color:var(--ag-menu-background-color)}}.ag-filter-separator{border-top:solid var(--ag-border-width) var(--menu-separator-color)}:where(.ag-filter-select) .ag-picker-field-wrapper{width:0}.ag-filter-condition-operator{height:17px}:where(.ag-ltr) .ag-filter-condition-operator-or{margin-left:calc(var(--ag-spacing)*2)}:where(.ag-rtl) .ag-filter-condition-operator-or{margin-right:calc(var(--ag-spacing)*2)}.ag-set-filter-select-all{padding-top:var(--ag-widget-container-vertical-padding)}.ag-filter-no-matches,.ag-set-filter-list{height:calc(var(--ag-list-item-height)*6)}.ag-filter-no-matches{padding:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding)}.ag-set-filter-tree-list{height:calc(var(--ag-list-item-height)*10)}.ag-set-filter-filter{margin-left:var(--ag-widget-container-horizontal-padding);margin-right:var(--ag-widget-container-horizontal-padding);margin-top:var(--ag-widget-container-vertical-padding)}.ag-filter-to{margin-top:var(--ag-widget-vertical-spacing)}.ag-mini-filter{margin:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding)}:where(.ag-ltr) .ag-set-filter-add-group-indent{margin-left:calc(var(--ag-icon-size) + var(--ag-widget-container-horizontal-padding))}:where(.ag-rtl) .ag-set-filter-add-group-indent{margin-right:calc(var(--ag-icon-size) + var(--ag-widget-container-horizontal-padding))}:where(.ag-filter-menu) .ag-set-filter-list{min-width:200px}.ag-filter-virtual-list-item:focus-visible{box-shadow:inset var(--ag-focus-shadow)}.ag-filter-apply-panel{display:flex;justify-content:flex-end;overflow:hidden;padding:var(--ag-widget-vertical-spacing) var(--ag-widget-container-horizontal-padding) var(--ag-widget-container-vertical-padding)}.ag-filter-apply-panel-button{line-height:1.5}:where(.ag-ltr) .ag-filter-apply-panel-button{margin-left:calc(var(--ag-spacing)*2)}:where(.ag-rtl) .ag-filter-apply-panel-button{margin-right:calc(var(--ag-spacing)*2)}.ag-simple-filter-body-wrapper{display:flex;flex-direction:column;min-height:calc(var(--ag-list-item-height) + var(--ag-widget-container-vertical-padding) + var(--ag-widget-vertical-spacing));overflow-y:auto;padding:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding);padding-bottom:calc(var(--ag-widget-container-vertical-padding) - var(--ag-widget-vertical-spacing));&>*{margin-bottom:var(--ag-widget-vertical-spacing)}:where(.ag-resizer-wrapper){margin:0}}.ag-multi-filter-menu-item{margin:var(--ag-spacing) 0}.ag-multi-filter-group-title-bar{background-color:transparent;color:var(--ag-header-text-color);font-weight:500;padding:calc(var(--ag-spacing)*1.5) var(--ag-spacing)}.ag-group-filter-field-select-wrapper{display:flex;flex-direction:column;gap:var(--ag-widget-vertical-spacing);padding:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding)}";function LX(e){const t=e.filterManager;return!!t?.isColumnFilterPresent()||!!t?.isAggregateFilterPresent()}function zX(e,t){return e.filterManager?.getColumnFilterInstance(t)??Promise.resolve(void 0)}function HX(e,t){const o=e.colModel.getColDefCol(t);if(o)return e.colFilter?.destroyFilter(o,"api")}function VX(e,t){e.frameworkOverrides.wrapIncoming(()=>e.filterManager?.setFilterModel(t))}function GX(e){return e.filterManager?.getFilterModel()??{}}function jX(e,t,o){const{gos:r,colModel:n,colFilter:i}=e;o&&!r.get("enableFilterHandlers")&&(he(288),o=!1);const s=n.getColDefCol(t);return s?i?.getModelForColumn(s,o)??null:null}function WX(e,t,o){return e.filterManager?.setColumnFilterModel(t,o)??Promise.resolve()}function qX(e,t){const o=e.colModel.getCol(t);if(!o){Ft(12,{colKey:t});return}e.menuSvc?.showFilterMenu({column:o,containerType:"columnFilter",positionBy:"auto"})}function UX(e){e.menuSvc?.hideFilterMenu()}function $X(e,t){const o=e.colModel.getCol(t);if(!o){Ft(12,{colKey:t});return}return e.colFilter?.getHandler(o,!0)}function KX(e,t){const{colModel:o,colFilter:r,gos:n}=e;if(!n.get("enableFilterHandlers")){he(287);return}const{colId:i,action:s}=t;if(i){const a=o.getColById(i);a&&r?.updateModel(a,s)}else r?.updateAllModels(s)}var XX={filterHandler:()=>({doesFilterPass:()=>!0})},ZX=class extends ue{constructor(){super(...arguments),this.beanName="colFilter",this.allColumnFilters=new Map,this.allColumnListeners=new Map,this.activeAggregateFilters=[],this.activeColumnFilters=[],this.processingFilterChange=!1,this.modelUpdates=[],this.columnModelUpdates=[],this.state=new Map,this.handlerMap={...lR},this.isGlobalButtons=!1,this.activeFilterComps=new Set}postConstruct(){this.addManagedEventListeners({gridColumnsChanged:this.onColumnsChanged.bind(this),dataTypesInferred:this.processFilterModelUpdateQueue.bind(this)});const e=this.gos,t={...e.get("initialState")?.filter?.filterModel??{}};this.initialModel=t,this.model={...t},e.get("enableFilterHandlers")||delete this.handlerMap.agMultiColumnFilter}refreshModel(){this.onNewRowsLoaded("rowDataUpdated")}setModel(e,t="api",o){const{colModel:r,dataTypeSvc:n,filterManager:i}=this.beans;if(n?.isPendingInference){this.modelUpdates.push({model:e,source:t});return}const s=[],a=this.getModel(!0);if(e){const c=new Set(Object.keys(e));this.allColumnFilters.forEach((d,h)=>{const f=e[h];s.push(this.setModelOnFilterWrapper(d,f)),c.delete(h)}),c.forEach(d=>{const h=r.getColDefCol(d)||r.getCol(d);if(!h){he(62,{colId:d});return}if(!h.isFilterAllowed()){he(63,{colId:d});return}const f=this.getOrCreateFilterWrapper(h,!0);if(!f){he(64,{colId:d});return}s.push(this.setModelOnFilterWrapper(f,e[d],!0))})}else this.model={},this.allColumnFilters.forEach(c=>{s.push(this.setModelOnFilterWrapper(c,null))});Ye.all(s).then(()=>{const c=this.getModel(!0),d=[];this.allColumnFilters.forEach((h,f)=>{const g=a?a[f]:null,m=c?c[f]:null;pk(g,m)||d.push(h.column)}),d.length>0?i?.onFilterChanged({columns:d,source:t}):o&&this.updateActive("filterChanged")})}getModel(e){const t={},{allColumnFilters:o,initialModel:r,beans:{colModel:n}}=this;if(o.forEach((i,s)=>{const a=this.getModelFromFilterWrapper(i);Ee(a)&&(t[s]=a)}),!e)for(const i of Object.keys(r)){const s=r[i];Ee(s)&&!o.has(i)&&n.getCol(i)?.isFilterAllowed()&&(t[i]=s)}return t}setState(e,t,o="api"){if(this.state.clear(),t)for(const r of Object.keys(t)){const n=t[r];this.state.set(r,{model:to(this.model,r),state:n})}this.setModel(e,o,!0)}getState(){const e=this.state;if(!e.size)return;const t={};let o=!1;return e.forEach((r,n)=>{const i=r.state;i!=null&&(o=!0,t[n]=i)}),o?t:void 0}getModelFromFilterWrapper(e){const o=e.column.getColId();if(e.isHandler)return to(this.model,o);const r=e.filter;return r?typeof r.getModel!="function"?(he(66),null):r.getModel():to(this.initialModel,o)}isFilterPresent(){return this.activeColumnFilters.length>0}isAggFilterPresent(){return!!this.activeAggregateFilters.length}disableFilters(){this.initialModel={};const{allColumnFilters:e}=this;return e.size?(e.forEach(t=>this.disposeFilterWrapper(t,"advancedFilterEnabled")),!0):!1}updateActiveFilters(){const e=d=>d?d.isFilterActive?d.isFilterActive():(he(67),!1):!1,{colModel:t,gos:o}=this.beans,r=!!ev(o),n=d=>{if(!d.isPrimary())return!0;const f=!t.isPivotActive();return!d.isValueActive()||!f?!1:t.isPivotMode()?!0:r},i=[],s=[],a=(d,h,f)=>{h&&(n(d)?i.push(f):s.push(f))},c=[];return this.allColumnFilters.forEach(d=>{const h=d.column,f=h.getColId();if(d.isHandler)c.push(Ye.resolve().then(()=>{a(h,this.isHandlerActive(h),{colId:f,isHandler:!0,handler:d.handler,handlerParams:d.handlerParams})}));else{const g=Oi(d);g&&c.push(g.then(m=>{a(h,e(m),{colId:f,isHandler:!1,comp:m})}))}}),Ye.all(c).then(()=>{this.activeAggregateFilters=i,this.activeColumnFilters=s})}updateFilterFlagInColumns(e,t){const o=[];return this.allColumnFilters.forEach(r=>{const n=r.column;if(r.isHandler)o.push(Ye.resolve().then(()=>{this.setColFilterActive(n,this.isHandlerActive(n),e,t)}));else{const i=Oi(r);i&&o.push(i.then(s=>{this.setColFilterActive(n,s.isFilterActive(),e,t)}))}}),this.beans.groupFilter?.updateFilterFlags(e,t),Ye.all(o)}doFiltersPass(e,t,o){const{data:r,aggData:n}=e,i=o?this.activeAggregateFilters:this.activeColumnFilters,s=o?n:r,a=this.model;for(let c=0;c<i.length;c++){const d=i[c],{colId:h,isHandler:f}=d;if(h!==t)if(f){const{handler:g,handlerParams:m}=d;if(!g.doesFilterPass({node:e,data:s,model:to(a,h),handlerParams:m}))return!1}else{const g=d.comp;if(typeof g.doesFilterPass!="function"){Ft(91);continue}if(!g.doesFilterPass({node:e,data:s}))return!1}}return!0}getHandlerParams(e){const t=this.allColumnFilters.get(e.getColId());return t?.isHandler?t.handlerParams:void 0}callOnFilterChangedOutsideRenderCycle(e){const{rowRenderer:t,filterManager:o}=this.beans,r=()=>{this.isAlive()&&o?.onFilterChanged(e)};t.isRefreshInProgress()?setTimeout(r,0):r()}updateBeforeFilterChanged(e={}){const{column:t,additionalEventAttributes:o}=e,r=t?.getColId();return this.updateActiveFilters().then(()=>this.updateFilterFlagInColumns("filterChanged",o).then(()=>{this.allColumnFilters.forEach(n=>{const{column:i,isHandler:s}=n;r!==i.getColId()&&(s&&n.handler.onAnyFilterChanged?.(),Oi(n,s)?.then(a=>{typeof a?.onAnyFilterChanged=="function"&&a.onAnyFilterChanged()}))}),this.processingFilterChange=!0}))}updateAfterFilterChanged(){this.processingFilterChange=!1}isSuppressFlashingCellsBecauseFiltering(){return!(this.gos.get("allowShowChangeAfterFilter")??!1)&&this.processingFilterChange}onNewRowsLoaded(e){const t=[];this.allColumnFilters.forEach(o=>{const r=o.isHandler;r&&o.handler.onNewRowsLoaded?.();const n=Oi(o,r);n&&t.push(n.then(i=>{i.onNewRowsLoaded?.()}))}),Ye.all(t).then(()=>this.updateActive(e,{afterDataChange:!0}))}updateActive(e,t){this.updateFilterFlagInColumns(e,t).then(()=>this.updateActiveFilters())}createGetValue(e,t){const{filterValueSvc:o,colModel:r}=this.beans;return(n,i)=>{const s=i?r.getCol(i):e;return s?o.getValue(s,n,t):void 0}}isFilterActive(e){const t=this.cachedFilter(e);if(t?.isHandler)return this.isHandlerActive(e);const o=t?.filter;return o?o.isFilterActive():to(this.initialModel,e.getColId())!=null}isHandlerActive(e){const t=Ee(to(this.model,e.getColId()));if(t)return t;const o=this.beans.groupFilter;return o?.isGroupFilter(e)?o.isFilterActive(e):!1}getOrCreateFilterUi(e){const t=this.getOrCreateFilterWrapper(e,!0);return t?Oi(t):null}getFilterUiForDisplay(e){const t=this.getOrCreateFilterWrapper(e,!0);if(!t)return null;const o=Oi(t);return o?o.then(r=>({comp:r,params:t.filterUi.filterParams,isHandler:t.isHandler})):null}getHandler(e,t){const o=this.getOrCreateFilterWrapper(e,t);return o?.isHandler?o.handler:void 0}getOrCreateFilterWrapper(e,t){if(!e.isFilterAllowed())return;let o=this.cachedFilter(e);return!o&&t&&(o=this.createFilterWrapper(e),this.setColumnFilterWrapper(e,o)),o}cachedFilter(e){return this.allColumnFilters.get(e.getColId())}getDefaultFilter(e,t=!1){return this.getDefaultFilterFromDataType(()=>this.beans.dataTypeSvc?.getBaseDataType(e),t)}getDefaultFilterFromDataType(e,t=!1){return C7(this.gos)?t?"agSetColumnFloatingFilter":"agSetColumnFilter":vj(e(),t)}getDefaultFloatingFilter(e){return this.getDefaultFilter(e,!0)}createFilterComp(e,t,o,r,n,i){const s=()=>{const d=this.createFilterCompParams(e,n,i),h=r(d,n);return E9(this.beans.userCompFactory,t,h,o)},a=s();return a?{compDetails:a,createFilterUi:d=>(d?s():a).newAgStackInstance()}:null}createFilterInstance(e,t,o,r){const n=this.beans.selectableFilter;n?.isSelectable(t)&&(t=n.getFilterDef(e,t));const{handler:i,handlerParams:s,handlerGenerator:a}=this.createHandler(e,t,o)??{},c=this.createFilterComp(e,t,o,r,!!i,"init");if(!c)return{compDetails:null,createFilterUi:null,handler:i,handlerGenerator:a,handlerParams:s};const{compDetails:d,createFilterUi:h}=c;return this.isGlobalButtons&&(d.params?.buttons?.length||he(281,{colId:e.getColId()})),{compDetails:d,handler:i,handlerGenerator:a,handlerParams:s,createFilterUi:h}}createBaseFilterParams(e,t){const{filterManager:o,rowModel:r}=this.beans;return Ze(this.gos,{column:e,colDef:e.getColDef(),getValue:this.createGetValue(e),doesRowPassOtherFilter:t?()=>!0:n=>o?.doesRowPassOtherFilters(e.getColId(),n)??!0,rowModel:r})}createFilterCompParams(e,t,o,r){const n=this.filterChangedCallbackFactory(e),i=this.createBaseFilterParams(e,r);if(i.filterChangedCallback=n,i.filterModifiedCallback=r?()=>{}:s=>this.filterModified(e,s),t){const s=i,a=e.getColId(),c=to(this.model,a);s.model=c,s.state=this.state.get(a)??{model:c},s.onModelChange=(d,h)=>{this.updateStoredModel(a,d),this.refreshHandlerAndUi(e,d,"ui",!1,h).then(()=>{n({...h,source:"columnFilter"})})},s.onStateChange=d=>{this.updateState(e,d),this.updateOrRefreshFilterUi(e)},s.onAction=(d,h,f)=>{this.updateModel(e,d,h),this.dispatchLocalEvent({type:"filterAction",column:e,action:d,event:f})},s.getHandler=()=>this.getHandler(e,!0),s.onUiChange=d=>this.filterUiChanged(e,d),s.source=o}return i}createFilterUiForHandler(e,t){return t?{created:!1,create:t,filterParams:e.params,compDetails:e}:null}createFilterUiLegacy(e,t,o){const r=t(),n={created:!0,create:t,filterParams:e.params,compDetails:e,promise:r};return r.then(o),n}createFilterWrapper(e){const{compDetails:t,handler:o,handlerGenerator:r,handlerParams:n,createFilterUi:i}=this.createFilterInstance(e,e.getColDef(),this.getDefaultFilter(e),a=>a),s=e.getColId();if(o)return delete this.initialModel[s],o.init?.({...n,source:"init",model:to(this.model,s)}),{column:e,isHandler:!0,handler:o,handlerGenerator:r,handlerParams:n,filterUi:this.createFilterUiForHandler(t,i)};if(i){const a={column:e,filterUi:null,isHandler:!1};return a.filterUi=this.createFilterUiLegacy(t,i,c=>{a.filter=c??void 0}),a}return{column:e,filterUi:null,isHandler:!1}}createHandlerFunc(e,t,o){const{gos:r,frameworkOverrides:n,registry:i}=this.beans;let s;const a=m=>{const b=m.filter;if(xF(b)){const w=b.handler;return w||(s=b.doesFilterPass,s?()=>({doesFilterPass:s}):void 0)}return typeof b=="string"?b:void 0},c=r.get("enableFilterHandlers"),d=c?a(t):void 0,h=m=>()=>this.createBean(i.createDynamicBean(m,!0));let f,g;if(typeof d=="string"){const m=r.get("filterHandlers")?.[d];m!=null?f=m:ij.has(d)&&(f=h(d),g=d)}else f=d;if(!f){let m;const{compName:b,jsComp:w,fwComp:y}=_F(n,t);b?m=b:w==null&&y==null&&t.filter===!0&&(m=o),g=this.handlerMap[m],g&&(f=h(g))}return f?{filterHandler:f,handlerNameOrCallback:s??g}:c?(Fo(r)&&he(277,{colId:e.getColId()}),XX):void 0}createHandler(e,t,o){const r=this.createHandlerFunc(e,t,o);if(!r)return;const n=lv(this.beans.userCompFactory,t,this.createFilterCompParams(e,!0,"init")),{handlerNameOrCallback:i,filterHandler:s}=r,{handler:a,handlerParams:c}=this.createHandlerFromFunc(e,s,n);return{handler:a,handlerParams:c,handlerGenerator:i??s}}createHandlerFromFunc(e,t,o){const r=e.getColDef(),n=t(Ze(this.gos,{column:e,colDef:r})),i=this.createHandlerParams(e,o);return{handler:n,handlerParams:i}}createHandlerParams(e,t){const o=e.getColDef(),r=e.getColId(),n=this.filterChangedCallbackFactory(e);return Ze(this.gos,{colDef:o,column:e,getValue:this.createGetValue(e),doesRowPassOtherFilter:i=>this.beans.filterManager?.doesRowPassOtherFilters(r,i)??!0,onModelChange:(i,s)=>{this.updateStoredModel(r,i),this.refreshHandlerAndUi(e,i,"handler",!1,s).then(()=>{n({...s,source:"columnFilter"})})},filterParams:t})}onColumnsChanged(){const e=[],{colModel:t,filterManager:o,groupFilter:r}=this.beans;this.allColumnFilters.forEach((i,s)=>{let a;i.column.isPrimary()?a=t.getColDefCol(s):a=t.getCol(s),!(a&&a===i.column)&&(e.push(i.column),this.disposeFilterWrapper(i,"columnChanged"),this.disposeColumnListener(s))});const n=r&&e.every(i=>r.isGroupFilter(i));e.length>0&&!n&&o?.onFilterChanged({columns:e,source:"api"})}isFilterAllowed(e){if(!e.isFilterAllowed())return!1;const o=this.beans.groupFilter;return o?.isGroupFilter(e)?o.isFilterAllowed(e):!0}getFloatingFilterCompDetails(e,t){const{userCompFactory:o,frameworkOverrides:r,selectableFilter:n,gos:i}=this.beans,s=m=>{this.getOrCreateFilterUi(e)?.then(w=>{m(cv(w))})},a=e.getColDef(),c=n?.isSelectable(a)?n.getFilterDef(e,a):a,d=Cj(r,c,()=>this.getDefaultFloatingFilter(e))??"agReadOnlyFloatingFilter",h=i.get("enableFilterHandlers"),f=lv(o,c,this.createFilterCompParams(e,h,"init",!0)),g=Ze(i,{column:e,filterParams:f,currentParentModel:()=>this.getCurrentFloatingFilterParentModel(e),parentFilterInstance:s,showParentFilter:t});if(h){const m=g,b=e.getColId(),w=this.filterChangedCallbackFactory(e);m.onUiChange=y=>this.floatingFilterUiChanged(e,y),m.model=to(this.model,b),m.onModelChange=(y,k)=>{this.updateStoredModel(b,y),this.refreshHandlerAndUi(e,y,"floating",!0,k).then(()=>{w({...k,source:"columnFilter"})})},m.getHandler=()=>this.getHandler(e,!0),m.source="init"}return P9(o,a,g,d)}getCurrentFloatingFilterParentModel(e){return this.getModelFromFilterWrapper(this.cachedFilter(e)??{column:e})}destroyFilterUi(e,t,o,r){const n="paramsUpdated";if(e.isHandler){const i=t.getColId();delete this.initialModel[i],this.state.delete(i);const s=e.filterUi,a=this.createFilterUiForHandler(o,r);e.filterUi=a;const c=this.eventSvc;s?.created?s.promise.then(d=>{this.destroyBean(d),c.dispatchEvent({type:"filterDestroyed",source:n,column:t})}):c.dispatchEvent({type:"filterHandlerDestroyed",source:n,column:t})}else this.destroyFilter(t,n)}destroyFilter(e,t="api"){const o=e.getColId(),r=this.allColumnFilters.get(o);this.disposeColumnListener(o),delete this.initialModel[o],r&&this.disposeFilterWrapper(r,t).then(n=>{n&&this.isAlive()&&this.beans.filterManager?.onFilterChanged({columns:[e],source:"api"})})}disposeColumnListener(e){const t=this.allColumnListeners.get(e);t&&(this.allColumnListeners.delete(e),t())}disposeFilterWrapper(e,t){let o=!1;const{column:r,isHandler:n,filterUi:i}=e,s=r.getColId();n&&(o=this.isHandlerActive(r),this.destroyBean(e.handler),delete this.model[s],this.state.delete(s));const a=()=>{this.setColFilterActive(r,!1,"filterDestroyed"),this.allColumnFilters.delete(s),this.eventSvc.dispatchEvent({type:"filterDestroyed",source:t,column:r})};if(i){if(i.created)return i.promise.then(c=>(o=n?o:!!c?.isFilterActive(),this.destroyBean(c),a(),o));a()}return Ye.resolve(o)}filterChangedCallbackFactory(e){return t=>{this.callOnFilterChangedOutsideRenderCycle({additionalEventAttributes:t,columns:[e],column:e,source:t?.source??"columnFilter"})}}filterParamsChanged(e,t="api"){const o=this.allColumnFilters.get(e);if(!o)return;const r=this.beans,n=o.column,i=n.getColDef(),s=n.isFilterAllowed(),a=this.getDefaultFilter(n),c=r.selectableFilter,d=c?.isSelectable(i)?c.getFilterDef(n,i):i,h=s?this.createHandlerFunc(n,d,this.getDefaultFilter(n)):void 0,f=!!h,g=o.isHandler;if(g!=f){this.destroyFilter(n,"paramsUpdated");return}const{compDetails:m,createFilterUi:b}=(s?this.createFilterComp(n,d,a,y=>y,f,"colDef"):null)??{compDetails:null,createFilterUi:null},w=m?.params??lv(r.userCompFactory,d,this.createFilterCompParams(n,f,"colDef"));if(g){const y=h?.handlerNameOrCallback??h?.filterHandler,k=to(this.model,e);if(o.handlerGenerator!=y){const C=o.handler,{handler:F,handlerParams:E}=this.createHandlerFromFunc(n,h.filterHandler,w);o.handler=F,o.handlerParams=E,o.handlerGenerator=y,delete this.model[e],F.init?.({...E,source:"init",model:null}),this.destroyBean(C),k!=null&&this.beans.filterManager?.onFilterChanged({columns:[n],source:t})}else{const C=this.createHandlerParams(n,m?.params);o.handlerParams=C,o.handler.refresh?.({...C,source:"colDef",model:k})}}if(this.areFilterCompsDifferent(o.filterUi?.compDetails??null,m)||!o.filterUi||!m){this.destroyFilterUi(o,n,m,b);return}o.filterUi.filterParams=w,Oi(o,g)?.then(y=>{(y?.refresh?y.refresh(w):!0)===!1?this.destroyFilterUi(o,n,m,b):this.dispatchLocalEvent({type:"filterParamsChanged",column:n,params:w})})}refreshHandlerAndUi(e,t,o,r,n){const i=this.cachedFilter(e);if(!i)return r&&this.getOrCreateFilterWrapper(e,!0),Ye.resolve();if(!i.isHandler)return Ye.resolve();const{filterUi:s,handler:a,handlerParams:c}=i;return sj(()=>{if(s){const{created:d,filterParams:h}=s;if(d)return s.promise.then(f=>f?{filter:f,filterParams:h}:void 0);s.refreshed=!0}return Ye.resolve(void 0)},a,c,t,this.state.get(e.getColId())??{model:t},o,n)}setColumnFilterWrapper(e,t){const o=e.getColId();this.allColumnFilters.set(o,t),this.allColumnListeners.set(o,this.addManagedListeners(e,{colDefChanged:()=>this.filterParamsChanged(o)})[0])}areFilterCompsDifferent(e,t){if(!t||!e)return!0;const{componentClass:o}=e,{componentClass:r}=t;return!(o===r||o?.render&&r?.render&&o.render===r.render)}hasFloatingFilters(){return this.beans.colModel.getCols().some(t=>t.getColDef().floatingFilter)}getFilterInstance(e){const t=this.beans.colModel.getColDefCol(e);if(!t)return Promise.resolve(void 0);const o=this.getOrCreateFilterUi(t);return o?new Promise(r=>{o.then(n=>{r(cv(n))})}):Promise.resolve(null)}processFilterModelUpdateQueue(){this.modelUpdates.forEach(({model:e,source:t})=>this.setModel(e,t)),this.modelUpdates=[],this.columnModelUpdates.forEach(({key:e,model:t,resolve:o})=>{this.setModelForColumn(e,t).then(()=>o())}),this.columnModelUpdates=[]}getModelForColumn(e,t){if(t){const{state:r,model:n}=this,i=e.getColId(),s=r.get(i);return s?s.model??null:to(n,i)}const o=this.cachedFilter(e);return o?this.getModelFromFilterWrapper(o):null}setModelForColumn(e,t){if(this.beans.dataTypeSvc?.isPendingInference){let o=()=>{};const r=new Promise(n=>{o=n});return this.columnModelUpdates.push({key:e,model:t,resolve:o}),r}return new Promise(o=>{this.setModelForColumnLegacy(e,t).then(r=>o(r))})}getStateForColumn(e){return this.state.get(e)??{model:to(this.model,e)}}setModelForColumnLegacy(e,t){const o=this.beans.colModel.getColDefCol(e),r=o?this.getOrCreateFilterWrapper(o,!0):null;return r?this.setModelOnFilterWrapper(r,t):Ye.resolve()}setColDefPropsForDataType(e,t,o){const r=e.filter,n=r===!0?this.getDefaultFilterFromDataType(()=>t.baseDataType):r;if(typeof n!="string")return;let i,s;const a=this.beans,{filterParams:c,filterValueGetter:d}=e;n==="agMultiColumnFilter"?{filterParams:i,filterValueGetter:s}=a.multiFilter?.getParamsForDataType(c,d,t,o)??{}:{filterParams:i,filterValueGetter:s}=pj(n,c,d,t,o,a,this.getLocaleTextFunc()),e.filterParams=i,s&&(e.filterValueGetter=s)}setColFilterActive(e,t,o,r){e.filterActive!==t&&(e.filterActive=t,e.dispatchColEvent("filterActiveChanged",o)),e.dispatchColEvent("filterChanged",o,r)}setModelOnFilterWrapper(e,t,o){return new Ye(r=>{if(e.isHandler){const i=e.column,s=i.getColId(),a=this.model[s];if(this.updateStoredModel(s,t),o&&t===a){r();return}this.refreshHandlerAndUi(i,t,"api").then(()=>r());return}const n=Oi(e);if(n){n.then(i=>{if(typeof i?.setModel!="function"){he(65),r();return}(i.setModel(t)||Ye.resolve()).then(()=>r())});return}r()})}updateStoredModel(e,t){Ee(t)?this.model[e]=t:delete this.model[e];const o=this.state.get(e),r={model:t,state:o?.state};this.state.set(e,r)}filterModified(e,t){this.getOrCreateFilterUi(e)?.then(o=>{this.eventSvc.dispatchEvent({type:"filterModified",column:e,filterInstance:o,...t})})}filterUiChanged(e,t){this.gos.get("enableFilterHandlers")&&this.eventSvc.dispatchEvent({type:"filterUiChanged",column:e,...t})}floatingFilterUiChanged(e,t){this.gos.get("enableFilterHandlers")&&this.eventSvc.dispatchEvent({type:"floatingFilterUiChanged",column:e,...t})}updateModel(e,t,o){const r=e.getColId(),n=this.cachedFilter(e),i=()=>n?.filterUi;dR({action:t,filterParams:n?.filterUi?.filterParams,getFilterUi:i,getModel:()=>to(this.model,r),getState:()=>this.state.get(r),updateState:s=>this.updateState(e,s),updateModel:s=>i()?.filterParams?.onModelChange(s,{...o,fromAction:t}),processModelToApply:n?.isHandler?n.handler.processModelToApply?.bind(n.handler):void 0})}updateAllModels(e,t){const o=[];this.allColumnFilters.forEach((r,n)=>{const i=this.beans.colModel.getColDefCol(n);i&&dR({action:e,filterParams:r.filterUi?.filterParams,getFilterUi:()=>r.filterUi,getModel:()=>to(this.model,n),getState:()=>this.state.get(n),updateState:s=>this.updateState(i,s),updateModel:s=>{this.updateStoredModel(n,s),this.dispatchLocalEvent({type:"filterAction",column:i,action:e}),o.push(this.refreshHandlerAndUi(i,s,"ui"))},processModelToApply:r?.isHandler?r.handler.processModelToApply?.bind(r.handler):void 0})}),o.length&&Ye.all(o).then(()=>{this.callOnFilterChangedOutsideRenderCycle({source:"columnFilter",additionalEventAttributes:t,columns:[]})})}updateOrRefreshFilterUi(e){const t=e.getColId();uR(()=>this.cachedFilter(e)?.filterUi,()=>to(this.model,t),()=>this.state.get(t))}updateState(e,t){this.state.set(e.getColId(),t),this.dispatchLocalEvent({type:"filterStateChanged",column:e,state:t})}canApplyAll(){const{state:e,model:t,activeFilterComps:o}=this;for(const n of o)if(n.source==="COLUMN_MENU")return!1;let r=!1;for(const n of e.keys()){const i=e.get(n);if(i.valid===!1)return!1;(i.model??null)!==to(t,n)&&(r=!0)}return r}hasUnappliedModel(e){const{model:t,state:o}=this;return(o.get(e)?.model??null)!==to(t,e)}setGlobalButtons(e){this.isGlobalButtons=e,this.dispatchLocalEvent({type:"filterGlobalButtons",isGlobal:e})}shouldKeepStateOnDetach(e,t){if(t==="newFiltersToolPanel")return!0;const o=this.beans.filterPanelSvc;return o?.isActive?!!o.getState(e.getColId()):!1}destroy(){super.destroy(),this.allColumnFilters.forEach(e=>this.disposeFilterWrapper(e,"gridDestroyed")),this.allColumnListeners.clear(),this.state.clear(),this.activeFilterComps.clear()}};function YX(e){return!!e.filterManager?.isAnyFilterPresent()}function QX(e,t="api"){e.filterManager?.onFilterChanged({source:t})}var JX=class extends ue{constructor(){super(...arguments),this.beanName="filterManager",this.advFilterModelUpdateQueue=[]}wireBeans(e){this.quickFilter=e.quickFilter,this.advancedFilter=e.advancedFilter,this.colFilter=e.colFilter}postConstruct(){const e=this.refreshFiltersForAggregations.bind(this),t=this.updateAdvFilterColumns.bind(this);this.addManagedEventListeners({columnValueChanged:e,columnPivotChanged:e,columnPivotModeChanged:e,newColumnsLoaded:t,columnVisible:t,advancedFilterEnabledChanged:({enabled:r})=>this.onAdvFilterEnabledChanged(r),dataTypesInferred:this.processFilterModelUpdateQueue.bind(this)}),this.externalFilterPresent=this.isExternalFilterPresentCallback(),this.addManagedPropertyListeners(["isExternalFilterPresent","doesExternalFilterPass"],()=>{this.onFilterChanged({source:"api"})}),this.updateAggFiltering(),this.addManagedPropertyListener("groupAggFiltering",()=>{this.updateAggFiltering(),this.onFilterChanged()}),this.quickFilter&&this.addManagedListeners(this.quickFilter,{quickFilterChanged:()=>this.onFilterChanged({source:"quickFilter"})});const{gos:o}=this;this.alwaysPassFilter=o.get("alwaysPassFilter"),this.addManagedPropertyListener("alwaysPassFilter",()=>{this.alwaysPassFilter=o.get("alwaysPassFilter"),this.onFilterChanged({source:"api"})})}isExternalFilterPresentCallback(){const e=this.gos.getCallback("isExternalFilterPresent");return typeof e=="function"&&e({})}doesExternalFilterPass(e){const t=this.gos.get("doesExternalFilterPass");return typeof t=="function"&&t(e)}setFilterState(e,t,o="api"){this.isAdvFilterEnabled()||this.colFilter?.setState(e,t,o)}setFilterModel(e,t="api",o){if(this.isAdvFilterEnabled()){o||this.warnAdvFilters();return}this.colFilter?.setModel(e,t)}getFilterModel(){return this.colFilter?.getModel()??{}}getFilterState(){return this.colFilter?.getState()}isColumnFilterPresent(){return!!this.colFilter?.isFilterPresent()}isAggregateFilterPresent(){return!!this.colFilter?.isAggFilterPresent()}isChildFilterPresent(){return this.isColumnFilterPresent()||this.isQuickFilterPresent()||this.externalFilterPresent||this.isAdvFilterPresent()}isAnyFilterPresent(){return this.isChildFilterPresent()||this.isAggregateFilterPresent()}isAdvFilterPresent(){return this.isAdvFilterEnabled()&&this.advancedFilter.isFilterPresent()}onAdvFilterEnabledChanged(e){e?this.colFilter?.disableFilters()&&this.onFilterChanged({source:"advancedFilter"}):this.advancedFilter?.isFilterPresent()&&(this.advancedFilter.setModel(null),this.onFilterChanged({source:"advancedFilter"}))}isAdvFilterEnabled(){return!!this.advancedFilter?.isEnabled()}isAdvFilterHeaderActive(){return this.isAdvFilterEnabled()&&this.advancedFilter.isHeaderActive()}refreshFiltersForAggregations(){ev(this.gos)&&this.isAnyFilterPresent()&&this.onFilterChanged()}onFilterChanged(e={}){const{source:t,additionalEventAttributes:o,columns:r=[]}=e;this.externalFilterPresent=this.isExternalFilterPresentCallback(),(this.colFilter?this.colFilter.updateBeforeFilterChanged(e):Ye.resolve()).then(()=>{const n={source:t,type:"filterChanged",columns:r};o&&ko(n,o),this.eventSvc.dispatchEvent(n),this.colFilter?.updateAfterFilterChanged()})}isSuppressFlashingCellsBecauseFiltering(){return!!this.colFilter?.isSuppressFlashingCellsBecauseFiltering()}isQuickFilterPresent(){return!!this.quickFilter?.isFilterPresent()}updateAggFiltering(){this.aggFiltering=!!ev(this.gos)}isAggregateQuickFilterPresent(){return this.isQuickFilterPresent()&&this.shouldApplyQuickFilterAfterAgg()}isNonAggregateQuickFilterPresent(){return this.isQuickFilterPresent()&&!this.shouldApplyQuickFilterAfterAgg()}shouldApplyQuickFilterAfterAgg(){return(this.aggFiltering||this.beans.colModel.isPivotMode())&&!this.gos.get("applyQuickFilterBeforePivotOrAgg")}doesRowPassOtherFilters(e,t){return this.doesRowPassFilter({rowNode:t,colIdToSkip:e})}doesRowPassAggregateFilters(e){const{rowNode:t}=e;return this.alwaysPassFilter?.(t)?!0:!(this.isAggregateQuickFilterPresent()&&!this.quickFilter.doesRowPass(t)||this.isAggregateFilterPresent()&&!this.colFilter.doFiltersPass(t,e.colIdToSkip,!0))}doesRowPassFilter(e){const{rowNode:t}=e;return this.alwaysPassFilter?.(t)?!0:!(this.isNonAggregateQuickFilterPresent()&&!this.quickFilter.doesRowPass(t)||this.externalFilterPresent&&!this.doesExternalFilterPass(t)||this.isColumnFilterPresent()&&!this.colFilter.doFiltersPass(t,e.colIdToSkip)||this.isAdvFilterPresent()&&!this.advancedFilter.doesFilterPass(t))}isFilterAllowed(e){return this.isAdvFilterEnabled()?!1:!!this.colFilter?.isFilterAllowed(e)}getAdvFilterModel(){return this.isAdvFilterEnabled()?this.advancedFilter.getModel():null}setAdvFilterModel(e,t="api"){if(this.isAdvFilterEnabled()){if(this.beans.dataTypeSvc?.isPendingInference){this.advFilterModelUpdateQueue.push(e);return}this.advancedFilter.setModel(e??null),this.onFilterChanged({source:t})}}toggleAdvFilterBuilder(e,t){this.isAdvFilterEnabled()&&this.advancedFilter.getCtrl().toggleFilterBuilder({source:t,force:e})}updateAdvFilterColumns(){this.isAdvFilterEnabled()&&this.advancedFilter.updateValidity()&&this.onFilterChanged({source:"advancedFilter"})}hasFloatingFilters(){return this.isAdvFilterEnabled()?!1:!!this.colFilter?.hasFloatingFilters()}getColumnFilterInstance(e){return this.isAdvFilterEnabled()?(this.warnAdvFilters(),Promise.resolve(void 0)):this.colFilter?.getFilterInstance(e)??Promise.resolve(void 0)}warnAdvFilters(){he(68)}setupAdvFilterHeaderComp(e){this.advancedFilter?.getCtrl().setupHeaderComp(e)}getHeaderRowCount(){return this.isAdvFilterHeaderActive()?1:0}getHeaderHeight(){return this.isAdvFilterHeaderActive()?this.advancedFilter.getCtrl().getHeaderHeight():0}processFilterModelUpdateQueue(){for(const e of this.advFilterModelUpdateQueue)this.setAdvFilterModel(e);this.advFilterModelUpdateQueue=[]}setColumnFilterModel(e,t){return this.isAdvFilterEnabled()?(this.warnAdvFilters(),Promise.resolve()):this.colFilter?.setModelForColumn(e,t)??Promise.resolve()}},eZ=class extends ue{constructor(){super(...arguments),this.beanName="filterMenuFactory"}wireBeans(e){this.popupSvc=e.popupSvc}hideActiveMenu(){this.hidePopup?.()}showMenuAfterMouseEvent(e,t,o,r){e&&!e.isColumn||this.showPopup(e,n=>{this.popupSvc?.positionPopupUnderMouseEvent({additionalParams:{column:e},type:o,mouseEvent:t,ePopup:n})},o,t.target,Yo(this.gos),r)}showMenuAfterButtonClick(e,t,o,r){if(e&&!e.isColumn)return;let n=-1,i="left";const s=Yo(this.gos);!s&&this.gos.get("enableRtl")&&(n=1,i="right");const a=s?void 0:4*n,c=s?void 0:4;this.showPopup(e,d=>{this.popupSvc?.positionPopupByComponent({type:o,eventSource:t,ePopup:d,nudgeX:a,nudgeY:c,alignSide:i,keepWithinBounds:!0,position:"under",additionalParams:{column:e}})},o,t,s,r)}showPopup(e,t,o,r,n,i){const s=e?this.createBean(new hj(e,"COLUMN_MENU")):void 0;if(this.activeMenu=s,!s?.hasFilter()||!e){Ft(57);return}const a=Ni({tag:"div",cls:`ag-menu${n?"":" ag-filter-menu"}`,role:"presentation"});[this.tabListener]=this.addManagedElementListeners(a,{keydown:w=>this.trapFocusWithin(w,a)}),a.appendChild(s?.getGui());let c;const d=()=>s?.afterGuiDetached(),h=y7(this.gos)?r??this.beans.ctrlsSvc.getGridBodyCtrl().eGridBody:void 0,f=w=>{LR(e,!1,"contextMenu");const y=w instanceof KeyboardEvent;this.tabListener&&(this.tabListener=this.tabListener()),y&&r&&Xn(r)&&BF(r)?.focus({preventScroll:!0}),d(),this.destroyBean(this.activeMenu),this.dispatchVisibleChangedEvent(!1,o,e),i?.()},g=this.getLocaleTextFunc(),m=n&&o!=="columnFilter"?g("ariaLabelColumnMenu","Column Menu"):g("ariaLabelColumnFilter","Column Filter"),b=this.popupSvc?.addPopup({modal:!0,eChild:a,closeOnEsc:!0,closedCallback:f,positionCallback:()=>t(a),anchorToElement:h,ariaLabel:m});b&&(this.hidePopup=c=b.hideFunc),s.afterInit().then(()=>{t(a),s.afterGuiAttached({container:o,hidePopup:c})}),LR(e,!0,"contextMenu"),this.dispatchVisibleChangedEvent(!0,o,e)}trapFocusWithin(e,t){e.key!==ee.TAB||e.defaultPrevented||al(this.beans,t,!1,e.shiftKey)||(e.preventDefault(),Vs(t,e.shiftKey))}dispatchVisibleChangedEvent(e,t,o){this.eventSvc.dispatchEvent({type:"columnMenuVisibleChanged",visible:e,switchingTab:!1,key:t,column:o??null,columnGroup:null})}isMenuEnabled(e){return e.isFilterAllowed()&&(e.getColDef().menuTabs??["filterMenuTab"]).includes("filterMenuTab")}showMenuAfterContextMenuEvent(){}destroy(){this.destroyBean(this.activeMenu),super.destroy()}},tZ=class extends ue{constructor(){super(...arguments),this.beanName="filterValueSvc"}getValue(e,t,o){if(!t)return;const r=e.getColDef(),{selectableFilter:n,valueSvc:i,formula:s}=this.beans,a=o??n?.getFilterValueGetter(e.getColId())??r.filterValueGetter;if(a)return this.executeFilterValueGetter(a,t.data,e,t,r);const c=i.getValue(e,t);return e.isAllowFormula()&&s?.isFormula(c)?s.resolveValue(e,t):c}executeFilterValueGetter(e,t,o,r,n){const{expressionSvc:i,valueSvc:s}=this.beans,a=Ze(this.gos,{data:t,node:r,column:o,colDef:n,getValue:s.getValueCallback.bind(s,r)});return typeof e=="function"?e(a):i?.evaluate(e,a)}},wb=class{constructor(){this.customFilterOptions={}}init(e,t){this.filterOptions=e.filterOptions??t,this.mapCustomOptions(),this.defaultOption=this.getDefaultItem(e.defaultOption)}refresh(e,t){const o=e.filterOptions??t;this.filterOptions!==o&&(this.filterOptions=o,this.customFilterOptions={},this.mapCustomOptions()),this.defaultOption=this.getDefaultItem(e.defaultOption)}mapCustomOptions(){const{filterOptions:e}=this;if(e)for(const t of e){if(typeof t=="string")continue;const o=[["displayKey"],["displayName"],["predicate","test"]],r=n=>n.some(i=>t[i]!=null)?!0:(he(72,{keys:n}),!1);if(!o.every(r)){this.filterOptions=e.filter(n=>n===t)||[];continue}this.customFilterOptions[t.displayKey]=t}}getDefaultItem(e){const{filterOptions:t}=this;if(e)return e;if(t.length>=1){const o=t[0];if(typeof o=="string")return o;if(o.displayKey)return o.displayKey;he(73)}else he(74)}getCustomOption(e){return this.customFilterOptions[e]}};function NE(e,t,o){return o==null?e.splice(t):e.splice(t,o)}function LE(e){return e==null||typeof e=="string"&&e.trim().length===0}function oZ(e){return e==="AND"||e==="OR"?e:"AND"}function rZ(e,t,o){if(e==null)return;const{predicate:r}=e;if(r!=null&&!t.some(n=>n==null))return r(t,o)}function nZ(e,t){let o=e.length;return o>t&&(e.splice(t),he(78),o=t),o}function Cb(e,t){const o=t.getCustomOption(e);if(o){const{numberOfInputs:n}=o;return n??1}return e&&["empty","notBlank","blank"].indexOf(e)>=0?0:e==="inRange"?2:1}var iZ=class extends wj{constructor(e,t,o){super(e,"simple-filter"),this.mapValuesFromModel=t,this.defaultOptions=o,this.eTypes=[],this.eJoinPanels=[],this.eJoinAnds=[],this.eJoinOrs=[],this.eConditionBodies=[],this.listener=()=>this.onUiChanged(),this.lastUiCompletePosition=null,this.joinOperatorId=0}setParams(e){super.setParams(e);const t=new wb;this.optionsFactory=t,t.init(e,this.defaultOptions),this.commonUpdateSimpleParams(e),this.createOption(),this.createMissingConditionsAndOperators()}updateParams(e,t){this.optionsFactory.refresh(e,this.defaultOptions),super.updateParams(e,t),this.commonUpdateSimpleParams(e)}commonUpdateSimpleParams(e){this.setNumConditions(e),this.defaultJoinOperator=oZ(e.defaultJoinOperator),this.filterPlaceholder=e.filterPlaceholder,this.createFilterListOptions(),Wr(this.getGui(),"tabindex",this.isReadOnly()?"-1":null)}onFloatingFilterChanged(e,t){this.setTypeFromFloatingFilter(e),this.setValueFromFloatingFilter(t),this.onUiChanged("immediately",!0)}setTypeFromFloatingFilter(e){this.eTypes.forEach((t,o)=>{const r=o===0?e:this.optionsFactory.defaultOption;t.setValue(r,!0)})}getModelFromUi(){const e=this.getUiCompleteConditions();return e.length===0?null:this.maxNumConditions>1&&e.length>1?{filterType:this.filterType,operator:this.getJoinOperator(),conditions:e}:e[0]}getConditionTypes(){return this.eTypes.map(e=>e.getValue())}getConditionType(e){return this.eTypes[e].getValue()}getJoinOperator(){const{eJoinOrs:e,defaultJoinOperator:t}=this;return e.length===0?t:e[0].getValue()===!0?"OR":"AND"}areNonNullModelsEqual(e,t){const o=!e.operator,r=!t.operator;if(!o&&r||o&&!r)return!1;let i;if(o){const s=e,a=t;i=this.areSimpleModelsEqual(s,a)}else{const s=e,a=t;i=s.operator===a.operator&&el(s.conditions,a.conditions,(c,d)=>this.areSimpleModelsEqual(c,d))}return i}setModelIntoUi(e,t){if(e==null)return this.resetUiToDefaults(t),Ye.resolve();if(e.operator){const r=e;let n=r.conditions;n==null&&(n=[],he(77));const i=nZ(n,this.maxNumConditions),s=this.getNumConditions();if(i<s)this.removeConditionsAndOperators(i);else if(i>s)for(let c=s;c<i;c++)this.createJoinOperatorPanel(),this.createOption();const a=r.operator==="OR";this.eJoinAnds.forEach(c=>c.setValue(!a,!0)),this.eJoinOrs.forEach(c=>c.setValue(a,!0)),n.forEach((c,d)=>{this.eTypes[d].setValue(c.type,!0),this.setConditionIntoUi(c,d)})}else{const r=e;this.getNumConditions()>1&&this.removeConditionsAndOperators(1),this.eTypes[0].setValue(r.type,!0),this.setConditionIntoUi(r,0)}return this.lastUiCompletePosition=this.getNumConditions()-1,this.createMissingConditionsAndOperators(),this.updateUiVisibility(),t||this.params.onUiChange(this.getUiChangeEventParams()),Ye.resolve()}setNumConditions(e){let t=e.maxNumConditions??2;t<1&&(he(79),t=1),this.maxNumConditions=t;let o=e.numAlwaysVisibleConditions??1;o<1&&(he(80),o=1),o>t&&(he(81),o=t),this.numAlwaysVisibleConditions=o}createOption(){const e=this.getGui(),t=this.createManagedBean(new VF);this.eTypes.push(t),t.addCss("ag-filter-select"),e.appendChild(t.getGui());const o=this.createEValue();this.eConditionBodies.push(o),e.appendChild(o),this.putOptionsIntoDropdown(t),this.resetType(t);const r=this.getNumConditions()-1;this.forEachPositionInput(r,n=>this.resetInput(n)),this.addChangedListeners(t,r)}createJoinOperatorPanel(){const e=Ni({tag:"div",cls:"ag-filter-condition"});this.eJoinPanels.push(e);const t=this.createJoinOperator(this.eJoinAnds,e,"and"),o=this.createJoinOperator(this.eJoinOrs,e,"or");this.getGui().appendChild(e);const r=this.eJoinPanels.length-1,n=this.joinOperatorId++;this.resetJoinOperatorAnd(t,r,n),this.resetJoinOperatorOr(o,r,n),this.isReadOnly()||(t.onValueChange(this.listener),o.onValueChange(this.listener))}createJoinOperator(e,t,o){const r=this.createManagedBean(new J9);e.push(r);const n="ag-filter-condition-operator";return r.addCss(n),r.addCss(`${n}-${o}`),t.appendChild(r.getGui()),r}createFilterListOptions(){this.filterListOptions=this.optionsFactory.filterOptions.map(e=>typeof e=="string"?this.createBoilerplateListOption(e):this.createCustomListOption(e))}putOptionsIntoDropdown(e){const{filterListOptions:t}=this;for(const o of t)e.addOption(o);e.setDisabled(t.length<=1)}createBoilerplateListOption(e){return{value:e,text:this.translate(e)}}createCustomListOption(e){const{displayKey:t}=e,o=this.optionsFactory.getCustomOption(e.displayKey);return{value:t,text:o?this.getLocaleTextFunc()(o.displayKey,o.displayName):this.translate(t)}}createBodyTemplate(){return null}getAgComponents(){return[]}updateUiVisibility(){const e=this.getJoinOperator();this.updateNumConditions(),this.updateConditionStatusesAndValues(this.lastUiCompletePosition,e)}updateNumConditions(){let e=-1,t=!0;for(let o=0;o<this.getNumConditions();o++)this.isConditionUiComplete(o)?e=o:t=!1;if(this.shouldAddNewConditionAtEnd(t))this.createJoinOperatorPanel(),this.createOption();else{const o=this.lastUiCompletePosition??this.getNumConditions()-2;if(e<o){this.removeConditionsAndOperators(o+1);const r=e+1,n=o-r;n>0&&this.removeConditionsAndOperators(r,n),this.createMissingConditionsAndOperators()}}this.lastUiCompletePosition=e}updateConditionStatusesAndValues(e,t){this.eTypes.forEach((r,n)=>{const i=this.isConditionDisabled(n,e);r.setDisabled(i||this.filterListOptions.length<=1),n===1&&(Ac(this.eJoinPanels[0],i),this.eJoinAnds[0].setDisabled(i),this.eJoinOrs[0].setDisabled(i))}),this.eConditionBodies.forEach((r,n)=>{kt(r,this.isConditionBodyVisible(n))});const o=(t??this.getJoinOperator())==="OR";for(const r of this.eJoinAnds)r.setValue(!o,!0);for(const r of this.eJoinOrs)r.setValue(o,!0);this.forEachInput((r,n,i,s)=>{this.setElementDisplayed(r,n<s),this.setElementDisabled(r,this.isConditionDisabled(i,e))}),this.resetPlaceholder()}shouldAddNewConditionAtEnd(e){return e&&this.getNumConditions()<this.maxNumConditions&&!this.isReadOnly()}removeConditionsAndOperators(e,t){if(e>=this.getNumConditions())return;const{eTypes:o,eConditionBodies:r,eJoinPanels:n,eJoinAnds:i,eJoinOrs:s}=this;this.removeComponents(o,e,t),this.removeElements(r,e,t),this.removeEValues(e,t);const a=Math.max(e-1,0);this.removeElements(n,a,t),this.removeComponents(i,a,t),this.removeComponents(s,a,t)}removeElements(e,t,o){const r=NE(e,t,o);for(const n of r)qa(n)}removeComponents(e,t,o){const r=NE(e,t,o);for(const n of r)qa(n.getGui()),this.destroyBean(n)}afterGuiAttached(e){if(super.afterGuiAttached(e),this.resetPlaceholder(),!e?.suppressFocus){let t;if(!this.isReadOnly()){const o=this.getInputs(0)[0];o instanceof ll&&this.isConditionBodyVisible(0)?t=o.getInputElement():t=this.eTypes[0]?.getFocusableElement()}(t??this.getGui()).focus({preventScroll:!0})}}shouldKeepInvalidInputState(){return!1}afterGuiDetached(){super.afterGuiDetached();const e=this.params;if(this.beans.colFilter?.shouldKeepStateOnDetach(e.column)||this.shouldKeepInvalidInputState())return;e.onStateChange({model:e.model});let t=-1,o=-1,r=!1;const n=this.getJoinOperator();for(let s=this.getNumConditions()-1;s>=0;s--)if(this.isConditionUiComplete(s))t===-1&&(t=s,o=s);else{const a=s>=this.numAlwaysVisibleConditions&&!this.isConditionUiComplete(s-1),c=s<t;(a||c)&&(this.removeConditionsAndOperators(s,1),r=!0,c&&o--)}let i=!1;this.getNumConditions()<this.numAlwaysVisibleConditions&&(this.createMissingConditionsAndOperators(),i=!0),this.shouldAddNewConditionAtEnd(o===this.getNumConditions()-1)&&(this.createJoinOperatorPanel(),this.createOption(),i=!0),i&&this.updateConditionStatusesAndValues(o,n),r&&this.updateJoinOperatorsDisabled(),this.lastUiCompletePosition=o}getModelAsString(e){return this.params.getHandler()?.getModelAsString?.(e)??""}resetPlaceholder(){const e=this.getLocaleTextFunc(),{filterPlaceholder:t,eTypes:o}=this;this.forEachInput((r,n,i,s)=>{if(!(r instanceof ll))return;const a=n===0&&s>1?"inRangeStart":n===0?"filterOoo":"inRangeEnd",c=n===0&&s>1?e("ariaFilterFromValue","Filter from value"):n===0?e("ariaFilterValue","Filter Value"):e("ariaFilterToValue","Filter to Value"),d=o[i].getValue(),h=fR(this,t,a,d);r.setInputPlaceholder(h),r.setInputAriaLabel(c)})}setElementValue(e,t,o){e instanceof ll&&e.setValue(t!=null?String(t):null,!0)}setElementDisplayed(e,t){SF(e)&&kt(e.getGui(),t)}setElementDisabled(e,t){SF(e)&&Ac(e.getGui(),t)}attachElementOnChange(e,t){e instanceof ll&&e.onValueChange(t)}forEachInput(e){this.getConditionTypes().forEach((t,o)=>{this.forEachPositionTypeInput(o,t,e)})}forEachPositionInput(e,t){const o=this.getConditionType(e);this.forEachPositionTypeInput(e,o,t)}forEachPositionTypeInput(e,t,o){const r=Cb(t,this.optionsFactory),n=this.getInputs(e);for(let i=0;i<n.length;i++){const s=n[i];s!=null&&o(s,i,e,r)}}isConditionDisabled(e,t){return this.isReadOnly()?!0:e===0?!1:e>t+1}isConditionBodyVisible(e){const t=this.getConditionType(e);return Cb(t,this.optionsFactory)>0}isConditionUiComplete(e){return!(e>=this.getNumConditions()||this.getConditionType(e)==="empty"||this.getValues(e).some(o=>o==null)||this.positionHasInvalidInputs(e))}getNumConditions(){return this.eTypes.length}getUiCompleteConditions(){const e=[];for(let t=0;t<this.getNumConditions();t++)this.isConditionUiComplete(t)&&e.push(this.createCondition(t));return e}createMissingConditionsAndOperators(){if(!this.isReadOnly())for(let e=this.getNumConditions();e<this.numAlwaysVisibleConditions;e++)this.createJoinOperatorPanel(),this.createOption()}resetUiToDefaults(e){this.removeConditionsAndOperators(this.isReadOnly()?1:this.numAlwaysVisibleConditions),this.eTypes.forEach(t=>this.resetType(t)),this.eJoinAnds.forEach((t,o)=>this.resetJoinOperatorAnd(t,o,this.joinOperatorId+o)),this.eJoinOrs.forEach((t,o)=>this.resetJoinOperatorOr(t,o,this.joinOperatorId+o)),this.joinOperatorId++,this.forEachInput(t=>this.resetInput(t)),this.resetPlaceholder(),this.createMissingConditionsAndOperators(),this.lastUiCompletePosition=null,this.updateUiVisibility(),e||this.params.onUiChange(this.getUiChangeEventParams())}resetType(e){const o=this.getLocaleTextFunc()("ariaFilteringOperator","Filtering operator");e.setValue(this.optionsFactory.defaultOption,!0).setAriaLabel(o).setDisabled(this.isReadOnly()||this.filterListOptions.length<=1)}resetJoinOperatorAnd(e,t,o){this.resetJoinOperator(e,t,this.defaultJoinOperator==="AND",this.translate("andCondition"),o)}resetJoinOperatorOr(e,t,o){this.resetJoinOperator(e,t,this.defaultJoinOperator==="OR",this.translate("orCondition"),o)}resetJoinOperator(e,t,o,r,n){this.updateJoinOperatorDisabled(e.setValue(o,!0).setName(`ag-simple-filter-and-or-${this.getCompId()}-${n}`).setLabel(r),t)}updateJoinOperatorsDisabled(){const e=(t,o)=>this.updateJoinOperatorDisabled(t,o);this.eJoinAnds.forEach(e),this.eJoinOrs.forEach(e)}updateJoinOperatorDisabled(e,t){e.setDisabled(this.isReadOnly()||t>0)}resetInput(e){this.setElementValue(e,null),this.setElementDisabled(e,this.isReadOnly())}setConditionIntoUi(e,t){const o=this.mapValuesFromModel(e,this.optionsFactory);this.forEachInput((r,n,i)=>{i===t&&this.setElementValue(r,o[n]!=null?o[n]:null)})}setValueFromFloatingFilter(e){this.forEachInput((t,o,r)=>{this.setElementValue(t,o===0&&r===0?e:null,!0)})}addChangedListeners(e,t){this.isReadOnly()||(e.onValueChange(this.listener),this.forEachPositionInput(t,o=>{this.attachElementOnChange(o,this.listener)}))}hasInvalidInputs(){return!1}positionHasInvalidInputs(e){return!1}isReadOnly(){return!!this.params.readOnly}},sZ=class extends ue{constructor(e,t){super(),this.mapValuesFromModel=e,this.defaultOptions=t}init(e){const t=e.filterParams,o=new wb;this.optionsFactory=o,o.init(t,this.defaultOptions),this.filterModelFormatter=this.createManagedBean(new this.FilterModelFormatterClass(o,t)),this.updateParams(e),this.validateModel(e)}refresh(e){if(e.source==="colDef"){const t=e.filterParams,o=this.optionsFactory;o.refresh(t,this.defaultOptions),this.filterModelFormatter.updateParams({optionsFactory:o,filterParams:t}),this.updateParams(e)}this.validateModel(e)}updateParams(e){this.params=e}doesFilterPass(e){const t=e.model;if(t==null)return!0;const{operator:o}=t,r=[];if(o){const s=t;r.push(...s.conditions??[])}else r.push(t);const n=o&&o==="OR"?"some":"every",i=this.params.getValue(e.node);return r[n](s=>this.individualConditionPasses(e,s,i))}getModelAsString(e,t){return this.filterModelFormatter.getModelAsString(e,t)??""}validateModel(e){const{model:t,filterParams:{filterOptions:o,maxNumConditions:r}}=e;if(t==null)return;let i=wR(t)?t.conditions:[t];const s=o?.map(h=>typeof h=="string"?h:h.displayKey)??this.defaultOptions;if(!(!i||i.every(h=>s.find(f=>f===h.type)!==void 0))){this.params={...e,model:null},e.onModelChange(null);return}let c=!1;const d=this.filterType;if((i&&!i.every(h=>h.filterType===d)||t.filterType!==d)&&(i=i.map(h=>({...h,filterType:d})),c=!0),typeof r=="number"&&i&&i.length>r&&(i=i.slice(0,r),c=!0),c){const h=i.length>1?{...t,filterType:d,conditions:i}:{...i[0],filterType:d};this.params={...e,model:h},e.onModelChange(h)}}individualConditionPasses(e,t,o){const r=this.optionsFactory,n=this.mapValuesFromModel(t,r),i=r.getCustomOption(t.type),s=rZ(i,n,o);return s??(o==null?this.evaluateNullValue(t.type):this.evaluateNonNullValue(n,o,t,e))}},aZ={contains:"Contains",notContains:"NotContains",equals:"TextEquals",notEqual:"TextNotEqual",startsWith:"StartsWith",endsWith:"EndsWith",inRange:"InRange"},lZ=class extends ue{constructor(e,t,o){super(),this.optionsFactory=e,this.filterParams=t,this.valueFormatter=o}getModelAsString(e,t){const o=this.getLocaleTextFunc(),r=t==="filterToolPanel";if(!e)return r?Rn(this,"filterSummaryInactive"):null;if(e.operator!=null){const i=e,a=(i.conditions??[]).map(d=>this.getModelAsString(d,t)),c=i.operator==="AND"?"andCondition":"orCondition";return a.join(` ${Rn(this,c)} `)}else{if(e.type==="blank"||e.type==="notBlank")return r?Rn(this,e.type==="blank"?"filterSummaryBlank":"filterSummaryNotBlank"):o(e.type,e.type);{const i=e,s=this.optionsFactory.getCustomOption(i.type),{displayKey:a,displayName:c,numberOfInputs:d}=s||{};return a&&c&&d===0?o(a,c):this.conditionToString(i,r,i.type==="inRange"||d===2,a,c)}}}updateParams(e){const{optionsFactory:t,filterParams:o}=e;this.optionsFactory=t,this.filterParams=o}conditionForToolPanel(e,t,o,r,n,i){let s;const a=this.getTypeKey(e);return a&&(s=Rn(this,a)),n&&i&&(s=this.getLocaleTextFunc()(n,i)),s!=null?t?`${s} ${Rn(this,"filterSummaryInRangeValues",[o(),r()])}`:`${s} ${o()}`:null}getTypeKey(e){const t=this.filterTypeKeys[e];return t?`filterSummary${t}`:null}formatValue(e){const t=this.valueFormatter;return t?t(e??null)??"":String(e)}},cZ=class extends Ro{constructor(){super(...arguments),this.defaultDebounceMs=0}setLastTypeFromModel(e){if(!e){this.lastType=this.optionsFactory.defaultOption;return}const t=e.operator;let o;t?o=e.conditions[0]:o=e,this.lastType=o.type}canWeEditAfterModelFromParentFilter(e){if(!e)return this.isTypeEditable(this.lastType);if(e.operator)return!1;const o=e;return this.isTypeEditable(o.type)}init(e){this.params=e;const t=this.gos.get("enableFilterHandlers");if(this.reactive=t,this.setParams(e),t){const o=e;this.onModelUpdated(o.model)}}setParams(e){const t=new wb;this.optionsFactory=t,t.init(e.filterParams,this.defaultOptions),this.filterModelFormatter=this.createManagedBean(new this.FilterModelFormatterClass(t,e.filterParams)),this.setSimpleParams(e,!1)}setSimpleParams(e,t=!0){const o=this.optionsFactory.defaultOption;t||(this.lastType=o),this.readOnly=!!e.filterParams.readOnly;const r=this.isTypeEditable(o);this.setEditable(r)}refresh(e){this.params=e;const t=e,o=this.reactive;if((!o||t.source==="colDef")&&this.updateParams(e),o){const{source:r,model:n}=t;if(r==="dataChanged"||r==="ui")return;this.onModelUpdated(n)}}updateParams(e){const t=this.optionsFactory;t.refresh(e.filterParams,this.defaultOptions),this.setSimpleParams(e),this.filterModelFormatter.updateParams({optionsFactory:t,filterParams:e.filterParams})}onParentModelChanged(e,t){t?.afterFloatingFilter||t?.afterDataChange||this.onModelUpdated(e)}hasSingleInput(e){const t=this.optionsFactory.getCustomOption(e)?.numberOfInputs;return t==null||t==1}isTypeEditable(e){const t=["inRange","empty","blank","notBlank"];return!!e&&!this.readOnly&&this.hasSingleInput(e)&&t.indexOf(e)<0}getAriaLabel(e){return`${this.beans.colNames.getDisplayNameForColumn(e,"header",!0)} ${this.getLocaleTextFunc()("ariaFilterInput","Filter Input")}`}},uZ=class extends ue{constructor(e){super(),this.params=e,this.eInput=Te,this.onValueChanged=()=>{}}setupGui(e){this.eInput=this.createManagedBean(new Rv(this.params?.config));const t=this.eInput.getGui();e.appendChild(t);const o=r=>this.onValueChanged(r);this.addManagedListeners(t,{input:o,keydown:o})}setEditable(e){this.eInput.setDisabled(!e)}getValue(){return this.eInput.getValue()}setValue(e,t){this.eInput.setValue(e,t)}setValueChangedListener(e){this.onValueChanged=e}setParams({ariaLabel:e,autoComplete:t,placeholder:o}){const{eInput:r}=this;r.setInputAriaLabel(e),t!==void 0&&r.setAutoComplete(t),r.toggleCss("ag-floating-filter-search-icon",!!o),r.setInputPlaceholder(o)}};function yb(e){const t=e?.trim();return t===""?e:t}function zE(e,t){const{filter:o,filterTo:r,type:n}=e||{};return[o||null,r||null].slice(0,Cb(n,t))}var dZ={tag:"div",ref:"eFloatingFilterInputContainer",cls:"ag-floating-filter-input",role:"presentation"},hZ=class extends cZ{constructor(){super(...arguments),this.eFloatingFilterInputContainer=Te,this.defaultDebounceMs=500}postConstruct(){this.setTemplate(dZ)}onModelUpdated(e){this.setLastTypeFromModel(e),this.setEditable(this.canWeEditAfterModelFromParentFilter(e)),this.inputSvc.setValue(this.filterModelFormatter.getModelAsString(e))}setParams(e){this.setupFloatingFilterInputService(e),super.setParams(e),this.setTextInputParams(e)}setupFloatingFilterInputService(e){this.inputSvc=this.createFloatingFilterInputService(e),this.inputSvc.setupGui(this.eFloatingFilterInputContainer)}setTextInputParams(e){const{inputSvc:t,defaultDebounceMs:o,readOnly:r}=this,{filterPlaceholder:n,column:i,browserAutoComplete:s,filterParams:a}=e,c=this.lastType??this.optionsFactory.defaultOption,d=e.filterParams.filterPlaceholder,h=n===!0?fR(this,d,"filterOoo",c):n||void 0;if(t.setParams({ariaLabel:this.getAriaLabel(i),autoComplete:s??!1,placeholder:h}),this.applyActive=Hh(a),!r){const f=hR(a,o);t.setValueChangedListener(Qn(this,this.syncUpWithParentFilter.bind(this),f))}}updateParams(e){super.updateParams(e),this.setTextInputParams(e)}recreateFloatingFilterInputService(e){const{inputSvc:t}=this,o=t.getValue();Kn(this.eFloatingFilterInputContainer),this.destroyBean(t),this.setupFloatingFilterInputService(e),t.setValue(o,!0)}syncUpWithParentFilter(e){const t=e.key===ee.ENTER,o=this.reactive;if(o&&this.params.onUiChange(),this.applyActive&&!t)return;const{inputSvc:r,params:n,lastType:i}=this;let s=r.getValue();if(n.filterParams.trimInput&&(s=yb(s),r.setValue(s,!0)),o){const a=n,c=a.model,d=this.convertValue(s),h=d==null?null:{...c??{filterType:this.filterType,type:i??this.optionsFactory.defaultOption},filter:d};a.onModelChange(h,{afterFloatingFilter:!0})}else n.parentFilterInstance(a=>{a?.onFloatingFilterChanged(i||null,s||null)})}convertValue(e){return e||null}setEditable(e){this.inputSvc.setEditable(e)}},Sb=["contains","notContains","equals","notEqual","startsWith","endsWith","blank","notBlank"],fZ=class extends iZ{constructor(){super("textFilter",zE,Sb),this.filterType="text",this.eValuesFrom=[],this.eValuesTo=[],this.defaultDebounceMs=500}createCondition(e){const t=this.getConditionType(e),o={filterType:this.filterType,type:t},r=this.getValues(e);return r.length>0&&(o.filter=r[0]),r.length>1&&(o.filterTo=r[1]),o}areSimpleModelsEqual(e,t){return e.filter===t.filter&&e.filterTo===t.filterTo&&e.type===t.type}getInputs(e){const{eValuesFrom:t,eValuesTo:o}=this;return e>=t.length?[null,null]:[t[e],o[e]]}getValues(e){const t=[];return this.forEachPositionInput(e,(o,r,n,i)=>{r<i&&t.push(Pi(o.getValue()))}),t}createEValue(){const e=Ni({tag:"div",cls:"ag-filter-body",role:"presentation"}),{eValuesFrom:t,eValuesTo:o}=this;return this.createFromToElement(e,t,"from"),this.createFromToElement(e,o,"to"),e}createFromToElement(e,t,o){const r=this.createManagedBean(new Rv);r.addCss(`ag-filter-${o}`),r.addCss("ag-filter-filter"),t.push(r),e.appendChild(r.getGui())}removeEValues(e,t){const o=i=>this.removeComponents(i,e,t),{eValuesFrom:r,eValuesTo:n}=this;o(r),o(n)}},HE=class extends lZ{constructor(){super(...arguments),this.filterTypeKeys=aZ}conditionToString(e,t,o,r,n){const{filter:i,filterTo:s,type:a}=e;if(t){const c=h=>()=>Rn(this,"filterSummaryTextQuote",[h]),d=this.conditionForToolPanel(a,o,c(i),c(s),r,n);if(d!=null)return d}return o?`${i}-${s}`:i!=null?`${i}`:`${a}`}},pZ=({filterOption:e,value:t,filterText:o})=>{if(o==null)return!1;switch(e){case"contains":return t.includes(o);case"notContains":return!t.includes(o);case"equals":return t===o;case"notEqual":return t!=o;case"startsWith":return t.indexOf(o)===0;case"endsWith":{const r=t.lastIndexOf(o);return r>=0&&r===t.length-o.length}default:return!1}},gZ=e=>e,mZ=e=>e==null?null:e.toString().toLowerCase(),vZ=class extends sZ{constructor(){super(zE,Sb),this.filterType="text",this.FilterModelFormatterClass=HE}updateParams(e){super.updateParams(e);const t=e.filterParams;this.matcher=t.textMatcher??pZ,this.formatter=t.textFormatter??(t.caseSensitive?gZ:mZ)}evaluateNullValue(e){return e?["notEqual","notContains","blank"].indexOf(e)>=0:!1}evaluateNonNullValue(e,t,o,r){const n=e.map(g=>this.formatter(g))||[],i=this.formatter(t),{api:s,colDef:a,column:c,context:d,filterParams:{textFormatter:h}}=this.params;if(o.type==="blank")return LE(t);if(o.type==="notBlank")return!LE(t);const f={api:s,colDef:a,column:c,context:d,node:r.node,data:r.data,filterOption:o.type,value:i,textFormatter:h};return n.some(g=>this.matcher({...f,filterText:g}))}processModelToApply(e){if(e&&this.params.filterParams.trimInput){const t=o=>{const r={...o},{filter:n,filterTo:i}=o;return n&&(r.filter=yb(n)??null),i&&(r.filterTo=yb(i)??null),r};return wR(e)?{...e,conditions:e.conditions.map(t)}:t(e)}return e}},bZ=class extends hZ{constructor(){super(...arguments),this.FilterModelFormatterClass=HE,this.filterType="text",this.defaultOptions=Sb}createFloatingFilterInputService(){return this.createManagedBean(new uZ)}},wZ={moduleName:"ClientSideRowModelFilter",version:Ve,rowModels:["clientSide"],beans:[TX]},CZ={moduleName:"FilterCore",version:Ve,beans:[JX],apiFunctions:{isAnyFilterPresent:YX,onFilterChanged:QX},css:[NX],dependsOn:[wZ]},yZ={moduleName:"FilterValue",version:Ve,beans:[tZ]},SZ={moduleName:"ColumnFilter",version:Ve,beans:[ZX,eZ],dynamicBeans:{headerFilterCellCtrl:MX},icons:{filter:"filter",filterActive:"filter"},apiFunctions:{isColumnFilterPresent:LX,getColumnFilterInstance:zX,destroyFilter:HX,setFilterModel:VX,getFilterModel:GX,getColumnFilterModel:jX,setColumnFilterModel:WX,showColumnFilter:qX,hideColumnFilter:UX,getColumnFilterHandler:$X,doFilterAction:KX},dependsOn:[CZ,bb,yZ,BX]},xb={moduleName:"TextFilter",version:Ve,dependsOn:[SZ],userComponents:{agTextColumnFilter:{classImp:fZ,params:{useForm:!0}},agTextColumnFloatingFilter:bZ},dynamicBeans:{agTextColumnFilterHandler:vZ}},xZ=".ag-tooltip{background-color:var(--ag-tooltip-background-color);border:var(--ag-tooltip-border);border-radius:var(--ag-border-radius);color:var(--ag-tooltip-text-color);padding:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding);position:absolute;white-space:normal;z-index:99999;&:where(.ag-cell-editor-tooltip),&:where(.ag-cell-formula-tooltip){background-color:var(--ag-tooltip-error-background-color);border:var(--ag-tooltip-error-border);color:var(--ag-tooltip-error-text-color);font-weight:500}}.ag-tooltip-custom{position:absolute;z-index:99999}.ag-tooltip-custom:where(:not(.ag-tooltip-interactive)),.ag-tooltip:where(:not(.ag-tooltip-interactive)){pointer-events:none}.ag-tooltip-animate{transition:opacity 1s;&:where(.ag-tooltip-hiding){opacity:0}}",kb=(e,t,o)=>{const{editModelSvc:r}=e,n=r?.getCellValidationModel()?.getCellValidation(t)?.errorMessages,i=r?.getRowValidationModel().getRowValidation(t)?.errorMessages,s=n||i;return s?.length?s.join(o("tooltipValidationErrorSeparator",". ")):void 0},kZ=class extends ue{constructor(){super(...arguments),this.beanName="tooltipSvc"}setupHeaderTooltip(e,t,o,r){e&&t.destroyBean(e);const n=this.gos,i=mb(n),{column:s,eGui:a}=t,c=s.getColDef();!r&&i&&!c.headerComponent&&(r=uh(()=>a.querySelector(".ag-header-cell-text")));const d="header",f=this.beans.colNames.getDisplayNameForColumn(s,"header",!0),g=o??f,m={getGui:()=>a,getLocation:()=>d,getTooltipValue:()=>o??c?.headerTooltipValueGetter?.(Ze(n,{location:d,colDef:c,column:s,value:g,valueFormatted:f}))??c?.headerTooltip,shouldDisplayTooltip:r,getAdditionalParams:()=>({column:s,colDef:s.getColDef()})};let b=this.createTooltipFeature(m);return b&&(b=t.createBean(b),t.setRefreshFunction("tooltip",()=>b.refreshTooltip())),b}setupHeaderGroupTooltip(e,t,o,r){e&&t.destroyBean(e);const n=this.gos,i=mb(n),{column:s,eGui:a}=t,c=s.getColGroupDef();!r&&i&&!c?.headerGroupComponent&&(r=uh(()=>a.querySelector(".ag-header-group-text")));const d="headerGroup",f=this.beans.colNames.getDisplayNameForColumnGroup(s,"header"),g=o??f,m={getGui:()=>a,getLocation:()=>d,getTooltipValue:()=>o??c?.headerTooltipValueGetter?.(Ze(n,{location:d,colDef:c,column:s,value:g,valueFormatted:f}))??c?.headerTooltip,shouldDisplayTooltip:r,getAdditionalParams:()=>{const w={column:s};return c&&(w.colDef=c),w}},b=this.createTooltipFeature(m);return b&&t.createBean(b)}enableCellTooltipFeature(e,t,o){const{beans:r}=this,{gos:n,editSvc:i}=r,{column:s,rowNode:a}=e;let c="cell";const d=()=>{const m=!!!i?.isEditing(e)&&kb(r,e,this.getLocaleTextFunc());if(m)return c="cellEditor",m;c="cell";const b=s.getColDef(),w=a.data;if(b.tooltipField&&Ee(w))return Qc(w,b.tooltipField,s.isTooltipFieldContainsDots());const y=b.tooltipValueGetter;return y?y(Ze(n,{location:"cell",colDef:s.getColDef(),column:s,rowIndex:e.cellPosition.rowIndex,node:a,data:a.data,value:e.value,valueFormatted:e.valueFormatted})):null},h=mb(n);o||(h&&!e.isCellRenderer()?o=()=>{const g=!!i?.isEditing(e);if(!g&&kb(r,e,this.getLocaleTextFunc()))return!0;if(!s.isTooltipEnabled())return!1;const w=uh(()=>{const y=e.eGui;return y.children.length===0?y:y.querySelector(".ag-cell-value")});return!g&&w()}:o=()=>!i?.isEditing(e));const f={getGui:()=>e.eGui,getLocation:()=>c,getTooltipValue:t!=null?()=>t:d,shouldDisplayTooltip:o,getAdditionalParams:()=>({column:s,colDef:s.getColDef(),rowIndex:e.cellPosition.rowIndex,node:a,data:a.data,valueFormatted:e.valueFormatted})};return this.createTooltipFeature(f,r)}setupFullWidthRowTooltip(e,t,o,r){const n={getGui:()=>t.getFullWidthElement(),getTooltipValue:()=>o,getLocation:()=>"fullWidthRow",shouldDisplayTooltip:r},i=this.beans,s=i.context;e&&t.destroyBean(e,s);const a=this.createTooltipFeature(n,i);if(a)return t.createBean(a,s)}setupFormulaTooltip(e){const{beans:t}=this,{context:o,formula:r}=t;if(!this.beans.formula?.active||!e.column.isAllowFormula())return;const n={getGui:()=>e.eGui,getTooltipValue:()=>{const s=r?.getFormulaError(e.column,e.rowNode);return s?s.message:void 0},getLocation:()=>"cellFormula",shouldDisplayTooltip:()=>!!r?.getFormulaError(e.column,e.rowNode)},i=this.createTooltipFeature(n,t);if(i)return e.createBean(i,o)}setupCellEditorTooltip(e,t){const{beans:o}=this,{context:r}=o,n=t.getValidationElement?.(!0)||!t.isPopup?.()&&e.eGui;if(!n)return;const i={getGui:()=>n,getTooltipValue:()=>kb(o,e,this.getLocaleTextFunc()),getLocation:()=>"cellEditor",shouldDisplayTooltip:()=>{const{editModelSvc:a}=o,c=a?.getRowValidationModel()?.getRowValidationMap(),d=a?.getCellValidationModel()?.getCellValidationMap(),h=!!c&&c.size>0,f=!!d&&d.size>0;return h||f}},s=this.createTooltipFeature(i,o);if(s)return e.createBean(s,r)}initCol(e){const{colDef:t}=e;e.tooltipEnabled=Ee(t.tooltipField)||Ee(t.tooltipValueGetter)||Ee(t.tooltipComponent)}createTooltipFeature(e,t){return this.beans.registry.createDynamicBean("tooltipFeature",!1,e,t)}},FZ=class extends WG{createTooltipComp(e,t){_9(this.beans.userCompFactory,e)?.newAgStackInstance().then(t)}setEventHandlers(e){[this.onColumnMovedEventCallback]=this.addManagedEventListeners({columnMoved:e})}clearEventHandlers(){this.onColumnMovedEventCallback?.(),this.onColumnMovedEventCallback=void 0}},RZ={moduleName:"Tooltip",version:Ve,beans:[kZ],dynamicBeans:{tooltipFeature:eR,highlightTooltipFeature:qG,tooltipStateManager:FZ},userComponents:{agTooltipComponent:KG},dependsOn:[bb],css:[xZ]},EZ=".ag-cell-inline-editing{border:var(--ag-cell-editing-border)!important;border-radius:var(--ag-border-radius);box-shadow:var(--ag-cell-editing-shadow);padding:0;z-index:1;.ag-cell-edit-wrapper,.ag-cell-editor,.ag-cell-wrapper,:where(.ag-cell-editor) .ag-input-field-input,:where(.ag-cell-editor) .ag-wrapper{height:100%;line-height:normal;min-height:100%;width:100%}&.ag-cell-editing-error{border-color:var(--ag-invalid-color)!important}}:where(.ag-popup-editor) .ag-large-text{background-color:var(--ag-background-color);border-radius:var(--ag-border-radius);box-shadow:var(--ag-dropdown-shadow);padding:0}.ag-large-text-input{display:block;height:auto;padding:var(--ag-cell-horizontal-padding)}:where(.ag-rtl .ag-large-text-input) textarea{resize:none}:where(.ag-ltr) .ag-checkbox-edit{padding-left:var(--ag-cell-horizontal-padding)}:where(.ag-rtl) .ag-checkbox-edit{padding-right:var(--ag-cell-horizontal-padding)}:where(.ag-row.ag-row-editing-invalid .ag-cell-inline-editing){opacity:.8}.ag-popup-editor{position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none}",_Z={tag:"div",cls:"ag-cell-wrapper ag-cell-edit-wrapper ag-checkbox-edit",children:[{tag:"ag-checkbox",ref:"eEditor",role:"presentation"}]},PZ=class extends Qv{constructor(){super(_Z,[Fv]),this.eEditor=Te}initialiseEditor(e){const t=e.value??void 0,o=this.eEditor;o.setValue(t),o.getInputElement().setAttribute("tabindex","-1"),this.setAriaLabel(t),this.addManagedListeners(o,{fieldValueChanged:n=>this.setAriaLabel(n.selected)})}getValue(){return this.eEditor.getValue()}focusIn(){this.eEditor.getFocusableElement().focus()}afterGuiAttached(){this.params.cellStartedEdit&&this.focusIn()}isPopup(){return!1}setAriaLabel(e){const t=this.getLocaleTextFunc(),o=ih(t,e),r=t("ariaToggleCellValue","Press SPACE to toggle cell value");this.eEditor.setInputAriaLabel(`${r} (${o})`)}getValidationElement(e){return e?this.params.eGridCell:this.eEditor.getInputElement()}getValidationErrors(){const{params:e}=this,{getValidationErrors:t}=e,o=this.getValue();return t?t({value:o,internalErrors:null,cellEditorParams:e}):null}},DZ=class extends Qv{constructor(e){super(),this.cellEditorInput=e,this.eEditor=Te}initialiseEditor(e){const{cellEditorInput:t}=this;this.setTemplate({tag:"div",cls:"ag-cell-edit-wrapper",children:[t.getTemplate()]},t.getAgComponents());const{eEditor:o}=this,{cellStartedEdit:r,eventKey:n,suppressPreventDefault:i}=e;o.getInputElement().setAttribute("title",""),t.init(o,e);let s,a=!0;r?(this.focusAfterAttached=!0,n===ee.BACKSPACE||n===ee.DELETE?s="":n&&n.length===1?i?a=!1:s=n:(s=t.getStartValue(),n!==ee.F2&&(this.highlightAllOnFocus=!0))):(this.focusAfterAttached=!1,s=t.getStartValue()),a&&s!=null&&o.setStartValue(s),this.addGuiEventListener("keydown",c=>{const{key:d}=c;(d===ee.PAGE_UP||d===ee.PAGE_DOWN)&&c.preventDefault()})}afterGuiAttached(){const e=this.getLocaleTextFunc(),t=this.eEditor;if(t.setInputAriaLabel(e("ariaInputEditor","Input Editor")),!this.focusAfterAttached)return;qc()||t.getFocusableElement().focus();const o=t.getInputElement();this.highlightAllOnFocus?o.select():this.cellEditorInput.setCaret?.()}focusIn(){const{eEditor:e}=this,t=e.getFocusableElement(),o=e.getInputElement();t.focus(),o.select()}getValue(){return this.cellEditorInput.getValue()}isPopup(){return!1}getValidationElement(){return this.eEditor.getInputElement()}getValidationErrors(){return this.cellEditorInput.getValidationErrors()}},TZ={tag:"ag-input-number-field",ref:"eEditor",cls:"ag-cell-editor"},MZ=class{constructor(e){this.getLocaleTextFunc=e}getTemplate(){return TZ}getAgComponents(){return[tG]}init(e,t){this.eEditor=e,this.params=t;const{max:o,min:r,precision:n,step:i}=t;o!=null&&e.setMax(o),r!=null&&e.setMin(r),n!=null&&e.setPrecision(n),i!=null&&e.setStep(i);const s=e.getInputElement();t.preventStepping?e.addManagedElementListeners(s,{keydown:this.preventStepping}):t.showStepperButtons&&s.classList.add("ag-number-field-input-stepper")}getValidationErrors(){const{params:e}=this,{min:t,max:o,getValidationErrors:r}=e,i=this.eEditor.getInputElement().valueAsNumber,s=this.getLocaleTextFunc();let a=[];return typeof i=="number"&&(t!=null&&i<t&&a.push(s("minValueValidation",`Must be greater than or equal to ${t}.`,[String(t)])),o!=null&&i>o&&a.push(s("maxValueValidation",`Must be less than or equal to ${o}.`,[String(o)]))),a.length||(a=null),r?r({value:i,cellEditorParams:e,internalErrors:a}):a}preventStepping(e){(e.key===ee.UP||e.key===ee.DOWN)&&e.preventDefault()}getValue(){const{eEditor:e,params:t}=this,o=e.getValue();if(!Ee(o)&&!Ee(t.value))return t.value;let r=t.parseValue(o);if(r==null)return r;if(typeof r=="string"){if(r==="")return null;r=Number(r)}return isNaN(r)?null:r}getStartValue(){return this.params.value}setCaret(){qc()&&this.eEditor.getInputElement().focus({preventScroll:!0})}},AZ=class extends DZ{constructor(){super(new MZ(()=>this.getLocaleTextFunc()))}},IZ={tag:"div",cls:"ag-cell-edit-wrapper",children:[{tag:"ag-select",ref:"eEditor",cls:"ag-cell-editor"}]},BZ=class extends Qv{constructor(){super(IZ,[dG]),this.eEditor=Te,this.startedByEnter=!1}wireBeans(e){this.valueSvc=e.valueSvc}initialiseEditor(e){this.focusAfterAttached=e.cellStartedEdit;const{eEditor:t,valueSvc:o,gos:r}=this,{values:n,value:i,eventKey:s}=e;if(Ut(n)){he(58);return}this.startedByEnter=s!=null?s===ee.ENTER:!1;let a=!1;n.forEach(f=>{const g={value:f},m=o.formatValue(e.column,null,f),b=m!=null;g.text=b?m:f,t.addOption(g),a=a||i===f}),a?t.setValue(e.value,!0):e.values.length&&t.setValue(e.values[0],!0);const{valueListGap:c,valueListMaxWidth:d,valueListMaxHeight:h}=e;c!=null&&t.setPickerGap(c),h!=null&&t.setPickerMaxHeight(h),d!=null&&t.setPickerMaxWidth(d),r.get("editType")!=="fullRow"&&this.addManagedListeners(this.eEditor,{selectedItem:()=>e.stopEditing()})}afterGuiAttached(){this.focusAfterAttached&&this.eEditor.getFocusableElement().focus(),this.startedByEnter&&setTimeout(()=>{this.isAlive()&&this.eEditor.showPicker()})}focusIn(){this.eEditor.getFocusableElement().focus()}getValue(){return this.eEditor.getValue()}isPopup(){return!1}getValidationElement(){return this.eEditor.getAriaElement()}getValidationErrors(){const{params:e}=this,{values:t,getValidationErrors:o}=e,r=this.getValue();let n=[];if(t&&!t.includes(r)){const i=this.getLocaleTextFunc();n.push(i("invalidSelectionValidation","Invalid selection."))}else n=null;return o?o({value:r,internalErrors:n,cellEditorParams:e}):n}};function OZ(e,t,o="auto"){e.frameworkOverrides.wrapIncoming(()=>e.ctrlsSvc.getScrollFeature().ensureColumnVisible(t,o),"ensureVisible")}function NZ(e,t,o){e.frameworkOverrides.wrapIncoming(()=>e.ctrlsSvc.getScrollFeature().ensureIndexVisible(t,o),"ensureVisible")}function LZ(e,t){return e.editModelSvc?.getEditRowDataValue(t,{checkSiblings:!0})}function zZ(e){const t=e.editModelSvc?.getEditMap(),o=[];return t?.forEach((r,n)=>{const{rowIndex:i,rowPinned:s}=n;r.forEach((a,c)=>{const{editorValue:d,pendingValue:h,sourceValue:f,state:g}=a,m=Pn(a);let b=d??h;b===br&&(b=void 0);const w={newValue:b,oldValue:f,state:g,column:c,colId:c.getColId(),colKey:c.getColId(),rowIndex:i,rowPinned:s};(g==="editing"||g==="changed"&&m)&&o.push(w)})}),o}function HZ(e,t=!1){const{editSvc:o}=e;if(o?.isBatchEditing()){if(t)for(const r of e.editModelSvc?.getEditPositions()??[])r.state==="editing"&&o.revertSingleCellEdit(r);else Hi(e,{persist:!0});wl(e,void 0,{cancel:t})}else o?.stopEditing(void 0,{cancel:t,source:"edit",forceStop:!t,forceCancel:t})}function VZ(e,t){const o=Pt(e,t);return e.editSvc?.isEditing(o)??!1}function GZ(e,t){const{key:o,colKey:r,rowIndex:n,rowPinned:i}=t,{editSvc:s,colModel:a}=e,c=a.getCol(r);if(!c){he(12,{colKey:r});return}const h=Ws(e,{rowIndex:n,rowPinned:i||null});if(!h){he(290,{rowIndex:n,rowPinned:i});return}if(!s?.isCellEditable({rowNode:h,column:c},"api"))return;i==null&&NZ(e,n),OZ(e,r),s?.startEditing({rowNode:h,column:c},{event:o?new KeyboardEvent("keydown",{key:o}):void 0,source:"api"})}function jZ(e){return e.editSvc?.validateEdit()||null}var WZ={tag:"div",cls:"ag-popup-editor",attrs:{tabindex:"-1"}},qZ=class extends uv{constructor(e){super(WZ),this.params=e}postConstruct(){Ns(this.gos,this.getGui(),"popupEditorWrapper",!0),this.addKeyDownListener()}addKeyDownListener(){const e=this.getGui(),t=this.params,o=r=>{Gv(this.gos,r,t.node,t.column,!0)||t.onKeyDown(r)};this.addManagedElementListeners(e,{keydown:o})}};function UZ(e,{column:t},o,r,n="ui"){if(o instanceof KeyboardEvent&&(o.key===ee.TAB||o.key===ee.ENTER||o.key===ee.F2||o.key===ee.BACKSPACE&&r))return!0;if(o?.shiftKey&&e.rangeSvc?.getCellRanges().length!=0)return!1;const s=t?.getColDef(),a=$Z(e.gos,s),c=o?.type;return c==="click"&&o?.detail===1&&a===1||c==="dblclick"&&o?.detail===2&&a===2?!0:n==="api"?r??!1:!1}function $Z(e,t){return e.get("suppressClickEdit")===!0?0:e.get("singleClickEdit")===!0||t?.singleClickEdit?1:2}function Fb(e,{rowNode:t,column:o},r="ui"){const n=o.getColDef().editable,i=e.editModelSvc;return o.isColumnFunc(t,n)||!!i&&i.hasEdits({rowNode:t,column:o},{withOpenEditor:!0})}function KZ(e,t,o="ui"){const r=Fb(e,t,o);return r===!0||o==="ui"?r:e.colModel.getCols().some(i=>Fb(e,{rowNode:t.rowNode,column:i},o))}var uf=(e,t=!1)=>{if(e!==void 0)return Pn(e)||t&&e.state==="editing"};function VE(e,t,o=!1){return uf(e.editModelSvc?.getEdit(t),o)}var GE=(e,t,o)=>{if(e)for(let r=0,n=e.length;r<n;++r){const i=e[r];if(i.data&&(uf(t?.getEdit({rowNode:i,column:o}))||uf(t?.getEdit({rowNode:i.pinnedSibling,column:o})))||GE(i.childrenAfterGroup,t,o))return!0}};function jE(e,t){const{column:o,rowNode:r}=t;return e.gos.get("groupTotalRow")&&!r?.footer?!1:GE(r?.childrenAfterGroup,e.editModelSvc,o)}function WE(e,{rowNode:t,column:o}){if(t=t.pinnedSibling,!!t)return uf(e.editModelSvc?.getEdit({rowNode:t,column:o}))}var XZ=class extends ue{constructor(e,t){super(),this.cellCtrl=e,this.beans=t,this.editSvc=t.editSvc,this.editModelSvc=t.editModelSvc}setComp(e){this.cellComp=e,this.applyCellStyles()}applyCellStyles(){const{cellCtrl:e,editSvc:t,beans:o}=this;if(t?.isBatchEditing()&&t.isEditing()){const n=VE(o,e)||jE(o,e)||WE(o,e);this.applyBatchingStyle(n)}else this.applyBatchingStyle(!1);const r=!!this.editModelSvc?.getCellValidationModel().hasCellValidation(this.cellCtrl);this.cellComp.toggleCss("ag-cell-editing-error",r)}applyBatchingStyle(e){this.cellComp.toggleCss("ag-cell-editing",e??!1),this.cellComp.toggleCss("ag-cell-batch-edit",(e&&this.editSvc?.isBatchEditing())??!1)}},ZZ=class extends ue{constructor(e,t){super(),this.rowCtrl=e,this.beans=t,this.gos=t.gos,this.editSvc=t.editSvc,this.editModelSvc=t.editModelSvc}applyRowStyles(){const{rowCtrl:e,editModelSvc:t,beans:o}=this;let r=e.rowNode,n=t?.getEditRow(r);const i=this.editModelSvc?.getRowValidationModel().hasRowValidation({rowNode:r});if(!n&&r.pinnedSibling&&(r=r.pinnedSibling,n=t?.getEditRow(r)),n){const s=Array.from(n.keys()).some(a=>{const c={rowNode:r,column:a};return VE(o,c,!0)||jE(o,c)||WE(o,c)});this.applyStyle(i,s);return}this.applyStyle(i)}applyStyle(e=!1,t=!1){const o=this.editSvc?.isBatchEditing()??!1,r=this.gos.get("editType")==="fullRow";this.rowCtrl?.forEachGui(void 0,({rowComp:n})=>{n.toggleCss("ag-row-editing",r&&t),n.toggleCss("ag-row-batch-edit",r&&t&&o),n.toggleCss("ag-row-inline-editing",t),n.toggleCss("ag-row-not-inline-editing",!t),n.toggleCss("ag-row-editing-invalid",r&&t&&e)})}},YZ=({rowModel:e,pinnedRowModel:t,editModelSvc:o},r)=>{const n=new Set;e.forEachNode(i=>r.has(i)&&n.add(i)),t?.forEachPinnedRow("top",i=>r.has(i)&&n.add(i)),t?.forEachPinnedRow("bottom",i=>r.has(i)&&n.add(i));for(const i of r)n.has(i)||o.removeEdits({rowNode:i});return n},QZ=({editModelSvc:e},t,o)=>{for(const r of t)e?.getEditRow(r)?.forEach((n,i)=>!o.has(i)&&e.removeEdits({rowNode:r,column:i}))},JZ=e=>()=>{const t=new Set(e.colModel.getCols()),o=e.editModelSvc.getEditMap(!0),r=new Set(o.keys());QZ(e,YZ(e,r),t)},eY=new Set(["undo","redo","paste","bulk","rangeSvc"]),tY=new Set(["ui","api"]),qE={paste:"api",rangeSvc:"api",fillHandle:"api",cellClear:"api",bulk:"api"},oY=new Set(Object.keys(qE)),rY=new Set(["paste","rangeSvc","cellClear","redo","undo"]),df={cancel:!0,source:"api"},nY={cancel:!1,source:"api"},ou={checkSiblings:!0},ru={force:!0,suppressFlash:!0},iY=class extends ue{constructor(){super(...arguments),this.beanName="editSvc",this.batch=!1,this.stopping=!1,this.committing=!1}postConstruct(){const{beans:e}=this;this.model=e.editModelSvc,this.valueSvc=e.valueSvc,this.rangeSvc=e.rangeSvc,this.addManagedPropertyListener("editType",({currentValue:r})=>{this.stopEditing(void 0,df),this.createStrategy(r)});const t=JZ(e),o=()=>{const r=this.model.getCellValidationModel().getCellValidationMap().size>0,n=this.model.getRowValidationModel().getRowValidationMap().size>0;return r||n?this.stopEditing(void 0,df):this.isEditing()&&(this.batch?wl(e,this.model.getEditPositions()):this.stopEditing(void 0,nY)),!1};this.addManagedEventListeners({columnPinned:t,columnVisible:t,columnRowGroupChanged:t,rowExpansionStateChanged:t,pinnedRowsChanged:t,displayedRowsChanged:t,sortChanged:o,filterChanged:o,cellFocused:this.onCellFocused.bind(this)})}isBatchEditing(){return this.batch}setBatchEditing(e){e?(this.batch=!0,this.stopEditing(void 0,df)):(this.stopEditing(void 0,df),this.batch=!1)}createStrategy(e){const{beans:t,gos:o,strategy:r}=this,n=UE(o,e);if(r){if(r.beanName===n)return r;this.destroyStrategy()}return this.strategy=this.createOptionalManagedBean(t.registry.createDynamicBean(n,!0))}destroyStrategy(){this.strategy&&(this.strategy.destroy(),this.strategy=this.destroyBean(this.strategy))}shouldStartEditing(e,t,o,r="ui"){const n=UZ(this.beans,e,t,o,r);return n&&(this.strategy??(this.strategy=this.createStrategy())),n}shouldStopEditing(e,t,o="ui"){return this.strategy?.shouldStop(e,t,o)??null}shouldCancelEditing(e,t,o="ui"){return this.strategy?.shouldCancel(e,t,o)??null}validateEdit(){return oK(this.beans)}isEditing(e,t){return this.model.hasEdits(e,t??ou)}isRowEditing(e,t){return(e&&this.model.hasRowEdits(e,t))??!1}startEditing(e,t){const{startedEdit:o=!0,event:r=null,source:n="ui",ignoreEventKey:i=!1,silent:s}=t;if(this.strategy??(this.strategy=this.createStrategy()),!this.isCellEditable(e,"api"))return;const a=Pt(this.beans,e);if(a&&!a.comp){a.onCompAttachedFuncs.push(()=>this.startEditing(e,t));return}const c=this.shouldStartEditing(e,r,o,n);if(c===!1&&n!=="api"){this.isEditing(e)&&this.stopEditing();return}!this.batch&&this.shouldStopEditing(e,void 0,n)&&!t.continueEditing&&this.stopEditing(void 0,{source:n}),c&&this.batch&&this.dispatchBatchEvent("batchEditingStarted",new Map),this.strategy.start({position:e,event:r,source:n,ignoreEventKey:i,startedEdit:o,silent:s})}stopEditing(e,t){const o=this.prepareStopContext(e,t);if(!o)return!1;this.stopping=!0;let r=!1,{edits:n}=o;try{const i=this.processStopRequest(o);return r||(r=i.res),n=i.edits,this.finishStopEditing({...o,edits:n,params:t,position:e,res:r}),r}finally{this.stopping=!1}}prepareStopContext(e,t){const{event:o,cancel:r,source:n="ui",forceCancel:i,forceStop:s}=t||{};if(oY.has(n)&&this.batch)return this.bulkRefresh(e),null;const a=this.committing?qE[n]:n;if(!(this.committing||this.isEditing(e)||this.batch&&this.model.hasEdits(e,ou))||!this.strategy||this.stopping)return null;const d=Pt(this.beans,e);d&&(d.onEditorAttachedFuncs=[]);const h=!r&&(!!this.shouldStopEditing(e,o,a)||(this.committing||n==="paste")&&!this.batch)||(s??!1),f=r&&!!this.shouldCancelEditing(e,o,a)||(i??!1);return{cancel:r,cellCtrl:d??void 0,edits:this.model.getEditMap(!0),event:o,forceCancel:i,forceStop:s,position:e,source:n,treatAsSource:a,willCancel:f,willStop:h}}processStopRequest(e){const{event:t,position:o,willCancel:r,willStop:n}=e;return n||r?this.handleStopOrCancel(e):this.shouldHandleMidBatchKey(t,o)?{res:!1,edits:this.handleMidBatchKey(t,o,e)}:(Hi(this.beans,{persist:!0}),this.batch&&this.strategy?.cleanupEditors(o),{res:!1,edits:this.model.getEditMap()})}handleStopOrCancel(e){const{beans:t,model:o}=this,{cancel:r,edits:n,event:i,source:s,willCancel:a,willStop:c}=e;Hi(t,{persist:!0,isCancelling:a||r,isStopping:c});const d=o.getEditMap(),h=this.processEdits(d,r,s);this.strategy?.stop(r,i),this.clearValidationIfNoOpenEditors();for(const f of h)o.clearEditValue(f);this.bulkRefresh(void 0,n);for(const f of o.getEditPositions(d)){const g=Pt(t,f),m=Pn(f);g?.refreshCell({force:!0,suppressFlash:!m})}return{res:c,edits:d}}shouldHandleMidBatchKey(e,t){return e instanceof KeyboardEvent&&this.batch&&!!this.strategy?.midBatchInputsAllowed(t)&&this.isEditing(t,{withOpenEditor:!0})}handleMidBatchKey(e,t,o){const{beans:r,model:n}=this,{cellCtrl:i,edits:s}=o,{key:a}=e,c=a===ee.ENTER,d=a===ee.ESCAPE,h=a===ee.TAB;return c||h||d?(c||h?Hi(r,{persist:!0}):d&&this.revertSingleCellEdit(i),this.batch?this.strategy?.cleanupEditors():wl(r,n.getEditPositions(),{event:e,cancel:d}),e.preventDefault(),this.bulkRefresh(t,s,{suppressFlash:!0}),n.getEditMap()):s}finishStopEditing({cellCtrl:e,edits:t,params:o,position:r,res:n,willCancel:i,willStop:s}){const a=this.beans;n&&r&&this.model.removeEdits(r),this.navigateAfterEdit(o,e?.cellPosition),nf(a),this.clearValidationIfNoOpenEditors(),this.bulkRefresh();const{rowRenderer:c,formula:d}=a;i&&c.refreshRows({rowNodes:Array.from(t.keys())}),this.batch&&(d?d.refreshFormulas(!0):c.refreshRows({suppressFlash:!0,force:!0}),n&&s&&this.dispatchBatchEvent("batchEditingStopped",t))}clearValidationIfNoOpenEditors(){this.model.hasEdits(void 0,{withOpenEditor:!0})||(this.model.getCellValidationModel().clearCellValidationMap(),this.model.getRowValidationModel().clearRowValidationMap())}navigateAfterEdit(e,t){if(!e||!t)return;const{event:o,suppressNavigateAfterEdit:r}=e;if(!(o instanceof KeyboardEvent)||r)return;const{key:i,shiftKey:s}=o,a=this.gos.get("enterNavigatesVerticallyAfterEdit");if(i!==ee.ENTER||!a)return;const c=s?ee.UP:ee.DOWN;this.beans.navigation?.navigateToNextCell(null,c,t,!1)}processEdits(e,t=!1,o){const r=Array.from(e.keys()),n=this.model.getCellValidationModel().getCellValidationMap().size>0||this.model.getRowValidationModel().getRowValidationMap().size>0,i=[];for(const s of r){const a=e.get(s);for(const c of a.keys()){const d=a.get(c),h={rowNode:s,column:c},f=Pn(d);!t&&f&&!n&&(this.setNodeDataValue(s,c,d.pendingValue,void 0,o)||i.push(h))}}return i}setNodeDataValue(e,t,o,r,n="edit"){const{beans:i}=this,s=Pt(i,{rowNode:e,column:t}),a=tY.has(n)?"edit":n;s&&(s.suppressRefreshCell=!0),this.committing=!0;const c=e.setDataValue(t,o,a);return this.committing=!1,s&&(s.suppressRefreshCell=!1),r&&s?.refreshCell(ru),c}setEditMap(e,t){this.strategy??(this.strategy=this.createStrategy()),this.strategy?.setEditMap(e,t),this.bulkRefresh();let o=ru;t?.forceRefreshOfEditCellsOnly&&(o={...sY(e),...ru}),this.beans.rowRenderer.refreshCells(o)}dispatchEditValuesChanged({rowNode:e,column:t},o={}){if(!e||!t||!o)return;const{pendingValue:r,sourceValue:n}=o,{rowIndex:i,rowPinned:s,data:a}=e;this.beans.eventSvc.dispatchEvent({type:"cellEditValuesChanged",node:e,rowIndex:i,rowPinned:s,column:t,source:"api",data:a,newValue:r,oldValue:n,value:r,colDef:t.getColDef()})}bulkRefresh(e={},t,o={}){const{beans:r,gos:n}=this,{editModelSvc:i,rowModel:s}=r;Fo(n)&&(e.rowNode&&e.column?this.refCell(e,this.model.getEdit(e),o):t&&i?.getEditMap(!1)?.forEach((a,c)=>{for(const d of a.keys())this.refCell({rowNode:c,column:d},a.get(d),o)}))}refCell({rowNode:e,column:t},o,r={}){const{beans:n,gos:i}=this,s=new Set([e]),a=new Set,c=e.pinnedSibling;c&&s.add(c);const d=e.sibling;d&&a.add(d);let h=e.parent;for(;h;)h.sibling?.footer&&i.get("groupTotalRow")||!h.parent&&h.sibling&&i.get("grandTotalRow")?a.add(h.sibling):a.add(h),h=h.parent;for(const f of s)this.dispatchEditValuesChanged({rowNode:f,column:t},o);for(const f of s)Pt(n,{rowNode:f,column:t})?.refreshCell(r);for(const f of a)Pt(n,{rowNode:f,column:t})?.refreshCell(r)}stopAllEditing(e=!1,t="ui"){this.isEditing()&&this.stopEditing(void 0,{cancel:e,source:t})}isCellEditable(e,t="ui"){const{rowNode:o}=e,{gos:r,beans:n}=this;if(o.group){if(r.get("treeData")){if(!o.data&&!r.get("enableGroupEdit"))return!1}else if(!r.get("enableGroupEdit"))return!1}const i=UE(r)==="fullRow"?KZ(n,e,t):Fb(n,e,t);return i&&(this.strategy??(this.strategy=this.createStrategy())),i}cellEditingInvalidCommitBlocks(){return this.gos.get("invalidEditValueMode")==="block"}checkNavWithValidation(e,t,o=!0){if(this.hasValidationErrors(e)){const r=Pt(this.beans,e);return this.cellEditingInvalidCommitBlocks()?(t?.preventDefault?.(),o&&(!r?.hasBrowserFocus()&&r?.focusCell(),r?.comp?.getCellEditor()?.focusIn?.()),"block-stop"):(r&&this.revertSingleCellEdit(r),"revert-continue")}return"continue"}revertSingleCellEdit(e,t=!1){const o=Pt(this.beans,e);o?.comp?.getCellEditor()&&(wl(this.beans,[e],{silent:!0}),this.model.clearEditValue(e),vl(this.beans,e,{silent:!0}),$s(this.beans),o?.refreshCell(ru),t&&(o?.focusCell(),o?.comp?.getCellEditor()?.focusIn?.()))}hasValidationErrors(e){$s(this.beans);const t=Pt(this.beans,e);t&&(t.refreshCell(ru),t.rowCtrl.rowEditStyleFeature?.applyRowStyles());let o=!1;return e?.rowNode?(o||(o=this.model.getRowValidationModel().hasRowValidation({rowNode:e.rowNode})),e.column&&(o||(o=this.model.getCellValidationModel().hasCellValidation({rowNode:e.rowNode,column:e.column})))):(o||(o=this.model.getCellValidationModel().getCellValidationMap().size>0),o||(o=this.model.getRowValidationModel().getRowValidationMap().size>0)),o}moveToNextCell(e,t,o,r="ui"){let n;const i=this.isEditing(),s=i&&this.checkNavWithValidation(void 0,o)==="block-stop";return e instanceof Jc&&i&&(n=this.strategy?.moveToNextEditingCell(e,t,o,r,s)),n===null||(n=n||!!this.beans.focusSvc.focusedHeader,n===!1&&!s&&this.stopEditing()),n}getCellDataValue({rowNode:e,column:t},o=!0){if(!e||!t)return;let r=this.model.getEdit({rowNode:e,column:t});const n=e.pinnedSibling;if(n){const s=this.model.getEdit({rowNode:n,column:t});s&&(r=s)}const i=o?r?.editorValue??r?.pendingValue:r?.pendingValue;return i===br||!r?r?.sourceValue??this.valueSvc.getValue(t,e,!1,"api"):i}addStopEditingWhenGridLosesFocus(e){Z$(this,this.beans,e)}createPopupEditorWrapper(e){return new qZ(e)}setDataValue(e,t,o){try{if((!this.isEditing()||this.committing)&&!rY.has(o))return;const{beans:r}=this;this.strategy??(this.strategy=this.createStrategy());const n=this.batch?"ui":this.committing?o??"api":"api";if(!o||eY.has(o))return sf(r,e,t,o,void 0,{persist:!0}),this.batch?(this.cleanupEditors(),nf(r),this.bulkRefresh(),!0):this.setNodeDataValue(e.rowNode,e.column,t,!0,o);const i=this.model.getEdit(e);if(i){if(i.pendingValue===t)return!1;if(i.sourceValue!==t)return sf(r,e,t,o,void 0,{persist:!0}),this.stopEditing(e,{source:n,suppressNavigateAfterEdit:!0}),!0;if(i.sourceValue===t)return r.editModelSvc?.removeEdits(e),this.dispatchEditValuesChanged(e,{...i,pendingValue:t}),!0}return sf(r,e,t,o,void 0,{persist:!0}),this.stopEditing(e,{source:n,suppressNavigateAfterEdit:!0}),!0}finally{this.committing=!1}}handleColDefChanged(e){J$(this.beans,e)}destroy(){this.model.clear(),this.destroyStrategy(),super.destroy()}prepDetailsDuringBatch(e,t){const{model:o}=this;if(!this.batch||!o.hasRowEdits(e.rowNode,ou))return;const{rowNode:n}=e,{compDetails:i,valueToDisplay:s}=t;if(i){const{params:a}=i;return a.data=o.getEditRowDataValue(n,ou),{compDetails:i}}return{valueToDisplay:s}}cleanupEditors(){this.strategy?.cleanupEditors()}dispatchCellEvent(e,t,o,r){this.strategy?.dispatchCellEvent(e,t,o,r)}dispatchBatchEvent(e,t){this.eventSvc.dispatchEvent(this.createBatchEditEvent(e,t))}createBatchEditEvent(e,t){return Ze(this.gos,{type:e,...e==="batchEditingStopped"?{changes:this.toEventChangeList(t)}:{}})}toEventChangeList(e){return this.model.getEditPositions(e).map(t=>({rowIndex:t.rowNode.rowIndex,rowPinned:t.rowNode.rowPinned,columnId:t.column.getColId(),newValue:t.pendingValue,oldValue:t.sourceValue}))}applyBulkEdit({rowNode:e,column:t},o){if(!o||o.length===0)return;const{beans:r,rangeSvc:n,valueSvc:i}=this,{formula:s}=r;Hi(r,{persist:!0});const a=this.model.getEditMap(!0);let c=a.get(e)?.get(t)?.pendingValue;this.batch||this.eventSvc.dispatchEvent({type:"bulkEditingStarted"});const d=s?.isFormula(c)??!1;o.forEach(f=>{const g=f.columns.some(m=>m?.isAllowFormula());if(n?.forEachRowInRange(f,m=>{const b=Ws(r,m);if(b===void 0)return;const w=a.get(b)??new Map;let y=c;for(const k of f.columns){if(!k)continue;const C=!!d&&k.isAllowFormula();if(this.isCellEditable({rowNode:b,column:k},"api")){const F=i.getValue(k,b,!0,"api");let E=i.parseValue(k,b??null,y,F);Number.isNaN(E)&&(E=null),w.set(k,{editorValue:void 0,pendingValue:E,sourceValue:F,state:"changed",editorState:{isCancelAfterEnd:void 0,isCancelBeforeStart:void 0}})}C&&(y=s?.updateFormulaByOffset({value:y,columnDelta:1}))}w.size>0&&a.set(b,w),d&&g&&(c=s?.updateFormulaByOffset({value:c,rowDelta:1}))}),this.setEditMap(a),this.batch){this.cleanupEditors(),nf(r),this.bulkRefresh();return}this.committing=!0,this.stopEditing(void 0,{source:"bulk"}),this.committing=!1,this.eventSvc.dispatchEvent({type:"bulkEditingStopped",changes:this.toEventChangeList(a)})}),this.bulkRefresh();const h=Pt(r,{rowNode:e,column:t});h&&h.focusCell(!0)}createCellStyleFeature(e){return new XZ(e,this.beans)}createRowStyleFeature(e){return new ZZ(e,this.beans)}setEditingCells(e,t){const{beans:o}=this,{colModel:r,valueSvc:n}=o,i=new Map;for(let{colId:s,column:a,colKey:c,rowIndex:d,rowPinned:h,newValue:f,state:g}of e){const m=s?r.getCol(s):c?r.getCol(c):a;if(!m)continue;const b=Ws(o,{rowIndex:d,rowPinned:h});if(!b)continue;const w=n.getValue(m,b,!0,"api");if(!t?.forceRefreshOfEditCellsOnly&&!Pn({pendingValue:f,sourceValue:w})&&g!=="editing")continue;let y=i.get(b);y||(y=new Map,i.set(b,y)),f===void 0&&(f=br),y.set(m,{editorValue:void 0,pendingValue:f,sourceValue:w,state:g??"changed",editorState:{isCancelAfterEnd:void 0,isCancelBeforeStart:void 0}})}this.setEditMap(i,t)}onCellFocused(e){const t=Pt(this.beans,e);if(!t||!this.isEditing(t,ou))return;const o=this.model.getEdit(t);if(!o||!Pn(o))return;const n=this.getLocaleTextFunc()("ariaPendingChange","Pending Change");this.beans.ariaAnnounce?.announceValue(n,"pendingChange")}allowedFocusTargetOnValidation(e){return Pt(this.beans,e)}};function sY(e){return{rowNodes:e?Array.from(e.keys()):void 0,columns:e?[...new Set(Array.from(e.values()).flatMap(t=>Array.from(t.keys())))]:void 0}}function UE(e,t){return t??e.get("editType")??"singleCell"}var $E=class extends ue{postConstruct(){this.model=this.beans.editModelSvc,this.editSvc=this.beans.editSvc,this.addManagedEventListeners({cellFocused:this.onCellFocusChanged?.bind(this),cellFocusCleared:this.onCellFocusChanged?.bind(this)})}clearEdits(e){this.model.clearEditValue(e)}onCellFocusChanged(e){let t;const o=e.previousParams,{editSvc:r,beans:n}=this,i=e.type==="cellFocused"?e.sourceEvent:null;o&&(t=Pt(n,o));const{gos:s,editModelSvc:a}=n,c=e.type==="cellFocusCleared";if(r.isEditing(void 0,{withOpenEditor:!0})){const{column:d,rowIndex:h,rowPinned:f}=e,g={column:d,rowNode:Ws(n,{rowIndex:h,rowPinned:f})},m=s.get("invalidEditValueMode")==="block";if(m)return;const b=!m,w=!!a?.getCellValidationModel().hasCellValidation(g),y=b&&w;!(o||c)||r.stopEditing(void 0,{cancel:y,source:c&&b?"api":void 0,event:i})||(r.isBatchEditing()?r.cleanupEditors():r.stopEditing(void 0,{source:"api"}))}t?.refreshCell({suppressFlash:!0,force:!0})}stop(e,t){const o=this.model.getEditPositions(),r={all:[],pass:[],fail:[]};for(const n of o){if(r.all.push(n),(this.model.getCellValidationModel().getCellValidation(n)?.errorMessages?.length??0)>0){r.fail.push(n);continue}r.pass.push(n)}if(e)for(const n of o)af(this.beans,n,{cancel:e}),this.model.stop(n);else{const n=this.processValidationResults(r);if(n.destroy.length>0)for(const i of n.destroy)af(this.beans,i,{event:t,cancel:e}),this.model.stop(i);if(n.keep.length>0)for(const i of n.keep){const s=Pt(this.beans,i);this.editSvc?.cellEditingInvalidCommitBlocks()||s&&this.editSvc.revertSingleCellEdit(s)}}return!0}cleanupEditors({rowNode:e}={},t){Hi(this.beans,{persist:!1});const o=this.model.getEditPositions(),r=[];if(e)for(const n of o)n.rowNode!==e&&r.push(n);else for(const n of o)r.push(n);wl(this.beans,r),nf(this.beans,t)}setFocusOutOnEditor(e){e.comp?.getCellEditor()?.focusOut?.()}setFocusInOnEditor(e){const t=e.comp,o=t?.getCellEditor();if(o?.focusIn)o.focusIn();else{const r=this.beans.gos.get("editType")==="fullRow";e.focusCell(r),e.onEditorAttachedFuncs.push(()=>t?.getCellEditor()?.focusIn?.())}}setupEditors(e){const{event:t,ignoreEventKey:o=!1,startedEdit:r,position:n,cells:i=this.model.getEditPositions()}=e,s=t instanceof KeyboardEvent&&!o&&t.key||void 0;Q$(this.beans,i,n,s,t,r)}dispatchCellEvent(e,t,o,r){const n=Pt(this.beans,e);n&&this.eventSvc.dispatchEvent({...n.createEvent(t??null,o),...r})}dispatchRowEvent(e,t,o){if(o)return;const r=lb(this.beans,e);r&&this.eventSvc.dispatchEvent(r.createRowEvent(t))}shouldStop(e,t,o="ui"){const r=this.editSvc.isBatchEditing();return r&&o==="api"?!0:r&&(o==="ui"||o==="edit")?!1:o==="api"?!0:t instanceof KeyboardEvent&&!r?t.key===ee.ENTER:null}shouldCancel(e,t,o="ui"){const r=this.editSvc.isBatchEditing();return!!(t instanceof KeyboardEvent&&!r&&t.key===ee.ESCAPE||r&&o==="api"||o==="api")}setEditMap(e,t){t?.update||this.editSvc.stopEditing(void 0,{cancel:!0,source:"api"});const o=[];if(e.forEach((r,n)=>{r.forEach((i,s)=>{i.state==="editing"&&o.push({...i,rowNode:n,column:s})})}),t?.update&&(e=new Map([...this.model.getEditMap(),...e])),this.model?.setEditMap(e),o.length>0){const r=o.at(-1),n=r.pendingValue===br?void 0:r.pendingValue;this.start({position:r,event:new KeyboardEvent("keydown",{key:n}),source:"api"});const i=Pt(this.beans,r);i&&this.setFocusInOnEditor(i)}}destroy(){this.cleanupEditors(),super.destroy()}},aY=class extends $E{constructor(){super(...arguments),this.beanName="fullRow",this.startedRows=[]}shouldStop(e,t,o="ui"){const{rowNode:r}=e||{};if(!lb(this.beans,{rowNode:this.rowNode}))return!0;const i=super.shouldStop({rowNode:this.rowNode},t,o);return i!==null?i:this.rowNode?r!==this.rowNode:!1}midBatchInputsAllowed({rowNode:e}){return e?this.model.hasEdits({rowNode:e}):!1}clearEdits(e){this.model.clearEditValue(e)}start(e){const{position:t,silent:o,startedEdit:r,event:n,ignoreEventKey:i}=e,{rowNode:s}=t;this.rowNode!==s&&super.cleanupEditors(t);const a=this.beans.visibleCols.allCols,c=[],d=[];for(const h of a)h.isCellEditable(s)&&d.push(h);if(d.length!=0){this.dispatchRowEvent({rowNode:s},"rowEditingStarted",o),this.startedRows.push(s);for(const h of d){const f={rowNode:s,column:h};c.push(f),this.model.hasEdits(f)||this.model.start(f)}this.rowNode=s,this.setupEditors({cells:c,position:t,startedEdit:r,event:n,ignoreEventKey:i})}}processValidationResults(e){return e.fail.length>0&&this.editSvc.cellEditingInvalidCommitBlocks()?{destroy:[],keep:e.all}:{destroy:e.all,keep:[]}}stop(e,t){const{rowNode:o}=this;if(o&&!this.model.hasRowEdits(o))return!1;const r=[];if(e||this.model.getEditMap().forEach((n,i)=>{if(!(!n||n.size===0)){for(const s of n.values())if(Pn(s)){r.push(i);break}}}),$s(this.beans),!e&&this.editSvc?.checkNavWithValidation({rowNode:o})==="block-stop")return!1;super.stop(e,t);for(const n of r)this.dispatchRowEvent({rowNode:n},"rowValueChanged");return this.cleanupEditors({rowNode:o},!0),this.rowNode=void 0,!0}onCellFocusChanged(e){const{rowIndex:t}=e,o=e.previousParams;if(o?.rowIndex===t||e.sourceEvent instanceof KeyboardEvent)return;const r=Pt(this.beans,o);this.gos.get("invalidEditValueMode")==="block"&&r&&(this.model.getCellValidationModel().getCellValidation(r)||this.model.getRowValidationModel().getRowValidation(r))||super.onCellFocusChanged(e)}cleanupEditors(e={},t){super.cleanupEditors(e,t);for(const o of this.startedRows)this.dispatchRowEvent({rowNode:o},"rowEditingStopped");this.startedRows.length=0}moveToNextEditingCell(e,t,o,r="ui",n=!1){const i=e.cellPosition;let s;this.model.suspend(!0);try{s=this.beans.navigation?.findNextCellToFocusOn(i,{backwards:t,startEditing:!0,skipToNextEditableCell:!1})}finally{this.model.suspend(!1)}if(s===!1)return null;if(s==null)return!1;const a=s.cellPosition,c=e.isCellEditable(),d=s.isCellEditable(),h=a&&i.rowIndex===a.rowIndex&&i.rowPinned===a.rowPinned;c&&this.setFocusOutOnEditor(e),this.restoreEditors();const f=this.gos.get("suppressStartEditOnTab");return d&&!n?f?s.focusCell(!0,o):(s.comp?.getCellEditor()||vl(this.beans,s,{event:o,cellStartedEdit:!0}),this.setFocusInOnEditor(s),s.focusCell(!1,o)):(d&&n&&this.setFocusInOnEditor(s),s.focusCell(!0,o)),!h&&!n&&(this.editSvc?.stopEditing({rowNode:e.rowNode},{event:o}),this.cleanupEditors(s,!0),f?s.focusCell(!0,o):this.editSvc.startEditing(s,{startedEdit:!0,event:o,source:r,ignoreEventKey:!0})),e.rowCtrl?.refreshRow({suppressFlash:!0,force:!0}),!0}restoreEditors(){this.model.getEditMap().forEach((e,t)=>e.forEach(({state:o},r)=>{if(o!=="editing")return;const n=Pt(this.beans,{rowNode:t,column:r});n&&!n.comp?.getCellEditor()&&vl(this.beans,n,{silent:!0})}))}destroy(){super.destroy(),this.rowNode=void 0,this.startedRows.length=0}},lY=class extends $E{constructor(){super(...arguments),this.beanName="singleCell"}shouldStop(e,t,o="ui"){const r=super.shouldStop(e,t,o);if(r!==null)return r;const{rowNode:n,column:i}=e||{};return(!this.rowNode||!this.column)&&n&&i?null:this.rowNode!==n||this.column!==i}midBatchInputsAllowed(e){return this.model.hasEdits(e)}start(e){const{position:t,startedEdit:o,event:r,ignoreEventKey:n}=e;(this.rowNode!==t.rowNode||this.column!==t.column)&&super.cleanupEditors(),this.rowNode=t.rowNode,this.column=t.column,this.model.start(t),this.setupEditors({cells:[t],position:t,startedEdit:o,event:r,ignoreEventKey:n})}dispatchRowEvent(e,t,o){}processValidationResults(e){return e.fail.length>0&&this.editSvc.cellEditingInvalidCommitBlocks()?{destroy:[],keep:e.all}:{destroy:e.all,keep:[]}}stop(e,t){return super.stop(e,t),this.rowNode=void 0,this.column=void 0,!0}onCellFocusChanged(e){const{colModel:t,editSvc:o}=this.beans,{rowIndex:r,column:n,rowPinned:i}=e,s=Ws(this.beans,{rowIndex:r,rowPinned:i}),a=cb(n),c=t.getCol(a),d=e.previousParams;if(d){const h=cb(d.column);if(d?.rowIndex===r&&h===a&&d?.rowPinned===i)return}o?.isEditing({rowNode:s,column:c},{withOpenEditor:!0})&&e.type==="cellFocused"||super.onCellFocusChanged(e)}moveToNextEditingCell(e,t,o,r="ui",n=!1){const i=this.beans.focusSvc.getFocusedCell();i&&(e=Xc(this.beans,i)??e);const s=e.cellPosition;let a;const c=this.beans.gos.get("editType")==="fullRow";c&&this.model.suspend(!0),n||(e.eGui.focus(),this.editSvc?.stopEditing(e,{source:this.editSvc?.isBatchEditing()?"ui":"api",event:o}));try{a=this.beans.navigation?.findNextCellToFocusOn(s,{backwards:t,startEditing:!0})}finally{c&&this.model.suspend(!1)}if(a===!1)return null;if(a==null)return!1;const d=a.cellPosition,h=e.isCellEditable(),f=a.isCellEditable(),g=d&&s.rowIndex===d.rowIndex&&s.rowPinned===d.rowPinned;h&&!n&&this.setFocusOutOnEditor(e);const m=this.gos.get("suppressStartEditOnTab");if(!g&&!n&&(super.cleanupEditors(a,!0),m?a.focusCell(!0,o):this.editSvc.startEditing(a,{startedEdit:!0,event:o,source:r,ignoreEventKey:!0})),f&&!n){if(a.focusCell(!1,o),m)a.focusCell(!0,o);else if(!a.comp?.getCellEditor()){const b=this.editSvc?.isEditing(a,{withOpenEditor:!0});vl(this.beans,a,{event:o,cellStartedEdit:!0,silent:b}),this.setFocusInOnEditor(a),this.cleanupEditors(a)}}else f&&n&&this.setFocusInOnEditor(a),a.focusCell(!0,o);return e.rowCtrl?.refreshRow({suppressFlash:!0,force:!0}),!0}destroy(){super.destroy(),this.rowNode=void 0,this.column=void 0}},Rb={moduleName:"EditCore",version:Ve,beans:[X$,iY],apiFunctions:{getEditingCells:zZ,getEditRowValues:LZ,getCellEditorInstances:Y$,startEditingCell:GZ,stopEditing:HZ,isEditing:VZ,validateEdit:jZ},dynamicBeans:{singleCell:lY,fullRow:aY},dependsOn:[bb,RZ],css:[EZ]},KE={moduleName:"NumberEditor",version:Ve,userComponents:{agNumberCellEditor:{classImp:AZ}},dependsOn:[Rb]},XE={moduleName:"CheckboxEditor",version:Ve,userComponents:{agCheckboxCellEditor:PZ},dependsOn:[Rb]},cY={moduleName:"SelectEditor",version:Ve,userComponents:{agSelectCellEditor:BZ},dependsOn:[Rb]},uY=class extends ue{constructor(){super(...arguments),this.beanName="selectionColSvc"}postConstruct(){this.addManagedPropertyListener("rowSelection",e=>{this.onSelectionOptionsChanged(e.currentValue,e.previousValue,nl(e.source))}),this.addManagedPropertyListener("selectionColumnDef",this.updateColumns.bind(this))}addColumns(e){const t=this.columns;t!=null&&(e.list=t.list.concat(e.list),e.tree=t.tree.concat(e.tree),I7(e))}createColumns(e,t){const o=()=>{Ph(this.beans,this.columns?.tree),this.columns=null},r=e.treeDepth,i=(this.columns?.treeDepth??-1)==r,s=this.generateSelectionCols();if(A7(s,this.columns?.list??[])&&i)return;o();const{colGroupSvc:c}=this.beans,d=c?.findDepth(e.tree)??0,h=c?.balanceTreeForAutoCols(s,d)??[];this.columns={list:s,tree:h,treeDepth:d,map:{}},t(g=>{if(!g)return null;const m=g.filter(b=>!ol(b));return[...s,...m]})}updateColumns(e){const t=nl(e.source),{beans:o}=this;for(const r of this.columns?.list??[]){const n=this.createSelectionColDef(e.currentValue);r.setColDef(n,null,t),sv(o,{state:[O7(n,r.colId)]},t)}}getColumn(e){return this.columns?.list.find(t=>dF(t,e))??null}getColumns(){return this.columns?.list??null}isSelectionColumnEnabled(){const{gos:e,beans:t}=this,o=e.get("rowSelection");if(typeof o!="object"||!Os(e))return!1;const r=(t.autoColSvc?.getColumns()?.length??0)>0;if(o.checkboxLocation==="autoGroupColumn"&&r)return!1;const n=!!Ya(o),i=wh(o);return n||i}createSelectionColDef(e){const{gos:t}=this,o=e??t.get("selectionColumnDef"),r=t.get("enableRtl"),{rowSpan:n,spanRows:i,...s}=o??{};return{width:50,resizable:!1,suppressHeaderMenuButton:!0,sortable:!1,suppressMovable:!0,lockPosition:r?"right":"left",comparator(a,c,d,h){const f=d.isSelected(),g=h.isSelected();return f===g?0:f?1:-1},editable:!1,suppressFillHandle:!0,suppressAutoSize:!0,pinned:null,...s,colId:lF,chartDataType:"excluded"}}generateSelectionCols(){if(!this.isSelectionColumnEnabled())return[];const e=this.createSelectionColDef(),t=e.colId;this.gos.validateColDef(e,t,!0);const o=new Ls(e,null,t,!1);return this.createBean(o),[o]}onSelectionOptionsChanged(e,t,o){const r=t&&typeof t!="string"?Ya(t):void 0,n=e&&typeof e!="string"?Ya(e):void 0,i=r!==n,s=t&&typeof t!="string"?wh(t):void 0,a=e&&typeof e!="string"?wh(e):void 0,c=s!==a,d=Ch(e),h=Ch(t);(i||c||d!==h)&&this.beans.colModel.refreshAll(o)}destroy(){Ph(this.beans,this.columns?.tree),super.destroy()}refreshVisibility(e,t,o){if(!this.columns?.list.length)return;const r=e.length+t.length+o.length;if(r===0)return;const n=this.columns.list[0];if(!n.isVisible())return;const i=()=>{let c;switch(n.pinned){case"left":case!0:c=e;break;case"right":c=o;break;default:c=t}c&&zs(c,n)};(this.beans.rowNumbersSvc?.getColumn(cF)?2:1)===r&&i()}},dY=':where(.ag-selection-checkbox) .ag-checkbox-input-wrapper{&:before{content:"";cursor:pointer;inset:-8px;position:absolute}}';function hY(e,t){if(!t.nodes.every(s=>s.rowPinned&&!Yc(s)?(he(59),!1):s.id===void 0?(he(60),!1):!0))return;const{nodes:r,source:n,newValue:i}=t;e.selectionSvc?.setNodesSelected({nodes:r,source:n??"api",newValue:i})}function fY(e,t,o="apiSelectAll"){e.selectionSvc?.selectAllRowNodes({source:o,selectAll:t})}function pY(e,t,o="apiSelectAll"){e.selectionSvc?.deselectAllRowNodes({source:o,selectAll:t})}function gY(e,t="apiSelectAllFiltered"){e.selectionSvc?.selectAllRowNodes({source:t,selectAll:"filtered"})}function mY(e,t="apiSelectAllFiltered"){e.selectionSvc?.deselectAllRowNodes({source:t,selectAll:"filtered"})}function vY(e,t="apiSelectAllCurrentPage"){e.selectionSvc?.selectAllRowNodes({source:t,selectAll:"currentPage"})}function bY(e,t="apiSelectAllCurrentPage"){e.selectionSvc?.deselectAllRowNodes({source:t,selectAll:"currentPage"})}function wY(e){return e.selectionSvc?.getSelectedNodes()??[]}function CY(e){return e.selectionSvc?.getSelectedRows()??[]}var yY=class extends IW{constructor(){super(...arguments),this.beanName="selectionSvc",this.selectedNodes=new Map,this.detailSelection=new Map,this.masterSelectsDetail=!1}postConstruct(){super.postConstruct();const{gos:e}=this;this.mode=yh(e),this.groupSelectsDescendants=Hc(e),this.groupSelectsFiltered=xh(e)==="filteredDescendants",this.masterSelectsDetail=nF(e)==="detail",this.addManagedPropertyListeners(["groupSelectsChildren","groupSelectsFiltered","rowSelection"],()=>{const t=Hc(e),o=yh(e),r=xh(e)==="filteredDescendants";this.masterSelectsDetail=nF(e)==="detail",(t!==this.groupSelectsDescendants||r!==this.groupSelectsFiltered||o!==this.mode)&&(this.deselectAllRowNodes({source:"api"}),this.groupSelectsDescendants=t,this.groupSelectsFiltered=r,this.mode=o)}),this.addManagedEventListeners({rowSelected:this.onRowSelected.bind(this)})}destroy(){super.destroy(),this.resetNodes()}handleSelectionEvent(e,t,o){if(this.isRowSelectionBlocked(t))return 0;const r=this.inferNodeSelections(t,e.shiftKey,e.metaKey||e.ctrlKey,o);if(r==null)return 0;if(this.selectionCtx.selectAll=!1,"select"in r)return r.reset?this.resetNodes():this.selectRange(r.deselect,!1,o),this.selectRange(r.select,!0,o);{const n=r.checkFilteredNodes?YE(r.node):r.newValue;return this.setNodesSelected({nodes:[r.node],newValue:n,clearSelection:r.clearSelection,keepDescendants:r.keepDescendants,event:e,source:o})}}setNodesSelected({newValue:e,clearSelection:t,suppressFinishActions:o,nodes:r,event:n,source:i,keepDescendants:s=!1}){if(r.length===0)return 0;const{gos:a}=this;if(!Os(a)&&e)return he(132),0;if(r.length>1&&!this.isMultiSelect())return he(130),0;let c=0;for(let d=0;d<r.length;d++){const h=r[d],f=Sl(h);if(f.rowPinned&&!Yc(f)){he(59);continue}if(f.id===void 0){he(60);continue}if(e&&h.destroyed)continue;this.groupSelectsFiltered&&f.group&&!a.get("treeData")||this.selectRowNode(f,e,n,i)&&(this.detailSelection.delete(f.id),c++),this.groupSelectsDescendants&&f.childrenAfterGroup?.length&&(c+=this.selectChildren(f,e,i))}return o||(r.length===1&&i==="api"&&this.selectionCtx.setRoot(Sl(r[0])),e&&(t||!this.isMultiSelect())&&(c+=this.clearOtherNodes(Sl(r[0]),s,i)),c>0&&(this.updateGroupsFromChildrenSelections(i),this.dispatchSelectionChanged(i))),c}selectRange(e,t,o){let r=0;return e.forEach(n=>{const i=Sl(n);if(i.group&&this.groupSelectsDescendants)return;this.selectRowNode(i,t,void 0,o)&&r++}),r>0&&(this.updateGroupsFromChildrenSelections(o),this.dispatchSelectionChanged(o)),r}selectChildren(e,t,o){const r=this.groupSelectsFiltered?e.childrenAfterAggFilter:e.childrenAfterGroup;return r?this.setNodesSelected({newValue:t,clearSelection:!1,suppressFinishActions:!0,source:o,nodes:r}):0}getSelectedNodes(){return Array.from(this.selectedNodes.values())}getSelectedRows(){const e=[];return this.selectedNodes.forEach(t=>t.data&&e.push(t.data)),e}getSelectionCount(){return this.selectedNodes.size}filterFromSelection(e){const t=new Map;this.selectedNodes.forEach((o,r)=>{e(o)&&t.set(r,o)}),this.selectedNodes=t}updateGroupsFromChildrenSelections(e,t){if(!this.groupSelectsDescendants)return!1;const{gos:o,rowModel:r}=this.beans;if(!Fo(o))return!1;const n=r.rootNode;if(!n)return!1;t||(t=new tf(!0,n),t.active=!1);let i=!1;return t.forEachChangedNodeDepthFirst(s=>{if(s!==n){const a=this.calculateSelectedFromChildren(s);i=this.selectRowNode(s,a===null?!1:a,void 0,e)||i}}),i}clearOtherNodes(e,t,o){const r=new Map;let n=0;return this.selectedNodes.forEach(i=>{const s=i.id==e.id;if((t?!xY(e,i):!0)&&!s){const c=this.selectedNodes.get(i.id);n+=this.setNodesSelected({nodes:[c],newValue:!1,clearSelection:!1,suppressFinishActions:!0,source:o}),this.groupSelectsDescendants&&i.parent&&r.set(i.parent.id,i.parent)}}),r.forEach(i=>{const s=this.calculateSelectedFromChildren(i);this.selectRowNode(i,s===null?!1:s,void 0,o)}),n}onRowSelected(e){const t=e.node;this.groupSelectsDescendants&&t.group||(t.isSelected()?this.selectedNodes.set(t.id,t):this.selectedNodes.delete(t.id))}syncInRowNode(e,t){this.syncInOldRowNode(e,t),this.syncInNewRowNode(e)}createDaemonNode(e){if(!e.id)return;const t=new Iv(this.beans);return t.id=e.id,t.data=e.data,t.__selected=e.__selected,t.level=e.level,t}syncInOldRowNode(e,t){t&&e.id!==t.id&&this.selectedNodes.get(t.id)==e&&this.selectedNodes.set(t.id,t)}syncInNewRowNode(e){this.selectedNodes.has(e.id)?(e.__selected=!0,this.selectedNodes.set(e.id,e)):e.__selected=!1}reset(e){const t=this.getSelectionCount();this.resetNodes(),t&&this.dispatchSelectionChanged(e)}resetNodes(){this.selectedNodes.forEach(e=>{this.selectRowNode(e,!1)}),this.selectedNodes.clear()}getBestCostNodeSelection(){const{gos:e,rowModel:t}=this.beans;if(!Fo(e))return;const o=t.getTopLevelNodes();if(o===null)return;const r=[];function n(i){for(let s=0,a=i.length;s<a;s++){const c=i[s];c.isSelected()?r.push(c):c.group&&c.childrenAfterGroup&&n(c.childrenAfterGroup)}}return n(o),r}isEmpty(){return this.getSelectionCount()===0}deselectAllRowNodes({source:e,selectAll:t}){const o=Fo(this.gos);let r=!1;const n=i=>{const s=this.selectRowNode(Sl(i),!1,void 0,e);r||(r=s)};if(t==="currentPage"||t==="filtered"){if(!o){Ft(102);return}this.getNodesToSelect(t).forEach(n)}else this.selectedNodes.forEach(n),this.reset(e);if(this.selectionCtx.selectAll=!1,o&&this.groupSelectsDescendants){const i=this.updateGroupsFromChildrenSelections(e);r||(r=i)}r&&this.dispatchSelectionChanged(e)}getSelectedCounts(e){let t=0,o=0;return this.getNodesToSelect(e).forEach(r=>{this.groupSelectsDescendants&&r.group||(r.isSelected()?t++:r.selectable&&o++)}),{selectedCount:t,notSelectedCount:o}}getSelectAllState(e){const{selectedCount:t,notSelectedCount:o}=this.getSelectedCounts(e);return ZE(t,o)??null}hasNodesToSelect(e){return this.getNodesToSelect(e).filter(t=>t.selectable).length>0}getNodesToSelect(e){if(!this.canSelectAll())return[];const t=[],o=n=>t.push(n);if(e==="currentPage")return this.forEachNodeOnPage(n=>{if(!n.group){o(n);return}if(!n.expanded&&!n.footer){const i=s=>{o(s),s.childrenAfterFilter?.forEach(i)};i(n);return}this.groupSelectsDescendants||o(n)}),t;const r=this.beans.rowModel;return e==="filtered"?(r.forEachNodeAfterFilter(o),t):(r.forEachNode(o),t)}forEachNodeOnPage(e){const{pageBounds:t,rowModel:o}=this.beans,r=t.getFirstRow(),n=t.getLastRow();for(let i=r;i<=n;i++){const s=o.getRow(i);s&&e(s)}}selectAllRowNodes(e){const{gos:t,selectionCtx:o}=this;if(!Os(t)){he(132);return}if(g7(t)&&!Sh(t)){he(130);return}if(!this.canSelectAll())return;const{source:r,selectAll:n}=e;let i=!1;if(this.getNodesToSelect(n).forEach(s=>{const a=this.selectRowNode(Sl(s),!0,void 0,r);i||(i=a)}),o.selectAll=!0,Fo(t)&&this.groupSelectsDescendants){const s=this.updateGroupsFromChildrenSelections(r);i||(i=s)}i&&this.dispatchSelectionChanged(r)}getSelectionState(){return this.isEmpty()?null:Array.from(this.selectedNodes.keys())}setSelectionState(e,t,o){if(e||(e=[]),!Array.isArray(e)){Ft(103);return}const r=new Set(e),n=[];this.beans.rowModel.forEachNode(i=>{r.has(i.id)&&n.push(i)}),o&&this.resetNodes(),this.setNodesSelected({newValue:!0,nodes:n,source:t})}canSelectAll(){return Fo(this.beans.gos)}updateSelectable(e){const{gos:t,rowModel:o}=this.beans;if(!Os(t))return;const r="selectableChanged",n=e!==void 0,i=Fo(t)&&this.groupSelectsDescendants,s=[],a=c=>{if(n&&!c.group)return;if(i&&c.group){const h=c.childrenAfterGroup?.some(f=>f.selectable)??!1;this.setRowSelectable(c,h,!0);return}!this.updateRowSelectable(c,!0)&&c.isSelected()&&s.push(c)};if(i){if(e===void 0){const c=o.rootNode;e=c?new tf(!1,c):void 0}e?.forEachChangedNodeDepthFirst(a,!n,!n)}else o.forEachNode(a);s.length&&this.setNodesSelected({nodes:s,newValue:!1,source:r}),!n&&i&&this.updateGroupsFromChildrenSelections?.(r)}updateSelectableAfterGrouping(e){this.updateSelectable(e),this.groupSelectsDescendants&&this.updateGroupsFromChildrenSelections?.("rowGroupChanged",e)&&this.dispatchSelectionChanged("rowGroupChanged")}refreshMasterNodeState(e,t){if(!this.masterSelectsDetail)return;const o=e.detailNode?.detailGridInfo?.api;if(!o)return;const r=SY(o);if(e.isSelected()!==r&&this.selectRowNode(e,r,t,"masterDetail")&&this.dispatchSelectionChanged("masterDetail"),!r){const i=this.detailSelection.get(e.id)??new Set;for(const s of o.getSelectedNodes())i.add(s.id);this.detailSelection.set(e.id,i)}}setDetailSelectionState(e,t,o){if(this.masterSelectsDetail){if(!Sh(t)){he(269);return}switch(e.isSelected()){case!0:{o.selectAll();break}case!1:{o.deselectAll();break}case void 0:{const r=this.detailSelection.get(e.id);if(r){const n=[];for(const i of r){const s=o.getRowNode(i);s&&n.push(s)}o.setNodesSelected({nodes:n,newValue:!0,source:"masterDetail"})}break}}}}dispatchSelectionChanged(e){this.eventSvc.dispatchEvent({type:"selectionChanged",source:e,selectedNodes:this.getSelectedNodes(),serverSideState:null})}};function Sl(e){return Yc(e)?e.pinnedSibling:e.footer?e.sibling:e}function SY(e){let t=0,o=0;return e.forEachNode(r=>{r.isSelected()?t++:r.selectable&&o++}),ZE(t,o)}function ZE(e,t){if(e===0&&t===0)return!1;if(!(e>0&&t>0))return e>0}function xY(e,t){let o=t.parent;for(;o;){if(o===e)return!0;o=o.parent}return!1}function YE(e){const t=e.isSelected()===!1,o=e.childrenAfterFilter?.some(YE)??!1;return t||o}var kY={moduleName:"SharedRowSelection",version:Ve,beans:[uY],css:[dY],apiFunctions:{setNodesSelected:hY,selectAll:fY,deselectAll:pY,selectAllFiltered:gY,deselectAllFiltered:mY,selectAllOnCurrentPage:vY,deselectAllOnCurrentPage:bY,getSelectedNodes:wY,getSelectedRows:CY}},Eb={moduleName:"RowSelection",version:Ve,rowModels:["clientSide","infinite","viewport"],beans:[yY],dependsOn:[kY]},FY=class extends ue{constructor(e){super(),this.rootNode=e,this.nextId=0,this.allNodesMap={},QE(e)}getRowNode(e){return this.allNodesMap[e]}setNewRowData(e){this.dispatchRowDataUpdateStarted(e),this.destroyAllNodes();const t=QE(this.rootNode),o=new Array(e.length);t._leafs=o;let r=0;const n=this.beans.groupStage?.getNestedDataGetter(),i=n?new Set:null,s=(a,c)=>{const d=a.level+1;for(let h=0,f=c.length;h<f;++h){const g=c[h];if(!g)continue;const m=this.createRowNode(g,d);if(m.sourceRowIndex=r,o[r++]=m,i&&!i.has(g)){i.add(g),m.treeParent=a;const b=n(g);b&&s(m,b)}}};s(t,e),o.length=r}destroyAllNodes(){const{selectionSvc:e,pinnedRowModel:t,groupStage:o}=this.beans;e?.reset("rowDataChanged"),t?.isManual()&&t.reset(),o?.clearNonLeafs();const r=this.rootNode._leafs;if(r)for(let n=0,i=r.length;n<i;++n)r[n]._destroy(!1);this.allNodesMap=Object.create(null),this.nextId=0}setImmutableRowData(e,t){const{rootNode:o,gos:r}=this;this.dispatchRowDataUpdateStarted(t);const n=tv(r),i=e.changedRowNodes,{adds:s,updates:a}=i,c=new Set,d=[],h=this.beans.groupStage?.getNestedDataGetter();let f=r.get("suppressMaintainUnsortedOrder")?void 0:!1,g=-1,m=!1;const b=(k,C)=>{if(!f&&f!==void 0){const F=k.sourceRowIndex;f=F<=g,g=F}k.data!==C&&(k.updateData(C),s.has(k)||a.add(k),!k.selectable&&k.isSelected()&&d.push(k))},w=(k,C,F)=>{for(let E=0,_=C.length;E<_;++E){const P=C[E];if(!P)continue;let D=this.getRowNode(n({data:P,level:F}));if(D?(b(D,P),m||(m=!!h&&D.treeParent!==k)):(D=this.createRowNode(P,F),s.add(D)),!h||c.has(D)){c.add(D);continue}c.add(D),D.treeParent=k;const M=h(P);M&&w(D,M,F+1)}};w(o,t,0);const y=this.deleteUnusedNodes(c,i,d,!!e.animate)||f||s.size>0;if(y){const k=o._leafs??(o._leafs=[]);f===void 0?DY(k,c,i):PY(k,c)&&(i.reordered=!0)}(y||m||a.size)&&(e.rowDataUpdated=!0,this.deselect(d))}deleteUnusedNodes(e,{removals:t},o,r){const n=this.rootNode._leafs;for(let i=0,s=n.length;i<s;i++){const a=n[i];e.has(a)||this.destroyNode(a,r)&&(t.push(a),a.isSelected()&&o.push(a))}return t.length>0}updateRowData(e,t,o){if(this.dispatchRowDataUpdateStarted(e.add),this.beans.groupStage?.getNestedDataGetter())return he(268),{remove:[],update:[],add:[]};const r=[],n=tv(this.gos),i=this.executeRemove(n,e,t,r,o),s=this.executeUpdate(n,e,t,r),a=this.executeAdd(e,t);return this.deselect(r),{remove:i,update:s,add:a}}executeRemove(e,{remove:t},{adds:o,updates:r,removals:n},i,s){const a=this.rootNode._leafs,c=a?.length,d=t?.length;if(!d||!c)return[];let h=0,f=c,g=0;const m=new Array(d);for(let b=0;b<d;++b){const w=this.lookupNode(e,t[b]);if(!w)continue;const y=w.sourceRowIndex;y<f&&(f=y),y>g&&(g=y),m[h++]=w,this.destroyNode(w,s)&&(w.isSelected()&&i.push(w),o.delete(w)||(r.delete(w),n.push(w)))}return m.length=h,h&&_Y(a,f,g),m}executeUpdate(e,{update:t},{adds:o,updates:r},n){const i=t?.length;if(!i)return[];const s=new Array(i);let a=0;for(let c=0;c<i;c++){const d=t[c],h=this.lookupNode(e,d);h&&(h.updateData(d),!h.selectable&&h.isSelected()&&n.push(h),s[a++]=h,o.has(h)||r.add(h))}return s.length=a,s}executeAdd(e,t){var o;const r=(o=this.rootNode)._leafs??(o._leafs=[]),n=r.length,i=e.add,s=i?.length;if(!s)return[];const a=n+s;let c=this.sanitizeAddIndex(r,e.addIndex);if(c<n){for(let f=n-1,g=a-1;f>=c;--f){const m=r[f];m.sourceRowIndex=g,r[g--]=m}t.reordered=!0}r.length=a;const d=new Array(s),h=t.adds;for(let f=0;f<s;f++){const g=this.createRowNode(i[f],0);h.add(g),g.sourceRowIndex=c,r[c]=g,d[f]=g,c++}return d}dispatchRowDataUpdateStarted(e){this.eventSvc.dispatchEvent({type:"rowDataUpdateStarted",firstRowData:e?.length?e[0]:null})}deselect(e){const t="rowDataChanged",o=this.beans.selectionSvc;e.length&&o?.setNodesSelected({newValue:!1,nodes:e,suppressFinishActions:!0,source:t}),o?.updateGroupsFromChildrenSelections?.(t),e.length&&this.eventSvc.dispatchEvent({type:"selectionChanged",source:t,selectedNodes:o?.getSelectedNodes()??null,serverSideState:null})}createRowNode(e,t){const o=new Iv(this.beans);o.parent=this.rootNode,o.level=t,o.group=!1,o.expanded=!1,o.setDataAndId(e,String(this.nextId++));const r=o.id,n=this.allNodesMap;return n[r]&&he(2,{nodeId:r}),n[r]=o,o}destroyNode(e,t){if(!e._destroy(t))return!1;const o=e.id,r=this.allNodesMap;r[o]===e&&delete r[o];const n=e.pinnedSibling;return n&&this.beans.pinnedRowModel?.pinRow(n,null),!0}lookupNode(e,t){if(!e)return EY(this.rootNode._leafs,t);const o=e({data:t,level:0}),r=this.allNodesMap[o];return r||(Ft(4,{id:o}),null)}sanitizeAddIndex(e,t){const o=e.length;if(typeof t!="number"||t<0||t>=o||Number.isNaN(t))return o;t=Math.ceil(t);const r=this.gos;return t>0&&r.get("treeData")&&r.get("getDataPath")&&(t=RY(e,t)),t}},RY=(e,t)=>{for(let o=0,r=e.length;o<r;o++)if(e[o]?.rowIndex==t-1)return o+1;return t},QE=e=>{e.group=!0,e.level=-1,e.id="ROOT_NODE_ID",e._leafs?.length!==0&&(e._leafs=[]);const t=[],o=[],r=[],n=[];e.childrenAfterGroup=t,e.childrenAfterSort=o,e.childrenAfterAggFilter=r,e.childrenAfterFilter=n;const i=e.sibling;return i&&(i.childrenAfterGroup=t,i.childrenAfterSort=o,i.childrenAfterAggFilter=r,i.childrenAfterFilter=n,i.childrenMapped=e.childrenMapped),e.updateHasChildren(),e},EY=(e,t)=>{if(e)for(let o=0,r=e.length;o<r;o++){const n=e[o];if(n.data===t)return n}return Ft(5,{data:t}),null},_Y=(e,t,o)=>{t=Math.max(0,t);for(let r=t,n=e.length;r<n;++r){const i=e[r];r<=o&&i.destroyed||(i.sourceRowIndex=t,e[t++]=i)}e.length=t},PY=(e,t)=>{const o=t.size;e.length=o;let r=0,n=!1,i=!1;for(const s of t){const a=s.sourceRowIndex;a===r?i||(i=n):(a>=0?i=!0:n=!0,s.sourceRowIndex=r,e[r]=s),++r}return i},DY=(e,t,{adds:o})=>{const r=e.length,n=t.size;n>r&&(e.length=n);let i=0;for(let s=0;s<r;++s){const a=e[s];a.destroyed||(i!==s&&(a.sourceRowIndex=i,e[i]=a),++i)}for(const s of o)s.sourceRowIndex<0&&(s.sourceRowIndex=i,e[i++]=s);e.length=i},JE=e=>{const t=e.childrenAfterSort,o=e.sibling;if(o&&(o.childrenAfterSort=t),!!t)for(let r=0,n=t.length-1;r<=n;r++){const i=t[r],s=r===0,a=r===n;i.firstChild!==s&&(i.firstChild=s,i.dispatchRowEvent("firstChildChanged")),i.lastChild!==a&&(i.lastChild=a,i.dispatchRowEvent("lastChildChanged")),i.childIndex!==r&&(i.childIndex=r,i.dispatchRowEvent("childIndexChanged"))}},TY=class extends ue{constructor(){super(...arguments),this.beanName="sortStage",this.step="sort",this.refreshProps=["postSortRows","groupDisplayType","accentedSort"]}execute(e,t){const o=this.beans.sortSvc.getSortOptions(),r=o.length>0&&!!t&&this.gos.get("deltaSort"),{gos:n,colModel:i,rowGroupColsSvc:s,rowNodeSorter:a,rowRenderer:c,showRowGroupCols:d}=this.beans,h=n.get("groupMaintainOrder"),f=i.getCols().some(C=>C.isRowGroupActive()),g=s?.columns,m=i.isPivotMode(),b=n.getCallback("postSortRows");let w=!1,y;const k=C=>{const F=m&&C.leafGroup;let E=h&&f&&!C.leafGroup;E&&(y??(y=this.shouldSortContainsGroupCols(o)),E&&(E=!y));let _=null;if(E){let P=!1;if(g){const D=C.level+1;D<g.length&&(P=g[D].wasSortExplicitlyRemoved)}P||(_=IY(C))}else!o.length||F||(r&&t?_=MY(a,C,t,e,o):_=a.doFullSort(C.childrenAfterAggFilter,o));if(_||(_=C.childrenAfterAggFilter?.slice(0)??[]),w||(w=C.childrenAfterSort?.[0]!==_[0]),C.childrenAfterSort=_,JE(C),b){const P={nodes:C.childrenAfterSort};b(P)}};if(e?.forEachChangedNodeDepthFirst(k),w&&n.get("groupHideOpenParents")){const C=d?.columns;C?.length&&c.refreshCells({columns:C,force:!0})}}shouldSortContainsGroupCols(e){const t=e.length;if(!t)return!1;if(yn(this.gos)){for(let o=0;o<t;++o){const r=e[o].column;if(r.isPrimary()&&r.isRowGroupActive())return!0}return!1}for(let o=0;o<t;++o)if(e[o].column.getColDef().showRowGroup)return!0;return!1}},MY=(e,t,o,r,n)=>{const i=t.childrenAfterAggFilter,s=t.childrenAfterSort;if(!s)return e.doFullSort(i,n);const a=new Set,c=[],{updates:d,adds:h}=o;for(let g=0,m=i.length;g<m;++g){const b=i[g];d.has(b)||h.has(b)||r&&!r.canSkip(b)?c.push({currentPos:c.length,rowNode:b}):a.add(b)}const f=s.filter(g=>a.has(g)).map((g,m)=>({currentPos:m,rowNode:g}));return c.sort((g,m)=>e.compareRowNodes(n,g,m)),AY(e,n,c,f)},AY=(e,t,o,r)=>{let n=0,i=0;const s=o.length,a=r.length,c=new Array(s+a);let d=0;for(;n<s&&i<a;){const h=o[n],f=r[i];e.compareRowNodes(t,h,f)<0?(c[d++]=h.rowNode,++n):(c[d++]=f.rowNode,++i)}for(;n<s;)c[d++]=o[n++].rowNode;for(;i<a;)c[d++]=r[i++].rowNode;return c},IY=e=>{const t=e.childrenAfterSort,o=e.childrenAfterAggFilter,r=t?.length,n=o?.length;if(!r||!n)return null;const i=new Array(n),s=new Set;for(let c=0;c<n;++c)s.add(o[c]);let a=0;for(let c=0;c<r;++c){const d=t[c];s.delete(d)&&(i[a++]=d)}if(s.size===0&&a===r)return t;for(const c of s)i[a++]=c;return i.length=a,i},BY=class extends ue{constructor(){super(...arguments),this.beanName="rowModel",this.rootNode=null,this.rowCountReady=!1,this.nodeManager=void 0,this.rowsToDisplay=[],this.formulaRows=[],this.rowDataUpdatedPending=!1,this.asyncTransactions=null,this.asyncTransactionsTimer=0,this.started=!1,this.refreshingModel=!1,this.rowNodesCountReady=!1,this.stages=null,this.stagesRefreshProps=new Map,this.onRowHeightChanged_debounced=Qn(this,this.onRowHeightChanged.bind(this),100)}postConstruct(){const e=this.beans,t=new Iv(e);this.rootNode=t,this.nodeManager=this.createBean(new FY(t));const o=()=>{this.beans.groupStage?.invalidateGroupCols(),this.refreshModel({step:"group",afterColumnsChanged:!0,keepRenderedRows:!0,animate:!this.gos.get("suppressAnimationFrame")})};this.addManagedEventListeners({newColumnsLoaded:o,columnRowGroupChanged:o,columnValueChanged:this.onValueChanged.bind(this),columnPivotChanged:()=>this.refreshModel({step:"pivot"}),columnPivotModeChanged:()=>this.refreshModel({step:"group"}),filterChanged:this.onFilterChanged.bind(this),sortChanged:this.onSortChanged.bind(this),stylesChanged:this.onGridStylesChanges.bind(this),gridReady:this.onGridReady.bind(this),rowExpansionStateChanged:this.onRowGroupOpened.bind(this)}),this.addPropertyListeners()}addPropertyListeners(){const{beans:e,stagesRefreshProps:t}=this,o=[e.groupStage,e.filterStage,e.pivotStage,e.aggStage,e.sortStage,e.filterAggStage,e.flattenStage].filter(r=>!!r);this.stages=o;for(let r=o.length-1;r>=0;--r){const n=o[r];for(const i of n.refreshProps)t.set(i,r)}this.addManagedPropertyListeners([...t.keys(),"rowData"],r=>{const n=r.changeSet?.properties;n&&this.onPropChange(n)}),this.addManagedPropertyListener("rowHeight",()=>this.resetRowHeights())}start(){this.started=!0,this.rowNodesCountReady?this.refreshModel({step:"group",rowDataUpdated:!0,newData:!0}):this.setInitialData()}setInitialData(){this.gos.get("rowData")&&this.onPropChange(["rowData"])}ensureRowHeightsValid(e,t,o,r){let n,i=!1;do{n=!1;const s=this.getRowIndexAtPixel(e),a=this.getRowIndexAtPixel(t),c=Math.max(s,o),d=Math.min(a,r);for(let h=c;h<=d;h++){const f=this.getRow(h);if(f.rowHeightEstimated){const g=bh(this.beans,f);f.setRowHeight(g.height),n=!0,i=!0}}n&&this.setRowTopAndRowIndex()}while(n);return i}onPropChange(e){const{nodeManager:t,gos:o,beans:r}=this,n=r.groupStage;if(!t)return;const i=new Set(e),s=n?.onPropChange(i);let a;i.has("rowData")?a=o.get("rowData"):s&&(a=n?.extractData()),a&&!Array.isArray(a)&&(a=null,he(1));const c={step:"nothing",changedProps:i};a&&(!s&&!this.isEmpty()&&a.length>0&&o.exists("getRowId")&&!o.get("resetRowDataOnUpdate")?(c.keepRenderedRows=!0,c.animate=!o.get("suppressAnimationFrame"),c.changedRowNodes=new Jv,t.setImmutableRowData(c,a)):(c.rowDataUpdated=!0,c.newData=!0,t.setNewRowData(a),this.rowNodesCountReady=!0));const d=c.rowDataUpdated?"group":this.getRefreshedStage(e);d&&(c.step=d,this.refreshModel(c))}getRefreshedStage(e){const{stages:t,stagesRefreshProps:o}=this;if(!t)return null;const r=t.length;let n=r;for(let i=0,s=e.length;i<s&&n;++i)n=Math.min(n,o.get(e[i])??n);return n<r?t[n].step:null}setRowTopAndRowIndex(e){const{beans:t,rowsToDisplay:o}=this,r=t.environment.getDefaultRowHeight();let n=0;const i=po(this.gos,"normal");for(let s=0,a=o.length;s<a;++s){const c=o[s],d=c.id;if(d!=null&&e?.add(d),c.rowHeight==null){const h=bh(t,c,i,r);c.setRowHeight(h.height,h.estimated)}c.setRowTop(n),c.setRowIndex(s),n+=c.rowHeight}if(this.beans.formula?.active){const s=this.formulaRows;for(let a=0,c=s.length;a<c;++a){const d=s[a];d.formulaRowIndex=a}}}clearRowTopAndRowIndex(e,t){const o=e.active,r=s=>{s?.id!=null&&!t.has(s.id)&&s.clearRowTopAndRowIndex()},n=s=>{r(s),r(s.detailNode),r(s.sibling);const a=s.childrenAfterGroup;if(!s.hasChildren()||!a)return;const c=s.level==-1;if(!(o&&!c&&!s.expanded))for(let h=0,f=a.length;h<f;++h)n(a[h])},i=this.rootNode;i&&n(i)}isLastRowIndexKnown(){return!0}getRowCount(){return this.rowsToDisplay.length}getTopLevelRowCount(){const{rootNode:e,rowsToDisplay:t}=this;if(!e||!t.length)return 0;if(t[0]===e)return 1;const r=e.sibling?.displayed?1:0;return(e.childrenAfterSort?.length??0)+r}getTopLevelRowDisplayedIndex(e){const{beans:t,rootNode:o,rowsToDisplay:r}=this;if(!o||!r.length||r[0]===o)return e;const i=o.childrenAfterSort,s=c=>{let d=i[c];if(this.gos.get("groupHideOpenParents"))for(;d.expanded&&d.childrenAfterSort&&d.childrenAfterSort.length>0;)d=d.childrenAfterSort[0];return d.rowIndex},a=t.footerSvc;return a?a?.getTopDisplayIndex(r,e,i,s):s(e)}getTopLevelIndexFromDisplayedIndex(e){const{rootNode:t,rowsToDisplay:o}=this;if(!t||!o.length||o[0]===t)return e;let n=this.getRow(e);n.footer&&(n=n.sibling);let i=n.parent;for(;i&&i!==t;)n=i,i=n.parent;const s=t.childrenAfterSort?.indexOf(n)??-1;return s>=0?s:e}getRowBounds(e){const t=this.rowsToDisplay[e];return t?{rowTop:t.rowTop,rowHeight:t.rowHeight}:null}onRowGroupOpened(){this.refreshModel({step:"map",keepRenderedRows:!0,animate:Za(this.gos)})}onFilterChanged({afterDataChange:e,columns:t}){if(!e){const r=t.length===0||t.some(n=>n.isPrimary())?"filter":"filter_aggregates";this.refreshModel({step:r,keepRenderedRows:!0,animate:Za(this.gos)})}}onSortChanged(){this.refreshModel({step:"sort",keepRenderedRows:!0,animate:Za(this.gos)})}getType(){return"clientSide"}onValueChanged(){this.refreshModel({step:this.beans.colModel.isPivotActive()?"pivot":"aggregate"})}createChangePath(e){const t=new tf(!1,this.rootNode);return t.active=e,t}isSuppressModelUpdateAfterUpdateTransaction(e){if(!this.gos.get("suppressModelUpdateAfterUpdateTransaction"))return!1;const{changedRowNodes:t,newData:o,rowDataUpdated:r}=e;return!(!t||o||!r||t.removals.length||t.adds.size)}refreshModel(e){const{nodeManager:t,beans:o,eventSvc:r,started:n,refreshingModel:i}=this;if(!t)return;const s=!!e.rowDataUpdated,a=e.changedPath??(e.changedPath=this.createChangePath(!e.newData&&s));if(n&&s&&r.dispatchEvent({type:"rowDataUpdated"}),!n||i||o.colModel.changeEventsDispatching||this.isSuppressModelUpdateAfterUpdateTransaction(e)){this.rowDataUpdatedPending||(this.rowDataUpdatedPending=s);return}switch(this.rowDataUpdatedPending&&(this.rowDataUpdatedPending=!1,e.step="group"),this.refreshingModel=!0,o.masterDetailSvc?.refreshModel(e),s&&e.step!=="group"&&o.colFilter?.refreshModel(),e.step){case"group":this.doGrouping(e);case"filter":this.doFilter(a);case"pivot":this.doPivot(a);case"aggregate":this.doAggregate(a);case"filter_aggregates":this.doFilterAggregates(a);case"sort":this.doSort(a,e.changedRowNodes);case"map":this.doRowsToDisplay()}const c=new Set;this.setRowTopAndRowIndex(c),this.clearRowTopAndRowIndex(a,c),this.refreshingModel=!1,r.dispatchEvent({type:"modelUpdated",animate:e.animate,keepRenderedRows:e.keepRenderedRows,newData:e.newData,newPage:!1,keepUndoRedoStack:e.keepUndoRedoStack})}isEmpty(){return!this.rootNode?._leafs?.length||!this.beans.colModel?.ready}isRowsToRender(){return this.rowsToDisplay.length>0}getOverlayType(){return this.isEmpty()?"noRows":this.beans.filterManager?.isAnyFilterPresent()&&this.getRowCount()===0?"noMatchingRows":null}getNodesInRangeForSelection(e,t){let o=!1,r=!1;const n=[],i=Hc(this.gos);return this.forEachNodeAfterFilterAndSort(s=>{if(r)return;if(o&&(s===t||s===e)&&(r=!0,i&&s.group)){e_(n,s);return}if(!o){if(s!==t&&s!==e)return;o=!0,t===e&&(r=!0)}(!s.group||!i)&&n.push(s)}),n}getTopLevelNodes(){return this.rootNode?.childrenAfterGroup??null}getRow(e){return this.rowsToDisplay[e]}getFormulaRow(e){return this.formulaRows[e]}isRowPresent(e){return this.rowsToDisplay.indexOf(e)>=0}getRowIndexAtPixel(e){const t=this.rowsToDisplay,o=t.length;if(this.isEmpty()||o===0)return-1;let r=0,n=o-1;if(e<=0)return 0;if(t[n].rowTop<=e)return n;let s=-1,a=-1;for(;;){const c=Math.floor((r+n)/2),d=t[c];if(this.isRowInPixel(d,e)||(d.rowTop<e?r=c+1:d.rowTop>e&&(n=c-1),s===r&&a===n))return c;s=r,a=n}}isRowInPixel(e,t){const o=e.rowTop,r=o+e.rowHeight;return o<=t&&r>t}forEachLeafNode(e){const t=this.rootNode?._leafs;if(t)for(let o=0,r=t.length;o<r;++o)e(t[o],o)}forEachNode(e,t=!1){this.depthFirstSearchRowNodes(e,t)}forEachDisplayedNode(e){const t=this.rowsToDisplay;for(let o=0,r=t.length;o<r;++o)e(t[o],o)}forEachNodeAfterFilter(e,t=!1){this.depthFirstSearchRowNodes(e,t,o=>o.childrenAfterAggFilter)}forEachNodeAfterFilterAndSort(e,t=!1){this.depthFirstSearchRowNodes(e,t,o=>o.childrenAfterSort)}forEachPivotNode(e,t,o){const{colModel:r,rowGroupColsSvc:n}=this.beans;if(!r.isPivotMode())return;if(!n?.columns.length){e(this.rootNode,0);return}const i=o?"childrenAfterSort":"childrenAfterGroup";this.depthFirstSearchRowNodes(e,t,s=>s.leafGroup?null:s[i])}depthFirstSearchRowNodes(e,t=!1,o=i=>i.childrenAfterGroup,r=this.rootNode,n=0){let i=n;if(!r)return i;const s=r===this.rootNode;if(s||e(r,i++),r.hasChildren()&&!r.footer){const a=o(r);if(a){const c=this.beans.footerSvc;i=c?.addTotalRows(i,r,e,t,s,"top")??i;for(const d of a)i=this.depthFirstSearchRowNodes(e,t,o,d,i);return c?.addTotalRows(i,r,e,t,s,"bottom")??i}}return i}doAggregate(e){this.rootNode&&this.beans.aggStage?.execute(e)}doFilterAggregates(e){const t=this.rootNode,o=this.beans.filterAggStage;if(o){o.execute(e);return}t.childrenAfterAggFilter=t.childrenAfterFilter}doSort(e,t){const o=this.beans.sortStage;if(o){o.execute(e,t);return}e.forEachChangedNodeDepthFirst(r=>{r.childrenAfterSort=r.childrenAfterAggFilter.slice(0),JE(r)})}doGrouping(e){const t=this.rootNode;if(!t)return;const r=this.beans.groupStage?.execute(e);if(r===void 0){const n=t._leafs;t.childrenAfterGroup=n,t.updateHasChildren();const i=t.sibling;i&&(i.childrenAfterGroup=n)}(r||e.rowDataUpdated)&&this.beans.colFilter?.refreshModel(),!this.rowCountReady&&this.rowNodesCountReady&&(this.rowCountReady=!0,this.eventSvc.dispatchEventOnce({type:"rowCountReady"}))}doFilter(e){const t=this.beans.filterStage;if(t){t.execute(e);return}e.forEachChangedNodeDepthFirst(o=>{o.childrenAfterFilter=o.childrenAfterGroup,vb(o)},!0)}doPivot(e){this.beans.pivotStage?.execute(e)}getRowNode(e){const t=this.nodeManager?.getRowNode(e);return typeof t=="object"?t:this.beans.groupStage?.getNonLeaf(e)}batchUpdateRowData(e,t){if(!this.asyncTransactionsTimer){this.asyncTransactions=[];const o=this.gos.get("asyncTransactionWaitMillis");this.asyncTransactionsTimer=setTimeout(()=>this.executeBatchUpdateRowData(),o)}this.asyncTransactions.push({rowDataTransaction:e,callback:t})}flushAsyncTransactions(){const e=this.asyncTransactionsTimer;e&&(clearTimeout(e),this.executeBatchUpdateRowData())}executeBatchUpdateRowData(){const{nodeManager:e,beans:t,eventSvc:o,asyncTransactions:r}=this;if(!e)return;t.valueCache?.onDataChanged();const n=[],i=[],s=new Jv,a=!this.gos.get("suppressAnimationFrame");for(const{rowDataTransaction:c,callback:d}of r??[]){this.rowNodesCountReady=!0;const h=e.updateRowData(c,s,a);n.push(h),d&&i.push(d.bind(null,h))}this.commitTransactions(s,a),i.length>0&&setTimeout(()=>{for(let c=0,d=i.length;c<d;c++)i[c]()},0),n.length>0&&o.dispatchEvent({type:"asyncTransactionsFlushed",results:n}),this.asyncTransactionsTimer=0,this.asyncTransactions=null}updateRowData(e){const t=this.nodeManager;if(!t)return null;this.beans.valueCache?.onDataChanged(),this.rowNodesCountReady=!0;const o=new Jv,r=!this.gos.get("suppressAnimationFrame"),n=t.updateRowData(e,o,r);return this.commitTransactions(o,r),n}commitTransactions(e,t){this.refreshModel({step:"group",rowDataUpdated:!0,keepRenderedRows:!0,animate:t,changedRowNodes:e,changedPath:this.createChangePath(!0)})}doRowsToDisplay(){const{rootNode:e,beans:t}=this;if(t.formula?.active){const n=e?.childrenAfterSort??[];this.formulaRows=n,this.rowsToDisplay=n.filter(i=>!i.softFiltered);for(const i of this.rowsToDisplay)i.setUiLevel(0);return}const o=t.flattenStage;if(o){this.rowsToDisplay=o.execute();return}const r=this.rootNode.childrenAfterSort??[];for(const n of r)n.setUiLevel(0);this.rowsToDisplay=r}onRowHeightChanged(){this.refreshModel({step:"map",keepRenderedRows:!0,keepUndoRedoStack:!0})}resetRowHeights(){const e=this.rootNode;if(!e)return;const t=this.resetRowHeightsForAllRowNodes();e.setRowHeight(e.rowHeight,!0);const o=e.sibling;o?.setRowHeight(o.rowHeight,!0),t&&this.onRowHeightChanged()}resetRowHeightsForAllRowNodes(){let e=!1;return this.forEachNode(t=>{t.setRowHeight(t.rowHeight,!0);const o=t.detailNode;o?.setRowHeight(o.rowHeight,!0);const r=t.sibling;r?.setRowHeight(r.rowHeight,!0),e=!0}),e}onGridStylesChanges(e){e.rowHeightChanged&&!this.beans.rowAutoHeight?.active&&this.resetRowHeights()}onGridReady(){this.started||this.setInitialData()}destroy(){super.destroy(),this.nodeManager=this.destroyBean(this.nodeManager),this.started=!1,this.rootNode=null,this.rowsToDisplay=[],this.asyncTransactions=null,this.stages=null,this.stagesRefreshProps.clear(),clearTimeout(this.asyncTransactionsTimer)}onRowHeightChangedDebounced(){this.onRowHeightChanged_debounced()}},e_=(e,t)=>{const o=t.childrenAfterGroup;if(o)for(let r=0,n=o.length;r<n;++r){const i=o[r];i.data&&e.push(i),i.group&&e_(e,i)}},_b={moduleName:"ClientSideRowModel",version:Ve,rowModels:["clientSide"],beans:[BY,TY],dependsOn:[EE]},OY=class extends ue{constructor(){super(...arguments),this.beanName="rowAutoHeight",this.wasEverActive=!1,this._debouncedCalculateRowHeights=Qn(this,this.calculateRowHeights.bind(this),1)}requestCheckAutoHeight(){this.wasEverActive&&this._debouncedCalculateRowHeights()}calculateRowHeights(){const{visibleCols:e,rowModel:t,rowSpanSvc:o,pinnedRowModel:r}=this.beans,n=e.autoHeightCols;let i=!1;const s=a=>{const c=a.__autoHeights;let d=bh(this.beans,a).height;for(const h of n){let f=c?.[h.getColId()];const g=o?.getCellSpan(h,a);if(g){if(g.getLastNode()!==a)continue;if(f=o?.getCellSpan(h,a)?.getLastNodeAutoHeight(),!f)return}if(f==null){if(this.colSpanSkipCell(h,a))continue;return}d=Math.max(f,d)}d!==a.rowHeight&&(a.setRowHeight(d),i=!0)};r?.forEachPinnedRow?.("top",s),r?.forEachPinnedRow?.("bottom",s),t.forEachDisplayedNode?.(s),i&&t.onRowHeightChanged?.()}setRowAutoHeight(e,t,o){if(e.__autoHeights??(e.__autoHeights={}),t==null){delete e.__autoHeights[o.getId()];return}const r=e.__autoHeights[o.getId()];e.__autoHeights[o.getId()]=t,r!==t&&this.requestCheckAutoHeight()}colSpanSkipCell(e,t){const{colModel:o,colViewport:r,visibleCols:n}=this.beans;if(!o.colSpanActive)return!1;let i=[];switch(e.getPinned()){case"left":i=n.getLeftColsForRow(t);break;case"right":i=n.getRightColsForRow(t);break;case null:i=r.getColsWithinViewport(t);break}return!i.includes(e)}setupCellAutoHeight(e,t,o){if(!e.column.isAutoHeight()||!t)return!1;this.wasEverActive=!0;const r=t.parentElement,{rowNode:n,column:i}=e,s=this.beans,a=h=>{if(this.beans.editSvc?.isEditing(e)||!e.isAlive()||!o.isAlive())return;const{paddingTop:f,paddingBottom:g,borderBottomWidth:m,borderTopWidth:b}=Is(r),w=f+g+m+b,k=t.offsetHeight+w;if(h<5){const F=!lo(s)?.contains(t),E=k==0;if(F||E){window.setTimeout(()=>a(h+1),0);return}}this.setRowAutoHeight(n,k,i)},c=()=>a(0);c();const d=Zn(s,t,c);return o.addDestroyFunc(()=>{d(),this.setRowAutoHeight(n,void 0,i)}),!0}setAutoHeightActive(e){this.active=e.list.some(t=>t.isVisible()&&t.isAutoHeight())}areRowsMeasured(){if(!this.active)return!0;const e=this.beans.rowRenderer.getAllRowCtrls();let t=null;for(const{rowNode:o}of e)if((!t||this.beans.colModel.colSpanActive)&&(t=this.beans.colViewport.getColsWithinViewport(o).filter(n=>n.isAutoHeight())),t.length!==0){if(!o.__autoHeights)return!1;for(const r of t){const n=o.__autoHeights[r.getColId()];if(!n||o.rowHeight<n)return!1}}return!0}},t_={moduleName:"RowAutoHeight",version:Ve,beans:[OY]},vo=J.createContext({}),o_=J.createContext("default"),nu=(e,t,o,r)=>{if(!e||e.componentFromFramework||t.isDestroyed())return;const i=e.newAgStackInstance();let s,a,c=!1;return i.then(d=>{if(c){t.destroyBean(d);return}s=d,a=s.getGui(),o.appendChild(a),r_(r,s)}),()=>{c=!0,s&&(a?.remove(),t.destroyBean(s),r&&r_(r,void 0))}},r_=(e,t)=>{if(e)if(e instanceof Function)e(t);else{const o=e;o.current=t}},wr=(...e)=>e.filter(o=>o!=null&&o!=="").join(" "),Cr=class FT{constructor(...t){this.classesMap={};for(const o of t)this.classesMap[o]=!0}setClass(t,o){if(!!this.classesMap[t]==o)return this;const n=new FT;return n.classesMap={...this.classesMap},n.classesMap[t]=o,n}toString(){return Object.keys(this.classesMap).filter(o=>this.classesMap[o]).join(" ")}},xl=e=>{const t=()=>typeof Symbol=="function"&&Symbol.for,o=()=>t()?Symbol.for("react.memo"):60115;return typeof e=="function"&&!(e.prototype&&e.prototype.isReactComponent)||typeof e=="object"&&e.$$typeof===o()},Pb=J.version?.split(".")[0],n_=Pb==="16"||Pb==="17";function NY(){return Pb==="19"}var hf=!1;function LY(e){return hf||setTimeout(()=>hf=!1,0),hf=!0,e()}var iu=(e,t)=>{!n_&&e&&!hf?e5.flushSync(t):t()},zY=e=>{n_?e():J.startTransition(e)};function HY(e,t,o){return J.useSyncExternalStore?J.useSyncExternalStore(e,t):o}function ff(e,t,o){if(t==null||e==null)return t;if(e===t||t.length===0&&e.length===0)return e;if(o||e.length===0&&t.length>0||e.length>0&&t.length===0)return t;const r=[],n=[],i=new Map,s=new Map;for(let a=0;a<t.length;a++){const c=t[a];s.set(c.instanceId,c)}for(let a=0;a<e.length;a++){const c=e[a];i.set(c.instanceId,c),s.has(c.instanceId)&&r.push(c)}for(let a=0;a<t.length;a++){const c=t[a],d=c.instanceId;i.has(d)||n.push(c)}return r.length===e.length&&n.length===0?e:r.length===0&&n.length===t.length?t:r.length===0?n:n.length===0?r:[...r,...n]}var i_=S.forwardRef((e,t)=>{const{registry:o,context:r}=S.useContext(vo),n=S.useRef(null),i=S.useRef(null),s=S.useRef(null),a=S.useRef(null),c=S.useRef(null),d=S.useRef(),[h,f]=S.useState(),[g,m]=S.useState(),[b,w]=S.useState(),[y,k]=S.useState(()=>new Cr),[C,F]=S.useState(()=>new Cr("ag-hidden")),[E,_]=S.useState(()=>new Cr("ag-hidden")),[P,D]=S.useState(()=>new Cr("ag-invisible"));S.useImperativeHandle(t,()=>({refresh(){return!1}})),S.useLayoutEffect(()=>nu(h,r,i.current),[h]);const M=S.useCallback(Y=>{if(n.current=Y,!Y||r.isDestroyed()){d.current=r.destroyBean(d.current);return}const I={setInnerRenderer:(j,z)=>{f(j),w(z)},setChildCount:j=>m(j),toggleCss:(j,z)=>k(H=>H.setClass(j,z)),setContractedDisplayed:j=>_(z=>z.setClass("ag-hidden",!j)),setExpandedDisplayed:j=>F(z=>z.setClass("ag-hidden",!j)),setCheckboxVisible:j=>D(z=>z.setClass("ag-invisible",!j)),setCheckboxSpacing:j=>D(z=>z.setClass("ag-group-checkbox-spacing",j))},X=o.createDynamicBean("groupCellRendererCtrl",!0);X&&(d.current=r.createBean(X),d.current.init(I,Y,s.current,a.current,c.current,i_,e))},[]),A=S.useMemo(()=>`ag-cell-wrapper ${y.toString()}`,[y]),O=S.useMemo(()=>`ag-group-expanded ${C.toString()}`,[C]),K=S.useMemo(()=>`ag-group-contracted ${E.toString()}`,[E]),W=S.useMemo(()=>`ag-group-checkbox ${P.toString()}`,[P]),L=h?.componentFromFramework,V=L?h.componentClass:void 0,U=h==null&&b!=null,$=Pc(b);return J.createElement("span",{className:A,ref:M,...e.colDef?{}:{role:d.current?.getCellAriaRole()}},J.createElement("span",{className:O,ref:a}),J.createElement("span",{className:K,ref:c}),J.createElement("span",{className:W,ref:s}),J.createElement("span",{className:"ag-group-value",ref:i},U?$:L?J.createElement(V,{...h.params}):null),J.createElement("span",{className:"ag-group-child-count"},g))}),s_=i_,Db=S.createContext({setMethods:()=>{}}),VY=e=>{const{initialProps:t,addUpdateCallback:o,CustomComponentClass:r,setMethods:n}=e,[{key:i,...s},a]=S.useState(t);return S.useEffect(()=>{o(c=>a(c))},[]),J.createElement(Db.Provider,{value:{setMethods:n}},J.createElement(r,{key:i,...s}))},GY=S.memo(VY),jY=0;function a_(){return`agPortalKey_${++jY}`}var l_=class{constructor(e,t,o,r){this.portal=null,this.oldPortal=null,this.reactComponent=e,this.portalManager=t,this.componentType=o,this.suppressFallbackMethods=!!r,this.statelessComponent=this.isStateless(this.reactComponent),this.key=a_(),this.portalKey=a_(),this.instanceCreated=this.isStatelessComponent()?Ye.resolve(!1):new Ye(n=>{this.resolveInstanceCreated=n})}getGui(){return this.eParentElement}getRootElement(){return this.eParentElement.firstChild}destroy(){this.componentInstance&&typeof this.componentInstance.destroy=="function"&&this.componentInstance.destroy();const e=this.portal;e&&this.portalManager.destroyPortal(e)}createParentElement(e){const t=this.portalManager.getComponentWrappingElement(),o=document.createElement(t||"div");return o.classList.add("ag-react-container"),e.reactContainer=o,o}statelessComponentRendered(){return this.eParentElement.childElementCount>0||this.eParentElement.childNodes.length>0}getFrameworkComponentInstance(){return this.componentInstance}isStatelessComponent(){return this.statelessComponent}getReactComponentName(){return this.reactComponent.name}getMemoType(){return this.hasSymbol()?Symbol.for("react.memo"):60115}hasSymbol(){return typeof Symbol=="function"&&Symbol.for}isStateless(e){return typeof e=="function"&&!(e.prototype&&e.prototype.isReactComponent)||typeof e=="object"&&e.$$typeof===this.getMemoType()}hasMethod(e){const t=this.getFrameworkComponentInstance();return!!t&&t[e]!=null||this.fallbackMethodAvailable(e)}callMethod(e,t){const o=this.getFrameworkComponentInstance();if(this.isStatelessComponent())return this.fallbackMethod(e,t&&t[0]?t[0]:{});if(!o){setTimeout(()=>this.callMethod(e,t));return}const r=o[e];if(r)return r.apply(o,t);if(this.fallbackMethodAvailable(e))return this.fallbackMethod(e,t&&t[0]?t[0]:{})}addMethod(e,t){this[e]=t}init(e){return this.eParentElement=this.createParentElement(e),this.createOrUpdatePortal(e),new Ye(t=>this.createReactComponent(t))}createOrUpdatePortal(e){this.isStatelessComponent()||(this.ref=t=>{this.componentInstance=t,this.resolveInstanceCreated?.(!0),this.resolveInstanceCreated=void 0},e.ref=this.ref),this.reactElement=this.createElement(this.reactComponent,{...e,key:this.key}),this.portal=gs.createPortal(this.reactElement,this.eParentElement,this.portalKey)}createElement(e,t){return S.createElement(e,t)}createReactComponent(e){this.portalManager.mountReactPortal(this.portal,this,e)}rendered(){return this.isStatelessComponent()&&this.statelessComponentRendered()||!!(!this.isStatelessComponent()&&this.getFrameworkComponentInstance())}refreshComponent(e){this.oldPortal=this.portal,this.createOrUpdatePortal(e),this.portalManager.updateReactPortal(this.oldPortal,this.portal)}fallbackMethod(e,t){const o=this[`${e}Component`];if(!this.suppressFallbackMethods&&o)return o.bind(this)(t)}fallbackMethodAvailable(e){return this.suppressFallbackMethods?!1:!!this[`${e}Component`]}};function pf(e,t,o){for(const r of e){const n=t[r];n&&(o[r]=n)}}var yr=class extends l_{constructor(){super(...arguments),this.awaitUpdateCallback=new Ye(e=>{this.resolveUpdateCallback=e}),this.wrapperComponent=GY}init(e){return this.sourceParams=e,super.init(this.getProps())}addMethod(){}getInstance(){return this.instanceCreated.then(()=>this.componentInstance)}getFrameworkComponentInstance(){return this}createElement(e,t){return super.createElement(this.wrapperComponent,{initialProps:t,CustomComponentClass:e,setMethods:o=>this.setMethods(o),addUpdateCallback:o=>{this.updateCallback=()=>(o(this.getProps()),new Ye(r=>{setTimeout(()=>{r()})})),this.resolveUpdateCallback()}})}setMethods(e){this.providedMethods=e,pf(this.getOptionalMethods(),this.providedMethods,this)}getOptionalMethods(){return[]}getProps(){return{...this.sourceParams,key:this.key,ref:this.ref}}refreshProps(){return this.updateCallback?this.updateCallback():new Ye(e=>this.awaitUpdateCallback.then(()=>{this.updateCallback().then(()=>e())}))}},WY=class extends yr{refresh(e){return this.sourceParams=e,this.refreshProps(),!0}},qY=class extends yr{refresh(e){this.sourceParams=e,this.refreshProps()}},UY=class extends yr{constructor(){super(...arguments),this.date=null,this.onDateChange=e=>this.updateDate(e)}getDate(){return this.date}setDate(e){this.date=e,this.refreshProps()}refresh(e){this.sourceParams=e,this.refreshProps()}getOptionalMethods(){return["afterGuiAttached","setInputPlaceholder","setInputAriaLabel","setDisabled"]}updateDate(e){this.setDate(e),this.sourceParams.onDateChanged()}getProps(){const e=super.getProps();return e.date=this.date,e.onDateChange=this.onDateChange,delete e.onDateChanged,e}},$Y=class extends yr{constructor(){super(...arguments),this.label="",this.icon=null,this.shake=!1}setIcon(e,t){this.icon=e,this.shake=t,this.refreshProps()}setLabel(e){this.label=e,this.refreshProps()}getProps(){const e=super.getProps(),{label:t,icon:o,shake:r}=this;return e.label=t,e.icon=o,e.shake=r,e}},KY=class extends yr{constructor(){super(...arguments),this.model=null,this.onModelChange=e=>this.updateModel(e),this.onUiChange=()=>this.sourceParams.filterModifiedCallback(),this.expectingNewMethods=!0,this.hasBeenActive=!1,this.awaitSetMethodsCallback=new Ye(e=>{this.resolveSetMethodsCallback=e})}isFilterActive(){return this.model!=null}doesFilterPass(e){return this.providedMethods.doesFilterPass(e)}getModel(){return this.model}setModel(e){return this.expectingNewMethods=!0,this.model=e,this.hasBeenActive||(this.hasBeenActive=this.isFilterActive()),this.refreshProps()}refresh(e){return this.sourceParams=e,this.refreshProps(),!0}afterGuiAttached(e){const t=this.providedMethods;t?t.afterGuiAttached?.(e):this.awaitSetMethodsCallback.then(()=>this.providedMethods?.afterGuiAttached?.(e))}getOptionalMethods(){return["afterGuiDetached","onNewRowsLoaded","getModelAsString","onAnyFilterChanged"]}setMethods(e){this.expectingNewMethods===!1&&this.hasBeenActive&&this.providedMethods?.doesFilterPass!==e?.doesFilterPass&&setTimeout(()=>{this.sourceParams.filterChangedCallback()}),this.expectingNewMethods=!1,super.setMethods(e),this.resolveSetMethodsCallback(),this.resolveFilterPassCallback?.(),this.resolveFilterPassCallback=void 0}updateModel(e){this.resolveFilterPassCallback?.();const t=new Ye(o=>{this.resolveFilterPassCallback=o});this.setModel(e).then(()=>{t.then(()=>{this.sourceParams.filterChangedCallback()})})}getProps(){const e=super.getProps();return e.model=this.model,e.onModelChange=this.onModelChange,e.onUiChange=this.onUiChange,delete e.filterChangedCallback,e}},XY=class extends yr{constructor(){super(...arguments),this.awaitSetMethodsCallback=new Ye(e=>{this.resolveSetMethodsCallback=e})}refresh(e){return this.sourceParams=e,this.refreshProps(),!0}afterGuiAttached(e){const t=this.providedMethods;t?t.afterGuiAttached?.(e):this.awaitSetMethodsCallback.then(()=>this.providedMethods?.afterGuiAttached?.(e))}getOptionalMethods(){return["afterGuiDetached","onNewRowsLoaded","onAnyFilterChanged"]}setMethods(e){super.setMethods(e),this.resolveSetMethodsCallback()}};function c_(e,t){e.parentFilterInstance(o=>{(o.setModel(t)||Ye.resolve()).then(()=>{e.filterParams.filterChangedCallback()})})}var ZY=class{constructor(e,t){this.floatingFilterParams=e,this.refreshProps=t,this.model=null,this.onModelChange=o=>this.updateModel(o)}getProps(){return{...this.floatingFilterParams,model:this.model,onModelChange:this.onModelChange}}onParentModelChanged(e){this.model=e,this.refreshProps()}refresh(e){this.floatingFilterParams=e,this.refreshProps()}setMethods(e){pf(this.getOptionalMethods(),e,this)}getOptionalMethods(){return["afterGuiAttached"]}updateModel(e){this.model=e,this.refreshProps(),c_(this.floatingFilterParams,e)}},YY=class extends yr{constructor(){super(...arguments),this.model=null,this.onModelChange=e=>this.updateModel(e)}onParentModelChanged(e){this.model=e,this.refreshProps()}refresh(e){this.sourceParams=e,this.refreshProps()}getOptionalMethods(){return["afterGuiAttached"]}updateModel(e){this.model=e,this.refreshProps(),c_(this.sourceParams,e)}getProps(){const e=super.getProps();return e.model=this.model,e.onModelChange=this.onModelChange,e}},QY=class extends yr{refresh(e){this.sourceParams=e,this.refreshProps()}getOptionalMethods(){return["afterGuiAttached"]}},JY=class extends yr{refresh(e){return this.sourceParams=e,this.refreshProps(),!0}},eQ=class extends yr{constructor(){super(...arguments),this.active=!1,this.expanded=!1,this.onActiveChange=e=>this.updateActive(e)}setActive(e){this.awaitSetActive(e)}setExpanded(e){this.expanded=e,this.refreshProps()}getOptionalMethods(){return["select","configureDefaults"]}awaitSetActive(e){return this.active=e,this.refreshProps()}updateActive(e){const t=this.awaitSetActive(e);e&&t.then(()=>this.sourceParams.onItemActivated())}getProps(){const e=super.getProps();return e.active=this.active,e.expanded=this.expanded,e.onActiveChange=this.onActiveChange,delete e.onItemActivated,e}},tQ=class extends yr{refresh(e){return this.sourceParams=e,this.refreshProps(),!0}},oQ=class extends yr{constructor(){super(...arguments),this.onStateChange=e=>this.updateState(e)}refresh(e){return this.sourceParams=e,this.refreshProps(),!0}getState(){return this.state}updateState(e){this.state=e,this.refreshProps(),this.sourceParams.onStateUpdated()}getProps(){const e=super.getProps();return e.state=this.state,e.onStateChange=this.onStateChange,e}};function Tb(){he(231)}var rQ=1e3,nQ=class{constructor(e,t,o){this.destroyed=!1,this.portals=[],this.hasPendingPortalUpdate=!1,this.wrappingElement=t||"div",this.refresher=e,this.maxComponentCreationTimeMs=o||rQ}getPortals(){return this.portals}destroy(){this.destroyed=!0}destroyPortal(e){this.portals=this.portals.filter(t=>t!==e),this.batchUpdate()}getComponentWrappingElement(){return this.wrappingElement}mountReactPortal(e,t,o){this.portals=[...this.portals,e],this.waitForInstance(t,o),this.batchUpdate()}updateReactPortal(e,t){this.portals[this.portals.indexOf(e)]=t,this.batchUpdate()}batchUpdate(){this.hasPendingPortalUpdate||(setTimeout(()=>{this.destroyed||(this.refresher(),this.hasPendingPortalUpdate=!1)}),this.hasPendingPortalUpdate=!0)}waitForInstance(e,t,o=Date.now()){if(this.destroyed){t(null);return}if(e.rendered())t(e);else{if(Date.now()-o>=this.maxComponentCreationTimeMs&&!this.hasPendingPortalUpdate){iu(!0,()=>this.refresher()),e.rendered()&&t(e);return}window.setTimeout(()=>{this.waitForInstance(e,t,o)})}}},iQ=({ctrl:e})=>{const t=e.isAlive(),{context:o}=S.useContext(vo),[r,n]=S.useState(),[i,s]=S.useState(),a=S.useRef(),c=S.useRef(null),d=S.useRef(null),h=S.useRef(null),f=S.useRef(),g=S.useRef();t&&!g.current&&(g.current=new jc(()=>c.current));const m=S.useCallback(k=>{if(c.current=k,!k||!e.isAlive()||o.isDestroyed()){a.current=o.destroyBean(a.current);return}a.current=o.createBean(new il);const C=()=>{const E=e.getSelectAllGui();E&&(d.current?.insertAdjacentElement("afterend",E),a.current.addDestroyFunc(()=>E.remove()))},F={setWidth:E=>{c.current&&(c.current.style.width=E)},toggleCss:(E,_)=>g.current.toggleCss(E,_),setUserStyles:E=>s(E),setAriaSort:E=>{c.current&&(E?E8(c.current,E):_8(c.current))},setUserCompDetails:E=>n(E),getUserCompInstance:()=>f.current||void 0,refreshSelectAllGui:C,removeSelectAllGui:()=>e.getSelectAllGui()?.remove()};e.setComp(F,k,d.current,h.current,a.current),C()},[]);S.useLayoutEffect(()=>nu(r,o,h.current,f),[r]),S.useEffect(()=>{e.setDragSource(c.current)},[r]);const b=S.useMemo(()=>!!(r?.componentFromFramework&&xl(r.componentClass)),[r]),w=r?.componentFromFramework,y=r?.componentClass;return J.createElement("div",{ref:m,style:i,className:"ag-header-cell",role:"columnheader"},J.createElement("div",{ref:d,className:"ag-header-cell-resize",role:"presentation"}),J.createElement("div",{ref:h,className:"ag-header-cell-comp-wrapper",role:"presentation"},w?b?J.createElement(y,{...r.params}):J.createElement(y,{...r.params,ref:f}):null))},sQ=S.memo(iQ),aQ=class{constructor(e,t){this.floatingFilterParams=e,this.refreshProps=t}getProps(){return this.floatingFilterParams}refresh(e){this.floatingFilterParams=e,this.refreshProps()}setMethods(e){pf(this.getOptionalMethods(),e,this)}getOptionalMethods(){return["afterGuiAttached"]}},lQ=({ctrl:e})=>{const{context:t,gos:o}=S.useContext(vo),[r,n]=S.useState(),[i,s]=S.useState(()=>new Cr("ag-header-cell","ag-floating-filter")),[a,c]=S.useState(()=>new Cr),[d,h]=S.useState(()=>new Cr("ag-floating-filter-button","ag-hidden")),[f,g]=S.useState("false"),[m,b]=S.useState(),[,w]=S.useState(1),y=S.useRef(),k=S.useRef(null),C=S.useRef(null),F=S.useRef(null),E=S.useRef(null),_=S.useRef(),P=S.useRef(),D=j=>{j!=null&&_.current&&_.current(j)},M=S.useCallback(j=>{if(k.current=j,!j||!e.isAlive()||t.isDestroyed()){y.current=t.destroyBean(y.current);return}y.current=t.createBean(new il),P.current=new Ye(H=>{_.current=H});const z={toggleCss:(H,te)=>s(re=>re.setClass(H,te)),setUserStyles:H=>n(H),addOrRemoveBodyCssClass:(H,te)=>c(re=>re.setClass(H,te)),setButtonWrapperDisplayed:H=>{h(te=>te.setClass("ag-hidden",!H)),g(H?"false":"true")},setWidth:H=>{k.current&&(k.current.style.width=H)},setCompDetails:H=>b(H),getFloatingFilterComp:()=>P.current?P.current:null,setMenuIcon:H=>E.current?.appendChild(H)};e.setComp(z,j,E.current,C.current,y.current)},[]);S.useLayoutEffect(()=>nu(m,t,C.current,D),[m]);const A=S.useMemo(()=>i.toString(),[i]),O=S.useMemo(()=>a.toString(),[a]),K=S.useMemo(()=>d.toString(),[d]),W=S.useMemo(()=>!!(m&&m.componentFromFramework&&xl(m.componentClass)),[m]),L=S.useMemo(()=>o.get("reactiveCustomComponents"),[]),V=S.useMemo(()=>o.get("enableFilterHandlers"),[]),[U,$]=S.useState();S.useEffect(()=>{if(m?.componentFromFramework)if(L){const j=V?aQ:ZY,z=new j(m.params,()=>w(H=>H+1));D(z),$(z)}else Tb()},[m]);const Y=U?.getProps(),I=m?.componentFromFramework,X=m?.componentClass;return J.createElement("div",{ref:M,style:r,className:A,role:"gridcell"},J.createElement("div",{ref:C,className:O,role:"presentation"},I?L?Y&&J.createElement(Db.Provider,{value:{setMethods:j=>U.setMethods(j)}},J.createElement(X,{...Y})):J.createElement(X,{...m.params,ref:W?()=>{}:D}):null),J.createElement("div",{ref:F,"aria-hidden":f,className:K,role:"presentation"},J.createElement("button",{ref:E,type:"button",className:"ag-button ag-floating-filter-button-button",tabIndex:-1})))},cQ=S.memo(lQ),uQ=({ctrl:e})=>{const{context:t}=S.useContext(vo),[o,r]=S.useState(),[n,i]=S.useState(()=>new Cr),[s,a]=S.useState(()=>new Cr),[c,d]=S.useState("false"),[h,f]=S.useState(),[g,m]=S.useState(),b=S.useRef(),w=S.useRef(null),y=S.useRef(null),k=S.useRef(null),C=S.useRef(),F=S.useCallback(A=>{if(w.current=A,!A||!e.isAlive()||t.isDestroyed()){b.current=t.destroyBean(b.current);return}b.current=t.createBean(new il);const O={setWidth:K=>{w.current&&(w.current.style.width=K)},toggleCss:(K,W)=>i(L=>L.setClass(K,W)),setUserStyles:K=>r(K),setHeaderWrapperHidden:K=>{const W=k.current;W&&(K?W.style.setProperty("display","none"):W.style.removeProperty("display"))},setHeaderWrapperMaxHeight:K=>{const W=k.current;W&&(K!=null?W.style.setProperty("max-height",`${K}px`):W.style.removeProperty("max-height"),W.classList.toggle("ag-header-cell-comp-wrapper-limited-height",K!=null))},setUserCompDetails:K=>m(K),setResizableDisplayed:K=>{a(W=>W.setClass("ag-hidden",!K)),d(K?"false":"true")},setAriaExpanded:K=>f(K),getUserCompInstance:()=>C.current||void 0};e.setComp(O,A,y.current,k.current,b.current)},[]);S.useLayoutEffect(()=>nu(g,t,k.current),[g]),S.useEffect(()=>{w.current&&e.setDragSource(w.current)},[g]);const E=S.useMemo(()=>!!(g?.componentFromFramework&&xl(g.componentClass)),[g]),_=S.useMemo(()=>"ag-header-group-cell "+n.toString(),[n]),P=S.useMemo(()=>"ag-header-cell-resize "+s.toString(),[s]),D=g?.componentFromFramework,M=g?.componentClass;return J.createElement("div",{ref:F,style:o,className:_,role:"columnheader","aria-expanded":h},J.createElement("div",{ref:k,className:"ag-header-cell-comp-wrapper",role:"presentation"},D?E?J.createElement(M,{...g.params}):J.createElement(M,{...g.params,ref:C}):null),J.createElement("div",{ref:y,"aria-hidden":c,className:P}))},dQ=S.memo(uQ),hQ=({ctrl:e})=>{const{gos:t,context:o}=S.useContext(vo),{topOffset:r,rowHeight:n}=S.useMemo(()=>e.getTopAndHeight(),[]),i=S.useMemo(()=>t.get("tabIndex"),[]),[s,a]=S.useState(()=>e.getAriaRowIndex()),c=e.headerRowClass,[d,h]=S.useState(()=>n+"px"),[f,g]=S.useState(()=>r+"px"),m=S.useRef(null),[b,w]=S.useState(()=>e.getUpdatedHeaderCtrls()),y=S.useRef(),k=S.useRef(null),C=S.useCallback(_=>{if(k.current=_,!_||!e.isAlive()||o.isDestroyed()){y.current=o.destroyBean(y.current);return}y.current=o.createBean(new il);const P={setHeight:D=>h(D),setTop:D=>g(D),setHeaderCtrls:(D,M,A)=>{const O=m.current,K=ff(O,D,M);K!==O&&(m.current=K,iu(A,()=>w(K)))},setWidth:D=>{k.current&&(k.current.style.width=D)},setRowIndex:D=>{a(D)}};e.setComp(P,y.current,!1)},[]),F=S.useMemo(()=>({height:d,top:f}),[d,f]),E=S.useCallback(_=>{switch(e.type){case"group":return J.createElement(dQ,{ctrl:_,key:_.instanceId});case"filter":return J.createElement(cQ,{ctrl:_,key:_.instanceId});default:return J.createElement(sQ,{ctrl:_,key:_.instanceId})}},[]);return J.createElement("div",{ref:C,className:c,role:"row",style:F,tabIndex:i,"aria-rowindex":s},b.map(E))},fQ=S.memo(hQ),pQ=({pinned:e})=>{const[t,o]=S.useState(!0),[r,n]=S.useState([]),{context:i}=S.useContext(vo),s=S.useRef(null),a=S.useRef(null),c=S.useRef(),d=e==="left",h=e==="right",f=!d&&!h,g=S.useCallback(w=>{if(s.current=w,!w||i.isDestroyed()){c.current=i.destroyBean(c.current);return}c.current=i.createBean(new hW(e));const y={setDisplayed:o,setCtrls:k=>n(k),setCenterWidth:k=>{a.current&&(a.current.style.width=k)},setViewportScrollLeft:k=>{s.current&&(s.current.scrollLeft=k)},setPinnedContainerWidth:k=>{s.current&&(s.current.style.width=k,s.current.style.minWidth=k,s.current.style.maxWidth=k)}};c.current.setComp(y,s.current)},[]),m=t?"":"ag-hidden",b=()=>r.map(w=>J.createElement(fQ,{ctrl:w,key:w.instanceId}));return d?J.createElement("div",{ref:g,className:"ag-pinned-left-header "+m,"aria-hidden":!t,role:"rowgroup"},b()):h?J.createElement("div",{ref:g,className:"ag-pinned-right-header "+m,"aria-hidden":!t,role:"rowgroup"},b()):f?J.createElement("div",{ref:g,className:"ag-header-viewport "+m,role:"rowgroup",tabIndex:-1},J.createElement("div",{ref:a,className:"ag-header-container",role:"presentation"},b())):null},Mb=S.memo(pQ),gQ=()=>{const[e,t]=S.useState(()=>new Cr),[o,r]=S.useState(),{context:n}=S.useContext(vo),i=S.useRef(null),s=S.useRef(),a=S.useCallback(h=>{if(i.current=h,!h||n.isDestroyed()){s.current=n.destroyBean(s.current);return}s.current=n.createBean(new lW);const f={toggleCss:(g,m)=>t(b=>b.setClass(g,m)),setHeightAndMinHeight:g=>r(g)};s.current.setComp(f,h,h)},[]),c=S.useMemo(()=>"ag-header "+e.toString(),[e]),d=S.useMemo(()=>({height:o,minHeight:o}),[o]);return J.createElement("div",{ref:a,className:c,style:d,role:"presentation"},J.createElement(Mb,{pinned:"left"}),J.createElement(Mb,{pinned:null}),J.createElement(Mb,{pinned:"right"}))},mQ=S.memo(gQ),vQ=(e,t)=>{S.useEffect(()=>{const o=t.current;if(o){const r=o.parentElement;if(r){const n=document.createComment(e);return r.insertBefore(n,o),()=>{n.remove()}}}},[e])},Zs=vQ,bQ=class{constructor(e,t){this.cellEditorParams=e,this.refreshProps=t,this.instanceCreated=new Ye(o=>{this.resolveInstanceCreated=o}),this.onValueChange=o=>this.updateValue(o),this.value=e.value}getProps(){return{...this.cellEditorParams,initialValue:this.cellEditorParams.value,value:this.value,onValueChange:this.onValueChange}}getValue(){return this.value}refresh(e){this.cellEditorParams=e,this.refreshProps()}setMethods(e){pf(this.getOptionalMethods(),e,this)}getInstance(){return this.instanceCreated.then(()=>this.componentInstance)}setRef(e){this.componentInstance=e,this.resolveInstanceCreated?.(),this.resolveInstanceCreated=void 0}getOptionalMethods(){return["isCancelBeforeStart","isCancelAfterEnd","focusIn","focusOut","afterGuiAttached","getValidationErrors","getValidationElement"]}updateValue(e){this.value=e,this.refreshProps()}},wQ=e=>{const t=S.useRef(e),o=S.useRef(),r=S.useRef(!1),n=S.useRef(!1),[,i]=S.useState(0);r.current&&(n.current=!0),S.useEffect(()=>(r.current||(o.current=t.current(),r.current=!0),i(s=>s+1),()=>{n.current&&o.current?.()}),[])},CQ=e=>{const[t,o]=S.useState(),r=S.useContext(vo),{context:n,popupSvc:i,gos:s,editSvc:a}=r,{editDetails:c,cellCtrl:d,eParentCell:h}=e;return wQ(()=>{const{compDetails:f}=c,g=s.get("stopEditingWhenCellsLoseFocus");let m,b;if(!n.isDestroyed()){b=n.createBean(a.createPopupEditorWrapper(f.params));const w=b.getGui();if(e.jsChildComp){const _=e.jsChildComp.getGui();_&&w.appendChild(_)}const{column:y,rowNode:k}=d,C={column:y,rowNode:k,type:"popupCellEditor",eventSource:h,ePopup:w,position:c.popupPosition,keepWithinBounds:!0},F=i?.positionPopupByComponent.bind(i,C),E=i?.addPopup({modal:g,eChild:w,closeOnEsc:!0,closedCallback:()=>{d.onPopupEditorClosed()},anchorToElement:h,positionCallback:F,ariaOwns:h});m=E?E.hideFunc:void 0,o(b),e.jsChildComp?.afterGuiAttached?.()}return()=>{m?.(),n.destroyBean(b)}}),S.useLayoutEffect(()=>()=>{d.isCellFocused()&&t?.getGui().contains(Mt(r))&&h.focus({preventScroll:!0})},[t]),t&&e.wrappedContent?gs.createPortal(e.wrappedContent,t.getGui()):null},u_=S.memo(CQ),yQ=(e,t,o)=>{const{compProxy:r}=e;o(r);const n=r.getProps(),i=xl(t);return J.createElement(Db.Provider,{value:{setMethods:s=>r.setMethods(s)}},i?J.createElement(t,{...n}):J.createElement(t,{...n,ref:s=>r.setRef(s)}))},d_=(e,t,o)=>e.compProxy?yQ(e,t,o):J.createElement(t,{...e.compDetails.params,ref:o}),SQ=(e,t,o,r,n)=>{const i=e.compDetails,s=i.componentClass,a=i.componentFromFramework&&!e.popup,c=i.componentFromFramework&&e.popup,d=!i.componentFromFramework&&e.popup;return a?d_(e,s,t):c?J.createElement(u_,{editDetails:e,cellCtrl:r,eParentCell:o,wrappedContent:d_(e,s,t)}):d&&n?J.createElement(u_,{editDetails:e,cellCtrl:r,eParentCell:o,jsChildComp:n}):null},xQ=(e,t,o,r,n,i,s=!1)=>{const{context:a}=S.useContext(vo),c=S.useCallback(()=>{const d=n.current;if(!d)return;const h=d.getGui();h&&h.parentElement&&h.remove(),a.destroyBean(d),n.current=void 0},[]);S.useEffect(()=>{const d=e!=null&&!s,h=e?.compDetails&&!e.compDetails.componentFromFramework,f=t&&o==null;if(!(d&&h&&!f)){c();return}const m=e.compDetails;if(n.current){const w=n.current,k=w.refresh!=null&&e.force==!1?w.refresh(m.params):!1;if(k===!0||k===void 0)return;c()}m.newAgStackInstance().then(w=>{if(!w)return;const y=w.getGui();if(!y)return;(t?o:i.current).appendChild(y),n.current=w})},[e,t,r,s]),S.useEffect(()=>c,[])},h_=xQ,kQ=({cellCtrl:e,parent:t})=>{const o=S.useRef(),r=S.useMemo(()=>{const{loadingComp:n}=e.getDeferLoadingCellRenderer();return n?{value:void 0,compDetails:n,force:!1}:void 0},[e]);if(h_(r,!1,void 0,1,o,t),r?.compDetails?.componentFromFramework){const n=r.compDetails.componentClass;return J.createElement(n,{...r.compDetails.params})}return J.createElement(J.Fragment,null)},FQ=({cellCtrl:e,printLayout:t,editingCell:o})=>{const r=S.useContext(vo),{context:n}=r,{column:{colIdSanitised:i},instanceId:s}=e,a=S.useRef(),[c,d]=S.useState(()=>e.isCellRenderer()?void 0:{compDetails:void 0,value:e.getValueToDisplay(),force:!1}),[h,f]=S.useState(),[g,m]=S.useState(1),[b,w]=S.useState(),[y,k]=S.useState(!1),[C,F]=S.useState(!1),[E,_]=S.useState(!1),[P,D]=S.useState(),M=S.useMemo(()=>e.isForceWrapper(),[e]),A=S.useMemo(()=>e.getCellAriaRole(),[e]),O=S.useRef(null),K=S.useRef(null),W=S.useRef(null),L=S.useRef(),V=S.useRef(),U=S.useRef(),$=S.useRef([]),Y=S.useRef(),I=S.useRef(),[X,j]=S.useState(0),z=S.useCallback(Ne=>{I.current=Ne,j(De=>De+1)},[]),H=c!=null&&(y||E||C)&&(h==null||!!h.popup),te=M||H,re=S.useMemo(()=>e.getCellValueClass(),[e]),be=S.useCallback(Ne=>{if(V.current=Ne,Ne){const De=Ne.isCancelBeforeStart&&Ne.isCancelBeforeStart();setTimeout(()=>{De?(e.stopEditing(!0),e.focusCell(!0)):(e.cellEditorAttached(),e.enableEditorTooltipFeature(Ne))})}},[e]),me=S.useRef();me.current||(me.current=new jc(()=>O.current));const He=!!h&&!h.popup;h_(c,te,I.current,X,L,O,He);const we=S.useRef();S.useLayoutEffect(()=>{const Ne=we.current,De=c;if(we.current=c,Ne==null||Ne.compDetails==null||De==null||De.compDetails==null)return;Y.current?.refreshVisibility();const St=Ne.compDetails,dt=De.compDetails;if(St.componentClass!=dt.componentClass||W.current?.refresh==null)return;W.current.refresh(dt.params)!=!0&&m(pt=>pt+1)},[c]),S.useLayoutEffect(()=>{if(!(h&&!h.compDetails.componentFromFramework)||n.isDestroyed())return;const De=h.compDetails,St=h.popup===!0,dt=De.newAgStackInstance();return dt.then(Pe=>{if(!Pe)return;const pt=Pe.getGui();be(Pe),St||((M?U:O).current?.appendChild(pt),Pe.afterGuiAttached?.()),D(Pe)}),()=>{dt.then(Pe=>{const pt=Pe.getGui();e.disableEditorTooltipFeature(),n.destroyBean(Pe),be(void 0),D(void 0),pt?.remove()})}},[h]);const Ce=S.useCallback(Ne=>{if(U.current=Ne,!Ne||n.isDestroyed()||!e.isAlive()){const dt=$.current;$.current=[];for(const Pe of dt)Pe();return}let De;const St=dt=>{dt&&(Ne.insertAdjacentElement("afterbegin",dt.getGui()),$.current.push(()=>{qa(dt.getGui()),n.destroyBean(dt),Y.current===De&&(Y.current=void 0)}))};y&&St(e.createSelectionCheckbox()),E&&St(e.createDndSource()),C&&(De=e.createRowDragComp(),Y.current=De,De&&(St(De),De.refreshVisibility()))},[e,n,E,C,y]),xe=S.useCallback(()=>{const Ne=!e.isCellSpanning()||K.current,De=O.current;if(!De||!Ne||!e||!e.isAlive()||n.isDestroyed()){a.current=n.destroyBean(a.current);return}a.current=n.createBean(new il);const St={toggleCss:(Pe,pt)=>me.current.toggleCss(Pe,pt),setUserStyles:Pe=>w(Pe),getFocusableElement:()=>O.current,setIncludeSelection:Pe=>k(Pe),setIncludeRowDrag:Pe=>F(Pe),setIncludeDndSource:Pe=>_(Pe),getCellEditor:()=>V.current??null,getCellRenderer:()=>W.current??L.current,getParentOfValue:()=>I.current??U.current??O.current,setRenderDetails:(Pe,pt,Kt)=>{const co=()=>{d(Rt=>Rt?.compDetails!==Pe||Rt?.value!==pt||Rt?.force!==Kt?{value:pt,compDetails:Pe,force:Kt}:Rt)};if(Pe?.params?.deferRender&&!e.rowNode.group){const{loadingComp:Rt,onReady:er}=e.getDeferLoadingCellRenderer();if(Rt){d({value:void 0,compDetails:Rt,force:!1}),er.then(()=>zY(co));return}}co()},setEditDetails:(Pe,pt,Kt,co)=>{if(Pe){let Rt;Pe.componentFromFramework&&(co?Rt=new bQ(Pe.params,()=>m(er=>er+1)):Tb()),f({compDetails:Pe,popup:pt,popupPosition:Kt,compProxy:Rt}),pt||d(void 0)}else e.hasBrowserFocus()&&St.getFocusableElement().focus({preventScroll:!0}),V.current=void 0,f(void 0)},refreshEditStyles:(Pe,pt)=>{if(!O.current)return;const{current:Kt}=me;Kt.toggleCss("ag-cell-value",!te),Kt.toggleCss("ag-cell-inline-editing",!!Pe&&!pt),Kt.toggleCss("ag-cell-popup-editing",!!Pe&&!!pt),Kt.toggleCss("ag-cell-not-inline-editing",!Pe||!!pt)}},dt=U.current||void 0;e.setComp(St,De,K.current??void 0,dt,t,o,a.current)},[]),$e=S.useCallback(Ne=>{O.current=Ne,xe()},[]),Ht=S.useCallback(Ne=>{K.current=Ne,xe()},[]),Vt=S.useMemo(()=>!!(c?.compDetails?.componentFromFramework&&xl(c.compDetails.componentClass)),[c]);S.useLayoutEffect(()=>{if(!O.current)return;const{current:Ne}=me;Ne.toggleCss("ag-cell-value",!te),Ne.toggleCss("ag-cell-inline-editing",!!h&&!h.popup),Ne.toggleCss("ag-cell-popup-editing",!!h&&!!h.popup),Ne.toggleCss("ag-cell-not-inline-editing",!h||!!h.popup)});const bo=()=>{const{compDetails:Ne,value:De}=c;if(!Ne)return De?.toString?.()??De;if(Ne.componentFromFramework){const St=Ne.componentClass;return J.createElement(S.Suspense,{fallback:J.createElement(kQ,{cellCtrl:e,parent:O})},Vt?J.createElement(St,{...Ne.params,key:g}):J.createElement(St,{...Ne.params,key:g,ref:W}))}},Jo=()=>{const Ne=()=>c==null?null:te?J.createElement("span",{role:"presentation",id:`cell-${s}`,className:re,ref:z},bo()):bo(),De=St=>SQ(St,be,O.current,e,P);return h!=null?h.popup?J.createElement(J.Fragment,null,Ne(),De(h)):De(h):Ne()},Dn=()=>J.createElement("div",{ref:$e,style:b,role:A,"col-id":i},te?J.createElement("div",{className:"ag-cell-wrapper",role:"presentation",ref:Ce},Jo()):Jo());return e.isCellSpanning()?J.createElement("div",{ref:Ht,className:"ag-spanned-cell-wrapper",role:"presentation"},Dn()):Dn()},RQ=S.memo(FQ),EQ=({rowCtrl:e,containerType:t})=>{const{context:o,gos:r,editSvc:n}=S.useContext(vo),i=S.useContext(o_)==="default",s=S.useRef(),a=S.useRef(e.getDomOrder()),c=e.isFullWidth(),d=e.rowNode.displayed,[h,f]=S.useState(()=>d?e.rowNode.getRowIndexString():null),[g,m]=S.useState(()=>e.rowId),[b,w]=S.useState(()=>e.businessKey),[y,k]=S.useState(()=>e.rowStyles),C=S.useRef(null),[F,E]=S.useState(()=>null),[_,P]=S.useState(),[D,M]=S.useState(()=>d?e.getInitialRowTop(t):void 0),[A,O]=S.useState(()=>d?e.getInitialTransform(t):void 0),K=S.useRef(null),W=S.useRef(),L=S.useRef(),V=S.useRef(!1),[U,$]=S.useState(0);S.useEffect(()=>{if(V.current||!_||U>10)return;const xe=K.current?.firstChild;xe?(e.setupDetailRowAutoHeight(xe),V.current=!0):$($e=>$e+1)},[_,U]);const Y=S.useRef();Y.current||(Y.current=new jc(()=>K.current));const I=S.useRef(()=>{}),X=S.useCallback(xe=>(I.current=xe,()=>{I.current=()=>{}}),[]),j=HY(X,()=>C.current,[]),z=i?j:F,H=S.useCallback(xe=>{if(K.current=xe,s.current=xe?o.createBean(new il):o.destroyBean(s.current),!xe){e.unsetComp(t);return}if(!e.isAlive()||o.isDestroyed())return;const $e={setTop:M,setTransform:O,toggleCss:(Ht,Vt)=>Y.current.toggleCss(Ht,Vt),setDomOrder:Ht=>a.current=Ht,setRowIndex:f,setRowId:m,setRowBusinessKey:w,setUserStyles:k,setCellCtrls:(Ht,Vt)=>{const bo=C.current,Jo=ff(bo,Ht,a.current);Jo!==bo&&(C.current=Jo,i?I.current():iu(Vt,()=>E(Jo)))},showFullWidth:Ht=>{L.current=Ht.params,P(Ht)},getFullWidthCellRenderer:()=>W.current,getFullWidthCellRendererParams:()=>L.current,refreshFullWidth:Ht=>{const Vt=Ht();return L.current=Vt,He.current?(P(bo=>({...bo,params:Vt})),!0):!W.current||!W.current.refresh?!1:W.current.refresh(Vt)}};e.setComp($e,xe,t,s.current)},[]);S.useLayoutEffect(()=>nu(_,o,K.current,W),[_]);const te=S.useMemo(()=>{const xe={top:D,transform:A};return Object.assign(xe,y),xe},[D,A,y]),re=c&&_?.componentFromFramework,be=!c&&z!=null,me=S.useMemo(()=>!!(_?.componentFromFramework&&xl(_.componentClass)),[_]),He=S.useRef(!1);S.useEffect(()=>{He.current=me&&!!_&&!!r.get("reactiveCustomComponents")},[me,_]);const we=()=>z?.map(xe=>J.createElement(RQ,{cellCtrl:xe,editingCell:n?.isEditing(xe,{withOpenEditor:!0})??!1,printLayout:e.printLayout,key:xe.instanceId})),Ce=()=>{const xe=_.componentClass;return me?J.createElement(xe,{..._.params}):J.createElement(xe,{..._.params,ref:W})};return J.createElement("div",{ref:H,role:"row",style:te,"row-index":h,"row-id":g,"row-business-key":b},be?we():re?Ce():null)},f_=S.memo(EQ),_Q=({name:e})=>{const{context:t,gos:o}=S.useContext(vo),r=S.useMemo(()=>Kc(e),[e]),n=S.useRef(null),i=S.useRef(null),s=S.useRef(null),a=S.useRef([]),c=S.useRef([]),[d,h]=S.useState(()=>[]),f=!!o.get("enableCellSpan")&&!!r.getSpannedRowCtrls,g=S.useRef([]),m=S.useRef([]),[b,w]=S.useState(()=>[]),y=S.useRef(!1),k=S.useRef(),C=S.useMemo(()=>wr("ag-viewport",FR(e)),[e]),F=S.useMemo(()=>wr(Zh(e)),[e]),E=S.useMemo(()=>wr("ag-spanning-container",_j(e)),[e]),_=r.type==="center"||f,P=_?n:i;Zs(" AG Row Container "+e+" ",P);const D=S.useCallback(()=>{const U=!_||n.current!=null,$=i.current!=null,Y=!f||s.current!=null;return U&&$&&Y},[]),M=S.useCallback(()=>n.current==null&&i.current==null&&s.current==null,[]),A=S.useCallback(()=>{if(M()&&(k.current=t.destroyBean(k.current)),!t.isDestroyed()&&D()){const U=I=>{const X=ff(c.current,a.current,y.current);X!==c.current&&(c.current=X,iu(I,()=>h(X)))},$=I=>{const X=ff(m.current,g.current,y.current);X!==m.current&&(m.current=X,iu(I,()=>w(X)))},Y={setHorizontalScroll:I=>{n.current&&(n.current.scrollLeft=I)},setViewportHeight:I=>{n.current&&(n.current.style.height=I)},setRowCtrls:({rowCtrls:I,useFlushSync:X})=>{const j=!!X&&a.current.length>0&&I.length>0;a.current=I,U(j)},setSpannedRowCtrls:(I,X)=>{const j=!!X&&g.current.length>0&&I.length>0;g.current=I,$(j)},setDomOrder:I=>{y.current!=I&&(y.current=I,U(!1))},setContainerWidth:I=>{i.current&&(i.current.style.width=I)},setOffsetTop:I=>{i.current&&(i.current.style.transform=`translateY(${I})`)}};k.current=t.createBean(new Lj(e)),k.current.setComp(Y,i.current,s.current??void 0,n.current)}},[D,M]),O=S.useCallback(U=>{i.current=U,A()},[A]),K=S.useCallback(U=>{s.current=U,A()},[A]),W=S.useCallback(U=>{n.current=U,A()},[A]),L=()=>J.createElement("div",{className:F,ref:O,role:_?"presentation":"rowgroup"},d.map(U=>J.createElement(f_,{rowCtrl:U,containerType:r.type,key:U.instanceId})));if(!_)return L();const V=()=>J.createElement("div",{className:E,ref:K,role:"presentation"},b.map(U=>J.createElement(f_,{rowCtrl:U,containerType:r.type,key:U.instanceId})));return J.createElement("div",{className:C,ref:W,role:"rowgroup"},L(),f?V():null)},PQ=S.memo(_Q),DQ=()=>{const e=S.useContext(vo),{context:t,overlays:o}=e,[r,n]=S.useState(""),[i,s]=S.useState(0),[a,c]=S.useState(0),[d,h]=S.useState("0px"),[f,g]=S.useState("0px"),[m,b]=S.useState("100%"),[w,y]=S.useState("0px"),[k,C]=S.useState("0px"),[F,E]=S.useState("100%"),[_,P]=S.useState(!0),[D,M]=S.useState(!0),[A,O]=S.useState(null),[K,W]=S.useState(""),[L,V]=S.useState(null),[U,$]=S.useState("ag-layout-normal"),Y=S.useRef();Y.current||(Y.current=new jc(()=>I.current));const I=S.useRef(null),X=S.useRef(null),j=S.useRef(null),z=S.useRef(null),H=S.useRef(null),te=S.useRef(null),re=S.useRef(null),be=S.useRef([]),me=S.useRef([]);Zs(" AG Grid Body ",I),Zs(" AG Pinned Top ",X),Zs(" AG Sticky Top ",j),Zs(" AG Middle ",te),Zs(" AG Pinned Bottom ",re);const He=S.useCallback(Pe=>{if(I.current=Pe,!Pe||t.isDestroyed()){be.current=t.destroyBeans(be.current);for(const st of me.current)st();me.current=[];return}const pt=(st,At)=>{st.appendChild(At),me.current.push(()=>At.remove())},Kt=st=>{const At=t.createBean(new st);return be.current.push(At),At},co=(st,At,ni)=>{pt(st,document.createComment(ni)),pt(st,Kt(At).getGui())};co(Pe,qj," AG Fake Horizontal Scroll ");const Rt=o?.getOverlayWrapperCompClass();Rt&&co(Pe,Rt," AG Overlay Wrapper "),H.current&&co(H.current,$j," AG Fake Vertical Scroll ");const er={setRowAnimationCssOnBodyViewport:n,setColumnCount:st=>{I.current&&F8(I.current,st)},setRowCount:st=>{I.current&&x8(I.current,st)},setTopHeight:s,setBottomHeight:c,setStickyTopHeight:h,setStickyTopTop:g,setStickyTopWidth:b,setTopInvisible:P,setBottomInvisible:M,setColumnMovingCss:(st,At)=>Y.current.toggleCss(st,At),updateLayoutClasses:$,setAlwaysVerticalScrollClass:O,setPinnedTopBottomOverflowY:W,setCellSelectableCss:(st,At)=>V(At?st:null),setBodyViewportWidth:st=>{te.current&&(te.current.style.width=st)},registerBodyViewportResizeListener:st=>{if(te.current){const At=Zn(e,te.current,st);me.current.push(()=>At())}},setStickyBottomHeight:y,setStickyBottomBottom:C,setStickyBottomWidth:E,setGridRootRole:st=>Pe.setAttribute("role",st)},ri=t.createBean(new Gj);be.current.push(ri),ri.setComp(er,Pe,te.current,X.current,re.current,j.current,z.current)},[]),we=S.useMemo(()=>wr("ag-root","ag-unselectable",U),[U]),Ce=S.useMemo(()=>wr("ag-body-viewport",r,U,A,L),[r,U,A,L]),xe=S.useMemo(()=>wr("ag-body",U),[U]),$e=S.useMemo(()=>wr("ag-floating-top",_?"ag-invisible":null,L),[L,_]),Ht=S.useMemo(()=>wr("ag-sticky-top",L),[L]),Vt=S.useMemo(()=>wr("ag-sticky-bottom",w==="0px"?"ag-invisible":null,L),[L,w]),bo=S.useMemo(()=>wr("ag-floating-bottom",D?"ag-invisible":null,L),[L,D]),Jo=S.useMemo(()=>({height:i,minHeight:i,overflowY:K}),[i,K]),Dn=S.useMemo(()=>({height:d,top:f,width:m}),[d,f,m]),Ne=S.useMemo(()=>({height:w,bottom:k,width:F}),[w,k,F]),De=S.useMemo(()=>({height:a,minHeight:a,overflowY:K}),[a,K]),St=Pe=>J.createElement(PQ,{name:Pe,key:`${Pe}-container`}),dt=({section:Pe,children:pt,className:Kt,style:co})=>J.createElement("div",{ref:Pe,className:Kt,role:"presentation",style:co},pt.map(St));return J.createElement("div",{ref:He,className:we},J.createElement(mQ,null),dt({section:X,className:$e,style:Jo,children:["topLeft","topCenter","topRight","topFullWidth"]}),J.createElement("div",{className:xe,ref:H,role:"presentation"},dt({section:te,className:Ce,children:["left","center","right","fullWidth"]})),dt({section:j,className:Ht,style:Dn,children:["stickyTopLeft","stickyTopCenter","stickyTopRight","stickyTopFullWidth"]}),dt({section:z,className:Vt,style:Ne,children:["stickyBottomLeft","stickyBottomCenter","stickyBottomRight","stickyBottomFullWidth"]}),dt({section:re,className:bo,style:De,children:["bottomLeft","bottomCenter","bottomRight","bottomFullWidth"]}))},TQ=S.memo(DQ),MQ=(e,t)=>{const{children:o,eFocusableElement:r,onTabKeyDown:n,gridCtrl:i,forceFocusOutWhenTabGuardsAreEmpty:s,isEmpty:a}=e,{context:c}=S.useContext(vo),d=S.useRef(null),h=S.useRef(null),f=S.useRef(),g=k=>{const C=k==null?void 0:parseInt(k,10).toString();for(const F of[d,h])C===void 0?F.current?.removeAttribute("tabindex"):F.current?.setAttribute("tabindex",C)};S.useImperativeHandle(t,()=>({forceFocusOutOfContainer(k){f.current?.forceFocusOutOfContainer(k)}}));const m=S.useCallback(()=>{const k=d.current,C=h.current;if(!k&&!C||c.isDestroyed()){f.current=c.destroyBean(f.current);return}if(k&&C){const F={setTabIndex:g};f.current=c.createBean(new BW({comp:F,eTopGuard:k,eBottomGuard:C,eFocusableElement:r,onTabKeyDown:n,forceFocusOutWhenTabGuardsAreEmpty:s,focusInnerElement:E=>i.focusInnerElement(E),isEmpty:a}))}},[]),b=S.useCallback(k=>{d.current=k,m()},[m]),w=S.useCallback(k=>{h.current=k,m()},[m]),y=k=>{const C=k==="top"?Cv.TAB_GUARD_TOP:Cv.TAB_GUARD_BOTTOM;return J.createElement("div",{className:`${Cv.TAB_GUARD} ${C}`,role:"presentation",ref:k==="top"?b:w})};return J.createElement(J.Fragment,null,y("top"),o,y("bottom"))},AQ=S.forwardRef(MQ),IQ=S.memo(AQ),BQ=({context:e})=>{const[t,o]=S.useState(""),[r,n]=S.useState(""),[i,s]=S.useState(null),[a,c]=S.useState(null),[d,h]=S.useState(!1),[f,g]=S.useState(),m=S.useRef(),b=S.useRef(null),w=S.useRef(),[y,k]=S.useState(null),C=S.useRef(()=>{}),F=S.useRef(),E=S.useRef([]),_=S.useCallback(()=>{},[]);Zs(" AG Grid ",b);const P=S.useCallback(W=>{if(b.current=W,m.current=W?e.createBean(new jW):e.destroyBean(m.current),!W||e.isDestroyed())return;const L=m.current;C.current=L.focusInnerElement.bind(L);const V={destroyGridUi:()=>{},setRtlClass:o,forceFocusOutOfContainer:U=>{if(!U&&F.current?.isDisplayed()){F.current.forceFocusOutOfContainer(U);return}w.current?.forceFocusOutOfContainer(U)},updateLayoutClasses:n,getFocusableContainers:()=>{const U=[],$=b.current?.querySelector(".ag-root");$&&U.push({getGui:()=>$});for(const Y of E.current)Y.isDisplayed()&&U.push(Y);return U},setCursor:s,setUserSelect:c};L.setComp(V,W,W),h(!0)},[]);S.useEffect(()=>{const W=m.current,L=b.current;if(!f||!W||!y||!L||e.isDestroyed())return;const V=[],{watermarkSelector:U,paginationSelector:$,sideBarSelector:Y,statusBarSelector:I,gridHeaderDropZonesSelector:X}=W.getOptionalSelectors(),j=[];if(X){const H=e.createBean(new X.component),te=H.getGui();L.insertAdjacentElement("afterbegin",te),j.push(te),V.push(H)}if(Y){const H=e.createBean(new Y.component),te=H.getGui(),re=y.querySelector(".ag-tab-guard-bottom");re&&(re.insertAdjacentElement("beforebegin",te),j.push(te)),V.push(H),E.current.push(H)}const z=H=>{const te=e.createBean(new H),re=te.getGui();return L.insertAdjacentElement("beforeend",re),j.push(re),V.push(te),te};if(I&&z(I.component),$){const H=z($.component);F.current=H,E.current.push(H)}return U&&z(U.component),()=>{e.destroyBeans(V);for(const H of j)H.remove()}},[f,y,e]);const D=S.useMemo(()=>wr("ag-root-wrapper",t,r),[t,r]),M=S.useMemo(()=>wr("ag-root-wrapper-body","ag-focus-managed",r),[r]),A=S.useMemo(()=>({userSelect:a??"",WebkitUserSelect:a??"",cursor:i??""}),[a,i]),O=S.useCallback(W=>{w.current=W,g(W!==null)},[]),K=S.useCallback(()=>!m.current?.isFocusable(),[]);return J.createElement("div",{ref:P,className:D,style:A,role:"presentation"},J.createElement("div",{className:M,ref:k,role:"presentation"},d&&y&&!e.isDestroyed()&&J.createElement(vo.Provider,{value:e.getBeans()},J.createElement(IQ,{ref:O,eFocusableElement:y,onTabKeyDown:_,gridCtrl:m.current,forceFocusOutWhenTabGuardsAreEmpty:!0,isEmpty:K},J.createElement(TQ,null)))))},OQ=S.memo(BQ),NQ=class extends ue{postConstruct(){if(this.beans.colAutosize){const e=this.queueResizeOperationsForTick.bind(this);this.addManagedEventListeners({rowExpansionStateChanged:e,expandOrCollapseAll:e,cellValueChanged:e,rowNodeDataChanged:e,rowDataUpdated:e})}}queueResizeOperationsForTick(){const e=this.beans.colAutosize;e.shouldQueueResizeOperations=!0,setTimeout(()=>{e.processResizeOperations()},0)}areHeaderCellsRendered(){return this.beans.ctrlsSvc.getHeaderRowContainerCtrls().every(e=>e.getAllCtrls().every(t=>t.areCellsRendered()))}areCellsRendered(){return this.beans.rowRenderer.getAllRowCtrls().every(e=>e.isRowRendered()&&e.getAllCellCtrls().every(t=>!!t.eGui))}},p_={setGridApi:void 0,maxComponentCreationTimeMs:void 0,children:void 0},LQ={gridOptions:void 0,modules:void 0,containerStyle:void 0,className:void 0,passGridApi:void 0,componentWrappingElement:void 0,...p_},g_=new Set(Object.keys(LQ)),zQ=new Set(Object.keys(p_)),m_=e=>{const t=S.useRef(),o=S.useRef(null),r=S.useRef(null),n=S.useRef([]),i=S.useRef([]),s=S.useRef(e),a=S.useRef(),c=S.useRef(),d=S.useRef(!1),[h,f]=S.useState(void 0),[,g]=S.useState(0),m=S.useRef(),b=F=>{const E=o.current?.classList,_=(P="")=>P.trim().split(/\s+/g).filter(Boolean);if(m.current!==F){for(const P of _(m.current))E?.contains(P)&&E.remove(P);for(const P of _(F))E?.contains(P)||E?.add(P);m.current=F}};S.useLayoutEffect(()=>{b(e.className)},[e.className]);const w=S.useCallback(F=>{if(o.current=F,b(e.className),!F){for(const L of n.current)L();n.current.length=0;return}const E=e.modules||[];r.current||(r.current=new nQ(()=>g(L=>L+1),e.componentWrappingElement,e.maxComponentCreationTimeMs),n.current.push(()=>{r.current?.destroy(),r.current=null}));const _=x7(e.gridOptions,e,Object.keys(e).filter(L=>!g_.has(L))),P=()=>{if(d.current){const L=()=>a.current?.shouldQueueUpdates()?void 0:i.current.shift();let V=L();for(;V;)V(),V=L()}},D=new jQ(P);a.current=D;const M=new NQ,A={providedBeanInstances:{frameworkCompWrapper:new VQ(r.current,_),renderStatus:M},modules:E,frameworkOverrides:D,setThemeOnGridDiv:!0},O=L=>{f(L),L.createBean(M),n.current.push(()=>{L.destroy()}),L.getBean("ctrlsSvc").whenReady({addDestroyFunc:V=>{n.current.push(V)}},()=>{if(L.isDestroyed())return;const V=t.current;V&&e.passGridApi?.(V)})},K=L=>{L.getBean("ctrlsSvc").whenReady({addDestroyFunc:V=>{n.current.push(V)}},()=>{for(const V of i.current)V();i.current.length=0,d.current=!0})},W=new bX;_.gridId??(_.gridId=c.current),t.current=W.create(F,_,O,K,A),n.current.push(()=>{t.current=void 0}),t.current&&(c.current=t.current.getGridId())},[]),y=S.useMemo(()=>({height:"100%",...e.containerStyle||{}}),[e.containerStyle]),k=S.useCallback(F=>{d.current&&!a.current?.shouldQueueUpdates()?F():i.current.push(F)},[]);S.useEffect(()=>{const F=HQ(s.current,e);s.current=e,k(()=>{t.current&&k7(F,t.current)})},[e]);const C=!J.useSyncExternalStore||kh(e,"renderingMode")==="legacy"?"legacy":"default";return J.createElement("div",{style:y,ref:w},J.createElement(o_.Provider,{value:C},h&&!h.isDestroyed()?J.createElement(OQ,{key:h.instanceId,context:h}):null,r.current?.getPortals()??null))};function HQ(e,t){const o={};for(const r of Object.keys(t)){if(g_.has(r)){zQ.has(r)&&he(274,{prop:r});continue}const n=t[r];e[r]!==n&&(o[r]=n)}return o}var VQ=class extends wX{constructor(e,t){super(),this.parent=e,this.gridOptions=t}createWrapper(e,t){const o=this.gridOptions;if(kh(o,"reactiveCustomComponents")){const s=(a=>{switch(a){case"filter":return kh(o,"enableFilterHandlers")?XY:KY;case"floatingFilterComponent":return kh(o,"enableFilterHandlers")?QY:YY;case"dateComponent":return UY;case"dragAndDropImageComponent":return $Y;case"loadingOverlayComponent":case"noRowsOverlayComponent":case"activeOverlay":return qY;case"statusPanel":return tQ;case"toolPanel":return oQ;case"menuItem":return eQ;case"cellRenderer":return WY;case"innerHeaderComponent":return JY}})(t.name);if(s)return new s(e,this.parent,t)}else switch(t.name){case"filter":case"floatingFilterComponent":case"dateComponent":case"dragAndDropImageComponent":case"loadingOverlayComponent":case"noRowsOverlayComponent":case"activeOverlay":case"statusPanel":case"toolPanel":case"menuItem":case"cellRenderer":Tb();break}const n=!t.cellRenderer&&t.name!=="toolPanel";return new l_(e,this.parent,t,n)}},GQ=S.forwardRef((e,t)=>{const o=S.useContext(vo),{registry:r,context:n,gos:i,rowModel:s}=o,[a,c]=S.useState(()=>new Cr),[d,h]=S.useState(()=>new Cr),[f,g]=S.useState(),[m,b]=S.useState(),w=S.useRef(),y=S.useRef(null),k=S.useRef(),C=S.useMemo(()=>o7(e.api.getGridId(),f?.rowModelType??"clientSide"),[e]),F=S.useMemo(()=>a.toString()+" ag-details-row",[a]),E=S.useMemo(()=>d.toString()+" ag-details-grid",[d]);t&&S.useImperativeHandle(t,()=>({refresh(){return w.current?.refresh()??!1}})),e.template&&he(230);const _=S.useCallback(D=>{if(y.current=D,!D||n.isDestroyed()){w.current=n.destroyBean(w.current),k.current?.();return}const M={toggleCss:(O,K)=>c(W=>W.setClass(O,K)),toggleDetailGridCss:(O,K)=>h(W=>W.setClass(O,K)),setDetailGrid:O=>g(O),setRowData:O=>b(O),getGui:()=>y.current},A=r.createDynamicBean("detailCellRendererCtrl",!0);if(A&&(n.createBean(A),A.init(M,e),w.current=A,i.get("detailRowAutoHeight"))){const O=()=>{if(y.current==null)return;const K=y.current.clientHeight;K!=null&&K>0&&setTimeout(()=>{e.node.setRowHeight(K),(Fo(i)||Qm(i))&&s.onRowHeightChanged()},0)};k.current=Zn(o,D,O),O()}},[]),P=S.useCallback(D=>{w.current?.registerDetailWithMaster(D)},[]);return J.createElement("div",{className:F,ref:_},f&&J.createElement(m_,{className:E,...f,modules:C,rowData:m,passGridApi:P}))}),jQ=class extends VR{constructor(e){super("react"),this.processQueuedUpdates=e,this.queueUpdates=!1,this.renderingEngine="react",this.frameworkComponents={agGroupCellRenderer:s_,agGroupRowRenderer:s_,agDetailCellRenderer:GQ},this.wrapIncoming=(t,o)=>o==="ensureVisible"?LY(t):t()}frameworkComponent(e){return this.frameworkComponents[e]}isFrameworkComponent(e){if(!e)return!1;const t=e.prototype;return!(t&&"getGui"in t)}getLockOnRefresh(){this.queueUpdates=!0}releaseLockOnRefresh(){this.queueUpdates=!1,this.processQueuedUpdates()}shouldQueueUpdates(){return this.queueUpdates}runWhenReadyAsync(){return NY()}},Ab=class extends S.Component{constructor(){super(...arguments),this.apiListeners=[],this.setGridApi=e=>{this.api=e;for(const t of this.apiListeners)t(e)}}registerApiListener(e){this.apiListeners.push(e)}componentWillUnmount(){this.apiListeners.length=0}render(){return J.createElement(m_,{...this.props,passGridApi:this.setGridApi})}};Xm.registerModules([xb,_b,XE,KE,OE,t_,Eb]);const WQ=rf.withParams({headerHeight:"30px"}),qQ=Mo(e=>{const{connection:t,vm:o,utils:r,onLog:n}=e;function i(d){const h=d.api.getSelectedRows();if(h.length>0){const f=h.map(g=>({label:g[o.selectedTable?.primaryNameAttribute||""],value:g[o.selectedTable?.primaryIdAttribute||""]}));o.selectedRows=f}else o.selectedRows=[]}J.useEffect(()=>{r&&o.selectedView&&t&&(async()=>{o.isDataLoading=!0;try{await r.loadData()}catch(d){const h=d&&typeof d.message=="string"?d.message:String(d);n(`Error loading data: ${h}`,"error")}finally{o.isDataLoading=!1}})()},[t,r,o.selectedView]),J.useEffect(()=>{(async()=>{if(o.isDataLoading=!0,r&&o.fetchXml){o.tables.length===0&&await r.dvSvc.getTables().then(f=>{o.tables=f,n(`Loaded ${f.length} tables`,"success")}).catch(f=>{n(`Error loading tables: ${f.message}`,"error")});const d=o.fetchXml.match(/<entity\s+name=['"]([^'"]+)['"]/);if(d&&d[1]){const f=d[1],g=o.tables?.find(m=>m.logicalName===f);g&&(o.selectedTable=g,(!o.selectedTable.fields||o.selectedTable.fields.length===0)&&await r.dvSvc.getFields(o.selectedTable.logicalName).then(m=>{o.selectedTable.fields=m,n(`Loaded ${m.length} fields for table: ${f}`,"success")}).catch(m=>{n(`Error loading fields for table ${f}: ${m.message}`,"error")}))}const h=o.fetchXml.match(/<attribute\s+name=['"]([^'"]+)['"]/g);h?o.fetchFields=h.map(f=>{const g=f.match(/name=['"]([^'"]+)['"]/);return g?g[1]:""}).filter(f=>f!==""):o.fetchFields=[],await r.loadData().catch(async f=>{await window.toolboxAPI.utils.showNotification({title:"Error loading data",body:`Error loading data: ${f.message}`,type:"error"}),n(`Error loading data: ${f.message}`,"error")})}o.isDataLoading=!1})()},[o.fetchXml]);const s=J.useMemo(()=>!o.selectedView&&!o.fetchXml||!o.selectedTable||o.selectedTable.fields===void 0?[]:o.fetchXml?o.fetchFields.filter(d=>d!==o.selectedTable?.primaryIdAttribute).map(d=>{const h=o.selectedTable?.fields.find(f=>f.logicalName===d);if(h)return{headerName:h?.displayName||d,field:h?.dataName||d,flex:h?.logicalName===o.selectedTable?.primaryNameAttribute?2:1}}).filter(d=>d!==void 0)||[]:o.selectedView?.fieldNames?.filter(d=>d!==o.selectedTable?.primaryIdAttribute).map(d=>{const h=o.selectedTable?.fields.find(f=>f.logicalName===d);if(h)return{headerName:h?.displayName||d,field:h?.dataName||d,flex:h?.logicalName===o.selectedTable?.primaryNameAttribute?2:1}}).filter(d=>d!==void 0)||[],[o.selectedView,o.selectedTable,o.fetchXml,o.fetchFields,o.data]),a={sortable:!0,filter:!0,resizable:!0,flex:1,wrapText:!0,autoHeight:!0,width:100},c=J.useMemo(()=>({mode:"multiRow"}),[]);return B.jsx(B.Fragment,{children:o.data&&o.data.length>0?B.jsx("div",{style:{width:"100%",height:"94vh"},children:B.jsx(Ab,{suppressFieldDotNotation:!0,rowData:o.data,columnDefs:s,theme:WQ,domLayout:"normal",defaultColDef:a,rowSelection:c,onSelectionChanged:i})}):B.jsx("div",{style:{padding:"20px"},children:'No data to display. Please select "Fetch Data" to load data.'})})});function kl(){return kl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)({}).hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},kl.apply(null,arguments)}var gf=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function su(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var v_,b_={exports:{}};var Ib,w_,C_,UQ=(v_||(v_=1,Ib=b_,(function(){var e={}.hasOwnProperty;function t(){for(var n="",i=0;i<arguments.length;i++){var s=arguments[i];s&&(n=r(n,o(s)))}return n}function o(n){if(typeof n=="string"||typeof n=="number")return n;if(typeof n!="object")return"";if(Array.isArray(n))return t.apply(null,n);if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]"))return n.toString();var i="";for(var s in n)e.call(n,s)&&n[s]&&(i=r(i,s));return i}function r(n,i){return i?n?n+" "+i:n+i:n}Ib.exports?(t.default=t,Ib.exports=t):window.classNames=t})()),b_.exports),Bb=su(UQ),y_,S_,$Q=(C_||(C_=1,w_=function e(t,o){if(t===o)return!0;if(t&&o&&typeof t=="object"&&typeof o=="object"){if(t.constructor!==o.constructor)return!1;var r,n,i;if(Array.isArray(t)){if((r=t.length)!=o.length)return!1;for(n=r;n--!==0;)if(!e(t[n],o[n]))return!1;return!0}if(t instanceof Map&&o instanceof Map){if(t.size!==o.size)return!1;for(n of t.entries())if(!o.has(n[0]))return!1;for(n of t.entries())if(!e(n[1],o.get(n[0])))return!1;return!0}if(t instanceof Set&&o instanceof Set){if(t.size!==o.size)return!1;for(n of t.entries())if(!o.has(n[0]))return!1;return!0}if(ArrayBuffer.isView(t)&&ArrayBuffer.isView(o)){if((r=t.length)!=o.length)return!1;for(n=r;n--!==0;)if(t[n]!==o[n])return!1;return!0}if(t.constructor===RegExp)return t.source===o.source&&t.flags===o.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===o.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===o.toString();if((r=(i=Object.keys(t)).length)!==Object.keys(o).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(o,i[n]))return!1;for(n=r;n--!==0;){var s=i[n];if(!e(t[s],o[s]))return!1}return!0}return t!=t&&o!=o}),w_),KQ=su($Q),x_,k_,Ur=su((function(){if(S_)return y_;S_=1;var e=/^\s+|\s+$/g,t=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,r=/^0o[0-7]+$/i,n=parseInt,i=Object.prototype.toString;function s(c){var d=typeof c;return!!c&&(d=="object"||d=="function")}function a(c){if(typeof c=="number")return c;if((function(f){return typeof f=="symbol"||(function(g){return!!g&&typeof g=="object"})(f)&&i.call(f)=="[object Symbol]"})(c))return NaN;if(s(c)){var d=typeof c.valueOf=="function"?c.valueOf():c;c=s(d)?d+"":d}if(typeof c!="string")return c===0?c:+c;c=c.replace(e,"");var h=o.test(c);return h||r.test(c)?n(c.slice(2),h?2:8):t.test(c)?NaN:+c}return y_=function(c,d,h){return h===void 0&&(h=d,d=void 0),h!==void 0&&(h=(h=a(h))==h?h:0),d!==void 0&&(d=(d=a(d))==d?d:0),(function(f,g,m){return f==f&&(m!==void 0&&(f=f<=m?f:m),g!==void 0&&(f=f>=g?f:g)),f})(a(c),d,h)}})()),XQ=su((function(){if(k_)return x_;k_=1;var e=/^\s+|\s+$/g,t=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,r=/^0o[0-7]+$/i,n=parseInt,i=typeof gf=="object"&&gf&&gf.Object===Object&&gf,s=typeof self=="object"&&self&&self.Object===Object&&self,a=i||s||Function("return this")(),c=Object.prototype.toString,d=Math.max,h=Math.min,f=function(){return a.Date.now()};function g(b){var w=typeof b;return!!b&&(w=="object"||w=="function")}function m(b){if(typeof b=="number")return b;if((function(k){return typeof k=="symbol"||(function(C){return!!C&&typeof C=="object"})(k)&&c.call(k)=="[object Symbol]"})(b))return NaN;if(g(b)){var w=typeof b.valueOf=="function"?b.valueOf():b;b=g(w)?w+"":w}if(typeof b!="string")return b===0?b:+b;b=b.replace(e,"");var y=o.test(b);return y||r.test(b)?n(b.slice(2),y?2:8):t.test(b)?NaN:+b}return x_=function(b,w,y){var k,C,F,E,_,P,D=0,M=!1,A=!1,O=!0;if(typeof b!="function")throw new TypeError("Expected a function");function K($){var Y=k,I=C;return k=C=void 0,D=$,E=b.apply(I,Y)}function W($){var Y=$-P;return P===void 0||Y>=w||Y<0||A&&$-D>=F}function L(){var $=f();if(W($))return V($);_=setTimeout(L,(function(Y){var I=w-(Y-P);return A?h(I,F-(Y-D)):I})($))}function V($){return _=void 0,O&&k?K($):(k=C=void 0,E)}function U(){var $=f(),Y=W($);if(k=arguments,C=this,P=$,Y){if(_===void 0)return(function(I){return D=I,_=setTimeout(L,w),M?K(I):E})(P);if(A)return _=setTimeout(L,w),K(P)}return _===void 0&&(_=setTimeout(L,w)),E}return w=m(w)||0,g(y)&&(M=!!y.leading,F=(A="maxWait"in y)?d(m(y.maxWait)||0,w):F,O="trailing"in y?!!y.trailing:O),U.cancel=function(){_!==void 0&&clearTimeout(_),D=0,k=P=C=_=void 0},U.flush=function(){return _===void 0?E:V(f())},U}})()),F_={width:void 0,height:void 0};function ZQ(e){const{ref:t,box:o="content-box"}=e,[{width:r,height:n},i]=S.useState(F_),s=(function(){const d=S.useRef(!1);return S.useEffect(()=>(d.current=!0,()=>{d.current=!1}),[]),S.useCallback(()=>d.current,[])})(),a=S.useRef(kl({},F_)),c=S.useRef(void 0);return c.current=e.onResize,S.useEffect(()=>{if(!t.current||typeof window>"u"||!("ResizeObserver"in window))return;const d=new ResizeObserver(([h])=>{const f=o==="border-box"?"borderBoxSize":o==="device-pixel-content-box"?"devicePixelContentBoxSize":"contentBoxSize",g=R_(h,f,"inlineSize"),m=R_(h,f,"blockSize");if(a.current.width!==g||a.current.height!==m){const b={width:g,height:m};a.current.width=g,a.current.height=m,c.current?c.current(b):s()&&i(b)}});return d.observe(t.current,{box:o}),()=>{d.disconnect()}},[o,t,s]),{width:r,height:n}}function R_(e,t,o){return e[t]?Array.isArray(e[t])?e[t][0][o]:e[t][o]:t==="contentBoxSize"?e.contentRect[o==="inlineSize"?"width":"height"]:void 0}var YQ="allotment-module_splitView__L-yRc",QQ="allotment-module_sashContainer__fzwJF",JQ="allotment-module_splitViewContainer__rQnVa",E_="allotment-module_splitViewView__MGZ6O",eJ="allotment-module_vertical__WSwwa",tJ="allotment-module_horizontal__7doS8",oJ="allotment-module_separatorBorder__x-rDS";let au,__=!1,P_=!1;typeof navigator=="object"&&(au=navigator.userAgent,P_=au.indexOf("Macintosh")>=0,__=(au.indexOf("Macintosh")>=0||au.indexOf("iPad")>=0||au.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0);const D_=__,rJ=P_,T_=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0?S.useLayoutEffect:S.useEffect;class nJ{constructor(){this._size=void 0}getSize(){return this._size}setSize(t){this._size=t}}function mf(e,t){const o=e.length,r=o-t.length;return r>=0&&e.slice(r,o)===t}var M_,A_={exports:{}},iJ=(M_||(M_=1,(function(e){var t=Object.prototype.hasOwnProperty,o="~";function r(){}function n(c,d,h){this.fn=c,this.context=d,this.once=h||!1}function i(c,d,h,f,g){if(typeof h!="function")throw new TypeError("The listener must be a function");var m=new n(h,f||c,g),b=o?o+d:d;return c._events[b]?c._events[b].fn?c._events[b]=[c._events[b],m]:c._events[b].push(m):(c._events[b]=m,c._eventsCount++),c}function s(c,d){--c._eventsCount===0?c._events=new r:delete c._events[d]}function a(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(o=!1)),a.prototype.eventNames=function(){var c,d,h=[];if(this._eventsCount===0)return h;for(d in c=this._events)t.call(c,d)&&h.push(o?d.slice(1):d);return Object.getOwnPropertySymbols?h.concat(Object.getOwnPropertySymbols(c)):h},a.prototype.listeners=function(c){var d=o?o+c:c,h=this._events[d];if(!h)return[];if(h.fn)return[h.fn];for(var f=0,g=h.length,m=new Array(g);f<g;f++)m[f]=h[f].fn;return m},a.prototype.listenerCount=function(c){var d=o?o+c:c,h=this._events[d];return h?h.fn?1:h.length:0},a.prototype.emit=function(c,d,h,f,g,m){var b=o?o+c:c;if(!this._events[b])return!1;var w,y,k=this._events[b],C=arguments.length;if(k.fn){switch(k.once&&this.removeListener(c,k.fn,void 0,!0),C){case 1:return k.fn.call(k.context),!0;case 2:return k.fn.call(k.context,d),!0;case 3:return k.fn.call(k.context,d,h),!0;case 4:return k.fn.call(k.context,d,h,f),!0;case 5:return k.fn.call(k.context,d,h,f,g),!0;case 6:return k.fn.call(k.context,d,h,f,g,m),!0}for(y=1,w=new Array(C-1);y<C;y++)w[y-1]=arguments[y];k.fn.apply(k.context,w)}else{var F,E=k.length;for(y=0;y<E;y++)switch(k[y].once&&this.removeListener(c,k[y].fn,void 0,!0),C){case 1:k[y].fn.call(k[y].context);break;case 2:k[y].fn.call(k[y].context,d);break;case 3:k[y].fn.call(k[y].context,d,h);break;case 4:k[y].fn.call(k[y].context,d,h,f);break;default:if(!w)for(F=1,w=new Array(C-1);F<C;F++)w[F-1]=arguments[F];k[y].fn.apply(k[y].context,w)}}return!0},a.prototype.on=function(c,d,h){return i(this,c,d,h,!1)},a.prototype.once=function(c,d,h){return i(this,c,d,h,!0)},a.prototype.removeListener=function(c,d,h,f){var g=o?o+c:c;if(!this._events[g])return this;if(!d)return s(this,g),this;var m=this._events[g];if(m.fn)m.fn!==d||f&&!m.once||h&&m.context!==h||s(this,g);else{for(var b=0,w=[],y=m.length;b<y;b++)(m[b].fn!==d||f&&!m[b].once||h&&m[b].context!==h)&&w.push(m[b]);w.length?this._events[g]=w.length===1?w[0]:w:s(this,g)}return this},a.prototype.removeAllListeners=function(c){var d;return c?(d=o?o+c:c,this._events[d]&&s(this,d)):(this._events=new r,this._eventsCount=0),this},a.prototype.off=a.prototype.removeListener,a.prototype.addListener=a.prototype.on,a.prefixed=o,a.EventEmitter=a,e.exports=a})(A_)),A_.exports),Ob=su(iJ);function I_(e,t){const o=e.indexOf(t);o>-1&&(e.splice(o,1),e.unshift(t))}function Nb(e,t){const o=e.indexOf(t);o>-1&&(e.splice(o,1),e.push(t))}function Sr(e,t,o=1){const r=Math.max(0,Math.ceil((t-e)/o)),n=new Array(r);let i=-1;for(;++i<r;)n[i]=e+i*o;return n}var sJ="sash-module_sash__K-9lB",aJ="sash-module_disabled__Hm-wx",lJ="sash-module_mac__Jf6OJ",B_="sash-module_vertical__pB-rs",cJ="sash-module_minimum__-UKxp",uJ="sash-module_maximum__TCWxD",O_="sash-module_horizontal__kFbiw",Lb="sash-module_hover__80W6I",zb="sash-module_active__bJspD";let xr=(function(e){return e.Vertical="VERTICAL",e.Horizontal="HORIZONTAL",e})({}),Qo=(function(e){return e.Disabled="DISABLED",e.Minimum="MINIMUM",e.Maximum="MAXIMUM",e.Enabled="ENABLED",e})({}),N_=D_?20:8;const L_=new Ob;class z_ extends Ob{get state(){return this._state}set state(t){this._state!==t&&(this.el.classList.toggle(aJ,t===Qo.Disabled),this.el.classList.toggle("sash-disabled",t===Qo.Disabled),this.el.classList.toggle(cJ,t===Qo.Minimum),this.el.classList.toggle("sash-minimum",t===Qo.Minimum),this.el.classList.toggle(uJ,t===Qo.Maximum),this.el.classList.toggle("sash-maximum",t===Qo.Maximum),this._state=t,this.emit("enablementChange",t))}constructor(t,o,r){var n;super(),this.el=void 0,this.layoutProvider=void 0,this.orientation=void 0,this.size=void 0,this.hoverDelay=300,this.hoverDelayer=XQ(i=>i.classList.add("sash-hover",Lb),this.hoverDelay),this._state=Qo.Enabled,this.onPointerStart=i=>{const s=i.pageX,a=i.pageY,c={startX:s,currentX:s,startY:a,currentY:a};this.el.classList.add("sash-active",zb),this.emit("start",c),this.el.setPointerCapture(i.pointerId);const d=f=>{f.preventDefault();const g={startX:s,currentX:f.pageX,startY:a,currentY:f.pageY};this.emit("change",g)},h=f=>{f.preventDefault(),this.el.classList.remove("sash-active",zb),this.hoverDelayer.cancel(),this.emit("end"),this.el.releasePointerCapture(f.pointerId),window.removeEventListener("pointermove",d),window.removeEventListener("pointerup",h)};window.addEventListener("pointermove",d),window.addEventListener("pointerup",h)},this.onPointerDoublePress=()=>{this.emit("reset")},this.onMouseEnter=()=>{this.el.classList.contains(zb)?(this.hoverDelayer.cancel(),this.el.classList.add("sash-hover",Lb)):this.hoverDelayer(this.el)},this.onMouseLeave=()=>{this.hoverDelayer.cancel(),this.el.classList.remove("sash-hover",Lb)},this.el=document.createElement("div"),this.el.classList.add("sash",sJ),this.el.dataset.testid="sash",t.append(this.el),rJ&&this.el.classList.add("sash-mac",lJ),this.el.addEventListener("pointerdown",this.onPointerStart),this.el.addEventListener("dblclick",this.onPointerDoublePress),this.el.addEventListener("mouseenter",this.onMouseEnter),this.el.addEventListener("mouseleave",this.onMouseLeave),typeof r.size=="number"?(this.size=r.size,r.orientation===xr.Vertical?this.el.style.width=`${this.size}px`:this.el.style.height=`${this.size}px`):(this.size=N_,L_.on("onDidChangeGlobalSize",i=>{this.size=i,this.layout()})),this.layoutProvider=o,this.orientation=(n=r.orientation)!=null?n:xr.Vertical,this.orientation===xr.Horizontal?(this.el.classList.add("sash-horizontal",O_),this.el.classList.remove("sash-vertical",B_)):(this.el.classList.remove("sash-horizontal",O_),this.el.classList.add("sash-vertical",B_)),this.layout()}layout(){if(this.orientation===xr.Vertical){const t=this.layoutProvider;this.el.style.left=t.getVerticalSashLeft(this)-this.size/2+"px",t.getVerticalSashTop&&(this.el.style.top=t.getVerticalSashTop(this)+"px"),t.getVerticalSashHeight&&(this.el.style.height=t.getVerticalSashHeight(this)+"px")}else{const t=this.layoutProvider;this.el.style.top=t.getHorizontalSashTop(this)-this.size/2+"px",t.getHorizontalSashLeft&&(this.el.style.left=t.getHorizontalSashLeft(this)+"px"),t.getHorizontalSashWidth&&(this.el.style.width=t.getHorizontalSashWidth(this)+"px")}}dispose(){this.el.removeEventListener("pointerdown",this.onPointerStart),this.el.removeEventListener("dblclick",this.onPointerDoublePress),this.el.removeEventListener("mouseenter",this.onMouseEnter),this.el.removeEventListener("mouseleave",()=>this.onMouseLeave),this.el.remove()}}let vf;var Hb;(Hb=vf||(vf={})).Distribute={type:"distribute"},Hb.Split=function(e){return{type:"split",index:e}},Hb.Invisible=function(e){return{type:"invisible",cachedVisibleSize:e}};let kr=(function(e){return e.Normal="NORMAL",e.Low="LOW",e.High="HIGH",e})({});class H_{constructor(t,o,r){this.container=void 0,this.view=void 0,this._size=void 0,this._cachedVisibleSize=void 0,this.container=t,this.view=o,this.container.classList.add("split-view-view",E_),this.container.dataset.testid="split-view-view",typeof r=="number"?(this._size=r,this._cachedVisibleSize=void 0,t.classList.add("split-view-view-visible")):(this._size=0,this._cachedVisibleSize=r.cachedVisibleSize)}set size(t){this._size=t}get size(){return this._size}get priority(){return this.view.priority}get snap(){return!!this.view.snap}get cachedVisibleSize(){return this._cachedVisibleSize}get visible(){return this._cachedVisibleSize===void 0}setVisible(t,o){t!==this.visible&&(t?(this.size=Ur(this._cachedVisibleSize,this.viewMinimumSize,this.viewMaximumSize),this._cachedVisibleSize=void 0):(this._cachedVisibleSize=typeof o=="number"?o:this.size,this.size=0),this.container.classList.toggle("split-view-view-visible",t),this.view.setVisible&&this.view.setVisible(t))}get minimumSize(){return this.visible?this.view.minimumSize:0}get viewMinimumSize(){return this.view.minimumSize}get maximumSize(){return this.visible?this.view.maximumSize:0}get viewMaximumSize(){return this.view.maximumSize}set enabled(t){this.container.style.pointerEvents=t?"":"none"}layout(t){this.layoutContainer(t),this.view.layout(this.size,t)}}class dJ extends H_{layoutContainer(t){this.container.style.left=`${t}px`,this.container.style.width=`${this.size}px`}}class hJ extends H_{layoutContainer(t){this.container.style.top=`${t}px`,this.container.style.height=`${this.size}px`}}class fJ extends Ob{get startSnappingEnabled(){return this._startSnappingEnabled}set startSnappingEnabled(t){this._startSnappingEnabled!==t&&(this._startSnappingEnabled=t,this.updateSashEnablement())}get endSnappingEnabled(){return this._endSnappingEnabled}set endSnappingEnabled(t){this._endSnappingEnabled!==t&&(this._endSnappingEnabled=t,this.updateSashEnablement())}constructor(t,o={},r,n,i){var s,a;if(super(),this.onDidChange=void 0,this.onDidDragStart=void 0,this.onDidDragEnd=void 0,this.orientation=void 0,this.sashContainer=void 0,this.size=0,this.contentSize=0,this.proportions=void 0,this.viewItems=[],this.sashItems=[],this.sashDragState=void 0,this.proportionalLayout=void 0,this.getSashOrthogonalSize=void 0,this._startSnappingEnabled=!0,this._endSnappingEnabled=!0,this.onSashEnd=c=>{this.emit("sashchange",c),this.saveProportions();for(const d of this.viewItems)d.enabled=!0},this.orientation=(s=o.orientation)!=null?s:xr.Vertical,this.proportionalLayout=(a=o.proportionalLayout)!=null?a:!0,this.getSashOrthogonalSize=o.getSashOrthogonalSize,r&&(this.onDidChange=r),n&&(this.onDidDragStart=n),i&&(this.onDidDragEnd=i),this.sashContainer=document.createElement("div"),this.sashContainer.classList.add("sash-container",QQ),t.prepend(this.sashContainer),o.descriptor){this.size=o.descriptor.size;for(const[c,d]of o.descriptor.views.entries()){const h=d.size,f=d.container,g=d.view;this.addView(f,g,h,c,!0)}this.contentSize=this.viewItems.reduce((c,d)=>c+d.size,0),this.saveProportions()}}addView(t,o,r,n=this.viewItems.length,i){let s;s=typeof r=="number"?r:r.type==="split"?this.getViewSize(r.index)/2:r.type==="invisible"?{cachedVisibleSize:r.cachedVisibleSize}:o.minimumSize;const a=this.orientation===xr.Vertical?new hJ(t,o,s):new dJ(t,o,s);if(this.viewItems.splice(n,0,a),this.viewItems.length>1){const c=this.orientation===xr.Vertical?new z_(this.sashContainer,{getHorizontalSashTop:f=>this.getSashPosition(f),getHorizontalSashWidth:this.getSashOrthogonalSize},{orientation:xr.Horizontal}):new z_(this.sashContainer,{getVerticalSashLeft:f=>this.getSashPosition(f),getVerticalSashHeight:this.getSashOrthogonalSize},{orientation:xr.Vertical}),d=this.orientation===xr.Vertical?f=>({sash:c,start:f.startY,current:f.currentY}):f=>({sash:c,start:f.startX,current:f.currentX});c.on("start",f=>{var g;this.emit("sashDragStart"),this.onSashStart(d(f));const m=this.viewItems.map(b=>b.size);(g=this.onDidDragStart)==null||g.call(this,m)}),c.on("change",f=>this.onSashChange(d(f))),c.on("end",()=>{var f;this.emit("sashDragEnd"),this.onSashEnd(this.sashItems.findIndex(m=>m.sash===c));const g=this.viewItems.map(m=>m.size);(f=this.onDidDragEnd)==null||f.call(this,g)}),c.on("reset",()=>{const f=this.sashItems.findIndex(y=>y.sash===c),g=Sr(f,-1,-1),m=Sr(f+1,this.viewItems.length),b=this.findFirstSnapIndex(g),w=this.findFirstSnapIndex(m);(typeof b!="number"||this.viewItems[b].visible)&&(typeof w!="number"||this.viewItems[w].visible)&&this.emit("sashreset",f)});const h={sash:c};this.sashItems.splice(n-1,0,h)}i||this.relayout(),i||typeof r=="number"||r.type!=="distribute"||this.distributeViewSizes()}removeView(t,o){if(t<0||t>=this.viewItems.length)throw new Error("Index out of bounds");const r=this.viewItems.splice(t,1)[0].view;if(this.viewItems.length>=1){const n=Math.max(t-1,0);this.sashItems.splice(n,1)[0].sash.dispose()}return this.relayout(),o&&o.type==="distribute"&&this.distributeViewSizes(),r}moveView(t,o,r){const n=this.getViewCachedVisibleSize(o),i=n===void 0?this.getViewSize(o):vf.Invisible(n),s=this.removeView(o);this.addView(t,s,i,r)}getViewCachedVisibleSize(t){if(t<0||t>=this.viewItems.length)throw new Error("Index out of bounds");return this.viewItems[t].cachedVisibleSize}layout(t=this.size){const o=Math.max(this.size,this.contentSize);if(this.size=t,this.proportions)for(let r=0;r<this.viewItems.length;r++){const n=this.viewItems[r];n.size=Ur(Math.round(this.proportions[r]*t),n.minimumSize,n.maximumSize)}else{const r=Sr(0,this.viewItems.length),n=r.filter(s=>this.viewItems[s].priority===kr.Low),i=r.filter(s=>this.viewItems[s].priority===kr.High);this.resize(this.viewItems.length-1,t-o,void 0,n,i)}this.distributeEmptySpace(),this.layoutViews()}resizeView(t,o){if(t<0||t>=this.viewItems.length)return;const r=Sr(0,this.viewItems.length).filter(a=>a!==t),n=[...r.filter(a=>this.viewItems[a].priority===kr.Low),t],i=r.filter(a=>this.viewItems[a].priority===kr.High),s=this.viewItems[t];o=Math.round(o),o=Ur(o,s.minimumSize,Math.min(s.maximumSize,this.size)),s.size=o,this.relayout(n,i)}resizeViews(t){for(let o=0;o<t.length;o++){const r=this.viewItems[o];let n=t[o];n=Math.round(n),n=Ur(n,r.minimumSize,Math.min(r.maximumSize,this.size)),r.size=n}this.contentSize=this.viewItems.reduce((o,r)=>o+r.size,0),this.saveProportions(),this.layout(this.size)}getViewSize(t){return t<0||t>=this.viewItems.length?-1:this.viewItems[t].size}isViewVisible(t){if(t<0||t>=this.viewItems.length)throw new Error("Index out of bounds");return this.viewItems[t].visible}setViewVisible(t,o){if(t<0||t>=this.viewItems.length)throw new Error("Index out of bounds");this.viewItems[t].setVisible(o),this.distributeEmptySpace(t),this.layoutViews(),this.saveProportions()}distributeViewSizes(){const t=[];let o=0;for(const a of this.viewItems)a.maximumSize-a.minimumSize>0&&(t.push(a),o+=a.size);const r=Math.floor(o/t.length);for(const a of t)a.size=Ur(r,a.minimumSize,a.maximumSize);const n=Sr(0,this.viewItems.length),i=n.filter(a=>this.viewItems[a].priority===kr.Low),s=n.filter(a=>this.viewItems[a].priority===kr.High);this.relayout(i,s)}dispose(){this.sashItems.forEach(t=>t.sash.dispose()),this.sashItems=[],this.sashContainer.remove()}relayout(t,o){const r=this.viewItems.reduce((n,i)=>n+i.size,0);this.resize(this.viewItems.length-1,this.size-r,void 0,t,o),this.distributeEmptySpace(),this.layoutViews(),this.saveProportions()}onSashStart({sash:t,start:o}){const r=this.sashItems.findIndex(n=>n.sash===t);(n=>{const i=this.viewItems.map(C=>C.size);let s,a,c=Number.NEGATIVE_INFINITY,d=Number.POSITIVE_INFINITY;const h=Sr(r,-1,-1),f=Sr(r+1,this.viewItems.length),g=h.reduce((C,F)=>C+(this.viewItems[F].minimumSize-i[F]),0),m=h.reduce((C,F)=>C+(this.viewItems[F].viewMaximumSize-i[F]),0),b=f.length===0?Number.POSITIVE_INFINITY:f.reduce((C,F)=>C+(i[F]-this.viewItems[F].minimumSize),0),w=f.length===0?Number.NEGATIVE_INFINITY:f.reduce((C,F)=>C+(i[F]-this.viewItems[F].viewMaximumSize),0);c=Math.max(g,w),d=Math.min(b,m);const y=this.findFirstSnapIndex(h),k=this.findFirstSnapIndex(f);if(typeof y=="number"){const C=this.viewItems[y],F=Math.floor(C.viewMinimumSize/2);s={index:y,limitDelta:C.visible?c-F:c+F,size:C.size}}if(typeof k=="number"){const C=this.viewItems[k],F=Math.floor(C.viewMinimumSize/2);a={index:k,limitDelta:C.visible?d+F:d-F,size:C.size}}this.sashDragState={start:n,current:n,index:r,sizes:i,minDelta:c,maxDelta:d,snapBefore:s,snapAfter:a}})(o)}onSashChange({current:t}){const{index:o,start:r,sizes:n,minDelta:i,maxDelta:s,snapBefore:a,snapAfter:c}=this.sashDragState;this.sashDragState.current=t;const d=t-r;this.resize(o,d,n,void 0,void 0,i,s,a,c),this.distributeEmptySpace(),this.layoutViews()}getSashPosition(t){let o=0;for(let r=0;r<this.sashItems.length;r++)if(o+=this.viewItems[r].size,this.sashItems[r].sash===t)return o;return 0}resize(t,o,r=this.viewItems.map(h=>h.size),n,i,s=Number.NEGATIVE_INFINITY,a=Number.POSITIVE_INFINITY,c,d){if(t<0||t>=this.viewItems.length)return 0;const h=Sr(t,-1,-1),f=Sr(t+1,this.viewItems.length);if(i)for(const D of i)I_(h,D),I_(f,D);if(n)for(const D of n)Nb(h,D),Nb(f,D);const g=h.map(D=>this.viewItems[D]),m=h.map(D=>r[D]),b=f.map(D=>this.viewItems[D]),w=f.map(D=>r[D]),y=h.reduce((D,M)=>D+(this.viewItems[M].minimumSize-r[M]),0),k=h.reduce((D,M)=>D+(this.viewItems[M].maximumSize-r[M]),0),C=f.length===0?Number.POSITIVE_INFINITY:f.reduce((D,M)=>D+(r[M]-this.viewItems[M].minimumSize),0),F=f.length===0?Number.NEGATIVE_INFINITY:f.reduce((D,M)=>D+(r[M]-this.viewItems[M].maximumSize),0),E=Math.max(y,F,s),_=Math.min(C,k,a);let P=!1;if(c){const D=this.viewItems[c.index],M=o>=c.limitDelta;P=M!==D.visible,D.setVisible(M,c.size)}if(!P&&d){const D=this.viewItems[d.index],M=o<d.limitDelta;P=M!==D.visible,D.setVisible(M,d.size)}if(P)return this.resize(t,o,r,n,i,s,a);for(let D=0,M=o=Ur(o,E,_);D<g.length;D++){const A=g[D],O=Ur(m[D]+M,A.minimumSize,A.maximumSize);M-=O-m[D],A.size=O}for(let D=0,M=o;D<b.length;D++){const A=b[D],O=Ur(w[D]-M,A.minimumSize,A.maximumSize);M+=O-w[D],A.size=O}return o}distributeEmptySpace(t){const o=this.viewItems.reduce((d,h)=>d+h.size,0);let r=this.size-o;const n=Sr(0,this.viewItems.length),i=[],s=n.filter(d=>this.viewItems[d].priority===kr.Low),a=n.filter(d=>this.viewItems[d].priority===kr.Normal),c=n.filter(d=>this.viewItems[d].priority===kr.High);i.push(...c,...a,...s),typeof t=="number"&&Nb(i,t);for(let d=0;r!==0&&d<i.length;d++){const h=this.viewItems[i[d]],f=Ur(h.size+r,h.minimumSize,h.maximumSize);r-=f-h.size,h.size=f}}layoutViews(){var t;this.contentSize=this.viewItems.reduce((r,n)=>r+n.size,0);let o=0;for(const r of this.viewItems)r.layout(o),o+=r.size;(t=this.onDidChange)!=null&&t.call(this,this.viewItems.map(r=>r.size)),this.sashItems.forEach(r=>r.sash.layout()),this.updateSashEnablement()}saveProportions(){this.proportionalLayout&&this.contentSize>0&&(this.proportions=this.viewItems.map(t=>t.size/this.contentSize))}updateSashEnablement(){let t=!1;const o=this.viewItems.map(c=>t=c.size-c.minimumSize>0||t);t=!1;const r=this.viewItems.map(c=>t=c.maximumSize-c.size>0||t),n=[...this.viewItems].reverse();t=!1;const i=n.map(c=>t=c.size-c.minimumSize>0||t).reverse();t=!1;const s=n.map(c=>t=c.maximumSize-c.size>0||t).reverse();let a=0;for(let c=0;c<this.sashItems.length;c++){const{sash:d}=this.sashItems[c];a+=this.viewItems[c].size;const h=!(o[c]&&s[c+1]),f=!(r[c]&&i[c+1]);if(h&&f){const g=Sr(c,-1,-1),m=Sr(c+1,this.viewItems.length),b=this.findFirstSnapIndex(g),w=this.findFirstSnapIndex(m),y=typeof b=="number"&&!this.viewItems[b].visible,k=typeof w=="number"&&!this.viewItems[w].visible;y&&i[c]&&(a>0||this.startSnappingEnabled)?d.state=Qo.Minimum:k&&o[c]&&(a<this.contentSize||this.endSnappingEnabled)?d.state=Qo.Maximum:d.state=Qo.Disabled}else d.state=h&&!f?Qo.Minimum:!h&&f?Qo.Maximum:Qo.Enabled}}findFirstSnapIndex(t){for(const o of t){const r=this.viewItems[o];if(r.visible&&r.snap)return o}for(const o of t){const r=this.viewItems[o];if(r.visible&&r.maximumSize-r.minimumSize>0)return;if(!r.visible&&r.snap)return o}}}class Fl{constructor(t){this.size=void 0,this.size=t}getPreferredSize(){return this.size}}class V_{constructor(t,o){this.proportion=void 0,this.layoutService=void 0,this.proportion=t,this.layoutService=o}getPreferredSize(){return this.proportion*this.layoutService.getSize()}}class bf{getPreferredSize(){}}class G_{get preferredSize(){return this.layoutStrategy.getPreferredSize()}set preferredSize(t){if(typeof t=="number")this.layoutStrategy=new Fl(t);else if(typeof t=="string"){const o=t.trim();if(mf(o,"%")){const r=Number(o.slice(0,-1))/100;this.layoutStrategy=new V_(r,this.layoutService)}else if(mf(o,"px")){const r=Number(o.slice(0,-2))/100;this.layoutStrategy=new Fl(r)}else if(typeof Number.parseFloat(o)=="number"){const r=Number.parseFloat(o);this.layoutStrategy=new Fl(r)}else this.layoutStrategy=new bf}else this.layoutStrategy=new bf}constructor(t,o){var r;if(this.minimumSize=0,this.maximumSize=Number.POSITIVE_INFINITY,this.element=void 0,this.priority=void 0,this.snap=void 0,this.layoutService=void 0,this.layoutStrategy=void 0,this.layoutService=t,this.element=o.element,this.minimumSize=typeof o.minimumSize=="number"?o.minimumSize:30,this.maximumSize=typeof o.maximumSize=="number"?o.maximumSize:Number.POSITIVE_INFINITY,typeof o.preferredSize=="number")this.layoutStrategy=new Fl(o.preferredSize);else if(typeof o.preferredSize=="string"){const n=o.preferredSize.trim();if(mf(n,"%")){const i=Number(n.slice(0,-1))/100;this.layoutStrategy=new V_(i,this.layoutService)}else if(mf(n,"px")){const i=Number(n.slice(0,-2));this.layoutStrategy=new Fl(i)}else if(typeof Number.parseFloat(n)=="number"){const i=Number.parseFloat(n);this.layoutStrategy=new Fl(i)}else this.layoutStrategy=new bf}else this.layoutStrategy=new bf;this.priority=(r=o.priority)!=null?r:kr.Normal,this.snap=typeof o.snap=="boolean"&&o.snap}layout(t){}}function j_(e){return e.minSize!==void 0||e.maxSize!==void 0||e.preferredSize!==void 0||e.priority!==void 0||e.visible!==void 0}const Vb=S.forwardRef(({className:e,children:t},o)=>J.createElement("div",{ref:o,className:Bb("split-view-view",E_,e)},t));Vb.displayName="Allotment.Pane";const W_=S.forwardRef(({children:e,className:t,id:o,maxSize:r=1/0,minSize:n=30,proportionalLayout:i=!0,separator:s=!0,sizes:a,defaultSizes:c=a,snap:d=!1,vertical:h=!1,onChange:f,onReset:g,onVisibleChange:m,onDragStart:b,onDragEnd:w},y)=>{const k=S.useRef(null),C=S.useRef([]),F=S.useRef(new Map),E=S.useRef(null),_=S.useRef(new Map),P=S.useRef(new nJ),D=S.useRef([]),[M,A]=S.useState(!1),O=S.useMemo(()=>J.Children.toArray(e).filter(J.isValidElement),[e]),K=S.useCallback(W=>{var L,V;const U=(L=D.current)==null?void 0:L[W];return typeof U?.preferredSize=="number"&&((V=E.current)!=null&&V.resizeView(W,Math.round(U.preferredSize)),!0)},[]);return S.useImperativeHandle(y,()=>({reset:()=>{if(g)g();else{var W;(W=E.current)==null||W.distributeViewSizes();for(let L=0;L<D.current.length;L++)K(L)}},resize:W=>{var L;(L=E.current)==null||L.resizeViews(W)}})),T_(()=>{let W=!0;c&&_.current.size!==c.length&&(W=!1,console.warn(`Expected ${c.length} children based on defaultSizes but found ${_.current.size}`)),W&&c&&(C.current=O.map(U=>U.key));const L=kl({orientation:h?xr.Vertical:xr.Horizontal,proportionalLayout:i},W&&c&&{descriptor:{size:c.reduce((U,$)=>U+$,0),views:c.map((U,$)=>{var Y,I,X,j;const z=F.current.get(C.current[$]),H=new G_(P.current,kl({element:document.createElement("div"),minimumSize:(Y=z?.minSize)!=null?Y:n,maximumSize:(I=z?.maxSize)!=null?I:r,priority:(X=z?.priority)!=null?X:kr.Normal},z?.preferredSize&&{preferredSize:z?.preferredSize},{snap:(j=z?.snap)!=null?j:d}));return D.current.push(H),{container:[..._.current.values()][$],size:U,view:H}})}});E.current=new fJ(k.current,L,f,b,w),E.current.on("sashDragStart",()=>{var U;(U=k.current)==null||U.classList.add("split-view-sash-dragging")}),E.current.on("sashDragEnd",()=>{var U;(U=k.current)==null||U.classList.remove("split-view-sash-dragging")}),E.current.on("sashchange",U=>{if(m&&E.current){const $=O.map(Y=>Y.key);for(let Y=0;Y<$.length;Y++){const I=F.current.get($[Y]);I?.visible!==void 0&&I.visible!==E.current.isViewVisible(Y)&&m(Y,E.current.isViewVisible(Y))}}}),E.current.on("sashreset",U=>{if(g)g();else{var $;if(K(U)||K(U+1))return;($=E.current)==null||$.distributeViewSizes()}});const V=E.current;return()=>{V.dispose()}},[]),T_(()=>{if(M){const te=O.map(we=>we.key),re=[...C.current],be=te.filter(we=>!C.current.includes(we)),me=te.filter(we=>C.current.includes(we)),He=C.current.map(we=>!te.includes(we));for(let we=He.length-1;we>=0;we--){var W;He[we]&&((W=E.current)!=null&&W.removeView(we),re.splice(we,1),D.current.splice(we,1))}for(const we of be){var L,V,U,$,Y;const Ce=F.current.get(we),xe=new G_(P.current,kl({element:document.createElement("div"),minimumSize:(L=Ce?.minSize)!=null?L:n,maximumSize:(V=Ce?.maxSize)!=null?V:r,priority:(U=Ce?.priority)!=null?U:kr.Normal},Ce?.preferredSize&&{preferredSize:Ce?.preferredSize},{snap:($=Ce?.snap)!=null?$:d}));(Y=E.current)!=null&&Y.addView(_.current.get(we),xe,vf.Distribute,te.findIndex($e=>$e===we)),re.splice(te.findIndex($e=>$e===we),0,we),D.current.splice(te.findIndex($e=>$e===we),0,xe)}for(;!KQ(te,re);)for(const[we,Ce]of te.entries()){const xe=re.findIndex($e=>$e===Ce);if(xe!==we){var I;(I=E.current)==null||I.moveView(_.current.get(Ce),xe,we);const $e=re[xe];re.splice(xe,1),re.splice(we,0,$e);break}}for(const we of be){var X;const Ce=te.findIndex($e=>$e===we),xe=D.current[Ce].preferredSize;xe!==void 0&&((X=E.current)==null||X.resizeView(Ce,xe))}for(const we of[...be,...me]){var j,z;const Ce=F.current.get(we),xe=te.findIndex($e=>$e===we);Ce&&j_(Ce)&&Ce.visible!==void 0&&((j=E.current)==null?void 0:j.isViewVisible(xe))!==Ce.visible&&((z=E.current)==null||z.setViewVisible(xe,Ce.visible))}for(const we of me){const Ce=F.current.get(we),xe=te.findIndex($e=>$e===we);if(Ce&&j_(Ce)){var H;Ce.preferredSize!==void 0&&D.current[xe].preferredSize!==Ce.preferredSize&&(D.current[xe].preferredSize=Ce.preferredSize);let $e=!1;Ce.minSize!==void 0&&D.current[xe].minimumSize!==Ce.minSize&&(D.current[xe].minimumSize=Ce.minSize,$e=!0),Ce.maxSize!==void 0&&D.current[xe].maximumSize!==Ce.maxSize&&(D.current[xe].maximumSize=Ce.maxSize,$e=!0),$e&&((H=E.current)==null||H.layout())}}(be.length>0||He.length>0)&&(C.current=te)}},[O,M,r,n,d]),S.useEffect(()=>{E.current&&(E.current.onDidChange=f)},[f]),S.useEffect(()=>{E.current&&(E.current.onDidDragStart=b)},[b]),S.useEffect(()=>{E.current&&(E.current.onDidDragEnd=w)},[w]),ZQ({ref:k,onResize:({width:W,height:L})=>{var V;W&&L&&((V=E.current)!=null&&V.layout(h?L:W),P.current.setSize(h?L:W),A(!0))}}),S.useEffect(()=>{D_&&pJ(20)},[]),J.createElement("div",{ref:k,className:Bb("split-view",h?"split-view-vertical":"split-view-horizontal",{"split-view-separator-border":s},YQ,h?eJ:tJ,{[oJ]:s},t),id:o},J.createElement("div",{className:Bb("split-view-container",JQ)},J.Children.toArray(e).map(W=>{if(!J.isValidElement(W))return null;const L=W.key;return W.type.displayName==="Allotment.Pane"?(F.current.set(L,W.props),J.cloneElement(W,{key:L,ref:V=>{const U=W.ref;U&&(U.current=V),V?_.current.set(L,V):_.current.delete(L)}})):J.createElement(Vb,{key:L,ref:V=>{V?_.current.set(L,V):_.current.delete(L)}},W)})))});function pJ(e){const t=Ur(e,4,20),o=Ur(e,1,8);document.documentElement.style.setProperty("--sash-size",t+"px"),document.documentElement.style.setProperty("--sash-hover-size",o+"px"),(function(r){N_=r,L_.emit("onDidChangeGlobalSize",r)})(t)}W_.displayName="Allotment";var Gb=Object.assign(W_,{Pane:Vb});class wf{column;newValue;oldSelValues=[];setStatus="Fixed";onlyDifferent=!1;selectedSelections=[];expressionTemplate="";previewValue="";calculationError;constructor(t){this.column=t,Ax(this)}get formattedNewValue(){return this.column.type==="Picklist"||this.column.type==="State"||this.column.type==="Status"?this.oldSelValues?this.oldSelValues.join(", "):"":this.newValue!==void 0&&this.newValue!==null?String(this.newValue):""}get isValid(){return this.setStatus==="Fixed"?this.column.type==="Picklist"||this.column.type==="State"||this.column.type==="Status"||this.column.type==="Lookup"||this.column.type==="Owner"?this.selectedSelections!==void 0&&this.selectedSelections.length>0:this.newValue!==void 0&&this.newValue!==null&&this.newValue!=="":this.setStatus==="Calculated"?!this.calculationError&&this.expressionTemplate!==void 0&&this.expressionTemplate.trim()!=="":(this.setStatus==="Touch",!0)}get dbValue(){if(this.setStatus==="Fixed")switch(this.column.type){case"Lookup":return`/${this.column.lookupTargetTable?.setName}(${this.selectedSelections?.[0].value})`;case"Owner":return`/${this.selectedSelections?.[0].ownerTable}(${this.selectedSelections?.[0].value})`;case"Picklist":case"State":case"Status":return this.selectedSelections?.[0].value;default:return this.newValue}else return this.setStatus==="Calculated"?this.previewValue:null}get dbField(){switch(this.column.type){case"Lookup":case"Owner":return this.setStatus==="Fixed"?this.column.logicalName+"@odata.bind":this.column.logicalName;default:return this.column.logicalName}}}const gJ=["Fixed","Calculated","Touch","Set Null"];Xm.registerModules([xb,_b,Eb]);const mJ=rf.withParams({headerHeight:"30px"}),vJ=Mo(e=>{const{dvSvc:t,vm:o,updateField:r,dialogOpen:n,onLog:i,onDialogClose:s}=e,[a,c]=J.useState(),[d,h]=J.useState(),[f,g]=J.useState([]),[m,b]=J.useState("User"),[w,y]=J.useState();J.useEffect(()=>{(async()=>{if(r.column.type==="Lookup"&&!r.column.lookupTargetTable)await t.getLookupTargetTable(o.selectedTable.logicalName,r.column.logicalName).then(async A=>{r.column.lookupTargetTable=o.tables.find(O=>O.logicalName===A),r.column.lookupTargetTable&&!r.column.lookupTargetTable.views&&await t.getViews(r.column.lookupTargetTable).then(O=>{r.column.lookupTargetTable.views=O}),r.column.lookupTargetTable&&!r.column.lookupTargetTable.fields&&await t.getFields(r.column.lookupTargetTable.logicalName).then(O=>{r.column.lookupTargetTable.fields=O})}).catch(A=>{i(`Error loading lookup target table: ${A.message}`,"error")});else if(r.column.type==="Owner"){c(void 0);let A;m==="User"?(A=o.tables.find(O=>O.logicalName==="systemuser"),y(A)):m==="Team"&&(A=o.tables.find(O=>O.logicalName==="team"),y(A)),A&&!A.views&&await t.getViews(A).then(O=>{A.views=O}),A&&!A.fields&&await t.getFields(A.logicalName).then(O=>{A.fields=O})}})()},[n,m]),J.useEffect(()=>{(async()=>a&&await t.loadData(a.fetchXml).then(A=>{g(A),i(`Loaded ${A.length} records from view: ${a.label}`,"success")}))()},[a]),J.useEffect(()=>{(async()=>a&&(a.fieldNames=a.fetchXml.match(/attribute\s+name\s*=\s*["']([^"']+)["']/g)?.map(A=>A.match(/["']([^"']+)["']/)?.[1]).filter(A=>A!==void 0)||[],i(`Extracted field names for selected view: ${a.fieldNames.join(", ")}`,"info")))()},[a]);const k=r.column.type==="Owner"?(w?.views??[]).map(M=>B.jsx(Lr,{value:M.id,children:M.label},M.id)):(r.column.lookupTargetTable?.views??[]).map(M=>B.jsx(Lr,{value:M.id,children:M.label},M.id)),C=(M,A)=>{r.column.type==="Owner"?c(w.views.find(O=>O.id===A.optionValue)):c(r.column.lookupTargetTable.views.find(O=>O.id===A.optionValue))},F=J.useMemo(()=>r.column.type==="Owner"&&!w?[]:r.column.type==="Owner"?a?.fieldNames?.map(M=>({headerName:w.fields.find(O=>O.logicalName===M)?.displayName||M,field:M}))||[]:a?.fieldNames?.map(M=>({headerName:r.column.lookupTargetTable.fields.find(O=>O.logicalName===M)?.displayName||M,field:M}))||[],[a?.fieldNames]),E={sortable:!0,filter:!0,resizable:!0,flex:1,wrapText:!0,width:100},_=J.useMemo(()=>({mode:"singleRow"}),[]);function P(M){const A=M.api.getSelectedRows();A.length>0?r.column.type==="Owner"?h({label:A[0][w?.primaryNameAttribute],value:A[0][w?.primaryIdAttribute],ownerTable:w?.setName}):h({label:A[0][r.column.lookupTargetTable?.primaryNameAttribute],value:A[0][r.column.lookupTargetTable?.primaryIdAttribute]}):h(void 0)}async function D(M){d&&(r.selectedSelections=[d],s())}return B.jsx(Gn,{open:n,onOpenChange:M=>s(),children:B.jsx(ys,{children:B.jsxs(Cs,{children:[B.jsx($g,{children:"Select a Lookup Value"}),B.jsxs(Ss,{children:[r.column.type==="Owner"&&B.jsx(bs,{label:"Owner type",children:B.jsxs(Ma,{placeholder:"Select Owner Type",value:m,onOptionSelect:(M,A)=>b(A.optionValue),children:[B.jsx(Lr,{children:"User"}),B.jsx(Lr,{children:"Team"})]})}),B.jsx(bs,{label:"Select a view",children:B.jsx(Ma,{placeholder:"Select a View",onOptionSelect:C,children:k})}),B.jsx("div",{style:{width:"100%",height:"60vh",marginTop:"10px"},children:B.jsx(Ab,{rowData:f,columnDefs:F,theme:mJ,domLayout:"normal",defaultColDef:E,rowSelection:_,onSelectionChanged:P})})]}),B.jsxs(ws,{children:[B.jsx(ut,{appearance:"primary",disabled:!d,onClick:D,children:"Select Record"}),B.jsx(Fi,{disableButtonEnhancement:!0,children:B.jsx(ut,{appearance:"secondary",children:"Close"})})]})]})})})});class jb{static evaluate(t,o){if(!t||t.trim()==="")return{value:"",error:void 0,isCalculated:!1};try{let r=t;return r=this.processColumnTokens(r,o),r=this.processConditionals(r,o),r=this.processSystemTokens(r,o),r=this.processMathExpressions(r,o),r=this.processFormattingFunctions(r,o),r=this.processReplacements(r,o),{value:r,isCalculated:!0}}catch(r){return{value:void 0,error:r instanceof Error?r.message:String(r),isCalculated:!1}}}static getFieldValue(t,o){const r=t.trim().split(".");let n=o[r[0]];for(let i=1;i<r.length;i++){if(n==null)return;typeof n=="object"&&"_Name"in n?n=n._Name:n=n[r[i]]}return n}static processColumnTokens(t,o){const r=/\{([a-zA-Z_][a-zA-Z0-9_\.]*)\|?(raw)?\}/g;return t.replace(r,(n,i,s)=>{const a=this.getFieldValue(i,o.record);return a==null?"":typeof a=="object"&&"_Name"in a&&!s?a._Name||"":String(a)})}static processConditionals(t,o){const r=/<iif\|([^|]+)\|([^|]+)\|([^|]+)\|([^|]+)\|([^>]+)>/g;return t.replace(r,(n,i,s,a,c,d)=>{try{const h=this.getFieldValue(i.trim(),o.record)??i.trim(),f=a.trim(),g=c.trim(),m=d.trim();let b=!1;const w=String(h).toLowerCase(),y=String(f).toLowerCase();switch(s.toLowerCase().trim()){case"eq":case"=":b=w===y;break;case"ne":case"!=":case"<>":b=w!==y;break;case"gt":case">":b=parseFloat(w)>parseFloat(y);break;case"gte":case">=":b=parseFloat(w)>=parseFloat(y);break;case"lt":case"<":b=parseFloat(w)<parseFloat(y);break;case"lte":case"<=":b=parseFloat(w)<=parseFloat(y);break;case"contains":b=w.includes(y);break;case"startswith":b=w.startsWith(y);break;case"endswith":b=w.endsWith(y);break;default:b=w===y}return b?g:m}catch{return d.trim()}})}static processSystemTokens(t,o){const r=/<system\|([a-zA-Z_][a-zA-Z0-9_]*)\|?([^>]*)>/g;return t.replace(r,(n,i,s)=>{const a=new Date;let c="";switch(i.toLowerCase().trim()){case"now":c=a.toISOString();break;case"today":c=a.toISOString().split("T")[0];break;case"year":c=a.getFullYear().toString();break;case"month":c=String(a.getMonth()+1).padStart(2,"0");break;case"day":c=String(a.getDate()).padStart(2,"0");break;case"hour":c=String(a.getHours()).padStart(2,"0");break;case"minute":c=String(a.getMinutes()).padStart(2,"0");break;case"timestamp":c=a.getTime().toString();break;default:c=""}return c})}static processMathExpressions(t,o){const r=/<math\|([+\-*/])\|([0-9.]+)>/g;return t.replace(r,(n,i,s,a)=>{try{const c=parseFloat(s);if(isNaN(c))return n;const d=t.substring(0,a).match(/[\d.]+$/);if(d){const h=parseFloat(d[0]);let f=h;switch(i){case"+":f=h+c;break;case"-":f=h-c;break;case"*":f=h*c;break;case"/":if(c===0)return n;f=h/c;break}return String(f)}return n}catch{return n}})}static processFormattingFunctions(t,o){let r=t;return r=r.replace(/([^<]*)<Upper>/gi,(n,i)=>i.toUpperCase()),r=r.replace(/([^<]*)<Lower>/gi,(n,i)=>i.toLowerCase()),r=r.replace(/([^<]*)<Trim(?:\|([^>]+))?>/gi,(n,i,s)=>{if(s){const a=new Set(s.split(""));let c="";for(const d of i)a.has(d)||(c+=d);return c}return i.trim()}),r=r.replace(/([^<]*)<Left\|(\d+)>/gi,(n,i,s)=>i.substring(0,parseInt(s))),r=r.replace(/([^<]*)<Right\|(\d+)>/gi,(n,i,s)=>{const a=parseInt(s);return i.substring(i.length-a)}),r=r.replace(/([^<]*)<SubStr\|(\d+)\|(\d+)>/gi,(n,i,s,a)=>i.substring(parseInt(s),parseInt(s)+parseInt(a))),r}static processReplacements(t,o){const r=/([^<]*)<Replace\|([^|]+)\|([^>]*)>/g;return t.replace(r,(n,i,s,a)=>{const c=s.trim(),d=a.trim();if(!c)return i;const h=c.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return i.replace(new RegExp(h,"g"),d)})}static getHint(t){return{column:"{fieldname} or {fieldname.relationshipname} - Get field value",columnraw:"{fieldname|raw} - Get raw field value",iif:"<iif|value|operator|compare|then|else> - Conditional. Operators: eq, ne, gt, gte, lt, lte, contains, startswith, endswith",system:"<system|value|format> - System values. Values: now, today, year, month, day, hour, minute, timestamp",upper:"<Upper> - Convert to uppercase",lower:"<Lower> - Convert to lowercase",trim:"<Trim|chars> - Trim characters",substr:"<SubStr|start|length> - Extract substring",left:"<Left|length> - Get left characters",right:"<Right|length> - Get right characters",replace:"<Replace|old|new> - Replace text",math:"<math|operator|value> - Math operation. Operators: +, -, *, /"}[t.toLowerCase()]||"Unknown function"}static getTokenSuggestions(t){return Object.keys(t).filter(o=>!o.startsWith("_")).map(o=>`{${o}}`)}}const bJ=Mo(e=>{const{updateColumn:t,vm:o,onLog:r}=e,[n,i]=J.useState(!1),[s,a]=J.useState([]),c=J.useRef({template:"",preview:"",error:void 0}),d=()=>{c.current={template:t.expressionTemplate||"",preview:t.previewValue,error:t.calculationError},i(!0)},h=()=>{t.expressionTemplate=c.current.template,t.previewValue=c.current.preview,t.calculationError=c.current.error,i(!1)},f=J.useCallback(()=>{if(o.selectedRows.length>0&&o.data&&o.selectedTable){const y=o.selectedTable.primaryIdAttribute,k=o.selectedRows[0].value,C=o.data.find(F=>F[y]===k);if(C)return C}return o.data&&o.data.length>0?o.data[0]:void 0},[o.selectedRows,o.data,o.selectedTable]);J.useEffect(()=>{const y=f();if(o.selectedTable?.logicalName&&y){const k=jb.getTokenSuggestions(y);a(k)}},[o.selectedTable?.logicalName,o.data,o.selectedRows,f]);const g=y=>{t.expressionTemplate=y;const k=f();if(k)try{const C=jb.evaluate(y,{record:k});t.previewValue=C.value,t.calculationError=C.error,C.error&&r(`Calculation error: ${C.error}`,"warning")}catch(C){const F=C instanceof Error?C.message:String(C);t.calculationError=F,r(`Expression evaluation error: ${F}`,"error")}},m=y=>{const k=document.getElementById(`expr-${t.column.logicalName}`);if(k){const C=k.selectionStart,F=k.selectionEnd,E=t.expressionTemplate?.substring(0,C)||"",_=t.expressionTemplate?.substring(F)||"",P=E+y+_;g(P),requestAnimationFrame(()=>{k.selectionStart=k.selectionEnd=C+y.length,k.focus()})}},b=()=>t.expressionTemplate?t.calculationError?B.jsx(Ay,{style:{color:"red"}}):B.jsx(My,{style:{color:"green"}}):null,w=t.calculationError?qo.colorPaletteRedForeground1:t.previewValue!==void 0?qo.colorNeutralForeground1:qo.colorNeutralForeground4;return B.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"4px",width:"100%",minWidth:0},children:[B.jsx(mc,{size:200,style:{flex:1,minWidth:0,fontFamily:"monospace",wordBreak:"break-word",color:t.expressionTemplate?w:qo.colorNeutralForeground4},children:t.expressionTemplate||"Click edit to set expression..."}),B.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"2px",flexShrink:0},children:[b(),B.jsxs(Gn,{open:n,onOpenChange:(y,k)=>{k.open||h()},children:[B.jsx(Fi,{disableButtonEnhancement:!0,children:B.jsx(ut,{icon:B.jsx(zB,{}),appearance:"subtle",size:"small",onClick:d})}),B.jsx(ys,{style:{maxWidth:"640px",width:"90vw"},children:B.jsxs(Cs,{children:[B.jsxs($g,{children:["Expression Editor - ",t.column.displayName]}),B.jsx(Ss,{children:B.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"12px"},children:[B.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"6px",justifyContent:"flex-end"},children:[b(),B.jsxs(Og,{positioning:"below-start",children:[B.jsx(kd,{disableButtonEnhancement:!0,children:B.jsx(ut,{icon:B.jsx(LB,{}),appearance:"subtle",size:"small"})}),B.jsx(Bg,{children:B.jsxs("div",{style:{padding:"12px",maxWidth:"400px",fontSize:"12px"},children:[B.jsx(mc,{weight:"semibold",children:"Token & Function Reference"}),B.jsxs("div",{style:{marginTop:"8px",lineHeight:"1.5"},children:[B.jsxs("p",{children:[B.jsx("strong",{children:"{column}"})," - Get field value (e.g. ","{firstname}",")"]}),B.jsxs("p",{children:[B.jsx("strong",{children:"<iif|value|op|comp|then|else>"})," - Conditional"]}),B.jsxs("p",{children:[B.jsx("strong",{children:"<Upper>, <Lower>"})," - Case conversion"]}),B.jsxs("p",{children:[B.jsx("strong",{children:"<Trim>, <Left|n>, <Right|n>"})," - String formatting"]}),B.jsxs("p",{children:[B.jsx("strong",{children:"<Replace|old|new>"})," - Replace text"]}),B.jsxs("p",{children:[B.jsx("strong",{children:"<system|now|>, <system|today|>"})," - System values"]})]})]})})]})]}),B.jsx(f1,{id:`expr-${t.column.logicalName}`,placeholder:"Enter expression template. Use {fieldname} for tokens.",value:t.expressionTemplate||"",onChange:y=>g(y.target.value),style:{minHeight:"120px",fontFamily:"monospace",fontSize:"12px",borderColor:t.calculationError?qo.colorPaletteRedForeground1:void 0,resize:"vertical"}}),B.jsxs("div",{style:{display:"flex",flexWrap:"wrap",gap:"6px"},children:[s.slice(0,5).map(y=>B.jsx(Vn,{content:`Insert ${y}`,relationship:"description",children:B.jsx(ut,{size:"small",onClick:()=>m(y),children:y})},y)),s.length>5&&B.jsxs(Og,{positioning:"below-start",children:[B.jsx(kd,{disableButtonEnhancement:!0,children:B.jsx(ut,{size:"small",children:"More fields..."})}),B.jsx(Bg,{children:B.jsx("div",{style:{padding:"12px",display:"grid",gridTemplateColumns:"1fr 1fr",gap:"8px"},children:s.map(y=>B.jsx(ut,{size:"small",onClick:()=>m(y),children:y},y))})})]})]}),t.previewValue!==void 0&&!t.calculationError&&B.jsx("div",{style:{padding:"8px",backgroundColor:qo.colorPaletteGreenBackground1,borderRadius:"4px",borderLeft:`3px solid ${qo.colorPaletteGreenForeground1}`},children:B.jsxs(mc,{size:200,style:{color:qo.colorPaletteGreenForeground1,fontWeight:"600"},children:["Preview: ",t.previewValue]})}),t.calculationError&&B.jsx("div",{style:{padding:"8px",backgroundColor:qo.colorPaletteRedBackground1,borderRadius:"4px",borderLeft:`3px solid ${qo.colorPaletteRedForeground1}`},children:B.jsxs(mc,{size:200,style:{color:qo.colorPaletteRedForeground1,fontWeight:"600"},children:["Error: ",t.calculationError]})})]})}),B.jsxs(ws,{children:[B.jsx(ut,{appearance:"primary",onClick:()=>i(!1),children:"Save"}),B.jsx(ut,{appearance:"secondary",onClick:h,children:"Cancel"})]})]})})]})]})]})}),wJ=Mo(e=>{const{updateColumn:t,dvSvc:o,vm:r,onLog:n}=e,[i,s]=J.useState([]),[a,c]=J.useState(!1),d=k=>{const C=i.find(F=>F.value===k);if(C&&(t.selectedSelections=[C]),t.column.type==="State"){const F=r.updateCols.find(_=>_.column.logicalName==="statuscode"),E=C?.defaultStatus?.toString();if(F&&F.column&&F.column.choiceValues&&E!==void 0){const _=F.column.choiceValues.find(P=>P.value===E);_&&(F.selectedSelections=[_])}}},h=()=>{const k=t.column.choiceValues||[];if(t.column.type==="Status"){const C=r.updateCols.find(F=>F.column.logicalName==="statecode");C?.selectedSelections&&C.selectedSelections.length>0?s(k.filter(F=>F.parentState?.toString()===C.selectedSelections[0]?.value)):s([])}else s(k)};J.useEffect(()=>{(async()=>{switch(t.column?.type){case"Picklist":case"State":case"Status":if(t.column.choiceValues&&t.column.choiceValues.length>0){h();return}const C=await o.getChoiceValues(r.selectedTable?.logicalName||"",t.column);t.column.choiceValues=C,h();break;case"Money":case"Double":case"Integer":case"BigInt":case"Decimal":(t.column.minValue===void 0||t.column.maxValue===void 0)&&await o.getNumericFieldLimits(t.column,r.selectedTable?.logicalName||"");break;default:return}})()},[t.column,o,r.selectedTable?.logicalName]);const f=B.jsx(Ma,{style:{width:"100%"},placeholder:"Select Option",value:t.selectedSelections?.[0]?.label||"",onOptionSelect:(k,C)=>{d(C.optionValue||"")},disabled:i.length===0,children:i.map((k,C)=>B.jsx(Lr,{value:k.value,children:k.label},C))}),g=B.jsx("div",{style:{width:"100%"},children:B.jsx(Pd,{value:t.newValue,maxLength:t.column.maxLength,onChange:k=>t.newValue=k.target.value})}),m=B.jsx("div",{style:{width:"100%"},children:B.jsx(Rd,{checked:t.newValue===!0,onChange:(k,C)=>t.newValue=C.checked})}),b=B.jsxs("div",{style:{display:"flex",alignItems:"center"},children:[B.jsx(Nr,{children:t.selectedSelections?.[0]?.label}),B.jsxs("div",{style:{marginLeft:"auto"},children:[B.jsx(ut,{icon:B.jsx(gB,{}),onClick:()=>c(!0)})," "]})]}),w=B.jsx("div",{style:{width:"100%"},children:B.jsx(Pd,{type:"number",value:t.newValue,min:t.column.minValue,max:t.column.maxValue,step:t.column.precision?1/Math.pow(10,t.column.precision):1,onChange:k=>{const C=parseFloat(k.target.value),F=t.column.minValue??-1/0,E=t.column.maxValue??1/0;C>=F&&C<=E&&(t.newValue=k.target.value)}})}),y=B.jsx("div",{style:{width:"100%"},children:B.jsx(Pd,{value:t.newValue,type:t.column.format==="DateOnly"?"date":t.column.format==="TimeOnly"?"time":"datetime-local",onChange:k=>t.newValue=k.target.value})});return B.jsxs("div",{style:{width:"100%"},children:[t.setStatus==="Fixed"&&B.jsxs(B.Fragment,{children:[(t.column.type==="Picklist"||t.column.type==="State"||t.column.type==="Status")&&f,(t.column.type==="String"||t.column.type==="Memo")&&g,t.column.type==="Boolean"&&m,(t.column.type==="Money"||t.column.type==="Double"||t.column.type==="Integer"||t.column.type==="BigInt"||t.column.type==="Decimal")&&w,t.column.type==="DateTime"&&y,(t.column.type==="Lookup"||t.column.type==="Customer"||t.column.type==="Owner")&&b,B.jsx(vJ,{dvSvc:o,vm:r,updateField:t,dialogOpen:a,onLog:n,onDialogClose:()=>c(!1)})]}),t.setStatus==="Calculated"&&B.jsx(bJ,{dvSvc:o,vm:r,updateColumn:t,onLog:n}),t.setStatus==="Touch"&&B.jsx(Nr,{style:{fontStyle:"italic",opacity:.7},children:"Current value will be re-applied"})]})}),q_={Fixed:B.jsx(HB,{}),Calculated:B.jsx(BB,{}),Touch:B.jsx(OB,{}),"Set Null":B.jsx(UB,{})},CJ=Mo(({updateCol:e})=>B.jsx("div",{style:{width:"100%"},children:B.jsx(QS,{style:{width:"100%"},value:e.setStatus,selectedOptions:[e.setStatus],button:B.jsxs("span",{style:{display:"flex",alignItems:"center",gap:"6px"},children:[q_[e.setStatus],e.setStatus]}),onOptionSelect:(t,o)=>{e.setStatus=o.optionValue},disabled:e.column.type==="Status"||e.column.type==="State",children:gJ.map((t,o)=>B.jsx(Lr,{value:t,text:t,children:B.jsxs("span",{style:{display:"flex",alignItems:"center",gap:"6px"},children:[q_[t],t]})},o))})}));Xm.registerModules([xb,_b,XE,KE,OE,t_,Eb,cY]);const yJ=rf.withParams({headerHeight:"30px"}),SJ={sortable:!0,filter:!0,resizable:!0,flex:1,wrapText:!0,autoHeight:!0,width:100},xJ=Mo(e=>{const{dvSvc:t,vm:o,onLog:r}=e,n=[{field:"column.displayName",headerName:"Field Name",flex:2},{field:"newValue",headerName:"New Value",flex:2,cellRenderer:i=>i.data?B.jsx(wJ,{updateColumn:i.data,dvSvc:t,vm:o,onLog:r}):null},{field:"setStatus",headerName:"Action",flex:1,minWidth:150,cellRenderer:i=>{const s=i.data;return s?B.jsx(CJ,{updateCol:s}):null},singleClickEdit:!0},{field:"onlyDifferent",headerName:"Only If Different",editable:!0,cellEditor:"agCheckboxCellEditor",flex:1},{headerName:"",width:50,maxWidth:50,flex:0,sortable:!1,filter:!1,resizable:!1,cellRenderer:i=>i.data?B.jsx(ut,{appearance:"subtle",icon:B.jsx(WB,{}),size:"small",onClick:()=>{o.updateCols=o.updateCols.filter(s=>s!==i.data)}}):null}];return B.jsx(B.Fragment,{children:o.updateCols.length>0?B.jsx("div",{style:{width:"100%",height:"94vh",flexBasis:0},children:B.jsx(Ab,{theme:yJ,rowData:o.updateCols||[],defaultColDef:SJ,columnDefs:n,debug:!0})}):B.jsx("div",{style:{padding:"20px"},children:"No columns added for update. Please add columns to update."})})});function kJ(e=""){let t;switch(e){case"Datetime":t=B.jsx(pB,{style:{fontSize:"24px",verticalAlign:"Center"}});break;case"String":case"Memo":t=B.jsx(kB,{style:{fontSize:"24px",verticalAlign:"Center"}});break;case"Integer":case"Decimal":t=B.jsx(bB,{style:{fontSize:"24px",verticalAlign:"Center"}});break;case"Money":t=B.jsx(SB,{style:{fontSize:"24px",verticalAlign:"Center"}});break;case"Lookup":case"Owner":t=B.jsx(vB,{style:{fontSize:"24px",verticalAlign:"Center"}});break;case"Picklist":case"State":case"Status":t=B.jsx(FB,{style:{fontSize:"24px",verticalAlign:"Center"}});break;case"Boolean":t=B.jsx(EB,{style:{fontSize:"24px",verticalAlign:"Center"}});break;default:t=B.jsx(MB,{style:{fontSize:"24px",verticalAlign:"Center"}})}return t}const FJ=Mo(e=>{const{vm:t,utils:o}=e,[r,n]=J.useState(!0),[i,s]=J.useState(t.selectedTable?.fields.filter(m=>!m.primaryKey)||[]),[a,c]=J.useState(""),[d,h]=J.useState(t.updateCols.map(m=>m.column.logicalName));J.useEffect(()=>{d.forEach(m=>{const b=t.selectedTable?.fields.find(w=>w.logicalName===m);b&&o.getColumnAttributes(b)})},[d]);function f(){const m=[];d.forEach(b=>{const w=t.selectedTable?.fields.find(y=>y.logicalName===b);if(w&&!t.updateCols.some(y=>y.column.logicalName===w.logicalName)){if(o.getColumnAttributes(w),m.push(new wf(w)),w.type==="State"&&!m.some(y=>y.column.logicalName==="statuscode")&&!t.updateCols.some(y=>y.column.logicalName==="statuscode")){const y=t.selectedTable?.fields.find(k=>k.logicalName==="statuscode");y&&m.push(new wf(y))}if(w.type==="Status"&&!m.some(y=>y.column.logicalName==="statecode")&&!t.updateCols.some(y=>y.column.logicalName==="statecode")){const y=t.selectedTable?.fields.find(k=>k.logicalName==="statecode");y&&m.push(new wf(y))}}else m.push(t.updateCols.find(y=>y.column.logicalName===b))}),t.updateCols=m,t.updateFieldAddOpen=!1}J.useEffect(()=>{if(t.selectedTable?.fields.length!=0)if(r){const m=t.selectedTable?.fields.filter(b=>t.selectedView?t.selectedView?.fieldNames.includes(b.logicalName)&&!b.primaryKey:t.fetchFields.includes(b.logicalName)&&!b.primaryKey)||[];a&&a.trim()!==""?s(m.filter(b=>b.displayName.toLowerCase().includes(a.toLowerCase())||b.logicalName.toLowerCase().includes(a.toLowerCase()))):s(m)}else a&&a.trim()!==""?s((t.selectedTable?.fields||[]).filter(m=>!m.primaryKey&&(m.displayName.toLowerCase().includes(a.toLowerCase())||m.logicalName.toLowerCase().includes(a.toLowerCase())))):s(t.selectedTable?.fields.filter(m=>!m.primaryKey)||[])},[r,a,t.selectedView,t.fetchFields,t.selectedTable]);function g(m,b){c(b.value||"")}return B.jsx(B.Fragment,{children:B.jsxs(em,{open:t.updateFieldAddOpen,onOpenChange:(m,b)=>t.updateFieldAddOpen=b.open,size:"medium",position:"end",children:[B.jsxs(om,{children:[B.jsx(N1,{children:"Add Field to Update"}),B.jsx(L1,{children:B.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"10px"},children:[B.jsx(d1,{checked:r,label:r?"View Columns Only":"All Columns",onChange:(m,b)=>n(b.checked??!0),labelPosition:"after",style:{marginLeft:"10px"}}),B.jsx(z1,{placeholder:"Search Fields",onChange:g,style:{marginLeft:"auto",marginRight:"10px"}})]})})]}),B.jsx(tm,{children:B.jsx(G1,{selectionMode:"multiselect",onSelectionChange:(m,b)=>h(b.selectedItems),selectedItems:d,children:i.map(m=>B.jsxs(q1,{value:m.logicalName,children:[" ",B.jsxs("div",{style:{display:"flex",flexDirection:"row",border:"1px solid black",padding:"4px",margin:"4px",alignItems:"center",width:"100%"},children:[kJ(m.type??""),B.jsx(Nr,{children:m.displayName})," ",B.jsxs(Nr,{size:"small",style:{marginLeft:"4px"},children:["(",m.logicalName,")"]})]})]},m.logicalName))})}),B.jsxs(nm,{children:[B.jsx(ut,{style:{marginLeft:"auto"},appearance:"primary",onClick:f,children:"Select Fields"}),B.jsx(ut,{onClick:()=>t.updateFieldAddOpen=!1,children:"Cancel"})]})]})})}),RJ=Mo(e=>{const{dvSvc:t,vm:o,onLog:r,updateOpen:n,onDialogClose:i,utils:s}=e,[a,c]=J.useState(!1),d=async()=>{c(!0),await t.updateData(o.selectedTable,o.selectedRows,o.updateCols).then(async()=>{r("Records updated successfully","success"),window.toolboxAPI.utils.showNotification({title:"Bulk Data Studio",body:`${o.selectedRows.length} records updated successfully`,type:"success"}),c(!1),i(),await s.delayLoadData(1e3)}).catch(h=>{const f=h instanceof Error?h.message:"Failed to update records";r(f,"error"),window.toolboxAPI.utils.showNotification({title:"Bulk Data Studio",body:f,type:"error"}),c(!1),i()})};return B.jsx("div",{children:B.jsx(Gn,{open:n,onOpenChange:h=>{i()},modalType:"alert",children:B.jsxs(ys,{children:[B.jsx(Cs,{children:B.jsxs(Ss,{children:[B.jsx("p",{children:`${o.selectedRows.length} records on the ${o.selectedTable?.displayName} table
|
|
107
|
+
will unconditionally be updated.`}),B.jsx("p",{children:"UI defined rules will NOT be enforced."}),B.jsx("p",{children:"Confirm update!"})]})}),B.jsxs(ws,{children:[B.jsx(ut,{style:{marginLeft:"auto"},disabled:a,appearance:"primary",onClick:d,children:"Update Records"}),B.jsx(Fi,{disableButtonEnhancement:!0,children:B.jsx(ut,{appearance:"secondary",disabled:a,children:"Cancel"})})]})]})})})}),EJ=Mo(e=>{const{dvSvc:t,vm:o,onLog:r,updateOpen:n,onDialogClose:i,utils:s}=e,[a,c]=J.useState(!1),d=async()=>{c(!0),await t.touchData(o.selectedTable,o.selectedRows).then(async()=>{r("Records touched successfully","success"),window.toolboxAPI.utils.showNotification({title:"Bulk Data Studio",body:`${o.selectedRows.length} records touched successfully`,type:"success"}),await s.delayLoadData(1e3)}).catch(h=>{const f=h instanceof Error?h.message:"Failed to update records";r(f,"error"),window.toolboxAPI.utils.showNotification({title:"Bulk Data Studio",body:f,type:"error",duration:2e3})}).finally(()=>{c(!1),i()})};return B.jsx("div",{children:B.jsx(Gn,{open:n,onOpenChange:h=>{i()},modalType:"alert",children:B.jsxs(ys,{children:[B.jsx(Cs,{children:B.jsxs(Ss,{children:[B.jsx("p",{children:`${o.selectedRows.length} records on the ${o.selectedTable?.displayName} table
|
|
108
|
+
will "touched".`}),B.jsx("p",{children:"UI defined rules will NOT be enforced."}),B.jsx("p",{children:"Confirm update!"})]})}),B.jsxs(ws,{children:[B.jsx(ut,{style:{marginLeft:"auto"},disabled:a,appearance:"primary",onClick:d,children:"Touch Records"}),B.jsx(Fi,{disableButtonEnhancement:!0,children:B.jsx(ut,{appearance:"secondary",disabled:a,children:"Cancel"})})]})]})})})}),_J=Mo(e=>{const{dvSvc:t,vm:o,onLog:r,updateOpen:n,onDialogClose:i,utils:s}=e,[a,c]=J.useState(!1),d=async()=>{c(!0),await t.deleteData(o.selectedTable,o.selectedRows).then(async()=>{r("Records deleted successfully","success"),window.toolboxAPI.utils.showNotification({title:"Bulk Data Studio",body:`${o.selectedRows.length} records deleted successfully`,type:"success"}),await s.delayLoadData(1e3)}).catch(h=>{const f=h instanceof Error?h.message:"Failed to delete records";r(f,"error"),window.toolboxAPI.utils.showNotification({title:"Bulk Data Studio",body:f,type:"error"})}).finally(()=>{c(!1),i()})};return B.jsx("div",{children:B.jsx(Gn,{open:n,onOpenChange:h=>{i()},modalType:"alert",children:B.jsxs(ys,{children:[B.jsx(Cs,{children:B.jsxs(Ss,{children:[B.jsx("p",{children:`${o.selectedRows.length} records on the ${o.selectedTable?.displayName} table will be permanently deleted.`}),B.jsx("p",{style:{fontWeight:"bold",color:"red"},children:"This action cannot be undone!"}),B.jsx("p",{children:"Confirm deletion!"})]})}),B.jsxs(ws,{children:[B.jsx(ut,{style:{marginLeft:"auto"},disabled:a,appearance:"primary",onClick:d,children:"Delete Records"}),B.jsx(Fi,{disableButtonEnhancement:!0,children:B.jsx(ut,{appearance:"secondary",disabled:a,children:"Cancel"})})]})]})})})}),PJ=Mo(e=>{const{dvSvc:t,vm:o,utils:r,onLog:n}=e;return B.jsxs("div",{children:[B.jsx(xJ,{dvSvc:t,vm:o,onLog:n}),o.updateFieldAddOpen&&B.jsx(FJ,{vm:o,utils:r}),o.updateDialogOpen&&B.jsx(RJ,{dvSvc:t,vm:o,utils:r,onLog:n,updateOpen:o.updateDialogOpen,onDialogClose:()=>o.updateDialogOpen=!1}),o.touchDialogOpen&&B.jsx(EJ,{dvSvc:t,vm:o,utils:r,onLog:n,updateOpen:o.touchDialogOpen,onDialogClose:()=>o.touchDialogOpen=!1}),o.deleteDialogOpen&&B.jsx(_J,{dvSvc:t,vm:o,utils:r,onLog:n,updateOpen:o.deleteDialogOpen,onDialogClose:()=>o.deleteDialogOpen=!1})]})}),DJ=Mo(e=>{const{vm:t}=e,[o,r]=J.useState(t.fetchXml||"");J.useEffect(()=>{t.fetchXmlEditorOpen&&r(t.fetchXml||"")},[t.fetchXmlEditorOpen,t.fetchXml]);const n=()=>{t.fetchXml=o,t.fetchXmlEditorOpen=!1},i=()=>{t.fetchXmlEditorOpen=!1};return B.jsx(Gn,{open:t.fetchXmlEditorOpen,onOpenChange:(s,a)=>t.fetchXmlEditorOpen=a.open,children:B.jsxs(ys,{style:{maxWidth:"800px"},children:[B.jsx(Cs,{children:B.jsx(Ss,{children:B.jsx("div",{style:{minHeight:"400px",display:"flex",flexDirection:"column"},children:B.jsx(bs,{label:"FetchXML",style:{flex:1,display:"flex",flexDirection:"column"},children:B.jsx(hk,{value:o,onValueChange:r,highlight:s=>nh.highlight(s,nh.languages.markup,"markup"),padding:12,className:"fetchxml-editor",preClassName:"fetchxml-editor__pre",textareaClassName:"fetchxml-editor__textarea",style:{flex:1}})})})})}),B.jsxs(ws,{children:[B.jsx(ut,{appearance:"secondary",onClick:i,children:"Cancel"}),B.jsx(ut,{appearance:"primary",onClick:n,children:"Save"})]})]})})}),TJ=Mo(e=>{const{connection:t,dvSvc:o,vm:r,utils:n,onLog:i}=e;function s(){if(r.updateCols.length===0){window.toolboxAPI.utils.showNotification({title:"Incomplete Field Values",body:"No fields have been added to update. Please add fields before updating data.",type:"warning"});return}if(r.updateCols.some(h=>h.isValid===!1)){window.toolboxAPI.utils.showNotification({title:"Incomplete Field Values",body:"Please provide values for all fields set to 'Fixed' before updating data.",type:"warning"});return}r.updateDialogOpen=!0}async function a(){if(!r.selectedTable){window.toolboxAPI.utils.showNotification({title:"No Table Selected",body:"Please select a table before saving the configuration.",type:"warning"});return}const h={table:{logicalName:r.selectedTable.logicalName},updateColumns:r.updateCols.map(f=>({columnName:f.column.logicalName,setStatus:f.setStatus,onlyDifferent:f.onlyDifferent,newValue:f.newValue,selectedSelections:f.selectedSelections,expressionTemplate:f.expressionTemplate}))};i("Saving configuration...","info");try{await window.toolboxAPI.fileSystem.saveFile(`${r.selectedTable.logicalName}-BulkConfig.json`,JSON.stringify(h,null,2)),i("Configuration saved successfully","success"),window.toolboxAPI.utils.showNotification({title:"Configuration Saved",body:"Configuration has been saved successfully.",type:"success"})}catch(f){i(`Error saving configuration: ${f}`,"error"),window.toolboxAPI.utils.showNotification({title:"Error Saving Configuration",body:`An error occurred while saving the configuration: ${f}`,type:"error"})}}async function c(){try{const h=await window.toolboxAPI.fileSystem.selectPath({type:"file",title:"Select Configuration File",filters:[{name:"JSON Files",extensions:["json"]},{name:"All Files",extensions:["*"]}]});if(h){i(`Selected configuration file: ${h}`,"info");const f=await window.toolboxAPI.fileSystem.readText(h);i("Reading configuration file...","info");const g=JSON.parse(f);if(!g||typeof g!="object")throw new Error("Invalid configuration: Configuration must be an object");if(!g.table||typeof g.table!="object")throw new Error("Invalid configuration: Missing or invalid 'table' property");if(!g.table.logicalName||typeof g.table.logicalName!="string")throw new Error("Invalid configuration: Missing or invalid 'table.logicalName' property");if(!g.updateColumns||!Array.isArray(g.updateColumns))throw new Error("Invalid configuration: Missing or invalid 'updateColumns' array");i("Configuration structure validated","info"),r.tables.length===0&&await o.getTables().then(w=>{r.tables=w}).catch(w=>{throw i(`Error loading tables: ${w}`,"error"),w});const m=r.tables.find(w=>w.logicalName===g.table.logicalName);if(!m){window.toolboxAPI.utils.showNotification({title:"Table Not Found",body:`The table "${g.table.logicalName}" was not found. Please ensure the table exists in your environment.`,type:"error"});return}r.selectedTable=m,(!r.selectedTable.fields||r.selectedTable.fields.length===0)&&await o.getFields(r.selectedTable.logicalName).then(w=>r.selectedTable.fields=w).catch(w=>{throw w});const b=[];for(const w of g.updateColumns){if(!w.columnName||typeof w.columnName!="string"){i("Skipping invalid column configuration: missing or invalid columnName","warning");continue}const y=m.fields.find(k=>k.logicalName===w.columnName);if(y){const k=new wf(y);if(k.setStatus=w.setStatus||"Fixed",k.onlyDifferent=w.onlyDifferent||!1,k.newValue=w.newValue,k.selectedSelections=w.selectedSelections,k.expressionTemplate=w.expressionTemplate,y.type==="Lookup"&&!y.lookupTargetTable)try{const C=await o.getLookupTargetTable(r.selectedTable.logicalName,y.logicalName);if(y.lookupTargetTable=r.tables.find(F=>F.logicalName===C),y.lookupTargetTable&&!y.lookupTargetTable.views){const F=await o.getViews(y.lookupTargetTable);y.lookupTargetTable.views=F}if(y.lookupTargetTable&&!y.lookupTargetTable.fields){const F=await o.getFields(y.lookupTargetTable.logicalName);y.lookupTargetTable.fields=F}}catch(C){i(`Error loading lookup metadata for field ${y.logicalName}: ${C}`,"warning")}else if((y.type==="Picklist"||y.type==="State"||y.type==="Status")&&(!y.choiceValues||y.choiceValues.length===0))try{const C=await o.getChoiceValues(r.selectedTable.logicalName,y);y.choiceValues=C}catch(C){i(`Error loading choice values for field ${y.logicalName}: ${C}`,"warning")}b.push(k)}else i(`Field "${w.columnName}" not found in table "${m.logicalName}"`,"warning")}r.updateCols=b,i(`Configuration loaded successfully with ${b.length} fields`,"success"),window.toolboxAPI.utils.showNotification({title:"Configuration Loaded",body:"Configuration has been loaded successfully.",type:"success"})}}catch(h){i(`Error loading configuration: ${h}`,"error"),window.toolboxAPI.utils.showNotification({title:"Error Loading Configuration",body:`An error occurred while loading the configuration: ${h}`,type:"error"})}}const d=B.jsx("div",{children:B.jsxs(R1,{style:{justifyContent:"space-between"},children:[B.jsxs(Kg,{children:[B.jsxs(n1,{children:[B.jsx(qg,{disableButtonEnhancement:!0,children:B.jsx(HS,{disabled:r.isDataLoading,children:"Fetch Data"})}),B.jsx(u1,{children:B.jsxs(c1,{children:[B.jsx(Wg,{onClick:()=>{r.viewSelectorOpen=!0,r.fetchXml=""},children:"Open View"}),B.jsx(Wg,{onClick:()=>{r.fetchXmlEditorOpen=!0,r.selectedView=void 0},children:"Edit FetchXML"})]})})]}),B.jsx(Vn,{content:"Open Configuration",relationship:"label",children:B.jsx(ut,{icon:B.jsx(IB,{}),onClick:c,disabled:!r.selectedView,children:"Open Job"})}),B.jsx(Vn,{content:"Save Configuration",relationship:"label",children:B.jsx(ut,{icon:B.jsx(CB,{}),onClick:a,disabled:!r.updateCols||r.updateCols.length===0,children:"Save Job"})})]}),B.jsxs(Kg,{children:[B.jsx(Vn,{content:"Managed Fields to Update",relationship:"label",children:B.jsx(ut,{icon:B.jsx(yB,{}),onClick:()=>{r.updateFieldAddOpen=!0},disabled:!r.selectedTable,children:"Add Config"})}),B.jsx(Vn,{content:"Update Selected rows with configured values",relationship:"label",children:B.jsx(ut,{icon:B.jsx(xB,{}),onClick:s,disabled:r.updateCols.length===0||r.selectedRows.length===0,children:"Update Rows"})}),B.jsx(Vn,{content:"Touch Records Only",relationship:"label",children:B.jsx(ut,{icon:B.jsx(wB,{}),onClick:()=>{r.touchDialogOpen=!0},disabled:r.updateCols.length!==0||r.selectedRows.length===0})}),B.jsx(Vn,{content:"Delete Records",relationship:"label",children:B.jsx(ut,{icon:B.jsx(AB,{}),onClick:()=>{r.deleteDialogOpen=!0},disabled:r.selectedRows.length===0})})]})]})});return B.jsxs("div",{children:[d,r.viewSelectorOpen&&B.jsx(d8,{dvSvc:o,vm:r,onLog:i}),r.fetchXmlEditorOpen&&B.jsx(DJ,{vm:r,onLog:i}),B.jsx("div",{style:{height:"94vh"},children:B.jsxs(Gb,{defaultSizes:[100,200],children:[B.jsx(Gb.Pane,{minSize:200,children:B.jsx("div",{children:B.jsx(qQ,{connection:t,vm:r,utils:n,onLog:i})})}),B.jsx(Gb.Pane,{minSize:300,children:B.jsx(PJ,{dvSvc:o,vm:r,utils:n,onLog:i})})]})})]})});class MJ{viewSelectorOpen=!1;tables=[];selectedTable;selectedView;updateFieldAddOpen=!1;selectedRows=[];updateCols=[];data;isDataLoading=!1;updateDialogOpen=!1;touchDialogOpen=!1;deleteDialogOpen=!1;fetchXmlEditorOpen=!1;fetchXml;fetchFields=[];constructor(){Ax(this)}}class AJ{logicalName;displayName;type;primaryKey;choiceValues;lookupTargetTable;minValue;maxValue;precision;maxLength;format;constructor(t,o,r,n=!1){this.logicalName=t,this.displayName=o,this.type=r,this.primaryKey=n}get dataName(){switch(this.type){case"Lookup":case"Owner":return`_${this.logicalName}_value@OData.Community.Display.V1.FormattedValue`;case"Picklist":case"State":case"Status":return`${this.logicalName}@OData.Community.Display.V1.FormattedValue`;default:return this.logicalName}}}class IJ{connection;dvApi;onLog;batchSize=2;constructor(t){this.connection=t.connection,this.dvApi=t.dvApi,this.onLog=t.onLog}async getTables(){if(!this.connection)throw new Error("No connection available");this.onLog(`Loading tables for connection: ${this.connection.name}`,"info");try{return await this.dvApi.getAllEntitiesMetadata(["LogicalName","ObjectTypeCode","DisplayName","PrimaryIdAttribute","PrimaryNameAttribute","EntitySetName"]).then(o=>o.value.filter(n=>n.PrimaryNameAttribute).map(n=>({logicalName:n.LogicalName,displayName:n.DisplayName?.UserLocalizedLabel?.Label||n.LogicalName,id:n.MetadataId,typeCode:n.ObjectTypeCode,primaryIdAttribute:n.PrimaryIdAttribute,primaryNameAttribute:n.PrimaryNameAttribute,setName:n.EntitySetName})).sort((n,i)=>n.displayName.localeCompare(i.displayName)))}catch(t){throw this.onLog(`Error loading tables: ${t.message}`,"error"),t}}async getViews(t){if(!this.connection)throw this.onLog("No connection available","error"),new Error("No connection available");try{const o=["<fetch>"," <entity name='savedquery'>"," <attribute name='name'/>"," <attribute name='fetchxml'/>"," <filter>",` <condition attribute='returnedtypecode' operator='eq' value='${t.typeCode}'/>`," <condition attribute='statecode' operator='eq' value='0'/>"," <condition attribute='querytype' operator='eq' value='0 '/>"," <condition attribute='fetchxml' operator='not-null' />"," </filter>"," </entity>","</fetch>"].join(""),r=await this.dvApi.fetchXmlQuery(o),i=(Array.isArray(r?.value)?r.value:Array.isArray(r)?r:[]).map(s=>({id:s.savedqueryid??s.id??"",label:s.name??"",fetchXml:s.fetchxml??s.fetchXml??""}));return this.onLog(`Loaded ${i.length} views for table ${t.displayName}`,"success"),i}catch(o){throw this.onLog(`Error loading views for table ${t.displayName}: ${o}`,"error"),console.error("Error loading views:",o),o}}async loadData(t){if(!this.connection)throw this.onLog("No connection available","error"),new Error("No connection available");this.onLog("Loading data from Dataverse...","info");try{const o=await this.dvApi.fetchXmlQuery(t),r=Array.isArray(o?.value)?o.value:Array.isArray(o)?o:[];return this.onLog(`Loaded ${r.length} records from Dataverse`,"success"),r}catch(o){throw this.onLog(`Error loading data: ${o}`,"error"),console.error("Error loading data:",o),o}}async getFields(t){if(!this.connection)throw this.onLog("No connection available","error"),new Error("No connection available");try{const o=`EntityDefinitions(LogicalName='${t}')/Attributes?$select=LogicalName,DisplayName,AttributeType,IsPrimaryId&$filter=IsValidForUpdate eq true`,r=await this.dvApi.queryData(o),n=(Array.isArray(r?.value)?r.value:[]).map(i=>new AJ(i.LogicalName,i.DisplayName?.UserLocalizedLabel?.Label||i.LogicalName,i.AttributeType,i.IsPrimaryId)).sort((i,s)=>i.displayName.localeCompare(s.displayName));return this.onLog(`Loaded ${n.length} fields for table ${t}`,"success"),n}catch(o){throw this.onLog(`Error loading fields for table ${t}: ${o}`,"error"),console.error(`Error loading fields for table ${t}:`,o),o}}async getChoiceValues(t,o){if(!this.connection)throw this.onLog("No connection available","error"),new Error("No connection available");try{this.onLog(`Loading picklist values for field: ${o.logicalName}`,"info");let r;switch(o.type){case"Picklist":r="PicklistAttributeMetadata";break;case"State":r="StateAttributeMetadata";break;case"Status":r="StatusAttributeMetadata";break;default:throw new Error(`Field type ${o.type} is not supported for choice values retrieval`)}const n=`EntityDefinitions(LogicalName='${t}')/Attributes(LogicalName='${o.logicalName}')/Microsoft.Dynamics.CRM.${r}?$select=LogicalName&$expand=OptionSet`;return((await this.dvApi.queryData(n)).OptionSet?.Options||[]).map(c=>({label:c.Label?.UserLocalizedLabel?.Label||"",value:c.Value.toString(),defaultStatus:c.DefaultStatus,parentState:c.State}))}catch(r){throw this.onLog(`Error loading picklist values: ${r}`,"error"),console.error("Error loading picklist values:",r),r}}async getLookupTargetTable(t,o){if(!this.connection)throw this.onLog("No connection available","error"),new Error("No connection available");try{this.onLog(`Retrieving lookup target table for field: ${o}`,"info");const r=`EntityDefinitions(LogicalName='${t}')/Attributes(LogicalName='${o}')/Microsoft.Dynamics.CRM.LookupAttributeMetadata?$select=Targets`,i=(await this.dvApi.queryData(r)).Targets||[];return i.length>0?i[0]:null}catch(r){throw this.onLog(`Error retrieving lookup target table: ${r}`,"error"),console.error("Error retrieving lookup target table:",r),r}}async updateData(t,o,r){return new Promise(async(n,i)=>{this.connection||(this.onLog("No connection available","error"),i(new Error("No connection available"))),(!t||!o||o.length===0)&&(this.onLog("No table or rows selected for data update","error"),i(new Error("No table or rows selected for data update"))),(!r||r.length===0)&&(this.onLog("No fields selected for data update","error"),i(new Error("No fields selected for data update")));const s=await this.evaluateCalculatedColumns(t,o,r),a=s.filter(g=>g.setStatus==="Touch"),c=s.some(g=>g.setStatus==="Calculated"),d=s.some(g=>g.onlyDifferent)||a.length>0;let h=[];if(d||c){const g=new Set;a.forEach(w=>g.add(w.column.logicalName)),s.filter(w=>w.onlyDifferent).forEach(w=>g.add(w.column.logicalName));const m=new Map,b=[];for(let w=0;w<o.length;w+=this.batchSize)b.push(o.slice(w,w+this.batchSize));g.size>0&&await Promise.all(b.map(async w=>{const y=w.map(_=>`<value>${_.value}</value>`).join(""),k=Array.from(g).map(_=>`<attribute name='${_}'/>`).join(""),C=`<fetch>
|
|
109
|
+
<entity name="${t.logicalName}">
|
|
110
|
+
${k}
|
|
111
|
+
<filter type="and">
|
|
112
|
+
<condition attribute="${t.primaryIdAttribute}" operator="in">${y}
|
|
113
|
+
</condition>
|
|
114
|
+
</filter>
|
|
115
|
+
</entity>
|
|
116
|
+
</fetch>`,F=await this.dvApi.fetchXmlQuery(C);this.onLog(`Fetched records for update evaluation: ${JSON.stringify(F)}`,"info"),(Array.isArray(F?.value)?F.value:[]).forEach(_=>m.set(_[t.primaryIdAttribute],_))})),h=o.map(w=>{const y=m.get(w.value),k={[t.primaryIdAttribute]:w.value,"@odata.type":`Microsoft.Dynamics.CRM.${t.logicalName}`};return s.forEach(C=>{if(C.setStatus==="Touch"){if(y){const F=this.getTouchValue(C,y);F!==void 0&&(k[C.dbField]=F)}}else if(C.setStatus==="Calculated"){const F=w;F.updatePayload&&F.updatePayload[C.dbField]!==void 0&&(k[C.dbField]=F.updatePayload[C.dbField])}else C.onlyDifferent?(!y||y[C.column.logicalName]!==C.dbValue)&&(k[C.dbField]=C.dbValue):k[C.dbField]=C.dbValue}),k})}else h=o.map(g=>({[t.primaryIdAttribute]:g.value,"@odata.type":`Microsoft.Dynamics.CRM.${t.logicalName}`,...s.reduce((m,b)=>(m[b.dbField]=b.dbValue,m),{})}));const f=[];for(let g=0;g<h.length;g+=this.batchSize)f.push(h.slice(g,g+this.batchSize));this.onLog(`Updating ${h.length} records in table: ${t.displayName}`,"info"),window.toolboxAPI.utils.executeParallel(()=>Promise.all(f.map(g=>this.dvApi.updateMultiple(t.logicalName,g)))).then(()=>{this.onLog(`Successfully updated ${h.length} records`,"success"),n()}).catch(g=>{this.onLog(`Error creating data: ${g}`,"error"),console.error("Error creating data:",g),i(g)})})}getTouchValue(t,o){switch(t.column.type){case"Lookup":case"Owner":{const r=o[`_${t.column.logicalName}_value`];if(!r)return null;const n=t.column.lookupTargetTable?.setName;return n?`/${n}(${r})`:void 0}default:return o[t.column.logicalName]}}async evaluateCalculatedColumns(t,o,r){const n=r.filter(s=>s.setStatus==="Calculated");if(n.length===0)return r;const i=new Set;if(n.forEach(s=>{(s.expressionTemplate?.match(/\{[^}]+\}/g)||[]).forEach(c=>{const d=c.slice(1,-1),[h]=d.split("|",1);if(h.includes(".")){this.onLog(`Calculated expression contains navigation field "${h}". Related entity fields are not auto-fetched; ensure required data is pre-loaded.`,"warning");return}const f=h.trim();f&&i.add(f)})}),i.size>0){const s=Array.from(i),a=[];for(let h=0;h<o.length;h+=this.batchSize)a.push(o.slice(h,h+this.batchSize));const c=new Map;return await Promise.all(a.map(async h=>{const f=h.map(b=>`<value>${b.value}</value>`).join(""),g=s.map(b=>`<attribute name='${b}'/>`).join(""),m=`<fetch>
|
|
117
|
+
<entity name="${t.logicalName}">
|
|
118
|
+
${g}
|
|
119
|
+
<filter type="and">
|
|
120
|
+
<condition attribute="${t.primaryIdAttribute}" operator="in">${f}
|
|
121
|
+
</condition>
|
|
122
|
+
</filter>
|
|
123
|
+
</entity>
|
|
124
|
+
</fetch>`;try{const b=await this.dvApi.fetchXmlQuery(m);(Array.isArray(b?.value)?b.value:[]).forEach(y=>{c.set(y[t.primaryIdAttribute],y)})}catch(b){this.onLog(`Error fetching records for calculated columns: ${b}`,"warning")}})),r.map(h=>{if(h.setStatus==="Calculated"&&h.expressionTemplate){let f;o.forEach(g=>{const m=c.get(g.value);if(m){const b=jb.evaluate(h.expressionTemplate,{record:m});if(!b.error&&b.value!==void 0){const w=g;w.updatePayload=w.updatePayload||{},w.updatePayload[h.dbField]=b.value,f===void 0&&(f=b.value),h.calculationError=void 0}else b.error&&(h.calculationError=b.error)}}),f!==void 0&&(h.previewValue=f)}return h})}return r}async getNumericFieldLimits(t,o){return new Promise((r,n)=>{if(!this.connection)throw this.onLog("No connection available","error"),new Error("No connection available");const i=`EntityDefinitions(LogicalName='${o}')/Attributes(LogicalName='${t.logicalName}')`;this.dvApi.queryData(i).then(s=>{s?(t.minValue=s.MinValue,t.maxValue=s.MaxValue,t.precision=s.Precision,r()):(n(new Error(`No metadata found for field: ${t.logicalName}`)),this.onLog(`No metadata found for field: ${t.logicalName}`,"warning"))}).catch(s=>{this.onLog(`Error retrieving numeric field limits: ${s}`,"error"),n(s)})})}async getStringFieldLimits(t,o){return new Promise((r,n)=>{this.connection||(this.onLog("No connection available","error"),n(Error("No connection available")));const i=`EntityDefinitions(LogicalName='${o}')/Attributes(LogicalName='${t.logicalName}')`;this.dvApi.queryData(i).then(s=>{s?(t.maxLength=s.MaxLength,r()):(n(new Error(`No metadata found for field: ${t.logicalName}`)),this.onLog(`No metadata found for field: ${t.logicalName}`,"warning"))}).catch(s=>{this.onLog(`Error retrieving string field limits: ${s}`,"error"),n(s)})})}async getDateColumnFormat(t,o){return new Promise((r,n)=>{this.connection||(this.onLog("No connection available","error"),n(Error("No connection available")));const i=`EntityDefinitions(LogicalName='${o}')/Attributes(LogicalName='${t.logicalName}')`;this.dvApi.queryData(i).then(s=>{s?(t.format=s.Format,r()):(n(new Error(`No metadata found for field: ${t.logicalName}`)),this.onLog(`No metadata found for field: ${t.logicalName}`,"warning"))}).catch(s=>{this.onLog(`Error retrieving date column format: ${s}`,"error"),n(s)})})}async touchData(t,o){return new Promise(async(r,n)=>{if(!this.connection){this.onLog("No connection available","error"),n(new Error("No connection available"));return}if(!t||!o||o.length===0){this.onLog("No table or rows selected for data touch","error"),n(new Error("No table or rows selected for data touch"));return}const i=[];for(let s=0;s<o.length;s+=this.batchSize)i.push(o.slice(s,s+this.batchSize));try{await Promise.all(i.map(async s=>{const a=s.map(f=>`<value>${f.value}</value>`).join(""),c=`<fetch>
|
|
125
|
+
<entity name="${t.logicalName}">
|
|
126
|
+
<attribute name="${t.primaryNameAttribute}" />
|
|
127
|
+
<filter type="and">
|
|
128
|
+
<condition attribute="${t.primaryIdAttribute}" operator="in">${a}
|
|
129
|
+
</condition>
|
|
130
|
+
</filter>
|
|
131
|
+
</entity>
|
|
132
|
+
</fetch>`,h=(await this.dvApi.fetchXmlQuery(c)).value.map(f=>({[t.primaryIdAttribute]:f[t.primaryIdAttribute],[t.primaryNameAttribute]:f[t.primaryNameAttribute],"@odata.type":`Microsoft.Dynamics.CRM.${t.logicalName}`}));await this.dvApi.updateMultiple(t.logicalName,h)})),this.onLog(`Successfully touched ${o.length} records`,"success"),r()}catch(s){this.onLog(`Error touching data: ${s}`,"error"),n(s)}})}async deleteData(t,o){return new Promise(async(r,n)=>{if(!this.connection){this.onLog("No connection available","error"),n(new Error("No connection available"));return}if(!t||!o||o.length===0){this.onLog("No table or rows selected for deletion","error"),n(new Error("No table or rows selected for deletion"));return}const i=[];for(let s=0;s<o.length;s+=this.batchSize)i.push(o.slice(s,s+this.batchSize));this.onLog(`Deleting ${o.length} records from table: ${t.displayName}`,"info");try{await Promise.all(i.map(async s=>{await Promise.all(s.map(async a=>{await this.dvApi.delete(t.logicalName,a.value)}))})),this.onLog(`Successfully deleted ${o.length} records`,"success"),r()}catch(s){this.onLog(`Error deleting data: ${s}`,"error"),n(s)}})}}class BJ{dvSvc;vm;onLog;constructor(t){this.dvSvc=t.dvSvc,this.vm=t.vm,this.onLog=t.onLog}async loadData(){if(this.vm.selectedView){this.onLog(`Loading data for view: ${this.vm.selectedView.label}`,"info");const t=await this.dvSvc.loadData(this.vm.selectedView.fetchXml);this.vm.data=t,this.onLog(`Loaded ${t.length} records from view: ${this.vm.selectedView.label}`,"success")}else if(this.vm.fetchXml){this.onLog("Loading data for custom FetchXML","info");const t=await this.dvSvc.loadData(this.vm.fetchXml);this.vm.data=t,this.onLog(`Loaded ${t.length} records for custom FetchXML`,"success")}}async delayLoadData(t){return new Promise(o=>{setTimeout(async()=>{await this.loadData(),o()},t)})}async getColumnAttributes(t,o){return new Promise(async(r,n)=>{switch(t.type){case"Picklist":case"State":case"Status":!t.choiceValues||t.choiceValues.length===0?await this.dvSvc.getChoiceValues(o||this.vm.selectedTable?.logicalName||"",t).then(i=>{t.choiceValues=i,r()}).catch(i=>{this.onLog(`Error loading choice values for field ${t.logicalName}: ${i.message}`,"error"),n(i)}):r();break;case"Money":case"Double":case"Integer":case"BigInt":case"Decimal":t.minValue===void 0||t.maxValue===void 0?await this.dvSvc.getNumericFieldLimits(t,o||this.vm.selectedTable?.logicalName||"").then(()=>{r()}).catch(i=>{this.onLog(`Error loading numeric limits for field ${t.logicalName}: ${i.message}`,"error"),n(i)}):r();break;case"String":case"Memo":t.maxLength===void 0?await this.dvSvc.getStringFieldLimits(t,o||this.vm.selectedTable?.logicalName||"").then(()=>{r()}).catch(i=>{this.onLog(`Error loading max length for field ${t.logicalName}: ${i.message}`,"error"),n(i)}):r();break;case"DateTime":t.format===void 0?await this.dvSvc.getDateColumnFormat(t,o||this.vm.selectedTable?.logicalName||"").then(()=>{r()}).catch(i=>{this.onLog(`Error loading date format for field ${t.logicalName}: ${i.message}`,"error"),n(i)}):r();break;default:r()}})}}function OJ(){const{connection:e,refreshConnection:t}=BT(),{addLog:o}=NT(),[r,n]=S.useState("light"),i=S.useCallback(async(d,h)=>{switch(d){case"connection:updated":case"connection:created":t();break;case"connection:deleted":t();break;case"terminal:output":case"terminal:command:completed":case"terminal:error":break;case"settings:updated":h&&h.theme&&(document.body.setAttribute("data-theme",h.theme),document.body.setAttribute("data-ag-theme-mode",h.theme),n(h.theme));break;default:o(`Unhandled event: ${d}`,"warning");break}},[t,o]);OT(i),S.useEffect(()=>{(async()=>{const d=await window.toolboxAPI.utils.getCurrentTheme();document.body.setAttribute("data-theme",d),document.body.setAttribute("data-ag-theme-mode",d),n(d)})(),o("Bulk Data Studio initialized","success")},[o]);const s=S.useMemo(()=>e?new IJ({connection:e,dvApi:window.dataverseAPI,onLog:o}):null,[e,o]),[a]=S.useState(()=>new MJ),c=S.useMemo(()=>e?new BJ({dvSvc:s,vm:a,onLog:o}):null,[s,a,o]);return B.jsx(Cy,{theme:r==="dark"?HI:LI,children:B.jsx(TJ,{connection:e,dvSvc:s,vm:a,onLog:o,utils:c})})}const lu=document.getElementById("root");lu&&!lu.hasAttribute("data-reactroot-initialized")?(lu.setAttribute("data-reactroot-initialized","true"),IT.createRoot(lu).render(B.jsx(S.StrictMode,{children:B.jsx(OJ,{})}))):lu||console.error('Root element not found. Make sure the HTML contains <div id="root"></div>')})();
|