@riab/illumis-components 1.0.0-beta.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.
@@ -0,0 +1,666 @@
1
+ (function(wa){typeof define=="function"&&define.amd?define(wa):wa()})((function(){"use strict";function wa(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const mt={},ba=[],go=()=>{},wb=()=>!1,Hu=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),bp=e=>e.startsWith("onUpdate:"),Lt=Object.assign,yp=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},cI=Object.prototype.hasOwnProperty,Ct=(e,t)=>cI.call(e,t),Ne=Array.isArray,ya=e=>Il(e)==="[object Map]",Sa=e=>Il(e)==="[object Set]",bb=e=>Il(e)==="[object Date]",Ze=e=>typeof e=="function",jt=e=>typeof e=="string",Yi=e=>typeof e=="symbol",Ft=e=>e!==null&&typeof e=="object",yb=e=>(Ft(e)||Ze(e))&&Ze(e.then)&&Ze(e.catch),Sb=Object.prototype.toString,Il=e=>Sb.call(e),uI=e=>Il(e).slice(8,-1),Vu=e=>Il(e)==="[object Object]",Wu=e=>jt(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Ml=wa(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),zu=e=>{const t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},dI=/-\w/g,Tn=zu(e=>e.replace(dI,t=>t.slice(1).toUpperCase())),hI=/\B([A-Z])/g,Zn=zu(e=>e.replace(hI,"-$1").toLowerCase()),Uu=zu(e=>e.charAt(0).toUpperCase()+e.slice(1)),Sp=zu(e=>e?`on${Uu(e)}`:""),Xn=(e,t)=>!Object.is(e,t),$u=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},Rb=(e,t,n,i=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:i,value:n})},ju=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Rp=e=>{const t=jt(e)?Number(e):NaN;return isNaN(t)?e:t};let Fb;const Ku=()=>Fb||(Fb=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Ei(e){if(Ne(e)){const t={};for(let n=0;n<e.length;n++){const i=e[n],o=jt(i)?mI(i):Ei(i);if(o)for(const r in o)t[r]=o[r]}return t}else if(jt(e)||Ft(e))return e}const fI=/;(?![^(]*\))/g,pI=/:([^]+)/,gI=/\/\*[^]*?\*\//g;function mI(e){const t={};return e.replace(gI,"").split(fI).forEach(n=>{if(n){const i=n.split(pI);i.length>1&&(t[i[0].trim()]=i[1].trim())}}),t}function Kt(e){let t="";if(jt(e))t=e;else if(Ne(e))for(let n=0;n<e.length;n++){const i=Kt(e[n]);i&&(t+=i+" ")}else if(Ft(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const vI=wa("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function xb(e){return!!e||e===""}function CI(e,t){if(e.length!==t.length)return!1;let n=!0;for(let i=0;n&&i<e.length;i++)n=Cs(e[i],t[i]);return n}function Cs(e,t){if(e===t)return!0;let n=bb(e),i=bb(t);if(n||i)return n&&i?e.getTime()===t.getTime():!1;if(n=Yi(e),i=Yi(t),n||i)return e===t;if(n=Ne(e),i=Ne(t),n||i)return n&&i?CI(e,t):!1;if(n=Ft(e),i=Ft(t),n||i){if(!n||!i)return!1;const o=Object.keys(e).length,r=Object.keys(t).length;if(o!==r)return!1;for(const s in e){const a=e.hasOwnProperty(s),l=t.hasOwnProperty(s);if(a&&!l||!a&&l||!Cs(e[s],t[s]))return!1}}return String(e)===String(t)}function Fp(e,t){return e.findIndex(n=>Cs(n,t))}const Pb=e=>!!(e&&e.__v_isRef===!0),Xe=e=>jt(e)?e:e==null?"":Ne(e)||Ft(e)&&(e.toString===Sb||!Ze(e.toString))?Pb(e)?Xe(e.value):JSON.stringify(e,Eb,2):String(e),Eb=(e,t)=>Pb(t)?Eb(e,t.value):ya(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[i,o],r)=>(n[xp(i,r)+" =>"]=o,n),{})}:Sa(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>xp(n))}:Yi(t)?xp(t):Ft(t)&&!Ne(t)&&!Vu(t)?String(t):t,xp=(e,t="")=>{var n;return Yi(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};let Jn;class wI{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=Jn,!t&&Jn&&(this.index=(Jn.scopes||(Jn.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].pause();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].resume();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].resume()}}run(t){if(this._active){const n=Jn;try{return Jn=this,t()}finally{Jn=n}}}on(){++this._on===1&&(this.prevScope=Jn,Jn=this)}off(){this._on>0&&--this._on===0&&(Jn=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let n,i;for(n=0,i=this.effects.length;n<i;n++)this.effects[n].stop();for(this.effects.length=0,n=0,i=this.cleanups.length;n<i;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,i=this.scopes.length;n<i;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const o=this.parent.scopes.pop();o&&o!==this&&(this.parent.scopes[this.index]=o,o.index=this.index)}this.parent=void 0}}}function bI(){return Jn}let Dt;const Pp=new WeakSet;class Db{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,Jn&&Jn.active&&Jn.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Pp.has(this)&&(Pp.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Ab(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,_b(this),Ib(this);const t=Dt,n=Zi;Dt=this,Zi=!0;try{return this.fn()}finally{Mb(this),Dt=t,Zi=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Ap(t);this.deps=this.depsTail=void 0,_b(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Pp.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Tp(this)&&this.run()}get dirty(){return Tp(this)}}let Tb=0,kl,Ll;function Ab(e,t=!1){if(e.flags|=8,t){e.next=Ll,Ll=e;return}e.next=kl,kl=e}function Ep(){Tb++}function Dp(){if(--Tb>0)return;if(Ll){let t=Ll;for(Ll=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;kl;){let t=kl;for(kl=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(i){e||(e=i)}t=n}}if(e)throw e}function Ib(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Mb(e){let t,n=e.depsTail,i=n;for(;i;){const o=i.prevDep;i.version===-1?(i===n&&(n=o),Ap(i),yI(i)):t=i,i.dep.activeLink=i.prevActiveLink,i.prevActiveLink=void 0,i=o}e.deps=t,e.depsTail=n}function Tp(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(kb(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function kb(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===_l)||(e.globalVersion=_l,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Tp(e))))return;e.flags|=2;const t=e.dep,n=Dt,i=Zi;Dt=e,Zi=!0;try{Ib(e);const o=e.fn(e._value);(t.version===0||Xn(o,e._value))&&(e.flags|=128,e._value=o,t.version++)}catch(o){throw t.version++,o}finally{Dt=n,Zi=i,Mb(e),e.flags&=-3}}function Ap(e,t=!1){const{dep:n,prevSub:i,nextSub:o}=e;if(i&&(i.nextSub=o,e.prevSub=void 0),o&&(o.prevSub=i,e.nextSub=void 0),n.subs===e&&(n.subs=i,!i&&n.computed)){n.computed.flags&=-5;for(let r=n.computed.deps;r;r=r.nextDep)Ap(r,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function yI(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let Zi=!0;const Lb=[];function mo(){Lb.push(Zi),Zi=!1}function vo(){const e=Lb.pop();Zi=e===void 0?!0:e}function _b(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=Dt;Dt=void 0;try{t()}finally{Dt=n}}}let _l=0;class SI{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class qu{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!Dt||!Zi||Dt===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==Dt)n=this.activeLink=new SI(Dt,this),Dt.deps?(n.prevDep=Dt.depsTail,Dt.depsTail.nextDep=n,Dt.depsTail=n):Dt.deps=Dt.depsTail=n,Ob(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const i=n.nextDep;i.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=i),n.prevDep=Dt.depsTail,n.nextDep=void 0,Dt.depsTail.nextDep=n,Dt.depsTail=n,Dt.deps===n&&(Dt.deps=i)}return n}trigger(t){this.version++,_l++,this.notify(t)}notify(t){Ep();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Dp()}}}function Ob(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let i=t.deps;i;i=i.nextDep)Ob(i)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const Qu=new WeakMap,ws=Symbol(""),Ip=Symbol(""),Ol=Symbol("");function An(e,t,n){if(Zi&&Dt){let i=Qu.get(e);i||Qu.set(e,i=new Map);let o=i.get(n);o||(i.set(n,o=new qu),o.map=i,o.key=n),o.track()}}function Vo(e,t,n,i,o,r){const s=Qu.get(e);if(!s){_l++;return}const a=l=>{l&&l.trigger()};if(Ep(),t==="clear")s.forEach(a);else{const l=Ne(e),u=l&&Wu(n);if(l&&n==="length"){const h=Number(i);s.forEach((f,p)=>{(p==="length"||p===Ol||!Yi(p)&&p>=h)&&a(f)})}else switch((n!==void 0||s.has(void 0))&&a(s.get(n)),u&&a(s.get(Ol)),t){case"add":l?u&&a(s.get("length")):(a(s.get(ws)),ya(e)&&a(s.get(Ip)));break;case"delete":l||(a(s.get(ws)),ya(e)&&a(s.get(Ip)));break;case"set":ya(e)&&a(s.get(ws));break}}Dp()}function RI(e,t){const n=Qu.get(e);return n&&n.get(t)}function Ra(e){const t=ut(e);return t===e?t:(An(t,"iterate",Ol),di(e)?t:t.map(Xi))}function Yu(e){return An(e=ut(e),"iterate",Ol),e}function Pr(e,t){return Uo(e)?xa(zo(e)?Xi(t):t):Xi(t)}const FI={__proto__:null,[Symbol.iterator](){return Mp(this,Symbol.iterator,e=>Pr(this,e))},concat(...e){return Ra(this).concat(...e.map(t=>Ne(t)?Ra(t):t))},entries(){return Mp(this,"entries",e=>(e[1]=Pr(this,e[1]),e))},every(e,t){return Wo(this,"every",e,t,void 0,arguments)},filter(e,t){return Wo(this,"filter",e,t,n=>n.map(i=>Pr(this,i)),arguments)},find(e,t){return Wo(this,"find",e,t,n=>Pr(this,n),arguments)},findIndex(e,t){return Wo(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Wo(this,"findLast",e,t,n=>Pr(this,n),arguments)},findLastIndex(e,t){return Wo(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Wo(this,"forEach",e,t,void 0,arguments)},includes(...e){return kp(this,"includes",e)},indexOf(...e){return kp(this,"indexOf",e)},join(e){return Ra(this).join(e)},lastIndexOf(...e){return kp(this,"lastIndexOf",e)},map(e,t){return Wo(this,"map",e,t,void 0,arguments)},pop(){return Nl(this,"pop")},push(...e){return Nl(this,"push",e)},reduce(e,...t){return Nb(this,"reduce",e,t)},reduceRight(e,...t){return Nb(this,"reduceRight",e,t)},shift(){return Nl(this,"shift")},some(e,t){return Wo(this,"some",e,t,void 0,arguments)},splice(...e){return Nl(this,"splice",e)},toReversed(){return Ra(this).toReversed()},toSorted(e){return Ra(this).toSorted(e)},toSpliced(...e){return Ra(this).toSpliced(...e)},unshift(...e){return Nl(this,"unshift",e)},values(){return Mp(this,"values",e=>Pr(this,e))}};function Mp(e,t,n){const i=Yu(e),o=i[t]();return i!==e&&!di(e)&&(o._next=o.next,o.next=()=>{const r=o._next();return r.done||(r.value=n(r.value)),r}),o}const xI=Array.prototype;function Wo(e,t,n,i,o,r){const s=Yu(e),a=s!==e&&!di(e),l=s[t];if(l!==xI[t]){const f=l.apply(e,r);return a?Xi(f):f}let u=n;s!==e&&(a?u=function(f,p){return n.call(this,Pr(e,f),p,e)}:n.length>2&&(u=function(f,p){return n.call(this,f,p,e)}));const h=l.call(s,u,i);return a&&o?o(h):h}function Nb(e,t,n,i){const o=Yu(e);let r=n;return o!==e&&(di(e)?n.length>3&&(r=function(s,a,l){return n.call(this,s,a,l,e)}):r=function(s,a,l){return n.call(this,s,Pr(e,a),l,e)}),o[t](r,...i)}function kp(e,t,n){const i=ut(e);An(i,"iterate",Ol);const o=i[t](...n);return(o===-1||o===!1)&&Fa(n[0])?(n[0]=ut(n[0]),i[t](...n)):o}function Nl(e,t,n=[]){mo(),Ep();const i=ut(e)[t].apply(e,n);return Dp(),vo(),i}const PI=wa("__proto__,__v_isRef,__isVue"),Bb=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Yi));function EI(e){Yi(e)||(e=String(e));const t=ut(this);return An(t,"has",e),t.hasOwnProperty(e)}class Gb{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,i){if(n==="__v_skip")return t.__v_skip;const o=this._isReadonly,r=this._isShallow;if(n==="__v_isReactive")return!o;if(n==="__v_isReadonly")return o;if(n==="__v_isShallow")return r;if(n==="__v_raw")return i===(o?r?$b:Ub:r?zb:Wb).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(i)?t:void 0;const s=Ne(t);if(!o){let l;if(s&&(l=FI[n]))return l;if(n==="hasOwnProperty")return EI}const a=Reflect.get(t,n,qt(t)?t:i);if((Yi(n)?Bb.has(n):PI(n))||(o||An(t,"get",n),r))return a;if(qt(a)){const l=s&&Wu(n)?a:a.value;return o&&Ft(l)?Op(l):l}return Ft(a)?o?Op(a):_p(a):a}}class Hb extends Gb{constructor(t=!1){super(!1,t)}set(t,n,i,o){let r=t[n];const s=Ne(t)&&Wu(n);if(!this._isShallow){const u=Uo(r);if(!di(i)&&!Uo(i)&&(r=ut(r),i=ut(i)),!s&&qt(r)&&!qt(i))return u||(r.value=i),!0}const a=s?Number(n)<t.length:Ct(t,n),l=Reflect.set(t,n,i,qt(t)?t:o);return t===ut(o)&&(a?Xn(i,r)&&Vo(t,"set",n,i):Vo(t,"add",n,i)),l}deleteProperty(t,n){const i=Ct(t,n);t[n];const o=Reflect.deleteProperty(t,n);return o&&i&&Vo(t,"delete",n,void 0),o}has(t,n){const i=Reflect.has(t,n);return(!Yi(n)||!Bb.has(n))&&An(t,"has",n),i}ownKeys(t){return An(t,"iterate",Ne(t)?"length":ws),Reflect.ownKeys(t)}}class Vb extends Gb{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const DI=new Hb,TI=new Vb,AI=new Hb(!0),II=new Vb(!0),Lp=e=>e,Zu=e=>Reflect.getPrototypeOf(e);function MI(e,t,n){return function(...i){const o=this.__v_raw,r=ut(o),s=ya(r),a=e==="entries"||e===Symbol.iterator&&s,l=e==="keys"&&s,u=o[e](...i),h=n?Lp:t?xa:Xi;return!t&&An(r,"iterate",l?Ip:ws),Lt(Object.create(u),{next(){const{value:f,done:p}=u.next();return p?{value:f,done:p}:{value:a?[h(f[0]),h(f[1])]:h(f),done:p}}})}}function Xu(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function kI(e,t){const n={get(o){const r=this.__v_raw,s=ut(r),a=ut(o);e||(Xn(o,a)&&An(s,"get",o),An(s,"get",a));const{has:l}=Zu(s),u=t?Lp:e?xa:Xi;if(l.call(s,o))return u(r.get(o));if(l.call(s,a))return u(r.get(a));r!==s&&r.get(o)},get size(){const o=this.__v_raw;return!e&&An(ut(o),"iterate",ws),o.size},has(o){const r=this.__v_raw,s=ut(r),a=ut(o);return e||(Xn(o,a)&&An(s,"has",o),An(s,"has",a)),o===a?r.has(o):r.has(o)||r.has(a)},forEach(o,r){const s=this,a=s.__v_raw,l=ut(a),u=t?Lp:e?xa:Xi;return!e&&An(l,"iterate",ws),a.forEach((h,f)=>o.call(r,u(h),u(f),s))}};return Lt(n,e?{add:Xu("add"),set:Xu("set"),delete:Xu("delete"),clear:Xu("clear")}:{add(o){!t&&!di(o)&&!Uo(o)&&(o=ut(o));const r=ut(this);return Zu(r).has.call(r,o)||(r.add(o),Vo(r,"add",o,o)),this},set(o,r){!t&&!di(r)&&!Uo(r)&&(r=ut(r));const s=ut(this),{has:a,get:l}=Zu(s);let u=a.call(s,o);u||(o=ut(o),u=a.call(s,o));const h=l.call(s,o);return s.set(o,r),u?Xn(r,h)&&Vo(s,"set",o,r):Vo(s,"add",o,r),this},delete(o){const r=ut(this),{has:s,get:a}=Zu(r);let l=s.call(r,o);l||(o=ut(o),l=s.call(r,o)),a&&a.call(r,o);const u=r.delete(o);return l&&Vo(r,"delete",o,void 0),u},clear(){const o=ut(this),r=o.size!==0,s=o.clear();return r&&Vo(o,"clear",void 0,void 0),s}}),["keys","values","entries",Symbol.iterator].forEach(o=>{n[o]=MI(o,e,t)}),n}function Ju(e,t){const n=kI(e,t);return(i,o,r)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?i:Reflect.get(Ct(n,o)&&o in i?n:i,o,r)}const LI={get:Ju(!1,!1)},_I={get:Ju(!1,!0)},OI={get:Ju(!0,!1)},NI={get:Ju(!0,!0)},Wb=new WeakMap,zb=new WeakMap,Ub=new WeakMap,$b=new WeakMap;function BI(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function GI(e){return e.__v_skip||!Object.isExtensible(e)?0:BI(uI(e))}function _p(e){return Uo(e)?e:ed(e,!1,DI,LI,Wb)}function HI(e){return ed(e,!1,AI,_I,zb)}function Op(e){return ed(e,!0,TI,OI,Ub)}function VI(e){return ed(e,!0,II,NI,$b)}function ed(e,t,n,i,o){if(!Ft(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const r=GI(e);if(r===0)return e;const s=o.get(e);if(s)return s;const a=new Proxy(e,r===2?i:n);return o.set(e,a),a}function zo(e){return Uo(e)?zo(e.__v_raw):!!(e&&e.__v_isReactive)}function Uo(e){return!!(e&&e.__v_isReadonly)}function di(e){return!!(e&&e.__v_isShallow)}function Fa(e){return e?!!e.__v_raw:!1}function ut(e){const t=e&&e.__v_raw;return t?ut(t):e}function jb(e){return!Ct(e,"__v_skip")&&Object.isExtensible(e)&&Rb(e,"__v_skip",!0),e}const Xi=e=>Ft(e)?_p(e):e,xa=e=>Ft(e)?Op(e):e;function qt(e){return e?e.__v_isRef===!0:!1}function be(e){return Kb(e,!1)}function Co(e){return Kb(e,!0)}function Kb(e,t){return qt(e)?e:new WI(e,t)}class WI{constructor(t,n){this.dep=new qu,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:ut(t),this._value=n?t:Xi(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,i=this.__v_isShallow||di(t)||Uo(t);t=i?t:ut(t),Xn(t,n)&&(this._rawValue=t,this._value=i?t:Xi(t),this.dep.trigger())}}function Di(e){return qt(e)?e.value:e}function zI(e){return Ze(e)?e():Di(e)}const UI={get:(e,t,n)=>t==="__v_raw"?e:Di(Reflect.get(e,t,n)),set:(e,t,n,i)=>{const o=e[t];return qt(o)&&!qt(n)?(o.value=n,!0):Reflect.set(e,t,n,i)}};function qb(e){return zo(e)?e:new Proxy(e,UI)}class $I{constructor(t){this.__v_isRef=!0,this._value=void 0;const n=this.dep=new qu,{get:i,set:o}=t(n.track.bind(n),n.trigger.bind(n));this._get=i,this._set=o}get value(){return this._value=this._get()}set value(t){this._set(t)}}function Qb(e){return new $I(e)}function jI(e){const t=Ne(e)?new Array(e.length):{};for(const n in e)t[n]=Yb(e,n);return t}class KI{constructor(t,n,i){this._object=t,this._key=n,this._defaultValue=i,this.__v_isRef=!0,this._value=void 0,this._raw=ut(t);let o=!0,r=t;if(!Ne(t)||!Wu(String(n)))do o=!Fa(r)||di(r);while(o&&(r=r.__v_raw));this._shallow=o}get value(){let t=this._object[this._key];return this._shallow&&(t=Di(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&&qt(this._raw[this._key])){const n=this._object[this._key];if(qt(n)){n.value=t;return}}this._object[this._key]=t}get dep(){return RI(this._raw,this._key)}}class qI{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function QI(e,t,n){return qt(e)?e:Ze(e)?new qI(e):Ft(e)&&arguments.length>1?Yb(e,t,n):be(e)}function Yb(e,t,n){return new KI(e,t,n)}class YI{constructor(t,n,i){this.fn=t,this.setter=n,this._value=void 0,this.dep=new qu(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=_l-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=i}notify(){if(this.flags|=16,!(this.flags&8)&&Dt!==this)return Ab(this,!0),!0}get value(){const t=this.dep.track();return kb(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function ZI(e,t,n=!1){let i,o;return Ze(e)?i=e:(i=e.get,o=e.set),new YI(i,o,n)}const td={},nd=new WeakMap;let bs;function XI(e,t=!1,n=bs){if(n){let i=nd.get(n);i||nd.set(n,i=[]),i.push(e)}}function JI(e,t,n=mt){const{immediate:i,deep:o,once:r,scheduler:s,augmentJob:a,call:l}=n,u=x=>o?x:di(x)||o===!1||o===0?$o(x,1):$o(x);let h,f,p,m,v=!1,w=!1;if(qt(e)?(f=()=>e.value,v=di(e)):zo(e)?(f=()=>u(e),v=!0):Ne(e)?(w=!0,v=e.some(x=>zo(x)||di(x)),f=()=>e.map(x=>{if(qt(x))return x.value;if(zo(x))return u(x);if(Ze(x))return l?l(x,2):x()})):Ze(e)?t?f=l?()=>l(e,2):e:f=()=>{if(p){mo();try{p()}finally{vo()}}const x=bs;bs=h;try{return l?l(e,3,[m]):e(m)}finally{bs=x}}:f=go,t&&o){const x=f,P=o===!0?1/0:o;f=()=>$o(x(),P)}const b=bI(),y=()=>{h.stop(),b&&b.active&&yp(b.effects,h)};if(r&&t){const x=t;t=(...P)=>{x(...P),y()}}let R=w?new Array(e.length).fill(td):td;const S=x=>{if(!(!(h.flags&1)||!h.dirty&&!x))if(t){const P=h.run();if(o||v||(w?P.some((D,A)=>Xn(D,R[A])):Xn(P,R))){p&&p();const D=bs;bs=h;try{const A=[P,R===td?void 0:w&&R[0]===td?[]:R,m];R=P,l?l(t,3,A):t(...A)}finally{bs=D}}}else h.run()};return a&&a(S),h=new Db(f),h.scheduler=s?()=>s(S,!1):S,m=x=>XI(x,!1,h),p=h.onStop=()=>{const x=nd.get(h);if(x){if(l)l(x,4);else for(const P of x)P();nd.delete(h)}},t?i?S(!0):R=h.run():s?s(S.bind(null,!0),!0):h.run(),y.pause=h.pause.bind(h),y.resume=h.resume.bind(h),y.stop=y,y}function $o(e,t=1/0,n){if(t<=0||!Ft(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,qt(e))$o(e.value,t,n);else if(Ne(e))for(let i=0;i<e.length;i++)$o(e[i],t,n);else if(Sa(e)||ya(e))e.forEach(i=>{$o(i,t,n)});else if(Vu(e)){for(const i in e)$o(e[i],t,n);for(const i of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,i)&&$o(e[i],t,n)}return e}const Bl=[];let Np=!1;function ble(e,...t){if(Np)return;Np=!0,mo();const n=Bl.length?Bl[Bl.length-1].component:null,i=n&&n.appContext.config.warnHandler,o=eM();if(i)Pa(i,n,11,[e+t.map(r=>{var s,a;return(a=(s=r.toString)==null?void 0:s.call(r))!=null?a:JSON.stringify(r)}).join(""),n&&n.proxy,o.map(({vnode:r})=>`at <${qy(n,r.type)}>`).join(`
2
+ `),o]);else{const r=[`[Vue warn]: ${e}`,...t];o.length&&r.push(`
3
+ `,...tM(o)),console.warn(...r)}vo(),Np=!1}function eM(){let e=Bl[Bl.length-1];if(!e)return[];const t=[];for(;e;){const n=t[0];n&&n.vnode===e?n.recurseCount++:t.push({vnode:e,recurseCount:0});const i=e.component&&e.component.parent;e=i&&i.vnode}return t}function tM(e){const t=[];return e.forEach((n,i)=>{t.push(...i===0?[]:[`
4
+ `],...nM(n))}),t}function nM({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",i=e.component?e.component.parent==null:!1,o=` at <${qy(e.component,e.type,i)}`,r=">"+n;return e.props?[o,...iM(e.props),r]:[o+r]}function iM(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(i=>{t.push(...Zb(i,e[i]))}),n.length>3&&t.push(" ..."),t}function Zb(e,t,n){return jt(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?n?t:[`${e}=${t}`]:qt(t)?(t=Zb(e,ut(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):Ze(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=ut(t),n?t:[`${e}=`,t])}function Pa(e,t,n,i){try{return i?e(...i):e()}catch(o){id(o,t,n)}}function Ji(e,t,n,i){if(Ze(e)){const o=Pa(e,t,n,i);return o&&yb(o)&&o.catch(r=>{id(r,t,n)}),o}if(Ne(e)){const o=[];for(let r=0;r<e.length;r++)o.push(Ji(e[r],t,n,i));return o}}function id(e,t,n,i=!0){const o=t?t.vnode:null,{errorHandler:r,throwUnhandledErrorInProduction:s}=t&&t.appContext.config||mt;if(t){let a=t.parent;const l=t.proxy,u=`https://vuejs.org/error-reference/#runtime-${n}`;for(;a;){const h=a.ec;if(h){for(let f=0;f<h.length;f++)if(h[f](e,l,u)===!1)return}a=a.parent}if(r){mo(),Pa(r,null,10,[e,l,u]),vo();return}}oM(e,n,o,i,s)}function oM(e,t,n,i=!0,o=!1){if(o)throw e;console.error(e)}const Gn=[];let wo=-1;const Ea=[];let Er=null,Da=0;const Xb=Promise.resolve();let od=null;function Dr(e){const t=od||Xb;return e?t.then(this?e.bind(this):e):t}function rM(e){let t=wo+1,n=Gn.length;for(;t<n;){const i=t+n>>>1,o=Gn[i],r=Gl(o);r<e||r===e&&o.flags&2?t=i+1:n=i}return t}function Bp(e){if(!(e.flags&1)){const t=Gl(e),n=Gn[Gn.length-1];!n||!(e.flags&2)&&t>=Gl(n)?Gn.push(e):Gn.splice(rM(t),0,e),e.flags|=1,Jb()}}function Jb(){od||(od=Xb.then(ny))}function sM(e){Ne(e)?Ea.push(...e):Er&&e.id===-1?Er.splice(Da+1,0,e):e.flags&1||(Ea.push(e),e.flags|=1),Jb()}function ey(e,t,n=wo+1){for(;n<Gn.length;n++){const i=Gn[n];if(i&&i.flags&2){if(e&&i.id!==e.uid)continue;Gn.splice(n,1),n--,i.flags&4&&(i.flags&=-2),i(),i.flags&4||(i.flags&=-2)}}}function ty(e){if(Ea.length){const t=[...new Set(Ea)].sort((n,i)=>Gl(n)-Gl(i));if(Ea.length=0,Er){Er.push(...t);return}for(Er=t,Da=0;Da<Er.length;Da++){const n=Er[Da];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}Er=null,Da=0}}const Gl=e=>e.id==null?e.flags&2?-1:1/0:e.id;function ny(e){try{for(wo=0;wo<Gn.length;wo++){const t=Gn[wo];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),Pa(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;wo<Gn.length;wo++){const t=Gn[wo];t&&(t.flags&=-2)}wo=-1,Gn.length=0,ty(),od=null,(Gn.length||Ea.length)&&ny()}}let mn=null,iy=null;function rd(e){const t=mn;return mn=e,iy=e&&e.type.__scopeId||null,t}function ei(e,t=mn,n){if(!t||e._n)return e;const i=(...o)=>{i._d&&gd(-1);const r=rd(t);let s;try{s=e(...o)}finally{rd(r),i._d&&gd(1)}return s};return i._n=!0,i._c=!0,i._d=!0,i}function nn(e,t){if(mn===null)return e;const n=Cd(mn),i=e.dirs||(e.dirs=[]);for(let o=0;o<t.length;o++){let[r,s,a,l=mt]=t[o];r&&(Ze(r)&&(r={mounted:r,updated:r}),r.deep&&$o(s),i.push({dir:r,instance:n,value:s,oldValue:void 0,arg:a,modifiers:l}))}return e}function ys(e,t,n,i){const o=e.dirs,r=t&&t.dirs;for(let s=0;s<o.length;s++){const a=o[s];r&&(a.oldValue=r[s].value);let l=a.dir[i];l&&(mo(),Ji(l,n,8,[e.el,a,e,t]),vo())}}function aM(e,t){if(kn){let n=kn.provides;const i=kn.parent&&kn.parent.provides;i===n&&(n=kn.provides=Object.create(i)),n[e]=t}}function Hl(e,t,n=!1){const i=qo();if(i||Ia){let o=Ia?Ia._context.provides:i?i.parent==null||i.ce?i.vnode.appContext&&i.vnode.appContext.provides:i.parent.provides:void 0;if(o&&e in o)return o[e];if(arguments.length>1)return n&&Ze(t)?t.call(i&&i.proxy):t}}const lM=Symbol.for("v-scx"),cM=()=>Hl(lM);function uM(e,t){return Gp(e,null,{flush:"sync"})}function vn(e,t,n){return Gp(e,t,n)}function Gp(e,t,n=mt){const{immediate:i,deep:o,flush:r,once:s}=n,a=Lt({},n),l=t&&i||!t&&r!=="post";let u;if(Xl){if(r==="sync"){const m=cM();u=m.__watcherHandles||(m.__watcherHandles=[])}else if(!l){const m=()=>{};return m.stop=go,m.resume=go,m.pause=go,m}}const h=kn;a.call=(m,v,w)=>Ji(m,h,v,w);let f=!1;r==="post"?a.scheduler=m=>{fi(m,h&&h.suspense)}:r!=="sync"&&(f=!0,a.scheduler=(m,v)=>{v?m():Bp(m)}),a.augmentJob=m=>{t&&(m.flags|=4),f&&(m.flags|=2,h&&(m.id=h.uid,m.i=h))};const p=JI(e,t,a);return Xl&&(u?u.push(p):l&&p()),p}function dM(e,t,n){const i=this.proxy,o=jt(e)?e.includes(".")?oy(i,e):()=>i[e]:e.bind(i,i);let r;Ze(t)?r=t:(r=t.handler,n=t);const s=Zl(this),a=Gp(o,r.bind(i),n);return s(),a}function oy(e,t){const n=t.split(".");return()=>{let i=e;for(let o=0;o<n.length&&i;o++)i=i[n[o]];return i}}const hM=Symbol("_vte"),ry=e=>e.__isTeleport,jo=Symbol("_leaveCb"),sd=Symbol("_enterCb");function fM(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Ss(()=>{e.isMounted=!0}),zl(()=>{e.isUnmounting=!0}),e}const Ti=[Function,Array],sy={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Ti,onEnter:Ti,onAfterEnter:Ti,onEnterCancelled:Ti,onBeforeLeave:Ti,onLeave:Ti,onAfterLeave:Ti,onLeaveCancelled:Ti,onBeforeAppear:Ti,onAppear:Ti,onAfterAppear:Ti,onAppearCancelled:Ti},ay=e=>{const t=e.subTree;return t.component?ay(t.component):t},pM={name:"BaseTransition",props:sy,setup(e,{slots:t}){const n=qo(),i=fM();return()=>{const o=t.default&&dy(t.default(),!0);if(!o||!o.length)return;const r=ly(o),s=ut(e),{mode:a}=s;if(i.isLeaving)return Vp(r);const l=uy(r);if(!l)return Vp(r);let u=Hp(l,s,i,n,f=>u=f);l.type!==In&&Vl(l,u);let h=n.subTree&&uy(n.subTree);if(h&&h.type!==In&&!Fs(h,l)&&ay(n).type!==In){let f=Hp(h,s,i,n);if(Vl(h,f),a==="out-in"&&l.type!==In)return i.isLeaving=!0,f.afterLeave=()=>{i.isLeaving=!1,n.job.flags&8||n.update(),delete f.afterLeave,h=void 0},Vp(r);a==="in-out"&&l.type!==In?f.delayLeave=(p,m,v)=>{const w=cy(i,h);w[String(h.key)]=h,p[jo]=()=>{m(),p[jo]=void 0,delete u.delayedLeave,h=void 0},u.delayedLeave=()=>{v(),delete u.delayedLeave,h=void 0}}:h=void 0}else h&&(h=void 0);return r}}};function ly(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==In){t=n;break}}return t}const gM=pM;function cy(e,t){const{leavingVNodes:n}=e;let i=n.get(t.type);return i||(i=Object.create(null),n.set(t.type,i)),i}function Hp(e,t,n,i,o){const{appear:r,mode:s,persisted:a=!1,onBeforeEnter:l,onEnter:u,onAfterEnter:h,onEnterCancelled:f,onBeforeLeave:p,onLeave:m,onAfterLeave:v,onLeaveCancelled:w,onBeforeAppear:b,onAppear:y,onAfterAppear:R,onAppearCancelled:S}=t,x=String(e.key),P=cy(n,e),D=(B,L)=>{B&&Ji(B,i,9,L)},A=(B,L)=>{const M=L[1];D(B,L),Ne(B)?B.every(I=>I.length<=1)&&M():B.length<=1&&M()},N={mode:s,persisted:a,beforeEnter(B){let L=l;if(!n.isMounted)if(r)L=b||l;else return;B[jo]&&B[jo](!0);const M=P[x];M&&Fs(e,M)&&M.el[jo]&&M.el[jo](),D(L,[B])},enter(B){let L=u,M=h,I=f;if(!n.isMounted)if(r)L=y||u,M=R||h,I=S||f;else return;let O=!1;const Q=B[sd]=te=>{O||(O=!0,te?D(I,[B]):D(M,[B]),N.delayedLeave&&N.delayedLeave(),B[sd]=void 0)};L?A(L,[B,Q]):Q()},leave(B,L){const M=String(e.key);if(B[sd]&&B[sd](!0),n.isUnmounting)return L();D(p,[B]);let I=!1;const O=B[jo]=Q=>{I||(I=!0,L(),Q?D(w,[B]):D(v,[B]),B[jo]=void 0,P[M]===e&&delete P[M])};P[M]=e,m?A(m,[B,O]):O()},clone(B){const L=Hp(B,t,n,i,o);return o&&o(L),L}};return N}function Vp(e){if(ld(e))return e=Tr(e),e.children=null,e}function uy(e){if(!ld(e))return ry(e.type)&&e.children?ly(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&Ze(n.default))return n.default()}}function Vl(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Vl(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function dy(e,t=!1,n){let i=[],o=0;for(let r=0;r<e.length;r++){let s=e[r];const a=n==null?s.key:String(n)+String(s.key!=null?s.key:r);s.type===vt?(s.patchFlag&128&&o++,i=i.concat(dy(s.children,t,a))):(t||s.type!==In)&&i.push(a!=null?Tr(s,{key:a}):s)}if(o>1)for(let r=0;r<i.length;r++)i[r].patchFlag=-2;return i}function xt(e,t){return Ze(e)?Lt({name:e.name},t,{setup:e}):e}function mM(){const e=qo();return e?(e.appContext.config.idPrefix||"v")+"-"+e.ids[0]+e.ids[1]++:""}function hy(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function vM(e){const t=qo(),n=Co(null);if(t){const o=t.refs===mt?t.refs={}:t.refs;Object.defineProperty(o,e,{enumerable:!0,get:()=>n.value,set:r=>n.value=r})}return n}const ad=new WeakMap;function Wl(e,t,n,i,o=!1){if(Ne(e)){e.forEach((v,w)=>Wl(v,t&&(Ne(t)?t[w]:t),n,i,o));return}if(Ta(i)&&!o){i.shapeFlag&512&&i.type.__asyncResolved&&i.component.subTree.component&&Wl(e,t,n,i.component.subTree);return}const r=i.shapeFlag&4?Cd(i.component):i.el,s=o?null:r,{i:a,r:l}=e,u=t&&t.r,h=a.refs===mt?a.refs={}:a.refs,f=a.setupState,p=ut(f),m=f===mt?wb:v=>Ct(p,v);if(u!=null&&u!==l){if(fy(t),jt(u))h[u]=null,m(u)&&(f[u]=null);else if(qt(u)){u.value=null;const v=t;v.k&&(h[v.k]=null)}}if(Ze(l))Pa(l,a,12,[s,h]);else{const v=jt(l),w=qt(l);if(v||w){const b=()=>{if(e.f){const y=v?m(l)?f[l]:h[l]:l.value;if(o)Ne(y)&&yp(y,r);else if(Ne(y))y.includes(r)||y.push(r);else if(v)h[l]=[r],m(l)&&(f[l]=h[l]);else{const R=[r];l.value=R,e.k&&(h[e.k]=R)}}else v?(h[l]=s,m(l)&&(f[l]=s)):w&&(l.value=s,e.k&&(h[e.k]=s))};if(s){const y=()=>{b(),ad.delete(e)};y.id=-1,ad.set(e,y),fi(y,n)}else fy(e),b()}}}function fy(e){const t=ad.get(e);t&&(t.flags|=8,ad.delete(e))}Ku().requestIdleCallback,Ku().cancelIdleCallback;const Ta=e=>!!e.type.__asyncLoader,ld=e=>e.type.__isKeepAlive;function CM(e,t){py(e,"a",t)}function wM(e,t){py(e,"da",t)}function py(e,t,n=kn){const i=e.__wdc||(e.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(cd(t,i,n),n){let o=n.parent;for(;o&&o.parent;)ld(o.parent.vnode)&&bM(i,t,n,o),o=o.parent}}function bM(e,t,n,i){const o=cd(t,e,i,!0);ud(()=>{yp(i[t],o)},n)}function cd(e,t,n=kn,i=!1){if(n){const o=n[e]||(n[e]=[]),r=t.__weh||(t.__weh=(...s)=>{mo();const a=Zl(n),l=Ji(t,n,e,s);return a(),vo(),l});return i?o.unshift(r):o.push(r),r}}const Ko=e=>(t,n=kn)=>{(!Xl||e==="sp")&&cd(e,(...i)=>t(...i),n)},yM=Ko("bm"),Ss=Ko("m"),SM=Ko("bu"),RM=Ko("u"),zl=Ko("bum"),ud=Ko("um"),FM=Ko("sp"),xM=Ko("rtg"),PM=Ko("rtc");function EM(e,t=kn){cd("ec",e,t)}const DM="components";function dd(e,t){return AM(DM,e,!0,t)||e}const TM=Symbol.for("v-ndc");function AM(e,t,n=!0,i=!1){const o=mn||kn;if(o){const r=o.type;{const a=Ky(r,!1);if(a&&(a===t||a===Tn(t)||a===Uu(Tn(t))))return r}const s=gy(o[e]||r[e],t)||gy(o.appContext[e],t);return!s&&i?r:s}}function gy(e,t){return e&&(e[t]||e[Tn(t)]||e[Uu(Tn(t))])}function hi(e,t,n,i){let o;const r=n,s=Ne(e);if(s||jt(e)){const a=s&&zo(e);let l=!1,u=!1;a&&(l=!di(e),u=Uo(e),e=Yu(e)),o=new Array(e.length);for(let h=0,f=e.length;h<f;h++)o[h]=t(l?u?xa(Xi(e[h])):Xi(e[h]):e[h],h,void 0,r)}else if(typeof e=="number"){o=new Array(e);for(let a=0;a<e;a++)o[a]=t(a+1,a,void 0,r)}else if(Ft(e))if(e[Symbol.iterator])o=Array.from(e,(a,l)=>t(a,l,void 0,r));else{const a=Object.keys(e);o=new Array(a.length);for(let l=0,u=a.length;l<u;l++){const h=a[l];o[l]=t(e[h],h,l,r)}}else o=[];return o}function IM(e,t){for(let n=0;n<t.length;n++){const i=t[n];if(Ne(i))for(let o=0;o<i.length;o++)e[i[o].name]=i[o].fn;else i&&(e[i.name]=i.key?(...o)=>{const r=i.fn(...o);return r&&(r.key=i.key),r}:i.fn)}return e}function Aa(e,t,n={},i,o){if(mn.ce||mn.parent&&Ta(mn.parent)&&mn.parent.ce){const u=Object.keys(n).length>0;return t!=="default"&&(n.name=t),ue(),en(vt,null,[rt("slot",n,i&&i())],u?-2:64)}let r=e[t];r&&r._c&&(r._d=!1),ue();const s=r&&my(r(n)),a=n.key||s&&s.key,l=en(vt,{key:(a&&!Yi(a)?a:`_${t}`)+(!s&&i?"_fb":"")},s||(i?i():[]),s&&e._===1?64:-2);return r&&r._c&&(r._d=!0),l}function my(e){return e.some(t=>Yl(t)?!(t.type===In||t.type===vt&&!my(t.children)):!0)?e:null}const Wp=e=>e?Uy(e)?Cd(e):Wp(e.parent):null,Ul=Lt(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Wp(e.parent),$root:e=>Wp(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>wy(e),$forceUpdate:e=>e.f||(e.f=()=>{Bp(e.update)}),$nextTick:e=>e.n||(e.n=Dr.bind(e.proxy)),$watch:e=>dM.bind(e)}),zp=(e,t)=>e!==mt&&!e.__isScriptSetup&&Ct(e,t),MM={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:i,data:o,props:r,accessCache:s,type:a,appContext:l}=e;if(t[0]!=="$"){const p=s[t];if(p!==void 0)switch(p){case 1:return i[t];case 2:return o[t];case 4:return n[t];case 3:return r[t]}else{if(zp(i,t))return s[t]=1,i[t];if(o!==mt&&Ct(o,t))return s[t]=2,o[t];if(Ct(r,t))return s[t]=3,r[t];if(n!==mt&&Ct(n,t))return s[t]=4,n[t];Up&&(s[t]=0)}}const u=Ul[t];let h,f;if(u)return t==="$attrs"&&An(e.attrs,"get",""),u(e);if((h=a.__cssModules)&&(h=h[t]))return h;if(n!==mt&&Ct(n,t))return s[t]=4,n[t];if(f=l.config.globalProperties,Ct(f,t))return f[t]},set({_:e},t,n){const{data:i,setupState:o,ctx:r}=e;return zp(o,t)?(o[t]=n,!0):i!==mt&&Ct(i,t)?(i[t]=n,!0):Ct(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(r[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:i,appContext:o,props:r,type:s}},a){let l;return!!(n[a]||e!==mt&&a[0]!=="$"&&Ct(e,a)||zp(t,a)||Ct(r,a)||Ct(i,a)||Ct(Ul,a)||Ct(o.config.globalProperties,a)||(l=s.__cssModules)&&l[a])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Ct(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function $l(e){return Ne(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function kM(e,t){const n=$l(e);for(const i in t){if(i.startsWith("__skip"))continue;let o=n[i];o?Ne(o)||Ze(o)?o=n[i]={type:o,default:t[i]}:o.default=t[i]:o===null&&(o=n[i]={default:t[i]}),o&&t[`__skip_${i}`]&&(o.skipFactory=!0)}return n}function jl(e,t){return!e||!t?e||t:Ne(e)&&Ne(t)?e.concat(t):Lt({},$l(e),$l(t))}let Up=!0;function LM(e){const t=wy(e),n=e.proxy,i=e.ctx;Up=!1,t.beforeCreate&&vy(t.beforeCreate,e,"bc");const{data:o,computed:r,methods:s,watch:a,provide:l,inject:u,created:h,beforeMount:f,mounted:p,beforeUpdate:m,updated:v,activated:w,deactivated:b,beforeDestroy:y,beforeUnmount:R,destroyed:S,unmounted:x,render:P,renderTracked:D,renderTriggered:A,errorCaptured:N,serverPrefetch:B,expose:L,inheritAttrs:M,components:I,directives:O,filters:Q}=t;if(u&&_M(u,i,null),s)for(const we in s){const he=s[we];Ze(he)&&(i[we]=he.bind(n))}if(o){const we=o.call(n,n);Ft(we)&&(e.data=_p(we))}if(Up=!0,r)for(const we in r){const he=r[we],xe=Ze(he)?he.bind(n,n):Ze(he.get)?he.get.bind(n,n):go,Ie=!Ze(he)&&Ze(he.set)?he.set.bind(n):go,G=Re({get:xe,set:Ie});Object.defineProperty(i,we,{enumerable:!0,configurable:!0,get:()=>G.value,set:q=>G.value=q})}if(a)for(const we in a)Cy(a[we],i,n,we);if(l){const we=Ze(l)?l.call(n):l;Reflect.ownKeys(we).forEach(he=>{aM(he,we[he])})}h&&vy(h,e,"c");function Fe(we,he){Ne(he)?he.forEach(xe=>we(xe.bind(n))):he&&we(he.bind(n))}if(Fe(yM,f),Fe(Ss,p),Fe(SM,m),Fe(RM,v),Fe(CM,w),Fe(wM,b),Fe(EM,N),Fe(PM,D),Fe(xM,A),Fe(zl,R),Fe(ud,x),Fe(FM,B),Ne(L))if(L.length){const we=e.exposed||(e.exposed={});L.forEach(he=>{Object.defineProperty(we,he,{get:()=>n[he],set:xe=>n[he]=xe,enumerable:!0})})}else e.exposed||(e.exposed={});P&&e.render===go&&(e.render=P),M!=null&&(e.inheritAttrs=M),I&&(e.components=I),O&&(e.directives=O),B&&hy(e)}function _M(e,t,n=go){Ne(e)&&(e=$p(e));for(const i in e){const o=e[i];let r;Ft(o)?"default"in o?r=Hl(o.from||i,o.default,!0):r=Hl(o.from||i):r=Hl(o),qt(r)?Object.defineProperty(t,i,{enumerable:!0,configurable:!0,get:()=>r.value,set:s=>r.value=s}):t[i]=r}}function vy(e,t,n){Ji(Ne(e)?e.map(i=>i.bind(t.proxy)):e.bind(t.proxy),t,n)}function Cy(e,t,n,i){let o=i.includes(".")?oy(n,i):()=>n[i];if(jt(e)){const r=t[e];Ze(r)&&vn(o,r)}else if(Ze(e))vn(o,e.bind(n));else if(Ft(e))if(Ne(e))e.forEach(r=>Cy(r,t,n,i));else{const r=Ze(e.handler)?e.handler.bind(n):t[e.handler];Ze(r)&&vn(o,r,e)}}function wy(e){const t=e.type,{mixins:n,extends:i}=t,{mixins:o,optionsCache:r,config:{optionMergeStrategies:s}}=e.appContext,a=r.get(t);let l;return a?l=a:!o.length&&!n&&!i?l=t:(l={},o.length&&o.forEach(u=>hd(l,u,s,!0)),hd(l,t,s)),Ft(t)&&r.set(t,l),l}function hd(e,t,n,i=!1){const{mixins:o,extends:r}=t;r&&hd(e,r,n,!0),o&&o.forEach(s=>hd(e,s,n,!0));for(const s in t)if(!(i&&s==="expose")){const a=OM[s]||n&&n[s];e[s]=a?a(e[s],t[s]):t[s]}return e}const OM={data:by,props:yy,emits:yy,methods:Kl,computed:Kl,beforeCreate:Hn,created:Hn,beforeMount:Hn,mounted:Hn,beforeUpdate:Hn,updated:Hn,beforeDestroy:Hn,beforeUnmount:Hn,destroyed:Hn,unmounted:Hn,activated:Hn,deactivated:Hn,errorCaptured:Hn,serverPrefetch:Hn,components:Kl,directives:Kl,watch:BM,provide:by,inject:NM};function by(e,t){return t?e?function(){return Lt(Ze(e)?e.call(this,this):e,Ze(t)?t.call(this,this):t)}:t:e}function NM(e,t){return Kl($p(e),$p(t))}function $p(e){if(Ne(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Hn(e,t){return e?[...new Set([].concat(e,t))]:t}function Kl(e,t){return e?Lt(Object.create(null),e,t):t}function yy(e,t){return e?Ne(e)&&Ne(t)?[...new Set([...e,...t])]:Lt(Object.create(null),$l(e),$l(t??{})):t}function BM(e,t){if(!e)return t;if(!t)return e;const n=Lt(Object.create(null),e);for(const i in t)n[i]=Hn(e[i],t[i]);return n}function Sy(){return{app:null,config:{isNativeTag:wb,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let GM=0;function HM(e,t){return function(i,o=null){Ze(i)||(i=Lt({},i)),o!=null&&!Ft(o)&&(o=null);const r=Sy(),s=new WeakSet,a=[];let l=!1;const u=r.app={_uid:GM++,_component:i,_props:o,_container:null,_context:r,_instance:null,version:Ck,get config(){return r.config},set config(h){},use(h,...f){return s.has(h)||(h&&Ze(h.install)?(s.add(h),h.install(u,...f)):Ze(h)&&(s.add(h),h(u,...f))),u},mixin(h){return r.mixins.includes(h)||r.mixins.push(h),u},component(h,f){return f?(r.components[h]=f,u):r.components[h]},directive(h,f){return f?(r.directives[h]=f,u):r.directives[h]},mount(h,f,p){if(!l){const m=u._ceVNode||rt(i,o);return m.appContext=r,p===!0?p="svg":p===!1&&(p=void 0),e(m,h,p),l=!0,u._container=h,h.__vue_app__=u,Cd(m.component)}},onUnmount(h){a.push(h)},unmount(){l&&(Ji(a,u._instance,16),e(null,u._container),delete u._container.__vue_app__)},provide(h,f){return r.provides[h]=f,u},runWithContext(h){const f=Ia;Ia=u;try{return h()}finally{Ia=f}}};return u}}let Ia=null;function Ma(e,t,n=mt){const i=qo(),o=Tn(t),r=Zn(t),s=Ry(e,o),a=Qb((l,u)=>{let h,f=mt,p;return uM(()=>{const m=e[o];Xn(h,m)&&(h=m,u())}),{get(){return l(),n.get?n.get(h):h},set(m){const v=n.set?n.set(m):m;if(!Xn(v,h)&&!(f!==mt&&Xn(m,f)))return;const w=i.vnode.props;w&&(t in w||o in w||r in w)&&(`onUpdate:${t}`in w||`onUpdate:${o}`in w||`onUpdate:${r}`in w)||(h=m,u()),i.emit(`update:${t}`,v),Xn(m,v)&&Xn(m,f)&&!Xn(v,p)&&u(),f=m,p=v}}});return a[Symbol.iterator]=()=>{let l=0;return{next(){return l<2?{value:l++?s||mt:a,done:!1}:{done:!0}}}},a}const Ry=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Tn(t)}Modifiers`]||e[`${Zn(t)}Modifiers`];function VM(e,t,...n){if(e.isUnmounted)return;const i=e.vnode.props||mt;let o=n;const r=t.startsWith("update:"),s=r&&Ry(i,t.slice(7));s&&(s.trim&&(o=n.map(h=>jt(h)?h.trim():h)),s.number&&(o=n.map(ju)));let a,l=i[a=Sp(t)]||i[a=Sp(Tn(t))];!l&&r&&(l=i[a=Sp(Zn(t))]),l&&Ji(l,e,6,o);const u=i[a+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,Ji(u,e,6,o)}}const WM=new WeakMap;function Fy(e,t,n=!1){const i=n?WM:t.emitsCache,o=i.get(e);if(o!==void 0)return o;const r=e.emits;let s={},a=!1;if(!Ze(e)){const l=u=>{const h=Fy(u,t,!0);h&&(a=!0,Lt(s,h))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!r&&!a?(Ft(e)&&i.set(e,null),null):(Ne(r)?r.forEach(l=>s[l]=null):Lt(s,r),Ft(e)&&i.set(e,s),s)}function fd(e,t){return!e||!Hu(t)?!1:(t=t.slice(2).replace(/Once$/,""),Ct(e,t[0].toLowerCase()+t.slice(1))||Ct(e,Zn(t))||Ct(e,t))}function yle(){}function xy(e){const{type:t,vnode:n,proxy:i,withProxy:o,propsOptions:[r],slots:s,attrs:a,emit:l,render:u,renderCache:h,props:f,data:p,setupState:m,ctx:v,inheritAttrs:w}=e,b=rd(e);let y,R;try{if(n.shapeFlag&4){const x=o||i,P=x;y=bo(u.call(P,x,h,f,m,p,v)),R=a}else{const x=t;y=bo(x.length>1?x(f,{attrs:a,slots:s,emit:l}):x(f,null)),R=t.props?a:zM(a)}}catch(x){ql.length=0,id(x,e,1),y=rt(In)}let S=y;if(R&&w!==!1){const x=Object.keys(R),{shapeFlag:P}=S;x.length&&P&7&&(r&&x.some(bp)&&(R=UM(R,r)),S=Tr(S,R,!1,!0))}return n.dirs&&(S=Tr(S,null,!1,!0),S.dirs=S.dirs?S.dirs.concat(n.dirs):n.dirs),n.transition&&Vl(S,n.transition),y=S,rd(b),y}const zM=e=>{let t;for(const n in e)(n==="class"||n==="style"||Hu(n))&&((t||(t={}))[n]=e[n]);return t},UM=(e,t)=>{const n={};for(const i in e)(!bp(i)||!(i.slice(9)in t))&&(n[i]=e[i]);return n};function $M(e,t,n){const{props:i,children:o,component:r}=e,{props:s,children:a,patchFlag:l}=t,u=r.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return i?Py(i,s,u):!!s;if(l&8){const h=t.dynamicProps;for(let f=0;f<h.length;f++){const p=h[f];if(s[p]!==i[p]&&!fd(u,p))return!0}}}else return(o||a)&&(!a||!a.$stable)?!0:i===s?!1:i?s?Py(i,s,u):!0:!!s;return!1}function Py(e,t,n){const i=Object.keys(t);if(i.length!==Object.keys(e).length)return!0;for(let o=0;o<i.length;o++){const r=i[o];if(t[r]!==e[r]&&!fd(n,r))return!0}return!1}function jM({vnode:e,parent:t},n){for(;t;){const i=t.subTree;if(i.suspense&&i.suspense.activeBranch===e&&(i.el=e.el),i===e)(e=t.vnode).el=n,t=t.parent;else break}}const Ey={},Dy=()=>Object.create(Ey),Ty=e=>Object.getPrototypeOf(e)===Ey;function KM(e,t,n,i=!1){const o={},r=Dy();e.propsDefaults=Object.create(null),Ay(e,t,o,r);for(const s in e.propsOptions[0])s in o||(o[s]=void 0);n?e.props=i?o:HI(o):e.type.props?e.props=o:e.props=r,e.attrs=r}function qM(e,t,n,i){const{props:o,attrs:r,vnode:{patchFlag:s}}=e,a=ut(o),[l]=e.propsOptions;let u=!1;if((i||s>0)&&!(s&16)){if(s&8){const h=e.vnode.dynamicProps;for(let f=0;f<h.length;f++){let p=h[f];if(fd(e.emitsOptions,p))continue;const m=t[p];if(l)if(Ct(r,p))m!==r[p]&&(r[p]=m,u=!0);else{const v=Tn(p);o[v]=jp(l,a,v,m,e,!1)}else m!==r[p]&&(r[p]=m,u=!0)}}}else{Ay(e,t,o,r)&&(u=!0);let h;for(const f in a)(!t||!Ct(t,f)&&((h=Zn(f))===f||!Ct(t,h)))&&(l?n&&(n[f]!==void 0||n[h]!==void 0)&&(o[f]=jp(l,a,f,void 0,e,!0)):delete o[f]);if(r!==a)for(const f in r)(!t||!Ct(t,f))&&(delete r[f],u=!0)}u&&Vo(e.attrs,"set","")}function Ay(e,t,n,i){const[o,r]=e.propsOptions;let s=!1,a;if(t)for(let l in t){if(Ml(l))continue;const u=t[l];let h;o&&Ct(o,h=Tn(l))?!r||!r.includes(h)?n[h]=u:(a||(a={}))[h]=u:fd(e.emitsOptions,l)||(!(l in i)||u!==i[l])&&(i[l]=u,s=!0)}if(r){const l=ut(n),u=a||mt;for(let h=0;h<r.length;h++){const f=r[h];n[f]=jp(o,l,f,u[f],e,!Ct(u,f))}}return s}function jp(e,t,n,i,o,r){const s=e[n];if(s!=null){const a=Ct(s,"default");if(a&&i===void 0){const l=s.default;if(s.type!==Function&&!s.skipFactory&&Ze(l)){const{propsDefaults:u}=o;if(n in u)i=u[n];else{const h=Zl(o);i=u[n]=l.call(null,t),h()}}else i=l;o.ce&&o.ce._setProp(n,i)}s[0]&&(r&&!a?i=!1:s[1]&&(i===""||i===Zn(n))&&(i=!0))}return i}const QM=new WeakMap;function Iy(e,t,n=!1){const i=n?QM:t.propsCache,o=i.get(e);if(o)return o;const r=e.props,s={},a=[];let l=!1;if(!Ze(e)){const h=f=>{l=!0;const[p,m]=Iy(f,t,!0);Lt(s,p),m&&a.push(...m)};!n&&t.mixins.length&&t.mixins.forEach(h),e.extends&&h(e.extends),e.mixins&&e.mixins.forEach(h)}if(!r&&!l)return Ft(e)&&i.set(e,ba),ba;if(Ne(r))for(let h=0;h<r.length;h++){const f=Tn(r[h]);My(f)&&(s[f]=mt)}else if(r)for(const h in r){const f=Tn(h);if(My(f)){const p=r[h],m=s[f]=Ne(p)||Ze(p)?{type:p}:Lt({},p),v=m.type;let w=!1,b=!0;if(Ne(v))for(let y=0;y<v.length;++y){const R=v[y],S=Ze(R)&&R.name;if(S==="Boolean"){w=!0;break}else S==="String"&&(b=!1)}else w=Ze(v)&&v.name==="Boolean";m[0]=w,m[1]=b,(w||Ct(m,"default"))&&a.push(f)}}const u=[s,a];return Ft(e)&&i.set(e,u),u}function My(e){return e[0]!=="$"&&!Ml(e)}const Kp=e=>e==="_"||e==="_ctx"||e==="$stable",qp=e=>Ne(e)?e.map(bo):[bo(e)],YM=(e,t,n)=>{if(t._n)return t;const i=ei((...o)=>qp(t(...o)),n);return i._c=!1,i},ky=(e,t,n)=>{const i=e._ctx;for(const o in e){if(Kp(o))continue;const r=e[o];if(Ze(r))t[o]=YM(o,r,i);else if(r!=null){const s=qp(r);t[o]=()=>s}}},Ly=(e,t)=>{const n=qp(t);e.slots.default=()=>n},_y=(e,t,n)=>{for(const i in t)(n||!Kp(i))&&(e[i]=t[i])},ZM=(e,t,n)=>{const i=e.slots=Dy();if(e.vnode.shapeFlag&32){const o=t._;o?(_y(i,t,n),n&&Rb(i,"_",o,!0)):ky(t,i)}else t&&Ly(e,t)},XM=(e,t,n)=>{const{vnode:i,slots:o}=e;let r=!0,s=mt;if(i.shapeFlag&32){const a=t._;a?n&&a===1?r=!1:_y(o,t,n):(r=!t.$stable,ky(t,o)),s=t}else t&&(Ly(e,t),s={default:1});if(r)for(const a in o)!Kp(a)&&s[a]==null&&delete o[a]},fi=ik;function JM(e){return ek(e)}function ek(e,t){const n=Ku();n.__VUE__=!0;const{insert:i,remove:o,patchProp:r,createElement:s,createText:a,createComment:l,setText:u,setElementText:h,parentNode:f,nextSibling:p,setScopeId:m=go,insertStaticContent:v}=e,w=(k,H,U,ne=null,ee=null,Z=null,ge=void 0,fe=null,ce=!!H.dynamicChildren)=>{if(k===H)return;k&&!Fs(k,H)&&(ne=ve(k),q(k,ee,Z,!0),k=null),H.patchFlag===-2&&(ce=!1,H.dynamicChildren=null);const{type:ie,ref:Me,shapeFlag:ye}=H;switch(ie){case pd:b(k,H,U,ne);break;case In:y(k,H,U,ne);break;case Yp:k==null&&R(H,U,ne,ge);break;case vt:I(k,H,U,ne,ee,Z,ge,fe,ce);break;default:ye&1?P(k,H,U,ne,ee,Z,ge,fe,ce):ye&6?O(k,H,U,ne,ee,Z,ge,fe,ce):(ye&64||ye&128)&&ie.process(k,H,U,ne,ee,Z,ge,fe,ce,Ue)}Me!=null&&ee?Wl(Me,k&&k.ref,Z,H||k,!H):Me==null&&k&&k.ref!=null&&Wl(k.ref,null,Z,k,!0)},b=(k,H,U,ne)=>{if(k==null)i(H.el=a(H.children),U,ne);else{const ee=H.el=k.el;H.children!==k.children&&u(ee,H.children)}},y=(k,H,U,ne)=>{k==null?i(H.el=l(H.children||""),U,ne):H.el=k.el},R=(k,H,U,ne)=>{[k.el,k.anchor]=v(k.children,H,U,ne,k.el,k.anchor)},S=({el:k,anchor:H},U,ne)=>{let ee;for(;k&&k!==H;)ee=p(k),i(k,U,ne),k=ee;i(H,U,ne)},x=({el:k,anchor:H})=>{let U;for(;k&&k!==H;)U=p(k),o(k),k=U;o(H)},P=(k,H,U,ne,ee,Z,ge,fe,ce)=>{if(H.type==="svg"?ge="svg":H.type==="math"&&(ge="mathml"),k==null)D(H,U,ne,ee,Z,ge,fe,ce);else{const ie=k.el&&k.el._isVueCE?k.el:null;try{ie&&ie._beginPatch(),B(k,H,ee,Z,ge,fe,ce)}finally{ie&&ie._endPatch()}}},D=(k,H,U,ne,ee,Z,ge,fe)=>{let ce,ie;const{props:Me,shapeFlag:ye,transition:Ge,dirs:Ve}=k;if(ce=k.el=s(k.type,Z,Me&&Me.is,Me),ye&8?h(ce,k.children):ye&16&&N(k.children,ce,null,ne,ee,Qp(k,Z),ge,fe),Ve&&ys(k,null,ne,"created"),A(ce,k,k.scopeId,ge,ne),Me){for(const Je in Me)Je!=="value"&&!Ml(Je)&&r(ce,Je,null,Me[Je],Z,ne);"value"in Me&&r(ce,"value",null,Me.value,Z),(ie=Me.onVnodeBeforeMount)&&yo(ie,ne,k)}Ve&&ys(k,null,ne,"beforeMount");const et=tk(ee,Ge);et&&Ge.beforeEnter(ce),i(ce,H,U),((ie=Me&&Me.onVnodeMounted)||et||Ve)&&fi(()=>{ie&&yo(ie,ne,k),et&&Ge.enter(ce),Ve&&ys(k,null,ne,"mounted")},ee)},A=(k,H,U,ne,ee)=>{if(U&&m(k,U),ne)for(let Z=0;Z<ne.length;Z++)m(k,ne[Z]);if(ee){let Z=ee.subTree;if(H===Z||Hy(Z.type)&&(Z.ssContent===H||Z.ssFallback===H)){const ge=ee.vnode;A(k,ge,ge.scopeId,ge.slotScopeIds,ee.parent)}}},N=(k,H,U,ne,ee,Z,ge,fe,ce=0)=>{for(let ie=ce;ie<k.length;ie++){const Me=k[ie]=fe?Ar(k[ie]):bo(k[ie]);w(null,Me,H,U,ne,ee,Z,ge,fe)}},B=(k,H,U,ne,ee,Z,ge)=>{const fe=H.el=k.el;let{patchFlag:ce,dynamicChildren:ie,dirs:Me}=H;ce|=k.patchFlag&16;const ye=k.props||mt,Ge=H.props||mt;let Ve;if(U&&Rs(U,!1),(Ve=Ge.onVnodeBeforeUpdate)&&yo(Ve,U,H,k),Me&&ys(H,k,U,"beforeUpdate"),U&&Rs(U,!0),(ye.innerHTML&&Ge.innerHTML==null||ye.textContent&&Ge.textContent==null)&&h(fe,""),ie?L(k.dynamicChildren,ie,fe,U,ne,Qp(H,ee),Z):ge||he(k,H,fe,null,U,ne,Qp(H,ee),Z,!1),ce>0){if(ce&16)M(fe,ye,Ge,U,ee);else if(ce&2&&ye.class!==Ge.class&&r(fe,"class",null,Ge.class,ee),ce&4&&r(fe,"style",ye.style,Ge.style,ee),ce&8){const et=H.dynamicProps;for(let Je=0;Je<et.length;Je++){const ot=et[Je],Ht=ye[ot],Vt=Ge[ot];(Vt!==Ht||ot==="value")&&r(fe,ot,Ht,Vt,ee,U)}}ce&1&&k.children!==H.children&&h(fe,H.children)}else!ge&&ie==null&&M(fe,ye,Ge,U,ee);((Ve=Ge.onVnodeUpdated)||Me)&&fi(()=>{Ve&&yo(Ve,U,H,k),Me&&ys(H,k,U,"updated")},ne)},L=(k,H,U,ne,ee,Z,ge)=>{for(let fe=0;fe<H.length;fe++){const ce=k[fe],ie=H[fe],Me=ce.el&&(ce.type===vt||!Fs(ce,ie)||ce.shapeFlag&198)?f(ce.el):U;w(ce,ie,Me,null,ne,ee,Z,ge,!0)}},M=(k,H,U,ne,ee)=>{if(H!==U){if(H!==mt)for(const Z in H)!Ml(Z)&&!(Z in U)&&r(k,Z,H[Z],null,ee,ne);for(const Z in U){if(Ml(Z))continue;const ge=U[Z],fe=H[Z];ge!==fe&&Z!=="value"&&r(k,Z,fe,ge,ee,ne)}"value"in U&&r(k,"value",H.value,U.value,ee)}},I=(k,H,U,ne,ee,Z,ge,fe,ce)=>{const ie=H.el=k?k.el:a(""),Me=H.anchor=k?k.anchor:a("");let{patchFlag:ye,dynamicChildren:Ge,slotScopeIds:Ve}=H;Ve&&(fe=fe?fe.concat(Ve):Ve),k==null?(i(ie,U,ne),i(Me,U,ne),N(H.children||[],U,Me,ee,Z,ge,fe,ce)):ye>0&&ye&64&&Ge&&k.dynamicChildren&&k.dynamicChildren.length===Ge.length?(L(k.dynamicChildren,Ge,U,ee,Z,ge,fe),(H.key!=null||ee&&H===ee.subTree)&&Oy(k,H,!0)):he(k,H,U,Me,ee,Z,ge,fe,ce)},O=(k,H,U,ne,ee,Z,ge,fe,ce)=>{H.slotScopeIds=fe,k==null?H.shapeFlag&512?ee.ctx.activate(H,U,ne,ge,ce):Q(H,U,ne,ee,Z,ge,ce):te(k,H,ce)},Q=(k,H,U,ne,ee,Z,ge)=>{const fe=k.component=uk(k,ne,ee);if(ld(k)&&(fe.ctx.renderer=Ue),dk(fe,!1,ge),fe.asyncDep){if(ee&&ee.registerDep(fe,Fe,ge),!k.el){const ce=fe.subTree=rt(In);y(null,ce,H,U),k.placeholder=ce.el}}else Fe(fe,k,H,U,ee,Z,ge)},te=(k,H,U)=>{const ne=H.component=k.component;if($M(k,H,U))if(ne.asyncDep&&!ne.asyncResolved){we(ne,H,U);return}else ne.next=H,ne.update();else H.el=k.el,ne.vnode=H},Fe=(k,H,U,ne,ee,Z,ge)=>{const fe=()=>{if(k.isMounted){let{next:ye,bu:Ge,u:Ve,parent:et,vnode:Je}=k;{const pn=Ny(k);if(pn){ye&&(ye.el=Je.el,we(k,ye,ge)),pn.asyncDep.then(()=>{k.isUnmounted||fe()});return}}let ot=ye,Ht;Rs(k,!1),ye?(ye.el=Je.el,we(k,ye,ge)):ye=Je,Ge&&$u(Ge),(Ht=ye.props&&ye.props.onVnodeBeforeUpdate)&&yo(Ht,et,ye,Je),Rs(k,!0);const Vt=xy(k),tn=k.subTree;k.subTree=Vt,w(tn,Vt,f(tn.el),ve(tn),k,ee,Z),ye.el=Vt.el,ot===null&&jM(k,Vt.el),Ve&&fi(Ve,ee),(Ht=ye.props&&ye.props.onVnodeUpdated)&&fi(()=>yo(Ht,et,ye,Je),ee)}else{let ye;const{el:Ge,props:Ve}=H,{bm:et,m:Je,parent:ot,root:Ht,type:Vt}=k,tn=Ta(H);Rs(k,!1),et&&$u(et),!tn&&(ye=Ve&&Ve.onVnodeBeforeMount)&&yo(ye,ot,H),Rs(k,!0);{Ht.ce&&Ht.ce._def.shadowRoot!==!1&&Ht.ce._injectChildStyle(Vt);const pn=k.subTree=xy(k);w(null,pn,U,ne,k,ee,Z),H.el=pn.el}if(Je&&fi(Je,ee),!tn&&(ye=Ve&&Ve.onVnodeMounted)){const pn=H;fi(()=>yo(ye,ot,pn),ee)}(H.shapeFlag&256||ot&&Ta(ot.vnode)&&ot.vnode.shapeFlag&256)&&k.a&&fi(k.a,ee),k.isMounted=!0,H=U=ne=null}};k.scope.on();const ce=k.effect=new Db(fe);k.scope.off();const ie=k.update=ce.run.bind(ce),Me=k.job=ce.runIfDirty.bind(ce);Me.i=k,Me.id=k.uid,ce.scheduler=()=>Bp(Me),Rs(k,!0),ie()},we=(k,H,U)=>{H.component=k;const ne=k.vnode.props;k.vnode=H,k.next=null,qM(k,H.props,ne,U),XM(k,H.children,U),mo(),ey(k),vo()},he=(k,H,U,ne,ee,Z,ge,fe,ce=!1)=>{const ie=k&&k.children,Me=k?k.shapeFlag:0,ye=H.children,{patchFlag:Ge,shapeFlag:Ve}=H;if(Ge>0){if(Ge&128){Ie(ie,ye,U,ne,ee,Z,ge,fe,ce);return}else if(Ge&256){xe(ie,ye,U,ne,ee,Z,ge,fe,ce);return}}Ve&8?(Me&16&&Te(ie,ee,Z),ye!==ie&&h(U,ye)):Me&16?Ve&16?Ie(ie,ye,U,ne,ee,Z,ge,fe,ce):Te(ie,ee,Z,!0):(Me&8&&h(U,""),Ve&16&&N(ye,U,ne,ee,Z,ge,fe,ce))},xe=(k,H,U,ne,ee,Z,ge,fe,ce)=>{k=k||ba,H=H||ba;const ie=k.length,Me=H.length,ye=Math.min(ie,Me);let Ge;for(Ge=0;Ge<ye;Ge++){const Ve=H[Ge]=ce?Ar(H[Ge]):bo(H[Ge]);w(k[Ge],Ve,U,null,ee,Z,ge,fe,ce)}ie>Me?Te(k,ee,Z,!0,!1,ye):N(H,U,ne,ee,Z,ge,fe,ce,ye)},Ie=(k,H,U,ne,ee,Z,ge,fe,ce)=>{let ie=0;const Me=H.length;let ye=k.length-1,Ge=Me-1;for(;ie<=ye&&ie<=Ge;){const Ve=k[ie],et=H[ie]=ce?Ar(H[ie]):bo(H[ie]);if(Fs(Ve,et))w(Ve,et,U,null,ee,Z,ge,fe,ce);else break;ie++}for(;ie<=ye&&ie<=Ge;){const Ve=k[ye],et=H[Ge]=ce?Ar(H[Ge]):bo(H[Ge]);if(Fs(Ve,et))w(Ve,et,U,null,ee,Z,ge,fe,ce);else break;ye--,Ge--}if(ie>ye){if(ie<=Ge){const Ve=Ge+1,et=Ve<Me?H[Ve].el:ne;for(;ie<=Ge;)w(null,H[ie]=ce?Ar(H[ie]):bo(H[ie]),U,et,ee,Z,ge,fe,ce),ie++}}else if(ie>Ge)for(;ie<=ye;)q(k[ie],ee,Z,!0),ie++;else{const Ve=ie,et=ie,Je=new Map;for(ie=et;ie<=Ge;ie++){const Ae=H[ie]=ce?Ar(H[ie]):bo(H[ie]);Ae.key!=null&&Je.set(Ae.key,ie)}let ot,Ht=0;const Vt=Ge-et+1;let tn=!1,pn=0;const bi=new Array(Vt);for(ie=0;ie<Vt;ie++)bi[ie]=0;for(ie=Ve;ie<=ye;ie++){const Ae=k[ie];if(Ht>=Vt){q(Ae,ee,Z,!0);continue}let je;if(Ae.key!=null)je=Je.get(Ae.key);else for(ot=et;ot<=Ge;ot++)if(bi[ot-et]===0&&Fs(Ae,H[ot])){je=ot;break}je===void 0?q(Ae,ee,Z,!0):(bi[je-et]=ie+1,je>=pn?pn=je:tn=!0,w(Ae,H[je],U,null,ee,Z,ge,fe,ce),Ht++)}const ke=tn?nk(bi):ba;for(ot=ke.length-1,ie=Vt-1;ie>=0;ie--){const Ae=et+ie,je=H[Ae],Oe=H[Ae+1],$e=Ae+1<Me?Oe.el||Gy(Oe):ne;bi[ie]===0?w(null,je,U,$e,ee,Z,ge,fe,ce):tn&&(ot<0||ie!==ke[ot]?G(je,U,$e,2):ot--)}}},G=(k,H,U,ne,ee=null)=>{const{el:Z,type:ge,transition:fe,children:ce,shapeFlag:ie}=k;if(ie&6){G(k.component.subTree,H,U,ne);return}if(ie&128){k.suspense.move(H,U,ne);return}if(ie&64){ge.move(k,H,U,Ue);return}if(ge===vt){i(Z,H,U);for(let ye=0;ye<ce.length;ye++)G(ce[ye],H,U,ne);i(k.anchor,H,U);return}if(ge===Yp){S(k,H,U);return}if(ne!==2&&ie&1&&fe)if(ne===0)fe.beforeEnter(Z),i(Z,H,U),fi(()=>fe.enter(Z),ee);else{const{leave:ye,delayLeave:Ge,afterLeave:Ve}=fe,et=()=>{k.ctx.isUnmounted?o(Z):i(Z,H,U)},Je=()=>{Z._isLeaving&&Z[jo](!0),ye(Z,()=>{et(),Ve&&Ve()})};Ge?Ge(Z,et,Je):Je()}else i(Z,H,U)},q=(k,H,U,ne=!1,ee=!1)=>{const{type:Z,props:ge,ref:fe,children:ce,dynamicChildren:ie,shapeFlag:Me,patchFlag:ye,dirs:Ge,cacheIndex:Ve}=k;if(ye===-2&&(ee=!1),fe!=null&&(mo(),Wl(fe,null,U,k,!0),vo()),Ve!=null&&(H.renderCache[Ve]=void 0),Me&256){H.ctx.deactivate(k);return}const et=Me&1&&Ge,Je=!Ta(k);let ot;if(Je&&(ot=ge&&ge.onVnodeBeforeUnmount)&&yo(ot,H,k),Me&6)Pe(k.component,U,ne);else{if(Me&128){k.suspense.unmount(U,ne);return}et&&ys(k,null,H,"beforeUnmount"),Me&64?k.type.remove(k,H,U,Ue,ne):ie&&!ie.hasOnce&&(Z!==vt||ye>0&&ye&64)?Te(ie,H,U,!1,!0):(Z===vt&&ye&384||!ee&&Me&16)&&Te(ce,H,U),ne&&j(k)}(Je&&(ot=ge&&ge.onVnodeUnmounted)||et)&&fi(()=>{ot&&yo(ot,H,k),et&&ys(k,null,H,"unmounted")},U)},j=k=>{const{type:H,el:U,anchor:ne,transition:ee}=k;if(H===vt){ae(U,ne);return}if(H===Yp){x(k);return}const Z=()=>{o(U),ee&&!ee.persisted&&ee.afterLeave&&ee.afterLeave()};if(k.shapeFlag&1&&ee&&!ee.persisted){const{leave:ge,delayLeave:fe}=ee,ce=()=>ge(U,Z);fe?fe(k.el,Z,ce):ce()}else Z()},ae=(k,H)=>{let U;for(;k!==H;)U=p(k),o(k),k=U;o(H)},Pe=(k,H,U)=>{const{bum:ne,scope:ee,job:Z,subTree:ge,um:fe,m:ce,a:ie}=k;By(ce),By(ie),ne&&$u(ne),ee.stop(),Z&&(Z.flags|=8,q(ge,k,H,U)),fe&&fi(fe,H),fi(()=>{k.isUnmounted=!0},H)},Te=(k,H,U,ne=!1,ee=!1,Z=0)=>{for(let ge=Z;ge<k.length;ge++)q(k[ge],H,U,ne,ee)},ve=k=>{if(k.shapeFlag&6)return ve(k.component.subTree);if(k.shapeFlag&128)return k.suspense.next();const H=p(k.anchor||k.el),U=H&&H[hM];return U?p(U):H};let _e=!1;const ze=(k,H,U)=>{let ne;k==null?H._vnode&&(q(H._vnode,null,null,!0),ne=H._vnode.component):w(H._vnode||null,k,H,null,null,null,U),H._vnode=k,_e||(_e=!0,ey(ne),ty(),_e=!1)},Ue={p:w,um:q,m:G,r:j,mt:Q,mc:N,pc:he,pbc:L,n:ve,o:e};return{render:ze,hydrate:void 0,createApp:HM(ze)}}function Qp({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function Rs({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function tk(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Oy(e,t,n=!1){const i=e.children,o=t.children;if(Ne(i)&&Ne(o))for(let r=0;r<i.length;r++){const s=i[r];let a=o[r];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=o[r]=Ar(o[r]),a.el=s.el),!n&&a.patchFlag!==-2&&Oy(s,a)),a.type===pd&&(a.patchFlag!==-1?a.el=s.el:a.__elIndex=r+(e.type===vt?1:0)),a.type===In&&!a.el&&(a.el=s.el)}}function nk(e){const t=e.slice(),n=[0];let i,o,r,s,a;const l=e.length;for(i=0;i<l;i++){const u=e[i];if(u!==0){if(o=n[n.length-1],e[o]<u){t[i]=o,n.push(i);continue}for(r=0,s=n.length-1;r<s;)a=r+s>>1,e[n[a]]<u?r=a+1:s=a;u<e[n[r]]&&(r>0&&(t[i]=n[r-1]),n[r]=i)}}for(r=n.length,s=n[r-1];r-- >0;)n[r]=s,s=t[s];return n}function Ny(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Ny(t)}function By(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function Gy(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?Gy(t.subTree):null}const Hy=e=>e.__isSuspense;function ik(e,t){t&&t.pendingBranch?Ne(e)?t.effects.push(...e):t.effects.push(e):sM(e)}const vt=Symbol.for("v-fgt"),pd=Symbol.for("v-txt"),In=Symbol.for("v-cmt"),Yp=Symbol.for("v-stc"),ql=[];let pi=null;function ue(e=!1){ql.push(pi=e?null:[])}function ok(){ql.pop(),pi=ql[ql.length-1]||null}let Ql=1;function gd(e,t=!1){Ql+=e,e<0&&pi&&t&&(pi.hasOnce=!0)}function Vy(e){return e.dynamicChildren=Ql>0?pi||ba:null,ok(),Ql>0&&pi&&pi.push(e),e}function Se(e,t,n,i,o,r){return Vy(W(e,t,n,i,o,r,!0))}function en(e,t,n,i,o){return Vy(rt(e,t,n,i,o,!0))}function Yl(e){return e?e.__v_isVNode===!0:!1}function Fs(e,t){return e.type===t.type&&e.key===t.key}const Wy=({key:e})=>e??null,md=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?jt(e)||qt(e)||Ze(e)?{i:mn,r:e,k:t,f:!!n}:e:null);function W(e,t=null,n=null,i=0,o=null,r=e===vt?0:1,s=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Wy(t),ref:t&&md(t),scopeId:iy,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:r,patchFlag:i,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:mn};return a?(Zp(l,n),r&128&&e.normalize(l)):n&&(l.shapeFlag|=jt(n)?8:16),Ql>0&&!s&&pi&&(l.patchFlag>0||r&6)&&l.patchFlag!==32&&pi.push(l),l}const rt=rk;function rk(e,t=null,n=null,i=0,o=null,r=!1){if((!e||e===TM)&&(e=In),Yl(e)){const a=Tr(e,t,!0);return n&&Zp(a,n),Ql>0&&!r&&pi&&(a.shapeFlag&6?pi[pi.indexOf(e)]=a:pi.push(a)),a.patchFlag=-2,a}if(vk(e)&&(e=e.__vccOpts),t){t=sk(t);let{class:a,style:l}=t;a&&!jt(a)&&(t.class=Kt(a)),Ft(l)&&(Fa(l)&&!Ne(l)&&(l=Lt({},l)),t.style=Ei(l))}const s=jt(e)?1:Hy(e)?128:ry(e)?64:Ft(e)?4:Ze(e)?2:0;return W(e,t,n,i,o,s,r,!0)}function sk(e){return e?Fa(e)||Ty(e)?Lt({},e):e:null}function Tr(e,t,n=!1,i=!1){const{props:o,ref:r,patchFlag:s,children:a,transition:l}=e,u=t?ak(o||{},t):o,h={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&Wy(u),ref:t&&t.ref?n&&r?Ne(r)?r.concat(md(t)):[r,md(t)]:md(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==vt?s===-1?16:s|16:s,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Tr(e.ssContent),ssFallback:e.ssFallback&&Tr(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&i&&Vl(h,l.clone(h)),h}function Mn(e=" ",t=0){return rt(pd,null,e,t)}function _t(e="",t=!1){return t?(ue(),en(In,null,e)):rt(In,null,e)}function bo(e){return e==null||typeof e=="boolean"?rt(In):Ne(e)?rt(vt,null,e.slice()):Yl(e)?Ar(e):rt(pd,null,String(e))}function Ar(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Tr(e)}function Zp(e,t){let n=0;const{shapeFlag:i}=e;if(t==null)t=null;else if(Ne(t))n=16;else if(typeof t=="object")if(i&65){const o=t.default;o&&(o._c&&(o._d=!1),Zp(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!Ty(t)?t._ctx=mn:o===3&&mn&&(mn.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Ze(t)?(t={default:t,_ctx:mn},n=32):(t=String(t),i&64?(n=16,t=[Mn(t)]):n=8);e.children=t,e.shapeFlag|=n}function ak(...e){const t={};for(let n=0;n<e.length;n++){const i=e[n];for(const o in i)if(o==="class")t.class!==i.class&&(t.class=Kt([t.class,i.class]));else if(o==="style")t.style=Ei([t.style,i.style]);else if(Hu(o)){const r=t[o],s=i[o];s&&r!==s&&!(Ne(r)&&r.includes(s))&&(t[o]=r?[].concat(r,s):s)}else o!==""&&(t[o]=i[o])}return t}function yo(e,t,n,i=null){Ji(e,t,7,[n,i])}const lk=Sy();let ck=0;function uk(e,t,n){const i=e.type,o=(t?t.appContext:e.appContext)||lk,r={uid:ck++,vnode:e,type:i,parent:t,appContext:o,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new wI(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(o.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Iy(i,o),emitsOptions:Fy(i,o),emit:null,emitted:null,propsDefaults:mt,inheritAttrs:i.inheritAttrs,ctx:mt,data:mt,props:mt,attrs:mt,slots:mt,refs:mt,setupState:mt,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return r.ctx={_:r},r.root=t?t.root:r,r.emit=VM.bind(null,r),e.ce&&e.ce(r),r}let kn=null;const qo=()=>kn||mn;let vd,Xp;{const e=Ku(),t=(n,i)=>{let o;return(o=e[n])||(o=e[n]=[]),o.push(i),r=>{o.length>1?o.forEach(s=>s(r)):o[0](r)}};vd=t("__VUE_INSTANCE_SETTERS__",n=>kn=n),Xp=t("__VUE_SSR_SETTERS__",n=>Xl=n)}const Zl=e=>{const t=kn;return vd(e),e.scope.on(),()=>{e.scope.off(),vd(t)}},zy=()=>{kn&&kn.scope.off(),vd(null)};function Uy(e){return e.vnode.shapeFlag&4}let Xl=!1;function dk(e,t=!1,n=!1){t&&Xp(t);const{props:i,children:o}=e.vnode,r=Uy(e);KM(e,i,r,t),ZM(e,o,n||t);const s=r?hk(e,t):void 0;return t&&Xp(!1),s}function hk(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,MM);const{setup:i}=n;if(i){mo();const o=e.setupContext=i.length>1?pk(e):null,r=Zl(e),s=Pa(i,e,0,[e.props,o]),a=yb(s);if(vo(),r(),(a||e.sp)&&!Ta(e)&&hy(e),a){if(s.then(zy,zy),t)return s.then(l=>{$y(e,l)}).catch(l=>{id(l,e,0)});e.asyncDep=s}else $y(e,s)}else jy(e)}function $y(e,t,n){Ze(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Ft(t)&&(e.setupState=qb(t)),jy(e)}function jy(e,t,n){const i=e.type;e.render||(e.render=i.render||go);{const o=Zl(e);mo();try{LM(e)}finally{vo(),o()}}}const fk={get(e,t){return An(e,"get",""),e[t]}};function pk(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,fk),slots:e.slots,emit:e.emit,expose:t}}function Cd(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(qb(jb(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Ul)return Ul[n](e)},has(t,n){return n in t||n in Ul}})):e.proxy}const gk=/(?:^|[-_])\w/g,mk=e=>e.replace(gk,t=>t.toUpperCase()).replace(/[-_]/g,"");function Ky(e,t=!0){return Ze(e)?e.displayName||e.name:e.name||t&&e.__name}function qy(e,t,n=!1){let i=Ky(t);if(!i&&t.__file){const o=t.__file.match(/([^/\\]+)\.\w+$/);o&&(i=o[1])}if(!i&&e){const o=r=>{for(const s in r)if(r[s]===t)return s};i=o(e.components)||e.parent&&o(e.parent.type.components)||o(e.appContext.components)}return i?mk(i):n?"App":"Anonymous"}function vk(e){return Ze(e)&&"__vccOpts"in e}const Re=(e,t)=>ZI(e,t,Xl);function Jl(e,t,n){try{gd(-1);const i=arguments.length;return i===2?Ft(t)&&!Ne(t)?Yl(t)?rt(e,null,[t]):rt(e,t):rt(e,null,t):(i>3?n=Array.prototype.slice.call(arguments,2):i===3&&Yl(n)&&(n=[n]),rt(e,t,n))}finally{gd(1)}}const Ck="3.5.27";let Jp;const Qy=typeof window<"u"&&window.trustedTypes;if(Qy)try{Jp=Qy.createPolicy("vue",{createHTML:e=>e})}catch{}const Yy=Jp?e=>Jp.createHTML(e):e=>e,wk="http://www.w3.org/2000/svg",bk="http://www.w3.org/1998/Math/MathML",Qo=typeof document<"u"?document:null,Zy=Qo&&Qo.createElement("template"),yk={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,i)=>{const o=t==="svg"?Qo.createElementNS(wk,e):t==="mathml"?Qo.createElementNS(bk,e):n?Qo.createElement(e,{is:n}):Qo.createElement(e);return e==="select"&&i&&i.multiple!=null&&o.setAttribute("multiple",i.multiple),o},createText:e=>Qo.createTextNode(e),createComment:e=>Qo.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Qo.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,i,o,r){const s=n?n.previousSibling:t.lastChild;if(o&&(o===r||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),!(o===r||!(o=o.nextSibling)););else{Zy.innerHTML=Yy(i==="svg"?`<svg>${e}</svg>`:i==="mathml"?`<math>${e}</math>`:e);const a=Zy.content;if(i==="svg"||i==="mathml"){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}t.insertBefore(a,n)}return[s?s.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Ir="transition",ec="animation",tc=Symbol("_vtc"),Xy={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},Sk=Lt({},sy,Xy),wd=(e=>(e.displayName="Transition",e.props=Sk,e))((e,{slots:t})=>Jl(gM,Rk(e),t)),xs=(e,t=[])=>{Ne(e)?e.forEach(n=>n(...t)):e&&e(...t)},Jy=e=>e?Ne(e)?e.some(t=>t.length>1):e.length>1:!1;function Rk(e){const t={};for(const I in e)I in Xy||(t[I]=e[I]);if(e.css===!1)return t;const{name:n="v",type:i,duration:o,enterFromClass:r=`${n}-enter-from`,enterActiveClass:s=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:l=r,appearActiveClass:u=s,appearToClass:h=a,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:p=`${n}-leave-active`,leaveToClass:m=`${n}-leave-to`}=e,v=Fk(o),w=v&&v[0],b=v&&v[1],{onBeforeEnter:y,onEnter:R,onEnterCancelled:S,onLeave:x,onLeaveCancelled:P,onBeforeAppear:D=y,onAppear:A=R,onAppearCancelled:N=S}=t,B=(I,O,Q,te)=>{I._enterCancelled=te,Ps(I,O?h:a),Ps(I,O?u:s),Q&&Q()},L=(I,O)=>{I._isLeaving=!1,Ps(I,f),Ps(I,m),Ps(I,p),O&&O()},M=I=>(O,Q)=>{const te=I?A:R,Fe=()=>B(O,I,Q);xs(te,[O,Fe]),eS(()=>{Ps(O,I?l:r),Yo(O,I?h:a),Jy(te)||tS(O,i,w,Fe)})};return Lt(t,{onBeforeEnter(I){xs(y,[I]),Yo(I,r),Yo(I,s)},onBeforeAppear(I){xs(D,[I]),Yo(I,l),Yo(I,u)},onEnter:M(!1),onAppear:M(!0),onLeave(I,O){I._isLeaving=!0;const Q=()=>L(I,O);Yo(I,f),I._enterCancelled?(Yo(I,p),oS(I)):(oS(I),Yo(I,p)),eS(()=>{I._isLeaving&&(Ps(I,f),Yo(I,m),Jy(x)||tS(I,i,b,Q))}),xs(x,[I,Q])},onEnterCancelled(I){B(I,!1,void 0,!0),xs(S,[I])},onAppearCancelled(I){B(I,!0,void 0,!0),xs(N,[I])},onLeaveCancelled(I){L(I),xs(P,[I])}})}function Fk(e){if(e==null)return null;if(Ft(e))return[eg(e.enter),eg(e.leave)];{const t=eg(e);return[t,t]}}function eg(e){return Rp(e)}function Yo(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[tc]||(e[tc]=new Set)).add(t)}function Ps(e,t){t.split(/\s+/).forEach(i=>i&&e.classList.remove(i));const n=e[tc];n&&(n.delete(t),n.size||(e[tc]=void 0))}function eS(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let xk=0;function tS(e,t,n,i){const o=e._endId=++xk,r=()=>{o===e._endId&&i()};if(n!=null)return setTimeout(r,n);const{type:s,timeout:a,propCount:l}=Pk(e,t);if(!s)return i();const u=s+"end";let h=0;const f=()=>{e.removeEventListener(u,p),r()},p=m=>{m.target===e&&++h>=l&&f()};setTimeout(()=>{h<l&&f()},a+1),e.addEventListener(u,p)}function Pk(e,t){const n=window.getComputedStyle(e),i=v=>(n[v]||"").split(", "),o=i(`${Ir}Delay`),r=i(`${Ir}Duration`),s=nS(o,r),a=i(`${ec}Delay`),l=i(`${ec}Duration`),u=nS(a,l);let h=null,f=0,p=0;t===Ir?s>0&&(h=Ir,f=s,p=r.length):t===ec?u>0&&(h=ec,f=u,p=l.length):(f=Math.max(s,u),h=f>0?s>u?Ir:ec:null,p=h?h===Ir?r.length:l.length:0);const m=h===Ir&&/\b(?:transform|all)(?:,|$)/.test(i(`${Ir}Property`).toString());return{type:h,timeout:f,propCount:p,hasTransform:m}}function nS(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,i)=>iS(n)+iS(e[i])))}function iS(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function oS(e){return(e?e.ownerDocument:document).body.offsetHeight}function Ek(e,t,n){const i=e[tc];i&&(t=(t?[t,...i]:[...i]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const bd=Symbol("_vod"),rS=Symbol("_vsh"),sS={name:"show",beforeMount(e,{value:t},{transition:n}){e[bd]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):nc(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:i}){!t!=!n&&(i?t?(i.beforeEnter(e),nc(e,!0),i.enter(e)):i.leave(e,()=>{nc(e,!1)}):nc(e,t))},beforeUnmount(e,{value:t}){nc(e,t)}};function nc(e,t){e.style.display=t?e[bd]:"none",e[rS]=!t}const Dk=Symbol(""),Tk=/(?:^|;)\s*display\s*:/;function Ak(e,t,n){const i=e.style,o=jt(n);let r=!1;if(n&&!o){if(t)if(jt(t))for(const s of t.split(";")){const a=s.slice(0,s.indexOf(":")).trim();n[a]==null&&yd(i,a,"")}else for(const s in t)n[s]==null&&yd(i,s,"");for(const s in n)s==="display"&&(r=!0),yd(i,s,n[s])}else if(o){if(t!==n){const s=i[Dk];s&&(n+=";"+s),i.cssText=n,r=Tk.test(n)}}else t&&e.removeAttribute("style");bd in e&&(e[bd]=r?i.display:"",e[rS]&&(i.display="none"))}const aS=/\s*!important$/;function yd(e,t,n){if(Ne(n))n.forEach(i=>yd(e,t,i));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const i=Ik(e,t);aS.test(n)?e.setProperty(Zn(i),n.replace(aS,""),"important"):e[i]=n}}const lS=["Webkit","Moz","ms"],tg={};function Ik(e,t){const n=tg[t];if(n)return n;let i=Tn(t);if(i!=="filter"&&i in e)return tg[t]=i;i=Uu(i);for(let o=0;o<lS.length;o++){const r=lS[o]+i;if(r in e)return tg[t]=r}return t}const cS="http://www.w3.org/1999/xlink";function uS(e,t,n,i,o,r=vI(t)){i&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(cS,t.slice(6,t.length)):e.setAttributeNS(cS,t,n):n==null||r&&!xb(n)?e.removeAttribute(t):e.setAttribute(t,r?"":Yi(n)?String(n):n)}function dS(e,t,n,i,o){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?Yy(n):n);return}const r=e.tagName;if(t==="value"&&r!=="PROGRESS"&&!r.includes("-")){const a=r==="OPTION"?e.getAttribute("value")||"":e.value,l=n==null?e.type==="checkbox"?"on":"":String(n);(a!==l||!("_value"in e))&&(e.value=l),n==null&&e.removeAttribute(t),e._value=n;return}let s=!1;if(n===""||n==null){const a=typeof e[t];a==="boolean"?n=xb(n):n==null&&a==="string"?(n="",s=!0):a==="number"&&(n=0,s=!0)}try{e[t]=n}catch{}s&&e.removeAttribute(o||t)}function Zo(e,t,n,i){e.addEventListener(t,n,i)}function Mk(e,t,n,i){e.removeEventListener(t,n,i)}const hS=Symbol("_vei");function kk(e,t,n,i,o=null){const r=e[hS]||(e[hS]={}),s=r[t];if(i&&s)s.value=i;else{const[a,l]=Lk(t);if(i){const u=r[t]=Nk(i,o);Zo(e,a,u,l)}else s&&(Mk(e,a,s,l),r[t]=void 0)}}const fS=/(?:Once|Passive|Capture)$/;function Lk(e){let t;if(fS.test(e)){t={};let i;for(;i=e.match(fS);)e=e.slice(0,e.length-i[0].length),t[i[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Zn(e.slice(2)),t]}let ng=0;const _k=Promise.resolve(),Ok=()=>ng||(_k.then(()=>ng=0),ng=Date.now());function Nk(e,t){const n=i=>{if(!i._vts)i._vts=Date.now();else if(i._vts<=n.attached)return;Ji(Bk(i,n.value),t,5,[i])};return n.value=e,n.attached=Ok(),n}function Bk(e,t){if(Ne(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(i=>o=>!o._stopped&&i&&i(o))}else return t}const pS=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Gk=(e,t,n,i,o,r)=>{const s=o==="svg";t==="class"?Ek(e,i,s):t==="style"?Ak(e,n,i):Hu(t)?bp(t)||kk(e,t,n,i,r):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Hk(e,t,i,s))?(dS(e,t,i),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&uS(e,t,i,s,r,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!jt(i))?dS(e,Tn(t),i,r,t):(t==="true-value"?e._trueValue=i:t==="false-value"&&(e._falseValue=i),uS(e,t,i,s))};function Hk(e,t,n,i){if(i)return!!(t==="innerHTML"||t==="textContent"||t in e&&pS(t)&&Ze(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const o=e.tagName;if(o==="IMG"||o==="VIDEO"||o==="CANVAS"||o==="SOURCE")return!1}return pS(t)&&jt(n)?!1:t in e}const gS={};function ig(e,t,n){let i=xt(e,t);Vu(i)&&(i=Lt({},i,t));class o extends og{constructor(s){super(i,s,n)}}return o.def=i,o}const Vk=typeof HTMLElement<"u"?HTMLElement:class{};class og extends Vk{constructor(t,n={},i=RS){super(),this._def=t,this._props=n,this._createApp=i,this._isVueCE=!0,this._instance=null,this._app=null,this._nonce=this._def.nonce,this._connected=!1,this._resolved=!1,this._patching=!1,this._dirty=!1,this._numberProps=null,this._styleChildren=new WeakSet,this._ob=null,this.shadowRoot&&i!==RS?this._root=this.shadowRoot:t.shadowRoot!==!1?(this.attachShadow(Lt({},t.shadowRootOptions,{mode:"open"})),this._root=this.shadowRoot):this._root=this}connectedCallback(){if(!this.isConnected)return;!this.shadowRoot&&!this._resolved&&this._parseSlots(),this._connected=!0;let t=this;for(;t=t&&(t.parentNode||t.host);)if(t instanceof og){this._parent=t;break}this._instance||(this._resolved?this._mount(this._def):t&&t._pendingResolve?this._pendingResolve=t._pendingResolve.then(()=>{this._pendingResolve=void 0,this._resolveDef()}):this._resolveDef())}_setParent(t=this._parent){t&&(this._instance.parent=t._instance,this._inheritParentContext(t))}_inheritParentContext(t=this._parent){t&&this._app&&Object.setPrototypeOf(this._app._context.provides,t._instance.provides)}disconnectedCallback(){this._connected=!1,Dr(()=>{this._connected||(this._ob&&(this._ob.disconnect(),this._ob=null),this._app&&this._app.unmount(),this._instance&&(this._instance.ce=void 0),this._app=this._instance=null,this._teleportTargets&&(this._teleportTargets.clear(),this._teleportTargets=void 0))})}_processMutations(t){for(const n of t)this._setAttr(n.attributeName)}_resolveDef(){if(this._pendingResolve)return;for(let i=0;i<this.attributes.length;i++)this._setAttr(this.attributes[i].name);this._ob=new MutationObserver(this._processMutations.bind(this)),this._ob.observe(this,{attributes:!0});const t=(i,o=!1)=>{this._resolved=!0,this._pendingResolve=void 0;const{props:r,styles:s}=i;let a;if(r&&!Ne(r))for(const l in r){const u=r[l];(u===Number||u&&u.type===Number)&&(l in this._props&&(this._props[l]=Rp(this._props[l])),(a||(a=Object.create(null)))[Tn(l)]=!0)}this._numberProps=a,this._resolveProps(i),this.shadowRoot&&this._applyStyles(s),this._mount(i)},n=this._def.__asyncLoader;n?this._pendingResolve=n().then(i=>{i.configureApp=this._def.configureApp,t(this._def=i,!0)}):t(this._def)}_mount(t){this._app=this._createApp(t),this._inheritParentContext(),t.configureApp&&t.configureApp(this._app),this._app._ceVNode=this._createVNode(),this._app.mount(this._root);const n=this._instance&&this._instance.exposed;if(n)for(const i in n)Ct(this,i)||Object.defineProperty(this,i,{get:()=>Di(n[i])})}_resolveProps(t){const{props:n}=t,i=Ne(n)?n:Object.keys(n||{});for(const o of Object.keys(this))o[0]!=="_"&&i.includes(o)&&this._setProp(o,this[o]);for(const o of i.map(Tn))Object.defineProperty(this,o,{get(){return this._getProp(o)},set(r){this._setProp(o,r,!0,!this._patching)}})}_setAttr(t){if(t.startsWith("data-v-"))return;const n=this.hasAttribute(t);let i=n?this.getAttribute(t):gS;const o=Tn(t);n&&this._numberProps&&this._numberProps[o]&&(i=Rp(i)),this._setProp(o,i,!1,!0)}_getProp(t){return this._props[t]}_setProp(t,n,i=!0,o=!1){if(n!==this._props[t]&&(this._dirty=!0,n===gS?delete this._props[t]:(this._props[t]=n,t==="key"&&this._app&&(this._app._ceVNode.key=n)),o&&this._instance&&this._update(),i)){const r=this._ob;r&&(this._processMutations(r.takeRecords()),r.disconnect()),n===!0?this.setAttribute(Zn(t),""):typeof n=="string"||typeof n=="number"?this.setAttribute(Zn(t),n+""):n||this.removeAttribute(Zn(t)),r&&r.observe(this,{attributes:!0})}}_update(){const t=this._createVNode();this._app&&(t.appContext=this._app._context),sg(t,this._root)}_createVNode(){const t={};this.shadowRoot||(t.onVnodeMounted=t.onVnodeUpdated=this._renderSlots.bind(this));const n=rt(this._def,Lt(t,this._props));return this._instance||(n.ce=i=>{this._instance=i,i.ce=this,i.isCE=!0;const o=(r,s)=>{this.dispatchEvent(new CustomEvent(r,Vu(s[0])?Lt({detail:s},s[0]):{detail:s}))};i.emit=(r,...s)=>{o(r,s),Zn(r)!==r&&o(Zn(r),s)},this._setParent()}),n}_applyStyles(t,n){if(!t)return;if(n){if(n===this._def||this._styleChildren.has(n))return;this._styleChildren.add(n)}const i=this._nonce;for(let o=t.length-1;o>=0;o--){const r=document.createElement("style");i&&r.setAttribute("nonce",i),r.textContent=t[o],this.shadowRoot.prepend(r)}}_parseSlots(){const t=this._slots={};let n;for(;n=this.firstChild;){const i=n.nodeType===1&&n.getAttribute("slot")||"default";(t[i]||(t[i]=[])).push(n),this.removeChild(n)}}_renderSlots(){const t=this._getSlots(),n=this._instance.type.__scopeId;for(let i=0;i<t.length;i++){const o=t[i],r=o.getAttribute("name")||"default",s=this._slots[r],a=o.parentNode;if(s)for(const l of s){if(n&&l.nodeType===1){const u=n+"-s",h=document.createTreeWalker(l,1);l.setAttribute(u,"");let f;for(;f=h.nextNode();)f.setAttribute(u,"")}a.insertBefore(l,o)}else for(;o.firstChild;)a.insertBefore(o.firstChild,o);a.removeChild(o)}}_getSlots(){const t=[this];this._teleportTargets&&t.push(...this._teleportTargets);const n=new Set;for(const i of t){const o=i.querySelectorAll("slot");for(let r=0;r<o.length;r++)n.add(o[r])}return Array.from(n)}_injectChildStyle(t){this._applyStyles(t.styles,t)}_beginPatch(){this._patching=!0,this._dirty=!1}_endPatch(){this._patching=!1,this._dirty&&this._instance&&this._update()}_removeChildStyle(t){}}const Mr=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Ne(t)?n=>$u(t,n):t};function Wk(e){e.target.composing=!0}function mS(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Ai=Symbol("_assign");function vS(e,t,n){return t&&(e=e.trim()),n&&(e=ju(e)),e}const Xo={created(e,{modifiers:{lazy:t,trim:n,number:i}},o){e[Ai]=Mr(o);const r=i||o.props&&o.props.type==="number";Zo(e,t?"change":"input",s=>{s.target.composing||e[Ai](vS(e.value,n,r))}),(n||r)&&Zo(e,"change",()=>{e.value=vS(e.value,n,r)}),t||(Zo(e,"compositionstart",Wk),Zo(e,"compositionend",mS),Zo(e,"change",mS))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:i,trim:o,number:r}},s){if(e[Ai]=Mr(s),e.composing)return;const a=(r||e.type==="number")&&!/^0\d/.test(e.value)?ju(e.value):e.value,l=t??"";a!==l&&(document.activeElement===e&&e.type!=="range"&&(i&&t===n||o&&e.value.trim()===l)||(e.value=l))}},Sd={deep:!0,created(e,t,n){e[Ai]=Mr(n),Zo(e,"change",()=>{const i=e._modelValue,o=ka(e),r=e.checked,s=e[Ai];if(Ne(i)){const a=Fp(i,o),l=a!==-1;if(r&&!l)s(i.concat(o));else if(!r&&l){const u=[...i];u.splice(a,1),s(u)}}else if(Sa(i)){const a=new Set(i);r?a.add(o):a.delete(o),s(a)}else s(bS(e,r))})},mounted:CS,beforeUpdate(e,t,n){e[Ai]=Mr(n),CS(e,t,n)}};function CS(e,{value:t,oldValue:n},i){e._modelValue=t;let o;if(Ne(t))o=Fp(t,i.props.value)>-1;else if(Sa(t))o=t.has(i.props.value);else{if(t===n)return;o=Cs(t,bS(e,!0))}e.checked!==o&&(e.checked=o)}const zk={created(e,{value:t},n){e.checked=Cs(t,n.props.value),e[Ai]=Mr(n),Zo(e,"change",()=>{e[Ai](ka(e))})},beforeUpdate(e,{value:t,oldValue:n},i){e[Ai]=Mr(i),t!==n&&(e.checked=Cs(t,i.props.value))}},ic={deep:!0,created(e,{value:t,modifiers:{number:n}},i){const o=Sa(t);Zo(e,"change",()=>{const r=Array.prototype.filter.call(e.options,s=>s.selected).map(s=>n?ju(ka(s)):ka(s));e[Ai](e.multiple?o?new Set(r):r:r[0]),e._assigning=!0,Dr(()=>{e._assigning=!1})}),e[Ai]=Mr(i)},mounted(e,{value:t}){wS(e,t)},beforeUpdate(e,t,n){e[Ai]=Mr(n)},updated(e,{value:t}){e._assigning||wS(e,t)}};function wS(e,t){const n=e.multiple,i=Ne(t);if(!(n&&!i&&!Sa(t))){for(let o=0,r=e.options.length;o<r;o++){const s=e.options[o],a=ka(s);if(n)if(i){const l=typeof a;l==="string"||l==="number"?s.selected=t.some(u=>String(u)===String(a)):s.selected=Fp(t,a)>-1}else s.selected=t.has(a);else if(Cs(ka(s),t)){e.selectedIndex!==o&&(e.selectedIndex=o);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function ka(e){return"_value"in e?e._value:e.value}function bS(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const rg={created(e,t,n){Rd(e,t,n,null,"created")},mounted(e,t,n){Rd(e,t,n,null,"mounted")},beforeUpdate(e,t,n,i){Rd(e,t,n,i,"beforeUpdate")},updated(e,t,n,i){Rd(e,t,n,i,"updated")}};function Uk(e,t){switch(e){case"SELECT":return ic;case"TEXTAREA":return Xo;default:switch(t){case"checkbox":return Sd;case"radio":return zk;default:return Xo}}}function Rd(e,t,n,i,o){const s=Uk(e.tagName,n.props&&n.props.type)[o];s&&s(e,t,n,i)}const $k=["ctrl","shift","alt","meta"],jk={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>$k.some(n=>e[`${n}Key`]&&!t.includes(n))},Ot=(e,t)=>{const n=e._withMods||(e._withMods={}),i=t.join(".");return n[i]||(n[i]=((o,...r)=>{for(let s=0;s<t.length;s++){const a=jk[t[s]];if(a&&a(o,t))return}return e(o,...r)}))},Kk={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Cn=(e,t)=>{const n=e._withKeys||(e._withKeys={}),i=t.join(".");return n[i]||(n[i]=(o=>{if(!("key"in o))return;const r=Zn(o.key);if(t.some(s=>s===r||Kk[s]===r))return e(o)}))},qk=Lt({patchProp:Gk},yk);let yS;function SS(){return yS||(yS=JM(qk))}const sg=((...e)=>{SS().render(...e)}),RS=((...e)=>{const t=SS().createApp(...e),{mount:n}=t;return t.mount=i=>{const o=Yk(i);if(!o)return;const r=t._component;!Ze(r)&&!r.render&&!r.template&&(r.template=o.innerHTML),o.nodeType===1&&(o.textContent="");const s=n(o,!1,Qk(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),s},t});function Qk(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Yk(e){return jt(e)?document.querySelector(e):e}function Pt(e){if(e?.length)return e[e.length-1]}function kr(e,t,n){if(e===t)return!0;if(!e||!t)return e==null&&t==null;const i=e.length;if(i!==t.length)return!1;for(let o=0;o<i;o++)if(e[o]!==t[o]&&!n?.(e[o],t[o]))return!1;return!0}function oc(e,t){if(e){for(const n of e)if(t(n))return!0}}function So(e,t){const n=e.indexOf(t);n>=0&&e.splice(n,1)}function Zk(e,t){let n=0,i=0;for(;n<e.length;n++)t.includes(e[n])||(e[i]=e[n],i++);for(;i<e.length;)e.pop()}function FS(e,t,n){for(let i=0;i<t.length;i++)So(e,t[i]);for(let i=t.length-1;i>=0;i--)e.splice(n,0,t[i])}var Jo=e=>e==null||e===""?null:e;function Ce(e){return e!=null&&e!==""}function Nt(e){return!Ce(e)}var ag=e=>e!=null&&typeof e.toString=="function"?e.toString():null,rc=(e,t)=>{const n=e?JSON.stringify(e):null,i=t?JSON.stringify(t):null;return n===i},Xk=(e,t,n=!1)=>e==null?t==null?0:-1:t==null?1:(typeof e=="object"&&e.toNumber&&(e=e.toNumber()),typeof t=="object"&&t.toNumber&&(t=t.toNumber()),!n||typeof e!="string"?e>t?1:e<t?-1:0:e.localeCompare(t)),Es=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,n){const i=t?this.allAsyncListeners:this.allSyncListeners;let o=i.get(e);return!o&&n&&(o=new Set,i.set(e,o)),o}noRegisteredListenersExist(){return this.allSyncListeners.size===0&&this.allAsyncListeners.size===0&&this.globalSyncListeners.size===0&&this.globalAsyncListeners.size===0}addEventListener(e,t,n=!1){this.getListeners(e,n,!0).add(t)}removeEventListener(e,t,n=!1){const i=this.getListeners(e,n,!1);i&&(i.delete(t),i.size===0&&(n?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 n=e.type;if(t&&"event"in e){const a=e.event;a instanceof Event&&(e.eventPath=a.composedPath())}const{frameworkOverrides:i}=this,o=a=>{const l=i?()=>i.wrapIncoming(a):a;t?this.dispatchAsync(l):l()},r=this.getListeners(n,t,!1);if((r?.size??0)>0){const a=new Set(r);for(const l of a)r?.has(l)&&o(()=>l(e))}const s=this.getGlobalListeners(t);if(s.size>0){const a=new Set(s);for(const l of a)o(()=>l(n,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)},n=this.frameworkOverrides;n?n.wrapIncoming(t):t(),this.scheduled=!0}}flushAsyncQueue(){this.scheduled=!1;const e=this.asyncFunctionsQueue.slice();this.asyncFunctionsQueue=[];for(const t of e)t()}},Jk=/[&<>"']/g,eL={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function La(e){return e?.toString().toString()??null}function sc(e){return La(e)?.replace(Jk,t=>eL[t])??null}function xS(e){return typeof e=="string"&&e.startsWith("=")&&e.length>1}function tL(e){if(!e||e==null)return null;const t=/([a-z])([A-Z])/g,n=/([A-Z]+)([A-Z])([a-z])/g;return e.replace(t,"$1 $2").replace(n,"$1 $2$3").replace(/\./g," ").split(" ").map(o=>o.substring(0,1).toUpperCase()+(o.length>1?o.substring(1,o.length):"")).join(" ")}function Ro(e){return e.eRootDiv.getRootNode()}function At(e){return Ro(e).activeElement}function on(e){const{gos:t,eRootDiv:n}=e;let i=null;const o=t.get("getDocument");return o&&Ce(o)?i=o():n&&(i=n.ownerDocument),i&&Ce(i)?i:document}function lg(e){const t=At(e);return t===null||t===on(e).body}function cg(e){return on(e).defaultView||window}function ug(e){let t=null,n=null;try{t=on(e).fullscreenElement}catch{}finally{t||(t=Ro(e));const i=t.querySelector("body");i?n=i:t instanceof ShadowRoot?n=t:t instanceof Document?n=t?.documentElement:n=t}return n}function nL(e){return ug(e)?.clientWidth??(window.innerWidth||-1)}function iL(e){return ug(e)?.clientHeight??(window.innerHeight||-1)}function eo(e,t,n){n==null||typeof n=="string"&&n==""?PS(e,t):Ii(e,t,n)}function Ii(e,t,n){e.setAttribute(ES(t),n.toString())}function PS(e,t){e.removeAttribute(ES(t))}function ES(e){return`aria-${e}`}function Lr(e,t){t?e.setAttribute("role",t):e.removeAttribute("role")}function oL(e){const t=e?.direction;return t==="asc"?"ascending":t==="desc"?"descending":t==="mixed"?"other":"none"}function rL(e){return e.getAttribute("aria-label")}function _a(e,t){eo(e,"label",t)}function ac(e,t){eo(e,"labelledby",t)}function DS(e,t){eo(e,"live",t)}function sL(e,t){eo(e,"atomic",t)}function aL(e,t){eo(e,"relevant",t)}function dg(e,t){eo(e,"invalid",t)}function lL(e,t){eo(e,"disabled",t)}function TS(e,t){eo(e,"hidden",t)}function hg(e,t){Ii(e,"expanded",t)}function cL(e,t){Ii(e,"setsize",t)}function uL(e,t){Ii(e,"posinset",t)}function dL(e,t){Ii(e,"multiselectable",t)}function hL(e,t){Ii(e,"rowcount",t)}function lc(e,t){Ii(e,"rowindex",t)}function fL(e,t){Ii(e,"rowspan",t)}function pL(e,t){Ii(e,"colcount",t)}function AS(e,t){Ii(e,"colindex",t)}function gL(e,t){Ii(e,"colspan",t)}function mL(e,t){Ii(e,"sort",t)}function vL(e){PS(e,"sort")}function IS(e,t){eo(e,"selected",t)}function CL(e,t){eo(e,"controls",t)}function wL(e,t){CL(e,t.id),ac(t,e.id)}function MS(e,t){eo(e,"owns",t)}function Fd(e,t){return t===void 0?e("ariaIndeterminate","indeterminate"):t===!0?e("ariaChecked","checked"):e("ariaUnchecked","unchecked")}var bL="[tabindex], input, select, button, textarea, [href]",kS="[disabled], .ag-disabled:not(.ag-button), .ag-disabled *";function cc(e){return!e||!e.matches("input, select, button, textarea")||!e.matches(kS)?!1:ki(e)}function bt(e,t,n={}){const{skipAriaHidden:i}=n;e.classList.toggle("ag-hidden",!t),i||TS(e,!t)}function yL(e,t,n={}){const{skipAriaHidden:i}=n;e.classList.toggle("ag-invisible",!t),i||TS(e,!t)}function uc(e,t){const n="disabled",i=t?r=>r.setAttribute(n,""):r=>r.removeAttribute(n);i(e);const o=e.querySelectorAll("input")??[];for(const r of o)i(r)}function Ds(e,t,n){let i=0;for(;e;){if(e.classList.contains(t))return!0;if(e=e.parentElement,typeof n=="number"){if(++i>n)break}else if(e===n)break}return!1}function Ts(e){const{height:t,width:n,borderTopWidth:i,borderRightWidth:o,borderBottomWidth:r,borderLeftWidth:s,paddingTop:a,paddingRight:l,paddingBottom:u,paddingLeft:h,marginTop:f,marginRight:p,marginBottom:m,marginLeft:v,boxSizing:w}=window.getComputedStyle(e),b=Number.parseFloat;return{height:b(t||"0"),width:b(n||"0"),borderTopWidth:b(i||"0"),borderRightWidth:b(o||"0"),borderBottomWidth:b(r||"0"),borderLeftWidth:b(s||"0"),paddingTop:b(a||"0"),paddingRight:b(l||"0"),paddingBottom:b(u||"0"),paddingLeft:b(h||"0"),marginTop:b(f||"0"),marginRight:b(p||"0"),marginBottom:b(m||"0"),marginLeft:b(v||"0"),boxSizing:w}}function fg(e){const t=Ts(e);return t.boxSizing==="border-box"?t.height-t.paddingTop-t.paddingBottom-t.borderTopWidth-t.borderBottomWidth:t.height}function dc(e){const t=Ts(e);return t.boxSizing==="border-box"?t.width-t.paddingLeft-t.paddingRight-t.borderLeftWidth-t.borderRightWidth:t.width}function LS(e){const{height:t,marginBottom:n,marginTop:i}=Ts(e);return Math.floor(t+n+i)}function xd(e){const{width:t,marginLeft:n,marginRight:i}=Ts(e);return Math.floor(t+n+i)}function _S(e){const t=e.getBoundingClientRect(),{borderTopWidth:n,borderLeftWidth:i,borderRightWidth:o,borderBottomWidth:r}=Ts(e);return{top:t.top+(n||0),left:t.left+(i||0),right:t.right+(o||0),bottom:t.bottom+(r||0)}}function Pd(e,t){let n=e.scrollLeft;return t&&(n=Math.abs(n)),n}function Ed(e,t,n){n&&(t*=-1),e.scrollLeft=t}function wn(e){for(;e?.firstChild;)e.firstChild.remove()}function Mi(e){e?.parentNode&&e.remove()}function OS(e){return!!e.offsetParent}function ki(e){return e.checkVisibility?e.checkVisibility({checkVisibilityCSS:!0}):!(!OS(e)||window.getComputedStyle(e).visibility!=="visible")}function pg(e){const t=document.createElement("div");return t.innerHTML=(e||"").trim(),t.firstChild}function NS(e,t,n){n&&n.nextSibling===t||(e.firstChild?n?n.nextSibling?e.insertBefore(t,n.nextSibling):e.appendChild(t):e.firstChild&&e.firstChild!==t&&e.prepend(t):e.appendChild(t))}function BS(e,t){for(let n=0;n<t.length;n++){const i=t[n],o=e.children[n];o!==i&&e.insertBefore(i,o)}}function SL(e){return e.replace(/[A-Z]/g,t=>`-${t.toLocaleLowerCase()}`)}function hc(e,t){if(t)for(const n of Object.keys(t)){const i=t[n];if(!n?.length||i==null)continue;const o=SL(n),r=i.toString(),s=r.replace(/\s*!important/g,""),a=s.length!=r.length?"important":void 0;e.style.setProperty(o,s,a)}}function fc(e){return()=>{const t=e();return t?GS(t)||RL(t):!0}}function GS(e){return e.clientWidth<e.scrollWidth}function RL(e){return e.clientHeight<e.scrollHeight}function Dd(e,t){t==="flex"?(e.style.removeProperty("width"),e.style.removeProperty("minWidth"),e.style.removeProperty("maxWidth"),e.style.flex="1 1 auto"):Fo(e,t)}function Fo(e,t){t=gg(t),e.style.width=t,e.style.maxWidth=t,e.style.minWidth=t}function pc(e,t){t=gg(t),e.style.height=t,e.style.maxHeight=t,e.style.minHeight=t}function gg(e){return typeof e=="number"?`${e}px`:e}function mg(e){return e instanceof Node||e instanceof HTMLElement}function ti(e,t,n){n==null||n===""?e.removeAttribute(t):e.setAttribute(t,n.toString())}function FL(e,t){if(!t.isContentEditable)return;const n=cg(e).getSelection();if(!n)return;const i=on(e).createRange();i.selectNodeContents(t),i.collapse(!1),n.removeAllRanges(),n.addRange(i)}function _r(e,t,n){const o=cg(e).ResizeObserver,r=o?new o(n):null;return r?.observe(t),()=>r?.disconnect()}function er(e,t){const n=cg(e);n.requestAnimationFrame?n.requestAnimationFrame(t):n.webkitRequestAnimationFrame?n.webkitRequestAnimationFrame(t):n.setTimeout(t,0)}var HS="data-ref",vg;function VS(){return vg??(vg=document.createTextNode(" ")),vg.cloneNode()}function As(e){const{attrs:t,children:n,cls:i,ref:o,role:r,tag:s}=e,a=document.createElement(s);if(i&&(a.className=i),o&&a.setAttribute(HS,o),r&&a.setAttribute("role",r),t)for(const l of Object.keys(t))a.setAttribute(l,t[l]);if(n)if(typeof n=="string")a.textContent=n;else{let l=!0;for(const u of n)u&&(typeof u=="string"?(a.appendChild(document.createTextNode(u)),l=!1):typeof u=="function"?a.appendChild(u()):(l&&(a.appendChild(VS()),l=!1),a.append(As(u)),a.appendChild(VS())))}return a}var xL=["touchstart","touchend","touchmove","touchcancel","scroll"],PL=["wheel"],Cg={},Td=(()=>{const e={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};return n=>{if(typeof Cg[n]=="boolean")return Cg[n];const i=document.createElement(e[n]||"div");return n="on"+n,Cg[n]=n in i}})();function EL(e,t){return!t||!e?!1:TL(t).indexOf(e)>=0}function DL(e){const t=[];let n=e.target;for(;n;)t.push(n),n=n.parentElement;return t}function TL(e){const t=e;return t.path?t.path:t.composedPath?t.composedPath():DL(t)}function AL(e,t,n){const i=IL(t);let o;i!=null&&(o={passive:i}),e.addEventListener(t,n,o)}var IL=e=>{const t=xL.includes(e),n=PL.includes(e);if(t)return!0;if(n)return!1};function WS(e,t,n){if(n===0)return!1;const i=Math.abs(e.clientX-t.clientX),o=Math.abs(e.clientY-t.clientY);return Math.max(i,o)<=n}var Oa=(e,t)=>{const n=e.identifier;for(let i=0,o=t.length;i<o;++i){const r=t[i];if(r.identifier===n)return r}return null};function gc(e,t){return e.gos.isElementInThisInstance(t.target)}function ML(e,t,n){const o=e.getBoundingClientRect().height,r=nL(n)-2,s=iL(n)-2;if(!e.offsetParent)return;const l=_S(e.offsetParent),{clientY:u,clientX:h}=t;let f=u-l.top-o/2,p=h-l.left-10;const m=on(n),v=m.defaultView||window,w=v.pageYOffset||m.documentElement.scrollTop,b=v.pageXOffset||m.documentElement.scrollLeft;r>0&&p+e.clientWidth>r+b&&(p=r+b-e.clientWidth),p<0&&(p=0),s>0&&f+e.clientHeight>s+w&&(f=s+w-e.clientHeight),f<0&&(f=0),e.style.left=`${p}px`,e.style.top=`${f}px`}var Ad=(e,...t)=>{for(const n of t){const[i,o,r,s]=n;i.addEventListener(o,r,s),e.push(n)}},wg=e=>{if(e){for(const[t,n,i,o]of e)t.removeEventListener(n,i,o);e.length=0}},Or=e=>{e.cancelable&&e.preventDefault()};function kL(e,t){return t}function zS(e){return e?.getLocaleTextFunc()??kL}function LL(e,t,n,i){const o=t[n];return e.getLocaleTextFunc()(n,typeof o=="function"?o(i):o,i)}function _L(e){return(t,n,i)=>e({key:t,defaultValue:n,variableValues:i})}function OL(e){return(t,n,i)=>{let o=e?.[t];if(o&&i?.length){let r=0;for(;!(r>=i.length||o.indexOf("${variable}")===-1);)o=o.replace("${variable}",i[r++])}return o??n}}var Vn=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,n){this.localEventService||(this.localEventService=new Es),this.localEventService.addEventListener(e,t,n)}removeEventListener(e,t,n){this.localEventService?.removeEventListener(e,t,n)}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 n=[];for(const i of Object.keys(t)){const o=t[i];o&&n.push(this._setupListener(e,i,o))}return n}_setupListener(e,t,n){if(this.destroyed)return()=>null;let i;if(NL(e))e.__addEventListener(t,n),i=()=>(e.__removeEventListener(t,n),null);else{const o=BL(e);e instanceof HTMLElement?AL(e,t,n):o?e.addListener(t,n):e.addEventListener(t,n),i=o?()=>(e.removeListener(t,n),null):()=>(e.removeEventListener(t,n),null)}return this.destroyFunctions.push(i),()=>(i(),this.destroyFunctions=this.destroyFunctions.filter(o=>o!==i),null)}setupPropertyListener(e,t){const{gos:n}=this;n.addPropertyEventListener(e,t);const i=()=>(n.removePropertyEventListener(e,t),null);return this.destroyFunctions.push(i),()=>(i(),this.destroyFunctions=this.destroyFunctions.filter(o=>o!==i),null)}addManagedPropertyListener(e,t){return this.destroyed?()=>null:this.setupPropertyListener(e,t)}addManagedPropertyListeners(e,t){if(this.destroyed)return;const n=e.join("-")+this.propertyListenerId++,i=o=>{if(o.changeSet){if(o.changeSet&&o.changeSet.id===this.lastChangeSetIdLookup[n])return;this.lastChangeSetIdLookup[n]=o.changeSet.id}const r={type:"propertyChanged",changeSet:o.changeSet,source:o.source};t(r)};for(const o of e)this.setupPropertyListener(o,i)}getLocaleTextFunc(){return zS(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 n=this.createBean(e,t);return this.addDestroyFunc(this.destroyBean.bind(this,e,t)),n}createBean(e,t,n){return(t||this.stubContext).createBean(e,n)}destroyBean(e,t){return(t||this.stubContext).destroyBean(e)}destroyBeans(e,t){return(t||this.stubContext).destroyBeans(e)}};function NL(e){return e.__addEventListener!==void 0}function BL(e){return e.eventServiceType==="global"}var X=class extends Vn{},bg=new Set,Id=(e,t)=>{bg.has(t)||(bg.add(t),e())};Id._set=bg;var GL={pending:!1,funcs:[]},HL={pending:!1,funcs:[]};function yg(e,t="setTimeout",n){const i=t==="raf"?HL:GL;if(i.funcs.push(e),i.pending)return;i.pending=!0;const o=()=>{const r=i.funcs.slice();i.funcs.length=0,i.pending=!1;for(const s of r)s()};t==="raf"?er(n,o):window.setTimeout(o,0)}function un(e,t,n){let i;return function(...o){const r=this;return window.clearTimeout(i),i=window.setTimeout(function(){e.isAlive()&&t.apply(r,o)},n),i}}function US(e,t){let n=0;return function(...i){const o=this,r=Date.now();r-n<t||(n=r,e.apply(o,i))}}function VL(e,t,n,i=100){const o=Date.now();let r=null,s=!1;const a=()=>{r!=null&&(window.clearInterval(r),r=null)};e.addDestroyFunc(a);const l=()=>{const u=Date.now()-o>i;(t()||u)&&(n(),s=!0,a())};l(),s||(r=window.setInterval(l,10))}var $S=new Set(["__proto__","constructor","prototype"]);function WL(e,t){if(e!=null){if(Array.isArray(e)){for(let n=0;n<e.length;n++)t(n.toString(),e[n]);return}for(const n of Object.keys(e).filter(i=>!$S.has(i)))t(n,e[n])}}function Wn(e,t,n=!0,i=!1){Ce(t)&&WL(t,(o,r)=>{let s=e[o];s!==r&&(i&&s==null&&r!=null&&typeof r=="object"&&r.constructor===Object&&(s={},e[o]=s),jS(r)&&jS(s)&&!Array.isArray(s)?Wn(s,r,n,i):(n||r!==void 0)&&(e[o]=r))})}function jS(e){return typeof e=="object"&&e!==null}var Sg=class xr{static applyGlobalGridOptions(t){if(!xr.gridOptions)return{...t};let n={};return Wn(n,xr.gridOptions,!0,!0),xr.mergeStrategy==="deep"?Wn(n,t,!0,!0):n={...n,...t},xr.gridOptions.context&&(n.context=xr.gridOptions.context),t.context&&(xr.mergeStrategy==="deep"&&n.context&&Wn(t.context,n.context,!0,!0),n.context=t.context),n}static applyGlobalGridOption(t,n){if(xr.mergeStrategy==="deep"){const i=zL(t);if(i&&typeof i=="object"&&typeof n=="object")return xr.applyGlobalGridOptions({[t]:n})[t]}return n}};Sg.gridOptions=void 0,Sg.mergeStrategy="shallow";var Rg=Sg;function zL(e){return Rg.gridOptions?.[e]}var UL={suppressContextMenu:!1,preventDefaultOnContextMenu:!1,allowContextMenuWithControlKey:!1,suppressMenuHide:!0,enableBrowserTooltips:!1,tooltipTrigger:"hover",tooltipShowDelay:2e3,tooltipSwitchShowDelay:200,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,groupHideColumnsUntilExpanded:!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},KS="https://www.ag-grid.com";function Nr(e,t,...n){e.get("debug")&&console.log("AG Grid: "+t,...n)}function mc(e,...t){Id(()=>qS(e,...t),e+t?.join(""))}function Na(e,...t){Id(()=>$L(e,...t),e+t?.join(""))}function $L(e,...t){console.error("AG Grid: "+e,...t)}function qS(e,...t){console.warn("AG Grid: "+e,...t)}var QS=new Set,Md={},Ba={},kd,YS=!1,ZS=!1,jL=!1;function KL(e){const[t,n]=e.version.split(".")||[],[i,o]=kd.split(".")||[];return t===i&&n===o}function qL(e){kd||(kd=e.version);const t=i=>`You are using incompatible versions of AG Grid modules. Major and minor versions should always match across modules. ${i} Please update all modules to the same version.`;e.version?KL(e)||Na(t(`'${e.moduleName}' is version ${e.version} but the other modules are version ${kd}.`)):Na(t(`'${e.moduleName}' is incompatible.`));const n=e.validate?.();n&&!n.isValid&&Na(`${n.message}`)}function Ga(e,t,n=!1){n||(YS=!0),qL(e);const i=e.rowModels??["all"];QS.add(e);let o;t!==void 0?(ZS=!0,Ba[t]===void 0&&(Ba[t]={}),o=Ba[t]):o=Md;for(const r of i)o[r]===void 0&&(o[r]={}),o[r][e.moduleName]=e;if(e.dependsOn)for(const r of e.dependsOn)Ga(r,t,n)}function QL(e){delete Ba[e]}function Fg(e,t,n){const i=o=>!!Md[o]?.[e]||!!Ba[t]?.[o]?.[e];return i(n)||i("all")}function xg(){return ZS}function YL(e,t){const n=Ba[e]??{};return[...Object.values(Md.all??{}),...Object.values(n.all??{}),...Object.values(Md[t]??{}),...Object.values(n[t]??{})]}function ZL(){return new Set(QS)}function XL(){return YS}function XS(){return jL}var JL=class{static register(e){Ga(e,void 0)}static registerModules(e){for(const t of e)Ga(t,void 0)}},me="35.2.1",JS=2e3,e0=100,t0="_version_",n0=null,Ha=`${KS}/javascript-data-grid`;function e_(e){n0=e}function t_(e){Ha=e}function i0(e,t,n){return n0?.(e,t)??[r_(e,t,n)]}function Pg(e,t,n,i,o){e(`${i?"warning":"error"} #${t}`,...i0(t,n,o))}function n_(e){if(!e)return String(e);const t={};for(const n of Object.keys(e))typeof e[n]!="object"&&typeof e[n]!="function"&&(t[n]=e[n]);return JSON.stringify(t)}function i_(e){let t=e;return e instanceof Error?t=e.toString():typeof e=="object"&&(t=n_(e)),t}function Ld(e){return e===void 0?"undefined":e===null?"null":e}function Eg(e,t){return`${e}?${t.toString()}`}function o_(e,t,n){const i=Array.from(t.entries()).sort((r,s)=>s[1].length-r[1].length);let o=Eg(e,t);for(const[r,s]of i){if(r===t0)continue;const a=o.length-n;if(a<=0)break;const l="...",u=a+l.length,h=s.length-u>e0?s.slice(0,s.length-u)+l:s.slice(0,e0)+l;t.set(r,h),o=Eg(e,t)}return o}function o0(e,t){const n=new URLSearchParams;if(n.append(t0,me),t)for(const r of Object.keys(t))n.append(r,i_(t[r]));const i=`${Ha}/errors/${e}`,o=Eg(i,n);return o.length<=JS?o:o_(i,n,JS)}var r_=(e,t,n)=>{const i=o0(e,t);return`${`${n?n+`
5
+ `:""}Visit ${i}`}${n?"":`
6
+ Alternatively register the ValidationModule to see the full message in the console.`}`};function se(...e){Pg(mc,e[0],e[1],!0)}function gt(...e){Pg(Na,e[0],e[1],!1)}function vc(e,t,n){Pg(Na,e,t,!1,n)}function s_(e,t){const n=t[0];return`error #${n} `+i0(n,t[1],e).join(" ")}function xo(...e){return s_(void 0,e)}function r0(e,t){return e.get("rowModelType")===t}function Yt(e,t){return r0(e,"clientSide")}function Cc(e,t){return r0(e,"serverSide")}function bn(e,t){return e.get("domLayout")===t}function Is(e){return Bd(e)!==void 0}function s0(e){return typeof e.get("getRowHeight")=="function"}function a_(e,t){return t?!e.get("enableStrictPivotColumnOrder"):e.get("maintainColumnOrder")}function l_({gos:e,formula:t}){const n=e.get("rowNumbers");return n||!!t?.active&&n!==!1}function Br(e,t,n=!1,i){const{gos:o,environment:r}=e;if(i==null&&(i=r.getDefaultRowHeight()),s0(o)){if(n)return{height:i,estimated:!0};const l={node:t,data:t.data},u=o.getCallback("getRowHeight")(l);if(Dg(u))return u===0&&se(23),{height:Math.max(1,u),estimated:!1}}if(t.detail&&o.get("masterDetail"))return c_(o);const s=o.get("rowHeight");return{height:s&&Dg(s)?s:i,estimated:!1}}function c_(e){if(e.get("detailRowAutoHeight"))return{height:1,estimated:!1};const t=e.get("detailRowHeight");return Dg(t)?{height:t,estimated:!1}:{height:300,estimated:!1}}function Ms(e){const{environment:t,gos:n}=e,i=n.get("rowHeight");if(!i||Nt(i))return t.getDefaultRowHeight();const o=t.refreshRowHeightVariable();return o!==-1?o:(se(24),t.getDefaultRowHeight())}function Dg(e){return!isNaN(e)&&typeof e=="number"&&isFinite(e)}function a0(e,t,n){const i=t[e.getDomDataKey()];return i?i[n]:void 0}function ks(e,t,n,i){const o=e.getDomDataKey();let r=t[o];Nt(r)&&(r={},t[o]=r),r[n]=i}function Va(e){return e.get("ensureDomOrder")?!1:e.get("animateRows")}function l0(e){return!(e.get("paginateChildRows")||e.get("groupHideOpenParents")||bn(e,"print"))}function tr(e){return!e.get("autoGroupColumnDef")?.comparator&&!e.get("treeData")}function _d(e){const t=e.get("groupAggFiltering");if(typeof t=="function")return e.getCallback("groupAggFiltering");if(t===!0)return()=>!0}function c0(e){return e.get("grandTotalRow")}function u_(e){return e.get("groupHideOpenParents")?!0:e.get("groupDisplayType")==="multipleColumns"}function d_(e){return u_(e)&&e.get("groupHideColumnsUntilExpanded")&&Yt(e)}function u0(e,t){return t?!1:e.get("groupDisplayType")==="groupRows"}function d0(e,t,n){return!!t.group&&!t.footer&&u0(e,n)}function Wa(e){const t=e.getCallback("getRowId");return t===void 0?t:n=>{let i=t(n);return typeof i!="string"&&(Id(()=>se(25,{id:i}),"getRowIdString"),i=String(i)),i}}function h_(e,t){const n=e.get("groupHideParentOfSingleChild");return!!(n===!0||n==="leafGroupsOnly"&&t.leafGroup||e.get("groupRemoveSingleChildren")||e.get("groupRemoveLowestSingleChildren")&&t.leafGroup)}function f_(e){const t=e.get("maxConcurrentDatasourceRequests");return t>0?t:void 0}function za(e){return e?.checkboxes??!0}function Od(e){return e?.mode==="multiRow"&&(e.headerCheckbox??!0)}function Nd(e){if(typeof e=="object")return e.checkboxLocation??"selectionColumn"}function Tg(e){return e?.hideDisabledCheckboxes??!1}function p_(e){return typeof e.get("rowSelection")!="string"}function nr(e){const t=e.get("cellSelection");return t!==void 0?!!t:e.get("enableRangeSelection")}function Ua(e){const t=e.get("cellSelection")??!1;return(typeof t=="object"&&t.enableColumnSelection)??!1}function h0(e){const t=e.get("rowSelection")??"single";if(typeof t=="string"){const n=e.get("suppressRowClickSelection"),i=e.get("suppressRowDeselection");return n&&i?!1:n?"enableDeselection":i?"enableSelection":!0}return t.mode==="singleRow"||t.mode==="multiRow"?t.enableClickSelection??!1:!1}function g_(e){const t=h0(e);return t===!0||t==="enableSelection"}function m_(e){const t=h0(e);return t===!0||t==="enableDeselection"}function Ag(e){const t=e.get("rowSelection");return typeof t=="string"?e.get("isRowSelectable"):t?.isRowSelectable}function Bd(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 wc(e){return Bd(e)==="multiRow"}function v_(e){const t=e.get("rowSelection");return typeof t=="string"?e.get("rowMultiSelectWithClick"):t?.enableSelectionWithoutKeys??!1}function Gd(e){const t=e.get("rowSelection");if(typeof t=="string"){const n=e.get("groupSelectsChildren"),i=e.get("groupSelectsFiltered");return n&&i?"filteredDescendants":n?"descendants":"self"}return t?.mode==="multiRow"?t.groupSelects:void 0}function f0(e,t=!0){const n=e.get("rowSelection");return typeof n!="object"?t?"all":void 0:n.mode==="multiRow"?n.selectAll:"all"}function C_(e){const t=e.get("rowSelection");return typeof t=="string"?!1:t?.mode==="multiRow"?t.ctrlASelectsRows??!1:!1}function bc(e){const t=Gd(e);return t==="descendants"||t==="filteredDescendants"}function p0(e){const t=e.get("rowSelection");return typeof t=="object"&&t.masterSelects||"self"}function w_(e){return e.isModuleRegistered("SetFilter")&&!e.get("suppressSetFilterByDefault")}function ni(e){return e.get("columnMenu")==="legacy"}function b_(e){return!ni(e)}function y_(e){return!e||e.length<2?e:"on"+e[0].toUpperCase()+e.substring(1)}function S_(e,t,n){typeof e!="object"&&(e={});const i={...e};for(const o of n){const r=t[o];typeof r<"u"&&(i[o]=r)}return i}function R_(e,t){if(!e)return;const n={};let i=!1;for(const s of Object.keys(e))n[s]=e[s],i=!0;if(!i)return;const o={type:"gridOptionsChanged",options:n};t.dispatchEvent(o);const r={type:"componentStateChanged",...n};t.dispatchEvent(r)}function We(e,t){return e.addCommon(t)}function F_({gos:e},t){return t.button===2||t.ctrlKey&&e.get("allowContextMenuWithControlKey")}var x_={resizable:!0,sortable:!0},P_=0;function g0(){return P_++}function Gr(e){return e instanceof Ls}var E_=["asc","desc",null],D_=[{type:"absolute",direction:"asc"},{type:"absolute",direction:"desc"},null],Ls=class extends X{constructor(e,t,n,i){super(),this.colDef=e,this.userProvidedColDef=t,this.colId=n,this.primary=i,this.isColumn=!0,this.instanceId=g0(),this.autoHeaderHeight=null,this.sortDef=Li(),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 Es,this.tooltipEnabled=!1,this.rowGroupActive=!1,this.pivotActive=!1,this.aggregationActive=!1,this.flex=null,this.colIdSanitised=sc(n)}destroy(){super.destroy(),this.beans.rowSpanSvc?.deregister(this)}getInstanceId(){return this.instanceId}initState(){const{colDef:e,beans:{sortSvc:t,pinnedCols:n,colFlex:i}}=this;t?.initCol(this);const o=e.hide;o!==void 0?this.visible=!o:this.visible=!e.initialHide,n?.initCol(this),i?.initCol(this)}setColDef(e,t,n){const i=e.spanRows!==this.colDef.spanRows;this.colDef=e,this.userProvidedColDef=t,this.initMinAndMaxWidths(),this.initDotNotation(),this.initTooltip(),i&&(this.beans.rowSpanSvc?.deregister(this),this.initRowSpan()),this.dispatchColEvent("colDefChanged",n)}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:n}}=this,i=e.get("suppressFieldDotNotation");this.fieldContainsDots=Ce(t)&&t.includes(".")&&!i,this.tooltipFieldContainsDots=Ce(n)&&n.includes(".")&&!i}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:n=>{const i=e.recreateColDef(this.colDef);this.setColDef(i,i,n.source)}})}resetActualWidth(e){const t=this.calculateColInitialWidth(this.colDef);this.setActualWidth(t,e,!0)}calculateColInitialWidth(e){const t=e.width??e.initialWidth??200;return 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 n=this.frameworkEventListenerService?.wrap(e,t)??t;this.colEventSvc.addEventListener(e,n)}removeEventListener(e,t){const n=this.frameworkEventListenerService?.unwrap(e,t)??t;this.colEventSvc.removeEventListener(e,n)}createColumnFunctionCallbackParams(e){return We(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]??x_[e]}isColumnFunc(e,t){if(typeof t=="boolean")return t;if(typeof t=="function"){const n=this.createColumnFunctionCallbackParams(e);return t(n)}return!1}createColumnEvent(e,t){return We(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:n}=this.colDef,i=t===null?t:ir(t?.type),o=n===null?n:ir(n?.type);return i&&e.push(i),o&&e.push(o),e}getSortingOrder(){const e=this.getColDefAllowedSortTypes().includes("absolute")?D_:E_;return(this.colDef.sortingOrder??this.gos.get("sortingOrder")??e).map(t=>Li(t))}getAvailableSortTypes(){const e=this.getSortingOrder().reduce((t,n)=>(n.direction&&t.push(n.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 Nt(this.getSort())}isSorting(){return Ce(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 se(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 n=e===!0;this.visible!==n&&(this.visible=n,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 n=!0;for(;e;){if(!e.isPadding()){n=!1;break}e=e.getParent()}return{numberOfParents:t,isSpanningTotal:n}}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 We(this.gos,{node:e,data:e.data,colDef:this.colDef,column:this})}getColSpan(e){if(Nt(this.colDef.colSpan))return 1;const t=this.createBaseColDefParams(e),n=this.colDef.colSpan(t);return Math.max(n,1)}getRowSpan(e){if(Nt(this.colDef.rowSpan))return 1;const t=this.createBaseColDefParams(e),n=this.colDef.rowSpan(t);return Math.max(n,1)}setActualWidth(e,t,n=!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),n||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,n){const i=this.createColumnEvent(e,t);n&&Wn(i,n),this.colEventSvc.dispatchEvent(i)}dispatchStateUpdatedEvent(e){this.colEventSvc.dispatchEvent({type:"columnStateUpdated",key:e})}};function Li(e){return $a(e)?{direction:e.direction,type:e.type}:{direction:Vd(e),type:ir(e)}}function Hr(e){return e==="asc"||e==="desc"||e===null}function Ig(e){return e==="default"||e==="absolute"}function $a(e){if(!e||typeof e!="object")return!1;const t=e;return Ig(t.type)&&Hr(t.direction)}function Hd(e,t){return e?t?e.type===t.type&&e.direction===t.direction:e?e.direction===null:!0:t?t.direction===null:!0}function Vd(e){return Hr(e)?e:null}function ir(e){return Ig(e)?e:"default"}function T_(e,t,n){const o=n?.()??t.sortSvc.getDisplaySortForColumn(e),r=ir(o?.type),s=Vd(o?.direction),a=e.getAvailableSortTypes(),l=a.has("default"),u=a.has("absolute");return{isDefaultSortAllowed:l,isAbsoluteSortAllowed:u,isAbsoluteSort:r==="absolute",isDefaultSort:r==="default",isAscending:s==="asc",isDescending:s==="desc",direction:s}}function Ln(e){return e instanceof Wd}var Wd=class extends X{constructor(e,t,n,i){super(),this.colGroupDef=e,this.groupId=t,this.padding=n,this.level=i,this.isColumn=!1,this.expandable=!1,this.instanceId=g0(),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)Gr(t)?e(t):Ln(t)&&t.forEachLeafColumn(e)}addLeafColumns(e){if(this.children)for(const t of this.children)Gr(t)?e.push(t):Ln(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,n=!1;const i=this.findChildrenRemovingPadding();for(let r=0,s=i.length;r<s;r++){const a=i[r];if(!a.isVisible())continue;const l=a.getColumnGroupShow();l==="open"?(e=!0,n=!0):l==="closed"?(t=!0,n=!0):(e=!0,t=!0)}const o=e&&t&&n;this.expandable!==o&&(this.expandable=o,this.dispatchLocalEvent({type:"expandableChanged"}))}findChildrenRemovingPadding(){const e=[],t=n=>{for(const i of n)Ln(i)&&i.isPadding()?t(i.children):e.push(i)};return t(this.children),e}onColumnVisibilityChanged(){this.setExpandable()}},A_={numericColumn:{headerClass:"ag-right-aligned-header",cellClass:"ag-right-aligned-cell"},rightAligned:{headerClass:"ag-right-aligned-header",cellClass:"ag-right-aligned-cell"}};function m0(e,t,n){const i={},o=e.gos;return Object.assign(i,o.get("defaultColGroupDef")),Object.assign(i,t),o.validateColDef(i,n),i}var I_=class{constructor(){this.existingKeys={}}addExistingKeys(e){for(let t=0;t<e.length;t++)this.existingKeys[e[t]]=!0}getUniqueKey(e,t){e=ag(e);let n=0;for(;;){let i=e??t;if(i?n!==0&&(i+="_"+n):i=n,!this.existingKeys[i]){const o=String(i);return e&&n>0&&se(273,{providedId:e,usedId:o}),this.existingKeys[o]=!0,o}n++}}},M_=(e,t)=>{Ln(e)&&e.setupExpandable(),e.originalParent=t};function k_(e,t=null,n,i,o){const r=new I_,{existingCols:s,existingGroups:a,existingColKeys:l}=L_(i);r.addExistingKeys(l);const u=v0(e,t,0,n,s,r,a,o),{colGroupSvc:h}=e,f=h?.findMaxDepth(u,0)??0,p=h?h.balanceColumnTree(u,0,f,r):u;return or(null,p,M_),{columnTree:p,treeDepth:f}}function L_(e){const t=[],n=[],i=[];return e&&or(null,e,o=>{if(Ln(o)){const r=o;n.push(r)}else{const r=o;i.push(r.getId()),t.push(r)}}),{existingCols:t,existingGroups:n,existingColKeys:i}}function v0(e,t,n,i,o,r,s,a){if(!t)return[];const{colGroupSvc:l}=e,u=new Array(t.length);for(let h=0;h<u.length;h++){const f=t[h];l&&H_(f)?u[h]=l.createProvidedColumnGroup(i,f,n,o,r,s,a):u[h]=__(e,i,f,o,r,a)}return u}function __(e,t,n,i,o,r){const s=N_(n,i);s&&i?.splice(s.idx,1);let a=s?.column;if(a){const l=Mg(e,n,a.getColId());a.setColDef(l,n,r),O_(e,a,l,r)}else{const l=o.getUniqueKey(n.colId,n.field),u=Mg(e,n,l);a=new Ls(u,n,l,t),e.context.createBean(a)}return e.dataTypeSvc?.addColumnListeners(a),a}function C0(e,t,n,i,o,r,s,a){const{sortSvc:l,pinnedCols:u,colFlex:h}=e;n!==void 0&&t.setVisible(!n,a),l&&(l.updateColSort(t,i,a),o!==void 0&&l.setColSortIndex(t,o)),r!==void 0&&u?.setColPinned(t,r),s!==void 0&&h?.setColFlex(t,s)}function O_(e,t,n,i){C0(e,t,n.hide,n.sort,n.sortIndex,n.pinned,n.flex,i);const o=t.getFlex();if(!(o!=null&&o>0))if(n.width!=null)t.setActualWidth(n.width,i);else{const r=t.getActualWidth();t.setActualWidth(r,i)}}function N_(e,t){if(t)for(let n=0;n<t.length;n++){const i=t[n].getUserProvidedColDef();if(!i)continue;if(e.colId!=null){if(t[n].getId()===e.colId)return{idx:n,column:t[n]};continue}if(e.field!=null){if(i.field===e.field)return{idx:n,column:t[n]};continue}if(i===e)return{idx:n,column:t[n]}}}function Mg(e,t,n,i){const{gos:o,dataTypeSvc:r}=e,s={},a=o.get("defaultColDef");Wn(s,a,!1,!0);const l=B_(e,s,t,n);l&&G_(e,l,s);const u=s.cellDataType;Wn(s,t,!1,!0),u!==void 0&&(s.cellDataType=u);const h=o.get("autoGroupColumnDef"),f=tr(o);return t.rowGroup&&h&&f&&Wn(s,{sort:h.sort,initialSort:h.initialSort},!1,!0),r?.postProcess(s),r?.validateColDef(s,t,a,n),o.validateColDef(s,n,i),s}function B_(e,t,n,i){const o=e.dataTypeSvc?.updateColDefAndGetColumnType(t,n,i),r=n.type??o??t.type;return t.type=r,r?$d(r):void 0}function G_(e,t,n){if(!t.length)return;const i=Object.assign({},A_),o=e.gos.get("columnTypes")||{};for(const r of Object.keys(o)){const s=o[r];r in i?se(34,{key:r}):(s.type&&se(35),i[r]=s)}for(const r of t){const s=i[r.trim()];s?Wn(n,s,!1,!0):se(36,{t:r})}}function H_(e){return e.children!==void 0}function or(e,t,n){if(t)for(let i=0;i<t.length;i++){const o=t[i];Ln(o)&&or(o,o.getChildren(),n),n(o,e)}}var zd="ag-Grid-AutoColumn",w0="ag-Grid-SelectionColumn",b0="ag-Grid-RowNumbersColumn";function y0(e){const t=[],n=i=>{for(let o=0;o<i.length;o++){const r=i[o];Gr(r)?t.push(r):Ln(r)&&n(r.getChildren())}};return n(e),t}function rr(e){return e.reduce((t,n)=>t+n.getActualWidth(),0)}function Ud(e,t,n){const i={};if(!t)return;or(null,t,r=>{i[r.getInstanceId()]=r}),n&&or(null,n,r=>{i[r.getInstanceId()]=null});const o=Object.values(i).filter(r=>r!=null);e.context.destroyBeans(o)}function kg(e){return e.getId().startsWith(zd)}function Vr(e){return(typeof e=="string"?e:"getColId"in e?e.getColId():e.colId)?.startsWith(w0)??!1}function zn(e){return(typeof e=="string"?e:"getColId"in e?e.getColId():e.colId)?.startsWith(b0)??!1}function V_(e){return Vr(e)||zn(e)}function $d(e){let t=[];return e instanceof Array?t=e:typeof e=="string"&&(t=e.split(",")),t}function W_(e,t){return kr(e,t,(n,i)=>n.getColId()===i.getColId())}function z_(e){e.map={};for(const t of e.list)e.map[t.getId()]=t}function ja(e){return e==="optionsUpdated"?"gridOptionsChanged":e}function yc(e,t){return e===t||e.colId==t||e.getColDef()===t}var U_=(e,t)=>(n,i)=>{const o={value1:void 0,value2:void 0};let r=!1;return e&&(e[n]!==void 0&&(o.value1=e[n],r=!0),Ce(i)&&e[i]!==void 0&&(o.value2=e[i],r=!0)),!r&&t&&(t[n]!==void 0&&(o.value1=t[n]),Ce(i)&&t[i]!==void 0&&(o.value2=t[i])),o};function $_(e,t){const n={...e,sort:void 0,colId:t},i=S0(e);return i&&(n.sort=i.direction,n.sortType=i.type),n}function S0(e){const{sort:t,initialSort:n}=e,i=$a(t)||Hr(t),o=$a(n)||Hr(n);return i?Li(t):o?Li(n):null}function R0(e,t){return e+"_"+t}function Zt(e){return e instanceof Sc}var Sc=class extends X{constructor(e,t,n,i){super(),this.providedColumnGroup=e,this.groupId=t,this.partId=n,this.pinned=i,this.isColumn=!1,this.displayedChildren=[],this.autoHeaderHeight=null,this.parent=null,this.colIdSanitised=sc(this.getUniqueId())}reset(){this.parent=null,this.children=null,this.displayedChildren=null}getParent(){return this.parent}getUniqueId(){return R0(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)Zt(e)&&e.checkLeft();if(this.displayedChildren.length>0)if(this.gos.get("enableRtl")){const t=Pt(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??[])Gr(t)?e.push(t):Zt(t)&&t.addDisplayedLeafColumns(e)}addLeafColumns(e){for(const t of this.children??[])Gr(t)?e.push(t):Zt(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 n of this.children??[]){if(Zt(n)&&!n.displayedChildren?.length)continue;switch(n.getColumnGroupShow()){case"open":e.getProvidedColumnGroup().isExpanded()&&this.displayedChildren.push(n);break;case"closed":e.getProvidedColumnGroup().isExpanded()||this.displayedChildren.push(n);break;default:this.displayedChildren.push(n);break}}this.dispatchLocalEvent({type:"displayedChildrenChanged"})}},K={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"},j_=65,K_=67,q_=86,Q_=68,Y_=90,Z_=89;function F0(e){const{keyCode:t}=e;let n;switch(t){case j_:n=K.A;break;case K_:n=K.C;break;case q_:n=K.V;break;case Q_:n=K.D;break;case Y_:n=K.Z;break;case Z_:n=K.Y;break;default:n=e.code}return n}function X_(e,t){return new It(n=>{n(window.setInterval(e,t))})}var It=class Bu{constructor(t){this.status=0,this.resolution=null,this.waiters=[],t(n=>this.onDone(n),n=>this.onReject(n))}static all(t){return t.length?new Bu(n=>{let i=t.length;const o=new Array(i);t.forEach((r,s)=>{r.then(a=>{o[s]=a,i--,i===0&&n(o)})})}):Bu.resolve()}static resolve(t=null){return new Bu(n=>n(t))}then(t){return new Bu(n=>{this.status===1?n(t(this.resolution)):this.waiters.push(i=>n(t(i)))})}onDone(t){this.status=1,this.resolution=t;for(const n of this.waiters)n(t)}onReject(t){}},J_=class extends Vn{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 n={capturePointer:!0,dragSource:e,eElement:e.eElement,dragStartPixels:e.dragStartPixels,onDragStart:i=>this.onDragStart(e,i),onDragStop:this.onDragStop.bind(this),onDragging:this.onDragging.bind(this),onDragCancel:this.onDragCancel.bind(this),includeTouch:t};this.dragSourceAndParamsList.push(n),this.beans.dragSvc.addDragSource(n)}setDragImageCompIcon(e,t=!1){const n=this.dragImageComp;n&&(t||this.dragImageLastIcon!==e)&&(this.dragImageLastIcon=e,n.setIcon(e,t))}removeDragSource(e){const{dragSourceAndParamsList:t,beans:n}=this;for(let i=0,o=t.length;i<o;i++)if(t[i].dragSource===e){const r=t[i];n.dragSvc?.removeDragSource(r),t.splice(i,1);break}}destroy(){const{dragSourceAndParamsList:e,dropTargets:t,beans:n}=this,i=n.dragSvc;for(const o of e)i?.removeDragSource(o);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 n=e.eElement.getBoundingClientRect();this.dragInitialSourcePointerOffsetX=t.clientX-n.left,this.dragInitialSourcePointerOffsetY=t.clientY-n.top,e.onDragStarted?.(),this.createAndUpdateDragImageComp(e)}onDragStop(e){const{dragSource:t,lastDropTarget:n}=this;if(t?.onDragStopped?.(),n){const i=this.dropTargetEvent(n,e,!1);n.onDragStop?.(i)}this.clearDragAndDropProperties()}onDragCancel(){const{dragSource:e,lastDropTarget:t,lastMouseEvent:n}=this;if(e?.onDragCancelled?.(),t&&n){const i=this.dropTargetEvent(t,n,!1);t.onDragCancel?.(i)}this.clearDragAndDropProperties()}onDragging(e,t=!1){this.positionDragImageComp(e);const n=this.findCurrentDropTarget(e),{lastDropTarget:i,dragSource:o,dragItem:r}=this;let s=!1;if(n!==i){if(s=!0,i){const a=this.dropTargetEvent(i,e,t);i.onDragLeave?.(a)}if(i!==null&&!n?this.handleExit(o,r):i===null&&n&&this.handleEnter(o,r),n){const a=this.dropTargetEvent(n,e,t);n.onDragEnter?.(a)}this.lastDropTarget=n}else if(n){const a=this.dropTargetEvent(n,e,t);n.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(),n=e.getSecondaryContainers?.(),i=n?.length;if(!i)return[[t]];const o=new Array(i+1);o[0]=[t];for(let r=0;r<i;++r)o[r+1]=n[r];return o}isMouseOnDropTarget(e,t){const n=this.getAllContainersFromDropTarget(t);let i=!1;const o=(a,l)=>{for(const u of l){const{width:h,height:f,left:p,right:m,top:v,bottom:w}=u.getBoundingClientRect();if(h===0||f===0)return!1;const b=a.clientX>=p&&a.clientX<m,y=a.clientY>=v&&a.clientY<w;if(!b||!y)return!1}return!0};for(const a of n)if(o(e,a)){i=!0;break}const{eElement:r,type:s}=this.dragSource;return t.targetContainsSource&&!t.getContainer().contains(r)?!1:i&&t.isInterestedIn(s,r)}findCurrentDropTarget(e){const t=[],n=this.dropTargets;for(let s=0,a=n.length;s<a;++s){const l=n[s];this.isMouseOnDropTarget(e,l)&&t.push(l)}const i=t.length;if(i===0)return null;if(i===1)return t[0];const r=Ro(this.beans).elementsFromPoint(e.clientX,e.clientY);for(let s=0,a=r.length;s<a;++s){const l=r[s];for(let u=0,h=t.length;u<h;u++){const f=t[u],p=this.getAllContainersFromDropTarget(f);let m=!1;for(let v=0,w=p.length;v<w&&!m;v++){const b=p[v];for(let y=0,R=b.length;y<R;y++)if(b[y]===l){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(),n=this.dropTargets;let i=0;for(let o=0,r=n.length;o<r;++o){const s=n[o];if(s.getContainer()===t){s.external&&--this.externalDropZoneCount;continue}i!==o&&(n[i]=s),++i}n.length=i}hasExternalDropZones(){return this.externalDropZoneCount>0}findExternalZone(e){const t=this.dropTargets;for(let n=0,i=t.length;n<i;++n){const o=t[n];if(o.external&&o.getContainer()===e)return o}return null}dropTargetEvent(e,t,n){const{dragSource:i,dragItem:o,lastDraggingEvent:r,lastMouseEvent:s,dragInitialSourcePointerOffsetX:a,dragInitialSourcePointerOffsetY:l}=this,u=e.getContainer(),h=u.getBoundingClientRect(),{clientX:f,clientY:p}=t,m=f-(s?.clientX||0),v=p-(s?.clientY||0),w=this.createEvent({event:t,x:f-h.left,y:p-h.top,vDirection:v>0?"down":v<0?"up":null,hDirection:m<0?"left":m>0?"right":null,initialSourcePointerOffsetX:a,initialSourcePointerOffsetY:l,dragSource:i,fromNudge:n,dragItem:o,dropZoneTarget:u,dropTarget:r?.dropTarget??null,changed:!!r?.changed});return this.lastDraggingEvent=w,w}positionDragImageComp(e){const t=this.dragImageComp?.getGui();t&&ML(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(n=>{const i=this.lastMouseEvent;if(t!==this.dragImageCompPromise||!i||!this.isAlive()){this.destroyBean(n);return}this.dragImageCompPromise=null,this.dragImageLastIcon=void 0,this.dragImageLastLabel=void 0;const o=this.dragImageComp;o!==n&&(this.dragImageComp=n,this.removeDragImageComp(o)),n&&(this.appendDragImageComp(n),this.updateDragImageComp(),this.positionDragImageComp(i))})}appendDragImageComp(e){const t=e.getGui(),n=t.style;n.position="absolute",n.zIndex="9999",this.beans.dragSvc?.hasPointerCapture()&&(n.pointerEvents="none"),this.gos.setInstanceDomData(t),this.beans.environment.applyThemeClasses(t),n.top="20px",n.left="20px";const i=ug(this.beans);i?i.appendChild(t):this.warnNoBody()}updateDragImageComp(){const{dragImageComp:e,dragSource:t,lastDropTarget:n,lastDraggingEvent:i,dragImageLastLabel:o}=this;if(!e)return;this.setDragImageCompIcon(n?.getIconName?.(i)??null);let r=t?.dragItemName;typeof r=="function"&&(r=r(i)),r||(r=""),o!==r&&(this.dragImageLastLabel=r,e.setLabel(r))}};function x0(e){return typeof e=="object"&&!!e.component}function eO(e){return e?e.prototype&&"getGui"in e.prototype:!1}function P0(e,t,n,i){const{name:o}=n;let r,s,a,l,u,h;if(t){const f=t,p=f[o+"Selector"],m=p?p(i):null,v=w=>{typeof w=="string"?r=w:w!=null&&w!==!0&&(e.isFrameworkComponent(w)?a=w:s=w)};m?(v(m.component),l=m.params,u=m.popup,h=m.popupPosition):v(f[o])}return{compName:r,jsComp:s,fwComp:a,paramsFromSelector:l,popupFromSelector:u,popupPositionFromSelector:h}}var tO=class extends X{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,n,i=!1){return this.getCompDetails(this.gridOptions,e,t,n,i)}getCompDetails(e,t,n,i,o=!1){const{name:r,cellRenderer:s}=t;let{compName:a,jsComp:l,fwComp:u,paramsFromSelector:h,popupFromSelector:f,popupPositionFromSelector:p}=P0(this.beans.frameworkOverrides,e,t,i),m,v;const w=S=>{const x=this.registry.getUserComponent(r,S);x&&(l=x.componentFromFramework?void 0:x.component,u=x.componentFromFramework?x.component:void 0,m=x.params,v=x.processParams)};if(a!=null&&w(a),l==null&&u==null&&n!=null&&w(n),l&&s&&!eO(l)&&(l=this.agCompUtils?.adaptFunction(t,l)),!l&&!u){const{validation:S}=this.beans;o&&(a!==n||!n)?a?S?.isProvidedUserComp(a)||gt(50,{compName:a}):n?S||gt(260,{...this.gos.getModuleErrorParams(),propName:r,compName:n}):gt(216,{name:r}):n&&!S&&gt(146,{comp:n});return}const b=this.mergeParams(e,t,i,h,m,v),y=l==null,R=l??u;return{componentFromFramework:y,componentClass:R,params:b,type:t,popupFromSelector:f,popupPositionFromSelector:p,newAgStackInstance:()=>this.newAgStackInstance(R,y,b,t)}}newAgStackInstance(e,t,n,i){const o=!t;let r;o?r=new e:r=this.frameworkCompWrapper.wrap(e,i.mandatoryMethods,i.optionalMethods,i),this.createBean(r);const s=r.init?.(n);return s==null?It.resolve(r):s.then(()=>r)}mergeParams(e,t,n,i=null,o,r){const s={...n,...o},l=e?.[t.name+"Params"];if(typeof l=="function"){const u=l(n);Wn(s,u)}else typeof l=="object"&&Wn(s,l);return Wn(s,i),r?r(s):s}},nO={name:"dateComponent",mandatoryMethods:["getDate","setDate"],optionalMethods:["afterGuiAttached","setInputPlaceholder","setInputAriaLabel","setDisabled","refresh"]},iO={name:"dragAndDropImageComponent",mandatoryMethods:["setIcon","setLabel"]},oO={name:"headerComponent",optionalMethods:["refresh"]},rO={name:"innerHeaderComponent"},sO={name:"innerHeaderGroupComponent"},aO={name:"headerGroupComponent"},lO={name:"cellRenderer",optionalMethods:["refresh","afterGuiAttached"],cellRenderer:!0},cO={name:"loadingCellRenderer",cellRenderer:!0},uO={name:"cellEditor",mandatoryMethods:["getValue"],optionalMethods:["isPopup","isCancelBeforeStart","isCancelAfterEnd","getPopupPosition","focusIn","focusOut","afterGuiAttached","refresh"]},dO={name:"tooltipComponent"},Lg={name:"filter",mandatoryMethods:["isFilterActive","doesFilterPass","getModel","setModel"],optionalMethods:["afterGuiAttached","afterGuiDetached","onNewRowsLoaded","getModelAsString","onFloatingFilterChanged","onAnyFilterChanged","refresh"]},hO={name:"floatingFilterComponent",mandatoryMethods:["onParentModelChanged"],optionalMethods:["afterGuiAttached","refresh"]},fO={name:"fullWidthCellRenderer",optionalMethods:["refresh","afterGuiAttached"],cellRenderer:!0},pO={name:"loadingCellRenderer",cellRenderer:!0},gO={name:"groupRowRenderer",optionalMethods:["afterGuiAttached"],cellRenderer:!0},mO={name:"detailCellRenderer",optionalMethods:["refresh"],cellRenderer:!0};function vO(e,t){return e.getCompDetailsFromGridOptions(iO,"agDragAndDropImage",t,!0)}function CO(e,t,n){return e.getCompDetails(t,oO,"agColumnHeader",n)}function wO(e,t,n){return e.getCompDetails(t,rO,void 0,n)}function bO(e,t){const n=t.columnGroup.getColGroupDef();return e.getCompDetails(n,aO,"agColumnGroupHeader",t)}function yO(e,t,n){return e.getCompDetails(t,sO,void 0,n)}function SO(e,t){return e.getCompDetailsFromGridOptions(fO,void 0,t,!0)}function RO(e,t){return e.getCompDetailsFromGridOptions(pO,"agLoadingCellRenderer",t,!0)}function FO(e,t){return e.getCompDetailsFromGridOptions(gO,"agGroupRowRenderer",t,!0)}function xO(e,t){return e.getCompDetailsFromGridOptions(mO,"agDetailCellRenderer",t,!0)}function E0(e,t,n){return e.getCompDetails(t,lO,void 0,n)}function D0(e,t,n){return e.getCompDetails(t,cO,"agSkeletonCellRenderer",n,!0)}function T0(e,t,n){return e.getCompDetails(t,uO,"agCellEditor",n,!0)}function PO(e,t,n,i){const o=t.filter;return x0(o)&&(t={filter:o.component,filterParams:t.filterParams}),e.getCompDetails(t,Lg,i,n,!0)}function EO(e,t,n){return e.getCompDetails(t,nO,"agDateInput",n,!0)}function DO(e,t){return e.getCompDetails(t.colDef,dO,"agTooltipComponent",t,!0)}function TO(e,t,n,i){return e.getCompDetails(t,hO,i,n)}function A0(e,t){return P0(e,t,Lg)}function _g(e,t,n){return e.mergeParams(t,Lg,n)}var AO=class extends J_{createEvent(e){return We(this.gos,e)}createDragImageComp(e){const{gos:t,beans:n}=this;return vO(n.userCompFactory,We(t,{dragSource:e}))?.newAgStackInstance()}handleEnter(e,t){e?.onGridEnter?.(t)}handleExit(e,t){e?.onGridExit?.(t)}warnNoBody(){se(54)}isDropZoneWithinThisGrid(e){return this.beans.ctrlsSvc.getGridBodyCtrl().eGridBody.contains(e.dropZoneTarget)}registerGridDropTarget(e,t){const n={getContainer:e,isInterestedIn:i=>i===1||i===0,getIconName:()=>"notAllowed"};this.addDropTarget(n),t.addDestroyFunc(()=>this.removeDropTarget(n))}};function I0(e){return!!e.operator}var M0="ag-resizer-wrapper",Wr=(e,t)=>({tag:"div",ref:`${e}Resizer`,cls:`ag-resizer ag-resizer-${t}`}),IO={tag:"div",cls:M0,children:[Wr("eTopLeft","topLeft"),Wr("eTop","top"),Wr("eTopRight","topRight"),Wr("eRight","right"),Wr("eBottomRight","bottomRight"),Wr("eBottom","bottom"),Wr("eBottomLeft","bottomLeft"),Wr("eLeft","left")]},MO=class extends Vn{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:n}=this.offsetParent,i=n/2-this.getWidth()/2,o=t/2-this.getHeight()/2;this.offsetElement(i,o,e)}initialisePosition(e){if(this.positioned)return;const{centered:t,forcePopupParentAsOffsetParent:n,minWidth:i,width:o,minHeight:r,height:s,x:a,y:l}=this.config;this.offsetParent||this.setOffsetParent();let u=0,h=0;const f=ki(this.element);if(f){const p=this.findBoundaryElement(),m=window.getComputedStyle(p);if(m.minWidth!=null){const v=p.offsetWidth-this.element.offsetWidth;h=Number.parseInt(m.minWidth,10)-v}if(m.minHeight!=null){const v=p.offsetHeight-this.element.offsetHeight;u=Number.parseInt(m.minHeight,10)-v}}if(this.minHeight=r||u,this.minWidth=i||h,o&&this.setWidth(o),s&&this.setHeight(s),(!o||!s)&&this.refreshSize(),t)this.center(e);else if(a||l)this.offsetElement(a,l,e);else if(f&&n){let p=this.boundaryEl,m=!0;if(p||(p=this.findBoundaryElement(),m=!1),p){const v=Number.parseFloat(p.style.top),w=Number.parseFloat(p.style.left);m?this.offsetElement(Number.isNaN(w)?0:w,Number.isNaN(v)?0:v,e):this.setPosition(w,v)}}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 n=this.moveElementDragListener||{eElement:t,onDragStart:this.onMoveStart.bind(this),onDragging:this.onMove.bind(this),onDragStop:this.onMoveEnd.bind(this)};e?(this.dragSvc?.addDragSource(n),this.moveElementDragListener=n):(this.dragSvc?.removeDragSource(n),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 n=!!e[t],i=this.getResizerElement(t),o={dragStartPixels:0,eElement:i,onDragStart:r=>this.onResizeStart(r,t),onDragging:this.onResize.bind(this),onDragStop:r=>this.onResizeEnd(r,t)};(n||!this.isAlive()&&!n)&&(n?(this.dragSvc?.addDragSource(o),this.resizeListeners.push(o),i.style.pointerEvents="all"):i.style.pointerEvents="none",this.resizable[t]=n)}}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,n=this.element;let i=!1;if(typeof e=="string"&&e.includes("%"))pc(n,e),e=LS(n),i=!0;else if(e=Math.max(this.minHeight,e),this.positioned){const o=this.getAvailableHeight();o&&e>o&&(e=o)}this.getHeight()!==e&&(i?(n.style.maxHeight="unset",n.style.minHeight="unset"):t?pc(n,e):(n.style.height=`${e}px`,n.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:n}=this.offsetParent;if(!n)return null;const i=this.element.getBoundingClientRect(),o=this.offsetParent.getBoundingClientRect(),r=e?this.position.y:i.top,s=e?0:o.top;let a=0;if(t){const u=this.element.parentElement;if(u){const{bottom:h}=u.getBoundingClientRect();a=h-i.bottom}}return n+s-r-a}getWidth(){return this.element.offsetWidth}setWidth(e){const t=this.element,{popup:n}=this.config;let i=!1;if(typeof e=="string"&&e.includes("%"))Fo(t,e),e=xd(t),i=!0;else if(this.positioned){e=Math.max(this.minWidth,e);const{clientWidth:o}=this.offsetParent,r=n?this.position.x:this.element.getBoundingClientRect().left;o&&e+r>o&&(e=o-r)}this.getWidth()!==e&&(i?(t.style.maxWidth="unset",t.style.minWidth="unset"):this.config.popup?Fo(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,n){const{forcePopupParentAsOffsetParent:i}=this.config,o=i?this.boundaryEl:this.element;o&&(this.popupSvc?.positionPopup({ePopup:o,keepWithinBounds:!0,skipObserver:this.movable||this.isResizable(),updatePosition:()=>({x:e,y:t}),postProcessCallback:n}),this.setPosition(Number.parseFloat(o.style.left),Number.parseFloat(o.style.top)))}constrainSizeToAvailableHeight(e){if(!this.config.forcePopupParentAsOffsetParent)return;const t=()=>{const n=this.getAvailableHeight();this.element.style.setProperty("max-height",`${n}px`)};e&&this.popupSvc?(this.resizeObserverSubscriber?.(),this.resizeObserverSubscriber=_r(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:n,isTop:i,anywhereWithin:o,topBuffer:r}=e,s=t.clientX-this.dragStartPosition.x,a=t.clientY-this.dragStartPosition.y,l=this.shouldSkipX(t,!!n,!!o,s)?0:s,u=this.shouldSkipY(t,!!i,r,a)?0:a;return{movementX:l,movementY:u}}shouldSkipX(e,t,n,i){const o=this.element.getBoundingClientRect(),r=this.offsetParent.getBoundingClientRect(),s=this.boundaryEl.getBoundingClientRect(),a=this.config.popup?this.position.x:o.left;let l=a<=0&&r.left>=e.clientX||r.right<=e.clientX&&r.right<=s.right;return l?!0:(t?l=i<0&&e.clientX>a+r.left||i>0&&e.clientX<a+r.left:n?l=i<0&&e.clientX>s.right||i>0&&e.clientX<a+r.left:l=i<0&&e.clientX>s.right||i>0&&e.clientX<s.right,l)}shouldSkipY(e,t,n=0,i){const o=this.element.getBoundingClientRect(),r=this.offsetParent.getBoundingClientRect(),s=this.boundaryEl.getBoundingClientRect(),a=this.config.popup?this.position.y:o.top;let l=a<=0&&r.top>=e.clientY||r.bottom<=e.clientY&&r.bottom<=s.bottom;return l?!0:(t?l=i<0&&e.clientY>a+r.top+n||i>0&&e.clientY<a+r.top:l=i<0&&e.clientY>s.bottom||i>0&&e.clientY<s.bottom,l)}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(As(IO)),this.createResizeMap(),this.resizersAdded=!0)}removeResizers(){this.resizerMap=void 0,this.element.querySelector(`.${M0}`)?.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:n,forcePopupParentAsOffsetParent:i}=this.config;!n&&!i&&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(n=>!n.classList.contains("ag-hidden")):null}getMinSizeOfSiblings(){const e=this.getSiblings()||[];let t=0,n=0;for(const i of e){const o=!!i.style.flex&&i.style.flex!=="0 0 auto";if(i===this.element)continue;let r=this.minHeight||0,s=this.minWidth||0;if(o){const a=window.getComputedStyle(i);a.minHeight&&(r=Number.parseInt(a.minHeight,10)),a.minWidth&&(s=Number.parseInt(a.minWidth,10))}else r=i.offsetHeight,s=i.offsetWidth;t+=r,n+=s}return{height:t,width:n}}applySizeToSiblings(e){let t=null;const n=this.getSiblings();if(n){for(let i=0;i<n.length;i++){const o=n[i];o!==t&&(e?o.style.height=`${o.offsetHeight}px`:o.style.width=`${o.offsetWidth}px`,o.style.flex="0 0 auto",o===this.element&&(t=n[i+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:n}=this.config,{isTop:i,isRight:o,isBottom:r,isLeft:s}=this.currentResizer,a=o||s,l=r||i,{movementX:u,movementY:h}=this.calculateMouseMovement({e,isLeft:s,isTop:i}),f=this.position.x,p=this.position.y;let m=0,v=0;if(a&&u){const w=s?-1:1,b=this.getWidth(),y=b+u*w;let R=!1;s&&(m=b-y,(f+m<=0||y<=this.minWidth)&&(R=!0,m=0)),R||this.setWidth(y)}if(l&&h){const w=i?-1:1,b=this.getHeight(),y=b+h*w;let R=!1;i?(v=b-y,(p+v<=0||y<=this.minHeight)&&(R=!0,v=0)):!this.config.popup&&!this.config.forcePopupParentAsOffsetParent&&b<y&&this.getMinSizeOfSiblings().height+y>this.element.parentElement.offsetHeight&&(R=!0),R||this.setHeight(y)}this.updateDragStartPosition(e.clientX,e.clientY),((t||n)&&m||v)&&this.offsetElement(f+m,p+v)}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:n}=this.position;let i;this.config.calculateTopBuffer&&(i=this.config.calculateTopBuffer());const{movementX:o,movementY:r}=this.calculateMouseMovement({e,isTop:!0,anywhereWithin:!0,topBuffer:i});this.offsetElement(t+o,n+r),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()}},kO=class extends MO{},de=null;function k0(e){return typeof e?.getGui=="function"}var L0=class{constructor(e){this.cssClassStates={},this.getGui=e}toggleCss(e,t){if(!e)return;if(e.includes(" ")){const i=(e||"").split(" ");if(i.length>1){for(const o of i)this.toggleCss(o,t);return}}this.cssClassStates[e]!==t&&e.length&&(this.getGui()?.classList.toggle(e,t),this.cssClassStates[e]=t)}},LO=0,Ka=class extends Vn{constructor(e,t){super(),this.suppressDataRefValidation=!1,this.displayed=!0,this.visible=!0,this.compId=LO++,this.cssManager=new L0(()=>this.eGui),this.componentSelectors=new Map((t??[]).map(n=>[n.selector,n])),e&&this.setTemplate(e)}preConstruct(){this.wireTemplate(this.getGui()),this.addGlobalCss()}wireTemplate(e,t){e&&this.gos&&(this.applyElementsToComponent(e),this.createChildComponentsFromTags(e,t))}getCompId(){return this.compId}getDataRefAttribute(e){return e.getAttribute?e.getAttribute(HS):null}applyElementsToComponent(e,t,n,i=null){if(t===void 0&&(t=this.getDataRefAttribute(e)),t){const o=this[t];if(o===de)this[t]=i??e;else{const r=n?.[t];if(!this.suppressDataRefValidation&&!r)throw new Error(`data-ref: ${t} on ${this.constructor.name} with ${o}`)}}}createChildComponentsFromTags(e,t){const n=[];for(const i of e.childNodes??[])n.push(i);for(const i of n){if(!(i instanceof HTMLElement))continue;const o=this.createComponentFromElement(i,r=>{const s=r.getGui();if(s)for(const a of i.attributes??[])s.setAttribute(a.name,a.value)},t);if(o){if(o.addItems&&i.children.length){this.createChildComponentsFromTags(i,t);const r=Array.prototype.slice.call(i.children);o.addItems(r)}this.swapComponentForNode(o,e,i)}else i.childNodes&&this.createChildComponentsFromTags(i,t)}}createComponentFromElement(e,t,n){const i=e.nodeName,o=this.getDataRefAttribute(e),r=i.indexOf("AG-")===0,s=r?this.componentSelectors.get(i):null;let a=null;if(s){const l=n&&o?n[o]:void 0;a=new s.component(l),a.setParentComponent(this),this.createBean(a,null,t)}else if(r)throw new Error(`selector: ${i}`);return this.applyElementsToComponent(e,o,n,a),a}swapComponentForNode(e,t,n){const i=e.getGui();t.replaceChild(i,n),t.insertBefore(document.createComment(n.nodeName),i),this.addDestroyFunc(this.destroyBean.bind(this,e))}activateTabIndex(e,t){const n=t??this.gos.get("tabIndex");e||(e=[]),e.length||e.push(this.getGui());for(const i of e)i.setAttribute("tabindex",n.toString())}setTemplate(e,t,n){let i;typeof e=="string"||e==null?i=pg(e):i=As(e),this.setTemplateFromElement(i,t,n)}setTemplateFromElement(e,t,n,i=!1){if(this.eGui=e,this.suppressDataRefValidation=i,t)for(let o=0;o<t.length;o++){const r=t[o];this.componentSelectors.set(r.selector,r)}this.wireTemplate(e,n)}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 n=t;return e==null?null:(n||(n=this.eGui),mg(e)?{element:e,parent:n}:{element:e.getGui(),parent:n})}prependChild(e,t){const{element:n,parent:i}=this.getContainerAndElement(e,t)||{};!n||!i||i.prepend(n)}appendChild(e,t){const{element:n,parent:i}=this.getContainerAndElement(e,t)||{};!n||!i||i.appendChild(n)}isDisplayed(){return this.displayed}setVisible(e,t={}){if(e!==this.visible){this.visible=e;const{skipAriaHidden:n}=t;yL(this.eGui,e,{skipAriaHidden:n})}}setDisplayed(e,t={}){if(e!==this.displayed){this.displayed=e;const{skipAriaHidden:n}=t;bt(this.eGui,e,{skipAriaHidden:n});const i={type:"displayChanged",visible:this.displayed};this.dispatchLocalEvent(i)}}destroy(){this.parentComponent&&(this.parentComponent=void 0),super.destroy()}addGuiEventListener(e,t,n){this.eGui.addEventListener(e,t,n),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===_0?(this.css=[e],this.addGlobalCss()):(this.css||(this.css=[]),this.css.push(e))}addGlobalCss(){if(Array.isArray(this.css)){const e="component-"+Object.getPrototypeOf(this)?.constructor?.name;for(const t of this.css??[])this.beans.environment.addGlobalCSS(t,e)}this.css=_0}},_0=Symbol(),yt=class extends Ka{},Og,Ng,Bg,Gg,Hg,Vg,Wg;function zr(){return Og===void 0&&(Og=/^((?!chrome|android).)*safari/i.test(navigator.userAgent)),Og}function qa(){return Ng===void 0&&(Ng=/(firefox)/i.test(navigator.userAgent)),Ng}function O0(){return Bg===void 0&&(Bg=/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform)),Bg}function _s(){return Gg===void 0&&(Gg=/iPad|iPhone|iPod/.test(navigator.platform)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1),Gg}function zg(e){if(!e)return null;const t=e.tabIndex,n=e.getAttribute("tabIndex");return t===-1&&(n===null||n===""&&!qa())?null:t.toString()}function _O(){if(Wg!==void 0)return Wg;if(!document.body)return-1;let e=1e6;const t=qa()?6e6:1e9,n=document.createElement("div");for(document.body.appendChild(n);;){const i=e*2;if(n.style.height=i+"px",i>t||n.clientHeight!==i)break;e=i}return n.remove(),Wg=e,e}function Ug(){return Vg==null&&N0(),Vg}function N0(){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 n=t.offsetWidth-t.clientWidth;n===0&&t.clientWidth===0&&(n=null),t.parentNode&&t.remove(),n!=null&&(Vg=n,Hg=n===0)}function B0(){return Hg==null&&N0(),Hg}var $g=!1,jd=0;function OO(e){jd>0||(e.addEventListener("keydown",Kd),e.addEventListener("mousedown",Kd))}function NO(e){jd>0||(e.removeEventListener("keydown",Kd),e.removeEventListener("mousedown",Kd))}function Kd(e){const t=$g,n=e.type==="keydown";n&&(e.ctrlKey||e.metaKey||e.altKey)||t!==n&&($g=n)}function BO(e){const t=on(e);return OO(t),jd++,()=>{jd--,NO(t)}}function G0(){return $g}function Os(e,t,n=!1){const i=bL;let o=kS;t&&(o+=", "+t),n&&(o+=', [tabindex="-1"]');const r=Array.prototype.slice.apply(e.querySelectorAll(i)).filter(l=>ki(l)),s=Array.prototype.slice.apply(e.querySelectorAll(o));return s.length?((l,u)=>l.filter(h=>u.indexOf(h)===-1))(r,s):r}function Ns(e,t=!1,n=!1,i=!1){const o=Os(e,i?".ag-tab-guard":null,n),r=t?Pt(o):o[0];return r?(r.focus({preventScroll:!0}),!0):!1}function Bs(e,t,n,i){const o=Os(t,n?':not([tabindex="-1"])':null),r=At(e);let s;n?s=o.findIndex(l=>l.contains(r)):s=o.indexOf(r);const a=s+(i?-1:1);return a<0||a>=o.length?null:o[a]}function H0(e,t=5){let n=0;for(;e&&zg(e)===null&&++n<=t;)e=e.parentElement;return zg(e)===null?null:e}var GO="ag-focus-managed",V0=class extends Vn{constructor(e,t={isStopPropagation:()=>!1,stopPropagation:()=>{}},n={}){super(),this.eFocusable=e,this.stopPropagationCallbacks=t,this.callbacks=n,this.callbacks={shouldStopEventPropagation:()=>!1,onTabKeyDown:i=>{if(i.defaultPrevented)return;const o=Bs(this.beans,this.eFocusable,!1,i.shiftKey);o&&(o.focus(),i.preventDefault())},...n}}postConstruct(){const{eFocusable:e,callbacks:{onFocusIn:t,onFocusOut:n}}=this;e.classList.add(GO),this.addKeyDownListeners(e),t&&this.addManagedElementListeners(e,{focusin:t}),n&&this.addManagedElementListeners(e,{focusout:n})}addKeyDownListeners(e){this.addManagedElementListeners(e,{keydown:t=>{if(t.defaultPrevented||this.stopPropagationCallbacks.isStopPropagation(t))return;const{callbacks:n}=this;if(n.shouldStopEventPropagation(t)){this.stopPropagationCallbacks.stopPropagation(t);return}t.key===K.TAB?n.onTabKeyDown(t):n.handleKeyDown&&n.handleKeyDown(t)}})}},W0="__ag_Grid_Stop_Propagation";function Gs(e){e[W0]=!0}function sr(e){return e[W0]===!0}var z0={isStopPropagation:sr,stopPropagation:Gs},Rc=class extends V0{constructor(e,t){super(e,z0,t)}},HO={applyFilter:"Apply",clearFilter:"Clear",resetFilter:"Reset",cancelFilter:"Cancel",textFilter:"Text Filter",numberFilter:"Number Filter",bigintFilter:"BigInt 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",yesterday:"Yesterday",today:"Today",tomorrow:"Tomorrow",last7Days:"Last 7 Days",lastWeek:"Last Week",thisWeek:"This Week",nextWeek:"Next Week",last30Days:"Last 30 Days",lastMonth:"Last Month",thisMonth:"This Month",nextMonth:"Next Month",last90Days:"Last 90 Days",lastQuarter:"Last Quarter",thisQuarter:"This Quarter",nextQuarter:"Next Quarter",lastYear:"Last Year",thisYear:"This Year",yearToDate:"Year To Date",nextYear:"Next Year",last6Months:"Last 6 Months",last12Months:"Last 12 Months",last24Months:"Last 24 Months",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 to(e,t,n){return LL(e,HO,t,n)}function jg(e,t){const{debounceMs:n}=e;return qd(e)?(n!=null&&se(71),0):n??t}function qd(e){return(e.buttons?.indexOf("apply")??-1)>=0}function U0(e,t,n,i){let o=to(e,n);if(typeof t=="function"){const r=to(e,i);o=t({filterOptionKey:i,filterOption:r,placeholder:o})}else typeof t=="string"&&(o=t);return o}var VO=class extends yt{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 Rc(this.getFocusableElement(),{handleKeyDown:this.handleKeyDown.bind(this)})),this.positionableFeature=this.createBean(new kO(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,n=this.params;this.params=t;const{source:i,state:o,additionalEventAttributes:r}=t;i==="colDef"&&this.updateParams(t,n);const s=this.state;this.state=o;const a=r?.fromAction;return(a&&a!=="apply"||o.model!==s.model||!this.areStatesEqual(o.state,s.state))&&this.setModelIntoUi(o.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=qd(e),this.setupApplyDebounced()}doesFilterPass(e){se(283);const{getHandler:t,model:n,column:i}=this.params;return t().doesFilterPass({...e,model:n,handlerParams:this.beans.colFilter.getHandlerParams(i)})}getFilterTitle(){return this.translate(this.filterNameKey)}isFilterActive(){return se(284),this.params.model!=null}setupApplyDebounced(){const e=jg(this.params,this.defaultDebounceMs),t=un(this,this.checkApplyDebounce.bind(this),e);this.applyDebounced=()=>{this.debouncePending=!0,t()}}checkApplyDebounce(){this.debouncePending&&(this.debouncePending=!1,this.doApplyModel())}getModel(){return se(285),this.params.model}setModel(e){se(286);const{beans:t,params:n}=this;return t.colFilter.setModelForColumnLegacy(n.column,e)}applyModel(e="api"){return this.doApplyModel()}canApply(e){return!0}doApplyModel(e){const{params:t,state:{valid:n=!0,model:i}}=this;if(!n)return!1;const o=!this.areModelsEqual(t.model,i);return o&&t.onAction("apply",e),o}onNewRowsLoaded(){}onUiChanged(e,t=!1){this.updateUiVisibility();const n=this.getModelFromUi(),i={model:n,state:this.getState(),valid:this.canApply(n)};this.state=i;const{params:o,gos:r,eventSvc:s,applyActive:a}=this;o.onStateChange(i),o.onUiChange(this.getUiChangeEventParams()),r.get("enableFilterHandlers")||s.dispatchEvent({type:"filterModified",column:o.column,filterInstance:this}),i.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:n}=this;if(!t)return;const i=e==="floatingFilter"||e==="columnFilter";i?(t.restoreLastSize(),t.setResizable(n.get("enableRtl")?{bottom:!0,bottomLeft:!0,left:!0}:{bottom:!0,bottomRight:!0,right:!0})):(t.removeSizeFromEl(),t.setResizable(!1)),t.constrainSizeToAvailableHeight(i)}afterGuiDetached(){this.checkApplyDebounce(),this.positionableFeature?.constrainSizeToAvailableHeight(!1)}destroy(){this.positionableFeature=this.destroyBean(this.positionableFeature),super.destroy()}translate(e,t){return to(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)}},Kg=class extends Ka{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()}},Qd=class extends Kg{constructor(){super(...arguments),this.errorMessages=null}init(e){this.params=e,this.initialiseEditor(e),this.eEditor.onValueChange(()=>e.validate())}destroy(){this.eEditor.destroy(),this.errorMessages=null,super.destroy()}};function Po(e){const t=e.rowModel;return t.getType()==="clientSide"?t:void 0}function Yd(e){const t=e.rowModel;return t.getType()==="infinite"?t:void 0}function WO(e){const t=e.rowModel;return t.getType()==="serverSide"?t:void 0}var $0="row-group-",qg="t-",Qg="b-",zO=0,Ur=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.childrenAfterGroup=null,this.childrenAfterFilter=null,this.childrenAfterAggFilter=null,this.childrenAfterSort=null,this.allChildrenCount=null,this.childrenMapped=null,this.treeParent=null,this.treeNodeFlags=0,this._expanded=void 0,this.displayed=!1,this.rowTop=null,this.oldRowTop=null,this.selectable=!0,this.__objectId=zO++,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 primaryRow(){let e=this.footer&&this.sibling?this.sibling:this;const{pinnedSibling:t}=e;return t&&e.rowPinned&&(e=t,e.footer&&e.sibling&&(e=e.sibling)),e}get allLeafChildren(){const e=this._leafs;return e===void 0?this.beans.groupStage?.loadLeafs?.(this)??null:e}set allLeafChildren(e){this._leafs=e}get expanded(){const e=this.beans.expansionSvc;return e?e.isExpanded(this):this.level===-1?!0:!!this._expanded}set expanded(e){this._expanded=e}setData(e){this.setDataCommon(e,!1)}updateData(e){this.setDataCommon(e,!0)}setDataCommon(e,t){const{valueCache:n,eventSvc:i}=this.beans,o=this.data;this.data=e,n?.onDataChanged(),this.updateDataOnDetailNode(),this.resetQuickFilterAggregateText();const r=this.createDataChangedEvent(e,o,t);if(this.__localEventService?.dispatchEvent(r),this.sibling){this.sibling.data=e;const a=this.sibling.createDataChangedEvent(e,o,t);this.sibling.__localEventService?.dispatchEvent(a)}i.dispatchEvent({type:"rowNodeDataChanged",node:this});const s=this.pinnedSibling;s&&(s.data=e,s.__localEventService?.dispatchEvent(s.createDataChangedEvent(e,o,t)),i.dispatchEvent({type:"rowNodeDataChanged",node:s}))}updateDataOnDetailNode(){const e=this.detailNode;e&&(e.data=this.data)}createDataChangedEvent(e,t,n){return{type:"dataChanged",node:this,oldData:t,newData:e,update:n}}getRowIndexString(){return this.rowIndex==null?(gt(13),null):this.rowPinned==="top"?qg+this.rowIndex:this.rowPinned==="bottom"?Qg+this.rowIndex:this.rowIndex.toString()}setDataAndId(e,t){const{selectionSvc:n}=this.beans,i=n?.createDaemonNode?.(this),o=this.data;this.data=e,this.updateDataOnDetailNode(),this.setId(t),n&&(n.updateRowSelectable(this),n.syncInRowNode(this,i));const r=this.createDataChangedEvent(e,o,!1);this.__localEventService?.dispatchEvent(r)}setId(e){const t=Wa(this.beans.gos);if(t)if(this.data){const n=this.parent?.getRoute()??[];this.id=t({data:this.data,parentKeys:n.length>0?n:void 0,level:this.level,rowPinned:this.rowPinned}),this.id.startsWith($0)&&gt(14,{groupPrefix:$0})}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,n){this.beans.expansionSvc?.setExpanded(this,e,t,n)}setDataValue(e,t,n){const{colModel:i,valueSvc:o,gos:r,editSvc:s}=this.beans;if(e==null)return!1;let a=i.getCol(e)??i.getColDefCol(e);if(!a)return!1;if(!this.group){const h=a.getColDef();h.pivotValueColumn&&(a=h.pivotValueColumn)}const l=o.getValueForDisplay({column:a,node:this,from:"data"}).value;if(r.get("readOnlyEdit")){const{beans:{eventSvc:h},data:f,rowIndex:p,rowPinned:m}=this;return h.dispatchEvent({type:"cellEditRequest",event:null,rowIndex:p,rowPinned:m,column:a,colDef:a.colDef,data:f,node:this,oldValue:l,newValue:t,value:t,source:n}),!1}if(n!=="data"&&s&&!s.committing){const h=s.setDataValue({rowNode:this,column:a},t,n);if(h!=null)return h}const u=o.setValue(this,a,t,n);return this.dispatchCellChangedEvent(a,t,l),u&&this.pinnedSibling?.dispatchCellChangedEvent(a,t,l),u}getDataValue(e,t="data"){const{colModel:n,valueSvc:i,formula:o}=this.beans;if(e==null)return;const r=n.getCol(e)??n.getColDefCol(e);if(!r)return;const s=t==="data-raw",a=s||t==="value"?"data":t;let l=i.getValue(r,this,a,s);if(!s&&(o&&r.isAllowFormula()&&o.isFormula(l)&&(l=o.resolveValue(r,this)),t!=="data"&&r.getAggFunc()&&typeof l=="object"&&l!=null)){if(typeof l.toNumber=="function")return l.toNumber();if("value"in l)return l.value}return l}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,n){const i={type:"cellChanged",node:this,column:e,newValue:t,oldValue:n};this.__localEventService?.dispatchEvent(i)}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 n=0,i=t.length;n<i;++n)t[n].depthFirstSearch(e);e(this)}getAggregatedChildren(e,t){const n=this.beans;return n.aggChildrenSvc?.getAggregatedChildren(this,n.colModel.getCol(e),t)??[]}dispatchRowEvent(e){this.__localEventService?.dispatchEvent({type:e,node:this})}setSelected(e,t=!1,n="api"){this.beans.selectionSvc?.setNodesSelected({nodes:[this],newValue:e,clearSelection:t,source:n})}isRowPinned(){return!!this.rowPinned}__addEventListener(e,t){(this.__localEventService??(this.__localEventService=new Es)).addEventListener(e,t)}__removeEventListener(e,t){this.removeLocalListener(e,t)}addEventListener(e,t){this.beans.validation?.checkRowEvents(e);const n=this.__localEventService??(this.__localEventService=new Es);this.frameworkEventListenerService=this.beans.frameworkOverrides.createLocalEventListenerWrapper?.(this.frameworkEventListenerService,n);const i=this.frameworkEventListenerService?.wrap(e,t)??t;n.addEventListener(e,i)}removeEventListener(e,t){const n=this.frameworkEventListenerService?.unwrap(e,t)??t;this.removeLocalListener(e,n)}removeLocalListener(e,t){const n=this.__localEventService;n&&(n.removeEventListener(e,t),n.noRegisteredListenersExist()&&(this.__localEventService=null))}isFullWidthCell(){if(se(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;this.destroyed=!0;const t=this.pinnedSibling;if(t?.rowPinned&&!this.rowPinned&&this.beans.pinnedRowModel?.pinRow(t,null),e?this.clearRowTopAndRowIndex():(this.setRowTop(null),this.setRowIndex(null)),!this.footer){const n=this.detailNode;n&&n._destroy(e);const i=this.sibling;i&&i._destroy(e)}return!0}};function UO(e,t,n){return We(t,{type:n,node:e,data:e.data,rowIndex:e.rowIndex,rowPinned:e.rowPinned})}var $O=new Set(["__autoHeights","__checkAutoHeightsDebounced","__localEventService","__objectId","_groupData","_leafs","childStore","groupValue","oldRowTop","sticky","treeNodeFlags","treeParent"]),jO=(e,t)=>{const n=new Ur(t);for(const i of Object.keys(e))$O.has(i)||(n[i]=e[i]);return n.oldRowTop=null,n},Yg=(e,t,n)=>{if(!n)return;let i=n.rowIndex;if(i==null)return;i+=t;const o=e.getRowCount();for(;i>=0&&i<o;){const r=e.getRow(i);if(!r||!r.footer&&!r.detail)return r;i+=t}},j0=class{constructor(e,t){this.beans=e,this.floating=t,this.all=new Set,this.visible=new Set,this.order=[],this.queued=new Set}size(){return this.visible.size}add(e){const{all:t,visible:n,order:i}=this;t.has(e)||(t.add(e),n.add(e),i.push(e),this.sort())}delete(e){this.all.delete(e),this.visible.delete(e),this.queued.delete(e.id),So(this.order,e)}has(e){return this.visible.has(e)}forEach(e){this.order.forEach(e)}getByIndex(e){return this.order[e]}getById(e){for(const t of this.visible)if(t.id==e)return t}clear(){const{all:e,visible:t,order:n,queued:i}=this;e.clear(),i.clear(),t.clear(),n.length=0}sort(){const{sortSvc:e,rowNodeSorter:t,gos:n}=this.beans,i=e?.getSortOptions()??[],o=this.order,r=QO(o);if(o.sort((a,l)=>t?.compareRowNodes(i,a,l)||(a.pinnedSibling?.rowIndex??0)-(l.pinnedSibling?.rowIndex??0)),!r)return;const s=c0(n);s==="bottom"||s==="pinnedBottom"?this.order.push(r):this.order.unshift(r)}hide(e){const{all:t,visible:n}=this,i=n.size;return t.forEach(o=>e(o)?n.delete(o):n.add(o)),this.order=Array.from(n),this.sort(),i!=n.size}queue(e){this.queued.add(e)}unqueue(e){this.queued.delete(e)}forEachQueued(e){this.queued.forEach(e)}};function K0(e){if(e.level===-1)return!0;const t=e.parent;return t?.childrenAfterSort?.some(n=>n==e)?K0(t):!1}function Zg(e,t){const{gos:n,rowModel:i,filterManager:o}=e;return Cc(n)?!i.getRowNode(t.id):o?.isAnyFilterPresent()?!K0(t):n.get("pivotMode")?!t.group:!1}function KO(e){return!!e.footer&&e.level===-1}function qO(e){return!!e.pinnedSibling&&KO(e.pinnedSibling)}function QO(e){const t=e.findIndex(qO);if(t>-1)return e.splice(t,1)?.[0]}var q0=class extends X{constructor(){super(...arguments),this.csrm=null}postConstruct(){const{gos:e,beans:t}=this;this.top=new j0(t,"top"),this.bottom=new j0(t,"bottom"),this.csrm=Po(t)??null;const n=o=>Zg(t,o.pinnedSibling),i=()=>{const o=e.get("isRowPinned");o&&e.get("enableRowPinning")&&t.rowModel.forEachNode(r=>this.pinRow(r,o(r)),!0),this.refreshRowPositions(),this.dispatchRowPinnedEvents()};this.addManagedEventListeners({stylesChanged:this.onGridStylesChanges.bind(this),modelUpdated:({keepRenderedRows:o})=>{this.tryToEmptyQueues(),this.pinGrandTotalRow();let r=!1;this.forContainers(a=>{r||(r=a.hide(n))});const s=this.refreshRowPositions();(!o||s||r)&&this.dispatchRowPinnedEvents()},columnRowGroupChanged:()=>{this.forContainers(ZO),this.refreshRowPositions()},rowNodeDataChanged:({node:o})=>{(e.get("isRowPinnable")?.(o)??!0)||this.pinRow(o,null)},firstDataRendered:i}),this.addManagedPropertyListener("pivotMode",()=>{this.forContainers(o=>o.hide(n)),this.dispatchRowPinnedEvents()}),this.addManagedPropertyListener("grandTotalRow",({currentValue:o})=>{this._grandTotalPinned=o==="pinnedBottom"?"bottom":o==="pinnedTop"?"top":null}),this.addManagedPropertyListener("isRowPinned",i)}destroy(){this.reset(!1),super.destroy()}reset(e=!0){this.forContainers(t=>{const n=[];t.forEach(i=>n.push(i)),n.forEach(i=>this.pinRow(i,null)),t.clear()}),e&&this.dispatchRowPinnedEvents()}pinRow(e,t,n){if(t!=null&&e.destroyed)return;if(e.footer){const s=e.level;if(s>-1)return;if(s===-1){this._grandTotalPinned=t,this.csrm?.reMapRows();return}}const i=e.rowPinned??e.pinnedSibling?.rowPinned;if(i!=null&&t!=null&&t!=i){const s=e.rowPinned?e:e.pinnedSibling,a=e.rowPinned?e.pinnedSibling:e;this.pinRow(s,null,n),this.pinRow(a,t,n);return}const r=n&&XO(this.beans,e,n);if(r){r.forEach(s=>this.pinRow(s,t));return}if(t==null){const s=e.rowPinned?e:e.pinnedSibling,a=this.findPinnedRowNode(s);if(!a)return;a.delete(s);const l=s.pinnedSibling;Xg(s),this.refreshRowPositions(t),this.dispatchRowPinnedEvents(l)}else{const s=Q0(this.beans,e,t),a=this.getContainer(t);a.add(s),Zg(this.beans,e)&&a.hide(l=>Zg(this.beans,l.pinnedSibling)),this.refreshRowPositions(t),this.dispatchRowPinnedEvents(e)}}isManual(){return!0}isEmpty(e){return this.getContainer(e).size()===0}isRowsToRender(e){return!this.isEmpty(e)}ensureRowHeightsValid(){let e=!1,t=0;const n=i=>{if(i.rowHeightEstimated){const o=Br(this.beans,i);i.setRowTop(t),i.setRowHeight(o.height),t+=o.height,e=!0}};return this.bottom.forEach(n),t=0,this.top.forEach(n),this.eventSvc.dispatchEvent({type:"pinnedHeightChanged"}),e}getPinnedTopTotalHeight(){return Y0(this.top)}getPinnedBottomTotalHeight(){return Y0(this.bottom)}getPinnedTopRowCount(){return this.top.size()}getPinnedBottomRowCount(){return this.bottom.size()}getPinnedTopRow(e){return this.top.getByIndex(e)}getPinnedBottomRow(e){return this.bottom.getByIndex(e)}getPinnedRowById(e,t){return this.getContainer(t).getById(e)}forEachPinnedRow(e,t){this.getContainer(e).forEach(t)}getPinnedState(){const e=t=>{const n=[];return this.forEachPinnedRow(t,i=>{const o=i.pinnedSibling?.id;o!=null&&n.push(o)}),n};return{top:e("top"),bottom:e("bottom")}}setPinnedState(e){this.forContainers((t,n)=>{for(const i of e[n]){const o=this.beans.rowModel.getRowNode(i);o?this.pinRow(o,n):t.queue(i)}})}getGrandTotalPinned(){return this._grandTotalPinned}setGrandTotalPinned(e){this._grandTotalPinned=e}tryToEmptyQueues(){this.forContainers((e,t)=>{const n=new Set;e.forEachQueued(i=>{const o=this.beans.rowModel.getRowNode(i);o&&n.add(o)});for(const i of n)e.unqueue(i.id),this.pinRow(i,t)})}pinGrandTotalRow(){const{csrm:e,beans:t,_grandTotalPinned:n}=this;if(!e)return;const i=e.rootNode?.sibling;if(!i)return;const o=i.pinnedSibling,r=o&&this.findPinnedRowNode(o);if(n){if(r&&r.floating!==n&&(Xg(o),r.delete(o)),!r||r.floating!==n){const s=Q0(t,i,n);this.getContainer(n).add(s)}}else{if(!r)return;Xg(o),r.delete(o)}}onGridStylesChanges(e){e.rowHeightChanged&&this.forContainers(t=>t.forEach(n=>n.setRowHeight(n.rowHeight,!0)))}getContainer(e){return e==="top"?this.top:this.bottom}findPinnedRowNode(e){if(this.top.has(e))return this.top;if(this.bottom.has(e))return this.bottom}refreshRowPositions(e){const t=i=>YO(this.beans,i);if(e)return t(this.getContainer(e));let n=!1;return this.forContainers(i=>{const o=t(i);n||(n=o)}),n}forContainers(e){e(this.top,"top"),e(this.bottom,"bottom")}dispatchRowPinnedEvents(e){this.eventSvc.dispatchEvent({type:"pinnedRowsChanged"}),e?.dispatchRowEvent("rowPinned")}};function YO(e,t){let n=0,i=!1;return t.forEach((o,r)=>{if(i||(i=o.rowTop!==n),o.setRowTop(n),o.rowHeightEstimated||o.rowHeight==null){const s=Br(e,o).height;i||(i=o.rowHeight!==s),o.setRowHeight(s)}o.setRowIndex(r),n+=o.rowHeight}),i}function Q0(e,t,n){if(t.pinnedSibling)return t.pinnedSibling;const i=jO(t,e);i.setRowTop(null),i.setRowIndex(null),i.rowPinned=n;const o=n==="top"?qg:Qg;return i.id=`${o}${n}-${t.id}`,i.pinnedSibling=t,t.pinnedSibling=i,i}function Xg(e){if(!e.pinnedSibling)return;e.rowPinned=null,e._destroy(!1);const t=e.pinnedSibling;e.pinnedSibling=void 0,t&&(t.pinnedSibling=void 0,t.rowPinned=null)}function ZO(e){const t=new Set;e.forEach(n=>{n.group&&t.add(n)}),t.forEach(n=>e.delete(n))}function XO(e,t,n){const{rowSpanSvc:i}=e,o=(n&&i?.isCellSpanning(n,t))??!1;if(n&&o)return i?.getCellSpan(n,t)?.spannedNodes}function Y0(e){const t=e.size();if(t===0)return 0;const n=e.getByIndex(t-1);return n===void 0?0:n.rowTop+n.rowHeight}var Z0=class extends X{constructor(){super(...arguments),this.nextId=0,this.pinnedTopRows={cache:{},order:[]},this.pinnedBottomRows={cache:{},order:[]}}postConstruct(){const e=this.gos;this.setPinnedRowData(e.get("pinnedTopRowData"),"top"),this.setPinnedRowData(e.get("pinnedBottomRowData"),"bottom"),this.addManagedPropertyListener("pinnedTopRowData",t=>this.setPinnedRowData(t.currentValue,"top")),this.addManagedPropertyListener("pinnedBottomRowData",t=>this.setPinnedRowData(t.currentValue,"bottom")),this.addManagedEventListeners({stylesChanged:this.onGridStylesChanges.bind(this)})}reset(){}isEmpty(e){return this.getCache(e).order.length===0}isRowsToRender(e){return!this.isEmpty(e)}isManual(){return!1}pinRow(e,t){}onGridStylesChanges(e){if(e.rowHeightChanged){const t=n=>{n.setRowHeight(n.rowHeight,!0)};xc(this.pinnedBottomRows,t),xc(this.pinnedTopRows,t)}}ensureRowHeightsValid(){let e=!1,t=0;const n=i=>{if(i.rowHeightEstimated){const o=Br(this.beans,i);i.setRowTop(t),i.setRowHeight(o.height),t+=o.height,e=!0}};return xc(this.pinnedBottomRows,n),t=0,xc(this.pinnedTopRows,n),this.eventSvc.dispatchEvent({type:"pinnedHeightChanged"}),e}setPinnedRowData(e,t){this.updateNodesFromRowData(e,t),this.eventSvc.dispatchEvent({type:"pinnedRowDataChanged"})}updateNodesFromRowData(e,t){const n=this.getCache(t);if(e===void 0){n.order.length=0,n.cache={};return}const i=Wa(this.gos),o=t==="top"?qg:Qg,r=new Set(n.order),s=[],a=new Set;let l=0,u=-1;for(const h of e){const f=i?.({data:h,level:0,rowPinned:t})??o+this.nextId++;if(a.has(f)){se(96,{id:f,data:h});continue}u++,a.add(f),s.push(f);const p=Fc(n,f);if(p!==void 0)p.data!==h&&p.updateData(h),l+=this.setRowTopAndRowIndex(p,l,u),r.delete(f);else{const m=new Ur(this.beans);m.id=f,m.data=h,m.rowPinned=t,l+=this.setRowTopAndRowIndex(m,l,u),n.cache[f]=m,n.order.push(f)}}for(const h of r)Fc(n,h)?.clearRowTopAndRowIndex(),delete n.cache[h];n.order=s}setRowTopAndRowIndex(e,t,n){return e.setRowTop(t),e.setRowHeight(Br(this.beans,e).height),e.setRowIndex(n),e.rowHeight}getPinnedTopTotalHeight(){return X0(this.pinnedTopRows)}getPinnedBottomTotalHeight(){return X0(this.pinnedBottomRows)}getPinnedTopRowCount(){return em(this.pinnedTopRows)}getPinnedBottomRowCount(){return em(this.pinnedBottomRows)}getPinnedTopRow(e){return Jg(this.pinnedTopRows,e)}getPinnedBottomRow(e){return Jg(this.pinnedBottomRows,e)}getPinnedRowById(e,t){return Fc(this.getCache(t),e)}forEachPinnedRow(e,t){return xc(this.getCache(e),t)}getCache(e){return e==="top"?this.pinnedTopRows:this.pinnedBottomRows}getPinnedState(){return{top:[],bottom:[]}}setPinnedState(){}getGrandTotalPinned(){}setGrandTotalPinned(){}};function X0(e){const t=em(e);if(t===0)return 0;const n=Jg(e,t-1);return n===void 0?0:n.rowTop+n.rowHeight}function Fc(e,t){return e.cache[t]}function Jg(e,t){return Fc(e,e.order[t])}function xc(e,t){e.order.forEach((n,i)=>{const o=Fc(e,n);o&&t(o,i)})}function em(e){return e.order.length}var JO=class extends X{constructor(){super(...arguments),this.beanName="pinnedRowModel"}postConstruct(){const{gos:e}=this,t=()=>{const n=e.get("enableRowPinning"),i=c0(e),r=!!n||(i==="pinnedBottom"||i==="pinnedTop"),s=r?this.inner instanceof Z0:this.inner instanceof q0;this.inner&&s&&this.destroyBean(this.inner),(s||!this.inner)&&(this.inner=this.createManagedBean(r?new q0:new Z0))};this.addManagedPropertyListeners(["enableRowPinning","grandTotalRow"],t),t()}reset(){return this.inner.reset()}isEmpty(e){return this.inner.isEmpty(e)}isManual(){return this.inner.isManual()}isRowsToRender(e){return this.inner.isRowsToRender(e)}pinRow(e,t,n){return this.inner.pinRow(e,t,n)}ensureRowHeightsValid(){return this.inner.ensureRowHeightsValid()}getPinnedRowById(e,t){return this.inner.getPinnedRowById(e,t)}getPinnedTopTotalHeight(){return this.inner.getPinnedTopTotalHeight()}getPinnedBottomTotalHeight(){return this.inner.getPinnedBottomTotalHeight()}getPinnedTopRowCount(){return this.inner.getPinnedTopRowCount()}getPinnedBottomRowCount(){return this.inner.getPinnedBottomRowCount()}getPinnedTopRow(e){return this.inner.getPinnedTopRow(e)}getPinnedBottomRow(e){return this.inner.getPinnedBottomRow(e)}forEachPinnedRow(e,t){return this.inner.forEachPinnedRow(e,t)}getPinnedState(){return this.inner.getPinnedState()}setPinnedState(e){return this.inner.setPinnedState(e)}setGrandTotalPinned(e){return this.inner.setGrandTotalPinned(e)}getGrandTotalPinned(){return this.inner.getGrandTotalPinned()}},e2=500,t2=550,Zd,n2=e=>{if(!Zd)Zd=new WeakSet;else if(Zd.has(e))return!1;return Zd.add(e),!0},Hs=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 n=this.eventSvc;if(!n){if(n===null)return;this.eventSvc=n=new Es;const i=this.onTouchStart.bind(this);this.startListener=i,this.eElement.addEventListener("touchstart",i,{passive:!0})}n.addEventListener(e,t)}removeEventListener(e,t){this.eventSvc?.removeEventListener(e,t)}onTouchStart(e){if(this.touchStart||!n2(e))return;const t=e.touches[0];this.touchStart=t;const n=this.handlers;if(!n.length){const i=this.eElement,o=i.ownerDocument,r=this.onTouchMove.bind(this),s=this.onTouchEnd.bind(this),a=this.onTouchCancel.bind(this),l={passive:!0},u={passive:!1};Ad(n,[i,"touchmove",r,l],[o,"touchcancel",a,l],[o,"touchend",s,u],[o,"contextmenu",Or,u])}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}))},t2)}onTouchMove(e){const{moved:t,touchStart:n}=this;if(!t&&n){const i=Oa(n,e.touches);i&&!WS(i,n,4)&&(this.clearLongPress(),this.moved=!0)}}onTouchEnd(e){const t=this.touchStart;!t||!Oa(t,e.changedTouches)||(this.moved||(this.eventSvc?.dispatchEvent({type:"tap",touchStart:t}),this.checkDoubleTap(t)),this.preventClick&&Or(e),this.cancel())}onTouchCancel(e){const t=this.touchStart;!t||!Oa(t,e.changedTouches)||(this.lastTapTime=null,this.cancel())}checkDoubleTap(e){let t=Date.now();const n=this.lastTapTime;n&&t-n>e2&&(this.eventSvc?.dispatchEvent({type:"doubleTap",touchStart:e}),t=null),this.lastTapTime=t}cancel(){this.clearLongPress(),wg(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}},i2=1,o2=class{constructor(e){this.beans={},this.createdBeans=[],this.destroyed=!1,this.instanceId=i2++,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 n=new t;n.beanName?this.beans[n.beanName]=n:console.error(`Bean ${t.name} is missing beanName`),this.createdBeans.push(n)}for(const t of e.derivedBeans??[]){const{beanName:n,bean:i}=t(this);this.beans[n]=i,this.createdBeans.push(i)}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 n=this.beans;for(const i of e)i.preWireBeans?.(n),i.wireBeans?.(n);for(const i of e)i.preConstruct?.();t&&e.forEach(t);for(const i of e)i.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}};function r2(e){return{beanName:"gridApi",bean:e.getBean("apiFunctionSvc").api}}var s2=["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"],J0=Object.fromEntries(s2.map((e,t)=>[e,t]));function a2(e,t){const n=(e.beanName?J0[e.beanName]:void 0)??Number.MAX_SAFE_INTEGER,i=(t.beanName?J0[t.beanName]:void 0)??Number.MAX_SAFE_INTEGER;return n-i}function l2(e,t){return e?.beanName==="gridDestroySvc"?-1:t?.beanName==="gridDestroySvc"?1:0}function c2(e){const{rowIndex:t,rowPinned:n,column:i}=e;return`${t}.${n??"null"}.${i.getId()}`}function tm(e,t){const n=e.column===t.column,i=e.rowPinned===t.rowPinned,o=e.rowIndex===t.rowIndex;return n&&i&&o}function u2(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(Ce(t.rowPinned))return t.rowPinned!=="top";break}return e.rowIndex<t.rowIndex}function d2(e,t){return!e&&!t?!0:!e||!t?!1:e.rowIndex===t.rowIndex&&e.rowPinned==t.rowPinned}function eR(e){let t=0,n;const{pinnedRowModel:i,rowModel:o,pageBounds:r}=e;return i?.getPinnedTopRowCount()?n="top":o.getRowCount()?(n=null,t=r.getFirstRow()):i?.getPinnedBottomRowCount()&&(n="bottom"),n===void 0?null:{rowIndex:t,rowPinned:n}}function tR(e){let t,n=null;const{pinnedRowModel:i,pageBounds:o}=e,r=i?.getPinnedBottomRowCount(),s=i?.getPinnedTopRowCount();return r?(n="bottom",t=r-1):e.rowModel.getRowCount()?t=o.getLastRow():s&&(n="top",t=s-1),t===void 0?null:{rowIndex:t,rowPinned:n}}function Eo(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 Qa(e,t){const n=e.spannedRowRenderer?.getCellByPosition(t);if(n)return n;const i=e.rowRenderer.getRowByPosition(t);return i?i.getCellCtrl(t.column):null}function h2(e,t,n){const{rowModel:i,pinnedRowModel:o}=e;let r;return r??(r=i?.getRowNode(t)),n?r??(r=o?.getPinnedRowById(t,n)):(r??(r=o?.getPinnedRowById(t,"top")),r??(r=o?.getPinnedRowById(t,"bottom"))),r}function Xd(e,t,n=!1){const{rowIndex:i,rowPinned:o}=t,{pageBounds:r,pinnedRowModel:s,rowModel:a}=e;if(i===0)return o==="top"?null:o==="bottom"&&a.isRowsToRender()?{rowIndex:r.getLastRow(),rowPinned:null}:s?.isRowsToRender("top")?{rowIndex:s.getPinnedTopRowCount()-1,rowPinned:"top"}:null;if(n){const l=o?void 0:a.getRow(i);return iR(e,l,!0)??{rowIndex:i-1,rowPinned:o}}return{rowIndex:i-1,rowPinned:o}}function nR(e,t,n=!1){const{rowIndex:i,rowPinned:o}=t,{pageBounds:r,pinnedRowModel:s,rowModel:a}=e;if(f2(e,t))return o==="bottom"?null:o==="top"&&a.isRowsToRender()?{rowIndex:r.getFirstRow(),rowPinned:null}:s?.isRowsToRender("bottom")?{rowIndex:0,rowPinned:"bottom"}:null;if(n){const l=o?void 0:a.getRow(i);return iR(e,l)??{rowIndex:i+1,rowPinned:o}}return{rowIndex:i+1,rowPinned:o}}function iR(e,t,n=!1){const{gos:i,rowRenderer:o}=e;if(!t?.sticky||!l0(i))return;const r=o.getStickyTopRowCtrls(),s=o.getStickyBottomRowCtrls(),a=!s.some(f=>f.rowNode.rowIndex===t.rowIndex),l=a?r:s,u=(n?-1:1)*(a?-1:1);let h;for(let f=0;f<l.length;f++)if(l[f].rowNode.rowIndex===t.rowIndex){h=l[f+u];break}return h?{rowIndex:h.rowNode.rowIndex,rowPinned:null}:void 0}function f2(e,t){const{rowPinned:n,rowIndex:i}=t,{pinnedRowModel:o,pageBounds:r}=e;return n==="top"?(o?.getPinnedTopRowCount()??0)-1<=i:n==="bottom"?(o?.getPinnedBottomRowCount()??0)-1<=i:r.getLastRow()<=i}function p2(e,t,n){t.addManagedElementListeners(n,{keydown:i=>{if(!i.defaultPrevented&&!w2(i)&&i.key===K.TAB){const o=i.shiftKey;Bs(e,n,!1,o)||Ya(e,o)&&i.preventDefault()}}})}function g2(e,t){return e.ctrlsSvc.get("gridCtrl").focusInnerElement(t)}function no(e){return e.gos.get("suppressHeaderFocus")||!!e.overlays?.exclusive}function Pc(e){return e.gos.get("suppressCellFocus")||!!e.overlays?.exclusive}function Ya(e,t,n=!1){const i=e.ctrlsSvc.get("gridCtrl"),o=i.focusNextInnerContainer(t);return o===!0?!0:o===!1?o:((n||!t&&!i.isDetailGrid()&&i.isFocusInsideGridBody())&&i.forceFocusOutOfContainer(t),!1)}function m2(e,t){const n=e.focusSvc,i=n.getFocusedCell();if(i&&t&&tm(i,t)){const{rowIndex:o,rowPinned:r,column:s}=t;lg(e)&&n.setFocusedCell({rowIndex:o,column:s,rowPinned:r,forceBrowserFocus:!0,preventScrollOnBrowserFocus:!G0()})}}function v2(e,t){const n=e.getFocusableContainerName();return n==="gridBody"?t():oR(e,()=>Os(e.getGui(),".ag-tab-guard").length>0)?n:null}function oR(e,t){e.setAllowFocus?.(!0);try{return t()}finally{e.setAllowFocus?.(!1)}}var C2="__ag_Grid_Skip_Focusable_Container";function w2(e){return e[C2]===!0}function _i(e){return e.ctrlsSvc.getHeaderRowContainerCtrl()?.getRowCount()??0}function nm(e){const t=[],n=e.ctrlsSvc.getHeaderRowContainerCtrls();for(const i of n){if(!i)continue;const o=i.getGroupRowCount()||0;for(let r=0;r<o;r++){const s=i.getGroupRowCtrlAtIndex(r),a=t[r];if(s){const l=b2(e,s);(a==null||l>a)&&(t[r]=l)}}}return t}function b2(e,t){let i=e.colModel.isPivotMode()?S2(e):sR(e);const o=t.getHeaderCellCtrls();for(const r of o){const{column:s}=r,a=s.getAutoHeaderHeight();a!=null&&a>i&&s.isAutoHeaderHeight()&&(i=a)}return i}function im(e){let n=e.colModel.isPivotMode()?y2(e):Ec(e);return e.colModel.forAllCols(i=>{const o=i.getAutoHeaderHeight();o!=null&&o>n&&i.isAutoHeaderHeight()&&(n=o)}),n}function Ec(e){return e.gos.get("headerHeight")??e.environment.getDefaultHeaderHeight()}function rR(e){return e.gos.get("floatingFiltersHeight")??Ec(e)}function sR(e){return e.gos.get("groupHeaderHeight")??Ec(e)}function y2(e){return e.gos.get("pivotHeaderHeight")??Ec(e)}function S2(e){return e.gos.get("pivotGroupHeaderHeight")??sR(e)}function R2(e,t){return e.headerRowIndex===t.headerRowIndex&&e.column===t.column}function F2(e){return e?.headerRowIndex!=null}var x2=class extends X{setComp(e,t,n){this.comp=e,this.eGui=t;const{beans:i}=this,{headerNavigation:o,touchSvc:r,ctrlsSvc:s}=i;o&&this.createManagedBean(new Rc(n,{onTabKeyDown:this.onTabKeyDown.bind(this),handleKeyDown:this.handleKeyDown.bind(this),onFocusOut:this.onFocusOut.bind(this)})),this.addManagedEventListeners({columnPivotModeChanged:this.onPivotModeChanged.bind(this,i),displayedColumnsChanged:this.onDisplayedColumnsChanged.bind(this,i)}),this.onPivotModeChanged(i),this.setupHeaderHeight();const a=this.onHeaderContextMenu.bind(this);this.addManagedElementListeners(this.eGui,{contextmenu:a}),r?.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:()=>er(this.beans,()=>e()),stylesChanged:e,advancedFilterEnabledChanged:e})}setHeaderHeight(){const{beans:e}=this;let t=0;const n=nm(e).reduce((s,a)=>s+a,0),i=im(e);e.filterManager?.hasFloatingFilters()&&(t+=rR(e)),t+=n,t+=i;const o=e.environment.getHeaderRowBorderWidth(),r=t+o;if(this.headerHeightWithBorder!==r){this.headerHeightWithBorder=r;const s=`${r}px`;this.comp.setHeightAndMinHeight(s)}this.headerHeight!==t&&(this.headerHeight=t,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 n=e.visibleCols.allCols.some(i=>i.isSpanHeaderHeight());this.comp.toggleCss("ag-header-allow-overflow",n)}onTabKeyDown(e){const t=this.gos.get("enableRtl"),n=e.shiftKey,i=n!==t?"LEFT":"RIGHT",{beans:o}=this,{headerNavigation:r,focusSvc:s}=o;(r.navigateHorizontally(i,!0,e)||!n&&s.focusOverlay(!1)||Ya(o,n,!0))&&e.preventDefault()}handleKeyDown(e){let t=null;const{headerNavigation:n}=this.beans;switch(e.key){case K.LEFT:t="LEFT";case K.RIGHT:{Ce(t)||(t="RIGHT"),n.navigateHorizontally(t,!1,e)&&e.preventDefault();break}case K.UP:t="UP";case K.DOWN:{Ce(t)||(t="DOWN"),n.navigateVertically(t,e)&&e.preventDefault();break}default:return}}onFocusOut(e){const{relatedTarget:t}=e,{eGui:n,beans:i}=this;!t&&n.contains(At(i))||n.contains(t)||(i.focusSvc.focusedHeader=null)}onHeaderContextMenu(e,t,n){const{menuSvc:i,ctrlsSvc:o}=this.beans;if(!e&&!n||!i?.isHeaderContextMenuEnabled())return;const{target:r}=e??t;(r===this.eGui||r===o.getHeaderRowContainerCtrl()?.eViewport)&&i.showHeaderContextMenu(void 0,e,n)}},om=class extends yt{constructor(e,t){super(e),this.ctrl=t}getCtrl(){return this.ctrl}},P2={tag:"div",cls:"ag-header-cell",role:"columnheader",children:[{tag:"div",ref:"eResize",cls:"ag-header-cell-resize",role:"presentation"},{tag:"div",ref:"eHeaderCompWrapper",cls:"ag-header-cell-comp-wrapper",role:"presentation"}]},E2=class extends om{constructor(e){super(P2,e),this.eResize=de,this.eHeaderCompWrapper=de,this.headerCompVersion=0}postConstruct(){const e=this.getGui(),t=()=>{const i=this.ctrl.getSelectAllGui();i&&(this.eResize.insertAdjacentElement("afterend",i),this.addDestroyFunc(()=>i.remove()))},n={setWidth:i=>e.style.width=i,toggleCss:(i,o)=>this.toggleCss(i,o),setUserStyles:i=>hc(e,i),setAriaSort:i=>i?mL(e,i):vL(e),setUserCompDetails:i=>this.setUserCompDetails(i),getUserCompInstance:()=>this.headerComp,refreshSelectAllGui:t,removeSelectAllGui:()=>this.ctrl.getSelectAllGui()?.remove()};this.ctrl.setComp(n,this.getGui(),this.eResize,this.eHeaderCompWrapper,void 0),t()}destroy(){this.destroyHeaderComp(),super.destroy()}destroyHeaderComp(){this.headerComp&&(this.headerCompGui?.remove(),this.headerComp=this.destroyBean(this.headerComp),this.headerCompGui=void 0)}setUserCompDetails(e){this.headerCompVersion++;const t=this.headerCompVersion;e.newAgStackInstance().then(n=>this.afterCompCreated(t,n))}afterCompCreated(e,t){if(e!=this.headerCompVersion||!this.isAlive()){this.destroyBean(t);return}this.destroyHeaderComp(),this.headerComp=t,this.headerCompGui=t.getGui(),this.eHeaderCompWrapper.appendChild(this.headerCompGui),this.ctrl.setDragSource(this.getGui())}},D2={tag:"div",cls:"ag-header-group-cell",role:"columnheader",children:[{tag:"div",ref:"eHeaderCompWrapper",cls:"ag-header-cell-comp-wrapper",role:"presentation"},{tag:"div",ref:"eResize",cls:"ag-header-cell-resize",role:"presentation"}]},T2=class extends om{constructor(e){super(D2,e),this.eResize=de,this.eHeaderCompWrapper=de}postConstruct(){const e=this.getGui(),t=(i,o)=>o!=null?e.setAttribute(i,o):e.removeAttribute(i),n={toggleCss:(i,o)=>this.toggleCss(i,o),setUserStyles:i=>hc(e,i),setHeaderWrapperHidden:i=>{i?this.eHeaderCompWrapper.style.setProperty("display","none"):this.eHeaderCompWrapper.style.removeProperty("display")},setHeaderWrapperMaxHeight:i=>{i!=null?this.eHeaderCompWrapper.style.setProperty("max-height",`${i}px`):this.eHeaderCompWrapper.style.removeProperty("max-height"),this.eHeaderCompWrapper.classList.toggle("ag-header-cell-comp-wrapper-limited-height",i!=null)},setResizableDisplayed:i=>bt(this.eResize,i),setWidth:i=>e.style.width=i,setAriaExpanded:i=>t("aria-expanded",i),setUserCompDetails:i=>this.setUserCompDetails(i),getUserCompInstance:()=>this.headerGroupComp};this.ctrl.setComp(n,e,this.eResize,this.eHeaderCompWrapper,void 0)}setUserCompDetails(e){e.newAgStackInstance().then(t=>this.afterHeaderCompCreated(t))}afterHeaderCompCreated(e){const t=()=>this.destroyBean(e);if(!this.isAlive()){t();return}const n=this.getGui(),i=e.getGui();this.eHeaderCompWrapper.appendChild(i),this.addDestroyFunc(t),this.headerGroupComp=e,this.ctrl.setDragSource(n)}},A2={tag:"div",cls:"ag-header-cell ag-floating-filter",role:"gridcell",children:[{tag:"div",ref:"eFloatingFilterBody",role:"presentation"},{tag:"div",ref:"eButtonWrapper",cls:"ag-floating-filter-button ag-hidden",role:"presentation",children:[{tag:"button",ref:"eButtonShowMainFilter",cls:"ag-button ag-floating-filter-button-button",attrs:{type:"button",tabindex:"-1"}}]}]},I2=class extends om{constructor(e){super(A2,e),this.eFloatingFilterBody=de,this.eButtonWrapper=de,this.eButtonShowMainFilter=de}postConstruct(){const e=this.getGui(),t={toggleCss:(n,i)=>this.toggleCss(n,i),setUserStyles:n=>hc(e,n),addOrRemoveBodyCssClass:(n,i)=>this.eFloatingFilterBody.classList.toggle(n,i),setButtonWrapperDisplayed:n=>bt(this.eButtonWrapper,n),setCompDetails:n=>this.setCompDetails(n),getFloatingFilterComp:()=>this.compPromise,setWidth:n=>e.style.width=n,setMenuIcon:n=>this.eButtonShowMainFilter.appendChild(n)};this.ctrl.setComp(t,e,this.eButtonShowMainFilter,this.eFloatingFilterBody,void 0)}setCompDetails(e){if(!e){this.destroyFloatingFilterComp(),this.compPromise=null;return}this.compPromise=e.newAgStackInstance(),this.compPromise.then(t=>this.afterCompCreated(t))}destroy(){this.destroyFloatingFilterComp(),super.destroy()}destroyFloatingFilterComp(){this.floatingFilterComp?.getGui().remove(),this.floatingFilterComp=this.destroyBean(this.floatingFilterComp)}afterCompCreated(e){if(e){if(!this.isAlive()){this.destroyBean(e);return}this.destroyFloatingFilterComp(),this.floatingFilterComp=e,this.eFloatingFilterBody.appendChild(e.getGui()),e.afterGuiAttached?.()}}},M2=class extends yt{constructor(e){super({tag:"div",cls:e.headerRowClass,role:"row"}),this.ctrl=e,this.headerComps={}}postConstruct(){this.getGui().setAttribute("tabindex",String(this.gos.get("tabIndex"))),lc(this.getGui(),this.ctrl.getAriaRowIndex());const t={setHeight:n=>this.getGui().style.height=n,setTop:n=>this.getGui().style.top=n,setHeaderCtrls:(n,i)=>this.setHeaderCtrls(n,i),setWidth:n=>this.getGui().style.width=n,setRowIndex:n=>lc(this.getGui(),n)};this.ctrl.setComp(t,void 0)}destroy(){this.setHeaderCtrls([],!1),super.destroy()}setHeaderCtrls(e,t){if(!this.isAlive())return;const n=this.headerComps;this.headerComps={};for(const i of e){const o=i.instanceId;let r=n[o];delete n[o],r==null&&(r=this.createHeaderComp(i),this.getGui().appendChild(r.getGui())),this.headerComps[o]=r}if(Object.values(n).forEach(i=>{i.getGui().remove(),this.destroyBean(i)}),t){const i=Object.values(this.headerComps);i.sort((r,s)=>{const a=r.getCtrl().column.getLeft(),l=s.getCtrl().column.getLeft();return a-l});const o=i.map(r=>r.getGui());BS(this.getGui(),o)}}createHeaderComp(e){let t;switch(this.ctrl.type){case"group":t=new T2(e);break;case"filter":t=new I2(e);break;default:t=new E2(e);break}return this.createBean(t),t.setParentComponent(this),t}},rm=class extends X{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=bn(this.gos,"print"),{visibleCols:t,scrollVisibleSvc:n}=this.beans,i=t.bodyWidth,o=t.getColsLeftWidth(),r=t.getDisplayedColumnsRightWidth();let s;e?s=i+o+r:(s=i,this.addSpacer&&(this.gos.get("enableRtl")?o:r)===0&&n.verticalScrollShowing&&(s+=n.getScrollbarWidth())),this.callback(s)}};function Dc(e,t,n){return n&&e.addDestroyFunc(()=>t.destroyBean(n)),n??e}var sm=class extends X{constructor(e,t,n,i){super(),this.columnOrGroup=e,this.eCell=t,this.colsSpanning=i,this.columnOrGroup=e,this.ariaEl=t.querySelector("[role=columnheader]")||t,this.beans=n}setColsSpanning(e){this.colsSpanning=e,this.onLeftChanged()}getColumnOrGroup(){const{beans:e,colsSpanning:t}=this;return e.gos.get("enableRtl")&&t?Pt(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,n=e.get("suppressColumnMoveAnimation"),i=Ce(this.columnOrGroup.getOldLeft());t?.isActive()&&i&&!n?this.animateInLeft():this.onLeftChanged()}animateInLeft(){const e=this.getColumnOrGroup(),t=this.modifyLeftForPrintLayout(e,e.getOldLeft()),n=this.modifyLeftForPrintLayout(e,e.getLeft());this.setLeft(t),this.actualLeft=n,this.beans.colAnimation.executeNextVMTurn(()=>{this.actualLeft===n&&this.setLeft(n)})}onLeftChanged(){const e=this.getColumnOrGroup(),t=e.getLeft();this.actualLeft=this.modifyLeftForPrintLayout(e,t),this.setLeft(this.actualLeft)}modifyLeftForPrintLayout(e,t){const{gos:n,visibleCols:i}=this.beans;if(!bn(n,"print")||e.getPinned()==="left")return t;const r=i.getColsLeftWidth();if(e.getPinned()==="right"){const s=i.bodyWidth;return r+s+t}return r+t}setLeft(e){if(Ce(e)&&(this.eCell.style.left=`${e}px`),Zt(this.columnOrGroup)){const t=this.columnOrGroup.getLeafColumns();if(!t.length)return;t.length>1&&gL(this.ariaEl,t.length)}}},k2="ag-column-first",L2="ag-column-last";function aR(e,t,n,i){return Nt(e)?[]:O2(e.headerClass,e,t,n,i)}function lR(e,t,n){e.toggleCss(k2,n.isColAtEdge(t,"first")),e.toggleCss(L2,n.isColAtEdge(t,"last"))}function _2(e,t,n,i){return We(t,{colDef:e,column:n,columnGroup:i})}function O2(e,t,n,i,o){if(Nt(e))return[];let r;if(typeof e=="function"){const s=_2(t,n,i,o);r=e(s)}else r=e;return typeof r=="string"?[r]:Array.isArray(r)?[...r]:[]}var N2=0,cR="headerCtrl",am=class extends X{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()+"-"+N2++}postConstruct(){const e=this.refreshTabIndex.bind(this);this.addManagedPropertyListeners(["suppressHeaderFocus"],e),this.addManagedEventListeners({overlayExclusiveChanged:e})}setComp(e,t,n,i,o){t.setAttribute("col-id",this.column.colIdSanitised),this.wireComp(e,t,n,i,o),this.reAttemptToFocus&&(this.reAttemptToFocus=!1,this.focus(this.lastFocusEvent??void 0))}shouldStopEventPropagation(e){const{headerRowIndex:t,column:n}=this.beans.focusSvc.focusedHeader,i=n.getDefinition(),o=i?.suppressHeaderKeyboardEvent;if(!Ce(o))return!1;const r=We(this.gos,{colDef:i,column:n,headerRowIndex:t,event:e});return!!o(r)}getWrapperHasFocus(){return At(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 n;if(typeof t=="function"){const i=this.getHeaderClassParams();n=t(i)}else n=t;n&&this.comp.setUserStyles(n)}onGuiFocus(){this.eventSvc.dispatchEvent({type:"headerFocused",column:this.column})}setupAutoHeight(e){const{wrapperElement:t,checkMeasuringCallback:n,compBean:i}=e,{beans:o}=this,r=f=>{if(!this.isAlive()||!i.isAlive())return;const{paddingTop:p,paddingBottom:m,borderBottomWidth:v,borderTopWidth:w}=Ts(this.eGui),b=p+m+v+w,R=t.offsetHeight+b;if(f<5){const x=!on(o)?.contains(t),P=R==0;if(x||P){yg(()=>r(f+1),"raf",o);return}}this.setColHeaderHeight(this.column,R)};let s=!1,a;const l=()=>{const f=this.column.isAutoHeaderHeight();f&&!s&&u(),!f&&s&&h()},u=()=>{s=!0,this.comp.toggleCss("ag-header-cell-auto-height",!0),r(0),a=_r(this.beans,t,()=>r(0))},h=()=>{s=!1,a&&a(),this.comp.toggleCss("ag-header-cell-auto-height",!1),a=void 0};l(),i.addDestroyFunc(()=>h()),i.addManagedListeners(this.column,{widthChanged:()=>s&&r(0)}),i.addManagedEventListeners({sortChanged:()=>{s&&window.setTimeout(()=>r(0))}}),n&&n(l)}onDisplayedColumnsChanged(){const{comp:e,column:t,beans:n,eGui:i}=this;!e||!t||!i||(lR(e,t,n.visibleCols),AS(i,n.visibleCols.getAriaColIndex(t)))}addResizeAndMoveKeyboardListeners(e){e.addManagedListeners(this.eGui,{keydown:this.onGuiKeyDown.bind(this),keyup:this.onGuiKeyUp.bind(this)})}refreshTabIndex(){const e=no(this.beans);this.eGui&&ti(this.eGui,"tabindex",e?null:"-1")}onGuiKeyDown(e){const t=At(this.beans),n=e.key===K.LEFT||e.key===K.RIGHT;if(this.isResizing&&(e.preventDefault(),e.stopImmediatePropagation()),t!==this.eGui||!e.shiftKey&&!e.altKey&&!e.ctrlKey&&!e.metaKey)return;if((this.isResizing||n)&&(e.preventDefault(),e.stopImmediatePropagation()),(e.ctrlKey||e.metaKey)&&F0(e)===K.C)return this.beans.clipboardSvc?.copyToClipboard();if(!n)return;const r=e.key===K.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(r)}moveHeader(e){this.beans.colMoves?.moveHeader(e,this.eGui,this.column,this.rowCtrl.pinned,this)}getViewportAdjustedResizeDiff(e){const t=this.getResizeDiff(e),{pinnedCols:n}=this.beans;return n?n.getHeaderResizeDiff(t,this.column):t}getResizeDiff(e){const{gos:t,column:n}=this;let i=e.key===K.LEFT!==t.get("enableRtl");const o=n.getPinned(),r=t.get("enableRtl");return o&&r!==(o==="right")&&(i=!i),(i?-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 K.PAGE_DOWN:case K.PAGE_UP:case K.PAGE_HOME:case K.PAGE_END:t&&e.preventDefault()}}addDomData(e){const t=cR,{eGui:n,gos:i}=this;ks(i,n,t,this),e.addDestroyFunc(()=>ks(i,n,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,n){const i=e??t,{menuSvc:o,gos:r}=this.beans;r.get("preventDefaultOnContextMenu")&&i.preventDefault(),o?.isHeaderContextMenuEnabled(n)&&o.showHeaderContextMenu(n,e,t),this.dispatchColumnMouseEvent("columnHeaderContextMenu",n)}dispatchColumnMouseEvent(e,t){this.eventSvc.dispatchEvent({type:e,column:t})}setColHeaderHeight(e,t){if(!e.setAutoHeaderHeight(t))return;const{eventSvc:n}=this;e.isColumn?n.dispatchEvent({type:"columnHeaderHeightChanged",column:e,columns:[e],source:"autosizeColumnHeaderHeight"}):n.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}},B2=class extends am{constructor(){super(...arguments),this.refreshFunctions={},this.userHeaderClasses=new Set,this.ariaDescriptionProperties=new Map}wireComp(e,t,n,i,o){this.comp=e;const{rowCtrl:r,column:s,beans:a}=this,{colResize:l,context:u,colHover:h,rangeSvc:f}=a,p=Dc(this,u,o);this.setGui(t,p),this.updateState(),this.setupWidth(p),this.setupMovingCss(p),this.setupMenuClass(p),this.setupSortableClass(p),this.setupWrapTextClass(),this.refreshSpanHeaderHeight(),this.setupAutoHeight({wrapperElement:i,checkMeasuringCallback:v=>this.setRefreshFunction("measuring",v),compBean:p}),this.addColumnHoverListener(p),this.setupFilterClass(p),this.setupStylesFromColDef(),this.setupClassesFromColDef(),this.setupTooltip(),this.addActiveHeaderMouseListeners(p),this.setupSelectAll(p),this.setupUserComp(),this.refreshAria(),l?this.resizeFeature=p.createManagedBean(l.createResizeFeature(r.pinned,s,n,e,this)):bt(n,!1),h?.createHoverFeature(p,[s],t),f?.createRangeHighlightFeature(p,s,e),p.createManagedBean(new sm(s,t,a)),p.createManagedBean(new Rc(t,{shouldStopEventPropagation:v=>this.shouldStopEventPropagation(v),onTabKeyDown:()=>null,handleKeyDown:this.handleKeyDown.bind(this),onFocusIn:this.onFocusIn.bind(this),onFocusOut:this.onFocusOut.bind(this)})),this.addResizeAndMoveKeyboardListeners(p),p.addManagedPropertyListeners(["suppressMovableColumns","suppressMenuHide","suppressAggFuncInHeader","enableAdvancedFilter"],()=>this.refresh()),p.addManagedListeners(s,{colDefChanged:()=>this.refresh(),formulaRefChanged:()=>this.refresh(),headerHighlightChanged:this.onHeaderHighlightChanged.bind(this)});const m=()=>this.checkDisplayName();p.addManagedEventListeners({columnValueChanged:m,columnRowGroupChanged:m,columnPivotChanged:m,headerHeightChanged:this.onHeaderHeightChanged.bind(this)}),p.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,n=e.colDef;return We(t.gos,{colDef:n,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 CO(this.beans.userCompFactory,t,e)}createParams(){const{menuSvc:e,sortSvc:t,colFilter:n,gos:i}=this.beans;return We(i,{column:this.column,displayName:this.displayName,enableSorting:this.column.isSortable(),enableMenu:this.menuEnabled,enableFilterButton:this.openFilterEnabled&&!!e?.isHeaderFilterButtonEnabled(this.column),enableFilterIcon:!!n&&(!this.openFilterEnabled||ni(this.gos)),showColumnMenu:(r,s)=>{e?.showColumnMenu({column:this.column,buttonElement:r,positionBy:"button",onClosedCallback:s})},showColumnMenuAfterMouseClick:(r,s)=>{e?.showColumnMenu({column:this.column,mouseEvent:r,positionBy:"mouse",onClosedCallback:s})},showFilter:r=>{e?.showFilterMenu({column:this.column,buttonElement:r,containerType:"columnFilter",positionBy:"button"})},progressSort:r=>{t?.progressSort(this.column,!!r,"uiColumnSorted")},setSort:(r,s)=>{t?.setSortForColumn(this.column,Li(r),!!s,"uiColumnSorted")},eGridHeader:this.eGui,setTooltip:(r,s)=>{i.assertModuleRegistered("Tooltip",3),this.setupTooltip(r,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 n=t.createSelectAllFeature(this.column);n&&!this.selectAllFeature?(this.selectAllFeature=e.createManagedBean(n),this.selectAllFeature?.setComp(this),this.comp.refreshSelectAllGui()):this.selectAllFeature&&!n&&(this.comp.removeSelectAllGui(),this.selectAllFeature=this.destroyBean(this.selectAllFeature))}))}getSelectAllGui(){return this.selectAllFeature?.getCheckboxGui()}handleKeyDown(e){super.handleKeyDown(e),e.key===K.SPACE?this.selectAllFeature?.onSpaceKeyDown(e):e.key===K.ENTER?this.onEnterKeyDown(e):e.key===K.DOWN&&e.altKey&&this.showMenuOnKeyPress(e,!1)}onEnterKeyDown(e){const{column:t,gos:n,sortable:i,beans:o}=this;let r=!1;(e.ctrlKey||e.metaKey)&&(r=this.showMenuOnKeyPress(e,!0)),r||(!e.altKey&&Ua(n)?o.rangeSvc?.handleColumnSelection(t,e):i&&o.sortSvc?.progressSort(t,e.shiftKey,"uiColumnSorted"))}showMenuOnKeyPress(e,t){const n=this.comp.getUserCompInstance();return uR(n)&&n.onMenuKeyboardShortcut(t)?(e.preventDefault(),!0):!1}onFocusIn(e){this.eGui.contains(e.relatedTarget)||(this.focusThis(),this.announceAriaDescription()),G0()&&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(),n=aR(t,this.gos,this.column,null),i=this.userHeaderClasses;this.userHeaderClasses=new Set(n);for(const o of n)i.has(o)?i.delete(o):this.comp.toggleCss(o,!0);for(const o of i)this.comp.toggleCss(o,!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 n=this.column.getActualWidth();this.comp.setWidth(`${n}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 n=this.column.isFilterActive();this.comp.toggleCss("ag-header-cell-filtered",n),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,n=e===1;this.comp.toggleCss("ag-header-highlight-before",t),this.comp.toggleCss("ag-header-highlight-after",n)}onDisplayedColumnsChanged(){super.onDisplayedColumnsChanged(),this.isAlive()&&this.onHeaderHeightChanged()}onHeaderHeightChanged(){this.refreshSpanHeaderHeight()}refreshSpanHeaderHeight(){const{eGui:e,column:t,comp:n,beans:i}=this,o=nm(this.beans),r=o.reduce((p,m)=>p+m,0)===0;if(n.toggleCss("ag-header-parent-hidden",r),!t.isSpanHeaderHeight()){e.style.removeProperty("top"),e.style.removeProperty("height"),n.toggleCss("ag-header-span-height",!1),n.toggleCss("ag-header-span-total",!1);return}const{numberOfParents:s,isSpanningTotal:a}=this.column.getColumnGroupPaddingInfo();n.toggleCss("ag-header-span-height",s>0);const l=im(i);if(s===0){n.toggleCss("ag-header-span-total",!1),e.style.setProperty("top","0px"),e.style.setProperty("height",`${l}px`);return}n.toggleCss("ag-header-span-total",a);const u=(this.column.getFirstRealParent()?.getLevel()??-1)+1,h=o.length-u;let f=0;for(let p=0;p<h;p++)f+=o[o.length-1-p];e.style.setProperty("top",`${-f}px`),e.style.setProperty("height",`${l+f}px`)}refreshAriaSort(){let e=null;const{beans:t,column:n,comp:i,sortable:o}=this;if(o){const r=this.getLocaleTextFunc(),s=t.sortSvc?.getDisplaySortForColumn(n)??null;i.setAriaSort(oL(s)),e=r("ariaSortableColumn","Press ENTER to sort")}else i.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:n}=this;t&&!ni(n)&&(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:n}=this;Ua(t)&&!zn(n)&&(e=this.getLocaleTextFunc()("ariaColumnCellSelection","Press Enter to toggle selection for all visible cells in this column")),this.setAriaDescriptionProperty("cellSelection",e)}setAriaDescriptionProperty(e,t){const n=this.ariaDescriptionProperties;t!=null?n.set(e,t):n.delete(e)}announceAriaDescription(){const{beans:e,eGui:t,ariaDescriptionProperties:n}=this;if(!t.contains(At(e)))return;const i=Array.from(n.keys()).sort((o,r)=>o==="filter"?-1:r.charCodeAt(0)-o.charCodeAt(0)).map(o=>n.get(o)).join(". ");e.ariaAnnounce?.announceValue(i,"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=o=>this.handleMouseOverChange(o.type==="mouseenter"),n=()=>{this.setActiveHeader(!0),this.dispatchColumnMouseEvent("columnHeaderClicked",this.column)},i=o=>this.handleContextMenuMouseEvent(o,void 0,this.column);e.addManagedListeners(this.eGui,{mouseenter:t,mouseleave:t,click:n,contextmenu:i})}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 uR(t)?t.getAnchorElementForMenu(e):this.eGui}destroy(){this.tooltipFeature=this.destroyBean(this.tooltipFeature),super.destroy()}};function uR(e){return typeof e?.getAnchorElementForMenu=="function"&&typeof e.onMenuKeyboardShortcut=="function"}var G2=0,lm=class extends X{constructor(e,t,n){super(),this.rowIndex=e,this.pinned=t,this.type=n,this.instanceId=G2++,this.comp=null,this.allCtrls=[];let i="ag-header-row-column";n==="group"?i="ag-header-row-group":n==="filter"&&(i="ag-header-row-filter"),this.headerRowClass=`ag-header-row ${i}`}setRowIndex(e){this.rowIndex=e,this.comp?.setRowIndex(this.getAriaRowIndex()),this.onRowHeightChanged()}postConstruct(){this.isPrintLayout=bn(this.gos,"print"),this.isEnsureDomOrder=this.gos.get("ensureDomOrder")}areCellsRendered(){return this.comp?this.allCtrls.every(e=>e.eGui!=null):!1}setComp(e,t,n=!0){this.comp=e,t=Dc(this,this.beans.context,t),n&&(this.setRowIndex(this.rowIndex),this.onVirtualColumnsChanged()),this.setWidth(),this.addEventListeners(t)}getAriaRowIndex(){return this.rowIndex+1}addEventListeners(e){const t=this.onRowHeightChanged.bind(this),n=this.onDisplayedColumnsChanged.bind(this);e.addManagedEventListeners({columnResized:this.setWidth.bind(this),displayedColumnsChanged:n,virtualColumnsChanged:i=>this.onVirtualColumnsChanged(i.afterScroll),columnGroupHeaderHeightChanged:t,columnHeaderHeightChanged:t,stylesChanged:t,advancedFilterEnabledChanged:t}),e.addManagedPropertyListener("domLayout",n),e.addManagedPropertyListener("ensureDomOrder",i=>this.isEnsureDomOrder=i.currentValue),e.addManagedPropertyListeners(["headerHeight","pivotHeaderHeight","groupHeaderHeight","pivotGroupHeaderHeight","floatingFiltersHeight"],t)}onDisplayedColumnsChanged(){this.isPrintLayout=bn(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=nm(this.beans);for(let o=0;o<t.length;o++){if(o===this.rowIndex&&this.type==="group")return{topOffset:e,rowHeight:t[o]};e+=t[o]}const n=im(this.beans);if(this.type==="column")return{topOffset:e,rowHeight:n};e+=n;const i=rR(this.beans);return{topOffset:e,rowHeight:i}}onVirtualColumnsChanged(e=!1){if(!this.comp)return;const t=this.getUpdatedHeaderCtrls(),n=this.isEnsureDomOrder||this.isPrintLayout;this.comp.setHeaderCtrls(t,n,e)}getUpdatedHeaderCtrls(){const e=this.ctrlsById;this.ctrlsById=new Map;const t=this.getColumnsInViewport();for(const i of t)this.recycleAndCreateHeaderCtrls(i,this.ctrlsById,e);const n=i=>{const{focusSvc:o,visibleCols:r}=this.beans;return o.isHeaderWrapperFocused(i)?r.isVisible(i.column):!1};if(e)for(const[i,o]of e)n(o)?this.ctrlsById.set(i,o):this.destroyBean(o);return this.allCtrls=Array.from(this.ctrlsById.values()),this.allCtrls}getHeaderCellCtrls(){return this.allCtrls}recycleAndCreateHeaderCtrls(e,t,n){if(e.isEmptyGroup())return;const i=e.getUniqueId();let o;if(n&&(o=n.get(i),n.delete(i)),o&&o.column!=e&&(this.destroyBean(o),o=void 0),o==null)switch(this.type){case"filter":{o=this.createBean(this.beans.registry.createDynamicBean("headerFilterCellCtrl",!0,e,this));break}case"group":o=this.createBean(this.beans.registry.createDynamicBean("headerGroupCellCtrl",!0,e,this));break;default:o=this.createBean(new B2(e,this));break}t.set(i,o)}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 n=this.allCtrls.find(o=>o.column==e);return n?n.focus(t):!1}destroy(){this.allCtrls=this.destroyBeans(this.allCtrls),this.ctrlsById=void 0,this.comp=null,super.destroy()}},H2=class extends X{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:n,ctrlsSvc:i,colModel:o,colMoves:r}=this.beans;this.setupCenterWidth(),n?.setupHeaderPinnedWidth(this),this.setupDragAndDrop(r,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`;i.register(a,this),o.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:n,visibleCols:i}=this.beans;let o=0;const r=t.getFocusHeaderToUseAfterRefresh(),s=()=>{const f=i.headerGroupRowCount;o=f,e||(this.groupsRowCtrls=this.destroyBeans(this.groupsRowCtrls));const p=this.groupsRowCtrls.length;if(p!==f){if(p>f){for(let m=f;m<p;m++)this.destroyBean(this.groupsRowCtrls[m]);this.groupsRowCtrls.length=f;return}for(let m=p;m<f;m++){const v=this.createBean(new lm(m,this.pinned,"group"));this.groupsRowCtrls.push(v)}}},a=()=>{const f=o++;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 lm(f,this.pinned,"column"))):this.columnsRowCtrl.rowIndex!==f&&this.columnsRowCtrl.setRowIndex(f)},l=()=>{this.includeFloatingFilter=!!n?.hasFloatingFilters()&&!this.hidden;const f=()=>{this.filtersRowCtrl=this.destroyBean(this.filtersRowCtrl)};if(!this.includeFloatingFilter){f();return}e||f();const p=o++;this.filtersRowCtrl?this.filtersRowCtrl.rowIndex!==p&&this.filtersRowCtrl.setRowIndex(p):this.filtersRowCtrl=this.createBean(new lm(p,this.pinned,"filter"))},u=this.getAllCtrls();s(),a(),l();const h=this.getAllCtrls();this.comp.setCtrls(h),this.restoreFocusOnHeader(t,r),u.length!==h.length&&this.beans.eventSvc.dispatchEvent({type:"headerRowsChanged"})}getHeaderCtrlForColumn(e){const t=n=>n?.getHeaderCellCtrls().find(i=>i.column===e);if(Gr(e))return t(this.columnsRowCtrl);if(this.groupsRowCtrls.length!==0)for(let n=0;n<this.groupsRowCtrls.length;n++){const i=t(this.groupsRowCtrls[n]);if(i)return i}}getHtmlElementForColumnHeader(e){return this.getHeaderCtrlForColumn(e)?.eGui??null}getRowType(e){return this.getAllCtrls()[e]?.type}focusHeader(e,t,n){const o=this.getAllCtrls()[e];return o?o.focusHeader(t,n):!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 n=e?.createBodyDropTarget(this.pinned,t);n&&this.createManagedBean(n)}restoreFocusOnHeader(e,t){if(!t)return;const{column:n}=t;n.getPinned()==this.pinned&&e.focusHeaderPosition({headerPosition:t,scroll:!1})}setupCenterWidth(){this.pinned==null&&this.createManagedBean(new rm(e=>this.comp.setCenterWidth(`${e}px`),!0))}},V2={tag:"div",cls:"ag-pinned-left-header",role:"rowgroup"},W2={tag:"div",cls:"ag-pinned-right-header",role:"rowgroup"},z2={tag:"div",cls:"ag-header-viewport",role:"rowgroup",attrs:{tabindex:"-1"},children:[{tag:"div",ref:"eCenterContainer",cls:"ag-header-container",role:"presentation"}]},cm=class extends yt{constructor(e){super(),this.eCenterContainer=de,this.headerRowComps={},this.rowCompsList=[],this.pinned=e}postConstruct(){this.selectAndSetTemplate();const e={setDisplayed:n=>this.setDisplayed(n),setCtrls:n=>this.setCtrls(n),setCenterWidth:n=>this.eCenterContainer.style.width=n,setViewportScrollLeft:n=>this.getGui().scrollLeft=n,setPinnedContainerWidth:n=>{const i=this.getGui();i.style.width=n,i.style.maxWidth=n,i.style.minWidth=n}};this.createManagedBean(new H2(this.pinned)).setComp(e,this.getGui())}selectAndSetTemplate(){const e=this.pinned=="left",t=this.pinned=="right",n=e?V2:t?W2:z2;this.setTemplate(n),this.eRowContainer=this.eCenterContainer!==de?this.eCenterContainer:this.getGui()}destroy(){this.setCtrls([]),super.destroy()}destroyRowComp(e){this.destroyBean(e),e.getGui().remove()}setCtrls(e){const t=this.headerRowComps;this.headerRowComps={},this.rowCompsList=[];let n;const i=o=>{const r=o.getGui();r.parentElement!=this.eRowContainer&&this.eRowContainer.appendChild(r),n&&NS(this.eRowContainer,r,n),n=r};for(const o of e){const r=o.instanceId,s=t[r];delete t[r];const a=s||this.createBean(new M2(o));this.headerRowComps[r]=a,this.rowCompsList.push(a),i(a)}for(const o of Object.values(t))this.destroyRowComp(o)}},U2={tag:"div",cls:"ag-header",role:"presentation"},$2=class extends yt{constructor(){super(U2)}postConstruct(){const e={toggleCss:(i,o)=>this.toggleCss(i,o),setHeightAndMinHeight:i=>{this.getGui().style.height=i,this.getGui().style.minHeight=i}};this.createManagedBean(new x2).setComp(e,this.getGui(),this.getFocusableElement());const n=i=>{this.createManagedBean(i),this.appendChild(i)};n(new cm("left")),n(new cm(null)),n(new cm("right"))}},j2={selector:"AG-HEADER-ROOT",component:$2},io={AUTO_HEIGHT:"ag-layout-auto-height",NORMAL:"ag-layout-normal",PRINT:"ag-layout-print"},um=class extends X{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"},n=t.autoHeight?io.AUTO_HEIGHT:t.print?io.PRINT:io.NORMAL;this.view.updateLayoutClasses(n,t)}},dR=class extends yt{constructor(e,t){super(),this.direction=t,this.eViewport=de,this.eContainer=de,this.hideTimeout=0,this.setTemplate(e)}postConstruct(){this.addManagedEventListeners({scrollVisibilityChanged:this.onScrollVisibilityChanged.bind(this)}),this.onScrollVisibilityChanged(),this.toggleCss("ag-apple-scrollbar",O0()||_s())}destroy(){super.destroy(),window.clearTimeout(this.hideTimeout)}initialiseInvisibleScrollbar(){this.invisibleScrollbar===void 0&&(this.invisibleScrollbar=B0(),this.invisibleScrollbar&&(this.hideAndShowInvisibleScrollAsNeeded(),this.addActiveListenerToggles()))}addActiveListenerToggles(){const e=this.getGui(),t=()=>this.toggleCss("ag-scrollbar-active",!0),n=()=>this.toggleCss("ag-scrollbar-active",!1);this.addManagedListeners(e,{mouseenter:t,mousedown:t,touchstart:t,mouseleave:n,touchend:n})}onScrollVisibilityChanged(){this.invisibleScrollbar===void 0&&this.initialiseInvisibleScrollbar(),er(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;VL(this,()=>ki(t),()=>this.setScrollPosition(e),100)}onScrollCallback(e){this.addManagedElementListeners(this.eViewport,{scroll:e})}},K2={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"}]},q2=class extends dR{constructor(){super(K2,"horizontal"),this.eLeftSpacer=de,this.eRightSpacer=de,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 rm(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 n=!this.enableRtl&&e,i=this.scrollVisibleSvc.getScrollbarWidth();n&&(t+=i),Fo(this.eRightSpacer,t),this.eRightSpacer.classList.toggle("ag-scroller-corner",t<=i);let o=this.visibleCols.getColsLeftWidth();this.enableRtl&&e&&(o+=i),Fo(this.eLeftSpacer,o),this.eLeftSpacer.classList.toggle("ag-scroller-corner",o<=i)}setScrollVisible(){const e=this.scrollVisibleSvc.horizontalScrollShowing,t=this.invisibleScrollbar,n=this.gos.get("suppressHorizontalScroll"),i=e&&this.scrollVisibleSvc.getScrollbarWidth()||0,r=n?0:i===0&&t?16:i,s=()=>{this.setScrollVisibleDebounce=0,this.toggleCss("ag-scrollbar-invisible",t),pc(this.getGui(),r),pc(this.eViewport,r),pc(this.eContainer,r),r||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 Pd(this.eViewport,this.enableRtl)}setScrollPosition(e){ki(this.eViewport)||this.attemptSettingScrollPosition(e),Ed(this.eViewport,e,this.enableRtl)}},Q2={selector:"AG-FAKE-HORIZONTAL-SCROLL",component:q2},hR=class extends X{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,n=t!=null?`${t}px`:"";this.eContainer.style.height=n,this.eViewport&&(this.eViewport.style.height=n)}},Y2={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"}]}]},Z2=class extends dR{constructor(){super(Y2,"vertical")}postConstruct(){super.postConstruct(),this.createManagedBean(new hR(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,n=this.invisibleScrollbar,i=t&&e.getScrollbarWidth()||0,o=i===0&&n?16:i;this.toggleCss("ag-scrollbar-invisible",n),Fo(this.getGui(),o),Fo(this.eViewport,o),Fo(this.eContainer,o),this.setDisplayed(t,{skipAriaHidden:!0})}onRowContainerHeightChanged(e){const n=e.getGridBodyCtrl().eBodyViewport,i=this.getScrollPosition(),o=n.scrollTop;i!=o&&this.setScrollPosition(o,!0)}getScrollPosition(){return this.eViewport.scrollTop}setScrollPosition(e,t){!t&&!ki(this.eViewport)&&this.attemptSettingScrollPosition(e),this.eViewport.scrollTop=e}},X2={selector:"AG-FAKE-VERTICAL-SCROLL",component:Z2},$r="Viewport",fR="fakeVScrollComp",dm=["fakeHScrollComp","centerHeader","topCenter","bottomCenter","stickyTopCenter","stickyBottomCenter"],pR=100,hm=150,J2=class extends X{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=un(this,()=>this.lastScrollSource[1]=null,hm),this.resetLastVScrollDebounced=un(this,()=>this.lastScrollSource[0]=null,hm)}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,n=>{this.centerRowsCtrl=n.center,this.fakeVScrollComp=n.fakeVScrollComp,this.fakeHScrollComp=n.fakeHScrollComp,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,$r)});for(const e of dm){const t=this.ctrlsSvc.get(e);this.registerScrollPartner(t,this.onHScroll.bind(this,e))}}addVerticalScrollListeners(){const e=this.gos.get("debounceVerticalScrollbar"),t=e?un(this,this.onVScroll.bind(this,$r),pR):this.onVScroll.bind(this,$r),n=e?un(this,this.onVScroll.bind(this,fR),pR):this.onVScroll.bind(this,fR);this.addManagedElementListeners(this.eBodyViewport,{scroll:t}),this.registerScrollPartner(this.fakeVScrollComp,n)}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[...dm,$r]){if(this.lastScrollSource[1]===t)continue;const n=this.getViewportForSource(t);Ed(n,e,this.enableRtl)}}getViewportForSource(e){return e===$r?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:n}=t;if(this.shouldBlockScrollUpdate(1,n,!0))return;const i=Pd(this.getViewportForSource(e),this.enableRtl);this.doHorizontalScroll(i),this.resetLastHScrollDebounced()}onVScroll(e){if(!this.isControllingScroll(e,0))return;const t=e===$r?this.eBodyViewport.scrollTop:this.fakeVScrollComp.getScrollPosition();let n=t;if(this.shouldBlockScrollUpdate(0,n,!0))return;e===$r?this.fakeVScrollComp.setScrollPosition(n):(this.eBodyViewport.scrollTop=t,n=this.eBodyViewport.scrollTop,this.invalidateVerticalScroll(),n!==t&&this.fakeVScrollComp.setScrollPosition(n,!0));const{animationFrameSvc:i}=this;i?.setScrollTop(n),this.nextScrollTop=n,i?.active?i.schedule():this.scrollGridIfNeeded(!0),this.resetLastVScrollDebounced()}doHorizontalScroll(e){const t=this.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"})},hm)}shouldBlockScrollUpdate(e,t,n=!1){return n&&!_s()?!1:e===0?this.shouldBlockVerticalScroll(t):this.shouldBlockHorizontalScroll(t)}shouldBlockVerticalScroll(e){const t=fg(this.eBodyViewport),{scrollHeight:n}=this.eBodyViewport;return e<0||e+t>n}shouldBlockHorizontalScroll(e){const t=this.centerRowsCtrl.getCenterWidth(),{scrollWidth:n}=this.centerRowsCtrl.eViewport;if(this.enableRtl){if(e>0)return!0}else if(e<0)return!0;return Math.abs(e)+t>n}redrawRowsAfterScroll(){this.fireScrollEvent(0)}checkScrollLeft(){const e=this.scrollLeft;let t=!1;for(const n of dm)if(this.getViewportForSource(n).scrollLeft!==e){t=!0;break}t&&this.onHScroll($r)}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 i=this.centerRowsCtrl.eViewport.scrollWidth-this.centerRowsCtrl.getCenterWidth();!t&&this.shouldBlockScrollUpdate(1,e)&&(this.enableRtl?e=e>0?0:i:e=Math.min(Math.max(e,0),i)),Ed(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:n,lastScrollTop:i}=this;return{top:i,bottom:i+n}}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.setVerticalScrollPosition(0)}ensureNodeVisible(e,t=null){const{rowModel:n}=this.beans,i=n.getRowCount();let o=-1;for(let r=0;r<i;r++){const s=n.getRow(r);if(typeof e=="function"){if(s&&e(s)){o=r;break}}else if(e===s||e===s.data){o=r;break}}o>=0&&this.ensureIndexVisible(o,t)}ensureIndexVisible(e,t,n=0){if(bn(this.gos,"print"))return;const{rowModel:i}=this.beans,o=i.getRowCount();if(typeof e!="number"||e<0||e>=o){se(88,{index:e});return}this.clearRetryListeners();const{frameworkOverrides:r,pageBounds:s,rowContainerHeight:a,rowRenderer:l}=this.beans;r.wrapIncoming(()=>{const u=this.ctrlsSvc.getGridBodyCtrl(),h=i.getRow(e);let f,p,m=0;this.invalidateVerticalScroll();do{const{stickyTopHeight:v,stickyBottomHeight:w}=u,b=h.rowTop,y=h.rowHeight,R=s.getPixelOffset(),S=h.rowTop-R,x=S+h.rowHeight,P=this.getVScrollPosition(),D=a.divStretchOffset,A=P.top+D,N=P.bottom+D,B=N-A,L=a.getScrollPositionForPixel(S),M=a.getScrollPositionForPixel(x-B),I=Math.min((L+M)/2,S),O=A+v>S,Q=N-w<x;let te=null;t==="top"?te=L-v:t==="bottom"?te=M+w:t==="middle"?te=I:O?te=L-v:Q&&(M-L>B?te=L-v:te=M+w),te!==null&&(this.setVerticalScrollPosition(te),l.redraw({afterScroll:!0})),f=b!==h.rowTop||y!==h.rowHeight,p=v!==u.stickyTopHeight||w!==u.stickyBottomHeight,m++}while((f||p)&&m<10);if(this.animationFrameSvc?.flushAllFrames(),n<10&&(h?.stub||!this.beans.rowAutoHeight?.areRowsMeasured())){const v=this.getVScrollPosition().top;this.clearRetryListenerFncs=this.addManagedEventListeners({bodyScroll:()=>{const w=this.getVScrollPosition().top;v!==w&&this.clearRetryListeners()},modelUpdated:()=>{this.clearRetryListeners(),!(e>=i.getRowCount())&&this.ensureIndexVisible(e,t,n+1)}})}})}clearRetryListeners(){for(const e of this.clearRetryListenerFncs)e();this.clearRetryListenerFncs=[]}ensureColumnVisible(e,t="auto"){const{colModel:n,frameworkOverrides:i}=this.beans,o=n.getCol(e);if(!o||o.isPinned()||!this.visibleCols.isColDisplayed(o))return;const r=this.getPositionedHorizontalScroll(o,t);i.wrapIncoming(()=>{r!==null&&this.centerRowsCtrl.setCenterViewportScrollLeft(r),this.centerRowsCtrl.onHorizontalViewportChanged(),this.animationFrameSvc?.flushAllFrames()})}getPositionedHorizontalScroll(e,t){const{columnBeforeStart:n,columnAfterEnd:i}=this.isColumnOutsideViewport(e),o=this.centerRowsCtrl.getCenterWidth()<e.getActualWidth(),r=this.centerRowsCtrl.getCenterWidth(),s=this.enableRtl;let a=(s?n:i)||o,l=s?i:n;t!=="auto"&&(a=t==="start",l=t==="end");const u=t==="middle";if(a||l||u){const{colLeft:h,colMiddle:f,colRight:p}=this.getColumnBounds(e);return u?f-r/2:a?s?p:h:s?h-r:p-r}return null}isColumnOutsideViewport(e){const{start:t,end:n}=this.getViewportBounds(),{colLeft:i,colRight:o}=this.getColumnBounds(e),r=this.enableRtl,s=r?t>o:n<o,a=r?n<i:t>i;return{columnBeforeStart:s,columnAfterEnd:a}}getColumnBounds(e){const t=this.enableRtl,n=this.visibleCols.bodyWidth,i=e.getActualWidth(),o=e.getLeft(),r=t?-1:1,s=t?n-o:o,a=s+i*r,l=s+i/2*r;return{colLeft:s,colMiddle:l,colRight:a}}getViewportBounds(){const e=this.centerRowsCtrl.getCenterWidth(),t=this.centerRowsCtrl.getCenterViewportScrollLeft(),n=t,i=e+t;return{start:n,end:i,width:e}}},gR={horizontal:{overflow:e=>e.scrollWidth-e.clientWidth,scrollSize:e=>e.scrollWidth,clientSize:e=>e.clientWidth,opposite:"vertical"},vertical:{overflow:e=>e.scrollHeight-e.clientHeight,scrollSize:e=>e.scrollHeight,clientSize:e=>e.clientHeight,opposite:"horizontal"}};function eN(e,t,n=Ug()||0,i,o){return mR(e,t,"horizontal",n,i,o)}function tN(e,t,n=Ug()||0,i,o){return mR(e,t,"vertical",n,i,o)}function mR(e,t,n,i,o,r){const s=gR[n],a=gR[s.opposite],l=o?ki(o):!0,u=r?ki(r):!0,h=s.overflow(e);if(h<=0)return!1;if(!t||i===0)return!0;const f=a.overflow(t);if(f<=0)return!0;if(h<=i){if(l&&u&&nN({candidateOverflow:f,candidateScrollSize:a.scrollSize(t),candidateClientSize:a.clientSize(t),scrollbarWidth:i}))return!1;const p=s.clientSize(e)+i;return s.scrollSize(e)<=p}return!0}function nN({candidateOverflow:e,candidateScrollSize:t,candidateClientSize:n,scrollbarWidth:i}){if(e<=0||e>i)return!1;const o=n+i;return t>n&&t<=o}var iN=class extends X{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:n}=this,i=()=>{er(e,()=>{this.onCenterViewportResized()})};t.registerViewportResizeListener(i),n.registerBodyViewportResizeListener(i)}onScrollbarWidthChanged(){this.checkViewportAndScrolls()}onCenterViewportResized(){if(this.scrollVisibleSvc.updateScrollGap(),this.centerContainerCtrl.isViewportInTheDOMTree()){const{pinnedCols:e,colFlex:t}=this.beans;e?.keepPinnedColumnsNarrowerThanViewport(),this.checkViewportAndScrolls();const n=this.centerContainerCtrl.getCenterWidth();n!==this.centerWidth&&(this.centerWidth=n,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=fg(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{centerContainerCtrl:e,beans:t}=this,n=e.getCenterWidth(),i=e.getViewportScrollLeft();t.colViewport.setScrollPosition(n,i)}};function vR(e){return e.altKey||e.ctrlKey||e.metaKey?!1:e.key?.length===1}function Jd(e,t,n,i){const o=t.getColDef().cellRendererParams?.suppressMouseEventHandling;return CR(e,t,n,i,o)}function oN(e,t,n,i){const o=t?.suppressMouseEventHandling;return CR(e,void 0,n,i,o)}function CR(e,t,n,i,o){return o?o(We(e,{column:t,node:n,event:i})):!1}function wR(e,t,n){let i=t;for(;i;){const o=a0(e,i,n);if(o)return o;i=i.parentElement}return null}var eh="cellCtrl";function fm(e,t){return wR(e,t,eh)}var th="renderedRow";function rN(e,t){return wR(e,t,th)}function pm(e,t,n,i,o){const r=i?i.getColDef().suppressKeyboardEvent:void 0;if(!r)return!1;const s=We(e,{event:t,editing:o,column:i,node:n,data:n.data,colDef:i.getColDef()});return!!(r&&r(s))}function sN(e){const{pinnedRowModel:t,rowModel:n,rangeSvc:i,visibleCols:o}=e;if(!i||o.allCols.length===0)return;const r=t?.isEmpty("top")??!0,s=t?.isEmpty("bottom")??!0,a=r?null:"top";let l,u;s?(l=null,u=n.getRowCount()-1):(l="bottom",u=t?.getPinnedBottomRowCount()??-1),i.setCellRange({rowStartIndex:0,rowStartPinned:a,rowEndIndex:u,rowEndPinned:l})}var aN=class extends X{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(){let e="mousedown";Td("pointerdown")?e="pointerdown":Td("touchstart")&&(e="touchstart");const t=["dblclick","contextmenu","mouseover","mouseout","click",e];for(const n of t){const i=this.processMouseEvent.bind(this,n);this.addManagedElementListeners(this.element,{[n]:i})}}processMouseEvent(e,t){if(!gc(this.beans,t)||sr(t))return;const{cellCtrl:n,rowCtrl:i}=this.getControlsForEventTarget(t.target);e==="contextmenu"?(n?.column&&n.dispatchCellContextMenuEvent(t),this.beans.contextMenuSvc?.handleContextMenuMouseEvent(t,void 0,i,n)):(n&&n.onMouseEvent(e,t),i&&i.onMouseEvent(e,t))}getControlsForEventTarget(e){const{gos:t}=this;return{cellCtrl:fm(t,e),rowCtrl:rN(t,e)}}processKeyboardEvent(e,t){const{cellCtrl:n,rowCtrl:i}=this.getControlsForEventTarget(t.target);t.defaultPrevented||(n?this.processCellKeyboardEvent(n,e,t):i?.isFullWidth()&&this.processFullWidthRowKeyboardEvent(i,e,t))}processCellKeyboardEvent(e,t,n){const i=this.editSvc?.isEditing(e,{withOpenEditor:!0})??!1;!pm(this.gos,n,e.rowNode,e.column,i)&&t==="keydown"&&(!i&&this.beans.navigation?.handlePageScrollingKey(n)||e.onKeyDown(n),this.doGridOperations(n,i),vR(n)&&e.processCharacter(n)),t==="keydown"&&this.eventSvc.dispatchEvent(e.createEvent(n,"cellKeyDown"))}processFullWidthRowKeyboardEvent(e,t,n){const{rowNode:i}=e,{focusSvc:o,navigation:r}=this.beans,a=o.getFocusedCell()?.column;if(!pm(this.gos,n,i,a,!1)){const u=n.key;if(t==="keydown")switch(u){case K.PAGE_HOME:case K.PAGE_END:case K.PAGE_UP:case K.PAGE_DOWN:r?.handlePageScrollingKey(n,!0);break;case K.LEFT:case K.RIGHT:if(!this.gos.get("embedFullWidthRows"))break;case K.UP:case K.DOWN:e.onKeyboardNavigate(n);break;case K.TAB:e.onTabKeyDown(n);break}}t==="keydown"&&this.eventSvc.dispatchEvent(e.createRowEvent("cellKeyDown",n))}doGridOperations(e,t){if(!e.ctrlKey&&!e.metaKey||t||!gc(this.beans,e))return;const n=F0(e),{clipboardSvc:i,undoRedo:o}=this.beans;if(n===K.A)return this.onCtrlAndA(e);if(n===K.C)return this.onCtrlAndC(i,e);if(n===K.D)return this.onCtrlAndD(i,e);if(n===K.V)return this.onCtrlAndV(i,e);if(n===K.X)return this.onCtrlAndX(i,e);if(n===K.Y)return this.onCtrlAndY(o);if(n===K.Z)return this.onCtrlAndZ(o,e)}onCtrlAndA(e){const{beans:{rowModel:t,rangeSvc:n,selectionSvc:i},gos:o}=this;n&&nr(o)&&!C_(o)&&t.isRowsToRender()?sN(this.beans):i&&i.selectAllRowNodes({source:"keyboardSelectAll",selectAll:f0(o)}),e.preventDefault()}onCtrlAndC(e,t){if(!e||this.gos.get("enableCellTextSelection"))return;const{cellCtrl:n}=this.getControlsForEventTarget(t.target);this.editSvc?.isEditing(n,{withOpenEditor:!0})||(t.preventDefault(),e.copyToClipboard())}onCtrlAndX(e,t){if(!e||this.gos.get("enableCellTextSelection")||this.gos.get("suppressCutToClipboard"))return;const{cellCtrl:n}=this.getControlsForEventTarget(t.target);this.editSvc?.isEditing(n,{withOpenEditor:!0})||(t.preventDefault(),e.cutToClipboard(void 0,"ui"))}onCtrlAndV(e,t){const{cellCtrl:n}=this.getControlsForEventTarget(t.target);this.editSvc?.isEditing(n,{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")}},nh=e=>e.topRowCtrls,ih=e=>e.getStickyTopRowCtrls(),oh=e=>e.getStickyBottomRowCtrls(),rh=e=>e.bottomRowCtrls,sh=e=>e.allRowCtrls,gm=e=>e.getCtrls("top"),mm=e=>e.getCtrls("center"),vm=e=>e.getCtrls("bottom"),lN={center:{type:"center",name:"center-cols",getRowCtrls:sh,getSpannedRowCtrls:mm},left:{type:"left",name:"pinned-left-cols",pinnedType:"left",getRowCtrls:sh,getSpannedRowCtrls:mm},right:{type:"right",name:"pinned-right-cols",pinnedType:"right",getRowCtrls:sh,getSpannedRowCtrls:mm},fullWidth:{type:"fullWidth",name:"full-width",fullWidth:!0,getRowCtrls:sh},topCenter:{type:"center",name:"floating-top",getRowCtrls:nh,getSpannedRowCtrls:gm},topLeft:{type:"left",name:"pinned-left-floating",container:"ag-pinned-left-floating-top",pinnedType:"left",getRowCtrls:nh,getSpannedRowCtrls:gm},topRight:{type:"right",name:"pinned-right-floating",container:"ag-pinned-right-floating-top",pinnedType:"right",getRowCtrls:nh,getSpannedRowCtrls:gm},topFullWidth:{type:"fullWidth",name:"floating-top-full-width",fullWidth:!0,getRowCtrls:nh},stickyTopCenter:{type:"center",name:"sticky-top",getRowCtrls:ih},stickyTopLeft:{type:"left",name:"pinned-left-sticky-top",container:"ag-pinned-left-sticky-top",pinnedType:"left",getRowCtrls:ih},stickyTopRight:{type:"right",name:"pinned-right-sticky-top",container:"ag-pinned-right-sticky-top",pinnedType:"right",getRowCtrls:ih},stickyTopFullWidth:{type:"fullWidth",name:"sticky-top-full-width",fullWidth:!0,getRowCtrls:ih},stickyBottomCenter:{type:"center",name:"sticky-bottom",getRowCtrls:oh},stickyBottomLeft:{type:"left",name:"pinned-left-sticky-bottom",container:"ag-pinned-left-sticky-bottom",pinnedType:"left",getRowCtrls:oh},stickyBottomRight:{type:"right",name:"pinned-right-sticky-bottom",container:"ag-pinned-right-sticky-bottom",pinnedType:"right",getRowCtrls:oh},stickyBottomFullWidth:{type:"fullWidth",name:"sticky-bottom-full-width",fullWidth:!0,getRowCtrls:oh},bottomCenter:{type:"center",name:"floating-bottom",getRowCtrls:rh,getSpannedRowCtrls:vm},bottomLeft:{type:"left",name:"pinned-left-floating-bottom",container:"ag-pinned-left-floating-bottom",pinnedType:"left",getRowCtrls:rh,getSpannedRowCtrls:vm},bottomRight:{type:"right",name:"pinned-right-floating-bottom",container:"ag-pinned-right-floating-bottom",pinnedType:"right",getRowCtrls:rh,getSpannedRowCtrls:vm},bottomFullWidth:{type:"fullWidth",name:"floating-bottom-full-width",fullWidth:!0,getRowCtrls:rh}};function bR(e){return`ag-${Tc(e).name}-viewport`}function yR(e){const t=Tc(e);return t.container??`ag-${t.name}-container`}function cN(e){return`ag-${Tc(e).name}-spanned-cells-container`}function Tc(e){return lN[e]}var uN=["topCenter","topLeft","topRight"],dN=["bottomCenter","bottomLeft","bottomRight"],hN=["center","left","right"],fN=["center","left","right","fullWidth"],pN=["stickyTopCenter","stickyBottomCenter","center","topCenter","bottomCenter"],gN=["left","bottomLeft","topLeft","stickyTopLeft","stickyBottomLeft"],mN=["right","bottomRight","topRight","stickyTopRight","stickyBottomRight"],SR=["stickyTopCenter","stickyTopLeft","stickyTopRight"],RR=["stickyBottomCenter","stickyBottomLeft","stickyBottomRight"],vN=[...SR,"stickyTopFullWidth",...RR,"stickyBottomFullWidth"],CN=[...uN,...dN,...hN,...SR,...RR],wN=class extends X{constructor(e){super(),this.name=e,this.visible=!0,this.EMPTY_CTRLS=[],this.options=Tc(e)}postConstruct(){this.enableRtl=this.gos.get("enableRtl"),this.forContainers(["center"],()=>{this.viewportSizeFeature=this.createManagedBean(new iN(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,n,i){this.comp=e,this.eContainer=t,this.eSpannedContainer=n,this.eViewport=i,this.createManagedBean(new aN(this.eViewport??this.eContainer)),this.addPreventScrollWhileDragging(),this.listenOnDomOrder();const{pinnedCols:o,rangeSvc:r}=this.beans,s=()=>this.onPinnedWidthChanged();this.forContainers(gN,()=>{this.pinnedWidthFeature=this.createOptionalManagedBean(o?.createPinnedWidthFeature(!0,this.eContainer,this.eSpannedContainer)),this.addManagedEventListeners({leftPinnedWidthChanged:s})}),this.forContainers(mN,()=>{this.pinnedWidthFeature=this.createOptionalManagedBean(o?.createPinnedWidthFeature(!1,this.eContainer,this.eSpannedContainer)),this.addManagedEventListeners({rightPinnedWidthChanged:s})}),this.forContainers(fN,()=>this.createManagedBean(new hR(this.eContainer,this.name==="center"?i:void 0))),r&&this.forContainers(CN,()=>this.createManagedBean(r.createDragListenerFeature(this.eContainer))),this.forContainers(pN,()=>this.createManagedBean(new rm(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,n=this.onDisplayedColumnsChanged.bind(this);this.addManagedEventListeners({displayedColumnsChanged:n,displayedColumnsWidthChanged:n,displayedRowsChanged:i=>this.onDisplayedRowsChanged(i.afterScroll)}),n(),this.onDisplayedRowsChanged(),e&&this.options.getSpannedRowCtrls&&t.get("enableCellSpan")&&this.addManagedListeners(e,{spannedRowsUpdated:()=>{const i=this.options.getSpannedRowCtrls(e);i&&this.comp.setSpannedRowCtrls(i,!1)}})}listenOnDomOrder(){if(vN.indexOf(this.name)>=0){this.comp.setDomOrder(!0);return}const t=()=>{const n=this.gos.get("ensureDomOrder"),i=bn(this.gos,"print");this.comp.setDomOrder(n||i)};this.addManagedPropertyListener("domLayout",t),t()}onDisplayedColumnsChanged(){this.forContainers(["center"],()=>this.onHorizontalViewportChanged())}addPreventScrollWhileDragging(){const{dragSvc:e}=this.beans;if(!e)return;const t=n=>{e.dragging&&n.cancelable&&n.preventDefault()};this.eContainer.addEventListener("touchmove",t,{passive:!1}),this.addDestroyFunc(()=>this.eContainer.removeEventListener("touchmove",t))}onHorizontalViewportChanged(e=!1){const t=this.getCenterWidth(),n=this.getCenterViewportScrollLeft();this.beans.colViewport.setScrollPosition(t,n,e)}hasHorizontalScrollGap(){return this.eContainer.clientWidth-this.eViewport.clientWidth<0}hasVerticalScrollGap(){return this.eContainer.clientHeight-this.eViewport.clientHeight<0}getCenterWidth(){return dc(this.eViewport)}getCenterViewportScrollLeft(){return Pd(this.eViewport,this.enableRtl)}registerViewportResizeListener(e){const t=_r(this.beans,this.eViewport,e);this.addDestroyFunc(()=>t())}isViewportInTheDOMTree(){return OS(this.eViewport)}getViewportScrollLeft(){return Pd(this.eViewport,this.enableRtl)}isHorizontalScrollShowing(){const{beans:e,gos:t,eViewport:n}=this,i=t.get("alwaysShowHorizontalScroll"),{ctrlsSvc:o}=e,r=o.getGridBodyCtrl()?.eBodyViewport,s=o.get("fakeHScrollComp")?.getGui(),a=o.get("fakeVScrollComp")?.getGui();return i||eN(n,r,void 0,s,a)}setHorizontalScroll(e){this.comp.setHorizontalScroll(e)}getHScrollPosition(){return{left:this.eViewport.scrollLeft,right:this.eViewport.scrollLeft+this.eViewport.offsetWidth}}setCenterViewportScrollLeft(e){Ed(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 n=bn(this.gos,"print"),o=this.gos.get("embedFullWidthRows")||n,r=t.filter(s=>{const a=s.isFullWidth();return this.options.fullWidth?!o&&a:o||!a});this.comp.setRowCtrls({rowCtrls:r,useFlushSync:e})}},FR="ag-force-vertical-scroll",bN="ag-selectable",yN="ag-column-moving",SN=class extends X{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,n,i,o,r,s){this.comp=e,this.eGridBody=t,this.eBodyViewport=n,this.eTop=i,this.eBottom=o,this.eStickyTop=r,this.eStickyBottom=s,this.eCenterColsViewport=n.querySelector(`.${bR("center")}`),this.eFullWidthContainer=n.querySelector(`.${yR("fullWidth")}`),this.setCellTextSelection(this.gos.get("enableCellTextSelection")),this.addManagedPropertyListener("enableCellTextSelection",a=>this.setCellTextSelection(a.currentValue)),this.createManagedBean(new um(this.comp)),this.scrollFeature=this.createManagedBean(new J2(n)),this.beans.rowDragSvc?.setupRowDrag(n,this),this.setupRowAnimationCssClass(),this.addEventListeners(),this.addFocusListeners([i,n,o,r,s]),this.setGridRootRole(),this.onGridColumnsChanged(),this.addBodyViewportListener(),this.setFloatingHeights(),this.disableBrowserDragging(),this.addStopEditingWhenGridLosesFocus(),this.updateScrollingClasses(),this.filterManager?.setupAdvFilterHeaderComp(i),this.ctrlsSvc.register("gridBodyCtrl",this)}addEventListeners(){const e=this.setFloatingHeights.bind(this),t=this.setGridRootRole.bind(this),n=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:n,rowResizeEnded:n}),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 n=t&&e.getScrollbarWidth()||0,i=B0()?16:0,o=`calc(100% + ${n+i}px)`;er(this.beans,()=>this.comp.setBodyViewportWidth(o)),this.updateScrollingClasses()}setGridRootRole(){const{rowGroupColsSvc:e,colModel:t,gos:n}=this;let i=n.get("treeData");if(!i){const o=t.isPivotMode();i=(e?e.columns.length:0)>=(o?2:1)}this.comp.setGridRootRole(i?"treegrid":"grid")}addFocusListeners(e){for(const t of e)this.addManagedElementListeners(t,{focusin:n=>{const{target:i}=n,o=Ds(i,"ag-root",t);t.classList.toggle("ag-has-focus",!o)},focusout:n=>{const{target:i,relatedTarget:o}=n,r=t.contains(o),s=Ds(o,"ag-root",t);Ds(i,"ag-root",t)||(!r||s)&&t.classList.remove("ag-has-focus")}})}setColumnMovingCss(e){this.comp.setColumnMovingCss(yN,e)}setCellTextSelection(e=!1){this.comp.setCellSelectableCss(bN,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,n=t.isLastRowIndexKnown()?t.getRowCount():-1,i=n===-1?-1:e+n;this.comp.setRowCount(i)}registerBodyViewportResizeListener(e){this.comp.registerBodyViewportResizeListener(e)}setVerticalScrollPaddingVisible(e){const t=e?"scroll":"hidden";this.comp.setPinnedTopBottomOverflowY(t)}isVerticalScrollShowing(){const{gos:e,comp:t,ctrlsSvc:n}=this,i=e.get("alwaysShowVerticalScroll"),o=i?FR:null,r=bn(e,"normal");t.setAlwaysVerticalScrollClass(o,i);const s=n.get("center")?.eViewport,a=n.get("fakeHScrollComp")?.getGui(),l=n.get("fakeVScrollComp")?.getGui();return i||r&&tN(this.eBodyViewport,s,void 0,l,a)}setupRowAnimationCssClass(){const{rowContainerHeight:e,environment:t}=this.beans;let n=t.sizesMeasured;const i=()=>{const o=n&&Va(this.gos)&&!e.stretching,r=o?"ag-row-animation":"ag-row-no-animation";this.comp.setRowAnimationCssOnBodyViewport(r,o)};i(),this.addManagedEventListeners({heightScaleChanged:i}),this.addManagedPropertyListener("animateRows",i),this.addManagedEventListeners({stylesChanged:()=>{!n&&t.sizesMeasured&&(n=!0,i())}})}addBodyViewportListener(){const{eBodyViewport:e,eStickyTop:t,eStickyBottom:n,eTop:i,eBottom:o,beans:{popupSvc:r,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,r)});const l=this.onStickyWheel.bind(this);for(const h of[t,n,i,o])this.addManagedElementListeners(h,{wheel:l});const u=this.onHorizontalWheel.bind(this);for(const h of["left","right","topLeft","topRight","bottomLeft","bottomRight"])this.addManagedElementListeners(this.ctrlsSvc.get(h).eContainer,{wheel:u});this.addFullWidthContainerWheelListener()}addFullWidthContainerWheelListener(){this.addManagedElementListeners(this.eFullWidthContainer,{wheel:e=>this.onFullWidthContainerWheel(e)})}onFullWidthContainerWheel(e){const{deltaX:t,deltaY:n,shiftKey:i}=e;(i||Math.abs(t)>Math.abs(n))&&gc(this.beans,e)&&this.scrollGridBodyToMatchEvent(e)}onStickyWheel(e){const{deltaY:t}=e;this.scrollVertically(t)>0&&e.preventDefault()}onHorizontalWheel(e){const{deltaX:t,deltaY:n,shiftKey:i}=e;(i||Math.abs(t)>Math.abs(n))&&this.scrollGridBodyToMatchEvent(e)}scrollGridBodyToMatchEvent(e){const{deltaX:t,deltaY:n}=e;e.preventDefault(),this.eCenterColsViewport.scrollBy({left:t||n})}onBodyViewportContextMenu(e,t,n){if(!e&&!n)return;this.gos.get("preventDefaultOnContextMenu")&&(e||n).preventDefault();const{target:i}=e||t;(i===this.eBodyViewport||i===this.ctrlsSvc.get("center").eViewport)&&this.beans.contextMenuSvc?.showContextMenu({mouseEvent:e,touchEvent:n,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,n=e?.getPinnedTopTotalHeight(),i=e?.getPinnedBottomTotalHeight(),o=t.getPinnedRowBorderWidth(),r=t.getRowBorderWidth(),s=o-r,a=n?s+n:0,l=i?s+i:0;this.comp.setTopHeight(a),this.comp.setBottomHeight(l),this.comp.setTopInvisible(a<=0),this.comp.setBottomInvisible(l<=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),n=this.pinnedRowModel?.getPinnedTopTotalHeight()??0;let i=0;t>0&&(i+=t),n>0&&(i+=n),i>0&&(i+=1),this.comp.setStickyTopTop(`${i}px`)}setStickyBottomOffsetBottom(){const{pinnedRowModel:e,scrollVisibleSvc:t,comp:n}=this,i=e?.getPinnedBottomTotalHeight()??0,r=t.horizontalScrollShowing&&t.getScrollbarWidth()||0,s=i+r;n.setStickyBottomBottom(`${s}px`)}};function rn(e){return As(e)}var RN=class extends yt{constructor(e,t,n,i,o){super(),this.cellCtrl=t,this.rowResizerElement=null,this.rendererVersion=0,this.editorVersion=0,this.beans=e,this.gos=e.gos,this.column=t.column,this.rowNode=t.rowNode,this.eRow=i;const r=rn({tag:"div",role:t.getCellAriaRole(),attrs:{"comp-id":`${this.getCompId()}`,"col-id":t.column.colIdSanitised}});this.eCell=r;let s;t.isCellSpanning()?(s=rn({tag:"div",cls:"ag-spanned-cell-wrapper",role:"presentation"}),s.appendChild(r),this.setTemplateFromElement(s)):this.setTemplateFromElement(r),this.cellCssManager=new L0(()=>r),this.forceWrapper=t.isForceWrapper(),this.refreshWrapper(!1);const a={toggleCss:(l,u)=>this.cellCssManager.toggleCss(l,u),setUserStyles:l=>hc(r,l),getFocusableElement:()=>r,setIncludeSelection:l=>this.includeSelection=l,setIncludeRowDrag:l=>this.includeRowDrag=l,setIncludeDndSource:l=>this.includeDndSource=l,setRowResizerElement:l=>this.setRowResizerElement(l),setRenderDetails:(l,u,h)=>this.setRenderDetails(l,u,h),setEditDetails:(l,u,h)=>this.setEditDetails(l,u,h),getCellEditor:()=>this.cellEditor||null,getCellRenderer:()=>this.cellRenderer||null,getParentOfValue:()=>this.getParentOfValue(),refreshEditStyles:(l,u)=>this.refreshEditStyles(l,u)};t.setComp(a,r,s,this.eCellWrapper,n,o,void 0)}getParentOfValue(){return this.eCellValue??this.eCellWrapper??this.eCell}setRowResizerElement(e){this.rowResizerElement&&Mi(this.rowResizerElement),this.rowResizerElement=e,e&&this.eCell.appendChild(e)}setRenderDetails(e,t,n){if(this.cellEditor&&!this.cellEditorPopupWrapper)return;this.firstRender=this.firstRender==null;const o=this.refreshWrapper(!1);this.refreshEditStyles(!1),e?!(n||o)&&this.refreshCellRenderer(e)||(this.destroyRenderer(),this.createCellRendererInstance(e)):(this.destroyRenderer(),this.insertValueWithoutCellRenderer(t)),this.rowDraggingComp?.refreshVisibility(),this.rowResizerElement&&!this.rowResizerElement.parentElement&&this.eCell.appendChild(this.rowResizerElement)}setEditDetails(e,t,n){e?this.createCellEditorInstance(e,t,n):this.destroyEditor()}removeControls(){const e=this.beans.context;this.checkboxSelectionComp=e.destroyBean(this.checkboxSelectionComp),this.dndSourceComp=e.destroyBean(this.dndSourceComp),this.rowDraggingComp=e.destroyBean(this.rowDraggingComp)}refreshWrapper(e){const t=this.includeRowDrag||this.includeDndSource||this.includeSelection,n=t||this.forceWrapper,i=n&&this.eCellWrapper==null;i&&(this.eCellWrapper=rn({tag:"div",cls:"ag-cell-wrapper",role:"presentation"}),this.eCell.appendChild(this.eCellWrapper));const o=!n&&this.eCellWrapper!=null;o&&(Mi(this.eCellWrapper),this.eCellWrapper=void 0),this.cellCssManager.toggleCss("ag-cell-value",!n);const r=!e&&n,s=r&&this.eCellValue==null;if(s){const u=this.cellCtrl.getCellValueClass();this.eCellValue=rn({tag:"span",cls:u,role:"presentation"}),this.eCellWrapper.appendChild(this.eCellValue)}const a=!r&&this.eCellValue!=null;a&&(Mi(this.eCellValue),this.eCellValue=void 0);const l=i||o||s||a;return l&&this.removeControls(),!e&&t&&this.addControls(),l}addControls(){const{cellCtrl:e,eCellWrapper:t,eCellValue:n,includeRowDrag:i,includeDndSource:o,includeSelection:r}=this,s=a=>{a&&t.insertBefore(a.getGui(),n)};i&&this.rowDraggingComp==null&&(this.rowDraggingComp=e.createRowDragComp(),s(this.rowDraggingComp)),o&&this.dndSourceComp==null&&(this.dndSourceComp=e.createDndSource(),s(this.dndSourceComp)),r&&this.checkboxSelectionComp==null&&(this.checkboxSelectionComp=e.createSelectionCheckbox(),s(this.checkboxSelectionComp))}createCellEditorInstance(e,t,n){const i=this.editorVersion,o=e.newAgStackInstance(),{params:r}=e;o.then(a=>this.afterCellEditorCreated(i,a,r,t,n)),Nt(this.cellEditor)&&r.cellStartedEdit&&this.cellCtrl.focusCell(!0)}insertValueWithoutCellRenderer(e){const t=this.getParentOfValue();wn(t);const n=La(e);n!=null&&(t.textContent=n)}destroyRenderer(){const{context:e}=this.beans;this.cellRenderer=e.destroyBean(this.cellRenderer),Mi(this.cellRendererGui),this.cellRendererGui=null,this.rendererVersion++}destroyEditor(){const{context:e}=this.beans;(this.cellEditorPopupWrapper?.getGui().contains(At(this.beans))||this.cellCtrl.hasBrowserFocus())&&this.eCell.focus({preventScroll:!0}),this.hideEditorPopup?.(),this.hideEditorPopup=void 0,this.cellEditor=e.destroyBean(this.cellEditor),this.cellEditorPopupWrapper=e.destroyBean(this.cellEditorPopupWrapper),Mi(this.cellEditorGui),this.cellCtrl.disableEditorTooltipFeature(),this.cellEditorGui=null,this.editorVersion++}refreshCellRenderer(e){if(this.cellRenderer?.refresh==null||this.cellRendererClass!==e.componentClass)return!1;const t=this.cellRenderer.refresh(e.params);return t===!0||t===void 0}createCellRendererInstance(e){const t=this.rendererVersion,n=r=>s=>{if(this.rendererVersion!==t||!this.isAlive())return;const l=r.newAgStackInstance(),u=this.afterCellRendererCreated.bind(this,t,r.componentClass);l?.then(u)},{animationFrameSvc:i}=this.beans;let o;if(i?.active&&this.firstRender?o=(r,s=!1)=>{i.createTask(n(r),this.rowNode.rowIndex,"p2",r.componentFromFramework,s)}:o=r=>n(r)(),e.params?.deferRender&&!this.cellCtrl.rowNode.group){const{loadingComp:r,onReady:s}=this.cellCtrl.getDeferLoadingCellRenderer();r&&(o(r),s.then(()=>o(e,!0)))}else o(e)}afterCellRendererCreated(e,t,n){if(!this.isAlive()||e!==this.rendererVersion){this.beans.context.destroyBean(n);return}this.cellRenderer=n,this.cellRendererClass=t;const o=n.getGui();if(this.cellRendererGui=o,o!=null){const r=this.getParentOfValue();wn(r),r.appendChild(o)}}afterCellEditorCreated(e,t,n,i,o){const r=e!==this.editorVersion,{context:s}=this.beans;if(r){s.destroyBean(t);return}if(t.isCancelBeforeStart?.()){s.destroyBean(t),this.cellCtrl.stopEditing(!0);return}if(!t.getGui){se(97,{colId:this.column.getId()}),s.destroyBean(t);return}this.cellEditor=t,this.cellEditorGui=t.getGui();const l=i||t.isPopup?.();l?this.addPopupCellEditor(n,o):this.addInCellEditor(),this.refreshEditStyles(!0,l),t.afterGuiAttached?.(),this.cellCtrl.enableEditorTooltipFeature(t),this.cellCtrl.cellEditorAttached()}refreshEditStyles(e,t){const{cellCssManager:n}=this;n.toggleCss("ag-cell-inline-editing",e&&!t),n.toggleCss("ag-cell-popup-editing",e&&!!t),n.toggleCss("ag-cell-not-inline-editing",!e||!!t)}addInCellEditor(){const{eCell:e}=this;e.contains(At(this.beans))&&e.focus(),this.destroyRenderer(),this.refreshWrapper(!0),wn(this.getParentOfValue()),this.cellEditorGui&&this.getParentOfValue().appendChild(this.cellEditorGui)}addPopupCellEditor(e,t){const{gos:n,context:i,popupSvc:o,editSvc:r}=this.beans;n.get("editType")==="fullRow"&&se(98);const s=this.cellEditorPopupWrapper=i.createBean(r.createPopupEditorWrapper(e)),{cellEditor:a,cellEditorGui:l,eCell:u,rowNode:h,column:f,cellCtrl:p}=this,m=s.getGui();l&&m.appendChild(l);const v=n.get("stopEditingWhenCellsLoseFocus"),w=t??a.getPopupPosition?.()??"over",b=n.get("enableRtl"),y={ePopup:m,additionalParams:{column:f,rowNode:h},type:"popupCellEditor",eventSource:u,position:w,alignSide:b?"right":"left",keepWithinBounds:!0},R=o.positionPopupByComponent.bind(o,y),S=o.addPopup({modal:v,eChild:m,closeOnEsc:!0,closedCallback:x=>{p.onPopupEditorClosed(x)},anchorToElement:u,positionCallback:R,ariaOwns:u});S&&(this.hideEditorPopup=S.hideFunc)}detach(){this.getGui().remove()}destroy(){this.destroyRenderer(),this.destroyEditor(),this.removeControls(),super.destroy()}},FN=class extends yt{constructor(e,t,n){super(),this.cellComps=new Map,this.beans=t,this.rowCtrl=e;const i=rn({tag:"div",role:"row",attrs:{"comp-id":`${this.getCompId()}`}});this.setInitialStyle(i,n),this.setTemplateFromElement(i);const o=i.style;this.domOrder=this.rowCtrl.getDomOrder();const r={setDomOrder:s=>this.domOrder=s,setCellCtrls:s=>this.setCellCtrls(s),showFullWidth:s=>this.showFullWidth(s),getFullWidthCellRenderer:()=>this.fullWidthCellRenderer,getFullWidthCellRendererParams:()=>this.fullWidthCellRendererParams,toggleCss:(s,a)=>this.toggleCss(s,a),setUserStyles:s=>hc(i,s),setTop:s=>o.top=s,setTransform:s=>o.transform=s,setRowIndex:s=>i.setAttribute("row-index",s),setRowId:s=>i.setAttribute("row-id",s),setRowBusinessKey:s=>i.setAttribute("row-business-key",s),refreshFullWidth:s=>{const a=s();return this.fullWidthCellRendererParams=a,this.fullWidthCellRenderer?.refresh?.(a)??!1}};e.setComp(r,this.getGui(),n,void 0),this.addDestroyFunc(()=>{e.unsetComp(n)})}setInitialStyle(e,t){const n=this.rowCtrl.getInitialTransform(t);if(n)e.style.setProperty("transform",n);else{const i=this.rowCtrl.getInitialRowTop(t);i&&e.style.setProperty("top",i)}}showFullWidth(e){const t=i=>{if(this.isAlive()){const o=i.getGui();this.getGui().appendChild(o),this.rowCtrl.setupDetailRowAutoHeight(o),this.setFullWidthRowComp(i,e.params)}else this.beans.context.destroyBean(i)};e.newAgStackInstance().then(t)}setCellCtrls(e){const t=new Map(this.cellComps);for(const n of e){const i=n.instanceId;this.cellComps.has(i)?t.delete(i):this.newCellComp(n)}this.destroyCells(t),this.ensureDomOrder(e)}ensureDomOrder(e){if(!this.domOrder)return;const t=[];for(const n of e){const i=this.cellComps.get(n.instanceId);i&&t.push(i.getGui())}BS(this.getGui(),t)}newCellComp(e){const t=this.beans.editSvc?.isEditing(e,{withOpenEditor:!0})??!1,n=new RN(this.beans,e,this.rowCtrl.printLayout,this.getGui(),t);this.cellComps.set(e.instanceId,n),this.getGui().appendChild(n.getGui())}destroy(){super.destroy(),this.destroyCells(this.cellComps)}setFullWidthRowComp(e,t){this.fullWidthCellRenderer=e,this.fullWidthCellRendererParams=t,this.addDestroyFunc(()=>{this.fullWidthCellRenderer=this.beans.context.destroyBean(this.fullWidthCellRenderer),this.fullWidthCellRendererParams=void 0})}destroyCells(e){for(const t of e.values()){if(!t)continue;const n=t.cellCtrl.instanceId;this.cellComps.get(n)===t&&(t.detach(),t.destroy(),this.cellComps.delete(n))}}};function xN(e,t,n){const i=!!n.gos.get("enableCellSpan")&&!!t.getSpannedRowCtrls,o={tag:"div",ref:"eContainer",cls:yR(e),role:"rowgroup"};if(t.type==="center"||i){const r={tag:"div",ref:"eSpannedContainer",cls:`ag-spanning-container ${cN(e)}`,role:"presentation"};return o.role="presentation",{tag:"div",ref:"eViewport",cls:`ag-viewport ${bR(e)}`,role:"rowgroup",children:[o,i?r:null]}}return o}var PN=class extends yt{constructor(e){super(),this.eViewport=de,this.eContainer=de,this.eSpannedContainer=de,this.rowCompsNoSpan={},this.rowCompsWithSpan={},this.name=e?.name,this.options=Tc(this.name)}postConstruct(){this.setTemplate(xN(this.name,this.options,this.beans));const e={setHorizontalScroll:n=>this.eViewport.scrollLeft=n,setViewportHeight:n=>this.eViewport.style.height=n,setRowCtrls:({rowCtrls:n})=>this.setRowCtrls(n),setSpannedRowCtrls:n=>this.setRowCtrls(n,!0),setDomOrder:n=>{this.domOrder=n},setContainerWidth:n=>{this.eContainer.style.width=n,this.eSpannedContainer&&(this.eSpannedContainer.style.width=n)},setOffsetTop:n=>{const i=`translateY(${n})`;this.eContainer.style.transform=i,this.eSpannedContainer&&(this.eSpannedContainer.style.transform=i)}};this.createManagedBean(new wN(this.name)).setComp(e,this.eContainer,this.eSpannedContainer,this.eViewport)}destroy(){this.setRowCtrls([]),this.setRowCtrls([],!0),super.destroy(),this.lastPlacedElement=null}setRowCtrls(e,t){const{beans:n,options:i}=this,o=t?this.eSpannedContainer:this.eContainer,r=t?{...this.rowCompsWithSpan}:{...this.rowCompsNoSpan},s={};t?this.rowCompsWithSpan=s:this.rowCompsNoSpan=s,this.lastPlacedElement=null;const a=[];for(const l of e){const u=l.instanceId,h=r[u];let f;if(h)f=h,delete r[u];else{if(!l.rowNode.displayed)continue;f=new FN(l,n,i.type)}s[u]=f,a.push([f,!h])}this.removeOldRows(Object.values(r)),this.addRowNodes(a,o)}addRowNodes(e,t){const{domOrder:n}=this;for(const[i,o]of e){const r=i.getGui();n?this.ensureDomOrder(r,t):o&&t.appendChild(r)}}removeOldRows(e){for(const t of e)t.getGui().remove(),t.destroy()}ensureDomOrder(e,t){NS(t,e,this.lastPlacedElement),this.lastPlacedElement=e}},EN={selector:"AG-ROW-CONTAINER",component:PN};function Ac(e,t){return t.map(n=>{const i=`e${n[0].toUpperCase()+n.substring(1)}RowContainer`;return e[i]={name:n},{tag:"ag-row-container",ref:i,attrs:{name:n}}})}function DN(e){const t={},n={tag:"div",ref:"eGridRoot",cls:"ag-root ag-unselectable",children:[{tag:"ag-header-root"},{tag:"div",ref:"eTop",cls:"ag-floating-top",role:"presentation",children:Ac(t,["topLeft","topCenter","topRight","topFullWidth"])},{tag:"div",ref:"eBody",cls:"ag-body",role:"presentation",children:[{tag:"div",ref:"eBodyViewport",cls:"ag-body-viewport",role:"presentation",children:Ac(t,["left","center","right","fullWidth"])},{tag:"ag-fake-vertical-scroll"}]},{tag:"div",ref:"eStickyTop",cls:"ag-sticky-top",role:"presentation",children:Ac(t,["stickyTopLeft","stickyTopCenter","stickyTopRight","stickyTopFullWidth"])},{tag:"div",ref:"eStickyBottom",cls:"ag-sticky-bottom",role:"presentation",children:Ac(t,["stickyBottomLeft","stickyBottomCenter","stickyBottomRight","stickyBottomFullWidth"])},{tag:"div",ref:"eBottom",cls:"ag-floating-bottom",role:"presentation",children:Ac(t,["bottomLeft","bottomCenter","bottomRight","bottomFullWidth"])},{tag:"ag-fake-horizontal-scroll"},e?{tag:"ag-overlay-wrapper"}:null]};return{paramsMap:t,elementParams:n}}var TN=class extends yt{constructor(){super(...arguments),this.eGridRoot=de,this.eBodyViewport=de,this.eStickyTop=de,this.eStickyBottom=de,this.eTop=de,this.eBottom=de,this.eBody=de}postConstruct(){const{overlays:e,rangeSvc:t}=this.beans,n=e?.getOverlayWrapperSelector(),{paramsMap:i,elementParams:o}=DN(!!n);this.setTemplate(o,[...n?[n]:[],Q2,X2,j2,EN],i);const r=(a,l)=>{const u=`${a}px`;l.style.minHeight=u,l.style.height=u},s={setRowAnimationCssOnBodyViewport:(a,l)=>this.setRowAnimationCssOnBodyViewport(a,l),setColumnCount:a=>pL(this.getGui(),a),setRowCount:a=>hL(this.getGui(),a),setTopHeight:a=>r(a,this.eTop),setBottomHeight:a=>r(a,this.eBottom),setTopInvisible:a=>this.eTop.classList.toggle("ag-invisible",a),setBottomInvisible:a=>this.eBottom.classList.toggle("ag-invisible",a),setStickyTopHeight:a=>this.eStickyTop.style.height=a,setStickyTopTop:a=>this.eStickyTop.style.top=a,setStickyTopWidth:a=>this.eStickyTop.style.width=a,setStickyBottomHeight:a=>{this.eStickyBottom.style.height=a,this.eStickyBottom.classList.toggle("ag-invisible",a==="0px")},setStickyBottomBottom:a=>this.eStickyBottom.style.bottom=a,setStickyBottomWidth:a=>this.eStickyBottom.style.width=a,setColumnMovingCss:(a,l)=>this.toggleCss(a,l),updateLayoutClasses:(a,l)=>{const u=[this.eBodyViewport.classList,this.eBody.classList];for(const h of u)h.toggle(io.AUTO_HEIGHT,l.autoHeight),h.toggle(io.NORMAL,l.normal),h.toggle(io.PRINT,l.print);this.toggleCss(io.AUTO_HEIGHT,l.autoHeight),this.toggleCss(io.NORMAL,l.normal),this.toggleCss(io.PRINT,l.print)},setAlwaysVerticalScrollClass:(a,l)=>this.eBodyViewport.classList.toggle(FR,l),registerBodyViewportResizeListener:a=>{const l=_r(this.beans,this.eBodyViewport,a);this.addDestroyFunc(()=>l())},setPinnedTopBottomOverflowY:a=>this.eTop.style.overflowY=this.eBottom.style.overflowY=a,setCellSelectableCss:(a,l)=>{for(const u of[this.eTop,this.eBodyViewport,this.eBottom])u.classList.toggle(a,l)},setBodyViewportWidth:a=>this.eBodyViewport.style.width=a,setGridRootRole:a=>Lr(this.eGridRoot,a)};this.ctrl=this.createManagedBean(new SN),this.ctrl.setComp(s,this.getGui(),this.eBodyViewport,this.eTop,this.eBottom,this.eStickyTop,this.eStickyBottom),(t&&nr(this.gos)||wc(this.gos))&&dL(this.getGui(),!0)}setRowAnimationCssOnBodyViewport(e,t){const n=this.eBodyViewport.classList;n.toggle("ag-row-animation",t),n.toggle("ag-row-no-animation",!t)}getFocusableContainerName(){return"gridBody"}},AN={selector:"AG-GRID-BODY",component:TN},Cm={TAB_GUARD:"ag-tab-guard",TAB_GUARD_TOP:"ag-tab-guard-top",TAB_GUARD_BOTTOM:"ag-tab-guard-bottom"},IN=class extends Vn{constructor(e,t){super(),this.stopPropagationCallbacks=t,this.skipTabGuardFocus=!1,this.forcingFocusOut=!1,this.allowFocus=!1;const{comp:n,eTopGuard:i,eBottomGuard:o,focusTrapActive:r,forceFocusOutWhenTabGuardsAreEmpty:s,isFocusableContainer:a,focusInnerElement:l,onFocusIn:u,onFocusOut:h,shouldStopEventPropagation:f,onTabKeyDown:p,handleKeyDown:m,isEmpty:v,eFocusableElement:w}=e;this.comp=n,this.eTopGuard=i,this.eBottomGuard=o,this.providedFocusInnerElement=l,this.eFocusableElement=w,this.focusTrapActive=!!r,this.forceFocusOutWhenTabGuardsAreEmpty=!!s,this.isFocusableContainer=!!a,this.providedFocusIn=u,this.providedFocusOut=h,this.providedShouldStopEventPropagation=f,this.providedOnTabKeyDown=p,this.providedHandleKeyDown=m,this.providedIsEmpty=v}postConstruct(){this.createManagedBean(new V0(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():Os(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=on(this.beans),n=Os(t.body,null,!0),i=n.indexOf(e?this.eTopGuard:this.eBottomGuard);if(i===-1)return;let o,r;e?(o=0,r=i):(o=i+1,r=n.length);const s=n.slice(o,r),a=this.gos.get("tabIndex");s.sort((l,u)=>{const h=Number.parseInt(l.getAttribute("tabindex")||"0"),f=Number.parseInt(u.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 n=this.getNextFocusableElement(e.shiftKey);t&&setTimeout(()=>this.activateTabGuards(),0),n&&(n.focus(),e.preventDefault())}focusInnerElement(e=!1){const t=Os(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 Bs(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}},MN=class extends Vn{constructor(e,t){super(),this.comp=e,this.stopPropagationCallbacks=t}initialiseTabGuard(e){this.eTopGuard=this.createTabGuard("top"),this.eBottomGuard=this.createTabGuard("bottom"),this.eFocusableElement=this.comp.getFocusableElement();const{eTopGuard:t,eBottomGuard:n,eFocusableElement:i,stopPropagationCallbacks:o}=this,r=[t,n],s={setTabIndex:y=>{for(const R of r)y==null?R.removeAttribute("tabindex"):R.setAttribute("tabindex",y)}};this.addTabGuards(t,n);const{focusTrapActive:a=!1,onFocusIn:l,onFocusOut:u,focusInnerElement:h,handleKeyDown:f,onTabKeyDown:p,shouldStopEventPropagation:m,isEmpty:v,forceFocusOutWhenTabGuardsAreEmpty:w,isFocusableContainer:b}=e;this.tabGuardCtrl=this.createManagedBean(new IN({comp:s,focusTrapActive:a,eTopGuard:t,eBottomGuard:n,eFocusableElement:i,onFocusIn:l,onFocusOut:u,focusInnerElement:h,handleKeyDown:f,onTabKeyDown:p,shouldStopEventPropagation:m,isEmpty:v,forceFocusOutWhenTabGuardsAreEmpty:w,isFocusableContainer:b},o))}getTabGuardCtrl(){return this.tabGuardCtrl}createTabGuard(e){const t=on(this.beans).createElement("div"),n=e==="top"?Cm.TAB_GUARD_TOP:Cm.TAB_GUARD_BOTTOM;return t.classList.add(Cm.TAB_GUARD,n),Lr(t,"presentation"),t}addTabGuards(e,t){const n=this.eFocusableElement;n.prepend(e),n.append(t)}removeAllChildrenExceptTabGuards(){const e=[this.eTopGuard,this.eBottomGuard];wn(this.comp.getFocusableElement()),this.addTabGuards(...e)}forceFocusOutOfContainer(e=!1){this.tabGuardCtrl.forceFocusOutOfContainer(e)}appendChild(e,t,n){mg(t)||(t=t.getGui());const{eBottomGuard:i}=this;i?i.before(t):e(t,n)}destroy(){const{eTopGuard:e,eBottomGuard:t}=this;Mi(e),Mi(t),super.destroy()}},kN=class extends Ka{initialiseTabGuard(e,t){this.tabGuardFeature=this.createManagedBean(new MN(this,t)),this.tabGuardFeature.initialiseTabGuard(e)}forceFocusOutOfContainer(e=!1){this.tabGuardFeature.forceFocusOutOfContainer(e)}appendChild(e,t){this.tabGuardFeature.appendChild(super.appendChild.bind(this),e,t)}},xR=class extends kN{initialiseTabGuard(e){super.initialiseTabGuard(e,z0)}},PR=(e,t)=>oR(e,()=>Ns(e.getGui(),t,!1,!0)),ER=e=>e?.getFocusableContainerName()??"external",LN=e=>e==null?"external":typeof e=="string"?e:"gridBody",_N=class extends X{constructor(){super(...arguments),this.additionalFocusableContainers=new Set}setComp(e,t,n){this.view=e,this.eGridHostDiv=t,this.eGui=n,this.eGui.setAttribute("grid-id",this.beans.context.getId());const{dragAndDrop:i,ctrlsSvc:o}=this.beans;i?.registerGridDropTarget(()=>this.eGui,this),this.createManagedBean(new um(this.view)),this.view.setRtlClass(this.gos.get("enableRtl")?"ag-rtl":"ag-ltr");const r=_r(this.beans,this.eGridHostDiv,this.onGridSizeChanged.bind(this));this.addDestroyFunc(()=>r()),o.register("gridCtrl",this)}isDetailGrid(){return H0(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;e===!1?t.setCursor(null):t.setCursor(e===1?"ew-resize":"ns-resize")}disableUserSelect(e){this.view.setUserSelect(e?"none":null)}focusNextInnerContainer(e){const t=this.getFocusableContainers(),{indexWithFocus:n,nextIndex:i}=this.getNextFocusableIndex(t,e),o=n===-1?e?t.length-1:0:i,{gos:r,beans:{focusSvc:s,navigation:a}}=this,l=r.getCallback("tabToNextGridContainer");if(l){const u=s.getDefaultTabToNextGridContainerTarget({backwards:e,focusableContainers:t,nextIndex:o}),h=ER(t[o]),f=u==null&&h==="gridBody"?"gridBody":LN(u),p=l({backwards:e,previousContainer:ER(t[n]),nextContainer:f,defaultTarget:u});if(p!==void 0){if(typeof p=="boolean")return p;if(typeof p=="string"){if(p==="gridBody")return this.focusGridBodyDefault(e)||void 0;const m=t.find(v=>v.getFocusableContainerName()===p);if(!m){qS(`tabToNextGridContainer - ${p} container not found`);return}return PR(m,e)?!0:void 0}return F2(p)?s.focusHeaderPosition({headerPosition:p})||void 0:(a?.ensureCellVisible(p),s.setFocusedCell({...p,forceBrowserFocus:!0}),s.isCellFocused(p)||void 0)}}return this.focusNextInnerContainerDefault({backwards:e,focusableContainers:t,indexWithFocus:n,nextIndex:o})||void 0}focusInnerElement(e){const{gos:t,beans:n,beans:{focusSvc:i,visibleCols:o}}=this;if(t.getCallback("focusGridInnerElement")?.({fromBottom:!!e}))return!0;const s=this.getFocusableContainers();if(e)return this.focusNextInnerContainerDefault({backwards:!0,focusableContainers:s,indexWithFocus:s.length,nextIndex:s.length-1})?!0:i.focusGridView({column:Pt(o.allCols),backwards:!0});const a=o.allCols;if(t.get("headerHeight")===0||no(n)){if(i.focusGridView({column:a[0],backwards:e}))return!0;for(let l=1;l<s.length;l++)if(Ns(s[l].getGui(),e))return!0;return!1}return i.focusFirstHeader()}forceFocusOutOfContainer(e=!1){this.view.forceFocusOutOfContainer(e)}isFocusInsideGridBody(){const e=this.getFocusableContainers(),{indexWithFocus:t}=this.getNextFocusableIndex(e);return e[t]?.getFocusableContainerName()==="gridBody"}addFocusableContainer(e){this.additionalFocusableContainers.add(e)}removeFocusableContainer(e){this.additionalFocusableContainers.delete(e)}allowFocusForNextCoreContainer(e){const t=this.view.getFocusableContainers(),{indexWithFocus:n,nextIndex:i}=this.getNextFocusableIndex(t,e);this.focusNextInnerContainerDefault({backwards:!!e,focusableContainers:t,indexWithFocus:n,nextIndex:i})||this.forceFocusOutOfContainer(e)}isFocusable(){const e=this.beans;return!Pc(e)||!no(e)||!!e.sideBar?.comp?.isDisplayed()}getNextFocusableIndex(e,t){const n=At(this.beans),i=e.findIndex(o=>o.getGui().contains(n));return{indexWithFocus:i,nextIndex:i+(t?-1:1)}}focusGridBodyDefault(e){const{gos:t,beans:n,beans:{focusSvc:i,visibleCols:{allCols:o}}}=this;return e?i.focusGridView({column:Pt(o),backwards:!0}):t.get("headerHeight")===0||no(n)?i.focusGridView({column:o[0]}):i.focusFirstHeader()}focusNextInnerContainerDefault(e){const{backwards:t,focusableContainers:n,indexWithFocus:i}=e,o=t?-1:1;for(let r=e.nextIndex;r>=0&&r<n.length;r+=o){const s=n[r];if(s.getFocusableContainerName()==="gridBody"&&(i===-1||(t?i>r:i<r))){if(this.focusGridBodyDefault(t))return!0;continue}if(PR(s,t))return!0}return!1}getFocusableContainers(){return[...this.view.getFocusableContainers(),...this.additionalFocusableContainers]}destroy(){this.additionalFocusableContainers.clear(),super.destroy()}},ON=class extends xR{constructor(e){super(),this.gridBody=de,this.gridHeaderDropZones=de,this.sideBar=de,this.statusBar=de,this.pagination=de,this.rootWrapperBody=de,this.eGridDiv=e}postConstruct(){const e={destroyGridUi:()=>this.destroyBean(this),setRtlClass:r=>this.addCss(r),forceFocusOutOfContainer:this.forceFocusOutOfContainer.bind(this),updateLayoutClasses:this.updateLayoutClasses.bind(this),getFocusableContainers:this.getFocusableContainers.bind(this),setUserSelect:r=>{this.getGui().style.userSelect=r??"",this.getGui().style.webkitUserSelect=r??""},setCursor:r=>{this.getGui().style.cursor=r??""}},t=this.createManagedBean(new _N),n=t.getOptionalSelectors(),i=this.createTemplate(n),o=[AN,...Object.values(n).filter(r=>!!r)];this.setTemplate(i,o),t.setComp(e,this.eGridDiv,this.getGui()),this.insertGridIntoDom(),this.initialiseTabGuard({onTabKeyDown:()=>{},focusInnerElement:r=>t.focusInnerElement(r),forceFocusOutWhenTabGuardsAreEmpty:!0,isEmpty:()=>!t.isFocusable()})}insertGridIntoDom(){const e=this.getGui();this.eGridDiv.appendChild(e),this.addDestroyFunc(()=>{e.remove(),Nr(this.gos,"Grid removed from DOM")})}updateLayoutClasses(e,t){const n=this.rootWrapperBody.classList,{AUTO_HEIGHT:i,NORMAL:o,PRINT:r}=io,{autoHeight:s,normal:a,print:l}=t;n.toggle(i,s),n.toggle(o,a),n.toggle(r,l),this.toggleCss(i,s),this.toggleCss(o,a),this.toggleCss(r,l)}createTemplate(e){const t=e.gridHeaderDropZonesSelector?{tag:"ag-grid-header-drop-zones",ref:"gridHeaderDropZones"}:null,n=e.sideBarSelector?{tag:"ag-side-bar",ref:"sideBar"}:null,i=e.statusBarSelector?{tag:"ag-status-bar",ref:"statusBar"}:null,o=e.watermarkSelector?{tag:"ag-watermark"}:null,r=e.paginationSelector?{tag:"ag-pagination",ref:"pagination"}:null;return{tag:"div",cls:"ag-root-wrapper",role:"presentation",children:[t,{tag:"div",ref:"rootWrapperBody",cls:"ag-root-wrapper-body",role:"presentation",children:[{tag:"ag-grid-body",ref:"gridBody"},n]},i,r,o]}}getFocusableElement(){return this.rootWrapperBody}forceFocusOutOfContainer(e=!1){if(!e&&this.pagination?.isDisplayed()){this.pagination.forceFocusOutOfContainer(e);return}super.forceFocusOutOfContainer(e)}getFocusableContainers(){const e=[...this.gridHeaderDropZones?.getFocusableContainers?.()??[],this.gridBody];for(const t of[this.sideBar,this.statusBar,this.pagination])t&&e.push(t);return e.filter(t=>ki(t.getGui()))}},qe=(e,t)=>{for(const n of Object.keys(t))t[n]=e;return t},DR={dispatchEvent:"CommunityCore",...qe("CommunityCore",{destroy:0,getGridId:0,getGridOption:0,isDestroyed:0,setGridOption:0,updateGridOptions:0,isModuleRegistered:0}),...qe("GridState",{getState:0,setState:0}),...qe("SharedRowSelection",{setNodesSelected:0,selectAll:0,deselectAll:0,selectAllFiltered:0,deselectAllFiltered:0,selectAllOnCurrentPage:0,deselectAllOnCurrentPage:0,getSelectedNodes:0,getSelectedRows:0}),...qe("RowApi",{redrawRows:0,setRowNodeExpanded:0,getRowNode:0,addRenderedRowListener:0,getRenderedNodes:0,forEachNode:0,getFirstDisplayedRowIndex:0,getLastDisplayedRowIndex:0,getDisplayedRowAtIndex:0,getDisplayedRowCount:0}),...qe("ScrollApi",{getVerticalPixelRange:0,getHorizontalPixelRange:0,ensureColumnVisible:0,ensureIndexVisible:0,ensureNodeVisible:0}),...qe("KeyboardNavigation",{getFocusedCell:0,clearFocusedCell:0,setFocusedCell:0,tabToNextCell:0,tabToPreviousCell:0,setFocusedHeader:0}),...qe("EventApi",{addEventListener:0,addGlobalListener:0,removeEventListener:0,removeGlobalListener:0}),...qe("ValueCache",{expireValueCache:0}),...qe("CellApi",{getCellValue:0}),...qe("SharedMenu",{showColumnMenu:0,hidePopupMenu:0}),...qe("Sort",{onSortChanged:0}),...qe("PinnedRow",{getPinnedTopRowCount:0,getPinnedBottomRowCount:0,getPinnedTopRow:0,getPinnedBottomRow:0,forEachPinnedRow:0}),...qe("Overlay",{showLoadingOverlay:0,showNoRowsOverlay:0,hideOverlay:0}),...qe("RenderApi",{setGridAriaProperty:0,refreshCells:0,refreshHeader:0,isAnimationFrameQueueEmpty:0,flushAllAnimationFrames:0,getSizesForCurrentTheme:0,getCellRendererInstances:0}),...qe("HighlightChanges",{flashCells:0}),...qe("RowDrag",{addRowDropZone:0,removeRowDropZone:0,getRowDropZoneParams:0,getRowDropPositionIndicator:0,setRowDropPositionIndicator:0}),...qe("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}),...qe("ColumnAutoSize",{sizeColumnsToFit:0,autoSizeColumns:0,autoSizeAllColumns:0}),...qe("ColumnGroup",{setColumnGroupOpened:0,getColumnGroup:0,getProvidedColumnGroup:0,getDisplayNameForColumnGroup:0,getColumnGroupState:0,setColumnGroupState:0,resetColumnGroupState:0,getLeftDisplayedColumnGroups:0,getCenterDisplayedColumnGroups:0,getRightDisplayedColumnGroups:0,getAllDisplayedColumnGroups:0}),...qe("ColumnMove",{moveColumnByIndex:0,moveColumns:0}),...qe("ColumnResize",{setColumnWidths:0}),...qe("ColumnHover",{isColumnHovered:0}),...qe("EditCore",{getCellEditorInstances:0,getEditingCells:0,getEditRowValues:0,stopEditing:0,startEditingCell:0,isEditing:0,validateEdit:0}),...qe("BatchEdit",{startBatchEdit:0,cancelBatchEdit:0,commitBatchEdit:0,isBatchEditing:0}),...qe("UndoRedoEdit",{undoCellEditing:0,redoCellEditing:0,getCurrentUndoSize:0,getCurrentRedoSize:0}),...qe("FilterCore",{isAnyFilterPresent:0,onFilterChanged:0}),...qe("ColumnFilter",{isColumnFilterPresent:0,getColumnFilterInstance:0,destroyFilter:0,setFilterModel:0,getFilterModel:0,getColumnFilterModel:0,setColumnFilterModel:0,showColumnFilter:0,hideColumnFilter:0,getColumnFilterHandler:0,doFilterAction:0}),...qe("QuickFilter",{isQuickFilterPresent:0,getQuickFilter:0,resetQuickFilter:0}),...qe("Find",{findGetActiveMatch:0,findGetTotalMatches:0,findGoTo:0,findNext:0,findPrevious:0,findGetNumMatches:0,findGetParts:0,findClearActive:0,findRefresh:0}),...qe("Pagination",{paginationIsLastPageFound:0,paginationGetPageSize:0,paginationGetCurrentPage:0,paginationGetTotalPages:0,paginationGetRowCount:0,paginationGoToNextPage:0,paginationGoToPreviousPage:0,paginationGoToFirstPage:0,paginationGoToLastPage:0,paginationGoToPage:0}),...qe("CsrmSsrmSharedApi",{expandAll:0,collapseAll:0,resetRowGroupExpansion:0}),...qe("SsrmInfiniteSharedApi",{setRowCount:0,getCacheBlockState:0,isLastRowIndexKnown:0}),...qe("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}),...qe("CsvExport",{getDataAsCsv:0,exportDataAsCsv:0}),...qe("InfiniteRowModel",{refreshInfiniteCache:0,purgeInfiniteCache:0,getInfiniteRowCount:0}),...qe("AdvancedFilter",{getAdvancedFilterModel:0,setAdvancedFilterModel:0,showAdvancedFilterBuilder:0,hideAdvancedFilterBuilder:0}),...qe("IntegratedCharts",{getChartModels:0,getChartRef:0,getChartImageDataURL:0,downloadChart:0,openChartToolPanel:0,closeChartToolPanel:0,createRangeChart:0,createPivotChart:0,createCrossFilterChart:0,updateChart:0,restoreChart:0}),...qe("Clipboard",{copyToClipboard:0,cutToClipboard:0,copySelectedRowsToClipboard:0,copySelectedRangeToClipboard:0,copySelectedRangeDown:0,pasteFromClipboard:0}),...qe("ExcelExport",{getDataAsExcel:0,exportDataAsExcel:0,getSheetDataForExcel:0,getMultipleSheetsAsExcel:0,exportMultipleSheetsAsExcel:0}),...qe("SharedMasterDetail",{addDetailGridInfo:0,removeDetailGridInfo:0,getDetailGridInfo:0,forEachDetailGridInfo:0}),...qe("ContextMenu",{showContextMenu:0}),...qe("ColumnMenu",{showColumnChooser:0,hideColumnChooser:0}),...qe("CellSelection",{getCellRanges:0,addCellRange:0,clearRangeSelection:0,clearCellSelection:0}),...qe("SharedRowGrouping",{setRowGroupColumns:0,removeRowGroupColumns:0,addRowGroupColumns:0,getRowGroupColumns:0,moveRowGroupColumn:0}),...qe("SharedAggregation",{addAggFuncs:0,clearAggFuncs:0,setColumnAggFunc:0}),...qe("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}),...qe("ServerSideRowModelApi",{getServerSideSelectionState:0,setServerSideSelectionState:0,applyServerSideTransaction:0,applyServerSideTransactionAsync:0,applyServerSideRowData:0,retryServerSideLoads:0,flushServerSideAsyncTransactions:0,refreshServerSide:0,getServerSideGroupLevelState:0,onRowHeightChanged:0,resetRowHeights:0}),...qe("SideBar",{isSideBarVisible:0,setSideBarVisible:0,setSideBarPosition:0,openToolPanel:0,closeToolPanel:0,getOpenedToolPanel:0,refreshToolPanel:0,isToolPanelShowing:0,getToolPanelInstance:0,getSideBar:0}),...qe("StatusBar",{getStatusPanel:0}),...qe("AiToolkit",{getStructuredSchema:0})},wm={isDestroyed:()=>!0,destroy(){},preConstruct(){},postConstruct(){},preWireBeans(){},wireBeans(){}},NN=(e,t)=>e.eventSvc.dispatchEvent(t),TR=class{};Reflect.defineProperty(TR,"name",{value:"GridApi"});var BN=class extends X{constructor(){super(),this.beanName="apiFunctionSvc",this.api=new TR,this.fns={...wm,dispatchEvent:NN},this.preDestroyLink="";const{api:e}=this;for(const t of Object.keys(DR))e[t]=this.makeApi(t)[t]}postConstruct(){this.preDestroyLink=this.beans.frameworkOverrides.getDocLink("grid-lifecycle/#grid-pre-destroyed")}addFunction(e,t){const{fns:n,beans:i}=this;n!==wm&&(n[e]=i?.validation?.validateApiFunction(e,t)??t)}makeApi(e){return{[e]:(...t)=>{const{beans:n,fns:{[e]:i}}=this;return i?i(n,...t):this.apiNotFound(e)}}}apiNotFound(e){const{beans:t,gos:n,preDestroyLink:i}=this;if(!t)se(26,{fnName:e,preDestroyLink:i});else{const o=DR[e];n.assertModuleRegistered(o,`api.${e}`)&&se(27,{fnName:e,module:o})}}destroy(){super.destroy(),this.fns=wm,this.beans=null}};function GN(e){return e.context.getId()}function HN(e){e.gridDestroySvc.destroy()}function VN(e){return e.gridDestroySvc.destroyCalled}function WN(e,t){return e.gos.get(t)}function zN(e,t,n){AR(e,{[t]:n})}function AR(e,t){e.gos.updateGridOptions({options:t})}function UN(e,t){const n=t.replace(/Module$/,"");return e.gos.isModuleRegistered(n)}function $N(e,t,n){const i=ii(e,t,n);if(i){const{className:r}=i;if(typeof r=="string"&&r.includes("ag-icon")||typeof r=="object"&&r["ag-icon"])return i}const o=rn({tag:"span"});return o.appendChild(i),o}function ii(e,t,n){let i=null;e==="smallDown"?se(262):e==="smallLeft"?se(263):e==="smallRight"&&se(264);const o=n?.getColDef().icons;if(o&&(i=o[e]),t.gos&&!i){const r=t.gos.get("icons");r&&(i=r[e])}if(i){let r;if(typeof i=="function")r=i();else if(typeof i=="string")r=i;else{se(38,{iconName:e});return}if(typeof r=="string")return pg(r);if(mg(r))return r;se(133,{iconName:e});return}else{const r=t.registry.getIcon(e);return r||t.validation?.validateIcon(e),rn({tag:"span",cls:`ag-icon ag-icon-${r??e}`,role:"presentation",attrs:{unselectable:"on"}})}}var jN={tag:"div",cls:"ag-drag-handle ag-row-drag",attrs:{draggable:"true"}},KN=class extends yt{constructor(e,t,n){super(jN),this.rowNode=e,this.column=t,this.eCell=n}postConstruct(){this.getGui().appendChild(ii("rowDrag",this.beans,null)),this.addGuiEventListener("mousedown",t=>{t.stopPropagation()}),this.addDragSource(),this.checkVisibility()}addDragSource(){this.addGuiEventListener("dragstart",this.onDragStart.bind(this))}onDragStart(e){const{rowNode:t,column:n,eCell:i,gos:o}=this,r=n.getColDef().dndSourceOnRowDrag,s=e.dataTransfer;if(s.setDragImage(i,0,0),r){const a=We(o,{rowNode:t,dragEvent:e});r(a)}else try{const a=JSON.stringify(t.data);s.setData("application/json",a),s.setData("text/plain",a)}catch{}}checkVisibility(){const e=this.column.isDndSource(this.rowNode);this.setDisplayed(e)}},qN=".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)}",QN={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"}]}]},YN=class extends yt{constructor(){super(),this.dragSource=null,this.eIcon=de,this.eLabel=de,this.eGhost=de,this.registerCSS(qN)}postConstruct(){const e=t=>$N(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(QN),this.beans.environment.applyThemeClasses(this.eGhost)}destroy(){this.dragSource=null,super.destroy()}setIcon(e,t){const{eGhost:n,eIcon:i,dragSource:o,dropIconMap:r,gos:s}=this;wn(i);let a=null;e||(e=o?.getDefaultIconName?o.getDefaultIconName():"notAllowed"),a=r[e],n.classList.toggle("ag-dnd-ghost-not-allowed",e==="notAllowed"),i.classList.toggle("ag-shake-left-to-right",t),!(a===r.hide&&s.get("suppressDragLeaveHidesColumns"))&&a&&i.appendChild(a)}setLabel(e){this.eLabel.textContent=e}};function ZN(e,t){e.rowDragSvc?.rowDragFeature?.addRowDropZone(t)}function XN(e,t){const n=e.dragAndDrop?.findExternalZone(t.getContainer());n&&e.dragAndDrop?.removeDropTarget(n)}function JN(e,t){return e.rowDragSvc?.rowDragFeature?.getRowDropZone(t)}function eB(e){const t=e.rowDropHighlightSvc;return t?{row:t.row,dropIndicatorPosition:t.position}:{row:null,dropIndicatorPosition:"none"}}function tB(e,t){const n=e.rowDropHighlightSvc;if(!n)return;const i=t?.row;let o=t?.dropIndicatorPosition;o!=="above"&&o!=="below"&&o!=="inside"&&(o="none");const r=i?.rowIndex;r==null||o==="none"?n.clear():n.set(i,o)}var IR=(e,t)=>{if(t!=null&&e?.setPointerCapture)try{return e.setPointerCapture(t),e.hasPointerCapture(t)}catch{}return!1},nB=(e,t)=>{if(typeof PointerEvent>"u"||!(t instanceof PointerEvent))return null;const n=t.pointerId;if(!IR(e,n))return null;const i={eElement:e,pointerId:n,onLost(o){oB(i,o)}};return e.addEventListener("lostpointercapture",i.onLost),i},iB=e=>{if(!e)return;MR(e);const{eElement:t,pointerId:n}=e;if(t){try{t.releasePointerCapture(n)}catch{}e.eElement=null}},MR=e=>{const{eElement:t,onLost:n}=e;t&&n&&(t.removeEventListener("lostpointercapture",n),e.onLost=null)},oB=(e,t)=>{MR(e);const{eElement:n,pointerId:i}=e;n&&t.pointerId===i&&IR(n,i)},Za,Xa,bm={passive:!0},jr={passive:!1},Do=e=>{if(!Xa)Xa=new WeakSet;else if(Xa.has(e))return!1;return Xa.add(e),!0},rB=class extends Vn{constructor(){super(...arguments),this.beanName="dragSvc",this.dragging=!1,this.drag=null,this.dragSources=[]}get startTarget(){return this.drag?.start.target??null}isPointer(){return!!Za?.has(Ro(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)kR(t);e.length=0,super.destroy()}removeDragSource(e){const t=this.dragSources;for(let n=0,i=t.length;n<i;++n){const o=t[n];if(o.params===e){t.splice(n,1),kR(o);break}}}addDragSource(e){if(!this.isAlive())return;const{eElement:t,includeTouch:n}=e,i=[];let o;if(n){const u=t.style;u&&(o=u.touchAction,u.touchAction="none")}const r={handlers:i,params:e,oldTouchAction:o};this.dragSources.push(r),Ad(i,[t,"pointerdown",u=>this.onPointerDown(e,u),jr],[t,"mousedown",u=>this.onMouseDown(e,u)]);const l=this.gos.get("suppressTouch");n&&!l&&Ad(i,[t,"touchstart",h=>this.onTouchStart(e,h),jr])}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&&gc(this.beans,e)&&!cc(Sm(e))}initDrag(e,...t){this.drag=e;const n=this.beans,i=a=>this.onScroll(a),o=a=>this.onKeyDown(a),r=Ro(n),s=on(n);Ad(e.handlers,[r,"contextmenu",Or],[r,"keydown",o],[s,"scroll",i,{capture:!0}],[s.defaultView||window,"scroll",i],...t)}destroyDrag(){this.dragging=!1;const e=this.drag;if(e){const t=e.rootEl;Za?.get(t)===e&&Za.delete(t),this.drag=null,iB(e.pointerCapture),wg(e.handlers)}}onPointerDown(e,t){if(this.isPointer())return;const n=this.beans;if(Xa?.has(t))return;const i=t.pointerType;if(i==="touch"&&(n.gos.get("suppressTouch")||!e.includeTouch||(e.stopPropagationForTouch&&t.stopPropagation(),cc(Sm(t))))||!t.isPrimary||i==="mouse"&&t.button!==0)return;this.destroyDrag();const o=Ro(n),r=e.eElement,s=t.pointerId,a=new ym(o,e,t,s);Za??(Za=new WeakMap),Za.set(o,a);const l=p=>{p.pointerId===s&&this.onMouseOrPointerMove(p)},u=p=>{p.pointerId===s&&this.onMouseOrPointerUp(p)},h=p=>{p.pointerId===s&&Do(p)&&this.cancelDrag()},f=p=>this.draggingPreventDefault(p);this.initDrag(a,[o,"pointerup",u],[o,"pointercancel",h],[o,"pointermove",l,jr],[o,"touchmove",f,jr],[r,"mousemove",f,jr]),e.dragStartPixels===0?this.onMouseOrPointerMove(t):Do(t)}onTouchStart(e,t){if(this.gos.get("suppressTouch")||!e.includeTouch||!Do(t)||cc(Sm(t)))return;if(e.stopPropagationForTouch&&t.stopPropagation(),this.isPointer()){this.dragging&&Or(t);return}this.destroyDrag();const i=this.beans,o=Ro(i),r=new ym(o,e,t.touches[0]),s=p=>this.onTouchMove(p),a=p=>this.onTouchUp(p),l=p=>this.onTouchCancel(p),u=p=>this.draggingPreventDefault(p),h=Ro(i),f=t.target??e.eElement;this.initDrag(r,[f,"touchmove",s,bm],[f,"touchend",a,bm],[f,"touchcancel",l,bm],[h,"touchmove",u,jr],[h,"touchend",a,jr],[h,"touchcancel",l,jr]),e.dragStartPixels===0&&this.onMove(r.start)}draggingPreventDefault(e){this.dragging&&Or(e)}onMouseDown(e,t){if(t.button!==0||Xa?.has(t)||this.isPointer())return;const n=this.beans;this.destroyDrag();const i=new ym(Ro(n),e,t),o=a=>this.onMouseOrPointerMove(a),r=a=>this.onMouseOrPointerUp(a),s=Ro(n);this.initDrag(i,[s,"mousemove",o],[s,"mouseup",r]),e.dragStartPixels===0?this.onMouseOrPointerMove(t):Do(t)}onScroll(e){if(!Do(e))return;const t=this.drag,n=t?.lastDrag;n&&this.dragging&&t.params?.onDragging?.(n)}onMouseOrPointerMove(e){Do(e)&&(zr()&&on(this.beans).getSelection()?.removeAllRanges(),this.shouldPreventMouseEvent(e)&&Or(e),this.onMove(e))}onTouchCancel(e){const t=this.drag;!t||!Do(e)||Oa(t.start,e.changedTouches)&&this.cancelDrag()}onTouchMove(e){const t=this.drag;if(!t||!Do(e))return;const n=Oa(t.start,e.touches);n&&(this.onMove(n),this.draggingPreventDefault(e))}onMove(e){const t=this.drag;if(!t)return;t.lastDrag=e;const n=t.params;if(!this.dragging){const i=t.start,r=n.dragStartPixels??4;if(WS(e,i,r)||(this.dragging=!0,n.capturePointer&&(t.pointerCapture=nB(this.beans.eRootDiv,e)),this.eventSvc.dispatchEvent({type:"dragStarted",target:n.eElement}),n.onDragStart?.(i),this.drag!==t)||(n.onDragging?.(i),this.drag!==t))return}n.onDragging?.(e)}onTouchUp(e){const t=this.drag;t&&Do(e)&&this.onUp(Oa(t.start,e.changedTouches))}onMouseOrPointerUp(e){Do(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===K.ESCAPE&&this.cancelDrag()}},kR=e=>{wg(e.handlers);const t=e.oldTouchAction;if(t!=null){const n=e.params.eElement.style;n&&(n.touchAction=t)}},ym=class{constructor(e,t,n,i=null){this.rootEl=e,this.params=t,this.start=n,this.pointerId=i,this.handlers=[],this.lastDrag=null,this.pointerCapture=null,this.eElement=t.eElement}},Sm=e=>{const t=e.target;return t instanceof Element?t:null},sB=class extends rB{shouldPreventMouseEvent(e){return this.gos.get("enableCellTextSelection")&&super.shouldPreventMouseEvent(e)}},aB=class extends X{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:n}=this.beans;return n.addDragSource(t),()=>n.removeDragSource(t)}onDragStart(e,t){this.dragStartX=t.clientX,this.setResizeIcons();const n=t instanceof MouseEvent&&t.shiftKey===!0;e.onResizeStart(n)}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)}},lB={tag:"div",cls:"ag-drag-handle ag-row-drag",attrs:{"aria-hidden":"true"}},ah={skipAriaHidden:!0},cB=class extends yt{constructor(e,t,n,i,o,r=!1){super(),this.cellValueFn=e,this.rowNode=t,this.column=n,this.customGui=i,this.dragStartPixels=o,this.alwaysVisible=r,this.dragSource=null,this.disabled=!1}isCustomGui(){return this.customGui!=null}postConstruct(){const{beans:e,customGui:t}=this;t?this.setDragElement(t,this.dragStartPixels):(this.setTemplate(lB),this.getGui().appendChild(ii("rowDrag",e,null)),this.addDragSource()),this.alwaysVisible||this.initCellDrag()}initCellDrag(){const{beans:e,rowNode:t}=this,n=this.refreshVisibility.bind(this);this.addManagedListeners(e.eventSvc,{rowDragVisibilityChanged:n}),this.addManagedListeners(t,{dataChanged:n,cellChanged:n}),this.refreshVisibility()}setDragElement(e,t){this.setTemplateFromElement(e,void 0,void 0,!0),this.addDragSource(t)}refreshVisibility(){if(this.alwaysVisible)return;const{beans:e,column:t,rowNode:n}=this,{gos:i,dragAndDrop:o,rowDragSvc:r}=e,s=r?.visibility;let l=!(s==="suppress"||s==="hidden"&&!o?.hasExternalDropZones()),u=l;if(l&&!this.isCustomGui()&&t){const h=t.getColDef().rowDrag;if(h===!1)l=!1;else{const f=typeof h=="function";u=t.isRowDrag(n),l=f||u}}l&&u&&n.footer&&i.get("rowDragManaged")&&(u=!1,l=!0),u&&(u=l),l||this.setDisplayed(l,ah),u||this.setVisible(u,ah),this.setDisabled(!u||s==="disabled"&&!o?.hasExternalDropZones()),l&&this.setDisplayed(l,ah),u&&this.setVisible(u,ah)}setDisabled(e){e!==this.disabled&&(this.disabled=e,this.getGui()?.classList?.toggle("ag-drag-handle-disabled",e))}getSelectedNodes(){const e=this.rowNode;if(!this.gos.get("rowDragMultiRow"))return[e];const n=this.beans.selectionSvc?.getSelectedNodes()??[];return n.indexOf(e)!==-1?n:[e]}getDragItem(){const{column:e,rowNode:t}=this;return{rowNode:t,rowNodes:this.getSelectedNodes(),columns:e?[e]:void 0,defaultTextValue:this.cellValueFn()}}addDragSource(e=4){if(this.dragSource&&this.removeDragSource(),this.gos.get("rowDragManaged")&&this.rowNode.footer)return;const t=this.getGui();if(this.gos.get("enableCellTextSelection")){this.removeMouseDownListener();const i=Td("pointerdown")?{pointerdown:Or}:{mousedown:Or};this.mouseDownListener=this.addManagedElementListeners(t,i)[0]}const n=this.getLocaleTextFunc();this.dragSource={type:2,eElement:t,dragItemName:i=>this.getDragItemName(i,n),getDragItem:()=>this.getDragItem(),dragStartPixels:e,dragSourceDomDataKey:this.gos.getDomDataKey()},this.beans.dragAndDrop.addDragSource(this.dragSource,!0)}getDragItemName(e,t){const n=e?.dragItem||this.getDragItem(),i=(e?.dropTarget?.rows.length??n.rowNodes?.length)||1,o=this.column?.getColDef()?.rowDragText??this.gos.get("rowDragText");if(o)return o(n,i);if(i!==1)return`${i} ${t("rowDragRows","rows")}`;const r=this.cellValueFn();return r||`1 ${t("rowDragRow","rows")}`}destroy(){this.removeDragSource(),this.removeMouseDownListener(),super.destroy()}removeDragSource(){this.dragSource&&(this.beans.dragAndDrop.removeDragSource(this.dragSource),this.dragSource=null)}removeMouseDownListener(){this.mouseDownListener&&(this.mouseDownListener(),this.mouseDownListener=void 0)}},uB=class{constructor(e){this.tickingInterval=null,this.onScrollCallback=null,this.scrollContainer=e.scrollContainer,this.scrollHorizontally=e.scrollAxis.includes("x"),this.scrollVertically=e.scrollAxis.includes("y"),this.scrollByTick=e.scrollByTick??20,e.onScrollCallback&&(this.onScrollCallback=e.onScrollCallback),this.scrollVertically&&(this.getVerticalPosition=e.getVerticalPosition,this.setVerticalPosition=e.setVerticalPosition),this.scrollHorizontally&&(this.getHorizontalPosition=e.getHorizontalPosition,this.setHorizontalPosition=e.setHorizontalPosition),this.shouldSkipVerticalScroll=e.shouldSkipVerticalScroll||(()=>!1),this.shouldSkipHorizontalScroll=e.shouldSkipHorizontalScroll||(()=>!1)}get scrolling(){return this.tickingInterval!==null}check(e,t=!1){const n=!this.scrollVertically||t||this.shouldSkipVerticalScroll(),i=!this.scrollHorizontally||this.shouldSkipHorizontalScroll();if(n&&i)return;const o=this.scrollContainer.getBoundingClientRect(),r=this.scrollByTick;this.tickLeft=!i&&e.clientX<o.left+r,this.tickRight=!i&&e.clientX>o.right-r,this.tickUp=!n&&e.clientY<o.top+r,this.tickDown=!n&&e.clientY>o.bottom-r,this.tickLeft||this.tickRight||this.tickUp||this.tickDown?this.ensureTickingStarted():this.ensureCleared()}ensureTickingStarted(){this.tickingInterval===null&&(this.tickingInterval=window.setInterval(this.doTick.bind(this),100),this.tickCount=0)}doTick(){this.tickCount++;const e=this.tickCount>20?200:this.tickCount>10?80:40;if(this.scrollVertically){const t=this.getVerticalPosition();this.tickUp&&this.setVerticalPosition(t-e),this.tickDown&&this.setVerticalPosition(t+e)}if(this.scrollHorizontally){const t=this.getHorizontalPosition();this.tickLeft&&this.setHorizontalPosition(t-e),this.tickRight&&this.setHorizontalPosition(t+e)}this.onScrollCallback&&this.onScrollCallback()}ensureCleared(){this.tickingInterval&&(window.clearInterval(this.tickingInterval),this.tickingInterval=null)}},lh=class{constructor(){this.reordered=!1,this.removals=[],this.updates=new Set,this.adds=new Set}},ch=e=>{let t=e.childrenAfterGroup;for(;t?.length;){const n=t[0];if(n.sourceRowIndex>=0)return n;t=n.childrenAfterGroup}},dB=(e,t,n,i)=>{if(!t.size||!e)return!1;let o=!1;const r=e.length??0;let s=-1;n&&(s=n.sourceRowIndex,n=s<0?ch(n):null,n&&(s=n.sourceRowIndex)),s<0||s>=r?s=r:i||++s;let a=s,l=Math.min(s,r-1);for(const f of t){const p=f.sourceRowIndex;p<a&&(a=p),p>l&&(l=p)}let u=a;for(let f=a;f<s;++f){const p=e[f];t.has(p)||(p.sourceRowIndex!==u&&(p.sourceRowIndex=u,e[u]=p,o=!0),++u)}let h=l;for(let f=l;f>=s;--f){const p=e[f];t.has(p)||(p.sourceRowIndex!==h&&(p.sourceRowIndex=h,e[h]=p,o=!0),--h)}for(const f of t)f.sourceRowIndex!==u&&(f.sourceRowIndex=u,e[u]=f,o=!0),++u;return o};function hB(e,t){return fm(e,t.target)?.getFocusedCellPosition()??null}function LR(e,t){const n=bn(e.gos,"normal"),i=t;let o,r;i.clientX!=null||i.clientY!=null?(o=i.clientX,r=i.clientY):(o=i.x,r=i.y);const{pageFirstPixel:s}=e.pageBounds.getCurrentPagePixelRange();if(r+=s,n){const a=e.ctrlsSvc.getScrollFeature(),l=a.getVScrollPosition(),u=a.getHScrollPosition();o+=u.left,r+=l.top}return{x:o,y:r}}var fB=.25,pB=class extends X{constructor(e){super(),this.eContainer=e,this.lastDraggingEvent=null,this.autoScroll=null,this.autoScrollChanged=!1,this.autoScrollChanging=!1,this.autoScrollOldV=null}postConstruct(){const e=this.beans;e.ctrlsSvc.whenReady(this,t=>{const n=()=>t.gridBodyCtrl.scrollFeature.getVScrollPosition().top,i=new uB({scrollContainer:t.gridBodyCtrl.eBodyViewport,scrollAxis:"y",getVerticalPosition:n,setVerticalPosition:o=>t.gridBodyCtrl.scrollFeature.setVerticalScrollPosition(o),onScrollCallback:()=>{const o=n();if(this.autoScrollOldV!==o){this.autoScrollOldV=o,this.autoScrollChanging=!0;return}const r=this.autoScrollChanging;this.autoScrollChanged=r,this.autoScrollChanging=!1,r&&(e.dragAndDrop?.nudge(),this.autoScrollChanged=!1)}});this.autoScroll=i,this.clearAutoScroll()})}destroy(){super.destroy(),this.clearAutoScroll(),this.autoScroll=null,this.lastDraggingEvent=null,this.eContainer=null}getContainer(){return this.eContainer}isInterestedIn(e){return e===2}getIconName(e){return e?.dropTarget?.allowed===!1||this.beans.rowDragSvc.visibility!=="visible"?"notAllowed":"move"}getRowNodes(e){if(!this.isFromThisGrid(e))return e.dragItem.rowNodes||[];const t=e.dragItem.rowNode;if(this.gos.get("rowDragMultiRow")){const n=this.beans.selectionSvc?.getSelectedNodes();if(n&&n.indexOf(t)>=0)return n.slice().sort(gB)}return[t]}onDragEnter(e){this.dragging(e,!0)}onDragging(e){this.dragging(e,!1)}dragging(e,t){const{lastDraggingEvent:n,beans:i}=this;if(t){const a=this.getRowNodes(e);e.dragItem.rowNodes=a,OR(a,!0)}this.lastDraggingEvent=e;const o=e.fromNudge,r=this.makeRowsDrop(n,e,o,!1);i.rowDropHighlightSvc?.fromDrag(e),t&&this.dispatchGridEvent("rowDragEnter",e),this.dispatchGridEvent("rowDragMove",e);const s=this.autoScroll;r?.rowDragManaged&&r.moved&&r.allowed&&r.sameGrid&&!r.suppressMoveWhenRowDragging&&(!o&&!s?.scrolling||this.autoScrollChanged)&&this.dropRows(r),s?.check(e.event)}isFromThisGrid(e){return e.dragSource.dragSourceDomDataKey===this.gos.getDomDataKey()}makeRowsDrop(e,t,n,i){const{beans:o,gos:r}=this,s=this.newRowsDrop(t,i),a=o.rowModel;if(t.dropTarget=s,t.changed=!1,!s)return null;let{sameGrid:l,rootNode:u,source:h,target:f}=s;f??(f=a.getRow(a.getRowCount()-1)??null);const p=this.beans.groupEditSvc,m=!!p?.canSetParent(s);let v=null;if(f?.footer){const b=Yg(a,-1,f)??Yg(a,1,f);m&&(v=f.sibling??u),f=b??null}f?.detail&&(f=f.parent),s.moved&&(s.moved=h!==f);let w=.5;if(f&&(l&&s.moved&&(v||!m)?w=h.rowIndex>f.rowIndex?-.5:.5:w=(s.y-f.rowTop-f.rowHeight/2)/f.rowHeight||0),!m&&l&&f&&s.moved&&Yt(r)){const b=mB(a,s);b&&(w=h.rowIndex>b.rowIndex?-.5:.5,f=b,s.moved&&(s.moved=h!==f))}return s.target=f,s.newParent=v,s.pointerPos=vB(f,s.y),s.yDelta=w,p?.fixRowsDrop(s,m,n,w),this.validateRowsDrop(s,m,i),t.changed||(t.changed=_R(e?.dropTarget,s)),s}newRowsDrop(e,t){const{beans:n,gos:i}=this,o=n.rowModel.rootNode,r=Yt(i)?i.get("rowDragManaged"):!1,s=i.get("suppressMoveWhenRowDragging"),a=this.isFromThisGrid(e);let{rowNode:l,rowNodes:u}=e.dragItem;if(u||(u=l?[l]:[]),l||(l=u[0]),!l||!o)return null;const h=this.beans.dragAndDrop.isDropZoneWithinThisGrid(e);let f=!0;r&&(!u.length||n.rowDragSvc.visibility!=="visible"||(s||!a)&&!h)&&(f=!1);const p=LR(n,e).y,m=this.getOverNode(p);return{api:n.gridApi,context:n.gridOptions.context,draggingEvent:e,rowDragManaged:r,suppressMoveWhenRowDragging:s,sameGrid:a,withinGrid:h,treeData:!1,rootNode:o,moved:l!==m,y:p,overNode:m,overIndex:m?.rowIndex??-1,pointerPos:"none",position:"none",source:l,target:m??null,newParent:null,rows:u,allowed:f,highlight:!t&&r&&s&&(h||!a),yDelta:0,inside:!1,droppedManaged:!1}}validateRowsDrop(e,t,n){const{source:i,target:o,yDelta:r,inside:s,moved:a,rowDragManaged:l,suppressMoveWhenRowDragging:u}=e;e.moved&&(e.moved=i!==o);const{position:h,fallbackPosition:f}=this.computeDropPosition(a,s,r);e.position=h,t||(e.newParent=null),this.enforceSuppressMoveWhenRowDragging(e,u,"initial");const p=(!l||e.allowed)&&this.gos.get("isRowValidDropPosition");p&&this.applyDropValidator(e,t,n,l,p),l&&(e.rows=this.filterRows(e)),this.beans.groupEditSvc?.clearNewSameParent(e,t),this.enforceSuppressMoveWhenRowDragging(e,u,"final"),e.position==="inside"&&(!e.allowed||!e.newParent)&&(e.position=f)}computeDropPosition(e,t,n){const i=n<0?"above":"below";return e?{position:t?"inside":i,fallbackPosition:i}:{position:"none",fallbackPosition:i}}enforceSuppressMoveWhenRowDragging(e,t,n){if(t){if(n==="initial"){e.moved||(e.allowed=!1);return}(!e.rows.length||e.position==="none")&&(e.allowed=!1)}}applyDropValidator(e,t,n,i,o){this.beans.groupEditSvc?.clearNewSameParent(e,t);const r=o(e);if(!r){e.allowed=!1;return}if(typeof r!="object")return;r.rows!==void 0&&(e.rows=r.rows??[]),t&&r.newParent!==void 0&&(e.newParent=r.newParent),r.target!==void 0&&(e.target=r.target),r.position&&(e.position=r.position),r.allowed!==void 0?e.allowed=r.allowed:i||(e.allowed=!0);const s=e.draggingEvent;r.changed&&s&&(s.changed=!0),!n&&r.highlight!==void 0&&(e.highlight=r.highlight)}addRowDropZone(e){if(!e.getContainer()){se(55);return}const t=this.beans.dragAndDrop;if(t.findExternalZone(e.getContainer())){se(56);return}const n=e.fromGrid?e:{getContainer:e.getContainer,onDragEnter:e.onDragEnter&&(o=>e.onDragEnter(this.rowDragEvent("rowDragEnter",o))),onDragLeave:e.onDragLeave&&(o=>e.onDragLeave(this.rowDragEvent("rowDragLeave",o))),onDragging:e.onDragging&&(o=>e.onDragging(this.rowDragEvent("rowDragMove",o))),onDragStop:e.onDragStop&&(o=>e.onDragStop(this.rowDragEvent("rowDragEnd",o))),onDragCancel:e.onDragCancel&&(o=>e.onDragCancel(this.rowDragEvent("rowDragCancel",o)))},i={isInterestedIn:o=>o===2,getIconName:()=>"move",external:!0,...n};t.addDropTarget(i),this.addDestroyFunc(()=>t.removeDropTarget(i))}getRowDropZone(e){return{getContainer:this.getContainer.bind(this),onDragEnter:n=>{this.onDragEnter(n),e?.onDragEnter?.(this.rowDragEvent("rowDragEnter",n))},onDragLeave:n=>{this.onDragLeave(n),e?.onDragLeave?.(this.rowDragEvent("rowDragLeave",n))},onDragging:n=>{this.onDragging(n),e?.onDragging?.(this.rowDragEvent("rowDragMove",n))},onDragStop:n=>{this.onDragStop(n),e?.onDragStop?.(this.rowDragEvent("rowDragEnd",n))},onDragCancel:n=>{this.onDragCancel(n),e?.onDragCancel?.(this.rowDragEvent("rowDragCancel",n))},fromGrid:!0}}getOverNode(e){const{pageBounds:t,rowModel:n}=this.beans,o=e>t.getCurrentPagePixelRange().pageLastPixel?-1:n.getRowIndexAtPixel(e);return o>=0?n.getRow(o):void 0}rowDragEvent(e,t){const n=this.beans,{dragItem:i,dropTarget:o,event:r,vDirection:s}=t,a=o?.rootNode===n.rowModel.rootNode,l=a?o.y:LR(n,t).y,u=a?o.overNode:this.getOverNode(l),h=a?o.overIndex:u?.rowIndex??-1;return{api:n.gridApi,context:n.gridOptions.context,type:e,event:r,node:i.rowNode,nodes:i.rowNodes,overIndex:h,overNode:u,y:l,vDirection:s,rowsDrop:o}}dispatchGridEvent(e,t){const n=this.rowDragEvent(e,t);this.eventSvc.dispatchEvent(n)}onDragLeave(e){this.dispatchGridEvent("rowDragLeave",e),this.stopDragging(e,!1)}onDragStop(e){const t=this.lastDraggingEvent?.dropTarget??null,n=this.makeRowsDrop(this.lastDraggingEvent,e,!1,!0);this.dispatchGridEvent("rowDragEnd",e),n?.allowed&&n.rowDragManaged&&(!t?.droppedManaged||_R(t,n))&&this.dropRows(n),this.stopDragging(e,!0)}onDragCancel(e){this.dispatchGridEvent("rowDragCancel",e),this.stopDragging(e,!0)}stopDragging(e,t){this.clearAutoScroll(),this.beans.groupEditSvc?.stopDragging(t),this.beans.rowDropHighlightSvc?.fromDrag(null),OR(e.dragItem.rowNodes,!1),this.lastDraggingEvent=null}clearAutoScroll(){this.autoScroll?.ensureCleared(),this.autoScrollChanged=!1,this.autoScrollChanging=!1,this.autoScrollOldV=null}dropRows(e){return e.droppedManaged=!0,e.sameGrid?this.csrmMoveRows(e):this.csrmAddRows(e)}csrmAddRows({position:e,target:t,rows:n}){const i=Wa(this.gos),o=this.beans.rowModel,r=n.filter(({data:a,rowPinned:l})=>!o.getRowNode(i?.({data:a,level:0,rowPinned:l})??a.id)).map(({data:a})=>a);if(r.length===0)return!1;let s;if(t){const a=t.sourceRowIndex>=0?t:ch(t);a&&(s=a.sourceRowIndex+(e==="above"?0:1))}return o.updateRowData({add:r,addIndex:s}),!0}filterRows(e){const{groupEditSvc:t}=this.beans,{rows:n,sameGrid:i}=e;let o;for(let r=0,s=n.length;r<s;++r){let a=!0;const l=n[r];(!l||l.footer||i&&l.destroyed&&!l.group||!this.csrmGetLeaf(l))&&(a=!1),a&&t&&!t.canDropRow(l,e)&&(a=!1),a?o?.push(l):o??(o=n.slice(0,r))}return o??n}csrmMoveRows(e){const t=this.beans.groupEditSvc;return t?.isGroupingDrop(e)?t.dropGroupEdit(e):this.csrmMoveRowsReorder(e)}csrmMoveRowsReorder({position:e,target:t,rows:n,newParent:i,rootNode:o}){let r=!1;const s=new Set;for(const p of n){i&&p.parent!==i&&(p.treeParent=i,r=!0);const m=this.csrmGetLeaf(p);m&&s.add(m)}if(!r&&s.size===0)return!1;const a=this.beans.focusSvc,l=a.getFocusedCell(),u=l&&Qa(this.beans,l);if(s.size&&dB(o._leafs,s,t,e==="above")&&(r=!0),!r)return!1;const h=this.beans.rowModel,f=new lh;return f.reordered=!0,h.refreshModel({step:"group",keepRenderedRows:!0,animate:!this.gos.get("suppressAnimationFrame"),changedRowNodes:f}),u?u.focusCell():a.clearFocusedCell(),!0}csrmGetLeaf(e){if(e.sourceRowIndex>=0)return e.destroyed?void 0:e;const t=this.beans.groupEditSvc;return t?t.csrmFirstLeaf(e):ch(e)}},_R=(e,t)=>e!==t&&(!e||e.sameGrid!==t.sameGrid||e.allowed!==t.allowed||e.position!==t.position||e.target!==t.target||e.source!==t.source||e.newParent!==t.newParent||!kr(e.rows,t.rows)),gB=({rowIndex:e},{rowIndex:t})=>e!==null&&t!==null?e-t:0,OR=(e,t)=>{for(let n=0,i=e?.length||0;n<i;++n){const o=e[n];o.dragging!==t&&(o.dragging=t,o.dispatchRowEvent("draggingChanged"))}},mB=(e,t)=>{let n=null,i=t.target;if(i&&t.rows.indexOf(i)<0)return null;const o=t.source;if(!i||!o)return null;let r=i.rowIndex-o.rowIndex;const s=r<0?-1:1;r=t.suppressMoveWhenRowDragging?Math.abs(r):1;const a=new Set(t.rows);do{const l=Yg(e,s,i);if(!l)break;a.has(l)||(n=l,--r),i=l}while(r>0);return n},vB=(e,t)=>{const n=e?.rowTop,i=e?.rowHeight??0;if(n==null||!i||i<=0)return"none";const o=t-n,r=i*fB;return o<=r?"above":o>=i-r?"below":"inside"},CB=class extends X{constructor(){super(...arguments),this.beanName="rowDragSvc",this.rowDragFeature=null,this.visibility="suppress"}setupRowDrag(e,t){const n=t.createManagedBean(new pB(e)),i=this.beans.dragAndDrop;i.addDropTarget(n),t.addDestroyFunc(()=>i.removeDropTarget(n)),this.rowDragFeature=n;const o=()=>this.refreshVisibility();this.addManagedPropertyListeners(["rowDragManaged","suppressRowDrag","refreshAfterGroupEdit"],o),this.addManagedEventListeners({newColumnsLoaded:o,columnRowGroupChanged:o,columnPivotModeChanged:o,sortChanged:o,filterChanged:o}),this.visibility=this.computeVisibility()}createRowDragComp(e,t,n,i,o,r){return new cB(e,t,n,i,o,r)}createRowDragCompForRow(e,t){if(nr(this.gos))return;const n=this.getLocaleTextFunc();return this.createRowDragComp(()=>`1 ${n("rowDragRow","row")}`,e,void 0,t,void 0,!0)}createRowDragCompForCell(e,t,n,i,o,r){const s=this.gos;return s.get("rowDragManaged")&&(!Yt(s)||s.get("pagination"))?void 0:this.createRowDragComp(n,e,t,i,o,r)}cancelRowDrag(){this.rowDragFeature?.lastDraggingEvent&&this.beans.dragSvc?.cancelDrag()}computeVisibility(){const e=this.beans,t=e.gos;if(t.get("suppressRowDrag"))return"suppress";if(!t.get("rowDragManaged"))return"visible";const i=e.colModel.isPivotMode();return(i||e.rowGroupColsSvc?.columns?.length)&&!t.get("refreshAfterGroupEdit")?"hidden":i||e.filterManager?.isAnyFilterPresent()||e.sortSvc?.isSortActive()?"disabled":"visible"}refreshVisibility(){const e=this.visibility,t=this.computeVisibility();e!==t&&(this.visibility=t,this.eventSvc?.dispatchEvent({type:"rowDragVisibilityChanged"}))}},wB=class extends X{constructor(){super(...arguments),this.beanName="rowDropHighlightSvc",this.uiLevel=0,this.dragging=!1,this.row=null,this.position="none"}postConstruct(){this.addManagedEventListeners({modelUpdated:this.onModelUpdated.bind(this)})}onModelUpdated(){const e=this.row,t=this.dragging;!e||e?.rowIndex===null||this.position==="none"?this.clear():this.set(e,this.position),this.dragging=t}destroy(){this.clear(),super.destroy()}clear(){const e=this.row;this.dragging=!1,e&&(this.uiLevel=0,this.position="none",this.row=null,e.dispatchRowEvent("rowHighlightChanged"))}set(e,t){const n=e!==this.row,i=e.uiLevel,o=t!==this.position,r=i!==this.uiLevel;this.dragging=!1,(n||o||r)&&(n&&this.clear(),this.uiLevel=i,this.position=t,this.row=e,e.dispatchRowEvent("rowHighlightChanged"))}fromDrag(e){const t=e?.dropTarget;if(t){const{highlight:n,target:i,position:o}=t;if(n&&i&&o!=="none"){this.set(i,o),this.dragging=!0;return}}this.dragging&&this.clear()}},NR={moduleName:"Drag",version:me,beans:[sB]},bB={moduleName:"DragAndDrop",version:me,dynamicBeans:{dndSourceComp:KN},icons:{rowDrag:"grip"}},BR={moduleName:"SharedDragAndDrop",version:me,beans:[AO],dependsOn:[NR],userComponents:{agDragAndDropImage:YN},icons:{columnMovePin:"pin",columnMoveHide:"eye-slash",columnMoveMove:"arrows",columnMoveLeft:"left",columnMoveRight:"right",columnMoveGroup:"group",columnMoveValue:"aggregation",columnMovePivot:"pivot",dropNotAllowed:"not-allowed",rowDrag:"grip"}},yB={moduleName:"RowDrag",version:me,beans:[wB,CB],apiFunctions:{addRowDropZone:ZN,removeRowDropZone:XN,getRowDropZoneParams:JN,getRowDropPositionIndicator:eB,setRowDropPositionIndicator:tB},dependsOn:[BR]},SB={moduleName:"HorizontalResize",version:me,beans:[aB],dependsOn:[NR]},RB=":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}}",FB=class extends X{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:n,executeLaterFuncs:i}=this;if(n.length===0&&i.length===0){e(),t();return}const o=r=>{for(;r.length;){const s=r.pop();s&&s()}};this.beans.frameworkOverrides.wrapIncoming(()=>{window.setTimeout(()=>{e(),o(n)},0),window.setTimeout(()=>{t(),o(i)},200)})}};function xB(e,t,n){e.colMoves?.moveColumnByIndex(t,n,"api")}function PB(e,t,n){e.colMoves?.moveColumns(t,n,"api")}var EB=class extends X{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 n of t)n.isPrimary()&&(n.isAnyFunctionActive()||(n.isAllowValue()?this.columnsToAggregate.push(n):n.isAllowRowGroup()?this.columnsToGroup.push(n):n.isAllowPivot()&&this.columnsToPivot.push(n)))}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:n,pivotColsSvc:i}=this.beans;this.columnsToAggregate.length>0&&t?.addColumns(this.columnsToAggregate,"toolPanelDragAndDrop"),this.columnsToGroup.length>0&&n?.addColumns(this.columnsToGroup,"toolPanelDragAndDrop"),this.columnsToPivot.length>0&&i?.addColumns(this.columnsToPivot,"toolPanelDragAndDrop")}onDragCancel(){this.clearColumnsList()}};function DB(e,t){!t||t.length<=1||t.filter(i=>e.indexOf(i)<0).length>0||t.sort((i,o)=>{const r=e.indexOf(i),s=e.indexOf(o);return r-s})}function TB(e){const t=[...e];for(const n of e){let i=null,o=n.getParent();for(;o!=null&&o.getDisplayedLeafColumns().length===1;)i=o,o=o.getParent();if(i!=null){const s=!!i.getColGroupDef()?.marryChildren?i.getProvidedColumnGroup().getLeafColumns():i.getLeafColumns();for(const a of s)t.includes(a)||t.push(a)}}return t}function AB(e,t,n,i){const o=i.allCols;let r=null,s=null;for(let a=0;a<e.length;a++){const l=e[a],u=n.getProposedColumnOrder(t,l);if(!n.doesOrderPassRules(u))continue;const h=u.filter(p=>o.includes(p));if(s===null)s=h;else if(!kr(h,s))break;const f=MB(u);(r===null||f<r.fragCount)&&(r={move:l,fragCount:f})}return r}function GR(e){const{isFromHeader:t,fromLeft:n,xPosition:i,fromEnter:o,fakeEvent:r,pinned:s,gos:a,colModel:l,colMoves:u,visibleCols:h}=e;let{allMovingColumns:f}=e;t&&(f=TB(f));const p=f.slice();DB(l.getCols(),p);const m=LB({movingCols:p,draggingRight:n,xPosition:i,pinned:s,gos:a,colModel:l,visibleCols:h}),v=IB(p,l);if(m.length===0)return;const w=m[0];if(v!==null&&(t||!o)&&!r&&(!n&&w>=v||n&&w<=v))return;const y=AB(m,p,u,h);if(!y)return;const R=y.move;if(!(R>l.getCols().length-p.length))return{columns:p,toIndex:R}}function HR(e){const{columns:t,toIndex:n}=GR(e)||{},{finished:i,colMoves:o}=e;return!t||n==null?null:(o.moveColumns(t,n,"uiColumnMoved",i),i?null:{columns:t,toIndex:n})}function IB(e,t){const n=t.getCols(),i=e.map(l=>n.indexOf(l)).sort((l,u)=>l-u),o=i[0];return Pt(i)-o!==i.length-1?null:o}function MB(e){function t(i){const o=[];let r=i.getOriginalParent();for(;r!=null;)o.push(r),r=r.getOriginalParent();return o}let n=0;for(let i=0;i<e.length-1;i++){let o=t(e[i]),r=t(e[i+1]);[o,r]=o.length>r.length?[o,r]:[r,o];for(const s of o)r.indexOf(s)===-1&&n++}return n}function kB(e,t){switch(t){case"left":return e.leftCols;case"right":return e.rightCols;default:return e.centerCols}}function LB(e){const{movingCols:t,draggingRight:n,xPosition:i,pinned:o,gos:r,colModel:s,visibleCols:a}=e;if(r.get("suppressMovableColumns")||t.some(S=>S.getColDef().suppressMovable))return[];const u=kB(a,o),h=s.getCols(),f=u.filter(S=>t.includes(S)),p=u.filter(S=>!t.includes(S)),m=h.filter(S=>!t.includes(S));let v=0,w=i;if(n){let S=0;for(const x of f)S+=x.getActualWidth();w-=S}if(w>0){for(let S=0;S<p.length;S++){const x=p[S];if(w-=x.getActualWidth(),w<0)break;v++}n&&v++}let b;if(v>0){const S=p[v-1];b=m.indexOf(S)+1}else b=m.indexOf(p[0]),b===-1&&(b=0);const y=[b],R=(S,x)=>S-x;if(n){let S=b+1;const x=h.length-1;for(;S<=x;)y.push(S),S++;y.sort(R)}else{let S=b;const x=h.length-1;let P=h[S];for(;S<=x&&u.indexOf(P)<0;)S++,y.push(S),P=h[S];S=b-1;const D=0;for(;S>=D;)y.push(S),S--;y.sort(R).reverse()}return y}function Rm(e){const{pinned:t,fromKeyboard:n,gos:i,ctrlsSvc:o,useHeaderRow:r,skipScrollPadding:s}=e;let a=o.getHeaderRowContainerCtrl(t)?.eViewport,{x:l}=e;return a?(n&&(l-=a.getBoundingClientRect().left),i.get("enableRtl")&&(r&&(a=a.querySelector(".ag-header-row")),l=a.clientWidth-l),t==null&&!s&&(l+=o.get("center").getCenterViewportScrollLeft()),l):0}function Fm(e,t){for(const n of e)n.moving=t,n.dispatchColEvent("movingChanged","uiColumnMoved")}var VR=7,xm=100,uh=xm/2,_B=5,OB=100,NB=class extends X{constructor(e){super(),this.pinned=e,this.needToMoveLeft=!1,this.needToMoveRight=!1,this.lastMovedInfo=null,this.isCenterContainer=!Ce(e)}postConstruct(){this.beans.ctrlsSvc.whenReady(this,e=>{this.gridBodyCon=e.gridBodyCtrl})}getIconName(){const{pinned:e,lastDraggingEvent:t}=this,{dragItem:n}=t||{},i=n?.columns??[];for(const o of i){const r=o.getPinned();if(o.getColDef().lockPinned){if(r==e)return"move";continue}const s=n?.containerType;if(s===e||!e)return"move";if(e&&(!r||s!==e))return"pinned"}return"notAllowed"}onDragEnter(e){const t=e.dragItem,n=t.columns;if(e.dragSource.type===0)this.setColumnsVisible(n,!0,"uiColumnDragged");else{const o=t.visibleState,r=(n||[]).filter(s=>o[s.getId()]&&!s.isVisible());this.setColumnsVisible(r,!0,"uiColumnDragged")}this.gos.get("suppressMoveWhenColumnDragging")||this.attemptToPinColumns(n,this.pinned),this.onDragging(e,!0,!0)}onDragging(e=this.lastDraggingEvent,t=!1,n=!1,i=!1){const{gos:o,ctrlsSvc:r}=this.beans,s=o.get("suppressMoveWhenColumnDragging");if(i&&!s){this.finishColumnMoving();return}if(this.lastDraggingEvent=e,!e||!i&&Nt(e.hDirection))return;const a=Rm({x:e.x,pinned:this.pinned,gos:o,ctrlsSvc:r});t||this.checkCenterForScrolling(a),s?this.handleColumnDragWhileSuppressingMovement(e,t,n,a,i):this.handleColumnDragWhileAllowingMovement(e,t,n,a,i)}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,n){if(!e?.length)return;const i=e.filter(o=>!o.getColDef().lockVisible);i.length&&this.beans.colModel.setColsVisible(i,t,n)}finishColumnMoving(){this.clearHighlighted();const e=this.lastMovedInfo;if(!e)return;const{columns:t,toIndex:n}=e;this.beans.colMoves.moveColumns(t,n,"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,n,i,o){const r=this.getAllMovingColumns(e,!0);if(o){const s=this.isAttemptingToPin(r);s&&this.attemptToPinColumns(r,void 0,!0);const{fromLeft:a,xPosition:l}=this.getNormalisedXPositionInfo(r,s)||{};if(a==null||l==null){this.finishColumnMoving();return}this.moveColumnsAfterHighlight({allMovingColumns:r,xPosition:l,fromEnter:t,fakeEvent:n,fromLeft:a})}else{if(!this.beans.dragAndDrop.isDropZoneWithinThisGrid(e))return;this.highlightHoveredColumn(r,i)}}handleColumnDragWhileAllowingMovement(e,t,n,i,o){const r=this.getAllMovingColumns(e),s=this.normaliseDirection(e.hDirection)==="right",a=e.dragSource.type===1,l=this.getMoveColumnParams({allMovingColumns:r,isFromHeader:a,xPosition:i,fromLeft:s,fromEnter:t,fakeEvent:n}),u=HR({...l,finished:o});u&&(this.lastMovedInfo=u)}getAllMovingColumns(e,t=!1){const n=e.dragSource.getDragItem();let i=null;t?(i=n.columnsInSplit,i||(i=n.columns)):i=n.columns;const o=r=>r.getColDef().lockPinned?r.getPinned()==this.pinned:!0;return i?i.filter(o):[]}getMoveColumnParams(e){const{allMovingColumns:t,isFromHeader:n,xPosition:i,fromLeft:o,fromEnter:r,fakeEvent:s}=e,{gos:a,colModel:l,colMoves:u,visibleCols:h}=this.beans;return{allMovingColumns:t,isFromHeader:n,fromLeft:o,xPosition:i,pinned:this.pinned,fromEnter:r,fakeEvent:s,gos:a,colModel:l,colMoves:u,visibleCols:h}}highlightHoveredColumn(e,t){const{gos:n,colModel:i}=this.beans,o=n.get("enableRtl"),r=i.getCols().filter(h=>h.isVisible()&&h.getPinned()===this.pinned);let s=null,a=null,l=null;for(const h of r){if(a=h.getActualWidth(),s=this.getNormalisedColumnLeft(h,0,o),s!=null){const f=s+a;if(s<=t&&f>=t){l=h;break}}s=null,a=null}if(l)e.indexOf(l)!==-1&&(l=null);else{for(let h=r.length-1;h>=0;h--){const f=r[h],p=r[h].getParent();if(!p){l=f;break}const m=p?.getDisplayedLeafColumns();if(m.length){l=Pt(m);break}}if(!l)return;s=this.getNormalisedColumnLeft(l,0,o),a=l.getActualWidth()}if(l==null||s==null||a==null){this.lastHighlightedColumn?.column!==l&&this.clearHighlighted();return}let u;if(t-s<a/2){const h=r.indexOf(l);h===0?u=0:(u=1,l=r[h-1])}else u=1;(this.lastHighlightedColumn?.column!==l||this.lastHighlightedColumn?.position!==u)&&this.clearHighlighted(),WR(l,u),this.lastHighlightedColumn={column:l,position:u}}getNormalisedXPositionInfo(e,t){const{gos:n,visibleCols:i}=this.beans,o=n.get("enableRtl"),{firstMovingCol:r,column:s,position:a}=this.getColumnMoveAndTargetInfo(e,t,o);if(!r||!s||a==null)return;const l=i.allCols,u=l.indexOf(r),h=l.indexOf(s),f=a===0,p=u<h||u===h&&!f;let m=0;if(f?p&&(m-=1):p||(m+=1),h+m===u)return;const v=l[h+m];if(!v)return;const w=this.getNormalisedColumnLeft(v,20,o);return{fromLeft:p,xPosition:w}}getColumnMoveAndTargetInfo(e,t,n){const i=this.lastHighlightedColumn||{},{firstMovingCol:o,lastMovingCol:r}=BB(e);if(!o||!r||i.column||!t)return{firstMovingCol:o,...i};const a=this.getPinDirection()==="left";return{firstMovingCol:o,position:a?1:0,column:a!==n?o:r}}normaliseDirection(e){if(this.gos.get("enableRtl"))switch(e){case"left":return"right";case"right":return"left"}return e}getNormalisedColumnLeft(e,t,n){const{gos:i,ctrlsSvc:o}=this.beans,r=e.getLeft();if(r==null)return null;const s=e.getActualWidth();return Rm({x:n?r+s-t:r+t,pinned:e.getPinned(),useHeaderRow:n,skipScrollPadding:!0,gos:i,ctrlsSvc:o})}isAttemptingToPin(e){const t=this.needToMoveLeft||this.needToMoveRight,n=this.failedMoveAttempts>VR;return t&&n||e.some(i=>i.getPinned()!==this.pinned)}moveColumnsAfterHighlight(e){const{allMovingColumns:t,xPosition:n,fromEnter:i,fakeEvent:o,fromLeft:r}=e,s=this.getMoveColumnParams({allMovingColumns:t,isFromHeader:!0,xPosition:n,fromLeft:r,fromEnter:i,fakeEvent:o}),{columns:a,toIndex:l}=GR(s)||{};a&&l!=null&&(this.lastMovedInfo={columns:a,toIndex:l}),this.finishColumnMoving()}clearHighlighted(){const{lastHighlightedColumn:e}=this;e&&(WR(e.column,null),this.lastHighlightedColumn=null)}checkCenterForScrolling(e){if(!this.isCenterContainer)return;const t=this.beans.ctrlsSvc.get("center"),n=t.getCenterViewportScrollLeft(),i=n+t.getCenterWidth();let o,r;this.gos.get("enableRtl")?(o=e<n+uh,r=e>i-uh):(r=e<n+uh,o=e>i-uh),this.needToMoveRight=o,this.needToMoveLeft=r,r||o?this.ensureIntervalStarted():this.ensureIntervalCleared()}ensureIntervalStarted(){this.movingIntervalId||(this.intervalCount=0,this.failedMoveAttempts=0,this.movingIntervalId=window.setInterval(this.moveInterval.bind(this),OB),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*_B,e>xm&&(e=xm);let t=null;const n=this.gridBodyCon.scrollFeature;if(this.needToMoveLeft?t=n.scrollHorizontally(-e):this.needToMoveRight&&(t=n.scrollHorizontally(e)),t!==0)this.onDragging(this.lastDraggingEvent),this.failedMoveAttempts=0;else{this.failedMoveAttempts++;const{pinnedCols:i,dragAndDrop:o,gos:r}=this.beans;if(this.failedMoveAttempts<=VR+1||!i)return;if(o.setDragImageCompIcon("pinned"),!r.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,n=!1){const i=(e||[]).filter(s=>!s.getColDef().lockPinned);if(!i.length)return 0;n&&(t=this.getPinDirection());const{pinnedCols:o,dragAndDrop:r}=this.beans;return o?.setColsPinned(i,t,"uiColumnDragged"),n&&r.nudge(),i.length}destroy(){super.destroy(),this.lastDraggingEvent=null,this.clearHighlighted(),this.lastMovedInfo=null}};function WR(e,t){e.highlighted!==t&&(e.highlighted=t,e.dispatchColEvent("headerHighlightChanged","uiColumnMoved"))}function BB(e){const t=e.length;let n,i;for(let o=0;o<t;o++){if(!n){const r=e[o];r.getLeft()!=null&&(n=r)}if(!i){const r=e[t-1-o];r.getLeft()!=null&&(i=r)}if(n&&i)break}return{firstMovingCol:n,lastMovingCol:i}}var GB=class extends X{constructor(e,t){super(),this.pinned=e,this.eContainer=t}postConstruct(){const{ctrlsSvc:e,dragAndDrop:t}=this.beans,n=this.pinned;e.whenReady(this,i=>{let o;const r=i.gridBodyCtrl.eBodyViewport;switch(n){case"left":o=[[r,i.left.eContainer],[i.bottomLeft.eContainer],[i.topLeft.eContainer]];break;case"right":o=[[r,i.right.eContainer],[i.bottomRight.eContainer],[i.topRight.eContainer]];break;default:o=[[r,i.center.eViewport],[i.bottomCenter.eViewport],[i.topCenter.eViewport]];break}this.eSecondaryContainers=o}),this.moveColumnFeature=this.createManagedBean(new NB(n)),this.bodyDropPivotTarget=this.createManagedBean(new EB(n)),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()}};function zR(e,t){const n=[],i=[],o=[];return e.forEach(s=>{const a=s.getColDef().lockPosition;a==="right"?o.push(s):a==="left"||a===!0?n.push(s):i.push(s)}),t.get("enableRtl")?[...o,...i,...n]:[...n,...i,...o]}function UR(e,t){let n=!0;return or(null,t,i=>{if(!Ln(i))return;const o=i;if(!o.getColGroupDef()?.marryChildren)return;const a=[];for(const p of o.getLeafColumns()){const m=e.indexOf(p);a.push(m)}const l=Math.max.apply(Math,a),u=Math.min.apply(Math,a),h=l-u,f=o.getLeafColumns().length-1;h>f&&(n=!1)}),n}var HB=class extends X{constructor(){super(...arguments),this.beanName="colMoves"}moveColumnByIndex(e,t,n){const i=this.beans.colModel.getCols();if(!i)return;const o=i[e];this.moveColumns([o],t,n)}moveColumns(e,t,n,i=!0){const{colModel:o,colAnimation:r,visibleCols:s,eventSvc:a}=this.beans,l=o.getCols();if(!l)return;if(t>l.length-e.length){se(30,{toIndex:t});return}r?.start();const u=o.getColsForKeys(e);this.doesMovePassRules(u,t)&&(FS(o.getCols(),u,t),s.refresh(n),a.dispatchEvent({type:"columnMoved",columns:u,column:u.length===1?u[0]:null,toIndex:t,finished:i,source:n})),r?.finish()}doesMovePassRules(e,t){const n=this.getProposedColumnOrder(e,t);return this.doesOrderPassRules(n)}doesOrderPassRules(e){const{colModel:t,gos:n}=this.beans;return!(!UR(e,t.getColTree())||!(o=>{const r=u=>u?u==="left"||u===!0?-1:1:0,s=n.get("enableRtl");let a=s?1:-1,l=!0;for(const u of o){const h=r(u.getColDef().lockPosition);s?h>a&&(l=!1):h<a&&(l=!1),a=h}return l})(e))}getProposedColumnOrder(e,t){const i=this.beans.colModel.getCols().slice();return FS(i,e,t),i}createBodyDropTarget(e,t){return new GB(e,t)}moveHeader(e,t,n,i,o){const{ctrlsSvc:r,gos:s,colModel:a,visibleCols:l,focusSvc:u}=this.beans,h=t.getBoundingClientRect(),f=h.left,p=Zt(n),m=p?h.width:n.getActualWidth(),v=e==="left"!==s.get("enableRtl"),w=Rm({x:v?f-20:f+m+20,pinned:i,fromKeyboard:!0,gos:s,ctrlsSvc:r}),b=u.focusedHeader;HR({allMovingColumns:p?n.getLeafColumns():[n],isFromHeader:!0,fromLeft:e==="right",xPosition:w,pinned:i,fromEnter:!1,fakeEvent:!1,gos:s,colModel:a,colMoves:this,visibleCols:l,finished:!0});let y;if(p){const R=n.getDisplayedLeafColumns();y=v?R[0]:Pt(R)}else y=n;if(r.getScrollFeature().ensureColumnVisible(y,"auto"),(!o.isAlive()||s.get("ensureDomOrder"))&&b){let R;if(p){const S=n.getGroupId(),x=n.getLeafColumns();if(!x.length)return;const P=x[0].getParent();if(!P)return;R=VB(P,S)}else R=n;R&&u.focusHeaderPosition({headerPosition:{...b,column:R}})}}setDragSourceForHeader(e,t,n){const{gos:i,colModel:o,dragAndDrop:r,visibleCols:s}=this.beans;let a=!i.get("suppressDragLeaveHidesColumns");const l=Zt(t),u=l?t.getProvidedColumnGroup().getLeafColumns():[t],f={type:1,eElement:e,getDefaultIconName:()=>a?"hide":"notAllowed",getDragItem:l?()=>zB(t,s.allCols):()=>WB(t),dragItemName:n,onDragStarted:()=>{a=!i.get("suppressDragLeaveHidesColumns"),Fm(u,!0)},onDragStopped:()=>Fm(u,!1),onDragCancelled:()=>Fm(u,!1),onGridEnter:p=>{if(a){const{columns:m=[],visibleState:v}=p??{},w=l?y=>!v||v[y.getColId()]:()=>!0,b=m.filter(y=>!y.getColDef().lockVisible&&w(y));o.setColsVisible(b,!0,"uiColumnMoved")}},onGridExit:p=>{if(a){const m=p?.columns?.filter(v=>!v.getColDef().lockVisible)||[];o.setColsVisible(m,!1,"uiColumnMoved")}}};return r.addDragSource(f,!0),f}};function VB(e,t){for(;e;){if(e.getGroupId()===t)return e;e=e.getParent()}}function WB(e){const t={};return t[e.getId()]=e.isVisible(),{columns:[e],visibleState:t,containerType:e.pinned}}function zB(e,t){const n=e.getProvidedColumnGroup().getLeafColumns(),i={};for(const a of n)i[a.getId()]=a.isVisible();const o=[];for(const a of t)n.indexOf(a)>=0&&(o.push(a),So(n,a));for(const a of n)o.push(a);const r=[],s=e.getLeafColumns();for(const a of o)s.indexOf(a)!==-1&&r.push(a);return{columns:o,columnsInSplit:r,visibleState:i,containerType:r[0]?.pinned}}var UB={moduleName:"ColumnMove",version:me,beans:[HB,FB],apiFunctions:{moveColumnByIndex:xB,moveColumns:PB},dependsOn:[BR],css:[RB]},$B=class extends X{constructor(){super(...arguments),this.beanName="autoWidthCalc"}postConstruct(){this.beans.ctrlsSvc.whenReady(this,e=>{this.centerRowContainerCtrl=e.center})}getPreferredWidthForColumn(e,t){const n=this.getHeaderCellForColumn(e);if(!n)return-1;const i=this.beans.rowRenderer.getAllCellsNotSpanningForColumn(e);return t||i.push(n),this.getPreferredWidthForElements(i)}getPreferredWidthForColumnGroup(e){const t=this.getHeaderCellForColumn(e);return t?this.getPreferredWidthForElements([t]):-1}getPreferredWidthForElements(e,t){const n=document.createElement("form");n.style.position="fixed";const i=this.centerRowContainerCtrl.eContainer;for(const r of e)this.cloneItemIntoDummy(r,n);i.appendChild(n);const o=Math.ceil(n.getBoundingClientRect().width);return n.remove(),t=t??this.gos.get("autoSizePadding"),o+t}getHeaderCellForColumn(e){let t=null;for(const n of this.beans.ctrlsSvc.getHeaderRowContainerCtrls()){const i=n.getHtmlElementForColumnHeader(e);i!=null&&(t=i)}return t}cloneItemIntoDummy(e,t){const n=e.cloneNode(!0);n.style.width="",n.style.position="static",n.style.left="";const i=document.createElement("div"),o=i.classList;["ag-header-cell","ag-header-group-cell"].some(a=>n.classList.contains(a))?(o.add("ag-header","ag-header-row"),i.style.position="static"):o.add("ag-row");let s=e.parentElement;for(;s;){if(["ag-header-row","ag-row"].some(l=>s.classList.contains(l))){for(let l=0;l<s.classList.length;l++){const u=s.classList[l];u!="ag-row-position-absolute"&&o.add(u)}break}s=s.parentElement}i.appendChild(n),t.appendChild(i)}},$R={moduleName:"AutoWidth",version:me,beans:[$B]};function jB(e,t,n=!0,i="api"){e.colResize?.setColumnWidths(t,!1,n,i)}function jR(e,t){if(!e||e.length==0)return;const n=t(e[0]);for(let i=1;i<e.length;i++)if(n!==t(e[i]))return;return n}function KR(e,t,n){if(!t.length)return;const i=t.length===1?t[0]:null,o=jR(t,r=>r.getPinned());e.dispatchEvent({type:"columnPinned",pinned:o??null,columns:t,column:i,source:n})}function KB(e,t,n){if(!t.length)return;const i=t.length===1?t[0]:null,o=jR(t,r=>r.isVisible());e.dispatchEvent({type:"columnVisible",visible:o,columns:t,column:i,source:n})}function qB(e,t,n,i){e.dispatchEvent({type:t,columns:n,column:n&&n.length==1?n[0]:null,source:i})}function Ja(e,t,n,i,o=null){t?.length&&e.dispatchEvent({type:"columnResized",columns:t,column:t.length===1?t[0]:null,flexColumns:o,finished:n,source:i})}var QB=class extends X{constructor(e,t,n,i){super(),this.comp=e,this.eResize=t,this.pinned=n,this.columnGroup=i}postConstruct(){if(!this.columnGroup.isResizable()){this.comp.setResizableDisplayed(!1);return}const{horizontalResizeSvc:e,gos:t,colAutosize:n}=this.beans,i=e.addResizeBar({eResizeBar:this.eResize,onResizeStart:this.onResizeStart.bind(this),onResizing:this.onResizing.bind(this,!1),onResizeEnd:this.onResizing.bind(this,!0)});this.addDestroyFunc(i),!t.get("suppressAutoSize")&&n&&this.addDestroyFunc(n.addColumnGroupResize(this.eResize,this.columnGroup,()=>this.resizeLeafColumnsToFit("uiColumnResized")))}onResizeStart(e){const{columnsToResize:t,resizeStartWidth:n,resizeRatios:i,groupAfterColumns:o,groupAfterStartWidth:r,groupAfterRatios:s}=this.getInitialValues(e);this.resizeCols=t,this.resizeStartWidth=n,this.resizeRatios=i,this.resizeTakeFromCols=o,this.resizeTakeFromStartWidth=r,this.resizeTakeFromRatios=s,this.toggleColumnResizing(!0)}onResizing(e,t,n="uiColumnResized"){const i=this.normaliseDragChange(t),o=this.resizeStartWidth+i;this.resizeColumnsFromLocalValues(o,n,e)}getInitialValues(e){const t=l=>l.reduce((u,h)=>u+h.getActualWidth(),0),n=(l,u)=>l.map(h=>h.getActualWidth()/u),i=this.getColumnsToResize(),o=t(i),r=n(i,o),s={columnsToResize:i,resizeStartWidth:o,resizeRatios:r};let a=null;if(e&&(a=this.beans.colGroupSvc?.getGroupAtDirection(this.columnGroup,"After")??null),a){const l=a.getDisplayedLeafColumns(),u=s.groupAfterColumns=l.filter(f=>f.isResizable()),h=s.groupAfterStartWidth=t(u);s.groupAfterRatios=n(u,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),n=this.getInitialValues();t>n.resizeStartWidth&&this.resizeColumns(n,t,e,!0)}resizeColumnsFromLocalValues(e,t,n=!0){if(!this.resizeCols||!this.resizeRatios)return;const i={columnsToResize:this.resizeCols,resizeStartWidth:this.resizeStartWidth,resizeRatios:this.resizeRatios,groupAfterColumns:this.resizeTakeFromCols,groupAfterStartWidth:this.resizeTakeFromStartWidth,groupAfterRatios:this.resizeTakeFromRatios};this.resizeColumns(i,e,t,n)}resizeColumns(e,t,n,i=!0){const{columnsToResize:o,resizeStartWidth:r,resizeRatios:s,groupAfterColumns:a,groupAfterStartWidth:l,groupAfterRatios:u}=e,h=[];if(h.push({columns:o,ratios:s,width:t}),a){const f=t-r;h.push({columns:a,ratios:u,width:l-f})}this.beans.colResize?.resizeColumnSets({resizeSets:h,finished:i,source:n}),i&&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}},YB=class extends X{constructor(e,t,n,i,o){super(),this.pinned=e,this.column=t,this.eResize=n,this.comp=i,this.ctrl=o}postConstruct(){const e=[];let t,n;const i=()=>{if(bt(this.eResize,t),!t)return;const{horizontalResizeSvc:s,colAutosize:a}=this.beans,l=s.addResizeBar({eResizeBar:this.eResize,onResizeStart:this.onResizeStart.bind(this),onResizing:this.onResizing.bind(this,!1),onResizeEnd:this.onResizing.bind(this,!0)});e.push(l),n&&a&&e.push(a.addColumnAutosizeListeners(this.eResize,this.column))},o=()=>{for(const s of e)s();e.length=0},r=()=>{const s=this.column.isResizable(),a=!this.gos.get("suppressAutoSize")&&!this.column.getColDef().suppressAutoSize;(s!==t||a!==n)&&(t=s,n=a,o(),i())};r(),this.addDestroyFunc(o),this.ctrl.setRefreshFunction("resize",r)}onResizing(e,t){const{column:n,lastResizeAmount:i,resizeStartWidth:o,beans:r}=this,s=this.normaliseResizeAmount(t),a=o+s,l=[{key:n,newWidth:a}],{pinnedCols:u,ctrlsSvc:h,colResize:f}=r;if(this.column.getPinned()){const p=u?.leftWidth??0,m=u?.rightWidth??0,v=dc(h.getGridBodyCtrl().eBodyViewport)-50;if(p+m+(s-i)>v)return}this.lastResizeAmount=s,f?.setColumnWidths(l,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 n=this.pinned!=="left",i=this.pinned==="right";return this.gos.get("enableRtl")?n&&(t*=-1):i&&(t*=-1),t}},ZB=class extends X{constructor(){super(...arguments),this.beanName="colResize"}setColumnWidths(e,t,n,i){const o=[],{colModel:r,gos:s,visibleCols:a}=this.beans;for(const l of e){const u=r.getColDefCol(l.key)||r.getCol(l.key);if(!u)continue;if(o.push({width:l.newWidth,ratios:[1],columns:[u]}),s.get("colResizeDefault")==="shift"&&(t=!t),t){const f=a.getColAfter(u);if(!f)continue;const p=u.getActualWidth()-l.newWidth,m=f.getActualWidth()+p;o.push({width:m,ratios:[1],columns:[f]})}}o.length!==0&&this.resizeColumnSets({resizeSets:o,finished:n,source:i})}resizeColumnSets(e){const{resizeSets:t,finished:n,source:i}=e;if(!(!t||t.every(h=>XB(h)))){if(n){const h=t&&t.length>0?t[0].columns:null;Ja(this.eventSvc,h,n,i)}return}const r=[],s=[];for(const h of t){const{width:f,columns:p,ratios:m}=h,v={},w={};for(const R of p)s.push(R);let b=!0,y=0;for(;b;){if(y++,y>1e3){gt(31);break}b=!1;const R=[];let S=0,x=f;p.forEach((D,A)=>{if(w[D.getId()])x-=v[D.getId()];else{R.push(D);const B=m[A];S+=B}});const P=1/S;R.forEach((D,A)=>{const N=A===R.length-1;let B;N?B=x:(B=Math.round(m[A]*f*P),x-=B);const L=D.getMinWidth(),M=D.getMaxWidth();B<L?(B=L,w[D.getId()]=!0,b=!0):M>0&&B>M&&(B=M,w[D.getId()]=!0,b=!0),v[D.getId()]=B})}for(const R of p){const S=v[R.getId()];R.getActualWidth()!==S&&(R.setActualWidth(S,i),r.push(R))}}const a=r.length>0;let l=[];if(a){const{colFlex:h,visibleCols:f,colViewport:p}=this.beans;l=h?.refreshFlexedColumns({resizingCols:s,skipSetLeft:!0})??[],f.setLeftValues(i),f.updateBodyWidths(),p.checkViewportColumns()}const u=s.concat(l);(a||n)&&Ja(this.eventSvc,u,n,i,l)}resizeHeader(e,t,n){if(!e.isResizable())return;const i=e.getActualWidth(),o=e.getMinWidth(),r=e.getMaxWidth(),s=Math.min(Math.max(i+t,o),r);this.setColumnWidths([{key:e,newWidth:s}],n,!0,"uiColumnResized")}createResizeFeature(e,t,n,i,o){return new YB(e,t,n,i,o)}createGroupResizeFeature(e,t,n,i){return new QB(e,t,n,i)}};function XB(e){const{columns:t,width:n}=e;let i=0,o=0,r=!0;for(const l of t){const u=l.getMinWidth();i+=u||0;const h=l.getMaxWidth();h>0?o+=h:r=!1}const s=n>=i,a=!r||n<=o;return s&&a}var JB={moduleName:"ColumnResize",version:me,beans:[ZB],apiFunctions:{setColumnWidths:jB},dependsOn:[SB,$R]},eG=class extends X{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)}},tG=class extends am{constructor(){super(...arguments),this.onSuppressColMoveChange=()=>{!this.isAlive()||this.isSuppressMoving()?this.removeDragSource():this.dragSource||this.setDragSource(this.eGui)}}wireComp(e,t,n,i,o){const{column:r,beans:s}=this,{context:a,colNames:l,colHover:u,rangeSvc:h,colResize:f}=s;this.comp=e,o=Dc(this,a,o),this.setGui(t,o),this.displayName=l.getDisplayNameForColumnGroup(r,"header"),this.refreshHeaderStyles(),this.addClasses(),this.setupMovingCss(o),this.setupExpandable(o),this.setupTooltip(),this.refreshAnnouncement(),this.setupAutoHeight({wrapperElement:i,compBean:o}),this.setupUserComp(),this.addHeaderMouseListeners(o,i),this.addManagedPropertyListener("groupHeaderHeight",this.refreshMaxHeaderHeight.bind(this)),this.refreshMaxHeaderHeight();const p=this.rowCtrl.pinned,m=r.getProvidedColumnGroup().getLeafColumns();u?.createHoverFeature(o,m,t),h?.createRangeHighlightFeature(o,r,e),o.createManagedBean(new sm(r,t,s)),o.createManagedBean(new eG(e,r)),f?this.resizeFeature=o.createManagedBean(f.createGroupResizeFeature(e,n,p,r)):e.setResizableDisplayed(!1),o.createManagedBean(new Rc(t,{shouldStopEventPropagation:this.shouldStopEventPropagation.bind(this),onTabKeyDown:()=>{},handleKeyDown:this.handleKeyDown.bind(this),onFocusIn:this.onFocusIn.bind(this)})),this.addHighlightListeners(o,m),this.addManagedEventListeners({cellSelectionChanged:()=>this.refreshAnnouncement()}),o.addManagedPropertyListener("suppressMovableColumns",this.onSuppressColMoveChange),this.addResizeAndMoveKeyboardListeners(o),o.addDestroyFunc(()=>this.clearComponent())}getHeaderClassParams(){const{column:e,beans:t}=this,n=e.getDefinition();return We(t.gos,{colDef:n,columnGroup:e,floatingFilter:!1})}refreshMaxHeaderHeight(){const{gos:e,comp:t}=this,n=e.get("groupHeaderHeight");n!=null?n===0?t.setHeaderWrapperHidden(!0):t.setHeaderWrapperMaxHeight(n):(t.setHeaderWrapperHidden(!1),t.setHeaderWrapperMaxHeight(null))}addHighlightListeners(e,t){if(this.beans.gos.get("suppressMoveWhenColumnDragging"))for(const n of t)e.addManagedListeners(n,{headerHighlightChanged:this.onLeafColumnHighlightChanged.bind(this,n)})}onLeafColumnHighlightChanged(e){const t=this.column.getDisplayedLeafColumns(),n=t[0]===e,i=Pt(t)===e;if(!n&&!i)return;const o=e.getHighlighted(),r=!!this.rowCtrl.getHeaderCellCtrls().find(l=>l.column.isMoving());let s=!1,a=!1;if(r){const l=this.beans.gos.get("enableRtl"),u=o===1,h=o===0;n&&(l?a=u:s=h),i&&(l?s=h:a=u)}this.comp.toggleCss("ag-header-highlight-before",s),this.comp.toggleCss("ag-header-highlight-after",a)}resizeHeader(e,t){const{resizeFeature:n}=this;if(!n)return;const i=n.getInitialValues(t);n.resizeColumns(i,i.resizeStartWidth+e,"uiColumnResized",!0)}resizeLeafColumnsToFit(e){this.resizeFeature?.resizeLeafColumnsToFit(e)}setupUserComp(){const{colGroupSvc:e,userCompFactory:t,gos:n,enterpriseMenuFactory:i}=this.beans,o=this.column,r=o.getProvidedColumnGroup(),s=We(n,{displayName:this.displayName,columnGroup:o,setExpanded:l=>{e.setColumnGroupOpened(r,l,"gridInitializing")},setTooltip:(l,u)=>{n.assertModuleRegistered("Tooltip",3),this.setupTooltip(l,u)},showColumnMenu:(l,u)=>i?.showMenuAfterButtonClick(r,l,"columnMenu",u),showColumnMenuAfterMouseClick:(l,u)=>i?.showMenuAfterMouseEvent(r,l,"columnMenu",u),eGridHeader:this.eGui}),a=bO(t,s);a&&this.comp.setUserCompDetails(a)}addHeaderMouseListeners(e,t){const{column:n,comp:i,beans:{rangeSvc:o},gos:r}=this,s=h=>this.handleMouseOverChange(h.type==="mouseenter"),a=()=>this.dispatchColumnMouseEvent("columnHeaderClicked",n.getProvidedColumnGroup()),l=h=>this.handleContextMenuMouseEvent(h,void 0,n.getProvidedColumnGroup());e.addManagedListeners(this.eGui,{mouseenter:s,mouseleave:s,click:a,contextmenu:l}),i.toggleCss("ag-header-group-cell-selectable",Ua(r));const u=o?.createHeaderGroupCellMouseListenerFeature(this.column,t);u&&this.createManagedBean(u)}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 n=this.refreshExpanded.bind(this);e.addManagedListeners(t,{expandedChanged:n,expandableChanged:n})}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(),n=aR(t,this.gos,null,e);e.isPadding()?(n.push("ag-header-group-cell-no-group"),e.getLeafColumns().every(o=>o.isSpanHeaderHeight())&&n.push("ag-header-span-height")):(n.push("ag-header-group-cell-with-group"),t?.wrapHeaderText&&n.push("ag-header-cell-wrap-text"));for(const i of n)this.comp.toggleCss(i,!0)}setupMovingCss(e){const{column:t}=this,i=t.getProvidedColumnGroup().getLeafColumns(),o=()=>this.comp.toggleCss("ag-header-cell-moving",t.isMoving());for(const r of i)e.addManagedListeners(r,{movingChanged:o});o()}onFocusIn(e){this.eGui.contains(e.relatedTarget)||(this.focusThis(),this.announceAriaDescription())}handleKeyDown(e){if(super.handleKeyDown(e),!this.getWrapperHasFocus())return;const{column:n,expandable:i,gos:o,beans:r}=this,s=Ua(o);if(e.key==K.ENTER){if(s&&!e.altKey)r.rangeSvc?.handleColumnSelection(n,e);else if(i){const a=!n.isExpanded();r.colGroupSvc.setColumnGroupOpened(n.getProvidedColumnGroup(),a,"uiColumnExpanded")}}}refreshAnnouncement(){let e;const{gos:t}=this;Ua(t)&&(e=this.getLocaleTextFunc()("ariaColumnGroupCellSelection","Press Enter to toggle selection for all visible cells in this column group")),this.ariaAnnouncement=e}announceAriaDescription(){const{beans:e,eGui:t,ariaAnnouncement:n}=this;!n||!t.contains(At(e))||e.ariaAnnounce?.announceValue(n,"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 nG(e,t,n){e.colGroupSvc?.setColumnGroupOpened(t,n,"api")}function iG(e,t,n){return e.colGroupSvc?.getColumnGroup(t,n)??null}function oG(e,t){return e.colGroupSvc?.getProvidedColGroup(t)??null}function rG(e,t,n){return e.colNames.getDisplayNameForColumnGroup(t,n)||""}function sG(e){return e.colGroupSvc?.getColumnGroupState()??[]}function aG(e,t){e.colGroupSvc?.setColumnGroupState(t,"api")}function lG(e){e.colGroupSvc?.resetColumnGroupState("api")}function cG(e){return e.visibleCols.treeLeft}function uG(e){return e.visibleCols.treeCenter}function dG(e){return e.visibleCols.treeRight}function hG(e){return e.visibleCols.getAllTrees()}var qR=class{constructor(){this.existingIds={}}getInstanceIdForKey(e){const t=this.existingIds[e];let n;return typeof t!="number"?n=0:n=t+1,this.existingIds[e]=n,n}};function fG(e,t){for(let n=0;n<t.length;n++){const i=e.indexOf(t[n]);i>=0&&(e[i]=e[e.length-1],e.pop())}}var pG=class extends X{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:n,colModel:i,colGroupSvc:o,colViewport:r,selectionColSvc:s}=this.beans;t||this.buildTrees(i,o),o?.updateOpenClosedVisibility(),this.leftCols=Pm(this.treeLeft),this.centerCols=Pm(this.treeCenter),this.rightCols=Pm(this.treeRight),s?.refreshVisibility(this.leftCols,this.centerCols,this.rightCols),this.joinColsAriaOrder(i),this.joinCols(),this.headerGroupRowCount=this.getHeaderRowCount(),this.setLeftValues(e),this.autoHeightCols=this.allCols.filter(a=>a.isAutoHeight()),n?.refreshFlexedColumns(),this.updateBodyWidths(),this.setFirstRightAndLastLeftPinned(i,this.leftCols,this.rightCols,e),r.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 n=t.getParent();for(;n;){if(!n.isPadding()){const i=n.getProvidedColumnGroup().getLevel()+1;i>e&&(e=i);break}n=n.getParent()}}return e}updateBodyWidths(){const e=rr(this.centerCols),t=rr(this.leftCols),n=rr(this.rightCols);this.isBodyWidthDirty=this.bodyWidth!==e,(this.bodyWidth!==e||this.leftWidth!==t||this.rightWidth!==n)&&(this.bodyWidth=e,this.leftWidth=t,this.rightWidth=n,this.eventSvc.dispatchEvent({type:"columnContainerWidthChanged"}),this.eventSvc.dispatchEvent({type:"displayedColumnsWidthChanged"}))}setLeftValues(e){this.setLeftValuesOfCols(e),this.setLeftValuesOfGroups()}setFirstRightAndLastLeftPinned(e,t,n,i){let o,r;this.gos.get("enableRtl")?(o=t?t[0]:null,r=n?Pt(n):null):(o=t?Pt(t):null,r=n?n[0]:null);for(const s of e.getCols())s.setLastLeftPinned(s===o,i),s.setFirstRightPinned(s===r,i)}buildTrees(e,t){const n=e.getColsToShow(),i=n.filter(l=>l.getPinned()=="left"),o=n.filter(l=>l.getPinned()=="right"),r=n.filter(l=>l.getPinned()!="left"&&l.getPinned()!="right"),s=new qR,a=l=>t?t.createColumnGroups(l):l.columns;this.treeLeft=a({columns:i,idCreator:s,pinned:"left",oldDisplayedGroups:this.treeLeft}),this.treeRight=a({columns:o,idCreator:s,pinned:"right",oldDisplayedGroups:this.treeRight}),this.treeCenter=a({columns:r,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(),n=[],i=[],o=[];for(const r of t){const s=r.getPinned();s?s===!0||s==="left"?n.push(r):o.push(r):i.push(r)}this.ariaOrderColumns=n.concat(i).concat(o)}getAriaColIndex(e){let t;return Zt(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)Zt(t)&&t.checkLeft()}setLeftValuesOfCols(e){const{colModel:t}=this.beans;if(!t.getColDefCols())return;const i=t.getCols().slice(0),o=this.gos.get("enableRtl");for(const r of[this.leftCols,this.rightCols,this.centerCols]){if(o){let s=rr(r);for(const a of r)s-=a.getActualWidth(),a.setLeft(s,e)}else{let s=0;for(const a of r)a.setLeft(s,e),s+=a.getActualWidth()}fG(i,r)}for(const r of i)r.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:n}}=this;return n.colSpanActive?this.getColsForRow(e,t):t}getRightColsForRow(e){const{rightCols:t,beans:{colModel:n}}=this;return n.colSpanActive?this.getColsForRow(e,t):t}getColsForRow(e,t,n,i){const o=[];let r=null;for(let s=0;s<t.length;s++){const a=t[s],l=t.length-s,u=Math.min(a.getColSpan(e),l),h=[a];if(u>1){const p=u-1;for(let m=1;m<=p;m++)h.push(t[s+m]);s+=p}let f;if(n){f=!1;for(const p of h)n(p)&&(f=!0)}else f=!0;f&&(o.length===0&&r&&i&&i(a)&&o.push(r),o.push(a)),r=a}return o}getContainerWidth(e){switch(e){case"left":return this.leftWidth;case"right":return this.rightWidth;default:return this.bodyWidth}}getColBefore(e){const t=this.allCols,n=t.indexOf(e);return n>0?t[n-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};Vs(this.treeCenter,!1,e),Vs(this.treeLeft,!1,e),Vs(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 n=0;n<t.length;n++){const i=this[t[n]];if(i.length)return e?Pt(i):i[0]}return null}getColAfter(e){const t=this.allCols,n=t.indexOf(e);return n<t.length-1?t[n+1]:null}getColsLeftWidth(){return rr(this.leftCols)}getDisplayedColumnsRightWidth(){return rr(this.rightCols)}isColAtEdge(e,t){const n=this.allCols;if(!n.length)return!1;const i=t==="first";let o;if(Zt(e)){const r=e.getDisplayedLeafColumns();if(!r.length)return!1;o=i?r[0]:Pt(r)}else o=e;return(i?n[0]:Pt(n))===o}};function Vs(e,t,n){if(e)for(let i=0;i<e.length;i++){const o=e[i];if(Zt(o)){const r=t?o.getDisplayedChildren():o.getChildren();Vs(r,t,n)}n(o)}}function Pm(e){const t=[];return Vs(e,!0,n=>{Gr(n)&&t.push(n)}),t}var gG=class extends X{constructor(){super(...arguments),this.beanName="colGroupSvc"}getColumnGroupState(){const e=[],t=this.beans.colModel.getColTree();return or(null,t,n=>{Ln(n)&&e.push({groupId:n.getGroupId(),open:n.isExpanded()})}),e}resetColumnGroupState(e){const t=this.beans.colModel.getColDefColTree();if(!t)return;const n=[];or(null,t,i=>{if(Ln(i)){const o=i.getColGroupDef(),r={groupId:i.getGroupId(),open:o?o.openByDefault:void 0};n.push(r)}}),this.setColumnGroupState(n,e)}setColumnGroupState(e,t){const{colModel:n,colAnimation:i,visibleCols:o,eventSvc:r}=this.beans;if(!n.getColTree().length)return;i?.start();const a=[];for(const l of e){const u=l.groupId,h=l.open,f=this.getProvidedColGroup(u);f&&f.isExpanded()!==h&&(f.setExpanded(h),a.push(f))}o.refresh(t,!0),a.length&&r.dispatchEvent({type:"columnGroupOpened",columnGroup:a.length===1?a[0]:void 0,columnGroups:a}),i?.finish()}setColumnGroupOpened(e,t,n){let i;Ln(e)?i=e.getId():i=e||"",this.setColumnGroupState([{groupId:i,open:t}],n)}getProvidedColGroup(e){let t=null;return or(null,this.beans.colModel.getColTree(),n=>{Ln(n)&&n.getId()===e&&(t=n)}),t}getGroupAtDirection(e,t){const n=e.getProvidedColumnGroup().getLevel()+e.getPaddingLevel(),i=e.getDisplayedLeafColumns(),o=t==="After"?Pt(i):i[0],r=`getCol${t}`;for(;;){const s=this.beans.visibleCols[r](o);if(!s)return null;const a=this.getColGroupAtLevel(s,n);if(a!==e)return a}}getColGroupAtLevel(e,t){let n=e.getParent(),i,o;for(;i=n.getProvidedColumnGroup().getLevel(),o=n.getPaddingLevel(),!(i+o<=t);)n=n.getParent();return n}updateOpenClosedVisibility(){const e=this.beans.visibleCols.getAllTrees();Vs(e,!1,t=>{Zt(t)&&t.calculateDisplayedColumns()})}getColumnGroup(e,t){if(!e)return null;if(Zt(e))return e;const n=this.beans.visibleCols.getAllTrees(),i=typeof t=="number";let o=null;return Vs(n,!1,r=>{if(Zt(r)){const s=r;let a;i?a=e===s.getGroupId()&&t===s.getPartId():a=e===s.getGroupId(),a&&(o=s)}}),o}createColumnGroups(e){const{columns:t,idCreator:n,pinned:i,oldDisplayedGroups:o,isStandaloneStructure:r}=e,s=this.mapOldGroupsById(o),a=[];let l=t;for(;l.length;){const u=l;l=[];let h=0;const f=p=>{const m=h;h=p;const v=u[m],b=(Zt(v)?v.getProvidedColumnGroup():v).getOriginalParent();if(b==null){for(let R=m;R<p;R++)a.push(u[R]);return}const y=this.createColumnGroup(b,n,s,i,r);for(let R=m;R<p;R++)y.addChild(u[R]);l.push(y)};for(let p=1;p<u.length;p++){const m=u[p],w=(Zt(m)?m.getProvidedColumnGroup():m).getOriginalParent(),b=u[h],R=(Zt(b)?b.getProvidedColumnGroup():b).getOriginalParent();w!==R&&f(p)}h<u.length&&f(u.length)}return r||this.setupParentsIntoCols(a,null),a}createProvidedColumnGroup(e,t,n,i,o,r,s){const a=o.getUniqueKey(t.groupId||null,null),l=m0(this.beans,t,a),u=new Wd(l,a,!1,n);this.createBean(u);const h=this.findExistingGroup(t,r);h&&r.splice(h.idx,1);const f=h?.group;f&&u.setExpanded(f.isExpanded());const p=v0(this.beans,l.children,n+1,e,i,o,r,s);return u.setChildren(p),u}balanceColumnTree(e,t,n,i){const o=[];for(let r=0;r<e.length;r++){const s=e[r];if(Ln(s)){const a=s,l=this.balanceColumnTree(a.getChildren(),t+1,n,i);a.setChildren(l),o.push(a)}else{let a,l;for(let u=t;u<n;u++){const h=i.getUniqueKey(null,null),f=m0(this.beans,null,h),p=new Wd(f,h,!0,u);this.createBean(p),l&&l.setChildren([p]),l=p,a||(a=l)}if(a&&l)if(o.push(a),e.some(h=>Ln(h))){l.setChildren([s]);continue}else{l.setChildren(e);break}o.push(s)}}return o}findDepth(e){let t=0,n=e;for(;n?.[0]&&Ln(n[0]);)t++,n=n[0].getChildren();return t}findMaxDepth(e,t){let n=t;for(let i=0;i<e.length;i++){const o=e[i];if(Ln(o)){const r=o,s=this.findMaxDepth(r.getChildren(),t+1);n<s&&(n=s)}}return n}balanceTreeForAutoCols(e,t){const n=[];for(const i of e){let o=i;for(let r=t-1;r>=0;r--){const s=new Wd(null,`FAKE_PATH_${i.getId()}_${r}`,!0,r);this.createBean(s),s.setChildren([o]),o.originalParent=s,o=s}t===0&&(i.originalParent=null),n.push(o)}return n}findExistingGroup(e,t){if(e.groupId!=null)for(let i=0;i<t.length;i++){const o=t[i];if(o.getColGroupDef()&&o.getId()===e.groupId)return{idx:i,group:o}}}createColumnGroup(e,t,n,i,o){const r=e.getGroupId(),s=t.getInstanceIdForKey(r),a=R0(r,s);let l=n[a];return l&&l.getProvidedColumnGroup()!==e&&(l=null),Ce(l)?l.reset():(l=new Sc(e,r,s,i),o||this.createBean(l)),l}mapOldGroupsById(e){const t={},n=i=>{for(const o of i)if(Zt(o)){const r=o;t[o.getUniqueId()]=r,n(r.getChildren())}};return e&&n(e),t}setupParentsIntoCols(e,t){for(const n of e??[])if(n.parent!==t&&(this.beans.colViewport.colsWithinViewportHash=""),n.parent=t,Zt(n)){const i=n;this.setupParentsIntoCols(i.getChildren(),i)}}},mG={moduleName:"ColumnGroup",version:me,dynamicBeans:{headerGroupCellCtrl:tG},beans:[gG],apiFunctions:{getAllDisplayedColumnGroups:hG,getCenterDisplayedColumnGroups:uG,getColumnGroup:iG,getColumnGroupState:sG,getDisplayNameForColumnGroup:rG,getLeftDisplayedColumnGroups:cG,getProvidedColumnGroup:oG,getRightDisplayedColumnGroups:dG,resetColumnGroupState:lG,setColumnGroupOpened:nG,setColumnGroupState:aG}};function oo(e,t,n){const{colModel:i,rowGroupColsSvc:o,pivotColsSvc:r,autoColSvc:s,selectionColSvc:a,colAnimation:l,visibleCols:u,pivotResultCols:h,environment:f,valueColsSvc:p,eventSvc:m,gos:v}=e,w=i.getColDefCols()??[],b=a?.getColumns();if(!w.length&&!b?.length)return!1;if(t?.state&&!t.state.forEach)return se(32),!1;const y=(P,D,A,N,B)=>{if(!P)return;const L=U_(D,t.defaultState),M=L("flex").value1,I=L("sort").value1,O=L("sortType").value1,Q=Hr(I)||Ig(O),te=ir(O),Fe=Vd(I),we=Q?{type:te,direction:Fe}:void 0;if(C0(e,P,L("hide").value1,we,L("sortIndex").value1,L("pinned").value1,M,n),M==null){const he=L("width").value1;if(he!=null){const xe=P.getColDef().minWidth??f.getDefaultColumnMinWidth();xe!=null&&he>=xe&&P.setActualWidth(he,n)}}B||!P.isPrimary()||(p?.syncColumnWithState(P,n,L),o?.syncColumnWithState(P,n,L,A),r?.syncColumnWithState(P,n,L,N))},R=(P,D,A)=>{const N=QR(e,n),B=D.slice(),L={},M={},I=[],O=[],Q=[];let te=0;const Fe=o?.columns.slice()??[],we=r?.columns.slice()??[];for(const Ie of P){const G=Ie.colId;if(G.startsWith(zd)){I.push(Ie),Q.push(Ie);continue}if(Vr(G)){O.push(Ie),Q.push(Ie);continue}const j=A(G);j?(y(j,Ie,L,M,!1),So(B,j)):(Q.push(Ie),te+=1)}const he=Ie=>y(Ie,null,L,M,!1);B.forEach(he),o?.sortColumns(ZR.bind(o,L,Fe)),r?.sortColumns(ZR.bind(r,M,we)),i.refreshCols(!1,n);const xe=(Ie,G,q=[])=>{for(const j of G){const ae=Ie(j.colId);So(q,ae),y(ae,j,null,null,!0)}q.forEach(he)};return xe(Ie=>s?.getColumn(Ie)??null,I,s?.getColumns()?.slice()),xe(Ie=>a?.getColumn(Ie)??null,O,a?.getColumns()?.slice()),CG(t,i,v),u.refresh(n),m.dispatchEvent({type:"columnEverythingChanged",source:n}),N(),{unmatchedAndAutoStates:Q,unmatchedCount:te}};l?.start();let{unmatchedAndAutoStates:S,unmatchedCount:x}=R(t.state||[],w,P=>i.getColDefCol(P));if(S.length>0||Ce(t.defaultState)){const P=h?.getPivotResultCols()?.list??[];x=R(S,P,D=>h?.getPivotResultCol(D)??null).unmatchedCount}return l?.finish(),x===0}function vG(e,t){const{colModel:n,autoColSvc:i,selectionColSvc:o,eventSvc:r,gos:s}=e,a=n.getColDefCols();if(!a?.length)return;const l=n.getColDefColTree(),u=y0(l),h=[];let f=1e3,p=1e3;const m=R=>{const S=YR(R);Nt(S.rowGroupIndex)&&S.rowGroup&&(S.rowGroupIndex=f++),Nt(S.pivotIndex)&&S.pivot&&(S.pivotIndex=p++),h.push(S)};i?.getColumns()?.forEach(m),o?.getColumns()?.forEach(m),u?.forEach(m),oo(e,{state:h},t);const v=i?.getColumns()??[],y=[...o?.getColumns()??[],...v,...a].map(R=>({colId:R.colId}));oo(e,{state:y,applyOrder:!0},t),r.dispatchEvent(We(s,{type:"columnsReset",source:t}))}function QR(e,t){const{rowGroupColsSvc:n,pivotColsSvc:i,valueColsSvc:o,colModel:r,sortSvc:s,eventSvc:a}=e,l={rowGroupColumns:n?.columns.slice()??[],pivotColumns:i?.columns.slice()??[],valueColumns:o?.columns.slice()??[]},u=dh(e),h={};for(const f of u)h[f.colId]=f;return()=>{const f=(D,A,N,B)=>{const L=A.map(B),M=N.map(B);if(kr(L,M))return;const O=new Set(A);for(const te of N)O.delete(te)||O.add(te);const Q=[...O];a.dispatchEvent({type:D,columns:Q,column:Q.length===1?Q[0]:null,source:t})},p=D=>{const A=[];return r.forAllCols(N=>{const B=h[N.getColId()];B&&D(B,N)&&A.push(N)}),A},m=D=>D.getColId();f("columnRowGroupChanged",l.rowGroupColumns,n?.columns??[],m),f("columnPivotChanged",l.pivotColumns,i?.columns??[],m);const w=p((D,A)=>{const N=D.aggFunc!=null,B=N!=A.isValueActive(),L=N&&D.aggFunc!=A.getAggFunc();return B||L});w.length>0&&qB(a,"columnValueChanged",w,t),Ja(a,p((D,A)=>D.width!=A.getActualWidth()),!0,t),KR(a,p((D,A)=>D.pinned!=A.getPinned()),t),KB(a,p((D,A)=>D.hide==A.isVisible()),t);const x=p((D,A)=>!Hd(A.getSortDef(),{type:ir(D.sortType),direction:Vd(D.sort)})||D.sortIndex!=A.getSortIndex());x.length>0&&s?.dispatchSortChangedEvents(t,x);const P=dh(e);bG(u,P,t,r,a)}}function dh(e){const{colModel:t,rowGroupColsSvc:n,pivotColsSvc:i}=e,o=t.getColDefCols();if(Nt(o)||!t.isAlive())return[];const r=n?.columns,s=i?.columns,a=[],l=h=>{const f=h.isRowGroupActive()&&r?r.indexOf(h):null,p=h.isPivotActive()&&s?s.indexOf(h):null,m=h.isValueActive()?h.getAggFunc():null,v=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:v,aggFunc:m,rowGroup:h.isRowGroupActive(),rowGroupIndex:f,pivot:h.isPivotActive(),pivotIndex:p,flex:h.getFlex()??null})};t.forAllCols(h=>l(h));const u=new Map(t.getCols().map((h,f)=>[h.getColId(),f]));return a.sort((h,f)=>{const p=u.has(h.colId)?u.get(h.colId):-1,m=u.has(f.colId)?u.get(f.colId):-1;return p-m}),a}function YR(e){const t=(b,y)=>b??y??null,n=e.getColDef(),i=Li(t(n.sort,n.initialSort)),o=i.direction,r=i.type,s=t(n.sortIndex,n.initialSortIndex),a=t(n.hide,n.initialHide),l=t(n.pinned,n.initialPinned),u=t(n.width,n.initialWidth),h=t(n.flex,n.initialFlex);let f=t(n.rowGroupIndex,n.initialRowGroupIndex),p=t(n.rowGroup,n.initialRowGroup);f==null&&!p&&(f=null,p=null);let m=t(n.pivotIndex,n.initialPivotIndex),v=t(n.pivot,n.initialPivot);m==null&&!v&&(m=null,v=null);const w=t(n.aggFunc,n.initialAggFunc);return{colId:e.getColId(),sort:o,sortType:r,sortIndex:s,hide:a,pinned:l,width:u,flex:h,rowGroup:p,rowGroupIndex:f,pivot:v,pivotIndex:m,aggFunc:w}}function CG(e,t,n){if(!e.applyOrder||!e.state)return;const i=[];for(const o of e.state)o.colId!=null&&i.push(o.colId);wG(t.cols,i,t,n)}function wG(e,t,n,i){if(e==null)return;let o=[];const r={};for(const a of t){if(r[a])continue;const l=e.map[a];l&&(o.push(l),r[a]=!0)}let s=0;for(const a of e.list){const l=a.getColId();if(r[l]!=null)continue;l.startsWith(zd)?o.splice(s++,0,a):o.push(a)}if(o=zR(o,i),!UR(o,n.getColTree())){se(39);return}e.list=o}function bG(e,t,n,i,o){const r={};for(const h of t)r[h.colId]=h;const s={};for(const h of e)r[h.colId]&&(s[h.colId]=!0);const a=e.filter(h=>s[h.colId]),l=t.filter(h=>s[h.colId]),u=[];l.forEach((h,f)=>{const p=a?.[f];if(p&&p.colId!==h.colId){const m=i.getCol(p.colId);m&&u.push(m)}}),u.length&&o.dispatchEvent({type:"columnMoved",columns:u,column:u.length===1?u[0]:null,finished:!0,source:n})}var ZR=(e,t,n,i)=>{const o=e[n.getId()],r=e[i.getId()],s=o!=null,a=r!=null;if(s&&a)return o-r;if(s)return-1;if(a)return 1;const l=t.indexOf(n),u=t.indexOf(i),h=l>=0,f=u>=0;return h&&f?l-u:h?-1:1},yG=class extends X{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","groupHideColumnsUntilExpanded","rowNumbers","hidePaddedHeaderRows"],e=>this.refreshAll(ja(e.source))),this.addManagedPropertyListeners(["defaultColDef","defaultColGroupDef","columnTypes","suppressFieldDotNotation"],this.recreateColumnDefs.bind(this)),this.addManagedPropertyListener("pivotMode",e=>this.setPivotMode(this.gos.get("pivotMode"),ja(e.source)))}createColsFromColDefs(e){const{beans:t}=this,{valueCache:n,colAutosize:i,rowGroupColsSvc:o,pivotColsSvc:r,valueColsSvc:s,visibleCols:a,eventSvc:l,groupHierarchyColSvc:u}=t,h=this.colDefs?QR(t,e):void 0;n?.expire();const f=this.colDefCols?.list,p=this.colDefCols?.tree,m=k_(t,this.colDefs,!0,p,e);Ud(t,this.colDefCols?.tree,m.columnTree);const v=m.columnTree,w=m.treeDepth,b=y0(v),y={};for(const R of b)y[R.getId()]=R;this.colDefCols={tree:v,treeDepth:w,list:b,map:y},this.createColumnsForService([u],this.colDefCols,e),o?.extractCols(e,f),r?.extractCols(e,f),s?.extractCols(e,f),this.ready=!0,this.changeEventsDispatching=!0,this.refreshCols(!0,e),this.changeEventsDispatching=!1,a.refresh(e),l.dispatchEvent({type:"columnEverythingChanged",source:e}),h&&(this.changeEventsDispatching=!0,h(),this.changeEventsDispatching=!1),l.dispatchEvent({type:"newColumnsLoaded",source:e}),e==="gridInitializing"&&i?.applyAutosizeStrategy()}refreshCols(e,t){if(!this.colDefCols)return;const n=this.cols?.tree;this.saveColOrder();const{autoColSvc:i,selectionColSvc:o,rowNumbersSvc:r,quickFilter:s,pivotResultCols:a,showRowGroupCols:l,rowAutoHeight:u,visibleCols:h,colViewport:f,eventSvc:p,formula:m}=this.beans,v=this.selectCols(a,this.colDefCols);m?.setFormulasActive(v),this.createColumnsForService([i,o,r],v,t);const w=a_(this.gos,this.showingPivotResult);(!e||w)&&this.restoreColOrder(v),this.positionLockedCols(v),l?.refresh(),s?.refreshCols(),this.setColSpanActive(),u?.setAutoHeightActive(v),h.clear(),f.clear(),kr(n,this.cols.tree)||p.dispatchEvent({type:"gridColumnsChanged"})}createColumnsForService(e,t,n){for(const i of e)i&&(i.createColumns(t,o=>{this.lastOrder=o(this.lastOrder),this.lastPivotOrder=o(this.lastPivotOrder)},n),i.addColumns(t))}selectCols(e,t){const n=e?.getPivotResultCols()??null;this.showingPivotResult=n!=null;const{map:i,list:o,tree:r,treeDepth:s}=n??t;return this.cols={list:o.slice(),map:{...i},tree:r.slice(),treeDepth:s},n&&(n.list.some(l=>this.cols?.map[l.getColId()]!==void 0)||(this.lastPivotOrder=null)),this.cols}getColsToShow(){if(!this.cols)return[];const{beans:e,showingPivotResult:t,cols:n}=this,{valueColsSvc:i,selectionColSvc:o,gos:r}=e,s=this.isPivotMode()&&!t,a=o?.isSelectionColumnEnabled(),l=l_(e),u=i?.columns,h=d_(r);return n.list.filter(p=>{const m=kg(p);return s?u?.includes(p)||m&&(!h||p.isVisible())||a&&Vr(p)||l&&zn(p):m&&!h||p.isVisible()})}refreshAll(e){this.ready&&(this.refreshCols(!1,e),this.beans.visibleCols.refresh(e))}setColsVisible(e,t=!1,n){oo(this.beans,{state:e.map(i=>({colId:typeof i=="string"?i:i.getColId(),hide:!t}))},n)}restoreColOrder(e){const t=this.showingPivotResult?this.lastPivotOrder:this.lastOrder;if(!t)return;const n=t.filter(f=>e.map[f.getId()]!=null);if(n.length===0)return;if(n.length===e.list.length){e.list=n;return}const i=f=>{const p=f.getOriginalParent();return p?p.getChildren().length>1?!0:i(p):!1};if(!n.some(f=>i(f))){const f=new Set(n);for(const p of e.list)f.has(p)||n.push(p);e.list=n;return}const o=new Map;for(let f=0;f<n.length;f++){const p=n[f];o.set(p,f)}const r=e.list.filter(f=>!o.has(f));if(r.length===0){e.list=n;return}const s=(f,p)=>{const m=p?p.getOriginalParent():f.getOriginalParent();if(!m)return null;let v=null,w=null;for(const b of m.getChildren())if(!(b===p||b===f)){if(b instanceof Ls){const y=o.get(b);if(y==null)continue;(v==null||v<y)&&(v=y,w=b);continue}b.forEachLeafColumn(y=>{const R=o.get(y);R!=null&&(v==null||v<R)&&(v=R,w=y)})}return w??s(f,m)},a=[],l=new Map;for(const f of r){const p=s(f,null);if(p==null){a.push(f);continue}const m=l.get(p);m===void 0?l.set(p,f):Array.isArray(m)?m.push(f):l.set(p,[m,f])}const u=new Array(e.list.length);let h=u.length-1;for(let f=a.length-1;f>=0;f--)u[h--]=a[f];for(let f=n.length-1;f>=0;f--){const p=n[f],m=l.get(p);if(m)if(Array.isArray(m))for(let v=m.length-1;v>=0;v--){const w=m[v];u[h--]=w}else u[h--]=m;u[h--]=p}e.list=u}positionLockedCols(e){e.list=zR(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:n,eventSvc:i}=this.beans;n.refresh(t),i.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=ja(e.source);this.createColsFromColDefs(t)}setColumnDefs(e,t){this.colDefs=e,this.createColsFromColDefs(t)}destroy(){Ud(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:n,selectionColSvc:i,groupHierarchyColSvc:o}=this.beans;oc(this.colDefCols?.list,e)||oc(n?.columns?.list,e)||oc(i?.columns?.list,e)||oc(o?.columns?.list,e)||oc(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:n,list:i}=t;if(typeof e=="string"&&n[e])return n[e];for(let a=0;a<i.length;a++)if(yc(i[a],e))return i[a];const{autoColSvc:o,selectionColSvc:r,groupHierarchyColSvc:s}=this.beans;return o?.getColumn(e)??r?.getColumn(e)??s?.getColumn(e)??null}},SG=".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)}:where(.ag-label-align-right){.ag-label,.ag-wrapper{flex:none}}.ag-label-align-top{align-items:flex-start;flex-direction:column}:where(.ag-label-align-top){.ag-label,.ag-wrapper{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)}",RG=class extends Ka{constructor(e,t,n){super(t,n),this.labelSeparator="",this.labelAlignment="left",this.disabled=!1,this.label="",this.config=e||{},this.registerCSS(SG)}postConstruct(){this.addCss("ag-labeled"),this.eLabel.classList.add("ag-label");const{labelSeparator:e,label:t,labelWidth:n,labelAlignment:i,disabled:o,labelEllipsis:r}=this.config;o!=null&&this.setDisabled(o),e!=null&&this.setLabelSeparator(e),t!=null&&this.setLabel(t),n!=null&&this.setLabelWidth(n),r!=null&&this.setLabelEllipsis(r),this.setLabelAlignment(i||this.labelAlignment),this.refreshLabel()}refreshLabel(){const{label:e,eLabel:t}=this;wn(t),typeof e=="string"?t.innerText=e+this.labelSeparator:e&&t.appendChild(e),e===""?(bt(t,!1),Lr(t,"presentation")):(bt(t,!0),Lr(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 n=this.getGui().classList;return n.toggle("ag-label-align-left",e==="left"),n.toggle("ag-label-align-right",e==="right"),n.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:(Dd(this.eLabel,e),this)}setDisabled(e){e=!!e;const t=this.getGui();return uc(t,e),t.classList.toggle("ag-disabled",e),this.disabled=e,this}isDisabled(){return!!this.disabled}},XR=class extends RG{constructor(e,t,n,i){super(e,t,n),this.className=i}postConstruct(){super.postConstruct();const{width:e,value:t,onValueChange:n,ariaLabel:i}=this.config;e!=null&&this.setWidth(e),t!=null&&this.setValue(t),n!=null&&this.onValueChange(n),i!=null&&this.setAriaLabel(i),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(),n=this.getLabel();n==null||n==""||rL(e)!==null?ac(e,""):ac(e,t??"")}setAriaLabel(e){return _a(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 Fo(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 FG(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 Ws=class extends XR{constructor(e,t,n="text",i="input"){super(e,e?.template??FG(i),[],t),this.inputType=n,this.displayFieldTag=i,this.eLabel=de,this.eWrapper=de,this.eInput=de}postConstruct(){super.postConstruct(),this.setInputType(this.inputType);const{eLabel:e,eWrapper:t,eInput:n,className:i}=this;e.classList.add(`${i}-label`),t.classList.add(`${i}-input-wrapper`),n.classList.add(`${i}-input`),this.addCss("ag-input-field"),n.id=n.id||`ag-${this.getCompId()}-input`;const{inputName:o,inputWidth:r,inputPlaceholder:s,autoComplete:a,tabIndex:l}=this.config;o!=null&&this.setInputName(o),r!=null&&this.setInputWidth(r),s!=null&&this.setInputPlaceholder(s),a!=null&&this.setAutoComplete(a),this.addInputListeners(),this.activateTabIndex([n],l)}addInputListeners(){this.addManagedElementListeners(this.eInput,{input:e=>this.setValue(e.target.value)})}setInputType(e){this.displayFieldTag==="input"&&(this.inputType=e,ti(this.eInput,"type",e))}getInputElement(){return this.eInput}getWrapperElement(){return this.eWrapper}setInputWidth(e){return Dd(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 ti(this.eInput,"placeholder",e),this}setInputAriaLabel(e){return _a(this.eInput,e),this.refreshAriaLabelledBy(),this}setDisabled(e){return uc(this.eInput,e),super.setDisabled(e)}setAutoComplete(e){if(e===!0)ti(this.eInput,"autocomplete",null);else{const t=typeof e=="string"?e:"off";ti(this.eInput,"autocomplete",t)}return this}},Em=class extends Ws{constructor(e,t="ag-checkbox",n="checkbox"){super(e,t,n),this.labelAlignment="right",this.selected=!1,this.readOnly=!1,this.passive=!1}postConstruct(){super.postConstruct();const{readOnly:e,passive:t,name:n}=this.config;typeof e=="boolean"&&this.setReadOnly(e),typeof t=="boolean"&&this.setPassive(t),n!=null&&this.setName(n)}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 n=this.eInput;n.checked=e,n.indeterminate=e===void 0,t||this.dispatchChange(this.selected,this.previousValue)}dispatchChange(e,t,n){this.dispatchLocalEvent({type:"fieldValueChanged",selected:e,previousValue:t,event:n});const i=this.getInputElement();this.eventSvc.dispatchEvent({type:"checkboxChanged",id:i.id,name:i.name,selected:e,previousValue:t})}onCheckboxClick(e){if(this.passive||this.eInput.disabled)return;const t=this.isSelected(),n=this.selected=e.target.checked;this.refreshSelectedClass(n),this.dispatchChange(n,t,e)}refreshSelectedClass(e){const t=this.eWrapper.classList;t.toggle("ag-checked",e===!0),t.toggle("ag-indeterminate",e==null)}},Dm={selector:"AG-CHECKBOX",component:Em},xG=".ag-checkbox-cell{height:100%}",PG={tag:"div",cls:"ag-cell-wrapper ag-checkbox-cell",role:"presentation",children:[{tag:"ag-checkbox",ref:"eCheckbox",role:"presentation"}]},EG=class extends yt{constructor(){super(PG,[Dm]),this.eCheckbox=de,this.registerCSS(xG)}init(e){this.refresh(e);const{eCheckbox:t,beans:n}=this,i=t.getInputElement();i.setAttribute("tabindex","-1"),DS(i,"polite"),this.addManagedListeners(i,{click:o=>{if(Gs(o),t.isDisabled())return;const r=t.getValue();this.onCheckboxChanged(r)},dblclick:o=>{Gs(o)}}),this.addManagedElementListeners(e.eGridCell,{keydown:o=>{if(o.key===K.SPACE&&!t.isDisabled()){e.eGridCell===At(n)&&t.toggle();const r=t.getValue();this.onCheckboxChanged(r),o.preventDefault()}}})}refresh(e){return this.params=e,this.updateCheckbox(e),!0}updateCheckbox(e){let t,n=!0;const{value:i,column:o,node:r}=e;if(r.group&&o)if(typeof i=="boolean")t=i;else{const f=o.getColId();f.startsWith(zd)?t=i==null||i===""?void 0:i==="true":r.aggData&&r.aggData[f]!==void 0||r.sourceRowIndex>=0?t=i??void 0:n=!1}else t=i??void 0;const{eCheckbox:s}=this;if(!n){s.setDisplayed(!1);return}s.setValue(t);const a=e.disabled??!o?.isCellEditable(r);s.setDisabled(a);const l=this.getLocaleTextFunc(),u=Fd(l,t),h=a?u:`${l("ariaToggleCellValue","Press SPACE to toggle cell value")} (${u})`;s.setInputAriaLabel(h)}onCheckboxChanged(e){const{params:t}=this,{column:n,node:i,value:o}=t,{editSvc:r}=this.beans;if(!n)return;const s={rowNode:i,column:n};r?.dispatchCellEvent(s,null,"cellEditingStarted",{value:o});const a=i.setDataValue(n,e,"ui");r?.dispatchCellEvent(s,null,"cellEditingStopped",{oldValue:o,newValue:e,valueChanged:a}),a||this.updateCheckbox(t)}},DG={tag:"div",cls:"ag-skeleton-container"},TG=class extends yt{constructor(){super(DG)}init(e){const t=`ag-cell-skeleton-renderer-${this.getCompId()}`;this.getGui().setAttribute("id",t),this.addDestroyFunc(()=>ac(e.eParentOfValue)),ac(e.eParentOfValue,t),e.deferRender?this.setupLoading(e):e.node.failedLoad?this.setupFailed():this.setupLoading(e)}setupFailed(){const e=this.getLocaleTextFunc();this.getGui().textContent=e("loadingError","ERR");const t=e("ariaSkeletonCellLoadingFailed","Row failed to load");_a(this.getGui(),t)}setupLoading(e){const t=rn({tag:"div",cls:"ag-skeleton-effect"}),n=e.node.rowIndex;if(n!=null){const r=75+25*(n%2===0?Math.sin(n):Math.cos(n));t.style.width=`${r}%`}this.getGui().appendChild(t);const i=this.getLocaleTextFunc(),o=e.deferRender?i("ariaDeferSkeletonCellLoading","Cell is loading"):i("ariaSkeletonCellLoading","Row data is loading");_a(this.getGui(),o)}refresh(e){return!1}},AG={moduleName:"CheckboxCellRenderer",version:me,userComponents:{agCheckboxCellRenderer:EG}},IG={moduleName:"SkeletonCellRenderer",version:me,userComponents:{agSkeletonCellRenderer:TG}};function MG(e,t){const n=e.colModel.getColDefCol(t);return n?n.getColDef():null}function kG(e){return e.colModel.getColumnDefs(!0)}function LG(e,t,n){return e.colNames.getDisplayNameForColumn(t,n)||""}function _G(e,t){return e.colModel.getColDefCol(t)}function OG(e){return e.colModel.getColDefCols()}function NG(e,t){return oo(e,t,"api")}function BG(e){return dh(e)}function GG(e){vG(e,"api")}function HG(e){return e.visibleCols.isPinningLeft()||e.visibleCols.isPinningRight()}function VG(e){return e.visibleCols.isPinningLeft()}function WG(e){return e.visibleCols.isPinningRight()}function zG(e,t){return e.visibleCols.getColAfter(t)}function UG(e,t){return e.visibleCols.getColBefore(t)}function $G(e,t,n){e.colModel.setColsVisible(t,n,"api")}function jG(e,t,n){e.pinnedCols?.setColsPinned(t,n,"api")}function KG(e){return e.colModel.getCols()}function qG(e){return e.visibleCols.leftCols}function QG(e){return e.visibleCols.centerCols}function YG(e){return e.visibleCols.rightCols}function ZG(e){return e.visibleCols.allCols}function XG(e){return e.colViewport.getViewportColumns()}function Tm(e,t){if(!e)return;const n=e,i={};for(const o of Object.keys(n)){if(t&&t.indexOf(o)>=0||$S.has(o))continue;const r=n[o];typeof r=="object"&&r!==null&&r.constructor===Object?i[o]=Tm(r):i[o]=r}return i}var JG=class extends X{constructor(){super(...arguments),this.beanName="colDefFactory"}wireBeans(e){this.rowGroupColsSvc=e.rowGroupColsSvc,this.pivotColsSvc=e.pivotColsSvc}getColumnDefs(e,t,n,i,o=!1){const r=e.slice();t?r.sort((l,u)=>n.indexOf(l)-n.indexOf(u)):(n||o)&&r.sort((l,u)=>i.indexOf(l)-i.indexOf(u));const s=this.rowGroupColsSvc?.columns,a=this.pivotColsSvc?.columns;return this.buildColumnDefs(r,s,a)}buildColumnDefs(e,t=[],n=[]){const i=[],o={};for(const r of e){const s=this.createDefFromColumn(r,t,n);let a=!0,l=s,u=r.getOriginalParent(),h=null;for(;u;){let f=null;if(u.isPadding()){u=u.getOriginalParent();continue}const p=o[u.getGroupId()];if(p){p.children.push(l),a=!1;break}if(f=this.createDefFromGroup(u),f&&(f.children=[l],o[f.groupId]=f,l=f,u=u.getOriginalParent()),u!=null&&h===u){a=!1;break}h=u}a&&i.push(l)}return i}createDefFromGroup(e){const t=Tm(e.getColGroupDef(),["children"]);return t&&(t.groupId=e.getGroupId()),t}createDefFromColumn(e,t,n){const i=Tm(e.getColDef());return i.colId=e.getColId(),i.width=e.getActualWidth(),i.rowGroup=e.isRowGroupActive(),i.rowGroupIndex=e.isRowGroupActive()?t.indexOf(e):null,i.pivot=e.isPivotActive(),i.pivotIndex=e.isPivotActive()?n.indexOf(e):null,i.aggFunc=e.isValueActive()?e.getAggFunc():null,i.hide=e.isVisible()?void 0:!0,i.pinned=e.isPinned()?e.getPinned():null,i.sort=e.getSortDef(),i.sortIndex=e.getSortIndex()!=null?e.getSortIndex():null,i}},eH=class extends X{constructor(){super(...arguments),this.beanName="colFlex",this.columnsHidden=!1}refreshFlexedColumns(e={}){const t=e.source??"flex";e.viewportWidth!=null&&(this.flexViewportWidth=e.viewportWidth);const n=this.flexViewportWidth,{visibleCols:i,colDelayRenderSvc:o}=this.beans,r=i.centerCols;let s=-1;if(e.resizingCols){const w=new Set(e.resizingCols);for(let b=r.length-1;b>=0;b--)if(w.has(r[b])){s=b;break}}let a=!1;const l=r.map((w,b)=>{const y=w.getFlex(),R=y!=null&&y>0&&b>s;return a||(a=R),{col:w,isFlex:R,flex:Math.max(0,y??0),initialSize:w.getActualWidth(),min:w.getMinWidth(),max:w.getMaxWidth(),targetSize:0}});if(a?(o?.hideColumns("colFlex"),this.columnsHidden=!0):this.columnsHidden&&this.revealColumns(o),!n||!a)return[];let u=l.length,h=l.reduce((w,b)=>w+b.flex,0),f=n;const p=(w,b)=>{w.frozenSize=b,w.col.setActualWidth(b,t),f-=b,h-=w.flex,u-=1},m=w=>w.frozenSize!=null;for(const w of l)w.isFlex||p(w,w.initialSize);for(;u>0;){const w=Math.round(h<1?f*h:f);let b,y=0,R=0;for(const P of l){if(m(P))continue;b=P,R+=w*(P.flex/h);const D=R-y,A=Math.round(D);P.targetSize=A,y+=A}b&&(b.targetSize+=w-y);let S=0;for(const P of l){if(m(P))continue;const D=P.targetSize,A=Math.min(Math.max(D,P.min),P.max);S+=A-D,P.violationType=A===D?void 0:A<D?"max":"min",P.targetSize=A}const x=S===0?"all":S>0?"min":"max";for(const P of l)m(P)||(x==="all"||P.violationType===x)&&p(P,P.targetSize)}e.skipSetLeft||i.setLeftValues(t),e.updateBodyWidths&&i.updateBodyWidths();const v=l.filter(w=>w.isFlex&&!w.violationType).map(w=>w.col);if(e.fireResizedEvent){const w=l.filter(y=>y.initialSize!==y.frozenSize).map(y=>y.col),b=l.filter(y=>y.flex).map(y=>y.col);Ja(this.eventSvc,w,!0,t,b)}return this.revealColumns(o),v}revealColumns(e){this.columnsHidden&&(e?.revealColumns("colFlex"),this.columnsHidden=!1)}initCol(e){const{flex:t,initialFlex:n}=e.colDef;t!==void 0?e.flex=t:n!==void 0&&(e.flex=n)}setColFlex(e,t){e.flex=t??null,e.dispatchStateUpdatedEvent("flex")}},oi=e=>{if(typeof e=="bigint")return e;let t;if(typeof e=="number")t=e;else if(typeof e=="string"&&(t=e.trim(),t===""||(t.endsWith("n")&&(t=t.slice(0,-1)),!/^[+-]?\d+$/.test(t))))return null;if(t==null)return null;try{return BigInt(t)}catch{return null}},Am="T",tH=new RegExp(`[${Am} ]`),nH=new RegExp(`^\\d{4}-\\d{2}-\\d{2}(${Am}\\d{2}:\\d{2}:\\d{2}\\D?)?`);function To(e,t){return e.toString().padStart(t,"0")}function Un(e,t=!0,n=Am){if(!e)return null;let i=[e.getFullYear(),e.getMonth()+1,e.getDate()].map(o=>To(o,2)).join("-");return t&&(i+=n+[e.getHours(),e.getMinutes(),e.getSeconds()].map(o=>To(o,2)).join(":")),i}function hh(e,t=!0){return e?t?[String(e.getFullYear()),String(e.getMonth()+1),To(e.getDate(),2),To(e.getHours(),2),`:${To(e.getMinutes(),2)}`,`:${To(e.getSeconds(),2)}`]:[e.getFullYear(),e.getMonth()+1,To(e.getDate(),2)].map(String):null}var Im=e=>{if(e>3&&e<21)return"th";switch(e%10){case 1:return"st";case 2:return"nd";case 3:return"rd"}return"th"},JR=["January","February","March","April","May","June","July","August","September","October","November","December"],Mm=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];function iH(e,t){if(t==null)return Un(e,!1);const n=To(e.getFullYear(),4),i={YYYY:()=>n.slice(n.length-4,n.length),YY:()=>n.slice(n.length-2,n.length),Y:()=>`${e.getFullYear()}`,MMMM:()=>JR[e.getMonth()],MMM:()=>JR[e.getMonth()].slice(0,3),MM:()=>To(e.getMonth()+1,2),Mo:()=>`${e.getMonth()+1}${Im(e.getMonth()+1)}`,M:()=>`${e.getMonth()+1}`,Do:()=>`${e.getDate()}${Im(e.getDate())}`,DD:()=>To(e.getDate(),2),D:()=>`${e.getDate()}`,dddd:()=>Mm[e.getDay()],ddd:()=>Mm[e.getDay()].slice(0,3),dd:()=>Mm[e.getDay()].slice(0,2),do:()=>`${e.getDay()}${Im(e.getDay())}`,d:()=>`${e.getDay()}`},o=new RegExp(Object.keys(i).join("|"),"g");return t.replace(o,r=>r in i?i[r]():r)}function fh(e,t=!1){return!!$n(e,t)}function oH(e){return fh(e,!0)}function $n(e,t=!1,n){if(!e||!n&&!nH.test(e))return null;const[i,o]=e.split(tH);if(!i)return null;const r=i.split("-").map(m=>Number.parseInt(m,10));if(r.filter(m=>!isNaN(m)).length!==3)return null;const[s,a,l]=r,u=new Date(s,a-1,l);if(u.getFullYear()!==s||u.getMonth()!==a-1||u.getDate()!==l||!o&&t)return null;if(!o||o==="00:00:00")return u;const[h,f,p]=o.split(":").map(m=>Number.parseInt(m,10));if(h>=0&&h<24)u.setHours(h);else if(t)return null;if(f>=0&&f<60)u.setMinutes(f);else if(t)return null;if(p>=0&&p<60)u.setSeconds(p);else if(t)return null;return u}function Ic(e,t,n){if(!t||!e)return;if(!n)return e[t];const i=t.split(".");let o=e;for(let r=0;r<i.length;r++){if(o==null)return;o=o[i[r]]}return o}var rH=["dateTimeString","dateString","text","number","bigint","boolean","date"],sH=class extends X{constructor(){super(...arguments),this.beanName="dataTypeSvc",this.dataTypeDefinitions={},this.isPendingInference=!1,this.isColumnTypeOverrideInDataTypeDefinitions=!1,this.columnStateUpdatesPendingInference={},this.columnStateUpdateListenerDestroyFuncs=[],this.columnDefinitionPropsPerDataType={number(){return{cellEditor:"agNumberCellEditor"}},bigint({filterModuleBean:e}){return e?{cellEditor:"agTextCellEditor"}:{cellEditor:"agTextCellEditor",comparator:{default:uH,absolute:dH}}},boolean(){return{cellEditor:"agCheckboxCellEditor",cellRenderer:"agCheckboxCellRenderer",getFindText:()=>null,suppressKeyboardEvent:({node:e,event:t,column:n})=>t.key===K.SPACE&&n.isCellEditable(e)}},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:n}){return{cellEditorParams:{useFormatter:!0},comparator:(i,o)=>{const r=t.getColDefCol(n),s=r?.getColDef();if(!r||!s)return 0;const a=i==null?"":e({column:r,node:null,value:i}),l=o==null?"":e({column:r,node:null,value:o});return a===l?0:a>l?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={},n={},i=h=>f=>{const{column:p,node:m,value:v}=f;let w=p.getColDef().valueFormatter;return w===h.groupSafeValueFormatter&&(w=h.valueFormatter),this.beans.valueSvc.formatValue(p,m,v,w)};for(const h of Object.keys(e)){const f=e[h],p={...f,groupSafeValueFormatter:nF(f,this.gos)};t[h]=p,n[h]=i(p)}const o=this.gos.get("dataTypeDefinitions")??{},r={};for(const h of Object.keys(o)){const f=o[h],p=this.processDataTypeDefinition(f,o,[h],e);p&&(t[h]=p,f.dataTypeMatcher&&(r[h]=f.dataTypeMatcher),n[h]=i(p))}const{valueParser:s,valueFormatter:a}=e.object,{valueParser:l,valueFormatter:u}=t.object;this.hasObjectValueParser=l!==s,this.hasObjectValueFormatter=u!==a,this.formatValueFuncs=n,this.dataTypeDefinitions=t,this.dataTypeMatchers=this.sortKeysInMatchers(r,e)}sortKeysInMatchers(e,t){const n={...e};for(const i of rH)delete n[i],n[i]=e[i]??t[i].dataTypeMatcher;return n}processDataTypeDefinition(e,t,n,i){let o;const r=e.extendsDataType;if(e.columnTypes&&(this.isColumnTypeOverrideInDataTypeDefinitions=!0),e.extendsDataType===e.baseDataType){let s=i[r];const a=t[r];if(s&&a&&(s=a),!tF(e,s,r))return;o=eF(s,e)}else{if(n.includes(r)){se(44);return}const s=t[r];if(!tF(e,s,r))return;const a=this.processDataTypeDefinition(s,t,[...n,r],i);if(!a)return;o=eF(a,e)}return{...o,groupSafeValueFormatter:nF(o,this.gos)}}updateColDefAndGetColumnType(e,t,n){let{cellDataType:i}=t;i===void 0&&(i=e.cellDataType);const{field:o}=t;if((i==null||i===!0)&&(i=this.canInferCellDataType(e,t)?this.inferCellDataType(o,n):!1),this.addFormulaCellEditorToColDef(e,t),!i){e.cellDataType=!1;return}const r=this.dataTypeDefinitions[i];if(!r){se(47,{cellDataType:i});return}return e.cellDataType=i,r.groupSafeValueFormatter&&(e.valueFormatter=r.groupSafeValueFormatter),r.valueParser&&(e.valueParser=r.valueParser),r.suppressDefaultProperties||this.setColDefPropertiesForBaseDataType(e,i,r,n),r.columnTypes}addFormulaCellEditorToColDef(e,t){!(t.allowFormula??e.allowFormula)||t.cellEditor||(e.cellEditor="agFormulaCellEditor")}addColumnListeners(e){if(!this.isPendingInference)return;const t=this.columnStateUpdatesPendingInference[e.getColId()];if(!t)return;const n=i=>{t.add(i.key)};e.__addEventListener("columnStateUpdated",n),this.columnStateUpdateListenerDestroyFuncs.push(()=>e.__removeEventListener("columnStateUpdated",n))}canInferCellDataType(e,t){const{gos:n}=this;if(!Yt(n))return!1;const i={cellRenderer:!0,valueGetter:!0,valueParser:!0,refData:!0};if(km(t,i))return!1;const o=t.type===null?e.type:t.type;if(o){const r=n.get("columnTypes")??{};if($d(o).some(a=>{const l=r[a.trim()];return l&&km(l,i)}))return!1}return!km(e,i)}inferCellDataType(e,t){if(!e)return;let n;const i=this.getInitialData();if(i){const r=e.includes(".")&&!this.gos.get("suppressFieldDotNotation");n=Ic(i,e,r)}else this.initWaitForRowData(t);return n==null?void 0:Object.keys(this.dataTypeMatchers).find(r=>this.dataTypeMatchers[r](n))??"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:n,eventSvc:i}=this.beans;t&&n&&(n.shouldQueueResizeOperations=!0);const[o]=this.addManagedEventListeners({rowDataUpdateStarted:r=>{const{firstRowData:s}=r;s&&(o?.(),this.isPendingInference=!1,this.processColumnsPendingInference(s,t),this.columnStateUpdatesPendingInference={},t&&n?.processResizeOperations(),i.dispatchEvent({type:"dataTypesInferred"}))}})}processColumnsPendingInference(e,t){this.initialData=e;const n=[];this.destroyColumnStateUpdateListeners();const i={},o={};for(const r of Object.keys(this.columnStateUpdatesPendingInference)){const s=this.columnStateUpdatesPendingInference[r],a=this.colModel.getCol(r);if(!a)continue;const l=a.getColDef();if(!this.resetColDefIntoCol(a,"cellDataTypeInferred"))continue;const u=a.getColDef();if(t&&u.type&&u.type!==l.type){const h=hH(a,s);h.rowGroup&&h.rowGroupIndex==null&&(i[r]=h),h.pivot&&h.pivotIndex==null&&(o[r]=h),n.push(h)}}t&&n.push(...this.generateColumnStateForRowGroupAndPivotIndexes(i,o)),n.length&&oo(this.beans,{state:n},"cellDataTypeInferred"),this.initialData=null}generateColumnStateForRowGroupAndPivotIndexes(e,t){const n={},{rowGroupColsSvc:i,pivotColsSvc:o}=this.beans;return i?.restoreColumnOrder(n,e),o?.restoreColumnOrder(n,t),Object.values(n)}resetColDefIntoCol(e,t){const n=e.getUserProvidedColDef();if(!n)return!1;const i=Mg(this.beans,n,e.getColId());return e.setColDef(i,n,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 n=this.getDataTypeDefinition(e)?.dataTypeMatcher;return!n||e.getColDef().allowFormula&&this.beans.formula?.isFormula(t)?!0:n(t)}validateColDef(e,t,n,i){if(e.cellDataType==="object"){const o=l=>l?.cellDataType==null||l?.cellDataType===!0,r=o(t)&&o(n),s=l=>se(48,{property:l,inferred:r,colId:i}),{object:a}=this.dataTypeDefinitions;e.valueFormatter===a.groupSafeValueFormatter&&!this.hasObjectValueFormatter&&s("Formatter"),e.editable&&e.valueParser===a.valueParser&&!this.hasObjectValueParser&&s("Parser")}}postProcess(e){const t=e.cellDataType;if(!t||typeof t!="string")return;const{dataTypeDefinitions:n,beans:i,formatValueFuncs:o}=this,r=n[t];r&&i.colFilter?.setColDefPropsForDataType(e,r,o[t])}getFormatValue(e){return this.formatValueFuncs[e]}isColPendingInference(e){return this.isPendingInference&&!!this.columnStateUpdatesPendingInference[e]}setColDefPropertiesForBaseDataType(e,t,n,i){const o=this.formatValueFuncs[t],r=this.columnDefinitionPropsPerDataType[n.baseDataType]({colDef:e,cellDataType:t,colModel:this.colModel,dataTypeDefinition:n,colId:i,formatValue:o,filterModuleBean:this.beans.filterManager});e.cellEditor==="agFormulaCellEditor"&&r.cellEditor!==e.cellEditor&&(r.cellEditor=e.cellEditor),Object.assign(e,r)}getDateObjectTypeDef(e){const t=this.getLocaleTextFunc(),n=this.getDateIncludesTimeFlag(e);return{baseDataType:e,valueParser:i=>$n(i.newValue&&String(i.newValue)),valueFormatter:i=>i.value==null?"":!(i.value instanceof Date)||isNaN(i.value.getTime())?t("invalidDate","Invalid Date"):Un(i.value,n)??"",dataTypeMatcher:i=>i instanceof Date}}getDateStringTypeDef(e){const t=this.getDateIncludesTimeFlag(e);return{baseDataType:e,dateParser:n=>$n(n)??void 0,dateFormatter:n=>Un(n??null,t)??void 0,valueParser:n=>fh(String(n.newValue))?n.newValue:null,valueFormatter:n=>fh(String(n.value))?String(n.value):"",dataTypeMatcher:n=>typeof n=="string"&&fh(n)}}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"},bigint:{baseDataType:"bigint",valueParser:t=>{const{newValue:n}=t;return n==null||typeof n=="string"&&n.trim()===""?null:oi(n)},valueFormatter:t=>t.value==null?"":typeof t.value!="bigint"?e("invalidBigInt","Invalid BigInt"):String(t.value),dataTypeMatcher:t=>typeof t=="bigint"},text:{baseDataType:"text",valueParser:t=>t.newValue===""?null:ag(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"&&oH(t)},object:{baseDataType:"object",valueParser:()=>null,valueFormatter:t=>ag(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 eF(e,t){const n={...e,...t};return e.columnTypes&&t.columnTypes&&t.appendColumnTypes&&(n.columnTypes=[...$d(e.columnTypes),...$d(t.columnTypes)]),n}function tF(e,t,n){return t?t.baseDataType!==e.baseDataType?(se(46),!1):!0:(se(45,{parentCellDataType:n}),!1)}var aH=e=>typeof e=="bigint"||typeof e=="number",lH=e=>e==="number"||e==="bigint";function nF(e,t){if(e.valueFormatter)return n=>{const{node:i,colDef:o,column:r,value:s}=n;if(i?.group){const a=(o.pivotValueColumn??r).getAggFunc();if(a){if(a==="first"||a==="last")return e.valueFormatter(n);const{baseDataType:l}=e;if(lH(l)&&a!=="count"){if(aH(s))return e.valueFormatter(n);if(s==null)return;if(typeof s=="object"){if(typeof s.toNumber=="function")return e.valueFormatter({...n,value:s.toNumber()});if("value"in s)return e.valueFormatter({...n,value:s.value})}}return}}else if(t.get("groupHideOpenParents")&&n.column.isRowGroupActive()&&typeof n.value=="string"&&!e.dataTypeMatcher?.(n.value))return;return e.valueFormatter(n)}}function cH(e,t,n,i){if(!t[n])return!1;const o=e[n];return o===null?(t[n]=!1,!1):i===void 0?!!o:o===i}function uH(e,t){if(e==null)return t==null?0:-1;if(t==null)return 1;const n=oi(e),i=oi(t);return n!=null&&i!=null?n===i?0:n>i?1:-1:0}function dH(e,t){if(e==null)return t==null?0:-1;if(t==null)return 1;const n=iF(e),i=iF(t);return n!=null&&i!=null?n===i?0:n>i?1:-1:0}function iF(e){const t=oi(e);return t==null?null:t<0n?-t:t}function km(e,t){return[["cellRenderer","agSparklineCellRenderer"],["valueGetter",void 0],["valueParser",void 0],["refData",void 0]].some(([n,i])=>cH(e,t,n,i))}function hH(e,t){const n=YR(e);for(const i of t)delete n[i],i==="rowGroup"?delete n.rowGroupIndex:i==="pivot"&&delete n.pivotIndex;return n}var fH={moduleName:"DataType",version:me,beans:[sH],dependsOn:[AG]},pH={moduleName:"ColumnFlex",version:me,beans:[eH]},oF={moduleName:"ColumnApi",version:me,beans:[JG],apiFunctions:{getColumnDef:MG,getDisplayNameForColumn:LG,getColumn:_G,getColumns:OG,applyColumnState:NG,getColumnState:BG,resetColumnState:GG,isPinning:HG,isPinningLeft:VG,isPinningRight:WG,getDisplayedColAfter:zG,getDisplayedColBefore:UG,setColumnsVisible:$G,setColumnsPinned:jG,getAllGridColumns:KG,getDisplayedLeftColumns:qG,getDisplayedCenterColumns:QG,getDisplayedRightColumns:YG,getAllDisplayedColumns:ZG,getAllDisplayedVirtualColumns:XG,getColumnDefs:kG}},gH=class extends X{constructor(){super(...arguments),this.beanName="colNames"}getDisplayNameForColumn(e,t,n=!1){if(!e)return null;const i=this.getHeaderName(e.getColDef(),e,null,null,t),{aggColNameSvc:o}=this.beans;return n&&o?o.getHeaderName(e,i):i}getDisplayNameForProvidedColumnGroup(e,t,n){const i=t?.getColGroupDef();return i?this.getHeaderName(i,null,e,t,n):null}getDisplayNameForColumnGroup(e,t){return this.getDisplayNameForProvidedColumnGroup(e,e.getProvidedColumnGroup(),t)}getHeaderName(e,t,n,i,o){const r=e.headerValueGetter;if(r){const s=We(this.gos,{colDef:e,column:t,columnGroup:n,providedColumnGroup:i,location:o});return typeof r=="function"?r(s):typeof r=="string"?this.beans.expressionSvc?.evaluate(r,s)??null:""}else{if(e.headerName!=null)return e.headerName;if(e.field)return tL(e.field)}return""}},mH=class extends X{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")}getScrollPosition(){return this.scrollPosition}setScrollPosition(e,t,n=!1){const{visibleCols:i}=this,o=i.isBodyWidthDirty;if(!(e===this.scrollWidth&&t===this.scrollPosition&&!o)){if(this.scrollWidth=e,this.scrollPosition=t,i.isBodyWidthDirty=!0,this.gos.get("enableRtl")){const s=i.bodyWidth;this.viewportLeft=s-t-e,this.viewportRight=s-t}else this.viewportLeft=t,this.viewportRight=e+t;this.colModel.ready&&this.checkViewportColumns(n)}}getColumnHeadersToRender(e){switch(e){case"left":return this.columnsToRenderLeft;case"right":return this.columnsToRenderRight;default:return this.columnsToRenderCenter}}getHeadersToRender(e,t){let n;switch(e){case"left":n=this.rowsOfHeadersToRenderLeft[t];break;case"right":n=this.rowsOfHeadersToRenderRight[t];break;default:n=this.rowsOfHeadersToRenderCenter[t];break}return n??[]}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()||vH(e)?!0:this.isColumnInRowViewport(e)}isColumnInRowViewport(e){if(e.isAutoHeight())return!0;const t=e.getLeft()||0,n=t+e.getActualWidth(),i=this.viewportLeft-200,o=this.viewportRight+200,r=t<i&&n<i,s=t>o&&n>o;return!r&&!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=r=>{const s=r.getLeft();return Ce(s)&&s>this.viewportLeft},n=this.isColumnVirtualisationSuppressed()?void 0:this.isColumnInRowViewport.bind(this),{visibleCols:i}=this,o=i.centerCols;return i.getColsForRow(e,o,n,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 n=i=>{const o=new Set,r={};for(const s of i){let a=s.getParent();const l=s.isSpanHeaderHeight();for(;a&&!o.has(a);){if(l&&a.isPadding()){a=a.getParent();continue}const h=a.getProvidedColumnGroup().getLevel();r[h]??(r[h]=[]),r[h].push(a),o.add(a),a=a.getParent()}}return r};this.rowsOfHeadersToRenderLeft=n(e),this.rowsOfHeadersToRenderRight=n(t),this.rowsOfHeadersToRenderCenter=n(this.headerColsWithinViewport)}extractViewport(){const e=i=>`${i.getId()}-${i.getPinned()||"normal"}`;this.extractViewportColumns();const t=this.getViewportColumns().map(e).join("#"),n=this.colsWithinViewportHash!==t;return n&&(this.colsWithinViewportHash=t,this.calculateHeaderRows()),n}};function vH(e){for(;e;){if(e.isAutoHeaderHeight())return!0;e=e.getParent()}return!1}var CH=class extends X{constructor(){super(...arguments),this.beanName="agCompUtils"}adaptFunction(e,t){if(!e.cellRenderer)return null;class n{refresh(){return!1}getGui(){return this.eGui}init(o){const r=t(o),s=typeof r;if(s==="string"||s==="number"||s==="boolean"){this.eGui=pg("<span>"+r+"</span>");return}if(r==null){this.eGui=rn({tag:"span"});return}this.eGui=r}}return n}},wH={moduleName:"CellRendererFunction",version:me,beans:[CH]},bH=class extends Vn{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,...n){if(!this.dynamicBeans)throw new Error(this.getDynamicError(e,!0));const i=this.dynamicBeans[e];if(i==null){if(t)throw new Error(this.getDynamicError(e,!1));return}return new i(...n)}};function yH(e){return typeof e=="object"&&!!e.getComp}var SH=class extends bH{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:n,dynamicBeans:i,selectors:o}=e;if(n){const r=(s,a,l,u)=>{this.agGridDefaults[s]=a,(l||u)&&(this.agGridDefaultOverrides[s]={params:l,processParams:u})};for(const s of Object.keys(n)){let a=n[s];if(yH(a)&&(a=a.getComp(this.beans)),typeof a=="object"){const{classImp:l,params:u,processParams:h}=a;r(s,l,u,h)}else r(s,a)}}this.registerDynamicBeans(i);for(const r of o??[])this.selectors[r.selector]=r;if(t)for(const r of Object.keys(t))this.icons[r]=t[r]}getUserComponent(e,t){const n=(a,l,u,h)=>({componentFromFramework:l,component:a,params:u,processParams:h}),{frameworkOverrides:i}=this.beans,o=i.frameworkComponent(t,this.gos.get("components"));if(o!=null)return n(o,!0);const r=this.jsComps[t];if(r){const a=i.isFrameworkComponent(r);return n(r,a)}const s=this.agGridDefaults[t];if(s){const a=this.agGridDefaultOverrides[t];return n(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?xo(279,{name:e}):this.beans.validation?.missingDynamicBean(e)??xo(256)}},RH=23,FH=class extends X{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===RH&&e.every(t=>t?.isAlive()??!1)}whenReady(e,t){this.ready?t(this.params):this.readyCallbacks.push(t),e.addDestroyFunc(()=>{const n=this.readyCallbacks.indexOf(t);n>=0&&this.readyCallbacks.splice(n,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:n}=this.params;return[e,n,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}},xH=':where([class^=ag-]),:where([class^=ag-]):after,:where([class^=ag-]):before{box-sizing:border-box}:where([class^=ag-]):where(button){color:inherit}:where([class^=ag-]):where(div,span,label):focus-visible{box-shadow:inset var(--ag-focus-shadow);outline:none;&:where(.invalid){box-shadow:inset var(--ag-focus-error-shadow)}}:where([class^=ag-]) ::-ms-clear{display:none}.ag-hidden{display:none!important}.ag-invisible{visibility:hidden!important}.ag-tab-guard{display:block;height:0;position:absolute;width:0}.ag-tab-guard-top{top:1px}.ag-tab-guard-bottom{bottom:1px}.ag-measurement-container{height:0;overflow:hidden;visibility:hidden;width:0}.ag-measurement-element-border{display:inline-block}.ag-measurement-element-border:before{border-left:var(--ag-internal-measurement-border);content:"";display:block}.ag-popup-child{top:0;z-index:5}.ag-popup-child:where(:not(.ag-tooltip-custom)){box-shadow:var(--ag-popup-shadow)}.ag-input-wrapper,.ag-picker-field-wrapper{align-items:center;display:flex;flex:1 1 auto;line-height:normal;position:relative}.ag-input-field{align-items:center;display:flex;flex-direction:row}.ag-input-field-input:where(:not([type=checkbox],[type=radio])){flex:1 1 auto;min-width:0;width:100%}.ag-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);font-weight:var(--ag-font-weight);--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 .ag-icon,[disabled] .ag-icon{opacity:.5}.ag-icon-grip.ag-disabled,.ag-icon-grip[disabled]{opacity:.35}.ag-icon-loading{animation-duration:1s;animation-iteration-count:infinite;animation-name:spin;animation-timing-function:linear}@keyframes spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.ag-resizer{pointer-events:none;position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none;z-index:1}:where(.ag-resizer){&.ag-resizer-topLeft{cursor:nwse-resize;height:5px;left:0;top:0;width:5px}&.ag-resizer-top{cursor:ns-resize;height:5px;left:5px;right:5px;top:0}&.ag-resizer-topRight{cursor:nesw-resize;height:5px;right:0;top:0;width:5px}&.ag-resizer-right{bottom:5px;cursor:ew-resize;right:0;top:5px;width:5px}&.ag-resizer-bottomRight{bottom:0;cursor:nwse-resize;height:5px;right:0;width:5px}&.ag-resizer-bottom{bottom:0;cursor:ns-resize;height:5px;left:5px;right:5px}&.ag-resizer-bottomLeft{bottom:0;cursor:nesw-resize;height:5px;left:0;width:5px}&.ag-resizer-left{bottom:5px;cursor:ew-resize;left:0;top:5px;width:5px}}.ag-menu{background-color:var(--ag-menu-background-color);border:var(--ag-menu-border);border-radius:var(--ag-border-radius);box-shadow:var(--ag-menu-shadow);color:var(--ag-menu-text-color);max-height:100%;overflow-y:auto;position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none}',Lm=typeof window!="object"||!window?.document?.fonts?.forEach,rF=!1,zs=(e,t,n,i,o,r,s=!1)=>{if(Lm||rF)return;let a=e;i&&(a=`@layer ${CSS.escape(i).replaceAll("\\.",".")} { ${e} }`);let l=Ao.map.get(t);if(l||(l=[],Ao.map.set(t,l)),l.some(p=>p.injectedCss===a))return;const u=document.createElement("style");r&&u.setAttribute("nonce",r),u.dataset.agCss=n,u.dataset.agCssVersion=me,u.textContent=a;const h={rawCss:e,injectedCss:a,el:u,priority:o,isParams:s};let f;for(const p of l){if(p.priority>o)break;f=p}if(f){f.el.after(u);const p=l.indexOf(f);l.splice(p+1,0,h)}else t.nodeName==="STYLE"?t.after(u):t.insertBefore(u,t.querySelector(":not(title, meta)")),l.push(h)},sF=(e,t,n,i)=>{zs(xH,e,"shared",t,0,n),i?.forEach((o,r)=>o.forEach(s=>zs(s,e,r,t,0,n)))},PH=(e,t,n,i,o,r)=>{if(Lm||rF)return;const s=Ao.grids.get(e);s?s.paramsCss=t:Ao.grids.set(e,{styleContainer:i,paramsCss:t}),_m(i),t&&n&&zs(t,i,n,o,2,r,!0)},EH=e=>{const t=Ao.grids.get(e)?.styleContainer;if(!t)return;Ao.grids.delete(e),Array.from(Ao.grids.values()).some(i=>i.styleContainer===t)?_m(t):(_m(t,!0),Ao.map.delete(t))},_m=(e,t=!1)=>{const n=new Set;for(const o of Ao.grids.values())o.styleContainer===e&&n.add(o.paramsCss);const i=Ao.map.get(e)??[];for(let o=i.length-1;o>=0;o--)(t||i[o].isParams&&!n.has(i[o].rawCss))&&(i[o].el.remove(),i.splice(o,1))},aF=()=>{const e=globalThis.agStyleInjectionVersions??(globalThis.agStyleInjectionVersions=new Map);let t=e.get(me);return t||(t={map:new WeakMap,grids:new Map,paramsId:0},e.set(me,t)),t},Ao=aF(),ro=e=>new lF(e),Kr="$default",DH=0,lF=class{constructor({feature:e,params:t,modeParams:n={},css:i,cssImports:o}){this.feature=e,this.css=i,this.cssImports=o,this.modeParams={[Kr]:{...n[Kr]??{},...t??{}},...n}}use(e,t,n){let i=this._inject;if(i==null){let{css:o}=this;if(o){const r=`ag-theme-${this.feature??"part"}-${++DH}`;typeof o=="function"&&(o=o()),o=`:where(.${r}) {
7
+ ${o}
8
+ }
9
+ `;for(const s of this.cssImports??[])o=`@import url(${JSON.stringify(s)});
10
+ ${o}`;i={css:o,class:r}}else i=!1;this._inject=i}return i&&e&&zs(i.css,e,i.class,t,1,n),i?i.class:!1}},TH=e=>e.replace(/[A-Z]|\d+/g,t=>`-${t}`).toLowerCase(),Om=e=>`--ag-${TH(e)}`,Io=e=>`var(${Om(e)})`,AH=(e,t,n)=>Math.max(t,Math.min(n,e)),IH=e=>{const t=new Map;return n=>{const i=n;return t.has(i)||t.set(i,e(n)),t.get(i)}},Mo=e=>({ref:"accentColor",mix:e}),Oi=e=>({ref:"foregroundColor",mix:e}),Ni=e=>({ref:"foregroundColor",mix:e,onto:"backgroundColor"}),MH=e=>({ref:"foregroundColor",mix:e,onto:"headerBackgroundColor"}),jn={ref:"backgroundColor"},Us={ref:"foregroundColor"},ko={ref:"accentColor"},ph={backgroundColor:"#fff",foregroundColor:"#181d1f",borderColor:Oi(.15),chromeBackgroundColor:Ni(.02),browserColorScheme:"light"},kH={...ph,textColor:Us,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,fontWeight:"inherit",focusShadow:{spread:3,color:Mo(.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:jn,dragAndDropImageBorder:!0,dragAndDropImageNotAllowedBorder:{color:{ref:"invalidColor",onto:"dragAndDropImageBackgroundColor",mix:.5}},dragAndDropImageShadow:{ref:"popupShadow"},iconSize:16,iconColor:"inherit",toggleButtonWidth:28,toggleButtonHeight:18,toggleButtonOnBackgroundColor:ko,toggleButtonOffBackgroundColor:Ni(.3),toggleButtonSwitchBackgroundColor:jn,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}},panelBackgroundColor:jn,panelTitleBarHeight:{ref:"headerHeight"},panelTitleBarBackgroundColor:{ref:"headerBackgroundColor"},panelTitleBarIconColor:{ref:"headerTextColor"},panelTitleBarTextColor:{ref:"headerTextColor"},panelTitleBarFontFamily:{ref:"headerFontFamily"},panelTitleBarFontSize:{ref:"headerFontSize"},panelTitleBarFontWeight:{ref:"headerFontWeight"},panelTitleBarBorder:!0,dialogShadow:{ref:"popupShadow"},dialogBorder:{color:Oi(.2)},widgetContainerHorizontalPadding:{calc:"spacing * 1.5"},widgetContainerVerticalPadding:{calc:"spacing * 1.5"},widgetHorizontalSpacing:{calc:"spacing * 1.5"},widgetVerticalSpacing:{ref:"spacing"},dataFontSize:{ref:"fontSize"},headerBackgroundColor:{ref:"chromeBackgroundColor"},headerFontFamily:{ref:"fontFamily"},headerFontSize:{ref:"fontSize"},headerFontWeight:500,headerTextColor:{ref:"textColor"},headerHeight:{calc:"max(iconSize, dataFontSize) + spacing * 4 * headerVerticalPaddingScale"},headerVerticalPaddingScale:1,menuBorder:{color:Oi(.2)},menuBackgroundColor:Ni(.03),menuTextColor:Ni(.95),menuShadow:{ref:"popupShadow"},menuSeparatorColor:{ref:"borderColor"}},LH=["colorScheme","color","length","scale","borderStyle","border","shadow","image","fontFamily","fontWeight","duration"],_H=IH(e=>(e=e.toLowerCase(),LH.find(t=>e.endsWith(t.toLowerCase()))??"length")),gh=e=>typeof e=="object"&&e?.ref?Io(e.ref):typeof e=="string"?e:typeof e=="number"?String(e):!1,Nm=e=>{if(typeof e=="string")return e;if(typeof e=="object"&&e&&"ref"in e){const t=Io(e.ref);return e.mix==null?t:`color-mix(in srgb, ${e.onto?Io(e.onto):"transparent"}, ${t} ${AH(e.mix*100,0,100)}%)`}return!1},OH=gh,el=e=>typeof e=="string"?e:typeof e=="number"?`${e}px`:typeof e=="object"&&e&&"calc"in e?`calc(${e.calc.replace(/ ?[*/+] ?/g," $& ").replace(/-?\b[a-z][a-z0-9]*\b(?![-(])/gi,n=>n[0]==="-"?n:" "+Io(n)+" ")})`:typeof e=="object"&&e&&"ref"in e?Io(e.ref):!1,NH=gh,Bm=(e,t)=>typeof e=="string"?e:e===!0?Bm({},t):e===!1?t==="columnBorder"?Bm({color:"transparent"},t):"none":typeof e=="object"&&e&&"ref"in e?Io(e.ref):uF(e.style??"solid")+" "+el(e.width??{ref:"borderWidth"})+" "+Nm(e.color??{ref:"borderColor"}),cF=e=>[el(e.offsetX??0),el(e.offsetY??0),el(e.radius??0),el(e.spread??0),Nm(e.color??{ref:"foregroundColor"}),...e.inset?["inset"]:[]].join(" "),BH=e=>typeof e=="string"?e:e===!1?"none":typeof e=="object"&&e&&"ref"in e?Io(e.ref):Array.isArray(e)?e.map(cF).join(", "):cF(e),uF=gh,dF=e=>typeof e=="string"?e.includes(",")?e:hF(e):typeof e=="object"&&e&&"googleFont"in e?dF(e.googleFont):typeof e=="object"&&e&&"ref"in e?Io(e.ref):Array.isArray(e)?e.map(t=>(typeof t=="object"&&"googleFont"in t&&(t=t.googleFont),hF(t))).join(", "):!1,hF=e=>/^[\w-]+$|\w\(/.test(e)?e:JSON.stringify(e),GH=gh,fF=e=>typeof e=="string"?e:typeof e=="object"&&e&&"url"in e?`url(${JSON.stringify(e.url)})`:typeof e=="object"&&e&&"svg"in e?fF({url:`data:image/svg+xml,${encodeURIComponent(e.svg)}`}):typeof e=="object"&&e&&"ref"in e?Io(e.ref):!1,HH=(e,t,n)=>typeof e=="string"?e:typeof e=="number"?(e>=10&&n?.warn(104,{value:e,param:t}),`${e}s`):typeof e=="object"&&e&&"ref"in e?Io(e.ref):!1,VH={color:Nm,colorScheme:OH,length:el,scale:NH,border:Bm,borderStyle:uF,shadow:BH,image:fF,fontFamily:dF,fontWeight:GH,duration:HH},WH=(e,t,n)=>{const i=_H(e);return VH[i](t,e,n)},zH=(e,t)=>new pF({themeLogger:e,overridePrefix:t}),pF=class aI{constructor(t,n=[]){this.params=t,this.parts=n}withPart(t){return typeof t=="function"&&(t=t()),t instanceof lF?new aI(this.params,[...this.parts,t]):(this.params.themeLogger.preInitErr(259,"Invalid part",{part:t}),this)}withoutPart(t){return this.withPart(ro({feature:t}))}withParams(t,n=Kr){return this.withPart(ro({modeParams:{[n]:t}}))}_startUse({styleContainer:t,cssLayer:n,nonce:i,loadThemeGoogleFonts:o,moduleCss:r}){if(Lm)return;$H(),sF(t,n,i,r);const s=UH(this);if(s.length>0)for(const a of s)o&&jH(a,i);for(const a of this.parts)a.use(t,n,i)}_getCssClass(){return this._cssClassCache??(this._cssClassCache=gF(this.parts).map(t=>t.use(void 0,void 0,void 0)).filter(Boolean).concat(this._getParamsClassName()).join(" "))}_getParamsClassName(){return this._paramsClassName??(this._paramsClassName=`ag-theme-params-${++aF().paramsId}`)}_getModeParams(){let t=this._paramsCache;if(!t){const n={[Kr]:{...kH}};for(const i of gF(this.parts))for(const o of Object.keys(i.modeParams)){const r=i.modeParams[o];if(r){const s=n[o]??(n[o]={}),a=new Set;for(const l of Object.keys(r)){const u=r[l];u!==void 0&&(s[l]=u,a.add(l))}if(o===Kr)for(const l of Object.keys(n)){const u=n[l];if(l!==Kr)for(const h of a)delete u[h]}}}this._paramsCache=t=n}return t}_getParamsCss(){if(!this._paramsCssCache){let t="",n="";const i=this._getModeParams(),{overridePrefix:o,themeLogger:r}=this.params,s=o?`--ag-${o}-`:void 0;for(const u of Object.keys(i)){const h=i[u];if(u!==Kr){const p=`:where([data-ag-theme-mode="${typeof CSS=="object"?CSS.escape(u):u}"]) & {
11
+ `;t+=p,n+=p}for(const f of Object.keys(h).sort()){const p=h[f],m=WH(f,p,r);if(m===!1)r.error(107,{key:f,value:p});else{const v=Om(f),w=s?v.replace("--ag-",s):v,b=v.replace("--ag-","--ag-inherited-");t+=` ${v}: var(${b}, ${m});
12
+ `,n+=` ${b}: var(${w});
13
+ `}}u!==Kr&&(t+=`}
14
+ `,n+=`}
15
+ `)}const a=`:where(.${this._getParamsClassName()})`;let l=`${a} {
16
+ ${t}}
17
+ `;l+=`:has(> ${a}):not(${a}) {
18
+ ${n}}
19
+ `,this._paramsCssCache=l}return this._paramsCssCache}},gF=e=>{const t=new Map;for(const i of e)t.set(i.feature,i);const n=[];for(const i of e)(!i.feature||t.get(i.feature)===i)&&n.push(i);return n},UH=e=>{const t=new Set,n=r=>{if(Array.isArray(r))r.forEach(n);else{const s=r?.googleFont;typeof s=="string"&&t.add(s)}};return Object.values(e._getModeParams()).flatMap(r=>Object.values(r)).forEach(n),Array.from(t).sort()},mF=!1,$H=()=>{if(!mF){mF=!0;for(const e of Array.from(document.head.querySelectorAll('style[data-ag-scope="legacy"]')))e.remove()}},jH=async(e,t)=>{const n=`@import url('https://${KH}/css2?family=${encodeURIComponent(e)}:wght@100;200;300;400;500;600;700;800;900&display=swap');
20
+ `;zs(n,document.head,`googleFont:${e}`,void 0,0,t)},KH="fonts.googleapis.com",vF={changeKey:"listItemHeight",type:"length",defaultValue:24},qH=class extends Vn{constructor(){super(...arguments),this.beanName="environment",this.sizeEls=new Map,this.lastKnownValues=new Map,this.sizesMeasured=!1,this.globalCSS=[]}wireBeans(e){this.eRootDiv=e.eRootDiv}postConstruct(){const{gos:e,eRootDiv:t}=this;e.setInstanceDomData(t);const n=e.get("themeStyleContainer"),i=typeof ShadowRoot<"u",o=i&&t.getRootNode()instanceof ShadowRoot;this.eStyleContainer=(typeof n=="function"?n():n)??(o?t:document.head),!n&&!o&&i&&QH(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(vF),this.initVariables(),this.addDestroyFunc(()=>EH(this)),this.mutationObserver=new MutationObserver(()=>{this.fireStylesChangedEvent("theme")}),this.addDestroyFunc(()=>this.mutationObserver.disconnect())}applyThemeClasses(e,t=[]){const{theme:n}=this,i=n?n._getCssClass():this.applyLegacyThemeClasses();for(const o of Array.from(e.classList))o.startsWith("ag-theme-")&&e.classList.remove(o);if(i){const o=e.className;e.className=`${o}${o?" ":""}${i}${t?.length?" "+t.join(" "):""}`}}applyLegacyThemeClasses(){let e="";this.mutationObserver.disconnect();let t=this.eRootDiv;for(;t;){let n=!1;for(const i of Array.from(t.classList))i.startsWith("ag-theme-")&&(n=!0,e=e?`${e} ${i}`:i);n&&this.mutationObserver.observe(t,{attributes:!0,attributeFilter:["class"]}),t=t.parentElement}return e}addGlobalCSS(e,t){this.theme?zs(e,this.eStyleContainer,t,this.cssLayer,0,this.styleNonce):this.globalCSS.push([e,t])}getDefaultListItemHeight(){return this.getCSSVariablePixelValue(vF)}getCSSVariablePixelValue(e){const t=this.lastKnownValues.get(e);if(t!=null)return t;const n=this.measureSizeEl(e);return n==="detached"||n==="no-styles"?(e.cacheDefault&&this.lastKnownValues.set(e,e.defaultValue),e.defaultValue):(this.lastKnownValues.set(e,n),n)}measureSizeEl(e){const t=this.getSizeEl(e);if(t.offsetParent==null)return"detached";const n=t.offsetWidth;return n===Gm?"no-styles":(this.sizesMeasured=!0,n)}getMeasurementContainer(){let e=this.eMeasurementContainer;return e||(e=this.eMeasurementContainer=As({tag:"div",cls:"ag-measurement-container"}),this.eRootDiv.appendChild(e)),e}getSizeEl(e){let t=this.sizeEls.get(e);if(t)return t;const n=this.getMeasurementContainer();t=As({tag:"div"});const i=this.setSizeElStyles(t,e);n.appendChild(t),this.sizeEls.set(e,t);const{type:o,noWarn:r}=e;if(o!=="length"&&o!=="border")return t;let s=this.measureSizeEl(e);s==="no-styles"&&!r&&this.varError(i,e.defaultValue);const a=_r(this.beans,t,()=>{const l=this.measureSizeEl(e);l==="detached"||l==="no-styles"||(this.lastKnownValues.set(e,l),l!==s&&(s=l,this.fireStylesChangedEvent(e.changeKey)))});return this.addDestroyFunc(()=>a()),t}setSizeElStyles(e,t){const{changeKey:n,type:i}=t;let o=Om(n);return i==="border"?(o.endsWith("-width")&&(o=o.slice(0,-6)),e.className="ag-measurement-element-border",e.style.setProperty("--ag-internal-measurement-border",`var(${o}, solid ${Gm}px)`)):e.style.width=`var(${o}, ${Gm}px)`,o}handleThemeChange(){const{gos:e,theme:t}=this,n=e.get("theme");let i;if(n==="legacy")i=void 0;else{const o=n??this.getDefaultTheme();o instanceof pF?i=o:this.themeError(o)}i!==t&&this.handleNewTheme(i),this.postProcessThemeChange(i,n)}handleNewTheme(e){const{gos:t,eRootDiv:n,globalCSS:i}=this,o=this.getAdditionalCss();if(e){sF(this.eStyleContainer,this.cssLayer,this.styleNonce,o);for(const[r,s]of i)zs(r,this.eStyleContainer,s,this.cssLayer,0,this.styleNonce);i.length=0}this.theme=e,e?._startUse({loadThemeGoogleFonts:t.get("loadThemeGoogleFonts"),styleContainer:this.eStyleContainer,cssLayer:this.cssLayer,nonce:this.styleNonce,moduleCss:o}),PH(this,e?._getParamsCss()??null,e?._getParamsClassName()??null,this.eStyleContainer,this.cssLayer,this.styleNonce),this.applyThemeClasses(n),this.fireStylesChangedEvent("theme")}fireStylesChangedEvent(e){this.eventSvc.dispatchEvent({type:"stylesChanged",[`${e}Changed`]:!0})}},Gm=15538,QH=(e,t,n)=>{let i=60;const o=setInterval(()=>{typeof ShadowRoot<"u"&&e.getRootNode()instanceof ShadowRoot&&(t(),clearInterval(o)),(e.isConnected||--i<0)&&clearInterval(o)},1e3);n(()=>clearInterval(o))},YH='.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}.ag-body-viewport::-webkit-scrollbar,.ag-center-cols-viewport::-webkit-scrollbar,.ag-floating-bottom-viewport::-webkit-scrollbar,.ag-floating-top-viewport::-webkit-scrollbar,.ag-header-viewport::-webkit-scrollbar,.ag-sticky-bottom-viewport::-webkit-scrollbar,.ag-sticky-top-viewport::-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-left-sticky-bottom,.ag-pinned-right-cols-container,.ag-pinned-right-sticky-bottom,.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-active),&:where(.ag-scrollbar-scrolling){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-sticky-bottom{box-sizing:content-box!important;:where(.ag-pinned-left-sticky-bottom),:where(.ag-pinned-right-sticky-bottom),:where(.ag-sticky-bottom-container){border-top:var(--ag-row-border);box-sizing:border-box}}.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;:where(.ag-column-group-closed-icon),:where(.ag-column-group-opened-icon){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-cell-font-size);font-weight:var(--ag-cell-font-weight);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-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-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)),:where(.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)):before,.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)}.ag-header-cell:where(:not(.ag-floating-filter)):where(:hover):before,.ag-header-group-cell:where(:hover):before{--ag-internal-hover-color:var(--ag-header-cell-hover-background-color)}.ag-header-cell:where(:not(.ag-floating-filter)):where(.ag-header-cell-moving):before,.ag-header-group-cell: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}:where(.ag-ltr) .ag-header-cell-resize{right:-3px}:where(.ag-rtl) .ag-header-cell-resize{left:-3px}.ag-header-cell-resize: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:after{left:calc(50% - var(--ag-header-column-resize-handle-width))}:where(.ag-rtl) .ag-header-cell-resize: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{container-type:normal;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{container-type:normal;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);container-type:inline-size;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)}.ag-chart-menu-icon:hover,.ag-chart-settings-next:hover,.ag-chart-settings-prev:hover,.ag-column-group-icons:hover,.ag-column-select-header-icon:hover,.ag-filter-toolpanel-expand:hover,.ag-floating-filter-button-button:hover,.ag-group-title-bar-icon:hover,.ag-header-cell-filter-button:hover,.ag-header-cell-menu-button:hover,.ag-header-expand-icon:hover,.ag-panel-title-bar-button-icon:hover,.ag-panel-title-bar-button:hover,.ag-set-filter-group-icons:hover,:where(.ag-group-contracted) .ag-icon:hover,:where(.ag-group-expanded) .ag-icon: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),:where(.ag-filter-toolpanel-group-instance-header-icon),:where(.ag-filter-toolpanel-instance-header-icon){position:relative}:where(.ag-filter-active):after,:where(.ag-filter-toolpanel-group-instance-header-icon):after,:where(.ag-filter-toolpanel-instance-header-icon):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):after,:where(.ag-ltr) :where(.ag-filter-toolpanel-group-instance-header-icon):after,:where(.ag-ltr) :where(.ag-filter-toolpanel-instance-header-icon):after{right:-1px}:where(.ag-rtl) :where(.ag-filter-active):after,:where(.ag-rtl) :where(.ag-filter-toolpanel-group-instance-header-icon):after,:where(.ag-rtl) :where(.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)}}',ZH={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,sideBarPanelAnimationDuration:0,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:jn,sideButtonSelectedTextColor:{ref:"sideButtonTextColor"},sideButtonBorder:"solid 1px transparent",sideButtonSelectedBorder:!0,sideButtonLeftPadding:{ref:"spacing"},sideButtonRightPadding:{ref:"spacing"},sideButtonVerticalPadding:{calc:"spacing * 3"},cellFontFamily:{ref:"fontFamily"},cellFontSize:{ref:"dataFontSize"},cellFontWeight:{ref:"fontWeight"},headerCellHoverBackgroundColor:"transparent",headerCellMovingBackgroundColor:{ref:"headerCellHoverBackgroundColor"},headerCellBackgroundTransitionDuration:"0.2s",cellTextColor:{ref:"textColor"},rangeSelectionBorderStyle:"solid",rangeSelectionBorderColor:ko,rangeSelectionBackgroundColor:Mo(.2),rangeSelectionChartBackgroundColor:"#0058FF1A",rangeSelectionChartCategoryBackgroundColor:"#00FF841A",rangeSelectionHighlightColor:Mo(.5),rangeHeaderHighlightColor:MH(.08),rowNumbersSelectedColor:Mo(.5),rowHoverColor:Mo(.08),columnHoverColor:Mo(.05),selectedRowBackgroundColor:Mo(.12),modalOverlayBackgroundColor:{ref:"backgroundColor",mix:.66},dataBackgroundColor:jn,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, cellFontSize) + spacing * 3.25 * rowVerticalPaddingScale"},rowVerticalPaddingScale:1,paginationPanelHeight:{ref:"rowHeight",calc:"max(rowHeight, 22px)"},dragHandleColor:Oi(.7),headerColumnResizeHandleHeight:"30%",headerColumnResizeHandleWidth:2,headerColumnResizeHandleColor:{ref:"borderColor"},iconButtonColor:{ref:"iconColor"},iconButtonBackgroundColor:"transparent",iconButtonBackgroundSpread:4,iconButtonBorderRadius:1,iconButtonHoverColor:{ref:"iconButtonColor"},iconButtonHoverBackgroundColor:Oi(.1),iconButtonActiveColor:ko,iconButtonActiveBackgroundColor:Mo(.28),iconButtonActiveIndicatorColor:ko,setFilterIndentSize:{ref:"iconSize"},chartMenuPanelWidth:260,chartMenuLabelColor:Oi(.8),cellEditingBorder:{color:ko},cellEditingShadow:{ref:"cardShadow"},fullRowEditInvalidBackgroundColor:{ref:"invalidColor",onto:"backgroundColor",mix:.25},columnSelectIndentSize:{ref:"iconSize"},toolPanelSeparatorBorder:!0,columnDropCellBackgroundColor:Oi(.07),columnDropCellTextColor:{ref:"textColor"},columnDropCellDragHandleColor:{ref:"textColor"},columnDropCellBorder:{color:Oi(.13)},selectCellBackgroundColor:Oi(.07),selectCellBorder:{color:Oi(.13)},advancedFilterBuilderButtonBarBorder:!0,advancedFilterBuilderIndentSize:{calc:"spacing * 2 + iconSize"},advancedFilterBuilderJoinPillColor:"#f08e8d",advancedFilterBuilderColumnPillColor:"#a6e194",advancedFilterBuilderOptionPillColor:"#f3c08b",advancedFilterBuilderValuePillColor:"#85c0e4",filterPanelApplyButtonColor:jn,filterPanelApplyButtonBackgroundColor:ko,columnPanelApplyButtonColor:jn,columnPanelApplyButtonBackgroundColor:ko,filterPanelCardSubtleColor:{ref:"textColor",mix:.7},filterPanelCardSubtleHoverColor:{ref:"textColor"},findMatchColor:Us,findMatchBackgroundColor:"#ffff00",findActiveMatchColor:Us,findActiveMatchBackgroundColor:"#ffa500",filterToolPanelGroupIndent:{ref:"spacing"},rowLoadingSkeletonEffectColor:Oi(.15),statusBarLabelColor:Us,statusBarLabelFontWeight:500,statusBarValueColor:Us,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},XH=".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)}",CF={cellBatchEditBackgroundColor:"rgba(220 181 139 / 16%)",cellBatchEditTextColor:"#422f00",rowBatchEditBackgroundColor:{ref:"cellBatchEditBackgroundColor"},rowBatchEditTextColor:{ref:"cellBatchEditTextColor"}},JH={...CF,cellBatchEditTextColor:"#f3d0b3"},eV=()=>ro({feature:"batchEditStyle",params:CF,css:XH}),tV=eV(),nV=":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);&: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)}}.ag-standard-button:hover{background-color:var(--ag-button-hover-background-color);border:var(--ag-button-hover-border);color:var(--ag-button-hover-text-color)}",iV={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"}},oV=()=>ro({feature:"buttonStyle",params:{...iV,buttonBackgroundColor:jn,buttonBorder:!0,buttonHoverBackgroundColor:{ref:"rowHoverColor"},buttonActiveBorder:{color:ko}},css:nV}),rV=oV(),sV=".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}",aV=()=>ro({feature:"columnDropStyle",css:sV}),wF=aV(),lV={formulaToken1Color:"#3269c6",formulaToken1BackgroundColor:{ref:"formulaToken1Color",mix:.08},formulaToken1Border:{color:{ref:"formulaToken1Color"}},formulaToken2Color:"#c0343f",formulaToken2BackgroundColor:{ref:"formulaToken2Color",mix:.06},formulaToken2Border:{color:{ref:"formulaToken2Color"}},formulaToken3Color:"#8156b8",formulaToken3BackgroundColor:{ref:"formulaToken3Color",mix:.08},formulaToken3Border:{color:{ref:"formulaToken3Color"}},formulaToken4Color:"#007c1f",formulaToken4BackgroundColor:{ref:"formulaToken4Color",mix:.06},formulaToken4Border:{color:{ref:"formulaToken4Color"}},formulaToken5Color:"#b03e85",formulaToken5BackgroundColor:{ref:"formulaToken5Color",mix:.08},formulaToken5Border:{color:{ref:"formulaToken5Color"}},formulaToken6Color:"#b74900",formulaToken6BackgroundColor:{ref:"formulaToken6Color",mix:.06},formulaToken6Border:{color:{ref:"formulaToken6Color"}},formulaToken7Color:"#247492",formulaToken7BackgroundColor:{ref:"formulaToken7Color",mix:.08},formulaToken7Border:{color:{ref:"formulaToken7Color"}}},cV=()=>ro({feature:"formulaStyle",params:lV}),uV=cV(),dV={warn:(...e)=>{se(e[0],e[1])},error:(...e)=>{gt(e[0],e[1])},preInitErr:(...e)=>{vc(e[0],e[2],e[1])}},hV=()=>zH(dV).withParams(ZH).withPart(rV).withPart(wF).withPart(tV).withPart(uV),fV='.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(.ag-checked){background-color:var(--ag-checkbox-checked-background-color);border-color:var(--ag-checkbox-checked-border-color)}&:where(.ag-checked):after{background-color:var(--ag-checkbox-checked-shape-color)}&:where(.ag-disabled){filter:grayscale();opacity:.5}}.ag-checkbox-input,.ag-radio-button-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)}.ag-checkbox-input-wrapper:after,.ag-radio-button-input-wrapper: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}.ag-checkbox-input-wrapper:where(:focus-within,:active),.ag-radio-button-input-wrapper:where(:focus-within,:active){box-shadow:var(--ag-focus-shadow)}.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)}&:where(.ag-indeterminate):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)}}',pV=()=>ro({feature:"checkboxStyle",params:{checkboxBorderWidth:1,checkboxBorderRadius:{ref:"borderRadius"},checkboxUncheckedBackgroundColor:jn,checkboxUncheckedBorderColor:Ni(.3),checkboxCheckedBackgroundColor:ko,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:jn,checkboxIndeterminateBackgroundColor:Ni(.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:jn,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:fV}),gV=pV(),bF=()=>({...ph,...JH,backgroundColor:"hsl(217, 0%, 17%)",foregroundColor:"#FFF",chromeBackgroundColor:Ni(.05),rowHoverColor:Mo(.15),selectedRowBackgroundColor:Mo(.2),menuBackgroundColor:Ni(.1),browserColorScheme:"dark",popupShadow:"0 0px 20px #000A",cardShadow:"0 1px 4px 1px #000A",advancedFilterBuilderJoinPillColor:"#7a3a37",advancedFilterBuilderColumnPillColor:"#355f2d",advancedFilterBuilderOptionPillColor:"#5a3168",advancedFilterBuilderValuePillColor:"#374c86",filterPanelApplyButtonColor:Us,columnPanelApplyButtonColor:Us,findMatchColor:jn,findActiveMatchColor:jn,checkboxUncheckedBorderColor:Ni(.4),toggleButtonOffBackgroundColor:Ni(.4),rowBatchEditBackgroundColor:Ni(.1),formulaToken1Color:"#4da3e5",formulaToken2Color:"#f55864",formulaToken3Color:"#b688f2",formulaToken4Color:"#24bb4a",formulaToken5Color:"#e772ba",formulaToken6Color:"#f69b5f",formulaToken7Color:"#a3e6ff"}),mV=()=>({...bF(),backgroundColor:"#1f2836"}),vV=()=>ro({feature:"colorScheme",params:ph,modeParams:{light:ph,dark:bF(),"dark-blue":mV()}}),CV=vV(),yF={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"/>'},SF={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>'},wV=(e={})=>{let t="";for(const n of[...Object.keys(yF),...Object.keys(SF)]){const i=bV(n,e.strokeWidth);t+=`.ag-icon-${n}::before { mask-image: url('data:image/svg+xml,${encodeURIComponent(i)}'); }
21
+ `}return t},bV=(e,t=1.5)=>{const n=SF[e];if(n)return n;const i=yF[e];if(!i)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>`+i+"</svg>"},yV=(e={})=>ro({feature:"iconSet",css:()=>wV(e)}),SV=yV(),RV=':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-ltr,.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:0 var(--ag-input-padding-start)}:where(.ag-column-select-header-filter-wrapper),:where(.ag-filter-add-select),:where(.ag-filter-filter),:where(.ag-filter-toolpanel-search),:where(.ag-floating-filter-search-icon),:where(.ag-mini-filter){.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),:where(.ag-ltr) :where(.ag-filter-add-select),:where(.ag-ltr) :where(.ag-filter-filter),:where(.ag-ltr) :where(.ag-filter-toolpanel-search),:where(.ag-ltr) :where(.ag-floating-filter-search-icon),:where(.ag-ltr) :where(.ag-mini-filter){.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),:where(.ag-rtl) :where(.ag-filter-add-select),:where(.ag-rtl) :where(.ag-filter-filter),:where(.ag-rtl) :where(.ag-filter-toolpanel-search),:where(.ag-rtl) :where(.ag-floating-filter-search-icon),:where(.ag-rtl) :where(.ag-mini-filter){.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)}}',FV=".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)}}}",xV={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},PV=()=>ro({feature:"inputStyle",params:{...xV,inputBackgroundColor:jn,inputBorder:!0,inputBorderRadius:{ref:"borderRadius"},inputPaddingStart:{ref:"spacing"},inputFocusBorder:{color:ko},inputFocusShadow:{ref:"focusShadow"},inputDisabledBackgroundColor:Ni(.06),inputDisabledTextColor:{ref:"textColor",mix:.5},inputInvalidBorder:{color:{ref:"invalidColor"}},pickerButtonBorder:!0,pickerListBorder:!0},css:()=>RV+FV}),EV=PV(),DV='.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}.ag-tab:hover{background-color:var(--ag-tab-hover-background-color);color:var(--ag-tab-hover-text-color)}.ag-tab.ag-tab-selected{background-color:var(--ag-tab-selected-background-color);color:var(--ag-tab-selected-text-color)}:where(.ag-ltr) .ag-tab.ag-tab-selected:where(:not(:first-of-type)){border-left-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(.ag-ltr) .ag-tab.ag-tab-selected:where(:not(:last-of-type)){border-right-color:var(--ag-tab-selected-border-color)}:where(.ag-rtl) .ag-tab.ag-tab-selected:where(:not(:last-of-type)){border-left-color:var(--ag-tab-selected-border-color)}.ag-tab: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.ag-tab-selected:after{opacity:1}',TV={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},AV=()=>ro({feature:"tabStyle",params:{...TV,tabBarBorder:!0,tabBarBackgroundColor:Oi(.05),tabTextColor:{ref:"textColor",mix:.7},tabSelectedTextColor:{ref:"textColor"},tabHoverTextColor:{ref:"textColor"},tabSelectedBorderColor:{ref:"borderColor"},tabSelectedBackgroundColor:jn},css:DV}),IV=AV(),MV=()=>({fontFamily:[{googleFont:"IBM Plex Sans"},"-apple-system","BlinkMacSystemFont","Segoe UI","Roboto","Oxygen-Sans","Ubuntu"]}),kV=()=>hV().withPart(gV).withPart(CV).withPart(SV).withPart(IV).withPart(EV).withPart(wF).withParams(MV()),LV=kV(),qr=(e,t,n,i,o)=>({changeKey:e,type:t,defaultValue:n,noWarn:i,cacheDefault:o}),_V=qr("cellHorizontalPadding","length",16),OV=qr("indentationLevel","length",0,!0,!0),NV=qr("rowGroupIndentSize","length",0),RF=qr("rowHeight","length",42),FF=qr("headerHeight","length",48),Hm=qr("rowBorderWidth","border",1),xF=qr("pinnedRowBorderWidth","border",1),BV=qr("headerRowBorderWidth","border",1);function GV(e,t){for(const n of t.sort((i,o)=>i.moduleName.localeCompare(o.moduleName))){const i=n.css;i&&e.set(`module-${n.moduleName}`,i)}}var HV=class extends qH{initVariables(){this.addManagedPropertyListener("rowHeight",()=>this.refreshRowHeightVariable()),this.getSizeEl(RF),this.getSizeEl(FF),this.getSizeEl(Hm),this.getSizeEl(xF),this.refreshRowBorderWidthVariable()}getPinnedRowBorderWidth(){return this.getCSSVariablePixelValue(xF)}getRowBorderWidth(){return this.getCSSVariablePixelValue(Hm)}getHeaderRowBorderWidth(){return this.getCSSVariablePixelValue(BV)}getDefaultRowHeight(){return this.getCSSVariablePixelValue(RF)}getDefaultHeaderHeight(){return this.getCSSVariablePixelValue(FF)}getDefaultCellHorizontalPadding(){return this.getCSSVariablePixelValue(_V)}getCellPaddingLeft(){const e=this.getDefaultCellHorizontalPadding(),t=this.getCSSVariablePixelValue(OV),n=this.getCSSVariablePixelValue(NV);return e-1+n*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(),n=this.gos.get("rowHeight");if(n==null||isNaN(n)||!isFinite(n))return t!==null&&e.style.setProperty("--ag-line-height",null),-1;const i=`${n}px`;return t!=i?(e.style.setProperty("--ag-line-height",i),n):t!=""?Number.parseFloat(t):-1}fireStylesChangedEvent(e){e==="rowBorderWidth"&&this.refreshRowBorderWidthVariable(),super.fireStylesChangedEvent(e)}refreshRowBorderWidthVariable(){const e=this.getCSSVariablePixelValue(Hm);this.eRootDiv.style.setProperty("--ag-internal-row-border-width",`${e}px`)}postProcessThemeChange(e,t){e&&getComputedStyle(this.getMeasurementContainer()).getPropertyValue("--ag-legacy-styles-loaded")&&gt(t?106:239)}getAdditionalCss(){const e=new Map;return e.set("core",[YH]),GV(e,Array.from(ZL())),e}getDefaultTheme(){return LV}varError(e,t){se(9,{variable:{cssName:e,defaultValue:t}})}themeError(e){gt(240,{theme:e})}shadowRootError(){gt(293)}},VV=class extends Vn{constructor(){super(...arguments),this.beanName="eventSvc",this.eventServiceType="global",this.globalSvc=new Es}addListener(e,t,n){this.globalSvc.addEventListener(e,t,n)}removeListener(e,t,n){this.globalSvc.removeEventListener(e,t,n)}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))}},WV=class extends VV{postConstruct(){const{globalListener:e,globalSyncListener:t}=this.beans;e&&this.addGlobalListener(e,!0),t&&this.addGlobalListener(t,!1)}};function Vm(e,t,n){const i=e.visibleCols.headerGroupRowCount;if(n>=i)return{column:t,headerRowIndex:n};let o=t.getParent();for(;o&&o.getProvidedColumnGroup().getLevel()>n;)o=o.getParent();const r=t.isSpanHeaderHeight();return!o||r&&o.isPadding()?{column:t,headerRowIndex:i}:{column:o,headerRowIndex:o.getProvidedColumnGroup().getLevel()}}var zV=class extends X{constructor(){super(...arguments),this.beanName="headerNavigation",this.currentHeaderRowWithoutSpan=-1}postConstruct(){const e=this.beans;e.ctrlsSvc.whenReady(this,n=>{this.gridBodyCon=n.gridBodyCtrl});const t=on(e);this.addManagedElementListeners(t,{mousedown:()=>{this.currentHeaderRowWithoutSpan=-1}})}getHeaderPositionForColumn(e,t){let n;const{colModel:i,colGroupSvc:o,ctrlsSvc:r}=this.beans;if(typeof e=="string"?(n=i.getCol(e),n||(n=o?.getColumnGroup(e)??null)):n=e,!n)return null;const a=r.getHeaderRowContainerCtrl()?.getAllCtrls(),l=Pt(a||[]).type==="filter",u=_i(this.beans)-1;let h=-1,f=n;for(;f;)h++,f=f.getParent();let p=h;return t&&l&&p===u-1&&p++,p===-1?null:{headerRowIndex:p,column:n}}navigateVertically(e,t){const{focusSvc:n,visibleCols:i}=this.beans,{focusedHeader:o}=n;if(!o)return!1;const{headerRowIndex:r}=o,s=o.column,a=_i(this.beans),l=this.getHeaderRowType(r),u=i.headerGroupRowCount;let{headerRowIndex:h,column:f,headerRowIndexWithoutSpan:p}=e==="UP"?UV(l,s,r):$V(s,r,u),m=!1;return h<0&&(h=0,f=s,m=!0),h>=a?(h=-1,this.currentHeaderRowWithoutSpan=-1):p!==void 0&&(this.currentHeaderRowWithoutSpan=p),!m&&!f?!1:n.focusHeaderPosition({headerPosition:{headerRowIndex:h,column:f},allowUserOverride:!0,event:t})}navigateHorizontally(e,t=!1,n){const{focusSvc:i,gos:o}=this.beans,r={...i.focusedHeader};let s,a;this.currentHeaderRowWithoutSpan!==-1?r.headerRowIndex=this.currentHeaderRowWithoutSpan:this.currentHeaderRowWithoutSpan=r.headerRowIndex,e==="LEFT"!==o.get("enableRtl")?(a="Before",s=this.findHeader(r,a)):(a="After",s=this.findHeader(r,a));const l=o.getCallback("tabToNextHeader");if(t&&l){const u=i.focusHeaderPositionFromUserFunc({userFunc:l,headerPosition:s,direction:a});if(u){const{headerRowIndex:h}=i.focusedHeader||{};h!=null&&h!=r.headerRowIndex&&(this.currentHeaderRowWithoutSpan=h)}return u}return s||!t?i.focusHeaderPosition({headerPosition:s,direction:a,fromTab:t,allowUserOverride:!0,event:n}):this.focusNextHeaderRow(r,a,n)}focusNextHeaderRow(e,t,n){const i=this.beans,o=e.headerRowIndex;let r=null,s;const a=_i(i),l=this.beans.visibleCols.allCols;if(t==="Before"){if(o<=0)return!1;r=Pt(l),s=o-1,this.currentHeaderRowWithoutSpan-=1}else r=l[0],s=o+1,this.currentHeaderRowWithoutSpan<a?this.currentHeaderRowWithoutSpan+=1:this.currentHeaderRowWithoutSpan=-1;let{column:u,headerRowIndex:h}=Vm(this.beans,r,s);return h>=a&&(h=-1),i.focusSvc.focusHeaderPosition({headerPosition:{column:u,headerRowIndex:h},direction:t,fromTab:!0,allowUserOverride:!0,event:n})}scrollToColumn(e,t="After"){if(e.getPinned())return;let n;if(Zt(e)){const i=e.getDisplayedLeafColumns();n=t==="Before"?Pt(i):i[0]}else n=e;this.gridBodyCon.scrollFeature.ensureColumnVisible(n)}findHeader(e,t){const{colGroupSvc:n,visibleCols:i}=this.beans;let o=e.column;if(o instanceof Sc){const l=o.getDisplayedLeafColumns();o=t==="Before"?l[0]:l[l.length-1]}const r=t==="Before"?i.getColBefore(o):i.getColAfter(o);if(!r)return;const s=i.headerGroupRowCount;if(e.headerRowIndex>=s)return{headerRowIndex:e.headerRowIndex,column:r};const a=n?.getColGroupAtLevel(r,e.headerRowIndex);return a?a.isPadding()&&r.isSpanHeaderHeight()?{headerRowIndex:i.headerGroupRowCount,column:r}:{headerRowIndex:e.headerRowIndex,column:a??r}:{headerRowIndex:r instanceof Ls&&r.isSpanHeaderHeight()?i.headerGroupRowCount:e.headerRowIndex,column:r}}getHeaderRowType(e){const t=this.beans.ctrlsSvc.getHeaderRowContainerCtrl();if(t)return t.getRowType(e)}};function UV(e,t,n){const i=n-1;if(e!=="filter"){const o=t instanceof Ls&&t.isSpanHeaderHeight();let r=t.getParent();for(;r&&(r.getProvidedColumnGroup().getLevel()>i||o&&r.isPadding());)r=r.getParent();if(r)return o?{column:r,headerRowIndex:r.getProvidedColumnGroup().getLevel(),headerRowIndexWithoutSpan:i}:{column:r,headerRowIndex:i,headerRowIndexWithoutSpan:i}}return{column:t,headerRowIndex:i,headerRowIndexWithoutSpan:i}}function $V(e,t,n){const i=t+1,o={column:e,headerRowIndex:i,headerRowIndexWithoutSpan:i};if(e instanceof Sc){if(i>=n)return{column:e.getDisplayedLeafColumns()[0],headerRowIndex:n,headerRowIndexWithoutSpan:i};let s=e.getDisplayedChildren()[0];if(s instanceof Sc&&s.isPadding()){const l=s.getDisplayedLeafColumns()[0];l.isSpanHeaderHeight()&&(s=l)}o.column=s,s instanceof Ls&&s.isSpanHeaderHeight()&&(o.headerRowIndex=n,o.headerRowIndexWithoutSpan=i)}return o}var jV=class extends X{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(BO(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(At(this.beans),cR)?null:this.focusedHeader}doesRowOrCellHaveBrowserFocus(){const e=At(this.beans);return this.isDomDataPresentInHierarchy(e,eh,!0)?!0:this.isDomDataPresentInHierarchy(e,th,!0)}isDomDataPresentInHierarchy(e,t,n){let i=e;for(;i;){const o=a0(this.gos,i,t);if(o)return o.destroyed&&n?(this.attemptToRecoverFocus(),!1):!0;i=i.parentNode}return!1}getFocusedCell(){return this.focusedCell}getFocusEventParams(e){const{rowIndex:t,rowPinned:n,column:i}=e,o={rowIndex:t,rowPinned:n,column:i,isFullWidthCell:!1},r=this.rowRenderer.getRowByPosition({rowIndex:t,rowPinned:n});return r&&(o.isFullWidthCell=r.isFullWidth()),o}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:n,rowPinned:i,forceBrowserFocus:o=!1,preventScrollOnBrowserFocus:r=!1,sourceEvent:s}=e,a=this.colModel.getCol(t);if(!a){this.focusedCell=null;return}this.focusedCell={rowIndex:n,rowPinned:Jo(i),column:a};const l=this.getFocusEventParams(this.focusedCell);this.eventSvc.dispatchEvent({type:"cellFocused",...l,...this.previousCellFocusParams&&{previousParams:this.previousCellFocusParams},forceBrowserFocus:o,preventScrollOnBrowserFocus:r,sourceEvent:s}),this.previousCellFocusParams=l}isCellFocused(e){return this.focusedCell==null?!1:tm(e,this.focusedCell)}isHeaderWrapperFocused(e){if(this.focusedHeader==null)return!1;const{column:t,rowCtrl:{rowIndex:n,pinned:i}}=e,{column:o,headerRowIndex:r}=this.focusedHeader;return t===o&&n===r&&i==o.getPinned()}focusHeaderPosition(e){if(this.setFocusRecovered(),no(this.beans))return!1;const{direction:t,fromTab:n,allowUserOverride:i,event:o,fromCell:r,rowWithoutSpanValue:s,scroll:a=!0}=e;let{headerPosition:l}=e;if(r&&this.filterManager?.isAdvFilterHeaderActive())return this.focusAdvancedFilter(l);if(i){const u=this.focusedHeader,h=_i(this.beans);if(n){const f=this.gos.getCallback("tabToNextHeader");f&&(l=this.getHeaderPositionFromUserFunc({userFunc:f,direction:t,currentPosition:u,headerPosition:l,headerRowCount:h}))}else{const f=this.gos.getCallback("navigateToNextHeader");if(f&&o){const p={key:o.key,previousHeaderPosition:u,nextHeaderPosition:l,headerRowCount:h,event:o},m=f(p);l=m===null?u:m}}}return l?this.focusProvidedHeaderPosition({headerPosition:l,direction:t,event:o,fromCell:r,rowWithoutSpanValue:s,scroll:a}):!1}focusHeaderPositionFromUserFunc(e){if(no(this.beans))return!1;const{userFunc:t,headerPosition:n,direction:i,event:o}=e,r=this.focusedHeader,s=_i(this.beans),a=this.getHeaderPositionFromUserFunc({userFunc:t,direction:i,currentPosition:r,headerPosition:n,headerRowCount:s});return!!a&&this.focusProvidedHeaderPosition({headerPosition:a,direction:i,event:o})}getHeaderPositionFromUserFunc(e){const{userFunc:t,direction:n,currentPosition:i,headerPosition:o,headerRowCount:r}=e,a=t({backwards:n==="Before",previousHeaderPosition:i,nextHeaderPosition:o,headerRowCount:r});return a===!0?i:a===!1?null:a}focusProvidedHeaderPosition(e){const{headerPosition:t,direction:n,fromCell:i,rowWithoutSpanValue:o,event:r,scroll:s=!0}=e,{column:a,headerRowIndex:l}=t,{filterManager:u,ctrlsSvc:h,headerNavigation:f}=this.beans;if(this.focusedHeader&&R2(e.headerPosition,this.focusedHeader))return!1;if(l===-1)return u?.isAdvFilterHeaderActive()?this.focusAdvancedFilter(t):this.focusGridView({column:a,event:r});s&&f?.scrollToColumn(a,n);const m=h.getHeaderRowContainerCtrl(a.getPinned())?.focusHeader(t.headerRowIndex,a,r)||!1;return f&&m&&(o!=null||i)&&(f.currentHeaderRowWithoutSpan=o??-1),m}focusFirstHeader(){if(this.overlays?.exclusive&&this.focusOverlay())return!0;const e=this.visibleCols.allCols[0];if(!e)return!1;const t=Vm(this.beans,e,0);return this.focusHeaderPosition({headerPosition:t,rowWithoutSpanValue:0})}focusLastHeader(e){if(this.overlays?.exclusive&&this.focusOverlay(!0))return!0;const t=_i(this.beans)-1,n=Pt(this.visibleCols.allCols);return this.focusHeaderPosition({headerPosition:{headerRowIndex:t,column:n},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===Jo(t)}focusOverlay(e){const t=this.overlays?.isVisible()&&this.overlays.eWrapper?.getGui();return!!t&&Ns(t,e)}getDefaultTabToNextGridContainerTarget(e){const{backwards:t,focusableContainers:n}=e,i=t?-1:1;let o;const r=()=>(o===void 0&&(o=this.getGridBodyTabTarget(t)),o);for(let s=e.nextIndex;s>=0&&s<n.length;s+=i){const a=v2(n[s],r);if(a)return a}return null}getGridBodyTabTarget(e){if(e)return this.getGridViewTabTarget({column:Pt(this.visibleCols.allCols),backwards:!0});const t=this.visibleCols.allCols[0];return this.gos.get("headerHeight")===0||no(this.beans)?this.getGridViewTabTarget({column:t}):t?Vm(this.beans,t,0):null}getGridViewTabTarget(e){const{backwards:t=!1}=e,n=e.column??this.focusedHeader?.column;if(!n||this.overlays?.exclusive)return null;if(Pc(this.beans))return t&&!no(this.beans)?{headerRowIndex:_i(this.beans)-1,column:n}:null;const i=t?tR(this.beans):eR(this.beans);if(i?.rowIndex==null){if(this.overlays?.isVisible())return null;if(t&&!no(this.beans)){const r=Pt(this.visibleCols.allCols);if(r)return{headerRowIndex:_i(this.beans)-1,column:r}}return null}const o=Eo(this.beans,i);return!o||n.isSuppressNavigable(o)||t&&this.rowRenderer.getRowByPosition(i)?.isFullWidth()?null:{rowIndex:i.rowIndex,rowPinned:i.rowPinned,column:n}}focusGridView(e){const{backwards:t=!1,canFocusOverlay:n=!0,event:i}=e;if(this.overlays?.exclusive)return n&&this.focusOverlay(t);if(Pc(this.beans))return t&&!no(this.beans)?this.focusLastHeader():n&&this.focusOverlay(t)?!0:t?!1:Ya(this.beans,t);const o=t?tR(this.beans):eR(this.beans);if(o){const r=e.column??this.focusedHeader?.column,{rowIndex:s,rowPinned:a}=o,l=Eo(this.beans,o);if(!r||!l||s==null)return!1;if(r.isSuppressNavigable(l)){const u=this.gos.get("enableRtl");let h;return!i||i.key===K.TAB?h=u?K.LEFT:K.RIGHT:h=i.key,this.beans.navigation?.navigateToNextCell(null,h,{rowIndex:s,column:r,rowPinned:a||null},!0),!0}return this.navigation?.ensureCellVisible({rowIndex:s,column:r,rowPinned:a}),t&&this.rowRenderer.getRowByPosition(o)?.isFullWidth()&&this.navigation?.tryToFocusFullWidthRow(o,t)||(this.setFocusedCell({rowIndex:s,column:r,rowPinned:Jo(a),forceBrowserFocus:!0}),zn(r)||this.beans.rangeSvc?.setRangeToCell({rowIndex:s,rowPinned:a,column:r})),!0}return!!(n&&this.focusOverlay(t)||t&&this.focusLastHeader())}focusAdvancedFilter(e){return this.advFilterFocusColumn=e?.column,this.beans.advancedFilter?.getCtrl().focusHeaderComp()??!1}focusNextFromAdvancedFilter(e,t){const n=(t?void 0:this.advFilterFocusColumn)??this.visibleCols.allCols?.[0];return e?this.focusHeaderPosition({headerPosition:{column:n,headerRowIndex:_i(this.beans)-1}}):this.focusGridView({column:n})}clearAdvancedFilterColumn(){this.advFilterFocusColumn=void 0}},KV=class extends X{constructor(){super(...arguments),this.beanName="scrollVisibleSvc"}wireBeans(e){this.ctrlsSvc=e.ctrlsSvc,this.colAnimation=e.colAnimation}postConstruct(){const{gos:e}=this;this.horizontalScrollShowing=e.get("alwaysShowHorizontalScroll")===!0,this.verticalScrollShowing=e.get("alwaysShowVerticalScroll")===!0,this.getScrollbarWidth();const t=this.updateScrollVisible.bind(this);this.addManagedEventListeners({displayedColumnsChanged:t,displayedColumnsWidthChanged:t,newColumnsLoaded:t})}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(),n=e.hasVerticalScrollGap();(this.horizontalScrollGap!==t||this.verticalScrollGap!==n)&&(this.horizontalScrollGap=t,this.verticalScrollGap=n,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"),n=typeof e=="number"&&e>=0?e:Ug();n!=null&&(this.scrollbarWidth=n,this.eventSvc.dispatchEvent({type:"scrollbarWidthChanged"}))}return this.scrollbarWidth}},qV=class extends X{constructor(){super(...arguments),this.beanName="gridDestroySvc",this.destroyCalled=!1}destroy(){if(this.destroyCalled)return;const{stateSvc:e,ctrlsSvc:t,context:n}=this.beans;this.eventSvc.dispatchEvent({type:"gridPreDestroyed",state:e?.getState()??{}}),this.destroyCalled=!0,t.get("gridCtrl")?.destroyGridUi(),n.destroy(),super.destroy()}},QV=["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"],Mc=new Set(["gridPreDestroyed","fillStart","pasteStart"]),mh=QV.reduce((e,t)=>(e[t]=y_(t),e),{}),tl={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",agBigIntColumnFilter:"BigIntFilter",agDateColumnFilter:"DateFilter",agDateInput:"DateFilter",agTextColumnFloatingFilter:"TextFilter",agNumberColumnFloatingFilter:"NumberFilter",agBigIntColumnFloatingFilter:"BigIntFilter",agDateColumnFloatingFilter:"DateFilter",agFormulaCellEditor:"Formula",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 PF(e){return`"${e}"`}var YV=()=>({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."}}),ZV={allowFormula:"Formula",aggFunc:"SharedAggregation",autoHeight:"RowAutoHeight",cellClass:"CellStyle",cellClassRules:"CellStyle",cellEditor:({cellEditor:e,editable:t,groupRowEditable:n})=>!!t||!!n?typeof e=="string"?tl[e]??"CustomEditor":"CustomEditor":null,cellRenderer:({cellRenderer:e})=>typeof e!="string"?null:tl[e],cellStyle:"CellStyle",columnChooserParams:"ColumnMenu",contextMenuItems:"ContextMenu",dndSource:"DragAndDrop",dndSourceOnRowDrag:"DragAndDrop",editable:({editable:e,cellEditor:t})=>e&&!t?"TextEditor":null,groupRowEditable:({groupRowEditable:e,cellEditor:t})=>e?t?"RowGroupingEdit":["RowGroupingEdit","TextEditor"]:null,groupRowValueSetter:({groupRowValueSetter:e})=>e?"RowGroupingEdit":null,enableCellChangeFlash:"HighlightChanges",enablePivot:"SharedPivot",enableRowGroup:"SharedRowGrouping",enableValue:"SharedAggregation",filter:({filter:e})=>e&&typeof e!="string"&&typeof e!="boolean"?"CustomFilter":typeof e=="string"?tl[e]??"ColumnFilter":"ColumnFilter",floatingFilter:"ColumnFilter",getQuickFilterText:"QuickFilter",headerTooltip:"Tooltip",headerTooltipValueGetter:"Tooltip",mainMenuItems:"ColumnMenu",menuTabs:e=>{const t=["columnsMenuTab","generalMenuTab"];return e.menuTabs?.some(n=>t.includes(n))?"ColumnMenu":null},pivot:"SharedPivot",pivotIndex:"SharedPivot",rowDrag:"RowDrag",rowGroup:"SharedRowGrouping",rowGroupIndex:"SharedRowGrouping",tooltipField:"Tooltip",tooltipValueGetter:"Tooltip",tooltipComponentSelector:"Tooltip",spanRows:"CellSpan",groupHierarchy:"SharedRowGrouping"},XV=()=>({autoHeight:{supportedRowModels:["clientSide","serverSide"],validate:(t,{paginationAutoPageSize:n})=>n?"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,n)=>n.autoSizeStrategy?"colDef.flex is not supported with gridOptions.autoSizeStrategy":null},headerCheckboxSelection:{supportedRowModels:["clientSide","serverSide"],validate:(t,{rowSelection:n})=>n==="multiple"?null:"headerCheckboxSelection is only supported with rowSelection=multiple"},headerCheckboxSelectionCurrentPageOnly:{supportedRowModels:["clientSide"],validate:(t,{rowSelection:n})=>n==="multiple"?null:"headerCheckboxSelectionCurrentPageOnly is only supported with rowSelection=multiple"},headerCheckboxSelectionFilteredOnly:{supportedRowModels:["clientSide"],validate:(t,{rowSelection:n})=>n==="multiple"?null:"headerCheckboxSelectionFilteredOnly is only supported with rowSelection=multiple"},headerValueGetter:{validate:t=>{const n=t.headerValueGetter;return typeof n=="function"||typeof n=="string"?null:"headerValueGetter must be a function or a valid string expression"}},icons:{validate:({icons:t})=>{if(t){if(t.smallDown)return xo(262);if(t.smallLeft)return xo(263);if(t.smallRight)return xo(264)}return null}},sort:{validate:t=>$a(t.sort)||Hr(t.sort)?null:`sort must be of type (SortDirection | SortDef), currently it is ${typeof t.sort=="object"?JSON.stringify(t.sort):Ld(t.sort)}`},initialSort:{validate:t=>$a(t.initialSort)||Hr(t.initialSort)?null:`initialSort must be of non-null type (SortDirection | SortDef), currently it is ${typeof t.initialSort=="object"?JSON.stringify(t.initialSort):Ld(t.initialSort)}`},sortingOrder:{validate:t=>{const n=t.sortingOrder;if(Array.isArray(n)&&n.length>0){const i=n.filter(o=>!($a(o)||Hr(o)));if(i.length>0)return`sortingOrder must be an array of type non-null (SortDirection | SortDef)[], incorrect items are: [${i.map(o=>typeof o=="string"||o==null?Ld(o):JSON.stringify(o)).join(", ")}]`}else if(!Array.isArray(n)||!n.length)return`sortingOrder must be an array with at least one element, currently it is [${n}]`;return null}},type:{validate:t=>{const n=t.type;return n instanceof Array?n.some(o=>typeof o!="string")?"if colDef.type is supplied an array it should be of type 'string[]'":null:typeof n=="string"?null:"colDef.type should be of type 'string' | 'string[]'"}},rowSpan:{validate:(t,{suppressRowTransform:n})=>n?null:"colDef.rowSpan requires suppressRowTransform to be enabled."},spanRows:{dependencies:{editable:{required:[!1,void 0]},groupRowEditable:{required:[!1,void 0]},rowDrag:{required:[!1,void 0]},colSpan:{required:[void 0]},rowSpan:{required:[void 0]}},validate:(t,{rowSelection:n,cellSelection:i,suppressRowTransform:o,enableCellSpan:r,rowDragEntireRow:s,enableCellTextSelection:a})=>typeof n=="object"&&n?.mode==="singleRow"&&n?.enableClickSelection?"colDef.spanRows is not supported with rowSelection.clickSelection":i?"colDef.spanRows is not supported with cellSelection.":o?"colDef.spanRows is not supported with suppressRowTransform.":r?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:n={}},i){const o=new Set(["year","quarter","month","formattedMonth","day","hour","minute","second"]),r=[];for(const s of t.groupHierarchy??[]){if(typeof s=="object"){i.validation?.validateColDef(s);continue}!o.has(s)&&!(s in n)&&r.push(PF(s))}if(r.length>0){const s=`The following parts of colDef.groupHierarchy are not recognised: ${r.join(", ")}.`,a=`Choose one of ${[...o].map(PF).join(", ")}, or define your own parts in gridOptions.groupHierarchyConfig.`;return`${s}
22
+ ${a}`}return null}}}),JV={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,groupRowEditable:void 0,groupRowValueSetter: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},e5=()=>Object.keys(JV),t5=()=>({objectName:"colDef",allProperties:e5(),docsUrl:"column-properties/",deprecations:YV(),validations:XV()}),EF=["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"],n5=["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"],i5=["sortingOrder","alignedGrids","rowData","columnDefs","excelStyles","pinnedTopRowData","pinnedBottomRowData","chartThemes","rowClass","paginationPageSizeSelector","suppressOverlays"],Wm=["rowHeight","detailRowHeight","rowBuffer","headerHeight","groupHeaderHeight","groupLockGroupColumns","floatingFiltersHeight","pivotHeaderHeight","pivotGroupHeaderHeight","groupDefaultExpanded","pivotDefaultExpanded","viewportRowModelPageSize","viewportRowModelBufferSize","autoSizePadding","maxBlocksInCache","maxConcurrentDatasourceRequests","tooltipShowDelay","tooltipSwitchShowDelay","tooltipHideDelay","cacheOverflowSize","paginationPageSize","cacheBlockSize","infiniteInitialRowCount","serverSideInitialRowCount","scrollbarWidth","asyncTransactionWaitMillis","blockLoadDebounceMillis","keepDetailRowsCount","undoRedoCellEditingLimit","cellFlashDuration","cellFadeDuration","tabIndex","pivotMaxGeneratedColumns","rowDragInsertDelay"],o5=["theme","rowSelection"],DF=["cellSelection","sideBar","rowNumbers","suppressGroupChangesColumnVisibility","groupAggFiltering","suppressStickyTotalRow","groupHideParentOfSingleChild","enableRowPinning"],zm=["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","groupHideColumnsUntilExpanded","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"],TF=["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","tabToNextGridContainer","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"],Um=()=>[...i5,...n5,...EF,...Wm,...TF,...zm,...DF,...o5],r5=()=>[...EF,...Wm,...TF,...zm,...DF],s5=()=>({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 Lo(e,t,n){return typeof t=="number"||t==null?t==null||t>=n?null:`${e}: value should be greater than or equal to ${n}`:`${e}: value should be a number`}var a5={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"},l5=()=>{const e={autoSizePadding:{validate({autoSizePadding:n}){return Lo("autoSizePadding",n,0)}},cacheBlockSize:{supportedRowModels:["serverSide","infinite"],validate({cacheBlockSize:n}){return Lo("cacheBlockSize",n,1)}},cacheOverflowSize:{validate({cacheOverflowSize:n}){return Lo("cacheOverflowSize",n,1)}},datasource:{supportedRowModels:["infinite"]},domLayout:{validate:n=>{const i=n.domLayout,o=["autoHeight","normal","print"];return i&&!o.includes(i)?`domLayout must be one of [${o.join()}], currently it's ${i}`:null}},enableFillHandle:{dependencies:{enableRangeSelection:{required:[!0]}}},enableRangeHandle:{dependencies:{enableRangeSelection:{required:[!0]}}},enableCellSpan:{supportedRowModels:["clientSide","serverSide"]},enableRangeSelection:{dependencies:{rowDragEntireRow:{required:[!1,void 0]}}},enableRowPinning:{supportedRowModels:["clientSide"],validate({enableRowPinning:n,pinnedTopRowData:i,pinnedBottomRowData:o}){return n&&(i||o)?"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:n,isRowPinnable:i,pinnedTopRowData:o,pinnedBottomRowData:r}){return i&&(o||r)?"Manual row pinning cannot be used together with pinned row data. Either remove `isRowPinnable`, or remove `pinnedTopRowData` and `pinnedBottomRowData`.":!n&&i?"`isRowPinnable` requires `enableRowPinning` to be set.":null}},isRowPinned:{supportedRowModels:["clientSide"],validate({enableRowPinning:n,isRowPinned:i,pinnedTopRowData:o,pinnedBottomRowData:r}){return i&&(o||r)?"Manual row pinning cannot be used together with pinned row data. Either remove `isRowPinned`, or remove `pinnedTopRowData` and `pinnedBottomRowData`.":!n&&i?"`isRowPinned` requires `enableRowPinning` to be set.":null}},groupDefaultExpanded:{supportedRowModels:["clientSide"]},groupHideColumnsUntilExpanded:{supportedRowModels:["clientSide"],validate({groupHideColumnsUntilExpanded:n,groupHideOpenParents:i,groupDisplayType:o}){return n&&!i&&o!=="multipleColumns"?"`groupHideColumnsUntilExpanded = true` requires either `groupDisplayType = 'multipleColumns'` or `groupHideOpenParents = true`":null}},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:n={}},i,o){for(const r of Object.keys(n))o.validation?.validateColDef(n[r]);return null}},icons:{validate:({icons:n})=>{if(n){if(n.smallDown)return xo(262);if(n.smallLeft)return xo(263);if(n.smallRight)return xo(264)}return null}},infiniteInitialRowCount:{validate({infiniteInitialRowCount:n}){return Lo("infiniteInitialRowCount",n,1)}},initialGroupOrderComparator:{supportedRowModels:["clientSide"]},ssrmExpandAllAffectsAllRows:{validate:n=>{if(typeof n.ssrmExpandAllAffectsAllRows=="boolean"){if(n.rowModelType!=="serverSide")return"'ssrmExpandAllAffectsAllRows' is only supported with the Server Side Row Model.";if(n.ssrmExpandAllAffectsAllRows&&typeof n.getRowId!="function")return"'getRowId' callback must be provided for Server Side Row Model grouping to work correctly."}return null}},keepDetailRowsCount:{validate({keepDetailRowsCount:n}){return Lo("keepDetailRowsCount",n,1)}},paginationPageSize:{validate({paginationPageSize:n}){return Lo("paginationPageSize",n,1)}},paginationPageSizeSelector:{validate:n=>{const i=n.paginationPageSizeSelector;return typeof i=="boolean"||i==null||i.length?null:`'paginationPageSizeSelector' cannot be an empty array.
23
+ 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:n}){return Lo("rowBuffer",n,0)}},rowClass:{validate:n=>typeof n.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:n}){return n&&typeof n=="string"?'As of version 32.2.1, using `rowSelection` with the values "single" or "multiple" has been deprecated. Use the object value instead.':n&&typeof n!="object"?"Expected `RowSelectionOptions` object for the `rowSelection` property.":n&&n.mode!=="multiRow"&&n.mode!=="singleRow"?`Selection mode "${n.mode}" is invalid. Use one of 'singleRow' or 'multiRow'.`:null}},rowStyle:{validate:n=>{const i=n.rowStyle;return i&&typeof i=="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:n}){return Lo("serverSideInitialRowCount",n,1)}},serverSideOnlyRefreshFilteredGroups:{supportedRowModels:["serverSide"]},serverSideSortAllLevels:{supportedRowModels:["serverSide"]},sortingOrder:{validate:n=>{const i=n.sortingOrder;if(Array.isArray(i)&&i.length>0){const o=i.filter(r=>!Li(r));if(o.length>0)return`sortingOrder must be an array of type (SortDirection | SortDef)[], incorrect items are: ${o.map(r=>typeof r=="string"||r==null?Ld(r):JSON.stringify(r))}]`}else if(!Array.isArray(i)||!i.length)return`sortingOrder must be an array with at least one element, currently it's ${i}`;return null}},tooltipHideDelay:{validate:n=>n.tooltipHideDelay&&n.tooltipHideDelay<0?"tooltipHideDelay should not be lower than 0":null},tooltipShowDelay:{validate:n=>n.tooltipShowDelay&&n.tooltipShowDelay<0?"tooltipShowDelay should not be lower than 0":null},tooltipSwitchShowDelay:{validate:n=>n.tooltipSwitchShowDelay&&n.tooltipSwitchShowDelay<0?"tooltipSwitchShowDelay should not be lower than 0":null},treeData:{supportedRowModels:["clientSide","serverSide"],validate:n=>{const i=n.rowModelType??"clientSide";switch(i){case"clientSide":{const{treeDataChildrenField:o,treeDataParentIdField:r,getDataPath:s,getRowId:a}=n;if(!o&&!r&&!s)return"treeData requires either 'treeDataChildrenField' or 'treeDataParentIdField' or 'getDataPath' in the clientSide row model.";if(o){if(s)return"Cannot use both 'treeDataChildrenField' and 'getDataPath' at the same time.";if(r)return"Cannot use both 'treeDataChildrenField' and 'treeDataParentIdField' at the same time."}if(r){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 o=`treeData requires 'isServerSideGroup' and 'getServerSideGroupKey' in the ${i} row model.`;return n.isServerSideGroup&&n.getServerSideGroupKey?null:o}}return null}},viewportDatasource:{supportedRowModels:["viewport"]},viewportRowModelBufferSize:{validate({viewportRowModelBufferSize:n}){return Lo("viewportRowModelBufferSize",n,0)}},viewportRowModelPageSize:{validate({viewportRowModelPageSize:n}){return Lo("viewportRowModelPageSize",n,1)}},rowDragEntireRow:{dependencies:{cellSelection:{required:[void 0]}}},autoGroupColumnDef:{validate({autoGroupColumnDef:n,showOpenedGroup:i}){return n?.field&&i?"autoGroupColumnDef.field and showOpenedGroup are not supported when used together.":n?.valueGetter&&i?"autoGroupColumnDef.valueGetter and showOpenedGroup are not supported when used together.":null}},renderingMode:{validate:n=>{const i=n.renderingMode,o=["default","legacy"];return i&&!o.includes(i)?`renderingMode must be one of [${o.join()}], currently it's ${i}`:null}},autoSizeStrategy:{validate:({autoSizeStrategy:n})=>{if(!n)return null;const i=["fitCellContents","fitGridWidth","fitProvidedWidth"],o=n.type;return o!=="fitCellContents"&&o!=="fitGridWidth"&&o!=="fitProvidedWidth"?`Invalid Auto-size strategy. \`autoSizeStrategy\` must be one of ${i.map(r=>'"'+r+'"').join(", ")}, currently it's ${o}`:o==="fitProvidedWidth"&&typeof n.width!="number"?`When using the 'fitProvidedWidth' auto-size strategy, must provide a numeric \`width\`. You provided ${n.width}`:null}}},t={};for(const n of zm)t[n]={expectedType:"boolean"};for(const n of Wm)t[n]={expectedType:"number"};return Wn(t,e),t},c5=()=>({objectName:"gridOptions",allProperties:[...Um(),...Object.values(mh)],propertyExceptions:["api"],docsUrl:"grid-options/",deprecations:s5(),validations:l5()}),u5=0,d5=0,AF="__ag_grid_instance",h5=class extends X{constructor(){super(...arguments),this.beanName="gos",this.domDataKey="__AG_"+Math.random().toString(),this.instanceId=d5++,this.gridReadyFired=!1,this.queueEvents=[],this.propEventSvc=new Es,this.globalEventHandlerFactory=e=>(t,n)=>{if(!this.isAlive())return;const i=Mc.has(t);if(i&&!e||!i&&e||!f5(t))return;const o=(r,s)=>{const a=mh[r],l=this.gridOptions[a];typeof l=="function"&&this.beans.frameworkOverrides.wrapOutgoing(()=>l(s))};if(this.gridReadyFired)o(t,n);else if(t==="gridReady"){o(t,n),this.gridReadyFired=!0;for(const r of this.queueEvents)o(r.eventName,r.event);this.queueEvents=[]}else this.queueEvents.push({eventName:t,event:n})}}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]??UL[e]}getCallback(e){return this.mergeGridCommonParams(this.gridOptions[e])}exists(e){return Ce(this.gridOptions[e])}mergeGridCommonParams(e){return e&&(n=>e(this.addCommon(n)))}updateGridOptions({options:e,force:t,source:n="api"}){const i={id:u5++,properties:[]},o=[],{gridOptions:r,validation:s}=this;for(const a of Object.keys(e)){const l=Rg.applyGlobalGridOption(a,e[a]);s?.warnOnInitialPropertyUpdate(n,a);const u=t||typeof l=="object"&&n==="api",h=r[a];if(u||h!==l){r[a]=l;const f={type:a,currentValue:l,previousValue:h,changeSet:i,source:n};o.push(f)}}this.validateGridOptions(this.gridOptions),i.properties=o.map(a=>a.type);for(const a of o)Nr(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 n of Object.keys(e)){const i=e[n];if(i==null||i===!1)continue;let o=t[n];typeof o=="function"&&(o=o(e,this.gridOptions,this.beans)),o&&this.assertModuleRegistered(o,n)}}validateGridOptions(e){this.validateOptions(e,a5),this.validation?.processGridOptions(e)}validateColDef(e,t,n){(n||!this.beans.dataTypeSvc?.isColPendingInference(t))&&(this.validateOptions(e,ZV),this.validation?.validateColDef(e))}assertModuleRegistered(e,t){const n=Array.isArray(e)?e.some(i=>this.isModuleRegistered(i)):this.isModuleRegistered(e);return n||gt(200,{...this.getModuleErrorParams(),moduleName:e,reasonOrId:t}),n}getModuleErrorParams(){return{gridId:this.gridId,gridScoped:xg(),rowModelType:this.get("rowModelType"),isUmd:XS()}}isModuleRegistered(e){return Fg(e,this.gridId,this.get("rowModelType"))}setInstanceDomData(e){e[AF]=this.instanceId}isElementInThisInstance(e){let t=e;for(;t;){const n=t[AF];if(Ce(n))return n===this.instanceId;t=t.parentElement}return!1}};function f5(e){return!!mh[e]}var p5=class extends X{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:n,gos:i}=this.beans;if(!(Ua(i)?e.altKey:!0))n?.handleColumnSelection(this.column,e);else if(this.column.isSortable()){const r=this.column.isMoving(),a=Date.now()-this.lastMovingChanged<50;r||a||t?.progressSortFromEvent(this.column,e)}}};function g5(e,t){const n={"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:n},{tag:"span",ref:"eFilterButton",cls:"ag-header-icon ag-header-cell-filter-button",attrs:n},{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:n},t?{tag:"ag-sort-indicator",ref:"eSortIndicator"}:null]}]}}var m5=class extends yt{constructor(){super(...arguments),this.eFilter=de,this.eFilterButton=de,this.eSortIndicator=de,this.eMenu=de,this.eLabel=de,this.eText=de,this.eColRef=de,this.eSortOrder=de,this.eSortAsc=de,this.eSortDesc=de,this.eSortMixed=de,this.eSortNone=de,this.eSortAbsoluteAsc=de,this.eSortAbsoluteDesc=de,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 n={...e};Wn(n,e.innerHeaderComponentParams),this.innerHeaderComponent.refresh?.(n)}else this.setDisplayName(e);return!0}workOutTemplate(e,t){const{formula:n}=this.beans,i=e.template;return i?i?.trim?i.trim():i:g5(!!n?.active,t)}init(e){this.params=e;const{sortSvc:t,touchSvc:n,rowNumbersSvc:i,userCompFactory:o}=this.beans,r=t?.getSortIndicatorSelector();this.currentTemplate=this.workOutTemplate(e,!!r),this.setTemplate(this.currentTemplate,r?[r]:void 0),this.eLabel&&(this.mouseListener??(this.mouseListener=this.createManagedBean(new p5(e.column,this.eLabel)))),n?.setupForHeader(this),this.setMenu(),this.setupSort(),this.setupColumnRefIndicator(),i?.setupForHeader(this),this.setupFilterIcon(),this.setupFilterButton(),this.workOutInnerHeaderComponent(o,e),this.setDisplayName(e)}workOutInnerHeaderComponent(e,t){const n=wO(e,t,t);n&&(this.isLoadingInnerComponent=!0,n.newAgStackInstance().then(i=>{this.isLoadingInnerComponent=!1,i&&(this.isAlive()?(this.innerHeaderComponent=i,this.eText&&this.eText.appendChild(i.getGui())):this.destroyBean(i))}))}setDisplayName(e){const{displayName:t}=e,n=this.currentDisplayName;this.currentDisplayName=t,!(!this.eText||n===t||this.innerHeaderComponent||this.isLoadingInnerComponent)&&(this.eText.textContent=La(t))}addInIcon(e,t,n){const i=ii(e,this.beans,n);i&&t.appendChild(i)}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){Mi(this.eMenu),this.eMenu=void 0;return}const{gos:e,eMenu:t,params:n}=this,i=ni(e);this.addInIcon(i?"menu":"menuAlt",t,n.column),t.classList.toggle("ag-header-menu-icon",!i);const o=this.shouldSuppressMenuHide();this.currentSuppressMenuHide=o,this.addManagedElementListeners(t,{click:()=>this.showColumnMenu(this.eMenu)}),this.toggleMenuAlwaysShow(o)}toggleMenuAlwaysShow(e){this.eMenu?.classList.toggle("ag-header-menu-always-show",e)}showColumnMenu(e){const{currentSuppressMenuHide:t,params:n}=this;t||this.toggleMenuAlwaysShow(!0),n.showColumnMenu(e,()=>{t||this.toggleMenuAlwaysShow(!1)})}onMenuKeyboardShortcut(e){const{params:t,gos:n,beans:i,eMenu:o,eFilterButton:r}=this,s=t.column,a=ni(n);if(e&&!a){if(i.menuSvc?.isFilterMenuInHeaderEnabled(s))return t.showFilter(r??o??this.getGui()),!0}else if(t.enableMenu)return this.showColumnMenu(o??r??this.getGui()),!0;return!1}setupSort(){const{sortSvc:e}=this.beans;if(!e)return;const{enableSorting:t,column:n}=this.params;if(this.currentSort=t,!this.eSortIndicator){this.eSortIndicator=this.createBean(e.createSortIndicator(!0));const{eSortIndicator:i,eSortOrder:o,eSortAsc:r,eSortDesc:s,eSortMixed:a,eSortNone:l,eSortAbsoluteAsc:u,eSortAbsoluteDesc:h}=this;i.attachCustomElements(o,r,s,a,l,u,h)}this.eSortIndicator.setupSort(n),this.currentSort&&e.setupHeader(this,n)}setupColumnRefIndicator(){const{eColRef:e,beans:{editModelSvc:t},params:n}=this;e&&(this.currentRef=n.column.formulaRef,e.textContent=this.currentRef,bt(e,!1),this.addManagedEventListeners({cellEditingStarted:()=>{const i=t?.getEditPositions(),o=!!this.currentRef&&!!i?.some(r=>r.column.isAllowFormula());bt(e,o)},cellEditingStopped:()=>{bt(e,!1)}}))}setupFilterIcon(){const{eFilter:e,params:t}=this;if(!e)return;const n=()=>{const i=t.column.isFilterActive();bt(e,i,{skipAriaHidden:!0})};this.configureFilter(t.enableFilterIcon,e,n,"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,n,i){if(!e)return Mi(t),!1;const o=this.params.column;return this.addInIcon(i,t,o),this.addManagedListeners(o,{filterChanged:n}),n(),!0}onFilterChangedButton(){const e=this.params.column.isFilterActive();this.eFilterButton.classList.toggle("ag-filter-active",e)}getAnchorElementForMenu(e){const{eFilterButton:t,eMenu:n}=this;return e?t??n??this.getGui():n??t??this.getGui()}destroy(){super.destroy(),this.innerHeaderComponent=this.destroyBean(this.innerHeaderComponent),this.mouseListener=this.destroyBean(this.mouseListener)}},v5=class extends X{constructor(e,t){super(),this.eLabel=e,this.columnGroup=t,this.isSticky=!1,this.left=null,this.right=null}postConstruct(){const{columnGroup:e,beans:t}=this,{ctrlsSvc:n}=t;n.whenReady(this,()=>{const i=this.refreshPosition.bind(this);e.getPinned()==null&&this.addManagedEventListeners({bodyScroll:o=>{o.direction==="horizontal"&&this.updateSticky(o.left)}}),this.addManagedListeners(e,{leftChanged:i,displayedChildrenChanged:i}),this.addManagedEventListeners({columnResized:i}),this.refreshPosition()})}refreshPosition(){const{columnGroup:e,beans:t}=this,n=e.getLeft(),i=e.getActualWidth();if(n==null||i===0){this.left=null,this.right=null,this.setSticky(!1);return}this.left=n,this.right=n+i;const o=t.colViewport.getScrollPosition();o!=null&&this.updateSticky(o)}updateSticky(e){const{beans:t,left:n,right:i}=this;if(n==null||i==null){this.setSticky(!1);return}const{gos:o,visibleCols:r}=t,a=o.get("enableRtl")?r.bodyWidth-e:e;this.setSticky(n<a&&i>a)}setSticky(e){const{isSticky:t,eLabel:n}=this;t!==e&&(this.isSticky=e,n.classList.toggle("ag-sticky-label",e))}},C5={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"}]},w5=class extends yt{constructor(){super(C5),this.agOpened=de,this.agClosed=de,this.agLabel=de,this.isLoadingInnerComponent=!1}init(e){const{userCompFactory:t,touchSvc:n}=this.beans;this.params=e,this.checkWarnings(),this.workOutInnerHeaderGroupComponent(t,e),this.setupLabel(e),this.addGroupExpandIcon(e),this.setupExpandIcons(),n?.setupForHeaderGroup(this)}checkWarnings(){this.params.template&&se(89)}workOutInnerHeaderGroupComponent(e,t){const n=yO(e,t,t);n&&(this.isLoadingInnerComponent=!0,n.newAgStackInstance().then(i=>{this.isLoadingInnerComponent=!1,i&&(this.isAlive()?(this.innerHeaderGroupComponent=i,this.agLabel.appendChild(i.getGui())):this.destroyBean(i))}))}setupExpandIcons(){const{agOpened:e,agClosed:t,params:{columnGroup:n},beans:{colGroupSvc:i}}=this;this.addInIcon("columnGroupOpened",e),this.addInIcon("columnGroupClosed",t);const o=l=>{if(sr(l))return;const u=!n.isExpanded();i.setColumnGroupOpened(n.getProvidedColumnGroup(),u,"uiColumnExpanded")};this.addTouchAndClickListeners(t,o),this.addTouchAndClickListeners(e,o);const r=l=>{Gs(l)};this.addManagedElementListeners(t,{dblclick:r}),this.addManagedElementListeners(e,{dblclick:r}),this.addManagedElementListeners(this.getGui(),{dblclick:o}),this.updateIconVisibility();const s=n.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:n}}=this;if(n.isExpandable()){const i=n.isExpanded();bt(e,i),bt(t,!i)}else bt(e,!1),bt(t,!1)}addInIcon(e,t){const n=ii(e,this.beans,null);n&&t.appendChild(n)}addGroupExpandIcon(e){if(!e.columnGroup.isExpandable()){const{agOpened:t,agClosed:n}=this;bt(t,!1),bt(n,!1)}}setupLabel(e){const{displayName:t,columnGroup:n}=e,{innerHeaderGroupComponent:i,isLoadingInnerComponent:o}=this,r=i||o;Ce(t)&&!r&&(this.agLabel.textContent=La(t)),n.getColGroupDef()?.suppressStickyLabel||this.createManagedBean(new v5(this.getGui(),n))}destroy(){super.destroy(),this.innerHeaderGroupComponent&&(this.destroyBean(this.innerHeaderGroupComponent),this.innerHeaderGroupComponent=void 0)}},b5={moduleName:"ColumnHeaderComp",version:me,userComponents:{agColumnHeader:m5},icons:{menu:"menu",menuAlt:"menu-alt"}},y5={moduleName:"ColumnGroupHeaderComp",version:me,userComponents:{agColumnGroupHeader:w5},icons:{columnGroupOpened:"expanded",columnGroupClosed:"contracted"}},S5=class extends X{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&&se(92)}createTask(e,t,n,i,o=!1){this.verify();let r=n;i&&this.batchFrameworkComps&&(r="f1");const s={task:e,index:t,createOrder:++this.taskCount,deferred:o};this.addTaskToList(this[r],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((n,i)=>n.deferred!==i.deferred?n.deferred?-1:1:n.index!==i.index?t*(i.index-n.index):i.createOrder-n.createOrder),e.sorted=!0}addDestroyTask(e){this.verify(),this.destroyTasks.push(e),this.schedule()}executeFrame(e){const{p1:t,p2:n,f1:i,destroyTasks:o,beans:r}=this,{ctrlsSvc:s,frameworkOverrides:a}=r,l=t.list,u=n.list,h=i.list,f=Date.now();let p=0;const m=e<=0,v=s.getScrollFeature();for(;m||p<e;){if(!v.scrollGridIfNeeded()){let b;if(l.length)this.sortTaskList(t),b=l.pop().task;else if(u.length)this.sortTaskList(n),b=u.pop().task;else if(h.length)a.wrapOutgoing(()=>{for(;(m||p<e)&&!v.scrollGridIfNeeded();){if(h.length)this.sortTaskList(i),b=h.pop().task,b();else break;p=Date.now()-f}}),b=()=>{};else if(o.length)b=o.pop();else break;b()}p=Date.now()-f}l.length||u.length||h.length||o.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);er(this.beans,e)}isQueueEmpty(){return!this.ticking}},R5={moduleName:"AnimationFrame",version:me,beans:[S5]},F5=class extends X{constructor(){super(...arguments),this.beanName="iconSvc"}createIconNoSpan(e,t){return ii(e,this.beans,t?.column)}},x5=(e,t,n)=>t||e&&n,P5=class extends X{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(!_s())return;const t=(n,i,o)=>{const{rowCtrl:r,cellCtrl:s}=e.getControlsForEventTarget(o?.target??null);s?.column&&s.dispatchCellContextMenuEvent(o??null),this.beans.contextMenuSvc?.handleContextMenuMouseEvent(void 0,o,r,s)};this.mockContextMenu(e,e.element,t)}handleCellDoubleClick(e,t){return(()=>{if(!_s()||Td("dblclick"))return!1;const i=Date.now(),o=i-e.lastIPadMouseClickEvent<200;return e.lastIPadMouseClickEvent=i,o})()?(e.onCellDoubleClicked(t),t.preventDefault(),!0):!1}setupForHeader(e){const{gos:t,sortSvc:n,menuSvc:i}=this.beans;if(t.get("suppressTouch"))return;const{params:o,eMenu:r,eFilterButton:s}=e,a=new Hs(e.getGui(),!0);e.addDestroyFunc(()=>a.destroy());const l=e.shouldSuppressMenuHide(),u=l&&Ce(r)&&o.enableMenu,h=!!i?.isHeaderContextMenuEnabled(o.column),f=x5(o.enableMenu,h,ni(t));let p=a;u&&(p=new Hs(r,!0),e.addDestroyFunc(()=>p.destroy()));const m=v=>o.showColumnMenuAfterMouseClick(v.touchStart);if(u&&o.enableMenu&&e.addManagedListeners(p,{tap:m}),f&&e.addManagedListeners(a,{longTap:m}),o.enableSorting){const v=w=>{const b=w.touchStart.target;l&&(r?.contains(b)||s?.contains(b))||n?.progressSort(o.column,!1,"uiColumnSorted")};e.addManagedListeners(a,{tap:v})}if(o.enableFilterButton&&s){const v=new Hs(s,!0);e.addManagedListeners(v,{tap:()=>o.showFilter(s)}),e.addDestroyFunc(()=>v.destroy())}}setupForHeaderGroup(e){const t=e.params;if(this.beans.menuSvc?.isHeaderContextMenuEnabled(t.columnGroup.getProvidedColumnGroup())){const n=new Hs(t.eGridHeader,!0),i=o=>t.showColumnMenuAfterMouseClick(o.touchStart);e.addManagedListeners(n,{longTap:i}),e.addDestroyFunc(()=>n.destroy())}}setupForHeaderGroupElement(e,t,n){const i=new Hs(t,!0);e.addManagedListeners(i,{tap:n}),e.addDestroyFunc(()=>i.destroy())}mockContextMenu(e,t,n){if(!_s())return;const i=new Hs(t),o=r=>{gc(this.beans,r.touchEvent)&&n(void 0,r.touchStart,r.touchEvent)};e.addManagedListeners(i,{longTap:o}),e.addDestroyFunc(()=>i.destroy())}},E5={moduleName:"Touch",version:me,beans:[P5]},D5=class extends X{constructor(){super(...arguments),this.beanName="cellNavigation"}wireBeans(e){this.rowSpanSvc=e.rowSpanSvc}getNextCellToFocus(e,t,n=!1){return n?this.getNextCellToFocusWithCtrlPressed(e,t):this.getNextCellToFocusWithoutCtrlPressed(e,t)}getNextCellToFocusWithCtrlPressed(e,t){const n=e===K.UP,i=e===K.DOWN,o=e===K.LEFT;let r,s;const{pageBounds:a,gos:l,visibleCols:u,pinnedRowModel:h}=this.beans,{rowPinned:f}=t;if(n||i)f&&h?n?s=0:s=f==="top"?h.getPinnedTopRowCount()-1:h.getPinnedBottomRowCount()-1:s=n?a.getFirstRow():a.getLastRow(),r=t.column;else{const p=l.get("enableRtl");s=t.rowIndex,r=(o!==p?u.allCols:[...u.allCols].reverse()).find(v=>!zn(v)&&this.isCellGoodToFocusOn({rowIndex:s,rowPinned:null,column:v}))}return r?{rowIndex:s,rowPinned:f,column:r}:null}getNextCellToFocusWithoutCtrlPressed(e,t){let n=t,i=!1;for(;!i;){switch(e){case K.UP:n=this.getCellAbove(n);break;case K.DOWN:n=this.getCellBelow(n);break;case K.RIGHT:n=this.gos.get("enableRtl")?this.getCellToLeft(n):this.getCellToRight(n);break;case K.LEFT:n=this.gos.get("enableRtl")?this.getCellToRight(n):this.getCellToLeft(n);break;default:n=null,se(8,{key:e});break}n?i=this.isCellGoodToFocusOn(n):i=!0}return n}isCellGoodToFocusOn(e){const t=e.column;let n;const{pinnedRowModel:i,rowModel:o}=this.beans;switch(e.rowPinned){case"top":n=i?.getPinnedTopRow(e.rowIndex);break;case"bottom":n=i?.getPinnedBottomRow(e.rowIndex);break;default:n=o.getRow(e.rowIndex);break}return n?!this.isSuppressNavigable(t,n):!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,n=nR(this.beans,t,!0);return n?{rowIndex:n.rowIndex,column:e.column,rowPinned:n.rowPinned}:null}getCellAbove(e){if(!e)return null;const t=this.rowSpanSvc?.getCellStart(e)??e,n=Xd(this.beans,{rowIndex:t.rowIndex,rowPinned:t.rowPinned},!0);return n?{rowIndex:n.rowIndex,column:e.column,rowPinned:n.rowPinned}:null}getNextTabbedCell(e,t){return t?this.getNextTabbedCellBackwards(e):this.getNextTabbedCellForwards(e)}getNextTabbedCellForwards(e){const{visibleCols:t,pagination:n}=this.beans,i=t.allCols;let o=e.rowIndex,r=e.rowPinned,s=t.getColAfter(e.column);if(!s){s=i[0];const a=nR(this.beans,e,!0);if(Nt(a)||!a.rowPinned&&!(n?.isRowInPage(a.rowIndex)??!0))return null;o=a?a.rowIndex:null,r=a?a.rowPinned:null}return{rowIndex:o,column:s,rowPinned:r}}getNextTabbedCellBackwards(e){const{beans:t}=this,{visibleCols:n,pagination:i}=t,o=n.allCols;let r=e.rowIndex,s=e.rowPinned,a=n.getColBefore(e.column);if(!a){a=Pt(o);const l=Xd(t,{rowIndex:e.rowIndex,rowPinned:e.rowPinned},!0);if(Nt(l)||!l.rowPinned&&!(i?.isRowInPage(l.rowIndex)??!0))return null;r=l?l.rowIndex:null,s=l?l.rowPinned:null}return{rowIndex:r,column:a,rowPinned:s}}isSuppressNavigable(e,t){const{suppressNavigable:n}=e.colDef;if(typeof n=="boolean")return n;if(typeof n=="function"){const i=e.createColumnFunctionCallbackParams(t);return n(i)}return!1}};function T5(e){return e.focusSvc.getFocusedCell()}function A5(e){return e.focusSvc.clearFocusedCell()}function I5(e,t,n,i){e.focusSvc.setFocusedCell({rowIndex:t,column:n,rowPinned:i,forceBrowserFocus:!0})}function M5(e,t){return e.navigation?.tabToNextCell(!1,t)??!1}function k5(e,t){return e.navigation?.tabToNextCell(!0,t)??!1}function L5(e,t,n=!1){const i=e.headerNavigation?.getHeaderPositionForColumn(t,n);i&&e.focusSvc.focusHeaderPosition({headerPosition:i})}function $s(e){const t=e;return t?.getFrameworkComponentInstance!=null?t.getFrameworkComponentInstance():e}var _5=class extends X{constructor(){super(...arguments),this.beanName="editModelSvc",this.edits=new Map,this.cellValidations=new IF,this.rowValidations=new MF,this.suspendEdits=!1}suspend(e){this.suspendEdits=e}removeEdits({rowNode:e,column:t}){if(!this.hasEdits({rowNode:e})||!e)return;const n=this.getEditRow(e);t?n.delete(t):n.clear(),n.size===0&&this.edits.delete(e)}getEditRow(e,t={}){if(this.suspendEdits||this.edits.size===0)return;const n=e&&this.edits.get(e);if(n)return n;if(t.checkSiblings){const i=e.pinnedSibling;if(i)return this.getEditRow(i)}}getEditRowDataValue(e,{checkSiblings:t}={}){if(!e||this.edits.size===0)return;const n=this.getEditRow(e),i=e.pinnedSibling,o=t&&i&&this.getEditRow(i);if(!n&&!o)return;const r={...e.data},s=(a,l)=>a.forEach(({editorValue:u,pendingValue:h},f)=>{const p=u===void 0?h:u;p!==dn&&(l[f.getColId()]=p)});return n&&s(n,r),o&&s(o,r),r}getEdit(e={},t){const{rowNode:n,column:i}=e,o=this.edits;if(this.suspendEdits||o.size===0||!n||!i)return;const r=o.get(n)?.get(i);if(r)return r;if(t?.checkSiblings){const s=n.pinnedSibling;if(s)return o.get(s)?.get(i)}}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((n,i)=>{const o=new Map;n.forEach(({editorState:r,...s},a)=>o.set(a,{...s})),t.set(i,o)}),t}setEditMap(e){this.edits.clear(),e.forEach((t,n)=>{const i=new Map;t.forEach((o,r)=>i.set(r,{...o})),this.edits.set(n,i)})}setEdit(e,t){const n=this.edits;(n.size===0||!n.has(e.rowNode))&&n.set(e.rowNode,new Map);const i=this.getEdit(e),o={editorState:{isCancelAfterEnd:void 0,isCancelBeforeStart:void 0},...i,...t};return this.getEditRow(e.rowNode).set(e.column,o),o}clearEditValue(e){const{rowNode:t,column:n}=e;if(!t)return;const i=r=>{r.editorValue=void 0,r.pendingValue=r.sourceValue,r.state="changed"};if(!n){this.getEditRow(t)?.forEach(i);return}const o=this.getEdit(e);o&&i(o)}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((n,i)=>{for(const o of n.keys()){const{editorState:r,...s}=n.get(o);t.push({rowNode:i,column:o,...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:n,column:i}=e,{withOpenEditor:o}=t;if(n){const r=this.getEditRow(n,t);return r?i?o?this.getEdit(e)?.state==="editing":r.has(i):r.size!==0?o?Array.from(r.values()).some(({state:s})=>s==="editing"):!0:!1:!1}return o?this.getEditPositions().some(({state:r})=>r==="editing"):this.edits.size>0}start(e){const t=this.getEditRow(e.rowNode)??new Map,{rowNode:n,column:i}=e;i&&!t.has(i)&&t.set(i,{editorValue:void 0,pendingValue:dn,sourceValue:this.beans.valueSvc.getValue(i,n,"data"),state:"editing",editorState:{isCancelAfterEnd:void 0,isCancelBeforeStart:void 0}}),this.edits.set(n,t)}stop(e,t,n){if(this.hasEdits(e))if(t){const i=this.getEditRow(e.rowNode)?.get(e.column);i&&(i.pendingValue===dn||i.pendingValue===i.sourceValue)?this.removeEdits(e):i&&n&&(i.editorValue=void 0)}else this.removeEdits(e)}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()}},IF=class{constructor(){this.cellValidations=new Map}getCellValidation(e){const{rowNode:t,column:n}=e||{};return this.cellValidations?.get(t)?.get(n)}hasCellValidation(e){return!e?.rowNode||!e.column?this.cellValidations.size>0:!!this.getCellValidation(e)}setCellValidation(e,t){const{rowNode:n,column:i}=e;this.cellValidations.has(n)||this.cellValidations.set(n,new Map),this.cellValidations.get(n).set(i,t)}clearCellValidation(e){const{rowNode:t,column:n}=e;this.cellValidations.get(t)?.delete(n)}setCellValidationMap(e){this.cellValidations=e}getCellValidationMap(){return this.cellValidations}clearCellValidationMap(){this.cellValidations.clear()}},MF=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 vh(e,t={}){const{rowIndex:n,rowId:i,rowCtrl:o,rowPinned:r}=t;if(o)return o;const{rowModel:s,rowRenderer:a}=e;let{rowNode:l}=t;return l||(i?l=h2(e,i,r):n!=null&&(l=s.getRow(n))),l?a.getRowCtrlByNode(l):void 0}function ft(e,t={}){const{cellCtrl:n,colId:i,columnId:o,column:r}=t;if(n)return n;const s=e.colModel.getCol(i??o??$m(r)),a=t.rowCtrl??vh(e,t),l=a?.getCellCtrl(s)??void 0;if(l)return l;const u=t.rowNode??a?.rowNode;if(u)return e.rowRenderer.getCellCtrls([u],[s])?.[0]}function kF(e){const{editSvc:t}=e;t?.isBatchEditing()?(Qr(e,{persist:!0}),Yr(e)):t?.stopEditing(void 0,{source:"api"})}function O5(e,t,n){const{gos:i,popupSvc:o}=t;if(!i.get("stopEditingWhenCellsLoseFocus"))return;const r=s=>{const a=s.relatedTarget;if(zg(a)===null){kF(t);return}let l=n.some(u=>u.contains(a))&&i.isElementInThisInstance(a);l||(l=!!o&&(o.getActivePopups().some(u=>u.contains(a))||o.isElementWithinCustomPopup(a))),l||kF(t)};for(const s of n)e.addManagedElementListeners(s,{focusout:r})}function $m(e){if(e)return typeof e=="string"?e:e.getColId()}var dn=Symbol("unedited"),N5=(e,t={})=>{const n=e.rowRenderer.getCellCtrls(t.rowNodes,t.columns),i=new Array(n.length);let o=0;for(let r=0,s=n.length;r<s;++r){const l=n[r].comp?.getCellEditor();l&&(i[o++]=$s(l))}return i.length=o,i};function B5(e,t,n,i,o,r){t.length===0&&n?.rowNode&&n?.column&&js(e,n,{key:i,event:o,cellStartedEdit:r});const{valueSvc:s,editSvc:a,editModelSvc:l}=e,{rowNode:u,column:h}=n??{};for(const f of t){const{rowNode:p,column:m}=f,v=ft(e,f);if(!v){if(p&&m){const b=s.getValue(m,p,"data"),S=(n?.rowNode===p&&n?.column===m&&i||void 0)??a?.getCellDataValue(f)??s.getValueForDisplay({column:m,node:p,from:"edit"})?.value??b??dn;l?.setEdit(f,{pendingValue:il(e,S,!1,m),sourceValue:b,state:"editing"})}continue}const w=r&&u===v.rowNode&&v.column===h;js(e,{rowNode:u,column:v.column},{key:w?i:null,event:w?o:null,cellStartedEdit:w&&r})}}function so({pendingValue:e,sourceValue:t}){return e===dn&&(e=t),e!==t}function G5(e){const t=new Map;for(const[n,i]of e){const o=new Map;for(const[r,s]of i)so(s)&&o.set(r,s);o.size>0&&t.set(n,o)}return t}function js(e,t,n){const{key:i,event:o,cellStartedEdit:r,silent:s}=n??{},{editModelSvc:a,gos:l,userCompFactory:u}=e,h=ft(e,t),f=h?.comp?.getCellEditor(),p=_F(e,t,i,r&&!s),m=a?.getEdit(t),v=p.value??m?.sourceValue;if(f){a?.setEdit(t,{editorValue:il(e,v,!0,t.column),state:"editing"}),f.refresh?.(p);return}const w=t.column.getColDef(),b=T0(u,w,p);if(!b)return;const{popupFromSelector:y,popupPositionFromSelector:R}=b,S=y??!!w.cellEditorPopup,x=R??w.cellEditorPopupPosition;if(OF(b.params,o),!h)return;const{rangeFeature:P,rowCtrl:D,comp:A,onEditorAttachedFuncs:N}=h;a?.setEdit(t,{editorValue:il(e,v,!0,t.column),state:"editing",editorState:{cellStartedEditing:void 0,cellStoppedEditing:void 0}}),h.editCompDetails=b,N.push(()=>P?.unsetComp()),A?.setEditDetails(b,S,x,l.get("reactiveCustomComponents")),D?.refreshRow({suppressFlash:!0}),H5(e,t,o,v,s)}function H5(e,t,n,i,o){const{editSvc:r,editModelSvc:s}=e,a=s?.getEdit(t);!o&&a?.state==="editing"&&!a?.editorState?.cellStartedEditing&&(r?.dispatchCellEvent(t,n,"cellEditingStarted",{value:i}),s?.setEdit(t,{editorState:{cellStartedEditing:!0}}))}function LF(e,t,n){const i={editorValueExists:!1};if(jm(e)&&(t.getValidationErrors?.()?.length??0)>0||n?.isCancelling)return i;if(n?.isStopping){const r=t?.isCancelAfterEnd?.();if(r)return{...i,isCancelAfterEnd:r}}return{editorValue:t.getValue(),editorValueExists:!0}}function _F(e,t,n,i){const{valueSvc:o,gos:r,editSvc:s}=e,a=e.gos.get("enableGroupEdit"),l=ft(e,t),u=t.rowNode?.rowIndex??void 0,h=s?.isBatchEditing(),f=e.colModel.getCol(t.column.getId()),{rowNode:p,column:m}=t,v=l.comp?.getCellEditor(),w=s?.getCellDataValue(t),b=w===void 0?v?LF(e,v)?.editorValue:void 0:w,y=b===dn?o.getValueForDisplay({column:f,node:p,from:"edit"})?.value:b;let R=a?b:y;return m.isAllowFormula()&&e.formula?.isFormula(R)&&(R=e.formula?.normaliseFormula(R,!0)??R),We(r,{value:R,eventKey:n??null,column:m,colDef:m.getColDef(),rowIndex:u,node:p,data:p.data,cellStartedEdit:!!i,onKeyDown:l?.onKeyDown.bind(l),stopEditing:S=>{s.stopEditing(t,{source:h?"ui":"api",suppressNavigateAfterEdit:S}),Lc(e,t,{})},eGridCell:l?.eGui,parseValue:S=>o.parseValue(f,p,S,l?.value),formatValue:l?.formatValue.bind(l),validate:()=>{s?.validateEdit()}})}function kc(e,t){const{editModelSvc:n}=e;n?.getEditMap().forEach((i,o)=>{i.forEach((r,s)=>{!t&&(r.state==="editing"||r.pendingValue===dn)||!so(r)&&(r.state!=="editing"||t)&&n?.removeEdits({rowNode:o,column:s})})})}function V5(e,t){const n=t.comp?.getCellEditor();if(!n?.refresh)return;const{eventKey:i,cellStartedEdit:o}=t.editCompDetails.params,{column:r}=t,s=_F(e,t,i,o),a=r.getColDef(),l=T0(e.userCompFactory,a,s);n.refresh(OF(l.params,i))}function OF(e,t){return t instanceof KeyboardEvent&&e.column.getColDef().cellEditor==="agNumberCellEditor"?e.suppressPreventDefault=["-","+",".","e"].includes(t?.key??"")||e.suppressPreventDefault:t?.preventDefault?.(),e}function Qr(e,t){for(const n of e.editModelSvc?.getEditPositions()??[]){const i=ft(e,n);if(!i)continue;const o=i.comp?.getCellEditor();if(!o)continue;const{editorValue:r,editorValueExists:s,isCancelAfterEnd:a}=LF(e,o,t);if(a){const{cellStartedEditing:l,cellStoppedEditing:u}=e.editModelSvc?.getEdit(n)?.editorState||{};e.editModelSvc?.setEdit(n,{editorState:{isCancelAfterEnd:a,cellStartedEditing:l,cellStoppedEditing:u}})}nl(e,n,r,void 0,!s,t)}}function nl(e,t,n,i,o,r){const{editModelSvc:s,valueSvc:a}=e;if(!s)return;const{rowNode:l,column:u}=t;if(!(l&&u))return;let h=s.getEdit(t);if(h?.sourceValue===void 0){const f=h?il(e,h.editorValue,!1,u):dn,p={sourceValue:a.getValue(u,l,"data"),pendingValue:f};r?.persist&&(p.state="changed"),h=s.setEdit(t,p)}s.setEdit(t,{editorValue:o?il(e,h.sourceValue,!0,u):n}),r?.persist&&W5(e,t)}function il(e,t,n,i){const{formula:o}=e;return i.isAllowFormula()&&o?.isFormula(t)?o?.normaliseFormula(t,n)??t:t}function W5(e,t){const{editModelSvc:n}=e,i=n?.getEdit(t),r={pendingValue:il(e,i?.editorValue,!1,t.column)};!i?.editorState?.cellStoppedEditing&&i?.state!=="editing"&&(r.state="changed"),n?.setEdit(t,r)}function Yr(e,t,n={}){if(t||(t=e.editModelSvc?.getEditPositions()),t)for(const i of t)Lc(e,i,n)}function Lc(e,t,n,i=ft(e,t)){const o=e.editModelSvc,r=o?.getEdit(t);let s;if(r&&r.state!=="editing"&&r.editorState?.cellStoppedEditing?s=r.state:s="changed",!i){r&&o?.setEdit(t,{state:s});return}const a=i.comp,l=a?.getCellEditor();if(a&&!l){if(i?.refreshCell(),r){o?.setEdit(t,{state:s});const h=e.gos.get("enableGroupEdit")?NF(r,n?.cancel):{valueChanged:!1,newValue:void 0,oldValue:r.sourceValue};BF(e,t,h,n)}return}if(jm(e)){const h=r&&l?.getValidationErrors?.(),f=o?.getCellValidationModel();h?.length?f?.setCellValidation(t,{errorMessages:h}):f?.clearCellValidation(t)}r&&o?.setEdit(t,{state:s}),a?.setEditDetails(),a?.refreshEditStyles(!1,!1),i?.refreshCell({force:!0,suppressFlash:!0});const u=o?.getEdit(t);if(u&&u.state!=="editing"){const h=n?.cancel,f=e.gos.get("enableGroupEdit")?NF(u,h):z5(u,r,h);BF(e,t,f,n)}}function NF(e,t){const{sourceValue:n,pendingValue:i}=e;let o;return!t&&i!==dn&&(o=i),{valueChanged:!t&&so(e),newValue:o,oldValue:n,value:n}}function z5(e,t,n){if(n||e.editorState.isCancelAfterEnd)return{valueChanged:!1,newValue:void 0,oldValue:e.sourceValue};let i=e.editorValue;return(i==null||i===dn)&&(i=t?.pendingValue),i===dn&&(i=void 0),{valueChanged:so(e),newValue:i,oldValue:e.sourceValue}}function BF(e,t,n,{silent:i,event:o}={}){const{editSvc:r,editModelSvc:s}=e,a=s?.getEdit(t),{editorState:l}=a||{},{isCancelBeforeStart:u,cellStartedEditing:h,cellStoppedEditing:f}=l||{};!i&&!u&&h&&!f&&(r?.dispatchCellEvent(t,o,"cellEditingStopped",n),s?.setEdit(t,{editorState:{cellStoppedEditing:!0}}))}function U5(e){if(!e)return!1;for(let t=0,n=e.length;t<n;++t){const i=e[t],o=i.cellEditorParams;if(!(!o||!i.editable&&!i.groupRowEditable)&&(o.minLength!==void 0||o.maxLength!==void 0||o.getValidationErrors!==void 0||o.min!==void 0||o.max!==void 0))return!0}return!1}function $5(e){const t=e.rowRenderer.getCellCtrls();for(let n=0,i=t.length;n<i;++n){const r=t[n].comp?.getCellEditor();if(r){const s=$s(r);if(s.getValidationElement||s.getValidationErrors)return!0}}return!1}function jm(e){return!!e.gos.get("getFullRowEditValidationErrors")||U5(e.colModel.getColumnDefs())||$5(e)}function Zr(e,t){if(!(t||jm(e)))return;const n=new IF,{ariaAnnounce:i,localeSvc:o,editModelSvc:r,gos:s}=e,a=s.get("editType")==="fullRow",u=zS(o)("ariaValidationErrorPrefix","Cell Editor Validation"),h=new Set;for(const f of e.rowRenderer.getCellCtrls()){const p=f.comp?.getCellEditor();if(!p)continue;const m=$s(p),{rowNode:v,column:w}=f,b=m.getValidationErrors?.()??[],y=m.getValidationElement?.(!1)||!m.isPopup?.()&&f.eGui;if(y){const R=b!=null&&b.length>0,S=R?b.join(". "):"";dg(y,R),R&&i.announceValue(`${u} ${b}`,"editorValidation"),y instanceof HTMLInputElement?y.setCustomValidity(S):y.classList.toggle("invalid",R)}b?.length>0&&n.setCellValidation({rowNode:v,column:w},{errorMessages:b}),h.add(f.rowCtrl)}if(Qr(e,{persist:!1}),r?.setCellValidationModel(n),a){const f=j5(e);r?.setRowValidationModel(f)}for(const f of h.values()){f.rowEditStyleFeature?.applyRowStyles();for(const p of f.getAllCellCtrls())p.tooltipFeature?.refreshTooltip(!0),p.editorTooltipFeature?.refreshTooltip(!0),p.editStyleFeature?.applyCellStyles?.()}}var j5=e=>{const t=new MF,n=e.gos.get("getFullRowEditValidationErrors"),i=e.editModelSvc?.getEditMap();if(!i)return t;for(const o of i.keys()){const r=i.get(o);if(!r)continue;const s=[],{rowIndex:a,rowPinned:l}=o;for(const h of r.keys()){const f=r.get(h);if(!f)continue;const{editorValue:p,pendingValue:m,sourceValue:v}=f,w=p??(m===dn?void 0:m)??v;s.push({column:h,colId:h.getColId(),rowIndex:a,rowPinned:l,oldValue:v,newValue:w})}const u=n?.({editorsState:s})??[];u.length>0&&t.setRowValidation({rowNode:o},{errorMessages:u})}return t};function K5(e){Zr(e,!0);const t=e.editModelSvc?.getCellValidationModel().getCellValidationMap();if(!t)return null;const n=[];return t.forEach((i,o)=>{i.forEach(({errorMessages:r},s)=>{n.push({column:s,rowIndex:o.rowIndex,rowPinned:o.rowPinned,messages:r??null})})}),n}function Ch(e){return!!(e.rowPinned&&e.pinnedSibling)}function Bi(e,t,n,i){const o=t==="top";if(!n)return Bi(e,t,o?e.getPinnedTopRow(0):e.getPinnedBottomRow(0),i);if(!i){const l=o?e.getPinnedTopRowCount():e.getPinnedBottomRowCount();return Bi(e,t,n,o?e.getPinnedTopRow(l-1):e.getPinnedBottomRow(l-1))}let r=!1,s=!1;const a=[];return e.forEachPinnedRow(t,l=>{if(l===n&&!r){r=!0,a.push(l);return}if(r&&l===i){s=!0,a.push(l);return}r&&!s&&a.push(l)}),a}function q5(e,t,n,{rowNode:i,column:o},r){return We(e.gos,{type:n,node:i,data:i.data,value:r,column:o,colDef:o.getColDef(),rowPinned:i.rowPinned,event:t,rowIndex:i.rowIndex})}function Q5(e,t=!1){return e===K.DELETE?!0:!t&&e===K.BACKSPACE?O0():!1}var Y5=class extends X{constructor(e,t,n,i){super(),this.cellCtrl=e,this.rowNode=n,this.rowCtrl=i,this.beans=t}init(){this.eGui=this.cellCtrl.eGui}onKeyDown(e){const t=e.key;if(!(t===K.ENTER&&zn(this.cellCtrl.column)&&this.beans.rowNumbersSvc?.handleKeyDownOnCell(this.cellCtrl.cellPosition,e)))switch(t){case K.ENTER:this.onEnterKeyDown(e);break;case K.F2:this.onF2KeyDown(e);break;case K.ESCAPE:this.onEscapeKeyDown(e);break;case K.TAB:this.onTabKeyDown(e);break;case K.BACKSPACE:case K.DELETE:this.onBackspaceOrDeleteKeyDown(t,e);break;case K.DOWN:case K.UP:case K.RIGHT:case K.LEFT:this.onNavigationKeyDown(e,t);break}}onNavigationKeyDown(e,t){const{cellCtrl:n,beans:i}=this;if(!i.editSvc?.isEditing(n,{withOpenEditor:!0})){if(e.shiftKey&&n.isRangeSelectionEnabled())this.onShiftRangeSelect(e);else{const o=n.getFocusedCellPosition();i.navigation?.navigateToNextCell(e,t,o,!0)}e.preventDefault()}}onShiftRangeSelect(e){const{rangeSvc:t,navigation:n}=this.beans;if(!t)return;const i=t.extendLatestRangeInDirection(e);i&&(e.key===K.LEFT||e.key===K.RIGHT?n?.ensureColumnVisible(i.column):n?.ensureRowVisible(i.rowIndex))}onTabKeyDown(e){this.beans.navigation?.onTabKeyDown(this.cellCtrl,e)}onBackspaceOrDeleteKeyDown(e,t){const{cellCtrl:n,beans:i,rowNode:o}=this,{gos:r,rangeSvc:s,eventSvc:a,editSvc:l}=i;if(a.dispatchEvent({type:"keyShortcutChangedCellStart"}),Q5(e,r.get("enableCellEditingOnBackspace"))&&!l?.isEditing(n,{withOpenEditor:!0})){if(s&&nr(r))s.clearCellRangeCellValues({dispatchWrapperEvents:!0,wrapperEventSource:"deleteKey"});else if(n.isCellEditable()){const u=i.valueSvc.getDeleteValue(n.column,o);o.setDataValue(n.column,u,"cellClear")}}else l?.isEditing(n,{withOpenEditor:!0})||i.editSvc?.startEditing(n,{startedEdit:!0,event:t});a.dispatchEvent({type:"keyShortcutChangedCellEnd"})}onEnterKeyDown(e){const{cellCtrl:t,beans:n}=this,{editSvc:i,navigation:o}=n,r=i?.isEditing(t,{withOpenEditor:!0}),s=t.rowNode,a=i?.isRowEditing(s,{withOpenEditor:!0}),l=u=>{i?.startEditing(u,{startedEdit:!0,event:e,source:"edit"})&&e.preventDefault()};if(r||a){if(this.isCtrlEnter(e)){i?.applyBulkEdit(t,n?.rangeSvc?.getCellRanges()||[]);return}if(Zr(n),i?.checkNavWithValidation(void 0,e)==="block-stop")return;i?.isEditing(t,{withOpenEditor:!0})?i?.stopEditing(t,{event:e,source:"edit"}):a&&!t.isCellEditable()?i?.stopEditing({rowNode:s},{event:e,source:"edit"}):l(t)}else if(n.gos.get("enterNavigatesVertically")){const u=e.shiftKey?K.UP:K.DOWN;o?.navigateToNextCell(null,u,t.cellPosition,!1)}else{if(i?.hasValidationErrors())return;i?.hasValidationErrors(t)&&i.revertSingleCellEdit(t,!0),l(t)}}isCtrlEnter(e){return(e.ctrlKey||e.metaKey)&&e.key===K.ENTER}onF2KeyDown(e){const{cellCtrl:t,beans:{editSvc:n}}=this;n?.isEditing()&&(Zr(this.beans),n?.checkNavWithValidation(void 0,e)==="block-stop")||n?.startEditing(t,{startedEdit:!0,event:e})}onEscapeKeyDown(e){const{cellCtrl:t,beans:{editSvc:n}}=this;n?.checkNavWithValidation(t,e)==="block-stop"&&n.revertSingleCellEdit(t),setTimeout(()=>{n?.stopEditing(t,{event:e,cancel:!0})})}processCharacter(e){const n=e.target!==this.eGui,{beans:{editSvc:i},cellCtrl:o}=this;if(n||i?.isEditing(o,{withOpenEditor:!0}))return;if(e.key===K.SPACE)this.onSpaceKeyDown(e);else if(i?.isCellEditable(o,"ui")){if(i?.hasValidationErrors()&&!i?.hasValidationErrors(o))return;i?.startEditing(o,{startedEdit:!0,event:e,source:"api",editable:!0}),!o.editCompDetails?.params?.suppressPreventDefault&&e.preventDefault()}}onSpaceKeyDown(e){const{gos:t,editSvc:n}=this.beans,{rowNode:i}=this.cellCtrl;!n?.isEditing(this.cellCtrl,{withOpenEditor:!0})&&Is(t)&&this.beans.selectionSvc?.handleSelectionEvent(e,i,"spaceKey"),e.preventDefault()}},Z5=class extends X{constructor(e,t,n){super(),this.cellCtrl=e,this.column=n,this.beans=t}onMouseEvent(e,t){if(!sr(t))switch(e){case"click":this.onCellClicked(t);break;case"pointerdown":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:n,editSvc:i,editModelSvc:o,frameworkOverrides:r,gos:s}=this.beans,a=e.ctrlKey||e.metaKey,{cellCtrl:l}=this,{column:u,cellPosition:h,rowNode:f}=l,p=Jd(s,u,f,e);n&&a&&!p&&n.getCellRangeCount(h)>1&&n.intersectLastRange(!0);const m=l.createEvent(e,"cellClicked");m.isEventHandlingSuppressed=p,t.dispatchEvent(m);const v=u.getColDef();if(v.onCellClicked&&window.setTimeout(()=>{r.wrapOutgoing(()=>{v.onCellClicked(m)})},0),!p&&o?.getState(l)!=="editing"){const w=i?.isEditing(),b=i?.isRangeSelectionEnabledWhileEditing(),y=o?.getCellValidationModel().getCellValidationMap().size??0,R=o?.getRowValidationModel().getRowValidationMap().size??0;if(w&&(b||y>0||R>0))return;i?.shouldStartEditing(l,e)?i?.startEditing(l,{event:e}):i?.shouldStopEditing(l,e)&&(this.beans.gos.get("editType")==="fullRow"?i?.stopEditing(l,{event:e,source:"edit"}):i?.stopEditing(void 0,{event:e,source:"edit"}))}}onCellDoubleClicked(e){const{column:t,beans:n,cellCtrl:i}=this,{eventSvc:o,frameworkOverrides:r,editSvc:s,editModelSvc:a,gos:l}=n,u=Jd(l,i.column,i.rowNode,e),h=t.getColDef(),f=i.createEvent(e,"cellDoubleClicked");if(f.isEventHandlingSuppressed=u,o.dispatchEvent(f),typeof h.onCellDoubleClicked=="function"&&window.setTimeout(()=>{r.wrapOutgoing(()=>{h.onCellDoubleClicked(f)})},0),!u&&s?.shouldStartEditing(i,e)&&a?.getState(i)!=="editing"){const p=s?.isEditing(),m=s?.isRangeSelectionEnabledWhileEditing(),v=a?.getCellValidationModel().getCellValidationMap().size??0,w=a?.getRowValidationModel().getRowValidationMap().size??0;if(p&&(m||v>0||w>0))return;s?.startEditing(i,{event:e})}}onMouseDown(e){const{shiftKey:t}=e,n=e.target,{cellCtrl:i,beans:o}=this,{eventSvc:r,rangeSvc:s,rowNumbersSvc:a,focusSvc:l,gos:u,editSvc:h}=o,{column:f,rowNode:p,cellPosition:m}=i,v=Jd(u,f,p,e),w=()=>{const S=i.createEvent(e,"cellMouseDown");S.isEventHandlingSuppressed=v,r.dispatchEvent(S)};if(v){w();return}if(this.isRightClickInExistingRange(e))return;const b=s&&!s.isEmpty(),y=this.containsWidget(n),R=zn(f);if(!(a&&R&&!a.handleMouseDownOnCell(m,e))){if(!t||!b){const S=h?.isEditing(i),P=u.get("enableCellTextSelection")&&e.defaultPrevented,D=(zr()||P)&&!S&&!cc(n)&&!y;i.focusCell(D,e)}if(t&&b&&!l.isCellFocused(m)){e.preventDefault();const S=l.getFocusedCell();if(S){const{column:x,rowIndex:P,rowPinned:D}=S,A=!!h?.isRangeSelectionEnabledWhileEditing?.();h?.isEditing(S)&&!A&&h?.stopEditing(S),A||l.setFocusedCell({column:x,rowIndex:P,rowPinned:D,forceBrowserFocus:!0,preventScrollOnBrowserFocus:!0,sourceEvent:e})}}y||(s?.handleCellMouseDown(e,m),w())}}isRightClickInExistingRange(e){const{rangeSvc:t}=this.beans;if(t){const n=t.isCellInAnyRange(this.cellCtrl.cellPosition),i=F_(this.beans,e);if(n&&i)return!0}return!1}containsWidget(e){return Ds(e,"ag-selection-checkbox",3)||Ds(e,"ag-drag-handle",3)}onMouseOut(e){if(this.mouseStayingInsideCell(e))return;const{eventSvc:t,colHover:n}=this.beans;t.dispatchEvent(this.cellCtrl.createEvent(e,"cellMouseOut")),n?.clearMouseOver()}onMouseOver(e){if(this.mouseStayingInsideCell(e))return;const{eventSvc:t,colHover:n}=this.beans;t.dispatchEvent(this.cellCtrl.createEvent(e,"cellMouseOver")),n?.setMouseOver([this.column])}mouseStayingInsideCell(e){if(!e.target||!e.relatedTarget)return!1;const t=this.cellCtrl.eGui,n=t.contains(e.target),i=t.contains(e.relatedTarget);return n&&i}},X5=class extends X{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();kr(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,n=e.getColSpan(t),i=[];if(n===1)i.push(e);else{let o=e;const r=e.getPinned();for(let s=0;o&&s<n&&(i.push(o),o=this.beans.visibleCols.getColAfter(o),!(!o||Nt(o)||r!==o.getPinned()));s++);}return i}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=Pt(this.colsSpanning):e=this.column,e.getLeft()}modifyLeftForPrintLayout(e){if(!this.cellCtrl.printLayout||this.column.getPinned()==="left")return e;const{visibleCols:t}=this.beans,n=t.getColsLeftWidth();if(this.column.getPinned()==="right"){const i=t.bodyWidth;return n+i+(e||0)}return n+(e||0)}_legacyApplyRowSpan(e){if(this.rowSpan===1&&!e)return;const n=Ms(this.beans)*this.rowSpan;this.eContent.style.height=`${n}px`,this.eContent.style.zIndex="1"}destroy(){super.destroy()}},J5="ag-cell",eW="ag-cell-auto-height",tW="ag-cell-normal-height",nW="ag-cell-focus",iW="ag-cell-first-right-pinned",oW="ag-cell-last-left-pinned",rW="ag-cell-not-inline-editing",sW="ag-cell-wrap-text",aW=0,ol=class extends X{constructor(e,t,n,i){super(),this.column=e,this.rowNode=t,this.rowCtrl=i,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.beans=n,this.gos=n.gos,this.editSvc=n.editSvc,this.hasEdit=!!n.editSvc;const{colId:o}=e;this.instanceId=o+"-"+aW++,this.createCellPosition(),this.updateAndFormatValue(!1)}addFeatures(){const{beans:e}=this;this.positionFeature=new X5(this,e),this.customStyleFeature=e.cellStyles?.createCellCustomStyleFeature(this),this.editStyleFeature=e.editSvc?.createCellStyleFeature(this),this.mouseListener=new Z5(this,e,this.column),this.keyboardListener=new Y5(this,e,this.rowNode,this.rowCtrl),this.enableTooltipFeature();const{rangeSvc:t}=e;t&&nr(e.gos)&&(this.rangeFeature=t.createCellRangeFeature(this)),zn(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()}enableTooltipFeature(e,t){this.tooltipFeature=this.beans.tooltipSvc?.enableCellTooltipFeature(this,e,t)}disableTooltipFeature(){this.tooltipFeature=this.beans.context.destroyBean(this.tooltipFeature)}enableEditorTooltipFeature(e){this.editorTooltipFeature&&this.disableEditorTooltipFeature(),this.editorTooltipFeature=this.beans.tooltipSvc?.setupCellEditorTooltip(this,e),Zr(this.beans)}disableEditorTooltipFeature(){this.editorTooltipFeature=this.beans.context.destroyBean(this.editorTooltipFeature)}setComp(e,t,n,i,o,r,s){this.comp=e,this.eGui=t,this.printLayout=o,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(i,s),this.refreshFirstAndLastStyles(),this.checkFormulaError(),this.refreshAriaRowIndex(),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();const a=r?this.isCellEditable():void 0,l=!a&&this.hasEdit&&this.editSvc?.isEditing(this,{withOpenEditor:!0});if(a||l?this.editSvc?.startEditing(this,{startedEdit:!1,source:"api",silent:!0,continueEditing:!0,editable:a}):this.showValue(!1,!0),this.onCompAttachedFuncs.length){for(const u of this.onCompAttachedFuncs)u();this.onCompAttachedFuncs=[]}}checkFormulaError(){const e=!!this.beans.formula?.getFormulaError(this.column,this.rowNode);this.eGui.classList.toggle("formula-error",e)}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:n,ctrlsSvc:i,eventSvc:o}=e,r=t.getColDef(),s=this.createCellRendererParams();s.deferRender=!0;const a=D0(n,r,s);if(i.getGridBodyCtrl()?.scrollFeature?.isScrolling()){let l;const u=new It(f=>{l=f}),[h]=this.addManagedListeners(o,{bodyScrollEnd:()=>{l(),h()}});return{loadingComp:a,onReady:u}}return{loadingComp:a,onReady:It.resolve()}}showValue(e,t){const{beans:n,column:i,rowNode:o,rangeFeature:r}=this,{userCompFactory:s}=n;let a=this.getValueToDisplay(),l;const u=o.stub&&o.groupData?.[i.getId()]==null,h=i.getColDef();if(u||this.isCellRenderer()){const f=this.createCellRendererParams();!u||zn(i)?l=E0(s,h,f):l=D0(s,h,f)}if(!l&&!u&&n.findSvc?.isMatch(o,i)){const f=this.createCellRendererParams();l=E0(s,{...i.getColDef(),cellRenderer:"agFindCellRenderer"},f)}if(this.hasEdit&&this.editSvc.isBatchEditing()&&this.editSvc.isRowEditing(o,{checkSiblings:!0})){const f=this.editSvc.prepDetailsDuringBatch(this,{compDetails:l,valueToDisplay:a});f&&(f.compDetails?l=f.compDetails:f.valueToDisplay&&(a=f.valueToDisplay))}this.comp.setRenderDetails(l,a,e),this.customRowDragComp?.refreshVisibility(),!t&&r&&er(n,()=>r?.refreshRangeStyleAndHandle()),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 n="";return t&&(n=" ag-allow-overflow"),`${e}${n}`}isIncludeControl(e,t=!1){return(this.rowNode.rowPinned==null||t&&Ch(this.rowNode))&&!!e}isCheckboxSelection(e){const{rowSelection:t,groupDisplayType:n}=this.beans.gridOptions,i=Nd(t),o=Vr(this.column);return n==="custom"&&i!=="selectionColumn"&&o?!1:e.checkboxSelection||o&&typeof t=="object"&&za(t)}refreshShouldDestroy(){const e=this.column.getColDef(),t=this.includeSelection!=this.isIncludeControl(this.isCheckboxSelection(e),!0),n=this.includeRowDrag!=this.isIncludeControl(e.rowDrag),i=this.includeDndSource!=this.isIncludeControl(e.dndSource),o=this.isAutoHeight!=this.column.isAutoHeight();return t||n||i||o}onPopupEditorClosed(e){const{editSvc:t}=this.beans;if(!t?.isEditing(this,{withOpenEditor:!0}))return;const n=e instanceof KeyboardEvent,i=e instanceof MouseEvent,o=n&&e.key===K.ESCAPE;t.stopEditing(this,{source:t.isBatchEditing()?"ui":"api",cancel:o,event:n||i?e:void 0}),o&&this.focusCell(!0,e)}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:n,rowNode:i,comp:o,eGui:r,beans:{valueSvc:s,gos:a,editSvc:l}}=this;return We(a,{value:e,valueFormatted:t,getValue:()=>s.getValueForDisplay({column:n,node:i,from:"edit"}).value,setValue:h=>l?.setDataValue({rowNode:i,column:n},h)||i.setDataValue(n,h),formatValue:this.formatValue.bind(this),data:i.data,node:i,pinned:n.getPinned(),colDef:n.getColDef(),column:n,refreshCell:this.refreshCell.bind(this),eGridCell:r,eParentOfValue:o.getParentOfValue(),registerRowDragger:(h,f,p,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:n}=this;!n?.getCellEditor()&&t.isEditing(this,{withOpenEditor:!0})&&t.startEditing(this,{startedEdit:!1,source:"api",silent:!0})}}refreshCell(e){const{editStyleFeature:t,customStyleFeature:n,rowCtrl:{rowEditStyleFeature:i},beans:{cellFlashSvc:o,filterManager:r},column:s,comp:a,suppressRefreshCell:l,tooltipFeature:u}=this;if(l)return;const{field:h,valueGetter:f,showRowGroup:p,enableCellChangeFlash:m}=s.getColDef(),v=h==null&&f==null&&p==null,w=e?.newData??!1,b=v||e&&(e.force||w),y=!!a,R=this.updateAndFormatValue(y),S=b||R;if(y){if(S){this.showValue(!!w,!1);const x=r?.isSuppressFlashingCellsBecauseFiltering();!e?.suppressFlash&&!x&&m&&o?.flashCell(this),t?.applyCellStyles?.(),n?.applyUserStyles(),n?.applyClassesFromColDef(),i?.applyRowStyles(),this.checkFormulaError()}u?.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,n=this.valueFormatted,{value:i,valueFormatted:o}=this.beans.valueSvc.getValueForDisplay({column:this.column,node:this.rowNode,includeValueFormatted:!0,from:"edit"});return this.value=i,this.valueFormatted=o,e?!this.valuesAreEqual(t,this.value)||this.valueFormatted!=n:!0}valuesAreEqual(e,t){const n=this.column.getColDef();return n.equals?n.equals(e,t):e===t}addDomData(e){const t=this.eGui;ks(this.beans.gos,t,eh,this),e.addDestroyFunc(()=>ks(this.beans.gos,t,eh,null))}createEvent(e,t){const{rowNode:n,column:i,value:o,beans:r}=this;return q5(r,e,t,{rowNode:n,column:i},o)}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:n}=this;lR(e,t,n.visibleCols)}refreshAriaColIndex(){const e=this.beans.visibleCols.getAriaColIndex(this.column);AS(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 n=this.editSvc?.allowedFocusTargetOnValidation(this);n&&n!==this||this.beans.focusSvc.setFocusedCell({...this.getFocusedCellPosition(),forceBrowserFocus:e,sourceEvent:t})}restoreFocus(e=!1){const{beans:{editSvc:t,focusSvc:n},comp:i}=this;if(!i||t?.isEditing(this)||!this.isCellFocused()||!n.shouldTakeFocus())return;const o=()=>{if(!this.isAlive())return;const r=i.getFocusableElement();this.isCellFocused()&&r.focus({preventScroll:!0})};if(e){setTimeout(o,0);return}o()}onRowIndexChanged(){this.createCellPosition(),this.refreshAriaRowIndex(),this.onCellFocused(),this.restoreFocus(),this.rangeFeature?.onCellSelectionChanged(),this.rowResizeFeature?.refreshRowResizer()}onSuppressCellFocusChanged(e){const t=this.eGui;t&&ti(t,"tabindex",e?void 0:-1)}onFirstRightPinnedChanged(){if(!this.comp)return;const e=this.column.isFirstRightPinned();this.comp.toggleCss(iW,e)}onLastLeftPinnedChanged(){if(!this.comp)return;const e=this.column.isLastLeftPinned();this.comp.toggleCss(oW,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(Pc(t))return;if(!this.comp){e&&(this.focusEventWhileNotReady=e);return}const n=this.isCellFocused(),i=t.editSvc?.isEditing(this)??!1;if(this.comp.toggleCss(nW,n),n&&(e?.forceBrowserFocus||!this.hasBrowserFocus()&&this.beans.focusSvc.shouldTakeFocus())){let o=this.comp.getFocusableElement();if(i){const s=Os(o,null,!0);s.length&&(o=s[0])}const r=e?e.preventScrollOnBrowserFocus:!0;o.focus({preventScroll:r}),FL(t,o)}n&&this.focusEventWhileNotReady&&(this.focusEventWhileNotReady=null),n&&e&&this.rowCtrl.announceDescription()}createCellPosition(){const{rowIndex:e,rowPinned:t}=this.rowNode;this.cellPosition={rowIndex:e,rowPinned:Jo(t),column:this.column}}applyStaticCssClasses(){const{comp:e}=this;e.toggleCss(J5,!0),e.toggleCss(rW,!0);const t=this.column.isAutoHeight()==!0;e.toggleCss(eW,t),e.toggleCss(tW,!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(sW,e)}dispatchCellContextMenuEvent(e){const t=this.column.getColDef(),n=this.createEvent(e,"cellContextMenu"),{beans:i}=this;i.eventSvc.dispatchEvent(n),t.onCellContextMenu&&window.setTimeout(()=>{i.frameworkOverrides.wrapOutgoing(()=>{t.onCellContextMenu(n)})},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(At(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,n){if(this.customRowDragComp){this.customRowDragComp.setDragElement(e,t);return}const i=this.createRowDragComp(e,t,n);i&&(this.customRowDragComp=i,this.addDestroyFunc(()=>{this.beans.context.destroyBean(i),this.customRowDragComp=null}),i.refreshVisibility())}createRowDragComp(e,t,n){const i=this.beans.rowDragSvc?.createRowDragCompForCell(this.rowNode,this.column,()=>this.value,e,t,n);if(i)return this.beans.context.createBean(i),i}cellEditorAttached(){for(const e of this.onEditorAttachedFuncs)e();this.onEditorAttachedFuncs=[]}setFocusedCellPosition(e){}getFocusedCellPosition(){return this.cellPosition}refreshAriaRowIndex(){if(!zn(this.column)||!this.eGui)return;const{ariaRowIndex:e}=this.rowCtrl;e!=null&&lc(this.eGui,e)}getRootElement(){return this.eGui}};function Km(e,t,n,i,o,r){if(n==null&&t==null)return;const s={},a={},l=(u,h)=>{for(const f of u.split(" "))f.trim()!=""&&h(f)};if(n){const u=Object.keys(n);for(let h=0;h<u.length;h++){const f=u[h],p=n[f];let m;typeof p=="string"?m=e?e.evaluate(p,i):!0:typeof p=="function"&&(m=p(i)),l(f,v=>{m?s[v]=!0:a[v]=!0})}}if(t&&r)for(const u of Object.keys(t))l(u,h=>{s[h]||(a[h]=!0)});r&&Object.keys(a).forEach(r),Object.keys(s).forEach(o)}function GF(e){if(e.group)return e.level;const t=e.parent;return t?t.level+1:0}var lW=class extends X{constructor(){super(...arguments),this.beanName="rowStyleSvc"}processClassesFromGridOptions(e,t){const n=this.gos,i=s=>{if(typeof s=="string")e.push(s);else if(Array.isArray(s))for(const a of s)e.push(a)},o=n.get("rowClass");o&&i(o);const r=n.getCallback("getRowClass");if(r){const s={data:t.data,node:t,rowIndex:t.rowIndex},a=r(s);i(a)}}preProcessRowClassRules(e,t){this.processRowClassRules(t,n=>{e.push(n)},()=>{})}processRowClassRules(e,t,n){const{gos:i,expressionSvc:o}=this.beans,r=We(i,{data:e.data,node:e,rowIndex:e.rowIndex});Km(o,void 0,i.get("rowClassRules"),r,t,n)}processStylesFromGridOptions(e){const t=this.gos,n=t.get("rowStyle"),i=t.getCallback("getRowStyle");let o;if(i){const r={data:e.data,node:e,rowIndex:e.rowIndex};o=i(r)}if(o||n)return Object.assign({},n,o)}},cW=0,wh=class extends X{constructor(e,t,n,i,o){super(),this.rowNode=e,this.useAnimationFrameForCreate=i,this.printLayout=o,this.focusEventWhileNotReady=null,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.ariaRowIndex=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+"-"+cW++,this.rowId=sc(e.id),this.initRowBusinessKey(),this.rowFocused=t.focusSvc.isRowFocused(this.rowNode.rowIndex,this.rowNode.rowPinned),this.rowLevel=GF(this.rowNode),this.setRowType(),this.setAnimateFlags(n),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=sc(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,n,i){const{context:o,rowRenderer:r}=this.beans;i=Dc(this,o,i);const s={rowComp:e,element:t,containerType:n,compBean:i};this.allRowGuis.push(s),this.updateGui(n,s),this.initialiseRowComp(s);const a=this.rowNode,l=this.rowType==="FullWidthLoading"||a.stub,u=!a.data&&this.beans.rowModel.getType()==="infinite";!l&&!u&&!a.rowPinned&&r.dispatchFirstDataRenderedEvent(),this.setupFocus()}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 n of this.allRowGuis)n.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),Is(t)&&this.rowNode.selectable&&this.onRowSelected(e),this.updateColumnLists(!this.useAnimationFrameForCreate);const n=e.rowComp,i=this.getInitialRowClasses(e.containerType);for(const o of i)n.toggleCss(o,!0);this.executeSlideAndFadeAnimations(e),this.rowNode.group&&hg(e.element,!!this.rowNode.expanded),this.setRowCompRowId(n),this.setRowCompRowBusinessKey(n),ks(t,e.element,th,this),e.compBean.addDestroyFunc(()=>ks(t,e.element,th,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=sc(this.rowNode.id);this.rowId=t,t!=null&&e.setRowId(t)}executeSlideAndFadeAnimations(e){const{containerType:t}=e;this.slideInAnimation[t]&&(yg(()=>{this.onTopChanged()}),this.slideInAnimation[t]=!1),this.fadeInAnimation[t]&&(yg(()=>{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 n=this.createBean(t,this.beans.context);this.rowDragComps.push(n),e.compBean.addDestroyFunc(()=>{this.rowDragComps=this.rowDragComps.filter(i=>i!==n),this.rowEditStyleFeature=this.destroyBean(this.rowEditStyleFeature,this.beans.context),this.destroyBean(n,this.beans.context)})}setupFullWidth(e){const t=this.getPinnedForContainer(e.containerType),n=this.createFullWidthCompDetails(e.element,t);e.rowComp.showFullWidth(n)}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:n,beans:{visibleCols:i}}=this,o=!!e||!i.isPinningLeft(),r=!!t,s=!!n||!i.isPinningRight();return o&&r&&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:n}}=this,i=e.stub&&!t.get("suppressServerSideFullWidthLoadingRow")&&!t.get("groupHideOpenParents"),o=this.isNodeFullWidthCell(),r=t.get("masterDetail")&&e.detail,s=n.isPivotMode(),a=d0(t,e,s);i?this.rowType="FullWidthLoading":r?this.rowType="FullWidthDetail":o?this.rowType="FullWidth":a?this.rowType="FullWidthGroup":this.rowType="Normal"}updateColumnLists(e=!1,t=!1){if(this.isFullWidth())return;const{animationFrameSvc:n}=this.beans;if(!n?.active||e||this.printLayout){this.updateColumnListsImpl(t);return}this.updateColumnListsPending||(n.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 ol(e,this.rowNode,this.beans,this)}isCorrectCtrlForSpan(e){return!this.beans.rowSpanSvc?.isCellSpanning(e.column,this.rowNode)}createCellCtrls(e,t,n=null){const i={list:[],map:{}},o=(u,h,f)=>{f!=null?i.list.splice(f,0,h):i.list.push(h),i.map[u]=h},r=[];for(const u of t){const h=u.getInstanceId();let f=e.map[h];f&&!this.isCorrectCtrlForSpan(f)&&(f.destroy(),f=void 0),f||(f=this.getNewCellCtrl(u)),f&&o(h,f)}for(const u of e.list){const h=u.column.getInstanceId();if(i.map[h]!=null)continue;!this.isCellEligibleToBeRemoved(u,n)?r.push([h,u]):u.destroy()}if(r.length)for(const[u,h]of r){const f=i.list.findIndex(m=>m.column.getLeft()>h.column.getLeft()),p=f===-1?void 0:Math.max(f-1,0);o(u,h,p)}const{focusSvc:s,visibleCols:a}=this.beans,l=s.getFocusedCell();if(l&&l.column.getPinned()==n){const u=l.column.getInstanceId();if(!i.map[u]&&a.allCols.includes(l.column)){const f=this.createFocusedCellCtrl();if(f){const p=i.list.findIndex(v=>v.column.getLeft()>f.column.getLeft()),m=p===-1?void 0:Math.max(p-1,0);o(u,f,m)}}}return i}createFocusedCellCtrl(){const{focusSvc:e,rowSpanSvc:t}=this.beans,n=e.getFocusedCell();if(!n)return;const i=t?.getCellSpan(n.column,this.rowNode);if(i){if(i.firstNode!==this.rowNode||!i.doesSpanContain(n))return}else if(!e.isRowFocused(this.rowNode.rowIndex,this.rowNode.rowPinned))return;return this.getNewCellCtrl(n.column)}updateColumnListsImpl(e){this.updateColumnListsPending=!1,this.createAllCellCtrls(),this.setCellCtrls(e)}setCellCtrls(e){for(const t of this.allRowGuis){const n=this.getCellCtrlsForContainer(t.containerType);t.rowComp.setCellCtrls(n,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 n=e.getColsWithinViewport(this.rowNode);this.centerCellCtrls=this.createCellCtrls(this.centerCellCtrls,n);const i=t.getLeftColsForRow(this.rowNode);this.leftCellCtrls=this.createCellCtrls(this.leftCellCtrls,i,"left");const o=t.getRightColsForRow(this.rowNode);this.rightCellCtrls=this.createCellCtrls(this.rightCellCtrls,o,"right")}}isCellEligibleToBeRemoved(e,t){const{column:o}=e;if(o.getPinned()!=t||!this.isCorrectCtrlForSpan(e))return!0;const{visibleCols:r,editSvc:s}=this.beans,a=s?.isEditing(e),l=e.isCellFocused();return a||l?!(r.allCols.indexOf(o)>=0):!0}getDomOrder(){return this.gos.get("ensureDomOrder")||bn(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=Ce(this.rowNode.oldRowTop),{visibleCols:n}=this.beans,i=n.isPinningLeft(),o=n.isPinningRight();if(t){const{slideInAnimation:r}=this;if(this.isFullWidth()&&!this.gos.get("embedFullWidthRows")){r.fullWidth=!0;return}r.center=!0,r.left=i,r.right=o}else{const{fadeInAnimation:r}=this;if(this.isFullWidth()&&!this.gos.get("embedFullWidthRows")){r.fullWidth=!0;return}r.center=!0,r.left=i,r.right=o}}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),n=e(this.centerGui,null),i=e(this.leftGui,"left"),o=e(this.rightGui,"right");return t&&n&&i&&o}addListeners(){const{beans:e,gos:t,rowNode:n}=this,{expansionSvc:i,eventSvc:o,context:r,rowSpanSvc:s}=e;this.addManagedListeners(this.rowNode,{heightChanged:()=>this.onRowHeightChanged(),rowSelected:()=>this.onRowSelected(),rowIndexChanged:this.onRowIndexChanged.bind(this),topChanged:this.onTopChanged.bind(this),...i?.getRowExpandedListeners(this)??{}}),n.detail&&this.addManagedListeners(n.parent,{dataChanged:this.onRowNodeDataChanged.bind(this)}),this.addManagedListeners(n,{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(o,{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&&!n.rowPinned||this.updateColumnLists()}}),this.addDestroyFunc(()=>{this.rowDragComps=this.destroyBeans(this.rowDragComps,r),this.tooltipFeature=this.destroyBean(this.tooltipFeature,r),this.rowEditStyleFeature=this.destroyBean(this.rowEditStyleFeature,r)}),this.addManagedPropertyListeners(["rowStyle","getRowStyle","rowClass","getRowClass","rowClassRules"],this.postProcessCss.bind(this)),this.addManagedPropertyListener("rowDragEntireRow",()=>{if(t.get("rowDragEntireRow")){for(const l of this.allRowGuis)this.addRowDraggerToRow(l);return}this.rowDragComps=this.destroyBeans(this.rowDragComps,r)}),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 n of this.getAllCellCtrls())n.refreshCell(e);for(const n of this.allRowGuis)this.setRowCompRowId(n.rowComp),this.updateRowBusinessKey(),this.setRowCompRowBusinessKey(n.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",n=t==="above",i=t==="inside",o=t==="below",r=t!=="none",s=n||o,a=this.rowNode.uiLevel,l=s&&a>0,u=l?a.toString():"0";for(const h of this.allRowGuis){const f=h.rowComp;f.toggleCss("ag-row-highlight-above",n),f.toggleCss("ag-row-highlight-inside",i),f.toggleCss("ag-row-highlight-below",o),f.toggleCss("ag-row-highlight-indent",l),r?h.element.style.setProperty("--ag-row-highlight-level",u):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:Jo(this.rowNode.rowPinned),rowIndex:this.rowNode.rowIndex}}onKeyboardNavigate(e){const t=this.findFullWidthInfoForEvent(e);if(!t)return;const{rowGui:n,column:i}=t;if(!(n.element===e.target))return;const s=this.rowNode,{focusSvc:a,navigation:l}=this.beans,u=a.getFocusedCell(),h={rowIndex:s.rowIndex,rowPinned:s.rowPinned,column:u?.column??i};l?.navigateToNextCell(e,e.key,h,!0),e.preventDefault()}onTabKeyDown(e){if(e.defaultPrevented||sr(e))return;const t=this.allRowGuis.find(a=>a.element.contains(e.target)),n=t?t.element:null,i=n===e.target,o=At(this.beans);let r=!1;n&&o&&(r=n.contains(o)&&o.classList.contains("ag-cell"));let s=null;!i&&!r&&(s=Bs(this.beans,n,!1,e.shiftKey)),(this.isFullWidth()&&i||!s)&&this.beans.navigation?.onTabKeyDown(this,e)}getFullWidthElement(){return this.fullWidthGui?this.fullWidthGui.element:null}getRowYPosition(){const e=this.allRowGuis.find(t=>ki(t.element))?.element;return e?e.getBoundingClientRect().top:0}onSuppressCellFocusChanged(e){const t=this.isFullWidth()&&e?void 0:this.gos.get("tabIndex");for(const n of this.allRowGuis)ti(n.element,"tabindex",t)}setupFocus(){this.isFullWidth()&&(this.restoreFullWidthFocus(!0),this.onFullWidthRowFocused(this.focusEventWhileNotReady??void 0))}restoreFullWidthFocus(e=!1){const{focusSvc:t,editSvc:n}=this.beans;if(n?.isEditing(this)||!t.isRowFocused(this.rowNode.rowIndex,this.rowNode.rowPinned)||!t.shouldTakeFocus())return;const i=this.getFullWidthRowGuiForFocus();if(!i)return;const o=()=>{this.isAlive()&&t.isRowFocused(this.rowNode.rowIndex,this.rowNode.rowPinned)&&i.element.focus({preventScroll:!0})};if(e){setTimeout(o,0);return}o()}getFullWidthRowGuiForFocus(e){if(this.fullWidthGui)return this.fullWidthGui;const t=this.beans.focusSvc.getFocusedCell(),n=this.beans.colModel.getCol(e?.column??t?.column);if(!n)return;const i=n?.pinned;return i==="right"?this.rightGui:i==="left"?this.leftGui:this.centerGui}setFullWidthRowFocusedClass(e,t){this.forEachGui(void 0,n=>{n.element.classList.toggle("ag-full-width-focus",t&&n===e)})}onFullWidthRowFocused(e){const{focusSvc:t}=this.beans;if(!(this.isFullWidth()&&t.isRowFocused(this.rowNode.rowIndex,this.rowNode.rowPinned))){this.setFullWidthRowFocusedClass(void 0,!1);return}const i=this.getFullWidthRowGuiForFocus(e);if(!i){e&&(this.focusEventWhileNotReady=e),this.setFullWidthRowFocusedClass(void 0,!1);return}this.setFullWidthRowFocusedClass(i,!0),this.focusEventWhileNotReady=null,e?.forceBrowserFocus&&i.element.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 n={list:[],map:{}};for(const i of e.list)i!==t&&(n.list.push(i),n.map[i.column.getInstanceId()]=i);return n}onMouseEvent(e,t){switch(e){case"dblclick":this.onRowDblClick(t);break;case"click":this.onRowClick(t);break;case"pointerdown":case"touchstart":case"mousedown":this.onRowMouseDown(t);break}}createRowEvent(e,t){const{rowNode:n}=this;return We(this.gos,{type:e,node:n,data:n.data,rowIndex:n.rowIndex,rowPinned:n.rowPinned,event:t})}createRowEventWithSource(e,t){const n=this.createRowEvent(e,t);return n.source=this,n}onRowDblClick(e){if(sr(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),n=this.getColumnForFullWidth(t);if(!(!t||!n))return{rowGui:t,column:n}}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=Ds(e.target,"ag-row-drag",3),!this.isFullWidth()||this.isSuppressMouseEvent(e))return;const{rangeSvc:t,focusSvc:n}=this.beans;t?.removeAllCellRanges();const i=this.findFullWidthInfoForEvent(e);if(!i)return;const{rowGui:o,column:r}=i,s=o.element,a=e.target,l=this.rowNode;let u=e.defaultPrevented||zr();s&&s.contains(a)&&cc(a)&&(u=!1),n.setFocusedCell({rowIndex:l.rowIndex,column:r,rowPinned:l.rowPinned,forceBrowserFocus:u})}isSuppressMouseEvent(e){const{gos:t,rowNode:n}=this;if(this.isFullWidth()){const o=this.findFullWidthRowGui(e.target);return oN(t,o?.rowComp.getFullWidthCellRendererParams(),n,e)}const i=fm(t,e.target);return i!=null&&Jd(t,i.column,n,e)}onRowClick(e){if(sr(e)||this.lastMouseDownOnDragger)return;const n=this.isSuppressMouseEvent(e),{eventSvc:i,selectionSvc:o}=this.beans,r=this.createRowEventWithSource("rowClicked",e);r.isEventHandlingSuppressed=n,i.dispatchEvent(r),!n&&o?.handleSelectionEvent(e,this.rowNode,"rowClicked")}setupDetailRowAutoHeight(e){this.rowType==="FullWidthDetail"&&this.beans.masterDetailSvc?.setupDetailRowAutoHeight(this,e)}createFullWidthCompDetails(e,t){const{gos:n,rowNode:i}=this,o=We(n,{fullWidth:!0,data:i.data,node:i,value:i.key,valueFormatted:i.key,eGridCell:e,eParentOfValue:e,pinned:t,addRenderedRowListener:this.addEventListener.bind(this),registerRowDragger:(s,a,l,u)=>this.addFullWidthRowDragging(s,a,l,u),setTooltip:(s,a)=>{n.assertModuleRegistered("Tooltip",3),this.setupFullWidthRowTooltip(s,a)}}),r=this.beans.userCompFactory;switch(this.rowType){case"FullWidthDetail":return xO(r,o);case"FullWidthGroup":{const{value:s,valueFormatted:a}=this.beans.valueSvc.getValueForDisplay({node:this.rowNode,includeValueFormatted:!0,from:"edit"});return o.value=s,o.valueFormatted=a,FO(r,o)}case"FullWidthLoading":return RO(r,o);default:return SO(r,o)}}setupFullWidthRowTooltip(e,t){this.fullWidthGui&&(this.tooltipFeature=this.beans.tooltipSvc?.setupFullWidthRowTooltip(this.tooltipFeature,this,e,t))}addFullWidthRowDragging(e,t,n="",i){const{rowDragSvc:o,context:r}=this.beans;if(!o||!this.isFullWidth())return;const s=o.createRowDragComp(()=>n,this.rowNode,void 0,e,t,i);this.createBean(s,r),this.addDestroyFunc(()=>{this.destroyBean(s,r)})}onUiLevelChanged(){const e=GF(this.rowNode);if(this.rowLevel!=e){const t="ag-row-level-"+e,n="ag-row-level-"+this.rowLevel;for(const i of this.allRowGuis)i.rowComp.toggleCss(t,!0),i.rowComp.toggleCss(n,!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 n of this.allRowGuis)n.rowComp.toggleCss("ag-row-first",e)}if(this.lastRowOnPage!==t){this.lastRowOnPage=t;for(const n of this.allRowGuis)n.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 n of this.allRowGuis)n.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,n=>n.rowComp.setUserStyles(this.rowStyles))}getPinnedForContainer(e){return e==="left"||e==="right"?e:null}getInitialRowClasses(e){const t=this.getPinnedForContainer(e),n=this.isFullWidth(),{rowNode:i,beans:o}=this,r=[];r.push("ag-row"),r.push(this.rowFocused?"ag-row-focus":"ag-row-no-focus"),this.fadeInAnimation[e]&&r.push("ag-opacity-zero"),r.push(i.rowIndex%2===0?"ag-row-even":"ag-row-odd"),i.isRowPinned()&&(r.push("ag-row-pinned"),o.pinnedRowModel?.isManual()&&r.push("ag-row-pinned-manual")),!i.isRowPinned()&&i.pinnedSibling&&r.push("ag-row-pinned-source"),i.isSelected()&&r.push("ag-row-selected"),i.footer&&r.push("ag-row-footer"),r.push("ag-row-level-"+this.rowLevel),i.stub&&r.push("ag-row-loading"),n&&r.push("ag-full-width-row"),o.expansionSvc?.addExpandedCss(r,i),i.dragging&&r.push("ag-row-dragging");const{rowStyleSvc:s}=o;return s&&(s.processClassesFromGridOptions(r,i),s.preProcessRowClassRules(r,i)),r.push(this.printLayout?"ag-row-position-relative":"ag-row-position-absolute"),this.isFirstRowOnPage()&&r.push("ag-row-first"),this.isLastRowOnPage()&&r.push("ag-row-last"),n&&(t==="left"&&r.push("ag-cell-last-left-pinned"),t==="right"&&r.push("ag-cell-first-right-pinned")),r}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:n}=e,{rowNode:i,beans:o,gos:r}=this;n.addManagedListeners(t,{pointerenter:s=>{s.pointerType==="mouse"&&i.dispatchRowEvent("mouseEnter")},pointerleave:s=>{s.pointerType==="mouse"&&i.dispatchRowEvent("mouseLeave")}}),n.addManagedListeners(i,{mouseEnter:()=>{!o.dragSvc?.dragging&&!r.get("suppressRowHoverHighlight")&&(t.classList.add("ag-row-hover"),i.setHovered(!0))},mouseLeave:()=>{this.resetHoveredStatus(t)}})}resetHoveredStatus(e){const t=e?[e]:this.allRowGuis.map(n=>n.element);for(const n of t)n.classList.remove("ag-row-hover");this.rowNode.setHovered(!1)}roundRowTopToBounds(e){const t=this.beans.ctrlsSvc.getScrollFeature().getApproximateVScollPosition(),n=this.applyPaginationOffset(t.top,!0)-100,i=this.applyPaginationOffset(t.bottom,!0)+100;return Math.min(Math.max(n,e),i)}forEachGui(e,t){if(e)t(e);else for(const n of this.allRowGuis)t(n)}isRowRendered(){return this.allRowGuis.length>0}onRowHeightChanged(e){if(this.rowNode.rowHeight==null)return;const t=this.rowNode.rowHeight,n=this.beans.environment.getDefaultRowHeight(),o=s0(this.gos)?Br(this.beans,this.rowNode).height:void 0,r=o?`${Math.min(n,o)-2}px`:void 0;this.forEachGui(e,s=>{s.element.style.height=`${t}px`,r&&s.element.style.setProperty("--ag-line-height",r)})}destroyFirstPass(e=!1){this.active=!1;const{rowNode:t}=this;if(!e&&Va(this.gos)&&!t.sticky)if(t.rowTop!=null){const o=this.roundRowTopToBounds(t.rowTop);this.setRowTop(o)}else for(const o of this.allRowGuis)o.rowComp.toggleCss("ag-opacity-zero",!0);this.fullWidthGui?.element.contains(At(this.beans))&&this.beans.focusSvc.attemptToRecoverFocus(),t.setHovered(!1);const n=this.createRowEvent("virtualRowRemoved");this.dispatchLocalEvent(n),this.beans.eventSvc.dispatchEvent(n),super.destroy()}destroySecondPass(){this.allRowGuis.length=0;const e=t=>{for(const n of t.list)n.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 n=this.beans.pageBounds.getPixelOffset();return e+n*(t?1:-1)}setRowTop(e){if(!this.printLayout&&Ce(e)){const t=this.applyPaginationOffset(e),o=`${this.rowNode.isRowPinned()||this.rowNode.sticky?t:this.beans.rowContainerHeight.getRealPixelPosition(t)}px`;this.setRowTopStyle(o)}}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 n;if(t.sticky)n=t.stickyRowTop;else{const i=this.slideInAnimation[e]?this.roundRowTopToBounds(t.oldRowTop):t.rowTop,o=this.applyPaginationOffset(i);n=t.isRowPinned()?o:this.beans.rowContainerHeight.getRealPixelPosition(o)}return n+"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 n=null;for(const i of this.getAllCellCtrls())i.column==e&&(n=i);if(n!=null||t)return n;for(const i of this.getAllCellCtrls())i?.getColSpanningList().indexOf(e)>=0&&(n=i);return n}onRowIndexChanged(){this.rowNode.rowIndex!=null&&(this.onCellFocusChanged(),this.updateRowIndexes(),this.postProcessCss())}updateRowIndexes(e){const t=this.rowNode.getRowIndexString();if(t===null)return;const n=(this.beans.ctrlsSvc.getHeaderRowContainerCtrl()?.getRowCount()??0)+(this.beans.filterManager?.getHeaderRowCount()??0),i=this.rowNode.rowIndex%2===0,o=this.ariaRowIndex=n+this.rowNode.rowIndex+1;this.forEachGui(e,r=>{r.rowComp.setRowIndex(t),r.rowComp.toggleCss("ag-row-even",i),r.rowComp.toggleCss("ag-row-odd",!i),lc(r.element,o)})}},uW=class extends X{constructor(){super(),this.beanName="navigation",this.onPageDown=US(this.onPageDown,100),this.onPageUp=US(this.onPageUp,100)}postConstruct(){this.beans.ctrlsSvc.whenReady(this,e=>{this.gridBodyCon=e.gridBodyCtrl})}handlePageScrollingKey(e,t=!1){const n=e.key,i=e.altKey,o=e.ctrlKey||e.metaKey,r=!!this.beans.rangeSvc&&e.shiftKey,s=hB(this.gos,e);let a=!1;switch(n){case K.PAGE_HOME:case K.PAGE_END:!o&&!i&&(this.onHomeOrEndKey(n),a=!0);break;case K.LEFT:case K.RIGHT:case K.UP:case K.DOWN:if(!s)return!1;o&&!i&&!r&&(this.onCtrlUpDownLeftRight(n,s),a=!0);break;case K.PAGE_DOWN:case K.PAGE_UP:!o&&!i&&(a=this.handlePageUpDown(n,s,t));break}return a&&e.preventDefault(),a}handlePageUpDown(e,t,n){return n&&(t=this.beans.focusSvc.getFocusedCell()),t?(e===K.PAGE_UP?this.onPageUp(t):this.onPageDown(t),!0):!1}navigateTo({scrollIndex:e,scrollType:t,scrollColumn:n,focusIndex:i,focusColumn:o,isAsync:r,rowPinned:s}){const{scrollFeature:a}=this.gridBodyCon;Ce(n)&&!n.isPinned()&&a.ensureColumnVisible(n),Ce(e)&&a.ensureIndexVisible(e,t),r||a.ensureIndexVisible(i);const{focusSvc:l}=this.beans;l.setFocusedCell({rowIndex:i,column:o,rowPinned:s,forceBrowserFocus:!0}),this.setRangeToCellIfSupported({rowIndex:i,rowPinned:s,column:o})}onPageDown(e){const t=this.beans,n=qm(t),i=this.getViewportHeight(),{pageBounds:o,rowModel:r,rowAutoHeight:s}=t,a=o.getPixelOffset(),l=n.top+i,u=r.getRowIndexAtPixel(l+a);s?.active?this.navigateToNextPageWithAutoHeight(e,u):this.navigateToNextPage(e,u)}onPageUp(e){const t=this.beans,n=qm(t),{pageBounds:i,rowModel:o,rowAutoHeight:r}=t,s=i.getPixelOffset(),a=n.top,l=o.getRowIndexAtPixel(a+s);r?.active?this.navigateToNextPageWithAutoHeight(e,l,!0):this.navigateToNextPage(e,l,!0)}navigateToNextPage(e,t,n=!1){const{pageBounds:i,rowModel:o}=this.beans,r=this.getViewportHeight(),s=i.getFirstRow(),a=i.getLastRow(),l=i.getPixelOffset(),u=o.getRow(e.rowIndex),h=n?u?.rowHeight-r-l:r-l,f=u?.rowTop+h;let p=o.getRowIndexAtPixel(f+l);if(p===e.rowIndex){const v=n?-1:1;t=p=e.rowIndex+v}let m;n?(m="bottom",p<s&&(p=s),t<s&&(t=s)):(m="top",p>a&&(p=a),t>a&&(t=a)),this.isRowTallerThanView(o.getRow(p))&&(t=p,m="top"),this.navigateTo({scrollIndex:t,scrollType:m,scrollColumn:null,focusIndex:p,focusColumn:e.column})}navigateToNextPageWithAutoHeight(e,t,n=!1){this.navigateTo({scrollIndex:t,scrollType:n?"bottom":"top",scrollColumn:null,focusIndex:t,focusColumn:e.column}),setTimeout(()=>{const i=this.getNextFocusIndexForAutoHeight(e,n);this.navigateTo({scrollIndex:t,scrollType:n?"bottom":"top",scrollColumn:null,focusIndex:i,focusColumn:e.column,isAsync:!0})},50)}getNextFocusIndexForAutoHeight(e,t=!1){const n=t?-1:1,i=this.getViewportHeight(),{pageBounds:o,rowModel:r}=this.beans,s=o.getLastRow();let a=0,l=e.rowIndex;for(;l>=0&&l<=s;){const u=r.getRow(l);if(u){const h=u.rowHeight??0;if(a+h>i)break;a+=h}l+=n}return Math.max(0,Math.min(l,s))}getViewportHeight(){const e=this.beans,t=qm(e),n=this.beans.scrollVisibleSvc.getScrollbarWidth();let i=t.bottom-t.top;return e.ctrlsSvc.get("center").isHorizontalScrollShowing()&&(i-=n),i}isRowTallerThanView(e){if(!e)return!1;const t=e.rowHeight;return typeof t!="number"?!1:t>this.getViewportHeight()}onCtrlUpDownLeftRight(e,t){const n=this.beans.cellNavigation.getNextCellToFocus(e,t,!0);if(!n)return;const i=this.getNormalisedPosition(n),{rowIndex:o,rowPinned:r,column:s}=i??n,a=s;this.navigateTo({scrollIndex:o,scrollType:null,scrollColumn:a,focusIndex:o,focusColumn:a,rowPinned:r})}onHomeOrEndKey(e){const t=e===K.PAGE_HOME,{visibleCols:n,pageBounds:i,rowModel:o}=this.beans,r=n.allCols,s=t?i.getFirstRow():i.getLastRow(),a=o.getRow(s);if(!a)return;const l=(t?r:[...r].reverse()).find(u=>!u.isSuppressNavigable(a)&&!zn(u));l&&this.navigateTo({scrollIndex:s,scrollType:null,scrollColumn:l,focusIndex:s,focusColumn:l})}onTabKeyDown(e,t){const n=t.shiftKey,i=this.tabToNextCellCommon(e,n,t),o=this.beans,{ctrlsSvc:r,pageBounds:s,focusSvc:a,gos:l}=o;if(i!==!1){i?t.preventDefault():i===null&&r.get("gridCtrl").allowFocusForNextCoreContainer(n);return}if(n){const{rowIndex:u,rowPinned:h}=e.getRowPosition();(h?u===0:u===s.getFirstRow())&&(l.get("headerHeight")===0||no(o)?Ya(o,!0,!0):(t.preventDefault(),a.focusPreviousFromFirstCell(t)))}else e instanceof ol&&e.focusCell(!0),(a.focusOverlay(!1)||Ya(o,n))&&t.preventDefault()}tabToNextCell(e,t){const n=this.beans,{focusSvc:i,rowRenderer:o}=n,r=i.getFocusedCell();if(!r)return!1;let s=Qa(n,r);return!s&&(s=o.getRowByPosition(r),!s?.isFullWidth())?!1:!!this.tabToNextCellCommon(s,e,t,"api")}tabToNextCellCommon(e,t,n,i="ui"){const{editSvc:o,focusSvc:r}=this.beans;let s;const a=e instanceof ol?e:e.getAllCellCtrls()?.[0];return o?.isEditing()?s=o?.moveToNextCell(a,t,n,i):s=this.moveToNextCellNotEditing(e,t,n),s===null?s:s||!!r.focusedHeader}moveToNextCellNotEditing(e,t,n){const i=this.beans.visibleCols.allCols;let o;if(e instanceof wh){if(o={...e.getRowPosition(),column:t?i[0]:Pt(i)},this.gos.get("embedFullWidthRows")&&n){const s=e.findFullWidthInfoForEvent(n);s&&(o.column=s.column)}}else o=e.getFocusedCellPosition();const r=this.findNextCellToFocusOn(o,{backwards:t,startEditing:!1});if(r===!1)return null;if(r instanceof ol)r.focusCell(!0);else if(r)return this.tryToFocusFullWidthRow(r,t);return Ce(r)}findNextCellToFocusOn(e,{backwards:t,startEditing:n,skipToNextEditableCell:i}){let o=e;const r=this.beans,{cellNavigation:s,gos:a,focusSvc:l,rowRenderer:u}=r;for(;;){e!==o&&(e=o),t||(o=this.getLastCellOfColSpan(o)),o=s.getNextTabbedCell(o,t);const h=a.getCallback("tabToNextCell");if(Ce(h)){const v=h({backwards:t,editing:n,previousCellPosition:e,nextCellPosition:o||null});if(v===!0)o=e;else{if(v===!1)return!1;o={rowIndex:v.rowIndex,column:v.column,rowPinned:v.rowPinned}}}if(!o)return null;if(o.rowIndex<0){const m=_i(r);return l.focusHeaderPosition({headerPosition:{headerRowIndex:m+o.rowIndex,column:o.column},fromCell:!0}),null}const f=a.get("editType")==="fullRow";if(n&&(!f||i)&&!this.isCellEditable(o))continue;this.ensureCellVisible(o);const p=Qa(r,o);if(!p){const m=u.getRowByPosition(o);if(!m||!m.isFullWidth()||n)continue;return{...m.getRowPosition(),column:o?.column}}if(!s.isSuppressNavigable(p.column,p.rowNode))return p.setFocusedCellPosition(o),this.setRangeToCellIfSupported(o),p}}isCellEditable(e){const t=this.lookupRowNodeForCell(e);return t?e.column.isCellEditable(t):!1}lookupRowNodeForCell({rowIndex:e,rowPinned:t}){const{pinnedRowModel:n,rowModel:i}=this.beans;return t==="top"?n?.getPinnedTopRow(e):t==="bottom"?n?.getPinnedBottomRow(e):i.getRow(e)}navigateToNextCell(e,t,n,i){let o=n,r=!1;const s=this.beans,{cellNavigation:a,focusSvc:l,gos:u}=s;for(;o&&(o===n||!this.isValidNavigateCell(o));)u.get("enableRtl")?t===K.LEFT&&(o=this.getLastCellOfColSpan(o)):t===K.RIGHT&&(o=this.getLastCellOfColSpan(o)),o=a.getNextCellToFocus(t,o),r=Nt(o);if(r&&e&&e.key===K.UP&&(o={rowIndex:-1,rowPinned:null,column:n.column}),i){const f=u.getCallback("navigateToNextCell");if(Ce(f)){const m=f({key:t,previousCellPosition:n,nextCellPosition:o||null,event:e});Ce(m)?o={rowPinned:m.rowPinned,rowIndex:m.rowIndex,column:m.column}:o=null}}if(!o)return;if(o.rowIndex<0){const f=_i(s);l.focusHeaderPosition({headerPosition:{headerRowIndex:f+o.rowIndex,column:o.column??n.column},event:e||void 0,fromCell:!0});return}const h=this.getNormalisedPosition(o);h?this.focusPosition(h):this.tryToFocusFullWidthRow(o)}getNormalisedPosition(e){if(!!this.beans.spannedRowRenderer?.getCellByPosition(e))return e;this.ensureCellVisible(e);const n=Qa(this.beans,e);return n?(e=n.getFocusedCellPosition(),this.ensureCellVisible(e),e):null}tryToFocusFullWidthRow(e,t){const{visibleCols:n,rowRenderer:i,focusSvc:o,eventSvc:r}=this.beans,s=n.allCols;if(!i.getRowByPosition(e)?.isFullWidth())return!1;const l=o.getFocusedCell(),u={rowIndex:e.rowIndex,rowPinned:e.rowPinned,column:e.column||(t?Pt(s):s[0])};this.focusPosition(u);const h=t??(l!=null&&u2(u,l));return r.dispatchEvent({type:"fullWidthRowFocused",rowIndex:u.rowIndex,rowPinned:u.rowPinned,column:u.column,isFullWidthCell:!0,fromBelow:h}),!0}focusPosition(e){const{focusSvc:t}=this.beans;t.setFocusedCell({rowIndex:e.rowIndex,column:e.column,rowPinned:e.rowPinned,forceBrowserFocus:!0}),this.setRangeToCellIfSupported(e)}setRangeToCellIfSupported(e){zn(e.column)||this.beans.rangeSvc?.setRangeToCell(e)}isValidNavigateCell(e){return!!Eo(this.beans,e)}getLastCellOfColSpan(e){const t=Qa(this.beans,e);if(!t)return e;const n=t.getColSpanningList();return n.length===1?e:{rowIndex:e.rowIndex,column:Pt(n),rowPinned:e.rowPinned}}ensureCellVisible(e){const t=l0(this.gos),n=this.beans.rowModel.getRow(e.rowIndex),i=t&&n?.sticky,{scrollFeature:o}=this.gridBodyCon;!i&&Nt(e.rowPinned)&&o.ensureIndexVisible(e.rowIndex),e.column.isPinned()||o.ensureColumnVisible(e.column)}ensureColumnVisible(e){const t=this.gridBodyCon.scrollFeature;e.isPinned()||t.ensureColumnVisible(e)}ensureRowVisible(e){this.gridBodyCon.scrollFeature.ensureIndexVisible(e)}};function qm(e){return e.ctrlsSvc.getScrollFeature().getVScrollPosition()}var dW={moduleName:"KeyboardNavigation",version:me,beans:[uW,D5,zV],apiFunctions:{getFocusedCell:T5,clearFocusedCell:A5,setFocusedCell:I5,setFocusedHeader:L5,tabToNextCell:M5,tabToPreviousCell:k5}},hW=class extends X{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:n}=this.beans;t?t.calculatePages():e.calculateBounds(0,n.getRowCount()-1)}},fW=class extends X{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,n=e?.rowTop??0,i=t?t.rowTop+t.rowHeight:0;return{pageFirstPixel:n,pageLastPixel:i}}calculateBounds(e,t){const{rowModel:n}=this.beans,i=n.getRowBounds(e);i&&(i.rowIndex=e),this.topRowBounds=i;const o=n.getRowBounds(t);o&&(o.rowIndex=t),this.bottomRowBounds=o,this.calculatePixelOffset()}getPixelOffset(){return this.pixelOffset}calculatePixelOffset(){const e=this.topRowBounds?.rowTop??0;this.pixelOffset!==e&&(this.pixelOffset=e,this.eventSvc.dispatchEvent({type:"paginationPixelOffsetChanged"}))}},pW=".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}",gW=class extends X{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 n of this.elements)n&&(bt(n,t),Fo(n,e))}},mW=class extends X{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:n}=this.beans,i=bn(e,"print"),o=i?0:t.getColsLeftWidth(),r=i?0:t.getDisplayedColumnsRightWidth();o!=this.leftWidth&&(this.leftWidth=o,n.dispatchEvent({type:"leftPinnedWidthChanged"})),r!=this.rightWidth&&(this.rightWidth=r,n.dispatchEvent({type:"rightPinnedWidthChanged"}))}keepPinnedColumnsNarrowerThanViewport(){const e=this.gridBodyCtrl.eBodyViewport,t=dc(e);if(t<=50)return;const n=this.getPinnedColumnsOverflowingViewport(t-50),i=this.gos.getCallback("processUnpinnedColumns"),{columns:o,hasLockedPinned:r}=n;let s=o;!s.length&&!r||(i&&(s=i({columns:s,viewportWidth:t})),s?.length&&(s=s.filter(a=>!zn(a)),this.setColsPinned(s,null,"viewportSizeFeature")))}createPinnedWidthFeature(e,...t){return new gW(e,t)}setColsPinned(e,t,n){const{colModel:i,colAnimation:o,visibleCols:r,gos:s}=this.beans;if(!i.cols||!e?.length)return;if(bn(s,"print")){se(37);return}o?.start();let a;t===!0||t==="left"?a="left":t==="right"?a="right":a=null;const l=[];for(const u of e){if(!u)continue;const h=i.getCol(u);h&&h.getPinned()!==a&&(this.setColPinned(h,a),l.push(h))}l.length&&(r.refresh(n),KR(this.eventSvc,l,n)),o?.finish()}initCol(e){const{pinned:t,initialPinned:n}=e.colDef;t!==void 0?this.setColPinned(e,t):this.setColPinned(e,n)}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 n=e.pinned==="left",i=e.pinned==="right";e.hidden=!0;const o=()=>{const r=n?this.leftWidth:this.rightWidth;if(r==null)return;const s=r==0,a=e.hidden!==s,l=this.gos.get("enableRtl"),u=t.getScrollbarWidth(),f=t.verticalScrollShowing&&(l&&n||!l&&i)?r+u:r;e.comp.setPinnedContainerWidth(`${f}px`),e.comp.setDisplayed(!s),a&&(e.hidden=s,e.refresh())};e.addManagedEventListeners({leftPinnedWidthChanged:o,rightPinnedWidthChanged:o,scrollVisibilityChanged:o,scrollbarWidthChanged:o})}getHeaderResizeDiff(e,t){if(t.getPinned()){const{leftWidth:i,rightWidth:o}=this,r=dc(this.beans.ctrlsSvc.getGridBodyCtrl().eBodyViewport)-50;if(i+o+e>r)if(r>i+o)e=r-i-o;else return 0}return e}getPinnedColumnsOverflowingViewport(e){const t=this.rightWidth??0,n=this.leftWidth??0,i=t+n;let o=!1;if(i<e)return{columns:[],hasLockedPinned:o};const{visibleCols:r}=this.beans,s=[...r.leftCols],a=[...r.rightCols];let l=0,u=0;const h=0,f=[];let p=i-h-e;for(;(u<s.length||l<a.length)&&p>0;){if(l<a.length){const m=a[l++];if(m.colDef.lockPinned){o=!0;continue}p-=m.getActualWidth(),f.push(m)}if(u<s.length&&p>0){const m=s[u++];if(m.colDef.lockPinned){o=!0;continue}p-=m.getActualWidth(),f.push(m)}}return{columns:f,hasLockedPinned:o}}},vW={moduleName:"PinnedColumn",version:me,beans:[mW],css:[pW]},CW=class extends Vn{constructor(){super(),this.beanName="ariaAnnounce",this.descriptionContainer=null,this.pendingAnnouncements=new Map,this.lastAnnouncement="",this.updateAnnouncement=un(this,this.updateAnnouncement.bind(this),200)}postConstruct(){const e=this.beans,t=on(e),n=this.descriptionContainer=t.createElement("div");n.classList.add("ag-aria-description-container"),DS(n,"polite"),aL(n,"additions text"),sL(n,!0),e.eRootDiv.appendChild(n)}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&&(wn(e),e.remove()),this.descriptionContainer=null,this.pendingAnnouncements.clear()}},wW=class extends CW{},bW={moduleName:"Aria",version:me,beans:[wW]},yW=":where(.ag-delay-render){.ag-cell,.ag-header-cell,.ag-header-group-cell,.ag-row,.ag-spanned-cell-wrapper{visibility:hidden}}",HF="ag-delay-render",SW=class extends X{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(HF)}),this.hideRequested=!0))}revealColumns(e){if(this.alreadyRevealed||!this.isAlive()||(this.requesters.delete(e),this.requesters.size>0))return;const{renderStatus:t,ctrlsSvc:n}=this.beans;if(t){if(!t.areHeaderCellsRendered()&&this.timesRetried<5){this.timesRetried++,setTimeout(()=>this.revealColumns(e));return}this.timesRetried=0}n.getGridBodyCtrl().eGridBody.classList.remove(HF),this.alreadyRevealed=!0}},RW={moduleName:"ColumnDelayRender",version:me,beans:[SW],css:[yW]},bh=class extends yt{constructor(){super()}},FW={tag:"div",cls:"ag-overlay-exporting-center",children:[{tag:"span",ref:"eExportingIcon",cls:"ag-loading-icon"},{tag:"span",ref:"eExportingText",cls:"ag-exporting-text"}]},xW=class extends bh{constructor(){super(...arguments),this.eExportingIcon=de,this.eExportingText=de}init(e){const{beans:t}=this;this.setTemplate(FW);const n=ii("overlayExporting",t,null);n&&this.eExportingIcon.appendChild(n);const i=e.exporting?.overlayText??this.getLocaleTextFunc()("exportingOoo","Exporting...");this.eExportingText.textContent=i,t.ariaAnnounce.announceValue(i,"overlay")}},PW={tag:"div",cls:"ag-overlay-loading-center",children:[{tag:"span",ref:"eLoadingIcon",cls:"ag-loading-icon"},{tag:"span",ref:"eLoadingText",cls:"ag-loading-text"}]},EW=class extends bh{constructor(){super(...arguments),this.eLoadingIcon=de,this.eLoadingText=de}init(e){const{beans:t,gos:n}=this,i=Jo(n.get("overlayLoadingTemplate")?.trim());if(this.setTemplate(i??PW),!i){const o=ii("overlayLoading",t,null);o&&this.eLoadingIcon.appendChild(o);const r=e.loading?.overlayText??this.getLocaleTextFunc()("loadingOoo","Loading...");this.eLoadingText.textContent=r,t.ariaAnnounce.announceValue(r,"overlay")}}},DW={tag:"span",cls:"ag-overlay-no-matching-rows-center"},TW=class extends bh{init(e){const{beans:t}=this;this.setTemplate(DW);const n=e.noMatchingRows?.overlayText??this.getLocaleTextFunc()("noMatchingRows","No Matching Rows");this.getGui().textContent=n,t.ariaAnnounce.announceValue(n,"overlay")}},AW={tag:"span",cls:"ag-overlay-no-rows-center"},IW=class extends bh{init(e){const{beans:t,gos:n}=this,i=Jo(n.get("overlayNoRowsTemplate")?.trim());if(this.setTemplate(i??AW),!i){const o=e.noRows?.overlayText??this.getLocaleTextFunc()("noRowsToShow","No Rows To Show");this.getGui().textContent=o,t.ariaAnnounce.announceValue(o,"overlay")}}};function MW(e){e.overlays?.showLoadingOverlay()}function kW(e){e.overlays?.showNoRowsOverlay()}function LW(e){e.overlays?.hideOverlay()}var _W=".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)}",OW={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"}]}]},VF=class extends yt{constructor(){super(OW),this.eOverlayWrapper=de,this.activeOverlay=null,this.activePromise=null,this.activeCssClass=null,this.elToFocusAfter=null,this.overlayExclusive=!1,this.oldWrapperPadding=null,this.registerCSS(_W)}handleKeyDown(e){if(e.key!==K.TAB||e.defaultPrevented||sr(e))return;const{beans:t,eOverlayWrapper:n}=this;if(n&&Bs(t,n,!1,e.shiftKey))return;let o=!1;e.shiftKey?o=t.focusSvc.focusGridView({column:Pt(t.visibleCols.allCols),backwards:!0,canFocusOverlay:!1}):o=Ya(t,!1),o&&e.preventDefault()}updateLayoutClasses(e,t){const n=this.eOverlayWrapper;if(!n)return;const i=n.classList,{AUTO_HEIGHT:o,NORMAL:r,PRINT:s}=io;i.toggle(o,t.autoHeight),i.toggle(r,t.normal),i.toggle(s,t.print)}postConstruct(){this.createManagedBean(new um(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,n){if(this.destroyActiveOverlay(),this.elToFocusAfter=null,this.activePromise=e,this.overlayExclusive=n,!e)return this.refreshWrapperPadding(),It.resolve();if(this.setWrapperTypeClass(t),this.setDisplayed(!0,{skipAriaHidden:!0}),this.refreshWrapperPadding(),n&&this.isGridFocused()){const i=At(this.beans);i&&!lg(this.beans)&&(this.elToFocusAfter=i)}return e.then(i=>{const o=this.eOverlayWrapper;if(!o){this.destroyBean(i);return}if(this.activePromise!==e){this.activeOverlay!==i&&(this.destroyBean(i),i=null);return}this.activePromise=null,i&&(this.activeOverlay!==i&&(o.appendChild(i.getGui()),this.activeOverlay=i),n&&this.isGridFocused()&&Ns(o))}),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 n=this.eOverlayWrapper;n&&wn(n),t?.focus?.({preventScroll:!0}),this.refreshWrapperPadding()}hideOverlay(){this.destroyActiveOverlay(),this.setDisplayed(!1,{skipAriaHidden:!0})}isGridFocused(){const e=At(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}},NW={selector:"AG-OVERLAY-WRAPPER",component:VF},BW=["refresh"],_c=e=>({name:e,optionalMethods:BW}),Ks={id:"agLoadingOverlay",overlayType:"loading",comp:_c("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}},rl={id:"agNoRowsOverlay",overlayType:"noRows",comp:_c("noRowsOverlayComponent"),wrapperCls:"ag-overlay-no-rows-wrapper",compKey:"noRowsOverlayComponent",paramsKey:"noRowsOverlayComponentParams",isSuppressed:e=>e.get("suppressNoRowsOverlay")},Qm={id:"agNoMatchingRowsOverlay",overlayType:"noMatchingRows",comp:_c("noMatchingRowsOverlayComponent"),wrapperCls:"ag-overlay-no-matching-rows-wrapper"},yh={id:"agExportingOverlay",overlayType:"exporting",comp:_c("exportingOverlayComponent"),wrapperCls:"ag-overlay-exporting-wrapper",exclusive:!0},Sh={id:"activeOverlay",comp:_c("activeOverlay"),wrapperCls:"ag-overlay-modal-wrapper",exclusive:!0},GW=e=>e?{agLoadingOverlay:Ks,agNoRowsOverlay:rl,agNoMatchingRowsOverlay:Qm,agExportingOverlay:yh}[e]??Sh:null,HW=e=>e?{loading:Ks,noRows:rl,noMatchingRows:Qm,exporting:yh}[e]:null,VW=class extends X{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=Yt(e);const t=()=>{this.userForcedNoRows||this.updateOverlay(!1)},[n,i,o,r]=this.addManagedEventListeners({newColumnsLoaded:t,rowCountReady:()=>{this.disableInitialOverlay(),t(),i()},rowDataUpdated:t,modelUpdated:t});this.newColumnsLoadedCleanup=n,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(rl)||(this.userForcedNoRows=!0,this.doShowOverlay(rl))}async showExportOverlay(e){const{gos:t,beans:n}=this;if(!this.eWrapper||t.get("activeOverlay")||t.get("loading")||this.isDisabled(yh)||this.userForcedNoRows&&this.currentDef===rl){e();return}const i=this.getDesiredDefWithOverride(yh);if(!i){e();return}this.exportsInProgress++,this.focusedCell=n.focusSvc.getFocusedCell(),await this.doShowOverlay(i),await new Promise(r=>setTimeout(()=>r()));const o=Date.now();try{e()}finally{const r=Date.now()-o,s=Math.max(0,300-r),a=()=>{this.exportsInProgress--,this.exportsInProgress===0&&(this.updateOverlay(!1),m2(n,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")){se(99);return}if(e.get("activeOverlay")){se(296);return}if(this.currentDef===Qm){se(297);return}this.doHideOverlay(),t&&this.getOverlayDef()!==rl&&this.updateOverlay(!1)}getOverlayWrapperSelector(){return NW}getOverlayWrapperCompClass(){return VF}onPropChange(e){const t=e.has("activeOverlay");if((t||e.has("loading"))&&this.updateOverlay(t))return;const n=this.currentDef,i=this.eWrapper?.activeOverlay;if(i&&n){const o=e.has("activeOverlayParams");if(n===Sh)o&&i.refresh?.(this.makeCompParams(!0));else{const r=n.paramsKey;(e.has("overlayComponentParams")||r&&e.has(r))&&i.refresh?.(this.makeCompParams(!1,r,n.overlayType))}}}updateOverlay(e){const t=this.eWrapper;if(!t)return this.currentDef=null,!1;const n=this.getDesiredDefWithOverride(),i=this.currentDef,o=n===Sh&&e;return n!==i?n?(this.doShowOverlay(n),!0):(this.disableInitialOverlay(),this.doHideOverlay()):o&&n?(t.hideOverlay(),this.doShowOverlay(n),!0):(n||this.disableInitialOverlay(),!1)}getDesiredDefWithOverride(e){const{gos:t}=this;let n=GW(t.get("activeOverlay"));return n||(n=e??this.getOverlayDef(),n&&this.isDisabled(n)&&(n=null)),n}getOverlayDef(){const{gos:e,beans:t}=this,{rowModel:n}=t,i=e.get("loading");if(i!==void 0){if(this.disableInitialOverlay(),i)return Ks}else if(this.showInitialOverlay){if(!this.isDisabled(Ks)&&(!e.get("columnDefs")||!e.get("rowData")))return Ks;this.disableInitialOverlay()}else this.disableInitialOverlay();const r=n.getOverlayType();return HW(r)}disableInitialOverlay(){this.showInitialOverlay=!1,this.newColumnsLoadedCleanup?.(),this.newColumnsLoadedCleanup=null}doShowOverlay(e){const{gos:t,beans:n}=this,{userCompFactory:i}=n;this.currentDef=e;const o=e!==Sh,r=!!e.exclusive;this.exclusive=r;let s;(e.paramsKey&&t.get(e.paramsKey)||e.compKey&&t.get(e.compKey))&&(s=e.paramsKey);let a;o&&(t.get("overlayComponent")||t.get("overlayComponentSelector"))&&(a=i.getCompDetailsFromGridOptions({name:"overlayComponent",optionalMethods:["refresh"]},void 0,this.makeCompParams(!1,e.paramsKey,e.overlayType))),a??(a=i.getCompDetailsFromGridOptions(e.comp,o?e.id:void 0,this.makeCompParams(!o,s,e.overlayType),!1));const l=a?.newAgStackInstance()??null,u=this.eWrapper?this.eWrapper.showOverlay(l,e.wrapperCls,r):It.resolve();return this.eWrapper?.refreshWrapperPadding(),this.setExclusive(r),u}makeCompParams(e,t,n){const{gos:i}=this,o=e?i.get("activeOverlayParams"):{...i.get("overlayComponentParams"),...t&&i.get(t)||null,overlayType:n};return We(i,o??{})}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}},WW={moduleName:"Overlay",version:me,userComponents:{agLoadingOverlay:EW,agNoRowsOverlay:IW,agNoMatchingRowsOverlay:TW,agExportingOverlay:xW},apiFunctions:{showLoadingOverlay:MW,showNoRowsOverlay:kW,hideOverlay:LW},icons:{overlayLoading:"loading",overlayExporting:"loading"},beans:[VW]},zW=class extends X{constructor(){super(...arguments),this.beanName="rowContainerHeight",this.scrollY=0,this.uiBodyHeight=0}postConstruct(){this.addManagedEventListeners({bodyHeightChanged:this.updateOffset.bind(this)}),this.maxDivHeight=_O(),Nr(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;Nr(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(),n=e/t;return this.maxScrollY*n}},UW=400,$W=class extends X{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 r of this.getAllCellCtrls())r.onCellSelectionChanged()},t=()=>{for(const r of this.getAllCellCtrls())r.updateRangeBordersIfRangeCount()},n=()=>{this.eventSvc.addListener("cellSelectionChanged",e),this.eventSvc.addListener("columnMoved",t),this.eventSvc.addListener("columnPinned",t),this.eventSvc.addListener("columnVisible",t)},i=()=>{this.eventSvc.removeListener("cellSelectionChanged",e),this.eventSvc.removeListener("columnMoved",t),this.eventSvc.removeListener("columnPinned",t),this.eventSvc.removeListener("columnVisible",t)};this.addDestroyFunc(()=>i()),this.addManagedPropertyListeners(["enableRangeSelection","cellSelection"],()=>{nr(this.gos)?n():i()}),nr(this.gos)&&n()}}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",i=>this.onSuppressCellFocusChanged(i.currentValue)),this.addManagedPropertyListeners(["groupSuppressBlankHeader","getBusinessKeyForNode","fullWidthCellRenderer","fullWidthCellRendererParams","suppressStickyTotalRow","groupRowRenderer","groupRowRendererParams","loadingCellRenderer","loadingCellRendererParams","detailCellRenderer","detailCellRendererParams","enableRangeSelection","enableCellTextSelection"],()=>this.redrawRows()),this.addManagedPropertyListener("cellSelection",({currentValue:i,previousValue:o})=>{(!o&&i||o&&!i)&&this.redrawRows()});const{stickyRowSvc:e,gos:t,showRowGroupCols:n}=this.beans;if(n&&this.addManagedPropertyListener("showOpenedGroup",()=>{const i=n.columns;i.length&&this.refreshCells({columns:i,force:!0})}),e)this.stickyRowFeature=e.createStickyRowFeature(this,this.createRowCon.bind(this),this.destroyRowCtrls.bind(this));else{const i=this.gridBodyCtrl;i.setStickyTopHeight(0),i.setStickyBottomHeight(0)}this.registerCellEventListeners(),this.initialiseCache(),this.printLayout=bn(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 jW(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),n=this.cachedRowCtrls?.getEntries()??[];t.length>0||n.length>0?this.allRowCtrls=[...e,...t,...n]:this.allRowCtrls=e}isCellBeingRendered(e,t){const n=this.rowCtrlsByRowIndex[e];return!t||!n?!!n:n.isFullWidth()?!0:!!this.beans.spannedRowRenderer?.getCellByPosition({rowIndex:e,column:t,rowPinned:null})||!!n.getCellCtrl(t)||!n.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 n of this.getAllCellCtrls())t.onFlashCells(n,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 n=l=>{for(const u of this.getAllCellCtrls())u.column===t&&l(u)},i=()=>{n(l=>l.onLeftChanged())},o=()=>{n(l=>l.onWidthChanged())},r=()=>{n(l=>l.onFirstRightPinnedChanged())},s=()=>{n(l=>l.onLastLeftPinnedChanged())},a=()=>{n(l=>l.onColDefChanged())};t.__addEventListener("leftChanged",i),t.__addEventListener("widthChanged",o),t.__addEventListener("firstRightPinnedChanged",r),t.__addEventListener("lastLeftPinnedChanged",s),t.__addEventListener("colDefChanged",a),this.destroyFuncsForColumnListeners.push(()=>{t.__removeEventListener("leftChanged",i),t.__removeEventListener("widthChanged",o),t.__removeEventListener("firstRightPinnedChanged",r),t.__removeEventListener("lastLeftPinnedChanged",s),t.__removeEventListener("colDefChanged",a)})}}onDomLayoutChanged(){const e=bn(this.gos,"print"),t=e||this.gos.get("embedFullWidthRows"),n=t!==this.embedFullWidthRows||this.printLayout!==e;this.printLayout=e,this.embedFullWidthRows=t,n&&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 n of this.getAllRowCtrls()){const i=n.getCellCtrl(e,!0)?.eGui;i&&t.push(i)}return t}refreshFloatingRowComps(e=!0){this.refreshFloatingRows(this.topRowCtrls,"top",e),this.refreshFloatingRows(this.bottomRowCtrls,"bottom",e)}refreshFloatingRows(e,t,n){const{pinnedRowModel:i,beans:o,printLayout:r}=this,s=Object.fromEntries(e.map(l=>[l.rowNode.id,l]));i?.forEachPinnedRow(t,(l,u)=>{const h=e[u];h&&i.getPinnedRowById(h.rowNode.id,t)===void 0&&(h.destroyFirstPass(),h.destroySecondPass()),l.id in s&&n?(e[u]=s[l.id],delete s[l.id]):e[u]=new wh(l,o,!1,!1,r)});const a=(t==="top"?i?.getPinnedTopRowCount():i?.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 n=i=>{const o=i[e.rowIndex];o&&o.rowNode===e&&(o.destroyFirstPass(),o.destroySecondPass(),i[e.rowIndex]=this.createRowCon(e,!1,!1))};switch(e.rowPinned){case"top":n(this.topRowCtrls);break;case"bottom":n(this.bottomRowCtrls);break;default:n(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 i of e??[])this.redrawRow(i,!0);this.dispatchDisplayedRowsChanged(!1);return}this.redrawAfterModelUpdate()}redrawAfterModelUpdate(e={}){this.getLockOnRefresh();const t=this.beans.focusSvc?.getFocusCellToUseAfterRefresh();this.updateContainerHeights(),this.scrollToTopIfNewData(e);const n=!e.domLayoutChanged&&!!e.recycleRows,i=e.animate&&Va(this.gos),o=n?this.getRowsToRecycle():null;n||this.removeAllRowComps(),this.workOutFirstAndLastRowsToRender();const{stickyRowFeature:r,gos:s}=this;if(r){r.checkStickyRows();const a=r.extraTopHeight+r.extraBottomHeight;a&&this.updateContainerHeights(a)}this.recycleRows(o,i),this.gridBodyCtrl.updateRowCount(),e.onlyBody||this.refreshFloatingRowComps(s.get("enableRowPinning")?n:void 0),this.dispatchDisplayedRowsChanged(),t!=null&&this.restoreFocusedCell(t),this.releaseLockOnRefresh()}scrollToTopIfNewData(e){const t=e.newData||e.newPage,n=this.gos.get("suppressScrollOnNewData");t&&!n&&(this.gridBodyCtrl.scrollFeature.scrollToTop(),this.stickyRowFeature?.resetOffsets())}updateContainerHeights(e=0){const{rowContainerHeight:t}=this;if(this.printLayout){t.setModelHeight(null);return}let n=this.pageBounds.getCurrentPageHeight();n===0&&(n=1),t.setModelHeight(n+e)}getLockOnRefresh(){if(this.refreshInProgress)throw new Error(xo(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,n=this.findPositionToFocus(e);if(!n){t.focusHeaderPosition({headerPosition:{headerRowIndex:_i(this.beans)-1,column:e.column}});return}if(e.rowIndex!==n.rowIndex||e.rowPinned!=n.rowPinned){t.setFocusedCell({...n,preventScrollOnBrowserFocus:!0,forceBrowserFocus:!0});return}t.doesRowOrCellHaveBrowserFocus()||this.updateCellFocus(We(this.gos,{...n,forceBrowserFocus:!0,preventScrollOnBrowserFocus:!0,type:"cellFocused"}))}findPositionToFocus(e){const{pagination:t,pageBounds:n}=this.beans;let i=e;for(i.rowPinned==null&&t&&n&&!t.isRowInPage(i.rowIndex)&&(i={rowPinned:null,rowIndex:n.getFirstRow()});i;){if(i.rowPinned==null&&n)if(i.rowIndex<n.getFirstRow()){if(i=Xd(this.beans,{rowPinned:null,rowIndex:0}),!i)return null}else i.rowIndex>n.getLastRow()&&(i={rowPinned:null,rowIndex:n.getLastRow()});const o=this.getRowByPosition(i);if(o?.isAlive())return{...o.getRowPosition(),column:e.column};i=Xd(this.beans,i)}return null}getAllCellCtrls(){const e=[],t=this.getAllRowCtrls(),n=t.length;for(let i=0;i<n;i++){const o=t[i].getAllCellCtrls(),r=o.length;for(let s=0;s<r;s++)e.push(o[s])}return e}getAllRowCtrls(){const{spannedRowRenderer:e}=this.beans,t=this.getStickyTopRowCtrls(),n=this.getStickyBottomRowCtrls();return[...this.topRowCtrls,...this.bottomRowCtrls,...t,...n,...e?.getCtrls("top")??[],...e?.getCtrls("bottom")??[],...e?.getCtrls("center")??[],...Object.values(this.rowCtrlsByRowIndex)]}addRenderedRowListener(e,t,n){const i=this.rowCtrlsByRowIndex[t];i&&i.addEventListener(e,n)}refreshCells({rowNodes:e,columns:t,force:n,suppressFlash:i}={}){const o={force:n,newData:!1,suppressFlash:i};for(const r of this.getCellCtrls(e,t))r.refreshOrDestroyCell(o);this.refreshFullWidth(e)}refreshRows(e={}){for(const t of this.getRowCtrls(e.rowNodes))t.refreshRow(e);this.refreshFullWidth(e.rowNodes)}getRowCtrlByNode(e){const t=e.rowIndex;if(t==null)return;const n=e.rowPinned;if(n==="top"){const o=this.topRowCtrls[t];return o?.rowNode===e?o:void 0}if(n==="bottom"){const o=this.bottomRowCtrls[t];return o?.rowNode===e?o:void 0}const i=this.rowCtrlsByRowIndex[t];return i?.rowNode===e?i:this.getStickyRowCtrlByNode(e)}getStickyRowCtrlByNode(e){const t=this.stickyRowFeature;if(t){for(const n of t.stickyTopRowCtrls)if(n.rowNode===e)return n;for(const n of t.stickyBottomRowCtrls)if(n.rowNode===e)return n}}refreshRowByNode(e){e&&this.getRowCtrlByNode(e)?.refreshRow()}refreshFullWidth(e){if(!e)return;let t=!1;for(const n of this.getRowCtrls(e)){if(!n.isFullWidth())continue;n.refreshFullWidth()||(t=!0,this.redrawRow(n.rowNode,!0))}t&&this.dispatchDisplayedRowsChanged(!1)}getRowCtrls(e){const t=Ym(e),n=this.getAllRowCtrls();return!e||!t?n:n.filter(i=>{const o=i.rowNode;return Zm(o,t)})}getCellCtrls(e,t){let n;Ce(t)&&(n={},t.forEach(o=>{const r=this.colModel.getCol(o);Ce(r)&&(n[r.getId()]=!0)}));const i=[];for(const o of this.getRowCtrls(e))for(const r of o.getAllCellCtrls()){const s=r.column.getId();n&&!n[s]||i.push(r)}return i}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 n of Object.keys(this.rowCtrlsByRowIndex))this.rowCtrlsByRowIndex[n].rowNode.id==null&&e.push(n);this.removeRowCtrls(e);const t={};for(const n of Object.values(this.rowCtrlsByRowIndex)){const i=n.rowNode;t[i.id]=n}return this.rowCtrlsByRowIndex={},t}removeRowCtrls(e,t=!1){for(const n of e){const i=this.rowCtrlsByRowIndex[n];i&&(i.destroyFirstPass(t),i.destroySecondPass()),delete this.rowCtrlsByRowIndex[n]}}onBodyScroll(e){e.direction==="vertical"&&this.redraw({afterScroll:!0})}redraw(e={}){const{focusSvc:t,animationFrameSvc:n}=this.beans,{afterScroll:i}=e;let o;const r=this.stickyRowFeature;r&&(o=t?.getFocusCellToUseAfterRefresh()||void 0);const s=this.firstRenderedRow,a=this.lastRenderedRow;this.workOutFirstAndLastRowsToRender();let l=!1;if(r){l=r.checkStickyRows();const h=r.extraTopHeight+r.extraBottomHeight;h&&this.updateContainerHeights(h)}const u=this.firstRenderedRow!==s||this.lastRenderedRow!==a;if(!(i&&!l&&!u)&&(this.getLockOnRefresh(),this.recycleRows(null,!1,i),this.releaseLockOnRefresh(),this.dispatchDisplayedRowsChanged(i&&!l),o!=null)){const h=t?.getFocusCellToUseAfterRefresh();o!=null&&h==null&&(n?.flushAllFrames(),this.restoreFocusedCell(o))}}removeRowCompsNotToDraw(e,t){const n={};for(const r of e)n[r]=!0;const o=Object.keys(this.rowCtrlsByRowIndex).filter(r=>!n[r]);this.removeRowCtrls(o,t)}calculateIndexesToDraw(e){const t=[];for(let s=this.firstRenderedRow;s<=this.lastRenderedRow;s++)t.push(s);const n=this.beans.pagination,i=this.beans.focusSvc?.getFocusedCell()?.rowIndex;i!=null&&(i<this.firstRenderedRow||i>this.lastRenderedRow)&&(!n||n.isRowInPage(i))&&i<this.rowModel.getRowCount()&&t.push(i);const o=s=>{const a=s.rowNode.rowIndex;a==null||a===i||(a<this.firstRenderedRow||a>this.lastRenderedRow)&&this.doNotUnVirtualiseRow(s)&&t.push(a)};for(const s of Object.values(this.rowCtrlsByRowIndex))o(s);if(e)for(const s of Object.values(e))o(s);t.sort((s,a)=>s-a);const r=[];for(let s=0;s<t.length;s++){const a=t[s],l=this.rowModel.getRow(a);l&&!l.sticky&&r.push(a)}return r}recycleRows(e,t=!1,n=!1){const i=this.calculateIndexesToDraw(e);(this.printLayout||n)&&(t=!1),this.removeRowCompsNotToDraw(i,!t);for(const o of i)this.createOrUpdateRowCtrl(o,e,t,n);if(e){const{animationFrameSvc:o}=this.beans;o?.active&&n&&!this.printLayout?o.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(),n=e.isPinningRight();(this.pinningLeft!==t||n!==this.pinningRight)&&(this.pinningLeft=t,this.pinningRight=n,this.embedFullWidthRows&&this.redrawFullWidthEmbeddedRows())}redrawFullWidthEmbeddedRows(){const e=[];for(const t of this.getFullWidthRowCtrls()){const n=t.rowNode.rowIndex;e.push(n.toString())}this.refreshFloatingRowComps(),this.removeRowCtrls(e),this.redraw({afterScroll:!0})}getFullWidthRowCtrls(e){const t=Ym(e);return this.getAllRowCtrls().filter(n=>{if(!n.isFullWidth())return!1;const i=n.rowNode;return!(t!=null&&!Zm(i,t))})}createOrUpdateRowCtrl(e,t,n,i){let o,r=this.rowCtrlsByRowIndex[e];if(r||(o=this.rowModel.getRow(e),Ce(o)&&Ce(t)&&t[o.id]&&o.alreadyRendered&&(r=t[o.id],t[o.id]=null)),!r)if(o||(o=this.rowModel.getRow(e)),Ce(o))r=this.createRowCon(o,n,i);else return;o&&(o.alreadyRendered=!0),this.rowCtrlsByRowIndex[e]=r}destroyRowCtrls(e,t){const n=[];if(e){for(const i of Object.values(e))if(i){if(this.cachedRowCtrls&&i.isCacheable()){this.cachedRowCtrls.addRow(i);continue}if(i.destroyFirstPass(!t),t){const o=i.instanceId;this.zombieRowCtrls[o]=i,n.push(()=>{i.destroySecondPass(),delete this.zombieRowCtrls[o]})}else i.destroySecondPass()}}t&&(n.push(()=>{this.isAlive()&&(this.updateAllRowCtrls(),this.dispatchDisplayedRowsChanged())}),window.setTimeout(()=>{for(const i of n)i()},UW))}getRowBuffer(){return this.gos.get("rowBuffer")}getRowBufferInPixels(){const e=this.getRowBuffer(),t=Ms(this.beans);return e*t}workOutFirstAndLastRowsToRender(){const{rowContainerHeight:e,pageBounds:t,rowModel:n}=this;e.updateOffset();let i,o;if(!n.isRowsToRender())i=0,o=-1;else if(this.printLayout)this.beans.environment.refreshRowHeightVariable(),i=t.getFirstRow(),o=t.getLastRow();else{const h=this.getRowBufferInPixels(),f=this.ctrlsSvc.getScrollFeature(),p=this.gos.get("suppressRowVirtualisation");let m=!1,v,w;do{const x=t.getPixelOffset(),{pageFirstPixel:P,pageLastPixel:D}=t.getCurrentPagePixelRange(),A=e.divStretchOffset,N=f.getVScrollPosition(),B=N.top,L=N.bottom;p?(v=P+A,w=D+A):(v=Math.max(B+x-h,P)+A,w=Math.min(L+x+h,D)+A),this.firstVisibleVPixel=Math.max(B+x,P)+A,this.lastVisibleVPixel=Math.min(L+x,D)+A,m=this.ensureAllRowsInRangeHaveHeightsCalculated(v,w)}while(m);let b=n.getRowIndexAtPixel(v),y=n.getRowIndexAtPixel(w);const R=t.getFirstRow(),S=t.getLastRow();b<R&&(b=R),y>S&&(y=S),i=b,o=y}const r=bn(this.gos,"normal"),s=this.gos.get("suppressMaxRenderedRowRestriction"),a=Math.max(this.getRowBuffer(),500);r&&!s&&o-i>a&&(o=i+a);const l=i!==this.firstRenderedRow,u=o!==this.lastRenderedRow;(l||u)&&(this.firstRenderedRow=i,this.lastRenderedRow=o,this.eventSvc.dispatchEvent({type:"viewportChanged",firstRow:i,lastRow:o}))}dispatchFirstDataRenderedEvent(){this.dataFirstRenderedFired||(this.dataFirstRenderedFired=!0,er(this.beans,()=>{this.beans.eventSvc.dispatchEvent({type:"firstDataRendered",firstRow:this.firstRenderedRow,lastRow:this.lastRenderedRow})}))}ensureAllRowsInRangeHaveHeightsCalculated(e,t){const n=this.pinnedRowModel?.ensureRowHeightsValid(),i=this.stickyRowFeature?.ensureRowHeightsValid(),{pageBounds:o,rowModel:r}=this,s=r.ensureRowHeightsValid(e,t,o.getFirstRow(),o.getLastRow());return(s||i)&&this.eventSvc.dispatchEvent({type:"recalculateRowBounds"}),i||s||n?(this.updateContainerHeights(),!0):!1}doNotUnVirtualiseRow(e){const i=e.rowNode,o=this.focusSvc.isRowFocused(i.rowIndex,i.rowPinned),r=this.editSvc?.isEditing(e),s=i.detail;return o||r||s?!!this.isRowPresent(i):!1}isRowPresent(e){return this.rowModel.isRowPresent(e)?this.beans.pagination?.isRowInPage(e.rowIndex)??!0:!1}createRowCon(e,t,n){const i=this.cachedRowCtrls?.getRow(e)??null;if(i)return i;const o=n&&!this.printLayout&&!!this.beans.animationFrameSvc?.active;return new wh(e,this.beans,t,o,this.printLayout)}getRenderedNodes(){const e=Object.values(this.rowCtrlsByRowIndex).map(i=>i.rowNode),t=this.getStickyTopRowCtrls().map(i=>i.rowNode),n=this.getStickyBottomRowCtrls().map(i=>i.rowNode);return[...t,...e,...n]}getRowByPosition(e){let t;const{rowIndex:n}=e;switch(e.rowPinned){case"top":t=this.topRowCtrls[n];break;case"bottom":t=this.bottomRowCtrls[n];break;default:t=this.rowCtrlsByRowIndex[n],t||(t=this.getStickyTopRowCtrls().find(i=>i.rowNode.rowIndex===n)||null,t||(t=this.getStickyBottomRowCtrls().find(i=>i.rowNode.rowIndex===n)||null));break}return t}isRangeInRenderedViewport(e,t){if(e==null||t==null)return!1;const i=e>this.lastRenderedRow;return!(t<this.firstRenderedRow)&&!i}},jW=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,n=this.entriesMap[t];delete this.entriesMap[t],So(this.entriesList,n)}removeFromCache(e){const t=e.rowNode.id;delete this.entriesMap[t],So(this.entriesList,e)}getEntries(){return this.entriesList}};function Ym(e){if(!e)return;const t={top:{},bottom:{},normal:{}};for(const n of e){const i=n.id;switch(n.rowPinned){case"top":t.top[i]=n;break;case"bottom":t.bottom[i]=n;break;default:t.normal[i]=n;break}}return t}function Zm(e,t){const n=e.id;switch(e.rowPinned){case"top":return t.top[n]!=null;case"bottom":return t.bottom[n]!=null;default:return t.normal[n]!=null}}var KW=class extends X{constructor(){super(...arguments),this.beanName="rowNodeSorter",this.accentedSort=!1,this.primaryColumnsSortGroups=!1,this.pivotActive=!1}postConstruct(){this.firstLeaf=Yt(this.gos)?ch:qW,this.addManagedPropertyListeners(["accentedSort","autoGroupColumnDef","treeData"],this.updateOptions.bind(this));const e=this.updatePivotModeState.bind(this);this.addManagedEventListeners({columnPivotModeChanged:e,columnPivotChanged:e}),this.updateOptions(),e()}updateOptions(){this.accentedSort=!!this.gos.get("accentedSort"),this.primaryColumnsSortGroups=tr(this.gos)}updatePivotModeState(){this.pivotActive=this.beans.colModel.isPivotActive()}doFullSortInPlace(e,t){return e.sort((n,i)=>this.compareRowNodes(t,n,i))}compareRowNodes(e,t,n){if(t===n)return 0;const i=this.accentedSort;for(let o=0,r=e.length;o<r;++o){const s=e[o],a=s.sort==="desc";let l=this.getValue(t,s.column),u=this.getValue(n,s.column),h;const f=this.getComparator(s,t);if(f?h=f(l,u,t,n,a):(s.type==="absolute"&&(l=WF(l),u=WF(u)),h=Xk(l,u,i)),h)return s.sort==="asc"?h:-h}return 0}getComparator(e,t){const n=e.column.getColDef(),i=this.getComparatorFromColDef(n,e);if(i)return i;if(!n.showRowGroup)return;const o=!t.group&&n.field;if(!o)return;const r=this.beans.colModel.getColDefCol(o);if(r)return this.getComparatorFromColDef(r.getColDef(),e)}getComparatorFromColDef(e,t){const n=e.comparator;if(n!=null)return typeof n=="object"?n[ir(t.type)]:n}getValue(e,t){const n=this.beans;if(this.primaryColumnsSortGroups){if(e.rowGroupColumn===t)return this.getGroupDataValue(e,t);if(e.group&&t.getColDef().showRowGroup)return}const i=n.valueSvc.getValue(t,e,"data");if(t.isAllowFormula()){const o=n.formula;if(o?.isFormula(i))return o.resolveValue(t,e)}return i}getGroupDataValue(e,t){if(u0(this.gos,this.pivotActive)){const i=this.firstLeaf(e);return i&&this.beans.valueSvc.getValue(t,i,"data")}const n=this.beans.showRowGroupCols?.getShowRowGroupCol(t.getId());return n?e.groupData?.[n.getId()]:void 0}},qW=e=>{if(e.data)return e;let t=e.childrenAfterGroup;for(;t?.length;){const n=t[0];if(n.data)return n;t=n.childrenAfterGroup}},WF=e=>{if(!e)return e;if(typeof e=="bigint")return e<0n?-e:e;const t=Number(e);return isNaN(t)?e:Math.abs(t)};function QW(e){e.sortSvc?.onSortChanged("api")}var qs=(e,t)=>({tag:"span",ref:`eSort${e}`,cls:`ag-sort-indicator-icon ag-sort-${t} ag-hidden`,attrs:{"aria-hidden":"true"}}),YW={tag:"span",cls:"ag-sort-indicator-container",children:[qs("Order","order"),qs("Asc","ascending-icon"),qs("Desc","descending-icon"),qs("Mixed","mixed-icon"),qs("AbsoluteAsc","absolute-ascending-icon"),qs("AbsoluteDesc","absolute-descending-icon"),qs("None","none-icon")]},Xm=class extends yt{constructor(e){super(),this.eSortOrder=de,this.eSortAsc=de,this.eSortDesc=de,this.eSortMixed=de,this.eSortNone=de,this.eSortAbsoluteAsc=de,this.eSortAbsoluteDesc=de,e||this.setTemplate(YW)}attachCustomElements(e,t,n,i,o,r,s){this.eSortOrder=e,this.eSortAsc=t,this.eSortDesc=n,this.eSortMixed=i,this.eSortNone=o,this.eSortAbsoluteAsc=r,this.eSortAbsoluteDesc=s}setupSort(e,t=!1,n){if(this.column=e,this.suppressOrder=t,this.getSortDefOverride=n,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 i=this.updateIcons.bind(this),o=this.onSortChanged.bind(this);this.addManagedPropertyListener("unSortIcon",i),this.addManagedEventListeners({newColumnsLoaded:i,sortChanged:o,columnRowGroupChanged:o}),this.onSortChanged()}addInIcon(e,t,n){if(t==null)return;const i=ii(e,this.beans,n);i&&t.appendChild(i)}onSortChanged(){this.updateIcons(),this.suppressOrder||this.updateSortOrder()}updateIcons(){const{eSortAsc:e,eSortDesc:t,eSortAbsoluteAsc:n,eSortAbsoluteDesc:i,eSortNone:o,column:r,gos:s,beans:a}=this,l=T_(r,a,this.getSortDefOverride),u=l.isDefaultSortAllowed,h=l.isAbsoluteSortAllowed,{isAbsoluteSort:f,isDefaultSort:p,isAscending:m,isDescending:v,direction:w}=l;if(e&&bt(e,m&&p&&u,{skipAriaHidden:!0}),t&&bt(t,v&&p&&u,{skipAriaHidden:!0}),o){const b=!r.getColDef().unSortIcon&&!s.get("unSortIcon");bt(o,!b&&!w,{skipAriaHidden:!0})}n&&bt(n,m&&f&&h,{skipAriaHidden:!0}),i&&bt(i,v&&f&&h,{skipAriaHidden:!0})}setupMultiSortIndicator(){const{eSortMixed:e,column:t,gos:n}=this;this.addInIcon("sortUnSort",e,t);const i=t.getColDef().showRowGroup;tr(n)&&i&&(this.addManagedEventListeners({sortChanged:this.updateMultiSortIndicator.bind(this),columnRowGroupChanged:this.updateMultiSortIndicator.bind(this)}),this.updateMultiSortIndicator())}updateMultiSortIndicator(){const{eSortMixed:e,beans:t,column:n}=this;if(e){const i=t.sortSvc.getDisplaySortForColumn(n)?.direction==="mixed";bt(e,i,{skipAriaHidden:!0})}}updateSortOrder(){const{eSortOrder:e,column:t,beans:{sortSvc:n}}=this;if(!e)return;const i=n.getColumnsWithSortingOrdered(),o=n.getDisplaySortIndexForColumn(t)??-1,r=i.some(a=>n.getDisplaySortIndexForColumn(a)??!1),s=o>=0&&r;bt(e,s,{skipAriaHidden:!0}),o>=0?e.textContent=(o+1).toString():wn(e)}refresh(){this.onSortChanged()}},ZW={selector:"AG-SORT-INDICATOR",component:Xm},XW=class extends X{constructor(){super(...arguments),this.beanName="sortSvc"}progressSort(e,t,n){const i=this.getNextSortDirection(e);this.setSortForColumn(e,i,t,n)}progressSortFromEvent(e,t){const i=this.gos.get("multiSortKey")==="ctrl"?t.ctrlKey||t.metaKey:t.shiftKey;this.progressSort(e,i,"uiColumnSorted")}setSortForColumn(e,t,n,i){const{gos:o,showRowGroupCols:r}=this.beans,s=tr(o);let a=[e];if(s&&e.getColDef().showRowGroup){const f=r?.getSourceColumnsForGroupColumn?.(e)?.filter(p=>p.isSortable());f&&(a=[e,...f])}for(const h of a)this.setColSort(h,t,i);const l=(n||o.get("alwaysMultiSort"))&&!o.get("suppressMultiSort"),u=[];if(!l){const h=this.clearSortBarTheseColumns(a,i);u.push(...h)}this.updateSortIndex(e),u.push(...a),this.dispatchSortChangedEvents(i,u)}updateSortIndex(e){const{gos:t,colModel:n,showRowGroupCols:i}=this.beans,o=tr(t),r=i?.getShowRowGroupCol(e.getId()),s=o&&r||e,a=this.getColumnsWithSortingOrdered();n.forAllCols(h=>this.setColSortIndex(h,null));const l=a.filter(h=>o&&h.getColDef().showRowGroup?!1:h!==s);(s.getSortDef()?[...l,s]:l).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 n={type:"sortChanged",source:e};t&&(n.columns=t),this.eventSvc.dispatchEvent(n)}clearSortBarTheseColumns(e,t){const n=[];return this.beans.colModel.forAllCols(i=>{e.includes(i)||(i.getSortDef()&&n.push(i),this.setColSort(i,void 0,t))}),n}getNextSortDirection(e,t){const n=e.getSortingOrder(),i=t===void 0?e.getSortDef():Li(t);let r=n.findIndex(s=>Hd(s,i))+1;return r>=n.length&&(r=0),Li(n[r])}getIndexedSortMap(){const{gos:e,colModel:t,showRowGroupCols:n,rowGroupColsSvc:i}=this.beans;let o=[];if(t.forAllCols(u=>{u.getSortDef()&&o.push(u)}),t.isPivotMode()){const u=tr(e);o=o.filter(h=>{const f=!!h.getAggFunc(),p=!h.isPrimary(),m=u?n?.getShowRowGroupCol(h.getId()):h.getColDef().showRowGroup;return f||p||m})}const r=i?.columns.filter(u=>!!u.getSortDef())??[],s={};o.forEach((u,h)=>s[u.getId()]=h),o.sort((u,h)=>{const f=u.getSortIndex(),p=h.getSortIndex();if(f!=null&&p!=null)return f-p;if(f==null&&p==null){const m=s[u.getId()],v=s[h.getId()];return m>v?1:-1}else return p==null?-1:1});const a=tr(e)&&!!r.length;a&&(o=[...new Set(o.map(u=>n?.getShowRowGroupCol(u.getId())??u))]);const l=new Map;if(o.forEach((u,h)=>l.set(u,h)),a)for(const u of r){const h=n.getShowRowGroupCol(u.getId());l.set(u,l.get(h))}return l}getColumnsWithSortingOrdered(){return[...this.getIndexedSortMap().entries()].sort(([,e],[,t])=>e-t).map(([e])=>e)}collectSortItems(e=!1){const t=[],n=this.getColumnsWithSortingOrdered();for(const i of n){const o=i.getSortDef()?.direction;if(!o)continue;const r=ir(i.getSortDef()?.type),s={sort:o,type:r};e?s.colId=i.getId():s.column=i,t.push(s)}return t}getSortModel(){return this.collectSortItems(!0)}getSortOptions(){return this.collectSortItems()}canColumnDisplayMixedSort(e){const t=tr(this.gos),n=!!e.getColDef().showRowGroup;return t&&n}getDisplaySortForColumn(e){const t=this.beans.showRowGroupCols?.getSourceColumnsForGroupColumn(e);if(!this.canColumnDisplayMixedSort(e)||!t?.length)return e.getSortDef();const i=e.getColDef().field!=null||!!e.getColDef().valueGetter?[e,...t]:t,o=i[0].getSortDef();return i.every(s=>Hd(s.getSortDef(),o))?o:{type:ir(e.getSortDef()?.type),direction:"mixed"}}getDisplaySortIndexForColumn(e){return this.getIndexedSortMap().get(e)}setupHeader(e,t){const n=()=>{const{type:i,direction:o}=Li(t.getSortDef());if(e.toggleCss("ag-header-cell-sorted-asc",o==="asc"),e.toggleCss("ag-header-cell-sorted-desc",o==="desc"),e.toggleCss("ag-header-cell-sorted-abs-asc",i==="absolute"&&o==="asc"),e.toggleCss("ag-header-cell-sorted-abs-desc",i==="absolute"&&o==="desc"),e.toggleCss("ag-header-cell-sorted-none",!o),t.getColDef().showRowGroup){const a=!this.beans.showRowGroupCols?.getSourceColumnsForGroupColumn(t)?.every(l=>o==l.getSortDef()?.direction);e.toggleCss("ag-header-cell-sorted-mixed",a)}};e.addManagedEventListeners({sortChanged:n,columnPinned:n,columnRowGroupChanged:n,displayedColumnsChanged:n})}initCol(e){const{sortIndex:t,initialSortIndex:n}=e.colDef,i=S0(e.colDef);i&&e.setSortDef(i,!0),t!==void 0?t!==null&&(e.sortIndex=t):n!==null&&(e.sortIndex=n)}updateColSort(e,t,n){t!==void 0&&this.setColSort(e,Li(t),n)}setColSort(e,t,n){Hd(e.getSortDef(),t)||(e.setSortDef(Li(t),t===void 0),e.dispatchColEvent("sortChanged",n)),e.dispatchStateUpdatedEvent("sort")}setColSortIndex(e,t){e.sortIndex=t,e.dispatchStateUpdatedEvent("sortIndex")}createSortIndicator(e){return new Xm(e)}getSortIndicatorSelector(){return ZW}},zF={moduleName:"Sort",version:me,beans:[XW,KW],apiFunctions:{onSortChanged:QW},userComponents:{agSortIndicator:Xm},icons:{sortAscending:"asc",sortDescending:"desc",sortUnSort:"none",sortAbsoluteAscending:"aasc",sortAbsoluteDescending:"adesc"}},JW=class extends X{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:n}=this.beans;t.setColumnDefs(e??[],"gridInitializing"),n.start()}gridReady(){const{eventSvc:e,gos:t}=this;e.dispatchEvent({type:"gridReady"}),Nr(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,ja(e.source))}}};function e3(e){e.valueCache?.expire()}function t3(e,t){const{colKey:n,rowNode:i,useFormatter:o,from:r="edit"}=t,s=e.colModel.getColDefCol(n)??e.colModel.getCol(n);if(!s)return null;const a=e.valueSvc.getValueForDisplay({column:s,node:i,includeValueFormatted:o,from:r});return o?a.valueFormatted??La(a.value):a.value}var n3="paste",i3=class extends X{constructor(){super(...arguments),this.beanName="changeDetectionSvc",this.deferredDepth=0,this.batchedPath=null,this.batchedNodes=null}destroy(){super.destroy(),this.batchedPath=null,this.batchedNodes=null}postConstruct(){this.csrm=Po(this.beans),this.addManagedEventListeners({cellValueChanged:this.onCellValueChanged.bind(this)})}beginDeferred(){this.deferredDepth++}endDeferred(){if(this.deferredDepth===0||--this.deferredDepth>0)return;const e=this.batchedPath,t=this.batchedNodes;this.batchedPath=null,this.batchedNodes=null,e&&this.csrm?.doAggregate(e);const{rowRenderer:n}=this.beans;if(t)for(const i of t)UF(n,i);if(e){const i=e.getSortedRows();for(let o=0,r=i.length;o<r;++o)UF(n,i[o])}(this.batchedPath||this.batchedNodes)&&(this.deferredDepth=1,this.endDeferred())}onCellValueChanged(e){const{gos:t,rowModel:n,changedPathFactory:i}=this.beans;if(e.source===n3||t.get("suppressChangeDetection")||!n.rootNode)return;const o=e.node.primaryRow;if(this.csrm){let r=this.batchedPath;r||(r=i?.newPath(t.get("aggregateOnlyChangedColumns"))??null,this.batchedPath=r);let s=o;o.group||((this.batchedNodes??(this.batchedNodes=new Set)).add(o),s=o.parent),r?.addCell(s,e.column.getColId())}else(this.batchedNodes??(this.batchedNodes=new Set)).add(o);this.deferredDepth===0&&(this.deferredDepth=1,this.endDeferred())}},UF=(e,t)=>{const{sibling:n,pinnedSibling:i}=t;e.refreshRowByNode(t),e.refreshRowByNode(n),e.refreshRowByNode(i),e.refreshRowByNode(n?.pinnedSibling),e.refreshRowByNode(i?.sibling)},o3=class extends X{constructor(){super(...arguments),this.beanName="expressionSvc",this.cache={}}evaluate(e,t){if(typeof e=="string")return this.evaluateExpression(e,t);gt(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(n){return gt(16,{expression:e,params:t,e:n}),null}}createExpressionFunction(e){const t=this.cache;if(t[e])return t[e];const n=this.createFunctionBody(e),i=new Function("x, ctx, oldValue, newValue, value, node, data, colDef, rowIndex, api, getValue, column, columnGroup",n);return t[e]=i,i}createFunctionBody(e){return e.includes("return")?e:"return "+e+";"}},r3=class extends X{constructor(){super(...arguments),this.beanName="valueCache",this.cacheVersion=0}postConstruct(){const e=this.gos;this.active=e.get("valueCache"),this.neverExpires=e.get("valueCacheNeverExpires")}onDataChanged(){this.neverExpires||this.expire()}expire(){this.cacheVersion++}setValue(e,t,n){if(this.active){const i=this.cacheVersion;e.__cacheVersion!==i&&(e.__cacheVersion=i,e.__cacheData={}),e.__cacheData[t]=n}}getValue(e,t){if(!(!this.active||e.__cacheVersion!==this.cacheVersion))return e.__cacheData[t]}},s3={moduleName:"ValueCache",version:me,beans:[r3],apiFunctions:{expireValueCache:e3}},a3={moduleName:"Expression",version:me,beans:[o3]},l3={moduleName:"ChangeDetection",version:me,beans:[i3]},c3={moduleName:"CellApi",version:me,apiFunctions:{getCellValue:t3}},u3=class extends X{constructor(){super(...arguments),this.beanName="valueSvc",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.formulaDataSvc=e.formulaDataSvc,this.rowGroupColsSvc=e.rowGroupColsSvc}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=Cc(e),this.cellExpressions=e.get("enableCellExpressions"),this.isTreeData=e.get("treeData"),this.initialised=!0;const n=i=>this.callColumnCellValueChangedHandler(i);this.eventSvc.addListener("cellValueChanged",n,!0),this.addDestroyFunc(()=>this.eventSvc.removeListener("cellValueChanged",n,!0)),this.addManagedPropertyListener("treeData",i=>this.isTreeData=i.currentValue)}getValueForDisplay(e){const t=this.beans,n=e.column,i=e.node,o=t.showRowGroupColValueSvc,r=!n&&i.group,s=n?.colDef.showRowGroup,a=!this.isTreeData||i.footer;if(o&&a&&(r||s)){const p=o.getGroupValue(i,n,this.displayIgnoresAggData(i));return p==null?{value:null,valueFormatted:null}:{value:p.value,valueFormatted:e.includeValueFormatted?o.formatAndPrefixGroupColValue(p,n,e.exporting):null}}if(!n)return{value:i.key,valueFormatted:null};let l=this.getValue(n,i,e.from,this.displayIgnoresAggData(i)),u=l;const h=t.formula;n.isAllowFormula()&&h?.isFormula(l)&&(e.useRawFormula?(l=h.normaliseFormula(l,!0),u=h.resolveValue(n,i)):(l=h.resolveValue(n,i),u=l));const f=e.includeValueFormatted&&!(e.exporting&&n.colDef.useValueFormatterForExport===!1);return{value:l,valueFormatted:f?this.formatValue(n,i,u):null}}getValue(e,t,n,i=!1){if(this.initialised||this.init(),!t)return;const o=e.colDef,r=t.group;if(!r){const l=o.pivotValueColumn;l&&(e=l)}const s=this.editSvc?.getPendingEditValue(t,e,n);if(s!==void 0)return s;let a=this.resolveValue(e,t,i,r);if(a===void 0){if(r){const l=o.showRowGroup;if(typeof l=="string"){const u=this.rowGroupColsSvc?.getColumnIndex(l);if(u!=null&&u>t.level)return null}}return}if(this.cellExpressions&&xS(a)){const l=a.substring(1);a=this.executeValueGetter(l,t.data,e,t)}return a}displayIgnoresAggData(e){return!e.group||e.footer||e.level===-1||!e.sibling||this.gos.get("groupSuppressBlankHeader")||e.leafGroup&&this.colModel.isPivotMode()?!1:!!e.expanded}resolveValue(e,t,n,i){const o=e.colDef,r=e.colId,s=!i&&this.formulaDataSvc;if(s&&s.hasDataSource()&&o.allowFormula===!0){const R=s.getFormula({column:e,rowNode:t});if(xS(R))return R}const a=i&&!n?t.aggData:void 0,l=this.isTreeData;if(l&&a?.[r]!==void 0)return a[r];const u=t.data,h=o.field,f=o.valueGetter;if(l){if(f)return this.executeValueGetter(f,u,e,t);if(h&&u)return Ic(u,h,e.isFieldContainsDots())}const p=t.groupData;if(p&&r in p)return p[r];if(a?.[r]!==void 0)return a[r];const m=o.showRowGroup,v=typeof m!="string"||!i,w=this.isSsrm,b=w&&n&&!!o.aggFunc;if(f&&!b)return v?this.executeValueGetter(f,u,e,t):void 0;if(w&&t.footer&&t.field&&(m===!0||m===t.field))return Ic(u,t.field,e.isFieldContainsDots());if(h&&u&&!b)return v?Ic(u,h,e.isFieldContainsDots()):void 0}parseValue(e,t,n,i){const o=e.getColDef();if(o.allowFormula&&this.beans.formula?.isFormula(n))return n;const r=o.valueParser;if(Ce(r)){const s=We(this.gos,{node:t,data:t?.data,oldValue:i,newValue:n,colDef:o,column:e});return typeof r=="function"?r(s):this.expressionSvc?.evaluate(r,s)}return n}getDeleteValue(e,t){return Ce(e.getColDef().valueParser)?this.parseValue(e,t,"",this.getValueForDisplay({column:e,node:t,from:"edit"}).value)??null:null}formatValue(e,t,n,i,o=!0){const{expressionSvc:r}=this.beans;let s=null,a;const l=e.getColDef();if(i?a=i:o&&(a=l.valueFormatter),a){const u=t?t.data:null,h=We(this.gos,{value:n,node:t,data:u,colDef:l,column:e});typeof a=="function"?s=a(h):s=r?r.evaluate(a,h):null}else if(l.refData)return l.refData[n]||"";return s==null&&Array.isArray(n)&&(s=n.join(", ")),s}setValue(e,t,n,i){const o=t.getColDef();if(!e.data&&this.canCreateRowNodeData(e,o)&&(e.data={}),!this.isSetValueSupported(t,e,n,o))return!1;const r=this.getValue(t,e,"data"),s=We(this.gos,{node:e,data:e.data,oldValue:r,newValue:n,colDef:o,column:t});let a=!1;if(e.data){const u=this.handleExternalFormulaChange({column:t,eventSource:i,newValue:n,setterParams:s,rowNode:e});if(u!==null)return u;a=this.computeValueChange({column:t,rowNode:e,newValue:n,params:s,rowData:e.data,valueSetter:o.valueSetter,field:o.field})??!0}const l=this.beans.changeDetectionSvc;l?.beginDeferred();try{if(e.group){const u=this.beans.rowGroupingEditValueSvc?.setGroupDataValue(e,t,n,r,i,a||n!==r);if(u!==void 0)return!a&&!u?!1:this.finishValueChange(e,t,s,i,n)}return a?this.finishValueChange(e,t,s,i):!1}finally{l?.endDeferred()}}canCreateRowNodeData(e,t){return e.group?!(t.groupRowValueSetter!=null||t.groupRowEditable!=null||t.pivotValueColumn):!0}finishValueChange(e,t,n,i,o){e.resetQuickFilterAggregateText(),this.valueCache?.onDataChanged();const r=o===void 0?this.getValue(t,e,"data"):o;return this.dispatchCellValueChangedEvent(e,n,r,i),e.pinnedSibling&&this.dispatchCellValueChangedEvent(e.pinnedSibling,n,r,i),!0}isSetValueSupported(e,t,n,i){const{field:o,valueSetter:r}=i,s=this.beans.formula,a=e.isAllowFormula()&&s?.isFormula(n),l=!!this.formulaDataSvc?.hasDataSource();return Nt(o)&&Nt(r)&&!(l&&a)?t.group&&(i.groupRowValueSetter||i.groupRowEditable)?!0:(se(17),!1):this.dataTypeSvc&&!this.dataTypeSvc.checkType(e,n)?(se(135),!1):!0}handleExternalFormulaChange(e){const{column:t,rowNode:n,newValue:i,eventSource:o,setterParams:r}=e,s=this.beans.formula,a=this.formulaDataSvc;if(!a?.hasDataSource()||!t.isAllowFormula())return null;const l=s?.isFormula(i),u=a.getFormula({column:t,rowNode:n});if(l){if(!(u!==i))return!1;a.setFormula({column:t,rowNode:n,formula:i});const f=s?.resolveValue(t,n),p=t.getColDef();if(Ce(p.valueSetter)||!Nt(p.field)){const m={...r,newValue:f};this.computeValueChange({column:t,rowNode:n,newValue:f,params:m,rowData:n.data,valueSetter:p.valueSetter,field:p.field})}return this.finishValueChange(n,t,r,o)}return u!==void 0&&a.setFormula({column:t,rowNode:n,formula:void 0}),null}computeValueChange(e){const{valueSetter:t,params:n,rowData:i,field:o,column:r,newValue:s}=e;return Ce(t)?typeof t=="function"?t(n):this.expressionSvc?.evaluate(t,n):!!i&&this.setValueUsingField(i,o,s,r.isFieldContainsDots())}dispatchCellValueChangedEvent(e,t,n,i){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:n,newRawValue:t.newValue,value:n,source:i})}callColumnCellValueChangedHandler(e){const t=e.colDef.onCellValueChanged;typeof t=="function"&&this.beans.frameworkOverrides.wrapOutgoing(()=>{t(e)})}setValueUsingField(e,t,n,i){if(!t)return!1;let o=!1;if(!i)o=e[t]===n,o||(e[t]=n);else{const r=t.split(".");let s=e;for(;r.length>0&&s;){const a=r.shift();r.length===0?(o=s[a]===n,o||(s[a]=n)):s=s[a]}}return!o}executeValueGetterWithValueCache(e,t,n,i){const o=n.getColId(),r=this.valueCache.getValue(i,o);if(r!==void 0)return r;const s=this.executeValueGetterWithoutValueCache(e,t,n,i);return this.valueCache.setValue(i,o,s),s}executeValueGetterWithoutValueCache(e,t,n,i){const o=We(this.gos,{data:t,node:i,column:n,colDef:n.getColDef(),getValue:s=>this.getValueCallback(i,s)});let r;return typeof e=="function"?r=e(o):r=this.expressionSvc?.evaluate(e,o),r}getValueCallback(e,t){const n=this.colModel.getColDefCol(t);return n?this.getValue(n,e,"data"):null}getKeyForNode(e,t){const n=this.getValue(e,t,"data"),i=e.getColDef().keyCreator;let o=n;if(i){const r=We(this.gos,{value:n,colDef:e.getColDef(),column:e,node:t,data:t.data});o=i(r)}return typeof o=="string"||o==null||(o=String(o),o==="[object Object]"&&se(121)),o}},d3={moduleName:"CommunityCore",version:me,beans:[qV,BN,SH,tO,zW,pG,WV,h5,yG,fW,hW,$W,u3,jV,HV,KV,FH,JW,gH,mH,F5],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:GN,destroy:HN,isDestroyed:VN,getGridOption:WN,setGridOption:zN,updateGridOptions:AR,isModuleRegistered:UN},dependsOn:[fH,UB,JB,zF,b5,mG,y5,WW,l3,R5,dW,vW,bW,E5,wH,pH,a3,IG,RW]};function Jm(e){const{inputValue:t,allSuggestions:n,hideIrrelevant:i,filterByPercentageOfBestMatch:o}=e;let r=(n??[]).map((l,u)=>({value:l,relevance:h3(t,l),idx:u}));if(r.sort((l,u)=>l.relevance-u.relevance),i&&(r=r.filter(l=>l.relevance<Math.max(l.value.length,t.length))),r.length>0&&o&&o>0){const u=r[0].relevance*o;r=r.filter(h=>u-h.relevance<0)}const s=[],a=[];for(const l of r)s.push(l.value),a.push(l.idx);return{values:s,indices:a}}function h3(e,t){const n=e.length,i=t.length;if(i===0)return n||0;let o=e.toLocaleLowerCase(),r=t.toLocaleLowerCase(),s;e.length<t.length&&(s=r,r=o,o=s,s=t,t=e,e=s);let a=new Uint16Array(i+1),l=new Uint16Array(i+1);for(let f=0;f<=i;f++)a[f]=f;let u=0;const h=n/2-10;for(let f=1;f<=n;f++){const p=e[f-1],m=o[f-1];l[0]=f;for(let v=1;v<=i;v++){const w=t[v-1],b=r[v-1];if(m!==b){const y=l[v-1],R=a[v],S=a[v-1];let x=y<R?y:R;S<x&&(x=S),l[v]=x+1|0;continue}if(u++,p===w&&u++,f>1&&v>1){const y=e[f-2],R=o[f-2],S=t[v-2],x=r[v-2];R===x&&(u++,y===S&&u++)}f<h&&u++,l[v]=a[v-1]}s=a,a=l,l=s}return a[i]/(u+1)}var $F={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,RowGroupingEdit:1,RowGroupingPanel:1,ServerSideRowModelApi:1,ServerSideRowModel:1,SetFilter:1,SideBar:1,Sparklines:1,StatusBar:1,TreeData:1,ViewportRowModel:1,Formula:1},ev=["TextFilter","NumberFilter","BigIntFilter","DateFilter","SetFilter","MultiFilter","GroupFilter","CustomFilter"],f3={EditCore:["TextEditor","NumberEditor","DateEditor","CheckboxEditor","LargeTextEditor","SelectEditor","RichSelect","CustomEditor"],CheckboxCellRenderer:["AllCommunity"],ClientSideRowModelHierarchy:["RowGrouping","Pivot","TreeData"],ColumnFilter:ev,ColumnGroupHeaderComp:["AllCommunity"],ColumnGroup:["AllCommunity"],ColumnHeaderComp:["AllCommunity"],ColumnMove:["AllCommunity"],ColumnResize:["AllCommunity"],CommunityCore:["AllCommunity"],CsrmSsrmSharedApi:["ClientSideRowModelApi","ServerSideRowModelApi"],RowModelSharedApi:["ClientSideRowModelApi","ServerSideRowModelApi"],EnterpriseCore:["AllEnterprise"],FilterCore:[...ev,"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:[...ev,"ColumnMenu","ContextMenu"],SharedPivot:["Pivot","ServerSideRowModel"],SharedRowGrouping:["RowGrouping","ServerSideRowModel"],SharedRowSelection:["RowSelection","ServerSideRowModel"],SkeletonCellRenderer:["ServerSideRowModel"],Sort:["AllCommunity"],SsrmInfiniteSharedApi:["InfiniteRowModel","ServerSideRowModelApi"],SharedTreeData:["TreeData","ServerSideRowModel"]},p3={InfiniteRowModel:"infinite",ClientSideRowModelApi:"clientSide",ClientSideRowModel:"clientSide",ServerSideRowModelApi:"serverSide",ServerSideRowModel:"serverSide",ViewportRowModel:"viewport"};function g3(e,t){const n=[];for(const i of Array.isArray(e)?e:[e]){const o=f3[i];if(o)for(const r of o){const s=p3[r];(!s||s===t)&&n.push(r)}else n.push(i)}return n}var jF=()=>`No AG Grid modules are registered! It is recommended to start with all Community features via the AllCommunityModule:
24
+
25
+ import { ModuleRegistry, AllCommunityModule } from 'ag-grid-community';
26
+
27
+ ModuleRegistry.registerModules([ AllCommunityModule ]);
28
+ `,m3=e=>{const t=e.map(i=>`import { ${Oc(i)} } from '${$F[i]?"ag-grid-enterprise":"ag-grid-community"}';`);return e.some(i=>i==="IntegratedCharts"||i==="Sparklines")&&t.push("import { AgChartsEnterpriseModule } from 'ag-charts-enterprise';"),`import { ModuleRegistry } from 'ag-grid-community';
29
+ ${t.join(`
30
+ `)}
31
+
32
+ ModuleRegistry.registerModules([ ${e.map(i=>Oc(i,!0)).join(", ")} ]);
33
+
34
+ For more info see: ${Ha}/modules/`};function Oc(e,t=!1){return t&&(e==="IntegratedCharts"||e==="Sparklines")?`${e}Module.with(AgChartsEnterpriseModule)`:`${e}Module`}function v3(e,t){const n=t.filter(r=>r==="IntegratedCharts"||r==="Sparklines");let i="";return!globalThis?.agCharts&&n.length>0?i=`Unable to use ${e} as either the ag-charts-community or ag-charts-enterprise script needs to be included alongside ag-grid-enterprise.
35
+ `:t.some(r=>$F[r])&&(i=i+`Unable to use ${e} as that requires the ag-grid-enterprise script to be included.
36
+ `),i}function KF({moduleName:e,rowModelType:t}){return`To use the ${e}Module you must set the gridOption "rowModelType='${t}'"`}var qF=({reasonOrId:e,moduleName:t,gridScoped:n,gridId:i,rowModelType:o,additionalText:r,isUmd:s})=>{const a=g3(t,o),l=typeof e=="string"?e:y3[e];if(s)return v3(l,a);const u=a.filter(p=>p==="IntegratedCharts"||p==="Sparklines"),h=u.length>0?`${u.map(p=>Oc(p)).join()} must be initialised with an AG Charts module. One of 'AgChartsCommunityModule' / 'AgChartsEnterpriseModule'.`:"";return`${`Unable to use ${l} as ${a.length>1?"one of "+a.map(p=>Oc(p)).join(", "):Oc(a[0])} is not registered${n?" for gridId: "+i:""}. ${h} Check if you have registered the module:
37
+ `}
38
+ ${m3(a)}`+(r?`
39
+
40
+ ${r}`:"")},QF=e=>`${e} must be initialised with an AG Charts module. One of 'AgChartsCommunityModule' / 'AgChartsEnterpriseModule'.
41
+
42
+ import { AgChartsEnterpriseModule } from 'ag-charts-enterprise';
43
+ import { ModuleRegistry } from 'ag-grid-community';
44
+ import { ${e} } from 'ag-grid-enterprise';
45
+
46
+ ModuleRegistry.registerModules([${e}.with(AgChartsEnterpriseModule)]);
47
+ `,C3=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.`,w3={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:n})=>["Processing of the expression failed","Expression = ",e,"Params = ",t,"Exception = ",n],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:
48
+ "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.
49
+ Either clear local references to the grid api, when it is destroyed, or check gridApi.isDestroyed() to avoid calling methods against a destroyed grid.
50
+ 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}
51
+ ${C3(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,inferred:t,colId:n})=>{const i=t?" (inferred)":"",o=n?` for column "${n}"`:"";return`Cell data type is "object"${i} but no Value ${e} has been provided${o}. Please either provide an object data type definition with a Value ${e}, or set:
52
+ - "colDef.value${e}"${t&&e==="Parser"?`
53
+ - "colDef.cellDataType = 'object'"`:""}`},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:n,pageSizeOptions:i})=>`'paginationPageSize=${e}'${t?"":" (default value)"}, but ${e} is not included in${n?"":" the default"} paginationPageSizeSelector=[${i?.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:n,jsComps:i})=>{const o=[],r=[...Object.keys(n??[]).filter(a=>!["agCellEditor","agGroupRowRenderer","agSortIndicator"].includes(a)),...Object.keys(i??[]).filter(a=>!!i[a])],s=Jm({inputValue:t,allSuggestions:r,hideIrrelevant:!0,filterByPercentageOfBestMatch:.8}).values;return o.push(`Could not find '${t}' component. It was configured as "${e}: '${t}'" but it wasn't found in the list of registered components.
54
+ `),s.length>0&&o.push(` Did you mean: [${s.slice(0,3)}]?
55
+ `),o.push("If using a custom component check it has been registered correctly."),o},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: ${Ha}/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 n=Jm({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.`,n.length>0?` Did you mean: [${n.slice(0,3)}]?`:"","If using a custom aggregation function check it has been registered correctly."].join(`
56
+ `)},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.
57
+ 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:n})=>["duplicate group keys for row data, keys should be unique",e,t,...n??[]],187:({rowId:e,firstData:t,secondData:n})=>[`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",n],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:qF,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 ${Ha}/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.
58
+ 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.
59
+ Your code probably called a grid API method while the grid was in the render stage.
60
+ To overcome this, put the API call into a timeout, e.g. instead of api.redrawRows(), call setTimeout(function() { api.redrawRows(); }, 0).
61
+ 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:()=>QF("IntegratedChartsModule"),258:()=>QF("SparklinesModule"),259:({part:e})=>`the argument to theme.withPart must be a Theming API part object, received: ${e}`,260:({propName:e,compName:t,gridScoped:n,gridId:i,rowModelType:o})=>qF({reasonOrId:`AG Grid '${e}' component: ${t}`,moduleName:tl[t],gridId:i,gridScoped:n,rowModelType:o}),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 ${Ha}/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:()=>jF(),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:KF,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.',298:()=>"Columns Tool Panel 'buttons' requires 'apply' to enable Deferred Updates."};function b3(e,t){const n=w3[e];if(!n)return[`Missing error text for error id ${e}!`];const i=n(t),r=`
62
+ See ${o0(e,t)}`;return Array.isArray(i)?i.concat(r):[i,r]}var y3={1:"Charting Aggregation",2:"pivotResultFields",3:"setTooltip"},YF=class{constructor(e="javascript"){this.frameworkName=e,this.renderingEngine="vanilla",this.batchFrameworkComps=!1,this.wrapIncoming=t=>t(),this.wrapOutgoing=t=>t(),this.baseDocLink=`${KS}/${this.frameworkName}-data-grid`,t_(this.baseDocLink)}frameworkComponent(e){return null}isFrameworkComponent(e){return!1}getDocLink(e){return this.baseDocLink+(e?"/"+e:"")}},ZF=new WeakMap,XF=new WeakMap;function S3(e,t,n){if(!t)return gt(11),{};const i=n;let o;if(!i?.setThemeOnGridDiv){const s=rn({tag:"div"});s.style.height="100%",e.appendChild(s),e=s,o=()=>e.remove()}return new F3().create(e,t,s=>{const a=new ON(e);s.createBean(a)},void 0,n,o)}var R3=1,F3=class{create(e,t,n,i,o,r){const s=Rg.applyGlobalGridOptions(t),a=s.gridId??String(R3++),l=this.getRegisteredModules(o,a,s.rowModelType),u=this.createBeansList(s.rowModelType,l,a),h=this.createProvidedBeans(e,s,o);if(!u)return;const p={providedBeanInstances:h,beanClasses:u,id:a,beanInitComparator:a2,beanDestroyComparator:l2,derivedBeans:[r2],destroyCallback:()=>{XF.delete(v),ZF.delete(e),QL(a),r?.()}},m=new o2(p);this.registerModuleFeatures(m,l),n(m),m.getBean("syncSvc").start(),i?.(m);const v=m.getBean("gridApi");return ZF.set(e,v),XF.set(v,e),v}getRegisteredModules(e,t,n){return Ga(d3,void 0,!0),e?.modules?.forEach(i=>Ga(i,t)),YL(t,JF(n))}registerModuleFeatures(e,t){const n=e.getBean("registry"),i=e.getBean("apiFunctionSvc");for(const o of t){n.registerModule(o);const r=o.apiFunctions;if(r){const s=Object.keys(r);for(const a of s)i?.addFunction(a,r[a])}}}createProvidedBeans(e,t,n){let i=n?n.frameworkOverrides:null;Nt(i)&&(i=new YF);const o={gridOptions:t,eGridDiv:e,eRootDiv:e,globalListener:n?n.globalListener:null,globalSyncListener:n?n.globalSyncListener:null,frameworkOverrides:i,withinStudio:n?.withinStudio};return n?.providedBeanInstances&&Object.assign(o,n.providedBeanInstances),o}createBeansList(e,t,n){const i={clientSide:"ClientSideRowModel",infinite:"InfiniteRowModel",serverSide:"ServerSideRowModel",viewport:"ViewportRowModel"},o=JF(e),r=i[o];if(!r){vc(201,{rowModelType:o},`Unknown rowModelType ${o}.`);return}if(!XL()){vc(272,void 0,jF());return}if(!e){const a=Object.entries(i).filter(([l,u])=>Fg(u,n,l));if(a.length==1){const[l,u]=a[0];if(l!==o){const h={moduleName:u,rowModelType:l};vc(275,h,KF(h));return}}}if(!Fg(r,n,o)){const a=XS(),l=`rowModelType = '${o}'`,u=`Missing module ${r}Module for rowModelType ${o}.`;vc(200,{reasonOrId:l,moduleName:r,gridScoped:xg(),gridId:n,rowModelType:o,isUmd:a},u);return}const s=new Set;for(const a of t)for(const l of a.beans??[])s.add(l);return Array.from(s)}};function JF(e){return e??"clientSide"}function x3(e,t=!1){const n=[],i=[],o=[],r=[],s=[],a=[],l=[],u=[],h=[];let f=0;for(let p=0;p<e.length;p++){const{colId:m,sort:v,sortType:w,sortIndex:b,rowGroup:y,rowGroupIndex:R,aggFunc:S,pivot:x,pivotIndex:P,pinned:D,hide:A,width:N,flex:B}=e[p];h.push(m),v&&(n[b??f++]={colId:m,sort:v,type:w}),y&&(i[R??0]=m),typeof S=="string"&&o.push({colId:m,aggFunc:S}),x&&(r[P??0]=m),D&&(D==="right"?a:s).push(m),A&&l.push(m),(B!=null||N)&&u.push({colId:m,flex:B??void 0,width:N===null?void 0:N})}return{sort:n.length?{sortModel:tv(n)}:void 0,rowGroup:i.length?{groupColIds:tv(i)}:void 0,aggregation:o.length?{aggregationModel:o}:void 0,pivot:r.length||t?{pivotMode:t,pivotColIds:tv(r)}:void 0,columnPinning:s.length||a.length?{leftColIds:s,rightColIds:a}:void 0,columnVisibility:l.length?{hiddenColIds:l}:void 0,columnSizing:u.length?{columnSizingModel:u}:void 0,columnOrder:h.length?{orderedColIds:h}:void 0}}function tv(e){return e.filter(t=>t!=null)}function P3(e){const t=[];for(const{groupId:n,open:i}of e)i&&t.push(n);return t.length?{openColumnGroupIds:t}:void 0}var E3=class extends X{constructor(){super(...arguments),this.beanName="alignedGridsSvc",this.consuming=!1}getAlignedGridApis(){let e=this.gos.get("alignedGrids")??[];const t=typeof e=="function";return typeof e=="function"&&(e=e()),e.map(i=>{if(!i){gt(18),t||gt(20);return}if(this.isGridApi(i))return i;const o=i;return"current"in o?o.current?.api:(o.api||gt(19),o.api)}).filter(i=>!!i&&!i.isDestroyed())}isGridApi(e){return!!e&&!!e.dispatchEvent}postConstruct(){const e=this.fireColumnEvent.bind(this);this.addManagedEventListeners({columnMoved:e,columnVisible:e,columnPinned:e,columnGroupOpened:e,columnResized:e,bodyScroll:this.fireScrollEvent.bind(this),alignedGridColumn:({event:t})=>this.onColumnEvent(t),alignedGridScroll:({event:t})=>this.onScrollEvent(t)})}fireEvent(e){if(!this.consuming)for(const t of this.getAlignedGridApis())t.isDestroyed()||t.dispatchEvent(e)}onEvent(e){this.consuming=!0,e(),this.consuming=!1}fireColumnEvent(e){this.fireEvent({type:"alignedGridColumn",event:e})}fireScrollEvent(e){e.direction==="horizontal"&&this.fireEvent({type:"alignedGridScroll",event:e})}onScrollEvent(e){this.onEvent(()=>{this.beans.ctrlsSvc.getScrollFeature().setHorizontalScrollPosition(e.left,!0)})}extractDataFromEvent(e,t){const n=[];return e.columns?e.columns.forEach(i=>{n.push(t(i))}):e.column&&n.push(t(e.column)),n}getMasterColumns(e){return this.extractDataFromEvent(e,t=>t)}getColumnIds(e){return this.extractDataFromEvent(e,t=>t.getColId())}onColumnEvent(e){this.onEvent(()=>{switch(e.type){case"columnMoved":case"columnVisible":case"columnPinned":case"columnResized":{this.processColumnEvent(e);break}case"columnGroupOpened":{this.processGroupOpenedEvent(e);break}case"columnPivotChanged":se(21);break}})}processGroupOpenedEvent(e){const{colGroupSvc:t}=this.beans;if(t)for(const n of e.columnGroups){let i=null;n&&(i=t.getProvidedColGroup(n.getGroupId())),!(n&&!i)&&t.setColumnGroupOpened(i,n.isExpanded(),"alignedGridChanged")}}processColumnEvent(e){const t=e.column;let n=null;const i=this.beans,{colResize:o,ctrlsSvc:r,colModel:s}=i;if(t&&(n=s.getColDefCol(t.getColId())),t&&!n)return;const a=this.getMasterColumns(e);switch(e.type){case"columnMoved":{const f=e.api.getColumnState().map(p=>({colId:p.colId}));oo(i,{state:f,applyOrder:!0},"alignedGridChanged")}break;case"columnVisible":{const f=e.api.getColumnState().map(p=>({colId:p.colId,hide:p.hide}));oo(i,{state:f},"alignedGridChanged")}break;case"columnPinned":{const f=e.api.getColumnState().map(p=>({colId:p.colId,pinned:p.pinned}));oo(i,{state:f},"alignedGridChanged")}break;case"columnResized":{const h=e,f={};for(const p of a)f[p.getId()]={key:p.getColId(),newWidth:p.getActualWidth()};for(const p of h.flexColumns??[])f[p.getId()]&&delete f[p.getId()];o?.setColumnWidths(Object.values(f),!1,h.finished,"alignedGridChanged");break}}const u=r.getGridBodyCtrl().isVerticalScrollShowing();for(const h of this.getAlignedGridApis())h.setGridOption("alwaysShowVerticalScroll",u)}},D3={moduleName:"AlignedGrids",version:me,beans:[E3],dependsOn:[oF]};function T3(e,t={}){const n=t?t.rowNodes:void 0;e.frameworkOverrides.wrapIncoming(()=>e.rowRenderer.redrawRows(n))}function ex(e,t,n,i,o){t&&(i&&t.parent&&t.parent.level!==-1&&ex(e,t.parent,n,i,o),t.setExpanded(n,void 0,o))}function A3(e,t){return e.rowModel.getRowNode(t)}function I3(e,t,n,i){e.rowRenderer.addRenderedRowListener(t,n,i)}function M3(e){return e.rowRenderer.getRenderedNodes()}function k3(e,t,n){e.rowModel.forEachNode(t,n)}function L3(e){return e.rowRenderer.firstRenderedRow}function _3(e){return e.rowRenderer.lastRenderedRow}function O3(e,t){return e.rowModel.getRow(t)}function N3(e){return e.rowModel.getRowCount()}function B3(e){return e.ctrlsSvc.getScrollFeature().getVScrollPosition()}function G3(e){return e.ctrlsSvc.getScrollFeature().getHScrollPosition()}function tx(e,t,n="auto"){e.frameworkOverrides.wrapIncoming(()=>e.ctrlsSvc.getScrollFeature().ensureColumnVisible(t,n),"ensureVisible")}function nx(e,t,n){e.frameworkOverrides.wrapIncoming(()=>e.ctrlsSvc.getScrollFeature().ensureIndexVisible(t,n),"ensureVisible")}function H3(e,t,n=null){e.frameworkOverrides.wrapIncoming(()=>e.ctrlsSvc.getScrollFeature().ensureNodeVisible(t,n),"ensureVisible")}var ix={moduleName:"RowApi",version:me,apiFunctions:{redrawRows:T3,setRowNodeExpanded:ex,getRowNode:A3,addRenderedRowListener:I3,getRenderedNodes:M3,forEachNode:k3,getFirstDisplayedRowIndex:L3,getLastDisplayedRowIndex:_3,getDisplayedRowAtIndex:O3,getDisplayedRowCount:N3}},V3={moduleName:"ScrollApi",version:me,apiFunctions:{getVerticalPixelRange:B3,getHorizontalPixelRange:G3,ensureColumnVisible:tx,ensureIndexVisible:nx,ensureNodeVisible:H3}};function W3(e){e.expansionSvc?.expandAll(!0)}function z3(e){e.expansionSvc?.expandAll(!1)}function ox(e){e.rowModel?.onRowHeightChanged()}function rx(e){if(e.rowAutoHeight?.active){se(3);return}e.rowModel?.resetRowHeights()}function U3(e){e.expansionSvc?.resetExpansion()}function $3(e,t,n){const i=WO(e);if(i){if(e.rowGroupColsSvc?.columns.length===0){if(t<0){gt(238);return}i.setRowCount(t,n);return}gt(28);return}Yd(e)?.setRowCount(t,n)}function j3(e){return Cc(e.gos)?e.rowModel.getBlockStates():e.rowNodeBlockLoader?.getBlockState()??{}}function K3(e){return e.rowModel.isLastRowIndexKnown()}var q3={moduleName:"CsrmSsrmSharedApi",version:me,apiFunctions:{expandAll:W3,collapseAll:z3,resetRowGroupExpansion:U3}},Q3={moduleName:"RowModelSharedApi",version:me,apiFunctions:{onRowHeightChanged:ox,resetRowHeights:rx}},Y3={moduleName:"SsrmInfiniteSharedApi",version:me,apiFunctions:{setRowCount:$3,getCacheBlockState:j3,isLastRowIndexKnown:K3}},sx=(e,t)=>{for(let n=0,i=e.length;n<i;++n){const o=e[n],r=o.childrenAfterGroup;r!==null&&(sx(r,t),t(o))}},Qs=(e,t,n,i)=>{if(n!=null){const r=n.getSortedRows();for(let s=0,a=r.length;s<a;++s){const l=r[s];l.childrenAfterGroup!==null&&!l.destroyed&&i(l)}return}if(e==null)return;const o=e.childrenAfterGroup;o!==null&&(t&&sx(o,i),i(e))},Z3=class extends X{constructor(e){super(),this.rootNode=e,this.nextId=0,this.allNodesMap={},ax(e)}getRowNode(e){return this.allNodesMap[e]}setNewRowData(e){this.dispatchRowDataUpdateStarted(e),this.destroyAllNodes();const t=ax(this.rootNode),n=new Array(e.length);t._leafs=n;let i=0;const o=this.beans.groupStage?.getNestedDataGetter(),r=o?new Set:null,s=(a,l)=>{const u=a.level+1;for(let h=0,f=l.length;h<f;++h){const p=l[h];if(!p)continue;const m=this.createRowNode(p,u,i);if(n[i++]=m,r&&!r.has(p)){r.add(p),m.treeParent=a;const v=o(p);v&&s(m,v)}}};s(t,e),n.length=i}destroyAllNodes(){const{selectionSvc:e,pinnedRowModel:t,groupStage:n}=this.beans;e?.reset("rowDataChanged"),t?.isManual()&&t.reset(),n?.clearNonLeafs();const i=this.rootNode._leafs;if(i)for(let o=0,r=i.length;o<r;++o)i[o]._destroy(!1);this.allNodesMap=Object.create(null),this.nextId=0}setImmutableRowData(e,t){const{rootNode:n,gos:i}=this;this.dispatchRowDataUpdateStarted(t);const o=Wa(i),r=e.changedRowNodes,{adds:s,updates:a}=r,l=new Set,u=[],h=this.beans.groupStage?.getNestedDataGetter();let f=i.get("suppressMaintainUnsortedOrder")?void 0:!1,p=-1,m=!1;const v=(y,R)=>{if(!f&&f!==void 0){const S=y.sourceRowIndex;f=S<=p,p=S}y.data!==R&&(y.updateData(R),s.has(y)||a.add(y),!y.selectable&&y.isSelected()&&u.push(y))},w=(y,R,S)=>{for(let x=0,P=R.length;x<P;++x){const D=R[x];if(!D)continue;let A=this.getRowNode(o({data:D,level:S}));if(A?(v(A,D),m||(m=!!h&&A.treeParent!==y)):(A=this.createRowNode(D,S),s.add(A)),!h||l.has(A)){l.add(A);continue}l.add(A),A.treeParent=y;const N=h(D);N&&w(A,N,S+1)}};w(n,t,0);const b=this.deleteUnusedNodes(l,r,u,!!e.animate)||f||s.size>0;if(b){const y=n._leafs??(n._leafs=[]);f===void 0?nz(y,l,r):tz(y,l)&&(r.reordered=!0)}(b||m||a.size)&&(e.rowDataUpdated=!0,this.deselect(u))}deleteUnusedNodes(e,{removals:t},n,i){const o=this.rootNode._leafs;for(let r=0,s=o.length;r<s;r++){const a=o[r];e.has(a)||this.destroyNode(a,i)&&(t.push(a),a.isSelected()&&n.push(a))}return t.length>0}updateRowData(e,t,n){if(this.dispatchRowDataUpdateStarted(e.add),this.beans.groupStage?.getNestedDataGetter())return se(268),{remove:[],update:[],add:[]};const i=[],o=Wa(this.gos),r=this.executeRemove(o,e,t,i,n),s=this.executeUpdate(o,e,t,i),a=this.executeAdd(e,t);return this.deselect(i),{remove:r,update:s,add:a}}executeRemove(e,{remove:t},{adds:n,updates:i,removals:o},r,s){const a=this.rootNode._leafs,l=a?.length,u=t?.length;if(!u||!l)return[];let h=0,f=l,p=0;const m=new Array(u);for(let v=0;v<u;++v){const w=this.lookupNode(e,t[v]);if(!w)continue;const b=w.sourceRowIndex;b<f&&(f=b),b>p&&(p=b),m[h++]=w,this.destroyNode(w,s)&&(w.isSelected()&&r.push(w),n.delete(w)||(i.delete(w),o.push(w)))}return m.length=h,h&&ez(a,f,p),m}executeUpdate(e,{update:t},{adds:n,updates:i},o){const r=t?.length;if(!r)return[];const s=new Array(r);let a=0;for(let l=0;l<r;l++){const u=t[l],h=this.lookupNode(e,u);h&&(h.updateData(u),!h.selectable&&h.isSelected()&&o.push(h),s[a++]=h,n.has(h)||i.add(h))}return s.length=a,s}executeAdd(e,t){var n;const i=(n=this.rootNode)._leafs??(n._leafs=[]),o=i.length,r=e.add,s=r?.length;if(!s)return[];const a=o+s;let l=this.sanitizeAddIndex(i,e.addIndex);if(l<o){for(let f=o-1,p=a-1;f>=l;--f){const m=i[f];m.sourceRowIndex=p,i[p--]=m}t.reordered=!0}i.length=a;const u=new Array(s),h=t.adds;for(let f=0;f<s;f++){const p=this.createRowNode(r[f],0,l);h.add(p),i[l]=p,u[f]=p,l++}return u}dispatchRowDataUpdateStarted(e){this.eventSvc.dispatchEvent({type:"rowDataUpdateStarted",firstRowData:e?.length?e[0]:null})}deselect(e){const t="rowDataChanged",n=this.beans.selectionSvc;e.length&&n?.setNodesSelected({newValue:!1,nodes:e,suppressFinishActions:!0,source:t}),n?.updateGroupsFromChildrenSelections?.(t),e.length&&this.eventSvc.dispatchEvent({type:"selectionChanged",source:t,selectedNodes:n?.getSelectedNodes()??null,serverSideState:null})}createRowNode(e,t,n){const i=new Ur(this.beans);i.parent=this.rootNode,i.level=t,i.group=!1,n!=null&&(i.sourceRowIndex=n),i.setDataAndId(e,String(this.nextId++));const o=i.id,r=this.allNodesMap;return r[o]&&se(2,{nodeId:o}),r[o]=i,i}destroyNode(e,t){if(!e._destroy(t))return!1;const n=e.id,i=this.allNodesMap;return i[n]===e&&delete i[n],!0}lookupNode(e,t){if(!e)return J3(this.rootNode._leafs,t);const n=e({data:t,level:0}),i=this.allNodesMap[n];return i||(gt(4,{id:n}),null)}sanitizeAddIndex(e,t){const n=e.length;if(typeof t!="number"||t<0||t>=n||Number.isNaN(t))return n;t=Math.ceil(t);const i=this.gos;return t>0&&i.get("treeData")&&i.get("getDataPath")&&(t=X3(e,t)),t}},X3=(e,t)=>{for(let n=0,i=e.length;n<i;n++)if(e[n]?.rowIndex==t-1)return n+1;return t},ax=e=>{e.group=!0,e.level=-1,e._expanded=!0,e.id="ROOT_NODE_ID",e._leafs?.length!==0&&(e._leafs=[]);const t=[],n=[],i=[],o=[];e.childrenAfterGroup=t,e.childrenAfterSort=n,e.childrenAfterAggFilter=i,e.childrenAfterFilter=o;const r=e.sibling;return r&&(r.childrenAfterGroup=t,r.childrenAfterSort=n,r.childrenAfterAggFilter=i,r.childrenAfterFilter=o,r.childrenMapped=e.childrenMapped),e.updateHasChildren(),e},J3=(e,t)=>{if(e)for(let n=0,i=e.length;n<i;n++){const o=e[n];if(o.data===t)return o}return gt(5,{data:t}),null},ez=(e,t,n)=>{t=Math.max(0,t);for(let i=t,o=e.length;i<o;++i){const r=e[i];i<=n&&r.destroyed||(r.sourceRowIndex=t,e[t++]=r)}e.length=t},tz=(e,t)=>{const n=t.size;e.length=n;let i=0,o=!1,r=!1;for(const s of t){const a=s.sourceRowIndex;a===i?r||(r=o):(a>=0?r=!0:o=!0,s.sourceRowIndex=i,e[i]=s),++i}return r},nz=(e,t,{adds:n})=>{const i=e.length,o=t.size;o>i&&(e.length=o);let r=0;for(let s=0;s<i;++s){const a=e[s];a.destroyed||(r!==s&&(a.sourceRowIndex=r,e[r]=a),++r)}for(const s of n)s.sourceRowIndex<0&&(s.sourceRowIndex=r,e[r++]=s);e.length=r};function nv(e){const t=e.sibling;t&&(t.childrenAfterFilter=e.childrenAfterFilter)}var iz=class extends X{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 n=(i,o)=>{i.hasChildren()&&e&&!o?i.childrenAfterFilter=i.childrenAfterGroup.filter(r=>{const s=r.childrenAfterFilter&&r.childrenAfterFilter.length>0,a=r.data&&this.filterManager.doesRowPassFilter({rowNode:r});return s||a}):i.childrenAfterFilter=i.childrenAfterGroup,nv(i)};if(this.doingTreeDataFiltering()){const i=(o,r)=>{if(o.childrenAfterGroup)for(let s=0;s<o.childrenAfterGroup.length;s++){const a=o.childrenAfterGroup[s],l=r||this.filterManager.doesRowPassFilter({rowNode:a});a.childrenAfterGroup?i(o.childrenAfterGroup[s],l):n(a,l)}n(o,r)};i(this.beans.rowModel.rootNode,!1)}else{const i=o=>n(o,!1);Qs(this.beans.rowModel.rootNode,this.beans.rowModel.hierarchical,t,i)}}softFilter(e,t){const n=o=>{if(o.childrenAfterFilter=o.childrenAfterGroup,o.hasChildren())for(const r of o.childrenAfterGroup)r.softFiltered=e&&!(r.data&&this.filterManager.doesRowPassFilter({rowNode:r}));nv(o)},i=this.beans.rowModel;Qs(i.rootNode,i.hierarchical,t,n)}doingTreeDataFiltering(){const{gos:e}=this;return!!this.beans.groupStage?.treeData&&!e.get("excludeChildrenWhenTreeDataFiltering")}},oz=4,rz=(e,t,n,i,o)=>{const r=t.childrenAfterSort,s=t.childrenAfterAggFilter;if(!s)return r&&r.length>0?r:[];const a=s.length;if(a<=1)return r?.length===a&&(a===0||r[0]===s[0])?r:s.slice();if(!r||a<=oz)return e.doFullSortInPlace(s.slice(),o);const l=new Map,{updates:u,adds:h}=n,f=[];for(let m=0;m<a;++m){const v=s[m];u.has(v)||h.has(v)||i?.hasRow(v)?(l.set(v,~m),f.push(v)):l.set(v,m)}const p=f.length;return p===0?a===r.length?r:az(r,l,f):(f.sort((m,v)=>e.compareRowNodes(o,m,v)||~l.get(m)-~l.get(v)),p===a?f:sz(e,o,f,r,l,a))},sz=(e,t,n,i,o,r)=>{const s=new Array(r);let a=0,l=n[a],u,h=-1,f=0,p=0;const m=n.length,v=i.length;for(;;){if(h<0){if(f>=v)break;if(u=i[f++],h=o.get(u)??-1,h<0)continue}if((e.compareRowNodes(t,l,u)||~o.get(l)-h)<0){if(s[p++]=l,++a>=m)break;l=n[a]}else s[p++]=u,h=-1}for(;a<m;)s[p++]=n[a++];if(h<0)return s;for(s[p++]=u;f<v;){const w=i[f++];o.get(w)>=0&&(s[p++]=w)}return s},az=(e,t,n)=>{let i=0;n.length=t.size;for(let o=0,r=e.length;o<r;++o){const s=e[o];t.has(s)&&(n[i++]=s)}return n.length=i,n},lx=e=>{const t=e.childrenAfterSort,n=e.sibling;if(n&&(n.childrenAfterSort=t),!!t)for(let i=0,o=t.length-1;i<=o;i++){const r=t[i],s=i===0,a=i===o;r.firstChild!==s&&(r.firstChild=s,r.dispatchRowEvent("firstChildChanged")),r.lastChild!==a&&(r.lastChild=a,r.dispatchRowEvent("lastChildChanged")),r.childIndex!==i&&(r.childIndex=i,r.dispatchRowEvent("childIndexChanged"))}},lz=class extends X{constructor(){super(...arguments),this.beanName="sortStage",this.step="sort",this.refreshProps=["postSortRows","groupDisplayType","accentedSort"]}execute(e,t){const n=this.beans.sortSvc.getSortOptions(),i=n.length>0&&!!t&&this.gos.get("deltaSort"),{gos:o,colModel:r,rowGroupColsSvc:s,rowNodeSorter:a,rowRenderer:l,showRowGroupCols:u}=this.beans,h=o.get("groupMaintainOrder"),f=r.getCols().some(R=>R.isRowGroupActive()),p=s?.columns,m=r.isPivotMode(),v=o.getCallback("postSortRows");let w=!1,b;const y=R=>{const S=m&&R.leafGroup;let x=h&&f&&!R.leafGroup;x&&(b??(b=this.shouldSortContainsGroupCols(n)),x&&(x=!b));let P=null;if(x){let D=!1;if(p){const A=R.level+1;A<p.length&&(D=p[A].wasSortExplicitlyRemoved)}D||(P=cz(R))}else!n.length||S||(i&&t?P=rz(a,R,t,e,n):P=a.doFullSortInPlace(R.childrenAfterAggFilter.slice(),n));if(P||(P=R.childrenAfterAggFilter?.slice()??[]),w||(w=R.childrenAfterSort?.[0]!==P[0]),R.childrenAfterSort=P,lx(R),v){const D={nodes:R.childrenAfterSort};v(D)}};if(Qs(this.beans.rowModel.rootNode,this.beans.rowModel.hierarchical,e,y),w&&o.get("groupHideOpenParents")){const R=u?.columns;R?.length&&l.refreshCells({columns:R,force:!0})}}shouldSortContainsGroupCols(e){const t=e.length;if(!t)return!1;if(tr(this.gos)){for(let n=0;n<t;++n){const i=e[n].column;if(i.isPrimary()&&i.isRowGroupActive())return!0}return!1}for(let n=0;n<t;++n)if(e[n].column.getColDef().showRowGroup)return!0;return!1}},cz=e=>{const t=e.childrenAfterSort,n=e.childrenAfterAggFilter,i=t?.length,o=n?.length;if(!i||!o)return null;const r=new Array(o),s=new Set;for(let l=0;l<o;++l)s.add(n[l]);let a=0;for(let l=0;l<i;++l){const u=t[l];s.delete(u)&&(r[a++]=u)}if(s.size===0&&a===i)return t;for(const l of s)r[a++]=l;return r.length=a,r},uz=class extends X{constructor(){super(...arguments),this.beanName="rowModel",this.rootNode=null,this.rowCountReady=!1,this.hierarchical=!1,this.nodeManager=void 0,this.rowsToDisplay=[],this.formulaRows=[],this.stages=null,this.asyncTransactions=null,this.asyncTransactionsTimer=0,this.started=!1,this.refreshingData=!1,this.rowDataUpdatedPending=!1,this.refreshingModel=!1,this.pendingNewData=!1,this.noKeepRenderedRows=!1,this.noKeepUndoRedoStack=!1,this.noAnimate=!1,this.rowNodesCountReady=!1,this.stagesRefreshProps=new Map,this.onRowHeightChanged_debounced=un(this,this.onRowHeightChanged.bind(this),100)}postConstruct(){const e=this.beans,t=new Ur(e);this.rootNode=t,this.nodeManager=this.createBean(new Z3(t));const n=()=>{this.beans.groupStage?.invalidateGroupCols(),this.refreshModel({step:"group",afterColumnsChanged:!0,keepRenderedRows:!0,animate:!this.gos.get("suppressAnimationFrame")})};this.addManagedEventListeners({newColumnsLoaded:n,columnRowGroupChanged:n,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,n=[e.groupStage,e.filterStage,e.pivotStage,e.aggStage,e.sortStage,e.filterAggStage,e.flattenStage].filter(i=>!!i);this.stages=n;for(let i=n.length-1;i>=0;--i){const o=n[i];for(const r of o.refreshProps)t.set(r,i)}this.addManagedPropertyListeners([...t.keys(),"rowData"],i=>{const o=i.changeSet?.properties;o&&this.onPropChange(o)}),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,n,i){let o,r=!1;do{o=!1;const s=this.getRowIndexAtPixel(e),a=this.getRowIndexAtPixel(t),l=Math.max(s,n),u=Math.min(a,i);for(let h=l;h<=u;h++){const f=this.getRow(h);if(f.rowHeightEstimated){const p=Br(this.beans,f);f.setRowHeight(p.height),o=!0,r=!0}}o&&this.setRowTopAndRowIndex()}while(o);return r}onPropChange(e){const{nodeManager:t,gos:n,beans:i}=this,o=i.groupStage;if(!t)return;const r=new Set(e),s=o?.onPropChange(r);let a;r.has("rowData")?a=n.get("rowData"):s&&(a=o?.extractData()),a&&!Array.isArray(a)&&(a=null,se(1));const l={step:"nothing",changedProps:r};if(a){const h=!s&&!this.isEmpty()&&a.length>0&&n.exists("getRowId")&&!n.get("resetRowDataOnUpdate");this.refreshingData=!0,h?(l.keepRenderedRows=!0,l.animate=!n.get("suppressAnimationFrame"),l.changedRowNodes=new lh,t.setImmutableRowData(l,a)):(l.rowDataUpdated=!0,l.newData=!0,t.setNewRowData(a),this.rowNodesCountReady=!0)}const u=l.rowDataUpdated?"group":this.getRefreshedStage(e);u&&(l.step=u,this.refreshModel(l))}getRefreshedStage(e){const{stages:t,stagesRefreshProps:n}=this;if(!t)return null;const i=t.length;let o=i;for(let r=0,s=e.length;r<s&&o;++r)o=Math.min(o,n.get(e[r])??o);return o<i?t[o].step:null}setRowTopAndRowIndex(e){const{beans:t,rowsToDisplay:n}=this,i=t.environment.getDefaultRowHeight();let o=0;const r=bn(this.gos,"normal");for(let s=0,a=n.length;s<a;++s){const l=n[s],u=l.id;if(u!=null&&e?.add(u),l.rowHeight==null){const h=Br(t,l,r,i);l.setRowHeight(h.height,h.estimated)}l.setRowTop(o),l.setRowIndex(s),o+=l.rowHeight}if(this.beans.formula?.active){const s=this.formulaRows;for(let a=0,l=s.length;a<l;++a){const u=s[a];u.formulaRowIndex=a}}}clearRowTopAndRowIndex(e,t){const n=r=>{r?.id!=null&&!t.has(r.id)&&r.clearRowTopAndRowIndex()},i=r=>{n(r),n(r.detailNode),n(r.sibling);const s=r.childrenAfterGroup;if(!(!r.hasChildren()||!s)&&!(e&&r.level!==-1&&!r.expanded))for(let a=0,l=s.length;a<l;++a)i(s[a])},o=this.rootNode;o&&i(o)}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 i=e.sibling?.displayed?1:0;return(e.childrenAfterSort?.length??0)+i}getTopLevelRowDisplayedIndex(e){const{beans:t,rootNode:n,rowsToDisplay:i}=this;if(!n||!i.length||i[0]===n)return e;const r=n.childrenAfterSort,s=l=>{let u=r[l];if(this.gos.get("groupHideOpenParents"))for(;u.expanded&&u.childrenAfterSort&&u.childrenAfterSort.length>0;)u=u.childrenAfterSort[0];return u.rowIndex},a=t.footerSvc;return a?a?.getTopDisplayIndex(i,e,r,s):s(e)}getTopLevelIndexFromDisplayedIndex(e){const{rootNode:t,rowsToDisplay:n}=this;if(!t||!n.length||n[0]===t)return e;let o=this.getRow(e);o.footer&&(o=o.sibling);let r=o.parent;for(;r&&r!==t;)o=r,r=o.parent;const s=t.childrenAfterSort?.indexOf(o)??-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:Va(this.gos)})}onFilterChanged({afterDataChange:e,columns:t}){if(!e){const i=t.length===0||t.some(o=>o.isPrimary())?"filter":"filter_aggregates";this.refreshModel({step:i,keepRenderedRows:!0,animate:Va(this.gos)})}}onSortChanged(){this.refreshModel({step:"sort",keepRenderedRows:!0,animate:Va(this.gos)})}getType(){return"clientSide"}onValueChanged(){this.refreshModel({step:this.beans.colModel.isPivotActive()?"pivot":"aggregate"})}isSuppressModelUpdateAfterUpdateTransaction(e){if(!this.gos.get("suppressModelUpdateAfterUpdateTransaction"))return!1;const{changedRowNodes:t,newData:n,rowDataUpdated:i}=e;return!(!t||n||!i||t.removals.length||t.adds.size)}reMapRows(){if(this.refreshingModel||this.refreshingData){this.noKeepRenderedRows=!0,this.noKeepUndoRedoStack=!0,this.noAnimate=!0;return}this.refreshModel({step:"map",keepRenderedRows:!1,keepUndoRedoStack:!1,animate:!1})}refreshModel(e){const{nodeManager:t,eventSvc:n,started:i}=this;if(!t)return;const o=!!e.rowDataUpdated;if(i&&o&&n.dispatchEvent({type:"rowDataUpdated"}),this.deferRefresh(e)){this.setPendingRefreshFlags(e),this.rowDataUpdatedPending||(this.rowDataUpdatedPending=o);return}this.rowDataUpdatedPending&&(this.rowDataUpdatedPending=!1,e.step="group"),this.updateRefreshParams(e);let r=!1;this.refreshingModel=!0;try{this.executeRefresh(e,o),r=!0}finally{this.refreshingData=!1,this.refreshingModel=!1,r||this.setPendingRefreshFlags(e)}this.clearPendingRefreshFlags(),n.dispatchEvent({type:"modelUpdated",animate:e.animate,keepRenderedRows:e.keepRenderedRows,newData:e.newData,newPage:!1,keepUndoRedoStack:e.keepUndoRedoStack})}executeRefresh(e,t){const{beans:n,rootNode:i}=this;n.masterDetailSvc?.refreshModel(e),t&&e.step!=="group"&&n.colFilter?.refreshModel();let o=e.changedPath;switch(o?.addRow(i),e.step==="group"&&(this.doGrouping(i,e),o??(o=e.changedPath)),o??(o=n.changedPathFactory?.ensureRowsPath(e,i)),e.step){case"group":case"filter":this.doFilter(o);case"pivot":this.doPivot(o)&&(o=void 0,e.changedPath=void 0);case"aggregate":this.doAggregate(o);case"filter_aggregates":this.doFilterAggregates(o);case"sort":this.doSort(o,e.changedRowNodes);case"map":this.doRowsToDisplay()}const r=new Set;this.setRowTopAndRowIndex(r),this.clearRowTopAndRowIndex(o,r),this.updateRefreshParams(e)}deferRefresh(e){return this.refreshingModel||this.beans.colModel.changeEventsDispatching?!0:this.isSuppressModelUpdateAfterUpdateTransaction(e)?(this.started&&(this.refreshingData=!1),!0):!this.started}setPendingRefreshFlags(e){this.pendingNewData||(this.pendingNewData=!!e.newData),this.noKeepRenderedRows||(this.noKeepRenderedRows=!e.keepRenderedRows),this.noKeepUndoRedoStack||(this.noKeepUndoRedoStack=!e.keepUndoRedoStack),this.noAnimate||(this.noAnimate=!e.animate)}clearPendingRefreshFlags(){this.pendingNewData=!1,this.noKeepRenderedRows=!1,this.noKeepUndoRedoStack=!1,this.noAnimate=!1}updateRefreshParams(e){e.newData=this.pendingNewData||!!e.newData,e.keepRenderedRows=!this.noKeepRenderedRows&&!!e.keepRenderedRows,e.keepUndoRedoStack=!this.noKeepUndoRedoStack&&!!e.keepUndoRedoStack,e.animate=!this.noAnimate&&!!e.animate}isEmpty(){return!this.rootNode?._leafs?.length||!this.beans.colModel?.ready}isRowsToRender(){return this.rowsToDisplay.length>0}getOverlayType(){const{beans:e,gos:t}=this;if(this.rootNode?._leafs?.length){if(e.filterManager?.isAnyFilterPresent()&&this.getRowCount()===0)return"noMatchingRows"}else if(this.rowCountReady||(t.get("rowData")?.length??0)==0)return"noRows";return null}getNodesInRangeForSelection(e,t){let n=!1,i=!1;const o=[],r=bc(this.gos);return this.forEachNodeAfterFilterAndSort(s=>{if(i)return;if(n&&(s===t||s===e)&&(i=!0,r&&s.group)){cx(o,s);return}if(!n){if(s!==t&&s!==e)return;n=!0,t===e&&(i=!0)}(!s.group||!r)&&o.push(s)}),o}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,n=t.length;if(this.isEmpty()||n===0)return-1;let i=0,o=n-1;if(e<=0)return 0;if(t[o].rowTop<=e)return o;let s=-1,a=-1;for(;;){const l=Math.floor((i+o)/2),u=t[l];if(this.isRowInPixel(u,e)||(u.rowTop<e?i=l+1:u.rowTop>e&&(o=l-1),s===i&&a===o))return l;s=i,a=o}}isRowInPixel(e,t){const n=e.rowTop,i=n+e.rowHeight;return n<=t&&i>t}forEachLeafNode(e){const t=this.rootNode?._leafs;if(t)for(let n=0,i=t.length;n<i;++n)e(t[n],n)}forEachNode(e,t=!1){this.depthFirstSearchRowNodes(e,t)}forEachDisplayedNode(e){const t=this.rowsToDisplay;for(let n=0,i=t.length;n<i;++n)e(t[n],n)}forEachNodeAfterFilter(e,t=!1){this.depthFirstSearchRowNodes(e,t,n=>n.childrenAfterAggFilter)}forEachNodeAfterFilterAndSort(e,t=!1){this.depthFirstSearchRowNodes(e,t,n=>n.childrenAfterSort)}forEachPivotNode(e,t,n){const{colModel:i,rowGroupColsSvc:o}=this.beans;if(!i.isPivotMode())return;if(!o?.columns.length){e(this.rootNode,0);return}const r=n?"childrenAfterSort":"childrenAfterGroup";this.depthFirstSearchRowNodes(e,t,s=>s.leafGroup?null:s[r])}depthFirstSearchRowNodes(e,t=!1,n=r=>r.childrenAfterGroup,i=this.rootNode,o=0){let r=o;if(!i)return r;const s=i===this.rootNode;if(s||e(i,r++),i.hasChildren()&&!i.footer){const a=s||this.hierarchical?n(i):null;if(a){const l=this.beans.footerSvc;r=l?.addTotalRows(r,i,e,t,s,"top")??r;for(const u of a)r=this.depthFirstSearchRowNodes(e,t,n,u,r);return l?.addTotalRows(r,i,e,t,s,"bottom")??r}}return r}doAggregate(e){this.rootNode&&this.beans.aggStage?.execute(e)}doFilterAggregates(e){const t=this.rootNode,n=this.beans.filterAggStage;if(n&&this.hierarchical){n.execute(e);return}t.childrenAfterAggFilter=t.childrenAfterFilter;const i=t.sibling;i&&(i.childrenAfterAggFilter=t.childrenAfterFilter)}doSort(e,t){const n=this.beans.sortStage;if(n){n.execute(e,t);return}Qs(this.rootNode,this.hierarchical,e,i=>{i.childrenAfterSort=i.childrenAfterAggFilter.slice(0),lx(i)})}doGrouping(e,t){const i=this.beans.groupStage?.execute(t);if(i===void 0){const o=e._leafs;e.childrenAfterGroup=o,e.updateHasChildren();const r=e.sibling;r&&(r.childrenAfterGroup=o)}(i||t.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}Qs(this.rootNode,this.hierarchical,e,n=>{n.childrenAfterFilter=n.childrenAfterGroup,nv(n)})}doPivot(e){return this.beans.pivotStage?.execute(e)??!1}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 n=this.gos.get("asyncTransactionWaitMillis");this.asyncTransactionsTimer=setTimeout(()=>this.executeBatchUpdateRowData(),n)}this.asyncTransactions.push({rowDataTransaction:e,callback:t})}flushAsyncTransactions(){const e=this.asyncTransactionsTimer;e&&(clearTimeout(e),this.executeBatchUpdateRowData())}executeBatchUpdateRowData(){const{nodeManager:e,beans:t,eventSvc:n,asyncTransactions:i}=this;if(!e)return;t.valueCache?.onDataChanged();const o=[],r=[],s=new lh,a=!this.gos.get("suppressAnimationFrame");for(const{rowDataTransaction:l,callback:u}of i??[]){this.rowNodesCountReady=!0,this.refreshingData=!0;const h=e.updateRowData(l,s,a);o.push(h),u&&r.push(u.bind(null,h))}this.commitTransactions(s,a),r.length>0&&setTimeout(()=>{for(let l=0,u=r.length;l<u;l++)r[l]()},0),o.length>0&&n.dispatchEvent({type:"asyncTransactionsFlushed",results:o}),this.asyncTransactionsTimer=0,this.asyncTransactions=null}updateRowData(e){const t=this.nodeManager;if(!t)return null;this.beans.valueCache?.onDataChanged(),this.rowNodesCountReady=!0;const n=new lh,i=!this.gos.get("suppressAnimationFrame");this.refreshingData=!0;const o=t.updateRowData(e,n,i);return this.commitTransactions(n,i),o}commitTransactions(e,t){this.refreshModel({step:"group",rowDataUpdated:!0,keepRenderedRows:!0,animate:t,changedRowNodes:e})}doRowsToDisplay(){const{rootNode:e,beans:t}=this;if(t.formula?.active){const o=e?.childrenAfterSort??[];this.formulaRows=o,this.rowsToDisplay=o.filter(r=>!r.softFiltered);for(const r of this.rowsToDisplay)r.setUiLevel(0);return}const n=t.flattenStage;if(n){this.rowsToDisplay=n.execute();return}const i=this.rootNode.childrenAfterSort??[];for(const o of i)o.setUiLevel(0);this.rowsToDisplay=i}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 n=e.sibling;n?.setRowHeight(n.rowHeight,!0),t&&this.onRowHeightChanged()}resetRowHeightsForAllRowNodes(){let e=!1;return this.forEachNode(t=>{t.setRowHeight(t.rowHeight,!0);const n=t.detailNode;n?.setRowHeight(n.rowHeight,!0);const i=t.sibling;i?.setRowHeight(i.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()}},cx=(e,t)=>{const n=t.childrenAfterGroup;if(n)for(let i=0,o=n.length;i<o;++i){const r=n[i];r.data&&e.push(r),r.group&&cx(e,r)}};function dz(e){e.expansionSvc?.onGroupExpandedOrCollapsed()}function hz(e,t){const n=Po(e);n&&((!t||t==="everything")&&(t="group"),n.refreshModel({step:t,keepRenderedRows:!0,animate:!e.gos.get("suppressAnimationFrame")}))}function fz(e){return Po(e)?.isEmpty()??!0}function pz(e,t){Po(e)?.forEachLeafNode(t)}function gz(e,t){Po(e)?.forEachNodeAfterFilter(t)}function mz(e,t){Po(e)?.forEachNodeAfterFilterAndSort(t)}function vz(e,t){return e.frameworkOverrides.wrapIncoming(()=>Po(e)?.updateRowData(t))}function Cz(e,t,n){e.frameworkOverrides.wrapIncoming(()=>Po(e)?.batchUpdateRowData(t,n))}function wz(e){e.frameworkOverrides.wrapIncoming(()=>Po(e)?.flushAsyncTransactions())}function bz(e){return e.selectionSvc?.getBestCostNodeSelection()}var yz={moduleName:"ClientSideRowModel",version:me,rowModels:["clientSide"],beans:[uz,lz],dependsOn:[zF]},Sz={moduleName:"ClientSideRowModelApi",version:me,apiFunctions:{onGroupExpandedOrCollapsed:dz,refreshClientSideRowModel:hz,isRowDataEmpty:fz,forEachLeafNode:pz,forEachNodeAfterFilter:gz,forEachNodeAfterFilterAndSort:mz,applyTransaction:vz,applyTransactionAsync:Cz,flushAsyncTransactions:wz,getBestCostNodeSelection:bz,resetRowHeights:rx,onRowHeightChanged:ox},dependsOn:[q3,Q3]},Rz=":where(.ag-ltr) :where(.ag-animate-autosize){.ag-cell,.ag-header-cell,.ag-header-group-cell{transition:width .2s ease-in-out,left .2s ease-in-out}}:where(.ag-rtl) :where(.ag-animate-autosize){.ag-cell,.ag-header-cell,.ag-header-group-cell{transition:width .2s ease-in-out,right .2s ease-in-out}}";function Fz(e,t){typeof t=="number"?e.colAutosize?.sizeColumnsToFit(t,"api"):e.colAutosize?.sizeColumnsToFitGridBody(t)}function ux({colAutosize:e,visibleCols:t},n,i){Array.isArray(n)?e?.autoSizeCols({colKeys:n,skipHeader:i,source:"api"}):e?.autoSizeCols({...n,colKeys:n.colIds??t.allCols,source:"api"})}function xz(e,t){t&&typeof t=="object"?ux(e,t):e.colAutosize?.autoSizeAllColumns({source:"api",skipHeader:t})}var Pz=class extends X{constructor(){super(...arguments),this.beanName="colAutosize",this.timesDelayed=0,this.shouldQueueResizeOperations=!1,this.resizeOperationQueue=[]}postConstruct(){const{gos:e}=this,t=e.get("autoSizeStrategy");if(t){let n=!1;const i=t.type;if(i==="fitGridWidth"||i==="fitProvidedWidth")n=!0;else if(i==="fitCellContents"){this.addManagedEventListeners({firstDataRendered:()=>this.onFirstDataRendered(t)});const o=e.get("rowData");n=o!=null&&o.length>0&&Yt(e)}n&&this.beans.colDelayRenderSvc?.hideColumns(i)}}autoSizeCols(e){const{eventSvc:t,visibleCols:n,colModel:i}=this.beans;Nc(this.beans,!0),this.innerAutoSizeCols(e).then(o=>{const r=h=>Ja(t,Array.from(h),!0,"autosizeColumns");if(!e.scaleUpToFitGridWidth)return Nc(this.beans,!1),r(o);const s=dx(this.beans),a=h=>n.leftCols.some(f=>yc(f,h)),l=h=>n.rightCols.some(f=>yc(f,h)),u=e.colKeys.filter(h=>!i.getCol(h)?.getColDef().suppressAutoSize&&!zn(h)&&!a(h)&&!l(h));this.sizeColumnsToFit(s,e.source,!0,{defaultMaxWidth:e.defaultMaxWidth,defaultMinWidth:e.defaultMinWidth,columnLimits:e.columnLimits?.map(h=>({...h,key:h.colId})),colKeys:u,onlyScaleUp:!0,animate:!1}),Nc(this.beans,!1),r(o)})}innerAutoSizeCols(e){return new Promise((t,n)=>{if(this.shouldQueueResizeOperations)return this.pushResizeOperation(()=>this.innerAutoSizeCols(e).then(t,n));const{colKeys:i,skipHeader:o,skipHeaderGroups:r,stopAtGroup:s,defaultMaxWidth:a,defaultMinWidth:l,columnLimits:u=[],source:h="api"}=e,{animationFrameSvc:f,renderStatus:p,colModel:m,autoWidthCalc:v,visibleCols:w}=this.beans;if(f?.flushAllFrames(),this.timesDelayed<5&&p&&(!p.areHeaderCellsRendered()||!p.areCellsRendered())){this.timesDelayed++,setTimeout(()=>{this.isAlive()&&this.innerAutoSizeCols(e).then(t,n)});return}this.timesDelayed=0;const b=new Set;let y=-1;const R=Object.fromEntries(u.map(({colId:P,...D})=>[P,D])),S=o??this.gos.get("skipHeaderOnAutoSize"),x=r??S;for(;y!==0;){y=0;const P=[];for(const D of i){if(!D||V_(D))continue;const A=m.getCol(D);if(!A||b.has(A)||A.getColDef().suppressAutoSize)continue;const N=v.getPreferredWidthForColumn(A,S);if(N>0){const B=R[A.colId]??{};B.minWidth??(B.minWidth=l),B.maxWidth??(B.maxWidth=a);const L=Ez(A,N,B);A.setActualWidth(L,h),b.add(A),y++}P.push(A)}P.length&&w.refresh(h)}x||this.autoSizeColumnGroupsByColumns(i,h,s),t(b)})}autoSizeColumn(e,t,n){this.autoSizeCols({colKeys:[e],skipHeader:n,skipHeaderGroups:!0,source:t})}autoSizeColumnGroupsByColumns(e,t,n){const{colModel:i,ctrlsSvc:o}=this.beans,r=new Set,s=i.getColsForKeys(e);for(const l of s){let u=l.getParent();for(;u&&u!=n;)u.isPadding()||r.add(u),u=u.getParent()}let a;for(const l of r){for(const u of o.getHeaderRowContainerCtrls())if(a=u.getHeaderCtrlForColumn(l),a)break;a?.resizeLeafColumnsToFit(t)}}autoSizeAllColumns(e){if(this.shouldQueueResizeOperations){this.pushResizeOperation(()=>this.autoSizeAllColumns(e));return}this.autoSizeCols({colKeys:this.beans.visibleCols.allCols,...e})}addColumnAutosizeListeners(e,t){const n=this.gos.get("skipHeaderOnAutoSize"),i=()=>{this.autoSizeColumn(t,"uiColumnResized",n)};e.addEventListener("dblclick",i);const o=new Hs(e);return o.addEventListener("doubleTap",i),()=>{e.removeEventListener("dblclick",i),o.destroy()}}addColumnGroupResize(e,t,n){const i=this.gos.get("skipHeaderOnAutoSize"),o=()=>{const r=[],s=t.getDisplayedLeafColumns();for(const a of s)a.getColDef().suppressAutoSize||r.push(a.getColId());r.length>0&&this.autoSizeCols({colKeys:r,skipHeader:i,stopAtGroup:t,source:"uiColumnResized"}),n()};return e.addEventListener("dblclick",o),()=>e.removeEventListener("dblclick",o)}sizeColumnsToFitGridBody(e,t){if(!this.isAlive())return;const n=dx(this.beans);if(n>0){this.sizeColumnsToFit(n,"sizeColumnsToFit",!1,e);return}t===void 0?window.setTimeout(()=>{this.sizeColumnsToFitGridBody(e,100)},0):t===100?window.setTimeout(()=>{this.sizeColumnsToFitGridBody(e,500)},100):t===500?window.setTimeout(()=>{this.sizeColumnsToFitGridBody(e,-1)},500):se(29)}sizeColumnsToFit(e,t="sizeColumnsToFit",n,i){if(this.shouldQueueResizeOperations){this.pushResizeOperation(()=>this.sizeColumnsToFit(e,t,n,i));return}const{beans:o}=this,r=i?.animate??!0;r&&Nc(o,!0);const s={};for(const{key:y,...R}of i?.columnLimits??[])s[typeof y=="string"?y:y.getColId()]=R;const a=o.visibleCols.allCols;if(e<=0||!a.length)return;const l=rr(a);if(i?.onlyScaleUp&&l>e||e===l&&a.every(R=>{if(R.colDef.suppressSizeToFit)return!0;const S=s?.[R.getId()],x=S?.minWidth??i?.defaultMinWidth,P=S?.maxWidth??i?.defaultMaxWidth,D=R.getActualWidth();return(x==null||D>=x)&&(P==null||D<=P)}))return;const h=[],f=[];for(const y of a){const R=i?.colKeys?.some(S=>yc(y,S))??!0;y.getColDef().suppressSizeToFit||!R?f.push(y):h.push(y)}const p=h.slice(0);let m=!1;const v=y=>{So(h,y),f.push(y)},w={};for(const y of h){i?.onlyScaleUp&&(w[y.getColId()]=y.getActualWidth()),y.resetActualWidth(t);const R=s?.[y.getId()],S=R?.minWidth??i?.defaultMinWidth??-1/0,x=R?.maxWidth??i?.defaultMaxWidth??1/0,P=y.getActualWidth(),D=Math.max(Math.min(P,x),S);D!=P&&y.setActualWidth(D,t,!0)}for(;!m;){m=!0;const y=e-rr(f);if(y<=0)for(const R of h){const S=s?.[R.getId()]?.minWidth??i?.defaultMinWidth??R.minWidth;R.setActualWidth(S,t,!0)}else{const R=y/rr(h);let S=y;for(let x=h.length-1;x>=0;x--){const P=h[x],D=P.getColId(),A=w[D],N=s?.[D],B=N?.minWidth??i?.defaultMinWidth??A,L=N?.maxWidth??i?.defaultMaxWidth,M=Math.max(B??-1/0,P.getMinWidth()),I=Math.min(L??1/0,P.getMaxWidth());let O=Math.round(P.getActualWidth()*R);O<M?(O=M,v(P),m=!1):O>I?(O=I,v(P),m=!1):x===0&&(O=S),P.setActualWidth(O,t,!0),S-=O}}}for(const y of p)y.fireColumnWidthChangedEvent(t);const b=o.visibleCols;b.setLeftValues(t),b.updateBodyWidths(),!n&&(Ja(this.eventSvc,p,!0,t),r&&Nc(o,!1))}applyAutosizeStrategy(){const{gos:e,colDelayRenderSvc:t}=this.beans,n=e.get("autoSizeStrategy");n?.type!=="fitGridWidth"&&n?.type!=="fitProvidedWidth"||setTimeout(()=>{if(!this.isAlive())return;const i=n.type;if(i==="fitGridWidth"){const{columnLimits:o,defaultMinWidth:r,defaultMaxWidth:s}=n,a=o?.map(({colId:l,minWidth:u,maxWidth:h})=>({key:l,minWidth:u,maxWidth:h}));this.sizeColumnsToFitGridBody({defaultMinWidth:r,defaultMaxWidth:s,columnLimits:a})}else i==="fitProvidedWidth"&&this.sizeColumnsToFit(n.width,"sizeColumnsToFit");t?.revealColumns(i)})}onFirstDataRendered({colIds:e,...t}){setTimeout(()=>{if(!this.isAlive())return;const n="autosizeColumns";e?this.autoSizeCols({...t,source:n,colKeys:e}):this.autoSizeAllColumns({...t,source:n}),this.beans.colDelayRenderSvc?.revealColumns(t.type)})}processResizeOperations(){this.shouldQueueResizeOperations=!1;for(const e of this.resizeOperationQueue)e();this.resizeOperationQueue=[]}pushResizeOperation(e){this.resizeOperationQueue.push(e)}destroy(){this.resizeOperationQueue.length=0,super.destroy()}};function Ez(e,t,n={}){const i=n.minWidth??e.getMinWidth();t<i&&(t=i);const o=n.maxWidth??e.getMaxWidth();return t>o&&(t=o),t}function dx({ctrlsSvc:e,scrollVisibleSvc:t}){const n=e.getGridBodyCtrl(),o=n.isVerticalScrollShowing()?t.getScrollbarWidth():0;return dc(n.eGridBody)-o}var hx="ag-animate-autosize";function Nc({ctrlsSvc:e,gos:t},n){if(!t.get("animateColumnResizing")||t.get("enableRtl")||!e.isAlive())return;const i=e.getGridBodyCtrl().eGridBody.classList;n?i.add(hx):i.remove(hx)}var Dz={moduleName:"ColumnAutoSize",version:me,beans:[Pz],apiFunctions:{sizeColumnsToFit:Fz,autoSizeColumns:ux,autoSizeAllColumns:xz},dependsOn:[$R],css:[Rz]};function Tz(e,t){return!!e.colHover?.isHovered(t)}var Az=class extends X{constructor(e,t){super(),this.columns=e,this.element=t,this.destroyManagedListeners=[],this.enableFeature=n=>{const{beans:i,gos:o,element:r,columns:s}=this,a=i.colHover;if(n??!!o.get("columnHoverHighlight"))this.destroyManagedListeners=this.addManagedElementListeners(r,{mouseover:a.setMouseOver.bind(a,s),mouseout:a.clearMouseOver.bind(a)});else{for(const u of this.destroyManagedListeners)u();this.destroyManagedListeners=[]}}}postConstruct(){this.addManagedPropertyListener("columnHoverHighlight",({currentValue:e})=>{this.enableFeature(e)}),this.enableFeature()}destroy(){super.destroy(),this.destroyManagedListeners=null}},Iz="ag-column-hover",Mz=class extends X{constructor(){super(...arguments),this.beanName="colHover"}postConstruct(){this.addManagedPropertyListener("columnHoverHighlight",({currentValue:e})=>{e||this.clearMouseOver()})}setMouseOver(e){this.updateState(e)}clearMouseOver(){this.updateState(null)}isHovered(e){if(!this.gos.get("columnHoverHighlight"))return!1;const t=this.selectedColumns;return!!t&&t.indexOf(e)>=0}addHeaderColumnHoverListener(e,t,n){const i=()=>{const o=this.isHovered(n);t.toggleCss("ag-column-hover",o)};e.addManagedEventListeners({columnHoverChanged:i}),i()}onCellColumnHover(e,t){if(!t)return;const n=this.isHovered(e);t.toggleCss(Iz,n)}addHeaderFilterColumnHoverListener(e,t,n,i){this.createHoverFeature(e,[n],i);const o=()=>{const r=this.isHovered(n);t.toggleCss("ag-column-hover",r)};e.addManagedEventListeners({columnHoverChanged:o}),o()}createHoverFeature(e,t,n){e.createManagedBean(new Az(t,n))}updateState(e){this.selectedColumns=e,this.eventSvc.dispatchEvent({type:"columnHoverChanged"})}},kz={moduleName:"ColumnHover",version:me,beans:[Mz],apiFunctions:{isColumnHovered:Tz}},Lz=class extends X{constructor(){super(...arguments),this.beanName="gridSerializer"}wireBeans(e){this.visibleCols=e.visibleCols,this.colModel=e.colModel,this.rowModel=e.rowModel,this.pinnedRowModel=e.pinnedRowModel}serialize(e,t={}){const{allColumns:n,columnKeys:i,skipRowGroups:o,exportRowNumbers:r}=t,s=this.getColumnsToExport({allColumns:n,skipRowGroups:o,columnKeys:i,exportRowNumbers:r});return[this.prepareSession(s),this.prependContent(t),this.exportColumnGroups(t,s),this.exportHeaders(t,s),this.processPinnedTopRows(t,s),this.processRows(t,s),this.processPinnedBottomRows(t,s),this.appendContent(t)].reduce((a,l)=>l(a),e).parse()}processRow(e,t,n,i){const o=t.shouldRowBeSkipped||(()=>!1),s=t.rowPositions!=null||!!t.onlySelected,a=this.gos.get("groupHideOpenParents")&&!s,l=this.colModel.isPivotMode()?i.leafGroup:!i.group,u=!!i.footer,h=i.allChildrenCount===1&&i.childrenAfterGroup?.length===1&&h_(this.gos,i);if(!l&&!u&&(t.skipRowGroups||h||a)||t.onlySelected&&!i.isSelected()||t.skipPinnedTop&&i.rowPinned==="top"||t.skipPinnedBottom&&i.rowPinned==="bottom"||i.stub||i.level===-1&&!l&&!u||o(We(this.gos,{node:i})))return;const m=e.onNewBodyRow(i);if(n.forEach((v,w)=>{m.onColumn(v,w,i)}),t.getCustomContentBelowRow){const v=t.getCustomContentBelowRow(We(this.gos,{node:i}));v&&e.addCustomContent(v)}}appendContent(e){return t=>{const n=e.appendContent;return n&&t.addCustomContent(n),t}}prependContent(e){return t=>{const n=e.prependContent;return n&&t.addCustomContent(n),t}}prepareSession(e){return t=>(t.prepare(e),t)}exportColumnGroups(e,t){return n=>{if(!e.skipColumnGroupHeaders){const i=new qR,{colGroupSvc:o}=this.beans,r=o?o.createColumnGroups({columns:t,idCreator:i,pinned:null,isStandaloneStructure:!0}):t;this.recursivelyAddHeaderGroups(r,n,e.processGroupHeaderCallback)}return n}}exportHeaders(e,t){return n=>{if(!e.skipColumnHeaders){const i=n.onNewHeaderRow();t.forEach((o,r)=>{i.onColumn(o,r,void 0)})}return n}}processPinnedTopRows(e,t){return n=>{const i=this.processRow.bind(this,n,e,t);return e.rowPositions?e.rowPositions.filter(o=>o.rowPinned==="top").sort((o,r)=>o.rowIndex-r.rowIndex).map(o=>this.pinnedRowModel?.getPinnedTopRow(o.rowIndex)).forEach(i):this.pinnedRowModel?.isManual()||this.pinnedRowModel?.forEachPinnedRow("top",i),n}}processRows(e,t){return n=>{const i=this.rowModel,o=Yt(this.gos),r=Cc(this.gos),s=!o&&e.onlySelected,a=this.processRow.bind(this,n,e,t),{exportedRows:l="filteredAndSorted"}=e;if(e.rowPositions)e.rowPositions.filter(u=>u.rowPinned==null).sort((u,h)=>u.rowIndex-h.rowIndex).map(u=>i.getRow(u.rowIndex)).forEach(a);else if(this.colModel.isPivotMode())o?i.forEachPivotNode(a,!0,l==="filteredAndSorted"):r?i.forEachNodeAfterFilterAndSort(a,!0):i.forEachNode(a);else if(e.onlySelectedAllPages||s){const u=this.beans.selectionSvc?.getSelectedNodes()??[];this.replicateSortedOrder(u),u.forEach(a)}else l==="all"?i.forEachNode(a):o||r?i.forEachNodeAfterFilterAndSort(a,!0):i.forEachNode(a);return n}}replicateSortedOrder(e){const{sortSvc:t,rowNodeSorter:n}=this.beans;if(!t||!n)return;const i=t.getSortOptions(),o=(r,s)=>r.rowIndex!=null&&s.rowIndex!=null?r.rowIndex-s.rowIndex:r.level===s.level?r.parent?.id===s.parent?.id?n.compareRowNodes(i,r,s)||(r.rowIndex??-1)-(s.rowIndex??-1):o(r.parent,s.parent):r.level>s.level?o(r.parent,s):o(r,s.parent);e.sort(o)}processPinnedBottomRows(e,t){return n=>{const i=this.processRow.bind(this,n,e,t);return e.rowPositions?e.rowPositions.filter(o=>o.rowPinned==="bottom").sort((o,r)=>o.rowIndex-r.rowIndex).map(o=>this.pinnedRowModel?.getPinnedBottomRow(o.rowIndex)).forEach(i):this.pinnedRowModel?.isManual()||this.pinnedRowModel?.forEachPinnedRow("bottom",i),n}}getColumnsToExport(e){const{allColumns:t=!1,skipRowGroups:n=!1,exportRowNumbers:i=!1,columnKeys:o}=e,{colModel:r,gos:s,visibleCols:a}=this,l=r.isPivotMode(),u=p=>Vr(p)?!1:!zn(p)||i;if(o?.length)return r.getColsForKeys(o).filter(u);const h=s.get("treeData");let f=[];return t&&!l?f=r.getCols():f=a.allCols,f=f.filter(p=>u(p)&&(n&&!h?!kg(p):!0)),f}recursivelyAddHeaderGroups(e,t,n){const i=[];for(const o of e){const r=o;if(r.getChildren)for(const s of r.getChildren()??[])i.push(s)}e.length>0&&Zt(e[0])&&this.doAddHeaderHeader(t,e,n),i&&i.length>0&&this.recursivelyAddHeaderGroups(i,t,n)}doAddHeaderHeader(e,t,n){const i=e.onNewHeaderGroupingRow();let o=0;for(const r of t){const s=r;let a;n?a=n(We(this.gos,{columnGroup:s})):a=this.beans.colNames.getDisplayNameForColumnGroup(s,"header");const u=(s.isExpandable()?s.getLeafColumns():[]).reduce((h,f,p,m)=>{let v=Pt(h);return f.getColumnGroupShow()==="open"?(!v||v[1]!=null)&&(v=[p],h.push(v)):v&&v[1]==null&&(v[1]=p-1),p===m.length-1&&v&&v[1]==null&&(v[1]=p),h},[]);i.onColumn(s,a||"",o++,s.getLeafColumns().length-1,u)}}},_z={moduleName:"SharedExport",version:me,beans:[Lz]},Oz=class extends X{getFileName(e){const t=this.getDefaultFileExtension();return e?.length||(e=this.getDefaultFileName()),e.includes(".")?e:`${e}.${t}`}getData(e){return this.beans.gridSerializer.serialize(this.createSerializingSession(e),e)}getDefaultFileName(){return`export.${this.getDefaultFileExtension()}`}};function Nz(e,t){const n=document.defaultView||window;if(!n){se(52);return}const i=document.createElement("a"),o=n.URL.createObjectURL(t);i.setAttribute("href",o),i.setAttribute("download",e),i.style.display="none",document.body.appendChild(i),i.dispatchEvent(new MouseEvent("click",{bubbles:!1,cancelable:!0,view:n})),i.remove(),n.setTimeout(()=>{n.URL.revokeObjectURL(o)},0)}var Bz=class{constructor(e){this.valueFrom="data";const{colModel:t,rowGroupColsSvc:n,colNames:i,valueSvc:o,gos:r,processCellCallback:s,processHeaderCallback:a,processGroupHeaderCallback:l,processRowGroupCallback:u,valueFrom:h}=e;this.colModel=t,this.rowGroupColsSvc=n,this.colNames=i,this.valueSvc=o,this.gos=r,this.processCellCallback=s,this.processHeaderCallback=a,this.processGroupHeaderCallback=l,this.processRowGroupCallback=u,h&&(this.valueFrom=h)}prepare(e){}extractHeaderValue(e){return this.getHeaderName(this.processHeaderCallback,e)??""}extractRowCellValue(e){const{column:t,node:n,currentColumnIndex:i,accumulatedRowIndex:o,type:r,useRawFormula:s}=e,a=i===0&&d0(this.gos,n,this.colModel.isPivotMode());if(this.processRowGroupCallback&&(this.gos.get("treeData")||n.group)&&(t.isRowGroupDisplayed(n.rowGroupColumn?.getColId()??"")||a))return{value:this.processRowGroupCallback(We(this.gos,{column:t,node:n}))??""};if(this.processCellCallback)return{value:this.processCellCallback(We(this.gos,{accumulatedRowIndex:o,column:t,node:n,value:this.valueSvc.getValueForDisplay({column:t,node:n,from:this.valueFrom}).value,type:r,parseValue:v=>this.valueSvc.parseValue(t,n,v,this.valueSvc.getValue(t,n,this.valueFrom)),formatValue:v=>this.valueSvc.formatValue(t,n,v)??v}))??""};const l=this.gos.get("treeData"),u=this.valueSvc,h=n.level===-1&&n.footer,f=t.colDef.showRowGroup===!0&&(n.group||l);if(!h&&(a||f)){let v="",w=n;for(;w&&w.level!==-1;){const{value:b,valueFormatted:y}=u.getValueForDisplay({column:a?void 0:t,node:w,includeValueFormatted:!0,exporting:!0,from:this.valueFrom});v=` -> ${y??b??""}${v}`,w=w.parent}return{value:v,valueFormatted:v}}const{value:p,valueFormatted:m}=u.getValueForDisplay({column:t,node:n,includeValueFormatted:!0,exporting:!0,useRawFormula:s,from:this.valueFrom});return{value:p??"",valueFormatted:m}}getHeaderName(e,t){return e?e(We(this.gos,{column:t})):this.colNames.getDisplayNameForColumn(t,"csv",!0)}},fx=`\r
63
+ `,Gz=class extends Bz{constructor(e){super(e),this.config=e,this.isFirstLine=!0,this.result="";const{suppressQuotes:t,columnSeparator:n}=e;this.suppressQuotes=t,this.columnSeparator=n}addCustomContent(e){e&&(typeof e=="string"?(/^\s*\n/.test(e)||this.beginNewLine(),e=e.replace(/\r?\n/g,fx),this.result+=e):e.forEach(t=>{this.beginNewLine(),t.forEach((n,i)=>{i!==0&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(n.data.value||""),n.mergeAcross&&this.appendEmptyCells(n.mergeAcross)})}))}onNewHeaderGroupingRow(){return this.beginNewLine(),{onColumn:this.onNewHeaderGroupingRowColumn.bind(this)}}onNewHeaderGroupingRowColumn(e,t,n,i){n!=0&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(t),this.appendEmptyCells(i)}appendEmptyCells(e){for(let t=1;t<=e;t++)this.result+=this.columnSeparator+this.putInQuotes("")}onNewHeaderRow(){return this.beginNewLine(),{onColumn:this.onNewHeaderRowColumn.bind(this)}}onNewHeaderRowColumn(e,t){t!=0&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(this.extractHeaderValue(e))}onNewBodyRow(){return this.beginNewLine(),{onColumn:this.onNewBodyRowColumn.bind(this)}}onNewBodyRowColumn(e,t,n){t!=0&&(this.result+=this.columnSeparator);const i=this.extractRowCellValue({column:e,node:n,currentColumnIndex:t,accumulatedRowIndex:t,type:"csv",useRawFormula:!1});this.result+=this.putInQuotes(i.valueFormatted??i.value)}putInQuotes(e){if(this.suppressQuotes)return e;if(e==null)return'""';let t;return typeof e=="string"?t=e:typeof e.toString=="function"?t=e.toString():(se(53),t=""),'"'+t.replace(/"/g,'""')+'"'}parse(){return this.result}beginNewLine(){this.isFirstLine||(this.result+=fx),this.isFirstLine=!1}},Hz=class extends Oz{constructor(){super(...arguments),this.beanName="csvCreator"}getMergedParams(e){const t=this.gos.get("defaultCsvExportParams");return Object.assign({},t,e)}export(e){if(this.isExportSuppressed()){se(51);return}const t=()=>{const i=this.getMergedParams(e),o=this.getData(i),r=new Blob(["\uFEFF",o],{type:"text/plain"}),s=i.fileName,a=typeof s=="function"?s(We(this.gos,{})):s;Nz(this.getFileName(a),r)},{overlays:n}=this.beans;n?n.showExportOverlay(t):t()}exportDataAsCsv(e){this.export(e)}getDataAsCsv(e,t=!1){const n=t?Object.assign({},e):this.getMergedParams(e);return this.getData(n)}getDefaultFileExtension(){return"csv"}createSerializingSession(e){const{colModel:t,colNames:n,rowGroupColsSvc:i,valueSvc:o,gos:r}=this.beans,{processCellCallback:s,processHeaderCallback:a,processGroupHeaderCallback:l,processRowGroupCallback:u,suppressQuotes:h,columnSeparator:f,valueFrom:p}=e;return new Gz({colModel:t,colNames:n,valueSvc:o,gos:r,processCellCallback:s||void 0,processHeaderCallback:a||void 0,processGroupHeaderCallback:l||void 0,processRowGroupCallback:u||void 0,suppressQuotes:h||!1,columnSeparator:f||",",rowGroupColsSvc:i,valueFrom:p})}isExportSuppressed(){return this.gos.get("suppressCsvExport")}};function Vz(e,t){return e.csvCreator?.getDataAsCsv(t)}function Wz(e,t){e.csvCreator?.exportDataAsCsv(t)}var zz={moduleName:"CsvExport",version:me,beans:[Hz],apiFunctions:{getDataAsCsv:Vz,exportDataAsCsv:Wz},dependsOn:[_z]},px=class extends Vn{constructor(e,t){super(),this.ctrl=e,t&&(this.beans=t)}postConstruct(){this.refreshTooltip()}setBrowserTooltip(e,t){const n="title",i=this.ctrl.getGui();i&&(e!=null&&(e!=""||t)?i.setAttribute(n,e):i.removeAttribute(n))}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()}},Uz=1e3,$z=1e3,gx=100,mx,Rh=!1,jz=class extends Vn{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 this.tooltipCtrl[`getTooltip${e}DelayOverride`]?.()??this.getGridOptionsTooltipDelay(`tooltip${e}Delay`)}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()),!_s()&&(Rh?this.showTooltipTimeoutId=window.setTimeout(()=>{this.prepareToShowTooltip(e)},gx):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,n=this.tooltipCtrl.getGui(),i=this.tooltipComp?.getGui();this.isInteractingWithTooltip||n.contains(t)||this.interactionEnabled&&i?.contains(t)||this.setToDoNothing()}onKeyDown(){this.isInteractingWithTooltip&&(this.isInteractingWithTooltip=!1),this.setToDoNothing()}prepareToShowTooltip(e){if(this.state!=0||Rh)return;let t=0;e&&(t=this.isLastTooltipHiddenRecently()?this.getTooltipDelay("SwitchShow"):this.getTooltipDelay("Show")),this.lastMouseEvent=e||null,this.showTooltipTimeoutId=window.setTimeout(this.showTooltip.bind(this),t),this.state=1}isLastTooltipHiddenRecently(){return Date.now()-mx<Uz}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(!Ce(e)||t.shouldDisplayTooltip&&!t.shouldDisplayTooltip()){this.setToDoNothing();return}const n=this.gos.addCommon({location:t.getLocation?.()??"UNKNOWN",value:e,hideTooltipCallback:()=>this.hideTooltip(!0),...t.getAdditionalParams?.()});this.state=2,this.tooltipInstanceCount++;const i=this.newTooltipComponentCallback.bind(this,this.tooltipInstanceCount);this.createTooltipComp(n,i)}hideTooltip(e){!e&&this.isInteractingWithTooltip||(this.tooltipComp&&(this.destroyTooltipComp(),mx=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 i=t.getGui();this.tooltipComp=t,i.classList.contains("ag-tooltip")||i.classList.add("ag-tooltip-custom"),this.tooltipTrigger===0&&i.classList.add("ag-tooltip-animate"),this.interactionEnabled&&i.classList.add("ag-tooltip-interactive");const o=this.getLocaleTextFunc(),r=this.popupSvc?.addPopup({eChild:i,ariaLabel:o("ariaLabelTooltip","Tooltip")});if(r&&(this.tooltipPopupDestroyFunc=r.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(i,{mouseenter:this.onTooltipMouseEnter.bind(this),mouseleave:this.onTooltipMouseLeave.bind(this)}),[this.onDocumentKeyDownCallback]=this.addManagedElementListeners(on(this.beans),{keydown:s=>{i.contains(s?.target)||this.onKeyDown()}}),this.tooltipTrigger===1&&([this.tooltipFocusInListener,this.tooltipFocusOutListener]=this.addManagedElementListeners(i,{focusin:this.onTooltipFocusIn.bind(this),focusout:this.onTooltipFocusOut.bind(this)}))),this.eventSvc.dispatchEvent({type:"tooltipShow",tooltipGui:i,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=At(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,n=this.tooltipTrigger===0?$z:0;window.setTimeout(()=>{e(),this.destroyBean(t)},n),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(){Rh=!0,this.interactiveTooltipTimeoutId=window.setTimeout(()=>{this.unlockService(),this.setToDoNothing()},gx)}unlockService(){Rh=!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()}},Kz=class extends px{constructor(e,t,n){super(e,n),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()}},qz=class extends Kg{constructor(){super({tag:"div",cls:"ag-tooltip"})}init(e){const{value:t}=e,n=this.getGui();n.textContent=La(t);const i=e.location.replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase();n.classList.add(`ag-${i}-tooltip`)}},Qz=".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}}",Fh=0,Yz=200,Zz=class extends Vn{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:n,nudgeY:i,skipObserver:o}=e;this.positionPopup({ePopup:t,nudgeX:n,nudgeY:i,keepWithinBounds:!0,skipObserver:o,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:n,nudgeY:i,keepWithinBounds:o,eventSource:r,alignSide:s="left",position:a="over",type:l}=e,u=r.getBoundingClientRect(),h=this.getParentRect();this.setAlignedTo(r,t);const f=()=>{let p=u.left-h.left;s==="right"&&(p-=t.offsetWidth-u.width);let m;return a==="over"?(m=u.top-h.top,this.setAlignedStyles(t,"over")):(this.setAlignedStyles(t,"under"),this.shouldRenderUnderOrAbove(t,u,h,e.nudgeY||0)==="under"?m=u.top-h.top+u.height:m=u.top-t.offsetHeight-(i||0)*2-h.top),{x:p,y:m}};this.positionPopup({ePopup:t,nudgeX:n,nudgeY:i,keepWithinBounds:o,updatePosition:f,postProcessCallback:()=>this.callPostProcessPopup(e.additionalParams,l,t,r,null)})}positionPopupForMenu(e){const{eventSource:t,ePopup:n,event:i}=e,o=t.getBoundingClientRect(),r=this.getParentRect();this.setAlignedTo(t,n);let s=!1;const a=()=>{const l=this.keepXYWithinBounds(n,o.top-r.top,0),u=n.clientWidth>0?n.clientWidth:200;s||(n.style.minWidth=`${u}px`,s=!0);const f=r.right-r.left-u;let p;return this.gos.get("enableRtl")?(p=v(),p<0&&(p=m(),this.setAlignedStyles(n,"left")),p>f&&(p=0,this.setAlignedStyles(n,"right"))):(p=m(),p>f&&(p=v(),this.setAlignedStyles(n,"right")),p<0&&(p=0,this.setAlignedStyles(n,"left"))),{x:p,y:l};function m(){return o.right-r.left-2}function v(){return o.left-r.left-u}};this.positionPopup({ePopup:n,keepWithinBounds:!0,updatePosition:a,postProcessCallback:()=>this.callPostProcessPopup(e.additionalParams,"subMenu",n,t,i instanceof MouseEvent?i:void 0)})}shouldRenderUnderOrAbove(e,t,n,i){const o=n.bottom-t.bottom,r=t.top-n.top,s=e.offsetHeight+i;return o>s?"under":r>s||r>o?"above":"under"}setAlignedStyles(e,t){const n=this.getPopupIndex(e);if(n===-1)return;const i=this.popupList[n],{alignedToElement:o}=i;if(!o)return;const r=["right","left","over","above","under"];for(const s of r)o.classList.remove(`ag-has-popup-positioned-${s}`),e.classList.remove(`ag-popup-positioned-${s}`);t&&(o.classList.add(`ag-has-popup-positioned-${t}`),e.classList.add(`ag-popup-positioned-${t}`))}setAlignedTo(e,t){const n=this.getPopupIndex(t);if(n!==-1){const i=this.popupList[n];i.alignedToElement=e}}positionPopup(e){const{ePopup:t,keepWithinBounds:n,nudgeX:i,nudgeY:o,skipObserver:r,updatePosition:s}=e,a={width:0,height:0},l=(u=!1)=>{let{x:h,y:f}=s();u&&t.clientWidth===a.width&&t.clientHeight===a.height||(a.width=t.clientWidth,a.height=t.clientHeight,i&&(h+=i),o&&(f+=o),n&&(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(l(),!r){const u=_r(this.beans,t,()=>l(!0));setTimeout(()=>u(),Yz)}}getParentRect(){const e=on(this.beans);let t=this.getPopupParent();return t===e.body?t=e.documentElement:getComputedStyle(t).position==="static"&&(t=t.offsetParent),_S(t)}keepXYWithinBounds(e,t,n){const i=n===0,o=i?"clientHeight":"clientWidth",r=i?"top":"left",s=i?"height":"width",a=i?"scrollTop":"scrollLeft",l=on(this.beans),u=l.documentElement,h=this.getPopupParent(),f=e.getBoundingClientRect(),p=h.getBoundingClientRect(),m=l.documentElement.getBoundingClientRect(),v=h===l.body,w=Math.ceil(f[s]);let y=v?(i?LS:xd)(u)+u[a]:h[o];v&&(y-=Math.abs(m[r]-p[r]));const R=y-w;return Math.min(Math.max(t,0),Math.max(R,0))}addPopup(e){const{eChild:t,ariaLabel:n,ariaOwns:i,alwaysOnTop:o,positionCallback:r,anchorToElement:s}=e,a=this.getPopupIndex(t);if(a!==-1)return{hideFunc:this.popupList[a].hideFunc};this.initialisePopupPosition(t);const l=this.createPopupWrapper(t,!!o,n,i),u=this.addEventListenersToPopup({...e,wrapperEl:l});return r&&r(),this.addPopupToPopupList(t,l,u,s),{hideFunc:u}}initialisePopupPosition(e){const n=this.getPopupParent().getBoundingClientRect();Ce(e.style.top)||(e.style.top=`${n.top*-1}px`),Ce(e.style.left)||(e.style.left=`${n.left*-1}px`)}createPopupWrapper(e,t,n,i){const o=this.getPopupParent(),{environment:r,gos:s}=this.beans,a=As({tag:"div"});return r.applyThemeClasses(a),a.classList.add("ag-popup"),e.classList.add(s.get("enableRtl")?"ag-rtl":"ag-ltr","ag-popup-child"),e.hasAttribute("role")||Lr(e,"dialog"),n?_a(e,n):i&&(e.id||(e.id=`popup-component-${Fh}`),MS(i,e.id)),a.appendChild(e),o.appendChild(a),t?this.setAlwaysOnTop(e,!0):this.bringPopupToFront(e),a}addEventListenersToPopup(e){const t=this.beans,n=on(t),{wrapperEl:i,eChild:o,closedCallback:r,afterGuiAttached:s,closeOnEsc:a,modal:l,ariaOwns:u}=e;let h=!1;const f=w=>{if(!i.contains(At(t)))return;w.key===K.ESCAPE&&!this.isStopPropagation(w)&&v({keyboardEvent:w})},p=w=>v({mouseEvent:w}),m=w=>v({touchEvent:w}),v=(w={})=>{const{mouseEvent:b,touchEvent:y,keyboardEvent:R,forceHide:S}=w;!S&&(this.isEventFromCurrentPopup({mouseEvent:b,touchEvent:y},o)||h)||(h=!0,i.remove(),n.removeEventListener("keydown",f),n.removeEventListener("mousedown",p),n.removeEventListener("touchstart",m),n.removeEventListener("contextmenu",p),this.eventSvc.removeListener("dragStarted",p),r&&r(b||y||R),this.removePopupFromPopupList(o,u))};return s&&s({hidePopup:v}),window.setTimeout(()=>{a&&n.addEventListener("keydown",f),l&&(n.addEventListener("mousedown",p),this.eventSvc.addListener("dragStarted",p),n.addEventListener("touchstart",m),n.addEventListener("contextmenu",p))},0),v}addPopupToPopupList(e,t,n,i){this.popupList.push({element:e,wrapper:t,hideFunc:n,instanceId:Fh,isAnchored:!!i}),i&&this.setPopupPositionRelatedToElement(e,i),Fh=Fh+1}getPopupIndex(e){return this.popupList.findIndex(t=>t.element===e)}setPopupPositionRelatedToElement(e,t){const n=this.getPopupIndex(e);if(n===-1)return;const i=this.popupList[n];if(i.stopAnchoringPromise&&i.stopAnchoringPromise.then(r=>r&&r()),i.stopAnchoringPromise=void 0,i.isAnchored=!1,!t)return;const o=this.keepPopupPositionedRelativeTo({element:t,ePopup:e,hidePopup:i.hideFunc});return i.stopAnchoringPromise=o,i.isAnchored=!0,o}removePopupFromPopupList(e,t){this.setAlignedStyles(e,null),this.setPopupPositionRelatedToElement(e,null),t&&MS(t,null),this.popupList=this.popupList.filter(n=>n.element!==e)}keepPopupPositionedRelativeTo(e){const t=this.getPopupParent(),n=t.getBoundingClientRect(),{element:i,ePopup:o}=e,r=i.getBoundingClientRect(),s=f=>Number.parseInt(f.substring(0,f.length-1),10),a=(f,p)=>{const m=n[f]-r[f],v=s(o.style[f]);return{initialDiff:m,lastDiff:m,initial:v,last:v,direction:p}},l=a("top",0),u=a("left",1),h=this.beans.frameworkOverrides;return new It(f=>{h.wrapIncoming(()=>{X_(()=>{const p=t.getBoundingClientRect(),m=i.getBoundingClientRect();if(m.top==0&&m.left==0&&m.height==0&&m.width==0){e.hidePopup();return}const w=(b,y)=>{const R=s(o.style[y]);b.last!==R&&(b.initial=R,b.last=R);const S=p[y]-m[y];if(S!=b.lastDiff){const x=this.keepXYWithinBounds(o,b.initial+b.initialDiff-S,b.direction);o.style[y]=`${x}px`,b.last=x}b.lastDiff=S};w(l,"top"),w(u,"left")},200).then(p=>{f(()=>{p!=null&&window.clearInterval(p)})})},"popupPositioning")})}isEventFromCurrentPopup(e,t){const{mouseEvent:n,touchEvent:i}=e,o=n||i;if(!o)return!1;const r=this.getPopupIndex(t);if(r===-1)return!1;for(let s=r;s<this.popupList.length;s++){const a=this.popupList[s];if(EL(a.element,o))return!0}return this.isElementWithinCustomPopup(o.target)}isElementWithinCustomPopup(e){const t=on(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 n=this.getWrapper(e);n&&(n.classList.toggle("ag-always-on-top",!!t),t&&this.bringPopupToFront(n))}bringPopupToFront(e){const t=this.getPopupParent(),n=Array.prototype.slice.call(t.querySelectorAll(".ag-popup")),i=n.length,o=this.getWrapper(e);if(!o||i<=1||!t.contains(e))return;const r=[],s=[];for(const p of n)p!==o&&(p.classList.contains("ag-always-on-top")?s.push(p):r.push(p));const a=[],l=s.length,f=o.classList.contains("ag-always-on-top")||!l?[...r,...s,o]:[...r,o,...s];for(let p=0;p<=i;p++){const m=f[p];if(n[p]===f[p]||m===o)continue;const v=m.querySelectorAll("div");for(const w of v)w.scrollTop!==0&&a.push([w,w.scrollTop]);p===0?t.prepend(m):f[p-1].after(m)}for(;a.length;){const p=a.pop();p[0].scrollTop=p[1]}}handleThemeChange(e){if(e.themeChanged){const t=this.beans.environment;for(const n of this.popupList)t.applyThemeClasses(n.wrapper)}}},Xz=class extends Zz{getDefaultPopupParent(){return this.beans.ctrlsSvc.get("gridCtrl").getGui()}callPostProcessPopup(e,t,n,i,o){const r=this.gos.getCallback("postProcessPopup");if(r){const{column:s,rowNode:a}=e??{};r({column:s,rowNode:a,ePopup:n,type:t,eventSource:i,mouseEvent:o})}}getActivePopups(){return this.popupList.map(e=>e.element)}hasAnchoredPopup(){return this.popupList.some(e=>e.isAnchored)}isStopPropagation(e){return sr(e)}},xh={moduleName:"Popup",version:me,beans:[Xz]};function iv(e){return e.get("tooltipShowMode")==="whenTruncated"}var Jz=(e,t)=>{const n=e;return typeof n.getTranslatedMessage=="function"?n.getTranslatedMessage(t):e.message},ov=(e,t,n)=>{const{editModelSvc:i}=e,o=i?.getCellValidationModel()?.getCellValidation(t)?.errorMessages,r=i?.getRowValidationModel().getRowValidation(t)?.errorMessages,s=o||r;return s?.length?s.join(n("tooltipValidationErrorSeparator",". ")):void 0},e6=(e,t)=>{if(iv(e.gos)){if(t.isCellRenderer()){const i=t.column.getColDef();return!!i.showRowGroup||i.cellRenderer==="agGroupCellRenderer"?fc(()=>{const r=t.eGui;return r.querySelector(".ag-group-value")||r.querySelector(".ag-cell-value")||r}):void 0}return fc(()=>{const i=t.eGui;return i.children.length===0?i:i.querySelector(".ag-cell-value")})}},t6=(e,t,n)=>{const{editSvc:i}=e,{column:o}=t,r=e6(e,t),s=()=>i?.isEditing(t)?!1:r?o.isTooltipEnabled()?r():!1:!0;return{shouldDisplayDefault:s,shouldDisplayColumnTooltip:s,shouldDisplayCustomTooltip:n??s}},n6=({beans:e,ctrl:t,value:n,displayFunctions:i,translate:o})=>{const{editSvc:r,formula:s,gos:a}=e,{column:l,rowNode:u}=t;if(s?.active&&l.isAllowFormula()){const b=s.getFormulaError(l,u);if(b)return{value:Jz(b,o),location:"cellFormula",shouldDisplay:()=>!!s?.getFormulaError(l,u)}}if(!!!r?.isEditing(t)){const b=ov(e,t,o);if(b)return{value:b,location:"cellEditor",shouldDisplay:()=>!r?.isEditing(t)&&!!ov(e,t,o)}}const{shouldDisplayCustomTooltip:f,shouldDisplayColumnTooltip:p}=i;if(n!=null)return{value:n,location:"cell",shouldDisplay:f};const m=l.getColDef(),v=u.data;if(m.tooltipField&&Ce(v))return{value:Ic(v,m.tooltipField,l.isTooltipFieldContainsDots()),location:"cell",shouldDisplay:p};const w=m.tooltipValueGetter;return w?{value:w(We(a,{location:"cell",colDef:l.getColDef(),column:l,rowIndex:t.cellPosition.rowIndex,node:u,data:u.data,value:t.value,valueFormatted:t.valueFormatted})),location:"cell",shouldDisplay:p}:null},i6=class extends X{constructor(){super(...arguments),this.beanName="tooltipSvc"}setupHeaderTooltip(e,t,n,i){e&&t.destroyBean(e);const o=this.gos,r=iv(o),{column:s,eGui:a}=t,l=s.getColDef();!i&&r&&!l.headerComponent&&(i=fc(()=>a.querySelector(".ag-header-cell-text")));const u="header",f=this.beans.colNames.getDisplayNameForColumn(s,"header",!0),p=n??f,m={getGui:()=>a,getLocation:()=>u,getTooltipValue:()=>n??l?.headerTooltipValueGetter?.(We(o,{location:u,colDef:l,column:s,value:p,valueFormatted:f}))??l?.headerTooltip,shouldDisplayTooltip:i,getAdditionalParams:()=>({column:s,colDef:s.getColDef()})};let v=this.createTooltipFeature(m);return v&&(v=t.createBean(v),t.setRefreshFunction("tooltip",()=>v.refreshTooltip())),v}setupHeaderGroupTooltip(e,t,n,i){e&&t.destroyBean(e);const o=this.gos,r=iv(o),{column:s,eGui:a}=t,l=s.getColGroupDef();!i&&r&&!l?.headerGroupComponent&&(i=fc(()=>a.querySelector(".ag-header-group-text")));const u="headerGroup",f=this.beans.colNames.getDisplayNameForColumnGroup(s,"header"),p=n??f,m={getGui:()=>a,getLocation:()=>u,getTooltipValue:()=>n??l?.headerTooltipValueGetter?.(We(o,{location:u,colDef:l,column:s,value:p,valueFormatted:f}))??l?.headerTooltip,shouldDisplayTooltip:i,getAdditionalParams:()=>{const w={column:s};return l&&(w.colDef=l),w}},v=this.createTooltipFeature(m);return v&&t.createBean(v)}enableCellTooltipFeature(e,t,n){const{beans:i}=this,{column:o,rowNode:r}=e,s=t6(i,e,n),a=this.getLocaleTextFunc();let l=null;const u=()=>(l=n6({beans:i,ctrl:e,value:t,displayFunctions:s,translate:a}),l),f={getGui:()=>e.eGui,getLocation:()=>l?.location??"cell",getTooltipValue:()=>u()?.value,shouldDisplayTooltip:()=>{const p=l??u();return p?p.shouldDisplay?p.shouldDisplay():!0:!1},getAdditionalParams:()=>({column:o,colDef:o.getColDef(),rowIndex:e.cellPosition.rowIndex,node:r,data:r.data,valueFormatted:e.valueFormatted})};return this.createTooltipFeature(f,i)}setupFullWidthRowTooltip(e,t,n,i){const o={getGui:()=>t.getFullWidthElement(),getTooltipValue:()=>n,getLocation:()=>"fullWidthRow",shouldDisplayTooltip:i},r=this.beans,s=r.context;e&&t.destroyBean(e,s);const a=this.createTooltipFeature(o,r);if(a)return t.createBean(a,s)}setupCellEditorTooltip(e,t){const{beans:n}=this,{context:i}=n,o=t.getValidationElement?.(!0)||!t.isPopup?.()&&e.eGui;if(!o)return;const r={getGui:()=>o,getTooltipValue:()=>ov(n,e,this.getLocaleTextFunc()),getLocation:()=>"cellEditor",shouldDisplayTooltip:()=>{const{editModelSvc:a}=n,l=a?.getRowValidationModel()?.getRowValidationMap(),u=a?.getCellValidationModel()?.getCellValidationMap(),h=!!l&&l.size>0,f=!!u&&u.size>0;return h||f}},s=this.createTooltipFeature(r,n);if(s)return e.createBean(s,i)}initCol(e){const{colDef:t}=e;e.tooltipEnabled=Ce(t.tooltipField)||Ce(t.tooltipValueGetter)||Ce(t.tooltipComponent)}createTooltipFeature(e,t){return this.beans.registry.createDynamicBean("tooltipFeature",!1,e,t)}},o6=class extends jz{createTooltipComp(e,t){DO(this.beans.userCompFactory,e)?.newAgStackInstance().then(t)}setEventHandlers(e){[this.onColumnMovedEventCallback]=this.addManagedEventListeners({columnMoved:e})}clearEventHandlers(){this.onColumnMovedEventCallback?.(),this.onColumnMovedEventCallback=void 0}},vx={moduleName:"Tooltip",version:me,beans:[i6],dynamicBeans:{tooltipFeature:px,highlightTooltipFeature:Kz,tooltipStateManager:o6},userComponents:{agTooltipComponent:qz},dependsOn:[xh],css:[Qz]},sl=class{constructor(e){this.cellValueChanges=e}},rv=class extends sl{constructor(e,t,n,i){super(e),this.initialRange=t,this.finalRange=n,this.ranges=i}},r6=10,Cx=class{constructor(e){this.actionStack=[],this.maxStackSize=e||r6,this.actionStack=new Array(this.maxStackSize)}pop(){return this.actionStack.pop()}push(e){e.cellValueChanges&&e.cellValueChanges.length>0&&(this.actionStack.length===this.maxStackSize&&this.actionStack.shift(),this.actionStack.push(e))}clear(){this.actionStack=[]}getCurrentStackSize(){return this.actionStack.length}},s6=class extends X{constructor(){super(...arguments),this.beanName="undoRedo",this.cellValueChanges=[],this.activeCellEdit=null,this.activeRowEdit=null,this.isPasting=!1,this.isRangeInAction=!1,this.batchEditing=!1,this.bulkEditing=!1,this.onCellValueChanged=e=>{const t={column:e.column,rowIndex:e.rowIndex,rowPinned:e.rowPinned},n=this.activeCellEdit!==null&&tm(this.activeCellEdit,t),i=this.activeRowEdit!==null&&d2(this.activeRowEdit,t);if(!(n||i||this.isPasting||this.isRangeInAction))return;const{rowPinned:r,rowIndex:s,column:a,oldValue:l,value:u}=e,h={rowPinned:r,rowIndex:s,columnId:a.getColId(),newValue:u,oldValue:l};this.cellValueChanges.push(h)},this.clearStacks=()=>{this.undoStack.clear(),this.redoStack.clear()}}postConstruct(){const{gos:e,ctrlsSvc:t}=this.beans;if(!e.get("undoRedoCellEditing"))return;const n=e.get("undoRedoCellEditingLimit");if(n<=0)return;this.undoStack=new Cx(n),this.redoStack=new Cx(n),this.addListeners();const i=this.clearStacks.bind(this);this.addManagedEventListeners({cellValueChanged:this.onCellValueChanged.bind(this),modelUpdated:o=>{o.keepUndoRedoStack||this.clearStacks()},columnPivotModeChanged:i,newColumnsLoaded:i,columnGroupOpened:i,columnRowGroupChanged:i,columnMoved:i,columnPinned:i,columnVisible:i,rowDragEnd:i}),t.whenReady(this,o=>{this.gridBodyCtrl=o.gridBodyCtrl})}getCurrentUndoStackSize(){return this.undoStack?.getCurrentStackSize()??0}getCurrentRedoStackSize(){return this.redoStack?.getCurrentStackSize()??0}undo(e){const{eventSvc:t,undoStack:n,redoStack:i}=this;t.dispatchEvent({type:"undoStarted",source:e});const o=this.undoRedo(n,i,"initialRange","oldValue","undo");t.dispatchEvent({type:"undoEnded",source:e,operationPerformed:o})}redo(e){const{eventSvc:t,undoStack:n,redoStack:i}=this;t.dispatchEvent({type:"redoStarted",source:e});const o=this.undoRedo(i,n,"finalRange","newValue","redo");t.dispatchEvent({type:"redoEnded",source:e,operationPerformed:o})}undoRedo(e,t,n,i,o){if(!e)return!1;const r=e.pop();return r?.cellValueChanges?(this.processAction(r,s=>s[i],o),r instanceof rv?this.processRange(r.ranges||[r[n]]):this.processCell(r.cellValueChanges),t.push(r),!0):!1}processAction(e,t,n){const{changeDetectionSvc:i}=this.beans;i?.beginDeferred();try{for(const o of e.cellValueChanges){const{rowIndex:r,rowPinned:s,columnId:a}=o,l={rowIndex:r,rowPinned:s},u=Eo(this.beans,l);u?.displayed&&u.setDataValue(a,t(o),n)}}finally{i?.endDeferred()}}processRange(e){let t;const n=this.beans.rangeSvc;n.removeAllCellRanges(!0),e.forEach((i,o)=>{if(!i)return;const r=i.startRow,s=i.endRow;o===e.length-1&&(t={rowPinned:r.rowPinned,rowIndex:r.rowIndex,columnId:i.startColumn.getColId()},this.setLastFocusedCell(t));const a={rowStartIndex:r.rowIndex,rowStartPinned:r.rowPinned,rowEndIndex:s.rowIndex,rowEndPinned:s.rowPinned,columnStart:i.startColumn,columns:i.columns};n.addCellRange(a)})}processCell(e){const t=e[0],{rowIndex:n,rowPinned:i}=t,o={rowIndex:n,rowPinned:i},r=Eo(this.beans,o),s={rowPinned:t.rowPinned,rowIndex:r.rowIndex,columnId:t.columnId};this.setLastFocusedCell(s)}setLastFocusedCell(e){const{rowIndex:t,columnId:n,rowPinned:i}=e,{colModel:o,focusSvc:r,rangeSvc:s}=this.beans,a=o.getCol(n);if(!a)return;const{scrollFeature:l}=this.gridBodyCtrl;l.ensureIndexVisible(t),l.ensureColumnVisible(a);const u={rowIndex:t,column:a,rowPinned:i};r.setFocusedCell({...u,forceBrowserFocus:!0}),s?.setRangeToCell(u)}addListeners(){this.addManagedEventListeners({rowEditingStarted:e=>{this.activeRowEdit={rowIndex:e.rowIndex,rowPinned:e.rowPinned}},rowEditingStopped:()=>{const e=new sl(this.cellValueChanges);this.pushActionsToUndoStack(e),this.activeRowEdit=null},cellEditingStarted:e=>{this.activeCellEdit={column:e.column,rowIndex:e.rowIndex,rowPinned:e.rowPinned}},cellEditingStopped:e=>{if(this.activeCellEdit=null,e.valueChanged&&!this.activeRowEdit&&!this.isPasting&&!this.isRangeInAction){const n=new sl(this.cellValueChanges);this.pushActionsToUndoStack(n)}},pasteStart:()=>{this.isPasting=!0},pasteEnd:()=>{const e=new sl(this.cellValueChanges);this.pushActionsToUndoStack(e),this.isPasting=!1},fillStart:()=>{this.isRangeInAction=!0},fillEnd:e=>{const t=new rv(this.cellValueChanges,e.initialRange,e.finalRange);this.pushActionsToUndoStack(t),this.isRangeInAction=!1},keyShortcutChangedCellStart:()=>{this.isRangeInAction=!0},keyShortcutChangedCellEnd:()=>{let e;const{rangeSvc:t,gos:n}=this.beans;t&&nr(n)?e=new rv(this.cellValueChanges,void 0,void 0,[...t.getCellRanges()]):e=new sl(this.cellValueChanges),this.pushActionsToUndoStack(e),this.isRangeInAction=!1},batchEditingStarted:()=>this.startBigChange("batchEditing"),batchEditingStopped:({changes:e})=>this.stopBigChange("batchEditing",e),bulkEditingStarted:()=>this.startBigChange("bulkEditing"),bulkEditingStopped:({changes:e})=>this.stopBigChange("bulkEditing",e)})}startBigChange(e){this.updateBigChange(e,!0)}updateBigChange(e,t){e==="bulkEditing"?this.bulkEditing=t:this.batchEditing=t}stopBigChange(e,t){if(e==="bulkEditing"&&!this.bulkEditing||e==="batchEditing"&&!this.batchEditing||(this.updateBigChange(e,!1),t?.length===0))return;const n=new sl(t??[]);this.pushActionsToUndoStack(n),this.cellValueChanges=[]}pushActionsToUndoStack(e){this.undoStack.push(e),this.cellValueChanges=[],this.redoStack.clear()}},a6=".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) .ag-text-area-input{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}",l6={tag:"div",cls:"ag-cell-wrapper ag-cell-edit-wrapper ag-checkbox-edit",children:[{tag:"ag-checkbox",ref:"eEditor",role:"presentation"}]},c6=class extends Qd{constructor(){super(l6,[Dm]),this.eEditor=de}initialiseEditor(e){this.agSetEditValue(e.value),this.eEditor.getInputElement().setAttribute("tabindex","-1"),this.addManagedListeners(this.eEditor,{fieldValueChanged:n=>this.setAriaLabel(n.selected)})}agSetEditValue(e){this.params.value=e;const t=e??void 0;this.eEditor.setValue(t,!0),this.setAriaLabel(t)}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(),n=Fd(t,e),i=t("ariaToggleCellValue","Press SPACE to toggle cell value");this.eEditor.setInputAriaLabel(`${i} (${n})`)}getValidationElement(e){return e?this.params.eGridCell:this.eEditor.getInputElement()}getValidationErrors(){const{params:e}=this,{getValidationErrors:t}=e,n=this.getValue();return t?t({value:n,internalErrors:null,cellEditorParams:e}):null}},ar=class extends Ws{constructor(e,t="ag-text-field",n="text"){super(e,t,n)}postConstruct(){super.postConstruct(),this.config.allowedCharPattern&&this.preventDisallowedCharacters()}setValue(e,t){const n=this.eInput;return n.value!==e&&(n.value=Ce(e)?e:""),super.setValue(e,t)}setStartValue(e){this.setValue(e,!0)}setCustomValidity(e){const t=this.eInput,n=e.length>0;t.setCustomValidity(e),n&&t.reportValidity(),dg(t,n)}preventDisallowedCharacters(){const e=new RegExp(`[${this.config.allowedCharPattern}]`),t=n=>{vR(n)&&n.key&&!e.test(n.key)&&n.preventDefault()};this.addManagedListeners(this.eInput,{keydown:t,paste:n=>{n.clipboardData?.getData("text")?.split("").some(o=>!e.test(o))&&n.preventDefault()}})}},Ph={selector:"AG-INPUT-TEXT-FIELD",component:ar},u6=class extends ar{constructor(e){super(e,"ag-date-field","date")}postConstruct(){super.postConstruct();const e=zr();this.addManagedListeners(this.eInput,{wheel:this.onWheel.bind(this),mousedown:()=>{this.isDisabled()||e||this.eInput.focus()}}),this.eInput.step="any"}onWheel(e){At(this.beans)===this.eInput&&e.preventDefault()}setMin(e){const t=e instanceof Date?Un(e??null,!!this.includeTime)??void 0:e;return this.min===t?this:(this.min=t,ti(this.eInput,"min",t),this)}setMax(e){const t=e instanceof Date?Un(e??null,!!this.includeTime)??void 0:e;return this.max===t?this:(this.max=t,ti(this.eInput,"max",t),this)}setStep(e){return this.step===e?this:(this.step=e,ti(this.eInput,"step",e),this)}setIncludeTime(e){return this.includeTime===e?this:(this.includeTime=e,super.setInputType(e?"datetime-local":"date"),e&&this.setStep(1),this)}getDate(){if(this.eInput.validity.valid)return $n(this.getValue())??void 0}setDate(e,t){this.setValue(Un(e??null,this.includeTime),t)}},wx={selector:"AG-INPUT-DATE-FIELD",component:u6},Eh=class extends Qd{constructor(e){super(),this.cellEditorInput=e,this.eEditor=de}initialiseEditor(e){const{cellEditorInput:t}=this;this.setTemplate({tag:"div",cls:"ag-cell-edit-wrapper",children:[t.getTemplate()]},t.getAgComponents());const{eEditor:n}=this,{cellStartedEdit:i,eventKey:o,suppressPreventDefault:r}=e;n.getInputElement().setAttribute("title",""),t.init(n,e);let s,a=!0;i?(this.focusAfterAttached=!0,o===K.BACKSPACE||o===K.DELETE?s="":o&&o.length===1?r?a=!1:s=o:(s=t.getStartValue(),o!==K.F2&&(this.highlightAllOnFocus=!0))):(this.focusAfterAttached=!1,s=t.getStartValue()),a&&s!=null&&n.setStartValue(s),this.addGuiEventListener("keydown",l=>{const{key:u}=l;(u===K.PAGE_UP||u===K.PAGE_DOWN)&&l.preventDefault()})}afterGuiAttached(){const e=this.getLocaleTextFunc(),t=this.eEditor;if(t.setInputAriaLabel(e("ariaInputEditor","Input Editor")),!this.focusAfterAttached)return;zr()||t.getFocusableElement().focus();const n=t.getInputElement();this.highlightAllOnFocus?n.select():this.cellEditorInput.setCaret?.()}focusIn(){const{eEditor:e}=this,t=e.getFocusableElement(),n=e.getInputElement();t.focus(),n.select()}getValue(){return this.cellEditorInput.getValue()}agSetEditValue(e){this.params.value=e;const t=this.cellEditorInput.getStartValue();this.eEditor.setStartValue(t??null)}isPopup(){return!1}getValidationElement(){return this.eEditor.getInputElement()}getValidationErrors(){return this.cellEditorInput.getValidationErrors()}},d6={tag:"ag-input-date-field",ref:"eEditor",cls:"ag-cell-editor"},h6=class{constructor(e,t){this.getDataTypeService=e,this.getLocaleTextFunc=t}getTemplate(){return d6}getAgComponents(){return[wx]}init(e,t){this.eEditor=e,this.params=t;const{min:n,max:i,step:o,colDef:r}=t;n!=null&&e.setMin(n),i!=null&&e.setMax(i),o!=null&&e.setStep(o),this.includeTime=t.includeTime??this.getDataTypeService()?.getDateIncludesTimeFlag?.(r.cellDataType),this.includeTime!=null&&e.setIncludeTime(this.includeTime)}getValidationErrors(){const t=this.eEditor.getInputElement().valueAsDate,{params:n}=this,{min:i,max:o,getValidationErrors:r}=n;let s=[];const a=this.getLocaleTextFunc();if(t instanceof Date&&!isNaN(t.getTime())){if(i){const l=i instanceof Date?i:new Date(i);if(t<l){const u=l.toLocaleDateString();s.push(a("minDateValidation",`Date must be after ${u}`,[u]))}}if(o){const l=o instanceof Date?o:new Date(o);if(t>l){const u=l.toLocaleDateString();s.push(a("maxDateValidation",`Date must be before ${u}`,[u]))}}}return s.length||(s=null),r?r({value:t,cellEditorParams:n,internalErrors:s}):s}getValue(){const{eEditor:e,params:t}=this,n=e.getDate();return!Ce(n)&&!Ce(t.value)?t.value:n??null}getStartValue(){const{value:e}=this.params;if(e instanceof Date)return Un(e,this.includeTime??!1)}},f6=class extends Eh{constructor(){super(new h6(()=>this.beans.dataTypeSvc,()=>this.getLocaleTextFunc()))}},p6={tag:"ag-input-date-field",ref:"eEditor",cls:"ag-cell-editor"},g6=class{constructor(e,t){this.getDataTypeService=e,this.getLocaleTextFunc=t}getTemplate(){return p6}getAgComponents(){return[wx]}init(e,t){this.eEditor=e,this.params=t;const{min:n,max:i,step:o,colDef:r}=t;n!=null&&e.setMin(n),i!=null&&e.setMax(i),o!=null&&e.setStep(o),this.includeTime=t.includeTime??this.getDataTypeService()?.getDateIncludesTimeFlag?.(r.cellDataType),this.includeTime!=null&&e.setIncludeTime(this.includeTime)}getValidationErrors(){const{eEditor:e,params:t}=this,n=e.getInputElement().value,i=this.formatDate(this.parseDate(n??void 0)),{min:o,max:r,getValidationErrors:s}=t;let a=[];if(i){const l=new Date(i),u=this.getLocaleTextFunc();if(o){const h=new Date(o);if(l<h){const f=h.toLocaleDateString();a.push(u("minDateValidation",`Date must be after ${f}`,[f]))}}if(r){const h=new Date(r);if(l>h){const f=h.toLocaleDateString();a.push(u("maxDateValidation",`Date must be before ${f}`,[f]))}}}return a.length||(a=null),s?s({value:this.getValue(),cellEditorParams:t,internalErrors:a}):a}getValue(){const{params:e,eEditor:t}=this,n=this.formatDate(t.getDate());return!Ce(n)&&!Ce(e.value)?e.value:e.parseValue(n??"")}getStartValue(){return Un(this.parseDate(this.params.value??void 0)??null,this.includeTime??!1)}parseDate(e){const t=this.getDataTypeService();return t?t.getDateParserFunction(this.params.column)(e):$n(e)??void 0}formatDate(e){const t=this.getDataTypeService();return t?t.getDateFormatterFunction(this.params.column)(e):Un(e??null,this.includeTime??!1)??void 0}},m6=class extends Eh{constructor(){super(new g6(()=>this.beans.dataTypeSvc,()=>this.getLocaleTextFunc()))}},v6=class extends Ws{constructor(e){super(e,"ag-text-area",null,"textarea")}setValue(e,t){const n=super.setValue(e,t);return this.eInput.value=e,n}setCols(e){return this.eInput.cols=e,this}setRows(e){return this.eInput.rows=e,this}},C6={selector:"AG-INPUT-TEXT-AREA",component:v6},w6={tag:"div",cls:"ag-large-text",children:[{tag:"ag-input-text-area",ref:"eEditor",cls:"ag-large-text-input"}]},b6=class extends Qd{constructor(){super(w6,[C6]),this.eEditor=de}initialiseEditor(e){const{eEditor:t}=this,{cellStartedEdit:n,eventKey:i,maxLength:o,cols:r,rows:s}=e;this.focusAfterAttached=n,t.getInputElement().setAttribute("title",""),t.setMaxLength(o||200).setCols(r||60).setRows(s||10);let a;n?(this.focusAfterAttached=!0,i===K.BACKSPACE||i===K.DELETE?a="":i&&i.length===1?a=i:(a=this.getStartValue(e),i!==K.F2&&(this.highlightAllOnFocus=!0))):(this.focusAfterAttached=!1,a=this.getStartValue(e)),a!=null&&t.setValue(a,!0),this.addGuiEventListener("keydown",this.onKeyDown.bind(this)),this.activateTabIndex()}getStartValue(e){const{value:t}=e;return t?.toString()??t}agSetEditValue(e){this.params.value=e;const t=this.getStartValue(this.params);this.eEditor.setValue(t??"",!0)}onKeyDown(e){const t=e.key;(t===K.LEFT||t===K.UP||t===K.RIGHT||t===K.DOWN||e.shiftKey&&t===K.ENTER)&&e.stopPropagation()}afterGuiAttached(){const{eEditor:e,focusAfterAttached:t,highlightAllOnFocus:n}=this,i=this.getLocaleTextFunc();e.setInputAriaLabel(i("ariaInputEditor","Input Editor")),t&&(e.getFocusableElement().focus(),n&&e.getInputElement().select())}getValue(){const{eEditor:e,params:t}=this,{value:n}=t,i=e.getValue();return!Ce(i)&&!Ce(n)?n:t.parseValue(i)}getValidationElement(){return this.eEditor.getInputElement()}getValidationErrors(){const{params:e}=this,{maxLength:t,getValidationErrors:n}=e,i=this.getLocaleTextFunc(),o=this.getValue();let r=[];return typeof o=="string"&&t!=null&&o.length>t&&r.push(i("maxLengthValidation",`Must be ${t} characters or fewer.`,[String(t)])),r.length||(r=null),n?n({value:o,internalErrors:r,cellEditorParams:e}):r}},sv=class extends ar{constructor(e){super(e,"ag-number-field","number")}postConstruct(){super.postConstruct();const e=this.eInput;this.addManagedListeners(e,{blur:()=>{const r=Number.parseFloat(e.value),s=isNaN(r)?"":this.normalizeValue(r.toString());this.value!==s&&this.setValue(s)},wheel:this.onWheel.bind(this)}),e.step="any";const{precision:t,min:n,max:i,step:o}=this.config;typeof t=="number"&&this.setPrecision(t),typeof n=="number"&&this.setMin(n),typeof i=="number"&&this.setMax(i),typeof o=="number"&&this.setStep(o)}onWheel(e){At(this.beans)===this.eInput&&e.preventDefault()}normalizeValue(e){return e===""?"":(this.precision!=null&&(e=this.adjustPrecision(e)),e)}adjustPrecision(e,t){const n=this.precision;if(n==null)return e;if(t){const o=Number.parseFloat(e).toFixed(n);return Number.parseFloat(o).toString()}const i=String(e).split(".");if(i.length>1){if(i[1].length<=n)return e;if(n>0)return`${i[0]}.${i[1].slice(0,n)}`}return i[0]}setMin(e){return this.min===e?this:(this.min=e,ti(this.eInput,"min",e),this)}setMax(e){return this.max===e?this:(this.max=e,ti(this.eInput,"max",e),this)}setPrecision(e){return this.precision=e,this}setStep(e){return this.step===e?this:(this.step=e,ti(this.eInput,"step",e),this)}setValue(e,t){return this.setValueOrInputValue(n=>super.setValue(n,t),()=>this,e)}setStartValue(e){return this.setValueOrInputValue(t=>super.setValue(t,!0),t=>{this.eInput.value=t},e)}setValueOrInputValue(e,t,n){if(Ce(n)){let i=this.isScientificNotation(n);if(i&&this.eInput.validity.valid)return e(n);if(!i){n=this.adjustPrecision(n);const o=this.normalizeValue(n);i=n!=o}if(i)return t(n)}return e(n)}getValue(e=!1){const t=this.eInput;if(!t.validity.valid&&!e)return;const n=t.value;return this.isScientificNotation(n)?this.adjustPrecision(n,!0):super.getValue()}isScientificNotation(e){return typeof e=="string"&&e.includes("e")}},y6={selector:"AG-INPUT-NUMBER-FIELD",component:sv},S6={tag:"ag-input-number-field",ref:"eEditor",cls:"ag-cell-editor"},R6=class{constructor(e){this.getLocaleTextFunc=e}getTemplate(){return S6}getAgComponents(){return[y6]}init(e,t){this.eEditor=e,this.params=t;const{max:n,min:i,precision:o,step:r}=t;n!=null&&e.setMax(n),i!=null&&e.setMin(i),o!=null&&e.setPrecision(o),r!=null&&e.setStep(r);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:n,getValidationErrors:i}=e,r=this.eEditor.getInputElement().valueAsNumber,s=this.getLocaleTextFunc();let a=[];return typeof r=="number"&&(t!=null&&r<t&&a.push(s("minValueValidation",`Must be greater than or equal to ${t}.`,[String(t)])),n!=null&&r>n&&a.push(s("maxValueValidation",`Must be less than or equal to ${n}.`,[String(n)]))),a.length||(a=null),i?i({value:r,cellEditorParams:e,internalErrors:a}):a}preventStepping(e){(e.key===K.UP||e.key===K.DOWN)&&e.preventDefault()}getValue(){const{eEditor:e,params:t}=this,n=e.getValue();if(!Ce(n)&&!Ce(t.value))return t.value;let i=t.parseValue(n);if(i==null)return i;if(typeof i=="string"){if(i==="")return null;i=Number(i)}return isNaN(i)?null:i}getStartValue(){return this.params.value}setCaret(){zr()&&this.eEditor.getInputElement().focus({preventScroll:!0})}},F6=class extends Eh{constructor(){super(new R6(()=>this.getLocaleTextFunc()))}},x6=".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)}}",P6="ag-active-item",E6=(e,t)=>({tag:"div",cls:`ag-list-item ag-${e}-list-item`,attrs:{role:"option"},children:[{tag:"span",cls:`ag-list-item-text ag-${e}-list-item-text`,ref:"eText",children:t}]}),D6=class extends Ka{constructor(e,t,n){super(E6(e,t)),this.label=t,this.value=n,this.eText=de}postConstruct(){this.createTooltip(),this.addEventListeners()}setHighlighted(e){const t=this.getGui();t.classList.toggle(P6,e),IS(t,e),this.dispatchLocalEvent({type:"itemHighlighted",highlighted:e})}getHeight(){return this.getGui().clientHeight}setIndex(e,t){const n=this.getGui();uL(n,e),cL(n,t)}createTooltip(){const e={getTooltipValue:()=>this.label,getGui:()=>this.getGui(),getLocation:()=>"UNKNOWN",shouldDisplayTooltip:()=>GS(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)}))}},T6=class extends Ka{constructor(e="default"){super({tag:"div",cls:`ag-list ag-${e}-list`}),this.cssIdentifier=e,this.options=[],this.listItems=[],this.highlightedItem=null,this.registerCSS(x6)}postConstruct(){const e=this.getGui();this.addManagedElementListeners(e,{mouseleave:()=>this.clearHighlighted()})}handleKeyDown(e){const t=e.key;switch(t){case K.ENTER:if(!this.highlightedItem)this.setValue(this.getValue());else{const n=this.listItems.indexOf(this.highlightedItem);this.setValueByIndex(n)}break;case K.DOWN:case K.UP:e.preventDefault(),this.navigate(t);break;case K.PAGE_DOWN:case K.PAGE_UP:case K.PAGE_HOME:case K.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:n}=e,i=n??t;return this.options.push({value:t,text:i}),this.renderOption(t,i),this.updateIndices(),this}clearOptions(){this.options=[],this.reset(!0);for(const e of this.listItems)e.destroy();wn(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 n=this.options.findIndex(i=>i.value===e);if(n!==-1){const i=this.options[n];this.value=i.value,this.displayValue=i.text,this.highlightItem(this.listItems[n]),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(!ki(t))return;this.clearHighlighted(),e.setHighlighted(!0),this.highlightedItem=e;const n=this.getGui(),{scrollTop:i,clientHeight:o}=n,{offsetTop:r,offsetHeight:s}=t;(r+s>i+o||r<i)&&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 n=new D6(this.cssIdentifier,t,e);n.setParentComponent(this);const i=this.createManagedBean(n);this.listItems.push(i),this.getGui().appendChild(i.getGui())}navigate(e){const t=e===K.DOWN;let n;const{listItems:i,highlightedItem:o}=this;if(!o)n=t?i[0]:Pt(i);else{let s=i.indexOf(o)+(t?1:-1);s=Math.min(Math.max(s,0),i.length-1),n=i[s]}this.highlightItem(n)}navigateToPage(e){const{listItems:t,highlightedItem:n}=this;if(!n||t.length===0)return;const i=t.indexOf(n),o=this.options.length-1,r=t[0].getHeight(),s=Math.floor(this.getGui().clientHeight/r);let a=-1;e===K.PAGE_HOME?a=0:e===K.PAGE_END?a=o:e===K.PAGE_DOWN?a=Math.min(i+s,o):e===K.PAGE_UP&&(a=Math.max(i-s,0)),a!==-1&&this.highlightItem(t[a])}refreshAriaRole(){Lr(this.getGui(),this.options.length===0?"presentation":"listbox")}updateIndices(){this.refreshAriaRole();const e=this.listItems,t=e.length;e.forEach((n,i)=>{n.setIndex(i+1,t)})}fireChangeEvent(){this.dispatchLocalEvent({type:"fieldValueChanged"}),this.fireItemSelected()}fireItemSelected(){this.dispatchLocalEvent({type:"selectedItem"})}},A6=".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(.invalid){background-color:var(--ag-input-invalid-background-color);border:var(--ag-input-invalid-border);color:var(--ag-input-invalid-text-color)}}.ag-picker-field-wrapper:where(.ag-picker-has-focus),.ag-picker-field-wrapper: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)}}.ag-picker-field-wrapper:disabled{opacity:.5}",I6={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"}}]}]},M6=class extends XR{constructor(e){if(super(e,e?.template||I6,e?.agComponents||[],e?.className),this.isPickerDisplayed=!1,this.skipClick=!1,this.pickerGap=4,this.hideCurrentPicker=null,this.eLabel=de,this.eWrapper=de,this.eDisplayField=de,this.eIcon=de,this.registerCSS(A6),this.ariaRole=e?.ariaRole,this.onPickerFocusIn=this.onPickerFocusIn.bind(this),this.onPickerFocusOut=this.onPickerFocusOut.bind(this),!e)return;const{pickerGap:t,maxPickerHeight:n,variableWidth:i,minPickerWidth:o,maxPickerWidth:r}=e;t!=null&&(this.pickerGap=t),this.variableWidth=!!i,n!=null&&this.setPickerMaxHeight(n),o!=null&&this.setPickerMinWidth(o),r!=null&&this.setPickerMaxWidth(r)}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:n,inputWidth:i}=this.config;if(n){const o=this.beans.iconSvc.createIconNoSpan(n);o&&this.eIcon.appendChild(o)}i!=null&&this.setInputWidth(i)}setupAria(){const e=this.getAriaElement();e.setAttribute("tabindex",this.gos.get("tabIndex").toString()),hg(e,!1),this.ariaRole&&Lr(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 K.UP:case K.DOWN:case K.ENTER:case K.SPACE:e.preventDefault(),this.onLabelOrWrapperMouseDown();break;case K.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:n,pickerAriaLabelValue:i,modalPicker:o=!0},maxPickerHeight:r,minPickerWidth:s,maxPickerWidth:a,variableWidth:l,beans:u,eWrapper:h}=this,f={modal:o,eChild:e,closeOnEsc:!0,closedCallback:()=>{const w=lg(u);this.beforeHidePicker(),w&&this.isAlive()&&this.getFocusableElement().focus()},ariaLabel:t(n,i),anchorToElement:h};e.style.position="absolute";const p=u.popupSvc,m=p.addPopup(f);l?(s&&(e.style.minWidth=s),e.style.width=gg(xd(h)),a&&(e.style.maxWidth=a)):Dd(e,a??xd(h));const v=r??`${fg(p.getPopupParent())}px`;return e.style.setProperty("max-height",v),this.alignPickerToComponent(),m.hideFunc}alignPickerToComponent(){if(!this.pickerComponent)return;const{pickerGap:e,config:{pickerType:t},beans:{popupSvc:n,gos:i},eWrapper:o,pickerComponent:r}=this,s=i.get("enableRtl")?"right":"left";n.positionPopupByComponent({type:t,eventSource:o,ePopup:r.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();hg(t,e);const n=this.eWrapper.classList;n.toggle("ag-picker-expanded",e),n.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 Dd(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()}},k6=".ag-select{align-items:center;display:flex;&.ag-disabled{opacity:.5}}.ag-select:where(:not(.ag-cell-editor,.ag-label-align-top)){min-height:var(--ag-list-item-height)}:where(.ag-select){.ag-picker-field-wrapper{cursor:default;padding-left:var(--ag-spacing);padding-right:var(--ag-spacing)}&.ag-disabled .ag-picker-field-wrapper:focus{box-shadow:none}.ag-picker-field-display{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ag-picker-field-icon{align-items:center;display:flex}}.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(.ag-ltr) .ag-select-list-item{padding-left:var(--ag-spacing)}:where(.ag-rtl) .ag-select-list-item{padding-right:var(--ag-spacing)}.ag-select-list-item-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}",av=class extends M6{constructor(e){super({pickerAriaLabelKey:"ariaLabelSelectField",pickerAriaLabelValue:"Select Field",pickerType:"ag-list",className:"ag-select",pickerIcon:"selectOpen",ariaRole:"combobox",...e}),this.registerCSS(k6)}postConstruct(){this.tooltipFeature=this.createOptionalManagedBean(this.beans.registry.createDynamicBean("tooltipFeature",!1,{shouldDisplayTooltip:fc(()=>this.eDisplayField),getGui:()=>this.getGui()})),super.postConstruct(),this.createListComponent(),this.eWrapper.tabIndex=this.gos.get("tabIndex");const{options:e,value:t,placeholder:n}=this.config;e!=null&&this.addOptions(e),t!=null&&this.setValue(t,!0),n&&t==null&&(this.eDisplayField.textContent=n),this.addManagedElementListeners(this.eWrapper,{focusout:this.onWrapperFocusOut.bind(this)})}onWrapperFocusOut(e){this.eWrapper.contains(e.relatedTarget)||this.hidePicker()}createListComponent(){const e=this.createBean(new T6("select"));this.listComponent=e,e.setParentComponent(this);const t=e.getAriaElement(),n=`ag-select-list-${e.getCompId()}`;t.setAttribute("id",n),wL(this.getAriaElement(),t),e.addManagedElementListeners(e.getGui(),{mousedown:i=>{i?.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===K.TAB&&this.hidePicker(),t){case K.ENTER:case K.UP:case K.DOWN:case K.PAGE_UP:case K.PAGE_DOWN:case K.PAGE_HOME:case K.PAGE_END:e.preventDefault(),this.isPickerDisplayed?this.listComponent?.handleKeyDown(e):super.onKeyDown(e);break;case K.ESCAPE:super.onKeyDown(e);break;case K.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,n){const{listComponent:i,config:{placeholder:o},eDisplayField:r,tooltipFeature:s}=this;if(this.value===e||!i)return this;if(n||i.setValue(e,!0),i.getValue()===this.getValue())return this;let l=i.getDisplayValue();return l==null&&o&&(l=o),r.textContent=l,s?.setTooltipAndRefresh(l??null),super.setValue(e,t)}destroy(){this.listComponent=this.destroyBean(this.listComponent),super.destroy()}},L6={selector:"AG-SELECT",component:av},_6={tag:"div",cls:"ag-cell-edit-wrapper",children:[{tag:"ag-select",ref:"eEditor",cls:"ag-cell-editor"}]},O6=class extends Qd{constructor(){super(_6,[L6]),this.eEditor=de,this.startedByEnter=!1}wireBeans(e){this.valueSvc=e.valueSvc}initialiseEditor(e){this.focusAfterAttached=e.cellStartedEdit;const{eEditor:t,valueSvc:n,gos:i}=this,{values:o,value:r,eventKey:s}=e;if(Nt(o)){se(58);return}this.startedByEnter=s!=null?s===K.ENTER:!1;let a=!1;o.forEach(f=>{const p={value:f},m=n.formatValue(e.column,null,f),v=m!=null;p.text=v?m:f,t.addOption(p),a=a||r===f}),a?t.setValue(e.value??void 0,!0):e.values.length&&t.setValue(e.values[0],!0);const{valueListGap:l,valueListMaxWidth:u,valueListMaxHeight:h}=e;l!=null&&t.setPickerGap(l),h!=null&&t.setPickerMaxHeight(h),u!=null&&t.setPickerMaxWidth(u),i.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()}agSetEditValue(e){this.params.value=e,this.eEditor.setValue(e??void 0,!0)}getValue(){return this.eEditor.getValue()}isPopup(){return!1}getValidationElement(){return this.eEditor.getAriaElement()}getValidationErrors(){const{params:e}=this,{values:t,getValidationErrors:n}=e,i=this.getValue();let o=[];if(t&&i!=null&&!t.includes(i)){const r=this.getLocaleTextFunc();o.push(r("invalidSelectionValidation","Invalid selection."))}else o=null;return n?n({value:i,internalErrors:o,cellEditorParams:e}):o}},N6={tag:"ag-input-text-field",ref:"eEditor",cls:"ag-cell-editor"},B6=class{constructor(e){this.getLocaleTextFunc=e}getTemplate(){return N6}getAgComponents(){return[Ph]}init(e,t){this.eEditor=e,this.params=t;const n=t.maxLength;n!=null&&e.setMaxLength(n)}getValidationErrors(){const{params:e}=this,{maxLength:t,getValidationErrors:n}=e,i=this.getValue(),o=this.getLocaleTextFunc();let r=[];return t!=null&&typeof i=="string"&&i.length>t&&r.push(o("maxLengthValidation",`Must be ${t} characters or fewer.`,[String(t)])),r.length||(r=null),n?n({value:i,cellEditorParams:e,internalErrors:r}):r}getValue(){const{eEditor:e,params:t}=this,n=e.getValue();return!Ce(n)&&!Ce(t.value)?t.value:t.parseValue(n)}getStartValue(){const e=this.params;return e.useFormatter||e.column.getColDef().refData?e.formatValue(e.value):e.value}setCaret(){zr()&&this.eEditor.getInputElement().focus({preventScroll:!0});const e=this.eEditor,t=e.getValue(),n=Ce(t)&&t.length||0;n&&e.getInputElement().setSelectionRange(n,n)}},bx=class extends Eh{constructor(){super(new B6(()=>this.getLocaleTextFunc()))}};function G6(e){e.undoRedo?.undo("api")}function H6(e){e.undoRedo?.redo("api")}function V6(e,t){return e.editModelSvc?.getEditRowDataValue(t,{checkSiblings:!0})}function W6(e){const t=e.editModelSvc?.getEditMap(),n=[];return t?.forEach((i,o)=>{const{rowIndex:r,rowPinned:s}=o;i.forEach((a,l)=>{const{editorValue:u,pendingValue:h,sourceValue:f,state:p}=a,m=so(a);let v=u??h;v===dn&&(v=void 0);const w={newValue:v,oldValue:f,state:p,column:l,colId:l.getColId(),colKey:l.getColId(),rowIndex:r,rowPinned:s},b=p==="editing";(b||!b&&m)&&n.push(w)})}),n}function z6(e,t=!1){const{editSvc:n}=e;if(n?.isBatchEditing()){if(t)for(const i of e.editModelSvc?.getEditPositions()??[])i.state==="editing"&&n.revertSingleCellEdit(i);else Qr(e,{persist:!0});Yr(e,void 0,{cancel:t})}else n?.stopEditing(void 0,{cancel:t,source:"edit",forceStop:!t,forceCancel:t})}function U6(e,t){const n=ft(e,t);return!!e.editSvc?.isEditing(n)}function $6(e,t){const{key:n,colKey:i,rowIndex:o,rowPinned:r}=t,{editSvc:s,colModel:a}=e,l=a.getCol(i);if(!l){se(12,{colKey:i});return}const h=Eo(e,{rowIndex:o,rowPinned:r||null});if(!h){se(290,{rowIndex:o,rowPinned:r});return}if(!s?.isCellEditable({rowNode:h,column:l},"api"))return;r==null&&nx(e,o),tx(e,i),s?.startEditing({rowNode:h,column:l},{event:n?new KeyboardEvent("keydown",{key:n}):void 0,source:"api",editable:!0})}function j6(e){return e.editSvc?.validateEdit()||null}function K6(e){return e.undoRedo?.getCurrentUndoStackSize()??0}function q6(e){return e.undoRedo?.getCurrentRedoStackSize()??0}var Q6={tag:"div",cls:"ag-popup-editor",attrs:{tabindex:"-1"}},Y6=class extends Kg{constructor(e){super(Q6),this.params=e}postConstruct(){ks(this.gos,this.getGui(),"popupEditorWrapper",!0),this.addKeyDownListener()}addKeyDownListener(){const e=this.getGui(),t=this.params,n=i=>{pm(this.gos,i,t.node,t.column,!0)||t.onKeyDown(i)};this.addManagedElementListeners(e,{keydown:n})}};function Z6(e,{column:t},n,i,o="ui"){if(n instanceof KeyboardEvent&&(n.key===K.TAB||n.key===K.ENTER||n.key===K.F2||n.key===K.BACKSPACE&&i))return!0;if(n?.shiftKey&&e.rangeSvc?.getCellRanges().length!=0)return!1;const s=t?.getColDef(),a=X6(e.gos,s),l=n?.type;return l==="click"&&n?.detail===1&&a===1||l==="dblclick"&&n?.detail===2&&a===2?!0:o==="api"?!!i:!1}function X6(e,t){return e.get("suppressClickEdit")===!0?0:e.get("singleClickEdit")===!0||t?.singleClickEdit?1:2}function lv(e,t){return e.editModelSvc?.hasEdits(t,{withOpenEditor:!0})??!1}function cv(e,t){const n=t.column,i=t.rowNode,o=n.getColDef();if(!i)return lv(e,t);const r=o.editable;return i.group&&o.groupRowEditable!=null?e.rowGroupingEditValueSvc?.isGroupCellEditable(i,n)?!0:lv(e,t):n.isColumnFunc(i,r)?!0:lv(e,t)}function J6(e,t,n="ui"){const i=cv(e,t);if(i||n==="ui")return i;const{rowNode:o,column:r}=t;for(const s of e.colModel.getCols())if(s!==r&&cv(e,{rowNode:o,column:s}))return!0;return!1}var Dh=(e,t=!1)=>{if(e!==void 0)return so(e)||t&&e.state==="editing"};function yx(e,t,n=!1){return Dh(e.editModelSvc?.getEdit(t),n)}var Sx=(e,t,n)=>{if(e)for(let i=0,o=e.length;i<o;++i){const r=e[i];if(r.data&&(Dh(t?.getEdit({rowNode:r,column:n}))||Dh(t?.getEdit({rowNode:r.pinnedSibling,column:n})))||Sx(r.childrenAfterGroup,t,n))return!0}};function Rx(e,t){const{column:n,rowNode:i}=t;return e.gos.get("groupTotalRow")&&!i?.footer?!1:Sx(i?.childrenAfterGroup,e.editModelSvc,n)}function Fx(e,{rowNode:t,column:n}){if(t=t.pinnedSibling,!!t)return Dh(e.editModelSvc?.getEdit({rowNode:t,column:n}))}var e4=class extends X{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:n}=this;if(t?.isBatchEditing()&&t.isEditing()){const o=yx(n,e)||Rx(n,e)||Fx(n,e);this.applyBatchingStyle(o)}else this.applyBatchingStyle(!1);const i=!!this.editModelSvc?.getCellValidationModel().hasCellValidation(this.cellCtrl);this.cellComp.toggleCss("ag-cell-editing-error",i)}applyBatchingStyle(e){this.cellComp.toggleCss("ag-cell-editing",e??!1),this.cellComp.toggleCss("ag-cell-batch-edit",(e&&this.editSvc?.isBatchEditing())??!1)}},t4=class extends X{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:n}=this;let i=e.rowNode,o=t?.getEditRow(i);const r=this.editModelSvc?.getRowValidationModel().hasRowValidation({rowNode:i});if(!o&&i.pinnedSibling&&(i=i.pinnedSibling,o=t?.getEditRow(i)),o){const s=Array.from(o.keys()).some(a=>{const l={rowNode:i,column:a};return yx(n,l,!0)||Rx(n,l)||Fx(n,l)});this.applyStyle(r,s);return}this.applyStyle(r)}applyStyle(e=!1,t=!1){const n=!!this.editSvc?.isBatchEditing(),i=this.gos.get("editType")==="fullRow";this.rowCtrl?.forEachGui(void 0,({rowComp:o})=>{o.toggleCss("ag-row-editing",i&&t),o.toggleCss("ag-row-batch-edit",i&&t&&n),o.toggleCss("ag-row-inline-editing",t),o.toggleCss("ag-row-not-inline-editing",!t),o.toggleCss("ag-row-editing-invalid",i&&t&&e)})}},n4=({rowModel:e,pinnedRowModel:t,editModelSvc:n},i)=>{const o=new Set;e.forEachNode(r=>i.has(r)&&o.add(r)),t?.forEachPinnedRow("top",r=>i.has(r)&&o.add(r)),t?.forEachPinnedRow("bottom",r=>i.has(r)&&o.add(r));for(const r of i)o.has(r)||n.removeEdits({rowNode:r});return o},i4=({editModelSvc:e},t,n)=>{for(const i of t)e?.getEditRow(i)?.forEach((o,r)=>!n.has(r)&&e.removeEdits({rowNode:i,column:r}))},o4=e=>()=>{const t=new Set(e.colModel.getCols()),n=e.editModelSvc.getEditMap(!0),i=new Set(n.keys());i4(e,n4(e,i),t)},r4=new Set(["undo","redo","paste","bulk","rangeSvc"]),s4=new Set(["ui","api"]),xx={paste:"api",rangeSvc:"api",fillHandle:"api",cellClear:"api",bulk:"api"},a4=new Set(Object.keys(xx)),l4=new Set(["paste","rangeSvc","cellClear","redo","undo"]),uv={cancel:!0,source:"api"},c4={cancel:!1,source:"api"},Ys={checkSiblings:!0},Xr={force:!0,suppressFlash:!0},u4={force:!0},d4=class extends X{constructor(){super(...arguments),this.beanName="editSvc",this.committing=!1,this.batch=!1,this.batchStartDispatched=!1,this.stopping=!1,this.rangeSelectionWhileEditing=0}postConstruct(){const{beans:e}=this;this.model=e.editModelSvc,this.valueSvc=e.valueSvc,this.rangeSvc=e.rangeSvc,this.addManagedPropertyListener("editType",({currentValue:i})=>{this.stopEditing(void 0,uv),this.createStrategy(i)});const t=o4(e),n=()=>{const i=this.model.getCellValidationModel().getCellValidationMap().size>0,o=this.model.getRowValidationModel().getRowValidationMap().size>0;return i||o?this.stopEditing(void 0,uv):this.isEditing()&&(this.batch?Yr(e,this.model.getEditPositions()):this.stopEditing(void 0,c4)),!1};this.addManagedEventListeners({columnPinned:t,columnVisible:t,columnRowGroupChanged:t,rowExpansionStateChanged:t,pinnedRowsChanged:t,displayedRowsChanged:t,sortChanged:n,filterChanged:n,cellFocused:this.onCellFocused.bind(this)})}isBatchEditing(){return this.batch}startBatchEditing(){this.batch||(this.batch=!0,this.batchStartDispatched=!1,this.stopEditing(void 0,uv))}stopBatchEditing(e){this.batch&&(e&&this.stopEditing(void 0,e),this.batchStartDispatched&&this.dispatchBatchStopped(new Map,!1),this.batch=!1,this.batchStartDispatched=!1)}ensureBatchStarted(){!this.batch||this.batchStartDispatched||(this.batchStartDispatched=!0,this.dispatchBatchEvent("batchEditingStarted",new Map))}createStrategy(e){const{beans:t,gos:n,strategy:i}=this,o=Px(n,e);if(i){if(i.beanName===o)return i;this.destroyStrategy()}return this.strategy=this.createOptionalManagedBean(t.registry.createDynamicBean(o,!0))}destroyStrategy(){this.strategy&&(this.strategy.destroy(),this.strategy=this.destroyBean(this.strategy))}shouldStartEditing(e,t,n,i="ui"){const o=Z6(this.beans,e,t,n,i);return o&&(this.strategy??(this.strategy=this.createStrategy())),o}shouldStopEditing(e,t,n="ui"){return this.strategy?.shouldStop(e,t,n)??null}shouldCancelEditing(e,t,n="ui"){return this.strategy?.shouldCancel(e,t,n)??null}validateEdit(){return K5(this.beans)}isEditing(e,t){return this.model.hasEdits(e??void 0,t??Ys)}isRowEditing(e,t){return!!e&&this.model.hasRowEdits(e,t)}enableRangeSelectionWhileEditing(){this.beans.rangeSvc&&this.gos.get("cellSelection")&&this.rangeSelectionWhileEditing++}disableRangeSelectionWhileEditing(){this.rangeSelectionWhileEditing=Math.max(0,this.rangeSelectionWhileEditing-1)}isRangeSelectionEnabledWhileEditing(){return this.rangeSelectionWhileEditing>0}startEditing(e,t){const{startedEdit:n=!0,event:i=null,source:o="ui",ignoreEventKey:r=!1,silent:s}=t;if(this.strategy??(this.strategy=this.createStrategy()),!(t.editable??this.isCellEditable(e,"api")))return;const l=ft(this.beans,e);if(l&&!l.comp){t.editable=void 0,l.onCompAttachedFuncs.push(()=>this.startEditing(e,t));return}const u=this.shouldStartEditing(e,i,n,o);if(u===!1&&o!=="api"){this.isEditing(e)&&this.stopEditing();return}!this.batch&&this.shouldStopEditing(e,void 0,o)&&!t.continueEditing&&this.stopEditing(void 0,{source:o}),u&&this.ensureBatchStarted(),this.strategy.start({position:e,event:i,source:o,ignoreEventKey:r,startedEdit:n,silent:s})}stopEditing(e,t){const n=this.prepareStopContext(e,t);if(!n)return!1;this.stopping=!0;let i=!1,{edits:o}=n;try{const r=this.processStopRequest(n);return i||(i=r.res),o=r.edits,this.finishStopEditing({...n,edits:o,params:t,position:e,res:i}),i}finally{this.rangeSelectionWhileEditing=0,this.stopping=!1}}prepareStopContext(e,t){const{event:n=null,cancel:i=!1,source:o="ui",forceCancel:r=!1,forceStop:s=!1,commit:a=!1}=t||{};if(a4.has(o)&&this.batch)return e?.rowNode&&e?.column&&this.bulkRefreshCell(e),null;const l=this.committing?xx[o]:o;if(!(this.committing||this.isEditing(e)||this.batch&&this.model.hasEdits(e,Ys))||!this.strategy||this.stopping)return null;const h=ft(this.beans,e);h&&(h.onEditorAttachedFuncs=[]);const f=!i&&(!!this.shouldStopEditing(e,n,l)||(this.committing||o==="paste")&&!this.batch)||s,p=i&&!!this.shouldCancelEditing(e,n,l)||r;return{cancel:i,cellCtrl:h,edits:this.model.getEditMap(!0),event:n??null,forceCancel:r,forceStop:s,commit:a,position:e,source:o,treatAsSource:l,willCancel:p,willStop:f}}processStopRequest(e){const{event:t,position:n,willCancel:i,willStop:o}=e;return o||i?this.handleStopOrCancel(e):this.shouldHandleMidBatchKey(t,n)?{res:!1,edits:this.handleMidBatchKey(t,n,e)}:(Qr(this.beans,{persist:!0}),this.batch&&this.strategy?.cleanupEditors(n),{res:!1,edits:this.model.getEditMap()})}handleStopOrCancel(e){const{beans:t,model:n}=this,{cancel:i,commit:o,edits:r,event:s,source:a,willCancel:l,willStop:u}=e,h=!this.batch||!l;Qr(t,{persist:h,isCancelling:l||i,isStopping:u});const f=n.getEditMap(),m=!l&&(!this.batch||o)?this.processEdits(f,a):[];i?this.strategy?.stopCancelled(e.forceCancel):this.strategy?.stopCommitted(s,o),this.clearValidationIfNoOpenEditors();for(const v of m)n.clearEditValue(v);this.bulkRefreshMap(r);for(const v of n.getEditPositions(f)){const w=ft(t,v),b=so(v);w?.refreshCell({force:!0,suppressFlash:!b})}return{res:u,edits:f}}shouldHandleMidBatchKey(e,t){return e instanceof KeyboardEvent&&this.batch&&!!this.strategy?.midBatchInputsAllowed(t)&&this.isEditing(t,{withOpenEditor:!0})}handleMidBatchKey(e,t,n){const{beans:i,model:o}=this,{cellCtrl:r,edits:s}=n,{key:a}=e,l=a===K.ENTER,u=a===K.ESCAPE,h=a===K.TAB;if(l||h||u){if(l||h)Qr(i,{persist:!0});else if(u&&r){const{rowNode:f,column:p}=r;if(this.batch&&f&&p){const m={rowNode:f,column:p};Yr(i,[m],{silent:!0}),this.model.stop(m,!0,!0),ft(i,m)?.refreshCell(Xr)}else this.revertSingleCellEdit(r)}return this.batch?this.strategy?.cleanupEditors():Yr(i,o.getEditPositions(),{event:e,cancel:u}),e.preventDefault(),this.bulkRefreshMap(s,{suppressFlash:!0}),o.getEditMap()}return s}finishStopEditing({cellCtrl:e,edits:t,params:n,position:i,res:o,commit:r,forceCancel:s,willCancel:a,willStop:l}){const u=this.beans;o&&i&&(!this.batch||r)&&this.model.removeEdits(i),this.navigateAfterEdit(n,e?.cellPosition),kc(u),this.clearValidationIfNoOpenEditors();const{rowRenderer:h,formula:f}=u;if(a&&h.refreshRows({rowNodes:Array.from(t.keys())}),this.batch){f?f.refreshFormulas(!0):h.refreshRows({suppressFlash:!0,force:!0});const p=l&&r;(p||a&&s)&&this.dispatchBatchStopped(t,p)}}dispatchBatchStopped(e,t){let n;t&&(n=G5(e),n.size>0&&this.ensureBatchStarted()),this.batchStartDispatched&&(this.batchStartDispatched=!1,this.dispatchBatchEvent("batchEditingStopped",n??new Map))}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:n,suppressNavigateAfterEdit:i}=e;if(!(n instanceof KeyboardEvent)||i)return;const{key:r,shiftKey:s}=n,a=this.gos.get("enterNavigatesVerticallyAfterEdit");if(r!==K.ENTER||!a)return;const l=s?K.UP:K.DOWN;this.beans.navigation?.navigateToNextCell(null,l,t,!1)}processEdits(e,t){const n=Array.from(e.keys()),i=this.model.getCellValidationModel().getCellValidationMap().size>0||this.model.getRowValidationModel().getRowValidationMap().size>0,o=[],{changeDetectionSvc:r}=this.beans;r?.beginDeferred();try{for(const s of n){const a=e.get(s);for(const l of a.keys()){const u=a.get(l),h={rowNode:s,column:l};if(so(u)&&!i){const f=ft(this.beans,h);this.setNodeDataValue(s,l,u.pendingValue,f,t)||o.push(h)}}}}finally{r?.endDeferred()}return o}setNodeDataValue(e,t,n,i,o="edit"){const r=s4.has(o)?"edit":o;i&&(i.suppressRefreshCell=!0),this.committing=!0;try{return e.setDataValue(t,n,r)}finally{this.committing=!1,i&&(i.suppressRefreshCell=!1)}}syncEditAfterCommit(e,t){const n=this.model.getEdit(e);n&&n.state!=="editing"&&(t?this.beans.editModelSvc?.setEdit(e,{sourceValue:n.pendingValue}):this.model.clearEditValue(e))}setEditMap(e,t){this.strategy??(this.strategy=this.createStrategy()),this.strategy?.setEditMap(e,t),this.bulkRefreshMap(e);let n=Xr;t?.forceRefreshOfEditCellsOnly&&(n={...h4(e),...Xr}),this.beans.rowRenderer.refreshCells(n)}dispatchEditValuesChanged({rowNode:e,column:t},n={}){if(!e||!t||!n)return;const{pendingValue:i,sourceValue:o}=n,{rowIndex:r,rowPinned:s,data:a}=e;this.beans.eventSvc.dispatchEvent({type:"cellEditValuesChanged",node:e,rowIndex:r,rowPinned:s,column:t,source:"api",data:a,newValue:i,oldValue:o,value:i,colDef:t.getColDef()})}bulkRefreshCell(e,t){Yt(this.gos,this.beans.rowModel)&&this.refCell(e,this.model.getEdit(e),t)}bulkRefreshMap(e,t){Yt(this.gos,this.beans.rowModel)&&e.forEach((n,i)=>{for(const o of n.keys())this.refCell({rowNode:i,column:o},n.get(o),t)})}refCell({rowNode:e,column:t},n,i={}){const{beans:o,gos:r}=this,s=new Set([e]),a=new Set,l=e.pinnedSibling;l&&s.add(l);const u=e.sibling;u&&a.add(u);let h=e.parent;for(;h;)h.sibling?.footer&&r.get("groupTotalRow")||!h.parent&&h.sibling&&r.get("grandTotalRow")?a.add(h.sibling):a.add(h),h=h.parent;for(const f of s)this.dispatchEditValuesChanged({rowNode:f,column:t},n);for(const f of s)ft(o,{rowNode:f,column:t})?.refreshCell(i);for(const f of a){const p=ft(o,{rowNode:f,column:t});p&&(p.refreshCell(i),!i.force&&this.batch&&p.editStyleFeature?.applyCellStyles?.())}}stopAllEditing(e=!1,t="ui"){this.isEditing()&&this.stopEditing(void 0,{cancel:e,source:t})}isCellEditable(e,t="ui"){const{gos:n,beans:i}=this,o=e.rowNode;if(o.group&&e.column.getColDef().groupRowEditable==null){if(n.get("treeData")){if(!o.data&&!n.get("enableGroupEdit"))return!1}else if(!n.get("enableGroupEdit"))return!1}const r=Px(n)==="fullRow"?J6(i,e,t):cv(i,e);return r&&(this.strategy??(this.strategy=this.createStrategy())),r}cellEditingInvalidCommitBlocks(){return this.gos.get("invalidEditValueMode")==="block"}checkNavWithValidation(e,t,n=!0){if(this.hasValidationErrors(e)){const i=ft(this.beans,e);return this.cellEditingInvalidCommitBlocks()?(t?.preventDefault?.(),n&&(i&&!i.hasBrowserFocus()&&i.focusCell(),i?.comp?.getCellEditor()?.focusIn?.()),"block-stop"):(i&&this.revertSingleCellEdit(i),"revert-continue")}return"continue"}revertSingleCellEdit(e,t=!1){const n=ft(this.beans,e);n?.comp?.getCellEditor()&&(Yr(this.beans,[e],{silent:!0}),this.model.clearEditValue(e),js(this.beans,e,{silent:!0}),Zr(this.beans),n?.refreshCell(Xr),t&&(n?.focusCell(),n?.comp?.getCellEditor()?.focusIn?.()))}hasValidationErrors(e){Zr(this.beans);const t=ft(this.beans,e);t&&(t.refreshCell(Xr),t.rowCtrl.rowEditStyleFeature?.applyRowStyles());let n=!1;return e?.rowNode?(n||(n=this.model.getRowValidationModel().hasRowValidation({rowNode:e.rowNode})),e.column&&(n||(n=this.model.getCellValidationModel().hasCellValidation({rowNode:e.rowNode,column:e.column})))):(n||(n=this.model.getCellValidationModel().getCellValidationMap().size>0),n||(n=this.model.getRowValidationModel().getRowValidationMap().size>0)),n}moveToNextCell(e,t,n,i="ui"){let o;const r=this.isEditing(),s=r&&this.checkNavWithValidation(void 0,n)==="block-stop";return e instanceof ol&&r&&(o=this.strategy?.moveToNextEditingCell(e,t,n,i,s)),o===null||(o=o||!!this.beans.focusSvc.focusedHeader,o===!1&&!s&&this.stopEditing()),o}getPendingEditValue(e,t,n){if(n==="data"||n==="batch"&&!this.batch)return;const i=this.model.getEdit({rowNode:e,column:t},Ys);if(!i||this.stopping&&!this.batch&&!i.editorState?.cellStartedEditing)return;if(n==="edit"){const r=i.editorValue;if(r!=null&&r!==dn)return r}const o=i.pendingValue;if(o!==dn)return o}getCellDataValue(e){const t=this.model.getEdit(e,Ys);if(t){const n=t.pendingValue;if(n!==dn)return n;const i=t.sourceValue;if(i!=null)return i}return this.valueSvc.getValue(e.column,e.rowNode,"data")}addStopEditingWhenGridLosesFocus(e){O5(this,this.beans,e)}createPopupEditorWrapper(e){return new Y6(e)}batchResetToSourceValue(e){if(!this.batch)return!1;const t=this.model.getEdit(e);if(!t)return!1;const{pendingValue:n,sourceValue:i,state:o}=t;return n===i||o==="editing"?!1:(this.dispatchEditValuesChanged(e,{...t,pendingValue:i}),this.beans.editModelSvc?.removeEdits(e),ft(this.beans,e)?.refreshCell(Xr),!0)}setDataValue(e,t,n){try{const i=this.batch,o=this.isEditing(i?void 0:e);if((!o||this.committing)&&!i&&!l4.has(n)||!o&&!i&&n==="paste"||n==="batch"&&!i)return;if(n==="edit"){if(o&&this.applyEditorValue(e,t))return!0;if(!i)return}if(this.strategy??(this.strategy=this.createStrategy()),n==="batch"||n==="edit")return this.applyDirectValue(e,t,n);const r=this.beans;let s;if(i?s="ui":this.committing?s=n??"api":s="api",!n||r4.has(n))return this.applyDirectValue(e,t,n);const a=this.applyExistingEdit(e,t,n,s);return a!==void 0?a:(nl(r,e,t,n,void 0,{persist:!0}),this.ensureBatchStarted(),this.stopEditing(e,{source:s,suppressNavigateAfterEdit:!0}),!0)}finally{this.committing=!1}}applyExistingEdit(e,t,n,i){const o=this.model.getEdit(e);if(o)return o.pendingValue===t?!1:o.sourceValue!==t?(nl(this.beans,e,t,n,void 0,{persist:!0}),this.ensureBatchStarted(),this.stopEditing(e,{source:i,suppressNavigateAfterEdit:!0}),!0):(this.beans.editModelSvc?.removeEdits(e),this.ensureBatchStarted(),this.dispatchEditValuesChanged(e,{...o,pendingValue:t}),!0)}applyEditorValue(e,t){const n=this.beans,i=ft(n,e),o=i?.comp?.getCellEditor();return!i||!o?!1:(nl(n,e,t,"edit",void 0,{persist:!0}),i.editStyleFeature?.applyCellStyles?.(),"agSetEditValue"in o?(o.agSetEditValue(t),!0):o.refresh&&i.editCompDetails?(o.refresh({...i.editCompDetails.params,value:t}),!0):(i.hasBrowserFocus()&&i.onEditorAttachedFuncs.push(()=>{const s=ft(this.beans,e);s?.focusCell(!0),s?.comp?.getCellEditor()?.focusIn?.()}),Yr(n,[e],{silent:!0,cancel:!0}),js(n,e,{silent:!0}),Zr(n),ft(n,e)?.refreshCell(Xr),!0))}applyDirectValue(e,t,n){const i=this.beans;if(this.batch){if(n==="batch"&&ft(i,e)?.comp?.getCellEditor()){const{editModelSvc:s,valueSvc:a}=i,{rowNode:l,column:u}=e;s?.getEdit(e)?.sourceValue===void 0&&s?.setEdit(e,{sourceValue:a.getValue(u,l,"data")}),s?.setEdit(e,{pendingValue:t})}else nl(i,e,t,n,void 0,{persist:!0}),n!=="batch"&&this.cleanupEditors();return kc(i),this.ensureBatchStarted(),this.bulkRefreshCell(e),!0}nl(i,e,t,n,void 0,{persist:!0});const o=ft(i,e),r=this.setNodeDataValue(e.rowNode,e.column,t,o,n);return this.syncEditAfterCommit(e,r),kc(i),ft(i,e)?.refreshCell(r?u4:Xr),r}handleColDefChanged(e){V5(this.beans,e)}destroy(){this.model.clear(),this.destroyStrategy(),super.destroy()}prepDetailsDuringBatch(e,t){const{model:n}=this;if(!this.batch||!n.hasRowEdits(e.rowNode,Ys))return;const{rowNode:o}=e,{compDetails:r,valueToDisplay:s}=t;if(r){const{params:a}=r;return a.data=n.getEditRowDataValue(o,Ys),{compDetails:r}}return{valueToDisplay:s}}cleanupEditors(){this.strategy?.cleanupEditors()}dispatchCellEvent(e,t,n,i){this.strategy?.dispatchCellEvent(e,t,n,i)}dispatchBatchEvent(e,t){this.eventSvc.dispatchEvent(this.createBatchEditEvent(e,t))}createBatchEditEvent(e,t){return We(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},n){if(!n||n.length===0)return;const{beans:i,rangeSvc:o,valueSvc:r}=this,{formula:s}=i;Qr(i,{persist:!0});const a=this.model.getEditMap(!0);let l=a.get(e)?.get(t)?.pendingValue,u=!1;this.batch||(this.eventSvc.dispatchEvent({type:"bulkEditingStarted"}),u=!0);const h=s?.isFormula(l)??!1;n.forEach(p=>{const m=p.columns.some(v=>v?.isAllowFormula());if(o?.forEachRowInRange(p,v=>{const w=Eo(i,v);if(w===void 0)return;const b=a.get(w)??new Map;let y=l;for(const R of p.columns){if(!R)continue;const S=!!h&&R.isAllowFormula();if(this.isCellEditable({rowNode:w,column:R},"api")){const x=r.getValue(R,w,"data",!0);let P=r.parseValue(R,w??null,y,x);Number.isNaN(P)&&(P=null),b.set(R,{editorValue:void 0,pendingValue:P,sourceValue:x,state:"changed",editorState:{isCancelAfterEnd:void 0,isCancelBeforeStart:void 0}})}S&&(y=s?.updateFormulaByOffset({value:y,columnDelta:1}))}b.size>0&&a.set(w,b),h&&m&&(l=s?.updateFormulaByOffset({value:l,rowDelta:1}))}),this.setEditMap(a),this.batch){this.cleanupEditors(),kc(i),this.ensureBatchStarted();return}this.committing=!0;try{this.stopEditing(void 0,{source:"bulk"})}finally{this.committing=!1,u&&this.eventSvc.dispatchEvent({type:"bulkEditingStopped",changes:this.toEventChangeList(a)})}});const f=ft(i,{rowNode:e,column:t});f&&f.focusCell(!0)}createCellStyleFeature(e){return new e4(e,this.beans)}createRowStyleFeature(e){return new t4(e,this.beans)}setEditingCells(e,t){const{beans:n}=this,{colModel:i,valueSvc:o}=n,r=new Map;for(let{colId:s,column:a,colKey:l,rowIndex:u,rowPinned:h,newValue:f,state:p}of e){const m=s?i.getCol(s):l?i.getCol(l):a;if(!m)continue;const v=Eo(n,{rowIndex:u,rowPinned:h});if(!v)continue;const w=o.getValue(m,v,"data",!0);if(!t?.forceRefreshOfEditCellsOnly&&!so({pendingValue:f,sourceValue:w})&&p!=="editing")continue;let b=r.get(v);b||(b=new Map,r.set(v,b)),f===void 0&&(f=dn),b.set(m,{editorValue:void 0,pendingValue:f,sourceValue:w,state:p??"changed",editorState:{isCancelAfterEnd:void 0,isCancelBeforeStart:void 0}})}this.setEditMap(r,t)}onCellFocused(e){const t=ft(this.beans,e);if(!t||!this.isEditing(t,Ys))return;const n=this.model.getEdit(t);if(!n||!so(n))return;const o=this.getLocaleTextFunc()("ariaPendingChange","Pending Change");this.beans.ariaAnnounce?.announceValue(o,"pendingChange")}allowedFocusTargetOnValidation(e){return ft(this.beans,e)}};function h4(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 Px(e,t){return t??e.get("editType")??"singleCell"}var Ex=class extends X{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 n=e.previousParams,{editSvc:i,beans:o}=this,r=e.type==="cellFocused"?e.sourceEvent:null;n&&(t=ft(o,n));const{gos:s,editModelSvc:a}=o,l=e.type==="cellFocusCleared";if(i.isEditing(void 0,{withOpenEditor:!0})){const{column:u,rowIndex:h,rowPinned:f}=e,p={column:u,rowNode:Eo(o,{rowIndex:h,rowPinned:f})},m=s.get("invalidEditValueMode")==="block";if(m)return;const v=!m,w=!!a?.getCellValidationModel().hasCellValidation(p),b=v&&w;!(n||l)||i.stopEditing(void 0,{cancel:b,source:l&&v?"api":void 0,event:r})||(i.isBatchEditing()?i.cleanupEditors():i.stopEditing(void 0,{source:"api"}))}t?.refreshCell({suppressFlash:!0,force:!0})}stopCancelled(e){const t=this.editSvc.isBatchEditing()&&!e;for(const n of this.model.getEditPositions())Lc(this.beans,n,{cancel:!0},ft(this.beans,n)),this.model.stop(n,t,!0);return!0}stopCommitted(e,t){const n=this.model.getEditPositions(),i={all:[],pass:[],fail:[]};for(const s of n)i.all.push(s),(this.model.getCellValidationModel().getCellValidation(s)?.errorMessages?.length??0)>0?i.fail.push(s):i.pass.push(s);const o=this.processValidationResults(i),r=this.editSvc.isBatchEditing()&&!t;for(const s of o.destroy)Lc(this.beans,s,{event:e},ft(this.beans,s)),this.model.stop(s,r,!1);for(const s of o.keep){const a=ft(this.beans,s);!this.editSvc.cellEditingInvalidCommitBlocks()&&a&&this.editSvc.revertSingleCellEdit(a)}return!0}cleanupEditors({rowNode:e}={},t){Qr(this.beans,{persist:!1});const n=this.model.getEditPositions(),i=[];if(e)for(const o of n)o.rowNode!==e&&i.push(o);else for(const o of n)i.push(o);Yr(this.beans,i),kc(this.beans,t)}setFocusOutOnEditor(e){e.comp?.getCellEditor()?.focusOut?.()}setFocusInOnEditor(e){const t=e.comp,n=t?.getCellEditor();if(n?.focusIn)n.focusIn();else{const i=this.beans.gos.get("editType")==="fullRow";e.focusCell(i),e.onEditorAttachedFuncs.push(()=>t?.getCellEditor()?.focusIn?.())}}setupEditors(e){const{event:t,ignoreEventKey:n=!1,startedEdit:i,position:o,cells:r=this.model.getEditPositions()}=e,s=t instanceof KeyboardEvent&&!n&&t.key||void 0;B5(this.beans,r,o,s,t,i)}dispatchCellEvent(e,t,n,i){const o=ft(this.beans,e);o&&this.eventSvc.dispatchEvent({...o.createEvent(t??null,n),...i})}dispatchRowEvent(e,t,n){if(n)return;const i=vh(this.beans,e);i&&this.eventSvc.dispatchEvent(i.createRowEvent(t))}shouldStop(e,t,n="ui"){const i=this.editSvc.isBatchEditing();return i&&n==="api"?!0:i&&(n==="ui"||n==="edit")?!1:n==="api"?!0:t instanceof KeyboardEvent&&!i?t.key===K.ENTER:null}shouldCancel(e,t,n="ui"){const i=this.editSvc.isBatchEditing();return!!(t instanceof KeyboardEvent&&!i&&t.key===K.ESCAPE||i&&n==="api"||n==="api")}setEditMap(e,t){t?.update||this.editSvc.stopEditing(void 0,{cancel:!0,source:"api"});const n=[];if(e.forEach((i,o)=>{i.forEach((r,s)=>{r.state==="editing"&&n.push({...r,rowNode:o,column:s})})}),t?.update&&(e=new Map([...this.model.getEditMap(),...e])),this.model?.setEditMap(e),n.length>0){const i=n.at(-1),o=i.pendingValue===dn?void 0:i.pendingValue;this.start({position:i,event:new KeyboardEvent("keydown",{key:o}),source:"api"});const r=ft(this.beans,i);r&&this.setFocusInOnEditor(r)}}destroy(){this.cleanupEditors(),super.destroy()}},f4=class extends Ex{constructor(){super(...arguments),this.beanName="fullRow",this.startedRows=new Set}shouldStop(e,t,n="ui"){const{rowNode:i,beans:o}=this,{rowNode:r}=e||{};if(!vh(o,{rowNode:i}))return!0;const a=super.shouldStop({rowNode:i},t,n);return a!==null?a:i?r!==i:!1}midBatchInputsAllowed({rowNode:e}){return e?this.model.hasEdits({rowNode:e}):!1}clearEdits(e){this.model.clearEditValue(e)}start(e){const{position:t,silent:n,startedEdit:i,event:o,ignoreEventKey:r}=e,{rowNode:s}=t,{beans:a,model:l,startedRows:u}=this;this.rowNode!==s&&super.cleanupEditors(t);const h=a.visibleCols.allCols,f=[],p=[];for(const m of h)m.isCellEditable(s)&&p.push(m);if(p.length!=0){u.has(s)||(this.dispatchRowEvent({rowNode:s},"rowEditingStarted",n),u.add(s));for(const m of p){const v={rowNode:s,column:m};f.push(v),l.start(v)}this.rowNode=s,this.setupEditors({cells:f,position:t,startedEdit:i,event:o,ignoreEventKey:r})}}processValidationResults(e){return e.fail.length>0&&this.editSvc.cellEditingInvalidCommitBlocks()?{destroy:[],keep:e.all}:{destroy:e.all,keep:[]}}stopCancelled(e){const{rowNode:t,model:n}=this;return t&&!n.hasRowEdits(t)?!1:(super.stopCancelled(e),this.cleanupEditors({rowNode:t},!0),this.rowNode=void 0,!0)}stopCommitted(e,t){const{rowNode:n,beans:i,model:o,editSvc:r}=this;if(n&&!o.hasRowEdits(n))return!1;const s=[];if(o.getEditMap().forEach((a,l)=>{if(!(!a||a.size===0)){for(const u of a.values())if(so(u)){s.push(l);break}}}),Zr(i),r.checkNavWithValidation({rowNode:n})==="block-stop")return!1;if(super.stopCommitted(e,t),t||!r.isBatchEditing())for(const a of s)this.dispatchRowEvent({rowNode:a},"rowValueChanged");return this.cleanupEditors({rowNode:n},!0),this.rowNode=void 0,!0}onCellFocusChanged(e){const{rowIndex:t}=e,n=e.previousParams;if(n?.rowIndex===t||e.sourceEvent instanceof KeyboardEvent)return;const{beans:i,gos:o,model:r}=this;if(i.editSvc?.isRangeSelectionEnabledWhileEditing())return;const s=ft(i,n);o.get("invalidEditValueMode")==="block"&&s&&(r.getCellValidationModel().getCellValidation(s)||r.getRowValidationModel().getRowValidation(s))||super.onCellFocusChanged(e)}cleanupEditors(e={},t){super.cleanupEditors(e,t);const{startedRows:n}=this;for(const i of n)this.dispatchRowEvent({rowNode:i},"rowEditingStopped"),this.destroyEditorsForRow(i);n.clear()}destroyEditorsForRow(e){const t=vh(this.beans,{rowNode:e});if(!t)return;const n={};for(const i of t.getAllCellCtrls())i.comp?.getCellEditor()&&Lc(this.beans,i,n,i)}moveToNextEditingCell(e,t,n,i="ui",o=!1){const{beans:r,model:s,gos:a,editSvc:l}=this,u=e.cellPosition;let h;s.suspend(!0);try{h=r.navigation?.findNextCellToFocusOn(u,{backwards:t,startEditing:!0,skipToNextEditableCell:!1})}finally{s.suspend(!1)}if(h===!1)return null;if(h==null)return!1;const f=h.cellPosition,p=e.isCellEditable(),m=h.isCellEditable(),v=f&&u.rowIndex===f.rowIndex&&u.rowPinned===f.rowPinned;p&&this.setFocusOutOnEditor(e),this.restoreEditors();const w=a.get("suppressStartEditOnTab");return m&&!o?w?h.focusCell(!0,n):(h.comp?.getCellEditor()||js(r,h,{event:n,cellStartedEdit:!0}),this.setFocusInOnEditor(h),h.focusCell(!1,n)):(m&&o&&this.setFocusInOnEditor(h),h.focusCell(!0,n)),!v&&!o&&(l?.stopEditing({rowNode:e.rowNode},{event:n,forceStop:!0}),l?.isRowEditing(e.rowNode,{withOpenEditor:!0})&&this.cleanupEditors(h,!0),w?h.focusCell(!0,n):l.startEditing(h,{startedEdit:!0,event:n,source:i,ignoreEventKey:!0,editable:m||void 0})),e.rowCtrl?.refreshRow({suppressFlash:!0,force:!0}),!0}restoreEditors(){const{beans:e,model:t}=this;t.getEditMap().forEach((n,i)=>n.forEach(({state:o},r)=>{if(o!=="editing")return;const s=ft(e,{rowNode:i,column:r});s&&!s.comp?.getCellEditor()&&js(e,s,{silent:!0})}))}destroy(){super.destroy(),this.rowNode=void 0,this.startedRows.clear()}},p4=class extends Ex{constructor(){super(...arguments),this.beanName="singleCell"}shouldStop(e,t,n="ui"){const i=super.shouldStop(e,t,n);if(i!==null)return i;const o=e?.rowNode,r=e?.column,s=this.rowNode,a=this.column;return(!s||!a)&&o&&r?null:s!==o||a!==r?!0:!s&&!a?this.model.hasEdits(void 0,{withOpenEditor:!0}):!1}midBatchInputsAllowed(e){return this.model.hasEdits(e)}start(e){const{position:t,startedEdit:n,event:i,ignoreEventKey:o}=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:n,event:i,ignoreEventKey:o})}dispatchRowEvent(e,t,n){}processValidationResults(e){return e.fail.length>0&&this.editSvc.cellEditingInvalidCommitBlocks()?{destroy:[],keep:e.all}:{destroy:e.all,keep:[]}}stopCancelled(e){return super.stopCancelled(e),this.clearPosition()}stopCommitted(e,t){return super.stopCommitted(e,t),this.clearPosition()}clearPosition(){return this.rowNode=void 0,this.column=void 0,!0}onCellFocusChanged(e){const{colModel:t,editSvc:n}=this.beans,{rowIndex:i,column:o,rowPinned:r}=e,s=Eo(this.beans,{rowIndex:i,rowPinned:r}),a=$m(o),l=t.getCol(a),u=e.previousParams;if(u){const h=$m(u.column);if(u?.rowIndex===i&&h===a&&u?.rowPinned===r)return}e.type=="cellFocused"&&(n?.isRangeSelectionEnabledWhileEditing()||n?.isEditing({rowNode:s,column:l},{withOpenEditor:!0}))||super.onCellFocusChanged(e)}moveToNextEditingCell(e,t,n,i="ui",o=!1){const r=this.beans.focusSvc.getFocusedCell();r&&(e=Qa(this.beans,r)??e);const s=e.cellPosition;let a;const l=this.beans.gos.get("editType")==="fullRow";l&&this.model.suspend(!0),o||(e.eGui.focus(),this.editSvc?.stopEditing(e,{source:this.editSvc?.isBatchEditing()?"ui":"api",event:n}));try{a=this.beans.navigation?.findNextCellToFocusOn(s,{backwards:t,startEditing:!0})}finally{l&&this.model.suspend(!1)}if(a===!1)return null;if(a==null)return!1;const u=a.cellPosition,h=e.isCellEditable(),f=a.isCellEditable(),p=u&&s.rowIndex===u.rowIndex&&s.rowPinned===u.rowPinned;h&&!o&&this.setFocusOutOnEditor(e);const m=this.gos.get("suppressStartEditOnTab");let v=!1;if(!p&&!o&&(super.cleanupEditors(a,!0),m?a.focusCell(!0,n):(v=!0,this.editSvc.startEditing(a,{startedEdit:!0,event:n,source:i,ignoreEventKey:!0,editable:f}))),f&&!o){if(a.focusCell(!1,n),m)a.focusCell(!0,n);else if(!a.comp?.getCellEditor()){if(!v){const w=this.editSvc?.isEditing(a,{withOpenEditor:!0});js(this.beans,a,{event:n,cellStartedEdit:!0,silent:w})}this.setFocusInOnEditor(a),this.cleanupEditors(a)}}else f&&o&&this.setFocusInOnEditor(a),a.focusCell(!0,n);return e.rowCtrl?.refreshRow({suppressFlash:!0,force:!0}),!0}destroy(){super.destroy(),this.rowNode=void 0,this.column=void 0}},Jr={moduleName:"EditCore",version:me,beans:[_5,d4],apiFunctions:{getEditingCells:W6,getEditRowValues:V6,getCellEditorInstances:N5,startEditingCell:$6,stopEditing:z6,isEditing:U6,validateEdit:j6},dynamicBeans:{singleCell:p4,fullRow:f4},dependsOn:[xh,vx],css:[a6]},g4={moduleName:"UndoRedoEdit",version:me,beans:[s6],apiFunctions:{undoCellEditing:G6,redoCellEditing:H6,getCurrentUndoSize:K6,getCurrentRedoSize:q6},dependsOn:[Jr]},m4={moduleName:"TextEditor",version:me,userComponents:{agCellEditor:bx,agTextCellEditor:bx},dependsOn:[Jr]},v4={moduleName:"NumberEditor",version:me,userComponents:{agNumberCellEditor:{classImp:F6}},dependsOn:[Jr]},C4={moduleName:"DateEditor",version:me,userComponents:{agDateCellEditor:f6,agDateStringCellEditor:m6},dependsOn:[Jr]},w4={moduleName:"CheckboxEditor",version:me,userComponents:{agCheckboxCellEditor:c6},dependsOn:[Jr]},b4={moduleName:"SelectEditor",version:me,userComponents:{agSelectCellEditor:O6},dependsOn:[Jr]},y4={moduleName:"LargeTextEditor",version:me,userComponents:{agLargeTextCellEditor:b6},dependsOn:[Jr]},S4={moduleName:"CustomEditor",version:me,dependsOn:[Jr]},Dx={agSetColumnFilter:"agSetColumnFilterHandler",agMultiColumnFilter:"agMultiColumnFilterHandler",agGroupColumnFilter:"agGroupColumnFilterHandler",agNumberColumnFilter:"agNumberColumnFilterHandler",agBigIntColumnFilter:"agBigIntColumnFilterHandler",agDateColumnFilter:"agDateColumnFilterHandler",agTextColumnFilter:"agTextColumnFilterHandler"},R4=new Set(Object.values(Dx));function es(e,t){const n=e.filterUi;if(!n)return null;if(n.created)return n.promise;if(t)return null;const i=n.create(n.refreshed),o=n;return o.created=!0,o.promise=i,i}function F4(e,t,n,i,o,r,s){return t.refresh?.({...n,model:i,source:r,additionalEventAttributes:s}),e().then(a=>{if(a){const{filter:l,filterParams:u}=a;Tx(l,u,i,o,r,s)}})}function Tx(e,t,n,i,o,r){e?.refresh?.({...t,model:n,state:i,source:o,additionalEventAttributes:r})}function Ax(e,t,n,i){const o=e();o?.created&&o.promise.then(r=>{const s=t();Tx(r,o.filterParams,s,n()??{model:s},"ui",i)})}function Ix(e){let t,n=!1,i;const{action:o,filterParams:r,getFilterUi:s,getModel:a,getState:l,updateState:u,updateModel:h,processModelToApply:f}=e;switch(o){case"apply":{const p=l();i=p?.model??null,f&&(i=f(i)),t={state:p?.state,model:i},n=!0;break}case"clear":{t={model:null},r?.buttons?.includes("apply")||(n=!0,i=null);break}case"reset":{t={model:null},n=!0,i=null;break}case"cancel":{t={model:a()};break}}u(t),n?h(i):Ax(s,a,l,{fromAction:o})}function hn(e,t){return e[t]??null}var x4=class extends am{constructor(){super(...arguments),this.iconCreated=!1}wireComp(e,t,n,i,o){this.comp=e;const r=Dc(this,this.beans.context,o);this.eButtonShowMainFilter=n,this.eFloatingFilterBody=i,this.setGui(t,r),this.setupActive(),this.refreshHeaderStyles(),this.setupWidth(r),this.setupLeft(r),this.setupHover(r),this.setupFocus(r),this.setupAria(),this.setupFilterButton(),this.setupUserComp(),this.setupSyncWithFilter(r),this.setupUi(),r.addManagedElementListeners(this.eButtonShowMainFilter,{click:this.showParentFilter.bind(this)}),this.setupFilterChangedListener(r);const s=()=>this.onColDefChanged(r);r.addManagedListeners(this.column,{colDefChanged:s}),r.addManagedEventListeners({filterSwitched:({column:a})=>{a===this.column&&s()}}),r.addDestroyFunc(()=>{this.eButtonShowMainFilter=null,this.eFloatingFilterBody=null,this.userCompDetails=null,this.clearComponent()})}resizeHeader(){}moveHeader(){}getHeaderClassParams(){const{column:e,beans:t}=this,n=e.colDef;return We(t.gos,{colDef:n,column:e,floatingFilter:!0})}setupActive(){const e=this.column.getColDef(),t=!!e.filter,n=!!e.floatingFilter;this.active=t&&n}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=ii("filter",this.beans,this.column);e&&(this.iconCreated=!0,this.eButtonShowMainFilter.appendChild(e))}setupFocus(e){e.createManagedBean(new Rc(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();_a(this.eButtonShowMainFilter,e("ariaFilterMenuOpen","Open Filter Menu"))}onTabKeyDown(e){const{beans:t}=this;if(At(t)===this.eGui)return;const o=Bs(t,this.eGui,null,e.shiftKey);if(o){t.headerNavigation?.scrollToColumn(this.column),e.preventDefault(),o.focus();return}const r=this.findNextColumnWithFloatingFilter(e.shiftKey);r&&t.focusSvc.focusHeaderPosition({headerPosition:{headerRowIndex:this.rowCtrl.rowIndex,column:r},event:e})&&e.preventDefault()}findNextColumnWithFloatingFilter(e){const t=this.beans.visibleCols;let n=this.column;do if(n=e?t.getColBefore(n):t.getColAfter(n),!n)break;while(!n.getColDef().filter||!n.getColDef().floatingFilter);return n}handleKeyDown(e){super.handleKeyDown(e);const t=this.getWrapperHasFocus();switch(e.key){case K.UP:case K.DOWN:case K.LEFT:case K.RIGHT:if(t)return;Gs(e);case K.ENTER:t&&Ns(this.eGui)&&e.preventDefault();break;case K.ESCAPE:t||this.eGui.focus()}}onFocusIn(e){if(this.eGui.contains(e.relatedTarget))return;const n=!!e.relatedTarget&&!e.relatedTarget.classList.contains("ag-floating-filter"),i=!!e.relatedTarget&&Ds(e.relatedTarget,"ag-floating-filter");if(n&&i&&e.target===this.eGui){const o=this.lastFocusEvent,r=!!(o&&o.key===K.TAB);if(o&&r){const s=o.shiftKey;Ns(this.eGui,s)}}this.focusThis()}setupHover(e){this.beans.colHover?.addHeaderFilterColumnHoverListener(e,this.comp,this.column,this.eGui)}setupLeft(e){const t=new sm(this.column,this.eGui,this.beans);e.createManagedBean(t)}setupFilterButton(){this.suppressFilterButton=!this.beans.menuSvc?.isFloatingFilterButtonEnabled(this.column),this.highlightFilterButtonWhenActive=!ni(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:n,gos:i}=this,o=r=>{if(r?.source==="filterDestroyed"&&(!this.isAlive()||!t?.isAlive()))return;const s=this.comp.getFloatingFilterComp();s&&s.then(a=>{if(a){if(i.get("enableFilterHandlers")){const h=r;let f="filter";h?.afterFloatingFilter?f="ui":h?.afterDataChange?f="dataChanged":r?.source==="api"&&(f="api"),this.updateFloatingFilterParams(this.userCompDetails,f);return}const l=t?.getCurrentFloatingFilterParentModel(n),u=r?{...r,columns:r.columns??[],source:r.source==="api"?"api":"columnFilter"}:null;a.onParentModelChanged(l,u)}})};[this.destroySyncListener]=e.addManagedListeners(n,{filterChanged:o}),t?.isFilterActive(n)&&o(null)}setupWidth(e){const t=()=>{const n=`${this.column.getActualWidth()}px`;this.comp.setWidth(n)};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 n=!t&&this.active;t&&!this.active&&(this.destroySyncListener(),this.destroyFilterChangedListener());const i=this.beans.colFilter,o=this.active?i?.getFloatingFilterCompDetails(this.column,()=>this.showParentFilter()):null,r=this.comp.getFloatingFilterComp();!r||!o?this.updateCompDetails(e,o,n):r.then(s=>{!s||i?.areFilterCompsDifferent(this.userCompDetails??null,o)?this.updateCompDetails(e,o,n):this.updateFloatingFilterParams(o,"colDef")})}updateCompDetails(e,t,n){this.isAlive()&&(this.setCompDetails(t),this.setupFilterButton(),this.setupUi(),n&&(this.setupSyncWithFilter(e),this.setupFilterChangedListener(e)))}updateFloatingFilterParams(e,t){if(!e)return;let n=e.params;this.comp.getFloatingFilterComp()?.then(i=>{typeof i?.refresh=="function"&&(this.gos.get("enableFilterHandlers")&&(n={...n,model:hn(this.beans.colFilter?.model??{},this.column.getColId()),source:t}),i.refresh(n))})}addResizeAndMoveKeyboardListeners(){}destroy(){super.destroy(),this.destroySyncListener=null,this.destroyFilterChangedListener=null}};function P4(e,t){const n=e.colModel.getCol(t);if(!n){gt(12,{colKey:t});return}e.menuSvc?.showColumnMenu({column:n,positionBy:"auto"})}function E4(e){e.menuSvc?.hidePopupMenu()}var D4=class extends X{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(kx(this.beans),e,e.containerType,!0)}showHeaderContextMenu(e,t,n){this.activeMenuFactory?.showMenuAfterContextMenuEvent(e,t,n)}hidePopupMenu(){this.beans.contextMenuSvc?.hideActiveMenu(),this.activeMenuFactory?.hideActiveMenu()}hideFilterMenu(){kx(this.beans)?.hideActiveMenu()}isColumnMenuInHeaderEnabled(e){const{suppressHeaderMenuButton:t}=e.getColDef();return!t&&!!this.activeMenuFactory?.isMenuEnabled(e)&&(ni(this.gos)||!!this.beans.enterpriseMenuFactory)}isFilterMenuInHeaderEnabled(e){return!e.getColDef().suppressHeaderFilterButton&&!!this.beans.filterManager?.isFilterAllowed(e)}isHeaderContextMenuEnabled(e){return!(e&&Gr(e)?e.getColDef():e?.getColGroupDef())?.suppressHeaderContextMenu&&this.gos.get("columnMenu")==="new"}isHeaderMenuButtonAlwaysShowEnabled(){return this.isSuppressMenuHide()}isHeaderMenuButtonEnabled(){const e=!this.isSuppressMenuHide();return!(_s()&&e)}isHeaderFilterButtonEnabled(e){return this.isFilterMenuInHeaderEnabled(e)&&!ni(this.gos)&&!this.isFloatingFilterButtonDisplayed(e)}isFilterMenuItemEnabled(e){return!!this.beans.filterManager?.isFilterAllowed(e)&&!ni(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 ni(e)?e.exists("suppressMenuHide")?t:!1:t}showColumnMenuCommon(e,t,n,i){const{positionBy:o,onClosedCallback:r}=t,s=t.column;if(o==="button"){const{buttonElement:a}=t;e?.showMenuAfterButtonClick(s,a,n,r,i)}else if(o==="mouse"){const{mouseEvent:a}=t;e?.showMenuAfterMouseEvent(s,a,n,r,i)}else if(s){const a=this.beans,l=a.ctrlsSvc;l.getScrollFeature().ensureColumnVisible(s,"auto"),er(a,()=>{const u=l.getHeaderRowContainerCtrl(s.getPinned())?.getHeaderCtrlForColumn(s);u&&e?.showMenuAfterButtonClick(s,u.getAnchorElementForMenu(i),n,r,i)})}}};function Mx(e,t,n){e.menuVisible!==t&&(e.menuVisible=t,e.dispatchColEvent("menuVisibleChanged",n))}function kx(e){const{enterpriseMenuFactory:t,filterMenuFactory:n,gos:i}=e;return t&&ni(i)?t:n}var T4={moduleName:"SharedMenu",version:me,beans:[D4],apiFunctions:{showColumnMenu:P4,hidePopupMenu:E4}},A4=".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;:where(.ag-set-filter-group-closed-icon),:where(.ag-set-filter-group-indeterminate-icon),:where(.ag-set-filter-group-opened-icon){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{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%}.ag-floating-filter-input{align-items:center;display:flex;width:100%;>:where(.ag-date-floating-filter-wrapper),>:where(.ag-floating-filter-input),>:where(.ag-input-field){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(.ag-input-field-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;gap:var(--ag-widget-vertical-spacing);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:var(--ag-widget-container-vertical-padding);: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 I4(e){const t=e.filterManager;return!!t?.isColumnFilterPresent()||!!t?.isAggregateFilterPresent()}function M4(e,t){return e.filterManager?.getColumnFilterInstance(t)??Promise.resolve(void 0)}function k4(e,t){const n=e.colModel.getColDefCol(t);if(n)return e.colFilter?.destroyFilter(n,"api")}function L4(e,t){e.frameworkOverrides.wrapIncoming(()=>e.filterManager?.setFilterModel(t))}function _4(e){return e.filterManager?.getFilterModel()??{}}function O4(e,t,n){const{gos:i,colModel:o,colFilter:r}=e;n&&!i.get("enableFilterHandlers")&&(se(288),n=!1);const s=o.getColDefCol(t);return s?r?.getModelForColumn(s,n)??null:null}function N4(e,t,n){return e.filterManager?.setColumnFilterModel(t,n)??Promise.resolve()}function B4(e,t){const n=e.colModel.getCol(t);if(!n){gt(12,{colKey:t});return}e.menuSvc?.showFilterMenu({column:n,containerType:"columnFilter",positionBy:"auto"})}function G4(e){e.menuSvc?.hideFilterMenu()}function H4(e,t){const n=e.colModel.getCol(t);if(!n){gt(12,{colKey:t});return}return e.colFilter?.getHandler(n,!0)}function V4(e,t){const{colModel:n,colFilter:i,gos:o}=e;if(!o.get("enableFilterHandlers")){se(287);return}const{colId:r,action:s}=t;if(r){const a=n.getColById(r);a&&i?.updateModel(a,s)}else i?.updateAllModels(s)}var Lx={january:"January",february:"February",march:"March",april:"April",may:"May",june:"June",july:"July",august:"August",september:"September",october:"October",november:"November",december:"December"},_x=["january","february","march","april","may","june","july","august","september","october","november","december"];function W4(e,t){return e==null?-1:t==null?1:Number.parseFloat(e)-Number.parseFloat(t)}function z4(e,t){if(e==null)return-1;if(t==null)return 1;const n=oi(e),i=oi(t);return n!=null&&i!=null?n===i?0:n>i?1:-1:String(e).localeCompare(String(t))}function Ox(e){return e instanceof Date&&!isNaN(e.getTime())}var dv={number:()=>{},bigint:()=>{},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:Ox}),dateString:({dataTypeDefinition:e})=>({comparator:(t,n)=>{const i=e.dateParser(n);return n==null||i<t?-1:i>t?1:0},isValidDate:t=>typeof t=="string"&&Ox(e.dateParser(t))}),dateTime:e=>dv.date(e),dateTimeString:e=>dv.dateString(e),object:()=>{},text:()=>{}},hv={number:()=>({comparator:W4}),bigint:()=>({comparator:z4}),boolean:({t:e})=>({valueFormatter:t=>Ce(t.value)?e(String(t.value),t.value?"True":"False"):e("blanks","(Blanks)")}),date:({formatValue:e,t})=>({valueFormatter:n=>{const i=e(n);return Ce(i)?i:t("blanks","(Blanks)")},treeList:!0,treeListFormatter:(n,i)=>{if(n==="NaN")return t("invalidDate","Invalid Date");if(i===1&&n!=null){const o=_x[Number(n)-1];return t(o,Lx[o])}return n??t("blanks","(Blanks)")},treeListPathGetter:n=>hh(n,!1)}),dateString:({formatValue:e,dataTypeDefinition:t,t:n})=>({valueFormatter:i=>{const o=e(i);return Ce(o)?o:n("blanks","(Blanks)")},treeList:!0,treeListPathGetter:i=>hh(t.dateParser(i??void 0),!1),treeListFormatter:(i,o)=>{if(o===1&&i!=null){const r=_x[Number(i)-1];return n(r,Lx[r])}return i??n("blanks","(Blanks)")}}),dateTime:e=>{const t=hv.date(e);return t.treeListPathGetter=hh,t},dateTimeString(e){const t=e.dataTypeDefinition.dateParser,n=hv.dateString(e);return n.treeListPathGetter=i=>hh(t(i??void 0)),n},object:({formatValue:e,t})=>({valueFormatter:n=>{const i=e(n);return Ce(i)?i:t("blanks","(Blanks)")}}),text:()=>{}};function U4(e,t,n,i,o,r,s){let a=t,l=n;const u=e==="agSetColumnFilter";!l&&i.baseDataType==="object"&&!u&&(l=({column:m,node:v})=>o({column:m,node:v,value:r.valueSvc.getValue(m,v,"data")}));const f=(u?hv:dv)[i.baseDataType],p=f({dataTypeDefinition:i,formatValue:o,t:s});return a=typeof t=="object"?{...p,...t}:p,{filterParams:a,filterValueGetter:l}}var $4={boolean:"agTextColumnFilter",date:"agDateColumnFilter",dateString:"agDateColumnFilter",dateTime:"agDateColumnFilter",dateTimeString:"agDateColumnFilter",bigint:"agBigIntColumnFilter",number:"agNumberColumnFilter",object:"agTextColumnFilter",text:"agTextColumnFilter"},j4={boolean:"agTextColumnFloatingFilter",date:"agDateColumnFloatingFilter",dateString:"agDateColumnFloatingFilter",dateTime:"agDateColumnFloatingFilter",dateTimeString:"agDateColumnFloatingFilter",bigint:"agBigIntColumnFloatingFilter",number:"agNumberColumnFloatingFilter",object:"agTextColumnFloatingFilter",text:"agTextColumnFloatingFilter"};function K4(e,t=!1){return(t?j4:$4)[e??"text"]}function q4(e,t,n){if(t==null)return null;let i=null;const{compName:o,jsComp:r,fwComp:s}=A0(e,t);return o?i={agSetColumnFilter:"agSetColumnFloatingFilter",agMultiColumnFilter:"agMultiColumnFloatingFilter",agGroupColumnFilter:"agGroupColumnFloatingFilter",agNumberColumnFilter:"agNumberColumnFloatingFilter",agBigIntColumnFilter:"agBigIntColumnFloatingFilter",agDateColumnFilter:"agDateColumnFloatingFilter",agTextColumnFilter:"agTextColumnFloatingFilter"}[o]:r==null&&s==null&&t.filter===!0&&(i=n()),i}var Q4={filterHandler:()=>({doesFilterPass:()=>!0})};function Nx(e,t,n,i){if(!e.isPrimary())return!0;const r=!n;return!e.isValueActive()||!r?!1:t?!0:i}var Y4=class extends X{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={...Dx},this.isGlobalButtons=!1,this.activeFilterComps=new Set}postConstruct(){this.addManagedEventListeners({gridColumnsChanged:this.onColumnsChanged.bind(this),dataTypesInferred:this.processFilterModelUpdateQueue.bind(this)}),this.addManagedPropertyListener("pivotMode",this.onPivotModeChanged.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",n){const{colModel:i,dataTypeSvc:o,filterManager:r}=this.beans;if(o?.isPendingInference){this.modelUpdates.push({model:e,source:t});return}const s=[],a=this.getModel(!0);if(e){const l=new Set(Object.keys(e));this.allColumnFilters.forEach((u,h)=>{const f=e[h];s.push(this.setModelOnFilterWrapper(u,f)),l.delete(h)}),l.forEach(u=>{const h=i.getColDefCol(u)||i.getCol(u);if(!h){se(62,{colId:u});return}if(!h.isFilterAllowed()){se(63,{colId:u});return}const f=this.getOrCreateFilterWrapper(h,!0);if(!f){se(64,{colId:u});return}s.push(this.setModelOnFilterWrapper(f,e[u],!0))})}else this.model={},this.allColumnFilters.forEach(l=>{s.push(this.setModelOnFilterWrapper(l,null))});It.all(s).then(()=>{const l=this.getModel(!0),u=[];this.allColumnFilters.forEach((h,f)=>{const p=a?a[f]:null,m=l?l[f]:null;rc(p,m)||u.push(h.column)}),u.length>0?r?.onFilterChanged({columns:u,source:t}):n&&this.updateActive("filterChanged")})}getModel(e){const t={},{allColumnFilters:n,initialModel:i,beans:{colModel:o}}=this;if(n.forEach((r,s)=>{const a=this.getModelFromFilterWrapper(r);Ce(a)&&(t[s]=a)}),!e)for(const r of Object.keys(i)){const s=i[r];Ce(s)&&!n.has(r)&&o.getCol(r)?.isFilterAllowed()&&(t[r]=s)}return t}setState(e,t,n="api"){if(this.state.clear(),t)for(const i of Object.keys(t)){const o=t[i];this.state.set(i,{model:hn(this.model,i),state:o})}this.setModel(e,n,!0)}getState(){const e=this.state;if(!e.size)return;const t={};let n=!1;return e.forEach((i,o)=>{const r=i.state;r!=null&&(n=!0,t[o]=r)}),n?t:void 0}getModelFromFilterWrapper(e){const n=e.column.getColId();if(e.isHandler)return hn(this.model,n);const i=e.filter;return i?typeof i.getModel!="function"?(se(66),null):i.getModel():hn(this.initialModel,n)}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=l=>l?l.isFilterActive?l.isFilterActive():(se(67),!1):!1,{colModel:t,gos:n}=this.beans,i=!!_d(n),o=[],r=[],s=(l,u,h)=>{u&&(Nx(l,t.isPivotMode(),t.isPivotActive(),i)?o.push(h):r.push(h))},a=[];return this.allColumnFilters.forEach(l=>{const u=l.column,h=u.getColId();if(l.isHandler)a.push(It.resolve().then(()=>{s(u,this.isHandlerActive(u),{colId:h,isHandler:!0,handler:l.handler,handlerParams:l.handlerParams})}));else{const f=es(l);f&&a.push(f.then(p=>{s(u,e(p),{colId:h,isHandler:!1,comp:p})}))}}),It.all(a).then(()=>{this.activeAggregateFilters=o,this.activeColumnFilters=r})}updateFilterFlagInColumns(e,t){const n=[];return this.allColumnFilters.forEach(i=>{const o=i.column;if(i.isHandler)n.push(It.resolve().then(()=>{this.setColFilterActive(o,this.isHandlerActive(o),e,t)}));else{const r=es(i);r&&n.push(r.then(s=>{this.setColFilterActive(o,s.isFilterActive(),e,t)}))}}),this.beans.groupFilter?.updateFilterFlags(e,t),It.all(n)}doFiltersPass(e,t,n){const{data:i,aggData:o}=e,r=n?this.activeAggregateFilters:this.activeColumnFilters,s=n?o:i,a=this.model;for(let l=0;l<r.length;l++){const u=r[l],{colId:h,isHandler:f}=u;if(h!==t)if(f){const{handler:p,handlerParams:m}=u;if(!p.doesFilterPass({node:e,data:s,model:hn(a,h),handlerParams:m}))return!1}else{const p=u.comp;if(typeof p.doesFilterPass!="function"){gt(91);continue}if(!p.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:n}=this.beans,i=()=>{this.isAlive()&&n?.onFilterChanged(e)};t.isRefreshInProgress()?setTimeout(i,0):i()}updateBeforeFilterChanged(e={}){const{column:t,additionalEventAttributes:n}=e,i=t?.getColId();return this.updateActiveFilters().then(()=>this.updateFilterFlagInColumns("filterChanged",n).then(()=>{this.allColumnFilters.forEach(o=>{const{column:r,isHandler:s}=o;i!==r.getColId()&&(s&&o.handler.onAnyFilterChanged?.(),es(o,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(n=>{const i=n.isHandler;i&&n.handler.onNewRowsLoaded?.();const o=es(n,i);o&&t.push(o.then(r=>{r.onNewRowsLoaded?.()}))}),It.all(t).then(()=>this.updateActive(e,{afterDataChange:!0}))}updateActive(e,t){this.updateFilterFlagInColumns(e,t).then(()=>this.updateActiveFilters())}createGetValue(e,t){const{filterValueSvc:n,colModel:i}=this.beans;return(o,r)=>{const s=r?i.getCol(r):e;return s?n.getValue(s,o,t):void 0}}isFilterActive(e){const t=this.cachedFilter(e);if(t?.isHandler)return this.isHandlerActive(e);const n=t?.filter;return n?n.isFilterActive():hn(this.initialModel,e.getColId())!=null}isHandlerActive(e){const t=Ce(hn(this.model,e.getColId()));if(t)return t;const n=this.beans.groupFilter;return n?.isGroupFilter(e)?n.isFilterActive(e):!1}getOrCreateFilterUi(e){const t=this.getOrCreateFilterWrapper(e,!0);return t?es(t):null}getFilterUiForDisplay(e){const t=this.getOrCreateFilterWrapper(e,!0);if(!t)return null;const n=es(t);return n?n.then(i=>({comp:i,params:t.filterUi.filterParams,isHandler:t.isHandler})):null}getHandler(e,t){const n=this.getOrCreateFilterWrapper(e,t);return n?.isHandler?n.handler:void 0}getOrCreateFilterWrapper(e,t){if(!e.isFilterAllowed())return;let n=this.cachedFilter(e);return!n&&t&&(n=this.createFilterWrapper(e),this.setColumnFilterWrapper(e,n)),n}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 w_(this.gos)?t?"agSetColumnFloatingFilter":"agSetColumnFilter":K4(e(),t)}getDefaultFloatingFilter(e){return this.getDefaultFilter(e,!0)}createFilterComp(e,t,n,i,o,r){const s=()=>{const u=this.createFilterCompParams(e,o,r),h=i(u,o);return PO(this.beans.userCompFactory,t,h,n)},a=s();return a?{compDetails:a,createFilterUi:u=>(u?s():a).newAgStackInstance()}:null}createFilterInstance(e,t,n,i){const o=this.beans.selectableFilter;o?.isSelectable(t)&&(t=o.getFilterDef(e,t));const{handler:r,handlerParams:s,handlerGenerator:a}=this.createHandler(e,t,n)??{},l=this.createFilterComp(e,t,n,i,!!r,"init");if(!l)return{compDetails:null,createFilterUi:null,handler:r,handlerGenerator:a,handlerParams:s};const{compDetails:u,createFilterUi:h}=l;return this.isGlobalButtons&&(u.params?.buttons?.length||se(281,{colId:e.getColId()})),{compDetails:u,handler:r,handlerGenerator:a,handlerParams:s,createFilterUi:h}}createBaseFilterParams(e,t){const{filterManager:n,rowModel:i}=this.beans;return We(this.gos,{column:e,colDef:e.getColDef(),getValue:this.createGetValue(e),doesRowPassOtherFilter:t?()=>!0:o=>n?.doesRowPassOtherFilters(e.getColId(),o)??!0,rowModel:i})}createFilterCompParams(e,t,n,i){const o=this.filterChangedCallbackFactory(e),r=this.createBaseFilterParams(e,i);if(r.filterChangedCallback=o,r.filterModifiedCallback=i?()=>{}:s=>this.filterModified(e,s),t){const s=r,a=e.getColId(),l=hn(this.model,a);s.model=l,s.state=this.state.get(a)??{model:l},s.onModelChange=(u,h)=>{this.updateStoredModel(a,u),this.refreshHandlerAndUi(e,u,"ui",!1,h).then(()=>{o({...h,source:"columnFilter"})})},s.onStateChange=u=>{this.updateState(e,u),this.updateOrRefreshFilterUi(e)},s.onAction=(u,h,f)=>{this.updateModel(e,u,h),this.dispatchLocalEvent({type:"filterAction",column:e,action:u,event:f})},s.getHandler=()=>this.getHandler(e,!0),s.onUiChange=u=>this.filterUiChanged(e,u),s.source=n}return r}createFilterUiForHandler(e,t){return t?{created:!1,create:t,filterParams:e.params,compDetails:e}:null}createFilterUiLegacy(e,t,n){const i=t(),o={created:!0,create:t,filterParams:e.params,compDetails:e,promise:i};return i.then(n),o}createFilterWrapper(e){const{compDetails:t,handler:n,handlerGenerator:i,handlerParams:o,createFilterUi:r}=this.createFilterInstance(e,e.getColDef(),this.getDefaultFilter(e),a=>a),s=e.getColId();if(n)return delete this.initialModel[s],n.init?.({...o,source:"init",model:hn(this.model,s)}),{column:e,isHandler:!0,handler:n,handlerGenerator:i,handlerParams:o,filterUi:this.createFilterUiForHandler(t,r)};if(r){const a={column:e,filterUi:null,isHandler:!1};return a.filterUi=this.createFilterUiLegacy(t,r,l=>{a.filter=l??void 0}),a}return{column:e,filterUi:null,isHandler:!1}}createHandlerFunc(e,t,n){const{gos:i,frameworkOverrides:o,registry:r}=this.beans;let s;const a=m=>{const v=m.filter;if(x0(v)){const w=v.handler;return w||(s=v.doesFilterPass,s?()=>({doesFilterPass:s}):void 0)}return typeof v=="string"?v:void 0},l=i.get("enableFilterHandlers"),u=l?a(t):void 0,h=m=>()=>this.createBean(r.createDynamicBean(m,!0));let f,p;if(typeof u=="string"){const m=i.get("filterHandlers")?.[u];m!=null?f=m:R4.has(u)&&(f=h(u),p=u)}else f=u;if(!f){let m;const{compName:v,jsComp:w,fwComp:b}=A0(o,t);v?m=v:w==null&&b==null&&t.filter===!0&&(m=n),p=this.handlerMap[m],p&&(f=h(p))}return f?{filterHandler:f,handlerNameOrCallback:s??p}:l?(Yt(i)&&se(277,{colId:e.getColId()}),Q4):void 0}createHandler(e,t,n){const i=this.createHandlerFunc(e,t,n);if(!i)return;const o=_g(this.beans.userCompFactory,t,this.createFilterCompParams(e,!0,"init")),{handlerNameOrCallback:r,filterHandler:s}=i,{handler:a,handlerParams:l}=this.createHandlerFromFunc(e,s,o);return{handler:a,handlerParams:l,handlerGenerator:r??s}}createHandlerFromFunc(e,t,n){const i=e.getColDef(),o=t(We(this.gos,{column:e,colDef:i})),r=this.createHandlerParams(e,n);return{handler:o,handlerParams:r}}createHandlerParams(e,t){const n=e.getColDef(),i=e.getColId(),o=this.filterChangedCallbackFactory(e);return We(this.gos,{colDef:n,column:e,getValue:this.createGetValue(e),doesRowPassOtherFilter:r=>this.beans.filterManager?.doesRowPassOtherFilters(i,r)??!0,onModelChange:(r,s)=>{this.updateStoredModel(i,r),this.refreshHandlerAndUi(e,r,"handler",!1,s).then(()=>{o({...s,source:"columnFilter"})})},onModelAsStringChange:()=>{e.dispatchColEvent("filterChanged","filterChanged"),this.dispatchLocalEvent({type:"filterModelAsStringChanged",column:e})},filterParams:t})}onColumnsChanged(){const e=[],{colModel:t,filterManager:n,groupFilter:i}=this.beans;this.allColumnFilters.forEach((r,s)=>{let a;r.column.isPrimary()?a=t.getColDefCol(s):a=t.getCol(s),!(a&&a===r.column)&&(e.push(r.column),this.disposeFilterWrapper(r,"columnChanged"),this.disposeColumnListener(s))});const o=i&&e.every(r=>i.isGroupFilter(r));e.length>0&&!o&&n?.onFilterChanged({columns:e,source:"api"})}isFilterAllowed(e){if(!e.isFilterAllowed())return!1;const n=this.beans.groupFilter;return n?.isGroupFilter(e)?n.isFilterAllowed(e):!0}getFloatingFilterCompDetails(e,t){const{userCompFactory:n,frameworkOverrides:i,selectableFilter:o,gos:r}=this.beans,s=m=>{this.getOrCreateFilterUi(e)?.then(w=>{m($s(w))})},a=e.getColDef(),l=o?.isSelectable(a)?o.getFilterDef(e,a):a,u=q4(i,l,()=>this.getDefaultFloatingFilter(e))??"agReadOnlyFloatingFilter",h=r.get("enableFilterHandlers"),f=_g(n,l,this.createFilterCompParams(e,h,"init",!0)),p=We(r,{column:e,filterParams:f,currentParentModel:()=>this.getCurrentFloatingFilterParentModel(e),parentFilterInstance:s,showParentFilter:t});if(h){const m=p,v=e.getColId(),w=this.filterChangedCallbackFactory(e);m.onUiChange=b=>this.floatingFilterUiChanged(e,b),m.model=hn(this.model,v),m.onModelChange=(b,y)=>{this.updateStoredModel(v,b),this.refreshHandlerAndUi(e,b,"floating",!0,y).then(()=>{w({...y,source:"columnFilter"})})},m.getHandler=()=>this.getHandler(e,!0),m.source="init"}return TO(n,a,p,u)}getCurrentFloatingFilterParentModel(e){return this.getModelFromFilterWrapper(this.cachedFilter(e)??{column:e})}destroyFilterUi(e,t,n,i){const o="paramsUpdated";if(e.isHandler){const r=t.getColId();delete this.initialModel[r],this.state.delete(r);const s=e.filterUi,a=this.createFilterUiForHandler(n,i);e.filterUi=a;const l=this.eventSvc;s?.created?s.promise.then(u=>{this.destroyBean(u),l.dispatchEvent({type:"filterDestroyed",source:o,column:t})}):l.dispatchEvent({type:"filterHandlerDestroyed",source:o,column:t})}else this.destroyFilter(t,o)}destroyFilter(e,t="api"){const n=e.getColId(),i=this.allColumnFilters.get(n);this.disposeColumnListener(n),delete this.initialModel[n],i&&this.disposeFilterWrapper(i,t).then(o=>{o&&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 n=!1;const{column:i,isHandler:o,filterUi:r}=e,s=i.getColId();o&&(n=this.isHandlerActive(i),this.destroyBean(e.handler),delete this.model[s],this.state.delete(s));const a=()=>{this.setColFilterActive(i,!1,"filterDestroyed"),this.allColumnFilters.delete(s),this.eventSvc.dispatchEvent({type:"filterDestroyed",source:t,column:i})};if(r){if(r.created)return r.promise.then(l=>(n=o?n:!!l?.isFilterActive(),this.destroyBean(l),a(),n));a()}return It.resolve(n)}filterChangedCallbackFactory(e){return t=>{this.callOnFilterChangedOutsideRenderCycle({additionalEventAttributes:t,columns:[e],column:e,source:t?.source??"columnFilter"})}}filterParamsChanged(e,t="api"){const n=this.allColumnFilters.get(e);if(!n)return;const i=this.beans,o=n.column,r=o.getColDef(),s=o.isFilterAllowed(),a=this.getDefaultFilter(o),l=i.selectableFilter,u=l?.isSelectable(r)?l.getFilterDef(o,r):r,h=s?this.createHandlerFunc(o,u,this.getDefaultFilter(o)):void 0,f=!!h,p=n.isHandler;if(p!=f){this.destroyFilter(o,"paramsUpdated");return}const{compDetails:m,createFilterUi:v}=(s?this.createFilterComp(o,u,a,b=>b,f,"colDef"):null)??{compDetails:null,createFilterUi:null},w=m?.params??_g(i.userCompFactory,u,this.createFilterCompParams(o,f,"colDef"));if(p){const b=h?.handlerNameOrCallback??h?.filterHandler,y=hn(this.model,e);if(n.handlerGenerator!=b){const R=n.handler,{handler:S,handlerParams:x}=this.createHandlerFromFunc(o,h.filterHandler,w);n.handler=S,n.handlerParams=x,n.handlerGenerator=b,delete this.model[e],S.init?.({...x,source:"init",model:null}),this.destroyBean(R),y!=null&&this.beans.filterManager?.onFilterChanged({columns:[o],source:t})}else{const R=this.createHandlerParams(o,m?.params);n.handlerParams=R,n.handler.refresh?.({...R,source:"colDef",model:y})}}if(this.areFilterCompsDifferent(n.filterUi?.compDetails??null,m)||!n.filterUi||!m){this.destroyFilterUi(n,o,m,v);return}n.filterUi.filterParams=w,es(n,p)?.then(b=>{(b?.refresh?b.refresh(w):!0)===!1?this.destroyFilterUi(n,o,m,v):this.dispatchLocalEvent({type:"filterParamsChanged",column:o,params:w})})}refreshHandlerAndUi(e,t,n,i,o){const r=this.cachedFilter(e);if(!r)return i&&this.getOrCreateFilterWrapper(e,!0),It.resolve();if(!r.isHandler)return It.resolve();const{filterUi:s,handler:a,handlerParams:l}=r;return F4(()=>{if(s){const{created:u,filterParams:h}=s;if(u)return s.promise.then(f=>f?{filter:f,filterParams:h}:void 0);s.refreshed=!0}return It.resolve(void 0)},a,l,t,this.state.get(e.getColId())??{model:t},n,o)}setColumnFilterWrapper(e,t){const n=e.getColId();this.allColumnFilters.set(n,t),this.allColumnListeners.set(n,this.addManagedListeners(e,{colDefChanged:()=>this.filterParamsChanged(n)})[0])}areFilterCompsDifferent(e,t){if(!t||!e)return!0;const{componentClass:n}=e,{componentClass:i}=t;return!(n===i||n?.render&&i?.render&&n.render===i.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 n=this.getOrCreateFilterUi(t);return n?new Promise(i=>{n.then(o=>{i($s(o))})}):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:n})=>{this.setModelForColumn(e,t).then(()=>n())}),this.columnModelUpdates=[]}getModelForColumn(e,t){if(t){const{state:i,model:o}=this,r=e.getColId(),s=i.get(r);return s?s.model??null:hn(o,r)}const n=this.cachedFilter(e);return n?this.getModelFromFilterWrapper(n):null}setModelForColumn(e,t){if(this.beans.dataTypeSvc?.isPendingInference){let n=()=>{};const i=new Promise(o=>{n=o});return this.columnModelUpdates.push({key:e,model:t,resolve:n}),i}return new Promise(n=>{this.setModelForColumnLegacy(e,t).then(i=>n(i))})}getStateForColumn(e){return this.state.get(e)??{model:hn(this.model,e)}}setModelForColumnLegacy(e,t){const n=this.beans.colModel.getColDefCol(e),i=n?this.getOrCreateFilterWrapper(n,!0):null;return i?this.setModelOnFilterWrapper(i,t):It.resolve()}setColDefPropsForDataType(e,t,n){const i=e.filter,o=i===!0?this.getDefaultFilterFromDataType(()=>t.baseDataType):i;if(typeof o!="string")return;let r,s;const a=this.beans,{filterParams:l,filterValueGetter:u}=e;o==="agMultiColumnFilter"?{filterParams:r,filterValueGetter:s}=a.multiFilter?.getParamsForDataType(l,u,t,n)??{}:{filterParams:r,filterValueGetter:s}=U4(o,l,u,t,n,a,this.getLocaleTextFunc()),e.filterParams=r,s&&(e.filterValueGetter=s)}setColFilterActive(e,t,n,i){e.filterActive!==t&&(e.filterActive=t,e.dispatchColEvent("filterActiveChanged",n)),e.dispatchColEvent("filterChanged",n,i)}setModelOnFilterWrapper(e,t,n){return new It(i=>{if(e.isHandler){const r=e.column,s=r.getColId(),a=this.model[s];if(this.updateStoredModel(s,t),n&&t===a){i();return}this.refreshHandlerAndUi(r,t,"api").then(()=>i());return}const o=es(e);if(o){o.then(r=>{if(typeof r?.setModel!="function"){se(65),i();return}(r.setModel(t)||It.resolve()).then(()=>i())});return}i()})}updateStoredModel(e,t){Ce(t)?this.model[e]=t:delete this.model[e];const n=this.state.get(e),i={model:t,state:n?.state};this.state.set(e,i)}filterModified(e,t){this.getOrCreateFilterUi(e)?.then(n=>{this.eventSvc.dispatchEvent({type:"filterModified",column:e,filterInstance:n,...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,n){const i=e.getColId(),o=this.cachedFilter(e),r=()=>o?.filterUi;Ix({action:t,filterParams:o?.filterUi?.filterParams,getFilterUi:r,getModel:()=>hn(this.model,i),getState:()=>this.state.get(i),updateState:s=>this.updateState(e,s),updateModel:s=>r()?.filterParams?.onModelChange(s,{...n,fromAction:t}),processModelToApply:o?.isHandler?o.handler.processModelToApply?.bind(o.handler):void 0})}updateAllModels(e,t){const n=[];this.allColumnFilters.forEach((i,o)=>{const r=this.beans.colModel.getColDefCol(o);r&&Ix({action:e,filterParams:i.filterUi?.filterParams,getFilterUi:()=>i.filterUi,getModel:()=>hn(this.model,o),getState:()=>this.state.get(o),updateState:s=>this.updateState(r,s),updateModel:s=>{this.updateStoredModel(o,s),this.dispatchLocalEvent({type:"filterAction",column:r,action:e}),n.push(this.refreshHandlerAndUi(r,s,"ui"))},processModelToApply:i?.isHandler?i.handler.processModelToApply?.bind(i.handler):void 0})}),n.length&&It.all(n).then(()=>{this.callOnFilterChangedOutsideRenderCycle({source:"columnFilter",additionalEventAttributes:t,columns:[]})})}updateOrRefreshFilterUi(e){const t=e.getColId();Ax(()=>this.cachedFilter(e)?.filterUi,()=>hn(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:n}=this;for(const o of n)if(o.source==="COLUMN_MENU")return!1;let i=!1;for(const o of e.keys()){const r=e.get(o);if(r.valid===!1)return!1;(r.model??null)!==hn(t,o)&&(i=!0)}return i}hasUnappliedModel(e){const{model:t,state:n}=this;return(n.get(e)?.model??null)!==hn(t,e)}setGlobalButtons(e){this.isGlobalButtons=e,this.dispatchLocalEvent({type:"filterGlobalButtons",isGlobal:e})}shouldKeepStateOnDetach(e,t){if(t==="newFiltersToolPanel")return!0;const n=this.beans.filterPanelSvc;return n?.isActive?!!n.getState(e.getColId()):!1}onPivotModeChanged(e){const{colModel:t,pivotColsSvc:n}=this.beans,i=!!_d(this.gos),o=e.currentValue,r=o?this.activeColumnFilters:this.activeAggregateFilters,s=o?this.activeAggregateFilters:this.activeColumnFilters,a=[];for(const l of r){const u=t.getColById(l.colId),h=o&&!!n?.columns.length;u&&o===Nx(u,o,h,i)&&(s.push(l),a.push(l))}Zk(r,a)}destroy(){super.destroy(),this.allColumnFilters.forEach(e=>this.disposeFilterWrapper(e,"gridDestroyed")),this.allColumnListeners.clear(),this.state.clear(),this.activeFilterComps.clear()}};function Z4(e){return!!e.filterManager?.isAnyFilterPresent()}function X4(e,t="api"){e.filterManager?.onFilterChanged({source:t})}var J4=class extends X{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:i})=>this.onAdvFilterEnabledChanged(i),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:n}=this;this.alwaysPassFilter=n.get("alwaysPassFilter"),this.addManagedPropertyListener("alwaysPassFilter",()=>{this.alwaysPassFilter=n.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,n="api"){this.isAdvFilterEnabled()||this.colFilter?.setState(e,t,n)}setFilterModel(e,t="api",n){if(this.isAdvFilterEnabled()){n||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(){_d(this.gos)&&this.isAnyFilterPresent()&&this.onFilterChanged()}onFilterChanged(e={}){const{source:t,additionalEventAttributes:n,columns:i=[]}=e;this.externalFilterPresent=this.isExternalFilterPresentCallback(),(this.colFilter?this.colFilter.updateBeforeFilterChanged(e):It.resolve()).then(()=>{const o={source:t,type:"filterChanged",columns:i};n&&Wn(o,n),this.eventSvc.dispatchEvent(o),this.colFilter?.updateAfterFilterChanged()})}isSuppressFlashingCellsBecauseFiltering(){return!!this.colFilter?.isSuppressFlashingCellsBecauseFiltering()}isQuickFilterPresent(){return!!this.quickFilter?.isFilterPresent()}updateAggFiltering(){this.aggFiltering=!!_d(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(){se(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()}};function e7(e){return{tag:"div",cls:e}}var t7=class extends yt{constructor(e){const{className:t="ag-filter-apply-panel"}=e??{};super(e7(t)),this.listeners=[],this.validationMessage=null,this.className=t}updateButtons(e,t){const n=this.buttons;if(this.buttons=e,n===e)return;const i=this.getGui();wn(i);let o;this.destroyListeners();const r=document.createDocumentFragment(),s=this.className,a=({type:u,label:h})=>{const f=y=>{this.dispatchLocalEvent({type:u,event:y})};["apply","clear","reset","cancel"].includes(u)||se(75);const p=u==="apply",v=rn({tag:"button",attrs:{type:p&&t?"submit":"button"},ref:`${u}FilterButton`,cls:`ag-button ag-standard-button ${s}-button${p?" "+s+"-apply-button":""}`,children:h});this.activateTabIndex([v]),p&&(o=v);const w=y=>{y.key===K.ENTER&&(y.preventDefault(),f(y))},b=this.listeners;v.addEventListener("click",f),b.push(()=>v.removeEventListener("click",f)),v.addEventListener("keydown",w),b.push(()=>v.removeEventListener("keydown",w)),r.append(v)};for(const u of e)a(u);this.eApply=o;const l=this.validationTooltipFeature;o&&!l?this.validationTooltipFeature=this.createOptionalManagedBean(this.beans.registry.createDynamicBean("tooltipFeature",!1,{getGui:()=>this.eApply,getLocation:()=>"advancedFilter",getTooltipShowDelayOverride:()=>1e3})):!o&&l&&(this.validationTooltipFeature=this.destroyBean(l)),i.append(r)}getApplyButton(){return this.eApply}updateValidity(e,t=null){const n=this.eApply;n&&(uc(n,!e),this.validationMessage=t,this.validationTooltipFeature?.setTooltipAndRefresh(this.validationMessage))}destroyListeners(){for(const e of this.listeners)e();this.listeners=[]}destroy(){this.destroyListeners(),super.destroy()}},n7=class extends yt{constructor(e,t,n,i,o,r){super(),this.column=e,this.wrapper=t,this.eventParent=n,this.updateModel=i,this.isGlobalButtons=o,this.enableGlobalButtonCheck=r,this.hidePopup=null,this.applyActive=!1}postConstruct(){const{comp:e,params:t}=this.wrapper,n=t,i=n.useForm,o=i?"form":"div";this.setTemplate({tag:o,cls:"ag-filter-wrapper"}),i&&this.addManagedElementListeners(this.getGui(),{submit:r=>{r?.preventDefault()},keydown:this.handleKeyDown.bind(this)}),this.appendChild(e.getGui()),this.params=n,this.resetButtonsPanel(n),this.addManagedListeners(this.eventParent,{filterParamsChanged:({column:r,params:s})=>{r===this.column&&this.resetButtonsPanel(s,this.params)},filterStateChanged:({column:r,state:s})=>{r===this.column&&this.eButtons?.updateValidity(s.valid!==!1)},filterAction:({column:r,action:s,event:a})=>{r===this.column&&this.afterAction(s,a)},...this.enableGlobalButtonCheck?{filterGlobalButtons:({isGlobal:r})=>{if(r!==this.isGlobalButtons){this.isGlobalButtons=r;const s=this.params;this.resetButtonsPanel(s,s,!0)}}}:void 0})}afterGuiAttached(e){e&&(this.hidePopup=e.hidePopup)}resetButtonsPanel(e,t,n){const{buttons:i,readOnly:o}=t??{},{buttons:r,readOnly:s,useForm:a}=e;if(!n&&o===s&&rc(i,r))return;const l=r&&r.length>0&&!e.readOnly&&!this.isGlobalButtons;let u=this.eButtons;if(l){const h=r.map(f=>{const p=`${f}Filter`;return{type:f,label:to(this,p)}});if(this.applyActive=qd(this.params),!u){u=this.createBean(new t7),this.appendChild(u.getGui());const f=this.column,p=m=>({event:v})=>{this.updateModel(f,m,{fromButtons:!0}),this.afterAction(m,v)};u?.addManagedListeners(u,{apply:p("apply"),clear:p("clear"),reset:p("reset"),cancel:p("cancel")}),this.eButtons=u}u.updateButtons(h,a)}else this.applyActive=!1,u&&(Mi(u.getGui()),this.eButtons=this.destroyBean(u))}close(e){const t=this.hidePopup;if(!t)return;const n=e,i=n?.key;let o;(i===K.ENTER||i===K.SPACE)&&(o={keyboardEvent:n}),t(o),this.hidePopup=null}afterAction(e,t){const{params:n,applyActive:i}=this,o=n?.closeOnApply;switch(e){case"apply":{t?.preventDefault(),o&&i&&this.close(t);break}case"reset":{o&&i&&this.close();break}case"cancel":{o&&this.close(t);break}}}handleKeyDown(e){!e.defaultPrevented&&e.key===K.ENTER&&this.applyActive&&(this.updateModel(this.column,"apply",{fromButtons:!0}),this.afterAction("apply",e))}destroy(){this.hidePopup=null,this.eButtons=this.destroyBean(this.eButtons)}},i7=":where(.ag-menu:not(.ag-tabs) .ag-filter)>:not(.ag-filter-wrapper){min-width:180px}",o7={tag:"div",cls:"ag-filter"},r7=class extends yt{constructor(e,t,n){super(o7),this.column=e,this.source=t,this.enableGlobalButtonCheck=n,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(()=>{})??It.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:n,beans:{colFilter:i}}=this,o=i.getFilterUiForDisplay(t)??null;this.wrapper=o,o?.then(r=>{if(!r)return;const{isHandler:s,comp:a}=r;let l;if(s){const u=!!this.enableGlobalButtonCheck,h=this.createBean(new n7(t,r,i,i.updateModel.bind(i),u&&i.isGlobalButtons,u));this.comp=h,l=h.getGui()}else this.registerCSS(i7),l=a.getGui(),Ce(l)||se(69,{guiFromFilter:l});this.appendChild(l),e?this.eventSvc.dispatchEvent({type:"filterOpened",column:t,source:n,eGui:this.getGui()}):a.afterGuiAttached?.(this.afterGuiAttachedParams)})}onFilterDestroyed(e){const{source:t,column:n}=e;(t==="api"||t==="paramsUpdated")&&n.getId()===this.column.getId()&&this.beans.colModel.getColDefCol(this.column)&&(wn(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()}},s7=class extends X{constructor(){super(...arguments),this.beanName="filterMenuFactory"}wireBeans(e){this.popupSvc=e.popupSvc}hideActiveMenu(){this.hidePopup?.()}showMenuAfterMouseEvent(e,t,n,i){e&&!e.isColumn||this.showPopup(e,o=>{this.popupSvc?.positionPopupUnderMouseEvent({additionalParams:{column:e},type:n,mouseEvent:t,ePopup:o})},n,t.target,ni(this.gos),i)}showMenuAfterButtonClick(e,t,n,i){if(e&&!e.isColumn)return;let o=-1,r="left";const s=ni(this.gos);!s&&this.gos.get("enableRtl")&&(o=1,r="right");const a=s?void 0:4*o,l=s?void 0:4;this.showPopup(e,u=>{this.popupSvc?.positionPopupByComponent({type:n,eventSource:t,ePopup:u,nudgeX:a,nudgeY:l,alignSide:r,keepWithinBounds:!0,position:"under",additionalParams:{column:e}})},n,t,s,i)}showPopup(e,t,n,i,o,r){const s=e?this.createBean(new r7(e,"COLUMN_MENU")):void 0;if(this.activeMenu=s,!s?.hasFilter()||!e){gt(57);return}const a=rn({tag:"div",cls:`ag-menu${o?"":" ag-filter-menu"}`,role:"presentation"});[this.tabListener]=this.addManagedElementListeners(a,{keydown:w=>this.trapFocusWithin(w,a)}),a.appendChild(s?.getGui());let l;const u=()=>s?.afterGuiDetached(),h=b_(this.gos)?i??this.beans.ctrlsSvc.getGridBodyCtrl().eGridBody:void 0,f=w=>{Mx(e,!1,"contextMenu");const b=w instanceof KeyboardEvent;this.tabListener&&(this.tabListener=this.tabListener()),b&&i&&ki(i)&&H0(i)?.focus({preventScroll:!0}),u(),this.destroyBean(this.activeMenu),this.dispatchVisibleChangedEvent(!1,n,e),r?.()},p=this.getLocaleTextFunc(),m=o&&n!=="columnFilter"?p("ariaLabelColumnMenu","Column Menu"):p("ariaLabelColumnFilter","Column Filter"),v=this.popupSvc?.addPopup({modal:!0,eChild:a,closeOnEsc:!0,closedCallback:f,positionCallback:()=>t(a),anchorToElement:h,ariaLabel:m});v&&(this.hidePopup=l=v.hideFunc),s.afterInit().then(()=>{t(a),s.afterGuiAttached({container:n,hidePopup:l})}),Mx(e,!0,"contextMenu"),this.dispatchVisibleChangedEvent(!0,n,e)}trapFocusWithin(e,t){e.key!==K.TAB||e.defaultPrevented||Bs(this.beans,t,!1,e.shiftKey)||(e.preventDefault(),Ns(t,e.shiftKey))}dispatchVisibleChangedEvent(e,t,n){this.eventSvc.dispatchEvent({type:"columnMenuVisibleChanged",visible:e,switchingTab:!1,key:t,column:n??null,columnGroup:null})}isMenuEnabled(e){return e.isFilterAllowed()&&(e.getColDef().menuTabs??["filterMenuTab"]).includes("filterMenuTab")}showMenuAfterContextMenuEvent(){}destroy(){this.destroyBean(this.activeMenu),super.destroy()}},a7=class extends X{constructor(){super(...arguments),this.beanName="filterValueSvc"}getValue(e,t,n){if(!t)return;const i=e.getColDef(),{selectableFilter:o,valueSvc:r,formula:s}=this.beans,a=n??o?.getFilterValueGetter(e.getColId())??i.filterValueGetter;if(a)return this.executeFilterValueGetter(a,t.data,e,t,i);const l=r.getValue(e,t,"data");return e.isAllowFormula()&&s?.isFormula(l)?s.resolveValue(e,t):l}executeFilterValueGetter(e,t,n,i,o){const{expressionSvc:r,valueSvc:s}=this.beans,a=We(this.gos,{data:t,node:i,column:n,colDef:o,getValue:s.getValueCallback.bind(s,i)});return typeof e=="function"?e(a):r?.evaluate(e,a)}},l7={tag:"div",cls:"ag-floating-filter-input",role:"presentation",children:[{tag:"ag-input-text-field",ref:"eFloatingFilterText"}]},c7=class extends yt{constructor(){super(l7,[Ph]),this.eFloatingFilterText=de}init(e){this.params=e;const t=this.beans.colNames.getDisplayNameForColumn(e.column,"header",!0);if(this.eFloatingFilterText.setDisabled(!0).setInputAriaLabel(`${t} ${this.getLocaleTextFunc()("ariaFilterInput","Filter Input")}`),this.gos.get("enableFilterHandlers")){const n=e,i=n.getHandler();if(i.getModelAsString){const o=i.getModelAsString(n.model);this.eFloatingFilterText.setValue(o)}}}onParentModelChanged(e){if(e==null){this.eFloatingFilterText.setValue("");return}this.params.parentFilterInstance(t=>{if(t.getModelAsString){const n=t.getModelAsString(e);this.eFloatingFilterText.setValue(n)}})}refresh(e){this.init(e)}},u7=class extends Em{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)}},fv=class{constructor(){this.customFilterOptions={}}init(e,t){this.filterOptions=e.filterOptions??t,this.mapCustomOptions(),this.defaultOption=this.getDefaultItem(e.defaultOption)}refresh(e,t){const n=e.filterOptions??t;this.filterOptions!==n&&(this.filterOptions=n,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 n=[["displayKey"],["displayName"],["predicate","test"]],i=o=>o.some(r=>t[r]!=null)?!0:(se(72,{keys:o}),!1);if(!n.every(i)){this.filterOptions=e.filter(o=>o===t)||[];continue}this.customFilterOptions[t.displayKey]=t}}getDefaultItem(e){const{filterOptions:t}=this;if(e)return e;if(t.length>=1){const n=t[0];if(typeof n=="string")return n;if(n.displayKey)return n.displayKey;se(73)}else se(74)}getCustomOption(e){return this.customFilterOptions[e]}};function Bc(e,t,n){return n==null?e.splice(t):e.splice(t,n)}function Th(e){return e==null||typeof e=="string"&&e.trim().length===0}function d7(e){return e==="AND"||e==="OR"?e:"AND"}function h7(e,t,n){if(e==null)return;const{predicate:i}=e;if(i!=null&&!t.some(o=>o==null))return i(t,n)}function f7(e,t){let n=e.length;return n>t&&(e.splice(t),se(78),n=t),n}var p7=new Set(["empty","notBlank","blank","today","yesterday","tomorrow","thisWeek","lastWeek","nextWeek","thisMonth","lastMonth","nextMonth","thisQuarter","lastQuarter","nextQuarter","thisYear","lastYear","nextYear","yearToDate","last7Days","last30Days","last90Days","last6Months","last12Months","last24Months"]);function ts(e,t){const n=t.getCustomOption(e);if(n){const{numberOfInputs:i}=n;return i??1}return e&&p7.has(e)?0:e==="inRange"?2:1}var Ah=class extends VO{constructor(e,t,n){super(e,"simple-filter"),this.mapValuesFromModel=t,this.defaultOptions=n,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 fv;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=d7(e.defaultJoinOperator),this.filterPlaceholder=e.filterPlaceholder,this.createFilterListOptions(),ti(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,n)=>{const i=n===0?e:this.optionsFactory.defaultOption;t.setValue(i,!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 n=!e.operator,i=!t.operator;if(!n&&i||n&&!i)return!1;let r;if(n){const s=e,a=t;r=this.areSimpleModelsEqual(s,a)}else{const s=e,a=t;r=s.operator===a.operator&&kr(s.conditions,a.conditions,(l,u)=>this.areSimpleModelsEqual(l,u))}return r}setModelIntoUi(e,t){if(e==null)return this.resetUiToDefaults(t),It.resolve();if(e.operator){const i=e;let o=i.conditions;o==null&&(o=[],se(77));const r=f7(o,this.maxNumConditions),s=this.getNumConditions();if(r<s)this.removeConditionsAndOperators(r);else if(r>s)for(let l=s;l<r;l++)this.createJoinOperatorPanel(),this.createOption();const a=i.operator==="OR";this.eJoinAnds.forEach(l=>l.setValue(!a,!0)),this.eJoinOrs.forEach(l=>l.setValue(a,!0)),o.forEach((l,u)=>{this.eTypes[u].setValue(l.type,!0),this.setConditionIntoUi(l,u)})}else{const i=e;this.getNumConditions()>1&&this.removeConditionsAndOperators(1),this.eTypes[0].setValue(i.type,!0),this.setConditionIntoUi(i,0)}return this.lastUiCompletePosition=this.getNumConditions()-1,this.createMissingConditionsAndOperators(),this.updateUiVisibility(),t||this.params.onUiChange(this.getUiChangeEventParams()),It.resolve()}setNumConditions(e){let t=e.maxNumConditions??2;t<1&&(se(79),t=1),this.maxNumConditions=t;let n=e.numAlwaysVisibleConditions??1;n<1&&(se(80),n=1),n>t&&(se(81),n=t),this.numAlwaysVisibleConditions=n}createOption(){const e=this.getGui(),t=this.createManagedBean(new av);this.eTypes.push(t),t.addCss("ag-filter-select"),e.appendChild(t.getGui());const n=this.createEValue();this.eConditionBodies.push(n),e.appendChild(n),this.putOptionsIntoDropdown(t),this.resetType(t);const i=this.getNumConditions()-1;this.forEachPositionInput(i,o=>this.resetInput(o)),this.addChangedListeners(t,i)}createJoinOperatorPanel(){const e=rn({tag:"div",cls:"ag-filter-condition"});this.eJoinPanels.push(e);const t=this.createJoinOperator(this.eJoinAnds,e,"and"),n=this.createJoinOperator(this.eJoinOrs,e,"or");this.getGui().appendChild(e);const i=this.eJoinPanels.length-1,o=this.joinOperatorId++;this.resetJoinOperatorAnd(t,i,o),this.resetJoinOperatorOr(n,i,o),this.isReadOnly()||(t.onValueChange(this.listener),n.onValueChange(this.listener))}createJoinOperator(e,t,n){const i=this.createManagedBean(new u7);e.push(i);const o="ag-filter-condition-operator";return i.addCss(o),i.addCss(`${o}-${n}`),t.appendChild(i.getGui()),i}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 n of t)e.addOption(n);e.setDisabled(t.length<=1)}createBoilerplateListOption(e){return{value:e,text:this.translate(e)}}createCustomListOption(e){const{displayKey:t}=e,n=this.optionsFactory.getCustomOption(e.displayKey);return{value:t,text:n?this.getLocaleTextFunc()(n.displayKey,n.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 n=0;n<this.getNumConditions();n++)this.isConditionUiComplete(n)?e=n:t=!1;if(this.shouldAddNewConditionAtEnd(t))this.createJoinOperatorPanel(),this.createOption();else{const n=this.lastUiCompletePosition??this.getNumConditions()-2;if(e<n){this.removeConditionsAndOperators(n+1);const i=e+1,o=n-i;o>0&&this.removeConditionsAndOperators(i,o),this.createMissingConditionsAndOperators()}}this.lastUiCompletePosition=e}updateConditionStatusesAndValues(e,t){this.eTypes.forEach((i,o)=>{const r=this.isConditionDisabled(o,e);i.setDisabled(r||this.filterListOptions.length<=1),o===1&&(uc(this.eJoinPanels[0],r),this.eJoinAnds[0].setDisabled(r),this.eJoinOrs[0].setDisabled(r))}),this.eConditionBodies.forEach((i,o)=>{bt(i,this.isConditionBodyVisible(o))});const n=(t??this.getJoinOperator())==="OR";for(const i of this.eJoinAnds)i.setValue(!n,!0);for(const i of this.eJoinOrs)i.setValue(n,!0);this.forEachInput((i,o,r,s)=>{this.setElementDisplayed(i,o<s),this.setElementDisabled(i,this.isConditionDisabled(r,e))}),this.resetPlaceholder()}shouldAddNewConditionAtEnd(e){return e&&this.getNumConditions()<this.maxNumConditions&&!this.isReadOnly()}removeConditionsAndOperators(e,t){if(e>=this.getNumConditions())return;const{eTypes:n,eConditionBodies:i,eJoinPanels:o,eJoinAnds:r,eJoinOrs:s}=this;this.removeComponents(n,e,t),this.removeElements(i,e,t),this.removeEValues(e,t);const a=Math.max(e-1,0);this.removeElements(o,a,t),this.removeComponents(r,a,t),this.removeComponents(s,a,t)}removeElements(e,t,n){const i=Bc(e,t,n);for(const o of i)Mi(o)}removeComponents(e,t,n){const i=Bc(e,t,n);for(const o of i)Mi(o.getGui()),this.destroyBean(o)}afterGuiAttached(e){if(super.afterGuiAttached(e),this.resetPlaceholder(),!e?.suppressFocus){let t;if(!this.isReadOnly()){const n=this.getInputs(0)[0];n instanceof Ws&&this.isConditionBodyVisible(0)?t=n.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,n=-1,i=!1;const o=this.getJoinOperator();for(let s=this.getNumConditions()-1;s>=0;s--)if(this.isConditionUiComplete(s))t===-1&&(t=s,n=s);else{const a=s>=this.numAlwaysVisibleConditions&&!this.isConditionUiComplete(s-1),l=s<t;(a||l)&&(this.removeConditionsAndOperators(s,1),i=!0,l&&n--)}let r=!1;this.getNumConditions()<this.numAlwaysVisibleConditions&&(this.createMissingConditionsAndOperators(),r=!0),this.shouldAddNewConditionAtEnd(n===this.getNumConditions()-1)&&(this.createJoinOperatorPanel(),this.createOption(),r=!0),r&&this.updateConditionStatusesAndValues(n,o),i&&this.updateJoinOperatorsDisabled(),this.lastUiCompletePosition=n}getModelAsString(e){return this.params.getHandler()?.getModelAsString?.(e)??""}resetPlaceholder(){const e=this.getLocaleTextFunc(),{filterPlaceholder:t,eTypes:n}=this;this.forEachInput((i,o,r,s)=>{if(!(i instanceof Ws))return;const a=o===0&&s>1?"inRangeStart":o===0?"filterOoo":"inRangeEnd",l=o===0&&s>1?e("ariaFilterFromValue","Filter from value"):o===0?e("ariaFilterValue","Filter Value"):e("ariaFilterToValue","Filter to Value"),u=n[r].getValue(),h=U0(this,t,a,u);i.setInputPlaceholder(h),i.setInputAriaLabel(l)})}setElementValue(e,t,n){e instanceof Ws&&e.setValue(t!=null?String(t):null,!0)}setElementDisplayed(e,t){k0(e)&&bt(e.getGui(),t)}setElementDisabled(e,t){k0(e)&&uc(e.getGui(),t)}attachElementOnChange(e,t){e instanceof Ws&&e.onValueChange(t)}forEachInput(e){this.getConditionTypes().forEach((t,n)=>{this.forEachPositionTypeInput(n,t,e)})}forEachPositionInput(e,t){const n=this.getConditionType(e);this.forEachPositionTypeInput(e,n,t)}forEachPositionTypeInput(e,t,n){const i=ts(t,this.optionsFactory),o=this.getInputs(e);for(let r=0;r<o.length;r++){const s=o[r];s!=null&&n(s,r,e,i)}}isConditionDisabled(e,t){return this.isReadOnly()?!0:e===0?!1:e>t+1}isConditionBodyVisible(e){const t=this.getConditionType(e);return ts(t,this.optionsFactory)>0}isConditionUiComplete(e){return!(e>=this.getNumConditions()||this.getConditionType(e)==="empty"||this.getValues(e).some(n=>n==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,n)=>this.resetJoinOperatorAnd(t,n,this.joinOperatorId+n)),this.eJoinOrs.forEach((t,n)=>this.resetJoinOperatorOr(t,n,this.joinOperatorId+n)),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 n=this.getLocaleTextFunc()("ariaFilteringOperator","Filtering operator");e.setValue(this.optionsFactory.defaultOption,!0).setAriaLabel(n).setDisabled(this.isReadOnly()||this.filterListOptions.length<=1)}resetJoinOperatorAnd(e,t,n){this.resetJoinOperator(e,t,this.defaultJoinOperator==="AND",this.translate("andCondition"),n)}resetJoinOperatorOr(e,t,n){this.resetJoinOperator(e,t,this.defaultJoinOperator==="OR",this.translate("orCondition"),n)}resetJoinOperator(e,t,n,i,o){this.updateJoinOperatorDisabled(e.setValue(n,!0).setName(`ag-simple-filter-and-or-${this.getCompId()}-${o}`).setLabel(i),t)}updateJoinOperatorsDisabled(){const e=(t,n)=>this.updateJoinOperatorDisabled(t,n);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 n=this.mapValuesFromModel(e,this.optionsFactory);this.forEachInput((i,o,r)=>{r===t&&this.setElementValue(i,n[o]!=null?n[o]:null)})}setValueFromFloatingFilter(e){this.forEachInput((t,n,i)=>{this.setElementValue(t,n===0&&i===0?e:null,!0)})}addChangedListeners(e,t){this.isReadOnly()||(e.onValueChange(this.listener),this.forEachPositionInput(t,n=>{this.attachElementOnChange(n,this.listener)}))}hasInvalidInputs(){return!1}positionHasInvalidInputs(e){return!1}isReadOnly(){return!!this.params.readOnly}},pv=["equals","notEqual","greaterThan","greaterThanOrEqual","lessThan","lessThanOrEqual","inRange","blank","notBlank"];function gv(e){return e?.allowedCharPattern??null}function Bx(e,t){const{filter:n,filterTo:i,type:o}=e||{};return[oi(n),oi(i)].slice(0,ts(o,t))}var g7=class extends Ah{constructor(){super("bigintFilter",Bx,pv),this.eValuesFrom=[],this.eValuesTo=[],this.filterType="bigint",this.defaultDebounceMs=500}afterGuiAttached(e){super.afterGuiAttached(e),this.refreshInputValidation()}shouldKeepInvalidInputState(){return!qa()&&this.hasInvalidInputs()&&this.getConditionTypes().includes("inRange")}refreshInputValidation(){for(let e=0;e<this.eValuesFrom.length;e++){const t=this.eValuesFrom[e],n=this.eValuesTo[e];this.refreshInputPairValidation(t,n)}}refreshInputPairValidation(e,t,n=!1){const{bigintParser:i}=this.params,o=this.getParsedValue(e,i),r=this.getParsedValue(t,i),s=this.isInvalidValue(e,o),a=this.isInvalidValue(t,r),l=n?e:t,u=n?t:e,h=n?s:a,f=n?a:s;let p="";if(h)p=this.getLocaleTextFunc()("invalidBigInt","Invalid BigInt");else if(!s&&!a){const m=m7(o,r,n);m&&(p=this.translate(m,[String(n?t.getValue():e.getValue())]))}l.setCustomValidity(p),f||u.setCustomValidity(""),p.length>0&&this.beans.ariaAnnounce.announceValue(p,"dateFilter")}getState(){return{isInvalid:this.hasInvalidInputs()}}areStatesEqual(e,t){return(e?.isInvalid??!1)===(t?.isInvalid??!1)}refresh(e){const t=super.refresh(e),{state:n,additionalEventAttributes:i}=e,o=this.state,r=i?.fromAction;return(r&&r!="apply"||n.model!==o.model||!this.areStatesEqual(n.state,o.state))&&this.refreshInputValidation(),t}setElementValue(e,t,n){super.setElementValue(e,t,n),t===null&&e.setCustomValidity("")}createEValue(){const{params:e,eValuesFrom:t,eValuesTo:n}=this,i=gv(e),o=rn({tag:"div",cls:"ag-filter-body",role:"presentation"}),r=this.createFromToElement(o,t,"from",i),s=this.createFromToElement(o,n,"to",i),a=(h,f,p)=>()=>this.refreshInputPairValidation(h,f,p),l=a(r,s,!0);r.onValueChange(l),r.addGuiEventListener("focusin",l);const u=a(r,s,!1);return s.onValueChange(u),s.addGuiEventListener("focusin",u),o}createFromToElement(e,t,n,i){const o=this.createManagedBean(i?new ar({allowedCharPattern:i}):new ar);return o.addCss(`ag-filter-${n}`),o.addCss("ag-filter-filter"),t.push(o),e.appendChild(o.getGui()),o}removeEValues(e,t){const n=i=>this.removeComponents(i,e,t);n(this.eValuesFrom),n(this.eValuesTo)}getValues(e){const t=[];return this.forEachPositionInput(e,(n,i,o,r)=>{i<r&&t.push(oi(n.getValue()??null))}),t}areSimpleModelsEqual(e,t){return e.filter===t.filter&&e.filterTo===t.filterTo&&e.type===t.type}createCondition(e){const t=this.getConditionType(e),n={filterType:this.filterType,type:t},i=this.getValues(e);return i.length>0&&(n.filter=String(i[0])),i.length>1&&(n.filterTo=String(i[1])),n}removeConditionsAndOperators(e,t){if(!this.hasInvalidInputs())return super.removeConditionsAndOperators(e,t)}getInputs(e){const{eValuesFrom:t,eValuesTo:n}=this;return e>=t.length?[null,null]:[t[e],n[e]]}hasInvalidInputs(){let e=!1;return this.forEachInput(t=>e||(e=!t.getInputElement().validity.valid)),e}positionHasInvalidInputs(e){let t=!1;return this.forEachPositionInput(e,n=>t||(t=!n.getInputElement().validity.valid)),t}canApply(e){return!this.hasInvalidInputs()}getParsedValue(e,t){const n=e.getValue();return n==null||typeof n=="string"&&n.trim()===""?null:t?t(n):oi(n)}isInvalidValue(e,t){const n=e.getValue();return n!=null&&String(n).trim()!==""&&t===null}};function m7(e,t,n){return e!=null&&t!=null&&e>=t?`strict${n?"Max":"Min"}ValueValidation`:null}var Gx=class extends X{constructor(e,t){super(),this.mapValuesFromModel=e,this.defaultOptions=t}init(e){const t=e.filterParams,n=new fv;this.optionsFactory=n,n.init(t,this.defaultOptions),this.filterModelFormatter=this.createManagedBean(new this.FilterModelFormatterClass(n,t)),this.updateParams(e),this.validateModel(e)}refresh(e){if(e.source==="colDef"){const t=e.filterParams,n=this.optionsFactory;n.refresh(t,this.defaultOptions),this.filterModelFormatter.updateParams({optionsFactory:n,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:n}=t,i=[];if(n){const s=t;i.push(...s.conditions??[])}else i.push(t);const o=n&&n==="OR"?"some":"every",r=this.params.getValue(e.node);return i[o](s=>this.individualConditionPasses(e,s,r))}getModelAsString(e,t){return this.filterModelFormatter.getModelAsString(e,t)??""}validateModel(e){const{model:t,filterParams:{filterOptions:n,maxNumConditions:i}}=e;if(t==null)return;let r=I0(t)?t.conditions:[t];const s=n?.map(h=>typeof h=="string"?h:h.displayKey)??this.defaultOptions;if(!(!r||r.every(h=>s.find(f=>f===h.type)!==void 0))){this.params={...e,model:null},e.onModelChange(null);return}let l=!1;const u=this.filterType;if((r&&!r.every(h=>h.filterType===u)||t.filterType!==u)&&(r=r.map(h=>({...h,filterType:u})),l=!0),typeof i=="number"&&r&&r.length>i&&(r=r.slice(0,i),l=!0),l){const h=r.length>1?{...t,filterType:u,conditions:r}:{...r[0],filterType:u};this.params={...e,model:h},e.onModelChange(h)}}individualConditionPasses(e,t,n){const i=this.optionsFactory,o=this.mapValuesFromModel(t,i),r=i.getCustomOption(t.type),s=h7(r,o,n);return s??(n==null?this.evaluateNullValue(t.type):this.evaluateNonNullValue(o,n,t,e))}},mv=class extends Gx{evaluateNullValue(e){const{includeBlanksInEquals:t,includeBlanksInNotEqual:n,includeBlanksInGreaterThan:i,includeBlanksInLessThan:o,includeBlanksInRange:r}=this.params.filterParams;switch(e){case"equals":if(t)return!0;break;case"notEqual":if(n)return!0;break;case"greaterThan":case"greaterThanOrEqual":if(i)return!0;break;case"lessThan":case"lessThanOrEqual":if(o)return!0;break;case"inRange":if(r)return!0;break;case"blank":return!0;case"notBlank":return!1}return!1}evaluateNonNullValue(e,t,n){const i=n.type;if(!this.isValid(t))return i==="notEqual"||i==="notBlank";const o=this.comparator(),r=e[0]!=null?o(e[0],t):0;switch(i){case"equals":return r===0;case"notEqual":return r!==0;case"greaterThan":return r>0;case"greaterThanOrEqual":return r>=0;case"lessThan":return r<0;case"lessThanOrEqual":return r<=0;case"inRange":{const s=o(e[1],t);return this.params.filterParams.inRangeInclusive?r>=0&&s<=0:r>0&&s<0}case"blank":return Th(t);case"notBlank":return!Th(t);default:return se(76,{filterModelType:i}),!0}}},vv={equals:"Equals",notEqual:"NotEqual",greaterThan:"GreaterThan",greaterThanOrEqual:"GreaterThanOrEqual",lessThan:"LessThan",lessThanOrEqual:"LessThanOrEqual",inRange:"InRange"},v7={contains:"Contains",notContains:"NotContains",equals:"TextEquals",notEqual:"TextNotEqual",startsWith:"StartsWith",endsWith:"EndsWith",inRange:"InRange"},Ih=class extends X{constructor(e,t,n){super(),this.optionsFactory=e,this.filterParams=t,this.valueFormatter=n}getModelAsString(e,t){const n=this.getLocaleTextFunc(),i=t==="filterToolPanel";if(!e)return i?to(this,"filterSummaryInactive"):null;if(e.operator!=null){const r=e,a=(r.conditions??[]).map(u=>this.getModelAsString(u,t)),l=r.operator==="AND"?"andCondition":"orCondition";return a.join(` ${to(this,l)} `)}else{if(e.type==="blank"||e.type==="notBlank")return i?to(this,e.type==="blank"?"filterSummaryBlank":"filterSummaryNotBlank"):n(e.type,e.type);{const r=e,s=this.optionsFactory.getCustomOption(r.type),{displayKey:a,displayName:l,numberOfInputs:u}=s||{};return a&&l&&u===0?n(a,l):this.conditionToString(r,i,r.type==="inRange"||u===2,a,l)}}}updateParams(e){const{optionsFactory:t,filterParams:n}=e;this.optionsFactory=t,this.filterParams=n}conditionForToolPanel(e,t,n,i,o,r){let s;const a=this.getTypeKey(e);return a&&(s=to(this,a)),o&&r&&(s=this.getLocaleTextFunc()(o,r)),s!=null?t?`${s} ${to(this,"filterSummaryInRangeValues",[n(),i()])}`:`${s} ${n()}`: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)}},Hx=class extends Ih{constructor(e,t){super(e,t,t.bigintFormatter),this.filterTypeKeys=vv}conditionToString(e,t,n,i,o){const{filter:r,filterTo:s,type:a}=e,l=this.formatValue.bind(this),u=oi(r),h=oi(s);if(t){const f=this.conditionForToolPanel(a,n,()=>l(u),()=>l(h),i,o);if(f!=null)return f}return n?`${l(u)}-${l(h)}`:r!=null?l(u):`${a}`}},C7=class extends mv{constructor(){super(Bx,pv),this.filterType="bigint",this.FilterModelFormatterClass=Hx}comparator(){return(e,t)=>e===t?0:e<t?1:-1}isValid(e){return oi(e)!==null}},Cv=class extends X{constructor(e){super(),this.params=e,this.eInput=de,this.onValueChanged=()=>{}}setupGui(e){this.eInput=this.createManagedBean(new ar(this.params?.config));const t=this.eInput.getGui();e.appendChild(t);const n=i=>this.onValueChanged(i);this.addManagedListeners(t,{input:n,keydown:n})}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:n}){const{eInput:i}=this;i.setInputAriaLabel(e),t!==void 0&&i.setAutoComplete(t),i.toggleCss("ag-floating-filter-search-icon",!!n),i.setInputPlaceholder(n)}};function wv(e){const t=e?.trim();return t===""?e:t}function Vx(e,t){const{filter:n,filterTo:i,type:o}=e||{};return[n||null,i||null].slice(0,ts(o,t))}var Wx=class extends yt{constructor(){super(...arguments),this.defaultDebounceMs=0}setLastTypeFromModel(e){if(!e){this.lastType=this.optionsFactory.defaultOption;return}const t=e.operator;let n;t?n=e.conditions[0]:n=e,this.lastType=n.type}canWeEditAfterModelFromParentFilter(e){if(!e)return this.isTypeEditable(this.lastType);if(e.operator)return!1;const n=e;return this.isTypeEditable(n.type)}init(e){this.params=e;const t=this.gos.get("enableFilterHandlers");if(this.reactive=t,this.setParams(e),t){const n=e;this.onModelUpdated(n.model)}}setParams(e){const t=new fv;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 n=this.optionsFactory.defaultOption;t||(this.lastType=n),this.readOnly=!!e.filterParams.readOnly;const i=this.isTypeEditable(n);this.setEditable(i)}refresh(e){this.params=e;const t=e,n=this.reactive;if((!n||t.source==="colDef")&&this.updateParams(e),n){const{source:i,model:o}=t;if(i==="dataChanged"||i==="ui")return;this.onModelUpdated(o)}}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)}isTypeEditable(e){return!!e&&!this.readOnly&&ts(e,this.optionsFactory)===1}getAriaLabel(e){return`${this.beans.colNames.getDisplayNameForColumn(e,"header",!0)} ${this.getLocaleTextFunc()("ariaFilterInput","Filter Input")}`}},w7={tag:"div",ref:"eFloatingFilterInputContainer",cls:"ag-floating-filter-input",role:"presentation"},bv=class extends Wx{constructor(){super(...arguments),this.eFloatingFilterInputContainer=de,this.defaultDebounceMs=500}postConstruct(){this.setTemplate(w7)}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:n,readOnly:i}=this,{filterPlaceholder:o,column:r,browserAutoComplete:s,filterParams:a}=e,l=this.lastType??this.optionsFactory.defaultOption,u=e.filterParams.filterPlaceholder,h=o===!0?U0(this,u,"filterOoo",l):o||void 0;if(t.setParams({ariaLabel:this.getAriaLabel(r),autoComplete:s??!1,placeholder:h}),this.applyActive=qd(a),!i){const f=jg(a,n);t.setValueChangedListener(un(this,this.syncUpWithParentFilter.bind(this),f))}}updateParams(e){super.updateParams(e),this.setTextInputParams(e)}recreateFloatingFilterInputService(e){const{inputSvc:t}=this,n=t.getValue();wn(this.eFloatingFilterInputContainer),this.destroyBean(t),this.setupFloatingFilterInputService(e),t.setValue(n,!0)}syncUpWithParentFilter(e){const t=e.key===K.ENTER,n=this.reactive;if(n&&this.params.onUiChange(),this.applyActive&&!t)return;const{inputSvc:i,params:o,lastType:r}=this;let s=i.getValue();if(o.filterParams.trimInput&&(s=wv(s),i.setValue(s,!0)),n){const a=o,l=a.model,u=this.convertValue(s),h=u==null?null:{...l??{filterType:this.filterType,type:r??this.optionsFactory.defaultOption},filter:u};a.onModelChange(h,{afterFloatingFilter:!0})}else o.parentFilterInstance(a=>{a?.onFloatingFilterChanged(r||null,s||null)})}convertValue(e){return e||null}setEditable(e){this.inputSvc.setEditable(e)}},b7=class extends bv{constructor(){super(...arguments),this.FilterModelFormatterClass=Hx,this.filterType="bigint",this.defaultOptions=pv}updateParams(e){const t=e.filterParams;gv(t)!==this.allowedCharPattern&&this.recreateFloatingFilterInputService(e),this.bigintParser=t?.bigintParser,super.updateParams(e)}createFloatingFilterInputService(e){const t=e.filterParams;this.allowedCharPattern=gv(t),this.bigintParser=t?.bigintParser;const n=this.allowedCharPattern?{allowedCharPattern:this.allowedCharPattern}:void 0;return this.createManagedBean(new Cv({config:n}))}convertValue(e){return e==null||e===""?null:this.bigintParser?this.bigintParser(e):oi(e)}},zx=".ag-input-field-input",Ux=class{constructor(e,t,n,i,o,r){this.context=e,this.eParent=o,this.alive=!0,this.debouncedReport=un({isAlive:()=>this.alive},$x,500),this.timeoutHandle=null,EO(t,n,i)?.newAgStackInstance().then(a=>{if(!this.alive){e.destroyBean(a);return}if(this.dateComp=a,!a)return;o.appendChild(a.getGui()),a?.afterGuiAttached?.();const{tempValue:l,disabled:u}=this;l&&a.setDate(l),u!=null&&a.setDisabled?.(u),r?.(this)})}destroy(){this.alive=!1,this.dateComp=this.context.destroyBean(this.dateComp)}getDate(){return this.dateComp?this.dateComp.getDate():this.tempValue}setDate(e){const t=this.dateComp;t?t.setDate(e):this.tempValue=e}setDisabled(e){const t=this.dateComp;t?t.setDisabled?.(e):this.disabled=e}setDisplayed(e){bt(this.eParent,e)}setInputPlaceholder(e){this.dateComp?.setInputPlaceholder?.(e)}setInputAriaLabel(e){this.dateComp?.setInputAriaLabel?.(e)}afterGuiAttached(e){this.dateComp?.afterGuiAttached?.(e)}updateParams(e){this.dateComp?.refresh?.(e)}setCustomValidity(e,t=!1){const n=this.dateComp?.getGui().querySelector(zx);if(n&&"setCustomValidity"in n){const i=e.length>0;n.setCustomValidity(e),i?t?this.timeoutHandle=this.debouncedReport(n):$x(n):this.timeoutHandle&&window.clearTimeout(this.timeoutHandle),dg(n,i)}}getValidity(){return this.dateComp?.getGui().querySelector(zx)?.validity}};function $x(e){e.reportValidity()}var yv=["equals","notEqual","lessThan","greaterThan","inRange","blank","notBlank"];function jx(e,t){const{dateFrom:n,dateTo:i,type:o}=e||{};return[n&&$n(n,void 0,!0)||null,i&&$n(i,void 0,!0)||null].slice(0,ts(o,t))}var Kx=1e3,qx=1/0,y7=class extends Ah{constructor(){super("dateFilter",jx,yv),this.eConditionPanelsFrom=[],this.eConditionPanelsTo=[],this.dateConditionFromComps=[],this.dateConditionToComps=[],this.minValidYear=Kx,this.maxValidYear=qx,this.minValidDate=null,this.maxValidDate=null,this.filterType="date"}afterGuiAttached(e){super.afterGuiAttached(e),this.dateConditionFromComps[0].afterGuiAttached(e),this.refreshInputValidation()}shouldKeepInvalidInputState(){return!qa()&&this.hasInvalidInputs()&&this.getConditionTypes().includes("inRange")}commonUpdateSimpleParams(e){super.commonUpdateSimpleParams(e);const t=(l,u)=>{const h=e[l];if(h!=null)if(isNaN(h))se(82,{param:l});else return h==null?u:Number(h);return u},n=t("minValidYear",Kx),i=t("maxValidYear",qx);this.minValidYear=n,this.maxValidYear=i,n>i&&se(83);const{minValidDate:o,maxValidDate:r}=e,s=o instanceof Date?o:$n(o);this.minValidDate=s;const a=r instanceof Date?r:$n(r);this.maxValidDate=a,s&&a&&s>a&&se(84)}refreshInputValidation(){for(let e=0;e<this.dateConditionFromComps.length;e++)this.refreshInputPairValidation(e,!1,!0)}refreshInputPairValidation(e,t=!1,n=!1){const{dateConditionFromComps:i,dateConditionToComps:o,beans:r}=this,s=i[e],a=o[e],l=ts(this.getConditionType(e),this.optionsFactory),u=s.getDate(),h=a.getDate(),f=l>=2?S7(u,h,t):null,p=f?this.translate(f,[String(t?h:u)]):"",m=!qa()&&!n;(t?s:a).setCustomValidity(p,m),(t?a:s).setCustomValidity("",m),p.length>0&&r.ariaAnnounce.announceValue(p,"dateFilter")}createDateCompWrapper(e,t,n){const{beans:{userCompFactory:i,context:o,gos:r},params:s}=this,a=n==="from",l=new Ux(o,i,s.colDef,We(r,{onDateChanged:()=>{this.refreshInputPairValidation(t,a),this.onUiChanged()},onFocusIn:()=>this.refreshInputPairValidation(t,a),filterParams:s,location:"filter"}),e);return this.addDestroyFunc(()=>l.destroy()),l}getState(){return{isInvalid:this.hasInvalidInputs()}}areStatesEqual(e,t){return(e?.isInvalid??!1)===(t?.isInvalid??!1)}setElementValue(e,t){e.setDate(t),t||e.setCustomValidity("")}setElementDisplayed(e,t){e.setDisplayed(t)}setElementDisabled(e,t){e.setDisabled(t)}createEValue(){const e=rn({tag:"div",cls:"ag-filter-body"});return this.createFromToElement(e,this.eConditionPanelsFrom,this.dateConditionFromComps,"from"),this.createFromToElement(e,this.eConditionPanelsTo,this.dateConditionToComps,"to"),e}createFromToElement(e,t,n,i){const o=rn({tag:"div",cls:`ag-filter-${i} ag-filter-date-${i}`});t.push(o),e.appendChild(o),n.push(this.createDateCompWrapper(o,t.length-1,i))}removeEValues(e,t){this.removeDateComps(this.dateConditionFromComps,e,t),this.removeDateComps(this.dateConditionToComps,e,t),Bc(this.eConditionPanelsFrom,e,t),Bc(this.eConditionPanelsTo,e,t)}removeDateComps(e,t,n){const i=Bc(e,t,n);for(const o of i)o.destroy()}isValidDateValue(e){if(e===null)return!1;const{minValidDate:t,maxValidDate:n,minValidYear:i,maxValidYear:o}=this;if(t){if(e<t)return!1}else if(e.getUTCFullYear()<i)return!1;if(n){if(e>n)return!1}else if(e.getUTCFullYear()>o)return!1;return!0}hasInvalidInputs(){let e=!1;return this.forEachInput(t=>e||(e=t.getDate()!=null&&!(t.getValidity()?.valid??!0))),e}positionHasInvalidInputs(e){let t=!1;return this.forEachPositionInput(e,n=>t||(t=!(n.getValidity()?.valid??!0))),t}canApply(e){return!this.hasInvalidInputs()}isConditionUiComplete(e){if(!super.isConditionUiComplete(e))return!1;let t=!0;return this.forEachPositionInput(e,(n,i,o,r)=>{!t||i>=r||t&&(t=this.isValidDateValue(n.getDate()))}),t}areSimpleModelsEqual(e,t){return e.dateFrom===t.dateFrom&&e.dateTo===t.dateTo&&e.type===t.type}createCondition(e){const t=this.getConditionType(e),n={},{params:i,filterType:o}=this,r=this.getValues(e),s=i.useIsoSeparator?"T":" ";return r.length>0&&(n.dateFrom=Un(r[0],!0,s)),r.length>1&&(n.dateTo=Un(r[1],!0,s)),{dateFrom:null,dateTo:null,filterType:o,type:t,...n}}removeConditionsAndOperators(e,t){if(!this.hasInvalidInputs())return super.removeConditionsAndOperators(e,t)}resetPlaceholder(){const e=this.getLocaleTextFunc(),t=this.translate("dateFormatOoo"),n=e("ariaFilterValue","Filter Value");this.forEachInput(i=>{i.setInputPlaceholder(t),i.setInputAriaLabel(n)})}getInputs(e){const{dateConditionFromComps:t,dateConditionToComps:n}=this;return e>=t.length?[null,null]:[t[e],n[e]]}getValues(e){const t=[];return this.forEachPositionInput(e,(n,i,o,r)=>{i<r&&t.push(n.getDate())}),t}translate(e,t){let n=e;return e==="lessThan"?n="before":e==="greaterThan"&&(n="after"),super.translate(n,t)}};function S7(e,t,n){return e!=null&&t!=null&&e>=t?`${n?"max":"min"}DateValidation`:null}var Qx=class extends Ih{constructor(e,t){super(e,t,n=>{const{dataTypeSvc:i,valueSvc:o}=this.beans,r=t.column,s=i?.getDateFormatterFunction(r),a=s?s(n??void 0):n;return o.formatValue(r,null,a)}),this.filterTypeKeys=vv}conditionToString(e,t,n,i,o){const{type:r}=e,s=$n(e.dateFrom),a=$n(e.dateTo),l=this.filterParams.inRangeFloatingFilterDateFormat,u=t?this.formatValue.bind(this):p=>iH(p,l),h=()=>s!==null?u(s):"null",f=()=>a!==null?u(a):"null";if(s==null&&a==null)return to(this,r);if(t){const p=this.conditionForToolPanel(r,n,h,f,i,o);if(p!=null)return p}return n?`${h()}-${f()}`:s!=null?u(s):`${r}`}};function R7(e,t){const n=t;return n<e?-1:n>e?1:0}var F7=class extends mv{constructor(){super(jx,yv),this.filterType="date",this.FilterModelFormatterClass=Qx,this.filterTypeToRangeCache=new Map}getOrRefreshRangeCacheItem(e,t){const{filterTypeToRangeCache:n}=this,i=Date.now();let o=n.get(e);if(o&&o.expires<i&&(o=void 0),!o){const[r,s]=t(new Date(i),new Date(i));o={from:r,to:s,expires:Gi(new Date(i)).getTime()-i},n.set(e,o)}return o}comparator(){return this.params.filterParams.comparator??R7}isValid(e){const t=this.params.filterParams.isValidDate;return!t||t(e)}evaluateNonNullValue(e,t,n){const i=n.type,o=this.comparator();if(!this.isValid(t))return i==="notEqual"||i==="notBlank";const r=i,s=U7[r];if(s){const{from:a,to:l}=this.getOrRefreshRangeCacheItem(r,s);return o(a,t)>=0&&o(l,t)<0}return super.evaluateNonNullValue(e,t,n)}},x7=1,Mh=null,P7=()=>{if(Mh!=null)return Mh;let e;const t=typeof navigator>"u"?void 0:navigator.languages?.[0]??navigator.language;if(t&&typeof Intl<"u"&&typeof Intl.Locale=="function")try{e=new Intl.Locale(t).getWeekInfo?.()?.firstDay}catch{e=void 0}return Mh=e==null?x7:e%7,Mh},gi=e=>(e.setHours(0,0,0,0),e),kh=e=>{const t=e.getDay(),n=P7(),i=(t-n+7)%7;return e.setDate(e.getDate()-i),gi(e)},Lh=(e,t=1)=>(e.setDate(e.getDate()-t),e),Gi=e=>(e.setDate(e.getDate()+1),gi(e)),Yx=e=>(kh(e),e.setDate(e.getDate()+6),Gi(e)),_h=e=>(e.setDate(1),gi(e)),Sv=e=>(e.setDate(1),e.setMonth(e.getMonth()+1),gi(e)),Rv=e=>{const t=Math.floor(e.getMonth()/3);return e.setMonth(t*3),_h(e)},Zx=e=>{const t=Math.floor(e.getMonth()/3);return e.setMonth(t*3+2),Sv(e)},Fv=e=>(e.setMonth(0,1),gi(e)),Xx=e=>(e.setMonth(12,0),Gi(e)),al=e=>Lh(e),xv=e=>al(kh(e)),Pv=e=>al(_h(e)),Ev=e=>al(Rv(e)),Dv=(e,t)=>[gi(e),Gi(t)],E7=(e,t)=>Dv(al(e),al(t)),Tv=(e,t)=>[kh(e),Yx(t)],D7=(e,t)=>Tv(xv(e),xv(t)),Av=(e,t)=>[_h(e),Sv(t)],T7=(e,t)=>Av(Pv(e),Pv(t)),Iv=(e,t)=>[Rv(e),Zx(t)],A7=(e,t)=>Iv(Ev(e),Ev(t)),Mv=(e,t)=>[Fv(e),Xx(t)],I7=(e,t)=>[Fv(e),Gi(t)],M7=(e,t)=>[gi(Lh(e,7)),Gi(t)],k7=(e,t)=>[gi(Lh(e,30)),Gi(t)],L7=(e,t)=>[gi(Lh(e,90)),Gi(t)],_7=(e,t)=>(e.setFullYear(e.getFullYear()-1),e.setMonth(e.getMonth()+6),[gi(e),Gi(t)]),O7=(e,t)=>(e.setFullYear(e.getFullYear()-1),[gi(e),Gi(t)]),N7=(e,t)=>(e.setFullYear(e.getFullYear()-2),[gi(e),Gi(t)]),B7=(e,t)=>(e.setFullYear(e.getFullYear()-1),t.setFullYear(t.getFullYear()-1),Mv(e,t)),G7=(e,t)=>(e.setFullYear(e.getFullYear()+1),t.setFullYear(t.getFullYear()+1),Mv(e,t)),H7=(e,t)=>(e.setMonth(e.getMonth()+3),t.setMonth(t.getMonth()+3),Iv(e,t)),V7=(e,t)=>(e.setMonth(e.getMonth()+1),t.setMonth(t.getMonth()+1),Av(e,t)),W7=(e,t)=>(e.setDate(e.getDate()+7),t.setDate(t.getDate()+7),Tv(e,t)),z7=(e,t)=>(e.setDate(e.getDate()+1),t.setDate(t.getDate()+1),Dv(e,t)),U7={today:Dv,yesterday:E7,tomorrow:z7,thisWeek:Tv,lastWeek:D7,nextWeek:W7,thisMonth:Av,lastMonth:T7,nextMonth:V7,thisQuarter:Iv,lastQuarter:A7,nextQuarter:H7,thisYear:Mv,lastYear:B7,nextYear:G7,yearToDate:I7,last7Days:M7,last30Days:k7,last90Days:L7,last6Months:_7,last12Months:O7,last24Months:N7,setStartOfDay:gi,setStartOfWeek:kh,setStartOfNextDay:Gi,setStartOfNextWeek:Yx,setStartOfMonth:_h,setStartOfNextMonth:Sv,setStartOfQuarter:Rv,setStartOfNextQuarter:Zx,setStartOfYear:Fv,setStartOfNextYear:Xx,setPreviousDay:al,setPreviousWeek:xv,setPreviousMonth:Pv,setPreviousQuarter:Ev},$7={tag:"div",cls:"ag-floating-filter-input",role:"presentation",children:[{tag:"ag-input-text-field",ref:"eReadOnlyText"},{tag:"div",ref:"eDateWrapper",cls:"ag-date-floating-filter-wrapper"}]},j7=class extends Wx{constructor(){super($7,[Ph]),this.eReadOnlyText=de,this.eDateWrapper=de,this.FilterModelFormatterClass=Qx,this.filterType="date",this.defaultOptions=yv}setParams(e){super.setParams(e),this.createDateComponent();const t=this.getLocaleTextFunc();this.eReadOnlyText.setDisabled(!0).setInputAriaLabel(t("ariaDateFilterInput","Date Filter Input"))}updateParams(e){super.updateParams(e),this.dateComp.updateParams(this.getDateComponentParams()),this.updateCompOnModelChange(e.currentParentModel())}updateCompOnModelChange(e){const t=!this.readOnly&&this.canWeEditAfterModelFromParentFilter(e);if(this.setEditable(t),t){const n=e?$n(e.dateFrom):null;this.dateComp.setDate(n),this.eReadOnlyText.setValue("")}else this.eReadOnlyText.setValue(this.filterModelFormatter.getModelAsString(e)),this.dateComp.setDate(null)}setEditable(e){bt(this.eDateWrapper,e),bt(this.eReadOnlyText.getGui(),!e)}onModelUpdated(e){super.setLastTypeFromModel(e),this.updateCompOnModelChange(e)}onDateChanged(){const e=this.dateComp.getDate();if(this.reactive){const t=this.params;t.onUiChange();const n=t.model,i=Un(e),o=i==null?null:{...n??{filterType:this.filterType,type:this.lastType??this.optionsFactory.defaultOption},dateFrom:i};t.onModelChange(o,{afterFloatingFilter:!0})}else this.params.parentFilterInstance(t=>{t?.onFloatingFilterChanged(this.lastType||null,e)})}getDateComponentParams(){const{filterParams:e}=this.params,t=jg(e,this.defaultDebounceMs);return We(this.gos,{onDateChanged:un(this,this.onDateChanged.bind(this),t),filterParams:e,location:"floatingFilter"})}createDateComponent(){const{beans:{context:e,userCompFactory:t},eDateWrapper:n,params:{column:i}}=this;this.dateComp=new Ux(e,t,i.getColDef(),this.getDateComponentParams(),n,o=>{o.setInputAriaLabel(this.getAriaLabel(i))}),this.addDestroyFunc(()=>this.dateComp.destroy())}},K7={tag:"div",cls:"ag-filter-filter",children:[{tag:"ag-input-text-field",ref:"eDateInput",cls:"ag-date-filter"}]},q7=class extends yt{constructor(){super(K7,[Ph]),this.eDateInput=de,this.isApply=!1,this.applyOnFocusOut=!1}init(e){this.params=e,this.setParams(e);const t=this.eDateInput.getInputElement();this.addManagedListeners(t,{mouseDown:()=>{this.eDateInput.isDisabled()||this.usingSafariDatePicker||t.focus({preventScroll:!0})},input:this.handleInput.bind(this,!1),change:this.handleInput.bind(this,!0),focusout:this.handleFocusOut.bind(this),focusin:this.handleFocusIn.bind(this)})}handleInput(e){if(!this.eDateInput.isDisabled()){if(this.isApply){this.applyOnFocusOut=!e,e&&this.params.onDateChanged();return}e||this.params.onDateChanged()}}handleFocusOut(){this.applyOnFocusOut&&(this.applyOnFocusOut=!1,this.params.onDateChanged())}handleFocusIn(){this.params.onFocusIn?.()}setParams(e){const t=this.eDateInput.getInputElement(),n=this.shouldUseBrowserDatePicker(e);this.usingSafariDatePicker=n&&zr();const{minValidYear:i,maxValidYear:o,minValidDate:r,maxValidDate:s,buttons:a,includeTime:l,colDef:u}=e.filterParams||{},h=this.beans.dataTypeSvc,f=l??h?.getDateIncludesTimeFlag?.(u.cellDataType)??!1;n?f?(t.type="datetime-local",t.step="1"):t.type="date":t.type="text";const p=Jx(r,i,!0),m=Jx(s,o,!1);p&&m&&p.getTime()>m.getTime()&&se(87),p&&(t.min=Un(p,f)),m&&(t.max=Un(m,f)),this.isApply=e.location==="floatingFilter"&&!!a?.includes("apply")}refresh(e){this.params=e,this.setParams(e)}getDate(){return $n(this.eDateInput.getValue())}setDate(e){const t=this.params.filterParams.colDef.cellDataType,n=this.beans.dataTypeSvc?.getDateIncludesTimeFlag(t)??!1;this.eDateInput.setValue(Un(e,n))}setInputPlaceholder(e){this.eDateInput.setInputPlaceholder(e)}setInputAriaLabel(e){this.eDateInput.setAriaLabel(e)}setDisabled(e){this.eDateInput.setDisabled(e)}afterGuiAttached(e){e?.suppressFocus||this.eDateInput.getInputElement().focus({preventScroll:!0})}shouldUseBrowserDatePicker(e){return e?.filterParams?.browserDatePicker??!0}};function Jx(e,t,n){return e&&t&&se(n?85:86),e instanceof Date?e:e?$n(e):t?$n(`${t}-${n?"01-01":"12-31"}`):null}var kv=["equals","notEqual","greaterThan","greaterThanOrEqual","lessThan","lessThanOrEqual","inRange","blank","notBlank"];function Lv(e){return e?.allowedCharPattern??null}function Oh(e){return e==null||isNaN(e)?null:e}function e1(e,t){const{filter:n,filterTo:i,type:o}=e||{};return[Oh(n),Oh(i)].slice(0,ts(o,t))}var Q7=class extends Ah{constructor(){super("numberFilter",e1,kv),this.eValuesFrom=[],this.eValuesTo=[],this.filterType="number",this.defaultDebounceMs=500}afterGuiAttached(e){super.afterGuiAttached(e),this.refreshInputValidation()}shouldKeepInvalidInputState(){return!qa()&&this.hasInvalidInputs()&&this.getConditionTypes().includes("inRange")}refreshInputValidation(){for(let e=0;e<this.eValuesFrom.length;e++){const t=this.eValuesFrom[e],n=this.eValuesTo[e];this.refreshInputPairValidation(t,n)}}refreshInputPairValidation(e,t,n=!1){const i=this.params.numberParser,o=n1(i,e),r=n1(i,t),s=Y7(o,r,n),a=s?this.translate(s,[String(n?r:o)]):"";(n?e:t).setCustomValidity(a),(n?t:e).setCustomValidity(""),a.length>0&&this.beans.ariaAnnounce.announceValue(a,"dateFilter")}getState(){return{isInvalid:this.hasInvalidInputs()}}areStatesEqual(e,t){return(e?.isInvalid??!1)===(t?.isInvalid??!1)}refresh(e){const t=super.refresh(e),{state:n,additionalEventAttributes:i}=e,o=this.state,r=i?.fromAction;return(r&&r!="apply"||n.model!==o.model||!this.areStatesEqual(n.state,o.state))&&this.refreshInputValidation(),t}setElementValue(e,t,n){const{numberFormatter:i}=this.params,o=!n&&i?i(t??null):t;super.setElementValue(e,o),o===null&&e.setCustomValidity("")}createEValue(){const{params:e,eValuesFrom:t,eValuesTo:n}=this,i=Lv(e),o=rn({tag:"div",cls:"ag-filter-body",role:"presentation"}),r=this.createFromToElement(o,t,"from",i),s=this.createFromToElement(o,n,"to",i),a=(h,f,p)=>()=>this.refreshInputPairValidation(h,f,p),l=a(r,s,!0);r.onValueChange(l),r.addGuiEventListener("focusin",l);const u=a(r,s,!1);return s.onValueChange(u),s.addGuiEventListener("focusin",u),o}createFromToElement(e,t,n,i){const o=this.createManagedBean(i?new ar({allowedCharPattern:i}):new sv);return o.addCss(`ag-filter-${n}`),o.addCss("ag-filter-filter"),t.push(o),e.appendChild(o.getGui()),o}removeEValues(e,t){const n=i=>this.removeComponents(i,e,t);n(this.eValuesFrom),n(this.eValuesTo)}getValues(e){const t=[];return this.forEachPositionInput(e,(n,i,o,r)=>{i<r&&t.push(Oh(t1(this.params.numberParser,n.getValue())))}),t}areSimpleModelsEqual(e,t){return e.filter===t.filter&&e.filterTo===t.filterTo&&e.type===t.type}createCondition(e){const t=this.getConditionType(e),n={filterType:this.filterType,type:t},i=this.getValues(e);return i.length>0&&(n.filter=i[0]),i.length>1&&(n.filterTo=i[1]),n}removeConditionsAndOperators(e,t){if(!this.hasInvalidInputs())return super.removeConditionsAndOperators(e,t)}getInputs(e){const{eValuesFrom:t,eValuesTo:n}=this;return e>=t.length?[null,null]:[t[e],n[e]]}hasInvalidInputs(){let e=!1;return this.forEachInput(t=>e||(e=!t.getInputElement().validity.valid)),e}positionHasInvalidInputs(e){let t=!1;return this.forEachPositionInput(e,n=>t||(t=!n.getInputElement().validity.valid)),t}canApply(e){return!this.hasInvalidInputs()}};function t1(e,t){if(typeof t=="number")return t;let n=Jo(t);return n!=null&&n.trim()===""&&(n=null),e?e(n):n==null||n.trim()==="-"?null:Number.parseFloat(n)}function n1(e,t){return Oh(t1(e,t.getValue(!0)))}function Y7(e,t,n){return e!=null&&t!=null&&e>=t?`strict${n?"Max":"Min"}ValueValidation`:null}var i1=class extends Ih{constructor(e,t){super(e,t,t.numberFormatter),this.filterTypeKeys=vv}conditionToString(e,t,n,i,o){const{filter:r,filterTo:s,type:a}=e,l=this.formatValue.bind(this);if(t){const u=this.conditionForToolPanel(a,n,()=>l(r),()=>l(s),i,o);if(u!=null)return u}return n?`${l(r)}-${l(s)}`:r!=null?l(r):`${a}`}},Z7=class extends mv{constructor(){super(e1,kv),this.filterType="number",this.FilterModelFormatterClass=i1}comparator(){return(e,t)=>e===t?0:e<t?1:-1}isValid(e){return!isNaN(e)}},X7=class extends X{constructor(){super(...arguments),this.onValueChanged=()=>{},this.numberInputActive=!0}setupGui(e){this.eNumberInput=this.createManagedBean(new sv),this.eTextInput=this.createManagedBean(new ar),this.eTextInput.setDisabled(!0);const t=this.eNumberInput.getGui(),n=this.eTextInput.getGui();e.appendChild(t),e.appendChild(n),this.setupListeners(t,i=>this.onValueChanged(i)),this.setupListeners(n,i=>this.onValueChanged(i))}setEditable(e){this.numberInputActive=e,this.eNumberInput.setDisplayed(this.numberInputActive),this.eTextInput.setDisplayed(!this.numberInputActive)}setAutoComplete(e){this.eNumberInput.setAutoComplete(e),this.eTextInput.setAutoComplete(e)}getValue(){return this.getActiveInputElement().getValue()}setValue(e,t){this.getActiveInputElement().setValue(e,t)}getActiveInputElement(){return this.numberInputActive?this.eNumberInput:this.eTextInput}setValueChangedListener(e){this.onValueChanged=e}setupListeners(e,t){this.addManagedListeners(e,{input:t,keydown:t})}setParams({ariaLabel:e,autoComplete:t,placeholder:n}){this.setAriaLabel(e),t!==void 0&&this.setAutoComplete(t),this.setPlaceholder(this.eNumberInput,n),this.setPlaceholder(this.eTextInput,n)}setPlaceholder(e,t){e.toggleCss("ag-floating-filter-search-icon",!!t),e.setInputPlaceholder(t)}setAriaLabel(e){this.eNumberInput.setInputAriaLabel(e),this.eTextInput.setInputAriaLabel(e)}},J7=class extends bv{constructor(){super(...arguments),this.FilterModelFormatterClass=i1,this.filterType="number",this.defaultOptions=kv}updateParams(e){Lv(e.filterParams)!==this.allowedCharPattern&&this.recreateFloatingFilterInputService(e),super.updateParams(e)}createFloatingFilterInputService(e){return this.allowedCharPattern=Lv(e.filterParams),this.allowedCharPattern?this.createManagedBean(new Cv({config:{allowedCharPattern:this.allowedCharPattern}})):this.createManagedBean(new X7)}convertValue(e){return e?Number(e):null}},_v=["contains","notContains","equals","notEqual","startsWith","endsWith","blank","notBlank"],e8=class extends Ah{constructor(){super("textFilter",Vx,_v),this.filterType="text",this.eValuesFrom=[],this.eValuesTo=[],this.defaultDebounceMs=500}createCondition(e){const t=this.getConditionType(e),n={filterType:this.filterType,type:t},i=this.getValues(e);return i.length>0&&(n.filter=i[0]),i.length>1&&(n.filterTo=i[1]),n}areSimpleModelsEqual(e,t){return e.filter===t.filter&&e.filterTo===t.filterTo&&e.type===t.type}getInputs(e){const{eValuesFrom:t,eValuesTo:n}=this;return e>=t.length?[null,null]:[t[e],n[e]]}getValues(e){const t=[];return this.forEachPositionInput(e,(n,i,o,r)=>{i<r&&t.push(Jo(n.getValue()))}),t}createEValue(){const e=rn({tag:"div",cls:"ag-filter-body",role:"presentation"}),{eValuesFrom:t,eValuesTo:n}=this;return this.createFromToElement(e,t,"from"),this.createFromToElement(e,n,"to"),e}createFromToElement(e,t,n){const i=this.createManagedBean(new ar);i.addCss(`ag-filter-${n}`),i.addCss("ag-filter-filter"),t.push(i),e.appendChild(i.getGui())}removeEValues(e,t){const n=r=>this.removeComponents(r,e,t),{eValuesFrom:i,eValuesTo:o}=this;n(i),n(o)}},o1=class extends Ih{constructor(){super(...arguments),this.filterTypeKeys=v7}conditionToString(e,t,n,i,o){const{filter:r,filterTo:s,type:a}=e;if(t){const l=h=>()=>to(this,"filterSummaryTextQuote",[h]),u=this.conditionForToolPanel(a,n,l(r),l(s),i,o);if(u!=null)return u}return n?`${r}-${s}`:r!=null?`${r}`:`${a}`}},t8=({filterOption:e,value:t,filterText:n})=>{if(n==null)return!1;switch(e){case"contains":return t.includes(n);case"notContains":return!t.includes(n);case"equals":return t===n;case"notEqual":return t!=n;case"startsWith":return t.indexOf(n)===0;case"endsWith":{const i=t.lastIndexOf(n);return i>=0&&i===t.length-n.length}default:return!1}},n8=e=>e,i8=e=>e==null?null:e.toString().toLowerCase(),o8=class extends Gx{constructor(){super(Vx,_v),this.filterType="text",this.FilterModelFormatterClass=o1}updateParams(e){super.updateParams(e);const t=e.filterParams;this.matcher=t.textMatcher??t8,this.formatter=t.textFormatter??(t.caseSensitive?n8:i8)}evaluateNullValue(e){return e?["notEqual","notContains","blank"].indexOf(e)>=0:!1}evaluateNonNullValue(e,t,n,i){const o=e.map(p=>this.formatter(p))||[],r=this.formatter(t),{api:s,colDef:a,column:l,context:u,filterParams:{textFormatter:h}}=this.params;if(n.type==="blank")return Th(t);if(n.type==="notBlank")return!Th(t);const f={api:s,colDef:a,column:l,context:u,node:i.node,data:i.data,filterOption:n.type,value:r,textFormatter:h};return o.some(p=>this.matcher({...f,filterText:p}))}processModelToApply(e){if(e&&this.params.filterParams.trimInput){const t=n=>{const i={...n},{filter:o,filterTo:r}=n;return o&&(i.filter=wv(o)??null),r&&(i.filterTo=wv(r)??null),i};return I0(e)?{...e,conditions:e.conditions.map(t)}:t(e)}return e}},r8=class extends bv{constructor(){super(...arguments),this.FilterModelFormatterClass=o1,this.filterType="text",this.defaultOptions=_v}createFloatingFilterInputService(){return this.createManagedBean(new Cv)}};function s8(e){return!!e.quickFilter?.isFilterPresent()}function a8(e){return e.quickFilter?.getText()}function l8(e){e.quickFilter?.resetCache()}var c8=class extends X{constructor(){super(...arguments),this.beanName="quickFilter",this.quickFilter=null,this.quickFilterParts=null}postConstruct(){const e=this.resetCache.bind(this),t=this.gos;this.addManagedEventListeners({columnPivotModeChanged:e,newColumnsLoaded:e,columnRowGroupChanged:e,columnVisible:()=>{t.get("includeHiddenColumnsInQuickFilter")||this.resetCache()}}),this.addManagedPropertyListener("quickFilterText",n=>this.setFilter(n.currentValue)),this.addManagedPropertyListeners(["includeHiddenColumnsInQuickFilter","applyQuickFilterBeforePivotOrAgg"],()=>this.onColumnConfigChanged()),this.quickFilter=this.parseFilter(t.get("quickFilterText")),this.parser=t.get("quickFilterParser"),this.matcher=t.get("quickFilterMatcher"),this.setFilterParts(),this.addManagedPropertyListeners(["quickFilterMatcher","quickFilterParser"],()=>this.setParserAndMatcher())}refreshCols(){const{autoColSvc:e,colModel:t,gos:n,pivotResultCols:i}=this.beans,o=t.isPivotMode(),r=e?.getColumns(),s=t.getColDefCols();let a=(o&&!n.get("applyQuickFilterBeforePivotOrAgg")?i?.getPivotResultCols()?.list:s)??[];r&&(a=a.concat(r)),this.colsToUse=n.get("includeHiddenColumnsInQuickFilter")?a:a.filter(l=>l.isVisible()||l.isRowGroupActive())}isFilterPresent(){return this.quickFilter!==null}doesRowPass(e){const t=this.gos.get("cacheQuickFilter");return this.matcher?this.doesRowPassMatcher(t,e):this.quickFilterParts.every(n=>t?this.doesRowPassCache(e,n):this.doesRowPassNoCache(e,n))}resetCache(){this.beans.rowModel.forEachNode(e=>e.quickFilterAggregateText=null)}getText(){return this.gos.get("quickFilterText")}setFilterParts(){const{quickFilter:e,parser:t}=this;e?this.quickFilterParts=t?t(e):e.split(" "):this.quickFilterParts=null}parseFilter(e){return Ce(e)?e.toUpperCase():null}setFilter(e){if(e!=null&&typeof e!="string"){se(70,{newFilter:e});return}const t=this.parseFilter(e);this.quickFilter!==t&&(this.quickFilter=t,this.setFilterParts(),this.dispatchLocalEvent({type:"quickFilterChanged"}))}setParserAndMatcher(){const e=this.gos.get("quickFilterParser"),t=this.gos.get("quickFilterMatcher"),n=e!==this.parser||t!==this.matcher;this.parser=e,this.matcher=t,n&&(this.setFilterParts(),this.dispatchLocalEvent({type:"quickFilterChanged"}))}onColumnConfigChanged(){this.refreshCols(),this.resetCache(),this.isFilterPresent()&&this.dispatchLocalEvent({type:"quickFilterChanged"})}doesRowPassNoCache(e,t){return this.colsToUse.some(n=>{const i=this.getTextForColumn(n,e);return Ce(i)&&i.includes(t)})}doesRowPassCache(e,t){return this.checkGenerateAggText(e),e.quickFilterAggregateText.includes(t)}doesRowPassMatcher(e,t){let n;e?(this.checkGenerateAggText(t),n=t.quickFilterAggregateText):n=this.getAggText(t);const{quickFilterParts:i,matcher:o}=this;return o(i,n)}checkGenerateAggText(e){e.quickFilterAggregateText||(e.quickFilterAggregateText=this.getAggText(e))}getTextForColumn(e,t){let n=this.beans.filterValueSvc.getValue(e,t);const i=e.getColDef();if(i.getQuickFilterText){const o=We(this.gos,{value:n,node:t,data:t.data,column:e,colDef:i});n=i.getQuickFilterText(o)}return Ce(n)?n.toString().toUpperCase():null}getAggText(e){const t=[];for(const n of this.colsToUse){const i=this.getTextForColumn(n,e);Ce(i)&&t.push(i)}return t.join(`
64
+ `)}},u8={moduleName:"ClientSideRowModelFilter",version:me,rowModels:["clientSide"],beans:[iz]},Ov={moduleName:"FilterCore",version:me,beans:[J4],apiFunctions:{isAnyFilterPresent:Z4,onFilterChanged:X4},css:[A4],dependsOn:[u8]},r1={moduleName:"FilterValue",version:me,beans:[a7]},Gc={moduleName:"ColumnFilter",version:me,beans:[Y4,s7],dynamicBeans:{headerFilterCellCtrl:x4},icons:{filter:"filter",filterActive:"filter"},apiFunctions:{isColumnFilterPresent:I4,getColumnFilterInstance:M4,destroyFilter:k4,setFilterModel:L4,getFilterModel:_4,getColumnFilterModel:O4,setColumnFilterModel:N4,showColumnFilter:B4,hideColumnFilter:G4,getColumnFilterHandler:H4,doFilterAction:V4},dependsOn:[Ov,xh,r1,T4]},d8={moduleName:"CustomFilter",version:me,userComponents:{agReadOnlyFloatingFilter:c7},dependsOn:[Gc]},h8={moduleName:"TextFilter",version:me,dependsOn:[Gc],userComponents:{agTextColumnFilter:{classImp:e8,params:{useForm:!0}},agTextColumnFloatingFilter:r8},dynamicBeans:{agTextColumnFilterHandler:o8}},f8={moduleName:"NumberFilter",version:me,dependsOn:[Gc],userComponents:{agNumberColumnFilter:{classImp:Q7,params:{useForm:!0}},agNumberColumnFloatingFilter:J7},dynamicBeans:{agNumberColumnFilterHandler:Z7}},p8={moduleName:"BigIntFilter",version:me,dependsOn:[Gc],userComponents:{agBigIntColumnFilter:{classImp:g7,params:{useForm:!0}},agBigIntColumnFloatingFilter:b7},dynamicBeans:{agBigIntColumnFilterHandler:C7}},g8={moduleName:"DateFilter",version:me,dependsOn:[Gc],userComponents:{agDateColumnFilter:{classImp:y7,params:{useForm:!0}},agDateInput:q7,agDateColumnFloatingFilter:j7},dynamicBeans:{agDateColumnFilterHandler:F7}},m8={moduleName:"QuickFilterCore",version:me,rowModels:["clientSide"],beans:[c8],dependsOn:[Ov,r1]},v8={moduleName:"QuickFilter",version:me,apiFunctions:{isQuickFilterPresent:s8,getQuickFilter:a8,resetQuickFilter:l8},dependsOn:[m8]},C8={moduleName:"ExternalFilter",version:me,dependsOn:[Ov]},w8=class extends X{constructor(e,t,n){super(),this.id=e,this.parentCache=t,this.params=n,this.state="needsLoading",this.version=0,this.startRow=e*n.blockSize,this.endRow=this.startRow+n.blockSize}load(){this.state="loading",this.loadFromDatasource()}setStateWaitingToLoad(){this.version++,this.state="needsLoading"}pageLoadFailed(e){this.isRequestMostRecentAndLive(e)&&(this.state="failed"),this.dispatchLocalEvent({type:"loadComplete"})}pageLoaded(e,t,n){this.successCommon(e,{rowData:t,rowCount:n})}isRequestMostRecentAndLive(e){const t=e===this.version,n=this.isAlive();return t&&n}successCommon(e,t){this.dispatchLocalEvent({type:"loadComplete"}),this.isRequestMostRecentAndLive(e)&&(this.state="loaded",this.processServerResult(t))}postConstruct(){this.rowNodes=[];const{params:{blockSize:e,rowHeight:t},startRow:n,beans:i,rowNodes:o}=this;for(let r=0;r<e;r++){const s=n+r,a=new Ur(i);a.setRowHeight(t),a.uiLevel=0,a.setRowIndex(s),a.setRowTop(t*s),o.push(a)}}getBlockStateJson(){const{id:e,startRow:t,endRow:n,state:i}=this;return{id:""+e,state:{blockNumber:e,startRow:t,endRow:n,pageStatus:i}}}setDataAndId(e,t,n){Ce(t)?e.setDataAndId(t,n.toString()):e.setDataAndId(void 0,void 0)}loadFromDatasource(){const e=this.createLoadParams();if(Nt(this.params.datasource.getRows)){se(90);return}window.setTimeout(()=>{this.params.datasource.getRows(e)},0)}createLoadParams(){const{startRow:e,endRow:t,version:n,params:{sortModel:i,filterModel:o},gos:r}=this;return We(r,{startRow:e,endRow:t,successCallback:this.pageLoaded.bind(this,n),failCallback:this.pageLoadFailed.bind(this,n),sortModel:i,filterModel:o})}forEachNode(e,t,n){this.rowNodes.forEach((i,o)=>{this.startRow+o<n&&e(i,t.value++)})}getRow(e,t=!1){t||(this.lastAccessed=this.params.lastAccessedSequence.value++);const n=e-this.startRow;return this.rowNodes[n]}processServerResult(e){const{rowNodes:t,beans:n}=this;t.forEach((o,r)=>{const s=e.rowData?e.rowData[r]:void 0;!o.id&&o.alreadyRendered&&s&&(t[r]=new Ur(n),t[r].setRowIndex(o.rowIndex),t[r].setRowTop(o.rowTop),t[r].setRowHeight(o.rowHeight),o._destroy(!0)),this.setDataAndId(t[r],s,this.startRow+r)});const i=e.rowCount!=null&&e.rowCount>=0?e.rowCount:void 0;this.parentCache.pageLoaded(this,i)}destroy(){const e=this.rowNodes;for(let t=0,n=e.length;t<n;t++)e[t]._destroy(!1);e.length=0,super.destroy()}},b8=2,y8=class extends X{constructor(e){super(),this.params=e,this.lastRowIndexKnown=!1,this.blocks={},this.blockCount=0,this.rowCount=e.initialRowCount}getRow(e,t=!1){const n=Math.floor(e/this.params.blockSize);let i=this.blocks[n];if(!i){if(t)return;i=this.createBlock(n)}return i.getRow(e)}createBlock(e){const t=this.params,n=this.createBean(new w8(e,this,t));return this.blocks[n.id]=n,this.blockCount++,this.purgeBlocksIfNeeded(n),t.rowNodeBlockLoader.addBlock(n),n}refreshCache(){if(this.blockCount==0){this.purgeCache();return}for(const t of this.getBlocksInOrder())t.setStateWaitingToLoad();this.params.rowNodeBlockLoader.checkBlockToLoad()}destroy(){for(const e of this.getBlocksInOrder())this.destroyBlock(e);super.destroy()}getRowCount(){return this.rowCount}isLastRowIndexKnown(){return this.lastRowIndexKnown}pageLoaded(e,t){this.isAlive()&&(Nr(this.gos,`InfiniteCache - onPageLoaded: page = ${e.id}, lastRow = ${t}`),this.checkRowCount(e,t),this.onCacheUpdated())}purgeBlocksIfNeeded(e){const t=this.getBlocksInOrder().filter(s=>s!=e),n=(s,a)=>a.lastAccessed-s.lastAccessed;t.sort(n);const i=this.params.maxBlocksInCache>0,o=i?this.params.maxBlocksInCache-1:null,r=b8-1;t.forEach((s,a)=>{const l=s.state==="needsLoading"&&a>=r,u=i?a>=o:!1;if(l||u){if(this.isBlockCurrentlyDisplayed(s)||this.isBlockFocused(s))return;this.removeBlockFromCache(s)}})}isBlockFocused(e){const t=this.beans.focusSvc.getFocusCellToUseAfterRefresh();if(!t||t.rowPinned!=null)return!1;const{startRow:n,endRow:i}=e;return t.rowIndex>=n&&t.rowIndex<i}isBlockCurrentlyDisplayed(e){const{startRow:t,endRow:n}=e;return this.beans.rowRenderer.isRangeInRenderedViewport(t,n-1)}removeBlockFromCache(e){e&&this.destroyBlock(e)}checkRowCount(e,t){if(typeof t=="number"&&t>=0)this.rowCount=t,this.lastRowIndexKnown=!0;else if(!this.lastRowIndexKnown){const{blockSize:n,overflowSize:i}=this.params,r=(e.id+1)*n+i;this.rowCount<r&&(this.rowCount=r)}}setRowCount(e,t){this.rowCount=e,Ce(t)&&(this.lastRowIndexKnown=t),this.lastRowIndexKnown||this.rowCount%this.params.blockSize===0&&this.rowCount++,this.onCacheUpdated()}forEachNodeDeep(e){const t={value:0};for(const n of this.getBlocksInOrder())n.forEachNode(e,t,this.rowCount)}getBlocksInOrder(){const e=(n,i)=>n.id-i.id;return Object.values(this.blocks).sort(e)}destroyBlock(e){delete this.blocks[e.id],this.destroyBean(e),this.blockCount--,this.params.rowNodeBlockLoader.removeBlock(e)}onCacheUpdated(){this.isAlive()&&(this.destroyAllBlocksPastVirtualRowCount(),this.eventSvc.dispatchEvent({type:"storeUpdated"}))}destroyAllBlocksPastVirtualRowCount(){const e=[];for(const t of this.getBlocksInOrder())t.id*this.params.blockSize>=this.rowCount&&e.push(t);if(e.length>0)for(const t of e)this.destroyBlock(t)}purgeCache(){for(const e of this.getBlocksInOrder())this.removeBlockFromCache(e);this.lastRowIndexKnown=!1,this.rowCount===0&&(this.rowCount=this.params.initialRowCount),this.onCacheUpdated()}getRowNodesInRange(e,t){const n=[];let i=-1,o=!1;const r={value:0};let s=!1;for(const l of this.getBlocksInOrder())if(!s){if(o&&i+1!==l.id){s=!0;continue}i=l.id,l.forEachNode(u=>{const h=u===e||u===t;(o||h)&&n.push(u),h&&(o=!o)},r,this.rowCount)}return s||o?[]:n}},S8=class extends X{constructor(){super(...arguments),this.beanName="rowModel",this.rootNode=null,this.hierarchical=!1}getRowBounds(e){return{rowHeight:this.rowHeight,rowTop:this.rowHeight*e}}ensureRowHeightsValid(){return!1}postConstruct(){if(this.gos.get("rowModelType")!=="infinite")return;const e=this.beans,t=new Ur(e);this.rootNode=t,t.level=-1,this.rowHeight=Ms(e),this.addEventListeners(),this.addDestroyFunc(()=>this.destroyCache())}start(){this.setDatasource(this.gos.get("datasource"))}destroy(){this.destroyDatasource(),super.destroy(),this.rootNode=null}destroyDatasource(){this.datasource&&(this.destroyBean(this.datasource),this.beans.rowRenderer.datasourceChanged(),this.datasource=null)}addEventListeners(){this.addManagedEventListeners({filterChanged:this.reset.bind(this),sortChanged:this.reset.bind(this),newColumnsLoaded:this.onColumnEverything.bind(this),storeUpdated:this.dispatchModelUpdatedEvent.bind(this)}),this.addManagedPropertyListener("datasource",()=>this.setDatasource(this.gos.get("datasource"))),this.addManagedPropertyListener("cacheBlockSize",()=>this.resetCache()),this.addManagedPropertyListener("rowHeight",()=>{this.rowHeight=Ms(this.beans),this.cacheParams.rowHeight=this.rowHeight,this.updateRowHeights()})}onColumnEverything(){let e;this.cacheParams?e=!rc(this.cacheParams.sortModel,this.beans.sortSvc?.getSortModel()??[]):e=!0,e&&this.reset()}getType(){return"infinite"}setDatasource(e){this.destroyDatasource(),this.datasource=e,e&&this.reset()}isEmpty(){return!this.infiniteCache}isRowsToRender(){return!!this.infiniteCache}getOverlayType(){return this.infiniteCache?.getRowCount()===0?this.beans.filterManager?.isAnyFilterPresent()?"noMatchingRows":"noRows":null}getNodesInRangeForSelection(e,t){return this.infiniteCache?.getRowNodesInRange(e,t)??[]}reset(){if(!this.datasource)return;Wa(this.gos)!=null||this.beans.selectionSvc?.reset("rowDataChanged"),this.resetCache()}dispatchModelUpdatedEvent(){this.eventSvc.dispatchEvent({type:"modelUpdated",newPage:!1,newPageSize:!1,newData:!1,keepRenderedRows:!0,animate:!1})}resetCache(){this.destroyCache();const e=this.beans,{filterManager:t,sortSvc:n,rowNodeBlockLoader:i,eventSvc:o,gos:r}=e;this.cacheParams={datasource:this.datasource,filterModel:t?.getFilterModel()??{},sortModel:n?.getSortModel()??[],rowNodeBlockLoader:i,initialRowCount:r.get("infiniteInitialRowCount"),maxBlocksInCache:r.get("maxBlocksInCache"),rowHeight:Ms(e),overflowSize:r.get("cacheOverflowSize"),blockSize:r.get("cacheBlockSize"),lastAccessedSequence:{value:0}},this.infiniteCache=this.createBean(new y8(this.cacheParams)),o.dispatchEventOnce({type:"rowCountReady"}),this.dispatchModelUpdatedEvent()}updateRowHeights(){this.forEachNode(e=>{e.setRowHeight(this.rowHeight),e.setRowTop(this.rowHeight*e.rowIndex)}),this.dispatchModelUpdatedEvent()}destroyCache(){this.infiniteCache=this.destroyBean(this.infiniteCache)}getRow(e){const t=this.infiniteCache;if(t&&!(e>=t.getRowCount()))return t.getRow(e)}getRowNode(e){let t;return this.forEachNode(n=>{n.id===e&&(t=n)}),t}forEachNode(e){this.infiniteCache?.forEachNodeDeep(e)}getTopLevelRowCount(){return this.getRowCount()}getTopLevelRowDisplayedIndex(e){return e}getRowIndexAtPixel(e){if(this.rowHeight!==0){const t=Math.floor(e/this.rowHeight),n=this.getRowCount()-1;return t>n?n:t}return 0}getRowCount(){return this.infiniteCache?this.infiniteCache.getRowCount():0}isRowPresent(e){return!!this.getRowNode(e.id)}refreshCache(){this.infiniteCache?.refreshCache()}purgeCache(){this.infiniteCache?.purgeCache()}isLastRowIndexKnown(){return this.infiniteCache?.isLastRowIndexKnown()??!1}setRowCount(e,t){this.infiniteCache?.setRowCount(e,t)}resetRowHeights(){}onRowHeightChanged(){}};function R8(e){Yd(e)?.refreshCache()}function F8(e){Yd(e)?.purgeCache()}function x8(e){return Yd(e)?.getRowCount()}var P8=class extends X{constructor(){super(...arguments),this.beanName="rowNodeBlockLoader",this.activeBlockLoadsCount=0,this.blocks=[],this.active=!0}postConstruct(){this.maxConcurrentRequests=f_(this.gos);const e=this.gos.get("blockLoadDebounceMillis");e&&e>0&&(this.checkBlockToLoadDebounce=un(this,this.performCheckBlocksToLoad.bind(this),e))}addBlock(e){this.blocks.push(e),e.addEventListener("loadComplete",this.loadComplete.bind(this)),this.checkBlockToLoad()}removeBlock(e){So(this.blocks,e)}destroy(){super.destroy(),this.active=!1}loadComplete(){this.activeBlockLoadsCount--,this.checkBlockToLoad()}checkBlockToLoad(){this.checkBlockToLoadDebounce?this.checkBlockToLoadDebounce():this.performCheckBlocksToLoad()}performCheckBlocksToLoad(){if(!this.active)return;if(this.printCacheStatus(),this.maxConcurrentRequests!=null&&this.activeBlockLoadsCount>=this.maxConcurrentRequests){Nr(this.gos,"RowNodeBlockLoader - checkBlockToLoad: max loads exceeded");return}const e=this.maxConcurrentRequests!=null?this.maxConcurrentRequests-this.activeBlockLoadsCount:1,t=this.blocks.filter(n=>n.state==="needsLoading").slice(0,e);this.activeBlockLoadsCount+=t.length;for(const n of t)n.load();this.printCacheStatus()}getBlockState(){const e={};return this.blocks.forEach(t=>{const{id:n,state:i}=t.getBlockStateJson();e[n]=i}),e}printCacheStatus(){Nr(this.gos,`RowNodeBlockLoader - printCacheStatus: activePageLoadsCount = ${this.activeBlockLoadsCount}, blocks = ${JSON.stringify(this.getBlockState())}`)}},E8={moduleName:"InfiniteRowModelCore",version:me,rowModels:["infinite"],beans:[S8,P8]},D8={moduleName:"InfiniteRowModel",version:me,apiFunctions:{refreshInfiniteCache:R8,purgeInfiniteCache:F8,getInfiniteRowCount:x8},dependsOn:[E8,Y3]},T8=class extends X{constructor(){super(...arguments),this.beanName="apiEventSvc",this.syncListeners=new Map,this.asyncListeners=new Map,this.syncGlobalListeners=new Set,this.globalListenerPairs=new Map}postConstruct(){this.wrapSvc=this.beans.frameworkOverrides.createGlobalEventListenerWrapper?.()}addListener(e,t){const n=this.wrapSvc?.wrap(e,t)??t,i=!Mc.has(e),o=i?this.asyncListeners:this.syncListeners;o.has(e)||o.set(e,new Set),o.get(e).add(n),this.eventSvc.addListener(e,n,i)}removeListener(e,t){const n=this.wrapSvc?.unwrap(e,t)??t,o=!!this.asyncListeners.get(e)?.delete(n);o||this.syncListeners.get(e)?.delete(n),this.eventSvc.removeListener(e,n,o)}addGlobalListener(e){const t=this.wrapSvc?.wrapGlobal(e)??e,n=(r,s)=>{Mc.has(r)&&t(r,s)},i=(r,s)=>{Mc.has(r)||t(r,s)};this.globalListenerPairs.set(e,{syncListener:n,asyncListener:i});const o=this.eventSvc;o.addGlobalListener(n,!1),o.addGlobalListener(i,!0)}removeGlobalListener(e){const{eventSvc:t,wrapSvc:n,globalListenerPairs:i}=this,o=n?.unwrapGlobal(e)??e;if(i.has(o)){const{syncListener:s,asyncListener:a}=i.get(o);t.removeGlobalListener(s,!1),t.removeGlobalListener(a,!0),i.delete(e)}else this.syncGlobalListeners.delete(o),t.removeGlobalListener(o,!1)}destroyEventListeners(e,t){e.forEach((n,i)=>{n.forEach(o=>this.eventSvc.removeListener(i,o,t)),n.clear()}),e.clear()}destroyGlobalListeners(e,t){for(const n of e)this.eventSvc.removeGlobalListener(n,t);e.clear()}destroy(){super.destroy(),this.destroyEventListeners(this.syncListeners,!1),this.destroyEventListeners(this.asyncListeners,!0),this.destroyGlobalListeners(this.syncGlobalListeners,!1);const{globalListenerPairs:e,eventSvc:t}=this;e.forEach(({syncListener:n,asyncListener:i})=>{t.removeGlobalListener(n,!1),t.removeGlobalListener(i,!0)}),e.clear()}};function A8(e,t,n){e.apiEventSvc?.addListener(t,n)}function I8(e,t,n){e.apiEventSvc?.removeListener(t,n)}function M8(e,t){e.apiEventSvc?.addGlobalListener(t)}function k8(e,t){e.apiEventSvc?.removeGlobalListener(t)}var L8={moduleName:"EventApi",version:me,apiFunctions:{addEventListener:A8,addGlobalListener:M8,removeEventListener:I8,removeGlobalListener:k8},beans:[T8]},_8=class extends X{constructor(){super(...arguments),this.beanName="localeSvc"}getLocaleTextFunc(){const e=this.gos,t=e.getCallback("getLocaleText");return t?_L(t):OL(e.get("localeText"))}},O8={moduleName:"Locale",version:me,beans:[_8]};function N8(e){return e.stateSvc?.getState()??{}}function B8(e,t,n){return e.stateSvc?.setState(t,n)}function s1(e){return e={...e},e.version||(e.version="32.1.0"),e.version==="32.1.0"&&(e=G8(e)),e.version=me,e}function G8(e){return e.cellSelection=H8(e,"rangeSelection"),e}function H8(e,t){if(e&&typeof e=="object")return e[t]}var V8=class extends X{constructor(){super(...arguments),this.beanName="stateSvc",this.updateRowGroupExpansionStateTimer=0,this.suppressEvents=!0,this.queuedUpdateSources=new Set,this.dispatchStateUpdateEventDebounced=un(this,()=>this.dispatchQueuedStateUpdateEvents(),0),this.onRowGroupOpenedDebounced=un(this,()=>this.updateGroupExpansionState(),0),this.onRowSelectedDebounced=un(this,()=>{this.staleStateKeys.delete("rowSelection"),this.updateCachedState("rowSelection",this.getRowSelectionState())},0),this.staleStateKeys=new Set}postConstruct(){const{gos:e,ctrlsSvc:t,colDelayRenderSvc:n}=this.beans;this.isClientSideRowModel=Yt(e);const i=s1(e.get("initialState")??{}),o=i.partialColumnState;delete i.partialColumnState,this.cachedState=i;const r=this.suppressEventsAndDispatchInitEvent.bind(this);t.whenReady(this,()=>r(()=>this.setupStateOnGridReady(i))),(i.columnOrder||i.columnVisibility||i.columnSizing||i.columnPinning||i.columnGroup)&&n?.hideColumns("columnState");const[s,a,l]=this.addManagedEventListeners({newColumnsLoaded:({source:u})=>{u==="gridInitializing"&&(s(),r(()=>{this.setupStateOnColumnsInitialised(i,!!o),n?.revealColumns("columnState")}))},rowCountReady:()=>{a?.(),r(()=>this.setupStateOnRowCountReady(i))},firstDataRendered:()=>{l?.(),r(()=>this.setupStateOnFirstDataRendered(i))}})}destroy(){super.destroy(),clearTimeout(this.updateRowGroupExpansionStateTimer),this.queuedUpdateSources.clear()}getState(){return this.staleStateKeys.size&&this.refreshStaleState(),this.cachedState}setState(e,t){const n=s1(e);delete n.partialColumnState,this.cachedState=n,this.startSuppressEvents();const i="api",o=t?new Set(t):void 0;this.setGridReadyState(n,i,o),this.setColumnsInitialisedState(n,i,!!o,o),this.setRowCountState(n,i,o),setTimeout(()=>{this.isAlive()&&this.setFirstDataRenderedState(n,i,o),this.stopSuppressEvents(i)})}setGridReadyState(e,t,n){t==="api"&&!n?.has("sideBar")&&this.beans.sideBar?.comp?.setState(e.sideBar),this.updateCachedState("sideBar",this.getSideBarState())}setupStateOnGridReady(e){this.setGridReadyState(e,"gridInitializing");const t=()=>this.updateCachedState("sideBar",this.getSideBarState());this.addManagedEventListeners({toolPanelVisibleChanged:t,sideBarUpdated:t})}updateColumnAndGroupState(){this.updateColumnState(["aggregation","columnOrder","columnPinning","columnSizing","columnVisibility","pivot","rowGroup","sort"]),this.updateCachedState("columnGroup",this.getColumnGroupState())}setColumnsInitialisedState(e,t,n,i){this.setColumnState(e,t,n,i),this.setColumnGroupState(e,t,i),this.updateColumnAndGroupState()}setupStateOnColumnsInitialised(e,t){this.setColumnsInitialisedState(e,"gridInitializing",t);const n=i=>()=>this.updateColumnState([i]);this.addManagedEventListeners({columnValueChanged:n("aggregation"),columnMoved:n("columnOrder"),columnPinned:n("columnPinning"),columnResized:n("columnSizing"),columnVisible:n("columnVisibility"),columnPivotChanged:n("pivot"),columnPivotModeChanged:n("pivot"),columnRowGroupChanged:n("rowGroup"),sortChanged:n("sort"),newColumnsLoaded:({source:i})=>{this.updateColumnAndGroupState(),i!=="gridInitializing"&&this.isClientSideRowModel&&this.onRowGroupOpenedDebounced()},columnGroupOpened:()=>this.updateCachedState("columnGroup",this.getColumnGroupState())})}setRowCountState(e,t,n){const{filter:i,rowGroupExpansion:o,ssrmRowGroupExpansion:r,rowSelection:s,pagination:a,rowPinning:l}=e,u=(f,p)=>!n?.has(f)&&(p||t==="api");u("filter",i)&&this.setFilterState(i),(u("rowGroupExpansion",o)||u("ssrmRowGroupExpansion",r))&&this.setRowGroupExpansionState(r,o,t),u("rowSelection",s)&&this.setRowSelectionState(s,t),u("pagination",a)&&this.setPaginationState(a,t),u("rowPinning",l)&&this.setRowPinningState(l);const h=this.updateCachedState.bind(this);h("filter",this.getFilterState()),this.updateGroupExpansionState(),h("rowSelection",this.getRowSelectionState()),h("pagination",this.getPaginationState())}setupStateOnRowCountReady(e){this.setRowCountState(e,"gridInitializing");const t=this.updateCachedState.bind(this),n=()=>{this.updateRowGroupExpansionStateTimer=0,this.updateGroupExpansionState()},i=()=>t("filter",this.getFilterState()),{gos:o,colFilter:r,selectableFilter:s}=this.beans;this.addManagedEventListeners({filterChanged:i,rowExpansionStateChanged:this.onRowGroupOpenedDebounced,expandOrCollapseAll:n,columnRowGroupChanged:n,rowDataUpdated:()=>{(o.get("groupDefaultExpanded")!==0||o.get("isGroupOpenByDefault"))&&(this.updateRowGroupExpansionStateTimer||(this.updateRowGroupExpansionStateTimer=setTimeout(n)))},selectionChanged:()=>{this.staleStateKeys.add("rowSelection"),this.onRowSelectedDebounced()},paginationChanged:a=>{(a.newPage||a.newPageSize)&&t("pagination",this.getPaginationState())},pinnedRowsChanged:()=>t("rowPinning",this.getRowPinningState())}),r&&this.addManagedListeners(r,{filterStateChanged:i}),s&&this.addManagedListeners(s,{selectedFilterChanged:i})}setFirstDataRenderedState(e,t,n){const{scroll:i,cellSelection:o,focusedCell:r,columnOrder:s}=e,a=(h,f)=>!n?.has(h)&&(f||t==="api");a("focusedCell",r)&&this.setFocusedCellState(r),a("cellSelection",o)&&this.setCellSelectionState(o),a("scroll",i)&&this.setScrollState(i),this.setColumnPivotState(!!s?.orderedColIds,t);const l=this.updateCachedState.bind(this);l("sideBar",this.getSideBarState()),l("focusedCell",this.getFocusedCellState());const u=this.getRangeSelectionState();l("rangeSelection",u),l("cellSelection",u),l("scroll",this.getScrollState())}setupStateOnFirstDataRendered(e){this.setFirstDataRenderedState(e,"gridInitializing");const t=this.updateCachedState.bind(this),n=()=>t("focusedCell",this.getFocusedCellState());this.addManagedEventListeners({cellFocused:n,cellFocusCleared:n,cellSelectionChanged:i=>{if(i.finished){const o=this.getRangeSelectionState();t("rangeSelection",o),t("cellSelection",o)}},bodyScrollEnd:()=>t("scroll",this.getScrollState())})}getColumnState(){const e=this.beans;return x3(dh(e),e.colModel.isPivotMode())}setColumnState(e,t,n,i){const{sort:o,rowGroup:r,aggregation:s,pivot:a,columnPinning:l,columnVisibility:u,columnSizing:h,columnOrder:f}=e;let p=!1;const m=(M,I)=>{const O=!i?.has(M)&&!!(I||t==="api");return p||(p=O),O},v={},w=M=>{let I=v[M];return I||(I={colId:M},v[M]=I,I)},b={},y=m("sort",o);y&&o?.sortModel.forEach(({colId:M,sort:I,type:O},Q)=>{const te=w(M);te.sort=I,te.sortIndex=Q,te.sortType=O}),(y||!n)&&(b.sort=null,b.sortIndex=null);const R=m("rowGroup",r);R&&r?.groupColIds.forEach((M,I)=>{const O=w(M);O.rowGroup=!0,O.rowGroupIndex=I}),(R||!n)&&(b.rowGroup=null,b.rowGroupIndex=null);const S=m("aggregation",s);S&&s?.aggregationModel.forEach(({colId:M,aggFunc:I})=>{w(M).aggFunc=I}),(S||!n)&&(b.aggFunc=null);const x=m("pivot",a);x&&(a?.pivotColIds.forEach((M,I)=>{const O=w(M);O.pivot=!0,O.pivotIndex=I}),this.gos.updateGridOptions({options:{pivotMode:!!a?.pivotMode},source:t})),(x||!n)&&(b.pivot=null,b.pivotIndex=null);const P=m("columnPinning",l);if(P){for(const M of l?.leftColIds??[])w(M).pinned="left";for(const M of l?.rightColIds??[])w(M).pinned="right"}(P||!n)&&(b.pinned=null);const D=m("columnVisibility",u);if(D)for(const M of u?.hiddenColIds??[])w(M).hide=!0;(D||!n)&&(b.hide=null);const A=m("columnSizing",h);if(A)for(const{colId:M,flex:I,width:O}of h?.columnSizingModel??[]){const Q=w(M);Q.flex=I??null,Q.width=O}(A||!n)&&(b.flex=null);const N=f?.orderedColIds,B=!!N?.length&&!i?.has("columnOrder"),L=B?N.map(M=>w(M)):Object.values(v);(L.length||p)&&(this.columnStates=L,oo(this.beans,{state:L,applyOrder:B,defaultState:b},t))}setColumnPivotState(e,t){const n=this.columnStates;this.columnStates=void 0;const i=this.columnGroupStates;this.columnGroupStates=void 0;const o=this.beans,{pivotResultCols:r,colGroupSvc:s}=o;if(r?.isPivotResultColsPresent()){if(n){const a=[];for(const l of n)r.getPivotResultCol(l.colId)&&a.push(l);oo(o,{state:a,applyOrder:e},t)}i&&s?.setColumnGroupState(i,t)}}getColumnGroupState(){const e=this.beans.colGroupSvc;if(!e)return;const t=e.getColumnGroupState();return P3(t)}setColumnGroupState(e,t,n){const i=this.beans.colGroupSvc;if(!i||n?.has("columnGroup")||t!=="api"&&!Object.prototype.hasOwnProperty.call(e,"columnGroup"))return;const o=new Set(e.columnGroup?.openColumnGroupIds),s=i.getColumnGroupState().map(({groupId:a})=>{const l=o.has(a);return l&&o.delete(a),{groupId:a,open:l}});for(const a of o)s.push({groupId:a,open:!0});s.length&&(this.columnGroupStates=s),i.setColumnGroupState(s,t)}getFilterState(){const{filterManager:e,selectableFilter:t}=this.beans;let n=e?.getFilterModel();n&&Object.keys(n).length===0&&(n=void 0);const i=e?.getFilterState(),o=e?.getAdvFilterModel()??void 0,r=t?.getState();return n||o||i||r?{filterModel:n,columnFilterState:i,advancedFilterModel:o,selectableFilters:r}:void 0}setFilterState(e){const{filterManager:t,selectableFilter:n}=this.beans,{filterModel:i,columnFilterState:o,advancedFilterModel:r,selectableFilters:s}=e??{filterModel:null,columnFilterState:null,advancedFilterModel:null};s!==void 0&&n?.setState(s??{}),(i!==void 0||o!==void 0)&&t?.setFilterState(i??null,o??null,"columnFilter"),r!==void 0&&t?.setAdvFilterModel(r??null,"advancedFilter")}getRangeSelectionState(){const e=this.beans.rangeSvc?.getCellRanges().map(t=>{const{id:n,type:i,startRow:o,endRow:r,columns:s,startColumn:a}=t;return{id:n,type:i,startRow:o,endRow:r,colIds:s.map(l=>l.getColId()),startColId:a.getColId()}});return e?.length?{cellRanges:e}:void 0}setCellSelectionState(e){const{gos:t,rangeSvc:n,colModel:i,visibleCols:o}=this.beans;if(!nr(t)||!n)return;const r=[];for(const s of e?.cellRanges??[]){const a=[];for(const u of s.colIds){const h=i.getCol(u);h&&a.push(h)}if(!a.length)continue;let l=i.getCol(s.startColId);if(!l){const u=o.allCols,h=new Set(a);l=u.find(f=>h.has(f))}r.push({...s,columns:a,startColumn:l})}n.setCellRanges(r)}getScrollState(){if(!this.isClientSideRowModel)return;const e=this.beans.ctrlsSvc.getScrollFeature(),{left:t}=e?.getHScrollPosition()??{left:0},{top:n}=e?.getVScrollPosition()??{top:0};return n||t?{top:n,left:t}:void 0}setScrollState(e){if(!this.isClientSideRowModel)return;const{top:t,left:n}=e??{top:0,left:0},{frameworkOverrides:i,rowRenderer:o,animationFrameSvc:r,ctrlsSvc:s}=this.beans;i.wrapIncoming(()=>{s.get("center").setCenterViewportScrollLeft(n),s.getScrollFeature()?.setVerticalScrollPosition(t),o.redraw({afterScroll:!0}),r?.flushAllFrames()})}getSideBarState(){return this.beans.sideBar?.comp?.getState()}getFocusedCellState(){if(!this.isClientSideRowModel)return;const e=this.beans.focusSvc.getFocusedCell();if(e){const{column:t,rowIndex:n,rowPinned:i}=e;return{colId:t.getColId(),rowIndex:n,rowPinned:i}}}setFocusedCellState(e){if(!this.isClientSideRowModel)return;const{focusSvc:t,colModel:n}=this.beans;if(!e){t.clearFocusedCell();return}const{colId:i,rowIndex:o,rowPinned:r}=e;t.setFocusedCell({column:n.getCol(i),rowIndex:o,rowPinned:r,forceBrowserFocus:!0,preventScrollOnBrowserFocus:!0})}getPaginationState(){const{pagination:e,gos:t}=this.beans;if(!e)return;const n=e.getCurrentPage(),i=t.get("paginationAutoPageSize")?void 0:e.getPageSize();if(!(!n&&!i))return{page:n,pageSize:i}}setPaginationState(e,t){const{pagination:n,gos:i}=this.beans;if(!n)return;const{pageSize:o,page:r}=e??{page:0,pageSize:i.get("paginationPageSize")},s=t==="gridInitializing";o&&!i.get("paginationAutoPageSize")&&n.setPageSize(o,s?"initialState":"pageSizeSelector"),typeof r=="number"&&(s?n.setPage(r):n.goToPage(r))}getRowSelectionState(){const e=this.beans.selectionSvc;if(!e)return;const t=e.getSelectionState();return!t||!Array.isArray(t)&&(t.selectAll===!1||t.selectAllChildren===!1)&&!t?.toggledNodes?.length?void 0:t}setRowSelectionState(e,t){this.beans.selectionSvc?.setSelectionState(e,t,t==="api")}updateGroupExpansionState(){const{expansionSvc:e,gos:t}=this.beans,n=e?.getExpansionState(),i=t.get("ssrmExpandAllAffectsAllRows");this.updateCachedState("ssrmRowGroupExpansion",i?n:void 0),this.updateCachedState("rowGroupExpansion",i?void 0:n)}getRowPinningState(){return this.beans.pinnedRowModel?.getPinnedState()}setRowPinningState(e){const t=this.beans.pinnedRowModel;e?t?.setPinnedState(e):t?.reset()}setRowGroupExpansionState(e,t,n){const i=e??t??{expandedRowGroupIds:[],collapsedRowGroupIds:[]};this.beans.expansionSvc?.setExpansionState(i,n)}updateColumnState(e){const t=this.getColumnState();let n=!1;const i=this.cachedState;for(const o of Object.keys(t)){const r=t[o];rc(r,i[o])||(n=!0)}this.cachedState={...i,...t},n&&this.dispatchStateUpdateEvent(e)}updateCachedState(e,t){const n=this.cachedState[e];this.setCachedStateValue(e,t),rc(t,n)||this.dispatchStateUpdateEvent([e])}setCachedStateValue(e,t){this.cachedState={...this.cachedState,[e]:t}}refreshStaleState(){const e=this.staleStateKeys;for(const t of e)t==="rowSelection"&&this.setCachedStateValue(t,this.getRowSelectionState());e.clear()}dispatchStateUpdateEvent(e){if(!this.suppressEvents){for(const t of e)this.queuedUpdateSources.add(t);this.dispatchStateUpdateEventDebounced()}}dispatchQueuedStateUpdateEvents(){const e=this.queuedUpdateSources,t=Array.from(e);e.clear(),this.eventSvc.dispatchEvent({type:"stateUpdated",sources:t,state:this.cachedState})}startSuppressEvents(){this.suppressEvents=!0,this.beans.colAnimation?.setSuppressAnimation(!0)}stopSuppressEvents(e){setTimeout(()=>{this.suppressEvents=!1,this.queuedUpdateSources.clear(),this.isAlive()&&(this.beans.colAnimation?.setSuppressAnimation(!1),this.dispatchStateUpdateEvent([e]))})}suppressEventsAndDispatchInitEvent(e){this.startSuppressEvents(),e(),this.stopSuppressEvents("gridInitializing")}},W8={moduleName:"GridState",version:me,beans:[V8],apiFunctions:{getState:N8,setState:B8}};function z8(e){return e.rowModel.isLastRowIndexKnown()}function U8(e){return e.pagination?.getPageSize()??100}function $8(e){return e.pagination?.getCurrentPage()??0}function j8(e){return e.pagination?.getTotalPages()??1}function K8(e){return e.pagination?e.pagination.getMasterRowCount():e.rowModel.getRowCount()}function q8(e){e.pagination?.goToNextPage()}function Q8(e){e.pagination?.goToPreviousPage()}function Y8(e){e.pagination?.goToFirstPage()}function Z8(e){e.pagination?.goToLastPage()}function X8(e,t){e.pagination?.goToPage(t)}var J8=class extends X{constructor(){super(...arguments),this.beanName="paginationAutoPageSizeSvc"}postConstruct(){this.beans.ctrlsSvc.whenReady(this,e=>{this.centerRowsCtrl=e.center;const t=this.checkPageSize.bind(this);this.addManagedEventListeners({bodyHeightChanged:t,scrollVisibilityChanged:t}),this.addManagedPropertyListener("paginationAutoPageSize",this.onPaginationAutoSizeChanged.bind(this)),this.checkPageSize()})}notActive(){return!this.gos.get("paginationAutoPageSize")||this.centerRowsCtrl==null}onPaginationAutoSizeChanged(){this.notActive()?this.beans.pagination.unsetAutoCalculatedPageSize():this.checkPageSize()}checkPageSize(){if(this.notActive())return;const e=this.centerRowsCtrl.viewportSizeFeature.getBodyHeight();if(e>0){const t=this.beans,n=()=>{const i=Math.max(Ms(t),1),o=Math.floor(e/i);t.pagination.setPageSize(o,"autoCalculated")};this.isBodyRendered?un(this,n,50)():(n(),this.isBodyRendered=!0)}else this.isBodyRendered=!1}};function eU(e,t){if(typeof e!="number")return"";const n=t(),i=n("thousandSeparator",","),o=n("decimalSeparator",".");return e.toString().replace(".",o).replace(/(\d)(?=(\d{3})+(?!\d))/g,`$1${i}`)}var Hc="paginationPageSizeSelector",tU={tag:"span",cls:"ag-paging-page-size"},nU=class extends yt{constructor(){super(tU),this.hasEmptyOption=!1,this.handlePageSizeItemSelected=()=>{if(!this.selectPageSizeComp)return;const e=this.selectPageSizeComp.getValue();if(!e)return;const t=Number(e);isNaN(t)||t<1||t===this.pagination.getPageSize()||(this.pagination.setPageSize(t,"pageSizeSelector"),this.hasEmptyOption&&this.toggleSelectDisplay(!0),this.selectPageSizeComp.getFocusableElement().focus())}}wireBeans(e){this.pagination=e.pagination}postConstruct(){this.addManagedPropertyListener(Hc,()=>{this.onPageSizeSelectorValuesChange()}),this.addManagedEventListeners({paginationChanged:e=>this.handlePaginationChanged(e)})}handlePaginationChanged(e){if(!this.selectPageSizeComp||!e?.newPageSize)return;const t=this.pagination.getPageSize();this.getPageSizeSelectorValues().includes(t)?this.selectPageSizeComp.setValue(t.toString()):this.hasEmptyOption?this.selectPageSizeComp.setValue(""):this.toggleSelectDisplay(!0)}toggleSelectDisplay(e){this.selectPageSizeComp&&!e&&this.reset(),e&&(this.reloadPageSizesSelector(),this.selectPageSizeComp)}reset(){wn(this.getGui()),this.selectPageSizeComp&&(this.selectPageSizeComp=this.destroyBean(this.selectPageSizeComp))}onPageSizeSelectorValuesChange(){this.selectPageSizeComp&&this.shouldShowPageSizeSelector()&&this.reloadPageSizesSelector()}shouldShowPageSizeSelector(){return this.gos.get("pagination")&&!this.gos.get("suppressPaginationPanel")&&!this.gos.get("paginationAutoPageSize")&&this.gos.get(Hc)!==!1}reloadPageSizesSelector(){const e=this.getPageSizeSelectorValues(),t=this.pagination.getPageSize(),n=!t||!e.includes(t);if(n){const o=this.gos.exists("paginationPageSize"),r=this.gos.get(Hc)!==!0;se(94,{pageSizeSet:o,pageSizesSet:r,pageSizeOptions:e,paginationPageSizeOption:t}),r||se(95,{paginationPageSizeOption:t,paginationPageSizeSelector:Hc}),e.unshift("")}const i=String(n?"":t);this.selectPageSizeComp?(kr(this.pageSizeOptions,e)||(this.selectPageSizeComp.clearOptions().addOptions(this.createPageSizeSelectOptions(e)),this.pageSizeOptions=e),this.selectPageSizeComp.setValue(i,!0)):this.createPageSizeSelectorComp(e,i),this.hasEmptyOption=n}createPageSizeSelectOptions(e){return e.map(t=>({value:String(t)}))}createPageSizeSelectorComp(e,t){const n=this.getLocaleTextFunc(),i=n("pageSizeSelectorLabel","Page Size:"),o=n("ariaPageSizeSelectorLabel","Page Size");this.selectPageSizeComp=this.createManagedBean(new av).addOptions(this.createPageSizeSelectOptions(e)).setValue(t).setAriaLabel(o).setLabel(i).onValueChange(()=>this.handlePageSizeItemSelected()),this.appendChild(this.selectPageSizeComp)}getPageSizeSelectorValues(){const e=[20,50,100],t=this.gos.get(Hc);return!Array.isArray(t)||!t?.length?e:[...t].sort((n,i)=>n-i)}destroy(){this.toggleSelectDisplay(!1),super.destroy()}},iU={selector:"AG-PAGE-SIZE-SELECTOR",component:nU},oU=".ag-paging-panel{align-items:center;border-top:var(--ag-footer-row-border);display:flex;flex-wrap:wrap-reverse;gap:calc(var(--ag-spacing)*4);justify-content:flex-end;min-height:var(--ag-pagination-panel-height);padding:calc(var(--ag-spacing)*.5) var(--ag-cell-horizontal-padding);row-gap:calc(var(--ag-spacing)*.5);@container (width < 600px){justify-content:center}}:where(.ag-paging-page-size) .ag-wrapper{min-width:50px}.ag-paging-page-summary-panel,.ag-paging-row-summary-panel{margin:calc(var(--ag-spacing)*.5)}.ag-paging-page-summary-panel{align-items:center;display:flex;gap:var(--ag-cell-widget-spacing);.ag-disabled &{pointer-events:none}}.ag-paging-button{cursor:pointer;position:relative;&.ag-disabled{cursor:default;opacity:.5}}.ag-paging-number,.ag-paging-row-summary-panel-number{font-weight:500}.ag-paging-description{line-height:0}",rU=class extends xR{constructor(){super(),this.btFirst=de,this.btPrevious=de,this.btNext=de,this.btLast=de,this.lbRecordCount=de,this.lbFirstRowOnPage=de,this.lbLastRowOnPage=de,this.lbCurrent=de,this.lbTotal=de,this.pageSizeComp=de,this.previousAndFirstButtonsDisabled=!1,this.nextButtonDisabled=!1,this.lastButtonDisabled=!1,this.areListenersSetup=!1,this.allowFocusInnerElement=!1,this.registerCSS(oU)}wireBeans(e){this.rowModel=e.rowModel,this.pagination=e.pagination,this.ariaAnnounce=e.ariaAnnounce}postConstruct(){const e=this.gos.get("enableRtl");this.setTemplate(this.getTemplate(),[iU]);const{btFirst:t,btPrevious:n,btNext:i,btLast:o}=this;this.activateTabIndex([t,n,i,o]),t.insertAdjacentElement("afterbegin",ii(e?"last":"first",this.beans)),n.insertAdjacentElement("afterbegin",ii(e?"next":"previous",this.beans)),i.insertAdjacentElement("afterbegin",ii(e?"previous":"next",this.beans)),o.insertAdjacentElement("afterbegin",ii(e?"first":"last",this.beans)),this.addManagedPropertyListener("pagination",this.onPaginationChanged.bind(this)),this.addManagedPropertyListener("suppressPaginationPanel",this.onPaginationChanged.bind(this)),this.addManagedPropertyListeners(["paginationPageSizeSelector","paginationAutoPageSize","suppressPaginationPanel"],()=>this.onPageSizeRelatedOptionsChange()),this.pageSizeComp.toggleSelectDisplay(this.pageSizeComp.shouldShowPageSizeSelector()),this.initialiseTabGuard({onTabKeyDown:()=>{},focusInnerElement:r=>this.allowFocusInnerElement?this.tabGuardFeature.getTabGuardCtrl().focusInnerElement(r):g2(this.beans,r),forceFocusOutWhenTabGuardsAreEmpty:!0}),this.onPaginationChanged()}setAllowFocus(e){this.allowFocusInnerElement=e}getFocusableContainerName(){return"pagination"}onPaginationChanged(){const t=this.gos.get("pagination")&&!this.gos.get("suppressPaginationPanel");this.setDisplayed(t),t&&(this.setupListeners(),this.enableOrDisableButtons(),this.updateLabels(),this.onPageSizeRelatedOptionsChange())}onPageSizeRelatedOptionsChange(){this.pageSizeComp.toggleSelectDisplay(this.pageSizeComp.shouldShowPageSizeSelector())}setupListeners(){if(!this.areListenersSetup){this.addManagedEventListeners({paginationChanged:this.onPaginationChanged.bind(this)});for(const e of[{el:this.btFirst,fn:this.onBtFirst.bind(this)},{el:this.btPrevious,fn:this.onBtPrevious.bind(this)},{el:this.btNext,fn:this.onBtNext.bind(this)},{el:this.btLast,fn:this.onBtLast.bind(this)}]){const{el:t,fn:n}=e;this.addManagedListeners(t,{click:n,keydown:i=>{(i.key===K.ENTER||i.key===K.SPACE)&&(i.preventDefault(),n())}})}p2(this.beans,this,this.getGui()),this.areListenersSetup=!0}}onBtFirst(){this.previousAndFirstButtonsDisabled||this.pagination.goToFirstPage()}formatNumber(e){const t=this.gos.getCallback("paginationNumberFormatter");return t?t({value:e}):eU(e,this.getLocaleTextFunc.bind(this))}getTemplate(){const e=this.getLocaleTextFunc(),t=`ag-${this.getCompId()}`;return{tag:"div",cls:"ag-paging-panel ag-unselectable",attrs:{id:`${t}`},children:[{tag:"ag-page-size-selector",ref:"pageSizeComp"},{tag:"span",cls:"ag-paging-row-summary-panel",children:[{tag:"span",ref:"lbFirstRowOnPage",cls:"ag-paging-row-summary-panel-number",attrs:{id:`${t}-first-row`}},{tag:"span",attrs:{id:`${t}-to`},children:e("to","to")},{tag:"span",ref:"lbLastRowOnPage",cls:"ag-paging-row-summary-panel-number",attrs:{id:`${t}-last-row`}},{tag:"span",attrs:{id:`${t}-of`},children:e("of","of")},{tag:"span",ref:"lbRecordCount",cls:"ag-paging-row-summary-panel-number",attrs:{id:`${t}-row-count`}}]},{tag:"span",cls:"ag-paging-page-summary-panel",role:"presentation",children:[{tag:"div",ref:"btFirst",cls:"ag-button ag-paging-button",role:"button",attrs:{"aria-label":e("firstPage","First Page")}},{tag:"div",ref:"btPrevious",cls:"ag-button ag-paging-button",role:"button",attrs:{"aria-label":e("previousPage","Previous Page")}},{tag:"span",cls:"ag-paging-description",children:[{tag:"span",attrs:{id:`${t}-start-page`},children:e("page","Page")},{tag:"span",ref:"lbCurrent",cls:"ag-paging-number",attrs:{id:`${t}-start-page-number`}},{tag:"span",attrs:{id:`${t}-of-page`},children:e("of","of")},{tag:"span",ref:"lbTotal",cls:"ag-paging-number",attrs:{id:`${t}-of-page-number`}}]},{tag:"div",ref:"btNext",cls:"ag-button ag-paging-button",role:"button",attrs:{"aria-label":e("nextPage","Next Page")}},{tag:"div",ref:"btLast",cls:"ag-button ag-paging-button",role:"button",attrs:{"aria-label":e("lastPage","Last Page")}}]}]}}onBtNext(){this.nextButtonDisabled||this.pagination.goToNextPage()}onBtPrevious(){this.previousAndFirstButtonsDisabled||this.pagination.goToPreviousPage()}onBtLast(){this.lastButtonDisabled||this.pagination.goToLastPage()}enableOrDisableButtons(){const e=this.pagination.getCurrentPage(),t=this.rowModel.isLastRowIndexKnown(),n=this.pagination.getTotalPages();this.previousAndFirstButtonsDisabled=e===0,this.toggleButtonDisabled(this.btFirst,this.previousAndFirstButtonsDisabled),this.toggleButtonDisabled(this.btPrevious,this.previousAndFirstButtonsDisabled);const i=this.isZeroPagesToDisplay(),o=e===n-1;this.nextButtonDisabled=o||i,this.lastButtonDisabled=!t||i||e===n-1,this.toggleButtonDisabled(this.btNext,this.nextButtonDisabled),this.toggleButtonDisabled(this.btLast,this.lastButtonDisabled)}toggleButtonDisabled(e,t){lL(e,t),e.classList.toggle("ag-disabled",t)}isZeroPagesToDisplay(){const e=this.rowModel.isLastRowIndexKnown(),t=this.pagination.getTotalPages();return e&&t===0}updateLabels(){const e=this.rowModel.isLastRowIndexKnown(),t=this.pagination.getTotalPages(),n=this.pagination.getMasterRowCount(),i=e?n:null,o=this.pagination.getCurrentPage(),r=this.pagination.getPageSize();let s,a;this.isZeroPagesToDisplay()?s=a=0:(s=r*o+1,a=s+r-1,e&&a>i&&(a=i));const l=s+r-1,u=!e&&n<l,h=this.formatNumber(s);this.lbFirstRowOnPage.textContent=h;let f;const p=this.getLocaleTextFunc();u?f=p("pageLastRowUnknown","?"):f=this.formatNumber(a),this.lbLastRowOnPage.textContent=f;const v=t>0?o+1:0,w=this.formatNumber(v);this.lbCurrent.textContent=w;let b,y;if(e)b=this.formatNumber(t),y=this.formatNumber(i);else{const R=p("more","more");b=R,y=R}this.lbTotal.textContent=b,this.lbRecordCount.textContent=y,this.announceAriaStatus(h,f,y,w,b)}announceAriaStatus(e,t,n,i,o){const r=this.getLocaleTextFunc(),s=r("page","Page"),a=r("to","to"),l=r("of","of"),u=`${e} ${a} ${t} ${l} ${n}`,h=`${s} ${i} ${l} ${o}`;u!==this.ariaRowStatus&&(this.ariaRowStatus=u,this.ariaAnnounce?.announceValue(u,"paginationRow")),h!==this.ariaPageStatus&&(this.ariaPageStatus=h,this.ariaAnnounce?.announceValue(h,"paginationPage"))}},sU={selector:"AG-PAGINATION",component:rU},aU=100,lU=class extends X{constructor(){super(...arguments),this.beanName="pagination",this.currentPage=0,this.topDisplayedRowIndex=0,this.bottomDisplayedRowIndex=0,this.masterRowCount=0}postConstruct(){const e=this.gos;this.active=e.get("pagination"),this.pageSizeFromGridOptions=e.get("paginationPageSize"),this.paginateChildRows=this.isPaginateChildRows(),this.addManagedPropertyListener("pagination",this.onPaginationGridOptionChanged.bind(this)),this.addManagedPropertyListener("paginationPageSize",this.onPageSizeGridOptionChanged.bind(this))}getPaginationSelector(){return sU}isPaginateChildRows(){const e=this.gos;return e.get("groupHideParentOfSingleChild")||e.get("groupRemoveSingleChildren")||e.get("groupRemoveLowestSingleChildren")?!0:e.get("paginateChildRows")}onPaginationGridOptionChanged(){this.active=this.gos.get("pagination"),this.calculatePages(),this.dispatchPaginationChangedEvent({keepRenderedRows:!0})}onPageSizeGridOptionChanged(){this.setPageSize(this.gos.get("paginationPageSize"),"gridOptions")}goToPage(e){const t=this.currentPage;if(!this.active||t===e||typeof t!="number")return;const{editSvc:n}=this.beans;n?.isEditing()&&(n.isBatchEditing()?n.cleanupEditors():n.stopEditing(void 0,{source:"api"})),this.currentPage=e,this.calculatePages(),this.dispatchPaginationChangedEvent({newPage:!0})}goToPageWithIndex(e){if(!this.active)return;let t=e;this.paginateChildRows||(t=this.beans.rowModel.getTopLevelIndexFromDisplayedIndex?.(e)??e),this.goToPage(Math.floor(t/this.pageSize))}isRowInPage(e){return this.active?e>=this.topDisplayedRowIndex&&e<=this.bottomDisplayedRowIndex:!0}getCurrentPage(){return this.currentPage}goToNextPage(){this.goToPage(this.currentPage+1)}goToPreviousPage(){this.goToPage(this.currentPage-1)}goToFirstPage(){this.goToPage(0)}goToLastPage(){const e=this.beans.rowModel.getRowCount(),t=Math.floor(e/this.pageSize);this.goToPage(t)}getPageSize(){return this.pageSize}getTotalPages(){return this.totalPages}setPage(e){this.currentPage=e}get pageSize(){return Ce(this.pageSizeAutoCalculated)&&this.gos.get("paginationAutoPageSize")?this.pageSizeAutoCalculated:Ce(this.pageSizeFromPageSizeSelector)?this.pageSizeFromPageSizeSelector:Ce(this.pageSizeFromInitialState)?this.pageSizeFromInitialState:Ce(this.pageSizeFromGridOptions)?this.pageSizeFromGridOptions:aU}calculatePages(){this.active?this.paginateChildRows?this.calculatePagesAllRows():this.calculatePagesMasterRowsOnly():this.calculatedPagesNotActive(),this.beans.pageBounds.calculateBounds(this.topDisplayedRowIndex,this.bottomDisplayedRowIndex)}unsetAutoCalculatedPageSize(){if(this.pageSizeAutoCalculated===void 0)return;const e=this.pageSizeAutoCalculated;this.pageSizeAutoCalculated=void 0,this.pageSize!==e&&(this.calculatePages(),this.dispatchPaginationChangedEvent({newPageSize:!0}))}setPageSize(e,t){const n=this.pageSize;switch(t){case"autoCalculated":this.pageSizeAutoCalculated=e;break;case"pageSizeSelector":this.pageSizeFromPageSizeSelector=e,this.currentPage!==0&&this.goToFirstPage();break;case"initialState":this.pageSizeFromInitialState=e;break;case"gridOptions":this.pageSizeFromGridOptions=e,this.pageSizeFromInitialState=void 0,this.pageSizeFromPageSizeSelector=void 0,this.currentPage!==0&&this.goToFirstPage();break}n!==this.pageSize&&(this.calculatePages(),this.dispatchPaginationChangedEvent({newPageSize:!0,keepRenderedRows:!0}))}setZeroRows(){this.masterRowCount=0,this.topDisplayedRowIndex=0,this.bottomDisplayedRowIndex=-1,this.currentPage=0,this.totalPages=0}adjustCurrentPageIfInvalid(){const e=this.totalPages;this.currentPage>=e&&(this.currentPage=e-1);const t=this.currentPage;(!isFinite(t)||isNaN(t)||t<0)&&(this.currentPage=0)}calculatePagesMasterRowsOnly(){const e=this.beans.rowModel,t=e.getTopLevelRowCount();if(this.masterRowCount=t,t<=0){this.setZeroRows();return}const n=this.pageSize,i=t-1;this.totalPages=Math.floor(i/n)+1,this.adjustCurrentPageIfInvalid();const o=this.currentPage,r=n*o;let s=n*(o+1)-1;if(s>i&&(s=i),this.topDisplayedRowIndex=e.getTopLevelRowDisplayedIndex(r),s===i)this.bottomDisplayedRowIndex=e.getRowCount()-1;else{const a=e.getTopLevelRowDisplayedIndex(s+1);this.bottomDisplayedRowIndex=a-1}}getMasterRowCount(){return this.masterRowCount}calculatePagesAllRows(){const e=this.beans.rowModel.getRowCount();if(this.masterRowCount=e,e===0){this.setZeroRows();return}const{pageSize:t,currentPage:n}=this,i=e-1;this.totalPages=Math.floor(i/t)+1,this.adjustCurrentPageIfInvalid(),this.topDisplayedRowIndex=t*n,this.bottomDisplayedRowIndex=t*(n+1)-1,this.bottomDisplayedRowIndex>i&&(this.bottomDisplayedRowIndex=i)}calculatedPagesNotActive(){this.setPageSize(void 0,"autoCalculated"),this.totalPages=1,this.currentPage=0,this.topDisplayedRowIndex=0,this.bottomDisplayedRowIndex=this.beans.rowModel.getRowCount()-1}dispatchPaginationChangedEvent(e){const{keepRenderedRows:t=!1,newPage:n=!1,newPageSize:i=!1}=e;this.eventSvc.dispatchEvent({type:"paginationChanged",animate:!1,newData:!1,newPage:n,newPageSize:i,keepRenderedRows:t})}},cU={moduleName:"Pagination",version:me,beans:[lU,J8],icons:{first:"first",previous:"previous",next:"next",last:"last"},apiFunctions:{paginationIsLastPageFound:z8,paginationGetPageSize:U8,paginationGetCurrentPage:$8,paginationGetTotalPages:j8,paginationGetRowCount:K8,paginationGoToNextPage:q8,paginationGoToPreviousPage:Q8,paginationGoToFirstPage:Y8,paginationGoToLastPage:Z8,paginationGoToPage:X8},dependsOn:[xh]},uU=".ag-row-pinned-source{background-color:var(--ag-pinned-source-row-background-color);color:var(--ag-pinned-source-row-text-color);font-weight:var(--ag-pinned-source-row-font-weight)}.ag-row-pinned-manual{background-color:var(--ag-pinned-row-background-color);color:var(--ag-pinned-row-text-color);font-weight:var(--ag-pinned-row-font-weight)}";function dU(e){return e.pinnedRowModel?.getPinnedTopRowCount()??0}function hU(e){return e.pinnedRowModel?.getPinnedBottomRowCount()??0}function fU(e,t){return e.pinnedRowModel?.getPinnedTopRow(t)}function pU(e,t){return e.pinnedRowModel?.getPinnedBottomRow(t)}function gU(e,t,n){return e.pinnedRowModel?.forEachPinnedRow(t,n)}var mU={moduleName:"PinnedRow",version:me,beans:[JO],css:[uU],apiFunctions:{getPinnedTopRowCount:dU,getPinnedBottomRowCount:hU,getPinnedTopRow:fU,getPinnedBottomRow:pU,forEachPinnedRow:gU},icons:{rowPin:"pin",rowPinTop:"pinned-top",rowPinBottom:"pinned-bottom",rowUnpin:"un-pin"}},vU="↑",CU="↓",wU={tag:"span",children:[{tag:"span",ref:"eDelta",cls:"ag-value-change-delta"},{tag:"span",ref:"eValue",cls:"ag-value-change-value"}]},bU=class extends yt{constructor(){super(wU),this.eValue=de,this.eDelta=de,this.refreshCount=0}init(e){this.refresh(e,!0)}showDelta(e,t){const n=Math.abs(t),i=e.formatValue(n),o=Ce(i)?i:n,r=t>=0,s=this.eDelta;r?s.textContent=vU+o:s.textContent=CU+o,s.classList.toggle("ag-value-change-delta-up",r),s.classList.toggle("ag-value-change-delta-down",!r)}setTimerToRemoveDelta(){this.refreshCount++;const e=this.refreshCount;this.beans.frameworkOverrides.wrapIncoming(()=>{window.setTimeout(()=>{e===this.refreshCount&&this.hideDeltaValue()},2e3)})}hideDeltaValue(){this.eValue.classList.remove("ag-value-change-value-highlight"),wn(this.eDelta)}refresh(e,t=!1){const{value:n,valueFormatted:i}=e,{eValue:o,lastValue:r,beans:s}=this;if(n===r||(Ce(i)?o.textContent=i:Ce(n)?o.textContent=n:wn(o),s.filterManager?.isSuppressFlashingCellsBecauseFiltering()))return!1;const a=n&&typeof n=="object"&&"toNumber"in n?n.toNumber():n,l=r&&typeof r=="object"&&"toNumber"in r?r.toNumber():r;if(a===l)return!1;if(typeof a=="number"&&typeof l=="number"){const u=a-l;this.showDelta(e,u)}return r&&o.classList.add("ag-value-change-value-highlight"),t||this.setTimerToRemoveDelta(),this.lastValue=n,!0}},yU=".ag-value-slide-out{opacity:1}:where(.ag-ltr) .ag-value-slide-out{margin-right:5px;transition:opacity 3s,margin-right 3s}:where(.ag-rtl) .ag-value-slide-out{margin-left:5px;transition:opacity 3s,margin-left 3s}:where(.ag-ltr,.ag-rtl) .ag-value-slide-out{transition-timing-function:linear}.ag-value-slide-out-end{opacity:0}:where(.ag-ltr) .ag-value-slide-out-end{margin-right:10px}:where(.ag-rtl) .ag-value-slide-out-end{margin-left:10px}",SU={tag:"span",children:[{tag:"span",ref:"eCurrent",cls:"ag-value-slide-current"}]},RU=class extends yt{constructor(){super(SU),this.eCurrent=de,this.refreshCount=0,this.registerCSS(yU)}init(e){this.refresh(e,!0)}addSlideAnimation(){this.refreshCount++;const e=this.refreshCount;this.ePrevious?.remove();const{beans:t,eCurrent:n}=this,i=rn({tag:"span",cls:"ag-value-slide-previous ag-value-slide-out"});this.ePrevious=i,i.textContent=n.textContent,this.getGui().insertBefore(i,n),t.frameworkOverrides.wrapIncoming(()=>{window.setTimeout(()=>{e===this.refreshCount&&this.ePrevious.classList.add("ag-value-slide-out-end")},50),window.setTimeout(()=>{e===this.refreshCount&&(this.ePrevious?.remove(),this.ePrevious=null)},3e3)})}refresh(e,t=!1){let n=e.value;if(Nt(n)&&(n=""),n===this.lastValue||this.beans.filterManager?.isSuppressFlashingCellsBecauseFiltering())return!1;t||this.addSlideAnimation(),this.lastValue=n;const i=this.eCurrent;return Ce(e.valueFormatted)?i.textContent=e.valueFormatted:Ce(e.value)?i.textContent=n:wn(i),!0}},FU=class extends X{constructor(){super(...arguments),this.beanName="cellFlashSvc",this.nextAnimationTime=null,this.nextAnimationCycle=null,this.animations={highlight:new Map,"data-changed":new Map}}animateCell(e,t,n=this.beans.gos.get("cellFlashDuration"),i=this.beans.gos.get("cellFadeDuration")){const o=this.animations[t];o.delete(e);const r=Date.now(),s=r+n,a=r+n+i,l={phase:"flash",flashEndTime:s,fadeEndTime:a};o.set(e,l);const u=`ag-cell-${t}`,h=`${u}-animation`,{comp:f,eGui:{style:p}}=e;f.toggleCss(u,!0),f.toggleCss(h,!1),p.removeProperty("transition"),p.removeProperty("transition-delay"),this.nextAnimationTime&&s+15<this.nextAnimationTime&&(clearTimeout(this.nextAnimationCycle),this.nextAnimationCycle=null,this.nextAnimationTime=null),this.nextAnimationCycle||(this.beans.frameworkOverrides.wrapIncoming(()=>{this.nextAnimationCycle=setTimeout(this.advanceAnimations.bind(this),n)}),this.nextAnimationTime=s)}advanceAnimations(){const e=Date.now();let t=null;for(const n of Object.keys(this.animations)){const i=this.animations[n],o=`ag-cell-${n}`,r=`${o}-animation`;for(const[s,a]of i){if(!s.isAlive()||!s.comp){i.delete(s);continue}const{phase:l,flashEndTime:u,fadeEndTime:h}=a,f=l==="flash"?u:h;if(!(e+15>=f)){t=Math.min(f,t??1/0);continue}const{comp:m,eGui:{style:v}}=s;switch(l){case"flash":m.toggleCss(o,!1),m.toggleCss(r,!0),v.transition=`background-color ${h-u}ms`,v.transitionDelay=`${u-e}ms`,t=Math.min(h,t??1/0),a.phase="fade";break;case"fade":m.toggleCss(o,!1),m.toggleCss(r,!1),v.removeProperty("transition"),v.removeProperty("transition-delay"),i.delete(s);break}}}t==null?(this.nextAnimationTime=null,this.nextAnimationCycle=null):t&&(this.nextAnimationCycle=setTimeout(this.advanceAnimations.bind(this),t-e),this.nextAnimationTime=t)}onFlashCells(e,t){if(!e.comp)return;const n=c2(e.cellPosition);t.cells[n]&&this.animateCell(e,"highlight")}flashCell(e,t){this.animateCell(e,"data-changed",t?.flashDuration,t?.fadeDuration)}destroy(){for(const e of Object.keys(this.animations))this.animations[e].clear()}};function xU(e,t={}){const{cellFlashSvc:n}=e;n&&e.frameworkOverrides.wrapIncoming(()=>{for(const i of e.rowRenderer.getCellCtrls(t.rowNodes,t.columns))n.flashCell(i,t)})}var PU={moduleName:"HighlightChanges",version:me,beans:[FU],userComponents:{agAnimateShowChangeCellRenderer:bU,agAnimateSlideCellRenderer:RU},apiFunctions:{flashCells:xU}};function EU(e,t,n){if(!t)return;const i=e.ctrlsSvc.getGridBodyCtrl().eGridBody,o=`aria-${t}`;n===null?i.removeAttribute(o):i.setAttribute(o,n)}function DU(e,t={}){e.frameworkOverrides.wrapIncoming(()=>e.rowRenderer.refreshCells(t))}function TU(e){e.frameworkOverrides.wrapIncoming(()=>{for(const t of e.ctrlsSvc.getHeaderRowContainerCtrls())t.refresh()})}function AU(e){return e.animationFrameSvc?.isQueueEmpty()??!0}function IU(e){e.animationFrameSvc?.flushAllFrames()}function MU(e){return{rowHeight:Ms(e),headerHeight:Ec(e)}}function kU(e,t={}){const n=[];for(const r of e.rowRenderer.getCellCtrls(t.rowNodes,t.columns)){const s=r.getCellRenderer();s!=null&&n.push($s(s))}if(t.columns?.length)return n;const i=[],o=Ym(t.rowNodes);for(const r of e.rowRenderer.getAllRowCtrls()){if(o&&!Zm(r.rowNode,o)||!r.isFullWidth())continue;const s=r.getFullWidthCellRenderers();for(let a=0;a<s.length;a++){const l=s[a];l!=null&&i.push($s(l))}}return[...i,...n]}var LU={moduleName:"RenderApi",version:me,apiFunctions:{setGridAriaProperty:EU,refreshCells:DU,refreshHeader:TU,isAnimationFrameQueueEmpty:AU,flushAllAnimationFrames:IU,getSizesForCurrentTheme:MU,getCellRendererInstances:kU}},_U=class extends X{constructor(){super(...arguments),this.beanName="rowAutoHeight",this.wasEverActive=!1,this._debouncedCalculateRowHeights=un(this,this.calculateRowHeights.bind(this),1)}requestCheckAutoHeight(){this.wasEverActive&&this._debouncedCalculateRowHeights()}calculateRowHeights(){const{visibleCols:e,rowModel:t,rowSpanSvc:n,pinnedRowModel:i}=this.beans,o=e.autoHeightCols;let r=!1;const s=a=>{const l=a.__autoHeights;let u=Br(this.beans,a).height;for(const h of o){let f=l?.[h.getColId()];const p=n?.getCellSpan(h,a);if(p){if(p.getLastNode()!==a)continue;if(f=n?.getCellSpan(h,a)?.getLastNodeAutoHeight(),!f)return}if(f==null){if(this.colSpanSkipCell(h,a))continue;return}u=Math.max(f,u)}u!==a.rowHeight&&(a.setRowHeight(u),r=!0)};i?.forEachPinnedRow?.("top",s),i?.forEachPinnedRow?.("bottom",s),t.forEachDisplayedNode?.(s),r&&t.onRowHeightChanged?.()}setRowAutoHeight(e,t,n){if(e.__autoHeights??(e.__autoHeights={}),t==null){delete e.__autoHeights[n.getId()];return}const i=e.__autoHeights[n.getId()];e.__autoHeights[n.getId()]=t,i!==t&&this.requestCheckAutoHeight()}colSpanSkipCell(e,t){const{colModel:n,colViewport:i,visibleCols:o}=this.beans;if(!n.colSpanActive)return!1;let r=[];switch(e.getPinned()){case"left":r=o.getLeftColsForRow(t);break;case"right":r=o.getRightColsForRow(t);break;case null:r=i.getColsWithinViewport(t);break}return!r.includes(e)}setupCellAutoHeight(e,t,n){if(!e.column.isAutoHeight()||!t)return!1;this.wasEverActive=!0;const i=t.parentElement,{rowNode:o,column:r}=e,s=this.beans,a=h=>{if(this.beans.editSvc?.isEditing(e)||!e.isAlive()||!n.isAlive())return;const{paddingTop:f,paddingBottom:p,borderBottomWidth:m,borderTopWidth:v}=Ts(i),w=f+p+m+v,y=t.offsetHeight+w;if(h<5){const S=!on(s)?.contains(t),x=y==0;if(S||x){window.setTimeout(()=>a(h+1),0);return}}this.setRowAutoHeight(o,y,r)},l=()=>a(0);l();const u=_r(s,t,l);return n.addDestroyFunc(()=>{u(),this.setRowAutoHeight(o,void 0,r)}),!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:n}of e)if((!t||this.beans.colModel.colSpanActive)&&(t=this.beans.colViewport.getColsWithinViewport(n).filter(o=>o.isAutoHeight())),t.length!==0){if(!n.__autoHeights)return!1;for(const i of t){const o=n.__autoHeights[i.getColId()];if(!o||n.rowHeight<o)return!1}}return!0}},OU={moduleName:"RowAutoHeight",version:me,beans:[_U]},NU=class{constructor(e,t){this.col=e,this.firstNode=t,this.cellSpan=!0,this.spannedNodes=new Set,this.addSpannedNode(t)}reset(){this.spannedNodes.clear(),this.addSpannedNode(this.firstNode)}addSpannedNode(e){this.spannedNodes.add(e),this.lastNode=e}getLastNode(){return this.lastNode}getCellHeight(){return this.lastNode.rowTop+this.lastNode.rowHeight-this.firstNode.rowTop-1}doesSpanContain(e){return e.column!==this.col||e.rowPinned!=this.firstNode.rowPinned?!1:this.firstNode.rowIndex<=e.rowIndex&&e.rowIndex<=this.lastNode.rowIndex}getLastNodeAutoHeight(){const e=this.firstNode.__autoHeights?.[this.col.getColId()];if(e==null)return;let t=0;for(const n of this.spannedNodes)n!==this.lastNode&&(t+=n.rowHeight);return e-t}},BU=class extends X{constructor(e){super(),this.column=e}buildCache(e){const{column:t,beans:{gos:n,pinnedRowModel:i,rowModel:o,valueSvc:r,pagination:s}}=this,{colDef:a}=t,l=this.getNodeMap(e),u=new Map,h=n.getCallback("isFullWidthRow"),f=a.equals,p=a.spanRows,m=typeof p=="function";let v=null,w=null,b;const y=(S,x)=>{v=S,w=null,b=x},R=S=>{const x=!S.isExpandable()&&!S.group&&!S.detail&&(h?!h({rowNode:S}):!0);if(S.rowIndex==null||!x){y(null,null);return}if(v==null||S.level!==v.level||S.footer||w&&S.rowIndex-1!==w?.getLastNode().rowIndex){y(S,r.getValue(t,S,"data"));return}const P=r.getValue(t,S,"data");if(m){const D=We(n,{valueA:b,nodeA:v,valueB:P,nodeB:S,column:t,colDef:a});if(!p(D)){y(S,P);return}}else if(f?!f(b,P):b!==P){y(S,P);return}if(!w){const D=l?.get(v);D?.firstNode===v?(D.reset(),w=D):w=new NU(t,v),u.set(v,w)}w.addSpannedNode(S),u.set(S,w)};switch(e){case"center":o.forEachDisplayedNode?.(S=>{(!s||s.isRowInPage(S.rowIndex))&&R(S)}),this.centerValueNodeMap=u;break;case"top":i?.forEachPinnedRow("top",R),this.topValueNodeMap=u;break;case"bottom":i?.forEachPinnedRow("bottom",R),this.bottomValueNodeMap=u;break}}isCellSpanning(e){return!!this.getCellSpan(e)}getCellSpan(e){return this.getNodeMap(e.rowPinned).get(e)}getNodeMap(e){switch(e){case"top":return this.topValueNodeMap;case"bottom":return this.bottomValueNodeMap;default:return this.centerValueNodeMap}}},GU=class extends X{constructor(){super(...arguments),this.beanName="rowSpanSvc",this.spanningColumns=new Map,this.debouncePinnedEvent=un(this,this.dispatchCellsUpdatedEvent.bind(this,!0),0),this.debounceModelEvent=un(this,this.dispatchCellsUpdatedEvent.bind(this,!1),0),this.pinnedTimeout=null,this.modelTimeout=null}postConstruct(){const e=this.onRowDataUpdated.bind(this),t=this.buildPinnedCaches.bind(this);this.addManagedEventListeners({paginationChanged:this.buildModelCaches.bind(this),pinnedRowDataChanged:t,pinnedRowsChanged:t,rowNodeDataChanged:e,cellValueChanged:e})}register(e){const{gos:t}=this.beans;if(!t.get("enableCellSpan")||this.spanningColumns.has(e))return;const n=this.createManagedBean(new BU(e));this.spanningColumns.set(e,n),n.buildCache("top"),n.buildCache("bottom"),n.buildCache("center"),this.debouncePinnedEvent(),this.debounceModelEvent()}dispatchCellsUpdatedEvent(e){this.dispatchLocalEvent({type:"spannedCellsUpdated",pinned:e})}deregister(e){this.spanningColumns.delete(e)}onRowDataUpdated({node:e}){const{spannedRowRenderer:t}=this.beans;if(e.rowPinned){if(this.pinnedTimeout!=null)return;this.pinnedTimeout=window.setTimeout(()=>{this.pinnedTimeout=null,this.buildPinnedCaches(),t?.createCtrls("top"),t?.createCtrls("bottom")},0);return}this.modelTimeout==null&&(this.modelTimeout=window.setTimeout(()=>{this.modelTimeout=null,this.buildModelCaches(),t?.createCtrls("center")},0))}buildModelCaches(){this.modelTimeout!=null&&clearTimeout(this.modelTimeout),this.spanningColumns.forEach(e=>e.buildCache("center")),this.debounceModelEvent()}buildPinnedCaches(){this.pinnedTimeout!=null&&clearTimeout(this.pinnedTimeout),this.spanningColumns.forEach(e=>{e.buildCache("top"),e.buildCache("bottom")}),this.debouncePinnedEvent()}isCellSpanning(e,t){const n=this.spanningColumns.get(e);return n?n.isCellSpanning(t):!1}getCellSpanByPosition(e){const{pinnedRowModel:t,rowModel:n}=this.beans,i=e.column,o=e.rowIndex,r=this.spanningColumns.get(i);if(!r)return;let s;switch(e.rowPinned){case"top":s=t?.getPinnedTopRow(o);break;case"bottom":s=t?.getPinnedBottomRow(o);break;default:s=n.getRow(o)}if(s)return r.getCellSpan(s)}getCellStart(e){const t=this.getCellSpanByPosition(e);return t?{...e,rowIndex:t.firstNode.rowIndex}:e}getCellEnd(e){const t=this.getCellSpanByPosition(e);return t?{...e,rowIndex:t.getLastNode().rowIndex}:e}getCellSpan(e,t){const n=this.spanningColumns.get(e);if(n)return n.getCellSpan(t)}forEachSpannedColumn(e,t){for(const[n,i]of this.spanningColumns)if(i.isCellSpanning(e)){const o=i.getCellSpan(e);t(n,o)}}destroy(){super.destroy(),this.spanningColumns.clear()}},HU=class extends ol{constructor(e,t,n){super(e.col,e.firstNode,n,t),this.cellSpan=e,this.SPANNED_CELL_CSS_CLASS="ag-spanned-cell"}setComp(e,t,n,i,o,r,s){this.eWrapper=n,super.setComp(e,t,n,i,o,r,s),this.setAriaRowSpan()}isCellSpanning(){return!0}getCellSpan(){return this.cellSpan}refreshAriaRowIndex(){const{eGui:e,rowNode:t}=this;!e||t.rowIndex==null||lc(e,t.rowIndex)}setAriaRowSpan(){fL(this.eGui,this.cellSpan.spannedNodes.size)}setFocusedCellPosition(e){this.focusedCellPosition=e}getFocusedCellPosition(){return this.focusedCellPosition??this.cellPosition}checkCellFocused(){const e=this.beans.focusSvc.getFocusedCell();return!!e&&this.cellSpan.doesSpanContain(e)}applyStaticCssClasses(){super.applyStaticCssClasses(),this.comp.toggleCss(this.SPANNED_CELL_CSS_CLASS,!0)}onCellFocused(e){const{beans:t}=this;if(Pc(t)){this.focusedCellPosition=void 0;return}const n=this.isCellFocused();n||(this.focusedCellPosition=void 0),e&&n&&(this.focusedCellPosition={rowIndex:e.rowIndex,rowPinned:e.rowPinned,column:e.column}),super.onCellFocused(e)}getRootElement(){return this.eWrapper}},VU=class extends wh{getInitialRowClasses(e){return["ag-spanned-row"]}getNewCellCtrl(e){const t=this.beans.rowSpanSvc?.getCellSpan(e,this.rowNode);if(!(!t||t.firstNode!==this.rowNode))return new HU(t,this,this.beans)}isCorrectCtrlForSpan(e){const t=this.beans.rowSpanSvc?.getCellSpan(e.column,this.rowNode);return!t||t.firstNode!==this.rowNode?!1:e.getCellSpan()===t}onRowHeightChanged(){}refreshFirstAndLastRowStyles(){}addHoverFunctionality(){}resetHoveredStatus(){}},WU=class extends X{constructor(){super(...arguments),this.beanName="spannedRowRenderer",this.topCtrls=new Map,this.bottomCtrls=new Map,this.centerCtrls=new Map}postConstruct(){this.addManagedEventListeners({displayedRowsChanged:this.createAllCtrls.bind(this)})}createAllCtrls(){this.createCtrls("top"),this.createCtrls("bottom"),this.createCtrls("center")}createCtrls(e){const{rowSpanSvc:t}=this.beans,n=this.getCtrlsMap(e),i=n.size,o=this.getAllRelevantRowControls(e),r=new Map;let s=!1;for(const l of o)l.isAlive()&&t?.forEachSpannedColumn(l.rowNode,(u,h)=>{if(r.has(h.firstNode))return;const f=n.get(h.firstNode);if(f){r.set(h.firstNode,f),n.delete(h.firstNode);return}s=!0;const p=new VU(h.firstNode,this.beans,!1,!1,!1);r.set(h.firstNode,p)});this.setCtrlsMap(e,r);const a=r.size===i;if(!(!s&&a)){for(const l of n.values())l.destroyFirstPass(!0),l.destroySecondPass();this.dispatchLocalEvent({type:"spannedRowsUpdated",ctrlsKey:e})}}getAllRelevantRowControls(e){const{rowRenderer:t}=this.beans;switch(e){case"top":return t.topRowCtrls;case"bottom":return t.bottomRowCtrls;case"center":return t.allRowCtrls}}getCellByPosition(e){const{rowSpanSvc:t}=this.beans,n=t?.getCellSpanByPosition(e);if(!n)return;const i=this.getCtrlsMap(e.rowPinned).get(n.firstNode);if(i)return i.getAllCellCtrls().find(o=>o.column===e.column)}getCtrls(e){return[...this.getCtrlsMap(e).values()]}destroyRowCtrls(e){for(const t of this.getCtrlsMap(e).values())t.destroyFirstPass(!0),t.destroySecondPass();this.setCtrlsMap(e,new Map)}getCtrlsMap(e){switch(e){case"top":return this.topCtrls;case"bottom":return this.bottomCtrls;default:return this.centerCtrls}}setCtrlsMap(e,t){switch(e){case"top":this.topCtrls=t;break;case"bottom":this.bottomCtrls=t;break;default:this.centerCtrls=t;break}}destroy(){super.destroy(),this.destroyRowCtrls("top"),this.destroyRowCtrls("bottom"),this.destroyRowCtrls("center")}},zU={moduleName:"CellSpan",version:me,beans:[GU,WU]},UU=class extends X{constructor(){super(...arguments),this.beanName="selectionColSvc"}postConstruct(){this.addManagedPropertyListener("rowSelection",e=>{this.onSelectionOptionsChanged(e.currentValue,e.previousValue,ja(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),z_(e))}createColumns(e,t){const n=()=>{Ud(this.beans,this.columns?.tree),this.columns=null},i=e.treeDepth,r=(this.columns?.treeDepth??-1)==i,s=this.generateSelectionCols();if(W_(s,this.columns?.list??[])&&r)return;n();const{colGroupSvc:l}=this.beans,u=l?.findDepth(e.tree)??0,h=l?.balanceTreeForAutoCols(s,u)??[];this.columns={list:s,tree:h,treeDepth:u,map:{}},t(p=>{if(!p)return null;const m=p.filter(v=>!Vr(v));return[...s,...m]})}updateColumns(e){const t=ja(e.source),{beans:n}=this;for(const i of this.columns?.list??[]){const o=this.createSelectionColDef(e.currentValue);i.setColDef(o,null,t),oo(n,{state:[$_(o,i.colId)]},t)}}getColumn(e){return this.columns?.list.find(t=>yc(t,e))??null}getColumns(){return this.columns?.list??null}isSelectionColumnEnabled(){const{gos:e,beans:t}=this,n=e.get("rowSelection");if(typeof n!="object"||!Is(e))return!1;const i=(t.autoColSvc?.getColumns()?.length??0)>0;if(n.checkboxLocation==="autoGroupColumn"&&i)return!1;const o=!!za(n),r=Od(n);return o||r}createSelectionColDef(e){const{gos:t}=this,n=e??t.get("selectionColumnDef"),i=t.get("enableRtl"),{rowSpan:o,spanRows:r,...s}=n??{};return{width:50,resizable:!1,suppressHeaderMenuButton:!0,sortable:!1,suppressMovable:!0,lockPosition:i?"right":"left",comparator(a,l,u,h){const f=u.isSelected(),p=h.isSelected();return f===p?0:f?1:-1},editable:!1,suppressFillHandle:!0,suppressAutoSize:!0,pinned:null,...s,colId:w0,chartDataType:"excluded"}}generateSelectionCols(){if(!this.isSelectionColumnEnabled())return[];const e=this.createSelectionColDef(),t=e.colId;this.gos.validateColDef(e,t,!0);const n=new Ls(e,null,t,!1);return this.createBean(n),[n]}onSelectionOptionsChanged(e,t,n){const i=t&&typeof t!="string"?za(t):void 0,o=e&&typeof e!="string"?za(e):void 0,r=i!==o,s=t&&typeof t!="string"?Od(t):void 0,a=e&&typeof e!="string"?Od(e):void 0,l=s!==a,u=Nd(e),h=Nd(t);(r||l||u!==h)&&this.beans.colModel.refreshAll(n)}destroy(){Ud(this.beans,this.columns?.tree),super.destroy()}refreshVisibility(e,t,n){if(!this.columns?.list.length)return;const i=e.length+t.length+n.length;if(i===0)return;const o=this.columns.list[0];if(!o.isVisible())return;const r=()=>{let l;switch(o.pinned){case"left":case!0:l=e;break;case"right":l=n;break;default:l=t}l&&So(l,o)};(this.beans.rowNumbersSvc?.getColumn(b0)?2:1)===i&&r()}},$U=':where(.ag-selection-checkbox) .ag-checkbox-input-wrapper:before{content:"";cursor:pointer;inset:-8px;position:absolute}';function jU(e,t){if(!t.nodes.every(s=>s.rowPinned&&!Ch(s)?(se(59),!1):s.id===void 0?(se(60),!1):!0))return;const{nodes:i,source:o,newValue:r}=t;e.selectionSvc?.setNodesSelected({nodes:i,source:o??"api",newValue:r})}function KU(e,t,n="apiSelectAll"){e.selectionSvc?.selectAllRowNodes({source:n,selectAll:t})}function qU(e,t,n="apiSelectAll"){e.selectionSvc?.deselectAllRowNodes({source:n,selectAll:t})}function QU(e,t="apiSelectAllFiltered"){e.selectionSvc?.selectAllRowNodes({source:t,selectAll:"filtered"})}function YU(e,t="apiSelectAllFiltered"){e.selectionSvc?.deselectAllRowNodes({source:t,selectAll:"filtered"})}function ZU(e,t="apiSelectAllCurrentPage"){e.selectionSvc?.selectAllRowNodes({source:t,selectAll:"currentPage"})}function XU(e,t="apiSelectAllCurrentPage"){e.selectionSvc?.deselectAllRowNodes({source:t,selectAll:"currentPage"})}function JU(e){return e.selectionSvc?.getSelectedNodes()??[]}function e9(e){return e.selectionSvc?.getSelectedRows()??[]}var t9={tag:"div",cls:"ag-selection-checkbox",role:"presentation",children:[{tag:"ag-checkbox",ref:"eCheckbox",role:"presentation"}]},n9=class extends yt{constructor(){super(t9,[Dm]),this.eCheckbox=de}postConstruct(){this.eCheckbox.setPassive(!0)}onDataChanged(){this.onSelectionChanged()}onSelectableChanged(){this.showOrHideSelect()}onSelectionChanged(){const e=this.getLocaleTextFunc(),{rowNode:t,eCheckbox:n}=this,i=t.isSelected(),o=Fd(e,i),[r,s]=t.selectable?["ariaRowToggleSelection","Press Space to toggle row selection"]:["ariaRowSelectionDisabled","Row Selection is disabled for this row"],a=e(r,s);n.setValue(i,!0),n.setInputAriaLabel(`${a} (${o})`)}init(e){if(this.rowNode=e.rowNode,this.column=e.column,this.overrides=e.overrides,this.onSelectionChanged(),this.addManagedListeners(this.eCheckbox.getWrapperElement(),{dblclick:Gs,click:i=>{Gs(i),!this.eCheckbox.isDisabled()&&this.beans.selectionSvc?.handleSelectionEvent(i,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:i,previousValue:o})=>{const r=typeof i=="object"?Tg(i):void 0,s=typeof o=="object"?Tg(o):void 0;r!==s&&this.onSelectableChanged()}),Ag(this.gos)||typeof this.getIsVisible()=="function"){const i=this.showOrHideSelect.bind(this);this.addManagedEventListeners({displayedColumnsChanged:i}),this.addManagedListeners(this.rowNode,{dataChanged:i,cellChanged:i}),this.showOrHideSelect()}this.eCheckbox.getInputElement().setAttribute("tabindex","-1")}showOrHideSelect(){const{column:e,rowNode:t,overrides:n,gos:i}=this,o=t.selectable,r=this.getIsVisible();let s;if(typeof r=="function"){const f=n?.callbackParams;if(!e)s=r({...f,node:t,data:t.data});else{const p=e.createColumnFunctionCallbackParams(t);s=r({...f,...p})}}else s=r??!1;const a=o&&!s||!o&&s,l=o||s,u=i.get("rowSelection"),h=u&&typeof u!="string"?!Tg(u):!!e?.getColDef().showDisabledCheckboxes;this.setVisible(l&&(a?h:!0)),this.setDisplayed(l&&(a?h:!0)),l&&this.eCheckbox.setDisabled(a),n?.removeHidden&&this.setDisplayed(l)}getIsVisible(){const e=this.overrides;if(e)return e.isVisible;const t=this.gos.get("rowSelection");return t&&typeof t!="string"?za(t):this.column?.getColDef()?.checkboxSelection}},i9=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:n,pinnedRowModel:i}=this;return t??(t=n.getRowNode(e)),i?.isManual()&&(t??(t=i.getPinnedRowById(e,"top")),t??(t=i.getPinnedRowById(e,"bottom"))),t}truncate(e){const t=this.getRange();if(t.length===0)return{keep:[],discard:[]};const n=t[0].id===this.rootId,i=t.findIndex(o=>o.id===e.id);if(i>-1){const o=t.slice(0,i),r=t.slice(i+1);return this.setEndRange(e),n?{keep:o,discard:r}:{keep:r,discard:o}}else return{keep:t,discard:[]}}extend(e,t=!1){const n=this.getRoot();if(n==null){const o=this.getRange().slice();return t&&e.depthFirstSearch(r=>!r.group&&o.push(r)),o.push(e),this.setRoot(e),{keep:o,discard:[]}}const i=this.getNodesInRange(n,e);if(!i)return this.setRoot(e),{keep:[e],discard:[]};if(i.find(o=>o.id===this.endId))return this.setEndRange(e),{keep:this.getRange(),discard:[]};{const o=this.getRange().slice();return this.setEndRange(e),{keep:this.getRange(),discard:o}}}getNodesInRange(e,t){const{pinnedRowModel:n,rowModel:i}=this;if(!n?.isManual())return i.getNodesInRangeForSelection(e,t);if(e.rowPinned==="top"&&!t.rowPinned)return Bi(n,"top",e,void 0).concat(i.getNodesInRangeForSelection(i.getRow(0),t)??[]);if(e.rowPinned==="bottom"&&!t.rowPinned){const o=Bi(n,"bottom",void 0,e),r=i.getRowCount(),s=i.getRow(r-1);return(i.getNodesInRangeForSelection(t,s)??[]).concat(o)}if(!e.rowPinned&&!t.rowPinned)return i.getNodesInRangeForSelection(e,t);if(e.rowPinned==="top"&&t.rowPinned==="top")return Bi(n,"top",e,t);if(e.rowPinned==="bottom"&&t.rowPinned==="top"){const o=Bi(n,"top",t,void 0),r=Bi(n,"bottom",void 0,e),s=i.getRow(0),a=i.getRow(i.getRowCount()-1);return o.concat(i.getNodesInRangeForSelection(s,a)??[]).concat(r)}if(!e.rowPinned&&t.rowPinned==="top")return Bi(n,"top",t,void 0).concat(i.getNodesInRangeForSelection(i.getRow(0),e)??[]);if(e.rowPinned==="top"&&t.rowPinned==="bottom"){const o=Bi(n,"top",e,void 0),r=Bi(n,"bottom",void 0,t),s=i.getRow(0),a=i.getRow(i.getRowCount()-1);return o.concat(i.getNodesInRangeForSelection(s,a)??[]).concat(r)}if(e.rowPinned==="bottom"&&t.rowPinned==="bottom")return Bi(n,"bottom",e,t);if(!e.rowPinned&&t.rowPinned==="bottom"){const o=Bi(n,"bottom",void 0,t),r=i.getRow(i.getRowCount());return(i.getNodesInRangeForSelection(e,r)??[]).concat(o)}return null}},o9=class extends X{constructor(e){super(),this.column=e,this.cbSelectAllVisible=!1,this.processingEventFromCheckbox=!1}onSpaceKeyDown(e){const t=this.cbSelectAll;t.isDisplayed()&&!t.getGui().contains(At(this.beans))&&(e.preventDefault(),t.setValue(!t.getValue()))}getCheckboxGui(){return this.cbSelectAll.getGui()}setComp(e){this.headerCellCtrl=e;const t=this.createManagedBean(new Em);this.cbSelectAll=t,t.addCss("ag-header-select-all"),Lr(t.getGui(),"presentation"),this.showOrHideSelectAll();const n=this.updateStateOfCheckbox.bind(this);this.addManagedEventListeners({newColumnsLoaded:()=>this.showOrHideSelectAll(),displayedColumnsChanged:this.onDisplayedColumnsChanged.bind(this),selectionChanged:n,paginationChanged:n,modelUpdated:n}),this.addManagedPropertyListener("rowSelection",({currentValue:i,previousValue:o})=>{const r=s=>typeof s=="string"||!s||s.mode==="singleRow"?void 0:s.selectAll;r(i)!==r(o)&&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,n=this.cbSelectAll,i=t.getSelectAllState(e);n.setValue(i);const o=t.hasNodesToSelect(e);n.setDisabled(!o),this.refreshSelectAllLabel(),this.processingEventFromCheckbox=!1}refreshSelectAllLabel(e=!1){const t=this.getLocaleTextFunc(),{headerCellCtrl:n,cbSelectAll:i,cbSelectAllVisible:o}=this,r=i.getValue(),s=Fd(t,r),a=t("ariaRowSelectAll","Press Space to toggle all rows selection");n.setAriaDescriptionProperty("selectAll",o?`${a} (${s})`:null),i.setInputAriaLabel(t("ariaHeaderSelection","Column with Header Selection")),e||n.announceAriaDescription()}checkSelectionType(e){return wc(this.gos)?!0:(se(128,{feature:e}),!1)}checkRightRowModelType(e){const{gos:t,rowModel:n}=this.beans;return Yt(t)||Cc(t)?!0:(se(129,{feature:e,rowModel:n.getType()}),!1)}onCbSelectAll(){if(this.processingEventFromCheckbox||!this.cbSelectAllVisible)return;const e=this.cbSelectAll.getValue(),t=this.getSelectAllMode();let n="uiSelectAll";t==="currentPage"?n="uiSelectAllCurrentPage":t==="filtered"&&(n="uiSelectAllFiltered");const i={source:n,selectAll:t},o=this.beans.selectionSvc;e?o.selectAllRowNodes(i):o.deselectAllRowNodes(i)}isCheckboxSelection(){const{column:e,gos:t,beans:n}=this,r=typeof t.get("rowSelection")=="object"?"headerCheckbox":"headerCheckboxSelection";return a1(n,e)&&this.checkRightRowModelType(r)&&this.checkSelectionType(r)}getSelectAllMode(){const e=f0(this.gos,!1);if(e)return e;const{headerCheckboxSelectionCurrentPageOnly:t,headerCheckboxSelectionFilteredOnly:n}=this.column.getColDef();return t?"currentPage":n?"filtered":"all"}destroy(){super.destroy(),this.cbSelectAll=void 0,this.headerCellCtrl=void 0}};function a1({gos:e,selectionColSvc:t},n){const i=e.get("rowSelection"),o=n.getColDef(),{headerCheckboxSelection:r}=o;let s=!1;if(typeof i=="object"){const l=Vr(n),u=kg(n);(Nd(i)==="autoGroupColumn"&&u||l&&t?.isSelectionColumnEnabled())&&(s=Od(i))}else typeof r=="function"?s=r(We(e,{column:n,colDef:o})):s=!!r;return s}var r9=class extends X{postConstruct(){const{gos:e,beans:t}=this;this.selectionCtx=new i9(t.rowModel,t.pinnedRowModel),this.addManagedPropertyListeners(["isRowSelectable","rowSelection"],()=>{const n=Ag(e);n!==this.isRowSelectable&&(this.isRowSelectable=n,this.updateSelectable())}),this.isRowSelectable=Ag(e),this.addManagedEventListeners({cellValueChanged:n=>this.updateRowSelectable(n.node),rowNodeDataChanged:n=>this.updateRowSelectable(n.node)})}destroy(){super.destroy(),this.selectionCtx.reset()}createCheckboxSelectionComponent(){return new n9}createSelectAllFeature(e){if(a1(this.beans,e))return new o9(e)}isMultiSelect(){return wc(this.gos)}onRowCtrlSelected(e,t,n){const i=!!e.rowNode.isSelected();e.forEachGui(n,o=>{o.rowComp.toggleCss("ag-row-selected",i);const r=o.element;IS(r,i),r.contains(At(this.beans))&&t(o)})}announceAriaRowSelection(e){if(this.isRowSelectionBlocked(e))return;const t=e.isSelected(),n=this.beans.editSvc?.isEditing({rowNode:e});if(!e.selectable||n)return;const o=this.getLocaleTextFunc()(t?"ariaRowDeselect":"ariaRowSelect",`Press SPACE to ${t?"deselect":"select"} this row`);this.beans.ariaAnnounce?.announceValue(o,"rowSelection")}isRowSelectionBlocked(e){return!e.selectable||e.rowPinned&&!Ch(e)||!Is(this.gos)}updateRowSelectable(e,t){const n=e.rowPinned&&e.pinnedSibling?e.pinnedSibling.selectable:this.isRowSelectable?.(e)??!0;return this.setRowSelectable(e,n,t),n}setRowSelectable(e,t,n){if(e.selectable!==t){if(e.selectable=t,e.dispatchRowEvent("selectableChanged"),n)return;if(bc(this.gos)){const o=this.calculateSelectedFromChildren(e);this.setNodesSelected({nodes:[e],newValue:o??!1,source:"selectableChanged"});return}e.isSelected()&&!e.selectable&&this.setNodesSelected({nodes:[e],newValue:!1,source:"selectableChanged"})}}calculateSelectedFromChildren(e){let t=!1,n=!1;if(!e.childrenAfterGroup?.length)return e.selectable?e.__selected:null;for(let i=0;i<e.childrenAfterGroup.length;i++){const o=e.childrenAfterGroup[i];let r=o.isSelected();if(!o.selectable){const s=this.calculateSelectedFromChildren(o);if(s===null)continue;r=s}switch(r){case!0:t=!0;break;case!1:n=!0;break;default:return}}if(!(t&&n))return t?!0:n?!1:e.selectable?e.__selected:null}selectRowNode(e,t,n,i="api"){if(t&&e.destroyed)return!1;const o=!e.selectable&&t,r=e.__selected===t;if(o||r)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({...UO(e,this.gos,"rowSelected"),event:n||null,source:i}),!0}isCellCheckboxSelection(e,t){const n=this.gos.get("rowSelection");if(n&&typeof n!="string"){const i=Vr(e)&&za(n);return e.isColumnFunc(t,i)}else return e.isColumnFunc(t,e.colDef.checkboxSelection)}inferNodeSelections(e,t,n,i){const{gos:o,selectionCtx:r}=this,s=e.isSelected(),a=bc(o),l=g_(o),u=m_(o),h=this.isMultiSelect(),f=i==="rowClicked";if(f&&!(l||u))return null;if(t&&n&&h){const p=r.getRoot();if(p)if(p.isSelected()){const m=r.isInRange(e)?r.truncate(e):r.extend(e,a);return{deselect:m.discard,select:m.keep,reset:!1}}else{const m=r.extend(e,a);return{select:[],deselect:m.keep,reset:!1}}else return null}else if(t&&h){const p=r.selectAll?this.beans.rowModel.getRow(0):void 0,m=r.getRoot(p),v=r.isInRange(e)?r.truncate(e):r.extend(e,a);return{select:v.keep,deselect:v.discard,reset:r.selectAll||!!(m&&!m.isSelected())}}else if(n){if(f){const p=!s;return p&&!l||!p&&!u?null:(r.setRoot(e),{node:e,newValue:p,clearSelection:!1})}return r.setRoot(e),{node:e,newValue:!s,clearSelection:!h}}else{r.setRoot(e);const p=v_(o),m=Gd(o)==="filteredDescendants",v=f&&(!p||!l);if(m&&s===void 0&&Yt(o))return{node:e,newValue:!1,checkFilteredNodes:!0,clearSelection:!h||v};if(f){const w=s?!p:l;return w===s&&!v||w&&!l||!w&&!u?null:{node:e,newValue:w,clearSelection:!h||v,keepDescendants:e.group&&a}}return{node:e,newValue:!s,clearSelection:!h||v}}}},s9=class extends r9{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=Bd(e),this.groupSelectsDescendants=bc(e),this.groupSelectsFiltered=Gd(e)==="filteredDescendants",this.masterSelectsDetail=p0(e)==="detail",this.addManagedPropertyListeners(["groupSelectsChildren","groupSelectsFiltered","rowSelection"],()=>{const t=bc(e),n=Bd(e),i=Gd(e)==="filteredDescendants";this.masterSelectsDetail=p0(e)==="detail",(t!==this.groupSelectsDescendants||i!==this.groupSelectsFiltered||n!==this.mode)&&(this.deselectAllRowNodes({source:"api"}),this.groupSelectsDescendants=t,this.groupSelectsFiltered=i,this.mode=n)}),this.addManagedEventListeners({rowSelected:this.onRowSelected.bind(this)})}destroy(){super.destroy(),this.resetNodes()}handleSelectionEvent(e,t,n){if(this.isRowSelectionBlocked(t))return 0;const i=this.inferNodeSelections(t,e.shiftKey,e.metaKey||e.ctrlKey,n);if(i==null)return 0;if(this.selectionCtx.selectAll=!1,"select"in i)return i.reset?this.resetNodes():this.selectRange(i.deselect,!1,n),this.selectRange(i.select,!0,n);{const o=i.checkFilteredNodes?c1(i.node):i.newValue;return this.setNodesSelected({nodes:[i.node],newValue:o,clearSelection:i.clearSelection,keepDescendants:i.keepDescendants,event:e,source:n})}}setNodesSelected({newValue:e,clearSelection:t,suppressFinishActions:n,nodes:i,event:o,source:r,keepDescendants:s=!1}){if(i.length===0)return 0;const{gos:a}=this;if(!Is(a)&&e)return se(132),0;if(i.length>1&&!this.isMultiSelect())return se(130),0;let l=0;for(let u=0;u<i.length;u++){const h=i[u],f=h.primaryRow;if(f.rowPinned&&!Ch(f)){se(59);continue}if(f.id===void 0){se(60);continue}if(e&&h.destroyed)continue;this.groupSelectsFiltered&&f.group&&!a.get("treeData")||this.selectRowNode(f,e,o,r)&&(this.detailSelection.delete(f.id),l++),this.groupSelectsDescendants&&f.childrenAfterGroup?.length&&(l+=this.selectChildren(f,e,r))}return n||(i.length===1&&r==="api"&&this.selectionCtx.setRoot(i[0].primaryRow),e&&(t||!this.isMultiSelect())&&(l+=this.clearOtherNodes(i[0].primaryRow,s,r)),l>0&&(this.updateGroupsFromChildrenSelections(r),this.dispatchSelectionChanged(r))),l}selectRange(e,t,n){let i=0;return e.forEach(o=>{const r=o.primaryRow;if(r.group&&this.groupSelectsDescendants)return;this.selectRowNode(r,t,void 0,n)&&i++}),i>0&&(this.updateGroupsFromChildrenSelections(n),this.dispatchSelectionChanged(n)),i}selectChildren(e,t,n){const i=this.groupSelectsFiltered?e.childrenAfterAggFilter:e.childrenAfterGroup;return i?this.setNodesSelected({newValue:t,clearSelection:!1,suppressFinishActions:!0,source:n,nodes:i}):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((n,i)=>{e(n)&&t.set(i,n)}),this.selectedNodes=t}updateGroupsFromChildrenSelections(e,t){if(!this.groupSelectsDescendants)return!1;const{gos:n,rowModel:i}=this.beans;if(!Yt(n))return!1;const o=i.rootNode;if(!o)return!1;let r=!1;const s=a=>{if(a!==o){const l=this.calculateSelectedFromChildren(a);r=this.selectRowNode(a,l===null?!1:l,void 0,e)||r}};return Qs(o,this.beans.rowModel.hierarchical,t,s),r}clearOtherNodes(e,t,n){const i=new Map;let o=0;return this.selectedNodes.forEach(r=>{const s=r.id==e.id;if((t?!l9(e,r):!0)&&!s){const l=this.selectedNodes.get(r.id);o+=this.setNodesSelected({nodes:[l],newValue:!1,clearSelection:!1,suppressFinishActions:!0,source:n}),this.groupSelectsDescendants&&r.parent&&i.set(r.parent.id,r.parent)}}),i.forEach(r=>{const s=this.calculateSelectedFromChildren(r);this.selectRowNode(r,s===null?!1:s,void 0,n)}),o}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 Ur(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(!Yt(e))return;const n=t.getTopLevelNodes();if(n===null)return;const i=[];function o(r){for(let s=0,a=r.length;s<a;s++){const l=r[s];l.isSelected()?i.push(l):l.group&&l.childrenAfterGroup&&o(l.childrenAfterGroup)}}return o(n),i}isEmpty(){return this.getSelectionCount()===0}deselectAllRowNodes({source:e,selectAll:t}){const n=Yt(this.gos);let i=!1;const o=r=>{const s=this.selectRowNode(r.primaryRow,!1,void 0,e);i||(i=s)};if(t==="currentPage"||t==="filtered"){if(!n){gt(102);return}this.getNodesToSelect(t).forEach(o)}else this.selectedNodes.forEach(o),this.reset(e);if(this.selectionCtx.selectAll=!1,n&&this.groupSelectsDescendants){const r=this.updateGroupsFromChildrenSelections(e);i||(i=r)}i&&this.dispatchSelectionChanged(e)}getSelectedCounts(e){let t=0,n=0;return this.getNodesToSelect(e).forEach(i=>{this.groupSelectsDescendants&&i.group||(i.isSelected()?t++:i.selectable&&n++)}),{selectedCount:t,notSelectedCount:n}}getSelectAllState(e){const{selectedCount:t,notSelectedCount:n}=this.getSelectedCounts(e);return l1(t,n)??null}hasNodesToSelect(e){return this.getNodesToSelect(e).filter(t=>t.selectable).length>0}getNodesToSelect(e){if(!this.canSelectAll())return[];const t=[],n=o=>t.push(o);if(e==="currentPage")return this.forEachNodeOnPage(o=>{if(!o.group){n(o);return}if(!o.footer&&!o.expanded){const r=s=>{n(s);const a=s.childrenAfterFilter;if(a)for(let l=0,u=a.length;l<u;++l)r(a[l])};r(o);return}this.groupSelectsDescendants||n(o)}),t;const i=this.beans.rowModel;return e==="filtered"?(i.forEachNodeAfterFilter(n),t):(i.forEachNode(n),t)}forEachNodeOnPage(e){const{pageBounds:t,rowModel:n}=this.beans,i=t.getFirstRow(),o=t.getLastRow();for(let r=i;r<=o;r++){const s=n.getRow(r);s&&e(s)}}selectAllRowNodes(e){const{gos:t,selectionCtx:n}=this;if(!Is(t)){se(132);return}if(p_(t)&&!wc(t)){se(130);return}if(!this.canSelectAll())return;const{source:i,selectAll:o}=e;let r=!1;if(this.getNodesToSelect(o).forEach(s=>{const a=this.selectRowNode(s.primaryRow,!0,void 0,i);r||(r=a)}),n.selectAll=!0,Yt(t)&&this.groupSelectsDescendants){const s=this.updateGroupsFromChildrenSelections(i);r||(r=s)}r&&this.dispatchSelectionChanged(i)}getSelectionState(){return this.isEmpty()?null:Array.from(this.selectedNodes.keys())}setSelectionState(e,t,n){if(e||(e=[]),!Array.isArray(e)){gt(103);return}const i=new Set(e),o=[];this.beans.rowModel.forEachNode(r=>{i.has(r.id)&&o.push(r)}),n&&this.resetNodes(),this.setNodesSelected({newValue:!0,nodes:o,source:t})}canSelectAll(){return Yt(this.beans.gos)}updateSelectable(e){const{gos:t,rowModel:n}=this.beans;if(!Is(t))return;const i="selectableChanged",o=Yt(t)&&this.groupSelectsDescendants,r=[];if(o){const s=n.rootNode;s&&Qs(s,n.hierarchical,e,a=>{let l=!1;for(const u of a.childrenAfterGroup)l||(l=u.selectable),!u.group&&!this.updateRowSelectable(u,!0)&&u.isSelected()&&r.push(u);this.setRowSelectable(a,l,!0)})}else n.forEachNode(s=>{!this.updateRowSelectable(s,!0)&&s.isSelected()&&r.push(s)});r.length&&this.setNodesSelected({nodes:r,newValue:!1,source:i}),!e&&o&&this.updateGroupsFromChildrenSelections?.(i)}updateSelectableAfterGrouping(e){this.updateSelectable(e),this.groupSelectsDescendants&&this.updateGroupsFromChildrenSelections?.("rowGroupChanged",e)&&this.dispatchSelectionChanged("rowGroupChanged")}refreshMasterNodeState(e,t){if(!this.masterSelectsDetail)return;const n=e.detailNode?.detailGridInfo?.api;if(!n)return;const i=a9(n);e.isSelected()!==i&&this.selectRowNode(e,i,t,"masterDetail")&&this.dispatchSelectionChanged("masterDetail"),i||this.detailSelection.set(e.id,new Set(n.getSelectedNodes().map(r=>r.id)))}setDetailSelectionState(e,t,n){if(this.masterSelectsDetail){if(!wc(t)){se(269);return}switch(e.isSelected()){case!0:{n.selectAll();break}case!1:{n.deselectAll();break}case void 0:{const i=this.detailSelection.get(e.id);if(i){const o=[];for(const r of i){const s=n.getRowNode(r);s&&o.push(s)}n.setNodesSelected({nodes:o,newValue:!0,source:"masterDetail"})}break}}}}dispatchSelectionChanged(e){this.eventSvc.dispatchEvent({type:"selectionChanged",source:e,selectedNodes:this.getSelectedNodes(),serverSideState:null})}};function a9(e){let t=0,n=0;return e.forEachNode(i=>{i.isSelected()?t++:i.selectable&&n++}),l1(t,n)}function l1(e,t){if(e===0&&t===0)return!1;if(!(e>0&&t>0))return e>0}function l9(e,t){let n=t.parent;for(;n;){if(n===e)return!0;n=n.parent}return!1}function c1(e){const t=e.isSelected()===!1,n=e.childrenAfterFilter?.some(c1)??!1;return t||n}var c9={moduleName:"SharedRowSelection",version:me,beans:[UU],css:[$U],apiFunctions:{setNodesSelected:jU,selectAll:KU,deselectAll:qU,selectAllFiltered:QU,deselectAllFiltered:YU,selectAllOnCurrentPage:ZU,deselectAllOnCurrentPage:XU,getSelectedNodes:JU,getSelectedRows:e9}},u9={moduleName:"RowSelection",version:me,rowModels:["clientSide","infinite","viewport"],beans:[s9],dependsOn:[c9]},d9=class extends X{constructor(e,t){super(),this.cellCtrl=e,this.staticClasses=[],this.beans=t,this.column=e.column}setComp(e){this.cellComp=e,this.applyUserStyles(),this.applyCellClassRules(),this.applyClassesFromColDef()}applyCellClassRules(){const{column:e,cellComp:t}=this,n=e.colDef,i=n.cellClassRules,o=this.getCellClassParams(e,n);Km(this.beans.expressionSvc,i===this.cellClassRules?void 0:this.cellClassRules,i,o,r=>t.toggleCss(r,!0),r=>t.toggleCss(r,!1)),this.cellClassRules=i}applyUserStyles(){const e=this.column,t=e.colDef,n=t.cellStyle;if(!n)return;let i;if(typeof n=="function"){const o=this.getCellClassParams(e,t);i=n(o)}else i=n;i&&this.cellComp.setUserStyles(i)}applyClassesFromColDef(){const{column:e,cellComp:t}=this,n=e.colDef,i=this.getCellClassParams(e,n);for(const r of this.staticClasses)t.toggleCss(r,!1);const o=this.beans.cellStyles.getStaticCellClasses(n,i);this.staticClasses=o;for(const r of o)t.toggleCss(r,!0)}getCellClassParams(e,t){const{value:n,rowNode:i}=this.cellCtrl;return We(this.beans.gos,{value:n,data:i.data,node:i,colDef:t,column:e,rowIndex:i.rowIndex})}},h9=class extends X{constructor(){super(...arguments),this.beanName="cellStyles"}processAllCellClasses(e,t,n,i){Km(this.beans.expressionSvc,void 0,e.cellClassRules,t,n,i),this.processStaticCellClasses(e,t,n)}getStaticCellClasses(e,t){const{cellClass:n}=e;if(!n)return[];let i;return typeof n=="function"?i=n(t):i=n,typeof i=="string"&&(i=[i]),i||[]}createCellCustomStyleFeature(e){return new d9(e,this.beans)}processStaticCellClasses(e,t,n){this.getStaticCellClasses(e,t).forEach(o=>{n(o)})}},f9={moduleName:"CellStyle",version:me,beans:[h9]},p9={moduleName:"RowStyle",version:me,beans:[lW]},g9={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},ri="clientSide",_n="serverSide",ll="infinite",m9={onGroupExpandedOrCollapsed:[ri],refreshClientSideRowModel:[ri],isRowDataEmpty:[ri],forEachLeafNode:[ri],forEachNodeAfterFilter:[ri],forEachNodeAfterFilterAndSort:[ri],resetRowHeights:[ri,_n],applyTransaction:[ri],applyTransactionAsync:[ri],flushAsyncTransactions:[ri],getBestCostNodeSelection:[ri],getServerSideSelectionState:[_n],setServerSideSelectionState:[_n],applyServerSideTransaction:[_n],applyServerSideTransactionAsync:[_n],applyServerSideRowData:[_n],retryServerSideLoads:[_n],flushServerSideAsyncTransactions:[_n],refreshServerSide:[_n],getServerSideGroupLevelState:[_n],refreshInfiniteCache:[ll],purgeInfiniteCache:[ll],getInfiniteRowCount:[ll],isLastRowIndexKnown:[ll,_n],expandAll:[ri,_n],collapseAll:[ri,_n],onRowHeightChanged:[ri,_n],setRowCount:[ll,_n],getCacheBlockState:[ll,_n]},v9={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 C9(e,t,n){const i=v9[e];if(i){const{version:r,new:s,old:a,message:l}=i,u=a??e;return(...h)=>{const f=s?`Please use ${s} instead. `:"";return mc(`Since ${r} api.${u} is deprecated. ${f}${l??""}`),t.apply(t,h)}}const o=m9[e];return o?(...r)=>{const s=n.rowModel.getType();if(!o.includes(s)){Na(`api.${e} can only be called when gridOptions.rowModelType is ${o.join(" or ")}`);return}return t.apply(t,r)}:t}var w9={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",agBigIntColumnFilterHandler:"BigIntFilter",agDateColumnFilterHandler:"DateFilter",agTextColumnFilterHandler:"TextFilter"},b9={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},y9={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"},S9=new Set(["colorPicker","smallUp","checkboxChecked","checkboxIndeterminate","checkboxUnchecked","radioButtonOn","radioButtonOff","smallDown","smallLeft","smallRight"]),R9=class extends X{constructor(){super(...arguments),this.beanName="validation"}wireBeans(e){this.gridOptions=e.gridOptions,e_(b3)}warnOnInitialPropertyUpdate(e,t){e==="api"&&g9[t]&&se(22,{key:t})}processGridOptions(e){this.processOptions(e,c5())}validateApiFunction(e,t){return C9(e,t,this.beans)}missingUserComponent(e,t,n,i){const o=tl[t];o?this.gos.assertModuleRegistered(o,`AG Grid '${e}' component: ${t}`):se(101,{propertyName:e,componentName:t,agGridDefaults:n,jsComps:i})}missingDynamicBean(e){const t=w9[e];return t?xo(200,{...this.gos.getModuleErrorParams(),moduleName:t,reasonOrId:e}):void 0}checkRowEvents(e){x9.has(e)&&se(10,{eventType:e})}validateIcon(e){if(S9.has(e)&&se(43,{iconName:e}),b9[e])return;const t=y9[e];if(t){gt(200,{reasonOrId:`icon '${e}'`,moduleName:t,gridScoped:xg(),gridId:this.beans.context.getId(),rowModelType:this.gos.get("rowModelType"),additionalText:"Alternatively, use the CSS icon name directly."});return}se(134,{iconName:e})}isProvidedUserComp(e){return!!tl[e]}validateColDef(e){this.processOptions(e,t5())}processOptions(e,t){const{validations:n,deprecations:i,allProperties:o,propertyExceptions:r,objectName:s,docsUrl:a}=t;o&&this.gridOptions.suppressPropertyNamesCheck!==!0&&this.checkProperties(e,[...r??[],...Object.keys(i)],o,s,a);const l=new Set;if(Object.keys(e).forEach(h=>{const f=i[h];if(f){const{message:R,version:S}=f;l.add(`As of v${S}, ${String(h)} is deprecated. ${R??""}`)}const p=e[h];if(p==null||p===!1)return;const m=n[h];if(!m)return;const{dependencies:v,validate:w,supportedRowModels:b,expectedType:y}=m;if(y){const R=typeof p;if(R!==y){l.add(`${String(h)} should be of type '${y}' but received '${R}' (${p}).`);return}}if(b){const R=this.gridOptions.rowModelType??"clientSide";if(!b.includes(R)){l.add(`${String(h)} is not supported with the '${R}' row model. It is only valid with: ${b.join(", ")}.`);return}}if(v){const R=this.checkForRequiredDependencies(h,v,e);if(R){l.add(R);return}}if(w){const R=w(e,this.gridOptions,this.beans);if(R){l.add(R);return}}}),l.size>0)for(const h of l)mc(h)}checkForRequiredDependencies(e,t,n){const o=Object.entries(t).filter(([r,s])=>{const a=n[r];return!s.required.includes(a)});return o.length===0?null:o.map(([r,s])=>`'${String(e)}' requires '${r}' to be one of [${s.required.map(a=>a===null?"null":a===void 0?"undefined":a).join(", ")}]. ${s.reason??""}`).join(`
65
+ `)}checkProperties(e,t,n,i,o){const r=["__ob__","__v_skip","__metadata__"],s=F9(Object.getOwnPropertyNames(e),[...r,...t,...n],n),a=Object.keys(s);for(const l of a){const u=s[l];let h=`invalid ${i} property '${l}' did you mean any of these: ${u.slice(0,8).join(", ")}.`;n.includes("context")&&(h+=`
66
+ If you are trying to annotate ${i} with application data, use the '${i}.context' property instead.`),mc(h)}if(a.length>0&&o){const l=this.beans.frameworkOverrides.getDocLink(o);mc(`to see all the valid ${i} properties please check: ${l}`)}}};function F9(e,t,n){const i={},o=e.filter(r=>!t.some(s=>s===r));if(o.length>0)for(const r of o)i[r]=Jm({inputValue:r,allSuggestions:n}).values;return i}var x9=new Set(["firstChildChanged","lastChildChanged","childIndexChanged"]),P9={moduleName:"Validation",version:me,beans:[R9]},E9={moduleName:"AllCommunity",version:me,dependsOn:[yz,zz,D8,P9,m4,v4,C4,w4,b4,y4,S4,g4,h8,f8,p8,g8,d8,v8,C8,W8,D3,cU,oF,ix,V3,LU,Dz,yB,mU,u9,s3,f9,kz,p9,L8,c3,PU,vx,O8,OU,bB,Sz,zU]},D9=class{wrap(e,t,n,i){const o=this.createWrapper(e,i);for(const r of t??[])this.createMethod(o,r,!0);for(const r of n??[])this.createMethod(o,r,!1);return o}createMethod(e,t,n){e.addMethod(t,this.createMethodProxy(e,t,n))}createMethodProxy(e,t,n){return function(){return e.hasMethod(t)?e.callMethod(t,arguments):(n&&se(49,{methodName:t}),null)}}};function Nv(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function T9(e){if(Array.isArray(e))return e}function A9(e){if(Array.isArray(e))return Nv(e)}function I9(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function M9(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,d1(i.key),i)}}function k9(e,t,n){return t&&M9(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Nh(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=Bv(e))||t){n&&(e=n);var i=0,o=function(){};return{s:o,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(l){throw l},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
67
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var r,s=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var l=n.next();return s=l.done,l},e:function(l){a=!0,r=l},f:function(){try{s||n.return==null||n.return()}finally{if(a)throw r}}}}function nt(e,t,n){return(t=d1(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function L9(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function _9(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var i,o,r,s,a=[],l=!0,u=!1;try{if(r=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=r.call(n)).done)&&(a.push(i.value),a.length!==t);l=!0);}catch(h){u=!0,o=h}finally{try{if(!l&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(u)throw o}}return a}}function O9(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
68
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function N9(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
69
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function u1(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,i)}return n}function pe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?u1(Object(n),!0).forEach(function(i){nt(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u1(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function Bh(e,t){return T9(e)||_9(e,t)||Bv(e,t)||O9()}function ao(e){return A9(e)||L9(e)||Bv(e)||N9()}function B9(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t);if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function d1(e){var t=B9(e,"string");return typeof t=="symbol"?t:t+""}function Gh(e){"@babel/helpers - typeof";return Gh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Gh(e)}function Bv(e,t){if(e){if(typeof e=="string")return Nv(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Nv(e,t):void 0}}var h1=function(){},Gv={},f1={},p1=null,g1={mark:h1,measure:h1};try{typeof window<"u"&&(Gv=window),typeof document<"u"&&(f1=document),typeof MutationObserver<"u"&&(p1=MutationObserver),typeof performance<"u"&&(g1=performance)}catch{}var G9=Gv.navigator||{},m1=G9.userAgent,v1=m1===void 0?"":m1,ns=Gv,Mt=f1,C1=p1,Hh=g1;ns.document;var lr=!!Mt.documentElement&&!!Mt.head&&typeof Mt.addEventListener=="function"&&typeof Mt.createElement=="function",w1=~v1.indexOf("MSIE")||~v1.indexOf("Trident/"),Hv,H9=/fa(k|kd|s|r|l|t|d|dr|dl|dt|b|slr|slpr|wsb|tl|ns|nds|es|gt|jr|jfr|jdr|usb|ufsb|udsb|cr|ss|sr|sl|st|sds|sdr|sdl|sdt)?[\-\ ]/,V9=/Font ?Awesome ?([567 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp Duotone|Sharp|Kit|Notdog Duo|Notdog|Chisel|Etch|Graphite|Thumbprint|Jelly Fill|Jelly Duo|Jelly|Utility|Utility Fill|Utility Duo|Slab Press|Slab|Whiteboard)?.*/i,b1={classic:{fa:"solid",fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fab:"brands","fa-brands":"brands"},duotone:{fa:"solid",fad:"solid","fa-solid":"solid","fa-duotone":"solid",fadr:"regular","fa-regular":"regular",fadl:"light","fa-light":"light",fadt:"thin","fa-thin":"thin"},sharp:{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular",fasl:"light","fa-light":"light",fast:"thin","fa-thin":"thin"},"sharp-duotone":{fa:"solid",fasds:"solid","fa-solid":"solid",fasdr:"regular","fa-regular":"regular",fasdl:"light","fa-light":"light",fasdt:"thin","fa-thin":"thin"},slab:{"fa-regular":"regular",faslr:"regular"},"slab-press":{"fa-regular":"regular",faslpr:"regular"},thumbprint:{"fa-light":"light",fatl:"light"},whiteboard:{"fa-semibold":"semibold",fawsb:"semibold"},notdog:{"fa-solid":"solid",fans:"solid"},"notdog-duo":{"fa-solid":"solid",fands:"solid"},etch:{"fa-solid":"solid",faes:"solid"},graphite:{"fa-thin":"thin",fagt:"thin"},jelly:{"fa-regular":"regular",fajr:"regular"},"jelly-fill":{"fa-regular":"regular",fajfr:"regular"},"jelly-duo":{"fa-regular":"regular",fajdr:"regular"},chisel:{"fa-regular":"regular",facr:"regular"},utility:{"fa-semibold":"semibold",fausb:"semibold"},"utility-duo":{"fa-semibold":"semibold",faudsb:"semibold"},"utility-fill":{"fa-semibold":"semibold",faufsb:"semibold"}},W9={GROUP:"duotone-group",PRIMARY:"primary",SECONDARY:"secondary"},y1=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone","fa-thumbprint","fa-whiteboard","fa-notdog","fa-notdog-duo","fa-chisel","fa-etch","fa-graphite","fa-jelly","fa-jelly-fill","fa-jelly-duo","fa-slab","fa-slab-press","fa-utility","fa-utility-duo","fa-utility-fill"],yn="classic",Vc="duotone",S1="sharp",R1="sharp-duotone",F1="chisel",x1="etch",P1="graphite",E1="jelly",D1="jelly-duo",T1="jelly-fill",A1="notdog",I1="notdog-duo",M1="slab",k1="slab-press",L1="thumbprint",_1="utility",O1="utility-duo",N1="utility-fill",B1="whiteboard",z9="Classic",U9="Duotone",$9="Sharp",j9="Sharp Duotone",K9="Chisel",q9="Etch",Q9="Graphite",Y9="Jelly",Z9="Jelly Duo",X9="Jelly Fill",J9="Notdog",e$="Notdog Duo",t$="Slab",n$="Slab Press",i$="Thumbprint",o$="Utility",r$="Utility Duo",s$="Utility Fill",a$="Whiteboard",G1=[yn,Vc,S1,R1,F1,x1,P1,E1,D1,T1,A1,I1,M1,k1,L1,_1,O1,N1,B1];Hv={},nt(nt(nt(nt(nt(nt(nt(nt(nt(nt(Hv,yn,z9),Vc,U9),S1,$9),R1,j9),F1,K9),x1,q9),P1,Q9),E1,Y9),D1,Z9),T1,X9),nt(nt(nt(nt(nt(nt(nt(nt(nt(Hv,A1,J9),I1,e$),M1,t$),k1,n$),L1,i$),_1,o$),O1,r$),N1,s$),B1,a$);var l$={classic:{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},duotone:{900:"fad",400:"fadr",300:"fadl",100:"fadt"},sharp:{900:"fass",400:"fasr",300:"fasl",100:"fast"},"sharp-duotone":{900:"fasds",400:"fasdr",300:"fasdl",100:"fasdt"},slab:{400:"faslr"},"slab-press":{400:"faslpr"},whiteboard:{600:"fawsb"},thumbprint:{300:"fatl"},notdog:{900:"fans"},"notdog-duo":{900:"fands"},etch:{900:"faes"},graphite:{100:"fagt"},chisel:{400:"facr"},jelly:{400:"fajr"},"jelly-fill":{400:"fajfr"},"jelly-duo":{400:"fajdr"},utility:{600:"fausb"},"utility-duo":{600:"faudsb"},"utility-fill":{600:"faufsb"}},c$={"Font Awesome 7 Free":{900:"fas",400:"far"},"Font Awesome 7 Pro":{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},"Font Awesome 7 Brands":{400:"fab",normal:"fab"},"Font Awesome 7 Duotone":{900:"fad",400:"fadr",normal:"fadr",300:"fadl",100:"fadt"},"Font Awesome 7 Sharp":{900:"fass",400:"fasr",normal:"fasr",300:"fasl",100:"fast"},"Font Awesome 7 Sharp Duotone":{900:"fasds",400:"fasdr",normal:"fasdr",300:"fasdl",100:"fasdt"},"Font Awesome 7 Jelly":{400:"fajr",normal:"fajr"},"Font Awesome 7 Jelly Fill":{400:"fajfr",normal:"fajfr"},"Font Awesome 7 Jelly Duo":{400:"fajdr",normal:"fajdr"},"Font Awesome 7 Slab":{400:"faslr",normal:"faslr"},"Font Awesome 7 Slab Press":{400:"faslpr",normal:"faslpr"},"Font Awesome 7 Thumbprint":{300:"fatl",normal:"fatl"},"Font Awesome 7 Notdog":{900:"fans",normal:"fans"},"Font Awesome 7 Notdog Duo":{900:"fands",normal:"fands"},"Font Awesome 7 Etch":{900:"faes",normal:"faes"},"Font Awesome 7 Graphite":{100:"fagt",normal:"fagt"},"Font Awesome 7 Chisel":{400:"facr",normal:"facr"},"Font Awesome 7 Whiteboard":{600:"fawsb",normal:"fawsb"},"Font Awesome 7 Utility":{600:"fausb",normal:"fausb"},"Font Awesome 7 Utility Duo":{600:"faudsb",normal:"faudsb"},"Font Awesome 7 Utility Fill":{600:"faufsb",normal:"faufsb"}},u$=new Map([["classic",{defaultShortPrefixId:"fas",defaultStyleId:"solid",styleIds:["solid","regular","light","thin","brands"],futureStyleIds:[],defaultFontWeight:900}],["duotone",{defaultShortPrefixId:"fad",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["sharp",{defaultShortPrefixId:"fass",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["sharp-duotone",{defaultShortPrefixId:"fasds",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["chisel",{defaultShortPrefixId:"facr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["etch",{defaultShortPrefixId:"faes",defaultStyleId:"solid",styleIds:["solid"],futureStyleIds:[],defaultFontWeight:900}],["graphite",{defaultShortPrefixId:"fagt",defaultStyleId:"thin",styleIds:["thin"],futureStyleIds:[],defaultFontWeight:100}],["jelly",{defaultShortPrefixId:"fajr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["jelly-duo",{defaultShortPrefixId:"fajdr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["jelly-fill",{defaultShortPrefixId:"fajfr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["notdog",{defaultShortPrefixId:"fans",defaultStyleId:"solid",styleIds:["solid"],futureStyleIds:[],defaultFontWeight:900}],["notdog-duo",{defaultShortPrefixId:"fands",defaultStyleId:"solid",styleIds:["solid"],futureStyleIds:[],defaultFontWeight:900}],["slab",{defaultShortPrefixId:"faslr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["slab-press",{defaultShortPrefixId:"faslpr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["thumbprint",{defaultShortPrefixId:"fatl",defaultStyleId:"light",styleIds:["light"],futureStyleIds:[],defaultFontWeight:300}],["utility",{defaultShortPrefixId:"fausb",defaultStyleId:"semibold",styleIds:["semibold"],futureStyleIds:[],defaultFontWeight:600}],["utility-duo",{defaultShortPrefixId:"faudsb",defaultStyleId:"semibold",styleIds:["semibold"],futureStyleIds:[],defaultFontWeight:600}],["utility-fill",{defaultShortPrefixId:"faufsb",defaultStyleId:"semibold",styleIds:["semibold"],futureStyleIds:[],defaultFontWeight:600}],["whiteboard",{defaultShortPrefixId:"fawsb",defaultStyleId:"semibold",styleIds:["semibold"],futureStyleIds:[],defaultFontWeight:600}]]),d$={chisel:{regular:"facr"},classic:{brands:"fab",light:"fal",regular:"far",solid:"fas",thin:"fat"},duotone:{light:"fadl",regular:"fadr",solid:"fad",thin:"fadt"},etch:{solid:"faes"},graphite:{thin:"fagt"},jelly:{regular:"fajr"},"jelly-duo":{regular:"fajdr"},"jelly-fill":{regular:"fajfr"},notdog:{solid:"fans"},"notdog-duo":{solid:"fands"},sharp:{light:"fasl",regular:"fasr",solid:"fass",thin:"fast"},"sharp-duotone":{light:"fasdl",regular:"fasdr",solid:"fasds",thin:"fasdt"},slab:{regular:"faslr"},"slab-press":{regular:"faslpr"},thumbprint:{light:"fatl"},utility:{semibold:"fausb"},"utility-duo":{semibold:"faudsb"},"utility-fill":{semibold:"faufsb"},whiteboard:{semibold:"fawsb"}},H1=["fak","fa-kit","fakd","fa-kit-duotone"],V1={kit:{fak:"kit","fa-kit":"kit"},"kit-duotone":{fakd:"kit-duotone","fa-kit-duotone":"kit-duotone"}},h$=["kit"],f$="kit",p$="kit-duotone",g$="Kit",m$="Kit Duotone";nt(nt({},f$,g$),p$,m$);var v$={kit:{"fa-kit":"fak"}},C$={"Font Awesome Kit":{400:"fak",normal:"fak"},"Font Awesome Kit Duotone":{400:"fakd",normal:"fakd"}},w$={kit:{fak:"fa-kit"}},W1={kit:{kit:"fak"},"kit-duotone":{"kit-duotone":"fakd"}},Vv,Vh={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},b$=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone","fa-thumbprint","fa-whiteboard","fa-notdog","fa-notdog-duo","fa-chisel","fa-etch","fa-graphite","fa-jelly","fa-jelly-fill","fa-jelly-duo","fa-slab","fa-slab-press","fa-utility","fa-utility-duo","fa-utility-fill"],y$="classic",S$="duotone",R$="sharp",F$="sharp-duotone",x$="chisel",P$="etch",E$="graphite",D$="jelly",T$="jelly-duo",A$="jelly-fill",I$="notdog",M$="notdog-duo",k$="slab",L$="slab-press",_$="thumbprint",O$="utility",N$="utility-duo",B$="utility-fill",G$="whiteboard",H$="Classic",V$="Duotone",W$="Sharp",z$="Sharp Duotone",U$="Chisel",$$="Etch",j$="Graphite",K$="Jelly",q$="Jelly Duo",Q$="Jelly Fill",Y$="Notdog",Z$="Notdog Duo",X$="Slab",J$="Slab Press",ej="Thumbprint",tj="Utility",nj="Utility Duo",ij="Utility Fill",oj="Whiteboard";Vv={},nt(nt(nt(nt(nt(nt(nt(nt(nt(nt(Vv,y$,H$),S$,V$),R$,W$),F$,z$),x$,U$),P$,$$),E$,j$),D$,K$),T$,q$),A$,Q$),nt(nt(nt(nt(nt(nt(nt(nt(nt(Vv,I$,Y$),M$,Z$),k$,X$),L$,J$),_$,ej),O$,tj),N$,nj),B$,ij),G$,oj);var rj="kit",sj="kit-duotone",aj="Kit",lj="Kit Duotone";nt(nt({},rj,aj),sj,lj);var cj={classic:{"fa-brands":"fab","fa-duotone":"fad","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"},duotone:{"fa-regular":"fadr","fa-light":"fadl","fa-thin":"fadt"},sharp:{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl","fa-thin":"fast"},"sharp-duotone":{"fa-solid":"fasds","fa-regular":"fasdr","fa-light":"fasdl","fa-thin":"fasdt"},slab:{"fa-regular":"faslr"},"slab-press":{"fa-regular":"faslpr"},whiteboard:{"fa-semibold":"fawsb"},thumbprint:{"fa-light":"fatl"},notdog:{"fa-solid":"fans"},"notdog-duo":{"fa-solid":"fands"},etch:{"fa-solid":"faes"},graphite:{"fa-thin":"fagt"},jelly:{"fa-regular":"fajr"},"jelly-fill":{"fa-regular":"fajfr"},"jelly-duo":{"fa-regular":"fajdr"},chisel:{"fa-regular":"facr"},utility:{"fa-semibold":"fausb"},"utility-duo":{"fa-semibold":"faudsb"},"utility-fill":{"fa-semibold":"faufsb"}},uj={classic:["fas","far","fal","fat","fad"],duotone:["fadr","fadl","fadt"],sharp:["fass","fasr","fasl","fast"],"sharp-duotone":["fasds","fasdr","fasdl","fasdt"],slab:["faslr"],"slab-press":["faslpr"],whiteboard:["fawsb"],thumbprint:["fatl"],notdog:["fans"],"notdog-duo":["fands"],etch:["faes"],graphite:["fagt"],jelly:["fajr"],"jelly-fill":["fajfr"],"jelly-duo":["fajdr"],chisel:["facr"],utility:["fausb"],"utility-duo":["faudsb"],"utility-fill":["faufsb"]},Wv={classic:{fab:"fa-brands",fad:"fa-duotone",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"},duotone:{fadr:"fa-regular",fadl:"fa-light",fadt:"fa-thin"},sharp:{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light",fast:"fa-thin"},"sharp-duotone":{fasds:"fa-solid",fasdr:"fa-regular",fasdl:"fa-light",fasdt:"fa-thin"},slab:{faslr:"fa-regular"},"slab-press":{faslpr:"fa-regular"},whiteboard:{fawsb:"fa-semibold"},thumbprint:{fatl:"fa-light"},notdog:{fans:"fa-solid"},"notdog-duo":{fands:"fa-solid"},etch:{faes:"fa-solid"},graphite:{fagt:"fa-thin"},jelly:{fajr:"fa-regular"},"jelly-fill":{fajfr:"fa-regular"},"jelly-duo":{fajdr:"fa-regular"},chisel:{facr:"fa-regular"},utility:{fausb:"fa-semibold"},"utility-duo":{faudsb:"fa-semibold"},"utility-fill":{faufsb:"fa-semibold"}},dj=["fa-solid","fa-regular","fa-light","fa-thin","fa-duotone","fa-brands","fa-semibold"],z1=["fa","fas","far","fal","fat","fad","fadr","fadl","fadt","fab","fass","fasr","fasl","fast","fasds","fasdr","fasdl","fasdt","faslr","faslpr","fawsb","fatl","fans","fands","faes","fagt","fajr","fajfr","fajdr","facr","fausb","faudsb","faufsb"].concat(b$,dj),hj=["solid","regular","light","thin","duotone","brands","semibold"],U1=[1,2,3,4,5,6,7,8,9,10],fj=U1.concat([11,12,13,14,15,16,17,18,19,20]),pj=["aw","fw","pull-left","pull-right"],gj=[].concat(ao(Object.keys(uj)),hj,pj,["2xs","xs","sm","lg","xl","2xl","beat","border","fade","beat-fade","bounce","flip-both","flip-horizontal","flip-vertical","flip","inverse","layers","layers-bottom-left","layers-bottom-right","layers-counter","layers-text","layers-top-left","layers-top-right","li","pull-end","pull-start","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","stack-1x","stack-2x","stack","ul","width-auto","width-fixed",Vh.GROUP,Vh.SWAP_OPACITY,Vh.PRIMARY,Vh.SECONDARY]).concat(U1.map(function(e){return"".concat(e,"x")})).concat(fj.map(function(e){return"w-".concat(e)})),mj={"Font Awesome 5 Free":{900:"fas",400:"far"},"Font Awesome 5 Pro":{900:"fas",400:"far",normal:"far",300:"fal"},"Font Awesome 5 Brands":{400:"fab",normal:"fab"},"Font Awesome 5 Duotone":{900:"fad"}},cr="___FONT_AWESOME___",zv=16,$1="fa",j1="svg-inline--fa",Zs="data-fa-i2svg",Uv="data-fa-pseudo-element",vj="data-fa-pseudo-element-pending",$v="data-prefix",jv="data-icon",K1="fontawesome-i2svg",Cj="async",wj=["HTML","HEAD","STYLE","SCRIPT"],q1=["::before","::after",":before",":after"],Q1=(function(){try{return!0}catch{return!1}})();function Wc(e){return new Proxy(e,{get:function(n,i){return i in n?n[i]:n[yn]}})}var Y1=pe({},b1);Y1[yn]=pe(pe(pe(pe({},{"fa-duotone":"duotone"}),b1[yn]),V1.kit),V1["kit-duotone"]);var bj=Wc(Y1),Kv=pe({},d$);Kv[yn]=pe(pe(pe(pe({},{duotone:"fad"}),Kv[yn]),W1.kit),W1["kit-duotone"]);var Z1=Wc(Kv),qv=pe({},Wv);qv[yn]=pe(pe({},qv[yn]),w$.kit);var Qv=Wc(qv),Yv=pe({},cj);Yv[yn]=pe(pe({},Yv[yn]),v$.kit),Wc(Yv);var yj=H9,X1="fa-layers-text",Sj=V9,Rj=pe({},l$);Wc(Rj);var Fj=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],Zv=W9,xj=[].concat(ao(h$),ao(gj)),zc=ns.FontAwesomeConfig||{};function Pj(e){var t=Mt.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}function Ej(e){return e===""?!0:e==="false"?!1:e==="true"?!0:e}if(Mt&&typeof Mt.querySelector=="function"){var Dj=[["data-family-prefix","familyPrefix"],["data-css-prefix","cssPrefix"],["data-family-default","familyDefault"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-search-pseudo-elements","searchPseudoElements"],["data-search-pseudo-elements-warnings","searchPseudoElementsWarnings"],["data-search-pseudo-elements-full-scan","searchPseudoElementsFullScan"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]];Dj.forEach(function(e){var t=Bh(e,2),n=t[0],i=t[1],o=Ej(Pj(n));o!=null&&(zc[i]=o)})}var J1={styleDefault:"solid",familyDefault:yn,cssPrefix:$1,replacementClass:j1,autoReplaceSvg:!0,autoAddCss:!0,searchPseudoElements:!1,searchPseudoElementsWarnings:!0,searchPseudoElementsFullScan:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};zc.familyPrefix&&(zc.cssPrefix=zc.familyPrefix);var cl=pe(pe({},J1),zc);cl.autoReplaceSvg||(cl.observeMutations=!1);var He={};Object.keys(J1).forEach(function(e){Object.defineProperty(He,e,{enumerable:!0,set:function(n){cl[e]=n,Uc.forEach(function(i){return i(He)})},get:function(){return cl[e]}})}),Object.defineProperty(He,"familyPrefix",{enumerable:!0,set:function(t){cl.cssPrefix=t,Uc.forEach(function(n){return n(He)})},get:function(){return cl.cssPrefix}}),ns.FontAwesomeConfig=He;var Uc=[];function Tj(e){return Uc.push(e),function(){Uc.splice(Uc.indexOf(e),1)}}var ul=zv,_o={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function Aj(e){if(!(!e||!lr)){var t=Mt.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;for(var n=Mt.head.childNodes,i=null,o=n.length-1;o>-1;o--){var r=n[o],s=(r.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(s)>-1&&(i=r)}return Mt.head.insertBefore(t,i),e}}var Ij="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function eP(){for(var e=12,t="";e-- >0;)t+=Ij[Math.random()*62|0];return t}function dl(e){for(var t=[],n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function Xv(e){return e.classList?dl(e.classList):(e.getAttribute("class")||"").split(" ").filter(function(t){return t})}function tP(e){return"".concat(e).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function Mj(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,'="').concat(tP(e[n]),'" ')},"").trim()}function Wh(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,": ").concat(e[n].trim(),";")},"")}function Jv(e){return e.size!==_o.size||e.x!==_o.x||e.y!==_o.y||e.rotate!==_o.rotate||e.flipX||e.flipY}function kj(e){var t=e.transform,n=e.containerWidth,i=e.iconWidth,o={transform:"translate(".concat(n/2," 256)")},r="translate(".concat(t.x*32,", ").concat(t.y*32,") "),s="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),a="rotate(".concat(t.rotate," 0 0)"),l={transform:"".concat(r," ").concat(s," ").concat(a)},u={transform:"translate(".concat(i/2*-1," -256)")};return{outer:o,inner:l,path:u}}function Lj(e){var t=e.transform,n=e.width,i=n===void 0?zv:n,o=e.height,r=o===void 0?zv:o,s="";return w1?s+="translate(".concat(t.x/ul-i/2,"em, ").concat(t.y/ul-r/2,"em) "):s+="translate(calc(-50% + ".concat(t.x/ul,"em), calc(-50% + ").concat(t.y/ul,"em)) "),s+="scale(".concat(t.size/ul*(t.flipX?-1:1),", ").concat(t.size/ul*(t.flipY?-1:1),") "),s+="rotate(".concat(t.rotate,"deg) "),s}var _j=`:root, :host {
70
+ --fa-font-solid: normal 900 1em/1 'Font Awesome 7 Free';
71
+ --fa-font-regular: normal 400 1em/1 'Font Awesome 7 Free';
72
+ --fa-font-light: normal 300 1em/1 'Font Awesome 7 Pro';
73
+ --fa-font-thin: normal 100 1em/1 'Font Awesome 7 Pro';
74
+ --fa-font-duotone: normal 900 1em/1 'Font Awesome 7 Duotone';
75
+ --fa-font-duotone-regular: normal 400 1em/1 'Font Awesome 7 Duotone';
76
+ --fa-font-duotone-light: normal 300 1em/1 'Font Awesome 7 Duotone';
77
+ --fa-font-duotone-thin: normal 100 1em/1 'Font Awesome 7 Duotone';
78
+ --fa-font-brands: normal 400 1em/1 'Font Awesome 7 Brands';
79
+ --fa-font-sharp-solid: normal 900 1em/1 'Font Awesome 7 Sharp';
80
+ --fa-font-sharp-regular: normal 400 1em/1 'Font Awesome 7 Sharp';
81
+ --fa-font-sharp-light: normal 300 1em/1 'Font Awesome 7 Sharp';
82
+ --fa-font-sharp-thin: normal 100 1em/1 'Font Awesome 7 Sharp';
83
+ --fa-font-sharp-duotone-solid: normal 900 1em/1 'Font Awesome 7 Sharp Duotone';
84
+ --fa-font-sharp-duotone-regular: normal 400 1em/1 'Font Awesome 7 Sharp Duotone';
85
+ --fa-font-sharp-duotone-light: normal 300 1em/1 'Font Awesome 7 Sharp Duotone';
86
+ --fa-font-sharp-duotone-thin: normal 100 1em/1 'Font Awesome 7 Sharp Duotone';
87
+ --fa-font-slab-regular: normal 400 1em/1 'Font Awesome 7 Slab';
88
+ --fa-font-slab-press-regular: normal 400 1em/1 'Font Awesome 7 Slab Press';
89
+ --fa-font-whiteboard-semibold: normal 600 1em/1 'Font Awesome 7 Whiteboard';
90
+ --fa-font-thumbprint-light: normal 300 1em/1 'Font Awesome 7 Thumbprint';
91
+ --fa-font-notdog-solid: normal 900 1em/1 'Font Awesome 7 Notdog';
92
+ --fa-font-notdog-duo-solid: normal 900 1em/1 'Font Awesome 7 Notdog Duo';
93
+ --fa-font-etch-solid: normal 900 1em/1 'Font Awesome 7 Etch';
94
+ --fa-font-graphite-thin: normal 100 1em/1 'Font Awesome 7 Graphite';
95
+ --fa-font-jelly-regular: normal 400 1em/1 'Font Awesome 7 Jelly';
96
+ --fa-font-jelly-fill-regular: normal 400 1em/1 'Font Awesome 7 Jelly Fill';
97
+ --fa-font-jelly-duo-regular: normal 400 1em/1 'Font Awesome 7 Jelly Duo';
98
+ --fa-font-chisel-regular: normal 400 1em/1 'Font Awesome 7 Chisel';
99
+ --fa-font-utility-semibold: normal 600 1em/1 'Font Awesome 7 Utility';
100
+ --fa-font-utility-duo-semibold: normal 600 1em/1 'Font Awesome 7 Utility Duo';
101
+ --fa-font-utility-fill-semibold: normal 600 1em/1 'Font Awesome 7 Utility Fill';
102
+ }
103
+
104
+ .svg-inline--fa {
105
+ box-sizing: content-box;
106
+ display: var(--fa-display, inline-block);
107
+ height: 1em;
108
+ overflow: visible;
109
+ vertical-align: -0.125em;
110
+ width: var(--fa-width, 1.25em);
111
+ }
112
+ .svg-inline--fa.fa-2xs {
113
+ vertical-align: 0.1em;
114
+ }
115
+ .svg-inline--fa.fa-xs {
116
+ vertical-align: 0em;
117
+ }
118
+ .svg-inline--fa.fa-sm {
119
+ vertical-align: -0.0714285714em;
120
+ }
121
+ .svg-inline--fa.fa-lg {
122
+ vertical-align: -0.2em;
123
+ }
124
+ .svg-inline--fa.fa-xl {
125
+ vertical-align: -0.25em;
126
+ }
127
+ .svg-inline--fa.fa-2xl {
128
+ vertical-align: -0.3125em;
129
+ }
130
+ .svg-inline--fa.fa-pull-left,
131
+ .svg-inline--fa .fa-pull-start {
132
+ float: inline-start;
133
+ margin-inline-end: var(--fa-pull-margin, 0.3em);
134
+ }
135
+ .svg-inline--fa.fa-pull-right,
136
+ .svg-inline--fa .fa-pull-end {
137
+ float: inline-end;
138
+ margin-inline-start: var(--fa-pull-margin, 0.3em);
139
+ }
140
+ .svg-inline--fa.fa-li {
141
+ width: var(--fa-li-width, 2em);
142
+ inset-inline-start: calc(-1 * var(--fa-li-width, 2em));
143
+ inset-block-start: 0.25em; /* syncing vertical alignment with Web Font rendering */
144
+ }
145
+
146
+ .fa-layers-counter, .fa-layers-text {
147
+ display: inline-block;
148
+ position: absolute;
149
+ text-align: center;
150
+ }
151
+
152
+ .fa-layers {
153
+ display: inline-block;
154
+ height: 1em;
155
+ position: relative;
156
+ text-align: center;
157
+ vertical-align: -0.125em;
158
+ width: var(--fa-width, 1.25em);
159
+ }
160
+ .fa-layers .svg-inline--fa {
161
+ inset: 0;
162
+ margin: auto;
163
+ position: absolute;
164
+ transform-origin: center center;
165
+ }
166
+
167
+ .fa-layers-text {
168
+ left: 50%;
169
+ top: 50%;
170
+ transform: translate(-50%, -50%);
171
+ transform-origin: center center;
172
+ }
173
+
174
+ .fa-layers-counter {
175
+ background-color: var(--fa-counter-background-color, #ff253a);
176
+ border-radius: var(--fa-counter-border-radius, 1em);
177
+ box-sizing: border-box;
178
+ color: var(--fa-inverse, #fff);
179
+ line-height: var(--fa-counter-line-height, 1);
180
+ max-width: var(--fa-counter-max-width, 5em);
181
+ min-width: var(--fa-counter-min-width, 1.5em);
182
+ overflow: hidden;
183
+ padding: var(--fa-counter-padding, 0.25em 0.5em);
184
+ right: var(--fa-right, 0);
185
+ text-overflow: ellipsis;
186
+ top: var(--fa-top, 0);
187
+ transform: scale(var(--fa-counter-scale, 0.25));
188
+ transform-origin: top right;
189
+ }
190
+
191
+ .fa-layers-bottom-right {
192
+ bottom: var(--fa-bottom, 0);
193
+ right: var(--fa-right, 0);
194
+ top: auto;
195
+ transform: scale(var(--fa-layers-scale, 0.25));
196
+ transform-origin: bottom right;
197
+ }
198
+
199
+ .fa-layers-bottom-left {
200
+ bottom: var(--fa-bottom, 0);
201
+ left: var(--fa-left, 0);
202
+ right: auto;
203
+ top: auto;
204
+ transform: scale(var(--fa-layers-scale, 0.25));
205
+ transform-origin: bottom left;
206
+ }
207
+
208
+ .fa-layers-top-right {
209
+ top: var(--fa-top, 0);
210
+ right: var(--fa-right, 0);
211
+ transform: scale(var(--fa-layers-scale, 0.25));
212
+ transform-origin: top right;
213
+ }
214
+
215
+ .fa-layers-top-left {
216
+ left: var(--fa-left, 0);
217
+ right: auto;
218
+ top: var(--fa-top, 0);
219
+ transform: scale(var(--fa-layers-scale, 0.25));
220
+ transform-origin: top left;
221
+ }
222
+
223
+ .fa-1x {
224
+ font-size: 1em;
225
+ }
226
+
227
+ .fa-2x {
228
+ font-size: 2em;
229
+ }
230
+
231
+ .fa-3x {
232
+ font-size: 3em;
233
+ }
234
+
235
+ .fa-4x {
236
+ font-size: 4em;
237
+ }
238
+
239
+ .fa-5x {
240
+ font-size: 5em;
241
+ }
242
+
243
+ .fa-6x {
244
+ font-size: 6em;
245
+ }
246
+
247
+ .fa-7x {
248
+ font-size: 7em;
249
+ }
250
+
251
+ .fa-8x {
252
+ font-size: 8em;
253
+ }
254
+
255
+ .fa-9x {
256
+ font-size: 9em;
257
+ }
258
+
259
+ .fa-10x {
260
+ font-size: 10em;
261
+ }
262
+
263
+ .fa-2xs {
264
+ font-size: calc(10 / 16 * 1em); /* converts a 10px size into an em-based value that's relative to the scale's 16px base */
265
+ line-height: calc(1 / 10 * 1em); /* sets the line-height of the icon back to that of it's parent */
266
+ vertical-align: calc((6 / 10 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text's descender */
267
+ }
268
+
269
+ .fa-xs {
270
+ font-size: calc(12 / 16 * 1em); /* converts a 12px size into an em-based value that's relative to the scale's 16px base */
271
+ line-height: calc(1 / 12 * 1em); /* sets the line-height of the icon back to that of it's parent */
272
+ vertical-align: calc((6 / 12 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text's descender */
273
+ }
274
+
275
+ .fa-sm {
276
+ font-size: calc(14 / 16 * 1em); /* converts a 14px size into an em-based value that's relative to the scale's 16px base */
277
+ line-height: calc(1 / 14 * 1em); /* sets the line-height of the icon back to that of it's parent */
278
+ vertical-align: calc((6 / 14 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text's descender */
279
+ }
280
+
281
+ .fa-lg {
282
+ font-size: calc(20 / 16 * 1em); /* converts a 20px size into an em-based value that's relative to the scale's 16px base */
283
+ line-height: calc(1 / 20 * 1em); /* sets the line-height of the icon back to that of it's parent */
284
+ vertical-align: calc((6 / 20 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text's descender */
285
+ }
286
+
287
+ .fa-xl {
288
+ font-size: calc(24 / 16 * 1em); /* converts a 24px size into an em-based value that's relative to the scale's 16px base */
289
+ line-height: calc(1 / 24 * 1em); /* sets the line-height of the icon back to that of it's parent */
290
+ vertical-align: calc((6 / 24 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text's descender */
291
+ }
292
+
293
+ .fa-2xl {
294
+ font-size: calc(32 / 16 * 1em); /* converts a 32px size into an em-based value that's relative to the scale's 16px base */
295
+ line-height: calc(1 / 32 * 1em); /* sets the line-height of the icon back to that of it's parent */
296
+ vertical-align: calc((6 / 32 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text's descender */
297
+ }
298
+
299
+ .fa-width-auto {
300
+ --fa-width: auto;
301
+ }
302
+
303
+ .fa-fw,
304
+ .fa-width-fixed {
305
+ --fa-width: 1.25em;
306
+ }
307
+
308
+ .fa-ul {
309
+ list-style-type: none;
310
+ margin-inline-start: var(--fa-li-margin, 2.5em);
311
+ padding-inline-start: 0;
312
+ }
313
+ .fa-ul > li {
314
+ position: relative;
315
+ }
316
+
317
+ .fa-li {
318
+ inset-inline-start: calc(-1 * var(--fa-li-width, 2em));
319
+ position: absolute;
320
+ text-align: center;
321
+ width: var(--fa-li-width, 2em);
322
+ line-height: inherit;
323
+ }
324
+
325
+ /* Heads Up: Bordered Icons will not be supported in the future!
326
+ - This feature will be deprecated in the next major release of Font Awesome (v8)!
327
+ - You may continue to use it in this version *v7), but it will not be supported in Font Awesome v8.
328
+ */
329
+ /* Notes:
330
+ * --@{v.$css-prefix}-border-width = 1/16 by default (to render as ~1px based on a 16px default font-size)
331
+ * --@{v.$css-prefix}-border-padding =
332
+ ** 3/16 for vertical padding (to give ~2px of vertical whitespace around an icon considering it's vertical alignment)
333
+ ** 4/16 for horizontal padding (to give ~4px of horizontal whitespace around an icon)
334
+ */
335
+ .fa-border {
336
+ border-color: var(--fa-border-color, #eee);
337
+ border-radius: var(--fa-border-radius, 0.1em);
338
+ border-style: var(--fa-border-style, solid);
339
+ border-width: var(--fa-border-width, 0.0625em);
340
+ box-sizing: var(--fa-border-box-sizing, content-box);
341
+ padding: var(--fa-border-padding, 0.1875em 0.25em);
342
+ }
343
+
344
+ .fa-pull-left,
345
+ .fa-pull-start {
346
+ float: inline-start;
347
+ margin-inline-end: var(--fa-pull-margin, 0.3em);
348
+ }
349
+
350
+ .fa-pull-right,
351
+ .fa-pull-end {
352
+ float: inline-end;
353
+ margin-inline-start: var(--fa-pull-margin, 0.3em);
354
+ }
355
+
356
+ .fa-beat {
357
+ animation-name: fa-beat;
358
+ animation-delay: var(--fa-animation-delay, 0s);
359
+ animation-direction: var(--fa-animation-direction, normal);
360
+ animation-duration: var(--fa-animation-duration, 1s);
361
+ animation-iteration-count: var(--fa-animation-iteration-count, infinite);
362
+ animation-timing-function: var(--fa-animation-timing, ease-in-out);
363
+ }
364
+
365
+ .fa-bounce {
366
+ animation-name: fa-bounce;
367
+ animation-delay: var(--fa-animation-delay, 0s);
368
+ animation-direction: var(--fa-animation-direction, normal);
369
+ animation-duration: var(--fa-animation-duration, 1s);
370
+ animation-iteration-count: var(--fa-animation-iteration-count, infinite);
371
+ animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));
372
+ }
373
+
374
+ .fa-fade {
375
+ animation-name: fa-fade;
376
+ animation-delay: var(--fa-animation-delay, 0s);
377
+ animation-direction: var(--fa-animation-direction, normal);
378
+ animation-duration: var(--fa-animation-duration, 1s);
379
+ animation-iteration-count: var(--fa-animation-iteration-count, infinite);
380
+ animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
381
+ }
382
+
383
+ .fa-beat-fade {
384
+ animation-name: fa-beat-fade;
385
+ animation-delay: var(--fa-animation-delay, 0s);
386
+ animation-direction: var(--fa-animation-direction, normal);
387
+ animation-duration: var(--fa-animation-duration, 1s);
388
+ animation-iteration-count: var(--fa-animation-iteration-count, infinite);
389
+ animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
390
+ }
391
+
392
+ .fa-flip {
393
+ animation-name: fa-flip;
394
+ animation-delay: var(--fa-animation-delay, 0s);
395
+ animation-direction: var(--fa-animation-direction, normal);
396
+ animation-duration: var(--fa-animation-duration, 1s);
397
+ animation-iteration-count: var(--fa-animation-iteration-count, infinite);
398
+ animation-timing-function: var(--fa-animation-timing, ease-in-out);
399
+ }
400
+
401
+ .fa-shake {
402
+ animation-name: fa-shake;
403
+ animation-delay: var(--fa-animation-delay, 0s);
404
+ animation-direction: var(--fa-animation-direction, normal);
405
+ animation-duration: var(--fa-animation-duration, 1s);
406
+ animation-iteration-count: var(--fa-animation-iteration-count, infinite);
407
+ animation-timing-function: var(--fa-animation-timing, linear);
408
+ }
409
+
410
+ .fa-spin {
411
+ animation-name: fa-spin;
412
+ animation-delay: var(--fa-animation-delay, 0s);
413
+ animation-direction: var(--fa-animation-direction, normal);
414
+ animation-duration: var(--fa-animation-duration, 2s);
415
+ animation-iteration-count: var(--fa-animation-iteration-count, infinite);
416
+ animation-timing-function: var(--fa-animation-timing, linear);
417
+ }
418
+
419
+ .fa-spin-reverse {
420
+ --fa-animation-direction: reverse;
421
+ }
422
+
423
+ .fa-pulse,
424
+ .fa-spin-pulse {
425
+ animation-name: fa-spin;
426
+ animation-direction: var(--fa-animation-direction, normal);
427
+ animation-duration: var(--fa-animation-duration, 1s);
428
+ animation-iteration-count: var(--fa-animation-iteration-count, infinite);
429
+ animation-timing-function: var(--fa-animation-timing, steps(8));
430
+ }
431
+
432
+ @media (prefers-reduced-motion: reduce) {
433
+ .fa-beat,
434
+ .fa-bounce,
435
+ .fa-fade,
436
+ .fa-beat-fade,
437
+ .fa-flip,
438
+ .fa-pulse,
439
+ .fa-shake,
440
+ .fa-spin,
441
+ .fa-spin-pulse {
442
+ animation: none !important;
443
+ transition: none !important;
444
+ }
445
+ }
446
+ @keyframes fa-beat {
447
+ 0%, 90% {
448
+ transform: scale(1);
449
+ }
450
+ 45% {
451
+ transform: scale(var(--fa-beat-scale, 1.25));
452
+ }
453
+ }
454
+ @keyframes fa-bounce {
455
+ 0% {
456
+ transform: scale(1, 1) translateY(0);
457
+ }
458
+ 10% {
459
+ transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);
460
+ }
461
+ 30% {
462
+ transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));
463
+ }
464
+ 50% {
465
+ transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);
466
+ }
467
+ 57% {
468
+ transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));
469
+ }
470
+ 64% {
471
+ transform: scale(1, 1) translateY(0);
472
+ }
473
+ 100% {
474
+ transform: scale(1, 1) translateY(0);
475
+ }
476
+ }
477
+ @keyframes fa-fade {
478
+ 50% {
479
+ opacity: var(--fa-fade-opacity, 0.4);
480
+ }
481
+ }
482
+ @keyframes fa-beat-fade {
483
+ 0%, 100% {
484
+ opacity: var(--fa-beat-fade-opacity, 0.4);
485
+ transform: scale(1);
486
+ }
487
+ 50% {
488
+ opacity: 1;
489
+ transform: scale(var(--fa-beat-fade-scale, 1.125));
490
+ }
491
+ }
492
+ @keyframes fa-flip {
493
+ 50% {
494
+ transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));
495
+ }
496
+ }
497
+ @keyframes fa-shake {
498
+ 0% {
499
+ transform: rotate(-15deg);
500
+ }
501
+ 4% {
502
+ transform: rotate(15deg);
503
+ }
504
+ 8%, 24% {
505
+ transform: rotate(-18deg);
506
+ }
507
+ 12%, 28% {
508
+ transform: rotate(18deg);
509
+ }
510
+ 16% {
511
+ transform: rotate(-22deg);
512
+ }
513
+ 20% {
514
+ transform: rotate(22deg);
515
+ }
516
+ 32% {
517
+ transform: rotate(-12deg);
518
+ }
519
+ 36% {
520
+ transform: rotate(12deg);
521
+ }
522
+ 40%, 100% {
523
+ transform: rotate(0deg);
524
+ }
525
+ }
526
+ @keyframes fa-spin {
527
+ 0% {
528
+ transform: rotate(0deg);
529
+ }
530
+ 100% {
531
+ transform: rotate(360deg);
532
+ }
533
+ }
534
+ .fa-rotate-90 {
535
+ transform: rotate(90deg);
536
+ }
537
+
538
+ .fa-rotate-180 {
539
+ transform: rotate(180deg);
540
+ }
541
+
542
+ .fa-rotate-270 {
543
+ transform: rotate(270deg);
544
+ }
545
+
546
+ .fa-flip-horizontal {
547
+ transform: scale(-1, 1);
548
+ }
549
+
550
+ .fa-flip-vertical {
551
+ transform: scale(1, -1);
552
+ }
553
+
554
+ .fa-flip-both,
555
+ .fa-flip-horizontal.fa-flip-vertical {
556
+ transform: scale(-1, -1);
557
+ }
558
+
559
+ .fa-rotate-by {
560
+ transform: rotate(var(--fa-rotate-angle, 0));
561
+ }
562
+
563
+ .svg-inline--fa .fa-primary {
564
+ fill: var(--fa-primary-color, currentColor);
565
+ opacity: var(--fa-primary-opacity, 1);
566
+ }
567
+
568
+ .svg-inline--fa .fa-secondary {
569
+ fill: var(--fa-secondary-color, currentColor);
570
+ opacity: var(--fa-secondary-opacity, 0.4);
571
+ }
572
+
573
+ .svg-inline--fa.fa-swap-opacity .fa-primary {
574
+ opacity: var(--fa-secondary-opacity, 0.4);
575
+ }
576
+
577
+ .svg-inline--fa.fa-swap-opacity .fa-secondary {
578
+ opacity: var(--fa-primary-opacity, 1);
579
+ }
580
+
581
+ .svg-inline--fa mask .fa-primary,
582
+ .svg-inline--fa mask .fa-secondary {
583
+ fill: black;
584
+ }
585
+
586
+ .svg-inline--fa.fa-inverse {
587
+ fill: var(--fa-inverse, #fff);
588
+ }
589
+
590
+ .fa-stack {
591
+ display: inline-block;
592
+ height: 2em;
593
+ line-height: 2em;
594
+ position: relative;
595
+ vertical-align: middle;
596
+ width: 2.5em;
597
+ }
598
+
599
+ .fa-inverse {
600
+ color: var(--fa-inverse, #fff);
601
+ }
602
+
603
+ .svg-inline--fa.fa-stack-1x {
604
+ --fa-width: 1.25em;
605
+ height: 1em;
606
+ width: var(--fa-width);
607
+ }
608
+ .svg-inline--fa.fa-stack-2x {
609
+ --fa-width: 2.5em;
610
+ height: 2em;
611
+ width: var(--fa-width);
612
+ }
613
+
614
+ .fa-stack-1x,
615
+ .fa-stack-2x {
616
+ inset: 0;
617
+ margin: auto;
618
+ position: absolute;
619
+ z-index: var(--fa-stack-z-index, auto);
620
+ }`;function nP(){var e=$1,t=j1,n=He.cssPrefix,i=He.replacementClass,o=_j;if(n!==e||i!==t){var r=new RegExp("\\.".concat(e,"\\-"),"g"),s=new RegExp("\\--".concat(e,"\\-"),"g"),a=new RegExp("\\.".concat(t),"g");o=o.replace(r,".".concat(n,"-")).replace(s,"--".concat(n,"-")).replace(a,".".concat(i))}return o}var iP=!1;function eC(){He.autoAddCss&&!iP&&(Aj(nP()),iP=!0)}var Oj={mixout:function(){return{dom:{css:nP,insertCss:eC}}},hooks:function(){return{beforeDOMElementCreation:function(){eC()},beforeI2svg:function(){eC()}}}},ur=ns||{};ur[cr]||(ur[cr]={}),ur[cr].styles||(ur[cr].styles={}),ur[cr].hooks||(ur[cr].hooks={}),ur[cr].shims||(ur[cr].shims=[]);var lo=ur[cr],oP=[],rP=function(){Mt.removeEventListener("DOMContentLoaded",rP),zh=1,oP.map(function(t){return t()})},zh=!1;lr&&(zh=(Mt.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(Mt.readyState),zh||Mt.addEventListener("DOMContentLoaded",rP));function Nj(e){lr&&(zh?setTimeout(e,0):oP.push(e))}function $c(e){var t=e.tag,n=e.attributes,i=n===void 0?{}:n,o=e.children,r=o===void 0?[]:o;return typeof e=="string"?tP(e):"<".concat(t," ").concat(Mj(i),">").concat(r.map($c).join(""),"</").concat(t,">")}function sP(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}var tC=function(t,n,i,o){var r=Object.keys(t),s=r.length,a=n,l,u,h;for(i===void 0?(l=1,h=t[r[0]]):(l=0,h=i);l<s;l++)u=r[l],h=a(h,t[u],u,t);return h};function aP(e){return ao(e).length!==1?null:e.codePointAt(0).toString(16)}function lP(e){return Object.keys(e).reduce(function(t,n){var i=e[n],o=!!i.icon;return o?t[i.iconName]=i.icon:t[n]=i,t},{})}function nC(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=n.skipHooks,o=i===void 0?!1:i,r=lP(t);typeof lo.hooks.addPack=="function"&&!o?lo.hooks.addPack(e,lP(t)):lo.styles[e]=pe(pe({},lo.styles[e]||{}),r),e==="fas"&&nC("fa",t)}var jc=lo.styles,Bj=lo.shims,cP=Object.keys(Qv),Gj=cP.reduce(function(e,t){return e[t]=Object.keys(Qv[t]),e},{}),iC=null,uP={},dP={},hP={},fP={},pP={};function Hj(e){return~xj.indexOf(e)}function Vj(e,t){var n=t.split("-"),i=n[0],o=n.slice(1).join("-");return i===e&&o!==""&&!Hj(o)?o:null}var gP=function(){var t=function(r){return tC(jc,function(s,a,l){return s[l]=tC(a,r,{}),s},{})};uP=t(function(o,r,s){if(r[3]&&(o[r[3]]=s),r[2]){var a=r[2].filter(function(l){return typeof l=="number"});a.forEach(function(l){o[l.toString(16)]=s})}return o}),dP=t(function(o,r,s){if(o[s]=s,r[2]){var a=r[2].filter(function(l){return typeof l=="string"});a.forEach(function(l){o[l]=s})}return o}),pP=t(function(o,r,s){var a=r[2];return o[s]=s,a.forEach(function(l){o[l]=s}),o});var n="far"in jc||He.autoFetchSvg,i=tC(Bj,function(o,r){var s=r[0],a=r[1],l=r[2];return a==="far"&&!n&&(a="fas"),typeof s=="string"&&(o.names[s]={prefix:a,iconName:l}),typeof s=="number"&&(o.unicodes[s.toString(16)]={prefix:a,iconName:l}),o},{names:{},unicodes:{}});hP=i.names,fP=i.unicodes,iC=Uh(He.styleDefault,{family:He.familyDefault})};Tj(function(e){iC=Uh(e.styleDefault,{family:He.familyDefault})}),gP();function oC(e,t){return(uP[e]||{})[t]}function Wj(e,t){return(dP[e]||{})[t]}function Xs(e,t){return(pP[e]||{})[t]}function mP(e){return hP[e]||{prefix:null,iconName:null}}function zj(e){var t=fP[e],n=oC("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}function is(){return iC}var vP=function(){return{prefix:null,iconName:null,rest:[]}};function Uj(e){var t=yn,n=cP.reduce(function(i,o){return i[o]="".concat(He.cssPrefix,"-").concat(o),i},{});return G1.forEach(function(i){(e.includes(n[i])||e.some(function(o){return Gj[i].includes(o)}))&&(t=i)}),t}function Uh(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.family,i=n===void 0?yn:n,o=bj[i][e];if(i===Vc&&!e)return"fad";var r=Z1[i][e]||Z1[i][o],s=e in lo.styles?e:null,a=r||s||null;return a}function $j(e){var t=[],n=null;return e.forEach(function(i){var o=Vj(He.cssPrefix,i);o?n=o:i&&t.push(i)}),{iconName:n,rest:t}}function CP(e){return e.sort().filter(function(t,n,i){return i.indexOf(t)===n})}var wP=z1.concat(H1);function $h(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.skipLookups,i=n===void 0?!1:n,o=null,r=CP(e.filter(function(m){return wP.includes(m)})),s=CP(e.filter(function(m){return!wP.includes(m)})),a=r.filter(function(m){return o=m,!y1.includes(m)}),l=Bh(a,1),u=l[0],h=u===void 0?null:u,f=Uj(r),p=pe(pe({},$j(s)),{},{prefix:Uh(h,{family:f})});return pe(pe(pe({},p),Qj({values:e,family:f,styles:jc,config:He,canonical:p,givenPrefix:o})),jj(i,o,p))}function jj(e,t,n){var i=n.prefix,o=n.iconName;if(e||!i||!o)return{prefix:i,iconName:o};var r=t==="fa"?mP(o):{},s=Xs(i,o);return o=r.iconName||s||o,i=r.prefix||i,i==="far"&&!jc.far&&jc.fas&&!He.autoFetchSvg&&(i="fas"),{prefix:i,iconName:o}}var Kj=G1.filter(function(e){return e!==yn||e!==Vc}),qj=Object.keys(Wv).filter(function(e){return e!==yn}).map(function(e){return Object.keys(Wv[e])}).flat();function Qj(e){var t=e.values,n=e.family,i=e.canonical,o=e.givenPrefix,r=o===void 0?"":o,s=e.styles,a=s===void 0?{}:s,l=e.config,u=l===void 0?{}:l,h=n===Vc,f=t.includes("fa-duotone")||t.includes("fad"),p=u.familyDefault==="duotone",m=i.prefix==="fad"||i.prefix==="fa-duotone";if(!h&&(f||p||m)&&(i.prefix="fad"),(t.includes("fa-brands")||t.includes("fab"))&&(i.prefix="fab"),!i.prefix&&Kj.includes(n)){var v=Object.keys(a).find(function(b){return qj.includes(b)});if(v||u.autoFetchSvg){var w=u$.get(n).defaultShortPrefixId;i.prefix=w,i.iconName=Xs(i.prefix,i.iconName)||i.iconName}}return(i.prefix==="fa"||r==="fa")&&(i.prefix=is()||"fas"),i}var Yj=(function(){function e(){I9(this,e),this.definitions={}}return k9(e,[{key:"add",value:function(){for(var n=this,i=arguments.length,o=new Array(i),r=0;r<i;r++)o[r]=arguments[r];var s=o.reduce(this._pullDefinitions,{});Object.keys(s).forEach(function(a){n.definitions[a]=pe(pe({},n.definitions[a]||{}),s[a]),nC(a,s[a]);var l=Qv[yn][a];l&&nC(l,s[a]),gP()})}},{key:"reset",value:function(){this.definitions={}}},{key:"_pullDefinitions",value:function(n,i){var o=i.prefix&&i.iconName&&i.icon?{0:i}:i;return Object.keys(o).map(function(r){var s=o[r],a=s.prefix,l=s.iconName,u=s.icon,h=u[2];n[a]||(n[a]={}),h.length>0&&h.forEach(function(f){typeof f=="string"&&(n[a][f]=u)}),n[a][l]=u}),n}}])})(),bP=[],hl={},fl={},Zj=Object.keys(fl);function Xj(e,t){var n=t.mixoutsTo;return bP=e,hl={},Object.keys(fl).forEach(function(i){Zj.indexOf(i)===-1&&delete fl[i]}),bP.forEach(function(i){var o=i.mixout?i.mixout():{};if(Object.keys(o).forEach(function(s){typeof o[s]=="function"&&(n[s]=o[s]),Gh(o[s])==="object"&&Object.keys(o[s]).forEach(function(a){n[s]||(n[s]={}),n[s][a]=o[s][a]})}),i.hooks){var r=i.hooks();Object.keys(r).forEach(function(s){hl[s]||(hl[s]=[]),hl[s].push(r[s])})}i.provides&&i.provides(fl)}),n}function rC(e,t){for(var n=arguments.length,i=new Array(n>2?n-2:0),o=2;o<n;o++)i[o-2]=arguments[o];var r=hl[e]||[];return r.forEach(function(s){t=s.apply(null,[t].concat(i))}),t}function Js(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];var o=hl[e]||[];o.forEach(function(r){r.apply(null,n)})}function os(){var e=arguments[0],t=Array.prototype.slice.call(arguments,1);return fl[e]?fl[e].apply(null,t):void 0}function sC(e){e.prefix==="fa"&&(e.prefix="fas");var t=e.iconName,n=e.prefix||is();if(t)return t=Xs(n,t)||t,sP(yP.definitions,n,t)||sP(lo.styles,n,t)}var yP=new Yj,Jj=function(){He.autoReplaceSvg=!1,He.observeMutations=!1,Js("noAuto")},eK={i2svg:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return lr?(Js("beforeI2svg",t),os("pseudoElements2svg",t),os("i2svg",t)):Promise.reject(new Error("Operation requires a DOM of some kind."))},watch:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.autoReplaceSvgRoot;He.autoReplaceSvg===!1&&(He.autoReplaceSvg=!0),He.observeMutations=!0,Nj(function(){nK({autoReplaceSvgRoot:n}),Js("watch",t)})}},tK={icon:function(t){if(t===null)return null;if(Gh(t)==="object"&&t.prefix&&t.iconName)return{prefix:t.prefix,iconName:Xs(t.prefix,t.iconName)||t.iconName};if(Array.isArray(t)&&t.length===2){var n=t[1].indexOf("fa-")===0?t[1].slice(3):t[1],i=Uh(t[0]);return{prefix:i,iconName:Xs(i,n)||n}}if(typeof t=="string"&&(t.indexOf("".concat(He.cssPrefix,"-"))>-1||t.match(yj))){var o=$h(t.split(" "),{skipLookups:!0});return{prefix:o.prefix||is(),iconName:Xs(o.prefix,o.iconName)||o.iconName}}if(typeof t=="string"){var r=is();return{prefix:r,iconName:Xs(r,t)||t}}}},mi={noAuto:Jj,config:He,dom:eK,parse:tK,library:yP,findIconDefinition:sC,toHtml:$c},nK=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.autoReplaceSvgRoot,i=n===void 0?Mt:n;(Object.keys(lo.styles).length>0||He.autoFetchSvg)&&lr&&He.autoReplaceSvg&&mi.dom.i2svg({node:i})};function jh(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(function(i){return $c(i)})}}),Object.defineProperty(e,"node",{get:function(){if(lr){var i=Mt.createElement("div");return i.innerHTML=e.html,i.children}}}),e}function iK(e){var t=e.children,n=e.main,i=e.mask,o=e.attributes,r=e.styles,s=e.transform;if(Jv(s)&&n.found&&!i.found){var a=n.width,l=n.height,u={x:a/l/2,y:.5};o.style=Wh(pe(pe({},r),{},{"transform-origin":"".concat(u.x+s.x/16,"em ").concat(u.y+s.y/16,"em")}))}return[{tag:"svg",attributes:o,children:t}]}function oK(e){var t=e.prefix,n=e.iconName,i=e.children,o=e.attributes,r=e.symbol,s=r===!0?"".concat(t,"-").concat(He.cssPrefix,"-").concat(n):r;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:pe(pe({},o),{},{id:s}),children:i}]}]}function rK(e){var t=["aria-label","aria-labelledby","title","role"];return t.some(function(n){return n in e})}function aC(e){var t=e.icons,n=t.main,i=t.mask,o=e.prefix,r=e.iconName,s=e.transform,a=e.symbol,l=e.maskId,u=e.extra,h=e.watchable,f=h===void 0?!1:h,p=i.found?i:n,m=p.width,v=p.height,w=[He.replacementClass,r?"".concat(He.cssPrefix,"-").concat(r):""].filter(function(P){return u.classes.indexOf(P)===-1}).filter(function(P){return P!==""||!!P}).concat(u.classes).join(" "),b={children:[],attributes:pe(pe({},u.attributes),{},{"data-prefix":o,"data-icon":r,class:w,role:u.attributes.role||"img",viewBox:"0 0 ".concat(m," ").concat(v)})};!rK(u.attributes)&&!u.attributes["aria-hidden"]&&(b.attributes["aria-hidden"]="true"),f&&(b.attributes[Zs]="");var y=pe(pe({},b),{},{prefix:o,iconName:r,main:n,mask:i,maskId:l,transform:s,symbol:a,styles:pe({},u.styles)}),R=i.found&&n.found?os("generateAbstractMask",y)||{children:[],attributes:{}}:os("generateAbstractIcon",y)||{children:[],attributes:{}},S=R.children,x=R.attributes;return y.children=S,y.attributes=x,a?oK(y):iK(y)}function SP(e){var t=e.content,n=e.width,i=e.height,o=e.transform,r=e.extra,s=e.watchable,a=s===void 0?!1:s,l=pe(pe({},r.attributes),{},{class:r.classes.join(" ")});a&&(l[Zs]="");var u=pe({},r.styles);Jv(o)&&(u.transform=Lj({transform:o,width:n,height:i}),u["-webkit-transform"]=u.transform);var h=Wh(u);h.length>0&&(l.style=h);var f=[];return f.push({tag:"span",attributes:l,children:[t]}),f}function sK(e){var t=e.content,n=e.extra,i=pe(pe({},n.attributes),{},{class:n.classes.join(" ")}),o=Wh(n.styles);o.length>0&&(i.style=o);var r=[];return r.push({tag:"span",attributes:i,children:[t]}),r}var lC=lo.styles;function cC(e){var t=e[0],n=e[1],i=e.slice(4),o=Bh(i,1),r=o[0],s=null;return Array.isArray(r)?s={tag:"g",attributes:{class:"".concat(He.cssPrefix,"-").concat(Zv.GROUP)},children:[{tag:"path",attributes:{class:"".concat(He.cssPrefix,"-").concat(Zv.SECONDARY),fill:"currentColor",d:r[0]}},{tag:"path",attributes:{class:"".concat(He.cssPrefix,"-").concat(Zv.PRIMARY),fill:"currentColor",d:r[1]}}]}:s={tag:"path",attributes:{fill:"currentColor",d:r}},{found:!0,width:t,height:n,icon:s}}var aK={found:!1,width:512,height:512};function lK(e,t){!Q1&&!He.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}function uC(e,t){var n=t;return t==="fa"&&He.styleDefault!==null&&(t=is()),new Promise(function(i,o){if(n==="fa"){var r=mP(e)||{};e=r.iconName||e,t=r.prefix||t}if(e&&t&&lC[t]&&lC[t][e]){var s=lC[t][e];return i(cC(s))}lK(e,t),i(pe(pe({},aK),{},{icon:He.showMissingIcons&&e?os("missingIconAbstract")||{}:{}}))})}var RP=function(){},dC=He.measurePerformance&&Hh&&Hh.mark&&Hh.measure?Hh:{mark:RP,measure:RP},Kc='FA "7.2.0"',cK=function(t){return dC.mark("".concat(Kc," ").concat(t," begins")),function(){return FP(t)}},FP=function(t){dC.mark("".concat(Kc," ").concat(t," ends")),dC.measure("".concat(Kc," ").concat(t),"".concat(Kc," ").concat(t," begins"),"".concat(Kc," ").concat(t," ends"))},hC={begin:cK,end:FP},Kh=function(){};function xP(e){var t=e.getAttribute?e.getAttribute(Zs):null;return typeof t=="string"}function uK(e){var t=e.getAttribute?e.getAttribute($v):null,n=e.getAttribute?e.getAttribute(jv):null;return t&&n}function dK(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(He.replacementClass)}function hK(){if(He.autoReplaceSvg===!0)return qh.replace;var e=qh[He.autoReplaceSvg];return e||qh.replace}function fK(e){return Mt.createElementNS("http://www.w3.org/2000/svg",e)}function pK(e){return Mt.createElement(e)}function PP(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.ceFn,i=n===void 0?e.tag==="svg"?fK:pK:n;if(typeof e=="string")return Mt.createTextNode(e);var o=i(e.tag);Object.keys(e.attributes||[]).forEach(function(s){o.setAttribute(s,e.attributes[s])});var r=e.children||[];return r.forEach(function(s){o.appendChild(PP(s,{ceFn:i}))}),o}function gK(e){var t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}var qh={replace:function(t){var n=t[0];if(n.parentNode)if(t[1].forEach(function(o){n.parentNode.insertBefore(PP(o),n)}),n.getAttribute(Zs)===null&&He.keepOriginalSource){var i=Mt.createComment(gK(n));n.parentNode.replaceChild(i,n)}else n.remove()},nest:function(t){var n=t[0],i=t[1];if(~Xv(n).indexOf(He.replacementClass))return qh.replace(t);var o=new RegExp("".concat(He.cssPrefix,"-.*"));if(delete i[0].attributes.id,i[0].attributes.class){var r=i[0].attributes.class.split(" ").reduce(function(a,l){return l===He.replacementClass||l.match(o)?a.toSvg.push(l):a.toNode.push(l),a},{toNode:[],toSvg:[]});i[0].attributes.class=r.toSvg.join(" "),r.toNode.length===0?n.removeAttribute("class"):n.setAttribute("class",r.toNode.join(" "))}var s=i.map(function(a){return $c(a)}).join(`
621
+ `);n.setAttribute(Zs,""),n.innerHTML=s}};function EP(e){e()}function DP(e,t){var n=typeof t=="function"?t:Kh;if(e.length===0)n();else{var i=EP;He.mutateApproach===Cj&&(i=ns.requestAnimationFrame||EP),i(function(){var o=hK(),r=hC.begin("mutate");e.map(o),r(),n()})}}var fC=!1;function TP(){fC=!0}function pC(){fC=!1}var Qh=null;function AP(e){if(C1&&He.observeMutations){var t=e.treeCallback,n=t===void 0?Kh:t,i=e.nodeCallback,o=i===void 0?Kh:i,r=e.pseudoElementsCallback,s=r===void 0?Kh:r,a=e.observeMutationsRoot,l=a===void 0?Mt:a;Qh=new C1(function(u){if(!fC){var h=is();dl(u).forEach(function(f){if(f.type==="childList"&&f.addedNodes.length>0&&!xP(f.addedNodes[0])&&(He.searchPseudoElements&&s(f.target),n(f.target)),f.type==="attributes"&&f.target.parentNode&&He.searchPseudoElements&&s([f.target],!0),f.type==="attributes"&&xP(f.target)&&~Fj.indexOf(f.attributeName))if(f.attributeName==="class"&&uK(f.target)){var p=$h(Xv(f.target)),m=p.prefix,v=p.iconName;f.target.setAttribute($v,m||h),v&&f.target.setAttribute(jv,v)}else dK(f.target)&&o(f.target)})}}),lr&&Qh.observe(l,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function mK(){Qh&&Qh.disconnect()}function vK(e){var t=e.getAttribute("style"),n=[];return t&&(n=t.split(";").reduce(function(i,o){var r=o.split(":"),s=r[0],a=r.slice(1);return s&&a.length>0&&(i[s]=a.join(":").trim()),i},{})),n}function CK(e){var t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),i=e.innerText!==void 0?e.innerText.trim():"",o=$h(Xv(e));return o.prefix||(o.prefix=is()),t&&n&&(o.prefix=t,o.iconName=n),o.iconName&&o.prefix||(o.prefix&&i.length>0&&(o.iconName=Wj(o.prefix,e.innerText)||oC(o.prefix,aP(e.innerText))),!o.iconName&&He.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(o.iconName=e.firstChild.data)),o}function wK(e){var t=dl(e.attributes).reduce(function(n,i){return n.name!=="class"&&n.name!=="style"&&(n[i.name]=i.value),n},{});return t}function bK(){return{iconName:null,prefix:null,transform:_o,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function IP(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0},n=CK(e),i=n.iconName,o=n.prefix,r=n.rest,s=wK(e),a=rC("parseNodeAttributes",{},e),l=t.styleParser?vK(e):[];return pe({iconName:i,prefix:o,transform:_o,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:r,styles:l,attributes:s}},a)}var yK=lo.styles;function MP(e){var t=He.autoReplaceSvg==="nest"?IP(e,{styleParser:!1}):IP(e);return~t.extra.classes.indexOf(X1)?os("generateLayersText",e,t):os("generateSvgReplacementMutation",e,t)}function SK(){return[].concat(ao(H1),ao(z1))}function kP(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!lr)return Promise.resolve();var n=Mt.documentElement.classList,i=function(f){return n.add("".concat(K1,"-").concat(f))},o=function(f){return n.remove("".concat(K1,"-").concat(f))},r=He.autoFetchSvg?SK():y1.concat(Object.keys(yK));r.includes("fa")||r.push("fa");var s=[".".concat(X1,":not([").concat(Zs,"])")].concat(r.map(function(h){return".".concat(h,":not([").concat(Zs,"])")})).join(", ");if(s.length===0)return Promise.resolve();var a=[];try{a=dl(e.querySelectorAll(s))}catch{}if(a.length>0)i("pending"),o("complete");else return Promise.resolve();var l=hC.begin("onTree"),u=a.reduce(function(h,f){try{var p=MP(f);p&&h.push(p)}catch(m){Q1||m.name==="MissingIcon"&&console.error(m)}return h},[]);return new Promise(function(h,f){Promise.all(u).then(function(p){DP(p,function(){i("active"),i("complete"),o("pending"),typeof t=="function"&&t(),l(),h()})}).catch(function(p){l(),f(p)})})}function RK(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;MP(e).then(function(n){n&&DP([n],t)})}function FK(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=(t||{}).icon?t:sC(t||{}),o=n.mask;return o&&(o=(o||{}).icon?o:sC(o||{})),e(i,pe(pe({},n),{},{mask:o}))}}var xK=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=n.transform,o=i===void 0?_o:i,r=n.symbol,s=r===void 0?!1:r,a=n.mask,l=a===void 0?null:a,u=n.maskId,h=u===void 0?null:u,f=n.classes,p=f===void 0?[]:f,m=n.attributes,v=m===void 0?{}:m,w=n.styles,b=w===void 0?{}:w;if(t){var y=t.prefix,R=t.iconName,S=t.icon;return jh(pe({type:"icon"},t),function(){return Js("beforeDOMElementCreation",{iconDefinition:t,params:n}),aC({icons:{main:cC(S),mask:l?cC(l.icon):{found:!1,width:null,height:null,icon:{}}},prefix:y,iconName:R,transform:pe(pe({},_o),o),symbol:s,maskId:h,extra:{attributes:v,styles:b,classes:p}})})}},PK={mixout:function(){return{icon:FK(xK)}},hooks:function(){return{mutationObserverCallbacks:function(n){return n.treeCallback=kP,n.nodeCallback=RK,n}}},provides:function(t){t.i2svg=function(n){var i=n.node,o=i===void 0?Mt:i,r=n.callback,s=r===void 0?function(){}:r;return kP(o,s)},t.generateSvgReplacementMutation=function(n,i){var o=i.iconName,r=i.prefix,s=i.transform,a=i.symbol,l=i.mask,u=i.maskId,h=i.extra;return new Promise(function(f,p){Promise.all([uC(o,r),l.iconName?uC(l.iconName,l.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(m){var v=Bh(m,2),w=v[0],b=v[1];f([n,aC({icons:{main:w,mask:b},prefix:r,iconName:o,transform:s,symbol:a,maskId:u,extra:h,watchable:!0})])}).catch(p)})},t.generateAbstractIcon=function(n){var i=n.children,o=n.attributes,r=n.main,s=n.transform,a=n.styles,l=Wh(a);l.length>0&&(o.style=l);var u;return Jv(s)&&(u=os("generateAbstractTransformGrouping",{main:r,transform:s,containerWidth:r.width,iconWidth:r.width})),i.push(u||r.icon),{children:i,attributes:o}}}},EK={mixout:function(){return{layer:function(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=i.classes,r=o===void 0?[]:o;return jh({type:"layer"},function(){Js("beforeDOMElementCreation",{assembler:n,params:i});var s=[];return n(function(a){Array.isArray(a)?a.map(function(l){s=s.concat(l.abstract)}):s=s.concat(a.abstract)}),[{tag:"span",attributes:{class:["".concat(He.cssPrefix,"-layers")].concat(ao(r)).join(" ")},children:s}]})}}}},DK={mixout:function(){return{counter:function(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};i.title;var o=i.classes,r=o===void 0?[]:o,s=i.attributes,a=s===void 0?{}:s,l=i.styles,u=l===void 0?{}:l;return jh({type:"counter",content:n},function(){return Js("beforeDOMElementCreation",{content:n,params:i}),sK({content:n.toString(),extra:{attributes:a,styles:u,classes:["".concat(He.cssPrefix,"-layers-counter")].concat(ao(r))}})})}}}},TK={mixout:function(){return{text:function(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=i.transform,r=o===void 0?_o:o,s=i.classes,a=s===void 0?[]:s,l=i.attributes,u=l===void 0?{}:l,h=i.styles,f=h===void 0?{}:h;return jh({type:"text",content:n},function(){return Js("beforeDOMElementCreation",{content:n,params:i}),SP({content:n,transform:pe(pe({},_o),r),extra:{attributes:u,styles:f,classes:["".concat(He.cssPrefix,"-layers-text")].concat(ao(a))}})})}}},provides:function(t){t.generateLayersText=function(n,i){var o=i.transform,r=i.extra,s=null,a=null;if(w1){var l=parseInt(getComputedStyle(n).fontSize,10),u=n.getBoundingClientRect();s=u.width/l,a=u.height/l}return Promise.resolve([n,SP({content:n.innerHTML,width:s,height:a,transform:o,extra:r,watchable:!0})])}}},LP=new RegExp('"',"ug"),_P=[1105920,1112319],OP=pe(pe(pe(pe({},{FontAwesome:{normal:"fas",400:"fas"}}),c$),mj),C$),gC=Object.keys(OP).reduce(function(e,t){return e[t.toLowerCase()]=OP[t],e},{}),AK=Object.keys(gC).reduce(function(e,t){var n=gC[t];return e[t]=n[900]||ao(Object.entries(n))[0][1],e},{});function IK(e){var t=e.replace(LP,"");return aP(ao(t)[0]||"")}function MK(e){var t=e.getPropertyValue("font-feature-settings").includes("ss01"),n=e.getPropertyValue("content"),i=n.replace(LP,""),o=i.codePointAt(0),r=o>=_P[0]&&o<=_P[1],s=i.length===2?i[0]===i[1]:!1;return r||s||t}function kK(e,t){var n=e.replace(/^['"]|['"]$/g,"").toLowerCase(),i=parseInt(t),o=isNaN(i)?"normal":i;return(gC[n]||{})[o]||AK[n]}function NP(e,t){var n="".concat(vj).concat(t.replace(":","-"));return new Promise(function(i,o){if(e.getAttribute(n)!==null)return i();var r=dl(e.children),s=r.filter(function(D){return D.getAttribute(Uv)===t})[0],a=ns.getComputedStyle(e,t),l=a.getPropertyValue("font-family"),u=l.match(Sj),h=a.getPropertyValue("font-weight"),f=a.getPropertyValue("content");if(s&&!u)return e.removeChild(s),i();if(u&&f!=="none"&&f!==""){var p=a.getPropertyValue("content"),m=kK(l,h),v=IK(p),w=u[0].startsWith("FontAwesome"),b=MK(a),y=oC(m,v),R=y;if(w){var S=zj(v);S.iconName&&S.prefix&&(y=S.iconName,m=S.prefix)}if(y&&!b&&(!s||s.getAttribute($v)!==m||s.getAttribute(jv)!==R)){e.setAttribute(n,R),s&&e.removeChild(s);var x=bK(),P=x.extra;P.attributes[Uv]=t,uC(y,m).then(function(D){var A=aC(pe(pe({},x),{},{icons:{main:D,mask:vP()},prefix:m,iconName:R,extra:P,watchable:!0})),N=Mt.createElementNS("http://www.w3.org/2000/svg","svg");t==="::before"?e.insertBefore(N,e.firstChild):e.appendChild(N),N.outerHTML=A.map(function(B){return $c(B)}).join(`
622
+ `),e.removeAttribute(n),i()}).catch(o)}else i()}else i()})}function LK(e){return Promise.all([NP(e,"::before"),NP(e,"::after")])}function _K(e){return e.parentNode!==document.head&&!~wj.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(Uv)&&(!e.parentNode||e.parentNode.tagName!=="svg")}var OK=function(t){return!!t&&q1.some(function(n){return t.includes(n)})},NK=function(t){if(!t)return[];var n=new Set,i=t.split(/,(?![^()]*\))/).map(function(l){return l.trim()});i=i.flatMap(function(l){return l.includes("(")?l:l.split(",").map(function(u){return u.trim()})});var o=Nh(i),r;try{for(o.s();!(r=o.n()).done;){var s=r.value;if(OK(s)){var a=q1.reduce(function(l,u){return l.replace(u,"")},s);a!==""&&a!=="*"&&n.add(a)}}}catch(l){o.e(l)}finally{o.f()}return n};function BP(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(lr){var n;if(t)n=e;else if(He.searchPseudoElementsFullScan)n=e.querySelectorAll("*");else{var i=new Set,o=Nh(document.styleSheets),r;try{for(o.s();!(r=o.n()).done;){var s=r.value;try{var a=Nh(s.cssRules),l;try{for(a.s();!(l=a.n()).done;){var u=l.value,h=NK(u.selectorText),f=Nh(h),p;try{for(f.s();!(p=f.n()).done;){var m=p.value;i.add(m)}}catch(w){f.e(w)}finally{f.f()}}}catch(w){a.e(w)}finally{a.f()}}catch(w){He.searchPseudoElementsWarnings&&console.warn("Font Awesome: cannot parse stylesheet: ".concat(s.href," (").concat(w.message,`)
623
+ If it declares any Font Awesome CSS pseudo-elements, they will not be rendered as SVG icons. Add crossorigin="anonymous" to the <link>, enable searchPseudoElementsFullScan for slower but more thorough DOM parsing, or suppress this warning by setting searchPseudoElementsWarnings to false.`))}}}catch(w){o.e(w)}finally{o.f()}if(!i.size)return;var v=Array.from(i).join(", ");try{n=e.querySelectorAll(v)}catch{}}return new Promise(function(w,b){var y=dl(n).filter(_K).map(LK),R=hC.begin("searchPseudoElements");TP(),Promise.all(y).then(function(){R(),pC(),w()}).catch(function(){R(),pC(),b()})})}}var BK={hooks:function(){return{mutationObserverCallbacks:function(n){return n.pseudoElementsCallback=BP,n}}},provides:function(t){t.pseudoElements2svg=function(n){var i=n.node,o=i===void 0?Mt:i;He.searchPseudoElements&&BP(o)}}},GP=!1,GK={mixout:function(){return{dom:{unwatch:function(){TP(),GP=!0}}}},hooks:function(){return{bootstrap:function(){AP(rC("mutationObserverCallbacks",{}))},noAuto:function(){mK()},watch:function(n){var i=n.observeMutationsRoot;GP?pC():AP(rC("mutationObserverCallbacks",{observeMutationsRoot:i}))}}}},HP=function(t){var n={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return t.toLowerCase().split(" ").reduce(function(i,o){var r=o.toLowerCase().split("-"),s=r[0],a=r.slice(1).join("-");if(s&&a==="h")return i.flipX=!0,i;if(s&&a==="v")return i.flipY=!0,i;if(a=parseFloat(a),isNaN(a))return i;switch(s){case"grow":i.size=i.size+a;break;case"shrink":i.size=i.size-a;break;case"left":i.x=i.x-a;break;case"right":i.x=i.x+a;break;case"up":i.y=i.y-a;break;case"down":i.y=i.y+a;break;case"rotate":i.rotate=i.rotate+a;break}return i},n)},HK={mixout:function(){return{parse:{transform:function(n){return HP(n)}}}},hooks:function(){return{parseNodeAttributes:function(n,i){var o=i.getAttribute("data-fa-transform");return o&&(n.transform=HP(o)),n}}},provides:function(t){t.generateAbstractTransformGrouping=function(n){var i=n.main,o=n.transform,r=n.containerWidth,s=n.iconWidth,a={transform:"translate(".concat(r/2," 256)")},l="translate(".concat(o.x*32,", ").concat(o.y*32,") "),u="scale(".concat(o.size/16*(o.flipX?-1:1),", ").concat(o.size/16*(o.flipY?-1:1),") "),h="rotate(".concat(o.rotate," 0 0)"),f={transform:"".concat(l," ").concat(u," ").concat(h)},p={transform:"translate(".concat(s/2*-1," -256)")},m={outer:a,inner:f,path:p};return{tag:"g",attributes:pe({},m.outer),children:[{tag:"g",attributes:pe({},m.inner),children:[{tag:i.icon.tag,children:i.icon.children,attributes:pe(pe({},i.icon.attributes),m.path)}]}]}}}},mC={x:0,y:0,width:"100%",height:"100%"};function VP(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}function VK(e){return e.tag==="g"?e.children:[e]}var WK={hooks:function(){return{parseNodeAttributes:function(n,i){var o=i.getAttribute("data-fa-mask"),r=o?$h(o.split(" ").map(function(s){return s.trim()})):vP();return r.prefix||(r.prefix=is()),n.mask=r,n.maskId=i.getAttribute("data-fa-mask-id"),n}}},provides:function(t){t.generateAbstractMask=function(n){var i=n.children,o=n.attributes,r=n.main,s=n.mask,a=n.maskId,l=n.transform,u=r.width,h=r.icon,f=s.width,p=s.icon,m=kj({transform:l,containerWidth:f,iconWidth:u}),v={tag:"rect",attributes:pe(pe({},mC),{},{fill:"white"})},w=h.children?{children:h.children.map(VP)}:{},b={tag:"g",attributes:pe({},m.inner),children:[VP(pe({tag:h.tag,attributes:pe(pe({},h.attributes),m.path)},w))]},y={tag:"g",attributes:pe({},m.outer),children:[b]},R="mask-".concat(a||eP()),S="clip-".concat(a||eP()),x={tag:"mask",attributes:pe(pe({},mC),{},{id:R,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[v,y]},P={tag:"defs",children:[{tag:"clipPath",attributes:{id:S},children:VK(p)},x]};return i.push(P,{tag:"rect",attributes:pe({fill:"currentColor","clip-path":"url(#".concat(S,")"),mask:"url(#".concat(R,")")},mC)}),{children:i,attributes:o}}}},zK={provides:function(t){var n=!1;ns.matchMedia&&(n=ns.matchMedia("(prefers-reduced-motion: reduce)").matches),t.missingIconAbstract=function(){var i=[],o={fill:"currentColor"},r={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};i.push({tag:"path",attributes:pe(pe({},o),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});var s=pe(pe({},r),{},{attributeName:"opacity"}),a={tag:"circle",attributes:pe(pe({},o),{},{cx:"256",cy:"364",r:"28"}),children:[]};return n||a.children.push({tag:"animate",attributes:pe(pe({},r),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:pe(pe({},s),{},{values:"1;0;1;1;0;1;"})}),i.push(a),i.push({tag:"path",attributes:pe(pe({},o),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:n?[]:[{tag:"animate",attributes:pe(pe({},s),{},{values:"1;0;0;0;0;1;"})}]}),n||i.push({tag:"path",attributes:pe(pe({},o),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:pe(pe({},s),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:i}}}},UK={hooks:function(){return{parseNodeAttributes:function(n,i){var o=i.getAttribute("data-fa-symbol"),r=o===null?!1:o===""?!0:o;return n.symbol=r,n}}}},$K=[Oj,PK,EK,DK,TK,BK,GK,HK,WK,zK,UK];Xj($K,{mixoutsTo:mi}),mi.noAuto,mi.config;var qc=mi.library;mi.dom;var vC=mi.parse;mi.findIconDefinition,mi.toHtml;var jK=mi.icon;mi.layer,mi.text,mi.counter;var KK={prefix:"fas",iconName:"file-excel",icon:[384,512,[],"f1c3","M0 64C0 28.7 28.7 0 64 0L213.5 0c17 0 33.3 6.7 45.3 18.7L365.3 125.3c12 12 18.7 28.3 18.7 45.3L384 448c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 64zm208-5.5l0 93.5c0 13.3 10.7 24 24 24L325.5 176 208 58.5zM164 266.7c-7.4-11-22.3-14-33.3-6.7s-14 22.3-6.7 33.3L163.2 352 124 410.7c-7.4 11-4.4 25.9 6.7 33.3s25.9 4.4 33.3-6.7l28-42 28 42c7.4 11 22.3 14 33.3 6.7s14-22.3 6.7-33.3L220.8 352 260 293.3c7.4-11 4.4-25.9-6.7-33.3s-25.9-4.4-33.3 6.7l-28 42-28-42z"]},qK={prefix:"fas",iconName:"ellipsis",icon:[448,512,["ellipsis-h"],"f141","M0 256a56 56 0 1 1 112 0 56 56 0 1 1 -112 0zm168 0a56 56 0 1 1 112 0 56 56 0 1 1 -112 0zm224-56a56 56 0 1 1 0 112 56 56 0 1 1 0-112z"]},QK=qK,YK={prefix:"fas",iconName:"table-columns",icon:[448,512,["columns"],"f0db","M0 96C0 60.7 28.7 32 64 32l320 0c35.3 0 64 28.7 64 64l0 320c0 35.3-28.7 64-64 64L64 480c-35.3 0-64-28.7-64-64L0 96zm64 64l0 256 128 0 0-256-128 0zm320 0l-128 0 0 256 128 0 0-256z"]},ZK=YK,XK={prefix:"fas",iconName:"xmark",icon:[384,512,[128473,10005,10006,10060,215,"close","multiply","remove","times"],"f00d","M55.1 73.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L147.2 256 9.9 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192.5 301.3 329.9 438.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.8 256 375.1 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192.5 210.7 55.1 73.4z"]},JK={prefix:"fas",iconName:"file-pdf",icon:[576,512,[],"f1c1","M96 0C60.7 0 32 28.7 32 64l0 384c0 35.3 28.7 64 64 64l80 0 0-112c0-35.3 28.7-64 64-64l176 0 0-165.5c0-17-6.7-33.3-18.7-45.3L290.7 18.7C278.7 6.7 262.5 0 245.5 0L96 0zM357.5 176L264 176c-13.3 0-24-10.7-24-24L240 58.5 357.5 176zM240 380c-11 0-20 9-20 20l0 128c0 11 9 20 20 20s20-9 20-20l0-28 12 0c33.1 0 60-26.9 60-60s-26.9-60-60-60l-32 0zm32 80l-12 0 0-40 12 0c11 0 20 9 20 20s-9 20-20 20zm96-80c-11 0-20 9-20 20l0 128c0 11 9 20 20 20l32 0c28.7 0 52-23.3 52-52l0-64c0-28.7-23.3-52-52-52l-32 0zm20 128l0-88 12 0c6.6 0 12 5.4 12 12l0 64c0 6.6-5.4 12-12 12l-12 0zm88-108l0 128c0 11 9 20 20 20s20-9 20-20l0-44 28 0c11 0 20-9 20-20s-9-20-20-20l-28 0 0-24 28 0c11 0 20-9 20-20s-9-20-20-20l-48 0c-11 0-20 9-20 20z"]};function CC(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function eq(e){if(Array.isArray(e))return CC(e)}function On(e,t,n){return(t=sq(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tq(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function nq(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
624
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function WP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,i)}return n}function Bt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?WP(Object(n),!0).forEach(function(i){On(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):WP(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function wC(e,t){if(e==null)return{};var n,i,o=iq(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(i=0;i<r.length;i++)n=r[i],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function iq(e,t){if(e==null)return{};var n={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.indexOf(i)!==-1)continue;n[i]=e[i]}return n}function oq(e){return eq(e)||tq(e)||aq(e)||nq()}function rq(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t);if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function sq(e){var t=rq(e,"string");return typeof t=="symbol"?t:t+""}function Yh(e){"@babel/helpers - typeof";return Yh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Yh(e)}function aq(e,t){if(e){if(typeof e=="string")return CC(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?CC(e,t):void 0}}function bC(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?On({},e,t):{}}function lq(e){var t,n=(t={"fa-spin":e.spin,"fa-pulse":e.pulse,"fa-fw":e.fixedWidth,"fa-border":e.border,"fa-li":e.listItem,"fa-inverse":e.inverse,"fa-flip":e.flip===!0,"fa-flip-horizontal":e.flip==="horizontal"||e.flip==="both","fa-flip-vertical":e.flip==="vertical"||e.flip==="both"},On(On(On(On(On(On(On(On(On(On(t,"fa-".concat(e.size),e.size!==null),"fa-rotate-".concat(e.rotation),e.rotation!==null),"fa-rotate-by",e.rotateBy),"fa-pull-".concat(e.pull),e.pull!==null),"fa-swap-opacity",e.swapOpacity),"fa-bounce",e.bounce),"fa-shake",e.shake),"fa-beat",e.beat),"fa-fade",e.fade),"fa-beat-fade",e.beatFade),On(On(On(On(t,"fa-flash",e.flash),"fa-spin-pulse",e.spinPulse),"fa-spin-reverse",e.spinReverse),"fa-width-auto",e.widthAuto));return Object.keys(n).map(function(i){return n[i]?i:null}).filter(function(i){return i})}var cq=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},zP={exports:{}};(function(e){(function(t){var n=function(y,R,S){if(!u(R)||f(R)||p(R)||m(R)||l(R))return R;var x,P=0,D=0;if(h(R))for(x=[],D=R.length;P<D;P++)x.push(n(y,R[P],S));else{x={};for(var A in R)Object.prototype.hasOwnProperty.call(R,A)&&(x[y(A,S)]=n(y,R[A],S))}return x},i=function(y,R){R=R||{};var S=R.separator||"_",x=R.split||/(?=[A-Z])/;return y.split(x).join(S)},o=function(y){return v(y)?y:(y=y.replace(/[\-_\s]+(.)?/g,function(R,S){return S?S.toUpperCase():""}),y.substr(0,1).toLowerCase()+y.substr(1))},r=function(y){var R=o(y);return R.substr(0,1).toUpperCase()+R.substr(1)},s=function(y,R){return i(y,R).toLowerCase()},a=Object.prototype.toString,l=function(y){return typeof y=="function"},u=function(y){return y===Object(y)},h=function(y){return a.call(y)=="[object Array]"},f=function(y){return a.call(y)=="[object Date]"},p=function(y){return a.call(y)=="[object RegExp]"},m=function(y){return a.call(y)=="[object Boolean]"},v=function(y){return y=y-0,y===y},w=function(y,R){var S=R&&"process"in R?R.process:R;return typeof S!="function"?y:function(x,P){return S(x,y,P)}},b={camelize:o,decamelize:s,pascalize:r,depascalize:s,camelizeKeys:function(y,R){return n(w(o,R),y)},decamelizeKeys:function(y,R){return n(w(s,R),y,R)},pascalizeKeys:function(y,R){return n(w(r,R),y)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};e.exports?e.exports=b:t.humps=b})(cq)})(zP);var uq=zP.exports,dq=["gradientFill"],hq=["class","style"],fq=["type","stops","id"];function pq(e){return e.split(";").map(function(t){return t.trim()}).filter(function(t){return t}).reduce(function(t,n){var i=n.indexOf(":"),o=uq.camelize(n.slice(0,i)),r=n.slice(i+1).trim();return t[o]=r,t},{})}function gq(e){return e.split(/\s+/).reduce(function(t,n){return t[n]=!0,t},{})}function mq(e,t){return Jl("stop",Bt({key:"".concat(t,"-").concat(e.offset),offset:e.offset,"stop-color":e.color},e.opacity!==void 0&&{"stop-opacity":e.opacity}))}function UP(e){if(typeof e=="string")return e;var t=(e.children||[]).map(UP);return e.tag==="path"&&e.attributes&&"fill"in e.attributes?Bt(Bt({},e),{},{attributes:Bt(Bt({},e.attributes),{},{fill:void 0}),children:t}):Bt(Bt({},e),{},{children:t})}function $P(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(typeof e=="string")return e;var i=t.gradientFill,o=i===void 0?null:i,r=wC(t,dq),s=!!o||"fill"in n,a=s?UP(e):e,l=(a.children||[]).map(function(x){return $P(x,{},{})}),u=Object.keys(a.attributes||{}).reduce(function(x,P){var D=a.attributes[P];switch(P){case"class":x.class=gq(D);break;case"style":x.style=pq(D);break;default:x.attrs[P]=D}return x},{attrs:{},class:{},style:{}});n.class;var h=n.style,f=h===void 0?{}:h,p=wC(n,hq);if(o&&o.id&&(o.type==="linear"||o.type==="radial")){var m=o.type,v=o.stops,w=v===void 0?[]:v,b=o.id,y=wC(o,fq),R=m==="linear"?"linearGradient":"radialGradient",S=Jl(R,Bt(Bt({},y),{},{id:b}),w.map(mq));return Jl(a.tag,Bt(Bt(Bt(Bt({},r),{},{class:u.class,style:Bt(Bt({},u.style),f)},u.attrs),p),{},{fill:"url(#".concat(b,")")}),[S].concat(oq(l)))}return Jl(e.tag,Bt(Bt(Bt({},r),{},{class:u.class,style:Bt(Bt({},u.style),f)},u.attrs),p),l)}var jP=!1;try{jP=!0}catch{}function KP(){if(!jP&&console&&typeof console.error=="function"){var e;(e=console).error.apply(e,arguments)}}function qP(e){if(e&&Yh(e)==="object"&&e.prefix&&e.iconName&&e.icon)return e;if(vC.icon)return vC.icon(e);if(e===null)return null;if(Yh(e)==="object"&&e.prefix&&e.iconName)return e;if(Array.isArray(e)&&e.length===2)return{prefix:e[0],iconName:e[1]};if(typeof e=="string")return{prefix:"fas",iconName:e}}var yC=xt({name:"FontAwesomeIcon",props:{border:{type:Boolean,default:!1},fixedWidth:{type:Boolean,default:!1},flip:{type:[Boolean,String],default:!1,validator:function(t){return[!0,!1,"horizontal","vertical","both"].indexOf(t)>-1}},icon:{type:[Object,Array,String],required:!0},mask:{type:[Object,Array,String],default:null},maskId:{type:String,default:null},listItem:{type:Boolean,default:!1},pull:{type:String,default:null,validator:function(t){return["right","left"].indexOf(t)>-1}},pulse:{type:Boolean,default:!1},rotation:{type:[String,Number],default:null,validator:function(t){return[90,180,270].indexOf(Number.parseInt(t,10))>-1}},rotateBy:{type:Boolean,default:!1},swapOpacity:{type:Boolean,default:!1},size:{type:String,default:null,validator:function(t){return["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"].indexOf(t)>-1}},spin:{type:Boolean,default:!1},transform:{type:[String,Object],default:null},symbol:{type:[Boolean,String],default:!1},title:{type:String,default:null},titleId:{type:String,default:null},inverse:{type:Boolean,default:!1},bounce:{type:Boolean,default:!1},shake:{type:Boolean,default:!1},beat:{type:Boolean,default:!1},fade:{type:Boolean,default:!1},beatFade:{type:Boolean,default:!1},flash:{type:Boolean,default:!1},spinPulse:{type:Boolean,default:!1},spinReverse:{type:Boolean,default:!1},widthAuto:{type:Boolean,default:!1},gradientFill:{type:Object,default:null,validator:function(t){return typeof t.id!="string"||!t.id?(console.warn("FontAwesomeIcon: gradientFill.id must be a non-empty string"),!1):t.type!=="linear"&&t.type!=="radial"?(console.warn('FontAwesomeIcon: gradientFill.type must be "linear" or "radial"'),!1):!0}}},setup:function(t,n){var i=n.attrs,o=Re(function(){return qP(t.icon)}),r=Re(function(){return bC("classes",lq(t))}),s=Re(function(){return bC("transform",typeof t.transform=="string"?vC.transform(t.transform):t.transform)}),a=Re(function(){return bC("mask",qP(t.mask))}),l=Re(function(){var h=Bt(Bt(Bt(Bt({},r.value),s.value),a.value),{},{symbol:t.symbol,maskId:t.maskId});return h.title=t.title,h.titleId=t.titleId,jK(o.value,h)});vn(l,function(h){if(!h)return KP("Could not find one or more icon(s)",o.value,a.value)},{immediate:!0}),t.gradientFill&&t.symbol&&KP("gradientFill is not supported when symbol is true and will be ignored");var u=Re(function(){return l.value?$P(l.value.abstract[0],{gradientFill:t.symbol?null:t.gradientFill},i):null});return function(){return u.value}}});function vq(){let e=null,t=null;return{clear(){e=null,t=null},notify(){let n=e;for(;n;)n.callback(),n=n.next},get(){const n=[];let i=e;for(;i;)n.push(i),i=i.next;return n},subscribe(n){let i=!0;const o=t={callback:n,next:null,prev:t};return o.prev?o.prev.next=o:e=o,function(){!i||e===null||(i=!1,o.next?o.next.prev=o.prev:t=o.prev,o.prev?o.prev.next=o.next:e=o.next)}}}}const QP={notify(){},get:()=>[]};function Cq(e,t){let n,i=QP,o=0,r=!1;function s(w){h();const b=i.subscribe(w);let y=!1;return()=>{y||(y=!0,b(),f())}}function a(){i.notify()}function l(){v.onStateChange&&v.onStateChange()}function u(){return r}function h(){o++,n||(n=e.subscribe(l),i=vq())}function f(){o--,n&&o===0&&(n(),n=void 0,i.clear(),i=QP)}function p(){r||(r=!0,h())}function m(){r&&(r=!1,f())}const v={addNestedSub:s,notifyNestedSubs:a,handleChangeWrapper:l,isSubscribed:u,trySubscribe:p,tryUnsubscribe:m,getListeners:()=>i};return v}const rs=Symbol.for("vue-redux-context");function wq({store:e}){const t=Cq(e);return t.onStateChange=t.notifyNestedSubs,t.trySubscribe(),{store:e,subscription:t}}function SC(e,{store:t,context:n}){const i=wq({store:t}),o=n||rs;e.provide(o,i)}function RC(e=rs){return function(){return Hl(e)}}const YP=RC();function ZP(e=rs){const t=e===rs?YP:RC(e),n=()=>{const{store:i}=t();return i};return Object.assign(n,{withTypes:()=>n}),n}const bq=ZP();function yq(e=rs){const t=e===rs?bq:ZP(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}const Sq=yq();function Rq(e,t){let n=e;return{untrackedValue:{get(){return n},set(i){}},ref:Qb((i,o)=>({get(){return i(),n},set(r){t(n,r)||(n=r,o())}}))}}const Fq=(e,t)=>e===t;function xq(e=rs){const t=e===rs?YP:RC(e),n=(i,o={})=>{const{equalityFn:r=Fq}=typeof o=="function"?{equalityFn:o}:o,{store:s,subscription:a}=t(),l=Rq(i(s.getState()),r);return vn(()=>s,(u,h,f)=>{const p=a.addNestedSub(()=>{const m=i(s.getState());l.ref.value=m});f(()=>{p()})},{immediate:!0,deep:!1}),VI(l.ref)};return Object.assign(n,{withTypes:()=>n}),n}const Pq=xq();function Sn(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var Eq=typeof Symbol=="function"&&Symbol.observable||"@@observable",XP=Eq,FC=()=>Math.random().toString(36).substring(7).split("").join("."),Dq={INIT:`@@redux/INIT${FC()}`,REPLACE:`@@redux/REPLACE${FC()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${FC()}`},Zh=Dq;function ss(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function JP(e,t,n){if(typeof e!="function")throw new Error(Sn(2));if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(Sn(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(Sn(1));return n(JP)(e,t)}let i=e,o=t,r=new Map,s=r,a=0,l=!1;function u(){s===r&&(s=new Map,r.forEach((b,y)=>{s.set(y,b)}))}function h(){if(l)throw new Error(Sn(3));return o}function f(b){if(typeof b!="function")throw new Error(Sn(4));if(l)throw new Error(Sn(5));let y=!0;u();const R=a++;return s.set(R,b),function(){if(y){if(l)throw new Error(Sn(6));y=!1,u(),s.delete(R),r=null}}}function p(b){if(!ss(b))throw new Error(Sn(7));if(typeof b.type>"u")throw new Error(Sn(8));if(typeof b.type!="string")throw new Error(Sn(17));if(l)throw new Error(Sn(9));try{l=!0,o=i(o,b)}finally{l=!1}return(r=s).forEach(R=>{R()}),b}function m(b){if(typeof b!="function")throw new Error(Sn(10));i=b,p({type:Zh.REPLACE})}function v(){const b=f;return{subscribe(y){if(typeof y!="object"||y===null)throw new Error(Sn(11));function R(){const x=y;x.next&&x.next(h())}return R(),{unsubscribe:b(R)}},[XP](){return this}}}return p({type:Zh.INIT}),{dispatch:p,subscribe:f,getState:h,replaceReducer:m,[XP]:v}}function Tq(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:Zh.INIT})>"u")throw new Error(Sn(12));if(typeof n(void 0,{type:Zh.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Sn(13))})}function eE(e){const t=Object.keys(e),n={};for(let r=0;r<t.length;r++){const s=t[r];typeof e[s]=="function"&&(n[s]=e[s])}const i=Object.keys(n);let o;try{Tq(n)}catch(r){o=r}return function(s={},a){if(o)throw o;let l=!1;const u={};for(let h=0;h<i.length;h++){const f=i[h],p=n[f],m=s[f],v=p(m,a);if(typeof v>"u")throw a&&a.type,new Error(Sn(14));u[f]=v,l=l||v!==m}return l=l||i.length!==Object.keys(s).length,l?u:s}}function Xh(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...i)=>t(n(...i)))}function Aq(...e){return t=>(n,i)=>{const o=t(n,i);let r=()=>{throw new Error(Sn(15))};const s={getState:o.getState,dispatch:(l,...u)=>r(l,...u)},a=e.map(l=>l(s));return r=Xh(...a)(o.dispatch),{...o,dispatch:r}}}function tE(e){return ss(e)&&"type"in e&&typeof e.type=="string"}var xC=Symbol.for("immer-nothing"),Qc=Symbol.for("immer-draftable"),fn=Symbol.for("immer-state");function Rn(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var vi=Object,ea=vi.getPrototypeOf,Yc="constructor",Zc="prototype",PC="configurable",Jh="enumerable",ef="writable",Xc="value",Ci=e=>!!e&&!!e[fn];function wi(e){return e?iE(e)||tu(e)||!!e[Qc]||!!e[Yc]?.[Qc]||nu(e)||iu(e):!1}var Iq=vi[Zc][Yc].toString(),nE=new WeakMap;function iE(e){if(!e||!pl(e))return!1;const t=ea(e);if(t===null||t===vi[Zc])return!0;const n=vi.hasOwnProperty.call(t,Yc)&&t[Yc];if(n===Object)return!0;if(!na(n))return!1;let i=nE.get(n);return i===void 0&&(i=Function.toString.call(n),nE.set(n,i)),i===Iq}function Mq(e){return Ci(e)||Rn(15,e),e[fn].base_}function Jc(e,t,n=!0){ta(e)===0?(n?Reflect.ownKeys(e):vi.keys(e)).forEach(o=>{t(o,e[o],e)}):e.forEach((i,o)=>t(o,i,e))}function ta(e){const t=e[fn];return t?t.type_:tu(e)?1:nu(e)?2:iu(e)?3:0}var eu=(e,t,n=ta(e))=>n===2?e.has(t):vi[Zc].hasOwnProperty.call(e,t),dr=(e,t,n=ta(e))=>n===2?e.get(t):e[t],tf=(e,t,n,i=ta(e))=>{i===2?e.set(t,n):i===3?e.add(n):e[t]=n};function kq(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}var tu=Array.isArray,nu=e=>e instanceof Map,iu=e=>e instanceof Set,pl=e=>typeof e=="object",na=e=>typeof e=="function",EC=e=>typeof e=="boolean";function Lq(e){const t=+e;return Number.isInteger(t)&&String(t)===e}var _q=e=>pl(e)?e?.[fn]:null,hr=e=>e.copy_||e.base_,DC=e=>e.modified_?e.copy_:e.base_;function TC(e,t){if(nu(e))return new Map(e);if(iu(e))return new Set(e);if(tu(e))return Array[Zc].slice.call(e);const n=iE(e);if(t===!0||t==="class_only"&&!n){const i=vi.getOwnPropertyDescriptors(e);delete i[fn];let o=Reflect.ownKeys(i);for(let r=0;r<o.length;r++){const s=o[r],a=i[s];a[ef]===!1&&(a[ef]=!0,a[PC]=!0),(a.get||a.set)&&(i[s]={[PC]:!0,[ef]:!0,[Jh]:a[Jh],[Xc]:e[s]})}return vi.create(ea(e),i)}else{const i=ea(e);if(i!==null&&n)return{...e};const o=vi.create(i);return vi.assign(o,e)}}function AC(e,t=!1){return of(e)||Ci(e)||!wi(e)||(ta(e)>1&&vi.defineProperties(e,{set:nf,add:nf,clear:nf,delete:nf}),vi.freeze(e),t&&Jc(e,(n,i)=>{AC(i,!0)},!1)),e}function Oq(){Rn(2)}var nf={[Xc]:Oq};function of(e){return e===null||!pl(e)?!0:vi.isFrozen(e)}var rf="MapSet",sf="Patches",oE="ArrayMethods",af={};function ia(e){const t=af[e];return t||Rn(0,e),t}var rE=e=>!!af[e];function Nq(e,t){af[e]||(af[e]=t)}var ou,sE=()=>ou,Bq=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:rE(rf)?ia(rf):void 0,arrayMethodsPlugin_:rE(oE)?ia(oE):void 0});function aE(e,t){t&&(e.patchPlugin_=ia(sf),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function IC(e){MC(e),e.drafts_.forEach(Gq),e.drafts_=null}function MC(e){e===ou&&(ou=e.parent_)}var lE=e=>ou=Bq(ou,e);function Gq(e){const t=e[fn];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function cE(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];if(e!==void 0&&e!==n){n[fn].modified_&&(IC(t),Rn(4)),wi(e)&&(e=uE(t,e));const{patchPlugin_:o}=t;o&&o.generateReplacementPatches_(n[fn].base_,e,t)}else e=uE(t,n);return Hq(t,e,!0),IC(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==xC?e:void 0}function uE(e,t){if(of(t))return t;const n=t[fn];if(!n)return cf(t,e.handledSet_,e);if(!lf(n,e))return t;if(!n.modified_)return n.base_;if(!n.finalized_){const{callbacks_:i}=n;if(i)for(;i.length>0;)i.pop()(e);fE(n,e)}return n.copy_}function Hq(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&AC(t,n)}function dE(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var lf=(e,t)=>e.scope_===t,Vq=[];function hE(e,t,n,i){const o=hr(e),r=e.type_;if(i!==void 0&&dr(o,i,r)===t){tf(o,i,n,r);return}if(!e.draftLocations_){const a=e.draftLocations_=new Map;Jc(o,(l,u)=>{if(Ci(u)){const h=a.get(u)||[];h.push(l),a.set(u,h)}})}const s=e.draftLocations_.get(t)??Vq;for(const a of s)tf(o,a,n,r)}function Wq(e,t,n){e.callbacks_.push(function(o){const r=t;if(!r||!lf(r,o))return;o.mapSetPlugin_?.fixSetContents(r);const s=DC(r);hE(e,r.draft_??r,s,n),fE(r,o)})}function fE(e,t){if(e.modified_&&!e.finalized_&&(e.type_===3||e.type_===1&&e.allIndicesReassigned_||(e.assigned_?.size??0)>0)){const{patchPlugin_:i}=t;if(i){const o=i.getPath(e);o&&i.generatePatches_(e,o,t)}dE(e)}}function zq(e,t,n){const{scope_:i}=e;if(Ci(n)){const o=n[fn];lf(o,i)&&o.callbacks_.push(function(){df(e);const s=DC(o);hE(e,n,s,t)})}else wi(n)&&e.callbacks_.push(function(){const r=hr(e);e.type_===3?r.has(n)&&cf(n,i.handledSet_,i):dr(r,t,e.type_)===n&&i.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&cf(dr(e.copy_,t,e.type_),i.handledSet_,i)})}function cf(e,t,n){return!n.immer_.autoFreeze_&&n.unfinalizedDrafts_<1||Ci(e)||t.has(e)||!wi(e)||of(e)||(t.add(e),Jc(e,(i,o)=>{if(Ci(o)){const r=o[fn];if(lf(r,n)){const s=DC(r);tf(e,i,s,e.type_),dE(r)}}else wi(o)&&cf(o,t,n)})),e}function Uq(e,t){const n=tu(e),i={type_:n?1:0,scope_:t?t.scope_:sE(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0};let o=i,r=uf;n&&(o=[i],r=ru);const{revoke:s,proxy:a}=Proxy.revocable(o,r);return i.draft_=a,i.revoke_=s,[a,i]}var uf={get(e,t){if(t===fn)return e;let n=e.scope_.arrayMethodsPlugin_;const i=e.type_===1&&typeof t=="string";if(i&&n?.isArrayOperationMethod(t))return n.createMethodInterceptor(e,t);const o=hr(e);if(!eu(o,t,e.type_))return $q(e,o,t);const r=o[t];if(e.finalized_||!wi(r)||i&&e.operationMethod&&n?.isMutatingArrayMethod(e.operationMethod)&&Lq(t))return r;if(r===kC(e.base_,t)){df(e);const s=e.type_===1?+t:t,a=_C(e.scope_,r,e,s);return e.copy_[s]=a}return r},has(e,t){return t in hr(e)},ownKeys(e){return Reflect.ownKeys(hr(e))},set(e,t,n){const i=pE(hr(e),t);if(i?.set)return i.set.call(e.draft_,n),!0;if(!e.modified_){const o=kC(hr(e),t),r=o?.[fn];if(r&&r.base_===n)return e.copy_[t]=n,e.assigned_.set(t,!1),!0;if(kq(n,o)&&(n!==void 0||eu(e.base_,t,e.type_)))return!0;df(e),LC(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_.set(t,!0),zq(e,t,n)),!0},deleteProperty(e,t){return df(e),kC(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),LC(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=hr(e),i=Reflect.getOwnPropertyDescriptor(n,t);return i&&{[ef]:!0,[PC]:e.type_!==1||t!=="length",[Jh]:i[Jh],[Xc]:n[t]}},defineProperty(){Rn(11)},getPrototypeOf(e){return ea(e.base_)},setPrototypeOf(){Rn(12)}},ru={};for(let e in uf){let t=uf[e];ru[e]=function(){const n=arguments;return n[0]=n[0][0],t.apply(this,n)}}ru.deleteProperty=function(e,t){return ru.set.call(this,e,t,void 0)},ru.set=function(e,t,n){return uf.set.call(this,e[0],t,n,e[0])};function kC(e,t){const n=e[fn];return(n?hr(n):e)[t]}function $q(e,t,n){const i=pE(t,n);return i?Xc in i?i[Xc]:i.get?.call(e.draft_):void 0}function pE(e,t){if(!(t in e))return;let n=ea(e);for(;n;){const i=Object.getOwnPropertyDescriptor(n,t);if(i)return i;n=ea(n)}}function LC(e){e.modified_||(e.modified_=!0,e.parent_&&LC(e.parent_))}function df(e){e.copy_||(e.assigned_=new Map,e.copy_=TC(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var jq=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(t,n,i)=>{if(na(t)&&!na(n)){const r=n;n=t;const s=this;return function(l=r,...u){return s.produce(l,h=>n.call(this,h,...u))}}na(n)||Rn(6),i!==void 0&&!na(i)&&Rn(7);let o;if(wi(t)){const r=lE(this),s=_C(r,t,void 0);let a=!0;try{o=n(s),a=!1}finally{a?IC(r):MC(r)}return aE(r,i),cE(o,r)}else if(!t||!pl(t)){if(o=n(t),o===void 0&&(o=t),o===xC&&(o=void 0),this.autoFreeze_&&AC(o,!0),i){const r=[],s=[];ia(sf).generateReplacementPatches_(t,o,{patches_:r,inversePatches_:s}),i(r,s)}return o}else Rn(1,t)},this.produceWithPatches=(t,n)=>{if(na(t))return(s,...a)=>this.produceWithPatches(s,l=>t(l,...a));let i,o;return[this.produce(t,n,(s,a)=>{i=s,o=a}),i,o]},EC(e?.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),EC(e?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),EC(e?.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){wi(e)||Rn(8),Ci(e)&&(e=gE(e));const t=lE(this),n=_C(t,e,void 0);return n[fn].isManual_=!0,MC(t),n}finishDraft(e,t){const n=e&&e[fn];(!n||!n.isManual_)&&Rn(9);const{scope_:i}=n;return aE(i,t),cE(void 0,i)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const o=t[n];if(o.path.length===0&&o.op==="replace"){e=o.value;break}}n>-1&&(t=t.slice(n+1));const i=ia(sf).applyPatches_;return Ci(e)?i(e,t):this.produce(e,o=>i(o,t))}};function _C(e,t,n,i){const[o,r]=nu(t)?ia(rf).proxyMap_(t,n):iu(t)?ia(rf).proxySet_(t,n):Uq(t,n);return(n?.scope_??sE()).drafts_.push(o),r.callbacks_=n?.callbacks_??[],r.key_=i,n&&i!==void 0?Wq(n,r,i):r.callbacks_.push(function(l){l.mapSetPlugin_?.fixSetContents(r);const{patchPlugin_:u}=l;r.modified_&&u&&u.generatePatches_(r,[],l)}),o}function gE(e){return Ci(e)||Rn(10,e),mE(e)}function mE(e){if(!wi(e)||of(e))return e;const t=e[fn];let n,i=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=TC(e,t.scope_.immer_.useStrictShallowCopy_),i=t.scope_.immer_.shouldUseStrictIteration()}else n=TC(e,!0);return Jc(n,(o,r)=>{tf(n,o,mE(r))},i),t&&(t.finalized_=!1),n}function Kq(){function t(v,w=[]){if(v.key_!==void 0){const b=v.parent_.copy_??v.parent_.base_,y=_q(dr(b,v.key_)),R=dr(b,v.key_);if(R===void 0||R!==v.draft_&&R!==v.base_&&R!==v.copy_||y!=null&&y.base_!==v.base_)return null;const S=v.parent_.type_===3;let x;if(S){const P=v.parent_;x=Array.from(P.drafts_.keys()).indexOf(v.key_)}else x=v.key_;if(!(S&&b.size>x||eu(b,x)))return null;w.push(x)}if(v.parent_)return t(v.parent_,w);w.reverse();try{n(v.copy_,w)}catch{return null}return w}function n(v,w){let b=v;for(let y=0;y<w.length-1;y++){const R=w[y];if(b=dr(b,R),!pl(b)||b===null)throw new Error(`Cannot resolve path at '${w.join("/")}'`)}return b}const i="replace",o="add",r="remove";function s(v,w,b){if(v.scope_.processedForPatches_.has(v))return;v.scope_.processedForPatches_.add(v);const{patches_:y,inversePatches_:R}=b;switch(v.type_){case 0:case 2:return l(v,w,y,R);case 1:return a(v,w,y,R);case 3:return u(v,w,y,R)}}function a(v,w,b,y){let{base_:R,assigned_:S}=v,x=v.copy_;x.length<R.length&&([R,x]=[x,R],[b,y]=[y,b]);const P=v.allIndicesReassigned_===!0;for(let D=0;D<R.length;D++){const A=x[D],N=R[D];if((P||S?.get(D.toString()))&&A!==N){const L=A?.[fn];if(L&&L.modified_)continue;const M=w.concat([D]);b.push({op:i,path:M,value:m(A)}),y.push({op:i,path:M,value:m(N)})}}for(let D=R.length;D<x.length;D++){const A=w.concat([D]);b.push({op:o,path:A,value:m(x[D])})}for(let D=x.length-1;R.length<=D;--D){const A=w.concat([D]);y.push({op:r,path:A})}}function l(v,w,b,y){const{base_:R,copy_:S,type_:x}=v;Jc(v.assigned_,(P,D)=>{const A=dr(R,P,x),N=dr(S,P,x),B=D?eu(R,P)?i:o:r;if(A===N&&B===i)return;const L=w.concat(P);b.push(B===r?{op:B,path:L}:{op:B,path:L,value:m(N)}),y.push(B===o?{op:r,path:L}:B===r?{op:o,path:L,value:m(A)}:{op:i,path:L,value:m(A)})})}function u(v,w,b,y){let{base_:R,copy_:S}=v,x=0;R.forEach(P=>{if(!S.has(P)){const D=w.concat([x]);b.push({op:r,path:D,value:P}),y.unshift({op:o,path:D,value:P})}x++}),x=0,S.forEach(P=>{if(!R.has(P)){const D=w.concat([x]);b.push({op:o,path:D,value:P}),y.unshift({op:r,path:D,value:P})}x++})}function h(v,w,b){const{patches_:y,inversePatches_:R}=b;y.push({op:i,path:[],value:w===xC?void 0:w}),R.push({op:i,path:[],value:v})}function f(v,w){return w.forEach(b=>{const{path:y,op:R}=b;let S=v;for(let A=0;A<y.length-1;A++){const N=ta(S);let B=y[A];typeof B!="string"&&typeof B!="number"&&(B=""+B),(N===0||N===1)&&(B==="__proto__"||B===Yc)&&Rn(19),na(S)&&B===Zc&&Rn(19),S=dr(S,B),pl(S)||Rn(18,y.join("/"))}const x=ta(S),P=p(b.value),D=y[y.length-1];switch(R){case i:switch(x){case 2:return S.set(D,P);case 3:Rn(16);default:return S[D]=P}case o:switch(x){case 1:return D==="-"?S.push(P):S.splice(D,0,P);case 2:return S.set(D,P);case 3:return S.add(P);default:return S[D]=P}case r:switch(x){case 1:return S.splice(D,1);case 2:return S.delete(D);case 3:return S.delete(b.value);default:return delete S[D]}default:Rn(17,R)}}),v}function p(v){if(!wi(v))return v;if(tu(v))return v.map(p);if(nu(v))return new Map(Array.from(v.entries()).map(([b,y])=>[b,p(y)]));if(iu(v))return new Set(Array.from(v).map(p));const w=Object.create(ea(v));for(const b in v)w[b]=p(v[b]);return eu(v,Qc)&&(w[Qc]=v[Qc]),w}function m(v){return Ci(v)?p(v):v}Nq(sf,{applyPatches_:f,generatePatches_:s,generateReplacementPatches_:h,getPath:t})}var su=new jq,au=su.produce,vE=su.produceWithPatches.bind(su),CE=su.applyPatches.bind(su);function qq(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function Qq(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function Yq(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(n=>typeof n=="function")){const n=e.map(i=>typeof i=="function"?`function ${i.name||"unnamed"}()`:typeof i).join(", ");throw new TypeError(`${t}[${n}]`)}}var wE=e=>Array.isArray(e)?e:[e];function Zq(e){const t=Array.isArray(e[0])?e[0]:e;return Yq(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function Xq(e,t){const n=[],{length:i}=e;for(let o=0;o<i;o++)n.push(e[o].apply(null,t));return n}var Jq=class{constructor(e){this.value=e}deref(){return this.value}},eQ=typeof WeakRef<"u"?WeakRef:Jq,tQ=0,bE=1;function hf(){return{s:tQ,v:void 0,o:null,p:null}}function ff(e,t={}){let n=hf();const{resultEqualityCheck:i}=t;let o,r=0;function s(){let a=n;const{length:l}=arguments;for(let f=0,p=l;f<p;f++){const m=arguments[f];if(typeof m=="function"||typeof m=="object"&&m!==null){let v=a.o;v===null&&(a.o=v=new WeakMap);const w=v.get(m);w===void 0?(a=hf(),v.set(m,a)):a=w}else{let v=a.p;v===null&&(a.p=v=new Map);const w=v.get(m);w===void 0?(a=hf(),v.set(m,a)):a=w}}const u=a;let h;if(a.s===bE)h=a.v;else if(h=e.apply(null,arguments),r++,i){const f=o?.deref?.()??o;f!=null&&i(f,h)&&(h=f,r!==0&&r--),o=typeof h=="object"&&h!==null||typeof h=="function"?new eQ(h):h}return u.s=bE,u.v=h,h}return s.clearCache=()=>{n=hf(),s.resetResultsCount()},s.resultsCount=()=>r,s.resetResultsCount=()=>{r=0},s}function nQ(e,...t){const n=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,i=(...o)=>{let r=0,s=0,a,l={},u=o.pop();typeof u=="object"&&(l=u,u=o.pop()),qq(u,`createSelector expects an output function after the inputs, but received: [${typeof u}]`);const h={...n,...l},{memoize:f,memoizeOptions:p=[],argsMemoize:m=ff,argsMemoizeOptions:v=[]}=h,w=wE(p),b=wE(v),y=Zq(o),R=f(function(){return r++,u.apply(null,arguments)},...w),S=m(function(){s++;const P=Xq(y,arguments);return a=R.apply(null,P),a},...b);return Object.assign(S,{resultFunc:u,memoizedResultFunc:R,dependencies:y,dependencyRecomputations:()=>s,resetDependencyRecomputations:()=>{s=0},lastResult:()=>a,recomputations:()=>r,resetRecomputations:()=>{r=0},memoize:f,argsMemoize:m})};return Object.assign(i,{withTypes:()=>i}),i}var yE=nQ(ff),iQ=Object.assign((e,t=yE)=>{Qq(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const n=Object.keys(e),i=n.map(r=>e[r]);return t(i,(...r)=>r.reduce((s,a,l)=>(s[n[l]]=a,s),{}))},{withTypes:()=>iQ});function SE(e){return({dispatch:n,getState:i})=>o=>r=>typeof r=="function"?r(n,i,e):o(r)}var oQ=SE(),rQ=SE,sQ=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Xh:Xh.apply(null,arguments)},aQ=e=>e&&typeof e.match=="function";function co(e,t){function n(...i){if(t){let o=t(...i);if(!o)throw new Error(Oo(0));return{type:e,payload:o.payload,..."meta"in o&&{meta:o.meta},..."error"in o&&{error:o.error}}}return{type:e,payload:i[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=i=>tE(i)&&i.type===e,n}var RE=class Gu extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,Gu.prototype)}static get[Symbol.species](){return Gu}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new Gu(...t[0].concat(this)):new Gu(...t.concat(this))}};function FE(e){return wi(e)?au(e,()=>{}):e}function pf(e,t,n){return e.has(t)?e.get(t):e.set(t,n(t)).get(t)}function lQ(e){return typeof e=="boolean"}var cQ=()=>function(t){const{thunk:n=!0,immutableCheck:i=!0,serializableCheck:o=!0,actionCreatorCheck:r=!0}=t??{};let s=new RE;return n&&(lQ(n)?s.push(oQ):s.push(rQ(n.extraArgument))),s},gf="RTK_autoBatch",lu=()=>e=>({payload:e,meta:{[gf]:!0}}),xE=e=>t=>{setTimeout(t,e)},uQ=(e={type:"raf"})=>t=>(...n)=>{const i=t(...n);let o=!0,r=!1,s=!1;const a=new Set,l=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:xE(10):e.type==="callback"?e.queueNotification:xE(e.timeout),u=()=>{s=!1,r&&(r=!1,a.forEach(h=>h()))};return Object.assign({},i,{subscribe(h){const f=()=>o&&h(),p=i.subscribe(f);return a.add(h),()=>{p(),a.delete(h)}},dispatch(h){try{return o=!h?.meta?.[gf],r=!o,r&&(s||(s=!0,l(u))),i.dispatch(h)}finally{o=!0}}})},dQ=e=>function(n){const{autoBatch:i=!0}=n??{};let o=new RE(e);return i&&o.push(uQ(typeof i=="object"?i:void 0)),o};function hQ(e){const t=cQ(),{reducer:n=void 0,middleware:i,devTools:o=!0,preloadedState:r=void 0,enhancers:s=void 0}=e||{};let a;if(typeof n=="function")a=n;else if(ss(n))a=eE(n);else throw new Error(Oo(1));let l;typeof i=="function"?l=i(t):l=t();let u=Xh;o&&(u=sQ({trace:!1,...typeof o=="object"&&o}));const h=Aq(...l),f=dQ(h);let p=typeof s=="function"?s(f):f();const m=u(...p);return JP(a,r,m)}function PE(e){const t={},n=[];let i;const o={addCase(r,s){const a=typeof r=="string"?r:r.type;if(!a)throw new Error(Oo(28));if(a in t)throw new Error(Oo(29));return t[a]=s,o},addAsyncThunk(r,s){return s.pending&&(t[r.pending.type]=s.pending),s.rejected&&(t[r.rejected.type]=s.rejected),s.fulfilled&&(t[r.fulfilled.type]=s.fulfilled),s.settled&&n.push({matcher:r.settled,reducer:s.settled}),o},addMatcher(r,s){return n.push({matcher:r,reducer:s}),o},addDefaultCase(r){return i=r,o}};return e(o),[t,n,i]}function fQ(e){return typeof e=="function"}function pQ(e,t){let[n,i,o]=PE(t),r;if(fQ(e))r=()=>FE(e());else{const a=FE(e);r=()=>a}function s(a=r(),l){let u=[n[l.type],...i.filter(({matcher:h})=>h(l)).map(({reducer:h})=>h)];return u.filter(h=>!!h).length===0&&(u=[o]),u.reduce((h,f)=>{if(f)if(Ci(h)){const m=f(h,l);return m===void 0?h:m}else{if(wi(h))return au(h,p=>f(p,l));{const p=f(h,l);if(p===void 0){if(h===null)return h;throw Error("A case reducer on a non-draftable value must not return undefined")}return p}}return h},a)}return s.getInitialState=r,s}var EE=(e,t)=>aQ(e)?e.match(t):e(t);function fr(...e){return t=>e.some(n=>EE(n,t))}function cu(...e){return t=>e.every(n=>EE(n,t))}function mf(e,t){if(!e||!e.meta)return!1;const n=typeof e.meta.requestId=="string",i=t.indexOf(e.meta.requestStatus)>-1;return n&&i}function uu(e){return typeof e[0]=="function"&&"pending"in e[0]&&"fulfilled"in e[0]&&"rejected"in e[0]}function OC(...e){return e.length===0?t=>mf(t,["pending"]):uu(e)?fr(...e.map(t=>t.pending)):OC()(e[0])}function gl(...e){return e.length===0?t=>mf(t,["rejected"]):uu(e)?fr(...e.map(t=>t.rejected)):gl()(e[0])}function vf(...e){const t=n=>n&&n.meta&&n.meta.rejectedWithValue;return e.length===0?cu(gl(...e),t):uu(e)?cu(gl(...e),t):vf()(e[0])}function as(...e){return e.length===0?t=>mf(t,["fulfilled"]):uu(e)?fr(...e.map(t=>t.fulfilled)):as()(e[0])}function NC(...e){return e.length===0?t=>mf(t,["pending","fulfilled","rejected"]):uu(e)?fr(...e.flatMap(t=>[t.pending,t.rejected,t.fulfilled])):NC()(e[0])}var gQ="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",BC=(e=21)=>{let t="",n=e;for(;n--;)t+=gQ[Math.random()*64|0];return t},mQ=["name","message","stack","code"],GC=class{constructor(e,t){this.payload=e,this.meta=t}_type},DE=class{constructor(e,t){this.payload=e,this.meta=t}_type},vQ=e=>{if(typeof e=="object"&&e!==null){const t={};for(const n of mQ)typeof e[n]=="string"&&(t[n]=e[n]);return t}return{message:String(e)}},TE="External signal was aborted",AE=(()=>{function e(t,n,i){const o=co(t+"/fulfilled",(l,u,h,f)=>({payload:l,meta:{...f||{},arg:h,requestId:u,requestStatus:"fulfilled"}})),r=co(t+"/pending",(l,u,h)=>({payload:void 0,meta:{...h||{},arg:u,requestId:l,requestStatus:"pending"}})),s=co(t+"/rejected",(l,u,h,f,p)=>({payload:f,error:(i&&i.serializeError||vQ)(l||"Rejected"),meta:{...p||{},arg:h,requestId:u,rejectedWithValue:!!f,requestStatus:"rejected",aborted:l?.name==="AbortError",condition:l?.name==="ConditionError"}}));function a(l,{signal:u}={}){return(h,f,p)=>{const m=i?.idGenerator?i.idGenerator(l):BC(),v=new AbortController;let w,b;function y(S){b=S,v.abort()}u&&(u.aborted?y(TE):u.addEventListener("abort",()=>y(TE),{once:!0}));const R=(async function(){let S;try{let P=i?.condition?.(l,{getState:f,extra:p});if(wQ(P)&&(P=await P),P===!1||v.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const D=new Promise((A,N)=>{w=()=>{N({name:"AbortError",message:b||"Aborted"})},v.signal.addEventListener("abort",w,{once:!0})});h(r(m,l,i?.getPendingMeta?.({requestId:m,arg:l},{getState:f,extra:p}))),S=await Promise.race([D,Promise.resolve(n(l,{dispatch:h,getState:f,extra:p,requestId:m,signal:v.signal,abort:y,rejectWithValue:(A,N)=>new GC(A,N),fulfillWithValue:(A,N)=>new DE(A,N)})).then(A=>{if(A instanceof GC)throw A;return A instanceof DE?o(A.payload,m,l,A.meta):o(A,m,l)})])}catch(P){S=P instanceof GC?s(null,m,l,P.payload,P.meta):s(P,m,l)}finally{w&&v.signal.removeEventListener("abort",w)}return i&&!i.dispatchConditionRejection&&s.match(S)&&S.meta.condition||h(S),S})();return Object.assign(R,{abort:y,requestId:m,arg:l,unwrap(){return R.then(CQ)}})}}return Object.assign(a,{pending:r,rejected:s,fulfilled:o,settled:fr(s,o),typePrefix:t})}return e.withTypes=()=>e,e})();function CQ(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function wQ(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var bQ=Symbol.for("rtk-slice-createasyncthunk");function yQ(e,t){return`${e}/${t}`}function SQ({creators:e}={}){const t=e?.asyncThunk?.[bQ];return function(i){const{name:o,reducerPath:r=o}=i;if(!o)throw new Error(Oo(11));const s=(typeof i.reducers=="function"?i.reducers(FQ()):i.reducers)||{},a=Object.keys(s),l={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},u={addCase(S,x){const P=typeof S=="string"?S:S.type;if(!P)throw new Error(Oo(12));if(P in l.sliceCaseReducersByType)throw new Error(Oo(13));return l.sliceCaseReducersByType[P]=x,u},addMatcher(S,x){return l.sliceMatchers.push({matcher:S,reducer:x}),u},exposeAction(S,x){return l.actionCreators[S]=x,u},exposeCaseReducer(S,x){return l.sliceCaseReducersByName[S]=x,u}};a.forEach(S=>{const x=s[S],P={reducerName:S,type:yQ(o,S),createNotation:typeof i.reducers=="function"};PQ(x)?DQ(P,x,u,t):xQ(P,x,u)});function h(){const[S={},x=[],P=void 0]=typeof i.extraReducers=="function"?PE(i.extraReducers):[i.extraReducers],D={...S,...l.sliceCaseReducersByType};return pQ(i.initialState,A=>{for(let N in D)A.addCase(N,D[N]);for(let N of l.sliceMatchers)A.addMatcher(N.matcher,N.reducer);for(let N of x)A.addMatcher(N.matcher,N.reducer);P&&A.addDefaultCase(P)})}const f=S=>S,p=new Map,m=new WeakMap;let v;function w(S,x){return v||(v=h()),v(S,x)}function b(){return v||(v=h()),v.getInitialState()}function y(S,x=!1){function P(A){let N=A[S];return typeof N>"u"&&x&&(N=pf(m,P,b)),N}function D(A=f){const N=pf(p,x,()=>new WeakMap);return pf(N,A,()=>{const B={};for(const[L,M]of Object.entries(i.selectors??{}))B[L]=RQ(M,A,()=>pf(m,A,b),x);return B})}return{reducerPath:S,getSelectors:D,get selectors(){return D(P)},selectSlice:P}}const R={name:o,reducer:w,actions:l.actionCreators,caseReducers:l.sliceCaseReducersByName,getInitialState:b,...y(r),injectInto(S,{reducerPath:x,...P}={}){const D=x??r;return S.inject({reducerPath:D,reducer:w},P),{...R,...y(D,!0)}}};return R}}function RQ(e,t,n,i){function o(r,...s){let a=t(r);return typeof a>"u"&&i&&(a=n()),e(a,...s)}return o.unwrapped=e,o}var oa=SQ();function FQ(){function e(t,n){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...n}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...n){return t(...n)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,n){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:n}},asyncThunk:e}}function xQ({type:e,reducerName:t,createNotation:n},i,o){let r,s;if("reducer"in i){if(n&&!EQ(i))throw new Error(Oo(17));r=i.reducer,s=i.prepare}else r=i;o.addCase(e,r).exposeCaseReducer(t,r).exposeAction(t,s?co(e,s):co(e))}function PQ(e){return e._reducerDefinitionType==="asyncThunk"}function EQ(e){return e._reducerDefinitionType==="reducerWithPrepare"}function DQ({type:e,reducerName:t},n,i,o){if(!o)throw new Error(Oo(18));const{payloadCreator:r,fulfilled:s,pending:a,rejected:l,settled:u,options:h}=n,f=o(e,r,h);i.exposeAction(t,f),s&&i.addCase(f.fulfilled,s),a&&i.addCase(f.pending,a),l&&i.addCase(f.rejected,l),u&&i.addMatcher(f.settled,u),i.exposeCaseReducer(t,{fulfilled:s||Cf,pending:a||Cf,rejected:l||Cf,settled:u||Cf})}function Cf(){}function Oo(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var TQ=class extends Error{issues;constructor(e){super(e[0].message),this.name="SchemaError",this.issues=e}},pr="uninitialized",HC="pending",du="fulfilled",hu="rejected";function IE(e){return{status:e,isUninitialized:e===pr,isLoading:e===HC,isSuccess:e===du,isError:e===hu}}var ME=ss;function kE(e,t){if(e===t||!(ME(e)&&ME(t)||Array.isArray(e)&&Array.isArray(t)))return t;const n=Object.keys(t),i=Object.keys(e);let o=n.length===i.length;const r=Array.isArray(t)?[]:{};for(const s of n)r[s]=kE(e[s],t[s]),o&&(o=e[s]===r[s]);return o?e:r}function VC(e,t,n){return e.reduce((i,o,r)=>(t(o,r)&&i.push(n(o,r)),i),[]).flat()}function AQ(e){return new RegExp("(^|:)//").test(e)}function IQ(){return typeof document>"u"?!0:document.visibilityState!=="hidden"}function WC(e){return e!=null}function LE(e){return[...e?.values()??[]].filter(WC)}function MQ(){return typeof navigator>"u"||navigator.onLine===void 0?!0:navigator.onLine}var kQ=e=>e.replace(/\/$/,""),LQ=e=>e.replace(/^\//,"");function _Q(e,t){if(!e)return t;if(!t)return e;if(AQ(t))return t;const n=e.endsWith("/")||!t.startsWith("?")?"/":"";return e=kQ(e),t=LQ(t),`${e}${n}${t}`}function wf(e,t,n){return e.has(t)?e.get(t):e.set(t,n(t)).get(t)}var zC=()=>new Map,OQ=e=>{const t=new AbortController;return setTimeout(()=>{const n="signal timed out",i="TimeoutError";t.abort(typeof DOMException<"u"?new DOMException(n,i):Object.assign(new Error(n),{name:i}))},e),t.signal},NQ=(...e)=>{for(const n of e)if(n.aborted)return AbortSignal.abort(n.reason);const t=new AbortController;for(const n of e)n.addEventListener("abort",()=>t.abort(n.reason),{signal:t.signal,once:!0});return t.signal},_E=(...e)=>fetch(...e),BQ=e=>e.status>=200&&e.status<=299,GQ=e=>/ion\/(vnd\.api\+)?json/.test(e.get("content-type")||"");function OE(e){if(!ss(e))return e;const t={...e};for(const[n,i]of Object.entries(t))i===void 0&&delete t[n];return t}var HQ=e=>typeof e=="object"&&(ss(e)||Array.isArray(e)||typeof e.toJSON=="function");function VQ({baseUrl:e,prepareHeaders:t=f=>f,fetchFn:n=_E,paramsSerializer:i,isJsonContentType:o=GQ,jsonContentType:r="application/json",jsonReplacer:s,timeout:a,responseHandler:l,validateStatus:u,...h}={}){return typeof fetch>"u"&&n===_E&&console.warn("Warning: `fetch` is not available. Please supply a custom `fetchFn` property to use `fetchBaseQuery` on SSR environments."),async(p,m,v)=>{const{getState:w,extra:b,endpoint:y,forced:R,type:S}=m;let x,{url:P,headers:D=new Headers(h.headers),params:A=void 0,responseHandler:N=l??"json",validateStatus:B=u??BQ,timeout:L=a,...M}=typeof p=="string"?{url:p}:p,I={...h,signal:L?NQ(m.signal,OQ(L)):m.signal,...M};D=new Headers(OE(D)),I.headers=await t(D,{getState:w,arg:p,extra:b,endpoint:y,forced:R,type:S,extraOptions:v})||D;const O=HQ(I.body);if(I.body!=null&&!O&&typeof I.body!="string"&&I.headers.delete("content-type"),!I.headers.has("content-type")&&O&&I.headers.set("content-type",r),O&&o(I.headers)&&(I.body=JSON.stringify(I.body,s)),I.headers.has("accept")||(N==="json"?I.headers.set("accept","application/json"):N==="text"&&I.headers.set("accept","text/plain, text/html, */*")),A){const Ie=~P.indexOf("?")?"&":"?",G=i?i(A):new URLSearchParams(OE(A));P+=Ie+G}P=_Q(e,P);const Q=new Request(P,I);x={request:new Request(P,I)};let Fe;try{Fe=await n(Q)}catch(Ie){return{error:{status:(Ie instanceof Error||typeof DOMException<"u"&&Ie instanceof DOMException)&&Ie.name==="TimeoutError"?"TIMEOUT_ERROR":"FETCH_ERROR",error:String(Ie)},meta:x}}const we=Fe.clone();x.response=we;let he,xe="";try{let Ie;if(await Promise.all([f(Fe,N).then(G=>he=G,G=>Ie=G),we.text().then(G=>xe=G,()=>{})]),Ie)throw Ie}catch(Ie){return{error:{status:"PARSING_ERROR",originalStatus:Fe.status,data:xe,error:String(Ie)},meta:x}}return B(Fe,he)?{data:he,meta:x}:{error:{status:Fe.status,data:he},meta:x}};async function f(p,m){if(typeof m=="function")return m(p);if(m==="content-type"&&(m=o(p.headers)?"json":"text"),m==="json"){const v=await p.text();return v.length?JSON.parse(v):null}return p.text()}}var NE=class{constructor(e,t=void 0){this.value=e,this.meta=t}},bf="__rtkq/",WQ="online",zQ="offline",BE="focused",UC=co(`${bf}${BE}`),GE=co(`${bf}un${BE}`),$C=co(`${bf}${WQ}`),HE=co(`${bf}${zQ}`),fu="query",VE="mutation",WE="infinitequery";function yf(e){return e.type===fu}function UQ(e){return e.type===VE}function Sf(e){return e.type===WE}function Rf(e){return yf(e)||Sf(e)}function jC(e,t,n,i,o,r){const s=$Q(e)?e(t,n,i,o):e;return s?VC(s,WC,a=>r(zE(a))):[]}function $Q(e){return typeof e=="function"}function zE(e){return typeof e=="string"?{type:e}:e}function jQ(e,t){return e.catch(t)}var ml=(e,t)=>e.endpointDefinitions[t],pu=Symbol("forceQueryFn"),KC=e=>typeof e[pu]=="function";function KQ({serializeQueryArgs:e,queryThunk:t,infiniteQueryThunk:n,mutationThunk:i,api:o,context:r,getInternalState:s}){const a=x=>s(x)?.runningQueries,l=x=>s(x)?.runningMutations,{unsubscribeQueryResult:u,removeMutationResult:h,updateSubscriptionOptions:f}=o.internalActions;return{buildInitiateQuery:y,buildInitiateInfiniteQuery:R,buildInitiateMutation:S,getRunningQueryThunk:p,getRunningMutationThunk:m,getRunningQueriesThunk:v,getRunningMutationsThunk:w};function p(x,P){return D=>{const A=ml(r,x),N=e({queryArgs:P,endpointDefinition:A,endpointName:x});return a(D)?.get(N)}}function m(x,P){return D=>l(D)?.get(P)}function v(){return x=>LE(a(x))}function w(){return x=>LE(l(x))}function b(x,P){const D=(A,{subscribe:N=!0,forceRefetch:B,subscriptionOptions:L,[pu]:M,...I}={})=>(O,Q)=>{const te=e({queryArgs:A,endpointDefinition:P,endpointName:x});let Fe;const we={...I,type:fu,subscribe:N,forceRefetch:B,subscriptionOptions:L,endpointName:x,originalArgs:A,queryCacheKey:te,[pu]:M};if(yf(P))Fe=t(we);else{const{direction:ve,initialPageParam:_e,refetchCachedPages:ze}=I;Fe=n({...we,direction:ve,initialPageParam:_e,refetchCachedPages:ze})}const he=o.endpoints[x].select(A),xe=O(Fe),Ie=he(Q()),{requestId:G,abort:q}=xe,j=Ie.requestId!==G,ae=a(O)?.get(te),Pe=()=>he(Q()),Te=Object.assign(M?xe.then(Pe):j&&!ae?Promise.resolve(Ie):Promise.all([ae,xe]).then(Pe),{arg:A,requestId:G,subscriptionOptions:L,queryCacheKey:te,abort:q,async unwrap(){const ve=await Te;if(ve.isError)throw ve.error;return ve.data},refetch:ve=>O(D(A,{subscribe:!1,forceRefetch:!0,...ve})),unsubscribe(){N&&O(u({queryCacheKey:te,requestId:G}))},updateSubscriptionOptions(ve){Te.subscriptionOptions=ve,O(f({endpointName:x,requestId:G,queryCacheKey:te,options:ve}))}});if(!ae&&!j&&!M){const ve=a(O);ve.set(te,Te),Te.then(()=>{ve.delete(te)})}return Te};return D}function y(x,P){return b(x,P)}function R(x,P){return b(x,P)}function S(x){return(P,{track:D=!0,fixedCacheKey:A}={})=>(N,B)=>{const L=i({type:"mutation",endpointName:x,originalArgs:P,track:D,fixedCacheKey:A}),M=N(L),{requestId:I,abort:O,unwrap:Q}=M,te=jQ(M.unwrap().then(xe=>({data:xe})),xe=>({error:xe})),Fe=()=>{N(h({requestId:I,fixedCacheKey:A}))},we=Object.assign(te,{arg:M.arg,requestId:I,abort:O,unwrap:Q,reset:Fe}),he=l(N);return he.set(I,we),we.then(()=>{he.delete(I)}),A&&(he.set(A,we),we.then(()=>{he.get(A)===we&&he.delete(A)})),we}}}var UE=class extends TQ{constructor(e,t,n,i){super(e),this.value=t,this.schemaName=n,this._bqMeta=i}},ra=(e,t)=>Array.isArray(e)?e.includes(t):!!e;async function sa(e,t,n,i){const o=await e["~standard"].validate(t);if(o.issues)throw new UE(o.issues,t,n,i);return o.value}function $E(e){return e}var gu=(e={})=>({...e,[gf]:!0});function qQ({reducerPath:e,baseQuery:t,context:{endpointDefinitions:n},serializeQueryArgs:i,api:o,assertTagType:r,selectors:s,onSchemaFailure:a,catchSchemaFailure:l,skipSchemaValidation:u}){const h=(M,I,O,Q)=>(te,Fe)=>{const we=n[M],he=i({queryArgs:I,endpointDefinition:we,endpointName:M});if(te(o.internalActions.queryResultPatched({queryCacheKey:he,patches:O})),!Q)return;const xe=o.endpoints[M].select(I)(Fe()),Ie=jC(we.providesTags,xe.data,void 0,I,{},r);te(o.internalActions.updateProvidedBy([{queryCacheKey:he,providedTags:Ie}]))};function f(M,I,O=0){const Q=[I,...M];return O&&Q.length>O?Q.slice(0,-1):Q}function p(M,I,O=0){const Q=[...M,I];return O&&Q.length>O?Q.slice(1):Q}const m=(M,I,O,Q=!0)=>(te,Fe)=>{const he=o.endpoints[M].select(I)(Fe()),xe={patches:[],inversePatches:[],undo:()=>te(o.util.patchQueryData(M,I,xe.inversePatches,Q))};if(he.status===pr)return xe;let Ie;if("data"in he)if(wi(he.data)){const[G,q,j]=vE(he.data,O);xe.patches.push(...q),xe.inversePatches.push(...j),Ie=G}else Ie=O(he.data),xe.patches.push({op:"replace",path:[],value:Ie}),xe.inversePatches.push({op:"replace",path:[],value:he.data});return xe.patches.length===0||te(o.util.patchQueryData(M,I,xe.patches,Q)),xe},v=(M,I,O)=>Q=>Q(o.endpoints[M].initiate(I,{subscribe:!1,forceRefetch:!0,[pu]:()=>({data:O})})),w=(M,I)=>M.query&&M[I]?M[I]:$E,b=async(M,{signal:I,abort:O,rejectWithValue:Q,fulfillWithValue:te,dispatch:Fe,getState:we,extra:he})=>{const xe=n[M.endpointName],{metaSchema:Ie,skipSchemaValidation:G=u}=xe,q=M.type===fu;try{let j=$E;const ae={signal:I,abort:O,dispatch:Fe,getState:we,extra:he,endpoint:M.endpointName,type:M.type,forced:q?y(M,we()):void 0,queryCacheKey:q?M.queryCacheKey:void 0},Pe=q?M[pu]:void 0;let Te;const ve=async(ze,Ue,pt,k)=>{if(Ue==null&&ze.pages.length)return Promise.resolve({data:ze});const H={queryArg:M.originalArgs,pageParam:Ue},U=await _e(H),ne=k?f:p;return{data:{pages:ne(ze.pages,U.data,pt),pageParams:ne(ze.pageParams,Ue,pt)},meta:U.meta}};async function _e(ze){let Ue;const{extraOptions:pt,argSchema:k,rawResponseSchema:H,responseSchema:U}=xe;if(k&&!ra(G,"arg")&&(ze=await sa(k,ze,"argSchema",{})),Pe?Ue=Pe():xe.query?(j=w(xe,"transformResponse"),Ue=await t(xe.query(ze),ae,pt)):Ue=await xe.queryFn(ze,ae,pt,Z=>t(Z,ae,pt)),typeof process<"u",Ue.error)throw new NE(Ue.error,Ue.meta);let{data:ne}=Ue;H&&!ra(G,"rawResponse")&&(ne=await sa(H,Ue.data,"rawResponseSchema",Ue.meta));let ee=await j(ne,Ue.meta,ze);return U&&!ra(G,"response")&&(ee=await sa(U,ee,"responseSchema",Ue.meta)),{...Ue,data:ee}}if(q&&"infiniteQueryOptions"in xe){const{infiniteQueryOptions:ze}=xe,{maxPages:Ue=1/0}=ze,pt=M.refetchCachedPages??ze.refetchCachedPages??!0;let k;const H={pages:[],pageParams:[]},U=s.selectQueryEntry(we(),M.queryCacheKey)?.data,ee=y(M,we())&&!M.direction||!U?H:U;if("direction"in M&&M.direction&&ee.pages.length){const Z=M.direction==="backward",fe=(Z?jE:qC)(ze,ee,M.originalArgs);k=await ve(ee,fe,Ue,Z)}else{const{initialPageParam:Z=ze.initialPageParam}=M,ge=U?.pageParams??[],fe=ge[0]??Z,ce=ge.length;if(k=await ve(ee,fe,Ue),Pe&&(k={data:k.data.pages[0]}),pt)for(let ie=1;ie<ce;ie++){const Me=qC(ze,k.data,M.originalArgs);k=await ve(k.data,Me,Ue)}}Te=k}else Te=await _e(M.originalArgs);return Ie&&!ra(G,"meta")&&Te.meta&&(Te.meta=await sa(Ie,Te.meta,"metaSchema",Te.meta)),te(Te.data,gu({fulfilledTimeStamp:Date.now(),baseQueryMeta:Te.meta}))}catch(j){let ae=j;if(ae instanceof NE){let Pe=w(xe,"transformErrorResponse");const{rawErrorResponseSchema:Te,errorResponseSchema:ve}=xe;let{value:_e,meta:ze}=ae;try{Te&&!ra(G,"rawErrorResponse")&&(_e=await sa(Te,_e,"rawErrorResponseSchema",ze)),Ie&&!ra(G,"meta")&&(ze=await sa(Ie,ze,"metaSchema",ze));let Ue=await Pe(_e,ze,M.originalArgs);return ve&&!ra(G,"errorResponse")&&(Ue=await sa(ve,Ue,"errorResponseSchema",ze)),Q(Ue,gu({baseQueryMeta:ze}))}catch(Ue){ae=Ue}}try{if(ae instanceof UE){const Pe={endpoint:M.endpointName,arg:M.originalArgs,type:M.type,queryCacheKey:q?M.queryCacheKey:void 0};xe.onSchemaFailure?.(ae,Pe),a?.(ae,Pe);const{catchSchemaFailure:Te=l}=xe;if(Te)return Q(Te(ae,Pe),gu({baseQueryMeta:ae._bqMeta}))}}catch(Pe){ae=Pe}throw console.error(ae),ae}};function y(M,I){const O=s.selectQueryEntry(I,M.queryCacheKey),Q=s.selectConfig(I).refetchOnMountOrArgChange,te=O?.fulfilledTimeStamp,Fe=M.forceRefetch??(M.subscribe&&Q);return Fe?Fe===!0||(Number(new Date)-Number(te))/1e3>=Fe:!1}const R=()=>AE(`${e}/executeQuery`,b,{getPendingMeta({arg:I}){const O=n[I.endpointName];return gu({startedTimeStamp:Date.now(),...Sf(O)?{direction:I.direction}:{}})},condition(I,{getState:O}){const Q=O(),te=s.selectQueryEntry(Q,I.queryCacheKey),Fe=te?.fulfilledTimeStamp,we=I.originalArgs,he=te?.originalArgs,xe=n[I.endpointName],Ie=I.direction;return KC(I)?!0:te?.status==="pending"?!1:y(I,Q)||yf(xe)&&xe?.forceRefetch?.({currentArg:we,previousArg:he,endpointState:te,state:Q})?!0:!(Fe&&!Ie)},dispatchConditionRejection:!0}),S=R(),x=R(),P=AE(`${e}/executeMutation`,b,{getPendingMeta(){return gu({startedTimeStamp:Date.now()})}}),D=M=>"force"in M,A=M=>"ifOlderThan"in M,N=(M,I,O={})=>(Q,te)=>{const Fe=D(O)&&O.force,we=A(O)&&O.ifOlderThan,he=(Ie=!0)=>{const G={forceRefetch:Ie,subscribe:!1};return o.endpoints[M].initiate(I,G)},xe=o.endpoints[M].select(I)(te());if(Fe)Q(he());else if(we){const Ie=xe?.fulfilledTimeStamp;if(!Ie){Q(he());return}(Number(new Date)-Number(new Date(Ie)))/1e3>=we&&Q(he())}else Q(he(!1))};function B(M){return I=>I?.meta?.arg?.endpointName===M}function L(M,I){return{matchPending:cu(OC(M),B(I)),matchFulfilled:cu(as(M),B(I)),matchRejected:cu(gl(M),B(I))}}return{queryThunk:S,mutationThunk:P,infiniteQueryThunk:x,prefetch:N,updateQueryData:m,upsertQueryData:v,patchQueryData:h,buildMatchThunkActions:L}}function qC(e,{pages:t,pageParams:n},i){const o=t.length-1;return e.getNextPageParam(t[o],t,n[o],n,i)}function jE(e,{pages:t,pageParams:n},i){return e.getPreviousPageParam?.(t[0],t,n[0],n,i)}function KE(e,t,n,i){return jC(n[e.meta.arg.endpointName][t],as(e)?e.payload:void 0,vf(e)?e.payload:void 0,e.meta.arg.originalArgs,"baseQueryMeta"in e.meta?e.meta.baseQueryMeta:void 0,i)}function qE(e){return Ci(e)?gE(e):e}function Ff(e,t,n){const i=e[t];i&&n(i)}function mu(e){return("arg"in e?e.arg.fixedCacheKey:e.fixedCacheKey)??e.requestId}function QE(e,t,n){const i=e[mu(t)];i&&n(i)}var xf={};function QQ({reducerPath:e,queryThunk:t,mutationThunk:n,serializeQueryArgs:i,context:{endpointDefinitions:o,apiUid:r,extractRehydrationInfo:s,hasRehydrationInfo:a},assertTagType:l,config:u}){const h=co(`${e}/resetApiState`);function f(B,L,M,I){B[L.queryCacheKey]??={status:pr,endpointName:L.endpointName},Ff(B,L.queryCacheKey,O=>{O.status=HC,O.requestId=M&&O.requestId?O.requestId:I.requestId,L.originalArgs!==void 0&&(O.originalArgs=L.originalArgs),O.startedTimeStamp=I.startedTimeStamp;const Q=o[I.arg.endpointName];Sf(Q)&&"direction"in L&&(O.direction=L.direction)})}function p(B,L,M,I){Ff(B,L.arg.queryCacheKey,O=>{if(O.requestId!==L.requestId&&!I)return;const{merge:Q}=o[L.arg.endpointName];if(O.status=du,Q)if(O.data!==void 0){const{fulfilledTimeStamp:te,arg:Fe,baseQueryMeta:we,requestId:he}=L;let xe=au(O.data,Ie=>Q(Ie,M,{arg:Fe.originalArgs,baseQueryMeta:we,fulfilledTimeStamp:te,requestId:he}));O.data=xe}else O.data=M;else O.data=o[L.arg.endpointName].structuralSharing??!0?kE(Ci(O.data)?Mq(O.data):O.data,M):M;delete O.error,O.fulfilledTimeStamp=L.fulfilledTimeStamp})}const m=oa({name:`${e}/queries`,initialState:xf,reducers:{removeQueryResult:{reducer(B,{payload:{queryCacheKey:L}}){delete B[L]},prepare:lu()},cacheEntriesUpserted:{reducer(B,L){for(const M of L.payload){const{queryDescription:I,value:O}=M;f(B,I,!0,{arg:I,requestId:L.meta.requestId,startedTimeStamp:L.meta.timestamp}),p(B,{arg:I,requestId:L.meta.requestId,fulfilledTimeStamp:L.meta.timestamp,baseQueryMeta:{}},O,!0)}},prepare:B=>({payload:B.map(I=>{const{endpointName:O,arg:Q,value:te}=I,Fe=o[O];return{queryDescription:{type:fu,endpointName:O,originalArgs:I.arg,queryCacheKey:i({queryArgs:Q,endpointDefinition:Fe,endpointName:O})},value:te}}),meta:{[gf]:!0,requestId:BC(),timestamp:Date.now()}})},queryResultPatched:{reducer(B,{payload:{queryCacheKey:L,patches:M}}){Ff(B,L,I=>{I.data=CE(I.data,M.concat())})},prepare:lu()}},extraReducers(B){B.addCase(t.pending,(L,{meta:M,meta:{arg:I}})=>{const O=KC(I);f(L,I,O,M)}).addCase(t.fulfilled,(L,{meta:M,payload:I})=>{const O=KC(M.arg);p(L,M,I,O)}).addCase(t.rejected,(L,{meta:{condition:M,arg:I,requestId:O},error:Q,payload:te})=>{Ff(L,I.queryCacheKey,Fe=>{if(!M){if(Fe.requestId!==O)return;Fe.status=hu,Fe.error=te??Q}})}).addMatcher(a,(L,M)=>{const{queries:I}=s(M);for(const[O,Q]of Object.entries(I))(Q?.status===du||Q?.status===hu)&&(L[O]=Q)})}}),v=oa({name:`${e}/mutations`,initialState:xf,reducers:{removeMutationResult:{reducer(B,{payload:L}){const M=mu(L);M in B&&delete B[M]},prepare:lu()}},extraReducers(B){B.addCase(n.pending,(L,{meta:M,meta:{requestId:I,arg:O,startedTimeStamp:Q}})=>{O.track&&(L[mu(M)]={requestId:I,status:HC,endpointName:O.endpointName,startedTimeStamp:Q})}).addCase(n.fulfilled,(L,{payload:M,meta:I})=>{I.arg.track&&QE(L,I,O=>{O.requestId===I.requestId&&(O.status=du,O.data=M,O.fulfilledTimeStamp=I.fulfilledTimeStamp)})}).addCase(n.rejected,(L,{payload:M,error:I,meta:O})=>{O.arg.track&&QE(L,O,Q=>{Q.requestId===O.requestId&&(Q.status=hu,Q.error=M??I)})}).addMatcher(a,(L,M)=>{const{mutations:I}=s(M);for(const[O,Q]of Object.entries(I))(Q?.status===du||Q?.status===hu)&&O!==Q?.requestId&&(L[O]=Q)})}}),w={tags:{},keys:{}},b=oa({name:`${e}/invalidation`,initialState:w,reducers:{updateProvidedBy:{reducer(B,L){for(const{queryCacheKey:M,providedTags:I}of L.payload){y(B,M);for(const{type:O,id:Q}of I){const te=(B.tags[O]??={})[Q||"__internal_without_id"]??=[];te.includes(M)||te.push(M)}B.keys[M]=I}},prepare:lu()}},extraReducers(B){B.addCase(m.actions.removeQueryResult,(L,{payload:{queryCacheKey:M}})=>{y(L,M)}).addMatcher(a,(L,M)=>{const{provided:I}=s(M);for(const[O,Q]of Object.entries(I.tags??{}))for(const[te,Fe]of Object.entries(Q)){const we=(L.tags[O]??={})[te||"__internal_without_id"]??=[];for(const he of Fe)we.includes(he)||we.push(he),L.keys[he]=I.keys[he]}}).addMatcher(fr(as(t),vf(t)),(L,M)=>{R(L,[M])}).addMatcher(m.actions.cacheEntriesUpserted.match,(L,M)=>{const I=M.payload.map(({queryDescription:O,value:Q})=>({type:"UNKNOWN",payload:Q,meta:{requestStatus:"fulfilled",requestId:"UNKNOWN",arg:O}}));R(L,I)})}});function y(B,L){const M=qE(B.keys[L]??[]);for(const I of M){const O=I.type,Q=I.id??"__internal_without_id",te=B.tags[O]?.[Q];te&&(B.tags[O][Q]=qE(te).filter(Fe=>Fe!==L))}delete B.keys[L]}function R(B,L){const M=L.map(I=>{const O=KE(I,"providesTags",o,l),{queryCacheKey:Q}=I.meta.arg;return{queryCacheKey:Q,providedTags:O}});b.caseReducers.updateProvidedBy(B,b.actions.updateProvidedBy(M))}const S=oa({name:`${e}/subscriptions`,initialState:xf,reducers:{updateSubscriptionOptions(B,L){},unsubscribeQueryResult(B,L){},internal_getRTKQSubscriptions(){}}}),x=oa({name:`${e}/internalSubscriptions`,initialState:xf,reducers:{subscriptionsUpdated:{reducer(B,L){return CE(B,L.payload)},prepare:lu()}}}),P=oa({name:`${e}/config`,initialState:{online:MQ(),focused:IQ(),middlewareRegistered:!1,...u},reducers:{middlewareRegistered(B,{payload:L}){B.middlewareRegistered=B.middlewareRegistered==="conflict"||r!==L?"conflict":!0}},extraReducers:B=>{B.addCase($C,L=>{L.online=!0}).addCase(HE,L=>{L.online=!1}).addCase(UC,L=>{L.focused=!0}).addCase(GE,L=>{L.focused=!1}).addMatcher(a,L=>({...L}))}}),D=eE({queries:m.reducer,mutations:v.reducer,provided:b.reducer,subscriptions:x.reducer,config:P.reducer}),A=(B,L)=>D(h.match(L)?void 0:B,L),N={...P.actions,...m.actions,...S.actions,...x.actions,...v.actions,...b.actions,resetApiState:h};return{reducer:A,actions:N}}var QC=Symbol.for("RTKQ/skipToken"),YE={status:pr},ZE=au(YE,()=>{}),XE=au(YE,()=>{});function YQ({serializeQueryArgs:e,reducerPath:t,createSelector:n}){const i=S=>ZE,o=S=>XE;return{buildQuerySelector:p,buildInfiniteQuerySelector:m,buildMutationSelector:v,selectInvalidatedBy:w,selectCachedArgsForQuery:b,selectApiState:s,selectQueries:a,selectMutations:u,selectQueryEntry:l,selectConfig:h};function r(S){return{...S,...IE(S.status)}}function s(S){return S[t]}function a(S){return s(S)?.queries}function l(S,x){return a(S)?.[x]}function u(S){return s(S)?.mutations}function h(S){return s(S)?.config}function f(S,x,P){return D=>{if(D===QC)return n(i,P);const A=e({queryArgs:D,endpointDefinition:x,endpointName:S});return n(B=>l(B,A)??ZE,P)}}function p(S,x){return f(S,x,r)}function m(S,x){const{infiniteQueryOptions:P}=x;function D(A){const N={...A,...IE(A.status)},{isLoading:B,isError:L,direction:M}=N,I=M==="forward",O=M==="backward";return{...N,hasNextPage:y(P,N.data,N.originalArgs),hasPreviousPage:R(P,N.data,N.originalArgs),isFetchingNextPage:B&&I,isFetchingPreviousPage:B&&O,isFetchNextPageError:L&&I,isFetchPreviousPageError:L&&O}}return f(S,x,D)}function v(){return S=>{let x;return typeof S=="object"?x=mu(S)??QC:x=S,n(x===QC?o:A=>s(A)?.mutations?.[x]??XE,r)}}function w(S,x){const P=S[t],D=new Set,A=VC(x,WC,zE);for(const N of A){const B=P.provided.tags[N.type];if(!B)continue;let L=(N.id!==void 0?B[N.id]:Object.values(B).flat())??[];for(const M of L)D.add(M)}return Array.from(D.values()).flatMap(N=>{const B=P.queries[N];return B?{queryCacheKey:N,endpointName:B.endpointName,originalArgs:B.originalArgs}:[]})}function b(S,x){return VC(Object.values(a(S)),P=>P?.endpointName===x&&P.status!==pr,P=>P.originalArgs)}function y(S,x,P){return x?qC(S,x,P)!=null:!1}function R(S,x,P){return!x||!S.getPreviousPageParam?!1:jE(S,x,P)!=null}}var JE=WeakMap?new WeakMap:void 0,eD=({endpointName:e,queryArgs:t})=>{let n="";const i=JE?.get(t);if(typeof i=="string")n=i;else{const o=JSON.stringify(t,(r,s)=>(s=typeof s=="bigint"?{$bigint:s.toString()}:s,s=ss(s)?Object.keys(s).sort().reduce((a,l)=>(a[l]=s[l],a),{}):s,s));ss(t)&&JE?.set(t,o),n=o}return`${e}(${n})`};function ZQ(...e){return function(n){const i=ff(u=>n.extractRehydrationInfo?.(u,{reducerPath:n.reducerPath??"api"})),o={reducerPath:"api",keepUnusedDataFor:60,refetchOnMountOrArgChange:!1,refetchOnFocus:!1,refetchOnReconnect:!1,invalidationBehavior:"delayed",...n,extractRehydrationInfo:i,serializeQueryArgs(u){let h=eD;if("serializeQueryArgs"in u.endpointDefinition){const f=u.endpointDefinition.serializeQueryArgs;h=p=>{const m=f(p);return typeof m=="string"?m:eD({...p,queryArgs:m})}}else n.serializeQueryArgs&&(h=n.serializeQueryArgs);return h(u)},tagTypes:[...n.tagTypes||[]]},r={endpointDefinitions:{},batch(u){u()},apiUid:BC(),extractRehydrationInfo:i,hasRehydrationInfo:ff(u=>i(u)!=null)},s={injectEndpoints:l,enhanceEndpoints({addTagTypes:u,endpoints:h}){if(u)for(const f of u)o.tagTypes.includes(f)||o.tagTypes.push(f);if(h)for(const[f,p]of Object.entries(h))typeof p=="function"?p(ml(r,f)):Object.assign(ml(r,f)||{},p);return s}},a=e.map(u=>u.init(s,o,r));function l(u){const h=u.endpoints({query:f=>({...f,type:fu}),mutation:f=>({...f,type:VE}),infiniteQuery:f=>({...f,type:WE})});for(const[f,p]of Object.entries(h)){if(u.overrideExisting!==!0&&f in r.endpointDefinitions){if(u.overrideExisting==="throw")throw new Error(Oo(39));continue}r.endpointDefinitions[f]=p;for(const m of a)m.injectEndpoint(f,p)}return s}return s.injectEndpoints({endpoints:n.endpoints})}}function gr(e,...t){return Object.assign(e,...t)}var XQ=({api:e,queryThunk:t,internalState:n,mwApi:i})=>{const o=`${e.reducerPath}/subscriptions`;let r=null,s=null;const{updateSubscriptionOptions:a,unsubscribeQueryResult:l}=e.internalActions,u=(w,b)=>{if(a.match(b)){const{queryCacheKey:R,requestId:S,options:x}=b.payload,P=w.get(R);return P?.has(S)&&P.set(S,x),!0}if(l.match(b)){const{queryCacheKey:R,requestId:S}=b.payload,x=w.get(R);return x&&x.delete(S),!0}if(e.internalActions.removeQueryResult.match(b))return w.delete(b.payload.queryCacheKey),!0;if(t.pending.match(b)){const{meta:{arg:R,requestId:S}}=b,x=wf(w,R.queryCacheKey,zC);return R.subscribe&&x.set(S,R.subscriptionOptions??x.get(S)??{}),!0}let y=!1;if(t.rejected.match(b)){const{meta:{condition:R,arg:S,requestId:x}}=b;if(R&&S.subscribe){const P=wf(w,S.queryCacheKey,zC);P.set(x,S.subscriptionOptions??P.get(x)??{}),y=!0}}return y},h=()=>n.currentSubscriptions,m={getSubscriptions:h,getSubscriptionCount:w=>h().get(w)?.size??0,isRequestSubscribed:(w,b)=>!!h()?.get(w)?.get(b)};function v(w){return JSON.parse(JSON.stringify(Object.fromEntries([...w].map(([b,y])=>[b,Object.fromEntries(y)]))))}return(w,b)=>{if(r||(r=v(n.currentSubscriptions)),e.util.resetApiState.match(w))return r={},n.currentSubscriptions.clear(),s=null,[!0,!1];if(e.internalActions.internal_getRTKQSubscriptions.match(w))return[!1,m];const y=u(n.currentSubscriptions,w);let R=!0;if(y){s||(s=setTimeout(()=>{const P=v(n.currentSubscriptions),[,D]=vE(r,()=>P);b.next(e.internalActions.subscriptionsUpdated(D)),r=P,s=null},500));const S=typeof w.type=="string"&&!!w.type.startsWith(o),x=t.rejected.match(w)&&w.meta.condition&&!!w.meta.arg.subscribe;R=!S&&!x}return[R,!1]}},JQ=2147483647/1e3-1,eY=({reducerPath:e,api:t,queryThunk:n,context:i,internalState:o,selectors:{selectQueryEntry:r,selectConfig:s},getRunningQueryThunk:a,mwApi:l})=>{const{removeQueryResult:u,unsubscribeQueryResult:h,cacheEntriesUpserted:f}=t.internalActions,p=fr(h.match,n.fulfilled,n.rejected,f.match);function m(S){const x=o.currentSubscriptions.get(S);return x?x.size>0:!1}const v={};function w(S){for(const x of S.values())x?.abort?.()}const b=(S,x)=>{const P=x.getState(),D=s(P);if(p(S)){let A;if(f.match(S))A=S.payload.map(N=>N.queryDescription.queryCacheKey);else{const{queryCacheKey:N}=h.match(S)?S.payload:S.meta.arg;A=[N]}y(A,x,D)}if(t.util.resetApiState.match(S)){for(const[A,N]of Object.entries(v))N&&clearTimeout(N),delete v[A];w(o.runningQueries),w(o.runningMutations)}if(i.hasRehydrationInfo(S)){const{queries:A}=i.extractRehydrationInfo(S);y(Object.keys(A),x,D)}};function y(S,x,P){const D=x.getState();for(const A of S){const N=r(D,A);N?.endpointName&&R(A,N.endpointName,x,P)}}function R(S,x,P,D){const N=ml(i,x)?.keepUnusedDataFor??D.keepUnusedDataFor;if(N===1/0)return;const B=Math.max(0,Math.min(N,JQ));if(!m(S)){const L=v[S];L&&clearTimeout(L),v[S]=setTimeout(()=>{if(!m(S)){const M=r(P.getState(),S);M?.endpointName&&P.dispatch(a(M.endpointName,M.originalArgs))?.abort(),P.dispatch(u({queryCacheKey:S}))}delete v[S]},B*1e3)}}return b},tD=new Error("Promise never resolved before cacheEntryRemoved."),tY=({api:e,reducerPath:t,context:n,queryThunk:i,mutationThunk:o,internalState:r,selectors:{selectQueryEntry:s,selectApiState:a}})=>{const l=NC(i),u=NC(o),h=as(i,o),f={},{removeQueryResult:p,removeMutationResult:m,cacheEntriesUpserted:v}=e.internalActions;function w(P,D,A){const N=f[P];N?.valueResolved&&(N.valueResolved({data:D,meta:A}),delete N.valueResolved)}function b(P){const D=f[P];D&&(delete f[P],D.cacheEntryRemoved())}function y(P){const{arg:D,requestId:A}=P.meta,{endpointName:N,originalArgs:B}=D;return[N,B,A]}const R=(P,D,A)=>{const N=S(P);function B(L,M,I,O){const Q=s(A,M),te=s(D.getState(),M);!Q&&te&&x(L,O,M,D,I)}if(i.pending.match(P)){const[L,M,I]=y(P);B(L,N,I,M)}else if(v.match(P))for(const{queryDescription:L,value:M}of P.payload){const{endpointName:I,originalArgs:O,queryCacheKey:Q}=L;B(I,Q,P.meta.requestId,O),w(Q,M,{})}else if(o.pending.match(P)){if(D.getState()[t].mutations[N]){const[M,I,O]=y(P);x(M,I,N,D,O)}}else if(h(P))w(N,P.payload,P.meta.baseQueryMeta);else if(p.match(P)||m.match(P))b(N);else if(e.util.resetApiState.match(P))for(const L of Object.keys(f))b(L)};function S(P){return l(P)?P.meta.arg.queryCacheKey:u(P)?P.meta.arg.fixedCacheKey??P.meta.requestId:p.match(P)?P.payload.queryCacheKey:m.match(P)?mu(P.payload):""}function x(P,D,A,N,B){const L=ml(n,P),M=L?.onCacheEntryAdded;if(!M)return;const I={},O=new Promise(xe=>{I.cacheEntryRemoved=xe}),Q=Promise.race([new Promise(xe=>{I.valueResolved=xe}),O.then(()=>{throw tD})]);Q.catch(()=>{}),f[A]=I;const te=e.endpoints[P].select(Rf(L)?D:A),Fe=N.dispatch((xe,Ie,G)=>G),we={...N,getCacheEntry:()=>te(N.getState()),requestId:B,extra:Fe,updateCachedData:Rf(L)?xe=>N.dispatch(e.util.updateQueryData(P,D,xe)):void 0,cacheDataLoaded:Q,cacheEntryRemoved:O},he=M(D,we);Promise.resolve(he).catch(xe=>{if(xe!==tD)throw xe})}return R},nY=({api:e,context:{apiUid:t},reducerPath:n})=>(i,o)=>{e.util.resetApiState.match(i)&&o.dispatch(e.internalActions.middlewareRegistered(t))},iY=({reducerPath:e,context:t,context:{endpointDefinitions:n},mutationThunk:i,queryThunk:o,api:r,assertTagType:s,refetchQuery:a,internalState:l})=>{const{removeQueryResult:u}=r.internalActions,h=fr(as(i),vf(i)),f=fr(as(o,i),gl(o,i));let p=[],m=0;const v=(y,R)=>{(o.pending.match(y)||i.pending.match(y))&&m++,f(y)&&(m=Math.max(0,m-1)),h(y)?b(KE(y,"invalidatesTags",n,s),R):f(y)?b([],R):r.util.invalidateTags.match(y)&&b(jC(y.payload,void 0,void 0,void 0,void 0,s),R)};function w(){return m>0}function b(y,R){const S=R.getState(),x=S[e];if(p.push(...y),x.config.invalidationBehavior==="delayed"&&w())return;const P=p;if(p=[],P.length===0)return;const D=r.util.selectInvalidatedBy(S,P);t.batch(()=>{const A=Array.from(D.values());for(const{queryCacheKey:N}of A){const B=x.queries[N],L=wf(l.currentSubscriptions,N,zC);B&&(L.size===0?R.dispatch(u({queryCacheKey:N})):B.status!==pr&&R.dispatch(a(B)))}})}return v},oY=({reducerPath:e,queryThunk:t,api:n,refetchQuery:i,internalState:o})=>{const{currentPolls:r,currentSubscriptions:s}=o,a=new Set;let l=null;const u=(b,y)=>{(n.internalActions.updateSubscriptionOptions.match(b)||n.internalActions.unsubscribeQueryResult.match(b))&&h(b.payload.queryCacheKey,y),(t.pending.match(b)||t.rejected.match(b)&&b.meta.condition)&&h(b.meta.arg.queryCacheKey,y),(t.fulfilled.match(b)||t.rejected.match(b)&&!b.meta.condition)&&f(b.meta.arg,y),n.util.resetApiState.match(b)&&(v(),l&&(clearTimeout(l),l=null),a.clear())};function h(b,y){a.add(b),l||(l=setTimeout(()=>{for(const R of a)p({queryCacheKey:R},y);a.clear(),l=null},0))}function f({queryCacheKey:b},y){const R=y.getState()[e],S=R.queries[b],x=s.get(b);if(!S||S.status===pr)return;const{lowestPollingInterval:P,skipPollingIfUnfocused:D}=w(x);if(!Number.isFinite(P))return;const A=r.get(b);A?.timeout&&(clearTimeout(A.timeout),A.timeout=void 0);const N=Date.now()+P;r.set(b,{nextPollTimestamp:N,pollingInterval:P,timeout:setTimeout(()=>{(R.config.focused||!D)&&y.dispatch(i(S)),f({queryCacheKey:b},y)},P)})}function p({queryCacheKey:b},y){const S=y.getState()[e].queries[b],x=s.get(b);if(!S||S.status===pr)return;const{lowestPollingInterval:P}=w(x);if(!Number.isFinite(P)){m(b);return}const D=r.get(b),A=Date.now()+P;(!D||A<D.nextPollTimestamp)&&f({queryCacheKey:b},y)}function m(b){const y=r.get(b);y?.timeout&&clearTimeout(y.timeout),r.delete(b)}function v(){for(const b of r.keys())m(b)}function w(b=new Map){let y=!1,R=Number.POSITIVE_INFINITY;for(const S of b.values())S.pollingInterval&&(R=Math.min(S.pollingInterval,R),y=S.skipPollingIfUnfocused||y);return{lowestPollingInterval:R,skipPollingIfUnfocused:y}}return u},rY=({api:e,context:t,queryThunk:n,mutationThunk:i})=>{const o=OC(n,i),r=gl(n,i),s=as(n,i),a={};return(u,h)=>{if(o(u)){const{requestId:f,arg:{endpointName:p,originalArgs:m}}=u.meta,v=ml(t,p),w=v?.onQueryStarted;if(w){const b={},y=new Promise((P,D)=>{b.resolve=P,b.reject=D});y.catch(()=>{}),a[f]=b;const R=e.endpoints[p].select(Rf(v)?m:f),S=h.dispatch((P,D,A)=>A),x={...h,getCacheEntry:()=>R(h.getState()),requestId:f,extra:S,updateCachedData:Rf(v)?P=>h.dispatch(e.util.updateQueryData(p,m,P)):void 0,queryFulfilled:y};w(m,x)}}else if(s(u)){const{requestId:f,baseQueryMeta:p}=u.meta;a[f]?.resolve({data:u.payload,meta:p}),delete a[f]}else if(r(u)){const{requestId:f,rejectedWithValue:p,baseQueryMeta:m}=u.meta;a[f]?.reject({error:u.payload??u.error,isUnhandledError:!p,meta:m}),delete a[f]}}},sY=({reducerPath:e,context:t,api:n,refetchQuery:i,internalState:o})=>{const{removeQueryResult:r}=n.internalActions,s=(l,u)=>{UC.match(l)&&a(u,"refetchOnFocus"),$C.match(l)&&a(u,"refetchOnReconnect")};function a(l,u){const h=l.getState()[e],f=h.queries,p=o.currentSubscriptions;t.batch(()=>{for(const m of p.keys()){const v=f[m],w=p.get(m);if(!w||!v)continue;const b=[...w.values()];(b.some(R=>R[u]===!0)||b.every(R=>R[u]===void 0)&&h.config[u])&&(w.size===0?l.dispatch(r({queryCacheKey:m})):v.status!==pr&&l.dispatch(i(v)))}})}return s};function aY(e){const{reducerPath:t,queryThunk:n,api:i,context:o,getInternalState:r}=e,{apiUid:s}=o,a={invalidateTags:co(`${t}/invalidateTags`)},l=p=>p.type.startsWith(`${t}/`),u=[nY,eY,iY,oY,tY,rY];return{middleware:p=>{let m=!1;const v=r(p.dispatch),w={...e,internalState:v,refetchQuery:f,isThisApiSliceAction:l,mwApi:p},b=u.map(S=>S(w)),y=XQ(w),R=sY(w);return S=>x=>{if(!tE(x))return S(x);m||(m=!0,p.dispatch(i.internalActions.middlewareRegistered(s)));const P={...p,next:S},D=p.getState(),[A,N]=y(x,P,D);let B;if(A?B=S(x):B=N,p.getState()[t]&&(R(x,P,D),l(x)||o.hasRehydrationInfo(x)))for(const L of b)L(x,P,D);return B}},actions:a};function f(p){return e.api.endpoints[p.endpointName].initiate(p.originalArgs,{subscribe:!1,forceRefetch:!0})}}var nD=Symbol(),lY=({createSelector:e=yE}={})=>({name:nD,init(t,{baseQuery:n,tagTypes:i,reducerPath:o,serializeQueryArgs:r,keepUnusedDataFor:s,refetchOnMountOrArgChange:a,refetchOnFocus:l,refetchOnReconnect:u,invalidationBehavior:h,onSchemaFailure:f,catchSchemaFailure:p,skipSchemaValidation:m},v){Kq();const w=ve=>ve;Object.assign(t,{reducerPath:o,endpoints:{},internalActions:{onOnline:$C,onOffline:HE,onFocus:UC,onFocusLost:GE},util:{}});const b=YQ({serializeQueryArgs:r,reducerPath:o,createSelector:e}),{selectInvalidatedBy:y,selectCachedArgsForQuery:R,buildQuerySelector:S,buildInfiniteQuerySelector:x,buildMutationSelector:P}=b;gr(t.util,{selectInvalidatedBy:y,selectCachedArgsForQuery:R});const{queryThunk:D,infiniteQueryThunk:A,mutationThunk:N,patchQueryData:B,updateQueryData:L,upsertQueryData:M,prefetch:I,buildMatchThunkActions:O}=qQ({baseQuery:n,reducerPath:o,context:v,api:t,serializeQueryArgs:r,assertTagType:w,selectors:b,onSchemaFailure:f,catchSchemaFailure:p,skipSchemaValidation:m}),{reducer:Q,actions:te}=QQ({context:v,queryThunk:D,mutationThunk:N,serializeQueryArgs:r,reducerPath:o,assertTagType:w,config:{refetchOnFocus:l,refetchOnReconnect:u,refetchOnMountOrArgChange:a,keepUnusedDataFor:s,reducerPath:o,invalidationBehavior:h}});gr(t.util,{patchQueryData:B,updateQueryData:L,upsertQueryData:M,prefetch:I,resetApiState:te.resetApiState,upsertQueryEntries:te.cacheEntriesUpserted}),gr(t.internalActions,te);const Fe=new WeakMap,we=ve=>wf(Fe,ve,()=>({currentSubscriptions:new Map,currentPolls:new Map,runningQueries:new Map,runningMutations:new Map})),{buildInitiateQuery:he,buildInitiateInfiniteQuery:xe,buildInitiateMutation:Ie,getRunningMutationThunk:G,getRunningMutationsThunk:q,getRunningQueriesThunk:j,getRunningQueryThunk:ae}=KQ({queryThunk:D,mutationThunk:N,infiniteQueryThunk:A,api:t,serializeQueryArgs:r,context:v,getInternalState:we});gr(t.util,{getRunningMutationThunk:G,getRunningMutationsThunk:q,getRunningQueryThunk:ae,getRunningQueriesThunk:j});const{middleware:Pe,actions:Te}=aY({reducerPath:o,context:v,queryThunk:D,mutationThunk:N,infiniteQueryThunk:A,api:t,assertTagType:w,selectors:b,getRunningQueryThunk:ae,getInternalState:we});return gr(t.util,Te),gr(t,{reducer:Q,middleware:Pe}),{name:nD,injectEndpoint(ve,_e){const ze=t,Ue=ze.endpoints[ve]??={};yf(_e)&&gr(Ue,{name:ve,select:S(ve,_e),initiate:he(ve,_e)},O(D,ve)),UQ(_e)&&gr(Ue,{name:ve,select:P(),initiate:Ie(ve)},O(N,ve)),Sf(_e)&&gr(Ue,{name:ve,select:x(ve,_e),initiate:xe(ve,_e)},O(D,ve))}}}}),cY=ZQ(lY());const Hi=cY({baseQuery:VQ({baseUrl:"http://localhost:3000/pcv/api/v2"}),endpoints:()=>({})});var Vi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function iD(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var vu={exports:{}},uY=vu.exports,oD;function dY(){return oD||(oD=1,(function(e,t){(function(n,i){i(t)})(uY,function(n){function i(G,q){G.super_=q,G.prototype=Object.create(q.prototype,{constructor:{value:G,enumerable:!1,writable:!0,configurable:!0}})}function o(G,q){Object.defineProperty(this,"kind",{value:G,enumerable:!0}),q&&q.length&&Object.defineProperty(this,"path",{value:q,enumerable:!0})}function r(G,q,j){r.super_.call(this,"E",G),Object.defineProperty(this,"lhs",{value:q,enumerable:!0}),Object.defineProperty(this,"rhs",{value:j,enumerable:!0})}function s(G,q){s.super_.call(this,"N",G),Object.defineProperty(this,"rhs",{value:q,enumerable:!0})}function a(G,q){a.super_.call(this,"D",G),Object.defineProperty(this,"lhs",{value:q,enumerable:!0})}function l(G,q,j){l.super_.call(this,"A",G),Object.defineProperty(this,"index",{value:q,enumerable:!0}),Object.defineProperty(this,"item",{value:j,enumerable:!0})}function u(G,q,j){var ae=G.slice(q+1||G.length);return G.length=q<0?G.length+q:q,G.push.apply(G,ae),G}function h(G){var q=typeof G>"u"?"undefined":te(G);return q!=="object"?q:G===Math?"math":G===null?"null":Array.isArray(G)?"array":Object.prototype.toString.call(G)==="[object Date]"?"date":typeof G.toString=="function"&&/^\/.*\//.test(G.toString())?"regexp":"object"}function f(G,q,j,ae,Pe,Te,ve){Pe=Pe||[],ve=ve||[];var _e=Pe.slice(0);if(typeof Te<"u"){if(ae){if(typeof ae=="function"&&ae(_e,Te))return;if((typeof ae>"u"?"undefined":te(ae))==="object"){if(ae.prefilter&&ae.prefilter(_e,Te))return;if(ae.normalize){var ze=ae.normalize(_e,Te,G,q);ze&&(G=ze[0],q=ze[1])}}}_e.push(Te)}h(G)==="regexp"&&h(q)==="regexp"&&(G=G.toString(),q=q.toString());var Ue=typeof G>"u"?"undefined":te(G),pt=typeof q>"u"?"undefined":te(q),k=Ue!=="undefined"||ve&&ve[ve.length-1].lhs&&ve[ve.length-1].lhs.hasOwnProperty(Te),H=pt!=="undefined"||ve&&ve[ve.length-1].rhs&&ve[ve.length-1].rhs.hasOwnProperty(Te);if(!k&&H)j(new s(_e,q));else if(!H&&k)j(new a(_e,G));else if(h(G)!==h(q))j(new r(_e,G,q));else if(h(G)==="date"&&G-q!==0)j(new r(_e,G,q));else if(Ue==="object"&&G!==null&&q!==null)if(ve.filter(function(Z){return Z.lhs===G}).length)G!==q&&j(new r(_e,G,q));else{if(ve.push({lhs:G,rhs:q}),Array.isArray(G)){var U;for(G.length,U=0;U<G.length;U++)U>=q.length?j(new l(_e,U,new a(void 0,G[U]))):f(G[U],q[U],j,ae,_e,U,ve);for(;U<q.length;)j(new l(_e,U,new s(void 0,q[U++])))}else{var ne=Object.keys(G),ee=Object.keys(q);ne.forEach(function(Z,ge){var fe=ee.indexOf(Z);fe>=0?(f(G[Z],q[Z],j,ae,_e,Z,ve),ee=u(ee,fe)):f(G[Z],void 0,j,ae,_e,Z,ve)}),ee.forEach(function(Z){f(void 0,q[Z],j,ae,_e,Z,ve)})}ve.length=ve.length-1}else G!==q&&(Ue==="number"&&isNaN(G)&&isNaN(q)||j(new r(_e,G,q)))}function p(G,q,j,ae){return ae=ae||[],f(G,q,function(Pe){Pe&&ae.push(Pe)},j),ae.length?ae:void 0}function m(G,q,j){if(j.path&&j.path.length){var ae,Pe=G[q],Te=j.path.length-1;for(ae=0;ae<Te;ae++)Pe=Pe[j.path[ae]];switch(j.kind){case"A":m(Pe[j.path[ae]],j.index,j.item);break;case"D":delete Pe[j.path[ae]];break;case"E":case"N":Pe[j.path[ae]]=j.rhs}}else switch(j.kind){case"A":m(G[q],j.index,j.item);break;case"D":G=u(G,q);break;case"E":case"N":G[q]=j.rhs}return G}function v(G,q,j){if(G&&q&&j&&j.kind){for(var ae=G,Pe=-1,Te=j.path?j.path.length-1:0;++Pe<Te;)typeof ae[j.path[Pe]]>"u"&&(ae[j.path[Pe]]=typeof j.path[Pe]=="number"?[]:{}),ae=ae[j.path[Pe]];switch(j.kind){case"A":m(j.path?ae[j.path[Pe]]:ae,j.index,j.item);break;case"D":delete ae[j.path[Pe]];break;case"E":case"N":ae[j.path[Pe]]=j.rhs}}}function w(G,q,j){if(j.path&&j.path.length){var ae,Pe=G[q],Te=j.path.length-1;for(ae=0;ae<Te;ae++)Pe=Pe[j.path[ae]];switch(j.kind){case"A":w(Pe[j.path[ae]],j.index,j.item);break;case"D":Pe[j.path[ae]]=j.lhs;break;case"E":Pe[j.path[ae]]=j.lhs;break;case"N":delete Pe[j.path[ae]]}}else switch(j.kind){case"A":w(G[q],j.index,j.item);break;case"D":G[q]=j.lhs;break;case"E":G[q]=j.lhs;break;case"N":G=u(G,q)}return G}function b(G,q,j){if(G&&q&&j&&j.kind){var ae,Pe,Te=G;for(Pe=j.path.length-1,ae=0;ae<Pe;ae++)typeof Te[j.path[ae]]>"u"&&(Te[j.path[ae]]={}),Te=Te[j.path[ae]];switch(j.kind){case"A":w(Te[j.path[ae]],j.index,j.item);break;case"D":Te[j.path[ae]]=j.lhs;break;case"E":Te[j.path[ae]]=j.lhs;break;case"N":delete Te[j.path[ae]]}}}function y(G,q,j){if(G&&q){var ae=function(Pe){j&&!j(G,q,Pe)||v(G,q,Pe)};f(G,q,ae)}}function R(G){return"color: "+he[G].color+"; font-weight: bold"}function S(G){var q=G.kind,j=G.path,ae=G.lhs,Pe=G.rhs,Te=G.index,ve=G.item;switch(q){case"E":return[j.join("."),ae,"→",Pe];case"N":return[j.join("."),Pe];case"D":return[j.join(".")];case"A":return[j.join(".")+"["+Te+"]",ve];default:return[]}}function x(G,q,j,ae){var Pe=p(G,q);try{ae?j.groupCollapsed("diff"):j.group("diff")}catch{j.log("diff")}Pe?Pe.forEach(function(Te){var ve=Te.kind,_e=S(Te);j.log.apply(j,["%c "+he[ve].text,R(ve)].concat(Fe(_e)))}):j.log("—— no diff ——");try{j.groupEnd()}catch{j.log("—— diff end —— ")}}function P(G,q,j,ae){switch(typeof G>"u"?"undefined":te(G)){case"object":return typeof G[ae]=="function"?G[ae].apply(G,Fe(j)):G[ae];case"function":return G(q);default:return G}}function D(G){var q=G.timestamp,j=G.duration;return function(ae,Pe,Te){var ve=["action"];return ve.push("%c"+String(ae.type)),q&&ve.push("%c@ "+Pe),j&&ve.push("%c(in "+Te.toFixed(2)+" ms)"),ve.join(" ")}}function A(G,q){var j=q.logger,ae=q.actionTransformer,Pe=q.titleFormatter,Te=Pe===void 0?D(q):Pe,ve=q.collapsed,_e=q.colors,ze=q.level,Ue=q.diff,pt=typeof q.titleFormatter>"u";G.forEach(function(k,H){var U=k.started,ne=k.startedTime,ee=k.action,Z=k.prevState,ge=k.error,fe=k.took,ce=k.nextState,ie=G[H+1];ie&&(ce=ie.prevState,fe=ie.started-U);var Me=ae(ee),ye=typeof ve=="function"?ve(function(){return ce},ee,k):ve,Ge=O(ne),Ve=_e.title?"color: "+_e.title(Me)+";":"",et=["color: gray; font-weight: lighter;"];et.push(Ve),q.timestamp&&et.push("color: gray; font-weight: lighter;"),q.duration&&et.push("color: gray; font-weight: lighter;");var Je=Te(Me,Ge,fe);try{ye?_e.title&&pt?j.groupCollapsed.apply(j,["%c "+Je].concat(et)):j.groupCollapsed(Je):_e.title&&pt?j.group.apply(j,["%c "+Je].concat(et)):j.group(Je)}catch{j.log(Je)}var ot=P(ze,Me,[Z],"prevState"),Ht=P(ze,Me,[Me],"action"),Vt=P(ze,Me,[ge,Z],"error"),tn=P(ze,Me,[ce],"nextState");if(ot)if(_e.prevState){var pn="color: "+_e.prevState(Z)+"; font-weight: bold";j[ot]("%c prev state",pn,Z)}else j[ot]("prev state",Z);if(Ht)if(_e.action){var bi="color: "+_e.action(Me)+"; font-weight: bold";j[Ht]("%c action ",bi,Me)}else j[Ht]("action ",Me);if(ge&&Vt)if(_e.error){var ke="color: "+_e.error(ge,Z)+"; font-weight: bold;";j[Vt]("%c error ",ke,ge)}else j[Vt]("error ",ge);if(tn)if(_e.nextState){var Ae="color: "+_e.nextState(ce)+"; font-weight: bold";j[tn]("%c next state",Ae,ce)}else j[tn]("next state",ce);Ue&&x(Z,ce,j,ye);try{j.groupEnd()}catch{j.log("—— log end ——")}})}function N(){var G=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},q=Object.assign({},xe,G),j=q.logger,ae=q.stateTransformer,Pe=q.errorTransformer,Te=q.predicate,ve=q.logErrors,_e=q.diffPredicate;if(typeof j>"u")return function(){return function(Ue){return function(pt){return Ue(pt)}}};if(G.getState&&G.dispatch)return console.error(`[redux-logger] redux-logger not installed. Make sure to pass logger instance as middleware:
625
+ // Logger with default options
626
+ import { logger } from 'redux-logger'
627
+ const store = createStore(
628
+ reducer,
629
+ applyMiddleware(logger)
630
+ )
631
+ // Or you can create your own logger with custom options http://bit.ly/redux-logger-options
632
+ import createLogger from 'redux-logger'
633
+ const logger = createLogger({
634
+ // ...options
635
+ });
636
+ const store = createStore(
637
+ reducer,
638
+ applyMiddleware(logger)
639
+ )
640
+ `),function(){return function(Ue){return function(pt){return Ue(pt)}}};var ze=[];return function(Ue){var pt=Ue.getState;return function(k){return function(H){if(typeof Te=="function"&&!Te(pt,H))return k(H);var U={};ze.push(U),U.started=Q.now(),U.startedTime=new Date,U.prevState=ae(pt()),U.action=H;var ne=void 0;if(ve)try{ne=k(H)}catch(Z){U.error=Pe(Z)}else ne=k(H);U.took=Q.now()-U.started,U.nextState=ae(pt());var ee=q.diff&&typeof _e=="function"?_e(pt,H):q.diff;if(A(ze,Object.assign({},q,{diff:ee})),ze.length=0,U.error)throw U.error;return ne}}}}var B,L,M=function(G,q){return new Array(q+1).join(G)},I=function(G,q){return M("0",q-G.toString().length)+G},O=function(G){return I(G.getHours(),2)+":"+I(G.getMinutes(),2)+":"+I(G.getSeconds(),2)+"."+I(G.getMilliseconds(),3)},Q=typeof performance<"u"&&performance!==null&&typeof performance.now=="function"?performance:Date,te=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(G){return typeof G}:function(G){return G&&typeof Symbol=="function"&&G.constructor===Symbol&&G!==Symbol.prototype?"symbol":typeof G},Fe=function(G){if(Array.isArray(G)){for(var q=0,j=Array(G.length);q<G.length;q++)j[q]=G[q];return j}return Array.from(G)},we=[];B=(typeof Vi>"u"?"undefined":te(Vi))==="object"&&Vi?Vi:typeof window<"u"?window:{},L=B.DeepDiff,L&&we.push(function(){typeof L<"u"&&B.DeepDiff===p&&(B.DeepDiff=L,L=void 0)}),i(r,o),i(s,o),i(a,o),i(l,o),Object.defineProperties(p,{diff:{value:p,enumerable:!0},observableDiff:{value:f,enumerable:!0},applyDiff:{value:y,enumerable:!0},applyChange:{value:v,enumerable:!0},revertChange:{value:b,enumerable:!0},isConflict:{value:function(){return typeof L<"u"},enumerable:!0},noConflict:{value:function(){return we&&(we.forEach(function(G){G()}),we=null),p},enumerable:!0}});var he={E:{color:"#2196F3",text:"CHANGED:"},N:{color:"#4CAF50",text:"ADDED:"},D:{color:"#F44336",text:"DELETED:"},A:{color:"#2196F3",text:"ARRAY:"}},xe={level:"log",logger:console,logErrors:!0,collapsed:void 0,predicate:void 0,duration:!1,timestamp:!0,stateTransformer:function(G){return G},actionTransformer:function(G){return G},errorTransformer:function(G){return G},colors:{title:function(){return"inherit"},prevState:function(){return"#9E9E9E"},action:function(){return"#03A9F4"},nextState:function(){return"#4CAF50"},error:function(){return"#F20404"}},diff:!1,diffPredicate:void 0,transformer:void 0},Ie=function(){var G=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},q=G.dispatch,j=G.getState;return typeof q=="function"||typeof j=="function"?N()({dispatch:q,getState:j}):void console.error(`
641
+ [redux-logger v3] BREAKING CHANGE
642
+ [redux-logger v3] Since 3.0.0 redux-logger exports by default logger with default settings.
643
+ [redux-logger v3] Change
644
+ [redux-logger v3] import createLogger from 'redux-logger'
645
+ [redux-logger v3] to
646
+ [redux-logger v3] import { createLogger } from 'redux-logger'
647
+ `)};n.defaults=xe,n.createLogger=N,n.logger=Ie,n.default=Ie,Object.defineProperty(n,"__esModule",{value:!0})})})(vu,vu.exports)),vu.exports}dY();var Cu={exports:{}};var hY=Cu.exports,rD;function fY(){return rD||(rD=1,(function(e,t){(function(){var n,i="4.17.23",o=200,r="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",s="Expected a function",a="Invalid `variable` option passed into `_.template`",l="__lodash_hash_undefined__",u=500,h="__lodash_placeholder__",f=1,p=2,m=4,v=1,w=2,b=1,y=2,R=4,S=8,x=16,P=32,D=64,A=128,N=256,B=512,L=30,M="...",I=800,O=16,Q=1,te=2,Fe=3,we=1/0,he=9007199254740991,xe=17976931348623157e292,Ie=NaN,G=4294967295,q=G-1,j=G>>>1,ae=[["ary",A],["bind",b],["bindKey",y],["curry",S],["curryRight",x],["flip",B],["partial",P],["partialRight",D],["rearg",N]],Pe="[object Arguments]",Te="[object Array]",ve="[object AsyncFunction]",_e="[object Boolean]",ze="[object Date]",Ue="[object DOMException]",pt="[object Error]",k="[object Function]",H="[object GeneratorFunction]",U="[object Map]",ne="[object Number]",ee="[object Null]",Z="[object Object]",ge="[object Promise]",fe="[object Proxy]",ce="[object RegExp]",ie="[object Set]",Me="[object String]",ye="[object Symbol]",Ge="[object Undefined]",Ve="[object WeakMap]",et="[object WeakSet]",Je="[object ArrayBuffer]",ot="[object DataView]",Ht="[object Float32Array]",Vt="[object Float64Array]",tn="[object Int8Array]",pn="[object Int16Array]",bi="[object Int32Array]",ke="[object Uint8Array]",Ae="[object Uint8ClampedArray]",je="[object Uint16Array]",Oe="[object Uint32Array]",$e=/\b__p \+= '';/g,Pn=/\b(__p \+=) '' \+/g,No=/(__e\(.*?\)|\b__t\)) \+\n'';/g,an=/&(?:amp|lt|gt|quot|#39);/g,Kn=/[&<>"']/g,Su=RegExp(an.source),ca=RegExp(Kn.source),$ee=/<%-([\s\S]+?)%>/g,jee=/<%([\s\S]+?)%>/g,LD=/<%=([\s\S]+?)%>/g,Kee=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,qee=/^\w*$/,Qee=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,aw=/[\\^$.*+?()[\]{}|]/g,Yee=RegExp(aw.source),lw=/^\s+/,Zee=/\s/,Xee=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Jee=/\{\n\/\* \[wrapped with (.+)\] \*/,ete=/,? & /,tte=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,nte=/[()=,{}\[\]\/\s]/,ite=/\\(\\)?/g,ote=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,_D=/\w*$/,rte=/^[-+]0x[0-9a-f]+$/i,ste=/^0b[01]+$/i,ate=/^\[object .+?Constructor\]$/,lte=/^0o[0-7]+$/i,cte=/^(?:0|[1-9]\d*)$/,ute=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Mf=/($^)/,dte=/['\n\r\u2028\u2029\\]/g,kf="\\ud800-\\udfff",hte="\\u0300-\\u036f",fte="\\ufe20-\\ufe2f",pte="\\u20d0-\\u20ff",OD=hte+fte+pte,ND="\\u2700-\\u27bf",BD="a-z\\xdf-\\xf6\\xf8-\\xff",gte="\\xac\\xb1\\xd7\\xf7",mte="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",vte="\\u2000-\\u206f",Cte=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",GD="A-Z\\xc0-\\xd6\\xd8-\\xde",HD="\\ufe0e\\ufe0f",VD=gte+mte+vte+Cte,cw="['’]",wte="["+kf+"]",WD="["+VD+"]",Lf="["+OD+"]",zD="\\d+",bte="["+ND+"]",UD="["+BD+"]",$D="[^"+kf+VD+zD+ND+BD+GD+"]",uw="\\ud83c[\\udffb-\\udfff]",yte="(?:"+Lf+"|"+uw+")",jD="[^"+kf+"]",dw="(?:\\ud83c[\\udde6-\\uddff]){2}",hw="[\\ud800-\\udbff][\\udc00-\\udfff]",vl="["+GD+"]",KD="\\u200d",qD="(?:"+UD+"|"+$D+")",Ste="(?:"+vl+"|"+$D+")",QD="(?:"+cw+"(?:d|ll|m|re|s|t|ve))?",YD="(?:"+cw+"(?:D|LL|M|RE|S|T|VE))?",ZD=yte+"?",XD="["+HD+"]?",Rte="(?:"+KD+"(?:"+[jD,dw,hw].join("|")+")"+XD+ZD+")*",Fte="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",xte="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",JD=XD+ZD+Rte,Pte="(?:"+[bte,dw,hw].join("|")+")"+JD,Ete="(?:"+[jD+Lf+"?",Lf,dw,hw,wte].join("|")+")",Dte=RegExp(cw,"g"),Tte=RegExp(Lf,"g"),fw=RegExp(uw+"(?="+uw+")|"+Ete+JD,"g"),Ate=RegExp([vl+"?"+UD+"+"+QD+"(?="+[WD,vl,"$"].join("|")+")",Ste+"+"+YD+"(?="+[WD,vl+qD,"$"].join("|")+")",vl+"?"+qD+"+"+QD,vl+"+"+YD,xte,Fte,zD,Pte].join("|"),"g"),Ite=RegExp("["+KD+kf+OD+HD+"]"),Mte=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,kte=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Lte=-1,kt={};kt[Ht]=kt[Vt]=kt[tn]=kt[pn]=kt[bi]=kt[ke]=kt[Ae]=kt[je]=kt[Oe]=!0,kt[Pe]=kt[Te]=kt[Je]=kt[_e]=kt[ot]=kt[ze]=kt[pt]=kt[k]=kt[U]=kt[ne]=kt[Z]=kt[ce]=kt[ie]=kt[Me]=kt[Ve]=!1;var Tt={};Tt[Pe]=Tt[Te]=Tt[Je]=Tt[ot]=Tt[_e]=Tt[ze]=Tt[Ht]=Tt[Vt]=Tt[tn]=Tt[pn]=Tt[bi]=Tt[U]=Tt[ne]=Tt[Z]=Tt[ce]=Tt[ie]=Tt[Me]=Tt[ye]=Tt[ke]=Tt[Ae]=Tt[je]=Tt[Oe]=!0,Tt[pt]=Tt[k]=Tt[Ve]=!1;var _te={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},Ote={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Nte={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},Bte={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Gte=parseFloat,Hte=parseInt,eT=typeof Vi=="object"&&Vi&&Vi.Object===Object&&Vi,Vte=typeof self=="object"&&self&&self.Object===Object&&self,En=eT||Vte||Function("return this")(),pw=t&&!t.nodeType&&t,ua=pw&&!0&&e&&!e.nodeType&&e,tT=ua&&ua.exports===pw,gw=tT&&eT.process,Wi=(function(){try{var z=ua&&ua.require&&ua.require("util").types;return z||gw&&gw.binding&&gw.binding("util")}catch{}})(),nT=Wi&&Wi.isArrayBuffer,iT=Wi&&Wi.isDate,oT=Wi&&Wi.isMap,rT=Wi&&Wi.isRegExp,sT=Wi&&Wi.isSet,aT=Wi&&Wi.isTypedArray;function yi(z,J,Y){switch(Y.length){case 0:return z.call(J);case 1:return z.call(J,Y[0]);case 2:return z.call(J,Y[0],Y[1]);case 3:return z.call(J,Y[0],Y[1],Y[2])}return z.apply(J,Y)}function Wte(z,J,Y,Le){for(var tt=-1,wt=z==null?0:z.length;++tt<wt;){var ln=z[tt];J(Le,ln,Y(ln),z)}return Le}function zi(z,J){for(var Y=-1,Le=z==null?0:z.length;++Y<Le&&J(z[Y],Y,z)!==!1;);return z}function zte(z,J){for(var Y=z==null?0:z.length;Y--&&J(z[Y],Y,z)!==!1;);return z}function lT(z,J){for(var Y=-1,Le=z==null?0:z.length;++Y<Le;)if(!J(z[Y],Y,z))return!1;return!0}function cs(z,J){for(var Y=-1,Le=z==null?0:z.length,tt=0,wt=[];++Y<Le;){var ln=z[Y];J(ln,Y,z)&&(wt[tt++]=ln)}return wt}function _f(z,J){var Y=z==null?0:z.length;return!!Y&&Cl(z,J,0)>-1}function mw(z,J,Y){for(var Le=-1,tt=z==null?0:z.length;++Le<tt;)if(Y(J,z[Le]))return!0;return!1}function Wt(z,J){for(var Y=-1,Le=z==null?0:z.length,tt=Array(Le);++Y<Le;)tt[Y]=J(z[Y],Y,z);return tt}function us(z,J){for(var Y=-1,Le=J.length,tt=z.length;++Y<Le;)z[tt+Y]=J[Y];return z}function vw(z,J,Y,Le){var tt=-1,wt=z==null?0:z.length;for(Le&&wt&&(Y=z[++tt]);++tt<wt;)Y=J(Y,z[tt],tt,z);return Y}function Ute(z,J,Y,Le){var tt=z==null?0:z.length;for(Le&&tt&&(Y=z[--tt]);tt--;)Y=J(Y,z[tt],tt,z);return Y}function Cw(z,J){for(var Y=-1,Le=z==null?0:z.length;++Y<Le;)if(J(z[Y],Y,z))return!0;return!1}var $te=ww("length");function jte(z){return z.split("")}function Kte(z){return z.match(tte)||[]}function cT(z,J,Y){var Le;return Y(z,function(tt,wt,ln){if(J(tt,wt,ln))return Le=wt,!1}),Le}function Of(z,J,Y,Le){for(var tt=z.length,wt=Y+(Le?1:-1);Le?wt--:++wt<tt;)if(J(z[wt],wt,z))return wt;return-1}function Cl(z,J,Y){return J===J?rne(z,J,Y):Of(z,uT,Y)}function qte(z,J,Y,Le){for(var tt=Y-1,wt=z.length;++tt<wt;)if(Le(z[tt],J))return tt;return-1}function uT(z){return z!==z}function dT(z,J){var Y=z==null?0:z.length;return Y?yw(z,J)/Y:Ie}function ww(z){return function(J){return J==null?n:J[z]}}function bw(z){return function(J){return z==null?n:z[J]}}function hT(z,J,Y,Le,tt){return tt(z,function(wt,ln,Et){Y=Le?(Le=!1,wt):J(Y,wt,ln,Et)}),Y}function Qte(z,J){var Y=z.length;for(z.sort(J);Y--;)z[Y]=z[Y].value;return z}function yw(z,J){for(var Y,Le=-1,tt=z.length;++Le<tt;){var wt=J(z[Le]);wt!==n&&(Y=Y===n?wt:Y+wt)}return Y}function Sw(z,J){for(var Y=-1,Le=Array(z);++Y<z;)Le[Y]=J(Y);return Le}function Yte(z,J){return Wt(J,function(Y){return[Y,z[Y]]})}function fT(z){return z&&z.slice(0,vT(z)+1).replace(lw,"")}function Si(z){return function(J){return z(J)}}function Rw(z,J){return Wt(J,function(Y){return z[Y]})}function Ru(z,J){return z.has(J)}function pT(z,J){for(var Y=-1,Le=z.length;++Y<Le&&Cl(J,z[Y],0)>-1;);return Y}function gT(z,J){for(var Y=z.length;Y--&&Cl(J,z[Y],0)>-1;);return Y}function Zte(z,J){for(var Y=z.length,Le=0;Y--;)z[Y]===J&&++Le;return Le}var Xte=bw(_te),Jte=bw(Ote);function ene(z){return"\\"+Bte[z]}function tne(z,J){return z==null?n:z[J]}function wl(z){return Ite.test(z)}function nne(z){return Mte.test(z)}function ine(z){for(var J,Y=[];!(J=z.next()).done;)Y.push(J.value);return Y}function Fw(z){var J=-1,Y=Array(z.size);return z.forEach(function(Le,tt){Y[++J]=[tt,Le]}),Y}function mT(z,J){return function(Y){return z(J(Y))}}function ds(z,J){for(var Y=-1,Le=z.length,tt=0,wt=[];++Y<Le;){var ln=z[Y];(ln===J||ln===h)&&(z[Y]=h,wt[tt++]=Y)}return wt}function Nf(z){var J=-1,Y=Array(z.size);return z.forEach(function(Le){Y[++J]=Le}),Y}function one(z){var J=-1,Y=Array(z.size);return z.forEach(function(Le){Y[++J]=[Le,Le]}),Y}function rne(z,J,Y){for(var Le=Y-1,tt=z.length;++Le<tt;)if(z[Le]===J)return Le;return-1}function sne(z,J,Y){for(var Le=Y+1;Le--;)if(z[Le]===J)return Le;return Le}function bl(z){return wl(z)?lne(z):$te(z)}function uo(z){return wl(z)?cne(z):jte(z)}function vT(z){for(var J=z.length;J--&&Zee.test(z.charAt(J)););return J}var ane=bw(Nte);function lne(z){for(var J=fw.lastIndex=0;fw.test(z);)++J;return J}function cne(z){return z.match(fw)||[]}function une(z){return z.match(Ate)||[]}var dne=(function z(J){J=J==null?En:yl.defaults(En.Object(),J,yl.pick(En,kte));var Y=J.Array,Le=J.Date,tt=J.Error,wt=J.Function,ln=J.Math,Et=J.Object,xw=J.RegExp,hne=J.String,Ui=J.TypeError,Bf=Y.prototype,fne=wt.prototype,Sl=Et.prototype,Gf=J["__core-js_shared__"],Hf=fne.toString,St=Sl.hasOwnProperty,pne=0,CT=(function(){var c=/[^.]+$/.exec(Gf&&Gf.keys&&Gf.keys.IE_PROTO||"");return c?"Symbol(src)_1."+c:""})(),Vf=Sl.toString,gne=Hf.call(Et),mne=En._,vne=xw("^"+Hf.call(St).replace(aw,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Wf=tT?J.Buffer:n,hs=J.Symbol,zf=J.Uint8Array,wT=Wf?Wf.allocUnsafe:n,Uf=mT(Et.getPrototypeOf,Et),bT=Et.create,yT=Sl.propertyIsEnumerable,$f=Bf.splice,ST=hs?hs.isConcatSpreadable:n,Fu=hs?hs.iterator:n,da=hs?hs.toStringTag:n,jf=(function(){try{var c=ma(Et,"defineProperty");return c({},"",{}),c}catch{}})(),Cne=J.clearTimeout!==En.clearTimeout&&J.clearTimeout,wne=Le&&Le.now!==En.Date.now&&Le.now,bne=J.setTimeout!==En.setTimeout&&J.setTimeout,Kf=ln.ceil,qf=ln.floor,Pw=Et.getOwnPropertySymbols,yne=Wf?Wf.isBuffer:n,RT=J.isFinite,Sne=Bf.join,Rne=mT(Et.keys,Et),cn=ln.max,Nn=ln.min,Fne=Le.now,xne=J.parseInt,FT=ln.random,Pne=Bf.reverse,Ew=ma(J,"DataView"),xu=ma(J,"Map"),Dw=ma(J,"Promise"),Rl=ma(J,"Set"),Pu=ma(J,"WeakMap"),Eu=ma(Et,"create"),Qf=Pu&&new Pu,Fl={},Ene=va(Ew),Dne=va(xu),Tne=va(Dw),Ane=va(Rl),Ine=va(Pu),Yf=hs?hs.prototype:n,Du=Yf?Yf.valueOf:n,xT=Yf?Yf.toString:n;function E(c){if(Qt(c)&&!it(c)&&!(c instanceof dt)){if(c instanceof $i)return c;if(St.call(c,"__wrapped__"))return PA(c)}return new $i(c)}var xl=(function(){function c(){}return function(d){if(!$t(d))return{};if(bT)return bT(d);c.prototype=d;var g=new c;return c.prototype=n,g}})();function Zf(){}function $i(c,d){this.__wrapped__=c,this.__actions__=[],this.__chain__=!!d,this.__index__=0,this.__values__=n}E.templateSettings={escape:$ee,evaluate:jee,interpolate:LD,variable:"",imports:{_:E}},E.prototype=Zf.prototype,E.prototype.constructor=E,$i.prototype=xl(Zf.prototype),$i.prototype.constructor=$i;function dt(c){this.__wrapped__=c,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=G,this.__views__=[]}function Mne(){var c=new dt(this.__wrapped__);return c.__actions__=ai(this.__actions__),c.__dir__=this.__dir__,c.__filtered__=this.__filtered__,c.__iteratees__=ai(this.__iteratees__),c.__takeCount__=this.__takeCount__,c.__views__=ai(this.__views__),c}function kne(){if(this.__filtered__){var c=new dt(this);c.__dir__=-1,c.__filtered__=!0}else c=this.clone(),c.__dir__*=-1;return c}function Lne(){var c=this.__wrapped__.value(),d=this.__dir__,g=it(c),C=d<0,F=g?c.length:0,T=jie(0,F,this.__views__),_=T.start,V=T.end,$=V-_,oe=C?V:_-1,re=this.__iteratees__,le=re.length,De=0,Be=Nn($,this.__takeCount__);if(!g||!C&&F==$&&Be==$)return QT(c,this.__actions__);var Qe=[];e:for(;$--&&De<Be;){oe+=d;for(var at=-1,Ye=c[oe];++at<le;){var ct=re[at],ht=ct.iteratee,xi=ct.type,Yn=ht(Ye);if(xi==te)Ye=Yn;else if(!Yn){if(xi==Q)continue e;break e}}Qe[De++]=Ye}return Qe}dt.prototype=xl(Zf.prototype),dt.prototype.constructor=dt;function ha(c){var d=-1,g=c==null?0:c.length;for(this.clear();++d<g;){var C=c[d];this.set(C[0],C[1])}}function _ne(){this.__data__=Eu?Eu(null):{},this.size=0}function One(c){var d=this.has(c)&&delete this.__data__[c];return this.size-=d?1:0,d}function Nne(c){var d=this.__data__;if(Eu){var g=d[c];return g===l?n:g}return St.call(d,c)?d[c]:n}function Bne(c){var d=this.__data__;return Eu?d[c]!==n:St.call(d,c)}function Gne(c,d){var g=this.__data__;return this.size+=this.has(c)?0:1,g[c]=Eu&&d===n?l:d,this}ha.prototype.clear=_ne,ha.prototype.delete=One,ha.prototype.get=Nne,ha.prototype.has=Bne,ha.prototype.set=Gne;function mr(c){var d=-1,g=c==null?0:c.length;for(this.clear();++d<g;){var C=c[d];this.set(C[0],C[1])}}function Hne(){this.__data__=[],this.size=0}function Vne(c){var d=this.__data__,g=Xf(d,c);if(g<0)return!1;var C=d.length-1;return g==C?d.pop():$f.call(d,g,1),--this.size,!0}function Wne(c){var d=this.__data__,g=Xf(d,c);return g<0?n:d[g][1]}function zne(c){return Xf(this.__data__,c)>-1}function Une(c,d){var g=this.__data__,C=Xf(g,c);return C<0?(++this.size,g.push([c,d])):g[C][1]=d,this}mr.prototype.clear=Hne,mr.prototype.delete=Vne,mr.prototype.get=Wne,mr.prototype.has=zne,mr.prototype.set=Une;function vr(c){var d=-1,g=c==null?0:c.length;for(this.clear();++d<g;){var C=c[d];this.set(C[0],C[1])}}function $ne(){this.size=0,this.__data__={hash:new ha,map:new(xu||mr),string:new ha}}function jne(c){var d=up(this,c).delete(c);return this.size-=d?1:0,d}function Kne(c){return up(this,c).get(c)}function qne(c){return up(this,c).has(c)}function Qne(c,d){var g=up(this,c),C=g.size;return g.set(c,d),this.size+=g.size==C?0:1,this}vr.prototype.clear=$ne,vr.prototype.delete=jne,vr.prototype.get=Kne,vr.prototype.has=qne,vr.prototype.set=Qne;function fa(c){var d=-1,g=c==null?0:c.length;for(this.__data__=new vr;++d<g;)this.add(c[d])}function Yne(c){return this.__data__.set(c,l),this}function Zne(c){return this.__data__.has(c)}fa.prototype.add=fa.prototype.push=Yne,fa.prototype.has=Zne;function ho(c){var d=this.__data__=new mr(c);this.size=d.size}function Xne(){this.__data__=new mr,this.size=0}function Jne(c){var d=this.__data__,g=d.delete(c);return this.size=d.size,g}function eie(c){return this.__data__.get(c)}function tie(c){return this.__data__.has(c)}function nie(c,d){var g=this.__data__;if(g instanceof mr){var C=g.__data__;if(!xu||C.length<o-1)return C.push([c,d]),this.size=++g.size,this;g=this.__data__=new vr(C)}return g.set(c,d),this.size=g.size,this}ho.prototype.clear=Xne,ho.prototype.delete=Jne,ho.prototype.get=eie,ho.prototype.has=tie,ho.prototype.set=nie;function PT(c,d){var g=it(c),C=!g&&Ca(c),F=!g&&!C&&vs(c),T=!g&&!C&&!F&&Tl(c),_=g||C||F||T,V=_?Sw(c.length,hne):[],$=V.length;for(var oe in c)(d||St.call(c,oe))&&!(_&&(oe=="length"||F&&(oe=="offset"||oe=="parent")||T&&(oe=="buffer"||oe=="byteLength"||oe=="byteOffset")||yr(oe,$)))&&V.push(oe);return V}function ET(c){var d=c.length;return d?c[Gw(0,d-1)]:n}function iie(c,d){return dp(ai(c),pa(d,0,c.length))}function oie(c){return dp(ai(c))}function Tw(c,d,g){(g!==n&&!fo(c[d],g)||g===n&&!(d in c))&&Cr(c,d,g)}function Tu(c,d,g){var C=c[d];(!(St.call(c,d)&&fo(C,g))||g===n&&!(d in c))&&Cr(c,d,g)}function Xf(c,d){for(var g=c.length;g--;)if(fo(c[g][0],d))return g;return-1}function rie(c,d,g,C){return fs(c,function(F,T,_){d(C,F,g(F),_)}),C}function DT(c,d){return c&&Go(d,gn(d),c)}function sie(c,d){return c&&Go(d,ci(d),c)}function Cr(c,d,g){d=="__proto__"&&jf?jf(c,d,{configurable:!0,enumerable:!0,value:g,writable:!0}):c[d]=g}function Aw(c,d){for(var g=-1,C=d.length,F=Y(C),T=c==null;++g<C;)F[g]=T?n:ub(c,d[g]);return F}function pa(c,d,g){return c===c&&(g!==n&&(c=c<=g?c:g),d!==n&&(c=c>=d?c:d)),c}function ji(c,d,g,C,F,T){var _,V=d&f,$=d&p,oe=d&m;if(g&&(_=F?g(c,C,F,T):g(c)),_!==n)return _;if(!$t(c))return c;var re=it(c);if(re){if(_=qie(c),!V)return ai(c,_)}else{var le=Bn(c),De=le==k||le==H;if(vs(c))return XT(c,V);if(le==Z||le==Pe||De&&!F){if(_=$||De?{}:vA(c),!V)return $?Nie(c,sie(_,c)):Oie(c,DT(_,c))}else{if(!Tt[le])return F?c:{};_=Qie(c,le,V)}}T||(T=new ho);var Be=T.get(c);if(Be)return Be;T.set(c,_),jA(c)?c.forEach(function(Ye){_.add(ji(Ye,d,g,Ye,c,T))}):UA(c)&&c.forEach(function(Ye,ct){_.set(ct,ji(Ye,d,g,ct,c,T))});var Qe=oe?$?Yw:Qw:$?ci:gn,at=re?n:Qe(c);return zi(at||c,function(Ye,ct){at&&(ct=Ye,Ye=c[ct]),Tu(_,ct,ji(Ye,d,g,ct,c,T))}),_}function aie(c){var d=gn(c);return function(g){return TT(g,c,d)}}function TT(c,d,g){var C=g.length;if(c==null)return!C;for(c=Et(c);C--;){var F=g[C],T=d[F],_=c[F];if(_===n&&!(F in c)||!T(_))return!1}return!0}function AT(c,d,g){if(typeof c!="function")throw new Ui(s);return Ou(function(){c.apply(n,g)},d)}function Au(c,d,g,C){var F=-1,T=_f,_=!0,V=c.length,$=[],oe=d.length;if(!V)return $;g&&(d=Wt(d,Si(g))),C?(T=mw,_=!1):d.length>=o&&(T=Ru,_=!1,d=new fa(d));e:for(;++F<V;){var re=c[F],le=g==null?re:g(re);if(re=C||re!==0?re:0,_&&le===le){for(var De=oe;De--;)if(d[De]===le)continue e;$.push(re)}else T(d,le,C)||$.push(re)}return $}var fs=iA(Bo),IT=iA(Mw,!0);function lie(c,d){var g=!0;return fs(c,function(C,F,T){return g=!!d(C,F,T),g}),g}function Jf(c,d,g){for(var C=-1,F=c.length;++C<F;){var T=c[C],_=d(T);if(_!=null&&(V===n?_===_&&!Fi(_):g(_,V)))var V=_,$=T}return $}function cie(c,d,g,C){var F=c.length;for(g=st(g),g<0&&(g=-g>F?0:F+g),C=C===n||C>F?F:st(C),C<0&&(C+=F),C=g>C?0:qA(C);g<C;)c[g++]=d;return c}function MT(c,d){var g=[];return fs(c,function(C,F,T){d(C,F,T)&&g.push(C)}),g}function Dn(c,d,g,C,F){var T=-1,_=c.length;for(g||(g=Zie),F||(F=[]);++T<_;){var V=c[T];d>0&&g(V)?d>1?Dn(V,d-1,g,C,F):us(F,V):C||(F[F.length]=V)}return F}var Iw=oA(),kT=oA(!0);function Bo(c,d){return c&&Iw(c,d,gn)}function Mw(c,d){return c&&kT(c,d,gn)}function ep(c,d){return cs(d,function(g){return Sr(c[g])})}function ga(c,d){d=gs(d,c);for(var g=0,C=d.length;c!=null&&g<C;)c=c[Ho(d[g++])];return g&&g==C?c:n}function LT(c,d,g){var C=d(c);return it(c)?C:us(C,g(c))}function qn(c){return c==null?c===n?Ge:ee:da&&da in Et(c)?$ie(c):ooe(c)}function kw(c,d){return c>d}function uie(c,d){return c!=null&&St.call(c,d)}function die(c,d){return c!=null&&d in Et(c)}function hie(c,d,g){return c>=Nn(d,g)&&c<cn(d,g)}function Lw(c,d,g){for(var C=g?mw:_f,F=c[0].length,T=c.length,_=T,V=Y(T),$=1/0,oe=[];_--;){var re=c[_];_&&d&&(re=Wt(re,Si(d))),$=Nn(re.length,$),V[_]=!g&&(d||F>=120&&re.length>=120)?new fa(_&&re):n}re=c[0];var le=-1,De=V[0];e:for(;++le<F&&oe.length<$;){var Be=re[le],Qe=d?d(Be):Be;if(Be=g||Be!==0?Be:0,!(De?Ru(De,Qe):C(oe,Qe,g))){for(_=T;--_;){var at=V[_];if(!(at?Ru(at,Qe):C(c[_],Qe,g)))continue e}De&&De.push(Qe),oe.push(Be)}}return oe}function fie(c,d,g,C){return Bo(c,function(F,T,_){d(C,g(F),T,_)}),C}function Iu(c,d,g){d=gs(d,c),c=yA(c,d);var C=c==null?c:c[Ho(qi(d))];return C==null?n:yi(C,c,g)}function _T(c){return Qt(c)&&qn(c)==Pe}function pie(c){return Qt(c)&&qn(c)==Je}function gie(c){return Qt(c)&&qn(c)==ze}function Mu(c,d,g,C,F){return c===d?!0:c==null||d==null||!Qt(c)&&!Qt(d)?c!==c&&d!==d:mie(c,d,g,C,Mu,F)}function mie(c,d,g,C,F,T){var _=it(c),V=it(d),$=_?Te:Bn(c),oe=V?Te:Bn(d);$=$==Pe?Z:$,oe=oe==Pe?Z:oe;var re=$==Z,le=oe==Z,De=$==oe;if(De&&vs(c)){if(!vs(d))return!1;_=!0,re=!1}if(De&&!re)return T||(T=new ho),_||Tl(c)?pA(c,d,g,C,F,T):zie(c,d,$,g,C,F,T);if(!(g&v)){var Be=re&&St.call(c,"__wrapped__"),Qe=le&&St.call(d,"__wrapped__");if(Be||Qe){var at=Be?c.value():c,Ye=Qe?d.value():d;return T||(T=new ho),F(at,Ye,g,C,T)}}return De?(T||(T=new ho),Uie(c,d,g,C,F,T)):!1}function vie(c){return Qt(c)&&Bn(c)==U}function _w(c,d,g,C){var F=g.length,T=F,_=!C;if(c==null)return!T;for(c=Et(c);F--;){var V=g[F];if(_&&V[2]?V[1]!==c[V[0]]:!(V[0]in c))return!1}for(;++F<T;){V=g[F];var $=V[0],oe=c[$],re=V[1];if(_&&V[2]){if(oe===n&&!($ in c))return!1}else{var le=new ho;if(C)var De=C(oe,re,$,c,d,le);if(!(De===n?Mu(re,oe,v|w,C,le):De))return!1}}return!0}function OT(c){if(!$t(c)||Jie(c))return!1;var d=Sr(c)?vne:ate;return d.test(va(c))}function Cie(c){return Qt(c)&&qn(c)==ce}function wie(c){return Qt(c)&&Bn(c)==ie}function bie(c){return Qt(c)&&vp(c.length)&&!!kt[qn(c)]}function NT(c){return typeof c=="function"?c:c==null?ui:typeof c=="object"?it(c)?HT(c[0],c[1]):GT(c):rI(c)}function Ow(c){if(!_u(c))return Rne(c);var d=[];for(var g in Et(c))St.call(c,g)&&g!="constructor"&&d.push(g);return d}function yie(c){if(!$t(c))return ioe(c);var d=_u(c),g=[];for(var C in c)C=="constructor"&&(d||!St.call(c,C))||g.push(C);return g}function Nw(c,d){return c<d}function BT(c,d){var g=-1,C=li(c)?Y(c.length):[];return fs(c,function(F,T,_){C[++g]=d(F,T,_)}),C}function GT(c){var d=Xw(c);return d.length==1&&d[0][2]?wA(d[0][0],d[0][1]):function(g){return g===c||_w(g,c,d)}}function HT(c,d){return eb(c)&&CA(d)?wA(Ho(c),d):function(g){var C=ub(g,c);return C===n&&C===d?db(g,c):Mu(d,C,v|w)}}function tp(c,d,g,C,F){c!==d&&Iw(d,function(T,_){if(F||(F=new ho),$t(T))Sie(c,d,_,g,tp,C,F);else{var V=C?C(nb(c,_),T,_+"",c,d,F):n;V===n&&(V=T),Tw(c,_,V)}},ci)}function Sie(c,d,g,C,F,T,_){var V=nb(c,g),$=nb(d,g),oe=_.get($);if(oe){Tw(c,g,oe);return}var re=T?T(V,$,g+"",c,d,_):n,le=re===n;if(le){var De=it($),Be=!De&&vs($),Qe=!De&&!Be&&Tl($);re=$,De||Be||Qe?it(V)?re=V:Xt(V)?re=ai(V):Be?(le=!1,re=XT($,!0)):Qe?(le=!1,re=JT($,!0)):re=[]:Nu($)||Ca($)?(re=V,Ca(V)?re=QA(V):(!$t(V)||Sr(V))&&(re=vA($))):le=!1}le&&(_.set($,re),F(re,$,C,T,_),_.delete($)),Tw(c,g,re)}function VT(c,d){var g=c.length;if(g)return d+=d<0?g:0,yr(d,g)?c[d]:n}function WT(c,d,g){d.length?d=Wt(d,function(T){return it(T)?function(_){return ga(_,T.length===1?T[0]:T)}:T}):d=[ui];var C=-1;d=Wt(d,Si(Ke()));var F=BT(c,function(T,_,V){var $=Wt(d,function(oe){return oe(T)});return{criteria:$,index:++C,value:T}});return Qte(F,function(T,_){return _ie(T,_,g)})}function Rie(c,d){return zT(c,d,function(g,C){return db(c,C)})}function zT(c,d,g){for(var C=-1,F=d.length,T={};++C<F;){var _=d[C],V=ga(c,_);g(V,_)&&ku(T,gs(_,c),V)}return T}function Fie(c){return function(d){return ga(d,c)}}function Bw(c,d,g,C){var F=C?qte:Cl,T=-1,_=d.length,V=c;for(c===d&&(d=ai(d)),g&&(V=Wt(c,Si(g)));++T<_;)for(var $=0,oe=d[T],re=g?g(oe):oe;($=F(V,re,$,C))>-1;)V!==c&&$f.call(V,$,1),$f.call(c,$,1);return c}function UT(c,d){for(var g=c?d.length:0,C=g-1;g--;){var F=d[g];if(g==C||F!==T){var T=F;yr(F)?$f.call(c,F,1):Ww(c,F)}}return c}function Gw(c,d){return c+qf(FT()*(d-c+1))}function xie(c,d,g,C){for(var F=-1,T=cn(Kf((d-c)/(g||1)),0),_=Y(T);T--;)_[C?T:++F]=c,c+=g;return _}function Hw(c,d){var g="";if(!c||d<1||d>he)return g;do d%2&&(g+=c),d=qf(d/2),d&&(c+=c);while(d);return g}function lt(c,d){return ib(bA(c,d,ui),c+"")}function Pie(c){return ET(Al(c))}function Eie(c,d){var g=Al(c);return dp(g,pa(d,0,g.length))}function ku(c,d,g,C){if(!$t(c))return c;d=gs(d,c);for(var F=-1,T=d.length,_=T-1,V=c;V!=null&&++F<T;){var $=Ho(d[F]),oe=g;if($==="__proto__"||$==="constructor"||$==="prototype")return c;if(F!=_){var re=V[$];oe=C?C(re,$,V):n,oe===n&&(oe=$t(re)?re:yr(d[F+1])?[]:{})}Tu(V,$,oe),V=V[$]}return c}var $T=Qf?function(c,d){return Qf.set(c,d),c}:ui,Die=jf?function(c,d){return jf(c,"toString",{configurable:!0,enumerable:!1,value:fb(d),writable:!0})}:ui;function Tie(c){return dp(Al(c))}function Ki(c,d,g){var C=-1,F=c.length;d<0&&(d=-d>F?0:F+d),g=g>F?F:g,g<0&&(g+=F),F=d>g?0:g-d>>>0,d>>>=0;for(var T=Y(F);++C<F;)T[C]=c[C+d];return T}function Aie(c,d){var g;return fs(c,function(C,F,T){return g=d(C,F,T),!g}),!!g}function np(c,d,g){var C=0,F=c==null?C:c.length;if(typeof d=="number"&&d===d&&F<=j){for(;C<F;){var T=C+F>>>1,_=c[T];_!==null&&!Fi(_)&&(g?_<=d:_<d)?C=T+1:F=T}return F}return Vw(c,d,ui,g)}function Vw(c,d,g,C){var F=0,T=c==null?0:c.length;if(T===0)return 0;d=g(d);for(var _=d!==d,V=d===null,$=Fi(d),oe=d===n;F<T;){var re=qf((F+T)/2),le=g(c[re]),De=le!==n,Be=le===null,Qe=le===le,at=Fi(le);if(_)var Ye=C||Qe;else oe?Ye=Qe&&(C||De):V?Ye=Qe&&De&&(C||!Be):$?Ye=Qe&&De&&!Be&&(C||!at):Be||at?Ye=!1:Ye=C?le<=d:le<d;Ye?F=re+1:T=re}return Nn(T,q)}function jT(c,d){for(var g=-1,C=c.length,F=0,T=[];++g<C;){var _=c[g],V=d?d(_):_;if(!g||!fo(V,$)){var $=V;T[F++]=_===0?0:_}}return T}function KT(c){return typeof c=="number"?c:Fi(c)?Ie:+c}function Ri(c){if(typeof c=="string")return c;if(it(c))return Wt(c,Ri)+"";if(Fi(c))return xT?xT.call(c):"";var d=c+"";return d=="0"&&1/c==-we?"-0":d}function ps(c,d,g){var C=-1,F=_f,T=c.length,_=!0,V=[],$=V;if(g)_=!1,F=mw;else if(T>=o){var oe=d?null:Vie(c);if(oe)return Nf(oe);_=!1,F=Ru,$=new fa}else $=d?[]:V;e:for(;++C<T;){var re=c[C],le=d?d(re):re;if(re=g||re!==0?re:0,_&&le===le){for(var De=$.length;De--;)if($[De]===le)continue e;d&&$.push(le),V.push(re)}else F($,le,g)||($!==V&&$.push(le),V.push(re))}return V}function Ww(c,d){d=gs(d,c);var g=-1,C=d.length;if(!C)return!0;for(var F=c==null||typeof c!="object"&&typeof c!="function";++g<C;){var T=d[g];if(typeof T=="string"){if(T==="__proto__"&&!St.call(c,"__proto__"))return!1;if(T==="constructor"&&g+1<C&&typeof d[g+1]=="string"&&d[g+1]==="prototype"){if(F&&g===0)continue;return!1}}}var _=yA(c,d);return _==null||delete _[Ho(qi(d))]}function qT(c,d,g,C){return ku(c,d,g(ga(c,d)),C)}function ip(c,d,g,C){for(var F=c.length,T=C?F:-1;(C?T--:++T<F)&&d(c[T],T,c););return g?Ki(c,C?0:T,C?T+1:F):Ki(c,C?T+1:0,C?F:T)}function QT(c,d){var g=c;return g instanceof dt&&(g=g.value()),vw(d,function(C,F){return F.func.apply(F.thisArg,us([C],F.args))},g)}function zw(c,d,g){var C=c.length;if(C<2)return C?ps(c[0]):[];for(var F=-1,T=Y(C);++F<C;)for(var _=c[F],V=-1;++V<C;)V!=F&&(T[F]=Au(T[F]||_,c[V],d,g));return ps(Dn(T,1),d,g)}function YT(c,d,g){for(var C=-1,F=c.length,T=d.length,_={};++C<F;){var V=C<T?d[C]:n;g(_,c[C],V)}return _}function Uw(c){return Xt(c)?c:[]}function $w(c){return typeof c=="function"?c:ui}function gs(c,d){return it(c)?c:eb(c,d)?[c]:xA(Rt(c))}var Iie=lt;function ms(c,d,g){var C=c.length;return g=g===n?C:g,!d&&g>=C?c:Ki(c,d,g)}var ZT=Cne||function(c){return En.clearTimeout(c)};function XT(c,d){if(d)return c.slice();var g=c.length,C=wT?wT(g):new c.constructor(g);return c.copy(C),C}function jw(c){var d=new c.constructor(c.byteLength);return new zf(d).set(new zf(c)),d}function Mie(c,d){var g=d?jw(c.buffer):c.buffer;return new c.constructor(g,c.byteOffset,c.byteLength)}function kie(c){var d=new c.constructor(c.source,_D.exec(c));return d.lastIndex=c.lastIndex,d}function Lie(c){return Du?Et(Du.call(c)):{}}function JT(c,d){var g=d?jw(c.buffer):c.buffer;return new c.constructor(g,c.byteOffset,c.length)}function eA(c,d){if(c!==d){var g=c!==n,C=c===null,F=c===c,T=Fi(c),_=d!==n,V=d===null,$=d===d,oe=Fi(d);if(!V&&!oe&&!T&&c>d||T&&_&&$&&!V&&!oe||C&&_&&$||!g&&$||!F)return 1;if(!C&&!T&&!oe&&c<d||oe&&g&&F&&!C&&!T||V&&g&&F||!_&&F||!$)return-1}return 0}function _ie(c,d,g){for(var C=-1,F=c.criteria,T=d.criteria,_=F.length,V=g.length;++C<_;){var $=eA(F[C],T[C]);if($){if(C>=V)return $;var oe=g[C];return $*(oe=="desc"?-1:1)}}return c.index-d.index}function tA(c,d,g,C){for(var F=-1,T=c.length,_=g.length,V=-1,$=d.length,oe=cn(T-_,0),re=Y($+oe),le=!C;++V<$;)re[V]=d[V];for(;++F<_;)(le||F<T)&&(re[g[F]]=c[F]);for(;oe--;)re[V++]=c[F++];return re}function nA(c,d,g,C){for(var F=-1,T=c.length,_=-1,V=g.length,$=-1,oe=d.length,re=cn(T-V,0),le=Y(re+oe),De=!C;++F<re;)le[F]=c[F];for(var Be=F;++$<oe;)le[Be+$]=d[$];for(;++_<V;)(De||F<T)&&(le[Be+g[_]]=c[F++]);return le}function ai(c,d){var g=-1,C=c.length;for(d||(d=Y(C));++g<C;)d[g]=c[g];return d}function Go(c,d,g,C){var F=!g;g||(g={});for(var T=-1,_=d.length;++T<_;){var V=d[T],$=C?C(g[V],c[V],V,g,c):n;$===n&&($=c[V]),F?Cr(g,V,$):Tu(g,V,$)}return g}function Oie(c,d){return Go(c,Jw(c),d)}function Nie(c,d){return Go(c,gA(c),d)}function op(c,d){return function(g,C){var F=it(g)?Wte:rie,T=d?d():{};return F(g,c,Ke(C,2),T)}}function Pl(c){return lt(function(d,g){var C=-1,F=g.length,T=F>1?g[F-1]:n,_=F>2?g[2]:n;for(T=c.length>3&&typeof T=="function"?(F--,T):n,_&&Qn(g[0],g[1],_)&&(T=F<3?n:T,F=1),d=Et(d);++C<F;){var V=g[C];V&&c(d,V,C,T)}return d})}function iA(c,d){return function(g,C){if(g==null)return g;if(!li(g))return c(g,C);for(var F=g.length,T=d?F:-1,_=Et(g);(d?T--:++T<F)&&C(_[T],T,_)!==!1;);return g}}function oA(c){return function(d,g,C){for(var F=-1,T=Et(d),_=C(d),V=_.length;V--;){var $=_[c?V:++F];if(g(T[$],$,T)===!1)break}return d}}function Bie(c,d,g){var C=d&b,F=Lu(c);function T(){var _=this&&this!==En&&this instanceof T?F:c;return _.apply(C?g:this,arguments)}return T}function rA(c){return function(d){d=Rt(d);var g=wl(d)?uo(d):n,C=g?g[0]:d.charAt(0),F=g?ms(g,1).join(""):d.slice(1);return C[c]()+F}}function El(c){return function(d){return vw(iI(nI(d).replace(Dte,"")),c,"")}}function Lu(c){return function(){var d=arguments;switch(d.length){case 0:return new c;case 1:return new c(d[0]);case 2:return new c(d[0],d[1]);case 3:return new c(d[0],d[1],d[2]);case 4:return new c(d[0],d[1],d[2],d[3]);case 5:return new c(d[0],d[1],d[2],d[3],d[4]);case 6:return new c(d[0],d[1],d[2],d[3],d[4],d[5]);case 7:return new c(d[0],d[1],d[2],d[3],d[4],d[5],d[6])}var g=xl(c.prototype),C=c.apply(g,d);return $t(C)?C:g}}function Gie(c,d,g){var C=Lu(c);function F(){for(var T=arguments.length,_=Y(T),V=T,$=Dl(F);V--;)_[V]=arguments[V];var oe=T<3&&_[0]!==$&&_[T-1]!==$?[]:ds(_,$);if(T-=oe.length,T<g)return uA(c,d,rp,F.placeholder,n,_,oe,n,n,g-T);var re=this&&this!==En&&this instanceof F?C:c;return yi(re,this,_)}return F}function sA(c){return function(d,g,C){var F=Et(d);if(!li(d)){var T=Ke(g,3);d=gn(d),g=function(V){return T(F[V],V,F)}}var _=c(d,g,C);return _>-1?F[T?d[_]:_]:n}}function aA(c){return br(function(d){var g=d.length,C=g,F=$i.prototype.thru;for(c&&d.reverse();C--;){var T=d[C];if(typeof T!="function")throw new Ui(s);if(F&&!_&&cp(T)=="wrapper")var _=new $i([],!0)}for(C=_?C:g;++C<g;){T=d[C];var V=cp(T),$=V=="wrapper"?Zw(T):n;$&&tb($[0])&&$[1]==(A|S|P|N)&&!$[4].length&&$[9]==1?_=_[cp($[0])].apply(_,$[3]):_=T.length==1&&tb(T)?_[V]():_.thru(T)}return function(){var oe=arguments,re=oe[0];if(_&&oe.length==1&&it(re))return _.plant(re).value();for(var le=0,De=g?d[le].apply(this,oe):re;++le<g;)De=d[le].call(this,De);return De}})}function rp(c,d,g,C,F,T,_,V,$,oe){var re=d&A,le=d&b,De=d&y,Be=d&(S|x),Qe=d&B,at=De?n:Lu(c);function Ye(){for(var ct=arguments.length,ht=Y(ct),xi=ct;xi--;)ht[xi]=arguments[xi];if(Be)var Yn=Dl(Ye),Pi=Zte(ht,Yn);if(C&&(ht=tA(ht,C,F,Be)),T&&(ht=nA(ht,T,_,Be)),ct-=Pi,Be&&ct<oe){var Jt=ds(ht,Yn);return uA(c,d,rp,Ye.placeholder,g,ht,Jt,V,$,oe-ct)}var po=le?g:this,Fr=De?po[c]:c;return ct=ht.length,V?ht=roe(ht,V):Qe&&ct>1&&ht.reverse(),re&&$<ct&&(ht.length=$),this&&this!==En&&this instanceof Ye&&(Fr=at||Lu(Fr)),Fr.apply(po,ht)}return Ye}function lA(c,d){return function(g,C){return fie(g,c,d(C),{})}}function sp(c,d){return function(g,C){var F;if(g===n&&C===n)return d;if(g!==n&&(F=g),C!==n){if(F===n)return C;typeof g=="string"||typeof C=="string"?(g=Ri(g),C=Ri(C)):(g=KT(g),C=KT(C)),F=c(g,C)}return F}}function Kw(c){return br(function(d){return d=Wt(d,Si(Ke())),lt(function(g){var C=this;return c(d,function(F){return yi(F,C,g)})})})}function ap(c,d){d=d===n?" ":Ri(d);var g=d.length;if(g<2)return g?Hw(d,c):d;var C=Hw(d,Kf(c/bl(d)));return wl(d)?ms(uo(C),0,c).join(""):C.slice(0,c)}function Hie(c,d,g,C){var F=d&b,T=Lu(c);function _(){for(var V=-1,$=arguments.length,oe=-1,re=C.length,le=Y(re+$),De=this&&this!==En&&this instanceof _?T:c;++oe<re;)le[oe]=C[oe];for(;$--;)le[oe++]=arguments[++V];return yi(De,F?g:this,le)}return _}function cA(c){return function(d,g,C){return C&&typeof C!="number"&&Qn(d,g,C)&&(g=C=n),d=Rr(d),g===n?(g=d,d=0):g=Rr(g),C=C===n?d<g?1:-1:Rr(C),xie(d,g,C,c)}}function lp(c){return function(d,g){return typeof d=="string"&&typeof g=="string"||(d=Qi(d),g=Qi(g)),c(d,g)}}function uA(c,d,g,C,F,T,_,V,$,oe){var re=d&S,le=re?_:n,De=re?n:_,Be=re?T:n,Qe=re?n:T;d|=re?P:D,d&=~(re?D:P),d&R||(d&=-4);var at=[c,d,F,Be,le,Qe,De,V,$,oe],Ye=g.apply(n,at);return tb(c)&&SA(Ye,at),Ye.placeholder=C,RA(Ye,c,d)}function qw(c){var d=ln[c];return function(g,C){if(g=Qi(g),C=C==null?0:Nn(st(C),292),C&&RT(g)){var F=(Rt(g)+"e").split("e"),T=d(F[0]+"e"+(+F[1]+C));return F=(Rt(T)+"e").split("e"),+(F[0]+"e"+(+F[1]-C))}return d(g)}}var Vie=Rl&&1/Nf(new Rl([,-0]))[1]==we?function(c){return new Rl(c)}:mb;function dA(c){return function(d){var g=Bn(d);return g==U?Fw(d):g==ie?one(d):Yte(d,c(d))}}function wr(c,d,g,C,F,T,_,V){var $=d&y;if(!$&&typeof c!="function")throw new Ui(s);var oe=C?C.length:0;if(oe||(d&=-97,C=F=n),_=_===n?_:cn(st(_),0),V=V===n?V:st(V),oe-=F?F.length:0,d&D){var re=C,le=F;C=F=n}var De=$?n:Zw(c),Be=[c,d,g,C,F,re,le,T,_,V];if(De&&noe(Be,De),c=Be[0],d=Be[1],g=Be[2],C=Be[3],F=Be[4],V=Be[9]=Be[9]===n?$?0:c.length:cn(Be[9]-oe,0),!V&&d&(S|x)&&(d&=-25),!d||d==b)var Qe=Bie(c,d,g);else d==S||d==x?Qe=Gie(c,d,V):(d==P||d==(b|P))&&!F.length?Qe=Hie(c,d,g,C):Qe=rp.apply(n,Be);var at=De?$T:SA;return RA(at(Qe,Be),c,d)}function hA(c,d,g,C){return c===n||fo(c,Sl[g])&&!St.call(C,g)?d:c}function fA(c,d,g,C,F,T){return $t(c)&&$t(d)&&(T.set(d,c),tp(c,d,n,fA,T),T.delete(d)),c}function Wie(c){return Nu(c)?n:c}function pA(c,d,g,C,F,T){var _=g&v,V=c.length,$=d.length;if(V!=$&&!(_&&$>V))return!1;var oe=T.get(c),re=T.get(d);if(oe&&re)return oe==d&&re==c;var le=-1,De=!0,Be=g&w?new fa:n;for(T.set(c,d),T.set(d,c);++le<V;){var Qe=c[le],at=d[le];if(C)var Ye=_?C(at,Qe,le,d,c,T):C(Qe,at,le,c,d,T);if(Ye!==n){if(Ye)continue;De=!1;break}if(Be){if(!Cw(d,function(ct,ht){if(!Ru(Be,ht)&&(Qe===ct||F(Qe,ct,g,C,T)))return Be.push(ht)})){De=!1;break}}else if(!(Qe===at||F(Qe,at,g,C,T))){De=!1;break}}return T.delete(c),T.delete(d),De}function zie(c,d,g,C,F,T,_){switch(g){case ot:if(c.byteLength!=d.byteLength||c.byteOffset!=d.byteOffset)return!1;c=c.buffer,d=d.buffer;case Je:return!(c.byteLength!=d.byteLength||!T(new zf(c),new zf(d)));case _e:case ze:case ne:return fo(+c,+d);case pt:return c.name==d.name&&c.message==d.message;case ce:case Me:return c==d+"";case U:var V=Fw;case ie:var $=C&v;if(V||(V=Nf),c.size!=d.size&&!$)return!1;var oe=_.get(c);if(oe)return oe==d;C|=w,_.set(c,d);var re=pA(V(c),V(d),C,F,T,_);return _.delete(c),re;case ye:if(Du)return Du.call(c)==Du.call(d)}return!1}function Uie(c,d,g,C,F,T){var _=g&v,V=Qw(c),$=V.length,oe=Qw(d),re=oe.length;if($!=re&&!_)return!1;for(var le=$;le--;){var De=V[le];if(!(_?De in d:St.call(d,De)))return!1}var Be=T.get(c),Qe=T.get(d);if(Be&&Qe)return Be==d&&Qe==c;var at=!0;T.set(c,d),T.set(d,c);for(var Ye=_;++le<$;){De=V[le];var ct=c[De],ht=d[De];if(C)var xi=_?C(ht,ct,De,d,c,T):C(ct,ht,De,c,d,T);if(!(xi===n?ct===ht||F(ct,ht,g,C,T):xi)){at=!1;break}Ye||(Ye=De=="constructor")}if(at&&!Ye){var Yn=c.constructor,Pi=d.constructor;Yn!=Pi&&"constructor"in c&&"constructor"in d&&!(typeof Yn=="function"&&Yn instanceof Yn&&typeof Pi=="function"&&Pi instanceof Pi)&&(at=!1)}return T.delete(c),T.delete(d),at}function br(c){return ib(bA(c,n,TA),c+"")}function Qw(c){return LT(c,gn,Jw)}function Yw(c){return LT(c,ci,gA)}var Zw=Qf?function(c){return Qf.get(c)}:mb;function cp(c){for(var d=c.name+"",g=Fl[d],C=St.call(Fl,d)?g.length:0;C--;){var F=g[C],T=F.func;if(T==null||T==c)return F.name}return d}function Dl(c){var d=St.call(E,"placeholder")?E:c;return d.placeholder}function Ke(){var c=E.iteratee||pb;return c=c===pb?NT:c,arguments.length?c(arguments[0],arguments[1]):c}function up(c,d){var g=c.__data__;return Xie(d)?g[typeof d=="string"?"string":"hash"]:g.map}function Xw(c){for(var d=gn(c),g=d.length;g--;){var C=d[g],F=c[C];d[g]=[C,F,CA(F)]}return d}function ma(c,d){var g=tne(c,d);return OT(g)?g:n}function $ie(c){var d=St.call(c,da),g=c[da];try{c[da]=n;var C=!0}catch{}var F=Vf.call(c);return C&&(d?c[da]=g:delete c[da]),F}var Jw=Pw?function(c){return c==null?[]:(c=Et(c),cs(Pw(c),function(d){return yT.call(c,d)}))}:vb,gA=Pw?function(c){for(var d=[];c;)us(d,Jw(c)),c=Uf(c);return d}:vb,Bn=qn;(Ew&&Bn(new Ew(new ArrayBuffer(1)))!=ot||xu&&Bn(new xu)!=U||Dw&&Bn(Dw.resolve())!=ge||Rl&&Bn(new Rl)!=ie||Pu&&Bn(new Pu)!=Ve)&&(Bn=function(c){var d=qn(c),g=d==Z?c.constructor:n,C=g?va(g):"";if(C)switch(C){case Ene:return ot;case Dne:return U;case Tne:return ge;case Ane:return ie;case Ine:return Ve}return d});function jie(c,d,g){for(var C=-1,F=g.length;++C<F;){var T=g[C],_=T.size;switch(T.type){case"drop":c+=_;break;case"dropRight":d-=_;break;case"take":d=Nn(d,c+_);break;case"takeRight":c=cn(c,d-_);break}}return{start:c,end:d}}function Kie(c){var d=c.match(Jee);return d?d[1].split(ete):[]}function mA(c,d,g){d=gs(d,c);for(var C=-1,F=d.length,T=!1;++C<F;){var _=Ho(d[C]);if(!(T=c!=null&&g(c,_)))break;c=c[_]}return T||++C!=F?T:(F=c==null?0:c.length,!!F&&vp(F)&&yr(_,F)&&(it(c)||Ca(c)))}function qie(c){var d=c.length,g=new c.constructor(d);return d&&typeof c[0]=="string"&&St.call(c,"index")&&(g.index=c.index,g.input=c.input),g}function vA(c){return typeof c.constructor=="function"&&!_u(c)?xl(Uf(c)):{}}function Qie(c,d,g){var C=c.constructor;switch(d){case Je:return jw(c);case _e:case ze:return new C(+c);case ot:return Mie(c,g);case Ht:case Vt:case tn:case pn:case bi:case ke:case Ae:case je:case Oe:return JT(c,g);case U:return new C;case ne:case Me:return new C(c);case ce:return kie(c);case ie:return new C;case ye:return Lie(c)}}function Yie(c,d){var g=d.length;if(!g)return c;var C=g-1;return d[C]=(g>1?"& ":"")+d[C],d=d.join(g>2?", ":" "),c.replace(Xee,`{
648
+ /* [wrapped with `+d+`] */
649
+ `)}function Zie(c){return it(c)||Ca(c)||!!(ST&&c&&c[ST])}function yr(c,d){var g=typeof c;return d=d??he,!!d&&(g=="number"||g!="symbol"&&cte.test(c))&&c>-1&&c%1==0&&c<d}function Qn(c,d,g){if(!$t(g))return!1;var C=typeof d;return(C=="number"?li(g)&&yr(d,g.length):C=="string"&&d in g)?fo(g[d],c):!1}function eb(c,d){if(it(c))return!1;var g=typeof c;return g=="number"||g=="symbol"||g=="boolean"||c==null||Fi(c)?!0:qee.test(c)||!Kee.test(c)||d!=null&&c in Et(d)}function Xie(c){var d=typeof c;return d=="string"||d=="number"||d=="symbol"||d=="boolean"?c!=="__proto__":c===null}function tb(c){var d=cp(c),g=E[d];if(typeof g!="function"||!(d in dt.prototype))return!1;if(c===g)return!0;var C=Zw(g);return!!C&&c===C[0]}function Jie(c){return!!CT&&CT in c}var eoe=Gf?Sr:Cb;function _u(c){var d=c&&c.constructor,g=typeof d=="function"&&d.prototype||Sl;return c===g}function CA(c){return c===c&&!$t(c)}function wA(c,d){return function(g){return g==null?!1:g[c]===d&&(d!==n||c in Et(g))}}function toe(c){var d=gp(c,function(C){return g.size===u&&g.clear(),C}),g=d.cache;return d}function noe(c,d){var g=c[1],C=d[1],F=g|C,T=F<(b|y|A),_=C==A&&g==S||C==A&&g==N&&c[7].length<=d[8]||C==(A|N)&&d[7].length<=d[8]&&g==S;if(!(T||_))return c;C&b&&(c[2]=d[2],F|=g&b?0:R);var V=d[3];if(V){var $=c[3];c[3]=$?tA($,V,d[4]):V,c[4]=$?ds(c[3],h):d[4]}return V=d[5],V&&($=c[5],c[5]=$?nA($,V,d[6]):V,c[6]=$?ds(c[5],h):d[6]),V=d[7],V&&(c[7]=V),C&A&&(c[8]=c[8]==null?d[8]:Nn(c[8],d[8])),c[9]==null&&(c[9]=d[9]),c[0]=d[0],c[1]=F,c}function ioe(c){var d=[];if(c!=null)for(var g in Et(c))d.push(g);return d}function ooe(c){return Vf.call(c)}function bA(c,d,g){return d=cn(d===n?c.length-1:d,0),function(){for(var C=arguments,F=-1,T=cn(C.length-d,0),_=Y(T);++F<T;)_[F]=C[d+F];F=-1;for(var V=Y(d+1);++F<d;)V[F]=C[F];return V[d]=g(_),yi(c,this,V)}}function yA(c,d){return d.length<2?c:ga(c,Ki(d,0,-1))}function roe(c,d){for(var g=c.length,C=Nn(d.length,g),F=ai(c);C--;){var T=d[C];c[C]=yr(T,g)?F[T]:n}return c}function nb(c,d){if(!(d==="constructor"&&typeof c[d]=="function")&&d!="__proto__")return c[d]}var SA=FA($T),Ou=bne||function(c,d){return En.setTimeout(c,d)},ib=FA(Die);function RA(c,d,g){var C=d+"";return ib(c,Yie(C,soe(Kie(C),g)))}function FA(c){var d=0,g=0;return function(){var C=Fne(),F=O-(C-g);if(g=C,F>0){if(++d>=I)return arguments[0]}else d=0;return c.apply(n,arguments)}}function dp(c,d){var g=-1,C=c.length,F=C-1;for(d=d===n?C:d;++g<d;){var T=Gw(g,F),_=c[T];c[T]=c[g],c[g]=_}return c.length=d,c}var xA=toe(function(c){var d=[];return c.charCodeAt(0)===46&&d.push(""),c.replace(Qee,function(g,C,F,T){d.push(F?T.replace(ite,"$1"):C||g)}),d});function Ho(c){if(typeof c=="string"||Fi(c))return c;var d=c+"";return d=="0"&&1/c==-we?"-0":d}function va(c){if(c!=null){try{return Hf.call(c)}catch{}try{return c+""}catch{}}return""}function soe(c,d){return zi(ae,function(g){var C="_."+g[0];d&g[1]&&!_f(c,C)&&c.push(C)}),c.sort()}function PA(c){if(c instanceof dt)return c.clone();var d=new $i(c.__wrapped__,c.__chain__);return d.__actions__=ai(c.__actions__),d.__index__=c.__index__,d.__values__=c.__values__,d}function aoe(c,d,g){(g?Qn(c,d,g):d===n)?d=1:d=cn(st(d),0);var C=c==null?0:c.length;if(!C||d<1)return[];for(var F=0,T=0,_=Y(Kf(C/d));F<C;)_[T++]=Ki(c,F,F+=d);return _}function loe(c){for(var d=-1,g=c==null?0:c.length,C=0,F=[];++d<g;){var T=c[d];T&&(F[C++]=T)}return F}function coe(){var c=arguments.length;if(!c)return[];for(var d=Y(c-1),g=arguments[0],C=c;C--;)d[C-1]=arguments[C];return us(it(g)?ai(g):[g],Dn(d,1))}var uoe=lt(function(c,d){return Xt(c)?Au(c,Dn(d,1,Xt,!0)):[]}),doe=lt(function(c,d){var g=qi(d);return Xt(g)&&(g=n),Xt(c)?Au(c,Dn(d,1,Xt,!0),Ke(g,2)):[]}),hoe=lt(function(c,d){var g=qi(d);return Xt(g)&&(g=n),Xt(c)?Au(c,Dn(d,1,Xt,!0),n,g):[]});function foe(c,d,g){var C=c==null?0:c.length;return C?(d=g||d===n?1:st(d),Ki(c,d<0?0:d,C)):[]}function poe(c,d,g){var C=c==null?0:c.length;return C?(d=g||d===n?1:st(d),d=C-d,Ki(c,0,d<0?0:d)):[]}function goe(c,d){return c&&c.length?ip(c,Ke(d,3),!0,!0):[]}function moe(c,d){return c&&c.length?ip(c,Ke(d,3),!0):[]}function voe(c,d,g,C){var F=c==null?0:c.length;return F?(g&&typeof g!="number"&&Qn(c,d,g)&&(g=0,C=F),cie(c,d,g,C)):[]}function EA(c,d,g){var C=c==null?0:c.length;if(!C)return-1;var F=g==null?0:st(g);return F<0&&(F=cn(C+F,0)),Of(c,Ke(d,3),F)}function DA(c,d,g){var C=c==null?0:c.length;if(!C)return-1;var F=C-1;return g!==n&&(F=st(g),F=g<0?cn(C+F,0):Nn(F,C-1)),Of(c,Ke(d,3),F,!0)}function TA(c){var d=c==null?0:c.length;return d?Dn(c,1):[]}function Coe(c){var d=c==null?0:c.length;return d?Dn(c,we):[]}function woe(c,d){var g=c==null?0:c.length;return g?(d=d===n?1:st(d),Dn(c,d)):[]}function boe(c){for(var d=-1,g=c==null?0:c.length,C={};++d<g;){var F=c[d];C[F[0]]=F[1]}return C}function AA(c){return c&&c.length?c[0]:n}function yoe(c,d,g){var C=c==null?0:c.length;if(!C)return-1;var F=g==null?0:st(g);return F<0&&(F=cn(C+F,0)),Cl(c,d,F)}function Soe(c){var d=c==null?0:c.length;return d?Ki(c,0,-1):[]}var Roe=lt(function(c){var d=Wt(c,Uw);return d.length&&d[0]===c[0]?Lw(d):[]}),Foe=lt(function(c){var d=qi(c),g=Wt(c,Uw);return d===qi(g)?d=n:g.pop(),g.length&&g[0]===c[0]?Lw(g,Ke(d,2)):[]}),xoe=lt(function(c){var d=qi(c),g=Wt(c,Uw);return d=typeof d=="function"?d:n,d&&g.pop(),g.length&&g[0]===c[0]?Lw(g,n,d):[]});function Poe(c,d){return c==null?"":Sne.call(c,d)}function qi(c){var d=c==null?0:c.length;return d?c[d-1]:n}function Eoe(c,d,g){var C=c==null?0:c.length;if(!C)return-1;var F=C;return g!==n&&(F=st(g),F=F<0?cn(C+F,0):Nn(F,C-1)),d===d?sne(c,d,F):Of(c,uT,F,!0)}function Doe(c,d){return c&&c.length?VT(c,st(d)):n}var Toe=lt(IA);function IA(c,d){return c&&c.length&&d&&d.length?Bw(c,d):c}function Aoe(c,d,g){return c&&c.length&&d&&d.length?Bw(c,d,Ke(g,2)):c}function Ioe(c,d,g){return c&&c.length&&d&&d.length?Bw(c,d,n,g):c}var Moe=br(function(c,d){var g=c==null?0:c.length,C=Aw(c,d);return UT(c,Wt(d,function(F){return yr(F,g)?+F:F}).sort(eA)),C});function koe(c,d){var g=[];if(!(c&&c.length))return g;var C=-1,F=[],T=c.length;for(d=Ke(d,3);++C<T;){var _=c[C];d(_,C,c)&&(g.push(_),F.push(C))}return UT(c,F),g}function ob(c){return c==null?c:Pne.call(c)}function Loe(c,d,g){var C=c==null?0:c.length;return C?(g&&typeof g!="number"&&Qn(c,d,g)?(d=0,g=C):(d=d==null?0:st(d),g=g===n?C:st(g)),Ki(c,d,g)):[]}function _oe(c,d){return np(c,d)}function Ooe(c,d,g){return Vw(c,d,Ke(g,2))}function Noe(c,d){var g=c==null?0:c.length;if(g){var C=np(c,d);if(C<g&&fo(c[C],d))return C}return-1}function Boe(c,d){return np(c,d,!0)}function Goe(c,d,g){return Vw(c,d,Ke(g,2),!0)}function Hoe(c,d){var g=c==null?0:c.length;if(g){var C=np(c,d,!0)-1;if(fo(c[C],d))return C}return-1}function Voe(c){return c&&c.length?jT(c):[]}function Woe(c,d){return c&&c.length?jT(c,Ke(d,2)):[]}function zoe(c){var d=c==null?0:c.length;return d?Ki(c,1,d):[]}function Uoe(c,d,g){return c&&c.length?(d=g||d===n?1:st(d),Ki(c,0,d<0?0:d)):[]}function $oe(c,d,g){var C=c==null?0:c.length;return C?(d=g||d===n?1:st(d),d=C-d,Ki(c,d<0?0:d,C)):[]}function joe(c,d){return c&&c.length?ip(c,Ke(d,3),!1,!0):[]}function Koe(c,d){return c&&c.length?ip(c,Ke(d,3)):[]}var qoe=lt(function(c){return ps(Dn(c,1,Xt,!0))}),Qoe=lt(function(c){var d=qi(c);return Xt(d)&&(d=n),ps(Dn(c,1,Xt,!0),Ke(d,2))}),Yoe=lt(function(c){var d=qi(c);return d=typeof d=="function"?d:n,ps(Dn(c,1,Xt,!0),n,d)});function Zoe(c){return c&&c.length?ps(c):[]}function Xoe(c,d){return c&&c.length?ps(c,Ke(d,2)):[]}function Joe(c,d){return d=typeof d=="function"?d:n,c&&c.length?ps(c,n,d):[]}function rb(c){if(!(c&&c.length))return[];var d=0;return c=cs(c,function(g){if(Xt(g))return d=cn(g.length,d),!0}),Sw(d,function(g){return Wt(c,ww(g))})}function MA(c,d){if(!(c&&c.length))return[];var g=rb(c);return d==null?g:Wt(g,function(C){return yi(d,n,C)})}var ere=lt(function(c,d){return Xt(c)?Au(c,d):[]}),tre=lt(function(c){return zw(cs(c,Xt))}),nre=lt(function(c){var d=qi(c);return Xt(d)&&(d=n),zw(cs(c,Xt),Ke(d,2))}),ire=lt(function(c){var d=qi(c);return d=typeof d=="function"?d:n,zw(cs(c,Xt),n,d)}),ore=lt(rb);function rre(c,d){return YT(c||[],d||[],Tu)}function sre(c,d){return YT(c||[],d||[],ku)}var are=lt(function(c){var d=c.length,g=d>1?c[d-1]:n;return g=typeof g=="function"?(c.pop(),g):n,MA(c,g)});function kA(c){var d=E(c);return d.__chain__=!0,d}function lre(c,d){return d(c),c}function hp(c,d){return d(c)}var cre=br(function(c){var d=c.length,g=d?c[0]:0,C=this.__wrapped__,F=function(T){return Aw(T,c)};return d>1||this.__actions__.length||!(C instanceof dt)||!yr(g)?this.thru(F):(C=C.slice(g,+g+(d?1:0)),C.__actions__.push({func:hp,args:[F],thisArg:n}),new $i(C,this.__chain__).thru(function(T){return d&&!T.length&&T.push(n),T}))});function ure(){return kA(this)}function dre(){return new $i(this.value(),this.__chain__)}function hre(){this.__values__===n&&(this.__values__=KA(this.value()));var c=this.__index__>=this.__values__.length,d=c?n:this.__values__[this.__index__++];return{done:c,value:d}}function fre(){return this}function pre(c){for(var d,g=this;g instanceof Zf;){var C=PA(g);C.__index__=0,C.__values__=n,d?F.__wrapped__=C:d=C;var F=C;g=g.__wrapped__}return F.__wrapped__=c,d}function gre(){var c=this.__wrapped__;if(c instanceof dt){var d=c;return this.__actions__.length&&(d=new dt(this)),d=d.reverse(),d.__actions__.push({func:hp,args:[ob],thisArg:n}),new $i(d,this.__chain__)}return this.thru(ob)}function mre(){return QT(this.__wrapped__,this.__actions__)}var vre=op(function(c,d,g){St.call(c,g)?++c[g]:Cr(c,g,1)});function Cre(c,d,g){var C=it(c)?lT:lie;return g&&Qn(c,d,g)&&(d=n),C(c,Ke(d,3))}function wre(c,d){var g=it(c)?cs:MT;return g(c,Ke(d,3))}var bre=sA(EA),yre=sA(DA);function Sre(c,d){return Dn(fp(c,d),1)}function Rre(c,d){return Dn(fp(c,d),we)}function Fre(c,d,g){return g=g===n?1:st(g),Dn(fp(c,d),g)}function LA(c,d){var g=it(c)?zi:fs;return g(c,Ke(d,3))}function _A(c,d){var g=it(c)?zte:IT;return g(c,Ke(d,3))}var xre=op(function(c,d,g){St.call(c,g)?c[g].push(d):Cr(c,g,[d])});function Pre(c,d,g,C){c=li(c)?c:Al(c),g=g&&!C?st(g):0;var F=c.length;return g<0&&(g=cn(F+g,0)),Cp(c)?g<=F&&c.indexOf(d,g)>-1:!!F&&Cl(c,d,g)>-1}var Ere=lt(function(c,d,g){var C=-1,F=typeof d=="function",T=li(c)?Y(c.length):[];return fs(c,function(_){T[++C]=F?yi(d,_,g):Iu(_,d,g)}),T}),Dre=op(function(c,d,g){Cr(c,g,d)});function fp(c,d){var g=it(c)?Wt:BT;return g(c,Ke(d,3))}function Tre(c,d,g,C){return c==null?[]:(it(d)||(d=d==null?[]:[d]),g=C?n:g,it(g)||(g=g==null?[]:[g]),WT(c,d,g))}var Are=op(function(c,d,g){c[g?0:1].push(d)},function(){return[[],[]]});function Ire(c,d,g){var C=it(c)?vw:hT,F=arguments.length<3;return C(c,Ke(d,4),g,F,fs)}function Mre(c,d,g){var C=it(c)?Ute:hT,F=arguments.length<3;return C(c,Ke(d,4),g,F,IT)}function kre(c,d){var g=it(c)?cs:MT;return g(c,mp(Ke(d,3)))}function Lre(c){var d=it(c)?ET:Pie;return d(c)}function _re(c,d,g){(g?Qn(c,d,g):d===n)?d=1:d=st(d);var C=it(c)?iie:Eie;return C(c,d)}function Ore(c){var d=it(c)?oie:Tie;return d(c)}function Nre(c){if(c==null)return 0;if(li(c))return Cp(c)?bl(c):c.length;var d=Bn(c);return d==U||d==ie?c.size:Ow(c).length}function Bre(c,d,g){var C=it(c)?Cw:Aie;return g&&Qn(c,d,g)&&(d=n),C(c,Ke(d,3))}var Gre=lt(function(c,d){if(c==null)return[];var g=d.length;return g>1&&Qn(c,d[0],d[1])?d=[]:g>2&&Qn(d[0],d[1],d[2])&&(d=[d[0]]),WT(c,Dn(d,1),[])}),pp=wne||function(){return En.Date.now()};function Hre(c,d){if(typeof d!="function")throw new Ui(s);return c=st(c),function(){if(--c<1)return d.apply(this,arguments)}}function OA(c,d,g){return d=g?n:d,d=c&&d==null?c.length:d,wr(c,A,n,n,n,n,d)}function NA(c,d){var g;if(typeof d!="function")throw new Ui(s);return c=st(c),function(){return--c>0&&(g=d.apply(this,arguments)),c<=1&&(d=n),g}}var sb=lt(function(c,d,g){var C=b;if(g.length){var F=ds(g,Dl(sb));C|=P}return wr(c,C,d,g,F)}),BA=lt(function(c,d,g){var C=b|y;if(g.length){var F=ds(g,Dl(BA));C|=P}return wr(d,C,c,g,F)});function GA(c,d,g){d=g?n:d;var C=wr(c,S,n,n,n,n,n,d);return C.placeholder=GA.placeholder,C}function HA(c,d,g){d=g?n:d;var C=wr(c,x,n,n,n,n,n,d);return C.placeholder=HA.placeholder,C}function VA(c,d,g){var C,F,T,_,V,$,oe=0,re=!1,le=!1,De=!0;if(typeof c!="function")throw new Ui(s);d=Qi(d)||0,$t(g)&&(re=!!g.leading,le="maxWait"in g,T=le?cn(Qi(g.maxWait)||0,d):T,De="trailing"in g?!!g.trailing:De);function Be(Jt){var po=C,Fr=F;return C=F=n,oe=Jt,_=c.apply(Fr,po),_}function Qe(Jt){return oe=Jt,V=Ou(ct,d),re?Be(Jt):_}function at(Jt){var po=Jt-$,Fr=Jt-oe,sI=d-po;return le?Nn(sI,T-Fr):sI}function Ye(Jt){var po=Jt-$,Fr=Jt-oe;return $===n||po>=d||po<0||le&&Fr>=T}function ct(){var Jt=pp();if(Ye(Jt))return ht(Jt);V=Ou(ct,at(Jt))}function ht(Jt){return V=n,De&&C?Be(Jt):(C=F=n,_)}function xi(){V!==n&&ZT(V),oe=0,C=$=F=V=n}function Yn(){return V===n?_:ht(pp())}function Pi(){var Jt=pp(),po=Ye(Jt);if(C=arguments,F=this,$=Jt,po){if(V===n)return Qe($);if(le)return ZT(V),V=Ou(ct,d),Be($)}return V===n&&(V=Ou(ct,d)),_}return Pi.cancel=xi,Pi.flush=Yn,Pi}var Vre=lt(function(c,d){return AT(c,1,d)}),Wre=lt(function(c,d,g){return AT(c,Qi(d)||0,g)});function zre(c){return wr(c,B)}function gp(c,d){if(typeof c!="function"||d!=null&&typeof d!="function")throw new Ui(s);var g=function(){var C=arguments,F=d?d.apply(this,C):C[0],T=g.cache;if(T.has(F))return T.get(F);var _=c.apply(this,C);return g.cache=T.set(F,_)||T,_};return g.cache=new(gp.Cache||vr),g}gp.Cache=vr;function mp(c){if(typeof c!="function")throw new Ui(s);return function(){var d=arguments;switch(d.length){case 0:return!c.call(this);case 1:return!c.call(this,d[0]);case 2:return!c.call(this,d[0],d[1]);case 3:return!c.call(this,d[0],d[1],d[2])}return!c.apply(this,d)}}function Ure(c){return NA(2,c)}var $re=Iie(function(c,d){d=d.length==1&&it(d[0])?Wt(d[0],Si(Ke())):Wt(Dn(d,1),Si(Ke()));var g=d.length;return lt(function(C){for(var F=-1,T=Nn(C.length,g);++F<T;)C[F]=d[F].call(this,C[F]);return yi(c,this,C)})}),ab=lt(function(c,d){var g=ds(d,Dl(ab));return wr(c,P,n,d,g)}),WA=lt(function(c,d){var g=ds(d,Dl(WA));return wr(c,D,n,d,g)}),jre=br(function(c,d){return wr(c,N,n,n,n,d)});function Kre(c,d){if(typeof c!="function")throw new Ui(s);return d=d===n?d:st(d),lt(c,d)}function qre(c,d){if(typeof c!="function")throw new Ui(s);return d=d==null?0:cn(st(d),0),lt(function(g){var C=g[d],F=ms(g,0,d);return C&&us(F,C),yi(c,this,F)})}function Qre(c,d,g){var C=!0,F=!0;if(typeof c!="function")throw new Ui(s);return $t(g)&&(C="leading"in g?!!g.leading:C,F="trailing"in g?!!g.trailing:F),VA(c,d,{leading:C,maxWait:d,trailing:F})}function Yre(c){return OA(c,1)}function Zre(c,d){return ab($w(d),c)}function Xre(){if(!arguments.length)return[];var c=arguments[0];return it(c)?c:[c]}function Jre(c){return ji(c,m)}function ese(c,d){return d=typeof d=="function"?d:n,ji(c,m,d)}function tse(c){return ji(c,f|m)}function nse(c,d){return d=typeof d=="function"?d:n,ji(c,f|m,d)}function ise(c,d){return d==null||TT(c,d,gn(d))}function fo(c,d){return c===d||c!==c&&d!==d}var ose=lp(kw),rse=lp(function(c,d){return c>=d}),Ca=_T((function(){return arguments})())?_T:function(c){return Qt(c)&&St.call(c,"callee")&&!yT.call(c,"callee")},it=Y.isArray,sse=nT?Si(nT):pie;function li(c){return c!=null&&vp(c.length)&&!Sr(c)}function Xt(c){return Qt(c)&&li(c)}function ase(c){return c===!0||c===!1||Qt(c)&&qn(c)==_e}var vs=yne||Cb,lse=iT?Si(iT):gie;function cse(c){return Qt(c)&&c.nodeType===1&&!Nu(c)}function use(c){if(c==null)return!0;if(li(c)&&(it(c)||typeof c=="string"||typeof c.splice=="function"||vs(c)||Tl(c)||Ca(c)))return!c.length;var d=Bn(c);if(d==U||d==ie)return!c.size;if(_u(c))return!Ow(c).length;for(var g in c)if(St.call(c,g))return!1;return!0}function dse(c,d){return Mu(c,d)}function hse(c,d,g){g=typeof g=="function"?g:n;var C=g?g(c,d):n;return C===n?Mu(c,d,n,g):!!C}function lb(c){if(!Qt(c))return!1;var d=qn(c);return d==pt||d==Ue||typeof c.message=="string"&&typeof c.name=="string"&&!Nu(c)}function fse(c){return typeof c=="number"&&RT(c)}function Sr(c){if(!$t(c))return!1;var d=qn(c);return d==k||d==H||d==ve||d==fe}function zA(c){return typeof c=="number"&&c==st(c)}function vp(c){return typeof c=="number"&&c>-1&&c%1==0&&c<=he}function $t(c){var d=typeof c;return c!=null&&(d=="object"||d=="function")}function Qt(c){return c!=null&&typeof c=="object"}var UA=oT?Si(oT):vie;function pse(c,d){return c===d||_w(c,d,Xw(d))}function gse(c,d,g){return g=typeof g=="function"?g:n,_w(c,d,Xw(d),g)}function mse(c){return $A(c)&&c!=+c}function vse(c){if(eoe(c))throw new tt(r);return OT(c)}function Cse(c){return c===null}function wse(c){return c==null}function $A(c){return typeof c=="number"||Qt(c)&&qn(c)==ne}function Nu(c){if(!Qt(c)||qn(c)!=Z)return!1;var d=Uf(c);if(d===null)return!0;var g=St.call(d,"constructor")&&d.constructor;return typeof g=="function"&&g instanceof g&&Hf.call(g)==gne}var cb=rT?Si(rT):Cie;function bse(c){return zA(c)&&c>=-he&&c<=he}var jA=sT?Si(sT):wie;function Cp(c){return typeof c=="string"||!it(c)&&Qt(c)&&qn(c)==Me}function Fi(c){return typeof c=="symbol"||Qt(c)&&qn(c)==ye}var Tl=aT?Si(aT):bie;function yse(c){return c===n}function Sse(c){return Qt(c)&&Bn(c)==Ve}function Rse(c){return Qt(c)&&qn(c)==et}var Fse=lp(Nw),xse=lp(function(c,d){return c<=d});function KA(c){if(!c)return[];if(li(c))return Cp(c)?uo(c):ai(c);if(Fu&&c[Fu])return ine(c[Fu]());var d=Bn(c),g=d==U?Fw:d==ie?Nf:Al;return g(c)}function Rr(c){if(!c)return c===0?c:0;if(c=Qi(c),c===we||c===-we){var d=c<0?-1:1;return d*xe}return c===c?c:0}function st(c){var d=Rr(c),g=d%1;return d===d?g?d-g:d:0}function qA(c){return c?pa(st(c),0,G):0}function Qi(c){if(typeof c=="number")return c;if(Fi(c))return Ie;if($t(c)){var d=typeof c.valueOf=="function"?c.valueOf():c;c=$t(d)?d+"":d}if(typeof c!="string")return c===0?c:+c;c=fT(c);var g=ste.test(c);return g||lte.test(c)?Hte(c.slice(2),g?2:8):rte.test(c)?Ie:+c}function QA(c){return Go(c,ci(c))}function Pse(c){return c?pa(st(c),-he,he):c===0?c:0}function Rt(c){return c==null?"":Ri(c)}var Ese=Pl(function(c,d){if(_u(d)||li(d)){Go(d,gn(d),c);return}for(var g in d)St.call(d,g)&&Tu(c,g,d[g])}),YA=Pl(function(c,d){Go(d,ci(d),c)}),wp=Pl(function(c,d,g,C){Go(d,ci(d),c,C)}),Dse=Pl(function(c,d,g,C){Go(d,gn(d),c,C)}),Tse=br(Aw);function Ase(c,d){var g=xl(c);return d==null?g:DT(g,d)}var Ise=lt(function(c,d){c=Et(c);var g=-1,C=d.length,F=C>2?d[2]:n;for(F&&Qn(d[0],d[1],F)&&(C=1);++g<C;)for(var T=d[g],_=ci(T),V=-1,$=_.length;++V<$;){var oe=_[V],re=c[oe];(re===n||fo(re,Sl[oe])&&!St.call(c,oe))&&(c[oe]=T[oe])}return c}),Mse=lt(function(c){return c.push(n,fA),yi(ZA,n,c)});function kse(c,d){return cT(c,Ke(d,3),Bo)}function Lse(c,d){return cT(c,Ke(d,3),Mw)}function _se(c,d){return c==null?c:Iw(c,Ke(d,3),ci)}function Ose(c,d){return c==null?c:kT(c,Ke(d,3),ci)}function Nse(c,d){return c&&Bo(c,Ke(d,3))}function Bse(c,d){return c&&Mw(c,Ke(d,3))}function Gse(c){return c==null?[]:ep(c,gn(c))}function Hse(c){return c==null?[]:ep(c,ci(c))}function ub(c,d,g){var C=c==null?n:ga(c,d);return C===n?g:C}function Vse(c,d){return c!=null&&mA(c,d,uie)}function db(c,d){return c!=null&&mA(c,d,die)}var Wse=lA(function(c,d,g){d!=null&&typeof d.toString!="function"&&(d=Vf.call(d)),c[d]=g},fb(ui)),zse=lA(function(c,d,g){d!=null&&typeof d.toString!="function"&&(d=Vf.call(d)),St.call(c,d)?c[d].push(g):c[d]=[g]},Ke),Use=lt(Iu);function gn(c){return li(c)?PT(c):Ow(c)}function ci(c){return li(c)?PT(c,!0):yie(c)}function $se(c,d){var g={};return d=Ke(d,3),Bo(c,function(C,F,T){Cr(g,d(C,F,T),C)}),g}function jse(c,d){var g={};return d=Ke(d,3),Bo(c,function(C,F,T){Cr(g,F,d(C,F,T))}),g}var Kse=Pl(function(c,d,g){tp(c,d,g)}),ZA=Pl(function(c,d,g,C){tp(c,d,g,C)}),qse=br(function(c,d){var g={};if(c==null)return g;var C=!1;d=Wt(d,function(T){return T=gs(T,c),C||(C=T.length>1),T}),Go(c,Yw(c),g),C&&(g=ji(g,f|p|m,Wie));for(var F=d.length;F--;)Ww(g,d[F]);return g});function Qse(c,d){return XA(c,mp(Ke(d)))}var Yse=br(function(c,d){return c==null?{}:Rie(c,d)});function XA(c,d){if(c==null)return{};var g=Wt(Yw(c),function(C){return[C]});return d=Ke(d),zT(c,g,function(C,F){return d(C,F[0])})}function Zse(c,d,g){d=gs(d,c);var C=-1,F=d.length;for(F||(F=1,c=n);++C<F;){var T=c==null?n:c[Ho(d[C])];T===n&&(C=F,T=g),c=Sr(T)?T.call(c):T}return c}function Xse(c,d,g){return c==null?c:ku(c,d,g)}function Jse(c,d,g,C){return C=typeof C=="function"?C:n,c==null?c:ku(c,d,g,C)}var JA=dA(gn),eI=dA(ci);function eae(c,d,g){var C=it(c),F=C||vs(c)||Tl(c);if(d=Ke(d,4),g==null){var T=c&&c.constructor;F?g=C?new T:[]:$t(c)?g=Sr(T)?xl(Uf(c)):{}:g={}}return(F?zi:Bo)(c,function(_,V,$){return d(g,_,V,$)}),g}function tae(c,d){return c==null?!0:Ww(c,d)}function nae(c,d,g){return c==null?c:qT(c,d,$w(g))}function iae(c,d,g,C){return C=typeof C=="function"?C:n,c==null?c:qT(c,d,$w(g),C)}function Al(c){return c==null?[]:Rw(c,gn(c))}function oae(c){return c==null?[]:Rw(c,ci(c))}function rae(c,d,g){return g===n&&(g=d,d=n),g!==n&&(g=Qi(g),g=g===g?g:0),d!==n&&(d=Qi(d),d=d===d?d:0),pa(Qi(c),d,g)}function sae(c,d,g){return d=Rr(d),g===n?(g=d,d=0):g=Rr(g),c=Qi(c),hie(c,d,g)}function aae(c,d,g){if(g&&typeof g!="boolean"&&Qn(c,d,g)&&(d=g=n),g===n&&(typeof d=="boolean"?(g=d,d=n):typeof c=="boolean"&&(g=c,c=n)),c===n&&d===n?(c=0,d=1):(c=Rr(c),d===n?(d=c,c=0):d=Rr(d)),c>d){var C=c;c=d,d=C}if(g||c%1||d%1){var F=FT();return Nn(c+F*(d-c+Gte("1e-"+((F+"").length-1))),d)}return Gw(c,d)}var lae=El(function(c,d,g){return d=d.toLowerCase(),c+(g?tI(d):d)});function tI(c){return hb(Rt(c).toLowerCase())}function nI(c){return c=Rt(c),c&&c.replace(ute,Xte).replace(Tte,"")}function cae(c,d,g){c=Rt(c),d=Ri(d);var C=c.length;g=g===n?C:pa(st(g),0,C);var F=g;return g-=d.length,g>=0&&c.slice(g,F)==d}function uae(c){return c=Rt(c),c&&ca.test(c)?c.replace(Kn,Jte):c}function dae(c){return c=Rt(c),c&&Yee.test(c)?c.replace(aw,"\\$&"):c}var hae=El(function(c,d,g){return c+(g?"-":"")+d.toLowerCase()}),fae=El(function(c,d,g){return c+(g?" ":"")+d.toLowerCase()}),pae=rA("toLowerCase");function gae(c,d,g){c=Rt(c),d=st(d);var C=d?bl(c):0;if(!d||C>=d)return c;var F=(d-C)/2;return ap(qf(F),g)+c+ap(Kf(F),g)}function mae(c,d,g){c=Rt(c),d=st(d);var C=d?bl(c):0;return d&&C<d?c+ap(d-C,g):c}function vae(c,d,g){c=Rt(c),d=st(d);var C=d?bl(c):0;return d&&C<d?ap(d-C,g)+c:c}function Cae(c,d,g){return g||d==null?d=0:d&&(d=+d),xne(Rt(c).replace(lw,""),d||0)}function wae(c,d,g){return(g?Qn(c,d,g):d===n)?d=1:d=st(d),Hw(Rt(c),d)}function bae(){var c=arguments,d=Rt(c[0]);return c.length<3?d:d.replace(c[1],c[2])}var yae=El(function(c,d,g){return c+(g?"_":"")+d.toLowerCase()});function Sae(c,d,g){return g&&typeof g!="number"&&Qn(c,d,g)&&(d=g=n),g=g===n?G:g>>>0,g?(c=Rt(c),c&&(typeof d=="string"||d!=null&&!cb(d))&&(d=Ri(d),!d&&wl(c))?ms(uo(c),0,g):c.split(d,g)):[]}var Rae=El(function(c,d,g){return c+(g?" ":"")+hb(d)});function Fae(c,d,g){return c=Rt(c),g=g==null?0:pa(st(g),0,c.length),d=Ri(d),c.slice(g,g+d.length)==d}function xae(c,d,g){var C=E.templateSettings;g&&Qn(c,d,g)&&(d=n),c=Rt(c),d=wp({},d,C,hA);var F=wp({},d.imports,C.imports,hA),T=gn(F),_=Rw(F,T),V,$,oe=0,re=d.interpolate||Mf,le="__p += '",De=xw((d.escape||Mf).source+"|"+re.source+"|"+(re===LD?ote:Mf).source+"|"+(d.evaluate||Mf).source+"|$","g"),Be="//# sourceURL="+(St.call(d,"sourceURL")?(d.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Lte+"]")+`
650
+ `;c.replace(De,function(Ye,ct,ht,xi,Yn,Pi){return ht||(ht=xi),le+=c.slice(oe,Pi).replace(dte,ene),ct&&(V=!0,le+=`' +
651
+ __e(`+ct+`) +
652
+ '`),Yn&&($=!0,le+=`';
653
+ `+Yn+`;
654
+ __p += '`),ht&&(le+=`' +
655
+ ((__t = (`+ht+`)) == null ? '' : __t) +
656
+ '`),oe=Pi+Ye.length,Ye}),le+=`';
657
+ `;var Qe=St.call(d,"variable")&&d.variable;if(!Qe)le=`with (obj) {
658
+ `+le+`
659
+ }
660
+ `;else if(nte.test(Qe))throw new tt(a);le=($?le.replace($e,""):le).replace(Pn,"$1").replace(No,"$1;"),le="function("+(Qe||"obj")+`) {
661
+ `+(Qe?"":`obj || (obj = {});
662
+ `)+"var __t, __p = ''"+(V?", __e = _.escape":"")+($?`, __j = Array.prototype.join;
663
+ function print() { __p += __j.call(arguments, '') }
664
+ `:`;
665
+ `)+le+`return __p
666
+ }`;var at=oI(function(){return wt(T,Be+"return "+le).apply(n,_)});if(at.source=le,lb(at))throw at;return at}function Pae(c){return Rt(c).toLowerCase()}function Eae(c){return Rt(c).toUpperCase()}function Dae(c,d,g){if(c=Rt(c),c&&(g||d===n))return fT(c);if(!c||!(d=Ri(d)))return c;var C=uo(c),F=uo(d),T=pT(C,F),_=gT(C,F)+1;return ms(C,T,_).join("")}function Tae(c,d,g){if(c=Rt(c),c&&(g||d===n))return c.slice(0,vT(c)+1);if(!c||!(d=Ri(d)))return c;var C=uo(c),F=gT(C,uo(d))+1;return ms(C,0,F).join("")}function Aae(c,d,g){if(c=Rt(c),c&&(g||d===n))return c.replace(lw,"");if(!c||!(d=Ri(d)))return c;var C=uo(c),F=pT(C,uo(d));return ms(C,F).join("")}function Iae(c,d){var g=L,C=M;if($t(d)){var F="separator"in d?d.separator:F;g="length"in d?st(d.length):g,C="omission"in d?Ri(d.omission):C}c=Rt(c);var T=c.length;if(wl(c)){var _=uo(c);T=_.length}if(g>=T)return c;var V=g-bl(C);if(V<1)return C;var $=_?ms(_,0,V).join(""):c.slice(0,V);if(F===n)return $+C;if(_&&(V+=$.length-V),cb(F)){if(c.slice(V).search(F)){var oe,re=$;for(F.global||(F=xw(F.source,Rt(_D.exec(F))+"g")),F.lastIndex=0;oe=F.exec(re);)var le=oe.index;$=$.slice(0,le===n?V:le)}}else if(c.indexOf(Ri(F),V)!=V){var De=$.lastIndexOf(F);De>-1&&($=$.slice(0,De))}return $+C}function Mae(c){return c=Rt(c),c&&Su.test(c)?c.replace(an,ane):c}var kae=El(function(c,d,g){return c+(g?" ":"")+d.toUpperCase()}),hb=rA("toUpperCase");function iI(c,d,g){return c=Rt(c),d=g?n:d,d===n?nne(c)?une(c):Kte(c):c.match(d)||[]}var oI=lt(function(c,d){try{return yi(c,n,d)}catch(g){return lb(g)?g:new tt(g)}}),Lae=br(function(c,d){return zi(d,function(g){g=Ho(g),Cr(c,g,sb(c[g],c))}),c});function _ae(c){var d=c==null?0:c.length,g=Ke();return c=d?Wt(c,function(C){if(typeof C[1]!="function")throw new Ui(s);return[g(C[0]),C[1]]}):[],lt(function(C){for(var F=-1;++F<d;){var T=c[F];if(yi(T[0],this,C))return yi(T[1],this,C)}})}function Oae(c){return aie(ji(c,f))}function fb(c){return function(){return c}}function Nae(c,d){return c==null||c!==c?d:c}var Bae=aA(),Gae=aA(!0);function ui(c){return c}function pb(c){return NT(typeof c=="function"?c:ji(c,f))}function Hae(c){return GT(ji(c,f))}function Vae(c,d){return HT(c,ji(d,f))}var Wae=lt(function(c,d){return function(g){return Iu(g,c,d)}}),zae=lt(function(c,d){return function(g){return Iu(c,g,d)}});function gb(c,d,g){var C=gn(d),F=ep(d,C);g==null&&!($t(d)&&(F.length||!C.length))&&(g=d,d=c,c=this,F=ep(d,gn(d)));var T=!($t(g)&&"chain"in g)||!!g.chain,_=Sr(c);return zi(F,function(V){var $=d[V];c[V]=$,_&&(c.prototype[V]=function(){var oe=this.__chain__;if(T||oe){var re=c(this.__wrapped__),le=re.__actions__=ai(this.__actions__);return le.push({func:$,args:arguments,thisArg:c}),re.__chain__=oe,re}return $.apply(c,us([this.value()],arguments))})}),c}function Uae(){return En._===this&&(En._=mne),this}function mb(){}function $ae(c){return c=st(c),lt(function(d){return VT(d,c)})}var jae=Kw(Wt),Kae=Kw(lT),qae=Kw(Cw);function rI(c){return eb(c)?ww(Ho(c)):Fie(c)}function Qae(c){return function(d){return c==null?n:ga(c,d)}}var Yae=cA(),Zae=cA(!0);function vb(){return[]}function Cb(){return!1}function Xae(){return{}}function Jae(){return""}function ele(){return!0}function tle(c,d){if(c=st(c),c<1||c>he)return[];var g=G,C=Nn(c,G);d=Ke(d),c-=G;for(var F=Sw(C,d);++g<c;)d(g);return F}function nle(c){return it(c)?Wt(c,Ho):Fi(c)?[c]:ai(xA(Rt(c)))}function ile(c){var d=++pne;return Rt(c)+d}var ole=sp(function(c,d){return c+d},0),rle=qw("ceil"),sle=sp(function(c,d){return c/d},1),ale=qw("floor");function lle(c){return c&&c.length?Jf(c,ui,kw):n}function cle(c,d){return c&&c.length?Jf(c,Ke(d,2),kw):n}function ule(c){return dT(c,ui)}function dle(c,d){return dT(c,Ke(d,2))}function hle(c){return c&&c.length?Jf(c,ui,Nw):n}function fle(c,d){return c&&c.length?Jf(c,Ke(d,2),Nw):n}var ple=sp(function(c,d){return c*d},1),gle=qw("round"),mle=sp(function(c,d){return c-d},0);function vle(c){return c&&c.length?yw(c,ui):0}function Cle(c,d){return c&&c.length?yw(c,Ke(d,2)):0}return E.after=Hre,E.ary=OA,E.assign=Ese,E.assignIn=YA,E.assignInWith=wp,E.assignWith=Dse,E.at=Tse,E.before=NA,E.bind=sb,E.bindAll=Lae,E.bindKey=BA,E.castArray=Xre,E.chain=kA,E.chunk=aoe,E.compact=loe,E.concat=coe,E.cond=_ae,E.conforms=Oae,E.constant=fb,E.countBy=vre,E.create=Ase,E.curry=GA,E.curryRight=HA,E.debounce=VA,E.defaults=Ise,E.defaultsDeep=Mse,E.defer=Vre,E.delay=Wre,E.difference=uoe,E.differenceBy=doe,E.differenceWith=hoe,E.drop=foe,E.dropRight=poe,E.dropRightWhile=goe,E.dropWhile=moe,E.fill=voe,E.filter=wre,E.flatMap=Sre,E.flatMapDeep=Rre,E.flatMapDepth=Fre,E.flatten=TA,E.flattenDeep=Coe,E.flattenDepth=woe,E.flip=zre,E.flow=Bae,E.flowRight=Gae,E.fromPairs=boe,E.functions=Gse,E.functionsIn=Hse,E.groupBy=xre,E.initial=Soe,E.intersection=Roe,E.intersectionBy=Foe,E.intersectionWith=xoe,E.invert=Wse,E.invertBy=zse,E.invokeMap=Ere,E.iteratee=pb,E.keyBy=Dre,E.keys=gn,E.keysIn=ci,E.map=fp,E.mapKeys=$se,E.mapValues=jse,E.matches=Hae,E.matchesProperty=Vae,E.memoize=gp,E.merge=Kse,E.mergeWith=ZA,E.method=Wae,E.methodOf=zae,E.mixin=gb,E.negate=mp,E.nthArg=$ae,E.omit=qse,E.omitBy=Qse,E.once=Ure,E.orderBy=Tre,E.over=jae,E.overArgs=$re,E.overEvery=Kae,E.overSome=qae,E.partial=ab,E.partialRight=WA,E.partition=Are,E.pick=Yse,E.pickBy=XA,E.property=rI,E.propertyOf=Qae,E.pull=Toe,E.pullAll=IA,E.pullAllBy=Aoe,E.pullAllWith=Ioe,E.pullAt=Moe,E.range=Yae,E.rangeRight=Zae,E.rearg=jre,E.reject=kre,E.remove=koe,E.rest=Kre,E.reverse=ob,E.sampleSize=_re,E.set=Xse,E.setWith=Jse,E.shuffle=Ore,E.slice=Loe,E.sortBy=Gre,E.sortedUniq=Voe,E.sortedUniqBy=Woe,E.split=Sae,E.spread=qre,E.tail=zoe,E.take=Uoe,E.takeRight=$oe,E.takeRightWhile=joe,E.takeWhile=Koe,E.tap=lre,E.throttle=Qre,E.thru=hp,E.toArray=KA,E.toPairs=JA,E.toPairsIn=eI,E.toPath=nle,E.toPlainObject=QA,E.transform=eae,E.unary=Yre,E.union=qoe,E.unionBy=Qoe,E.unionWith=Yoe,E.uniq=Zoe,E.uniqBy=Xoe,E.uniqWith=Joe,E.unset=tae,E.unzip=rb,E.unzipWith=MA,E.update=nae,E.updateWith=iae,E.values=Al,E.valuesIn=oae,E.without=ere,E.words=iI,E.wrap=Zre,E.xor=tre,E.xorBy=nre,E.xorWith=ire,E.zip=ore,E.zipObject=rre,E.zipObjectDeep=sre,E.zipWith=are,E.entries=JA,E.entriesIn=eI,E.extend=YA,E.extendWith=wp,gb(E,E),E.add=ole,E.attempt=oI,E.camelCase=lae,E.capitalize=tI,E.ceil=rle,E.clamp=rae,E.clone=Jre,E.cloneDeep=tse,E.cloneDeepWith=nse,E.cloneWith=ese,E.conformsTo=ise,E.deburr=nI,E.defaultTo=Nae,E.divide=sle,E.endsWith=cae,E.eq=fo,E.escape=uae,E.escapeRegExp=dae,E.every=Cre,E.find=bre,E.findIndex=EA,E.findKey=kse,E.findLast=yre,E.findLastIndex=DA,E.findLastKey=Lse,E.floor=ale,E.forEach=LA,E.forEachRight=_A,E.forIn=_se,E.forInRight=Ose,E.forOwn=Nse,E.forOwnRight=Bse,E.get=ub,E.gt=ose,E.gte=rse,E.has=Vse,E.hasIn=db,E.head=AA,E.identity=ui,E.includes=Pre,E.indexOf=yoe,E.inRange=sae,E.invoke=Use,E.isArguments=Ca,E.isArray=it,E.isArrayBuffer=sse,E.isArrayLike=li,E.isArrayLikeObject=Xt,E.isBoolean=ase,E.isBuffer=vs,E.isDate=lse,E.isElement=cse,E.isEmpty=use,E.isEqual=dse,E.isEqualWith=hse,E.isError=lb,E.isFinite=fse,E.isFunction=Sr,E.isInteger=zA,E.isLength=vp,E.isMap=UA,E.isMatch=pse,E.isMatchWith=gse,E.isNaN=mse,E.isNative=vse,E.isNil=wse,E.isNull=Cse,E.isNumber=$A,E.isObject=$t,E.isObjectLike=Qt,E.isPlainObject=Nu,E.isRegExp=cb,E.isSafeInteger=bse,E.isSet=jA,E.isString=Cp,E.isSymbol=Fi,E.isTypedArray=Tl,E.isUndefined=yse,E.isWeakMap=Sse,E.isWeakSet=Rse,E.join=Poe,E.kebabCase=hae,E.last=qi,E.lastIndexOf=Eoe,E.lowerCase=fae,E.lowerFirst=pae,E.lt=Fse,E.lte=xse,E.max=lle,E.maxBy=cle,E.mean=ule,E.meanBy=dle,E.min=hle,E.minBy=fle,E.stubArray=vb,E.stubFalse=Cb,E.stubObject=Xae,E.stubString=Jae,E.stubTrue=ele,E.multiply=ple,E.nth=Doe,E.noConflict=Uae,E.noop=mb,E.now=pp,E.pad=gae,E.padEnd=mae,E.padStart=vae,E.parseInt=Cae,E.random=aae,E.reduce=Ire,E.reduceRight=Mre,E.repeat=wae,E.replace=bae,E.result=Zse,E.round=gle,E.runInContext=z,E.sample=Lre,E.size=Nre,E.snakeCase=yae,E.some=Bre,E.sortedIndex=_oe,E.sortedIndexBy=Ooe,E.sortedIndexOf=Noe,E.sortedLastIndex=Boe,E.sortedLastIndexBy=Goe,E.sortedLastIndexOf=Hoe,E.startCase=Rae,E.startsWith=Fae,E.subtract=mle,E.sum=vle,E.sumBy=Cle,E.template=xae,E.times=tle,E.toFinite=Rr,E.toInteger=st,E.toLength=qA,E.toLower=Pae,E.toNumber=Qi,E.toSafeInteger=Pse,E.toString=Rt,E.toUpper=Eae,E.trim=Dae,E.trimEnd=Tae,E.trimStart=Aae,E.truncate=Iae,E.unescape=Mae,E.uniqueId=ile,E.upperCase=kae,E.upperFirst=hb,E.each=LA,E.eachRight=_A,E.first=AA,gb(E,(function(){var c={};return Bo(E,function(d,g){St.call(E.prototype,g)||(c[g]=d)}),c})(),{chain:!1}),E.VERSION=i,zi(["bind","bindKey","curry","curryRight","partial","partialRight"],function(c){E[c].placeholder=E}),zi(["drop","take"],function(c,d){dt.prototype[c]=function(g){g=g===n?1:cn(st(g),0);var C=this.__filtered__&&!d?new dt(this):this.clone();return C.__filtered__?C.__takeCount__=Nn(g,C.__takeCount__):C.__views__.push({size:Nn(g,G),type:c+(C.__dir__<0?"Right":"")}),C},dt.prototype[c+"Right"]=function(g){return this.reverse()[c](g).reverse()}}),zi(["filter","map","takeWhile"],function(c,d){var g=d+1,C=g==Q||g==Fe;dt.prototype[c]=function(F){var T=this.clone();return T.__iteratees__.push({iteratee:Ke(F,3),type:g}),T.__filtered__=T.__filtered__||C,T}}),zi(["head","last"],function(c,d){var g="take"+(d?"Right":"");dt.prototype[c]=function(){return this[g](1).value()[0]}}),zi(["initial","tail"],function(c,d){var g="drop"+(d?"":"Right");dt.prototype[c]=function(){return this.__filtered__?new dt(this):this[g](1)}}),dt.prototype.compact=function(){return this.filter(ui)},dt.prototype.find=function(c){return this.filter(c).head()},dt.prototype.findLast=function(c){return this.reverse().find(c)},dt.prototype.invokeMap=lt(function(c,d){return typeof c=="function"?new dt(this):this.map(function(g){return Iu(g,c,d)})}),dt.prototype.reject=function(c){return this.filter(mp(Ke(c)))},dt.prototype.slice=function(c,d){c=st(c);var g=this;return g.__filtered__&&(c>0||d<0)?new dt(g):(c<0?g=g.takeRight(-c):c&&(g=g.drop(c)),d!==n&&(d=st(d),g=d<0?g.dropRight(-d):g.take(d-c)),g)},dt.prototype.takeRightWhile=function(c){return this.reverse().takeWhile(c).reverse()},dt.prototype.toArray=function(){return this.take(G)},Bo(dt.prototype,function(c,d){var g=/^(?:filter|find|map|reject)|While$/.test(d),C=/^(?:head|last)$/.test(d),F=E[C?"take"+(d=="last"?"Right":""):d],T=C||/^find/.test(d);F&&(E.prototype[d]=function(){var _=this.__wrapped__,V=C?[1]:arguments,$=_ instanceof dt,oe=V[0],re=$||it(_),le=function(ct){var ht=F.apply(E,us([ct],V));return C&&De?ht[0]:ht};re&&g&&typeof oe=="function"&&oe.length!=1&&($=re=!1);var De=this.__chain__,Be=!!this.__actions__.length,Qe=T&&!De,at=$&&!Be;if(!T&&re){_=at?_:new dt(this);var Ye=c.apply(_,V);return Ye.__actions__.push({func:hp,args:[le],thisArg:n}),new $i(Ye,De)}return Qe&&at?c.apply(this,V):(Ye=this.thru(le),Qe?C?Ye.value()[0]:Ye.value():Ye)})}),zi(["pop","push","shift","sort","splice","unshift"],function(c){var d=Bf[c],g=/^(?:push|sort|unshift)$/.test(c)?"tap":"thru",C=/^(?:pop|shift)$/.test(c);E.prototype[c]=function(){var F=arguments;if(C&&!this.__chain__){var T=this.value();return d.apply(it(T)?T:[],F)}return this[g](function(_){return d.apply(it(_)?_:[],F)})}}),Bo(dt.prototype,function(c,d){var g=E[d];if(g){var C=g.name+"";St.call(Fl,C)||(Fl[C]=[]),Fl[C].push({name:d,func:g})}}),Fl[rp(n,y).name]=[{name:"wrapper",func:n}],dt.prototype.clone=Mne,dt.prototype.reverse=kne,dt.prototype.value=Lne,E.prototype.at=cre,E.prototype.chain=ure,E.prototype.commit=dre,E.prototype.next=hre,E.prototype.plant=pre,E.prototype.reverse=gre,E.prototype.toJSON=E.prototype.valueOf=E.prototype.value=mre,E.prototype.first=E.prototype.head,Fu&&(E.prototype[Fu]=fre),E}),yl=dne();ua?((ua.exports=yl)._=yl,pw._=yl):En._=yl}).call(hY)})(Cu,Cu.exports)),Cu.exports}var pY=fY();const Ee=iD(pY),Gt={conjunction:0,query:[]},YC={sources:Gt,contributor:Gt,employer:Gt,employeeStatus:Gt,occupation:Gt,address:Gt,state:Gt,zipCode:Gt,date:Gt,dateDetected:Gt,amount:Gt,recipient:Gt,status:Gt,reconciliationStatus:Gt,preclearance:Gt,approvalDate:Gt,approvalAmount:Gt,amended:Gt,lastUpdated:Gt,lastUpdatedBy:Gt,notes:Gt,tags:Gt,groups:Gt},gY={"contribution-search":Ee.cloneDeep(YC),"detected-contributions":Ee.cloneDeep(YC)},sD=oa({name:"ContributionSearch",initialState:gY,reducers:{resetSearchBody:(e,t)=>({...e,[t.payload.page]:{...Ee.cloneDeep(YC)}}),resetSearchBodyFilterGroup:(e,t)=>({...e,[t.payload.page]:{...e[t.payload.page],[t.payload.filterName]:Ee.cloneDeep(Gt)}}),pruneSearchBodyFilterGroups:(e,t)=>({...e,[t.payload.page]:Ee.entries(e[t.payload.page]).reduce((n,[i,o])=>{const r=o.query.filter(a=>Ee.isString(a.value)?!Ee.isEmpty(a.value):!Ee.isNil(a.value)),s={conjunction:r.length<=1?0:o.conjunction,query:r};return{...n,[i]:s}},{})}),updateSearchBodyFilterGroupConjunction:(e,t)=>({...e,[t.payload.page]:{...e[t.payload.page],[t.payload.filterName]:{...e[t.payload.page][t.payload.filterName],conjunction:t.payload.conjunction}}}),addSearchBodyFilterGroupQuery:(e,t)=>{const n=[...e[t.payload.page][t.payload.filterName].query];return n.some(i=>i.id===t.payload.query.id)||n.push(t.payload.query),{...e,[t.payload.page]:{...e[t.payload.page],[t.payload.filterName]:{...e[t.payload.page][t.payload.filterName],query:n}}}},updateSearchBodyFilterGroupQueryComparator:(e,t)=>{const n=e[t.payload.page][t.payload.filterName].query.map(i=>i.id!==t.payload.id?i:{...i,comparator:t.payload.comparator});return{...e,[t.payload.page]:{...e[t.payload.page],[t.payload.filterName]:{...e[t.payload.page][t.payload.filterName],query:n}}}},updateSearchBodyFitlerGroupQueryValue:(e,t)=>{const n=e[t.payload.page][t.payload.filterName].query.map(i=>i.id!==t.payload.id?i:{...i,value:t.payload.value});return{...e,[t.payload.page]:{...e[t.payload.page],[t.payload.filterName]:{...e[t.payload.page][t.payload.filterName],query:n}}}},removeSearchBodyFilterGroupQuery:(e,t)=>({...e,[t.payload.page]:{...e[t.payload.page],[t.payload.filterName]:{...e[t.payload.page][t.payload.filterName],query:e[t.payload.page][t.payload.filterName].query.filter(n=>n.id!==t.payload.id)}}})}}),{addSearchBodyFilterGroupQuery:aD,pruneSearchBodyFilterGroups:xle,removeSearchBodyFilterGroupQuery:Ple,resetSearchBody:Ele,resetSearchBodyFilterGroup:lD,updateSearchBodyFilterGroupConjunction:cD,updateSearchBodyFilterGroupQueryComparator:Dle,updateSearchBodyFitlerGroupQueryValue:Tle}=sD.actions,mY={ContributionSearchReducer:sD.reducer},ls=(()=>{const e=[Hi.middleware];return hQ({reducer:{[Hi.reducerPath]:Hi.reducer,...mY},middleware:t=>t().concat(e)})})(),vY=()=>Sq(),uD=e=>Pq(e);function aa(e){const t=Co();let n,i;const o=()=>{i&&(t.value=e.select(i)(ls.getState()))},r=()=>{n?.reset(),n=void 0,i=void 0,t.value=void 0},s=()=>{n?.abort()},a=async l=>{const u=ls.dispatch(e.initiate(l));n=u,i=u.requestId,o();try{const h=await u.unwrap();return o(),h}catch(h){throw o(),h}};return{state:Re(()=>t.value),data:Re(()=>t.value?.data),error:Re(()=>t.value?.error),isUninitialized:Re(()=>t.value?.isUninitialized),isLoading:Re(()=>t.value?.isLoading),isSuccess:Re(()=>t.value?.isSuccess),isError:Re(()=>t.value?.isError),status:Re(()=>t.value?.status),originalArgs:Re(()=>t.value?.originalArgs),trigger:a,abort:s,reset:r}}function wu(e,t){const n=()=>zI(t),i=Co();let o,r;const s=()=>{r?.unsubscribe(),r=void 0,o?.(),o=void 0},a=l=>{const u=e.select(l),h=()=>{i.value=u(ls.getState())};h(),o=ls.subscribe(h),r=ls.dispatch(e.initiate(l))};return vn(n,l=>{s(),a(l)},{immediate:!0}),zl(()=>{s()}),{state:Re(()=>i.value),data:Re(()=>i.value?.data),error:Re(()=>i.value?.error),currentData:Re(()=>i.value?.currentData),isUninitialized:Re(()=>i.value?.isUninitialized),isLoading:Re(()=>i.value?.isLoading),isFetching:Re(()=>i.value?.isFetching),isSuccess:Re(()=>i.value?.isSuccess),isError:Re(()=>i.value?.isError),status:Re(()=>i.value?.status),refetch:()=>r?.refetch(),unwrap:async()=>{if(!r)throw new Error("Query has not been started yet.");return r.unwrap()}}}const dD=Hi.injectEndpoints({endpoints:e=>({getPreclearance:e.query({query:({user:t,id:n=null})=>({url:n?`/preclearance/${n}`:"/preclearance",params:{user:t}})}),preclearanceMatch:e.mutation({query:({id:t,body:n})=>({url:`/contributions/${t}/preclearance/match`,method:"POST",body:n})})})});function CY(e){return wu(dD.endpoints.getPreclearance,e)}function wY(){return aa(dD.endpoints.preclearanceMatch)}function ZC(e){return new Intl.NumberFormat("en-US",{style:"currency",currency:"USD"}).format(e)}function bY(e){return new Date(e).toLocaleDateString("en-CA")}function yY(e){const t=new Date(e);return Number.isNaN(t.getTime())?"":`on ${XC(t)}`}function XC(e=new Date){return Number.isNaN(e.getTime())?"":e.toLocaleDateString("en-US",{month:"long",day:"numeric",year:"numeric"})}const SY={class:"preclearance-table-scroll","aria-description":"scroll container for preclearance request table"},RY={class:"preclearance-table"},FY={key:0,class:"preclearance-table-tr preclearance-table-tr-empty"},xY={class:"preclearance-table-td preclearance-table-td-select"},PY=["id","name","value","checked","onClick"],EY={class:"preclearance-table-td"},DY={class:"preclearance-table-td"},TY={class:"preclearance-table-td preclearance-table-td-amount"},AY={class:"preclearance-table-td"},IY={class:"preclearance-table-td"},MY={class:"preclearance-table-td"},kY={class:"preclearance-table-td preclearance-table-td-match"},LY={class:"match-score-value","aria-description":"match score percentage"},_Y=xt({__name:"PreclearanceRequestTable",props:jl({contributionId:{type:Number},user:{type:Number}},{modelValue:{default:null},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=e,n=Ma(e,"modelValue"),i={Approved:"preclearance-status-approved",Pending:"preclearance-status-pending",Denied:"preclearance-status-denied"},o=Re(()=>({user:String(t.user),id:String(t.contributionId)})),{data:r}=CY(o),s=Re(()=>`preclearance-match-${t.contributionId}`),a=Re(()=>{const f=r.value;return f?(Array.isArray(f)?f:[f]).map(m=>l(m)):[]}),l=f=>({name:f.name,preclearanceId:f.id,requester:f.employee,amount:f.amount,recipient:f.recipient,requestDate:f.approvalDate,status:f.status,match:f.match}),u=f=>f>=90?"match-score-high":f>=75?"match-score-medium":"match-score-low",h=(f,p)=>{if(n.value?.preclearanceId===p.preclearanceId){f.preventDefault(),n.value=null;return}n.value={preclearanceId:p.preclearanceId,label:p.name}};return(f,p)=>(ue(),Se("div",SY,[W("table",RY,[p[2]||(p[2]=W("thead",null,[W("tr",null,[W("th",{class:"preclearance-table-th preclearance-table-th-select",scope:"col"},"Select"),W("th",{class:"preclearance-table-th",scope:"col"},"Request ID"),W("th",{class:"preclearance-table-th",scope:"col"},"Requester"),W("th",{class:"preclearance-table-th",scope:"col"},"Amount"),W("th",{class:"preclearance-table-th",scope:"col"},"Recipient"),W("th",{class:"preclearance-table-th",scope:"col"},"Request Date"),W("th",{class:"preclearance-table-th",scope:"col"},"Status"),W("th",{class:"preclearance-table-th preclearance-table-th-match",scope:"col"},"Match Score")])],-1)),W("tbody",null,[a.value.length===0?(ue(),Se("tr",FY,[...p[0]||(p[0]=[W("td",{class:"preclearance-table-td preclearance-table-empty",colspan:"8"},"No data found",-1)])])):(ue(!0),Se(vt,{key:1},hi(a.value,m=>(ue(),Se("tr",{key:m.name,class:"preclearance-table-tr"},[W("td",xY,[W("input",{id:`preclearance-radio-${m.name}`,class:Kt(["preclearance-table-radio",{"preclearance-table-radio-selected":n.value?.preclearanceId===m.preclearanceId}]),type:"radio",name:s.value,value:m.name,checked:n.value?.preclearanceId===m.preclearanceId,onClick:v=>h(v,m)},null,10,PY)]),W("td",EY,Xe(m.name),1),W("td",DY,Xe(m.requester),1),W("td",TY,Xe(Di(ZC)(m.amount)),1),W("td",AY,Xe(m.recipient),1),W("td",IY,Xe(m.requestDate),1),W("td",MY,[W("span",{class:Kt(["preclearance-status",i[m.status]]),"aria-description":"preclearance request status"},Xe(m.status),3)]),W("td",kY,[W("span",{class:Kt(["match-score",u(m.match)]),"aria-description":"match score for preclearance request"},[p[1]||(p[1]=W("span",{class:"match-score-bar","aria-hidden":"true","aria-description":"match score visual indicator"},null,-1)),W("span",LY,Xe(m.match)+"% ",1)],2)])]))),128))])])]))}}),OY=`.match-score[data-v-af303ec6]{align-items:center;display:inline-flex;gap:.4rem}.match-score-bar[data-v-af303ec6]{align-self:center;border-radius:.125rem;flex-shrink:0;height:1em;width:.125rem}.match-score-high[data-v-af303ec6]{color:var(--color-primary-green)}.match-score-high .match-score-bar[data-v-af303ec6]{background:var(--color-primary-green)}.match-score-low[data-v-af303ec6]{color:var(--color-red-700)}.match-score-low .match-score-bar[data-v-af303ec6]{background:var(--color-red-700)}.match-score-medium[data-v-af303ec6]{color:var(--color-yellow-700)}.match-score-medium .match-score-bar[data-v-af303ec6]{background:var(--color-yellow-700)}.preclearance-status[data-v-af303ec6]{font-weight:600;white-space:nowrap}.preclearance-status-approved[data-v-af303ec6]{color:var(--color-primary-green)}.preclearance-status-denied[data-v-af303ec6]{color:var(--color-red-700)}.preclearance-status-pending[data-v-af303ec6]{color:var(--color-yellow-700)}.preclearance-table[data-v-af303ec6]{border-collapse:collapse;font-size:.875rem;min-width:58rem;width:100%}.preclearance-table tbody .preclearance-table-tr[data-v-af303ec6]:nth-child(2n){background:var(--color-green-50)}.preclearance-table-empty[data-v-af303ec6]{color:var(--color-grey-600);padding:1.5rem 1rem;text-align:center}.preclearance-table-radio[data-v-af303ec6]{-webkit-appearance:none;appearance:none;background:var(--color-white);border:.125rem solid var(--color-grey-300);border-radius:.25rem;box-sizing:border-box;cursor:pointer;flex-shrink:0;height:1.125rem;margin:0;vertical-align:middle;width:1.125rem}.preclearance-table-radio[data-v-af303ec6]:focus-visible{outline:.125rem solid var(--color-primary-green);outline-offset:.125rem}.preclearance-table-radio-selected[data-v-af303ec6]{background-color:var(--color-primary-green);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3.5 8.5 6.5 11.5 12.5 4.5' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-position:center;background-repeat:no-repeat;background-size:.875rem;border-color:var(--color-primary-green)}.preclearance-table-scroll[data-v-af303ec6]{-webkit-overflow-scrolling:touch;overflow-x:auto}.preclearance-table-td[data-v-af303ec6]{border-bottom:.0625rem solid var(--color-primary-grey);color:var(--color-primary-black);padding:.75rem 1rem;vertical-align:middle}.preclearance-table-td-amount[data-v-af303ec6]{font-weight:700;white-space:nowrap}.preclearance-table-td-match[data-v-af303ec6]{font-size:.75rem;line-height:1;white-space:nowrap}.preclearance-table-td-select[data-v-af303ec6]{text-align:center;width:3.25rem}.preclearance-table-th[data-v-af303ec6]{background:var(--color-secondary-green);border-bottom:.0625rem solid var(--color-primary-black);font-weight:600;padding:.5rem 1rem;text-align:left;white-space:nowrap}.preclearance-table-th-match[data-v-af303ec6]{min-width:6.5rem;text-align:left}.preclearance-table-th-select[data-v-af303ec6]{text-align:center;width:3.25rem}.preclearance-table-tr[data-v-af303ec6]{background:var(--color-white)}.preclearance-table-tr:last-child .preclearance-table-td[data-v-af303ec6]{border-bottom:none}`,zt=(e,t)=>{const n=e.__vccOpts||e;for(const[i,o]of t)n[i]=o;return n},NY=zt(_Y,[["styles",[OY]],["__scopeId","data-v-af303ec6"]]),BY=["disabled"],Pf=zt(xt({__name:"Button",props:{disabled:{type:Boolean,default:!1},label:{type:String},variant:{default:"primary",type:String}},emits:["click"],setup(e,{emit:t}){const n=t,i=o=>{n("click",o)};return(o,r)=>(ue(),Se("button",{type:"button",class:Kt(["ui-button",{"ui-button-primary":e.variant==="primary","ui-button-secondary":e.variant==="secondary","ui-button-tertiary":e.variant==="tertiary"}]),disabled:e.disabled,onClick:i},Xe(e.label),11,BY))}}),[["styles",[".ui-button[data-v-7747e173]{align-items:center;border-radius:.375rem;box-sizing:border-box;cursor:pointer;display:inline-flex;font-family:inherit;font-size:.875rem;justify-content:center;line-height:1.25;min-height:2.25rem;padding:.5rem 1.25rem;transition:background-color .15s ease,filter .15s ease,border-color .15s ease,color .15s ease}.ui-button[data-v-7747e173]:disabled{cursor:not-allowed;filter:none}.ui-button-primary[data-v-7747e173]{background:var(--color-primary-green);border:1px solid transparent;color:var(--color-white);font-weight:600}.ui-button-primary[data-v-7747e173]:disabled{opacity:.5}.ui-button-primary[data-v-7747e173]:not(:disabled):active{filter:brightness(.88)}.ui-button-primary[data-v-7747e173]:not(:disabled):hover{filter:brightness(.95)}.ui-button-secondary[data-v-7747e173]{background:var(--color-white);border:1px solid var(--color-primary-green);color:var(--color-primary-green)}.ui-button-secondary[data-v-7747e173]:disabled{background:var(--color-grey-300);border-color:var(--color-grey-300);color:var(--color-white)}.ui-button-secondary[data-v-7747e173]:not(:disabled):active{filter:brightness(.97)}.ui-button-secondary[data-v-7747e173]:not(:disabled):hover{background:var(--color-green-50)}.ui-button-tertiary[data-v-7747e173]{background:var(--color-white);border:1px solid var(--color-grey-300);color:var(--color-primary-black)}.ui-button-tertiary[data-v-7747e173]:disabled{background:var(--color-white);border-color:var(--color-grey-300);color:var(--color-grey-600)}.ui-button-tertiary[data-v-7747e173]:not(:disabled):active{filter:brightness(.97)}.ui-button-tertiary[data-v-7747e173]:not(:disabled):hover{background:var(--color-grey-50)}"]],["__scopeId","data-v-7747e173"]]),GY={class:"card-base-body","aria-description":"card body"},HY=zt(xt({__name:"CardBase",props:{borderColor:{default:"var(--color-primary-black)",type:String},radius:{default:"0.625rem",type:String}},setup(e){return(t,n)=>(ue(),Se("section",{class:"card-base",style:Ei({borderColor:e.borderColor,borderRadius:e.radius})},[t.$slots.header?(ue(),Se("header",{key:0,class:"card-base-header",style:Ei({borderColor:e.borderColor})},[Aa(t.$slots,"header",{},void 0)],4)):_t("",!0),W("div",GY,[Aa(t.$slots,"default",{},void 0)])],4))}}),[["styles",[".card-base[data-v-1d4389f8]{background:var(--color-white);border:.0625rem solid;box-sizing:border-box;overflow:hidden}.card-base-body[data-v-1d4389f8]{padding:2rem}.card-base-header[data-v-1d4389f8]{border-bottom:.0625rem solid;padding:1.5rem 2rem}"]],["__scopeId","data-v-1d4389f8"]]),VY=Hi.injectEndpoints({endpoints:e=>({getStatuses:e.query({query:({user:t,id:n=null})=>({url:n?`/statuses/${n}`:"/statuses",params:{user:t}})})})});function JC(e){return wu(VY.endpoints.getStatuses,e)}const WY=["aria-expanded"],zY=["aria-description"],UY={class:"status-select-panel",role:"listbox","aria-description":"Available match status options"},$Y=["aria-selected","onClick"],jY=["aria-description"],KY=["aria-description"],qY=zt(xt({__name:"ContributionStatusSelect",props:{modelValue:{type:Object},user:{type:Number}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,i=t,{data:o}=JC(Re(()=>({user:n.user}))),r=Re(()=>{const h=o.value;return Array.isArray(h)?h:[]}),s=be(!1),a=()=>{s.value=!s.value},l=h=>{i("update:modelValue",h),s.value=!1},u=()=>{s.value=!1};return(h,f)=>(ue(),Se(vt,null,[s.value?(ue(),Se("div",{key:0,class:"status-select-backdrop","aria-hidden":"true","aria-description":"Closes the status menu when clicked",onClick:u})):_t("",!0),W("div",{class:Kt(["status-select",{"status-select-open":s.value}]),"aria-description":"Contribution match status selector"},[W("button",{type:"button",class:"status-select-trigger","aria-expanded":s.value,onClick:Ot(a,["stop"])},[W("span",{class:"status-chip","aria-description":`Current match status: ${e.modelValue.name}`},Xe(e.modelValue.name),9,zY),W("span",{class:Kt(["status-select-chevron",{"status-select-chevron-open":s.value}]),"aria-hidden":"true","aria-description":"Dropdown open or closed indicator"},null,2)],8,WY),nn(W("div",UY,[(ue(!0),Se(vt,null,hi(r.value,p=>(ue(),Se("button",{key:p.id,type:"button",class:Kt(["status-option",{"status-option-active":p.id===e.modelValue.id}]),role:"option","aria-selected":p.id===e.modelValue.id,onClick:Ot(m=>l(p),["stop"])},[W("span",{class:Kt(["status-option-radio",{"status-option-radio-selected":p.id===e.modelValue.id}]),"aria-description":`Selected-state marker for ${p.name}`},null,10,jY),W("span",{class:"status-option-label","aria-description":`Match status option: ${p.name}`},Xe(p.name),9,KY)],10,$Y))),128))],512),[[sS,s.value]])],2)],64))}}),[["styles",[".status-chip[data-v-91bd7425]{align-items:center;background:var(--color-secondary-green);border-radius:62.4375rem;color:var(--color-primary-black);display:inline-flex;font-size:.75rem;font-weight:600;line-height:1.2;padding:.25rem .65rem}.status-option[data-v-91bd7425]{align-items:center;background:transparent;border:none;cursor:pointer;display:flex;font:inherit;font-size:.875rem;gap:.6rem;padding:.5rem .75rem;text-align:left;width:100%}.status-option[data-v-91bd7425]:hover{background:var(--color-secondary-grey)}.status-option-active .status-option-label[data-v-91bd7425]{color:var(--color-primary-green);font-weight:600}.status-option-label[data-v-91bd7425]{color:var(--color-primary-black)}.status-option-radio[data-v-91bd7425]{border:.125rem solid var(--color-grey-300);border-radius:50%;flex-shrink:0;height:1rem;width:1rem}.status-option-radio-selected[data-v-91bd7425]{background:radial-gradient(circle,var(--color-primary-green) 0 42%,transparent 43%);border-color:var(--color-primary-green);box-shadow:inset 0 0 0 3px var(--color-white)}.status-select[data-v-91bd7425]{max-width:100%;position:relative;width:100%}.status-select-backdrop[data-v-91bd7425]{background:transparent;inset:0;position:fixed;z-index:10000}.status-select-chevron[data-v-91bd7425]{border-left:.3125rem solid transparent;border-right:.3125rem solid transparent;border-top:.375rem solid var(--color-grey-600);flex-shrink:0;height:0;transition:transform .15s ease;width:0}.status-select-chevron-open[data-v-91bd7425]{transform:rotate(180deg)}.status-select-open[data-v-91bd7425]{z-index:10001}.status-select-panel[data-v-91bd7425]{background:var(--color-white);border:.0625rem solid var(--color-primary-grey);border-radius:.375rem;box-shadow:0 .25rem .75rem #00000014;left:0;margin-top:.25rem;padding:.35rem 0;position:absolute;right:0;z-index:100}.status-select-trigger[data-v-91bd7425]{align-items:center;background:var(--color-white);border:.0625rem solid var(--color-grey-300);border-radius:.25rem;cursor:pointer;display:flex;font:inherit;gap:.5rem;justify-content:space-between;padding:.5rem .75rem;text-align:left;width:100%}"]],["__scopeId","data-v-91bd7425"]]),QY=["aria-description"],YY={class:"detail-item-label","aria-description":"Field label"},ZY={class:"detail-item-value","aria-description":"Field value"},XY=zt(xt({__name:"DetailItem",props:{fullWidth:{type:Boolean,default:!1},label:{type:String},value:{default:"",type:[String,null]}},setup(e){const t=e,n=o=>o==null||o===""?"—":o,i=Re(()=>`Detail field: ${t.label}`);return(o,r)=>(ue(),Se("div",{class:Kt(["detail-item",{"detail-item-full":e.fullWidth}]),"aria-description":i.value},[W("div",YY,Xe(e.label),1),W("div",ZY,[Aa(o.$slots,"value",{},()=>[Mn(Xe(n(e.value)),1)])])],10,QY))}}),[["styles",[".detail-item[data-v-0f6897bd]{display:flex;flex-direction:column;gap:.5rem;min-width:0}.detail-item-full[data-v-0f6897bd]{grid-column:1 / -1}.detail-item-label[data-v-0f6897bd]{color:var(--color-grey-600);font-size:.75rem;font-weight:600;line-height:1.3}.detail-item-value[data-v-0f6897bd]{font-size:.875rem;line-height:1.4;word-break:break-word}"]],["__scopeId","data-v-0f6897bd"]]),JY=["aria-labelledby"],eZ={class:"dialog-header"},tZ=["id"],nZ=["aria-label"],iZ=["aria-labelledby"],oZ={key:0,class:"dialog-footer"},rZ=zt(xt({__name:"Dialog",props:{bodyPadding:{type:Boolean,default:!0},cancelButtonLabel:{default:"Cancel",type:String},closeAriaLabel:{default:"Close dialog",type:String},contentWidth:{default:"min(36rem, 100%)",type:String},primaryButtonDisabled:{type:Boolean,default:!1},primaryButtonLabel:{default:"Submit",type:String},showCloseButton:{type:Boolean,default:!0},showFooter:{type:Boolean,default:!0},title:{type:String},titleId:{default:void 0,type:String}},emits:["cancel-click","close","primary-click"],setup(e,{expose:t,emit:n}){const i=e,o=n,r=be(null),s=mM(),a=Re(()=>i.titleId??`dialog-title-${s}`),l=Re(()=>i.showFooter&&!!(i.cancelButtonLabel||i.primaryButtonLabel)),u=()=>{const w=r.value;w&&(typeof w.showModal=="function"?w.showModal():w.setAttribute("open",""))},h=()=>{const w=r.value;w&&(typeof w.close=="function"?w.close():w.removeAttribute("open"),o("close"))},f=w=>{w.target===r.value&&h()},p=()=>{h()},m=()=>{h(),o("cancel-click")},v=()=>{o("primary-click")};return t({open:u,close:h,dialogRef:r}),(w,b)=>(ue(),Se("dialog",{ref_key:"dialogRef",ref:r,class:"dialog","aria-labelledby":a.value,style:Ei({width:e.contentWidth}),onClick:f},[W("section",{class:"dialog-panel",onClick:b[0]||(b[0]=Ot(()=>{},["stop"]))},[W("header",eZ,[W("h2",{id:a.value,class:"dialog-title"},Xe(e.title),9,tZ),e.showCloseButton?(ue(),Se("button",{key:0,type:"button",class:"dialog-close","aria-label":e.closeAriaLabel,onClick:p}," × ",8,nZ)):_t("",!0)]),W("section",{class:Kt(["dialog-body",{"dialog-body-flush":!e.bodyPadding}]),"aria-labelledby":a.value},[Aa(w.$slots,"default",{},void 0)],10,iZ),l.value?(ue(),Se("footer",oZ,[e.cancelButtonLabel?(ue(),en(Pf,{key:0,label:e.cancelButtonLabel,variant:"tertiary",onClick:m},null,8,["label"])):_t("",!0),e.primaryButtonLabel?(ue(),en(Pf,{key:1,disabled:e.primaryButtonDisabled,label:e.primaryButtonLabel,variant:"primary",onClick:v},null,8,["disabled","label"])):_t("",!0)])):_t("",!0)])],12,JY))}}),[["styles",[".dialog[data-v-e576a647]{border:.0625rem solid var(--color-grey-300);border-radius:.5rem;box-shadow:0 8px 24px #0000001f;font-family:inherit;margin:auto;max-width:calc(100vw - 2rem);padding:0}.dialog[data-v-e576a647]::backdrop{background:#00000059}.dialog-body[data-v-e576a647]{-webkit-overflow-scrolling:touch;flex:1;max-height:75dvh;min-height:0;overflow-y:auto;padding:1rem 1.5rem 1.25rem}.dialog-body.dialog-body-flush[data-v-e576a647]{padding:0}.dialog-close[data-v-e576a647]{align-items:center;background:transparent;border:none;border-radius:.25rem;cursor:pointer;display:inline-flex;font-size:1.5rem;font-weight:600;height:2rem;justify-content:center;line-height:1;padding:0;width:2rem}.dialog-close[data-v-e576a647]:hover{background:var(--color-primary-grey);color:var(--color-primary-black)}.dialog-footer[data-v-e576a647]{align-items:center;border-top:.0625rem solid var(--color-grey-300);display:flex;flex-shrink:0;flex-wrap:wrap;gap:.75rem;justify-content:flex-end;padding:1rem 1.5rem 1.25rem}.dialog-header[data-v-e576a647]{align-items:center;display:flex;flex-shrink:0;gap:.75rem;justify-content:space-between;padding:1.125rem 1.5rem}.dialog-panel[data-v-e576a647]{display:flex;flex-direction:column;max-height:calc(100vh - 3rem);padding:0}.dialog-title[data-v-e576a647]{font-size:1.125rem;font-weight:600;line-height:1.3;margin:0}"]],["__scopeId","data-v-e576a647"]]),sZ={class:"reference-line"},aZ={class:"detail-grid","aria-description":"contribution detail fields grid"},lZ={key:0,class:"preclearance-row","aria-description":"matched preclearance request link and remove control"},cZ=["id","href"],uZ=zt(xt({__name:"ContributionDetailsCard",props:{contribution:{type:Object},user:{type:Number}},emits:["clear-preclearance","match-preclearance","update-status"],setup(e,{emit:t}){const n=e,i=t,{data:o}=JC(Re(()=>({user:n.user}))),r=Re(()=>{const m=o.value,w=(Array.isArray(m)?m:[]).find(b=>b.name===n.contribution.status);return w||{id:0,name:n.contribution.status,organization:0,created:"",modified:""}}),s=[{kind:"value",key:"contributor",label:"Contributor"},{kind:"value",key:"employer",label:"Employer"},{kind:"value",key:"occupation",label:"Occupation"},{kind:"value",key:"address",label:"Address",fullWidth:!0},{kind:"value",key:"state",label:"State"},{kind:"value",key:"zipCode",label:"Zip Code"},{kind:"value",key:"date",label:"Date"},{kind:"value",key:"dateDetected",label:"Date Detected"},{kind:"value",key:"amount",label:"Amount"},{kind:"value",key:"approvedAmount",label:"Approved Amount"},{kind:"value",key:"recipient",label:"Recipient"},{kind:"value",key:"source",label:"Source"},{kind:"status",label:"Status"},{kind:"value",key:"employeeStatus",label:"Employee Status"},{kind:"value",key:"reconciliationStatus",label:"Reconciliation Status"},{kind:"preclearance",label:"Preclearance Request"},{kind:"value",key:"amended",label:"Amended"},{kind:"value",key:"approvalDate",label:"Approval Date"},{kind:"value",key:"lastUpdated",label:"Last Updated"},{kind:"value",key:"lastUpdatedBy",label:"Last Updated By"}],a=m=>m.kind==="value"?m.key:m.kind,l=be(null),u=be(null),h=()=>{u.value=null,l.value?.open()},f=()=>{const m=u.value;m&&(i("match-preclearance",{preclearanceId:m.preclearanceId,preclearanceLabel:m.label}),l.value?.close())},p=()=>{i("clear-preclearance")};return(m,v)=>(ue(),en(HY,null,{header:ei(()=>[W("p",sZ,"Reference: "+Xe(e.contribution.reference),1)]),default:ei(()=>[W("div",aZ,[(ue(),Se(vt,null,hi(s,w=>rt(XY,{key:a(w),"full-width":w.kind==="value"?w.fullWidth:!1,label:w.label,value:w.kind==="value"?e.contribution[w.key]:""},IM({_:2},[w.kind==="status"?{name:"value",fn:ei(()=>[rt(qY,{"model-value":r.value,user:e.user,"onUpdate:modelValue":v[0]||(v[0]=b=>i("update-status",b))},null,8,["model-value","user"])]),key:"0"}:w.kind==="preclearance"?{name:"value",fn:ei(()=>[e.contribution.preclearanceId&&e.contribution.preclearanceLabel?(ue(),Se("div",lZ,[W("a",{id:`contribution-preclearance-link-${e.contribution.preclearanceLabel}`,class:"preclearance-link",href:`/preclearance/${e.contribution.preclearanceLabel}`},Xe(e.contribution.preclearanceLabel),9,cZ),W("button",{type:"button",class:"preclearance-clear","aria-label":"Remove preclearance link",onClick:p}," × ")])):(ue(),en(Pf,{key:1,label:"Match Preclearance",variant:"secondary",onClick:h}))]),key:"1"}:void 0]),1032,["full-width","label","value"])),64))]),rt(rZ,{"body-padding":!1,"content-width":"min(60rem, calc(100vw - 2rem))","primary-button-disabled":!u.value,"primary-button-label":"Match Selected",ref_key:"preclearanceMatchDialog",ref:l,"secondary-button-label":"Cancel",title:"Match to Preclearance Request",onPrimaryClick:f},{default:ei(()=>[rt(NY,{"contribution-id":e.contribution.contributionId,user:e.user,modelValue:u.value,"onUpdate:modelValue":v[1]||(v[1]=w=>u.value=w)},null,8,["contribution-id","user","modelValue"])]),_:1},8,["primary-button-disabled"])]),_:1}))}}),[["styles",[".detail-grid[data-v-c1605ad2]{display:grid;gap:1.25rem;grid-template-columns:1fr 1fr}.preclearance-clear[data-v-c1605ad2]{align-items:center;background:transparent;border:none;border-radius:.25rem;color:var(--color-grey-600);cursor:pointer;display:inline-flex;font-size:1rem;height:1.25rem;justify-content:center;line-height:1;padding:0;width:1.25rem}.preclearance-clear[data-v-c1605ad2]:hover{background:var(--color-primary-green);color:var(--color-white)}.preclearance-link[data-v-c1605ad2]{color:var(--color-primary-green);cursor:pointer;font-weight:500;text-decoration:underline}.preclearance-link[data-v-c1605ad2]:hover{text-decoration:none}.preclearance-row[data-v-c1605ad2]{align-items:center;display:inline-flex;flex-wrap:wrap;gap:.35rem}.reference-line[data-v-c1605ad2]{color:var(--color-grey-600);font-size:.875rem;line-height:1.4;margin:0}"]],["__scopeId","data-v-c1605ad2"]]),dZ={class:"collapsible-panel","aria-description":"Collapsible panel"},hZ=["aria-expanded"],fZ={class:"collapsible-panel-title","aria-description":"Panel title"},pZ=["aria-hidden"],gZ={class:"collapsible-panel-body-inner","aria-description":"Panel content inner wrapper"},mZ=zt(xt({__name:"CollapsiblePanel",props:{title:{type:String}},setup(e){const t=be(!1),n=()=>{t.value=!t.value};return(i,o)=>(ue(),Se("div",dZ,[W("button",{type:"button",class:"collapsible-panel-header","aria-expanded":t.value,onClick:n},[W("span",fZ,Xe(e.title),1),W("i",{class:Kt(["fa-solid fa-chevron-right collapsible-panel-chevron",{"collapsible-panel-chevron-open":t.value}]),"aria-hidden":"true"},null,2)],8,hZ),W("div",{class:Kt(["collapsible-panel-body",{"collapsible-panel-body-open":t.value}]),"aria-description":"Panel content","aria-hidden":!t.value},[W("div",gZ,[Aa(i.$slots,"default",{},void 0)])],10,pZ)]))}}),[["styles",[".collapsible-panel[data-v-c69206e2]{border:.0625rem solid var(--color-primary-black);border-radius:.625rem;box-sizing:border-box;overflow:hidden}.collapsible-panel-body[data-v-c69206e2]{display:grid;grid-template-rows:0fr;transition:grid-template-rows .2s ease}.collapsible-panel-body-inner[data-v-c69206e2]{min-height:0;opacity:0;overflow:hidden;padding:0;transition:opacity .2s ease}.collapsible-panel-body-open[data-v-c69206e2]{grid-template-rows:1fr}.collapsible-panel-body-open .collapsible-panel-body-inner[data-v-c69206e2]{opacity:1;padding:2rem}.collapsible-panel-chevron[data-v-c69206e2]{color:var(--color-primary-black);flex-shrink:0;font-size:.75rem;margin-left:.75rem;transition:transform .2s ease}.collapsible-panel-chevron-open[data-v-c69206e2]{transform:rotate(90deg)}.collapsible-panel-header[data-v-c69206e2]{align-items:center;background:var(--color-white);border:none;color:var(--color-primary-black);cursor:pointer;display:flex;font:inherit;justify-content:space-between;padding:1rem 1.25rem;text-align:left;width:100%}.collapsible-panel-header[data-v-c69206e2]:hover{background:var(--color-green-50)}.collapsible-panel-header[aria-expanded=true][data-v-c69206e2]{border-bottom:1px solid var(--color-primary-black)}.collapsible-panel-title[data-v-c69206e2]{font-size:.875rem;font-weight:600;line-height:1.3}"]],["__scopeId","data-v-c69206e2"]]),vZ={class:"notes-section"},CZ={class:"notes-section-actions","aria-description":"add note button container"},wZ={key:0,class:"notes-section-rule"},bZ={class:"notes-section-list",role:"list"},yZ={class:"notes-item-content","aria-description":"note text and metadata"},SZ={class:"notes-item-text"},RZ={key:0,class:"notes-item-badge"},FZ={key:1,class:"notes-item-meta"},xZ={key:1,class:"notes-item-text"},PZ=zt(xt({__name:"ContributionNotes",props:{notes:{type:Array}},emits:["add-note"],setup(e,{emit:t}){const n=t,i=be(""),o=()=>{const r=i.value.trim();r&&(n("add-note",r),i.value="")};return(r,s)=>(ue(),en(mZ,{title:"Contribution Notes"},{default:ei(()=>[W("section",vZ,[s[2]||(s[2]=W("h3",{class:"notes-section-sub"},"Add New Note",-1)),nn(W("textarea",{"onUpdate:modelValue":s[0]||(s[0]=a=>i.value=a),class:"notes-section-textarea",placeholder:"Enter note details...",rows:"4"},null,512),[[Xo,i.value]]),W("div",CZ,[rt(Pf,{disabled:!i.value.trim(),label:"Add Note",onClick:o},null,8,["disabled"])]),e.notes.length?(ue(),Se("hr",wZ)):_t("",!0),W("ul",bZ,[(ue(!0),Se(vt,null,hi(e.notes,a=>(ue(),Se("li",{key:a.id,class:"notes-item"},[s[1]||(s[1]=W("span",{class:"notes-item-bullet","aria-hidden":"true","aria-description":"decorative note list marker"},null,-1)),W("div",yZ,[a.created?.trim()?(ue(),Se(vt,{key:0},[W("p",SZ,Xe(a.text),1),a.type!=="user"||a.createdBy?.trim()?(ue(),Se("p",RZ,Xe(a.type==="user"?a.createdBy?.trim()??"":"System note"),1)):_t("",!0),a.created?.trim()?(ue(),Se("p",FZ,Xe(Di(yY)(a.created)),1)):_t("",!0)],64)):(ue(),Se("p",xZ,Xe(a.text),1))])]))),128))])])]),_:1}))}}),[["styles",[".notes-item[data-v-e3a1aa12]{display:flex;gap:.75rem;margin-bottom:1rem}.notes-item[data-v-e3a1aa12]:last-child{margin-bottom:0}.notes-item-badge[data-v-e3a1aa12]{color:var(--color-primary-black);font-size:.675rem;font-weight:600;margin:.35rem 0 0}.notes-item-bullet[data-v-e3a1aa12]{background:var(--color-grey-600);border-radius:50%;flex-shrink:0;height:.625rem;margin-top:.3rem;width:.625rem}.notes-item-content[data-v-e3a1aa12]{flex:1;min-width:0}.notes-item-meta[data-v-e3a1aa12]{color:var(--color-grey-600);font-size:.625rem;margin:.35rem 0 0}.notes-item-text[data-v-e3a1aa12]{color:var(--color-grey-600);font-size:.75rem;line-height:1.45;margin:0}.notes-section-actions[data-v-e3a1aa12]{display:flex;justify-content:flex-end}.notes-section-list[data-v-e3a1aa12]{list-style:none;margin:0;padding:0}.notes-section-rule[data-v-e3a1aa12]{border:none;border-top:.0625rem solid var(--color-grey-300);margin:1.25rem 0}.notes-section-sub[data-v-e3a1aa12]{font-size:.875rem;font-weight:600;margin:0 0 1rem}.notes-section-textarea[data-v-e3a1aa12]{border:.0625rem solid var(--color-grey-300);border-radius:.25rem;box-sizing:border-box;display:block;font-family:inherit;font-size:.875rem;margin-bottom:1rem;max-width:100%;padding:.5rem .625rem;resize:vertical;width:100%}.notes-section-textarea[data-v-e3a1aa12]:focus{border-color:var(--color-grey-600);outline:none}"]],["__scopeId","data-v-e3a1aa12"]]);var Ef={exports:{}},EZ=Ef.exports,hD;function DZ(){return hD||(hD=1,(function(e,t){(function(n,i){i()})(EZ,function(){function n(u,h){return typeof h>"u"?h={autoBom:!1}:typeof h!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),h={autoBom:!h}),h.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(u.type)?new Blob(["\uFEFF",u],{type:u.type}):u}function i(u,h,f){var p=new XMLHttpRequest;p.open("GET",u),p.responseType="blob",p.onload=function(){l(p.response,h,f)},p.onerror=function(){console.error("could not download file")},p.send()}function o(u){var h=new XMLHttpRequest;h.open("HEAD",u,!1);try{h.send()}catch{}return 200<=h.status&&299>=h.status}function r(u){try{u.dispatchEvent(new MouseEvent("click"))}catch{var h=document.createEvent("MouseEvents");h.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),u.dispatchEvent(h)}}var s=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof Vi=="object"&&Vi.global===Vi?Vi:void 0,a=s.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),l=s.saveAs||(typeof window!="object"||window!==s?function(){}:"download"in HTMLAnchorElement.prototype&&!a?function(u,h,f){var p=s.URL||s.webkitURL,m=document.createElement("a");h=h||u.name||"download",m.download=h,m.rel="noopener",typeof u=="string"?(m.href=u,m.origin===location.origin?r(m):o(m.href)?i(u,h,f):r(m,m.target="_blank")):(m.href=p.createObjectURL(u),setTimeout(function(){p.revokeObjectURL(m.href)},4e4),setTimeout(function(){r(m)},0))}:"msSaveOrOpenBlob"in navigator?function(u,h,f){if(h=h||u.name||"download",typeof u!="string")navigator.msSaveOrOpenBlob(n(u,f),h);else if(o(u))i(u,h,f);else{var p=document.createElement("a");p.href=u,p.target="_blank",setTimeout(function(){r(p)})}}:function(u,h,f,p){if(p=p||open("","_blank"),p&&(p.document.title=p.document.body.innerText="downloading..."),typeof u=="string")return i(u,h,f);var m=u.type==="application/octet-stream",v=/constructor/i.test(s.HTMLElement)||s.safari,w=/CriOS\/[\d]+/.test(navigator.userAgent);if((w||m&&v||a)&&typeof FileReader<"u"){var b=new FileReader;b.onloadend=function(){var S=b.result;S=w?S:S.replace(/^data:[^;]*;/,"data:attachment/file;"),p?p.location.href=S:location=S,p=null},b.readAsDataURL(u)}else{var y=s.URL||s.webkitURL,R=y.createObjectURL(u);p?p.location=R:location.href=R,p=null,setTimeout(function(){y.revokeObjectURL(R)},4e4)}});s.saveAs=l.saveAs=l,e.exports=l})})(Ef)),Ef.exports}var TZ=DZ();const AZ=iD(TZ),IZ=Hi.injectEndpoints({endpoints:e=>({exportContributions:e.mutation({query:({user:t,format:n,sortColumn:i=null,sortOrder:o=null,body:r})=>({url:`/contributions/search/export?user=${t}&format=${n}${i&&o?`&sortColumn=${i}&sortOrder=${o}`:""}`,method:"POST",body:r,responseHandler:s=>s.headers.get("Content-Type")?.includes("/json")?s.json():s.blob()}),transformResponse:(t,n)=>{const o=n?.response?.headers?.get("Content-Disposition")?.match(/filename="?([^"]+)"?/)?.[1]??`contributions_export_${new Date().toISOString().split("T")[0]}`;return t instanceof Blob&&AZ(t,o),o}})})});function MZ(){return aa(IZ.endpoints.exportContributions)}const kZ={class:"content-container","aria-description":"main content container"},LZ={class:"content-title","aria-description":"content title"},_Z={key:0},OZ={class:"content"},ew=zt(xt({__name:"ContentContainer",props:{title:{type:String},user:{default:1,type:Number},page:{default:"contribution-search",type:String},showExport:{type:Boolean,default:!0}},setup(e){const t=uD(f=>f.ContributionSearchReducer),{trigger:n}=MZ(),i=Re(()=>t.value?.[e.page]??void 0),o=be(null),r=be(null),s=be({}),a=be(!1),l=(f="xlsx")=>{i.value&&n({user:e.user,format:f,body:i.value})},u=async()=>{const f=o.value,p=r.value;if(!f||!p)return;const m=p?.getBoundingClientRect(),v=190,w=8,b=Math.max(w,Math.min(m.right-v,window.innerWidth-v-w)),y=Math.min(m.bottom+w,window.innerHeight-120);s.value={position:"fixed",top:`${y}px`,left:`${b}px`,margin:"0"},await Dr(),f?.showModal(),a.value=!0},h=f=>{a.value?f.target===o.value&&(o.value?.close(),a.value=!1):u()};return(f,p)=>{const m=dd("font-awesome-icon");return ue(),Se(vt,null,[W("div",kZ,[W("header",null,[W("h1",LZ,Xe(e.title),1),e.page&&e.showExport?(ue(),Se("span",_Z,[W("button",{class:"export-button",ref_key:"exportModalButton",ref:r,onClick:Ot(h,["prevent"]),"aria-description":"export button"},[...p[2]||(p[2]=[W("i",{class:"fa-solid fa-download"},null,-1)])],512)])):_t("",!0)]),W("div",OZ,[Aa(f.$slots,"content",{},void 0)])]),W("dialog",{class:"contributions-export-modal",ref_key:"exportModal",ref:o,style:Ei(s.value),onClick:h},[W("button",{onClick:p[0]||(p[0]=v=>l("xlsx"))},[rt(m,{class:"export-excel-icon",icon:["fas","file-excel"]}),p[3]||(p[3]=Mn("Export to Excel",-1))]),W("button",{onClick:p[1]||(p[1]=v=>l("pdf"))},[rt(m,{class:"export-pdf-icon",icon:["fas","file-pdf"]}),p[4]||(p[4]=Mn("Export to PDF ",-1))])],4)],64)}}}),[["styles",["a[data-v-00e79481],button[data-v-00e79481]{cursor:pointer}.content-container[data-v-00e79481]{background:var(--color-white);display:flex;flex-direction:column;padding:1.25rem}.content-container header[data-v-00e79481]{align-items:center;border-bottom:.0625rem solid var(--color-primary-grey);display:flex;justify-content:space-between;margin-bottom:1.25rem}.content-container header button[data-v-00e79481]{background:transparent;border:none;color:var(--color-primary-green);font-size:xx-large;text-decoration:none}.contributions-export-modal[data-v-00e79481]{border:.1rem solid var(--color-primary-grey);box-shadow:.1875rem .15625rem .15625rem var(--color-secondary-grey);opacity:0;transform:translateY(-.25rem);transition:opacity .2s ease,transform .2s ease,overlay .2s ease allow-discrete}.contributions-export-modal[open][data-v-00e79481]{opacity:1;transform:translateY(0)}@starting-style{.contributions-export-modal[open][data-v-00e79481]{opacity:0;transform:translateY(-.25rem)}}.contributions-export-modal button[data-v-00e79481]{background:transparent;border:none;display:block;font-family:Poppins,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Arial,sans-serif;margin:.5rem}.contributions-export-modal button .export-excel-icon[data-v-00e79481]{color:var(--color-green)}.contributions-export-modal button .export-pdf-icon[data-v-00e79481]{color:var(--color-red)}[data-v-00e79481]::backdrop{background:transparent}"]],["__scopeId","data-v-00e79481"]]),NZ=(e,t)=>{const n=e.__vccOpts||e;for(const[i,o]of t)n[i]=o;return n},BZ=xt({name:"ClipLoader",props:{loading:{type:Boolean,default:!0},color:{type:String,default:"#5dc596"},size:{type:String,default:"35px"},radius:{type:String,default:"100%"}},setup(e){return{spinnerStyle:Re(()=>({height:e.size,width:e.size,borderWidth:"2px",borderStyle:"solid",borderColor:e.color+" "+e.color+" transparent",borderRadius:e.radius,background:"transparent"}))}}}),GZ={class:"v-spinner"};function HZ(e,t,n,i,o,r){return nn((ue(),Se("div",GZ,[W("div",{class:"v-clip",style:Ei(e.spinnerStyle)},null,4)],512)),[[sS,e.loading]])}const VZ=NZ(BZ,[["render",HZ],["__scopeId","data-v-8e9283de"]]),WZ={class:"loading-overlay"},zZ={key:0},UZ="#0a8f2a",tw=zt(xt({__name:"LoadingSpinner",props:{loadingText:{default:null,type:String},size:{default:null,type:Number}},setup(e){const t=be(`${e.size?e.size:120}px`);return(n,i)=>(ue(),Se("div",WZ,[rt(Di(VZ),{loading:!0,size:t.value,color:UZ},null,8,["size"]),e.loadingText?(ue(),Se("span",zZ,Xe(e.loadingText),1)):_t("",!0)]))}}),[["styles",[".loading-overlay[data-v-c04b44eb]{align-items:center;display:flex;flex-direction:column;gap:12px;height:100%;justify-content:center}"]],["__scopeId","data-v-c04b44eb"]]);function $Z(e){const{contribution:t,match:n}=e,i=n.preclearance,o=n.created,r=typeof o=="string"&&o.length>0?o.slice(0,10):"";return{contributionId:t.id,reference:i.name,contributor:t.contributor,employer:t.employer,occupation:t.occupation,address:t.address,state:t.state,zipCode:t.zipCode,date:t.date,dateDetected:r,amount:ZC(t.amount),approvedAmount:ZC(i.amount),recipient:t.recipient,source:t.source,status:n.status,employeeStatus:n.employee.status,reconciliationStatus:i.reconciliationStatus,preclearanceLabel:i.name,preclearanceId:i.id,amended:String(t.amended)==="true"?"Yes":"No",approvalDate:i.approvalDate,lastUpdated:bY(n.modified),lastUpdatedBy:n.modifiedBy}}const jZ=e=>{const t=Number(e.replace(/\/+$/,"").split("/").pop());return Number.isFinite(t)?t:void 0};function KZ(){const e=window.location.search;new URLSearchParams(e).get("id");const n=be(window.location.pathname),i=()=>{n.value=window.location.pathname};return Ss(()=>{i(),window.addEventListener("popstate",i)}),ud(()=>{window.removeEventListener("popstate",i)}),Re(()=>jZ(n.value))}const qZ=Hi.injectEndpoints({endpoints:e=>({getContributionDetails:e.query({query:t=>`/contributions/${t}`})})});function QZ(e){return wu(qZ.endpoints.getContributionDetails,e)}const fD=Hi.injectEndpoints({endpoints:e=>({addContributionNote:e.mutation({query:({contribution:t,body:n})=>({url:`/contributions/${t}/notes`,method:"POST",body:n})}),addContributionNoteBulk:e.mutation({query:t=>({url:"/contributions/notes",method:"POST",body:t})})})});function YZ(){return aa(fD.endpoints.addContributionNote)}function ZZ(){return aa(fD.endpoints.addContributionNoteBulk)}const pD=Hi.injectEndpoints({endpoints:e=>({updateContributionStatus:e.mutation({query:({contribution:t,body:n})=>({url:`/contributions/${t}/status`,method:"POST",body:n})}),updateContributionsStatusBulk:e.mutation({query:t=>({url:"/contributions/status",method:"POST",body:t})})})});function XZ(){return aa(pD.endpoints.updateContributionStatus)}function JZ(){return aa(pD.endpoints.updateContributionsStatusBulk)}const eX=Hi.injectEndpoints({endpoints:e=>({getUsers:e.query({query:t=>`/users/${t}`})})});function tX(e){return wu(eX.endpoints.getUsers,e)}const nX={class:"contribution-details-stack","aria-description":"Contribution details layout stack"},iX={key:0,class:"contribution-details-loading","aria-description":"Contribution details loading state"},oX={key:1,"aria-description":"Contribution details load error"},rX=zt(xt({__name:"ContributionDetails",props:{user:{type:Number}},setup(e){const t=e,n=KZ(),{data:i}=tX(QI(t,"user")),{data:o,isLoading:r,isError:s}=QZ(Re(()=>n.value??0)),{trigger:a}=YZ(),{trigger:l}=XZ(),{trigger:u}=wY(),h=Re(()=>{const P=i.value;return P&&([P.firstName,P.lastName].filter(Boolean).join(" ").trim()||P.email||P.username)||"Guest"}),f=be({}),p=be([]),m=Re(()=>{const P=o.value;return P?{...$Z(P),...f.value}:null}),v=Re(()=>[...p.value,...o.value?.match.notes??[]]),w=Re(()=>n.value!==void 0&&r.value),b=Re(()=>n.value===void 0?"Invalid contribution id":s.value?"Failed to load contribution":null);vn(n,()=>{f.value={},p.value=[]});const y=P=>{f.value={...f.value,...P}},R=async(P,D="user")=>{const A=n.value;if(A!==void 0)try{await a({contribution:A,body:{note:P,type:D}}),p.value=[{id:Date.now(),text:P,type:D,created:D==="user"?new Date().toISOString():"",createdBy:D==="user"?h.value:""},...p.value]}catch(N){console.error("Failed to add note",N)}},S=async P=>{const D=n.value;if(D!==void 0)try{await u({id:D,body:{preclearance:P.preclearanceId}}),y({preclearanceId:P.preclearanceId,preclearanceLabel:P.preclearanceLabel}),await R(`${h.value} matched preclearance to ${P.preclearanceLabel} on ${XC(new Date)}`,"system")}catch(A){console.error("Failed to match preclearance",A)}},x=async P=>{const D=n.value,A=m.value;if(!(D===void 0||!A||A.status===P.name))try{await l({contribution:D,body:{status:P.id}});const N=A.status;y({status:P.name}),await R(`${h.value} changed status from "${N}" to "${P.name}" on ${XC(new Date)}`,"system")}catch(N){console.error("Failed to update contribution status",N)}};return(P,D)=>(ue(),en(ew,{title:"Contribution Details"},{content:ei(()=>[W("div",nX,[w.value?(ue(),Se("div",iX,[rt(tw,{size:64})])):b.value?(ue(),Se("div",oX,Xe(b.value),1)):(ue(),Se(vt,{key:2},[m.value?(ue(),en(uZ,{key:0,contribution:m.value,user:e.user,onClearPreclearance:D[0]||(D[0]=A=>y({preclearanceId:null,preclearanceLabel:""})),onMatchPreclearance:S,onUpdateStatus:x},null,8,["contribution","user"])):_t("",!0),rt(PZ,{notes:v.value,onAddNote:R},null,8,["notes"])],64))])]),_:1}))}}),[["styles",[".contribution-details-loading[data-v-c52e3d48]{min-height:12rem}.contribution-details-stack[data-v-c52e3d48]{display:flex;flex-direction:column;gap:1rem}"]],["__scopeId","data-v-c52e3d48"]]),sX={class:"body"},aX=xt({__name:"ContributionDetails.ce",props:{user:{type:Number}},setup(e){return(t,n)=>(ue(),Se("div",sX,[rt(rX,{user:e.user},null,8,["user"])]))}}),nw=':root,:host{--color-black: #000000;--color-white: #ffffff;--color-green: #008000;--color-red: #ff0000;--color-primary-green: #0a8f2a;--color-secondary-green: #eaf2ee;--color-green-50: #f8faf9;--color-primary-black: #1c2b2d;--color-primary-grey: #e6e6e6;--color-secondary-grey: #d7e3dc;--color-grey-50: #fbf9fa;--color-grey-300: #c9d0cc;--color-grey-600: #5f6361;--color-yellow-700: #c07a00;--color-red-700: #c10007}#app{background:var(--color-primary-grey);color:var(--color-primary-black);display:flex;height:100vh;width:100%}:host,:root{--font-family-base: Poppins, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;--topbar-border-bottom-height: .0625rem;--topbar-height: 4rem}body,.body{color:var(--color-primary-black);font-family:var(--font-family-base);margin:0}.docs-story,.sb-show-main,.sbdocs,.sbdocs-content,.sbdocs-preview,.sbdocs-wrapper,#storybook-docs,#storybook-root{font-family:var(--font-family-base)}.v-spinner .v-clip{animation:v-clipDelay .75s 0s infinite linear;border-radius:100%;color:var(--color-primary-green)}@keyframes v-clipDelay{0%{transform:rotate(0)}50%{transform:rotate(180deg)}to{transform:rotate(360deg)}}',lX=zt(aX,[["styles",[nw,".body>*{width:100%}"]]]),gD=6e4,mD=36e5,vD=Symbol.for("constructDateFrom");function CD(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&vD in e?e[vD](t):e instanceof Date?new e.constructor(t):new Date(t)}function Df(e,t){return CD(e,e)}function cX(e,t){return+Df(e)>+Df(t)}function wD(e,t){const n=()=>CD(t?.in,NaN),o=fX(e);let r;if(o.date){const u=pX(o.date,2);r=gX(u.restDateString,u.year)}if(!r||isNaN(+r))return n();const s=+r;let a=0,l;if(o.time&&(a=mX(o.time),isNaN(a)))return n();if(o.timezone){if(l=vX(o.timezone),isNaN(l))return n()}else{const u=new Date(s+a),h=Df(0);return h.setFullYear(u.getUTCFullYear(),u.getUTCMonth(),u.getUTCDate()),h.setHours(u.getUTCHours(),u.getUTCMinutes(),u.getUTCSeconds(),u.getUTCMilliseconds()),h}return Df(s+a+l)}const Tf={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},uX=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,dX=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,hX=/^([+-])(\d{2})(?::?(\d{2}))?$/;function fX(e){const t={},n=e.split(Tf.dateTimeDelimiter);let i;if(n.length>2)return t;if(/:/.test(n[0])?i=n[0]:(t.date=n[0],i=n[1],Tf.timeZoneDelimiter.test(t.date)&&(t.date=e.split(Tf.timeZoneDelimiter)[0],i=e.substr(t.date.length,e.length))),i){const o=Tf.timezone.exec(i);o?(t.time=i.replace(o[1],""),t.timezone=o[1]):t.time=i}return t}function pX(e,t){const n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),i=e.match(n);if(!i)return{year:NaN,restDateString:""};const o=i[1]?parseInt(i[1]):null,r=i[2]?parseInt(i[2]):null;return{year:r===null?o:r*100,restDateString:e.slice((i[1]||i[2]).length)}}function gX(e,t){if(t===null)return new Date(NaN);const n=e.match(uX);if(!n)return new Date(NaN);const i=!!n[4],o=bu(n[1]),r=bu(n[2])-1,s=bu(n[3]),a=bu(n[4]),l=bu(n[5])-1;if(i)return SX(t,a,l)?CX(t,a,l):new Date(NaN);{const u=new Date(0);return!bX(t,r,s)||!yX(t,o)?new Date(NaN):(u.setUTCFullYear(t,r,Math.max(o,s)),u)}}function bu(e){return e?parseInt(e):1}function mX(e){const t=e.match(dX);if(!t)return NaN;const n=iw(t[1]),i=iw(t[2]),o=iw(t[3]);return RX(n,i,o)?n*mD+i*gD+o*1e3:NaN}function iw(e){return e&&parseFloat(e.replace(",","."))||0}function vX(e){if(e==="Z")return 0;const t=e.match(hX);if(!t)return 0;const n=t[1]==="+"?-1:1,i=parseInt(t[2]),o=t[3]&&parseInt(t[3])||0;return FX(i,o)?n*(i*mD+o*gD):NaN}function CX(e,t,n){const i=new Date(0);i.setUTCFullYear(e,0,4);const o=i.getUTCDay()||7,r=(t-1)*7+n+1-o;return i.setUTCDate(i.getUTCDate()+r),i}const wX=[31,null,31,30,31,30,31,31,30,31,30,31];function bD(e){return e%400===0||e%4===0&&e%100!==0}function bX(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(wX[t]||(bD(e)?29:28))}function yX(e,t){return t>=1&&t<=(bD(e)?366:365)}function SX(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}function RX(e,t,n){return e===24?t===0&&n===0:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}function FX(e,t){return t>=0&&t<=59}const xX=["aria-description"],PX={class:"sources-checkbox-label"},EX=["value"],DX={class:"sources-checkbox-label-text","aria-description":"source display name"},ow=zt(xt({__name:"ContributionSearchSourceCheckboxRow",props:jl({isNested:{type:Boolean,default:!1},source:{type:Object}},{selectedSourceIndexes:{required:!0},selectedSourceIndexesModifiers:{}}),emits:["update:selectedSourceIndexes"],setup(e){const t=e,n=Ma(e,"selectedSourceIndexes"),i=`contribution-search-source-${t.source.index}`;return(o,r)=>(ue(),Se("div",{class:Kt(["sources-checkbox-row",{"sources-checkbox-row-nested":e.isNested}]),role:"group","aria-description":e.isNested?"nested source checkbox row":"source checkbox row"},[W("label",PX,[nn(W("input",{id:i,"onUpdate:modelValue":r[0]||(r[0]=s=>n.value=s),type:"checkbox",name:"sources",value:e.source.index},null,8,EX),[[Sd,n.value]]),W("span",DX,Xe(e.source.name),1)])],10,xX))}}),[["styles",[`.sources-checkbox-label[data-v-8172af14]{align-items:flex-start;color:var(--color-primary-black);cursor:pointer;display:flex;font-size:.8125rem;gap:.375rem;line-height:1.35}.sources-checkbox-label input[type=checkbox][data-v-8172af14]{appearance:none;background-color:var(--color-white);border:.0625rem solid var(--color-primary-grey);border-radius:.125rem;cursor:pointer;flex-shrink:0;height:1rem;margin-top:.125rem;width:1rem}.sources-checkbox-label input[type=checkbox][data-v-8172af14]:checked{background-color:var(--color-primary-green);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'%3E%3Cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M1 5l3 3 7-7'/%3E%3C/svg%3E");background-position:center;background-repeat:no-repeat;background-size:.625rem .5rem;border-color:var(--color-primary-green)}.sources-checkbox-row-nested .sources-checkbox-label[data-v-8172af14]{font-size:.75rem}`]],["__scopeId","data-v-8172af14"]]),Af=e=>[e.source.index,...e.children.flatMap(t=>Af(t))],TX=(e,t)=>{if(t.length===0||e.length===0)return t;const n=new Set(t),i=o=>{if(o.children.length>0&&n.has(o.source.index))for(const r of Af(o))n.add(r);for(const r of o.children)i(r)};for(const o of e)i(o);return[...n]},AX=e=>{const t=new Set,n=i=>{i.children.length>0&&t.add(i.source.index);for(const o of i.children)n(o)};for(const i of e)n(i);return t},yD=(e,t)=>e.filter(n=>!t.has(n)),IX=(e,t)=>{if(t.length===0||e.length===0)return t;const n=new Set(t),i=o=>{if(o.children.length>0){const r=Af(o).filter(a=>a!==o.source.index);r.length>0&&r.every(a=>n.has(a))?n.add(o.source.index):n.delete(o.source.index)}for(const r of o.children)i(r)};for(const o of e)i(o);return[...n]},MX={class:"source-group-header-row","aria-description":"parent source with expand control"},kX=["aria-expanded","aria-label"],LX={class:"source-group-child-list"},_X=["aria-selected"],OX=zt(xt({__name:"ContributionSearchSourceGroupDropdown",props:jl({depth:{default:0,type:Number},sourceDisplayNode:{type:Object}},{selectedSourceIndexes:{required:!0},selectedSourceIndexesModifiers:{}}),emits:["update:selectedSourceIndexes"],setup(e){const t=e,n=Ma(e,"selectedSourceIndexes"),i=be(!1),o=be(!1),r=Re(()=>t.sourceDisplayNode.source.index),s=Re(()=>Af(t.sourceDisplayNode).filter(v=>v!==r.value)),a=Re(()=>n.value.includes(r.value)),l=Re(()=>s.value.length===0?!0:s.value.every(v=>n.value.includes(v))),u=Re(()=>`Show or hide child sources for ${t.sourceDisplayNode.source.name}`),h=()=>{i.value=!i.value},f=(v,w)=>{if(!(o.value||v===w||s.value.length===0)){if(o.value=!0,v)n.value=Ee.uniq([...n.value,...s.value]);else if(l.value){const b=new Set(s.value);n.value=n.value.filter(y=>!b.has(y))}o.value=!1}},p=()=>{if(o.value||s.value.length===0)return;const v=l.value,w=a.value;v!==w&&(o.value=!0,v?n.value=Ee.uniq([...n.value,r.value]):n.value=n.value.filter(b=>b!==r.value),o.value=!1)},m=Re(()=>s.value.filter(v=>n.value.includes(v)).sort().join(","));return vn(a,f,{immediate:!0}),vn(m,p),(v,w)=>{const b=dd("ContributionSearchSourceGroupDropdown",!0);return ue(),Se("section",{class:Kt(["source-group",{"source-group-nested":e.depth>0}]),style:Ei(e.depth>0?{marginLeft:`${e.depth*.75}rem`}:void 0),"aria-description":"collapsible parent source group"},[W("header",MX,[rt(ow,{source:e.sourceDisplayNode.source,"is-nested":e.depth>0,"selected-source-indexes":n.value,"onUpdate:selectedSourceIndexes":w[0]||(w[0]=y=>n.value=y)},null,8,["source","is-nested","selected-source-indexes"]),W("button",{type:"button",class:"source-group-caret-button","aria-expanded":i.value,"aria-label":u.value,onClick:h},[W("i",{class:Kt(["fa-chevron-down fa-solid source-group-chevron",{"source-group-chevron-expanded":i.value}]),"aria-hidden":"true"},null,2)],8,kX)]),rt(wd,{name:"source-group-panel"},{default:ei(()=>[i.value?(ue(),Se("section",{key:0,class:"source-group-panel","aria-description":"expanded child source checkboxes",onClick:w[3]||(w[3]=Ot(()=>{},["stop"]))},[W("ul",LX,[(ue(!0),Se(vt,null,hi(e.sourceDisplayNode.children,y=>(ue(),Se("li",{key:y.source.index,class:"source-group-child-item",role:"option","aria-selected":n.value.includes(y.source.index)},[y.children.length>0?(ue(),en(b,{key:0,"source-display-node":y,depth:e.depth+1,"selected-source-indexes":n.value,"onUpdate:selectedSourceIndexes":w[1]||(w[1]=R=>n.value=R)},null,8,["source-display-node","depth","selected-source-indexes"])):(ue(),en(ow,{key:1,source:y.source,"is-nested":"","selected-source-indexes":n.value,"onUpdate:selectedSourceIndexes":w[2]||(w[2]=R=>n.value=R)},null,8,["source","selected-source-indexes"]))],8,_X))),128))])])):_t("",!0)]),_:1})],6)}}}),[["styles",[".source-group[data-v-cb3709dc]{display:flex;flex-direction:column;gap:.25rem}.source-group-caret-button[data-v-cb3709dc]{background:transparent;border:none;color:var(--color-primary-black);cursor:pointer;flex-shrink:0;line-height:1;margin-top:.125rem;padding:.125rem}.source-group-caret-button[data-v-cb3709dc]:hover{color:var(--color-primary-green)}.source-group-chevron[data-v-cb3709dc]{font-size:.75rem;transform:rotate(-90deg);transition:transform .2s ease}.source-group-chevron-expanded[data-v-cb3709dc]{transform:rotate(0)}.source-group-child-item[data-v-cb3709dc]{list-style:none;margin:0;padding:0}.source-group-child-list[data-v-cb3709dc]{display:flex;flex-direction:column;gap:.375rem;list-style:none;margin:0;padding:0}.source-group-header-row[data-v-cb3709dc]{align-items:flex-start;display:flex;gap:.25rem;width:100%}.source-group-header-row[data-v-cb3709dc] .sources-checkbox-label{flex:1;min-width:0}.source-group-panel[data-v-cb3709dc]{margin-left:.5rem;padding:.375rem 0 0 .625rem}.source-group-panel-enter-active[data-v-cb3709dc],.source-group-panel-leave-active[data-v-cb3709dc]{transition:opacity .2s ease,transform .2s ease}.source-group-panel-enter-from[data-v-cb3709dc],.source-group-panel-leave-to[data-v-cb3709dc]{opacity:0;transform:translateY(-.25rem)}"]],["__scopeId","data-v-cb3709dc"]]),SD=e=>{const t=Ee.keyBy(e,r=>r.index),n={};for(const r of e){const s=r.parent;s&&t[s]&&(n[s]||(n[s]=[]),n[s].push(r))}const i=r=>({source:r,children:(n[r.index]??[]).sort((s,a)=>s.name.localeCompare(a.name)).map(s=>i(s))});return e.filter(r=>!r.parent||!t[r.parent]).sort((r,s)=>r.name.localeCompare(s.name)).map(r=>i(r))},NX=Hi.injectEndpoints({endpoints:e=>({getSources:e.query({query:({id:t=null})=>({url:t?`/sources/${t}`:"/sources"})})})});function BX(e){return wu(NX.endpoints.getSources,e)}const GX={class:"sources-select","aria-description":"sources multi-select field"},HX=["aria-expanded","aria-label"],VX={class:"sources-dropdown-count"},WX=["aria-label"],zX={key:1,class:"sources-empty-message"},UX={key:2,class:"sources-options","aria-description":"source checkbox options"},$X={class:"sources-select-all-list"},jX={class:"sources-select-all-item"},KX={class:"sources-checkbox-label sources-select-all-label"},qX={class:"sources-list"},QX=["aria-selected"],YX=zt(xt({__name:"ContributionSearchSourcesSelect",props:{selectedSourceIndexes:{default:()=>[]},selectedSourceIndexesModifiers:{}},emits:["update:selectedSourceIndexes"],setup(e){const t=Ma(e,"selectedSourceIndexes"),n=Co({}),{data:i,isLoading:o}=BX(n),r=be(!1),s=be(null),a=be(null),l=be(null),u=be(!1),h=be(!1),f=Re(()=>{const M=i.value;return M?(Array.isArray(M)?M:[M]).filter(O=>O.active):[]}),p=Re(()=>SD(f.value)),m=Re(()=>AX(p.value)),v=Re(()=>f.value.map(M=>M.index)),w=Re(()=>yD(v.value,m.value)),b=Re(()=>yD(t.value,m.value)),y=Re(()=>b.value.length),R=Re(()=>{const M=w.value;return M.length===0?!1:M.every(I=>t.value.includes(I))}),S=Re(()=>y.value>0&&!R.value),x=Re({get:()=>R.value,set:M=>{t.value=M?[...v.value]:[]}}),P=Re(()=>{const M=y.value;return M===1?"1 source selected":`${M} sources selected`}),D=()=>{r.value=!r.value},A=()=>{r.value=!1},N=(M,I)=>{if(Ee.isEmpty(I)||M.length===0)return I;const O=I.map(Q=>M.some(Fe=>Fe.index===Q)?Q:M.find(Fe=>Fe.name===Q)?.index??Q);return Ee.uniq(O).filter(Q=>M.some(te=>te.index===Q))},B=(M,I)=>{if(M.length===0)return;h.value=!0;let O=[...t.value];if(O=N(M,O),!Ee.isEmpty(O)){const Q=SD(M);O=TX(Q,O),O=IX(Q,O)}I&&!u.value&&(u.value=!0,Ee.isEmpty(O)&&(O=M.map(Q=>Q.index))),Ee.isEqual([...O].sort(),[...t.value].sort())||(t.value=O),h.value=!1};vn(f,M=>{B(M,!0)},{flush:"post",immediate:!0}),vn(t,()=>{h.value||B(f.value,!1)},{deep:!0,flush:"post"}),vn([S,R],()=>{l.value&&(l.value.indeterminate=S.value)},{flush:"post"});const L=M=>{if(!r.value)return;const I=M.target;a.value?.contains(I)||s.value?.contains(I)||A()};return Ss(()=>{document.addEventListener("click",L)}),zl(()=>{document.removeEventListener("click",L)}),(M,I)=>(ue(),Se("section",GX,[W("section",{class:"sources-dropdown","aria-description":"sources checkbox dropdown",onKeydown:Cn(A,["esc"])},[W("button",{ref_key:"dropdownButtonRef",ref:s,type:"button",class:"sources-dropdown-button","aria-expanded":r.value,"aria-haspopup":"listbox","aria-label":`Sources, ${P.value}`,onClick:D},[I[4]||(I[4]=W("strong",{class:"sources-dropdown-title"},"Sources",-1)),W("span",VX,Xe(y.value),1),W("i",{class:Kt(["fa-solid fa-chevron-down sources-dropdown-chevron",{"sources-dropdown-chevron-open":r.value}]),"aria-hidden":"true"},null,2)],8,HX),rt(wd,{name:"sources-dropdown"},{default:ei(()=>[r.value?(ue(),Se("section",{key:0,ref_key:"dropdownPanelRef",ref:a,class:"sources-dropdown-panel","aria-description":"sources checkbox list panel",role:"listbox","aria-multiselectable":"true","aria-label":P.value,onClick:I[3]||(I[3]=Ot(()=>{},["stop"]))},[Di(o)?(ue(),en(tw,{key:0,size:48,"loading-text":"Loading sources…"})):f.value.length===0?(ue(),Se("p",zX," No sources available. ")):(ue(),Se("section",UX,[W("ul",$X,[W("li",jX,[W("label",KX,[nn(W("input",{id:"contribution-search-source-select-all",ref_key:"selectAllCheckboxRef",ref:l,"onUpdate:modelValue":I[0]||(I[0]=O=>x.value=O),type:"checkbox",name:"sources-select-all"},null,512),[[Sd,x.value]]),I[5]||(I[5]=Mn(" ALL SOURCES ",-1))])])]),W("ul",qX,[(ue(!0),Se(vt,null,hi(p.value,O=>(ue(),Se("li",{key:O.source.index,class:"sources-list-item",role:"option","aria-selected":t.value.includes(O.source.index)},[O.children.length>0?(ue(),en(OX,{key:0,"source-display-node":O,"selected-source-indexes":t.value,"onUpdate:selectedSourceIndexes":I[1]||(I[1]=Q=>t.value=Q)},null,8,["source-display-node","selected-source-indexes"])):(ue(),en(ow,{key:1,source:O.source,"selected-source-indexes":t.value,"onUpdate:selectedSourceIndexes":I[2]||(I[2]=Q=>t.value=Q)},null,8,["source","selected-source-indexes"]))],8,QX))),128))])]))],8,WX)):_t("",!0)]),_:1})],32)]))}}),[["styles",[`.sources-checkbox-label[data-v-f0ca89a6]{align-items:flex-start;color:var(--color-primary-black);cursor:pointer;display:flex;font-size:.8125rem;gap:.375rem;line-height:1.35}.sources-checkbox-label input[type=checkbox][data-v-f0ca89a6]{appearance:none;background-color:var(--color-white);border:.0625rem solid var(--color-primary-grey);border-radius:.125rem;cursor:pointer;flex-shrink:0;height:1rem;margin-top:.125rem;width:1rem}.sources-checkbox-label input[type=checkbox][data-v-f0ca89a6]:checked{background-color:var(--color-primary-green);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'%3E%3Cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M1 5l3 3 7-7'/%3E%3C/svg%3E");background-position:center;background-repeat:no-repeat;background-size:.625rem .5rem;border-color:var(--color-primary-green)}.sources-checkbox-label input[type=checkbox][data-v-f0ca89a6]:indeterminate{background-color:var(--color-primary-green);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-width='2' d='M2 6h8'/%3E%3C/svg%3E");background-position:center;background-repeat:no-repeat;background-size:.625rem;border-color:var(--color-primary-green)}.sources-dropdown[data-v-f0ca89a6]{position:relative}.sources-dropdown-button[data-v-f0ca89a6]{align-items:center;background:var(--color-white);border:.0625rem solid var(--color-primary-grey);border-radius:.25rem;box-sizing:border-box;color:var(--color-primary-black);cursor:pointer;display:flex;font-family:Poppins,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Arial,sans-serif;font-size:.9375rem;gap:.375rem;height:2.25rem;padding:0 .5rem;width:100%}.sources-dropdown-button[data-v-f0ca89a6]:focus-visible{border-color:var(--color-primary-green)}.sources-dropdown-button[data-v-f0ca89a6]:hover{border-color:var(--color-primary-green)}.sources-dropdown-chevron[data-v-f0ca89a6]{font-size:.75rem;margin-left:auto;opacity:.85;transform:rotate(0);transition:transform .2s ease}.sources-dropdown-chevron-open[data-v-f0ca89a6]{transform:rotate(180deg)}.sources-dropdown-count[data-v-f0ca89a6]{background-color:var(--color-primary-grey);border-radius:.25rem;color:var(--color-primary-black);font-size:.875rem;font-style:normal;font-weight:600;line-height:1.25;min-width:1.25rem;padding:.125rem .375rem;text-align:center}.sources-dropdown-enter-active[data-v-f0ca89a6],.sources-dropdown-leave-active[data-v-f0ca89a6]{transition:opacity .2s ease,transform .2s ease}.sources-dropdown-enter-from[data-v-f0ca89a6],.sources-dropdown-leave-to[data-v-f0ca89a6]{opacity:0;transform:translateY(-.25rem)}.sources-dropdown-panel[data-v-f0ca89a6]{background:var(--color-white);border:.0625rem solid var(--color-primary-grey);border-radius:.375rem;box-shadow:0 .625rem 1.5rem #00000014;left:0;margin-top:.375rem;max-height:min(70vh,24rem);max-width:36rem;overflow-x:hidden;overflow-y:auto;padding:.75rem;position:absolute;top:100%;width:100%;z-index:3}.sources-dropdown-title[data-v-f0ca89a6]{font-size:.875rem;font-weight:600}.sources-empty-message[data-v-f0ca89a6]{color:var(--color-primary-black);font-size:.875rem;margin:0}.sources-list[data-v-f0ca89a6]{display:grid;gap:.5rem 1rem;grid-template-columns:1fr 1fr;list-style:none;margin:0;padding:0}.sources-list-item[data-v-f0ca89a6]{list-style:none;margin:0;min-width:0;padding:0}.sources-options[data-v-f0ca89a6]{display:flex;flex-direction:column;gap:.5rem}.sources-select[data-v-f0ca89a6]{display:flex;flex-direction:column;gap:.35rem;margin-top:.75rem;min-width:0;width:100%}.sources-select-all-item[data-v-f0ca89a6]{list-style:none}.sources-select-all-label[data-v-f0ca89a6]{color:var(--color-red);font-weight:600}.sources-select-all-list[data-v-f0ca89a6]{border-bottom:.0625rem solid var(--color-primary-grey);list-style:none;margin:0;padding:0 0 .5rem}`]],["__scopeId","data-v-f0ca89a6"]]),RD=[{value:"AL",label:"Alabama"},{value:"AK",label:"Alaska"},{value:"AZ",label:"Arizona"},{value:"AR",label:"Arkansas"},{value:"CA",label:"California"},{value:"CO",label:"Colorado"},{value:"CT",label:"Connecticut"},{value:"DE",label:"Delaware"},{value:"DC",label:"District of Columbia"},{value:"FL",label:"Florida"},{value:"GA",label:"Georgia"},{value:"HI",label:"Hawaii"},{value:"ID",label:"Idaho"},{value:"IL",label:"Illinois"},{value:"IN",label:"Indiana"},{value:"IA",label:"Iowa"},{value:"KS",label:"Kansas"},{value:"KY",label:"Kentucky"},{value:"LA",label:"Louisiana"},{value:"ME",label:"Maine"},{value:"MD",label:"Maryland"},{value:"MA",label:"Massachusetts"},{value:"MI",label:"Michigan"},{value:"MN",label:"Minnesota"},{value:"MS",label:"Mississippi"},{value:"MO",label:"Missouri"},{value:"MT",label:"Montana"},{value:"NE",label:"Nebraska"},{value:"NV",label:"Nevada"},{value:"NH",label:"New Hampshire"},{value:"NJ",label:"New Jersey"},{value:"NM",label:"New Mexico"},{value:"NY",label:"New York"},{value:"NC",label:"North Carolina"},{value:"ND",label:"North Dakota"},{value:"OH",label:"Ohio"},{value:"OK",label:"Oklahoma"},{value:"OR",label:"Oregon"},{value:"PA",label:"Pennsylvania"},{value:"RI",label:"Rhode Island"},{value:"SC",label:"South Carolina"},{value:"SD",label:"South Dakota"},{value:"TN",label:"Tennessee"},{value:"TX",label:"Texas"},{value:"UT",label:"Utah"},{value:"VT",label:"Vermont"},{value:"VA",label:"Virginia"},{value:"WA",label:"Washington"},{value:"WV",label:"West Virginia"},{value:"WI",label:"Wisconsin"},{value:"WY",label:"Wyoming"}],ZX={class:"states-select","aria-description":"U.S. states multi-select field"},XX=["aria-expanded","aria-label","onKeydown"],JX={class:"states-dropdown-value","aria-description":"Selected states or placeholder"},eJ={key:0,class:"states-dropdown-placeholder","aria-description":"Placeholder for no states selected"},tJ={key:1,class:"states-selected-list",role:"list","aria-label":"Selected states"},nJ={class:"states-selected-chip","aria-description":"Selected state chip"},iJ=["aria-label","onClick"],oJ=["aria-label"],rJ={class:"states-options","aria-description":"state checkbox options"},sJ={class:"states-list"},aJ=["aria-selected"],lJ={class:"states-checkbox-label"},cJ=["id","value"],uJ={"aria-description":"State name"},dJ=zt(xt({__name:"ContributionSearchStatesSelect",props:{selectedStateValues:{default:()=>[]},selectedStateValuesModifiers:{}},emits:["update:selectedStateValues"],setup(e){const t=Ma(e,"selectedStateValues"),n=be(!1),i=be(null),o=be(null),r=Re(()=>t.value.length),s=Re(()=>r.value>0),a=Re(()=>{const m=[];for(const v of t.value){const w=RD.find(b=>b.value===v);w&&m.push(w)}return m}),l=Re(()=>s.value?a.value.map(m=>m.label).join(", "):"Select States"),u=()=>{n.value=!n.value},h=()=>{n.value=!1},f=(m,v)=>{m.stopPropagation(),t.value=t.value.filter(w=>w!==v)},p=m=>{if(n.value){{const v=m.composedPath();if(o.value&&v.includes(o.value)||i.value&&v.includes(i.value))return}h()}};return Ss(()=>{document.addEventListener("click",p)}),zl(()=>{document.removeEventListener("click",p)}),(m,v)=>{const w=dd("font-awesome-icon");return ue(),Se("section",ZX,[v[2]||(v[2]=W("span",{class:"states-field-label","aria-description":"states field label"},"U.S. state",-1)),W("section",{class:"states-dropdown","aria-description":"states checkbox dropdown",onKeydown:Cn(h,["esc"])},[W("div",{ref_key:"dropdownControlRef",ref:i,class:"states-dropdown-control",role:"combobox",tabindex:"0","aria-expanded":n.value,"aria-haspopup":"listbox","aria-label":`U.S. states, ${l.value}`,onClick:Ot(u,["stop"]),onKeydown:[Cn(Ot(u,["prevent"]),["enter"]),Cn(Ot(u,["prevent"]),["space"])],"aria-description":"Dropdown control for selecting U.S. states"},[W("div",JX,[s.value?(ue(),Se("ul",tJ,[(ue(!0),Se(vt,null,hi(a.value,b=>(ue(),Se("li",{key:b.value,class:"states-selected-item",role:"listitem"},[W("span",nJ,[Mn(Xe(b.label)+" ",1),W("button",{type:"button",class:"states-selected-remove","aria-label":`Remove ${b.label}`,onClick:y=>f(y,b.value)},[rt(w,{class:"states-selected-remove-icon",icon:["fas","xmark"],size:"xs"})],8,iJ)])]))),128))])):(ue(),Se("span",eJ,"Select States"))]),W("i",{class:Kt(["fa-solid fa-chevron-down states-dropdown-chevron",{"states-dropdown-chevron-open":n.value}]),"aria-hidden":"true"},null,2)],40,XX),rt(wd,{name:"states-dropdown"},{default:ei(()=>[n.value?(ue(),Se("section",{key:0,ref_key:"dropdownPanelRef",ref:o,class:"states-dropdown-panel","aria-description":"states checkbox list panel",role:"listbox","aria-multiselectable":"true","aria-label":l.value,onClick:v[1]||(v[1]=Ot(()=>{},["stop"]))},[W("section",rJ,[W("ul",sJ,[(ue(!0),Se(vt,null,hi(Di(RD),b=>(ue(),Se("li",{key:b.value,class:"states-list-item",role:"option","aria-selected":t.value.includes(b.value)},[W("label",lJ,[nn(W("input",{id:`contribution-search-state-${b.value}`,"onUpdate:modelValue":v[0]||(v[0]=y=>t.value=y),type:"checkbox",name:"states",value:b.value},null,8,cJ),[[Sd,t.value]]),W("span",uJ,Xe(b.label),1)])],8,aJ))),128))])])],8,oJ)):_t("",!0)]),_:1})],32)])}}}),[["styles",[`.states-checkbox-label[data-v-7d562196]{align-items:flex-start;color:var(--color-primary-black);cursor:pointer;display:flex;font-size:.8125rem;gap:.375rem;line-height:1.35}.states-checkbox-label input[type=checkbox][data-v-7d562196]{appearance:none;background-color:var(--color-white);border:.0625rem solid var(--color-primary-grey);border-radius:.125rem;cursor:pointer;flex-shrink:0;height:1rem;margin-top:.125rem;width:1rem}.states-checkbox-label input[type=checkbox][data-v-7d562196]:checked{background-color:var(--color-primary-green);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'%3E%3Cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M1 5l3 3 7-7'/%3E%3C/svg%3E");background-position:center;background-repeat:no-repeat;background-size:.625rem .5rem;border-color:var(--color-primary-green)}.states-dropdown[data-v-7d562196]{position:relative}.states-dropdown-chevron[data-v-7d562196]{flex-shrink:0;font-size:.75rem;margin-top:.375rem;opacity:.85;transform:rotate(0);transition:transform .2s ease}.states-dropdown-chevron-open[data-v-7d562196]{transform:rotate(180deg)}.states-dropdown-control[data-v-7d562196]{align-items:flex-start;background:var(--color-white);border:.0625rem solid var(--color-primary-grey);border-radius:.25rem;box-sizing:border-box;color:var(--color-grey-600);cursor:pointer;display:flex;font-family:Poppins,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Arial,sans-serif;font-size:.9375rem;gap:.375rem;min-height:2.25rem;padding:.25rem .5rem;width:100%}.states-dropdown-control[data-v-7d562196]:focus-visible{border-color:var(--color-primary-green)}.states-dropdown-control[data-v-7d562196]:hover{border-color:var(--color-primary-green)}.states-dropdown-enter-active[data-v-7d562196],.states-dropdown-leave-active[data-v-7d562196]{transition:opacity .2s ease,transform .2s ease}.states-dropdown-enter-from[data-v-7d562196],.states-dropdown-leave-to[data-v-7d562196]{opacity:0;transform:translateY(-.25rem)}.states-dropdown-panel[data-v-7d562196]{background:var(--color-white);border:.0625rem solid var(--color-primary-grey);border-radius:.375rem;box-shadow:0 .625rem 1.5rem #00000014;left:0;margin-top:.375rem;max-height:min(70vh,24rem);max-width:36rem;overflow-x:hidden;overflow-y:auto;padding:.75rem;position:absolute;top:100%;width:100%;z-index:3}.states-dropdown-placeholder[data-v-7d562196]{color:var(--color-secondary-black);display:block;font-size:.9375rem;line-height:1.75rem;padding:0 .125rem}.states-dropdown-value[data-v-7d562196]{flex:1;min-width:0}.states-field-label[data-v-7d562196]{color:var(--color-primary-black);font-size:.875rem}.states-list[data-v-7d562196]{display:grid;gap:.5rem 1rem;grid-template-columns:1fr 1fr;list-style:none;margin:0;padding:0}.states-list-item[data-v-7d562196]{list-style:none;margin:0;min-width:0;padding:0}.states-options[data-v-7d562196]{display:flex;flex-direction:column;gap:.5rem}.states-select[data-v-7d562196]{display:flex;flex-direction:column;gap:.35rem;margin-top:.75rem;min-width:0;width:100%}.states-selected-chip[data-v-7d562196]{align-items:center;background-color:var(--color-secondary-green);border-radius:.25rem;color:var(--color-primary-black);display:inline-flex;font-size:.8125rem;gap:.125rem;line-height:1.25;max-width:100%;padding:.125rem .125rem .125rem .375rem}.states-selected-item[data-v-7d562196]{list-style:none;margin:0;max-width:100%;padding:0}.states-selected-list[data-v-7d562196]{display:flex;flex-wrap:wrap;gap:.25rem;list-style:none;margin:0;padding:0}.states-selected-remove[data-v-7d562196]{align-items:center;background:transparent;border:none;border-radius:.125rem;color:var(--color-primary-black);cursor:pointer;display:inline-flex;flex-shrink:0;font-size:.75rem;height:1.25rem;justify-content:center;padding:0;width:1.25rem}.states-selected-remove[data-v-7d562196]:hover{color:var(--color-primary-green)}.states-selected-remove-icon[data-v-7d562196]{height:.5625rem;width:.703125rem}`]],["__scopeId","data-v-7d562196"]]);function hJ(e){return{id:e.contribution.id,contributor:e.contribution.contributor,employeeStatus:e.match?.employee?.status??"",address:e.contribution.address,state:e.contribution.state,zipCode:e.contribution.zipCode,date:e.contribution.date,dateDetected:e.match?.created??"",amount:e.contribution.amount,employer:e.contribution.employer,occupation:e.contribution.occupation,recipient:e.contribution.recipient,amended:e.contribution.amended,sources:e.contribution.source,status:e.match?.status??"",reconciliationStatus:e.match?.preclearance?.reconciliationStatus??"",preclearance:e.match?.preclearance?.name??"",approvalDate:e.match?.preclearance?.approvalDate??"",approvedAmount:e.match?.preclearance?.amount??null,lastUpdated:e.match?.modified??"",lastUpdatedBy:e.match?.modifiedBy??"",notes:e.match?.notes.map(t=>t.text).join(";")??"",tags:e.match?.employee?.tags.map(t=>t.name).join(";")??"",groups:e.match?.employee?.groups.map(t=>t.name).join(";")??""}}var Fn=(e=>(e[e.NULL=0]="NULL",e[e.OR=1]="OR",e[e.AND=2]="AND",e))(Fn||{}),sn=(e=>(e[e.EQUALS=1]="EQUALS",e[e.NOT_EQUALS=2]="NOT_EQUALS",e[e.LESS_THAN=3]="LESS_THAN",e[e.GREATER_THAN=4]="GREATER_THAN",e[e.LESS_THAN_OR_EQUAL=5]="LESS_THAN_OR_EQUAL",e[e.GREATER_THAN_OR_EQUAL=6]="GREATER_THAN_OR_EQUAL",e[e.CONTAINS=7]="CONTAINS",e[e.DOES_NOT_CONTAIN=8]="DOES_NOT_CONTAIN",e[e.BEGINS_WITH=9]="BEGINS_WITH",e[e.ENDS_WITH=10]="ENDS_WITH",e))(sn||{});const fJ=Hi.injectEndpoints({endpoints:e=>({searchContributions:e.mutation({query:({user:t,page:n,limit:i,sortColumn:o=null,sortOrder:r=null,match:s=!1,body:a})=>({url:`/contributions/search?user=${t}&page=${n}&limit=${i}${o&&r?`&sortColumn=${o}&sortOrder=${r}`:""}&match=${s}`,method:"POST",body:a}),transformResponse:(t,n)=>({page:t.page,totalPages:t.totalPages,limit:t.limit,total:t.total,results:t.results.map(hJ)})})})});function pJ(){return aa(fJ.endpoints.searchContributions)}function gJ(){let e=1;return()=>e++}const mJ=gJ(),vJ={NULL:Fn.NULL,OR:Fn.OR,AND:Fn.AND},FD={equals:sn.EQUALS,notEqual:sn.NOT_EQUALS,lessThan:sn.LESS_THAN,greaterThan:sn.GREATER_THAN,lessThanOrEqual:sn.LESS_THAN_OR_EQUAL,greaterThanOrEqual:sn.GREATER_THAN_OR_EQUAL,contains:sn.CONTAINS,notContains:sn.DOES_NOT_CONTAIN,startsWith:sn.BEGINS_WITH,endsWith:sn.ENDS_WITH};function CJ(e="",t=[]){const n=vJ?.[e];return!n||t.length<2?Fn.NULL:n}function wJ(e=""){const t=FD?.[e];return t||sn.EQUALS}function si(e,t){if(Ee.isNil(FD[e]))throw Error("Invalid Comparator...");return{id:mJ(),comparator:wJ(e),value:t}}const bJ={class:"search-layout","aria-description":"contribution search form layout"},yJ={class:"search-fieldset"},SJ={class:"field field-full"},RJ=["aria-invalid","aria-describedby"],FJ={key:0,id:"contribution-search-first-name-error",class:"field-error",role:"alert"},xJ={class:"field field-full"},PJ=["aria-invalid","aria-describedby"],EJ={key:0,id:"contribution-search-last-name-error",class:"field-error",role:"alert"},DJ={class:"field field-full"},TJ={class:"date-fieldset dates-row"},AJ={class:"field field-date"},IJ=["aria-invalid","aria-describedby"],MJ={class:"field field-date"},kJ=["aria-invalid","aria-describedby"],xD="This field is required.",PD="Record dates require both a start date and an end date.",ED="Record start date must be on or before the end date.",DD=zt(xt({__name:"ContributionSearchForm",props:{contributionSearchPresets:{default:null,type:[Object,null]}},emits:["search"],setup(e,{emit:t}){const n=e,i=t,o=be(""),r=be(""),s=be([]),a=be(""),l=be(""),u=be(""),h=be([]),f=be(0),p=be(""),m=be(null),v=be(""),w=be(""),b=Re(()=>p.value===PD||p.value===ED),y=Re(()=>{const D=["record-dates-hint"];return b.value&&D.push("contribution-search-form-error"),D.join(" ")}),R=D=>{const A=D.contributor?.query?.find(te=>te.comparator===sn.BEGINS_WITH),N=D.contributor?.query?.find(te=>te.comparator===sn.ENDS_WITH);o.value=Ee.isNil(A?.value)?"":String(A?.value),r.value=Ee.isNil(N?.value)?"":String(N?.value);const B=(D.state?.query??[]).filter(te=>te.comparator===sn.EQUALS);s.value=B.map(te=>Ee.isNil(te.value)?"":String(te.value)).filter(te=>!Ee.isEmpty(te));const L=D.zipCode?.query?.find(te=>te.comparator===sn.EQUALS);a.value=Ee.isNil(L?.value)?"":String(L?.value);const M=D.date?.query?.find(te=>te.comparator===sn.GREATER_THAN_OR_EQUAL),I=D.date?.query?.find(te=>te.comparator===sn.LESS_THAN_OR_EQUAL);l.value=Ee.isNil(M?.value)?"":String(M?.value),u.value=Ee.isNil(I?.value)?"":String(I?.value);const Q=(D.sources?.query??[]).filter(te=>te.comparator===sn.EQUALS).map(te=>Ee.isNil(te.value)?"":String(te.value)).filter(te=>!Ee.isEmpty(te));h.value=Q,Q.length>0&&(f.value+=1),p.value="",v.value="",w.value=""};vn(()=>n.contributionSearchPresets,async D=>{D===null||Ee.isEmpty(D)||(R(D),await Dr())},{deep:!0,immediate:!0});const S=()=>{p.value="",v.value="",w.value="";let D=!0;if(Ee.isEmpty(o.value.trim())&&(v.value=xD,D=!1),Ee.isEmpty(r.value.trim())&&(w.value=xD,D=!1),!D)return!1;const A=!Ee.isEmpty(l.value),N=!Ee.isEmpty(u.value);if(A!==N)return p.value=PD,!1;if(A&&N){const B=wD(l.value),L=wD(u.value);if(cX(B,L))return p.value=ED,!1}return!0},x=()=>{const D={},A=o.value.trim(),N=r.value.trim();D.contributor={conjunction:Fn.AND,query:[si("startsWith",A),si("endsWith",N)]},Ee.isEmpty(s.value)||(D.state={conjunction:s.value.length>1?Fn.OR:Fn.NULL,query:s.value.map(L=>si("equals",L))});const B=a.value.trim();return Ee.isEmpty(B)||(D.zipCode={conjunction:Fn.NULL,query:[si("equals",B)]}),!Ee.isEmpty(l.value)&&!Ee.isEmpty(u.value)&&(D.date={conjunction:Fn.AND,query:[si("greaterThanOrEqual",l.value),si("lessThanOrEqual",u.value)]}),Ee.isEmpty(h.value)||(D.sources={conjunction:h.value.length>1?Fn.OR:Fn.NULL,query:h.value.map(L=>si("equals",L))}),D},P=()=>{if(!S()){Dr(()=>{if(v.value){document.getElementById("contribution-search-first-name")?.focus();return}if(w.value){document.getElementById("contribution-search-last-name")?.focus();return}m.value?.focus()});return}i("search",x())};return(D,A)=>(ue(),Se("section",bJ,[W("form",{class:"search-form",role:"search","aria-label":"Contribution search",novalidate:"",onSubmit:Ot(P,["prevent"])},[W("fieldset",yJ,[A[12]||(A[12]=W("legend",{class:"visually-hidden"},"Contribution search filters",-1)),W("label",SJ,[A[7]||(A[7]=W("span",{class:"field-label","aria-description":"first name field label"},[Mn(" First name "),W("abbr",{class:"req",title:"required"},"*")],-1)),nn(W("input",{id:"contribution-search-first-name","onUpdate:modelValue":A[0]||(A[0]=N=>o.value=N),type:"text",name:"firstName",autocomplete:"given-name","aria-invalid":v.value?!0:void 0,"aria-describedby":v.value?"contribution-search-first-name-error":void 0},null,8,RJ),[[Xo,o.value]]),v.value?(ue(),Se("p",FJ,Xe(v.value),1)):_t("",!0)]),W("label",xJ,[A[8]||(A[8]=W("span",{class:"field-label","aria-description":"last name field label"},[Mn(" Last name "),W("abbr",{class:"req",title:"required"},"*")],-1)),nn(W("input",{id:"contribution-search-last-name","onUpdate:modelValue":A[1]||(A[1]=N=>r.value=N),type:"text",name:"lastName",autocomplete:"family-name","aria-invalid":w.value?!0:void 0,"aria-describedby":w.value?"contribution-search-last-name-error":void 0},null,8,PJ),[[Xo,r.value]]),w.value?(ue(),Se("p",EJ,Xe(w.value),1)):_t("",!0)]),rt(dJ,{"selected-state-values":s.value,"onUpdate:selectedStateValues":A[2]||(A[2]=N=>s.value=N)},null,8,["selected-state-values"]),W("label",DJ,[A[9]||(A[9]=Mn(" Postal code ",-1)),nn(W("input",{id:"contribution-search-postal","onUpdate:modelValue":A[3]||(A[3]=N=>a.value=N),type:"text",name:"postalCode",autocomplete:"postal-code",placeholder:"Enter postal code..."},null,512),[[Xo,a.value]])]),W("fieldset",TJ,[W("label",AJ,[A[10]||(A[10]=Mn(" Record Dates ",-1)),nn(W("input",{id:"contribution-search-date-from","onUpdate:modelValue":A[4]||(A[4]=N=>l.value=N),type:"date",name:"recordDateFrom","aria-invalid":b.value,"aria-describedby":y.value},null,8,IJ),[[Xo,l.value]])]),A[11]||(A[11]=W("p",{class:"date-to","aria-hidden":"true"},"to",-1)),W("label",MJ,[nn(W("input",{id:"contribution-search-date-to","onUpdate:modelValue":A[5]||(A[5]=N=>u.value=N),type:"date",name:"recordDateTo","aria-invalid":b.value,"aria-describedby":y.value},null,8,kJ),[[Xo,u.value]])])]),(ue(),en(YX,{key:f.value,"selected-source-indexes":h.value,"onUpdate:selectedSourceIndexes":A[6]||(A[6]=N=>h.value=N)},null,8,["selected-source-indexes"])),p.value?(ue(),Se("p",{key:0,id:"contribution-search-form-error",ref_key:"formErrorMessageRef",ref:m,class:"form-error",role:"alert",tabindex:"-1"},Xe(p.value),513)):_t("",!0)]),A[13]||(A[13]=W("footer",{class:"actions","aria-description":"form submit actions"},[W("button",{type:"submit","aria-label":"Search contributions"},"Search")],-1))],32)]))}}),[["styles",[".actions[data-v-708164d4]{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:1rem;padding-bottom:.25rem}.actions button[data-v-708164d4]{background:var(--color-primary-green);border:.0625rem solid var(--color-primary-green);border-radius:.375rem;color:var(--color-white);cursor:pointer;font-family:Poppins,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Arial,sans-serif;font-size:.875rem;height:2.25rem;min-width:5rem;padding:0 1rem}.actions button.secondary[data-v-708164d4]{background:var(--color-white);color:var(--color-primary-black)}.date-fieldset[data-v-708164d4]{min-width:0}.date-to[data-v-708164d4]{color:var(--color-primary-black);font-size:.875rem;margin:0;padding-bottom:.5rem}.dates-row[data-v-708164d4]{align-items:flex-end;display:flex;flex-wrap:wrap;gap:.75rem 1rem;margin-top:.75rem}.field[data-v-708164d4]{display:flex;flex-direction:column;gap:.35rem;margin-top:.75rem;min-width:0}.field input[data-v-708164d4],.field select[data-v-708164d4]{border:.0625rem solid var(--color-primary-grey);border-radius:.25rem;color:var(--color-primary-black);font-family:Poppins,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Arial,sans-serif;font-size:.9375rem;height:2.25rem;padding:0 .5rem}.field input[data-v-708164d4]:focus-visible,.field select[data-v-708164d4]:focus-visible{border-color:var(--color-primary-green)}.field input[aria-invalid=true][data-v-708164d4]{border-color:var(--color-red)}.field input[aria-invalid=true][data-v-708164d4]:focus-visible{border-color:var(--color-red)}.field select[data-v-708164d4]{background-color:var(--color-white)}.field-date[data-v-708164d4]{flex:0 1 auto;min-width:10rem}.field-error[data-v-708164d4]{color:var(--color-red);font-size:.8125rem;line-height:1.35;margin:0}.field-full[data-v-708164d4]{max-width:none;width:100%}.field-full input[data-v-708164d4],.field-full select[data-v-708164d4]{box-sizing:border-box;width:100%}.field-hint[data-v-708164d4]{color:var(--color-primary-black);font-size:.8125rem;line-height:1.35;margin:0;max-width:36rem}.field-label[data-v-708164d4]{color:var(--color-primary-black);font-size:.875rem;white-space:nowrap}.form-error[data-v-708164d4]{color:var(--color-red);font-size:.875rem;margin:.75rem 0 0}.req[data-v-708164d4]{color:var(--color-red);cursor:help;text-decoration:none}.search-fieldset>.field[data-v-708164d4]:first-of-type{margin-top:0}.search-form .dates-legend[data-v-708164d4]{color:var(--color-primary-black);font-size:.875rem;font-weight:600;margin:0;padding:0}.search-form fieldset[data-v-708164d4]{border:none;margin:0;padding:0}.search-form legend[data-v-708164d4]{font-weight:600;padding:0 .35rem}.search-form legend.visually-hidden[data-v-708164d4]{border:0;clip-path:inset(50%);height:.0625rem;margin:-.0625rem;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:.0625rem}.search-layout[data-v-708164d4]{display:flex;flex-direction:column;gap:1.25rem;min-height:0}"]],["__scopeId","data-v-708164d4"]]);var LJ=Object.defineProperty,_J=(e,t,n)=>t in e?LJ(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,la=(e,t,n)=>_J(e,typeof t!="symbol"?t+"":t,n);const TD=class lI{static getComponentDefinition(t,n){let i;return typeof t=="string"?i=this.searchForComponentInstance(n,t):i={extends:xt({...t})},i||gt(114,{component:t}),i.extends?(i.extends.setup&&(i.setup=i.extends.setup),i.extends.props=this.addParamsToProps(i.extends.props)):i.props=this.addParamsToProps(i.props),i}static addParamsToProps(t){return!t||Array.isArray(t)&&t.indexOf("params")===-1?t=["params",...t||[]]:typeof t=="object"&&!t.params&&(t.params={type:Object}),t}static createAndMountComponent(t,n,i,o){const r=lI.getComponentDefinition(t,i);if(!r)return;const{vNode:s,destroy:a,el:l}=this.mount(r,{params:Object.freeze(n)},i,o||{});return{componentInstance:s.component.proxy,element:l,destroy:a}}static mount(t,n,i,o){let r=rt(t,n);r.appContext={...i.appContext,provides:o};let s=document.createDocumentFragment();return sg(r,s),{vNode:r,destroy:()=>{s&&sg(null,s),s=null,r=null},el:s}}static searchForComponentInstance(t,n,i=10,o=!1){let r=this.componentCache.get(t);if(r){const u=r.get(n);if(u!==void 0)return u}let s=null,a=0,l=t.parent;for(;!s&&l&&l.components&&++a<i;)l.components&&l.components[n]&&(s=l.components[n]),l=l.parent;for(a=0,l=t.parent;!s&&l&&l.$options&&++a<i;){const u=l;u.$options&&u.$options.components&&u.$options.components[n]?s=u.$options.components[n]:u[n]&&(s=u[n]),l=l.parent}for(a=0,l=t.parent;!s&&l&&++a<i;){if(l.exposed){const u=l;u.exposed&&u.exposed[n]?s=u.exposed[n]:u[n]&&(s=u[n])}l=l.parent}if(!s){const u=t.appContext.components;u&&u[n]&&(s=u[n])}return!s&&!o?(gt(114,{component:n}),null):(s&&(r||(r=new Map,this.componentCache.set(t,r)),r.set(n,s)),s)}};la(TD,"componentCache",new WeakMap);let rw=TD;class OJ extends D9{constructor(t,n){super(),la(this,"parent"),la(this,"provides"),this.parent=t,this.provides=n}createWrapper(t){const n=this;class i extends NJ{init(s){super.init(s)}hasMethod(s){var a,l;const u=o.getFrameworkComponentInstance();return u[s]?!0:((a=u.$.exposed)==null?void 0:a[s])!=null||((l=u.exposed)==null?void 0:l[s])!=null||u.$.setupState[s]!=null}callMethod(s,a){var l,u;const h=this.getFrameworkComponentInstance(),f=o.getFrameworkComponentInstance();if(f[s])return f[s].apply(h,a);{const p=((l=h.$.exposed)==null?void 0:l[s])||((u=h.exposed)==null?void 0:u[s])||h.$.setupState[s];return p?.apply(h,a)}}addMethod(s,a){o[s]=a}processMethod(s,a){return s==="refresh"&&(this.getFrameworkComponentInstance().params=Object.freeze(a[0])),this.hasMethod(s)?this.callMethod(s,a):s==="refresh"}createComponent(s){return n.createComponent(t,s)}}const o=new i;return o}createComponent(t,n){return rw.createAndMountComponent(t,n,this.parent,this.provides)}createMethodProxy(t,n,i){return function(){return t.hasMethod(n)?t.callMethod(n,arguments):(i&&se(233,{methodName:n}),null)}}destroy(){this.parent=null}}class NJ{constructor(){la(this,"componentInstance"),la(this,"element"),la(this,"unmount")}getGui(){return this.element}destroy(){var t;this.getFrameworkComponentInstance()&&typeof this.getFrameworkComponentInstance().destroy=="function"&&this.getFrameworkComponentInstance().destroy(),(t=this.unmount)==null||t.call(this)}getFrameworkComponentInstance(){return this.componentInstance}init(t){const{componentInstance:n,element:i,destroy:o}=this.createComponent(t);this.componentInstance=n,this.unmount=o,this.element=i.firstElementChild??i}}class BJ extends YF{constructor(t){super("vue"),la(this,"parent"),this.parent=t}frameworkComponent(t,n){let i=rw.searchForComponentInstance(this.parent,t,10,!0)?t:null;if(!i&&n&&n[t]){const o=n[t];i=rw.searchForComponentInstance(this.parent,o,10,!0)?o:null}return i}isFrameworkComponent(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}}function GJ(){return{gridOptions:{},modules:[],statusBar:void 0,sideBar:void 0,suppressContextMenu:void 0,preventDefaultOnContextMenu:void 0,allowContextMenuWithControlKey:void 0,columnMenu:void 0,suppressMenuHide:void 0,enableBrowserTooltips:void 0,tooltipTrigger:void 0,tooltipShowDelay:void 0,tooltipSwitchShowDelay:void 0,tooltipHideDelay:void 0,tooltipMouseTrack:void 0,tooltipShowMode:void 0,tooltipInteraction:void 0,popupParent:void 0,copyHeadersToClipboard:void 0,copyGroupHeadersToClipboard:void 0,clipboardDelimiter:void 0,suppressCopyRowsToClipboard:void 0,suppressCopySingleCellRanges:void 0,suppressLastEmptyLineOnPaste:void 0,suppressClipboardPaste:void 0,suppressClipboardApi:void 0,suppressCutToClipboard:void 0,columnDefs:void 0,defaultColDef:void 0,defaultColGroupDef:void 0,columnTypes:void 0,dataTypeDefinitions:void 0,maintainColumnOrder:void 0,enableStrictPivotColumnOrder:void 0,suppressFieldDotNotation:void 0,headerHeight:void 0,groupHeaderHeight:void 0,floatingFiltersHeight:void 0,pivotHeaderHeight:void 0,pivotGroupHeaderHeight:void 0,hidePaddedHeaderRows:void 0,allowDragFromColumnsToolPanel:void 0,suppressMovableColumns:void 0,suppressColumnMoveAnimation:void 0,suppressMoveWhenColumnDragging:void 0,suppressDragLeaveHidesColumns:void 0,suppressGroupChangesColumnVisibility:void 0,suppressMakeColumnVisibleAfterUnGroup:void 0,suppressRowGroupHidesColumns:void 0,colResizeDefault:void 0,suppressAutoSize:void 0,autoSizePadding:void 0,skipHeaderOnAutoSize:void 0,autoSizeStrategy:void 0,animateColumnResizing:void 0,components:void 0,editType:void 0,suppressStartEditOnTab:void 0,getFullRowEditValidationErrors:void 0,invalidEditValueMode:void 0,singleClickEdit:void 0,suppressClickEdit:void 0,readOnlyEdit:void 0,stopEditingWhenCellsLoseFocus:void 0,enterNavigatesVertically:void 0,enterNavigatesVerticallyAfterEdit:void 0,enableCellEditingOnBackspace:void 0,undoRedoCellEditing:void 0,undoRedoCellEditingLimit:void 0,defaultCsvExportParams:void 0,suppressCsvExport:void 0,defaultExcelExportParams:void 0,suppressExcelExport:void 0,excelStyles:void 0,findSearchValue:void 0,findOptions:void 0,quickFilterText:void 0,cacheQuickFilter:void 0,includeHiddenColumnsInQuickFilter:void 0,quickFilterParser:void 0,quickFilterMatcher:void 0,applyQuickFilterBeforePivotOrAgg:void 0,excludeChildrenWhenTreeDataFiltering:void 0,enableAdvancedFilter:void 0,alwaysPassFilter:void 0,includeHiddenColumnsInAdvancedFilter:void 0,advancedFilterParent:void 0,advancedFilterBuilderParams:void 0,advancedFilterParams:void 0,suppressAdvancedFilterEval:void 0,suppressSetFilterByDefault:void 0,enableFilterHandlers:void 0,filterHandlers:void 0,enableCharts:void 0,chartThemes:void 0,customChartThemes:void 0,chartThemeOverrides:void 0,chartToolPanelsDef:void 0,chartMenuItems:void 0,loadingCellRenderer:void 0,loadingCellRendererParams:void 0,loadingCellRendererSelector:void 0,localeText:void 0,masterDetail:void 0,keepDetailRows:void 0,keepDetailRowsCount:void 0,detailCellRenderer:void 0,detailCellRendererParams:void 0,detailRowHeight:void 0,detailRowAutoHeight:void 0,context:void 0,alignedGrids:void 0,tabIndex:void 0,rowBuffer:void 0,valueCache:void 0,valueCacheNeverExpires:void 0,enableCellExpressions:void 0,suppressTouch:void 0,suppressFocusAfterRefresh:void 0,suppressBrowserResizeObserver:void 0,suppressPropertyNamesCheck:void 0,suppressChangeDetection:void 0,debug:void 0,loading:void 0,overlayLoadingTemplate:void 0,loadingOverlayComponent:void 0,loadingOverlayComponentParams:void 0,suppressLoadingOverlay:void 0,overlayNoRowsTemplate:void 0,noRowsOverlayComponent:void 0,noRowsOverlayComponentParams:void 0,suppressNoRowsOverlay:void 0,suppressOverlays:void 0,overlayComponent:void 0,overlayComponentParams:void 0,overlayComponentSelector:void 0,activeOverlay:void 0,activeOverlayParams:void 0,pagination:void 0,paginationPageSize:void 0,paginationPageSizeSelector:void 0,paginationAutoPageSize:void 0,paginateChildRows:void 0,suppressPaginationPanel:void 0,pivotMode:void 0,pivotPanelShow:void 0,pivotMaxGeneratedColumns:void 0,pivotDefaultExpanded:void 0,pivotColumnGroupTotals:void 0,pivotRowTotals:void 0,pivotSuppressAutoColumn:void 0,suppressExpandablePivotGroups:void 0,functionsReadOnly:void 0,aggFuncs:void 0,formulaDataSource:void 0,formulaFuncs:void 0,suppressAggFuncInHeader:void 0,alwaysAggregateAtRootLevel:void 0,aggregateOnlyChangedColumns:void 0,suppressAggFilteredOnly:void 0,removePivotHeaderRowWhenSingleValueColumn:void 0,animateRows:void 0,cellFlashDuration:void 0,cellFadeDuration:void 0,allowShowChangeAfterFilter:void 0,domLayout:void 0,ensureDomOrder:void 0,enableCellSpan:void 0,enableRtl:void 0,suppressColumnVirtualisation:void 0,suppressMaxRenderedRowRestriction:void 0,suppressRowVirtualisation:void 0,rowDragManaged:void 0,refreshAfterGroupEdit:void 0,rowDragInsertDelay:void 0,suppressRowDrag:void 0,suppressMoveWhenRowDragging:void 0,rowDragEntireRow:void 0,rowDragMultiRow:void 0,rowDragText:void 0,dragAndDropImageComponent:void 0,dragAndDropImageComponentParams:void 0,fullWidthCellRenderer:void 0,fullWidthCellRendererParams:void 0,embedFullWidthRows:void 0,groupDisplayType:void 0,groupDefaultExpanded:void 0,autoGroupColumnDef:void 0,groupMaintainOrder:void 0,groupSelectsChildren:void 0,groupLockGroupColumns:void 0,groupAggFiltering:void 0,groupTotalRow:void 0,grandTotalRow:void 0,suppressStickyTotalRow:void 0,groupSuppressBlankHeader:void 0,groupSelectsFiltered:void 0,showOpenedGroup:void 0,groupHideParentOfSingleChild:void 0,groupRemoveSingleChildren:void 0,groupRemoveLowestSingleChildren:void 0,groupHideOpenParents:void 0,groupHideColumnsUntilExpanded:void 0,groupAllowUnbalanced:void 0,rowGroupPanelShow:void 0,groupRowRenderer:void 0,groupRowRendererParams:void 0,treeData:void 0,treeDataChildrenField:void 0,treeDataParentIdField:void 0,rowGroupPanelSuppressSort:void 0,suppressGroupRowsSticky:void 0,groupHierarchyConfig:void 0,pinnedTopRowData:void 0,pinnedBottomRowData:void 0,enableRowPinning:void 0,isRowPinnable:void 0,isRowPinned:void 0,rowModelType:void 0,rowData:void 0,asyncTransactionWaitMillis:void 0,suppressModelUpdateAfterUpdateTransaction:void 0,datasource:void 0,cacheOverflowSize:void 0,infiniteInitialRowCount:void 0,serverSideInitialRowCount:void 0,suppressServerSideFullWidthLoadingRow:void 0,cacheBlockSize:void 0,maxBlocksInCache:void 0,maxConcurrentDatasourceRequests:void 0,blockLoadDebounceMillis:void 0,purgeClosedRowNodes:void 0,serverSideDatasource:void 0,serverSideSortAllLevels:void 0,serverSideEnableClientSideSort:void 0,serverSideOnlyRefreshFilteredGroups:void 0,serverSidePivotResultFieldSeparator:void 0,viewportDatasource:void 0,viewportRowModelPageSize:void 0,viewportRowModelBufferSize:void 0,alwaysShowHorizontalScroll:void 0,alwaysShowVerticalScroll:void 0,debounceVerticalScrollbar:void 0,suppressHorizontalScroll:void 0,suppressScrollOnNewData:void 0,suppressScrollWhenPopupsAreOpen:void 0,suppressAnimationFrame:void 0,suppressMiddleClickScrolls:void 0,suppressPreventDefaultOnMouseWheel:void 0,scrollbarWidth:void 0,rowSelection:void 0,cellSelection:void 0,rowMultiSelectWithClick:void 0,suppressRowDeselection:void 0,suppressRowClickSelection:void 0,suppressCellFocus:void 0,suppressHeaderFocus:void 0,selectionColumnDef:void 0,rowNumbers:void 0,suppressMultiRangeSelection:void 0,enableCellTextSelection:void 0,enableRangeSelection:void 0,enableRangeHandle:void 0,enableFillHandle:void 0,fillHandleDirection:void 0,suppressClearOnFillReduction:void 0,sortingOrder:void 0,accentedSort:void 0,unSortIcon:void 0,suppressMultiSort:void 0,alwaysMultiSort:void 0,multiSortKey:void 0,suppressMaintainUnsortedOrder:void 0,icons:void 0,rowHeight:void 0,rowStyle:void 0,rowClass:void 0,rowClassRules:void 0,suppressRowHoverHighlight:void 0,suppressRowTransform:void 0,columnHoverHighlight:void 0,gridId:void 0,deltaSort:void 0,treeDataDisplayType:void 0,enableGroupEdit:void 0,initialState:void 0,theme:void 0,loadThemeGoogleFonts:void 0,themeCssLayer:void 0,styleNonce:void 0,themeStyleContainer:void 0,getContextMenuItems:void 0,getMainMenuItems:void 0,postProcessPopup:void 0,processUnpinnedColumns:void 0,processCellForClipboard:void 0,processHeaderForClipboard:void 0,processGroupHeaderForClipboard:void 0,processCellFromClipboard:void 0,sendToClipboard:void 0,processDataFromClipboard:void 0,isExternalFilterPresent:void 0,doesExternalFilterPass:void 0,getChartToolbarItems:void 0,createChartContainer:void 0,focusGridInnerElement:void 0,navigateToNextHeader:void 0,tabToNextHeader:void 0,navigateToNextCell:void 0,tabToNextCell:void 0,tabToNextGridContainer:void 0,getLocaleText:void 0,getDocument:void 0,paginationNumberFormatter:void 0,getGroupRowAgg:void 0,isGroupOpenByDefault:void 0,ssrmExpandAllAffectsAllRows:void 0,initialGroupOrderComparator:void 0,processPivotResultColDef:void 0,processPivotResultColGroupDef:void 0,getDataPath:void 0,getChildCount:void 0,getServerSideGroupLevelParams:void 0,isServerSideGroupOpenByDefault:void 0,isApplyServerSideTransaction:void 0,isServerSideGroup:void 0,getServerSideGroupKey:void 0,getBusinessKeyForNode:void 0,getRowId:void 0,resetRowDataOnUpdate:void 0,processRowPostCreate:void 0,isRowSelectable:void 0,isRowMaster:void 0,fillOperation:void 0,postSortRows:void 0,getRowStyle:void 0,getRowClass:void 0,getRowHeight:void 0,isFullWidthRow:void 0,isRowValidDropPosition:void 0,"onColumn-everything-changed":void 0,"onNew-columns-loaded":void 0,"onColumn-pivot-mode-changed":void 0,"onPivot-max-columns-exceeded":void 0,"onColumn-row-group-changed":void 0,"onExpand-or-collapse-all":void 0,"onColumn-pivot-changed":void 0,"onGrid-columns-changed":void 0,"onColumn-value-changed":void 0,"onColumn-moved":void 0,"onColumn-visible":void 0,"onColumn-pinned":void 0,"onColumn-group-opened":void 0,"onColumn-resized":void 0,"onDisplayed-columns-changed":void 0,"onVirtual-columns-changed":void 0,"onColumn-header-mouse-over":void 0,"onColumn-header-mouse-leave":void 0,"onColumn-header-clicked":void 0,"onColumn-header-context-menu":void 0,"onAsync-transactions-flushed":void 0,"onRow-group-opened":void 0,"onRow-data-updated":void 0,"onPinned-row-data-changed":void 0,"onPinned-rows-changed":void 0,"onRange-selection-changed":void 0,"onCell-selection-changed":void 0,"onChart-created":void 0,"onChart-range-selection-changed":void 0,"onChart-options-changed":void 0,"onChart-destroyed":void 0,"onTool-panel-visible-changed":void 0,"onTool-panel-size-changed":void 0,"onModel-updated":void 0,"onCut-start":void 0,"onCut-end":void 0,"onPaste-start":void 0,"onPaste-end":void 0,"onFill-start":void 0,"onFill-end":void 0,"onCell-selection-delete-start":void 0,"onCell-selection-delete-end":void 0,"onRange-delete-start":void 0,"onRange-delete-end":void 0,"onUndo-started":void 0,"onUndo-ended":void 0,"onRedo-started":void 0,"onRedo-ended":void 0,"onCell-clicked":void 0,"onCell-double-clicked":void 0,"onCell-mouse-down":void 0,"onCell-context-menu":void 0,"onCell-value-changed":void 0,"onCell-edit-request":void 0,"onRow-value-changed":void 0,"onHeader-focused":void 0,"onCell-focused":void 0,"onRow-selected":void 0,"onSelection-changed":void 0,"onTooltip-show":void 0,"onTooltip-hide":void 0,"onCell-key-down":void 0,"onCell-mouse-over":void 0,"onCell-mouse-out":void 0,"onFilter-changed":void 0,"onFilter-modified":void 0,"onFilter-ui-changed":void 0,"onFilter-opened":void 0,"onFloating-filter-ui-changed":void 0,"onAdvanced-filter-builder-visible-changed":void 0,"onSort-changed":void 0,"onVirtual-row-removed":void 0,"onRow-clicked":void 0,"onRow-double-clicked":void 0,"onGrid-ready":void 0,"onGrid-pre-destroyed":void 0,"onGrid-size-changed":void 0,"onViewport-changed":void 0,"onFirst-data-rendered":void 0,"onDrag-started":void 0,"onDrag-stopped":void 0,"onDrag-cancelled":void 0,"onRow-editing-started":void 0,"onRow-editing-stopped":void 0,"onCell-editing-started":void 0,"onCell-editing-stopped":void 0,"onBody-scroll":void 0,"onBody-scroll-end":void 0,"onPagination-changed":void 0,"onComponent-state-changed":void 0,"onStore-refreshed":void 0,"onState-updated":void 0,"onColumn-menu-visible-changed":void 0,"onContext-menu-visible-changed":void 0,"onRow-drag-enter":void 0,"onRow-drag-move":void 0,"onRow-drag-leave":void 0,"onRow-drag-end":void 0,"onRow-drag-cancel":void 0,"onFind-changed":void 0,"onRow-resize-started":void 0,"onRow-resize-ended":void 0,"onColumns-reset":void 0,"onBulk-editing-started":void 0,"onBulk-editing-stopped":void 0,"onBatch-editing-started":void 0,"onBatch-editing-stopped":void 0}}const HJ=(e,t)=>{let n;const i=()=>{window.clearTimeout(n),n=window.setTimeout(e,t)};return i.cancel=()=>{window.clearTimeout(n)},i};function VJ(e){if(!e||typeof e!="object"||Array.isArray(e))return!1;const t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype}function yu(e){if(e==null||typeof e!="object")return e;const t=new WeakSet,n=i=>{if(i==null||typeof i!="object")return i;if(qt(i))return n(i.value);if(zo(i)||Fa(i))return n(ut(i));if(VJ(i))return ut(i);if(Array.isArray(i)){let s=!1;for(let a=0;a<i.length;a++){const l=i[a];if(l!==null&&typeof l=="object"){if(qt(l)||zo(l)||Fa(l)){s=!0;break}s=!0;break}}return s?i.map(a=>n(a)):i}if(t.has(i))return i;t.add(i);const o=Object.keys(i),r={};for(let s=0;s<o.length;s++)r[o[s]]=n(i[o[s]]);return r};return n(e)}const WJ={ref:"root"},zJ=xt({__name:"AgGridVue",props:jl(kM({gridOptions:{},modules:{},statusBar:{},sideBar:{type:[Object,String,Array,Boolean,null]},suppressContextMenu:{type:Boolean},preventDefaultOnContextMenu:{type:Boolean},allowContextMenuWithControlKey:{type:Boolean},columnMenu:{},suppressMenuHide:{type:Boolean},enableBrowserTooltips:{type:Boolean},tooltipTrigger:{},tooltipShowDelay:{},tooltipSwitchShowDelay:{},tooltipHideDelay:{},tooltipMouseTrack:{type:Boolean},tooltipShowMode:{},tooltipInteraction:{type:Boolean},popupParent:{},copyHeadersToClipboard:{type:Boolean},copyGroupHeadersToClipboard:{type:Boolean},clipboardDelimiter:{},suppressCopyRowsToClipboard:{type:Boolean},suppressCopySingleCellRanges:{type:Boolean},suppressLastEmptyLineOnPaste:{type:Boolean},suppressClipboardPaste:{type:Boolean},suppressClipboardApi:{type:Boolean},suppressCutToClipboard:{type:Boolean},columnDefs:{},defaultColDef:{},defaultColGroupDef:{},columnTypes:{},dataTypeDefinitions:{},maintainColumnOrder:{type:Boolean},enableStrictPivotColumnOrder:{type:Boolean},suppressFieldDotNotation:{type:Boolean},headerHeight:{},groupHeaderHeight:{},floatingFiltersHeight:{},pivotHeaderHeight:{},pivotGroupHeaderHeight:{},hidePaddedHeaderRows:{type:Boolean},allowDragFromColumnsToolPanel:{type:Boolean},suppressMovableColumns:{type:Boolean},suppressColumnMoveAnimation:{type:Boolean},suppressMoveWhenColumnDragging:{type:Boolean},suppressDragLeaveHidesColumns:{type:Boolean},suppressGroupChangesColumnVisibility:{type:[Boolean,String]},suppressMakeColumnVisibleAfterUnGroup:{type:Boolean},suppressRowGroupHidesColumns:{type:Boolean},colResizeDefault:{},suppressAutoSize:{type:Boolean},autoSizePadding:{},skipHeaderOnAutoSize:{type:Boolean},autoSizeStrategy:{},animateColumnResizing:{type:Boolean},components:{},editType:{},suppressStartEditOnTab:{type:Boolean},getFullRowEditValidationErrors:{type:Function},invalidEditValueMode:{},singleClickEdit:{type:Boolean},suppressClickEdit:{type:Boolean},readOnlyEdit:{type:Boolean},stopEditingWhenCellsLoseFocus:{type:Boolean},enterNavigatesVertically:{type:Boolean},enterNavigatesVerticallyAfterEdit:{type:Boolean},enableCellEditingOnBackspace:{type:Boolean},undoRedoCellEditing:{type:Boolean},undoRedoCellEditingLimit:{},defaultCsvExportParams:{},suppressCsvExport:{type:Boolean},defaultExcelExportParams:{},suppressExcelExport:{type:Boolean},excelStyles:{},findSearchValue:{},findOptions:{},quickFilterText:{},cacheQuickFilter:{type:Boolean},includeHiddenColumnsInQuickFilter:{type:Boolean},quickFilterParser:{type:Function},quickFilterMatcher:{type:Function},applyQuickFilterBeforePivotOrAgg:{type:Boolean},excludeChildrenWhenTreeDataFiltering:{type:Boolean},enableAdvancedFilter:{type:Boolean},alwaysPassFilter:{type:Function},includeHiddenColumnsInAdvancedFilter:{type:Boolean},advancedFilterParent:{},advancedFilterBuilderParams:{},advancedFilterParams:{},suppressAdvancedFilterEval:{type:Boolean},suppressSetFilterByDefault:{type:Boolean},enableFilterHandlers:{type:Boolean},filterHandlers:{},enableCharts:{type:Boolean},chartThemes:{},customChartThemes:{},chartThemeOverrides:{},chartToolPanelsDef:{},chartMenuItems:{type:[Array,Function]},loadingCellRenderer:{},loadingCellRendererParams:{},loadingCellRendererSelector:{type:Function},localeText:{},masterDetail:{type:Boolean},keepDetailRows:{type:Boolean},keepDetailRowsCount:{},detailCellRenderer:{},detailCellRendererParams:{},detailRowHeight:{},detailRowAutoHeight:{type:Boolean},context:{},alignedGrids:{type:[Array,Function]},tabIndex:{},rowBuffer:{},valueCache:{type:Boolean},valueCacheNeverExpires:{type:Boolean},enableCellExpressions:{type:Boolean},suppressTouch:{type:Boolean},suppressFocusAfterRefresh:{type:Boolean},suppressBrowserResizeObserver:{type:Boolean},suppressPropertyNamesCheck:{type:Boolean},suppressChangeDetection:{type:Boolean},debug:{type:Boolean},loading:{type:Boolean},overlayLoadingTemplate:{},loadingOverlayComponent:{},loadingOverlayComponentParams:{},suppressLoadingOverlay:{type:Boolean},overlayNoRowsTemplate:{},noRowsOverlayComponent:{},noRowsOverlayComponentParams:{},suppressNoRowsOverlay:{type:Boolean},suppressOverlays:{},overlayComponent:{},overlayComponentParams:{},overlayComponentSelector:{type:Function},activeOverlay:{},activeOverlayParams:{},pagination:{type:Boolean},paginationPageSize:{},paginationPageSizeSelector:{type:[Array,Boolean]},paginationAutoPageSize:{type:Boolean},paginateChildRows:{type:Boolean},suppressPaginationPanel:{type:Boolean},pivotMode:{type:Boolean},pivotPanelShow:{},pivotMaxGeneratedColumns:{},pivotDefaultExpanded:{},pivotColumnGroupTotals:{},pivotRowTotals:{},pivotSuppressAutoColumn:{type:Boolean},suppressExpandablePivotGroups:{type:Boolean},functionsReadOnly:{type:Boolean},aggFuncs:{},formulaDataSource:{},formulaFuncs:{},suppressAggFuncInHeader:{type:Boolean},alwaysAggregateAtRootLevel:{type:Boolean},aggregateOnlyChangedColumns:{type:Boolean},suppressAggFilteredOnly:{type:Boolean},removePivotHeaderRowWhenSingleValueColumn:{type:Boolean},animateRows:{type:Boolean},cellFlashDuration:{},cellFadeDuration:{},allowShowChangeAfterFilter:{type:Boolean},domLayout:{},ensureDomOrder:{type:Boolean},enableCellSpan:{type:Boolean},enableRtl:{type:Boolean},suppressColumnVirtualisation:{type:Boolean},suppressMaxRenderedRowRestriction:{type:Boolean},suppressRowVirtualisation:{type:Boolean},rowDragManaged:{type:Boolean},refreshAfterGroupEdit:{type:Boolean},rowDragInsertDelay:{},suppressRowDrag:{type:Boolean},suppressMoveWhenRowDragging:{type:Boolean},rowDragEntireRow:{type:Boolean},rowDragMultiRow:{type:Boolean},rowDragText:{type:Function},dragAndDropImageComponent:{},dragAndDropImageComponentParams:{},fullWidthCellRenderer:{},fullWidthCellRendererParams:{},embedFullWidthRows:{type:Boolean},groupDisplayType:{},groupDefaultExpanded:{},autoGroupColumnDef:{},groupMaintainOrder:{type:Boolean},groupSelectsChildren:{type:Boolean},groupLockGroupColumns:{},groupAggFiltering:{type:[Boolean,Function]},groupTotalRow:{type:[String,Function]},grandTotalRow:{},suppressStickyTotalRow:{type:[Boolean,String]},groupSuppressBlankHeader:{type:Boolean},groupSelectsFiltered:{type:Boolean},showOpenedGroup:{type:Boolean},groupHideParentOfSingleChild:{type:[Boolean,String]},groupRemoveSingleChildren:{type:Boolean},groupRemoveLowestSingleChildren:{type:Boolean},groupHideOpenParents:{type:Boolean},groupHideColumnsUntilExpanded:{type:Boolean},groupAllowUnbalanced:{type:Boolean},rowGroupPanelShow:{},groupRowRenderer:{},groupRowRendererParams:{},treeData:{type:Boolean},treeDataChildrenField:{},treeDataParentIdField:{},rowGroupPanelSuppressSort:{type:Boolean},suppressGroupRowsSticky:{type:Boolean},groupHierarchyConfig:{},pinnedTopRowData:{},pinnedBottomRowData:{},enableRowPinning:{type:[Boolean,String]},isRowPinnable:{type:Function},isRowPinned:{type:Function},rowModelType:{},rowData:{},asyncTransactionWaitMillis:{},suppressModelUpdateAfterUpdateTransaction:{type:Boolean},datasource:{},cacheOverflowSize:{},infiniteInitialRowCount:{},serverSideInitialRowCount:{},suppressServerSideFullWidthLoadingRow:{type:Boolean},cacheBlockSize:{},maxBlocksInCache:{},maxConcurrentDatasourceRequests:{},blockLoadDebounceMillis:{},purgeClosedRowNodes:{type:Boolean},serverSideDatasource:{},serverSideSortAllLevels:{type:Boolean},serverSideEnableClientSideSort:{type:Boolean},serverSideOnlyRefreshFilteredGroups:{type:Boolean},serverSidePivotResultFieldSeparator:{},viewportDatasource:{},viewportRowModelPageSize:{},viewportRowModelBufferSize:{},alwaysShowHorizontalScroll:{type:Boolean},alwaysShowVerticalScroll:{type:Boolean},debounceVerticalScrollbar:{type:Boolean},suppressHorizontalScroll:{type:Boolean},suppressScrollOnNewData:{type:Boolean},suppressScrollWhenPopupsAreOpen:{type:Boolean},suppressAnimationFrame:{type:Boolean},suppressMiddleClickScrolls:{type:Boolean},suppressPreventDefaultOnMouseWheel:{type:Boolean},scrollbarWidth:{},rowSelection:{},cellSelection:{type:[Boolean,Object]},rowMultiSelectWithClick:{type:Boolean},suppressRowDeselection:{type:Boolean},suppressRowClickSelection:{type:Boolean},suppressCellFocus:{type:Boolean},suppressHeaderFocus:{type:Boolean},selectionColumnDef:{},rowNumbers:{type:[Boolean,Object]},suppressMultiRangeSelection:{type:Boolean},enableCellTextSelection:{type:Boolean},enableRangeSelection:{type:Boolean},enableRangeHandle:{type:Boolean},enableFillHandle:{type:Boolean},fillHandleDirection:{},suppressClearOnFillReduction:{type:Boolean},sortingOrder:{},accentedSort:{type:Boolean},unSortIcon:{type:Boolean},suppressMultiSort:{type:Boolean},alwaysMultiSort:{type:Boolean},multiSortKey:{},suppressMaintainUnsortedOrder:{type:Boolean},icons:{},rowHeight:{},rowStyle:{},rowClass:{},rowClassRules:{},suppressRowHoverHighlight:{type:Boolean},suppressRowTransform:{type:Boolean},columnHoverHighlight:{type:Boolean},gridId:{},deltaSort:{type:Boolean},treeDataDisplayType:{},enableGroupEdit:{type:Boolean},initialState:{},theme:{},loadThemeGoogleFonts:{type:Boolean},themeCssLayer:{},styleNonce:{},themeStyleContainer:{type:Function},getContextMenuItems:{type:Function},getMainMenuItems:{type:Function},postProcessPopup:{type:Function},processUnpinnedColumns:{type:Function},processCellForClipboard:{type:Function},processHeaderForClipboard:{type:Function},processGroupHeaderForClipboard:{type:Function},processCellFromClipboard:{type:Function},sendToClipboard:{type:Function},processDataFromClipboard:{type:Function},isExternalFilterPresent:{type:Function},doesExternalFilterPass:{type:Function},getChartToolbarItems:{type:Function},createChartContainer:{type:Function},focusGridInnerElement:{type:Function},navigateToNextHeader:{type:Function},tabToNextHeader:{type:Function},navigateToNextCell:{type:Function},tabToNextCell:{type:Function},tabToNextGridContainer:{type:Function},getLocaleText:{type:Function},getDocument:{type:Function},paginationNumberFormatter:{type:Function},getGroupRowAgg:{type:Function},isGroupOpenByDefault:{type:Function},ssrmExpandAllAffectsAllRows:{type:Boolean},initialGroupOrderComparator:{type:Function},processPivotResultColDef:{type:Function},processPivotResultColGroupDef:{type:Function},getDataPath:{type:Function},getChildCount:{type:Function},getServerSideGroupLevelParams:{type:Function},isServerSideGroupOpenByDefault:{type:Function},isApplyServerSideTransaction:{type:Function},isServerSideGroup:{type:Function},getServerSideGroupKey:{type:Function},getBusinessKeyForNode:{type:Function},getRowId:{type:Function},resetRowDataOnUpdate:{type:Boolean},processRowPostCreate:{type:Function},isRowSelectable:{type:Function},isRowMaster:{type:Function},fillOperation:{type:Function},postSortRows:{type:Function},getRowStyle:{type:Function},getRowClass:{type:Function},getRowHeight:{type:Function},isFullWidthRow:{type:Function},isRowValidDropPosition:{type:Function},"onTool-panel-visible-changed":{},"onTool-panel-size-changed":{},"onColumn-menu-visible-changed":{},"onContext-menu-visible-changed":{},"onCut-start":{},"onCut-end":{},"onPaste-start":{},"onPaste-end":{},"onColumn-visible":{},"onColumn-pinned":{},"onColumn-resized":{},"onColumn-moved":{},"onColumn-value-changed":{},"onColumn-pivot-mode-changed":{},"onColumn-pivot-changed":{},"onColumn-group-opened":{},"onNew-columns-loaded":{},"onGrid-columns-changed":{},"onDisplayed-columns-changed":{},"onVirtual-columns-changed":{},"onColumn-everything-changed":{},"onColumns-reset":{},"onColumn-header-mouse-over":{},"onColumn-header-mouse-leave":{},"onColumn-header-clicked":{},"onColumn-header-context-menu":{},"onComponent-state-changed":{},"onCell-value-changed":{},"onCell-edit-request":{},"onRow-value-changed":{},"onCell-editing-started":{},"onCell-editing-stopped":{},"onRow-editing-started":{},"onRow-editing-stopped":{},"onBulk-editing-started":{},"onBulk-editing-stopped":{},"onBatch-editing-started":{},"onBatch-editing-stopped":{},"onUndo-started":{},"onUndo-ended":{},"onRedo-started":{},"onRedo-ended":{},"onCell-selection-delete-start":{},"onCell-selection-delete-end":{},"onRange-delete-start":{},"onRange-delete-end":{},"onFill-start":{},"onFill-end":{},"onFilter-opened":{},"onFilter-changed":{},"onFilter-modified":{},"onFilter-ui-changed":{},"onFloating-filter-ui-changed":{},"onAdvanced-filter-builder-visible-changed":{},"onFind-changed":{},"onChart-created":{},"onChart-range-selection-changed":{},"onChart-options-changed":{},"onChart-destroyed":{},"onCell-key-down":{},"onGrid-ready":{},"onGrid-pre-destroyed":{},"onFirst-data-rendered":{},"onGrid-size-changed":{},"onModel-updated":{},"onVirtual-row-removed":{},"onViewport-changed":{},"onBody-scroll":{},"onBody-scroll-end":{},"onDrag-started":{},"onDrag-stopped":{},"onDrag-cancelled":{},"onState-updated":{},"onPagination-changed":{},"onRow-drag-enter":{},"onRow-drag-move":{},"onRow-drag-leave":{},"onRow-drag-end":{},"onRow-drag-cancel":{},"onRow-resize-started":{},"onRow-resize-ended":{},"onColumn-row-group-changed":{},"onRow-group-opened":{},"onExpand-or-collapse-all":{},"onPivot-max-columns-exceeded":{},"onPinned-row-data-changed":{},"onPinned-rows-changed":{},"onRow-data-updated":{},"onAsync-transactions-flushed":{},"onStore-refreshed":{},"onHeader-focused":{},"onCell-clicked":{},"onCell-double-clicked":{},"onCell-focused":{},"onCell-mouse-over":{},"onCell-mouse-out":{},"onCell-mouse-down":{},"onRow-clicked":{},"onRow-double-clicked":{},"onRow-selected":{},"onSelection-changed":{},"onCell-context-menu":{},"onRange-selection-changed":{},"onCell-selection-changed":{},"onTooltip-show":{},"onTooltip-hide":{},"onSort-changed":{}},GJ()),{modelValue:{},modelModifiers:{}}),emits:jl(["update:modelValue"],["update:modelValue"]),setup(e,{expose:t,emit:n}){const i=e,o=vM("root"),r=Co(void 0),s=Co(!1),a=Co(!1),l=Co(!1);let u={},h=!1;const f=jI(i),p=new Set(r5());Um().filter(L=>L!="gridOptions").forEach(L=>{const M=f[L];M&&vn(M,(I,O)=>{(L==="rowData"&&!b.value||L!=="rowData")&&N(L,I),L==="rowData"&&(b.value=!1)},p.has(L)?void 0:{deep:!0})});const m=new Set(["rowDataUpdated","cellValueChanged","rowValueChanged"]),v=Ma(e,"modelValue"),w=Co(!1),b=Co(!1),y=n;vn(v,(L,M)=>{s.value&&(b.value||(w.value=!0,N("rowData",yu(L),yu(M))),b.value=!1)},{deep:!0});const R=HJ(()=>{b.value=!0,y("update:modelValue",D())},10),S=qo(),x=L=>{var M,I;l.value&&m.has(L)&&(I=(M=S?.vnode)==null?void 0:M.props)!=null&&I["onUpdate:modelValue"]&&R()},P=()=>v.value||i.rowData||i.gridOptions.rowData,D=()=>{const L=[];return r?.value.forEachLeafNode(M=>{L.push(M.data)}),L},A=L=>M=>{if(a.value)return;M==="gridReady"&&(l.value=!0);const I=Mc.has(M);I&&!L||!I&&L||m.has(M)&&(!w.value&&s.value&&x(M),w.value=!1)},N=(L,M,I)=>{if(s.value){let O=M;L==="rowData"&&O!=null&&(O=yu(O)),u[L]=O,h||(h=!0,queueMicrotask(()=>{h=!1,!a.value&&r.value&&R_(u,r.value),u={}}))}},B=()=>Object.create(qo().provides);return Ss(()=>{Ga(ix,void 0,!0);const L=new OJ(qo(),B()),M={globalListener:A(),globalSyncListener:A(!0),frameworkOverrides:new BJ(qo()),providedBeanInstances:{frameworkCompWrapper:L},modules:i.modules},I=jb(S_(yu(i.gridOptions),i,[...Um(),...Object.values(mh)])),O=P();O!==void 0&&(w.value=!0,I.rowData=yu(O)),r.value=S3(o.value,I,M),s.value=!0}),ud(()=>{var L;s.value&&(R.cancel(),(L=r?.value)==null||L.destroy(),a.value=!0)}),t({api:r}),(L,M)=>(ue(),Se("div",WJ,null,512))}}),UJ={class:"ag-cf9a-filter","aria-description":"filter modal",role:"dialog"},$J={class:"ag-cf9a-title-row","aria-description":"container for title and close buttton"},jJ={class:"ag-cf9a-title"},KJ=["onKeydown"],qJ=["value"],QJ=["type","onKeydown"],YJ=["type","onKeydown"],ZJ={key:1,"aria-description":"container for condition 2 inputs"},XJ=["onKeydown"],JJ=["onKeydown"],eee=["value"],tee=["type","onKeydown"],Ut=zt(xt({__name:"BaseColumnFilter",props:{params:{type:Object}},setup(e){const t=be(null),n=be(""),i=be("equals"),o=be(""),r=be("equals"),s=be(""),a=be("AND"),l=Re(()=>e.params.filterKind??"text"),u=Re(()=>l.value==="number"?"number":l.value==="date"?"date":"text"),h=Re(()=>i.value==="inRange"&&l.value!=="text"),f=Re(()=>e.params.title??e.params.column?.getColDef().headerName??e.params.column?.getColDef().field??""),p=Re(()=>l.value==="text"?[{label:"is equal to",value:"equals"},{label:"is not equal to",value:"notEqual"},{label:"contains",value:"contains"},{label:"does not contain",value:"notContains"},{label:"begins with",value:"startsWith"},{label:"ends with",value:"endsWith"}]:[{label:"is equal to",value:"equals"},{label:"is not equal to",value:"notEqual"},{label:"is less than",value:"lessThan"},{label:"is greater than",value:"greaterThan"},{label:"is less than or equal to",value:"lessThanOrEqual"},{label:"is greater than or equal to",value:"greaterThanOrEqual"},{label:"is between",value:"inRange"}]),m=()=>{e.params.hidePopup?.(),e.params.api?.hidePopupMenu?.()},v=async()=>{await Dr(),t.value?.focus()},w=x=>{if(!x){a.value="AND",n.value="",i.value="equals",o.value="",r.value="equals",s.value="";return}if("condition1"in x){a.value=x.operator??"AND",n.value=String(x.condition1?.filterTo??x.condition1?.dateTo??""),i.value=x.condition1?.type??"equals",o.value=String(x.condition1?.filter??x.condition1?.dateFrom??""),r.value=x.condition2?.type??"equals",s.value=String(x.condition2?.filter??x.condition2?.dateFrom??"");return}n.value=String(x.filterTo??x.dateTo??""),i.value=x.type??"equals",o.value=String(x.filter??x.dateFrom??""),r.value="equals",s.value=""},b=(x,P,D="")=>{const A=Ee.isString(P)?P.trim():P,N=Ee.isString(D)?D.trim():D;return Ee.isNil(A)||Ee.isString(A)&&Ee.isEmpty(A)?null:l.value==="number"?x==="inRange"?Ee.isNil(N)?null:{filter:Number(A),filterTo:Number(N),filterType:"number",type:x}:{filter:Number(A),filterType:"number",type:x}:l.value==="date"?x==="inRange"?Ee.isNil(N)?null:{dateFrom:A,dateTo:N,filterType:"date",type:x}:{dateFrom:A,filterType:"date",type:x}:{filter:A,filterType:"text",type:x}},y=x=>{e.params.onStateChange?.({model:x}),e.params.onModelChange?.(x)},R=()=>{const x=b(i.value,o.value,n.value),P=b(r.value,s.value);if(!x&&!P){y(null),e.params.onAction?.("apply"),m();return}if(x&&P){y({condition1:x,condition2:P,filterType:l.value,operator:a.value}),e.params.onAction?.("apply"),m();return}if(i.value==="inRange"){x&&y({condition1:x,filterType:l.value,operator:a.value}),e.params.onAction?.("apply"),m();return}y(x??P),e.params.onAction?.("apply"),m()},S=()=>{w(null),y(null),e.params.onAction?.("clear"),m()};return vn(()=>e.params.model,x=>w(x),{immediate:!0}),Ss(()=>{v()}),(x,P)=>(ue(),Se("div",UJ,[W("div",$J,[W("header",jJ,[W("h3",null,Xe(f.value),1)]),W("button",{class:"ag-cf9a-close-button",onClick:m,"aria-label":"Close Filter"}," × ")]),P[7]||(P[7]=W("p",{class:"ag-cf9a-helper-text"}," Show items with value that ",-1)),nn(W("select",{"onUpdate:modelValue":P[0]||(P[0]=D=>i.value=D),class:"ag-cf9a-select",onKeydown:[Cn(Ot(m,["prevent","stop"]),["esc"]),Cn(Ot(R,["prevent","stop"]),["enter"])]},[(ue(!0),Se(vt,null,hi(p.value,D=>(ue(),Se("option",{key:D.value,value:D.value},Xe(D.label),9,qJ))),128))],40,KJ),[[ic,i.value]]),nn(W("input",{ref_key:"condition1Input",ref:t,"onUpdate:modelValue":P[1]||(P[1]=D=>o.value=D),class:"ag-cf9a-input",placeholder:"Enter value...",type:u.value,onKeydown:[Cn(Ot(m,["prevent","stop"]),["esc"]),Cn(Ot(R,["prevent","stop"]),["enter"])]},null,40,QJ),[[rg,o.value]]),h.value?nn((ue(),Se("input",{key:0,"onUpdate:modelValue":P[2]||(P[2]=D=>n.value=D),class:"ag-cf9a-input",placeholder:"Enter end value...",type:u.value,onKeydown:[Cn(Ot(m,["prevent","stop"]),["esc"]),Cn(Ot(R,["prevent","stop"]),["enter"])]},null,40,YJ)),[[rg,n.value]]):_t("",!0),h.value?_t("",!0):(ue(),Se("div",ZJ,[nn(W("select",{"onUpdate:modelValue":P[3]||(P[3]=D=>a.value=D),class:"ag-cf9a-select",onKeydown:[Cn(Ot(m,["prevent","stop"]),["esc"]),Cn(Ot(R,["prevent","stop"]),["enter"])]},[...P[6]||(P[6]=[W("option",{value:"AND"},"And",-1),W("option",{value:"OR"},"Or",-1)])],40,XJ),[[ic,a.value]]),nn(W("select",{"onUpdate:modelValue":P[4]||(P[4]=D=>r.value=D),class:"ag-cf9a-select",onKeydown:[Cn(Ot(m,["prevent","stop"]),["esc"]),Cn(Ot(R,["prevent","stop"]),["enter"])]},[(ue(!0),Se(vt,null,hi(p.value,D=>(ue(),Se("option",{key:D.value,value:D.value},Xe(D.label),9,eee))),128))],40,JJ),[[ic,r.value]]),nn(W("input",{"onUpdate:modelValue":P[5]||(P[5]=D=>s.value=D),class:"ag-cf9a-input",placeholder:"Enter value...",type:u.value,onKeydown:[Cn(Ot(m,["prevent","stop"]),["esc"]),Cn(Ot(R,["prevent","stop"]),["enter"])]},null,40,tee),[[rg,s.value]])])),W("div",{class:"ag-cf9a-actions","aria-description":"container for buttons"},[W("button",{class:"ag-cf9a-button ag-cf9a-button-secondary",onClick:S}," Clear "),W("button",{class:"ag-cf9a-button ag-cf9a-button-primary",onClick:R}," Filter ")])]))}}),[["styles",[".ag-cf9a-actions{display:flex;gap:.625rem;padding-top:.25rem;width:100%}.ag-cf9a-button{border-radius:.25rem;cursor:pointer;flex:1;font-family:inherit;height:2.125rem}.ag-cf9a-button-primary{background:var(--color-primary-green);border:.0625rem solid var(--color-primary-green);color:var(--color-white);font-weight:600}.ag-cf9a-button-secondary{background:var(--color-white);border:.0625rem solid var(--color-secondary-grey);color:var(--color-primary-black);font-weight:600}.ag-cf9a-close-button{align-items:center;background:transparent;border:0;color:var(--color-primary-black);cursor:pointer;display:flex;font-family:inherit;font-size:1rem;font-weight:700;height:1.5rem;justify-content:center;padding:0;transition:color .2s ease;width:1.5rem}.ag-cf9a-close-button:hover{color:var(--color-primary-green)}.ag-cf9a-currency-cell{font-weight:600}.ag-cf9a-filter{background:var(--color-white);border:.0625rem solid var(--color-primary-green);border-radius:.25rem;box-shadow:0 .125rem .5rem #0000001f;box-sizing:border-box;display:flex;flex-direction:column;font-family:Poppins,sans-serif;padding:.75rem;width:21.25rem}.ag-cf9a-helper-text{color:var(--color-primary-black);font-size:.75rem;margin-bottom:.625rem}.ag-cf9a-input,.ag-cf9a-select{border:.0625rem solid var(--color-secondary-grey);border-radius:.25rem;box-sizing:border-box;display:block;font-family:inherit;height:2.125rem;margin-bottom:.625rem;padding:0 .625rem;width:100%}.ag-cf9a-input::placeholder{color:var(--color-primary-black);opacity:.5}.ag-cf9a-title{color:var(--color-primary-black);font-size:.875rem;font-weight:600}.ag-cf9a-title h3{margin:0}.ag-cf9a-title-row{align-items:center;border-bottom:.0625rem solid var(--color-primary-grey);display:flex;justify-content:space-between;margin-bottom:.75rem;padding-bottom:.5rem}"]]]),If={filterKind:"date"},AD={filterKind:"number"},xn={filterKind:"text"},ID=e=>{if(Ee.isNil(e))return"";const t=Number(e);return Number.isNaN(t)?"":t.toLocaleString("en-US",{currency:"USD",style:"currency"})},MD=e=>{if(Ee.isNil(e)||Ee.isEmpty(e))return"";const t=new Date(e);return Number.isNaN(t.getTime())?"":t.toLocaleDateString("en-CA")},sw=[{headerName:"Details",field:"id",sortable:!1,filter:!1,resizable:!0,width:120,suppressHeaderMenuButton:!0,cellRenderer:e=>{const t=e.data?.id;return t?`<a id="contribution-details-link-${t}" class="contribution-details-link" style="color:var(--color-primary-green)" href="/pcv/contribution/${t}">View</a>`:""}},{field:"contributor",headerName:"Contributor",filter:{component:Ut,doesFilterPass:()=>!0},filterParams:xn},{field:"employer",headerName:"Employer",filter:{component:Ut,doesFilterPass:()=>!0},filterParams:xn},{field:"employeeStatus",headerName:"Employee Status",filter:{component:Ut,doesFilterPass:()=>!0},filterParams:xn},{field:"occupation",headerName:"Occupation",filter:{component:Ut,doesFilterPass:()=>!0},filterParams:xn},{field:"address",headerName:"Address",filter:{component:Ut,doesFilterPass:()=>!0},filterParams:xn},{field:"state",headerName:"State",filter:{component:Ut,doesFilterPass:()=>!0},filterParams:xn},{field:"zipCode",headerName:"Zip Code",filter:{component:Ut,doesFilterPass:()=>!0},filterParams:xn},{field:"date",headerName:"Date",filter:{component:Ut,doesFilterPass:()=>!0},filterParams:If},{field:"dateDetected",headerName:"Date Detected",filter:{component:Ut,doesFilterPass:()=>!0},filterParams:If,valueFormatter:e=>MD(e.value)},{field:"amount",headerName:"Amount",filter:{component:Ut,doesFilterPass:()=>!0},filterParams:AD,valueFormatter:e=>ID(e.value),cellClass:"ag-cf9a-currency-cell"},{field:"recipient",headerName:"Recipient",filter:{component:Ut,doesFilterPass:()=>!0},filterParams:xn},{field:"status",headerName:"Status",filter:{component:Ut,doesFilterPass:()=>!0},filterParams:xn},{field:"reconciliationStatus",headerName:"Reconciliation Status",filter:{component:Ut,doesFilterPass:()=>!0},filterParams:xn},{field:"preclearance",headerName:"Preclearance",filter:{component:Ut,doesFilterPass:()=>!0},filterParams:xn,cellRenderer:e=>{const t=e.data?.preclearance;return t?`<a id="contribution-preclearance-link-${t}" class="contribution-preclearance-link" style="color:var(--color-primary-green)" href="/preclearance/${t}">${t}</a>`:""}},{field:"approvalDate",headerName:"Approval Date",filter:{component:Ut,doesFilterPass:()=>!0},filterParams:If},{field:"approvedAmount",headerName:"Approved Amount",filter:{component:Ut,doesFilterPass:()=>!0},filterParams:AD,valueFormatter:e=>ID(e.value),cellClass:"ag-cf9a-currency-cell"},{field:"amended",headerName:"Amended",filter:{component:Ut,doesFilterPass:()=>!0},filterParams:xn},{field:"lastUpdated",headerName:"Last Updated",filter:{component:Ut,doesFilterPass:()=>!0},filterParams:If,valueFormatter:e=>MD(e.value)},{field:"lastUpdatedBy",headerName:"Last Updated By",filter:{component:Ut,doesFilterPass:()=>!0},filterParams:xn},{field:"notes",headerName:"Notes",filter:{component:Ut,doesFilterPass:()=>!0},filterParams:xn},{field:"tags",headerName:"Tags",filter:{component:Ut,doesFilterPass:()=>!0},filterParams:xn},{field:"groups",headerName:"Groups",filter:{component:Ut,doesFilterPass:()=>!0},filterParams:xn},{field:"sources",headerName:"Source",filter:{component:Ut,doesFilterPass:()=>!0},filterParams:xn}],nee={filter:!0,flex:1,floatingFilter:!1,minWidth:180,resizable:!0,sortable:!0},iee={maxWidth:56,minWidth:56,pinned:"left",resizable:!1,sortable:!1,suppressHeaderMenuButton:!0,width:56},oee={mode:"multiRow",checkboxes:!0,headerCheckbox:!0,enableClickSelection:!1,selectAll:"all"},ree={class:"contributions-table","aria-description":"container for table and related controls"},see={class:"contributions-table-toolbar","aria-description":"container for bulk and column controls"},aee={class:"bulk-controls","aria-description":"container for bulk controls"},lee={key:0,"aria-description":"container for number of selected rows"},cee={key:1,class:"controls","aria-description":"container for controls"},uee=["value"],dee={class:"column-controls","aria-description":"container for column controls"},hee={class:"contributions-table-footer","aria-description":"container for pagination controls",role:"footer"},fee={class:"footer-left","aria-description":"container for page size controls"},pee=["value"],gee={class:"footer-center","aria-description":"container for record count data"},mee={class:"footer-right","aria-description":"container for page navigation controls"},vee=["disabled"],Cee=["disabled"],wee={"aria-description":"container for pagination data"},bee=["disabled"],yee=["disabled"],See={"aria-description":"container for bulk status modal content"},Ree={class:"button-group","aria-description":"container for modal buttons"},Fee=["disabled"],xee={"aria-description":"container for bulk note modal content"},Pee={class:"button-group","aria-description":"container for modal buttons"},Eee=["disabled"],Dee={"aria-description":"container for column visibility modal content"},Tee=["id","name","checked","onClick"],Aee=["for"],kD=zt(xt({__name:"ContributionsTable",props:{disabledColumns:{default:()=>[],type:Array},disableSelection:{type:Boolean,default:!1},match:{type:Boolean,default:!0},page:{type:String},presets:{default:()=>({}),type:Object},user:{type:Number}},setup(e){const t=vY(),n=uD(ke=>ke.ContributionSearchReducer?.[e.page]),{trigger:i}=ZZ(),{trigger:o}=JZ(),{trigger:r,isLoading:s}=pJ(),{data:a}=JC({user:e.user}),l=be(null),u=Re(()=>sw.reduce((ke,Ae)=>{const je=Ae.field;if(e.disabledColumns.includes(je)||!w.value[je])return ke;let Oe=!1;return e.presets&&!Ee.isEmpty(e.presets)&&(Oe=!!e.presets[je]?.query?.length),[...ke,{...Ae,filter:Oe?!1:Ae.filter}]},[])),h=be(nee),f=be([]),p=be(null),m=be(null),v=be({}),w=be(sw.reduce((ke,Ae)=>e.disabledColumns.includes(Ae.field)?ke:{...ke,[Ae.field]:!0},{})),b=be(!1),y=Re(()=>D.value===0?0:Math.min(S.value*R.value,D.value)),R=be(100),S=be(1),x=[10,25,50,100],P=Re(()=>D.value===0?0:(S.value-1)*R.value+1),D=be(0),A=be(1);let N;const B=be(oee),L=Re(()=>I.value.length),M=be(iee),I=be([]),O=be(""),Q=be(null),te=be(null),Fe=be(null),we=be(null),he=be({}),xe=be(null),Ie=be(!1),G=Re(()=>[{label:"Select Status",value:null},...(a.value??[]).map(ke=>({label:ke.name,value:ke.id}))]),q=be(null),j=be(null),ae=be(null),Pe=be(null),Te=be({}),ve=be(null),_e=be(null),ze=be(!1),Ue=async(ke,Ae,je,Oe,$e=190,Pn=8)=>{if(!ke||!Ae)return;const No=Ae?.getBoundingClientRect(),an=Math.max(Pn,Math.min(No.right-$e,window.innerWidth-$e-Pn)),Kn=Math.min(No.bottom+Pn,window.innerHeight-120);je.value={position:"fixed",top:`${Kn}px`,left:`${an}px`,margin:"0"},await Dr(),ke?.showModal(),Oe.value=!0},pt=ke=>{ke.stopPropagation();const Ae=new Set([te.value,Fe.value,we.value,xe.value]),je=ke.target;Ie.value?Ae.has(je)&&(we.value?.close(),Ie.value=!1):Ue(we.value,Q.value,he,Ie)},k=ke=>{ke.stopPropagation();const Ae=new Set([j.value,ae.value,Pe.value,_e.value]),je=ke.target;q.value=parseInt((ke?.target).value)??null,!ze.value&&!Ee.isNil(q.value)?Ue(Pe.value,ve.value,Te,ze):Ae.has(je)&&(Pe.value?.close(),q.value=null,ve.value.selectedIndex=0,ze.value=!1)},H=ke=>{ke.stopPropagation(),b.value?ke.target===m.value&&(m.value?.close(),b.value=!1):Ue(m.value,p.value,v,b,275,8)},U=async()=>{S.value=1,await Je()},ne=async()=>{S.value<=1||(S.value=1,await Je())},ee=async()=>{S.value<=1||(S.value-=1,await Je())},Z=async()=>{S.value>=A.value||(S.value+=1,await Je())},ge=async()=>{S.value>=A.value||(S.value=A.value,await Je())},fe=ke=>ke?.conditions?.length?ke.conditions:ke?.condition1||ke?.condition2?[ke.condition1,ke.condition2].filter(Ae=>!Ee.isNil(Ae)):[ke],ce=ke=>(Ae,je)=>{const Oe=fe(je).reduce(ke,[]),$e={page:e.page,filterName:Ae},Pn=CJ(je?.operator,Oe);t(cD({...$e,conjunction:Pn})),Oe.forEach(No=>t(aD({...$e,query:No})))},ie=(ke,Ae)=>{ce((Oe,$e)=>Ee.isEmpty($e?.dateFrom)?Oe:$e.type==="inRange"&&!Ee.isEmpty($e.dateFrom)&&!Ee.isEmpty($e.dateTo)?[...Oe,si("greaterThanOrEqual",Ee.isDate($e.dateFrom)?$e.dateFrom.toISOString().slice(0,10):$e.dateFrom),si("lessThanOrEqual",Ee.isDate($e.dateTo)?$e.dateTo.toISOString().slice(0,10):$e.dateTo)]:[...Oe,si($e.type,Ee.toString($e.dateFrom))])(ke,Ae)},Me=(ke,Ae)=>{ce((Oe,$e)=>Ee.isNil($e?.filter)?Oe:$e.type==="inRange"&&!Ee.isNil($e.filter)&&!Ee.isNil($e.filterTo)?[...Oe,si("greaterThanOrEqual",Ee.toNumber($e.filter)),si("lessThanOrEqual",Ee.toNumber($e.filterTo))]:[...Oe,si($e.type,Ee.toNumber($e.filter))])(ke,Ae)},ye=(ke,Ae)=>{ce((Oe,$e)=>Ee.isEmpty($e?.filter)?Oe:[...Oe,si($e.type,Ee.toString($e.filter))])(ke,Ae)},Ge=()=>{Ee.entries(e.presets).forEach(([ke,Ae])=>{const je=Ae.query;if(!(Ee.isArray(je)&&je.every(Pn=>Ee.isObject(Pn)&&Ee.has(Pn,"comparator")&&Ee.has(Pn,"value"))))return;const Oe=!je?.length||je.length<2?Fn.NULL:Ae.conjunction;if(Oe!==Fn.NULL&&Oe!==Fn.AND&&Oe!==Fn.OR)return;const $e={page:e.page,filterName:ke};t(lD({...$e})),t(cD({...$e,conjunction:Oe})),je.forEach(Pn=>t(aD({...$e,query:Pn})))})},Ve=ke=>{const Ae=new Set(["date","dateDetected","approvalDate","lastUpdated"]),je=new Set(["amount","approvalAmount"]),Oe=new Set(["contributor","employer","employeeStatus","occupation","address","state","zipCode","recipient","status","reconciliationStatus","preclearance","amended","lastUpdatedBy","notes","tags","groups","sources"]),$e=[...Array.from(Ae),...Array.from(je),...Array.from(Oe)],Pn=Ee.entries(e.presets).reduce((an,[Kn,Su])=>Su?.query?.length?[...an,Kn]:an,[]),No=Ee.difference($e,Pn);Ge(),No.forEach(an=>{const Kn={page:e.page,filterName:an};t(lD({...Kn}))}),Ee.entries(ke).forEach(([an,Kn])=>{Ae.has(an)?ie(an,Kn):je.has(an)?Me(an,Kn):Oe.has(an)&&ye(an,Kn)})};function et(){return l.value?l.value.getColumnState().filter(ke=>ke.sort).sort((ke,Ae)=>(ke.sortIndex??0)-(Ae.sortIndex??0)).map(ke=>({column:ke.colId,direction:ke.sort})):[]}const Je=async()=>{if(!e.user)return;const ke=l.value?.getFilterModel()??{};Ve(ke);const je=et()[0],Oe=Ee.entries(n.value).reduce((Pn,[No,an])=>{const Kn=an.query.filter(ca=>(Ee.isString(ca.value)&&!Ee.isEmpty(ca.value)||!Ee.isNil(ca.value))&&ca.value!=="undefined"&&ca.value!=="null"),Su=Kn?.length?an.conjunction:Fn.NULL;return{...Pn,[No]:{conjunction:Su,query:Kn}}},{}),$e=await r({user:e.user,page:S.value,limit:R.value,sortColumn:je?.column,sortOrder:je?.direction,match:e.match,body:Oe});f.value=$e?.results??[],S.value=$e?.page??1,R.value=$e?.limit??R.value,D.value=$e?.total??0,A.value=$e?.totalPages??1,I.value=[]},ot=()=>{window.clearTimeout(N),N=window.setTimeout(async()=>{S.value=1,await Je()},500)},Ht=async()=>{S.value=1,await Je()},Vt=async ke=>{l.value=ke.api,await Je()},tn=ke=>{I.value=ke.api.getSelectedRows()},pn=ke=>{if(O.value.length){const Ae={contributions:I.value.map(je=>je.id),note:O.value,type:"user"};i(Ae),pt(ke)}},bi=ke=>{if(!Ee.isNil(q.value)){const Ae={contributions:I.value.map(je=>je.id),status:q.value};o(Ae),k(ke)}};return vn(()=>[e.match,e.presets,e.user],async()=>{l.value&&(S.value=1,await Je())}),(ke,Ae)=>{const je=dd("font-awesome-icon");return ue(),Se(vt,null,[W("div",ree,[W("div",see,[W("div",aee,[e.disableSelection?_t("",!0):(ue(),Se("span",lee,Xe(L.value)+" selected",1)),I.value.length?(ue(),Se("span",cee,[Ae[2]||(Ae[2]=Mn(" Change Status: ",-1)),W("select",{id:"bulk-status-select",ref_key:"bulkStatusSelect",ref:ve,onChange:k},[(ue(!0),Se(vt,null,hi(G.value,Oe=>(ue(),Se("option",{key:`status-${Oe.value}`,value:Oe.value},Xe(Oe.label),9,uee))),128))],544),W("button",{ref_key:"bulkNoteButton",ref:Q,onClick:pt}," Add Note ",512)])):_t("",!0)]),W("div",dee,[W("button",{ref_key:"columnsVisibilityButton",ref:p,onClick:H,"aria-label":"Toggle Columns"},[rt(je,{class:"columns-ellipsis-icon",icon:["fas","ellipsis-h"],size:"medium"})],512)])]),rt(Di(zJ),{class:"ag-theme-alpine contributions-grid",style:{height:"38.75rem",width:"100%"},columnDefs:u.value,defaultColDef:h.value,enableFilterHandlers:!0,loading:Di(s),loadingOverlayComponent:tw,rowData:f.value,rowSelection:e.disableSelection?void 0:B.value,selectionColumnDef:e.disableSelection?void 0:M.value,onGridReady:Vt,onFilterChanged:ot,onSortChanged:Ht,onSelectionChanged:tn},null,8,["columnDefs","defaultColDef","loading","rowData","rowSelection","selectionColumnDef"]),W("div",hee,[W("div",fee,[Ae[3]||(Ae[3]=W("label",{for:"contributions-table-page-size"},"Items Per Page:",-1)),nn(W("select",{id:"contributions-table-page-size","onUpdate:modelValue":Ae[0]||(Ae[0]=Oe=>R.value=Oe),onChange:U},[(ue(),Se(vt,null,hi(x,Oe=>W("option",{key:Oe,value:Oe},Xe(Oe),9,pee)),64))],544),[[ic,R.value,void 0,{number:!0}]])]),W("div",gee,Xe(P.value)+" to "+Xe(y.value)+" of "+Xe(D.value)+" items ",1),W("div",mee,[W("button",{type:"button",disabled:S.value<=1,onClick:ne,"aria-label":"Go to first page"},"|<",8,vee),W("button",{type:"button",disabled:S.value<=1,onClick:ee,"aria-label":"Go to previous page"},"<",8,Cee),W("span",wee,"Page "+Xe(S.value)+" of "+Xe(A.value),1),W("button",{type:"button",disabled:S.value>=A.value,onClick:Z,"aria-label":"Go to next page"},">",8,bee),W("button",{type:"button",disabled:S.value>=A.value,onClick:ge,"aria-label":"Go to last page"},">|",8,yee)])])]),W("dialog",{ref_key:"bulkStatusModal",ref:Pe,class:"bulk-status-modal",style:Ei(Te.value),onClick:k},[W("div",See,[W("header",null,[W("button",{ref_key:"bulkStatusCloseButton",ref:ae,onClick:k,"aria-label":"Close"},"X",512)]),W("p",null,[Mn("Are you sure that you want to change the status of "+Xe(I.value.length)+" Contribution"+Xe(I.value.length===1?"":"s")+" to ",1),W("strong",null,Xe(G.value.reduce((Oe,$e)=>$e.value===q.value?`${Oe}${$e.label}`:Oe,"")),1),Ae[4]||(Ae[4]=Mn("?",-1))]),W("div",Ree,[W("button",{ref_key:"bulkStatusCancelButton",ref:j,class:"cancel",onClick:k},"Cancel",512),W("button",{ref_key:"bulkStatusSubmitButton",ref:_e,class:"submit",disabled:!I.value.length,onClick:bi},"Update",8,Fee)])])],4),W("dialog",{ref_key:"bulkNoteModal",ref:we,class:"bulk-note-modal",style:Ei(he.value),onClick:pt},[W("div",xee,[W("header",null,[W("h4",null,"Add Note To "+Xe(I.value.length)+" Contribution"+Xe(I.value.length===1?"":"s"),1),W("button",{ref_key:"bulkNoteCloseButton",ref:Fe,onClick:pt,"aria-label":"Close"},"X",512)]),Ae[5]||(Ae[5]=W("p",null,"Note",-1)),nn(W("textarea",{id:"bulk-note-textfield",placeholder:"Enter note text here...","onUpdate:modelValue":Ae[1]||(Ae[1]=Oe=>O.value=Oe)},null,512),[[Xo,O.value]]),W("div",Pee,[W("button",{ref_key:"bulkNoteCancelButton",ref:te,class:"cancel",onClick:pt},"Cancel",512),W("button",{ref_key:"bulkNoteSubmitButton",ref:xe,class:"submit",disabled:!(O.value.length&&I.value.length),onClick:pn},"Add",8,Eee)])])],4),W("dialog",{ref_key:"columnsVisibilityModal",ref:m,class:"columns-visibility-modal",style:Ei(v.value),onClick:H},[W("div",Dee,[W("header",null,[W("h4",null,[rt(je,{class:"columns-columns-icon",icon:"fa-columns"}),Ae[6]||(Ae[6]=Mn("Columns ",-1))])]),W("ul",null,[(ue(!0),Se(vt,null,hi(Di(sw).filter(Oe=>!e.disabledColumns.includes(Oe.field)),Oe=>(ue(),Se("li",{key:Oe.field},[W("input",{id:`column-visibility-${Oe.field}`,class:"column-visibility-checkbox",name:Oe.field,type:"checkbox",checked:w.value?.[Oe.field],onClick:$e=>w.value[Oe.field]=!w.value[Oe.field]},null,8,Tee),Ae[7]||(Ae[7]=Mn("  ",-1)),W("label",{for:`column-visibility-${Oe.field}`},Xe(Oe.headerName),9,Aee)]))),128))])])],4)],64)}}}),[["styles",['[data-v-08e13c25]{font-family:Poppins,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Arial,sans-serif}.ag-theme-alpine[data-v-08e13c25]{--ag-background-color: var(--color-white);--ag-cell-font-family: Poppins, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;--ag-header-background-color: var(--color-secondary-green);--ag-header-font-family: Poppins, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif}.bulk-note-modal[data-v-08e13c25]{border:.1rem solid var(--color-primary-grey);box-shadow:.1875rem .15625rem .15625rem var(--color-secondary-grey);min-width:34.25rem}.bulk-note-modal .button-group[data-v-08e13c25]{border-top:.1rem solid var(--color-primary-grey);display:flex;justify-content:flex-end;padding-top:.5rem;width:100%}.bulk-note-modal .button-group button[data-v-08e13c25]{border:.1rem solid var(--color-primary-grey);border-radius:.2rem;cursor:pointer;height:2.5rem;margin:.2rem;width:5rem}.bulk-note-modal .button-group button.cancel[data-v-08e13c25]{background:var(--color-white);color:var(--color-black)}.bulk-note-modal .button-group button.submit[data-v-08e13c25]{background:var(--color-primary-green);color:var(--color-white)}.bulk-note-modal .button-group button.submit[data-v-08e13c25]:disabled{opacity:.5}.bulk-note-modal header[data-v-08e13c25]{border-bottom:.1rem solid var(--color-primary-grey);display:flex;justify-content:space-between;width:100%}.bulk-note-modal header button[data-v-08e13c25]{background:transparent;border:none;cursor:pointer;font-size:1rem;font-weight:800}.bulk-note-modal textarea[data-v-08e13c25]{border:.1rem solid var(--color-primary-grey);margin:1rem auto;min-height:12.5rem;padding:.5rem .25rem;width:97%}.bulk-note-modal textarea[data-v-08e13c25]:focus-visible{border:.1rem solid var(--color-primary-green)}.bulk-status-modal[data-v-08e13c25]{border:.1rem solid var(--color-primary-grey);box-shadow:.1875rem .15625rem .15625rem var(--color-secondary-grey);min-width:30.25rem}.bulk-status-modal .button-group[data-v-08e13c25]{border-top:.1rem solid var(--color-primary-grey);display:flex;justify-content:flex-end;padding-top:.5rem;width:100%}.bulk-status-modal .button-group button[data-v-08e13c25]{border:.1rem solid var(--color-primary-grey);border-radius:.2rem;cursor:pointer;height:2.5rem;margin:.2rem;width:5rem}.bulk-status-modal .button-group button.cancel[data-v-08e13c25]{background:var(--color-white);color:var(--color-black)}.bulk-status-modal .button-group button.submit[data-v-08e13c25]{background:var(--color-primary-green);color:var(--color-white)}.bulk-status-modal header[data-v-08e13c25]{display:flex;justify-content:flex-end}.bulk-status-modal header button[data-v-08e13c25]{background:transparent;border:none;cursor:pointer;font-size:1rem;font-weight:800}.column-visibility-checkbox[data-v-08e13c25]:checked{accent-color:var(--color-primary-green)}.columns-columns-icon[data-v-08e13c25]{width:1.25rem;height:1rem}.columns-ellipsis-icon[data-v-08e13c25]{height:2rem;width:2.5rem}.contributions-grid[data-v-08e13c25]{width:100%}.contributions-table[data-v-08e13c25]{border:.0625rem solid var(--color-black);border-radius:.5rem;display:flex;flex-direction:column;gap:0rem;height:100%}.contributions-table select[data-v-08e13c25]{height:2rem;padding:0 .5rem}.contributions-table-footer[data-v-08e13c25]{align-items:center;background:var(--color-white);border-radius:0 0 .5rem .5rem;border-top:.0625rem solid var(--color-black);display:flex;font-size:.875rem;gap:1rem;justify-content:space-between;padding:.75rem 1rem}.contributions-table-footer .footer-center[data-v-08e13c25],.contributions-table-footer .footer-left[data-v-08e13c25],.contributions-table-footer .footer-right[data-v-08e13c25]{align-items:center;display:flex;gap:.5rem}.contributions-table-footer .footer-right button[data-v-08e13c25]{height:2rem;min-width:2rem}.contributions-table-toolbar[data-v-08e13c25]{align-items:center;border-bottom:.0625rem solid var(--color-black);display:flex;gap:.75rem;justify-content:space-between;padding:8px 0}.contributions-table-toolbar .bulk-controls[data-v-08e13c25] *{margin:auto 1rem}.contributions-table-toolbar button[data-v-08e13c25]{height:2.25rem;min-width:5rem}.contributions-table-toolbar button[data-v-08e13c25],.contributions-table-footer .footer-right button[data-v-08e13c25]{background:var(--color-white);border:.0625rem solid var(--color-primary-green);border-radius:.375rem;cursor:pointer;padding:0 .625rem}.contributions-table-toolbar button[data-v-08e13c25]:disabled,.contributions-table-footer .footer-right button[data-v-08e13c25]:disabled{cursor:not-allowed;opacity:.5}.contributions-table-toolbar .column-controls button[data-v-08e13c25]{background:transparent;border:none;color:var(--color-primary-green);font-size:xx-large}.columns-visibility-modal[data-v-08e13c25]{border:.1rem solid var(--color-primary-grey);box-shadow:.1875rem .15625rem .15625rem var(--color-secondary-grey);min-width:8.25rem}.columns-visibility-modal header h4[data-v-08e13c25]{border-bottom:.1rem solid var(--color-primary-grey);font-weight:400;padding:.4rem}.columns-visibility-modal header h4[data-v-08e13c25]>*{margin:auto .4rem auto auto}.columns-visibility-modal ul[data-v-08e13c25]{list-style-type:none;padding-left:0}[data-v-08e13c25] .ag-checkbox-input-wrapper.ag-checked{background:var(--color-primary-green)}[data-v-08e13c25] .ag-filter-apply-panel .ag-button:last-child{background:var(--color-primary-green);color:#fff}[data-v-08e13c25] .ag-header-cell .ag-sort-indicator-container{margin:.2rem}[data-v-08e13c25] .ag-icon-filter:hover{color:var(--color-primary-green)}[data-v-08e13c25] .ag-row:nth-child(2n){background:var(--color-secondary-green)}[data-v-08e13c25] .ag-theme-alpine,[data-v-08e13c25] .ag-theme-alpine .ag-root-wrapper{border-radius:0}[data-v-08e13c25]::backdrop{background:transparent}']],["__scopeId","data-v-08e13c25"]]),Iee={class:"contribution-search-content","aria-description":"contribution search page content"},Mee={key:0,class:"contribution-search-initial","aria-description":"initial contribution search form"},kee={class:"criteria-toolbar","aria-label":"Search criteria actions"},Lee={class:"dropdown","aria-description":"modify search criteria dropdown"},_ee=["aria-expanded"],Oee=zt(xt({__name:"ContributionSearch",props:{user:{type:Number}},setup(e){const t=be({}),n=be(["id","employeeStatus","dateDetected","status","reconciliationStatus","preclearance","approvalDate","approvedAmount","lastUpdated","lastUpdatedBy","notes","tags","groups"]),i=be(!1),o=be(!1),r=be(0),s=()=>{o.value=!1},a=()=>{o.value=!o.value},l=f=>{t.value=f,i.value=!0},u=f=>{t.value=f,s()},h=()=>{i.value=!1,t.value={},s(),r.value+=1};return(f,p)=>(ue(),en(ew,{title:"Contribution Search",user:e.user,"show-export":i.value},{content:ei(()=>[W("section",Iee,[i.value?(ue(),Se("section",{key:1,class:Kt(["criteria-toolbar-wrap",{"criteria-toolbar-wrap--dropdown-open":o.value}]),"aria-description":"search criteria toolbar",onKeydown:Cn(s,["esc"])},[W("div",kee,[W("section",Lee,[W("button",{type:"button",class:"criteria-dropdown-button","aria-expanded":o.value,onClick:a},[p[1]||(p[1]=Mn(" Modify Criteria ",-1)),W("i",{class:Kt(["fa-solid fa-chevron-down dropdown-chevron",{"dropdown-chevron-open":o.value}]),"aria-hidden":"true"},null,2)],8,_ee),rt(wd,{name:"criteria-dropdown"},{default:ei(()=>[o.value?(ue(),Se("section",{key:0,class:"criteria-dropdown-panel","aria-description":"modify criteria form panel",onClick:p[0]||(p[0]=Ot(()=>{},["stop"]))},[rt(DD,{"contribution-search-presets":t.value,onSearch:u},null,8,["contribution-search-presets"])])):_t("",!0)]),_:1})]),W("button",{type:"button",class:"new-search-button",onClick:h}," New Search ")])],34)):(ue(),Se("section",Mee,[(ue(),en(DD,{key:r.value,onSearch:l}))])),i.value?(ue(),en(kD,{key:2,user:e.user,page:"contribution-search",match:!1,"disabled-columns":n.value,presets:t.value,"disable-selection":""},null,8,["user","disabled-columns","presets"])):_t("",!0)])]),_:1},8,["user","show-export"]))}}),[["styles",[".contribution-search-content[data-v-03fadbf7]{display:flex;flex-direction:column;gap:1.5rem;min-height:0}.criteria-dropdown-button[data-v-03fadbf7]{align-items:center;background:var(--color-white);border:.0625rem solid var(--color-primary-grey);border-radius:.375rem;color:var(--color-primary-black);cursor:pointer;display:flex;font-family:Poppins,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Arial,sans-serif;font-size:1rem;gap:.375rem;height:2.25rem;justify-content:space-between;padding:0 .75rem;width:100%}.criteria-dropdown-button[data-v-03fadbf7]:hover{border-color:var(--color-primary-green)}.criteria-dropdown-enter-active[data-v-03fadbf7],.criteria-dropdown-leave-active[data-v-03fadbf7]{transition:opacity .2s ease,transform .2s ease}.criteria-dropdown-enter-from[data-v-03fadbf7],.criteria-dropdown-leave-to[data-v-03fadbf7]{opacity:0;transform:translateY(-.25rem)}.criteria-dropdown-panel[data-v-03fadbf7]{background:var(--color-white);border:.0625rem solid var(--color-primary-grey);border-radius:.375rem;box-shadow:0 .625rem 1.5rem #00000014;left:0;margin-top:.5rem;max-height:min(70vh,32rem);overflow-x:hidden;overflow-y:auto;padding:1rem 1rem .5rem;position:absolute;top:100%;width:100%;z-index:2}.criteria-toolbar[data-v-03fadbf7]{align-items:flex-start;display:flex;gap:.75rem;width:100%}.criteria-toolbar-wrap[data-v-03fadbf7]{position:relative;width:100%}.criteria-toolbar-wrap--dropdown-open[data-v-03fadbf7]{z-index:10}.dropdown[data-v-03fadbf7]{flex:1 1 auto;min-width:0;position:relative}.dropdown-chevron[data-v-03fadbf7]{font-size:.75rem;opacity:.85;transform:rotate(0);transition:transform .2s ease}.dropdown-chevron-open[data-v-03fadbf7]{transform:rotate(180deg)}.new-search-button[data-v-03fadbf7]{background:var(--color-primary-green);border:.0625rem solid var(--color-primary-green);border-radius:.375rem;color:var(--color-white);cursor:pointer;flex-shrink:0;font-family:Poppins,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Arial,sans-serif;font-size:.875rem;height:2.25rem;min-width:5rem;padding:0 1rem}.new-search-button[data-v-03fadbf7]:hover{filter:brightness(.95)}"]],["__scopeId","data-v-03fadbf7"]]),Nee={class:"body"},Bee=zt(xt({__name:"ContributionSearch.ce",props:{user:{type:Number}},setup(e){return(t,n)=>(ue(),Se("div",Nee,[rt(Oee,{user:e.user},null,8,["user"])]))}}),[["styles",[nw,".ag-cf9a-actions{display:flex;gap:.625rem;padding-top:.25rem;width:100%}.ag-cf9a-button{border-radius:.25rem;cursor:pointer;flex:1;font-family:inherit;height:2.125rem}.ag-cf9a-button-primary{background:var(--color-primary-green);border:.0625rem solid var(--color-primary-green);color:var(--color-white);font-weight:600}.ag-cf9a-button-secondary{background:var(--color-white);border:.0625rem solid var(--color-secondary-grey);color:var(--color-primary-black);font-weight:600}.ag-cf9a-close-button{align-items:center;background:transparent;border:0;color:var(--color-primary-black);cursor:pointer;display:flex;font-family:inherit;font-size:1rem;font-weight:700;height:1.5rem;justify-content:center;padding:0;transition:color .2s ease;width:1.5rem}.ag-cf9a-close-button:hover{color:var(--color-primary-green)}.ag-cf9a-currency-cell{font-weight:600}.ag-cf9a-filter{background:var(--color-white);border:.0625rem solid var(--color-primary-green);border-radius:.25rem;box-shadow:0 .125rem .5rem #0000001f;box-sizing:border-box;display:flex;flex-direction:column;font-family:Poppins,sans-serif;padding:.75rem;width:21.25rem}.ag-cf9a-helper-text{color:var(--color-primary-black);font-size:.75rem;margin-bottom:.625rem}.ag-cf9a-input,.ag-cf9a-select{border:.0625rem solid var(--color-secondary-grey);border-radius:.25rem;box-sizing:border-box;display:block;font-family:inherit;height:2.125rem;margin-bottom:.625rem;padding:0 .625rem;width:100%}.ag-cf9a-input::placeholder{color:var(--color-primary-black);opacity:.5}.ag-cf9a-title{color:var(--color-primary-black);font-size:.875rem;font-weight:600}.ag-cf9a-title h3{margin:0}.ag-cf9a-title-row{align-items:center;border-bottom:.0625rem solid var(--color-primary-grey);display:flex;justify-content:space-between;margin-bottom:.75rem;padding-bottom:.5rem}.body>*{width:100%}"]]]),Gee=xt({__name:"DetectedContributions",props:{user:{type:Number}},setup(e){return(t,n)=>(ue(),en(ew,{title:"Detected Contributions",page:"detected-contributions",user:e.user},{content:ei(()=>[rt(kD,{user:e.user,page:"detected-contributions",match:!0},null,8,["user"])]),_:1},8,["user"]))}}),Hee={class:"body"},Vee=zt(xt({__name:"DetectedContributions.ce",props:{user:{type:Number}},setup(e){return(t,n)=>(ue(),Se("div",Hee,[rt(Gee,{user:e.user},null,8,["user"])]))}}),[["styles",[nw,".ag-cf9a-actions{display:flex;gap:.625rem;padding-top:.25rem;width:100%}.ag-cf9a-button{border-radius:.25rem;cursor:pointer;flex:1;font-family:inherit;height:2.125rem}.ag-cf9a-button-primary{background:var(--color-primary-green);border:.0625rem solid var(--color-primary-green);color:var(--color-white);font-weight:600}.ag-cf9a-button-secondary{background:var(--color-white);border:.0625rem solid var(--color-secondary-grey);color:var(--color-primary-black);font-weight:600}.ag-cf9a-close-button{align-items:center;background:transparent;border:0;color:var(--color-primary-black);cursor:pointer;display:flex;font-family:inherit;font-size:1rem;font-weight:700;height:1.5rem;justify-content:center;padding:0;transition:color .2s ease;width:1.5rem}.ag-cf9a-close-button:hover{color:var(--color-primary-green)}.ag-cf9a-currency-cell{font-weight:600}.ag-cf9a-filter{background:var(--color-white);border:.0625rem solid var(--color-primary-green);border-radius:.25rem;box-shadow:0 .125rem .5rem #0000001f;box-sizing:border-box;display:flex;flex-direction:column;font-family:Poppins,sans-serif;padding:.75rem;width:21.25rem}.ag-cf9a-helper-text{color:var(--color-primary-black);font-size:.75rem;margin-bottom:.625rem}.ag-cf9a-input,.ag-cf9a-select{border:.0625rem solid var(--color-secondary-grey);border-radius:.25rem;box-sizing:border-box;display:block;font-family:inherit;height:2.125rem;margin-bottom:.625rem;padding:0 .625rem;width:100%}.ag-cf9a-input::placeholder{color:var(--color-primary-black);opacity:.5}.ag-cf9a-title{color:var(--color-primary-black);font-size:.875rem;font-weight:600}.ag-cf9a-title h3{margin:0}.ag-cf9a-title-row{align-items:center;border-bottom:.0625rem solid var(--color-primary-grey);display:flex;justify-content:space-between;margin-bottom:.75rem;padding-bottom:.5rem}.body>*{width:100%}"]]]);JL.registerModules([E9]),qc.add(ZK),qc.add(QK),qc.add(KK),qc.add(JK),qc.add(XK);const Wee=ig(lX,{configureApp(e){e.component("font-awesome-icon",yC),SC(e,{store:ls})}}),zee=ig(Bee,{configureApp(e){e.component("font-awesome-icon",yC),SC(e,{store:ls})}}),Uee=ig(Vee,{configureApp(e){e.component("font-awesome-icon",yC),SC(e,{store:ls})}});customElements.define("contribution-details",Wee),customElements.define("contribution-search",zee),customElements.define("detected-contributions",Uee)}));