n8n-editor-ui
Version:
Workflow Editor UI for n8n
1 lines • 1 MB
JavaScript
!function(){try{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{}).SENTRY_RELEASE={id:"n8n@2.13.4"}}catch(e){}}(),System.register(["./chunk-legacy-TXBRODOR.js","./vue.runtime.esm-bundler-legacy-IafOlCW8.js","./_MapCache-legacy-DwgdC8YO.js","./src-legacy-Dwzr7bD0.js","./_plugin-vue_export-helper-legacy-DEZAmQqp.js","./sanitize-html-legacy-ChR3ikxn.js","./date-picker-legacy-uAA3gY1d.js","./users.store-legacy-OKuN0qAC.js","./constants-legacy-DNCca_FT.js","./merge-legacy-uu1aGqHK.js","./_baseOrderBy-legacy-PsQY_Pvh.js","./dateformat-legacy-BxdD_OP7.js","./useDebounce-legacy-CT3oYGrC.js","./dataTable.store-legacy-CvwqAgvm.js","./Modal-legacy-D-vb8tRz.js","./useClipboard-legacy-D5bRgqfO.js","./ProjectIcon-legacy-Bou4IyeB.js","./orderBy-legacy-B1QhOZ6M.js","./sourceControl.eventBus-legacy-BntokYnE.js","./ProjectBreadcrumb-legacy-Cm3lPpsW.js","./DataTableActions-legacy-DyD_pG7B.js","./SelectedItemsInfo-legacy-Ds5Okbf7.js"],(function(e,t){var o,i,s,n,r,a,l,d,c,h,u,p,g,m,f,v,C,w,b,y,S,R,F,x,E,D,P,T,M,k,A,I,L,B,O,G,H,V,N,z,W,_,U,$,K,j,q,Y,Q,J,Z,X,ee,te,oe,ie,se,ne,re,ae,le,de,ce,he,ue,pe,ge,me,fe,ve,Ce,we,be,ye,Se,Re,Fe,xe,Ee,De,Pe,Te,Me,ke,Ae,Ie,Le,Be,Oe,Ge,He,Ve,Ne,ze,We,_e,Ue,$e,Ke,je,qe,Ye,Qe,Je,Ze,Xe,et,tt,ot,it,st,nt,rt,at,lt,dt,ct,ht,ut,pt,gt,mt,ft,vt,Ct,wt,bt,yt,St,Rt,Ft,xt,Et,Dt,Pt,Tt,Mt,kt,At,It,Lt,Bt,Ot,Gt,Ht,Vt,Nt,zt,Wt,_t,Ut,$t,Kt,jt,qt,Yt,Qt,Jt,Zt,Xt,eo,to,oo,io,so,no,ro,ao,lo,co,ho,uo,po,go,mo,fo,vo,Co,wo,bo,yo,So,Ro,Fo,xo,Eo,Do,Po,To,Mo,ko,Ao,Io,Lo,Bo,Oo,Go,Ho,Vo,No,zo,Wo,_o,Uo,$o,Ko,jo,qo,Yo,Qo,Jo,Zo,Xo,ei,ti,oi,ii,si,ni,ri,ai,li,di,ci,hi,ui,pi,gi,mi,fi,vi,Ci,wi,bi,yi,Si,Ri,Fi,xi,Ei,Di,Pi,Ti,Mi,ki,Ai,Ii,Li,Bi,Oi,Gi,Hi,Vi,Ni,zi,Wi,_i,Ui,$i,Ki,ji,qi,Yi,Qi,Ji,Zi,Xi,es,ts,os,is,ss,ns,rs,as,ls,ds,cs,hs,us,ps,gs,ms,fs,vs,Cs,ws,bs,ys,Ss,Rs,Fs,xs,Es,Ds,Ps,Ts,Ms,ks,As,Is,Ls,Bs,Os,Gs,Hs,Vs,Ns,zs,Ws,_s,Us,$s,Ks,js,qs,Ys,Qs,Js,Zs,Xs,en,tn,on,sn,nn,rn,an,ln,dn,cn,hn,un,pn,gn,mn,fn,vn,Cn,wn,bn,yn,Sn,Rn,Fn,xn,En,Dn,Pn,Tn,Mn,kn,An,In,Ln,Bn,On,Gn,Hn,Vn,Nn,zn,Wn,_n,Un,$n,Kn,jn,qn,Yn,Qn,Jn,Zn,Xn,er,tr,or,ir,sr,nr,rr,ar,lr,dr,cr,hr,ur,pr,gr,mr,fr,vr,Cr,wr,br,yr,Sr,Rr,Fr,xr,Er,Dr,Pr,Tr,Mr,kr,Ar,Ir,Lr,Br,Or,Gr,Hr,Vr,Nr,zr,Wr,_r,Ur,$r,Kr,jr,qr,Yr,Qr,Jr,Zr,Xr,ea,ta,oa,ia,sa,na,ra,aa,la,da,ca,ha,ua,pa,ga,ma,fa,va,Ca,wa,ba,ya,Sa,Ra,Fa,xa,Ea,Da,Pa,Ta,Ma,ka,Aa,Ia,La,Ba,Oa,Ga,Ha,Va,Na,za,Wa,_a,Ua,$a,Ka,ja,qa,Ya,Qa,Ja,Za,Xa,el,tl,ol,il,sl,nl,rl,al,ll,dl,cl,hl,ul,pl,gl,ml,fl,vl,Cl,wl,bl,yl,Sl,Rl,Fl,xl,El,Dl,Pl,Tl,Ml,kl,Al,Il,Ll,Bl,Ol,Gl,Hl,Vl,Nl,zl,Wl,_l,Ul,$l,Kl,jl,ql,Yl,Ql,Jl,Zl,Xl,ed,td,od,id,sd,nd,rd,ad,ld,dd,cd,hd,ud,pd,gd,md,fd,vd,Cd,wd,bd,yd,Sd,Rd,Fd,xd,Ed,Dd,Pd,Td,Md,kd,Ad,Id,Ld,Bd,Od,Gd,Hd,Vd,Nd,zd,Wd,_d,Ud,$d,Kd,jd,qd,Yd,Qd,Jd,Zd,Xd,ec,tc,oc,ic,sc,nc,rc,ac,lc,dc,cc,hc,uc,pc,gc,mc,fc,vc,Cc,wc,bc,yc,Sc,Rc,Fc,xc,Ec,Dc,Pc,Tc,Mc,kc,Ac,Ic,Lc,Bc,Oc,Gc,Hc,Vc,Nc,zc,Wc,_c,Uc,$c,Kc,jc,qc,Yc,Qc,Jc,Zc,Xc,eh,th,oh,ih,sh,nh,rh,ah,lh,dh,ch,hh,uh,ph,gh,mh,fh,vh,Ch,wh,bh,yh,Sh,Rh,Fh,xh,Eh,Dh,Ph,Th,Mh,kh,Ah,Ih,Lh,Bh,Oh,Gh,Hh,Vh,Nh,zh,Wh,_h,Uh,$h,Kh,jh,qh,Yh,Qh,Jh,Zh,Xh,eu,tu,ou,iu,su,nu,ru,au,lu,du,cu,hu,uu,pu,gu,mu,fu,vu,Cu,wu,bu,yu,Su,Ru,Fu,xu,Eu,Du,Pu,Tu,Mu,ku,Au,Iu,Lu,Bu,Ou,Gu,Hu,Vu,Nu,zu,Wu,_u,Uu,$u,Ku,ju,qu,Yu,Qu,Ju,Zu,Xu,ep,tp,op,ip,sp,np,rp,ap,lp,dp,cp,hp,up,pp,gp,mp,fp,vp;function Cp(e,t){return t}function wp(e){return e?.getLocaleTextFunc()??Cp}function bp(e){return null==e||""===e?null:e}function yp(e){return null!=e&&""!==e}function Sp(e){return!yp(e)}function Rp(e){return null!=e&&"function"==typeof e.toString?e.toString():null}function Fp(e,t){return(e?JSON.stringify(e):null)===(t?JSON.stringify(t):null)}function xp(e,t,o=!1){const i=null==e,s=null==t;if(e&&e.toNumber&&(e=e.toNumber()),t&&t.toNumber&&(t=t.toNumber()),i&&s)return 0;if(i)return-1;if(s)return 1;function n(e,t){return e>t?1:e<t?-1:0}if("string"!=typeof e)return n(e,t);if(!o)return n(e,t);try{return e.localeCompare(t)}catch(r){return n(e,t)}}function Ep(e,t,o=!0,i=!1){yp(t)&&function(e,t){if(null!=e)if(Array.isArray(e))for(let o=0;o<e.length;o++)t(o.toString(),e[o]);else for(const o of Object.keys(e).filter((e=>!ze.has(e))))t(o,e[o])}(t,((t,s)=>{let n=e[t];n!==s&&(i&&null==n&&null!=s&&"object"==typeof s&&s.constructor===Object&&(n={},e[t]=n),Pp(s)&&Pp(n)&&!Array.isArray(n)?Ep(n,s,o,i):(o||void 0!==s)&&(e[t]=s))}))}function Dp(e,t,o){if(!t||!e)return;if(!o)return e[t];const i=t.split(".");let s=e;for(let n=0;n<i.length;n++){if(null==s)return;s=s[i[n]]}return s}function Pp(e){return"object"==typeof e&&null!==e}function Tp(e,t,o){null==o||"string"==typeof o&&""==o?kp(e,t):Mp(e,t,o)}function Mp(e,t,o){e.setAttribute(Ap(t),o.toString())}function kp(e,t){e.removeAttribute(Ap(t))}function Ap(e){return`aria-${e}`}function Ip(e,t){t?e.setAttribute("role",t):e.removeAttribute("role")}function Lp(e,t){Tp(e,"label",t)}function Bp(e,t){Tp(e,"labelledby",t)}function Op(e,t){Tp(e,"live",t)}function Gp(e,t){Tp(e,"hidden",t)}function Hp(e,t){Mp(e,"expanded",t)}function Vp(e,t){Mp(e,"rowindex",t)}function Np(e,t){Mp(e,"colindex",t)}function zp(e,t){Tp(e,"selected",t)}function Wp(e,t){!function(e,t){Tp(e,"controls",t)}(e,t.id),Bp(t,e.id)}function _p(e,t){Tp(e,"owns",t)}function Up(e,t){return void 0===t?e("ariaIndeterminate","indeterminate"):!0===t?e("ariaChecked","checked"):e("ariaUnchecked","unchecked")}function $p(){return void 0===$e&&($e=/^((?!chrome|android).)*safari/i.test(navigator.userAgent)),$e}function Kp(){return void 0===Ke&&(Ke=/(firefox)/i.test(navigator.userAgent)),Ke}function jp(){return void 0===je&&(je=/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform)),je}function qp(){return void 0===qe&&(qe=/iPad|iPhone|iPod/.test(navigator.platform)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1),qe}function Yp(e){if(!e)return null;const t=e.tabIndex,o=e.getAttribute("tabIndex");return-1!==t||null!==o&&(""!==o||Kp())?t.toString():null}function Qp(){const e=document.body,t=document.createElement("div");t.style.width=t.style.height="100px",t.style.opacity="0",t.style.overflow="scroll",t.style.msOverflowStyle="scrollbar",t.style.position="absolute",e.appendChild(t);let o=t.offsetWidth-t.clientWidth;0===o&&0===t.clientWidth&&(o=null),t.parentNode&&t.parentNode.removeChild(t),null!=o&&(Qe=o,Ye=0===o)}function Jp(){return null==Ye&&Qp(),Ye}function Zp(e){const t=Element.prototype.matches||Element.prototype.msMatchesSelector,o=t.call(e,"input, select, button, textarea"),i=t.call(e,Xe),s=pg(e);return o&&!i&&s}function Xp(e,t,o={}){const{skipAriaHidden:i}=o;e.classList.toggle("ag-hidden",!t),i||Gp(e,!t)}function eg(e,t){const o="disabled",i=t?e=>e.setAttribute(o,""):e=>e.removeAttribute(o);i(e);const s=e.querySelectorAll("input")??[];for(const n of s)i(n)}function tg(e,t,o){let i=0;for(;e;){if(e.classList.contains(t))return!0;if(e=e.parentElement,"number"==typeof o){if(++i>o)break}else if(e===o)break}return!1}function og(e){const{height:t,width:o,borderTopWidth:i,borderRightWidth:s,borderBottomWidth:n,borderLeftWidth:r,paddingTop:a,paddingRight:l,paddingBottom:d,paddingLeft:c,marginTop:h,marginRight:u,marginBottom:p,marginLeft:g,boxSizing:m}=window.getComputedStyle(e);return{height:parseFloat(t||"0"),width:parseFloat(o||"0"),borderTopWidth:parseFloat(i||"0"),borderRightWidth:parseFloat(s||"0"),borderBottomWidth:parseFloat(n||"0"),borderLeftWidth:parseFloat(r||"0"),paddingTop:parseFloat(a||"0"),paddingRight:parseFloat(l||"0"),paddingBottom:parseFloat(d||"0"),paddingLeft:parseFloat(c||"0"),marginTop:parseFloat(h||"0"),marginRight:parseFloat(u||"0"),marginBottom:parseFloat(p||"0"),marginLeft:parseFloat(g||"0"),boxSizing:m}}function ig(e){const t=og(e);return"border-box"===t.boxSizing?t.height-t.paddingTop-t.paddingBottom:t.height}function sg(e){const t=og(e);return"border-box"===t.boxSizing?t.width-t.paddingLeft-t.paddingRight:t.width}function ng(e){const{height:t,marginBottom:o,marginTop:i}=og(e);return Math.floor(t+o+i)}function rg(e){const{width:t,marginLeft:o,marginRight:i}=og(e);return Math.floor(t+o+i)}function ag(e){const t=e.getBoundingClientRect(),{borderTopWidth:o,borderLeftWidth:i,borderRightWidth:s,borderBottomWidth:n}=og(e);return{top:t.top+(o||0),left:t.left+(i||0),right:t.right+(s||0),bottom:t.bottom+(n||0)}}function lg(e,t){let o=e.scrollLeft;return t&&(o=Math.abs(o)),o}function dg(e,t,o){o&&(t*=-1),e.scrollLeft=t}function cg(e){for(;e&&e.firstChild;)e.removeChild(e.firstChild)}function hg(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function ug(e){return!!e.offsetParent}function pg(e){const t=e;return t.checkVisibility?t.checkVisibility({checkVisibilityCSS:!0}):!(!ug(e)||"visible"!==window.getComputedStyle(e).visibility)}function gg(e){const t=document.createElement("div");return t.innerHTML=(e||"").trim(),t.firstChild}function mg(e,t,o){o&&o.nextSibling===t||(e.firstChild?o?o.nextSibling?e.insertBefore(t,o.nextSibling):e.appendChild(t):e.firstChild&&e.firstChild!==t&&e.insertAdjacentElement("afterbegin",t):e.appendChild(t))}function fg(e,t){for(let o=0;o<t.length;o++){const i=t[o],s=e.children[o];s!==i&&e.insertBefore(i,s)}}function vg(e,t){if(t)for(const o of Object.keys(t)){const i=t[o];if(!o||!o.length||null==i)continue;const s=o.replace(/[A-Z]/g,(e=>`-${e.toLocaleLowerCase()}`)),n=i.toString(),r=n.replace(/\s*!important/g,""),a=r.length!=n.length?"important":void 0;e.style.setProperty(s,r,a)}}function Cg(e){return()=>{const t=e();return!t||wg(t)||bg(t)}}function wg(e){return e.clientWidth<e.scrollWidth}function bg(e){return e.clientHeight<e.scrollHeight}function yg(e,t){"flex"===t?(e.style.removeProperty("width"),e.style.removeProperty("minWidth"),e.style.removeProperty("maxWidth"),e.style.flex="1 1 auto"):Sg(e,t)}function Sg(e,t){t=Fg(t),e.style.width=t,e.style.maxWidth=t,e.style.minWidth=t}function Rg(e,t){t=Fg(t),e.style.height=t,e.style.maxHeight=t,e.style.minHeight=t}function Fg(e){return"number"==typeof e?`${e}px`:e}function xg(e){return e instanceof Node||e instanceof HTMLElement}function Eg(e,t,o){null==o||""===o?e.removeAttribute(t):e.setAttribute(t,o.toString())}function Dg(e,t,o){const i=rm(e).ResizeObserver,s=i?new i(o):null;return s?.observe(t),()=>s?.disconnect()}function Pg(e,t){const o=rm(e);o.requestAnimationFrame?o.requestAnimationFrame(t):o.webkitRequestAnimationFrame?o.webkitRequestAnimationFrame(t):o.setTimeout(t,0)}function Tg(){return tt??(tt=document.createTextNode(" ")),tt.cloneNode()}function Mg(e){const{attrs:t,children:o,cls:i,ref:s,role:n,tag:r}=e,a=document.createElement(r);if(i&&(a.className=i),s&&a.setAttribute(et,s),n&&a.setAttribute("role",n),t)for(const l of Object.keys(t))a.setAttribute(l,t[l]);if(o)if("string"==typeof o)a.textContent=o;else{let e=!0;for(const t of o)t&&("string"==typeof t?(a.appendChild(document.createTextNode(t)),e=!1):"function"==typeof t?a.appendChild(t()):(e&&(a.appendChild(Tg()),e=!1),a.append(Mg(t)),a.appendChild(Tg())))}return a}function kg(e,t){ot[t]||(e(),ot[t]=!0)}function Ag(e,t,...o){e.get("debug")&&console.log("AG Grid: "+t,...o)}function Ig(e,...t){kg((()=>console.warn("AG Grid: "+e,...t)),e+t?.join(""))}function Lg(e,...t){kg((()=>console.error("AG Grid: "+e,...t)),e+t?.join(""))}function Bg(e,t="setTimeout",o){const i="raf"===t?st:it;if(i.funcs.push(e),i.pending)return;i.pending=!0;const s=()=>{const e=i.funcs.slice();i.funcs.length=0,i.pending=!1,e.forEach((e=>e()))};"raf"===t?Pg(o,s):window.setTimeout(s,0)}function Og(e,t,o){let i;return function(...s){const n=this;window.clearTimeout(i),i=window.setTimeout((function(){e.isAlive()&&t.apply(n,s)}),o)}}function Gg(e,t){let o=0;return function(...i){const s=Date.now();s-o<t||(o=s,e.apply(this,i))}}function Hg(e,t,o){return ct?.getConsoleMessage(e,t)??[ut(e,t,o)]}function Vg(e,t,o,i){e(`error #${t}`,...Hg(t,o,i))}function Ng(e){let t=e;return e instanceof Error?t=e.toString():"object"==typeof e&&(t=function(e){if(!e)return String(e);const t={};for(const o of Object.keys(e))"object"!=typeof e[o]&&"function"!=typeof e[o]&&(t[o]=e[o]);return JSON.stringify(t)}(e)),t}function zg(e){return void 0===e?"undefined":null===e?"null":e}function Wg(e,t){return`${e}?${t.toString()}`}function _g(e,t){const o=new URLSearchParams;if(o.append(dt,rt),t)for(const n of Object.keys(t))o.append(n,Ng(t[n]));const i=`${ht}/errors/${e}`,s=Wg(i,o);return s.length<=at?s:function(e,t,o){const i=Array.from(t.entries()).sort(((e,t)=>t[1].length-e[1].length));let s=Wg(e,t);for(const[n,r]of i){if(n===dt)continue;const i=s.length-o;if(i<=0)break;const a="...",l=i+3,d=r.length-l>lt?r.slice(0,r.length-l)+a:r.slice(0,lt)+a;t.set(n,d),s=Wg(e,t)}return s}(i,o,at)}function Ug(...e){Vg(Ig,e[0],e[1])}function $g(...e){Vg(Lg,e[0],e[1])}function Kg(e,t,o){Vg(Lg,e,t,o)}function jg(...e){return function(e,t){const o=t[0];return`error #${o} `+Hg(o,t[1],e).join(" ")}(void 0,e)}function qg(e,t){return e.get("rowModelType")===t}function Yg(e,t){return qg(e,"clientSide")}function Qg(e,t){return qg(e,"serverSide")}function Jg(e,t){return e.get("domLayout")===t}function Zg(e){return void 0!==Em(e)}function Xg(e){return"function"==typeof e.get("getRowHeight")}function em(e,t,o=!1,i){const{gos:s,environment:n}=e;if(null==i&&(i=n.getDefaultRowHeight()),Xg(s)){if(o)return{height:i,estimated:!0};const e={node:t,data:t.data},n=s.getCallback("getRowHeight")(e);if(om(n))return 0===n&&Ug(23),{height:Math.max(1,n),estimated:!1}}if(t.detail&&s.get("masterDetail"))return function(e){if(e.get("detailRowAutoHeight"))return{height:1,estimated:!1};const t=e.get("detailRowHeight");return om(t)?{height:t,estimated:!1}:{height:300,estimated:!1}}(s);const r=s.get("rowHeight");return{height:r&&om(r)?r:i,estimated:!1}}function tm(e){const{environment:t,gos:o}=e,i=o.get("rowHeight");if(!i||Sp(i))return t.getDefaultRowHeight();const s=t.refreshRowHeightVariable();return-1!==s?s:(Ug(24),t.getDefaultRowHeight())}function om(e){return!isNaN(e)&&"number"==typeof e&&isFinite(e)}function im(e,t,o){const i=t[e.getDomDataKey()];return i?i[o]:void 0}function sm(e,t,o,i){const s=e.getDomDataKey();let n=t[s];Sp(n)&&(n={},t[s]=n),n[o]=i}function nm(e){const{gos:t,eGridDiv:o}=e;let i=null;const s=t.get("getDocument");return s&&yp(s)?i=s():o&&(i=o.ownerDocument),i&&yp(i)?i:document}function rm(e){return nm(e).defaultView||window}function am(e){return e.eGridDiv.getRootNode()}function lm(e){return am(e).activeElement}function dm(e){let t=null,o=null;try{t=nm(e).fullscreenElement}catch(i){}finally{t||(t=am(e));const i=t.querySelector("body");o=i||(t instanceof ShadowRoot?t:t instanceof Document?t?.documentElement:t)}return o}function cm(e,t,o){const i=e.getBoundingClientRect().height,s=function(e){return dm(e)?.clientWidth??(window.innerWidth||-1)}(o)-2,n=function(e){return dm(e)?.clientHeight??(window.innerHeight||-1)}(o)-2;if(!e.offsetParent)return;const r=ag(e.offsetParent),{clientY:a,clientX:l}=t;let d=a-r.top-i/2,c=l-r.left-10;const h=nm(o),u=h.defaultView||window,p=u.pageYOffset||h.documentElement.scrollTop,g=u.pageXOffset||h.documentElement.scrollLeft;s>0&&c+e.clientWidth>s+g&&(c=s+g-e.clientWidth),c<0&&(c=0),n>0&&d+e.clientHeight>n+p&&(d=n+p-e.clientHeight),d<0&&(d=0),e.style.left=`${c}px`,e.style.top=`${d}px`}function hm(e){const t=lm(e);return null===t||t===nm(e).body}function um(e){return!e.get("ensureDomOrder")&&e.get("animateRows")}function pm(e){return!(e.get("paginateChildRows")||e.get("groupHideOpenParents")||Jg(e,"print"))}function gm(e){return!e.get("autoGroupColumnDef")?.comparator&&!e.get("treeData")}function mm(e){const t=e.get("groupAggFiltering");return"function"==typeof t?e.getCallback("groupAggFiltering"):!0===t?()=>!0:void 0}function fm(e){return e.get("grandTotalRow")}function vm(e,t){return!t&&"groupRows"===e.get("groupDisplayType")}function Cm(e){const t=e.getCallback("getRowId");return void 0===t?t:e=>{let o=t(e);return"string"!=typeof o&&(kg((()=>Ug(25,{id:o})),"getRowIdString"),o=String(o)),o}}function wm(e){return e?.checkboxes??!0}function bm(e){return"multiRow"===e?.mode&&(e.headerCheckbox??!0)}function ym(e){if("object"==typeof e)return e.checkboxLocation??"selectionColumn"}function Sm(e){return e?.hideDisabledCheckboxes??!1}function Rm(e){const t=e.get("cellSelection");return void 0!==t?!!t:e.get("enableRangeSelection")}function Fm(e){const t=e.get("rowSelection")??"single";if("string"==typeof t){const t=e.get("suppressRowClickSelection"),o=e.get("suppressRowDeselection");return(!t||!o)&&(t?"enableDeselection":!o||"enableSelection")}return("singleRow"===t.mode||"multiRow"===t.mode)&&(t.enableClickSelection??!1)}function xm(e){const t=e.get("rowSelection");return"string"==typeof t?e.get("isRowSelectable"):t?.isRowSelectable}function Em(e){const t="beanName"in e&&"gos"===e.beanName?e.get("rowSelection"):e.rowSelection;if("string"==typeof t)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 Dm(e){return"multiRow"===Em(e)}function Pm(e){const t=e.get("rowSelection");if("string"==typeof t){const t=e.get("groupSelectsChildren"),o=e.get("groupSelectsFiltered");return t&&o?"filteredDescendants":t?"descendants":"self"}return"multiRow"===t?.mode?t.groupSelects:void 0}function Tm(e,t=!0){const o=e.get("rowSelection");return"object"!=typeof o?t?"all":void 0:"multiRow"===o.mode?o.selectAll:"all"}function Mm(e){const t=Pm(e);return"descendants"===t||"filteredDescendants"===t}function km(e){const t=e.get("rowSelection");return"object"==typeof t&&t.masterSelects||"self"}function Am(e){return"legacy"===e.get("columnMenu")}function Im(e,t){return e.addGridCommonParams(t)}function Lm(e){e[pt]=!0}function Bm(e){return!0===e[pt]}function Om(e,t,o){let i=t;for(;i;){const t=im(e,i,o);if(t)return t;i=i.parentElement}return null}function Gm(e,t){return!(!t||!e)&&function(e){const t=e;return t.path?t.path:t.composedPath?t.composedPath():function(e){const t=[];let o=e.target;for(;o;)t.push(o),o=o.parentElement;return t}(t)}(t).indexOf(e)>=0}function Hm(e){return e?.toString().toString()??null}function Vm(e){return Hm(e)?.replace(bt,(e=>yt[e]))??null}function Nm(){return Rt++}function zm(e){return e instanceof Ft}function Wm(e){return e instanceof xt}function _m(e,t,o){const i={},s=e.gos;return Object.assign(i,s.get("defaultColGroupDef")),Object.assign(i,t),s.validateColDef(i,o),i}function Um(e){if(e?.length)return e[e.length-1]}function $m(e,t,o){return null==e&&null==t||null!=e&&null!=t&&e.length===t.length&&e.every(((e,i)=>o?o(e,t[i]):t[i]===e))}function Km(e,t){if(e)for(const o of e)t(o)}function jm(e,t){const o=e.indexOf(t);o>=0&&e.splice(o,1)}function qm(e,t,o){for(let i=0;i<t.length;i++)jm(e,t[i]);for(let i=t.length-1;i>=0;i--)e.splice(o,0,t[i])}function Ym(e){const t=[],o=e=>{for(let i=0;i<e.length;i++){const s=e[i];zm(s)?t.push(s):Wm(s)&&o(s.getChildren())}};return o(e),t}function Qm(e){return e.reduce(((e,t)=>e+t.getActualWidth()),0)}function Jm(e,t,o){const i={};if(!t)return;cf(null,t,(e=>{i[e.getInstanceId()]=e})),o&&cf(null,o,(e=>{i[e.getInstanceId()]=null}));const s=Object.values(i).filter((e=>null!=e));e.context.destroyBeans(s)}function Zm(e){return e.getId().startsWith(Tt)}function Xm(e){return("string"==typeof e?e:"getColId"in e?e.getColId():e.colId)?.startsWith("ag-Grid-SelectionColumn")??!1}function ef(e){return("string"==typeof e?e:"getColId"in e?e.getColId():e.colId)?.startsWith("ag-Grid-RowNumbersColumn")??!1}function tf(e){let t=[];return e instanceof Array?t=e:"string"==typeof e&&(t=e.split(",")),t}function of(e){return"gridOptionsUpdated"===e?"gridOptionsChanged":e}function sf(e,t){const o=e===t,i=e.getColDef()===t,s=e.getColId()==t;return o||i||s}function nf(e,t=null,o,i,s){const n=new Dt,{existingCols:r,existingGroups:a,existingColKeys:l}=function(e){const t=[],o=[],i=[];return e&&cf(null,e,(e=>{if(Wm(e)){const t=e;o.push(t)}else{const o=e;i.push(o.getId()),t.push(o)}})),{existingCols:t,existingGroups:o,existingColKeys:i}}(i);n.addExistingKeys(l);const d=rf(e,t,0,o,r,n,a,s),{colGroupSvc:c}=e,h=c?.findMaxDepth(d,0)??0,u=c?c.balanceColumnTree(d,0,h,n):d;return cf(null,u,((e,t)=>{Wm(e)&&e.setupExpandable(),e.originalParent=t})),{columnTree:u,treeDepth:h}}function rf(e,t,o,i,s,n,r,a){if(!t)return[];const{colGroupSvc:l}=e,d=new Array(t.length);for(let c=0;c<d.length;c++){const h=t[c];l&&void 0!==h.children?d[c]=l.createProvidedColumnGroup(i,h,o,s,n,r,a):d[c]=af(e,i,h,s,n,a)}return d}function af(e,t,o,i,s,n){const r=function(e,t){if(t)for(let o=0;o<t.length;o++){const i=t[o].getUserProvidedColDef();if(i)if(null==e.colId){if(null==e.field){if(i===e)return{idx:o,column:t[o]}}else if(i.field===e.field)return{idx:o,column:t[o]}}else if(t[o].getId()===e.colId)return{idx:o,column:t[o]}}}(o,i);r&&i?.splice(r.idx,1);let a=r?.column;if(a){const t=df(e,o,a.getColId());a.setColDef(t,o,n),function(e,t,o,i){lf(e,t,o.hide,o.sort,o.sortIndex,o.pinned,o.flex,i);const s=t.getFlex();if(!(null!=s&&s>0))if(null!=o.width)t.setActualWidth(o.width,i);else{const e=t.getActualWidth();t.setActualWidth(e,i)}}(e,a,t,n)}else{const i=s.getUniqueKey(o.colId,o.field);a=new Ft(df(e,o,i),o,i,t),e.context.createBean(a)}return e.dataTypeSvc?.addColumnListeners(a),a}function lf(e,t,o,i,s,n,r,a){const{sortSvc:l,pinnedCols:d,colFlex:c}=e;void 0!==o&&t.setVisible(!o,a),l&&(l.updateColSort(t,i,a),void 0!==s&&l.setColSortIndex(t,s)),void 0!==n&&d?.setColPinned(t,n),void 0!==r&&c?.setColFlex(t,r)}function df(e,t,o,i){const{gos:s,dataTypeSvc:n}=e,r={};Ep(r,s.get("defaultColDef"),!1,!0);const a=function(e,t,o,i){const s=e.dataTypeSvc?.updateColDefAndGetColumnType(t,o,i),n=o.type??s??t.type;return t.type=n,n?tf(n):void 0}(e,r,t,o);a&&function(e,t,o){if(!t.length)return;const i=Object.assign({},Et),s=e.gos.get("columnTypes")||{};for(const n of Object.keys(s)){const e=s[n];n in i?Ug(34,{key:n}):(e.type&&Ug(35),i[n]=e)}t.forEach((e=>{const t=i[e.trim()];t?Ep(o,t,!1,!0):Ug(36,{t:e})}))}(e,a,r);const l=r.cellDataType;Ep(r,t,!1,!0),void 0!==l&&(r.cellDataType=l);const d=s.get("autoGroupColumnDef"),c=gm(s);return t.rowGroup&&d&&c&&Ep(r,{sort:d.sort,initialSort:d.initialSort},!1,!0),n&&(n.postProcess(r),n.validateColDef(r)),s.validateColDef(r,o,i),r}function cf(e,t,o){if(t)for(let i=0;i<t.length;i++){const s=t[i];Wm(s)&&cf(s,s.getChildren(),o),o(s,e)}}function hf(e,t){const o=[],i=[],s=[];return e.forEach((e=>{const t=e.getColDef().lockPosition;"right"===t?s.push(e):"left"===t||!0===t?o.push(e):i.push(e)})),t.get("enableRtl")?[...s,...i,...o]:[...o,...i,...s]}function uf(e,t){let o=!0;return cf(null,t,(t=>{if(!Wm(t))return;const i=t,s=i.getColGroupDef();if(!s||!s.marryChildren)return;const n=[];i.getLeafColumns().forEach((t=>{const o=e.indexOf(t);n.push(o)})),Math.max.apply(Math,n)-Math.min.apply(Math,n)>i.getLeafColumns().length-1&&(o=!1)})),o}function pf(e,t){if(!e||0==e.length)return;const o=t(e[0]);for(let i=1;i<e.length;i++)if(o!==t(e[i]))return;return o}function gf(e,t,o){if(!t.length)return;const i=1===t.length?t[0]:null,s=pf(t,(e=>e.getPinned()));e.dispatchEvent({type:"columnPinned",pinned:null!=s?s:null,columns:t,column:i,source:o})}function mf(e,t,o,i,s=null){t?.length&&e.dispatchEvent({type:"columnResized",columns:t,column:1===t.length?t[0]:null,flexColumns:s,finished:o,source:i})}function ff(e,t,o){const{colModel:i,rowGroupColsSvc:s,pivotColsSvc:n,autoColSvc:r,selectionColSvc:a,colAnimation:l,visibleCols:d,pivotResultCols:c,environment:h,valueColsSvc:u,eventSvc:p,gos:g}=e,m=i.getColDefCols()??[],f=a?.getColumns();if(!m?.length&&!f?.length)return!1;if(t?.state&&!t.state.forEach)return Ug(32),!1;const v=(i,r,a,l,d)=>{if(!i)return;const c=Mt(r,t.defaultState),p=c("flex").value1;if(lf(e,i,c("hide").value1,c("sort").value1,c("sortIndex").value1,c("pinned").value1,p,o),null==p){const e=c("width").value1;if(null!=e){const t=i.getColDef().minWidth??h.getDefaultColumnMinWidth();null!=t&&e>=t&&i.setActualWidth(e,o)}}!d&&i.isPrimary()&&(u?.syncColumnWithState(i,o,c),s?.syncColumnWithState(i,o,c,a),n?.syncColumnWithState(i,o,c,l))},C=(l,c,h)=>{const u=vf(e,o),m=c.slice(),f={},C={},w=[],b=[],y=[];let S=0;const R=s?.columns.slice()??[],F=n?.columns.slice()??[];l.forEach((e=>{const t=e.colId;if(t.startsWith("ag-Grid-AutoColumn"))return w.push(e),void y.push(e);if(Xm(t))return b.push(e),void y.push(e);const o=h(t);o?(v(o,e,f,C,!1),jm(m,o)):(y.push(e),S+=1)}));const x=e=>v(e,null,f,C,!1);m.forEach(x),s?.sortColumns(kt.bind(s,f,R)),n?.sortColumns(kt.bind(n,C,F)),i.refreshCols(!1);const E=(e,t,o=[])=>{t.forEach((t=>{const i=e(t.colId);jm(o,i),v(i,t,null,null,!0)})),o.forEach(x)};return E((e=>r?.getColumn(e)??null),w,r?.getColumns()?.slice()),E((e=>a?.getColumn(e)??null),b,a?.getColumns()?.slice()),function(e,t,o){if(!e.applyOrder||!e.state)return;const i=[];e.state.forEach((e=>{null!=e.colId&&i.push(e.colId)})),function(e,t,o,i){if(null==e)return;let s=[];const n={};t.forEach((t=>{if(n[t])return;const o=e.map[t];o&&(s.push(o),n[t]=!0)}));let r=0;e.list.forEach((e=>{const t=e.getColId();null==n[t]&&(t.startsWith("ag-Grid-AutoColumn")?s.splice(r++,0,e):s.push(e))})),s=hf(s,i),uf(s,o.getColTree())?e.list=s:Ug(39)}(t.cols,i,t,o)}(t,i,g),d.refresh(o),p.dispatchEvent({type:"columnEverythingChanged",source:o}),u(),{unmatchedAndAutoStates:y,unmatchedCount:S}};l?.start();let{unmatchedAndAutoStates:w,unmatchedCount:b}=C(t.state||[],m,(e=>i.getColDefCol(e)));return(w.length>0||yp(t.defaultState))&&(b=C(w,c?.getPivotResultCols()?.list??[],(e=>c?.getPivotResultCol(e)??null)).unmatchedCount),l?.finish(),0===b}function vf(e,t){const{rowGroupColsSvc:o,pivotColsSvc:i,valueColsSvc:s,colModel:n,sortSvc:r,eventSvc:a}=e,l={rowGroupColumns:o?.columns.slice()??[],pivotColumns:i?.columns.slice()??[],valueColumns:s?.columns.slice()??[]},d=Cf(e),c={};return d.forEach((e=>{c[e.colId]=e})),()=>{const s=(e,o,i,s)=>{if($m(o.map(s),i.map(s)))return;const n=new Set(o);i.forEach((e=>{n.delete(e)||n.add(e)}));const r=[...n];a.dispatchEvent({type:e,columns:r,column:1===r.length?r[0]:null,source:t})},h=e=>{const t=[];return n.forAllCols((o=>{const i=c[o.getColId()];i&&e(i,o)&&t.push(o)})),t},u=e=>e.getColId();s("columnRowGroupChanged",l.rowGroupColumns,o?.columns??[],u),s("columnPivotChanged",l.pivotColumns,i?.columns??[],u);const p=h(((e,t)=>{const o=null!=e.aggFunc,i=o!=t.isValueActive(),s=o&&e.aggFunc!=t.getAggFunc();return i||s}));p.length>0&&function(e,t,o,i){e.dispatchEvent({type:t,columns:o,column:o&&1==o.length?o[0]:null,source:i})}(a,"columnValueChanged",p,t),mf(a,h(((e,t)=>e.width!=t.getActualWidth())),!0,t),gf(a,h(((e,t)=>e.pinned!=t.getPinned())),t),function(e,t,o){if(!t.length)return;const i=1===t.length?t[0]:null,s=pf(t,(e=>e.isVisible()));e.dispatchEvent({type:"columnVisible",visible:s,columns:t,column:i,source:o})}(a,h(((e,t)=>e.hide==t.isVisible())),t);const g=h(((e,t)=>e.sort!=t.getSort()||e.sortIndex!=t.getSortIndex()));g.length>0&&r?.dispatchSortChangedEvents(t,g),function(e,t,o,i,s){const n={};t.forEach((e=>n[e.colId]=e));const r={};e.forEach((e=>{n[e.colId]&&(r[e.colId]=!0)}));const a=e.filter((e=>r[e.colId])),l=t.filter((e=>r[e.colId])),d=[];l.forEach(((e,t)=>{const o=a&&a[t];if(o&&o.colId!==e.colId){const e=i.getCol(o.colId);e&&d.push(e)}})),d.length&&s.dispatchEvent({type:"columnMoved",columns:d,column:1===d.length?d[0]:null,finished:!0,source:o})}(d,Cf(e),t,n,a)}}function Cf(e){const{colModel:t,rowGroupColsSvc:o,pivotColsSvc:i}=e;if(Sp(t.getColDefCols())||!t.isAlive())return[];const s=o?.columns,n=i?.columns,r=[];t.forAllCols((e=>(e=>{const t=e.isRowGroupActive()&&s?s.indexOf(e):null,o=e.isPivotActive()&&n?n.indexOf(e):null,i=e.isValueActive()?e.getAggFunc():null,a=null!=e.getSort()?e.getSort():null,l=null!=e.getSortIndex()?e.getSortIndex():null;r.push({colId:e.getColId(),width:e.getActualWidth(),hide:!e.isVisible(),pinned:e.getPinned(),sort:a,sortIndex:l,aggFunc:i,rowGroup:e.isRowGroupActive(),rowGroupIndex:t,pivot:e.isPivotActive(),pivotIndex:o,flex:e.getFlex()??null})})(e)));const a=new Map(t.getCols().map(((e,t)=>[e.getColId(),t])));return r.sort(((e,t)=>(a.has(e.colId)?a.get(e.colId):-1)-(a.has(t.colId)?a.get(t.colId):-1))),r}function wf(e){const t=(e,t)=>null!=e?e:null!=t?t:null,o=e.getColDef(),i=t(o.sort,o.initialSort),s=t(o.sortIndex,o.initialSortIndex),n=t(o.hide,o.initialHide),r=t(o.pinned,o.initialPinned),a=t(o.width,o.initialWidth),l=t(o.flex,o.initialFlex);let d=t(o.rowGroupIndex,o.initialRowGroupIndex),c=t(o.rowGroup,o.initialRowGroup);null!=d||null!=c&&0!=c||(d=null,c=null);let h=t(o.pivotIndex,o.initialPivotIndex),u=t(o.pivot,o.initialPivot);null!=h||null!=u&&0!=u||(h=null,u=null);const p=t(o.aggFunc,o.initialAggFunc);return{colId:e.getColId(),sort:i,sortIndex:s,hide:n,pinned:r,width:a,flex:l,rowGroup:c,rowGroupIndex:d,pivot:u,pivotIndex:h,aggFunc:p}}function bf(e,t,o){return o&&e.addDestroyFunc((()=>t.destroyBean(o))),o??e}function yf(e){return"object"==typeof e&&!!e.component}function Sf(e,t,o,i){const{name:s}=o;let n,r,a,l,d,c;if(t){const o=t,h=o[s+"Selector"],u=h?h(i):null,p=t=>{"string"==typeof t?n=t:null!=t&&!0!==t&&(e.isFrameworkComponent(t)?a=t:r=t)};u?(p(u.component),l=u.params,d=u.popup,c=u.popupPosition):p(o[s])}return{compName:n,jsComp:r,fwComp:a,paramsFromSelector:l,popupFromSelector:d,popupPositionFromSelector:c}}function Rf(e,t,o){return e.getCompDetails(t,$t,void 0,o)}function Ff(e,t,o){return e.getCompDetails(t,Kt,"agSkeletonCellRenderer",o,!0)}function xf(e,t,o){return e.getCompDetails(t,jt,"agCellEditor",o,!0)}function Ef(e,t){return Sf(e,t,Jt)}function Df(e,t,o){return e.mergeParams(t,Jt,o)}function Pf(e){const t=e;return null!=t&&null!=t.getFrameworkComponentInstance?t.getFrameworkComponentInstance():e}function Tf(e){ro||(ro=e.version);const t=e=>`You are using incompatible versions of AG Grid modules. Major and minor versions should always match across modules. ${e} Please update all modules to the same version.`;if(e.version?function(e){const[t,o]=e.version.split(".")||[],[i,s]=ro.split(".")||[];return t===i&&o===s}(e)||Lg(t(`'${e.moduleName}' is version ${e.version} but the other modules are version ${ro}.`)):Lg(t(`'${e.moduleName}' is incompatible.`)),e.validate){const t=e.validate();t.isValid||Lg(`${t.message}`)}}function Mf(e,t,o=!1){o||(ao=!0),Tf(e);const i=e.rowModels??["all"];let s;io.add(e),void 0!==t?(lo=!0,void 0===no[t]&&(no[t]={}),s=no[t]):s=so,i.forEach((t=>{void 0===s[t]&&(s[t]={}),s[t][e.moduleName]=e})),e.dependsOn&&e.dependsOn.forEach((e=>Mf(e,t,o)))}function kf(e,t,o){const i=o=>!!so[o]?.[e]||!!no[t]?.[o]?.[e];return i(o)||i("all")}function Af(){return lo}function If(e,t){const o=e.column===t.column,i=e.rowPinned===t.rowPinned,s=e.rowIndex===t.rowIndex;return o&&i&&s}function Lf(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 Bf(e,t){const o=e.spannedRowRenderer?.getCellByPosition(t);if(o)return o;const i=e.rowRenderer.getRowByPosition(t);return i?i.getCellCtrl(t.column):null}function Of(e,t){const{rowIndex:o,rowPinned:i}=t,{pageBounds:s,pinnedRowModel:n,rowModel:r}=e;return 0===o?"top"===i?null:"bottom"===i&&r.isRowsToRender()?{rowIndex:s.getLastRow(),rowPinned:null}:n?.isRowsToRender("top")?{rowIndex:n.getPinnedTopRowCount()-1,rowPinned:"top"}:null:Hf(e,i?void 0:r.getRow(o),!0)??{rowIndex:o-1,rowPinned:i}}function Gf(e,t){const{rowIndex:o,rowPinned:i}=t,{pageBounds:s,pinnedRowModel:n,rowModel:r}=e;return function(e,t){const{rowPinned:o,rowIndex:i}=t,{pinnedRowModel:s,pageBounds:n}=e;return"top"===o?(s?.getPinnedTopRowCount()??0)-1<=i:"bottom"===o?(s?.getPinnedBottomRowCount()??0)-1<=i:n.getLastRow()<=i}(e,t)?"bottom"===i?null:"top"===i&&r.isRowsToRender()?{rowIndex:s.getFirstRow(),rowPinned:null}:n?.isRowsToRender("bottom")?{rowIndex:0,rowPinned:"bottom"}:null:Hf(e,i?void 0:r.getRow(o))??{rowIndex:o+1,rowPinned:i}}function Hf(e,t,o=!1){const{gos:i,rowRenderer:s}=e;if(!t?.sticky||!pm(i))return;const n=s.getStickyTopRowCtrls(),r=s.getStickyBottomRowCtrls(),a=!r.some((e=>e.rowNode.rowIndex===t.rowIndex)),l=a?n:r,d=(o?-1:1)*(a?-1:1);let c;for(let h=0;h<l.length;h++)if(l[h].rowNode.rowIndex===t.rowIndex){c=l[h+d];break}return c?{rowIndex:c.rowNode.rowIndex,rowPinned:null}:void 0}function Vf(e,t={}){const{rowIndex:o,rowId:i,rowCtrl:s,rowPinned:n}=t;if(s)return s;const{rowModel:r,rowRenderer:a}=e;let{rowNode:l}=t;return l||(i?l=function(e,t,o){const{rowModel:i,pinnedRowModel:s}=e;let n;return n??(n=i?.getRowNode(t)),o?n??(n=s?.getPinnedRowById(t,o)):(n??(n=s?.getPinnedRowById(t,"top")),n??(n=s?.getPinnedRowById(t,"bottom"))),n}(e,i,n):null!=o&&(l=r.getRow(o))),a.getRowCtrls(l?[l]:[])?.[0]}function Nf(e,t={}){const{cellCtrl:o,colId:i,columnId:s,column:n}=t;if(o)return o;const r=e.colModel.getCol(i??s??Wf(n)),a=t.rowCtrl??Vf(e,t),l=a?.getCellCtrl(r)??void 0;if(l)return l;const d=t.rowNode??a?.rowNode;return d?e.rowRenderer.getCellCtrls([d],[r])?.[0]:void 0}function zf(e){const{editSvc:t}=e;t?.isBatchEditing()?Zf(e):t?.stopEditing(void 0,{source:"api"})}function Wf(e){if(e)return"string"==typeof e?e:e.getColId()}function _f(e,t={}){const o=[],i=e.rowRenderer.getCellCtrls(t.rowNodes,t.columns);for(const s of i){const e=s.comp?.getCellEditor();e&&o.push({ctrl:s,editor:Pf(e)})}return o}function Uf({pendingValue:e,sourceValue:t}){return e===vo&&(e=t),e!==t}function $f(e,t,o){const{key:i,event:s,cellStartedEdit:n,silent:r}=o??{},a=Nf(e,t),l=a?.comp?.getCellEditor(),d=jf(e,t,i,n),c=e.editModelSvc?.getEdit(t);let h=1===i?.length?i:d.value;if(void 0===h&&(h=c?.sourceValue),e.editModelSvc?.setEdit(t,{editorValue:h,state:"editing"}),l)return void l.refresh?.(d);const u=t.column.getColDef(),p=xf(e.userCompFactory,u,d),g=null!=p?.popupFromSelector?p.popupFromSelector:!!u.cellEditorPopup,m=null!=p?.popupPositionFromSelector?p.popupPositionFromSelector:u.cellEditorPopupPosition;Yf(p.params,s),a&&(a.editCompDetails=p,a.comp?.setEditDetails(p,g,m,e.gos.get("reactiveCustomComponents")),a?.rowCtrl?.refreshRow({suppressFlash:!0}),r||e.editSvc?.dispatchCellEvent(t,s,"cellEditingStarted"))}function Kf(e){return(e.getValidationErrors?.()?.length??0)>0?{editorValueExists:!1}:{editorValue:e.getValue(),editorValueExists:!0}}function jf(e,t,o,i){const{valueSvc:s,gos:n,editSvc:r}=e,a=Nf(e,t),l=t.rowNode?.rowIndex??void 0,d=r?.isBatchEditing(),c=e.colModel.getCol(t.column.getId()),{rowNode:h,column:u}=t,p=a.comp?.getCellEditor(),g=r?.getCellDataValue(t,!1)??(p?Kf(p)?.editorValue:void 0);return Im(n,{value:g===vo?s.getValueForDisplay(c,h)?.value:g,eventKey:o??null,column:u,colDef:u.getColDef(),rowIndex:l,node:h,data:h.data,cellStartedEdit:i??!1,onKeyDown:a?.onKeyDown.bind(a),stopEditing:o=>{r.stopEditing(t,{source:d?"ui":"api",suppressNavigateAfterEdit:o}),Xf(e,t)},eGridCell:a?.eGui,parseValue:e=>s.parseValue(c,h,e,a?.value),formatValue:a?.formatValue.bind(a),validate:()=>{r?.validateEdit()}})}function qf(e,t){const{editModelSvc:o}=e;o?.getEditMap().forEach(((e,i)=>{e.forEach(((e,s)=>{(t||"editing"!==e.state&&e.pendingValue!==vo)&&(Uf(e)||"editing"===e.state&&!t||o?.removeEdits({rowNode:i,column:s}))}))}))}function Yf(e,t){return t instanceof KeyboardEvent&&"agNumberCellEditor"===e.column.getColDef().cellEditor?e.suppressPreventDefault=["-","+",".","e"].includes(t?.key??"")||e.suppressPreventDefault:t?.preventDefault?.(),e}function Qf(e,t){e.editModelSvc?.getEditPositions().forEach((o=>{const i=Nf(e,o);if(!i)return;const s=i.comp.getCellEditor();if(!s)return;const{editorValue:n,editorValueExists:r}=Kf(s);Jf(e,o,t,n,0,!r)}))}function Jf(e,t,o,i,s,n){const{editModelSvc:r,valueSvc:a}=e;if(!r)return;const{rowNode:l,column:d}=t;if(!l||!d)return;const c=!!Nf(e,t)?.comp?.getCellEditor();let h=r.getEdit(t,!0);h?.sourceValue||(h=r.setEdit(t,{sourceValue:a.getValue(d,l,void 0,"api"),pendingValue:vo,state:c?"editing":"changed"})),r.setEdit(t,{editorValue:n?h.sourceValue:i,state:c?"editing":"changed"}),o&&function(e,t){const{editModelSvc:o}=e,i=o?.getEdit(t,!0);o?.setEdit(t,{pendingValue:i?.editorValue})}(e,t)}function Zf(e,t,o){t||(t=e.editModelSvc?.getEditPositions()),t.forEach((t=>Xf(e,t,o)))}function Xf(e,t,o){const{editSvc:i,editModelSvc:s}=e,{rowNode:n,column:r}=t,a=Nf(e,t);if(!a)return void(s?.hasEdits(t)&&n&&r&&s?.setEdit(t,{state:"changed"}));const{comp:l}=a;if(l&&!l.getCellEditor())return;const d=l?.getCellEditor()?.getValidationErrors?.(),c=s?.getCellValidationModel();d?.length?c?.setCellValidation(t,{errorMessages:d}):c?.clearCellValidation(t),s?.getEdit(t)&&s?.setEdit(t,{state:"changed"}),l?.setEditDetails(),l?.refreshEditStyles(!1,!1),a?.refreshCell({force:!0,suppressFlash:!0});const h=s?.getEdit(t);"changed"!==h?.state||o?.silent||i?.dispatchCellEvent(t,o?.event,"cellEditingStopped",{valueChanged:Uf(h),newValue:h?.pendingValue,oldValue:h?.sourceValue})}function ev(e){const t=_f(e),o=new mo,{ariaAnnounce:i,localeSvc:s,editModelSvc:n,gos:r}=e,a="fullRow"===r.get("editType"),l=wp(s)("ariaValidationErrorPrefix","Cell Editor Validation");for(const c of t){const{ctrl:e,editor:t}=c,{rowNode:s,column:n}=e,r=t.getValidationErrors?.()??[],a=t.getValidationElement?.(!1)||!t.isPopup?.()&&e.eGui;if(a){const e=null!=r&&r.length>0,t=e?r.join(". "):"";Tp(a,"invalid",e),e&&i.announceValue(`${l} ${r}`,"editorValidation"),a instanceof HTMLInputElement?a.setCustomValidity(t):a.classList.toggle("invalid",e)}r?.length>0&&o.setCellValidation({rowNode:s,column:n},{errorMessages:r})}Qf(e,!1),n?.setCellValidationModel(o);const d=new Set;for(const{ctrl:c}of t)d.add(c.rowCtrl);if(a){const t=wo(e);n?.setRowValidationModel(t)}for(const c of d.values()){c.rowEditStyleFeature?.applyRowStyles();for(const e of c.getAllCellCtrls())e.tooltipFeature?.refreshTooltip(!0),e.editorTooltipFeature?.refreshTooltip(!0),e.editStyleFeature?.applyCellStyles?.()}}function tv(e,t,o,i){return Sp(e)?[]:function(e,t,o,i,s){if(Sp(e))return[];let n;return n="function"==typeof e?e(function(e,t,o,i){return Im(t,{colDef:e,column:o,columnGroup:i})}(t,o,i,s)):e,"string"==typeof n?[n]:Array.isArray(n)?[...n]:[]}(e.headerClass,e,t,o,i)}function ov(e,t,o){e.toggleCss(bo,o.isColAtEdge(t,"first")),e.toggleCss(yo,o.isColAtEdge(t,"last"))}function iv(e){return!(!e.rowPinned||!e.pinnedSibling)}function sv(e,t,o,i){const s="top"===t;if(!o)return sv(e,t,s?e.getPinnedTopRow(0):e.getPinnedBottomRow(0),i);if(!i){const i=s?e.getPinnedTopRowCount():e.getPinnedBottomRowCount();return sv(e,t,o,s?e.getPinnedTopRow(i-1):e.getPinnedBottomRow(i-1))}let n=!1,r=!1;const a=[];return e.forEachPinnedRow(t,(e=>e!==o||n?n&&e===i?(r=!0,void a.push(e)):void(n&&!r&&a.push(e)):(n=!0,void a.push(e)))),a}function nv(e){const t=Ro,o="keydown"===e.type;o&&(e.ctrlKey||e.metaKey||e.altKey)||t!==o&&(Ro=o)}function rv(e){const t=nm(e);var o;return o=t,Fo>0||(o.addEventListener("keydown",nv),o.addEventListener("mousedown",nv)),Fo++,()=>{Fo--,function(e){Fo>0||(e.removeEventListener("keydown",nv),e.removeEventListener("mousedown",nv))}(t)}}function av(e,t,o=!1){const i=Ze;let s=Xe;t&&(s+=", "+t),o&&(s+=', [tabindex="-1"]');const n=Array.prototype.slice.apply(e.querySelectorAll(i)).filter((e=>pg(e))),r=Array.prototype.slice.apply(e.querySelectorAll(s));return r.length?(a=r,n.filter((e=>-1===a.indexOf(e)))):n;var a}function lv(e,t=!1,o=!1,i=!1){const s=av(e,i?".ag-tab-guard":null,o),n=t?Um(s):s[0];return!!n&&(n.focus({preventScroll:!0}),!0)}function dv(e,t,o,i){const s=av(t,o?':not([tabindex="-1"])':null),n=lm(e);let r;r=o?s.findIndex((e=>e.contains(n))):s.indexOf(n);const a=r+(i?-1:1);return a<0||a>=s.length?null:s[a]}function cv(e,t=5){let o=0;for(;e&&null===Yp(e)&&++o<=t;)e=e.parentElement;return null===Yp(e)?null:e}function hv(e){return e.gos.get("suppressHeaderFocus")||!!e.overlays?.isExclusive()}function uv(e){return e.gos.get("suppressCellFocus")||!!e.overlays?.isExclusive()}function pv(e,t,o=!1){const i=e.ctrlsSvc.get("gridCtrl");return!(o||!i.focusNextInnerContainer(t))||((o||!t&&!i.isDetailGrid())&&i.forceFocusOutOfContainer(t),!1)}function gv(e,t,o){if(0===o)return!1;const i=Math.abs(e.clientX-t.clientX),s=Math.abs(e.clientY-t.clientY);return Math.max(i,s)<=o}function mv({gos:e},t){return 2===t.button||t.ctrlKey&&e.get("allowContextMenuWithControlKey")}function fv(e,t){return Om(e,t,Po)}function vv(e,t){t[ko]=e.gridInstanceId}function Cv(e,t){return wv(e,t.target)}function wv(e,t){let o=t;for(;o;){const t=o[ko];if(yp(t))return t===e.gridInstanceId;o=o.parentElement}return!1}function bv(e,t){return e+"_"+t}function yv(e){return e instanceof Lo}function Sv(e,t,o){return Im(t,{type:o,node:e,data:e.data,rowIndex:e.rowIndex,rowPinned:e.rowPinned})}function Rv(e,t){const o=e.filterUi;if(!o)return null;if(o.created)return o.promise;if(t)return null;const i=o.create(o.refreshed),s=o;return s.created=!0,s.promise=i,i}function Fv(e,t,o,i,s){e?.refresh?.({...t,model:o,state:i,source:s})}function xv(e,t,o){const i=e();i?.created&&i.promise.then((e=>{const s=t();Fv(e,i.filterParams,s,o()??{model:s},"ui")}))}function Ev(e,t,o,i,s,n){let r,a,l=!1;switch(e){case"apply":{const e=i();a=e?.model??null,r={state:e?.state,model:a},l=!0;break}case"clear":r={model:null};break;case"reset":r={model:null},l=!0,a=null;break;case"cancel":r={model:o()}}s(r),l?n(a):xv(t,o,i)}function Dv(e,t){return e[t]??null}function Pv(e,t,o){return function(e,t,o,i){const s=t[o];return e.getLocaleTextFunc()(o,"function"==typeof s?s(i):s,i)}(e,zo,t,o)}function Tv(e,t){const{debounceMs:o}=e;return Mv(e)?(null!=o&&Ug(71),0):o??t}function Mv(e){return(e.buttons?.indexOf("apply")??-1)>=0}function kv(e,t){return e.toString().padStart(t,"0")}function Av(e,t=!0,o="-"){if(!e)return null;let i=[e.getFullYear(),e.getMonth()+1,e.getDate()].map((e=>kv(e,2))).join(o);return t&&(i+=$o+[e.getHours(),e.getMinutes(),e.getSeconds()].map((e=>kv(e,2))).join(":")),i}function Iv(e,t=!0){return e?t?[String(e.getFullYear()),String(e.getMonth()+1),kv(e.getDate(),2),kv(e.getHours(),2),`:${kv(e.getMinutes(),2)}`,`:${kv(e.getSeconds(),2)}`]:[e.getFullYear(),e.getMonth()+1,kv(e.getDate(),2)].map(String):null}function Lv(e,t){if(null==t)return Av(e,!1);const o=kv(e.getFullYear(),4),i=["January","February","March","April","May","June","July","August","September","October","November","December"],s=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],n={YYYY:()=>o.slice(o.length-4,o.length),YY:()=>o.slice(o.length-2,o.length),Y:()=>`${e.getFullYear()}`,MMMM:()=>i[e.getMonth()],MMM:()=>i[e.getMonth()].slice(0,3),MM:()=>kv(e.getMonth()+1,2),Mo:()=>`${e.getMonth()+1}${jo(e.getMonth()+1)}`,M:()=>`${e.getMonth()+1}`,Do:()=>`${e.getDate()}${jo(e.getDate())}`,DD:()=>kv(e.getDate(),2),D:()=>`${e.getDate()}`,dddd:()=>s[e.getDay()],ddd:()=>s[e.getDay()].slice(0,3),dd:()=>s[e.getDay()].slice(0,2),do:()=>`${e.getDay()}${jo(e.getDay())}`,d:()=>`${e.getDay()}`},r=new RegExp(Object.keys(n).join("|"),"g");return t.replace(r,(e=>e in n?n[e]():e))}function Bv(e,t=!1){return!!Ov(e,t)}function Ov(e,t=!1){if(!e)return null;if(!Ko.test(e))return null;const[o,i]=e.split($o);if(!o)return null;const s=o.split("-").map((e=>parseInt(e,10)));if(3!==s.filter((e=>!isNaN(e))).length)return null;const[n,r,a]=s,l=new Date(n,r-1,a);if(l.getFullYear()!==n||l.getMonth()!==r-1||l.getDate()!==a)return null;if(!i&&t)return null;if(!i||"00:00:00"===i)return l;const[d,c,h]=i.split(":").map((e=>parseInt(e,10)));if(d>=0&&d<24)l.setHours(d);else if(t)return null;if(c>=0&&c<60)l.setMinutes(c);else if(t)return null;if(h>=0&&h<60)l.setSeconds(h);else if(t)return null;return l}function Gv(e,t){return null==e?-1:null==t?1:parseFloat(e)-parseFloat(t)}function Hv(e){return e instanceof Date&&!isNaN(e.getTime())}function Vv(e,t,o,i,s,n){if(null==o&&null==t)return;const r={},a={},l=(e,t)=>{e.split(" ").forEach((e=>{""!=e.trim()&&t(e)}))};if(o){const t=Object.keys(o);for(let s=0;s<t.length;s++){const n=t[s],d=o[n];let c;"string"==typeof d?c=!e||e.evaluate(d,i):"function"==typeof d&&(c=d(i)),l(n,(e=>{c?r[e]=!0:a[e]=!0}))}}t&&n&&Object.keys(t).forEach((e=>l(e,(e=>{r[e]||(a[e]=!0)})))),n&&Object.keys(a).forEach(n),Object.keys(r).forEach(s)}function Nv(e){if(e.group)return e.level;const t=e.parent;return t?t.level+1:0}function zv(e){return!(e.altKey||e.ctrlKey||e.metaKey)&&1===e.key?.length}function Wv(e,t,o,i,s){const n=i?i.getColDef().suppressKeyboardEvent:void 0;if(!n)return!1;const r=Im(e,{event:t,editing:s,column:i,node:o,data:o.data,colDef:i.getColDef()});return!(!n||!n(r))}function _v(e){return`ag-${Kv(e).name}-viewport`}function Uv(e){const t=Kv(e);return t.container??`ag-${t.name}-container`}function $v(e){return`ag-${Kv(e).name}-spanned-cells-container`}function Kv(e){return Ii[e]}function jv(e){return e.ctrlsSvc.getHeaderRowContainerCtrl()?.getRowCount()??0}function qv(e){const t=[],o=e.ctrlsSvc.getHeaderRowContainerCtrls();for(const i of o){if(!i)continue;const o=i.getGroupRowCount()||0;for(let s=0;s<o;s++){const o=i.getGroupRowCtrlAtIndex(s),n=t[s];if(o){const i=Yv(e,o);(null==n||i>n)&&(t[s]=i)}}}return t}function Yv(e,t){let o=e.colModel.isPivotMode()?function(e){return e.gos.get("pivotGroupHeaderHeight")??Xv(e)}(e):Xv(e);const i=t.getHeaderCellCtrls();for(const s of i){const{column:e}=s,t=e.getAutoHeaderHeight();null!=t&&t>o&&e.isAutoHeaderHeight()&&(o=t)}return o}function Qv(e){let t=e.colModel.isPivotMode()?function(e){return e.gos.get("pivotHeaderHeight")??Jv(e)}(e):Jv(e);return e.colModel.forAllCols((e=>{const o=e.getAutoHeaderHeight();null!=o&&o>t&&e.isAutoHeaderHeight()&&(t=o)})),t}function Jv(e){return e.gos.get("headerHeight")??e.environment.getDefaultHeaderHeight()}function Zv(e){return e.gos.get("floatingFiltersHeight")??Jv(e)}function Xv(e){return e.gos.get("groupHeaderHeight")??Jv(e)}function eC(e){return"function"==typeof e?.getAnchorElementForMenu&&"function"==typeof e.onMenuKeyboardShortcut}function tC(e,t,o){e.menuVisible!==t&&(e.menuVisible=t,e.dispatchColEvent("menuVisibleChanged",o))}function oC(e){const{enterpriseMenuFactory:t,filterMenuFactory:o,gos:i}=e;return t&&Am(i)?t:o}function iC(e,t,o){let i=null;"smallDown"===e?Ug(262):"smallLeft"===e?Ug(263):"smallRight"===e&&Ug(264);const s=o&&o.getColDef().icons;if(s&&(i=s[e]),t.gos&&!i){const o=t.gos.get("icons");o&&(i=o[e])}if(i){let t;if("function"==typeof i)t=i();else{if("string"!=typeof i)return void Ug(38,{iconName:e});t=i}return"string"==typeof t?gg(t):xg(t)?t:void Ug(133,{iconName:e})}{const o=t.registry.getIcon(e);return o||t.validation?.validateIcon(e),Mg({tag:"span",cls:`ag-icon ag-icon-${o??e}`,role:"presentation",attrs:{unselectable:"on"}})}}function sC(e){if(-1===e.level)return!0;const t=e.parent;return!!t?.childrenAfterSort?.some((t=>t==e))&&sC(t)}function nC(e,t){const{gos:o,rowModel:i,filterManager:s}=e;return Qg(o)?!i.getRowNode(t.id):s?.isAnyFilterPresent()?!sC(t):!!o.get("pivotMode")&&!t.group}function rC(e){return!!e.pinnedSibling&&function(e){return!!e.footer&&-1===e.level}(e.pinnedSibling)}function aC(e,t,o){if(t.pinnedSibling)return t.pinnedSibling;const i=function(e,t){const o=new Oo(t);return Object.keys(e).forEach((t=>{Go.has(t)||(o[t]=e[t])})),o.oldRowTop=null,o}(t,e);return i.setRowTop(null),i.setRowIndex(null),i.rowPinned=o,i.id=`${"top"===o?"t-":"b-"}${o}-${t.id}`,i.pinnedSibling=t,t.pinnedSibling=i,i}function lC(e){if(!e.pinnedSibling)return;e.rowPinned=null,e.setRowTop(null),e.setRowIndex(null);const t=e.pinnedSibling;e.pinnedSibling=void 0,t&&(t.pinnedSibling=void 0,t.rowPinned=null)}function dC(e){const t=new Set;e.forEach((e=>{e.group&&t.add(e)})),t.forEach((t=>e.delete(t)))}function cC(e){const t=e.size();if(0===t)return 0;const o=e.getByIndex(t-1);return void 0===o?0:o.rowTop+o.rowHeight}function hC(e){const t=mC(e);if(0===t)return 0;const o=pC(e,t-1);return void 0===o?0:o.rowTop+o.rowHeight}function uC(e,t){return e.cache[t]}function pC(e,t){return uC(e,e.order[t])}function gC(e,t){e.order.forEach(((o,i)=>{const s=uC(e,o);s&&t(s,i)}))}function mC(e){return e.order.length}function fC({gos:e,selectionColSvc:t},o){const i=e.get("rowSelection"),s=o.getColDef(),{headerCheckboxSelection:n}=s;let r=!1;if("object"==typeof i){const e=Xm(o),s=Zm(o);("autoGroupColumn"===ym(i)&&s||e&&t?.isSelectionColumnEnabled())&&(r=bm(i))}else r="function"==typeof n?n(Im(e,{column:o,colDef:s})):!!n;return r}function vC(e){return{beanName:"gridApi",bean:e.getBean("apiFunctionSvc").api}}function CC(e,t){return((e.beanName?ln[e.beanName]:void 0)??Number.MAX_SAFE_INTEGER)-((t.beanName?ln[t.beanName]:void 0)??Number.MAX_SAFE_INTEGER)}function wC(e,t){return"gridDestroySvc"===e?.beanName?-1:"gridDestroySvc"===t?.beanName?1:0}function bC(e,t){return t.map((t=>{const o=`e${t[0].toUpperCase()+t.substring(1)}RowContainer`;return e[o]={name:t},{tag:"ag-row-container",ref:o,attrs:{name:t}}}))}function yC(e){return e.context.getGridId()}function SC(e){e.gridDestroySvc.destroy()}function RC(e){return e.gridDestroySvc.destroyCalled}function FC(e,t){return e.gos.get(t)}function xC(e,t,o){EC(e,{[t]:o})}function EC(e,t){e.gos.updateGridOptions({options:t})}function DC(e,t){const o=t.replace(/Module$/,"");return e.gos.isModuleRegistered(o)}function PC(e,t,o){e.colMoves?.moveColumnByIndex(t,o,"api")}function TC(e,t,o){e.colMoves?.moveColumns(t,o,"api")}function MC(e){const{isFromHeader:t,fromLeft:o,xPosition:i,fromEnter:s,fakeEvent:n,pinned:r,gos:a,colModel:l,colMoves:d,visibleCols:c}=e;let{allMovingColumns:h}=e;t&&(h=function(e){const t=[...e];return e.forEach((e=>{let o=null,i=e.getParent();for(;null!=i&&1===i.getDisplayedLeafColumns().length;)o=i,i=i.getParent();null!=o&&(o.getColGroupDef()?.marryChildren?o.getProvidedColumnGroup().getLeafColumns():o.getLeafColumns()).forEach((e=>{t.includes(e)||t.push(e)}))})),t}(h));const u=h.slice();var p,g;p=l.getCols(),!(g=u)||g.length<=1||g.filter((e=>p.indexOf(e)<0)).length>0||g.sort(((e,t)=>p.indexOf(e)-p.indexOf(t)));const m=function(e){const{movingCols:t,draggingRight:o,xPosition:i,pinned:s,gos:n,colModel:r,visibleCols:a}=e;if(n.get("suppressMovableColumns")||t.some((e=>e.getColDef().suppressMovable)))return[];const l=function(e,t){switch(t){case"left":return e.leftCols;case"right":return e.rightCols;default:return e.centerCols}}(a,s),d=r.getCols(),c=l.filter((e=>t.includes(e))),h=l.filter((e=>!t.includes(e))),u=d.filter((e=>!t.includes(e)));let p,g=0,m=i;if(o){let e=0;c.fo