Files
StudyDiary/.obsidian/plugins/ravenhogwarts-toolkit/main.js
T

522 lines
1.6 MiB
JavaScript
Raw Normal View History

2026-07-23 20:36:13 +08:00
/*
THIS IS A GENERATED/BUNDLED FILE BY ESBUILD
if you want to view the source, please visit the github repository of this plugin
*/
var sN=Object.create;var cu=Object.defineProperty;var lN=Object.getOwnPropertyDescriptor;var uN=Object.getOwnPropertyNames;var cN=Object.getPrototypeOf,dN=Object.prototype.hasOwnProperty;var fN=(n,t,e)=>t in n?cu(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e;var de=(n,t)=>()=>(n&&(t=n(n=0)),t);var z=(n,t)=>()=>(t||n((t={exports:{}}).exports,t),t.exports),Jv=(n,t)=>{for(var e in t)cu(n,e,{get:t[e],enumerable:!0})},SE=(n,t,e,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of uN(t))!dN.call(n,o)&&o!==e&&cu(n,o,{get:()=>t[o],enumerable:!(r=lN(t,o))||r.enumerable});return n};var B=(n,t,e)=>(e=n!=null?sN(cN(n)):{},SE(t||!n||!n.__esModule?cu(e,"default",{value:n,enumerable:!0}):e,n)),pN=n=>SE(cu({},"__esModule",{value:!0}),n);var N=(n,t,e)=>(fN(n,typeof t!="symbol"?t+"":t,e),e);function _E(n,t="YYYY-MM-DD HH:mm:ss.SSS"){let e=n.getFullYear(),r=qs(n.getMonth()+1),o=qs(n.getDate()),i=qs(n.getHours()),a=qs(n.getMinutes()),s=qs(n.getSeconds()),l=qs(n.getMilliseconds(),3);return t.replace("YYYY",String(e)).replace("MM",r).replace("DD",o).replace("HH",i).replace("mm",a).replace("ss",s).replace("SSS",l)}function EE(n){return _E(new Date,n)}function No(n=new Date){return _E(n,"YYYY-MM-DDTHH:mm:ssZ")}var qs,$s=de(()=>{qs=(n,t=2)=>{let e=String(n);for(;e.length<t;)e="0"+e;return e}});var Zv,Bd,em,Ie,Hr,Qe,di=de(()=>{$s();Zv=require("obsidian"),Bd=(i=>(i[i.DEBUG=0]="DEBUG",i[i.INFO=1]="INFO",i[i.WARN=2]="WARN",i[i.ERROR=3]="ERROR",i[i.NONE=4]="NONE",i))(Bd||{}),em={level:1,showTimestamp:!0,showLevel:!0,console:!0,showNotifications:!0,noticeTimeout:5e3},Ie=class{constructor(t){this.name=t,Ie.initConfig&&!Ie.initialized&&(Ie.updateConfig(Ie.initConfig),Ie.initConfig=null,Ie.initialized=!0)}static initRootLogger(t){Ie.updateConfig(t),Ie.initialized=!0}static updateConfig(t){Ie.config={...Ie.config,...t},Ie.moduleLoggers.forEach(e=>{e.updateConfig(Ie.config)}),Ie.rootInstance&&Ie.rootInstance.updateConfig(Ie.config)}static getRootLogger(){return Ie.rootInstance||(Ie.rootInstance=new Ie("RavenHogwartsToolkit")),Ie.rootInstance}static getLogger(t){return this.moduleLoggers.has(t)||this.moduleLoggers.set(t,new Ie(t)),this.moduleLoggers.get(t)}formatMessage(t,e,r){let o=[];return Ie.config.showTimestamp&&o.push(`[${EE()}]`),Ie.config.showLevel&&o.push(`[${Bd[t]}]`),o.push(`[${this.name}]`),Ie.config.prefix&&o.push(Ie.config.prefix),o.push(e),o.join(" ")}log(t,e,r=[]){if(t>=Ie.config.level){let o=this.formatMessage(t,e,r);if(Ie.config.console)switch(t){case 0:console.debug(o,...r);break;case 1:console.info(o,...r);break;case 2:console.warn(o,...r);break;case 3:console.error(o,...r);break}Ie.config.showNotifications&&t>=2&&new Zv.Notice(o,Ie.config.noticeTimeout)}}debug(t,...e){this.log(0,t,e)}info(t,...e){this.log(1,t,e)}warn(t,...e){this.log(2,t,e)}error(t,...e){this.log(3,t,e)}notice(t,...e){let r=this.formatMessage(1,t,e);new Zv.Notice(r,Ie.config.noticeTimeout)}logError(t,e){return this.error(e||t.message,t),null}throwError(t,e){throw this.error(e||t.message,t),t}updateConfig(t){Ie.config=t}},Hr=Ie;Hr.moduleLoggers=new Map,Hr.initialized=!1,Hr.initConfig=null,Hr.config={...em};Qe=Hr.getRootLogger()});var ME=z(Ce=>{"use strict";var du=Symbol.for("react.element"),hN=Symbol.for("react.portal"),gN=Symbol.for("react.fragment"),vN=Symbol.for("react.strict_mode"),mN=Symbol.for("react.profiler"),yN=Symbol.for("react.provider"),CN=Symbol.for("react.context"),wN=Symbol.for("react.forward_ref"),SN=Symbol.for("react.suspense"),_N=Symbol.for("react.memo"),EN=Symbol.for("react.lazy"),RE=Symbol.iterator;function RN(n){return n===null||typeof n!="object"?null:(n=RE&&n[RE]||n["@@iterator"],typeof n=="function"?n:null)}var PE={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},OE=Object.assign,LE={};function Ks(n,t,e){this.props=n,this.context=t,this.refs=LE,this.updater=e||PE}Ks.prototype.isReactComponent={};Ks.prototype.setState=function(n,t){if(typeof n!="object"&&typeof n!="function"&&n!=null)throw Error("setState(...): takes an object of state variab
`+gm+n}var vm=!1;function mm(n,t){if(!n||vm)return"";vm=!0;var e=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(n,[],t)}else{try{t.call()}catch(u){r=u}n.call(t.prototype)}else{try{throw Error()}catch(u){r=u}n()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var o=u.stack.split(`
`),i=r.stack.split(`
`),a=o.length-1,s=i.length-1;1<=a&&0<=s&&o[a]!==i[s];)s--;for(;1<=a&&0<=s;a--,s--)if(o[a]!==i[s]){if(a!==1||s!==1)do if(a--,s--,0>s||o[a]!==i[s]){var l=`
`+o[a].replace(" at new "," at ");return n.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",n.displayName)),l}while(1<=a&&0<=s);break}}}finally{vm=!1,Error.prepareStackTrace=e}return(n=n?n.displayName||n.name:"")?Eu(n):""}function MN(n){switch(n.tag){case 5:return Eu(n.type);case 16:return Eu("Lazy");case 13:return Eu("Suspense");case 19:return Eu("SuspenseList");case 0:case 2:case 15:return n=mm(n.type,!1),n;case 11:return n=mm(n.type.render,!1),n;case 1:return n=mm(n.type,!0),n;default:return""}}function Bm(n){if(n==null)return null;if(typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case Js:return"Fragment";case Qs:return"Portal";case km:return"Profiler";case Ay:return"StrictMode";case Hm:return"Suspense";case Vm:return"SuspenseList"}if(typeof n=="object")switch(n.$$typeof){case nT:return(n.displayName||"Context")+".Consumer";case rT:return(n._context.displayName||"Context")+".Provider";case Fy:var t=n.render;return n=n.displayName,n||(n=t.displayName||t.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case by:return t=n.displayName||null,t!==null?t:Bm(n.type)||"Memo";case Ui:t=n._payload,n=n._init;try{return Bm(n(t))}catch{}}return null}function NN(n){var t=n.type;switch(n.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return n=t.render,n=n.displayName||n.name||"",t.displayName||(n!==""?"ForwardRef("+n+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Bm(t);case 8:return t===Ay?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function na(n){switch(typeof n){case"boolean":case"number":case"string":case"undefined":return n;case"object":return n;default:return""}}function iT(n){var t=n.type;return(n=n.nodeName)&&n.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function GN(n){var t=iT(n)?"checked":"value",e=Object.getOwnPropertyDescriptor(n.constructor.prototype,t),r=""+n[t];if(!n.hasOwnProperty(t)&&typeof e<"u"&&typeof e.get=="function"&&typeof e.set=="function"){var o=e.get,i=e.set;return Object.defineProperty(n,t,{configurable:!0,get:function(){return o.call(this)},set:function(a){r=""+a,i.call(this,a)}}),Object.defineProperty(n,t,{enumerable:e.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){n._valueTracker=null,delete n[t]}}}}function Qd(n){n._valueTracker||(n._valueTracker=GN(n))}function aT(n){if(!n)return!1;var t=n._valueTracker;if(!t)return!0;var e=t.getValue(),r="";return n&&(r=iT(n)?n.checked?"true":"false":n.value),n=r,n!==e?(t.setValue(n),!0):!1}function xf(n){if(n=n||(typeof document<"u"?document:void 0),typeof n>"u")return null;try{return n.activeElement||n.body}catch{return n.body}}function Wm(n,t){var e=t.checked;return dt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:e??n._wrapperState.initialChecked})}function JE(n,t){var e=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;e=na(t.value!=null?t.value:e),n._wrapperState={initialChecked:r,initialValue:e,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function sT(n,t){t=t.checked,t!=null&&Dy(n,"checked",t,!1)}function Um(n,t){sT(n,t);var e=na(t.value),r=t.type;if(e!=null)r==="number"?(e===0&&n.value===""||n.value!=e)&&(n.value=""+e):n.value!==""+e&&(n.value=""+e);else if(r==="submit"||r==="reset"){n.removeAttribute("value");return}t.hasOwnProperty("value")?jm(n,t.type,e):t.hasOwnProperty("defaultValue")&&jm(n,t.type,na(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(n.defaultChecked=!!t.defaultChecked)}function ZE(n,t,e){if(t.hasOwnProperty("val
`).replace(zG,"")}function cf(n,t,e){if(t=ER(t),ER(n)!==t&&e)throw Error(k(425))}function bf(){}var oy=null,iy=null;function ay(n,t){return n==="textarea"||n==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var sy=typeof setTimeout=="function"?setTimeout:void 0,qG=typeof clearTimeout=="function"?clearTimeout:void 0,RR=typeof Promise=="function"?Promise:void 0,$G=typeof queueMicrotask=="function"?queueMicrotask:typeof RR<"u"?function(n){return RR.resolve(null).then(n).catch(KG)}:sy;function KG(n){setTimeout(function(){throw n})}function Pm(n,t){var e=t,r=0;do{var o=e.nextSibling;if(n.removeChild(e),o&&o.nodeType===8)if(e=o.data,e==="/$"){if(r===0){n.removeChild(o),Bu(t);return}r--}else e!=="$"&&e!=="$?"&&e!=="$!"||r++;e=o}while(e);Bu(t)}function Ji(n){for(;n!=null;n=n.nextSibling){var t=n.nodeType;if(t===1||t===3)break;if(t===8){if(t=n.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return n}function TR(n){n=n.previousSibling;for(var t=0;n;){if(n.nodeType===8){var e=n.data;if(e==="$"||e==="$!"||e==="$?"){if(t===0)return n;t--}else e==="/$"&&t++}n=n.previousSibling}return null}var El=Math.random().toString(36).slice(2),Vo="__reactFiber$"+El,qu="__reactProps$"+El,yi="__reactContainer$"+El,ly="__reactEvents$"+El,YG="__reactListeners$"+El,XG="__reactHandles$"+El;function Ja(n){var t=n[Vo];if(t)return t;for(var e=n.parentNode;e;){if(t=e[yi]||e[Vo]){if(e=t.alternate,t.child!==null||e!==null&&e.child!==null)for(n=TR(n);n!==null;){if(e=n[Vo])return e;n=TR(n)}return t}n=e,e=n.parentNode}return null}function tc(n){return n=n[Vo]||n[yi],!n||n.tag!==5&&n.tag!==6&&n.tag!==13&&n.tag!==3?null:n}function rl(n){if(n.tag===5||n.tag===6)return n.stateNode;throw Error(k(33))}function ep(n){return n[qu]||null}var uy=[],nl=-1;function aa(n){return{current:n}}function Ze(n){0>nl||(n.current=uy[nl],uy[nl]=null,nl--)}function qe(n,t){nl++,uy[nl]=n.current,n.current=t}var oa={},pr=aa(oa),Wr=aa(!1),ns=oa;function vl(n,t){var e=n.type.contextTypes;if(!e)return oa;var r=n.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in e)o[i]=t[i];return r&&(n=n.stateNode,n.__reactInternalMemoizedUnmaskedChildContext=t,n.__reactInternalMemoizedMaskedChildContext=o),o}function Ur(n){return n=n.childContextTypes,n!=null}function Mf(){Ze(Wr),Ze(pr)}function xR(n,t,e){if(pr.current!==oa)throw Error(k(168));qe(pr,t),qe(Wr,e)}function YT(n,t,e){var r=n.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return e;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(k(108,NN(n)||"Unknown",o));return dt({},e,r)}function Nf(n){return n=(n=n.stateNode)&&n.__reactInternalMemoizedMergedChildContext||oa,ns=pr.current,qe(pr,n),qe(Wr,Wr.current),!0}function PR(n,t,e){var r=n.stateNode;if(!r)throw Error(k(169));e?(n=YT(n,t,ns),r.__reactInternalMemoizedMergedChildContext=n,Ze(Wr),Ze(pr),qe(pr,n)):Ze(Wr),qe(Wr,e)}var pi=null,tp=!1,Om=!1;function XT(n){pi===null?pi=[n]:pi.push(n)}function QG(n){tp=!0,XT(n)}function sa(){if(!Om&&pi!==null){Om=!0;var n=0,t=ke;try{var e=pi;for(ke=1;n<e.length;n++){var r=e[n];do r=r(!0);while(r!==null)}pi=null,tp=!1}catch(o){throw pi!==null&&(pi=pi.slice(n+1)),ST(Ny,sa),o}finally{ke=t,Om=!1}}return null}var ol=[],il=0,Gf=null,kf=0,Fn=[],bn=0,os=null,hi=1,gi="";function Xa(n,t){ol[il++]=kf,ol[il++]=Gf,Gf=n,kf=t}function QT(n,t,e){Fn[bn++]=hi,Fn[bn++]=gi,Fn[bn++]=os,os=n;var r=hi;n=gi;var o=32-lo(r)-1;r&=~(1<<o),e+=1;var i=32-lo(t)+o;if(30<i){var a=o-o%5;i=(r&(1<<a)-1).toString(32),r>>=a,o-=a,hi=1<<32-lo(t)+o|e<<o|r,gi=i+n}else hi=1<<i|e<<o|r,gi=n}function zy(n){n.return!==null&&(Xa(n,1),QT(n,1,0))}function qy(n){for(;n===Gf;)Gf=ol[--il],ol[il]=null,kf=ol[--il],ol[il]=null;for(;n===os;)os=Fn[--bn],Fn[bn]=null,gi=Fn[--bn],Fn[bn]=null,hi=Fn[--bn],Fn[bn]=null}var ln=null,sn=null,it=!1,so=null;function JT(n,t){var e=Mn(5,null,null,0);e.elementType="DELETED",e.stateNode=t,e.return=n,t=n.deletio
Error generating stack: `+i.message+`
`+i.stack}return{value:n,source:t,stack:o,digest:null}}function Fm(n,t,e){return{value:n,source:null,stack:e??null,digest:t??null}}function gy(n,t){try{console.error(t.value)}catch(e){setTimeout(function(){throw e})}}var ak=typeof WeakMap=="function"?WeakMap:Map;function Tx(n,t,e){e=vi(-1,e),e.tag=3,e.payload={element:null};var r=t.value;return e.callback=function(){qf||(qf=!0,Ty=r),gy(n,t)},e}function xx(n,t,e){e=vi(-1,e),e.tag=3;var r=n.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;e.payload=function(){return r(o)},e.callback=function(){gy(n,t)}}var i=n.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(e.callback=function(){gy(n,t),typeof r!="function"&&(ea===null?ea=new Set([this]):ea.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),e}function GR(n,t,e){var r=n.pingCache;if(r===null){r=n.pingCache=new ak;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(e)||(o.add(e),n=wk.bind(null,n,t,e),t.then(n,n))}function kR(n){do{var t;if((t=n.tag===13)&&(t=n.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return n;n=n.return}while(n!==null);return null}function HR(n,t,e,r,o){return n.mode&1?(n.flags|=65536,n.lanes=o,n):(n===t?n.flags|=65536:(n.flags|=128,e.flags|=131072,e.flags&=-52805,e.tag===1&&(e.alternate===null?e.tag=17:(t=vi(-1,1),t.tag=2,Zi(e,t,1))),e.lanes|=1),n)}var sk=Si.ReactCurrentOwner,Br=!1;function Er(n,t,e,r){t.child=n===null?tx(t,null,e,r):yl(t,n.child,e,r)}function VR(n,t,e,r,o){e=e.render;var i=t.ref;return pl(t,o),r=nC(n,t,e,r,i,o),e=oC(),n!==null&&!Br?(t.updateQueue=n.updateQueue,t.flags&=-2053,n.lanes&=~o,wi(n,t,o)):(it&&e&&zy(t),t.flags|=1,Er(n,t,r,o),t.child)}function BR(n,t,e,r,o){if(n===null){var i=e.type;return typeof i=="function"&&!hC(i)&&i.defaultProps===void 0&&e.compare===null&&e.defaultProps===void 0?(t.tag=15,t.type=i,Px(n,t,i,r,o)):(n=Tf(e.type,null,r,t,t.mode,o),n.ref=t.ref,n.return=t,t.child=n)}if(i=n.child,!(n.lanes&o)){var a=i.memoizedProps;if(e=e.compare,e=e!==null?e:Uu,e(a,r)&&n.ref===t.ref)return wi(n,t,o)}return t.flags|=1,n=ra(i,r),n.ref=t.ref,n.return=t,t.child=n}function Px(n,t,e,r,o){if(n!==null){var i=n.memoizedProps;if(Uu(i,r)&&n.ref===t.ref)if(Br=!1,t.pendingProps=r=i,(n.lanes&o)!==0)n.flags&131072&&(Br=!0);else return t.lanes=n.lanes,wi(n,t,o)}return vy(n,t,e,r,o)}function Ox(n,t,e){var r=t.pendingProps,o=r.children,i=n!==null?n.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},qe(ll,an),an|=e;else{if(!(e&1073741824))return n=i!==null?i.baseLanes|e:e,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:n,cachePool:null,transitions:null},t.updateQueue=null,qe(ll,an),an|=n,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:e,qe(ll,an),an|=r}else i!==null?(r=i.baseLanes|e,t.memoizedState=null):r=e,qe(ll,an),an|=r;return Er(n,t,o,e),t.child}function Lx(n,t){var e=t.ref;(n===null&&e!==null||n!==null&&n.ref!==e)&&(t.flags|=512,t.flags|=2097152)}function vy(n,t,e,r,o){var i=Ur(e)?ns:pr.current;return i=vl(t,i),pl(t,o),e=nC(n,t,e,r,i,o),r=oC(),n!==null&&!Br?(t.updateQueue=n.updateQueue,t.flags&=-2053,n.lanes&=~o,wi(n,t,o)):(it&&r&&zy(t),t.flags|=1,Er(n,t,e,o),t.child)}function WR(n,t,e,r,o){if(Ur(e)){var i=!0;Nf(t)}else i=!1;if(pl(t,o),t.stateNode===null)_f(n,t),Rx(t,e,r),hy(t,e,r,o),r=!0;else if(n===null){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,u=e.contextType;typeof u=="object"&&u!==null?u=Gn(u):(u=Ur(e)?ns:pr.current,u=vl(t,u));var c=e.getDerivedStateFromProps,d=typeof c=="function"||typeof a.getSnapshotBeforeUpdate=="function";d||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==r||l!==u)&&NR(t,a,r,u),ji=!1;var f=t.memoizedState;a.state=f,Bf(t,r,a,o),l=t.memoizedState,s!==r||f!==l||Wr.current||ji?(typeof c=="function"&&(py(t,e,c,r),l=t.memoizedState),(s=ji||MR(t,e,s,r,f,l,u))?(d||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.
`,RO="/",TO="*",ps="",_1="comment",E1="declaration";PO.exports=function(n,t){if(typeof n!="string")throw new TypeError("First argument must be a string");if(!n)return[];t=t||{};var e=1,r=1;function o(v){var C=v.match(h1);C&&(e+=C.length);var m=v.lastIndexOf(S1);r=~m?v.length-m:r+v.length}function i(){var v={line:e,column:r};return function(C){return C.position=new a(v),c(),C}}function a(v){this.start=v,this.end={line:e,column:r},this.source=t.source}a.prototype.content=n;var s=[];function l(v){var C=new Error(t.source+":"+e+":"+r+": "+v);if(C.reason=v,C.filename=t.source,C.line=e,C.column=r,C.source=n,t.silent)s.push(C);else throw C}function u(v){var C=v.exec(n);if(C){var m=C[0];return o(m),n=n.slice(m.length),C}}function c(){u(g1)}function d(v){var C;for(v=v||[];C=f();)C!==!1&&v.push(C);return v}function f(){var v=i();if(!(RO!=n.charAt(0)||TO!=n.charAt(1))){for(var C=2;ps!=n.charAt(C)&&(TO!=n.charAt(C)||RO!=n.charAt(C+1));)++C;if(C+=2,ps===n.charAt(C-1))return l("End of comment missing");var m=n.slice(2,C-2);return r+=2,o(m),n=n.slice(C),r+=2,v({type:_1,comment:m})}}function p(){var v=i(),C=u(v1);if(C){if(f(),!u(m1))return l("property missing ':'");var m=u(y1),y=v({type:E1,property:xO(C[0].replace(EO,ps)),value:m?xO(m[0].replace(EO,ps)):ps});return u(C1),y}}function h(){var v=[];d(v);for(var C;C=p();)C!==!1&&(v.push(C),d(v));return v}return c(),h()};function xO(n){return n?n.replace(w1,ps):ps}});var LO=z(yc=>{"use strict";var R1=yc&&yc.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(yc,"__esModule",{value:!0});yc.default=x1;var T1=R1(OO());function x1(n,t){var e=null;if(!n||typeof n!="string")return e;var r=(0,T1.default)(n),o=typeof t=="function";return r.forEach(function(i){if(i.type==="declaration"){var a=i.property,s=i.value;o?t(a,s,i):s&&(e=e||{},e[a]=s)}}),e}});var DO=z(Pp=>{"use strict";Object.defineProperty(Pp,"__esModule",{value:!0});Pp.camelCase=void 0;var P1=/^--[a-zA-Z0-9_-]+$/,O1=/-([a-z])/g,L1=/^[^-]+$/,I1=/^-(webkit|moz|ms|o|khtml)-/,D1=/^-(ms)-/,A1=function(n){return!n||L1.test(n)||P1.test(n)},F1=function(n,t){return t.toUpperCase()},IO=function(n,t){return"".concat(t,"-")},b1=function(n,t){return t===void 0&&(t={}),A1(n)?n:(n=n.toLowerCase(),t.reactCompat?n=n.replace(D1,IO):n=n.replace(I1,IO),n.replace(O1,F1))};Pp.camelCase=b1});var FO=z((HC,AO)=>{"use strict";var M1=HC&&HC.__importDefault||function(n){return n&&n.__esModule?n:{default:n}},N1=M1(LO()),G1=DO();function kC(n,t){var e={};return!n||typeof n!="string"||(0,N1.default)(n,function(r,o){r&&o&&(e[(0,G1.camelCase)(r,t)]=o)}),e}kC.default=kC;AO.exports=kC});var VC=z(Or=>{"use strict";var k1=Or&&Or.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(Or,"__esModule",{value:!0});Or.returnFirstArg=Or.canTextBeChildOfNode=Or.ELEMENTS_WITH_NO_TEXT_CHILDREN=Or.PRESERVE_CUSTOM_ATTRIBUTES=void 0;Or.isCustomComponent=W1;Or.setStyleProp=j1;var H1=te(),V1=k1(FO()),B1=new Set(["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"]);function W1(n,t){return n.includes("-")?!B1.has(n):Boolean(t&&typeof t.is=="string")}var U1={reactCompat:!0};function j1(n,t){if(typeof n=="string"){if(!n.trim()){t.style={};return}try{t.style=(0,V1.default)(n,U1)}catch{t.style={}}}}Or.PRESERVE_CUSTOM_ATTRIBUTES=Number(H1.version.split(".")[0])>=16;Or.ELEMENTS_WITH_NO_TEXT_CHILDREN=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]);var z1=function(n){return!Or.ELEMENTS_WITH_NO_TEXT_CHILDREN.has(n.name)};Or.canTextBeChildOfNode=z1;var q1=function(n){return n};Or.returnFirstArg=q1});var WC=z(BC=>{"use strict";Object.defineProperty(BC,"__esModule",{value:!0});BC.default=X1;var Cc=_O(),bO=VC(),$1=["checked","value"],K1=["input","select","textarea"],Y1={reset:!0,submit:!0};function X1(n,t){n===void 0&&(n={});var e={},r=Boolean(n.type&&Y1[n.type]);for(var o in n){var i=n[o];if((0,Cc.isCustomAttribute)(o)){e[o]=i;continue}var a=o.toLowerCase(),s=MO(a);if(s){var l=(0,Cc.getPropertyInfo)(s);switch($1.includes
Please don't call grid API functions on destroyed grids - as a matter of fact you shouldn't
be keeping the API reference, your application has a memory leak! Remove the API reference
when the grid is destroyed.`)};r[o]={value:a,writable:!0}}}),Object.defineProperties(n,r)}function gg(n){return typeof n=="object"&&n!==null}var TV=Object.freeze({iterateObject:st,cloneObject:_S,deepCloneObject:wV,deepCloneDefinition:hg,getProperty:XI,setProperty:QI,copyPropertiesIfPresent:SV,copyPropertyIfPresent:JI,getAllKeysInObjects:ZI,getAllValuesInObject:oi,mergeDeep:wn,missingOrEmptyObject:_V,get:EV,set:RV,getValueUsingField:Yl,removeAllReferences:eD,isNonNullObject:gg}),$L={};function ge(n,t){$L[t]||(n(),$L[t]=!0)}function Mg(n){if(n.name)return n.name;var t=/function\s+([^\(]+)/.exec(n.toString());return t&&t.length===2?t[1].trim():null}function Ng(n){return!!(n&&n.constructor&&n.call&&n.apply)}function tD(n){rD(n,400)}var ow=[],iw=!1;function eS(n){ow.push(n),!iw&&(iw=!0,window.setTimeout(function(){var t=ow.slice();ow.length=0,iw=!1,t.forEach(function(e){return e()})},0))}function rD(n,t){t===void 0&&(t=0),n.length>0&&window.setTimeout(function(){return n.forEach(function(e){return e()})},t)}function wo(n,t){var e;return function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];var i=this;window.clearTimeout(e),e=window.setTimeout(function(){n.apply(i,r)},t)}}function tS(n,t){var e=0;return function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];var i=this,a=new Date().getTime();a-e<t||(e=a,n.apply(i,r))}}function ES(n,t,e,r){e===void 0&&(e=100);var o=new Date().getTime(),i=null,a=!1,s=function(){var l=new Date().getTime()-o>e;(n()||l)&&(t(),a=!0,i!=null&&(window.clearInterval(i),i=null),l&&r&&console.warn(r))};s(),a||(i=window.setInterval(s,10))}function xV(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return function(e){return n.reduce(function(r,o){return o(r)},e)}}function nD(n){n&&n()}var PV=function(){},OV=Object.freeze({doOnce:ge,getFunctionName:Mg,isFunction:Ng,executeInAWhile:tD,executeNextVMTurn:eS,executeAfter:rD,debounce:wo,throttle:tS,waitUntil:ES,compose:xV,callIfPresent:nD,noop:PV});(function(n){n.CommunityCoreModule="@ag-grid-community/core",n.InfiniteRowModelModule="@ag-grid-community/infinite-row-model",n.ClientSideRowModelModule="@ag-grid-community/client-side-row-model",n.CsvExportModule="@ag-grid-community/csv-export",n.EnterpriseCoreModule="@ag-grid-enterprise/core",n.RowGroupingModule="@ag-grid-enterprise/row-grouping",n.ColumnsToolPanelModule="@ag-grid-enterprise/column-tool-panel",n.FiltersToolPanelModule="@ag-grid-enterprise/filter-tool-panel",n.MenuModule="@ag-grid-enterprise/menu",n.SetFilterModule="@ag-grid-enterprise/set-filter",n.MultiFilterModule="@ag-grid-enterprise/multi-filter",n.StatusBarModule="@ag-grid-enterprise/status-bar",n.SideBarModule="@ag-grid-enterprise/side-bar",n.RangeSelectionModule="@ag-grid-enterprise/range-selection",n.MasterDetailModule="@ag-grid-enterprise/master-detail",n.RichSelectModule="@ag-grid-enterprise/rich-select",n.GridChartsModule="@ag-grid-enterprise/charts",n.ViewportRowModelModule="@ag-grid-enterprise/viewport-row-model",n.ServerSideRowModelModule="@ag-grid-enterprise/server-side-row-model",n.ExcelExportModule="@ag-grid-enterprise/excel-export",n.ClipboardModule="@ag-grid-enterprise/clipboard",n.SparklinesModule="@ag-grid-enterprise/sparklines",n.AdvancedFilterModule="@ag-grid-enterprise/advanced-filter",n.AngularModule="@ag-grid-community/angular",n.ReactModule="@ag-grid-community/react",n.VueModule="@ag-grid-community/vue"})(g.ModuleNames||(g.ModuleNames={}));var Fc=function(n,t){var e=typeof Symbol=="function"&&n[Symbol.iterator];if(!e)return n;var r=e.call(n),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(e=r.return)&&e.call(r)}finally{if(a)throw a.error}}return i},KL=function(n,t){for(var e=0,r=t.length,o=n.length;e<r;e++,o++)n[o]=t[e];return n},J=function(){function n(){}return n.register=function(t){n.__register(t,!0,void 0)},n.registerModules=function(t){n.__registerModules(t,!0,void 0)},n.__register=function(t,e,r){n.runVersionChecks(t),r!==void 0?(n.areGridScopedModules=!0,n.gridModulesMap[r]===void 0
<script src="https://cdn.jsdelivr.net/npm/ag-grid-enterprise@AG_GRID_VERSION/dist/ag-grid-enterprise.min.js"><\/script>
For more info see: https://ag-grid.com/javascript-data-grid/getting-started/#getting-started-with-ag-grid-enterprise`;else if(n.moduleBased||n.moduleBased===void 0){var s=(o=Object.entries(g.ModuleNames).find(function(l){var u=Fc(l,2),c=u[0],d=u[1];return d===t}))===null||o===void 0?void 0:o[0];a="AG Grid: unable to use "+e+" as the "+s+" is not registered"+(n.areGridScopedModules?" for gridId: "+r:"")+`. Check if you have registered the module:
import { ModuleRegistry } from '@ag-grid-community/core';
import { `+s+" } from '"+t+`';
ModuleRegistry.registerModules([ `+s+` ]);
For more info see: https://www.ag-grid.com/javascript-grid/modules/`}else a="AG Grid: unable to use "+e+` as package 'ag-grid-enterprise' has not been imported. Check that you have imported the package:
import 'ag-grid-enterprise';
For more info see: https://www.ag-grid.com/javascript-grid/packages/`;return ge(function(){console.warn(a)},i),!1},n.__isRegistered=function(t,e){var r;return!!n.globalModulesMap[t]||!!(!((r=n.gridModulesMap[e])===null||r===void 0)&&r[t])},n.__getRegisteredModules=function(t){return KL(KL([],Fc(Ts(n.globalModulesMap))),Fc(Ts(n.gridModulesMap[t]||{})))},n.__getGridRegisteredModules=function(t){var e;return Ts((e=n.gridModulesMap[t])!==null&&e!==void 0?e:{})||[]},n.__isPackageBased=function(){return!n.moduleBased},n.globalModulesMap={},n.gridModulesMap={},n.areGridScopedModules=!1,n}(),LV=function(n,t){var e=typeof Symbol=="function"&&n[Symbol.iterator];if(!e)return n;var r=e.call(n),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(e=r.return)&&e.call(r)}finally{if(a)throw a.error}}return i},IV=function(n,t){for(var e=0,r=t.length,o=n.length;e<r;e++,o++)n[o]=t[e];return n},oD=function(){function n(t,e){if(this.beanWrappers={},this.destroyed=!1,!(!t||!t.beanClasses)){this.contextParams=t,this.logger=e,this.logger.log(">> creating ag-Application Context"),this.createBeans();var r=this.getBeanInstances();this.wireBeans(r),this.logger.log(">> ag-Application Context ready - component is alive")}}return n.prototype.getBeanInstances=function(){return Ts(this.beanWrappers).map(function(t){return t.beanInstance})},n.prototype.createBean=function(t,e){if(!t)throw Error("Can't wire to bean since it is null");return this.wireBeans([t],e),t},n.prototype.wireBeans=function(t,e){this.autoWireBeans(t),this.methodWireBeans(t),this.callLifeCycleMethods(t,"preConstructMethods"),D(e)&&t.forEach(e),this.callLifeCycleMethods(t,"postConstructMethods")},n.prototype.createBeans=function(){var t=this;this.contextParams.beanClasses.forEach(this.createBeanWrapper.bind(this)),st(this.beanWrappers,function(r,o){var i;o.bean.__agBeanMetaData&&o.bean.__agBeanMetaData.autowireMethods&&o.bean.__agBeanMetaData.autowireMethods.agConstructor&&(i=o.bean.__agBeanMetaData.autowireMethods.agConstructor);var a=t.getBeansForParameters(i,o.bean.name),s=new(o.bean.bind.apply(o.bean,IV([null],LV(a))));o.beanInstance=s});var e=Object.keys(this.beanWrappers).join(", ");this.logger.log("created beans: "+e)},n.prototype.createBeanWrapper=function(t){var e=t.__agBeanMetaData;if(!e){var r=void 0;t.prototype.constructor?r=Mg(t.prototype.constructor):r=""+t,console.error("Context item "+r+" is not a bean");return}var o={bean:t,beanInstance:null,beanName:e.beanName};this.beanWrappers[e.beanName]=o},n.prototype.autoWireBeans=function(t){var e=this;t.forEach(function(r){e.forEachMetaDataInHierarchy(r,function(o,i){var a=o.agClassAttributes;a&&a.forEach(function(s){var l=e.lookupBeanInstance(i,s.beanName,s.optional);r[s.attributeName]=l})})})},n.prototype.methodWireBeans=function(t){var e=this;t.forEach(function(r){e.forEachMetaDataInHierarchy(r,function(o,i){st(o.autowireMethods,function(a,s){if(a!=="agConstructor"){var l=e.getBeansForParameters(s,i);r[a].apply(r,l)}})})})},n.prototype.forEachMetaDataInHierarchy=function(t,e){for(var r=Object.getPrototypeOf(t);r!=null;){var o=r.constructor;if(o.hasOwnProperty("__agBeanMetaData")){var i=o.__agBeanMetaData,a=this.getBeanName(o);e(i,a)}r=Object.getPrototypeOf(r)}},n.prototype.getBeanName=function(t){if(t.__agBeanMetaData&&t.__agBeanMetaData.beanName)return t.__agBeanMetaData.beanName;var e=t.toString(),r=e.substring(9,e.indexOf("("));return r},n.prototype.getBeansForParameters=function(t,e){var r=this,o=[];return t&&st(t,function(i,a){var s=r.lookupBeanInstance(e,a);o[Number(i)]=s}),o},n.prototype.lookupBeanInstance=function(t,e,r){if(r===void 0&&(r=!1),this.destroyed)return this.logger.log("AG Grid: bean reference "+e+" is used after the grid is destroyed!"),null;if(e==="context")return this;if(this.contextParams.providedBeanInstances&&this.contextParams.providedBeanInstances.hasOwnProperty(e))return this.contextParams.providedBeanInstances[e];var o=this.beanWrappers[e];return o?o.beanInstance:(r||console.error("AG Grid: unable to find bean reference "+e+" w
<span style="display: inline-block; width: 1px"></span>
<span style="display: inline-block; width: 1px"></span>
</div>`,document.body.appendChild(n),n.scrollLeft=1,Hh=Math.floor(n.scrollLeft)===0,document.body.removeChild(n),Hh}function md(n,t){var e=n.scrollLeft;return t&&(e=Math.abs(e),Vg()&&!vd()&&(e=n.scrollWidth-n.clientWidth-e)),e}function yd(n,t,e){e&&(vd()?t*=-1:(to()||Vg())&&(t=n.scrollWidth-n.clientWidth-t)),n.scrollLeft=t}function vr(n){for(;n&&n.firstChild;)n.removeChild(n.firstChild)}function LB(n,t){Oi(n.querySelector(t))}function Oi(n){n&&n.parentNode&&n.parentNode.removeChild(n)}function ka(n){return n.offsetParent!==null}function tr(n){var t=document.createElement("div");return t.innerHTML=(n||"").trim(),t.firstChild}function IB(n,t){n.lastChild?n.insertAdjacentHTML("afterbegin",t):n.innerHTML=t}function DB(n,t){if(n.attributes&&n.attributes[t]){var e=n.attributes[t];return e.value}return null}function cS(n){return n&&n.clientHeight?n.clientHeight:0}function dS(n){return n&&n.clientWidth?n.clientWidth:0}function WS(n,t,e){if(!(e&&e.nextSibling===t)){var r=document.activeElement,o=t.contains(r);e?e.nextSibling?n.insertBefore(t,e.nextSibling):n.appendChild(t):n.firstChild&&n.firstChild!==t&&n.insertAdjacentElement("afterbegin",t),o&&r&&Bg()&&r.focus({preventScroll:!0})}}function US(n,t){for(var e=0;e<t.length;e++){var r=t[e],o=n.children[e];o!==r&&n.insertBefore(r,o)}}function XD(n,t,e){e?e.insertAdjacentElement("afterend",t):n.firstChild?n.insertAdjacentElement("afterbegin",t):n.appendChild(t)}function AB(n,t){D(n.firstChild)?n.insertBefore(t,n.firstChild):n.appendChild(t)}function jS(n,t){var e,r;if(t)try{for(var o=PB(Object.entries(t)),i=o.next();!i.done;i=o.next()){var a=OB(i.value,2),s=a[0],l=a[1];if(!(!s||!s.length||l==null)){var u=yD(s),c=l.toString(),d=c.replace(/\s*!important/g,""),f=d.length!=c.length?"important":void 0;n.style.setProperty(u,d,f)}}}catch(p){e={error:p}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(e)throw e.error}}}function QD(n){return n.clientWidth<n.scrollWidth}function JD(n){return n.clientHeight<n.scrollHeight}function Cd(n,t){t==="flex"?(n.style.removeProperty("width"),n.style.removeProperty("minWidth"),n.style.removeProperty("maxWidth"),n.style.flex="1 1 auto"):eo(n,t)}function eo(n,t){t=Ug(t),n.style.width=t.toString(),n.style.maxWidth=t.toString(),n.style.minWidth=t.toString()}function FB(n,t){t==="flex"?(n.style.removeProperty("height"),n.style.removeProperty("minHeight"),n.style.removeProperty("maxHeight"),n.style.flex="1 1 auto"):Ps(n,t)}function Ps(n,t){t=Ug(t),n.style.height=t.toString(),n.style.maxHeight=t.toString(),n.style.minHeight=t.toString()}function Ug(n){return typeof n=="number"?n+"px":n}function Ed(n){return n instanceof Node||n instanceof HTMLElement}function ZD(n){if(n==null)return[];var t=[];return zS(n,function(e){return t.push(e)}),t}function e0(n,t){if(n)for(var e=0;e<n.length;e++){var r=n[e];t(r.name,r.value)}}function ni(n,t,e){e==null?n.removeAttribute(t):n.setAttribute(t,e.toString())}function zS(n,t){if(n!=null)for(var e=0;e<n.length;e++)t(n[e])}function qS(n,t){n.then(function(e){var r=e.getGui();r!=null&&(typeof r=="object"?t.appendChild(r):t.innerHTML=r)})}var bB=Object.freeze({radioCssClass:uS,FOCUSABLE_SELECTOR:KD,FOCUSABLE_EXCLUDE:kS,isFocusableFormField:HS,setDisplayed:we,setVisible:YD,setDisabled:Jl,isElementChildOfClass:xs,getElementSize:Ga,getInnerHeight:_d,getInnerWidth:Wg,getAbsoluteHeight:VS,getAbsoluteWidth:gd,getElementRectWithOffset:BS,isRtlNegativeScroll:vd,getScrollLeft:md,setScrollLeft:yd,clearElement:vr,removeElement:LB,removeFromParent:Oi,isVisible:ka,loadTemplate:tr,appendHtml:IB,getElementAttribute:DB,offsetHeight:cS,offsetWidth:dS,ensureDomOrder:WS,setDomChildOrder:US,insertWithDomOrder:XD,prependDC:AB,addStylesToElement:jS,isHorizontalScrollShowing:QD,isVerticalScrollShowing:JD,setElementWidth:Cd,setFixedWidth:eo,setElementHeight:FB,setFixedHeight:Ps,formatSize:Ug,isNodeOrElement:Ed,copyNodeList:ZD,iterateNamedNodeMap:e0,addOrRemoveAttribute:ni,nodeListForEach:zS,bindCellRendererToHtmlElement:qS}),t0={columnGroupOpened:"expanded",columnGroupClosed:"contracted",columnSelectClosed:"tree-closed",columnSelectOpe
<div class="ag-floating-filter-input" role="presentation">
<ag-input-text-field ref="eFloatingFilterText"></ag-input-text-field>
</div>`)||this}return t.prototype.destroy=function(){n.prototype.destroy.call(this)},t.prototype.init=function(e){this.params=e;var r=this.columnModel.getDisplayNameForColumn(e.column,"header",!0),o=this.localeService.getLocaleTextFunc();this.eFloatingFilterText.setDisabled(!0).setInputAriaLabel(r+" "+o("ariaFilterInput","Filter Input"))},t.prototype.onParentModelChanged=function(e){var r=this;if(!e){this.eFloatingFilterText.setValue("");return}this.params.parentFilterInstance(function(o){if(o.getModelAsString){var i=o.getModelAsString(e);r.eFloatingFilterText.setValue(i)}})},t.prototype.onParamsUpdated=function(e){this.init(e)},eI([G("eFloatingFilterText")],t.prototype,"eFloatingFilterText",void 0),eI([w("columnModel")],t.prototype,"columnModel",void 0),t}(se),s0=function(){function n(t,e,r,o){var i=this;this.alive=!0,this.context=t,this.eParent=o;var a=e.getDateCompDetails(r),s=a.newAgStackInstance();s.then(function(l){if(!i.alive){t.destroyBean(l);return}i.dateComp=l,l&&(o.appendChild(l.getGui()),l.afterGuiAttached&&l.afterGuiAttached(),i.tempValue&&l.setDate(i.tempValue),i.disabled!=null&&i.setDateCompDisabled(i.disabled))})}return n.prototype.destroy=function(){this.alive=!1,this.dateComp=this.context.destroyBean(this.dateComp)},n.prototype.getDate=function(){return this.dateComp?this.dateComp.getDate():this.tempValue},n.prototype.setDate=function(t){this.dateComp?this.dateComp.setDate(t):this.tempValue=t},n.prototype.setDisabled=function(t){this.dateComp?this.setDateCompDisabled(t):this.disabled=t},n.prototype.setDisplayed=function(t){we(this.eParent,t)},n.prototype.setInputPlaceholder=function(t){this.dateComp&&this.dateComp.setInputPlaceholder&&this.dateComp.setInputPlaceholder(t)},n.prototype.setInputAriaLabel=function(t){this.dateComp&&this.dateComp.setInputAriaLabel&&this.dateComp.setInputAriaLabel(t)},n.prototype.afterGuiAttached=function(t){this.dateComp&&typeof this.dateComp.afterGuiAttached=="function"&&this.dateComp.afterGuiAttached(t)},n.prototype.updateParams=function(t){var e;!((e=this.dateComp)===null||e===void 0)&&e.onParamsUpdated&&typeof this.dateComp.onParamsUpdated=="function"&&this.dateComp.onParamsUpdated(t)},n.prototype.setDateCompDisabled=function(t){this.dateComp!=null&&this.dateComp.setDisabled!=null&&this.dateComp.setDisabled(t)},n}(),l0=function(){function n(){this.customFilterOptions={}}return n.prototype.init=function(t,e){this.filterOptions=t.filterOptions||e,this.mapCustomOptions(),this.selectDefaultItem(t)},n.prototype.getFilterOptions=function(){return this.filterOptions},n.prototype.mapCustomOptions=function(){var t=this;this.filterOptions&&this.filterOptions.forEach(function(e){if(typeof e!="string"){var r=[["displayKey"],["displayName"],["predicate","test"]],o=function(i){return i.some(function(a){return e[a]!=null})?!0:(console.warn("AG Grid: ignoring FilterOptionDef as it doesn't contain one of '"+i+"'"),!1)};if(!r.every(o)){t.filterOptions=t.filterOptions.filter(function(i){return i===e})||[];return}t.customFilterOptions[e.displayKey]=e}})},n.prototype.selectDefaultItem=function(t){if(t.defaultOption)this.defaultOption=t.defaultOption;else if(this.filterOptions.length>=1){var e=this.filterOptions[0];typeof e=="string"?this.defaultOption=e:e.displayKey?this.defaultOption=e.displayKey:console.warn("AG Grid: invalid FilterOptionDef supplied as it doesn't contain a 'displayKey'")}else console.warn("AG Grid: no filter options for filter")},n.prototype.getDefaultOption=function(){return this.defaultOption},n.prototype.getCustomOption=function(t){return this.customFilterOptions[t]},n}(),u0={applyFilter:"Apply",clearFilter:"Clear",resetFilter:"Reset",cancelFilter:"Cancel",textFilter:"Text Filter",numberFilter:"Number Filter",dateFilter:"Date Filter",setFilter:"Set Filter",filterOoo:"Filter...",empty:"Choose One",equals:"Equals",notEqual:"Not equal",lessThan:"Less than",greaterThan:"Greater than",inRange:"In range",inRangeStart:"From",inRangeEnd:"To",lessThanOrEqual:"Less than or equals",greaterThanOrEqual:"Greater than or equals",contains:"Contains",notContains:"Not conta
<div ref="eTopLeftResizer" class="ag-resizer ag-resizer-topLeft"></div>
<div ref="eTopResizer" class="ag-resizer ag-resizer-top"></div>
<div ref="eTopRightResizer" class="ag-resizer ag-resizer-topRight"></div>
<div ref="eRightResizer" class="ag-resizer ag-resizer-right"></div>
<div ref="eBottomRightResizer" class="ag-resizer ag-resizer-bottomRight"></div>
<div ref="eBottomResizer" class="ag-resizer ag-resizer-bottom"></div>
<div ref="eBottomLeftResizer" class="ag-resizer ag-resizer-bottomLeft"></div>
<div ref="eLeftResizer" class="ag-resizer ag-resizer-left"></div>
</div>`,YS=function(n){iW(t,n);function t(e,r){var o=n.call(this)||this;return o.element=e,o.dragStartPosition={x:0,y:0},o.position={x:0,y:0},o.lastSize={width:-1,height:-1},o.positioned=!1,o.resizersAdded=!1,o.resizeListeners=[],o.boundaryEl=null,o.isResizing=!1,o.isMoving=!1,o.resizable={},o.movable=!1,o.currentResizer=null,o.config=Object.assign({},{popup:!1},r),o}return t.prototype.center=function(){var e=this.offsetParent,r=e.clientHeight,o=e.clientWidth,i=o/2-this.getWidth()/2,a=r/2-this.getHeight()/2;this.offsetElement(i,a)},t.prototype.initialisePosition=function(){if(!this.positioned){var e=this.config,r=e.centered,o=e.forcePopupParentAsOffsetParent,i=e.minWidth,a=e.width,s=e.minHeight,l=e.height,u=e.x,c=e.y;this.offsetParent||this.setOffsetParent();var d=0,f=0,p=!!this.element.offsetParent;if(p){var h=this.findBoundaryElement(),v=window.getComputedStyle(h);if(v.minWidth!=null){var C=h.offsetWidth-this.element.offsetWidth;f=parseInt(v.minWidth,10)-C}if(v.minHeight!=null){var m=h.offsetHeight-this.element.offsetHeight;d=parseInt(v.minHeight,10)-m}}if(this.minHeight=s||d,this.minWidth=i||f,a&&this.setWidth(a),l&&this.setHeight(l),(!a||!l)&&this.refreshSize(),r)this.center();else if(u||c)this.offsetElement(u,c);else if(p&&o){var h=this.boundaryEl,y=!0;if(h||(h=this.findBoundaryElement(),y=!1),h){var S=parseFloat(h.style.top),E=parseFloat(h.style.left);y?this.offsetElement(isNaN(E)?0:E,isNaN(S)?0:S):this.setPosition(E,S)}}this.positioned=!!this.offsetParent}},t.prototype.isPositioned=function(){return this.positioned},t.prototype.getPosition=function(){return this.position},t.prototype.setMovable=function(e,r){if(!(!this.config.popup||e===this.movable)){this.movable=e;var o=this.moveElementDragListener||{eElement:r,onDragStart:this.onMoveStart.bind(this),onDragging:this.onMove.bind(this),onDragStop:this.onMoveEnd.bind(this)};e?(this.dragService.addDragSource(o),this.moveElementDragListener=o):(this.dragService.removeDragSource(o),this.moveElementDragListener=void 0)}},t.prototype.setResizable=function(e){var r=this;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}}Object.keys(e).forEach(function(o){var i=e,a=!!i[o],s=r.getResizerElement(o),l={dragStartPixels:0,eElement:s,onDragStart:function(u){return r.onResizeStart(u,o)},onDragging:r.onResize.bind(r),onDragStop:function(u){return r.onResizeEnd(u,o)}};(a||!r.isAlive()&&!a)&&(a?(r.dragService.addDragSource(l),r.resizeListeners.push(l),s.style.pointerEvents="all"):s.style.pointerEvents="none",r.resizable[o]=a)})},t.prototype.removeSizeFromEl=function(){this.element.style.removeProperty("height"),this.element.style.removeProperty("width"),this.element.style.removeProperty("flex")},t.prototype.restoreLastSize=function(){this.element.style.flex="0 0 auto";var e=this.lastSize,r=e.height,o=e.width;o!==-1&&(this.element.style.width=o+"px"),r!==-1&&(this.element.style.height=r+"px")},t.prototype.getHeight=function(){return this.element.offsetHeight},t.prototype.setHeight=function(e){var r=this.config.popup,o=this.element,i=!1;if(typeof e=="string"&&e.indexOf("%")!==-1)Ps(o,e),e=VS(o),i=!0;else if(e=Math.max(this.minHeight,e),this.positioned){var a=this.getAvailableHeight();a&&e>a&&(e=a)}this.getHeight()!==e&&(i?(o.style.maxHeight="unset",o.style.minHeight="unset"):r?Ps(o,e):(o.style.height=e+"px",o.style.flex="0 0 auto",this.lastSize.height=typeof e=="number"?e:parseFloat(e)))},t.prototype.getAvailableHeight=function(){var e=this.config,r=e.popup,o=e.forcePopupParentAsOffsetParent;this.positioned||this.initialisePosition();var i=this.offsetParent.clientHeight;if(!i)return null;var a=this.element.getBoundingClientRect(),s=this.offsetParent.getBoundingClientRect(),l=r?this.position.y:a.top,u=r?0:s.top,c=0;if(o){var d=this.element.parentElement;if(d){var f=d.getBoundingClientRect().bottom;c=f-a.bottom}}var p=i+u-l-c;return p},t.prototype.getWidth=function(){return this.element.offsetWidth},t.prototype.setWidth=function(e){var r=th
<form class="ag-filter-wrapper">
<div class="ag-filter-body-wrapper ag-`+this.getCssIdentifier()+`-body-wrapper" ref="eFilterBody">
`+this.createBodyTemplate()+`
</div>
</form>`;this.setTemplate(o,e),r=this.getGui(),r&&r.addEventListener("submit",this.onFormSubmit)},t.prototype.isReadOnly=function(){return!!this.providedFilterParams.readOnly},t.prototype.init=function(e){var r=this;this.setParams(e),this.resetUiToDefaults(!0).then(function(){r.updateUiVisibility(),r.setupOnBtApplyDebounce()})},t.prototype.setParams=function(e){this.providedFilterParams=e,this.applyActive=t.isUseApplyButton(e),this.createButtonPanel()},t.prototype.createButtonPanel=function(){var e=this,r=this.providedFilterParams.buttons;if(!(!r||r.length<1||this.isReadOnly())){var o=document.createElement("div");o.classList.add("ag-filter-apply-panel");var i=function(a){var s,l;switch(a){case"apply":s=e.translate("applyFilter"),l=function(d){return e.onBtApply(!1,!1,d)};break;case"clear":s=e.translate("clearFilter"),l=function(){return e.onBtClear()};break;case"reset":s=e.translate("resetFilter"),l=function(){return e.onBtReset()};break;case"cancel":s=e.translate("cancelFilter"),l=function(d){e.onBtCancel(d)};break;default:console.warn("AG Grid: Unknown button type specified");return}var u=a==="apply"?"submit":"button",c=tr(`<button
type="`+u+`"
ref="`+a+`FilterButton"
class="ag-button ag-standard-button ag-filter-apply-panel-button"
>`+s+`
</button>`);o.appendChild(c),e.addManagedListener(c,"click",l)};KS(r).forEach(function(a){return i(a)}),this.getGui().appendChild(o)}},t.prototype.getDefaultDebounceMs=function(){return 0},t.prototype.setupOnBtApplyDebounce=function(){var e=this,r=t.getDebounceMs(this.providedFilterParams,this.getDefaultDebounceMs()),o=wo(this.checkApplyDebounce.bind(this),r);this.onBtApplyDebounce=function(){e.debouncePending=!0,o()}},t.prototype.checkApplyDebounce=function(){this.debouncePending&&(this.debouncePending=!1,this.onBtApply())},t.prototype.getModel=function(){return this.appliedModel?this.appliedModel:null},t.prototype.setModel=function(e){var r=this,o=e!=null?this.setModelIntoUi(e):this.resetUiToDefaults();return o.then(function(){r.updateUiVisibility(),r.applyModel("api")})},t.prototype.onBtCancel=function(e){var r=this;this.resetUiToActiveModel(this.getModel(),function(){r.handleCancelEnd(e)})},t.prototype.handleCancelEnd=function(e){this.providedFilterParams.closeOnApply&&this.close(e)},t.prototype.resetUiToActiveModel=function(e,r){var o=this,i=function(){o.onUiChanged(!1,"prevent"),r?.()};e!=null?this.setModelIntoUi(e).then(i):this.resetUiToDefaults().then(i)},t.prototype.onBtClear=function(){var e=this;this.resetUiToDefaults().then(function(){return e.onUiChanged()})},t.prototype.onBtReset=function(){this.onBtClear(),this.onBtApply()},t.prototype.applyModel=function(e){var r=this.getModelFromUi();if(!this.isModelValid(r))return!1;var o=this.appliedModel;return this.appliedModel=r,!this.areModelsEqual(o,r)},t.prototype.isModelValid=function(e){return!0},t.prototype.onFormSubmit=function(e){e.preventDefault()},t.prototype.onBtApply=function(e,r,o){if(e===void 0&&(e=!1),r===void 0&&(r=!1),o&&o.preventDefault(),this.applyModel(r?"rowDataUpdated":"ui")){var i="columnFilter";this.providedFilterParams.filterChangedCallback({afterFloatingFilter:e,afterDataChange:r,source:i})}var a=this.providedFilterParams.closeOnApply;a&&this.applyActive&&!e&&!r&&this.close(o)},t.prototype.onNewRowsLoaded=function(){},t.prototype.close=function(e){if(this.hidePopup){var r=e,o=r&&r.key,i;(o==="Enter"||o==="Space")&&(i={keyboardEvent:r}),this.hidePopup(i),this.hidePopup=null}},t.prototype.onUiChanged=function(e,r){if(e===void 0&&(e=!1),this.updateUiVisibility(),this.providedFilterParams.filterModifiedCallback(),this.applyActive&&!this.isReadOnly()){var o=this.isModelValid(this.getModelFromUi());Jl(this.getRefElement("applyFilterButton"),!o)}e&&!r||r==="immediately"?this.onBtApply(e):(!this.applyActive&&!r||r==="debounce")&&this.onBtApplyDebounce()},t.prototype.afterGuiAttached=function(e){e&&(this.hidePopup=e.hidePopup),this.refreshFilterResizer(e?.container)},t.prototype.refreshFilterResizer=function(e){if(!(!this.positionableFeature||e==="toolPanel")){var r=e==="floatingFilter",o=this,i=o.positionableFeature,a=o.gridOptionsService;r?(i.restoreLastSize(),i.setResizable(a.is("enableRtl")?{bottom:!0,bottomLeft:!0,left:!0}:{bottom:!0,bottomRight:!0,right:!0})):(this.positionableFeature.removeSizeFromEl(),this.positionableFeature.setResizable(!1)),this.positionableFeature.constrainSizeToAvailableHeight(!0)}},t.prototype.afterGuiDetached=function(){this.checkApplyDebounce(),this.positionableFeature&&this.positionableFeature.constrainSizeToAvailableHeight(!1)},t.getDebounceMs=function(e,r){return t.isUseApplyButton(e)?(e.debounceMs!=null&&console.warn("AG Grid: debounceMs is ignored when apply button is present"),0):e.debounceMs!=null?e.debounceMs:r},t.isUseApplyButton=function(e){return!!e.buttons&&e.buttons.indexOf("apply")>=0},t.prototype.destroy=function(){var e=this.getGui();e&&e.removeEventListener("submit",this.onFormSubmit),this.hidePopup=null,this.positionableFeature&&(this.positionableFeature=this.destroyBean(this.positionableFeature)),n.prototype.destroy.call(this)},t.prototype.translate=function(e){var r=this.localeService.getLocaleTextFunc();return r(e,u0[e])},t.prototype.getCellValue=function(e){var r=this.providedFilterParams,o=r.api,i=r.colDef,a=r.column,s=r.columnApi,l=r.context;return this.providedFilterParams.va
<div class="ag-picker-field" role="presentation">
<div ref="eLabel"></div>
<div ref="eWrapper" class="ag-wrapper ag-picker-field-wrapper ag-picker-collapsed">
<div ref="eDisplayField" class="ag-picker-field-display"></div>
<div ref="eIcon" class="ag-picker-field-icon" aria-hidden="true"></div>
</div>
</div>`,JS=function(n){dW(t,n);function t(e){var r=n.call(this,e,e?.template||fW,e?.className)||this;if(r.isPickerDisplayed=!1,r.skipClick=!1,r.pickerGap=4,r.hideCurrentPicker=null,r.ariaRole=e?.ariaRole,r.onPickerFocusIn=r.onPickerFocusIn.bind(r),r.onPickerFocusOut=r.onPickerFocusOut.bind(r),!e)return r;var o=e.pickerGap,i=e.maxPickerHeight,a=e.variableWidth,s=e.minPickerWidth,l=e.maxPickerWidth;return o!=null&&(r.pickerGap=o),r.variableWidth=!!a,i!=null&&r.setPickerMaxHeight(i),s!=null&&r.setPickerMinWidth(s),l!=null&&r.setPickerMaxWidth(l),r}return t.prototype.postConstruct=function(){n.prototype.postConstruct.call(this),this.setupAria();var e="ag-"+this.getCompId()+"-display";this.eDisplayField.setAttribute("id",e);var r=this.getAriaElement();ID(r,e),this.addManagedListener(r,"keydown",this.onKeyDown.bind(this)),this.addManagedListener(this.eLabel,"mousedown",this.onLabelOrWrapperMouseDown.bind(this)),this.addManagedListener(this.eWrapper,"mousedown",this.onLabelOrWrapperMouseDown.bind(this));var o=this.config.pickerIcon;if(o){var i=_t(o,this.gridOptionsService);i&&this.eIcon.appendChild(i)}},t.prototype.setupAria=function(){var e=this.getAriaElement();e.setAttribute("tabindex",(this.gridOptionsService.getNum("tabIndex")||0).toString()),So(e,!1),this.ariaRole&&bt(e,this.ariaRole)},t.prototype.refreshLabel=function(){var e,r=this.getAriaElement();Gg(r,(e=this.getLabelId())!==null&&e!==void 0?e:""),n.prototype.refreshLabel.call(this)},t.prototype.onLabelOrWrapperMouseDown=function(e){if(e&&(e.preventDefault(),this.getFocusableElement().focus()),this.skipClick){this.skipClick=!1;return}this.isDisabled()||(this.isPickerDisplayed?this.hidePicker():this.showPicker())},t.prototype.onKeyDown=function(e){switch(e.key){case O.UP:case O.DOWN:case O.ENTER:case O.SPACE:e.preventDefault(),this.onLabelOrWrapperMouseDown();break;case O.ESCAPE:this.isPickerDisplayed&&(e.preventDefault(),e.stopPropagation(),this.hideCurrentPicker&&this.hideCurrentPicker());break}},t.prototype.showPicker=function(){this.isPickerDisplayed=!0,this.pickerComponent||(this.pickerComponent=this.createPickerComponent());var e=this.pickerComponent.getGui();e.addEventListener("focusin",this.onPickerFocusIn),e.addEventListener("focusout",this.onPickerFocusOut),this.hideCurrentPicker=this.renderAndPositionPicker(),this.toggleExpandedStyles(!0)},t.prototype.renderAndPositionPicker=function(){var e=this,r=this.gridOptionsService.getDocument(),o=this.pickerComponent.getGui();this.gridOptionsService.is("suppressScrollWhenPopupsAreOpen")||(this.destroyMouseWheelFunc=this.addManagedListener(r.body,"wheel",function(x){o.contains(x.target)||e.hidePicker()}));var i=this.localeService.getLocaleTextFunc(),a=this.config,s=a.pickerType,l=a.pickerAriaLabelKey,u=a.pickerAriaLabelValue,c=a.modalPicker,d=c===void 0?!0:c,f={modal:d,eChild:o,closeOnEsc:!0,closedCallback:function(){var x=r.activeElement===r.body;e.beforeHidePicker(),x&&e.isAlive()&&e.getFocusableElement().focus()},ariaLabel:i(l,u)},p=this.popupService.addPopup(f),h=this,v=h.maxPickerHeight,C=h.minPickerWidth,m=h.maxPickerWidth,y=h.pickerGap,S=h.variableWidth;S?(C&&(o.style.minWidth=C),o.style.width=Ug(gd(this.eWrapper)),m&&(o.style.maxWidth=m)):Cd(o,m??gd(this.eWrapper));var E=v??_d(this.popupService.getPopupParent())+"px";o.style.setProperty("max-height",E),o.style.position="absolute";var R=this.gridOptionsService.is("enableRtl")?"right":"left";return this.popupService.positionPopupByComponent({type:s,eventSource:this.eWrapper,ePopup:o,position:"under",alignSide:R,keepWithinBounds:!0,nudgeY:y}),p.hideFunc},t.prototype.beforeHidePicker=function(){this.destroyMouseWheelFunc&&(this.destroyMouseWheelFunc(),this.destroyMouseWheelFunc=void 0),this.toggleExpandedStyles(!1);var e=this.pickerComponent.getGui();e.removeEventListener("focusin",this.onPickerFocusIn),e.removeEventListener("focusout",this.onPickerFocusOut),this.isPickerDisplayed=!1,this.pickerComponent=void 0,this.hideCurrentPicker=null},t.prototype.toggleExpandedStyles=function(e){if(this.isAlive()){var r=this.getAriaElement();So(r,e),this.eWrapper.classLi
<div role="presentation">
<div ref="eLabel" class="ag-input-field-label"></div>
<div ref="eWrapper" class="ag-wrapper ag-input-wrapper" role="presentation">
<`+i+' ref="eInput" class="ag-input-field-input"></'+i+`>
</div>
</div>`,r)||this;return a.inputType=o,a.displayFieldTag=i,a}return t.prototype.postConstruct=function(){n.prototype.postConstruct.call(this),this.setInputType(),this.eLabel.classList.add(this.className+"-label"),this.eWrapper.classList.add(this.className+"-input-wrapper"),this.eInput.classList.add(this.className+"-input"),this.addCssClass("ag-input-field"),this.eInput.id=this.eInput.id||"ag-"+this.getCompId()+"-input";var e=this.config,r=e.width,o=e.value;r!=null&&this.setWidth(r),o!=null&&this.setValue(o),this.addInputListeners(),this.activateTabIndex([this.eInput])},t.prototype.refreshLabel=function(){D(this.getLabel())?Gg(this.eInput,this.getLabelId()):this.eInput.removeAttribute("aria-labelledby"),n.prototype.refreshLabel.call(this)},t.prototype.addInputListeners=function(){var e=this;this.addManagedListener(this.eInput,"input",function(r){return e.setValue(r.target.value)})},t.prototype.setInputType=function(){this.displayFieldTag==="input"&&this.eInput.setAttribute("type",this.inputType)},t.prototype.getInputElement=function(){return this.eInput},t.prototype.setInputWidth=function(e){return Cd(this.eWrapper,e),this},t.prototype.setInputName=function(e){return this.getInputElement().setAttribute("name",e),this},t.prototype.getFocusableElement=function(){return this.eInput},t.prototype.setMaxLength=function(e){var r=this.eInput;return r.maxLength=e,this},t.prototype.setInputPlaceholder=function(e){return ni(this.eInput,"placeholder",e),this},t.prototype.setInputAriaLabel=function(e){return Ii(this.eInput,e),this},t.prototype.setDisabled=function(e){return Jl(this.eInput,e),n.prototype.setDisabled.call(this,e)},t.prototype.setAutoComplete=function(e){if(e===!0)ni(this.eInput,"autocomplete",null);else{var r=typeof e=="string"?e:"off";ni(this.eInput,"autocomplete",r)}return this},Cw([G("eLabel")],t.prototype,"eLabel",void 0),Cw([G("eWrapper")],t.prototype,"eWrapper",void 0),Cw([G("eInput")],t.prototype,"eInput",void 0),t}(QS),mW=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Rd=function(n){mW(t,n);function t(e,r,o){r===void 0&&(r="ag-checkbox"),o===void 0&&(o="checkbox");var i=n.call(this,e,r,o)||this;return i.labelAlignment="right",i.selected=!1,i.readOnly=!1,i.passive=!1,i}return t.prototype.addInputListeners=function(){this.addManagedListener(this.eInput,"click",this.onCheckboxClick.bind(this)),this.addManagedListener(this.eLabel,"click",this.toggle.bind(this))},t.prototype.getNextValue=function(){return this.selected===void 0?!0:!this.selected},t.prototype.setPassive=function(e){this.passive=e},t.prototype.isReadOnly=function(){return this.readOnly},t.prototype.setReadOnly=function(e){this.eWrapper.classList.toggle("ag-disabled",e),this.eInput.disabled=e,this.readOnly=e},t.prototype.setDisabled=function(e){return this.eWrapper.classList.toggle("ag-disabled",e),n.prototype.setDisabled.call(this,e)},t.prototype.toggle=function(){if(!this.eInput.disabled){var e=this.isSelected(),r=this.getNextValue();this.passive?this.dispatchChange(r,e):this.setValue(r)}},t.prototype.getValue=function(){return this.isSelected()},t.prototype.setValue=function(e,r){return this.refreshSelectedClass(e),this.setSelected(e,r),this},t.prototype.setName=function(e){var r=this.getInputElement();return r.name=e,this},t.prototype.isSelected=function(){return this.selected},t.prototype.setSelected=function(e,r){this.isSelected()!==e&&(this.previousValue=this.isSelected(),e=this.selected=typeof e=="boolean"?e:void 0,this.eInput.checked=e,this.eInput.indeterminate=e===void 0,r||this.dispatchChange(this.selected,this.previousValue))},t.prototype.dispatchChange=function(e,r,o){this.dispatchEvent({type:_.EVENT_FIELD_VALUE
<div class="ag-floating-filter-input" role="presentation">
<ag-input-text-field ref="eReadOnlyText"></ag-input-text-field>
<div ref="eDateWrapper" style="display: flex;"></div>
</div>`)||this}return t.prototype.getDefaultFilterOptions=function(){return t_.DEFAULT_FILTER_OPTIONS},t.prototype.init=function(e){n.prototype.init.call(this,e),this.params=e,this.filterParams=e.filterParams,this.createDateComponent(),this.filterModelFormatter=new f0(this.filterParams,this.localeService,this.optionsFactory);var r=this.localeService.getLocaleTextFunc();this.eReadOnlyText.setDisabled(!0).setInputAriaLabel(r("ariaDateFilterInput","Date Filter Input"))},t.prototype.onParamsUpdated=function(e){n.prototype.onParamsUpdated.call(this,e),this.params=e,this.filterParams=e.filterParams,this.updateDateComponent(),this.filterModelFormatter.updateParams({optionsFactory:this.optionsFactory,dateFilterParams:this.filterParams})},t.prototype.setEditable=function(e){we(this.eDateWrapper,e),we(this.eReadOnlyText.getGui(),!e)},t.prototype.onParentModelChanged=function(e,r){if(!(this.isEventFromFloatingFilter(r)||this.isEventFromDataChange(r))){n.prototype.setLastTypeFromModel.call(this,e);var o=!this.isReadOnly()&&this.canWeEditAfterModelFromParentFilter(e);if(this.setEditable(o),o){if(e){var i=e;this.dateComp.setDate(Jr(i.dateFrom))}else this.dateComp.setDate(null);this.eReadOnlyText.setValue("")}else this.eReadOnlyText.setValue(this.filterModelFormatter.getModelAsString(e)),this.dateComp.setDate(null)}},t.prototype.onDateChanged=function(){var e=this,r=this.dateComp.getDate(),o=Zn(r);this.params.parentFilterInstance(function(i){if(i){var a=Jr(o);i.onFloatingFilterChanged(e.getLastType()||null,a)}})},t.prototype.getDateComponentParams=function(){var e=wd.getDebounceMs(this.params.filterParams,this.getDefaultDebounceMs());return{onDateChanged:wo(this.onDateChanged.bind(this),e),filterParams:this.params.column.getColDef().filterParams}},t.prototype.createDateComponent=function(){var e=this;this.dateComp=new s0(this.getContext(),this.userComponentFactory,this.getDateComponentParams(),this.eDateWrapper),this.addDestroyFunc(function(){return e.dateComp.destroy()})},t.prototype.updateDateComponent=function(){var e=this.getDateComponentParams(),r=this.gridOptionsService,o=r.api,i=r.columnApi,a=r.context;e.api=o,e.columnApi=i,e.context=a,this.dateComp.updateParams(e)},t.prototype.getFilterModelFormatter=function(){return this.filterModelFormatter},ww([w("userComponentFactory")],t.prototype,"userComponentFactory",void 0),ww([G("eReadOnlyText")],t.prototype,"eReadOnlyText",void 0),ww([G("eDateWrapper")],t.prototype,"eDateWrapper",void 0),t}(p0),PW=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),OW=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},LW=function(n,t){var e=typeof Symbol=="function"&&n[Symbol.iterator];if(!e)return n;var r=e.call(n),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(e=r.return)&&e.call(r)}finally{if(a)throw a.error}}return i},IW=function(n){PW(t,n);function t(){return n.call(this,`
<div class="ag-filter-filter">
<ag-input-text-field class="ag-date-filter" ref="eDateInput"></ag-input-text-field>
</div>`)||this}return t.prototype.destroy=function(){n.prototype.destroy.call(this)},t.prototype.init=function(e){var r=this;this.params=e,this.setParams(e);var o=this.gridOptionsService.getDocument(),i=this.eDateInput.getInputElement();this.addManagedListener(i,"mousedown",function(){r.eDateInput.isDisabled()||r.usingSafariDatePicker||i.focus()}),this.addManagedListener(i,"input",function(a){a.target===o.activeElement&&(r.eDateInput.isDisabled()||r.params.onDateChanged())})},t.prototype.setParams=function(e){var r=this.eDateInput.getInputElement(),o=this.shouldUseBrowserDatePicker(e);this.usingSafariDatePicker=o&&to(),r.type=o?"date":"text";var i=e.filterParams||{},a=i.minValidYear,s=i.maxValidYear,l=i.minValidDate,u=i.maxValidDate;if(l&&a&&ge(function(){return console.warn("AG Grid: DateFilter should not have both minValidDate and minValidYear parameters set at the same time! minValidYear will be ignored.")},"DateFilter.minValidDateAndMinValidYearWarning"),u&&s&&ge(function(){return console.warn("AG Grid: DateFilter should not have both maxValidDate and maxValidYear parameters set at the same time! maxValidYear will be ignored.")},"DateFilter.maxValidDateAndMaxValidYearWarning"),l&&u){var c=LW([l,u].map(function(p){return p instanceof Date?p:Jr(p)}),2),d=c[0],f=c[1];d&&f&&d.getTime()>f.getTime()&&ge(function(){return console.warn("AG Grid: DateFilter parameter minValidDate should always be lower than or equal to parameter maxValidDate.")},"DateFilter.minValidDateAndMaxValidDateWarning")}l?l instanceof Date?r.min=Ql(l):r.min=l:a&&(r.min=a+"-01-01"),u?u instanceof Date?r.max=Ql(u):r.max=u:s&&(r.max=s+"-12-31")},t.prototype.onParamsUpdated=function(e){this.params=e,this.setParams(e)},t.prototype.getDate=function(){return Jr(this.eDateInput.getValue())},t.prototype.setDate=function(e){this.eDateInput.setValue(Zn(e,!1))},t.prototype.setInputPlaceholder=function(e){this.eDateInput.setInputPlaceholder(e)},t.prototype.setDisabled=function(e){this.eDateInput.setDisabled(e)},t.prototype.afterGuiAttached=function(e){(!e||!e.suppressFocus)&&this.eDateInput.getInputElement().focus()},t.prototype.shouldUseBrowserDatePicker=function(e){return e.filterParams&&e.filterParams.browserDatePicker!=null?e.filterParams.browserDatePicker:Vg()||MS()||to()&&bS()>=14.1},OW([G("eDateInput")],t.prototype,"eDateInput",void 0),t}(se),DW=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Ha=function(n){DW(t,n);function t(e,r,o){return r===void 0&&(r="ag-text-field"),o===void 0&&(o="text"),n.call(this,e,r,o)||this}return t.prototype.postConstruct=function(){n.prototype.postConstruct.call(this),this.config.allowedCharPattern&&this.preventDisallowedCharacters()},t.prototype.setValue=function(e,r){return this.eInput.value!==e&&(this.eInput.value=D(e)?e:""),n.prototype.setValue.call(this,e,r)},t.prototype.setStartValue=function(e){this.setValue(e,!0)},t.prototype.preventDisallowedCharacters=function(){var e=new RegExp("["+this.config.allowedCharPattern+"]"),r=function(o){jg(o)&&o.key&&!e.test(o.key)&&o.preventDefault()};this.addManagedListener(this.eInput,"keydown",r),this.addManagedListener(this.eInput,"paste",function(o){var i,a=(i=o.clipboardData)===null||i===void 0?void 0:i.getData("text");a&&a.split("").some(function(s){return!e.test(s)})&&o.preventDefault()})},t}(Fa),AW=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n
<div class="ag-floating-filter-input" role="presentation" ref="eFloatingFilterInputContainer"></div>
`)},t.prototype.getDefaultDebounceMs=function(){return 500},t.prototype.onParentModelChanged=function(e,r){this.isEventFromFloatingFilter(r)||this.isEventFromDataChange(r)||(this.setLastTypeFromModel(e),this.setEditable(this.canWeEditAfterModelFromParentFilter(e)),this.floatingFilterInputService.setValue(this.getFilterModelFormatter().getModelAsString(e)))},t.prototype.init=function(e){this.setupFloatingFilterInputService(e),n.prototype.init.call(this,e),this.setTextInputParams(e)},t.prototype.setupFloatingFilterInputService=function(e){this.floatingFilterInputService=this.createFloatingFilterInputService(e),this.floatingFilterInputService.setupGui(this.eFloatingFilterInputContainer)},t.prototype.setTextInputParams=function(e){var r;this.params=e;var o=(r=e.browserAutoComplete)!==null&&r!==void 0?r:!1;if(this.floatingFilterInputService.setParams({ariaLabel:this.getAriaLabel(e),autoComplete:o}),this.applyActive=wd.isUseApplyButton(this.params.filterParams),!this.isReadOnly()){var i=wd.getDebounceMs(this.params.filterParams,this.getDefaultDebounceMs()),a=wo(this.syncUpWithParentFilter.bind(this),i);this.floatingFilterInputService.setValueChangedListener(a)}},t.prototype.onParamsUpdated=function(e){n.prototype.onParamsUpdated.call(this,e),this.setTextInputParams(e)},t.prototype.recreateFloatingFilterInputService=function(e){var r=this.floatingFilterInputService.getValue();vr(this.eFloatingFilterInputContainer),this.destroyBean(this.floatingFilterInputService),this.setupFloatingFilterInputService(e),this.floatingFilterInputService.setValue(r,!0)},t.prototype.getAriaLabel=function(e){var r=this.columnModel.getDisplayNameForColumn(e.column,"header",!0),o=this.localeService.getLocaleTextFunc();return r+" "+o("ariaFilterInput","Filter Input")},t.prototype.syncUpWithParentFilter=function(e){var r=this,o=e.key===O.ENTER;if(!(this.applyActive&&!o)){var i=this.floatingFilterInputService.getValue();this.params.filterParams.trimInput&&(i=Kg.trimInput(i),this.floatingFilterInputService.setValue(i,!0)),this.params.parentFilterInstance(function(a){a&&a.onFloatingFilterChanged(r.getLastType()||null,i||null)})}},t.prototype.setEditable=function(e){this.floatingFilterInputService.setEditable(e)},Sw([w("columnModel")],t.prototype,"columnModel",void 0),Sw([G("eFloatingFilterInputContainer")],t.prototype,"eFloatingFilterInputContainer",void 0),Sw([M],t.prototype,"postConstruct",null),t}(p0),S0=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),FW=function(n){S0(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.valueChangedListener=function(){},e.numberInputActive=!0,e}return t.prototype.setupGui=function(e){var r=this;this.eFloatingFilterNumberInput=this.createManagedBean(new $g),this.eFloatingFilterTextInput=this.createManagedBean(new Ha),this.eFloatingFilterTextInput.setDisabled(!0);var o=this.eFloatingFilterNumberInput.getGui(),i=this.eFloatingFilterTextInput.getGui();e.appendChild(o),e.appendChild(i),this.setupListeners(o,function(a){return r.valueChangedListener(a)}),this.setupListeners(i,function(a){return r.valueChangedListener(a)})},t.prototype.setEditable=function(e){this.numberInputActive=e,this.eFloatingFilterNumberInput.setDisplayed(this.numberInputActive),this.eFloatingFilterTextInput.setDisplayed(!this.numberInputActive)},t.prototype.setAutoComplete=function(e){this.eFloatingFilterNumberInput.setAutoComplete(e),this.eFloatingFilterTextInput.setAutoComplete(e)},t.prototype.getValue=function(){return this.getActiveInputElement().getValue()},t.prototype.setValue=function(e,r){this.getActiveInputElement().setValue(e,r)},t.prototype.getActiveInputElement=function(){return this.numberInputAc
<span ref="eSortOrder" class="ag-sort-indicator-icon ag-sort-order ag-hidden" aria-hidden="true"></span>
<span ref="eSortAsc" class="ag-sort-indicator-icon ag-sort-ascending-icon ag-hidden" aria-hidden="true"></span>
<span ref="eSortDesc" class="ag-sort-indicator-icon ag-sort-descending-icon ag-hidden" aria-hidden="true"></span>
<span ref="eSortMixed" class="ag-sort-indicator-icon ag-sort-mixed-icon ag-hidden" aria-hidden="true"></span>
<span ref="eSortNone" class="ag-sort-indicator-icon ag-sort-none-icon ag-hidden" aria-hidden="true"></span>
</span>`,ws([G("eSortOrder")],t.prototype,"eSortOrder",void 0),ws([G("eSortAsc")],t.prototype,"eSortAsc",void 0),ws([G("eSortDesc")],t.prototype,"eSortDesc",void 0),ws([G("eSortMixed")],t.prototype,"eSortMixed",void 0),ws([G("eSortNone")],t.prototype,"eSortNone",void 0),ws([w("columnModel")],t.prototype,"columnModel",void 0),ws([w("sortController")],t.prototype,"sortController",void 0),t}(se),GW=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),hn=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},kW=function(n){GW(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.lastMovingChanged=0,e}return t.prototype.destroy=function(){n.prototype.destroy.call(this)},t.prototype.refresh=function(e){return this.params=e,this.workOutTemplate()!=this.currentTemplate||this.workOutShowMenu()!=this.currentShowMenu||this.workOutSort()!=this.currentSort?!1:(this.setDisplayName(e),!0)},t.prototype.workOutTemplate=function(){var e=sD(this.params.template,t.TEMPLATE);return e=e&&e.trim?e.trim():e,e},t.prototype.init=function(e){this.params=e,this.currentTemplate=this.workOutTemplate(),this.setTemplate(this.currentTemplate),this.setupTap(),this.setupIcons(e.column),this.setMenu(),this.setupSort(),this.setupFilterIcon(),this.setDisplayName(e)},t.prototype.setDisplayName=function(e){if(this.currentDisplayName!=e.displayName){this.currentDisplayName=e.displayName;var r=xt(this.currentDisplayName);this.eText&&(this.eText.innerHTML=r)}},t.prototype.setupIcons=function(e){this.addInIcon("menu",this.eMenu,e),this.addInIcon("filter",this.eFilter,e)},t.prototype.addInIcon=function(e,r,o){if(r!=null){var i=_t(e,this.gridOptionsService,o);i&&r.appendChild(i)}},t.prototype.setupTap=function(){var e=this,r=this.gridOptionsService;if(!r.is("suppressTouch")){var o=new Zr(this.getGui(),!0),i=r.is("suppressMenuHide"),a=i&&D(this.eMenu),s=a?new Zr(this.eMenu,!0):o;if(this.params.enableMenu){var l=a?"EVENT_TAP":"EVENT_LONG_TAP",u=function(d){r.api.showColumnMenuAfterMouseClick(e.params.column,d.touchStart)};this.addManagedListener(s,Zr[l],u)}if(this.params.enableSorting){var c=function(d){var f=d.touchStart.target;i&&e.eMenu.contains(f)||e.sortController.progressSort(e.params.column,!1,"uiColumnSorted")};this.addManagedListener(o,Zr.EVENT_TAP,c)}this.addDestroyFunc(function(){return o.destroy()}),a&&this.addDestroyFunc(function(){return s.destroy()})}},t.prototype.workOutShowMenu=function(){var e=!this.gridOptionsService.is("suppressMenuHide"),r=Na()&&e,o=this.params.enableMenu&&!r;return o},t.prototype.setMenu=function(){var e=this;if(this.eMenu){if(this.currentShowMenu=this.workOutShowMenu(),!this.currentShowMenu){Oi(this.eMenu);return}var r=this.gridOptionsService.is("suppressMenuHide");this.addManagedListener(this.eMenu,"click",function(){return e.showMenu(e.eMenu)}),this.eMenu.classList.toggle("ag-header-menu-always-show",r)}},t.prototype.showMenu=function(e){e||(e=this.eMenu),this.menuFactory.showMenuAfterButtonClick(this.params.column,e,"columnMenu")},t.prototype.workOutSort=function(){return this.params.enableSorting},t.prototype.setupSort=function(){var e=this;if(this.currentSort=this.params.enableSorting,this.eSortIndicator||(this.eSortIndicator=this.context.createBean(new Yg(!0)),this.eSortIndicator.attachCustomElements(this.eSortOrder,this.eSortAsc,this.eSortDesc,this.eSortMixed,this.eSortNone)),this.eSortIndicator.setupSort(this.params.co
<span ref="eMenu" class="ag-header-icon ag-header-cell-menu-button" aria-hidden="true"></span>
<div ref="eLabel" class="ag-header-cell-label" role="presentation">
<span ref="eText" class="ag-header-cell-text"></span>
<span ref="eFilter" class="ag-header-icon ag-header-label-icon ag-filter-icon" aria-hidden="true"></span>
<ag-sort-indicator ref="eSortIndicator"></ag-sort-indicator>
</div>
</div>`,hn([w("sortController")],t.prototype,"sortController",void 0),hn([w("menuFactory")],t.prototype,"menuFactory",void 0),hn([w("columnModel")],t.prototype,"columnModel",void 0),hn([G("eFilter")],t.prototype,"eFilter",void 0),hn([G("eSortIndicator")],t.prototype,"eSortIndicator",void 0),hn([G("eMenu")],t.prototype,"eMenu",void 0),hn([G("eLabel")],t.prototype,"eLabel",void 0),hn([G("eText")],t.prototype,"eText",void 0),hn([G("eSortOrder")],t.prototype,"eSortOrder",void 0),hn([G("eSortAsc")],t.prototype,"eSortAsc",void 0),hn([G("eSortDesc")],t.prototype,"eSortDesc",void 0),hn([G("eSortMixed")],t.prototype,"eSortMixed",void 0),hn([G("eSortNone")],t.prototype,"eSortNone",void 0),t}(se),HW=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),_w=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},VW=function(n){HW(t,n);function t(){return n.call(this,t.TEMPLATE)||this}return t.prototype.destroy=function(){n.prototype.destroy.call(this)},t.prototype.init=function(e){this.params=e,this.checkWarnings(),this.setupLabel(),this.addGroupExpandIcon(),this.setupExpandIcons()},t.prototype.checkWarnings=function(){var e=this.params;if(e.template){var r="AG Grid: A template was provided for Header Group Comp - templates are only supported for Header Comps (not groups)";ge(function(){return console.warn(r)},"HeaderGroupComp.templateNotSupported")}},t.prototype.setupExpandIcons=function(){var e=this;this.addInIcon("columnGroupOpened","agOpened"),this.addInIcon("columnGroupClosed","agClosed");var r=function(a){if(!_o(a)){var s=!e.params.columnGroup.isExpanded();e.columnModel.setColumnGroupOpened(e.params.columnGroup.getProvidedColumnGroup(),s,"uiColumnExpanded")}};this.addTouchAndClickListeners(this.eCloseIcon,r),this.addTouchAndClickListeners(this.eOpenIcon,r);var o=function(a){ii(a)};this.addManagedListener(this.eCloseIcon,"dblclick",o),this.addManagedListener(this.eOpenIcon,"dblclick",o),this.addManagedListener(this.getGui(),"dblclick",r),this.updateIconVisibility();var i=this.params.columnGroup.getProvidedColumnGroup();this.addManagedListener(i,gt.EVENT_EXPANDED_CHANGED,this.updateIconVisibility.bind(this)),this.addManagedListener(i,gt.EVENT_EXPANDABLE_CHANGED,this.updateIconVisibility.bind(this))},t.prototype.addTouchAndClickListeners=function(e,r){var o=new Zr(e,!0);this.addManagedListener(o,Zr.EVENT_TAP,r),this.addDestroyFunc(function(){return o.destroy()}),this.addManagedListener(e,"click",r)},t.prototype.updateIconVisibility=function(){var e=this.params.columnGroup;if(e.isExpandable()){var r=this.params.columnGroup.isExpanded();we(this.eOpenIcon,r),we(this.eCloseIcon,!r)}else we(this.eOpenIcon,!1),we(this.eCloseIcon,!1)},t.prototype.addInIcon=function(e,r){var o=_t(e,this.gridOptionsService,null);o&&this.getRefElement(r).appendChild(o)},t.prototype.addGroupExpandIcon=function(){if(!this.params.columnGroup.isExpandable()){we(this.eOpenIcon,!1),we(this.eCloseIcon,!1);return}},t.prototype.setupLabel=function(){var e,r=this.params,o=r.displayName,i=r.columnGroup;if(D(o)){var a=xt(o);this.getRefElement("agLabel").innerHTML=a}this.addOrRemoveCssClass("ag-sticky-label",!(!((e=i.getColGroupDef())===null||e===void 0)&&e.suppressStickyLabel))},t.TEMPLATE=`<div class="ag-header-group-cell-label" ref="agContainer" role="presentation">
<span ref="agLabel" class="ag-header-group-text" role="presentation"></span>
<span ref="agOpened" class="ag-header-icon ag-header-expand-icon ag-header-expand-icon-expanded"></span>
<span ref="agClosed" class="ag-header-icon ag-header-expand-icon ag-header-expand-icon-collapsed"></span>
</div>`,_w([w("columnModel")],t.prototype,"columnModel",void 0),_w([G("agOpened")],t.prototype,"eOpenIcon",void 0),_w([G("agClosed")],t.prototype,"eCloseIcon",void 0),t}(se),BW=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Va=function(n){BW(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t.prototype.isPopup=function(){return!0},t.prototype.setParentComponent=function(e){e.addCssClass("ag-has-popup"),n.prototype.setParentComponent.call(this,e)},t.prototype.destroy=function(){var e=this.parentComponent,r=e&&e.isAlive();r&&e.getGui().classList.remove("ag-has-popup"),n.prototype.destroy.call(this)},t}(se),WW=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),UW=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},E0=function(n){WW(t,n);function t(){return n.call(this,t.TEMPLATE)||this}return t.prototype.init=function(e){this.params=e,this.focusAfterAttached=e.cellStartedEdit,this.eTextArea.setMaxLength(e.maxLength||200).setCols(e.cols||60).setRows(e.rows||10),D(e.value,!0)&&this.eTextArea.setValue(e.value.toString(),!0),this.addGuiEventListener("keydown",this.onKeyDown.bind(this)),this.activateTabIndex()},t.prototype.onKeyDown=function(e){var r=e.key;(r===O.LEFT||r===O.UP||r===O.RIGHT||r===O.DOWN||e.shiftKey&&r===O.ENTER)&&e.stopPropagation()},t.prototype.afterGuiAttached=function(){var e=this.localeService.getLocaleTextFunc();this.eTextArea.setInputAriaLabel(e("ariaInputEditor","Input Editor")),this.focusAfterAttached&&this.eTextArea.getFocusableElement().focus()},t.prototype.getValue=function(){var e=this.eTextArea.getValue();return!D(e)&&!D(this.params.value)?this.params.value:this.params.parseValue(e)},t.TEMPLATE=`<div class="ag-large-text">
<ag-input-text-area ref="eTextArea" class="ag-large-text-input"></ag-input-text-area>
</div>`,UW([G("eTextArea")],t.prototype,"eTextArea",void 0),t}(Va),jW=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),iI=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},R0=function(n){jW(t,n);function t(){var e=n.call(this,`<div class="ag-cell-edit-wrapper">
<ag-select class="ag-cell-editor" ref="eSelect"></ag-select>
</div>`)||this;return e.startedByEnter=!1,e}return t.prototype.init=function(e){this.focusAfterAttached=e.cellStartedEdit;var r=this,o=r.eSelect,i=r.valueFormatterService,a=r.gridOptionsService,s=e.values,l=e.value,u=e.eventKey;if(Z(s)){console.warn("AG Grid: no values found for select cellEditor");return}this.startedByEnter=u!=null?u===O.ENTER:!1;var c=!1;s.forEach(function(h){var v={value:h},C=i.formatValue(e.column,null,h),m=C!=null;v.text=m?C:h,o.addOption(v),c=c||l===h}),c?o.setValue(e.value,!0):e.values.length&&o.setValue(e.values[0],!0);var d=e.valueListGap,f=e.valueListMaxWidth,p=e.valueListMaxHeight;d!=null&&o.setPickerGap(d),p!=null&&o.setPickerMaxHeight(p),f!=null&&o.setPickerMaxWidth(f),a.get("editType")!=="fullRow"&&this.addManagedListener(this.eSelect,qg.EVENT_ITEM_SELECTED,function(){return e.stopEditing()})},t.prototype.afterGuiAttached=function(){var e=this;this.focusAfterAttached&&this.eSelect.getFocusableElement().focus(),this.startedByEnter&&setTimeout(function(){e.isAlive()&&e.eSelect.showPicker()})},t.prototype.focusIn=function(){this.eSelect.getFocusableElement().focus()},t.prototype.getValue=function(){return this.eSelect.getValue()},t.prototype.isPopup=function(){return!1},iI([w("valueFormatterService")],t.prototype,"valueFormatterService",void 0),iI([G("eSelect")],t.prototype,"eSelect",void 0),t}(Va),zW=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),qW=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Xg=function(n){zW(t,n);function t(e){var r=n.call(this,`
<div class="ag-cell-edit-wrapper">
`+e.getTemplate()+`
</div>`)||this;return r.cellEditorInput=e,r}return t.prototype.init=function(e){this.params=e;var r=this.eInput;this.cellEditorInput.init(r,e);var o;if(e.cellStartedEdit){this.focusAfterAttached=!0;var i=e.eventKey;i===O.BACKSPACE||e.eventKey===O.DELETE?o="":i&&i.length===1?o=i:(o=this.cellEditorInput.getStartValue(),i!==O.F2&&(this.highlightAllOnFocus=!0))}else this.focusAfterAttached=!1,o=this.cellEditorInput.getStartValue();o!=null&&r.setStartValue(o),this.addManagedListener(r.getGui(),"keydown",function(a){var s=a.key;(s===O.PAGE_UP||s===O.PAGE_DOWN)&&a.preventDefault()})},t.prototype.afterGuiAttached=function(){var e,r,o=this.localeService.getLocaleTextFunc(),i=this.eInput;if(i.setInputAriaLabel(o("ariaInputEditor","Input Editor")),!!this.focusAfterAttached){to()||i.getFocusableElement().focus();var a=i.getInputElement();this.highlightAllOnFocus?a.select():(r=(e=this.cellEditorInput).setCaret)===null||r===void 0||r.call(e)}},t.prototype.focusIn=function(){var e=this.eInput,r=e.getFocusableElement(),o=e.getInputElement();r.focus(),o.select()},t.prototype.getValue=function(){return this.cellEditorInput.getValue()},t.prototype.isPopup=function(){return!1},qW([G("eInput")],t.prototype,"eInput",void 0),t}(Va),$W=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),KW=function(){function n(){}return n.prototype.getTemplate=function(){return'<ag-input-text-field class="ag-cell-editor" ref="eInput"></ag-input-text-field>'},n.prototype.init=function(t,e){this.eInput=t,this.params=e,e.maxLength!=null&&t.setMaxLength(e.maxLength)},n.prototype.getValue=function(){var t=this.eInput.getValue();return!D(t)&&!D(this.params.value)?this.params.value:this.params.parseValue(t)},n.prototype.getStartValue=function(){var t=this.params.useFormatter||this.params.column.getColDef().refData;return t?this.params.formatValue(this.params.value):this.params.value},n.prototype.setCaret=function(){var t=this.eInput.getValue(),e=D(t)&&t.length||0;e&&this.eInput.getInputElement().setSelectionRange(e,e)},n}(),vS=function(n){$W(t,n);function t(){return n.call(this,new KW)||this}return t}(Xg),YW=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),XW=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},QW="\u2191",JW="\u2193",T0=function(n){YW(t,n);function t(){var e=n.call(this,t.TEMPLATE)||this;return e.refreshCount=0,e}return t.prototype.init=function(e){this.eValue=this.queryForHtmlElement(".ag-value-change-value"),this.eDelta=this.queryForHtmlElement(".ag-value-change-delta"),this.refresh(e)},t.prototype.showDelta=function(e,r){var o=Math.abs(r),i=e.formatValue(o),a=D(i)?i:o,s=r>=0;s?this.eDelta.innerHTML=QW+a:this.eDelta.innerHTML=JW+a,this.eDelta.classList.toggle("ag-value-change-delta-up",s),this.eDelta.classList.toggle("ag-value-change-delta-down",!s)},t.prototype.setTimerToRemoveDelta=function(){var e=this;this.refreshCount++;var r=this.refreshCount;window.setTimeout(function(){r===e.refreshCount&&e.hideDeltaValue()},2e3)},t.prototype.hideDelt
<span class="ag-value-slide-current"></span>
</span>`,eU([w("filterManager")],t.prototype,"filterManager",void 0),t}(se),$l=function(){return $l=Object.assign||function(n){for(var t,e=1,r=arguments.length;e<r;e++){t=arguments[e];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o])}return n},$l.apply(this,arguments)},ce=function(){function n(t){this.rowIndex=null,this.key=null,this.childrenMapped={},this.displayed=!1,this.rowTop=null,this.oldRowTop=null,this.selectable=!0,this.__objectId=n.OBJECT_ID_SEQUENCE++,this.__autoHeights={},this.alreadyRendered=!1,this.highlighted=null,this.hovered=!1,this.selected=!1,this.beans=t}return n.prototype.setData=function(t){this.setDataCommon(t,!1)},n.prototype.updateData=function(t){this.setDataCommon(t,!0)},n.prototype.setDataCommon=function(t,e){var r=this.data;this.data=t,this.beans.valueCache.onDataChanged(),this.updateDataOnDetailNode(),this.checkRowSelectable(),this.resetQuickFilterAggregateText();var o=this.createDataChangedEvent(t,r,e);this.dispatchLocalEvent(o)},n.prototype.updateDataOnDetailNode=function(){this.detailNode&&(this.detailNode.data=this.data)},n.prototype.createDataChangedEvent=function(t,e,r){return{type:n.EVENT_DATA_CHANGED,node:this,oldData:e,newData:t,update:r}},n.prototype.createLocalRowEvent=function(t){return{type:t,node:this}},n.prototype.getRowIndexString=function(){return this.rowPinned==="top"?"t-"+this.rowIndex:this.rowPinned==="bottom"?"b-"+this.rowIndex:this.rowIndex.toString()},n.prototype.createDaemonNode=function(){var t=new n(this.beans);return t.id=this.id,t.data=this.data,t.__daemon=!0,t.selected=this.selected,t.level=this.level,t},n.prototype.setDataAndId=function(t,e){var r=D(this.id)?this.createDaemonNode():null,o=this.data;this.data=t,this.updateDataOnDetailNode(),this.setId(e),this.checkRowSelectable(),this.beans.selectionService.syncInRowNode(this,r);var i=this.createDataChangedEvent(t,o,!1);this.dispatchLocalEvent(i)},n.prototype.checkRowSelectable=function(){var t=this.beans.gridOptionsService.get("isRowSelectable");this.setRowSelectable(t?t(this):!0)},n.prototype.setRowSelectable=function(t){if(this.selectable!==t){this.selectable=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(n.EVENT_SELECTABLE_CHANGED));var e=this.beans.gridOptionsService.is("groupSelectsChildren");if(e){var r=this.calculateSelectedFromChildren();this.setSelectedParams({newValue:r??!1,source:"selectableChanged"})}}},n.prototype.setId=function(t){var e=this.beans.gridOptionsService.getCallback("getRowId");if(e)if(this.data){var r=this.getGroupKeys(!0);this.id=e({data:this.data,parentKeys:r.length>0?r:void 0,level:this.level}),this.id!==null&&typeof this.id=="string"&&this.id.startsWith(n.ID_PREFIX_ROW_GROUP)&&console.error("AG Grid: Row IDs cannot start with "+n.ID_PREFIX_ROW_GROUP+", this is a reserved prefix for AG Grid's row grouping feature."),this.id!==null&&typeof this.id!="string"&&(this.id=""+this.id)}else this.id=void 0;else this.id=t},n.prototype.getGroupKeys=function(t){t===void 0&&(t=!1);var e=[],r=this;for(t&&(r=r.parent);r&&r.level>=0;)e.push(r.key),r=r.parent;return e.reverse(),e},n.prototype.isPixelInRange=function(t){return!D(this.rowTop)||!D(this.rowHeight)?!1:t>=this.rowTop&&t<this.rowTop+this.rowHeight},n.prototype.setFirstChild=function(t){this.firstChild!==t&&(this.firstChild=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(n.EVENT_FIRST_CHILD_CHANGED)))},n.prototype.setLastChild=function(t){this.lastChild!==t&&(this.lastChild=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(n.EVENT_LAST_CHILD_CHANGED)))},n.prototype.setChildIndex=function(t){this.childIndex!==t&&(this.childIndex=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(n.EVENT_CHILD_INDEX_CHANGED)))},n.prototype.setRowTop=function(t){this.oldRowTop=this.rowTop,this.rowTop!==t&&(this.rowTop=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(n.EVENT_TOP_CHANGED)),this.setDisplayed(t!==null))},n.prototype.clearRowTopAndRowIndex=function(){this.oldRowTop=null,this.s
<div class="ag-selection-checkbox" role="presentation">
<ag-checkbox role="presentation" ref="eCheckbox"></ag-checkbox>
</div>`)||this}return t.prototype.postConstruct=function(){this.eCheckbox.setPassive(!0),DD(this.eCheckbox.getInputElement(),"polite")},t.prototype.getCheckboxId=function(){return this.eCheckbox.getInputElement().id},t.prototype.onDataChanged=function(){this.onSelectionChanged()},t.prototype.onSelectableChanged=function(){this.showOrHideSelect()},t.prototype.onSelectionChanged=function(){var e=this.localeService.getLocaleTextFunc(),r=this.rowNode.isSelected(),o=Hg(e,r),i=e("ariaRowToggleSelection","Press Space to toggle row selection");this.eCheckbox.setValue(r,!0),this.eCheckbox.setInputAriaLabel(i+" ("+o+")")},t.prototype.onClicked=function(e,r,o){return this.rowNode.setSelectedParams({newValue:e,rangeSelect:o.shiftKey,groupSelectsFiltered:r,event:o,source:"checkboxSelected"})},t.prototype.init=function(e){var r=this;this.rowNode=e.rowNode,this.column=e.column,this.overrides=e.overrides,this.onSelectionChanged(),this.addManagedListener(this.eCheckbox.getInputElement(),"dblclick",function(s){ii(s)}),this.addManagedListener(this.eCheckbox.getInputElement(),"click",function(s){ii(s);var l=r.gridOptionsService.is("groupSelectsFiltered"),u=r.eCheckbox.getValue();if(r.shouldHandleIndeterminateState(u,l)){var c=r.onClicked(!0,l,s||{});c===0&&r.onClicked(!1,l,s)}else u?r.onClicked(!1,l,s):r.onClicked(!0,l,s||{})}),this.addManagedListener(this.rowNode,ce.EVENT_ROW_SELECTED,this.onSelectionChanged.bind(this)),this.addManagedListener(this.rowNode,ce.EVENT_DATA_CHANGED,this.onDataChanged.bind(this)),this.addManagedListener(this.rowNode,ce.EVENT_SELECTABLE_CHANGED,this.onSelectableChanged.bind(this));var o=this.gridOptionsService.get("isRowSelectable"),i=o||typeof this.getIsVisible()=="function";if(i){var a=this.showOrHideSelect.bind(this);this.addManagedListener(this.eventService,_.EVENT_DISPLAYED_COLUMNS_CHANGED,a),this.addManagedListener(this.rowNode,ce.EVENT_DATA_CHANGED,a),this.addManagedListener(this.rowNode,ce.EVENT_CELL_CHANGED,a),this.showOrHideSelect()}this.eCheckbox.getInputElement().setAttribute("tabindex","-1")},t.prototype.shouldHandleIndeterminateState=function(e,r){return r&&(this.eCheckbox.getPreviousValue()===void 0||e===void 0)&&this.gridOptionsService.isRowModelType("clientSide")},t.prototype.showOrHideSelect=function(){var e,r,o,i,a=this.rowNode.selectable,s=this.getIsVisible();if(a)if(typeof s=="function"){var l=(e=this.overrides)===null||e===void 0?void 0:e.callbackParams,u=(r=this.column)===null||r===void 0?void 0:r.createColumnFunctionCallbackParams(this.rowNode);a=u?s(Sg(Sg({},l),u)):!1}else a=s??!1;var c=(o=this.column)===null||o===void 0?void 0:o.getColDef().showDisabledCheckboxes;if(c){this.eCheckbox.setDisabled(!a),this.setVisible(!0),this.setDisplayed(!0);return}if(!((i=this.overrides)===null||i===void 0)&&i.removeHidden){this.setDisplayed(a);return}this.setVisible(a)},t.prototype.getIsVisible=function(){var e,r;return this.overrides?this.overrides.isVisible:(r=(e=this.column)===null||e===void 0?void 0:e.getColDef())===null||r===void 0?void 0:r.checkboxSelection},aI([G("eCheckbox")],t.prototype,"eCheckbox",void 0),aI([M],t.prototype,"postConstruct",null),t}(se),rU=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Ss=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Vh=function(n){var t=typeof Symbol=="function"&&Symbol.iterator,e=t&&n[t],r=0;if(e)return e.call(n);if(n&&typeof n.length=="number")return{next
<span class="ag-dnd-ghost-icon ag-shake-left-to-right"></span>
<div class="ag-dnd-ghost-label"></div>
</div>`,Ss([w("dragService")],t.prototype,"dragService",void 0),Ss([w("mouseEventService")],t.prototype,"mouseEventService",void 0),Ss([w("columnApi")],t.prototype,"columnApi",void 0),Ss([w("gridApi")],t.prototype,"gridApi",void 0),Ss([M],t.prototype,"init",null),Ss([Mt],t.prototype,"clearDragSourceParamsList",null),t=e=Ss([H("dragAndDropService")],t),t}(F),Qg=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),cd=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},_g=function(n){Qg(t,n);function t(e,r,o,i,a,s){var l=n.call(this)||this;return l.cellValueFn=e,l.rowNode=r,l.column=o,l.customGui=i,l.dragStartPixels=a,l.suppressVisibilityChange=s,l.dragSource=null,l}return t.prototype.isCustomGui=function(){return this.customGui!=null},t.prototype.postConstruct=function(){if(this.customGui?this.setDragElement(this.customGui,this.dragStartPixels):(this.setTemplate('<div class="ag-drag-handle ag-row-drag" aria-hidden="true"></div>'),this.getGui().appendChild(_t("rowDrag",this.gridOptionsService,null)),this.addDragSource()),this.checkCompatibility(),!this.suppressVisibilityChange){var e=this.gridOptionsService.is("rowDragManaged")?new oU(this,this.beans,this.rowNode,this.column):new nU(this,this.beans,this.rowNode,this.column);this.createManagedBean(e,this.beans.context)}},t.prototype.setDragElement=function(e,r){this.setTemplateFromElement(e),this.addDragSource(r)},t.prototype.getSelectedNodes=function(){var e=this.gridOptionsService.is("rowDragMultiRow");if(!e)return[this.rowNode];var r=this.beans.selectionService.getSelectedNodes();return r.indexOf(this.rowNode)!==-1?r:[this.rowNode]},t.prototype.checkCompatibility=function(){var e=this.gridOptionsService.is("rowDragManaged"),r=this.gridOptionsService.is("treeData");r&&e&&ge(function(){return console.warn("AG Grid: If using row drag with tree data, you cannot have rowDragManaged=true")},"RowDragComp.managedAndTreeData")},t.prototype.getDragItem=function(){return{rowNode:this.rowNode,rowNodes:this.getSelectedNodes(),columns:this.column?[this.column]:void 0,defaultTextValue:this.cellValueFn()}},t.prototype.getRowDragText=function(e){if(e){var r=e.getColDef();if(r.rowDragText)return r.rowDragText}return this.gridOptionsService.get("rowDragText")},t.prototype.addDragSource=function(e){var r=this;e===void 0&&(e=4),this.dragSource&&this.removeDragSource();var o=this.getRowDragText(this.column),i=this.localeService.getLocaleTextFunc();this.dragSource={type:g.DragSourceType.RowDrag,eElement:this.getGui(),dragItemName:function(){var a,s=r.getDragItem(),l=((a=s.rowNodes)===null||a===void 0?void 0:a.length)||1;return o?o(s,l):l===1?r.cellValueFn():l+" "+i("rowDragRows","rows")},getDragItem:function(){return r.getDragItem()},dragStartPixels:e,dragSourceDomDataKey:this.gridOptionsService.getDomDataKey()},this.beans.dragAndDropService.addDragSource(this.dragSource,!0)},t.prototype.removeDragSource=function(){this.dragSource&&this.beans.dragAndDropService.removeDragSource(this.dragSource),this.dragSource=null},cd([w("beans")],t.prototype,"beans",void 0),cd([M],t.prototype,"postConstruct",null),cd([Mt],t.prototype,"removeDragSource",null),t}(se),P0=function(n){Qg(t,n);function t(e,r,o){var i=n.call(this)||this;return i.parent=e,i.rowNode=r,i.column=o,i}return t.prototype.setDisplayedOrVisible=function(e){var r={skipAriaHidden:!0};if(e)this.parent.setDisplayed(!1,r);else{var o=!0,i=!1;this.column&&(o=thi
<span class="ag-group-expanded" ref="eExpanded"></span>
<span class="ag-group-contracted" ref="eContracted"></span>
<span class="ag-group-checkbox ag-invisible" ref="eCheckbox"></span>
<span class="ag-group-value" ref="eValue"></span>
<span class="ag-group-child-count" ref="eChildCount"></span>
</span>`,Hc([G("eExpanded")],t.prototype,"eExpanded",void 0),Hc([G("eContracted")],t.prototype,"eContracted",void 0),Hc([G("eCheckbox")],t.prototype,"eCheckbox",void 0),Hc([G("eValue")],t.prototype,"eValue",void 0),Hc([G("eChildCount")],t.prototype,"eChildCount",void 0),t}(se),sU=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),sI=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},lU=function(n){sU(t,n);function t(){return n.call(this,t.TEMPLATE)||this}return t.prototype.init=function(e){e.node.failedLoad?this.setupFailed():this.setupLoading()},t.prototype.setupFailed=function(){var e=this.localeService.getLocaleTextFunc();this.eLoadingText.innerText=e("loadingError","ERR")},t.prototype.setupLoading=function(){var e=_t("groupLoading",this.gridOptionsService,null);e&&this.eLoadingIcon.appendChild(e);var r=this.localeService.getLocaleTextFunc();this.eLoadingText.innerText=r("loadingOoo","Loading")},t.prototype.refresh=function(e){return!1},t.prototype.destroy=function(){n.prototype.destroy.call(this)},t.TEMPLATE=`<div class="ag-loading">
<span class="ag-loading-icon" ref="eLoadingIcon"></span>
<span class="ag-loading-text" ref="eLoadingText"></span>
</div>`,sI([G("eLoadingIcon")],t.prototype,"eLoadingIcon",void 0),sI([G("eLoadingText")],t.prototype,"eLoadingText",void 0),t}(se),uU=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),cU=function(n){uU(t,n);function t(){return n.call(this)||this}return t.prototype.destroy=function(){n.prototype.destroy.call(this)},t.prototype.init=function(e){var r,o=(r=this.gridOptionsService.get("overlayLoadingTemplate"))!==null&&r!==void 0?r:t.DEFAULT_LOADING_OVERLAY_TEMPLATE,i=this.localeService.getLocaleTextFunc(),a=o.replace("[LOADING...]",i("loadingOoo","Loading..."));this.setTemplate(a)},t.DEFAULT_LOADING_OVERLAY_TEMPLATE='<span class="ag-overlay-loading-center">[LOADING...]</span>',t}(se),dU=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),fU=function(n){dU(t,n);function t(){return n.call(this)||this}return t.prototype.destroy=function(){n.prototype.destroy.call(this)},t.prototype.init=function(e){var r,o=(r=this.gridOptionsService.get("overlayNoRowsTemplate"))!==null&&r!==void 0?r:t.DEFAULT_NO_ROWS_TEMPLATE,i=this.localeService.getLocaleTextFunc(),a=o.replace("[NO_ROWS_TO_SHOW]",i("noRowsToShow","No Rows To Show"));this.setTemplate(a)},t.DEFAULT_NO_ROWS_TEMPLATE='<span class="ag-overlay-no-rows-center">[NO_ROWS_TO_SHOW]</span>',t}(se),pU=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),hU=function(n){pU(t,n);function t(){return n.call(this,'<div class="ag-tooltip"></div>')||this}return t.prototype.init=function(e){var r=e.value;this.getGui().innerHTML=xt(r)},t}(Va),gU=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),vU=function(){function n(){}return n.prototype.getTemplate=function(){return'<ag-input-number-field class="ag-cell-editor" ref="eInput"></ag-input-number-field>'},n.prototype.init=function(t,e){this.eInput=t,this.params=e,e.max!=null&&t.setMax(e.max),e.min!=null&&t.setMin(e.min),e.precision!=null&&t.setPrecision(e.precision),e.step!=null&&t.setStep(e.step),e.showStepperButtons&&t.getInputElement().classList.add("ag-number-field-input-stepper")},n.prototype.getValue=function(){var t=this.eInput.getValue();if(!D(t)&&!D(this.params.value))return this.params.value;var e=this.params.parseValue(t);if(e==null)return e;if(typeof e=="string"){if(e==="")return null;e=Number(e)}return isNaN(e)?null:e},n.prototype.getStartValue=function(){return this.params.value},n}(),L0=function(n){gU(t,n);function t(){return n.call(this,new vU)||this}return t}(Xg),mU=functio
<div class="ag-cell-wrapper ag-checkbox-cell" role="presentation">
<ag-checkbox role="presentation" ref="eCheckbox"></ag-checkbox>
</div>`,EU([G("eCheckbox")],t.prototype,"eCheckbox",void 0),t}(se),RU=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),TU=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},F0=function(n){RU(t,n);function t(){return n.call(this,`
<div class="ag-cell-wrapper ag-cell-edit-wrapper ag-checkbox-edit">
<ag-checkbox role="presentation" ref="eCheckbox"></ag-checkbox>
</div>`)||this}return t.prototype.init=function(e){var r=this,o;this.params=e;var i=(o=e.value)!==null&&o!==void 0?o:void 0;this.eCheckbox.setValue(i),this.eCheckbox.getInputElement().setAttribute("tabindex","-1"),this.setAriaLabel(i),this.addManagedListener(this.eCheckbox,_.EVENT_FIELD_VALUE_CHANGED,function(a){return r.setAriaLabel(a.selected)})},t.prototype.getValue=function(){return this.eCheckbox.getValue()},t.prototype.focusIn=function(){this.eCheckbox.getFocusableElement().focus()},t.prototype.afterGuiAttached=function(){this.params.cellStartedEdit&&this.focusIn()},t.prototype.isPopup=function(){return!1},t.prototype.setAriaLabel=function(e){var r=this.localeService.getLocaleTextFunc(),o=Hg(r,e),i=r("ariaToggleCellValue","Press SPACE to toggle cell value");this.eCheckbox.setInputAriaLabel(i+" ("+o+")")},TU([G("eCheckbox")],t.prototype,"eCheckbox",void 0),t}(Va),xU=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Ew=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},lI=function(n,t){var e=typeof Symbol=="function"&&n[Symbol.iterator];if(!e)return n;var r=e.call(n),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(e=r.return)&&e.call(r)}finally{if(a)throw a.error}}return i},uI=function(n,t){for(var e=0,r=t.length,o=n.length;e<r;e++,o++)n[o]=t[e];return n},b0=function(n){xU(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.agGridDefaults={agDateInput:IW,agColumnHeader:kW,agColumnGroupHeader:VW,agSortIndicator:Yg,agTextColumnFloatingFilter:_0,agNumberColumnFloatingFilter:bW,agDateColumnFloatingFilter:xW,agReadOnlyFloatingFilter:nW,agAnimateShowChangeCellRenderer:T0,agAnimateSlideCellRenderer:x0,agGroupCellRenderer:mS,agGroupRowRenderer:mS,agLoadingCellRenderer:lU,agCheckboxCellRenderer:A0,agCellEditor:vS,agTextCellEditor:vS,agNumberCellEditor:L0,agDateCellEditor:I0,agDateStringCellEditor:D0,agSelectCellEditor:R0,agLargeTextCellEditor:E0,agCheckboxCellEditor:F0,agTextColumnFilter:Kg,agNumberColumnFilter:r_,agDateColumnFilter:t_,agLoadingOverlay:cU,agNoRowsOverlay:fU,agTooltipComponent:hU},e.enterpriseAgDefaultCompsModule={agSetColumnFilter:g.ModuleNames.SetFilterModule,agSetColumnFloatingFilter:g.ModuleNames.SetFilterModule,agMultiColumnFilter:g.ModuleNames.MultiFilterModule,agMultiColumnFloatingFilter:g.ModuleNames.MultiFilterModule,agGroupColumnFilter:g.ModuleNames.RowGroupingModule,agGroupColumnFloatingFilter:g.ModuleNames.RowGroupingModule,agRichSelect:g.ModuleNames.RichSelectModule,agRichSelectCellEditor:g.ModuleNames.RichSelectModule,agDetailCellRenderer:g.ModuleNames.MasterDetailModule,agSparklineCellRenderer:g.ModuleNames.SparklinesModule},e.jsComps={},e}return t.prototype.init=function(){var e=this;this.gridOptions.components!=null&&st(this.gridOptions.components,function(r,o){return e.registerJsComponent(r,o)})},t.prototype.registerDefaultComponent=function(e,r){if(this.agGridDefaults[e]){console.error("Trying to overwrite a default component. You should call registerComponent");return}this.agGridDefaults[e]=r},t.prototype.registerJsComponent=function(e,r){this.jsComps[e]=r},t.prototype.retrieve=function(e,r){var o=this,i=function(d,f){return{componentFromFramework:f,component:d}},a=this.getFrameworkOverrides().frameworkComponent(r,this.gridOptions.components);if(a!=null)return i(a,!0);var s=this.jsComps[r];if(s){var l=t
`,Vc([w("valueService")],t.prototype,"valueService",void 0),Vc([w("columnModel")],t.prototype,"columnModel",void 0),Vc([w("rowModel")],t.prototype,"rowModel",void 0),Vc([M],t.prototype,"postConstruct",null),t=e=Vc([H("quickFilterService")],t),t}(F),qU=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Rg=function(){return Rg=Object.assign||function(n){for(var t,e=1,r=arguments.length;e<r;e++){t=arguments[e];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o])}return n},Rg.apply(this,arguments)},Yo=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},V0=function(n){qU(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.allColumnFilters=new Map,e.allColumnListeners=new Map,e.activeAggregateFilters=[],e.activeColumnFilters=[],e.processingFilterChange=!1,e.filterModelUpdateQueue=[],e}return t.prototype.init=function(){var e=this;this.addManagedListener(this.eventService,_.EVENT_GRID_COLUMNS_CHANGED,function(){return e.onColumnsChanged()}),this.addManagedListener(this.eventService,_.EVENT_COLUMN_VALUE_CHANGED,function(){return e.refreshFiltersForAggregations()}),this.addManagedListener(this.eventService,_.EVENT_COLUMN_PIVOT_CHANGED,function(){return e.refreshFiltersForAggregations()}),this.addManagedListener(this.eventService,_.EVENT_COLUMN_PIVOT_MODE_CHANGED,function(){return e.refreshFiltersForAggregations()}),this.addManagedListener(this.eventService,_.EVENT_NEW_COLUMNS_LOADED,function(){return e.updateAdvancedFilterColumns()}),this.addManagedListener(this.eventService,_.EVENT_COLUMN_VISIBLE,function(){return e.updateAdvancedFilterColumns()}),this.allowShowChangeAfterFilter=this.gridOptionsService.is("allowShowChangeAfterFilter"),this.externalFilterPresent=this.isExternalFilterPresentCallback(),this.updateAggFiltering(),this.addManagedPropertyListener("groupAggFiltering",function(){return e.updateAggFiltering()}),this.addManagedPropertyListener("advancedFilterModel",function(r){return e.setAdvancedFilterModel(r.currentValue)}),this.addManagedListener(this.eventService,_.EVENT_ADVANCED_FILTER_ENABLED_CHANGED,function(r){var o=r.enabled;return e.onAdvancedFilterEnabledChanged(o)}),this.addManagedListener(this.eventService,_.EVENT_DATA_TYPES_INFERRED,function(){return e.processFilterModelUpdateQueue()}),this.addManagedListener(this.quickFilterService,H0.EVENT_QUICK_FILTER_CHANGED,function(){return e.onFilterChanged({source:"quickFilter"})})},t.prototype.isExternalFilterPresentCallback=function(){var e=this.gridOptionsService.getCallback("isExternalFilterPresent");return typeof e=="function"?e({}):!1},t.prototype.doesExternalFilterPass=function(e){var r=this.gridOptionsService.get("doesExternalFilterPass");return typeof r=="function"?r(e):!1},t.prototype.setFilterModel=function(e){var r=this;if(this.isAdvancedFilterEnabled()){this.warnAdvancedFilters();return}if(this.dataTypeService.isPendingInference()){this.filterModelUpdateQueue.push(e);return}var o=[],i=this.getFilterModel();if(e){var a=KS(Object.keys(e));this.allColumnFilters.forEach(function(s,l){var u=e[l];o.push(r.setModelOnFilterWrapper(s.filterPromise,u)),a.delete(l)}),a.forEach(function(s){var l=r.columnModel.getPrimaryColumn(s)||r.columnModel.getGridColumn(s);if(!l){console.warn("AG Grid: setFilterModel() - no column found for colId: "+s);return}if(!l.isFilterAllowed()){console.warn("AG Grid: setFilterModel() - unable to fully apply model, filterin
<div ref="eFloatingFilterBody" role="presentation"></div>
<div class="ag-floating-filter-button ag-hidden" ref="eButtonWrapper" role="presentation">
<button type="button" class="ag-button ag-floating-filter-button-button" ref="eButtonShowMainFilter" tabindex="-1"></button>
</div>
</div>`,Bc([G("eFloatingFilterBody")],t.prototype,"eFloatingFilterBody",void 0),Bc([G("eButtonWrapper")],t.prototype,"eButtonWrapper",void 0),Bc([G("eButtonShowMainFilter")],t.prototype,"eButtonShowMainFilter",void 0),Bc([M],t.prototype,"postConstruct",null),Bc([Mt],t.prototype,"destroyFloatingFilterComp",null),t}(i_),YU=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),XU=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i};(function(n){n.AUTO_HEIGHT="ag-layout-auto-height",n.NORMAL="ag-layout-normal",n.PRINT="ag-layout-print"})(g.LayoutCssClasses||(g.LayoutCssClasses={}));var a_=function(n){YU(t,n);function t(e){var r=n.call(this)||this;return r.view=e,r}return t.prototype.postConstruct=function(){this.addManagedPropertyListener("domLayout",this.updateLayoutClasses.bind(this)),this.updateLayoutClasses()},t.prototype.updateLayoutClasses=function(){var e=this.getDomLayout(),r={autoHeight:e==="autoHeight",normal:e==="normal",print:e==="print"},o=r.autoHeight?g.LayoutCssClasses.AUTO_HEIGHT:r.print?g.LayoutCssClasses.PRINT:g.LayoutCssClasses.NORMAL;this.view.updateLayoutClasses(o,r)},t.prototype.getDomLayout=function(){var e,r=(e=this.gridOptionsService.get("domLayout"))!==null&&e!==void 0?e:"normal",o=["normal","print","autoHeight"];return o.indexOf(r)===-1?(ge(function(){return console.warn("AG Grid: "+r+" is not valid for DOM Layout, valid values are 'normal', 'autoHeight', 'print'.")},"warn about dom layout values"),"normal"):r},XU([M],t.prototype,"postConstruct",null),t}(F),QU=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Tg=function(){return Tg=Object.assign||function(n){for(var t,e=1,r=arguments.length;e<r;e++){t=arguments[e];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o])}return n},Tg.apply(this,arguments)},wa=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},gr;(function(n){n[n.Vertical=0]="Vertical",n[n.Horizontal=1]="Horizontal"})(gr||(gr={}));var Dr;(function(n){n[n.Container=0]="Container",n[n.FakeContainer=1]="FakeContainer"})(Dr||(Dr={}));var JU=function(n){QU(t,n);function t(e){var r=n.call(this)||this;return r.lastScrollSource=[null,null],r.scrollLeft=-1,r.nextScrollTop=-1,r.scrollTop=-1,r.eBodyViewport=e,r.resetLastHScrollDebounced=wo(function(){return r.lastScrollSource[gr.Horizontal]=null},500),r.resetLastVScrollDebounced=wo(function(){return r.lastScrollSource[gr.Vertical]=null},500),r}return t.prototype.postConstruct=function(){var e=this;this.enableRtl=this.gridOptionsService.is("enableRtl"),this.addManagedListener(this.eventService,_.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,this.onDisplayedColumnsWidthChanged.bind(this)),this.ctrlsService.whenReady(function(r){e.centerRowContainerCtrl=r.centerRowContainerCt
<ag-header-root ref="gridHeader"></ag-header-root>
<div class="ag-floating-top" ref="eTop" role="presentation">
<ag-row-container ref="topLeftContainer" name="`+g.RowContainerName.TOP_LEFT+`"></ag-row-container>
<ag-row-container ref="topCenterContainer" name="`+g.RowContainerName.TOP_CENTER+`"></ag-row-container>
<ag-row-container ref="topRightContainer" name="`+g.RowContainerName.TOP_RIGHT+`"></ag-row-container>
<ag-row-container ref="topFullWidthContainer" name="`+g.RowContainerName.TOP_FULL_WIDTH+`"></ag-row-container>
</div>
<div class="ag-body" ref="eBody" role="presentation">
<div class="ag-body-viewport" ref="eBodyViewport" role="presentation">
<ag-row-container ref="leftContainer" name="`+g.RowContainerName.LEFT+`"></ag-row-container>
<ag-row-container ref="centerContainer" name="`+g.RowContainerName.CENTER+`"></ag-row-container>
<ag-row-container ref="rightContainer" name="`+g.RowContainerName.RIGHT+`"></ag-row-container>
<ag-row-container ref="fullWidthContainer" name="`+g.RowContainerName.FULL_WIDTH+`"></ag-row-container>
</div>
<ag-fake-vertical-scroll></ag-fake-vertical-scroll>
</div>
<div class="ag-sticky-top" ref="eStickyTop" role="presentation">
<ag-row-container ref="stickyTopLeftContainer" name="`+g.RowContainerName.STICKY_TOP_LEFT+`"></ag-row-container>
<ag-row-container ref="stickyTopCenterContainer" name="`+g.RowContainerName.STICKY_TOP_CENTER+`"></ag-row-container>
<ag-row-container ref="stickyTopRightContainer" name="`+g.RowContainerName.STICKY_TOP_RIGHT+`"></ag-row-container>
<ag-row-container ref="stickyTopFullWidthContainer" name="`+g.RowContainerName.STICKY_TOP_FULL_WIDTH+`"></ag-row-container>
</div>
<div class="ag-floating-bottom" ref="eBottom" role="presentation">
<ag-row-container ref="bottomLeftContainer" name="`+g.RowContainerName.BOTTOM_LEFT+`"></ag-row-container>
<ag-row-container ref="bottomCenterContainer" name="`+g.RowContainerName.BOTTOM_CENTER+`"></ag-row-container>
<ag-row-container ref="bottomRightContainer" name="`+g.RowContainerName.BOTTOM_RIGHT+`"></ag-row-container>
<ag-row-container ref="bottomFullWidthContainer" name="`+g.RowContainerName.BOTTOM_FULL_WIDTH+`"></ag-row-container>
</div>
<ag-fake-horizontal-scroll></ag-fake-horizontal-scroll>
<ag-overlay-wrapper></ag-overlay-wrapper>
</div>`,q0=function(n){n3(t,n);function t(){return n.call(this,o3)||this}return t.prototype.init=function(){var e=this,r=function(i,a){var s=i+"px";a.style.minHeight=s,a.style.height=s},o={setRowAnimationCssOnBodyViewport:function(i,a){return e.setRowAnimationCssOnBodyViewport(i,a)},setColumnCount:function(i){return ND(e.getGui(),i)},setRowCount:function(i){return MD(e.getGui(),i)},setTopHeight:function(i){return r(i,e.eTop)},setBottomHeight:function(i){return r(i,e.eBottom)},setTopDisplay:function(i){return e.eTop.style.display=i},setBottomDisplay:function(i){return e.eBottom.style.display=i},setStickyTopHeight:function(i){return e.eStickyTop.style.height=i},setStickyTopTop:function(i){return e.eStickyTop.style.top=i},setStickyTopWidth:function(i){return e.eStickyTop.style.width=i},setColumnMovingCss:function(i,a){return e.addOrRemoveCssClass(i,a)},updateLayoutClasses:function(i,a){var s=[e.eBodyViewport.classList,e.eBody.classList];s.forEach(function(l){l.toggle(g.LayoutCssClasses.AUTO_HEIGHT,a.autoHeight),l.toggle(g.LayoutCssClasses.NORMAL,a.normal),l.toggle(g.LayoutCssClasses.PRINT,a.print)}),e.addOrRemoveCssClass(g.LayoutCssClasses.AUTO_HEIGHT,a.autoHeight),e.addOrRemoveCssClass(g.LayoutCssClasses.NORMAL,a.normal),e.addOrRemoveCssClass(g.LayoutCssClasses.PRINT,a.print)},setAlwaysVerticalScrollClass:function(i,a){return e.eBodyViewport.classList.toggle(W0,a)},registerBodyViewportResizeListener:function(i){var a=e.resizeObserverService.observeResize(e.eBodyViewport,i);e.addDestroyFunc(function(){return a()})},setPinnedTopBottomOverflowY:function(i){return e.eTop.style.overflowY=e.eBottom.style.overflowY=i},setCellSelectableCss:function(i,a){[e.eTop,e.eBodyViewport,e.eBottom].forEach(function(s){return s.classList.toggle(i,a)})},setBodyViewportWidth:function(i){return e.eBodyViewport.style.width=i}};this.ctrl=this.createManagedBean(new U0),this.ctrl.setComp(o,this.getGui(),this.eBodyViewport,this.eTop,this.eBottom,this.eStickyTop),(this.rangeService||this.gridOptionsService.get("rowSelection")==="multiple")&&bD(this.getGui(),!0)},t.prototype.setRowAnimationCssOnBodyViewport=function(e,r){var o=this.eBodyViewport.classList;o.toggle(g.RowAnimationCssClasses.ANIMATION_ON,r),o.toggle(g.RowAnimationCssClasses.ANIMATION_OFF,!r)},t.prototype.getFloatingTopBottom=function(){return[this.eTop,this.eBottom]},xi([w("resizeObserverService")],t.prototype,"resizeObserverService",void 0),xi([_e("rangeService")],t.prototype,"rangeService",void 0),xi([G("eBodyViewport")],t.prototype,"eBodyViewport",void 0),xi([G("eStickyTop")],t.prototype,"eStickyTop",void 0),xi([G("eTop")],t.prototype,"eTop",void 0),xi([G("eBottom")],t.prototype,"eBottom",void 0),xi([G("gridHeader")],t.prototype,"headerRootComp",void 0),xi([G("eBody")],t.prototype,"eBody",void 0),xi([M],t.prototype,"init",null),t}(se),i3=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Iw=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},$0=function(n){i3(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t.prototype.postConstruct=function(){this.addManagedListener(this.eventService,_.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(this.eventService,_.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,this.onDisplayedColumnsWidthChanged.bind(this))},t.prototype.onDisplayedColumnsChanged=function(){this.update()},t.prototype.onDisplayedColu
<div class="`+t.container+`" ref="eContainer"></div>
</div>`:e='<div class="'+t.container+'" ref="eContainer"></div>',e}var J0=function(n){p3(t,n);function t(){var e=n.call(this,h3())||this;return e.rowComps={},e.name=se.elementGettingCreated.getAttribute("name"),e.type=z0(e.name),e}return t.prototype.postConstruct=function(){var e=this,r={setViewportHeight:function(i){return e.eViewport.style.height=i},setRowCtrls:function(i){return e.setRowCtrls(i)},setDomOrder:function(i){e.domOrder=i},setContainerWidth:function(i){return e.eContainer.style.width=i}},o=this.createManagedBean(new u_(this.name));o.setComp(r,this.eContainer,this.eViewport)},t.prototype.preDestroy=function(){this.setRowCtrls([])},t.prototype.setRowCtrls=function(e){var r=this,o=wS({},this.rowComps);this.rowComps={},this.lastPlacedElement=null;var i=function(a){var s=a.getInstanceId(),l=o[s];if(l)r.rowComps[s]=l,delete o[s],r.ensureDomOrder(l.getGui());else{if(!a.getRowNode().displayed)return;var u=new f3(a,r.beans,r.type);r.rowComps[s]=u,r.appendRow(u.getGui())}};e.forEach(i),oi(o).forEach(function(a){r.eContainer.removeChild(a.getGui()),a.destroy()}),bt(this.eContainer,e.length?"rowgroup":"presentation")},t.prototype.appendRow=function(e){this.domOrder?XD(this.eContainer,e,this.lastPlacedElement):this.eContainer.appendChild(e),this.lastPlacedElement=e},t.prototype.ensureDomOrder=function(e){this.domOrder&&(WS(this.eContainer,e,this.lastPlacedElement),this.lastPlacedElement=e)},Uc([w("beans")],t.prototype,"beans",void 0),Uc([G("eViewport")],t.prototype,"eViewport",void 0),Uc([G("eContainer")],t.prototype,"eContainer",void 0),Uc([M],t.prototype,"postConstruct",null),Uc([Mt],t.prototype,"preDestroy",null),t}(se),mI=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Z0=function(){function n(t){this.columnsToAggregate=[],this.columnsToGroup=[],this.columnsToPivot=[],this.pinned=t}return n.prototype.onDragEnter=function(t){var e=this;if(this.clearColumnsList(),!this.gridOptionsService.is("functionsReadOnly")){var r=t.dragItem.columns;r&&r.forEach(function(o){o.isPrimary()&&(o.isAnyFunctionActive()||(o.isAllowValue()?e.columnsToAggregate.push(o):o.isAllowRowGroup()?e.columnsToGroup.push(o):o.isAllowPivot()&&e.columnsToPivot.push(o)))})}},n.prototype.getIconName=function(){var t=this.columnsToAggregate.length+this.columnsToGroup.length+this.columnsToPivot.length;return t>0?this.pinned?Ft.ICON_PINNED:Ft.ICON_MOVE:null},n.prototype.onDragLeave=function(t){this.clearColumnsList()},n.prototype.clearColumnsList=function(){this.columnsToAggregate.length=0,this.columnsToGroup.length=0,this.columnsToPivot.length=0},n.prototype.onDragging=function(t){},n.prototype.onDragStop=function(t){this.columnsToAggregate.length>0&&this.columnModel.addValueColumns(this.columnsToAggregate,"toolPanelDragAndDrop"),this.columnsToGroup.length>0&&this.columnModel.addRowGroupColumns(this.columnsToGroup,"toolPanelDragAndDrop"),this.columnsToPivot.length>0&&this.columnModel.addPivotColumns(this.columnsToPivot,"toolPanelDragAndDrop")},mI([w("columnModel")],n.prototype,"columnModel",void 0),mI([w("gridOptionsService")],n.prototype,"gridOptionsService",void 0),n}(),jc=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},g3=function(n,t){var e=typeof Symbol=="function"&&n[Symbol.iterator];if(!e)return n;var r=e.call(n),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(e=r.return)&&e.call(r)}finally{if(a)throw a.error}}return i},eA=function(){function n(t,e){this.needToMoveLeft=!1,this.needToMoveRight=!1,this.lastMovedInfo=null,thi
<div ref="eResize" class="ag-header-cell-resize" role="presentation"></div>
<div ref="eHeaderCompWrapper" class="ag-header-cell-comp-wrapper" role="presentation"></div>
</div>`,jh([G("eResize")],t.prototype,"eResize",void 0),jh([G("eHeaderCompWrapper")],t.prototype,"eHeaderCompWrapper",void 0),jh([M],t.prototype,"postConstruct",null),jh([Mt],t.prototype,"destroyHeaderComp",null),t}(i_),S3=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Dw=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},_3=function(n){S3(t,n);function t(e){return n.call(this,t.TEMPLATE,e)||this}return t.prototype.postConstruct=function(){var e=this,r=this.getGui(),o=function(a,s){return s!=null?r.setAttribute(a,s):r.removeAttribute(a)};r.setAttribute("col-id",this.ctrl.getColId());var i={addOrRemoveCssClass:function(a,s){return e.addOrRemoveCssClass(a,s)},setResizableDisplayed:function(a){return we(e.eResize,a)},setWidth:function(a){return r.style.width=a},setAriaExpanded:function(a){return o("aria-expanded",a)},setUserCompDetails:function(a){return e.setUserCompDetails(a)}};this.ctrl.setComp(i,r,this.eResize)},t.prototype.setUserCompDetails=function(e){var r=this;e.newAgStackInstance().then(function(o){return r.afterHeaderCompCreated(o)})},t.prototype.afterHeaderCompCreated=function(e){var r=this,o=function(){return r.destroyBean(e)};if(!this.isAlive()){o();return}var i=this.getGui(),a=e.getGui();i.appendChild(a),this.addDestroyFunc(o),this.ctrl.setDragSource(i)},t.TEMPLATE=`<div class="ag-header-group-cell" role="columnheader" tabindex="-1">
<div ref="eResize" class="ag-header-cell-resize" role="presentation"></div>
</div>`,Dw([w("userComponentFactory")],t.prototype,"userComponentFactory",void 0),Dw([G("eResize")],t.prototype,"eResize",void 0),Dw([M],t.prototype,"postConstruct",null),t}(i_),E3=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),yI=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i};(function(n){n.COLUMN_GROUP="group",n.COLUMN="column",n.FLOATING_FILTER="filter"})(g.HeaderRowType||(g.HeaderRowType={}));var rA=function(n){E3(t,n);function t(e){var r=n.call(this)||this;return r.headerComps={},r.ctrl=e,r.setTemplate('<div class="'+r.ctrl.getHeaderRowClass()+'" role="row"></div>'),r}return t.prototype.init=function(){var e=this;this.getGui().style.transform=this.ctrl.getTransform(),AS(this.getGui(),this.ctrl.getAriaRowIndex());var r={setHeight:function(o){return e.getGui().style.height=o},setTop:function(o){return e.getGui().style.top=o},setHeaderCtrls:function(o,i){return e.setHeaderCtrls(o,i)},setWidth:function(o){return e.getGui().style.width=o}};this.ctrl.setComp(r)},t.prototype.destroyHeaderCtrls=function(){this.setHeaderCtrls([],!1)},t.prototype.setHeaderCtrls=function(e,r){var o=this;if(this.isAlive()){var i=this.headerComps;if(this.headerComps={},e.forEach(function(l){var u=l.getInstanceId(),c=i[u];delete i[u],c==null&&(c=o.createHeaderComp(l),o.getGui().appendChild(c.getGui())),o.headerComps[u]=c}),st(i,function(l,u){o.getGui().removeChild(u.getGui()),o.destroyBean(u)}),r){var a=oi(this.headerComps);a.sort(function(l,u){var c=l.getCtrl().getColumnGroupChild().getLeft(),d=u.getCtrl().getColumnGroupChild().getLeft();return c-d});var s=a.map(function(l){return l.getGui()});US(this.getGui(),s)}}},t.prototype.createHeaderComp=function(e){var r;switch(this.ctrl.getType()){case g.HeaderRowType.COLUMN_GROUP:r=new _3(e);break;case g.HeaderRowType.FLOATING_FILTER:r=new B0(e);break;default:r=new w3(e);break}return this.createBean(r),r.setParentComponent(this),r},yI([M],t.prototype,"init",null),yI([Mt],t.prototype,"destroyHeaderCtrls",null),t}(se),R3=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Aw=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},T3=0,Td=function(n){R3(t,n);function t(e,r){var o=n.call(this)||this;return o.lastFocusEvent=null,o.columnGroupChild=e,o.parentRowCtrl=r,o.instanceId=e.getUniqueId()+"-"+T3++,o}return t.prototype.shouldStopEventPropagation=function(e){var r=this.focusService.getFocusedHeader(),o=r.headerRowIndex,i=r.column;return r0(this.gridOptionsService,e,o,i)},t.prototype.getWrapperHasFocus=function(){var e=this.gridOptionsService.getDocument(),r=e.activeElement;return r===this.eGui},t.prototype.setGui=function(e){this.eGui=e,this.addDomData()},t.prototype.handleKeyDown=function(e){var r=this.getWrapperHasFocus();switch
<div class="ag-header-container" ref="eCenterContainer" role="rowgroup"></div>
</div>`,Mw([G("eCenterContainer")],t.prototype,"eCenterContainer",void 0),Mw([M],t.prototype,"init",null),Mw([Mt],t.prototype,"destroyRowComps",null),t}(se),Q3=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),qc=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i};(function(n){n[n.UP=0]="UP",n[n.DOWN=1]="DOWN",n[n.LEFT=2]="LEFT",n[n.RIGHT=3]="RIGHT"})(g.HeaderNavigationDirection||(g.HeaderNavigationDirection={}));var lA=function(n){Q3(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t.prototype.postConstruct=function(){var e=this;this.ctrlsService.whenReady(function(r){e.gridBodyCon=r.gridBodyCtrl})},t.prototype.getHeaderRowCount=function(){var e=this.ctrlsService.getHeaderRowContainerCtrl();return e?e.getRowCount():0},t.prototype.navigateVertically=function(e,r,o){if(r||(r=this.focusService.getFocusedHeader()),!r)return!1;var i=r.headerRowIndex,a=r.column,s=this.getHeaderRowCount(),l=e===g.HeaderNavigationDirection.UP,u=l?this.headerPositionUtils.getColumnVisibleParent(a,i):this.headerPositionUtils.getColumnVisibleChild(a,i),c=u.nextRow,d=u.nextFocusColumn,f=!1;return c<0&&(c=0,d=a,f=!0),c>=s&&(c=-1),!f&&!d?!1:this.focusService.focusHeaderPosition({headerPosition:{headerRowIndex:c,column:d},allowUserOverride:!0,event:o})},t.prototype.navigateHorizontally=function(e,r,o){r===void 0&&(r=!1);var i=this.focusService.getFocusedHeader(),a=e===g.HeaderNavigationDirection.LEFT,s=this.gridOptionsService.is("enableRtl"),l,u;return a!==s?(u="Before",l=this.headerPositionUtils.findHeader(i,u)):(u="After",l=this.headerPositionUtils.findHeader(i,u)),l||!r?this.focusService.focusHeaderPosition({headerPosition:l,direction:u,fromTab:r,allowUserOverride:!0,event:o}):this.focusNextHeaderRow(i,u,o)},t.prototype.focusNextHeaderRow=function(e,r,o){var i=e.headerRowIndex,a=null,s;return r==="Before"?i>0&&(s=i-1,a=this.headerPositionUtils.findColAtEdgeForHeaderRow(s,"end")):(s=i+1,a=this.headerPositionUtils.findColAtEdgeForHeaderRow(s,"start")),this.focusService.focusHeaderPosition({headerPosition:a,direction:r,fromTab:!0,allowUserOverride:!0,event:o})},t.prototype.scrollToColumn=function(e,r){if(r===void 0&&(r="After"),!e.getPinned()){var o;if(e instanceof Wt){var i=e.getDisplayedLeafColumns();o=r==="Before"?Ge(i):i[0]}else o=e;this.gridBodyCon.getScrollFeature().ensureColumnVisible(o)}},qc([w("focusService")],t.prototype,"focusService",void 0),qc([w("headerPositionUtils")],t.prototype,"headerPositionUtils",void 0),qc([w("ctrlsService")],t.prototype,"ctrlsService",void 0),qc([M],t.prototype,"postConstruct",null),t=qc([H("headerNavigationService")],t),t}(F),J3=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),$c=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProper
<div ref="eHeader" role="tablist" class="ag-tabs-header `+(e?e+"-header":"")+`"></div>
<div ref="eBody" role="presentation" class="ag-tabs-body `+(e?e+"-body":"")+`"></div>
</div>`},t.prototype.handleKeyDown=function(e){var r=this.gridOptionsService.getDocument();switch(e.key){case O.RIGHT:case O.LEFT:if(!this.eHeader.contains(r.activeElement))return;var o=e.key===O.RIGHT,i=this.gridOptionsService.is("enableRtl"),a=this.items.indexOf(this.activeItem),s=o!==i?Math.min(a+1,this.items.length-1):Math.max(a-1,0);if(a===s)return;e.preventDefault();var l=this.items[s];this.showItemWrapper(l),l.eHeaderButton.focus();break;case O.UP:case O.DOWN:e.stopPropagation();break}},t.prototype.onTabKeyDown=function(e){if(!e.defaultPrevented){var r=this,o=r.focusService,i=r.eHeader,a=r.eBody,s=r.activeItem,l=this.gridOptionsService.getDocument(),u=l.activeElement,c=e.target;if(e.preventDefault(),i.contains(u)){o.focusInto(a,e.shiftKey);return}var d=null;o.isTargetUnderManagedComponent(a,c)&&(e.shiftKey&&(d=this.focusService.findFocusableElementBeforeTabGuard(a,c)),d||(d=s.eHeaderButton)),!d&&a.contains(u)&&(d=o.findNextFocusableElement(a,!1,e.shiftKey),d||(d=s.eHeaderButton)),d&&d.focus()}},t.prototype.setAfterAttachedParams=function(e){this.afterAttachedParams=e},t.prototype.showFirstItem=function(){this.items.length>0&&this.showItemWrapper(this.items[0])},t.prototype.addItem=function(e){var r=document.createElement("span");bt(r,"tab"),r.setAttribute("tabindex","-1"),r.appendChild(e.title),r.classList.add("ag-tab"),this.eHeader.appendChild(r),Ii(r,e.titleLabel);var o={tabbedItem:e,eHeaderButton:r};this.items.push(o),r.addEventListener("click",this.showItemWrapper.bind(this,o))},t.prototype.showItem=function(e){var r=this.items.find(function(o){return o.tabbedItem===e});r&&this.showItemWrapper(r)},t.prototype.showItemWrapper=function(e){var r=this,o,i,a=e.tabbedItem,s=e.eHeaderButton;if(this.params.onItemClicked&&this.params.onItemClicked({item:a}),this.activeItem===e){nD(this.params.onActiveItemClicked);return}this.lastScrollListener&&(this.lastScrollListener=this.lastScrollListener()),vr(this.eBody),a.bodyPromise.then(function(l){r.eBody.appendChild(l);var u=!r.focusService.isKeyboardMode();if(r.focusService.focusInto(r.eBody,!1,u),a.afterAttachedCallback&&a.afterAttachedCallback(r.afterAttachedParams),r.params.keepScrollPosition){var c=a.getScrollableContainer&&a.getScrollableContainer()||l;r.lastScrollListener=r.addManagedListener(c,"scroll",function(){r.tabbedItemScrollMap.set(a.name,c.scrollTop)});var d=r.tabbedItemScrollMap.get(a.name);d!==void 0&&setTimeout(function(){c.scrollTop=d},0)}}),this.activeItem&&(this.activeItem.eHeaderButton.classList.remove("ag-tab-selected"),(i=(o=this.activeItem.tabbedItem).afterDetachedCallback)===null||i===void 0||i.call(o)),s.classList.add("ag-tab-selected"),this.activeItem=e},Yh([w("focusService")],t.prototype,"focusService",void 0),Yh([G("eHeader")],t.prototype,"eHeader",void 0),Yh([G("eBody")],t.prototype,"eBody",void 0),Yh([M],t.prototype,"postConstruct",null),t}(se);function i2(n){return ge(function(){return console.warn("AG Grid: Since v29 simpleHttpRequest has been deprecated as it was only meant for use in internal AG Grid documentation examples. Please use the browser fetch api directly.")},"simpleHttpRequest"),new yn(function(t){var e=new XMLHttpRequest;e.open("GET",n.url),e.send(),e.onreadystatechange=function(){e.readyState===4&&e.status===200&&t(JSON.parse(e.responseText))}})}var a2=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),s2=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defin
<div class="ag-virtual-list-container ag-`+e+`-virtual-list-container" ref="eContainer"></div>
</div>`},t.prototype.getItemHeight=function(){return this.environment.getListItemHeight()},t.prototype.ensureIndexVisible=function(e,r){r===void 0&&(r=!0);var o=this.model.getRowCount();if(typeof e!="number"||e<0||e>=o)return console.warn("AG Grid: invalid row index for ensureIndexVisible: "+e),!1;var i=e*this.rowHeight,a=i+this.rowHeight,s=this.getGui(),l=s.scrollTop,u=s.offsetHeight,c=l+u,d=r?0:this.rowHeight,f=l>i+d,p=c<a-d;if(f)return s.scrollTop=i,!0;if(p){var h=a-u;return s.scrollTop=h,!0}return!1},t.prototype.setComponentCreator=function(e){this.componentCreator=e},t.prototype.setComponentUpdater=function(e){this.componentUpdater=e},t.prototype.getRowHeight=function(){return this.rowHeight},t.prototype.getScrollTop=function(){return this.getGui().scrollTop},t.prototype.setRowHeight=function(e){this.rowHeight=e,this.refresh()},t.prototype.refresh=function(e){var r=this;if(!(this.model==null||!this.isAlive())){var o=this.model.getRowCount();this.eContainer.style.height=o*this.rowHeight+"px",ES(function(){return r.eContainer.clientHeight>=o*r.rowHeight},function(){r.isAlive()&&(r.canSoftRefresh(e)?r.drawVirtualRows(!0):(r.clearVirtualRows(),r.drawVirtualRows()))})}},t.prototype.canSoftRefresh=function(e){return!!(e&&this.renderedRows.size&&typeof this.model.areRowsEqual=="function"&&this.componentUpdater)},t.prototype.clearVirtualRows=function(){var e=this;this.renderedRows.forEach(function(r,o){return e.removeRow(o)})},t.prototype.drawVirtualRows=function(e){if(!(!this.isAlive()||!this.model)){var r=this.getGui(),o=r.scrollTop,i=o+r.offsetHeight,a=Math.floor(o/this.rowHeight),s=Math.floor(i/this.rowHeight);this.ensureRowsRendered(a,s,e)}},t.prototype.ensureRowsRendered=function(e,r,o){var i=this;this.renderedRows.forEach(function(s,l){(l<e||l>r)&&l!==i.lastFocusedRowIndex&&i.removeRow(l)}),o&&this.refreshRows();for(var a=e;a<=r;a++)this.renderedRows.has(a)||a<this.model.getRowCount()&&this.insertRow(a)},t.prototype.insertRow=function(e){var r=this,o=this.model.getRow(e),i=document.createElement("div");if(i.classList.add("ag-virtual-list-item","ag-"+this.cssIdentifier+"-virtual-list-item"),bt(i,this.ariaRole==="tree"?"treeitem":"option"),IS(i,this.model.getRowCount()),DS(i,e+1),i.setAttribute("tabindex","-1"),typeof this.model.isRowSelected=="function"){var a=this.model.isRowSelected(e);Ds(i,!!a),VD(i,a)}i.style.height=this.rowHeight+"px",i.style.top=this.rowHeight*e+"px";var s=this.componentCreator(o,i);s.addGuiEventListener("focusin",function(){return r.lastFocusedRowIndex=e}),i.appendChild(s.getGui()),this.renderedRows.has(e-1)?this.renderedRows.get(e-1).eDiv.insertAdjacentElement("afterend",i):this.renderedRows.has(e+1)?this.renderedRows.get(e+1).eDiv.insertAdjacentElement("beforebegin",i):this.eContainer.appendChild(i),this.renderedRows.set(e,{rowComponent:s,eDiv:i,value:o})},t.prototype.removeRow=function(e){var r=this.renderedRows.get(e);this.eContainer.removeChild(r.eDiv),this.destroyBean(r.rowComponent),this.renderedRows.delete(e)},t.prototype.refreshRows=function(){var e=this,r=this.model.getRowCount();this.renderedRows.forEach(function(o,i){var a,s;if(i>=r)e.removeRow(i);else{var l=e.model.getRow(i);!((s=(a=e.model).areRowsEqual)===null||s===void 0)&&s.call(a,o.value,l)?e.componentUpdater(l,o.rowComponent):e.removeRow(i)}})},t.prototype.addScrollListener=function(){var e=this;this.addGuiEventListener("scroll",function(){return e.drawVirtualRows()},{passive:!0})},t.prototype.setModel=function(e){this.model=e},t.prototype.getAriaElement=function(){return this.eContainer},t.prototype.destroy=function(){this.isAlive()&&(this.clearVirtualRows(),n.prototype.destroy.call(this))},Zh([w("resizeObserverService")],t.prototype,"resizeObserverService",void 0),Zh([w("animationFrameService")],t.prototype,"animationFrameService",void 0),Zh([G("eContainer")],t.prototype,"eContainer",void 0),Zh([M],t.prototype,"postConstruct",null),t}(xd),G2=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.h
<div class="ag-picker-field" role="presentation">
<div ref="eLabel"></div>
<div ref="eWrapper" class="ag-wrapper ag-picker-field-wrapper ag-rich-select-value ag-picker-collapsed">
<div ref="eDisplayField" class="ag-picker-field-display"></div>
<ag-input-text-field ref="eInput" class="ag-rich-select-field-input"></ag-input-text-field>
<div ref="eIcon" class="ag-picker-field-icon" aria-hidden="true"></div>
</div>
</div>`,xA=function(n){G2(t,n);function t(e){var r,o,i=n.call(this,Lg(Lg({pickerAriaLabelKey:"ariaLabelRichSelectField",pickerAriaLabelValue:"Rich Select Field",pickerType:"ag-list",className:"ag-rich-select",pickerIcon:"smallDown",ariaRole:"combobox",template:(r=e?.template)!==null&&r!==void 0?r:k2,modalPicker:!1},e),{maxPickerHeight:(o=e?.maxPickerHeight)!==null&&o!==void 0?o:"calc(var(--ag-row-height) * 6.5)"}))||this;i.searchString="",i.highlightedItem=-1,i.lastRowHovered=-1,i.searchStringCreator=null;var a=e||{},s=a.cellRowHeight,l=a.value,u=a.valueList,c=a.searchStringCreator;return s!=null&&(i.cellRowHeight=s),l!==void 0&&(i.value=l),u!=null&&(i.values=u),c&&(i.searchStringCreator=c),i}return t.prototype.postConstruct=function(){var e=this,r;n.prototype.postConstruct.call(this),this.createLoadingElement(),this.createListComponent();var o=this.config,i=o.allowTyping,a=o.placeholder;i?(this.eInput.setAutoComplete(!1).setInputPlaceholder(a),this.eDisplayField.classList.add("ag-hidden")):this.eInput.setDisplayed(!1),this.eWrapper.tabIndex=(r=this.gridOptionsService.getNum("tabIndex"))!==null&&r!==void 0?r:0;var s=this.config.searchDebounceDelay,l=s===void 0?300:s;this.clearSearchString=wo(this.clearSearchString,l),this.renderSelectedValue(),i&&(this.eInput.onValueChange(function(u){return e.searchTextFromString(u)}),this.addManagedListener(this.eWrapper,"focus",this.onWrapperFocus.bind(this))),this.addManagedListener(this.eWrapper,"focusout",this.onWrapperFocusOut.bind(this))},t.prototype.createLoadingElement=function(){var e=this.gridOptionsService.getDocument(),r=this.localeService.getLocaleTextFunc(),o=e.createElement("div");o.classList.add("ag-loading-text"),o.innerText=r("loadingOoo","Loading..."),this.eLoading=o},t.prototype.createListComponent=function(){var e=this;this.listComponent=this.createBean(new f_({cssIdentifier:"rich-select"})),this.listComponent.setComponentCreator(this.createRowComponent.bind(this)),this.listComponent.setParentComponent(this),this.addManagedListener(this.listComponent,_.EVENT_FIELD_PICKER_VALUE_SELECTED,function(u){e.onListValueSelected(u.value,u.fromEnterKey)});var r=this.cellRowHeight;r&&this.listComponent.setRowHeight(r);var o=this.listComponent.getGui(),i=this.listComponent.getAriaElement();this.addManagedListener(o,"mousemove",this.onPickerMouseMove.bind(this)),this.addManagedListener(o,"mousedown",function(u){return u.preventDefault()}),o.classList.add("ag-rich-select-list");var a="ag-rich-select-list-"+this.listComponent.getCompId();i.setAttribute("id",a);var s=this.localeService.getLocaleTextFunc(),l=s(this.config.pickerAriaLabelKey,this.config.pickerAriaLabelValue);Ii(i,l),BD(this.eWrapper,i)},t.prototype.renderSelectedValue=function(){var e=this,r=this,o=r.value,i=r.eDisplayField,a=r.config,s=this.config.valueFormatter?this.config.valueFormatter(o):o;if(a.allowTyping){this.eInput.setValue(s);return}var l;a.cellRenderer&&(l=this.userComponentFactory.getCellRendererDetails(this.config,{value:o,valueFormatted:s,api:this.gridOptionsService.api}));var u;if(l&&(u=l.newAgStackInstance()),u)vr(i),qS(u,i),u.then(function(d){e.addDestroyFunc(function(){return e.getContext().destroyBean(d)})});else if(D(this.value))i.innerText=s,i.classList.remove("ag-display-as-placeholder");else{var c=a.placeholder;D(c)?(i.innerHTML=""+xt(c),i.classList.add("ag-display-as-placeholder")):vr(i)}},t.prototype.getCurrentValueIndex=function(){var e=this,r=e.currentList,o=e.value;if(o==null)return-1;for(var i=0;i<r.length;i++)if(r[i]===o)return i;return-1},t.prototype.highlightFilterMatch=function(){var e=this,r;(r=this.listComponent)===null||r===void 0||r.forEachRenderedRow(function(o,i){o.highlightString(e.searchString)})},t.prototype.highlightSelectedValue=function(e){var r=this,o;e==null&&(e=this.getCurrentValueIndex()),this.highlightedItem=e,(o=this.listComponent)===null||o===void 0||o.forEachRenderedRow(function(i,a){var s=e===-1?!1:r.highlightedItem===a;i.updateHighlighted(s)})},t.prototype.setRowHeight=function(e){e!==this.cellRowHeight&&(this.cellRowHeight=e),this.listComponent&&this.listCo
<label ref="eLabel"></label>
<div class="ag-wrapper ag-slider-wrapper">
<ag-input-range ref="eSlider"></ag-input-range>
<ag-input-number-field ref="eText"></ag-input-number-field>
</div>
</div>`,eg([G("eLabel")],t.prototype,"eLabel",void 0),eg([G("eSlider")],t.prototype,"eSlider",void 0),eg([G("eText")],t.prototype,"eText",void 0),eg([M],t.prototype,"init",null),t}(XS),V2=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Ra=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},OA=function(n){V2(t,n);function t(e){e===void 0&&(e={});var r=n.call(this,t.getTemplate(e))||this;r.suppressEnabledCheckbox=!0,r.suppressOpenCloseIcons=!1;var o=e.title,i=e.enabled,a=e.items,s=e.suppressEnabledCheckbox,l=e.suppressOpenCloseIcons;return r.title=o,r.cssIdentifier=e.cssIdentifier||"default",r.enabled=i??!0,r.items=a||[],r.alignItems=e.alignItems||"center",s!=null&&(r.suppressEnabledCheckbox=s),l!=null&&(r.suppressOpenCloseIcons=l),r}return t.getTemplate=function(e){var r=e.cssIdentifier||"default",o=e.direction||"vertical";return'<div class="ag-group ag-'+r+`-group" role="presentation">
<div class="ag-group-title-bar ag-`+r+`-group-title-bar ag-unselectable" ref="eTitleBar" role="button">
<span class="ag-group-title-bar-icon ag-`+r+`-group-title-bar-icon" ref="eGroupOpenedIcon" role="presentation"></span>
<span class="ag-group-title-bar-icon ag-`+r+`-group-title-bar-icon" ref="eGroupClosedIcon" role="presentation"></span>
<span ref="eTitle" class="ag-group-title ag-`+r+`-group-title"></span>
</div>
<div ref="eToolbar" class="ag-group-toolbar ag-`+r+`-group-toolbar">
<ag-checkbox ref="cbGroupEnabled"></ag-checkbox>
</div>
<div ref="eContainer" class="ag-group-container ag-group-container-`+o+" ag-"+r+`-group-container"></div>
</div>`},t.prototype.postConstruct=function(){if(this.items.length){var e=this.items;this.items=[],this.addItems(e)}var r=this.localeService.getLocaleTextFunc();this.cbGroupEnabled.setLabel(r("enabled","Enabled")),this.title&&this.setTitle(this.title),this.enabled&&this.setEnabled(this.enabled),this.setAlignItems(this.alignItems),this.hideEnabledCheckbox(this.suppressEnabledCheckbox),this.hideOpenCloseIcons(this.suppressOpenCloseIcons),this.setupExpandContract(),this.refreshAriaStatus(),this.refreshChildDisplay()},t.prototype.setupExpandContract=function(){var e=this;this.eGroupClosedIcon.appendChild(Yn("columnSelectClosed",this.gridOptionsService,null)),this.eGroupOpenedIcon.appendChild(Yn("columnSelectOpen",this.gridOptionsService,null)),this.addManagedListener(this.eTitleBar,"click",function(){return e.toggleGroupExpand()}),this.addManagedListener(this.eTitleBar,"keydown",function(r){switch(r.key){case O.ENTER:case O.SPACE:r.preventDefault(),e.toggleGroupExpand();break;case O.RIGHT:case O.LEFT:r.preventDefault(),e.toggleGroupExpand(r.key===O.RIGHT);break}})},t.prototype.refreshAriaStatus=function(){this.suppressOpenCloseIcons||So(this.eTitleBar,this.expanded)},t.prototype.refreshChildDisplay=function(){var e=!this.suppressOpenCloseIcons;we(this.eToolbar,this.expanded&&!this.suppressEnabledCheckbox),we(this.eGroupOpenedIcon,e&&this.expanded),we(this.eGroupClosedIcon,e&&!this.expanded)},t.prototype.isExpanded=function(){return this.expanded},t.prototype.setAlignItems=function(e){this.alignItems!==e&&this.removeCssClass("ag-group-item-alignment-"+this.alignItems),this.alignItems=e;var r="ag-group-item-alignment-"+this.alignItems;return this.addCssClass(r),this},t.prototype.toggleGroupExpand=function(e){return this.suppressOpenCloseIcons?(this.expanded=!0,this.refreshChildDisplay(),we(this.eContainer,!0),this):(e=e??!this.expanded,this.expanded===e?this:(this.expanded=e,this.refreshAriaStatus(),this.refreshChildDisplay(),we(this.eContainer,e),this.dispatchEvent({type:this.expanded?t.EVENT_EXPANDED:t.EVENT_COLLAPSED}),this))},t.prototype.addItems=function(e){var r=this;e.forEach(function(o){return r.addItem(o)})},t.prototype.addItem=function(e){var r=this.eContainer,o=e instanceof se?e.getGui():e;o.classList.add("ag-group-item","ag-"+this.cssIdentifier+"-group-item"),r.appendChild(o),this.items.push(o)},t.prototype.hideItem=function(e,r){var o=this.items[r];we(o,!e)},t.prototype.setTitle=function(e){return this.eTitle.innerText=e,this},t.prototype.addCssClassToTitleBar=function(e){this.eTitleBar.classList.add(e)},t.prototype.setEnabled=function(e,r){return this.enabled=e,this.refreshDisabledStyles(),this.toggleGroupExpand(e),r||this.cbGroupEnabled.setValue(e),this},t.prototype.isEnabled=function(){return this.enabled},t.prototype.onEnableChange=function(e){var r=this;return this.cbGroupEnabled.onValueChange(function(o){r.setEnabled(o,!0),e(o)}),this},t.prototype.hideEnabledCheckbox=function(e){return this.suppressEnabledCheckbox=e,this.refreshChildDisplay(),this.refreshDisabledStyles(),this},t.prototype.hideOpenCloseIcons=function(e){return this.suppressOpenCloseIcons=e,e&&this.toggleGroupExpand(!0),this},t.prototype.refreshDisabledStyles=function(){this.addOrRemoveCssClass("ag-disabled",!this.enabled),this.suppressEnabledCheckbox&&!this.enabled?(this.eTitleBar.classList.add("ag-disabled-group-title-bar"),this.eTitleBar.removeAttribute("tabindex")):(this.eTitleBar.classList.remove("ag-disabled-group-title-bar"),this.eTitleBar.setAttribute("tabindex","0")),this.eContainer.classList.toggle("ag-disabled-group-container",!this.enabled)},t.EVENT_EXPANDED="expanded",t.EVENT_COLLAPSED="collapsed",Ra([G("eTitleBar")],t.prototype,"eTitleBar",void 0),Ra([G("eGroupOpenedIcon")],t.prototype,"eGroupOpenedIcon",void 0),Ra([G("eGroupClosedIcon")],t.prototype,"eGroupClosedIcon",void 0),Ra([G("eToolbar")],t.prototype,"eToolbar",void 0),Ra([G("cbGroupEnabled")],t.prototype,"cbGroupEnabled",void 0),Ra([G("eTitle")],t.prototype,"eTitle",void 0),Ra([G("eContainer")],t.prototype,"eContainer",void 0),Ra([M],t.prototype,"postConstruct",n
<div class="ag-menu-separator" aria-hidden="true">
<div class="ag-menu-separator-part"></div>
<div class="ag-menu-separator-part"></div>
<div class="ag-menu-separator-part"></div>
<div class="ag-menu-separator-part"></div>
</div>`;this.appendChild(tr(e))},t.prototype.findTopMenu=function(){var e=this.getParentComponent();if(!e&&this instanceof t)return this;for(;;){var r=e&&e.getParentComponent&&e.getParentComponent();if(!r||!(r instanceof t||r instanceof ql))break;e=r}return e instanceof t?e:void 0},t.prototype.handleNavKey=function(e){switch(e){case O.UP:case O.DOWN:var r=this.findNextItem(e===O.UP);r&&r!==this.activeMenuItem&&r.activate();return}var o=this.gridOptionsService.is("enableRtl")?O.RIGHT:O.LEFT;e===o?this.closeIfIsChild():this.openChild()},t.prototype.closeIfIsChild=function(e){var r=this.getParentComponent();r&&r instanceof ql&&(e&&e.preventDefault(),r.closeSubMenu(),r.getGui().focus())},t.prototype.openChild=function(){this.activeMenuItem&&this.activeMenuItem.openSubMenu(!0)},t.prototype.findNextItem=function(e){var r=this.menuItems.filter(function(l){return!l.isDisabled()});if(r.length){if(!this.activeMenuItem)return e?Ge(r):r[0];e&&r.reverse();for(var o,i=!1,a=0;a<r.length;a++){var s=r[a];if(!i){s===this.activeMenuItem&&(i=!0);continue}o=s;break}return o||this.activeMenuItem}},t.prototype.destroy=function(){this.clearActiveItem(),n.prototype.destroy.call(this)},TI([w("focusService")],t.prototype,"focusService",void 0),TI([M],t.prototype,"postConstruct",null),t}(xd),W2=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),U2=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},IA=function(n){W2(t,n);function t(e){var r=n.call(this)||this;return r.wrappedComponent=e,r.setTemplateFromElement(e.getGui()),r}return t.prototype.postConstruct=function(){var e=this;this.initialiseTabGuard({onTabKeyDown:function(r){return e.onTabKeyDown(r)},handleKeyDown:function(r){return e.handleKeyDown(r)}})},t.prototype.handleKeyDown=function(e){e.key===O.ESCAPE&&this.closePanel()},t.prototype.onTabKeyDown=function(e){e.defaultPrevented||(this.closePanel(),e.preventDefault())},t.prototype.closePanel=function(){var e=this.parentComponent;e.closeSubMenu(),setTimeout(function(){return e.getGui().focus()},0)},U2([M],t.prototype,"postConstruct",null),t}(xd),j2=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),xI=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},ql=function(n){j2(t,n);function t(e){var r=n.call(this)||this;return r.params=e,r.isActive=!1,r.subMenuIsOpen=!1,r.setTemplate('<div class="'+r.getClassName()+'" tabindex="-1" role="treeitem"></div>'),r}return t.prototype.init=function(){var e=this;this.addIcon(),this.addName(),this.addShortcut(),this.addSubMenu(),this.addTooltip();var r=this.getGui();this.params.disabled?(this.addCssClass(this.getClassName("disabled")),OS(r,!0)):(this.addGuiEventListener("click",function(o){return e.onItemSelected(o)}),this.addGuiEventLi
<div ref="eTitleBar" class="ag-panel-title-bar ag-`+r+`-panel-title-bar ag-unselectable">
<span ref="eTitle" class="ag-panel-title-bar-title ag-`+r+`-panel-title-bar-title"></span>
<div ref="eTitleBarButtons" class="ag-panel-title-bar-buttons ag-`+r+`-panel-title-bar-buttons"></div>
</div>
<div ref="eContentWrapper" class="ag-panel-content-wrapper ag-`+r+`-panel-content-wrapper"></div>
</div>`},t.prototype.postConstruct=function(){var e=this,r=this.config,o=r.component,i=r.closable,a=r.hideTitleBar,s=r.title,l=r.minWidth,u=l===void 0?250:l,c=r.width,d=r.minHeight,f=d===void 0?250:d,p=r.height,h=r.centered,v=r.popup,C=r.x,m=r.y;this.positionableFeature=new YS(this.getGui(),{minWidth:u,width:c,minHeight:f,height:p,centered:h,x:C,y:m,popup:v,calculateTopBuffer:function(){return e.positionableFeature.getHeight()-e.getBodyHeight()}}),this.createManagedBean(this.positionableFeature);var y=this.getGui();o&&this.setBodyComponent(o),a?we(this.eTitleBar,!1):(s&&this.setTitle(s),this.setClosable(i??this.closable)),this.addManagedListener(this.eTitleBar,"mousedown",function(S){var E=e.gridOptionsService.getDocument();if(y.contains(S.relatedTarget)||y.contains(E.activeElement)||e.eTitleBarButtons.contains(S.target)){S.preventDefault();return}var R=e.eContentWrapper.querySelector("button, [href], input, select, textarea, [tabindex]");R&&R.focus()}),!(v&&this.positionableFeature.isPositioned())&&(this.renderComponent&&this.renderComponent(),this.positionableFeature.initialisePosition(),this.eContentWrapper.style.height="0")},t.prototype.renderComponent=function(){var e=this,r=this.getGui();r.focus(),this.close=function(){r.parentElement.removeChild(r),e.destroy()}},t.prototype.getHeight=function(){return this.positionableFeature.getHeight()},t.prototype.setHeight=function(e){this.positionableFeature.setHeight(e)},t.prototype.getWidth=function(){return this.positionableFeature.getWidth()},t.prototype.setWidth=function(e){this.positionableFeature.setWidth(e)},t.prototype.setClosable=function(e){if(e!==this.closable&&(this.closable=e),e){var r=this.closeButtonComp=new se(t.CLOSE_BTN_TEMPLATE);this.getContext().createBean(r);var o=r.getGui(),i=_t("close",this.gridOptionsService);i.classList.add("ag-panel-title-bar-button-icon"),o.appendChild(i),this.addTitleBarButton(r),r.addManagedListener(o,"click",this.onBtClose.bind(this))}else if(this.closeButtonComp){var o=this.closeButtonComp.getGui();o.parentElement.removeChild(o),this.closeButtonComp=this.destroyBean(this.closeButtonComp)}},t.prototype.setBodyComponent=function(e){e.setParentComponent(this),this.eContentWrapper.appendChild(e.getGui())},t.prototype.addTitleBarButton=function(e,r){var o=this.eTitleBarButtons,i=o.children,a=i.length;r==null&&(r=a),r=Math.max(0,Math.min(r,a)),e.addCssClass("ag-panel-title-bar-button");var s=e.getGui();r===0?o.insertAdjacentElement("afterbegin",s):r===a?o.insertAdjacentElement("beforeend",s):i[r-1].insertAdjacentElement("afterend",s),e.setParentComponent(this)},t.prototype.getBodyHeight=function(){return _d(this.eContentWrapper)},t.prototype.getBodyWidth=function(){return Wg(this.eContentWrapper)},t.prototype.setTitle=function(e){this.eTitle.innerText=e},t.prototype.onBtClose=function(){this.close()},t.prototype.destroy=function(){this.closeButtonComp&&(this.closeButtonComp=this.destroyBean(this.closeButtonComp));var e=this.getGui();e&&e.offsetParent&&this.close(),n.prototype.destroy.call(this)},t.CLOSE_BTN_TEMPLATE='<div class="ag-button"></div>',Xc([G("eContentWrapper")],t.prototype,"eContentWrapper",void 0),Xc([G("eTitleBar")],t.prototype,"eTitleBar",void 0),Xc([G("eTitleBarButtons")],t.prototype,"eTitleBarButtons",void 0),Xc([G("eTitle")],t.prototype,"eTitle",void 0),Xc([M],t.prototype,"postConstruct",null),t}(se),q2=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Dg=function(){return Dg=Object.assign||function(n){for(var t,e=1,r=arguments.length;e<r;e++){t=arguments[e];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o])}return n},Dg.apply(this,arguments)},$2=function(n,t,e,r){var o=argu
<div class="ag-autocomplete-row" role="presentation">
<div class="ag-autocomplete-row-label"></div>
</div>`)||this;return e.hasHighlighting=!1,e}return t.prototype.setState=function(e,r){this.value=e,this.render(),this.updateSelected(r)},t.prototype.updateSelected=function(e){this.addOrRemoveCssClass("ag-autocomplete-row-selected",e)},t.prototype.setSearchString=function(e){var r,o=!1;if(D(e)){var i=(r=this.value)===null||r===void 0?void 0:r.toLocaleLowerCase().indexOf(e.toLocaleLowerCase());if(i>=0){o=!0,this.hasHighlighting=!0;var a=i+e.length,s=xt(this.value.slice(0,i)),l=xt(this.value.slice(i,a)),u=xt(this.value.slice(a));this.getGui().lastElementChild.innerHTML=s+"<b>"+l+"</b>"+u}}!o&&this.hasHighlighting&&(this.hasHighlighting=!1,this.render())},t.prototype.render=function(){var e;this.getGui().lastElementChild.innerHTML=(e=xt(this.value))!==null&&e!==void 0?e:"&nbsp;"},t}(se),ez=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),PI=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},tz=function(n){ez(t,n);function t(e){var r=n.call(this,t.TEMPLATE)||this;return r.params=e,r.searchString="",r}return t.prototype.destroy=function(){n.prototype.destroy.call(this)},t.prototype.init=function(){var e=this;this.autocompleteEntries=this.params.autocompleteEntries,this.virtualList=this.createManagedBean(new f_({cssIdentifier:"autocomplete"})),this.virtualList.setComponentCreator(this.createRowComponent.bind(this)),this.eList.appendChild(this.virtualList.getGui()),this.virtualList.setModel({getRowCount:function(){return e.autocompleteEntries.length},getRow:function(o){return e.autocompleteEntries[o]}});var r=this.virtualList.getGui();this.addManagedListener(r,"click",function(){return e.params.onConfirmed()}),this.addManagedListener(r,"mousemove",this.onMouseMove.bind(this)),this.addManagedListener(r,"mousedown",function(o){return o.preventDefault()}),this.setSelectedValue(0)},t.prototype.onNavigationKeyDown=function(e,r){e.preventDefault();var o=this.autocompleteEntries.indexOf(this.selectedValue),i=r===O.UP?o-1:o+1;this.checkSetSelectedValue(i)},t.prototype.setSearch=function(e){this.searchString=e,D(e)?this.runSearch():(this.autocompleteEntries=this.params.autocompleteEntries,this.virtualList.refresh(),this.checkSetSelectedValue(0)),this.updateSearchInList()},t.prototype.runContainsSearch=function(e,r){var o,i=!1,a=e.toLocaleLowerCase(),s=r.filter(function(l){var u=l.toLocaleLowerCase(),c=u.indexOf(a),d=c===0,f=c>=0;return f&&(!o||!i&&d||i===d&&l.length<o.length)&&(o=l,i=d),f});return!o&&s.length&&(o=s[0]),{topMatch:o,allMatches:s}},t.prototype.runSearch=function(){var e,r,o=this.params.autocompleteEntries,i=o.map(function(d){var f;return(f=d.displayValue)!==null&&f!==void 0?f:d.key}),a,s;if(this.params.useFuzzySearch)a=Sd(this.searchString,i,!0).values,s=a.length?a[0]:void 0;else{var l=this.runContainsSearch(this.searchString,i);a=l.allMatches,s=l.topMatch}var u=o.filter(function(d){var f=d.key,p=d.displayValue;return a.includes(p??f)});if(!u.length&&this.selectedValue&&(!((r=(e=this.params)===null||e===void 0?void 0:e.forceLastSelection)===null||r===void 0)&&r.call(e,this.selectedValue,this.searchString))&&(u=[this.selectedValue]),this.autocompleteEntries=u,this.virtualList.refresh(),!!s){var c=a.indexOf(s);this.checkSetSelectedValue(c)}},t.prototype.updateSearchInList=function(){var e=this;this.virtualList.forEachRenderedRow(function(r){return r.setSearchString(e.searchString)})},t.prototype.checkSetSelectedValue=function(e){e>=
<div ref="eList" class="ag-autocomplete-list"></div>
<div>`,PI([G("eList")],t.prototype,"eList",void 0),PI([M],t.prototype,"init",null),t}(Va),rz=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Hw=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},FA=function(n){rz(t,n);function t(){var e=n.call(this,`
<div class="ag-autocomplete" role="presentation">
<ag-input-text-field ref="eAutocompleteInput"></ag-input-text-field>
</div>`)||this;return e.isListOpen=!1,e.lastPosition=0,e.valid=!0,e}return t.prototype.postConstruct=function(){var e=this;this.eAutocompleteInput.onValueChange(function(r){return e.onValueChanged(r)}),this.eAutocompleteInput.getInputElement().setAttribute("autocomplete","off"),this.addGuiEventListener("keydown",this.onKeyDown.bind(this)),this.addGuiEventListener("click",this.updatePositionAndList.bind(this)),this.addDestroyFunc(function(){e.destroyBean(e.autocompleteList)}),this.addGuiEventListener("focusout",function(){return e.onFocusOut()})},t.prototype.onValueChanged=function(e){var r=ri(e);this.updateValue(r),this.updateAutocompleteList(r)},t.prototype.updateValue=function(e){this.updateLastPosition(),this.dispatchEvent({type:t.EVENT_VALUE_CHANGED,value:e}),this.validate(e)},t.prototype.updateAutocompleteList=function(e){var r,o,i,a,s=(o=(r=this.listGenerator)===null||r===void 0?void 0:r.call(this,e,this.lastPosition))!==null&&o!==void 0?o:{enabled:!1};if((!s.type||s.type!==((i=this.autocompleteListParams)===null||i===void 0?void 0:i.type))&&this.isListOpen&&this.closeList(),this.autocompleteListParams=s,!((a=this.autocompleteListParams)===null||a===void 0)&&a.enabled){this.isListOpen||this.openList();var l=this.autocompleteListParams.searchString;this.autocompleteList.setSearch(l??"")}else this.isListOpen&&this.closeList()},t.prototype.onKeyDown=function(e){var r=this,o=e.key;switch(this.updateLastPosition(),o){case O.ENTER:this.onEnterKeyDown(e);break;case O.TAB:this.onTabKeyDown(e);break;case O.DOWN:case O.UP:this.onUpDownKeyDown(e,o);break;case O.LEFT:case O.RIGHT:case O.PAGE_HOME:case O.PAGE_END:setTimeout(function(){r.updatePositionAndList()});break;case O.ESCAPE:this.onEscapeKeyDown(e);break;case O.SPACE:e.ctrlKey&&!this.isListOpen&&(e.preventDefault(),this.forceOpenList());break}},t.prototype.confirmSelection=function(){var e,r=(e=this.autocompleteList)===null||e===void 0?void 0:e.getSelectedValue();r&&(this.closeList(),this.dispatchEvent({type:t.EVENT_OPTION_SELECTED,value:this.getValue(),position:this.lastPosition,updateEntry:r,autocompleteType:this.autocompleteListParams.type}))},t.prototype.onTabKeyDown=function(e){this.isListOpen&&(e.preventDefault(),e.stopPropagation(),this.confirmSelection())},t.prototype.onEnterKeyDown=function(e){e.preventDefault(),this.isListOpen?this.confirmSelection():this.onCompleted()},t.prototype.onUpDownKeyDown=function(e,r){var o;e.preventDefault(),this.isListOpen?(o=this.autocompleteList)===null||o===void 0||o.onNavigationKeyDown(e,r):this.forceOpenList()},t.prototype.onEscapeKeyDown=function(e){this.isListOpen&&(e.preventDefault(),e.stopPropagation(),this.closeList(),this.setCaret(this.lastPosition,!0))},t.prototype.onFocusOut=function(){this.isListOpen&&this.closeList()},t.prototype.updatePositionAndList=function(){var e;this.updateLastPosition(),this.updateAutocompleteList((e=this.eAutocompleteInput.getValue())!==null&&e!==void 0?e:null)},t.prototype.setCaret=function(e,r){var o=this.gridOptionsService.getDocument();r&&o.activeElement===o.body&&this.eAutocompleteInput.getFocusableElement().focus(),this.eAutocompleteInput.getInputElement().setSelectionRange(e,e)},t.prototype.forceOpenList=function(){this.onValueChanged(this.eAutocompleteInput.getValue())},t.prototype.updateLastPosition=function(){var e;this.lastPosition=(e=this.eAutocompleteInput.getInputElement().selectionStart)!==null&&e!==void 0?e:0},t.prototype.validate=function(e){var r;this.validator&&(this.validationMessage=this.validator(e),this.eAutocompleteInput.getInputElement().setCustomValidity((r=this.validationMessage)!==null&&r!==void 0?r:""),this.valid=!this.validationMessage,this.dispatchEvent({type:t.EVENT_VALID_CHANGED,isValid:this.valid,validationMessage:this.validationMessage}))},t.prototype.openList=function(){var e=this;this.isListOpen=!0,this.autocompleteList=this.createBean(new tz({autocompleteEntries:this.autocompleteListParams.entries,onConfirmed:function(){return e.confirmSelection()},forceLastSelection:this.forceLastSelection}));var r=this.autocompleteList.getGui(),o={ePopup:r,t
`+e+`
<div class="ag-root-wrapper-body" ref="rootWrapperBody" role="presentation">
<ag-grid-body ref="gridBody"></ag-grid-body>
`+r+`
</div>
`+o+`
<ag-pagination></ag-pagination>
`+i+`
</div>`;return a},t.prototype.getFocusableElement=function(){return this.eRootWrapperBody},t.prototype.getFocusableContainers=function(){var e=[this.gridBodyComp.getGui()];return this.sideBarComp&&e.push(this.sideBarComp.getGui()),e.filter(function(r){return ka(r)})},ed([w("loggerFactory")],t.prototype,"loggerFactory",void 0),ed([G("gridBody")],t.prototype,"gridBodyComp",void 0),ed([G("sideBar")],t.prototype,"sideBarComp",void 0),ed([G("rootWrapperBody")],t.prototype,"eRootWrapperBody",void 0),ed([M],t.prototype,"postConstruct",null),t}(xd),Ez=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),II=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Ta=function(n,t){var e=typeof Symbol=="function"&&n[Symbol.iterator];if(!e)return n;var r=e.call(n),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(e=r.return)&&e.call(r)}finally{if(a)throw a.error}}return i},jl=function(n,t){for(var e=0,r=t.length,o=n.length;e<r;e++,o++)n[o]=t[e];return n},jA=function(n){Ez(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}e=t,t.prototype.progressSort=function(r,o,i){var a=this.getNextSortDirection(r);this.setSortForColumn(r,a,o,i)},t.prototype.setSortForColumn=function(r,o,i,a){o!=="asc"&&o!=="desc"&&(o=null);var s=this.gridOptionsService.isColumnsSortingCoupledToGroup(),l=[r];if(s&&r.getColDef().showRowGroup){var u=this.columnModel.getSourceColumnsForGroupColumn(r),c=u?.filter(function(f){return f.getColDef().sortable});c&&(l=jl([r],Ta(c)))}l.forEach(function(f){return f.setSort(o,a)});var d=(i||this.gridOptionsService.is("alwaysMultiSort"))&&!this.gridOptionsService.is("suppressMultiSort");d||this.clearSortBarTheseColumns(l,a),this.updateSortIndex(r),this.dispatchSortChangedEvents(a)},t.prototype.updateSortIndex=function(r){var o=this.gridOptionsService.isColumnsSortingCoupledToGroup(),i=this.columnModel.getGroupDisplayColumnForGroup(r.getId()),a=o&&i||r,s=this.getColumnsWithSortingOrdered();this.columnModel.getPrimaryAndSecondaryAndAutoColumns().forEach(function(c){return c.setSortIndex(null)});var l=s.filter(function(c){return c!==a}),u=a.getSort()?jl(jl([],Ta(l)),[a]):l;u.forEach(function(c,d){return c.setSortIndex(d)})},t.prototype.onSortChanged=function(r){this.dispatchSortChangedEvents(r)},t.prototype.isSortActive=function(){var r=this.columnModel.getPrimaryAndSecondaryAndAutoColumns(),o=r.filter(function(i){return!!i.getSort()});return o&&o.length>0},t.prototype.dispatchSortChangedEvents=function(r){var o={type:_.EVENT_SORT_CHANGED,source:r};this.eventService.dispatchEvent(o)},t.prototype.clearSortBarTheseColumns=function(r,o){this.columnModel.getPrimaryAndSecondaryAndAutoColumns().forEach(function(i){r.includes(i)||i.setSort(void 0,o)})},t.prototype.getNextSortDirection=function(r){var o;if(r.getColDef().sortingOrder?o=r.getColDef().sortingOrder:this.gridOptionsService.get("sortingOrder")?o=this.gridOptionsService.get("sortingOrder"):o=e.DEFAULT_SORTING_ORDER,!Array.isArray(o)||o.length<=0)return console.warn("AG Grid: sortingOrder must be an array with at least one element, currently it's "+o),null;var i=o.indexOf(r.getSort()),a=i<0,s=i==o.length-1,l;return a||s?l=o[0]:l=o[i+1],e.DEFAULT_SORTING_ORDER.indexOf(l)<0?(console.warn("AG Grid: invalid sort type "+l),null):l},t.prototype.getIndexedSortMap=function(){var r=this,o=this.columnModel.getPrimaryAnd
<span class="ag-paging-row-summary-panel" role="status">
<span id="ag-`+c+`-first-row" ref="lbFirstRowOnPage" class="ag-paging-row-summary-panel-number"></span>
<span id="ag-`+c+'-to">'+o+`</span>
<span id="ag-`+c+`-last-row" ref="lbLastRowOnPage" class="ag-paging-row-summary-panel-number"></span>
<span id="ag-`+c+'-of">'+i+`</span>
<span id="ag-`+c+`-row-count" ref="lbRecordCount" class="ag-paging-row-summary-panel-number"></span>
</span>
<span class="ag-paging-page-summary-panel" role="presentation">
<div ref="btFirst" class="ag-button ag-paging-button" role="button" aria-label="`+a+`"></div>
<div ref="btPrevious" class="ag-button ag-paging-button" role="button" aria-label="`+s+`"></div>
<span class="ag-paging-description" role="status">
<span id="ag-`+c+'-start-page">'+r+`</span>
<span id="ag-`+c+`-start-page-number" ref="lbCurrent" class="ag-paging-number"></span>
<span id="ag-`+c+'-of-page">'+i+`</span>
<span id="ag-`+c+`-of-page-number" ref="lbTotal" class="ag-paging-number"></span>
</span>
<div ref="btNext" class="ag-button ag-paging-button" role="button" aria-label="`+l+`"></div>
<div ref="btLast" class="ag-button ag-paging-button" role="button" aria-label="`+u+`"></div>
</span>
</div>`},t.prototype.onBtNext=function(){this.nextButtonDisabled||this.paginationProxy.goToNextPage()},t.prototype.onBtPrevious=function(){this.previousAndFirstButtonsDisabled||this.paginationProxy.goToPreviousPage()},t.prototype.onBtLast=function(){this.lastButtonDisabled||this.paginationProxy.goToLastPage()},t.prototype.enableOrDisableButtons=function(){var e=this.paginationProxy.getCurrentPage(),r=this.paginationProxy.isLastPageFound(),o=this.paginationProxy.getTotalPages();this.previousAndFirstButtonsDisabled=e===0,this.toggleButtonDisabled(this.btFirst,this.previousAndFirstButtonsDisabled),this.toggleButtonDisabled(this.btPrevious,this.previousAndFirstButtonsDisabled);var i=this.isZeroPagesToDisplay(),a=r&&e===o-1;this.nextButtonDisabled=a||i,this.lastButtonDisabled=!r||i||e===o-1,this.toggleButtonDisabled(this.btNext,this.nextButtonDisabled),this.toggleButtonDisabled(this.btLast,this.lastButtonDisabled)},t.prototype.toggleButtonDisabled=function(e,r){OS(e,r),e.classList.toggle("ag-disabled",r)},t.prototype.updateRowLabels=function(){var e=this.paginationProxy.getCurrentPage(),r=this.paginationProxy.getPageSize(),o=this.paginationProxy.isLastPageFound(),i=this.paginationProxy.isLastPageFound()?this.paginationProxy.getMasterRowCount():null,a,s;if(this.isZeroPagesToDisplay()?a=s=0:(a=r*e+1,s=a+r-1,o&&s>i&&(s=i)),this.lbFirstRowOnPage.innerHTML=this.formatNumber(a),this.rowNodeBlockLoader.isLoading()){var l=this.localeService.getLocaleTextFunc();this.lbLastRowOnPage.innerHTML=l("pageLastRowUnknown","?")}else this.lbLastRowOnPage.innerHTML=this.formatNumber(s)},t.prototype.isZeroPagesToDisplay=function(){var e=this.paginationProxy.isLastPageFound(),r=this.paginationProxy.getTotalPages();return e&&r===0},t.prototype.setTotalLabels=function(){var e=this.paginationProxy.isLastPageFound(),r=this.paginationProxy.getTotalPages(),o=e?this.paginationProxy.getMasterRowCount():null;if(o===1){var i=this.paginationProxy.getRow(0),a=i&&i.group&&!(i.groupData||i.aggData);if(a){this.setTotalLabelsToZero();return}}if(e)this.lbTotal.innerHTML=this.formatNumber(r),this.lbRecordCount.innerHTML=this.formatNumber(o);else{var s=this.localeService.getLocaleTextFunc()("more","more");this.lbTotal.innerHTML=s,this.lbRecordCount.innerHTML=s}},t.prototype.setTotalLabelsToZero=function(){this.lbFirstRowOnPage.innerHTML=this.formatNumber(0),this.lbCurrent.innerHTML=this.formatNumber(0),this.lbLastRowOnPage.innerHTML=this.formatNumber(0),this.lbTotal.innerHTML=this.formatNumber(0),this.lbRecordCount.innerHTML=this.formatNumber(0)},Kn([w("paginationProxy")],t.prototype,"paginationProxy",void 0),Kn([w("rowNodeBlockLoader")],t.prototype,"rowNodeBlockLoader",void 0),Kn([G("btFirst")],t.prototype,"btFirst",void 0),Kn([G("btPrevious")],t.prototype,"btPrevious",void 0),Kn([G("btNext")],t.prototype,"btNext",void 0),Kn([G("btLast")],t.prototype,"btLast",void 0),Kn([G("lbRecordCount")],t.prototype,"lbRecordCount",void 0),Kn([G("lbFirstRowOnPage")],t.prototype,"lbFirstRowOnPage",void 0),Kn([G("lbLastRowOnPage")],t.prototype,"lbLastRowOnPage",void 0),Kn([G("lbCurrent")],t.prototype,"lbCurrent",void 0),Kn([G("lbTotal")],t.prototype,"lbTotal",void 0),Kn([M],t.prototype,"postConstruct",null),t}(se),Qz=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),zl=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Kl;(function(n){n[n.Loading=0]="Loading",n[n.NoRows=1]="NoRows"})(Kl
<div class="ag-overlay" aria-hidden="true">
<div class="ag-overlay-panel">
<div class="ag-overlay-wrapper" ref="eOverlayWrapper"></div>
</div>
</div>`,zl([w("userComponentFactory")],t.prototype,"userComponentFactory",void 0),zl([w("paginationProxy")],t.prototype,"paginationProxy",void 0),zl([w("gridApi")],t.prototype,"gridApi",void 0),zl([w("columnModel")],t.prototype,"columnModel",void 0),zl([G("eOverlayWrapper")],t.prototype,"eOverlayWrapper",void 0),zl([M],t.prototype,"postConstruct",null),t}(se),Zz=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),ng=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},KA=function(n){Zz(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t.prototype.getFirstRow=function(){var e=0,r;return this.pinnedRowModel.getPinnedTopRowCount()?r="top":this.rowModel.getRowCount()?(r=null,e=this.paginationProxy.getPageFirstRow()):this.pinnedRowModel.getPinnedBottomRowCount()&&(r="bottom"),r===void 0?null:{rowIndex:e,rowPinned:r}},t.prototype.getLastRow=function(){var e,r=null,o=this.pinnedRowModel.getPinnedBottomRowCount(),i=this.pinnedRowModel.getPinnedTopRowCount();return o?(r="bottom",e=o-1):this.rowModel.getRowCount()?(r=null,e=this.paginationProxy.getPageLastRow()):i&&(r="top",e=i-1),e===void 0?null:{rowIndex:e,rowPinned:r}},t.prototype.getRowNode=function(e){switch(e.rowPinned){case"top":return this.pinnedRowModel.getPinnedTopRowData()[e.rowIndex];case"bottom":return this.pinnedRowModel.getPinnedBottomRowData()[e.rowIndex];default:return this.rowModel.getRow(e.rowIndex)}},t.prototype.sameRow=function(e,r){return!e&&!r?!0:e&&!r||!e&&r?!1:e.rowIndex===r.rowIndex&&e.rowPinned==r.rowPinned},t.prototype.before=function(e,r){switch(e.rowPinned){case"top":if(r.rowPinned!=="top")return!0;break;case"bottom":if(r.rowPinned!=="bottom")return!1;break;default:if(D(r.rowPinned))return r.rowPinned!=="top";break}return e.rowIndex<r.rowIndex},t.prototype.rowMax=function(e){var r=this,o;return e.forEach(function(i){(o===void 0||r.before(o,i))&&(o=i)}),o},t.prototype.rowMin=function(e){var r=this,o;return e.forEach(function(i){(o===void 0||r.before(i,o))&&(o=i)}),o},ng([w("rowModel")],t.prototype,"rowModel",void 0),ng([w("pinnedRowModel")],t.prototype,"pinnedRowModel",void 0),ng([w("paginationProxy")],t.prototype,"paginationProxy",void 0),t=ng([H("rowPositionUtils")],t),t}(F),eq=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),tq=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},YA=function(n){eq(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t.prototype.createId=function(e){var r=e.rowIndex,o=e.rowPinned,i=e.column;return this.createIdFromValues({rowIndex:r,column:i,rowPinned:o})},t.prototype.createIdFromValues=function(e){var r=e.rowIndex,o=e.rowPinned,i=e.column;return r+"."+(o??"null")+"."+i.getId()},t.prototype.equals=function(e,r
<div class="ag-horizontal-left-spacer" ref="eLeftSpacer"></div>
<div class="ag-body-horizontal-scroll-viewport" ref="eViewport">
<div class="ag-body-horizontal-scroll-container" ref="eContainer"></div>
</div>
<div class="ag-horizontal-right-spacer" ref="eRightSpacer"></div>
</div>`,rd([G("eLeftSpacer")],t.prototype,"eLeftSpacer",void 0),rd([G("eRightSpacer")],t.prototype,"eRightSpacer",void 0),rd([w("columnModel")],t.prototype,"columnModel",void 0),rd([w("pinnedRowModel")],t.prototype,"pinnedRowModel",void 0),rd([M],t.prototype,"postConstruct",null),t}(ZA),wq=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Qw=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Sq=function(n){wq(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t.prototype.postConstruct=function(){var e=this.checkContainerWidths.bind(this);this.addManagedListener(this.eventService,_.EVENT_DISPLAYED_COLUMNS_CHANGED,e),this.addManagedListener(this.eventService,_.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,e),this.addManagedPropertyListener("domLayout",e)},t.prototype.checkContainerWidths=function(){var e=this.gridOptionsService.isDomLayout("print"),r=e?0:this.columnModel.getDisplayedColumnsLeftWidth(),o=e?0:this.columnModel.getDisplayedColumnsRightWidth();r!=this.leftWidth&&(this.leftWidth=r,this.eventService.dispatchEvent({type:_.EVENT_LEFT_PINNED_WIDTH_CHANGED})),o!=this.rightWidth&&(this.rightWidth=o,this.eventService.dispatchEvent({type:_.EVENT_RIGHT_PINNED_WIDTH_CHANGED}))},t.prototype.getPinnedRightWidth=function(){return this.rightWidth},t.prototype.getPinnedLeftWidth=function(){return this.leftWidth},Qw([w("columnModel")],t.prototype,"columnModel",void 0),Qw([M],t.prototype,"postConstruct",null),t=Qw([H("pinnedWidthService")],t),t}(F),_q=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),ig=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Eq=function(n){_q(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.events=[],e}return t.prototype.postConstruct=function(){this.rowModel.getType()=="clientSide"&&(this.clientSideRowModel=this.rowModel)},t.prototype.dispatchExpanded=function(e){var r=this;if(this.clientSideRowModel==null){this.eventService.dispatchEvent(e);return}this.events.push(e);var o=function(){r.clientSideRowModel&&r.clientSideRowModel.onRowGroupOpened(),r.events.forEach(function(i){return r.eventService.dispatchEvent(i)}),r.events=[]};this.dispatchExpandedDebounced==null&&(this.dispatchExpandedDebounced=this.animationFrameService.debounce(o)),this.dispatchExpandedDebounced()},ig([w("animationFrameService")],t.prototype,"animationFrameService",void 0),ig([w("rowModel")],t.prototype,"rowModel",void 0),ig([M],t.prototype,"postConstruct",null),t=ig([H("rowNodeEventThrottle")],t),t}(F),SS=function(){return SS=Object.assign||function(n){for(var t,e=1,r=arguments.length;e<r;e++){t=arguments[e];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o])}return n},SS.apply(this,arguments)},xa=funct
<div class="ag-body-vertical-scroll-viewport" ref="eViewport">
<div class="ag-body-vertical-scroll-container" ref="eContainer"></div>
</div>
</div>`,Oq([M],t.prototype,"postConstruct",null),t}(ZA),Iq=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Qr=function(){return Qr=Object.assign||function(n){for(var t,e=1,r=arguments.length;e<r;e++){t=arguments[e];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o])}return n},Qr.apply(this,arguments)},_s=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Qo=function(n,t){var e=typeof Symbol=="function"&&n[Symbol.iterator];if(!e)return n;var r=e.call(n),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(e=r.return)&&e.call(r)}finally{if(a)throw a.error}}return i},nd=function(n,t){for(var e=0,r=t.length,o=n.length;e<r;e++,o++)n[o]=t[e];return n},VI={january:"January",february:"February",march:"March",april:"April",may:"May",june:"June",july:"July",august:"August",september:"September",october:"October",november:"November",december:"December"},BI=["january","february","march","april","may","june","july","august","september","october","november","december"],rF=function(n){Iq(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.dataTypeDefinitions={},e.isWaitingForRowData=!1,e.isColumnTypeOverrideInDataTypeDefinitions=!1,e.columnStateUpdatesPendingInference={},e.columnStateUpdateListenerDestroyFuncs=[],e}return t.prototype.init=function(){var e=this;this.groupHideOpenParents=this.gridOptionsService.is("groupHideOpenParents"),this.addManagedPropertyListener("groupHideOpenParents",function(){e.groupHideOpenParents=e.gridOptionsService.is("groupHideOpenParents")}),this.processDataTypeDefinitions(),this.addManagedPropertyListener("dataTypeDefinitions",function(){e.processDataTypeDefinitions(),e.columnModel.recreateColumnDefs("gridOptionsChanged")})},t.prototype.processDataTypeDefinitions=function(){var e=this,r,o=this.getDefaultDataTypes();this.dataTypeDefinitions={},Object.entries(o).forEach(function(a){var s=Qo(a,2),l=s[0],u=s[1];e.dataTypeDefinitions[l]=Qr(Qr({},u),{groupSafeValueFormatter:e.createGroupSafeValueFormatter(u)})});var i=(r=this.gridOptionsService.get("dataTypeDefinitions"))!==null&&r!==void 0?r:{};this.dataTypeMatchers={},Object.entries(i).forEach(function(a){var s=Qo(a,2),l=s[0],u=s[1],c=e.processDataTypeDefinition(u,i,[l],o);c&&(e.dataTypeDefinitions[l]=c,u.dataTypeMatcher&&(e.dataTypeMatchers[l]=u.dataTypeMatcher))}),this.checkObjectValueHandlers(o),["dateString","text","number","boolean","date"].forEach(function(a){var s=e.dataTypeMatchers[a];s&&delete e.dataTypeMatchers[a],e.dataTypeMatchers[a]=s??o[a].dataTypeMatcher})},t.prototype.mergeDataTypeDefinitions=function(e,r){var o=Qr(Qr({},e),r);return e.columnTypes&&r.columnTypes&&r.appendColumnTypes&&(o.columnTypes=nd(nd([],Qo(this.convertColumnTypes(e.columnTypes))),Qo(this.convertColumnTypes(r.columnTypes)))),o},t.prototype.processDataTypeDefinition=function(e,r,o,i){var a,s=e.extendsDataType;if(e.columnTypes&&(this.isColumnTypeOverrideInDataTypeDefinitions=!0),e.extendsDataType===e.baseDataType){var l=i[s];if(!this.validateDataTypeDefinition(e,l,s))return;a=this.mergeDataTypeDefinitions(l,e)}else{if(o.includes(s)){ge(function(){return console.warn('AG Grid: Data type definition hierarchies (via the "extendsDataType" property) cannot contain circular references.')},"dataTypeExtendsCircularRef");return}var u=r[s];if(!this.validateDataTypeDefinition(e,u,s))retu
`,p$=function(n){f$(t,n);function t(e){var r=n.call(this,e)||this;r.isFirstLine=!0,r.result="";var o=e.suppressQuotes,i=e.columnSeparator;return r.suppressQuotes=o,r.columnSeparator=i,r}return t.prototype.addCustomContent=function(e){var r=this;e&&(typeof e=="string"?(/^\s*\n/.test(e)||this.beginNewLine(),e=e.replace(/\r?\n/g,KI),this.result+=e):e.forEach(function(o){r.beginNewLine(),o.forEach(function(i,a){a!==0&&(r.result+=r.columnSeparator),r.result+=r.putInQuotes(i.data.value||""),i.mergeAcross&&r.appendEmptyCells(i.mergeAcross)})}))},t.prototype.onNewHeaderGroupingRow=function(){return this.beginNewLine(),{onColumn:this.onNewHeaderGroupingRowColumn.bind(this)}},t.prototype.onNewHeaderGroupingRowColumn=function(e,r,o,i){o!=0&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(r),this.appendEmptyCells(i)},t.prototype.appendEmptyCells=function(e){for(var r=1;r<=e;r++)this.result+=this.columnSeparator+this.putInQuotes("")},t.prototype.onNewHeaderRow=function(){return this.beginNewLine(),{onColumn:this.onNewHeaderRowColumn.bind(this)}},t.prototype.onNewHeaderRowColumn=function(e,r){r!=0&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(this.extractHeaderValue(e))},t.prototype.onNewBodyRow=function(){return this.beginNewLine(),{onColumn:this.onNewBodyRowColumn.bind(this)}},t.prototype.onNewBodyRowColumn=function(e,r,o){var i;r!=0&&(this.result+=this.columnSeparator);var a=this.extractRowCellValue(e,r,r,"csv",o);this.result+=this.putInQuotes((i=a.valueFormatted)!==null&&i!==void 0?i:a.value)},t.prototype.putInQuotes=function(e){if(this.suppressQuotes)return e;if(e==null)return'""';var r;typeof e=="string"?r=e:typeof e.toString=="function"?r=e.toString():(console.warn("AG Grid: unknown value type during csv conversion"),r="");var o=r.replace(/"/g,'""');return'"'+o+'"'},t.prototype.parse=function(){return this.result},t.prototype.beginNewLine=function(){this.isFirstLine||(this.result+=KI),this.isFirstLine=!1},t}(aF),h$=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Oa=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},lF=function(n){h$(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t.prototype.postConstruct=function(){this.setBeans({gridSerializer:this.gridSerializer,gridOptionsService:this.gridOptionsService})},t.prototype.getMergedParams=function(e){var r=this.gridOptionsService.get("defaultCsvExportParams");return Object.assign({},r,e)},t.prototype.export=function(e){if(this.isExportSuppressed())return console.warn("AG Grid: Export cancelled. Export is not allowed as per your configuration."),"";var r=this.getMergedParams(e),o=this.getData(r),i=new Blob(["\uFEFF",o],{type:"text/plain"});return sF.download(this.getFileName(r.fileName),i),o},t.prototype.exportDataAsCsv=function(e){return this.export(e)},t.prototype.getDataAsCsv=function(e,r){r===void 0&&(r=!1);var o=r?Object.assign({},e):this.getMergedParams(e);return this.getData(o)},t.prototype.getDefaultFileName=function(){return"export.csv"},t.prototype.getDefaultFileExtension=function(){return"csv"},t.prototype.createSerializingSession=function(e){var r=this,o=r.columnModel,i=r.valueService,a=r.gridOptionsService,s=r.valueFormatterService,l=r.valueParserService,u=e,c=u.processCellCallback,d=u.processHeaderCallback,f=u.processGroupHeaderCallback,p=u.processRowGroupCallback,h=u.suppressQuotes,v=u.columnSeparator;return new p$({co
`,m$=function(){function n(){}return n.createHeader=function(t){t===void 0&&(t={});var e="<?",r="?>",o=["version"];t.version||(t.version="1.0"),t.encoding&&o.push("encoding"),t.standalone&&o.push("standalone");var i=o.map(function(a){return a+'="'+t[a]+'"'}).join(" ");return e+"xml "+i+" "+r},n.createXml=function(t,e){var r=this,o="";t.properties&&(t.properties.prefixedAttributes&&t.properties.prefixedAttributes.forEach(function(a){Object.keys(a.map).forEach(function(s){o+=r.returnAttributeIfPopulated(a.prefix+s,a.map[s],e)})}),t.properties.rawMap&&Object.keys(t.properties.rawMap).forEach(function(a){o+=r.returnAttributeIfPopulated(a,t.properties.rawMap[a],e)}));var i="<"+t.name+o;return!t.children&&t.textNode==null?i+"/>"+dg:t.textNode!=null?i+">"+t.textNode+"</"+t.name+">"+dg:(i+=">"+dg,t.children&&t.children.forEach(function(a){i+=r.createXml(a,e)}),i+"</"+t.name+">"+dg)},n.returnAttributeIfPopulated=function(t,e,r){if(!e&&e!==""&&e!==0)return"";var o=e;return typeof e=="boolean"&&r&&(o=r(e))," "+t+'="'+o+'"'},n}(),y$=function(n){var t=typeof Symbol=="function"&&Symbol.iterator,e=t&&n[t],r=0;if(e)return e.call(n);if(n&&typeof n.length=="number")return{next:function(){return n&&r>=n.length&&(n=void 0),{value:n&&n[r++],done:!n}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},C$=new Uint32Array([0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,75516711
\0`+(c?"\0\b":"\0\0")+"\0\0"+l(d,2)+l(f,2)+l(C?this.getFromCrc32Table(m):0,4)+l(C,4)+l(C,4)+l(u.length,2)+l(p.length,2),S="PK"+y+u+p,E="PK\0"+y+"\0\0\0\0\0\0"+(r?"\0\0\0\0":"\0\0\0")+l(e,4)+u+p;return{fileHeader:S,folderHeader:E,content:m||""}},n.getConvertedContent=function(t,e){return e===void 0&&(e=!1),e&&(t=t.split(";base64,")[1]),t=e?atob(t):t,{size:t.length,content:t}},n.buildFolderEnd=function(t,e,r){var o=Q.decToHex;return"PK\0\0\0\0"+o(t,2)+o(t,2)+o(e,4)+o(r,4)+"\0\0"},n.buildUint8Array=function(t){for(var e=new Uint8Array(t.length),r=0;r<e.length;r++)e[r]=t.charCodeAt(r);return e},n.getFromCrc32Table=function(t){if(!t.length)return 0;for(var e=t.length,r=new Uint8Array(e),o=0;o<e;o++)r[o]=t.charCodeAt(o);for(var i=-1,a=0,s=0,l=0,o=0;o<e;o++)a=r[o],s=(i^a)&255,l=C$[s],i=i>>>8^l;return i^-1},n.convertTime=function(t){var e=t.getHours();return e<<=6,e=e|t.getMinutes(),e<<=5,e=e|t.getSeconds()/2,e},n.convertDate=function(t){var e=t.getFullYear()-1980;return e<<=4,e=e|t.getMonth()+1,e<<=5,e=e|t.getDate(),e},n.folders=[],n.files=[],n}();J.__registerModules([n$,d$,cF],!1,void 0);g.AbstractHeaderCellCtrl=Td;g.AgAbstractField=QS;g.AgAbstractLabel=XS;g.AgAutocomplete=FA;g.AgCheckbox=Rd;g.AgDialog=DA;g.AgGroupComponent=OA;g.AgInputDateField=RA;g.AgInputNumberField=$g;g.AgInputRange=TA;g.AgInputTextArea=EA;g.AgInputTextField=Ha;g.AgMenuItemComponent=ql;g.AgMenuList=LA;g.AgMenuPanel=IA;g.AgPanel=p_;g.AgPickerField=JS;g.AgPromise=yn;g.AgRadioButton=ZS;g.AgRichSelect=xA;g.AgSelect=qg;g.AgSlider=PA;g.AgStackComponentsRegistry=RD;g.AgToggleButton=_A;g.AlignedGridsService=NA;g.AnimateShowChangeCellRenderer=T0;g.AnimateSlideCellRenderer=x0;g.AnimationFrameService=hA;g.AutoScrollService=o_;g.AutoWidthCalculator=gA;g.Autowired=w;g.BaseComponentWrapper=bq;g.BaseCreator=iF;g.BaseGridSerializingSession=aF;g.Bean=H;g.BeanStub=F;g.Beans=s_;g.BodyDropPivotTarget=Z0;g.BodyDropTarget=tA;g.CHART_TOOLBAR_ALLOW_LIST=Gq;g.CHART_TOOL_PANEL_ALLOW_LIST=Nq;g.CHART_TOOL_PANEL_MENU_OPTIONS=kq;g.CellComp=Q0;g.CellCtrl=ba;g.CellNavigationService=MA;g.CellPositionUtils=YA;g.ChangedPath=ev;g.CheckboxCellEditor=F0;g.CheckboxCellRenderer=A0;g.CheckboxSelectionComponent=n_;g.ColDefUtil=CD;g.Column=Ne;g.ColumnApi=GA;g.ColumnFactory=vD;g.ColumnGroup=Wt;g.ColumnKeyCreator=YI;g.ColumnModel=SD;g.ColumnUtils=_D;g.Component=se;g.ComponentUtil=ud;g.Context=oD;g.CssClassApplier=c_;g.CssClassManager=i0;g.CsvCreator=lF;g.CsvExportModule=cF;g.CtrlsService=JA;g.CustomTooltipFeature=zg;g.DEFAULT_CHART_GROUPS=Mq;g.DataTypeService=rF;g.DateCellEditor=I0;g.DateFilter=t_;g.DateStringCellEditor=D0;g.DisplayedGroupCreator=ED;g.Downloader=sF;g.DragAndDropService=Ft;g.DragService=G0;g.Environment=qA;g.EventService=Li;g.Events=_;g.ExpressionService=HA;g.FilterManager=V0;g.FloatingFilterMapper=M0;g.FocusService=Os;g.GROUP_AUTO_COLUMN_ID=Is;g.Grid=Aq;g.GridApi=k0;g.GridBodyComp=q0;g.GridBodyCtrl=U0;g.GridComp=UA;g.GridCoreCreator=oF;g.GridCtrl=WA;g.GridHeaderComp=cA;g.GridHeaderCtrl=uA;g.GridOptionsService=eF;g.GridSerializer=uF;g.GroupCellRenderer=mS;g.GroupCellRendererCtrl=O0;g.GroupInstanceIdCreator=xS;g.HeaderCellCtrl=iA;g.HeaderFilterCellComp=B0;g.HeaderFilterCellCtrl=nA;g.HeaderGroupCellCtrl=aA;g.HeaderNavigationService=lA;g.HeaderPositionUtils=XA;g.HeaderRowComp=rA;g.HeaderRowContainerComp=pg;g.HeaderRowContainerCtrl=sA;g.HeaderRowCtrl=fg;g.HorizontalResizeService=dA;g.KeyCode=O;g.LargeTextCellEditor=E0;g.LocaleService=tF;g.Logger=Fg;g.LoggerFactory=BA;g.ManagedFocusFeature=Di;g.ModuleRegistry=J;g.MouseEventService=K0;g.MoveColumnFeature=eA;g.NavigationService=Y0;g.NumberCellEditor=L0;g.NumberFilter=r_;g.NumberSequence=As;g.Optional=_e;g.PaginationProxy=wA;g.PinnedRowModel=yA;g.PopupComponent=Va;g.PopupEditorWrapper=X0;g.PopupService=AA;g.PositionableFeature=YS;g.PostConstruct=M;g.PreConstruct=rS;g.PreDestroy=Mt;g.PropertyKeys=Jo;g.ProvidedColumnGroup=gt;g.ProvidedFilter=wd;g.Qualifier=er;g.QuerySelector=ZB;g.RefSelector=G;g.ResizeObserverService=pA;g.RowContainerComp=J0;g.RowContainerCtrl=u_;g.RowCtrl=Ma;g.RowNode=ce;g.RowNodeBlock=Og;g.RowNodeBlockLoader=CA;g.Row
`&&n.push(`
`),i!==null&&n.push(Ar(""+i)),null;case"input":n.push(ai("input")),l=c=s=i=null;for(a in e)if(en.call(e,a)&&(u=e[a],u!=null))switch(a){case"children":case"dangerouslySetInnerHTML":throw Error(pe(399,"input"));case"defaultChecked":l=u;break;case"defaultValue":s=u;break;case"checked":c=u;break;case"value":i=u;break;default:Sn(n,r,a,u)}return c!==null?Sn(n,r,"checked",c):l!==null&&Sn(n,r,"checked",l),i!==null?Sn(n,r,"value",i):s!==null&&Sn(n,r,"value",s),n.push("/>"),null;case"menuitem":n.push(ai("menuitem"));for(var f in e)if(en.call(e,f)&&(i=e[f],i!=null))switch(f){case"children":case"dangerouslySetInnerHTML":throw Error(pe(400));default:Sn(n,r,f,i)}return n.push(">"),null;case"title":n.push(ai("title")),i=null;for(d in e)if(en.call(e,d)&&(a=e[d],a!=null))switch(d){case"children":i=a;break;case"dangerouslySetInnerHTML":throw Error(pe(434));default:Sn(n,r,d,a)}return n.push(">"),i;case"listing":case"pre":n.push(ai(t)),a=i=null;for(l in e)if(en.call(e,l)&&(s=e[l],s!=null))switch(l){case"children":i=s;break;case"dangerouslySetInnerHTML":a=s;break;default:Sn(n,r,l,s)}if(n.push(">"),a!=null){if(i!=null)throw Error(pe(60));if(typeof a!="object"||!("__html"in a))throw Error(pe(61));e=a.__html,e!=null&&(typeof e=="string"&&0<e.length&&e[0]===`
`?n.push(`
`,e):n.push(""+e))}return typeof i=="string"&&i[0]===`
`&&n.push(`
`),i;case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":n.push(ai(t));for(var p in e)if(en.call(e,p)&&(i=e[p],i!=null))switch(p){case"children":case"dangerouslySetInnerHTML":throw Error(pe(399,t));default:Sn(n,r,p,i)}return n.push("/>"),null;case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return g_(n,e,t,r);case"html":return o.insertionMode===0&&n.push("<!DOCTYPE html>"),g_(n,e,t,r);default:if(t.indexOf("-")===-1&&typeof e.is!="string")return g_(n,e,t,r);n.push(ai(t)),a=i=null;for(u in e)if(en.call(e,u)&&(s=e[u],s!=null))switch(u){case"children":i=s;break;case"dangerouslySetInnerHTML":a=s;break;case"style":BF(n,r,s);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:VF(u)&&typeof s!="function"&&typeof s!="symbol"&&n.push(" ",u,'="',Ar(s),'"')}return n.push(">"),ov(n,a,i),i}}function EF(n,t,e){if(n.push('<!--$?--><template id="'),e===null)throw Error(pe(395));return n.push(e),n.push('"></template>')}function M$(n,t,e,r){switch(e.insertionMode){case 0:case 1:return n.push('<div hidden id="'),n.push(t.segmentPrefix),t=r.toString(16),n.push(t),n.push('">');case 2:return n.push('<svg aria-hidden="true" style="display:none" id="'),n.push(t.segmentPrefix),t=r.toString(16),n.push(t),n.push('">');case 3:return n.push('<math aria-hidden="true" style="display:none" id="'),n.push(t.segmentPrefix),t=r.toString(16),n.push(t),n.push('">');case 4:return n.push('<table hidden id="'),n.push(t.segmentPrefix),t=r.toString(16),n.push(t),n.push('">');case 5:return n.push('<table hidden><tbody id="'),n.push(t.segmentPrefix),t=r.toString(16),n.push(t),n.push('">');case 6:return n.push('<table hidden><tr id="'),n.push(t.segmentPrefix),t=r.toString(16),n.push(t),n.push('">');case 7:return n.push('<table hidden><colgroup id="'),n.push(t.segmentPrefix),t=r.toString(16),n.push(t),n.push('">');default:throw Error(pe(397))}}function N$(n,t){switch(t.insertionMode){case 0:case 1:return n.push("</div>");case 2:return n.push("</svg>");case 3:return n.push("</math>");case 4:return n.push("</table>");case 5:return n.push("</tbody></table>");case 6:return n.push("</tr></table>");case 7:return n.push("</colgroup></table>");default:throw Error(pe(397))}}var G$=/[<\u2028\u2029]/g;function v_(n){return JSON.stringify(n).replace(G$,function(t){switch(t){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}function k$(n,t){return t=t===void 0?"":t,{bootstrapChunks:[],startInlineScript:"<script>",placeholderPrefix:t+"P:",segmentPrefix:t+"S:",boundaryPrefix:t+"B:",idPrefix:t,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1,generateStaticMarkup:n}}function RF(n,t,e,r){return e.generateStaticMarkup?(n.push(Ar(t)),!1):(t===""?n=r:(r&&n.push("<!-- -->"),n.push(Ar(t)),n=!0),n)}var Ld=Object.assign,H$=Symbol.for("react.element"),WF=Symbol.for("react.portal"),UF=Symbol.for("react.fragment"),jF=Symbol.for("react.strict_mode"),zF=Symbol.for("react.profiler"),qF=Symbol.for("react.provider"),$F=Symbol.for("react.context"),KF=Symbol.for("react.forward_ref"),YF=Symbol.for("react.suspense"),XF=Symbol.for("react.suspense_list"),QF=Symbol.for("react.memo"),T_=Symbol.for("react.lazy"),V$=Symbol.for("react.scope"),B$=Symbol.for("react.debug_trace_mode"),W$=Symbol.for("react.legacy_hidden"),U$=Symbol.for("react.default_value"),TF=Symbol.iterator;function C_(n){if(n==null)return null;if(typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case UF:return"Fragment";case WF:return"Portal";case zF:return"Profiler";case jF:return"StrictMode";case YF:return"Suspense";case XF:return"SuspenseList"}
`),wK=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,Cb=new Map;function li(n){var t=Cb.get(n);if(t===void 0){if(!wK.test(n))throw Error(ve(65,n));t=V("<"+n),Cb.set(n,t)}return t}var SK=V("<!DOCTYPE html>");function _K(n,t,e,r,o){switch(t){case"select":n.push(li("select"));var i=null,a=null;for(c in e)if(tn.call(e,c)){var s=e[c];if(s!=null)switch(c){case"children":i=s;break;case"dangerouslySetInnerHTML":a=s;break;case"defaultValue":case"value":break;default:En(n,r,c,s)}}return n.push(Ua),Cv(n,a,i),i;case"option":a=o.selectedValue,n.push(li("option"));var l=s=null,u=null,c=null;for(i in e)if(tn.call(e,i)){var d=e[i];if(d!=null)switch(i){case"children":s=d;break;case"selected":u=d;break;case"dangerouslySetInnerHTML":c=d;break;case"value":l=d;default:En(n,r,i,d)}}if(a!=null)if(e=l!==null?""+l:CK(s),G_(a)){for(r=0;r<a.length;r++)if(""+a[r]===e){n.push(D_);break}}else""+a===e&&n.push(D_);else u&&n.push(D_);return n.push(Ua),Cv(n,c,s),s;case"textarea":n.push(li("textarea")),c=a=i=null;for(s in e)if(tn.call(e,s)&&(l=e[s],l!=null))switch(s){case"children":c=l;break;case"value":i=l;break;case"defaultValue":a=l;break;case"dangerouslySetInnerHTML":throw Error(ve(91));default:En(n,r,s,l)}if(i===null&&a!==null&&(i=a),n.push(Ua),c!=null){if(i!=null)throw Error(ve(92));if(G_(c)&&1<c.length)throw Error(ve(93));i=""+c}return typeof i=="string"&&i[0]===`
`&&n.push(F_),i!==null&&n.push(me(nr(""+i))),null;case"input":n.push(li("input")),l=c=s=i=null;for(a in e)if(tn.call(e,a)&&(u=e[a],u!=null))switch(a){case"children":case"dangerouslySetInnerHTML":throw Error(ve(399,"input"));case"defaultChecked":l=u;break;case"defaultValue":s=u;break;case"checked":c=u;break;case"value":i=u;break;default:En(n,r,a,u)}return c!==null?En(n,r,"checked",c):l!==null&&En(n,r,"checked",l),i!==null?En(n,r,"value",i):s!==null&&En(n,r,"value",s),n.push(yb),null;case"menuitem":n.push(li("menuitem"));for(var f in e)if(tn.call(e,f)&&(i=e[f],i!=null))switch(f){case"children":case"dangerouslySetInnerHTML":throw Error(ve(400));default:En(n,r,f,i)}return n.push(Ua),null;case"title":n.push(li("title")),i=null;for(d in e)if(tn.call(e,d)&&(a=e[d],a!=null))switch(d){case"children":i=a;break;case"dangerouslySetInnerHTML":throw Error(ve(434));default:En(n,r,d,a)}return n.push(Ua),i;case"listing":case"pre":n.push(li(t)),a=i=null;for(l in e)if(tn.call(e,l)&&(s=e[l],s!=null))switch(l){case"children":i=s;break;case"dangerouslySetInnerHTML":a=s;break;default:En(n,r,l,s)}if(n.push(Ua),a!=null){if(i!=null)throw Error(ve(60));if(typeof a!="object"||!("__html"in a))throw Error(ve(61));e=a.__html,e!=null&&(typeof e=="string"&&0<e.length&&e[0]===`
`?n.push(F_,me(e)):n.push(me(""+e)))}return typeof i=="string"&&i[0]===`
`&&n.push(F_),i;case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":n.push(li(t));for(var p in e)if(tn.call(e,p)&&(i=e[p],i!=null))switch(p){case"children":case"dangerouslySetInnerHTML":throw Error(ve(399,t));default:En(n,r,p,i)}return n.push(yb),null;case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return A_(n,e,t,r);case"html":return o.insertionMode===0&&n.push(SK),A_(n,e,t,r);default:if(t.indexOf("-")===-1&&typeof e.is!="string")return A_(n,e,t,r);n.push(li(t)),a=i=null;for(u in e)if(tn.call(e,u)&&(s=e[u],s!=null))switch(u){case"children":i=s;break;case"dangerouslySetInnerHTML":a=s;break;case"style":Vb(n,r,s);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:Hb(u)&&typeof s!="function"&&typeof s!="symbol"&&n.push(Wa,me(u),ru,me(nr(s)),Ms)}return n.push(Ua),Cv(n,a,i),i}}var EK=V("</"),RK=V(">"),TK=V('<template id="'),xK=V('"></template>'),PK=V("<!--$-->"),OK=V('<!--$?--><template id="'),LK=V('"></template>'),IK=V("<!--$!-->"),DK=V("<!--/$-->"),AK=V("<template"),FK=V('"'),bK=V(' data-dgst="');V(' data-msg="');V(' data-stck="');var MK=V("></template>");function wb(n,t,e){if(K(n,OK),e===null)throw Error(ve(395));return K(n,e),rt(n,LK)}var NK=V('<div hidden id="'),GK=V('">'),kK=V("</div>"),HK=V('<svg aria-hidden="true" style="display:none" id="'),VK=V('">'),BK=V("</svg>"),WK=V('<math aria-hidden="true" style="display:none" id="'),UK=V('">'),jK=V("</math>"),zK=V('<table hidden id="'),qK=V('">'),$K=V("</table>"),KK=V('<table hidden><tbody id="'),YK=V('">'),XK=V("</tbody></table>"),QK=V('<table hidden><tr id="'),JK=V('">'),ZK=V("</tr></table>"),e4=V('<table hidden><colgroup id="'),t4=V('">'),r4=V("</colgroup></table>");function n4(n,t,e,r){switch(e.insertionMode){case 0:case 1:return K(n,NK),K(n,t.segmentPrefix),K(n,me(r.toString(16))),rt(n,GK);case 2:return K(n,HK),K(n,t.segmentPrefix),K(n,me(r.toString(16))),rt(n,VK);case 3:return K(n,WK),K(n,t.segmentPrefix),K(n,me(r.toString(16))),rt(n,UK);case 4:return K(n,zK),K(n,t.segmentPrefix),K(n,me(r.toString(16))),rt(n,qK);case 5:return K(n,KK),K(n,t.segmentPrefix),K(n,me(r.toString(16))),rt(n,YK);case 6:return K(n,QK),K(n,t.segmentPrefix),K(n,me(r.toString(16))),rt(n,JK);case 7:return K(n,e4),K(n,t.segmentPrefix),K(n,me(r.toString(16))),rt(n,t4);default:throw Error(ve(397))}}function o4(n,t){switch(t.insertionMode){case 0:case 1:return rt(n,kK);case 2:return rt(n,BK);case 3:return rt(n,jK);case 4:return rt(n,$K);case 5:return rt(n,XK);case 6:return rt(n,ZK);case 7:return rt(n,r4);default:throw Error(ve(397))}}var i4=V('function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("'),a4=V('$RS("'),s4=V('","'),l4=V('")<\/script>'),u4=V('function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}};$RC("'),c4=V('$RC("'),d4=V('","'),f4=V('")<\/script>'),p4=V('function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())};$RX("'),h4=V('$RX("'),g4=V('"'),v4=V(")<\/script>"),b_=V(","),m4=/[<\u2028\u2029]/g;function M_(n){return JSON.stringify(n).replace(m4,function(t){switch(t){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in s
`},{label:A("toolkit.quickPath.settings.separator.comma"),value:", "},{label:A("toolkit.quickPath.settings.separator.semicolon"),value:"; "}]})})]})};var RC=B(le()),WP=()=>(0,RC.jsx)("div",{className:"rht-toolkit-detail-settings",children:(0,RC.jsx)("h1",{children:"TableEnhancementsSettings"})});_i();var po=B(le()),UP=({app:n,plugin:t,moduleId:e,onNavigateBack:r})=>{let o=()=>{switch(e){case"quickPath":return(0,po.jsx)(BP,{plugin:t});case"tableEnhancements":return(0,po.jsx)(WP,{});case"folderTemplates":return(0,po.jsx)(VP,{plugin:t});default:return null}};return(0,po.jsxs)("div",{className:"rht-toolkit-detail",children:[(0,po.jsxs)("div",{className:"rht-toolkit-detail-header",children:[(0,po.jsxs)("span",{className:"rht-back-button",onClick:r,"aria-label":A("common.back"),children:[(0,po.jsx)(ic,{size:16}),A("common.back")]}),(0,po.jsx)("h2",{children:A(`toolkit.${e}.title`)})]}),(0,po.jsx)("div",{className:"rht-toolkit-detail-content",children:o()})]})};var zo=B(le()),jP=({title:n,icon:t,description:e,actions:r,className:o,children:i})=>(0,zo.jsxs)("div",{className:`rht-card ${o}`,children:[(0,zo.jsxs)("div",{className:"rht-card-header",children:[(0,zo.jsxs)("div",{className:"rht-card-title",children:[t&&(0,zo.jsx)(t,{size:20,className:"rht-card-icon"}),(0,zo.jsx)("h3",{className:"rht-card-title-text",children:n})]}),r&&(0,zo.jsx)("div",{className:"rht-card-actions",children:r})]}),e&&(0,zo.jsx)("p",{className:"rht-card-description",children:e}),i&&(0,zo.jsx)("div",{className:"rht-card-content",children:i})]});$s();var Ri=B(te()),zP=({plugin:n,onActivated:t})=>{let[e,r]=Ri.useState(0),[o,i]=Ri.useState(!1),a=Ri.useRef(),s=Boolean(n.settings.config.developer?.enableCount>0);Ri.useEffect(()=>()=>{n.settings.config.developer?.enabled&&n.updateSettings({config:{...n.settings.config,developer:{...n.settings.config.developer,enabled:!1}}})},[n]);let l=Ri.useCallback(()=>{if(s){n.updateSettings({config:{...n.settings.config,developer:{enabled:!0,lastEnabled:new Date().toISOString(),enableCount:n.settings.config.developer?.enabled?n.settings.config.developer?.enableCount||0:(n.settings.config.developer?.enableCount||0)+1}}}),t();return}r(u=>{let c=u+1;return a.current&&clearTimeout(a.current),a.current=setTimeout(()=>{r(0),i(!1)},1e3),c>=5&&i(!0),c>=7?(n.updateSettings({config:{...n.settings.config,developer:{enabled:!0,lastEnabled:No(),enableCount:(n.settings.config.developer?.enableCount||0)+1}}}),t(),0):c})},[n,t,s]);return{showHint:o&&!s,handleVersionClick:l}};di();_i();var pc={config:{version:"1.0.0",logger:em,developer:{enabled:!1,enableCount:0},menu:{useSubMenu:!0}},toolkit:{}},Cp={quickPath:{icon:lc,iconName:"link"},tableEnhancements:{icon:fc,iconName:"table"},folderTemplates:{icon:ca,iconName:"folder-cog"}};fn();var qo=B(te()),qP=({plugin:n,onNavigateToDetail:t})=>{let[e,r]=(0,qo.useState)([]),[o,i]=(0,qo.useState)(!0),[a,s]=(0,qo.useState)(null),l=(0,qo.useCallback)(()=>{try{let d=Object.entries(Cp).filter(([f])=>f!=="obReader").map(([f,p])=>{let h=f,v=n.getManager(h);return{id:h,icon:p.icon,enabled:v?.isEnabled()??!1,title:A(`toolkit.${h}.title`),description:A(`toolkit.${h}.description`),openSettings:()=>t(h)}}).sort((f,p)=>f.id.localeCompare(p.id));r(d),s(null)}catch(d){s(d instanceof Error?d:new Error("Failed to initialize toolkits"))}finally{i(!1)}},[n]);(0,qo.useEffect)(()=>{l()},[l]);let u=(0,qo.useCallback)(async(d,f)=>{try{let p=n.getManager(d);p&&(f?await p.enable():await p.disable(),r(h=>h.map(v=>v.id===d?{...v,enabled:f}:v)))}catch(p){s(p instanceof Error?p:new Error("Failed to update toolkit"))}},[n]),c=(0,qo.useCallback)(()=>{l()},[l]);return{toolkits:e,updateToolkit:u,loading:o,error:a,refreshToolkits:c}};fn();var qC=B(zC(),1),hs=B(zC(),1),VO=qC.default.default||qC.default;_i();var UO=B(te());_i();var BO=B(te());var Wn=B(le()),_c=({name:n,desc:t,icon:e,children:r,collapsible:o,defaultCollapsed:i})=>{let[a,s]=BO.useState(i);return(0,Wn.jsxs)("div",{className:`rht-overview-setting-item ${o?"is-collapsible":""}`,children:[(0,Wn.jsxs)("div",{className:"rht-overview-setting-item-info",children:[(0,Wn.jsxs)("
`,addEditorMenu:!0,addFileMenu:!0};var Fp=class extends ga{getDefaultConfig(){return XO}async onModuleLoad(){this.logger.info("Loading quick path manager"),this.basePath=this.app.vault.adapter.getBasePath()?.replace(/\\/g,"/")||"",this.registerCommands(),this.registerEventHandlers()}onModuleUnload(){this.logger.info("Unloading quick path manager")}onModuleCleanup(){}registerCommands(){this.addCommand({id:"copyPath",name:this.t("toolkit.quickPath.command.copy_filePath"),callback:()=>{let e=this.app.workspace.getActiveFile();if(e){let r=this.getPath(e);this.copyToClipboard(r)}}}),this.addCommand({id:"copyParentPath",name:this.t("toolkit.quickPath.command.copy_folderPath"),callback:()=>{let e=this.app.workspace.getActiveFile(),r=e&&this.getParentPath(e);r?this.copyToClipboard(r):this.logger.notice(this.t("toolkit.quickPath.status.no_parent_path"))}})}registerEventHandlers(){this.isEnabled()&&(this.config.addFileMenu&&(this.registerEvent(this.app.workspace.on("file-menu",this.handleFileMenu.bind(this))),this.registerEvent(this.app.workspace.on("files-menu",this.handleFilesMenu.bind(this)))),this.config.addEditorMenu&&this.registerEvent(this.app.workspace.on("editor-menu",this.handleEditorMenu.bind(this))))}handleFileMenu(e,r){this.isEnabled()&&this.config.addFileMenu&&(r instanceof QO.TFolder?this.addMenuItem(e,{title:this.t("toolkit.quickPath.file_menu.copy_folderPath"),icon:"folder-closed",callback:()=>{let o=this.getPath(r);this.copyToClipboard(o)}}):this.addMenuItem(e,{title:this.t("toolkit.quickPath.file_menu.copy_filePath"),icon:"file-text",callback:()=>{let o=this.getPath(r);this.copyToClipboard(o)}}))}handleFilesMenu(e,r){this.isEnabled()&&this.addMenuItem(e,{title:this.t("toolkit.quickPath.file_menu.copy_filesPath"),icon:"copy",callback:()=>{let o=r.map(i=>this.getPath(i)).join(this.config.pathSeparator||`
`);this.copyToClipboard(o)}})}handleEditorMenu(e,r){this.isEnabled()&&this.config.addEditorMenu&&this.addMenuItem(e,[{title:this.t("toolkit.quickPath.editor_menu.paste_filePath"),icon:"copy",order:1,callback:()=>{let o=this.app.workspace.getActiveFile();if(o){let i=this.getPath(o);this.copyToClipboard(i,!1),r.replaceSelection(i)}}},{title:this.t("toolkit.quickPath.editor_menu.paste_folderPath"),icon:"folder",order:2,callback:()=>{let o=this.app.workspace.getActiveFile(),i=o&&this.getParentPath(o);i?(this.copyToClipboard(i,!1),r.replaceSelection(i)):this.logger.notice(this.t("toolkit.quickPath.status.no_parent_path"))}}],{showSeparator:!0})}getParentPath(e){let r=this.config.useAbsolutePath?`${this.basePath}/${e.path}`:e.path,o=r.lastIndexOf("/");return o===-1?null:r.substring(0,o)}getPath(e){return this.config.useAbsolutePath?`${this.basePath}/${e.path}`:e.path}copyToClipboard(e,r=!0){navigator.clipboard.writeText(e).then(()=>{this.logger.debug("Copied to clipboard:",e),r&&this.logger.notice(this.t("toolkit.quickPath.status.copy_success"))}).catch(o=>{this.logger.error("Failed to copy to clipboard",o),r&&this.logger.notice(this.t("toolkit.quickPath.status.copy_failed"))})}onConfigChange(){this.unregisterEvents(),this.registerEventHandlers()}};Rc();$s();di();async function rL(n,t){try{await this.app.fileManager.processFrontMatter(n,e=>{t(e)})}catch(e){Qe.error(`Failed to update front matter for file ${n.path}: ${e.message}`)}}async function nL(n,t,e){try{await this.app.fileManager.processFrontMatter(n,r=>{if(t in r){let o=r[t];r[e]=o,delete r[t]}})}catch(r){Qe.error(`Failed to replace front matter key from ${t} to ${e} for file ${n.path}: ${r.message}`)}}var Jt=[];for(let n=0;n<256;++n)Jt.push((n+256).toString(16).slice(1));function oL(n,t=0){return(Jt[n[t+0]]+Jt[n[t+1]]+Jt[n[t+2]]+Jt[n[t+3]]+"-"+Jt[n[t+4]]+Jt[n[t+5]]+"-"+Jt[n[t+6]]+Jt[n[t+7]]+"-"+Jt[n[t+8]]+Jt[n[t+9]]+"-"+Jt[n[t+10]]+Jt[n[t+11]]+Jt[n[t+12]]+Jt[n[t+13]]+Jt[n[t+14]]+Jt[n[t+15]]).toLowerCase()}var $C,iH=new Uint8Array(16);function KC(){if(!$C){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");$C=crypto.getRandomValues.bind(crypto)}return $C(iH)}var aH=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),YC={randomUUID:aH};function sH(n,t,e){if(YC.randomUUID&&!t&&!n)return YC.randomUUID();n=n||{};let r=n.random??n.rng?.()??KC();if(r.length<16)throw new Error("Random bytes length must be >= 16");if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){if(e=e||0,e<0||e+16>t.length)throw new RangeError(`UUID byte range ${e}:${e+15} is out of buffer bounds`);for(let o=0;o<16;++o)t[e+o]=r[o];return t}return oL(r)}var XC=sH;var Tc=class{constructor(t={}){this.defaultOptions={prefix:"",length:8,charset:"0123456789abcdefghijklmnopqrstuvwxyz",separator:"-",timePrefix:!1,uppercase:!1};this.options={...this.defaultOptions,...t}}generateRandomString(t){if(t<=0)return"";let r=XC().replace(/-/g,"");if(this.options.charset===this.defaultOptions.charset)return r.slice(0,t);{let o="",i=this.options.charset,a=i.length;for(let s=0;s<t;s++){let l=parseInt(r.slice(s*2,s*2+2),16);o+=i[l%a]}return o}}generate(){let t="";return this.options.timePrefix&&(t+=Date.now().toString(36),this.options.prefix&&(t+=this.options.separator)),this.options.prefix&&(t+=this.options.prefix),(this.options.prefix||this.options.timePrefix)&&this.options.separator&&(t+=this.options.separator),t+=this.generateRandomString(this.options.length),this.options.uppercase?t.toUpperCase():t}updateOptions(t){this.options={...this.options,...t}}reset(){this.options={...this.defaultOptions}}},KQ=new Tc;var Ws=require("obsidian");var Mp=class{constructor(t,e){this.logger=t,this.config={preserveFormat:!1,parseInlineStyles:!0,parseCaption:!1,delimiter:"|",...e}}parseTables(t,e){try{let r=[],o=t.split(`
`),i={...this.config,...e};for(let a=0;a<o.length;a++)if(this.isTableHeader(o[a],i)&&this.isTableAlignment(o[a+1],i))try{let s={filePath:"",startLine:a,endLine:a},l=this.parseTable(o.slice(a).join(`
`),s);r.push(l),a=l.position.endLine}catch(s){this.logger.error("Parse table error:",s)}return r}catch(r){return this.logger.error("Parse tables error:",r),[]}}parseTable(t,e){let r=t.split(`
`),o=this.parseHeaders(r[0]),i=this.parseAlignments(r[1]),a=[],s=e.startLine+1,l="";for(let c=2;c<r.length;c++){let d=r[c].trim();if(d===""){s=e.startLine+c-1;break}if(d.startsWith("^")){l=d.substring(1),s=e.startLine+c;break}if(!this.isTableRow(d)){s=e.startLine+c-1;break}a.push(this.parseRow(d)),s=e.startLine+c}let u={headers:o.map((c,d)=>({field:`col${d+1}`,content:c,alignment:i[d]})),cells:a.map(c=>c.map((d,f)=>({content:d,alignment:i[f]}))),position:{...e,endLine:s},referenceId:l};return this.validateTable(u)||this.logger.throwError(new Error("Invalid table structure")),u}validateTable(t){try{if(!t.headers||!t.cells||t.headers.length===0)return!1;let e=t.headers.length;return t.cells.every(r=>r.length===e)}catch(e){return this.logger.error("Validate table error:",e),!1}}isTableHeader(t,e){if(!t)return!1;let r=e.delimiter||"|",o=t.trim();if(!o.startsWith(r)||!o.endsWith(r))return!1;let i=o.split(r).slice(1,-1).map(a=>a.trim());return i.length>0&&!i.every(a=>a==="")}isTableAlignment(t,e){if(!t)return!1;let r=e.delimiter||"|",o=t.trim();return!o.startsWith(r)||!o.endsWith(r)?!1:o.split(r).map(a=>a.trim()).filter(a=>a!=="").every(a=>/^:?-+:?$/.test(a))}isTableRow(t){let e=t.trim();return e.startsWith("|")&&e.endsWith("|")}parseHeaders(t){let e=this.config.delimiter||"|";return t.split(e).slice(1,-1).map(r=>r.trim())}parseAlignments(t){return t.split(this.config.delimiter||"|").map(e=>e.trim()).filter(e=>e!=="").map(e=>e.startsWith(":")&&e.endsWith(":")?"center":e.endsWith(":")?"right":"left")}parseRow(t){let e=this.config.delimiter||"|";return t.split(e).slice(1,-1).map(r=>r.trim())}};var Np=class{constructor(t,e){this.logger=t,this.config={preserveFormat:!1,parseInlineStyles:!0,parseCaption:!1,delimiter:"|",...e}}generateFromAgGrid(t,e,r,o){try{let a=e.getAllDisplayedColumns().map(c=>c.getColDef()),s=this.generateHeaders(a),l=[];t.forEachNode(c=>{c.data&&l.push(this.generateCells(c.data,a))});let u={headers:s,cells:l,position:r,referenceId:o};return this.validateTable(u)||this.logger.throwError(new Error("Invalid table structure")),u}catch(i){this.logger.throwError(new Error("Generate from AG Grid error"),i)}}generateTableText(t){try{let e=this.generateHeaderRow(t.headers),r=this.generateAlignmentRow(t.headers),o=t.cells.map(a=>this.generateDataRow(a)),i=[e,r,...o];return t.referenceId&&i.push(`^${t.referenceId}`),i.join(`
`)}catch(e){this.logger.throwError(new Error("Generate table text error"),e)}}generateHeaders(t){return t.map(e=>({field:e.field||"",content:(e.headerName||e.field||"").trim(),alignment:this.getColumnAlignment(e)}))}generateCells(t,e){return e.map(r=>({content:this.formatCellValue(t[r.field||""],r),alignment:this.getColumnAlignment(r)}))}generateHeaderRow(t){let e=this.config.delimiter||"|",r=t.map(o=>` ${o.content} `);return`${e}${r.join(e)}${e}`}generateAlignmentRow(t){let e=this.config.delimiter||"|",r=t.map(o=>{let a=o.content.length,s=Math.max(3,a);switch(o.alignment){case"center":return`:${"-".repeat(s-2)}:`;case"right":return`${"-".repeat(s-1)}:`;default:return`${"-".repeat(s)}`}});return`${e} ${r.join(` ${e} `)} ${e}`}generateDataRow(t){let e=this.config.delimiter||"|",r=t.map(o=>` ${o.content} `);return`${e}${r.join(e)}${e}`}getColumnAlignment(t){if(!t.type)return"left";let e=Array.isArray(t.type)?t.type[0]:t.type;if(!e)return"left";switch(e.toLowerCase()){case"numericcolumn":case"number":return"right";case"centeraligned":return"center";default:return"left"}}formatCellValue(t,e){return t==null?"":typeof t=="number"?t.toString():typeof t=="boolean"?t?"true":"false":t instanceof Date?t.toISOString():t.toString()}validateTable(t){try{if(!t.headers||!t.cells||t.headers.length===0)return!1;let e=t.headers.length;return t.cells.every(r=>r.length===e)}catch(e){return this.logger.error("Validate table error:",e),!1}}};$s();var lH=Math.pow(10,8)*24*60*60*1e3,JQ=-lH,Gp=6048e5,iL=864e5,kp=6e4,Hp=36e5,aL=1e3;var uH=3600;var sL=uH*24,ZQ=sL*7,cH=sL*365.2425,dH=cH/12,eJ=dH*3,QC=Symbol.for("constructDateFrom");function Oe(n,t){return typeof n=="function"?n(t):n&&typeof n=="object"&&QC in n?n[QC](t):n instanceof Date?new n.constructor(t):new Date(t)}function ie(n,t){return Oe(t||n,n)}function Vp(n,t,e){let r=ie(n,e?.in);return isNaN(t)?Oe(e?.in||n,NaN):(t&&r.setDate(r.getDate()+t),r)}var fH={};function jn(){return fH}function qr(n,t){let e=jn(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??e.weekStartsOn??e.locale?.options?.weekStartsOn??0,o=ie(n,t?.in),i=o.getDay(),a=(i<r?7:0)+i-r;return o.setDate(o.getDate()-a),o.setHours(0,0,0,0),o}function go(n,t){return qr(n,{...t,weekStartsOn:1})}function Bp(n,t){let e=ie(n,t?.in),r=e.getFullYear(),o=Oe(e,0);o.setFullYear(r+1,0,4),o.setHours(0,0,0,0);let i=go(o),a=Oe(e,0);a.setFullYear(r,0,4),a.setHours(0,0,0,0);let s=go(a);return e.getTime()>=i.getTime()?r+1:e.getTime()>=s.getTime()?r:r-1}function vs(n){let t=ie(n),e=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return e.setUTCFullYear(t.getFullYear()),+n-+e}function Il(n,...t){let e=Oe.bind(null,n||t.find(r=>typeof r=="object"));return t.map(e)}function JC(n,t){let e=ie(n,t?.in);return e.setHours(0,0,0,0),e}function Wp(n,t,e){let[r,o]=Il(e?.in,n,t),i=JC(r),a=JC(o),s=+i-vs(i),l=+a-vs(a);return Math.round((s-l)/iL)}function lL(n,t){let e=Bp(n,t),r=Oe(t?.in||n,0);return r.setFullYear(e,0,4),r.setHours(0,0,0,0),go(r)}function uL(n,t){let e=+ie(n)-+ie(t);return e<0?-1:e>0?1:e}function cL(n,t){let e=+ie(n)-+ie(t);return e>0?-1:e<0?1:e}function dL(n){return n instanceof Date||typeof n=="object"&&Object.prototype.toString.call(n)==="[object Date]"}function Dl(n){return!(!dL(n)&&typeof n!="number"||isNaN(+ie(n)))}function pL(n,t,e){let[r,o]=Il(e?.in,n,t),i=fL(r,o),a=Math.abs(Wp(r,o));r.setDate(r.getDate()-i*a);let s=Number(fL(r,o)===-i),l=i*(a-s);return l===0?0:l}function fL(n,t){let e=n.getFullYear()-t.getFullYear()||n.getMonth()-t.getMonth()||n.getDate()-t.getDate()||n.getHours()-t.getHours()||n.getMinutes()-t.getMinutes()||n.getSeconds()-t.getSeconds()||n.getMilliseconds()-t.getMilliseconds();return e<0?-1:e>0?1:e}function Up(n){return t=>{let r=(n?Math[n]:Math.trunc)(t);return r===0?0:r}}function hL(n,t,e){let[r,o]=Il(e?.in,n,t),i=(+r-+o)/Hp;return Up(e?.roundingMethod)(i)}function gL(n,t){return+ie(n)-+ie(t)}function vL(n,t,e){let r=gL(n,t)/kp;return Up(e?.roundingMethod)(r)}function mL(n,t){let e=ie(n,t?.in);return e.setFullYear(e.getFullYear(),0,1),e.setH
`),a=0;for(let s=0;s<e.length;s++){let l=e[s],u=this.tables[s];if(!u||!u.position){this.logger.error("Original table or position not found",{table:l,originalTable:u});continue}let c=u.position.startLine+a,d=u.position.endLine+a,f=!1;JSON.stringify(u.cells)!==JSON.stringify(l.cells)&&(f=!0,this.logger.debug("Table cells modified")),(this.savedCalculations.has(l.referenceId||"")||this.savedCalculations.has(u.referenceId||""))&&(f=!0,this.logger.debug("Table has calculations")),f&&!l.referenceId&&(l.referenceId=this.uuidGenerator.generate(),this.logger.debug("Generated new ID for table:",l.referenceId));let C=this.generator.generateTableText({...l,position:{...u.position,startLine:c,endLine:d}}).split(`
`);if(i.splice(c,d-c+1,...C),s<e.length-1){let m=c+C.length,y=m;for(;y<i.length&&i[y].trim()==="";)y++;y<i.length&&(i.splice(m,y-m),i.splice(m,0,""),a+=1-(y-m))}a+=C.length-(d-c+1)}await this.app.vault.modify(r.file,i.join(`
`)),await this.parseCurrentTables(),this.logger.debug("Tables saved successfully")}catch(r){this.logger.throwError(new Error("Save tables error"),r)}}async saveCalculatedTable(e){try{let r=this.uuidGenerator.generate(),o={...e,referenceId:r},i=this.tables.findIndex(s=>s.position&&e.position&&s.position.startLine===e.position.startLine&&s.position.endLine===e.position.endLine);i===-1&&this.logger.throwError(new Error("Original table not found"));let a=[...this.tables];return a[i]=o,await this.saveTables(a),r}catch(r){this.logger.throwError(new Error("Save calculated table error"),r)}}async executeAndSaveCalculation(e,r,o){try{if(e.referenceId||(e.referenceId=await this.saveCalculatedTable(e)),o!==void 0&&r.config?.output.type==="frontmatter"){let a=this.getSavedCalculations(e.referenceId)[o].config.output.value;a!==r.config.output.value&&await this.replaceFrontMatterProperty(a,r.config.output.value)}await this.executeCalculation(e,r),o!==void 0?await this.updateCalculation(e.referenceId,o,r):await this.addCalculation(e.referenceId,r)}catch(i){this.logger.throwError(new Error("Failed to execute and save calculation"),i)}}onConfigChange(){this.registerEventHandlers()}};var Xv=class extends aN.Plugin{constructor(){super(...arguments);this.registeredMenus={}}async onload(){try{this.pluginManager=new Ip(this),await this.pluginManager.initialize(),await this.registerToolkit(),this.addSettingTab(new Ec(this.app,this))}catch(e){Qe.error("Plugin load error",e),Qe.notice("Plugin load error: "+e.message)}}async onunload(){try{await this.pluginManager?.unload(),Qe.info("Plugin unloaded successfully")}catch(e){Qe.error("Plugin unload error:",e)}}async registerToolkit(){let e={tableEnhancements:Yv,quickPath:Fp,folderTemplates:Ap};await this.pluginManager.registerManagers(e)}async updateSettings(e){await this.pluginManager.updateSettings(e)}getManager(e){return this.pluginManager.getManager(e)}get settings(){return this.pluginManager.pluginSettings}};
/*! Bundled license information:
react/cjs/react.production.min.js:
(**
* @license React
* react.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
scheduler/cjs/scheduler.production.min.js:
(**
* @license React
* scheduler.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
react-dom/cjs/react-dom.production.min.js:
(**
* @license React
* react-dom.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
react/cjs/react-jsx-runtime.production.min.js:
(**
* @license React
* react-jsx-runtime.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
lucide-react/dist/esm/shared/src/utils.js:
(**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*)
lucide-react/dist/esm/defaultAttributes.js:
(**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*)
lucide-react/dist/esm/Icon.js:
(**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*)
lucide-react/dist/esm/createLucideIcon.js:
(**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*)
lucide-react/dist/esm/icons/arrow-left.js:
(**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*)
lucide-react/dist/esm/icons/arrow-right.js:
(**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*)
lucide-react/dist/esm/icons/chevron-down.js:
(**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*)
lucide-react/dist/esm/icons/chevron-right.js:
(**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*)
lucide-react/dist/esm/icons/circle-play.js:
(**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*)
lucide-react/dist/esm/icons/circle-x.js:
(**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*)
lucide-react/dist/esm/icons/equal.js:
(**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*)
lucide-react/dist/esm/icons/folder-cog.js:
(**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*)
lucide-react/dist/esm/icons/link.js:
(**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*)
lucide-react/dist/esm/icons/pencil-line.js:
(**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*)
lucide-react/dist/esm/icons/plus.js:
(**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*)
lucide-react/dist/esm/icons/settings.js:
(**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*)
lucide-react/dist/esm/icons/table.js:
(**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*)
lucide-react/dist/esm/icons/x.js:
(**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*)
lucide-react/dist/esm/lucide-react.js:
(**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*)
ag-grid-community/dist/ag-grid-community.cjs.js:
(**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue * @version v30.2.1
* @link https://www.ag-grid.com/
' * @license MIT
*)
(**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v30.2.1
* @link https://www.ag-grid.com/
* @license MIT
*)
react-dom/cjs/react-dom-server-legacy.browser.production.min.js:
(**
* @license React
* react-dom-server-legacy.browser.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
react-dom/cjs/react-dom-server.browser.production.min.js:
(**
* @license React
* react-dom-server.browser.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
*/