@crystaldesign/diva-web-planner-react 26.3.0-beta.1 → 26.3.0-beta.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/esm/{ArticleProperties-48f25dd7.js → ArticleProperties-6d50f848.js} +1 -1
- package/build/esm/{CatalogProperties-5c979bad.js → CatalogProperties-e54704ae.js} +1 -1
- package/build/esm/DecisionVizualizer-ed337e22.js +284 -0
- package/build/esm/{OptionProperties-557bc494.js → OptionProperties-8fd997cd.js} +1 -1
- package/build/esm/{OptionValueProperties-ca520443.js → OptionValueProperties-1c6b82dc.js} +1 -1
- package/build/esm/{Planner2DGrid-ef56ab4b.js → Planner2DGrid-d8b55970.js} +1 -1
- package/build/esm/{Planner3DImage-795541d0.js → Planner3DImage-4e854b74.js} +1 -1
- package/build/esm/{index-c48b6a03.js → index-002c35e1.js} +1 -1
- package/build/esm/{index-e76b0809.js → index-00665ddf.js} +2 -2
- package/build/esm/{index-d7ae4f91.js → index-012b11c7.js} +1 -1
- package/build/esm/{index-32a60d12.js → index-03e0f77b.js} +2 -2
- package/build/esm/{index-1483665b.js → index-048055dc.js} +1 -1
- package/build/esm/{index-3b59c14a.js → index-05728fda.js} +4 -4
- package/build/esm/{index-687d21e8.js → index-06f2f03f.js} +38 -25
- package/build/esm/{index-a9b1cceb.js → index-073335da.js} +5 -5
- package/build/esm/{index-8c298b33.js → index-0838f972.js} +1 -1
- package/build/esm/{index-816987c0.js → index-0894a853.js} +1 -1
- package/build/esm/{index-e1de2fba.js → index-08aa9543.js} +1 -1
- package/build/esm/{index-e285f80b.js → index-0b238e85.js} +11 -11
- package/build/esm/{index-92e6961f.js → index-0c8baf8c.js} +86 -87
- package/build/esm/{index-96ea2ba0.js → index-0f6ba228.js} +8 -8
- package/build/esm/{index-972aeebd.js → index-0fbe1b7a.js} +2 -2
- package/build/esm/{index-b4774961.js → index-115a7fc7.js} +29 -29
- package/build/esm/{index-5b1091f4.js → index-1195960a.js} +1 -1
- package/build/esm/{index-7597da43.js → index-122bd66a.js} +92 -93
- package/build/esm/{index-6c2d7712.js → index-137e6879.js} +1 -1
- package/build/esm/{index-ce4686e2.js → index-14dd75e3.js} +3 -3
- package/build/esm/{index-2bff13ae.js → index-14f9fad8.js} +69 -70
- package/build/esm/{index-bd9d9c5f.js → index-15f4124e.js} +8 -8
- package/build/esm/{index-a3d552e1.js → index-167c2e69.js} +1 -1
- package/build/esm/{index-18be7f2d.js → index-177537b7.js} +1 -1
- package/build/esm/{index-2c6e86d8.js → index-18828e39.js} +2 -2
- package/build/esm/{index-512b47a4.js → index-1951bf5f.js} +5 -5
- package/build/esm/{index-389e5b68.js → index-1abca421.js} +5 -5
- package/build/esm/{index-3e38c3b1.js → index-1afdc485.js} +2 -2
- package/build/esm/{index-48c42fdb.js → index-1c6a4e8d.js} +6 -6
- package/build/esm/{index-d65bd8ac.js → index-1c89baf0.js} +1 -1
- package/build/esm/{index-bdf60f9c.js → index-1d537279.js} +1 -1
- package/build/esm/{index-cfad720f.js → index-1dddd365.js} +1 -1
- package/build/esm/index-2200925a.js +74 -0
- package/build/esm/{index-8456ce68.js → index-22520679.js} +4 -4
- package/build/esm/{index-c6026e26.js → index-2458e06e.js} +1 -1
- package/build/esm/{index-5cf24b19.js → index-2688df42.js} +1 -1
- package/build/esm/{index-6ff7993c.js → index-270a5345.js} +1 -1
- package/build/esm/{index-a2198217.js → index-27adeb90.js} +1 -1
- package/build/esm/{index-c5695951.js → index-2c26a089.js} +1 -1
- package/build/esm/{index-cd2baa17.js → index-2cbe5c03.js} +3 -3
- package/build/esm/{index-b2bb5e53.js → index-2f745e6b.js} +1 -1
- package/build/esm/{index-162dae0e.js → index-32361b6e.js} +1 -1
- package/build/esm/{index-225da4de.js → index-3444df51.js} +1 -1
- package/build/esm/{index-d4383f39.js → index-3450928e.js} +5 -5
- package/build/esm/{index-b633be4d.js → index-35852041.js} +1 -1
- package/build/esm/{index-67fa822c.js → index-35c178a2.js} +93 -94
- package/build/esm/{index-25f42e1e.js → index-35edaaa3.js} +5 -5
- package/build/esm/{index-336f748b.js → index-3616f818.js} +1 -1
- package/build/esm/{index-00c6c0dc.js → index-3665ea3b.js} +1 -1
- package/build/esm/{index-29af54d0.js → index-36f2474a.js} +2 -2
- package/build/esm/index-37a780a6.js +292 -0
- package/build/esm/{index-b5d20631.js → index-3836267c.js} +5 -5
- package/build/esm/{index-cd3593e0.js → index-3a275ed0.js} +70 -71
- package/build/esm/{index-8e5e653e.js → index-3cf2c4ef.js} +6 -6
- package/build/esm/{index-0f4f8046.js → index-3d0e9789.js} +6 -6
- package/build/esm/{index-7f57af8c.js → index-3e20c22b.js} +20 -20
- package/build/esm/{index-999d8a16.js → index-3f80ebae.js} +2 -2
- package/build/esm/{index-d94dc7b8.js → index-3f8b4c08.js} +2 -2
- package/build/esm/{index-988730ce.js → index-3fe5c117.js} +1 -1
- package/build/esm/{index-e444100a.js → index-40b8e765.js} +2 -2
- package/build/esm/{index-9fbe72db.js → index-42248109.js} +20 -20
- package/build/esm/{index-5c07bcce.js → index-426ef41c.js} +2 -2
- package/build/esm/{index-af444b75.js → index-42a27edd.js} +3 -3
- package/build/esm/{index-fc5d0435.js → index-439bc652.js} +72 -73
- package/build/esm/{index-2ded9d4a.js → index-443af1ea.js} +1 -1
- package/build/esm/{index-955c0b31.js → index-45108019.js} +11 -11
- package/build/esm/{index-ed3f31cc.js → index-4520a84f.js} +6 -6
- package/build/esm/{index-f8343613.js → index-4532dce1.js} +1 -1
- package/build/esm/{index-f3f1da2c.js → index-45c4e06a.js} +18 -18
- package/build/esm/{index-732cbd10.js → index-4600e75f.js} +1 -1
- package/build/esm/{index-95af3b07.js → index-467a77c7.js} +1 -1
- package/build/esm/{index-7799ae72.js → index-468fcb08.js} +2 -2
- package/build/esm/{index-9c4631f3.js → index-4862bac4.js} +26 -26
- package/build/esm/{index-4882c52a.js → index-48ed6585.js} +2 -2
- package/build/esm/{index-6304d32b.js → index-49f41d0e.js} +8 -8
- package/build/esm/index-4ae7028c.js +619 -0
- package/build/esm/{index-4d6128d4.js → index-4b79c9f3.js} +7 -7
- package/build/esm/{index-4702bba1.js → index-4c1fb87e.js} +1 -1
- package/build/esm/{index-74586774.js → index-4c9b6676.js} +497 -358
- package/build/esm/{index-1c0a3b31.js → index-4cc26c8f.js} +5 -4
- package/build/esm/{index-b770eff7.js → index-4d42ceca.js} +2 -2
- package/build/esm/{index-306b5ddf.js → index-4e614ec3.js} +1 -1
- package/build/esm/{index-0e96a089.js → index-4e7f18c0.js} +1 -1
- package/build/esm/{index-43149bac.js → index-4fd79a07.js} +1 -1
- package/build/esm/{index-67b514a2.js → index-50cdd76c.js} +1 -1
- package/build/esm/{index-5392864e.js → index-50e380f3.js} +3 -3
- package/build/esm/{index-c0966164.js → index-53352ab5.js} +106 -107
- package/build/esm/{index-8e73e74d.js → index-53ec4c22.js} +4 -4
- package/build/esm/{index-bcca448f.js → index-542b41df.js} +10 -10
- package/build/esm/{index-e9fbc343.js → index-54bbca2f.js} +1 -1
- package/build/esm/{index-835356b4.js → index-54e77760.js} +1 -1
- package/build/esm/{index-b6bfa390.js → index-54f1e364.js} +2 -2
- package/build/esm/{index-2928e679.js → index-5524963f.js} +3 -3
- package/build/esm/{index-4da494ed.js → index-567e0649.js} +1 -1
- package/build/esm/{index-60fe4881.js → index-58f21d50.js} +7 -8
- package/build/esm/{index-ef5ee71c.js → index-5a3aa4e6.js} +2 -2
- package/build/esm/index-5fe6f5af.js +164 -0
- package/build/esm/{index-07ebb936.js → index-6012b261.js} +5 -5
- package/build/esm/{index-d5daa2fa.js → index-6184d0c8.js} +2 -2
- package/build/esm/{index-1ab5e749.js → index-623c8c7a.js} +1 -1
- package/build/esm/{index-4c71a0dc.js → index-67032cac.js} +1 -1
- package/build/esm/{index-e0dbe868.js → index-68c0db88.js} +3 -3
- package/build/esm/{index-683d19c6.js → index-6b50efd5.js} +67 -67
- package/build/esm/{index-790c6510.js → index-6c1216e4.js} +1 -1
- package/build/esm/{index-74874df7.js → index-6c6bda62.js} +1 -1
- package/build/esm/{index-219a18ca.js → index-6cc9c073.js} +2 -2
- package/build/esm/{index-02477b38.js → index-6d1505c0.js} +1 -1
- package/build/esm/{index-01be6fb2.js → index-6d61e859.js} +3 -3
- package/build/esm/{index-e76e879f.js → index-6d718ec6.js} +2 -2
- package/build/esm/{index-26ea80a4.js → index-6d972942.js} +1 -1
- package/build/esm/{index-dc5d569c.js → index-6f3c3ecf.js} +2 -2
- package/build/esm/{index-49486eb0.js → index-6fece545.js} +3 -3
- package/build/esm/{index-126bc852.js → index-7001c21b.js} +1 -1
- package/build/esm/{index-f3de50ce.js → index-71b9eada.js} +1 -1
- package/build/esm/{index-7c78aae2.js → index-7366d16f.js} +1 -1
- package/build/esm/{index-6b8fc182.js → index-7434b1ab.js} +1 -1
- package/build/esm/{index-9e4d73d2.js → index-75137a06.js} +3 -3
- package/build/esm/{index-809f8e27.js → index-75807f2d.js} +1 -1
- package/build/esm/index-7640dc09.js +363 -0
- package/build/esm/{index-8c29d9ac.js → index-7b32457c.js} +6 -6
- package/build/esm/{index-ad4e224e.js → index-7bd9a945.js} +7 -7
- package/build/esm/{index-83537629.js → index-7cf1bdc6.js} +5 -5
- package/build/esm/{index-c6d8db42.js → index-7d6f3e2e.js} +1 -1
- package/build/esm/{index-247538e6.js → index-7f8c7275.js} +1 -1
- package/build/esm/{index-dffa914a.js → index-7ffcab2e.js} +2 -2
- package/build/esm/{index-4a16484d.js → index-808ac502.js} +3 -3
- package/build/esm/{index-3ea03f57.js → index-81f2a6c7.js} +1 -1
- package/build/esm/{index-3546f958.js → index-832c1750.js} +1 -1
- package/build/esm/{index-8ff15f88.js → index-842ff806.js} +1 -1
- package/build/esm/{index-63a4ebb5.js → index-848453a2.js} +7 -7
- package/build/esm/{index-066c0070.js → index-84921bc7.js} +3 -3
- package/build/esm/index-84c24a81.js +192 -0
- package/build/esm/{index-45975bb0.js → index-85a4c80e.js} +1 -1
- package/build/esm/{index-6a3f6306.js → index-862fe09e.js} +1 -1
- package/build/esm/{index-521116a3.js → index-867526a8.js} +20 -20
- package/build/esm/{index-c5beebb7.js → index-8a1756eb.js} +110 -138
- package/build/esm/{index-7ba68a2b.js → index-8aa356a8.js} +7 -7
- package/build/esm/{index-8feebad0.js → index-8bf4a03e.js} +1 -1
- package/build/esm/{index-3c9b8a98.js → index-8c7231a7.js} +1 -1
- package/build/esm/{index-7b0df818.js → index-8d448238.js} +1 -1
- package/build/esm/{index-297b567a.js → index-8d59217f.js} +4 -4
- package/build/esm/{index-496e3304.js → index-90ee94bd.js} +2 -2
- package/build/esm/{index-4d22db90.js → index-91142ba3.js} +1 -1
- package/build/esm/{index-6aede271.js → index-9157e0cb.js} +79 -80
- package/build/esm/{index-6a57d527.js → index-9189467a.js} +1 -1
- package/build/esm/{index-59ce6d10.js → index-9369d832.js} +7 -7
- package/build/esm/{index-c315fd0c.js → index-94e1cca7.js} +2 -2
- package/build/esm/{index-a7ccd8f2.js → index-95736e51.js} +1 -1
- package/build/esm/{index-8e147fb2.js → index-957d1264.js} +2 -2
- package/build/esm/{index-df81f7e0.js → index-96778074.js} +1 -1
- package/build/esm/{index-7e4d1647.js → index-97945651.js} +134 -141
- package/build/esm/{index-c6ab8988.js → index-99b7d832.js} +1 -1
- package/build/esm/{index-5a0f152c.js → index-9f500ad9.js} +2 -2
- package/build/esm/{index-42bf82a1.js → index-a2471909.js} +3 -3
- package/build/esm/{index-29e9375e.js → index-a254df71.js} +3 -3
- package/build/esm/{index-9487e7b8.js → index-a286b511.js} +8 -8
- package/build/esm/{index-e8c21f85.js → index-a423f0a3.js} +1 -1
- package/build/esm/index-a4a5ceec.js +313 -0
- package/build/esm/{index-cd41a23b.js → index-a52b14b0.js} +1 -1
- package/build/esm/{index-fcf2dad5.js → index-a62fe2a3.js} +5 -5
- package/build/esm/{index-38ad30ac.js → index-a754d4c7.js} +15 -15
- package/build/esm/{index-02a39990.js → index-a7ef8800.js} +1 -1
- package/build/esm/{index-782feeee.js → index-a97d75ea.js} +6 -6
- package/build/esm/{index-3fbbb7d9.js → index-a9d9454e.js} +1 -1
- package/build/esm/{index-a7124cec.js → index-aa61dd0a.js} +1 -1
- package/build/esm/{index-eddd34ec.js → index-abf9ed7d.js} +78 -76
- package/build/esm/{index-5d936d40.js → index-ad24f18d.js} +73 -74
- package/build/esm/{index-ad05f5e0.js → index-ad4b040d.js} +68 -68
- package/build/esm/{index-fe640ced.js → index-af139946.js} +1 -1
- package/build/esm/{index-474b3538.js → index-af577a96.js} +1 -1
- package/build/esm/index-af8aa7b6.js +175 -0
- package/build/esm/{index-2370714d.js → index-b0ed62de.js} +2 -2
- package/build/esm/{index-33379ff3.js → index-b13496fe.js} +1 -1
- package/build/esm/{index-441d986a.js → index-b38d4808.js} +5 -5
- package/build/esm/{index-35fe09ad.js → index-b402e934.js} +1 -1
- package/build/esm/{index-f9d691b3.js → index-b47a09d4.js} +19 -19
- package/build/esm/{index-25519ba2.js → index-b5060b49.js} +2 -2
- package/build/esm/{index-a0d7d644.js → index-b54c6413.js} +8 -8
- package/build/esm/{index-7105eb50.js → index-b9f2d37d.js} +1 -1
- package/build/esm/{index-f1e27f9a.js → index-ba47fb46.js} +2 -2
- package/build/esm/{index-2cd17934.js → index-ba72ca09.js} +75 -76
- package/build/esm/{index-e4939d5f.js → index-ba7fc059.js} +1 -1
- package/build/esm/{index-b3c959d2.js → index-bac7e004.js} +2 -2
- package/build/esm/{index-7de87e0f.js → index-bb425d22.js} +1 -1
- package/build/esm/{index-fea80a52.js → index-be0f6ec3.js} +5 -5
- package/build/esm/{index-37cc1c62.js → index-bf8b025c.js} +2 -2
- package/build/esm/{index-a5e33da2.js → index-c09f40c0.js} +2 -2
- package/build/esm/{index-dfab88a3.js → index-c10676d5.js} +4 -4
- package/build/esm/{index-845eb460.js → index-c2ae1c63.js} +90 -91
- package/build/esm/{index-4976cb21.js → index-c38fcc2c.js} +6 -6
- package/build/esm/{index-08dcb0a4.js → index-c40e747a.js} +2 -2
- package/build/esm/{index-2e00d43f.js → index-c4b47014.js} +1 -1
- package/build/esm/{index-6fd214c8.js → index-c4da10cb.js} +1 -1
- package/build/esm/{index-244cc5ee.js → index-c648f3f0.js} +1 -1
- package/build/esm/{index-e647ae26.js → index-c68a30b1.js} +3 -3
- package/build/esm/{index-137fc097.js → index-c7ad09c7.js} +1 -1
- package/build/esm/index-c810e741.js +543 -0
- package/build/esm/{index-d2c5a242.js → index-c8605ce4.js} +1 -1
- package/build/esm/{index-3887ddba.js → index-c8cf0cba.js} +1 -1
- package/build/esm/{index-67a73107.js → index-c8e0859e.js} +3 -3
- package/build/esm/{index-fc8a8a4f.js → index-c96c12f4.js} +105 -106
- package/build/esm/{index-e28c99b1.js → index-c9705602.js} +7 -7
- package/build/esm/{index-0de97b8d.js → index-c9ba8b07.js} +5 -5
- package/build/esm/{index-eb21dbeb.js → index-cbe80540.js} +1 -1
- package/build/esm/{index-cedd70b1.js → index-cc611c80.js} +2 -2
- package/build/esm/{index-0aa3d347.js → index-cd9dd0b5.js} +6 -6
- package/build/esm/{index-078ff3fc.js → index-ce87ecd9.js} +1 -1
- package/build/esm/index-d124d821.js +61 -0
- package/build/esm/{index-243649d9.js → index-d3307ca7.js} +23 -23
- package/build/esm/index-d349dbf5.js +67 -0
- package/build/esm/{index-83cdb557.js → index-d3dd1caf.js} +92 -93
- package/build/esm/{index-e5924805.js → index-d526c696.js} +1 -1
- package/build/esm/{index-f87faef7.js → index-d590738a.js} +1 -1
- package/build/esm/{index-0a80f55a.js → index-d5a52833.js} +1 -1
- package/build/esm/{index-a0886c9a.js → index-d7e1053c.js} +5 -5
- package/build/esm/{index-f2256647.js → index-d8031048.js} +3 -3
- package/build/esm/{index-71557fb9.js → index-d8a3f24f.js} +70 -70
- package/build/esm/{index-d5738223.js → index-d9609a6f.js} +3 -3
- package/build/esm/{index-89d5c7e0.js → index-d96dcad8.js} +1 -1
- package/build/esm/{index-2e9da43b.js → index-d9f24c87.js} +10 -10
- package/build/esm/{index-01cc1424.js → index-da223109.js} +2 -2
- package/build/esm/{index-a7a050c3.js → index-daa02e15.js} +1 -1
- package/build/esm/{index-f5cfabc4.js → index-dbcd6d54.js} +2 -2
- package/build/esm/{index-bc0e6495.js → index-dee6f302.js} +3 -3
- package/build/esm/{index-3291875b.js → index-dfc7bb96.js} +1 -1
- package/build/esm/{index-84fc3b15.js → index-dffd28f5.js} +1 -1
- package/build/esm/{index-97e972c6.js → index-e01d87a6.js} +75 -76
- package/build/esm/{index-21865189.js → index-e1bbe812.js} +26 -26
- package/build/esm/{index-f042327f.js → index-e1eb8699.js} +1 -1
- package/build/esm/{index-5125e16d.js → index-e3a38419.js} +1 -1
- package/build/esm/{index-0c82bb51.js → index-e5f0d381.js} +1 -1
- package/build/esm/{index-c6e7d393.js → index-e6a9fcec.js} +2 -2
- package/build/esm/{index-684c1fee.js → index-e74b07f1.js} +1 -1
- package/build/esm/{index-60481ffe.js → index-e757a7c5.js} +2 -2
- package/build/esm/{index-7d6d9208.js → index-e7cdc2ce.js} +1 -1
- package/build/esm/{index-e3be6263.js → index-e8f05e35.js} +72 -73
- package/build/esm/{index-b8a69c30.js → index-e9af1856.js} +2 -2
- package/build/esm/{index-63466573.js → index-ea5fafd8.js} +71 -72
- package/build/esm/{index-35480570.js → index-eaffd6ae.js} +1 -1
- package/build/esm/{index-58ce839e.js → index-eb2deb75.js} +1 -1
- package/build/esm/{index-eeebfb35.js → index-eb59489d.js} +1 -1
- package/build/esm/{index-f74d0dff.js → index-ebcb42d8.js} +1 -1
- package/build/esm/{index-ab93102d.js → index-ed55da91.js} +2 -2
- package/build/esm/{index-1e82c2dd.js → index-f00f0f3f.js} +2 -2
- package/build/esm/index-f0cc90a7.js +94 -0
- package/build/esm/{index-f1de68f3.js → index-f1addd75.js} +1 -1
- package/build/esm/{index-b6bfb670.js → index-f48e0223.js} +1 -1
- package/build/esm/{index-7021ddce.js → index-f4dcd88a.js} +2 -2
- package/build/esm/{index-23a2591f.js → index-f614f3f3.js} +67 -67
- package/build/esm/{index-394beb5b.js → index-f64d345a.js} +1 -1
- package/build/esm/{index-c56c8e81.js → index-f6d0b5ee.js} +1 -1
- package/build/esm/{index-860ff0d7.js → index-f8669755.js} +2 -2
- package/build/esm/{index-6f68aaeb.js → index-f87c66c4.js} +2 -2
- package/build/esm/{index-f0bd5022.js → index-fc369dd9.js} +3 -3
- package/build/esm/{index-8a098a67.js → index-feb3245f.js} +2 -2
- package/build/esm/{index-68662cb3.js → index-fed1b058.js} +17 -17
- package/build/esm/{index-53a96a01.js → index-ff87f095.js} +5 -5
- package/build/esm/index.js +1 -1
- package/build/esm/{index.module-487798b4.js → index.module-2093a41d.js} +1 -1
- package/build/esm/{index.module-71d6c012.js → index.module-2eea7ec6.js} +1 -1
- package/build/esm/{index.module-ced96e5c.js → index.module-42ad8abc.js} +1 -1
- package/build/esm/{index.module-b4fbe081.js → index.module-4916636d.js} +1 -1
- package/build/esm/{index.module-243cb4c5.js → index.module-517477f8.js} +1 -1
- package/build/esm/{index.module-18ad9889.js → index.module-728e5fe3.js} +1 -1
- package/build/esm/{index.module-297fdc67.js → index.module-7d48bd47.js} +1 -1
- package/build/esm/{index.module-479db5cd.js → index.module-81ca083b.js} +2 -2
- package/build/esm/{index.module-69107725.js → index.module-9cb57b58.js} +1 -1
- package/build/esm/{index.module-c89cd70b.js → index.module-ea18a28c.js} +1 -1
- package/build/esm/{index.module-2de51454.js → index.module-f4eb32d8.js} +1 -1
- package/build/esm/{index.module-4ad3e960.js → index.module-fd30a8cd.js} +1 -1
- package/build/esm/{index.module-b43b8d52.js → index.module-ff7952ee.js} +2 -2
- package/build/esm/{react-json-viewer-5407e783.js → react-json-viewer-a6420aa4.js} +1 -1
- package/build/esm/{useCustomDimensions-6b7417e6.js → useCustomDimensions-4c4561e5.js} +1 -1
- package/build/esm/{ussIsSticky-ff311f1e.js → ussIsSticky-e7451430.js} +1 -1
- package/build/types/web-planner-react/src/components/Action/Navigation/wysiwyg/index.d.ts +13 -0
- package/build/types/web-planner-react/src/components/Action/Navigation/wysiwyg/index.d.ts.map +1 -0
- package/build/types/web-planner-react/src/components/Layout/wysiwyg/Toolbar/FloatingWindow/index.d.ts +11 -0
- package/build/types/web-planner-react/src/components/Layout/wysiwyg/Toolbar/FloatingWindow/index.d.ts.map +1 -0
- package/build/types/web-planner-react/src/components/Layout/wysiwyg/Toolbar/ToolContainer/index.d.ts +2 -2
- package/build/types/web-planner-react/src/components/Layout/wysiwyg/Toolbar/ToolContainer/index.d.ts.map +1 -1
- package/build/types/web-planner-react/src/components/Layout/wysiwyg/Toolbar/index.d.ts +2 -2
- package/build/types/web-planner-react/src/components/Layout/wysiwyg/Toolbar/index.d.ts.map +1 -1
- package/build/types/web-planner-react/src/components/Layout/wysiwyg/Toolbar/types.d.ts +8 -0
- package/build/types/web-planner-react/src/components/Layout/wysiwyg/Toolbar/types.d.ts.map +1 -0
- package/build/types/web-planner-react/src/components/Product/Product/catalog/Components/ArticleSelector/index.d.ts +6 -2
- package/build/types/web-planner-react/src/components/Product/Product/catalog/Components/ArticleSelector/index.d.ts.map +1 -1
- package/build/types/web-planner-react/src/components/Product/Product/catalog/Components/DecisionAnalyzer/DecisionVizualizer.d.ts.map +1 -1
- package/build/types/web-planner-react/src/components/Product/Product/catalog/Components/DecisionAnalyzer/index.d.ts.map +1 -1
- package/build/types/web-planner-react/src/components/Product/Product/catalog/Components/ErrorAndWarningOverview/index.d.ts +8 -0
- package/build/types/web-planner-react/src/components/Product/Product/catalog/Components/ErrorAndWarningOverview/index.d.ts.map +1 -0
- package/build/types/web-planner-react/src/components/Product/Product/catalog/Components/OptionTreeTable/index.d.ts +8 -0
- package/build/types/web-planner-react/src/components/Product/Product/catalog/Components/OptionTreeTable/index.d.ts.map +1 -0
- package/build/types/web-planner-react/src/components/Product/Product/catalog/Components/PartlistDebug/index.d.ts.map +1 -0
- package/build/types/web-planner-react/src/components/Product/Product/catalog/Components/PriceAnalyzer/index.d.ts +0 -1
- package/build/types/web-planner-react/src/components/Product/Product/catalog/Components/PriceAnalyzer/index.d.ts.map +1 -1
- package/build/types/web-planner-react/src/components/Product/Product/catalog/index.d.ts +1 -1
- package/build/types/web-planner-react/src/components/Product/Product/catalog/index.d.ts.map +1 -1
- package/build/types/web-planner-react/src/components/Settings/SettingsScroller/SettingsItem/ItemPalette/InspectModeTables/index.d.ts +10 -0
- package/build/types/web-planner-react/src/components/Settings/SettingsScroller/SettingsItem/ItemPalette/InspectModeTables/index.d.ts.map +1 -0
- package/build/types/web-planner-react/src/components/Settings/SettingsScroller/SettingsItem/index.d.ts.map +1 -1
- package/build/types/web-planner-react/src/components/Settings/SettingsScroller/SettingsItemsWrapper/SettingsItemsGroup/index.d.ts +1 -1
- package/build/types/web-planner-react/src/components/Settings/SettingsScroller/SettingsItemsWrapper/SettingsItemsGroup/index.d.ts.map +1 -1
- package/build/types/web-planner-react/src/components/Settings/SettingsScroller/index.d.ts.map +1 -1
- package/build/types/web-planner-react/src/components/TabGroup/TabGroupHorizontal/index.d.ts.map +1 -1
- package/build/types/web-planner-react/src/components/TabGroup/TabGroupHorizontal/item/wysiwyg/index.d.ts +7 -0
- package/build/types/web-planner-react/src/components/TabGroup/TabGroupHorizontal/item/wysiwyg/index.d.ts.map +1 -0
- package/build/types/web-planner-react/src/index.d.ts +1 -0
- package/build/types/web-planner-react/src/index.d.ts.map +1 -1
- package/build/types/web-planner-react/src/model/DivaViewHandler.d.ts +2 -0
- package/build/types/web-planner-react/src/model/DivaViewHandler.d.ts.map +1 -1
- package/build/types/web-planner-react/src/model/States/UIState/Product/index.d.ts +5 -3
- package/build/types/web-planner-react/src/model/States/UIState/Product/index.d.ts.map +1 -1
- package/build/types/web-planner-react/src/model/States/UIState/WysiwygDebug/index.d.ts +19 -0
- package/build/types/web-planner-react/src/model/States/UIState/WysiwygDebug/index.d.ts.map +1 -0
- package/build/types/web-planner-react/src/model/States/UIState/index.d.ts +1 -0
- package/build/types/web-planner-react/src/model/States/UIState/index.d.ts.map +1 -1
- package/build/types/web-planner-react/src/model/TabGroup/ConfiguratorStructureHandler.d.ts.map +1 -1
- package/build/umd/101.diva-web-planner-react.umd.min.js +2 -0
- package/build/umd/101.diva-web-planner-react.umd.min.js.LICENSE.txt +3 -0
- package/build/umd/102.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/1026.diva-web-planner-react.umd.min.js +2 -0
- package/build/umd/1026.diva-web-planner-react.umd.min.js.LICENSE.txt +1 -0
- package/build/umd/1036.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/1051.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/1063.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/1084.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/1087.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/1090.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/1222.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/1280.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/1325.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/1341.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/1355.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/1389.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/1401.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/1424.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/1442.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/1451.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/1500.diva-web-planner-react.umd.min.js +2 -0
- package/build/umd/1500.diva-web-planner-react.umd.min.js.LICENSE.txt +1 -0
- package/build/umd/152.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/1532.diva-web-planner-react.umd.min.js +2 -0
- package/build/umd/1532.diva-web-planner-react.umd.min.js.LICENSE.txt +1 -0
- package/build/umd/1596.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/1666.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/1691.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/173.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/1849.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/1862.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/1912.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/1932.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/1954.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/197.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/2018.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/2027.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/2037.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/2072.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/2077.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/2147.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/2164.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/225.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/2258.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/2276.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/2300.diva-web-planner-react.umd.min.js +2 -0
- package/build/umd/2300.diva-web-planner-react.umd.min.js.LICENSE.txt +7 -0
- package/build/umd/2334.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/241.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/2458.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/2508.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/2515.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/2576.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/2654.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/2762.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/283.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/2903.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/2958.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/2963.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/304.diva-web-planner-react.umd.min.js +2 -0
- package/build/umd/304.diva-web-planner-react.umd.min.js.LICENSE.txt +1 -0
- package/build/umd/3090.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/3222.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/324.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/3337.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/3401.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/3439.diva-web-planner-react.umd.min.js +2 -0
- package/build/umd/3439.diva-web-planner-react.umd.min.js.LICENSE.txt +1 -0
- package/build/umd/3443.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/3448.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/3492.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/3516.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/357.diva-web-planner-react.umd.min.js +2 -0
- package/build/umd/357.diva-web-planner-react.umd.min.js.LICENSE.txt +1 -0
- package/build/umd/3628.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/3655.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/3695.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/3704.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/3743.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/375.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/379.diva-web-planner-react.umd.min.js +2 -0
- package/build/umd/379.diva-web-planner-react.umd.min.js.LICENSE.txt +11 -0
- package/build/umd/3812.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/3836.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/3907.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/393.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/3999.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/4033.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/4039.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/4209.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/4295.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/4301.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/4342.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/4391.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/4551.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/4580.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/4585.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/4846.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/4864.diva-web-planner-react.umd.min.js +2 -0
- package/build/umd/4864.diva-web-planner-react.umd.min.js.LICENSE.txt +1 -0
- package/build/umd/4882.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/4903.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/4906.diva-web-planner-react.umd.min.js +2 -0
- package/build/umd/4906.diva-web-planner-react.umd.min.js.LICENSE.txt +1 -0
- package/build/umd/4946.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/4955.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/5047.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/5071.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/509.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/5111.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/5115.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/5234.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/5249.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/5301.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/5406.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/5414.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/5629.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/5631.diva-web-planner-react.umd.min.js +2 -0
- package/build/umd/5631.diva-web-planner-react.umd.min.js.LICENSE.txt +1 -0
- package/build/umd/5713.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/5740.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/5768.diva-web-planner-react.umd.min.js +2 -0
- package/build/umd/5768.diva-web-planner-react.umd.min.js.LICENSE.txt +1 -0
- package/build/umd/5769.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/5785.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/58.diva-web-planner-react.umd.min.js +2 -0
- package/build/umd/58.diva-web-planner-react.umd.min.js.LICENSE.txt +1 -0
- package/build/umd/5861.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/5896.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/5979.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/6014.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/610.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/6135.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/6210.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/6253.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/6281.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/6335.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/6340.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/6343.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/6500.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/651.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/6552.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/6557.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/6567.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/6587.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/6599.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/6659.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/6669.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/6748.diva-web-planner-react.umd.min.js +2 -0
- package/build/umd/6748.diva-web-planner-react.umd.min.js.LICENSE.txt +1 -0
- package/build/umd/6800.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/685.diva-web-planner-react.umd.min.js +2 -0
- package/build/umd/685.diva-web-planner-react.umd.min.js.LICENSE.txt +1 -0
- package/build/umd/6871.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/6882.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/6927.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/6937.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/6942.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/6944.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/6952.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/6964.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/6992.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/7000.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/703.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/704.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/7052.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/710.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/7118.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/7139.diva-web-planner-react.umd.min.js +2 -0
- package/build/umd/7139.diva-web-planner-react.umd.min.js.LICENSE.txt +1 -0
- package/build/umd/7173.diva-web-planner-react.umd.min.js +2 -0
- package/build/umd/7173.diva-web-planner-react.umd.min.js.LICENSE.txt +1 -0
- package/build/umd/7318.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/7391.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/7419.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/7442.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/7455.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/7507.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/7519.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/7522.diva-web-planner-react.umd.min.js +2 -0
- package/build/umd/7522.diva-web-planner-react.umd.min.js.LICENSE.txt +1 -0
- package/build/umd/7541.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/7577.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/7678.diva-web-planner-react.umd.min.js +2 -0
- package/build/umd/7678.diva-web-planner-react.umd.min.js.LICENSE.txt +1 -0
- package/build/umd/7745.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/7749.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/7762.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/7771.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/7853.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/7867.diva-web-planner-react.umd.min.js +2 -0
- package/build/umd/7867.diva-web-planner-react.umd.min.js.LICENSE.txt +1 -0
- package/build/umd/7871.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/7970.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/7979.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/8063.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/8072.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/8101.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/8133.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/8151.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/8188.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/8265.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/8291.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/830.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/8317.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/8345.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/8401.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/8488.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/8508.diva-web-planner-react.umd.min.js +2 -0
- package/build/umd/8508.diva-web-planner-react.umd.min.js.LICENSE.txt +1 -0
- package/build/umd/8509.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/8515.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/852.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/8535.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/8539.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/8544.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/858.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/8584.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/859.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/8648.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/8657.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/8717.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/8742.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/8850.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/8881.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/8887.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/8906.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/8938.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/8942.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/8948.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/896.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/8976.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/902.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/9106.diva-web-planner-react.umd.min.js +2 -0
- package/build/umd/9106.diva-web-planner-react.umd.min.js.LICENSE.txt +1 -0
- package/build/umd/9154.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/9165.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/9195.diva-web-planner-react.umd.min.js +2 -0
- package/build/umd/9195.diva-web-planner-react.umd.min.js.LICENSE.txt +1 -0
- package/build/umd/921.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/9211.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/9290.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/9291.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/9298.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/9325.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/9342.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/9429.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/9501.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/9587.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/9607.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/9631.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/9662.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/9694.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/9704.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/9706.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/9715.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/9783.diva-web-planner-react.umd.min.js +2 -0
- package/build/umd/9783.diva-web-planner-react.umd.min.js.LICENSE.txt +1 -0
- package/build/umd/9788.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/9874.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/9967.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/9990.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/report.html +1 -1
- package/package.json +18 -8
- package/build/esm/DecisionVizualizer-e1ecdcb0.js +0 -279
- package/build/esm/index-1478a3f9.js +0 -179
- package/build/esm/index-6c87e0d6.js +0 -206
- package/build/esm/index-6d79a4a9.js +0 -105
- package/build/esm/index-752e5db5.js +0 -132
- package/build/esm/index-7f4d692a.js +0 -57
- package/build/esm/index-b7fe6257.js +0 -195
- package/build/types/web-planner-react/src/components/Product/Product/catalog/Components/MaskEditor/index.d.ts.map +0 -1
- package/build/umd/1645.diva-web-planner-react.umd.min.js +0 -2
- package/build/umd/1645.diva-web-planner-react.umd.min.js.LICENSE.txt +0 -1
- package/build/umd/2210.diva-web-planner-react.umd.min.js +0 -2
- package/build/umd/2210.diva-web-planner-react.umd.min.js.LICENSE.txt +0 -1
- package/build/umd/2602.diva-web-planner-react.umd.min.js +0 -2
- package/build/umd/2602.diva-web-planner-react.umd.min.js.LICENSE.txt +0 -1
- package/build/umd/325.diva-web-planner-react.umd.min.js +0 -2
- package/build/umd/325.diva-web-planner-react.umd.min.js.LICENSE.txt +0 -1
- package/build/umd/3460.diva-web-planner-react.umd.min.js +0 -2
- package/build/umd/3460.diva-web-planner-react.umd.min.js.LICENSE.txt +0 -1
- package/build/umd/3756.diva-web-planner-react.umd.min.js +0 -2
- package/build/umd/3756.diva-web-planner-react.umd.min.js.LICENSE.txt +0 -1
- package/build/umd/4074.diva-web-planner-react.umd.min.js +0 -2
- package/build/umd/4074.diva-web-planner-react.umd.min.js.LICENSE.txt +0 -1
- package/build/umd/6547.diva-web-planner-react.umd.min.js +0 -2
- package/build/umd/6547.diva-web-planner-react.umd.min.js.LICENSE.txt +0 -1
- package/build/umd/6916.diva-web-planner-react.umd.min.js +0 -2
- package/build/umd/6916.diva-web-planner-react.umd.min.js.LICENSE.txt +0 -1
- package/build/umd/7415.diva-web-planner-react.umd.min.js +0 -2
- package/build/umd/7415.diva-web-planner-react.umd.min.js.LICENSE.txt +0 -1
- package/build/umd/7446.diva-web-planner-react.umd.min.js +0 -2
- package/build/umd/7446.diva-web-planner-react.umd.min.js.LICENSE.txt +0 -1
- package/build/umd/9689.diva-web-planner-react.umd.min.js +0 -2
- package/build/umd/9689.diva-web-planner-react.umd.min.js.LICENSE.txt +0 -1
- /package/build/types/web-planner-react/src/components/Product/Product/catalog/Components/{MaskEditor → PartlistDebug}/index.d.ts +0 -0
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see 8508.diva-web-planner-react.umd.min.js.LICENSE.txt */
|
|
2
|
+
"use strict";(self.webpackChunkCrystaldesignDivaWebPlannerReact=self.webpackChunkCrystaldesignDivaWebPlannerReact||[]).push([[8508],{12793:(e,t,o)=>{o.d(t,{$4t:()=>_getGridRegisteredModules,$Yu:()=>_getRowSpanContainerClass,AS9:()=>I,DMj:()=>_getGridOption,F5b:()=>_warn,F97:()=>_combineAttributesAndGridOptions,FN9:()=>_setAriaColCount,FZV:()=>_getLocaleTextFunc,HB1:()=>_getActiveDomElement,HGE:()=>$,Jct:()=>ys,KxL:()=>_removeAriaSort,Nk3:()=>kn,O3h:()=>ye,OpL:()=>_observeResize,OtO:()=>_setAriaRowCount,RiB:()=>Zt,TjA:()=>_getRowContainerOptions,TsN:()=>po,UgJ:()=>_processOnChange,Z_J:()=>_toString,_P_:()=>so,b4l:()=>_getRowContainerClass,ea9:()=>Za,fRQ:()=>K,gA7:()=>no,gCM:()=>_setAriaSort,iVQ:()=>oo,ir9:()=>hs,j_S:()=>Y,jie:()=>_isServerSideRowModel,l3s:()=>ei,qYz:()=>_isClientSideRowModel,s$r:()=>qo,taW:()=>_removeFromParent,vA3:()=>Jo,wox:()=>Xt,xGN:()=>_getRowViewportClass,zmG:()=>An,zn:()=>jo});var i=o(25108),s=class{constructor(){this.allSyncListeners=new Map,this.allAsyncListeners=new Map,this.globalSyncListeners=new Set,this.globalAsyncListeners=new Set,this.asyncFunctionsQueue=[],this.scheduled=!1,this.firedEvents={}}setFrameworkOverrides(e){this.frameworkOverrides=e}getListeners(e,t,o){const i=t?this.allAsyncListeners:this.allSyncListeners;let s=i.get(e);return!s&&o&&(s=new Set,i.set(e,s)),s}noRegisteredListenersExist(){return 0===this.allSyncListeners.size&&0===this.allAsyncListeners.size&&0===this.globalSyncListeners.size&&0===this.globalAsyncListeners.size}addEventListener(e,t,o=!1){this.getListeners(e,o,!0).add(t)}removeEventListener(e,t,o=!1){const i=this.getListeners(e,o,!1);i&&(i.delete(t),0===i.size&&(o?this.allAsyncListeners:this.allSyncListeners).delete(e))}addGlobalListener(e,t=!1){this.getGlobalListeners(t).add(e)}removeGlobalListener(e,t=!1){this.getGlobalListeners(t).delete(e)}dispatchEvent(e){this.dispatchToListeners(e,!0),this.dispatchToListeners(e,!1),this.firedEvents[e.type]=!0}dispatchEventOnce(e){this.firedEvents[e.type]||this.dispatchEvent(e)}dispatchToListeners(e,t){const o=e.type;if(t&&"event"in e){const t=e.event;t instanceof Event&&(e.eventPath=t.composedPath())}const{frameworkOverrides:i}=this,runCallback=e=>{const o=i?()=>i.wrapIncoming(e):e;t?this.dispatchAsync(o):o()},s=this.getListeners(o,t,!1);if((s?.size??0)>0){const t=new Set(s);for(const o of t)s?.has(o)&&runCallback((()=>o(e)))}const n=this.getGlobalListeners(t);if(n.size>0){const t=new Set(n);for(const i of t)runCallback((()=>i(o,e)))}}getGlobalListeners(e){return e?this.globalAsyncListeners:this.globalSyncListeners}dispatchAsync(e){if(this.asyncFunctionsQueue.push(e),!this.scheduled){const flush=()=>{window.setTimeout(this.flushAsyncQueue.bind(this),0)};this.frameworkOverrides?this.frameworkOverrides.wrapIncoming(flush):flush(),this.scheduled=!0}}flushAsyncQueue(){this.scheduled=!1;const e=this.asyncFunctionsQueue.slice();this.asyncFunctionsQueue=[],e.forEach((e=>e()))}};function defaultLocaleTextFunc(e,t){return t}function _getLocaleTextFunc(e){return e?.getLocaleTextFunc()??defaultLocaleTextFunc}function _makeNull(e){return null==e||""===e?null:e}function _exists(e){return null!=e&&""!==e}function _missing(e){return!_exists(e)}function _toStringOrNull(e){return null!=e&&"function"==typeof e.toString?e.toString():null}function _jsonEquals(e,t){return(e?JSON.stringify(e):null)===(t?JSON.stringify(t):null)}function _defaultComparator(e,t,o=!1){const i=null==e,s=null==t;if(e&&e.toNumber&&(e=e.toNumber()),t&&t.toNumber&&(t=t.toNumber()),i&&s)return 0;if(i)return-1;if(s)return 1;function doQuickCompare(e,t){return e>t?1:e<t?-1:0}if("string"!=typeof e)return doQuickCompare(e,t);if(!o)return doQuickCompare(e,t);try{return e.localeCompare(t)}catch(o){return doQuickCompare(e,t)}}var n=new Set(["__proto__","constructor","prototype"]);function _mergeDeep(e,t,o=!0,i=!1){_exists(t)&&function _iterateObject(e,t){if(null!=e)if(Array.isArray(e))for(let o=0;o<e.length;o++)t(o.toString(),e[o]);else for(const o of Object.keys(e))t(o,e[o])}(t,((t,s)=>{if(n.has(t))return;let r=e[t];if(r!==s){if(i){if(null==r&&null!=s){"object"==typeof s&&s.constructor===Object&&(r={},e[t]=r)}}_isNonNullObject(s)&&_isNonNullObject(r)&&!Array.isArray(r)?_mergeDeep(r,s,o,i):(o||void 0!==s)&&(e[t]=s)}}))}function _getValueUsingField(e,t,o){if(!t||!e)return;if(!o)return e[t];const i=t.split(".");let s=e;for(let e=0;e<i.length;e++){if(null==s)return;s=s[i[e]]}return s}function _isNonNullObject(e){return"object"==typeof e&&null!==e}var r=class _GlobalGridOptions{static applyGlobalGridOptions(e){if(!_GlobalGridOptions.gridOptions)return{...e};let t={};return _mergeDeep(t,_GlobalGridOptions.gridOptions,!0,!0),"deep"===_GlobalGridOptions.mergeStrategy?_mergeDeep(t,e,!0,!0):t={...t,...e},_GlobalGridOptions.gridOptions.context&&(t.context=_GlobalGridOptions.gridOptions.context),e.context&&("deep"===_GlobalGridOptions.mergeStrategy&&t.context&&_mergeDeep(e.context,t.context,!0,!0),t.context=e.context),t}};r.gridOptions=void 0,r.mergeStrategy="shallow";var a=r;var l,d,c,h,u,g,p,m={suppressContextMenu:!1,preventDefaultOnContextMenu:!1,allowContextMenuWithControlKey:!1,suppressMenuHide:!0,enableBrowserTooltips:!1,tooltipTrigger:"hover",tooltipShowDelay:2e3,tooltipHideDelay:1e4,tooltipMouseTrack:!1,tooltipShowMode:"standard",tooltipInteraction:!1,copyHeadersToClipboard:!1,copyGroupHeadersToClipboard:!1,clipboardDelimiter:"\t",suppressCopyRowsToClipboard:!1,suppressCopySingleCellRanges:!1,suppressLastEmptyLineOnPaste:!1,suppressClipboardPaste:!1,suppressClipboardApi:!1,suppressCutToClipboard:!1,maintainColumnOrder:!1,enableStrictPivotColumnOrder:!1,suppressFieldDotNotation:!1,allowDragFromColumnsToolPanel:!1,suppressMovableColumns:!1,suppressColumnMoveAnimation:!1,suppressMoveWhenColumnDragging:!1,suppressDragLeaveHidesColumns:!1,suppressRowGroupHidesColumns:!1,suppressAutoSize:!1,autoSizePadding:20,skipHeaderOnAutoSize:!1,singleClickEdit:!1,suppressClickEdit:!1,readOnlyEdit:!1,stopEditingWhenCellsLoseFocus:!1,enterNavigatesVertically:!1,enterNavigatesVerticallyAfterEdit:!1,enableCellEditingOnBackspace:!1,undoRedoCellEditing:!1,undoRedoCellEditingLimit:10,suppressCsvExport:!1,suppressExcelExport:!1,cacheQuickFilter:!1,includeHiddenColumnsInQuickFilter:!1,excludeChildrenWhenTreeDataFiltering:!1,enableAdvancedFilter:!1,includeHiddenColumnsInAdvancedFilter:!1,enableCharts:!1,masterDetail:!1,keepDetailRows:!1,keepDetailRowsCount:10,detailRowAutoHeight:!1,tabIndex:0,rowBuffer:10,valueCache:!1,valueCacheNeverExpires:!1,enableCellExpressions:!1,suppressTouch:!1,suppressFocusAfterRefresh:!1,suppressBrowserResizeObserver:!1,suppressPropertyNamesCheck:!1,suppressChangeDetection:!1,debug:!1,suppressLoadingOverlay:!1,suppressNoRowsOverlay:!1,pagination:!1,paginationPageSize:100,paginationPageSizeSelector:!0,paginationAutoPageSize:!1,paginateChildRows:!1,suppressPaginationPanel:!1,pivotMode:!1,pivotPanelShow:"never",pivotDefaultExpanded:0,pivotSuppressAutoColumn:!1,suppressExpandablePivotGroups:!1,functionsReadOnly:!1,suppressAggFuncInHeader:!1,alwaysAggregateAtRootLevel:!1,aggregateOnlyChangedColumns:!1,suppressAggFilteredOnly:!1,removePivotHeaderRowWhenSingleValueColumn:!1,animateRows:!0,cellFlashDuration:500,cellFadeDuration:1e3,allowShowChangeAfterFilter:!1,domLayout:"normal",ensureDomOrder:!1,enableRtl:!1,suppressColumnVirtualisation:!1,suppressMaxRenderedRowRestriction:!1,suppressRowVirtualisation:!1,rowDragManaged:!1,rowDragInsertDelay:500,suppressRowDrag:!1,suppressMoveWhenRowDragging:!1,rowDragEntireRow:!1,rowDragMultiRow:!1,embedFullWidthRows:!1,groupDisplayType:"singleColumn",groupDefaultExpanded:0,groupMaintainOrder:!1,groupSelectsChildren:!1,groupSuppressBlankHeader:!1,groupSelectsFiltered:!1,showOpenedGroup:!1,groupRemoveSingleChildren:!1,groupRemoveLowestSingleChildren:!1,groupHideOpenParents:!1,groupAllowUnbalanced:!1,rowGroupPanelShow:"never",suppressMakeColumnVisibleAfterUnGroup:!1,treeData:!1,rowGroupPanelSuppressSort:!1,suppressGroupRowsSticky:!1,rowModelType:"clientSide",asyncTransactionWaitMillis:50,suppressModelUpdateAfterUpdateTransaction:!1,cacheOverflowSize:1,infiniteInitialRowCount:1,serverSideInitialRowCount:1,cacheBlockSize:100,maxBlocksInCache:-1,maxConcurrentDatasourceRequests:2,blockLoadDebounceMillis:0,purgeClosedRowNodes:!1,serverSideSortAllLevels:!1,serverSideOnlyRefreshFilteredGroups:!1,serverSidePivotResultFieldSeparator:"_",viewportRowModelPageSize:5,viewportRowModelBufferSize:5,alwaysShowHorizontalScroll:!1,alwaysShowVerticalScroll:!1,debounceVerticalScrollbar:!1,suppressHorizontalScroll:!1,suppressScrollOnNewData:!1,suppressScrollWhenPopupsAreOpen:!1,suppressAnimationFrame:!1,suppressMiddleClickScrolls:!1,suppressPreventDefaultOnMouseWheel:!1,rowMultiSelectWithClick:!1,suppressRowDeselection:!1,suppressRowClickSelection:!1,suppressCellFocus:!1,suppressHeaderFocus:!1,suppressMultiRangeSelection:!1,enableCellTextSelection:!1,enableRangeSelection:!1,enableRangeHandle:!1,enableFillHandle:!1,fillHandleDirection:"xy",suppressClearOnFillReduction:!1,accentedSort:!1,unSortIcon:!1,suppressMultiSort:!1,alwaysMultiSort:!1,suppressMaintainUnsortedOrder:!1,suppressRowHoverHighlight:!1,suppressRowTransform:!1,columnHoverHighlight:!1,deltaSort:!1,enableGroupEdit:!1,groupLockGroupColumns:0,serverSideEnableClientSideSort:!1,suppressServerSideFullWidthLoadingRow:!1,pivotMaxGeneratedColumns:-1,columnMenu:"new",reactiveCustomComponents:!0,suppressSetFilterByDefault:!1,rowNumbers:!1,enableFilterHandlers:!1};function _toggleAriaAttribute(e,t,o){null==o||"string"==typeof o&&""==o?_removeAriaAttribute(e,t):_setAriaAttribute(e,t,o)}function _setAriaAttribute(e,t,o){e.setAttribute(_ariaAttributeName(t),o.toString())}function _removeAriaAttribute(e,t){e.removeAttribute(_ariaAttributeName(t))}function _ariaAttributeName(e){return`aria-${e}`}function _setAriaRole(e,t){t?e.setAttribute("role",t):e.removeAttribute("role")}function _setAriaLabel(e,t){_toggleAriaAttribute(e,"label",t)}function _setAriaLabelledBy(e,t){_toggleAriaAttribute(e,"labelledby",t)}function _setAriaLive(e,t){_toggleAriaAttribute(e,"live",t)}function _setAriaHidden(e,t){_toggleAriaAttribute(e,"hidden",t)}function _setAriaExpanded(e,t){_setAriaAttribute(e,"expanded",t)}function _setAriaRowCount(e,t){_setAriaAttribute(e,"rowcount",t)}function _setAriaRowIndex(e,t){_setAriaAttribute(e,"rowindex",t)}function _setAriaColCount(e,t){_setAriaAttribute(e,"colcount",t)}function _setAriaColIndex(e,t){_setAriaAttribute(e,"colindex",t)}function _setAriaSort(e,t){_setAriaAttribute(e,"sort",t)}function _removeAriaSort(e){_removeAriaAttribute(e,"sort")}function _setAriaSelected(e,t){_toggleAriaAttribute(e,"selected",t)}function _setAriaControlsAndLabel(e,t){!function _setAriaControls(e,t){_toggleAriaAttribute(e,"controls",t)}(e,t.id),_setAriaLabelledBy(t,e.id)}function _getAriaCheckboxStateName(e,t){return void 0===t?e("ariaIndeterminate","indeterminate"):!0===t?e("ariaChecked","checked"):e("ariaUnchecked","unchecked")}function _isBrowserSafari(){return void 0===l&&(l=/^((?!chrome|android).)*safari/i.test(navigator.userAgent)),l}function _isBrowserFirefox(){return void 0===d&&(d=/(firefox)/i.test(navigator.userAgent)),d}function _isMacOsUserAgent(){return void 0===c&&(c=/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform)),c}function _isIOSUserAgent(){return void 0===h&&(h=/iPad|iPhone|iPod/.test(navigator.platform)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1),h}function _getTabIndex(e){if(!e)return null;const t=e.tabIndex,o=e.getAttribute("tabIndex");return-1!==t||null!==o&&(""!==o||_isBrowserFirefox())?t.toString():null}function initScrollbarWidthAndVisibility(){const e=document.body,t=document.createElement("div");t.style.width=t.style.height="100px",t.style.opacity="0",t.style.overflow="scroll",t.style.msOverflowStyle="scrollbar",t.style.position="absolute",e.appendChild(t);let o=t.offsetWidth-t.clientWidth;0===o&&0===t.clientWidth&&(o=null),t.parentNode&&t.parentNode.removeChild(t),null!=o&&(g=o,u=0===o)}function _isInvisibleScrollbar(){return null==u&&initScrollbarWidthAndVisibility(),u}var f="[disabled], .ag-disabled:not(.ag-button), .ag-disabled *";function _isFocusableFormField(e){const t=Element.prototype.matches||Element.prototype.msMatchesSelector,o=t.call(e,"input, select, button, textarea"),i=t.call(e,f),s=_isVisible(e);return o&&!i&&s}function _setDisplayed(e,t,o={}){const{skipAriaHidden:i}=o;e.classList.toggle("ag-hidden",!t),i||_setAriaHidden(e,!t)}function _setDisabled(e,t){const o="disabled",i=t?e=>e.setAttribute(o,""):e=>e.removeAttribute(o);i(e);const s=e.querySelectorAll("input")??[];for(const e of s)i(e)}function _isElementChildOfClass(e,t,o){let i=0;for(;e;){if(e.classList.contains(t))return!0;if(e=e.parentElement,"number"==typeof o){if(++i>o)break}else if(e===o)break}return!1}function _getElementSize(e){const{height:t,width:o,borderTopWidth:i,borderRightWidth:s,borderBottomWidth:n,borderLeftWidth:r,paddingTop:a,paddingRight:l,paddingBottom:d,paddingLeft:c,marginTop:h,marginRight:u,marginBottom:g,marginLeft:p,boxSizing:m}=window.getComputedStyle(e);return{height:parseFloat(t||"0"),width:parseFloat(o||"0"),borderTopWidth:parseFloat(i||"0"),borderRightWidth:parseFloat(s||"0"),borderBottomWidth:parseFloat(n||"0"),borderLeftWidth:parseFloat(r||"0"),paddingTop:parseFloat(a||"0"),paddingRight:parseFloat(l||"0"),paddingBottom:parseFloat(d||"0"),paddingLeft:parseFloat(c||"0"),marginTop:parseFloat(h||"0"),marginRight:parseFloat(u||"0"),marginBottom:parseFloat(g||"0"),marginLeft:parseFloat(p||"0"),boxSizing:m}}function _getInnerHeight(e){const t=_getElementSize(e);return"border-box"===t.boxSizing?t.height-t.paddingTop-t.paddingBottom:t.height}function _getInnerWidth(e){const t=_getElementSize(e);return"border-box"===t.boxSizing?t.width-t.paddingLeft-t.paddingRight:t.width}function _getAbsoluteHeight(e){const{height:t,marginBottom:o,marginTop:i}=_getElementSize(e);return Math.floor(t+o+i)}function _getAbsoluteWidth(e){const{width:t,marginLeft:o,marginRight:i}=_getElementSize(e);return Math.floor(t+o+i)}function _getElementRectWithOffset(e){const t=e.getBoundingClientRect(),{borderTopWidth:o,borderLeftWidth:i,borderRightWidth:s,borderBottomWidth:n}=_getElementSize(e);return{top:t.top+(o||0),left:t.left+(i||0),right:t.right+(s||0),bottom:t.bottom+(n||0)}}function _getScrollLeft(e,t){let o=e.scrollLeft;return t&&(o=Math.abs(o)),o}function _setScrollLeft(e,t,o){o&&(t*=-1),e.scrollLeft=t}function _clearElement(e){for(;e&&e.firstChild;)e.removeChild(e.firstChild)}function _removeFromParent(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function _isInDOM(e){return!!e.offsetParent}function _isVisible(e){const t=e;if(t.checkVisibility)return t.checkVisibility({checkVisibilityCSS:!0});return!(!_isInDOM(e)||"visible"!==window.getComputedStyle(e).visibility)}function _loadTemplate(e){const t=document.createElement("div");return t.innerHTML=(e||"").trim(),t.firstChild}function _isElementOverflowingCallback(e){return()=>{const t=e();return!t||_isHorizontalScrollShowing(t)}}function _isHorizontalScrollShowing(e){return e.clientWidth<e.scrollWidth}function _setElementWidth(e,t){"flex"===t?(e.style.removeProperty("width"),e.style.removeProperty("minWidth"),e.style.removeProperty("maxWidth"),e.style.flex="1 1 auto"):_setFixedWidth(e,t)}function _setFixedWidth(e,t){t=_formatSize(t),e.style.width=t,e.style.maxWidth=t,e.style.minWidth=t}function _setFixedHeight(e,t){t=_formatSize(t),e.style.height=t,e.style.maxHeight=t,e.style.minHeight=t}function _formatSize(e){return"number"==typeof e?`${e}px`:e}function _isNodeOrElement(e){return e instanceof Node||e instanceof HTMLElement}function _addOrRemoveAttribute(e,t,o){null==o||""===o?e.removeAttribute(t):e.setAttribute(t,o.toString())}function _observeResize(e,t,o){const i=_getWindow(e).ResizeObserver,s=i?new i(o):null;return s?.observe(t),()=>s?.disconnect()}function _requestAnimationFrame(e,t){const o=_getWindow(e);o.requestAnimationFrame?o.requestAnimationFrame(t):o.webkitRequestAnimationFrame?o.webkitRequestAnimationFrame(t):o.setTimeout(t,0)}var C,w="data-ref";function getWhitespaceNode(){return C??(C=document.createTextNode(" ")),C.cloneNode()}function _createElement(e){const{attrs:t,children:o,cls:i,ref:s,role:n,tag:r}=e,a=document.createElement(r);if(i&&(a.className=i),s&&a.setAttribute(w,s),n&&a.setAttribute("role",n),t)for(const e of Object.keys(t))a.setAttribute(e,t[e]);if(o)if("string"==typeof o)a.textContent=o;else{let e=!0;for(const t of o)t&&("string"==typeof t?(a.appendChild(document.createTextNode(t)),e=!1):"function"==typeof t?a.appendChild(t()):(e&&(a.appendChild(getWhitespaceNode()),e=!1),a.append(_createElement(t)),a.appendChild(getWhitespaceNode())))}return a}var v={};function _doOnce(e,t){v[t]||(e(),v[t]=!0)}function _logIfDebug(e,t,...o){e.get("debug")&&i.log("AG Grid: "+t,...o)}function _warnOnce(e,...t){_doOnce((()=>i.warn("AG Grid: "+e,...t)),e+t?.join(""))}function _errorOnce(e,...t){_doOnce((()=>i.error("AG Grid: "+e,...t)),e+t?.join(""))}var b={pending:!1,funcs:[]},S={pending:!1,funcs:[]};function _batchCall(e,t="setTimeout",o){const i="raf"===t?S:b;if(i.funcs.push(e),i.pending)return;i.pending=!0;const runBatch=()=>{const e=i.funcs.slice();i.funcs.length=0,i.pending=!1,e.forEach((e=>e()))};"raf"===t?_requestAnimationFrame(o,runBatch):window.setTimeout(runBatch,0)}function _debounce(e,t,o){let i;return function(...s){const n=this;window.clearTimeout(i),i=window.setTimeout((function(){e.isAlive()&&t.apply(n,s)}),o)}}function _throttle(e,t){let o=0;return function(...i){const s=Date.now();s-o<t||(o=s,e.apply(this,i))}}var y="https://www.ag-grid.com",R="34.0.1",F="_version_",E=null,P=`${y}/javascript-data-grid`;function getErrorParts(e,t,o){return E?.getConsoleMessage(e,t)??[minifiedLog(e,t,o)]}function getMsgOrDefault(e,t,o,i){e(`error #${t}`,...getErrorParts(t,o,i))}function stringifyValue(e){let t=e;return e instanceof Error?t=e.toString():"object"==typeof e&&(t=function stringifyObject(e){if(!e)return String(e);const t={};for(const o of Object.keys(e))"object"!=typeof e[o]&&"function"!=typeof e[o]&&(t[o]=e[o]);return JSON.stringify(t)}(e)),t}function toStringWithNullUndefined(e){return void 0===e?"undefined":null===e?"null":e}function getParamsUrl(e,t){return`${e}?${t.toString()}`}function getErrorLink(e,t){const o=new URLSearchParams;if(o.append(F,R),t)for(const e of Object.keys(t))o.append(e,stringifyValue(t[e]));const i=`${P}/errors/${e}`,s=getParamsUrl(i,o);return s.length<=2e3?s:function truncateUrl(e,t,o){const i=Array.from(t.entries()).sort(((e,t)=>t[1].length-e[1].length));let s=getParamsUrl(e,t);for(const[n,r]of i){if(n===F)continue;const i=s.length-o;if(i<=0)break;const a="...",l=i+a.length,d=r.length-l>100?r.slice(0,r.length-l)+a:r.slice(0,100)+a;t.set(n,d),s=getParamsUrl(e,t)}return s}(i,o,2e3)}var minifiedLog=(e,t,o)=>`${o?o+" \n":""}Visit ${getErrorLink(e,t)}${o?"":" \n Alternatively register the ValidationModule to see the full message in the console."}`;function _warn(...e){getMsgOrDefault(_warnOnce,e[0],e[1])}function _error(...e){getMsgOrDefault(_errorOnce,e[0],e[1])}function _logPreInitErr(e,t,o){getMsgOrDefault(_errorOnce,e,t,o)}function getErrMsg(e,t){const o=t[0];return`error #${o} `+getErrorParts(o,t[1],e).join(" ")}function _errMsg(...e){return getErrMsg(void 0,e)}function isRowModelType(e,t){return e.get("rowModelType")===t}function _isClientSideRowModel(e,t){return isRowModelType(e,"clientSide")}function _isServerSideRowModel(e,t){return isRowModelType(e,"serverSide")}function _isDomLayout(e,t){return e.get("domLayout")===t}function _isRowSelection(e){return void 0!==_getRowSelectionMode(e)}function _isGetRowHeightFunction(e){return"function"==typeof e.get("getRowHeight")}function _getRowHeightForNode(e,t,o=!1,i){const{gos:s,environment:n}=e;if(null==i&&(i=n.getDefaultRowHeight()),_isGetRowHeightFunction(s)){if(o)return{height:i,estimated:!0};const e={node:t,data:t.data},n=s.getCallback("getRowHeight")(e);if(isNumeric(n))return 0===n&&_warn(23),{height:Math.max(1,n),estimated:!1}}if(t.detail&&s.get("masterDetail"))return function getMasterDetailRowHeight(e){if(e.get("detailRowAutoHeight"))return{height:1,estimated:!1};const t=e.get("detailRowHeight");if(isNumeric(t))return{height:t,estimated:!1};return{height:300,estimated:!1}}(s);const r=s.get("rowHeight");return{height:r&&isNumeric(r)?r:i,estimated:!1}}function _getRowHeightAsNumber(e){const{environment:t,gos:o}=e,i=o.get("rowHeight");if(!i||_missing(i))return t.getDefaultRowHeight();const s=t.refreshRowHeightVariable();return-1!==s?s:(_warn(24),t.getDefaultRowHeight())}function isNumeric(e){return!isNaN(e)&&"number"==typeof e&&isFinite(e)}function _getDomData(e,t,o){const i=t[e.getDomDataKey()];return i?i[o]:void 0}function _setDomData(e,t,o,i){const s=e.getDomDataKey();let n=t[s];_missing(n)&&(n={},t[s]=n),n[o]=i}function _getDocument(e){const{gos:t,eGridDiv:o}=e;let i=null;const s=t.get("getDocument");return s&&_exists(s)?i=s():o&&(i=o.ownerDocument),i&&_exists(i)?i:document}function _getWindow(e){return _getDocument(e).defaultView||window}function _getRootNode(e){return e.eGridDiv.getRootNode()}function _getActiveDomElement(e){return _getRootNode(e).activeElement}function _getPageBody(e){let t=null,o=null;try{t=_getDocument(e).fullscreenElement}catch(e){}finally{t||(t=_getRootNode(e));const i=t.querySelector("body");o=i||(t instanceof ShadowRoot?t:t instanceof Document?t?.documentElement:t)}return o}function _anchorElementToMouseMoveEvent(e,t,o){const i=e.getBoundingClientRect().height,s=function _getBodyWidth(e){return _getPageBody(e)?.clientWidth??(window.innerHeight||-1)}(o)-2,n=function _getBodyHeight(e){return _getPageBody(e)?.clientHeight??(window.innerHeight||-1)}(o)-2;if(!e.offsetParent)return;const r=_getElementRectWithOffset(e.offsetParent),{clientY:a,clientX:l}=t;let d=a-r.top-i/2,c=l-r.left-10;const h=_getDocument(o),u=h.defaultView||window,g=u.pageYOffset||h.documentElement.scrollTop,p=u.pageXOffset||h.documentElement.scrollLeft;s>0&&c+e.clientWidth>s+p&&(c=s+p-e.clientWidth),c<0&&(c=0),n>0&&d+e.clientHeight>n+g&&(d=n+g-e.clientHeight),d<0&&(d=0),e.style.left=`${c}px`,e.style.top=`${d}px`}function _isNothingFocused(e){const t=_getActiveDomElement(e);return null===t||t===_getDocument(e).body}function _isAnimateRows(e){return!e.get("ensureDomOrder")&&e.get("animateRows")}function _isGroupRowsSticky(e){return!(e.get("paginateChildRows")||e.get("groupHideOpenParents")||_isDomLayout(e,"print"))}function _isColumnsSortingCoupledToGroup(e){return!e.get("autoGroupColumnDef")?.comparator&&!e.get("treeData")}function _getGroupAggFiltering(e){const t=e.get("groupAggFiltering");return"function"==typeof t?e.getCallback("groupAggFiltering"):!0===t?()=>!0:void 0}function _getGrandTotalRow(e){return e.get("grandTotalRow")}function _isGroupUseEntireRow(e,t){return!t&&"groupRows"===e.get("groupDisplayType")}function _isFullWidthGroupRow(e,t,o){return!!t.group&&!t.footer&&_isGroupUseEntireRow(e,o)}function _getRowIdCallback(e){const t=e.getCallback("getRowId");return void 0===t?t:e=>{let o=t(e);return"string"!=typeof o&&(_doOnce((()=>_warn(25,{id:o})),"getRowIdString"),o=String(o)),o}}function _getCheckboxes(e){return e?.checkboxes??!0}function _getHeaderCheckbox(e){return"multiRow"===e?.mode&&(e.headerCheckbox??!0)}function _getCheckboxLocation(e){if("object"==typeof e)return e.checkboxLocation??"selectionColumn"}function _getHideDisabledCheckboxes(e){return e?.hideDisabledCheckboxes??!1}function _isCellSelectionEnabled(e){const t=e.get("cellSelection");return void 0!==t?!!t:e.get("enableRangeSelection")}function _getEnableClickSelection(e){const t=e.get("rowSelection")??"single";if("string"==typeof t){const t=e.get("suppressRowClickSelection"),o=e.get("suppressRowDeselection");return(!t||!o)&&(t?"enableDeselection":!o||"enableSelection")}return("singleRow"===t.mode||"multiRow"===t.mode)&&(t.enableClickSelection??!1)}function _getIsRowSelectable(e){const t=e.get("rowSelection");return"string"==typeof t?e.get("isRowSelectable"):t?.isRowSelectable}function _getRowSelectionMode(e){const t="beanName"in e&&"gos"===e.beanName?e.get("rowSelection"):e.rowSelection;if("string"==typeof t)switch(t){case"multiple":return"multiRow";case"single":return"singleRow";default:return}switch(t?.mode){case"multiRow":case"singleRow":return t.mode;default:return}}function _isMultiRowSelection(e){return"multiRow"===_getRowSelectionMode(e)}function _getGroupSelection(e){const t=e.get("rowSelection");if("string"==typeof t){const t=e.get("groupSelectsChildren"),o=e.get("groupSelectsFiltered");return t&&o?"filteredDescendants":t?"descendants":"self"}return"multiRow"===t?.mode?t.groupSelects:void 0}function _getSelectAll(e,t=!0){const o=e.get("rowSelection");return"object"!=typeof o?t?"all":void 0:"multiRow"===o.mode?o.selectAll:"all"}function _getGroupSelectsDescendants(e){const t=_getGroupSelection(e);return"descendants"===t||"filteredDescendants"===t}function _getMasterSelects(e){const t=e.get("rowSelection");return"object"==typeof t&&t.masterSelects||"self"}function _isLegacyMenuEnabled(e){return"legacy"===e.get("columnMenu")}function _combineAttributesAndGridOptions(e,t,o){"object"!=typeof e&&(e={});const i={...e};return o.forEach((e=>{const o=t[e];void 0!==o&&(i[e]=o)})),i}function _processOnChange(e,t){if(!e)return;const o={};let i=!1;if(Object.keys(e).forEach((t=>{o[t]=e[t],i=!0})),!i)return;const s={type:"gridOptionsChanged",options:o};t.dispatchEvent(s);const n={type:"componentStateChanged",...o};t.dispatchEvent(n)}function _addGridCommonParams(e,t){return e.addGridCommonParams(t)}function _getGroupingApproach(e){return e.get("treeData")?e.get("treeDataParentIdField")?"treeSelfRef":e.get("treeDataChildrenField")?"treeNested":"treePath":"group"}function _getGridOption(e,t){return e[t]??e.gridOptions?.[t]??function _getGlobalGridOption(e){return a.gridOptions?.[e]}(t)??m[t]}var D="__ag_Grid_Stop_Propagation",x=["touchstart","touchend","touchmove","touchcancel","scroll"],M=["wheel"],T={};function _stopPropagationForAgGrid(e){e[D]=!0}function _isStopPropagationForAgGrid(e){return!0===e[D]}var A=(()=>{const e={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};return t=>{if("boolean"==typeof T[t])return T[t];const o=document.createElement(e[t]||"div");return T[t="on"+t]=t in o}})();function _getCtrlForEventTarget(e,t,o){let i=t;for(;i;){const t=_getDomData(e,i,o);if(t)return t;i=i.parentElement}return null}function _isElementInEventPath(e,t){return!(!t||!e)&&function _getEventPath(e){const t=e;if(t.path)return t.path;if(t.composedPath)return t.composedPath();return function _createEventPath(e){const t=[];let o=e.target;for(;o;)t.push(o),o=o.parentElement;return t}(t)}(t).indexOf(e)>=0}var getPassiveStateForEvent=e=>{const t=x.includes(e),o=M.includes(e);return!!t||!o&&void 0},I=class{constructor(){this.destroyFunctions=[],this.destroyed=!1,this.__v_skip=!0,this.propertyListenerId=0,this.lastChangeSetIdLookup={},this.isAlive=()=>!this.destroyed}preWireBeans(e){this.beans=e,this.stubContext=e.context,this.eventSvc=e.eventSvc,this.gos=e.gos}destroy(){const{destroyFunctions:e}=this;for(let t=0;t<e.length;t++)e[t]();e.length=0,this.destroyed=!0,this.dispatchLocalEvent({type:"destroyed"})}addEventListener(e,t,o){this.localEventService||(this.localEventService=new s),this.localEventService.addEventListener(e,t,o)}removeEventListener(e,t,o){this.localEventService?.removeEventListener(e,t,o)}dispatchLocalEvent(e){this.localEventService?.dispatchEvent(e)}addManagedElementListeners(e,t){return this._setupListeners(e,t)}addManagedEventListeners(e){return this._setupListeners(this.eventSvc,e)}addManagedListeners(e,t){return this._setupListeners(e,t)}_setupListeners(e,t){const o=[];for(const i of Object.keys(t)){const s=t[i];s&&o.push(this._setupListener(e,i,s))}return o}_setupListener(e,t,o){if(this.destroyed)return()=>null;let i;return!function isAgEventEmitter(e){return void 0!==e.__addEventListener}(e)?(e instanceof HTMLElement?function _addSafePassiveEventListener(e,t,o,i){const s=getPassiveStateForEvent(o);let n;null!=s&&(n={passive:s}),e&&e.addEventListener&&e.addEventListener(t,o,i,n)}(this.beans.frameworkOverrides,e,t,o):e.addEventListener(t,o),i=()=>(e.removeEventListener(t,o),null)):(e.__addEventListener(t,o),i=()=>(e.__removeEventListener(t,o),null)),this.destroyFunctions.push(i),()=>(i(),this.destroyFunctions=this.destroyFunctions.filter((e=>e!==i)),null)}setupGridOptionListener(e,t){const{gos:o}=this;o.addPropertyEventListener(e,t);const destroyFunc=()=>(o.removePropertyEventListener(e,t),null);return this.destroyFunctions.push(destroyFunc),()=>(destroyFunc(),this.destroyFunctions=this.destroyFunctions.filter((e=>e!==destroyFunc)),null)}addManagedPropertyListener(e,t){return this.destroyed?()=>null:this.setupGridOptionListener(e,t)}addManagedPropertyListeners(e,t){if(this.destroyed)return;const o=e.join("-")+this.propertyListenerId++,wrappedListener=e=>{if(e.changeSet){if(e.changeSet&&e.changeSet.id===this.lastChangeSetIdLookup[o])return;this.lastChangeSetIdLookup[o]=e.changeSet.id}const i={type:"gridPropertyChanged",changeSet:e.changeSet,source:e.source};t(i)};e.forEach((e=>this.setupGridOptionListener(e,wrappedListener)))}getLocaleTextFunc(){return _getLocaleTextFunc(this.beans.localeSvc)}addDestroyFunc(e){this.isAlive()?this.destroyFunctions.push(e):e()}createOptionalManagedBean(e,t){return e?this.createManagedBean(e,t):void 0}createManagedBean(e,t){const o=this.createBean(e,t);return this.addDestroyFunc(this.destroyBean.bind(this,e,t)),o}createBean(e,t,o){return(t||this.stubContext).createBean(e,o)}destroyBean(e,t){return(t||this.stubContext).destroyBean(e)}destroyBeans(e,t){return(t||this.stubContext).destroyBeans(e)}};var k=/[&<>"']/g,L={"&":"&","<":"<",">":">",'"':""","'":"'"};function _toString(e){return e?.toString().toString()??null}function _escapeString(e){return _toString(e)?.replace(k,(e=>L[e]))??null}var G={resizable:!0,sortable:!0},N=0;function getNextColInstanceId(){return N++}function isColumn(e){return e instanceof _}var _=class extends I{constructor(e,t,o,i){super(),this.colDef=e,this.userProvidedColDef=t,this.colId=o,this.primary=i,this.isColumn=!0,this.instanceId=getNextColInstanceId(),this.autoHeaderHeight=null,this.moving=!1,this.menuVisible=!1,this.lastLeftPinned=!1,this.firstRightPinned=!1,this.filterActive=!1,this.colEventSvc=new s,this.tooltipEnabled=!1,this.rowGroupActive=!1,this.pivotActive=!1,this.aggregationActive=!1,this.flex=null,this.colIdSanitised=_escapeString(o)}destroy(){super.destroy(),this.beans.rowSpanSvc?.deregister(this)}getInstanceId(){return this.instanceId}setState(){const{colDef:e,beans:{sortSvc:t,pinnedCols:o,colFlex:i}}=this;t?.initCol(this);const s=e.hide;this.visible=void 0!==s?!s:!e.initialHide,o?.initCol(this),i?.initCol(this)}setColDef(e,t,o){const i=e.spanRows!==this.colDef.spanRows;this.colDef=e,this.userProvidedColDef=t,this.initMinAndMaxWidths(),this.initDotNotation(),this.initTooltip(),i&&(this.beans.rowSpanSvc?.deregister(this),this.initRowSpan()),this.dispatchColEvent("colDefChanged",o)}getUserProvidedColDef(){return this.userProvidedColDef}getParent(){return this.parent}getOriginalParent(){return this.originalParent}postConstruct(){this.setState(),this.initMinAndMaxWidths(),this.resetActualWidth("gridInitializing"),this.initDotNotation(),this.initTooltip(),this.initRowSpan()}initDotNotation(){const{gos:e,colDef:{field:t,tooltipField:o}}=this,i=e.get("suppressFieldDotNotation");this.fieldContainsDots=_exists(t)&&t.indexOf(".")>=0&&!i,this.tooltipFieldContainsDots=_exists(o)&&o.indexOf(".")>=0&&!i}initMinAndMaxWidths(){const e=this.colDef;this.minWidth=e.minWidth??this.beans.environment.getDefaultColumnMinWidth(),this.maxWidth=e.maxWidth??Number.MAX_SAFE_INTEGER}initTooltip(){this.beans.tooltipSvc?.initCol(this)}initRowSpan(){this.colDef.spanRows&&this.beans.rowSpanSvc?.register(this)}resetActualWidth(e){const t=this.calculateColInitialWidth(this.colDef);this.setActualWidth(t,e,!0)}calculateColInitialWidth(e){let t;const o=e.width,i=e.initialWidth;return t=null!=o?o:null!=i?i:200,Math.max(Math.min(t,this.maxWidth),this.minWidth)}isEmptyGroup(){return!1}isRowGroupDisplayed(e){return this.beans.showRowGroupCols?.isRowGroupDisplayed(this,e)??!1}isPrimary(){return this.primary}isFilterAllowed(){return!!this.colDef.filter}isFieldContainsDots(){return this.fieldContainsDots}isTooltipEnabled(){return this.tooltipEnabled}isTooltipFieldContainsDots(){return this.tooltipFieldContainsDots}getHighlighted(){return this.highlighted}__addEventListener(e,t){this.colEventSvc.addEventListener(e,t)}__removeEventListener(e,t){this.colEventSvc.removeEventListener(e,t)}addEventListener(e,t){this.frameworkEventListenerService=this.beans.frameworkOverrides.createLocalEventListenerWrapper?.(this.frameworkEventListenerService,this.colEventSvc);const o=this.frameworkEventListenerService?.wrap(e,t)??t;this.colEventSvc.addEventListener(e,o)}removeEventListener(e,t){const o=this.frameworkEventListenerService?.unwrap(e,t)??t;this.colEventSvc.removeEventListener(e,o)}createColumnFunctionCallbackParams(e){return _addGridCommonParams(this.gos,{node:e,data:e.data,column:this,colDef:this.colDef})}isSuppressNavigable(e){return this.beans.cellNavigation?.isSuppressNavigable(this,e)??!1}isCellEditable(e){return this.beans.editSvc?.isCellEditable({rowNode:e,column:this})??!1}isSuppressFillHandle(){return!!this.colDef.suppressFillHandle}isAutoHeight(){return!!this.colDef.autoHeight}isAutoHeaderHeight(){return!!this.colDef.autoHeaderHeight}isRowDrag(e){return this.isColumnFunc(e,this.colDef.rowDrag)}isDndSource(e){return this.isColumnFunc(e,this.colDef.dndSource)}isCellCheckboxSelection(e){return this.beans.selectionSvc?.isCellCheckboxSelection(this,e)??!1}isSuppressPaste(e){return this.isColumnFunc(e,this.colDef?.suppressPaste??null)}isResizable(){return!!this.getColDefValue("resizable")}getColDefValue(e){return this.colDef[e]??G[e]}isColumnFunc(e,t){if("boolean"==typeof t)return t;if("function"==typeof t){return t(this.createColumnFunctionCallbackParams(e))}return!1}createColumnEvent(e,t){return _addGridCommonParams(this.gos,{type:e,column:this,columns:[this],source:t})}isMoving(){return this.moving}getSort(){return this.sort}isSortable(){return!!this.getColDefValue("sortable")}isSortAscending(){return"asc"===this.sort}isSortDescending(){return"desc"===this.sort}isSortNone(){return _missing(this.sort)}isSorting(){return _exists(this.sort)}getSortIndex(){return this.sortIndex}isMenuVisible(){return this.menuVisible}getAggFunc(){return this.aggFunc}getLeft(){return this.left}getOldLeft(){return this.oldLeft}getRight(){return this.left+this.actualWidth}setLeft(e,t){this.oldLeft=this.left,this.left!==e&&(this.left=e,this.dispatchColEvent("leftChanged",t))}isFilterActive(){return this.filterActive}isHovered(){return _warn(261),!!this.beans.colHover?.isHovered(this)}setFirstRightPinned(e,t){this.firstRightPinned!==e&&(this.firstRightPinned=e,this.dispatchColEvent("firstRightPinnedChanged",t))}setLastLeftPinned(e,t){this.lastLeftPinned!==e&&(this.lastLeftPinned=e,this.dispatchColEvent("lastLeftPinnedChanged",t))}isFirstRightPinned(){return this.firstRightPinned}isLastLeftPinned(){return this.lastLeftPinned}isPinned(){return"left"===this.pinned||"right"===this.pinned}isPinnedLeft(){return"left"===this.pinned}isPinnedRight(){return"right"===this.pinned}getPinned(){return this.pinned}setVisible(e,t){const o=!0===e;this.visible!==o&&(this.visible=o,this.dispatchColEvent("visibleChanged",t)),this.dispatchStateUpdatedEvent("hide")}isVisible(){return this.visible}isSpanHeaderHeight(){return!this.getColDef().suppressSpanHeaderHeight}getColumnGroupPaddingInfo(){let e=this.getParent();if(!e||!e.isPadding())return{numberOfParents:0,isSpanningTotal:!1};const t=e.getPaddingLevel()+1;let o=!0;for(;e;){if(!e.isPadding()){o=!1;break}e=e.getParent()}return{numberOfParents:t,isSpanningTotal:o}}getColDef(){return this.colDef}getDefinition(){return this.colDef}getColumnGroupShow(){return this.colDef.columnGroupShow}getColId(){return this.colId}getId(){return this.colId}getUniqueId(){return this.colId}getActualWidth(){return this.actualWidth}getAutoHeaderHeight(){return this.autoHeaderHeight}setAutoHeaderHeight(e){const t=e!==this.autoHeaderHeight;return this.autoHeaderHeight=e,t}createBaseColDefParams(e){return _addGridCommonParams(this.gos,{node:e,data:e.data,colDef:this.colDef,column:this})}getColSpan(e){if(_missing(this.colDef.colSpan))return 1;const t=this.createBaseColDefParams(e),o=this.colDef.colSpan(t);return Math.max(o,1)}getRowSpan(e){if(_missing(this.colDef.rowSpan))return 1;const t=this.createBaseColDefParams(e),o=this.colDef.rowSpan(t);return Math.max(o,1)}setActualWidth(e,t,o=!1){e=Math.max(e,this.minWidth),e=Math.min(e,this.maxWidth),this.actualWidth!==e&&(this.actualWidth=e,null!=this.flex&&"flex"!==t&&"gridInitializing"!==t&&(this.flex=null),o||this.fireColumnWidthChangedEvent(t)),this.dispatchStateUpdatedEvent("width")}fireColumnWidthChangedEvent(e){this.dispatchColEvent("widthChanged",e)}isGreaterThanMax(e){return e>this.maxWidth}getMinWidth(){return this.minWidth}getMaxWidth(){return this.maxWidth}getFlex(){return this.flex}isRowGroupActive(){return this.rowGroupActive}isPivotActive(){return this.pivotActive}isAnyFunctionActive(){return this.isPivotActive()||this.isRowGroupActive()||this.isValueActive()}isAnyFunctionAllowed(){return this.isAllowPivot()||this.isAllowRowGroup()||this.isAllowValue()}isValueActive(){return this.aggregationActive}isAllowPivot(){return!0===this.colDef.enablePivot}isAllowValue(){return!0===this.colDef.enableValue}isAllowRowGroup(){return!0===this.colDef.enableRowGroup}dispatchColEvent(e,t,o){const i=this.createColumnEvent(e,t);o&&_mergeDeep(i,o),this.colEventSvc.dispatchEvent(i)}dispatchStateUpdatedEvent(e){this.colEventSvc.dispatchEvent({type:"columnStateUpdated",key:e})}};function isProvidedColumnGroup(e){return e instanceof O}var O=class extends I{constructor(e,t,o,i){super(),this.colGroupDef=e,this.groupId=t,this.padding=o,this.level=i,this.isColumn=!1,this.expandable=!1,this.instanceId=getNextColInstanceId(),this.expandableListenerRemoveCallback=null,this.expanded=!!e?.openByDefault}destroy(){this.expandableListenerRemoveCallback&&this.reset(null,void 0),super.destroy()}reset(e,t){this.colGroupDef=e,this.level=t,this.originalParent=null,this.expandableListenerRemoveCallback&&this.expandableListenerRemoveCallback(),this.children=void 0,this.expandable=void 0}getInstanceId(){return this.instanceId}getOriginalParent(){return this.originalParent}getLevel(){return this.level}isVisible(){return!!this.children&&this.children.some((e=>e.isVisible()))}isPadding(){return this.padding}setExpanded(e){this.expanded=void 0!==e&&e,this.dispatchLocalEvent({type:"expandedChanged"})}isExpandable(){return this.expandable}isExpanded(){return this.expanded}getGroupId(){return this.groupId}getId(){return this.getGroupId()}setChildren(e){this.children=e}getChildren(){return this.children}getColGroupDef(){return this.colGroupDef}getLeafColumns(){const e=[];return this.addLeafColumns(e),e}forEachLeafColumn(e){if(this.children)for(const t of this.children)isColumn(t)?e(t):isProvidedColumnGroup(t)&&t.forEachLeafColumn(e)}addLeafColumns(e){this.children&&this.children.forEach((t=>{isColumn(t)?e.push(t):isProvidedColumnGroup(t)&&t.addLeafColumns(e)}))}getColumnGroupShow(){const e=this.colGroupDef;if(e)return e.columnGroupShow}setupExpandable(){this.setExpandable(),this.expandableListenerRemoveCallback&&this.expandableListenerRemoveCallback();const e=this.onColumnVisibilityChanged.bind(this);this.getLeafColumns().forEach((t=>t.__addEventListener("visibleChanged",e))),this.expandableListenerRemoveCallback=()=>{this.getLeafColumns().forEach((t=>t.__removeEventListener("visibleChanged",e))),this.expandableListenerRemoveCallback=null}}setExpandable(){if(this.isPadding())return;let e=!1,t=!1,o=!1;const i=this.findChildrenRemovingPadding();for(let s=0,n=i.length;s<n;s++){const n=i[s];if(!n.isVisible())continue;const r=n.getColumnGroupShow();"open"===r?(e=!0,o=!0):"closed"===r?(t=!0,o=!0):(e=!0,t=!0)}const s=e&&t&&o;this.expandable!==s&&(this.expandable=s,this.dispatchLocalEvent({type:"expandableChanged"}))}findChildrenRemovingPadding(){const e=[],process=t=>{t.forEach((t=>{isProvidedColumnGroup(t)&&t.isPadding()?process(t.children):e.push(t)}))};return process(this.children),e}onColumnVisibilityChanged(){this.setExpandable()}},H={numericColumn:{headerClass:"ag-right-aligned-header",cellClass:"ag-right-aligned-cell"},rightAligned:{headerClass:"ag-right-aligned-header",cellClass:"ag-right-aligned-cell"}};function createMergedColGroupDef(e,t,o){const i={},s=e.gos;return Object.assign(i,s.get("defaultColGroupDef")),Object.assign(i,t),s.validateColDef(i,o),i}var V=Object.freeze([]);function _last(e){if(e?.length)return e[e.length-1]}function _areEqual(e,t,o){return null==e&&null==t||null!=e&&null!=t&&e.length===t.length&&e.every(((e,i)=>o?o(e,t[i]):t[i]===e))}function _forAll(e,t){if(e)for(const o of e)t(o)}function _removeFromArray(e,t){const o=e.indexOf(t);o>=0&&e.splice(o,1)}function _moveInArray(e,t,o){for(let o=0;o<t.length;o++)_removeFromArray(e,t[o]);for(let i=t.length-1;i>=0;i--)e.splice(o,0,t[i])}var B="ag-Grid-AutoColumn",z="ag-Grid-SelectionColumn",W="ag-Grid-RowNumbersColumn";function _getColumnsFromTree(e){const t=[],recursiveFindColumns=e=>{for(let o=0;o<e.length;o++){const i=e[o];isColumn(i)?t.push(i):isProvidedColumnGroup(i)&&recursiveFindColumns(i.getChildren())}};return recursiveFindColumns(e),t}function getWidthOfColsInList(e){return e.reduce(((e,t)=>e+t.getActualWidth()),0)}function _destroyColumnTree(e,t,o){const i={};if(!t)return;depthFirstOriginalTreeSearch(null,t,(e=>{i[e.getInstanceId()]=e})),o&&depthFirstOriginalTreeSearch(null,o,(e=>{i[e.getInstanceId()]=null}));const s=Object.values(i).filter((e=>null!=e));e.context.destroyBeans(s)}function isColumnGroupAutoCol(e){return e.getId().startsWith(B)}function isColumnSelectionCol(e){return("string"==typeof e?e:"getColId"in e?e.getColId():e.colId)?.startsWith(z)??!1}function isRowNumberCol(e){return("string"==typeof e?e:"getColId"in e?e.getColId():e.colId)?.startsWith(W)??!1}function convertColumnTypes(e){let t=[];return e instanceof Array?t=e:"string"==typeof e&&(t=e.split(",")),t}function _convertColumnEventSourceType(e){return"gridOptionsUpdated"===e?"gridOptionsChanged":e}function _columnsMatch(e,t){const o=e===t,i=e.getColDef()===t,s=e.getColId()==t;return o||i||s}function _createColumnTree(e,t=null,o,i,s){const n=new class{constructor(){this.existingKeys={}}addExistingKeys(e){for(let t=0;t<e.length;t++)this.existingKeys[e[t]]=!0}getUniqueKey(e,t){e=_toStringOrNull(e);let o=0;for(;;){let i=e??t;if(i?0!==o&&(i+="_"+o):i=o,!this.existingKeys[i]){const t=String(i);return e&&o>0&&_warn(273,{providedId:e,usedId:t}),this.existingKeys[t]=!0,t}o++}}},{existingCols:r,existingGroups:a,existingColKeys:l}=extractExistingTreeData(i);n.addExistingKeys(l);const d=_recursivelyCreateColumns(e,t,0,o,r,n,a,s),{colGroupSvc:c}=e,h=c?.findMaxDepth(d,0)??0,u=c?c.balanceColumnTree(d,0,h,n):d;return depthFirstOriginalTreeSearch(null,u,((e,t)=>{isProvidedColumnGroup(e)&&e.setupExpandable(),e.originalParent=t})),{columnTree:u,treeDepth:h}}function extractExistingTreeData(e){const t=[],o=[],i=[];return e&&depthFirstOriginalTreeSearch(null,e,(e=>{if(isProvidedColumnGroup(e)){const t=e;o.push(t)}else{const o=e;i.push(o.getId()),t.push(o)}})),{existingCols:t,existingGroups:o,existingColKeys:i}}function _recursivelyCreateColumns(e,t,o,i,s,n,r,a){if(!t)return[];const{colGroupSvc:l}=e,d=new Array(t.length);for(let c=0;c<d.length;c++){const h=t[c];l&&isColumnGroupDef(h)?d[c]=l.createProvidedColumnGroup(i,h,o,s,n,r,a):d[c]=createColumn(e,i,h,s,n,a)}return d}function createColumn(e,t,o,i,s,n){const r=function findExistingColumn(e,t){if(!t)return;for(let o=0;o<t.length;o++){const i=t[o].getUserProvidedColDef();if(!i)continue;if(null!=e.colId){if(t[o].getId()===e.colId)return{idx:o,column:t[o]};continue}if(null!=e.field){if(i.field===e.field)return{idx:o,column:t[o]}}else if(i===e)return{idx:o,column:t[o]}}return}(o,i);r&&i?.splice(r.idx,1);let a=r?.column;if(a){const t=_addColumnDefaultAndTypes(e,o,a.getColId());a.setColDef(t,o,n),_updateColumnState(e,a,t,n)}else{const i=s.getUniqueKey(o.colId,o.field),n=_addColumnDefaultAndTypes(e,o,i);a=new _(n,o,i,t),e.context.createBean(a)}return e.dataTypeSvc?.addColumnListeners(a),a}function updateSomeColumnState(e,t,o,i,s,n,r,a){const{sortSvc:l,pinnedCols:d,colFlex:c}=e;void 0!==o&&t.setVisible(!o,a),l&&(l.updateColSort(t,i,a),void 0!==s&&l.setColSortIndex(t,s)),void 0!==n&&d?.setColPinned(t,n),void 0!==r&&c?.setColFlex(t,r)}function _updateColumnState(e,t,o,i){updateSomeColumnState(e,t,o.hide,o.sort,o.sortIndex,o.pinned,o.flex,i);const s=t.getFlex();if(!(null!=s&&s>0))if(null!=o.width)t.setActualWidth(o.width,i);else{const e=t.getActualWidth();t.setActualWidth(e,i)}}function _addColumnDefaultAndTypes(e,t,o,i){const{gos:s,dataTypeSvc:n}=e,r={};_mergeDeep(r,s.get("defaultColDef"),!1,!0);const a=function updateColDefAndGetColumnType(e,t,o,i){const s=e.dataTypeSvc?.updateColDefAndGetColumnType(t,o,i),n=o.type??s??t.type;return t.type=n,n?convertColumnTypes(n):void 0}(e,r,t,o);a&&function assignColumnTypes(e,t,o){if(!t.length)return;const i=Object.assign({},H),s=e.gos.get("columnTypes")||{};for(const e of Object.keys(s)){const t=s[e];if(e in i)_warn(34,{key:e});else{t.type&&_warn(35),i[e]=t}}t.forEach((e=>{const t=i[e.trim()];t?_mergeDeep(o,t,!1,!0):_warn(36,{t:e})}))}(e,a,r);const l=r.cellDataType;_mergeDeep(r,t,!1,!0),void 0!==l&&(r.cellDataType=l);const d=s.get("autoGroupColumnDef"),c=_isColumnsSortingCoupledToGroup(s);return t.rowGroup&&d&&c&&_mergeDeep(r,{sort:d.sort,initialSort:d.initialSort},!1,!0),n&&(n.postProcess(r),n.validateColDef(r)),s.validateColDef(r,o,i),r}function isColumnGroupDef(e){return void 0!==e.children}function depthFirstOriginalTreeSearch(e,t,o){if(t)for(let i=0;i<t.length;i++){const s=t[i];isProvidedColumnGroup(s)&&depthFirstOriginalTreeSearch(s,s.getChildren(),o),o(s,e)}}function placeLockedColumns(e,t){const o=[],i=[],s=[];e.forEach((e=>{const t=e.getColDef().lockPosition;"right"===t?s.push(e):"left"===t||!0===t?o.push(e):i.push(e)}));return t.get("enableRtl")?[...s,...i,...o]:[...o,...i,...s]}function doesMovePassMarryChildren(e,t){let o=!0;return depthFirstOriginalTreeSearch(null,t,(t=>{if(!isProvidedColumnGroup(t))return;const i=t,s=i.getColGroupDef();if(!(s&&s.marryChildren))return;const n=[];i.getLeafColumns().forEach((t=>{const o=e.indexOf(t);n.push(o)}));Math.max.apply(Math,n)-Math.min.apply(Math,n)>i.getLeafColumns().length-1&&(o=!1)})),o}function getCommonValue(e,t){if(!e||0==e.length)return;const o=t(e[0]);for(let i=1;i<e.length;i++)if(o!==t(e[i]))return;return o}function dispatchColumnPinnedEvent(e,t,o){if(!t.length)return;const i=1===t.length?t[0]:null,s=getCommonValue(t,(e=>e.getPinned()));e.dispatchEvent({type:"columnPinned",pinned:null!=s?s:null,columns:t,column:i,source:o})}function dispatchColumnChangedEvent(e,t,o,i){e.dispatchEvent({type:t,columns:o,column:o&&1==o.length?o[0]:null,source:i})}function dispatchColumnResizedEvent(e,t,o,i,s=null){t?.length&&e.dispatchEvent({type:"columnResized",columns:t,column:1===t.length?t[0]:null,flexColumns:s,finished:o,source:i})}function _applyColumnState(e,t,o){const{colModel:i,rowGroupColsSvc:s,pivotColsSvc:n,autoColSvc:r,selectionColSvc:a,colAnimation:l,visibleCols:d,pivotResultCols:c,environment:h,valueColsSvc:u,eventSvc:g,gos:p}=e,m=i.getColDefCols()??[],f=a?.getColumns();if(!m?.length&&!f?.length)return!1;if(t?.state&&!t.state.forEach)return _warn(32),!1;const syncColumnWithStateItem=(i,r,a,l,d)=>{if(!i)return;const c=((e,t)=>(o,i)=>{const s={value1:void 0,value2:void 0};let n=!1;return e&&(void 0!==e[o]&&(s.value1=e[o],n=!0),_exists(i)&&void 0!==e[i]&&(s.value2=e[i],n=!0)),!n&&t&&(void 0!==t[o]&&(s.value1=t[o]),_exists(i)&&void 0!==t[i]&&(s.value2=t[i])),s})(r,t.defaultState),g=c("flex").value1;if(updateSomeColumnState(e,i,c("hide").value1,c("sort").value1,c("sortIndex").value1,c("pinned").value1,g,o),null==g){const e=c("width").value1;if(null!=e){const t=i.getColDef().minWidth??h.getDefaultColumnMinWidth();null!=t&&e>=t&&i.setActualWidth(e,o)}}!d&&i.isPrimary()&&(u?.syncColumnWithState(i,o,c),s?.syncColumnWithState(i,o,c,a),n?.syncColumnWithState(i,o,c,l))},applyStates=(l,c,h)=>{const u=_compareColumnStatesAndDispatchEvents(e,o),m=c.slice(),f={},C={},w=[],v=[],b=[];let S=0;const y=s?.columns.slice()??[],R=n?.columns.slice()??[];l.forEach((e=>{const t=e.colId;if(t.startsWith(B))return w.push(e),void b.push(e);if(isColumnSelectionCol(t))return v.push(e),void b.push(e);const o=h(t);o?(syncColumnWithStateItem(o,e,f,C,!1),_removeFromArray(m,o)):(b.push(e),S+=1)}));const applyDefaultsFunc=e=>syncColumnWithStateItem(e,null,f,C,!1);m.forEach(applyDefaultsFunc),s?.sortColumns(comparatorByIndex.bind(s,f,y)),n?.sortColumns(comparatorByIndex.bind(n,C,R)),i.refreshCols(!1);const syncColStates=(e,t,o=[])=>{t.forEach((t=>{const i=e(t.colId);_removeFromArray(o,i),syncColumnWithStateItem(i,t,null,null,!0)})),o.forEach(applyDefaultsFunc)};return syncColStates((e=>r?.getColumn(e)??null),w,r?.getColumns()?.slice()),syncColStates((e=>a?.getColumn(e)??null),v,a?.getColumns()?.slice()),function orderLiveColsLikeState(e,t,o){if(!e.applyOrder||!e.state)return;const i=[];e.state.forEach((e=>{null!=e.colId&&i.push(e.colId)})),function sortColsLikeKeys(e,t,o,i){if(null==e)return;let s=[];const n={};t.forEach((t=>{if(n[t])return;const o=e.map[t];o&&(s.push(o),n[t]=!0)}));let r=0;if(e.list.forEach((e=>{const t=e.getColId();if(null!=n[t])return;t.startsWith(B)?s.splice(r++,0,e):s.push(e)})),s=placeLockedColumns(s,i),!doesMovePassMarryChildren(s,o.getColTree()))return void _warn(39);e.list=s}(t.cols,i,t,o)}(t,i,p),d.refresh(o),g.dispatchEvent({type:"columnEverythingChanged",source:o}),u(),{unmatchedAndAutoStates:b,unmatchedCount:S}};l?.start();let{unmatchedAndAutoStates:C,unmatchedCount:w}=applyStates(t.state||[],m,(e=>i.getColDefCol(e)));if(C.length>0||_exists(t.defaultState)){w=applyStates(C,c?.getPivotResultCols()?.list??[],(e=>c?.getPivotResultCol(e)??null)).unmatchedCount}return l?.finish(),0===w}function _compareColumnStatesAndDispatchEvents(e,t){const{rowGroupColsSvc:o,pivotColsSvc:i,valueColsSvc:s,colModel:n,sortSvc:r,eventSvc:a}=e,l={rowGroupColumns:o?.columns.slice()??[],pivotColumns:i?.columns.slice()??[],valueColumns:s?.columns.slice()??[]},d=_getColumnState(e),c={};return d.forEach((e=>{c[e.colId]=e})),()=>{const dispatchWhenListsDifferent=(e,o,i,s)=>{if(_areEqual(o.map(s),i.map(s)))return;const n=new Set(o);i.forEach((e=>{n.delete(e)||n.add(e)}));const r=[...n];a.dispatchEvent({type:e,columns:r,column:1===r.length?r[0]:null,source:t})},getChangedColumns=e=>{const t=[];return n.forAllCols((o=>{const i=c[o.getColId()];i&&e(i,o)&&t.push(o)})),t},columnIdMapper=e=>e.getColId();dispatchWhenListsDifferent("columnRowGroupChanged",l.rowGroupColumns,o?.columns??[],columnIdMapper),dispatchWhenListsDifferent("columnPivotChanged",l.pivotColumns,i?.columns??[],columnIdMapper);const s=getChangedColumns(((e,t)=>{const o=null!=e.aggFunc,i=o!=t.isValueActive(),s=o&&e.aggFunc!=t.getAggFunc();return i||s}));s.length>0&&dispatchColumnChangedEvent(a,"columnValueChanged",s,t);dispatchColumnResizedEvent(a,getChangedColumns(((e,t)=>e.width!=t.getActualWidth())),!0,t);dispatchColumnPinnedEvent(a,getChangedColumns(((e,t)=>e.pinned!=t.getPinned())),t);!function dispatchColumnVisibleEvent(e,t,o){if(!t.length)return;const i=1===t.length?t[0]:null,s=getCommonValue(t,(e=>e.isVisible()));e.dispatchEvent({type:"columnVisible",visible:s,columns:t,column:i,source:o})}(a,getChangedColumns(((e,t)=>e.hide==t.isVisible())),t);const h=getChangedColumns(((e,t)=>e.sort!=t.getSort()||e.sortIndex!=t.getSortIndex()));h.length>0&&r?.dispatchSortChangedEvents(t,h);const u=_getColumnState(e);!function normaliseColumnMovedEventForColumnState(e,t,o,i,s){const n={};t.forEach((e=>n[e.colId]=e));const r={};e.forEach((e=>{n[e.colId]&&(r[e.colId]=!0)}));const a=e.filter((e=>r[e.colId])),l=t.filter((e=>r[e.colId])),d=[];if(l.forEach(((e,t)=>{const o=a&&a[t];if(o&&o.colId!==e.colId){const e=i.getCol(o.colId);e&&d.push(e)}})),!d.length)return;s.dispatchEvent({type:"columnMoved",columns:d,column:1===d.length?d[0]:null,finished:!0,source:o})}(d,u,t,n,a)}}function _getColumnState(e){const{colModel:t,rowGroupColsSvc:o,pivotColsSvc:i}=e;if(_missing(t.getColDefCols())||!t.isAlive())return[];const s=o?.columns,n=i?.columns,r=[];t.forAllCols((e=>(e=>{const t=e.isRowGroupActive()&&s?s.indexOf(e):null,o=e.isPivotActive()&&n?n.indexOf(e):null,i=e.isValueActive()?e.getAggFunc():null,a=null!=e.getSort()?e.getSort():null,l=null!=e.getSortIndex()?e.getSortIndex():null;r.push({colId:e.getColId(),width:e.getActualWidth(),hide:!e.isVisible(),pinned:e.getPinned(),sort:a,sortIndex:l,aggFunc:i,rowGroup:e.isRowGroupActive(),rowGroupIndex:t,pivot:e.isPivotActive(),pivotIndex:o,flex:e.getFlex()??null})})(e)));const a=new Map(t.getCols().map(((e,t)=>[e.getColId(),t])));return r.sort(((e,t)=>(a.has(e.colId)?a.get(e.colId):-1)-(a.has(t.colId)?a.get(t.colId):-1))),r}function getColumnStateFromColDef(e){const getValueOrNull=(e,t)=>null!=e?e:null!=t?t:null,t=e.getColDef(),o=getValueOrNull(t.sort,t.initialSort),i=getValueOrNull(t.sortIndex,t.initialSortIndex),s=getValueOrNull(t.hide,t.initialHide),n=getValueOrNull(t.pinned,t.initialPinned),r=getValueOrNull(t.width,t.initialWidth),a=getValueOrNull(t.flex,t.initialFlex);let l=getValueOrNull(t.rowGroupIndex,t.initialRowGroupIndex),d=getValueOrNull(t.rowGroup,t.initialRowGroup);null!=l||null!=d&&0!=d||(l=null,d=null);let c=getValueOrNull(t.pivotIndex,t.initialPivotIndex),h=getValueOrNull(t.pivot,t.initialPivot);null!=c||null!=h&&0!=h||(c=null,h=null);const u=getValueOrNull(t.aggFunc,t.initialAggFunc);return{colId:e.getColId(),sort:o,sortIndex:i,hide:s,pinned:n,width:r,flex:a,rowGroup:d,rowGroupIndex:l,pivot:h,pivotIndex:c,aggFunc:u}}var comparatorByIndex=(e,t,o,i)=>{const s=e[o.getId()],n=e[i.getId()],r=null!=s,a=null!=n;if(r&&a)return s-n;if(r)return-1;if(a)return 1;const l=t.indexOf(o),d=t.indexOf(i),c=l>=0;return c&&d>=0?l-d:c?-1:1},U=class{constructor(){this.existingIds={}}getInstanceIdForKey(e){const t=this.existingIds[e];let o;return o="number"!=typeof t?0:t+1,this.existingIds[e]=o,o}},$=class extends I{};function setupCompBean(e,t,o){return o&&e.addDestroyFunc((()=>t.destroyBean(o))),o??e}var K=class{constructor(e){this.cssClassStates={},this.getGui=e}toggleCss(e,t){if(!e)return;if(e.indexOf(" ")>=0){const o=(e||"").split(" ");if(o.length>1)return void o.forEach((e=>this.toggleCss(e,t)))}this.cssClassStates[e]!==t&&e.length&&(this.getGui()?.classList.toggle(e,t),this.cssClassStates[e]=t)}},j=0,q=null,Q=class extends I{constructor(e,t){super(),this.suppressDataRefValidation=!1,this.displayed=!0,this.visible=!0,this.compId=j++,this.cssManager=new K((()=>this.eGui)),this.componentSelectors=new Map((t??[]).map((e=>[e.selector,e]))),e&&this.setTemplate(e)}preConstruct(){this.wireTemplate(this.getGui());const e="component-"+Object.getPrototypeOf(this)?.constructor?.name;this.css?.forEach((t=>this.beans.environment.addGlobalCSS(t,e)))}wireTemplate(e,t){e&&this.gos&&(this.applyElementsToComponent(e),this.createChildComponentsFromTags(e,t))}getCompId(){return this.compId}getDataRefAttribute(e){return e.getAttribute?e.getAttribute(w):null}applyElementsToComponent(e,t,o,i=null){if(void 0===t&&(t=this.getDataRefAttribute(e)),t){const s=this[t];if(s===q)this[t]=i??e;else{const e=o&&o[t];if(!this.suppressDataRefValidation&&!e)throw new Error(`data-ref: ${t} on ${this.constructor.name} with ${s}`)}}}createChildComponentsFromTags(e,t){const o=[];for(const t of e.childNodes??[])o.push(t);o.forEach((o=>{if(!(o instanceof HTMLElement))return;const i=this.createComponentFromElement(o,(e=>{const t=e.getGui();if(t)for(const e of o.attributes??[])t.setAttribute(e.name,e.value)}),t);if(i){if(i.addItems&&o.children.length){this.createChildComponentsFromTags(o,t);const e=Array.prototype.slice.call(o.children);i.addItems(e)}this.swapComponentForNode(i,e,o)}else o.childNodes&&this.createChildComponentsFromTags(o,t)}))}createComponentFromElement(e,t,o){const i=e.nodeName,s=this.getDataRefAttribute(e),n=0===i.indexOf("AG-"),r=n?this.componentSelectors.get(i):null;let a=null;if(r){const e=o&&s?o[s]:void 0;a=new r.component(e),a.setParentComponent(this),this.createBean(a,null,t)}else if(n)throw new Error(`selector: ${i}`);return this.applyElementsToComponent(e,s,o,a),a}swapComponentForNode(e,t,o){const i=e.getGui();t.replaceChild(i,o),t.insertBefore(document.createComment(o.nodeName),i),this.addDestroyFunc(this.destroyBean.bind(this,e))}activateTabIndex(e){const t=this.gos.get("tabIndex");e||(e=[]),e.length||e.push(this.getGui()),e.forEach((e=>e.setAttribute("tabindex",t.toString())))}setTemplate(e,t,o){let i;i="string"==typeof e||null==e?_loadTemplate(e):_createElement(e),this.setTemplateFromElement(i,t,o)}setTemplateFromElement(e,t,o,i=!1){if(this.eGui=e,this.suppressDataRefValidation=i,t)for(let e=0;e<t.length;e++){const o=t[e];this.componentSelectors.set(o.selector,o)}this.wireTemplate(e,o)}getGui(){return this.eGui}getFocusableElement(){return this.eGui}getAriaElement(){return this.getFocusableElement()}setParentComponent(e){this.parentComponent=e}getParentComponent(){return this.parentComponent}setGui(e){this.eGui=e}queryForHtmlElement(e){return this.eGui.querySelector(e)}getContainerAndElement(e,t){let o=t;return null==e?null:(o||(o=this.eGui),_isNodeOrElement(e)?{element:e,parent:o}:{element:e.getGui(),parent:o})}prependChild(e,t){const{element:o,parent:i}=this.getContainerAndElement(e,t)||{};o&&i&&i.insertAdjacentElement("afterbegin",o)}appendChild(e,t){const{element:o,parent:i}=this.getContainerAndElement(e,t)||{};o&&i&&i.appendChild(o)}isDisplayed(){return this.displayed}setVisible(e,t={}){if(e!==this.visible){this.visible=e;const{skipAriaHidden:o}=t;!function _setVisible(e,t,o={}){const{skipAriaHidden:i}=o;e.classList.toggle("ag-invisible",!t),i||_setAriaHidden(e,!t)}(this.eGui,e,{skipAriaHidden:o})}}setDisplayed(e,t={}){if(e!==this.displayed){this.displayed=e;const{skipAriaHidden:o}=t;_setDisplayed(this.eGui,e,{skipAriaHidden:o});const i={type:"displayChanged",visible:this.displayed};this.dispatchLocalEvent(i)}}destroy(){this.parentComponent&&(this.parentComponent=void 0),super.destroy()}addGuiEventListener(e,t,o){this.eGui.addEventListener(e,t,o),this.addDestroyFunc((()=>this.eGui.removeEventListener(e,t)))}addCss(e){this.cssManager.toggleCss(e,!0)}removeCss(e){this.cssManager.toggleCss(e,!1)}toggleCss(e,t){this.cssManager.toggleCss(e,t)}registerCSS(e){this.css||(this.css=[]),this.css.push(e)}};function isColumnFilterComp(e){return"object"==typeof e&&!!e.component}var Y=class _AgPromise{constructor(e){this.status=0,this.resolution=null,this.waiters=[],e((e=>this.onDone(e)),(e=>this.onReject(e)))}static all(e){return e.length?new _AgPromise((t=>{let o=e.length;const i=new Array(o);e.forEach(((e,s)=>{e.then((e=>{i[s]=e,o--,0===o&&t(i)}))}))})):_AgPromise.resolve()}static resolve(e=null){return new _AgPromise((t=>t(e)))}then(e){return new _AgPromise((t=>{1===this.status?t(e(this.resolution)):this.waiters.push((o=>t(e(o))))}))}onDone(e){this.status=1,this.resolution=e,this.waiters.forEach((t=>t(e)))}onReject(e){}};function _getUserCompKeys(e,t,o,i){const{name:s}=o;let n,r,a,l,d,c;if(t){const o=t,h=o[s+"Selector"],u=h?h(i):null,assignComp=t=>{if("string"==typeof t)n=t;else if(null!=t&&!0!==t){e.isFrameworkComponent(t)?a=t:r=t}};u?(assignComp(u.component),l=u.params,d=u.popup,c=u.popupPosition):assignComp(o[s])}return{compName:n,jsComp:r,fwComp:a,paramsFromSelector:l,popupFromSelector:d,popupPositionFromSelector:c}}var Z={name:"dateComponent",mandatoryMethods:["getDate","setDate"],optionalMethods:["afterGuiAttached","setInputPlaceholder","setInputAriaLabel","setDisabled","refresh"]},J={name:"dragAndDropImageComponent",mandatoryMethods:["setIcon","setLabel"]},X={name:"headerComponent",optionalMethods:["refresh"]},ee={name:"innerHeaderComponent"},te={name:"innerHeaderGroupComponent"},oe={name:"headerGroupComponent"},ie={name:"cellRenderer",optionalMethods:["refresh","afterGuiAttached"],cellRenderer:!0},se={name:"loadingCellRenderer",cellRenderer:!0},ne={name:"cellEditor",mandatoryMethods:["getValue"],optionalMethods:["isPopup","isCancelBeforeStart","isCancelAfterEnd","getPopupPosition","focusIn","focusOut","afterGuiAttached","refresh"]},re={name:"loadingOverlayComponent",optionalMethods:["refresh"]},ae={name:"noRowsOverlayComponent",optionalMethods:["refresh"]},le={name:"tooltipComponent"},de={name:"filter",mandatoryMethods:["isFilterActive","doesFilterPass","getModel","setModel"],optionalMethods:["afterGuiAttached","afterGuiDetached","onNewRowsLoaded","getModelAsString","onFloatingFilterChanged","onAnyFilterChanged","refresh"]},ce={name:"floatingFilterComponent",mandatoryMethods:["onParentModelChanged"],optionalMethods:["afterGuiAttached","refresh"]},he={name:"fullWidthCellRenderer",optionalMethods:["refresh","afterGuiAttached"],cellRenderer:!0},ue={name:"loadingCellRenderer",cellRenderer:!0},ge={name:"groupRowRenderer",optionalMethods:["afterGuiAttached"],cellRenderer:!0},pe={name:"detailCellRenderer",optionalMethods:["refresh"],cellRenderer:!0};function _getCellRendererDetails(e,t,o){return e.getCompDetails(t,ie,void 0,o)}function _getLoadingCellRendererDetails(e,t,o){return e.getCompDetails(t,se,"agSkeletonCellRenderer",o,!0)}function _getCellEditorDetails(e,t,o){return e.getCompDetails(t,ne,"agCellEditor",o,!0)}function _getFilterCompKeys(e,t){return _getUserCompKeys(e,t,de)}function _mergeFilterParamsWithApplicationProvidedParams(e,t,o){return e.mergeParams(t,de,o)}function _unwrapUserComp(e){const t=e;return null!=t&&null!=t.getFrameworkComponentInstance?t.getFrameworkComponentInstance():e}var me,fe=new Set,Ce={},we={},ve=!1,be=!1,Se=!1;function runVersionChecks(e){me||(me=e.version);const errorMsg=e=>`You are using incompatible versions of AG Grid modules. Major and minor versions should always match across modules. ${e} Please update all modules to the same version.`;if(e.version?function isValidModuleVersion(e){const[t,o]=e.version.split(".")||[],[i,s]=me.split(".")||[];return t===i&&o===s}(e)||_errorOnce(errorMsg(`'${e.moduleName}' is version ${e.version} but the other modules are version ${me}.`)):_errorOnce(errorMsg(`'${e.moduleName}' is incompatible.`)),e.validate){const t=e.validate();if(!t.isValid){_errorOnce(`${t.message}`)}}}function _registerModule(e,t,o=!1){o||(ve=!0),runVersionChecks(e);const i=e.rowModels??["all"];let s;fe.add(e),void 0!==t?(be=!0,void 0===we[t]&&(we[t]={}),s=we[t]):s=Ce,i.forEach((t=>{void 0===s[t]&&(s[t]={}),s[t][e.moduleName]=e})),e.dependsOn&&e.dependsOn.forEach((e=>_registerModule(e,t,o)))}function _isModuleRegistered(e,t,o){const isRegisteredForRowModel=o=>!!Ce[o]?.[e]||!!we[t]?.[o]?.[e];return isRegisteredForRowModel(o)||isRegisteredForRowModel("all")}function _areModulesGridScoped(){return be}function _getGridRegisteredModules(e,t){const o=we[e]??{};return[...Object.values(o.all??{}),...Object.values(o[t]??{})]}var ye=class{static register(e){_registerModule(e,void 0)}static registerModules(e){e.forEach((e=>_registerModule(e,void 0)))}};var Re=class{constructor(){this.cellValidations=new Map}getCellValidation(e){const{rowNode:t,column:o}=e||{};return this.cellValidations?.get(t)?.get(o)}hasCellValidation(e){return e&&e.rowNode&&e.column?!!this.getCellValidation(e):this.cellValidations.size>0}setCellValidation(e,t){const{rowNode:o,column:i}=e;this.cellValidations.has(o)||this.cellValidations.set(o,new Map),this.cellValidations.get(o).set(i,t)}clearCellValidation(e){const{rowNode:t,column:o}=e;this.cellValidations.get(t)?.delete(o)}setCellValidationMap(e){this.cellValidations=e}getCellValidationMap(){return this.cellValidations}clearCellValidationMap(){this.cellValidations.clear()}},Fe=class{constructor(){this.rowValidations=new Map}getRowValidation(e){const{rowNode:t}=e||{};return this.rowValidations.get(t)}hasRowValidation(e){return e&&e.rowNode?!!this.getRowValidation(e):this.rowValidations.size>0}setRowValidation({rowNode:e},t){this.rowValidations.set(e,t)}clearRowValidation({rowNode:e}){this.rowValidations.delete(e)}setRowValidationMap(e){this.rowValidations=e}getRowValidationMap(){return this.rowValidations}clearRowValidationMap(){this.rowValidations.clear()}};function _areCellsEqual(e,t){const o=e.column===t.column,i=e.rowPinned===t.rowPinned,s=e.rowIndex===t.rowIndex;return o&&i&&s}function _getRowNode(e,t){switch(t.rowPinned){case"top":return e.pinnedRowModel?.getPinnedTopRow(t.rowIndex);case"bottom":return e.pinnedRowModel?.getPinnedBottomRow(t.rowIndex);default:return e.rowModel.getRow(t.rowIndex)}}function _getCellByPosition(e,t){const o=e.spannedRowRenderer?.getCellByPosition(t);if(o)return o;const i=e.rowRenderer.getRowByPosition(t);return i?i.getCellCtrl(t.column):null}function _getRowAbove(e,t){const{rowIndex:o,rowPinned:i}=t,{pageBounds:s,pinnedRowModel:n,rowModel:r}=e;if(0===o)return"top"===i?null:"bottom"===i&&r.isRowsToRender()?{rowIndex:s.getLastRow(),rowPinned:null}:n?.isRowsToRender("top")?{rowIndex:n.getPinnedTopRowCount()-1,rowPinned:"top"}:null;return getNextStickyPosition(e,i?void 0:r.getRow(o),!0)??{rowIndex:o-1,rowPinned:i}}function _getRowBelow(e,t){const{rowIndex:o,rowPinned:i}=t,{pageBounds:s,pinnedRowModel:n,rowModel:r}=e;if(function isLastRowInContainer(e,t){const{rowPinned:o,rowIndex:i}=t,{pinnedRowModel:s,pageBounds:n}=e;if("top"===o){return(s?.getPinnedTopRowCount()??0)-1<=i}if("bottom"===o){return(s?.getPinnedBottomRowCount()??0)-1<=i}return n.getLastRow()<=i}(e,t))return"bottom"===i?null:"top"===i&&r.isRowsToRender()?{rowIndex:s.getFirstRow(),rowPinned:null}:n?.isRowsToRender("bottom")?{rowIndex:0,rowPinned:"bottom"}:null;return getNextStickyPosition(e,i?void 0:r.getRow(o))??{rowIndex:o+1,rowPinned:i}}function getNextStickyPosition(e,t,o){const{gos:i,rowRenderer:s}=e;if(!t?.sticky||!_isGroupRowsSticky(i))return;const n=o?s.getStickyTopRowCtrls():s.getStickyBottomRowCtrls();let r;for(let e=0;e<n.length;e++)if(n[e].rowNode.rowIndex===t.rowIndex){r=n[e+(o?-1:1)];break}return r?{rowIndex:r.rowNode.rowIndex,rowPinned:null}:void 0}function _getRowCtrl(e,t={}){const{rowIndex:o,rowId:i,rowCtrl:s,rowPinned:n}=t;if(s)return s;const{rowModel:r,rowRenderer:a}=e;let{rowNode:l}=t;return l||(i?l=function _getRowById(e,t,o){const{rowModel:i,pinnedRowModel:s}=e;let n;return n??(n=i?.getRowNode(t)),o?n??(n=s?.getPinnedRowById(t,o)):(n??(n=s?.getPinnedRowById(t,"top")),n??(n=s?.getPinnedRowById(t,"bottom"))),n}(e,i,n):null!=o&&(l=r.getRow(o))),a.getRowCtrls(l?[l]:[])?.[0]}function _getCellCtrl(e,t={}){const{cellCtrl:o,colId:i,columnId:s,column:n}=t;if(o)return o;const r=e.colModel.getCol(i??s??_getColId(n)),a=t.rowCtrl??_getRowCtrl(e,t),l=a?.getCellCtrl(r)??void 0;if(l)return l;const d=t.rowNode??a?.rowNode;return d?e.rowRenderer.getCellCtrls([d],[r])?.[0]:void 0}function _stopEditing(e){const{editSvc:t}=e;t?.isBatchEditing()?_destroyEditors(e):t?.stopEditing(void 0,{source:"api"})}function _getColId(e){if(e)return"string"==typeof e?e:e.getColId()}var Ee=Symbol("unedited");function getCellEditorInstanceMap(e,t={}){const o=[],i=e.rowRenderer.getCellCtrls(t.rowNodes,t.columns);for(const e of i){const t=e.comp?.getCellEditor();t&&o.push({ctrl:e,editor:_unwrapUserComp(t)})}return o}function _valuesDiffer({newValue:e,oldValue:t}){return e===Ee&&(e=t),e!==t}function _setupEditor(e,t,o){const{key:i,event:s,cellStartedEdit:n,silent:r}=o??{},a=_getCellCtrl(e,t),l=a?.comp?.getCellEditor(),d=_createEditorParams(e,t,i,n),c=e.editModelSvc?.getEdit(t);let h=1===i?.length?i:d.value;if(void 0===h&&(h=c?.oldValue),e.editModelSvc?.setEdit(t,{newValue:h??Ee,state:"editing"}),l)return void l.refresh?.(d);const u=t.column.getColDef(),g=_getCellEditorDetails(e.userCompFactory,u,d),p=null!=g?.popupFromSelector?g.popupFromSelector:!!u.cellEditorPopup,m=null!=g?.popupPositionFromSelector?g.popupPositionFromSelector:u.cellEditorPopupPosition;checkAndPreventDefault(g.params,s),a&&(a.editCompDetails=g,a.comp?.setEditDetails(g,p,m,e.gos.get("reactiveCustomComponents")),a?.rowCtrl?.refreshRow({suppressFlash:!0}),r||e.editSvc?.dispatchCellEvent(t,null,"cellEditingStarted"))}function _valueFromEditor(e,t){const o={newValueExists:!1};if(e)return o;const i=t?.getCellEditor();if(!i)return o;const s=i.getValidationErrors?.();if((s?.length??0)>0)return o;return{newValue:i.getValue(),newValueExists:!0}}function _createEditorParams(e,t,o,i){const{valueSvc:s,gos:n,editSvc:r}=e,a=_getCellCtrl(e,t),l=t.rowNode?.rowIndex??void 0,d=r?.isBatchEditing(),c=e.colModel.getCol(t.column.getId()),{rowNode:h,column:u}=t,g=r?.getCellDataValue(t)??_valueFromEditor(!1,a?.comp)?.newValue;return _addGridCommonParams(n,{value:g===Ee?s.getValueForDisplay(c,h)?.value:g,eventKey:o??null,column:u,colDef:u.getColDef(),rowIndex:l,node:h,data:h.data,cellStartedEdit:i??!1,onKeyDown:a?.onKeyDown.bind(a),stopEditing:o=>{r.stopEditing(t,{source:d?"ui":"api",suppressNavigateAfterEdit:o}),_destroyEditor(e,t)},eGridCell:a?.eGui,parseValue:e=>s.parseValue(c,h,e,a?.value),formatValue:a?.formatValue.bind(a),validate:()=>{r?.validateEdit()}})}function _purgeUnchangedEdits(e,t){const{editModelSvc:o}=e;o?.getEditMap().forEach(((e,i)=>{e.forEach(((e,s)=>{(t||"editing"!==e.state&&e.newValue!==Ee)&&(_valuesDiffer(e)||"editing"===e.state&&!t||o?.removeEdits({rowNode:i,column:s}))}))}))}function checkAndPreventDefault(e,t){return t instanceof KeyboardEvent&&"agNumberCellEditor"===e.column.getColDef().cellEditor?e.suppressPreventDefault=["-","+",".","e"].includes(t?.key??"")||e.suppressPreventDefault:t?.preventDefault?.(),e}function _syncFromEditors(e){e.editModelSvc?.getEditPositions().forEach((t=>{const o=_getCellCtrl(e,t);if(!o)return;const{newValue:i,newValueExists:s}=_valueFromEditor(!1,o.comp);s&&_syncFromEditor(e,t,i)}))}function _syncFromEditor(e,t,o,i){const{editModelSvc:s,valueSvc:n}=e;if(!s)return;const{rowNode:r,column:a}=t;if(!r||!a)return;const l=s.getEdit(t)?.oldValue??n.getValue(a,r,void 0,"api"),d=!!_getCellCtrl(e,t)?.comp?.getCellEditor();void 0===o&&(o=Ee),s.setEdit(t,{newValue:o,oldValue:l,state:d?"editing":"changed"});const{value:c}=n.getValueForDisplay(a,r,!0);if(o=c,s.setEdit(t,{newValue:o}),o===l||d)return;const h=s.getEdit(t);e.editSvc?.dispatchCellEvent(t,null,"cellValueChanged",{valueChanged:h&&_valuesDiffer(h),newValue:h?.newValue,oldValue:h?.oldValue})}function _destroyEditors(e,t,o){t||(t=e.editModelSvc?.getEditPositions()),t.forEach((t=>_destroyEditor(e,t,o)))}function _destroyEditor(e,t,o){const{editSvc:i,editModelSvc:s}=e,{rowNode:n,column:r}=t,a=_getCellCtrl(e,t);if(!a)return void(s?.hasEdits(t)&&n&&r&&s?.setState(t,"changed"));const{comp:l}=a;if(l&&!l.getCellEditor())return;const d=l?.getCellEditor()?.getValidationErrors?.(),c=s?.getCellValidationModel();d?.length?c?.setCellValidation(t,{errorMessages:d}):c?.clearCellValidation(t);const h="editing"===s?.getEdit(t)?.state;s?.hasEdits(t)&&n&&r&&s?.setState(t,"changed"),l?.setEditDetails(),l?.refreshEditStyles(!1,!1),a?.refreshCell({force:!0,suppressFlash:!0});const u=s?.getEdit(t);h&&"changed"===u?.state&&!o?.silent&&i?.dispatchCellEvent(t,null,"cellEditingStopped",{valueChanged:u&&_valuesDiffer(u),newValue:u?.newValue,oldValue:u?.oldValue})}function _populateModelValidationErrors(e){const t=getCellEditorInstanceMap(e),o=new Re,{ariaAnnounce:i,localeSvc:s,editModelSvc:n,gos:r}=e,a="fullRow"===r.get("editType"),l=_getLocaleTextFunc(s)("ariaValidationErrorPrefix","Cell Editor Validation");for(const e of t){const{ctrl:t,editor:s}=e,{rowNode:n,column:r}=t,a=s.getValidationErrors?.()??[],d=s.getValidationElement?.();if(d){const e=null!=a&&a.length>0,t=e?a.join(". "):"";_toggleAriaAttribute(d,"invalid",e),e&&i.announceValue(`${l} ${a}`,"editorValidation"),d instanceof HTMLInputElement?d.setCustomValidity(t):d.classList.toggle("invalid",e)}a?.length>0&&o.setCellValidation({rowNode:n,column:r},{errorMessages:a})}_syncFromEditors(e),n?.setCellValidationModel(o);const d=new Set;for(const{ctrl:e}of t)d.add(e.rowCtrl);if(a){const t=_generateRowValidationErrors(e);n?.setRowValidationModel(t)}for(const e of d.values()){e.rowEditStyleFeature?.applyRowStyles();for(const t of e.getAllCellCtrls())t.tooltipFeature?.refreshTooltip(!0),t.editorTooltipFeature?.refreshTooltip(!0),t.editStyleFeature?.applyCellStyles?.()}}var _generateRowValidationErrors=e=>{const t=new Fe,o=e.gos.get("getFullRowEditValidationErrors"),i=e.editModelSvc?.getEditMap();if(!i)return t;for(const e of i.keys()){const s=i.get(e);if(!s)continue;const n=[],{rowIndex:r,rowPinned:a}=e;for(const e of s.keys()){const t=s.get(e);t&&n.push({column:e,colId:e.getColId(),rowIndex:r,rowPinned:a,...t,newValue:t.newValue===Ee?void 0:t.newValue})}const l=o?.({editorsState:n})??[];l.length>0&&t.setRowValidation({rowNode:e},{errorMessages:l})}return t};function _getHeaderClassesFromColDef(e,t,o,i){return _missing(e)?[]:getColumnClassesFromCollDef(e.headerClass,e,t,o,i)}function refreshFirstAndLastStyles(e,t,o){e.toggleCss("ag-column-first",o.isColAtEdge(t,"first")),e.toggleCss("ag-column-last",o.isColAtEdge(t,"last"))}function getColumnClassesFromCollDef(e,t,o,i,s){if(_missing(e))return[];let n;if("function"==typeof e){const r=function getClassParams(e,t,o,i){return _addGridCommonParams(t,{colDef:e,column:o,columnGroup:i})}(t,o,i,s);n=e(r)}else n=e;return"string"==typeof n?[n]:Array.isArray(n)?[...n]:[]}function _isManualPinnedRow(e){return!(!e.rowPinned||!e.pinnedSibling)}function _getNodesInRangeForSelection(e,t,o,i){const s="top"===t;if(!o)return _getNodesInRangeForSelection(e,t,s?e.getPinnedTopRow(0):e.getPinnedBottomRow(0),i);if(!i){const i=s?e.getPinnedTopRowCount():e.getPinnedBottomRowCount();return _getNodesInRangeForSelection(e,t,o,s?e.getPinnedTopRow(i-1):e.getPinnedBottomRow(i-1))}let n=!1,r=!1;const a=[];return e.forEachPinnedRow(t,(e=>e!==o||n?n&&e===i?(r=!0,void a.push(e)):void(n&&!r&&a.push(e)):(n=!0,void a.push(e)))),a}var Pe="Backspace",De="Tab",xe="Enter",Me="Escape",Te=" ",Ae="ArrowLeft",Ie="ArrowUp",ke="ArrowRight",Le="ArrowDown",Ge="Delete",Ne="F2",_e="PageUp",Oe="PageDown",He="Home",Ve="End",Be="KeyA",ze="KeyC",We="KeyD",Ue="KeyV",$e="KeyX",Ke="KeyY",je="KeyZ",qe=!1,Qe=0;function toggleKeyboardMode(e){const t=qe,o="keydown"===e.type;o&&(e.ctrlKey||e.metaKey||e.altKey)||t!==o&&(qe=o)}function _registerKeyboardFocusEvents(e){const t=_getDocument(e);return function addKeyboardModeEvents(e){Qe>0||(e.addEventListener("keydown",toggleKeyboardMode),e.addEventListener("mousedown",toggleKeyboardMode))}(t),Qe++,()=>{Qe--,function removeKeyboardModeEvents(e){Qe>0||(e.removeEventListener("keydown",toggleKeyboardMode),e.removeEventListener("mousedown",toggleKeyboardMode))}(t)}}function _findFocusableElements(e,t,o=!1){let i=f;t&&(i+=", "+t),o&&(i+=', [tabindex="-1"]');const s=Array.prototype.slice.apply(e.querySelectorAll("[tabindex], input, select, button, textarea, [href]")).filter((e=>_isVisible(e))),n=Array.prototype.slice.apply(e.querySelectorAll(i));if(!n.length)return s;return r=n,s.filter((e=>-1===r.indexOf(e)));var r}function _focusInto(e,t=!1,o=!1,i=!1){const s=_findFocusableElements(e,i?".ag-tab-guard":null,o),n=t?_last(s):s[0];return!!n&&(n.focus({preventScroll:!0}),!0)}function _findNextFocusableElement(e,t,o,i){const s=_findFocusableElements(t,o?':not([tabindex="-1"])':null),n=_getActiveDomElement(e);let r;r=o?s.findIndex((e=>e.contains(n))):s.indexOf(n);const a=r+(i?-1:1);return a<0||a>=s.length?null:s[a]}function _findTabbableParent(e,t=5){let o=0;for(;e&&null===_getTabIndex(e)&&++o<=t;)e=e.parentElement;return null===_getTabIndex(e)?null:e}function _isHeaderFocusSuppressed(e){return e.gos.get("suppressHeaderFocus")||!!e.overlays?.isExclusive()}function _isCellFocusSuppressed(e){return e.gos.get("suppressCellFocus")||!!e.overlays?.isExclusive()}function _focusNextGridCoreContainer(e,t,o=!1){const i=e.ctrlsSvc.get("gridCtrl");return!(o||!i.focusNextInnerContainer(t))||((o||!t&&!i.isDetailGrid())&&i.forceFocusOutOfContainer(t),!1)}var Ye=class extends I{constructor(e,t,o,i){super(),this.cellCtrl=e,this.rowNode=o,this.rowCtrl=i,this.beans=t}init(){this.eGui=this.cellCtrl.eGui}onKeyDown(e){const t=e.key;switch(t){case xe:this.onEnterKeyDown(e);break;case Ne:this.onF2KeyDown(e);break;case Me:this.onEscapeKeyDown(e);break;case De:this.onTabKeyDown(e);break;case Pe:case Ge:this.onBackspaceOrDeleteKeyDown(t,e);break;case Le:case Ie:case ke:case Ae:this.onNavigationKeyDown(e,t)}}onNavigationKeyDown(e,t){const{cellCtrl:o,beans:i}=this;if(!i.editSvc?.isEditing(o,{withOpenEditor:!0})){if(e.shiftKey&&o.isRangeSelectionEnabled())this.onShiftRangeSelect(e);else{const s=o.getFocusedCellPosition();i.navigation?.navigateToNextCell(e,t,s,!0)}e.preventDefault()}}onShiftRangeSelect(e){const{rangeSvc:t,navigation:o}=this.beans;if(!t)return;const i=t.extendLatestRangeInDirection(e);i&&o?.ensureCellVisible(i)}onTabKeyDown(e){this.beans.navigation?.onTabKeyDown(this.cellCtrl,e)}onBackspaceOrDeleteKeyDown(e,t){const{cellCtrl:o,beans:i,rowNode:s}=this,{gos:n,rangeSvc:r,eventSvc:a,editSvc:l}=i;if(a.dispatchEvent({type:"keyShortcutChangedCellStart"}),function _isDeleteKey(e,t=!1){return e===Ge||!t&&e===Pe&&_isMacOsUserAgent()}(e,n.get("enableCellEditingOnBackspace"))&&!l?.isEditing(o,{withOpenEditor:!0})){if(r&&_isCellSelectionEnabled(n))r.clearCellRangeCellValues({dispatchWrapperEvents:!0,wrapperEventSource:"deleteKey"});else if(o.isCellEditable()){const{column:e}=o,t=this.beans.valueSvc.getDeleteValue(e,s);s.setDataValue(e,t,"cellClear")}}else l?.isEditing(o,{withOpenEditor:!0})||i.editSvc?.startEditing(o,{startedEdit:!0,event:t});a.dispatchEvent({type:"keyShortcutChangedCellEnd"})}onEnterKeyDown(e){const{cellCtrl:t,beans:o}=this,{editSvc:i,navigation:s}=o,n=i?.isEditing(t),r=t.rowNode,a=i?.isRowEditing(r),startEditingAction=t=>{const o=i?.startEditing(t,{startedEdit:!0,event:e});o&&e.preventDefault()};if(n||a){if(this.isCtrlEnter(e))return void i?.applyBulkEdit(t,o?.rangeSvc?.getCellRanges()||[]);if(_populateModelValidationErrors(o),"block-stop"===i?.checkNavWithValidation(t,e))return;i?.isEditing(t,{withOpenEditor:!0})?i?.stopEditing(t,{event:e}):a&&!t.isCellEditable()?i?.stopEditing({rowNode:r},{event:e}):startEditingAction(t)}else if(o.gos.get("enterNavigatesVertically")){const o=e.shiftKey?Ie:Le;s?.navigateToNextCell(null,o,t.cellPosition,!1)}else{if(i?.hasValidationErrors())return;i?.hasValidationErrors(t)&&i.revertSingleCellEdit(t,!0),startEditingAction(t)}}isCtrlEnter(e){return(e.ctrlKey||e.metaKey)&&e.key===xe}onF2KeyDown(e){const{cellCtrl:t,beans:{editSvc:o}}=this,i=o?.isEditing();i&&(_populateModelValidationErrors(this.beans),"block-stop"===o?.checkNavWithValidation(void 0,e))||o?.startEditing(t,{startedEdit:!0,event:e})}onEscapeKeyDown(e){const{cellCtrl:t,beans:{editSvc:o}}=this;"block-stop"===o?.checkNavWithValidation(t,e)&&o.revertSingleCellEdit(t),o?.stopEditing(t,{event:e,cancel:!0})}processCharacter(e){const t=e.target!==this.eGui,{beans:{editSvc:o},cellCtrl:i}=this;if(t)return;if(o?.isEditing(i,{withOpenEditor:!0}))return;if(e.key===Te)this.onSpaceKeyDown(e);else if(o?.isCellEditable(i,"ui")){if(o?.hasValidationErrors()&&!o?.hasValidationErrors(i))return;o?.startEditing(i,{startedEdit:!0,event:e,source:"api"});!i.editCompDetails?.params?.suppressPreventDefault&&e.preventDefault()}}onSpaceKeyDown(e){const{gos:t,editSvc:o}=this.beans,{rowNode:i}=this.cellCtrl;!o?.isEditing(this.cellCtrl,{withOpenEditor:!0})&&_isRowSelection(t)&&this.beans.selectionSvc?.handleSelectionEvent(e,i,"spaceKey"),e.preventDefault()}};function _areEventsNear(e,t,o){if(0===o)return!1;const i=Math.abs(e.clientX-t.clientX),s=Math.abs(e.clientY-t.clientY);return Math.max(i,s)<=o}function _interpretAsRightClick({gos:e},t){return 2===t.button||t.ctrlKey&&e.get("allowContextMenuWithControlKey")}var Ze=class extends I{constructor(e,t,o){super(),this.cellCtrl=e,this.column=o,this.beans=t}onMouseEvent(e,t){if(!_isStopPropagationForAgGrid(t))switch(e){case"click":this.onCellClicked(t);break;case"mousedown":case"touchstart":this.onMouseDown(t);break;case"dblclick":this.onCellDoubleClicked(t);break;case"mouseout":this.onMouseOut(t);break;case"mouseover":this.onMouseOver(t)}}onCellClicked(e){if(this.beans.touchSvc?.handleCellDoubleClick(this,e))return;const{eventSvc:t,rangeSvc:o,editSvc:i,editModelSvc:s,frameworkOverrides:n}=this.beans,r=e.ctrlKey||e.metaKey,{cellCtrl:a}=this,{column:l,cellPosition:d}=a;o&&r&&o.getCellRangeCount(d)>1&&o.intersectLastRange(!0);const c=a.createEvent(e,"cellClicked");t.dispatchEvent(c);const h=l.getColDef();if(h.onCellClicked&&window.setTimeout((()=>{n.wrapOutgoing((()=>{h.onCellClicked(c)}))}),0),"editing"!==s?.getState(a)){const t=i?.isEditing(),o=s?.getCellValidationModel().getCellValidationMap().size??0,n=s?.getRowValidationModel().getRowValidationMap().size??0;if(t&&(o>0||n>0))return;i?.shouldStartEditing(a,e)?i?.startEditing(a,{event:e}):i?.shouldStopEditing(a,e)&&i?.stopEditing(a)}}onCellDoubleClicked(e){const{column:t,beans:o,cellCtrl:i}=this,{eventSvc:s,frameworkOverrides:n,editSvc:r,editModelSvc:a}=o,l=t.getColDef(),d=i.createEvent(e,"cellDoubleClicked");if(s.dispatchEvent(d),"function"==typeof l.onCellDoubleClicked&&window.setTimeout((()=>{n.wrapOutgoing((()=>{l.onCellDoubleClicked(d)}))}),0),r?.shouldStartEditing(this.cellCtrl,e)&&"editing"!==this.beans.editModelSvc?.getState(this.cellCtrl)){const t=r?.isEditing(),o=a?.getCellValidationModel().getCellValidationMap().size??0,s=a?.getRowValidationModel().getRowValidationMap().size??0;if(t&&(o>0||s>0))return;r?.startEditing(i,{event:e})}}onMouseDown(e){const{ctrlKey:t,metaKey:o,shiftKey:i}=e,s=e.target,{cellCtrl:n,beans:r}=this,{eventSvc:a,rangeSvc:l,rowNumbersSvc:d,focusSvc:c,gos:h,editSvc:u}=r;if(this.isRightClickInExistingRange(e))return;const g=l&&!l.isEmpty(),p=this.containsWidget(s),{cellPosition:m,column:f}=n,C=isRowNumberCol(f);if(d&&C&&!d.handleMouseDownOnCell(m,e))return l&&e.preventDefault(),void e.stopImmediatePropagation();if(!i||!g){const t=u?.isEditing(n),o=h.get("enableCellTextSelection")&&e.defaultPrevented,i=(_isBrowserSafari()||o)&&!t&&!_isFocusableFormField(s)&&!p;n.focusCell(i,e)}if(i&&g&&!c.isCellFocused(m)){e.preventDefault();const t=c.getFocusedCell();if(t){const{column:o,rowIndex:i,rowPinned:s}=t;u?.isEditing(t)&&u?.stopEditing(t),c.setFocusedCell({column:o,rowIndex:i,rowPinned:s,forceBrowserFocus:!0,preventScrollOnBrowserFocus:!0,sourceEvent:e})}}if(!p){if(l){C&&e.preventDefault();const s=_interpretAsRightClick(this.beans,e)&&C;if(i)l.extendLatestRangeToCell(m);else if(!s){const e=t||o;l.setRangeToCell(m,e)}}a.dispatchEvent(this.cellCtrl.createEvent(e,"cellMouseDown"))}}isRightClickInExistingRange(e){const{rangeSvc:t}=this.beans;if(t){const o=t.isCellInAnyRange(this.cellCtrl.cellPosition),i=_interpretAsRightClick(this.beans,e);if(o&&i)return!0}return!1}containsWidget(e){return _isElementChildOfClass(e,"ag-selection-checkbox",3)||_isElementChildOfClass(e,"ag-drag-handle",3)}onMouseOut(e){if(this.mouseStayingInsideCell(e))return;const{eventSvc:t,colHover:o}=this.beans;t.dispatchEvent(this.cellCtrl.createEvent(e,"cellMouseOut")),o?.clearMouseOver()}onMouseOver(e){if(this.mouseStayingInsideCell(e))return;const{eventSvc:t,colHover:o}=this.beans;t.dispatchEvent(this.cellCtrl.createEvent(e,"cellMouseOver")),o?.setMouseOver([this.column])}mouseStayingInsideCell(e){if(!e.target||!e.relatedTarget)return!1;const t=this.cellCtrl.eGui,o=t.contains(e.target),i=t.contains(e.relatedTarget);return o&&i}},Je=class extends I{constructor(e,t){super(),this.cellCtrl=e,this.beans=t,this.column=e.column,this.rowNode=e.rowNode}setupRowSpan(){this.rowSpan=this.column.getRowSpan(this.rowNode),this.addManagedListeners(this.beans.eventSvc,{newColumnsLoaded:()=>this.onNewColumnsLoaded()})}init(){this.eSetLeft=this.cellCtrl.getRootElement(),this.eContent=this.cellCtrl.eGui;const e=this.cellCtrl.getCellSpan();if(e||(this.setupColSpan(),this.setupRowSpan()),this.onLeftChanged(),this.onWidthChanged(),e||this._legacyApplyRowSpan(),e){const t=this.refreshSpanHeight.bind(this,e);t(),this.addManagedListeners(this.beans.eventSvc,{paginationChanged:t,recalculateRowBounds:t,pinnedHeightChanged:t})}}refreshSpanHeight(e){const t=e.getCellHeight();null!=t&&(this.eContent.style.height=`${t}px`)}onNewColumnsLoaded(){const e=this.column.getRowSpan(this.rowNode);this.rowSpan!==e&&(this.rowSpan=e,this._legacyApplyRowSpan(!0))}onDisplayColumnsChanged(){const e=this.getColSpanningList();_areEqual(this.colsSpanning,e)||(this.colsSpanning=e,this.onWidthChanged(),this.onLeftChanged())}setupColSpan(){null!=this.column.getColDef().colSpan&&(this.colsSpanning=this.getColSpanningList(),this.addManagedListeners(this.beans.eventSvc,{displayedColumnsChanged:this.onDisplayColumnsChanged.bind(this),displayedColumnsWidthChanged:this.onWidthChanged.bind(this)}))}onWidthChanged(){if(!this.eContent)return;const e=this.getCellWidth();this.eContent.style.width=`${e}px`}getCellWidth(){return this.colsSpanning?this.colsSpanning.reduce(((e,t)=>e+t.getActualWidth()),0):this.column.getActualWidth()}getColSpanningList(){const{column:e,rowNode:t}=this,o=e.getColSpan(t),i=[];if(1===o)i.push(e);else{let t=e;const s=e.getPinned();for(let e=0;t&&e<o&&(i.push(t),t=this.beans.visibleCols.getColAfter(t),t&&!_missing(t))&&s===t.getPinned();e++);}return i}onLeftChanged(){if(!this.eSetLeft)return;const e=this.modifyLeftForPrintLayout(this.getCellLeft());this.eSetLeft.style.left=e+"px"}getCellLeft(){let e;return e=this.beans.gos.get("enableRtl")&&this.colsSpanning?_last(this.colsSpanning):this.column,e.getLeft()}modifyLeftForPrintLayout(e){if(!this.cellCtrl.printLayout||"left"===this.column.getPinned())return e;const{visibleCols:t}=this.beans,o=t.getColsLeftWidth();if("right"===this.column.getPinned()){return o+t.bodyWidth+(e||0)}return o+(e||0)}_legacyApplyRowSpan(e){if(1===this.rowSpan&&!e)return;const t=_getRowHeightAsNumber(this.beans)*this.rowSpan;this.eContent.style.height=`${t}px`,this.eContent.style.zIndex="1"}destroy(){super.destroy()}},Xe="cellCtrl";function _getCellCtrlForEventTarget(e,t){return _getCtrlForEventTarget(e,t,Xe)}var et=0,tt=class extends I{constructor(e,t,o,i){super(),this.column=e,this.rowNode=t,this.rowCtrl=i,this.rangeFeature=void 0,this.rowResizeFeature=void 0,this.positionFeature=void 0,this.customStyleFeature=void 0,this.editStyleFeature=void 0,this.mouseListener=void 0,this.keyboardListener=void 0,this.suppressRefreshCell=!1,this.onCompAttachedFuncs=[],this.onEditorAttachedFuncs=[],this.focusEventWhileNotReady=null,this.hasBeenFocused=!1,this.hasEdit=!1,this.tooltipFeature=void 0,this.editorTooltipFeature=void 0,this.beans=o,this.gos=o.gos,this.editSvc=o.editSvc,this.hasEdit=!!o.editSvc;const{colId:s}=e;this.instanceId=s+"-"+et++,this.createCellPosition(),this.updateAndFormatValue(!1)}addFeatures(){const{beans:e}=this;this.positionFeature=new Je(this,e),this.customStyleFeature=e.cellStyles?.createCellCustomStyleFeature(this,e),this.editStyleFeature=e.editSvc?.createCellStyleFeature(this,e),this.mouseListener=new Ze(this,e,this.column),this.keyboardListener=new Ye(this,e,this.rowNode,this.rowCtrl),this.enableTooltipFeature();const{rangeSvc:t}=e;t&&_isCellSelectionEnabled(e.gos)&&(this.rangeFeature=t.createCellRangeFeature(e,this)),isRowNumberCol(this.column)&&(this.rowResizeFeature=this.beans.rowNumbersSvc.createRowNumbersRowResizerFeature(e,this))}isCellSpanning(){return!1}getCellSpan(){}removeFeatures(){const e=this.beans.context;this.positionFeature=e.destroyBean(this.positionFeature),this.editorTooltipFeature=e.destroyBean(this.editorTooltipFeature),this.customStyleFeature=e.destroyBean(this.customStyleFeature),this.editStyleFeature=e.destroyBean(this.editStyleFeature),this.mouseListener=e.destroyBean(this.mouseListener),this.keyboardListener=e.destroyBean(this.keyboardListener),this.rangeFeature=e.destroyBean(this.rangeFeature),this.rowResizeFeature=e.destroyBean(this.rowResizeFeature),this.disableTooltipFeature()}enableTooltipFeature(e,t){this.tooltipFeature=this.beans.tooltipSvc?.enableCellTooltipFeature(this,e,t)}disableTooltipFeature(){this.tooltipFeature=this.beans.context.destroyBean(this.tooltipFeature)}enableEditorTooltipFeature(e){this.editorTooltipFeature&&this.disableEditorTooltipFeature(),this.editorTooltipFeature=this.beans.tooltipSvc?.setupCellEditorTooltip(this,e),_populateModelValidationErrors(this.beans)}disableEditorTooltipFeature(){this.editorTooltipFeature=this.beans.context.destroyBean(this.editorTooltipFeature)}setComp(e,t,o,i,s,n,r){this.comp=e,this.eGui=t,this.printLayout=s,r??(r=this),this.addDomData(r),this.addFeatures(),r.addDestroyFunc((()=>this.removeFeatures())),this.onSuppressCellFocusChanged(this.beans.gos.get("suppressCellFocus")),this.setupFocus(),this.applyStaticCssClasses(),this.setWrapText(),this.onFirstRightPinnedChanged(),this.onLastLeftPinnedChanged(),this.onColumnHover(),this.setupControlComps(),this.setupAutoHeight(i,r),this.refreshFirstAndLastStyles(),this.refreshAriaColIndex(),this.positionFeature?.init(),this.customStyleFeature?.setComp(e),this.editStyleFeature?.setComp(e),this.tooltipFeature?.refreshTooltip(),this.keyboardListener?.init(),this.rangeFeature?.setComp(e),this.rowResizeFeature?.refreshRowResizer(),n&&this.isCellEditable()?this.editSvc?.startEditing(this,{startedEdit:!0,source:"api"}):this.showValue(!1,!0),this.onCompAttachedFuncs.length&&(this.onCompAttachedFuncs.forEach((e=>e())),this.onCompAttachedFuncs=[])}setupAutoHeight(e,t){this.isAutoHeight=this.beans.rowAutoHeight?.setupCellAutoHeight(this,e,t)??!1}getCellAriaRole(){return this.column.getColDef().cellAriaRole??"gridcell"}isCellRenderer(){const e=this.column.getColDef();return null!=e.cellRenderer||null!=e.cellRendererSelector}getValueToDisplay(){return this.valueFormatted??this.value}getDeferLoadingCellRenderer(){const{beans:e,column:t}=this,{userCompFactory:o,ctrlsSvc:i,eventSvc:s}=e,n=t.getColDef(),r=this.createCellRendererParams();r.deferRender=!0;const a=_getLoadingCellRendererDetails(o,n,r);if(i.getGridBodyCtrl()?.scrollFeature?.isScrolling()){let e;const t=new Y((t=>{e=t}));return this.addManagedListeners(s,{bodyScrollEnd:()=>e()}),{loadingComp:a,onReady:t}}return{loadingComp:a,onReady:Y.resolve()}}showValue(e,t){const{beans:o,column:i,rowNode:s,rangeFeature:n}=this,{userCompFactory:r}=o;let a,l=this.getValueToDisplay();const d=s.stub&&null==s.groupData?.[i.getId()],c=i.getColDef();if(d||this.isCellRenderer()){const e=this.createCellRendererParams();a=!d||isRowNumberCol(i)?_getCellRendererDetails(r,c,e):_getLoadingCellRendererDetails(r,c,e)}if(!a&&!d&&o.findSvc?.isMatch(s,i)){const e=this.createCellRendererParams();a=_getCellRendererDetails(r,{...i.getColDef(),cellRenderer:"agFindCellRenderer"},e)}if(this.hasEdit&&this.editSvc.isBatchEditing()&&this.editSvc.isRowEditing(s,{checkSiblings:!0})){const e=this.editSvc.prepDetailsDuringBatch(this,{compDetails:a,valueToDisplay:l});e&&(e.compDetails?a=e.compDetails:e.valueToDisplay&&(l=e.valueToDisplay))}this.comp.setRenderDetails(a,l,e),!t&&n&&_requestAnimationFrame(o,(()=>n?.refreshHandle())),this.rowResizeFeature?.refreshRowResizer()}setupControlComps(){const e=this.column.getColDef();this.includeSelection=this.isIncludeControl(this.isCheckboxSelection(e),!0),this.includeRowDrag=this.isIncludeControl(e.rowDrag),this.includeDndSource=this.isIncludeControl(e.dndSource),this.comp.setIncludeSelection(this.includeSelection),this.comp.setIncludeDndSource(this.includeDndSource),this.comp.setIncludeRowDrag(this.includeRowDrag)}isForceWrapper(){return this.beans.gos.get("enableCellTextSelection")||this.column.isAutoHeight()}isIncludeControl(e,t=!1){return(null==this.rowNode.rowPinned||t&&_isManualPinnedRow(this.rowNode))&&!!e}isCheckboxSelection(e){const{rowSelection:t,groupDisplayType:o}=this.beans.gridOptions,i=_getCheckboxLocation(t),s=isColumnSelectionCol(this.column);return("custom"!==o||"selectionColumn"===i||!s)&&(e.checkboxSelection||s&&"object"==typeof t&&_getCheckboxes(t))}refreshShouldDestroy(){const e=this.column.getColDef(),t=this.includeSelection!=this.isIncludeControl(this.isCheckboxSelection(e),!0),o=this.includeRowDrag!=this.isIncludeControl(e.rowDrag),i=this.includeDndSource!=this.isIncludeControl(e.dndSource),s=this.isAutoHeight!=this.column.isAutoHeight();return t||o||i||s}onPopupEditorClosed(){const{editSvc:e}=this.beans;e?.isEditing(this,{withOpenEditor:!0})&&e?.stopEditing(this,{source:e?.isBatchEditing()?"ui":"api"})}stopEditing(e=!1){const{editSvc:t}=this.beans;return t?.stopEditing(this,{cancel:e,source:t?.isBatchEditing()?"ui":"api"})??!1}createCellRendererParams(){const{value:e,valueFormatted:t,column:o,rowNode:i,comp:s,eGui:n,beans:{valueSvc:r,gos:a,editSvc:l}}=this;return _addGridCommonParams(a,{value:e,valueFormatted:t,getValue:()=>r.getValueForDisplay(o,i).value,setValue:e=>l?.setDataValue({rowNode:i,column:o},e)||r.setValue(i,o,e),formatValue:this.formatValue.bind(this),data:i.data,node:i,pinned:o.getPinned(),colDef:o.getColDef(),column:o,refreshCell:this.refreshCell.bind(this),eGridCell:n,eParentOfValue:s.getParentOfValue(),registerRowDragger:(e,t,o,i)=>this.registerRowDragger(e,t,i),setTooltip:(e,t)=>{a.assertModuleRegistered("Tooltip",3),this.tooltipFeature&&this.disableTooltipFeature(),this.enableTooltipFeature(e,t),this.tooltipFeature?.refreshTooltip()}})}onCellChanged(e){e.column===this.column&&this.refreshCell({})}refreshOrDestroyCell(e){this.refreshShouldDestroy()?this.rowCtrl?.recreateCell(this):this.refreshCell(e)}refreshCell({force:e,suppressFlash:t,newData:o}={}){if(this.suppressRefreshCell)return;const i=this.column.getColDef(),s=null==i.field&&null==i.valueGetter&&null==i.showRowGroup,n=e||s||o,r=!!this.comp,a=this.updateAndFormatValue(r);if(r){if(n||a){this.showValue(!!o,!1);const e=this.beans.filterManager?.isSuppressFlashingCellsBecauseFiltering();!t&&!e&&i.enableCellChangeFlash&&this.beans.cellFlashSvc?.flashCell(this),this.editStyleFeature?.applyCellStyles?.(),this.customStyleFeature?.applyUserStyles(),this.customStyleFeature?.applyClassesFromColDef()}this.tooltipFeature?.refreshTooltip(),this.customStyleFeature?.applyCellClassRules()}}isCellEditable(){return this.column.isCellEditable(this.rowNode)}formatValue(e){return this.callValueFormatter(e)??e}callValueFormatter(e){return this.beans.valueSvc.formatValue(this.column,this.rowNode,e)}updateAndFormatValue(e){const t=this.value,o=this.valueFormatted,{value:i,valueFormatted:s}=this.beans.valueSvc.getValueForDisplay(this.column,this.rowNode,!0);return this.value=i,this.valueFormatted=s,!e||(!this.valuesAreEqual(t,this.value)||this.valueFormatted!=o)}valuesAreEqual(e,t){const o=this.column.getColDef();return o.equals?o.equals(e,t):e===t}addDomData(e){const t=this.eGui;_setDomData(this.beans.gos,t,Xe,this),e.addDestroyFunc((()=>_setDomData(this.beans.gos,t,Xe,null)))}createEvent(e,t){const{rowNode:o,column:i,value:s,beans:n}=this;return function _createCellEvent(e,t,o,{rowNode:i,column:s},n){return _addGridCommonParams(e.gos,{type:o,node:i,data:i.data,value:n,column:s,colDef:s.getColDef(),rowPinned:i.rowPinned,event:t,rowIndex:i.rowIndex})}(n,e,t,{rowNode:o,column:i},s)}processCharacter(e){this.keyboardListener?.processCharacter(e)}onKeyDown(e){this.keyboardListener?.onKeyDown(e)}onMouseEvent(e,t){this.mouseListener?.onMouseEvent(e,t)}getColSpanningList(){return this.positionFeature?.getColSpanningList()??[]}onLeftChanged(){this.comp&&this.positionFeature?.onLeftChanged()}onDisplayedColumnsChanged(){this.eGui&&(this.refreshAriaColIndex(),this.refreshFirstAndLastStyles())}refreshFirstAndLastStyles(){const{comp:e,column:t,beans:o}=this;refreshFirstAndLastStyles(e,t,o.visibleCols)}refreshAriaColIndex(){const e=this.beans.visibleCols.getAriaColIndex(this.column);_setAriaColIndex(this.eGui,e)}onWidthChanged(){return this.positionFeature?.onWidthChanged()}getRowPosition(){const{rowIndex:e,rowPinned:t}=this.cellPosition;return{rowIndex:e,rowPinned:t}}updateRangeBordersIfRangeCount(){this.comp&&this.rangeFeature?.updateRangeBordersIfRangeCount()}onCellSelectionChanged(){this.comp&&this.rangeFeature?.onCellSelectionChanged()}isRangeSelectionEnabled(){return null!=this.rangeFeature}focusCell(e=!1,t){this.beans.focusSvc.setFocusedCell({...this.getFocusedCellPosition(),forceBrowserFocus:e,sourceEvent:t})}restoreFocus(e=!1){const{beans:{editSvc:t,focusSvc:o},comp:i}=this;if(!i||t?.isEditing(this)||!this.isCellFocused()||!o.shouldTakeFocus())return;const focus=()=>{if(!this.isAlive())return;const e=i.getFocusableElement();this.isCellFocused()&&e.focus({preventScroll:!0})};e?setTimeout(focus,0):focus()}onRowIndexChanged(){this.createCellPosition(),this.onCellFocused(),this.restoreFocus(),this.rangeFeature?.onCellSelectionChanged(),this.rowResizeFeature?.refreshRowResizer()}onSuppressCellFocusChanged(e){const t=this.eGui;t&&(isRowNumberCol(this.column)&&(e=!0),_addOrRemoveAttribute(t,"tabindex",e?void 0:-1))}onFirstRightPinnedChanged(){if(!this.comp)return;const e=this.column.isFirstRightPinned();this.comp.toggleCss("ag-cell-first-right-pinned",e)}onLastLeftPinnedChanged(){if(!this.comp)return;const e=this.column.isLastLeftPinned();this.comp.toggleCss("ag-cell-last-left-pinned",e)}checkCellFocused(){return this.beans.focusSvc.isCellFocused(this.cellPosition)}isCellFocused(){const e=this.checkCellFocused();return this.hasBeenFocused||(this.hasBeenFocused=e),e}setupFocus(){this.restoreFocus(!0),this.onCellFocused(this.focusEventWhileNotReady??void 0)}onCellFocused(e){const{beans:t}=this;if(_isCellFocusSuppressed(t))return;if(!this.comp)return void(e&&(this.focusEventWhileNotReady=e));const o=this.isCellFocused(),i=t.editSvc?.isEditing(this)??!1;if(this.comp.toggleCss("ag-cell-focus",o),o&&e&&e.forceBrowserFocus){let t=this.comp.getFocusableElement();if(i){const e=_findFocusableElements(t,null,!0);e.length&&(t=e[0])}t.focus({preventScroll:!!e.preventScrollOnBrowserFocus})}o&&this.rowCtrl.announceDescription()}createCellPosition(){const{rowIndex:e,rowPinned:t}=this.rowNode;this.cellPosition={rowIndex:e,rowPinned:_makeNull(t),column:this.column}}applyStaticCssClasses(){const{comp:e}=this;e.toggleCss("ag-cell",!0),e.toggleCss("ag-cell-not-inline-editing",!0);const t=1==this.column.isAutoHeight();e.toggleCss("ag-cell-auto-height",t),e.toggleCss("ag-cell-normal-height",!t)}onColumnHover(){this.beans.colHover?.onCellColumnHover(this.column,this.comp)}onColDefChanged(){this.comp&&(this.column.isTooltipEnabled()?(this.disableTooltipFeature(),this.enableTooltipFeature()):this.disableTooltipFeature(),this.setWrapText(),this.editSvc?.isEditing(this)?this.editSvc?.handleColDefChanged(this):this.refreshOrDestroyCell({force:!0,suppressFlash:!0}))}setWrapText(){const e=1==this.column.getColDef().wrapText;this.comp.toggleCss("ag-cell-wrap-text",e)}dispatchCellContextMenuEvent(e){const t=this.column.getColDef(),o=this.createEvent(e,"cellContextMenu"),{beans:i}=this;i.eventSvc.dispatchEvent(o),t.onCellContextMenu&&window.setTimeout((()=>{i.frameworkOverrides.wrapOutgoing((()=>{t.onCellContextMenu(o)}))}),0)}getCellRenderer(){return this.comp?.getCellRenderer()??null}destroy(){this.onCompAttachedFuncs=[],this.onEditorAttachedFuncs=[],this.isCellFocused()&&this.hasBrowserFocus()&&this.beans.focusSvc.attemptToRecoverFocus(),super.destroy()}hasBrowserFocus(){return this.eGui?.contains(_getActiveDomElement(this.beans))??!1}createSelectionCheckbox(){const e=this.beans.selectionSvc?.createCheckboxSelectionComponent();if(e)return this.beans.context.createBean(e),e.init({rowNode:this.rowNode,column:this.column}),e}createDndSource(){const e=this.beans.registry.createDynamicBean("dndSourceComp",!1,this.rowNode,this.column,this.eGui);return e&&this.beans.context.createBean(e),e}registerRowDragger(e,t,o){if(this.customRowDragComp)return void this.customRowDragComp.setDragElement(e,t);const i=this.createRowDragComp(e,t,o);i&&(this.customRowDragComp=i,this.addDestroyFunc((()=>{this.beans.context.destroyBean(i),this.customRowDragComp=null})))}createRowDragComp(e,t,o){const i=this.beans.rowDragSvc?.createRowDragCompForCell(this.rowNode,this.column,(()=>this.value),e,t,o);if(i)return this.beans.context.createBean(i),i}cellEditorAttached(){this.onEditorAttachedFuncs.forEach((e=>e())),this.onEditorAttachedFuncs=[]}setFocusedCellPosition(e){}getFocusedCellPosition(){return this.cellPosition}refreshAriaRowIndex(){}getRootElement(){return this.eGui}},ot="__ag_grid_instance";function _stampTopLevelGridCompWithGridInstance(e,t){t[ot]=e.gridInstanceId}function _isEventFromThisGrid(e,t){return _isElementInThisGrid(e,t.target)}function _isElementInThisGrid(e,t){let o=t;for(;o;){const t=o[ot];if(_exists(t)){return t===e.gridInstanceId}o=o.parentElement}return!1}function _getNormalisedMousePosition(e,t){const o=_isDomLayout(e.gos,"normal"),i=t;let s,n;null!=i.clientX||null!=i.clientY?(s=i.clientX,n=i.clientY):(s=i.x,n=i.y);const{pageFirstPixel:r}=e.pageBounds.getCurrentPagePixelRange();if(n+=r,o){const t=e.ctrlsSvc.getScrollFeature(),o=t.getVScrollPosition();s+=t.getHScrollPosition().left,n+=o.top}return{x:s,y:n}}function createUniqueColumnGroupId(e,t){return e+"_"+t}function isColumnGroup(e){return e instanceof it}var it=class extends I{constructor(e,t,o,i){super(),this.providedColumnGroup=e,this.groupId=t,this.partId=o,this.pinned=i,this.isColumn=!1,this.displayedChildren=[],this.autoHeaderHeight=null,this.parent=null}reset(){this.parent=null,this.children=null,this.displayedChildren=null}getParent(){return this.parent}getUniqueId(){return createUniqueColumnGroupId(this.groupId,this.partId)}isEmptyGroup(){return 0===this.displayedChildren.length}isMoving(){const e=this.getProvidedColumnGroup().getLeafColumns();return!(!e||0===e.length)&&e.every((e=>e.isMoving()))}checkLeft(){if(this.displayedChildren.forEach((e=>{isColumnGroup(e)&&e.checkLeft()})),this.displayedChildren.length>0)if(this.gos.get("enableRtl")){const e=_last(this.displayedChildren).getLeft();this.setLeft(e)}else{const e=this.displayedChildren[0].getLeft();this.setLeft(e)}else this.setLeft(null)}getLeft(){return this.left}getOldLeft(){return this.oldLeft}setLeft(e){this.oldLeft=this.left,this.left!==e&&(this.left=e,this.dispatchLocalEvent({type:"leftChanged"}))}getPinned(){return this.pinned}getGroupId(){return this.groupId}getPartId(){return this.partId}getActualWidth(){let e=0;return this.displayedChildren?.forEach((t=>{e+=t.getActualWidth()})),e}isResizable(){if(!this.displayedChildren)return!1;let e=!1;return this.displayedChildren.forEach((t=>{t.isResizable()&&(e=!0)})),e}getMinWidth(){let e=0;return this.displayedChildren.forEach((t=>{e+=t.getMinWidth()})),e}addChild(e){this.children||(this.children=[]),this.children.push(e)}getDisplayedChildren(){return this.displayedChildren}getLeafColumns(){const e=[];return this.addLeafColumns(e),e}getDisplayedLeafColumns(){const e=[];return this.addDisplayedLeafColumns(e),e}getDefinition(){return this.providedColumnGroup.getColGroupDef()}getColGroupDef(){return this.providedColumnGroup.getColGroupDef()}isPadding(){return this.providedColumnGroup.isPadding()}isExpandable(){return this.providedColumnGroup.isExpandable()}isExpanded(){return this.providedColumnGroup.isExpanded()}setExpanded(e){this.providedColumnGroup.setExpanded(e)}isAutoHeaderHeight(){return!!this.getColGroupDef()?.autoHeaderHeight}getAutoHeaderHeight(){return this.autoHeaderHeight}setAutoHeaderHeight(e){const t=e!==this.autoHeaderHeight;return this.autoHeaderHeight=e,t}addDisplayedLeafColumns(e){this.displayedChildren.forEach((t=>{isColumn(t)?e.push(t):isColumnGroup(t)&&t.addDisplayedLeafColumns(e)}))}addLeafColumns(e){this.children.forEach((t=>{isColumn(t)?e.push(t):isColumnGroup(t)&&t.addLeafColumns(e)}))}getChildren(){return this.children}getColumnGroupShow(){return this.providedColumnGroup.getColumnGroupShow()}getProvidedColumnGroup(){return this.providedColumnGroup}getPaddingLevel(){const e=this.getParent();return this.isPadding()&&e&&e.isPadding()?1+e.getPaddingLevel():0}calculateDisplayedColumns(){this.displayedChildren=[];let e=this;for(;null!=e&&e.isPadding();)e=e.getParent();if(!(!!e&&e.getProvidedColumnGroup().isExpandable()))return this.displayedChildren=this.children,void this.dispatchLocalEvent({type:"displayedChildrenChanged"});this.children.forEach((t=>{if(isColumnGroup(t)&&(!t.displayedChildren||!t.displayedChildren.length))return;switch(t.getColumnGroupShow()){case"open":e.getProvidedColumnGroup().isExpanded()&&this.displayedChildren.push(t);break;case"closed":e.getProvidedColumnGroup().isExpanded()||this.displayedChildren.push(t);break;default:this.displayedChildren.push(t)}})),this.dispatchLocalEvent({type:"displayedChildrenChanged"})}},st="row-group-",nt="t-",rt="b-",at=0,lt=class{constructor(e){this.master=!1,this.detail=void 0,this.rowIndex=null,this.key=null,this.sourceRowIndex=-1,this.childrenMapped=null,this.treeParent=null,this.treeNodeFlags=0,this.displayed=!1,this.rowTop=null,this.oldRowTop=null,this.selectable=!0,this.__objectId=at++,this.alreadyRendered=!1,this.hovered=!1,this.__selected=!1,this.beans=e}setData(e){this.setDataCommon(e,!1)}updateData(e){this.setDataCommon(e,!0)}setDataCommon(e,t){const{valueCache:o,eventSvc:i}=this.beans,s=this.data;this.data=e,o?.onDataChanged(),this.updateDataOnDetailNode(),this.resetQuickFilterAggregateText();const n=this.createDataChangedEvent(e,s,t);if(this.__localEventService?.dispatchEvent(n),this.sibling){this.sibling.data=e;const o=this.sibling.createDataChangedEvent(e,s,t);this.sibling.__localEventService?.dispatchEvent(o)}i.dispatchEvent({type:"rowNodeDataChanged",node:this});const r=this.pinnedSibling;r&&(r.data=e,r.__localEventService?.dispatchEvent(r.createDataChangedEvent(e,s,t)),i.dispatchEvent({type:"rowNodeDataChanged",node:r}))}updateDataOnDetailNode(){this.detailNode&&(this.detailNode.data=this.data)}createDataChangedEvent(e,t,o){return{type:"dataChanged",node:this,oldData:t,newData:e,update:o}}getRowIndexString(){return null==this.rowIndex?(_error(13),null):"top"===this.rowPinned?nt+this.rowIndex:"bottom"===this.rowPinned?rt+this.rowIndex:this.rowIndex.toString()}setDataAndId(e,t){const{selectionSvc:o}=this.beans,i=o?.createDaemonNode?.(this),s=this.data;this.data=e,this.updateDataOnDetailNode(),this.setId(t),o&&(o.updateRowSelectable(this),o.syncInRowNode(this,i));const n=this.createDataChangedEvent(e,s,!1);this.__localEventService?.dispatchEvent(n)}setId(e){const t=_getRowIdCallback(this.beans.gos);if(t)if(this.data){const e=this.parent?.getRoute()??[];this.id=t({data:this.data,parentKeys:e.length>0?e:void 0,level:this.level,rowPinned:this.rowPinned}),this.id.startsWith(st)&&_error(14,{groupPrefix:st})}else this.id=void 0;else this.id=e}setRowTop(e){this.oldRowTop=this.rowTop,this.rowTop!==e&&(this.rowTop=e,this.dispatchRowEvent("topChanged"),this.setDisplayed(null!==e))}clearRowTopAndRowIndex(){this.oldRowTop=null,this.setRowTop(null),this.setRowIndex(null)}setHovered(e){this.hovered=e}isHovered(){return this.hovered}setRowHeight(e,t=!1){this.rowHeight=e,this.rowHeightEstimated=t,this.dispatchRowEvent("heightChanged")}setExpanded(e,t,o){this.beans.expansionSvc?.setExpanded(this,e,t,o)}setDataValue(e,t,o){const{colModel:i,valueSvc:s,gos:n,editSvc:r}=this.beans,a="string"!=typeof e?e:i.getCol(e)??i.getColDefCol(e);if(!a)return!1;const l=s.getValueForDisplay(a,this,void 0,void 0,"api").value;if(n.get("readOnlyEdit")){const{beans:{eventSvc:e},data:i,rowIndex:s,rowPinned:n}=this;return e.dispatchEvent({type:"cellEditRequest",event:null,rowIndex:s,rowPinned:n,column:a,colDef:a.colDef,data:i,node:this,oldValue:l,newValue:t,value:t,source:o}),!1}if(r){const e=r.setDataValue({rowNode:this,column:a},t,o);if(null!=e)return e}const d=s.setValue(this,a,t,o);this.dispatchCellChangedEvent(a,t,l);const c=this.pinnedSibling;return c&&d&&c.dispatchCellChangedEvent(a,t,l),d}updateHasChildren(){let e=this.group&&!this.footer||this.childrenAfterGroup&&this.childrenAfterGroup.length>0;const{rowChildrenSvc:t}=this.beans;t&&(e=t.getHasChildrenValue(this)),e!==this.__hasChildren&&(this.__hasChildren=!!e,this.dispatchRowEvent("hasChildrenChanged"))}hasChildren(){return null==this.__hasChildren&&this.updateHasChildren(),this.__hasChildren}dispatchCellChangedEvent(e,t,o){const i={type:"cellChanged",node:this,column:e,newValue:t,oldValue:o};this.__localEventService?.dispatchEvent(i)}resetQuickFilterAggregateText(){this.quickFilterAggregateText=null}isExpandable(){return this.beans.expansionSvc?.isExpandable(this)??!1}isSelected(){return this.footer?this.sibling.isSelected():this.rowPinned&&this.pinnedSibling?this.pinnedSibling.isSelected():this.__selected}depthFirstSearch(e){this.childrenAfterGroup?.forEach((t=>t.depthFirstSearch(e))),e(this)}dispatchRowEvent(e){this.__localEventService?.dispatchEvent({type:e,node:this})}setSelected(e,t=!1,o="api"){this.beans.selectionSvc?.setNodesSelected({nodes:[this],newValue:e,clearSelection:t,source:o})}isRowPinned(){return!!this.rowPinned}__addEventListener(e,t){this.__localEventService||(this.__localEventService=new s),this.__localEventService.addEventListener(e,t)}__removeEventListener(e,t){this.removeLocalListener(e,t)}addEventListener(e,t){this.beans.validation?.checkRowEvents(e),this.__localEventService||(this.__localEventService=new s),this.frameworkEventListenerService=this.beans.frameworkOverrides.createLocalEventListenerWrapper?.(this.frameworkEventListenerService,this.__localEventService);const o=this.frameworkEventListenerService?.wrap(e,t)??t;this.__localEventService.addEventListener(e,o)}removeEventListener(e,t){const o=this.frameworkEventListenerService?.unwrap(e,t)??t;this.removeLocalListener(e,o)}removeLocalListener(e,t){this.__localEventService?.removeEventListener(e,t),this.__localEventService?.noRegisteredListenersExist()&&(this.__localEventService=null)}isFullWidthCell(){if(_warn(61),this.detail)return!0;const e=this.beans.gos.getCallback("isFullWidthRow");return!!e&&e({rowNode:this})}getRoute(){if(-1===this.level)return[];if(null==this.key)return;const e=[];let t=this;for(;t&&null!=t.key;)e.push(t.key),t=t.parent;return e.reverse()}setFirstChild(e){this.firstChild!==e&&(this.firstChild=e,this.dispatchRowEvent("firstChildChanged"))}setDisplayed(e){this.displayed!==e&&(this.displayed=e,this.dispatchRowEvent("displayedChanged"))}setRowIndex(e){this.rowIndex!==e&&(this.rowIndex=e,this.dispatchRowEvent("rowIndexChanged"))}setAllChildrenCount(e){this.allChildrenCount!==e&&(this.allChildrenCount=e,this.dispatchRowEvent("allChildrenCountChanged"))}setUiLevel(e){this.uiLevel!==e&&(this.uiLevel=e,this.dispatchRowEvent("uiLevelChanged"))}getFirstChild(){return this.childStore?this.childStore.getFirstNode():this.childrenAfterSort?.[0]??null}};function _createGlobalRowEvent(e,t,o){return _addGridCommonParams(t,{type:o,node:e,data:e.data,rowIndex:e.rowIndex,rowPinned:e.rowPinned})}var dt=new Set(["__localEventService","__objectId","sticky","__autoHeights","__checkAutoHeightsDebounced","childStore"]);var ct={agSetColumnFilter:"agSetColumnFilterHandler",agMultiColumnFilter:"agMultiColumnFilterHandler",agGroupColumnFilter:"agGroupColumnFilterHandler",agNumberColumnFilter:"agNumberColumnFilterHandler",agDateColumnFilter:"agDateColumnFilterHandler",agTextColumnFilter:"agTextColumnFilterHandler"},ht=new Set(Object.values(ct));function getFilterUiFromWrapper(e,t){const o=e.filterUi;if(!o)return null;if(o.created)return o.promise;if(t)return null;const i=o.create(o.refreshed),s=o;return s.created=!0,s.promise=i,i}function _refreshFilterUi(e,t,o,i,s){e?.refresh?.({...t,model:o,state:i,source:s})}function getAndRefreshFilterUi(e,t,o){const i=e();i?.created&&i.promise.then((e=>{const s=t();_refreshFilterUi(e,i.filterParams,s,o()??{model:s},"ui")}))}function _updateFilterModel(e,t,o,i,s,n){let r,a,l=!1;switch(e){case"apply":{const e=i();a=e?.model??null,r={state:e?.state,model:a},l=!0;break}case"clear":r={model:null};break;case"reset":r={model:null},l=!0,a=null;break;case"cancel":r={model:o()}}s(r),l?n(a):getAndRefreshFilterUi(t,o,i)}function _getFilterModel(e,t){return e[t]??null}var ut={applyFilter:"Apply",clearFilter:"Clear",resetFilter:"Reset",cancelFilter:"Cancel",textFilter:"Text Filter",numberFilter:"Number Filter",dateFilter:"Date Filter",setFilter:"Set Filter",filterOoo:"Filter...",empty:"Choose one",equals:"Equals",notEqual:"Does not equal",lessThan:"Less than",greaterThan:"Greater than",inRange:"Between",inRangeStart:"From",inRangeEnd:"To",lessThanOrEqual:"Less than or equal to",greaterThanOrEqual:"Greater than or equal to",contains:"Contains",notContains:"Does not contain",startsWith:"Begins with",endsWith:"Ends with",blank:"Blank",notBlank:"Not blank",before:"Before",after:"After",andCondition:"AND",orCondition:"OR",dateFormatOoo:"yyyy-mm-dd",filterSummaryInactive:"is (All)",filterSummaryContains:"contains",filterSummaryNotContains:"does not contain",filterSummaryTextEquals:"equals",filterSummaryTextNotEqual:"does not equal",filterSummaryStartsWith:"begins with",filterSummaryEndsWith:"ends with",filterSummaryBlank:"is blank",filterSummaryNotBlank:"is not blank",filterSummaryEquals:"=",filterSummaryNotEqual:"!=",filterSummaryGreaterThan:">",filterSummaryGreaterThanOrEqual:">=",filterSummaryLessThan:"<",filterSummaryLessThanOrEqual:"<=",filterSummaryInRange:"between",filterSummaryInRangeValues:e=>`(${e[0]}, ${e[1]})`,filterSummaryTextQuote:e=>`"${e[0]}"`};function translateForFilter(e,t,o){return function _translate(e,t,o,i){const s=t[o];return e.getLocaleTextFunc()(o,"function"==typeof s?s(i):s,i)}(e,ut,t,o)}var gt=class extends Q{constructor(e){const{className:t="ag-filter-apply-panel"}=e??{};super(function getElement(e){return{tag:"div",cls:e}}(t)),this.listeners=[],this.className=t}updateButtons(e,t){const o=this.buttons;if(this.buttons=e,o===e)return;const i=this.getGui();let s;_clearElement(i),this.destroyListeners();const n=document.createDocumentFragment(),r=this.className,addButton=e=>{const o=e?translateForFilter(this,`${e}Filter`):void 0,clickListener=t=>{this.dispatchLocalEvent({type:e,event:t})};["apply","clear","reset","cancel"].includes(e)||_warn(75);const i="apply"===e,a=_createElement({tag:"button",attrs:{type:i&&t?"submit":"button"},ref:`${e}FilterButton`,cls:`ag-button ag-standard-button ${r}-button${i?" "+r+"-apply-button":""}`,children:o});this.activateTabIndex([a]),i&&(s=a);const keydownListener=e=>{e.key===xe&&(e.preventDefault(),clickListener(e))},l=this.listeners;a.addEventListener("click",clickListener),l.push((()=>a.removeEventListener("click",clickListener))),a.addEventListener("keydown",keydownListener),l.push((()=>a.removeEventListener("keydown",keydownListener))),n.append(a)};e.forEach((e=>addButton(e))),this.eApply=s,i.append(n)}updateValidity(e){const t=this.eApply;t&&_setDisabled(t,!1===e)}destroyListeners(){this.listeners.forEach((e=>e())),this.listeners=[]}destroy(){this.destroyListeners(),super.destroy()}};function getDebounceMs(e,t){const{debounceMs:o}=e;return _isUseApplyButton(e)?(null!=o&&_warn(71),0):o??t}function _isUseApplyButton(e){return(e.buttons?.indexOf("apply")??-1)>=0}var pt=class extends Q{constructor(e,t,o,i,s,n){super(),this.column=e,this.wrapper=t,this.eventParent=o,this.updateModel=i,this.isGlobalButtons=s,this.enableGlobalButtonCheck=n,this.hidePopup=null,this.applyActive=!1}postConstruct(){const{comp:e,params:t}=this.wrapper,o=t,i=o.useForm,s=i?"form":"div";this.setTemplate({tag:s,cls:"ag-filter-wrapper"}),i&&this.addManagedElementListeners(this.getGui(),{submit:e=>{e?.preventDefault()},keydown:this.handleKeyDown.bind(this)}),this.appendChild(e.getGui()),this.params=o,this.resetButtonsPanel(o),this.addManagedListeners(this.eventParent,{filterParamsChanged:({column:e,params:t})=>{e===this.column&&this.resetButtonsPanel(t,this.params)},filterStateChanged:({column:e,state:t})=>{e===this.column&&this.eButtons?.updateValidity(t.valid)},filterAction:({column:e,action:t,event:o})=>{e===this.column&&this.afterAction(t,o)},...this.enableGlobalButtonCheck?{filterGlobalButtons:({isGlobal:e})=>{if(e!==this.isGlobalButtons){this.isGlobalButtons=e;const t=this.params;this.resetButtonsPanel(t,t,!0)}}}:void 0})}afterGuiAttached(e){e&&(this.hidePopup=e.hidePopup)}resetButtonsPanel(e,t,o){const{buttons:i,readOnly:s}=t??{},{buttons:n,readOnly:r,useForm:a}=e;if(!o&&s===r&&_jsonEquals(i,n))return;const l=n&&n.length>0&&!e.readOnly&&!this.isGlobalButtons;let d=this.eButtons;if(l){if(this.applyActive=_isUseApplyButton(this.params),!d){d=this.createBean(new gt),this.appendChild(d.getGui());const e=this.column,getListener=t=>({event:o})=>{this.updateModel(e,t),this.afterAction(t,o)};d?.addManagedListeners(d,{apply:getListener("apply"),clear:getListener("clear"),reset:getListener("reset"),cancel:getListener("cancel")}),this.eButtons=d}d.updateButtons(n,a)}else this.applyActive=!1,d&&(_removeFromParent(d.getGui()),this.eButtons=this.destroyBean(d))}close(e){const t=this.hidePopup;if(!t)return;const o=e,i=o&&o.key;let s;i!==xe&&i!==Te||(s={keyboardEvent:o}),t(s),this.hidePopup=null}afterAction(e,t){const{params:o,applyActive:i}=this,s=o?.closeOnApply;switch(e){case"apply":t?.preventDefault(),s&&i&&this.close(t);break;case"reset":s&&i&&this.close();break;case"cancel":s&&this.close(t)}}handleKeyDown(e){!e.defaultPrevented&&e.key===xe&&this.applyActive&&(this.updateModel(this.column,"apply"),this.afterAction("apply",e))}destroy(){this.hidePopup=null,this.eButtons=this.destroyBean(this.eButtons)}},mt={tag:"div",cls:"ag-filter"},ft=class extends Q{constructor(e,t,o){super(mt),this.column=e,this.source=t,this.enableGlobalButtonCheck=o,this.wrapper=null}postConstruct(){this.beans.colFilter?.activeFilterComps.add(this),this.createFilter(!0),this.addManagedEventListeners({filterDestroyed:this.onFilterDestroyed.bind(this)})}hasFilter(){return null!=this.wrapper}getFilter(){return this.wrapper?.then((e=>e.comp))??null}afterInit(){return this.wrapper?.then((()=>{}))??Y.resolve()}afterGuiAttached(e){this.afterGuiAttachedParams=e,this.wrapper?.then((t=>{this.comp?.afterGuiAttached(e),t?.comp?.afterGuiAttached?.(e)}))}afterGuiDetached(){this.wrapper?.then((e=>{e?.comp?.afterGuiDetached?.()}))}createFilter(e){const{column:t,source:o,beans:{colFilter:i}}=this,s=i.getFilterUiForDisplay(t)??null;this.wrapper=s,s?.then((s=>{if(!s)return;const{isHandler:n,comp:r}=s;let a;if(n){const e=!!this.enableGlobalButtonCheck,o=this.createBean(new pt(t,s,i,i.updateModel.bind(i),e&&i.isGlobalButtons,e));this.comp=o,a=o.getGui()}else a=r.getGui(),_exists(a)||_warn(69,{guiFromFilter:a});this.appendChild(a),e?this.eventSvc.dispatchEvent({type:"filterOpened",column:t,source:o,eGui:this.getGui()}):r.afterGuiAttached?.(this.afterGuiAttachedParams)}))}onFilterDestroyed(e){const{source:t,column:o}=e;"api"!==t&&"paramsUpdated"!==t||o.getId()!==this.column.getId()||!this.beans.colModel.getColDefCol(this.column)||(_clearElement(this.getGui()),this.comp=this.destroyBean(this.comp),this.createFilter())}destroy(){this.beans.colFilter?.activeFilterComps.delete(this),this.eventSvc.dispatchEvent({type:"filterClosed",column:this.column}),this.wrapper=null,this.comp=this.destroyBean(this.comp),this.afterGuiAttachedParams=void 0,super.destroy()}},Ct=new RegExp("^\\d{4}-\\d{2}-\\d{2}(T\\d{2}:\\d{2}:\\d{2}\\D?)?");function _padStartWidthZeros(e,t){return e.toString().padStart(t,"0")}function _serialiseDate(e,t=!0,o="-"){if(!e)return null;let i=[e.getFullYear(),e.getMonth()+1,e.getDate()].map((e=>_padStartWidthZeros(e,2))).join(o);return t&&(i+="T"+[e.getHours(),e.getMinutes(),e.getSeconds()].map((e=>_padStartWidthZeros(e,2))).join(":")),i}function _getDateParts(e,t=!0){return e?t?[String(e.getFullYear()),String(e.getMonth()+1),_padStartWidthZeros(e.getDate(),2),_padStartWidthZeros(e.getHours(),2),`:${_padStartWidthZeros(e.getMinutes(),2)}`,`:${_padStartWidthZeros(e.getSeconds(),2)}`]:[e.getFullYear(),e.getMonth()+1,_padStartWidthZeros(e.getDate(),2)].map(String):null}var calculateOrdinal=e=>{if(e>3&&e<21)return"th";switch(e%10){case 1:return"st";case 2:return"nd";case 3:return"rd"}return"th"};function _dateToFormattedString(e,t){if(null==t)return _serialiseDate(e,!1);const o=_padStartWidthZeros(e.getFullYear(),4),i=["January","February","March","April","May","June","July","August","September","October","November","December"],s=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],n={YYYY:()=>o.slice(o.length-4,o.length),YY:()=>o.slice(o.length-2,o.length),Y:()=>`${e.getFullYear()}`,MMMM:()=>i[e.getMonth()],MMM:()=>i[e.getMonth()].slice(0,3),MM:()=>_padStartWidthZeros(e.getMonth()+1,2),Mo:()=>`${e.getMonth()+1}${calculateOrdinal(e.getMonth()+1)}`,M:()=>`${e.getMonth()+1}`,Do:()=>`${e.getDate()}${calculateOrdinal(e.getDate())}`,DD:()=>_padStartWidthZeros(e.getDate(),2),D:()=>`${e.getDate()}`,dddd:()=>s[e.getDay()],ddd:()=>s[e.getDay()].slice(0,3),dd:()=>s[e.getDay()].slice(0,2),do:()=>`${e.getDay()}${calculateOrdinal(e.getDay())}`,d:()=>`${e.getDay()}`},r=new RegExp(Object.keys(n).join("|"),"g");return t.replace(r,(e=>e in n?n[e]():e))}function _isValidDate(e,t=!1){return!!_parseDateTimeFromString(e,t)}function _parseDateTimeFromString(e,t=!1){if(!e)return null;const[o,i]=e.split("T");if(!o)return null;const s=o.split("-").map((e=>parseInt(e,10)));if(3!==s.filter((e=>!isNaN(e))).length)return null;const[n,r,a]=s,l=new Date(n,r-1,a);if(l.getFullYear()!==n||l.getMonth()!==r-1||l.getDate()!==a)return null;if(!i||"00:00:00"===i)return l;const[d,c,h]=i.split(":").map((e=>parseInt(e,10)));if(d>=0&&d<24)l.setHours(d);else if(t)return null;if(c>=0&&c<60)l.setMinutes(c);else if(t)return null;if(h>=0&&h<60)l.setSeconds(h);else if(t)return null;return l}var wt={january:"January",february:"February",march:"March",april:"April",may:"May",june:"June",july:"July",august:"August",september:"September",october:"October",november:"November",december:"December"},vt=["january","february","march","april","may","june","july","august","september","october","november","december"];function setFilterNumberComparator(e,t){return null==e?-1:null==t?1:parseFloat(e)-parseFloat(t)}function isValidDate(e){return e instanceof Date&&!isNaN(e.getTime())}var bt={number:()=>{},boolean:()=>({maxNumConditions:1,debounceMs:0,filterOptions:["empty",{displayKey:"true",displayName:"True",predicate:(e,t)=>t,numberOfInputs:0},{displayKey:"false",displayName:"False",predicate:(e,t)=>!1===t,numberOfInputs:0}]}),date:()=>({isValidDate}),dateString:({dataTypeDefinition:e})=>({comparator:(t,o)=>{const i=e.dateParser(o);return null==o||i<t?-1:i>t?1:0},isValidDate:t=>"string"==typeof t&&isValidDate(e.dateParser(t))}),dateTime:e=>bt.date(e),dateTimeString:e=>bt.dateString(e),object:()=>{},text:()=>{}},St={number:()=>({comparator:setFilterNumberComparator}),boolean:({t:e})=>({valueFormatter:t=>_exists(t.value)?e(String(t.value),t.value?"True":"False"):e("blanks","(Blanks)")}),date:({formatValue:e,t})=>({valueFormatter:o=>{const i=e(o);return _exists(i)?i:t("blanks","(Blanks)")},treeList:!0,treeListFormatter:(e,o)=>{if("NaN"===e)return t("invalidDate","Invalid Date");if(1===o&&null!=e){const o=vt[Number(e)-1];return t(o,wt[o])}return e??t("blanks","(Blanks)")},treeListPathGetter:e=>_getDateParts(e,!1)}),dateString:({formatValue:e,dataTypeDefinition:t,t:o})=>({valueFormatter:t=>{const i=e(t);return _exists(i)?i:o("blanks","(Blanks)")},treeList:!0,treeListPathGetter:e=>_getDateParts(t.dateParser(e??void 0),!1),treeListFormatter:(e,t)=>{if(1===t&&null!=e){const t=vt[Number(e)-1];return o(t,wt[t])}return e??o("blanks","(Blanks)")}}),dateTime:e=>{const t=St.date(e);return t.treeListPathGetter=_getDateParts,t},dateTimeString(e){const t=e.dataTypeDefinition.dateParser,o=St.dateString(e);return o.treeListPathGetter=e=>_getDateParts(t(e??void 0)),o},object:({formatValue:e,t})=>({valueFormatter:o=>{const i=e(o);return _exists(i)?i:t("blanks","(Blanks)")}}),text:()=>{}};var yt={boolean:"agTextColumnFilter",date:"agDateColumnFilter",dateString:"agDateColumnFilter",dateTime:"agDateColumnFilter",dateTimeString:"agDateColumnFilter",number:"agNumberColumnFilter",object:"agTextColumnFilter",text:"agTextColumnFilter"},Rt={boolean:"agTextColumnFloatingFilter",date:"agDateColumnFloatingFilter",dateString:"agDateColumnFloatingFilter",dateTime:"agDateColumnFloatingFilter",dateTimeString:"agDateColumnFloatingFilter",number:"agNumberColumnFloatingFilter",object:"agTextColumnFloatingFilter",text:"agTextColumnFloatingFilter"};var Ft="ag-resizer-wrapper",makeDiv=(e,t)=>({tag:"div",ref:`${e}Resizer`,cls:`ag-resizer ag-resizer-${t}`}),Et={tag:"div",cls:Ft,children:[makeDiv("eTopLeft","topLeft"),makeDiv("eTop","top"),makeDiv("eTopRight","topRight"),makeDiv("eRight","right"),makeDiv("eBottomRight","bottomRight"),makeDiv("eBottom","bottom"),makeDiv("eBottomLeft","bottomLeft"),makeDiv("eLeft","left")]},Pt=class extends I{constructor(e,t){super(),this.element=e,this.dragStartPosition={x:0,y:0},this.position={x:0,y:0},this.lastSize={width:-1,height:-1},this.positioned=!1,this.resizersAdded=!1,this.resizeListeners=[],this.boundaryEl=null,this.isResizing=!1,this.isMoving=!1,this.resizable={},this.movable=!1,this.currentResizer=null,this.config=Object.assign({},{popup:!1},t)}wireBeans(e){this.popupSvc=e.popupSvc,this.dragSvc=e.dragSvc}center(){const{clientHeight:e,clientWidth:t}=this.offsetParent,o=t/2-this.getWidth()/2,i=e/2-this.getHeight()/2;this.offsetElement(o,i)}initialisePosition(){if(this.positioned)return;const{centered:e,forcePopupParentAsOffsetParent:t,minWidth:o,width:i,minHeight:s,height:n,x:r,y:a}=this.config;this.offsetParent||this.setOffsetParent();let l=0,d=0;const c=_isVisible(this.element);if(c){const e=this.findBoundaryElement(),t=window.getComputedStyle(e);if(null!=t.minWidth){const o=e.offsetWidth-this.element.offsetWidth;d=parseInt(t.minWidth,10)-o}if(null!=t.minHeight){const o=e.offsetHeight-this.element.offsetHeight;l=parseInt(t.minHeight,10)-o}}if(this.minHeight=s||l,this.minWidth=o||d,i&&this.setWidth(i),n&&this.setHeight(n),i&&n||this.refreshSize(),e)this.center();else if(r||a)this.offsetElement(r,a);else if(c&&t){let e=this.boundaryEl,t=!0;if(e||(e=this.findBoundaryElement(),t=!1),e){const o=parseFloat(e.style.top),i=parseFloat(e.style.left);t?this.offsetElement(isNaN(i)?0:i,isNaN(o)?0:o):this.setPosition(i,o)}}this.positioned=!!this.offsetParent}isPositioned(){return this.positioned}getPosition(){return this.position}setMovable(e,t){if(!this.config.popup||e===this.movable)return;this.movable=e;const o=this.moveElementDragListener||{eElement:t,onDragStart:this.onMoveStart.bind(this),onDragging:this.onMove.bind(this),onDragStop:this.onMoveEnd.bind(this)};e?(this.dragSvc?.addDragSource(o),this.moveElementDragListener=o):(this.dragSvc?.removeDragSource(o),this.moveElementDragListener=void 0)}setResizable(e){if(this.clearResizeListeners(),e?this.addResizers():this.removeResizers(),"boolean"==typeof e){if(!1===e)return;e={topLeft:e,top:e,topRight:e,right:e,bottomRight:e,bottom:e,bottomLeft:e,left:e}}Object.keys(e).forEach((t=>{const o=!!e[t],i=this.getResizerElement(t),s={dragStartPixels:0,eElement:i,onDragStart:e=>this.onResizeStart(e,t),onDragging:this.onResize.bind(this),onDragStop:e=>this.onResizeEnd(e,t)};(o||!this.isAlive()&&!o)&&(o?(this.dragSvc?.addDragSource(s),this.resizeListeners.push(s),i.style.pointerEvents="all"):i.style.pointerEvents="none",this.resizable[t]=o)}))}removeSizeFromEl(){this.element.style.removeProperty("height"),this.element.style.removeProperty("width"),this.element.style.removeProperty("flex")}restoreLastSize(){this.element.style.flex="0 0 auto";const{height:e,width:t}=this.lastSize;-1!==t&&(this.element.style.width=`${t}px`),-1!==e&&(this.element.style.height=`${e}px`)}getHeight(){return this.element.offsetHeight}setHeight(e){const{popup:t}=this.config,o=this.element;let i=!1;if("string"==typeof e&&-1!==e.indexOf("%"))_setFixedHeight(o,e),e=_getAbsoluteHeight(o),i=!0;else if(e=Math.max(this.minHeight,e),this.positioned){const t=this.getAvailableHeight();t&&e>t&&(e=t)}this.getHeight()!==e&&(i?(o.style.maxHeight="unset",o.style.minHeight="unset"):t?_setFixedHeight(o,e):(o.style.height=`${e}px`,o.style.flex="0 0 auto",this.lastSize.height="number"==typeof e?e:parseFloat(e)))}getAvailableHeight(){const{popup:e,forcePopupParentAsOffsetParent:t}=this.config;this.positioned||this.initialisePosition();const{clientHeight:o}=this.offsetParent;if(!o)return null;const i=this.element.getBoundingClientRect(),s=this.offsetParent.getBoundingClientRect(),n=e?this.position.y:i.top,r=e?0:s.top;let a=0;if(t){const e=this.element.parentElement;if(e){const{bottom:t}=e.getBoundingClientRect();a=t-i.bottom}}return o+r-n-a}getWidth(){return this.element.offsetWidth}setWidth(e){const t=this.element,{popup:o}=this.config;let i=!1;if("string"==typeof e&&-1!==e.indexOf("%"))_setFixedWidth(t,e),e=_getAbsoluteWidth(t),i=!0;else if(this.positioned){e=Math.max(this.minWidth,e);const{clientWidth:t}=this.offsetParent,i=o?this.position.x:this.element.getBoundingClientRect().left;t&&e+i>t&&(e=t-i)}this.getWidth()!==e&&(i?(t.style.maxWidth="unset",t.style.minWidth="unset"):this.config.popup?_setFixedWidth(t,e):(t.style.width=`${e}px`,t.style.flex=" unset",this.lastSize.width="number"==typeof e?e:parseFloat(e)))}offsetElement(e=0,t=0){const{forcePopupParentAsOffsetParent:o}=this.config,i=o?this.boundaryEl:this.element;i&&(this.popupSvc?.positionPopup({ePopup:i,keepWithinBounds:!0,skipObserver:this.movable||this.isResizable(),updatePosition:()=>({x:e,y:t})}),this.setPosition(parseFloat(i.style.left),parseFloat(i.style.top)))}constrainSizeToAvailableHeight(e){if(!this.config.forcePopupParentAsOffsetParent)return;const applyMaxHeightToElement=()=>{const e=this.getAvailableHeight();this.element.style.setProperty("max-height",`${e}px`)};e&&this.popupSvc?(this.resizeObserverSubscriber?.(),this.resizeObserverSubscriber=_observeResize(this.beans,this.popupSvc?.getPopupParent(),applyMaxHeightToElement)):(this.element.style.removeProperty("max-height"),this.resizeObserverSubscriber&&(this.resizeObserverSubscriber(),this.resizeObserverSubscriber=void 0))}setPosition(e,t){this.position.x=e,this.position.y=t}updateDragStartPosition(e,t){this.dragStartPosition={x:e,y:t}}calculateMouseMovement(e){const{e:t,isLeft:o,isTop:i,anywhereWithin:s,topBuffer:n}=e,r=t.clientX-this.dragStartPosition.x,a=t.clientY-this.dragStartPosition.y;return{movementX:this.shouldSkipX(t,!!o,!!s,r)?0:r,movementY:this.shouldSkipY(t,!!i,n,a)?0:a}}shouldSkipX(e,t,o,i){const s=this.element.getBoundingClientRect(),n=this.offsetParent.getBoundingClientRect(),r=this.boundaryEl.getBoundingClientRect(),a=this.config.popup?this.position.x:s.left;let l=a<=0&&n.left>=e.clientX||n.right<=e.clientX&&n.right<=r.right;return!!l||(l=t?i<0&&e.clientX>a+n.left||i>0&&e.clientX<a+n.left:o?i<0&&e.clientX>r.right||i>0&&e.clientX<a+n.left:i<0&&e.clientX>r.right||i>0&&e.clientX<r.right,l)}shouldSkipY(e,t,o=0,i){const s=this.element.getBoundingClientRect(),n=this.offsetParent.getBoundingClientRect(),r=this.boundaryEl.getBoundingClientRect(),a=this.config.popup?this.position.y:s.top;let l=a<=0&&n.top>=e.clientY||n.bottom<=e.clientY&&n.bottom<=r.bottom;return!!l||(l=t?i<0&&e.clientY>a+n.top+o||i>0&&e.clientY<a+n.top:i<0&&e.clientY>r.bottom||i>0&&e.clientY<r.bottom,l)}createResizeMap(){const getElement2=e=>({element:this.element.querySelector(`[data-ref=${e}Resizer]`)});this.resizerMap={topLeft:getElement2("eTopLeft"),top:getElement2("eTop"),topRight:getElement2("eTopRight"),right:getElement2("eRight"),bottomRight:getElement2("eBottomRight"),bottom:getElement2("eBottom"),bottomLeft:getElement2("eBottomLeft"),left:getElement2("eLeft")}}addResizers(){if(this.resizersAdded)return;const e=this.element;e&&(e.appendChild(_createElement(Et)),this.createResizeMap(),this.resizersAdded=!0)}removeResizers(){this.resizerMap=void 0;const e=this.element.querySelector(".ag-resizer-wrapper");e&&this.element.removeChild(e),this.resizersAdded=!1}getResizerElement(e){return this.resizerMap[e].element}onResizeStart(e,t){this.boundaryEl=this.findBoundaryElement(),this.positioned||this.initialisePosition(),this.currentResizer={isTop:!!t.match(/top/i),isRight:!!t.match(/right/i),isBottom:!!t.match(/bottom/i),isLeft:!!t.match(/left/i)},this.element.classList.add("ag-resizing"),this.resizerMap[t].element.classList.add("ag-active");const{popup:o,forcePopupParentAsOffsetParent:i}=this.config;o||i||this.applySizeToSiblings(this.currentResizer.isBottom||this.currentResizer.isTop),this.isResizing=!0,this.updateDragStartPosition(e.clientX,e.clientY)}getSiblings(){const e=this.element.parentElement;return e?Array.prototype.slice.call(e.children).filter((e=>!e.classList.contains("ag-hidden"))):null}getMinSizeOfSiblings(){const e=this.getSiblings()||[];let t=0,o=0;for(let i=0;i<e.length;i++){const s=e[i],n=!!s.style.flex&&"0 0 auto"!==s.style.flex;if(s===this.element)continue;let r=this.minHeight||0,a=this.minWidth||0;if(n){const e=window.getComputedStyle(s);e.minHeight&&(r=parseInt(e.minHeight,10)),e.minWidth&&(a=parseInt(e.minWidth,10))}else r=s.offsetHeight,a=s.offsetWidth;t+=r,o+=a}return{height:t,width:o}}applySizeToSiblings(e){let t=null;const o=this.getSiblings();if(o){for(let i=0;i<o.length;i++){const s=o[i];s!==t&&(e?s.style.height=`${s.offsetHeight}px`:s.style.width=`${s.offsetWidth}px`,s.style.flex="0 0 auto",s===this.element&&(t=o[i+1]))}t&&(t.style.removeProperty("height"),t.style.removeProperty("min-height"),t.style.removeProperty("max-height"),t.style.flex="1 1 auto")}}isResizable(){return Object.values(this.resizable).some((e=>e))}onResize(e){if(!this.isResizing||!this.currentResizer)return;const{popup:t,forcePopupParentAsOffsetParent:o}=this.config,{isTop:i,isRight:s,isBottom:n,isLeft:r}=this.currentResizer,a=s||r,l=n||i,{movementX:d,movementY:c}=this.calculateMouseMovement({e,isLeft:r,isTop:i}),h=this.position.x,u=this.position.y;let g=0,p=0;if(a&&d){const e=r?-1:1,t=this.getWidth(),o=t+d*e;let i=!1;r&&(g=t-o,(h+g<=0||o<=this.minWidth)&&(i=!0,g=0)),i||this.setWidth(o)}if(l&&c){const e=i?-1:1,t=this.getHeight(),o=t+c*e;let s=!1;i?(p=t-o,(u+p<=0||o<=this.minHeight)&&(s=!0,p=0)):!this.config.popup&&!this.config.forcePopupParentAsOffsetParent&&t<o&&this.getMinSizeOfSiblings().height+o>this.element.parentElement.offsetHeight&&(s=!0),s||this.setHeight(o)}this.updateDragStartPosition(e.clientX,e.clientY),((t||o)&&g||p)&&this.offsetElement(h+g,u+p)}onResizeEnd(e,t){this.isResizing=!1,this.currentResizer=null,this.boundaryEl=null,this.element.classList.remove("ag-resizing"),this.resizerMap[t].element.classList.remove("ag-active"),this.dispatchLocalEvent({type:"resize"})}refreshSize(){const e=this.element;this.config.popup&&(this.config.width||this.setWidth(e.offsetWidth),this.config.height||this.setHeight(e.offsetHeight))}onMoveStart(e){this.boundaryEl=this.findBoundaryElement(),this.positioned||this.initialisePosition(),this.isMoving=!0,this.element.classList.add("ag-moving"),this.updateDragStartPosition(e.clientX,e.clientY)}onMove(e){if(!this.isMoving)return;const{x:t,y:o}=this.position;let i;this.config.calculateTopBuffer&&(i=this.config.calculateTopBuffer());const{movementX:s,movementY:n}=this.calculateMouseMovement({e,isTop:!0,anywhereWithin:!0,topBuffer:i});this.offsetElement(t+s,o+n),this.updateDragStartPosition(e.clientX,e.clientY)}onMoveEnd(){this.isMoving=!1,this.boundaryEl=null,this.element.classList.remove("ag-moving")}setOffsetParent(){this.config.forcePopupParentAsOffsetParent&&this.popupSvc?this.offsetParent=this.popupSvc.getPopupParent():this.offsetParent=this.element.offsetParent}findBoundaryElement(){let e=this.element;for(;e;){if("static"!==window.getComputedStyle(e).position)return e;e=e.parentElement}return this.element}clearResizeListeners(){for(;this.resizeListeners.length;){const e=this.resizeListeners.pop();this.dragSvc?.removeDragSource(e)}}destroy(){super.destroy(),this.moveElementDragListener&&this.dragSvc?.removeDragSource(this.moveElementDragListener),this.constrainSizeToAvailableHeight(!1),this.clearResizeListeners(),this.removeResizers()}},Dt=class extends I{constructor(e,t={}){super(),this.eFocusable=e,this.callbacks=t,this.callbacks={shouldStopEventPropagation:()=>!1,onTabKeyDown:e=>{if(e.defaultPrevented)return;const t=_findNextFocusableElement(this.beans,this.eFocusable,!1,e.shiftKey);t&&(t.focus(),e.preventDefault())},...t}}postConstruct(){const{eFocusable:e,callbacks:{onFocusIn:t,onFocusOut:o}}=this;e.classList.add("ag-focus-managed"),this.addKeyDownListeners(e),t&&this.addManagedElementListeners(e,{focusin:t}),o&&this.addManagedElementListeners(e,{focusout:o})}addKeyDownListeners(e){this.addManagedElementListeners(e,{keydown:e=>{if(e.defaultPrevented||_isStopPropagationForAgGrid(e))return;const{callbacks:t}=this;t.shouldStopEventPropagation(e)?_stopPropagationForAgGrid(e):e.key===De?t.onTabKeyDown(e):t.handleKeyDown&&t.handleKeyDown(e)}})}},xt=class extends Q{constructor(e,t){super(),this.filterNameKey=e,this.cssIdentifier=t,this.applyActive=!1,this.debouncePending=!1,this.defaultDebounceMs=0}postConstruct(){const e={tag:"div",cls:`ag-filter-body-wrapper ag-${this.cssIdentifier}-body-wrapper`,children:[this.createBodyTemplate()]};this.setTemplate(e,this.getAgComponents()),this.createManagedBean(new Dt(this.getFocusableElement(),{handleKeyDown:this.handleKeyDown.bind(this)})),this.positionableFeature=this.createBean(new Pt(this.getPositionableElement(),{forcePopupParentAsOffsetParent:!0}))}handleKeyDown(e){}init(e){const t=e;this.setParams(t),this.setModelIntoUi(t.state.model,!0).then((()=>this.updateUiVisibility()))}refresh(e){const t=e,o=this.params;this.params=t;"colDef"===t.source&&this.updateParams(t,o);const i=t.state,s=this.state;return this.state=i,i.model===s.model&&i.state===s.state||this.setModelIntoUi(i.model),!0}setParams(e){this.params=e,this.state=e.state,this.commonUpdateParams(e)}updateParams(e,t){this.commonUpdateParams(e,t)}commonUpdateParams(e,t){this.applyActive=_isUseApplyButton(e),this.setupApplyDebounced()}doesFilterPass(e){_warn(283);const{getHandler:t,model:o,column:i}=this.params;return t().doesFilterPass({...e,model:o,handlerParams:this.beans.colFilter.getHandlerParams(i)})}getFilterTitle(){return this.translate(this.filterNameKey)}isFilterActive(){return _warn(284),null!=this.params.model}setupApplyDebounced(){const e=getDebounceMs(this.params,this.defaultDebounceMs),t=_debounce(this,this.checkApplyDebounce.bind(this),e);this.applyDebounced=()=>{this.debouncePending=!0,t()}}checkApplyDebounce(){this.debouncePending&&(this.debouncePending=!1,this.doApplyModel())}getModel(){return _warn(285),this.params.model}setModel(e){_warn(286);const{beans:t,params:o}=this;return t.colFilter.setModelForColumnLegacy(o.column,e)}applyModel(e="api"){return this.doApplyModel()}canApply(e){return!0}doApplyModel(e){const{params:t,state:o}=this,i=!this.areModelsEqual(t.model,o.model);return i&&t.onAction("apply",e),i}onNewRowsLoaded(){}onUiChanged(e,t=!1){this.updateUiVisibility();const o=this.getModelFromUi(),i={model:o,state:this.getState(),valid:this.canApply(o)};this.state=i;const s=this.params;s.onStateChange(i),s.onUiChange(this.getUiChangeEventParams()),this.gos.get("enableFilterHandlers")||this.eventSvc.dispatchEvent({type:"filterModified",column:s.column,filterInstance:this}),e??(e=this.applyActive?void 0:"debounce"),"immediately"===e?this.doApplyModel({afterFloatingFilter:t,afterDataChange:!1}):"debounce"===e&&this.applyDebounced()}getState(){}getUiChangeEventParams(){}afterGuiAttached(e){this.lastContainerType=e?.container,this.refreshFilterResizer(e?.container)}refreshFilterResizer(e){const{positionableFeature:t,gos:o}=this;if(!t)return;const i="floatingFilter"===e||"columnFilter"===e;i?(t.restoreLastSize(),t.setResizable(o.get("enableRtl")?{bottom:!0,bottomLeft:!0,left:!0}:{bottom:!0,bottomRight:!0,right:!0})):(t.removeSizeFromEl(),t.setResizable(!1)),t.constrainSizeToAvailableHeight(i)}afterGuiDetached(){this.checkApplyDebounce(),this.positionableFeature?.constrainSizeToAvailableHeight(!1)}destroy(){this.positionableFeature=this.destroyBean(this.positionableFeature),super.destroy()}translate(e){return translateForFilter(this,e)}getPositionableElement(){return this.getGui()}areModelsEqual(e,t){return e===t||null==e&&null==t||null!=e&&null!=t&&this.areNonNullModelsEqual(e,t)}};var Mt={AUTO_HEIGHT:"ag-layout-auto-height",NORMAL:"ag-layout-normal",PRINT:"ag-layout-print"},Tt=class extends I{constructor(e){super(),this.view=e}postConstruct(){this.addManagedPropertyListener("domLayout",this.updateLayoutClasses.bind(this)),this.updateLayoutClasses()}updateLayoutClasses(){const e=this.gos.get("domLayout"),t={autoHeight:"autoHeight"===e,normal:"normal"===e,print:"print"===e},o=t.autoHeight?Mt.AUTO_HEIGHT:t.print?Mt.PRINT:Mt.NORMAL;this.view.updateLayoutClasses(o,t)}},At="Viewport",It="fakeVScrollComp",kt=["fakeHScrollComp","centerHeader","topCenter","bottomCenter","stickyTopCenter","stickyBottomCenter"],Lt=class extends I{constructor(e){super(),this.clearRetryListenerFncs=[],this.lastScrollSource=[null,null],this.scrollLeft=-1,this.nextScrollTop=-1,this.scrollTop=-1,this.lastOffsetHeight=-1,this.lastScrollTop=-1,this.lastIsHorizontalScrollShowing=!1,this.scrollTimer=0,this.isScrollActive=!1,this.isVerticalPositionInvalidated=!0,this.isHorizontalPositionInvalidated=!0,this.eBodyViewport=e,this.resetLastHScrollDebounced=_debounce(this,(()=>this.lastScrollSource[1]=null),150),this.resetLastVScrollDebounced=_debounce(this,(()=>this.lastScrollSource[0]=null),150)}wireBeans(e){this.ctrlsSvc=e.ctrlsSvc,this.animationFrameSvc=e.animationFrameSvc,this.visibleCols=e.visibleCols}destroy(){super.destroy(),this.clearRetryListenerFncs=[],window.clearTimeout(this.scrollTimer)}postConstruct(){this.enableRtl=this.gos.get("enableRtl");const e=this.invalidateVerticalScroll.bind(this),t=this.invalidateHorizontalScroll.bind(this);this.addManagedEventListeners({displayedColumnsWidthChanged:this.onDisplayedColumnsWidthChanged.bind(this),gridSizeChanged:e,scrollGapChanged:t}),this.addManagedElementListeners(this.eBodyViewport,{scroll:e}),this.ctrlsSvc.whenReady(this,(e=>{this.centerRowsCtrl=e.center,this.onDisplayedColumnsWidthChanged(),this.addScrollListener()}))}invalidateHorizontalScroll(){this.isHorizontalPositionInvalidated=!0}invalidateVerticalScroll(){this.isVerticalPositionInvalidated=!0}addScrollListener(){this.addHorizontalScrollListeners(),this.addVerticalScrollListeners()}addHorizontalScrollListeners(){this.addManagedElementListeners(this.centerRowsCtrl.eViewport,{scroll:this.onHScroll.bind(this,At)});for(const e of kt){const t=this.ctrlsSvc.get(e);this.registerScrollPartner(t,this.onHScroll.bind(this,e))}}addVerticalScrollListeners(){const e=this.ctrlsSvc.get("fakeVScrollComp"),t=this.gos.get("debounceVerticalScrollbar"),o=t?_debounce(this,this.onVScroll.bind(this,At),100):this.onVScroll.bind(this,At),i=t?_debounce(this,this.onVScroll.bind(this,It),100):this.onVScroll.bind(this,It);this.addManagedElementListeners(this.eBodyViewport,{scroll:o}),this.registerScrollPartner(e,i)}registerScrollPartner(e,t){e.onScrollCallback(t)}onDisplayedColumnsWidthChanged(){this.enableRtl&&this.horizontallyScrollHeaderCenterAndFloatingCenter()}horizontallyScrollHeaderCenterAndFloatingCenter(e){null==this.centerRowsCtrl||(void 0===e&&(e=this.centerRowsCtrl.getCenterViewportScrollLeft()),this.setScrollLeftForAllContainersExceptCurrent(Math.abs(e)))}setScrollLeftForAllContainersExceptCurrent(e){for(const t of[...kt,At]){if(this.lastScrollSource[1]===t)continue;_setScrollLeft(this.getViewportForSource(t),e,this.enableRtl)}}getViewportForSource(e){return e===At?this.centerRowsCtrl.eViewport:this.ctrlsSvc.get(e).eViewport}isControllingScroll(e,t){return null==this.lastScrollSource[t]?(0===t?this.lastScrollSource[0]=e:this.lastScrollSource[1]=e,!0):this.lastScrollSource[t]===e}onHScroll(e){if(!this.isControllingScroll(e,1))return;const t=this.centerRowsCtrl.eViewport,{scrollLeft:o}=t;if(this.shouldBlockScrollUpdate(1,o,!0))return;const i=_getScrollLeft(this.getViewportForSource(e),this.enableRtl);this.doHorizontalScroll(i),this.resetLastHScrollDebounced()}onVScroll(e){if(!this.isControllingScroll(e,0))return;let t;if(t=e===At?this.eBodyViewport.scrollTop:this.ctrlsSvc.get("fakeVScrollComp").getScrollPosition(),this.shouldBlockScrollUpdate(0,t,!0))return;const{animationFrameSvc:o}=this;o?.setScrollTop(t),this.nextScrollTop=t,e===At?this.ctrlsSvc.get("fakeVScrollComp").setScrollPosition(t):this.eBodyViewport.scrollTop=t,o?.active?o.schedule():this.scrollGridIfNeeded(!0),this.resetLastVScrollDebounced()}doHorizontalScroll(e){const t=this.ctrlsSvc.get("fakeHScrollComp").getScrollPosition();this.scrollLeft===e&&e===t||(this.scrollLeft=e,this.fireScrollEvent(1),this.horizontallyScrollHeaderCenterAndFloatingCenter(e),this.centerRowsCtrl.onHorizontalViewportChanged(!0))}isScrolling(){return this.isScrollActive}fireScrollEvent(e){const t={type:"bodyScroll",direction:1===e?"horizontal":"vertical",left:this.scrollLeft,top:this.scrollTop};this.isScrollActive=!0,this.eventSvc.dispatchEvent(t),window.clearTimeout(this.scrollTimer),this.scrollTimer=window.setTimeout((()=>{this.scrollTimer=0,this.isScrollActive=!1,this.eventSvc.dispatchEvent({...t,type:"bodyScrollEnd"})}),150)}shouldBlockScrollUpdate(e,t,o=!1){return!(o&&!_isIOSUserAgent())&&(0===e?this.shouldBlockVerticalScroll(t):this.shouldBlockHorizontalScroll(t))}shouldBlockVerticalScroll(e){const t=_getInnerHeight(this.eBodyViewport),{scrollHeight:o}=this.eBodyViewport;return e<0||e+t>o}shouldBlockHorizontalScroll(e){const t=this.centerRowsCtrl.getCenterWidth(),{scrollWidth:o}=this.centerRowsCtrl.eViewport;if(this.enableRtl){if(e>0)return!0}else if(e<0)return!0;return Math.abs(e)+t>o}redrawRowsAfterScroll(){this.fireScrollEvent(0)}checkScrollLeft(){this.scrollLeft!==this.centerRowsCtrl.getCenterViewportScrollLeft()&&this.onHScroll(At)}scrollGridIfNeeded(e=!1){const t=this.scrollTop!=this.nextScrollTop;return t&&(this.scrollTop=this.nextScrollTop,e&&this.invalidateVerticalScroll(),this.redrawRowsAfterScroll()),t}setHorizontalScrollPosition(e,t=!1){const o=this.centerRowsCtrl.eViewport.scrollWidth-this.centerRowsCtrl.getCenterWidth();!t&&this.shouldBlockScrollUpdate(1,e)&&(e=this.enableRtl?e>0?0:o:Math.min(Math.max(e,0),o)),_setScrollLeft(this.centerRowsCtrl.eViewport,Math.abs(e),this.enableRtl),this.doHorizontalScroll(e)}setVerticalScrollPosition(e){this.invalidateVerticalScroll(),this.eBodyViewport.scrollTop=e}getVScrollPosition(){if(!this.isVerticalPositionInvalidated){const{lastOffsetHeight:e,lastScrollTop:t}=this;return{top:t,bottom:t+e}}this.isVerticalPositionInvalidated=!1;const{scrollTop:e,offsetHeight:t}=this.eBodyViewport;return this.lastScrollTop=e,this.lastOffsetHeight=t,{top:e,bottom:e+t}}getApproximateVScollPosition(){return this.lastScrollTop>=0&&this.lastOffsetHeight>=0?{top:this.scrollTop,bottom:this.scrollTop+this.lastOffsetHeight}:this.getVScrollPosition()}getHScrollPosition(){return this.centerRowsCtrl.getHScrollPosition()}isHorizontalScrollShowing(){return this.isHorizontalPositionInvalidated&&(this.lastIsHorizontalScrollShowing=this.centerRowsCtrl.isHorizontalScrollShowing(),this.isHorizontalPositionInvalidated=!1),this.lastIsHorizontalScrollShowing}scrollHorizontally(e){const t=this.centerRowsCtrl.eViewport.scrollLeft;return this.setHorizontalScrollPosition(t+e),this.centerRowsCtrl.eViewport.scrollLeft-t}scrollToTop(){this.eBodyViewport.scrollTop=0}ensureNodeVisible(e,t=null){const{rowModel:o}=this.beans,i=o.getRowCount();let s=-1;for(let t=0;t<i;t++){const i=o.getRow(t);if("function"==typeof e){const o=e;if(i&&o(i)){s=t;break}}else if(e===i||e===i.data){s=t;break}}s>=0&&this.ensureIndexVisible(s,t)}ensureIndexVisible(e,t,o=0){if(_isDomLayout(this.gos,"print"))return;const{rowModel:i}=this.beans,s=i.getRowCount();if("number"!=typeof e||e<0||e>=s)return void _warn(88,{index:e});this.clearRetryListeners();const{frameworkOverrides:n,pageBounds:r,rowContainerHeight:a,rowRenderer:l}=this.beans;n.wrapIncoming((()=>{const s=this.ctrlsSvc.getGridBodyCtrl(),n=i.getRow(e);let d,c,h=0;this.invalidateVerticalScroll();do{const{stickyTopHeight:e,stickyBottomHeight:o}=s,i=n.rowTop,u=n.rowHeight,g=r.getPixelOffset(),p=n.rowTop-g,m=p+n.rowHeight,f=this.getVScrollPosition(),C=a.divStretchOffset,w=f.top+C,v=f.bottom+C,b=v-w,S=a.getScrollPositionForPixel(p),y=a.getScrollPositionForPixel(m-b),R=Math.min((S+y)/2,p),F=w+e>p,E=v-o<m;let P=null;"top"===t?P=S-e:"bottom"===t?P=y+o:"middle"===t?P=R:F?P=S-e:E&&(P=y-S>b?S-e:y+o),null!==P&&(this.setVerticalScrollPosition(P),l.redraw({afterScroll:!0})),d=i!==n.rowTop||u!==n.rowHeight,c=e!==s.stickyTopHeight||o!==s.stickyBottomHeight,h++}while((d||c)&&h<10);if(this.animationFrameSvc?.flushAllFrames(),o<10&&(n?.stub||!this.beans.rowAutoHeight?.areRowsMeasured())){const s=this.getVScrollPosition().top;this.clearRetryListenerFncs=this.addManagedEventListeners({bodyScroll:()=>{const e=this.getVScrollPosition().top;s!==e&&this.clearRetryListeners()},modelUpdated:()=>{this.clearRetryListeners(),e>=i.getRowCount()||this.ensureIndexVisible(e,t,o+1)}})}}))}clearRetryListeners(){this.clearRetryListenerFncs.forEach((e=>e())),this.clearRetryListenerFncs=[]}ensureColumnVisible(e,t="auto"){const{colModel:o,frameworkOverrides:i}=this.beans,s=o.getCol(e);if(!s)return;if(s.isPinned())return;if(!this.visibleCols.isColDisplayed(s))return;const n=this.getPositionedHorizontalScroll(s,t);i.wrapIncoming((()=>{null!==n&&this.centerRowsCtrl.setCenterViewportScrollLeft(n),this.centerRowsCtrl.onHorizontalViewportChanged(),this.animationFrameSvc?.flushAllFrames()}))}getPositionedHorizontalScroll(e,t){const{columnBeforeStart:o,columnAfterEnd:i}=this.isColumnOutsideViewport(e),s=this.centerRowsCtrl.getCenterWidth()<e.getActualWidth(),n=this.centerRowsCtrl.getCenterWidth(),r=this.enableRtl;let a=(r?o:i)||s,l=r?i:o;"auto"!==t&&(a="start"===t,l="end"===t);const d="middle"===t;if(a||l||d){const{colLeft:t,colMiddle:o,colRight:i}=this.getColumnBounds(e);return d?o-n/2:a?r?i:t:r?t-n:i-n}return null}isColumnOutsideViewport(e){const{start:t,end:o}=this.getViewportBounds(),{colLeft:i,colRight:s}=this.getColumnBounds(e),n=this.enableRtl;return{columnBeforeStart:n?t>s:o<s,columnAfterEnd:n?o<i:t>i}}getColumnBounds(e){const t=this.enableRtl,o=this.visibleCols.bodyWidth,i=e.getActualWidth(),s=e.getLeft(),n=t?-1:1,r=t?o-s:s;return{colLeft:r,colMiddle:r+i/2*n,colRight:r+i*n}}getViewportBounds(){const e=this.centerRowsCtrl.getCenterWidth(),t=this.centerRowsCtrl.getCenterViewportScrollLeft();return{start:t,end:e+t,width:e}}},Gt=class extends I{constructor(e,t=!1){super(),this.callback=e,this.addSpacer=t}postConstruct(){const e=this.setWidth.bind(this);this.addManagedPropertyListener("domLayout",e),this.addManagedEventListeners({columnContainerWidthChanged:e,displayedColumnsChanged:e,leftPinnedWidthChanged:e}),this.addSpacer&&this.addManagedEventListeners({rightPinnedWidthChanged:e,scrollVisibilityChanged:e,scrollbarWidthChanged:e}),this.setWidth()}setWidth(){const e=_isDomLayout(this.gos,"print"),{visibleCols:t,scrollVisibleSvc:o}=this.beans,i=t.bodyWidth,s=t.getColsLeftWidth(),n=t.getDisplayedColumnsRightWidth();let r;if(e)r=i+s+n;else if(r=i,this.addSpacer){0===(this.gos.get("enableRtl")?s:n)&&o.verticalScrollShowing&&(r+=o.getScrollbarWidth())}this.callback(r)}},Nt=class extends I{constructor(e){super(),this.centerContainerCtrl=e}wireBeans(e){this.scrollVisibleSvc=e.scrollVisibleSvc}postConstruct(){this.beans.ctrlsSvc.whenReady(this,(e=>{this.gridBodyCtrl=e.gridBodyCtrl,this.listenForResize()})),this.addManagedEventListeners({scrollbarWidthChanged:this.onScrollbarWidthChanged.bind(this)}),this.addManagedPropertyListeners(["alwaysShowHorizontalScroll","alwaysShowVerticalScroll"],(()=>{this.checkViewportAndScrolls()}))}listenForResize(){const{beans:e,centerContainerCtrl:t,gridBodyCtrl:o}=this,listener=()=>{_requestAnimationFrame(e,(()=>{this.onCenterViewportResized()}))};t.registerViewportResizeListener(listener),o.registerBodyViewportResizeListener(listener)}onScrollbarWidthChanged(){this.checkViewportAndScrolls()}onCenterViewportResized(){if(this.scrollVisibleSvc.updateScrollGap(),this.centerContainerCtrl.isViewportInTheDOMTree()){const{pinnedCols:e,colFlex:t}=this.beans;e?.keepPinnedColumnsNarrowerThanViewport(),this.checkViewportAndScrolls();const o=this.centerContainerCtrl.getCenterWidth();o!==this.centerWidth&&(this.centerWidth=o,t?.refreshFlexedColumns({viewportWidth:this.centerWidth,updateBodyWidths:!0,fireResizedEvent:!0}))}else this.bodyHeight=0}checkViewportAndScrolls(){this.updateScrollVisibleService(),this.checkBodyHeight(),this.onHorizontalViewportChanged(),this.gridBodyCtrl.scrollFeature.checkScrollLeft()}getBodyHeight(){return this.bodyHeight}checkBodyHeight(){const e=_getInnerHeight(this.gridBodyCtrl.eBodyViewport);this.bodyHeight!==e&&(this.bodyHeight=e,this.eventSvc.dispatchEvent({type:"bodyHeightChanged"}))}updateScrollVisibleService(){this.updateScrollVisibleServiceImpl(),setTimeout(this.updateScrollVisibleServiceImpl.bind(this),500)}updateScrollVisibleServiceImpl(){const e={horizontalScrollShowing:this.centerContainerCtrl.isHorizontalScrollShowing(),verticalScrollShowing:this.gridBodyCtrl.isVerticalScrollShowing()};this.scrollVisibleSvc.setScrollsVisible(e)}onHorizontalViewportChanged(){const e=this.centerContainerCtrl.getCenterWidth(),t=this.centerContainerCtrl.getViewportScrollLeft();this.beans.colViewport.setScrollPosition(e,t)}};function processClassRules(e,t,o,i,s,n){if(null==o&&null==t)return;const r={},a={},forEachSingleClass=(e,t)=>{e.split(" ").forEach((e=>{""!=e.trim()&&t(e)}))};if(o){const t=Object.keys(o);for(let s=0;s<t.length;s++){const n=t[s],l=o[n];let d;"string"==typeof l?d=!e||e.evaluate(l,i):"function"==typeof l&&(d=l(i)),forEachSingleClass(n,(e=>{d?r[e]=!0:a[e]=!0}))}}t&&n&&Object.keys(t).forEach((e=>forEachSingleClass(e,(e=>{r[e]||(a[e]=!0)})))),n&&Object.keys(a).forEach(n),Object.keys(r).forEach(s)}function calculateRowLevel(e){if(e.group)return e.level;const t=e.parent;return t?t.level+1:0}var _t=0,Ot="renderedRow",Ht=class extends I{constructor(e,t,o,i,s){super(),this.rowNode=e,this.useAnimationFrameForCreate=i,this.printLayout=s,this.allRowGuis=[],this.active=!0,this.centerCellCtrls={list:[],map:{}},this.leftCellCtrls={list:[],map:{}},this.rightCellCtrls={list:[],map:{}},this.slideInAnimation={left:!1,center:!1,right:!1,fullWidth:!1},this.fadeInAnimation={left:!1,center:!1,right:!1,fullWidth:!1},this.rowDragComps=[],this.lastMouseDownOnDragger=!1,this.emptyStyle={},this.updateColumnListsPending=!1,this.rowId=null,this.businessKey=null,this.beans=t,this.gos=t.gos,this.paginationPage=t.pagination?.getCurrentPage()??0,this.suppressRowTransform=this.gos.get("suppressRowTransform"),this.instanceId=e.id+"-"+_t++,this.rowId=_escapeString(e.id),this.initRowBusinessKey(),this.rowFocused=t.focusSvc.isRowFocused(this.rowNode.rowIndex,this.rowNode.rowPinned),this.rowLevel=calculateRowLevel(this.rowNode),this.setRowType(),this.setAnimateFlags(o),this.rowStyles=this.processStylesFromGridOptions(),this.rowEditStyleFeature=t.editSvc?.createRowStyleFeature(this,t),this.addListeners()}initRowBusinessKey(){this.businessKeyForNodeFunc=this.gos.get("getBusinessKeyForNode"),this.updateRowBusinessKey()}updateRowBusinessKey(){if("function"!=typeof this.businessKeyForNodeFunc)return;const e=this.businessKeyForNodeFunc(this.rowNode);this.businessKey=_escapeString(e)}updateGui(e,t){"left"===e?this.leftGui=t:"right"===e?this.rightGui=t:"fullWidth"===e?this.fullWidthGui=t:this.centerGui=t}setComp(e,t,o,i){const{context:s,focusSvc:n}=this.beans,r={rowComp:e,element:t,containerType:o,compBean:i=setupCompBean(this,s,i)};this.allRowGuis.push(r),this.updateGui(o,r),this.initialiseRowComp(r);const a=this.rowNode,l="FullWidthLoading"===this.rowType||a.stub,d=!a.data&&"infinite"===this.beans.rowModel.getType();l||d||a.rowPinned||this.beans.rowRenderer.dispatchFirstDataRenderedEvent();const c=this.fullWidthGui?.element;if(c){const e=this.beans.editSvc?.isEditing(this);!e&&n.isRowFocused(a.rowIndex,a.rowPinned)&&n.shouldTakeFocus()&&setTimeout((()=>c.focus({preventScroll:!0})),0)}}unsetComp(e){this.allRowGuis=this.allRowGuis.filter((t=>t.containerType!==e)),this.updateGui(e,void 0)}isCacheable(){return"FullWidthDetail"===this.rowType&&this.gos.get("keepDetailRows")}setCached(e){const t=e?"none":"";this.allRowGuis.forEach((e=>e.element.style.display=t))}initialiseRowComp(e){const t=this.gos;this.onSuppressCellFocusChanged(this.beans.gos.get("suppressCellFocus")),this.listenOnDomOrder(e),this.onRowHeightChanged(e),this.updateRowIndexes(e),this.setFocusedClasses(e),this.setStylesFromGridOptions(!1,e),_isRowSelection(t)&&this.rowNode.selectable&&this.onRowSelected(e),this.updateColumnLists(!this.useAnimationFrameForCreate);const o=e.rowComp;this.getInitialRowClasses(e.containerType).forEach((e=>o.toggleCss(e,!0))),this.executeSlideAndFadeAnimations(e),this.rowNode.group&&_setAriaExpanded(e.element,1==this.rowNode.expanded),this.setRowCompRowId(o),this.setRowCompRowBusinessKey(o),_setDomData(t,e.element,Ot,this),e.compBean.addDestroyFunc((()=>_setDomData(t,e.element,Ot,null))),this.useAnimationFrameForCreate?this.beans.animationFrameSvc.createTask(this.addHoverFunctionality.bind(this,e),this.rowNode.rowIndex,"p2",!1):this.addHoverFunctionality(e),this.isFullWidth()&&this.setupFullWidth(e),t.get("rowDragEntireRow")&&this.addRowDraggerToRow(e),this.useAnimationFrameForCreate&&this.beans.animationFrameSvc.addDestroyTask((()=>{this.isAlive()&&e.rowComp.toggleCss("ag-after-created",!0)})),this.executeProcessRowPostCreateFunc()}setRowCompRowBusinessKey(e){null!=this.businessKey&&e.setRowBusinessKey(this.businessKey)}setRowCompRowId(e){const t=_escapeString(this.rowNode.id);this.rowId=t,null!=t&&e.setRowId(t)}executeSlideAndFadeAnimations(e){const{containerType:t}=e;this.slideInAnimation[t]&&(_batchCall((()=>{this.onTopChanged()})),this.slideInAnimation[t]=!1);this.fadeInAnimation[t]&&(_batchCall((()=>{e.rowComp.toggleCss("ag-opacity-zero",!1)})),this.fadeInAnimation[t]=!1)}addRowDraggerToRow(e){const t=this.beans.rowDragSvc?.createRowDragCompForRow(this.rowNode,e.element);if(!t)return;const o=this.createBean(t,this.beans.context);this.rowDragComps.push(o),e.compBean.addDestroyFunc((()=>{this.rowDragComps=this.rowDragComps.filter((e=>e!==o)),this.rowEditStyleFeature=this.destroyBean(this.rowEditStyleFeature,this.beans.context),this.destroyBean(o,this.beans.context)}))}setupFullWidth(e){const t=this.getPinnedForContainer(e.containerType),o=this.createFullWidthCompDetails(e.element,t);e.rowComp.showFullWidth(o)}getFullWidthCellRenderers(){return this.gos.get("embedFullWidthRows")?this.allRowGuis.map((e=>e?.rowComp?.getFullWidthCellRenderer())):[this.fullWidthGui?.rowComp?.getFullWidthCellRenderer()]}executeProcessRowPostCreateFunc(){const e=this.gos.getCallback("processRowPostCreate");if(!e||!this.areAllContainersReady())return;e({eRow:this.centerGui.element,ePinnedLeftRow:this.leftGui?this.leftGui.element:void 0,ePinnedRightRow:this.rightGui?this.rightGui.element:void 0,node:this.rowNode,rowIndex:this.rowNode.rowIndex,addRenderedRowListener:this.addEventListener.bind(this)})}areAllContainersReady(){const{leftGui:e,centerGui:t,rightGui:o,beans:{visibleCols:i}}=this,s=!!e||!i.isPinningLeft(),n=!!t,r=!!o||!i.isPinningRight();return s&&n&&r}isNodeFullWidthCell(){if(this.rowNode.detail)return!0;const e=this.beans.gos.getCallback("isFullWidthRow");return!!e&&e({rowNode:this.rowNode})}setRowType(){const e=this.rowNode.stub&&!this.gos.get("suppressServerSideFullWidthLoadingRow")&&!this.gos.get("groupHideOpenParents"),t=this.isNodeFullWidthCell(),o=this.gos.get("masterDetail")&&this.rowNode.detail,i=this.beans.colModel.isPivotMode(),s=_isFullWidthGroupRow(this.gos,this.rowNode,i);this.rowType=e?"FullWidthLoading":o?"FullWidthDetail":t?"FullWidth":s?"FullWidthGroup":"Normal"}updateColumnLists(e=!1,t=!1){if(this.isFullWidth())return;const{animationFrameSvc:o}=this.beans;!o?.active||e||this.printLayout?this.updateColumnListsImpl(t):this.updateColumnListsPending||(o.createTask((()=>{this.active&&this.updateColumnListsImpl(!0)}),this.rowNode.rowIndex,"p1",!1),this.updateColumnListsPending=!0)}getNewCellCtrl(e){const t=this.beans.rowSpanSvc?.isCellSpanning(e,this.rowNode);if(!t)return new tt(e,this.rowNode,this.beans,this)}isCorrectCtrlForSpan(e){return!this.beans.rowSpanSvc?.isCellSpanning(e.column,this.rowNode)}createCellCtrls(e,t,o=null){const i={list:[],map:{}},addCell=(e,t,o)=>{null!=o?i.list.splice(o,0,t):i.list.push(t),i.map[e]=t},s=[];for(const o of t){const t=o.getInstanceId();let i=e.map[t];i&&!this.isCorrectCtrlForSpan(i)&&(i.destroy(),i=void 0),i||(i=this.getNewCellCtrl(o)),i&&addCell(t,i)}for(const t of e.list){const e=t.column.getInstanceId();if(null!=i.map[e])continue;!this.isCellEligibleToBeRemoved(t,o)?s.push([e,t]):t.destroy()}if(s.length)for(const[e,t]of s){const o=i.list.findIndex((e=>e.column.getLeft()>t.column.getLeft())),s=-1===o?void 0:Math.max(o-1,0);addCell(e,t,s)}const{focusSvc:n,visibleCols:r}=this.beans,a=n.getFocusedCell();if(a&&a.column.getPinned()==o){const e=a.column.getInstanceId();if(!i.map[e]&&r.allCols.includes(a.column)){const t=this.createFocusedCellCtrl();if(t){const o=i.list.findIndex((e=>e.column.getLeft()>t.column.getLeft())),s=-1===o?void 0:Math.max(o-1,0);addCell(e,t,s)}}}return i}createFocusedCellCtrl(){const{focusSvc:e,rowSpanSvc:t}=this.beans,o=e.getFocusedCell();if(!o)return;const i=t?.getCellSpan(o.column,this.rowNode);if(i){if(i.firstNode!==this.rowNode||!i.doesSpanContain(o))return}else if(!e.isRowFocused(this.rowNode.rowIndex,this.rowNode.rowPinned))return;return this.getNewCellCtrl(o.column)}updateColumnListsImpl(e){this.updateColumnListsPending=!1,this.createAllCellCtrls(),this.setCellCtrls(e)}setCellCtrls(e){this.allRowGuis.forEach((t=>{const o=this.getCellCtrlsForContainer(t.containerType);t.rowComp.setCellCtrls(o,e)}))}getCellCtrlsForContainer(e){switch(e){case"left":return this.leftCellCtrls.list;case"right":return this.rightCellCtrls.list;case"fullWidth":return[];case"center":return this.centerCellCtrls.list}}createAllCellCtrls(){const e=this.beans.colViewport,t=this.beans.visibleCols;if(this.printLayout)this.centerCellCtrls=this.createCellCtrls(this.centerCellCtrls,t.allCols),this.leftCellCtrls={list:[],map:{}},this.rightCellCtrls={list:[],map:{}};else{const o=e.getColsWithinViewport(this.rowNode);this.centerCellCtrls=this.createCellCtrls(this.centerCellCtrls,o);const i=t.getLeftColsForRow(this.rowNode);this.leftCellCtrls=this.createCellCtrls(this.leftCellCtrls,i,"left");const s=t.getRightColsForRow(this.rowNode);this.rightCellCtrls=this.createCellCtrls(this.rightCellCtrls,s,"right")}}isCellEligibleToBeRemoved(e,t){const o=!0,{column:i}=e;if(i.getPinned()!=t)return o;if(!this.isCorrectCtrlForSpan(e))return o;const{visibleCols:s,editSvc:n}=this.beans,r=n?.isEditing(e),a=e.isCellFocused();if(r||a){return!(s.allCols.indexOf(i)>=0)&&o}return o}getDomOrder(){return this.gos.get("ensureDomOrder")||_isDomLayout(this.gos,"print")}listenOnDomOrder(e){e.compBean.addManagedPropertyListeners(["domLayout","ensureDomOrder"],(()=>{e.rowComp.setDomOrder(this.getDomOrder())}))}setAnimateFlags(e){if(this.rowNode.sticky||!e)return;const t=_exists(this.rowNode.oldRowTop),{visibleCols:o}=this.beans,i=o.isPinningLeft(),s=o.isPinningRight();if(t){const{slideInAnimation:e}=this;if(this.isFullWidth()&&!this.gos.get("embedFullWidthRows"))return void(e.fullWidth=!0);e.center=!0,e.left=i,e.right=s}else{const{fadeInAnimation:e}=this;if(this.isFullWidth()&&!this.gos.get("embedFullWidthRows"))return void(e.fullWidth=!0);e.center=!0,e.left=i,e.right=s}}isFullWidth(){return"Normal"!==this.rowType}refreshFullWidth(){const tryRefresh=(e,t)=>!e||e.rowComp.refreshFullWidth((()=>this.createFullWidthCompDetails(e.element,t).params)),e=tryRefresh(this.fullWidthGui,null),t=tryRefresh(this.centerGui,null),o=tryRefresh(this.leftGui,"left"),i=tryRefresh(this.rightGui,"right");return e&&t&&o&&i}addListeners(){const{beans:e,gos:t,rowNode:o}=this,{expansionSvc:i,eventSvc:s,context:n,rowSpanSvc:r}=e;this.addManagedListeners(this.rowNode,{heightChanged:()=>this.onRowHeightChanged(),rowSelected:()=>this.onRowSelected(),rowIndexChanged:this.onRowIndexChanged.bind(this),topChanged:this.onTopChanged.bind(this),...i?.getRowExpandedListeners(this)??{}}),o.detail&&this.addManagedListeners(o.parent,{dataChanged:this.onRowNodeDataChanged.bind(this)}),this.addManagedListeners(o,{dataChanged:this.onRowNodeDataChanged.bind(this),cellChanged:this.postProcessCss.bind(this),rowHighlightChanged:this.onRowNodeHighlightChanged.bind(this),draggingChanged:this.postProcessRowDragging.bind(this),uiLevelChanged:this.onUiLevelChanged.bind(this),rowPinned:this.onRowPinned.bind(this)}),this.addManagedListeners(s,{paginationPixelOffsetChanged:this.onPaginationPixelOffsetChanged.bind(this),heightScaleChanged:this.onTopChanged.bind(this),displayedColumnsChanged:this.onDisplayedColumnsChanged.bind(this),virtualColumnsChanged:this.onVirtualColumnsChanged.bind(this),cellFocused:this.onCellFocusChanged.bind(this),cellFocusCleared:this.onCellFocusChanged.bind(this),paginationChanged:this.onPaginationChanged.bind(this),modelUpdated:this.refreshFirstAndLastRowStyles.bind(this),columnMoved:()=>this.updateColumnLists()}),r&&this.addManagedListeners(r,{spannedCellsUpdated:({pinned:e})=>{e&&!o.rowPinned||this.updateColumnLists()}}),this.addDestroyFunc((()=>{this.rowDragComps=this.destroyBeans(this.rowDragComps,n),this.tooltipFeature=this.destroyBean(this.tooltipFeature,n),this.rowEditStyleFeature=this.destroyBean(this.rowEditStyleFeature,n)})),this.addManagedPropertyListeners(["rowStyle","getRowStyle","rowClass","getRowClass","rowClassRules"],this.postProcessCss.bind(this)),this.addManagedPropertyListener("rowDragEntireRow",(()=>{t.get("rowDragEntireRow")?this.allRowGuis.forEach((e=>{this.addRowDraggerToRow(e)})):this.rowDragComps=this.destroyBeans(this.rowDragComps,n)})),this.addListenersForCellComps()}addListenersForCellComps(){this.addManagedListeners(this.rowNode,{rowIndexChanged:()=>this.getAllCellCtrls().forEach((e=>e.onRowIndexChanged())),cellChanged:e=>this.getAllCellCtrls().forEach((t=>t.onCellChanged(e)))})}onRowPinned(){for(const e of this.allRowGuis)e.rowComp.toggleCss("ag-row-pinned-source",!!this.rowNode.pinnedSibling)}onRowNodeDataChanged(e){this.refreshRow({suppressFlash:!e.update,newData:!e.update})}refreshRow(e){if(this.isFullWidth()!==!!this.isNodeFullWidthCell())this.beans.rowRenderer.redrawRow(this.rowNode);else if(this.isFullWidth()){this.refreshFullWidth()||this.beans.rowRenderer.redrawRow(this.rowNode)}else this.getAllCellCtrls().forEach((t=>t.refreshCell(e))),this.allRowGuis.forEach((e=>{this.setRowCompRowId(e.rowComp),this.updateRowBusinessKey(),this.setRowCompRowBusinessKey(e.rowComp)})),this.onRowSelected(),this.postProcessCss()}postProcessCss(){this.setStylesFromGridOptions(!0),this.postProcessClassesFromGridOptions(),this.postProcessRowClassRules(),this.rowEditStyleFeature?.applyRowStyles(),this.postProcessRowDragging()}onRowNodeHighlightChanged(){const e=this.beans.rowDropHighlightSvc,t=e?.row===this.rowNode?e.position:"none",o="above"===t,i="inside"===t,s="below"===t,n=this.gos.get("treeData")&&(s||o),r=this.rowNode.uiLevel.toString();this.allRowGuis.forEach((e=>{const t=e.rowComp;t.toggleCss("ag-row-highlight-above",o),t.toggleCss("ag-row-highlight-inside",i),t.toggleCss("ag-row-highlight-below",s),t.toggleCss("ag-row-highlight-indent",n),n?e.element.style.setProperty("--ag-row-highlight-level",r):e.element.style.removeProperty("--ag-row-highlight-level")}))}postProcessRowDragging(){const e=this.rowNode.dragging;this.allRowGuis.forEach((t=>t.rowComp.toggleCss("ag-row-dragging",e)))}onDisplayedColumnsChanged(){this.updateColumnLists(!0),this.beans.rowAutoHeight?.requestCheckAutoHeight()}onVirtualColumnsChanged(){this.updateColumnLists(!1,!0)}getRowPosition(){return{rowPinned:_makeNull(this.rowNode.rowPinned),rowIndex:this.rowNode.rowIndex}}onKeyboardNavigate(e){const t=this.findFullWidthInfoForEvent(e);if(!t)return;const{rowGui:o,column:i}=t;if(!(o.element===e.target))return;const s=this.rowNode,{focusSvc:n,navigation:r}=this.beans,a=n.getFocusedCell(),l={rowIndex:s.rowIndex,rowPinned:s.rowPinned,column:a?.column??i};r?.navigateToNextCell(e,e.key,l,!0),e.preventDefault()}onTabKeyDown(e){if(e.defaultPrevented||_isStopPropagationForAgGrid(e))return;const t=this.allRowGuis.find((t=>t.element.contains(e.target))),o=t?t.element:null,i=o===e.target,s=_getActiveDomElement(this.beans);let n=!1;o&&s&&(n=o.contains(s)&&s.classList.contains("ag-cell"));let r=null;i||n||(r=_findNextFocusableElement(this.beans,o,!1,e.shiftKey)),(this.isFullWidth()&&i||!r)&&this.beans.navigation?.onTabKeyDown(this,e)}getFullWidthElement(){return this.fullWidthGui?this.fullWidthGui.element:null}getRowYPosition(){const e=this.allRowGuis.find((e=>_isVisible(e.element)))?.element;return e?e.getBoundingClientRect().top:0}onSuppressCellFocusChanged(e){const t=this.isFullWidth()&&e?void 0:-1;this.allRowGuis.forEach((e=>{_addOrRemoveAttribute(e.element,"tabindex",t)}))}onFullWidthRowFocused(e){const t=this.rowNode,o=!!e&&(this.isFullWidth()&&e.rowIndex===t.rowIndex&&e.rowPinned==t.rowPinned);let i;if(this.fullWidthGui)i=this.fullWidthGui.element;else{const t=this.beans.colModel.getCol(e?.column)?.pinned;i=t?"right"===t?this.rightGui?.element:this.leftGui?.element:this.centerGui?.element}i&&(i.classList.toggle("ag-full-width-focus",o),o&&e?.forceBrowserFocus&&i.focus({preventScroll:!0}))}recreateCell(e){this.centerCellCtrls=this.removeCellCtrl(this.centerCellCtrls,e),this.leftCellCtrls=this.removeCellCtrl(this.leftCellCtrls,e),this.rightCellCtrls=this.removeCellCtrl(this.rightCellCtrls,e),e.destroy(),this.updateColumnLists()}removeCellCtrl(e,t){const o={list:[],map:{}};return e.list.forEach((e=>{e!==t&&(o.list.push(e),o.map[e.column.getInstanceId()]=e)})),o}onMouseEvent(e,t){switch(e){case"dblclick":this.onRowDblClick(t);break;case"click":this.onRowClick(t);break;case"touchstart":case"mousedown":this.onRowMouseDown(t)}}createRowEvent(e,t){const{rowNode:o}=this;return _addGridCommonParams(this.gos,{type:e,node:o,data:o.data,rowIndex:o.rowIndex,rowPinned:o.rowPinned,event:t})}createRowEventWithSource(e,t){const o=this.createRowEvent(e,t);return o.source=this,o}onRowDblClick(e){_isStopPropagationForAgGrid(e)||this.beans.eventSvc.dispatchEvent(this.createRowEventWithSource("rowDoubleClicked",e))}findFullWidthInfoForEvent(e){if(!e)return;const t=this.findFullWidthRowGui(e.target),o=this.getColumnForFullWidth(t);return t&&o?{rowGui:t,column:o}:void 0}findFullWidthRowGui(e){return this.allRowGuis.find((t=>t.element.contains(e)))}getColumnForFullWidth(e){const{visibleCols:t}=this.beans;switch(e?.containerType){case"center":return t.centerCols[0];case"left":return t.leftCols[0];case"right":return t.rightCols[0];default:return t.allCols[0]}}onRowMouseDown(e){if(this.lastMouseDownOnDragger=_isElementChildOfClass(e.target,"ag-row-drag",3),!this.isFullWidth())return;const t=this.rowNode,{rangeSvc:o,focusSvc:i}=this.beans;o?.removeAllCellRanges();const s=this.findFullWidthInfoForEvent(e);if(!s)return;const{rowGui:n,column:r}=s,a=n.element,l=e.target;let d=e.defaultPrevented||_isBrowserSafari();a&&a.contains(l)&&_isFocusableFormField(l)&&(d=!1),i.setFocusedCell({rowIndex:t.rowIndex,column:r,rowPinned:t.rowPinned,forceBrowserFocus:d})}onRowClick(e){if(_isStopPropagationForAgGrid(e)||this.lastMouseDownOnDragger)return;const{eventSvc:t,selectionSvc:o}=this.beans;t.dispatchEvent(this.createRowEventWithSource("rowClicked",e)),o?.handleSelectionEvent(e,this.rowNode,"rowClicked")}setupDetailRowAutoHeight(e){"FullWidthDetail"===this.rowType&&this.beans.masterDetailSvc?.setupDetailRowAutoHeight(this,e)}createFullWidthCompDetails(e,t){const{gos:o,rowNode:i}=this,s=_addGridCommonParams(o,{fullWidth:!0,data:i.data,node:i,value:i.key,valueFormatted:i.key,eGridCell:e,eParentOfValue:e,pinned:t,addRenderedRowListener:this.addEventListener.bind(this),registerRowDragger:(e,t,o,i)=>this.addFullWidthRowDragging(e,t,o,i),setTooltip:(e,t)=>{o.assertModuleRegistered("Tooltip",3),this.setupFullWidthRowTooltip(e,t)}}),n=this.beans.userCompFactory;switch(this.rowType){case"FullWidthDetail":return function _getFullWidthDetailCellRendererDetails(e,t){return e.getCompDetailsFromGridOptions(pe,"agDetailCellRenderer",t,!0)}(n,s);case"FullWidthGroup":{const{value:e,valueFormatted:t}=this.beans.valueSvc.getValueForDisplay(void 0,this.rowNode,!0);return s.value=e,s.valueFormatted=t,function _getFullWidthGroupCellRendererDetails(e,t){return e.getCompDetailsFromGridOptions(ge,"agGroupRowRenderer",t,!0)}(n,s)}case"FullWidthLoading":return function _getFullWidthLoadingCellRendererDetails(e,t){return e.getCompDetailsFromGridOptions(ue,"agLoadingCellRenderer",t,!0)}(n,s);default:return function _getFullWidthCellRendererDetails(e,t){return e.getCompDetailsFromGridOptions(he,void 0,t,!0)}(n,s)}}setupFullWidthRowTooltip(e,t){this.fullWidthGui&&(this.tooltipFeature=this.beans.tooltipSvc?.setupFullWidthRowTooltip(this.tooltipFeature,this,e,t))}addFullWidthRowDragging(e,t,o="",i){const{rowDragSvc:s,context:n}=this.beans;if(!s||!this.isFullWidth())return;const r=s.createRowDragComp((()=>o),this.rowNode,void 0,e,t,i);this.createBean(r,n),this.addDestroyFunc((()=>{this.destroyBean(r,n)}))}onUiLevelChanged(){const e=calculateRowLevel(this.rowNode);if(this.rowLevel!=e){const t="ag-row-level-"+e,o="ag-row-level-"+this.rowLevel;this.allRowGuis.forEach((e=>{e.rowComp.toggleCss(t,!0),e.rowComp.toggleCss(o,!1)}))}this.rowLevel=e}isFirstRowOnPage(){return this.rowNode.rowIndex===this.beans.pageBounds.getFirstRow()}isLastRowOnPage(){return this.rowNode.rowIndex===this.beans.pageBounds.getLastRow()}refreshFirstAndLastRowStyles(){const e=this.isFirstRowOnPage(),t=this.isLastRowOnPage();this.firstRowOnPage!==e&&(this.firstRowOnPage=e,this.allRowGuis.forEach((t=>t.rowComp.toggleCss("ag-row-first",e)))),this.lastRowOnPage!==t&&(this.lastRowOnPage=t,this.allRowGuis.forEach((e=>e.rowComp.toggleCss("ag-row-last",t))))}getAllCellCtrls(){if(0===this.leftCellCtrls.list.length&&0===this.rightCellCtrls.list.length)return this.centerCellCtrls.list;return[...this.centerCellCtrls.list,...this.leftCellCtrls.list,...this.rightCellCtrls.list]}postProcessClassesFromGridOptions(){const e=[];this.beans.rowStyleSvc?.processClassesFromGridOptions(e,this.rowNode),e.length&&e.forEach((e=>{this.allRowGuis.forEach((t=>t.rowComp.toggleCss(e,!0)))}))}postProcessRowClassRules(){this.beans.rowStyleSvc?.processRowClassRules(this.rowNode,(e=>{this.allRowGuis.forEach((t=>t.rowComp.toggleCss(e,!0)))}),(e=>{this.allRowGuis.forEach((t=>t.rowComp.toggleCss(e,!1)))}))}setStylesFromGridOptions(e,t){e&&(this.rowStyles=this.processStylesFromGridOptions()),this.forEachGui(t,(e=>e.rowComp.setUserStyles(this.rowStyles)))}getPinnedForContainer(e){return"left"===e||"right"===e?e:null}getInitialRowClasses(e){const t=this.getPinnedForContainer(e),o=this.isFullWidth(),{rowNode:i,beans:s}=this,n=[];n.push("ag-row"),n.push(this.rowFocused?"ag-row-focus":"ag-row-no-focus"),this.fadeInAnimation[e]&&n.push("ag-opacity-zero"),n.push(i.rowIndex%2==0?"ag-row-even":"ag-row-odd"),i.isRowPinned()&&(n.push("ag-row-pinned"),s.pinnedRowModel?.isManual()&&n.push("ag-row-pinned-manual")),!i.isRowPinned()&&i.pinnedSibling&&n.push("ag-row-pinned-source"),i.isSelected()&&n.push("ag-row-selected"),i.footer&&n.push("ag-row-footer"),n.push("ag-row-level-"+this.rowLevel),i.stub&&n.push("ag-row-loading"),o&&n.push("ag-full-width-row"),s.expansionSvc?.addExpandedCss(n,i),i.dragging&&n.push("ag-row-dragging");const{rowStyleSvc:r}=s;return r&&(r.processClassesFromGridOptions(n,i),r.preProcessRowClassRules(n,i)),n.push(this.printLayout?"ag-row-position-relative":"ag-row-position-absolute"),this.isFirstRowOnPage()&&n.push("ag-row-first"),this.isLastRowOnPage()&&n.push("ag-row-last"),o&&("left"===t&&n.push("ag-cell-last-left-pinned"),"right"===t&&n.push("ag-cell-first-right-pinned")),n}processStylesFromGridOptions(){return this.beans.rowStyleSvc?.processStylesFromGridOptions(this.rowNode)??this.emptyStyle}onRowSelected(e){this.beans.selectionSvc?.onRowCtrlSelected(this,(e=>{e!==this.centerGui&&e!==this.fullWidthGui||this.announceDescription()}),e)}announceDescription(){this.beans.selectionSvc?.announceAriaRowSelection(this.rowNode)}addHoverFunctionality(e){if(!this.active)return;const{element:t,compBean:o}=e,{rowNode:i,beans:s,gos:n}=this;o.addManagedListeners(t,{mouseenter:()=>i.dispatchRowEvent("mouseEnter"),mouseleave:()=>i.dispatchRowEvent("mouseLeave")}),o.addManagedListeners(i,{mouseEnter:()=>{s.dragSvc?.dragging||n.get("suppressRowHoverHighlight")||(t.classList.add("ag-row-hover"),i.setHovered(!0))},mouseLeave:()=>{this.resetHoveredStatus(t)}})}resetHoveredStatus(e){const t=e?[e]:this.allRowGuis.map((e=>e.element));for(const e of t)e.classList.remove("ag-row-hover");this.rowNode.setHovered(!1)}roundRowTopToBounds(e){const t=this.beans.ctrlsSvc.getScrollFeature().getApproximateVScollPosition(),o=this.applyPaginationOffset(t.top,!0)-100,i=this.applyPaginationOffset(t.bottom,!0)+100;return Math.min(Math.max(o,e),i)}forEachGui(e,t){e?t(e):this.allRowGuis.forEach(t)}isRowRendered(){return this.allRowGuis.length>0}onRowHeightChanged(e){if(null==this.rowNode.rowHeight)return;const t=this.rowNode.rowHeight,o=this.beans.environment.getDefaultRowHeight(),i=_isGetRowHeightFunction(this.gos)?_getRowHeightForNode(this.beans,this.rowNode).height:void 0,s=i?Math.min(o,i)-2+"px":void 0;this.forEachGui(e,(e=>{e.element.style.height=`${t}px`,s&&e.element.style.setProperty("--ag-line-height",s)}))}destroyFirstPass(e=!1){this.active=!1;const{rowNode:t}=this;if(!e&&_isAnimateRows(this.gos)&&!t.sticky){if(null!=t.rowTop){const e=this.roundRowTopToBounds(t.rowTop);this.setRowTop(e)}else this.allRowGuis.forEach((e=>e.rowComp.toggleCss("ag-opacity-zero",!0)))}this.fullWidthGui?.element.contains(_getActiveDomElement(this.beans))&&this.beans.focusSvc.attemptToRecoverFocus(),t.setHovered(!1);const o=this.createRowEvent("virtualRowRemoved");this.dispatchLocalEvent(o),this.beans.eventSvc.dispatchEvent(o),super.destroy()}destroySecondPass(){this.allRowGuis.length=0;const destroyCellCtrls=e=>(e.list.forEach((e=>e.destroy())),{list:[],map:{}});this.centerCellCtrls=destroyCellCtrls(this.centerCellCtrls),this.leftCellCtrls=destroyCellCtrls(this.leftCellCtrls),this.rightCellCtrls=destroyCellCtrls(this.rightCellCtrls)}setFocusedClasses(e){this.forEachGui(e,(e=>{e.rowComp.toggleCss("ag-row-focus",this.rowFocused),e.rowComp.toggleCss("ag-row-no-focus",!this.rowFocused)}))}onCellFocusChanged(){const{focusSvc:e}=this.beans,t=e.isRowFocused(this.rowNode.rowIndex,this.rowNode.rowPinned);t!==this.rowFocused&&(this.rowFocused=t,this.setFocusedClasses())}onPaginationChanged(){const e=this.beans.pagination?.getCurrentPage()??0;this.paginationPage!==e&&(this.paginationPage=e,this.onTopChanged()),this.refreshFirstAndLastRowStyles()}onTopChanged(){this.setRowTop(this.rowNode.rowTop)}onPaginationPixelOffsetChanged(){this.onTopChanged()}applyPaginationOffset(e,t=!1){if(this.rowNode.isRowPinned()||this.rowNode.sticky)return e;return e+this.beans.pageBounds.getPixelOffset()*(t?1:-1)}setRowTop(e){if(!this.printLayout&&_exists(e)){const t=this.applyPaginationOffset(e),o=`${this.rowNode.isRowPinned()||this.rowNode.sticky?t:this.beans.rowContainerHeight.getRealPixelPosition(t)}px`;this.setRowTopStyle(o)}}getInitialRowTop(e){return this.suppressRowTransform?this.getInitialRowTopShared(e):void 0}getInitialTransform(e){return this.suppressRowTransform?void 0:`translateY(${this.getInitialRowTopShared(e)})`}getInitialRowTopShared(e){if(this.printLayout)return"";const t=this.rowNode;let o;if(t.sticky)o=t.stickyRowTop;else{const i=this.slideInAnimation[e]?this.roundRowTopToBounds(t.oldRowTop):t.rowTop,s=this.applyPaginationOffset(i);o=t.isRowPinned()?s:this.beans.rowContainerHeight.getRealPixelPosition(s)}return o+"px"}setRowTopStyle(e){this.allRowGuis.forEach((t=>this.suppressRowTransform?t.rowComp.setTop(e):t.rowComp.setTransform(`translateY(${e})`)))}getCellCtrl(e,t=!1){let o=null;return this.getAllCellCtrls().forEach((t=>{t.column==e&&(o=t)})),null!=o||t||this.getAllCellCtrls().forEach((t=>{t?.getColSpanningList().indexOf(e)>=0&&(o=t)})),o}onRowIndexChanged(){null!=this.rowNode.rowIndex&&(this.onCellFocusChanged(),this.updateRowIndexes(),this.postProcessCss())}updateRowIndexes(e){const t=this.rowNode.getRowIndexString();if(null===t)return;const o=(this.beans.ctrlsSvc.getHeaderRowContainerCtrl()?.getRowCount()??0)+(this.beans.filterManager?.getHeaderRowCount()??0),i=this.rowNode.rowIndex%2==0,s=o+this.rowNode.rowIndex+1;this.forEachGui(e,(e=>{e.rowComp.setRowIndex(t),e.rowComp.toggleCss("ag-row-even",i),e.rowComp.toggleCss("ag-row-odd",!i),_setAriaRowIndex(e.element,s)}))}};function _isEventFromPrintableCharacter(e){if(e.altKey||e.ctrlKey||e.metaKey)return!1;return 1===e.key?.length}function _isUserSuppressingKeyboardEvent(e,t,o,i,s){const n=i?i.getColDef().suppressKeyboardEvent:void 0;if(!n)return!1;const r=_addGridCommonParams(e,{event:t,editing:s,column:i,node:o,data:o.data,colDef:i.getColDef()});if(n){if(n(r))return!0}return!1}var Vt=class extends I{constructor(e){super(),this.element=e}postConstruct(){this.addKeyboardListeners(),this.addMouseListeners(),this.beans.touchSvc?.mockRowContextMenu(this),this.editSvc=this.beans.editSvc}addKeyboardListeners(){const e="keydown",t=this.processKeyboardEvent.bind(this,e);this.addManagedElementListeners(this.element,{[e]:t})}addMouseListeners(){["dblclick","contextmenu","mouseover","mouseout","click",A("touchstart")?"touchstart":"mousedown"].forEach((e=>{const t=this.processMouseEvent.bind(this,e);this.addManagedElementListeners(this.element,{[e]:t})}))}processMouseEvent(e,t){if(!_isEventFromThisGrid(this.gos,t)||_isStopPropagationForAgGrid(t))return;const{cellCtrl:o,rowCtrl:i}=this.getControlsForEventTarget(t.target);"contextmenu"===e?(o?.column&&o.dispatchCellContextMenuEvent(t),this.beans.contextMenuSvc?.handleContextMenuMouseEvent(t,void 0,i,o)):(o&&o.onMouseEvent(e,t),i&&i.onMouseEvent(e,t))}getControlsForEventTarget(e){const{gos:t}=this;return{cellCtrl:_getCellCtrlForEventTarget(t,e),rowCtrl:_getCtrlForEventTarget(t,e,Ot)}}processKeyboardEvent(e,t){const{cellCtrl:o,rowCtrl:i}=this.getControlsForEventTarget(t.target);t.defaultPrevented||(o?this.processCellKeyboardEvent(o,e,t):i?.isFullWidth()&&this.processFullWidthRowKeyboardEvent(i,e,t))}processCellKeyboardEvent(e,t,o){const i=this.editSvc?.isEditing(e,{withOpenEditor:!0})??!1;if(!_isUserSuppressingKeyboardEvent(this.gos,o,e.rowNode,e.column,i)&&"keydown"===t){!i&&this.beans.navigation?.handlePageScrollingKey(o)||e.onKeyDown(o),this.doGridOperations(o,i),_isEventFromPrintableCharacter(o)&&e.processCharacter(o)}"keydown"===t&&this.eventSvc.dispatchEvent(e.createEvent(o,"cellKeyDown"))}processFullWidthRowKeyboardEvent(e,t,o){const{rowNode:i}=e,{focusSvc:s,navigation:n}=this.beans,r=s.getFocusedCell()?.column;if(!_isUserSuppressingKeyboardEvent(this.gos,o,i,r,!1)){const i=o.key;if("keydown"===t)switch(i){case He:case Ve:case _e:case Oe:n?.handlePageScrollingKey(o,!0);break;case Ae:case ke:if(!this.gos.get("embedFullWidthRows"))break;case Ie:case Le:e.onKeyboardNavigate(o);break;case De:e.onTabKeyDown(o)}}"keydown"===t&&this.eventSvc.dispatchEvent(e.createRowEvent("cellKeyDown",o))}doGridOperations(e,t){if(!e.ctrlKey&&!e.metaKey)return;if(t)return;if(!_isEventFromThisGrid(this.gos,e))return;const o=function _normaliseQwertyAzerty(e){const{keyCode:t}=e;let o;switch(t){case 65:o=Be;break;case 67:o=ze;break;case 86:o=Ue;break;case 68:o=We;break;case 90:o=je;break;case 89:o=Ke;break;default:o=e.code}return o}(e),{clipboardSvc:i,undoRedo:s}=this.beans;return o===Be?this.onCtrlAndA(e):o===ze?this.onCtrlAndC(i,e):o===We?this.onCtrlAndD(i,e):o===Ue?this.onCtrlAndV(i,e):o===$e?this.onCtrlAndX(i,e):o===Ke?this.onCtrlAndY(s):o===je?this.onCtrlAndZ(s,e):void 0}onCtrlAndA(e){const{beans:{rowModel:t,rangeSvc:o,selectionSvc:i},gos:s}=this;o&&_isCellSelectionEnabled(s)&&t.isRowsToRender()?function _selectAllCells(e){const{pinnedRowModel:t,rowModel:o}=e,[i,s]=[t?.isEmpty("top")??!0,t?.isEmpty("bottom")??!0],n=i?null:"top";let r,a;s?(r=null,a=o.getRowCount()-1):(r="bottom",a=t?.getPinnedBottomRowCount()??-1);const{visibleCols:l,rangeSvc:d}=e,c=l.allCols;d&&c?.length&&d.setCellRange({rowStartIndex:0,rowStartPinned:n,rowEndIndex:a,rowEndPinned:r})}(this.beans):i&&i?.selectAllRowNodes({source:"keyboardSelectAll",selectAll:_getSelectAll(s)}),e.preventDefault()}onCtrlAndC(e,t){if(!e||this.gos.get("enableCellTextSelection"))return;const{cellCtrl:o}=this.getControlsForEventTarget(t.target);this.editSvc?.isEditing(o,{withOpenEditor:!0})||(t.preventDefault(),e.copyToClipboard())}onCtrlAndX(e,t){if(!e||this.gos.get("enableCellTextSelection")||this.gos.get("suppressCutToClipboard"))return;const{cellCtrl:o}=this.getControlsForEventTarget(t.target);this.editSvc?.isEditing(o,{withOpenEditor:!0})||(t.preventDefault(),e.cutToClipboard(void 0,"ui"))}onCtrlAndV(e,t){const{cellCtrl:o}=this.getControlsForEventTarget(t.target);this.editSvc?.isEditing(o,{withOpenEditor:!0})||e&&!this.gos.get("suppressClipboardPaste")&&e.pasteFromClipboard()}onCtrlAndD(e,t){e&&!this.gos.get("suppressClipboardPaste")&&e.copyRangeDown(),t.preventDefault()}onCtrlAndZ(e,t){this.gos.get("undoRedoCellEditing")&&e&&(t.preventDefault(),t.shiftKey?e.redo("ui"):e.undo("ui"))}onCtrlAndY(e){e?.redo("ui")}},Bt=class extends I{constructor(e,t){super(),this.eContainer=e,this.eViewport=t}postConstruct(){this.addManagedEventListeners({rowContainerHeightChanged:this.onHeightChanged.bind(this,this.beans.rowContainerHeight)})}onHeightChanged(e){const t=e.uiContainerHeight,o=null!=t?`${t}px`:"";this.eContainer.style.height=o,this.eViewport&&(this.eViewport.style.height=o)}},getTopRowCtrls=e=>e.topRowCtrls,getStickyTopRowCtrls=e=>e.getStickyTopRowCtrls(),getStickyBottomRowCtrls=e=>e.getStickyBottomRowCtrls(),getBottomRowCtrls=e=>e.bottomRowCtrls,getCentreRowCtrls=e=>e.allRowCtrls,getSpannedTopRowCtrls=e=>e.getCtrls("top"),getSpannedCenterRowCtrls=e=>e.getCtrls("center"),getSpannedBottomRowCtrls=e=>e.getCtrls("bottom"),zt={center:{type:"center",name:"center-cols",getRowCtrls:getCentreRowCtrls,getSpannedRowCtrls:getSpannedCenterRowCtrls},left:{type:"left",name:"pinned-left-cols",pinnedType:"left",getRowCtrls:getCentreRowCtrls,getSpannedRowCtrls:getSpannedCenterRowCtrls},right:{type:"right",name:"pinned-right-cols",pinnedType:"right",getRowCtrls:getCentreRowCtrls,getSpannedRowCtrls:getSpannedCenterRowCtrls},fullWidth:{type:"fullWidth",name:"full-width",fullWidth:!0,getRowCtrls:getCentreRowCtrls},topCenter:{type:"center",name:"floating-top",getRowCtrls:getTopRowCtrls,getSpannedRowCtrls:getSpannedTopRowCtrls},topLeft:{type:"left",name:"pinned-left-floating",container:"ag-pinned-left-floating-top",pinnedType:"left",getRowCtrls:getTopRowCtrls,getSpannedRowCtrls:getSpannedTopRowCtrls},topRight:{type:"right",name:"pinned-right-floating",container:"ag-pinned-right-floating-top",pinnedType:"right",getRowCtrls:getTopRowCtrls,getSpannedRowCtrls:getSpannedTopRowCtrls},topFullWidth:{type:"fullWidth",name:"floating-top-full-width",fullWidth:!0,getRowCtrls:getTopRowCtrls},stickyTopCenter:{type:"center",name:"sticky-top",getRowCtrls:getStickyTopRowCtrls},stickyTopLeft:{type:"left",name:"pinned-left-sticky-top",container:"ag-pinned-left-sticky-top",pinnedType:"left",getRowCtrls:getStickyTopRowCtrls},stickyTopRight:{type:"right",name:"pinned-right-sticky-top",container:"ag-pinned-right-sticky-top",pinnedType:"right",getRowCtrls:getStickyTopRowCtrls},stickyTopFullWidth:{type:"fullWidth",name:"sticky-top-full-width",fullWidth:!0,getRowCtrls:getStickyTopRowCtrls},stickyBottomCenter:{type:"center",name:"sticky-bottom",getRowCtrls:getStickyBottomRowCtrls},stickyBottomLeft:{type:"left",name:"pinned-left-sticky-bottom",container:"ag-pinned-left-sticky-bottom",pinnedType:"left",getRowCtrls:getStickyBottomRowCtrls},stickyBottomRight:{type:"right",name:"pinned-right-sticky-bottom",container:"ag-pinned-right-sticky-bottom",pinnedType:"right",getRowCtrls:getStickyBottomRowCtrls},stickyBottomFullWidth:{type:"fullWidth",name:"sticky-bottom-full-width",fullWidth:!0,getRowCtrls:getStickyBottomRowCtrls},bottomCenter:{type:"center",name:"floating-bottom",getRowCtrls:getBottomRowCtrls,getSpannedRowCtrls:getSpannedBottomRowCtrls},bottomLeft:{type:"left",name:"pinned-left-floating-bottom",container:"ag-pinned-left-floating-bottom",pinnedType:"left",getRowCtrls:getBottomRowCtrls,getSpannedRowCtrls:getSpannedBottomRowCtrls},bottomRight:{type:"right",name:"pinned-right-floating-bottom",container:"ag-pinned-right-floating-bottom",pinnedType:"right",getRowCtrls:getBottomRowCtrls,getSpannedRowCtrls:getSpannedBottomRowCtrls},bottomFullWidth:{type:"fullWidth",name:"floating-bottom-full-width",fullWidth:!0,getRowCtrls:getBottomRowCtrls}};function _getRowViewportClass(e){return`ag-${_getRowContainerOptions(e).name}-viewport`}function _getRowContainerClass(e){const t=_getRowContainerOptions(e);return t.container??`ag-${t.name}-container`}function _getRowSpanContainerClass(e){return`ag-${_getRowContainerOptions(e).name}-spanned-cells-container`}function _getRowContainerOptions(e){return zt[e]}var Wt=["center","left","right","fullWidth"],Ut=["stickyTopCenter","stickyBottomCenter","center","topCenter","bottomCenter"],$t=["left","bottomLeft","topLeft","stickyTopLeft","stickyBottomLeft"],Kt=["right","bottomRight","topRight","stickyTopRight","stickyBottomRight"],jt=["stickyTopCenter","stickyTopLeft","stickyTopRight"],qt=["stickyBottomCenter","stickyBottomLeft","stickyBottomRight"],Qt=[...jt,"stickyTopFullWidth",...qt,"stickyBottomFullWidth"],Yt=["topCenter","topLeft","topRight","bottomCenter","bottomLeft","bottomRight","center","left","right",...jt,...qt],Zt=class extends I{constructor(e){super(),this.name=e,this.visible=!0,this.EMPTY_CTRLS=[],this.options=_getRowContainerOptions(e)}postConstruct(){this.enableRtl=this.gos.get("enableRtl"),this.forContainers(["center"],(()=>{this.viewportSizeFeature=this.createManagedBean(new Nt(this)),this.addManagedEventListeners({stickyTopOffsetChanged:this.onStickyTopOffsetChanged.bind(this)})}))}onStickyTopOffsetChanged(e){this.comp.setOffsetTop(`${e.offset}px`)}registerWithCtrlsService(){this.options.fullWidth||this.beans.ctrlsSvc.register(this.name,this)}forContainers(e,t){e.indexOf(this.name)>=0&&t()}setComp(e,t,o,i){this.comp=e,this.eContainer=t,this.eSpannedContainer=o,this.eViewport=i,this.createManagedBean(new Vt(this.eViewport??this.eContainer)),this.addPreventScrollWhileDragging(),this.listenOnDomOrder();const{pinnedCols:s,rangeSvc:n}=this.beans,pinnedWidthChanged=()=>this.onPinnedWidthChanged();this.forContainers($t,(()=>{this.pinnedWidthFeature=this.createOptionalManagedBean(s?.createPinnedWidthFeature(!0,this.eContainer,this.eSpannedContainer)),this.addManagedEventListeners({leftPinnedWidthChanged:pinnedWidthChanged})})),this.forContainers(Kt,(()=>{this.pinnedWidthFeature=this.createOptionalManagedBean(s?.createPinnedWidthFeature(!1,this.eContainer,this.eSpannedContainer)),this.addManagedEventListeners({rightPinnedWidthChanged:pinnedWidthChanged})})),this.forContainers(Wt,(()=>this.createManagedBean(new Bt(this.eContainer,"center"===this.name?i:void 0)))),n&&this.forContainers(Yt,(()=>this.createManagedBean(n.createDragListenerFeature(this.eContainer)))),this.forContainers(Ut,(()=>this.createManagedBean(new Gt((e=>this.comp.setContainerWidth(`${e}px`)))))),this.visible=this.isContainerVisible(),this.addListeners(),this.registerWithCtrlsService()}onScrollCallback(e){this.addManagedElementListeners(this.eViewport,{scroll:e})}addListeners(){const{spannedRowRenderer:e,gos:t}=this.beans,o=this.onDisplayedColumnsChanged.bind(this);this.addManagedEventListeners({displayedColumnsChanged:o,displayedColumnsWidthChanged:o,displayedRowsChanged:e=>this.onDisplayedRowsChanged(e.afterScroll)}),o(),this.onDisplayedRowsChanged(),e&&this.options.getSpannedRowCtrls&&t.get("enableCellSpan")&&this.addManagedListeners(e,{spannedRowsUpdated:()=>{const t=this.options.getSpannedRowCtrls(e);t&&this.comp.setSpannedRowCtrls(t,!1)}})}listenOnDomOrder(){if(Qt.indexOf(this.name)>=0)return void this.comp.setDomOrder(!0);const listener=()=>{const e=this.gos.get("ensureDomOrder"),t=_isDomLayout(this.gos,"print");this.comp.setDomOrder(e||t)};this.addManagedPropertyListener("domLayout",listener),listener()}onDisplayedColumnsChanged(){this.forContainers(["center"],(()=>this.onHorizontalViewportChanged()))}addPreventScrollWhileDragging(){const{dragSvc:e}=this.beans;if(!e)return;const preventScroll=t=>{e.dragging&&t.cancelable&&t.preventDefault()};this.eContainer.addEventListener("touchmove",preventScroll,{passive:!1}),this.addDestroyFunc((()=>this.eContainer.removeEventListener("touchmove",preventScroll)))}onHorizontalViewportChanged(e=!1){const t=this.getCenterWidth(),o=this.getCenterViewportScrollLeft();this.beans.colViewport.setScrollPosition(t,o,e)}hasHorizontalScrollGap(){return this.eContainer.clientWidth-this.eViewport.clientWidth<0}hasVerticalScrollGap(){return this.eContainer.clientHeight-this.eViewport.clientHeight<0}getCenterWidth(){return _getInnerWidth(this.eViewport)}getCenterViewportScrollLeft(){return _getScrollLeft(this.eViewport,this.enableRtl)}registerViewportResizeListener(e){const t=_observeResize(this.beans,this.eViewport,e);this.addDestroyFunc((()=>t()))}isViewportInTheDOMTree(){return _isInDOM(this.eViewport)}getViewportScrollLeft(){return _getScrollLeft(this.eViewport,this.enableRtl)}isHorizontalScrollShowing(){return this.gos.get("alwaysShowHorizontalScroll")||_isHorizontalScrollShowing(this.eViewport)}setHorizontalScroll(e){this.comp.setHorizontalScroll(e)}getHScrollPosition(){return{left:this.eViewport.scrollLeft,right:this.eViewport.scrollLeft+this.eViewport.offsetWidth}}setCenterViewportScrollLeft(e){_setScrollLeft(this.eViewport,e,this.enableRtl)}isContainerVisible(){return!(null!=this.options.pinnedType)||!!this.pinnedWidthFeature&&this.pinnedWidthFeature.getWidth()>0}onPinnedWidthChanged(){const e=this.isContainerVisible();this.visible!=e&&(this.visible=e,this.onDisplayedRowsChanged())}onDisplayedRowsChanged(e=!1){const t=this.options.getRowCtrls(this.beans.rowRenderer);if(!this.visible||0===t.length)return void this.comp.setRowCtrls({rowCtrls:this.EMPTY_CTRLS});const o=_isDomLayout(this.gos,"print"),i=this.gos.get("embedFullWidthRows")||o,s=t.filter((e=>{const t=e.isFullWidth();return this.options.fullWidth?!i&&t:i||!t}));this.comp.setRowCtrls({rowCtrls:s,useFlushSync:e})}},Jt="ag-force-vertical-scroll",Xt=class extends I{constructor(){super(...arguments),this.stickyTopHeight=0,this.stickyBottomHeight=0}wireBeans(e){this.ctrlsSvc=e.ctrlsSvc,this.colModel=e.colModel,this.scrollVisibleSvc=e.scrollVisibleSvc,this.pinnedRowModel=e.pinnedRowModel,this.filterManager=e.filterManager,this.rowGroupColsSvc=e.rowGroupColsSvc}setComp(e,t,o,i,s,n,r){this.comp=e,this.eGridBody=t,this.eBodyViewport=o,this.eTop=i,this.eBottom=s,this.eStickyTop=n,this.eStickyBottom=r,this.eCenterColsViewport=o.querySelector(`.${_getRowViewportClass("center")}`),this.eFullWidthContainer=o.querySelector(`.${_getRowContainerClass("fullWidth")}`),this.eStickyTopFullWidthContainer=n.querySelector(`.${_getRowContainerClass("stickyTopFullWidth")}`),this.eStickyBottomFullWidthContainer=r.querySelector(`.${_getRowContainerClass("stickyBottomFullWidth")}`),this.setCellTextSelection(this.gos.get("enableCellTextSelection")),this.addManagedPropertyListener("enableCellTextSelection",(e=>this.setCellTextSelection(e.currentValue))),this.createManagedBean(new Tt(this.comp)),this.scrollFeature=this.createManagedBean(new Lt(o)),this.beans.rowDragSvc?.setupRowDrag(o,this),this.setupRowAnimationCssClass(),this.addEventListeners(),this.addFocusListeners([i,o,s,n,r]),this.setGridRootRole(),this.onGridColumnsChanged(),this.addBodyViewportListener(),this.setFloatingHeights(),this.disableBrowserDragging(),this.addStopEditingWhenGridLosesFocus(),this.updateScrollingClasses(),this.filterManager?.setupAdvFilterHeaderComp(i),this.ctrlsSvc.register("gridBodyCtrl",this)}addEventListeners(){const e=this.setFloatingHeights.bind(this),t=this.setGridRootRole.bind(this),o=this.toggleRowResizeStyles.bind(this);this.addManagedEventListeners({gridColumnsChanged:this.onGridColumnsChanged.bind(this),scrollVisibilityChanged:this.onScrollVisibilityChanged.bind(this),scrollGapChanged:this.updateScrollingClasses.bind(this),pinnedRowDataChanged:e,pinnedHeightChanged:e,pinnedRowsChanged:e,headerHeightChanged:this.setStickyTopOffsetTop.bind(this),columnRowGroupChanged:t,columnPivotChanged:t,rowResizeStarted:o,rowResizeEnded:o}),this.addManagedPropertyListener("treeData",t)}toggleRowResizeStyles(e){const t="rowResizeStarted"===e.type;this.eBodyViewport.classList.toggle("ag-prevent-animation",t)}onGridColumnsChanged(){const e=this.beans.colModel.getCols();this.comp.setColumnCount(e.length)}onScrollVisibilityChanged(){const{scrollVisibleSvc:e}=this,t=e.verticalScrollShowing;this.setVerticalScrollPaddingVisible(t),this.setStickyWidth(t),this.setStickyBottomOffsetBottom();const o=`calc(100% + ${(t&&e.getScrollbarWidth()||0)+(_isInvisibleScrollbar()?16:0)}px)`;_requestAnimationFrame(this.beans,(()=>this.comp.setBodyViewportWidth(o))),this.updateScrollingClasses()}setGridRootRole(){const{rowGroupColsSvc:e,colModel:t}=this;let o=this.gos.get("treeData");if(!o){const i=t.isPivotMode();o=(e?e.columns.length:0)>=(i?2:1)}this.comp.setGridRootRole(o?"treegrid":"grid")}addFocusListeners(e){e.forEach((e=>{this.addManagedElementListeners(e,{focusin:t=>{const{target:o}=t,i=_isElementChildOfClass(o,"ag-root",e);e.classList.toggle("ag-has-focus",!i)},focusout:t=>{const{target:o,relatedTarget:i}=t,s=e.contains(i),n=_isElementChildOfClass(i,"ag-root",e);_isElementChildOfClass(o,"ag-root",e)||s&&!n||e.classList.remove("ag-has-focus")}})}))}setColumnMovingCss(e){this.comp.setColumnMovingCss("ag-column-moving",e)}setCellTextSelection(e=!1){this.comp.setCellSelectableCss("ag-selectable",e)}updateScrollingClasses(){const{eGridBody:{classList:e},scrollVisibleSvc:t}=this;e.toggle("ag-body-vertical-content-no-gap",!t.verticalScrollGap),e.toggle("ag-body-horizontal-content-no-gap",!t.horizontalScrollGap)}disableBrowserDragging(){this.addManagedElementListeners(this.eGridBody,{dragstart:e=>{if(e.target instanceof HTMLImageElement)return e.preventDefault(),!1}})}addStopEditingWhenGridLosesFocus(){this.beans.editSvc?.addStopEditingWhenGridLosesFocus([this.eBodyViewport,this.eBottom,this.eTop,this.eStickyTop,this.eStickyBottom])}updateRowCount(){const e=(this.ctrlsSvc.getHeaderRowContainerCtrl()?.getRowCount()??0)+(this.filterManager?.getHeaderRowCount()??0),{rowModel:t}=this.beans,o=t.isLastRowIndexKnown()?t.getRowCount():-1,i=-1===o?-1:e+o;this.comp.setRowCount(i)}registerBodyViewportResizeListener(e){this.comp.registerBodyViewportResizeListener(e)}setVerticalScrollPaddingVisible(e){const t=e?"scroll":"hidden";this.comp.setPinnedTopBottomOverflowY(t)}isVerticalScrollShowing(){const e=this.gos.get("alwaysShowVerticalScroll"),t=e?Jt:null,o=_isDomLayout(this.gos,"normal");return this.comp.setAlwaysVerticalScrollClass(t,e),e||o&&function _isVerticalScrollShowing(e){return e.clientHeight<e.scrollHeight}(this.eBodyViewport)}setupRowAnimationCssClass(){const{rowContainerHeight:e,environment:t}=this.beans;let o=t.sizesMeasured;const updateAnimationClass=()=>{const t=o&&_isAnimateRows(this.gos)&&!e.stretching,i=t?"ag-row-animation":"ag-row-no-animation";this.comp.setRowAnimationCssOnBodyViewport(i,t)};updateAnimationClass(),this.addManagedEventListeners({heightScaleChanged:updateAnimationClass}),this.addManagedPropertyListener("animateRows",updateAnimationClass),this.addManagedEventListeners({gridStylesChanged:()=>{!o&&t.sizesMeasured&&(o=!0,updateAnimationClass())}})}addBodyViewportListener(){const{eBodyViewport:e,eStickyTop:t,eStickyBottom:o,eTop:i,eBottom:s,beans:{popupSvc:n,touchSvc:r}}=this,a=this.onBodyViewportContextMenu.bind(this);this.addManagedElementListeners(e,{contextmenu:a}),r?.mockBodyContextMenu(this,a),this.addManagedElementListeners(e,{wheel:this.onBodyViewportWheel.bind(this,n)});const l=this.onStickyWheel.bind(this);for(const e of[t,o,i,s])this.addManagedElementListeners(e,{wheel:l});const d=this.onHorizontalWheel.bind(this);for(const e of["left","right","topLeft","topRight","bottomLeft","bottomRight"])this.addManagedElementListeners(this.ctrlsSvc.get(e).eContainer,{wheel:d});this.addFullWidthContainerWheelListener()}addFullWidthContainerWheelListener(){this.addManagedElementListeners(this.eFullWidthContainer,{wheel:e=>this.onFullWidthContainerWheel(e)})}onFullWidthContainerWheel(e){const{deltaX:t,deltaY:o,shiftKey:i}=e;(i||Math.abs(t)>Math.abs(o))&&_isEventFromThisGrid(this.gos,e)&&this.scrollGridBodyToMatchEvent(e)}onStickyWheel(e){const{deltaY:t}=e;this.scrollVertically(t)>0&&e.preventDefault()}onHorizontalWheel(e){const{deltaX:t,deltaY:o,shiftKey:i}=e;(i||Math.abs(t)>Math.abs(o))&&this.scrollGridBodyToMatchEvent(e)}scrollGridBodyToMatchEvent(e){const{deltaX:t,deltaY:o}=e;e.preventDefault(),this.eCenterColsViewport.scrollBy({left:t||o})}onBodyViewportContextMenu(e,t,o){if(!e&&!o)return;if(this.gos.get("preventDefaultOnContextMenu")){(e||o).preventDefault()}const{target:i}=e||t;i!==this.eBodyViewport&&i!==this.ctrlsSvc.get("center").eViewport||this.beans.contextMenuSvc?.showContextMenu({mouseEvent:e,touchEvent:o,value:null,anchorToElement:this.eGridBody,source:"ui"})}onBodyViewportWheel(e,t){this.gos.get("suppressScrollWhenPopupsAreOpen")&&e?.hasAnchoredPopup()&&t.preventDefault()}scrollVertically(e){const t=this.eBodyViewport.scrollTop;return this.scrollFeature.setVerticalScrollPosition(t+e),this.eBodyViewport.scrollTop-t}setFloatingHeights(){const{pinnedRowModel:e,beans:{environment:t}}=this,o=e?.getPinnedTopTotalHeight(),i=e?.getPinnedBottomTotalHeight(),s=t.getPinnedRowBorderWidth()-t.getRowBorderWidth(),n=o?s+o:0,r=i?s+i:0;this.comp.setTopHeight(n),this.comp.setBottomHeight(r),this.comp.setTopInvisible(n<=0),this.comp.setBottomInvisible(r<=0),this.setStickyTopOffsetTop(),this.setStickyBottomOffsetBottom()}setStickyTopHeight(e=0){this.comp.setStickyTopHeight(`${e}px`),this.stickyTopHeight=e}setStickyBottomHeight(e=0){this.comp.setStickyBottomHeight(`${e}px`),this.stickyBottomHeight=e}setStickyWidth(e){if(e){const e=this.scrollVisibleSvc.getScrollbarWidth();this.comp.setStickyTopWidth(`calc(100% - ${e}px)`),this.comp.setStickyBottomWidth(`calc(100% - ${e}px)`)}else this.comp.setStickyTopWidth("100%"),this.comp.setStickyBottomWidth("100%")}setStickyTopOffsetTop(){const e=this.ctrlsSvc.get("gridHeaderCtrl").headerHeight+(this.filterManager?.getHeaderHeight()??0),t=this.pinnedRowModel?.getPinnedTopTotalHeight()??0;let o=0;e>0&&(o+=e),t>0&&(o+=t),o>0&&(o+=1),this.comp.setStickyTopTop(`${o}px`)}setStickyBottomOffsetBottom(){const{pinnedRowModel:e,scrollVisibleSvc:t,comp:o}=this,i=(e?.getPinnedBottomTotalHeight()??0)+(t.horizontalScrollShowing&&t.getScrollbarWidth()||0);o.setStickyBottomBottom(`${i}px`)}},eo=class extends Q{constructor(e,t){super(),this.direction=t,this.eViewport=q,this.eContainer=q,this.hideTimeout=0,this.setTemplate(e)}postConstruct(){this.addManagedEventListeners({scrollVisibilityChanged:this.onScrollVisibilityChanged.bind(this)}),this.onScrollVisibilityChanged(),this.toggleCss("ag-apple-scrollbar",_isMacOsUserAgent()||_isIOSUserAgent())}destroy(){super.destroy(),window.clearTimeout(this.hideTimeout)}initialiseInvisibleScrollbar(){void 0===this.invisibleScrollbar&&(this.invisibleScrollbar=_isInvisibleScrollbar(),this.invisibleScrollbar&&(this.hideAndShowInvisibleScrollAsNeeded(),this.addActiveListenerToggles()))}addActiveListenerToggles(){const e=this.getGui(),onActivate=()=>this.toggleCss("ag-scrollbar-active",!0),onDeactivate=()=>this.toggleCss("ag-scrollbar-active",!1);this.addManagedListeners(e,{mouseenter:onActivate,mousedown:onActivate,touchstart:onActivate,mouseleave:onDeactivate,touchend:onDeactivate})}onScrollVisibilityChanged(){void 0===this.invisibleScrollbar&&this.initialiseInvisibleScrollbar(),_requestAnimationFrame(this.beans,(()=>this.setScrollVisible()))}hideAndShowInvisibleScrollAsNeeded(){this.addManagedEventListeners({bodyScroll:e=>{e.direction===this.direction&&(this.hideTimeout&&(window.clearTimeout(this.hideTimeout),this.hideTimeout=0),this.toggleCss("ag-scrollbar-scrolling",!0))},bodyScrollEnd:()=>{this.hideTimeout=window.setTimeout((()=>{this.toggleCss("ag-scrollbar-scrolling",!1),this.hideTimeout=0}),400)}})}attemptSettingScrollPosition(e){const t=this.eViewport;!function _waitUntil(e,t,o=100,i){const s=Date.now();let n=null,r=!1;const internalCallback=()=>{const a=Date.now()-s>o;(e()||a)&&(t(),r=!0,null!=n&&(window.clearInterval(n),n=null),a&&i&&_warnOnce(i))};internalCallback(),r||(n=window.setInterval(internalCallback,10))}((()=>_isVisible(t)),(()=>this.setScrollPosition(e)),100)}onScrollCallback(e){this.addManagedElementListeners(this.eViewport,{scroll:e})}},to={tag:"div",cls:"ag-body-horizontal-scroll",attrs:{"aria-hidden":"true"},children:[{tag:"div",ref:"eLeftSpacer",cls:"ag-horizontal-left-spacer"},{tag:"div",ref:"eViewport",cls:"ag-body-horizontal-scroll-viewport",children:[{tag:"div",ref:"eContainer",cls:"ag-body-horizontal-scroll-container"}]},{tag:"div",ref:"eRightSpacer",cls:"ag-horizontal-right-spacer"}]},oo=class extends eo{constructor(){super(to,"horizontal"),this.eLeftSpacer=q,this.eRightSpacer=q,this.setScrollVisibleDebounce=0}wireBeans(e){this.visibleCols=e.visibleCols,this.scrollVisibleSvc=e.scrollVisibleSvc}postConstruct(){super.postConstruct();const e=this.setFakeHScrollSpacerWidths.bind(this);this.addManagedEventListeners({displayedColumnsChanged:e,displayedColumnsWidthChanged:e,pinnedRowDataChanged:this.refreshCompBottom.bind(this)}),this.addManagedPropertyListener("domLayout",e),this.beans.ctrlsSvc.register("fakeHScrollComp",this),this.createManagedBean(new Gt((e=>this.eContainer.style.width=`${e}px`))),this.addManagedPropertyListeners(["suppressHorizontalScroll"],this.onScrollVisibilityChanged.bind(this))}destroy(){window.clearTimeout(this.setScrollVisibleDebounce),super.destroy()}initialiseInvisibleScrollbar(){void 0===this.invisibleScrollbar&&(this.enableRtl=this.gos.get("enableRtl"),super.initialiseInvisibleScrollbar(),this.invisibleScrollbar&&this.refreshCompBottom())}refreshCompBottom(){if(!this.invisibleScrollbar)return;const e=this.beans.pinnedRowModel?.getPinnedBottomTotalHeight()??0;this.getGui().style.bottom=`${e}px`}onScrollVisibilityChanged(){super.onScrollVisibilityChanged(),this.setFakeHScrollSpacerWidths()}setFakeHScrollSpacerWidths(){const e=this.scrollVisibleSvc.verticalScrollShowing;let t=this.visibleCols.getDisplayedColumnsRightWidth();const o=!this.enableRtl&&e,i=this.scrollVisibleSvc.getScrollbarWidth();o&&(t+=i),_setFixedWidth(this.eRightSpacer,t),this.eRightSpacer.classList.toggle("ag-scroller-corner",t<=i);let s=this.visibleCols.getColsLeftWidth();this.enableRtl&&e&&(s+=i),_setFixedWidth(this.eLeftSpacer,s),this.eLeftSpacer.classList.toggle("ag-scroller-corner",s<=i)}setScrollVisible(){const e=this.scrollVisibleSvc.horizontalScrollShowing,t=this.invisibleScrollbar,o=this.gos.get("suppressHorizontalScroll"),i=e&&this.scrollVisibleSvc.getScrollbarWidth()||0,s=o?0:0===i&&t?16:i,apply=()=>{this.setScrollVisibleDebounce=0,this.toggleCss("ag-scrollbar-invisible",t),_setFixedHeight(this.getGui(),s),_setFixedHeight(this.eViewport,s),_setFixedHeight(this.eContainer,s),s||this.eContainer.style.setProperty("min-height","1px"),this.setVisible(e,{skipAriaHidden:!0})};window.clearTimeout(this.setScrollVisibleDebounce),e?this.setScrollVisibleDebounce=window.setTimeout(apply,100):apply()}getScrollPosition(){return _getScrollLeft(this.eViewport,this.enableRtl)}setScrollPosition(e){_isVisible(this.eViewport)||this.attemptSettingScrollPosition(e),_setScrollLeft(this.eViewport,e,this.enableRtl)}},io={tag:"div",cls:"ag-body-vertical-scroll",attrs:{"aria-hidden":"true"},children:[{tag:"div",ref:"eViewport",cls:"ag-body-vertical-scroll-viewport",children:[{tag:"div",ref:"eContainer",cls:"ag-body-vertical-scroll-container"}]}]},so=class extends eo{constructor(){super(io,"vertical")}postConstruct(){super.postConstruct(),this.createManagedBean(new Bt(this.eContainer));const{ctrlsSvc:e}=this.beans;e.register("fakeVScrollComp",this),this.addManagedEventListeners({rowContainerHeightChanged:this.onRowContainerHeightChanged.bind(this,e)})}setScrollVisible(){const{scrollVisibleSvc:e}=this.beans,t=e.verticalScrollShowing,o=this.invisibleScrollbar,i=t&&e.getScrollbarWidth()||0,s=0===i&&o?16:i;this.toggleCss("ag-scrollbar-invisible",o),_setFixedWidth(this.getGui(),s),_setFixedWidth(this.eViewport,s),_setFixedWidth(this.eContainer,s),this.setDisplayed(t,{skipAriaHidden:!0})}onRowContainerHeightChanged(e){const t=e.getGridBodyCtrl().eBodyViewport,o=this.getScrollPosition(),i=t.scrollTop;o!=i&&this.setScrollPosition(i,!0)}getScrollPosition(){return this.eViewport.scrollTop}setScrollPosition(e,t){t||_isVisible(this.eViewport)||this.attemptSettingScrollPosition(e),this.eViewport.scrollTop=e}};function getFocusHeaderRowCount(e){return e.ctrlsSvc.getHeaderRowContainerCtrl()?.getRowCount()??0}function getGroupRowsHeight(e){const t=[],o=e.ctrlsSvc.getHeaderRowContainerCtrls();for(const i of o){if(!i)continue;const o=i.getGroupRowCount()||0;for(let s=0;s<o;s++){const o=i.getGroupRowCtrlAtIndex(s),n=t[s];if(o){const i=getColumnGroupHeaderRowHeight(e,o);(null==n||i>n)&&(t[s]=i)}}}return t}function getColumnGroupHeaderRowHeight(e,t){let o=e.colModel.isPivotMode()?function getPivotGroupHeaderHeight(e){return e.gos.get("pivotGroupHeaderHeight")??getGroupHeaderHeight(e)}(e):getGroupHeaderHeight(e);const i=t.getHeaderCellCtrls();for(const e of i){const{column:t}=e,i=t.getAutoHeaderHeight();null!=i&&i>o&&t.isAutoHeaderHeight()&&(o=i)}return o}function getColumnHeaderRowHeight(e){let t=e.colModel.isPivotMode()?function getPivotHeaderHeight(e){return e.gos.get("pivotHeaderHeight")??getHeaderHeight(e)}(e):getHeaderHeight(e);return e.colModel.forAllCols((e=>{const o=e.getAutoHeaderHeight();null!=o&&o>t&&e.isAutoHeaderHeight()&&(t=o)})),t}function getHeaderHeight(e){return e.gos.get("headerHeight")??e.environment.getDefaultHeaderHeight()}function getFloatingFiltersHeight(e){return e.gos.get("floatingFiltersHeight")??getHeaderHeight(e)}function getGroupHeaderHeight(e){return e.gos.get("groupHeaderHeight")??getHeaderHeight(e)}var no=class extends I{setComp(e,t,o){this.comp=e,this.eGui=t;const{beans:i}=this,{headerNavigation:s,touchSvc:n,ctrlsSvc:r}=i;s&&this.createManagedBean(new Dt(o,{onTabKeyDown:this.onTabKeyDown.bind(this),handleKeyDown:this.handleKeyDown.bind(this),onFocusOut:this.onFocusOut.bind(this)})),this.addManagedEventListeners({columnPivotModeChanged:this.onPivotModeChanged.bind(this,i),displayedColumnsChanged:this.onDisplayedColumnsChanged.bind(this,i)}),this.onPivotModeChanged(i),this.setupHeaderHeight();const a=this.onHeaderContextMenu.bind(this);this.addManagedElementListeners(this.eGui,{contextmenu:a}),n?.mockHeaderContextMenu(this,a),r.register("gridHeaderCtrl",this)}setupHeaderHeight(){const e=this.setHeaderHeight.bind(this);e(),this.addManagedPropertyListeners(["headerHeight","pivotHeaderHeight","groupHeaderHeight","pivotGroupHeaderHeight","floatingFiltersHeight"],e),this.addManagedEventListeners({displayedColumnsChanged:e,columnHeaderHeightChanged:e,columnGroupHeaderHeightChanged:()=>_requestAnimationFrame(this.beans,(()=>e())),gridStylesChanged:e,advancedFilterEnabledChanged:e})}setHeaderHeight(){const{beans:e}=this;let t=0;const o=getGroupRowsHeight(e).reduce(((e,t)=>e+t),0),i=getColumnHeaderRowHeight(e);if(e.filterManager?.hasFloatingFilters()&&(t+=getFloatingFiltersHeight(e)),t+=o,t+=i,this.headerHeight===t)return;this.headerHeight=t;const s=`${t+1}px`;this.comp.setHeightAndMinHeight(s),this.eventSvc.dispatchEvent({type:"headerHeightChanged"})}onPivotModeChanged(e){const t=e.colModel.isPivotMode();this.comp.toggleCss("ag-pivot-on",t),this.comp.toggleCss("ag-pivot-off",!t)}onDisplayedColumnsChanged(e){const t=e.visibleCols.allCols.some((e=>e.isSpanHeaderHeight()));this.comp.toggleCss("ag-header-allow-overflow",t)}onTabKeyDown(e){const t=this.gos.get("enableRtl"),o=e.shiftKey,i=o!==t?"LEFT":"RIGHT",{beans:s}=this,{headerNavigation:n,focusSvc:r}=s;(n.navigateHorizontally(i,!0,e)||!o&&r.focusOverlay(!1)||_focusNextGridCoreContainer(s,o,!0))&&e.preventDefault()}handleKeyDown(e){let t=null;const{headerNavigation:o}=this.beans;switch(e.key){case Ae:t="LEFT";case ke:_exists(t)||(t="RIGHT"),o.navigateHorizontally(t,!1,e)&&e.preventDefault();break;case Ie:t="UP";case Le:_exists(t)||(t="DOWN"),o.navigateVertically(t,e)&&e.preventDefault();break;default:return}}onFocusOut(e){const{relatedTarget:t}=e,{eGui:o,beans:i}=this;!t&&o.contains(_getActiveDomElement(i))||o.contains(t)||(i.focusSvc.focusedHeader=null)}onHeaderContextMenu(e,t,o){const{menuSvc:i,ctrlsSvc:s}=this.beans;if(!e&&!o||!i?.isHeaderContextMenuEnabled())return;const{target:n}=e??t;n!==this.eGui&&n!==s.getHeaderRowContainerCtrl()?.eViewport||i.showHeaderContextMenu(void 0,e,o)}},ro=class extends I{constructor(e,t,o,i){super(),this.columnOrGroup=e,this.eCell=t,this.colsSpanning=i,this.columnOrGroup=e,this.ariaEl=t.querySelector("[role=columnheader]")||t,this.beans=o}setColsSpanning(e){this.colsSpanning=e,this.onLeftChanged()}getColumnOrGroup(){const{beans:e,colsSpanning:t}=this;return e.gos.get("enableRtl")&&t?_last(t):this.columnOrGroup}postConstruct(){const e=this.onLeftChanged.bind(this);this.addManagedListeners(this.columnOrGroup,{leftChanged:e}),this.setLeftFirstTime(),this.addManagedEventListeners({displayedColumnsWidthChanged:e}),this.addManagedPropertyListener("domLayout",e)}setLeftFirstTime(){const{gos:e,colAnimation:t}=this.beans,o=e.get("suppressColumnMoveAnimation"),i=_exists(this.columnOrGroup.getOldLeft());t?.isActive()&&i&&!o?this.animateInLeft():this.onLeftChanged()}animateInLeft(){const e=this.getColumnOrGroup(),t=this.modifyLeftForPrintLayout(e,e.getOldLeft()),o=this.modifyLeftForPrintLayout(e,e.getLeft());this.setLeft(t),this.actualLeft=o,this.beans.colAnimation.executeNextVMTurn((()=>{this.actualLeft===o&&this.setLeft(o)}))}onLeftChanged(){const e=this.getColumnOrGroup(),t=e.getLeft();this.actualLeft=this.modifyLeftForPrintLayout(e,t),this.setLeft(this.actualLeft)}modifyLeftForPrintLayout(e,t){const{gos:o,visibleCols:i}=this.beans;if(!_isDomLayout(o,"print"))return t;if("left"===e.getPinned())return t;const s=i.getColsLeftWidth();if("right"===e.getPinned()){return s+i.bodyWidth+t}return s+t}setLeft(e){if(_exists(e)&&(this.eCell.style.left=`${e}px`),isColumnGroup(this.columnOrGroup)){const e=this.columnOrGroup.getLeafColumns();if(!e.length)return;e.length>1&&function _setAriaColSpan(e,t){_setAriaAttribute(e,"colspan",t)}(this.ariaEl,e.length)}}},ao=0,lo="headerCtrl",co=class extends I{constructor(e,t){super(),this.column=e,this.rowCtrl=t,this.resizeToggleTimeout=0,this.resizeMultiplier=1,this.resizeFeature=null,this.lastFocusEvent=null,this.dragSource=null,this.instanceId=e.getUniqueId()+"-"+ao++}postConstruct(){const e=this.refreshTabIndex.bind(this);this.addManagedPropertyListeners(["suppressHeaderFocus"],e),this.addManagedEventListeners({overlayExclusiveChanged:e})}shouldStopEventPropagation(e){const{headerRowIndex:t,column:o}=this.beans.focusSvc.focusedHeader,i=o.getDefinition(),s=i&&i.suppressHeaderKeyboardEvent;if(!_exists(s))return!1;return!!s(_addGridCommonParams(this.gos,{colDef:i,column:o,headerRowIndex:t,event:e}))}getWrapperHasFocus(){return _getActiveDomElement(this.beans)===this.eGui}setGui(e,t){this.eGui=e,this.addDomData(t),t.addManagedListeners(this.beans.eventSvc,{displayedColumnsChanged:this.onDisplayedColumnsChanged.bind(this)}),t.addManagedElementListeners(this.eGui,{focus:this.onGuiFocus.bind(this)}),this.onDisplayedColumnsChanged(),this.refreshTabIndex()}refreshHeaderStyles(){const e=this.column.getDefinition();if(!e)return;const{headerStyle:t}=e;let o;if("function"==typeof t){o=t(this.getHeaderClassParams())}else o=t;o&&this.comp.setUserStyles(o)}onGuiFocus(){this.eventSvc.dispatchEvent({type:"headerFocused",column:this.column})}setupAutoHeight(e){const{wrapperElement:t,checkMeasuringCallback:o,compBean:i}=e,{beans:s}=this,measureHeight=e=>{if(!this.isAlive()||!i.isAlive())return;const{paddingTop:o,paddingBottom:n,borderBottomWidth:r,borderTopWidth:a}=_getElementSize(this.eGui),l=o+n+r+a,d=t.offsetHeight+l;if(e<5){const o=_getDocument(s),i=0==d;if(!o||!o.contains(t)||i)return void _batchCall((()=>measureHeight(e+1)),"raf",s)}this.setColHeaderHeight(this.column,d)};let n,r=!1;const checkMeasuring=()=>{const e=this.column.isAutoHeaderHeight();e&&!r&&startMeasuring(),!e&&r&&stopMeasuring()},startMeasuring=()=>{r=!0,measureHeight(0),this.comp.toggleCss("ag-header-cell-auto-height",!0),n=_observeResize(this.beans,t,(()=>measureHeight(0)))},stopMeasuring=()=>{r=!1,n&&n(),this.comp.toggleCss("ag-header-cell-auto-height",!1),n=void 0};checkMeasuring(),i.addDestroyFunc((()=>stopMeasuring())),i.addManagedListeners(this.column,{widthChanged:()=>r&&measureHeight(0)}),i.addManagedEventListeners({sortChanged:()=>{r&&window.setTimeout((()=>measureHeight(0)))}}),o&&o(checkMeasuring)}onDisplayedColumnsChanged(){const{comp:e,column:t,beans:o,eGui:i}=this;e&&t&&i&&(refreshFirstAndLastStyles(e,t,o.visibleCols),_setAriaColIndex(i,o.visibleCols.getAriaColIndex(t)))}addResizeAndMoveKeyboardListeners(e){e.addManagedListeners(this.eGui,{keydown:this.onGuiKeyDown.bind(this),keyup:this.onGuiKeyUp.bind(this)})}refreshTabIndex(){const e=_isHeaderFocusSuppressed(this.beans);this.eGui&&_addOrRemoveAttribute(this.eGui,"tabindex",e?null:"-1")}onGuiKeyDown(e){const t=_getActiveDomElement(this.beans),o=e.key===Ae||e.key===ke;if(this.isResizing&&(e.preventDefault(),e.stopImmediatePropagation()),t!==this.eGui||!e.shiftKey&&!e.altKey)return;if((this.isResizing||o)&&(e.preventDefault(),e.stopImmediatePropagation()),!o)return;const i=e.key===Ae!==this.gos.get("enableRtl")?"left":"right";if(e.altKey){this.isResizing=!0,this.resizeMultiplier+=1;const t=this.getViewportAdjustedResizeDiff(e);this.resizeHeader(t,e.shiftKey),this.resizeFeature?.toggleColumnResizing(!0)}else this.moveHeader(i)}moveHeader(e){this.beans.colMoves?.moveHeader(e,this.eGui,this.column,this.rowCtrl.pinned,this)}getViewportAdjustedResizeDiff(e){const t=this.getResizeDiff(e),{pinnedCols:o}=this.beans;return o?o.getHeaderResizeDiff(t,this.column):t}getResizeDiff(e){const{gos:t,column:o}=this;let i=e.key===Ae!==t.get("enableRtl");const s=o.getPinned(),n=t.get("enableRtl");return s&&n!==("right"===s)&&(i=!i),(i?-1:1)*this.resizeMultiplier}onGuiKeyUp(){this.isResizing&&(this.resizeToggleTimeout&&(window.clearTimeout(this.resizeToggleTimeout),this.resizeToggleTimeout=0),this.isResizing=!1,this.resizeMultiplier=1,this.resizeToggleTimeout=window.setTimeout((()=>{this.resizeFeature?.toggleColumnResizing(!1)}),150))}handleKeyDown(e){const t=this.getWrapperHasFocus();switch(e.key){case Oe:case _e:case He:case Ve:t&&e.preventDefault()}}addDomData(e){const t=lo,{eGui:o,gos:i}=this;_setDomData(i,o,t,this),e.addDestroyFunc((()=>_setDomData(i,o,t,null)))}focus(e){const{eGui:t}=this;return!!t&&(this.lastFocusEvent=e||null,t.focus(),!0)}focusThis(){this.beans.focusSvc.focusedHeader={headerRowIndex:this.rowCtrl.rowIndex,column:this.column}}removeDragSource(){this.dragSource&&(this.beans.dragAndDrop?.removeDragSource(this.dragSource),this.dragSource=null)}handleContextMenuMouseEvent(e,t,o){const i=e??t,{menuSvc:s,gos:n}=this.beans;n.get("preventDefaultOnContextMenu")&&i.preventDefault(),s?.isHeaderContextMenuEnabled(o)&&s.showHeaderContextMenu(o,e,t),this.dispatchColumnMouseEvent("columnHeaderContextMenu",o)}dispatchColumnMouseEvent(e,t){this.eventSvc.dispatchEvent({type:e,column:t})}setColHeaderHeight(e,t){if(!e.setAutoHeaderHeight(t))return;const{eventSvc:o}=this;e.isColumn?o.dispatchEvent({type:"columnHeaderHeightChanged",column:e,columns:[e],source:"autosizeColumnHeaderHeight"}):o.dispatchEvent({type:"columnGroupHeaderHeightChanged",columnGroup:e,source:"autosizeColumnGroupHeaderHeight"})}clearComponent(){this.removeDragSource(),this.resizeFeature=null,this.comp=null,this.eGui=null}destroy(){super.destroy(),this.column=null,this.lastFocusEvent=null,this.rowCtrl=null}},ho=class extends co{constructor(){super(...arguments),this.refreshFunctions={},this.userHeaderClasses=new Set,this.ariaDescriptionProperties=new Map}setComp(e,t,o,i,s){this.comp=e;const{rowCtrl:n,column:r,beans:a}=this,{colResize:l,context:d,colHover:c,rangeSvc:h}=a,u=setupCompBean(this,d,s);this.setGui(t,u),this.updateState(),this.setupWidth(u),this.setupMovingCss(u),this.setupMenuClass(u),this.setupSortableClass(u),this.setupWrapTextClass(),this.refreshSpanHeaderHeight(),this.setupAutoHeight({wrapperElement:i,checkMeasuringCallback:e=>this.setRefreshFunction("measuring",e),compBean:u}),this.addColumnHoverListener(u),this.setupFilterClass(u),this.setupStylesFromColDef(),this.setupClassesFromColDef(),this.setupTooltip(),this.addActiveHeaderMouseListeners(u),this.setupSelectAll(u),this.setupUserComp(),this.refreshAria(),l?this.resizeFeature=u.createManagedBean(l.createResizeFeature(n.pinned,r,o,e,this)):_setDisplayed(o,!1),c?.createHoverFeature(u,[r],t),h?.createRangeHighlightFeature(u,r,e),u.createManagedBean(new ro(r,t,a)),u.createManagedBean(new Dt(t,{shouldStopEventPropagation:e=>this.shouldStopEventPropagation(e),onTabKeyDown:()=>null,handleKeyDown:this.handleKeyDown.bind(this),onFocusIn:this.onFocusIn.bind(this),onFocusOut:this.onFocusOut.bind(this)})),this.addResizeAndMoveKeyboardListeners(u),u.addManagedPropertyListeners(["suppressMovableColumns","suppressMenuHide","suppressAggFuncInHeader","enableAdvancedFilter"],(()=>this.refresh())),u.addManagedListeners(r,{colDefChanged:()=>this.refresh()}),u.addManagedListeners(r,{headerHighlightChanged:this.onHeaderHighlightChanged.bind(this)});const listener=()=>this.checkDisplayName();u.addManagedEventListeners({columnValueChanged:listener,columnRowGroupChanged:listener,columnPivotChanged:listener,headerHeightChanged:this.onHeaderHeightChanged.bind(this)}),u.addDestroyFunc((()=>{this.refreshFunctions={},this.selectAllFeature=null,this.dragSourceElement=void 0,this.userCompDetails=null,this.userHeaderClasses.clear(),this.ariaDescriptionProperties.clear(),this.clearComponent()}))}resizeHeader(e,t){this.beans.colResize?.resizeHeader(this.column,e,t)}getHeaderClassParams(){const{column:e,beans:t}=this,o=e.colDef;return _addGridCommonParams(t.gos,{colDef:o,column:e,floatingFilter:!1})}setupUserComp(){const e=this.lookupUserCompDetails();e&&this.setCompDetails(e)}setCompDetails(e){this.userCompDetails=e,this.comp.setUserCompDetails(e)}lookupUserCompDetails(){const e=this.createParams(),t=this.column.getColDef();return function _getHeaderCompDetails(e,t,o){return e.getCompDetails(t,X,"agColumnHeader",o)}(this.beans.userCompFactory,t,e)}createParams(){const{menuSvc:e,sortSvc:t,colFilter:o,gos:i}=this.beans;return _addGridCommonParams(i,{column:this.column,displayName:this.displayName,enableSorting:this.column.isSortable(),enableMenu:this.menuEnabled,enableFilterButton:this.openFilterEnabled&&!!e?.isHeaderFilterButtonEnabled(this.column),enableFilterIcon:!!o&&(!this.openFilterEnabled||_isLegacyMenuEnabled(this.gos)),showColumnMenu:(t,o)=>{e?.showColumnMenu({column:this.column,buttonElement:t,positionBy:"button",onClosedCallback:o})},showColumnMenuAfterMouseClick:(t,o)=>{e?.showColumnMenu({column:this.column,mouseEvent:t,positionBy:"mouse",onClosedCallback:o})},showFilter:t=>{e?.showFilterMenu({column:this.column,buttonElement:t,containerType:"columnFilter",positionBy:"button"})},progressSort:e=>{t?.progressSort(this.column,!!e,"uiColumnSorted")},setSort:(e,o)=>{t?.setSortForColumn(this.column,e,!!o,"uiColumnSorted")},eGridHeader:this.eGui,setTooltip:(e,t)=>{i.assertModuleRegistered("Tooltip",3),this.setupTooltip(e,t)}})}setupSelectAll(e){const{selectionSvc:t}=this.beans;t&&(this.selectAllFeature=e.createOptionalManagedBean(t.createSelectAllFeature(this.column)),this.selectAllFeature?.setComp(this),e.addManagedPropertyListener("rowSelection",(()=>{const o=t.createSelectAllFeature(this.column);o&&!this.selectAllFeature?(this.selectAllFeature=e.createManagedBean(o),this.selectAllFeature?.setComp(this),this.comp.refreshSelectAllGui()):this.selectAllFeature&&!o&&(this.comp.removeSelectAllGui(),this.selectAllFeature=this.destroyBean(this.selectAllFeature))})))}getSelectAllGui(){return this.selectAllFeature?.getCheckboxGui()}handleKeyDown(e){super.handleKeyDown(e),e.key===Te&&this.selectAllFeature?.onSpaceKeyDown(e),e.key===xe&&this.onEnterKeyDown(e),e.key===Le&&e.altKey&&this.showMenuOnKeyPress(e,!1)}onEnterKeyDown(e){e.ctrlKey||e.metaKey?this.showMenuOnKeyPress(e,!0):this.sortable&&this.beans.sortSvc?.progressSort(this.column,e.shiftKey,"uiColumnSorted")}showMenuOnKeyPress(e,t){const o=this.comp.getUserCompInstance();isHeaderComp(o)&&o.onMenuKeyboardShortcut(t)&&e.preventDefault()}onFocusIn(e){this.eGui.contains(e.relatedTarget)||(this.focusThis(),this.announceAriaDescription()),function _isKeyboardMode(){return qe}()&&this.setActiveHeader(!0)}onFocusOut(e){this.eGui.contains(e.relatedTarget)||this.setActiveHeader(!1)}setupTooltip(e,t){this.tooltipFeature=this.beans.tooltipSvc?.setupHeaderTooltip(this.tooltipFeature,this,e,t)}setupStylesFromColDef(){this.setRefreshFunction("headerStyles",this.refreshHeaderStyles.bind(this)),this.refreshHeaderStyles()}setupClassesFromColDef(){const refreshHeaderClasses=()=>{const e=_getHeaderClassesFromColDef(this.column.getColDef(),this.gos,this.column,null),t=this.userHeaderClasses;this.userHeaderClasses=new Set(e),e.forEach((e=>{t.has(e)?t.delete(e):this.comp.toggleCss(e,!0)})),t.forEach((e=>this.comp.toggleCss(e,!1)))};this.setRefreshFunction("headerClasses",refreshHeaderClasses),refreshHeaderClasses()}setDragSource(e){this.dragSourceElement=e,this.removeDragSource(),e&&this.draggable&&(this.dragSource=this.beans.colMoves?.setDragSourceForHeader(e,this.column,this.displayName)??null)}updateState(){const{menuSvc:e}=this.beans;this.menuEnabled=!!e?.isColumnMenuInHeaderEnabled(this.column),this.openFilterEnabled=!!e?.isFilterMenuInHeaderEnabled(this.column),this.sortable=this.column.isSortable(),this.displayName=this.calculateDisplayName(),this.draggable=this.workOutDraggable()}setRefreshFunction(e,t){this.refreshFunctions[e]=t}refresh(){this.updateState(),this.refreshHeaderComp(),this.refreshAria(),Object.values(this.refreshFunctions).forEach((e=>e()))}refreshHeaderComp(){const e=this.lookupUserCompDetails();if(!e)return;!!(null!=this.comp.getUserCompInstance()&&this.userCompDetails.componentClass==e.componentClass)&&this.attemptHeaderCompRefresh(e.params)?this.setDragSource(this.dragSourceElement):this.setCompDetails(e)}attemptHeaderCompRefresh(e){const t=this.comp.getUserCompInstance();if(!t)return!1;if(!t.refresh)return!1;return t.refresh(e)}calculateDisplayName(){return this.beans.colNames.getDisplayNameForColumn(this.column,"header",!0)}checkDisplayName(){this.displayName!==this.calculateDisplayName()&&this.refresh()}workOutDraggable(){const e=this.column.getColDef();return!!(!this.gos.get("suppressMovableColumns")&&!e.suppressMovable&&!e.lockPosition)||!!e.enableRowGroup||!!e.enablePivot}setupWidth(e){const listener=()=>{const e=this.column.getActualWidth();this.comp.setWidth(`${e}px`)};e.addManagedListeners(this.column,{widthChanged:listener}),listener()}setupMovingCss(e){const listener=()=>{this.comp.toggleCss("ag-header-cell-moving",this.column.isMoving())};e.addManagedListeners(this.column,{movingChanged:listener}),listener()}setupMenuClass(e){const listener=()=>{this.comp?.toggleCss("ag-column-menu-visible",this.column.isMenuVisible())};e.addManagedListeners(this.column,{menuVisibleChanged:listener}),listener()}setupSortableClass(e){const updateSortableCssClass=()=>{this.comp.toggleCss("ag-header-cell-sortable",!!this.sortable)};updateSortableCssClass(),this.setRefreshFunction("updateSortable",updateSortableCssClass),e.addManagedEventListeners({sortChanged:this.refreshAriaSort.bind(this)})}setupFilterClass(e){const listener=()=>{const e=this.column.isFilterActive();this.comp.toggleCss("ag-header-cell-filtered",e),this.refreshAria()};e.addManagedListeners(this.column,{filterActiveChanged:listener}),listener()}setupWrapTextClass(){const listener=()=>{const e=!!this.column.getColDef().wrapHeaderText;this.comp.toggleCss("ag-header-cell-wrap-text",e)};listener(),this.setRefreshFunction("wrapText",listener)}onHeaderHighlightChanged(){const e=this.column.getHighlighted(),t=0===e,o=1===e;this.comp.toggleCss("ag-header-highlight-before",t),this.comp.toggleCss("ag-header-highlight-after",o)}onDisplayedColumnsChanged(){super.onDisplayedColumnsChanged(),this.isAlive()&&this.onHeaderHeightChanged()}onHeaderHeightChanged(){this.refreshSpanHeaderHeight()}refreshSpanHeaderHeight(){const{eGui:e,column:t,comp:o,beans:i}=this,s=getGroupRowsHeight(this.beans),n=0===s.reduce(((e,t)=>e+t),0);if(o.toggleCss("ag-header-parent-hidden",n),!t.isSpanHeaderHeight())return e.style.removeProperty("top"),e.style.removeProperty("height"),o.toggleCss("ag-header-span-height",!1),void o.toggleCss("ag-header-span-total",!1);const{numberOfParents:r,isSpanningTotal:a}=this.column.getColumnGroupPaddingInfo();o.toggleCss("ag-header-span-height",r>0);const l=getColumnHeaderRowHeight(i);if(0===r)return o.toggleCss("ag-header-span-total",!1),e.style.setProperty("top","0px"),void e.style.setProperty("height",`${l}px`);o.toggleCss("ag-header-span-total",a);let d=0;for(let e=0;e<r;e++)d+=s[s.length-1-e];e.style.setProperty("top",-d+"px"),e.style.setProperty("height",`${l+d}px`)}refreshAriaSort(){if(this.sortable){const e=this.getLocaleTextFunc(),t=this.beans.sortSvc?.getDisplaySortForColumn(this.column)||null;this.comp.setAriaSort(function _getAriaSortState(e){let t;return t="asc"===e?"ascending":"desc"===e?"descending":"mixed"===e?"other":"none",t}(t)),this.setAriaDescriptionProperty("sort",e("ariaSortableColumn","Press ENTER to sort"))}else this.comp.setAriaSort(),this.setAriaDescriptionProperty("sort",null)}refreshAriaMenu(){if(this.menuEnabled){const e=this.getLocaleTextFunc();this.setAriaDescriptionProperty("menu",e("ariaMenuColumn","Press ALT DOWN to open column menu"))}else this.setAriaDescriptionProperty("menu",null)}refreshAriaFilterButton(){if(this.openFilterEnabled&&!_isLegacyMenuEnabled(this.gos)){const e=this.getLocaleTextFunc();this.setAriaDescriptionProperty("filterButton",e("ariaFilterColumn","Press CTRL ENTER to open filter"))}else this.setAriaDescriptionProperty("filterButton",null)}refreshAriaFiltered(){const e=this.getLocaleTextFunc();this.column.isFilterActive()?this.setAriaDescriptionProperty("filter",e("ariaColumnFiltered","Column Filtered")):this.setAriaDescriptionProperty("filter",null)}setAriaDescriptionProperty(e,t){null!=t?this.ariaDescriptionProperties.set(e,t):this.ariaDescriptionProperties.delete(e)}announceAriaDescription(){if(!this.eGui.contains(_getActiveDomElement(this.beans)))return;const e=Array.from(this.ariaDescriptionProperties.keys()).sort(((e,t)=>"filter"===e?-1:t.charCodeAt(0)-e.charCodeAt(0))).map((e=>this.ariaDescriptionProperties.get(e))).join(". ");this.beans.ariaAnnounce?.announceValue(e,"columnHeader")}refreshAria(){this.refreshAriaSort(),this.refreshAriaMenu(),this.refreshAriaFilterButton(),this.refreshAriaFiltered()}addColumnHoverListener(e){this.beans.colHover?.addHeaderColumnHoverListener(e,this.comp,this.column)}addActiveHeaderMouseListeners(e){const listener=e=>this.handleMouseOverChange("mouseenter"===e.type);e.addManagedListeners(this.eGui,{mouseenter:listener,mouseleave:listener,click:()=>{this.setActiveHeader(!0),this.dispatchColumnMouseEvent("columnHeaderClicked",this.column)},contextmenu:e=>this.handleContextMenuMouseEvent(e,void 0,this.column)})}handleMouseOverChange(e){this.setActiveHeader(e),this.eventSvc.dispatchEvent({type:e?"columnHeaderMouseOver":"columnHeaderMouseLeave",column:this.column})}setActiveHeader(e){this.comp.toggleCss("ag-header-active",e)}getAnchorElementForMenu(e){const t=this.comp.getUserCompInstance();return isHeaderComp(t)?t.getAnchorElementForMenu(e):this.eGui}destroy(){this.tooltipFeature=this.destroyBean(this.tooltipFeature),super.destroy()}};function isHeaderComp(e){return"function"==typeof e?.getAnchorElementForMenu&&"function"==typeof e.onMenuKeyboardShortcut}var uo=0,go=class extends I{constructor(e,t,o){super(),this.rowIndex=e,this.pinned=t,this.type=o,this.instanceId=uo++,this.allCtrls=[];const i="group"==o?"ag-header-row-column-group":"filter"==o?"ag-header-row-column-filter":"ag-header-row-column";this.headerRowClass=`ag-header-row ${i}`}postConstruct(){this.isPrintLayout=_isDomLayout(this.gos,"print"),this.isEnsureDomOrder=this.gos.get("ensureDomOrder")}areCellsRendered(){return!!this.comp&&this.allCtrls.every((e=>null!=e.eGui))}setComp(e,t,o=!0){this.comp=e,t=setupCompBean(this,this.beans.context,t),o&&(this.onRowHeightChanged(),this.onVirtualColumnsChanged()),this.setWidth(),this.addEventListeners(t)}getAriaRowIndex(){return this.rowIndex+1}addEventListeners(e){const t=this.onRowHeightChanged.bind(this),o=this.onDisplayedColumnsChanged.bind(this);e.addManagedEventListeners({columnResized:this.setWidth.bind(this),displayedColumnsChanged:o,virtualColumnsChanged:e=>this.onVirtualColumnsChanged(e.afterScroll),columnGroupHeaderHeightChanged:t,columnHeaderHeightChanged:t,gridStylesChanged:t,advancedFilterEnabledChanged:t}),e.addManagedPropertyListener("domLayout",o),e.addManagedPropertyListener("ensureDomOrder",(e=>this.isEnsureDomOrder=e.currentValue)),e.addManagedPropertyListeners(["headerHeight","pivotHeaderHeight","groupHeaderHeight","pivotGroupHeaderHeight","floatingFiltersHeight"],t)}onDisplayedColumnsChanged(){this.isPrintLayout=_isDomLayout(this.gos,"print"),this.onVirtualColumnsChanged(),this.setWidth(),this.onRowHeightChanged()}setWidth(){const e=this.getWidthForRow();this.comp.setWidth(`${e}px`)}getWidthForRow(){const{visibleCols:e}=this.beans;if(this.isPrintLayout){return null!=this.pinned?0:e.getContainerWidth("right")+e.getContainerWidth("left")+e.getContainerWidth(null)}return e.getContainerWidth(this.pinned)}onRowHeightChanged(){const{topOffset:e,rowHeight:t}=this.getTopAndHeight();this.comp.setTop(e+"px"),this.comp.setHeight(t+"px")}getTopAndHeight(){const{filterManager:e}=this.beans,t=[],o=getGroupRowsHeight(this.beans),i=getColumnHeaderRowHeight(this.beans);t.push(...o),t.push(i),e?.hasFloatingFilters()&&t.push(getFloatingFiltersHeight(this.beans));let s=0;for(let e=0;e<this.rowIndex;e++)s+=t[e];return{topOffset:s,rowHeight:t[this.rowIndex]}}onVirtualColumnsChanged(e=!1){const t=this.getUpdatedHeaderCtrls(),o=this.isEnsureDomOrder||this.isPrintLayout;this.comp.setHeaderCtrls(t,o,e)}getUpdatedHeaderCtrls(){const e=this.ctrlsById;this.ctrlsById=new Map;const t=this.getColumnsInViewport();for(const o of t)this.recycleAndCreateHeaderCtrls(o,this.ctrlsById,e);const isFocusedAndDisplayed=e=>{const{focusSvc:t,visibleCols:o}=this.beans;if(!t.isHeaderWrapperFocused(e))return!1;return o.isVisible(e.column)};if(e)for(const[t,o]of e){isFocusedAndDisplayed(o)?this.ctrlsById.set(t,o):this.destroyBean(o)}return this.allCtrls=Array.from(this.ctrlsById.values()),this.allCtrls}getHeaderCellCtrls(){return this.allCtrls}recycleAndCreateHeaderCtrls(e,t,o){if(e.isEmptyGroup())return;const i=e.getUniqueId();let s;o&&(s=o.get(i),o.delete(i));if(s&&s.column!=e&&(this.destroyBean(s),s=void 0),null==s)switch(this.type){case"filter":s=this.createBean(this.beans.registry.createDynamicBean("headerFilterCellCtrl",!0,e,this));break;case"group":s=this.createBean(this.beans.registry.createDynamicBean("headerGroupCellCtrl",!0,e,this));break;default:s=this.createBean(new ho(e,this))}t.set(i,s)}getColumnsInViewport(){return this.isPrintLayout?this.getColumnsInViewportPrintLayout():this.getColumnsInViewportNormalLayout()}getColumnsInViewportPrintLayout(){if(null!=this.pinned)return[];let e=[];const t=this.getActualDepth(),{colViewport:o}=this.beans;return["left",null,"right"].forEach((i=>{const s=o.getHeadersToRender(i,t);e=e.concat(s)})),e}getActualDepth(){return"filter"==this.type?this.rowIndex-1:this.rowIndex}getColumnsInViewportNormalLayout(){return this.beans.colViewport.getHeadersToRender(this.pinned,this.getActualDepth())}focusHeader(e,t){const o=this.allCtrls.find((t=>t.column==e));if(!o)return!1;return o.focus(t)}destroy(){this.allCtrls=this.destroyBeans(this.allCtrls),this.ctrlsById=void 0,super.destroy()}},po=class extends I{constructor(e){super(),this.pinned=e,this.hidden=!1,this.includeFloatingFilter=!1,this.groupsRowCtrls=[]}setComp(e,t){this.comp=e,this.eViewport=t;const{pinnedCols:o,ctrlsSvc:i,colModel:s,colMoves:n,filterManager:r}=this.beans;this.setupCenterWidth(),o?.setupHeaderPinnedWidth(this),this.setupDragAndDrop(n,this.eViewport);const a=this.onDisplayedColumnsChanged.bind(this,r);this.addManagedEventListeners({gridColumnsChanged:this.onGridColumnsChanged.bind(this),displayedColumnsChanged:a,advancedFilterEnabledChanged:a});const l=`${"string"==typeof this.pinned?this.pinned:"center"}Header`;i.register(l,this),s.ready&&this.refresh()}getAllCtrls(){const e=[...this.groupsRowCtrls];return this.columnsRowCtrl&&e.push(this.columnsRowCtrl),this.filtersRowCtrl&&e.push(this.filtersRowCtrl),e}refresh(e=!1){const{focusSvc:t,colModel:o,filterManager:i}=this.beans;let s=0;const n=t.getFocusHeaderToUseAfterRefresh();(()=>{const e=function getHeaderRowCount(e){return e.cols?e.cols.treeDepth+1:-1}(o)-1;this.groupsRowCtrls=this.destroyBeans(this.groupsRowCtrls);for(let t=0;t<e;t++){const e=this.createBean(new go(s++,this.pinned,"group"));this.groupsRowCtrls.push(e)}})(),(()=>{const t=s++,o=!(this.hidden||null!=this.columnsRowCtrl&&e&&this.columnsRowCtrl.rowIndex===t);(o||this.hidden)&&(this.columnsRowCtrl=this.destroyBean(this.columnsRowCtrl)),o&&(this.columnsRowCtrl=this.createBean(new go(t,this.pinned,"column")))})(),(()=>{this.includeFloatingFilter=!!i?.hasFloatingFilters()&&!this.hidden;const destroyPreviousComp=()=>{this.filtersRowCtrl=this.destroyBean(this.filtersRowCtrl)};if(!this.includeFloatingFilter)return void destroyPreviousComp();const t=s++;if(this.filtersRowCtrl){const o=this.filtersRowCtrl.rowIndex!==t;e&&!o||destroyPreviousComp()}this.filtersRowCtrl||(this.filtersRowCtrl=this.createBean(new go(t,this.pinned,"filter")))})();const r=this.getAllCtrls();this.comp.setCtrls(r),this.restoreFocusOnHeader(t,n)}getHeaderCtrlForColumn(e){const findCtrl=t=>t?.getHeaderCellCtrls().find((t=>t.column===e));if(isColumn(e))return findCtrl(this.columnsRowCtrl);if(0!==this.groupsRowCtrls.length)for(let e=0;e<this.groupsRowCtrls.length;e++){const t=findCtrl(this.groupsRowCtrls[e]);if(t)return t}}getHtmlElementForColumnHeader(e){return this.getHeaderCtrlForColumn(e)?.eGui??null}getRowType(e){return this.getAllCtrls()[e]?.type}focusHeader(e,t,o){const i=this.getAllCtrls()[e];return!!i&&i.focusHeader(t,o)}getGroupRowCount(){return this.groupsRowCtrls.length}getGroupRowCtrlAtIndex(e){return this.groupsRowCtrls[e]}getRowCount(){return this.groupsRowCtrls.length+(this.columnsRowCtrl?1:0)+(this.filtersRowCtrl?1:0)}setHorizontalScroll(e){this.comp.setViewportScrollLeft(e)}onScrollCallback(e){this.addManagedElementListeners(this.eViewport,{scroll:e})}destroy(){this.filtersRowCtrl=this.destroyBean(this.filtersRowCtrl),this.columnsRowCtrl=this.destroyBean(this.columnsRowCtrl),this.groupsRowCtrls=this.destroyBeans(this.groupsRowCtrls),super.destroy()}setupDragAndDrop(e,t){const o=e?.createBodyDropTarget(this.pinned,t);o&&this.createManagedBean(o)}restoreFocusOnHeader(e,t){if(!t)return;const{column:o}=t;o.getPinned()==this.pinned&&e.focusHeaderPosition({headerPosition:t})}onGridColumnsChanged(){this.refresh(!0)}onDisplayedColumnsChanged(e){const t=!!e?.hasFloatingFilters()&&!this.hidden;this.includeFloatingFilter!==t&&this.refresh(!0)}setupCenterWidth(){null==this.pinned&&this.createManagedBean(new Gt((e=>this.comp.setCenterWidth(`${e}px`)),!0))}};function _setColMenuVisible(e,t,o){e.menuVisible!==t&&(e.menuVisible=t,e.dispatchColEvent("menuVisibleChanged",o))}var mo=class extends Q{isPopup(){return!0}setParentComponent(e){e.addCss("ag-has-popup"),super.setParentComponent(e)}destroy(){const e=this.parentComponent;e&&e.isAlive()&&e.getGui().classList.remove("ag-has-popup"),super.destroy()}},fo=class extends mo{constructor(){super(...arguments),this.errorMessages=null}init(e){this.params=e,this.initialiseEditor(e),this.eEditor.onValueChange((()=>e.validate()))}destroy(){this.errorMessages=null}},Co=class extends Q{constructor(){super()}},wo={tag:"span",cls:"ag-overlay-loading-center",attrs:{"aria-live":"polite","aria-atomic":"true"}},vo={tag:"span",cls:"ag-overlay-no-rows-center"};function _createIconNoSpan(e,t,o){let i=null;"smallDown"===e?_warn(262):"smallLeft"===e?_warn(263):"smallRight"===e&&_warn(264);const s=o&&o.getColDef().icons;if(s&&(i=s[e]),t.gos&&!i){const o=t.gos.get("icons");o&&(i=o[e])}if(i){let t;if("function"==typeof i)t=i();else{if("string"!=typeof i)return void _warn(38,{iconName:e});t=i}return"string"==typeof t?_loadTemplate(t):_isNodeOrElement(t)?t:void _warn(133,{iconName:e})}{const o=t.registry.getIcon(e);return o||t.validation?.validateIcon(e),_createElement({tag:"span",cls:`ag-icon ag-icon-${o??e}`,role:"presentation",attrs:{unselectable:"on"}})}}var bo={tag:"div",children:[{tag:"div",ref:"eGhost",cls:"ag-dnd-ghost ag-unselectable",children:[{tag:"span",ref:"eIcon",cls:"ag-dnd-ghost-icon ag-shake-left-to-right"},{tag:"div",ref:"eLabel",cls:"ag-dnd-ghost-label"}]}]},So=class extends Q{constructor(e,t,o){super(t,o),this.labelSeparator="",this.labelAlignment="left",this.disabled=!1,this.label="",this.config=e||{},this.registerCSS(".ag-label{white-space:nowrap}:where(.ag-ltr) .ag-label{margin-right:var(--ag-spacing)}:where(.ag-rtl) .ag-label{margin-left:var(--ag-spacing)}:where(.ag-label-align-right) .ag-label{order:1}:where(.ag-ltr) :where(.ag-label-align-right) .ag-label{margin-left:var(--ag-spacing)}:where(.ag-rtl) :where(.ag-label-align-right) .ag-label{margin-right:var(--ag-spacing)}.ag-label-align-right>*{flex:none}.ag-label-align-top{align-items:flex-start;flex-direction:column;>*{align-self:stretch}}.ag-label-ellipsis{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:where(.ag-label-align-top) .ag-label{margin-bottom:calc(var(--ag-spacing)*.5)}")}postConstruct(){this.addCss("ag-labeled"),this.eLabel.classList.add("ag-label");const{labelSeparator:e,label:t,labelWidth:o,labelAlignment:i,disabled:s}=this.config;null!=s&&this.setDisabled(s),null!=e&&this.setLabelSeparator(e),null!=t&&this.setLabel(t),null!=o&&this.setLabelWidth(o),this.setLabelAlignment(i||this.labelAlignment),this.refreshLabel()}refreshLabel(){const{label:e,eLabel:t}=this;_clearElement(t),"string"==typeof e?t.innerText=e+this.labelSeparator:e&&t.appendChild(e),""===e?(_setDisplayed(t,!1),_setAriaRole(t,"presentation")):(_setDisplayed(t,!0),_setAriaRole(t,null))}setLabelSeparator(e){return this.labelSeparator===e||(this.labelSeparator=e,null!=this.label&&this.refreshLabel()),this}getLabelId(){const e=this.eLabel;return e.id=e.id||`ag-${this.getCompId()}-label`,e.id}getLabel(){return this.label}setLabel(e){return this.label===e||(this.label=e,this.refreshLabel()),this}setLabelAlignment(e){const t=this.getGui().classList;return t.toggle("ag-label-align-left","left"===e),t.toggle("ag-label-align-right","right"===e),t.toggle("ag-label-align-top","top"===e),this}setLabelEllipsis(e){return this.eLabel.classList.toggle("ag-label-ellipsis",e),this}setLabelWidth(e){return null==this.label||_setElementWidth(this.eLabel,e),this}setDisabled(e){e=!!e;const t=this.getGui();return _setDisabled(t,e),t.classList.toggle("ag-disabled",e),this.disabled=e,this}isDisabled(){return!!this.disabled}},yo=class extends So{constructor(e,t,o,i){super(e,t,o),this.className=i}postConstruct(){super.postConstruct();const{width:e,value:t,onValueChange:o}=this.config;null!=e&&this.setWidth(e),null!=t&&this.setValue(t),null!=o&&this.onValueChange(o),this.className&&this.addCss(this.className),this.refreshAriaLabelledBy()}setLabel(e){return super.setLabel(e),this.refreshAriaLabelledBy(),this}refreshAriaLabelledBy(){const e=this.getAriaElement(),t=this.getLabelId(),o=this.getLabel();null==o||""==o||null!==function _getAriaLabel(e){return e.getAttribute("aria-label")}(e)?_setAriaLabelledBy(e,""):_setAriaLabelledBy(e,t??"")}setAriaLabel(e){return _setAriaLabel(this.getAriaElement(),e),this.refreshAriaLabelledBy(),this}onValueChange(e){return this.addManagedListeners(this,{fieldValueChanged:()=>e(this.getValue())}),this}getWidth(){return this.getGui().clientWidth}setWidth(e){return _setFixedWidth(this.getGui(),e),this}getPreviousValue(){return this.previousValue}getValue(){return this.value}setValue(e,t){return this.value===e||(this.previousValue=this.value,this.value=e,t||this.dispatchLocalEvent({type:"fieldValueChanged"})),this}};var Ro=class extends yo{constructor(e,t,o="text",i="input"){super(e,e?.template??function buildTemplate(e){return{tag:"div",role:"presentation",children:[{tag:"div",ref:"eLabel",cls:"ag-input-field-label"},{tag:"div",ref:"eWrapper",cls:"ag-wrapper ag-input-wrapper",role:"presentation",children:[{tag:e,ref:"eInput",cls:"ag-input-field-input"}]}]}}(i),[],t),this.inputType=o,this.displayFieldTag=i,this.eLabel=q,this.eWrapper=q,this.eInput=q}postConstruct(){super.postConstruct(),this.setInputType(this.inputType);const{eLabel:e,eWrapper:t,eInput:o,className:i}=this;e.classList.add(`${i}-label`),t.classList.add(`${i}-input-wrapper`),o.classList.add(`${i}-input`),this.addCss("ag-input-field"),o.id=o.id||`ag-${this.getCompId()}-input`;const{inputName:s,inputWidth:n}=this.config;null!=s&&this.setInputName(s),null!=n&&this.setInputWidth(n),this.addInputListeners(),this.activateTabIndex([o])}addInputListeners(){this.addManagedElementListeners(this.eInput,{input:e=>this.setValue(e.target.value)})}setInputType(e){"input"===this.displayFieldTag&&(this.inputType=e,_addOrRemoveAttribute(this.eInput,"type",e))}getInputElement(){return this.eInput}setInputWidth(e){return _setElementWidth(this.eWrapper,e),this}setInputName(e){return this.getInputElement().setAttribute("name",e),this}getFocusableElement(){return this.eInput}setMaxLength(e){return this.eInput.maxLength=e,this}setInputPlaceholder(e){return _addOrRemoveAttribute(this.eInput,"placeholder",e),this}setInputAriaLabel(e){return _setAriaLabel(this.eInput,e),this.refreshAriaLabelledBy(),this}setDisabled(e){return _setDisabled(this.eInput,e),super.setDisabled(e)}setAutoComplete(e){if(!0===e)_addOrRemoveAttribute(this.eInput,"autocomplete",null);else{const t="string"==typeof e?e:"off";_addOrRemoveAttribute(this.eInput,"autocomplete",t)}return this}},Fo=class extends Ro{constructor(e,t="ag-checkbox",o="checkbox"){super(e,t,o),this.labelAlignment="right",this.selected=!1,this.readOnly=!1,this.passive=!1}postConstruct(){super.postConstruct();const{readOnly:e,passive:t}=this.config;"boolean"==typeof e&&this.setReadOnly(e),"boolean"==typeof t&&this.setPassive(t)}addInputListeners(){this.addManagedElementListeners(this.eInput,{click:this.onCheckboxClick.bind(this)}),this.addManagedElementListeners(this.eLabel,{click:this.toggle.bind(this)})}getNextValue(){return void 0===this.selected||!this.selected}setPassive(e){this.passive=e}isReadOnly(){return this.readOnly}setReadOnly(e){this.eWrapper.classList.toggle("ag-disabled",e),this.eInput.disabled=e,this.readOnly=e}setDisabled(e){return this.eWrapper.classList.toggle("ag-disabled",e),super.setDisabled(e)}toggle(){if(this.eInput.disabled)return;const e=this.isSelected(),t=this.getNextValue();this.passive?this.dispatchChange(t,e):this.setValue(t)}getValue(){return this.isSelected()}setValue(e,t){return this.refreshSelectedClass(e),this.setSelected(e,t),this}setName(e){return this.getInputElement().name=e,this}isSelected(){return this.selected}setSelected(e,t){if(this.isSelected()===e)return;this.previousValue=this.isSelected(),e=this.selected="boolean"==typeof e?e:void 0;const o=this.eInput;o.checked=e,o.indeterminate=void 0===e,t||this.dispatchChange(this.selected,this.previousValue)}dispatchChange(e,t,o){this.dispatchLocalEvent({type:"fieldValueChanged",selected:e,previousValue:t,event:o});const i=this.getInputElement();this.eventSvc.dispatchEvent({type:"checkboxChanged",id:i.id,name:i.name,selected:e,previousValue:t})}onCheckboxClick(e){if(this.passive||this.eInput.disabled)return;const t=this.isSelected(),o=this.selected=e.target.checked;this.refreshSelectedClass(o),this.dispatchChange(o,t,e)}refreshSelectedClass(e){const t=this.eWrapper.classList;t.toggle("ag-checked",!0===e),t.toggle("ag-indeterminate",null==e)}},Eo={selector:"AG-CHECKBOX",component:Fo},Po={tag:"div",cls:"ag-cell-wrapper ag-checkbox-cell",role:"presentation",children:[{tag:"ag-checkbox",ref:"eCheckbox",role:"presentation"}]},Do=class{constructor(e,t){this.beans=e,this.floating=t,this.all=new Set,this.visible=new Set,this.order=[],this.queued=new Set}size(){return this.visible.size}add(e){const{all:t,visible:o,order:i}=this;t.has(e)||(t.add(e),o.add(e),i.push(e),this.sort())}delete(e){this.all.delete(e),this.visible.delete(e),this.queued.delete(e.id),_removeFromArray(this.order,e)}has(e){return this.visible.has(e)}forEach(e){this.order.forEach(e)}getByIndex(e){return this.order[e]}getById(e){for(const t of this.visible)if(t.id==e)return t}clear(){const{all:e,visible:t,order:o,queued:i}=this;e.clear(),i.clear(),t.clear(),o.length=0}sort(){const{sortSvc:e,rowNodeSorter:t,gos:o}=this.beans,i=e?.getSortOptions()??[],s=function _removeGrandTotalRow(e){const t=e.findIndex(_isPinnedNodeGrandTotal);if(t>-1)return e.splice(t,1)?.[0]}(this.order);if(this.order.sort(((e,t)=>(e.pinnedSibling?.rowIndex??0)-(t.pinnedSibling?.rowIndex??0))),this.order=t?.doFullSort(this.order,i)??this.order,!s)return;const n=_getGrandTotalRow(o);"bottom"===n||"pinnedBottom"===n?this.order.push(s):this.order.unshift(s)}hide(e){const{all:t,visible:o}=this;t.forEach((t=>e(t)?o.delete(t):o.add(t))),this.order=Array.from(o),this.sort()}queue(e){this.queued.add(e)}unqueue(e){this.queued.delete(e)}forEachQueued(e){this.queued.forEach(e)}};function _isDisplayedAfterFilterCSRM(e){if(-1===e.level)return!0;const t=e.parent;return!!t?.childrenAfterSort?.some((t=>t==e))&&_isDisplayedAfterFilterCSRM(t)}function _shouldHidePinnedRows(e,t){const{gos:o,rowModel:i,filterManager:s}=e;return _isServerSideRowModel(o)?!i.getRowNode(t.id):s?.isAnyFilterPresent()?!_isDisplayedAfterFilterCSRM(t):!!o.get("pivotMode")&&!t.group}function _isPinnedNodeGrandTotal(e){return!!e.pinnedSibling&&function _isNodeGrandTotal(e){return!!e.footer&&-1===e.level}(e.pinnedSibling)}var xo=class extends I{postConstruct(){const{gos:e,beans:t}=this;this.top=new Do(t,"top"),this.bottom=new Do(t,"bottom");const shouldHide=e=>_shouldHidePinnedRows(t,e.pinnedSibling),runIsRowPinned=()=>{const o=e.get("isRowPinned");o&&e.get("enableRowPinning")&&t.rowModel.forEachNode((e=>this.pinRow(e,o(e))),!0),this.refreshRowPositions(),this.dispatchRowPinnedEvents()};this.addManagedEventListeners({gridStylesChanged:this.onGridStylesChanges.bind(this),modelUpdated:()=>{this.tryToEmptyQueues(),this.pinGrandTotalRow(),this.forContainers((e=>e.hide(shouldHide))),this.refreshRowPositions(),this.dispatchRowPinnedEvents()},columnRowGroupChanged:()=>{this.forContainers(removeGroupRows),this.refreshRowPositions()},rowNodeDataChanged:({node:t})=>{(e.get("isRowPinnable")?.(t)??!0)||this.pinRow(t,null)},firstDataRendered:runIsRowPinned}),this.addManagedPropertyListener("pivotMode",(()=>{this.forContainers((e=>e.hide(shouldHide))),this.dispatchRowPinnedEvents()})),this.addManagedPropertyListener("grandTotalRow",(({currentValue:e})=>{this._grandTotalPinned="pinnedBottom"===e?"bottom":"pinnedTop"===e?"top":null})),this.addManagedPropertyListener("isRowPinned",runIsRowPinned)}destroy(){this.reset(!1),super.destroy()}reset(e=!0){this.forContainers((e=>{const t=[];e.forEach((e=>t.push(e))),t.forEach((e=>this.pinRow(e,null))),e.clear()})),e&&this.dispatchRowPinnedEvents()}pinRow(e,t,o){if(e.footer&&e.level>-1)return;if(e.footer&&-1===e.level)return this._grandTotalPinned=t,void function refreshCSRM({gos:e,rowModel:t}){_isClientSideRowModel(e)&&t.refreshModel({step:"map"})}(this.beans);const i=e.rowPinned??e.pinnedSibling?.rowPinned;if(null!=i&&null!=t&&t!=i){const i=e.rowPinned?e:e.pinnedSibling,s=e.rowPinned?e.pinnedSibling:e;return this.pinRow(i,null,o),void this.pinRow(s,t,o)}const s=o&&function getSpannedRows(e,t,o){const{rowSpanSvc:i}=e,s=(o&&i?.isCellSpanning(o,t))??!1;if(o&&s)return i?.getCellSpan(o,t)?.spannedNodes}(this.beans,e,o);if(s)s.forEach((e=>this.pinRow(e,t)));else if(null==t){const o=e.rowPinned?e:e.pinnedSibling,i=this.findPinnedRowNode(o);if(!i)return;i.delete(o);const s=o.pinnedSibling;_destroyRowNodeSibling(o),this.refreshRowPositions(t),this.dispatchRowPinnedEvents(s)}else{const o=_createPinnedSibling(this.beans,e,t),i=this.getContainer(t);i.add(o),_shouldHidePinnedRows(this.beans,e)&&i.hide((e=>_shouldHidePinnedRows(this.beans,e.pinnedSibling))),this.refreshRowPositions(t),this.dispatchRowPinnedEvents(e)}}isManual(){return!0}isEmpty(e){return 0===this.getContainer(e).size()}isRowsToRender(e){return!this.isEmpty(e)}ensureRowHeightsValid(){let e=!1,t=0;const updateRowHeight=o=>{if(o.rowHeightEstimated){const i=_getRowHeightForNode(this.beans,o);o.setRowTop(t),o.setRowHeight(i.height),t+=i.height,e=!0}};return this.bottom.forEach(updateRowHeight),t=0,this.top.forEach(updateRowHeight),this.eventSvc.dispatchEvent({type:"pinnedHeightChanged"}),e}getPinnedTopTotalHeight(){return getTotalHeight(this.top)}getPinnedBottomTotalHeight(){return getTotalHeight(this.bottom)}getPinnedTopRowCount(){return this.top.size()}getPinnedBottomRowCount(){return this.bottom.size()}getPinnedTopRow(e){return this.top.getByIndex(e)}getPinnedBottomRow(e){return this.bottom.getByIndex(e)}getPinnedRowById(e,t){return this.getContainer(t).getById(e)}forEachPinnedRow(e,t){this.getContainer(e).forEach(t)}getPinnedState(){const buildState=e=>{const t=[];return this.forEachPinnedRow(e,(e=>t.push(e.pinnedSibling.id))),t};return{top:buildState("top"),bottom:buildState("bottom")}}setPinnedState(e){this.forContainers(((t,o)=>{for(const i of e[o]){const e=this.beans.rowModel.getRowNode(i);e?this.pinRow(e,o):t.queue(i)}}))}getGrandTotalPinned(){return this._grandTotalPinned}setGrandTotalPinned(e){this._grandTotalPinned=e}tryToEmptyQueues(){this.forContainers(((e,t)=>{const o=new Set;e.forEachQueued((e=>{const t=this.beans.rowModel.getRowNode(e);t&&o.add(t)}));for(const i of o)e.unqueue(i.id),this.pinRow(i,t)}))}pinGrandTotalRow(){const{gos:e,beans:t,_grandTotalPinned:o}=this,i=t.rowModel;if(!_isClientSideRowModel(e))return;const s=i.rootNode?.sibling;if(!s)return;const n=s.pinnedSibling,r=n&&this.findPinnedRowNode(n);if(o){if(r&&r.floating!==o&&(r.delete(n),_destroyRowNodeSibling(n)),!r||r.floating!==o){const e=_createPinnedSibling(t,s,o);this.getContainer(o).add(e)}}else{if(!r)return;r.delete(n),_destroyRowNodeSibling(n)}}onGridStylesChanges(e){e.rowHeightChanged&&this.forContainers((e=>e.forEach((e=>e.setRowHeight(e.rowHeight,!0)))))}getContainer(e){return"top"===e?this.top:this.bottom}findPinnedRowNode(e){return this.top.has(e)?this.top:this.bottom.has(e)?this.bottom:void 0}refreshRowPositions(e){const refreshAll=e=>function refreshRowPositions(e,t){let o=0;t.forEach(((t,i)=>{t.setRowTop(o),(t.rowHeightEstimated||null==t.rowHeight)&&t.setRowHeight(_getRowHeightForNode(e,t).height),t.setRowIndex(i),o+=t.rowHeight}))}(this.beans,e);return null==e?this.forContainers(refreshAll):refreshAll(this.getContainer(e))}forContainers(e){e(this.top,"top"),e(this.bottom,"bottom")}dispatchRowPinnedEvents(e){this.eventSvc.dispatchEvent({type:"pinnedRowsChanged"}),e?.dispatchRowEvent("rowPinned")}};function _createPinnedSibling(e,t,o){if(t.pinnedSibling)return t.pinnedSibling;const i=function _createRowNodeSibling(e,t){const o=new lt(t);return Object.keys(e).forEach((t=>{dt.has(t)||(o[t]=e[t])})),o.oldRowTop=null,o}(t,e);i.setRowTop(null),i.setRowIndex(null),i.rowPinned=o;const s="top"===o?nt:rt;return i.id=`${s}${o}-${t.id}`,i.pinnedSibling=t,t.pinnedSibling=i,i}function _destroyRowNodeSibling(e){if(!e.pinnedSibling)return;e.rowPinned=null,e.setRowTop(null),e.setRowIndex(null);const t=e.pinnedSibling;e.pinnedSibling=void 0,t&&(t.pinnedSibling=void 0,t.rowPinned=null)}function removeGroupRows(e){const t=new Set;e.forEach((e=>{e.group&&t.add(e)})),t.forEach((t=>e.delete(t)))}function getTotalHeight(e){const t=e.size();if(0===t)return 0;const o=e.getByIndex(t-1);return void 0===o?0:o.rowTop+o.rowHeight}var Mo=class extends I{constructor(){super(...arguments),this.nextId=0,this.pinnedTopRows={cache:{},order:[]},this.pinnedBottomRows={cache:{},order:[]}}postConstruct(){const e=this.gos;this.setPinnedRowData(e.get("pinnedTopRowData"),"top"),this.setPinnedRowData(e.get("pinnedBottomRowData"),"bottom"),this.addManagedPropertyListener("pinnedTopRowData",(e=>this.setPinnedRowData(e.currentValue,"top"))),this.addManagedPropertyListener("pinnedBottomRowData",(e=>this.setPinnedRowData(e.currentValue,"bottom"))),this.addManagedEventListeners({gridStylesChanged:this.onGridStylesChanges.bind(this)})}reset(){}isEmpty(e){return 0===this.getCache(e).order.length}isRowsToRender(e){return!this.isEmpty(e)}isManual(){return!1}pinRow(e,t){}onGridStylesChanges(e){if(e.rowHeightChanged){const estimateRowHeight=e=>{e.setRowHeight(e.rowHeight,!0)};forEach(this.pinnedBottomRows,estimateRowHeight),forEach(this.pinnedTopRows,estimateRowHeight)}}ensureRowHeightsValid(){let e=!1,t=0;const updateRowHeight=o=>{if(o.rowHeightEstimated){const i=_getRowHeightForNode(this.beans,o);o.setRowTop(t),o.setRowHeight(i.height),t+=i.height,e=!0}};return forEach(this.pinnedBottomRows,updateRowHeight),t=0,forEach(this.pinnedTopRows,updateRowHeight),this.eventSvc.dispatchEvent({type:"pinnedHeightChanged"}),e}setPinnedRowData(e,t){this.updateNodesFromRowData(e,t),this.eventSvc.dispatchEvent({type:"pinnedRowDataChanged"})}updateNodesFromRowData(e,t){const o=this.getCache(t);if(void 0===e)return o.order.length=0,void(o.cache={});const i=_getRowIdCallback(this.gos),s="top"===t?nt:rt,n=new Set(o.order),r=[],a=new Set;let l=0,d=-1;for(const c of e){const e=i?.({data:c,level:0,rowPinned:t})??s+this.nextId++;if(a.has(e)){_warn(96,{id:e,data:c});continue}d++,a.add(e),r.push(e);const h=getById(o,e);if(void 0!==h)h.data!==c&&h.updateData(c),l+=this.setRowTopAndRowIndex(h,l,d),n.delete(e);else{const i=new lt(this.beans);i.id=e,i.data=c,i.rowPinned=t,l+=this.setRowTopAndRowIndex(i,l,d),o.cache[e]=i,o.order.push(e)}}n.forEach((e=>{getById(o,e)?.clearRowTopAndRowIndex(),delete o.cache[e]})),o.order=r}setRowTopAndRowIndex(e,t,o){return e.setRowTop(t),e.setRowHeight(_getRowHeightForNode(this.beans,e).height),e.setRowIndex(o),e.rowHeight}getPinnedTopTotalHeight(){return getTotalHeight2(this.pinnedTopRows)}getPinnedBottomTotalHeight(){return getTotalHeight2(this.pinnedBottomRows)}getPinnedTopRowCount(){return getSize(this.pinnedTopRows)}getPinnedBottomRowCount(){return getSize(this.pinnedBottomRows)}getPinnedTopRow(e){return getByIndex(this.pinnedTopRows,e)}getPinnedBottomRow(e){return getByIndex(this.pinnedBottomRows,e)}getPinnedRowById(e,t){return getById(this.getCache(t),e)}forEachPinnedRow(e,t){return forEach(this.getCache(e),t)}getCache(e){return"top"===e?this.pinnedTopRows:this.pinnedBottomRows}getPinnedState(){return{top:[],bottom:[]}}setPinnedState(){}getGrandTotalPinned(){}setGrandTotalPinned(){}};function getTotalHeight2(e){const t=getSize(e);if(0===t)return 0;const o=getByIndex(e,t-1);return void 0===o?0:o.rowTop+o.rowHeight}function getById(e,t){return e.cache[t]}function getByIndex(e,t){return getById(e,e.order[t])}function forEach(e,t){e.order.forEach(((o,i)=>{const s=getById(e,o);s&&t(s,i)}))}function getSize(e){return e.order.length}var To=class extends I{constructor(){super(...arguments),this.nextId=0,this.allNodesMap={},this.rootNode=null}getRowNode(e){return this.allNodesMap[e]}extractRowData(){return this.rootNode?.allLeafChildren?.map((e=>e.data))}activate(e){this.rootNode=e,e.group=!0,e.level=-1,e.id="ROOT_NODE_ID",e.allLeafChildren=[],e.childrenAfterGroup=[],e.childrenAfterSort=[],e.childrenAfterAggFilter=[],e.childrenAfterFilter=[],this.updateRootSiblingArrays(e)}deactivate(){this.rootNode&&(this.allNodesMap={},this.rootNode=null)}destroy(){super.destroy(),this.allNodesMap={},this.rootNode=null}setNewRowData(e){const t=this.rootNode;t&&(this.dispatchRowDataUpdateStartedEvent(e),t.childrenAfterFilter=null,t.childrenAfterGroup=null,t.childrenAfterAggFilter=null,t.childrenAfterSort=null,t.childrenMapped=null,t.updateHasChildren(),this.allNodesMap={},this.nextId=0,this.loadNewRowData(e),this.updateRootSiblingArrays(t))}updateRootSiblingArrays(e){const t=e.sibling;t&&(t.childrenAfterFilter=e.childrenAfterFilter,t.childrenAfterGroup=e.childrenAfterGroup,t.childrenAfterAggFilter=e.childrenAfterAggFilter,t.childrenAfterSort=e.childrenAfterSort,t.childrenMapped=e.childrenMapped,t.allLeafChildren=e.allLeafChildren)}loadNewRowData(e){this.rootNode.allLeafChildren=e?.map(((e,t)=>this.createRowNode(e,t)))??[]}setImmutableRowData(e,t){const o=_getRowIdCallback(this.gos),i=!this.gos.get("suppressMaintainUnsortedOrder"),s=e.changedRowNodes,n=new Set,r=this.rootNode,a=r.allLeafChildren,l=a.length;let d=!1,c=!1,h=!1,u=!1;for(let e=0,r=-1,a=t.length;e<a;e++){const a=t[e];let l=this.getRowNode(o({data:a,level:0}));if(l){if(i){const e=l.sourceRowIndex;u||(u=e<=r||d),r=e}l.data!==a&&(h=!0,l.updateData(a),s.update(l))}else d=!0,l=this.createRowNode(a,-1),s.add(l);n.add(l)}const g=[];for(let e=0;e<l;e++){const t=a[e];n.has(t)||(c=!0,t.isSelected()&&g.push(t),t.pinnedSibling&&this.beans.pinnedRowModel?.pinRow(t.pinnedSibling,null),this.rowNodeDeleted(t),s.remove(t))}if(d||c||u){const t=new Array(n.size);let o=0;if(!i)for(let e=0;e<l;++e){const i=a[e];n.delete(i)&&(i.sourceRowIndex=o,t[o++]=i)}for(const e of n)e.sourceRowIndex=o,t[o++]=e;r.allLeafChildren=t;const s=r.sibling;s&&(s.allLeafChildren=t),e.rowNodesOrderChanged||(e.rowNodesOrderChanged=u)}(d||c||u||h)&&(this.deselectNodes(g),e.rowDataUpdated=!0)}rowNodeDeleted(e){e.clearRowTopAndRowIndex();const t=e.id,o=this.allNodesMap;o[t]===e&&delete o[t]}updateRowData(e,t){this.dispatchRowDataUpdateStartedEvent(e.add);const o={changedRowNodes:t,rowNodeTransaction:{remove:[],update:[],add:[]},rowsInserted:!1},i=[],s=_getRowIdCallback(this.gos);return this.executeRemove(s,e,o,i),this.executeUpdate(s,e,o,i),this.executeAdd(e,o),this.deselectNodes(i),o}executeAdd(e,t){const o=e.add;if(!o?.length)return;let i=this.rootNode.allLeafChildren,s=i.length;if("number"==typeof e.addIndex&&(s=this.sanitizeAddIndex(e.addIndex),s>0)){if(this.gos.get("treeData")&&this.gos.get("getDataPath"))for(let e=0;e<i.length;e++){if(i[e]?.rowIndex==s-1){s=e+1;break}}}const n=o.length,r=t.changedRowNodes,a=new Array(n);for(let e=0;e<n;e++){const t=this.createRowNode(o[e],s+e);r.add(t),a[e]=t}const l=this.rootNode;if(s<i.length){const e=i.slice(0,s),o=i.slice(s,i.length),n=e.length+a.length;for(let e=0,t=o.length;e<t;++e)o[e].sourceRowIndex=n+e;i=[...e,...a,...o],t.rowsInserted=!0}else i=i.concat(a);l.allLeafChildren=i;const d=l.sibling;d&&(d.allLeafChildren=i),t.rowNodeTransaction.add=a}executeRemove(e,t,{changedRowNodes:o,rowNodeTransaction:i},s){const{remove:n}=t;if(!n?.length)return;const r={};n.forEach((t=>{const n=this.lookupRowNode(e,t);n&&(n.isSelected()&&s.push(n),n.pinnedSibling&&this.beans.pinnedRowModel?.pinRow(n.pinnedSibling,null),n.clearRowTopAndRowIndex(),r[n.id]=!0,delete this.allNodesMap[n.id],i.remove.push(n),o.remove(n))}));const a=this.rootNode;a.allLeafChildren=a.allLeafChildren?.filter((e=>!r[e.id]))??null,a.allLeafChildren?.forEach(((e,t)=>{e.sourceRowIndex=t}));const l=a.sibling;l&&(l.allLeafChildren=a.allLeafChildren)}executeUpdate(e,t,{changedRowNodes:o,rowNodeTransaction:i},s){const{update:n}=t;n?.length&&n.forEach((t=>{const n=this.lookupRowNode(e,t);n&&(n.updateData(t),!n.selectable&&n.isSelected()&&s.push(n),i.update.push(n),o.update(n))}))}dispatchRowDataUpdateStartedEvent(e){this.eventSvc.dispatchEvent({type:"rowDataUpdateStarted",firstRowData:e?.length?e[0]:null})}deselectNodes(e){const t="rowDataChanged",o=this.beans.selectionSvc,i=e.length>0;i&&o?.setNodesSelected({newValue:!1,nodes:e,suppressFinishActions:!0,source:t}),o?.updateGroupsFromChildrenSelections?.(t),i&&this.eventSvc.dispatchEvent({type:"selectionChanged",source:t,selectedNodes:o?.getSelectedNodes()??null,serverSideState:null})}sanitizeAddIndex(e){const t=this.rootNode.allLeafChildren?.length??0;return e<0||e>=t||Number.isNaN(e)?t:Math.ceil(e)}createRowNode(e,t){const o=new lt(this.beans);return o.parent=this.rootNode,o.level=0,o.group=!1,o.expanded=!1,o.sourceRowIndex=t,o.setDataAndId(e,String(this.nextId)),this.allNodesMap[o.id]&&_warn(2,{nodeId:o.id}),this.allNodesMap[o.id]=o,this.nextId++,o}lookupRowNode(e,t){let o;if(e){const i=e({data:t,level:0});if(o=this.allNodesMap[i],!o)return _error(4,{id:i}),null}else if(o=this.rootNode?.allLeafChildren?.find((e=>e.data===t)),!o)return _error(5,{data:t}),null;return o||null}},Ao={tag:"div",cls:"ag-selection-checkbox",role:"presentation",children:[{tag:"ag-checkbox",ref:"eCheckbox",role:"presentation"}]},Io=class extends Q{constructor(){super(Ao,[Eo]),this.eCheckbox=q}postConstruct(){this.eCheckbox.setPassive(!0)}getCheckboxId(){return this.eCheckbox.getInputElement().id}onDataChanged(){this.onSelectionChanged()}onSelectableChanged(){this.showOrHideSelect()}onSelectionChanged(){const e=this.getLocaleTextFunc(),{rowNode:t,eCheckbox:o}=this,i=t.isSelected(),s=_getAriaCheckboxStateName(e,i),[n,r]=t.selectable?["ariaRowToggleSelection","Press Space to toggle row selection"]:["ariaRowSelectionDisabled","Row Selection is disabled for this row"],a=e(n,r);o.setValue(i,!0),o.setInputAriaLabel(`${a} (${s})`)}init(e){this.rowNode=e.rowNode,this.column=e.column,this.overrides=e.overrides,this.onSelectionChanged(),this.addManagedListeners(this.eCheckbox.getInputElement(),{dblclick:_stopPropagationForAgGrid,click:e=>{_stopPropagationForAgGrid(e),this.beans.selectionSvc?.handleSelectionEvent(e,this.rowNode,"checkboxSelected")}}),this.addManagedListeners(this.rowNode,{rowSelected:this.onSelectionChanged.bind(this),dataChanged:this.onDataChanged.bind(this),selectableChanged:this.onSelectableChanged.bind(this)}),this.addManagedPropertyListener("rowSelection",(({currentValue:e,previousValue:t})=>{("object"==typeof e?_getHideDisabledCheckboxes(e):void 0)!==("object"==typeof t?_getHideDisabledCheckboxes(t):void 0)&&this.onSelectableChanged()}));if(_getIsRowSelectable(this.gos)||"function"==typeof this.getIsVisible()){const e=this.showOrHideSelect.bind(this);this.addManagedEventListeners({displayedColumnsChanged:e}),this.addManagedListeners(this.rowNode,{dataChanged:e,cellChanged:e}),this.showOrHideSelect()}this.eCheckbox.getInputElement().setAttribute("tabindex","-1")}showOrHideSelect(){const{column:e,rowNode:t,overrides:o,gos:i}=this,s=t.selectable,n=this.getIsVisible();let r;if("function"==typeof n){const i=o?.callbackParams;if(e){const o=e.createColumnFunctionCallbackParams(t);r=n({...i,...o})}else r=n({...i,node:t,data:t.data})}else r=n??!1;const a=s&&!r||!s&&r,l=s||r,d=i.get("rowSelection"),c=d&&"string"!=typeof d?!_getHideDisabledCheckboxes(d):!!e?.getColDef().showDisabledCheckboxes;this.setVisible(l&&(!a||c)),this.setDisplayed(l&&(!a||c)),l&&this.eCheckbox.setDisabled(a),o?.removeHidden&&this.setDisplayed(l)}getIsVisible(){const e=this.overrides;if(e)return e.isVisible;const t=this.gos.get("rowSelection");return t&&"string"!=typeof t?_getCheckboxes(t):this.column?.getColDef()?.checkboxSelection}},ko=class extends I{constructor(e){super(),this.column=e,this.cbSelectAllVisible=!1,this.processingEventFromCheckbox=!1}onSpaceKeyDown(e){const t=this.cbSelectAll;t.isDisplayed()&&!t.getGui().contains(_getActiveDomElement(this.beans))&&(e.preventDefault(),t.setValue(!t.getValue()))}getCheckboxGui(){return this.cbSelectAll.getGui()}setComp(e){this.headerCellCtrl=e;const t=this.createManagedBean(new Fo);this.cbSelectAll=t,t.addCss("ag-header-select-all"),_setAriaRole(t.getGui(),"presentation"),this.showOrHideSelectAll();const o=this.updateStateOfCheckbox.bind(this);this.addManagedEventListeners({newColumnsLoaded:()=>this.showOrHideSelectAll(),displayedColumnsChanged:this.onDisplayedColumnsChanged.bind(this),selectionChanged:o,paginationChanged:o,modelUpdated:o}),this.addManagedPropertyListener("rowSelection",(({currentValue:e,previousValue:t})=>{const getSelectAll=e=>"string"!=typeof e&&e&&"singleRow"!==e.mode?e.selectAll:void 0;getSelectAll(e)!==getSelectAll(t)&&this.showOrHideSelectAll(),this.updateStateOfCheckbox()})),this.addManagedListeners(t,{fieldValueChanged:this.onCbSelectAll.bind(this)}),t.getInputElement().setAttribute("tabindex","-1"),this.refreshSelectAllLabel()}onDisplayedColumnsChanged(e){this.isAlive()&&this.showOrHideSelectAll("uiColumnMoved"===e.source)}showOrHideSelectAll(e=!1){const t=this.isCheckboxSelection();this.cbSelectAllVisible=t,this.cbSelectAll.setDisplayed(t),t&&(this.checkRightRowModelType("selectAllCheckbox"),this.checkSelectionType("selectAllCheckbox"),this.updateStateOfCheckbox()),this.refreshSelectAllLabel(e)}updateStateOfCheckbox(){if(!this.cbSelectAllVisible||this.processingEventFromCheckbox)return;this.processingEventFromCheckbox=!0;const e=this.getSelectAllMode(),t=this.beans.selectionSvc,o=this.cbSelectAll,i=t.getSelectAllState(e);o.setValue(i);const s=t.hasNodesToSelect(e);o.setDisabled(!s),this.refreshSelectAllLabel(),this.processingEventFromCheckbox=!1}refreshSelectAllLabel(e=!1){const t=this.getLocaleTextFunc(),{headerCellCtrl:o,cbSelectAll:i,cbSelectAllVisible:s}=this,n=i.getValue()?t("ariaChecked","checked"):t("ariaUnchecked","unchecked"),r=t("ariaRowSelectAll","Press Space to toggle all rows selection");o.setAriaDescriptionProperty("selectAll",s?`${r} (${n})`:null),i.setInputAriaLabel(t("ariaHeaderSelection","Column with Header Selection")),e||o.announceAriaDescription()}checkSelectionType(e){return!!_isMultiRowSelection(this.gos)||(_warn(128,{feature:e}),!1)}checkRightRowModelType(e){const{gos:t,rowModel:o}=this.beans;return!(!_isClientSideRowModel(t)&&!_isServerSideRowModel(t))||(_warn(129,{feature:e,rowModel:o.getType()}),!1)}onCbSelectAll(){if(this.processingEventFromCheckbox)return;if(!this.cbSelectAllVisible)return;const e=this.cbSelectAll.getValue(),t=this.getSelectAllMode();let o="uiSelectAll";"currentPage"===t?o="uiSelectAllCurrentPage":"filtered"===t&&(o="uiSelectAllFiltered");const i={source:o,selectAll:t},s=this.beans.selectionSvc;e?s.selectAllRowNodes(i):s.deselectAllRowNodes(i)}isCheckboxSelection(){const{column:e,gos:t,beans:o}=this,i="object"==typeof t.get("rowSelection")?"headerCheckbox":"headerCheckboxSelection";return isCheckboxSelection(o,e)&&this.checkRightRowModelType(i)&&this.checkSelectionType(i)}getSelectAllMode(){const e=_getSelectAll(this.gos,!1);if(e)return e;const{headerCheckboxSelectionCurrentPageOnly:t,headerCheckboxSelectionFilteredOnly:o}=this.column.getColDef();return t?"currentPage":o?"filtered":"all"}destroy(){super.destroy(),this.cbSelectAll=void 0,this.headerCellCtrl=void 0}};function isCheckboxSelection({gos:e,selectionColSvc:t},o){const i=e.get("rowSelection"),s=o.getColDef(),{headerCheckboxSelection:n}=s;let r=!1;if("object"==typeof i){const e=isColumnSelectionCol(o),s=isColumnGroupAutoCol(o);("autoGroupColumn"===_getCheckboxLocation(i)&&s||e&&t?.isSelectionColumnEnabled())&&(r=_getHeaderCheckbox(i))}else r="function"==typeof n?n(_addGridCommonParams(e,{column:o,colDef:s})):!!n;return r}var Lo=class extends I{postConstruct(){const{gos:e,beans:t}=this;this.selectionCtx=new class{constructor(e,t){this.rowModel=e,this.pinnedRowModel=t,this.selectAll=!1,this.rootId=null,this.endId=null,this.cachedRange=[]}reset(){this.rootId=null,this.endId=null,this.cachedRange.length=0}setRoot(e){this.rootId=e.id,this.endId=null,this.cachedRange.length=0}setEndRange(e){this.endId=e.id,this.cachedRange.length=0}getRange(){if(0===this.cachedRange.length){const e=this.getRoot(),t=this.getEnd();if(null==e||null==t)return this.cachedRange;this.cachedRange=this.getNodesInRange(e,t)??[]}return this.cachedRange}isInRange(e){return null!==this.rootId&&this.getRange().some((t=>t.id===e.id))}getRoot(e){return this.rootId?this.getRowNode(this.rootId):e?(this.setRoot(e),e):void 0}getEnd(){if(this.endId)return this.getRowNode(this.endId)}getRowNode(e){let t;const{rowModel:o,pinnedRowModel:i}=this;return t??(t=o.getRowNode(e)),i?.isManual()&&(t??(t=i.getPinnedRowById(e,"top")),t??(t=i.getPinnedRowById(e,"bottom"))),t}truncate(e){const t=this.getRange();if(0===t.length)return{keep:[],discard:[]};const o=t[0].id===this.rootId,i=t.findIndex((t=>t.id===e.id));if(i>-1){const s=t.slice(0,i),n=t.slice(i+1);return this.setEndRange(e),o?{keep:s,discard:n}:{keep:n,discard:s}}return{keep:t,discard:[]}}extend(e,t=!1){const o=this.getRoot();if(null==o){const o=this.getRange().slice();return t&&e.depthFirstSearch((e=>!e.group&&o.push(e))),o.push(e),this.setRoot(e),{keep:o,discard:[]}}const i=this.getNodesInRange(o,e);if(!i)return this.setRoot(e),{keep:[e],discard:[]};if(i.find((e=>e.id===this.endId)))return this.setEndRange(e),{keep:this.getRange(),discard:[]};{const t=this.getRange().slice();return this.setEndRange(e),{keep:this.getRange(),discard:t}}}getNodesInRange(e,t){const{pinnedRowModel:o,rowModel:i}=this;if(!o?.isManual())return i.getNodesInRangeForSelection(e,t);if("top"===e.rowPinned&&!t.rowPinned)return _getNodesInRangeForSelection(o,"top",e,void 0).concat(i.getNodesInRangeForSelection(i.getRow(0),t)??[]);if("bottom"===e.rowPinned&&!t.rowPinned){const s=_getNodesInRangeForSelection(o,"bottom",void 0,e),n=i.getRowCount(),r=i.getRow(n-1);return(i.getNodesInRangeForSelection(t,r)??[]).concat(s)}if(!e.rowPinned&&!t.rowPinned)return i.getNodesInRangeForSelection(e,t);if("top"===e.rowPinned&&"top"===t.rowPinned)return _getNodesInRangeForSelection(o,"top",e,t);if("bottom"===e.rowPinned&&"top"===t.rowPinned){const s=_getNodesInRangeForSelection(o,"top",t,void 0),n=_getNodesInRangeForSelection(o,"bottom",void 0,e),r=i.getRow(0),a=i.getRow(i.getRowCount()-1);return s.concat(i.getNodesInRangeForSelection(r,a)??[]).concat(n)}if(!e.rowPinned&&"top"===t.rowPinned)return _getNodesInRangeForSelection(o,"top",t,void 0).concat(i.getNodesInRangeForSelection(i.getRow(0),e)??[]);if("top"===e.rowPinned&&"bottom"===t.rowPinned){const s=_getNodesInRangeForSelection(o,"top",e,void 0),n=_getNodesInRangeForSelection(o,"bottom",void 0,t),r=i.getRow(0),a=i.getRow(i.getRowCount()-1);return s.concat(i.getNodesInRangeForSelection(r,a)??[]).concat(n)}if("bottom"===e.rowPinned&&"bottom"===t.rowPinned)return _getNodesInRangeForSelection(o,"bottom",e,t);if(!e.rowPinned&&"bottom"===t.rowPinned){const s=_getNodesInRangeForSelection(o,"bottom",void 0,t),n=i.getRow(i.getRowCount());return(i.getNodesInRangeForSelection(e,n)??[]).concat(s)}return null}}(t.rowModel,t.pinnedRowModel),this.addManagedPropertyListeners(["isRowSelectable","rowSelection"],(()=>{const t=_getIsRowSelectable(e);t!==this.isRowSelectable&&(this.isRowSelectable=t,this.updateSelectable())})),this.isRowSelectable=_getIsRowSelectable(e),this.addManagedEventListeners({cellValueChanged:e=>this.updateRowSelectable(e.node),rowNodeDataChanged:e=>this.updateRowSelectable(e.node)})}destroy(){super.destroy(),this.selectionCtx.reset()}createCheckboxSelectionComponent(){return new Io}createSelectAllFeature(e){if(isCheckboxSelection(this.beans,e))return new ko(e)}isMultiSelect(){return _isMultiRowSelection(this.gos)}onRowCtrlSelected(e,t,o){const i=!!e.rowNode.isSelected();e.forEachGui(o,(e=>{e.rowComp.toggleCss("ag-row-selected",i);const o=e.element;_setAriaSelected(o,i);o.contains(_getActiveDomElement(this.beans))&&t(e)}))}announceAriaRowSelection(e){if(this.isRowSelectionBlocked(e))return;const t=e.isSelected();if(!e.selectable)return;const o=this.getLocaleTextFunc()(t?"ariaRowDeselect":"ariaRowSelect",`Press SPACE to ${t?"deselect":"select"} this row`);this.beans.ariaAnnounce?.announceValue(o,"rowSelection")}isRowSelectionBlocked(e){return!e.selectable||e.rowPinned&&!_isManualPinnedRow(e)||!_isRowSelection(this.gos)}updateRowSelectable(e,t){const o=e.rowPinned&&e.pinnedSibling?e.pinnedSibling.selectable:this.isRowSelectable?.(e)??!0;return this.setRowSelectable(e,o,t),o}setRowSelectable(e,t,o){if(e.selectable!==t){if(e.selectable=t,e.dispatchRowEvent("selectableChanged"),o)return;if(_getGroupSelectsDescendants(this.gos)){const t=this.calculateSelectedFromChildren(e);return void this.setNodesSelected({nodes:[e],newValue:t??!1,source:"selectableChanged"})}e.isSelected()&&!e.selectable&&this.setNodesSelected({nodes:[e],newValue:!1,source:"selectableChanged"})}}calculateSelectedFromChildren(e){let t=!1,o=!1;if(!e.childrenAfterGroup?.length)return e.selectable?e.__selected:null;for(let i=0;i<e.childrenAfterGroup.length;i++){const s=e.childrenAfterGroup[i];let n=s.isSelected();if(!s.selectable){const e=this.calculateSelectedFromChildren(s);if(null===e)continue;n=e}switch(n){case!0:t=!0;break;case!1:o=!0;break;default:return}}return t&&o?void 0:!!t||!o&&(e.selectable?e.__selected:null)}selectRowNode(e,t,o,i="api"){const s=!e.selectable&&t,n=e.__selected===t;if(s||n)return!1;e.__selected=t,e.dispatchRowEvent("rowSelected");const r=e.sibling;r&&r.footer&&r.__localEventService&&r.dispatchRowEvent("rowSelected");const a=e.pinnedSibling;return a&&a.rowPinned&&a.__localEventService&&a.dispatchRowEvent("rowSelected"),this.eventSvc.dispatchEvent({..._createGlobalRowEvent(e,this.gos,"rowSelected"),event:o||null,source:i}),!0}isCellCheckboxSelection(e,t){const o=this.gos.get("rowSelection");if(o&&"string"!=typeof o){const i=isColumnSelectionCol(e)&&_getCheckboxes(o);return e.isColumnFunc(t,i)}return e.isColumnFunc(t,e.colDef.checkboxSelection)}inferNodeSelections(e,t,o,i){const{gos:s,selectionCtx:n}=this,r=e.isSelected(),a=_getGroupSelectsDescendants(s),l=function _getEnableSelection(e){const t=_getEnableClickSelection(e);return!0===t||"enableSelection"===t}(s),d=function _getEnableDeselection(e){const t=_getEnableClickSelection(e);return!0===t||"enableDeselection"===t}(s),c=this.isMultiSelect(),h="rowClicked"===i;if(h&&!l&&!d)return null;if(t&&o&&c){const t=n.getRoot();if(t){if(t.isSelected()){const t=n.isInRange(e)?n.truncate(e):n.extend(e,a);return{deselect:t.discard,select:t.keep,reset:!1}}return{select:[],deselect:n.extend(e,a).keep,reset:!1}}return null}if(t&&c){const t=n.selectAll?this.beans.rowModel.getRow(0):void 0,o=n.getRoot(t),i=n.isInRange(e)?n.truncate(e):n.extend(e,a);return{select:i.keep,deselect:i.discard,reset:n.selectAll||!(!o||o.isSelected())}}if(o){if(h){const t=!r,o=!t&&!d;return t&&!l||o?null:(n.setRoot(e),{node:e,newValue:t,clearSelection:!1})}return n.setRoot(e),{node:e,newValue:!r,clearSelection:!c}}{n.setRoot(e);const t=function _getEnableSelectionWithoutKeys(e){const t=e.get("rowSelection");return"string"==typeof t?e.get("rowMultiSelectWithClick"):t?.enableSelectionWithoutKeys??!1}(s),o="filteredDescendants"===_getGroupSelection(s),i=h&&(!t||!l);if(o&&void 0===r&&_isClientSideRowModel(s))return{node:e,newValue:!1,clearSelection:!c||i};if(h){const o=r?!t:l,s=o&&!l,n=!o&&!d;return o===r&&!i||s||n?null:{node:e,newValue:o,clearSelection:!c||i,keepDescendants:e.group&&a}}return{node:e,newValue:!r,clearSelection:!c||i}}}},Go=class extends Fo{constructor(e){super(e,"ag-radio-button","radio")}isSelected(){return this.eInput.checked}toggle(){this.eInput.disabled||this.isSelected()||this.setValue(!0)}addInputListeners(){super.addInputListeners(),this.addManagedEventListeners({checkboxChanged:this.onChange.bind(this)})}onChange(e){const t=this.eInput;e.selected&&e.name&&t.name&&t.name===e.name&&e.id&&t.id!==e.id&&this.setValue(!1,!0)}},No=class extends Ro{constructor(e,t="ag-text-field",o="text"){super(e,t,o)}postConstruct(){super.postConstruct(),this.config.allowedCharPattern&&this.preventDisallowedCharacters()}setValue(e,t){const o=this.eInput;return o.value!==e&&(o.value=_exists(e)?e:""),super.setValue(e,t)}setStartValue(e){this.setValue(e,!0)}preventDisallowedCharacters(){const e=new RegExp(`[${this.config.allowedCharPattern}]`);this.addManagedListeners(this.eInput,{keydown:t=>{_isEventFromPrintableCharacter(t)&&t.key&&!e.test(t.key)&&t.preventDefault()},paste:t=>{const o=t.clipboardData?.getData("text");o&&o.split("").some((t=>!e.test(t)))&&t.preventDefault()}})}},_o={selector:"AG-INPUT-TEXT-FIELD",component:No},Oo={selector:"AG-INPUT-TEXT-AREA",component:class extends Ro{constructor(e){super(e,"ag-text-area",null,"textarea")}setValue(e,t){const o=super.setValue(e,t);return this.eInput.value=e,o}setCols(e){return this.eInput.cols=e,this}setRows(e){return this.eInput.rows=e,this}}},Ho=class extends No{constructor(e){super(e,"ag-number-field","number")}postConstruct(){super.postConstruct();const e=this.eInput;this.addManagedListeners(e,{blur:()=>{const t=parseFloat(e.value),o=isNaN(t)?"":this.normalizeValue(t.toString());this.value!==o&&this.setValue(o)},wheel:this.onWheel.bind(this)}),e.step="any";const{precision:t,min:o,max:i,step:s}=this.config;"number"==typeof t&&this.setPrecision(t),"number"==typeof o&&this.setMin(o),"number"==typeof i&&this.setMax(i),"number"==typeof s&&this.setStep(s)}onWheel(e){_getActiveDomElement(this.beans)===this.eInput&&e.preventDefault()}normalizeValue(e){return""===e?"":(null!=this.precision&&(e=this.adjustPrecision(e)),e)}adjustPrecision(e,t){const o=this.precision;if(null==o)return e;if(t){const t=parseFloat(e).toFixed(o);return parseFloat(t).toString()}const i=String(e).split(".");if(i.length>1){if(i[1].length<=o)return e;if(o>0)return`${i[0]}.${i[1].slice(0,o)}`}return i[0]}setMin(e){return this.min===e||(this.min=e,_addOrRemoveAttribute(this.eInput,"min",e)),this}setMax(e){return this.max===e||(this.max=e,_addOrRemoveAttribute(this.eInput,"max",e)),this}setPrecision(e){return this.precision=e,this}setStep(e){return this.step===e||(this.step=e,_addOrRemoveAttribute(this.eInput,"step",e)),this}setValue(e,t){return this.setValueOrInputValue((e=>super.setValue(e,t)),(()=>this),e)}setStartValue(e){return this.setValueOrInputValue((e=>super.setValue(e,!0)),(e=>{this.eInput.value=e}),e)}setValueOrInputValue(e,t,o){if(_exists(o)){let i=this.isScientificNotation(o);if(i&&this.eInput.validity.valid)return e(o);if(!i){i=(o=this.adjustPrecision(o))!=this.normalizeValue(o)}if(i)return t(o)}return e(o)}getValue(){const e=this.eInput;if(!e.validity.valid)return;const t=e.value;return this.isScientificNotation(t)?this.adjustPrecision(t,!0):super.getValue()}isScientificNotation(e){return"string"==typeof e&&e.includes("e")}},Vo={selector:"AG-INPUT-NUMBER-FIELD",component:Ho},Bo={selector:"AG-INPUT-DATE-FIELD",component:class extends No{constructor(e){super(e,"ag-date-field","date")}postConstruct(){super.postConstruct();const e=_isBrowserSafari();this.addManagedListeners(this.eInput,{wheel:this.onWheel.bind(this),mousedown:()=>{this.isDisabled()||e||this.eInput.focus()}}),this.eInput.step="any"}onWheel(e){_getActiveDomElement(this.beans)===this.eInput&&e.preventDefault()}setMin(e){const t=e instanceof Date?_serialiseDate(e??null,!!this.includeTime)??void 0:e;return this.min===t||(this.min=t,_addOrRemoveAttribute(this.eInput,"min",t)),this}setMax(e){const t=e instanceof Date?_serialiseDate(e??null,!!this.includeTime)??void 0:e;return this.max===t||(this.max=t,_addOrRemoveAttribute(this.eInput,"max",t)),this}setStep(e){return this.step===e||(this.step=e,_addOrRemoveAttribute(this.eInput,"step",e)),this}setIncludeTime(e){return this.includeTime===e||(this.includeTime=e,super.setInputType(e?"datetime-local":"date"),e&&this.setStep(1)),this}getDate(){if(this.eInput.validity.valid)return _parseDateTimeFromString(this.getValue())??void 0}setDate(e,t){this.setValue(_serialiseDate(e??null,this.includeTime),t)}}},zo=class extends Q{constructor(e="default",t=!1){super({tag:"div",cls:`ag-list ag-${e}-list`}),this.cssIdentifier=e,this.unFocusable=t,this.activeClass="ag-active-item",this.options=[],this.itemEls=[]}postConstruct(){const e=this.getGui();this.addManagedElementListeners(e,{mouseleave:()=>this.clearHighlighted()}),this.unFocusable||this.addManagedElementListeners(e,{keydown:this.handleKeyDown.bind(this)})}handleKeyDown(e){const t=e.key;switch(t){case xe:if(this.highlightedEl){const e=this.itemEls.indexOf(this.highlightedEl);this.setValueByIndex(e)}else this.setValue(this.getValue());break;case Le:case Ie:e.preventDefault(),this.navigate(t);break;case Oe:case _e:case He:case Ve:e.preventDefault(),this.navigateToPage(t)}}navigate(e){const t=e===Le;let o;const{itemEls:i,highlightedEl:s}=this;if(s){let e=i.indexOf(s)+(t?1:-1);e=Math.min(Math.max(e,0),i.length-1),o=i[e]}else o=i[t?0:i.length-1];this.highlightItem(o)}navigateToPage(e){const{itemEls:t,highlightedEl:o}=this;if(!o||0===t.length)return;const i=t.indexOf(o),s=this.options.length-1,n=t[0].clientHeight,r=Math.floor(this.getGui().clientHeight/n);let a=-1;e===He?a=0:e===Ve?a=s:e===Oe?a=Math.min(i+r,s):e===_e&&(a=Math.max(i-r,0)),-1!==a&&this.highlightItem(t[a])}addOptions(e){return e.forEach((e=>this.addOption(e))),this}addOption(e){const{value:t,text:o}=e,i=o??t;return this.options.push({value:t,text:i}),this.renderOption(t,i),this.updateIndices(),this}clearOptions(){this.options=[],this.reset(!0),this.itemEls.forEach((e=>{_removeFromParent(e)})),this.itemEls=[],this.refreshAriaRole()}refreshAriaRole(){_setAriaRole(this.getGui(),0===this.options.length?"presentation":"listbox")}updateIndices(){const e=this.getGui().querySelectorAll(".ag-list-item");this.refreshAriaRole(),e.forEach(((t,o)=>{!function _setAriaPosInSet(e,t){_setAriaAttribute(e,"posinset",t)}(t,o+1),function _setAriaSetSize(e,t){_setAriaAttribute(e,"setsize",t)}(t,e.length)}))}renderOption(e,t){const o=_createElement({tag:"div",cls:`ag-list-item ag-${this.cssIdentifier}-list-item`,attrs:{role:"option"}}),i=_createElement({tag:"span",children:t});o.appendChild(i),this.unFocusable||(o.tabIndex=-1),this.itemEls.push(o),this.addManagedListeners(o,{mouseover:()=>this.highlightItem(o),mousedown:t=>{t.preventDefault(),t.stopPropagation(),this.setValue(e)}}),this.createOptionalManagedBean(this.beans.registry.createDynamicBean("tooltipFeature",!1,{getTooltipValue:()=>t,getGui:()=>o,getLocation:()=>"UNKNOWN",shouldDisplayTooltip:()=>i.scrollWidth>i.clientWidth})),this.getGui().appendChild(o)}setValue(e,t){if(this.value===e)return this.fireItemSelected(),this;if(null==e)return this.reset(t),this;const o=this.options.findIndex((t=>t.value===e));if(-1!==o){const e=this.options[o];this.value=e.value,this.displayValue=e.text,this.highlightItem(this.itemEls[o]),t||this.fireChangeEvent()}return this}setValueByIndex(e){return this.setValue(this.options[e].value)}getValue(){return this.value}getDisplayValue(){return this.displayValue}refreshHighlighted(){this.clearHighlighted();const e=this.options.findIndex((e=>e.value===this.value));-1!==e&&this.highlightItem(this.itemEls[e])}reset(e){this.value=null,this.displayValue=null,this.clearHighlighted(),e||this.fireChangeEvent()}highlightItem(e){if(!_isVisible(e))return;this.clearHighlighted(),this.highlightedEl=e,e.classList.add(this.activeClass),_setAriaSelected(e,!0);const t=this.getGui(),{scrollTop:o,clientHeight:i}=t,{offsetTop:s,offsetHeight:n}=e;(s+n>o+i||s<o)&&e.scrollIntoView({block:"nearest"}),this.unFocusable||e.focus()}clearHighlighted(){const e=this.highlightedEl;e&&_isVisible(e)&&(e.classList.remove(this.activeClass),_setAriaSelected(e,!1),this.highlightedEl=null)}fireChangeEvent(){this.dispatchLocalEvent({type:"fieldValueChanged"}),this.fireItemSelected()}fireItemSelected(){this.dispatchLocalEvent({type:"selectedItem"})}},Wo={tag:"div",cls:"ag-picker-field",role:"presentation",children:[{tag:"div",ref:"eLabel"},{tag:"div",ref:"eWrapper",cls:"ag-wrapper ag-picker-field-wrapper ag-picker-collapsed",children:[{tag:"div",ref:"eDisplayField",cls:"ag-picker-field-display"},{tag:"div",ref:"eIcon",cls:"ag-picker-field-icon",attrs:{"aria-hidden":"true"}}]}]},Uo=class extends yo{constructor(e){if(super(e,e?.template||Wo,e?.agComponents||[],e?.className),this.isPickerDisplayed=!1,this.skipClick=!1,this.pickerGap=4,this.hideCurrentPicker=null,this.eLabel=q,this.eWrapper=q,this.eDisplayField=q,this.eIcon=q,this.registerCSS(".ag-picker-field-display{flex:1 1 auto}.ag-picker-field{align-items:center;display:flex}.ag-picker-field-icon{border:0;cursor:pointer;display:flex;margin:0;padding:0}.ag-picker-field-wrapper{background-color:var(--ag-picker-button-background-color);border:var(--ag-picker-button-border);border-radius:5px;min-height:max(var(--ag-list-item-height),calc(var(--ag-spacing)*4));overflow:hidden;&:where(.invalid){background-color:var(--ag-input-invalid-background-color);border:var(--ag-input-invalid-border);color:var(--ag-input-invalid-text-color)}&:where(.ag-picker-has-focus:not(.invalid)),&:where(:focus-within:not(.invalid)){background-color:var(--ag-picker-button-focus-background-color);border:var(--ag-picker-button-focus-border);box-shadow:var(--ag-focus-shadow)}&:disabled{opacity:.5}}"),this.ariaRole=e?.ariaRole,this.onPickerFocusIn=this.onPickerFocusIn.bind(this),this.onPickerFocusOut=this.onPickerFocusOut.bind(this),!e)return;const{pickerGap:t,maxPickerHeight:o,variableWidth:i,minPickerWidth:s,maxPickerWidth:n}=e;null!=t&&(this.pickerGap=t),this.variableWidth=!!i,null!=o&&this.setPickerMaxHeight(o),null!=s&&this.setPickerMinWidth(s),null!=n&&this.setPickerMaxWidth(n)}postConstruct(){super.postConstruct(),this.setupAria();const e=`ag-${this.getCompId()}-display`;this.eDisplayField.setAttribute("id",e);const t=this.getAriaElement();this.addManagedElementListeners(t,{keydown:this.onKeyDown.bind(this)}),this.addManagedElementListeners(this.eLabel,{mousedown:this.onLabelOrWrapperMouseDown.bind(this)}),this.addManagedElementListeners(this.eWrapper,{mousedown:this.onLabelOrWrapperMouseDown.bind(this)});const{pickerIcon:o,inputWidth:i}=this.config;if(o){const e=_createIconNoSpan(o,this.beans);e&&this.eIcon.appendChild(e)}null!=i&&this.setInputWidth(i)}setupAria(){const e=this.getAriaElement();e.setAttribute("tabindex",this.gos.get("tabIndex").toString()),_setAriaExpanded(e,!1),this.ariaRole&&_setAriaRole(e,this.ariaRole)}onLabelOrWrapperMouseDown(e){if(e){const t=this.getFocusableElement();if(t!==this.eWrapper&&e?.target===t)return;e.preventDefault(),this.getFocusableElement().focus()}this.skipClick?this.skipClick=!1:this.isDisabled()||(this.isPickerDisplayed?this.hidePicker():this.showPicker())}onKeyDown(e){switch(e.key){case Ie:case Le:case xe:case Te:e.preventDefault(),this.onLabelOrWrapperMouseDown();break;case Me:this.isPickerDisplayed&&(e.preventDefault(),e.stopPropagation(),this.hideCurrentPicker&&this.hideCurrentPicker())}}showPicker(){this.isPickerDisplayed=!0,this.pickerComponent||(this.pickerComponent=this.createPickerComponent());const e=this.pickerComponent.getGui();e.addEventListener("focusin",this.onPickerFocusIn),e.addEventListener("focusout",this.onPickerFocusOut),this.hideCurrentPicker=this.renderAndPositionPicker(),this.toggleExpandedStyles(!0)}renderAndPositionPicker(){const e=this.pickerComponent.getGui();this.gos.get("suppressScrollWhenPopupsAreOpen")||([this.destroyMouseWheelFunc]=this.addManagedEventListeners({bodyScroll:()=>{this.hidePicker()}}));const t=this.getLocaleTextFunc(),{config:{pickerAriaLabelKey:o,pickerAriaLabelValue:i,modalPicker:s=!0},maxPickerHeight:n,minPickerWidth:r,maxPickerWidth:a,variableWidth:l,beans:d,eWrapper:c}=this,h={modal:s,eChild:e,closeOnEsc:!0,closedCallback:()=>{const e=_isNothingFocused(d);this.beforeHidePicker(),e&&this.isAlive()&&this.getFocusableElement().focus()},ariaLabel:t(o,i),anchorToElement:c};e.style.position="absolute";const u=d.popupSvc,g=u.addPopup(h);l?(r&&(e.style.minWidth=r),e.style.width=_formatSize(_getAbsoluteWidth(c)),a&&(e.style.maxWidth=a)):_setElementWidth(e,a??_getAbsoluteWidth(c));const p=n??`${_getInnerHeight(u.getPopupParent())}px`;return e.style.setProperty("max-height",p),this.alignPickerToComponent(),g.hideFunc}alignPickerToComponent(){if(!this.pickerComponent)return;const{pickerGap:e,config:{pickerType:t},beans:{popupSvc:o,gos:i},eWrapper:s,pickerComponent:n}=this,r=i.get("enableRtl")?"right":"left";o.positionPopupByComponent({type:t,eventSource:s,ePopup:n.getGui(),position:"under",alignSide:r,keepWithinBounds:!0,nudgeY:e})}beforeHidePicker(){this.destroyMouseWheelFunc&&(this.destroyMouseWheelFunc(),this.destroyMouseWheelFunc=void 0),this.toggleExpandedStyles(!1);const e=this.pickerComponent.getGui();e.removeEventListener("focusin",this.onPickerFocusIn),e.removeEventListener("focusout",this.onPickerFocusOut),this.isPickerDisplayed=!1,this.pickerComponent=void 0,this.hideCurrentPicker=null}toggleExpandedStyles(e){if(!this.isAlive())return;_setAriaExpanded(this.getAriaElement(),e);const t=this.eWrapper.classList;t.toggle("ag-picker-expanded",e),t.toggle("ag-picker-collapsed",!e)}onPickerFocusIn(){this.togglePickerHasFocus(!0)}onPickerFocusOut(e){this.pickerComponent?.getGui().contains(e.relatedTarget)||this.togglePickerHasFocus(!1)}togglePickerHasFocus(e){this.pickerComponent&&this.eWrapper.classList.toggle("ag-picker-has-focus",e)}hidePicker(){this.hideCurrentPicker&&(this.hideCurrentPicker(),this.dispatchLocalEvent({type:"pickerHidden"}))}setInputWidth(e){return _setElementWidth(this.eWrapper,e),this}getFocusableElement(){return this.eWrapper}setPickerGap(e){return this.pickerGap=e,this}setPickerMinWidth(e){return"number"==typeof e&&(e=`${e}px`),this.minPickerWidth=null==e?void 0:e,this}setPickerMaxWidth(e){return"number"==typeof e&&(e=`${e}px`),this.maxPickerWidth=null==e?void 0:e,this}setPickerMaxHeight(e){return"number"==typeof e&&(e=`${e}px`),this.maxPickerHeight=null==e?void 0:e,this}destroy(){this.hidePicker(),super.destroy()}},$o=class extends Uo{constructor(e){super({pickerAriaLabelKey:"ariaLabelSelectField",pickerAriaLabelValue:"Select Field",pickerType:"ag-list",className:"ag-select",pickerIcon:"selectOpen",ariaRole:"combobox",...e}),this.registerCSS(".ag-select{align-items:center;display:flex;&.ag-disabled{opacity:.5}}:where(.ag-select){.ag-picker-field-wrapper{cursor:default}&.ag-disabled .ag-picker-field-wrapper:focus{box-shadow:none}&:not(.ag-cell-editor,.ag-label-align-top){min-height:var(--ag-list-item-height)}.ag-picker-field-display{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ag-picker-field-icon{align-items:center;display:flex}}:where(.ag-ltr) :where(.ag-select){.ag-picker-field-wrapper{padding-left:calc(var(--ag-cell-horizontal-padding)/2);padding-right:var(--ag-spacing)}}:where(.ag-rtl) :where(.ag-select){.ag-picker-field-wrapper{padding-left:var(--ag-spacing);padding-right:calc(var(--ag-cell-horizontal-padding)/2)}}")}postConstruct(){this.tooltipFeature=this.createOptionalManagedBean(this.beans.registry.createDynamicBean("tooltipFeature",!1,{shouldDisplayTooltip:_isElementOverflowingCallback((()=>this.eDisplayField)),getGui:()=>this.getGui()})),super.postConstruct(),this.createListComponent(),this.eWrapper.tabIndex=this.gos.get("tabIndex");const{options:e,value:t,placeholder:o}=this.config;null!=e&&this.addOptions(e),null!=t&&this.setValue(t,!0),o&&null==t&&(this.eDisplayField.textContent=o),this.addManagedElementListeners(this.eWrapper,{focusout:this.onWrapperFocusOut.bind(this)})}onWrapperFocusOut(e){this.eWrapper.contains(e.relatedTarget)||this.hidePicker()}createListComponent(){const e=this.createBean(new zo("select",!0));this.listComponent=e,e.setParentComponent(this);const t=e.getAriaElement(),o=`ag-select-list-${e.getCompId()}`;t.setAttribute("id",o),_setAriaControlsAndLabel(this.getAriaElement(),t),e.addManagedElementListeners(e.getGui(),{mousedown:e=>{e?.preventDefault()}}),e.addManagedListeners(e,{selectedItem:()=>{this.hidePicker(),this.dispatchLocalEvent({type:"selectedItem"})},fieldValueChanged:()=>{this.listComponent&&(this.setValue(this.listComponent.getValue(),!1,!0),this.hidePicker())}})}createPickerComponent(){return this.listComponent}onKeyDown(e){const{key:t}=e;switch(t===De&&this.hidePicker(),t){case xe:case Ie:case Le:case _e:case Oe:case He:case Ve:e.preventDefault(),this.isPickerDisplayed?this.listComponent?.handleKeyDown(e):super.onKeyDown(e);break;case Me:super.onKeyDown(e);break;case Te:this.isPickerDisplayed?e.preventDefault():super.onKeyDown(e)}}showPicker(){const e=this.listComponent;e&&(super.showPicker(),e.refreshHighlighted())}addOptions(e){return e.forEach((e=>this.addOption(e))),this}addOption(e){return this.listComponent.addOption(e),this}clearOptions(){return this.listComponent?.clearOptions(),this.setValue(void 0,!0),this}setValue(e,t,o){const{listComponent:i,config:{placeholder:s},eDisplayField:n,tooltipFeature:r}=this;if(this.value===e||!i)return this;o||i.setValue(e,!0);if(i.getValue()===this.getValue())return this;let a=i.getDisplayValue();return null==a&&s&&(a=s),n.textContent=a,r?.setTooltipAndRefresh(a??null),super.setValue(e,t)}destroy(){this.listComponent=this.destroyBean(this.listComponent),super.destroy()}},Ko={selector:"AG-SELECT",component:$o},jo={TAB_GUARD:"ag-tab-guard",TAB_GUARD_TOP:"ag-tab-guard-top",TAB_GUARD_BOTTOM:"ag-tab-guard-bottom"},qo=class extends I{constructor(e){super(),this.skipTabGuardFocus=!1,this.forcingFocusOut=!1,this.allowFocus=!1;const{comp:t,eTopGuard:o,eBottomGuard:i,focusTrapActive:s,forceFocusOutWhenTabGuardsAreEmpty:n,isFocusableContainer:r,focusInnerElement:a,onFocusIn:l,onFocusOut:d,shouldStopEventPropagation:c,onTabKeyDown:h,handleKeyDown:u,isEmpty:g,eFocusableElement:p}=e;this.comp=t,this.eTopGuard=o,this.eBottomGuard=i,this.providedFocusInnerElement=a,this.eFocusableElement=p,this.focusTrapActive=!!s,this.forceFocusOutWhenTabGuardsAreEmpty=!!n,this.isFocusableContainer=!!r,this.providedFocusIn=l,this.providedFocusOut=d,this.providedShouldStopEventPropagation=c,this.providedOnTabKeyDown=h,this.providedHandleKeyDown=u,this.providedIsEmpty=g}postConstruct(){this.createManagedBean(new Dt(this.eFocusableElement,{shouldStopEventPropagation:()=>this.shouldStopEventPropagation(),onTabKeyDown:e=>this.onTabKeyDown(e),handleKeyDown:e=>this.handleKeyDown(e),onFocusIn:e=>this.onFocusIn(e),onFocusOut:e=>this.onFocusOut(e)})),this.activateTabGuards(),[this.eTopGuard,this.eBottomGuard].forEach((e=>this.addManagedElementListeners(e,{focus:this.onFocus.bind(this)})))}handleKeyDown(e){this.providedHandleKeyDown&&this.providedHandleKeyDown(e)}tabGuardsAreActive(){return!!this.eTopGuard&&this.eTopGuard.hasAttribute("tabIndex")}shouldStopEventPropagation(){return!!this.providedShouldStopEventPropagation&&this.providedShouldStopEventPropagation()}activateTabGuards(){if(this.forcingFocusOut)return;const e=this.gos.get("tabIndex");this.comp.setTabIndex(e.toString())}deactivateTabGuards(){this.comp.setTabIndex()}onFocus(e){if(this.isFocusableContainer&&!this.eFocusableElement.contains(e.relatedTarget)&&!this.allowFocus)return void this.findNextElementOutsideAndFocus(e.target===this.eBottomGuard);if(this.skipTabGuardFocus)return void(this.skipTabGuardFocus=!1);if(this.forceFocusOutWhenTabGuardsAreEmpty){if(this.providedIsEmpty?this.providedIsEmpty():0===_findFocusableElements(this.eFocusableElement,".ag-tab-guard").length)return void this.findNextElementOutsideAndFocus(e.target===this.eBottomGuard)}if(this.isFocusableContainer&&this.eFocusableElement.contains(e.relatedTarget))return;const t=e.target===this.eBottomGuard;!(this.providedFocusInnerElement?this.providedFocusInnerElement(t):this.focusInnerElement(t))&&this.forceFocusOutWhenTabGuardsAreEmpty&&this.findNextElementOutsideAndFocus(e.target===this.eBottomGuard)}findNextElementOutsideAndFocus(e){const t=_findFocusableElements(_getDocument(this.beans).body,null,!0),o=t.indexOf(e?this.eTopGuard:this.eBottomGuard);if(-1===o)return;let i,s;e?(i=0,s=o):(i=o+1,s=t.length);const n=t.slice(i,s),r=this.gos.get("tabIndex");n.sort(((e,t)=>{const o=parseInt(e.getAttribute("tabindex")||"0"),i=parseInt(t.getAttribute("tabindex")||"0");return i===r?1:o===r?-1:0===o?1:0===i?-1:o-i})),n[e?n.length-1:0]?.focus()}onFocusIn(e){this.focusTrapActive||this.forcingFocusOut||(this.providedFocusIn&&this.providedFocusIn(e),this.isFocusableContainer||this.deactivateTabGuards())}onFocusOut(e){this.focusTrapActive||(this.providedFocusOut&&this.providedFocusOut(e),this.eFocusableElement.contains(e.relatedTarget)||this.activateTabGuards())}onTabKeyDown(e){if(this.providedOnTabKeyDown)return void this.providedOnTabKeyDown(e);if(this.focusTrapActive)return;if(e.defaultPrevented)return;const t=this.tabGuardsAreActive();t&&this.deactivateTabGuards();const o=this.getNextFocusableElement(e.shiftKey);t&&setTimeout((()=>this.activateTabGuards()),0),o&&(o.focus(),e.preventDefault())}focusInnerElement(e=!1){const t=_findFocusableElements(this.eFocusableElement);return this.tabGuardsAreActive()&&(t.splice(0,1),t.splice(t.length-1,1)),!!t.length&&(t[e?t.length-1:0].focus({preventScroll:!0}),!0)}getNextFocusableElement(e){return _findNextFocusableElement(this.beans,this.eFocusableElement,!1,e)}forceFocusOutOfContainer(e=!1){if(this.forcingFocusOut)return;const t=e?this.eTopGuard:this.eBottomGuard;this.activateTabGuards(),this.skipTabGuardFocus=!0,this.forcingFocusOut=!0,t.focus(),window.setTimeout((()=>{this.forcingFocusOut=!1,this.activateTabGuards()}))}isTabGuard(e,t){return e===this.eTopGuard&&!t||e===this.eBottomGuard&&(t??!0)}setAllowFocus(e){this.allowFocus=e}},Qo=class extends I{constructor(e){super(),this.comp=e}initialiseTabGuard(e){this.eTopGuard=this.createTabGuard("top"),this.eBottomGuard=this.createTabGuard("bottom"),this.eFocusableElement=this.comp.getFocusableElement();const{eTopGuard:t,eBottomGuard:o,eFocusableElement:i}=this,s=[t,o],n={setTabIndex:e=>{s.forEach((t=>null!=e?t.setAttribute("tabindex",e):t.removeAttribute("tabindex")))}};this.addTabGuards(t,o);const{focusTrapActive:r=!1,onFocusIn:a,onFocusOut:l,focusInnerElement:d,handleKeyDown:c,onTabKeyDown:h,shouldStopEventPropagation:u,isEmpty:g,forceFocusOutWhenTabGuardsAreEmpty:p,isFocusableContainer:m}=e;this.tabGuardCtrl=this.createManagedBean(new qo({comp:n,focusTrapActive:r,eTopGuard:t,eBottomGuard:o,eFocusableElement:i,onFocusIn:a,onFocusOut:l,focusInnerElement:d,handleKeyDown:c,onTabKeyDown:h,shouldStopEventPropagation:u,isEmpty:g,forceFocusOutWhenTabGuardsAreEmpty:p,isFocusableContainer:m}))}getTabGuardCtrl(){return this.tabGuardCtrl}createTabGuard(e){const t=_getDocument(this.beans).createElement("div"),o="top"===e?jo.TAB_GUARD_TOP:jo.TAB_GUARD_BOTTOM;return t.classList.add(jo.TAB_GUARD,o),_setAriaRole(t,"presentation"),t}addTabGuards(e,t){const o=this.eFocusableElement;o.insertAdjacentElement("afterbegin",e),o.insertAdjacentElement("beforeend",t)}removeAllChildrenExceptTabGuards(){const e=[this.eTopGuard,this.eBottomGuard];_clearElement(this.comp.getFocusableElement()),this.addTabGuards(...e)}forceFocusOutOfContainer(e=!1){this.tabGuardCtrl.forceFocusOutOfContainer(e)}appendChild(e,t,o){_isNodeOrElement(t)||(t=t.getGui());const{eBottomGuard:i}=this;i?i.insertAdjacentElement("beforebegin",t):e(t,o)}destroy(){const{eTopGuard:e,eBottomGuard:t}=this;_removeFromParent(e),_removeFromParent(t),super.destroy()}},Yo=class extends Q{initialiseTabGuard(e){this.tabGuardFeature=this.createManagedBean(new Qo(this)),this.tabGuardFeature.initialiseTabGuard(e)}forceFocusOutOfContainer(e=!1){this.tabGuardFeature.forceFocusOutOfContainer(e)}appendChild(e,t){this.tabGuardFeature.appendChild(super.appendChild.bind(this),e,t)}},Zo=class{constructor(e,t=!1){this.DOUBLE_TAP_MILLIS=500,this.destroyFuncs=[],this.touching=!1,this.localEventService=new s,this.preventMouseClick=t;const o=this.onTouchStart.bind(this),i=this.onTouchMove.bind(this),n=this.onTouchEnd.bind(this);e.addEventListener("touchstart",o,{passive:!0}),e.addEventListener("touchmove",i,{passive:!0}),e.addEventListener("touchend",n,{passive:!1}),this.destroyFuncs.push((()=>{e.removeEventListener("touchstart",o,{passive:!0}),e.removeEventListener("touchmove",i,{passive:!0}),e.removeEventListener("touchend",n,{passive:!1})}))}getActiveTouch(e){for(let t=0;t<e.length;t++){if(e[t].identifier===this.touchStart.identifier)return e[t]}return null}addEventListener(e,t){this.localEventService.addEventListener(e,t)}removeEventListener(e,t){this.localEventService.removeEventListener(e,t)}onTouchStart(e){if(this.touching)return;this.touchStart=e.touches[0],this.touching=!0,this.moved=!1;const t=this.touchStart;window.setTimeout((()=>{const o=this.touchStart===t;if(this.touching&&o&&!this.moved){this.moved=!0;const t={type:"longTap",touchStart:this.touchStart,touchEvent:e};this.localEventService.dispatchEvent(t)}}),500)}onTouchMove(e){if(!this.touching)return;const t=this.getActiveTouch(e.touches);if(!t)return;!_areEventsNear(t,this.touchStart,4)&&(this.moved=!0)}onTouchEnd(e){if(this.touching){if(!this.moved){const e={type:"tap",touchStart:this.touchStart};this.localEventService.dispatchEvent(e),this.checkForDoubleTap()}this.preventMouseClick&&e.cancelable&&e.preventDefault(),this.touching=!1}}checkForDoubleTap(){const e=Date.now();if(this.lastTapTime&&this.lastTapTime>0){if(e-this.lastTapTime>this.DOUBLE_TAP_MILLIS){const e={type:"doubleTap",touchStart:this.touchStart};this.localEventService.dispatchEvent(e),this.lastTapTime=null}else this.lastTapTime=e}else this.lastTapTime=e}destroy(){this.destroyFuncs.forEach((e=>e()))}},Jo=class{constructor(e="javascript"){this.frameworkName=e,this.renderingEngine="vanilla",this.batchFrameworkComps=!1,this.wrapIncoming=e=>e(),this.wrapOutgoing=e=>e(),this.baseDocLink=`${y}/${this.frameworkName}-data-grid`,function setValidationDocLink(e){P=e}(this.baseDocLink)}setInterval(e,t){return new Y((o=>{o(window.setInterval(e,t))}))}addEventListener(e,t,o,i){let s={};if("object"==typeof i?s=i:"boolean"==typeof i&&(s={capture:i}),null==s.passive){const e=getPassiveStateForEvent(t);null!=e&&(s.passive=e)}e.addEventListener(t,o,s)}frameworkComponent(e){return null}isFrameworkComponent(e){return!1}getDocLink(e){return`${this.baseDocLink}${e?`/${e}`:""}`}};function createGridApi(e){return{beanName:"gridApi",bean:e.getBean("apiFunctionSvc").api}}var Xo=Object.fromEntries(["licenseManager","environment","eventSvc","gos","paginationAutoPageSizeSvc","apiFunctionSvc","gridApi","registry","agCompUtils","userCompFactory","rowContainerHeight","horizontalResizeSvc","localeSvc","pinnedRowModel","dragSvc","colGroupSvc","visibleCols","popupSvc","selectionSvc","colFilter","quickFilter","filterManager","colModel","headerNavigation","pageBounds","pagination","pageBoundsListener","rowSpanSvc","stickyRowSvc","rowRenderer","expressionSvc","alignedGridsSvc","navigation","valueCache","valueSvc","autoWidthCalc","filterMenuFactory","dragAndDrop","focusSvc","cellNavigation","cellStyles","scrollVisibleSvc","sortSvc","colHover","colAnimation","autoColSvc","selectionColSvc","changeDetectionSvc","animationFrameSvc","undoRedo","colDefFactory","rowStyleSvc","rowNodeBlockLoader","rowNodeSorter","ctrlsSvc","pinnedCols","dataTypeSvc","syncSvc","overlays","stateSvc","expansionSvc","apiEventSvc","ariaAnnounce","menuSvc","colMoves","colAutosize","colFlex","colResize","pivotColsSvc","valueColsSvc","rowGroupColsSvc","funcColsSvc","colNames","colViewport","pivotResultCols","showRowGroupCols","validation"].map(((e,t)=>[e,t])));function gridBeanInitComparator(e,t){return((e.beanName?Xo[e.beanName]:void 0)??Number.MAX_SAFE_INTEGER)-((t.beanName?Xo[t.beanName]:void 0)??Number.MAX_SAFE_INTEGER)}function gridBeanDestroyComparator(e,t){return"gridDestroySvc"===e?.beanName?-1:"gridDestroySvc"===t?.beanName?1:0}var ei=class extends I{constructor(){super(...arguments),this.additionalFocusableContainers=new Set}setComp(e,t,o){this.view=e,this.eGridHostDiv=t,this.eGui=o,this.eGui.setAttribute("grid-id",this.beans.context.getGridId());const{dragAndDrop:i,ctrlsSvc:s}=this.beans;i?.registerGridDropTarget((()=>this.eGui),this),_stampTopLevelGridCompWithGridInstance(this.gos,t),this.createManagedBean(new Tt(this.view)),this.view.setRtlClass(this.gos.get("enableRtl")?"ag-rtl":"ag-ltr");const n=_observeResize(this.beans,this.eGridHostDiv,this.onGridSizeChanged.bind(this));this.addDestroyFunc((()=>n())),s.register("gridCtrl",this)}isDetailGrid(){return _findTabbableParent(this.getGui())?.getAttribute("row-id")?.startsWith("detail")||!1}getOptionalSelectors(){const e=this.beans;return{paginationSelector:e.pagination?.getPaginationSelector(),gridHeaderDropZonesSelector:e.registry.getSelector("AG-GRID-HEADER-DROP-ZONES"),sideBarSelector:e.sideBar?.getSelector(),statusBarSelector:e.registry?.getSelector("AG-STATUS-BAR"),watermarkSelector:e.licenseManager?.getWatermarkSelector()}}onGridSizeChanged(){this.eventSvc.dispatchEvent({type:"gridSizeChanged",clientWidth:this.eGridHostDiv.clientWidth,clientHeight:this.eGridHostDiv.clientHeight})}destroyGridUi(){this.view.destroyGridUi()}getGui(){return this.eGui}setResizeCursor(e){this.view.setCursor(e?"ew-resize":null)}disableUserSelect(e){this.view.setUserSelect(e?"none":null)}focusNextInnerContainer(e){const t=this.getFocusableContainers(),{indexWithFocus:o,nextIndex:i}=this.getNextFocusableIndex(t,e);if(i<0||i>=t.length)return!1;if(0===i){if(o>0){const{visibleCols:e,focusSvc:t}=this.beans,o=_last(e.allCols);if(t.focusGridView({column:o,backwards:!0}))return!0}return!1}return this.focusContainer(t[i],e)}focusInnerElement(e){const t=this.gos.getCallback("focusGridInnerElement");if(t&&t({fromBottom:!!e}))return!0;const o=this.getFocusableContainers(),{focusSvc:i,visibleCols:s}=this.beans,n=s.allCols;if(e){if(o.length>1)return this.focusContainer(_last(o),e);const t=_last(n);if(i.focusGridView({column:t,backwards:e}))return!0}if(0===this.gos.get("headerHeight")||_isHeaderFocusSuppressed(this.beans)){if(i.focusGridView({column:n[0],backwards:e}))return!0;for(let t=1;t<o.length;t++)if(_focusInto(o[t].getGui(),e))return!0;return!1}return i.focusFirstHeader()}forceFocusOutOfContainer(e=!1){this.view.forceFocusOutOfContainer(e)}addFocusableContainer(e){this.additionalFocusableContainers.add(e)}removeFocusableContainer(e){this.additionalFocusableContainers.delete(e)}allowFocusForNextCoreContainer(e){const t=this.view.getFocusableContainers(),{nextIndex:o,indexWithFocus:i}=this.getNextFocusableIndex(t,e);if(-1===i||o<0||o>=t.length)return;const s=t[o];s.setAllowFocus?.(!0),setTimeout((()=>{s.setAllowFocus?.(!1)}))}isFocusable(){const e=this.beans;return!_isCellFocusSuppressed(e)||!_isHeaderFocusSuppressed(e)||!!e.sideBar?.comp?.isDisplayed()}getNextFocusableIndex(e,t){const o=_getActiveDomElement(this.beans),i=e.findIndex((e=>e.getGui().contains(o)));return{indexWithFocus:i,nextIndex:i+(t?-1:1)}}focusContainer(e,t){e.setAllowFocus?.(!0);const o=_focusInto(e.getGui(),t,!1,!0);return e.setAllowFocus?.(!1),o}getFocusableContainers(){return[...this.view.getFocusableContainers(),...this.additionalFocusableContainers]}destroy(){this.additionalFocusableContainers.clear(),super.destroy()}},mod=(e,t)=>{for(const o of Object.keys(t))t[o]=e;return t},ti={dispatchEvent:"CommunityCore",...mod("CommunityCore",{destroy:0,getGridId:0,getGridOption:0,isDestroyed:0,setGridOption:0,updateGridOptions:0,isModuleRegistered:0}),...mod("GridState",{getState:0,setState:0}),...mod("SharedRowSelection",{setNodesSelected:0,selectAll:0,deselectAll:0,selectAllFiltered:0,deselectAllFiltered:0,selectAllOnCurrentPage:0,deselectAllOnCurrentPage:0,getSelectedNodes:0,getSelectedRows:0}),...mod("RowApi",{redrawRows:0,setRowNodeExpanded:0,getRowNode:0,addRenderedRowListener:0,getRenderedNodes:0,forEachNode:0,getFirstDisplayedRowIndex:0,getLastDisplayedRowIndex:0,getDisplayedRowAtIndex:0,getDisplayedRowCount:0}),...mod("ScrollApi",{getVerticalPixelRange:0,getHorizontalPixelRange:0,ensureColumnVisible:0,ensureIndexVisible:0,ensureNodeVisible:0}),...mod("KeyboardNavigation",{getFocusedCell:0,clearFocusedCell:0,setFocusedCell:0,tabToNextCell:0,tabToPreviousCell:0,setFocusedHeader:0}),...mod("EventApi",{addEventListener:0,addGlobalListener:0,removeEventListener:0,removeGlobalListener:0}),...mod("ValueCache",{expireValueCache:0}),...mod("CellApi",{getCellValue:0}),...mod("SharedMenu",{showColumnMenu:0,hidePopupMenu:0}),...mod("Sort",{onSortChanged:0}),...mod("PinnedRow",{getPinnedTopRowCount:0,getPinnedBottomRowCount:0,getPinnedTopRow:0,getPinnedBottomRow:0,forEachPinnedRow:0}),...mod("Overlay",{showLoadingOverlay:0,showNoRowsOverlay:0,hideOverlay:0}),...mod("RenderApi",{setGridAriaProperty:0,refreshCells:0,refreshHeader:0,isAnimationFrameQueueEmpty:0,flushAllAnimationFrames:0,getSizesForCurrentTheme:0,getCellRendererInstances:0}),...mod("HighlightChanges",{flashCells:0}),...mod("RowDrag",{addRowDropZone:0,removeRowDropZone:0,getRowDropZoneParams:0,getRowDropPositionIndicator:0,setRowDropPositionIndicator:0}),...mod("ColumnApi",{getColumnDefs:0,getColumnDef:0,getDisplayNameForColumn:0,getColumn:0,getColumns:0,applyColumnState:0,getColumnState:0,resetColumnState:0,isPinning:0,isPinningLeft:0,isPinningRight:0,getDisplayedColAfter:0,getDisplayedColBefore:0,setColumnsVisible:0,setColumnsPinned:0,getAllGridColumns:0,getDisplayedLeftColumns:0,getDisplayedCenterColumns:0,getDisplayedRightColumns:0,getAllDisplayedColumns:0,getAllDisplayedVirtualColumns:0}),...mod("ColumnAutoSize",{sizeColumnsToFit:0,autoSizeColumns:0,autoSizeAllColumns:0}),...mod("ColumnGroup",{setColumnGroupOpened:0,getColumnGroup:0,getProvidedColumnGroup:0,getDisplayNameForColumnGroup:0,getColumnGroupState:0,setColumnGroupState:0,resetColumnGroupState:0,getLeftDisplayedColumnGroups:0,getCenterDisplayedColumnGroups:0,getRightDisplayedColumnGroups:0,getAllDisplayedColumnGroups:0}),...mod("ColumnMove",{moveColumnByIndex:0,moveColumns:0}),...mod("ColumnResize",{setColumnWidths:0}),...mod("ColumnHover",{isColumnHovered:0}),...mod("EditCore",{getCellEditorInstances:0,getEditingCells:0,stopEditing:0,startEditingCell:0,isEditing:0,validateEdit:0}),...mod("BatchEdit",{startBatchEdit:0,cancelBatchEdit:0,commitBatchEdit:0,isBatchEditing:0}),...mod("UndoRedoEdit",{undoCellEditing:0,redoCellEditing:0,getCurrentUndoSize:0,getCurrentRedoSize:0}),...mod("FilterCore",{isAnyFilterPresent:0,onFilterChanged:0}),...mod("ColumnFilter",{isColumnFilterPresent:0,getColumnFilterInstance:0,destroyFilter:0,setFilterModel:0,getFilterModel:0,getColumnFilterModel:0,setColumnFilterModel:0,showColumnFilter:0,getColumnFilterHandler:0,doFilterAction:0}),...mod("QuickFilter",{isQuickFilterPresent:0,getQuickFilter:0,resetQuickFilter:0}),...mod("Find",{findGetActiveMatch:0,findGetTotalMatches:0,findGoTo:0,findNext:0,findPrevious:0,findGetNumMatches:0,findGetParts:0,findClearActive:0,findRefresh:0}),...mod("Pagination",{paginationIsLastPageFound:0,paginationGetPageSize:0,paginationGetCurrentPage:0,paginationGetTotalPages:0,paginationGetRowCount:0,paginationGoToNextPage:0,paginationGoToPreviousPage:0,paginationGoToFirstPage:0,paginationGoToLastPage:0,paginationGoToPage:0}),...mod("CsrmSsrmSharedApi",{expandAll:0,collapseAll:0,onRowHeightChanged:0}),...mod("SsrmInfiniteSharedApi",{setRowCount:0,getCacheBlockState:0,isLastRowIndexKnown:0}),...mod("ClientSideRowModelApi",{onGroupExpandedOrCollapsed:0,refreshClientSideRowModel:0,isRowDataEmpty:0,forEachLeafNode:0,forEachNodeAfterFilter:0,forEachNodeAfterFilterAndSort:0,resetRowHeights:0,applyTransaction:0,applyTransactionAsync:0,flushAsyncTransactions:0,getBestCostNodeSelection:0}),...mod("CsvExport",{getDataAsCsv:0,exportDataAsCsv:0}),...mod("InfiniteRowModel",{refreshInfiniteCache:0,purgeInfiniteCache:0,getInfiniteRowCount:0}),...mod("AdvancedFilter",{getAdvancedFilterModel:0,setAdvancedFilterModel:0,showAdvancedFilterBuilder:0,hideAdvancedFilterBuilder:0}),...mod("IntegratedCharts",{getChartModels:0,getChartRef:0,getChartImageDataURL:0,downloadChart:0,openChartToolPanel:0,closeChartToolPanel:0,createRangeChart:0,createPivotChart:0,createCrossFilterChart:0,updateChart:0,restoreChart:0}),...mod("Clipboard",{copyToClipboard:0,cutToClipboard:0,copySelectedRowsToClipboard:0,copySelectedRangeToClipboard:0,copySelectedRangeDown:0,pasteFromClipboard:0}),...mod("ExcelExport",{getDataAsExcel:0,exportDataAsExcel:0,getSheetDataForExcel:0,getMultipleSheetsAsExcel:0,exportMultipleSheetsAsExcel:0}),...mod("SharedMasterDetail",{addDetailGridInfo:0,removeDetailGridInfo:0,getDetailGridInfo:0,forEachDetailGridInfo:0}),...mod("ContextMenu",{showContextMenu:0}),...mod("ColumnMenu",{showColumnChooser:0,hideColumnChooser:0}),...mod("CellSelection",{getCellRanges:0,addCellRange:0,clearRangeSelection:0,clearCellSelection:0}),...mod("SharedRowGrouping",{setRowGroupColumns:0,removeRowGroupColumns:0,addRowGroupColumns:0,getRowGroupColumns:0,moveRowGroupColumn:0}),...mod("SharedAggregation",{addAggFuncs:0,clearAggFuncs:0,setColumnAggFunc:0}),...mod("SharedPivot",{isPivotMode:0,getPivotResultColumn:0,setValueColumns:0,getValueColumns:0,removeValueColumns:0,addValueColumns:0,setPivotColumns:0,removePivotColumns:0,addPivotColumns:0,getPivotColumns:0,setPivotResultColumns:0,getPivotResultColumns:0}),...mod("ServerSideRowModelApi",{getServerSideSelectionState:0,setServerSideSelectionState:0,applyServerSideTransaction:0,applyServerSideTransactionAsync:0,applyServerSideRowData:0,retryServerSideLoads:0,flushServerSideAsyncTransactions:0,refreshServerSide:0,getServerSideGroupLevelState:0}),...mod("SideBar",{isSideBarVisible:0,setSideBarVisible:0,setSideBarPosition:0,openToolPanel:0,closeToolPanel:0,getOpenedToolPanel:0,refreshToolPanel:0,isToolPanelShowing:0,getToolPanelInstance:0,getSideBar:0}),...mod("StatusBar",{getStatusPanel:0})},oi={isDestroyed:()=>!0,destroy(){},preConstruct(){},postConstruct(){},preWireBeans(){},wireBeans(){}},dispatchEvent=(e,t)=>e.eventSvc.dispatchEvent(t),ii=class{};Reflect.defineProperty(ii,"name",{value:"GridApi"});function updateGridOptions(e,t){e.gos.updateGridOptions({options:t})}var si={tag:"div",cls:"ag-drag-handle ag-row-drag",attrs:{draggable:"true"}};var ni={tag:"div",cls:"ag-drag-handle ag-row-drag",attrs:{"aria-hidden":"true"}},ri=class extends Q{constructor(e,t,o,i,s,n){super(),this.cellValueFn=e,this.rowNode=t,this.column=o,this.customGui=i,this.dragStartPixels=s,this.suppressVisibilityChange=n,this.dragSource=null}isCustomGui(){return null!=this.customGui}postConstruct(){const{beans:e,rowNode:t,column:o,gos:i}=this;if(this.customGui?this.setDragElement(this.customGui,this.dragStartPixels):(this.setTemplate(ni),this.getGui().appendChild(_createIconNoSpan("rowDrag",e,null)),this.addDragSource()),!this.suppressVisibilityChange){const e=i.get("rowDragManaged")?new di(this,t,o):new li(this,t,o);this.createManagedBean(e,this.beans.context)}}setDragElement(e,t){this.setTemplateFromElement(e,void 0,void 0,!0),this.addDragSource(t)}getSelectedNodes(){const e=this.rowNode;if(!this.gos.get("rowDragMultiRow"))return[e];const t=this.beans.selectionSvc?.getSelectedNodes()??[];return-1!==t.indexOf(e)?t:[e]}getDragItem(){const{column:e,rowNode:t}=this;return{rowNode:t,rowNodes:this.getSelectedNodes(),columns:e?[e]:void 0,defaultTextValue:this.cellValueFn()}}getRowDragText(e){if(e){const t=e.getColDef();if(t.rowDragText)return t.rowDragText}return this.gos.get("rowDragText")}addDragSource(e=4){if(this.dragSource&&this.removeDragSource(),this.gos.get("rowDragManaged")&&this.rowNode.footer)return;const t=this.getGui();this.gos.get("enableCellTextSelection")&&(this.removeMouseDownListener(),this.mouseDownListener=this.addManagedElementListeners(t,{mousedown:e=>{e?.preventDefault()}})[0]);const o=this.getLocaleTextFunc();this.dragSource={type:2,eElement:t,dragItemName:()=>{const e=this.getDragItem(),t=e.rowNodes?.length||1,i=this.getRowDragText(this.column);return i?i(e,t):1===t?this.cellValueFn():`${t} ${o("rowDragRows","rows")}`},getDragItem:()=>this.getDragItem(),dragStartPixels:e,dragSourceDomDataKey:this.gos.getDomDataKey()},this.beans.dragAndDrop.addDragSource(this.dragSource,!0)}destroy(){this.removeDragSource(),this.removeMouseDownListener(),super.destroy()}removeDragSource(){this.dragSource&&(this.beans.dragAndDrop.removeDragSource(this.dragSource),this.dragSource=null)}removeMouseDownListener(){this.mouseDownListener&&(this.mouseDownListener(),this.mouseDownListener=void 0)}},ai=class extends I{constructor(e,t,o){super(),this.parent=e,this.rowNode=t,this.column=o}setDisplayedOrVisible(e,t=!1){const o={skipAriaHidden:!0};if(e)this.parent.setDisplayed(!1,o);else{let e=!t,i=!1;const{column:s,rowNode:n,parent:r}=this;if(s){const o=s.getColDef().rowDrag;i="function"==typeof o,e=(t?!!o:s.isRowDrag(n))||r.isCustomGui()}i?(r.setDisplayed(!0,o),r.setVisible(e&&!t,o)):(r.setDisplayed(e,o),r.setVisible(!t,o))}}},li=class extends ai{postConstruct(){this.addManagedPropertyListener("suppressRowDrag",this.onSuppressRowDrag.bind(this));const e=this.workOutVisibility.bind(this);this.addManagedListeners(this.rowNode,{dataChanged:e,cellChanged:e}),this.addManagedListeners(this.beans.eventSvc,{newColumnsLoaded:e}),this.workOutVisibility()}onSuppressRowDrag(){this.workOutVisibility()}workOutVisibility(){const e=this.gos.get("suppressRowDrag");this.setDisplayedOrVisible(e)}},di=class extends ai{postConstruct(){const e=this.workOutVisibility.bind(this);this.addManagedListeners(this.beans.eventSvc,{sortChanged:e,filterChanged:e,columnRowGroupChanged:e,newColumnsLoaded:e}),this.addManagedListeners(this.rowNode,{dataChanged:e,cellChanged:e}),this.addManagedPropertyListener("suppressRowDrag",this.onSuppressRowDrag.bind(this)),this.workOutVisibility()}onSuppressRowDrag(){this.workOutVisibility()}workOutVisibility(){const{rowDragSvc:e,dragAndDrop:t,gos:o}=this.beans,i=e.rowDragFeature,s=i&&i.shouldPreventRowMove(),n=o.get("suppressRowDrag"),r=t.hasExternalDropZones(),a=s&&!r||n;this.setDisplayedOrVisible(a,this.rowNode.footer)}},ci=class{constructor(e,t){this.active=!0,this.nodeIdsToColumns={},this.mapToItems={},this.keepingColumns=e,this.pathRoot={rowNode:t,children:null},this.mapToItems[t.id]=this.pathRoot}depthFirstSearchChangedPath(e,t){const{rowNode:o,children:i}=e;if(i)for(let e=0;e<i.length;++e)this.depthFirstSearchChangedPath(i[e],t);t(o)}depthFirstSearchEverything(e,t,o){const i=e.childrenAfterGroup;if(i)for(let e=0,s=i.length;e<s;++e){const s=i[e];s.childrenAfterGroup?this.depthFirstSearchEverything(s,t,o):o&&t(s)}t(e)}forEachChangedNodeDepthFirst(e,t=!1,o=!1){this.active&&!o?this.depthFirstSearchChangedPath(this.pathRoot,e):this.depthFirstSearchEverything(this.pathRoot.rowNode,e,t)}executeFromRootNode(e){e(this.pathRoot.rowNode)}createPathItems(e){let t=e,o=0;for(;!this.mapToItems[t.id];){const e={rowNode:t,children:null};this.mapToItems[t.id]=e,o++,t=t.parent}return o}populateColumnsMap(e,t){if(!this.keepingColumns||!t)return;let o=e;for(;o;)this.nodeIdsToColumns[o.id]||(this.nodeIdsToColumns[o.id]={}),t.forEach((e=>this.nodeIdsToColumns[o.id][e.getId()]=!0)),o=o.parent}linkPathItems(e,t){let o=e;for(let e=0;e<t;e++){const e=this.mapToItems[o.id],t=this.mapToItems[o.parent.id];t.children||(t.children=[]),t.children.push(e),o=o.parent}}addParentNode(e,t){if(!e||e.isRowPinned())return;const o=this.createPathItems(e);this.linkPathItems(e,o),this.populateColumnsMap(e,t)}canSkip(e){return this.active&&!this.mapToItems[e.id]}getValueColumnsForNode(e,t){if(!this.keepingColumns)return t;const o=this.nodeIdsToColumns[e.id];return t.filter((e=>o[e.getId()]))}getNotValueColumnsForNode(e,t){if(!this.keepingColumns)return null;const o=this.nodeIdsToColumns[e.id];return t.filter((e=>!o[e.getId()]))}},hi=class extends I{constructor(e){super(),this.eContainer=null,this.lastDraggingEvent=null,this.autoScrollService=null,this.makeGroupThrottleTimer=null,this.makeGroupThrottleTarget=null,this.makeGroupThrottled=!1,this.makeGroupThrottleCallback=()=>{this.makeGroupThrottleTimer=null;const e=this.lastDraggingEvent;e&&(this.makeGroupThrottled=!0,this.doManagedDrag(e,!1),this.makeGroupExpanded(this.makeGroupThrottleTarget))},this.eContainer=e}postConstruct(){const{rowModel:e,gos:t,ctrlsSvc:o}=this.beans;_isClientSideRowModel(t)&&(this.clientSideRowModel=e),o.whenReady(this,(e=>{const t=e.gridBodyCtrl;let o=0;const getVScroll2=()=>t.scrollFeature.getVScrollPosition().top;this.autoScrollService=new class{constructor(e){this.tickingInterval=null,this.onScrollCallback=null,this.scrollContainer=e.scrollContainer,this.scrollHorizontally=-1!==e.scrollAxis.indexOf("x"),this.scrollVertically=-1!==e.scrollAxis.indexOf("y"),this.scrollByTick=null!=e.scrollByTick?e.scrollByTick:20,e.onScrollCallback&&(this.onScrollCallback=e.onScrollCallback),this.scrollVertically&&(this.getVerticalPosition=e.getVerticalPosition,this.setVerticalPosition=e.setVerticalPosition),this.scrollHorizontally&&(this.getHorizontalPosition=e.getHorizontalPosition,this.setHorizontalPosition=e.setHorizontalPosition),this.shouldSkipVerticalScroll=e.shouldSkipVerticalScroll||(()=>!1),this.shouldSkipHorizontalScroll=e.shouldSkipHorizontalScroll||(()=>!1)}check(e,t=!1){const o=t||this.shouldSkipVerticalScroll();if(o&&this.shouldSkipHorizontalScroll())return;const i=this.scrollContainer.getBoundingClientRect(),s=this.scrollByTick;this.tickLeft=e.clientX<i.left+s,this.tickRight=e.clientX>i.right-s,this.tickUp=e.clientY<i.top+s&&!o,this.tickDown=e.clientY>i.bottom-s&&!o,this.tickLeft||this.tickRight||this.tickUp||this.tickDown?this.ensureTickingStarted():this.ensureCleared()}ensureTickingStarted(){null===this.tickingInterval&&(this.tickingInterval=window.setInterval(this.doTick.bind(this),100),this.tickCount=0)}doTick(){this.tickCount++;const e=this.tickCount>20?200:this.tickCount>10?80:40;if(this.scrollVertically){const t=this.getVerticalPosition();this.tickUp&&this.setVerticalPosition(t-e),this.tickDown&&this.setVerticalPosition(t+e)}if(this.scrollHorizontally){const t=this.getHorizontalPosition();this.tickLeft&&this.setHorizontalPosition(t-e),this.tickRight&&this.setHorizontalPosition(t+e)}this.onScrollCallback&&this.onScrollCallback()}ensureCleared(){this.tickingInterval&&(window.clearInterval(this.tickingInterval),this.tickingInterval=null)}}({scrollContainer:t.eBodyViewport,scrollAxis:"y",getVerticalPosition:getVScroll2,setVerticalPosition:e=>t.scrollFeature.setVerticalScrollPosition(e),onScrollCallback:()=>{const e=getVScroll2();if(o!==e){o=e;const t=this.lastDraggingEvent;t&&this.onDragging(t)}}})}))}destroy(){super.destroy(),this.eContainer=null,this.lastDraggingEvent=null,this.makeGroupThrottleClear();const e=this.autoScrollService;e&&(this.autoScrollService=null,e?.ensureCleared())}getContainer(){return this.eContainer}isInterestedIn(e){return 2===e}getIconName(){return this.gos.get("rowDragManaged")&&this.shouldPreventRowMove()?"notAllowed":"move"}shouldPreventRowMove(){const{rowGroupColsSvc:e,filterManager:t,sortSvc:o}=this.beans;if((e?.columns??[]).length)return!0;const i=t?.isAnyFilterPresent();if(i)return!0;const s=o?.isSortActive();return!!s}getRowNodes(e){if(!this.isFromThisGrid(e))return e.dragItem.rowNodes||[];const t=e.dragItem.rowNode;if(this.gos.get("rowDragMultiRow")){const e=[...this.beans.selectionSvc?.getSelectedNodes()??[]].sort(((e,t)=>null==e.rowIndex||null==t.rowIndex?0:this.getRowIndexNumber(e)-this.getRowIndexNumber(t)));if(-1!==e.indexOf(t))return e}return[t]}onDragEnter(e){e.dragItem.rowNodes=this.getRowNodes(e),this.dispatchGridEvent("rowDragEnter",e),this.getRowNodes(e).forEach((e=>{this.setRowNodeDragging(e,!0)})),this.onEnterOrDragging(e)}onDragging(e){this.onEnterOrDragging(e)}isFromThisGrid(e){const{dragSourceDomDataKey:t}=e.dragSource;return t===this.gos.getDomDataKey()}onEnterOrDragging(e){this.autoScrollService&&(this.dispatchGridEvent("rowDragMove",e),this.lastDraggingEvent=e,this.gos.get("rowDragManaged")&&this.doManagedDrag(e,!0),this.autoScrollService.check(e.event))}doManagedDrag(e,t){const{dragAndDrop:o,gos:i}=this.beans,s=this.isFromThisGrid(e);if(!i.get("rowDragManaged")||!this.shouldPreventRowMove())if(i.get("suppressMoveWhenRowDragging")||!s){if(o.isDropZoneWithinThisGrid(e)){const o=this.managedRowsDrop(e,t),i=o?.target,s=this.beans.rowDropHighlightSvc;i&&o.rows.length?s.set(i,o.position):s.clear()}}else{const o=this.managedRowsDrop(e,t);o&&this.dropRows(o)}}getRowIndexNumber(e){const t=e.getRowIndexString();return parseInt(_last(t.split("-")),10)}managedRowsDrop(e,t){const{rowNode:o,rowNodes:i}=e.dragItem,s=i?.length,n=s&&(o??i[0]);if(!n)return this.makeGroupThrottleClear(),null;const{beans:r,gos:a,clientSideRowModel:l}=this,d=l.rootNode,c=_getNormalisedMousePosition(r,e).y;let h=l.getRowIndexAtPixel(c),u=l.getRow(h)??null;const g=n!==u;let p=u?(c-u.rowTop-u.rowHeight/2)/u.rowHeight||0:1;const m=this.isFromThisGrid(e),f="group"!==_getGroupingApproach(a)&&m;let C=null;if(f&&u?.footer){C=u.sibling??d;const e=getPrevOrNext(l,-1,u)??getPrevOrNext(l,1,u);p=e&&e.rowIndex>u.rowIndex?-.5:.5,u=e??null}let w=p<0,v=!1;if(m&&u){if(g){if(v=i.indexOf(u)>=0,v){const e=getRowsPrevOrNext(l,h<n.rowIndex,i);e?.parent===u.parent&&(u=e,h=u.rowIndex)}}else{if(Math.abs(p)<=.5)return this.makeGroupThrottleClear(),null;v=!0}(v||!f&&1===Math.abs(h-n.rowIndex))&&(w=h<n.rowIndex)}const b=this.makeGroupThrottleTarget;null!==b&&b!==u&&this.makeGroupThrottleClear(),u?.expanded&&u.childrenAfterSort?.length&&(this.makeGroupThrottled=!0,this.makeGroupThrottleTarget=u),null===C&&f&&(!u||p>=.5&&u.rowIndex===r.pageBounds.getLastRow()?C=d:this.targetShouldBeParent(u,p,v,i)&&(this.makeGroupThrottled&&(C=u),!t||null!==C&&u.expanded||(this.makeGroupThrottleTarget=u,this.makeGroupThrottleStart())),C??(C=u?.parent??d));let S=!1;if(null!==C){if(C===u&&C!==d){S=!0;const e=C.expanded?getPrevOrNext(l,1,u):null;e?.parent===C&&(u=e,S=!1,w=!0)}if(u&&!S){let e=u;for(;e&&e!==d&&e!==C;)u=e,e=e.parent}rowsHaveSameParent(i,C)&&(C=null)}if(!C&&v&&(f||n===u))return null;const y=S?"inside":w?"above":"below",R={api:this.beans.gridApi,context:this.beans.gridOptions.context,draggingEvent:e,sameGrid:m,position:y,source:n,target:u,newParent:C,rows:i};let F=!1;const E=a.get("isRowValidDropPosition");if(E){const e=E(R);e?"object"==typeof e&&(void 0!==e.rows&&(R.rows=e.rows??V),void 0!==e.newParent&&(R.newParent=e.newParent),void 0!==e.target&&(R.target=e.target),e.position&&(F=!0,R.position=e.position)):R.rows=V}return R.newParent&&R.rows.length||F||(R.position=w?"above":"below"),R}makeGroupThrottleStart(){null===this.makeGroupThrottleTimer&&(this.makeGroupThrottleTimer=window.setTimeout(this.makeGroupThrottleCallback,this.gos.get("rowDragInsertDelay")))}makeGroupExpanded(e){e&&!e.expanded&&e.childrenAfterSort?.length&&e.isExpandable()&&e.setExpanded(!0,this.lastDraggingEvent?.event,!0)}makeGroupThrottleClear(){this.makeGroupThrottled=!1,this.makeGroupThrottleTarget=null;const e=this.makeGroupThrottleTimer;null!==e&&(this.makeGroupThrottleTimer=null,clearTimeout(e))}targetShouldBeParent(e,t,o,i){const s=e?.rowIndex;if(o||null===s)return!1;if(t<-.25)return!1;if(t<.25)return!0;let n,r=s+1;const a=this.clientSideRowModel;do{n=a.getRow(r++)}while(n&&n.footer);const l=e.childrenAfterGroup;if(n&&n.parent===e&&l?.length){const e=new Set(i);for(const t of l)if(null!==t.rowIndex&&!e.has(t))return!0}return!1}addRowDropZone(e){if(!e.getContainer())return void _warn(55);const t=this.beans.dragAndDrop;if(t.findExternalZone(e))return void _warn(56);let o={getContainer:e.getContainer};e.fromGrid?o=e:(e.onDragEnter&&(o.onDragEnter=t=>{e.onDragEnter(this.draggingToRowDragEvent("rowDragEnter",t))}),e.onDragLeave&&(o.onDragLeave=t=>{e.onDragLeave(this.draggingToRowDragEvent("rowDragLeave",t))}),e.onDragging&&(o.onDragging=t=>{e.onDragging(this.draggingToRowDragEvent("rowDragMove",t))}),e.onDragStop&&(o.onDragStop=t=>{e.onDragStop(this.draggingToRowDragEvent("rowDragEnd",t))}),e.onDragCancel&&(o.onDragCancel=t=>{e.onDragCancel(this.draggingToRowDragEvent("rowDragCancel",t))}));const i={isInterestedIn:e=>2===e,getIconName:()=>"move",external:!0,...o};t.addDropTarget(i),this.addDestroyFunc((()=>t.removeDropTarget(i)))}getRowDropZone(e){const t=this.getContainer.bind(this),o=this.onDragEnter.bind(this),i=this.onDragLeave.bind(this),s=this.onDragging.bind(this),n=this.onDragStop.bind(this),r=this.onDragCancel.bind(this);let a;return a=e?{getContainer:t,onDragEnter:e.onDragEnter?t=>{o(t),e.onDragEnter(this.draggingToRowDragEvent("rowDragEnter",t))}:o,onDragLeave:e.onDragLeave?t=>{i(t),e.onDragLeave(this.draggingToRowDragEvent("rowDragLeave",t))}:i,onDragging:e.onDragging?t=>{s(t),e.onDragging(this.draggingToRowDragEvent("rowDragMove",t))}:s,onDragStop:e.onDragStop?t=>{n(t),e.onDragStop(this.draggingToRowDragEvent("rowDragEnd",t))}:n,onDragCancel:e.onDragCancel?t=>{r(t),e.onDragCancel(this.draggingToRowDragEvent("rowDragCancel",t))}:r,fromGrid:!0}:{getContainer:t,onDragEnter:o,onDragLeave:i,onDragging:s,onDragStop:n,onDragCancel:r,fromGrid:!0},a}draggingToRowDragEvent(e,t){const o=this.beans,{pageBounds:i,rowModel:s,gos:n}=o,r=_getNormalisedMousePosition(this.beans,t).y;let a,l=-1;r>i.getCurrentPagePixelRange().pageLastPixel||(l=s.getRowIndexAtPixel(r),a=s.getRow(l));return _addGridCommonParams(n,{type:e,event:t.event,node:t.dragItem.rowNode,nodes:t.dragItem.rowNodes,overIndex:l,overNode:a,y:r,vDirection:t.vDirection})}dispatchGridEvent(e,t){const o=this.draggingToRowDragEvent(e,t);this.eventSvc.dispatchEvent(o)}onDragLeave(e){this.dispatchGridEvent("rowDragLeave",e),this.stopDragging(e),this.gos.get("rowDragManaged")&&this.beans.rowDropHighlightSvc.clear(),this.makeGroupThrottleClear()}onDragStop(e){this.dispatchGridEvent("rowDragEnd",e),this.stopDragging(e);const{dragAndDrop:t,gos:o}=this.beans;if(o.get("rowDragManaged")&&(o.get("suppressMoveWhenRowDragging")||!this.isFromThisGrid(e))&&t.isDropZoneWithinThisGrid(e)){const t=this.managedRowsDrop(e,!1);t&&this.dropRows(t),this.beans.rowDropHighlightSvc.clear()}this.makeGroupThrottleClear()}onDragCancel(e){this.dispatchGridEvent("rowDragCancel",e),this.stopDragging(e);const{dragAndDrop:t,gos:o}=this.beans;o.get("rowDragManaged")&&(o.get("suppressMoveWhenRowDragging")||!this.isFromThisGrid(e))&&t.isDropZoneWithinThisGrid(e)&&this.beans.rowDropHighlightSvc.clear(),this.makeGroupThrottleClear()}stopDragging(e){this.autoScrollService?.ensureCleared(),this.getRowNodes(e).forEach((e=>{this.setRowNodeDragging(e,!1)}))}setRowNodeDragging(e,t){e.dragging!==t&&(e.dragging=t,e.dispatchRowEvent("draggingChanged"))}dropRows(e){return e.sameGrid?this.moveRows(e):this.addRows(e)}addRows({position:e,target:t,rows:o}){const i=_getRowIdCallback(this.gos),s=this.clientSideRowModel,n=o.filter((({data:e,rowPinned:t})=>!s.getRowNode(i?.({data:e,level:0,rowPinned:t})??e.id))).map((({data:e})=>e));if(0===n.length)return!1;const r=t?getLeafSourceRowIndex(t)+("above"===e?0:1):void 0;return s.updateRowData({add:n,addIndex:r}),!0}refreshModelAfterDrop(){this.clientSideRowModel.refreshModel({step:"group",keepRenderedRows:!0,animate:!this.gos.get("suppressAnimationFrame"),changedPath:new ci(!1,this.clientSideRowModel.rootNode),rowNodesOrderChanged:!0})}moveRows({position:e,target:t,rows:o,newParent:i}){let s=!1;const n=this.clientSideRowModel,r=new Set;for(const e of o){if(e.footer||null===e.rowTop&&e!==n.getRowNode(e.id))continue;if(i&&e.parent!==i){if(wouldFormCycle(e,i))continue;e.treeParent=i,s=!0}const t=getLeafRow(e);t&&r.add(t)}if(!s&&0===r.size)return!1;const a=this.beans.focusSvc,l=a.getFocusedCell(),d=l&&_getCellByPosition(this.beans,l);return r.size&&this.reorderLeafChildren(r,...this.getMoveRowsBounds(r,t,"above"===e))&&(s=!0),!!s&&(this.refreshModelAfterDrop(),d?d.focusCell():a.clearFocusedCell(),!0)}getMoveRowsBounds(e,t,o){const i=this.clientSideRowModel.rootNode?.allLeafChildren.length??0;let s=getLeafSourceRowIndex(t);s<0||s>=i?s=i:o||++s;let n=s,r=Math.min(s,i-1);for(const t of e){const e=t.sourceRowIndex;e<n&&(n=e),e>r&&(r=e)}return[n,s,r]}reorderLeafChildren(e,t,o,i){let s=!1;const n=this.clientSideRowModel.rootNode?.allLeafChildren;if(!e.size||!n)return!1;let r=t;for(let i=t;i<o;++i){const t=n[i];e.has(t)||(t.sourceRowIndex!==r&&(t.sourceRowIndex=r,n[r]=t,s=!0),++r)}let a=i;for(let t=i;t>=o;--t){const o=n[t];e.has(o)||(o.sourceRowIndex!==a&&(o.sourceRowIndex=a,n[a]=o,s=!0),--a)}for(const t of e)t.sourceRowIndex!==r&&(t.sourceRowIndex=r,n[r]=t,s=!0),++r;return s}},getRowsPrevOrNext=(e,t,o)=>t?getPrevOrNext(e,-1,o[0]):getPrevOrNext(e,1,_last(o)),getPrevOrNext=(e,t,o)=>{if(o){const i=e.getRowCount();let s=o.rowIndex+t;for(;s>=0&&s<i;){const o=e.getRow(s);if(!o||!o.footer)return o;s+=t}}},wouldFormCycle=(e,t)=>{let o=t;for(;o;){if(o===e)return!0;o=o.parent}return!1},rowsHaveSameParent=(e,t)=>{for(let o=0,i=e.length;o<i;++o)if(e[o].parent!==t)return!1;return!0},getLeafSourceRowIndex=e=>{const t=getLeafRow(e);return void 0!==t?t.sourceRowIndex:-1},getLeafRow=e=>{for(;e;){if(e.sourceRowIndex>=0)return e;const t=e.childrenAfterGroup;if(!t?.length)return;e=t[0]}},ui={moduleName:"Drag",version:R,beans:[class extends I{constructor(){super(...arguments),this.beanName="dragSvc",this.dragEndFunctions=[],this.dragSources=[]}destroy(){const{dragSources:e}=this;e.forEach(this.removeListener.bind(this)),e.length=0,super.destroy()}removeListener(e){const t=e.dragSource.eElement,o=e.mouseDownListener;if(t.removeEventListener("mousedown",o),e.touchEnabled){const o=e.touchStartListener;t.removeEventListener("touchstart",o,{passive:!0})}}removeDragSource(e){const{dragSources:t}=this,o=t.find((t=>t.dragSource===e));o&&(this.removeListener(o),_removeFromArray(t,o))}addDragSource(e){const t=this.onMouseDown.bind(this,e),{eElement:o,includeTouch:i,stopPropagationForTouch:s}=e;o.addEventListener("mousedown",t);let n=null;const r=this.gos.get("suppressTouch");i&&!r&&(n=t=>{_isFocusableFormField(t.target)||(s&&t.stopPropagation(),this.onTouchStart(e,t))},o.addEventListener("touchstart",n,{passive:!1})),this.dragSources.push({dragSource:e,mouseDownListener:t,touchStartListener:n,touchEnabled:!!i})}onTouchStart(e,t){this.currentDragParams=e,this.dragging=!1;const o=t.touches[0];this.touchLastTime=o,this.touchStart=o;const touchEndEvent=t=>this.onTouchUp(t,e.eElement),i=t.target,s=[{target:_getRootNode(this.beans),type:"touchmove",listener:e=>{e.cancelable&&e.preventDefault()},options:{passive:!1}},{target:i,type:"touchmove",listener:t=>this.onTouchMove(t,e.eElement),options:{passive:!0}},{target:i,type:"touchend",listener:touchEndEvent,options:{passive:!0}},{target:i,type:"touchcancel",listener:touchEndEvent,options:{passive:!0}}];this.addTemporaryEvents(s),0===e.dragStartPixels&&this.onCommonMove(o,this.touchStart,e.eElement)}onMouseDown(e,t){const o=t;if(e.skipMouseEvent&&e.skipMouseEvent(t))return;if(o._alreadyProcessedByDragService)return;if(o._alreadyProcessedByDragService=!0,0!==t.button)return;this.shouldPreventMouseEvent(t)&&t.preventDefault(),this.currentDragParams=e,this.dragging=!1,this.mouseStartEvent=t,this.startTarget=t.target;const i=_getRootNode(this.beans),s=[{target:i,type:"mousemove",listener:t=>this.onMouseMove(t,e.eElement)},{target:i,type:"mouseup",listener:t=>this.onMouseUp(t,e.eElement)},{target:i,type:"contextmenu",listener:e=>e.preventDefault()},{target:i,type:"keydown",listener:t=>{t.key===Me&&this.cancelDrag(e.eElement)}}];this.addTemporaryEvents(s),0===e.dragStartPixels&&this.onMouseMove(t,e.eElement)}addTemporaryEvents(e){e.forEach((e=>{const{target:t,type:o,listener:i,options:s}=e;t.addEventListener(o,i,s)})),this.dragEndFunctions.push((()=>{e.forEach((e=>{const{target:t,type:o,listener:i,options:s}=e;t.removeEventListener(o,i,s)}))}))}isEventNearStartEvent(e,t){const{dragStartPixels:o}=this.currentDragParams;return _areEventsNear(e,t,_exists(o)?o:4)}getFirstActiveTouch(e){for(let t=0;t<e.length;t++)if(e[t].identifier===this.touchStart.identifier)return e[t];return null}onCommonMove(e,t,o){if(!this.dragging){if(this.isEventNearStartEvent(e,t))return;if(this.dragging=!0,this.eventSvc.dispatchEvent({type:"dragStarted",target:o}),this.currentDragParams.onDragStart(t),!this.currentDragParams)return void(this.dragging=!1);this.currentDragParams.onDragging(t)}this.currentDragParams?.onDragging(e)}onTouchMove(e,t){const o=this.getFirstActiveTouch(e.touches);o&&this.onCommonMove(o,this.touchStart,t)}onMouseMove(e,t){if(_isBrowserSafari()){_getDocument(this.beans).getSelection()?.removeAllRanges()}this.shouldPreventMouseEvent(e)&&e.preventDefault(),this.onCommonMove(e,this.mouseStartEvent,t)}shouldPreventMouseEvent(e){const{gos:t}=this,o=t.get("enableCellTextSelection"),i="mousemove"===e.type;return o&&i&&e.cancelable&&_isEventFromThisGrid(t,e)&&!(e=>{const t=e.target?.tagName.toLocaleLowerCase();return!!t?.match("^a$|textarea|input|select|button")})(e)}onTouchUp(e,t){let o=this.getFirstActiveTouch(e.changedTouches);o||(o=this.touchLastTime),this.onUpCommon(o,t)}onMouseUp(e,t){this.onUpCommon(e,t)}onUpCommon(e,t){this.dragging&&(this.dragging=!1,this.currentDragParams.onDragStop(e),this.eventSvc.dispatchEvent({type:"dragStopped",target:t})),this.resetDragProperties()}cancelDrag(e){this.eventSvc.dispatchEvent({type:"dragCancelled",target:e}),this.currentDragParams?.onDragCancel?.(),this.resetDragProperties()}resetDragProperties(){this.mouseStartEvent=null,this.startTarget=null,this.touchStart=null,this.touchLastTime=null,this.currentDragParams=null;const{dragEndFunctions:e}=this;e.forEach((e=>e())),e.length=0}}]},gi={moduleName:"DragAndDrop",version:R,dynamicBeans:{dndSourceComp:class extends Q{constructor(e,t,o){super(si),this.rowNode=e,this.column=t,this.eCell=o}postConstruct(){this.getGui().appendChild(_createIconNoSpan("rowDrag",this.beans,null)),this.addGuiEventListener("mousedown",(e=>{e.stopPropagation()})),this.addDragSource(),this.checkVisibility()}addDragSource(){this.addGuiEventListener("dragstart",this.onDragStart.bind(this))}onDragStart(e){const{rowNode:t,column:o,eCell:i,gos:s}=this,n=o.getColDef().dndSourceOnRowDrag,r=e.dataTransfer;if(r.setDragImage(i,0,0),n){n(_addGridCommonParams(s,{rowNode:t,dragEvent:e}))}else try{const e=JSON.stringify(t.data);r.setData("application/json",e),r.setData("text/plain",e)}catch(e){}}checkVisibility(){const e=this.column.isDndSource(this.rowNode);this.setDisplayed(e)}}},icons:{rowDrag:"grip"}},pi={moduleName:"SharedDragAndDrop",version:R,beans:[class extends I{constructor(){super(...arguments),this.beanName="dragAndDrop",this.dragSourceAndParamsList=[],this.dropTargets=[]}wireBeans(e){this.ctrlsSvc=e.ctrlsSvc,this.dragSvc=e.dragSvc,this.environment=e.environment,this.userCompFactory=e.userCompFactory}addDragSource(e,t=!1){const o={eElement:e.eElement,dragStartPixels:e.dragStartPixels,onDragStart:this.onDragStart.bind(this,e),onDragStop:this.onDragStop.bind(this),onDragging:this.onDragging.bind(this),onDragCancel:this.onDragCancel.bind(this),includeTouch:t};this.dragSourceAndParamsList.push({params:o,dragSource:e}),this.dragSvc.addDragSource(o)}getDragAndDropImageComponent(){const{dragAndDropImageComp:e}=this;return e&&e.comp?e.comp:null}removeDragSource(e){const{dragSourceAndParamsList:t,dragSvc:o}=this,i=t.find((t=>t.dragSource===e));i&&(o.removeDragSource(i.params),_removeFromArray(t,i))}destroy(){const{dragSourceAndParamsList:e,dragSvc:t,dropTargets:o}=this;e.forEach((e=>t.removeDragSource(e.params))),e.length=0,o.length=0,this.clearDragAndDropProperties(),super.destroy()}nudge(){this.dragging&&this.onDragging(this.eventLastTime,!0)}onDragStart(e,t){this.dragging=!0,this.dragSource=e,this.eventLastTime=t,this.dragItem=e.getDragItem(),e.onDragStarted?.(),this.createDragAndDropImageComponent()}onDragStop(e){this.dragSource?.onDragStopped?.();const{lastDropTarget:t}=this;if(t?.onDragStop){const o=this.createDropTargetEvent(t,e,null,null,!1);t.onDragStop(o)}this.clearDragAndDropProperties()}onDragCancel(){const{dragSource:e,lastDropTarget:t}=this;e?.onDragCancelled?.(),t?.onDragCancel&&t.onDragCancel(this.createDropTargetEvent(t,this.eventLastTime,null,null,!1)),this.clearDragAndDropProperties()}clearDragAndDropProperties(){this.eventLastTime=null,this.dragging=!1,this.lastDropTarget=void 0,this.dragItem=null,this.dragSource=null,this.removeDragAndDropImageComponent()}onDragging(e,t=!1){const o=this.getHorizontalDirection(e),i=this.getVerticalDirection(e);this.eventLastTime=e,this.positionDragAndDropImageComp(e);const s=this.dropTargets.filter((t=>this.isMouseOnDropTarget(e,t))),n=this.findCurrentDropTarget(e,s),{lastDropTarget:r,dragSource:a,dragAndDropImageComp:l,dragItem:d}=this;if(n!==r){if(this.leaveLastTargetIfExists(e,o,i,t),null!==r&&null===n&&a?.onGridExit?.(d),null===r&&null!==n&&a?.onGridEnter?.(d),this.enterDragTargetIfExists(n,e,o,i,t),n&&l){const{comp:e,promise:t}=l;e?e.setIcon(n.getIconName?n.getIconName():null,!1):t.then((e=>{e&&e.setIcon(n.getIconName?n.getIconName():null,!1)}))}this.lastDropTarget=n}else if(n&&n.onDragging){const s=this.createDropTargetEvent(n,e,o,i,t);n.onDragging(s)}}getAllContainersFromDropTarget(e){const t=e.getSecondaryContainers?e.getSecondaryContainers():null,o=[[e.getContainer()]];return t?o.concat(t):o}isMouseOnDropTarget(e,t){const o=this.getAllContainersFromDropTarget(t);let i=!1;const allContainersIntersect=(e,t)=>{for(const o of t){const{width:t,height:i,left:s,right:n,top:r,bottom:a}=o.getBoundingClientRect();if(0===t||0===i)return!1;const l=e.clientX>=s&&e.clientX<n,d=e.clientY>=r&&e.clientY<a;if(!l||!d)return!1}return!0};for(const t of o)if(allContainersIntersect(e,t)){i=!0;break}const{eElement:s,type:n}=this.dragSource;return!(t.targetContainsSource&&!t.getContainer().contains(s))&&(i&&t.isInterestedIn(n,s))}findCurrentDropTarget(e,t){const o=t.length;if(0===o)return null;if(1===o)return t[0];const i=_getRootNode(this.beans).elementsFromPoint(e.clientX,e.clientY);for(const e of i)for(const o of t){if(-1!==this.getAllContainersFromDropTarget(o).flatMap((e=>e)).indexOf(e))return o}return null}enterDragTargetIfExists(e,t,o,i,s){if(e&&e.onDragEnter){const n=this.createDropTargetEvent(e,t,o,i,s);e.onDragEnter(n)}}leaveLastTargetIfExists(e,t,o,i){const{lastDropTarget:s}=this;if(!s)return;if(s.onDragLeave){const n=this.createDropTargetEvent(s,e,t,o,i);s.onDragLeave(n)}const n=this.getDragAndDropImageComponent();n&&n.setIcon(null,!1)}addDropTarget(e){this.dropTargets.push(e)}removeDropTarget(e){this.dropTargets=this.dropTargets.filter((t=>t.getContainer()!==e.getContainer()))}hasExternalDropZones(){return this.dropTargets.some((e=>e.external))}findExternalZone(e){return this.dropTargets.filter((e=>e.external)).find((t=>t.getContainer()===e.getContainer()))||null}isDropZoneWithinThisGrid(e){const t=this.ctrlsSvc.getGridBodyCtrl().eGridBody,{dropZoneTarget:o}=e;return t.contains(o)}getHorizontalDirection(e){const t=this.eventLastTime?.clientX,o=e.clientX;return t===o?null:t>o?"left":"right"}getVerticalDirection(e){const t=this.eventLastTime?.clientY,o=e.clientY;return t===o?null:t>o?"up":"down"}createDropTargetEvent(e,t,o,i,s){const n=e.getContainer(),r=n.getBoundingClientRect(),{dragItem:a,dragSource:l,gos:d}=this;return _addGridCommonParams(d,{event:t,x:t.clientX-r.left,y:t.clientY-r.top,vDirection:i,hDirection:o,dragSource:l,fromNudge:s,dragItem:a,dropZoneTarget:n})}positionDragAndDropImageComp(e){const t=this.getDragAndDropImageComponent();t&&_anchorElementToMouseMoveEvent(t.getGui(),e,this.beans)}removeDragAndDropImageComponent(){const{dragAndDropImageComp:e}=this;if(e){const{comp:t}=e;if(t){const e=t.getGui();this.dragAndDropImageParent?.removeChild(e),this.destroyBean(t)}}this.dragAndDropImageComp=null}createDragAndDropImageComponent(){const{dragSource:e,gos:t,userCompFactory:o}=this;if(!e)return;const i=function _getDragAndDropImageCompDetails(e,t){return e.getCompDetailsFromGridOptions(J,"agDragAndDropImage",t,!0)}(o,_addGridCommonParams(t,{dragSource:e}));if(!i)return;const s=i.newAgStackInstance();this.dragAndDropImageComp={promise:s},s.then((e=>{e&&this.isAlive()&&(this.processDragAndDropImageComponent(e),this.dragAndDropImageComp.comp=e)}))}processDragAndDropImageComponent(e){const{dragSource:t,environment:o}=this;if(!t)return;const i=e.getGui();i.style.setProperty("position","absolute"),i.style.setProperty("z-index","9999"),_stampTopLevelGridCompWithGridInstance(this.gos,i),o.applyThemeClasses(i),e.setIcon(null,!1);let{dragItemName:s}=t;"function"==typeof s&&(s=s()),e.setLabel(s||""),i.style.top="20px",i.style.left="20px";const n=_getPageBody(this.beans);this.dragAndDropImageParent=n,n?n.appendChild(i):_warn(54)}registerGridDropTarget(e,t){const o={getContainer:e,isInterestedIn:e=>1===e||0===e,getIconName:()=>"notAllowed"};this.addDropTarget(o),t.addDestroyFunc((()=>this.removeDropTarget(o)))}}],dependsOn:[ui],userComponents:{agDragAndDropImage:class extends Q{constructor(){super(),this.dragSource=null,this.eIcon=q,this.eLabel=q,this.eGhost=q,this.registerCSS(".ag-dnd-ghost{align-items:center;background-color:var(--ag-drag-and-drop-image-background-color);border:var(--ag-drag-and-drop-image-border);border-radius:var(--ag-border-radius);box-shadow:var(--ag-drag-and-drop-image-shadow);color:var(--ag-text-color);cursor:move;display:flex;font-weight:500;gap:var(--ag-cell-widget-spacing);height:var(--ag-header-height);overflow:hidden;padding-left:var(--ag-cell-horizontal-padding);padding-right:var(--ag-cell-horizontal-padding);text-overflow:ellipsis;transform:translateY(calc(var(--ag-spacing)*2));white-space:nowrap}")}postConstruct(){const create=e=>function _createIcon(e,t,o){const i=_createIconNoSpan(e,t,o);if(i){const{className:e}=i;if("string"==typeof e&&e.indexOf("ag-icon")>-1||"object"==typeof e&&e["ag-icon"])return i}const s=_createElement({tag:"span"});return s.appendChild(i),s}(e,this.beans,null);this.dropIconMap={pinned:create("columnMovePin"),hide:create("columnMoveHide"),move:create("columnMoveMove"),left:create("columnMoveLeft"),right:create("columnMoveRight"),group:create("columnMoveGroup"),aggregate:create("columnMoveValue"),pivot:create("columnMovePivot"),notAllowed:create("dropNotAllowed")}}init(e){this.dragSource=e.dragSource,this.setTemplate(bo),this.beans.environment.applyThemeClasses(this.eGhost)}destroy(){this.dragSource=null,super.destroy()}setIcon(e,t){const{eIcon:o,dragSource:i,dropIconMap:s,gos:n}=this;_clearElement(o);let r=null;e||(e=i?.getDefaultIconName?i.getDefaultIconName():"notAllowed"),r=s[e],o.classList.toggle("ag-shake-left-to-right",t),r===s.hide&&n.get("suppressDragLeaveHidesColumns")||r&&o.appendChild(r)}setLabel(e){this.eLabel.textContent=e}}},icons:{columnMovePin:"pin",columnMoveHide:"eye-slash",columnMoveMove:"arrows",columnMoveLeft:"left",columnMoveRight:"right",columnMoveGroup:"group",columnMoveValue:"aggregation",columnMovePivot:"pivot",dropNotAllowed:"not-allowed",rowDrag:"grip"}},mi={moduleName:"RowDrag",version:R,beans:[class extends I{constructor(){super(...arguments),this.beanName="rowDropHighlightSvc",this.uiLevel=0,this.row=null,this.position="none"}postConstruct(){this.addManagedEventListeners({modelUpdated:this.onModelUpdated.bind(this)})}onModelUpdated(){const e=this.row;e&&null!==e.rowIndex&&"none"!==this.position?this.set(e,this.position):this.clear()}destroy(){this.clear(),super.destroy()}clear(){const e=this.row;e&&(this.uiLevel=0,this.position="none",this.row=null,e.dispatchRowEvent("rowHighlightChanged"))}set(e,t){const o=e!==this.row,i=e.uiLevel,s=t!==this.position,n=i!==this.uiLevel;(o||s||n)&&(o&&this.clear(),this.uiLevel=i,this.position=t,this.row=e,e.dispatchRowEvent("rowHighlightChanged"))}},class extends I{constructor(){super(...arguments),this.beanName="rowDragSvc"}setupRowDrag(e,t){const o=t.createManagedBean(new hi(e)),i=this.beans.dragAndDrop;i.addDropTarget(o),t.addDestroyFunc((()=>i.removeDropTarget(o))),this.rowDragFeature=o}createRowDragComp(e,t,o,i,s,n){return new ri(e,t,o,i,s,n)}createRowDragCompForRow(e,t){if(_isCellSelectionEnabled(this.gos))return;const o=this.getLocaleTextFunc();return this.createRowDragComp((()=>`1 ${o("rowDragRow","row")}`),e,void 0,t,void 0,!0)}createRowDragCompForCell(e,t,o,i,s,n){const r=this.gos;if(r.get("rowDragManaged")&&(!_isClientSideRowModel(r)||r.get("pagination")))return;return this.createRowDragComp(o,e,t,i,s,n)}}],apiFunctions:{addRowDropZone:function addRowDropZone(e,t){e.rowDragSvc?.rowDragFeature?.addRowDropZone(t)},removeRowDropZone:function removeRowDropZone(e,t){const o=e.dragAndDrop?.findExternalZone(t);o&&e.dragAndDrop?.removeDropTarget(o)},getRowDropZoneParams:function getRowDropZoneParams(e,t){return e.rowDragSvc?.rowDragFeature?.getRowDropZone(t)},getRowDropPositionIndicator:function getRowDropPositionIndicator(e){const t=e.rowDropHighlightSvc;return t?{row:t.row,dropIndicatorPosition:t.position}:{row:null,dropIndicatorPosition:"none"}},setRowDropPositionIndicator:function setRowDropPositionIndicator(e,t){const o=e.rowDropHighlightSvc;if(!o)return;const i=t?.row;let s=t?.dropIndicatorPosition;"above"!==s&&"below"!==s&&"inside"!==s&&(s="none");const n=i?.rowIndex;null==n||"none"===s?o.clear():o.set(i,s)}},dependsOn:[pi]},fi={moduleName:"HorizontalResize",version:R,beans:[class extends I{constructor(){super(...arguments),this.beanName="horizontalResizeSvc"}addResizeBar(e){const t={dragStartPixels:e.dragStartPixels||0,eElement:e.eResizeBar,onDragStart:this.onDragStart.bind(this,e),onDragStop:this.onDragStop.bind(this,e),onDragging:this.onDragging.bind(this,e),onDragCancel:this.onDragStop.bind(this,e),includeTouch:!0,stopPropagationForTouch:!0},{dragSvc:o}=this.beans;o.addDragSource(t);return()=>o.removeDragSource(t)}onDragStart(e,t){this.dragStartX=t.clientX,this.setResizeIcons();const o=t instanceof MouseEvent&&!0===t.shiftKey;e.onResizeStart(o)}setResizeIcons(){const e=this.beans.ctrlsSvc.get("gridCtrl");e.setResizeCursor(!0),e.disableUserSelect(!0)}onDragStop(e){e.onResizeEnd(this.resizeAmount),this.resetIcons()}resetIcons(){const e=this.beans.ctrlsSvc.get("gridCtrl");e.setResizeCursor(!1),e.disableUserSelect(!1)}onDragging(e,t){this.resizeAmount=t.clientX-this.dragStartX,e.onResizing(this.resizeAmount)}}],dependsOn:[ui]};var Ci=class extends I{constructor(e){super(),this.pinned=e,this.columnsToAggregate=[],this.columnsToGroup=[],this.columnsToPivot=[]}onDragEnter(e){if(this.clearColumnsList(),this.gos.get("functionsReadOnly"))return;const t=e.dragItem.columns;t&&t.forEach((e=>{e.isPrimary()&&(e.isAnyFunctionActive()||(e.isAllowValue()?this.columnsToAggregate.push(e):e.isAllowRowGroup()?this.columnsToGroup.push(e):e.isAllowPivot()&&this.columnsToPivot.push(e)))}))}getIconName(){return this.columnsToAggregate.length+this.columnsToGroup.length+this.columnsToPivot.length>0?this.pinned?"pinned":"move":null}onDragLeave(e){this.clearColumnsList()}clearColumnsList(){this.columnsToAggregate.length=0,this.columnsToGroup.length=0,this.columnsToPivot.length=0}onDragging(e){}onDragStop(e){const{valueColsSvc:t,rowGroupColsSvc:o,pivotColsSvc:i}=this.beans;this.columnsToAggregate.length>0&&t?.addColumns(this.columnsToAggregate,"toolPanelDragAndDrop"),this.columnsToGroup.length>0&&o?.addColumns(this.columnsToGroup,"toolPanelDragAndDrop"),this.columnsToPivot.length>0&&i?.addColumns(this.columnsToPivot,"toolPanelDragAndDrop")}onDragCancel(){this.clearColumnsList()}};function getBestColumnMoveIndexFromXPosition(e){const{isFromHeader:t,fromLeft:o,xPosition:i,fromEnter:s,fakeEvent:n,pinned:r,gos:a,colModel:l,colMoves:d,visibleCols:c}=e;let{allMovingColumns:h}=e;if(t){const e=[];h.forEach((t=>{let o=null,i=t.getParent();for(;null!=i&&1===i.getDisplayedLeafColumns().length;)o=i,i=i.getParent();if(null!=o){(!!o.getColGroupDef()?.marryChildren?o.getProvidedColumnGroup().getLeafColumns():o.getLeafColumns()).forEach((t=>{e.includes(t)||e.push(t)}))}else e.includes(t)||e.push(t)})),h=e}const u=h.slice();!function sortColsLikeCols(e,t){if(!t||t.length<=1)return;t.filter((t=>e.indexOf(t)<0)).length>0||t.sort(((t,o)=>e.indexOf(t)-e.indexOf(o)))}(l.getCols(),u);const g=function calculateValidMoves(e){const{movingCols:t,draggingRight:o,xPosition:i,pinned:s,gos:n,colModel:r,visibleCols:a}=e;if(n.get("suppressMovableColumns")||t.some((e=>e.getColDef().suppressMovable)))return[];const l=function getDisplayedColumns(e,t){switch(t){case"left":return e.leftCols;case"right":return e.rightCols;default:return e.centerCols}}(a,s),d=r.getCols(),c=l.filter((e=>t.includes(e))),h=l.filter((e=>!t.includes(e))),u=d.filter((e=>!t.includes(e)));let g,p=0,m=i;if(o){let e=0;c.forEach((t=>e+=t.getActualWidth())),m-=e}if(m>0){for(let e=0;e<h.length;e++){if(m-=h[e].getActualWidth(),m<0)break;p++}o&&p++}if(p>0){const e=h[p-1];g=u.indexOf(e)+1}else g=u.indexOf(h[0]),-1===g&&(g=0);const f=[g],numberComparator=(e,t)=>e-t;if(o){let e=g+1;const t=d.length-1;for(;e<=t;)f.push(e),e++;f.sort(numberComparator)}else{let e=g;const t=d.length-1;let o=d[e];for(;e<=t&&l.indexOf(o)<0;)e++,f.push(e),o=d[e];e=g-1;const i=0;for(;e>=i;)f.push(e),e--;f.sort(numberComparator).reverse()}return f}({movingCols:u,draggingRight:o,xPosition:i,pinned:r,gos:a,colModel:l,visibleCols:c}),p=function calculateOldIndex(e,t){const o=t.getCols(),i=e.map((e=>o.indexOf(e))).sort(((e,t)=>e-t)),s=i[0],n=_last(i);return n-s!=i.length-1?null:s}(u,l);if(0===g.length)return;const m=g[0];let f=null!==p&&!s;if(t&&(f=null!==p),f&&!n){if(!o&&m>=p)return;if(o&&m<=p)return}const C=c.allCols,w=[];let v=null;for(let e=0;e<g.length;e++){const t=g[e],o=d.getProposedColumnOrder(u,t);if(!d.doesOrderPassRules(o))continue;const i=o.filter((e=>C.includes(e)));if(null===v)v=i;else if(!_areEqual(i,v))break;const s=groupFragCount(o);w.push({move:t,fragCount:s})}if(0===w.length)return;w.sort(((e,t)=>e.fragCount-t.fragCount));const b=w[0].move;return b>l.getCols().length-h.length?void 0:{columns:h,toIndex:b}}function attemptMoveColumns(e){const{columns:t,toIndex:o}=getBestColumnMoveIndexFromXPosition(e)||{},{finished:i,colMoves:s}=e;return t&&null!=o?(s.moveColumns(t,o,"uiColumnMoved",i),i?null:{columns:t,toIndex:o}):null}function groupFragCount(e){function parents(e){const t=[];let o=e.getOriginalParent();for(;null!=o;)t.push(o),o=o.getOriginalParent();return t}let t=0;for(let o=0;o<e.length-1;o++){let i=parents(e[o]),s=parents(e[o+1]);[i,s]=i.length>s.length?[i,s]:[s,i],i.forEach((e=>{-1===s.indexOf(e)&&t++}))}return t}function normaliseX(e){const{pinned:t,fromKeyboard:o,gos:i,ctrlsSvc:s,useHeaderRow:n,skipScrollPadding:r}=e;let a=s.getHeaderRowContainerCtrl(t)?.eViewport,{x:l}=e;return a?(o&&(l-=a.getBoundingClientRect().left),i.get("enableRtl")&&(n&&(a=a.querySelector(".ag-header-row")),l=a.clientWidth-l),null!=t||r||(l+=s.get("center").getCenterViewportScrollLeft()),l):0}function setColumnsMoving(e,t){for(const o of e)o.moving=t,o.dispatchColEvent("movingChanged","uiColumnMoved")}var wi=class extends I{constructor(e){super(),this.pinned=e,this.needToMoveLeft=!1,this.needToMoveRight=!1,this.lastMovedInfo=null,this.isCenterContainer=!_exists(e)}postConstruct(){this.beans.ctrlsSvc.whenReady(this,(e=>{this.gridBodyCon=e.gridBodyCtrl}))}getIconName(){const{pinned:e,lastDraggingEvent:t}=this,{dragItem:o}=t||{},i=o?.columns??[];for(const t of i){const i=t.getPinned();if(t.getColDef().lockPinned){if(i==e)return"move";continue}const s=o?.containerType;if(s===e||!e)return"move";if(e&&(!i||s!==e))return"pinned"}return"notAllowed"}onDragEnter(e){const t=e.dragItem,o=t.columns;if(0===e.dragSource.type)this.setColumnsVisible(o,!0,"uiColumnDragged");else{const e=t.visibleState,i=(o||[]).filter((t=>e[t.getId()]));this.setColumnsVisible(i,!0,"uiColumnDragged")}this.gos.get("suppressMoveWhenColumnDragging")||this.attemptToPinColumns(o,this.pinned),this.onDragging(e,!0,!0)}onDragging(e=this.lastDraggingEvent,t=!1,o=!1,i=!1){const{gos:s,ctrlsSvc:n}=this.beans,r=s.get("suppressMoveWhenColumnDragging");if(i&&!r)return void this.finishColumnMoving();if(this.lastDraggingEvent=e,!e||!i&&_missing(e.hDirection))return;const a=normaliseX({x:e.x,pinned:this.pinned,gos:s,ctrlsSvc:n});t||this.checkCenterForScrolling(a),r?this.handleColumnDragWhileSuppressingMovement(e,t,o,a,i):this.handleColumnDragWhileAllowingMovement(e,t,o,a,i)}onDragLeave(){this.ensureIntervalCleared(),this.clearHighlighted(),this.updateDragItemContainerType(),this.lastMovedInfo=null}onDragStop(){this.onDragging(this.lastDraggingEvent,!1,!0,!0),this.ensureIntervalCleared(),this.lastMovedInfo=null}onDragCancel(){this.clearHighlighted(),this.ensureIntervalCleared(),this.lastMovedInfo=null}setColumnsVisible(e,t,o){if(!e)return;const i=e.filter((e=>!e.getColDef().lockVisible));this.beans.colModel.setColsVisible(i,t,o)}finishColumnMoving(){this.clearHighlighted();const e=this.lastMovedInfo;if(!e)return;const{columns:t,toIndex:o}=e;this.beans.colMoves.moveColumns(t,o,"uiColumnMoved",!0)}updateDragItemContainerType(){const{lastDraggingEvent:e}=this;if(this.gos.get("suppressMoveWhenColumnDragging")||!e)return;const t=e.dragItem;t&&(t.containerType=this.pinned)}handleColumnDragWhileSuppressingMovement(e,t,o,i,s){const n=this.getAllMovingColumns(e,!0);if(s){const e=this.isAttemptingToPin(n);e&&this.attemptToPinColumns(n,void 0,!0);const{fromLeft:i,xPosition:s}=this.getNormalisedXPositionInfo(n,e)||{};if(null==i||null==s)return void this.finishColumnMoving();this.moveColumnsAfterHighlight({allMovingColumns:n,xPosition:s,fromEnter:t,fakeEvent:o,fromLeft:i})}else{if(!this.beans.dragAndDrop.isDropZoneWithinThisGrid(e))return;this.highlightHoveredColumn(n,i)}}handleColumnDragWhileAllowingMovement(e,t,o,i,s){const n=this.getAllMovingColumns(e),r="right"===this.normaliseDirection(e.hDirection),a=1===e.dragSource.type,l=attemptMoveColumns({...this.getMoveColumnParams({allMovingColumns:n,isFromHeader:a,xPosition:i,fromLeft:r,fromEnter:t,fakeEvent:o}),finished:s});l&&(this.lastMovedInfo=l)}getAllMovingColumns(e,t=!1){const o=e.dragSource.getDragItem();let i=null;t?(i=o.columnsInSplit,i||(i=o.columns)):i=o.columns;return i?i.filter((e=>!e.getColDef().lockPinned||e.getPinned()==this.pinned)):[]}getMoveColumnParams(e){const{allMovingColumns:t,isFromHeader:o,xPosition:i,fromLeft:s,fromEnter:n,fakeEvent:r}=e,{gos:a,colModel:l,colMoves:d,visibleCols:c}=this.beans;return{allMovingColumns:t,isFromHeader:o,fromLeft:s,xPosition:i,pinned:this.pinned,fromEnter:n,fakeEvent:r,gos:a,colModel:l,colMoves:d,visibleCols:c}}highlightHoveredColumn(e,t){const{gos:o,colModel:i}=this.beans,s=o.get("enableRtl"),n=i.getCols().filter((e=>e.isVisible()&&e.getPinned()===this.pinned));let r,a=null,l=null,d=null;for(const e of n){if(l=e.getActualWidth(),a=this.getNormalisedColumnLeft(e,0,s),null!=a){const o=a+l;if(a<=t&&o>=t){d=e;break}}a=null,l=null}if(d)-1!==e.indexOf(d)&&(d=null);else{for(let e=n.length-1;e>=0;e--){const t=n[e],o=n[e].getParent();if(!o){d=t;break}const i=o?.getDisplayedLeafColumns();if(i.length){d=_last(i);break}}if(!d)return;a=this.getNormalisedColumnLeft(d,0,s),l=d.getActualWidth()}this.lastHighlightedColumn?.column!==d&&this.clearHighlighted(),null!=d&&null!=a&&null!=l&&(r=t-a<l/2!==s?0:1,setColumnHighlighted(d,r),this.lastHighlightedColumn={column:d,position:r})}getNormalisedXPositionInfo(e,t){const{gos:o,visibleCols:i}=this.beans,s=o.get("enableRtl"),{firstMovingCol:n,column:r,position:a}=this.getColumnMoveAndTargetInfo(e,t,s);if(!n||!r||null==a)return;const l=i.allCols,d=l.indexOf(n),c=l.indexOf(r),h=0===a!==s,u=d<c||d===c&&!h;let g=0;if(h?u&&(g-=1):u||(g+=1),c+g===d)return;const p=l[c+g];if(!p)return;return{fromLeft:u,xPosition:this.getNormalisedColumnLeft(p,20,s)}}getColumnMoveAndTargetInfo(e,t,o){const i=this.lastHighlightedColumn||{},{firstMovingCol:s,lastMovingCol:n}=function findFirstAndLastMovingColumns(e){const t=e.length;let o,i;for(let s=0;s<t;s++){if(!o){const t=e[s];null!=t.getLeft()&&(o=t)}if(!i){const o=e[t-1-s];null!=o.getLeft()&&(i=o)}if(o&&i)break}return{firstMovingCol:o,lastMovingCol:i}}(e);if(!s||!n||i.column||!t)return{firstMovingCol:s,...i};const r="left"===this.getPinDirection();return{firstMovingCol:s,position:r?1:0,column:r!==o?s:n}}normaliseDirection(e){if(this.gos.get("enableRtl"))switch(e){case"left":return"right";case"right":return"left"}return e}getNormalisedColumnLeft(e,t,o){const{gos:i,ctrlsSvc:s}=this.beans,n=e.getLeft();if(null==n)return null;const r=e.getActualWidth();return normaliseX({x:o?n+r-t:n+t,pinned:e.getPinned(),useHeaderRow:o,skipScrollPadding:!0,gos:i,ctrlsSvc:s})}isAttemptingToPin(e){const t=this.needToMoveLeft||this.needToMoveRight,o=this.failedMoveAttempts>7;return t&&o||e.some((e=>e.getPinned()!==this.pinned))}moveColumnsAfterHighlight(e){const{allMovingColumns:t,xPosition:o,fromEnter:i,fakeEvent:s,fromLeft:n}=e,r=this.getMoveColumnParams({allMovingColumns:t,isFromHeader:!0,xPosition:o,fromLeft:n,fromEnter:i,fakeEvent:s}),{columns:a,toIndex:l}=getBestColumnMoveIndexFromXPosition(r)||{};a&&null!=l&&(this.lastMovedInfo={columns:a,toIndex:l}),this.finishColumnMoving()}clearHighlighted(){const{lastHighlightedColumn:e}=this;e&&(setColumnHighlighted(e.column,null),this.lastHighlightedColumn=null)}checkCenterForScrolling(e){if(!this.isCenterContainer)return;const t=this.beans.ctrlsSvc.get("center"),o=t.getCenterViewportScrollLeft(),i=o+t.getCenterWidth();let s,n;this.gos.get("enableRtl")?(s=e<o+50,n=e>i-50):(n=e<o+50,s=e>i-50),this.needToMoveRight=s,this.needToMoveLeft=n,n||s?this.ensureIntervalStarted():this.ensureIntervalCleared()}ensureIntervalStarted(){this.movingIntervalId||(this.intervalCount=0,this.failedMoveAttempts=0,this.movingIntervalId=window.setInterval(this.moveInterval.bind(this),100),this.beans.dragAndDrop.getDragAndDropImageComponent()?.setIcon(this.needToMoveLeft?"left":"right",!0))}ensureIntervalCleared(){this.movingIntervalId&&(window.clearInterval(this.movingIntervalId),this.movingIntervalId=null,this.failedMoveAttempts=0,this.beans.dragAndDrop.getDragAndDropImageComponent()?.setIcon(this.getIconName(),!1))}moveInterval(){let e;this.intervalCount++,e=10+5*this.intervalCount,e>100&&(e=100);let t=null;const o=this.gridBodyCon.scrollFeature;if(this.needToMoveLeft?t=o.scrollHorizontally(-e):this.needToMoveRight&&(t=o.scrollHorizontally(e)),0!==t)this.onDragging(this.lastDraggingEvent),this.failedMoveAttempts=0;else{this.failedMoveAttempts++;const{pinnedCols:e,dragAndDrop:t,gos:o}=this.beans;if(this.failedMoveAttempts<=8||!e)return;if(t.getDragAndDropImageComponent()?.setIcon("pinned",!1),!o.get("suppressMoveWhenColumnDragging")){const e=this.lastDraggingEvent?.dragItem.columns;this.attemptToPinColumns(e,void 0,!0)}}}getPinDirection(){return this.needToMoveLeft||"left"===this.pinned?"left":this.needToMoveRight||"right"===this.pinned?"right":void 0}attemptToPinColumns(e,t,o=!1){const i=(e||[]).filter((e=>!e.getColDef().lockPinned));if(!i.length)return 0;o&&(t=this.getPinDirection());const{pinnedCols:s,dragAndDrop:n}=this.beans;return s?.setColsPinned(i,t,"uiColumnDragged"),o&&n.nudge(),i.length}destroy(){super.destroy(),this.lastDraggingEvent=null,this.clearHighlighted(),this.lastMovedInfo=null}};function setColumnHighlighted(e,t){e.highlighted!==t&&(e.highlighted=t,e.dispatchColEvent("headerHighlightChanged","uiColumnMoved"))}var vi=class extends I{constructor(e,t){super(),this.pinned=e,this.eContainer=t}postConstruct(){const{ctrlsSvc:e,dragAndDrop:t}=this.beans,o=this.pinned;e.whenReady(this,(e=>{let t;const i=e.gridBodyCtrl.eBodyViewport;switch(o){case"left":t=[[i,e.left.eContainer],[e.bottomLeft.eContainer],[e.topLeft.eContainer]];break;case"right":t=[[i,e.right.eContainer],[e.bottomRight.eContainer],[e.topRight.eContainer]];break;default:t=[[i,e.center.eViewport],[e.bottomCenter.eViewport],[e.topCenter.eViewport]]}this.eSecondaryContainers=t})),this.moveColumnFeature=this.createManagedBean(new wi(o)),this.bodyDropPivotTarget=this.createManagedBean(new Ci(o)),t.addDropTarget(this),this.addDestroyFunc((()=>t.removeDropTarget(this)))}isInterestedIn(e){return 1===e||0===e&&this.gos.get("allowDragFromColumnsToolPanel")}getSecondaryContainers(){return this.eSecondaryContainers}getContainer(){return this.eContainer}getIconName(){return this.currentDropListener.getIconName()}isDropColumnInPivotMode(e){return this.beans.colModel.isPivotMode()&&0===e.dragSource.type}onDragEnter(e){this.currentDropListener=this.isDropColumnInPivotMode(e)?this.bodyDropPivotTarget:this.moveColumnFeature,this.currentDropListener.onDragEnter(e)}onDragLeave(e){this.currentDropListener.onDragLeave(e)}onDragging(e){this.currentDropListener.onDragging(e)}onDragStop(e){this.currentDropListener.onDragStop(e)}onDragCancel(){this.currentDropListener.onDragCancel()}};var bi={moduleName:"ColumnMove",version:R,beans:[class extends I{constructor(){super(...arguments),this.beanName="colMoves"}moveColumnByIndex(e,t,o){const i=this.beans.colModel.getCols();if(!i)return;const s=i[e];this.moveColumns([s],t,o)}moveColumns(e,t,o,i=!0){const{colModel:s,colAnimation:n,visibleCols:r,eventSvc:a}=this.beans,l=s.getCols();if(!l)return;if(t>l.length-e.length)return void _warn(30,{toIndex:t});n?.start();const d=s.getColsForKeys(e);this.doesMovePassRules(d,t)&&(_moveInArray(s.getCols(),d,t),r.refresh(o),a.dispatchEvent({type:"columnMoved",columns:d,column:1===d.length?d[0]:null,toIndex:t,finished:i,source:o})),n?.finish()}doesMovePassRules(e,t){const o=this.getProposedColumnOrder(e,t);return this.doesOrderPassRules(o)}doesOrderPassRules(e){const{colModel:t,gos:o}=this.beans;if(!doesMovePassMarryChildren(e,t.getColTree()))return!1;return!!(e=>{const t=o.get("enableRtl");let i=t?1:-1,s=!0;return e.forEach((e=>{const o=(n=e.getColDef().lockPosition)?"left"===n||!0===n?-1:1:0;var n;t?o>i&&(s=!1):o<i&&(s=!1),i=o})),s})(e)}getProposedColumnOrder(e,t){const o=this.beans.colModel.getCols().slice();return _moveInArray(o,e,t),o}createBodyDropTarget(e,t){return new vi(e,t)}moveHeader(e,t,o,i,s){const{ctrlsSvc:n,gos:r,colModel:a,visibleCols:l,focusSvc:d}=this.beans,c=t.getBoundingClientRect(),h=c.left,u=isColumnGroup(o),g=u?c.width:o.getActualWidth(),p="left"===e!==r.get("enableRtl"),m=normaliseX({x:p?h-20:h+g+20,pinned:i,fromKeyboard:!0,gos:r,ctrlsSvc:n}),f=d.focusedHeader;let C;if(attemptMoveColumns({allMovingColumns:u?o.getLeafColumns():[o],isFromHeader:!0,fromLeft:"right"===e,xPosition:m,pinned:i,fromEnter:!1,fakeEvent:!1,gos:r,colModel:a,colMoves:this,visibleCols:l,finished:!0}),u){const e=o.getDisplayedLeafColumns();C=p?e[0]:_last(e)}else C=o;if(n.getScrollFeature().ensureColumnVisible(C,"auto"),(!s.isAlive()||r.get("ensureDomOrder"))&&f){let e;if(u){const t=o.getGroupId(),i=o.getLeafColumns();if(!i.length)return;const s=i[0].getParent();if(!s)return;e=function findGroupWidthId(e,t){for(;e;){if(e.getGroupId()===t)return e;e=e.getParent()}return}(s,t)}else e=o;e&&d.focusHeaderPosition({headerPosition:{...f,column:e}})}}setDragSourceForHeader(e,t,o){const{gos:i,colModel:s,dragAndDrop:n,visibleCols:r}=this.beans;let a=!i.get("suppressDragLeaveHidesColumns");const l=isColumnGroup(t),d=l?t.getProvidedColumnGroup().getLeafColumns():[t],c=l?()=>function createDragItemForGroup(e,t){const o=e.getProvidedColumnGroup().getLeafColumns(),i={};o.forEach((e=>i[e.getId()]=e.isVisible()));const s=[];t.forEach((e=>{o.indexOf(e)>=0&&(s.push(e),_removeFromArray(o,e))})),o.forEach((e=>s.push(e)));const n=[],r=e.getLeafColumns();for(const e of s)-1!==r.indexOf(e)&&n.push(e);return{columns:s,columnsInSplit:n,visibleState:i,containerType:n[0]?.pinned}}(t,r.allCols):()=>function createDragItem(e){const t={};return t[e.getId()]=e.isVisible(),{columns:[e],visibleState:t,containerType:e.pinned}}(t),h={type:1,eElement:e,getDefaultIconName:()=>a?"hide":"notAllowed",getDragItem:c,dragItemName:o,onDragStarted:()=>{a=!i.get("suppressDragLeaveHidesColumns"),setColumnsMoving(d,!0)},onDragStopped:()=>setColumnsMoving(d,!1),onDragCancelled:()=>setColumnsMoving(d,!1),onGridEnter:e=>{if(a){const{columns:t=[],visibleState:o}=e??{},i=l?e=>!o||o[e.getColId()]:()=>!0,n=t.filter((e=>!e.getColDef().lockVisible&&i(e)));s.setColsVisible(n,!0,"uiColumnMoved")}},onGridExit:e=>{if(a){const t=e?.columns?.filter((e=>!e.getColDef().lockVisible))||[];s.setColsVisible(t,!1,"uiColumnMoved")}}};return n.addDragSource(h,!0),h}},class extends I{constructor(){super(...arguments),this.beanName="colAnimation",this.executeNextFuncs=[],this.executeLaterFuncs=[],this.active=!1,this.activeNext=!1,this.suppressAnimation=!1,this.animationThreadCount=0}postConstruct(){this.beans.ctrlsSvc.whenReady(this,(e=>this.gridBodyCtrl=e.gridBodyCtrl))}isActive(){return this.active&&!this.suppressAnimation}setSuppressAnimation(e){this.suppressAnimation=e}start(){if(this.active)return;const{gos:e}=this;e.get("suppressColumnMoveAnimation")||e.get("enableRtl")||(this.ensureAnimationCssClassPresent(),this.active=!0,this.activeNext=!0)}finish(){this.active&&this.flush((()=>this.activeNext=!1),(()=>this.active=!1))}executeNextVMTurn(e){this.activeNext?this.executeNextFuncs.push(e):e()}executeLaterVMTurn(e){this.active?this.executeLaterFuncs.push(e):e()}ensureAnimationCssClassPresent(){this.animationThreadCount++;const e=this.animationThreadCount,{gridBodyCtrl:t}=this;t.setColumnMovingCss(!0),this.executeLaterFuncs.push((()=>{this.animationThreadCount===e&&t.setColumnMovingCss(!1)}))}flush(e,t){const{executeNextFuncs:o,executeLaterFuncs:i}=this;if(0===o.length&&0===i.length)return e(),void t();const runFuncs=e=>{for(;e.length;){const t=e.pop();t&&t()}};this.beans.frameworkOverrides.wrapIncoming((()=>{window.setTimeout((()=>{e(),runFuncs(o)}),0),window.setTimeout((()=>{t(),runFuncs(i)}),200)}))}}],apiFunctions:{moveColumnByIndex:function moveColumnByIndex(e,t,o){e.colMoves?.moveColumnByIndex(t,o,"api")},moveColumns:function moveColumns(e,t,o){e.colMoves?.moveColumns(t,o,"api")}},dependsOn:[pi],css:[":where(.ag-ltr) :where(.ag-column-moving){.ag-cell,.ag-header-cell,.ag-spanned-cell-wrapper{transition:left .2s}.ag-header-group-cell{transition:left .2s,width .2s}}:where(.ag-rtl) :where(.ag-column-moving){.ag-cell,.ag-header-cell,.ag-spanned-cell-wrapper{transition:right .2s}.ag-header-group-cell{transition:right .2s,width .2s}}"]},Si={moduleName:"AutoWidth",version:R,beans:[class extends I{constructor(){super(...arguments),this.beanName="autoWidthCalc"}postConstruct(){this.beans.ctrlsSvc.whenReady(this,(e=>{this.centerRowContainerCtrl=e.center}))}getPreferredWidthForColumn(e,t){const o=this.getHeaderCellForColumn(e);if(!o)return-1;const i=this.beans.rowRenderer.getAllCellsNotSpanningForColumn(e);return t||i.push(o),this.getPreferredWidthForElements(i)}getPreferredWidthForColumnGroup(e){const t=this.getHeaderCellForColumn(e);return t?this.getPreferredWidthForElements([t]):-1}getPreferredWidthForElements(e,t){const o=document.createElement("form");o.style.position="fixed";const i=this.centerRowContainerCtrl.eContainer;e.forEach((e=>this.cloneItemIntoDummy(e,o))),i.appendChild(o);const s=o.offsetWidth;return i.removeChild(o),s+(t=t??this.gos.get("autoSizePadding"))}getHeaderCellForColumn(e){let t=null;return this.beans.ctrlsSvc.getHeaderRowContainerCtrls().forEach((o=>{const i=o.getHtmlElementForColumnHeader(e);null!=i&&(t=i)})),t}cloneItemIntoDummy(e,t){const o=e.cloneNode(!0);o.style.width="",o.style.position="static",o.style.left="";const i=document.createElement("div"),s=i.classList;["ag-header-cell","ag-header-group-cell"].some((e=>o.classList.contains(e)))?(s.add("ag-header","ag-header-row"),i.style.position="static"):s.add("ag-row");let n=e.parentElement;for(;n;){if(["ag-header-row","ag-row"].some((e=>n.classList.contains(e)))){for(let e=0;e<n.classList.length;e++){const t=n.classList[e];"ag-row-position-absolute"!=t&&s.add(t)}break}n=n.parentElement}i.appendChild(o),t.appendChild(i)}}]};var yi=class extends I{constructor(e,t,o,i){super(),this.comp=e,this.eResize=t,this.pinned=o,this.columnGroup=i}postConstruct(){if(!this.columnGroup.isResizable())return void this.comp.setResizableDisplayed(!1);const{horizontalResizeSvc:e,gos:t,colAutosize:o}=this.beans,i=e.addResizeBar({eResizeBar:this.eResize,onResizeStart:this.onResizeStart.bind(this),onResizing:this.onResizing.bind(this,!1),onResizeEnd:this.onResizing.bind(this,!0)});this.addDestroyFunc(i),!t.get("suppressAutoSize")&&o&&this.addDestroyFunc(o.addColumnGroupResize(this.eResize,this.columnGroup,(()=>this.resizeLeafColumnsToFit("uiColumnResized"))))}onResizeStart(e){const{columnsToResize:t,resizeStartWidth:o,resizeRatios:i,groupAfterColumns:s,groupAfterStartWidth:n,groupAfterRatios:r}=this.getInitialValues(e);this.resizeCols=t,this.resizeStartWidth=o,this.resizeRatios=i,this.resizeTakeFromCols=s,this.resizeTakeFromStartWidth=n,this.resizeTakeFromRatios=r,this.toggleColumnResizing(!0)}onResizing(e,t,o="uiColumnResized"){const i=this.normaliseDragChange(t),s=this.resizeStartWidth+i;this.resizeColumnsFromLocalValues(s,o,e)}getInitialValues(e){const getInitialSizeOfColumns=e=>e.reduce(((e,t)=>e+t.getActualWidth()),0),getSizeRatiosOfColumns=(e,t)=>e.map((e=>e.getActualWidth()/t)),t=this.getColumnsToResize(),o=getInitialSizeOfColumns(t),i={columnsToResize:t,resizeStartWidth:o,resizeRatios:getSizeRatiosOfColumns(t,o)};let s=null;if(e&&(s=this.beans.colGroupSvc?.getGroupAtDirection(this.columnGroup,"After")??null),s){const e=s.getDisplayedLeafColumns(),t=i.groupAfterColumns=e.filter((e=>e.isResizable())),o=i.groupAfterStartWidth=getInitialSizeOfColumns(t);i.groupAfterRatios=getSizeRatiosOfColumns(t,o)}else i.groupAfterColumns=void 0,i.groupAfterStartWidth=void 0,i.groupAfterRatios=void 0;return i}resizeLeafColumnsToFit(e){const t=this.beans.autoWidthCalc.getPreferredWidthForColumnGroup(this.columnGroup),o=this.getInitialValues();t>o.resizeStartWidth&&this.resizeColumns(o,t,e,!0)}resizeColumnsFromLocalValues(e,t,o=!0){if(!this.resizeCols||!this.resizeRatios)return;const i={columnsToResize:this.resizeCols,resizeStartWidth:this.resizeStartWidth,resizeRatios:this.resizeRatios,groupAfterColumns:this.resizeTakeFromCols,groupAfterStartWidth:this.resizeTakeFromStartWidth,groupAfterRatios:this.resizeTakeFromRatios};this.resizeColumns(i,e,t,o)}resizeColumns(e,t,o,i=!0){const{columnsToResize:s,resizeStartWidth:n,resizeRatios:r,groupAfterColumns:a,groupAfterStartWidth:l,groupAfterRatios:d}=e,c=[];if(c.push({columns:s,ratios:r,width:t}),a){const e=t-n;c.push({columns:a,ratios:d,width:l-e})}this.beans.colResize?.resizeColumnSets({resizeSets:c,finished:i,source:o}),i&&this.toggleColumnResizing(!1)}toggleColumnResizing(e){this.comp.toggleCss("ag-column-resizing",e)}getColumnsToResize(){return this.columnGroup.getDisplayedLeafColumns().filter((e=>e.isResizable()))}normaliseDragChange(e){let t=e;return this.gos.get("enableRtl")?"left"!==this.pinned&&(t*=-1):"right"===this.pinned&&(t*=-1),t}destroy(){super.destroy(),this.resizeCols=void 0,this.resizeRatios=void 0,this.resizeTakeFromCols=void 0,this.resizeTakeFromRatios=void 0}},Ri=class extends I{constructor(e,t,o,i,s){super(),this.pinned=e,this.column=t,this.eResize=o,this.comp=i,this.ctrl=s}postConstruct(){const e=[];let t,o;const addResize=()=>{if(_setDisplayed(this.eResize,t),!t)return;const{horizontalResizeSvc:i,colAutosize:s}=this.beans,n=i.addResizeBar({eResizeBar:this.eResize,onResizeStart:this.onResizeStart.bind(this),onResizing:this.onResizing.bind(this,!1),onResizeEnd:this.onResizing.bind(this,!0)});e.push(n),o&&s&&e.push(s.addColumnAutosize(this.eResize,this.column))},removeResize=()=>{e.forEach((e=>e())),e.length=0},refresh=()=>{const e=this.column.isResizable(),i=!this.gos.get("suppressAutoSize")&&!this.column.getColDef().suppressAutoSize;(e!==t||i!==o)&&(t=e,o=i,removeResize(),addResize())};refresh(),this.addDestroyFunc(removeResize),this.ctrl.setRefreshFunction("resize",refresh)}onResizing(e,t){const{column:o,lastResizeAmount:i,resizeStartWidth:s,beans:n}=this,r=this.normaliseResizeAmount(t),a=[{key:o,newWidth:s+r}],{pinnedCols:l,ctrlsSvc:d,colResize:c}=n;if(this.column.getPinned()){if((l?.leftWidth??0)+(l?.rightWidth??0)+(r-i)>_getInnerWidth(d.getGridBodyCtrl().eBodyViewport)-50)return}this.lastResizeAmount=r,c?.setColumnWidths(a,this.resizeWithShiftKey,e,"uiColumnResized"),e&&this.toggleColumnResizing(!1)}onResizeStart(e){this.resizeStartWidth=this.column.getActualWidth(),this.lastResizeAmount=0,this.resizeWithShiftKey=e,this.toggleColumnResizing(!0)}toggleColumnResizing(e){this.comp.toggleCss("ag-column-resizing",e)}normaliseResizeAmount(e){let t=e;const o="left"!==this.pinned,i="right"===this.pinned;return this.gos.get("enableRtl")?o&&(t*=-1):i&&(t*=-1),t}};var Fi={moduleName:"ColumnResize",version:R,beans:[class extends I{constructor(){super(...arguments),this.beanName="colResize"}setColumnWidths(e,t,o,i){const s=[],{colModel:n,gos:r,visibleCols:a}=this.beans;e.forEach((e=>{const o=n.getColDefCol(e.key)||n.getCol(e.key);if(!o)return;s.push({width:e.newWidth,ratios:[1],columns:[o]});if("shift"===r.get("colResizeDefault")&&(t=!t),t){const t=a.getColAfter(o);if(!t)return;const i=o.getActualWidth()-e.newWidth,n=t.getActualWidth()+i;s.push({width:n,ratios:[1],columns:[t]})}})),0!==s.length&&this.resizeColumnSets({resizeSets:s,finished:o,source:i})}resizeColumnSets(e){const{resizeSets:t,finished:o,source:i}=e;if(!(!t||t.every((e=>function checkMinAndMaxWidthsForSet(e){const{columns:t,width:o}=e;let i=0,s=0,n=!0;t.forEach((e=>{const t=e.getMinWidth();i+=t||0;const o=e.getMaxWidth();o>0?s+=o:n=!1}));const r=!n||o<=s;return o>=i&&r}(e))))){if(o){const e=t&&t.length>0?t[0].columns:null;dispatchColumnResizedEvent(this.eventSvc,e,o,i)}return}const s=[],n=[];t.forEach((e=>{const{width:t,columns:o,ratios:r}=e,a={},l={};o.forEach((e=>n.push(e)));let d=!0,c=0;for(;d;){if(c++,c>1e3){_error(31);break}d=!1;const e=[];let i=0,s=t;o.forEach(((t,o)=>{if(l[t.getId()])s-=a[t.getId()];else{e.push(t);const s=r[o];i+=s}}));const n=1/i;e.forEach(((o,i)=>{let c;i===e.length-1?c=s:(c=Math.round(r[i]*t*n),s-=c);const h=o.getMinWidth(),u=o.getMaxWidth();c<h?(c=h,l[o.getId()]=!0,d=!0):u>0&&c>u&&(c=u,l[o.getId()]=!0,d=!0),a[o.getId()]=c}))}o.forEach((e=>{const t=a[e.getId()];e.getActualWidth()!==t&&(e.setActualWidth(t,i),s.push(e))}))}));const r=s.length>0;let a=[];if(r){const{colFlex:e,visibleCols:t,colViewport:o}=this.beans;a=e?.refreshFlexedColumns({resizingCols:n,skipSetLeft:!0})??[],t.setLeftValues(i),t.updateBodyWidths(),o.checkViewportColumns()}const l=n.concat(a);(r||o)&&dispatchColumnResizedEvent(this.eventSvc,l,o,i,a)}resizeHeader(e,t,o){if(!e.isResizable())return;const i=e.getActualWidth(),s=e.getMinWidth(),n=e.getMaxWidth(),r=Math.min(Math.max(i+t,s),n);this.setColumnWidths([{key:e,newWidth:r}],o,!0,"uiColumnResized")}createResizeFeature(e,t,o,i,s){return new Ri(e,t,o,i,s)}createGroupResizeFeature(e,t,o,i){return new yi(e,t,o,i)}}],apiFunctions:{setColumnWidths:function setColumnWidths(e,t,o=!0,i="api"){e.colResize?.setColumnWidths(t,!1,o,i)}},dependsOn:[fi,Si]},Ei=class extends I{constructor(e,t){super(),this.removeChildListenersFuncs=[],this.columnGroup=t,this.comp=e}postConstruct(){this.addListenersToChildrenColumns(),this.addManagedListeners(this.columnGroup,{displayedChildrenChanged:this.onDisplayedChildrenChanged.bind(this)}),this.onWidthChanged(),this.addDestroyFunc(this.removeListenersOnChildrenColumns.bind(this))}addListenersToChildrenColumns(){this.removeListenersOnChildrenColumns();const e=this.onWidthChanged.bind(this);this.columnGroup.getLeafColumns().forEach((t=>{t.__addEventListener("widthChanged",e),t.__addEventListener("visibleChanged",e),this.removeChildListenersFuncs.push((()=>{t.__removeEventListener("widthChanged",e),t.__removeEventListener("visibleChanged",e)}))}))}removeListenersOnChildrenColumns(){this.removeChildListenersFuncs.forEach((e=>e())),this.removeChildListenersFuncs=[]}onDisplayedChildrenChanged(){this.addListenersToChildrenColumns(),this.onWidthChanged()}onWidthChanged(){const e=this.columnGroup.getActualWidth();this.comp.setWidth(`${e}px`),this.comp.toggleCss("ag-hidden",0===e)}};function depthFirstAllColumnTreeSearch(e,t,o){if(e)for(let i=0;i<e.length;i++){const s=e[i];if(isColumnGroup(s)){depthFirstAllColumnTreeSearch(t?s.getDisplayedChildren():s.getChildren(),t,o)}o(s)}}function pickDisplayedCols(e){const t=[];return depthFirstAllColumnTreeSearch(e,!0,(e=>{isColumn(e)&&t.push(e)})),t}var Pi={moduleName:"ColumnGroup",version:R,dynamicBeans:{headerGroupCellCtrl:class extends co{constructor(){super(...arguments),this.onSuppressColMoveChange=()=>{!this.isAlive()||this.isSuppressMoving()?this.removeDragSource():this.dragSource||this.setDragSource(this.eGui)}}setComp(e,t,o,i,s){const{column:n,beans:r}=this,{context:a,colNames:l,colHover:d,rangeSvc:c,colResize:h}=r;this.comp=e,s=setupCompBean(this,a,s),this.setGui(t,s),this.displayName=l.getDisplayNameForColumnGroup(n,"header"),this.refreshHeaderStyles(),this.addClasses(),this.setupMovingCss(s),this.setupExpandable(s),this.setupTooltip(),this.setupAutoHeight({wrapperElement:i,compBean:s}),this.setupUserComp(),this.addHeaderMouseListeners(s),this.addManagedPropertyListener("groupHeaderHeight",this.refreshMaxHeaderHeight.bind(this)),this.refreshMaxHeaderHeight();const u=this.rowCtrl.pinned,g=n.getProvidedColumnGroup().getLeafColumns();d?.createHoverFeature(s,g,t),c?.createRangeHighlightFeature(s,n,e),s.createManagedBean(new ro(n,t,r)),s.createManagedBean(new Ei(e,n)),h?this.resizeFeature=s.createManagedBean(h.createGroupResizeFeature(e,o,u,n)):e.setResizableDisplayed(!1),s.createManagedBean(new Dt(t,{shouldStopEventPropagation:this.shouldStopEventPropagation.bind(this),onTabKeyDown:()=>{},handleKeyDown:this.handleKeyDown.bind(this),onFocusIn:this.onFocusIn.bind(this)})),this.addHighlightListeners(s,g),s.addManagedPropertyListener("suppressMovableColumns",this.onSuppressColMoveChange),this.addResizeAndMoveKeyboardListeners(s),s.addDestroyFunc((()=>this.clearComponent()))}getHeaderClassParams(){const{column:e,beans:t}=this,o=e.getDefinition();return _addGridCommonParams(t.gos,{colDef:o,columnGroup:e,floatingFilter:!1})}refreshMaxHeaderHeight(){const{gos:e,comp:t}=this,o=e.get("groupHeaderHeight");null!=o?0===o?t.setHeaderWrapperHidden(!0):t.setHeaderWrapperMaxHeight(o):(t.setHeaderWrapperHidden(!1),t.setHeaderWrapperMaxHeight(null))}addHighlightListeners(e,t){if(this.beans.gos.get("suppressMoveWhenColumnDragging"))for(const o of t)e.addManagedListeners(o,{headerHighlightChanged:this.onLeafColumnHighlightChanged.bind(this,o)})}onLeafColumnHighlightChanged(e){const t=this.column.getDisplayedLeafColumns(),o=t[0]===e,i=_last(t)===e;if(!o&&!i)return;const s=e.getHighlighted();let n=!1,r=!1;if(!!this.rowCtrl.getHeaderCellCtrls().find((e=>e.column.isMoving()))){const e=this.beans.gos.get("enableRtl"),t=1===s,a=0===s;o&&(e?r=t:n=a),i&&(e?n=a:r=t)}this.comp.toggleCss("ag-header-highlight-before",n),this.comp.toggleCss("ag-header-highlight-after",r)}resizeHeader(e,t){const{resizeFeature:o}=this;if(!o)return;const i=o.getInitialValues(t);o.resizeColumns(i,i.resizeStartWidth+e,"uiColumnResized",!0)}resizeLeafColumnsToFit(e){this.resizeFeature?.resizeLeafColumnsToFit(e)}setupUserComp(){const{colGroupSvc:e,userCompFactory:t,gos:o,enterpriseMenuFactory:i}=this.beans,s=this.column,n=s.getProvidedColumnGroup(),r=function _getHeaderGroupCompDetails(e,t){const o=t.columnGroup.getColGroupDef();return e.getCompDetails(o,oe,"agColumnGroupHeader",t)}(t,_addGridCommonParams(o,{displayName:this.displayName,columnGroup:s,setExpanded:t=>{e.setColumnGroupOpened(n,t,"gridInitializing")},setTooltip:(e,t)=>{o.assertModuleRegistered("Tooltip",3),this.setupTooltip(e,t)},showColumnMenu:(e,t)=>i?.showMenuAfterButtonClick(n,e,"columnMenu",t),showColumnMenuAfterMouseClick:(e,t)=>i?.showMenuAfterMouseEvent(n,e,"columnMenu",t),eGridHeader:this.eGui}));r&&this.comp.setUserCompDetails(r)}addHeaderMouseListeners(e){const listener=e=>this.handleMouseOverChange("mouseenter"===e.type);e.addManagedListeners(this.eGui,{mouseenter:listener,mouseleave:listener,click:()=>this.dispatchColumnMouseEvent("columnHeaderClicked",this.column.getProvidedColumnGroup()),contextmenu:e=>this.handleContextMenuMouseEvent(e,void 0,this.column.getProvidedColumnGroup())})}handleMouseOverChange(e){this.eventSvc.dispatchEvent({type:e?"columnHeaderMouseOver":"columnHeaderMouseLeave",column:this.column.getProvidedColumnGroup()})}setupTooltip(e,t){this.tooltipFeature=this.beans.tooltipSvc?.setupHeaderGroupTooltip(this.tooltipFeature,this,e,t)}setupExpandable(e){const t=this.column.getProvidedColumnGroup();this.refreshExpanded();const o=this.refreshExpanded.bind(this);e.addManagedListeners(t,{expandedChanged:o,expandableChanged:o})}refreshExpanded(){const{column:e}=this;this.expandable=e.isExpandable();const t=e.isExpanded();this.expandable?this.comp.setAriaExpanded(t?"true":"false"):this.comp.setAriaExpanded(void 0),this.refreshHeaderStyles()}addClasses(){const{column:e}=this,t=e.getColGroupDef(),o=_getHeaderClassesFromColDef(t,this.gos,null,e);if(e.isPadding()){o.push("ag-header-group-cell-no-group");e.getLeafColumns().every((e=>e.isSpanHeaderHeight()))&&o.push("ag-header-span-height")}else o.push("ag-header-group-cell-with-group"),t?.wrapHeaderText&&o.push("ag-header-cell-wrap-text");o.forEach((e=>this.comp.toggleCss(e,!0)))}setupMovingCss(e){const{column:t}=this,o=t.getProvidedColumnGroup().getLeafColumns(),listener=()=>this.comp.toggleCss("ag-header-cell-moving",t.isMoving());o.forEach((t=>{e.addManagedListeners(t,{movingChanged:listener})})),listener()}onFocusIn(e){this.eGui.contains(e.relatedTarget)||this.focusThis()}handleKeyDown(e){super.handleKeyDown(e);const t=this.getWrapperHasFocus();if(this.expandable&&t&&e.key===xe){const e=this.column,t=!e.isExpanded();this.beans.colGroupSvc.setColumnGroupOpened(e.getProvidedColumnGroup(),t,"uiColumnExpanded")}}setDragSource(e){this.isAlive()&&!this.isSuppressMoving()&&(this.removeDragSource(),e&&(this.dragSource=this.beans.colMoves?.setDragSourceForHeader(e,this.column,this.displayName)??null))}isSuppressMoving(){return this.gos.get("suppressMovableColumns")||this.column.getLeafColumns().some((e=>e.getColDef().suppressMovable||e.getColDef().lockPosition))}destroy(){this.tooltipFeature=this.destroyBean(this.tooltipFeature),super.destroy()}}},beans:[class extends I{constructor(){super(...arguments),this.beanName="colGroupSvc"}getColumnGroupState(){const e=[];return depthFirstOriginalTreeSearch(null,this.beans.colModel.getColTree(),(t=>{isProvidedColumnGroup(t)&&e.push({groupId:t.getGroupId(),open:t.isExpanded()})})),e}resetColumnGroupState(e){const t=this.beans.colModel.getColDefColTree();if(!t)return;const o=[];depthFirstOriginalTreeSearch(null,t,(e=>{if(isProvidedColumnGroup(e)){const t=e.getColGroupDef(),i={groupId:e.getGroupId(),open:t?t.openByDefault:void 0};o.push(i)}})),this.setColumnGroupState(o,e)}setColumnGroupState(e,t){const{colModel:o,colAnimation:i,visibleCols:s,eventSvc:n}=this.beans;if(!o.getColTree().length)return;i?.start();const r=[];e.forEach((e=>{const t=e.groupId,o=e.open,i=this.getProvidedColGroup(t);i&&i.isExpanded()!==o&&(i.setExpanded(o),r.push(i))})),s.refresh(t,!0),r.length&&n.dispatchEvent({type:"columnGroupOpened",columnGroup:1===r.length?r[0]:void 0,columnGroups:r}),i?.finish()}setColumnGroupOpened(e,t,o){let i;i=isProvidedColumnGroup(e)?e.getId():e||"",this.setColumnGroupState([{groupId:i,open:t}],o)}getProvidedColGroup(e){let t=null;return depthFirstOriginalTreeSearch(null,this.beans.colModel.getColTree(),(o=>{isProvidedColumnGroup(o)&&o.getId()===e&&(t=o)})),t}getGroupAtDirection(e,t){const o=e.getProvidedColumnGroup().getLevel()+e.getPaddingLevel(),i=e.getDisplayedLeafColumns(),s="After"===t?_last(i):i[0],n=`getCol${t}`;for(;;){const t=this.beans.visibleCols[n](s);if(!t)return null;const i=this.getColGroupAtLevel(t,o);if(i!==e)return i}}getColGroupAtLevel(e,t){let o,i,s=e.getParent();for(;;){if(o=s.getProvidedColumnGroup().getLevel(),i=s.getPaddingLevel(),o+i<=t)break;s=s.getParent()}return s}updateOpenClosedVisibility(){depthFirstAllColumnTreeSearch(this.beans.visibleCols.getAllTrees(),!1,(e=>{isColumnGroup(e)&&e.calculateDisplayedColumns()}))}getColumnGroup(e,t){if(!e)return null;if(isColumnGroup(e))return e;const o=this.beans.visibleCols.getAllTrees(),i="number"==typeof t;let s=null;return depthFirstAllColumnTreeSearch(o,!1,(o=>{if(isColumnGroup(o)){const n=o;let r;r=i?e===n.getGroupId()&&t===n.getPartId():e===n.getGroupId(),r&&(s=n)}})),s}createColumnGroups(e){const{columns:t,idCreator:o,pinned:i,oldDisplayedGroups:s,isStandaloneStructure:n}=e,r=this.mapOldGroupsById(s),a=[];let l=t;for(;l.length;){const e=l;l=[];let t=0;const createGroupToIndex=s=>{const d=t;t=s;const c=e[d],h=(isColumnGroup(c)?c.getProvidedColumnGroup():c).getOriginalParent();if(null==h){for(let t=d;t<s;t++)a.push(e[t]);return}const u=this.createColumnGroup(h,o,r,i,n);for(let t=d;t<s;t++)u.addChild(e[t]);l.push(u)};for(let o=1;o<e.length;o++){const i=e[o],s=(isColumnGroup(i)?i.getProvidedColumnGroup():i).getOriginalParent(),n=e[t];s!==(isColumnGroup(n)?n.getProvidedColumnGroup():n).getOriginalParent()&&createGroupToIndex(o)}t<e.length&&createGroupToIndex(e.length)}return n||this.setupParentsIntoCols(a,null),a}createProvidedColumnGroup(e,t,o,i,s,n,r){const a=s.getUniqueKey(t.groupId||null,null),l=createMergedColGroupDef(this.beans,t,a),d=new O(l,a,!1,o);this.createBean(d);const c=this.findExistingGroup(t,n);c&&n.splice(c.idx,1);const h=c?.group;h&&d.setExpanded(h.isExpanded());const u=_recursivelyCreateColumns(this.beans,l.children,o+1,e,i,s,n,r);return d.setChildren(u),d}balanceColumnTree(e,t,o,i){const s=[];for(let n=0;n<e.length;n++){const r=e[n];if(isProvidedColumnGroup(r)){const e=r,n=this.balanceColumnTree(e.getChildren(),t+1,o,i);e.setChildren(n),s.push(e)}else{let n,a;for(let e=o-1;e>=t;e--){const e=i.getUniqueKey(null,null),o=createMergedColGroupDef(this.beans,null,e),s=new O(o,e,!0,t);this.createBean(s),a&&a.setChildren([s]),a=s,n||(n=a)}if(n&&a){s.push(n);if(e.some((e=>isProvidedColumnGroup(e)))){a.setChildren([r]);continue}a.setChildren(e);break}s.push(r)}}return s}findDepth(e){let t=0,o=e;for(;o&&o[0]&&isProvidedColumnGroup(o[0]);)t++,o=o[0].getChildren();return t}findMaxDepth(e,t){let o=t;for(let i=0;i<e.length;i++){const s=e[i];if(isProvidedColumnGroup(s)){const e=s,i=this.findMaxDepth(e.getChildren(),t+1);o<i&&(o=i)}}return o}balanceTreeForAutoCols(e,t){const o=[];return e.forEach((e=>{let i=e;for(let o=t-1;o>=0;o--){const t=new O(null,`FAKE_PATH_${e.getId()}}_${o}`,!0,o);this.createBean(t),t.setChildren([i]),i.originalParent=t,i=t}0===t&&(e.originalParent=null),o.push(i)})),o}findExistingGroup(e,t){if(null!=e.groupId)for(let o=0;o<t.length;o++){const i=t[o];if(i.getColGroupDef()&&i.getId()===e.groupId)return{idx:o,group:i}}}createColumnGroup(e,t,o,i,s){const n=e.getGroupId(),r=t.getInstanceIdForKey(n);let a=o[createUniqueColumnGroupId(n,r)];return a&&a.getProvidedColumnGroup()!==e&&(a=null),_exists(a)?a.reset():(a=new it(e,n,r,i),s||this.createBean(a)),a}mapOldGroupsById(e){const t={},recursive=e=>{e.forEach((e=>{if(isColumnGroup(e)){const o=e;t[e.getUniqueId()]=o,recursive(o.getChildren())}}))};return e&&recursive(e),t}setupParentsIntoCols(e,t){e.forEach((e=>{if(e.parent=t,isColumnGroup(e)){const t=e;this.setupParentsIntoCols(t.getChildren(),t)}}))}}],apiFunctions:{getAllDisplayedColumnGroups:function getAllDisplayedColumnGroups(e){return e.visibleCols.getAllTrees()},getCenterDisplayedColumnGroups:function getCenterDisplayedColumnGroups(e){return e.visibleCols.treeCenter},getColumnGroup:function getColumnGroup(e,t,o){return e.colGroupSvc?.getColumnGroup(t,o)??null},getColumnGroupState:function getColumnGroupState(e){return e.colGroupSvc?.getColumnGroupState()??[]},getDisplayNameForColumnGroup:function getDisplayNameForColumnGroup(e,t,o){return e.colNames.getDisplayNameForColumnGroup(t,o)||""},getLeftDisplayedColumnGroups:function getLeftDisplayedColumnGroups(e){return e.visibleCols.treeLeft},getProvidedColumnGroup:function getProvidedColumnGroup(e,t){return e.colGroupSvc?.getProvidedColGroup(t)??null},getRightDisplayedColumnGroups:function getRightDisplayedColumnGroups(e){return e.visibleCols.treeRight},resetColumnGroupState:function resetColumnGroupState(e){e.colGroupSvc?.resetColumnGroupState("api")},setColumnGroupOpened:function setColumnGroupOpened(e,t,o){e.colGroupSvc?.setColumnGroupOpened(t,o,"api")},setColumnGroupState:function setColumnGroupState(e,t){e.colGroupSvc?.setColumnGroupState(t,"api")}}},Di={tag:"div",cls:"ag-skeleton-container"},xi={moduleName:"CheckboxCellRenderer",version:R,userComponents:{agCheckboxCellRenderer:class extends Q{constructor(){super(Po,[Eo]),this.eCheckbox=q,this.registerCSS(".ag-checkbox-cell{height:100%}")}init(e){this.refresh(e);const{eCheckbox:t,beans:o}=this,i=t.getInputElement();i.setAttribute("tabindex","-1"),_setAriaLive(i,"polite"),this.addManagedListeners(i,{click:e=>{if(_stopPropagationForAgGrid(e),t.isDisabled())return;const o=t.getValue();this.onCheckboxChanged(o)},dblclick:e=>{_stopPropagationForAgGrid(e)}}),this.addManagedElementListeners(e.eGridCell,{keydown:i=>{if(i.key===Te&&!t.isDisabled()){e.eGridCell===_getActiveDomElement(o)&&t.toggle();const s=t.getValue();this.onCheckboxChanged(s),i.preventDefault()}}})}refresh(e){return this.params=e,this.updateCheckbox(e),!0}updateCheckbox(e){let t,o=!0;const{value:i,column:s,node:n}=e;if(n.group&&s)if("boolean"==typeof i)t=i;else{const e=s.getColId();e.startsWith(B)?t=null==i||""===i?void 0:"true"===i:n.aggData&&void 0!==n.aggData[e]?t=i??void 0:o=!1}else t=i??void 0;const{eCheckbox:r}=this;if(!o)return void r.setDisplayed(!1);r.setValue(t);const a=e.disabled??!s?.isCellEditable(n);r.setDisabled(a);const l=this.getLocaleTextFunc(),d=_getAriaCheckboxStateName(l,t),c=a?d:`${l("ariaToggleCellValue","Press SPACE to toggle cell value")} (${d})`;r.setInputAriaLabel(c)}onCheckboxChanged(e){const{params:t}=this,{column:o,node:i,value:s}=t;this.beans?.editSvc?.setEditingCells([{column:o,colId:o.getColId(),rowIndex:i.rowIndex,rowPinned:i.rowPinned,state:"changed",oldValue:s,newValue:s}],{update:!0});const n=i.setDataValue(o,e,"renderer");this.beans.editSvc?.stopEditing({rowNode:i,column:o},{source:this.beans.editSvc?.isBatchEditing()?"ui":"api"}),n||this.updateCheckbox(t)}}}},Mi={moduleName:"SkeletonCellRenderer",version:R,userComponents:{agSkeletonCellRenderer:class extends Q{constructor(){super(Di)}init(e){const t=`ag-cell-skeleton-renderer-${this.getCompId()}`;this.getGui().setAttribute("id",t),this.addDestroyFunc((()=>_setAriaLabelledBy(e.eParentOfValue))),_setAriaLabelledBy(e.eParentOfValue,t),e.deferRender?this.setupLoading(e):e.node.failedLoad?this.setupFailed():this.setupLoading(e)}setupFailed(){const e=this.getLocaleTextFunc();this.getGui().textContent=e("loadingError","ERR");const t=e("ariaSkeletonCellLoadingFailed","Row failed to load");_setAriaLabel(this.getGui(),t)}setupLoading(e){const t=_createElement({tag:"div",cls:"ag-skeleton-effect"}),o=e.node.rowIndex;if(null!=o){const e=75+25*(o%2==0?Math.sin(o):Math.cos(o));t.style.width=`${e}%`}this.getGui().appendChild(t);const i=this.getLocaleTextFunc(),s=e.deferRender?i("ariaDeferSkeletonCellLoading","Cell is loading"):i("ariaSkeletonCellLoading","Row data is loading");_setAriaLabel(this.getGui(),s)}refresh(e){return!1}}}};function _deepCloneDefinition(e,t){if(!e)return;const o=e,i={};return Object.keys(o).forEach((e=>{if(t&&t.indexOf(e)>=0||n.has(e))return;const s=o[e],r="object"==typeof s&&null!==s&&s.constructor===Object;i[e]=r?_deepCloneDefinition(s):s})),i}var Ti=["dateTimeString","dateString","text","number","boolean","date"];function mergeDataTypeDefinitions(e,t){const o={...e,...t};return e.columnTypes&&t.columnTypes&&t.appendColumnTypes&&(o.columnTypes=[...convertColumnTypes(e.columnTypes),...convertColumnTypes(t.columnTypes)]),o}function validateDataTypeDefinition(e,t,o){return t?t.baseDataType===e.baseDataType||(_warn(46),!1):(_warn(45,{parentCellDataType:o}),!1)}function createGroupSafeValueFormatter(e,t){if(e.valueFormatter)return o=>{if(o.node?.group){const t=(o.colDef.pivotValueColumn??o.column).getAggFunc();if(t){if("first"===t||"last"===t)return e.valueFormatter(o);if("number"===e.baseDataType&&"count"!==t){if("number"==typeof o.value)return e.valueFormatter(o);if("object"==typeof o.value){if(!o.value)return;if("toNumber"in o.value)return e.valueFormatter({...o,value:o.value.toNumber()});if("value"in o.value)return e.valueFormatter({...o,value:o.value.value})}}return}}else if(t.get("groupHideOpenParents")&&o.column.isRowGroupActive()&&"string"==typeof o.value&&!e.dataTypeMatcher?.(o.value))return;return e.valueFormatter(o)}}function doColDefPropsPreventInference(e,t){return[["cellRenderer","agSparklineCellRenderer"],["valueGetter",void 0],["valueParser",void 0],["refData",void 0]].some((([o,i])=>function doesColDefPropPreventInference(e,t,o,i){if(!t[o])return!1;const s=e[o];return null===s?(t[o]=!1,!1):void 0===i?!!s:s===i}(e,t,o,i)))}function getUpdatedColumnState(e,t){const o=getColumnStateFromColDef(e);return t.forEach((e=>{delete o[e],"rowGroup"===e?delete o.rowGroupIndex:"pivot"===e&&delete o.pivotIndex})),o}var Ai={moduleName:"DataType",version:R,beans:[class extends I{constructor(){super(...arguments),this.beanName="dataTypeSvc",this.dataTypeDefinitions={},this.isPendingInference=!1,this.isColumnTypeOverrideInDataTypeDefinitions=!1,this.columnStateUpdatesPendingInference={},this.columnStateUpdateListenerDestroyFuncs=[],this.columnDefinitionPropsPerDataType={number:()=>({cellEditor:"agNumberCellEditor"}),boolean:()=>({cellEditor:"agCheckboxCellEditor",cellRenderer:"agCheckboxCellRenderer",getFindText:()=>null,suppressKeyboardEvent:e=>!!e.colDef.editable&&e.event.key===Te}),date:({formatValue:e})=>({cellEditor:"agDateCellEditor",keyCreator:e}),dateString:({formatValue:e})=>({cellEditor:"agDateStringCellEditor",keyCreator:e}),dateTime(e){return this.date(e)},dateTimeString(e){return this.dateString(e)},object:({formatValue:e,colModel:t,colId:o})=>({cellEditorParams:{useFormatter:!0},comparator:(i,s)=>{const n=t.getColDefCol(o),r=n?.getColDef();if(!n||!r)return 0;const a=null==i?"":e({column:n,node:null,value:i}),l=null==s?"":e({column:n,node:null,value:s});return a===l?0:a>l?1:-1},keyCreator:e}),text:()=>({})}}wireBeans(e){this.colModel=e.colModel}postConstruct(){this.processDataTypeDefinitions(),this.addManagedPropertyListener("dataTypeDefinitions",(e=>{this.processDataTypeDefinitions(),this.colModel.recreateColumnDefs(e)}))}processDataTypeDefinitions(){const e=this.getDefaultDataTypes(),t={},o={},generateFormatValueFunc=e=>t=>{const{column:o,node:i,value:s}=t;let n=o.getColDef().valueFormatter;return n===e.groupSafeValueFormatter&&(n=e.valueFormatter),this.beans.valueSvc.formatValue(o,i,s,n)};for(const i of Object.keys(e)){const s=e[i],n={...s,groupSafeValueFormatter:createGroupSafeValueFormatter(s,this.gos)};t[i]=n,o[i]=generateFormatValueFunc(n)}const i=this.gos.get("dataTypeDefinitions")??{},s={};for(const n of Object.keys(i)){const r=i[n],a=this.processDataTypeDefinition(r,i,[n],e);a&&(t[n]=a,r.dataTypeMatcher&&(s[n]=r.dataTypeMatcher),o[n]=generateFormatValueFunc(a))}const{valueParser:n,valueFormatter:r}=e.object,{valueParser:a,valueFormatter:l}=t.object;this.hasObjectValueParser=a!==n,this.hasObjectValueFormatter=l!==r,this.formatValueFuncs=o,this.dataTypeDefinitions=t,this.dataTypeMatchers=this.sortKeysInMatchers(s,e)}sortKeysInMatchers(e,t){const o={...e};for(const i of Ti)delete o[i],o[i]=e[i]??t[i].dataTypeMatcher;return o}processDataTypeDefinition(e,t,o,i){let s;const n=e.extendsDataType;if(e.columnTypes&&(this.isColumnTypeOverrideInDataTypeDefinitions=!0),e.extendsDataType===e.baseDataType){let o=i[n];const r=t[n];if(o&&r&&(o=r),!validateDataTypeDefinition(e,o,n))return;s=mergeDataTypeDefinitions(o,e)}else{if(o.includes(n))return void _warn(44);const r=t[n];if(!validateDataTypeDefinition(e,r,n))return;const a=this.processDataTypeDefinition(r,t,[...o,n],i);if(!a)return;s=mergeDataTypeDefinitions(a,e)}return{...s,groupSafeValueFormatter:createGroupSafeValueFormatter(s,this.gos)}}updateColDefAndGetColumnType(e,t,o){let{cellDataType:i}=t;const{field:s}=t;if(void 0===i&&(i=e.cellDataType),null!=i&&!0!==i||(i=!!this.canInferCellDataType(e,t)&&this.inferCellDataType(s,o)),!i)return void(e.cellDataType=!1);const n=this.dataTypeDefinitions[i];if(n)return e.cellDataType=i,n.groupSafeValueFormatter&&(e.valueFormatter=n.groupSafeValueFormatter),n.valueParser&&(e.valueParser=n.valueParser),n.suppressDefaultProperties||this.setColDefPropertiesForBaseDataType(e,i,n,o),n.columnTypes;_warn(47,{cellDataType:i})}addColumnListeners(e){if(!this.isPendingInference)return;const t=this.columnStateUpdatesPendingInference[e.getColId()];if(!t)return;const columnListener=e=>{t.add(e.key)};e.__addEventListener("columnStateUpdated",columnListener),this.columnStateUpdateListenerDestroyFuncs.push((()=>e.__removeEventListener("columnStateUpdated",columnListener)))}canInferCellDataType(e,t){const{gos:o}=this;if(!_isClientSideRowModel(o))return!1;const i={cellRenderer:!0,valueGetter:!0,valueParser:!0,refData:!0};if(doColDefPropsPreventInference(t,i))return!1;const s=null===t.type?e.type:t.type;if(s){const e=o.get("columnTypes")??{};if(convertColumnTypes(s).some((t=>{const o=e[t.trim()];return o&&doColDefPropsPreventInference(o,i)})))return!1}return!doColDefPropsPreventInference(e,i)}inferCellDataType(e,t){if(!e)return;let o;const i=this.getInitialData();if(i){const t=e.indexOf(".")>=0&&!this.gos.get("suppressFieldDotNotation");o=_getValueUsingField(i,e,t)}else this.initWaitForRowData(t);if(null==o)return;return Object.keys(this.dataTypeMatchers).find((e=>this.dataTypeMatchers[e](o)))??"object"}getInitialData(){const e=this.gos.get("rowData");if(e?.length)return e[0];if(this.initialData)return this.initialData;{const e=this.beans.rowModel.rootNode?.allLeafChildren;if(e?.length)return e[0].data}return null}initWaitForRowData(e){if(this.columnStateUpdatesPendingInference[e]=new Set,this.isPendingInference)return;this.isPendingInference=!0;const t=this.isColumnTypeOverrideInDataTypeDefinitions,{colAutosize:o,eventSvc:i}=this.beans;t&&o&&(o.shouldQueueResizeOperations=!0);const[s]=this.addManagedEventListeners({rowDataUpdateStarted:e=>{const{firstRowData:n}=e;n&&(s?.(),this.isPendingInference=!1,this.processColumnsPendingInference(n,t),this.columnStateUpdatesPendingInference={},t&&o?.processResizeOperations(),i.dispatchEvent({type:"dataTypesInferred"}))}})}processColumnsPendingInference(e,t){this.initialData=e;const o=[];this.destroyColumnStateUpdateListeners();const i={},s={};for(const e of Object.keys(this.columnStateUpdatesPendingInference)){const n=this.columnStateUpdatesPendingInference[e],r=this.colModel.getCol(e);if(!r)return;const a=r.getColDef();if(!this.resetColDefIntoCol(r,"cellDataTypeInferred"))return;const l=r.getColDef();if(t&&l.type&&l.type!==a.type){const t=getUpdatedColumnState(r,n);t.rowGroup&&null==t.rowGroupIndex&&(i[e]=t),t.pivot&&null==t.pivotIndex&&(s[e]=t),o.push(t)}}t&&o.push(...this.generateColumnStateForRowGroupAndPivotIndexes(i,s)),o.length&&_applyColumnState(this.beans,{state:o},"cellDataTypeInferred"),this.initialData=null}generateColumnStateForRowGroupAndPivotIndexes(e,t){const o={},{rowGroupColsSvc:i,pivotColsSvc:s}=this.beans;return i?.restoreColumnOrder(o,e),s?.restoreColumnOrder(o,t),Object.values(o)}resetColDefIntoCol(e,t){const o=e.getUserProvidedColDef();if(!o)return!1;const i=_addColumnDefaultAndTypes(this.beans,o,e.getColId());return e.setColDef(i,o,t),!0}getDateStringTypeDefinition(e){const{dateString:t}=this.dataTypeDefinitions;return e?this.getDataTypeDefinition(e)??t:t}getDateParserFunction(e){return this.getDateStringTypeDefinition(e).dateParser}getDateFormatterFunction(e){return this.getDateStringTypeDefinition(e).dateFormatter}getDateIncludesTimeFlag(e){return"dateTime"===e||"dateTimeString"===e}getDataTypeDefinition(e){const t=e.getColDef();if(t.cellDataType)return this.dataTypeDefinitions[t.cellDataType]}getBaseDataType(e){return this.getDataTypeDefinition(e)?.baseDataType}checkType(e,t){if(null==t)return!0;const o=this.getDataTypeDefinition(e)?.dataTypeMatcher;return!o||o(t)}validateColDef(e){const warning=e=>_warn(48,{property:e});if("object"===e.cellDataType){const{object:t}=this.dataTypeDefinitions;e.valueFormatter!==t.groupSafeValueFormatter||this.hasObjectValueFormatter||warning("Formatter"),e.editable&&e.valueParser===t.valueParser&&!this.hasObjectValueParser&&warning("Parser")}}postProcess(e){const t=e.cellDataType;if(!t||"string"!=typeof t)return;const{dataTypeDefinitions:o,beans:i,formatValueFuncs:s}=this,n=o[t];i.colFilter?.setColDefPropsForDataType(e,n,s[t])}getFormatValue(e){return this.formatValueFuncs[e]}isColPendingInference(e){return this.isPendingInference&&!!this.columnStateUpdatesPendingInference[e]}setColDefPropertiesForBaseDataType(e,t,o,i){const s=this.formatValueFuncs[t],n=this.columnDefinitionPropsPerDataType[o.baseDataType]({colDef:e,cellDataType:t,colModel:this.colModel,dataTypeDefinition:o,colId:i,formatValue:s});Object.assign(e,n)}getDateObjectTypeDef(e){const t=this.getLocaleTextFunc(),o=this.getDateIncludesTimeFlag(e);return{baseDataType:e,valueParser:e=>_parseDateTimeFromString(e.newValue&&String(e.newValue)),valueFormatter:e=>null==e.value?"":e.value instanceof Date&&!isNaN(e.value.getTime())?_serialiseDate(e.value,o)??"":t("invalidDate","Invalid Date"),dataTypeMatcher:e=>e instanceof Date}}getDateStringTypeDef(e){const t=this.getDateIncludesTimeFlag(e);return{baseDataType:e,dateParser:e=>_parseDateTimeFromString(e)??void 0,dateFormatter:e=>_serialiseDate(e??null,t)??void 0,valueParser:e=>_isValidDate(String(e.newValue))?e.newValue:null,valueFormatter:e=>_isValidDate(String(e.value))?String(e.value):"",dataTypeMatcher:e=>"string"==typeof e&&_isValidDate(e)}}getDefaultDataTypes(){const e=this.getLocaleTextFunc();return{number:{baseDataType:"number",valueParser:e=>""===e.newValue?.trim?.()?null:Number(e.newValue),valueFormatter:t=>null==t.value?"":"number"!=typeof t.value||isNaN(t.value)?e("invalidNumber","Invalid Number"):String(t.value),dataTypeMatcher:e=>"number"==typeof e},text:{baseDataType:"text",valueParser:e=>""===e.newValue?null:_toStringOrNull(e.newValue),dataTypeMatcher:e=>"string"==typeof e},boolean:{baseDataType:"boolean",valueParser:e=>null==e.newValue?e.newValue:""===e.newValue?.trim?.()?null:"true"===String(e.newValue).toLowerCase(),valueFormatter:e=>null==e.value?"":String(e.value),dataTypeMatcher:e=>"boolean"==typeof e},date:this.getDateObjectTypeDef("date"),dateString:this.getDateStringTypeDef("dateString"),dateTime:this.getDateObjectTypeDef("dateTime"),dateTimeString:{...this.getDateStringTypeDef("dateTimeString"),dataTypeMatcher:e=>"string"==typeof e&&function _isValidDateTime(e){return!!e&&_isValidDate(e,!0)&&!!e.match(Ct)?.[1]}(e)},object:{baseDataType:"object",valueParser:()=>null,valueFormatter:e=>_toStringOrNull(e.value)??""}}}destroyColumnStateUpdateListeners(){this.columnStateUpdateListenerDestroyFuncs.forEach((e=>e())),this.columnStateUpdateListenerDestroyFuncs=[]}destroy(){this.dataTypeDefinitions={},this.dataTypeMatchers={},this.formatValueFuncs={},this.columnStateUpdatesPendingInference={},this.destroyColumnStateUpdateListeners(),super.destroy()}}],dependsOn:[xi]},Ii={moduleName:"ColumnFlex",version:R,beans:[class extends I{constructor(){super(...arguments),this.beanName="colFlex"}refreshFlexedColumns(e={}){const t=e.source??"flex";null!=e.viewportWidth&&(this.flexViewportWidth=e.viewportWidth);const o=this.flexViewportWidth;if(!o)return[];const{visibleCols:i}=this.beans,s=i.centerCols;let n=-1;if(e.resizingCols){const t=new Set(e.resizingCols);for(let e=s.length-1;e>=0;e--)if(t.has(s[e])){n=e;break}}let r=!1;const a=s.map(((e,t)=>{const o=e.getFlex(),i=null!=o&&o>0&&t>n;return r||(r=i),{col:e,isFlex:i,flex:Math.max(0,o??0),initialSize:e.getActualWidth(),min:e.getMinWidth(),max:e.getMaxWidth(),targetSize:0}}));if(!r)return[];let l=a.length,d=a.reduce(((e,t)=>e+t.flex),0),c=o;const freeze=(e,o)=>{e.frozenSize=o,e.col.setActualWidth(o,t),c-=o,d-=e.flex,l-=1},isFrozen=e=>null!=e.frozenSize;for(const e of a)e.isFlex||freeze(e,e.initialSize);for(;l>0;){const e=Math.round(d<1?c*d:c);let t,o=0,i=0;for(const s of a){if(isFrozen(s))continue;t=s,i+=e*(s.flex/d);const n=i-o,r=Math.round(n);s.targetSize=r,o+=r}t&&(t.targetSize+=e-o);let s=0;for(const e of a){if(isFrozen(e))continue;const t=e.targetSize,o=Math.min(Math.max(t,e.min),e.max);s+=o-t,e.violationType=o===t?void 0:o<t?"max":"min",e.targetSize=o}const n=0===s?"all":s>0?"min":"max";for(const e of a)isFrozen(e)||"all"!==n&&e.violationType!==n||freeze(e,e.targetSize)}e.skipSetLeft||i.setLeftValues(t),e.updateBodyWidths&&i.updateBodyWidths();const h=a.filter((e=>e.isFlex&&!e.violationType)).map((e=>e.col));if(e.fireResizedEvent){const e=a.filter((e=>e.initialSize!==e.frozenSize)).map((e=>e.col)),o=a.filter((e=>e.flex)).map((e=>e.col));dispatchColumnResizedEvent(this.eventSvc,e,!0,t,o)}return h}initCol(e){const{flex:t,initialFlex:o}=e.colDef;void 0!==t?e.flex=t:void 0!==o&&(e.flex=o)}setColFlex(e,t){e.flex=t??null,e.dispatchStateUpdatedEvent("flex")}}]},ki={moduleName:"ColumnApi",version:R,beans:[class extends I{constructor(){super(...arguments),this.beanName="colDefFactory"}wireBeans(e){this.rowGroupColsSvc=e.rowGroupColsSvc,this.pivotColsSvc=e.pivotColsSvc}getColumnDefs(e,t,o,i){const s=e.slice();t?s.sort(((e,t)=>o.indexOf(e)-o.indexOf(t))):o&&s.sort(((e,t)=>i.indexOf(e)-i.indexOf(t)));const n=this.rowGroupColsSvc?.columns,r=this.pivotColsSvc?.columns;return this.buildColumnDefs(s,n,r)}buildColumnDefs(e,t=[],o=[]){const i=[],s={};return e.forEach((e=>{let n=!0,r=this.createDefFromColumn(e,t,o),a=e.getOriginalParent(),l=null;for(;a;){let e=null;if(a.isPadding()){a=a.getOriginalParent();continue}const t=s[a.getGroupId()];if(t){t.children.push(r),n=!1;break}if(e=this.createDefFromGroup(a),e&&(e.children=[r],s[e.groupId]=e,r=e,a=a.getOriginalParent()),null!=a&&l===a){n=!1;break}l=a}n&&i.push(r)})),i}createDefFromGroup(e){const t=_deepCloneDefinition(e.getColGroupDef(),["children"]);return t&&(t.groupId=e.getGroupId()),t}createDefFromColumn(e,t,o){const i=_deepCloneDefinition(e.getColDef());return i.colId=e.getColId(),i.width=e.getActualWidth(),i.rowGroup=e.isRowGroupActive(),i.rowGroupIndex=e.isRowGroupActive()?t.indexOf(e):null,i.pivot=e.isPivotActive(),i.pivotIndex=e.isPivotActive()?o.indexOf(e):null,i.aggFunc=e.isValueActive()?e.getAggFunc():null,i.hide=!e.isVisible()||void 0,i.pinned=e.isPinned()?e.getPinned():null,i.sort=e.getSort()?e.getSort():null,i.sortIndex=null!=e.getSortIndex()?e.getSortIndex():null,i}}],apiFunctions:{getColumnDef:function getColumnDef(e,t){const o=e.colModel.getColDefCol(t);return o?o.getColDef():null},getDisplayNameForColumn:function getDisplayNameForColumn(e,t,o){return e.colNames.getDisplayNameForColumn(t,o)||""},getColumn:function getColumn(e,t){return e.colModel.getColDefCol(t)},getColumns:function getColumns(e){return e.colModel.getColDefCols()},applyColumnState:function applyColumnState(e,t){return _applyColumnState(e,t,"api")},getColumnState:function getColumnState(e){return _getColumnState(e)},resetColumnState:function resetColumnState(e){!function _resetColumnState(e,t){const{colModel:o,autoColSvc:i,selectionColSvc:s,eventSvc:n,gos:r}=e,a=o.getColDefCols();if(!a?.length)return;const l=_getColumnsFromTree(o.getColDefColTree()),d=[];let c=1e3,h=1e3;const addColState=e=>{const t=getColumnStateFromColDef(e);_missing(t.rowGroupIndex)&&t.rowGroup&&(t.rowGroupIndex=c++),_missing(t.pivotIndex)&&t.pivot&&(t.pivotIndex=h++),d.push(t)};i?.getColumns()?.forEach(addColState),s?.getColumns()?.forEach(addColState),l?.forEach(addColState),_applyColumnState(e,{state:d},t);const u=i?.getColumns()??[];_applyColumnState(e,{state:[...s?.getColumns()??[],...u,...a].map((e=>({colId:e.colId}))),applyOrder:!0},t),n.dispatchEvent(_addGridCommonParams(r,{type:"columnsReset",source:t}))}(e,"api")},isPinning:function isPinning(e){return e.visibleCols.isPinningLeft()||e.visibleCols.isPinningRight()},isPinningLeft:function isPinningLeft(e){return e.visibleCols.isPinningLeft()},isPinningRight:function isPinningRight(e){return e.visibleCols.isPinningRight()},getDisplayedColAfter:function getDisplayedColAfter(e,t){return e.visibleCols.getColAfter(t)},getDisplayedColBefore:function getDisplayedColBefore(e,t){return e.visibleCols.getColBefore(t)},setColumnsVisible:function setColumnsVisible(e,t,o){e.colModel.setColsVisible(t,o,"api")},setColumnsPinned:function setColumnsPinned(e,t,o){e.pinnedCols?.setColsPinned(t,o,"api")},getAllGridColumns:function getAllGridColumns(e){return e.colModel.getCols()},getDisplayedLeftColumns:function getDisplayedLeftColumns(e){return e.visibleCols.leftCols},getDisplayedCenterColumns:function getDisplayedCenterColumns(e){return e.visibleCols.centerCols},getDisplayedRightColumns:function getDisplayedRightColumns(e){return e.visibleCols.rightCols},getAllDisplayedColumns:function getAllDisplayedColumns(e){return e.visibleCols.allCols},getAllDisplayedVirtualColumns:function getAllDisplayedVirtualColumns(e){return e.colViewport.getViewportColumns()},getColumnDefs:function getColumnDefs(e){return e.colModel.getColumnDefs()}}};var Li,Gi,Ni={moduleName:"CellRendererFunction",version:R,beans:[class extends I{constructor(){super(...arguments),this.beanName="agCompUtils"}adaptFunction(e,t){if(!e.cellRenderer)return null;return class Adapter{refresh(){return!1}getGui(){return this.eGui}init(e){const o=t(e),i=typeof o;this.eGui="string"!==i&&"number"!==i&&"boolean"!==i?null!=o?o:_createElement({tag:"span"}):_loadTemplate("<span>"+o+"</span>")}}}}]},_i="object"!=typeof window||!window?.document?.fonts?.forEach,_injectGlobalCSS=(e,t,o,i,s,n)=>{if(_i)return;if(ns)return;i&&(e=`@layer ${CSS.escape(i)} { ${e} }`);let r=Oi.map.get(t);if(r||(r=[],Oi.map.set(t,r)),r.find((t=>t.css===e)))return;const a=document.createElement("style");n&&a.setAttribute("nonce",n),a.dataset.agGlobalCss=o,a.textContent=e;const l={css:e,el:a,priority:s};let d;for(const e of r){if(e.priority>s)break;d=e}if(d){d.el.insertAdjacentElement("afterend",a);const e=r.indexOf(d);r.splice(e+1,0,l)}else t.insertBefore(a,t.querySelector(":not(title, meta)")),r.push(l)},_injectCoreAndModuleCSS=(e,t,o)=>{_injectGlobalCSS(':where(.ag-root-wrapper,.ag-popup,.ag-dnd-ghost,.ag-chart),:where(.ag-root-wrapper,.ag-popup,.ag-dnd-ghost,.ag-chart) :where([class^=ag-]){box-sizing:border-box;&:after,&:before{box-sizing:border-box}&:where(div,span,label):focus-visible{box-shadow:inset var(--ag-focus-shadow);outline:none;&.invalid{box-shadow:inset var(--ag-focus-error-shadow)}}&:where(button){color:inherit}}:where(.ag-root-wrapper,.ag-popup,.ag-dnd-ghost,.ag-chart) :where([class^=ag-]) ::-ms-clear{display:none}.ag-aria-description-container{border:0;z-index:9999;clip:rect(1px,1px,1px,1px);height:1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}.ag-hidden{display:none!important}.ag-invisible{visibility:hidden!important}.ag-unselectable{-webkit-user-select:none;-moz-user-select:none;user-select:none}.ag-selectable{-webkit-user-select:text;-moz-user-select:text;user-select:text}.ag-tab-guard{display:block;height:0;position:absolute;width:0}:where(.ag-virtual-list-viewport) .ag-tab-guard{position:sticky}.ag-tab-guard-top{top:1px}.ag-tab-guard-bottom{bottom:1px}.ag-shake-left-to-right{animation-direction:alternate;animation-duration:.2s;animation-iteration-count:infinite;animation-name:ag-shake-left-to-right}@keyframes ag-shake-left-to-right{0%{padding-left:6px;padding-right:2px}to{padding-left:2px;padding-right:6px}}.ag-body-horizontal-scroll-viewport,.ag-body-vertical-scroll-viewport,.ag-body-viewport,.ag-center-cols-viewport,.ag-floating-bottom-viewport,.ag-floating-top-viewport,.ag-header-viewport,.ag-sticky-bottom-viewport,.ag-sticky-top-viewport,.ag-virtual-list-viewport{flex:1 1 auto;height:100%;min-width:0;overflow:hidden;position:relative}.ag-viewport{position:relative}.ag-spanning-container{position:absolute;top:0;z-index:1}.ag-body-viewport,.ag-center-cols-viewport,.ag-floating-bottom-viewport,.ag-floating-top-viewport,.ag-header-viewport,.ag-sticky-bottom-viewport,.ag-sticky-top-viewport{overflow-x:auto;-ms-overflow-style:none!important;scrollbar-width:none!important;&::-webkit-scrollbar{display:none!important}}.ag-body-viewport{display:flex;overflow-x:hidden;&:where(.ag-layout-normal){overflow-y:auto;-webkit-overflow-scrolling:touch}}.ag-floating-bottom-container,.ag-floating-top-container,.ag-sticky-bottom-container,.ag-sticky-top-container{min-height:1px}.ag-center-cols-viewport{min-height:100%;width:100%}.ag-body-horizontal-scroll-viewport{overflow-x:scroll}.ag-body-vertical-scroll-viewport{overflow-y:scroll}.ag-virtual-list-viewport{overflow:auto;width:100%}.ag-body-container,.ag-body-horizontal-scroll-container,.ag-body-vertical-scroll-container,.ag-center-cols-container,.ag-floating-bottom-container,.ag-floating-bottom-full-width-container,.ag-floating-top-container,.ag-full-width-container,.ag-header-container,.ag-pinned-left-cols-container,.ag-pinned-right-cols-container,.ag-sticky-bottom-container,.ag-sticky-top-container,.ag-virtual-list-container{position:relative}.ag-floating-bottom-container,.ag-floating-top-container,.ag-header-container,.ag-pinned-left-floating-bottom,.ag-pinned-left-floating-top,.ag-pinned-right-floating-bottom,.ag-pinned-right-floating-top,.ag-sticky-bottom-container,.ag-sticky-top-container{height:100%;white-space:nowrap}.ag-center-cols-container,.ag-pinned-right-cols-container{display:block}.ag-body-horizontal-scroll-container{height:100%}.ag-body-vertical-scroll-container{width:100%}.ag-floating-bottom-full-width-container,.ag-floating-top-full-width-container,.ag-full-width-container,.ag-sticky-bottom-full-width-container,.ag-sticky-top-full-width-container{pointer-events:none;position:absolute;top:0}:where(.ag-ltr) .ag-floating-bottom-full-width-container,:where(.ag-ltr) .ag-floating-top-full-width-container,:where(.ag-ltr) .ag-full-width-container,:where(.ag-ltr) .ag-sticky-bottom-full-width-container,:where(.ag-ltr) .ag-sticky-top-full-width-container{left:0}:where(.ag-rtl) .ag-floating-bottom-full-width-container,:where(.ag-rtl) .ag-floating-top-full-width-container,:where(.ag-rtl) .ag-full-width-container,:where(.ag-rtl) .ag-sticky-bottom-full-width-container,:where(.ag-rtl) .ag-sticky-top-full-width-container{right:0}.ag-full-width-container{width:100%}.ag-floating-bottom-full-width-container,.ag-floating-top-full-width-container{display:inline-block;height:100%;overflow:hidden;width:100%}.ag-virtual-list-container{overflow:hidden}.ag-body{display:flex;flex:1 1 auto;flex-direction:row!important;min-height:0;position:relative}.ag-body-horizontal-scroll,.ag-body-vertical-scroll{display:flex;min-height:0;min-width:0;position:relative;&:where(.ag-scrollbar-invisible){bottom:0;position:absolute;&:where(.ag-apple-scrollbar){opacity:0;transition:opacity .4s;visibility:hidden;&:where(.ag-scrollbar-scrolling,.ag-scrollbar-active){opacity:1;visibility:visible}}}}.ag-body-horizontal-scroll{width:100%;&:where(.ag-scrollbar-invisible){left:0;right:0}}.ag-body-vertical-scroll{height:100%;&:where(.ag-scrollbar-invisible){top:0;z-index:10}}:where(.ag-ltr) .ag-body-vertical-scroll{&:where(.ag-scrollbar-invisible){right:0}}:where(.ag-rtl) .ag-body-vertical-scroll{&:where(.ag-scrollbar-invisible){left:0}}.ag-force-vertical-scroll{overflow-y:scroll!important}.ag-horizontal-left-spacer,.ag-horizontal-right-spacer{height:100%;min-width:0;overflow-x:scroll;&:where(.ag-scroller-corner){overflow-x:hidden}}:where(.ag-row-animation) .ag-row{transition:transform .4s,top .4s,opacity .2s;&:where(.ag-after-created){transition:transform .4s,top .4s,height .4s,opacity .2s}}:where(.ag-row-animation.ag-prevent-animation) .ag-row{transition:none!important;&:where(.ag-row.ag-after-created){transition:none!important}}:where(.ag-row-no-animation) .ag-row{transition:none}.ag-row-loading{align-items:center;display:flex}.ag-row-position-absolute{position:absolute}.ag-row-position-relative{position:relative}.ag-full-width-row{overflow:hidden;pointer-events:all}.ag-row-inline-editing{z-index:1}.ag-row-dragging{z-index:2}.ag-stub-cell{align-items:center;display:flex}.ag-cell{display:inline-block;height:100%;position:absolute;white-space:nowrap;&:focus-visible{box-shadow:none}}.ag-cell-value{flex:1 1 auto}.ag-cell-value,.ag-group-value{overflow:hidden;text-overflow:ellipsis}.ag-cell-wrap-text{white-space:normal;word-break:break-word}:where(.ag-cell) .ag-icon{display:inline-block;vertical-align:middle}.ag-floating-top{display:flex;overflow:hidden;position:relative;white-space:nowrap;width:100%}:where(.ag-floating-top:not(.ag-invisible)){border-bottom:var(--ag-pinned-row-border)}.ag-floating-bottom{display:flex;overflow:hidden;position:relative;white-space:nowrap;width:100%}:where(.ag-floating-bottom:not(.ag-invisible)){border-top:var(--ag-pinned-row-border)}.ag-sticky-bottom,.ag-sticky-top{background-color:var(--ag-background-color);display:flex;height:0;overflow:hidden;position:absolute;width:100%;z-index:1}.ag-opacity-zero{opacity:0!important}.ag-cell-label-container{align-items:center;display:flex;flex-direction:row-reverse;height:100%;justify-content:space-between;width:100%}:where(.ag-right-aligned-header){.ag-cell-label-container{flex-direction:row}.ag-header-cell-text{text-align:end}}.ag-column-group-icons{display:block;>*{cursor:pointer}}:where(.ag-ltr){direction:ltr;.ag-body,.ag-body-horizontal-scroll,.ag-body-viewport,.ag-floating-bottom,.ag-floating-top,.ag-header,.ag-sticky-bottom,.ag-sticky-top{flex-direction:row}}:where(.ag-rtl){direction:rtl;text-align:right;.ag-body,.ag-body-horizontal-scroll,.ag-body-viewport,.ag-floating-bottom,.ag-floating-top,.ag-header,.ag-sticky-bottom,.ag-sticky-top{flex-direction:row-reverse}.ag-icon-contracted,.ag-icon-expanded,.ag-icon-tree-closed{display:block}}:where(.ag-rtl){.ag-icon-contracted,.ag-icon-expanded,.ag-icon-tree-closed{transform:rotate(180deg)}}:where(.ag-rtl){.ag-icon-contracted,.ag-icon-expanded,.ag-icon-tree-closed{transform:rotate(-180deg)}}.ag-measurement-container{height:0;overflow:hidden;visibility:hidden;width:0}.ag-measurement-element-border{display:inline-block;&:before{border-left:var(--ag-internal-measurement-border);content:"";display:block}}.ag-group{position:relative;width:100%}.ag-group-title-bar{align-items:center;display:flex;padding:var(--ag-spacing)}.ag-group-title{display:inline;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:where(.ag-group-title-bar) .ag-group-title{cursor:default}.ag-group-toolbar{align-items:center;display:flex;padding:var(--ag-spacing)}.ag-group-container{display:flex}.ag-disabled .ag-group-container{pointer-events:none}.ag-disabled-group-container,.ag-disabled-group-title-bar{opacity:.5}.ag-group-container-horizontal{flex-flow:row wrap}.ag-group-container-vertical{flex-direction:column}.ag-group-title-bar-icon{cursor:pointer;flex:none}:where(.ag-ltr) .ag-group-title-bar-icon{margin-right:var(--ag-spacing)}:where(.ag-rtl) .ag-group-title-bar-icon{margin-left:var(--ag-spacing)}:where(.ag-group-item-alignment-stretch) .ag-group-item{align-items:stretch}:where(.ag-group-item-alignment-start) .ag-group-item{align-items:flex-start}:where(.ag-group-item-alignment-end) .ag-group-item{align-items:flex-end}.ag-popup-child{top:0;z-index:5;&:where(:not(.ag-tooltip-custom)){box-shadow:var(--ag-popup-shadow)}}.ag-popup-editor{position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none}.ag-large-text-input{display:block}:where(.ag-ltr) .ag-row:not(.ag-row-level-0) .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}:where(.ag-rtl) .ag-row:not(.ag-row-level-0) .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}:where(.ag-ltr) .ag-row-group-leaf-indent{margin-left:calc(var(--ag-cell-widget-spacing) + var(--ag-icon-size))}:where(.ag-rtl) .ag-row-group-leaf-indent{margin-right:calc(var(--ag-cell-widget-spacing) + var(--ag-icon-size))}.ag-value-change-delta{padding:0 2px}.ag-value-change-delta-up{color:var(--ag-value-change-delta-up-color)}.ag-value-change-delta-down{color:var(--ag-value-change-delta-down-color)}.ag-value-change-value{background-color:transparent;border-radius:1px;padding-left:1px;padding-right:1px;transition:background-color 1s}.ag-value-change-value-highlight{background-color:var(--ag-value-change-value-highlight-background-color);transition:background-color .1s}.ag-cell-data-changed{background-color:var(--ag-value-change-value-highlight-background-color)!important}.ag-cell-data-changed-animation{background-color:transparent}.ag-cell-highlight{background-color:var(--ag-range-selection-highlight-color)!important}.ag-row,.ag-spanned-row{color:var(--ag-cell-text-color);font-family:var(--ag-cell-font-family);font-size:var(--ag-data-font-size);white-space:nowrap;--ag-internal-content-line-height:calc(min(var(--ag-row-height), var(--ag-line-height, 1000px)) - var(--ag-internal-row-border-width, 1px) - 2px)}.ag-row{background-color:var(--ag-background-color);border-bottom:var(--ag-row-border);height:var(--ag-row-height);width:100%;&.ag-row-editing-invalid{background-color:var(--ag-full-row-edit-invalid-background-color)}}:where(.ag-body-vertical-content-no-gap>div>div>div,.ag-body-vertical-content-no-gap>div>div>div>div)>.ag-row-last{border-bottom-color:transparent}.ag-sticky-bottom{border-top:var(--ag-row-border);box-sizing:content-box!important}.ag-group-contracted,.ag-group-expanded{cursor:pointer}.ag-cell,.ag-full-width-row .ag-cell-wrapper.ag-row-group{border:1px solid transparent;line-height:var(--ag-internal-content-line-height);-webkit-font-smoothing:subpixel-antialiased}:where(.ag-ltr) .ag-cell{border-right:var(--ag-column-border)}:where(.ag-rtl) .ag-cell{border-left:var(--ag-column-border)}.ag-spanned-cell-wrapper{background-color:var(--ag-background-color);position:absolute}.ag-spanned-cell-wrapper>.ag-spanned-cell{display:block;position:relative}:where(.ag-ltr) :where(.ag-body-horizontal-content-no-gap) .ag-column-last{border-right-color:transparent}:where(.ag-rtl) :where(.ag-body-horizontal-content-no-gap) .ag-column-last{border-left-color:transparent}.ag-cell-wrapper{align-items:center;display:flex;>:where(:not(.ag-cell-value,.ag-group-value)){align-items:center;display:flex;height:var(--ag-internal-content-line-height)}&:where(.ag-row-group){align-items:flex-start}:where(.ag-full-width-row) &:where(.ag-row-group){align-items:center;height:100%}}:where(.ag-ltr) .ag-cell-wrapper{padding-left:calc(var(--ag-indentation-level)*var(--ag-row-group-indent-size))}:where(.ag-rtl) .ag-cell-wrapper{padding-right:calc(var(--ag-indentation-level)*var(--ag-row-group-indent-size))}:where(.ag-cell-wrap-text:not(.ag-cell-auto-height)) .ag-cell-wrapper{align-items:normal;height:100%;:where(.ag-cell-value){height:100%}}:where(.ag-ltr) .ag-row>.ag-cell-wrapper.ag-row-group{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size)*var(--ag-indentation-level))}:where(.ag-rtl) .ag-row>.ag-cell-wrapper.ag-row-group{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size)*var(--ag-indentation-level))}.ag-cell-focus:not(.ag-cell-range-selected):focus-within,.ag-cell-range-single-cell,.ag-cell-range-single-cell.ag-cell-range-handle,.ag-context-menu-open .ag-cell-focus:not(.ag-cell-range-selected),.ag-context-menu-open .ag-full-width-row.ag-row-focus .ag-cell-wrapper.ag-row-group,.ag-full-width-row.ag-row-focus:focus .ag-cell-wrapper.ag-row-group{border:1px solid;border-color:var(--ag-range-selection-border-color);border-style:var(--ag-range-selection-border-style);outline:initial}.ag-full-width-row.ag-row-focus:focus{box-shadow:none}:where(.ag-ltr) .ag-group-contracted,:where(.ag-ltr) .ag-group-expanded,:where(.ag-ltr) .ag-row-drag,:where(.ag-ltr) .ag-selection-checkbox{margin-right:var(--ag-cell-widget-spacing)}:where(.ag-rtl) .ag-group-contracted,:where(.ag-rtl) .ag-group-expanded,:where(.ag-rtl) .ag-row-drag,:where(.ag-rtl) .ag-selection-checkbox{margin-left:var(--ag-cell-widget-spacing)}:where(.ag-ltr) .ag-group-child-count{margin-left:3px}:where(.ag-rtl) .ag-group-child-count{margin-right:3px}.ag-row-highlight-above:after,.ag-row-highlight-below:after,.ag-row-highlight-inside:after{background-color:var(--ag-range-selection-border-color);content:"";height:1px;pointer-events:none;position:absolute;width:calc(100% - 1px)}:where(.ag-ltr) .ag-row-highlight-above:after,:where(.ag-ltr) .ag-row-highlight-below:after,:where(.ag-ltr) .ag-row-highlight-inside:after{left:1px}:where(.ag-rtl) .ag-row-highlight-above:after,:where(.ag-rtl) .ag-row-highlight-below:after,:where(.ag-rtl) .ag-row-highlight-inside:after{right:1px}.ag-row-highlight-above:after{top:0}.ag-row-highlight-below:after{bottom:0}.ag-row-highlight-indent:after{display:block;width:auto}:where(.ag-ltr) .ag-row-highlight-indent:after{left:calc((var(--ag-cell-widget-spacing) + var(--ag-icon-size))*2 + var(--ag-cell-horizontal-padding) + var(--ag-row-highlight-level)*var(--ag-row-group-indent-size));right:1px}:where(.ag-rtl) .ag-row-highlight-indent:after{left:1px;right:calc((var(--ag-cell-widget-spacing) + var(--ag-icon-size))*2 + var(--ag-cell-horizontal-padding) + var(--ag-row-highlight-level)*var(--ag-row-group-indent-size))}.ag-row-highlight-inside:after{background-color:var(--ag-selected-row-background-color);border:1px solid var(--ag-range-selection-border-color);display:block;height:auto;inset:0;width:auto}.ag-row-odd{background-color:var(--ag-odd-row-background-color)}.ag-row-selected:before{background-color:var(--ag-selected-row-background-color);content:"";display:block;inset:0;pointer-events:none;position:absolute}.ag-row-hover.ag-full-width-row.ag-row-group:before,.ag-row-hover:not(.ag-full-width-row):before{background-color:var(--ag-row-hover-color);content:"";display:block;inset:0;pointer-events:none;position:absolute}.ag-row-hover.ag-row-selected:before{background-color:var(--ag-row-hover-color);background-image:linear-gradient(var(--ag-selected-row-background-color),var(--ag-selected-row-background-color))}.ag-row.ag-full-width-row.ag-row-group>*{position:relative}.ag-column-hover{background-color:var(--ag-column-hover-color)}.ag-header-range-highlight{background-color:var(--ag-range-header-highlight-color)}.ag-right-aligned-cell{font-variant-numeric:tabular-nums}:where(.ag-ltr) .ag-right-aligned-cell{text-align:right}:where(.ag-rtl) .ag-right-aligned-cell{text-align:left}.ag-right-aligned-cell .ag-cell-value,.ag-right-aligned-cell .ag-group-value{margin-left:auto}:where(.ag-ltr) .ag-cell:not(.ag-cell-inline-editing),:where(.ag-ltr) .ag-full-width-row .ag-cell-wrapper.ag-row-group{padding-left:calc(var(--ag-cell-horizontal-padding) - 1px + var(--ag-row-group-indent-size)*var(--ag-indentation-level));padding-right:calc(var(--ag-cell-horizontal-padding) - 1px)}:where(.ag-rtl) .ag-cell:not(.ag-cell-inline-editing),:where(.ag-rtl) .ag-full-width-row .ag-cell-wrapper.ag-row-group{padding-left:calc(var(--ag-cell-horizontal-padding) - 1px);padding-right:calc(var(--ag-cell-horizontal-padding) - 1px + var(--ag-row-group-indent-size)*var(--ag-indentation-level))}.ag-row>.ag-cell-wrapper{padding-left:calc(var(--ag-cell-horizontal-padding) - 1px);padding-right:calc(var(--ag-cell-horizontal-padding) - 1px)}.ag-row-dragging{cursor:move;opacity:.5}.ag-details-row{background-color:var(--ag-background-color);padding:calc(var(--ag-spacing)*3.75)}.ag-layout-auto-height,.ag-layout-print{.ag-center-cols-container,.ag-center-cols-viewport{min-height:150px}}.ag-overlay-loading-wrapper{background-color:var(--ag-modal-overlay-background-color)}.ag-skeleton-container{align-content:center;height:100%;width:100%}.ag-skeleton-effect{animation:ag-skeleton-loading 1.5s ease-in-out .5s infinite;background-color:var(--ag-row-loading-skeleton-effect-color);border-radius:.25rem;height:1em;width:100%}:where(.ag-ltr) .ag-right-aligned-cell .ag-skeleton-effect{margin-left:auto}:where(.ag-rtl) .ag-right-aligned-cell .ag-skeleton-effect{margin-right:auto}@keyframes ag-skeleton-loading{0%{opacity:1}50%{opacity:.4}to{opacity:1}}.ag-loading{align-items:center;display:flex;height:100%}:where(.ag-ltr) .ag-loading{padding-left:var(--ag-cell-horizontal-padding)}:where(.ag-rtl) .ag-loading{padding-right:var(--ag-cell-horizontal-padding)}:where(.ag-ltr) .ag-loading-icon{padding-right:var(--ag-cell-widget-spacing)}:where(.ag-rtl) .ag-loading-icon{padding-left:var(--ag-cell-widget-spacing)}.ag-icon-loading{animation-duration:1s;animation-iteration-count:infinite;animation-name:spin;animation-timing-function:linear}@keyframes spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.ag-input-wrapper,.ag-picker-field-wrapper{align-items:center;display:flex;flex:1 1 auto;line-height:normal;position:relative}.ag-input-field{align-items:center;display:flex;flex-direction:row}.ag-input-field-input:where(:not([type=checkbox],[type=radio])){flex:1 1 auto;min-width:0;width:100%}.ag-header{background-color:var(--ag-header-background-color);border-bottom:var(--ag-header-row-border);color:var(--ag-header-text-color);display:flex;font-family:var(--ag-header-font-family);font-size:var(--ag-header-font-size);font-weight:var(--ag-header-font-weight);overflow:hidden;white-space:nowrap;width:100%}.ag-header-row{height:var(--ag-header-height);position:absolute}.ag-floating-filter-button-button,.ag-header-cell-filter-button,.ag-header-cell-menu-button,.ag-header-expand-icon,.ag-panel-title-bar-button,:where(.ag-header-cell-sortable) .ag-header-cell-label{cursor:pointer}:where(.ag-ltr) .ag-header-expand-icon{margin-left:4px}:where(.ag-rtl) .ag-header-expand-icon{margin-right:4px}.ag-header-row:where(:not(:first-child)){:where(.ag-header-cell:not(.ag-header-span-height.ag-header-span-total,.ag-header-parent-hidden),.ag-header-group-cell.ag-header-group-cell-with-group){border-top:var(--ag-header-row-border)}}.ag-header-row:where(:not(.ag-header-row-column-group)){overflow:hidden}:where(.ag-header.ag-header-allow-overflow) .ag-header-row{overflow:visible}.ag-header-cell{display:inline-flex;overflow:hidden}.ag-header-group-cell{contain:paint;display:flex}.ag-header-cell,.ag-header-group-cell{align-items:center;gap:var(--ag-cell-widget-spacing);height:100%;padding:0 var(--ag-cell-horizontal-padding);position:absolute}@property --ag-internal-moving-color{syntax:"<color>";inherits:false;initial-value:transparent}@property --ag-internal-hover-color{syntax:"<color>";inherits:false;initial-value:transparent}.ag-header-cell:where(:not(.ag-floating-filter)),.ag-header-group-cell{&:before{background-image:linear-gradient(var(--ag-internal-hover-color),var(--ag-internal-hover-color)),linear-gradient(var(--ag-internal-moving-color),var(--ag-internal-moving-color));content:"";inset:0;position:absolute;--ag-internal-moving-color:transparent;--ag-internal-hover-color:transparent;transition:--ag-internal-moving-color var(--ag-header-cell-background-transition-duration),--ag-internal-hover-color var(--ag-header-cell-background-transition-duration)}&:where(:hover):before{--ag-internal-hover-color:var(--ag-header-cell-hover-background-color)}&:where(.ag-header-cell-moving):before{--ag-internal-moving-color:var(--ag-header-cell-moving-background-color);--ag-internal-hover-color:var(--ag-header-cell-hover-background-color)}}:where(.ag-header-cell:not(.ag-floating-filter) *,.ag-header-group-cell *){position:relative;z-index:1}.ag-header-cell-menu-button:where(:not(.ag-header-menu-always-show)){opacity:0;transition:opacity .2s}.ag-header-cell-filter-button,:where(.ag-header-cell.ag-header-active) .ag-header-cell-menu-button{opacity:1}.ag-header-cell-label,.ag-header-group-cell-label{align-items:center;align-self:stretch;display:flex;flex:1 1 auto;overflow:hidden;padding:5px 0}:where(.ag-ltr) .ag-sort-indicator-icon{padding-left:var(--ag-spacing)}:where(.ag-rtl) .ag-sort-indicator-icon{padding-right:var(--ag-spacing)}.ag-header-cell-label{text-overflow:ellipsis}.ag-header-group-cell-label.ag-sticky-label{flex:none;max-width:100%;overflow:visible;position:sticky}:where(.ag-ltr) .ag-header-group-cell-label.ag-sticky-label{left:var(--ag-cell-horizontal-padding)}:where(.ag-rtl) .ag-header-group-cell-label.ag-sticky-label{right:var(--ag-cell-horizontal-padding)}.ag-header-cell-text,.ag-header-group-text{overflow:hidden;text-overflow:ellipsis}.ag-header-cell-text{word-break:break-word}.ag-header-cell-comp-wrapper{width:100%}:where(.ag-header-group-cell) .ag-header-cell-comp-wrapper{display:flex}:where(.ag-header-cell:not(.ag-header-cell-auto-height)) .ag-header-cell-comp-wrapper{align-items:center;display:flex;height:100%}.ag-header-cell-wrap-text .ag-header-cell-comp-wrapper{white-space:normal}.ag-header-cell-comp-wrapper-limited-height>*{overflow:hidden}:where(.ag-right-aligned-header) .ag-header-cell-label{flex-direction:row-reverse}:where(.ag-ltr) :where(.ag-header-cell:not(.ag-right-aligned-header)){.ag-header-label-icon,.ag-header-menu-icon{margin-left:var(--ag-spacing)}}:where(.ag-rtl) :where(.ag-header-cell:not(.ag-right-aligned-header)){.ag-header-label-icon,.ag-header-menu-icon{margin-right:var(--ag-spacing)}}:where(.ag-ltr) :where(.ag-header-cell.ag-right-aligned-header){.ag-header-label-icon,.ag-header-menu-icon{margin-right:var(--ag-spacing)}}:where(.ag-rtl) :where(.ag-header-cell.ag-right-aligned-header){.ag-header-label-icon,.ag-header-menu-icon{margin-left:var(--ag-spacing)}}.ag-header-cell:after,.ag-header-group-cell:where(:not(.ag-header-span-height.ag-header-group-cell-no-group)):after{content:"";height:var(--ag-header-column-border-height);position:absolute;top:calc(50% - var(--ag-header-column-border-height)*.5);z-index:1}:where(.ag-ltr) .ag-header-cell:after,:where(.ag-ltr) .ag-header-group-cell:where(:not(.ag-header-span-height.ag-header-group-cell-no-group)):after{border-right:var(--ag-header-column-border);right:0}:where(.ag-rtl) .ag-header-cell:after,:where(.ag-rtl) .ag-header-group-cell:where(:not(.ag-header-span-height.ag-header-group-cell-no-group)):after{border-left:var(--ag-header-column-border);left:0}.ag-header-highlight-after:after,.ag-header-highlight-before:after{background-color:var(--ag-accent-color);content:"";height:100%;position:absolute;width:1px}:where(.ag-ltr) .ag-header-highlight-before:after{left:0}:where(.ag-rtl) .ag-header-highlight-before:after{right:0}:where(.ag-ltr) .ag-header-highlight-after:after{right:0;:where(.ag-pinned-left-header) &{right:1px}}:where(.ag-rtl) .ag-header-highlight-after:after{left:0;:where(.ag-pinned-left-header) &{left:1px}}.ag-header-cell-resize{align-items:center;cursor:ew-resize;display:flex;height:100%;position:absolute;top:0;width:8px;z-index:2;&:after{background-color:var(--ag-header-column-resize-handle-color);content:"";height:var(--ag-header-column-resize-handle-height);position:absolute;top:calc(50% - var(--ag-header-column-resize-handle-height)*.5);width:var(--ag-header-column-resize-handle-width);z-index:1}}:where(.ag-ltr) .ag-header-cell-resize{right:-3px;&:after{left:calc(50% - var(--ag-header-column-resize-handle-width))}}:where(.ag-rtl) .ag-header-cell-resize{left:-3px;&:after{right:calc(50% - var(--ag-header-column-resize-handle-width))}}:where(.ag-header-cell.ag-header-span-height) .ag-header-cell-resize:after{height:calc(100% - var(--ag-spacing)*4);top:calc(var(--ag-spacing)*2)}.ag-header-group-cell-no-group:where(.ag-header-span-height){display:none}.ag-sort-indicator-container{display:flex;gap:var(--ag-spacing)}.ag-layout-print{&.ag-body{display:block;height:unset}&.ag-root-wrapper{display:inline-block}.ag-body-horizontal-scroll,.ag-body-vertical-scroll{display:none}&.ag-force-vertical-scroll{overflow-y:visible!important}}@media print{.ag-root-wrapper.ag-layout-print{display:table;.ag-body-horizontal-scroll-viewport,.ag-body-viewport,.ag-center-cols-container,.ag-center-cols-viewport,.ag-root,.ag-root-wrapper-body,.ag-virtual-list-viewport{display:block!important;height:auto!important;overflow:hidden!important}.ag-cell,.ag-row{-moz-column-break-inside:avoid;break-inside:avoid}}}ag-grid,ag-grid-angular{display:block}.ag-chart,.ag-dnd-ghost,.ag-popup,.ag-root-wrapper{cursor:default;line-height:normal;white-space:normal;-webkit-font-smoothing:antialiased;background-color:var(--ag-background-color);color:var(--ag-text-color);color-scheme:var(--ag-browser-color-scheme);font-family:var(--ag-font-family);font-size:var(--ag-font-size);--ag-indentation-level:0}.ag-root-wrapper{border:var(--ag-wrapper-border);border-radius:var(--ag-wrapper-border-radius);display:flex;flex-direction:column;overflow:hidden;position:relative;&.ag-layout-normal{height:100%}}.ag-root-wrapper-body{display:flex;flex-direction:row;&.ag-layout-normal{flex:1 1 auto;height:0;min-height:0}}.ag-root{display:flex;flex-direction:column;position:relative;&.ag-layout-auto-height,&.ag-layout-normal{flex:1 1 auto;overflow:hidden;width:0}&.ag-layout-normal{height:100%}}.ag-drag-handle{color:var(--ag-drag-handle-color);cursor:grab}.ag-list-item,.ag-virtual-list-item{height:var(--ag-list-item-height)}.ag-virtual-list-item{position:absolute;width:100%}.ag-select-list{background-color:var(--ag-picker-list-background-color);border:var(--ag-picker-list-border);border-radius:var(--ag-border-radius);box-shadow:var(--ag-dropdown-shadow);overflow:hidden auto}.ag-list-item{align-items:center;display:flex;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;&.ag-active-item{background-color:var(--ag-row-hover-color)}}.ag-select-list-item{cursor:default;-webkit-user-select:none;-moz-user-select:none;user-select:none;:where(span){overflow:hidden;text-overflow:ellipsis;white-space:nowrap}}:where(.ag-ltr) .ag-select-list-item{padding-left:calc(var(--ag-cell-horizontal-padding)/2)}:where(.ag-rtl) .ag-select-list-item{padding-right:calc(var(--ag-cell-horizontal-padding)/2)}.ag-list-item-hovered:after{background-color:var(--ag-accent-color);content:"";height:1px;left:0;position:absolute;right:0}.ag-item-highlight-top:after{top:0}.ag-item-highlight-bottom:after{bottom:0}:where(.ag-icon):before{align-items:center;background-color:currentcolor;color:inherit;content:"";display:flex;font-family:inherit;font-size:var(--ag-icon-size);font-style:normal;font-variant:normal;height:var(--ag-icon-size);justify-content:center;line-height:var(--ag-icon-size);-webkit-mask-size:contain;mask-size:contain;text-transform:none;width:var(--ag-icon-size)}.ag-icon{background-position:50%;background-repeat:no-repeat;background-size:contain;color:var(--ag-icon-color);display:block;height:var(--ag-icon-size);position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:var(--ag-icon-size)}.ag-column-select-column-group-readonly,.ag-column-select-column-readonly,.ag-disabled,[disabled]{.ag-icon{opacity:.5}&.ag-icon-grip{opacity:.35}}.ag-column-select-column-readonly{&.ag-icon-grip,.ag-icon-grip{opacity:.35}}.ag-chart-menu-icon,.ag-chart-settings-next,.ag-chart-settings-prev,.ag-column-group-icons,.ag-column-select-header-icon,.ag-filter-toolpanel-expand,.ag-floating-filter-button-button,.ag-group-title-bar-icon,.ag-header-cell-filter-button,.ag-header-cell-menu-button,.ag-header-expand-icon,.ag-panel-title-bar-button,.ag-panel-title-bar-button-icon,.ag-set-filter-group-icons,:where(.ag-group-contracted) .ag-icon,:where(.ag-group-expanded) .ag-icon{background-color:var(--ag-icon-button-background-color);border-radius:var(--ag-icon-button-border-radius);box-shadow:0 0 0 var(--ag-icon-button-background-spread) var(--ag-icon-button-background-color);color:var(--ag-icon-button-color);&:hover{background-color:var(--ag-icon-button-hover-background-color);box-shadow:0 0 0 var(--ag-icon-button-background-spread) var(--ag-icon-button-hover-background-color);color:var(--ag-icon-button-hover-color)}}.ag-filter-active{background-image:linear-gradient(var(--ag-icon-button-active-background-color),var(--ag-icon-button-active-background-color));border-radius:1px;outline:solid var(--ag-icon-button-background-spread) var(--ag-icon-button-active-background-color);position:relative;&:after{background-color:var(--ag-accent-color);border-radius:50%;content:"";height:6px;position:absolute;top:-1px;width:6px}:where(.ag-icon-filter){clip-path:path("M8,0C8,4.415 11.585,8 16,8L16,16L0,16L0,0L8,0Z");color:var(--ag-icon-button-active-color)}}:where(.ag-ltr) .ag-filter-active{&:after{right:-1px}}:where(.ag-rtl) .ag-filter-active{&:after{left:-1px}}.ag-menu{background-color:var(--ag-menu-background-color);border:var(--ag-menu-border);border-radius:var(--ag-border-radius);box-shadow:var(--ag-menu-shadow);color:var(--ag-menu-text-color);max-height:100%;overflow-y:auto}.ag-menu,.ag-resizer{position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none}.ag-resizer{pointer-events:none;z-index:1}:where(.ag-resizer){&.ag-resizer-topLeft{cursor:nwse-resize;height:5px;left:0;top:0;width:5px}&.ag-resizer-top{cursor:ns-resize;height:5px;left:5px;right:5px;top:0}&.ag-resizer-topRight{cursor:nesw-resize;height:5px;right:0;top:0;width:5px}&.ag-resizer-right{bottom:5px;cursor:ew-resize;right:0;top:5px;width:5px}&.ag-resizer-bottomRight{bottom:0;cursor:nwse-resize;height:5px;right:0;width:5px}&.ag-resizer-bottom{bottom:0;cursor:ns-resize;height:5px;left:5px;right:5px}&.ag-resizer-bottomLeft{bottom:0;cursor:nesw-resize;height:5px;left:0;width:5px}&.ag-resizer-left{bottom:5px;cursor:ew-resize;left:0;top:5px;width:5px}}',e,"core",t,0,o),Array.from(function _getAllRegisteredModules(){return new Set(fe)}()).sort(((e,t)=>e.moduleName.localeCompare(t.moduleName))).forEach((i=>i.css?.forEach((s=>_injectGlobalCSS(s,e,`module-${i.moduleName}`,t,0,o)))))},Oi=(Li="object"==typeof window?window:{}).agStyleInjectionState??(Li.agStyleInjectionState={map:new WeakMap,grids:new Set}),createPart=e=>new Bi(e),Hi="$default",Vi=0,Bi=class{constructor({feature:e,params:t,modeParams:o={},css:i,cssImports:s}){this.feature=e,this.css=i,this.cssImports=s,this.modeParams={[Hi]:{...o.$default??{},...t??{}},...o}}use(e,t,o){let i=this._inject;if(null==i){let{css:e}=this;if(e){const t=`ag-theme-${this.feature??"part"}-${++Vi}`;"function"==typeof e&&(e=e()),e=`:where(.${t}) {\n${e}\n}\n`;for(const t of this.cssImports??[])e=`@import url(${JSON.stringify(t)});\n${e}`;i={css:e,class:t}}else i=!1;this._inject=i}return i&&e&&_injectGlobalCSS(i.css,e,i.class,t,1,o),!!i&&i.class}},paramToVariableName=e=>{return`--ag-${t=e,t.replace(/[A-Z]/g,(e=>`-${e}`)).toLowerCase()}`;var t},paramToVariableExpression=e=>`var(${paramToVariableName(e)})`,accentMix=e=>({ref:"accentColor",mix:e}),foregroundMix=e=>({ref:"foregroundColor",mix:e}),foregroundBackgroundMix=e=>({ref:"foregroundColor",mix:e,onto:"backgroundColor"}),zi={ref:"backgroundColor"},Wi={ref:"foregroundColor"},Ui={ref:"accentColor"},$i={backgroundColor:"#fff",foregroundColor:"#181d1f",borderColor:foregroundMix(.15),chromeBackgroundColor:foregroundBackgroundMix(.02),browserColorScheme:"light"},Ki={...$i,textColor:Wi,accentColor:"#2196f3",invalidColor:"#e02525",wrapperBorder:!0,rowBorder:!0,headerRowBorder:!0,footerRowBorder:{ref:"rowBorder"},columnBorder:{style:"solid",width:1,color:"transparent"},headerColumnBorder:!1,headerColumnBorderHeight:"100%",pinnedColumnBorder:!0,pinnedRowBorder:!0,sidePanelBorder:!0,sideBarPanelWidth:250,sideBarBackgroundColor:{ref:"chromeBackgroundColor"},sideButtonBarBackgroundColor:{ref:"sideBarBackgroundColor"},sideButtonBarTopPadding:0,sideButtonSelectedUnderlineWidth:2,sideButtonSelectedUnderlineColor:"transparent",sideButtonSelectedUnderlineTransitionDuration:0,sideButtonBackgroundColor:"transparent",sideButtonTextColor:{ref:"textColor"},sideButtonHoverBackgroundColor:{ref:"sideButtonBackgroundColor"},sideButtonHoverTextColor:{ref:"sideButtonTextColor"},sideButtonSelectedBackgroundColor:zi,sideButtonSelectedTextColor:{ref:"sideButtonTextColor"},sideButtonBorder:"solid 1px transparent",sideButtonSelectedBorder:!0,sideButtonLeftPadding:{ref:"spacing"},sideButtonRightPadding:{ref:"spacing"},sideButtonVerticalPadding:{calc:"spacing * 3"},fontFamily:["-apple-system","BlinkMacSystemFont","Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue","sans-serif"],headerBackgroundColor:{ref:"chromeBackgroundColor"},headerFontFamily:{ref:"fontFamily"},cellFontFamily:{ref:"fontFamily"},headerFontWeight:500,headerFontSize:{ref:"fontSize"},dataFontSize:{ref:"fontSize"},headerTextColor:{ref:"textColor"},headerCellHoverBackgroundColor:"transparent",headerCellMovingBackgroundColor:{ref:"headerCellHoverBackgroundColor"},headerCellBackgroundTransitionDuration:"0.2s",cellTextColor:{ref:"textColor"},subtleTextColor:{ref:"textColor",mix:.5},rangeSelectionBorderStyle:"solid",rangeSelectionBorderColor:Ui,rangeSelectionBackgroundColor:accentMix(.2),rangeSelectionChartBackgroundColor:"#0058FF1A",rangeSelectionChartCategoryBackgroundColor:"#00FF841A",rangeSelectionHighlightColor:accentMix(.5),rangeHeaderHighlightColor:(Gi=.08,{ref:"foregroundColor",mix:Gi,onto:"headerBackgroundColor"}),rowNumbersSelectedColor:accentMix(.5),rowHoverColor:accentMix(.08),columnHoverColor:accentMix(.05),selectedRowBackgroundColor:accentMix(.12),modalOverlayBackgroundColor:{ref:"backgroundColor",mix:.66},oddRowBackgroundColor:zi,borderWidth:1,borderRadius:4,wrapperBorderRadius:8,cellHorizontalPadding:{calc:"spacing * 2 * cellHorizontalPaddingScale"},cellWidgetSpacing:{calc:"spacing * 1.5"},cellHorizontalPaddingScale:1,rowGroupIndentSize:{calc:"cellWidgetSpacing + iconSize"},valueChangeDeltaUpColor:"#43a047",valueChangeDeltaDownColor:"#e53935",valueChangeValueHighlightBackgroundColor:"#16a08580",spacing:8,fontSize:14,rowHeight:{calc:"max(iconSize, dataFontSize) + spacing * 3.25 * rowVerticalPaddingScale"},rowVerticalPaddingScale:1,headerHeight:{calc:"max(iconSize, dataFontSize) + spacing * 4 * headerVerticalPaddingScale"},headerVerticalPaddingScale:1,paginationPanelHeight:{ref:"rowHeight",calc:"max(rowHeight, 22px)"},popupShadow:"0 0 16px #00000026",cardShadow:"0 1px 4px 1px #00000018",dropdownShadow:{ref:"cardShadow"},dragAndDropImageBackgroundColor:zi,dragAndDropImageBorder:!0,dragAndDropImageShadow:{ref:"popupShadow"},dragHandleColor:foregroundMix(.7),focusShadow:{spread:3,color:accentMix(.5)},focusErrorShadow:{spread:3,color:{ref:"invalidColor",onto:"backgroundColor",mix:.5}},headerColumnResizeHandleHeight:"30%",headerColumnResizeHandleWidth:2,headerColumnResizeHandleColor:{ref:"borderColor"},widgetContainerHorizontalPadding:{calc:"spacing * 1.5"},widgetContainerVerticalPadding:{calc:"spacing * 1.5"},widgetHorizontalSpacing:{calc:"spacing * 1.5"},widgetVerticalSpacing:{ref:"spacing"},listItemHeight:{calc:"max(iconSize, dataFontSize) + widgetVerticalSpacing"},iconSize:16,iconColor:"inherit",iconButtonColor:{ref:"iconColor"},iconButtonBackgroundColor:"transparent",iconButtonBackgroundSpread:4,iconButtonBorderRadius:1,iconButtonHoverColor:{ref:"iconButtonColor"},iconButtonHoverBackgroundColor:foregroundMix(.1),iconButtonActiveColor:Ui,iconButtonActiveBackgroundColor:accentMix(.28),iconButtonActiveIndicatorColor:Ui,toggleButtonWidth:28,toggleButtonHeight:18,toggleButtonOnBackgroundColor:Ui,toggleButtonOffBackgroundColor:foregroundBackgroundMix(.3),toggleButtonSwitchBackgroundColor:zi,toggleButtonSwitchInset:2,menuBorder:{color:foregroundMix(.2)},menuBackgroundColor:foregroundBackgroundMix(.03),menuTextColor:foregroundBackgroundMix(.95),menuShadow:{ref:"popupShadow"},menuSeparatorColor:{ref:"borderColor"},setFilterIndentSize:{ref:"iconSize"},chartMenuPanelWidth:260,chartMenuLabelColor:foregroundMix(.8),dialogShadow:{ref:"popupShadow"},cellEditingBorder:{color:Ui},cellEditingShadow:{ref:"cardShadow"},fullRowEditInvalidBackgroundColor:{ref:"invalidColor",onto:"backgroundColor",mix:.25},dialogBorder:{color:foregroundMix(.2)},panelBackgroundColor:zi,panelTitleBarBackgroundColor:{ref:"headerBackgroundColor"},panelTitleBarIconColor:{ref:"headerTextColor"},panelTitleBarTextColor:{ref:"headerTextColor"},panelTitleBarFontWeight:{ref:"headerFontWeight"},panelTitleBarBorder:!0,columnSelectIndentSize:{ref:"iconSize"},toolPanelSeparatorBorder:!0,tooltipBackgroundColor:{ref:"chromeBackgroundColor"},tooltipErrorBackgroundColor:{ref:"invalidColor",onto:"backgroundColor",mix:.1},tooltipTextColor:{ref:"textColor"},tooltipErrorTextColor:{ref:"invalidColor"},tooltipBorder:!0,tooltipErrorBorder:{color:{ref:"invalidColor",onto:"backgroundColor",mix:.25}},columnDropCellBackgroundColor:foregroundMix(.07),columnDropCellTextColor:{ref:"textColor"},columnDropCellDragHandleColor:{ref:"textColor"},columnDropCellBorder:{color:foregroundMix(.13)},selectCellBackgroundColor:foregroundMix(.07),selectCellBorder:{color:foregroundMix(.13)},advancedFilterBuilderButtonBarBorder:!0,advancedFilterBuilderIndentSize:{calc:"spacing * 2 + iconSize"},advancedFilterBuilderJoinPillColor:"#f08e8d",advancedFilterBuilderColumnPillColor:"#a6e194",advancedFilterBuilderOptionPillColor:"#f3c08b",advancedFilterBuilderValuePillColor:"#85c0e4",filterPanelApplyButtonColor:zi,filterPanelApplyButtonBackgroundColor:Ui,filterPanelCardSubtleColor:{ref:"textColor",mix:.7},filterPanelCardSubtleHoverColor:{ref:"textColor"},findMatchColor:Wi,findMatchBackgroundColor:"#ffff00",findActiveMatchColor:Wi,findActiveMatchBackgroundColor:"#ffa500",filterToolPanelGroupIndent:{ref:"spacing"},rowLoadingSkeletonEffectColor:foregroundMix(.15),statusBarLabelColor:Wi,statusBarLabelFontWeight:500,statusBarValueColor:Wi,statusBarValueFontWeight:500,pinnedSourceRowTextColor:{ref:"textColor"},pinnedSourceRowBackgroundColor:{ref:"backgroundColor"},pinnedSourceRowFontWeight:600,pinnedRowFontWeight:600,pinnedRowBackgroundColor:{ref:"backgroundColor"},pinnedRowTextColor:{ref:"textColor"}},ji={cellBatchEditBackgroundColor:"rgba(220 181 139 / 16%)",cellBatchEditTextColor:"#422f00",rowBatchEditBackgroundColor:{ref:"cellBatchEditBackgroundColor"},rowBatchEditTextColor:{ref:"cellBatchEditTextColor"}},qi={...ji,cellBatchEditTextColor:"#f3d0b3"},Qi=(()=>createPart({feature:"batchEditStyle",params:ji,css:".ag-cell-batch-edit{background-color:var(--ag-cell-batch-edit-background-color);color:var(--ag-cell-batch-edit-text-color);display:inherit}.ag-row-batch-edit{background-color:var(--ag-row-batch-edit-background-color);color:var(--ag-row-batch-edit-text-color)}"}))(),Yi=":where(.ag-button){background:none;border:none;color:inherit;cursor:pointer;font-family:inherit;font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin:0;padding:0;text-indent:inherit;text-shadow:inherit;text-transform:inherit;word-spacing:inherit;&:disabled{cursor:default}&:focus-visible{box-shadow:var(--ag-focus-shadow);outline:none}}.ag-standard-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:var(--ag-button-background-color);border:var(--ag-button-border);border-radius:var(--ag-button-border-radius);color:var(--ag-button-text-color);cursor:pointer;font-weight:var(--ag-button-font-weight);padding:var(--ag-button-vertical-padding) var(--ag-button-horizontal-padding);&:hover{background-color:var(--ag-button-hover-background-color);border:var(--ag-button-hover-border);color:var(--ag-button-hover-text-color)}&:active{background-color:var(--ag-button-active-background-color);border:var(--ag-button-active-border);color:var(--ag-button-active-text-color)}&:disabled{background-color:var(--ag-button-disabled-background-color);border:var(--ag-button-disabled-border);color:var(--ag-button-disabled-text-color)}}",Zi={buttonTextColor:"inherit",buttonFontWeight:"normal",buttonBackgroundColor:"transparent",buttonBorder:!1,buttonBorderRadius:{ref:"borderRadius"},buttonHorizontalPadding:{calc:"spacing * 2"},buttonVerticalPadding:{ref:"spacing"},buttonHoverTextColor:{ref:"buttonTextColor"},buttonHoverBackgroundColor:{ref:"buttonBackgroundColor"},buttonHoverBorder:{ref:"buttonBorder"},buttonActiveTextColor:{ref:"buttonHoverTextColor"},buttonActiveBackgroundColor:{ref:"buttonHoverBackgroundColor"},buttonActiveBorder:{ref:"buttonHoverBorder"},buttonDisabledTextColor:{ref:"inputDisabledTextColor"},buttonDisabledBackgroundColor:{ref:"inputDisabledBackgroundColor"},buttonDisabledBorder:{ref:"inputDisabledBorder"}},Ji=(()=>createPart({feature:"buttonStyle",params:{...Zi,buttonBackgroundColor:zi,buttonBorder:!0,buttonHoverBackgroundColor:{ref:"rowHoverColor"},buttonActiveBorder:{color:Ui}},css:Yi}))(),Xi=(()=>createPart({feature:"columnDropStyle",css:".ag-column-drop-vertical-empty-message{align-items:center;border:dashed var(--ag-border-width);border-color:var(--ag-border-color);display:flex;inset:0;justify-content:center;margin:calc(var(--ag-spacing)*1.5) calc(var(--ag-spacing)*2);overflow:hidden;padding:calc(var(--ag-spacing)*2);position:absolute}"}))(),es=["colorScheme","color","length","scale","borderStyle","border","shadow","image","fontFamily","fontWeight","duration"],ts=(e=>{const t=new Map;return o=>{const i=o;return t.has(i)||t.set(i,e(o)),t.get(i)}})((e=>(e=e.toLowerCase(),es.find((t=>e.endsWith(t.toLowerCase())))??"length"))),literalToCSS=e=>"object"==typeof e&&e?.ref?paramToVariableExpression(e.ref):"string"==typeof e?e:"number"==typeof e&&String(e),colorValueToCss=e=>{if("string"==typeof e)return e;if(e&&"ref"in e){const t=paramToVariableExpression(e.ref);if(null==e.mix)return t;return`color-mix(in srgb, ${e.onto?paramToVariableExpression(e.onto):"transparent"}, ${t} ${((e,t,o)=>Math.max(t,Math.min(o,e)))(100*e.mix,0,100)}%)`}return!1},lengthValueToCss=e=>{if("string"==typeof e)return e;if("number"==typeof e)return`${e}px`;if(e&&"calc"in e){return`calc(${e.calc.replace(/ ?[*/+] ?/g," $& ").replace(/-?\b[a-z][a-z0-9]*\b(?![-(])/gi,(e=>"-"===e[0]?e:` ${paramToVariableExpression(e)} `))})`}return!(!e||!("ref"in e))&¶mToVariableExpression(e.ref)},borderValueToCss=(e,t)=>"string"==typeof e?e:!0===e?borderValueToCss({},t):!1===e?"columnBorder"===t?borderValueToCss({color:"transparent"},t):"none":e&&"ref"in e?paramToVariableExpression(e.ref):os(e.style??"solid")+" "+lengthValueToCss(e.width??{ref:"borderWidth"})+" "+colorValueToCss(e.color??{ref:"borderColor"}),os=literalToCSS,fontFamilyValueToCss=e=>"string"==typeof e?e.includes(",")?e:quoteUnsafeChars(e):e&&"googleFont"in e?fontFamilyValueToCss(e.googleFont):e&&"ref"in e?paramToVariableExpression(e.ref):!!Array.isArray(e)&&e.map((e=>("object"==typeof e&&"googleFont"in e&&(e=e.googleFont),quoteUnsafeChars(e)))).join(", "),quoteUnsafeChars=e=>/^[\w-]+$|\w\(/.test(e)?e:JSON.stringify(e),is=literalToCSS,imageValueToCss=e=>"string"==typeof e?e:e&&"url"in e?`url(${JSON.stringify(e.url)})`:e&&"svg"in e?imageValueToCss({url:`data:image/svg+xml,${encodeURIComponent(e.svg)}`}):!(!e||!("ref"in e))&¶mToVariableExpression(e.ref),ss={color:colorValueToCss,colorScheme:literalToCSS,length:lengthValueToCss,scale:literalToCSS,border:borderValueToCss,borderStyle:os,shadow:e=>"string"==typeof e?e:!1===e?"none":e&&"ref"in e?paramToVariableExpression(e.ref):[lengthValueToCss(e.offsetX??0),lengthValueToCss(e.offsetY??0),lengthValueToCss(e.radius??0),lengthValueToCss(e.spread??0),colorValueToCss(e.color??{ref:"foregroundColor"})].join(" "),image:imageValueToCss,fontFamily:fontFamilyValueToCss,fontWeight:is,duration:(e,t)=>"string"==typeof e?e:"number"==typeof e?(e>=10&&_error(104,{value:e,param:t}),`${e}s`):!(!e||!("ref"in e))&¶mToVariableExpression(e.ref)},paramValueToCss=(e,t)=>{const o=ts(e);return ss[o](t,e)},ns=!1,createTheme=()=>(new rs).withPart(Ji).withPart(Xi).withPart(Qi),rs=class _ThemeImpl{constructor(e=[]){this.parts=e}withPart(e){return"function"==typeof e&&(e=e()),e instanceof Bi?new _ThemeImpl([...this.parts,e]):(_logPreInitErr(259,{part:e},"Invalid part"),this)}withoutPart(e){return this.withPart(createPart({feature:e}))}withParams(e,t="$default"){return this.withPart(createPart({modeParams:{[t]:e}}))}_startUse({styleContainer:e,cssLayer:t,nonce:o,loadThemeGoogleFonts:i}){if(_i)return;if(ns)return;uninstallLegacyCSS(),_injectCoreAndModuleCSS(e,t,o);const s=getGoogleFontsUsed(this);if(s.length>0)for(const e of s)i&&loadGoogleFont(e,o);for(const i of this.parts)i.use(e,t,o)}_getCssClass(){return ns?"ag-theme-quartz":this._cssClassCache??(this._cssClassCache=deduplicatePartsByFeature(this.parts).map((e=>e.use(void 0,void 0,void 0))).filter(Boolean).join(" "))}_getModeParams(){let e=this._paramsCache;if(!e){const t={[Hi]:{...Ki}};for(const e of deduplicatePartsByFeature(this.parts))for(const o of Object.keys(e.modeParams)){const i=e.modeParams[o];if(i){const e=t[o]??(t[o]={}),s=new Set;for(const t of Object.keys(i)){const o=i[t];void 0!==o&&(e[t]=o,s.add(t))}if(o===Hi)for(const e of Object.keys(t)){const o=t[e];if(e!==Hi)for(const e of s)delete o[e]}}}this._paramsCache=e=t}return e}_getPerGridCss(e){const t="##SELECTOR##";let o=this._paramsCssCache;if(!o){let e="",t="";const i=this._getModeParams();for(const o of Object.keys(i)){const s=i[o];if(o!==Hi){const i=`:where([data-ag-theme-mode="${"object"==typeof CSS?CSS.escape(o):o}"]) & {\n`;e+=i,t+=i}for(const o of Object.keys(s).sort()){const i=s[o],n=paramValueToCss(o,i);if(!1===n)_error(107,{key:o,value:i});else{const i=paramToVariableName(o),s=i.replace("--ag-","--ag-inherited-");e+=`\t${i}: var(${s}, ${n});\n`,t+=`\t${s}: var(${i});\n`}}o!==Hi&&(e+="}\n",t+="}\n")}let s=`##SELECTOR## {\n${e}}\n`;s+=`:has(> ##SELECTOR##):not(##SELECTOR##) {\n${t}}\n`,this._paramsCssCache=o=s}return o.replaceAll(t,`:where(.${e})`)}},deduplicatePartsByFeature=e=>{const t=new Map;for(const o of e)t.set(o.feature,o);const o=[];for(const i of e)i.feature&&t.get(i.feature)!==i||o.push(i);return o},getGoogleFontsUsed=e=>{const t=new Set,visitParamValue=e=>{if(Array.isArray(e))e.forEach(visitParamValue);else{const o=e?.googleFont;"string"==typeof o&&t.add(o)}};return Object.values(e._getModeParams()).flatMap((e=>Object.values(e))).forEach(visitParamValue),Array.from(t).sort()},as=!1,uninstallLegacyCSS=()=>{if(!as){as=!0;for(const e of Array.from(document.head.querySelectorAll('style[data-ag-scope="legacy"]')))e.remove()}},ls=new Set,loadGoogleFont=async(e,t)=>{ls.add(e);const o=`@import url('https://${ds}/css2?family=${encodeURIComponent(e)}:wght@100;200;300;400;500;600;700;800;900&display=swap');\n`;_injectGlobalCSS(o,document.head,`googleFont:${e}`,void 0,0,t)},ds="fonts.googleapis.com",cs=(()=>createPart({feature:"checkboxStyle",params:{checkboxBorderWidth:1,checkboxBorderRadius:{ref:"borderRadius"},checkboxUncheckedBackgroundColor:zi,checkboxUncheckedBorderColor:foregroundBackgroundMix(.3),checkboxCheckedBackgroundColor:Ui,checkboxCheckedBorderColor:{ref:"checkboxCheckedBackgroundColor"},checkboxCheckedShapeImage:{svg:'<svg xmlns="http://www.w3.org/2000/svg" width="10" height="7" fill="none"><path stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.75" d="M1 3.5 3.5 6l5-5"/></svg>'},checkboxCheckedShapeColor:zi,checkboxIndeterminateBackgroundColor:foregroundBackgroundMix(.3),checkboxIndeterminateBorderColor:{ref:"checkboxIndeterminateBackgroundColor"},checkboxIndeterminateShapeImage:{svg:'<svg xmlns="http://www.w3.org/2000/svg" width="10" height="2" fill="none"><rect width="10" height="2" fill="#000" rx="1"/></svg>'},checkboxIndeterminateShapeColor:zi,radioCheckedShapeImage:{svg:'<svg xmlns="http://www.w3.org/2000/svg" width="6" height="6" fill="none"><circle cx="3" cy="3" r="3" fill="#000"/></svg>'}},css:'.ag-checkbox-input-wrapper,.ag-radio-button-input-wrapper{background-color:var(--ag-checkbox-unchecked-background-color);border:solid var(--ag-checkbox-border-width) var(--ag-checkbox-unchecked-border-color);flex:none;height:var(--ag-icon-size);position:relative;width:var(--ag-icon-size);:where(input){-webkit-appearance:none;-moz-appearance:none;appearance:none;cursor:pointer;display:block;height:var(--ag-icon-size);margin:0;opacity:0;width:var(--ag-icon-size)}&:after{content:"";display:block;inset:0;-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;pointer-events:none;position:absolute}&:where(.ag-checked){background-color:var(--ag-checkbox-checked-background-color);border-color:var(--ag-checkbox-checked-border-color);&:after{background-color:var(--ag-checkbox-checked-shape-color)}}&:where(:focus-within,:active){box-shadow:var(--ag-focus-shadow)}&:where(.ag-disabled){filter:grayscale();opacity:.5}}.ag-checkbox-input-wrapper{border-radius:var(--ag-checkbox-border-radius);&:where(.ag-checked):after{-webkit-mask-image:var(--ag-checkbox-checked-shape-image);mask-image:var(--ag-checkbox-checked-shape-image)}&:where(.ag-indeterminate){background-color:var(--ag-checkbox-indeterminate-background-color);border-color:var(--ag-checkbox-indeterminate-border-color);&:after{background-color:var(--ag-checkbox-indeterminate-shape-color);-webkit-mask-image:var(--ag-checkbox-indeterminate-shape-image);mask-image:var(--ag-checkbox-indeterminate-shape-image)}}}.ag-cell-editing-error .ag-checkbox-input-wrapper:focus-within{box-shadow:var(--ag-focus-error-shadow)}.ag-radio-button-input-wrapper{border-radius:100%;&:where(.ag-checked):after{-webkit-mask-image:var(--ag-radio-checked-shape-image);mask-image:var(--ag-radio-checked-shape-image)}}'}))(),darkParams=()=>({...$i,...qi,backgroundColor:"hsl(217, 0%, 17%)",foregroundColor:"#FFF",chromeBackgroundColor:foregroundBackgroundMix(.05),rowHoverColor:accentMix(.15),selectedRowBackgroundColor:accentMix(.2),menuBackgroundColor:foregroundBackgroundMix(.1),browserColorScheme:"dark",popupShadow:"0 0px 20px #000A",cardShadow:"0 1px 4px 1px #000A",advancedFilterBuilderJoinPillColor:"#7a3a37",advancedFilterBuilderColumnPillColor:"#355f2d",advancedFilterBuilderOptionPillColor:"#5a3168",advancedFilterBuilderValuePillColor:"#374c86",filterPanelApplyButtonColor:Wi,findMatchColor:zi,findActiveMatchColor:zi,checkboxUncheckedBorderColor:foregroundBackgroundMix(.4),toggleButtonOffBackgroundColor:foregroundBackgroundMix(.4),rowBatchEditBackgroundColor:foregroundBackgroundMix(.1)}),darkBlueParams=()=>({...darkParams(),backgroundColor:"#1f2836"}),hs=(()=>createPart({feature:"colorScheme",params:darkBlueParams()}))(),us=(()=>createPart({feature:"colorScheme",params:$i,modeParams:{light:$i,dark:darkParams(),"dark-blue":darkBlueParams()}}))(),gs={aggregation:'<path d="M18 7V4H6l6 8-6 8h12v-3"/>',arrows:'<polyline points="5 9 2 12 5 15"/><polyline points="9 5 12 2 15 5"/><polyline points="15 19 12 22 9 19"/><polyline points="19 9 22 12 19 15"/><line x1="2" x2="22" y1="12" y2="12"/><line x1="12" x2="12" y1="2" y2="22"/>',asc:'<path d="m5 12 7-7 7 7"/><path d="M12 19V5"/>',cancel:'<path d="m18 6-12 12"/><path d="m6 6 12 12"/>',chart:'<line x1="18" x2="18" y1="20" y2="10"/><line x1="12" x2="12" y1="20" y2="4"/><line x1="6" x2="6" y1="20" y2="14"/>',"color-picker":'<path d="m19 11-8-8-8.6 8.6a2 2 0 0 0 0 2.8l5.2 5.2c.8.8 2 .8 2.8 0L19 11Z"/><path d="m5 2 5 5"/><path d="M2 13h15"/><path d="M22 20a2 2 0 1 1-4 0c0-1.6 1.7-2.4 2-4 .3 1.6 2 2.4 2 4Z"/>',columns:'<path d="M9 3H5a2 2 0 0 0-2 2v4m6-6h10a2 2 0 0 1 2 2v4M9 3v18m0 0h10a2 2 0 0 0 2-2V9M9 21H5a2 2 0 0 1-2-2V9m0 0h18"/>',contracted:'<path d="m9 18 6-6-6-6"/>',copy:'<rect width="14" height="14" x="8" y="8" rx="2" ry="2"/><path d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"/>',cross:'<path d="M18 6 6 18"/><path d="m6 6 12 12"/>',csv:'<path d="M14.5 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7.5L14.5 2z"/><polyline points="14 2 14 8 20 8"/><path d="M8 13h2"/><path d="M8 17h2"/><path d="M14 13h2"/><path d="M14 17h2"/>',cut:'<circle cx="6" cy="6" r="3"/><path d="M8.12 8.12 12 12"/><path d="M20 4 8.12 15.88"/><circle cx="6" cy="18" r="3"/><path d="M14.8 14.8 20 20"/>',desc:'<path d="M12 5v14"/><path d="m19 12-7 7-7-7"/>',down:'<path d="M12 5v14"/><path d="m19 12-7 7-7-7"/>',excel:'<path d="M14.5 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7.5L14.5 2z"/><polyline points="14 2 14 8 20 8"/><path d="M8 13h2"/><path d="M8 17h2"/><path d="M14 13h2"/><path d="M14 17h2"/>',expanded:'<path d="m15 18-6-6 6-6"/>',"eye-slash":'<path d="M9.88 9.88a3 3 0 1 0 4.24 4.24"/><path d="M10.73 5.08A10.43 10.43 0 0 1 12 5c7 0 10 7 10 7a13.16 13.16 0 0 1-1.67 2.68"/><path d="M6.61 6.61A13.526 13.526 0 0 0 2 12s3 7 10 7a9.74 9.74 0 0 0 5.39-1.61"/><line x1="2" x2="22" y1="2" y2="22"/>',eye:'<path d="M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z"/><circle cx="12" cy="12" r="3"/>',filter:'<path d="M3 6h18"/><path d="M7 12h10"/><path d="M10 18h4"/>',first:'<path d="m17 18-6-6 6-6"/><path d="M7 6v12"/>',group:'<path d="M16 12H3"/><path d="M16 18H3"/><path d="M10 6H3"/><path d="M21 18V8a2 2 0 0 0-2-2h-5"/><path d="m16 8-2-2 2-2"/>',last:'<path d="m7 18 6-6-6-6"/><path d="M17 6v12"/>',left:'<path d="m12 19-7-7 7-7"/><path d="M19 12H5"/>',linked:'<path d="M9 17H7A5 5 0 0 1 7 7h2"/><path d="M15 7h2a5 5 0 1 1 0 10h-2"/><line x1="8" x2="16" y1="12" y2="12"/>',loading:'<line x1="12" x2="12" y1="2" y2="6"/><line x1="12" x2="12" y1="18" y2="22"/><line x1="4.93" x2="7.76" y1="4.93" y2="7.76"/><line x1="16.24" x2="19.07" y1="16.24" y2="19.07"/><line x1="2" x2="6" y1="12" y2="12"/><line x1="18" x2="22" y1="12" y2="12"/><line x1="4.93" x2="7.76" y1="19.07" y2="16.24"/><line x1="16.24" x2="19.07" y1="7.76" y2="4.93"/>',maximize:'<polyline points="15 3 21 3 21 9"/><polyline points="9 21 3 21 3 15"/><line x1="21" x2="14" y1="3" y2="10"/><line x1="3" x2="10" y1="21" y2="14"/>',menu:'<line x1="4" x2="20" y1="12" y2="12"/><line x1="4" x2="20" y1="6" y2="6"/><line x1="4" x2="20" y1="18" y2="18"/>',"menu-alt":'<circle cx="12" cy="5" r="0.75" fill="#D9D9D9"/><circle cx="12" cy="12" r="0.75" fill="#D9D9D9"/><circle cx="12" cy="19" r="0.75" fill="#D9D9D9"/>',minimize:'<polyline points="4 14 10 14 10 20"/><polyline points="20 10 14 10 14 4"/><line x1="14" x2="21" y1="10" y2="3"/><line x1="3" x2="10" y1="21" y2="14"/>',minus:'<circle cx="12" cy="12" r="10"/><path d="M8 12h8"/>',next:'<path d="m9 18 6-6-6-6"/>',none:'<path d="m7 15 5 5 5-5"/><path d="m7 9 5-5 5 5"/>',"not-allowed":'<circle cx="12" cy="12" r="10"/><path d="m4.9 4.9 14.2 14.2"/>',paste:'<path d="M15 2H9a1 1 0 0 0-1 1v2c0 .6.4 1 1 1h6c.6 0 1-.4 1-1V3c0-.6-.4-1-1-1Z"/><path d="M8 4H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2M16 4h2a2 2 0 0 1 2 2v2M11 14h10"/><path d="m17 10 4 4-4 4"/>',pin:'<line x1="12" x2="12" y1="17" y2="22"/><path d="M5 17h14v-1.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V6h1a2 2 0 0 0 0-4H8a2 2 0 0 0 0 4h1v4.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24Z"/>',pivot:'<path d="M15 3v18"/><rect width="18" height="18" x="3" y="3" rx="2"/><path d="M21 9H3"/><path d="M21 15H3"/>',plus:'<circle cx="12" cy="12" r="10"/><path d="M8 12h8"/><path d="M12 8v8"/>',previous:'<path d="m15 18-6-6 6-6"/>',right:'<path d="M5 12h14"/><path d="m12 5 7 7-7 7"/>',save:'<path d="M12 17V3"/><path d="m6 11 6 6 6-6"/><path d="M19 21H5"/>',"small-left":'<path d="m15 18-6-6 6-6"/>',"small-right":'<path d="m9 18 6-6-6-6"/>',tick:'<path d="M20 6 9 17l-5-5"/>',"tree-closed":'<path d="m9 18 6-6-6-6"/>',"tree-indeterminate":'<path d="M5 12h14"/>',"tree-open":'<path d="m6 9 6 6 6-6"/>',unlinked:'<path d="M9 17H7A5 5 0 0 1 7 7"/><path d="M15 7h2a5 5 0 0 1 4 8"/><line x1="8" x2="12" y1="12" y2="12"/><line x1="2" x2="22" y1="2" y2="22"/>',up:'<path d="m5 12 7-7 7 7"/><path d="M12 19V5"/>',grip:'<circle cx="5" cy="8" r="0.5"/><circle cx="12" cy="8" r="0.5"/><circle cx="19" cy="8" r="0.5"/><circle cx="5" cy="16" r="0.5"/><circle cx="12" cy="16" r="0.5"/><circle cx="19" cy="16" r="0.5"/><g stroke="none" fill="currentColor"><circle cx="5" cy="8" r="1"/><circle cx="12" cy="8" r="1"/><circle cx="19" cy="8" r="1"/><circle cx="5" cy="16" r="1"/><circle cx="12" cy="16" r="1"/><circle cx="19" cy="16" r="1"/></g>',settings:'<path d="M20 7h-9"/><path d="M14 17H5"/><circle cx="17" cy="17" r="3"/><circle cx="7" cy="7" r="3"/>'},ps={"column-arrow":'<svg xmlns="http://www.w3.org/2000/svg" class="ag-icon" fill="none" viewBox="0 0 32 32"><path fill-rule="evenodd" clip-rule="evenodd" d="M0 26C0 28.2092 1.79086 30 4 30H14C16.2091 30 18 28.2092 18 26V15H25.8786L24.4394 16.4393C23.8536 17.0251 23.8536 17.9749 24.4394 18.5607C25.0252 19.1464 25.9748 19.1464 26.5606 18.5607L30.5606 14.5607C31.1464 13.9749 31.1464 13.0251 30.5606 12.4393L26.5606 8.43934C25.9748 7.85356 25.0252 7.85356 24.4394 8.43934C23.8536 9.02512 23.8536 9.97488 24.4394 10.5607L25.8786 12H18V6C18 3.79086 16.2091 2 14 2H4C1.79086 2 0 3.79086 0 6V26ZM14 5H10.5V12H15V6C15 5.44772 14.5523 5 14 5ZM4 5H7.5V12H3V6C3 5.44772 3.44772 5 4 5ZM10.5 15H15V26C15 26.5522 14.5523 27 14 27H10.5V15ZM4 27H7.5V15H3V26C3 26.5522 3.44772 27 4 27Z" fill="currentColor"/></svg>',"small-down":'<svg xmlns="http://www.w3.org/2000/svg" class="ag-icon" fill="black" stroke="none" viewBox="0 0 32 32"><path d="M7.334 10.667 16 21.334l8.667-10.667H7.334Z"/></svg>',"small-up":'<svg xmlns="http://www.w3.org/2000/svg" class="ag-icon" fill="black" stroke="none" viewBox="0 0 32 32"><path d="M7.334 21.333 16 10.666l8.667 10.667H7.334Z"/></svg>',"pinned-top":'<svg xmlns="http://www.w3.org/2000/svg" class="ag-icon" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M12.53 3.72A.75.75 0 0 1 12 5H4a.75.75 0 0 1 0-1.5h8a.75.75 0 0 1 .53.22ZM3.269 10.744a.75.75 0 0 1 .2-.524l4-4a.75.75 0 0 1 1.06 0l4 4a.75.75 0 1 1-1.06 1.06L8.75 8.56V14a.75.75 0 0 1-1.5 0V8.56l-2.72 2.72a.75.75 0 0 1-1.26-.536Z"/></svg>',"pinned-bottom":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" class="ag-icon" viewBox="0 0 16 16"><path fill="currentColor" d="M3.47 12.28A.75.75 0 0 1 4 11h8a.75.75 0 0 1 0 1.5H4a.75.75 0 0 1-.53-.22ZM12.731 5.256a.75.75 0 0 1-.2.524l-4 4a.75.75 0 0 1-1.06 0l-4-4a.75.75 0 1 1 1.06-1.06l2.72 2.72V2a.75.75 0 0 1 1.5 0v5.44l2.72-2.72a.75.75 0 0 1 1.26.536Z"/></svg>',"un-pin":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" class="ag-icon" viewBox="0 0 16 16"><path fill="currentColor" d="M8 11a.75.75 0 0 0-.75.75v3.333a.75.75 0 1 0 1.5 0V11.75A.75.75 0 0 0 8 11Z"/><path fill="currentColor" d="M13.11 1.436a.75.75 0 0 0-1.22-.872l-10 14a.75.75 0 1 0 1.22.872L5.207 12.5h7.376a.75.75 0 0 0 .75-.75v-1.174a2.08 2.08 0 0 0-1.153-1.863l-1.185-.599-.005-.002a.58.58 0 0 1-.323-.522V5.165a2.083 2.083 0 0 0 1.854-2.904l.589-.825Zm-3.943 5.52v.634a2.08 2.08 0 0 0 1.153 1.863l1.185.6.005.002a.58.58 0 0 1 .323.522V11H6.28l2.887-4.044ZM9.277 1H5.25a2.084 2.084 0 0 0-.083 4.165v1.676l1.5-2.132v-.292a.75.75 0 0 0-.75-.75H5.25a.584.584 0 0 1 0-1.167h2.972L9.277 1Z"/></svg>',"chevron-down":'<svg width="16" height="16" viewBox="0 0 16 16" class="ag-icon" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M12 6L8 10L4 6" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>',"chevron-up":'<svg width="16" height="16" viewBox="0 0 16 16" class="ag-icon" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M4 10L8 6L12 10" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>',"chevron-left":'<svg width="16" height="16" viewBox="0 0 16 16" class="ag-icon" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M10 12L6 8L10 4" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>',"chevron-right":'<svg width="16" height="16" viewBox="0 0 16 16" class="ag-icon" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M6 12L10 8L6 4" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>',"filter-add":'<svg width="16" height="16" viewBox="0 0 16 16" class="ag-icon" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M5.12126 7.75L10.8517 7.75" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"/><path d="M6.65934 11.748L9.32778 11.748" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"/><path d="M12.2943 1.04872V6.19184M14.9886 3.74341H9.68478" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"/><path d="M8.25488 3C8.04799 3.18323 7.91706 3.45099 7.91699 3.74902C7.91713 4.04868 8.04988 4.31681 8.25879 4.5H2C1.58579 4.5 1.25 4.16421 1.25 3.75C1.25 3.33579 1.58579 3 2 3H8.25488Z" fill="currentColor"/></svg>',edit:'<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M3.5 10.6262V12.5012H5.375L10.905 6.97122L9.03 5.09622L3.5 10.6262ZM12.355 5.52122C12.4014 5.47497 12.4381 5.42002 12.4632 5.35953C12.4883 5.29905 12.5012 5.23421 12.5012 5.16872C12.5012 5.10324 12.4883 5.0384 12.4632 4.97791C12.4381 4.91742 12.4014 4.86248 12.355 4.81622L11.185 3.64622C11.1387 3.59987 11.0838 3.5631 11.0233 3.53801C10.9628 3.51291 10.898 3.5 10.8325 3.5C10.767 3.5 10.7022 3.51291 10.6417 3.53801C10.5812 3.5631 10.5263 3.59987 10.48 3.64622L9.565 4.56122L11.44 6.43622L12.355 5.52122Z" fill="currentColor"/></svg>'},quartzIconSvg=(e,t=1.5)=>{const o=ps[e];if(o)return o;const i=gs[e];if(!i)throw new Error(`Missing icon data for ${e}`);return`<svg xmlns="http://www.w3.org/2000/svg" class="ag-icon" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke="black" stroke-width="${t}" viewBox="0 0 24 24"><style>* { vector-effect: non-scaling-stroke; }</style>`+i+"</svg>"},iconSetQuartz=(e={})=>createPart({feature:"iconSet",css:()=>((e={})=>{let t="";for(const o of[...Object.keys(gs),...Object.keys(ps)]){const i=quartzIconSvg(o,e.strokeWidth);t+=`.ag-icon-${o}::before { mask-image: url('data:image/svg+xml,${encodeURIComponent(i)}'); }\n`}return t})(e)}),ms=iconSetQuartz(),fs=':where(.ag-input-field-input[type=number]:not(.ag-number-field-input-stepper)){-webkit-appearance:textfield;-moz-appearance:textfield;appearance:textfield;&::-webkit-inner-spin-button,&::-webkit-outer-spin-button{-webkit-appearance:none;appearance:none;margin:0}}.ag-input-field-input:where(input:not([type]),input[type=text],input[type=number],input[type=tel],input[type=date],input[type=datetime-local],textarea){background-color:var(--ag-input-background-color);border:var(--ag-input-border);border-radius:var(--ag-input-border-radius);color:var(--ag-input-text-color);font-family:inherit;font-size:inherit;line-height:inherit;margin:0;min-height:var(--ag-input-height);padding:0;&:where(:disabled){background-color:var(--ag-input-disabled-background-color);border:var(--ag-input-disabled-border);color:var(--ag-input-disabled-text-color)}&:where(:focus){background-color:var(--ag-input-focus-background-color);border:var(--ag-input-focus-border);box-shadow:var(--ag-input-focus-shadow);color:var(--ag-input-focus-text-color);outline:none}&:where(:invalid){background-color:var(--ag-input-invalid-background-color);border:var(--ag-input-invalid-border);color:var(--ag-input-invalid-text-color)}&:where(.invalid){background-color:var(--ag-input-invalid-background-color);border:var(--ag-input-invalid-border);color:var(--ag-input-invalid-text-color)}&::-moz-placeholder{color:var(--ag-input-placeholder-text-color)}&::placeholder{color:var(--ag-input-placeholder-text-color)}}:where(.ag-ltr) .ag-input-field-input:where(input:not([type]),input[type=text],input[type=number],input[type=tel],input[type=date],input[type=datetime-local],textarea){padding-left:var(--ag-input-padding-start)}:where(.ag-rtl) .ag-input-field-input:where(input:not([type]),input[type=text],input[type=number],input[type=tel],input[type=date],input[type=datetime-local],textarea){padding-right:var(--ag-input-padding-start)}:where(.ag-column-select-header-filter-wrapper,.ag-filter-toolpanel-search,.ag-mini-filter,.ag-filter-filter,.ag-filter-add-select){.ag-input-wrapper:before{background-color:currentcolor;color:var(--ag-input-icon-color);content:"";display:block;height:12px;-webkit-mask-image:url("data:image/svg+xml;charset=utf-8;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMiIgaGVpZ2h0PSIxMiIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMDAwIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS13aWR0aD0iMS41Ij48cGF0aCBkPSJNNS4zIDlhMy43IDMuNyAwIDEgMCAwLTcuNSAzLjcgMy43IDAgMCAwIDAgNy41Wk0xMC41IDEwLjUgOC4zIDguMiIvPjwvc3ZnPg==");mask-image:url("data:image/svg+xml;charset=utf-8;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMiIgaGVpZ2h0PSIxMiIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMDAwIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS13aWR0aD0iMS41Ij48cGF0aCBkPSJNNS4zIDlhMy43IDMuNyAwIDEgMCAwLTcuNSAzLjcgMy43IDAgMCAwIDAgNy41Wk0xMC41IDEwLjUgOC4zIDguMiIvPjwvc3ZnPg==");-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;opacity:.5;position:absolute;width:12px}}:where(.ag-ltr) :where(.ag-column-select-header-filter-wrapper,.ag-filter-toolpanel-search,.ag-mini-filter,.ag-filter-filter,.ag-filter-add-select){.ag-input-wrapper:before{margin-left:var(--ag-spacing)}.ag-number-field-input,.ag-text-field-input{padding-left:calc(var(--ag-spacing)*1.5 + 12px)}}:where(.ag-rtl) :where(.ag-column-select-header-filter-wrapper,.ag-filter-toolpanel-search,.ag-mini-filter,.ag-filter-filter,.ag-filter-add-select){.ag-input-wrapper:before{margin-right:var(--ag-spacing)}.ag-number-field-input,.ag-text-field-input{padding-right:calc(var(--ag-spacing)*1.5 + 12px)}}',Cs={inputBackgroundColor:"transparent",inputBorder:!1,inputBorderRadius:0,inputTextColor:{ref:"textColor"},inputPlaceholderTextColor:{ref:"inputTextColor",mix:.5},inputPaddingStart:0,inputHeight:{calc:"max(iconSize, fontSize) + spacing * 2"},inputFocusBackgroundColor:{ref:"inputBackgroundColor"},inputFocusBorder:{ref:"inputBorder"},inputFocusShadow:"none",inputFocusTextColor:{ref:"inputTextColor"},inputDisabledBackgroundColor:{ref:"inputBackgroundColor"},inputDisabledBorder:{ref:"inputBorder"},inputDisabledTextColor:{ref:"inputTextColor"},inputInvalidBackgroundColor:{ref:"inputBackgroundColor"},inputInvalidBorder:{ref:"inputBorder"},inputInvalidTextColor:{ref:"inputTextColor"},inputIconColor:{ref:"inputTextColor"},pickerButtonBorder:!1,pickerButtonFocusBorder:{ref:"inputFocusBorder"},pickerButtonBackgroundColor:{ref:"backgroundColor"},pickerButtonFocusBackgroundColor:{ref:"backgroundColor"},pickerListBorder:!1,pickerListBackgroundColor:{ref:"backgroundColor"}},ws=(()=>createPart({feature:"inputStyle",params:{...Cs,inputBackgroundColor:zi,inputBorder:!0,inputBorderRadius:{ref:"borderRadius"},inputPaddingStart:{ref:"spacing"},inputFocusBorder:{color:Ui},inputFocusShadow:{ref:"focusShadow"},inputDisabledBackgroundColor:foregroundBackgroundMix(.06),inputDisabledTextColor:{ref:"textColor",mix:.5},inputInvalidBorder:{color:{ref:"invalidColor"}},pickerButtonBorder:!0,pickerListBorder:!0},css:()=>fs+".ag-input-field-input:where(input:not([type]),input[type=text],input[type=number],input[type=tel],input[type=date],input[type=datetime-local],textarea){&:focus{box-shadow:var(--ag-focus-shadow);&:where(.invalid),&:where(:invalid){box-shadow:var(--ag-focus-error-shadow)}}}"}))(),vs='.ag-tabs-header{background-color:var(--ag-tab-bar-background-color);border-bottom:var(--ag-tab-bar-border);display:flex;flex:1;gap:var(--ag-tab-spacing);padding:var(--ag-tab-bar-top-padding) var(--ag-tab-bar-horizontal-padding) 0}.ag-tabs-header-wrapper{display:flex}.ag-tabs-close-button-wrapper{align-items:center;border:0;display:flex;padding:var(--ag-spacing)}:where(.ag-ltr) .ag-tabs-close-button-wrapper{border-right:solid var(--ag-border-width) var(--ag-border-color)}:where(.ag-rtl) .ag-tabs-close-button-wrapper{border-left:solid var(--ag-border-width) var(--ag-border-color)}.ag-tabs-close-button{background-color:unset;border:0;cursor:pointer;padding:0}.ag-tab{align-items:center;background-color:var(--ag-tab-background-color);border-left:var(--ag-tab-selected-border-width) solid transparent;border-right:var(--ag-tab-selected-border-width) solid transparent;color:var(--ag-tab-text-color);cursor:pointer;display:flex;flex:1;justify-content:center;padding:var(--ag-tab-top-padding) var(--ag-tab-horizontal-padding) var(--ag-tab-bottom-padding);position:relative;&:hover{background-color:var(--ag-tab-hover-background-color);color:var(--ag-tab-hover-text-color)}&.ag-tab-selected{background-color:var(--ag-tab-selected-background-color);color:var(--ag-tab-selected-text-color)}&:after{background-color:var(--ag-tab-selected-underline-color);bottom:0;content:"";display:block;height:var(--ag-tab-selected-underline-width);left:0;opacity:0;position:absolute;right:0;transition:opacity var(--ag-tab-selected-underline-transition-duration)}&.ag-tab-selected:after{opacity:1}}:where(.ag-ltr) .ag-tab{&.ag-tab-selected{&:where(:not(:first-of-type)){border-left-color:var(--ag-tab-selected-border-color)}&:where(:not(:last-of-type)){border-right-color:var(--ag-tab-selected-border-color)}}}:where(.ag-rtl) .ag-tab{&.ag-tab-selected{&:where(:not(:first-of-type)){border-right-color:var(--ag-tab-selected-border-color)}&:where(:not(:last-of-type)){border-left-color:var(--ag-tab-selected-border-color)}}}',bs={tabBarBackgroundColor:"transparent",tabBarHorizontalPadding:0,tabBarTopPadding:0,tabBackgroundColor:"transparent",tabTextColor:{ref:"textColor"},tabHorizontalPadding:{ref:"spacing"},tabTopPadding:{ref:"spacing"},tabBottomPadding:{ref:"spacing"},tabSpacing:"0",tabHoverBackgroundColor:{ref:"tabBackgroundColor"},tabHoverTextColor:{ref:"tabTextColor"},tabSelectedBackgroundColor:{ref:"tabBackgroundColor"},tabSelectedTextColor:{ref:"tabTextColor"},tabSelectedBorderWidth:{ref:"borderWidth"},tabSelectedBorderColor:"transparent",tabSelectedUnderlineColor:"transparent",tabSelectedUnderlineWidth:0,tabSelectedUnderlineTransitionDuration:0,tabBarBorder:!1},Ss=(()=>createPart({feature:"tabStyle",params:{...bs,tabBarBorder:!0,tabBarBackgroundColor:foregroundMix(.05),tabTextColor:{ref:"textColor",mix:.7},tabSelectedTextColor:{ref:"textColor"},tabHoverTextColor:{ref:"textColor"},tabSelectedBorderColor:{ref:"borderColor"},tabSelectedBackgroundColor:zi},css:vs}))(),ys=(()=>createTheme().withPart(cs).withPart(us).withPart(ms).withPart(Ss).withPart(ws).withPart(Xi).withParams({fontFamily:[{googleFont:"IBM Plex Sans"},"-apple-system","BlinkMacSystemFont","Segoe UI","Roboto","Oxygen-Sans","Ubuntu"]}))(),Rs={cssName:"--ag-cell-horizontal-padding",changeKey:"cellHorizontalPaddingChanged",defaultValue:16},Fs={cssName:"--ag-indentation-level",changeKey:"indentationLevelChanged",defaultValue:0,noWarn:!0,cacheDefault:!0},Es={cssName:"--ag-row-group-indent-size",changeKey:"rowGroupIndentSizeChanged",defaultValue:0},Ps={cssName:"--ag-row-height",changeKey:"rowHeightChanged",defaultValue:42},Ds={cssName:"--ag-header-height",changeKey:"headerHeightChanged",defaultValue:48},xs={cssName:"--ag-list-item-height",changeKey:"listItemHeightChanged",defaultValue:24},Ms={cssName:"--ag-row-border",changeKey:"rowBorderWidthChanged",defaultValue:1,border:!0},Ts={cssName:"--ag-pinned-row-border",changeKey:"pinnedRowBorderWidthChanged",defaultValue:1,border:!0},As=0,Is=15538;function isAnyChildSpanningHeaderHeight(e){return!!e&&e.getLeafColumns().some((e=>e.isSpanHeaderHeight()))}function getHeaderIndexToFocus(e,t){let o;if(isColumnGroup(e)&&isAnyChildSpanningHeaderHeight(e)&&e.isPadding()){const i=e;o=i.getLeafColumns()[0];let s=o;for(;s!==i;)t++,s=s.getParent()}return{column:o||e,headerRowIndex:t}}var ks=new Set(["gridPreDestroyed","fillStart","pasteStart"]),Ls=["columnEverythingChanged","newColumnsLoaded","columnPivotModeChanged","pivotMaxColumnsExceeded","columnRowGroupChanged","expandOrCollapseAll","columnPivotChanged","gridColumnsChanged","columnValueChanged","columnMoved","columnVisible","columnPinned","columnGroupOpened","columnResized","displayedColumnsChanged","virtualColumnsChanged","columnHeaderMouseOver","columnHeaderMouseLeave","columnHeaderClicked","columnHeaderContextMenu","asyncTransactionsFlushed","rowGroupOpened","rowDataUpdated","pinnedRowDataChanged","pinnedRowsChanged","rangeSelectionChanged","cellSelectionChanged","chartCreated","chartRangeSelectionChanged","chartOptionsChanged","chartDestroyed","toolPanelVisibleChanged","toolPanelSizeChanged","modelUpdated","cutStart","cutEnd","pasteStart","pasteEnd","fillStart","fillEnd","cellSelectionDeleteStart","cellSelectionDeleteEnd","rangeDeleteStart","rangeDeleteEnd","undoStarted","undoEnded","redoStarted","redoEnded","cellClicked","cellDoubleClicked","cellMouseDown","cellContextMenu","cellValueChanged","cellEditRequest","rowValueChanged","headerFocused","cellFocused","rowSelected","selectionChanged","tooltipShow","tooltipHide","cellKeyDown","cellMouseOver","cellMouseOut","filterChanged","filterModified","filterUiChanged","filterOpened","floatingFilterUiChanged","advancedFilterBuilderVisibleChanged","sortChanged","virtualRowRemoved","rowClicked","rowDoubleClicked","gridReady","gridPreDestroyed","gridSizeChanged","viewportChanged","firstDataRendered","dragStarted","dragStopped","dragCancelled","rowEditingStarted","rowEditingStopped","cellEditingStarted","cellEditingStopped","bodyScroll","bodyScrollEnd","paginationChanged","componentStateChanged","storeRefreshed","stateUpdated","columnMenuVisibleChanged","contextMenuVisibleChanged","rowDragEnter","rowDragMove","rowDragLeave","rowDragEnd","rowDragCancel","findChanged","rowResizeStarted","rowResizeEnded","columnsReset"],Gs=Ls.reduce(((e,t)=>(e[t]=function _getCallbackForEvent(e){return!e||e.length<2?e:"on"+e[0].toUpperCase()+e.substring(1)}(t),e)),{}),makeIconParams=(e,t)=>({tag:"span",ref:`eSort${e}`,cls:`ag-sort-indicator-icon ag-sort-${t} ag-hidden`,attrs:{"aria-hidden":"true"}}),Ns={tag:"span",cls:"ag-sort-indicator-container",children:[makeIconParams("Order","order"),makeIconParams("Asc","ascending-icon"),makeIconParams("Desc","descending-icon"),makeIconParams("Mixed","mixed-icon"),makeIconParams("None","none-icon")]},_s=class extends Q{constructor(e){super(),this.eSortOrder=q,this.eSortAsc=q,this.eSortDesc=q,this.eSortMixed=q,this.eSortNone=q,e||this.setTemplate(Ns)}attachCustomElements(e,t,o,i,s){this.eSortOrder=e,this.eSortAsc=t,this.eSortDesc=o,this.eSortMixed=i,this.eSortNone=s}setupSort(e,t=!1){if(this.column=e,this.suppressOrder=t,this.setupMultiSortIndicator(),!e.isSortable()&&!e.getColDef().showRowGroup)return;this.addInIcon("sortAscending",this.eSortAsc,e),this.addInIcon("sortDescending",this.eSortDesc,e),this.addInIcon("sortUnSort",this.eSortNone,e);const o=this.updateIcons.bind(this),i=this.onSortChanged.bind(this);this.addManagedPropertyListener("unSortIcon",o),this.addManagedEventListeners({newColumnsLoaded:o,sortChanged:i,columnRowGroupChanged:i}),this.onSortChanged()}addInIcon(e,t,o){if(null==t)return;const i=_createIconNoSpan(e,this.beans,o);i&&t.appendChild(i)}onSortChanged(){this.updateIcons(),this.suppressOrder||this.updateSortOrder()}updateIcons(){const{eSortAsc:e,eSortDesc:t,eSortNone:o,column:i,gos:s,beans:n}=this,r=n.sortSvc.getDisplaySortForColumn(i);if(e){_setDisplayed(e,"asc"===r,{skipAriaHidden:!0})}if(t){_setDisplayed(t,"desc"===r,{skipAriaHidden:!0})}if(o){const e=null==r;_setDisplayed(o,!(!i.getColDef().unSortIcon&&!s.get("unSortIcon"))&&e,{skipAriaHidden:!0})}}setupMultiSortIndicator(){const{eSortMixed:e,column:t,gos:o}=this;this.addInIcon("sortUnSort",e,t);const i=t.getColDef().showRowGroup;_isColumnsSortingCoupledToGroup(o)&&i&&(this.addManagedEventListeners({sortChanged:this.updateMultiSortIndicator.bind(this),columnRowGroupChanged:this.updateMultiSortIndicator.bind(this)}),this.updateMultiSortIndicator())}updateMultiSortIndicator(){const{eSortMixed:e,beans:t,column:o}=this;if(e){_setDisplayed(e,"mixed"===t.sortSvc.getDisplaySortForColumn(o),{skipAriaHidden:!0})}}updateSortOrder(){const{eSortOrder:e,column:t,beans:{sortSvc:o}}=this;if(!e)return;const i=o.getColumnsWithSortingOrdered(),s=o.getDisplaySortIndexForColumn(t)??-1,n=i.some((e=>o.getDisplaySortIndexForColumn(e)??!1));_setDisplayed(e,s>=0&&n,{skipAriaHidden:!0}),s>=0?e.textContent=(s+1).toString():_clearElement(e)}},Os={selector:"AG-SORT-INDICATOR",component:_s},Hs=["asc","desc",null],Vs={agSetColumnFilter:"SetFilter",agSetColumnFloatingFilter:"SetFilter",agMultiColumnFilter:"MultiFilter",agMultiColumnFloatingFilter:"MultiFilter",agGroupColumnFilter:"GroupFilter",agGroupColumnFloatingFilter:"GroupFilter",agGroupCellRenderer:"GroupCellRenderer",agGroupRowRenderer:"GroupCellRenderer",agRichSelect:"RichSelect",agRichSelectCellEditor:"RichSelect",agDetailCellRenderer:"SharedMasterDetail",agSparklineCellRenderer:"Sparklines",agDragAndDropImage:"SharedDragAndDrop",agColumnHeader:"ColumnHeaderComp",agColumnGroupHeader:"ColumnGroupHeaderComp",agSortIndicator:"Sort",agAnimateShowChangeCellRenderer:"HighlightChanges",agAnimateSlideCellRenderer:"HighlightChanges",agLoadingCellRenderer:"LoadingCellRenderer",agSkeletonCellRenderer:"SkeletonCellRenderer",agCheckboxCellRenderer:"CheckboxCellRenderer",agLoadingOverlay:"Overlay",agNoRowsOverlay:"Overlay",agTooltipComponent:"Tooltip",agReadOnlyFloatingFilter:"CustomFilter",agTextColumnFilter:"TextFilter",agNumberColumnFilter:"NumberFilter",agDateColumnFilter:"DateFilter",agDateInput:"DateFilter",agTextColumnFloatingFilter:"TextFilter",agNumberColumnFloatingFilter:"NumberFilter",agDateColumnFloatingFilter:"DateFilter",agCellEditor:"TextEditor",agSelectCellEditor:"SelectEditor",agTextCellEditor:"TextEditor",agNumberCellEditor:"NumberEditor",agDateCellEditor:"DateEditor",agDateStringCellEditor:"DateEditor",agCheckboxCellEditor:"CheckboxEditor",agLargeTextCellEditor:"LargeTextEditor",agMenuItem:"MenuItem",agColumnsToolPanel:"ColumnsToolPanel",agFiltersToolPanel:"FiltersToolPanel",agNewFiltersToolPanel:"NewFiltersToolPanel",agAggregationComponent:"StatusBar",agSelectedRowCountComponent:"StatusBar",agTotalRowCountComponent:"StatusBar",agFilteredRowCountComponent:"StatusBar",agTotalAndFilteredRowCountComponent:"StatusBar",agFindCellRenderer:"Find"},Bs={aggFunc:"SharedAggregation",autoHeight:"RowAutoHeight",cellClass:"CellStyle",cellClassRules:"CellStyle",cellEditor:({cellEditor:e,editable:t})=>t?"string"==typeof e?Vs[e]??"CustomEditor":"CustomEditor":null,cellRenderer:({cellRenderer:e})=>"string"!=typeof e?null:Vs[e],cellStyle:"CellStyle",columnChooserParams:"ColumnMenu",contextMenuItems:"ContextMenu",dndSource:"DragAndDrop",dndSourceOnRowDrag:"DragAndDrop",editable:({editable:e,cellEditor:t})=>e&&!t?"TextEditor":null,enableCellChangeFlash:"HighlightChanges",enablePivot:"SharedPivot",enableRowGroup:"SharedRowGrouping",enableValue:"SharedAggregation",filter:({filter:e})=>e&&"string"!=typeof e&&"boolean"!=typeof e?"CustomFilter":"string"==typeof e?Vs[e]??"ColumnFilter":"ColumnFilter",floatingFilter:"ColumnFilter",getQuickFilterText:"QuickFilter",headerTooltip:"Tooltip",mainMenuItems:"ColumnMenu",menuTabs:e=>{const t=["columnsMenuTab","generalMenuTab"];return e.menuTabs?.some((e=>t.includes(e)))?"ColumnMenu":null},pivot:"SharedPivot",pivotIndex:"SharedPivot",rowDrag:"RowDrag",rowGroup:"SharedRowGrouping",rowGroupIndex:"SharedRowGrouping",tooltipField:"Tooltip",tooltipValueGetter:"Tooltip",spanRows:"CellSpan"},zs={headerName:void 0,columnGroupShow:void 0,headerStyle:void 0,headerClass:void 0,toolPanelClass:void 0,headerValueGetter:void 0,pivotKeys:void 0,groupId:void 0,colId:void 0,sort:void 0,initialSort:void 0,field:void 0,type:void 0,cellDataType:void 0,tooltipComponent:void 0,tooltipField:void 0,headerTooltip:void 0,cellClass:void 0,showRowGroup:void 0,filter:void 0,initialAggFunc:void 0,defaultAggFunc:void 0,aggFunc:void 0,pinned:void 0,initialPinned:void 0,chartDataType:void 0,cellAriaRole:void 0,cellEditorPopupPosition:void 0,headerGroupComponent:void 0,headerGroupComponentParams:void 0,cellStyle:void 0,cellRenderer:void 0,cellRendererParams:void 0,cellEditor:void 0,cellEditorParams:void 0,filterParams:void 0,pivotValueColumn:void 0,headerComponent:void 0,headerComponentParams:void 0,floatingFilterComponent:void 0,floatingFilterComponentParams:void 0,tooltipComponentParams:void 0,refData:void 0,columnChooserParams:void 0,children:void 0,sortingOrder:void 0,allowedAggFuncs:void 0,menuTabs:void 0,pivotTotalColumnIds:void 0,cellClassRules:void 0,icons:void 0,sortIndex:void 0,initialSortIndex:void 0,flex:void 0,initialFlex:void 0,width:void 0,initialWidth:void 0,minWidth:void 0,maxWidth:void 0,rowGroupIndex:void 0,initialRowGroupIndex:void 0,pivotIndex:void 0,initialPivotIndex:void 0,suppressColumnsToolPanel:void 0,suppressFiltersToolPanel:void 0,openByDefault:void 0,marryChildren:void 0,suppressStickyLabel:void 0,hide:void 0,initialHide:void 0,rowGroup:void 0,initialRowGroup:void 0,pivot:void 0,initialPivot:void 0,checkboxSelection:void 0,showDisabledCheckboxes:void 0,headerCheckboxSelection:void 0,headerCheckboxSelectionFilteredOnly:void 0,headerCheckboxSelectionCurrentPageOnly:void 0,suppressHeaderMenuButton:void 0,suppressMovable:void 0,lockPosition:void 0,lockVisible:void 0,lockPinned:void 0,unSortIcon:void 0,suppressSizeToFit:void 0,suppressAutoSize:void 0,enableRowGroup:void 0,enablePivot:void 0,enableValue:void 0,editable:void 0,suppressPaste:void 0,suppressNavigable:void 0,enableCellChangeFlash:void 0,rowDrag:void 0,dndSource:void 0,autoHeight:void 0,wrapText:void 0,sortable:void 0,resizable:void 0,singleClickEdit:void 0,floatingFilter:void 0,cellEditorPopup:void 0,suppressFillHandle:void 0,wrapHeaderText:void 0,autoHeaderHeight:void 0,dndSourceOnRowDrag:void 0,valueGetter:void 0,valueSetter:void 0,filterValueGetter:void 0,keyCreator:void 0,valueFormatter:void 0,valueParser:void 0,comparator:void 0,equals:void 0,pivotComparator:void 0,suppressKeyboardEvent:void 0,suppressHeaderKeyboardEvent:void 0,colSpan:void 0,rowSpan:void 0,spanRows:void 0,getQuickFilterText:void 0,onCellValueChanged:void 0,onCellClicked:void 0,onCellDoubleClicked:void 0,onCellContextMenu:void 0,rowDragText:void 0,tooltipValueGetter:void 0,cellRendererSelector:void 0,cellEditorSelector:void 0,suppressSpanHeaderHeight:void 0,useValueFormatterForExport:void 0,useValueParserForImport:void 0,mainMenuItems:void 0,contextMenuItems:void 0,suppressFloatingFilterButton:void 0,suppressHeaderFilterButton:void 0,suppressHeaderContextMenu:void 0,loadingCellRenderer:void 0,loadingCellRendererParams:void 0,loadingCellRendererSelector:void 0,context:void 0,dateComponent:void 0,dateComponentParams:void 0,getFindText:void 0},Ws=["overlayLoadingTemplate","overlayNoRowsTemplate","gridId","quickFilterText","rowModelType","editType","domLayout","clipboardDelimiter","rowGroupPanelShow","multiSortKey","pivotColumnGroupTotals","pivotRowTotals","pivotPanelShow","fillHandleDirection","groupDisplayType","treeDataDisplayType","treeDataChildrenField","treeDataParentIdField","colResizeDefault","tooltipTrigger","serverSidePivotResultFieldSeparator","columnMenu","tooltipShowMode","invalidEditValueMode","grandTotalRow","themeCssLayer","findSearchValue","styleNonce","renderingMode"],Us=["components","rowStyle","context","autoGroupColumnDef","localeText","icons","datasource","dragAndDropImageComponentParams","serverSideDatasource","viewportDatasource","groupRowRendererParams","aggFuncs","fullWidthCellRendererParams","defaultColGroupDef","defaultColDef","defaultCsvExportParams","defaultExcelExportParams","columnTypes","rowClassRules","detailCellRendererParams","loadingCellRendererParams","loadingOverlayComponentParams","noRowsOverlayComponentParams","popupParent","themeStyleContainer","statusBar","chartThemeOverrides","customChartThemes","chartToolPanelsDef","dataTypeDefinitions","advancedFilterParent","advancedFilterBuilderParams","initialState","autoSizeStrategy","selectionColumnDef","findOptions","filterHandlers"],$s=["sortingOrder","alignedGrids","rowData","columnDefs","excelStyles","pinnedTopRowData","pinnedBottomRowData","chartThemes","rowClass","paginationPageSizeSelector"],Ks=["rowHeight","detailRowHeight","rowBuffer","headerHeight","groupHeaderHeight","groupLockGroupColumns","floatingFiltersHeight","pivotHeaderHeight","pivotGroupHeaderHeight","groupDefaultExpanded","pivotDefaultExpanded","viewportRowModelPageSize","viewportRowModelBufferSize","autoSizePadding","maxBlocksInCache","maxConcurrentDatasourceRequests","tooltipShowDelay","tooltipHideDelay","cacheOverflowSize","paginationPageSize","cacheBlockSize","infiniteInitialRowCount","serverSideInitialRowCount","scrollbarWidth","asyncTransactionWaitMillis","blockLoadDebounceMillis","keepDetailRowsCount","undoRedoCellEditingLimit","cellFlashDuration","cellFadeDuration","tabIndex","pivotMaxGeneratedColumns","rowDragInsertDelay"],js=["theme","rowSelection"],qs=["cellSelection","sideBar","rowNumbers","suppressGroupChangesColumnVisibility","groupAggFiltering","suppressStickyTotalRow","groupHideParentOfSingleChild","enableRowPinning"],Qs=["loadThemeGoogleFonts","suppressMakeColumnVisibleAfterUnGroup","suppressRowClickSelection","suppressCellFocus","suppressHeaderFocus","suppressHorizontalScroll","groupSelectsChildren","alwaysShowHorizontalScroll","alwaysShowVerticalScroll","debug","enableBrowserTooltips","enableCellExpressions","groupSuppressBlankHeader","suppressMenuHide","suppressRowDeselection","unSortIcon","suppressMultiSort","alwaysMultiSort","singleClickEdit","suppressLoadingOverlay","suppressNoRowsOverlay","suppressAutoSize","skipHeaderOnAutoSize","suppressColumnMoveAnimation","suppressMoveWhenColumnDragging","suppressMovableColumns","suppressFieldDotNotation","enableRangeSelection","enableRangeHandle","enableFillHandle","suppressClearOnFillReduction","deltaSort","suppressTouch","allowContextMenuWithControlKey","suppressContextMenu","suppressDragLeaveHidesColumns","suppressRowGroupHidesColumns","suppressMiddleClickScrolls","suppressPreventDefaultOnMouseWheel","suppressCopyRowsToClipboard","copyHeadersToClipboard","copyGroupHeadersToClipboard","pivotMode","suppressAggFuncInHeader","suppressColumnVirtualisation","alwaysAggregateAtRootLevel","suppressFocusAfterRefresh","functionsReadOnly","animateRows","groupSelectsFiltered","groupRemoveSingleChildren","groupRemoveLowestSingleChildren","enableRtl","enableCellSpan","suppressClickEdit","rowDragEntireRow","rowDragManaged","suppressRowDrag","suppressMoveWhenRowDragging","rowDragMultiRow","enableGroupEdit","embedFullWidthRows","suppressPaginationPanel","groupHideOpenParents","groupAllowUnbalanced","pagination","paginationAutoPageSize","suppressScrollOnNewData","suppressScrollWhenPopupsAreOpen","purgeClosedRowNodes","cacheQuickFilter","includeHiddenColumnsInQuickFilter","ensureDomOrder","accentedSort","suppressChangeDetection","valueCache","valueCacheNeverExpires","aggregateOnlyChangedColumns","suppressAnimationFrame","suppressExcelExport","suppressCsvExport","includeHiddenColumnsInAdvancedFilter","suppressMultiRangeSelection","enterNavigatesVerticallyAfterEdit","enterNavigatesVertically","suppressPropertyNamesCheck","rowMultiSelectWithClick","suppressRowHoverHighlight","suppressRowTransform","suppressClipboardPaste","suppressLastEmptyLineOnPaste","enableCharts","suppressMaintainUnsortedOrder","enableCellTextSelection","suppressBrowserResizeObserver","suppressMaxRenderedRowRestriction","excludeChildrenWhenTreeDataFiltering","tooltipMouseTrack","tooltipInteraction","keepDetailRows","paginateChildRows","preventDefaultOnContextMenu","undoRedoCellEditing","allowDragFromColumnsToolPanel","pivotSuppressAutoColumn","suppressExpandablePivotGroups","debounceVerticalScrollbar","detailRowAutoHeight","serverSideSortAllLevels","serverSideEnableClientSideSort","serverSideOnlyRefreshFilteredGroups","suppressAggFilteredOnly","showOpenedGroup","suppressClipboardApi","suppressModelUpdateAfterUpdateTransaction","stopEditingWhenCellsLoseFocus","groupMaintainOrder","columnHoverHighlight","readOnlyEdit","suppressRowVirtualisation","enableCellEditingOnBackspace","resetRowDataOnUpdate","removePivotHeaderRowWhenSingleValueColumn","suppressCopySingleCellRanges","suppressGroupRowsSticky","suppressCutToClipboard","rowGroupPanelSuppressSort","allowShowChangeAfterFilter","enableAdvancedFilter","masterDetail","treeData","reactiveCustomComponents","applyQuickFilterBeforePivotOrAgg","suppressServerSideFullWidthLoadingRow","suppressAdvancedFilterEval","loading","maintainColumnOrder","enableStrictPivotColumnOrder","suppressSetFilterByDefault","enableFilterHandlers"],Ys=["doesExternalFilterPass","processPivotResultColDef","processPivotResultColGroupDef","getBusinessKeyForNode","isRowSelectable","rowDragText","groupRowRenderer","dragAndDropImageComponent","fullWidthCellRenderer","loadingCellRenderer","loadingOverlayComponent","noRowsOverlayComponent","detailCellRenderer","quickFilterParser","quickFilterMatcher","getLocaleText","isExternalFilterPresent","getRowHeight","getRowClass","getRowStyle","getFullRowEditValidationErrors","getContextMenuItems","getMainMenuItems","processRowPostCreate","processCellForClipboard","getGroupRowAgg","isFullWidthRow","sendToClipboard","focusGridInnerElement","navigateToNextHeader","tabToNextHeader","navigateToNextCell","tabToNextCell","processCellFromClipboard","getDocument","postProcessPopup","getChildCount","getDataPath","isRowMaster","postSortRows","processHeaderForClipboard","processUnpinnedColumns","processGroupHeaderForClipboard","paginationNumberFormatter","processDataFromClipboard","getServerSideGroupKey","isServerSideGroup","createChartContainer","getChartToolbarItems","fillOperation","isApplyServerSideTransaction","getServerSideGroupLevelParams","isServerSideGroupOpenByDefault","isGroupOpenByDefault","initialGroupOrderComparator","loadingCellRendererSelector","getRowId","chartMenuItems","groupTotalRow","alwaysPassFilter","isRowPinnable","isRowPinned","isRowValidDropPosition"];function toConstrainedNum(e,t,o){return"number"==typeof t||null==t?null==t||t>=o?null:`${e}: value should be greater than or equal to ${o}`:`${e}: value should be a number`}var Zs={alignedGrids:"AlignedGrids",allowContextMenuWithControlKey:"ContextMenu",autoSizeStrategy:"ColumnAutoSize",cellSelection:"CellSelection",columnHoverHighlight:"ColumnHover",datasource:"InfiniteRowModel",doesExternalFilterPass:"ExternalFilter",editType:"EditCore",invalidEditValueMode:"EditCore",enableAdvancedFilter:"AdvancedFilter",enableCellSpan:"CellSpan",enableCharts:"IntegratedCharts",enableRangeSelection:"CellSelection",enableRowPinning:"PinnedRow",findSearchValue:"Find",getFullRowEditValidationErrors:"EditCore",getContextMenuItems:"ContextMenu",getLocaleText:"Locale",getMainMenuItems:"ColumnMenu",getRowClass:"RowStyle",getRowStyle:"RowStyle",groupTotalRow:"SharedRowGrouping",grandTotalRow:"SharedRowGrouping",initialState:"GridState",isExternalFilterPresent:"ExternalFilter",isRowPinnable:"PinnedRow",isRowPinned:"PinnedRow",localeText:"Locale",masterDetail:"SharedMasterDetail",pagination:"Pagination",pinnedBottomRowData:"PinnedRow",pinnedTopRowData:"PinnedRow",pivotMode:"SharedPivot",pivotPanelShow:"RowGroupingPanel",quickFilterText:"QuickFilter",rowClass:"RowStyle",rowClassRules:"RowStyle",rowData:"ClientSideRowModel",rowDragManaged:"RowDrag",rowGroupPanelShow:"RowGroupingPanel",rowNumbers:"RowNumbers",rowSelection:"SharedRowSelection",rowStyle:"RowStyle",serverSideDatasource:"ServerSideRowModel",sideBar:"SideBar",statusBar:"StatusBar",treeData:"SharedTreeData",undoRedoCellEditing:"UndoRedoEdit",valueCache:"ValueCache",viewportDatasource:"ViewportRowModel"},GRID_OPTION_VALIDATIONS=()=>{const e={autoSizePadding:{validate:({autoSizePadding:e})=>toConstrainedNum("autoSizePadding",e,0)},cacheBlockSize:{supportedRowModels:["serverSide","infinite"],validate:({cacheBlockSize:e})=>toConstrainedNum("cacheBlockSize",e,1)},cacheOverflowSize:{validate:({cacheOverflowSize:e})=>toConstrainedNum("cacheOverflowSize",e,1)},datasource:{supportedRowModels:["infinite"]},domLayout:{validate:e=>{const t=e.domLayout,o=["autoHeight","normal","print"];return t&&!o.includes(t)?`domLayout must be one of [${o.join()}], currently it's ${t}`:null}},enableFillHandle:{dependencies:{enableRangeSelection:{required:[!0]}}},enableRangeHandle:{dependencies:{enableRangeSelection:{required:[!0]}}},enableRangeSelection:{dependencies:{rowDragEntireRow:{required:[!1,void 0]}}},enableRowPinning:{supportedRowModels:["clientSide"],validate:({enableRowPinning:e,pinnedTopRowData:t,pinnedBottomRowData:o})=>e&&(t||o)?"Manual row pinning cannot be used together with pinned row data. Either set `enableRowPinning` to `false`, or remove `pinnedTopRowData` and `pinnedBottomRowData`.":null},isRowPinnable:{supportedRowModels:["clientSide"],validate:({enableRowPinning:e,isRowPinnable:t,pinnedTopRowData:o,pinnedBottomRowData:i})=>t&&(o||i)?"Manual row pinning cannot be used together with pinned row data. Either remove `isRowPinnable`, or remove `pinnedTopRowData` and `pinnedBottomRowData`.":!e&&t?"`isRowPinnable` requires `enableRowPinning` to be set.":null},isRowPinned:{supportedRowModels:["clientSide"],validate:({enableRowPinning:e,isRowPinned:t,pinnedTopRowData:o,pinnedBottomRowData:i})=>t&&(o||i)?"Manual row pinning cannot be used together with pinned row data. Either remove `isRowPinned`, or remove `pinnedTopRowData` and `pinnedBottomRowData`.":!e&&t?"`isRowPinned` requires `enableRowPinning` to be set.":null},groupDefaultExpanded:{supportedRowModels:["clientSide"]},groupHideOpenParents:{supportedRowModels:["clientSide","serverSide"],dependencies:{groupTotalRow:{required:[void 0,"bottom"]},treeData:{required:[void 0,!1],reason:"Tree Data has values at the group level so it doesn't make sense to hide them."}}},groupHideParentOfSingleChild:{dependencies:{groupHideOpenParents:{required:[void 0,!1]}}},groupRemoveLowestSingleChildren:{dependencies:{groupHideOpenParents:{required:[void 0,!1]},groupRemoveSingleChildren:{required:[void 0,!1]}}},groupRemoveSingleChildren:{dependencies:{groupHideOpenParents:{required:[void 0,!1]},groupRemoveLowestSingleChildren:{required:[void 0,!1]}}},groupSelectsChildren:{dependencies:{rowSelection:{required:["multiple"]}}},icons:{validate:({icons:e})=>{if(e){if(e.smallDown)return _errMsg(262);if(e.smallLeft)return _errMsg(263);if(e.smallRight)return _errMsg(264)}return null}},infiniteInitialRowCount:{validate:({infiniteInitialRowCount:e})=>toConstrainedNum("infiniteInitialRowCount",e,1)},initialGroupOrderComparator:{supportedRowModels:["clientSide"]},keepDetailRowsCount:{validate:({keepDetailRowsCount:e})=>toConstrainedNum("keepDetailRowsCount",e,1)},paginationPageSize:{validate:({paginationPageSize:e})=>toConstrainedNum("paginationPageSize",e,1)},paginationPageSizeSelector:{validate:e=>{const t=e.paginationPageSizeSelector;return"boolean"==typeof t||null==t||t.length?null:"'paginationPageSizeSelector' cannot be an empty array.\n If you want to hide the page size selector, set paginationPageSizeSelector to false."}},pivotMode:{dependencies:{treeData:{required:[!1,void 0],reason:"Pivot Mode is not supported with Tree Data."}}},quickFilterText:{supportedRowModels:["clientSide"]},rowBuffer:{validate:({rowBuffer:e})=>toConstrainedNum("rowBuffer",e,0)},rowClass:{validate:e=>"function"==typeof e.rowClass?"rowClass should not be a function, please use getRowClass instead":null},rowData:{supportedRowModels:["clientSide"]},rowDragManaged:{supportedRowModels:["clientSide"],dependencies:{pagination:{required:[!1,void 0]}}},rowSelection:{validate:({rowSelection:e})=>e&&"string"==typeof e?'As of version 32.2.1, using `rowSelection` with the values "single" or "multiple" has been deprecated. Use the object value instead.':e&&"object"!=typeof e?"Expected `RowSelectionOptions` object for the `rowSelection` property.":e&&"multiRow"!==e.mode&&"singleRow"!==e.mode?`Selection mode "${e.mode}" is invalid. Use one of 'singleRow' or 'multiRow'.`:null},rowStyle:{validate:e=>{const t=e.rowStyle;return t&&"function"==typeof t?"rowStyle should be an object of key/value styles, not be a function, use getRowStyle() instead":null}},serverSideDatasource:{supportedRowModels:["serverSide"]},serverSideInitialRowCount:{supportedRowModels:["serverSide"],validate:({serverSideInitialRowCount:e})=>toConstrainedNum("serverSideInitialRowCount",e,1)},serverSideOnlyRefreshFilteredGroups:{supportedRowModels:["serverSide"]},serverSideSortAllLevels:{supportedRowModels:["serverSide"]},sortingOrder:{validate:e=>{const t=e.sortingOrder;if(Array.isArray(t)&&t.length>0){const e=t.filter((e=>!Hs.includes(e)));if(e.length>0)return`sortingOrder must be an array with elements from [${Hs.map(toStringWithNullUndefined).join()}], currently it includes [${e.map(toStringWithNullUndefined).join()}]`}else if(!Array.isArray(t)||t.length<=0)return`sortingOrder must be an array with at least one element, currently it's ${t}`;return null}},tooltipHideDelay:{validate:e=>e.tooltipHideDelay&&e.tooltipHideDelay<0?"tooltipHideDelay should not be lower than 0":null},tooltipShowDelay:{validate:e=>e.tooltipShowDelay&&e.tooltipShowDelay<0?"tooltipShowDelay should not be lower than 0":null},treeData:{supportedRowModels:["clientSide","serverSide"],validate:e=>{const t=e.rowModelType??"clientSide";switch(t){case"clientSide":{const{treeDataChildrenField:t,treeDataParentIdField:o,getDataPath:i,getRowId:s}=e;if(!t&&!o&&!i)return"treeData requires either 'treeDataChildrenField' or 'treeDataParentIdField' or 'getDataPath' in the clientSide row model.";if(t){if(i)return"Cannot use both 'treeDataChildrenField' and 'getDataPath' at the same time.";if(o)return"Cannot use both 'treeDataChildrenField' and 'treeDataParentIdField' at the same time."}if(o){if(!s)return"getRowId callback not provided, tree data with parent id cannot be built.";if(i)return"Cannot use both 'treeDataParentIdField' and 'getDataPath' at the same time."}return null}case"serverSide":{const o=`treeData requires 'isServerSideGroup' and 'getServerSideGroupKey' in the ${t} row model.`;return e.isServerSideGroup&&e.getServerSideGroupKey?null:o}}return null}},viewportDatasource:{supportedRowModels:["viewport"]},viewportRowModelBufferSize:{validate:({viewportRowModelBufferSize:e})=>toConstrainedNum("viewportRowModelBufferSize",e,0)},viewportRowModelPageSize:{validate:({viewportRowModelPageSize:e})=>toConstrainedNum("viewportRowModelPageSize",e,1)},rowDragEntireRow:{dependencies:{cellSelection:{required:[void 0]}}},autoGroupColumnDef:{validate:({autoGroupColumnDef:e,showOpenedGroup:t})=>e?.field&&t?"autoGroupColumnDef.field and showOpenedGroup are not supported when used together.":e?.valueGetter&&t?"autoGroupColumnDef.valueGetter and showOpenedGroup are not supported when used together.":null},renderingMode:{validate:e=>{const t=e.renderingMode,o=["default","legacy"];return t&&!o.includes(t)?`renderingMode must be one of [${o.join()}], currently it's ${t}`:null}}},t={};return Qs.forEach((e=>{t[e]={expectedType:"boolean"}})),Ks.forEach((e=>{t[e]={expectedType:"number"}})),_mergeDeep(t,e),t},Js=0,Xs=0;function getHeaderCompElementParams(e){const t={"aria-hidden":"true"};return{tag:"div",cls:"ag-cell-label-container",role:"presentation",children:[{tag:"span",ref:"eMenu",cls:"ag-header-icon ag-header-cell-menu-button",attrs:t},{tag:"span",ref:"eFilterButton",cls:"ag-header-icon ag-header-cell-filter-button",attrs:t},{tag:"div",ref:"eLabel",cls:"ag-header-cell-label",role:"presentation",children:[{tag:"span",ref:"eText",cls:"ag-header-cell-text"},{tag:"span",ref:"eFilter",cls:"ag-header-icon ag-header-label-icon ag-filter-icon",attrs:t},e?{tag:"ag-sort-indicator",ref:"eSortIndicator"}:null]}]}}var en=getHeaderCompElementParams(!0),tn=getHeaderCompElementParams(!1),on={tag:"div",cls:"ag-header-group-cell-label",role:"presentation",children:[{tag:"span",ref:"agLabel",cls:"ag-header-group-text",role:"presentation"},{tag:"span",ref:"agOpened",cls:"ag-header-icon ag-header-expand-icon ag-header-expand-icon-expanded"},{tag:"span",ref:"agClosed",cls:"ag-header-icon ag-header-expand-icon ag-header-expand-icon-collapsed"}]},sn={moduleName:"ColumnHeaderComp",version:R,userComponents:{agColumnHeader:class extends Q{constructor(){super(...arguments),this.eFilter=q,this.eFilterButton=q,this.eSortIndicator=q,this.eMenu=q,this.eLabel=q,this.eText=q,this.eSortOrder=q,this.eSortAsc=q,this.eSortDesc=q,this.eSortMixed=q,this.eSortNone=q,this.isLoadingInnerComponent=!1}refresh(e){const t=this.params;if(this.params=e,this.workOutTemplate(e,!!this.beans?.sortSvc)!=this.currentTemplate||this.workOutShowMenu()!=this.currentShowMenu||e.enableSorting!=this.currentSort||null!=this.currentSuppressMenuHide&&this.shouldSuppressMenuHide()!=this.currentSuppressMenuHide||t.enableFilterButton!=e.enableFilterButton||t.enableFilterIcon!=e.enableFilterIcon)return!1;if(this.innerHeaderComponent){const t={...e};_mergeDeep(t,e.innerHeaderComponentParams),this.innerHeaderComponent.refresh?.(t)}else this.setDisplayName(e);return!0}workOutTemplate(e,t){const o=e.template;return o?o?.trim?o.trim():o:t?en:tn}init(e){this.params=e;const{sortSvc:t,touchSvc:o,rowNumbersSvc:i,userCompFactory:s}=this.beans,n=t?.getSortIndicatorSelector();this.currentTemplate=this.workOutTemplate(e,!!n),this.setTemplate(this.currentTemplate,n?[n]:void 0),o?.setupForHeader(this),this.setMenu(),this.setupSort(),i?.setupForHeader(this),this.setupFilterIcon(),this.setupFilterButton(),this.workOutInnerHeaderComponent(s,e),this.setDisplayName(e)}workOutInnerHeaderComponent(e,t){const o=function _getInnerHeaderCompDetails(e,t,o){return e.getCompDetails(t,ee,void 0,o)}(e,t,t);o&&(this.isLoadingInnerComponent=!0,o.newAgStackInstance().then((e=>{this.isLoadingInnerComponent=!1,e&&(this.isAlive()?(this.innerHeaderComponent=e,this.eText&&this.eText.appendChild(e.getGui())):this.destroyBean(e))})))}setDisplayName(e){const{displayName:t}=e,o=this.currentDisplayName;this.currentDisplayName=t,!this.eText||o===t||this.innerHeaderComponent||this.isLoadingInnerComponent||(this.eText.textContent=_toString(t))}addInIcon(e,t,o){const i=_createIconNoSpan(e,this.beans,o);i&&t.appendChild(i)}workOutShowMenu(){return this.params.enableMenu&&!!this.beans.menuSvc?.isHeaderMenuButtonEnabled()}shouldSuppressMenuHide(){return!!this.beans.menuSvc?.isHeaderMenuButtonAlwaysShowEnabled()}setMenu(){if(!this.eMenu)return;if(this.currentShowMenu=this.workOutShowMenu(),!this.currentShowMenu)return _removeFromParent(this.eMenu),void(this.eMenu=void 0);const{gos:e,eMenu:t,params:o}=this,i=_isLegacyMenuEnabled(e);this.addInIcon(i?"menu":"menuAlt",t,o.column),t.classList.toggle("ag-header-menu-icon",!i);const s=this.shouldSuppressMenuHide();this.currentSuppressMenuHide=s,this.addManagedElementListeners(t,{click:()=>this.showColumnMenu(this.eMenu)}),this.toggleMenuAlwaysShow(s)}toggleMenuAlwaysShow(e){this.eMenu?.classList.toggle("ag-header-menu-always-show",e)}showColumnMenu(e){const{currentSuppressMenuHide:t,params:o}=this;t||this.toggleMenuAlwaysShow(!0),o.showColumnMenu(e,(()=>{t||this.toggleMenuAlwaysShow(!1)}))}onMenuKeyboardShortcut(e){const{params:t,gos:o,beans:i,eMenu:s,eFilterButton:n}=this,r=t.column,a=_isLegacyMenuEnabled(o);if(e&&!a){if(i.menuSvc?.isFilterMenuInHeaderEnabled(r))return t.showFilter(n??s??this.getGui()),!0}else if(t.enableMenu)return this.showColumnMenu(s??n??this.getGui()),!0;return!1}setupSort(){const{sortSvc:e}=this.beans;if(!e)return;const{enableSorting:t,column:o}=this.params;if(this.currentSort=t,!this.eSortIndicator){this.eSortIndicator=this.createBean(e.createSortIndicator(!0));const{eSortIndicator:t,eSortOrder:o,eSortAsc:i,eSortDesc:s,eSortMixed:n,eSortNone:r}=this;t.attachCustomElements(o,i,s,n,r)}this.eSortIndicator.setupSort(o),this.currentSort&&e.setupHeader(this,o,this.eLabel)}setupFilterIcon(){const{eFilter:e,params:t}=this;if(!e)return;this.configureFilter(t.enableFilterIcon,e,(()=>{const o=t.column.isFilterActive();_setDisplayed(e,o,{skipAriaHidden:!0})}),"filterActive")}setupFilterButton(){const{eFilterButton:e,params:t}=this;if(!e)return;this.configureFilter(t.enableFilterButton,e,this.onFilterChangedButton.bind(this),"filter")?this.addManagedElementListeners(e,{click:()=>t.showFilter(e)}):this.eFilterButton=void 0}configureFilter(e,t,o,i){if(!e)return _removeFromParent(t),!1;const s=this.params.column;return this.addInIcon(i,t,s),this.addManagedListeners(s,{filterChanged:o}),o(),!0}onFilterChangedButton(){const e=this.params.column.isFilterActive();this.eFilterButton.classList.toggle("ag-filter-active",e)}getAnchorElementForMenu(e){const{eFilterButton:t,eMenu:o}=this;return e?t??o??this.getGui():o??t??this.getGui()}destroy(){super.destroy(),this.innerHeaderComponent&&(this.destroyBean(this.innerHeaderComponent),this.innerHeaderComponent=void 0)}}},icons:{menu:"menu",menuAlt:"menu-alt"}},nn={moduleName:"ColumnGroupHeaderComp",version:R,userComponents:{agColumnGroupHeader:class extends Q{constructor(){super(on),this.agOpened=q,this.agClosed=q,this.agLabel=q,this.isLoadingInnerComponent=!1}init(e){const{userCompFactory:t,touchSvc:o}=this.beans;this.params=e,this.checkWarnings(),this.workOutInnerHeaderGroupComponent(t,e),this.setupLabel(e),this.addGroupExpandIcon(e),this.setupExpandIcons(),o?.setupForHeaderGroup(this)}checkWarnings(){this.params.template&&_warn(89)}workOutInnerHeaderGroupComponent(e,t){const o=function _getInnerHeaderGroupCompDetails(e,t,o){return e.getCompDetails(t,te,void 0,o)}(e,t,t);o&&(this.isLoadingInnerComponent=!0,o.newAgStackInstance().then((e=>{this.isLoadingInnerComponent=!1,e&&(this.isAlive()?(this.innerHeaderGroupComponent=e,this.agLabel.appendChild(e.getGui())):this.destroyBean(e))})))}setupExpandIcons(){const{agOpened:e,agClosed:t,params:{columnGroup:o},beans:i}=this;this.addInIcon("columnGroupOpened",e),this.addInIcon("columnGroupClosed",t);const expandAction=e=>{if(_isStopPropagationForAgGrid(e))return;const t=!o.isExpanded();i.colGroupSvc.setColumnGroupOpened(o.getProvidedColumnGroup(),t,"uiColumnExpanded")};this.addTouchAndClickListeners(i,t,expandAction),this.addTouchAndClickListeners(i,e,expandAction);const stopPropagationAction=e=>{_stopPropagationForAgGrid(e)};this.addManagedElementListeners(t,{dblclick:stopPropagationAction}),this.addManagedElementListeners(e,{dblclick:stopPropagationAction}),this.addManagedElementListeners(this.getGui(),{dblclick:expandAction}),this.updateIconVisibility();const s=o.getProvidedColumnGroup(),n=this.updateIconVisibility.bind(this);this.addManagedListeners(s,{expandedChanged:n,expandableChanged:n})}addTouchAndClickListeners(e,t,o){e.touchSvc?.setupForHeaderGroupElement(this,t,o),this.addManagedElementListeners(t,{click:o})}updateIconVisibility(){const{agOpened:e,agClosed:t,params:{columnGroup:o}}=this;if(o.isExpandable()){const i=o.isExpanded();_setDisplayed(e,i),_setDisplayed(t,!i)}else _setDisplayed(e,!1),_setDisplayed(t,!1)}addInIcon(e,t){const o=_createIconNoSpan(e,this.beans,null);o&&t.appendChild(o)}addGroupExpandIcon(e){if(!e.columnGroup.isExpandable()){const{agOpened:e,agClosed:t}=this;return _setDisplayed(e,!1),void _setDisplayed(t,!1)}}setupLabel(e){const{displayName:t,columnGroup:o}=e,i=this.innerHeaderGroupComponent||this.isLoadingInnerComponent;_exists(t)&&!i&&(this.agLabel.textContent=_toString(t)),this.toggleCss("ag-sticky-label",!o.getColGroupDef()?.suppressStickyLabel)}destroy(){super.destroy(),this.innerHeaderGroupComponent&&(this.destroyBean(this.innerHeaderGroupComponent),this.innerHeaderGroupComponent=void 0)}}},icons:{columnGroupOpened:"expanded",columnGroupClosed:"contracted"}},rn={moduleName:"AnimationFrame",version:R,beans:[class extends I{constructor(){super(...arguments),this.beanName="animationFrameSvc",this.p1={list:[],sorted:!1},this.p2={list:[],sorted:!1},this.f1={list:[],sorted:!1},this.destroyTasks=[],this.ticking=!1,this.scrollGoingDown=!0,this.lastScrollTop=0,this.taskCount=0}setScrollTop(e){this.scrollGoingDown=e>=this.lastScrollTop,0===e&&(this.scrollGoingDown=!0),this.lastScrollTop=e}postConstruct(){this.active=!this.gos.get("suppressAnimationFrame"),this.batchFrameworkComps=this.beans.frameworkOverrides.batchFrameworkComps}verify(){!1===this.active&&_warn(92)}createTask(e,t,o,i,s=!1){this.verify();let n=o;i&&this.batchFrameworkComps&&(n="f1");const r={task:e,index:t,createOrder:++this.taskCount,deferred:s};this.addTaskToList(this[n],r),this.schedule()}addTaskToList(e,t){e.list.push(t),e.sorted=!1}sortTaskList(e){if(e.sorted)return;const t=this.scrollGoingDown?1:-1;e.list.sort(((e,o)=>e.deferred!==o.deferred?e.deferred?-1:1:e.index!==o.index?t*(o.index-e.index):o.createOrder-e.createOrder)),e.sorted=!0}addDestroyTask(e){this.verify(),this.destroyTasks.push(e),this.schedule()}executeFrame(e){const{p1:t,p2:o,f1:i,destroyTasks:s,beans:n}=this,{ctrlsSvc:r,frameworkOverrides:a}=n,l=t.list,d=o.list,c=i.list,h=Date.now();let u=0;const g=e<=0,p=r.getScrollFeature();for(;g||u<e;){if(!p.scrollGridIfNeeded()){let n;if(l.length)this.sortTaskList(t),n=l.pop().task;else if(d.length)this.sortTaskList(o),n=d.pop().task;else if(c.length)a.wrapOutgoing((()=>{for(;g||u<e;){if(p.scrollGridIfNeeded())break;if(!c.length)break;this.sortTaskList(i),n=c.pop().task,n(),u=Date.now()-h}})),n=()=>{};else{if(!s.length)break;n=s.pop()}n()}u=Date.now()-h}l.length||d.length||c.length||s.length?this.requestFrame():this.ticking=!1}flushAllFrames(){this.active&&this.executeFrame(-1)}schedule(){this.active&&(this.ticking||(this.ticking=!0,this.requestFrame()))}requestFrame(){const e=this.executeFrame.bind(this,60);_requestAnimationFrame(this.beans,e)}isQueueEmpty(){return!this.ticking}}]},an={moduleName:"Touch",version:R,beans:[class extends I{constructor(){super(...arguments),this.beanName="touchSvc"}mockBodyContextMenu(e,t){this.mockContextMenu(e,e.eBodyViewport,t)}mockHeaderContextMenu(e,t){this.mockContextMenu(e,e.eGui,t)}mockRowContextMenu(e){if(!_isIOSUserAgent())return;this.mockContextMenu(e,e.element,((t,o,i)=>{const{rowCtrl:s,cellCtrl:n}=e.getControlsForEventTarget(i?.target??null);n?.column&&n.dispatchCellContextMenuEvent(i??null),this.beans.contextMenuSvc?.handleContextMenuMouseEvent(void 0,i,s,n)}))}handleCellDoubleClick(e,t){return!!(()=>{if(!_isIOSUserAgent()||A("dblclick"))return!1;const t=Date.now(),o=t-e.lastIPadMouseClickEvent<200;return e.lastIPadMouseClickEvent=t,o})()&&(e.onCellDoubleClicked(t),t.preventDefault(),!0)}setupForHeader(e){const{gos:t,sortSvc:o,menuSvc:i}=this.beans;if(t.get("suppressTouch"))return;const{params:s,eMenu:n,eFilterButton:r}=e,a=new Zo(e.getGui(),!0),l=e.shouldSuppressMenuHide(),d=l&&_exists(n)&&s.enableMenu,c=d?new Zo(n,!0):a;if(s.enableMenu||i?.isHeaderContextMenuEnabled(s.column)){const t=d?"tap":"longTap",showMenuFn=e=>s.showColumnMenuAfterMouseClick(e.touchStart);e.addManagedListeners(c,{[t]:showMenuFn})}if(s.enableSorting){const tapListener=e=>{const t=e.touchStart.target;l&&(n?.contains(t)||r?.contains(t))||o?.progressSort(s.column,!1,"uiColumnSorted")};e.addManagedListeners(a,{tap:tapListener})}if(s.enableFilterButton&&r){const t=new Zo(r,!0);e.addManagedListeners(t,{tap:()=>s.showFilter(r)}),e.addDestroyFunc((()=>t.destroy()))}e.addDestroyFunc((()=>a.destroy())),d&&e.addDestroyFunc((()=>c.destroy()))}setupForHeaderGroup(e){const t=e.params;if(this.beans.menuSvc?.isHeaderContextMenuEnabled(t.columnGroup.getProvidedColumnGroup())){const o=new Zo(t.eGridHeader,!0),showMenuFn=e=>t.showColumnMenuAfterMouseClick(e.touchStart);e.addManagedListeners(o,{longTap:showMenuFn}),e.addDestroyFunc((()=>o.destroy()))}}setupForHeaderGroupElement(e,t,o){const i=new Zo(t,!0);e.addManagedListeners(i,{tap:o}),e.addDestroyFunc((()=>i.destroy()))}mockContextMenu(e,t,o){if(!_isIOSUserAgent())return;const i=new Zo(t);e.addManagedListeners(i,{longTap:e=>{_isEventFromThisGrid(this.gos,e.touchEvent)&&o(void 0,e.touchStart,e.touchEvent)}}),e.addDestroyFunc((()=>i.destroy()))}}]};function getVScroll(e){return e.ctrlsSvc.getScrollFeature().getVScrollPosition()}var ln={moduleName:"KeyboardNavigation",version:R,beans:[class extends I{constructor(){super(),this.beanName="navigation",this.onPageDown=_throttle(this.onPageDown,100),this.onPageUp=_throttle(this.onPageUp,100)}postConstruct(){this.beans.ctrlsSvc.whenReady(this,(e=>{this.gridBodyCon=e.gridBodyCtrl}))}handlePageScrollingKey(e,t=!1){const o=e.key,i=e.altKey,s=e.ctrlKey||e.metaKey,n=!!this.beans.rangeSvc&&e.shiftKey,r=function _getCellPositionForEvent(e,t){return _getCellCtrlForEventTarget(e,t.target)?.getFocusedCellPosition()??null}(this.gos,e);let a=!1;switch(o){case He:case Ve:s||i||(this.onHomeOrEndKey(o),a=!0);break;case Ae:case ke:case Ie:case Le:if(!r)return!1;!s||i||n||(this.onCtrlUpDownLeftRight(o,r),a=!0);break;case Oe:case _e:s||i||(a=this.handlePageUpDown(o,r,t))}return a&&e.preventDefault(),a}handlePageUpDown(e,t,o){return o&&(t=this.beans.focusSvc.getFocusedCell()),!!t&&(e===_e?this.onPageUp(t):this.onPageDown(t),!0)}navigateTo(e){const{scrollIndex:t,scrollType:o,scrollColumn:i,focusIndex:s,focusColumn:n}=e,{scrollFeature:r}=this.gridBodyCon;_exists(i)&&!i.isPinned()&&r.ensureColumnVisible(i),_exists(t)&&r.ensureIndexVisible(t,o),e.isAsync||r.ensureIndexVisible(s);const{focusSvc:a,rangeSvc:l}=this.beans;a.setFocusedCell({rowIndex:s,column:n,rowPinned:null,forceBrowserFocus:!0}),l?.setRangeToCell({rowIndex:s,rowPinned:null,column:n})}onPageDown(e){const t=this.beans,o=getVScroll(t),i=this.getViewportHeight(),{pageBounds:s,rowModel:n,rowAutoHeight:r}=t,a=s.getPixelOffset(),l=o.top+i,d=n.getRowIndexAtPixel(l+a);r?.active?this.navigateToNextPageWithAutoHeight(e,d):this.navigateToNextPage(e,d)}onPageUp(e){const t=this.beans,o=getVScroll(t),{pageBounds:i,rowModel:s,rowAutoHeight:n}=t,r=i.getPixelOffset(),a=o.top,l=s.getRowIndexAtPixel(a+r);n?.active?this.navigateToNextPageWithAutoHeight(e,l,!0):this.navigateToNextPage(e,l,!0)}navigateToNextPage(e,t,o=!1){const{pageBounds:i,rowModel:s}=this.beans,n=this.getViewportHeight(),r=i.getFirstRow(),a=i.getLastRow(),l=i.getPixelOffset(),d=s.getRow(e.rowIndex),c=o?d?.rowHeight-n-l:n-l,h=d?.rowTop+c;let u,g=s.getRowIndexAtPixel(h+l);if(g===e.rowIndex){const i=o?-1:1;t=g=e.rowIndex+i}o?(u="bottom",g<r&&(g=r),t<r&&(t=r)):(u="top",g>a&&(g=a),t>a&&(t=a)),this.isRowTallerThanView(s.getRow(g))&&(t=g,u="top"),this.navigateTo({scrollIndex:t,scrollType:u,scrollColumn:null,focusIndex:g,focusColumn:e.column})}navigateToNextPageWithAutoHeight(e,t,o=!1){this.navigateTo({scrollIndex:t,scrollType:o?"bottom":"top",scrollColumn:null,focusIndex:t,focusColumn:e.column}),setTimeout((()=>{const i=this.getNextFocusIndexForAutoHeight(e,o);this.navigateTo({scrollIndex:t,scrollType:o?"bottom":"top",scrollColumn:null,focusIndex:i,focusColumn:e.column,isAsync:!0})}),50)}getNextFocusIndexForAutoHeight(e,t=!1){const o=t?-1:1,i=this.getViewportHeight(),{pageBounds:s,rowModel:n}=this.beans,r=s.getLastRow();let a=0,l=e.rowIndex;for(;l>=0&&l<=r;){const e=n.getRow(l);if(e){const t=e.rowHeight??0;if(a+t>i)break;a+=t}l+=o}return Math.max(0,Math.min(l,r))}getViewportHeight(){const e=this.beans,t=getVScroll(e),o=this.beans.scrollVisibleSvc.getScrollbarWidth();let i=t.bottom-t.top;return e.ctrlsSvc.get("center").isHorizontalScrollShowing()&&(i-=o),i}isRowTallerThanView(e){if(!e)return!1;const t=e.rowHeight;return"number"==typeof t&&t>this.getViewportHeight()}onCtrlUpDownLeftRight(e,t){const o=this.beans.cellNavigation.getNextCellToFocus(e,t,!0),{rowIndex:i}=o,s=o.column;this.navigateTo({scrollIndex:i,scrollType:null,scrollColumn:s,focusIndex:i,focusColumn:s})}onHomeOrEndKey(e){const t=e===He,{visibleCols:o,pageBounds:i,rowModel:s}=this.beans,n=o.allCols,r=t?i.getFirstRow():i.getLastRow(),a=s.getRow(r);if(!a)return;const l=(t?n:[...n].reverse()).find((e=>!e.isSuppressNavigable(a)));l&&this.navigateTo({scrollIndex:r,scrollType:null,scrollColumn:l,focusIndex:r,focusColumn:l})}onTabKeyDown(e,t){const o=t.shiftKey,i=this.tabToNextCellCommon(e,o,t),s=this.beans,{ctrlsSvc:n,pageBounds:r,focusSvc:a,gos:l}=s;if(!1===i)if(o){const{rowIndex:o,rowPinned:i}=e.getRowPosition();(i?0===o:o===r.getFirstRow())&&(0===l.get("headerHeight")||_isHeaderFocusSuppressed(s)?_focusNextGridCoreContainer(s,!0,!0):(t.preventDefault(),a.focusPreviousFromFirstCell(t)))}else e instanceof tt&&e.focusCell(!0),(!o&&a.focusOverlay(!1)||_focusNextGridCoreContainer(s,o))&&t.preventDefault();else i?t.preventDefault():null===i&&n.get("gridCtrl").allowFocusForNextCoreContainer(o)}tabToNextCell(e,t){const o=this.beans,{focusSvc:i,rowRenderer:s}=o,n=i.getFocusedCell();if(!n)return!1;let r=_getCellByPosition(o,n);return!!(r||(r=s.getRowByPosition(n),r&&r.isFullWidth()))&&!!this.tabToNextCellCommon(r,e,t,"api")}tabToNextCellCommon(e,t,o,i="ui"){const{editSvc:s,focusSvc:n}=this.beans;let r;const a=e instanceof tt?e:e.getAllCellCtrls()?.[0];return r=s?.isEditing()?s?.moveToNextCell(a,t,o,i):this.moveToNextCellNotEditing(e,t,o),null===r?r:r||!!n.focusedHeader}moveToNextCellNotEditing(e,t,o){const i=this.beans.visibleCols.allCols;let s;if(e instanceof Ht){if(s={...e.getRowPosition(),column:t?i[0]:_last(i)},this.gos.get("embedFullWidthRows")&&o){const t=e.findFullWidthInfoForEvent(o);t&&(s.column=t.column)}}else s=e.getFocusedCellPosition();const n=this.findNextCellToFocusOn(s,{backwards:t,startEditing:!1});if(!1===n)return null;if(n instanceof tt)n.focusCell(!0);else if(n)return this.tryToFocusFullWidthRow(n,t);return _exists(n)}findNextCellToFocusOn(e,{backwards:t,startEditing:o,skipToNextEditableCell:i}){let s=e;const n=this.beans,{cellNavigation:r,gos:a,focusSvc:l,rowRenderer:d,rangeSvc:c}=n;for(;;){e!==s&&(e=s),t||(s=this.getLastCellOfColSpan(s)),s=r.getNextTabbedCell(s,t);const h=a.getCallback("tabToNextCell");if(_exists(h)){const i=h({backwards:t,editing:o,previousCellPosition:e,nextCellPosition:s||null});if(!0===i)s=e;else{if(!1===i)return!1;s={rowIndex:i.rowIndex,column:i.column,rowPinned:i.rowPinned}}}if(!s)return null;if(s.rowIndex<0){const e=getFocusHeaderRowCount(n);return l.focusHeaderPosition({headerPosition:{headerRowIndex:e+s.rowIndex,column:s.column},fromCell:!0}),null}const u="fullRow"===a.get("editType");if(o&&(!u||i)){if(!this.isCellEditable(s))continue}this.ensureCellVisible(s);const g=_getCellByPosition(n,s);if(!g){const e=d.getRowByPosition(s);if(!e||!e.isFullWidth()||o)continue;return{...e.getRowPosition(),column:s?.column}}if(!r.isSuppressNavigable(g.column,g.rowNode))return g.setFocusedCellPosition(s),c?.setRangeToCell(s),g}}isCellEditable(e){const t=this.lookupRowNodeForCell(e);return!!t&&e.column.isCellEditable(t)}lookupRowNodeForCell({rowIndex:e,rowPinned:t}){const{pinnedRowModel:o,rowModel:i}=this.beans;return"top"===t?o?.getPinnedTopRow(e):"bottom"===t?o?.getPinnedBottomRow(e):i.getRow(e)}navigateToNextCell(e,t,o,i){let s=o,n=!1;const r=this.beans,{cellNavigation:a,focusSvc:l,gos:d}=r;for(;s&&(s===o||!this.isValidNavigateCell(s));)d.get("enableRtl")?t===Ae&&(s=this.getLastCellOfColSpan(s)):t===ke&&(s=this.getLastCellOfColSpan(s)),s=a.getNextCellToFocus(t,s),n=_missing(s);if(n&&e&&e.key===Ie&&(s={rowIndex:-1,rowPinned:null,column:o.column}),i){const i=d.getCallback("navigateToNextCell");if(_exists(i)){const n=i({key:t,previousCellPosition:o,nextCellPosition:s||null,event:e});s=_exists(n)?{rowPinned:n.rowPinned,rowIndex:n.rowIndex,column:n.column}:null}}if(!s)return;if(s.rowIndex<0){const t=getFocusHeaderRowCount(r);return void l.focusHeaderPosition({headerPosition:{headerRowIndex:t+s.rowIndex,column:o.column},event:e||void 0,fromCell:!0})}const c=this.getNormalisedPosition(s);c?this.focusPosition(c):this.tryToFocusFullWidthRow(s)}getNormalisedPosition(e){if(!!this.beans.spannedRowRenderer?.getCellByPosition(e))return e;this.ensureCellVisible(e);const t=_getCellByPosition(this.beans,e);return t?(e=t.getFocusedCellPosition(),this.ensureCellVisible(e),e):null}tryToFocusFullWidthRow(e,t){const{visibleCols:o,rowRenderer:i,focusSvc:s,eventSvc:n}=this.beans,r=o.allCols,a=i.getRowByPosition(e);if(!a||!a.isFullWidth())return!1;const l=s.getFocusedCell(),d={rowIndex:e.rowIndex,rowPinned:e.rowPinned,column:e.column||(t?_last(r):r[0])};this.focusPosition(d);const c=null==t?null!=l&&function _isRowBefore(e,t){switch(e.rowPinned){case"top":if("top"!==t.rowPinned)return!0;break;case"bottom":if("bottom"!==t.rowPinned)return!1;break;default:if(_exists(t.rowPinned))return"top"!==t.rowPinned}return e.rowIndex<t.rowIndex}(d,l):t;return n.dispatchEvent({type:"fullWidthRowFocused",rowIndex:d.rowIndex,rowPinned:d.rowPinned,column:d.column,isFullWidthCell:!0,fromBelow:c}),!0}focusPosition(e){const{focusSvc:t,rangeSvc:o}=this.beans;t.setFocusedCell({rowIndex:e.rowIndex,column:e.column,rowPinned:e.rowPinned,forceBrowserFocus:!0}),o?.setRangeToCell(e)}isValidNavigateCell(e){return!!_getRowNode(this.beans,e)}getLastCellOfColSpan(e){const t=_getCellByPosition(this.beans,e);if(!t)return e;const o=t.getColSpanningList();return 1===o.length?e:{rowIndex:e.rowIndex,column:_last(o),rowPinned:e.rowPinned}}ensureCellVisible(e){const t=_isGroupRowsSticky(this.gos),o=this.beans.rowModel.getRow(e.rowIndex),i=t&&o?.sticky,{scrollFeature:s}=this.gridBodyCon;!i&&_missing(e.rowPinned)&&s.ensureIndexVisible(e.rowIndex),e.column.isPinned()||s.ensureColumnVisible(e.column)}},class extends I{constructor(){super(...arguments),this.beanName="cellNavigation"}wireBeans(e){this.rowSpanSvc=e.rowSpanSvc}getNextCellToFocus(e,t,o=!1){return o?this.getNextCellToFocusWithCtrlPressed(e,t):this.getNextCellToFocusWithoutCtrlPressed(e,t)}getNextCellToFocusWithCtrlPressed(e,t){const o=e===Ie,i=e===Le,s=e===Ae;let n,r;const{pageBounds:a,gos:l,visibleCols:d}=this.beans;if(o||i)r=o?a.getFirstRow():a.getLastRow(),n=t.column;else{const e=l.get("enableRtl");r=t.rowIndex;n=(s!==e?d.allCols:[...d.allCols].reverse()).find((e=>this.isCellGoodToFocusOn({rowIndex:r,rowPinned:null,column:e})))}return n?{rowIndex:r,rowPinned:null,column:n}:null}getNextCellToFocusWithoutCtrlPressed(e,t){let o=t,i=!1;for(;!i;){switch(e){case Ie:o=this.getCellAbove(o);break;case Le:o=this.getCellBelow(o);break;case ke:o=this.gos.get("enableRtl")?this.getCellToLeft(o):this.getCellToRight(o);break;case Ae:o=this.gos.get("enableRtl")?this.getCellToRight(o):this.getCellToLeft(o);break;default:o=null,_warn(8,{key:e})}i=!o||this.isCellGoodToFocusOn(o)}return o}isCellGoodToFocusOn(e){const t=e.column;let o;const{pinnedRowModel:i,rowModel:s}=this.beans;switch(e.rowPinned){case"top":o=i?.getPinnedTopRow(e.rowIndex);break;case"bottom":o=i?.getPinnedBottomRow(e.rowIndex);break;default:o=s.getRow(e.rowIndex)}if(!o)return!1;return!this.isSuppressNavigable(t,o)}getCellToLeft(e){if(!e)return null;const t=this.beans.visibleCols.getColBefore(e.column);return t?{rowIndex:e.rowIndex,column:t,rowPinned:e.rowPinned}:null}getCellToRight(e){if(!e)return null;const t=this.beans.visibleCols.getColAfter(e.column);return t?{rowIndex:e.rowIndex,column:t,rowPinned:e.rowPinned}:null}getCellBelow(e){if(!e)return null;const t=this.rowSpanSvc?.getCellEnd(e)??e,o=_getRowBelow(this.beans,t);return o?{rowIndex:o.rowIndex,column:e.column,rowPinned:o.rowPinned}:null}getCellAbove(e){if(!e)return null;const t=this.rowSpanSvc?.getCellStart(e)??e,o=_getRowAbove(this.beans,{rowIndex:t.rowIndex,rowPinned:t.rowPinned});return o?{rowIndex:o.rowIndex,column:e.column,rowPinned:o.rowPinned}:null}getNextTabbedCell(e,t){return t?this.getNextTabbedCellBackwards(e):this.getNextTabbedCellForwards(e)}getNextTabbedCellForwards(e){const{visibleCols:t,pagination:o}=this.beans,i=t.allCols;let s=e.rowIndex,n=e.rowPinned,r=t.getColAfter(e.column);if(!r){r=i[0];const t=_getRowBelow(this.beans,e);if(_missing(t))return null;if(!t.rowPinned&&!(o?.isRowInPage(t.rowIndex)??1))return null;s=t?t.rowIndex:null,n=t?t.rowPinned:null}return{rowIndex:s,column:r,rowPinned:n}}getNextTabbedCellBackwards(e){const{beans:t}=this,{visibleCols:o,pagination:i}=t,s=o.allCols;let n=e.rowIndex,r=e.rowPinned,a=o.getColBefore(e.column);if(!a){a=_last(s);const o=_getRowAbove(t,{rowIndex:e.rowIndex,rowPinned:e.rowPinned});if(_missing(o))return null;if(!o.rowPinned&&!(i?.isRowInPage(o.rowIndex)??1))return null;n=o?o.rowIndex:null,r=o?o.rowPinned:null}return{rowIndex:n,column:a,rowPinned:r}}isSuppressNavigable(e,t){const{suppressNavigable:o}=e.colDef;if("boolean"==typeof o)return o;if("function"==typeof o){return o(e.createColumnFunctionCallbackParams(t))}return!1}},class extends I{constructor(){super(...arguments),this.beanName="headerNavigation",this.currentHeaderRowWithoutSpan=-1}postConstruct(){const e=this.beans;e.ctrlsSvc.whenReady(this,(e=>{this.gridBodyCon=e.gridBodyCtrl}));const t=_getDocument(e);this.addManagedElementListeners(t,{mousedown:()=>{this.currentHeaderRowWithoutSpan=-1}})}getHeaderPositionForColumn(e,t){let o;const{colModel:i,colGroupSvc:s,ctrlsSvc:n}=this.beans;if("string"==typeof e?(o=i.getCol(e),o||(o=s?.getColumnGroup(e)??null)):o=e,!o)return null;const r=n.getHeaderRowContainerCtrl()?.getAllCtrls(),a="filter"===_last(r||[]).type,l=getFocusHeaderRowCount(this.beans)-1;let d=-1,c=o;for(;c;)d++,c=c.getParent();let h=d;return t&&a&&h===l-1&&h++,-1===h?null:{headerRowIndex:h,column:o}}navigateVertically(e,t){const o=this.beans.focusSvc,i=o.focusedHeader;if(!i)return!1;const{headerRowIndex:s}=i,n=i.column,r=getFocusHeaderRowCount(this.beans),a="UP"===e,l=this.getHeaderRowType(s);let{headerRowIndex:d,column:c,headerRowIndexWithoutSpan:h}=a?function getColumnVisibleParent(e,t,o){const i="column"===e;let s="filter"===e?t:t.getParent(),n=o-1,r=n;if(i&&isAnyChildSpanningHeaderHeight(t.getParent())){for(;s&&s.isPadding();)s=s.getParent(),n--;r=n,n<0&&(s=t,n=o,r=void 0)}return{column:s,headerRowIndex:n,headerRowIndexWithoutSpan:r}}(l,n,s):function getColumnVisibleChild(e,t,o,i="After"){let s=t,n=o+1;const r=n;if("group"===e){const e=t.getDisplayedLeafColumns(),o="After"===i?e[0]:_last(e),r=[];let a=o;for(;a.getParent()!==t;)a=a.getParent(),r.push(a);if(s=o,o.isSpanHeaderHeight())for(let e=r.length-1;e>=0;e--){const t=r[e];if(!t.isPadding()){s=t;break}n++}else s=_last(r),s||(s=o)}return{column:s,headerRowIndex:n,headerRowIndexWithoutSpan:r}}(l,n,s),u=!1;return d<0&&(d=0,c=n,u=!0),d>=r?(d=-1,this.currentHeaderRowWithoutSpan=-1):void 0!==h&&(this.currentHeaderRowWithoutSpan=h),!(!u&&!c)&&o.focusHeaderPosition({headerPosition:{headerRowIndex:d,column:c},allowUserOverride:!0,event:t})}navigateHorizontally(e,t=!1,o){const{focusSvc:i,gos:s}=this.beans,n={...i.focusedHeader};let r,a;-1!==this.currentHeaderRowWithoutSpan?n.headerRowIndex=this.currentHeaderRowWithoutSpan:this.currentHeaderRowWithoutSpan=n.headerRowIndex,"LEFT"===e!==s.get("enableRtl")?(a="Before",r=this.findHeader(n,a)):(a="After",r=this.findHeader(n,a));const l=s.getCallback("tabToNextHeader");if(t&&l){const e=i.focusHeaderPositionFromUserFunc({userFunc:l,headerPosition:r,direction:a});if(e){const{headerRowIndex:e}=i.focusedHeader||{};null!=e&&e!=n.headerRowIndex&&(this.currentHeaderRowWithoutSpan=e)}return e}return r||!t?i.focusHeaderPosition({headerPosition:r,direction:a,fromTab:t,allowUserOverride:!0,event:o}):this.focusNextHeaderRow(n,a,o)}focusNextHeaderRow(e,t,o){const i=e.headerRowIndex;let s,n=null;const r=this.beans;if("Before"===t?i>0&&(s=i-1,this.currentHeaderRowWithoutSpan-=1,n=this.findColAtEdgeForHeaderRow(s,"end")):(s=i+1,this.currentHeaderRowWithoutSpan<getFocusHeaderRowCount(r)?this.currentHeaderRowWithoutSpan+=1:this.currentHeaderRowWithoutSpan=-1,n=this.findColAtEdgeForHeaderRow(s,"start")),!n)return!1;const{column:a,headerRowIndex:l}=getHeaderIndexToFocus(n.column,n?.headerRowIndex);return r.focusSvc.focusHeaderPosition({headerPosition:{column:a,headerRowIndex:l},direction:t,fromTab:!0,allowUserOverride:!0,event:o})}scrollToColumn(e,t="After"){if(e.getPinned())return;let o;if(isColumnGroup(e)){const i=e.getDisplayedLeafColumns();o="Before"===t?_last(i):i[0]}else o=e;this.gridBodyCon.scrollFeature.ensureColumnVisible(o)}findHeader(e,t){let o,i;const{colGroupSvc:s,visibleCols:n}=this.beans;if(isColumnGroup(e.column)?o=s?.getGroupAtDirection(e.column,t)??void 0:(i=`getCol${t}`,o=n[i](e.column)),!o)return;const{headerRowIndex:r}=e;if("filter"!==this.getHeaderRowType(r)){const e=[o];for(;o.getParent();)o=o.getParent(),e.push(o);o=e[Math.max(0,e.length-1-r)]}const{column:a,headerRowIndex:l}=getHeaderIndexToFocus(o,r);return{column:a,headerRowIndex:l}}getHeaderRowType(e){const t=this.beans.ctrlsSvc.getHeaderRowContainerCtrl();if(t)return t.getRowType(e)}findColAtEdgeForHeaderRow(e,t){const{visibleCols:o,ctrlsSvc:i,colGroupSvc:s}=this.beans,n=o.allCols,r=n["start"===t?0:n.length-1];if(!r)return;const a=i.getHeaderRowContainerCtrl(r.getPinned())?.getRowType(e);if("group"==a){const t=s?.getColGroupAtLevel(r,e);return{headerRowIndex:e,column:t}}return{headerRowIndex:null==a?-1:e,column:r}}}],apiFunctions:{getFocusedCell:function getFocusedCell(e){return e.focusSvc.getFocusedCell()},clearFocusedCell:function clearFocusedCell(e){return e.focusSvc.clearFocusedCell()},setFocusedCell:function setFocusedCell(e,t,o,i){e.focusSvc.setFocusedCell({rowIndex:t,column:o,rowPinned:i,forceBrowserFocus:!0})},setFocusedHeader:function setFocusedHeader(e,t,o=!1){const i=e.headerNavigation?.getHeaderPositionForColumn(t,o);i&&e.focusSvc.focusHeaderPosition({headerPosition:i})},tabToNextCell:function tabToNextCell(e,t){return e.navigation?.tabToNextCell(!1,t)??!1},tabToPreviousCell:function tabToPreviousCell(e,t){return e.navigation?.tabToNextCell(!0,t)??!1}}},dn=class extends I{constructor(e,t){super(),this.isLeft=e,this.elements=t,this.getWidth=e?()=>this.beans.pinnedCols.leftWidth:()=>this.beans.pinnedCols.rightWidth}postConstruct(){this.addManagedEventListeners({[(this.isLeft?"left":"right")+"PinnedWidthChanged"]:this.onPinnedWidthChanged.bind(this)})}onPinnedWidthChanged(){const e=this.getWidth(),t=e>0;for(const o of this.elements)o&&(_setDisplayed(o,t),_setFixedWidth(o,e))}},cn={moduleName:"PinnedColumn",version:R,beans:[class extends I{constructor(){super(...arguments),this.beanName="pinnedCols"}postConstruct(){this.beans.ctrlsSvc.whenReady(this,(e=>{this.gridBodyCtrl=e.gridBodyCtrl}));const e=this.checkContainerWidths.bind(this);this.addManagedEventListeners({displayedColumnsChanged:e,displayedColumnsWidthChanged:e}),this.addManagedPropertyListener("domLayout",e)}checkContainerWidths(){const{gos:e,visibleCols:t,eventSvc:o}=this.beans,i=_isDomLayout(e,"print"),s=i?0:t.getColsLeftWidth(),n=i?0:t.getDisplayedColumnsRightWidth();s!=this.leftWidth&&(this.leftWidth=s,o.dispatchEvent({type:"leftPinnedWidthChanged"})),n!=this.rightWidth&&(this.rightWidth=n,o.dispatchEvent({type:"rightPinnedWidthChanged"}))}keepPinnedColumnsNarrowerThanViewport(){const e=_getInnerWidth(this.gridBodyCtrl.eBodyViewport);if(e<=50)return;const t=this.getPinnedColumnsOverflowingViewport(e-50),o=this.gos.getCallback("processUnpinnedColumns"),{columns:i,hasLockedPinned:s}=t;let n=i;if(n.length||s){if(o){n=o({columns:n,viewportWidth:e})}n&&n.length&&(n=n.filter((e=>!isRowNumberCol(e))),this.setColsPinned(n,null,"viewportSizeFeature"))}}createPinnedWidthFeature(e,...t){return new dn(e,t)}setColsPinned(e,t,o){const{colModel:i,colAnimation:s,visibleCols:n,gos:r}=this.beans;if(!i.cols)return;if(!e?.length)return;if(_isDomLayout(r,"print"))return void _warn(37);let a;s?.start(),a=!0===t||"left"===t?"left":"right"===t?"right":null;const l=[];e.forEach((e=>{if(!e)return;const t=i.getCol(e);t&&t.getPinned()!==a&&(this.setColPinned(t,a),l.push(t))})),l.length&&(n.refresh(o),dispatchColumnPinnedEvent(this.eventSvc,l,o)),s?.finish()}initCol(e){const{pinned:t,initialPinned:o}=e.colDef;void 0!==t?this.setColPinned(e,t):this.setColPinned(e,o)}setColPinned(e,t){e.pinned=!0===t||"left"===t?"left":"right"===t?"right":null,e.dispatchStateUpdatedEvent("pinned")}setupHeaderPinnedWidth(e){const{scrollVisibleSvc:t}=this.beans;if(null==e.pinned)return;const o="left"===e.pinned,i="right"===e.pinned;e.hidden=!0;const listener=()=>{const s=o?this.leftWidth:this.rightWidth;if(null==s)return;const n=0==s,r=e.hidden!==n,a=this.gos.get("enableRtl"),l=t.getScrollbarWidth(),d=t.verticalScrollShowing&&(a&&o||!a&&i)?s+l:s;e.comp.setPinnedContainerWidth(`${d}px`),e.comp.setDisplayed(!n),r&&(e.hidden=n,e.refresh())};e.addManagedEventListeners({leftPinnedWidthChanged:listener,rightPinnedWidthChanged:listener,scrollVisibilityChanged:listener,scrollbarWidthChanged:listener})}getHeaderResizeDiff(e,t){if(t.getPinned()){const{leftWidth:t,rightWidth:o}=this,i=_getInnerWidth(this.beans.ctrlsSvc.getGridBodyCtrl().eBodyViewport)-50;if(t+o+e>i){if(!(i>t+o))return 0;e=i-t-o}}return e}getPinnedColumnsOverflowingViewport(e){const t=(this.rightWidth??0)+(this.leftWidth??0);let o=!1;if(t<e)return{columns:[],hasLockedPinned:o};const{visibleCols:i}=this.beans,s=[...i.leftCols],n=[...i.rightCols];let r=0,a=0;const l=[];let d=t-0-e;for(;(a<s.length||r<n.length)&&d>0;){if(r<n.length){const e=n[r++];if(e.colDef.lockPinned){o=!0;continue}d-=e.getActualWidth(),l.push(e)}if(a<s.length&&d>0){const e=s[a++];if(e.colDef.lockPinned){o=!0;continue}d-=e.getActualWidth(),l.push(e)}}return{columns:l,hasLockedPinned:o}}}],css:[".ag-pinned-left-floating-bottom,.ag-pinned-left-floating-top,.ag-pinned-right-floating-bottom,.ag-pinned-right-floating-top{min-width:0;overflow:hidden;position:relative}.ag-pinned-left-sticky-top,.ag-pinned-right-sticky-top{height:100%;overflow:hidden;position:relative}.ag-sticky-bottom-full-width-container,.ag-sticky-top-full-width-container{height:100%;overflow:hidden;width:100%}.ag-pinned-left-header,.ag-pinned-right-header{display:inline-block;height:100%;overflow:hidden;position:relative}.ag-body-horizontal-scroll:not(.ag-scrollbar-invisible){.ag-horizontal-left-spacer:not(.ag-scroller-corner){border-right:var(--ag-pinned-column-border)}.ag-horizontal-right-spacer:not(.ag-scroller-corner){border-left:var(--ag-pinned-column-border)}}.ag-pinned-right-header{border-left:var(--ag-pinned-column-border)}.ag-pinned-left-header{border-right:var(--ag-pinned-column-border)}.ag-cell.ag-cell-first-right-pinned:not(.ag-cell-range-left,.ag-cell-range-single-cell,.ag-cell-focus:not(.ag-cell-range-selected):focus-within){border-left:var(--ag-pinned-column-border)}.ag-cell.ag-cell-last-left-pinned:not(.ag-cell-range-right,.ag-cell-range-single-cell,.ag-cell-focus:not(.ag-cell-range-selected):focus-within){border-right:var(--ag-pinned-column-border)}.ag-pinned-left-header .ag-header-cell-resize:after{left:calc(50% - var(--ag-header-column-resize-handle-width))}.ag-pinned-right-header .ag-header-cell-resize:after{left:50%}.ag-pinned-left-header .ag-header-cell-resize{right:-3px}.ag-pinned-right-header .ag-header-cell-resize{left:-3px}"]},hn={moduleName:"Aria",version:R,beans:[class extends I{constructor(){super(),this.beanName="ariaAnnounce",this.descriptionContainer=null,this.pendingAnnouncements=new Map,this.lastAnnouncement="",this.updateAnnouncement=_debounce(this,this.updateAnnouncement.bind(this),200)}postConstruct(){const e=this.beans,t=_getDocument(e),o=this.descriptionContainer=t.createElement("div");o.classList.add("ag-aria-description-container"),_setAriaLive(o,"polite"),function _setAriaRelevant(e,t){_toggleAriaAttribute(e,"relevant",t)}(o,"additions text"),function _setAriaAtomic(e,t){_toggleAriaAttribute(e,"atomic",t)}(o,!0),e.eGridDiv.appendChild(o)}announceValue(e,t){this.pendingAnnouncements.set(t,e),this.updateAnnouncement()}updateAnnouncement(){if(!this.descriptionContainer)return;const e=Array.from(this.pendingAnnouncements.values()).join(". ");this.pendingAnnouncements.clear(),this.descriptionContainer.textContent="",setTimeout((()=>{this.handleAnnouncementUpdate(e)}),50)}handleAnnouncementUpdate(e){if(!this.isAlive()||!this.descriptionContainer)return;let t=e;null!=t&&""!=t.replace(/[ .]/g,"")?(this.lastAnnouncement===t&&(t=`${t}`),this.lastAnnouncement=t,this.descriptionContainer.textContent=t):this.lastAnnouncement=""}destroy(){super.destroy();const{descriptionContainer:e}=this;e&&(_clearElement(e),e.parentElement?.removeChild(e)),this.descriptionContainer=null,this.pendingAnnouncements.clear()}}]};var un={tag:"div",cls:"ag-overlay",role:"presentation",children:[{tag:"div",cls:"ag-overlay-panel",role:"presentation",children:[{tag:"div",ref:"eOverlayWrapper",cls:"ag-overlay-wrapper",role:"presentation"}]}]},gn=class extends Q{constructor(){super(un),this.eOverlayWrapper=q,this.activePromise=null,this.activeOverlay=null,this.updateListenerDestroyFunc=null,this.activeCssClass=null,this.elToFocusAfter=null,this.registerCSS(".ag-overlay{inset:0;pointer-events:none;position:absolute;z-index:2}.ag-overlay-panel,.ag-overlay-wrapper{display:flex;height:100%;width:100%}.ag-overlay-wrapper{align-items:center;flex:none;justify-content:center;text-align:center}.ag-overlay-loading-wrapper{pointer-events:all}.ag-overlay-loading-center{background:var(--ag-background-color);border:solid var(--ag-border-width) var(--ag-border-color);border-radius:var(--ag-border-radius);box-shadow:var(--ag-popup-shadow);padding:var(--ag-spacing)}")}handleKeyDown(e){if(e.key!==De||e.defaultPrevented||_isStopPropagationForAgGrid(e))return;const t=this.beans;if(_findNextFocusableElement(t,this.eOverlayWrapper,!1,e.shiftKey))return;let o=!1;o=e.shiftKey?t.focusSvc.focusGridView({column:_last(t.visibleCols.allCols),backwards:!0,canFocusOverlay:!1}):_focusNextGridCoreContainer(t,!1),o&&e.preventDefault()}updateLayoutClasses(e,t){const o=this.eOverlayWrapper.classList,{AUTO_HEIGHT:i,NORMAL:s,PRINT:n}=Mt;o.toggle(i,t.autoHeight),o.toggle(s,t.normal),o.toggle(n,t.print)}postConstruct(){this.createManagedBean(new Tt(this)),this.setDisplayed(!1,{skipAriaHidden:!0}),this.beans.overlays.setOverlayWrapperComp(this),this.addManagedElementListeners(this.getFocusableElement(),{keydown:this.handleKeyDown.bind(this)})}setWrapperTypeClass(e){const t=this.eOverlayWrapper.classList;this.activeCssClass&&t.toggle(this.activeCssClass,!1),this.activeCssClass=e,t.toggle(e,!0)}showOverlay(e,t,o,i){if(this.setWrapperTypeClass(t),this.destroyActiveOverlay(),this.elToFocusAfter=null,this.activePromise=e,e){if(this.setDisplayed(!0,{skipAriaHidden:!0}),o&&this.isGridFocused()){const e=_getActiveDomElement(this.beans);e&&!_isNothingFocused(this.beans)&&(this.elToFocusAfter=e)}e.then((t=>{if(this.activePromise===e){if(this.activePromise=null,t){if(this.activeOverlay!==t&&(this.eOverlayWrapper.appendChild(t.getGui()),this.activeOverlay=t,i)){const e=t;this.updateListenerDestroyFunc=this.addManagedPropertyListener(i,(({currentValue:t})=>{e.refresh?.(_addGridCommonParams(this.gos,{...t??{}}))}))}o&&this.isGridFocused()&&_focusInto(this.eOverlayWrapper)}}else this.activeOverlay!==t&&(this.destroyBean(t),t=null)}))}}updateOverlayWrapperPaddingTop(e){this.eOverlayWrapper.style.setProperty("padding-top",`${e}px`)}destroyActiveOverlay(){this.activePromise=null;const e=this.activeOverlay;if(!e)return;let t=this.elToFocusAfter;this.activeOverlay=null,this.elToFocusAfter=null,t&&!this.isGridFocused()&&(t=null);const o=this.updateListenerDestroyFunc;o&&(o(),this.updateListenerDestroyFunc=null),this.destroyBean(e),_clearElement(this.eOverlayWrapper),t?.focus?.({preventScroll:!0})}hideOverlay(){this.destroyActiveOverlay(),this.setDisplayed(!1,{skipAriaHidden:!0})}isGridFocused(){const e=_getActiveDomElement(this.beans);return!!e&&this.beans.eGridDiv.contains(e)}destroy(){this.elToFocusAfter=null,this.destroyActiveOverlay(),this.beans.overlays.setOverlayWrapperComp(void 0),super.destroy()}},pn={selector:"AG-OVERLAY-WRAPPER",component:gn},mn={moduleName:"Overlay",version:R,userComponents:{agLoadingOverlay:class extends Co{init(){const e=_makeNull(this.gos.get("overlayLoadingTemplate")?.trim());if(this.setTemplate(e??wo),!e){const e=this.getLocaleTextFunc();setTimeout((()=>{this.getGui().textContent=e("loadingOoo","Loading...")}))}}},agNoRowsOverlay:class extends Co{init(){const e=_makeNull(this.gos.get("overlayNoRowsTemplate")?.trim());if(this.setTemplate(e??vo),!e){const e=this.getLocaleTextFunc();setTimeout((()=>{this.getGui().textContent=e("noRowsToShow","No Rows To Show")}))}}}},apiFunctions:{showLoadingOverlay:function showLoadingOverlay(e){e.overlays?.showLoadingOverlay()},showNoRowsOverlay:function showNoRowsOverlay(e){e.overlays?.showNoRowsOverlay()},hideOverlay:function hideOverlay(e){e.overlays?.hideOverlay()}},beans:[class extends I{constructor(){super(...arguments),this.beanName="overlays",this.state=0,this.showInitialOverlay=!0,this.wrapperPadding=0}postConstruct(){this.isClientSide=_isClientSideRowModel(this.gos),this.isServerSide=!this.isClientSide&&_isServerSideRowModel(this.gos);const updateOverlayVisibility=()=>this.updateOverlayVisibility();this.addManagedEventListeners({newColumnsLoaded:updateOverlayVisibility,rowDataUpdated:updateOverlayVisibility,gridSizeChanged:this.refreshWrapperPadding.bind(this),rowCountReady:()=>{this.showInitialOverlay=!1,this.updateOverlayVisibility()}}),this.addManagedPropertyListener("loading",updateOverlayVisibility)}setOverlayWrapperComp(e){this.eWrapper=e,this.updateOverlayVisibility()}isVisible(){return 0!==this.state&&!!this.eWrapper}isExclusive(){return 1===this.state&&!!this.eWrapper}showLoadingOverlay(){this.showInitialOverlay=!1;const e=this.gos,t=e.get("loading");(t||void 0===t&&!e.get("suppressLoadingOverlay"))&&this.doShowLoadingOverlay()}showNoRowsOverlay(){this.showInitialOverlay=!1;const e=this.gos;e.get("loading")||e.get("suppressNoRowsOverlay")||this.doShowNoRowsOverlay()}hideOverlay(){this.showInitialOverlay=!1,this.gos.get("loading")?_warn(99):this.doHideOverlay()}getOverlayWrapperSelector(){return pn}getOverlayWrapperCompClass(){return gn}updateOverlayVisibility(){if(!this.eWrapper)return void(this.state=0);const{state:e,isClientSide:t,isServerSide:o,beans:{gos:i,colModel:s,rowModel:n}}=this;let r=this.gos.get("loading");void 0!==r&&(this.showInitialOverlay=!1),this.showInitialOverlay&&void 0===r&&!i.get("suppressLoadingOverlay")&&(r=!i.get("columnDefs")||!s.ready||!i.get("rowData")&&t),r?1!==e&&this.doShowLoadingOverlay():(this.showInitialOverlay=!1,t&&n.isEmpty()&&!i.get("suppressNoRowsOverlay")?2!==e&&this.doShowNoRowsOverlay():(1===e||!o&&0!==e)&&this.doHideOverlay())}doShowLoadingOverlay(){this.eWrapper&&(this.state=1,this.showOverlay(function _getLoadingOverlayCompDetails(e,t){return e.getCompDetailsFromGridOptions(re,"agLoadingOverlay",t,!0)}(this.beans.userCompFactory,_addGridCommonParams(this.gos,{})),"ag-overlay-loading-wrapper","loadingOverlayComponentParams"),this.updateExclusive())}doShowNoRowsOverlay(){this.eWrapper&&(this.state=2,this.showOverlay(function _getNoRowsOverlayCompDetails(e,t){return e.getCompDetailsFromGridOptions(ae,"agNoRowsOverlay",t,!0)}(this.beans.userCompFactory,_addGridCommonParams(this.gos,{})),"ag-overlay-no-rows-wrapper","noRowsOverlayComponentParams"),this.updateExclusive())}doHideOverlay(){this.eWrapper&&(this.state=0,this.eWrapper.hideOverlay(),this.updateExclusive())}showOverlay(e,t,o){const i=e?.newAgStackInstance()??null;this.eWrapper?.showOverlay(i,t,this.isExclusive(),o),this.refreshWrapperPadding()}updateExclusive(){const e=this.exclusive;this.exclusive=this.isExclusive(),this.exclusive!==e&&this.eventSvc.dispatchEvent({type:"overlayExclusiveChanged"})}refreshWrapperPadding(){const e=this.eWrapper;if(!e)return;let t=0;if(2===this.state){t=this.beans.ctrlsSvc.get("gridHeaderCtrl")?.headerHeight||0}else 0!==this.wrapperPadding&&(t=0);this.wrapperPadding!==t&&(this.wrapperPadding=t,e.updateOverlayWrapperPaddingTop(t))}}]},fn=class{constructor(e){this.entriesMap={},this.entriesList=[],this.maxCount=e}addRow(e){if(this.entriesMap[e.rowNode.id]=e,this.entriesList.push(e),e.setCached(!0),this.entriesList.length>this.maxCount){const e=this.entriesList[0];e.destroyFirstPass(),e.destroySecondPass(),this.removeFromCache(e)}}getRow(e){if(null==e||null==e.id)return null;const t=this.entriesMap[e.id];if(!t)return null;this.removeFromCache(t),t.setCached(!1);return t.rowNode!=e?null:t}has(e){return null!=this.entriesMap[e.id]}removeRow(e){const t=e.id,o=this.entriesMap[t];delete this.entriesMap[t],_removeFromArray(this.entriesList,o)}removeFromCache(e){const t=e.rowNode.id;delete this.entriesMap[t],_removeFromArray(this.entriesList,e)}getEntries(){return this.entriesList}};function mapRowNodes(e){if(!e)return;const t={top:{},bottom:{},normal:{}};return e.forEach((e=>{const o=e.id;switch(e.rowPinned){case"top":t.top[o]=e;break;case"bottom":t.bottom[o]=e;break;default:t.normal[o]=e}})),t}function isRowInMap(e,t){const o=e.id;switch(e.rowPinned){case"top":return null!=t.top[o];case"bottom":return null!=t.bottom[o];default:return null!=t.normal[o]}}var Cn={moduleName:"Sort",version:R,beans:[class extends I{constructor(){super(...arguments),this.beanName="sortSvc"}progressSort(e,t,o){const i=this.getNextSortDirection(e);this.setSortForColumn(e,i,t,o)}progressSortFromEvent(e,t){const o="ctrl"===this.gos.get("multiSortKey")?t.ctrlKey||t.metaKey:t.shiftKey;this.progressSort(e,o,"uiColumnSorted")}setSortForColumn(e,t,o,i){"asc"!==t&&"desc"!==t&&(t=null);const{gos:s,showRowGroupCols:n}=this.beans;let r=[e];if(_isColumnsSortingCoupledToGroup(s)&&e.getColDef().showRowGroup){const t=n?.getSourceColumnsForGroupColumn?.(e),o=t?.filter((e=>e.isSortable()));o&&(r=[e,...o])}r.forEach((e=>this.setColSort(e,t,i)));const a=[];if(!((o||s.get("alwaysMultiSort"))&&!s.get("suppressMultiSort"))){const e=this.clearSortBarTheseColumns(r,i);a.push(...e)}this.updateSortIndex(e),a.push(...r),this.dispatchSortChangedEvents(i,a)}updateSortIndex(e){const{gos:t,colModel:o,showRowGroupCols:i}=this.beans,s=_isColumnsSortingCoupledToGroup(t),n=i?.getShowRowGroupCol(e.getId()),r=s&&n||e,a=this.getColumnsWithSortingOrdered();o.forAllCols((e=>this.setColSortIndex(e,null)));const l=a.filter((e=>(!s||!e.getColDef().showRowGroup)&&e!==r));(r.getSort()?[...l,r]:l).forEach(((e,t)=>this.setColSortIndex(e,t)))}onSortChanged(e,t){this.dispatchSortChangedEvents(e,t)}isSortActive(){let e=!1;return this.beans.colModel.forAllCols((t=>{t.getSort()&&(e=!0)})),e}dispatchSortChangedEvents(e,t){const o={type:"sortChanged",source:e};t&&(o.columns=t),this.eventSvc.dispatchEvent(o)}clearSortBarTheseColumns(e,t){const o=[];return this.beans.colModel.forAllCols((i=>{e.includes(i)||(i.getSort()&&o.push(i),this.setColSort(i,void 0,t))})),o}getNextSortDirection(e){const t=e.getColDef().sortingOrder??this.gos.get("sortingOrder")??Hs,o=t.indexOf(e.getSort()),i=o<0,s=o==t.length-1;return i||s?t[0]:t[o+1]}getIndexedSortMap(){const{gos:e,colModel:t,showRowGroupCols:o,rowGroupColsSvc:i}=this.beans;let s=[];if(t.forAllCols((e=>{e.getSort()&&s.push(e)})),t.isPivotMode()){const t=_isColumnsSortingCoupledToGroup(e);s=s.filter((e=>{const i=!!e.getAggFunc(),s=!e.isPrimary(),n=t?o?.getShowRowGroupCol(e.getId()):e.getColDef().showRowGroup;return i||s||n}))}const n=i?.columns.filter((e=>!!e.getSort()))??[],r={};s.forEach(((e,t)=>r[e.getId()]=t)),s.sort(((e,t)=>{const o=e.getSortIndex(),i=t.getSortIndex();if(null!=o&&null!=i)return o-i;if(null==o&&null==i){return r[e.getId()]>r[t.getId()]?1:-1}return null==i?-1:1}));const a=_isColumnsSortingCoupledToGroup(e)&&!!n.length;a&&(s=[...new Set(s.map((e=>o?.getShowRowGroupCol(e.getId())??e)))]);const l=new Map;return s.forEach(((e,t)=>l.set(e,t))),a&&n.forEach((e=>{const t=o.getShowRowGroupCol(e.getId());l.set(e,l.get(t))})),l}getColumnsWithSortingOrdered(){return[...this.getIndexedSortMap().entries()].sort((([,e],[,t])=>e-t)).map((([e])=>e))}getSortModel(){return this.getColumnsWithSortingOrdered().filter((e=>e.getSort())).map((e=>({sort:e.getSort(),colId:e.getId()})))}getSortOptions(){return this.getColumnsWithSortingOrdered().filter((e=>e.getSort())).map((e=>({sort:e.getSort(),column:e})))}canColumnDisplayMixedSort(e){const t=_isColumnsSortingCoupledToGroup(this.gos),o=!!e.getColDef().showRowGroup;return t&&o}getDisplaySortForColumn(e){const t=this.beans.showRowGroupCols?.getSourceColumnsForGroupColumn(e);if(!this.canColumnDisplayMixedSort(e)||!t?.length)return e.getSort();const o=null!=e.getColDef().field||!!e.getColDef().valueGetter?[e,...t]:t,i=o[0].getSort();return o.every((e=>e.getSort()==i))?i:"mixed"}getDisplaySortIndexForColumn(e){return this.getIndexedSortMap().get(e)}setupHeader(e,t,o){let i=0;e.addManagedListeners(t,{movingChanged:()=>{i=Date.now()}}),o&&e.addManagedElementListeners(o,{click:e=>{const o=t.isMoving(),s=Date.now();o||s-i<50||this.progressSortFromEvent(t,e)}});const onSortingChanged=()=>{const o=t.getSort();if(e.toggleCss("ag-header-cell-sorted-asc","asc"===o),e.toggleCss("ag-header-cell-sorted-desc","desc"===o),e.toggleCss("ag-header-cell-sorted-none",!o),t.getColDef().showRowGroup){const o=this.beans.showRowGroupCols?.getSourceColumnsForGroupColumn(t),i=o?.every((e=>t.getSort()==e.getSort())),s=!i;e.toggleCss("ag-header-cell-sorted-mixed",s)}};e.addManagedEventListeners({sortChanged:onSortingChanged,columnRowGroupChanged:onSortingChanged})}initCol(e){const{sort:t,initialSort:o,sortIndex:i,initialSortIndex:s}=e.colDef;void 0!==t?"asc"!==t&&"desc"!==t||(e.sort=t):"asc"!==o&&"desc"!==o||(e.sort=o),void 0!==i?null!==i&&(e.sortIndex=i):null!==s&&(e.sortIndex=s)}updateColSort(e,t,o){void 0!==t&&("desc"===t||"asc"===t?this.setColSort(e,t,o):this.setColSort(e,void 0,o))}setColSort(e,t,o){e.sort!==t&&(e.sort=t,e.dispatchColEvent("sortChanged",o)),e.dispatchStateUpdatedEvent("sort")}setColSortIndex(e,t){e.sortIndex=t,e.dispatchStateUpdatedEvent("sortIndex")}createSortIndicator(e){return new _s(e)}getSortIndicatorSelector(){return Os}},class extends I{constructor(){super(...arguments),this.beanName="rowNodeSorter"}postConstruct(){const{gos:e}=this;this.isAccentedSort=e.get("accentedSort"),this.primaryColumnsSortGroups=_isColumnsSortingCoupledToGroup(e),this.addManagedPropertyListener("accentedSort",(e=>this.isAccentedSort=e.currentValue)),this.addManagedPropertyListener("autoGroupColumnDef",(()=>this.primaryColumnsSortGroups=_isColumnsSortingCoupledToGroup(e)))}doFullSort(e,t){const o=e.map(((e,t)=>({currentPos:t,rowNode:e})));return o.sort(this.compareRowNodes.bind(this,t)),o.map((e=>e.rowNode))}compareRowNodes(e,t,o){const i=t.rowNode,s=o.rowNode;for(let t=0,o=e.length;t<o;t++){const o=e[t],n="desc"===o.sort,r=this.getValue(i,o.column),a=this.getValue(s,o.column);let l;const d=this.getComparator(o,i);l=d?d(r,a,i,s,n):_defaultComparator(r,a,this.isAccentedSort);if(!isNaN(l)&&0!==l)return"asc"===o.sort?l:-1*l}return t.currentPos-o.currentPos}getComparator(e,t){const o=e.column,i=o.getColDef().comparator;if(null!=i)return i;if(!o.getColDef().showRowGroup)return;const s=!t.group&&o.getColDef().field;if(!s)return;const n=this.beans.colModel.getColDefCol(s);return n?n.getColDef().comparator:void 0}getValue(e,t){const{valueSvc:o,colModel:i,showRowGroupCols:s,gos:n}=this.beans;if(!this.primaryColumnsSortGroups)return o.getValue(t,e,!1);if(e.rowGroupColumn===t){if(_isGroupUseEntireRow(n,i.isPivotActive())){const i=e.allLeafChildren?.[0];return i?o.getValue(t,i,!1):void 0}const r=s?.getShowRowGroupCol(t.getId());if(!r)return;return e.groupData?.[r.getId()]}return e.group&&t.getColDef().showRowGroup?void 0:o.getValue(t,e,!1)}}],apiFunctions:{onSortChanged:function onSortChanged(e){e.sortSvc?.onSortChanged("api")}},userComponents:{agSortIndicator:_s},icons:{sortAscending:"asc",sortDescending:"desc",sortUnSort:"none"}};var wn={moduleName:"ValueCache",version:R,beans:[class extends I{constructor(){super(...arguments),this.beanName="valueCache",this.cacheVersion=0}postConstruct(){const e=this.gos;this.active=e.get("valueCache"),this.neverExpires=e.get("valueCacheNeverExpires")}onDataChanged(){this.neverExpires||this.expire()}expire(){this.cacheVersion++}setValue(e,t,o){if(this.active){const i=this.cacheVersion;e.__cacheVersion!==i&&(e.__cacheVersion=i,e.__cacheData={}),e.__cacheData[t]=o}}getValue(e,t){if(this.active&&e.__cacheVersion===this.cacheVersion)return e.__cacheData[t]}}],apiFunctions:{expireValueCache:function expireValueCache(e){e.valueCache?.expire()}}},vn={moduleName:"Expression",version:R,beans:[class extends I{constructor(){super(...arguments),this.beanName="expressionSvc",this.cache={}}evaluate(e,t){if("string"==typeof e)return this.evaluateExpression(e,t);_error(15,{expression:e})}evaluateExpression(e,t){try{const o=this.createExpressionFunction(e);return o(t.value,t.context,t.oldValue,t.newValue,t.value,t.node,t.data,t.colDef,t.rowIndex,t.api,t.getValue,t.column,t.columnGroup)}catch(o){return _error(16,{expression:e,params:t,e:o}),null}}createExpressionFunction(e){const t=this.cache;if(t[e])return t[e];const o=this.createFunctionBody(e),i=new Function("x, ctx, oldValue, newValue, value, node, data, colDef, rowIndex, api, getValue, column, columnGroup",o);return t[e]=i,i}createFunctionBody(e){return e.indexOf("return")>=0?e:"return "+e+";"}}]},bn={moduleName:"ChangeDetection",version:R,beans:[class extends I{constructor(){super(...arguments),this.beanName="changeDetectionSvc",this.clientSideRowModel=null}postConstruct(){const{gos:e,rowModel:t}=this.beans;_isClientSideRowModel(e)&&(this.clientSideRowModel=t),this.addManagedEventListeners({cellValueChanged:this.onCellValueChanged.bind(this)})}onCellValueChanged(e){const{gos:t,rowRenderer:o}=this.beans;if("paste"===e.source||t.get("suppressChangeDetection"))return;const i=e.node,s=[i],n=this.clientSideRowModel,r=n?.rootNode;if(r&&!i.isRowPinned()){const o=t.get("aggregateOnlyChangedColumns"),a=new ci(o,r);a.addParentNode(i.parent,[e.column]),n.doAggregate(a),a.forEachChangedNodeDepthFirst((e=>{s.push(e),e.sibling&&s.push(e.sibling)}))}o.refreshCells({rowNodes:s})}}]},Sn={moduleName:"CellApi",version:R,apiFunctions:{getCellValue:function getCellValue(e,t){const{colKey:o,rowNode:i,useFormatter:s}=t,n=e.colModel.getColDefCol(o)??e.colModel.getCol(o);if(_missing(n))return null;const r=e.valueSvc.getValueForDisplay(n,i).value;if(s){return e.valueSvc.formatValue(n,i,r)??_toString(r)}return r}}},yn={checkSiblings:!0},Rn={moduleName:"CommunityCore",version:R,beans:[class extends I{constructor(){super(...arguments),this.beanName="gridDestroySvc",this.destroyCalled=!1}destroy(){if(this.destroyCalled)return;const{stateSvc:e,ctrlsSvc:t,context:o}=this.beans;this.eventSvc.dispatchEvent({type:"gridPreDestroyed",state:e?.getState()??{}}),this.destroyCalled=!0,t.get("gridCtrl")?.destroyGridUi(),o.destroy(),super.destroy()}},class extends I{constructor(){super(),this.beanName="apiFunctionSvc",this.api=new ii,this.fns={...oi,dispatchEvent},this.preDestroyLink="";const{api:e}=this;for(const t of Object.keys(ti))e[t]=this.makeApi(t)[t]}postConstruct(){this.preDestroyLink=this.beans.frameworkOverrides.getDocLink("grid-lifecycle/#grid-pre-destroyed")}addFunction(e,t){const{fns:o,beans:i}=this;o!==oi&&(o[e]=i?.validation?.validateApiFunction(e,t)??t)}makeApi(e){return{[e]:(...t)=>{const{beans:o,fns:{[e]:i}}=this;return i?i(o,...t):this.apiNotFound(e)}}}apiNotFound(e){const{beans:t,gos:o,preDestroyLink:i}=this;if(t){const t=ti[e];o.assertModuleRegistered(t,`api.${e}`)&&_warn(27,{fnName:e,module:t})}else _warn(26,{fnName:e,preDestroyLink:i})}destroy(){super.destroy(),this.fns=oi,this.beans=null}},class extends I{constructor(){super(...arguments),this.beanName="registry",this.agGridDefaults={},this.agGridDefaultOverrides={},this.jsComps={},this.selectors={},this.icons={}}postConstruct(){const e=this.gos.get("components");if(null!=e)for(const t of Object.keys(e))this.jsComps[t]=e[t]}registerModule(e){const{icons:t,userComponents:o,dynamicBeans:i,selectors:s}=e;if(o){const registerUserComponent=(e,t,o,i)=>{this.agGridDefaults[e]=t,(o||i)&&(this.agGridDefaultOverrides[e]={params:o,processParams:i})};for(const e of Object.keys(o)){let t=o[e];if("object"==typeof(n=t)&&n.getComp&&(t=t.getComp(this.beans)),"object"==typeof t){const{classImp:o,params:i,processParams:s}=t;registerUserComponent(e,o,i,s)}else registerUserComponent(e,t)}}var n;if(i){this.dynamicBeans??(this.dynamicBeans={});for(const e of Object.keys(i))this.dynamicBeans[e]=i[e]}if(s?.forEach((e=>{this.selectors[e.selector]=e})),t)for(const e of Object.keys(t))this.icons[e]=t[e]}getUserComponent(e,t){const createResult=(e,t,o,i)=>({componentFromFramework:t,component:e,params:o,processParams:i}),{frameworkOverrides:o}=this.beans,i=o.frameworkComponent(t,this.gos.get("components"));if(null!=i)return createResult(i,!0);const s=this.jsComps[t];if(s){return createResult(s,o.isFrameworkComponent(s))}const n=this.agGridDefaults[t];if(n){const e=this.agGridDefaultOverrides[t];return createResult(n,!1,e?.params,e?.processParams)}return this.beans.validation?.missingUserComponent(e,t,this.agGridDefaults,this.jsComps),null}createDynamicBean(e,t,...o){if(!this.dynamicBeans)throw new Error(_errMsg(279,{name:e}));const i=this.dynamicBeans[e];if(null!=i)return new i(...o);if(t)throw new Error(this.beans.validation?.missingDynamicBean(e)??_errMsg(256))}getSelector(e){return this.selectors[e]}getIcon(e){return this.icons[e]}},class extends I{constructor(){super(...arguments),this.beanName="userCompFactory"}wireBeans(e){this.agCompUtils=e.agCompUtils,this.registry=e.registry,this.frameworkCompWrapper=e.frameworkCompWrapper,this.gridOptions=e.gridOptions}getCompDetailsFromGridOptions(e,t,o,i=!1){return this.getCompDetails(this.gridOptions,e,t,o,i)}getCompDetails(e,t,o,i,s=!1){const{name:n,cellRenderer:r}=t;let a,l,{compName:d,jsComp:c,fwComp:h,paramsFromSelector:u,popupFromSelector:g,popupPositionFromSelector:p}=_getUserCompKeys(this.beans.frameworkOverrides,e,t,i);const lookupFromRegistry=e=>{const t=this.registry.getUserComponent(n,e);t&&(c=t.componentFromFramework?void 0:t.component,h=t.componentFromFramework?t.component:void 0,a=t.params,l=t.processParams)};if(null!=d&&lookupFromRegistry(d),null==c&&null==h&&null!=o&&lookupFromRegistry(o),c&&r&&!function doesImplementIComponent(e){return!!e&&e.prototype&&"getGui"in e.prototype}(c)&&(c=this.agCompUtils?.adaptFunction(t,c)),!c&&!h){const{validation:e}=this.beans;return void(!s||d===o&&o?o&&!e&&_error(146,{comp:o}):d?e?.isProvidedUserComp(d)||_error(50,{compName:d}):o?e||_error(260,{...this.gos.getModuleErrorParams(),propName:n,compName:o}):_error(216,{name:n}))}const m=this.mergeParams(e,t,i,u,a,l),f=null==c,C=c??h;return{componentFromFramework:f,componentClass:C,params:m,type:t,popupFromSelector:g,popupPositionFromSelector:p,newAgStackInstance:()=>this.newAgStackInstance(C,f,m,t)}}newAgStackInstance(e,t,o,i){let s;s=!t?new e:this.frameworkCompWrapper.wrap(e,i.mandatoryMethods,i.optionalMethods,i),this.createBean(s);const n=s.init?.(o);return null==n?Y.resolve(s):n.then((()=>s))}mergeParams(e,t,o,i=null,s,n){const r={...o,...s},a=e&&e[t.name+"Params"];if("function"==typeof a){_mergeDeep(r,a(o))}else"object"==typeof a&&_mergeDeep(r,a);return _mergeDeep(r,i),n?n(r):r}},class extends I{constructor(){super(...arguments),this.beanName="rowContainerHeight",this.scrollY=0,this.uiBodyHeight=0}postConstruct(){this.addManagedEventListeners({bodyHeightChanged:this.updateOffset.bind(this)}),this.maxDivHeight=function _getMaxDivHeight(){if(void 0!==p)return p;if(!document.body)return-1;let e=1e6;const t=_isBrowserFirefox()?6e6:1e9,o=document.createElement("div");for(document.body.appendChild(o);;){const i=2*e;if(o.style.height=i+"px",i>t||o.clientHeight!==i)break;e=i}return document.body.removeChild(o),p=e,e}(),_logIfDebug(this.gos,"RowContainerHeightService - maxDivHeight = "+this.maxDivHeight)}updateOffset(){if(!this.stretching)return;const e=this.beans.ctrlsSvc.getScrollFeature().getVScrollPosition().top,t=this.getUiBodyHeight();(e!==this.scrollY||t!==this.uiBodyHeight)&&(this.scrollY=e,this.uiBodyHeight=t,this.calculateOffset())}calculateOffset(){this.setUiContainerHeight(this.maxDivHeight),this.pixelsToShave=this.modelHeight-this.uiContainerHeight,this.maxScrollY=this.uiContainerHeight-this.uiBodyHeight;const e=this.scrollY/this.maxScrollY,t=e*this.pixelsToShave;_logIfDebug(this.gos,`RowContainerHeightService - Div Stretch Offset = ${t} (${this.pixelsToShave} * ${e})`),this.setDivStretchOffset(t)}setUiContainerHeight(e){e!==this.uiContainerHeight&&(this.uiContainerHeight=e,this.eventSvc.dispatchEvent({type:"rowContainerHeightChanged"}))}clearOffset(){this.setUiContainerHeight(this.modelHeight),this.pixelsToShave=0,this.setDivStretchOffset(0)}setDivStretchOffset(e){const t="number"==typeof e?Math.floor(e):null;this.divStretchOffset!==t&&(this.divStretchOffset=t,this.eventSvc.dispatchEvent({type:"heightScaleChanged"}))}setModelHeight(e){this.modelHeight=e,this.stretching=null!=e&&this.maxDivHeight>0&&e>this.maxDivHeight,this.stretching?this.calculateOffset():this.clearOffset()}getRealPixelPosition(e){return e-this.divStretchOffset}getUiBodyHeight(){const e=this.beans.ctrlsSvc.getScrollFeature().getVScrollPosition();return e.bottom-e.top}getScrollPositionForPixel(e){if(this.pixelsToShave<=0)return e;const t=e/(this.modelHeight-this.getUiBodyHeight());return this.maxScrollY*t}},class extends I{constructor(){super(...arguments),this.beanName="visibleCols",this.colsAndGroupsMap={},this.leftCols=[],this.rightCols=[],this.centerCols=[],this.allCols=[],this.bodyWidth=0,this.leftWidth=0,this.rightWidth=0,this.isBodyWidthDirty=!0}refresh(e,t=!1){const{colFlex:o,colModel:i,colGroupSvc:s,colViewport:n,selectionColSvc:r}=this.beans;t||this.buildTrees(i,s),s?.updateOpenClosedVisibility(),this.leftCols=pickDisplayedCols(this.treeLeft),this.centerCols=pickDisplayedCols(this.treeCenter),this.rightCols=pickDisplayedCols(this.treeRight),r?.refreshVisibility(this.leftCols,this.centerCols,this.rightCols),this.joinColsAriaOrder(i),this.joinCols(),this.setLeftValues(e),this.autoHeightCols=this.allCols.filter((e=>e.isAutoHeight())),o?.refreshFlexedColumns(),this.updateBodyWidths(),n.checkViewportColumns(!1),this.setFirstRightAndLastLeftPinned(i,this.leftCols,this.rightCols,e),this.eventSvc.dispatchEvent({type:"displayedColumnsChanged",source:e})}updateBodyWidths(){const e=getWidthOfColsInList(this.centerCols),t=getWidthOfColsInList(this.leftCols),o=getWidthOfColsInList(this.rightCols);this.isBodyWidthDirty=this.bodyWidth!==e;(this.bodyWidth!==e||this.leftWidth!==t||this.rightWidth!==o)&&(this.bodyWidth=e,this.leftWidth=t,this.rightWidth=o,this.eventSvc.dispatchEvent({type:"columnContainerWidthChanged"}),this.eventSvc.dispatchEvent({type:"displayedColumnsWidthChanged"}))}setLeftValues(e){this.setLeftValuesOfCols(e),this.setLeftValuesOfGroups()}setFirstRightAndLastLeftPinned(e,t,o,i){let s,n;this.gos.get("enableRtl")?(s=t?t[0]:null,n=o?_last(o):null):(s=t?_last(t):null,n=o?o[0]:null),e.getCols().forEach((e=>{e.setLastLeftPinned(e===s,i),e.setFirstRightPinned(e===n,i)}))}buildTrees(e,t){const o=e.getColsToShow(),i=o.filter((e=>"left"==e.getPinned())),s=o.filter((e=>"right"==e.getPinned())),n=o.filter((e=>"left"!=e.getPinned()&&"right"!=e.getPinned())),r=new U,createGroups=e=>t?t.createColumnGroups(e):e.columns;this.treeLeft=createGroups({columns:i,idCreator:r,pinned:"left",oldDisplayedGroups:this.treeLeft}),this.treeRight=createGroups({columns:s,idCreator:r,pinned:"right",oldDisplayedGroups:this.treeRight}),this.treeCenter=createGroups({columns:n,idCreator:r,pinned:null,oldDisplayedGroups:this.treeCenter}),this.updateColsAndGroupsMap()}clear(){this.leftCols=[],this.rightCols=[],this.centerCols=[],this.allCols=[],this.ariaOrderColumns=[]}joinColsAriaOrder(e){const t=e.getCols(),o=[],i=[],s=[];for(const e of t){const t=e.getPinned();t?!0===t||"left"===t?o.push(e):s.push(e):i.push(e)}this.ariaOrderColumns=o.concat(i).concat(s)}getAriaColIndex(e){let t;return t=isColumnGroup(e)?e.getLeafColumns()[0]:e,this.ariaOrderColumns.indexOf(t)+1}setLeftValuesOfGroups(){[this.treeLeft,this.treeRight,this.treeCenter].forEach((e=>{e.forEach((e=>{if(isColumnGroup(e)){e.checkLeft()}}))}))}setLeftValuesOfCols(e){const{colModel:t}=this.beans;if(!t.getColDefCols())return;const o=t.getCols().slice(0),i=this.gos.get("enableRtl");[this.leftCols,this.rightCols,this.centerCols].forEach((t=>{if(i){let o=getWidthOfColsInList(t);t.forEach((t=>{o-=t.getActualWidth(),t.setLeft(o,e)}))}else{let o=0;t.forEach((t=>{t.setLeft(o,e),o+=t.getActualWidth()}))}!function _removeAllFromUnorderedArray(e,t){for(let o=0;o<t.length;o++){const i=e.indexOf(t[o]);i>=0&&(e[i]=e[e.length-1],e.pop())}}(o,t)})),o.forEach((t=>{t.setLeft(null,e)}))}joinCols(){this.gos.get("enableRtl")?this.allCols=this.rightCols.concat(this.centerCols).concat(this.leftCols):this.allCols=this.leftCols.concat(this.centerCols).concat(this.rightCols)}getAllTrees(){return this.treeLeft&&this.treeRight&&this.treeCenter?this.treeLeft.concat(this.treeCenter).concat(this.treeRight):null}isColDisplayed(e){return this.allCols.indexOf(e)>=0}getLeftColsForRow(e){const{leftCols:t,beans:{colModel:o}}=this;return o.colSpanActive?this.getColsForRow(e,t):t}getRightColsForRow(e){const{rightCols:t,beans:{colModel:o}}=this;return o.colSpanActive?this.getColsForRow(e,t):t}getColsForRow(e,t,o,i){const s=[];let n=null;for(let r=0;r<t.length;r++){const a=t[r],l=t.length-r,d=Math.min(a.getColSpan(e),l),c=[a];if(d>1){const e=d-1;for(let o=1;o<=e;o++)c.push(t[r+o]);r+=e}let h;if(o?(h=!1,c.forEach((e=>{o(e)&&(h=!0)}))):h=!0,h){if(0===s.length&&n){!!i&&i(a)&&s.push(n)}s.push(a)}n=a}return s}getContainerWidth(e){switch(e){case"left":return this.leftWidth;case"right":return this.rightWidth;default:return this.bodyWidth}}getColBefore(e){const t=this.allCols,o=t.indexOf(e);return o>0?t[o-1]:null}isPinningLeft(){return this.leftCols.length>0}isPinningRight(){return this.rightCols.length>0}updateColsAndGroupsMap(){this.colsAndGroupsMap={};const func=e=>{this.colsAndGroupsMap[e.getUniqueId()]=e};depthFirstAllColumnTreeSearch(this.treeCenter,!1,func),depthFirstAllColumnTreeSearch(this.treeLeft,!1,func),depthFirstAllColumnTreeSearch(this.treeRight,!1,func)}isVisible(e){return this.colsAndGroupsMap[e.getUniqueId()]===e}getFirstColumn(){const e=this.gos.get("enableRtl"),t=["leftCols","centerCols","rightCols"];e&&t.reverse();for(let o=0;o<t.length;o++){const i=this[t[o]];if(i.length)return e?_last(i):i[0]}return null}getColAfter(e){const t=this.allCols,o=t.indexOf(e);return o<t.length-1?t[o+1]:null}getColsLeftWidth(){return getWidthOfColsInList(this.leftCols)}getDisplayedColumnsRightWidth(){return getWidthOfColsInList(this.rightCols)}isColAtEdge(e,t){const o=this.allCols;if(!o.length)return!1;const i="first"===t;let s;if(isColumnGroup(e)){const t=e.getDisplayedLeafColumns();if(!t.length)return!1;s=i?t[0]:_last(t)}else s=e;return(i?o[0]:_last(o))===s}},class extends I{constructor(){super(...arguments),this.beanName="eventSvc",this.globalSvc=new s}postConstruct(){const{globalListener:e,globalSyncListener:t}=this.beans;e&&this.addGlobalListener(e,!0),t&&this.addGlobalListener(t,!1)}addEventListener(e,t,o){this.globalSvc.addEventListener(e,t,o)}removeEventListener(e,t,o){this.globalSvc.removeEventListener(e,t,o)}addGlobalListener(e,t=!1){this.globalSvc.addGlobalListener(e,t)}removeGlobalListener(e,t=!1){this.globalSvc.removeGlobalListener(e,t)}dispatchLocalEvent(){}dispatchEvent(e){this.globalSvc.dispatchEvent(_addGridCommonParams(this.gos,e))}dispatchEventOnce(e){this.globalSvc.dispatchEventOnce(_addGridCommonParams(this.gos,e))}},class extends I{constructor(){super(...arguments),this.beanName="gos",this.domDataKey="__AG_"+Math.random().toString(),this.gridInstanceId=Xs++,this.gridReadyFired=!1,this.queueEvents=[],this.propEventSvc=new s,this.globalEventHandlerFactory=e=>(t,o)=>{if(!this.isAlive())return;const i=ks.has(t);if(i&&!e||!i&&e)return;if(!function isPublicEventHandler(e){return!!Gs[e]}(t))return;const fireEvent=(e,t)=>{const o=Gs[e],i=this.gridOptions[o];"function"==typeof i&&this.beans.frameworkOverrides.wrapOutgoing((()=>i(t)))};if(this.gridReadyFired)fireEvent(t,o);else if("gridReady"===t){fireEvent(t,o),this.gridReadyFired=!0;for(const e of this.queueEvents)fireEvent(e.eventName,e.event);this.queueEvents=[]}else this.queueEvents.push({eventName:t,event:o})}}wireBeans(e){this.gridOptions=e.gridOptions,this.validation=e.validation,this.api=e.gridApi,this.gridId=e.context.getGridId()}get gridOptionsContext(){return this.gridOptions.context}postConstruct(){this.validateGridOptions(this.gridOptions),this.eventSvc.addGlobalListener(this.globalEventHandlerFactory().bind(this),!0),this.eventSvc.addGlobalListener(this.globalEventHandlerFactory(!0).bind(this),!1),this.propEventSvc.setFrameworkOverrides(this.beans.frameworkOverrides),this.addManagedEventListeners({gridOptionsChanged:({options:e})=>{this.updateGridOptions({options:e,force:!0,source:"gridOptionsUpdated"})}})}destroy(){super.destroy(),this.queueEvents=[]}get(e){return this.gridOptions[e]??m[e]}getCallback(e){return this.mergeGridCommonParams(this.gridOptions[e])}exists(e){return _exists(this.gridOptions[e])}mergeGridCommonParams(e){if(e){return t=>e(this.addGridCommonParams(t))}return e}updateGridOptions({options:e,force:t,source:o="api"}){const i={id:Js++,properties:[]},s=[],{gridOptions:n,validation:r}=this;for(const a of Object.keys(e)){const l=e[a];r?.warnOnInitialPropertyUpdate(o,a);const d=t||"object"==typeof l&&"api"===o,c=n[a];if(d||c!==l){n[a]=l;const e={type:a,currentValue:l,previousValue:c,changeSet:i,source:o};s.push(e)}}this.validateGridOptions(this.gridOptions),i.properties=s.map((e=>e.type)),s.forEach((e=>{_logIfDebug(this,`Updated property ${e.type} from`,e.previousValue," to ",e.currentValue),this.propEventSvc.dispatchEvent(e)}))}addPropertyEventListener(e,t){this.propEventSvc.addEventListener(e,t)}removePropertyEventListener(e,t){this.propEventSvc.removeEventListener(e,t)}getDomDataKey(){return this.domDataKey}addGridCommonParams(e){return e.api=this.api,e.context=this.gridOptionsContext,e}validateOptions(e,t){for(const o of Object.keys(e)){const i=e[o];if(null==i||!1===i)continue;let s=t[o];"function"==typeof s&&(s=s(e,this.gridOptions,this.beans)),s&&this.assertModuleRegistered(s,o)}}validateGridOptions(e){this.validateOptions(e,Zs),this.validation?.processGridOptions(e)}validateColDef(e,t,o){!o&&this.beans.dataTypeSvc?.isColPendingInference(t)||(this.validateOptions(e,Bs),this.validation?.validateColDef(e))}assertModuleRegistered(e,t){const o=Array.isArray(e)?e.some((e=>this.isModuleRegistered(e))):this.isModuleRegistered(e);return o||_error(200,{...this.getModuleErrorParams(),moduleName:e,reasonOrId:t}),o}getModuleErrorParams(){return{gridId:this.gridId,gridScoped:_areModulesGridScoped(),rowModelType:this.get("rowModelType"),isUmd:Se}}isModuleRegistered(e){return _isModuleRegistered(e,this.gridId,this.get("rowModelType"))}},class extends I{constructor(){super(...arguments),this.beanName="colModel",this.pivotMode=!1,this.ready=!1,this.changeEventsDispatching=!1}postConstruct(){this.pivotMode=this.gos.get("pivotMode"),this.addManagedPropertyListeners(["groupDisplayType","treeData","treeDataDisplayType","groupHideOpenParents"],(e=>this.refreshAll(_convertColumnEventSourceType(e.source)))),this.addManagedPropertyListeners(["defaultColDef","defaultColGroupDef","columnTypes","suppressFieldDotNotation"],this.recreateColumnDefs.bind(this)),this.addManagedPropertyListener("pivotMode",(e=>this.setPivotMode(this.gos.get("pivotMode"),_convertColumnEventSourceType(e.source))))}createColsFromColDefs(e){const{beans:t}=this,{valueCache:o,colAutosize:i,rowGroupColsSvc:s,pivotColsSvc:n,valueColsSvc:r,visibleCols:a,colViewport:l,eventSvc:d}=t,c=this.colDefs?_compareColumnStatesAndDispatchEvents(t,e):void 0;o?.expire();const h=this.colDefCols?.list,u=this.colDefCols?.tree,g=_createColumnTree(t,this.colDefs,!0,u,e);_destroyColumnTree(t,this.colDefCols?.tree,g.columnTree);const p=g.columnTree,m=g.treeDepth,f=_getColumnsFromTree(p),C={};f.forEach((e=>C[e.getId()]=e)),this.colDefCols={tree:p,treeDepth:m,list:f,map:C},s?.extractCols(e,h),n?.extractCols(e,h),r?.extractCols(e,h),this.ready=!0,this.refreshCols(!0),a.refresh(e),l.checkViewportColumns(),d.dispatchEvent({type:"columnEverythingChanged",source:e}),c&&(this.changeEventsDispatching=!0,c(),this.changeEventsDispatching=!1),d.dispatchEvent({type:"newColumnsLoaded",source:e}),"gridInitializing"===e&&i?.applyAutosizeStrategy()}refreshCols(e){if(!this.colDefCols)return;const t=this.cols?.tree;this.saveColOrder();const{autoColSvc:o,selectionColSvc:i,rowNumbersSvc:s,quickFilter:n,pivotResultCols:r,showRowGroupCols:a,rowAutoHeight:l,visibleCols:d,colViewport:c,eventSvc:h}=this.beans,u=this.selectCols(r,this.colDefCols);this.createColumnsForService([o,i,s],u);const g=function _shouldMaintainColumnOrder(e,t){return t?!e.get("enableStrictPivotColumnOrder"):e.get("maintainColumnOrder")}(this.gos,this.showingPivotResult);e&&!g||this.restoreColOrder(u),this.positionLockedCols(u),a?.refresh(),n?.refreshCols(),this.setColSpanActive(),l?.setAutoHeightActive(u),d.clear(),c.clear();!_areEqual(t,this.cols.tree)&&h.dispatchEvent({type:"gridColumnsChanged"})}createColumnsForService(e,t){for(const o of e)o&&(o.createColumns(t,(e=>{this.lastOrder=e(this.lastOrder),this.lastPivotOrder=e(this.lastPivotOrder)})),o.addColumns(t))}selectCols(e,t){const o=e?.getPivotResultCols()??null;this.showingPivotResult=null!=o;const{map:i,list:s,tree:n,treeDepth:r}=o??t;if(this.cols={list:s.slice(),map:{...i},tree:n.slice(),treeDepth:r},o){o.list.some((e=>void 0!==this.cols?.map[e.getColId()]))||(this.lastPivotOrder=null)}return this.cols}getColsToShow(){if(!this.cols)return[];const e=this.isPivotMode()&&!this.showingPivotResult,t=this.beans.valueColsSvc?.columns;return this.cols.list.filter((o=>{const i=isColumnGroupAutoCol(o);if(e){const e=t?.includes(o);return i||e}return i||o.isVisible()}))}refreshAll(e){this.ready&&(this.refreshCols(!1),this.beans.visibleCols.refresh(e))}setColsVisible(e,t=!1,o){_applyColumnState(this.beans,{state:e.map((e=>({colId:"string"==typeof e?e:e.getColId(),hide:!t})))},o)}restoreColOrder(e){const t=this.showingPivotResult?this.lastPivotOrder:this.lastOrder;if(!t)return;const o=t.filter((t=>null!=e.map[t.getId()]));if(0===o.length)return;if(o.length===e.list.length)return void(e.list=o);const hasSiblings=e=>{const t=e.getOriginalParent();if(!t)return!1;return t.getChildren().length>1||hasSiblings(t)};if(!o.some((e=>hasSiblings(e)))){const t=new Set(o);for(const i of e.list)t.has(i)||o.push(i);return void(e.list=o)}const i=new Map;for(let e=0;e<o.length;e++){const t=o[e];i.set(t,e)}const s=e.list.filter((e=>!i.has(e)));if(0===s.length)return void(e.list=o);const getPreviousSibling=(e,t)=>{const o=t?t.getOriginalParent():e.getOriginalParent();if(!o)return null;let s=null,n=null;for(const r of o.getChildren())if(r!==t&&r!==e)if(r instanceof _){const e=i.get(r);if(null==e)continue;(null==s||s<e)&&(s=e,n=r)}else r.forEachLeafColumn((e=>{const t=i.get(e);null!=t&&(null==s||s<t)&&(s=t,n=e)}));return null==n?getPreviousSibling(e,o):n},n=[],r=new Map;for(const e of s){const t=getPreviousSibling(e,null);if(null==t){n.push(e);continue}const o=r.get(t);void 0===o?r.set(t,e):Array.isArray(o)?o.push(e):r.set(t,[o,e])}const a=new Array(e.list.length);let l=a.length-1;for(let e=n.length-1;e>=0;e--)a[l--]=n[e];for(let e=o.length-1;e>=0;e--){const t=o[e],i=r.get(t);if(i)if(Array.isArray(i))for(let e=i.length-1;e>=0;e--){const t=i[e];a[l--]=t}else a[l--]=i;a[l--]=t}e.list=a}positionLockedCols(e){e.list=placeLockedColumns(e.list,this.gos)}saveColOrder(){this.showingPivotResult?this.lastPivotOrder=this.cols?.list??null:this.lastOrder=this.cols?.list??null}getColumnDefs(){return this.colDefCols?this.beans.colDefFactory?.getColumnDefs(this.colDefCols.list,this.showingPivotResult,this.lastOrder,this.cols?.list??[]):void 0}setColSpanActive(){this.colSpanActive=!!this.cols?.list.some((e=>null!=e.getColDef().colSpan))}isPivotMode(){return this.pivotMode}setPivotMode(e,t){if(e===this.pivotMode)return;if(this.pivotMode=e,!this.ready)return;this.refreshCols(!1);const{visibleCols:o,eventSvc:i}=this.beans;o.refresh(t),i.dispatchEvent({type:"columnPivotModeChanged"})}isPivotActive(){const e=this.beans.pivotColsSvc?.columns;return this.pivotMode&&!!e?.length}recreateColumnDefs(e){if(!this.cols)return;this.beans.autoColSvc?.updateColumns(e);const t=_convertColumnEventSourceType(e.source);this.createColsFromColDefs(t)}setColumnDefs(e,t){this.colDefs=e,this.createColsFromColDefs(t)}destroy(){_destroyColumnTree(this.beans,this.colDefCols?.tree),super.destroy()}getColTree(){return this.cols?.tree??[]}getColDefColTree(){return this.colDefCols?.tree??[]}getColDefCols(){return this.colDefCols?.list??null}getCols(){return this.cols?.list??[]}forAllCols(e){const{pivotResultCols:t,autoColSvc:o,selectionColSvc:i}=this.beans;_forAll(this.colDefCols?.list,e),_forAll(o?.columns?.list,e),_forAll(i?.columns?.list,e),_forAll(t?.getPivotResultCols()?.list,e)}getColsForKeys(e){return e?e.map((e=>this.getCol(e))).filter((e=>null!=e)):[]}getColDefCol(e){return this.colDefCols?.list?this.getColFromCollection(e,this.colDefCols):null}getCol(e){return null==e?null:this.getColFromCollection(e,this.cols)}getColById(e){return this.cols?.map[e]??null}getColFromCollection(e,t){if(null==t)return null;const{map:o,list:i}=t;if("string"==typeof e&&o[e])return o[e];for(let t=0;t<i.length;t++)if(_columnsMatch(i[t],e))return i[t];return this.beans.autoColSvc?.getColumn(e)??this.beans.selectionColSvc?.getColumn(e)??null}},class extends I{constructor(){super(...arguments),this.beanName="pageBounds",this.pixelOffset=0}getFirstRow(){return this.topRowBounds?.rowIndex??-1}getLastRow(){return this.bottomRowBounds?.rowIndex??-1}getCurrentPageHeight(){const{topRowBounds:e,bottomRowBounds:t}=this;return e&&t?Math.max(t.rowTop+t.rowHeight-e.rowTop,0):0}getCurrentPagePixelRange(){const{topRowBounds:e,bottomRowBounds:t}=this;return{pageFirstPixel:e?.rowTop??0,pageLastPixel:t?t.rowTop+t.rowHeight:0}}calculateBounds(e,t){const{rowModel:o}=this.beans,i=o.getRowBounds(e);i&&(i.rowIndex=e),this.topRowBounds=i;const s=o.getRowBounds(t);s&&(s.rowIndex=t),this.bottomRowBounds=s,this.calculatePixelOffset()}getPixelOffset(){return this.pixelOffset}calculatePixelOffset(){const e=this.topRowBounds?.rowTop??0;this.pixelOffset!==e&&(this.pixelOffset=e,this.eventSvc.dispatchEvent({type:"paginationPixelOffsetChanged"}))}},class extends I{constructor(){super(...arguments),this.beanName="pageBoundsListener"}postConstruct(){this.addManagedEventListeners({modelUpdated:this.onModelUpdated.bind(this),recalculateRowBounds:this.calculatePages.bind(this)}),this.onModelUpdated()}onModelUpdated(e){this.calculatePages(),this.eventSvc.dispatchEvent({type:"paginationChanged",animate:e?.animate??!1,newData:e?.newData??!1,newPage:e?.newPage??!1,newPageSize:e?.newPageSize??!1,keepRenderedRows:e?.keepRenderedRows??!1})}calculatePages(){const{pageBounds:e,pagination:t,rowModel:o}=this.beans;t?t.calculatePages():e.calculateBounds(0,o.getRowCount()-1)}},class extends I{constructor(){super(...arguments),this.beanName="rowRenderer",this.destroyFuncsForColumnListeners=[],this.rowCtrlsByRowIndex={},this.zombieRowCtrls={},this.allRowCtrls=[],this.topRowCtrls=[],this.bottomRowCtrls=[],this.refreshInProgress=!1,this.dataFirstRenderedFired=!1,this.setupRangeSelectionListeners=()=>{const onCellSelectionChanged=()=>{this.getAllCellCtrls().forEach((e=>e.onCellSelectionChanged()))},onColumnMovedPinnedVisible=()=>{this.getAllCellCtrls().forEach((e=>e.updateRangeBordersIfRangeCount()))},addCellSelectionListeners=()=>{this.eventSvc.addEventListener("cellSelectionChanged",onCellSelectionChanged),this.eventSvc.addEventListener("columnMoved",onColumnMovedPinnedVisible),this.eventSvc.addEventListener("columnPinned",onColumnMovedPinnedVisible),this.eventSvc.addEventListener("columnVisible",onColumnMovedPinnedVisible)},removeCellSelectionListeners=()=>{this.eventSvc.removeEventListener("cellSelectionChanged",onCellSelectionChanged),this.eventSvc.removeEventListener("columnMoved",onColumnMovedPinnedVisible),this.eventSvc.removeEventListener("columnPinned",onColumnMovedPinnedVisible),this.eventSvc.removeEventListener("columnVisible",onColumnMovedPinnedVisible)};this.addDestroyFunc((()=>removeCellSelectionListeners())),this.addManagedPropertyListeners(["enableRangeSelection","cellSelection"],(()=>{_isCellSelectionEnabled(this.gos)?addCellSelectionListeners():removeCellSelectionListeners()}));_isCellSelectionEnabled(this.gos)&&addCellSelectionListeners()}}wireBeans(e){this.pageBounds=e.pageBounds,this.colModel=e.colModel,this.pinnedRowModel=e.pinnedRowModel,this.rowModel=e.rowModel,this.focusSvc=e.focusSvc,this.rowContainerHeight=e.rowContainerHeight,this.ctrlsSvc=e.ctrlsSvc,this.editSvc=e.editSvc}postConstruct(){this.ctrlsSvc.whenReady(this,(e=>{this.gridBodyCtrl=e.gridBodyCtrl,this.initialise()}))}initialise(){this.addManagedEventListeners({paginationChanged:this.onPageLoaded.bind(this),pinnedRowDataChanged:this.onPinnedRowDataChanged.bind(this),pinnedRowsChanged:this.onPinnedRowsChanged.bind(this),displayedColumnsChanged:this.onDisplayedColumnsChanged.bind(this),bodyScroll:this.onBodyScroll.bind(this),bodyHeightChanged:this.redraw.bind(this,{})}),this.addManagedPropertyListeners(["domLayout","embedFullWidthRows"],(()=>this.onDomLayoutChanged())),this.addManagedPropertyListeners(["suppressMaxRenderedRowRestriction","rowBuffer"],(()=>this.redraw())),this.addManagedPropertyListener("suppressCellFocus",(e=>this.onSuppressCellFocusChanged(e.currentValue))),this.addManagedPropertyListeners(["groupSuppressBlankHeader","getBusinessKeyForNode","fullWidthCellRenderer","fullWidthCellRendererParams","suppressStickyTotalRow","groupRowRenderer","groupRowRendererParams","loadingCellRenderer","loadingCellRendererParams","detailCellRenderer","detailCellRendererParams","enableRangeSelection","enableCellTextSelection"],(()=>this.redrawRows())),this.addManagedPropertyListener("cellSelection",(({currentValue:e,previousValue:t})=>{(!t&&e||t&&!e)&&this.redrawRows()}));const{stickyRowSvc:e,gos:t,showRowGroupCols:o}=this.beans;if(o&&this.addManagedPropertyListener("showOpenedGroup",(()=>{const e=o.getShowRowGroupCols();e.length&&this.refreshCells({columns:e,force:!0})})),e)this.stickyRowFeature=e.createStickyRowFeature(this,this.createRowCon.bind(this),this.destroyRowCtrls.bind(this));else{const e=this.gridBodyCtrl;e.setStickyTopHeight(0),e.setStickyBottomHeight(0)}this.registerCellEventListeners(),this.initialiseCache(),this.printLayout=_isDomLayout(t,"print"),this.embedFullWidthRows=this.printLayout||t.get("embedFullWidthRows"),this.redrawAfterModelUpdate()}initialiseCache(){if(this.gos.get("keepDetailRows")){const e=this.getKeepDetailRowsCount(),t=null!=e?e:3;this.cachedRowCtrls=new fn(t)}}getKeepDetailRowsCount(){return this.gos.get("keepDetailRowsCount")}getStickyTopRowCtrls(){return this.stickyRowFeature?.stickyTopRowCtrls??[]}getStickyBottomRowCtrls(){return this.stickyRowFeature?.stickyBottomRowCtrls??[]}updateAllRowCtrls(){const e=Object.values(this.rowCtrlsByRowIndex),t=Object.values(this.zombieRowCtrls),o=this.cachedRowCtrls?.getEntries()??[];t.length>0||o.length>0?this.allRowCtrls=[...e,...t,...o]:this.allRowCtrls=e}isCellBeingRendered(e,t){const o=this.rowCtrlsByRowIndex[e];if(!t||!o)return!!o;if(o.isFullWidth())return!0;const i=this.beans.spannedRowRenderer?.getCellByPosition({rowIndex:e,column:t,rowPinned:null});return!!i||!!o.getCellCtrl(t)||!o.isRowRendered()}updateCellFocus(e){this.getAllCellCtrls().forEach((t=>t.onCellFocused(e))),this.getFullWidthRowCtrls().forEach((t=>t.onFullWidthRowFocused(e)))}onCellFocusChanged(e){if(e&&null!=e.rowIndex&&!e.rowPinned){const t=this.beans.colModel.getCol(e.column)??void 0;this.isCellBeingRendered(e.rowIndex,t)||this.redraw()}this.updateCellFocus(e)}onSuppressCellFocusChanged(e){this.getAllCellCtrls().forEach((t=>t.onSuppressCellFocusChanged(e))),this.getFullWidthRowCtrls().forEach((t=>t.onSuppressCellFocusChanged(e)))}registerCellEventListeners(){this.addManagedEventListeners({cellFocused:e=>this.onCellFocusChanged(e),cellFocusCleared:()=>this.updateCellFocus(),flashCells:e=>{const{cellFlashSvc:t}=this.beans;t&&this.getAllCellCtrls().forEach((o=>t.onFlashCells(o,e)))},columnHoverChanged:()=>{this.getAllCellCtrls().forEach((e=>e.onColumnHover()))},displayedColumnsChanged:()=>{this.getAllCellCtrls().forEach((e=>e.onDisplayedColumnsChanged()))},displayedColumnsWidthChanged:()=>{this.printLayout&&this.getAllCellCtrls().forEach((e=>e.onLeftChanged()))}}),this.setupRangeSelectionListeners(),this.refreshListenersToColumnsForCellComps(),this.addManagedEventListeners({gridColumnsChanged:this.refreshListenersToColumnsForCellComps.bind(this)}),this.addDestroyFunc(this.removeGridColumnListeners.bind(this))}removeGridColumnListeners(){this.destroyFuncsForColumnListeners.forEach((e=>e())),this.destroyFuncsForColumnListeners.length=0}refreshListenersToColumnsForCellComps(){this.removeGridColumnListeners();this.colModel.getCols().forEach((e=>{const forEachCellWithThisCol=t=>{this.getAllCellCtrls().forEach((o=>{o.column===e&&t(o)}))},leftChangedListener=()=>{forEachCellWithThisCol((e=>e.onLeftChanged()))},widthChangedListener=()=>{forEachCellWithThisCol((e=>e.onWidthChanged()))},firstRightPinnedChangedListener=()=>{forEachCellWithThisCol((e=>e.onFirstRightPinnedChanged()))},lastLeftPinnedChangedListener=()=>{forEachCellWithThisCol((e=>e.onLastLeftPinnedChanged()))},colDefChangedListener=()=>{forEachCellWithThisCol((e=>e.onColDefChanged()))};e.__addEventListener("leftChanged",leftChangedListener),e.__addEventListener("widthChanged",widthChangedListener),e.__addEventListener("firstRightPinnedChanged",firstRightPinnedChangedListener),e.__addEventListener("lastLeftPinnedChanged",lastLeftPinnedChangedListener),e.__addEventListener("colDefChanged",colDefChangedListener),this.destroyFuncsForColumnListeners.push((()=>{e.__removeEventListener("leftChanged",leftChangedListener),e.__removeEventListener("widthChanged",widthChangedListener),e.__removeEventListener("firstRightPinnedChanged",firstRightPinnedChangedListener),e.__removeEventListener("lastLeftPinnedChanged",lastLeftPinnedChangedListener),e.__removeEventListener("colDefChanged",colDefChangedListener)}))}))}onDomLayoutChanged(){const e=_isDomLayout(this.gos,"print"),t=e||this.gos.get("embedFullWidthRows"),o=t!==this.embedFullWidthRows||this.printLayout!==e;this.printLayout=e,this.embedFullWidthRows=t,o&&this.redrawAfterModelUpdate({domLayoutChanged:!0})}datasourceChanged(){this.firstRenderedRow=0,this.lastRenderedRow=-1;const e=Object.keys(this.rowCtrlsByRowIndex);this.removeRowCtrls(e)}onPageLoaded(e){const t={recycleRows:e.keepRenderedRows,animate:e.animate,newData:e.newData,newPage:e.newPage,onlyBody:!0};this.redrawAfterModelUpdate(t)}getAllCellsNotSpanningForColumn(e){const t=[];return this.getAllRowCtrls().forEach((o=>{const i=o.getCellCtrl(e,!0)?.eGui;i&&t.push(i)})),t}refreshFloatingRowComps(e=!0){this.refreshFloatingRows(this.topRowCtrls,"top",e),this.refreshFloatingRows(this.bottomRowCtrls,"bottom",e)}refreshFloatingRows(e,t,o){const{pinnedRowModel:i,beans:s,printLayout:n}=this,r=Object.fromEntries(e.map((e=>[e.rowNode.id,e])));i?.forEachPinnedRow(t,((a,l)=>{const d=e[l];d&&void 0===i.getPinnedRowById(d.rowNode.id,t)&&(d.destroyFirstPass(),d.destroySecondPass()),a.id in r&&o?(e[l]=r[a.id],delete r[a.id]):e[l]=new Ht(a,s,!1,!1,n)}));const a=("top"===t?i?.getPinnedTopRowCount():i?.getPinnedBottomRowCount())??0;e.length=a}onPinnedRowDataChanged(){this.redrawAfterModelUpdate({recycleRows:!0})}onPinnedRowsChanged(){this.redrawAfterModelUpdate({recycleRows:!0})}redrawRow(e,t=!1){if(e.sticky)this.stickyRowFeature?.refreshStickyNode(e);else{if(this.cachedRowCtrls?.has(e))return void this.cachedRowCtrls.removeRow(e);{const destroyAndRecreateCtrl=t=>{const o=t[e.rowIndex];o&&o.rowNode===e&&(o.destroyFirstPass(),o.destroySecondPass(),t[e.rowIndex]=this.createRowCon(e,!1,!1))};switch(e.rowPinned){case"top":destroyAndRecreateCtrl(this.topRowCtrls);break;case"bottom":destroyAndRecreateCtrl(this.bottomRowCtrls);break;default:destroyAndRecreateCtrl(this.rowCtrlsByRowIndex),this.updateAllRowCtrls()}}}t||this.dispatchDisplayedRowsChanged(!1)}redrawRows(e){const{editSvc:t}=this.beans;t?.isEditing()&&(t.isBatchEditing()?t.cleanupEditors():t.stopEditing(void 0,{source:"api"}));if(null!=e)return e?.forEach((e=>this.redrawRow(e,!0))),void this.dispatchDisplayedRowsChanged(!1);this.redrawAfterModelUpdate()}redrawAfterModelUpdate(e={}){this.getLockOnRefresh();const t=this.beans.focusSvc?.getFocusCellToUseAfterRefresh();this.updateContainerHeights(),this.scrollToTopIfNewData(e);const o=!e.domLayoutChanged&&!!e.recycleRows,i=e.animate&&_isAnimateRows(this.gos),s=o?this.getRowsToRecycle():null;o||this.removeAllRowComps(),this.workOutFirstAndLastRowsToRender();const{stickyRowFeature:n,gos:r}=this;if(n){n.checkStickyRows();const e=n.extraTopHeight+n.extraBottomHeight;e&&this.updateContainerHeights(e)}this.recycleRows(s,i),this.gridBodyCtrl.updateRowCount(),e.onlyBody||this.refreshFloatingRowComps(r.get("enableRowPinning")?o:void 0),this.dispatchDisplayedRowsChanged(),null!=t&&this.restoreFocusedCell(t),this.releaseLockOnRefresh()}scrollToTopIfNewData(e){const t=e.newData||e.newPage,o=this.gos.get("suppressScrollOnNewData");t&&!o&&(this.gridBodyCtrl.scrollFeature.scrollToTop(),this.stickyRowFeature?.resetOffsets())}updateContainerHeights(e=0){const{rowContainerHeight:t}=this;if(this.printLayout)return void t.setModelHeight(null);let o=this.pageBounds.getCurrentPageHeight();0===o&&(o=1),t.setModelHeight(o+e)}getLockOnRefresh(){if(this.refreshInProgress)throw new Error(_errMsg(252));this.refreshInProgress=!0,this.beans.frameworkOverrides.getLockOnRefresh?.()}releaseLockOnRefresh(){this.refreshInProgress=!1,this.beans.frameworkOverrides.releaseLockOnRefresh?.()}isRefreshInProgress(){return this.refreshInProgress}restoreFocusedCell(e){if(!e)return;const t=this.beans.focusSvc,o=this.findPositionToFocus(e);o?e.rowIndex===o.rowIndex&&e.rowPinned==o.rowPinned?t.doesRowOrCellHaveBrowserFocus()||this.updateCellFocus(_addGridCommonParams(this.gos,{...o,forceBrowserFocus:!0,preventScrollOnBrowserFocus:!0,type:"cellFocused"})):t.setFocusedCell({...o,preventScrollOnBrowserFocus:!0,forceBrowserFocus:!0}):t.focusHeaderPosition({headerPosition:{headerRowIndex:getFocusHeaderRowCount(this.beans)-1,column:e.column}})}findPositionToFocus(e){const{pagination:t,pageBounds:o}=this.beans;let i=e;for(null==i.rowPinned&&t&&o&&!t.isRowInPage(i.rowIndex)&&(i={rowPinned:null,rowIndex:o.getFirstRow()});i;){if(null==i.rowPinned&&o)if(i.rowIndex<o.getFirstRow()){if(i=_getRowAbove(this.beans,{rowPinned:null,rowIndex:0}),!i)return null}else i.rowIndex>o.getLastRow()&&(i={rowPinned:null,rowIndex:o.getLastRow()});const t=this.getRowByPosition(i);if(t?.isAlive())return{...t.getRowPosition(),column:e.column};i=_getRowAbove(this.beans,i)}return null}getAllCellCtrls(){const e=[],t=this.getAllRowCtrls(),o=t.length;for(let i=0;i<o;i++){const o=t[i].getAllCellCtrls(),s=o.length;for(let t=0;t<s;t++)e.push(o[t])}return e}getAllRowCtrls(){const{spannedRowRenderer:e}=this.beans,t=this.getStickyTopRowCtrls(),o=this.getStickyBottomRowCtrls();return[...this.topRowCtrls,...this.bottomRowCtrls,...t,...o,...e?.getCtrls("top")??[],...e?.getCtrls("bottom")??[],...e?.getCtrls("center")??[],...Object.values(this.rowCtrlsByRowIndex)]}addRenderedRowListener(e,t,o){const i=this.rowCtrlsByRowIndex[t];i&&i.addEventListener(e,o)}refreshCells({rowNodes:e,columns:t,force:o,suppressFlash:i}={}){const s={force:o,newData:!1,suppressFlash:i};for(const o of this.getCellCtrls(e,t))o.refreshOrDestroyCell(s);this.refreshFullWidth(e)}refreshRows(e={}){this.getRowCtrls(e.rowNodes).forEach((t=>t.refreshRow(e))),this.refreshFullWidth(e.rowNodes)}refreshFullWidth(e){if(!e)return;let t=!1;for(const o of this.getRowCtrls(e)){if(!o.isFullWidth())continue;o.refreshFullWidth()||(t=!0,this.redrawRow(o.rowNode,!0))}t&&this.dispatchDisplayedRowsChanged(!1)}getRowCtrls(e){const t=mapRowNodes(e),o=this.getAllRowCtrls();return e&&t?o.filter((e=>isRowInMap(e.rowNode,t))):o}getCellCtrls(e,t){let o;_exists(t)&&(o={},t.forEach((e=>{const t=this.colModel.getCol(e);_exists(t)&&(o[t.getId()]=!0)})));const i=[];return this.getRowCtrls(e).forEach((e=>{e.getAllCellCtrls().forEach((e=>{const t=e.column.getId();o&&!o[t]||i.push(e)}))})),i}destroy(){this.removeAllRowComps(!0),super.destroy()}removeAllRowComps(e=!1){const t=Object.keys(this.rowCtrlsByRowIndex);this.removeRowCtrls(t,e),this.stickyRowFeature?.destroyStickyCtrls()}getRowsToRecycle(){const e=[];for(const t of Object.keys(this.rowCtrlsByRowIndex)){null==this.rowCtrlsByRowIndex[t].rowNode.id&&e.push(t)}this.removeRowCtrls(e);const t={};for(const e of Object.values(this.rowCtrlsByRowIndex)){t[e.rowNode.id]=e}return this.rowCtrlsByRowIndex={},t}removeRowCtrls(e,t=!1){e.forEach((e=>{const o=this.rowCtrlsByRowIndex[e];o&&(o.destroyFirstPass(t),o.destroySecondPass()),delete this.rowCtrlsByRowIndex[e]}))}onBodyScroll(e){"vertical"===e.direction&&this.redraw({afterScroll:!0})}redraw(e={}){const{focusSvc:t,animationFrameSvc:o}=this.beans,{afterScroll:i}=e;let s;const n=this.stickyRowFeature;n&&(s=t?.getFocusCellToUseAfterRefresh()||void 0);const r=this.firstRenderedRow,a=this.lastRenderedRow;this.workOutFirstAndLastRowsToRender();let l=!1;if(n){l=n.checkStickyRows();const e=n.extraTopHeight+n.extraBottomHeight;e&&this.updateContainerHeights(e)}const d=this.firstRenderedRow!==r||this.lastRenderedRow!==a;if((!i||l||d)&&(this.getLockOnRefresh(),this.recycleRows(null,!1,i),this.releaseLockOnRefresh(),this.dispatchDisplayedRowsChanged(i&&!l),null!=s)){const e=t?.getFocusCellToUseAfterRefresh();null!=s&&null==e&&(o?.flushAllFrames(),this.restoreFocusedCell(s))}}removeRowCompsNotToDraw(e,t){const o={};e.forEach((e=>o[e]=!0));const i=Object.keys(this.rowCtrlsByRowIndex).filter((e=>!o[e]));this.removeRowCtrls(i,t)}calculateIndexesToDraw(e){const t=[];for(let e=this.firstRenderedRow;e<=this.lastRenderedRow;e++)t.push(e);const o=this.beans.pagination,i=this.beans.focusSvc?.getFocusedCell()?.rowIndex;null!=i&&(i<this.firstRenderedRow||i>this.lastRenderedRow)&&(!o||o.isRowInPage(i))&&i<this.rowModel.getRowCount()&&t.push(i);const checkRowToDraw=e=>{const o=e.rowNode.rowIndex;null!=o&&o!==i&&(o<this.firstRenderedRow||o>this.lastRenderedRow)&&this.doNotUnVirtualiseRow(e)&&t.push(o)};for(const e of Object.values(this.rowCtrlsByRowIndex))checkRowToDraw(e);if(e)for(const t of Object.values(e))checkRowToDraw(t);t.sort(((e,t)=>e-t));const s=[];for(let e=0;e<t.length;e++){const o=t[e],i=this.rowModel.getRow(o);i&&!i.sticky&&s.push(o)}return s}recycleRows(e,t=!1,o=!1){const i=this.calculateIndexesToDraw(e);(this.printLayout||o)&&(t=!1),this.removeRowCompsNotToDraw(i,!t);const s=[];if(i.forEach((i=>{const n=this.createOrUpdateRowCtrl(i,e,t,o);_exists(n)&&s.push(n)})),e){const{animationFrameSvc:i}=this.beans;i?.active&&o&&!this.printLayout?i.addDestroyTask((()=>{this.destroyRowCtrls(e,t),this.updateAllRowCtrls(),this.dispatchDisplayedRowsChanged()})):this.destroyRowCtrls(e,t)}this.updateAllRowCtrls()}dispatchDisplayedRowsChanged(e=!1){this.eventSvc.dispatchEvent({type:"displayedRowsChanged",afterScroll:e})}onDisplayedColumnsChanged(){const{visibleCols:e}=this.beans,t=e.isPinningLeft(),o=e.isPinningRight();(this.pinningLeft!==t||o!==this.pinningRight)&&(this.pinningLeft=t,this.pinningRight=o,this.embedFullWidthRows&&this.redrawFullWidthEmbeddedRows())}redrawFullWidthEmbeddedRows(){const e=[];this.getFullWidthRowCtrls().forEach((t=>{const o=t.rowNode.rowIndex;e.push(o.toString())})),this.refreshFloatingRowComps(),this.removeRowCtrls(e),this.redraw({afterScroll:!0})}getFullWidthRowCtrls(e){const t=mapRowNodes(e);return this.getAllRowCtrls().filter((e=>{if(!e.isFullWidth())return!1;const o=e.rowNode;return!(null!=t&&!isRowInMap(o,t))}))}createOrUpdateRowCtrl(e,t,o,i){let s,n=this.rowCtrlsByRowIndex[e];n||(s=this.rowModel.getRow(e),_exists(s)&&_exists(t)&&t[s.id]&&s.alreadyRendered&&(n=t[s.id],t[s.id]=null));if(!n){if(s||(s=this.rowModel.getRow(e)),!_exists(s))return;n=this.createRowCon(s,o,i)}return s&&(s.alreadyRendered=!0),this.rowCtrlsByRowIndex[e]=n,n}destroyRowCtrls(e,t){const o=[];if(e)for(const i of Object.values(e))if(i)if(this.cachedRowCtrls&&i.isCacheable())this.cachedRowCtrls.addRow(i);else if(i.destroyFirstPass(!t),t){const e=i.instanceId;this.zombieRowCtrls[e]=i,o.push((()=>{i.destroySecondPass(),delete this.zombieRowCtrls[e]}))}else i.destroySecondPass();t&&(o.push((()=>{this.updateAllRowCtrls(),this.dispatchDisplayedRowsChanged()})),window.setTimeout((()=>o.forEach((e=>e()))),400))}getRowBuffer(){return this.gos.get("rowBuffer")}getRowBufferInPixels(){return this.getRowBuffer()*_getRowHeightAsNumber(this.beans)}workOutFirstAndLastRowsToRender(){const{rowContainerHeight:e,pageBounds:t,rowModel:o}=this;let i,s;if(e.updateOffset(),o.isRowsToRender())if(this.printLayout)this.beans.environment.refreshRowHeightVariable(),i=t.getFirstRow(),s=t.getLastRow();else{const n=this.getRowBufferInPixels(),r=this.ctrlsSvc.getScrollFeature(),a=this.gos.get("suppressRowVirtualisation");let l,d,c=!1;do{const o=t.getPixelOffset(),{pageFirstPixel:i,pageLastPixel:s}=t.getCurrentPagePixelRange(),h=e.divStretchOffset,u=r.getVScrollPosition(),g=u.top,p=u.bottom;a?(l=i+h,d=s+h):(l=Math.max(g+o-n,i)+h,d=Math.min(p+o+n,s)+h),this.firstVisibleVPixel=Math.max(g+o,i)+h,this.lastVisibleVPixel=Math.min(p+o,s)+h,c=this.ensureAllRowsInRangeHaveHeightsCalculated(l,d)}while(c);let h=o.getRowIndexAtPixel(l),u=o.getRowIndexAtPixel(d);const g=t.getFirstRow(),p=t.getLastRow();h<g&&(h=g),u>p&&(u=p),i=h,s=u}else i=0,s=-1;const n=_isDomLayout(this.gos,"normal"),r=this.gos.get("suppressMaxRenderedRowRestriction"),a=Math.max(this.getRowBuffer(),500);n&&!r&&s-i>a&&(s=i+a);const l=i!==this.firstRenderedRow,d=s!==this.lastRenderedRow;(l||d)&&(this.firstRenderedRow=i,this.lastRenderedRow=s,this.eventSvc.dispatchEvent({type:"viewportChanged",firstRow:i,lastRow:s}))}dispatchFirstDataRenderedEvent(){this.dataFirstRenderedFired||(this.dataFirstRenderedFired=!0,_requestAnimationFrame(this.beans,(()=>{this.beans.eventSvc.dispatchEvent({type:"firstDataRendered",firstRow:this.firstRenderedRow,lastRow:this.lastRenderedRow})})))}ensureAllRowsInRangeHaveHeightsCalculated(e,t){const o=this.pinnedRowModel?.ensureRowHeightsValid(),i=this.stickyRowFeature?.ensureRowHeightsValid(),{pageBounds:s,rowModel:n}=this,r=n.ensureRowHeightsValid(e,t,s.getFirstRow(),s.getLastRow());return(r||i)&&this.eventSvc.dispatchEvent({type:"recalculateRowBounds"}),!!(i||r||o)&&(this.updateContainerHeights(),!0)}doNotUnVirtualiseRow(e){const t=e.rowNode,o=this.focusSvc.isRowFocused(t.rowIndex,t.rowPinned),i=this.editSvc?.isEditing(e),s=t.detail;if(!(o||i||s))return false;return!!this.isRowPresent(t)}isRowPresent(e){return!!this.rowModel.isRowPresent(e)&&(this.beans.pagination?.isRowInPage(e.rowIndex)??!0)}createRowCon(e,t,o){const i=this.cachedRowCtrls?.getRow(e)??null;if(i)return i;const s=o&&!this.printLayout&&!!this.beans.animationFrameSvc?.active;return new Ht(e,this.beans,t,s,this.printLayout)}getRenderedNodes(){const e=Object.values(this.rowCtrlsByRowIndex).map((e=>e.rowNode));return[...this.getStickyTopRowCtrls().map((e=>e.rowNode)),...e,...this.getStickyBottomRowCtrls().map((e=>e.rowNode))]}getRowByPosition(e){let t;const{rowIndex:o}=e;switch(e.rowPinned){case"top":t=this.topRowCtrls[o];break;case"bottom":t=this.bottomRowCtrls[o];break;default:t=this.rowCtrlsByRowIndex[o],t||(t=this.getStickyTopRowCtrls().find((e=>e.rowNode.rowIndex===o))||null,t||(t=this.getStickyBottomRowCtrls().find((e=>e.rowNode.rowIndex===o))||null))}return t}isRangeInRenderedViewport(e,t){if(null==e||null==t)return!1;const o=e>this.lastRenderedRow;return!(t<this.firstRenderedRow)&&!o}},class extends I{constructor(){super(...arguments),this.beanName="valueSvc",this.hasEdit=!1,this.initialised=!1,this.isSsrm=!1}wireBeans(e){this.expressionSvc=e.expressionSvc,this.colModel=e.colModel,this.valueCache=e.valueCache,this.dataTypeSvc=e.dataTypeSvc,this.editSvc=e.editSvc,this.hasEdit=!!e.editSvc}postConstruct(){this.initialised||this.init()}init(){this.executeValueGetter=this.valueCache?this.executeValueGetterWithValueCache.bind(this):this.executeValueGetterWithoutValueCache.bind(this),this.isSsrm=_isServerSideRowModel(this.gos),this.cellExpressions=this.gos.get("enableCellExpressions"),this.isTreeData=this.gos.get("treeData"),this.initialised=!0;const listener=e=>this.callColumnCellValueChangedHandler(e);this.eventSvc.addEventListener("cellValueChanged",listener,!0),this.addDestroyFunc((()=>this.eventSvc.removeEventListener("cellValueChanged",listener,!0))),this.addManagedPropertyListener("treeData",(e=>this.isTreeData=e.currentValue))}getValueForDisplay(e,t,o=!1,i=!1,s="ui"){const{showRowGroupColValueSvc:n}=this.beans,r=!e&&t.group,a=e?.colDef.showRowGroup,l=!this.isTreeData||t.footer;if(n&&l&&(r||a)){const s=n.getGroupValue(t,e);if(null==s)return{value:null,valueFormatted:null};if(!o)return{value:s.value,valueFormatted:null};const r=n.formatAndPrefixGroupColValue(s,e,i);return{value:s.value,valueFormatted:r}}if(!e)return{value:t.key,valueFormatted:null};const d=t.leafGroup&&this.colModel.isPivotMode(),c=t.group&&t.expanded&&!t.footer&&!d,h=this.gos.get("groupSuppressBlankHeader")||!t.sibling,u=c&&!h,g=this.getValue(e,t,u,s);return{value:g,valueFormatted:o&&!(i&&!1===e.colDef.useValueFormatterForExport)?this.formatValue(e,t,g):null}}getValue(e,t,o=!1,i="ui"){if(this.initialised||this.init(),!t)return;const s=e.getColDef(),n=s.field,r=e.getColId();let a,l=t.data;if(this.hasEdit&&"ui"===i){const o=this.editSvc;if(o.isRowEditing(t,yn)&&(l=o.getRowDataValue(t,yn)),o.isEditing()){const i=o.getCellDataValue({rowNode:t,column:e});if(void 0!==i)return i}}const d=s.showRowGroup;if("string"==typeof d){if((this.beans.rowGroupColsSvc?.getColumnIndex(d)??-1)>t.level)return null}const c="string"!=typeof d||!t.group,h=t.groupData&&r in t.groupData,u=!o&&t.aggData&&void 0!==t.aggData[r],g=this.isSsrm&&o&&!!s.aggFunc,p=this.isSsrm&&t.footer&&t.field&&(!0===s.showRowGroup||s.showRowGroup===t.field);if(this.isTreeData&&u)a=t.aggData[r];else if(this.isTreeData&&s.valueGetter)a=this.executeValueGetter(s.valueGetter,l,e,t);else if(this.isTreeData&&n&&l)a=_getValueUsingField(l,n,e.isFieldContainsDots());else if(h)a=t.groupData[r];else if(u)a=t.aggData[r];else if(s.valueGetter&&!g){if(!c)return a;a=this.executeValueGetter(s.valueGetter,l,e,t)}else if(p)a=_getValueUsingField(l,t.field,e.isFieldContainsDots());else if(n&&l&&!g){if(!c)return a;a=_getValueUsingField(l,n,e.isFieldContainsDots())}if(this.cellExpressions&&"string"==typeof a&&0===a.indexOf("=")){const o=a.substring(1);a=this.executeValueGetter(o,l,e,t)}return a}parseValue(e,t,o,i){const s=e.getColDef(),n=s.valueParser;if(_exists(n)){const r=_addGridCommonParams(this.gos,{node:t,data:t?.data,oldValue:i,newValue:o,colDef:s,column:e});return"function"==typeof n?n(r):this.expressionSvc?.evaluate(n,r)}return o}getDeleteValue(e,t){return _exists(e.getColDef().valueParser)?this.parseValue(e,t,"",this.getValueForDisplay(e,t).value)??null:null}formatValue(e,t,o,i,s=!0){const{expressionSvc:n}=this.beans;let r,a=null;const l=e.getColDef();if(i?r=i:s&&(r=l.valueFormatter),r){let i=t?t.data:null;if(t){const e={rowNode:t};if(this.hasEdit){const o=this.editSvc;o.isEditing(e,yn)&&(i=o.getRowDataValue(t,yn))}}const s=_addGridCommonParams(this.gos,{value:o,node:t,data:i,colDef:l,column:e});a="function"==typeof r?r(s):n?n.evaluate(r,s):null}else if(l.refData)return l.refData[o]||"";return null==a&&Array.isArray(o)&&(a=o.join(", ")),a}setValue(e,t,o,i){const s=this.colModel.getColDefCol(t);if(!e||!s)return!1;_missing(e.data)&&(e.data={});const{field:n,valueSetter:r}=s.getColDef();if(_missing(n)&&_missing(r))return _warn(17),!1;if(this.dataTypeSvc&&!this.dataTypeSvc.checkType(s,o))return _warn(135),!1;const a=_addGridCommonParams(this.gos,{node:e,data:e.data,oldValue:this.getValue(s,e,void 0,i),newValue:o,colDef:s.getColDef(),column:s});let l;if(a.newValue=o,l=_exists(r)?"function"==typeof r?r(a):this.expressionSvc?.evaluate(r,a):this.setValueUsingField(e.data,n,o,s.isFieldContainsDots()),void 0===l&&(l=!0),!l)return!1;e.resetQuickFilterAggregateText(),this.valueCache?.onDataChanged();const d=this.getValue(s,e);return this.dispatchCellValueChangedEvent(e,a,d,i),e.pinnedSibling&&this.dispatchCellValueChangedEvent(e.pinnedSibling,a,d,i),!0}dispatchCellValueChangedEvent(e,t,o,i){this.eventSvc.dispatchEvent({type:"cellValueChanged",event:null,rowIndex:e.rowIndex,rowPinned:e.rowPinned,column:t.column,colDef:t.colDef,data:e.data,node:e,oldValue:t.oldValue,newValue:o,value:o,source:i})}callColumnCellValueChangedHandler(e){const t=e.colDef.onCellValueChanged;"function"==typeof t&&this.beans.frameworkOverrides.wrapOutgoing((()=>{t({node:e.node,data:e.data,oldValue:e.oldValue,newValue:e.newValue,colDef:e.colDef,column:e.column,api:e.api,context:e.context})}))}setValueUsingField(e,t,o,i){if(!t)return!1;let s=!1;if(i){const i=t.split(".");let n=e;for(;i.length>0&&n;){const e=i.shift();0===i.length?(s=n[e]===o,s||(n[e]=o)):n=n[e]}}else s=e[t]===o,s||(e[t]=o);return!s}executeValueGetterWithValueCache(e,t,o,i){const s=o.getColId(),n=this.valueCache.getValue(i,s);if(void 0!==n)return n;const r=this.executeValueGetterWithoutValueCache(e,t,o,i);return this.valueCache.setValue(i,s,r),r}executeValueGetterWithoutValueCache(e,t,o,i){const s=_addGridCommonParams(this.gos,{data:t,node:i,column:o,colDef:o.getColDef(),getValue:this.getValueCallback.bind(this,i)});let n;return n="function"==typeof e?e(s):this.expressionSvc?.evaluate(e,s),n}getValueCallback(e,t){const o=this.colModel.getColDefCol(t);return o?this.getValue(o,e):null}getKeyForNode(e,t){const o=this.getValue(e,t),i=e.getColDef().keyCreator;let s=o;if(i){s=i(_addGridCommonParams(this.gos,{value:o,colDef:e.getColDef(),column:e,node:t,data:t.data}))}return"string"==typeof s||null==s||(s=String(s),"[object Object]"===s&&_warn(121)),s}},class extends I{constructor(){super(...arguments),this.beanName="focusSvc",this.focusFallbackTimeout=null,this.needsFocusRestored=!1}wireBeans(e){this.colModel=e.colModel,this.visibleCols=e.visibleCols,this.rowRenderer=e.rowRenderer,this.navigation=e.navigation,this.filterManager=e.filterManager,this.overlays=e.overlays}postConstruct(){const e=this.clearFocusedCell.bind(this);this.addManagedEventListeners({columnPivotModeChanged:e,newColumnsLoaded:this.onColumnEverythingChanged.bind(this),columnGroupOpened:e,columnRowGroupChanged:e}),this.addDestroyFunc(_registerKeyboardFocusEvents(this.beans))}attemptToRecoverFocus(){this.needsFocusRestored=!0,null!=this.focusFallbackTimeout&&clearTimeout(this.focusFallbackTimeout),this.focusFallbackTimeout=window.setTimeout(this.setFocusRecovered.bind(this),100)}setFocusRecovered(){this.needsFocusRestored=!1,null!=this.focusFallbackTimeout&&(clearTimeout(this.focusFallbackTimeout),this.focusFallbackTimeout=null)}shouldTakeFocus(){return this.gos.get("suppressFocusAfterRefresh")?(this.setFocusRecovered(),!1):this.needsFocusRestored?(this.setFocusRecovered(),!0):this.doesRowOrCellHaveBrowserFocus()}onColumnEverythingChanged(){if(!this.focusedCell)return;const e=this.focusedCell.column,t=this.colModel.getCol(e.getId());e!==t&&this.clearFocusedCell()}getFocusCellToUseAfterRefresh(){const{gos:e,focusedCell:t}=this;return e.get("suppressFocusAfterRefresh")||e.get("suppressCellFocus")||!t?null:this.doesRowOrCellHaveBrowserFocus()?t:null}getFocusHeaderToUseAfterRefresh(){return this.gos.get("suppressFocusAfterRefresh")||!this.focusedHeader?null:this.isDomDataPresentInHierarchy(_getActiveDomElement(this.beans),lo)?this.focusedHeader:null}doesRowOrCellHaveBrowserFocus(){const e=_getActiveDomElement(this.beans);return!!this.isDomDataPresentInHierarchy(e,Xe)||this.isDomDataPresentInHierarchy(e,Ot)}isDomDataPresentInHierarchy(e,t){let o=e;for(;o;){if(_getDomData(this.gos,o,t))return!0;o=o.parentNode}return!1}getFocusedCell(){return this.focusedCell}getFocusEventParams(e){const{rowIndex:t,rowPinned:o,column:i}=e,s={rowIndex:t,rowPinned:o,column:i,isFullWidthCell:!1},n=this.rowRenderer.getRowByPosition({rowIndex:t,rowPinned:o});return n&&(s.isFullWidthCell=n.isFullWidth()),s}clearFocusedCell(){if(null==this.focusedCell)return;const e=this.getFocusEventParams(this.focusedCell);this.focusedCell=null,this.eventSvc.dispatchEvent({type:"cellFocusCleared",...e})}setFocusedCell(e){this.setFocusRecovered();const{column:t,rowIndex:o,rowPinned:i,forceBrowserFocus:s=!1,preventScrollOnBrowserFocus:n=!1,sourceEvent:r}=e,a=this.colModel.getCol(t);if(!a)return void(this.focusedCell=null);this.focusedCell={rowIndex:o,rowPinned:_makeNull(i),column:a};const l=this.getFocusEventParams(this.focusedCell);this.eventSvc.dispatchEvent({type:"cellFocused",...l,...this.previousCellFocusParams&&{previousParams:this.previousCellFocusParams},forceBrowserFocus:s,preventScrollOnBrowserFocus:n,sourceEvent:r}),this.previousCellFocusParams=l}isCellFocused(e){return null!=this.focusedCell&&_areCellsEqual(e,this.focusedCell)}isHeaderWrapperFocused(e){if(null==this.focusedHeader)return!1;const{column:t,rowCtrl:{rowIndex:o,pinned:i}}=e,{column:s,headerRowIndex:n}=this.focusedHeader;return t===s&&o===n&&i==s.getPinned()}focusHeaderPosition(e){if(this.setFocusRecovered(),_isHeaderFocusSuppressed(this.beans))return!1;const{direction:t,fromTab:o,allowUserOverride:i,event:s,fromCell:n,rowWithoutSpanValue:r}=e;let{headerPosition:a}=e;if(n&&this.filterManager?.isAdvFilterHeaderActive())return this.focusAdvancedFilter(a);if(i){const e=this.focusedHeader,i=getFocusHeaderRowCount(this.beans);if(o){const o=this.gos.getCallback("tabToNextHeader");o&&(a=this.getHeaderPositionFromUserFunc({userFunc:o,direction:t,currentPosition:e,headerPosition:a,headerRowCount:i}))}else{const t=this.gos.getCallback("navigateToNextHeader");if(t&&s){a=t({key:s.key,previousHeaderPosition:e,nextHeaderPosition:a,headerRowCount:i,event:s})}}}return!!a&&this.focusProvidedHeaderPosition({headerPosition:a,direction:t,event:s,fromCell:n,rowWithoutSpanValue:r})}focusHeaderPositionFromUserFunc(e){if(_isHeaderFocusSuppressed(this.beans))return!1;const{userFunc:t,headerPosition:o,direction:i,event:s}=e,n=this.focusedHeader,r=getFocusHeaderRowCount(this.beans),a=this.getHeaderPositionFromUserFunc({userFunc:t,direction:i,currentPosition:n,headerPosition:o,headerRowCount:r});return!!a&&this.focusProvidedHeaderPosition({headerPosition:a,direction:i,event:s})}getHeaderPositionFromUserFunc(e){const{userFunc:t,direction:o,currentPosition:i,headerPosition:s,headerRowCount:n}=e,r=t({backwards:"Before"===o,previousHeaderPosition:i,nextHeaderPosition:s,headerRowCount:n});return!0===r?i:!1===r?null:r}focusProvidedHeaderPosition(e){const{headerPosition:t,direction:o,fromCell:i,rowWithoutSpanValue:s,event:n}=e,{column:r,headerRowIndex:a}=t,{filterManager:l,ctrlsSvc:d,headerNavigation:c}=this.beans;if(-1===a)return l?.isAdvFilterHeaderActive()?this.focusAdvancedFilter(t):this.focusGridView({column:r,event:n});c?.scrollToColumn(r,o);const h=d.getHeaderRowContainerCtrl(r.getPinned())?.focusHeader(t.headerRowIndex,r,n)||!1;return c&&h&&(null!=s||i)&&(c.currentHeaderRowWithoutSpan=s??-1),h}focusFirstHeader(){if(this.overlays?.isExclusive()&&this.focusOverlay())return!0;let e=this.visibleCols.allCols[0];if(!e)return!1;const{colGroupSvc:t}=this.beans;t&&e.getParent()&&(e=t.getColGroupAtLevel(e,0));const o=getHeaderIndexToFocus(e,0);return this.focusHeaderPosition({headerPosition:o,rowWithoutSpanValue:0})}focusLastHeader(e){if(this.overlays?.isExclusive()&&this.focusOverlay(!0))return!0;const t=getFocusHeaderRowCount(this.beans)-1,o=_last(this.visibleCols.allCols);return this.focusHeaderPosition({headerPosition:{headerRowIndex:t,column:o},rowWithoutSpanValue:-1,event:e})}focusPreviousFromFirstCell(e){return this.filterManager?.isAdvFilterHeaderActive()?this.focusAdvancedFilter(null):this.focusLastHeader(e)}isAnyCellFocused(){return!!this.focusedCell}isRowFocused(e,t){return null!=this.focusedCell&&(this.focusedCell.rowIndex===e&&this.focusedCell.rowPinned===_makeNull(t))}focusOverlay(e){const t=this.overlays?.isVisible()&&this.overlays.eWrapper?.getGui();return!!t&&_focusInto(t,e)}focusGridView(e){const{backwards:t=!1,canFocusOverlay:o=!0,event:i}=e;if(this.overlays?.isExclusive())return o&&this.focusOverlay(t);if(_isCellFocusSuppressed(this.beans))return t&&!_isHeaderFocusSuppressed(this.beans)?this.focusLastHeader():!(!o||!this.focusOverlay(t))||!t&&_focusNextGridCoreContainer(this.beans,t);const s=t?function _getLastRow(e){let t,o=null;const{pinnedRowModel:i,pageBounds:s}=e,n=i?.getPinnedBottomRowCount(),r=i?.getPinnedTopRowCount();return n?(o="bottom",t=n-1):e.rowModel.getRowCount()?(o=null,t=s.getLastRow()):r&&(o="top",t=r-1),void 0===t?null:{rowIndex:t,rowPinned:o}}(this.beans):function _getFirstRow(e){let t,o=0;const{pinnedRowModel:i,rowModel:s,pageBounds:n}=e;return i?.getPinnedTopRowCount()?t="top":s.getRowCount()?(t=null,o=n.getFirstRow()):i?.getPinnedBottomRowCount()&&(t="bottom"),void 0===t?null:{rowIndex:o,rowPinned:t}}(this.beans);if(s){const o=e.column??this.focusedHeader?.column,{rowIndex:n,rowPinned:r}=s,a=_getRowNode(this.beans,s);if(!o||!a||null==n)return!1;if(o.isSuppressNavigable(a)){const e=this.gos.get("enableRtl");let t;return t=i&&i.key!==De?i.key:e?Ae:ke,this.beans.navigation?.navigateToNextCell(null,t,{rowIndex:n,column:o,rowPinned:r||null},!0),!0}if(this.navigation?.ensureCellVisible({rowIndex:n,column:o,rowPinned:r}),t){if(this.rowRenderer.getRowByPosition(s)?.isFullWidth()&&this.navigation?.tryToFocusFullWidthRow(s,t))return!0}return this.setFocusedCell({rowIndex:n,column:o,rowPinned:_makeNull(r),forceBrowserFocus:!0}),this.beans.rangeSvc?.setRangeToCell({rowIndex:n,rowPinned:r,column:o}),!0}return!(!o||!this.focusOverlay(t))||!(!t||!this.focusLastHeader())}focusAdvancedFilter(e){return this.advFilterFocusColumn=e?.column,this.beans.advancedFilter?.getCtrl().focusHeaderComp()??!1}focusNextFromAdvancedFilter(e,t){const o=(t?void 0:this.advFilterFocusColumn)??this.visibleCols.allCols?.[0];return e?this.focusHeaderPosition({headerPosition:{column:o,headerRowIndex:getFocusHeaderRowCount(this.beans)-1}}):this.focusGridView({column:o})}clearAdvancedFilterColumn(){this.advFilterFocusColumn=void 0}},class extends I{constructor(){super(...arguments),this.beanName="environment",this.sizeEls=new Map,this.lastKnownValues=new Map,this.sizesMeasured=!1,this.paramsClass="ag-theme-params-"+ ++As,this.globalCSS=[]}wireBeans(e){const{eGridDiv:t,gridOptions:o}=e;this.eGridDiv=t,this.eStyleContainer=o.themeStyleContainer??(t.getRootNode()===document?document.head:t),this.cssLayer=o.themeCssLayer,this.styleNonce=o.styleNonce}postConstruct(){this.addManagedPropertyListener("theme",(()=>this.handleThemeGridOptionChange())),this.handleThemeGridOptionChange(),this.addManagedPropertyListener("rowHeight",(()=>this.refreshRowHeightVariable())),this.getSizeEl(Ps),this.getSizeEl(Ds),this.getSizeEl(xs),this.getSizeEl(Ms),this.getSizeEl(Ts),this.refreshRowBorderWidthVariable(),this.addDestroyFunc((()=>(e=>{if(Oi.grids.delete(e),0===Oi.grids.size){Oi.map=new WeakMap;for(const e of document.head.querySelectorAll("style[data-ag-global-css]"))e.remove()}})(this))),this.mutationObserver=new MutationObserver((()=>{this.fireGridStylesChangedEvent("themeChanged")})),this.addDestroyFunc((()=>this.mutationObserver.disconnect()))}getPinnedRowBorderWidth(){return this.getCSSVariablePixelValue(Ts)}getRowBorderWidth(){return this.getCSSVariablePixelValue(Ms)}getDefaultRowHeight(){return this.getCSSVariablePixelValue(Ps)}getDefaultHeaderHeight(){return this.getCSSVariablePixelValue(Ds)}getDefaultCellHorizontalPadding(){return this.getCSSVariablePixelValue(Rs)}getCellPaddingLeft(){const e=this.getDefaultCellHorizontalPadding(),t=this.getCSSVariablePixelValue(Fs);return e-1+this.getCSSVariablePixelValue(Es)*t}getCellPadding(){const e=this.getDefaultCellHorizontalPadding()-1;return this.getCellPaddingLeft()+e}getDefaultColumnMinWidth(){return Math.min(36,this.getDefaultRowHeight())}getDefaultListItemHeight(){return this.getCSSVariablePixelValue(xs)}applyThemeClasses(e){const{gridTheme:t}=this;let o="";if(t)o=`${this.paramsClass} ${t._getCssClass()}`;else{this.mutationObserver.disconnect();let e=this.eGridDiv;for(;e;){let t=!1;for(const i of Array.from(e.classList))i.startsWith("ag-theme-")&&(t=!0,o=o?`${o} ${i}`:i);t&&this.mutationObserver.observe(e,{attributes:!0,attributeFilter:["class"]}),e=e.parentElement}}for(const t of Array.from(e.classList))t.startsWith("ag-theme-")&&e.classList.remove(t);if(o){const t=e.className;e.className=t+(t?" ":"")+o}}refreshRowHeightVariable(){const{eGridDiv:e}=this,t=e.style.getPropertyValue("--ag-line-height").trim(),o=this.gos.get("rowHeight");if(null==o||isNaN(o)||!isFinite(o))return null!==t&&e.style.setProperty("--ag-line-height",null),-1;const i=`${o}px`;return t!=i?(e.style.setProperty("--ag-line-height",i),o):""!=t?parseFloat(t):-1}addGlobalCSS(e,t){this.gridTheme?_injectGlobalCSS(e,this.eStyleContainer,t,this.cssLayer,0,this.styleNonce):this.globalCSS.push([e,t])}getCSSVariablePixelValue(e){const t=this.lastKnownValues.get(e);if(null!=t)return t;const o=this.measureSizeEl(e);return"detached"===o||"no-styles"===o?(e.cacheDefault&&this.lastKnownValues.set(e,e.defaultValue),e.defaultValue):(this.lastKnownValues.set(e,o),o)}measureSizeEl(e){const t=this.getSizeEl(e);if(null==t.offsetParent)return"detached";const o=t.offsetWidth;return o===Is?"no-styles":(this.sizesMeasured=!0,o)}getMeasurementContainer(){let e=this.eMeasurementContainer;return e||(e=this.eMeasurementContainer=_createElement({tag:"div",cls:"ag-measurement-container"}),this.eGridDiv.appendChild(e)),e}getSizeEl(e){let t=this.sizeEls.get(e);if(t)return t;const o=this.getMeasurementContainer();t=_createElement({tag:"div"});const{border:i,noWarn:s}=e;i?(t.className="ag-measurement-element-border",t.style.setProperty("--ag-internal-measurement-border",`var(${e.cssName}, solid ${Is}px)`)):t.style.width=`var(${e.cssName}, ${Is}px)`,o.appendChild(t),this.sizeEls.set(e,t);let n=this.measureSizeEl(e);"no-styles"!==n||s||_warn(9,{variable:e});const r=_observeResize(this.beans,t,(()=>{const t=this.measureSizeEl(e);"detached"!==t&&"no-styles"!==t&&(this.lastKnownValues.set(e,t),t!==n&&(n=t,this.fireGridStylesChangedEvent(e.changeKey)))}));return this.addDestroyFunc((()=>r())),t}fireGridStylesChangedEvent(e){"rowBorderWidthChanged"===e&&this.refreshRowBorderWidthVariable(),this.eventSvc.dispatchEvent({type:"gridStylesChanged",[e]:!0})}refreshRowBorderWidthVariable(){const e=this.getCSSVariablePixelValue(Ms);this.eGridDiv.style.setProperty("--ag-internal-row-border-width",`${e}px`)}handleThemeGridOptionChange(){const{gos:e,eGridDiv:t,globalCSS:o,gridTheme:i}=this,s=e.get("theme");let n;if("legacy"===s)n=void 0;else{const e=s??ys;e instanceof rs?n=e:_error(240,{theme:e})}if(n!==i){if(n){r=this,Oi.grids.add(r),_injectCoreAndModuleCSS(this.eStyleContainer,this.cssLayer,this.styleNonce);for(const[e,t]of o)_injectGlobalCSS(e,this.eStyleContainer,t,this.cssLayer,0,this.styleNonce);o.length=0}this.gridTheme=n,n?._startUse({loadThemeGoogleFonts:e.get("loadThemeGoogleFonts"),styleContainer:this.eStyleContainer,cssLayer:this.cssLayer,nonce:this.styleNonce});let i=this.eParamsStyle;if(!i){i=this.eParamsStyle=_createElement({tag:"style"});const e=this.gos.get("styleNonce");e&&i.setAttribute("nonce",e),t.appendChild(i)}_i||(i.textContent=n?._getPerGridCss(this.paramsClass)||""),this.applyThemeClasses(t),this.fireGridStylesChangedEvent("themeChanged")}var r;n&&getComputedStyle(this.getMeasurementContainer()).getPropertyValue("--ag-legacy-styles-loaded")&&_error(s?106:239)}},class extends I{constructor(){super(...arguments),this.beanName="scrollVisibleSvc"}wireBeans(e){this.ctrlsSvc=e.ctrlsSvc,this.colAnimation=e.colAnimation}postConstruct(){this.getScrollbarWidth(),this.addManagedEventListeners({displayedColumnsChanged:this.updateScrollVisible.bind(this),displayedColumnsWidthChanged:this.updateScrollVisible.bind(this)})}updateScrollVisible(){const{colAnimation:e}=this;e?.isActive()?e.executeLaterVMTurn((()=>{e.executeLaterVMTurn((()=>this.updateScrollVisibleImpl()))})):this.updateScrollVisibleImpl()}updateScrollVisibleImpl(){const e=this.ctrlsSvc.get("center");if(!e||this.colAnimation?.isActive())return;const t={horizontalScrollShowing:e.isHorizontalScrollShowing(),verticalScrollShowing:this.verticalScrollShowing};this.setScrollsVisible(t),this.updateScrollGap()}updateScrollGap(){const e=this.ctrlsSvc.get("center"),t=e.hasHorizontalScrollGap(),o=e.hasVerticalScrollGap();(this.horizontalScrollGap!==t||this.verticalScrollGap!==o)&&(this.horizontalScrollGap=t,this.verticalScrollGap=o,this.eventSvc.dispatchEvent({type:"scrollGapChanged"}))}setScrollsVisible(e){(this.horizontalScrollShowing!==e.horizontalScrollShowing||this.verticalScrollShowing!==e.verticalScrollShowing)&&(this.horizontalScrollShowing=e.horizontalScrollShowing,this.verticalScrollShowing=e.verticalScrollShowing,this.eventSvc.dispatchEvent({type:"scrollVisibilityChanged"}))}getScrollbarWidth(){if(null==this.scrollbarWidth){const e=this.gos.get("scrollbarWidth"),t="number"==typeof e&&e>=0?e:function _getScrollbarWidth(){return null==g&&initScrollbarWidthAndVisibility(),g}();null!=t&&(this.scrollbarWidth=t,this.eventSvc.dispatchEvent({type:"scrollbarWidthChanged"}))}return this.scrollbarWidth}},class extends I{constructor(){super(...arguments),this.beanName="ctrlsSvc",this.params={},this.ready=!1,this.readyCallbacks=[]}postConstruct(){this.addEventListener("ready",(()=>{this.updateReady(),this.ready&&(this.readyCallbacks.forEach((e=>e(this.params))),this.readyCallbacks.length=0)}),this.beans.frameworkOverrides.runWhenReadyAsync?.()??!1)}updateReady(){const e=Object.values(this.params);this.ready=23===e.length&&e.every((e=>e?.isAlive()??!1))}whenReady(e,t){this.ready?t(this.params):this.readyCallbacks.push(t),e.addDestroyFunc((()=>{const e=this.readyCallbacks.indexOf(t);e>=0&&this.readyCallbacks.splice(e,1)}))}register(e,t){this.params[e]=t,this.updateReady(),this.ready&&this.dispatchLocalEvent({type:"ready"}),t.addDestroyFunc((()=>{this.updateReady()}))}get(e){return this.params[e]}getGridBodyCtrl(){return this.params.gridBodyCtrl}getHeaderRowContainerCtrls(){const{leftHeader:e,centerHeader:t,rightHeader:o}=this.params;return[e,o,t]}getHeaderRowContainerCtrl(e){const t=this.params;switch(e){case"left":return t.leftHeader;case"right":return t.rightHeader;default:return t.centerHeader}}getScrollFeature(){return this.getGridBodyCtrl().scrollFeature}},class extends I{constructor(){super(...arguments),this.beanName="syncSvc",this.waitingForColumns=!1}postConstruct(){this.addManagedPropertyListener("columnDefs",(e=>this.setColumnDefs(e)))}start(){this.beans.ctrlsSvc.whenReady(this,(()=>{const e=this.gos.get("columnDefs");e?this.setColumnsAndData(e):this.waitingForColumns=!0,this.gridReady()}))}setColumnsAndData(e){const{colModel:t,rowModel:o}=this.beans;t.setColumnDefs(e??[],"gridInitializing"),o.start()}gridReady(){const{eventSvc:e,gos:t}=this;e.dispatchEvent({type:"gridReady"}),_logIfDebug(t,`initialised successfully, enterprise = ${t.isModuleRegistered("EnterpriseCore")}`)}setColumnDefs(e){const t=this.gos.get("columnDefs");if(t)return this.waitingForColumns?(this.waitingForColumns=!1,void this.setColumnsAndData(t)):void this.beans.colModel.setColumnDefs(t,_convertColumnEventSourceType(e.source))}},class extends I{constructor(){super(...arguments),this.beanName="colNames"}getDisplayNameForColumn(e,t,o=!1){if(!e)return null;const i=this.getHeaderName(e.getColDef(),e,null,null,t),{aggColNameSvc:s}=this.beans;return o&&s?s.getHeaderName(e,i):i}getDisplayNameForProvidedColumnGroup(e,t,o){const i=t?.getColGroupDef();return i?this.getHeaderName(i,null,e,t,o):null}getDisplayNameForColumnGroup(e,t){return this.getDisplayNameForProvidedColumnGroup(e,e.getProvidedColumnGroup(),t)}getHeaderName(e,t,o,i,s){const n=e.headerValueGetter;if(n){const r=_addGridCommonParams(this.gos,{colDef:e,column:t,columnGroup:o,providedColumnGroup:i,location:s});return"function"==typeof n?n(r):"string"==typeof n?this.beans.expressionSvc?.evaluate(n,r)??null:""}return null!=e.headerName?e.headerName:e.field?function _camelCaseToHumanText(e){return e&&null!=e?e.replace(/([a-z])([A-Z])/g,"$1 $2").replace(/([A-Z]+)([A-Z])([a-z])/g,"$1 $2$3").replace(/\./g," ").split(" ").map((e=>e.substring(0,1).toUpperCase()+(e.length>1?e.substring(1,e.length):""))).join(" "):null}(e.field):""}},class extends I{constructor(){super(...arguments),this.beanName="colViewport",this.colsWithinViewport=[],this.headerColsWithinViewport=[],this.colsWithinViewportHash="",this.rowsOfHeadersToRenderLeft={},this.rowsOfHeadersToRenderRight={},this.rowsOfHeadersToRenderCenter={}}wireBeans(e){this.visibleCols=e.visibleCols,this.colModel=e.colModel}postConstruct(){this.suppressColumnVirtualisation=this.gos.get("suppressColumnVirtualisation")}setScrollPosition(e,t,o=!1){const{visibleCols:i}=this,s=i.isBodyWidthDirty;if(!(e===this.scrollWidth&&t===this.scrollPosition&&!s)){if(this.scrollWidth=e,this.scrollPosition=t,i.isBodyWidthDirty=!0,this.gos.get("enableRtl")){const o=i.bodyWidth;this.viewportLeft=o-t-e,this.viewportRight=o-t}else this.viewportLeft=t,this.viewportRight=e+t;this.colModel.ready&&this.checkViewportColumns(o)}}getHeadersToRender(e,t){let o;switch(e){case"left":o=this.rowsOfHeadersToRenderLeft[t];break;case"right":o=this.rowsOfHeadersToRenderRight[t];break;default:o=this.rowsOfHeadersToRenderCenter[t]}return o||[]}extractViewportColumns(){const e=this.visibleCols.centerCols;this.isColumnVirtualisationSuppressed()?(this.colsWithinViewport=e,this.headerColsWithinViewport=e):(this.colsWithinViewport=e.filter(this.isColumnInRowViewport.bind(this)),this.headerColsWithinViewport=e.filter(this.isColumnInHeaderViewport.bind(this)))}isColumnVirtualisationSuppressed(){return this.suppressColumnVirtualisation||0===this.viewportRight}clear(e){this.rowsOfHeadersToRenderLeft={},this.rowsOfHeadersToRenderRight={},this.rowsOfHeadersToRenderCenter={},e||(this.colsWithinViewportHash="")}isColumnInHeaderViewport(e){return!(!e.isAutoHeaderHeight()&&!function isAnyParentAutoHeaderHeight(e){for(;e;){if(e.isAutoHeaderHeight())return!0;e=e.getParent()}return!1}(e))||this.isColumnInRowViewport(e)}isColumnInRowViewport(e){if(e.isAutoHeight())return!0;const t=e.getLeft()||0,o=t+e.getActualWidth(),i=this.viewportLeft-200,s=this.viewportRight+200;return!(t<i&&o<i)&&!(t>s&&o>s)}getViewportColumns(){const{leftCols:e,rightCols:t}=this.visibleCols;return this.colsWithinViewport.concat(e).concat(t)}getColsWithinViewport(e){if(!this.colModel.colSpanActive)return this.colsWithinViewport;const t=this.isColumnVirtualisationSuppressed()?void 0:this.isColumnInRowViewport.bind(this),{visibleCols:o}=this,i=o.centerCols;return o.getColsForRow(e,i,t,(e=>{const t=e.getLeft();return _exists(t)&&t>this.viewportLeft}))}checkViewportColumns(e=!1){this.extractViewport()&&this.eventSvc.dispatchEvent({type:"virtualColumnsChanged",afterScroll:e})}calculateHeaderRows(){this.clear(!0);const e={},{leftCols:t,rightCols:o,treeLeft:i,treeRight:s,treeCenter:n}=this.visibleCols;this.headerColsWithinViewport.concat(t).concat(o).forEach((t=>e[t.getId()]=!0));const testGroup=(t,o,i)=>{let s=!1;for(let n=0;n<t.length;n++){const r=t[n];let a=!1;if(isColumn(r))a=!0===e[r.getId()];else{const e=r.getDisplayedChildren();e&&(a=testGroup(e,o,i+1))}a&&(s=!0,o[i]||(o[i]=[]),o[i].push(r))}return s};testGroup(i,this.rowsOfHeadersToRenderLeft,0),testGroup(s,this.rowsOfHeadersToRenderRight,0),testGroup(n,this.rowsOfHeadersToRenderCenter,0)}extractViewport(){this.extractViewportColumns();const e=this.getViewportColumns().map((e=>`${e.getId()}-${e.getPinned()||"normal"}`)).join("#"),t=this.colsWithinViewportHash!==e;return t&&(this.colsWithinViewportHash=e,this.calculateHeaderRows()),t}}],icons:{selectOpen:"small-down",smallDown:"small-down",colorPicker:"color-picker",smallUp:"small-up",checkboxChecked:"small-up",checkboxIndeterminate:"checkbox-indeterminate",checkboxUnchecked:"checkbox-unchecked",radioButtonOn:"radio-button-on",radioButtonOff:"radio-button-off",smallLeft:"small-left",smallRight:"small-right"},apiFunctions:{getGridId:function getGridId(e){return e.context.getGridId()},destroy:function destroy(e){e.gridDestroySvc.destroy()},isDestroyed:function isDestroyed(e){return e.gridDestroySvc.destroyCalled},getGridOption:function getGridOption(e,t){return e.gos.get(t)},setGridOption:function setGridOption(e,t,o){updateGridOptions(e,{[t]:o})},updateGridOptions,isModuleRegistered:function isModuleRegistered(e,t){const o=t.replace(/Module$/,"");return e.gos.isModuleRegistered(o)}},dependsOn:[Ai,bi,Fi,Cn,sn,Pi,nn,mn,bn,rn,ln,cn,hn,an,Ni,Ii,vn,Mi]};function _fuzzySuggestions(e){const{inputValue:t,allSuggestions:o,hideIrrelevant:i,filterByPercentageOfBestMatch:s}=e;let n=o.map(((e,o)=>({value:e,relevance:hybridFuzzySearch(t,e),idx:o})));if(n.sort(((e,t)=>t.relevance-e.relevance)),i&&(n=n.filter((e=>0!==e.relevance))),n.length>0&&s&&s>0){const e=n[0].relevance*s;n=n.filter((t=>e-t.relevance<0))}const r=[],a=[];for(const e of n)r.push(e.value),a.push(e.idx);return{values:r,indices:a}}function hybridFuzzySearch(e,t){if(e===t)return 1e3;const o=e.length,i=t.length;if(0===o||0===i)return 0;const s=e.toLocaleLowerCase(),n=t.toLocaleLowerCase(),r=n.indexOf(s);if(-1!==r)return 980-2*r;if(0===[...s].filter((e=>n.includes(e))).length)return 0;let a=Array.from({length:i+1},((e,t)=>t));for(let s=0;s<o;s++){const o=[s+1];for(let n=0;n<i;n++){const r=a[n+1]+1,l=o[n]+1;let d=a[n]+(e[s]!==t[n]?1:0);i>10&&n>i/2&&(d+=1),s>0&&n>0&&e[s-1]===t[n-1]&&(d-=4),o.push(Math.min(r,l,d))}a=o}const l=Math.round(a[i]),d=Math.max(1,1e3-30*l);return Math.max(1,d)}var Fn={AdvancedFilter:1,AllEnterprise:1,BatchEdit:1,CellSelection:1,Clipboard:1,ColumnMenu:1,ColumnsToolPanel:1,ContextMenu:1,ExcelExport:1,FiltersToolPanel:1,Find:1,GridCharts:1,IntegratedCharts:1,GroupFilter:1,MasterDetail:1,Menu:1,MultiFilter:1,NewFiltersToolPanel:1,Pivot:1,RangeSelection:1,RichSelect:1,RowNumbers:1,RowGrouping:1,RowGroupingPanel:1,ServerSideRowModelApi:1,ServerSideRowModel:1,SetFilter:1,SideBar:1,Sparklines:1,StatusBar:1,TreeData:1,ViewportRowModel:1},En=["TextFilter","NumberFilter","DateFilter","SetFilter","MultiFilter","GroupFilter","CustomFilter"],Pn={EditCore:["TextEditor","NumberEditor","DateEditor","CheckboxEditor","LargeTextEditor","SelectEditor","RichSelect","CustomEditor"],CheckboxCellRenderer:["AllCommunity"],ClientSideRowModelHierarchy:["RowGrouping","Pivot","TreeData"],ColumnFilter:En,ColumnGroupHeaderComp:["AllCommunity"],ColumnGroup:["AllCommunity"],ColumnHeaderComp:["AllCommunity"],ColumnMove:["AllCommunity"],ColumnResize:["AllCommunity"],CommunityCore:["AllCommunity"],CsrmSsrmSharedApi:["ClientSideRowModelApi","ServerSideRowModelApi"],EnterpriseCore:["AllEnterprise"],FilterCore:[...En,"QuickFilter","ExternalFilter","AdvancedFilter"],GroupCellRenderer:["RowGrouping","Pivot","TreeData","MasterDetail","ServerSideRowModel"],KeyboardNavigation:["AllCommunity"],LoadingCellRenderer:["ServerSideRowModel"],MenuCore:["ColumnMenu","ContextMenu"],MenuItem:["ColumnMenu","ContextMenu","MultiFilter","IntegratedCharts","ColumnsToolPanel"],Overlay:["AllCommunity"],PinnedColumn:["AllCommunity"],SharedAggregation:["RowGrouping","Pivot","TreeData","ServerSideRowModel"],SharedDragAndDrop:["AllCommunity"],SharedMasterDetail:["MasterDetail","ServerSideRowModel"],SharedMenu:[...En,"ColumnMenu","ContextMenu"],SharedPivot:["Pivot","ServerSideRowModel"],SharedRowGrouping:["RowGrouping","ServerSideRowModel"],SharedRowSelection:["RowSelection","ServerSideRowModel"],SkeletonCellRenderer:["ServerSideRowModel"],Sort:["AllCommunity"],SsrmInfiniteSharedApi:["InfiniteRowModel","ServerSideRowModelApi"],SharedTreeData:["TreeData","ServerSideRowModel"]},Dn={InfiniteRowModel:"infinite",ClientSideRowModelApi:"clientSide",ClientSideRowModel:"clientSide",ServerSideRowModelApi:"serverSide",ServerSideRowModel:"serverSide",ViewportRowModel:"viewport"};function convertToUserModuleName(e,t=!1){return!t||"IntegratedCharts"!==e&&"Sparklines"!==e?`${e}Module`:`${e}Module.with(AgChartsEnterpriseModule)`}function missingRowModelTypeError({moduleName:e,rowModelType:t}){return`To use the ${e}Module you must set the gridOption "rowModelType='${t}'"`}var missingModule=({reasonOrId:e,moduleName:t,gridScoped:o,gridId:i,rowModelType:s,additionalText:n,isUmd:r})=>{const a=function resolveModuleNames(e,t){const o=[];return(Array.isArray(e)?e:[e]).forEach((e=>{const i=Pn[e];i?i.forEach((e=>{const i=Dn[e];i&&i!==t||o.push(e)})):o.push(e)})),o}(t,s),l="string"==typeof e?e:Mn[e];if(r)return function umdMissingModule(e,t){const o=t.filter((e=>"IntegratedCharts"===e||"Sparklines"===e));let i="";const s=globalThis?.agCharts;return!s&&o.length>0?i=`Unable to use ${e} as either the ag-charts-community or ag-charts-enterprise script needs to be included alongside ag-grid-enterprise.\n`:t.some((e=>Fn[e]))&&(i+=`Unable to use ${e} as that requires the ag-grid-enterprise script to be included.\n`),i}(l,a);const d=a.filter((e=>"IntegratedCharts"===e||"Sparklines"===e)),c=d.length>0?`${d.map((e=>convertToUserModuleName(e))).join()} must be initialised with an AG Charts module. One of 'AgChartsCommunityModule' / 'AgChartsEnterpriseModule'.`:"";return`${`Unable to use ${l} as ${a.length>1?"one of "+a.map((e=>convertToUserModuleName(e))).join(", "):convertToUserModuleName(a[0])} is not registered${o?" for gridId: "+i:""}. ${c} Check if you have registered the module:\n`}\n${(e=>{const t=e.map((e=>`import { ${convertToUserModuleName(e)} } from '${Fn[e]?"ag-grid-enterprise":"ag-grid-community"}';`));if(e.some((e=>"IntegratedCharts"===e||"Sparklines"===e))){const e="import { AgChartsEnterpriseModule } from 'ag-charts-enterprise';";t.push(e)}return`import { ModuleRegistry } from 'ag-grid-community'; \n${t.join(" \n")} \n\nModuleRegistry.registerModules([ ${e.map((e=>convertToUserModuleName(e,!0))).join(", ")} ]); \n\nFor more info see: ${P}/modules/`})(a)}`+(n?` \n\n${n}`:"")},missingChartsWithModule=e=>`${e} must be initialised with an AG Charts module. One of 'AgChartsCommunityModule' / 'AgChartsEnterpriseModule'.\n\nimport { AgChartsEnterpriseModule } from 'ag-charts-enterprise';\nimport { ModuleRegistry } from 'ag-grid-community';\nimport { ${e} } from 'ag-grid-enterprise';\n \nModuleRegistry.registerModules([${e}.with(AgChartsEnterpriseModule)]);\n `,xn={1:()=>"`rowData` must be an array",2:({nodeId:e})=>`Duplicate node id '${e}' detected from getRowId callback, this could cause issues in your grid.`,3:()=>"Calling gridApi.resetRowHeights() makes no sense when using Auto Row Height.",4:({id:e})=>`Could not find row id=${e}, data item was not found for this id`,5:({data:e})=>["Could not find data item as object was not found.",e," Consider using getRowId to help the Grid find matching row data"],6:()=>"'groupHideOpenParents' only works when specifying specific columns for 'colDef.showRowGroup'",7:()=>"Pivoting is not supported with aligned grids as it may produce different columns in each grid.",8:({key:e})=>`Unknown key for navigation ${e}`,9:({variable:e})=>`No value for ${e?.cssName}. This usually means that the grid has been initialised before styles have been loaded. The default value of ${e?.defaultValue} will be used and updated when styles load.`,10:({eventType:e})=>`As of v33, the '${e}' event is deprecated. Use the global 'modelUpdated' event to determine when row children have changed.`,11:()=>"No gridOptions provided to createGrid",12:({colKey:e})=>["column ",e," not found"],13:()=>"Could not find rowIndex, this means tasks are being executed on a rowNode that has been removed from the grid.",14:({groupPrefix:e})=>`Row IDs cannot start with ${e}, this is a reserved prefix for AG Grid's row grouping feature.`,15:({expression:e})=>["value should be either a string or a function",e],16:({expression:e,params:t,e:o})=>["Processing of the expression failed","Expression = ",e,"Params = ",t,"Exception = ",o],17:()=>"you need either field or valueSetter set on colDef for editing to work",18:()=>"alignedGrids contains an undefined option.",19:()=>"alignedGrids - No api found on the linked grid.",20:()=>'You may want to configure via a callback to avoid setup race conditions:\n "alignedGrids: () => [linkedGrid]"',21:()=>"pivoting is not supported with aligned grids. You can only use one of these features at a time in a grid.",22:({key:e})=>`${e} is an initial property and cannot be updated.`,23:()=>"The return of `getRowHeight` cannot be zero. If the intention is to hide rows, use a filter instead.",24:()=>"row height must be a number if not using standard row model",25:({id:e})=>["The getRowId callback must return a string. The ID ",e," is being cast to a string."],26:({fnName:e,preDestroyLink:t})=>`Grid API function ${e}() cannot be called as the grid has been destroyed.\n Either clear local references to the grid api, when it is destroyed, or check gridApi.isDestroyed() to avoid calling methods against a destroyed grid.\n To run logic when the grid is about to be destroyed use the gridPreDestroy event. See: ${t}`,27:({fnName:e,module:t})=>`API function '${e}' not registered to module '${t}'`,28:()=>"setRowCount cannot be used while using row grouping.",29:()=>"tried to call sizeColumnsToFit() but the grid is coming back with zero width, maybe the grid is not visible yet on the screen?",30:({toIndex:e})=>["tried to insert columns in invalid location, toIndex = ",e,"remember that you should not count the moving columns when calculating the new index"],31:()=>"infinite loop in resizeColumnSets",32:()=>"applyColumnState() - the state attribute should be an array, however an array was not found. Please provide an array of items (one for each col you want to change) for state.",33:()=>"stateItem.aggFunc must be a string. if using your own aggregation functions, register the functions first before using them in get/set state. This is because it is intended for the column state to be stored and retrieved as simple JSON.",34:({key:e})=>`the column type '${e}' is a default column type and cannot be overridden.`,35:()=>"Column type definitions 'columnTypes' with a 'type' attribute are not supported because a column type cannot refer to another column type. Only column definitions 'columnDefs' can use the 'type' attribute to refer to a column type.",36:({t:e})=>"colDef.type '"+e+"' does not correspond to defined gridOptions.columnTypes",37:()=>"Changing the column pinning status is not allowed with domLayout='print'",38:({iconName:e})=>`provided icon '${e}' needs to be a string or a function`,39:()=>"Applying column order broke a group where columns should be married together. Applying new order has been discarded.",40:({e,method:t})=>`${e}\n${(e=>`AG Grid: Unable to use the Clipboard API (navigator.clipboard.${e}()). The reason why it could not be used has been logged in the previous line. For this reason the grid has defaulted to using a workaround which doesn't perform as well. Either fix why Clipboard API is blocked, OR stop this message from appearing by setting grid property suppressClipboardApi=true (which will default the grid to using the workaround rather than the API.`)(t)}`,41:()=>"Browser did not allow document.execCommand('copy'). Ensure 'api.copySelectedRowsToClipboard() is invoked via a user event, i.e. button click, otherwise the browser will prevent it for security reasons.",42:()=>"Browser does not support document.execCommand('copy') for clipboard operations",43:({iconName:e})=>`As of v33, icon '${e}' is deprecated. Use the icon CSS name instead.`,44:()=>'Data type definition hierarchies (via the "extendsDataType" property) cannot contain circular references.',45:({parentCellDataType:e})=>`The data type definition ${e} does not exist.`,46:()=>'The "baseDataType" property of a data type definition must match that of its parent.',47:({cellDataType:e})=>`Missing data type definition - "${e}"`,48:({property:e})=>`Cell data type is "object" but no Value ${e} has been provided. Please either provide an object data type definition with a Value ${e}, or set "colDef.value${e}"`,49:({methodName:e})=>`Framework component is missing the method ${e}()`,50:({compName:e})=>`Could not find component ${e}, did you forget to configure this component?`,51:()=>"Export cancelled. Export is not allowed as per your configuration.",52:()=>"There is no `window` associated with the current `document`",53:()=>"unknown value type during csv conversion",54:()=>"Could not find document body, it is needed for drag and drop and context menu.",55:()=>"addRowDropZone - A container target needs to be provided",56:()=>"addRowDropZone - target already exists in the list of DropZones. Use `removeRowDropZone` before adding it again.",57:()=>"unable to show popup filter, filter instantiation failed",58:()=>"no values found for select cellEditor",59:()=>"cannot select pinned rows",60:()=>"cannot select node until it has finished loading",61:()=>"since version v32.2.0, rowNode.isFullWidthCell() has been deprecated. Instead check `rowNode.detail` followed by the user provided `isFullWidthRow` grid option.",62:({colId:e})=>`setFilterModel() - no column found for colId: ${e}`,63:({colId:e})=>`setFilterModel() - unable to fully apply model, filtering disabled for colId: ${e}`,64:({colId:e})=>`setFilterModel() - unable to fully apply model, unable to create filter for colId: ${e}`,65:()=>"filter missing setModel method, which is needed for setFilterModel",66:()=>"filter API missing getModel method, which is needed for getFilterModel",67:()=>"Filter is missing isFilterActive() method",68:()=>"Column Filter API methods have been disabled as Advanced Filters are enabled.",69:({guiFromFilter:e})=>`getGui method from filter returned ${e}; it should be a DOM element.`,70:({newFilter:e})=>"Grid option quickFilterText only supports string inputs, received: "+typeof e,71:()=>"debounceMs is ignored when apply button is present",72:({keys:e})=>["ignoring FilterOptionDef as it doesn't contain one of ",e],73:()=>"invalid FilterOptionDef supplied as it doesn't contain a 'displayKey'",74:()=>"no filter options for filter",75:()=>"Unknown button type specified",76:({filterModelType:e})=>['Unexpected type of filter "',e,'", it looks like the filter was configured with incorrect Filter Options'],77:()=>"Filter model is missing 'conditions'",78:()=>'Filter Model contains more conditions than "filterParams.maxNumConditions". Additional conditions have been ignored.',79:()=>'"filterParams.maxNumConditions" must be greater than or equal to zero.',80:()=>'"filterParams.numAlwaysVisibleConditions" must be greater than or equal to zero.',81:()=>'"filterParams.numAlwaysVisibleConditions" cannot be greater than "filterParams.maxNumConditions".',82:({param:e})=>`DateFilter ${e} is not a number`,83:()=>"DateFilter minValidYear should be <= maxValidYear",84:()=>"DateFilter minValidDate should be <= maxValidDate",85:()=>"DateFilter should not have both minValidDate and minValidYear parameters set at the same time! minValidYear will be ignored.",86:()=>"DateFilter should not have both maxValidDate and maxValidYear parameters set at the same time! maxValidYear will be ignored.",87:()=>"DateFilter parameter minValidDate should always be lower than or equal to parameter maxValidDate.",88:({index:e})=>`Invalid row index for ensureIndexVisible: ${e}`,89:()=>"A template was provided for Header Group Comp - templates are only supported for Header Comps (not groups)",90:()=>"datasource is missing getRows method",91:()=>"Filter is missing method doesFilterPass",92:()=>"AnimationFrameService called but animation frames are off",93:()=>"cannot add multiple ranges when `cellSelection.suppressMultiRanges = true`",94:({paginationPageSizeOption:e,pageSizeSet:t,pageSizesSet:o,pageSizeOptions:i})=>`'paginationPageSize=${e}'${t?"":" (default value)"}, but ${e} is not included in${o?"":" the default"} paginationPageSizeSelector=[${i?.join(", ")}].`,95:({paginationPageSizeOption:e,paginationPageSizeSelector:t})=>`Either set '${t}' to an array that includes ${e} or to 'false' to disable the page size selector.`,96:({id:e,data:t})=>["Duplicate ID",e,"found for pinned row with data",t,"When `getRowId` is defined, it must return unique IDs for all pinned rows. Use the `rowPinned` parameter."],97:({colId:e})=>`cellEditor for column ${e} is missing getGui() method`,98:()=>"popup cellEditor does not work with fullRowEdit - you cannot use them both - either turn off fullRowEdit, or stop using popup editors.",99:()=>"Since v32, `api.hideOverlay()` does not hide the loading overlay when `loading=true`. Set `loading=false` instead.",101:({propertyName:e,componentName:t,agGridDefaults:o,jsComps:i})=>{const s=[],n=_fuzzySuggestions({inputValue:t,allSuggestions:[...Object.keys(o??[]).filter((e=>!["agCellEditor","agGroupRowRenderer","agSortIndicator"].includes(e))),...Object.keys(i??[])],hideIrrelevant:!0,filterByPercentageOfBestMatch:.8}).values;return s.push(`Could not find '${t}' component. It was configured as "${e}: '${t}'" but it wasn't found in the list of registered components.\n`),n.length>0&&s.push(` Did you mean: [${n.slice(0,3)}]?\n`),s.push("If using a custom component check it has been registered correctly."),s},102:()=>"selectAll: 'filtered' only works when gridOptions.rowModelType='clientSide'",103:()=>"Invalid selection state. When using client-side row model, the state must conform to `string[]`.",104:({value:e,param:t})=>`Numeric value ${e} passed to ${t} param will be interpreted as ${e} seconds. If this is intentional use "${e}s" to silence this warning.`,105:({e})=>["chart rendering failed",e],106:()=>`Theming API and Legacy Themes are both used in the same page. A Theming API theme has been provided to the 'theme' grid option, but the file (ag-grid.css) is also included and will cause styling issues. Remove ag-grid.css from the page. See the migration guide: ${P}/theming-migration/`,107:({key:e,value:t})=>`Invalid value for theme param ${e} - ${t}`,108:({e})=>["chart update failed",e],109:({aggFuncOrString:e})=>`unrecognised aggregation function ${e}`,110:()=>"groupHideOpenParents only works when specifying specific columns for colDef.showRowGroup",111:()=>"Invalid selection state. When `groupSelects` is enabled, the state must conform to `IServerSideGroupSelectionState`.",113:()=>"Set Filter cannot initialise because you are using a row model that does not contain all rows in the browser. Either use a different filter type, or configure Set Filter such that you provide it with values",114:({component:e})=>`Could not find component with name of ${e}. Is it in Vue.components?`,116:()=>"Invalid selection state. The state must conform to `IServerSideSelectionState`.",117:()=>"selectAll must be of boolean type.",118:()=>"Infinite scrolling must be enabled in order to set the row count.",119:()=>"Unable to instantiate filter",120:()=>"MultiFloatingFilterComp expects MultiFilter as its parent",121:()=>"a column you are grouping or pivoting by has objects as values. If you want to group by complex objects then either a) use a colDef.keyCreator (see AG Grid docs) or b) to toString() on the object to return a key",122:()=>"could not find the document, document is empty",123:()=>"Advanced Filter is only supported with the Client-Side Row Model or Server-Side Row Model.",124:()=>"No active charts to update.",125:({chartId:e})=>`Unable to update chart. No active chart found with ID: ${e}.`,126:()=>"unable to restore chart as no chart model is provided",127:({allRange:e})=>`unable to create chart as ${e?"there are no columns in the grid":"no range is selected"}.`,128:({feature:e})=>`${e} is only available if using 'multiRow' selection mode.`,129:({feature:e,rowModel:t})=>`${e} is only available if using 'clientSide' or 'serverSide' rowModelType, you are using ${t}.`,130:()=>'cannot multi select unless selection mode is "multiRow"',132:()=>"Row selection features are not available unless `rowSelection` is enabled.",133:({iconName:e})=>`icon '${e}' function should return back a string or a dom object`,134:({iconName:e})=>`Did not find icon '${e}'`,135:()=>"Data type of the new value does not match the cell data type of the column",136:()=>"Unable to update chart as the 'type' is missing. It must be either 'rangeChartUpdate', 'pivotChartUpdate', or 'crossFilterChartUpdate'.",137:({type:e,currentChartType:t})=>`Unable to update chart as a '${e}' update type is not permitted on a ${t}.`,138:({chartType:e})=>`invalid chart type supplied: ${e}`,139:({customThemeName:e})=>`a custom chart theme with the name ${e} has been supplied but not added to the 'chartThemes' list`,140:({name:e})=>`no stock theme exists with the name '${e}' and no custom chart theme with that name was supplied to 'customChartThemes'`,141:()=>"cross filtering with row grouping is not supported.",142:()=>"cross filtering is only supported in the client side row model.",143:({panel:e})=>`'${e}' is not a valid Chart Tool Panel name`,144:({type:e})=>`Invalid charts data panel group name supplied: '${e}'`,145:({group:e})=>`As of v32, only one charts customize panel group can be expanded at a time. '${e}' will not be expanded.`,146:({comp:e})=>`Unable to instantiate component '${e}' as its module hasn't been loaded. Add 'ValidationModule' to see which module is required.`,147:({group:e})=>`Invalid charts customize panel group name supplied: '${e}'`,148:({group:e})=>`invalid chartGroupsDef config '${e}'`,149:({group:e,chartType:t})=>`invalid chartGroupsDef config '${e}.${t}'`,150:()=>"'seriesChartTypes' are required when the 'customCombo' chart type is specified.",151:({chartType:e})=>`invalid chartType '${e}' supplied in 'seriesChartTypes', converting to 'line' instead.`,152:({colId:e})=>`no 'seriesChartType' found for colId = '${e}', defaulting to 'line'.`,153:({chartDataType:e})=>`unexpected chartDataType value '${e}' supplied, instead use 'category', 'series' or 'excluded'`,154:({colId:e})=>`cross filtering requires a 'agSetColumnFilter' or 'agMultiColumnFilter' to be defined on the column with id: ${e}`,155:({option:e})=>`'${e}' is not a valid Chart Toolbar Option`,156:({panel:e})=>`Invalid panel in chartToolPanelsDef.panels: '${e}'`,157:({unrecognisedGroupIds:e})=>["unable to find group(s) for supplied groupIds:",e],158:()=>"can not expand a column item that does not represent a column group header",159:()=>"Invalid params supplied to createExcelFileForExcel() - `ExcelExportParams.data` is empty.",160:()=>"Export cancelled. Export is not allowed as per your configuration.",161:()=>"The Excel Exporter is currently on Multi Sheet mode. End that operation by calling 'api.getMultipleSheetAsExcel()' or 'api.exportMultipleSheetsAsExcel()'",162:({id:e,dataType:t})=>`Unrecognized data type for excel export [${e}.dataType=${t}]`,163:({featureName:e})=>`Excel table export does not work with ${e}. The exported Excel file will not contain any Excel tables.\n Please turn off ${e} to enable Excel table exports.`,164:()=>"Unable to add data table to Excel sheet: A table already exists.",165:()=>"Unable to add data table to Excel sheet: Missing required parameters.",166:({unrecognisedGroupIds:e})=>["unable to find groups for these supplied groupIds:",e],167:({unrecognisedColIds:e})=>["unable to find columns for these supplied colIds:",e],168:()=>"detailCellRendererParams.template should be function or string",169:()=>'Reference to eDetailGrid was missing from the details template. Please add data-ref="eDetailGrid" to the template.',170:({providedStrategy:e})=>`invalid cellRendererParams.refreshStrategy = ${e} supplied, defaulting to refreshStrategy = 'rows'.`,171:()=>"could not find detail grid options for master detail, please set gridOptions.detailCellRendererParams.detailGridOptions",172:()=>"could not find getDetailRowData for master / detail, please set gridOptions.detailCellRendererParams.getDetailRowData",173:({group:e})=>`invalid chartGroupsDef config '${e}'`,174:({group:e,chartType:t})=>`invalid chartGroupsDef config '${e}.${t}'`,175:({menuTabName:e,itemsToConsider:t})=>[`Trying to render an invalid menu item '${e}'. Check that your 'menuTabs' contains one of `,t],176:({key:e})=>`unknown menu item type ${e}`,177:()=>"valid values for cellSelection.handle.direction are 'x', 'y' and 'xy'. Default to 'xy'.",178:({colId:e})=>`column ${e} is not visible`,179:()=>"totalValueGetter should be either a function or a string (expression)",180:()=>"agRichSelectCellEditor requires cellEditorParams.values to be set",181:()=>"agRichSelectCellEditor cannot have `multiSelect` and `allowTyping` set to `true`. AllowTyping has been turned off.",182:()=>'you cannot mix groupDisplayType = "multipleColumns" with treeData, only one column can be used to display groups when doing tree data',183:()=>"Group Column Filter only works on group columns. Please use a different filter.",184:({parentGroupData:e,childNodeData:t})=>["duplicate group keys for row data, keys should be unique",[e,t]],185:({data:e})=>["getDataPath() should not return an empty path",[e]],186:({rowId:e,rowData:t,duplicateRowsData:o})=>["duplicate group keys for row data, keys should be unique",e,t,...o??[]],187:({rowId:e,firstData:t,secondData:o})=>[`Duplicate node id ${e}. Row IDs are provided via the getRowId() callback. Please modify the getRowId() callback code to provide unique row id values.`,"first instance",t,"second instance",o],188:()=>"getRowId callback must be provided for Server Side Row Model selection to work correctly.",189:({startRow:e})=>`invalid value ${e} for startRow, the value should be >= 0`,190:({rowGroupId:e,data:t})=>["null and undefined values are not allowed for server side row model keys",e?`column = ${e}`:"","data is ",t],194:({method:e})=>`calling gridApi.${e}() is only possible when using rowModelType=\`clientSide\`.`,195:({justCurrentPage:e})=>`selecting just ${e?"current page":"filtered"} only works when gridOptions.rowModelType='clientSide'`,196:({key:e})=>`Provided ids must be of string type. Invalid id provided: ${e}`,197:()=>"`toggledNodes` must be an array of string ids.",199:()=>"getSelectedNodes and getSelectedRows functions cannot be used with select all functionality with the server-side row model. Use `api.getServerSideSelectionState()` instead.",200:missingModule,201:({rowModelType:e})=>`Could not find row model for rowModelType = ${e}`,202:()=>"`getSelectedNodes` and `getSelectedRows` functions cannot be used with `groupSelectsChildren` and the server-side row model. Use `api.getServerSideSelectionState()` instead.",203:()=>"Server Side Row Model does not support Dynamic Row Height and Cache Purging. Either a) remove getRowHeight() callback or b) remove maxBlocksInCache property. Purging has been disabled.",204:()=>"Server Side Row Model does not support Auto Row Height and Cache Purging. Either a) remove colDef.autoHeight or b) remove maxBlocksInCache property. Purging has been disabled.",205:({duplicateIdText:e})=>`Unable to display rows as duplicate row ids (${e}) were returned by the getRowId callback. Please modify the getRowId callback to provide unique ids.`,206:()=>"getRowId callback must be implemented for transactions to work. Transaction was ignored.",207:()=>'The Set Filter Parameter "defaultToNothingSelected" value was ignored because it does not work when "excelMode" is used.',208:()=>"Set Filter Value Formatter must return string values. Please ensure the Set Filter Value Formatter returns string values for complex objects.",209:()=>`Set Filter Key Creator is returning null for provided values and provided values are primitives. Please provide complex objects. See ${P}/filter-set-filter-list/#filter-value-types`,210:()=>"Set Filter has a Key Creator, but provided values are primitives. Did you mean to provide complex objects?",211:()=>"property treeList=true for Set Filter params, but you did not provide a treeListPathGetter or values of type Date.",212:()=>"please review all your toolPanel components, it seems like at least one of them doesn't have an id",213:()=>"Advanced Filter does not work with Filters Tool Panel. Filters Tool Panel has been disabled.",214:({key:e})=>`unable to lookup Tool Panel as invalid key supplied: ${e}`,215:({key:e,defaultByKey:t})=>`the key ${e} is not a valid key for specifying a tool panel, valid keys are: ${Object.keys(t??{}).join(",")}`,216:({name:e})=>`Missing component for '${e}'`,217:({invalidColIds:e})=>["unable to find grid columns for the supplied colDef(s):",e],218:({property:e,defaultOffset:t})=>`${e} must be a number, the value you provided is not a valid number. Using the default of ${t}px.`,219:({property:e})=>`Property ${e} does not exist on the target object.`,220:({lineDash:e})=>`'${e}' is not a valid 'lineDash' option.`,221:()=>"agAggregationComponent should only be used with the client and server side row model.",222:()=>"agFilteredRowCountComponent should only be used with the client side row model.",223:()=>"agSelectedRowCountComponent should only be used with the client and server side row model.",224:()=>"agTotalAndFilteredRowCountComponent should only be used with the client side row model.",225:()=>"agTotalRowCountComponent should only be used with the client side row model.",226:()=>"viewport is missing init method.",227:()=>"menu item icon must be DOM node or string",228:({menuItemOrString:e})=>`unrecognised menu item ${e}`,229:({index:e})=>["invalid row index for ensureIndexVisible: ",e],230:()=>"detailCellRendererParams.template is not supported by AG Grid React. To change the template, provide a Custom Detail Cell Renderer. See https://www.ag-grid.com/react-data-grid/master-detail-custom-detail/",231:()=>"As of v32, using custom components with `reactiveCustomComponents = false` is deprecated.",232:()=>"Using both rowData and v-model. rowData will be ignored.",233:({methodName:e})=>`Framework component is missing the method ${e}()`,234:()=>'Group Column Filter does not work with the colDef property "field". This property will be ignored.',235:()=>'Group Column Filter does not work with the colDef property "filterValueGetter". This property will be ignored.',236:()=>'Group Column Filter does not work with the colDef property "filterParams". This property will be ignored.',237:()=>"Group Column Filter does not work with Tree Data enabled. Please disable Tree Data, or use a different filter.",238:()=>"setRowCount can only accept a positive row count.",239:()=>'Theming API and CSS File Themes are both used in the same page. In v33 we released the Theming API as the new default method of styling the grid. See the migration docs https://www.ag-grid.com/react-data-grid/theming-migration/. Because no value was provided to the `theme` grid option it defaulted to themeQuartz. But the file (ag-grid.css) is also included and will cause styling issues. Either pass the string "legacy" to the theme grid option to use v32 style themes, or remove ag-grid.css from the page to use Theming API.',240:({theme:e})=>`theme grid option must be a Theming API theme object or the string "legacy", received: ${e}`,243:()=>"Failed to deserialize state - each provided state object must be an object.",244:()=>"Failed to deserialize state - `selectAllChildren` must be a boolean value or undefined.",245:()=>"Failed to deserialize state - `toggledNodes` must be an array.",246:()=>"Failed to deserialize state - Every `toggledNode` requires an associated string id.",247:()=>"Row selection state could not be parsed due to invalid data. Ensure all child state has toggledNodes or does not conform with the parent rule. \nPlease rebuild the selection state and reapply it.",248:()=>"SetFloatingFilter expects SetFilter as its parent",249:()=>"Must supply a Value Formatter in Set Filter params when using a Key Creator",250:()=>"Must supply a Key Creator in Set Filter params when `treeList = true` on a group column, and Tree Data or Row Grouping is enabled.",251:({chartType:e})=>`AG Grid: Unable to create chart as an invalid chartType = '${e}' was supplied.`,252:()=>"cannot get grid to draw rows when it is in the middle of drawing rows. \nYour code probably called a grid API method while the grid was in the render stage. \nTo overcome this, put the API call into a timeout, e.g. instead of api.redrawRows(), call setTimeout(function() { api.redrawRows(); }, 0). \nTo see what part of your code that caused the refresh check this stacktrace.",253:({version:e})=>["Illegal version string: ",e],254:()=>"Cannot create chart: no chart themes available.",255:({point:e})=>`Lone surrogate U+${e?.toString(16).toUpperCase()} is not a scalar value`,256:()=>"Unable to initialise. See validation error, or load ValidationModule if missing.",257:()=>missingChartsWithModule("IntegratedChartsModule"),258:()=>missingChartsWithModule("SparklinesModule"),259:({part:e})=>`the argument to theme.withPart must be a Theming API part object, received: ${e}`,260:({propName:e,compName:t,gridScoped:o,gridId:i,rowModelType:s})=>missingModule({reasonOrId:`AG Grid '${e}' component: ${t}`,moduleName:Vs[t],gridId:i,gridScoped:o,rowModelType:s}),261:()=>"As of v33, `column.isHovered()` is deprecated. Use `api.isColumnHovered(column)` instead.",262:()=>'As of v33, icon key "smallDown" is deprecated. Use "advancedFilterBuilderSelect" for Advanced Filter Builder dropdown, "selectOpen" for Select cell editor and dropdowns (e.g. Integrated Charts menu), "richSelectOpen" for Rich Select cell editor.',263:()=>'As of v33, icon key "smallLeft" is deprecated. Use "panelDelimiterRtl" for Row Group Panel / Pivot Panel, "subMenuOpenRtl" for sub-menus.',264:()=>'As of v33, icon key "smallRight" is deprecated. Use "panelDelimiter" for Row Group Panel / Pivot Panel, "subMenuOpen" for sub-menus.',265:({colId:e})=>`Unable to infer chart data type for column '${e}' if first data entry is null. Please specify "chartDataType", or a "cellDataType" in the column definition. For more information, see ${P}/integrated-charts-range-chart#coldefchartdatatype .`,266:()=>'As of v33.1, using "keyCreator" with the Rich Select Editor has been deprecated. It now requires the "formatValue" callback to convert complex data to strings.',267:()=>"Detail grids can not use a different theme to the master grid, the `theme` detail grid option will be ignored.",268:()=>"Transactions aren't supported with tree data when using treeDataChildrenField",269:()=>"When `masterSelects: 'detail'`, detail grids must be configured with multi-row selection",270:({id:e,parentId:t})=>`Cycle detected for row with id='${e}' and parent id='${t}'. Resetting the parent for row with id='${e}' and showing it as a root-level node.`,271:({id:e,parentId:t})=>`Parent row not found for row with id='${e}' and parent id='${t}'. Showing row with id='${e}' as a root-level node.`,272:()=>"No AG Grid modules are registered! It is recommended to start with all Community features via the AllCommunityModule:\n \n import { ModuleRegistry, AllCommunityModule } from 'ag-grid-community';\n \n ModuleRegistry.registerModules([ AllCommunityModule ]);\n ",273:({providedId:e,usedId:t})=>`Provided column id '${e}' was already in use, ensure all column and group ids are unique. Using '${t}' instead.`,274:({prop:e})=>{let t=`Since v33, ${e} has been deprecated.`;switch(e){case"maxComponentCreationTimeMs":t+=" This property is no longer required and so will be removed in a future version.";break;case"setGridApi":t+=" This method is not called by AG Grid. To access the GridApi see: https://ag-grid.com/react-data-grid/grid-interface/#grid-api ";break;case"children":t+=" For multiple versions AgGridReact does not support children."}return t},275:missingRowModelTypeError,276:()=>"Row Numbers Row Resizer cannot be used when Grid Columns have `autoHeight` enabled.",277:({colId:e})=>`'enableFilterHandlers' is set to true, but column '${e}' does not have 'filter.doesFilterPass' or 'filter.handler' set.`,278:({colId:e})=>`Unable to create filter handler for column '${e}'`,279:e=>{},280:({colId:e})=>`'name' must be provided for custom filter components for column '${e}`,281:({colId:e})=>`Filter for column '${e}' does not have 'filterParams.buttons', but the new Filters Tool Panel has buttons configured. Either configure buttons for the filter, or disable buttons on the Filters Tool Panel.`,282:()=>"New filter tool panel requires `enableFilterHandlers: true`.",283:()=>"As of v34, use the same method on the filter handler (`api.getColumnFilterHandler()`) instead.",284:()=>"As of v34, filters are active when they have a model. Use `api.getColumnFilterModel()` instead.",285:()=>"As of v34, use (`api.getColumnFilterModel()`) instead.",286:()=>"As of v34, use (`api.setColumnFilterModel()`) instead.",287:()=>"`api.doFilterAction()` requires `enableFilterHandlers = true",288:()=>"`api.getColumnFilterModel(key, true)` requires `enableFilterHandlers = true",289:({rowModelType:e})=>`Row Model '${e}' is not supported with Batch Editing`,290:({rowIndex:e,rowPinned:t})=>`Row with index '${e}' and pinned state '${t}' not found`};var Mn={1:"Charting Aggregation",2:"pivotResultFields",3:"setTooltip"};var Tn=1,An=class{create(e,t,o,s,n,r){const l=a.applyGlobalGridOptions(t),d=l.gridId??String(Tn++),c=this.getRegisteredModules(n,d,l.rowModelType),h=this.createBeansList(l.rowModelType,c,d),u=this.createProvidedBeans(e,l,n);if(!h)return;const g={providedBeanInstances:u,beanClasses:h,gridId:d,beanInitComparator:gridBeanInitComparator,beanDestroyComparator:gridBeanDestroyComparator,derivedBeans:[createGridApi],destroyCallback:r},p=new class extends class{constructor(e){this.beans={},this.createdBeans=[],this.destroyed=!1,e&&e.beanClasses&&(this.beanDestroyComparator=e.beanDestroyComparator,this.init(e))}init(e){for(const t of Object.keys(e.providedBeanInstances))this.beans[t]=e.providedBeanInstances[t];e.beanClasses.forEach((e=>{const t=new e;t.beanName?this.beans[t.beanName]=t:i.error(`Bean ${e.name} is missing beanName`),this.createdBeans.push(t)})),e.derivedBeans?.forEach((e=>{const{beanName:t,bean:o}=e(this);this.beans[t]=o,this.createdBeans.push(o)})),e.beanInitComparator&&this.createdBeans.sort(e.beanInitComparator),this.initBeans(this.createdBeans)}getBeanInstances(){return Object.values(this.beans)}createBean(e,t){return this.initBeans([e],t),e}initBeans(e,t){e.forEach((e=>{e.preWireBeans?.(this.beans),e.wireBeans?.(this.beans)})),e.forEach((e=>e.preConstruct?.())),t&&e.forEach(t),e.forEach((e=>e.postConstruct?.()))}getBeans(){return this.beans}getBean(e){return this.beans[e]}destroy(){if(this.destroyed)return;this.destroyed=!0;const e=this.getBeanInstances();this.beanDestroyComparator&&e.sort(this.beanDestroyComparator),this.destroyBeans(e),this.beans={},this.createdBeans=[]}destroyBean(e){e?.destroy?.()}destroyBeans(e){if(e)for(let t=0;t<e.length;t++)this.destroyBean(e[t]);return[]}isDestroyed(){return this.destroyed}}{init(e){this.gridId=e.gridId,this.beans.context=this,this.destroyCallback=e.destroyCallback,super.init(e)}destroy(){super.destroy(),function _unRegisterGridModules(e){delete we[e]}(this.gridId),this.destroyCallback?.()}getGridId(){return this.gridId}}(g);return this.registerModuleFeatures(p,c),o(p),p.getBean("syncSvc").start(),s&&s(p),p.getBean("gridApi")}getRegisteredModules(e,t,o){return _registerModule(Rn,void 0,!0),e?.modules?.forEach((e=>_registerModule(e,t))),function _getRegisteredModules(e,t){const o=we[e]??{};return[...Object.values(Ce.all??{}),...Object.values(o.all??{}),...Object.values(Ce[t]??{}),...Object.values(o[t]??{})]}(t,getDefaultRowModelType(o))}registerModuleFeatures(e,t){const o=e.getBean("registry"),i=e.getBean("apiFunctionSvc");t.forEach((e=>{o.registerModule(e);const t=e.apiFunctions;if(t){Object.keys(t).forEach((e=>{i?.addFunction(e,t[e])}))}}))}createProvidedBeans(e,t,o){let i=o?o.frameworkOverrides:null;_missing(i)&&(i=new Jo);const s={gridOptions:t,eGridDiv:e,globalListener:o?o.globalListener:null,globalSyncListener:o?o.globalSyncListener:null,frameworkOverrides:i};return o&&o.providedBeanInstances&&Object.assign(s,o.providedBeanInstances),s}createBeansList(e,t,o){const i={clientSide:"ClientSideRowModel",infinite:"InfiniteRowModel",serverSide:"ServerSideRowModel",viewport:"ViewportRowModel"},s=getDefaultRowModelType(e),n=i[s];if(!n)return void _logPreInitErr(201,{rowModelType:s},`Unknown rowModelType ${s}.`);if(!function _hasUserRegistered(){return ve}())return void _logPreInitErr(272,void 0,"No AG Grid modules are registered! It is recommended to start with all Community features via the AllCommunityModule:\n \n import { ModuleRegistry, AllCommunityModule } from 'ag-grid-community';\n \n ModuleRegistry.registerModules([ AllCommunityModule ]);\n ");if(!e){const e=Object.entries(i).filter((([e,t])=>_isModuleRegistered(t,o,e)));if(1==e.length){const[t,o]=e[0];if(t!==s){const e={moduleName:o,rowModelType:t};return void _logPreInitErr(275,e,missingRowModelTypeError(e))}}}if(!_isModuleRegistered(n,o,s))return void _logPreInitErr(200,{reasonOrId:`rowModelType = '${s}'`,moduleName:n,gridScoped:_areModulesGridScoped(),gridId:o,rowModelType:s},`Missing module ${n}Module for rowModelType ${s}.`);const r=new Set;return t.forEach((e=>e.beans?.forEach((e=>r.add(e))))),Array.from(r)}};function getDefaultRowModelType(e){return e??"clientSide"}function _getClientSideRowModel(e){const t=e.rowModel;return"clientSide"===t.getType()?t:void 0}function _getInfiniteRowModel(e){const t=e.rowModel;return"infinite"===t.getType()?t:void 0}function _getServerSideRowModel(e){const t=e.rowModel;return"serverSide"===t.getType()?t:void 0}function _convertColumnGroupState(e){const t=[];return e.forEach((({groupId:e,open:o})=>{o&&t.push(e)})),t.length?{openColumnGroupIds:t}:void 0}var In,kn=class{wrap(e,t,o,i){const s=this.createWrapper(e,i);return t?.forEach((e=>{this.createMethod(s,e,!0)})),o?.forEach((e=>{this.createMethod(s,e,!1)})),s}createMethod(e,t,o){e.addMethod(t,this.createMethodProxy(e,t,o))}createMethodProxy(e,t,o){return function(){return e.hasMethod(t)?e.callMethod(t,arguments):(o&&_warn(49,{methodName:t}),null)}}},Ln={tag:"div",cls:"ag-tooltip"},Gn=!1,Nn=class extends I{constructor(e,t){super(),this.tooltipCtrl=e,this.getTooltipValue=t,this.interactionEnabled=!1,this.isInteractingWithTooltip=!1,this.state=0,this.tooltipInstanceCount=0,this.tooltipMouseTrack=!1}wireBeans(e){this.popupSvc=e.popupSvc,this.userCompFactory=e.userCompFactory}postConstruct(){this.gos.get("tooltipInteraction")&&(this.interactionEnabled=!0),this.tooltipTrigger=this.getTooltipTrigger(),this.tooltipMouseTrack=this.gos.get("tooltipMouseTrack");const e=this.tooltipCtrl.getGui();0===this.tooltipTrigger&&this.addManagedListeners(e,{mouseenter:this.onMouseEnter.bind(this),mouseleave:this.onMouseLeave.bind(this)}),1===this.tooltipTrigger&&this.addManagedListeners(e,{focusin:this.onFocusIn.bind(this),focusout:this.onFocusOut.bind(this)}),this.addManagedListeners(e,{mousemove:this.onMouseMove.bind(this)}),this.interactionEnabled||this.addManagedListeners(e,{mousedown:this.onMouseDown.bind(this),keydown:this.onKeyDown.bind(this)})}getGridOptionsTooltipDelay(e){const t=this.gos.get(e);return Math.max(200,t)}getTooltipDelay(e){return"show"===e?this.tooltipCtrl.getTooltipShowDelayOverride?.()??this.getGridOptionsTooltipDelay("tooltipShowDelay"):this.tooltipCtrl.getTooltipHideDelayOverride?.()??this.getGridOptionsTooltipDelay("tooltipHideDelay")}destroy(){this.setToDoNothing(),super.destroy()}getTooltipTrigger(){const e=this.gos.get("tooltipTrigger");return e&&"hover"!==e?1:0}onMouseEnter(e){this.interactionEnabled&&this.interactiveTooltipTimeoutId&&(this.unlockService(),this.startHideTimeout()),_isIOSUserAgent()||(Gn?this.showTooltipTimeoutId=window.setTimeout((()=>{this.prepareToShowTooltip(e)}),100):this.prepareToShowTooltip(e))}onMouseMove(e){this.lastMouseEvent&&(this.lastMouseEvent=e),this.tooltipMouseTrack&&2===this.state&&this.tooltipComp&&this.positionTooltip()}onMouseDown(){this.setToDoNothing()}onMouseLeave(){this.interactionEnabled?this.lockService():this.setToDoNothing()}onFocusIn(){this.prepareToShowTooltip()}onFocusOut(e){const t=e.relatedTarget,o=this.tooltipCtrl.getGui(),i=this.tooltipComp?.getGui();this.isInteractingWithTooltip||o.contains(t)||this.interactionEnabled&&i?.contains(t)||this.setToDoNothing()}onKeyDown(){this.isInteractingWithTooltip&&(this.isInteractingWithTooltip=!1),this.setToDoNothing()}prepareToShowTooltip(e){if(0!=this.state||Gn)return;let t=0;e&&(t=this.isLastTooltipHiddenRecently()?200:this.getTooltipDelay("show")),this.lastMouseEvent=e||null,this.showTooltipTimeoutId=window.setTimeout(this.showTooltip.bind(this),t),this.state=1}isLastTooltipHiddenRecently(){return Date.now()-In<1e3}setToDoNothing(e){e||2!==this.state||this.hideTooltip(),this.onBodyScrollEventCallback&&(this.onBodyScrollEventCallback(),this.onBodyScrollEventCallback=void 0),this.onColumnMovedEventCallback&&(this.onColumnMovedEventCallback(),this.onColumnMovedEventCallback=void 0),this.onDocumentKeyDownCallback&&(this.onDocumentKeyDownCallback(),this.onDocumentKeyDownCallback=void 0),this.clearTimeouts(),this.state=0,this.lastMouseEvent=null}showTooltip(){const e=this.getTooltipValue(),t=this.tooltipCtrl;if(!_exists(e)||t.shouldDisplayTooltip&&!t.shouldDisplayTooltip())return void this.setToDoNothing();const o=t.getRowNode?.(),i=_addGridCommonParams(this.gos,{location:t.getLocation?.()??"UNKNOWN",colDef:t.getColDef?.(),column:t.getColumn?.(),rowIndex:t.getRowIndex?.(),node:o,data:o?.data,value:e,valueFormatted:t.getValueFormatted?.(),hideTooltipCallback:()=>this.hideTooltip(!0),...t.getAdditionalParams?.()??{}});this.state=2,this.tooltipInstanceCount++;const s=this.newTooltipComponentCallback.bind(this,this.tooltipInstanceCount),n=function _getTooltipCompDetails(e,t){return e.getCompDetails(t.colDef,le,"agTooltipComponent",t,!0)}(this.userCompFactory,i);n?.newAgStackInstance().then(s)}hideTooltip(e){!e&&this.isInteractingWithTooltip||(this.tooltipComp&&(this.destroyTooltipComp(),In=Date.now()),this.eventSvc.dispatchEvent({type:"tooltipHide",parentGui:this.tooltipCtrl.getGui()}),e&&(this.isInteractingWithTooltip=!1),this.setToDoNothing(!0))}newTooltipComponentCallback(e,t){if(2!==this.state||this.tooltipInstanceCount!==e)return void this.destroyBean(t);const o=t.getGui();this.tooltipComp=t,o.classList.contains("ag-tooltip")||o.classList.add("ag-tooltip-custom"),0===this.tooltipTrigger&&o.classList.add("ag-tooltip-animate"),this.interactionEnabled&&o.classList.add("ag-tooltip-interactive");const i=this.getLocaleTextFunc(),s=this.popupSvc?.addPopup({eChild:o,ariaLabel:i("ariaLabelTooltip","Tooltip")});if(s&&(this.tooltipPopupDestroyFunc=s.hideFunc),this.positionTooltip(),1===this.tooltipTrigger){const listener=()=>this.setToDoNothing();[this.onBodyScrollEventCallback,this.onColumnMovedEventCallback]=this.addManagedEventListeners({bodyScroll:listener,columnMoved:listener})}this.interactionEnabled&&([this.tooltipMouseEnterListener,this.tooltipMouseLeaveListener]=this.addManagedElementListeners(o,{mouseenter:this.onTooltipMouseEnter.bind(this),mouseleave:this.onTooltipMouseLeave.bind(this)}),[this.onDocumentKeyDownCallback]=this.addManagedElementListeners(_getDocument(this.beans),{keydown:e=>{o.contains(e?.target)||this.onKeyDown()}}),1===this.tooltipTrigger&&([this.tooltipFocusInListener,this.tooltipFocusOutListener]=this.addManagedElementListeners(o,{focusin:this.onTooltipFocusIn.bind(this),focusout:this.onTooltipFocusOut.bind(this)}))),this.eventSvc.dispatchEvent({type:"tooltipShow",tooltipGui:o,parentGui:this.tooltipCtrl.getGui()}),this.startHideTimeout()}onTooltipMouseEnter(){this.isInteractingWithTooltip=!0,this.unlockService()}onTooltipMouseLeave(){this.isTooltipFocused()||(this.isInteractingWithTooltip=!1,this.lockService())}onTooltipFocusIn(){this.isInteractingWithTooltip=!0}isTooltipFocused(){const e=this.tooltipComp?.getGui(),t=_getActiveDomElement(this.beans);return!!e&&e.contains(t)}onTooltipFocusOut(e){const t=this.tooltipCtrl.getGui();this.isTooltipFocused()||(this.isInteractingWithTooltip=!1,t.contains(e.relatedTarget)?this.startHideTimeout():this.hideTooltip())}positionTooltip(){const e={type:"tooltip",ePopup:this.tooltipComp.getGui(),nudgeY:18,skipObserver:this.tooltipMouseTrack};this.lastMouseEvent?this.popupSvc?.positionPopupUnderMouseEvent({...e,mouseEvent:this.lastMouseEvent}):this.popupSvc?.positionPopupByComponent({...e,eventSource:this.tooltipCtrl.getGui(),position:"under",keepWithinBounds:!0,nudgeY:5})}destroyTooltipComp(){this.tooltipComp.getGui().classList.add("ag-tooltip-hiding");const e=this.tooltipPopupDestroyFunc,t=this.tooltipComp,o=0===this.tooltipTrigger?1e3:0;window.setTimeout((()=>{e(),this.destroyBean(t)}),o),this.clearTooltipListeners(),this.tooltipPopupDestroyFunc=void 0,this.tooltipComp=void 0}clearTooltipListeners(){[this.tooltipMouseEnterListener,this.tooltipMouseLeaveListener,this.tooltipFocusInListener,this.tooltipFocusOutListener].forEach((e=>{e&&e()})),this.tooltipMouseEnterListener=this.tooltipMouseLeaveListener=this.tooltipFocusInListener=this.tooltipFocusOutListener=null}lockService(){Gn=!0,this.interactiveTooltipTimeoutId=window.setTimeout((()=>{this.unlockService(),this.setToDoNothing()}),100)}unlockService(){Gn=!1,this.clearInteractiveTimeout()}startHideTimeout(){this.clearHideTimeout(),this.hideTooltipTimeoutId=window.setTimeout(this.hideTooltip.bind(this),this.getTooltipDelay("hide"))}clearShowTimeout(){this.showTooltipTimeoutId&&(window.clearTimeout(this.showTooltipTimeoutId),this.showTooltipTimeoutId=void 0)}clearHideTimeout(){this.hideTooltipTimeoutId&&(window.clearTimeout(this.hideTooltipTimeoutId),this.hideTooltipTimeoutId=void 0)}clearInteractiveTimeout(){this.interactiveTooltipTimeoutId&&(window.clearTimeout(this.interactiveTooltipTimeoutId),this.interactiveTooltipTimeoutId=void 0)}clearTimeouts(){this.clearShowTimeout(),this.clearHideTimeout(),this.clearInteractiveTimeout()}};function _isShowTooltipWhenTruncated(e){return"whenTruncated"===e.get("tooltipShowMode")}var _n=class extends I{getFileName(e){const t=this.getDefaultFileExtension();return null!=e&&e.length||(e=this.getDefaultFileName()),-1===e.indexOf(".")?`${e}.${t}`:e}getData(e){const t=this.createSerializingSession(e);return this.beans.gridSerializer.serialize(t,e)}getDefaultFileName(){return`export.${this.getDefaultFileExtension()}`}};var On={enableBrowserTooltips:!0,tooltipTrigger:!0,tooltipMouseTrack:!0,tooltipShowMode:!0,tooltipInteraction:!0,defaultColGroupDef:!0,suppressAutoSize:!0,skipHeaderOnAutoSize:!0,autoSizeStrategy:!0,components:!0,stopEditingWhenCellsLoseFocus:!0,undoRedoCellEditing:!0,undoRedoCellEditingLimit:!0,excelStyles:!0,cacheQuickFilter:!0,customChartThemes:!0,chartThemeOverrides:!0,chartToolPanelsDef:!0,loadingCellRendererSelector:!0,localeText:!0,keepDetailRows:!0,keepDetailRowsCount:!0,detailRowHeight:!0,detailRowAutoHeight:!0,tabIndex:!0,valueCache:!0,valueCacheNeverExpires:!0,enableCellExpressions:!0,suppressTouch:!0,suppressBrowserResizeObserver:!0,suppressPropertyNamesCheck:!0,debug:!0,dragAndDropImageComponent:!0,loadingOverlayComponent:!0,suppressLoadingOverlay:!0,noRowsOverlayComponent:!0,paginationPageSizeSelector:!0,paginateChildRows:!0,pivotPanelShow:!0,pivotSuppressAutoColumn:!0,suppressExpandablePivotGroups:!0,aggFuncs:!0,allowShowChangeAfterFilter:!0,ensureDomOrder:!0,enableRtl:!0,suppressColumnVirtualisation:!0,suppressMaxRenderedRowRestriction:!0,suppressRowVirtualisation:!0,rowDragText:!0,groupLockGroupColumns:!0,suppressGroupRowsSticky:!0,rowModelType:!0,cacheOverflowSize:!0,infiniteInitialRowCount:!0,serverSideInitialRowCount:!0,maxBlocksInCache:!0,maxConcurrentDatasourceRequests:!0,blockLoadDebounceMillis:!0,serverSideOnlyRefreshFilteredGroups:!0,serverSidePivotResultFieldSeparator:!0,viewportRowModelPageSize:!0,viewportRowModelBufferSize:!0,debounceVerticalScrollbar:!0,suppressAnimationFrame:!0,suppressPreventDefaultOnMouseWheel:!0,scrollbarWidth:!0,icons:!0,suppressRowTransform:!0,gridId:!0,enableGroupEdit:!0,initialState:!0,processUnpinnedColumns:!0,createChartContainer:!0,getLocaleText:!0,getRowId:!0,reactiveCustomComponents:!0,renderingMode:!0,columnMenu:!0,suppressSetFilterByDefault:!0,getDataPath:!0,enableCellSpan:!0,enableFilterHandlers:!0,filterHandlers:!0},Hn="clientSide",Vn="serverSide",Bn="infinite",zn={onGroupExpandedOrCollapsed:[Hn],refreshClientSideRowModel:[Hn],isRowDataEmpty:[Hn],forEachLeafNode:[Hn],forEachNodeAfterFilter:[Hn],forEachNodeAfterFilterAndSort:[Hn],resetRowHeights:[Hn],applyTransaction:[Hn],applyTransactionAsync:[Hn],flushAsyncTransactions:[Hn],getBestCostNodeSelection:[Hn],getServerSideSelectionState:[Vn],setServerSideSelectionState:[Vn],applyServerSideTransaction:[Vn],applyServerSideTransactionAsync:[Vn],applyServerSideRowData:[Vn],retryServerSideLoads:[Vn],flushServerSideAsyncTransactions:[Vn],refreshServerSide:[Vn],getServerSideGroupLevelState:[Vn],refreshInfiniteCache:[Bn],purgeInfiniteCache:[Bn],getInfiniteRowCount:[Bn],isLastRowIndexKnown:[Bn,Vn],expandAll:[Hn,Vn],collapseAll:[Hn,Vn],onRowHeightChanged:[Hn,Vn],setRowCount:[Bn,Vn],getCacheBlockState:[Bn,Vn]},Wn={showLoadingOverlay:{version:"v32",message:'`showLoadingOverlay` is deprecated. Use the grid option "loading"=true instead or setGridOption("loading", true).'},clearRangeSelection:{version:"v32.2",message:"Use `clearCellSelection` instead."},getInfiniteRowCount:{version:"v32.2",old:"getInfiniteRowCount()",new:"getDisplayedRowCount()"},selectAllFiltered:{version:"v33",old:"selectAllFiltered()",new:'selectAll("filtered")'},deselectAllFiltered:{version:"v33",old:"deselectAllFiltered()",new:'deselectAll("filtered")'},selectAllOnCurrentPage:{version:"v33",old:"selectAllOnCurrentPage()",new:'selectAll("currentPage")'},deselectAllOnCurrentPage:{version:"v33",old:"deselectAllOnCurrentPage()",new:'deselectAll("currentPage")'}};var Un={detailCellRendererCtrl:"SharedMasterDetail",dndSourceComp:"DragAndDrop",fillHandle:"CellSelection",groupCellRendererCtrl:"GroupCellRenderer",headerFilterCellCtrl:"ColumnFilter",headerGroupCellCtrl:"ColumnGroup",rangeHandle:"CellSelection",tooltipFeature:"Tooltip",groupStrategy:"RowGrouping",treeGroupStrategy:"TreeData",rowNumberRowResizer:"RowNumbers",singleCell:"EditCore",fullRow:"EditCore",agSetColumnFilterHandler:"SetFilter",agMultiColumnFilterHandler:"MultiFilter",agGroupColumnFilterHandler:"GroupFilter",agNumberColumnFilterHandler:"NumberFilter",agDateColumnFilterHandler:"DateFilter",agTextColumnFilterHandler:"TextFilter"},$n={expanded:1,contracted:1,"tree-closed":1,"tree-open":1,"tree-indeterminate":1,pin:1,"eye-slash":1,arrows:1,left:1,right:1,group:1,aggregation:1,pivot:1,"not-allowed":1,chart:1,cross:1,cancel:1,tick:1,first:1,previous:1,next:1,last:1,linked:1,unlinked:1,"color-picker":1,loading:1,menu:1,"menu-alt":1,filter:1,"filter-add":1,columns:1,maximize:1,minimize:1,copy:1,cut:1,paste:1,grip:1,save:1,csv:1,excel:1,"small-down":1,"small-left":1,"small-right":1,"small-up":1,asc:1,desc:1,none:1,up:1,down:1,plus:1,minus:1,settings:1,"checkbox-checked":1,"checkbox-indeterminate":1,"checkbox-unchecked":1,"radio-button-on":1,"radio-button-off":1,eye:1,"column-arrow":1,"un-pin":1,"pinned-top":1,"pinned-bottom":1,"chevron-up":1,"chevron-down":1,"chevron-left":1,"chevron-right":1,edit:1},Kn={chart:"MenuCore",cancel:"EnterpriseCore",first:"Pagination",previous:"Pagination",next:"Pagination",last:"Pagination",linked:"IntegratedCharts",loadingMenuItems:"MenuCore",unlinked:"IntegratedCharts",menu:"ColumnHeaderComp",legacyMenu:"ColumnMenu",filter:"ColumnFilter",filterActive:"ColumnFilter",filterAdd:"NewFiltersToolPanel",filterCardCollapse:"NewFiltersToolPanel",filterCardExpand:"NewFiltersToolPanel",filterCardEditing:"NewFiltersToolPanel",filterTab:"ColumnMenu",filtersToolPanel:"FiltersToolPanel",columns:["MenuCore"],columnsToolPanel:["ColumnsToolPanel"],maximize:"EnterpriseCore",minimize:"EnterpriseCore",save:"MenuCore",columnGroupOpened:"ColumnGroupHeaderComp",columnGroupClosed:"ColumnGroupHeaderComp",accordionOpen:"EnterpriseCore",accordionClosed:"EnterpriseCore",accordionIndeterminate:"EnterpriseCore",columnSelectClosed:["ColumnsToolPanel","ColumnMenu"],columnSelectOpen:["ColumnsToolPanel","ColumnMenu"],columnSelectIndeterminate:["ColumnsToolPanel","ColumnMenu"],columnMovePin:"SharedDragAndDrop",columnMoveHide:"SharedDragAndDrop",columnMoveMove:"SharedDragAndDrop",columnMoveLeft:"SharedDragAndDrop",columnMoveRight:"SharedDragAndDrop",columnMoveGroup:"SharedDragAndDrop",columnMoveValue:"SharedDragAndDrop",columnMovePivot:"SharedDragAndDrop",dropNotAllowed:"SharedDragAndDrop",ensureColumnVisible:["ColumnsToolPanel","ColumnMenu"],groupContracted:"GroupCellRenderer",groupExpanded:"GroupCellRenderer",setFilterGroupClosed:"SetFilter",setFilterGroupOpen:"SetFilter",setFilterGroupIndeterminate:"SetFilter",setFilterLoading:"SetFilter",close:"EnterpriseCore",check:"MenuItem",colorPicker:"CommunityCore",groupLoading:"LoadingCellRenderer",menuAlt:"ColumnHeaderComp",menuPin:"MenuCore",menuValue:"MenuCore",menuAddRowGroup:["MenuCore","ColumnsToolPanel"],menuRemoveRowGroup:["MenuCore","ColumnsToolPanel"],clipboardCopy:"MenuCore",clipboardCut:"MenuCore",clipboardPaste:"MenuCore",pivotPanel:["ColumnsToolPanel","RowGroupingPanel"],rowGroupPanel:["ColumnsToolPanel","RowGroupingPanel"],valuePanel:"ColumnsToolPanel",columnDrag:"EnterpriseCore",rowDrag:["RowDrag","DragAndDrop"],csvExport:"MenuCore",excelExport:"MenuCore",smallDown:"CommunityCore",selectOpen:"CommunityCore",richSelectOpen:"RichSelect",richSelectRemove:"RichSelect",smallLeft:"CommunityCore",smallRight:"CommunityCore",subMenuOpen:"MenuItem",subMenuOpenRtl:"MenuItem",panelDelimiter:"RowGroupingPanel",panelDelimiterRtl:"RowGroupingPanel",smallUp:"CommunityCore",sortAscending:["MenuCore","Sort"],sortDescending:["MenuCore","Sort"],sortUnSort:["MenuCore","Sort"],advancedFilterBuilder:"AdvancedFilter",advancedFilterBuilderDrag:"AdvancedFilter",advancedFilterBuilderInvalid:"AdvancedFilter",advancedFilterBuilderMoveUp:"AdvancedFilter",advancedFilterBuilderMoveDown:"AdvancedFilter",advancedFilterBuilderAdd:"AdvancedFilter",advancedFilterBuilderRemove:"AdvancedFilter",advancedFilterBuilderSelectOpen:"AdvancedFilter",chartsMenu:"IntegratedCharts",chartsMenuEdit:"IntegratedCharts",chartsMenuAdvancedSettings:"IntegratedCharts",chartsMenuAdd:"IntegratedCharts",chartsColorPicker:"IntegratedCharts",chartsThemePrevious:"IntegratedCharts",chartsThemeNext:"IntegratedCharts",chartsDownload:"IntegratedCharts",checkboxChecked:"CommunityCore",checkboxIndeterminate:"CommunityCore",checkboxUnchecked:"CommunityCore",radioButtonOn:"CommunityCore",radioButtonOff:"CommunityCore",rowPin:"PinnedRow",rowUnpin:"PinnedRow",rowPinBottom:"PinnedRow",rowPinTop:"PinnedRow"},jn=new Set(["colorPicker","smallUp","checkboxChecked","checkboxIndeterminate","checkboxUnchecked","radioButtonOn","radioButtonOff","smallDown","smallLeft","smallRight"]);var qn=new Set(["firstChildChanged","lastChildChanged","childIndexChanged"]),Qn={moduleName:"Validation",version:R,beans:[class extends I{constructor(){super(...arguments),this.beanName="validation"}wireBeans(e){this.gridOptions=e.gridOptions,function provideValidationServiceLogger(e){E=e}(this)}warnOnInitialPropertyUpdate(e,t){"api"===e&&On[t]&&_warn(22,{key:t})}processGridOptions(e){this.processOptions(e,{objectName:"gridOptions",allProperties:[...$s,...Us,...Ws,...Ks,...Ys,...Qs,...qs,...js,...Object.values(Gs)],propertyExceptions:["api"],docsUrl:"grid-options/",deprecations:{suppressLoadingOverlay:{version:"32",message:"Use `loading`=false instead."},enableFillHandle:{version:"32.2",message:"Use `cellSelection.handle` instead."},enableRangeHandle:{version:"32.2",message:"Use `cellSelection.handle` instead."},enableRangeSelection:{version:"32.2",message:"Use `cellSelection = true` instead."},suppressMultiRangeSelection:{version:"32.2",message:"Use `cellSelection.suppressMultiRanges` instead."},suppressClearOnFillReduction:{version:"32.2",message:"Use `cellSelection.handle.suppressClearOnFillReduction` instead."},fillHandleDirection:{version:"32.2",message:"Use `cellSelection.handle.direction` instead."},fillOperation:{version:"32.2",message:"Use `cellSelection.handle.setFillValue` instead."},suppressRowClickSelection:{version:"32.2",message:"Use `rowSelection.enableClickSelection` instead."},suppressRowDeselection:{version:"32.2",message:"Use `rowSelection.enableClickSelection` instead."},rowMultiSelectWithClick:{version:"32.2",message:"Use `rowSelection.enableSelectionWithoutKeys` instead."},groupSelectsChildren:{version:"32.2",message:'Use `rowSelection.groupSelects = "descendants"` instead.'},groupSelectsFiltered:{version:"32.2",message:'Use `rowSelection.groupSelects = "filteredDescendants"` instead.'},isRowSelectable:{version:"32.2",message:"Use `selectionOptions.isRowSelectable` instead."},suppressCopySingleCellRanges:{version:"32.2",message:"Use `rowSelection.copySelectedRows` instead."},suppressCopyRowsToClipboard:{version:"32.2",message:"Use `rowSelection.copySelectedRows` instead."},onRangeSelectionChanged:{version:"32.2",message:"Use `onCellSelectionChanged` instead."},onRangeDeleteStart:{version:"32.2",message:"Use `onCellSelectionDeleteStart` instead."},onRangeDeleteEnd:{version:"32.2",message:"Use `onCellSelectionDeleteEnd` instead."},suppressBrowserResizeObserver:{version:"32.2",message:"The grid always uses the browser's ResizeObserver, this grid option has no effect."},onColumnEverythingChanged:{version:"32.2",message:"Either use `onDisplayedColumnsChanged` which is fired at the same time, or use one of the more specific column events."},groupRemoveSingleChildren:{version:"33",message:"Use `groupHideParentOfSingleChild` instead."},groupRemoveLowestSingleChildren:{version:"33",message:'Use `groupHideParentOfSingleChild: "leafGroupsOnly"` instead.'},suppressRowGroupHidesColumns:{version:"33",message:'Use `suppressGroupChangesColumnVisibility: "suppressHideOnGroup"` instead.'},suppressMakeColumnVisibleAfterUnGroup:{version:"33",message:'Use `suppressGroupChangesColumnVisibility: "suppressShowOnUngroup"` instead.'},unSortIcon:{version:"33",message:"Use `defaultColDef.unSortIcon` instead."},sortingOrder:{version:"33",message:"Use `defaultColDef.sortingOrder` instead."},suppressPropertyNamesCheck:{version:"33",message:"`gridOptions` and `columnDefs` both have a `context` property that should be used for arbitrary user data. This means that column definitions and gridOptions should only contain valid properties making this property redundant."},suppressAdvancedFilterEval:{version:"34",message:"Advanced filter no longer uses function evaluation, so this option has no effect."}},validations:GRID_OPTION_VALIDATIONS()})}validateApiFunction(e,t){return function validateApiFunction(e,t,o){const i=Wn[e];if(i){const{version:o,new:s,old:n,message:r}=i,a=n??e;return(...e)=>(_warnOnce(`Since ${o} api.${a} is deprecated. ${s?`Please use ${s} instead. `:""}${r??""}`),t.apply(t,e))}const s=zn[e];return s?(...i)=>{const n=o.rowModel.getType();if(s.includes(n))return t.apply(t,i);_errorOnce(`api.${e} can only be called when gridOptions.rowModelType is ${s.join(" or ")}`)}:t}(e,t,this.beans)}missingUserComponent(e,t,o,i){const s=Vs[t];s?this.gos.assertModuleRegistered(s,`AG Grid '${e}' component: ${t}`):_warn(101,{propertyName:e,componentName:t,agGridDefaults:o,jsComps:i})}missingDynamicBean(e){const t=Un[e];return t?_errMsg(200,{...this.gos.getModuleErrorParams(),moduleName:t,reasonOrId:e}):void 0}checkRowEvents(e){qn.has(e)&&_warn(10,{eventType:e})}validateIcon(e){if(jn.has(e)&&_warn(43,{iconName:e}),$n[e])return;const t=Kn[e];t?_error(200,{reasonOrId:`icon '${e}'`,moduleName:t,gridScoped:_areModulesGridScoped(),gridId:this.beans.context.getGridId(),rowModelType:this.gos.get("rowModelType"),additionalText:"Alternatively, use the CSS icon name directly."}):_warn(134,{iconName:e})}isProvidedUserComp(e){return!!Vs[e]}validateColDef(e){this.processOptions(e,{objectName:"colDef",allProperties:Object.keys(zs),docsUrl:"column-properties/",deprecations:{checkboxSelection:{version:"32.2",message:"Use `rowSelection.checkboxes` in `GridOptions` instead."},headerCheckboxSelection:{version:"32.2",message:"Use `rowSelection.headerCheckbox = true` in `GridOptions` instead."},headerCheckboxSelectionFilteredOnly:{version:"32.2",message:'Use `rowSelection.selectAll = "filtered"` in `GridOptions` instead.'},headerCheckboxSelectionCurrentPageOnly:{version:"32.2",message:'Use `rowSelection.selectAll = "currentPage"` in `GridOptions` instead.'},showDisabledCheckboxes:{version:"32.2",message:"Use `rowSelection.hideDisabledCheckboxes = true` in `GridOptions` instead."}},validations:{autoHeight:{supportedRowModels:["clientSide","serverSide"],validate:(e,{paginationAutoPageSize:t})=>t?"colDef.autoHeight is not supported with paginationAutoPageSize.":null},cellRendererParams:{validate:e=>null==e.rowGroup&&null==e.rowGroupIndex&&"agGroupCellRenderer"!==e.cellRenderer||!("checkbox"in e.cellRendererParams)?null:'Since v33.0, `cellRendererParams.checkbox` has been deprecated. Use `rowSelection.checkboxLocation = "autoGroupColumn"` instead.'},flex:{validate:(e,t)=>t.autoSizeStrategy?"colDef.flex is not supported with gridOptions.autoSizeStrategy":null},headerCheckboxSelection:{supportedRowModels:["clientSide","serverSide"],validate:(e,{rowSelection:t})=>"multiple"===t?null:"headerCheckboxSelection is only supported with rowSelection=multiple"},headerCheckboxSelectionCurrentPageOnly:{supportedRowModels:["clientSide"],validate:(e,{rowSelection:t})=>"multiple"===t?null:"headerCheckboxSelectionCurrentPageOnly is only supported with rowSelection=multiple"},headerCheckboxSelectionFilteredOnly:{supportedRowModels:["clientSide"],validate:(e,{rowSelection:t})=>"multiple"===t?null:"headerCheckboxSelectionFilteredOnly is only supported with rowSelection=multiple"},headerValueGetter:{validate:e=>{const t=e.headerValueGetter;return"function"==typeof t||"string"==typeof t?null:"headerValueGetter must be a function or a valid string expression"}},icons:{validate:({icons:e})=>{if(e){if(e.smallDown)return _errMsg(262);if(e.smallLeft)return _errMsg(263);if(e.smallRight)return _errMsg(264)}return null}},sortingOrder:{validate:e=>{const t=e.sortingOrder;if(Array.isArray(t)&&t.length>0){const e=t.filter((e=>!Hs.includes(e)));if(e.length>0)return`sortingOrder must be an array with elements from [${Hs.map(toStringWithNullUndefined).join()}], currently it includes [${e.map(toStringWithNullUndefined).join()}]`}else if(!Array.isArray(t)||t.length<=0)return`sortingOrder must be an array with at least one element, currently it's ${t}`;return null}},type:{validate:e=>{const t=e.type;return t instanceof Array?t.some((e=>"string"!=typeof e))?"if colDef.type is supplied an array it should be of type 'string[]'":null:"string"==typeof t?null:"colDef.type should be of type 'string' | 'string[]'"}},rowSpan:{validate:(e,{suppressRowTransform:t})=>t?null:"colDef.rowSpan requires suppressRowTransform to be enabled."},spanRows:{dependencies:{editable:{required:[!1,void 0]},rowDrag:{required:[!1,void 0]},colSpan:{required:[void 0]},rowSpan:{required:[void 0]}},validate:(e,{rowSelection:t,cellSelection:o,suppressRowTransform:i,enableCellSpan:s,rowDragEntireRow:n,enableCellTextSelection:r})=>"object"==typeof t&&"singleRow"===t?.mode&&t?.enableClickSelection?"colDef.spanRows is not supported with rowSelection.clickSelection":o?"colDef.spanRows is not supported with cellSelection.":i?"colDef.spanRows is not supported with suppressRowTransform.":s?n?"colDef.spanRows is not supported with rowDragEntireRow.":r?"colDef.spanRows is not supported with enableCellTextSelection.":null:"colDef.spanRows requires enableCellSpan to be enabled."}}})}processOptions(e,t){const{validations:o,deprecations:i,allProperties:s,propertyExceptions:n,objectName:r,docsUrl:a}=t;s&&!0!==this.gridOptions.suppressPropertyNamesCheck&&this.checkProperties(e,[...n??[],...Object.keys(i)],s,r,a);const l=new Set;Object.keys(e).forEach((t=>{const s=i[t];if(s){const{message:e,version:o}=s;l.add(`As of v${o}, ${String(t)} is deprecated. ${e??""}`)}const n=e[t];if(null==n||!1===n)return;const r=o[t];if(!r)return;const{dependencies:a,validate:d,supportedRowModels:c,expectedType:h}=r;if(h){const e=typeof n;if(e!==h)return void l.add(`${String(t)} should be of type '${h}' but received '${e}' (${n}).`)}if(c){const e=this.gridOptions.rowModelType??"clientSide";if(!c.includes(e))return void l.add(`${String(t)} is not supported with the '${e}' row model. It is only valid with: ${c.join(", ")}.`)}if(a){const o=this.checkForRequiredDependencies(t,a,e);if(o)return void l.add(o)}if(d){const t=d(e,this.gridOptions,this.beans);if(t)return void l.add(t)}})),l.size>0&&l.forEach((e=>{_warnOnce(e)}))}checkForRequiredDependencies(e,t,o){const i=Object.entries(t).filter((([e,t])=>{const i=o[e];return!t.required.includes(i)}));return 0===i.length?null:i.map((([t,o])=>`'${String(e)}' requires '${t}' to be one of [${o.required.map((e=>null===e?"null":void 0===e?"undefined":e)).join(", ")}]. ${o.reason??""}`)).join("\n ")}checkProperties(e,t,o,i,s){const n=function _fuzzyCheckStrings(e,t,o){const i={},s=e.filter((e=>!t.some((t=>t===e))));s.length>0&&s.forEach((e=>i[e]=_fuzzySuggestions({inputValue:e,allSuggestions:o}).values));return i}(Object.getOwnPropertyNames(e),["__ob__","__v_skip","__metadata__",...t,...o],o),r=Object.keys(n);for(const e of r){let t=`invalid ${i} property '${e}' did you mean any of these: ${n[e].slice(0,8).join(", ")}.`;o.includes("context")&&(t+=`\nIf you are trying to annotate ${i} with application data, use the '${i}.context' property instead.`),_warnOnce(t)}if(r.length>0&&s){_warnOnce(`to see all the valid ${i} properties please check: ${this.beans.frameworkOverrides.getDocLink(s)}`)}}getConsoleMessage(e,t){return function getError(e,t){const o=xn[e];if(!o)return[`Missing error text for error id ${e}!`];const i=o(t),s=`\nSee ${getErrorLink(e,t)}`;return Array.isArray(i)?i.concat(s):[i,s]}(e,t)}}]};function updateRowNodeAfterFilter(e){e.sibling&&(e.sibling.childrenAfterFilter=e.childrenAfterFilter)}var Yn={moduleName:"SharedMenu",version:R,beans:[class extends I{constructor(){super(...arguments),this.beanName="menuSvc"}postConstruct(){const{enterpriseMenuFactory:e,filterMenuFactory:t}=this.beans;this.activeMenuFactory=e??t}showColumnMenu(e){this.showColumnMenuCommon(this.activeMenuFactory,e,"columnMenu")}showFilterMenu(e){const{enterpriseMenuFactory:t,filterMenuFactory:o}=this.beans,i=t&&_isLegacyMenuEnabled(this.gos)?t:o;this.showColumnMenuCommon(i,e,e.containerType,!0)}showHeaderContextMenu(e,t,o){this.activeMenuFactory?.showMenuAfterContextMenuEvent(e,t,o)}hidePopupMenu(){this.beans.contextMenuSvc?.hideActiveMenu(),this.activeMenuFactory?.hideActiveMenu()}isColumnMenuInHeaderEnabled(e){const{suppressHeaderMenuButton:t}=e.getColDef();return!t&&!!this.activeMenuFactory?.isMenuEnabled(e)&&(_isLegacyMenuEnabled(this.gos)||!!this.beans.enterpriseMenuFactory)}isFilterMenuInHeaderEnabled(e){return!e.getColDef().suppressHeaderFilterButton&&!!this.beans.filterManager?.isFilterAllowed(e)}isHeaderContextMenuEnabled(e){return!(e&&isColumn(e)?e.getColDef():e?.getColGroupDef())?.suppressHeaderContextMenu&&"new"===this.gos.get("columnMenu")}isHeaderMenuButtonAlwaysShowEnabled(){return this.isSuppressMenuHide()}isHeaderMenuButtonEnabled(){const e=!this.isSuppressMenuHide();return!(_isIOSUserAgent()&&e)}isHeaderFilterButtonEnabled(e){return this.isFilterMenuInHeaderEnabled(e)&&!_isLegacyMenuEnabled(this.gos)&&!this.isFloatingFilterButtonDisplayed(e)}isFilterMenuItemEnabled(e){return!(!this.beans.filterManager?.isFilterAllowed(e)||_isLegacyMenuEnabled(this.gos)||this.isFilterMenuInHeaderEnabled(e)||this.isFloatingFilterButtonDisplayed(e))}isFloatingFilterButtonEnabled(e){return!e.getColDef().suppressFloatingFilterButton}isFloatingFilterButtonDisplayed(e){return!!e.getColDef().floatingFilter&&this.isFloatingFilterButtonEnabled(e)}isSuppressMenuHide(){const e=this.gos,t=e.get("suppressMenuHide");return _isLegacyMenuEnabled(e)?!!e.exists("suppressMenuHide")&&t:t}showColumnMenuCommon(e,t,o,i){const{positionBy:s,onClosedCallback:n}=t,r=t.column;if("button"===s){const{buttonElement:s}=t;e?.showMenuAfterButtonClick(r,s,o,n,i)}else if("mouse"===s){const{mouseEvent:s}=t;e?.showMenuAfterMouseEvent(r,s,o,n,i)}else if(r){const t=this.beans,s=t.ctrlsSvc;s.getScrollFeature().ensureColumnVisible(r,"auto"),_requestAnimationFrame(t,(()=>{const t=s.getHeaderRowContainerCtrl(r.getPinned())?.getHeaderCtrlForColumn(r);t&&e?.showMenuAfterButtonClick(r,t.getAnchorElementForMenu(i),o,n,i)}))}}}],apiFunctions:{showColumnMenu:function showColumnMenu(e,t){const o=e.colModel.getCol(t);o?e.menuSvc?.showColumnMenu({column:o,positionBy:"auto"}):_error(12,{colKey:t})},hidePopupMenu:function hidePopupMenu(e){e.menuSvc?.hidePopupMenu()}}},Zn=0,Jn={moduleName:"Popup",version:R,beans:[class extends I{constructor(){super(...arguments),this.beanName="popupSvc",this.popupList=[]}postConstruct(){this.beans.ctrlsSvc.whenReady(this,(e=>{this.gridCtrl=e.gridCtrl})),this.addManagedEventListeners({gridStylesChanged:this.handleThemeChange.bind(this)})}getPopupParent(){const e=this.gos.get("popupParent");return e||this.gridCtrl.getGui()}positionPopupForMenu(e){const{eventSource:t,ePopup:o,column:i,node:s,event:n}=e,r=t.getBoundingClientRect(),a=this.getParentRect();this.setAlignedTo(t,o);let l=!1;this.positionPopup({ePopup:o,keepWithinBounds:!0,updatePosition:()=>{const e=this.keepXYWithinBounds(o,r.top-a.top,0),t=o.clientWidth>0?o.clientWidth:200;l||(o.style.minWidth=`${t}px`,l=!0);const i=a.right-a.left-t;let s;return this.gos.get("enableRtl")?(s=xLeftPosition(),s<0&&(s=xRightPosition(),this.setAlignedStyles(o,"left")),s>i&&(s=0,this.setAlignedStyles(o,"right"))):(s=xRightPosition(),s>i&&(s=xLeftPosition(),this.setAlignedStyles(o,"right")),s<0&&(s=0,this.setAlignedStyles(o,"left"))),{x:s,y:e};function xRightPosition(){return r.right-a.left-2}function xLeftPosition(){return r.left-a.left-t}},postProcessCallback:()=>this.callPostProcessPopup("subMenu",o,t,n instanceof MouseEvent?n:void 0,i,s)})}positionPopupUnderMouseEvent(e){const{ePopup:t,nudgeX:o,nudgeY:i,skipObserver:s}=e;this.positionPopup({ePopup:t,nudgeX:o,nudgeY:i,keepWithinBounds:!0,skipObserver:s,updatePosition:()=>this.calculatePointerAlign(e.mouseEvent),postProcessCallback:()=>this.callPostProcessPopup(e.type,e.ePopup,null,e.mouseEvent,e.column,e.rowNode)})}calculatePointerAlign(e){const t=this.getParentRect();return{x:e.clientX-t.left,y:e.clientY-t.top}}positionPopupByComponent(e){const{ePopup:t,nudgeX:o,nudgeY:i,keepWithinBounds:s,eventSource:n,alignSide:r="left",position:a="over",column:l,rowNode:d,type:c}=e,h=n.getBoundingClientRect(),u=this.getParentRect();this.setAlignedTo(n,t);this.positionPopup({ePopup:t,nudgeX:o,nudgeY:i,keepWithinBounds:s,updatePosition:()=>{let o,s=h.left-u.left;if("right"===r&&(s-=t.offsetWidth-h.width),"over"===a)o=h.top-u.top,this.setAlignedStyles(t,"over");else{this.setAlignedStyles(t,"under");o="under"===this.shouldRenderUnderOrAbove(t,h,u,e.nudgeY||0)?h.top-u.top+h.height:h.top-t.offsetHeight-2*(i||0)-u.top}return{x:s,y:o}},postProcessCallback:()=>this.callPostProcessPopup(c,t,n,null,l,d)})}shouldRenderUnderOrAbove(e,t,o,i){const s=o.bottom-t.bottom,n=t.top-o.top,r=e.offsetHeight+i;return s>r?"under":n>r||n>s?"above":"under"}setAlignedStyles(e,t){const o=this.getPopupIndex(e);if(-1===o)return;const i=this.popupList[o],{alignedToElement:s}=i;if(!s)return;["right","left","over","above","under"].forEach((t=>{s.classList.remove(`ag-has-popup-positioned-${t}`),e.classList.remove(`ag-popup-positioned-${t}`)})),t&&(s.classList.add(`ag-has-popup-positioned-${t}`),e.classList.add(`ag-popup-positioned-${t}`))}setAlignedTo(e,t){const o=this.getPopupIndex(t);if(-1!==o){this.popupList[o].alignedToElement=e}}callPostProcessPopup(e,t,o,i,s,n){const r=this.gos.getCallback("postProcessPopup");if(r){r({column:s,rowNode:n,ePopup:t,type:e,eventSource:o,mouseEvent:i})}}positionPopup(e){const{ePopup:t,keepWithinBounds:o,nudgeX:i,nudgeY:s,skipObserver:n,updatePosition:r}=e,a={width:0,height:0},updatePopupPosition=(n=!1)=>{let{x:l,y:d}=r();n&&t.clientWidth===a.width&&t.clientHeight===a.height||(a.width=t.clientWidth,a.height=t.clientHeight,i&&(l+=i),s&&(d+=s),o&&(l=this.keepXYWithinBounds(t,l,1),d=this.keepXYWithinBounds(t,d,0)),t.style.left=`${l}px`,t.style.top=`${d}px`,e.postProcessCallback&&e.postProcessCallback())};if(updatePopupPosition(),!n){const e=_observeResize(this.beans,t,(()=>updatePopupPosition(!0)));setTimeout((()=>e()),200)}}getActivePopups(){return this.popupList.map((e=>e.element))}getParentRect(){const e=_getDocument(this.beans);let t=this.getPopupParent();return t===e.body?t=e.documentElement:"static"===getComputedStyle(t).position&&(t=t.offsetParent),_getElementRectWithOffset(t)}keepXYWithinBounds(e,t,o){const i=0===o,s=i?"clientHeight":"clientWidth",n=i?"top":"left",r=i?"height":"width",a=i?"scrollTop":"scrollLeft",l=_getDocument(this.beans),d=l.documentElement,c=this.getPopupParent(),h=e.getBoundingClientRect(),u=c.getBoundingClientRect(),g=l.documentElement.getBoundingClientRect(),p=c===l.body,m=Math.ceil(h[r]);let f=p?(i?_getAbsoluteHeight:_getAbsoluteWidth)(d)+d[a]:c[s];p&&(f-=Math.abs(g[n]-u[n]));const C=f-m;return Math.min(Math.max(t,0),Math.abs(C))}addPopup(e){const t=_getDocument(this.beans),{eChild:o,ariaLabel:i,alwaysOnTop:s,positionCallback:n,anchorToElement:r}=e;if(!t)return _warn(122),{hideFunc:()=>{}};const a=this.getPopupIndex(o);if(-1!==a){return{hideFunc:this.popupList[a].hideFunc}}this.initialisePopupPosition(o);const l=this.createPopupWrapper(o,i,!!s),d=this.addEventListenersToPopup({...e,wrapperEl:l});return n&&n(),this.addPopupToPopupList(o,l,d,r),{hideFunc:d}}initialisePopupPosition(e){const t=this.getPopupParent().getBoundingClientRect();_exists(e.style.top)||(e.style.top=-1*t.top+"px"),_exists(e.style.left)||(e.style.left=-1*t.left+"px")}createPopupWrapper(e,t,o){const i=this.getPopupParent(),{environment:s,gos:n}=this.beans,r=_createElement({tag:"div"});return s.applyThemeClasses(r),r.classList.add("ag-popup"),e.classList.add(n.get("enableRtl")?"ag-rtl":"ag-ltr","ag-popup-child"),e.hasAttribute("role")||_setAriaRole(e,"dialog"),_setAriaLabel(e,t),r.appendChild(e),i.appendChild(r),o?this.setAlwaysOnTop(e,!0):this.bringPopupToFront(e),r}handleThemeChange(e){if(e.themeChanged){const e=this.beans.environment;for(const t of this.popupList)e.applyThemeClasses(t.wrapper)}}addEventListenersToPopup(e){const t=this.beans,o=_getDocument(t),i=this.getPopupParent(),{wrapperEl:s,eChild:n,closedCallback:r,afterGuiAttached:a,closeOnEsc:l,modal:d}=e;let c=!1;const hidePopupOnKeyboardEvent=e=>{if(!s.contains(_getActiveDomElement(t)))return;e.key!==Me||_isStopPropagationForAgGrid(e)||removeListeners({keyboardEvent:e})},hidePopupOnMouseEvent=e=>removeListeners({mouseEvent:e}),hidePopupOnTouchEvent=e=>removeListeners({touchEvent:e}),removeListeners=(e={})=>{const{mouseEvent:t,touchEvent:a,keyboardEvent:l,forceHide:d}=e;(d||!this.isEventFromCurrentPopup({mouseEvent:t,touchEvent:a},n)&&!c)&&(c=!0,i.removeChild(s),o.removeEventListener("keydown",hidePopupOnKeyboardEvent),o.removeEventListener("mousedown",hidePopupOnMouseEvent),o.removeEventListener("touchstart",hidePopupOnTouchEvent),o.removeEventListener("contextmenu",hidePopupOnMouseEvent),this.eventSvc.removeEventListener("dragStarted",hidePopupOnMouseEvent),r&&r(t||a||l),this.removePopupFromPopupList(n))};return a&&a({hidePopup:removeListeners}),window.setTimeout((()=>{l&&o.addEventListener("keydown",hidePopupOnKeyboardEvent),d&&(o.addEventListener("mousedown",hidePopupOnMouseEvent),this.eventSvc.addEventListener("dragStarted",hidePopupOnMouseEvent),o.addEventListener("touchstart",hidePopupOnTouchEvent),o.addEventListener("contextmenu",hidePopupOnMouseEvent))}),0),removeListeners}addPopupToPopupList(e,t,o,i){this.popupList.push({element:e,wrapper:t,hideFunc:o,instanceId:Zn++,isAnchored:!!i}),i&&this.setPopupPositionRelatedToElement(e,i)}getPopupIndex(e){return this.popupList.findIndex((t=>t.element===e))}setPopupPositionRelatedToElement(e,t){const o=this.getPopupIndex(e);if(-1===o)return;const i=this.popupList[o];if(i.stopAnchoringPromise&&i.stopAnchoringPromise.then((e=>e&&e())),i.stopAnchoringPromise=void 0,i.isAnchored=!1,!t)return;const s=this.keepPopupPositionedRelativeTo({element:t,ePopup:e,hidePopup:i.hideFunc});return i.stopAnchoringPromise=s,i.isAnchored=!0,s}removePopupFromPopupList(e){this.setAlignedStyles(e,null),this.setPopupPositionRelatedToElement(e,null),this.popupList=this.popupList.filter((t=>t.element!==e))}keepPopupPositionedRelativeTo(e){const t=this.getPopupParent(),o=t.getBoundingClientRect(),{element:i,ePopup:s}=e,n=i.getBoundingClientRect(),extractFromPixelValue=e=>parseInt(e.substring(0,e.length-1),10),createPosition=(e,t)=>{const i=o[e]-n[e],r=extractFromPixelValue(s.style[e]);return{initialDiff:i,lastDiff:i,initial:r,last:r,direction:t}},r=createPosition("top",0),a=createPosition("left",1),l=this.beans.frameworkOverrides;return new Y((o=>{l.wrapIncoming((()=>{l.setInterval((()=>{const o=t.getBoundingClientRect(),n=i.getBoundingClientRect();if(0==n.top&&0==n.left&&0==n.height&&0==n.width)return void e.hidePopup();const calculateNewPosition=(e,t)=>{const i=extractFromPixelValue(s.style[t]);e.last!==i&&(e.initial=i,e.last=i);const r=o[t]-n[t];if(r!=e.lastDiff){const o=this.keepXYWithinBounds(s,e.initial+e.initialDiff-r,e.direction);s.style[t]=`${o}px`,e.last=o}e.lastDiff=r};calculateNewPosition(r,"top"),calculateNewPosition(a,"left")}),200).then((e=>{o((()=>{null!=e&&window.clearInterval(e)}))}))}),"popupPositioning")}))}hasAnchoredPopup(){return this.popupList.some((e=>e.isAnchored))}isEventFromCurrentPopup(e,t){const{mouseEvent:o,touchEvent:i}=e,s=o||i;if(!s)return!1;const n=this.getPopupIndex(t);if(-1===n)return!1;for(let e=n;e<this.popupList.length;e++){if(_isElementInEventPath(this.popupList[e].element,s))return!0}return this.isElementWithinCustomPopup(s.target)}isElementWithinCustomPopup(e){const t=_getDocument(this.beans);for(;e&&e!==t.body;){if(e.classList.contains("ag-custom-component-popup")||null===e.parentElement)return!0;e=e.parentElement}return!1}getWrapper(e){for(;!e.classList.contains("ag-popup")&&e.parentElement;)e=e.parentElement;return e.classList.contains("ag-popup")?e:null}setAlwaysOnTop(e,t){const o=this.getWrapper(e);o&&(o.classList.toggle("ag-always-on-top",!!t),t&&this.bringPopupToFront(o))}bringPopupToFront(e){const t=this.getPopupParent(),o=Array.prototype.slice.call(t.querySelectorAll(".ag-popup")),i=o.length,s=this.getWrapper(e);if(!s||i<=1||!t.contains(e))return;const n=[],r=[];for(const e of o)e!==s&&(e.classList.contains("ag-always-on-top")?r.push(e):n.push(e));const a=[],l=r.length,d=s.classList.contains("ag-always-on-top")||!l?[...n,...r,s]:[...n,s,...r];for(let e=0;e<=i;e++){const i=d[e];if(o[e]===d[e]||i===s)continue;i.querySelectorAll("div").forEach((e=>{0!==e.scrollTop&&a.push([e,e.scrollTop])})),0===e?t.insertAdjacentElement("afterbegin",i):d[e-1].insertAdjacentElement("afterend",i)}for(;a.length;){const e=a.pop();e[0].scrollTop=e[1]}}}]};var Xn={filterHandler:()=>({doesFilterPass:()=>!0})};var er={tag:"div",cls:"ag-floating-filter-input",role:"presentation",children:[{tag:"ag-input-text-field",ref:"eFloatingFilterText"}]},tr=class{constructor(){this.customFilterOptions={}}init(e,t){this.filterOptions=e.filterOptions??t,this.mapCustomOptions(),this.defaultOption=this.getDefaultItem(e.defaultOption)}refresh(e,t){const o=e.filterOptions??t;this.filterOptions!==o&&(this.filterOptions=o,this.customFilterOptions={},this.mapCustomOptions()),this.defaultOption=this.getDefaultItem(e.defaultOption)}mapCustomOptions(){const{filterOptions:e}=this;e&&e.forEach((t=>{if("string"==typeof t)return;[["displayKey"],["displayName"],["predicate","test"]].every((e=>!!e.some((e=>null!=t[e]))||(_warn(72,{keys:e}),!1)))?this.customFilterOptions[t.displayKey]=t:this.filterOptions=e.filter((e=>e===t))||[]}))}getDefaultItem(e){const{filterOptions:t}=this;if(e)return e;if(t.length>=1){const e=t[0];if("string"==typeof e)return e;if(e.displayKey)return e.displayKey;_warn(73)}else _warn(74)}getCustomOption(e){return this.customFilterOptions[e]}};function removeItems(e,t,o){return null==o?e.splice(t):e.splice(t,o)}function isBlank(e){return null==e||"string"==typeof e&&0===e.trim().length}function getNumberOfInputs(e,t){const o=t.getCustomOption(e);if(o){const{numberOfInputs:e}=o;return null!=e?e:1}return e&&["empty","notBlank","blank"].indexOf(e)>=0?0:"inRange"===e?2:1}var or=class extends xt{constructor(e,t,o){super(e,"simple-filter"),this.mapValuesFromModel=t,this.defaultOptions=o,this.eTypes=[],this.eJoinPanels=[],this.eJoinAnds=[],this.eJoinOrs=[],this.eConditionBodies=[],this.listener=()=>this.onUiChanged(),this.lastUiCompletePosition=null,this.joinOperatorId=0}setParams(e){super.setParams(e);const t=new tr;this.optionsFactory=t,t.init(e,this.defaultOptions),this.commonUpdateSimpleParams(e),this.createOption(),this.createMissingConditionsAndOperators()}updateParams(e,t){this.optionsFactory.refresh(e,this.defaultOptions),super.updateParams(e,t),this.commonUpdateSimpleParams(e)}commonUpdateSimpleParams(e){this.setNumConditions(e),this.defaultJoinOperator=function getDefaultJoinOperator(e){return"AND"===e||"OR"===e?e:"AND"}(e.defaultJoinOperator),this.filterPlaceholder=e.filterPlaceholder,this.createFilterListOptions();const t=this.getGui();this.isReadOnly()?t.setAttribute("tabindex","-1"):t.removeAttribute("tabindex")}onFloatingFilterChanged(e,t){this.setTypeFromFloatingFilter(e),this.setValueFromFloatingFilter(t),this.onUiChanged("immediately",!0)}setTypeFromFloatingFilter(e){this.eTypes.forEach(((t,o)=>{const i=0===o?e:this.optionsFactory.defaultOption;t.setValue(i,!0)}))}getModelFromUi(){const e=this.getUiCompleteConditions();return 0===e.length?null:this.maxNumConditions>1&&e.length>1?{filterType:this.filterType,operator:this.getJoinOperator(),conditions:e}:e[0]}getConditionTypes(){return this.eTypes.map((e=>e.getValue()))}getConditionType(e){return this.eTypes[e].getValue()}getJoinOperator(){const{eJoinOrs:e,defaultJoinOperator:t}=this;return 0===e.length?t:!0===e[0].getValue()?"OR":"AND"}areNonNullModelsEqual(e,t){const o=!e.operator,i=!t.operator;if(!o&&i||o&&!i)return!1;let s;if(o){const o=e,i=t;s=this.areSimpleModelsEqual(o,i)}else{const o=e,i=t;s=o.operator===i.operator&&_areEqual(o.conditions,i.conditions,((e,t)=>this.areSimpleModelsEqual(e,t)))}return s}setModelIntoUi(e,t){if(null==e)return this.resetUiToDefaults(t),Y.resolve();if(e.operator){const t=e;let o=t.conditions;null==o&&(o=[],_warn(77));const i=function validateAndUpdateConditions(e,t){let o=e.length;return o>t&&(e.splice(t),_warn(78),o=t),o}(o,this.maxNumConditions),s=this.getNumConditions();if(i<s)this.removeConditionsAndOperators(i);else if(i>s)for(let e=s;e<i;e++)this.createJoinOperatorPanel(),this.createOption();const n="OR"===t.operator;this.eJoinAnds.forEach((e=>e.setValue(!n,!0))),this.eJoinOrs.forEach((e=>e.setValue(n,!0))),o.forEach(((e,t)=>{this.eTypes[t].setValue(e.type,!0),this.setConditionIntoUi(e,t)}))}else{const t=e;this.getNumConditions()>1&&this.removeConditionsAndOperators(1),this.eTypes[0].setValue(t.type,!0),this.setConditionIntoUi(t,0)}return this.lastUiCompletePosition=this.getNumConditions()-1,this.createMissingConditionsAndOperators(),this.updateUiVisibility(),t||this.params.onUiChange(this.getUiChangeEventParams()),Y.resolve()}setNumConditions(e){let t=e.maxNumConditions??2;t<1&&(_warn(79),t=1),this.maxNumConditions=t;let o=e.numAlwaysVisibleConditions??1;o<1&&(_warn(80),o=1),o>t&&(_warn(81),o=t),this.numAlwaysVisibleConditions=o}createOption(){const e=this.getGui(),t=this.createManagedBean(new $o);this.eTypes.push(t),t.addCss("ag-filter-select"),e.appendChild(t.getGui());const o=this.createEValue();this.eConditionBodies.push(o),e.appendChild(o),this.putOptionsIntoDropdown(t),this.resetType(t);const i=this.getNumConditions()-1;this.forEachPositionInput(i,(e=>this.resetInput(e))),this.addChangedListeners(t,i)}createJoinOperatorPanel(){const e=_createElement({tag:"div",cls:"ag-filter-condition"});this.eJoinPanels.push(e);const t=this.createJoinOperator(this.eJoinAnds,e,"and"),o=this.createJoinOperator(this.eJoinOrs,e,"or");this.getGui().appendChild(e);const i=this.eJoinPanels.length-1,s=this.joinOperatorId++;this.resetJoinOperatorAnd(t,i,s),this.resetJoinOperatorOr(o,i,s),this.isReadOnly()||(t.onValueChange(this.listener),o.onValueChange(this.listener))}createJoinOperator(e,t,o){const i=this.createManagedBean(new Go);e.push(i);const s="ag-filter-condition-operator";return i.addCss(s),i.addCss(`${s}-${o}`),t.appendChild(i.getGui()),i}createFilterListOptions(){this.filterListOptions=this.optionsFactory.filterOptions.map((e=>"string"==typeof e?this.createBoilerplateListOption(e):this.createCustomListOption(e)))}putOptionsIntoDropdown(e){const{filterListOptions:t}=this;t.forEach((t=>{e.addOption(t)})),e.setDisabled(t.length<=1)}createBoilerplateListOption(e){return{value:e,text:this.translate(e)}}createCustomListOption(e){const{displayKey:t}=e,o=this.optionsFactory.getCustomOption(e.displayKey);return{value:t,text:o?this.getLocaleTextFunc()(o.displayKey,o.displayName):this.translate(t)}}createBodyTemplate(){return null}getAgComponents(){return[]}updateUiVisibility(){const e=this.getJoinOperator();this.updateNumConditions(),this.updateConditionStatusesAndValues(this.lastUiCompletePosition,e)}updateNumConditions(){let e=-1,t=!0;for(let o=0;o<this.getNumConditions();o++)this.isConditionUiComplete(o)?e=o:t=!1;if(this.shouldAddNewConditionAtEnd(t))this.createJoinOperatorPanel(),this.createOption();else{const t=this.lastUiCompletePosition??this.getNumConditions()-2;if(e<t){this.removeConditionsAndOperators(t+1);const o=e+1,i=t-o;i>0&&this.removeConditionsAndOperators(o,i),this.createMissingConditionsAndOperators()}}this.lastUiCompletePosition=e}updateConditionStatusesAndValues(e,t){this.eTypes.forEach(((t,o)=>{const i=this.isConditionDisabled(o,e);t.setDisabled(i||this.filterListOptions.length<=1),1===o&&(_setDisabled(this.eJoinPanels[0],i),this.eJoinAnds[0].setDisabled(i),this.eJoinOrs[0].setDisabled(i))})),this.eConditionBodies.forEach(((e,t)=>{_setDisplayed(e,this.isConditionBodyVisible(t))}));const o="OR"===(t??this.getJoinOperator());this.eJoinAnds.forEach((e=>{e.setValue(!o,!0)})),this.eJoinOrs.forEach((e=>{e.setValue(o,!0)})),this.forEachInput(((t,o,i,s)=>{this.setElementDisplayed(t,o<s),this.setElementDisabled(t,this.isConditionDisabled(i,e))})),this.resetPlaceholder()}shouldAddNewConditionAtEnd(e){return e&&this.getNumConditions()<this.maxNumConditions&&!this.isReadOnly()}removeConditionsAndOperators(e,t){if(e>=this.getNumConditions())return;const{eTypes:o,eConditionBodies:i,eJoinPanels:s,eJoinAnds:n,eJoinOrs:r}=this;this.removeComponents(o,e,t),this.removeElements(i,e,t),this.removeEValues(e,t);const a=Math.max(e-1,0);this.removeElements(s,a,t),this.removeComponents(n,a,t),this.removeComponents(r,a,t)}removeElements(e,t,o){removeItems(e,t,o).forEach((e=>_removeFromParent(e)))}removeComponents(e,t,o){removeItems(e,t,o).forEach((e=>{_removeFromParent(e.getGui()),this.destroyBean(e)}))}afterGuiAttached(e){if(super.afterGuiAttached(e),this.resetPlaceholder(),!e?.suppressFocus){let e;if(!this.isReadOnly()){const t=this.getInputs(0)[0];e=t instanceof Ro&&this.isConditionBodyVisible(0)?t.getInputElement():this.eTypes[0]?.getFocusableElement()}(e??this.getGui()).focus({preventScroll:!0})}}afterGuiDetached(){super.afterGuiDetached();const e=this.params;if(this.beans.colFilter?.shouldKeepStateOnDetach(e.column))return;e.onStateChange({model:e.model});let t=-1,o=-1,i=!1;const s=this.getJoinOperator();for(let e=this.getNumConditions()-1;e>=0;e--)if(this.isConditionUiComplete(e))-1===t&&(t=e,o=e);else{const s=e<t;(e>=this.numAlwaysVisibleConditions&&!this.isConditionUiComplete(e-1)||s)&&(this.removeConditionsAndOperators(e,1),i=!0,s&&o--)}let n=!1;this.getNumConditions()<this.numAlwaysVisibleConditions&&(this.createMissingConditionsAndOperators(),n=!0),this.shouldAddNewConditionAtEnd(o===this.getNumConditions()-1)&&(this.createJoinOperatorPanel(),this.createOption(),n=!0),n&&this.updateConditionStatusesAndValues(o,s),i&&this.updateJoinOperatorsDisabled(),this.lastUiCompletePosition=o}getModelAsString(e){return this.params.getHandler()?.getModelAsString?.(e)??""}getPlaceholderText(e,t){let o=this.translate(e);if("function"==typeof this.filterPlaceholder){const e=this.eTypes[t].getValue(),i=this.translate(e);o=this.filterPlaceholder({filterOptionKey:e,filterOption:i,placeholder:o})}else"string"==typeof this.filterPlaceholder&&(o=this.filterPlaceholder);return o}resetPlaceholder(){const e=this.getLocaleTextFunc();this.forEachInput(((t,o,i,s)=>{if(!(t instanceof Ro))return;const n=0===o&&s>1?"inRangeStart":0===o?"filterOoo":"inRangeEnd",r=0===o&&s>1?e("ariaFilterFromValue","Filter from value"):0===o?e("ariaFilterValue","Filter Value"):e("ariaFilterToValue","Filter to Value");t.setInputPlaceholder(this.getPlaceholderText(n,i)),t.setInputAriaLabel(r)}))}setElementValue(e,t,o){e instanceof Ro&&e.setValue(null!=t?String(t):null,!0)}setElementDisplayed(e,t){e instanceof Q&&_setDisplayed(e.getGui(),t)}setElementDisabled(e,t){e instanceof Q&&_setDisabled(e.getGui(),t)}attachElementOnChange(e,t){e instanceof Ro&&e.onValueChange(t)}forEachInput(e){this.getConditionTypes().forEach(((t,o)=>{this.forEachPositionTypeInput(o,t,e)}))}forEachPositionInput(e,t){const o=this.getConditionType(e);this.forEachPositionTypeInput(e,o,t)}forEachPositionTypeInput(e,t,o){const i=getNumberOfInputs(t,this.optionsFactory),s=this.getInputs(e);for(let t=0;t<s.length;t++){const n=s[t];null!=n&&o(n,t,e,i)}}isConditionDisabled(e,t){return!!this.isReadOnly()||0!==e&&e>t+1}isConditionBodyVisible(e){return getNumberOfInputs(this.getConditionType(e),this.optionsFactory)>0}isConditionUiComplete(e){if(e>=this.getNumConditions())return!1;return"empty"!==this.getConditionType(e)&&!this.getValues(e).some((e=>null==e))}getNumConditions(){return this.eTypes.length}getUiCompleteConditions(){const e=[];for(let t=0;t<this.getNumConditions();t++)this.isConditionUiComplete(t)&&e.push(this.createCondition(t));return e}createMissingConditionsAndOperators(){if(!this.isReadOnly())for(let e=this.getNumConditions();e<this.numAlwaysVisibleConditions;e++)this.createJoinOperatorPanel(),this.createOption()}resetUiToDefaults(e){this.removeConditionsAndOperators(this.isReadOnly()?1:this.numAlwaysVisibleConditions),this.eTypes.forEach((e=>this.resetType(e))),this.eJoinAnds.forEach(((e,t)=>this.resetJoinOperatorAnd(e,t,this.joinOperatorId+t))),this.eJoinOrs.forEach(((e,t)=>this.resetJoinOperatorOr(e,t,this.joinOperatorId+t))),this.joinOperatorId++,this.forEachInput((e=>this.resetInput(e))),this.resetPlaceholder(),this.createMissingConditionsAndOperators(),this.lastUiCompletePosition=null,this.updateUiVisibility(),e||this.params.onUiChange(this.getUiChangeEventParams())}resetType(e){const t=this.getLocaleTextFunc()("ariaFilteringOperator","Filtering operator");e.setValue(this.optionsFactory.defaultOption,!0).setAriaLabel(t).setDisabled(this.isReadOnly()||this.filterListOptions.length<=1)}resetJoinOperatorAnd(e,t,o){this.resetJoinOperator(e,t,"AND"===this.defaultJoinOperator,this.translate("andCondition"),o)}resetJoinOperatorOr(e,t,o){this.resetJoinOperator(e,t,"OR"===this.defaultJoinOperator,this.translate("orCondition"),o)}resetJoinOperator(e,t,o,i,s){this.updateJoinOperatorDisabled(e.setValue(o,!0).setName(`ag-simple-filter-and-or-${this.getCompId()}-${s}`).setLabel(i),t)}updateJoinOperatorsDisabled(){const updater=(e,t)=>this.updateJoinOperatorDisabled(e,t);this.eJoinAnds.forEach(updater),this.eJoinOrs.forEach(updater)}updateJoinOperatorDisabled(e,t){e.setDisabled(this.isReadOnly()||t>0)}resetInput(e){this.setElementValue(e,null),this.setElementDisabled(e,this.isReadOnly())}setConditionIntoUi(e,t){const o=this.mapValuesFromModel(e,this.optionsFactory);this.forEachInput(((e,i,s)=>{s===t&&this.setElementValue(e,null!=o[i]?o[i]:null)}))}setValueFromFloatingFilter(e){this.forEachInput(((t,o,i)=>{this.setElementValue(t,0===o&&0===i?e:null,!0)}))}addChangedListeners(e,t){this.isReadOnly()||(e.onValueChange(this.listener),this.forEachPositionInput(t,(e=>{this.attachElementOnChange(e,this.listener)})))}hasInvalidInputs(){return!1}isReadOnly(){return!!this.params.readOnly}},ir=class{constructor(e,t,o,i,s,n){this.alive=!0,this.context=e,this.eParent=s;const r=function _getDateCompDetails(e,t,o){return e.getCompDetails(t,Z,"agDateInput",o,!0)}(t,o,i);r&&r.newAgStackInstance().then((t=>{if(!this.alive)return void e.destroyBean(t);if(this.dateComp=t,!t)return;s.appendChild(t.getGui()),t?.afterGuiAttached?.();const{tempValue:o,disabled:i}=this;o&&t.setDate(o),null!=i&&t.setDisabled?.(i),n?.(this)}))}destroy(){this.alive=!1,this.dateComp=this.context.destroyBean(this.dateComp)}getDate(){return this.dateComp?this.dateComp.getDate():this.tempValue}setDate(e){const t=this.dateComp;t?t.setDate(e):this.tempValue=e}setDisabled(e){const t=this.dateComp;t?t.setDisabled?.(e):this.disabled=e}setDisplayed(e){_setDisplayed(this.eParent,e)}setInputPlaceholder(e){this.dateComp?.setInputPlaceholder?.(e)}setInputAriaLabel(e){this.dateComp?.setInputAriaLabel?.(e)}afterGuiAttached(e){this.dateComp?.afterGuiAttached?.(e)}updateParams(e){this.dateComp?.refresh?.(e)}},sr=["equals","notEqual","lessThan","greaterThan","inRange","blank","notBlank"];function mapValuesFromDateFilterModel(e,t){const{dateFrom:o,dateTo:i,type:s}=e||{};return[o&&_parseDateTimeFromString(o)||null,i&&_parseDateTimeFromString(i)||null].slice(0,getNumberOfInputs(s,t))}var nr=1/0,rr=class extends I{constructor(e,t){super(),this.mapValuesFromModel=e,this.defaultOptions=t}init(e){const t=e.filterParams,o=new tr;this.optionsFactory=o,o.init(t,this.defaultOptions),this.filterModelFormatter=this.createManagedBean(new this.FilterModelFormatterClass(o,t)),this.updateParams(e),this.validateModel(e)}refresh(e){if("colDef"===e.source){const t=e.filterParams,o=this.optionsFactory;o.refresh(t,this.defaultOptions),this.filterModelFormatter.updateParams({optionsFactory:o,filterParams:t}),this.updateParams(e)}this.validateModel(e)}updateParams(e){this.params=e}doesFilterPass(e){const t=e.model;if(null==t)return!0;const{operator:o}=t,i=[];if(o){const e=t;i.push(...e.conditions??[])}else i.push(t);const s=o&&"OR"===o?"some":"every",n=this.params.getValue(e.node);return i[s]((t=>this.individualConditionPasses(e,t,n)))}getModelAsString(e,t){return this.filterModelFormatter.getModelAsString(e,t)??""}validateModel(e){const{model:t,filterParams:{filterOptions:o,maxNumConditions:i}}=e;if(null==t)return;const s=function isCombinedFilterModel(e){return!!e.operator}(t);let n=s?t.conditions:[t];const r=o?.map((e=>"string"==typeof e?e:e.displayKey))??this.defaultOptions;if(!(!n||n.every((e=>void 0!==r.find((t=>t===e.type))))))return this.params={...e,model:null},void e.onModelChange(null);let a=!1;const l=this.filterType;if((n&&!n.every((e=>e.filterType===l))||t.filterType!==l)&&(n=n.map((e=>({...e,filterType:l}))),a=!0),"number"==typeof i&&n&&n.length>i&&(n=n.slice(0,i),a=!0),a){const o=n.length>1?{...t,filterType:l,conditions:n}:{...n[0],filterType:l};return this.params={...e,model:o},void e.onModelChange(o)}}individualConditionPasses(e,t,o){const i=this.optionsFactory,s=this.mapValuesFromModel(t,i),n=function evaluateCustomFilter(e,t,o){if(null==e)return;const{predicate:i}=e;return null==i||t.some((e=>null==e))?void 0:i(t,o)}(i.getCustomOption(t.type),s,o);return null!=n?n:null==o?this.evaluateNullValue(t.type):this.evaluateNonNullValue(s,o,t,e)}},ar=class extends rr{evaluateNullValue(e){const{includeBlanksInEquals:t,includeBlanksInNotEqual:o,includeBlanksInGreaterThan:i,includeBlanksInLessThan:s,includeBlanksInRange:n}=this.params.filterParams;switch(e){case"equals":if(t)return!0;break;case"notEqual":if(o)return!0;break;case"greaterThan":case"greaterThanOrEqual":if(i)return!0;break;case"lessThan":case"lessThanOrEqual":if(s)return!0;break;case"inRange":if(n)return!0;break;case"blank":return!0;case"notBlank":return!1}return!1}evaluateNonNullValue(e,t,o){const i=o.type;if(!this.isValid(t))return"notEqual"===i||"notBlank"===i;const s=this.comparator(),n=null!=e[0]?s(e[0],t):0;switch(i){case"equals":return 0===n;case"notEqual":return 0!==n;case"greaterThan":return n>0;case"greaterThanOrEqual":return n>=0;case"lessThan":return n<0;case"lessThanOrEqual":return n<=0;case"inRange":{const o=s(e[1],t);return this.params.filterParams.inRangeInclusive?n>=0&&o<=0:n>0&&o<0}case"blank":return isBlank(t);case"notBlank":return!isBlank(t);default:return _warn(76,{filterModelType:i}),!0}}},lr={equals:"Equals",notEqual:"NotEqual",greaterThan:"GreaterThan",greaterThanOrEqual:"GreaterThanOrEqual",lessThan:"LessThan",lessThanOrEqual:"LessThanOrEqual",inRange:"InRange"},dr={contains:"Contains",notContains:"NotContains",equals:"TextEquals",notEqual:"TextNotEqual",startsWith:"StartsWith",endsWith:"EndsWith",inRange:"InRange"},cr=class extends I{constructor(e,t,o){super(),this.optionsFactory=e,this.filterParams=t,this.valueFormatter=o}getModelAsString(e,t){const o=this.getLocaleTextFunc(),i="filterToolPanel"===t;if(!e)return i?translateForFilter(this,"filterSummaryInactive"):null;if(null!=e.operator){const o=e,i=(o.conditions??[]).map((e=>this.getModelAsString(e,t))),s="AND"===o.operator?"andCondition":"orCondition";return i.join(` ${translateForFilter(this,s)} `)}if("blank"===e.type||"notBlank"===e.type)return i?translateForFilter(this,"blank"===e.type?"filterSummaryBlank":"filterSummaryNotBlank"):o(e.type,e.type);{const t=e,s=this.optionsFactory.getCustomOption(t.type),{displayKey:n,displayName:r,numberOfInputs:a}=s||{};return n&&r&&0===a?o(n,r):this.conditionToString(t,i,"inRange"===t.type||2===a,n,r)}}updateParams(e){const{optionsFactory:t,filterParams:o}=e;this.optionsFactory=t,this.filterParams=o}conditionForToolPanel(e,t,o,i,s,n){let r;const a=this.getTypeKey(e);return a&&(r=translateForFilter(this,a)),s&&n&&(r=this.getLocaleTextFunc()(s,n)),null!=r?t?`${r} ${translateForFilter(this,"filterSummaryInRangeValues",[o(),i()])}`:`${r} ${o()}`:null}getTypeKey(e){const t=this.filterTypeKeys[e];return t?`filterSummary${t}`:null}formatValue(e){const t=this.valueFormatter;return t?t(e??null)??"":String(e)}},hr=class extends cr{constructor(e,t){super(e,t,(e=>{const{dataTypeSvc:o,valueSvc:i}=this.beans,s=t.column,n=o?.getDateFormatterFunction(s),r=n?.(e??void 0);return i.formatValue(s,null,r)})),this.filterTypeKeys=lr}conditionToString(e,t,o,i,s){const{type:n}=e,r=_parseDateTimeFromString(e.dateFrom),a=_parseDateTimeFromString(e.dateTo),l=this.filterParams.inRangeFloatingFilterDateFormat,d=t?this.formatValue.bind(this):e=>_dateToFormattedString(e,l),formattedFrom=()=>null!==r?d(r):"null",formattedTo=()=>null!==a?d(a):"null";if(t){const e=this.conditionForToolPanel(n,o,formattedFrom,formattedTo,i,s);if(null!=e)return e}return o?`${formattedFrom()}-${formattedTo()}`:null!=r?d(r):`${n}`}};function defaultDateComparator(e,t){return t<e?-1:t>e?1:0}var ur=class extends Q{constructor(){super(...arguments),this.defaultDebounceMs=0}setLastTypeFromModel(e){if(!e)return void(this.lastType=this.optionsFactory.defaultOption);let t;if(e.operator){t=e.conditions[0]}else t=e;this.lastType=t.type}canWeEditAfterModelFromParentFilter(e){if(!e)return this.isTypeEditable(this.lastType);if(e.operator)return!1;const t=e;return this.isTypeEditable(t.type)}init(e){this.params=e;const t=this.gos.get("enableFilterHandlers");if(this.reactive=t,this.setParams(e),t){const t=e;this.onModelUpdated(t.model)}}setParams(e){const t=new tr;this.optionsFactory=t,t.init(e.filterParams,this.defaultOptions),this.filterModelFormatter=this.createManagedBean(new this.FilterModelFormatterClass(t,e.filterParams)),this.setSimpleParams(e,!1)}setSimpleParams(e,t=!0){const o=this.optionsFactory.defaultOption;t||(this.lastType=o),this.readOnly=!!e.filterParams.readOnly;const i=this.isTypeEditable(o);this.setEditable(i)}refresh(e){this.params=e;const t=e,o=this.reactive;if(o&&"colDef"!==t.source||this.updateParams(e),o){const{source:e,model:o}=t;if("dataChanged"===e||"ui"===e)return;this.onModelUpdated(o)}}updateParams(e){const t=this.optionsFactory;t.refresh(e.filterParams,this.defaultOptions),this.setSimpleParams(e),this.filterModelFormatter.updateParams({optionsFactory:t,filterParams:e.filterParams})}onParentModelChanged(e,t){t?.afterFloatingFilter||t?.afterDataChange||this.onModelUpdated(e)}hasSingleInput(e){const t=this.optionsFactory.getCustomOption(e)?.numberOfInputs;return null==t||1==t}isTypeEditable(e){return!!e&&!this.readOnly&&this.hasSingleInput(e)&&["inRange","empty","blank","notBlank"].indexOf(e)<0}getAriaLabel(e){return`${this.beans.colNames.getDisplayNameForColumn(e.column,"header",!0)} ${this.getLocaleTextFunc()("ariaFilterInput","Filter Input")}`}},gr={tag:"div",cls:"ag-floating-filter-input",role:"presentation",children:[{tag:"ag-input-text-field",ref:"eReadOnlyText"},{tag:"div",ref:"eDateWrapper",cls:"ag-date-floating-filter-wrapper"}]},pr={tag:"div",cls:"ag-filter-filter",children:[{tag:"ag-input-text-field",ref:"eDateInput",cls:"ag-date-filter"}]},mr=["equals","notEqual","greaterThan","greaterThanOrEqual","lessThan","lessThanOrEqual","inRange","blank","notBlank"];function getAllowedCharPattern(e){const{allowedCharPattern:t}=e??{};return t??null}function processNumberFilterValue(e){return null==e||isNaN(e)?null:e}function mapValuesFromNumberFilterModel(e,t){const{filter:o,filterTo:i,type:s}=e||{};return[processNumberFilterValue(o),processNumberFilterValue(i)].slice(0,getNumberOfInputs(s,t))}var fr=class extends cr{constructor(e,t){super(e,t,t.numberFormatter),this.filterTypeKeys=lr}conditionToString(e,t,o,i,s){const{filter:n,filterTo:r,type:a}=e,l=this.formatValue.bind(this);if(t){const e=this.conditionForToolPanel(a,o,(()=>l(n)),(()=>l(r)),i,s);if(null!=e)return e}return o?`${l(n)}-${l(r)}`:null!=n?l(n):`${a}`}},Cr=class extends I{constructor(e){super(),this.params=e,this.eInput=q,this.onValueChanged=()=>{}}setupGui(e){this.eInput=this.createManagedBean(new No(this.params?.config));const t=this.eInput.getGui();e.appendChild(t);const listener=e=>this.onValueChanged(e);this.addManagedListeners(t,{input:listener,keydown:listener})}setEditable(e){this.eInput.setDisabled(!e)}getValue(){return this.eInput.getValue()}setValue(e,t){this.eInput.setValue(e,t)}setValueChangedListener(e){this.onValueChanged=e}setParams({ariaLabel:e,autoComplete:t}){const{eInput:o}=this;o.setInputAriaLabel(e),void 0!==t&&o.setAutoComplete(t)}};function trimInputForFilter(e){const t=e?.trim();return""===t?e:t}function mapValuesFromTextFilterModel(e,t){const{filter:o,filterTo:i,type:s}=e||{};return[o||null,i||null].slice(0,getNumberOfInputs(s,t))}var wr={tag:"div",ref:"eFloatingFilterInputContainer",cls:"ag-floating-filter-input",role:"presentation"},vr=class extends ur{constructor(){super(...arguments),this.eFloatingFilterInputContainer=q,this.defaultDebounceMs=500}postConstruct(){this.setTemplate(wr)}onModelUpdated(e){this.setLastTypeFromModel(e),this.setEditable(this.canWeEditAfterModelFromParentFilter(e)),this.inputSvc.setValue(this.filterModelFormatter.getModelAsString(e))}setParams(e){this.setupFloatingFilterInputService(e),super.setParams(e),this.setTextInputParams(e)}setupFloatingFilterInputService(e){this.inputSvc=this.createFloatingFilterInputService(e),this.inputSvc.setupGui(this.eFloatingFilterInputContainer)}setTextInputParams(e){const t=e.browserAutoComplete??!1,{inputSvc:o,defaultDebounceMs:i,readOnly:s}=this;if(o.setParams({ariaLabel:this.getAriaLabel(e),autoComplete:t}),this.applyActive=_isUseApplyButton(e.filterParams),!s){const t=getDebounceMs(e.filterParams,i),s=_debounce(this,this.syncUpWithParentFilter.bind(this),t);o.setValueChangedListener(s)}}updateParams(e){super.updateParams(e),this.setTextInputParams(e)}recreateFloatingFilterInputService(e){const{inputSvc:t}=this,o=t.getValue();_clearElement(this.eFloatingFilterInputContainer),this.destroyBean(t),this.setupFloatingFilterInputService(e),t.setValue(o,!0)}syncUpWithParentFilter(e){const t=e.key===xe,o=this.reactive;if(o){this.params.onUiChange()}if(this.applyActive&&!t)return;const{inputSvc:i,params:s,lastType:n}=this;let r=i.getValue();if(s.filterParams.trimInput&&(r=trimInputForFilter(r),i.setValue(r,!0)),o){const e=s,t=e.model,o=this.convertValue(r),i=null==o?null:{...t??{filterType:this.filterType,type:n??this.optionsFactory.defaultOption},filter:o};e.onModelChange(i,{afterFloatingFilter:!0})}else s.parentFilterInstance((e=>{e?.onFloatingFilterChanged(n||null,r||null)}))}convertValue(e){return e||null}setEditable(e){this.inputSvc.setEditable(e)}},br=class extends I{constructor(){super(...arguments),this.onValueChanged=()=>{},this.numberInputActive=!0}setupGui(e){this.eNumberInput=this.createManagedBean(new Ho),this.eTextInput=this.createManagedBean(new No),this.eTextInput.setDisabled(!0);const t=this.eNumberInput.getGui(),o=this.eTextInput.getGui();e.appendChild(t),e.appendChild(o),this.setupListeners(t,(e=>this.onValueChanged(e))),this.setupListeners(o,(e=>this.onValueChanged(e)))}setEditable(e){this.numberInputActive=e,this.eNumberInput.setDisplayed(this.numberInputActive),this.eTextInput.setDisplayed(!this.numberInputActive)}setAutoComplete(e){this.eNumberInput.setAutoComplete(e),this.eTextInput.setAutoComplete(e)}getValue(){return this.getActiveInputElement().getValue()}setValue(e,t){this.getActiveInputElement().setValue(e,t)}getActiveInputElement(){return this.numberInputActive?this.eNumberInput:this.eTextInput}setValueChangedListener(e){this.onValueChanged=e}setupListeners(e,t){this.addManagedListeners(e,{input:t,keydown:t})}setParams(e){this.setAriaLabel(e.ariaLabel),void 0!==e.autoComplete&&this.setAutoComplete(e.autoComplete)}setAriaLabel(e){this.eNumberInput.setInputAriaLabel(e),this.eTextInput.setInputAriaLabel(e)}},Sr=["contains","notContains","equals","notEqual","startsWith","endsWith","blank","notBlank"],yr=class extends cr{constructor(){super(...arguments),this.filterTypeKeys=dr}conditionToString(e,t,o,i,s){const{filter:n,filterTo:r,type:a}=e;if(t){const getValueFunc=e=>()=>translateForFilter(this,"filterSummaryTextQuote",[e]),e=this.conditionForToolPanel(a,o,getValueFunc(n),getValueFunc(r),i,s);if(null!=e)return e}return o?`${n}-${r}`:null!=n?`${n}`:`${a}`}},defaultMatcher=({filterOption:e,value:t,filterText:o})=>{if(null==o)return!1;switch(e){case"contains":return t.indexOf(o)>=0;case"notContains":return t.indexOf(o)<0;case"equals":return t===o;case"notEqual":return t!=o;case"startsWith":return 0===t.indexOf(o);case"endsWith":{const e=t.lastIndexOf(o);return e>=0&&e===t.length-o.length}default:return!1}},defaultFormatter=e=>e,defaultLowercaseFormatter=e=>null==e?null:e.toString().toLowerCase();var Rr={moduleName:"ClientSideRowModelFilter",version:R,rowModels:["clientSide"],beans:[class extends I{constructor(){super(...arguments),this.beanName="filterStage",this.refreshProps=new Set(["excludeChildrenWhenTreeDataFiltering"]),this.step="filter"}wireBeans(e){this.filterManager=e.filterManager}execute(e){const{changedPath:t}=e;this.filter(t)}filter(e){const t=!!this.filterManager?.isChildFilterPresent();this.filterNodes(t,e)}filterNodes(e,t){const filterCallback=(t,o)=>{t.hasChildren()?t.childrenAfterFilter=e&&!o?t.childrenAfterGroup.filter((e=>{const t=e.childrenAfterFilter&&e.childrenAfterFilter.length>0,o=e.data&&this.filterManager.doesRowPassFilter({rowNode:e});return t||o})):t.childrenAfterGroup:t.childrenAfterFilter=t.childrenAfterGroup,updateRowNodeAfterFilter(t)};if(this.doingTreeDataFiltering()){const treeDataDepthFirstFilter=(e,t)=>{if(e.childrenAfterGroup)for(let o=0;o<e.childrenAfterGroup.length;o++){const i=e.childrenAfterGroup[o],s=t||this.filterManager.doesRowPassFilter({rowNode:i});i.childrenAfterGroup?treeDataDepthFirstFilter(e.childrenAfterGroup[o],s):filterCallback(i,s)}filterCallback(e,t)},treeDataFilterCallback=e=>treeDataDepthFirstFilter(e,!1);t.executeFromRootNode(treeDataFilterCallback)}else{const defaultFilterCallback=e=>filterCallback(e,!1);t.forEachChangedNodeDepthFirst(defaultFilterCallback,!0)}}doingTreeDataFiltering(){return this.gos.get("treeData")&&!this.gos.get("excludeChildrenWhenTreeDataFiltering")}}]},Fr={moduleName:"FilterCore",version:R,beans:[class extends I{constructor(){super(...arguments),this.beanName="filterManager",this.advFilterModelUpdateQueue=[]}wireBeans(e){this.quickFilter=e.quickFilter,this.advancedFilter=e.advancedFilter,this.colFilter=e.colFilter}postConstruct(){const e=this.refreshFiltersForAggregations.bind(this),t=this.updateAdvFilterColumns.bind(this);this.addManagedEventListeners({columnValueChanged:e,columnPivotChanged:e,columnPivotModeChanged:e,newColumnsLoaded:t,columnVisible:t,advancedFilterEnabledChanged:({enabled:e})=>this.onAdvFilterEnabledChanged(e),dataTypesInferred:this.processFilterModelUpdateQueue.bind(this)}),this.externalFilterPresent=this.isExternalFilterPresentCallback(),this.addManagedPropertyListeners(["isExternalFilterPresent","doesExternalFilterPass"],(()=>{this.onFilterChanged({source:"api"})})),this.updateAggFiltering(),this.addManagedPropertyListener("groupAggFiltering",(()=>{this.updateAggFiltering(),this.onFilterChanged()})),this.quickFilter&&this.addManagedListeners(this.quickFilter,{quickFilterChanged:()=>this.onFilterChanged({source:"quickFilter"})});const{gos:o}=this;this.alwaysPassFilter=o.get("alwaysPassFilter"),this.addManagedPropertyListener("alwaysPassFilter",(()=>{this.alwaysPassFilter=o.get("alwaysPassFilter"),this.onFilterChanged({source:"api"})}))}isExternalFilterPresentCallback(){const e=this.gos.getCallback("isExternalFilterPresent");return"function"==typeof e&&e({})}doesExternalFilterPass(e){const t=this.gos.get("doesExternalFilterPass");return"function"==typeof t&&t(e)}setFilterState(e,t,o="api"){this.isAdvFilterEnabled()||this.colFilter?.setState(e,t,o)}setFilterModel(e,t="api",o){this.isAdvFilterEnabled()?o||this.warnAdvFilters():this.colFilter?.setModel(e,t)}getFilterModel(){return this.colFilter?.getModel()??{}}getFilterState(){return this.colFilter?.getState()}isColumnFilterPresent(){return!!this.colFilter?.isFilterPresent()}isAggregateFilterPresent(){return!!this.colFilter?.isAggFilterPresent()}isChildFilterPresent(){return this.isColumnFilterPresent()||this.isQuickFilterPresent()||this.externalFilterPresent||this.isAdvFilterPresent()}isAnyFilterPresent(){return this.isChildFilterPresent()||this.isAggregateFilterPresent()}isAdvFilterPresent(){return this.isAdvFilterEnabled()&&this.advancedFilter.isFilterPresent()}onAdvFilterEnabledChanged(e){e?this.colFilter?.disableFilters()&&this.onFilterChanged({source:"advancedFilter"}):this.advancedFilter?.isFilterPresent()&&(this.advancedFilter.setModel(null),this.onFilterChanged({source:"advancedFilter"}))}isAdvFilterEnabled(){return!!this.advancedFilter?.isEnabled()}isAdvFilterHeaderActive(){return this.isAdvFilterEnabled()&&this.advancedFilter.isHeaderActive()}refreshFiltersForAggregations(){_getGroupAggFiltering(this.gos)&&this.onFilterChanged()}onFilterChanged(e={}){const{source:t,additionalEventAttributes:o,columns:i=[]}=e;this.externalFilterPresent=this.isExternalFilterPresentCallback(),(this.colFilter?this.colFilter.updateBeforeFilterChanged(e):Y.resolve()).then((()=>{const e={source:t,type:"filterChanged",columns:i};o&&_mergeDeep(e,o),this.eventSvc.dispatchEvent(e),this.colFilter?.updateAfterFilterChanged()}))}isSuppressFlashingCellsBecauseFiltering(){return!!this.colFilter?.isSuppressFlashingCellsBecauseFiltering()}isQuickFilterPresent(){return!!this.quickFilter?.isFilterPresent()}updateAggFiltering(){this.aggFiltering=!!_getGroupAggFiltering(this.gos)}isAggregateQuickFilterPresent(){return this.isQuickFilterPresent()&&this.shouldApplyQuickFilterAfterAgg()}isNonAggregateQuickFilterPresent(){return this.isQuickFilterPresent()&&!this.shouldApplyQuickFilterAfterAgg()}shouldApplyQuickFilterAfterAgg(){return(this.aggFiltering||this.beans.colModel.isPivotMode())&&!this.gos.get("applyQuickFilterBeforePivotOrAgg")}doesRowPassOtherFilters(e,t){return this.doesRowPassFilter({rowNode:t,colIdToSkip:e})}doesRowPassAggregateFilters(e){const{rowNode:t}=e;return!!this.alwaysPassFilter?.(t)||!(this.isAggregateQuickFilterPresent()&&!this.quickFilter.doesRowPass(t))&&!(this.isAggregateFilterPresent()&&!this.colFilter.doFiltersPass(t,e.colIdToSkip,!0))}doesRowPassFilter(e){const{rowNode:t}=e;return!!this.alwaysPassFilter?.(t)||!(this.isNonAggregateQuickFilterPresent()&&!this.quickFilter.doesRowPass(t))&&(!(this.externalFilterPresent&&!this.doesExternalFilterPass(t))&&(!(this.isColumnFilterPresent()&&!this.colFilter.doFiltersPass(t,e.colIdToSkip))&&!(this.isAdvFilterPresent()&&!this.advancedFilter.doesFilterPass(t))))}isFilterAllowed(e){return!this.isAdvFilterEnabled()&&!!this.colFilter?.isFilterAllowed(e)}getAdvFilterModel(){return this.isAdvFilterEnabled()?this.advancedFilter.getModel():null}setAdvFilterModel(e,t="api"){this.isAdvFilterEnabled()&&(this.beans.dataTypeSvc?.isPendingInference?this.advFilterModelUpdateQueue.push(e):(this.advancedFilter.setModel(e??null),this.onFilterChanged({source:t})))}toggleAdvFilterBuilder(e,t){this.isAdvFilterEnabled()&&this.advancedFilter.getCtrl().toggleFilterBuilder({source:t,force:e})}updateAdvFilterColumns(){this.isAdvFilterEnabled()&&this.advancedFilter.updateValidity()&&this.onFilterChanged({source:"advancedFilter"})}hasFloatingFilters(){return!this.isAdvFilterEnabled()&&!!this.colFilter?.hasFloatingFilters()}getColumnFilterInstance(e){return this.isAdvFilterEnabled()?(this.warnAdvFilters(),Promise.resolve(void 0)):this.colFilter?.getFilterInstance(e)??Promise.resolve(void 0)}warnAdvFilters(){_warn(68)}setupAdvFilterHeaderComp(e){this.advancedFilter?.getCtrl().setupHeaderComp(e)}getHeaderRowCount(){return this.isAdvFilterHeaderActive()?1:0}getHeaderHeight(){return this.isAdvFilterHeaderActive()?this.advancedFilter.getCtrl().getHeaderHeight():0}processFilterModelUpdateQueue(){this.advFilterModelUpdateQueue.forEach((e=>this.setAdvFilterModel(e))),this.advFilterModelUpdateQueue=[]}setColumnFilterModel(e,t){return this.isAdvFilterEnabled()?(this.warnAdvFilters(),Promise.resolve()):this.colFilter?.setModelForColumn(e,t)??Promise.resolve()}}],apiFunctions:{isAnyFilterPresent:function isAnyFilterPresent(e){return!!e.filterManager?.isAnyFilterPresent()},onFilterChanged:function onFilterChanged(e,t="api"){e.filterManager?.onFilterChanged({source:t})}},css:[".ag-set-filter{--ag-indentation-level:0}.ag-set-filter-item{align-items:center;display:flex;height:100%}:where(.ag-ltr) .ag-set-filter-item{padding-left:calc(var(--ag-widget-container-horizontal-padding) + var(--ag-indentation-level)*var(--ag-set-filter-indent-size))}:where(.ag-rtl) .ag-set-filter-item{padding-right:calc(var(--ag-widget-container-horizontal-padding) + var(--ag-indentation-level)*var(--ag-set-filter-indent-size))}.ag-set-filter-item-checkbox{display:flex;height:100%;width:100%}.ag-set-filter-group-icons{display:block;>*{cursor:pointer}}:where(.ag-ltr) .ag-set-filter-group-icons{margin-right:var(--ag-widget-container-horizontal-padding)}:where(.ag-rtl) .ag-set-filter-group-icons{margin-left:var(--ag-widget-container-horizontal-padding)}.ag-filter-body-wrapper{display:flex;flex-direction:column}:where(.ag-menu:not(.ag-tabs) .ag-filter) .ag-filter-body-wrapper,:where(.ag-menu:not(.ag-tabs) .ag-filter)>:not(.ag-filter-wrapper){min-width:180px}.ag-filter-filter{flex:1 1 0px}.ag-filter-condition{display:flex;justify-content:center}.ag-floating-filter-body{display:flex;flex:1 1 auto;height:100%;position:relative}.ag-floating-filter-full-body{align-items:center;display:flex;flex:1 1 auto;height:100%;overflow:hidden;width:100%}:where(.ag-floating-filter-full-body)>div{flex:1 1 auto}.ag-floating-filter-input{align-items:center;display:flex;width:100%;>*{flex:1 1 auto}:where(.ag-input-field-input[type=date]),:where(.ag-input-field-input[type=datetime-local]){width:1px}}.ag-floating-filter-button{display:flex;flex:none}.ag-date-floating-filter-wrapper{display:flex}.ag-set-floating-filter-input :where(input)[disabled]{pointer-events:none}.ag-floating-filter-button-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;height:var(--ag-icon-size);width:var(--ag-icon-size)}.ag-filter-loading{align-items:unset;background-color:var(--ag-chrome-background-color);height:100%;padding:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding);position:absolute;width:100%;z-index:1;:where(.ag-menu) &{background-color:var(--ag-menu-background-color)}}.ag-filter-separator{border-top:solid var(--ag-border-width) var(--menu-separator-color)}:where(.ag-filter-select) .ag-picker-field-wrapper{width:0}.ag-filter-condition-operator{height:17px}:where(.ag-ltr) .ag-filter-condition-operator-or{margin-left:calc(var(--ag-spacing)*2)}:where(.ag-rtl) .ag-filter-condition-operator-or{margin-right:calc(var(--ag-spacing)*2)}.ag-set-filter-select-all{padding-top:var(--ag-widget-container-vertical-padding)}.ag-filter-no-matches,.ag-set-filter-list{height:calc(var(--ag-list-item-height)*6)}.ag-filter-no-matches{padding:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding)}.ag-set-filter-tree-list{height:calc(var(--ag-list-item-height)*10)}.ag-set-filter-filter{margin-left:var(--ag-widget-container-horizontal-padding);margin-right:var(--ag-widget-container-horizontal-padding);margin-top:var(--ag-widget-container-vertical-padding)}.ag-filter-to{margin-top:var(--ag-widget-vertical-spacing)}.ag-mini-filter{margin:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding)}:where(.ag-ltr) .ag-set-filter-add-group-indent{margin-left:calc(var(--ag-icon-size) + var(--ag-widget-container-horizontal-padding))}:where(.ag-rtl) .ag-set-filter-add-group-indent{margin-right:calc(var(--ag-icon-size) + var(--ag-widget-container-horizontal-padding))}:where(.ag-filter-menu) .ag-set-filter-list{min-width:200px}.ag-filter-virtual-list-item:focus-visible{box-shadow:inset var(--ag-focus-shadow)}.ag-filter-apply-panel{display:flex;justify-content:flex-end;overflow:hidden;padding:var(--ag-widget-vertical-spacing) var(--ag-widget-container-horizontal-padding) var(--ag-widget-container-vertical-padding)}.ag-filter-apply-panel-button{line-height:1.5}:where(.ag-ltr) .ag-filter-apply-panel-button{margin-left:calc(var(--ag-spacing)*2)}:where(.ag-rtl) .ag-filter-apply-panel-button{margin-right:calc(var(--ag-spacing)*2)}.ag-simple-filter-body-wrapper{display:flex;flex-direction:column;min-height:calc(var(--ag-list-item-height) + var(--ag-widget-container-vertical-padding) + var(--ag-widget-vertical-spacing));overflow-y:auto;padding:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding);padding-bottom:calc(var(--ag-widget-container-vertical-padding) - var(--ag-widget-vertical-spacing));&>*{margin-bottom:var(--ag-widget-vertical-spacing)}:where(.ag-resizer-wrapper){margin:0}}.ag-multi-filter-menu-item{margin:var(--ag-spacing) 0}.ag-multi-filter-group-title-bar{background-color:transparent;color:var(--ag-header-text-color);font-weight:500;padding:calc(var(--ag-spacing)*1.5) var(--ag-spacing)}.ag-group-filter-field-select-wrapper{display:flex;flex-direction:column;gap:var(--ag-widget-vertical-spacing);padding:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding)}"],dependsOn:[Rr]},Er={moduleName:"FilterValue",version:R,beans:[class extends I{constructor(){super(...arguments),this.beanName="filterValueSvc"}getValue(e,t,o){if(!t)return;const i=e.getColDef(),{selectableFilter:s,valueSvc:n}=this.beans,r=o??s?.getFilterValueGetter(e.getColId())??i.filterValueGetter;return r?this.executeFilterValueGetter(r,t.data,e,t,i):n.getValue(e,t)}executeFilterValueGetter(e,t,o,i,s){const{expressionSvc:n,valueSvc:r}=this.beans,a=_addGridCommonParams(this.gos,{data:t,node:i,column:o,colDef:s,getValue:r.getValueCallback.bind(r,i)});return"function"==typeof e?e(a):n?.evaluate(e,a)}}]},Pr={moduleName:"ColumnFilter",version:R,beans:[class extends I{constructor(){super(...arguments),this.beanName="colFilter",this.allColumnFilters=new Map,this.allColumnListeners=new Map,this.activeAggregateFilters=[],this.activeColumnFilters=[],this.processingFilterChange=!1,this.modelUpdates=[],this.columnModelUpdates=[],this.state=new Map,this.handlerMap={...ct},this.isGlobalButtons=!1,this.activeFilterComps=new Set}postConstruct(){this.addManagedEventListeners({gridColumnsChanged:this.onColumnsChanged.bind(this),beforeRefreshModel:({params:e,groupsChanged:t})=>{(t||e.rowDataUpdated)&&this.onNewRowsLoaded("rowDataUpdated")},dataTypesInferred:this.processFilterModelUpdateQueue.bind(this)});const e=this.gos,t={...e.get("initialState")?.filter?.filterModel??{}};this.initialModel=t,this.model={...t},e.get("enableFilterHandlers")||delete this.handlerMap.agMultiColumnFilter}setModel(e,t="api"){const{colModel:o,dataTypeSvc:i,filterManager:s}=this.beans;if(i?.isPendingInference)return void this.modelUpdates.push({model:e,source:t});const n=[],r=this.getModel(!0);if(e){const t=new Set(Object.keys(e));this.allColumnFilters.forEach(((o,i)=>{const s=e[i];n.push(this.setModelOnFilterWrapper(o,s)),t.delete(i)})),t.forEach((t=>{const i=o.getColDefCol(t)||o.getCol(t);if(!i)return void _warn(62,{colId:t});if(!i.isFilterAllowed())return void _warn(63,{colId:t});const s=this.getOrCreateFilterWrapper(i,!0);s?n.push(this.setModelOnFilterWrapper(s,e[t],!0)):_warn(64,{colId:t})}))}else this.model={},this.allColumnFilters.forEach((e=>{n.push(this.setModelOnFilterWrapper(e,null))}));Y.all(n).then((()=>{const e=this.getModel(!0),o=[];this.allColumnFilters.forEach(((t,i)=>{_jsonEquals(r?r[i]:null,e?e[i]:null)||o.push(t.column)})),o.length>0&&s?.onFilterChanged({columns:o,source:t})}))}getModel(e){const t={},{allColumnFilters:o,initialModel:i,beans:{colModel:s}}=this;if(o.forEach(((e,o)=>{const i=this.getModelFromFilterWrapper(e);_exists(i)&&(t[o]=i)})),!e)for(const e of Object.keys(i)){const n=i[e];_exists(n)&&!o.has(e)&&s.getCol(e)?.isFilterAllowed()&&(t[e]=n)}return t}setState(e,t,o="api"){if(this.state.clear(),t)for(const e of Object.keys(t)){const o=t[e];this.state.set(e,{model:_getFilterModel(this.model,e),state:o})}this.setModel(e,o)}getState(){const e=this.state;if(!e.size)return;const t={};let o=!1;return e.forEach(((e,i)=>{const s=e.state;null!=s&&(o=!0,t[i]=s)})),o?t:void 0}getModelFromFilterWrapper(e){const t=e.column.getColId();if(e.isHandler)return _getFilterModel(this.model,t);const o=e.filter;return o?"function"!=typeof o.getModel?(_warn(66),null):o.getModel():_getFilterModel(this.initialModel,t)}isFilterPresent(){return this.activeColumnFilters.length>0}isAggFilterPresent(){return!!this.activeAggregateFilters.length}disableFilters(){this.initialModel={};const{allColumnFilters:e}=this;return!!e.size&&(e.forEach((e=>this.disposeFilterWrapper(e,"advancedFilterEnabled"))),!0)}updateActiveFilters(){const{colModel:e,gos:t}=this.beans,o=!!_getGroupAggFiltering(t),i=[],s=[],addFilter=(t,n,r)=>{n&&((t=>{if(!t.isPrimary())return!0;const i=!e.isPivotActive();return!(!t.isValueActive()||!i)&&(!!e.isPivotMode()||o)})(t)?i.push(r):s.push(r))},n=[];return this.allColumnFilters.forEach((e=>{const t=e.column,o=t.getColId();if(e.isHandler)n.push(Y.resolve().then((()=>{addFilter(t,this.isHandlerActive(t),{colId:o,isHandler:!0,handler:e.handler,handlerParams:e.handlerParams})})));else{const i=getFilterUiFromWrapper(e);i&&n.push(i.then((e=>{addFilter(t,(e=>!!e&&(e.isFilterActive?e.isFilterActive():(_warn(67),!1)))(e),{colId:o,isHandler:!1,comp:e})})))}})),Y.all(n).then((()=>{this.activeAggregateFilters=i,this.activeColumnFilters=s}))}updateFilterFlagInColumns(e,t){const o=[];return this.allColumnFilters.forEach((i=>{const s=i.column;if(i.isHandler)o.push(Y.resolve().then((()=>{this.setColFilterActive(s,this.isHandlerActive(s),e,t)})));else{const n=getFilterUiFromWrapper(i);n&&o.push(n.then((o=>{this.setColFilterActive(s,o.isFilterActive(),e,t)})))}})),this.beans.groupFilter?.updateFilterFlags(e,t),Y.all(o)}doFiltersPass(e,t,o){const{data:i,aggData:s}=e,n=o?this.activeAggregateFilters:this.activeColumnFilters,r=o?s:i,a=this.model;for(let o=0;o<n.length;o++){const i=n[o],{colId:s,isHandler:l}=i;if(s!==t)if(l){const{handler:t,handlerParams:o}=i;if(!t.doesFilterPass({node:e,data:r,model:_getFilterModel(a,s),handlerParams:o}))return!1}else{const t=i.comp;if("function"!=typeof t.doesFilterPass){_error(91);continue}if(!t.doesFilterPass({node:e,data:r}))return!1}}return!0}getHandlerParams(e){const t=this.allColumnFilters.get(e.getColId());return t?.isHandler?t.handlerParams:void 0}callOnFilterChangedOutsideRenderCycle(e){const{rowRenderer:t,filterManager:o}=this.beans,action=()=>{this.isAlive()&&o?.onFilterChanged(e)};t.isRefreshInProgress()?setTimeout(action,0):action()}updateBeforeFilterChanged(e={}){const{column:t,additionalEventAttributes:o}=e,i=t?.getColId();return this.updateActiveFilters().then((()=>this.updateFilterFlagInColumns("filterChanged",o).then((()=>{this.allColumnFilters.forEach((e=>{const{column:t,isHandler:o}=e;i!==t.getColId()&&(o&&e.handler.onAnyFilterChanged?.(),getFilterUiFromWrapper(e,o)?.then((e=>{"function"==typeof e?.onAnyFilterChanged&&e.onAnyFilterChanged()})))})),this.processingFilterChange=!0}))))}updateAfterFilterChanged(){this.processingFilterChange=!1}isSuppressFlashingCellsBecauseFiltering(){return!(this.gos.get("allowShowChangeAfterFilter")??!1)&&this.processingFilterChange}onNewRowsLoaded(e){const t=[];this.allColumnFilters.forEach((e=>{const o=e.isHandler;o&&e.handler.onNewRowsLoaded?.();const i=getFilterUiFromWrapper(e,o);i&&t.push(i.then((e=>{e.onNewRowsLoaded?.()})))})),Y.all(t).then((()=>this.updateFilterFlagInColumns(e,{afterDataChange:!0}))).then((()=>this.updateActiveFilters()))}createGetValue(e,t){const{filterValueSvc:o,colModel:i}=this.beans;return(s,n)=>{const r=n?i.getCol(n):e;return r?o.getValue(r,s,t):void 0}}isFilterActive(e){const t=this.cachedFilter(e);if(t?.isHandler)return this.isHandlerActive(e);const o=t?.filter;return o?o.isFilterActive():null!=_getFilterModel(this.initialModel,e.getColId())}isHandlerActive(e){const t=_exists(_getFilterModel(this.model,e.getColId()));if(t)return t;const o=this.beans.groupFilter;return!!o?.isGroupFilter(e)&&o.isFilterActive(e)}getOrCreateFilterUi(e){const t=this.getOrCreateFilterWrapper(e,!0);return t?getFilterUiFromWrapper(t):null}getFilterUiForDisplay(e){const t=this.getOrCreateFilterWrapper(e,!0);if(!t)return null;const o=getFilterUiFromWrapper(t);return o?o.then((e=>({comp:e,params:t.filterUi.filterParams,isHandler:t.isHandler}))):null}getHandler(e,t){const o=this.getOrCreateFilterWrapper(e,t);return o?.isHandler?o.handler:void 0}getOrCreateFilterWrapper(e,t){if(!e.isFilterAllowed())return;let o=this.cachedFilter(e);return!o&&t&&(o=this.createFilterWrapper(e),this.setColumnFilterWrapper(e,o)),o}cachedFilter(e){return this.allColumnFilters.get(e.getColId())}getDefaultFilter(e,t=!1){return this.getDefaultFilterFromDataType((()=>this.beans.dataTypeSvc?.getBaseDataType(e)),t)}getDefaultFilterFromDataType(e,t=!1){return function _isSetFilterByDefault(e){return e.isModuleRegistered("SetFilter")&&!e.get("suppressSetFilterByDefault")}(this.gos)?t?"agSetColumnFloatingFilter":"agSetColumnFilter":function _getDefaultSimpleFilter(e,t=!1){return(t?Rt:yt)[e??"text"]}(e(),t)}getDefaultFloatingFilter(e){return this.getDefaultFilter(e,!0)}createFilterComp(e,t,o,i,s,n){const createFilterCompDetails=()=>{const r=this.createFilterCompParams(e,s,n),a=i(r,s);return function _getFilterDetails(e,t,o,i){const s=t.filter;return isColumnFilterComp(s)&&(t={filter:s.component,filterParams:t.filterParams}),e.getCompDetails(t,de,i,o,!0)}(this.beans.userCompFactory,t,a,o)},r=createFilterCompDetails();if(!r)return null;return{compDetails:r,createFilterUi:e=>(e?createFilterCompDetails():r).newAgStackInstance()}}createFilterInstance(e,t,o,i){const s=this.beans.selectableFilter;s?.isSelectable(t)&&(t=s.getFilterDef(e,t));const{handler:n,handlerParams:r,handlerGenerator:a}=this.createHandler(e,t,o)??{},l=this.createFilterComp(e,t,o,i,!!n,"init");if(!l)return{compDetails:null,createFilterUi:null,handler:n,handlerGenerator:a,handlerParams:r};const{compDetails:d,createFilterUi:c}=l;if(this.isGlobalButtons){!!d.params?.buttons?.length||_warn(281,{colId:e.getColId()})}return{compDetails:d,handler:n,handlerGenerator:a,handlerParams:r,createFilterUi:c}}createBaseFilterParams(e,t){const{filterManager:o,rowModel:i}=this.beans;return _addGridCommonParams(this.gos,{column:e,colDef:e.getColDef(),getValue:this.createGetValue(e),doesRowPassOtherFilter:t?()=>!0:t=>o?.doesRowPassOtherFilters(e.getColId(),t)??!0,rowModel:i})}createFilterCompParams(e,t,o,i){const s=this.filterChangedCallbackFactory(e),n=this.createBaseFilterParams(e,i);if(n.filterChangedCallback=s,n.filterModifiedCallback=i?()=>{}:t=>this.filterModified(e,t),t){const t=n,i=e.getColId(),r=_getFilterModel(this.model,i);t.model=r,t.state=this.state.get(i)??{model:r},t.onModelChange=(t,o)=>{this.updateStoredModel(i,t),this.refreshHandlerAndUi(e,t,"ui").then((()=>{s({...o,source:"columnFilter"})}))},t.onStateChange=t=>{this.updateState(e,t),this.updateOrRefreshFilterUi(e)},t.onAction=(t,o,i)=>{this.updateModel(e,t,o),this.dispatchLocalEvent({type:"filterAction",column:e,action:t,event:i})},t.getHandler=()=>this.getHandler(e,!0),t.onUiChange=t=>this.filterUiChanged(e,t),t.source=o}return n}createFilterUiForHandler(e,t){return t?{created:!1,create:t,filterParams:e.params,compDetails:e}:null}createFilterUiLegacy(e,t,o){const i=t(),s={created:!0,create:t,filterParams:e.params,compDetails:e,promise:i};return i.then(o),s}createFilterWrapper(e){const{compDetails:t,handler:o,handlerGenerator:i,handlerParams:s,createFilterUi:n}=this.createFilterInstance(e,e.getColDef(),this.getDefaultFilter(e),(e=>e)),r=e.getColId();if(o)return delete this.initialModel[r],o.init?.({...s,source:"init",model:_getFilterModel(this.model,r)}),{column:e,isHandler:!0,handler:o,handlerGenerator:i,handlerParams:s,filterUi:this.createFilterUiForHandler(t,n)};if(n){const o={column:e,filterUi:null,isHandler:!1};return o.filterUi=this.createFilterUiLegacy(t,n,(e=>{o.filter=e??void 0})),o}return{column:e,filterUi:null,isHandler:!1}}createHandlerFunc(e,t){const{gos:o,frameworkOverrides:i,registry:s}=this.beans;let n;const r=o.get("enableFilterHandlers")?(e=>{const t=e.filter;if(isColumnFilterComp(t)){const e=t.handler;return e||(n=t.doesFilterPass,n?()=>({doesFilterPass:n}):void 0)}return"string"==typeof t?t:void 0})(e):void 0,resolveProvidedFilterHandler=e=>()=>this.createBean(s.createDynamicBean(e,!0));let a,l;if("string"==typeof r){const e=o.get("filterHandlers")?.[r];null!=e?a=e:ht.has(r)&&(a=resolveProvidedFilterHandler(r),l=r)}else a=r;if(!a){let o;const{compName:s,jsComp:n,fwComp:r}=_getFilterCompKeys(i,e);if(s)o=s;else{null==n&&null==r&&!0===e.filter&&(o=t)}l=this.handlerMap[o],l&&(a=resolveProvidedFilterHandler(l))}if(a)return{filterHandler:a,handlerNameOrCallback:n??l}}createHandler(e,t,o){let i=this.createHandlerFunc(t,o);if(!i){const t=this.gos;if(!t.get("enableFilterHandlers"))return;_isClientSideRowModel(t)&&_warn(277,{colId:e.getColId()}),i=Xn}const s=_mergeFilterParamsWithApplicationProvidedParams(this.beans.userCompFactory,t,this.createFilterCompParams(e,!0,"init")),{handlerNameOrCallback:n,filterHandler:r}=i,{handler:a,handlerParams:l}=this.createHandlerFromFunc(e,r,s);return{handler:a,handlerParams:l,handlerGenerator:n??r}}createHandlerFromFunc(e,t,o){const i=e.getColDef();return{handler:t(_addGridCommonParams(this.gos,{column:e,colDef:i})),handlerParams:this.createHandlerParams(e,o)}}createHandlerParams(e,t){const o=e.getColDef(),i=e.getColId(),s=this.filterChangedCallbackFactory(e);return _addGridCommonParams(this.gos,{colDef:o,column:e,getValue:this.createGetValue(e),doesRowPassOtherFilter:e=>this.beans.filterManager?.doesRowPassOtherFilters(i,e)??!0,onModelChange:(t,o)=>{this.updateStoredModel(i,t),this.refreshHandlerAndUi(e,t,"handler").then((()=>{s({...o,source:"columnFilter"})}))},filterParams:t})}onColumnsChanged(){const e=[],{colModel:t,filterManager:o,groupFilter:i}=this.beans;this.allColumnFilters.forEach(((o,i)=>{let s;s=o.column.isPrimary()?t.getColDefCol(i):t.getCol(i),s&&s===o.column||(e.push(o.column),this.disposeFilterWrapper(o,"columnChanged"),this.disposeColumnListener(i))}));const s=i&&e.every((e=>i.isGroupFilter(e)));e.length>0&&!s&&o?.onFilterChanged({columns:e,source:"api"})}isFilterAllowed(e){if(!e.isFilterAllowed())return!1;const t=this.beans.groupFilter;return!t?.isGroupFilter(e)||t.isFilterAllowed(e)}getFloatingFilterCompDetails(e,t){const{userCompFactory:o,frameworkOverrides:i,selectableFilter:s}=this.beans,n=e.getColDef(),r=s?.isSelectable(n)?s.getFilterDef(e,n):n,a=function _getDefaultFloatingFilterType(e,t,o){if(null==t)return null;let i=null;const{compName:s,jsComp:n,fwComp:r}=_getFilterCompKeys(e,t);s?i={agSetColumnFilter:"agSetColumnFloatingFilter",agMultiColumnFilter:"agMultiColumnFloatingFilter",agGroupColumnFilter:"agGroupColumnFloatingFilter",agNumberColumnFilter:"agNumberColumnFloatingFilter",agDateColumnFilter:"agDateColumnFloatingFilter",agTextColumnFilter:"agTextColumnFloatingFilter"}[s]:null==n&&null==r&&!0===t.filter&&(i=o());return i}(i,r,(()=>this.getDefaultFloatingFilter(e)))??"agReadOnlyFloatingFilter",l=this.gos.get("enableFilterHandlers"),d=_mergeFilterParamsWithApplicationProvidedParams(o,r,this.createFilterCompParams(e,l,"init",!0)),c=_addGridCommonParams(this.gos,{column:e,filterParams:d,currentParentModel:()=>this.getCurrentFloatingFilterParentModel(e),parentFilterInstance:t=>{const o=this.getOrCreateFilterUi(e);null!=o&&o.then((e=>{t(_unwrapUserComp(e))}))},showParentFilter:t});if(l){const t=c,o=e.getColId(),i=this.filterChangedCallbackFactory(e);t.onUiChange=t=>this.floatingFilterUiChanged(e,t),t.model=_getFilterModel(this.model,o),t.onModelChange=(t,s)=>{this.updateStoredModel(o,t),this.refreshHandlerAndUi(e,t,"floating",!0).then((()=>{i({...s,source:"columnFilter"})}))},t.getHandler=()=>this.getHandler(e,!0),t.source="init"}return function _getFloatingFilterCompDetails(e,t,o,i){return e.getCompDetails(t,ce,i,o)}(o,n,c,a)}getCurrentFloatingFilterParentModel(e){return this.getModelFromFilterWrapper(this.cachedFilter(e)??{column:e})}destroyFilterUi(e,t,o,i){if(e.isHandler){const s=t.getColId();delete this.initialModel[s],this.state.delete(s);const n=e.filterUi,r=this.createFilterUiForHandler(o,i);e.filterUi=r,n?.created&&n.promise.then((t=>{this.destroyBean(t),this.eventSvc.dispatchEvent({type:"filterDestroyed",source:"paramsUpdated",column:e.column})}))}else this.destroyFilter(t,"paramsUpdated")}destroyFilter(e,t="api"){const o=e.getColId(),i=this.allColumnFilters.get(o);this.disposeColumnListener(o),delete this.initialModel[o],i&&this.disposeFilterWrapper(i,t).then((t=>{t&&this.isAlive()&&this.beans.filterManager?.onFilterChanged({columns:[e],source:"api"})}))}disposeColumnListener(e){const t=this.allColumnListeners.get(e);t&&(this.allColumnListeners.delete(e),t())}disposeFilterWrapper(e,t){let o=!1;const{column:i,isHandler:s,filterUi:n}=e,r=i.getColId();s&&(o=this.isHandlerActive(i),this.destroyBean(e.handler),delete this.model[r],this.state.delete(r));const removeFilter=()=>{this.setColFilterActive(i,!1,"filterDestroyed"),this.allColumnFilters.delete(r),this.eventSvc.dispatchEvent({type:"filterDestroyed",source:t,column:i})};if(n){if(n.created)return n.promise.then((e=>(o=s?o:!!e?.isFilterActive(),this.destroyBean(e),removeFilter(),o)));removeFilter()}return Y.resolve(o)}filterChangedCallbackFactory(e){return t=>{this.callOnFilterChangedOutsideRenderCycle({additionalEventAttributes:t,columns:[e],column:e,source:t?.source??"columnFilter"})}}filterParamsChanged(e,t="api"){const o=this.allColumnFilters.get(e);if(!o)return;const i=this.beans,s=o.column,n=s.getColDef(),r=s.isFilterAllowed(),a=this.getDefaultFilter(s),l=i.selectableFilter,d=l?.isSelectable(n)?l.getFilterDef(s,n):n,c=r?this.createHandlerFunc(d,this.getDefaultFilter(s)):void 0,h=!!c,u=o.isHandler;if(u!=h)return void this.destroyFilter(s,"paramsUpdated");const{compDetails:g,createFilterUi:p}=(r?this.createFilterComp(s,d,a,(e=>e),h,"colDef"):null)??{compDetails:null,createFilterUi:null},m=g?.params??_mergeFilterParamsWithApplicationProvidedParams(i.userCompFactory,d,this.createFilterCompParams(s,h,"colDef"));if(u){const i=c?.handlerNameOrCallback??c?.filterHandler,n=_getFilterModel(this.model,e);if(o.handlerGenerator!=i){const r=o.handler,{handler:a,handlerParams:l}=this.createHandlerFromFunc(s,c.filterHandler,m);o.handler=a,o.handlerParams=l,o.handlerGenerator=i,delete this.model[e],a.init?.({...l,source:"init",model:null}),this.destroyBean(r),null!=n&&this.beans.filterManager?.onFilterChanged({columns:[s],source:t})}else{const e=this.createHandlerParams(s,g?.params);o.handlerParams=e,o.handler.refresh?.({...e,source:"colDef",model:n})}}!this.areFilterCompsDifferent(o.filterUi?.compDetails??null,g)&&o.filterUi&&g?(o.filterUi.filterParams=m,getFilterUiFromWrapper(o,u)?.then((e=>{!1===(!e?.refresh||e.refresh(m))?this.destroyFilterUi(o,s,g,p):this.dispatchLocalEvent({type:"filterParamsChanged",column:s,params:m})}))):this.destroyFilterUi(o,s,g,p)}refreshHandlerAndUi(e,t,o,i){const s=this.cachedFilter(e);if(!s)return i&&this.getOrCreateFilterWrapper(e,!0),Y.resolve();if(!s.isHandler)return Y.resolve();const{filterUi:n,handler:r,handlerParams:a}=s;return function _refreshHandlerAndUi(e,t,o,i,s,n){return t.refresh?.({...o,model:i,source:n}),e().then((e=>{if(e){const{filter:t,filterParams:o}=e;_refreshFilterUi(t,o,i,s,n)}}))}((()=>{if(n){const{created:e,filterParams:t}=n;if(e)return n.promise.then((e=>e?{filter:e,filterParams:t}:void 0));n.refreshed=!0}return Y.resolve(void 0)}),r,a,t,this.state.get(e.getColId())??{model:t},o)}setColumnFilterWrapper(e,t){const o=e.getColId();this.allColumnFilters.set(o,t),this.allColumnListeners.set(o,this.addManagedListeners(e,{colDefChanged:()=>this.filterParamsChanged(o)})[0])}areFilterCompsDifferent(e,t){if(!t||!e)return!0;const{componentClass:o}=e,{componentClass:i}=t;return!(o===i||o?.render&&i?.render&&o.render===i.render)}hasFloatingFilters(){return this.beans.colModel.getCols().some((e=>e.getColDef().floatingFilter))}getFilterInstance(e){const t=this.beans.colModel.getColDefCol(e);if(!t)return Promise.resolve(void 0);const o=this.getOrCreateFilterUi(t);return o?new Promise((e=>{o.then((t=>{e(_unwrapUserComp(t))}))})):Promise.resolve(null)}processFilterModelUpdateQueue(){this.modelUpdates.forEach((({model:e,source:t})=>this.setModel(e,t))),this.modelUpdates=[],this.columnModelUpdates.forEach((({key:e,model:t,resolve:o})=>{this.setModelForColumn(e,t).then((()=>o()))})),this.columnModelUpdates=[]}getModelForColumn(e,t){if(t){const{state:t,model:o}=this,i=e.getColId(),s=t.get(i);return s?s.model??null:_getFilterModel(o,i)}const o=this.cachedFilter(e);return o?this.getModelFromFilterWrapper(o):null}setModelForColumn(e,t){if(this.beans.dataTypeSvc?.isPendingInference){let resolve=()=>{};const o=new Promise((e=>{resolve=e}));return this.columnModelUpdates.push({key:e,model:t,resolve}),o}return new Promise((o=>{this.setModelForColumnLegacy(e,t).then((e=>o(e)))}))}getStateForColumn(e){return this.state.get(e)??{model:_getFilterModel(this.model,e)}}setModelForColumnLegacy(e,t){const o=this.beans.colModel.getColDefCol(e),i=o?this.getOrCreateFilterWrapper(o,!0):null;return i?this.setModelOnFilterWrapper(i,t):Y.resolve()}setColDefPropsForDataType(e,t,o){const i=e.filter,s=!0===i?this.getDefaultFilterFromDataType((()=>t.baseDataType)):i;if("string"!=typeof s)return;let n,r;const a=this.beans,{filterParams:l,filterValueGetter:d}=e;({filterParams:n,filterValueGetter:r}="agMultiColumnFilter"===s?a.multiFilter?.getParamsForDataType(l,d,t,o)??{}:function _getFilterParamsForDataType(e,t,o,i,s,n,r){let a=t,l=o;const d="agSetColumnFilter"===e;l||"object"!==i.baseDataType||d||(l=({column:e,node:t})=>s({column:e,node:t,value:n.valueSvc.getValue(e,t)}));const c=(0,(d?St:bt)[i.baseDataType])({dataTypeDefinition:i,formatValue:s,t:r});return a="object"==typeof t?{...c,...t}:c,{filterParams:a,filterValueGetter:l}}(s,l,d,t,o,a,this.getLocaleTextFunc())),e.filterParams=n,r&&(e.filterValueGetter=r)}setColFilterActive(e,t,o,i){e.filterActive!==t&&(e.filterActive=t,e.dispatchColEvent("filterActiveChanged",o)),e.dispatchColEvent("filterChanged",o,i)}setModelOnFilterWrapper(e,t,o){return new Y((i=>{if(e.isHandler){const s=e.column,n=s.getColId(),r=this.model[n];return this.updateStoredModel(n,t),o&&t===r?void i():void this.refreshHandlerAndUi(s,t,"api").then((()=>i()))}const s=getFilterUiFromWrapper(e);s?s.then((e=>{if("function"!=typeof e?.setModel)return _warn(65),void i();(e.setModel(t)||Y.resolve()).then((()=>i()))})):i()}))}updateStoredModel(e,t){_exists(t)?this.model[e]=t:delete this.model[e];const o={model:t,state:this.state.get(e)?.state};this.state.set(e,o)}filterModified(e,t){this.getOrCreateFilterUi(e)?.then((o=>{this.eventSvc.dispatchEvent({type:"filterModified",column:e,filterInstance:o,...t})}))}filterUiChanged(e,t){this.gos.get("enableFilterHandlers")&&this.eventSvc.dispatchEvent({type:"filterUiChanged",column:e,...t})}floatingFilterUiChanged(e,t){this.gos.get("enableFilterHandlers")&&this.eventSvc.dispatchEvent({type:"floatingFilterUiChanged",column:e,...t})}updateModel(e,t,o){const i=e.getColId(),getFilterUi=()=>this.cachedFilter(e)?.filterUi;_updateFilterModel(t,getFilterUi,(()=>_getFilterModel(this.model,i)),(()=>this.state.get(i)),(t=>this.updateState(e,t)),(e=>getFilterUi()?.filterParams?.onModelChange(e,o)))}updateAllModels(e,t){const o=[];this.allColumnFilters.forEach(((t,i)=>{const s=this.beans.colModel.getColDefCol(i);s&&_updateFilterModel(e,(()=>t.filterUi),(()=>_getFilterModel(this.model,i)),(()=>this.state.get(i)),(e=>this.updateState(s,e)),(t=>{this.updateStoredModel(i,t),this.dispatchLocalEvent({type:"filterAction",column:s,action:e}),o.push(this.refreshHandlerAndUi(s,t,"ui"))}))})),o.length&&Y.all(o).then((()=>{this.callOnFilterChangedOutsideRenderCycle({source:"columnFilter",additionalEventAttributes:t,columns:[]})}))}updateOrRefreshFilterUi(e){const t=e.getColId();getAndRefreshFilterUi((()=>this.cachedFilter(e)?.filterUi),(()=>_getFilterModel(this.model,t)),(()=>this.state.get(t)))}updateState(e,t){this.state.set(e.getColId(),t),this.dispatchLocalEvent({type:"filterStateChanged",column:e,state:t})}canApplyAll(){const{state:e,model:t,activeFilterComps:o}=this;for(const e of o)if("COLUMN_MENU"===e.source)return!1;let i=!1;for(const o of e.keys()){const s=e.get(o);if(!1===s.valid)return!1;(s.model??null)!==_getFilterModel(t,o)&&(i=!0)}return i}hasUnappliedModel(e){const{model:t,state:o}=this;return(o.get(e)?.model??null)!==_getFilterModel(t,e)}setGlobalButtons(e){this.isGlobalButtons=e,this.dispatchLocalEvent({type:"filterGlobalButtons",isGlobal:e})}shouldKeepStateOnDetach(e,t){if("newFiltersToolPanel"===t)return!0;const o=this.beans.filterPanelSvc;return!!o?.isActive&&!!o.getState(e.getColId())}destroy(){super.destroy(),this.allColumnFilters.forEach((e=>this.disposeFilterWrapper(e,"gridDestroyed"))),this.allColumnListeners.clear(),this.state.clear(),this.activeFilterComps.clear()}},class extends I{constructor(){super(...arguments),this.beanName="filterMenuFactory"}wireBeans(e){this.popupSvc=e.popupSvc}hideActiveMenu(){this.hidePopup?.()}showMenuAfterMouseEvent(e,t,o,i){e&&!e.isColumn||this.showPopup(e,(i=>{this.popupSvc?.positionPopupUnderMouseEvent({column:e,type:o,mouseEvent:t,ePopup:i})}),o,t.target,_isLegacyMenuEnabled(this.gos),i)}showMenuAfterButtonClick(e,t,o,i){if(e&&!e.isColumn)return;let s=-1,n="left";const r=_isLegacyMenuEnabled(this.gos);!r&&this.gos.get("enableRtl")&&(s=1,n="right");const a=r?void 0:4*s,l=r?void 0:4;this.showPopup(e,(i=>{this.popupSvc?.positionPopupByComponent({type:o,eventSource:t,ePopup:i,nudgeX:a,nudgeY:l,alignSide:n,keepWithinBounds:!0,position:"under",column:e})}),o,t,r,i)}showPopup(e,t,o,i,s,n){const r=e?this.createBean(new ft(e,"COLUMN_MENU")):void 0;if(this.activeMenu=r,!r?.hasFilter()||!e)return void _error(57);const a=_createElement({tag:"div",cls:"ag-menu"+(s?"":" ag-filter-menu"),role:"presentation"});let l;[this.tabListener]=this.addManagedElementListeners(a,{keydown:e=>this.trapFocusWithin(e,a)}),a.appendChild(r?.getGui());const d=function _isColumnMenuAnchoringEnabled(e){return!_isLegacyMenuEnabled(e)}(this.gos)?i??this.beans.ctrlsSvc.getGridBodyCtrl().eGridBody:void 0,c=this.getLocaleTextFunc(),h=s&&"columnFilter"!==o?c("ariaLabelColumnMenu","Column Menu"):c("ariaLabelColumnFilter","Column Filter"),u=this.popupSvc?.addPopup({modal:!0,eChild:a,closeOnEsc:!0,closedCallback:t=>{_setColMenuVisible(e,!1,"contextMenu");const s=t instanceof KeyboardEvent;if(this.tabListener&&(this.tabListener=this.tabListener()),s&&i&&_isVisible(i)){_findTabbableParent(i)?.focus({preventScroll:!0})}r?.afterGuiDetached(),this.destroyBean(this.activeMenu),this.dispatchVisibleChangedEvent(!1,o,e),n?.()},positionCallback:()=>t(a),anchorToElement:d,ariaLabel:h});u&&(this.hidePopup=l=u.hideFunc),r.afterInit().then((()=>{t(a),r.afterGuiAttached({container:o,hidePopup:l})})),_setColMenuVisible(e,!0,"contextMenu"),this.dispatchVisibleChangedEvent(!0,o,e)}trapFocusWithin(e,t){e.key!==De||e.defaultPrevented||_findNextFocusableElement(this.beans,t,!1,e.shiftKey)||(e.preventDefault(),_focusInto(t,e.shiftKey))}dispatchVisibleChangedEvent(e,t,o){this.eventSvc.dispatchEvent({type:"columnMenuVisibleChanged",visible:e,switchingTab:!1,key:t,column:o??null,columnGroup:null})}isMenuEnabled(e){return e.isFilterAllowed()&&(e.getColDef().menuTabs??["filterMenuTab"]).includes("filterMenuTab")}showMenuAfterContextMenuEvent(){}destroy(){this.destroyBean(this.activeMenu),super.destroy()}}],dynamicBeans:{headerFilterCellCtrl:class extends co{constructor(){super(...arguments),this.iconCreated=!1}setComp(e,t,o,i,s){this.comp=e;const n=setupCompBean(this,this.beans.context,s);this.eButtonShowMainFilter=o,this.eFloatingFilterBody=i,this.setGui(t,n),this.setupActive(),this.refreshHeaderStyles(),this.setupWidth(n),this.setupLeft(n),this.setupHover(n),this.setupFocus(n),this.setupAria(),this.setupFilterButton(),this.setupUserComp(),this.setupSyncWithFilter(n),this.setupUi(),n.addManagedElementListeners(this.eButtonShowMainFilter,{click:this.showParentFilter.bind(this)}),this.setupFilterChangedListener(n);const colDefChanged=()=>this.onColDefChanged(n);n.addManagedListeners(this.column,{colDefChanged}),n.addManagedEventListeners({filterSwitched:({column:e})=>{e===this.column&&colDefChanged()}}),n.addDestroyFunc((()=>{this.eButtonShowMainFilter=null,this.eFloatingFilterBody=null,this.userCompDetails=null,this.clearComponent()}))}resizeHeader(){}moveHeader(){}getHeaderClassParams(){const{column:e,beans:t}=this,o=e.colDef;return _addGridCommonParams(t.gos,{colDef:o,column:e,floatingFilter:!0})}setupActive(){const e=this.column.getColDef(),t=!!e.filter,o=!!e.floatingFilter;this.active=t&&o}setupUi(){if(this.comp.setButtonWrapperDisplayed(!this.suppressFilterButton&&this.active),this.comp.addOrRemoveBodyCssClass("ag-floating-filter-full-body",this.suppressFilterButton),this.comp.addOrRemoveBodyCssClass("ag-floating-filter-body",!this.suppressFilterButton),!this.active||this.iconCreated)return;const e=_createIconNoSpan("filter",this.beans,this.column);e&&(this.iconCreated=!0,this.eButtonShowMainFilter.appendChild(e))}setupFocus(e){e.createManagedBean(new Dt(this.eGui,{shouldStopEventPropagation:this.shouldStopEventPropagation.bind(this),onTabKeyDown:this.onTabKeyDown.bind(this),handleKeyDown:this.handleKeyDown.bind(this),onFocusIn:this.onFocusIn.bind(this)}))}setupAria(){const e=this.getLocaleTextFunc();_setAriaLabel(this.eButtonShowMainFilter,e("ariaFilterMenuOpen","Open Filter Menu"))}onTabKeyDown(e){const{beans:t}=this;if(_getActiveDomElement(t)===this.eGui)return;const o=_findNextFocusableElement(t,this.eGui,null,e.shiftKey);if(o)return t.headerNavigation?.scrollToColumn(this.column),e.preventDefault(),void o.focus();const i=this.findNextColumnWithFloatingFilter(e.shiftKey);i&&t.focusSvc.focusHeaderPosition({headerPosition:{headerRowIndex:this.rowCtrl.rowIndex,column:i},event:e})&&e.preventDefault()}findNextColumnWithFloatingFilter(e){const t=this.beans.visibleCols;let o=this.column;do{if(o=e?t.getColBefore(o):t.getColAfter(o),!o)break}while(!o.getColDef().filter||!o.getColDef().floatingFilter);return o}handleKeyDown(e){super.handleKeyDown(e);const t=this.getWrapperHasFocus();switch(e.key){case Ie:case Le:case Ae:case ke:if(t)return;_stopPropagationForAgGrid(e);case xe:t&&_focusInto(this.eGui)&&e.preventDefault();break;case Me:t||this.eGui.focus()}}onFocusIn(e){if(this.eGui.contains(e.relatedTarget))return;const t=!!e.relatedTarget&&!e.relatedTarget.classList.contains("ag-floating-filter"),o=!!e.relatedTarget&&_isElementChildOfClass(e.relatedTarget,"ag-floating-filter");if(t&&o&&e.target===this.eGui){const e=this.lastFocusEvent,t=!(!e||e.key!==De);if(e&&t){const t=e.shiftKey;_focusInto(this.eGui,t)}}this.focusThis()}setupHover(e){this.beans.colHover?.addHeaderFilterColumnHoverListener(e,this.comp,this.column,this.eGui)}setupLeft(e){const t=new ro(this.column,this.eGui,this.beans);e.createManagedBean(t)}setupFilterButton(){this.suppressFilterButton=!this.beans.menuSvc?.isFloatingFilterButtonEnabled(this.column),this.highlightFilterButtonWhenActive=!_isLegacyMenuEnabled(this.gos)}setupUserComp(){if(!this.active)return;const e=this.beans.colFilter?.getFloatingFilterCompDetails(this.column,(()=>this.showParentFilter()));e&&this.setCompDetails(e)}setCompDetails(e){this.userCompDetails=e,this.comp.setCompDetails(e)}showParentFilter(){const e=this.suppressFilterButton?this.eFloatingFilterBody:this.eButtonShowMainFilter;this.beans.menuSvc?.showFilterMenu({column:this.column,buttonElement:e,containerType:"floatingFilter",positionBy:"button"})}setupSyncWithFilter(e){if(!this.active)return;const{beans:{colFilter:t},column:o,gos:i}=this,syncWithFilter=e=>{if(!("filterDestroyed"!==e?.source||this.isAlive()&&t?.isAlive()))return;const s=this.comp.getFloatingFilterComp();s&&s.then((s=>{if(s){if(i.get("enableFilterHandlers")){const t=e;let o="filter";return t?.afterFloatingFilter?o="ui":t?.afterDataChange?o="dataChanged":"api"===e?.source&&(o="api"),void this.updateFloatingFilterParams(this.userCompDetails,o)}const n=t?.getCurrentFloatingFilterParentModel(o),r=e?{...e,columns:e.columns??[],source:"api"===e.source?"api":"columnFilter"}:null;s.onParentModelChanged(n,r)}}))};[this.destroySyncListener]=e.addManagedListeners(o,{filterChanged:syncWithFilter}),t?.isFilterActive(o)&&syncWithFilter(null)}setupWidth(e){const listener=()=>{const e=`${this.column.getActualWidth()}px`;this.comp.setWidth(e)};e.addManagedListeners(this.column,{widthChanged:listener}),listener()}setupFilterChangedListener(e){this.active&&([this.destroyFilterChangedListener]=e.addManagedListeners(this.column,{filterChanged:this.updateFilterButton.bind(this)}),this.updateFilterButton())}updateFilterButton(){if(!this.suppressFilterButton&&this.comp){const e=!!this.beans.filterManager?.isFilterAllowed(this.column);this.comp.setButtonWrapperDisplayed(e),this.highlightFilterButtonWhenActive&&e&&this.eButtonShowMainFilter.classList.toggle("ag-filter-active",this.column.isFilterActive())}}onColDefChanged(e){const t=this.active;this.setupActive();const o=!t&&this.active;t&&!this.active&&(this.destroySyncListener(),this.destroyFilterChangedListener());const i=this.beans.colFilter,s=this.active?i?.getFloatingFilterCompDetails(this.column,(()=>this.showParentFilter())):null,n=this.comp.getFloatingFilterComp();n&&s?n.then((t=>{!t||i?.areFilterCompsDifferent(this.userCompDetails??null,s)?this.updateCompDetails(e,s,o):this.updateFloatingFilterParams(s,"colDef")})):this.updateCompDetails(e,s,o)}updateCompDetails(e,t,o){this.isAlive()&&(this.setCompDetails(t),this.setupFilterButton(),this.setupUi(),o&&(this.setupSyncWithFilter(e),this.setupFilterChangedListener(e)))}updateFloatingFilterParams(e,t){if(!e)return;let o=e.params;this.comp.getFloatingFilterComp()?.then((e=>{"function"==typeof e?.refresh&&(this.gos.get("enableFilterHandlers")&&(o={...o,model:_getFilterModel(this.beans.colFilter?.model??{},this.column.getColId()),source:t}),e.refresh(o))}))}addResizeAndMoveKeyboardListeners(){}destroy(){super.destroy(),this.destroySyncListener=null,this.destroyFilterChangedListener=null}}},icons:{filter:"filter",filterActive:"filter"},apiFunctions:{isColumnFilterPresent:function isColumnFilterPresent(e){const t=e.filterManager;return!!t?.isColumnFilterPresent()||!!t?.isAggregateFilterPresent()},getColumnFilterInstance:function getColumnFilterInstance(e,t){return e.filterManager?.getColumnFilterInstance(t)??Promise.resolve(void 0)},destroyFilter:function destroyFilter(e,t){const o=e.colModel.getColDefCol(t);if(o)return e.colFilter?.destroyFilter(o,"api")},setFilterModel:function setFilterModel(e,t){e.frameworkOverrides.wrapIncoming((()=>e.filterManager?.setFilterModel(t)))},getFilterModel:function getFilterModel(e){return e.filterManager?.getFilterModel()??{}},getColumnFilterModel:function getColumnFilterModel(e,t,o){const{gos:i,colModel:s,colFilter:n}=e;o&&!i.get("enableFilterHandlers")&&(_warn(288),o=!1);const r=s.getColDefCol(t);return r?n?.getModelForColumn(r,o)??null:null},setColumnFilterModel:function setColumnFilterModel(e,t,o){return e.filterManager?.setColumnFilterModel(t,o)??Promise.resolve()},showColumnFilter:function showColumnFilter(e,t){const o=e.colModel.getCol(t);o?e.menuSvc?.showFilterMenu({column:o,containerType:"columnFilter",positionBy:"auto"}):_error(12,{colKey:t})},getColumnFilterHandler:function getColumnFilterHandler(e,t){const o=e.colModel.getCol(t);if(o)return e.colFilter?.getHandler(o,!0);_error(12,{colKey:t})},doFilterAction:function doFilterAction(e,t){const{colModel:o,colFilter:i,gos:s}=e;if(!s.get("enableFilterHandlers"))return void _warn(287);const{colId:n,action:r}=t;if(n){const e=o.getColById(n);e&&i?.updateModel(e,r)}else i?.updateAllModels(r)}},dependsOn:[Fr,Jn,Er,Yn]},Dr={moduleName:"CustomFilter",version:R,userComponents:{agReadOnlyFloatingFilter:class extends Q{constructor(){super(er,[_o]),this.eFloatingFilterText=q}init(e){this.params=e;const t=this.beans.colNames.getDisplayNameForColumn(e.column,"header",!0);if(this.eFloatingFilterText.setDisabled(!0).setInputAriaLabel(`${t} ${this.getLocaleTextFunc()("ariaFilterInput","Filter Input")}`),this.gos.get("enableFilterHandlers")){const t=e,o=t.getHandler();if(o.getModelAsString){const e=o.getModelAsString(t.model);this.eFloatingFilterText.setValue(e)}}}onParentModelChanged(e){null!=e?this.params.parentFilterInstance((t=>{if(t.getModelAsString){const o=t.getModelAsString(e);this.eFloatingFilterText.setValue(o)}})):this.eFloatingFilterText.setValue("")}refresh(e){this.init(e)}}},dependsOn:[Pr]},xr={moduleName:"TextFilter",version:R,dependsOn:[Pr],userComponents:{agTextColumnFilter:{classImp:class extends or{constructor(){super("textFilter",mapValuesFromTextFilterModel,Sr),this.filterType="text",this.eValuesFrom=[],this.eValuesTo=[],this.defaultDebounceMs=500}createCondition(e){const t=this.getConditionType(e),o={filterType:this.filterType,type:t},i=this.getValuesWithSideEffects(e,!0);return i.length>0&&(o.filter=i[0]),i.length>1&&(o.filterTo=i[1]),o}areSimpleModelsEqual(e,t){return e.filter===t.filter&&e.filterTo===t.filterTo&&e.type===t.type}getInputs(e){const{eValuesFrom:t,eValuesTo:o}=this;return e>=t.length?[null,null]:[t[e],o[e]]}getValues(e){return this.getValuesWithSideEffects(e,!1)}getValuesWithSideEffects(e,t){const o=[];return this.forEachPositionInput(e,((e,i,s,n)=>{if(i<n){let i=_makeNull(e.getValue());t&&this.params.trimInput&&(i=trimInputForFilter(i)??null,e.setValue(i,!0)),o.push(i)}})),o}createEValue(){const e=_createElement({tag:"div",cls:"ag-filter-body",role:"presentation"}),{eValuesFrom:t,eValuesTo:o}=this;return this.createFromToElement(e,t,"from"),this.createFromToElement(e,o,"to"),e}createFromToElement(e,t,o){const i=this.createManagedBean(new No);i.addCss(`ag-filter-${o}`),i.addCss("ag-filter-filter"),t.push(i),e.appendChild(i.getGui())}removeEValues(e,t){const removeComps=o=>this.removeComponents(o,e,t),{eValuesFrom:o,eValuesTo:i}=this;removeComps(o),removeComps(i)}},params:{useForm:!0}},agTextColumnFloatingFilter:class extends vr{constructor(){super(...arguments),this.FilterModelFormatterClass=yr,this.filterType="text",this.defaultOptions=Sr}createFloatingFilterInputService(){return this.createManagedBean(new Cr)}}},dynamicBeans:{agTextColumnFilterHandler:class extends rr{constructor(){super(mapValuesFromTextFilterModel,Sr),this.filterType="text",this.FilterModelFormatterClass=yr}updateParams(e){super.updateParams(e);const t=e.filterParams;this.matcher=t.textMatcher??defaultMatcher,this.formatter=t.textFormatter??(t.caseSensitive?defaultFormatter:defaultLowercaseFormatter)}evaluateNullValue(e){return!!e&&["notEqual","notContains","blank"].indexOf(e)>=0}evaluateNonNullValue(e,t,o,i){const s=e.map((e=>this.formatter(e)))||[],n=this.formatter(t),{api:r,colDef:a,column:l,context:d,filterParams:{textFormatter:c}}=this.params;if("blank"===o.type)return isBlank(t);if("notBlank"===o.type)return!isBlank(t);const h={api:r,colDef:a,column:l,context:d,node:i.node,data:i.data,filterOption:o.type,value:n,textFormatter:c};return s.some((e=>this.matcher({...h,filterText:e})))}}}},Mr={moduleName:"NumberFilter",version:R,dependsOn:[Pr],userComponents:{agNumberColumnFilter:{classImp:class extends or{constructor(){super("numberFilter",mapValuesFromNumberFilterModel,mr),this.eValuesFrom=[],this.eValuesTo=[],this.filterType="number",this.defaultDebounceMs=500}setElementValue(e,t,o){const{numberFormatter:i}=this.params,s=!o&&i?i(t??null):t;super.setElementValue(e,s)}createEValue(){const e=getAllowedCharPattern(this.params),t=_createElement({tag:"div",cls:"ag-filter-body",role:"presentation"});return this.createFromToElement(t,this.eValuesFrom,"from",e),this.createFromToElement(t,this.eValuesTo,"to",e),t}createFromToElement(e,t,o,i){const s=this.createManagedBean(i?new No({allowedCharPattern:i}):new Ho);s.addCss(`ag-filter-${o}`),s.addCss("ag-filter-filter"),t.push(s),e.appendChild(s.getGui())}removeEValues(e,t){const removeComps=o=>this.removeComponents(o,e,t);removeComps(this.eValuesFrom),removeComps(this.eValuesTo)}getValues(e){const t=[];return this.forEachPositionInput(e,((e,o,i,s)=>{o<s&&t.push(processNumberFilterValue(this.stringToFloat(e.getValue())))})),t}areSimpleModelsEqual(e,t){return e.filter===t.filter&&e.filterTo===t.filterTo&&e.type===t.type}stringToFloat(e){if("number"==typeof e)return e;let t=_makeNull(e);null!=t&&""===t.trim()&&(t=null);const o=this.params.numberParser;return o?o(t):null==t||"-"===t.trim()?null:parseFloat(t)}createCondition(e){const t=this.getConditionType(e),o={filterType:this.filterType,type:t},i=this.getValues(e);return i.length>0&&(o.filter=i[0]),i.length>1&&(o.filterTo=i[1]),o}getInputs(e){const{eValuesFrom:t,eValuesTo:o}=this;return e>=t.length?[null,null]:[t[e],o[e]]}hasInvalidInputs(){let e=!1;return this.forEachInput((t=>{t.getInputElement().validity.valid||(e=!0)})),e}},params:{useForm:!0}},agNumberColumnFloatingFilter:class extends vr{constructor(){super(...arguments),this.FilterModelFormatterClass=fr,this.filterType="number",this.defaultOptions=mr}updateParams(e){getAllowedCharPattern(e.filterParams)!==this.allowedCharPattern&&this.recreateFloatingFilterInputService(e),super.updateParams(e)}createFloatingFilterInputService(e){return this.allowedCharPattern=getAllowedCharPattern(e.filterParams),this.allowedCharPattern?this.createManagedBean(new Cr({config:{allowedCharPattern:this.allowedCharPattern}})):this.createManagedBean(new br)}convertValue(e){return e?Number(e):null}}},dynamicBeans:{agNumberColumnFilterHandler:class extends ar{constructor(){super(mapValuesFromNumberFilterModel,mr),this.filterType="number",this.FilterModelFormatterClass=fr}comparator(){return(e,t)=>e===t?0:e<t?1:-1}isValid(e){return!isNaN(e)}}}},Tr={moduleName:"DateFilter",version:R,dependsOn:[Pr],userComponents:{agDateColumnFilter:{classImp:class extends or{constructor(){super("dateFilter",mapValuesFromDateFilterModel,sr),this.eConditionPanelsFrom=[],this.eConditionPanelsTo=[],this.dateConditionFromComps=[],this.dateConditionToComps=[],this.minValidYear=1e3,this.maxValidYear=nr,this.minValidDate=null,this.maxValidDate=null,this.filterType="date"}afterGuiAttached(e){super.afterGuiAttached(e),this.dateConditionFromComps[0].afterGuiAttached(e)}commonUpdateSimpleParams(e){super.commonUpdateSimpleParams(e);const yearParser=(t,o)=>{const i=e[t];if(null!=i){if(!isNaN(i))return null==i?o:Number(i);_warn(82,{param:t})}return o},t=yearParser("minValidYear",1e3),o=yearParser("maxValidYear",nr);this.minValidYear=t,this.maxValidYear=o,t>o&&_warn(83);const{minValidDate:i,maxValidDate:s}=e,n=i instanceof Date?i:_parseDateTimeFromString(i);this.minValidDate=n;const r=s instanceof Date?s:_parseDateTimeFromString(s);this.maxValidDate=r,n&&r&&n>r&&_warn(84)}createDateCompWrapper(e){const{beans:{userCompFactory:t,context:o,gos:i},params:s}=this,n=new ir(o,t,s.colDef,_addGridCommonParams(i,{onDateChanged:()=>this.onUiChanged(),filterParams:s,location:"filter"}),e);return this.addDestroyFunc((()=>n.destroy())),n}setElementValue(e,t){e.setDate(t)}setElementDisplayed(e,t){e.setDisplayed(t)}setElementDisabled(e,t){e.setDisabled(t)}createEValue(){const e=_createElement({tag:"div",cls:"ag-filter-body"});return this.createFromToElement(e,this.eConditionPanelsFrom,this.dateConditionFromComps,"from"),this.createFromToElement(e,this.eConditionPanelsTo,this.dateConditionToComps,"to"),e}createFromToElement(e,t,o,i){const s=_createElement({tag:"div",cls:`ag-filter-${i} ag-filter-date-${i}`});t.push(s),e.appendChild(s),o.push(this.createDateCompWrapper(s))}removeEValues(e,t){this.removeDateComps(this.dateConditionFromComps,e,t),this.removeDateComps(this.dateConditionToComps,e,t),removeItems(this.eConditionPanelsFrom,e,t),removeItems(this.eConditionPanelsTo,e,t)}removeDateComps(e,t,o){removeItems(e,t,o).forEach((e=>e.destroy()))}isValidDateValue(e){if(null===e)return!1;const{minValidDate:t,maxValidDate:o,minValidYear:i,maxValidYear:s}=this;if(t){if(e<t)return!1}else if(e.getUTCFullYear()<i)return!1;if(o){if(e>o)return!1}else if(e.getUTCFullYear()>s)return!1;return!0}isConditionUiComplete(e){if(!super.isConditionUiComplete(e))return!1;let t=!0;return this.forEachInput(((o,i,s,n)=>{s!==e||!t||i>=n||(t=t&&this.isValidDateValue(o.getDate()))})),t}areSimpleModelsEqual(e,t){return e.dateFrom===t.dateFrom&&e.dateTo===t.dateTo&&e.type===t.type}createCondition(e){const t=this.getConditionType(e),o={},i=this.getValues(e);return i.length>0&&(o.dateFrom=_serialiseDate(i[0])),i.length>1&&(o.dateTo=_serialiseDate(i[1])),{dateFrom:null,dateTo:null,filterType:this.filterType,type:t,...o}}resetPlaceholder(){const e=this.getLocaleTextFunc(),t=this.translate("dateFormatOoo"),o=e("ariaFilterValue","Filter Value");this.forEachInput((e=>{e.setInputPlaceholder(t),e.setInputAriaLabel(o)}))}getInputs(e){const{dateConditionFromComps:t,dateConditionToComps:o}=this;return e>=t.length?[null,null]:[t[e],o[e]]}getValues(e){const t=[];return this.forEachPositionInput(e,((e,o,i,s)=>{o<s&&t.push(e.getDate())})),t}translate(e){return"lessThan"===e?super.translate("before"):"greaterThan"===e?super.translate("after"):super.translate(e)}},params:{useForm:!0}},agDateInput:class extends Q{constructor(){super(pr,[_o]),this.eDateInput=q,this.isApply=!1,this.applyOnFocusOut=!1}init(e){this.params=e,this.setParams(e);const t=this.eDateInput.getInputElement();this.addManagedListeners(t,{mouseDown:()=>{this.eDateInput.isDisabled()||this.usingSafariDatePicker||t.focus({preventScroll:!0})},input:this.handleInput.bind(this,!1),change:this.handleInput.bind(this,!0),focusout:this.handleFocusOut.bind(this)})}handleInput(e){if(!this.eDateInput.isDisabled())return this.isApply?(this.applyOnFocusOut=!e,void(e&&this.params.onDateChanged())):void(e||this.params.onDateChanged())}handleFocusOut(){this.applyOnFocusOut&&(this.applyOnFocusOut=!1,this.params.onDateChanged())}setParams(e){const t=this.eDateInput.getInputElement(),o=this.shouldUseBrowserDatePicker(e);this.usingSafariDatePicker=o&&_isBrowserSafari();const{minValidYear:i,maxValidYear:s,minValidDate:n,maxValidDate:r,buttons:a,includeTime:l,colDef:d}=e.filterParams||{},c=this.beans.dataTypeSvc,h=l??c?.getDateIncludesTimeFlag?.(d.cellDataType)??!1;if(o?h?(t.type="datetime-local",t.step="1"):t.type="date":t.type="text",n&&i&&_warn(85),r&&s&&_warn(86),n&&r){const[e,t]=[n,r].map((e=>e instanceof Date?e:_parseDateTimeFromString(e)));e&&t&&e.getTime()>t.getTime()&&_warn(87)}n?n instanceof Date?t.min=_dateToFormattedString(n):t.min=n:i&&(t.min=`${i}-01-01`),r?r instanceof Date?t.max=_dateToFormattedString(r):t.max=r:s&&(t.max=`${s}-12-31`),this.isApply="floatingFilter"===e.location&&!!a?.includes("apply")}refresh(e){this.params=e,this.setParams(e)}getDate(){return _parseDateTimeFromString(this.eDateInput.getValue())}setDate(e){const t=this.params.filterParams.colDef.cellDataType,o=this.beans.dataTypeSvc?.getDateIncludesTimeFlag(t)??!1;this.eDateInput.setValue(_serialiseDate(e,o))}setInputPlaceholder(e){this.eDateInput.setInputPlaceholder(e)}setInputAriaLabel(e){this.eDateInput.setAriaLabel(e)}setDisabled(e){this.eDateInput.setDisabled(e)}afterGuiAttached(e){e&&e.suppressFocus||this.eDateInput.getInputElement().focus({preventScroll:!0})}shouldUseBrowserDatePicker(e){return e?.filterParams?.browserDatePicker??!0}},agDateColumnFloatingFilter:class extends ur{constructor(){super(gr,[_o]),this.eReadOnlyText=q,this.eDateWrapper=q,this.FilterModelFormatterClass=hr,this.filterType="date",this.defaultOptions=sr}setParams(e){super.setParams(e),this.createDateComponent();const t=this.getLocaleTextFunc();this.eReadOnlyText.setDisabled(!0).setInputAriaLabel(t("ariaDateFilterInput","Date Filter Input"))}updateParams(e){super.updateParams(e),this.dateComp.updateParams(this.getDateComponentParams()),this.updateCompOnModelChange(e.currentParentModel())}updateCompOnModelChange(e){const t=!this.readOnly&&this.canWeEditAfterModelFromParentFilter(e);if(this.setEditable(t),t){const t=e?_parseDateTimeFromString(e.dateFrom):null;this.dateComp.setDate(t),this.eReadOnlyText.setValue("")}else this.eReadOnlyText.setValue(this.filterModelFormatter.getModelAsString(e)),this.dateComp.setDate(null)}setEditable(e){_setDisplayed(this.eDateWrapper,e),_setDisplayed(this.eReadOnlyText.getGui(),!e)}onModelUpdated(e){super.setLastTypeFromModel(e),this.updateCompOnModelChange(e)}onDateChanged(){const e=this.dateComp.getDate();if(this.reactive){const t=this.params;t.onUiChange();const o=t.model,i=_serialiseDate(e),s=null==i?null:{...o??{filterType:this.filterType,type:this.lastType??this.optionsFactory.defaultOption},dateFrom:i};t.onModelChange(s,{afterFloatingFilter:!0})}else this.params.parentFilterInstance((t=>{t?.onFloatingFilterChanged(this.lastType||null,e)}))}getDateComponentParams(){const{filterParams:e}=this.params,t=getDebounceMs(e,this.defaultDebounceMs);return _addGridCommonParams(this.gos,{onDateChanged:_debounce(this,this.onDateChanged.bind(this),t),filterParams:e,location:"floatingFilter"})}createDateComponent(){const{beans:{context:e,userCompFactory:t},eDateWrapper:o,params:i}=this;this.dateComp=new ir(e,t,i.column.getColDef(),this.getDateComponentParams(),o,(e=>{e.setInputAriaLabel(this.getAriaLabel(i))})),this.addDestroyFunc((()=>this.dateComp.destroy()))}}},dynamicBeans:{agDateColumnFilterHandler:class extends ar{constructor(){super(mapValuesFromDateFilterModel,sr),this.filterType="date",this.FilterModelFormatterClass=hr}comparator(){return this.params.filterParams.comparator??defaultDateComparator}isValid(e){const t=this.params.filterParams.isValidDate;return!t||t(e)}}}},Ar={moduleName:"QuickFilter",version:R,apiFunctions:{isQuickFilterPresent:function isQuickFilterPresent(e){return!!e.quickFilter?.isFilterPresent()},getQuickFilter:function getQuickFilter(e){return e.quickFilter?.getText()},resetQuickFilter:function resetQuickFilter(e){e.quickFilter?.resetCache()}},dependsOn:[{moduleName:"QuickFilterCore",version:R,rowModels:["clientSide"],beans:[class extends I{constructor(){super(...arguments),this.beanName="quickFilter",this.quickFilter=null,this.quickFilterParts=null}postConstruct(){const e=this.resetCache.bind(this),t=this.gos;this.addManagedEventListeners({columnPivotModeChanged:e,newColumnsLoaded:e,columnRowGroupChanged:e,columnVisible:()=>{t.get("includeHiddenColumnsInQuickFilter")||this.resetCache()}}),this.addManagedPropertyListener("quickFilterText",(e=>this.setFilter(e.currentValue))),this.addManagedPropertyListeners(["includeHiddenColumnsInQuickFilter","applyQuickFilterBeforePivotOrAgg"],(()=>this.onColumnConfigChanged())),this.quickFilter=this.parseFilter(t.get("quickFilterText")),this.parser=t.get("quickFilterParser"),this.matcher=t.get("quickFilterMatcher"),this.setFilterParts(),this.addManagedPropertyListeners(["quickFilterMatcher","quickFilterParser"],(()=>this.setParserAndMatcher()))}refreshCols(){const{autoColSvc:e,colModel:t,gos:o,pivotResultCols:i}=this.beans,s=t.isPivotMode(),n=e?.getColumns(),r=t.getColDefCols();let a=(s&&!o.get("applyQuickFilterBeforePivotOrAgg")?i?.getPivotResultCols()?.list:r)??[];n&&(a=a.concat(n)),this.colsToUse=o.get("includeHiddenColumnsInQuickFilter")?a:a.filter((e=>e.isVisible()||e.isRowGroupActive()))}isFilterPresent(){return null!==this.quickFilter}doesRowPass(e){const t=this.gos.get("cacheQuickFilter");return this.matcher?this.doesRowPassMatcher(t,e):this.quickFilterParts.every((o=>t?this.doesRowPassCache(e,o):this.doesRowPassNoCache(e,o)))}resetCache(){this.beans.rowModel.forEachNode((e=>e.quickFilterAggregateText=null))}getText(){return this.gos.get("quickFilterText")}setFilterParts(){const{quickFilter:e,parser:t}=this;this.quickFilterParts=e?t?t(e):e.split(" "):null}parseFilter(e){return _exists(e)?e.toUpperCase():null}setFilter(e){if(null!=e&&"string"!=typeof e)return void _warn(70,{newFilter:e});const t=this.parseFilter(e);this.quickFilter!==t&&(this.quickFilter=t,this.setFilterParts(),this.dispatchLocalEvent({type:"quickFilterChanged"}))}setParserAndMatcher(){const e=this.gos.get("quickFilterParser"),t=this.gos.get("quickFilterMatcher"),o=e!==this.parser||t!==this.matcher;this.parser=e,this.matcher=t,o&&(this.setFilterParts(),this.dispatchLocalEvent({type:"quickFilterChanged"}))}onColumnConfigChanged(){this.refreshCols(),this.resetCache(),this.isFilterPresent()&&this.dispatchLocalEvent({type:"quickFilterChanged"})}doesRowPassNoCache(e,t){return this.colsToUse.some((o=>{const i=this.getTextForColumn(o,e);return _exists(i)&&i.indexOf(t)>=0}))}doesRowPassCache(e,t){return this.checkGenerateAggText(e),e.quickFilterAggregateText.indexOf(t)>=0}doesRowPassMatcher(e,t){let o;e?(this.checkGenerateAggText(t),o=t.quickFilterAggregateText):o=this.getAggText(t);const{quickFilterParts:i,matcher:s}=this;return s(i,o)}checkGenerateAggText(e){e.quickFilterAggregateText||(e.quickFilterAggregateText=this.getAggText(e))}getTextForColumn(e,t){let o=this.beans.filterValueSvc.getValue(e,t);const i=e.getColDef();if(i.getQuickFilterText){const s=_addGridCommonParams(this.gos,{value:o,node:t,data:t.data,column:e,colDef:i});o=i.getQuickFilterText(s)}return _exists(o)?o.toString().toUpperCase():null}getAggText(e){const t=[];return this.colsToUse.forEach((o=>{const i=this.getTextForColumn(o,e);_exists(i)&&t.push(i)})),t.join("\n")}}],dependsOn:[Fr,Er]}]},Ir={moduleName:"ExternalFilter",version:R,dependsOn:[Fr]},getEditErrorsForPosition=(e,t,o)=>{const{editModelSvc:i}=e,s=i?.getCellValidationModel()?.getCellValidation(t)?.errorMessages,n=i?.getRowValidationModel().getRowValidation(t)?.errorMessages,r=s||n;return r&&r.length?r.join(o("tooltipValidationErrorSeparator",". ")):void 0},kr={moduleName:"Tooltip",version:R,beans:[class extends I{constructor(){super(...arguments),this.beanName="tooltipSvc"}setupHeaderTooltip(e,t,o,i){e&&t.destroyBean(e);const s=_isShowTooltipWhenTruncated(this.gos),{column:n,eGui:r}=t,a=n.getColDef();i||!s||a.headerComponent||(i=_isElementOverflowingCallback((()=>r.querySelector(".ag-header-cell-text"))));const l={getColumn:()=>n,getColDef:()=>n.getColDef(),getGui:()=>r,getLocation:()=>"header",getTooltipValue:()=>{if(null!=o)return o;return n.getColDef().headerTooltip},shouldDisplayTooltip:i};let d=this.createTooltipFeature(l);return d&&(d=t.createBean(d),t.setRefreshFunction("tooltip",(()=>d.refreshTooltip()))),d}setupHeaderGroupTooltip(e,t,o,i){e&&t.destroyBean(e);const s=_isShowTooltipWhenTruncated(this.gos),{column:n,eGui:r}=t,a=n.getColGroupDef();i||!s||a?.headerGroupComponent||(i=_isElementOverflowingCallback((()=>r.querySelector(".ag-header-group-text"))));const l={getColumn:()=>n,getGui:()=>r,getLocation:()=>"headerGroup",getTooltipValue:()=>o??(a&&a.headerTooltip),shouldDisplayTooltip:i};a&&(l.getColDef=()=>a);const d=this.createTooltipFeature(l);return d?t.createBean(d):d}enableCellTooltipFeature(e,t,o){const{beans:i}=this,{gos:s,editSvc:n}=i,{column:r,rowNode:a}=e;let l="cell";const d=_isShowTooltipWhenTruncated(s);o||(o=d&&!e.isCellRenderer()?()=>{const t=!!n?.isEditing(e);if(!t&&getEditErrorsForPosition(i,e,this.getLocaleTextFunc()))return!0;if(!r.isTooltipEnabled())return!1;const o=_isElementOverflowingCallback((()=>{const t=e.eGui;return 0===t.children.length?t:t.querySelector(".ag-cell-value")}));return!t&&o()}:()=>!n?.isEditing(e));const c={getColumn:()=>r,getColDef:()=>r.getColDef(),getRowIndex:()=>e.cellPosition.rowIndex,getRowNode:()=>a,getGui:()=>e.eGui,getLocation:()=>l,getTooltipValue:null!=t?()=>t:()=>{const t=!!!n?.isEditing(e)&&getEditErrorsForPosition(i,e,this.getLocaleTextFunc());if(t)return l="cellEditor",t;l="cell";const o=r.getColDef(),d=a.data;if(o.tooltipField&&_exists(d))return _getValueUsingField(d,o.tooltipField,r.isTooltipFieldContainsDots());const c=o.tooltipValueGetter;return c?c(_addGridCommonParams(s,{location:"cell",colDef:r.getColDef(),column:r,rowIndex:e.cellPosition.rowIndex,node:a,data:a.data,value:e.value,valueFormatted:e.valueFormatted})):null},getValueFormatted:()=>e.valueFormatted,shouldDisplayTooltip:o};return this.createTooltipFeature(c,i)}setupFullWidthRowTooltip(e,t,o,i){const s={getGui:()=>t.getFullWidthElement(),getTooltipValue:()=>o,getLocation:()=>"fullWidthRow",shouldDisplayTooltip:i},n=this.beans,r=n.context;e&&t.destroyBean(e,r);const a=this.createTooltipFeature(s,n);if(a)return t.createBean(a,r)}setupCellEditorTooltip(e,t){const{beans:o}=this,{context:i}=o,s=t.getValidationElement?.();if(!s)return;const n={getGui:()=>s,getTooltipValue:()=>getEditErrorsForPosition(o,e,this.getLocaleTextFunc()),getLocation:()=>"cellEditor",shouldDisplayTooltip:()=>{const{editModelSvc:e}=o,t=e?.getRowValidationModel()?.getRowValidationMap(),i=e?.getCellValidationModel()?.getCellValidationMap(),s=!!t&&t.size>0,n=!!i&&i.size>0;return s||n}},r=this.createTooltipFeature(n,o);return r?e.createBean(r,i):void 0}initCol(e){const{colDef:t}=e;e.tooltipEnabled=_exists(t.tooltipField)||_exists(t.tooltipValueGetter)||_exists(t.tooltipComponent)}createTooltipFeature(e,t){return this.beans.registry.createDynamicBean("tooltipFeature",!1,e,t)}}],dynamicBeans:{tooltipFeature:class extends I{constructor(e,t){super(),this.ctrl=e,t&&(this.beans=t)}postConstruct(){this.refreshTooltip()}setBrowserTooltip(e,t){const o="title",i=this.ctrl.getGui();i&&(null==e||""==e&&!t?i.removeAttribute(o):i.setAttribute(o,e))}updateTooltipText(){const{getTooltipValue:e}=this.ctrl;e&&(this.tooltip=e())}createTooltipFeatureIfNeeded(){null==this.tooltipManager&&(this.tooltipManager=this.createBean(new Nn(this.ctrl,(()=>this.tooltip)),this.beans.context))}setTooltipAndRefresh(e){this.tooltip=e,this.refreshTooltip()}refreshTooltip(e){this.browserTooltips=this.beans.gos.get("enableBrowserTooltips"),this.updateTooltipText(),this.browserTooltips?(this.setBrowserTooltip(this.tooltip),this.tooltipManager=this.destroyBean(this.tooltipManager,this.beans.context)):(this.setBrowserTooltip(e?"":null,e),this.createTooltipFeatureIfNeeded())}destroy(){this.tooltipManager=this.destroyBean(this.tooltipManager,this.beans.context),super.destroy()}}},userComponents:{agTooltipComponent:class extends mo{constructor(){super(Ln)}init(e){const{value:t}=e,o=this.getGui();o.textContent=_toString(t);const i=e.location.replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase();o.classList.add(`ag-${i}-tooltip`)}}},dependsOn:[Jn],css:[".ag-tooltip{background-color:var(--ag-tooltip-background-color);border:var(--ag-tooltip-border);border-radius:var(--ag-border-radius);color:var(--ag-tooltip-text-color);padding:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding);position:absolute;white-space:normal;z-index:99999;&:where(.ag-cell-editor-tooltip){background-color:var(--ag-tooltip-error-background-color);border:var(--ag-tooltip-error-border);color:var(--ag-tooltip-error-text-color);font-weight:500}}.ag-tooltip-custom{position:absolute;z-index:99999}.ag-tooltip-custom:where(:not(.ag-tooltip-interactive)),.ag-tooltip:where(:not(.ag-tooltip-interactive)){pointer-events:none}.ag-tooltip-animate{transition:opacity 1s;&:where(.ag-tooltip-hiding){opacity:0}}"]},Lr=class{constructor(e){this.cellValueChanges=e}},Gr=class extends Lr{constructor(e,t,o,i){super(e),this.initialRange=t,this.finalRange=o,this.ranges=i}},Nr=class{constructor(e){this.actionStack=[],this.maxStackSize=e||10,this.actionStack=new Array(this.maxStackSize)}pop(){return this.actionStack.pop()}push(e){e.cellValueChanges&&e.cellValueChanges.length>0&&(this.actionStack.length===this.maxStackSize&&this.actionStack.shift(),this.actionStack.push(e))}clear(){this.actionStack=[]}getCurrentStackSize(){return this.actionStack.length}},_r={tag:"div",cls:"ag-cell-wrapper ag-cell-edit-wrapper ag-checkbox-edit",children:[{tag:"ag-checkbox",ref:"eEditor",role:"presentation"}]},Or=class extends fo{constructor(e){super(),this.cellEditorInput=e,this.eEditor=q}initialiseEditor(e){const{cellEditorInput:t}=this;this.setTemplate({tag:"div",cls:"ag-cell-edit-wrapper",children:[t.getTemplate()]},t.getAgComponents());const{eEditor:o}=this,{cellStartedEdit:i,eventKey:s,suppressPreventDefault:n}=e;let r;o.getInputElement().setAttribute("title",""),t.init(o,e);let a=!0;i?(this.focusAfterAttached=!0,s===Pe||s===Ge?r="":s&&1===s.length?n?a=!1:r=s:(r=t.getStartValue(),s!==Ne&&(this.highlightAllOnFocus=!0))):(this.focusAfterAttached=!1,r=t.getStartValue()),a&&null!=r&&o.setStartValue(r),this.addGuiEventListener("keydown",(e=>{const{key:t}=e;t!==_e&&t!==Oe||e.preventDefault()}))}afterGuiAttached(){const e=this.getLocaleTextFunc(),t=this.eEditor;if(t.setInputAriaLabel(e("ariaInputEditor","Input Editor")),!this.focusAfterAttached)return;_isBrowserSafari()||t.getFocusableElement().focus();const o=t.getInputElement();this.highlightAllOnFocus?o.select():this.cellEditorInput.setCaret?.()}focusIn(){const{eEditor:e}=this,t=e.getFocusableElement(),o=e.getInputElement();t.focus(),o.select()}getValue(){return this.cellEditorInput.getValue()}isPopup(){return!1}getValidationElement(){return this.eEditor.getInputElement()}getValidationErrors(){return this.cellEditorInput.getValidationErrors()}},Hr={tag:"ag-input-date-field",ref:"eEditor",cls:"ag-cell-editor"},Vr={tag:"ag-input-date-field",ref:"eEditor",cls:"ag-cell-editor"},Br={tag:"div",cls:"ag-large-text",children:[{tag:"ag-input-text-area",ref:"eEditor",cls:"ag-large-text-input"}]},zr={tag:"ag-input-number-field",ref:"eEditor",cls:"ag-cell-editor"},Wr={tag:"div",cls:"ag-cell-edit-wrapper",children:[{tag:"ag-select",ref:"eEditor",cls:"ag-cell-editor"}]},Ur={tag:"ag-input-text-field",ref:"eEditor",cls:"ag-cell-editor"},$r=class extends Or{constructor(){super(new class{constructor(e){this.getLocaleTextFunc=e}getTemplate(){return Ur}getAgComponents(){return[_o]}init(e,t){this.eEditor=e,this.params=t;const o=t.maxLength;null!=o&&e.setMaxLength(o)}getValidationErrors(){const{params:e}=this,{maxLength:t,getValidationErrors:o}=e,i=this.getValue(),s=this.getLocaleTextFunc();let n=[];return null!=t&&"string"==typeof i&&i.length>t&&n.push(s("maxLengthValidation",`Must be ${t} characters or fewer.`,[String(t)])),n.length||(n=null),o?o({value:i,cellEditorParams:e,internalErrors:n}):n}getValue(){const{eEditor:e,params:t}=this,o=e.getValue();return _exists(o)||_exists(t.value)?t.parseValue(o):t.value}getStartValue(){const e=this.params;return e.useFormatter||e.column.getColDef().refData?e.formatValue(e.value):e.value}setCaret(){const e=this.eEditor,t=e.getValue(),o=_exists(t)&&t.length||0;o&&e.getInputElement().setSelectionRange(o,o)}}((()=>this.getLocaleTextFunc())))}};function ensureColumnVisible(e,t,o="auto"){e.frameworkOverrides.wrapIncoming((()=>e.ctrlsSvc.getScrollFeature().ensureColumnVisible(t,o)),"ensureVisible")}function ensureIndexVisible(e,t,o){e.frameworkOverrides.wrapIncoming((()=>e.ctrlsSvc.getScrollFeature().ensureIndexVisible(t,o)),"ensureVisible")}var Kr={tag:"div",cls:"ag-popup-editor",attrs:{tabindex:"-1"}},jr=class extends mo{constructor(e){super(Kr),this.params=e}postConstruct(){_setDomData(this.gos,this.getGui(),"popupEditorWrapper",!0),this.addKeyDownListener()}addKeyDownListener(){const e=this.getGui(),t=this.params;this.addManagedElementListeners(e,{keydown:e=>{_isUserSuppressingKeyboardEvent(this.gos,e,t.node,t.column,!0)||t.onKeyDown(e)}})}},editHighlightFn=(e,t=!1)=>{if(void 0!==e)return _valuesDiffer(e)||t&&"editing"===e.state};function _hasEdits(e,t,o=!1){return editHighlightFn(e.editModelSvc?.getEdit(t),o)}function _hasLeafEdits(e,t){const{editModelSvc:o}=e,{column:i,rowNode:s}=t;if(e.gos.get("groupTotalRow")&&!s?.footer)return!1;for(const e of s?.allLeafChildren??[]){if(editHighlightFn(o?.getEdit({rowNode:e,column:i}))||editHighlightFn(o?.getEdit({rowNode:e.pinnedSibling,column:i})))return!0}}function _hasPinnedEdits(e,{rowNode:t,column:o}){if(t=t.pinnedSibling)return editHighlightFn(e.editModelSvc?.getEdit({rowNode:t,column:o}))}var qr=class extends I{constructor(e,t){super(),this.cellCtrl=e,this.beans=t,this.editSvc=t.editSvc,this.editModelSvc=t.editModelSvc}setComp(e){this.cellComp=e,this.applyCellStyles()}applyCellStyles(){const{cellCtrl:e,editSvc:t,beans:o}=this;if(t?.isBatchEditing()&&t.isEditing()){const t=_hasEdits(o,e)||_hasLeafEdits(o,e)||_hasPinnedEdits(o,e);this.applyBatchingStyle(t)}else this.applyBatchingStyle(!1);const i=!!this.editModelSvc?.getCellValidationModel().hasCellValidation(this.cellCtrl);this.cellComp.toggleCss("ag-cell-editing-error",i)}applyBatchingStyle(e){this.cellComp.toggleCss("ag-cell-editing",e??!1),this.cellComp.toggleCss("ag-cell-batch-edit",(e&&this.editSvc?.isBatchEditing())??!1)}},Qr=class extends I{constructor(e,t){super(),this.rowCtrl=e,this.beans=t,this.gos=t.gos,this.editSvc=t.editSvc,this.editModelSvc=t.editModelSvc}applyRowStyles(){const{rowCtrl:e,editModelSvc:t,beans:o}=this;let i=e.rowNode,s=t?.getEditRow(i);const n=this.editModelSvc?.getRowValidationModel().hasRowValidation({rowNode:i});if(!s&&i.pinnedSibling&&(i=i.pinnedSibling,s=t?.getEditRow(i)),s){const e=Array.from(s.keys()).some((e=>{const t={rowNode:i,column:e};return _hasEdits(o,t,!0)||_hasLeafEdits(o,t)||_hasPinnedEdits(o,t)}));this.applyStyle(n,e)}else this.applyStyle(n)}applyStyle(e=!1,t=!1){const o=this.editSvc?.isBatchEditing()??!1,i="fullRow"===this.gos.get("editType");this.rowCtrl?.forEachGui(void 0,(({rowComp:s})=>{s.toggleCss("ag-row-editing",i&&t),s.toggleCss("ag-row-batch-edit",i&&t&&o),s.toggleCss("ag-row-inline-editing",t),s.toggleCss("ag-row-not-inline-editing",!t),s.toggleCss("ag-row-editing-invalid",i&&t&&e)}))}},_refreshEditCells=e=>()=>{const t=new Set(e.colModel.getCols()),o=e.editModelSvc.getEditMap(!0),i=new Set(o.keys());(({editModelSvc:e},t,o)=>{t.forEach((t=>e?.getEditRow(t)?.forEach(((i,s)=>!o.has(s)&&e.removeEdits({rowNode:t,column:s})))))})(e,(({rowModel:e,pinnedRowModel:t,editModelSvc:o},i)=>{const s=new Set;return e.forEachNode((e=>i.has(e)&&s.add(e))),t?.forEachPinnedRow("top",(e=>i.has(e)&&s.add(e))),t?.forEachPinnedRow("bottom",(e=>i.has(e)&&s.add(e))),i.forEach((e=>{s.has(e)||o.removeEdits({rowNode:e})})),s})(e,i),t)},Yr=new Set(["undo","redo"]),Zr={paste:"ui",rangeSvc:"ui",fillHandle:"api",cellClear:"api"},Jr=new Set(Object.keys(Zr)),Xr={cancel:!0,source:"api"},ea={cancel:!1,source:"api"},ta={checkSiblings:!0},oa={force:!0,suppressFlash:!0},ia=class extends I{postConstruct(){this.model=this.beans.editModelSvc,this.editSvc=this.beans.editSvc,this.addManagedEventListeners({cellFocused:this.onCellFocusChanged?.bind(this),cellFocusCleared:this.onCellFocusChanged?.bind(this)})}clearEdits(e){this.model.clearEditValue(e)}onCellFocusChanged(e){let t;const o=e.previousParams,{editSvc:i,beans:s}=this;o&&(t=_getCellCtrl(s,o));const{gos:n,editModelSvc:r}=s,a="cellFocusCleared"===e.type;if(i.isEditing(void 0,{withOpenEditor:!0})){const{column:t,rowIndex:l,rowPinned:d}=e,c={column:t,rowNode:_getRowNode(s,{rowIndex:l,rowPinned:d})},h="block"===n.get("invalidEditValueMode")&&!!r?.getCellValidationModel().hasCellValidation(c);!o&&!a||i.stopEditing(void 0,{cancel:h,source:a?"api":void 0})||(i.isBatchEditing()?i.cleanupEditors():i.stopEditing(void 0,{source:"api"}))}t?.refreshCell({suppressFlash:!0,force:!0})}isCellEditable({rowNode:e,column:t},o="ui"){return t.isColumnFunc(e,t.getColDef().editable)}stop(e){const t=this.model.getEditPositions(),o={all:[],pass:[],fail:[]};if(t.forEach((e=>{o.all.push(e);(this.model.getCellValidationModel().getCellValidation(e)?.errorMessages?.length??0)>0?o.fail.push(e):o.pass.push(e)})),e)return t.forEach((e=>{_destroyEditor(this.beans,e),this.model.stop(e)})),!0;const i=this.processValidationResults(o);return i.destroy.length>0&&i.destroy.forEach((e=>{_destroyEditor(this.beans,e),this.model.stop(e)})),i.keep.length>0&&i.keep.forEach((e=>{const t=_getCellCtrl(this.beans,e);this.editSvc?.cellEditingInvalidCommitBlocks()||t&&this.editSvc.revertSingleCellEdit(t)})),!0}cleanupEditors({rowNode:e}={},t){_syncFromEditors(this.beans);const o=this.model.getEditPositions(),i=[];e?o.forEach((t=>{e&&t.rowNode!==e&&i.push(t)})):o.forEach((e=>{i.push(e)})),_destroyEditors(this.beans,i),_purgeUnchangedEdits(this.beans,t)}stopAllEditing(){_syncFromEditors(this.beans),this.stop()}setFocusOutOnEditor(e){e.comp?.getCellEditor()?.focusOut?.()}setFocusInOnEditor(e){const t=e.comp,o=t?.getCellEditor();if(o?.focusIn)o.focusIn();else{const o="fullRow"===this.beans.gos.get("editType");e.focusCell(o),e.onEditorAttachedFuncs.push((()=>t?.getCellEditor()?.focusIn?.()))}}setupEditors(e=this.model.getEditPositions(),t,o,i,s=!1){const n=i instanceof KeyboardEvent&&!s&&i.key||void 0;!function _setupEditors(e,t,o,i,s,n){0===t.length&&o?.rowNode&&o?.column&&_setupEditor(e,o,{key:i,event:s,cellStartedEdit:n});const{valueSvc:r,editSvc:a,editModelSvc:l}=e,{rowNode:d,column:c}=o??{};for(const h of t){const{rowNode:t,column:u}=h,g=_getCellCtrl(e,h);if(!g){if(t&&u){const e=r.getValue(u,t,void 0,"api"),s=(o?.rowNode===t&&o?.column===u&&i||void 0)??a?.getCellDataValue(h)??r.getValueForDisplay(u,t)?.value??e??Ee;l?.setEdit(h,{newValue:s,oldValue:e,state:"editing"})}continue}const p=n&&d===g.rowNode&&g.column===c;_setupEditor(e,{rowNode:d,column:g.column},{key:p?i:null,event:p?s:null,cellStartedEdit:p})}}(this.beans,e,t,n,i,o)}dispatchCellEvent(e,t,o,i){const s=_getCellCtrl(this.beans,e);s&&this.eventSvc.dispatchEvent({...s.createEvent(t??null,o),...i})}dispatchRowEvent(e,t){const o=_getRowCtrl(this.beans,e);o&&this.eventSvc.dispatchEvent(o.createRowEvent(t))}shouldStart({column:e},t,o,i="ui"){if(t instanceof KeyboardEvent&&(t.key===De||t.key===xe||t.key===Ne||t.key===Pe&&o))return!0;if(t?.shiftKey&&0!=this.beans.rangeSvc?.getCellRanges().length)return!1;const s=e?.getColDef(),n=this.deriveClickCount(s),r=t?.type;return"click"===r&&1===t?.detail&&1===n||("dblclick"===r&&2===t?.detail&&2===n||"api"===i&&(o??!1))}shouldStop(e,t,o="ui"){const i=this.editSvc.isBatchEditing();return!(!i||"api"!==o)||(!i||"ui"!==o)&&("api"===o||(t instanceof KeyboardEvent&&!i?t.key===xe:null))}shouldCancel(e,t,o="ui"){const i=this.editSvc.isBatchEditing();if(t instanceof KeyboardEvent&&!i){if(t.key===Me)return!0}return!(!i||"api"!==o)||"api"===o}setEditMap(e,t){t?.update||this.editSvc.stopEditing(void 0,{cancel:!0,source:"api"});const o=[];if(e.forEach(((e,t)=>{e.forEach(((e,i)=>{"editing"===e.state&&o.push({...e,rowNode:t,column:i})}))})),t?.update&&(e=new Map([...this.model.getEditMap(),...e])),this.model?.setEditMap(e),o.length>0){const e=o.at(-1),t=e.newValue===Ee?void 0:e.newValue;this.start(e,new KeyboardEvent("keydown",{key:t}),"api");const i=_getCellCtrl(this.beans,e);i&&this.setFocusInOnEditor(i)}}deriveClickCount(e){const{gos:t}=this.beans;return!0===t.get("suppressClickEdit")?0:!0===t.get("singleClickEdit")||e?.singleClickEdit?1:2}destroy(){this.cleanupEditors(),super.destroy()}},sa={moduleName:"EditCore",version:R,beans:[class extends I{constructor(){super(...arguments),this.beanName="editModelSvc",this.edits=new Map,this.cellValidations=new Re,this.rowValidations=new Fe,this.suspendEdits=!1}suspend(e){this.suspendEdits=e}removeEdits({rowNode:e,column:t}){if(!this.hasEdits({rowNode:e})||!e)return;const o=this.getEditRow(e);t?o.delete(t):o.clear(),0===o.size&&this.edits.delete(e)}getEditRow(e,t={}){if(this.suspendEdits)return;if(0===this.edits.size)return;const o=e&&this.edits.get(e);if(o)return o;if(t.checkSiblings){const t=e.pinnedSibling;if(t)return this.getEditRow(t)}}getEditRowDataValue(e,{checkSiblings:t}={}){if(0===this.edits.size)return e.data;const o=this.getEditRow(e),i=e.pinnedSibling,s=t&&i&&this.getEditRow(i);if(!o&&!s)return e.data;const n=Object.assign({},e.data),applyEdits=(e,t)=>e.forEach((({newValue:e},o)=>{e!==Ee&&(t[o.getColId()]=e)}));return o&&applyEdits(o,n),s&&applyEdits(s,n),n}getEdit(e){return this._getEdit(e)}_getEdit(e){if(!this.suspendEdits&&0!==this.edits.size)return e.rowNode&&e.column&&this.getEditRow(e.rowNode)?.get(e.column)}getEditMap(e=!0){if(this.suspendEdits||0===this.edits.size)return new Map;if(!e)return this.edits;const t=new Map;return this.edits.forEach(((e,o)=>t.set(o,new Map(e)))),t}setEditMap(e){this.edits.clear(),e.forEach(((e,t)=>{const o=new Map;e.forEach(((e,t)=>o.set(t,{...e}))),this.edits.set(t,o)}))}setEdit(e,t){(0===this.edits.size||!this.edits.has(e.rowNode))&&this.edits.set(e.rowNode,new Map);const o=Object.assign({},this._getEdit(e));Object.keys(t).forEach((e=>{const i=t[e];void 0!==i&&(o[e]=i)})),this.getEditRow(e.rowNode).set(e.column,o)}clearEditValue(e){const{rowNode:t,column:o}=e;if(t)if(o){const t=this._getEdit(e);t&&(t.newValue=t.oldValue,t.state="changed")}else this.getEditRow(t)?.forEach((e=>{e.newValue=e.oldValue,e.state="changed"}))}setState(e,t){if(!e.rowNode||!e.column)return;const{rowNode:o,column:i}=e;let s=this.getEditRow(o);const n=s?.get(i);n?n.state=t:(s||(s=new Map,this.edits.set(o,s)),s.set(i,{newValue:void 0,oldValue:void 0,state:t}))}getState(e){if(!this.suspendEdits)return this.getEdit(e)?.state}getEditPositions(e){if(this.suspendEdits||0===(e??this.edits).size)return[];const t=[];return(e??this.edits).forEach(((e,o)=>{for(const i of e.keys())t.push({rowNode:o,column:i,...e.get(i)})})),t}hasRowEdits(e,t){if(this.suspendEdits)return!1;if(0===this.edits.size)return!1;return!!this.getEditRow(e,t)}hasEdits(e={},t={}){if(this.suspendEdits)return!1;if(0===this.edits.size)return!1;const{rowNode:o,column:i}=e,{withOpenEditor:s}=t;if(o){const n=this.getEditRow(o,t);return!!n&&(i?s?"editing"===this.getEdit(e)?.state:n.has(i)??!1:0!==n.size&&(!s||Array.from(n.values()).some((({state:e})=>"editing"===e))))}return s?this.getEditPositions().some((({state:e})=>"editing"===e)):this.edits.size>0}start(e){const t=this.getEditRow(e.rowNode)??new Map,{rowNode:o,column:i}=e;i&&!t.has(i)&&t.set(i,{newValue:Ee,oldValue:this.beans.valueSvc.getValue(i,o,!0,"api"),state:"editing"}),this.edits.set(o,t)}stop(e){this.hasEdits(e)&&(e?this.removeEdits(e):this.clear())}clear(){for(const e of this.edits.values())e.clear();this.edits.clear()}getCellValidationModel(){return this.cellValidations}getRowValidationModel(){return this.rowValidations}setCellValidationModel(e){this.cellValidations=e}setRowValidationModel(e){this.rowValidations=e}destroy(){super.destroy(),this.clear()}},class extends I{constructor(){super(...arguments),this.beanName="editSvc",this.batch=!1}postConstruct(){const{beans:e}=this;this.model=e.editModelSvc,this.valueSvc=e.valueSvc,this.rangeSvc=e.rangeSvc,this.addManagedPropertyListener("editType",(({currentValue:e})=>{this.stopEditing(void 0,Xr),this.createStrategy(e)}));const t=_refreshEditCells(e),stopInvalidEdits=()=>{const t=this.model.getCellValidationModel().getCellValidationMap().size>0,o=this.model.getRowValidationModel().getRowValidationMap().size>0;return t||o?this.stopEditing(void 0,Xr):this.isEditing()&&(this.isBatchEditing()?_destroyEditors(e,this.model.getEditPositions()):this.stopEditing(void 0,ea)),!1};this.addManagedEventListeners({columnPinned:t,columnVisible:t,columnRowGroupChanged:t,rowGroupOpened:t,pinnedRowsChanged:t,displayedRowsChanged:t,rowDataUpdated:stopInvalidEdits,sortChanged:stopInvalidEdits,filterChanged:stopInvalidEdits,cellFocused:this.onCellFocused.bind(this)})}isBatchEditing(){return this.batch}setBatchEditing(e){e?(this.batch=!0,this.stopEditing(void 0,Xr)):(this.stopEditing(void 0,Xr),this.batch=!1)}createStrategy(e){const{beans:t,gos:o,strategy:i}=this,s=e??o.get("editType")??"singleCell";if(i){if(i.beanName===s)return i;this.destroyStrategy()}return this.strategy=this.createOptionalManagedBean(t.registry.createDynamicBean(s,!0))}destroyStrategy(){this.strategy&&(this.strategy.destroy(),this.strategy=this.destroyBean(this.strategy))}shouldStartEditing(e,t,o,i="ui"){return this.strategy??(this.strategy=this.createStrategy()),this.strategy?.shouldStart(e,t,o,i)??null}shouldStopEditing(e,t,o="ui"){return this.strategy?.shouldStop(e,t,o)??null}shouldCancelEditing(e,t,o="ui"){return this.strategy?.shouldCancel(e,t,o)??null}validateEdit(){return function _validateEdit(e){_populateModelValidationErrors(e);const t=e.editModelSvc?.getCellValidationModel().getCellValidationMap();if(!t)return null;const o=[];return t.forEach(((e,t)=>{e.forEach((({errorMessages:e},i)=>{o.push({column:i,rowIndex:t.rowIndex,rowPinned:t.rowPinned,messages:e??null})}))})),o}(this.beans)}isEditing(e,t){return this.model.hasEdits(e,t??ta)}isRowEditing(e,t){return(e&&this.model.hasRowEdits(e,t))??!1}startEditing(e,t){const{startedEdit:o=!0,event:i=null,source:s="ui",ignoreEventKey:n=!1}=t;if(this.strategy??(this.strategy=this.createStrategy()),!this.isCellEditable(e,"api"))return;const r=_getCellCtrl(this.beans,e);if(r&&!r.comp)return void r.onCompAttachedFuncs.push((()=>this.startEditing(e,t)));const a=this.shouldStartEditing?.(e,i,o,s);!1!==a||"api"===s?(!this.batch&&this.shouldStopEditing(e,void 0,s)&&this.stopEditing(void 0,{source:s}),a&&this.isBatchEditing()&&this.dispatchBatchEvent("batchEditingStarted",new Map),this.strategy.start(e,i,s,n)):this.isEditing(e)&&this.stopEditing()}stopEditing(e,t){const{event:o,cancel:i,source:s="ui",suppressNavigateAfterEdit:n}=t||{},{beans:r,model:a}=this;if(Jr.has(s))return this.isBatchEditing()?(this.bulkRefresh(e),!1):this.stopEditing(e,{...t,source:Zr[s]});if(!this.isEditing()||!this.strategy)return!1;const l=_getCellCtrl(r,e);l&&(l.onEditorAttachedFuncs=[]);let d=a.getEditMap(!0),c=!1;const h=!i&&!!this.shouldStopEditing(e,o,s),u=i&&!!this.shouldCancelEditing(e,o,s);if(h||u){_syncFromEditors(r);const e=a.getEditMap();this.processEdits(e,i),this.strategy?.stop(i),this.bulkRefresh(void 0,d),d=e,c||(c=h)}else if(o instanceof KeyboardEvent&&this.batch&&this.strategy?.midBatchInputsAllowed(e)&&this.isEditing(e,{withOpenEditor:!0})){const t=o.key,i=t===xe,s=t===Me;(i||s)&&(i?_syncFromEditors(r):s&&this.revertSingleCellEdit(l,!1),this.isBatchEditing()?this.strategy?.cleanupEditors():_destroyEditors(r,a.getEditPositions()),o.preventDefault(),this.bulkRefresh(e,d,{suppressFlash:!0}),d=a.getEditMap())}else _syncFromEditors(r),d=a.getEditMap();return c&&e&&this.model.removeEdits(e),!n&&l&&this.navigateAfterEdit(o instanceof KeyboardEvent&&o.shiftKey,l.cellPosition),_purgeUnchangedEdits(r),this.model.hasEdits()||(this.model.getCellValidationModel().clearCellValidationMap(),this.model.getRowValidationModel().clearRowValidationMap()),this.bulkRefresh(),u&&this.beans.rowRenderer.refreshRows({rowNodes:Array.from(d.keys())}),this.isBatchEditing()&&(this.beans.rowRenderer.refreshRows({suppressFlash:!0,force:!0}),c&&h&&this.dispatchBatchEvent("batchEditingStopped",d)),c}navigateAfterEdit(e,t){if(this.gos.get("enterNavigatesVerticallyAfterEdit")){const o=e?Ie:Le;this.beans.navigation?.navigateToNextCell(null,o,t,!1)}}processEdits(e,t=!1){const o=Array.from(e.keys()),{beans:i}=this,s=this.model.getCellValidationModel().getCellValidationMap().size>0||this.model.getRowValidationModel().getRowValidationMap().size>0,n=[];for(const r of o){const o=e.get(r);for(const e of o.keys()){const a=o.get(e),l={rowNode:r,column:e},d=_getCellCtrl(i,l),c=_valuesDiffer(a),h=d?.comp?.getCellEditor()?.isCancelAfterEnd?.();if(!t&&!h&&c&&!s){this.setNodeDataValue(r,e,a.newValue)||n.push(l)}d?.refreshCell(oa)}}n.forEach((e=>{this.model.clearEditValue(e)}))}setNodeDataValue(e,t,o,i){const{beans:s}=this,n=_getCellCtrl(s,{rowNode:e,column:t});n&&(n.suppressRefreshCell=!0);const r=e.setDataValue(t,o,"commit");return n&&(n.suppressRefreshCell=!1),i&&n?.refreshCell(oa),r}setEditMap(e,t){this.strategy??(this.strategy=this.createStrategy()),this.strategy?.setEditMap(e,t),this.bulkRefresh(),this.beans.rowRenderer.refreshCells(oa)}dispatchEditValuesChanged({rowNode:e,column:t},o={}){if(!e||!t||!o)return;const{newValue:i,oldValue:s}=o,{rowIndex:n,rowPinned:r,data:a}=e;this.beans.eventSvc.dispatchEvent({type:"cellEditValuesChanged",node:e,rowIndex:n,rowPinned:r,column:t,source:"api",data:a,newValue:i,oldValue:s,value:i,colDef:t.getColDef()})}bulkRefresh(e={},t,o={}){const{beans:i,gos:s}=this,{editModelSvc:n,rowModel:r}=i;_isClientSideRowModel(s)&&(e.rowNode&&e.column?this.refCell(e,this.model.getEdit(e),o):t&&n?.getEditMap(!1)?.forEach(((e,t)=>{for(const i of e.keys())this.refCell({rowNode:t,column:i},e.get(i),o)})))}refCell({rowNode:e,column:t},o,i={}){const{beans:s,gos:n}=this,r=new Set([e]),a=new Set,l=e.pinnedSibling;l&&r.add(l);const d=e.sibling;d&&a.add(d);let c=e.parent;for(;c;)c.sibling?.footer&&n.get("groupTotalRow")||!c.parent&&c.sibling&&n.get("grandTotalRow")?a.add(c.sibling):a.add(c),c=c.parent;r.forEach((e=>this.dispatchEditValuesChanged({rowNode:e,column:t},o))),r.forEach((e=>_getCellCtrl(s,{rowNode:e,column:t})?.refreshCell(i))),a.forEach((e=>_getCellCtrl(s,{rowNode:e,column:t})?.refreshCell(i)))}stopAllEditing(e=!1,t="ui"){this.isEditing()&&this.stopEditing(void 0,{cancel:e,source:t})}isCellEditable(e,t="ui"){const{rowNode:o}=e;if(o.group)if(this.gos.get("treeData")){if(!o.data&&!this.gos.get("enableGroupEdit"))return!1}else if(!this.gos.get("enableGroupEdit"))return!1;return this.strategy??(this.strategy=this.createStrategy()),this.strategy?.isCellEditable(e,t)??!1}cellEditingInvalidCommitBlocks(){return"block"===this.gos.get("invalidEditValueMode")}checkNavWithValidation(e,t){if(this.hasValidationErrors(e)){const o=_getCellCtrl(this.beans,e);return this.cellEditingInvalidCommitBlocks()?(t?.preventDefault?.(),!o?.hasBrowserFocus()&&o?.focusCell(),o?.comp?.getCellEditor()?.focusIn?.(),"block-stop"):(o&&this.revertSingleCellEdit(o),"revert-continue")}return"continue"}revertSingleCellEdit(e,t=!1){const o=_getCellCtrl(this.beans,e);o?.comp?.getCellEditor()&&(this.model.clearEditValue(e),_destroyEditors(this.beans,[e],{silent:!0}),_setupEditor(this.beans,e,{silent:!0}),_populateModelValidationErrors(this.beans),o?.refreshCell(oa),o.rowCtrl.rowEditStyleFeature?.applyRowStyles(),t&&(o?.focusCell(),o?.comp?.getCellEditor()?.focusIn?.()))}hasValidationErrors(e){_populateModelValidationErrors(this.beans);const t=_getCellCtrl(this.beans,e);t&&(t.refreshCell(oa),t.rowCtrl.rowEditStyleFeature?.applyRowStyles());let o=!1;return e?.rowNode?(o||(o=this.model.getRowValidationModel().hasRowValidation({rowNode:e.rowNode})),e.column&&(o||(o=this.model.getCellValidationModel().hasCellValidation({rowNode:e.rowNode,column:e.column})))):(o||(o=this.model.getCellValidationModel().getCellValidationMap().size>0),o||(o=this.model.getRowValidationModel().getRowValidationMap().size>0)),o}moveToNextCell(e,t,o,i="ui"){let s;return e instanceof tt&&this.isEditing()&&(s=this.strategy?.moveToNextEditingCell(e,t,o,i)),null===s||(s=s||!!this.beans.focusSvc.focusedHeader,!1===s&&this.stopEditing()),s}getCellDataValue({rowNode:e,column:t}){if(!e||!t)return;let o=this.model.getEdit({rowNode:e,column:t});const i=e.pinnedSibling;if(i){const e=this.model.getEdit({rowNode:i,column:t});e&&(o=e)}const s=o?.newValue;return s!==Ee&&o?s:this.valueSvc.getValue(t,e,!0,"api")}getRowDataValue(e,t){return this.model.getEditRowDataValue(e,t)}addStopEditingWhenGridLosesFocus(e){!function _addStopEditingWhenGridLosesFocus(e,t,o){const{gos:i,popupSvc:s}=t;if(!i.get("stopEditingWhenCellsLoseFocus"))return;const focusOutListener=e=>{const n=e.relatedTarget;if(null===_getTabIndex(n))return void _stopEditing(t);let r=o.some((e=>e.contains(n)))&&_isElementInThisGrid(i,n);r||(r=!!s&&(s.getActivePopups().some((e=>e.contains(n)))||s.isElementWithinCustomPopup(n))),r||_stopEditing(t)};o.forEach((t=>e.addManagedElementListeners(t,{focusout:focusOutListener})))}(this,this.beans,e)}createPopupEditorWrapper(e){return new jr(e)}setDataValue(e,t,o){if((!this.isEditing()||"commit"===o)&&"paste"!==o&&"rangeSvc"!==o&&"renderer"!==o&&"cellClear"!==o)return;const{beans:i}=this;this.strategy??(this.strategy=this.createStrategy());const s=this.isBatchEditing()?"ui":"api";if(!o||Yr.has(o))return _syncFromEditor(i,e,t),this.setNodeDataValue(e.rowNode,e.column,t,!1);const n=this.model.getEdit(e);if(n){if(n.newValue===t)return!1;if(n.oldValue!==t)return _syncFromEditor(i,e,t),this.stopEditing(e,{source:s}),!0;if(n.oldValue===t)return i.editModelSvc?.removeEdits(e),this.dispatchEditValuesChanged(e,{newValue:t,oldValue:n.oldValue}),!0}return _syncFromEditor(i,e,t),this.stopEditing(e,{source:s}),!0}handleColDefChanged(e){!function _refreshEditorOnColDefChanged(e,t){const o=t.comp?.getCellEditor();if(!o?.refresh)return;const{eventKey:i,cellStartedEdit:s}=t.editCompDetails.params,{column:n}=t,r=_createEditorParams(e,t,i,s),a=n.getColDef(),l=_getCellEditorDetails(e.userCompFactory,a,r);o.refresh(checkAndPreventDefault(l.params,i))}(this.beans,e)}destroy(){this.model.clear(),this.destroyStrategy(),super.destroy()}prepDetailsDuringBatch(e,t){if(!this.batch)return;if(!this.model.hasRowEdits(e.rowNode,ta))return;const{rowNode:o,column:i}=e,{compDetails:s,valueToDisplay:n}=t;if(s){const{params:e}=s;return e.data=this.model.getEditRowDataValue(o,ta),{compDetails:s}}const r=this.model.getEditRow(e.rowNode,ta);return void 0!==n&&r?.has(i)?{valueToDisplay:this.valueSvc.getValue(i,o)}:void 0}cleanupEditors(){this.strategy?.cleanupEditors()}dispatchCellEvent(e,t,o,i){this.strategy?.dispatchCellEvent(e,t,o,i)}dispatchRowEvent(e,t){this.strategy?.dispatchRowEvent(e,t)}dispatchBatchEvent(e,t){this.eventSvc.dispatchEvent(this.createBatchEditEvent(e,t))}createBatchEditEvent(e,t){return _addGridCommonParams(this.gos,{type:e,..."batchEditingStopped"===e?{changes:this.model.getEditPositions(t).map((e=>({...e,rowIndex:e.rowNode.rowIndex,rowPinned:e.rowNode.rowPinned,columnId:e.column.getColId()})))}:{}})}applyBulkEdit({rowNode:e,column:t},o){if(!o||0===o.length)return;const{beans:i,rangeSvc:s,valueSvc:n}=this;_syncFromEditors(i);const r=this.model.getEditMap(!0),a=r.get(e)?.get(t)?.newValue;o.forEach((e=>{if(s?.forEachRowInRange(e,(t=>{const o=_getRowNode(i,t);if(void 0===o)return;const s=r.get(o)??new Map;for(const t of e.columns)if(t&&this.isCellEditable({rowNode:o,column:t},"api")){const e=n.getValue(t,o,!0,"api");let i=n.parseValue(t,o??null,a,e);Number.isNaN(i)&&(i=null),s.set(t,{newValue:i,oldValue:e,state:"changed"})}s.size>0&&r.set(o,s)})),this.setEditMap(r),this.batch)return this.cleanupEditors(),_purgeUnchangedEdits(i),void this.bulkRefresh();this.stopEditing(void 0,{source:"api"})})),this.bulkRefresh();const l=_getCellCtrl(i,{rowNode:e,column:t});l&&l.focusCell(!0)}createCellStyleFeature(e,t){return new qr(e,t)}createRowStyleFeature(e,t){return new Qr(e,t)}setEditingCells(e,t){const{beans:o}=this,{colModel:i,valueSvc:s}=o,n=new Map;e.forEach((({colId:e,column:t,colKey:r,rowIndex:a,rowPinned:l,newValue:d,state:c})=>{const h=e?i.getCol(e):r?i.getCol(r):t;if(!h)return;const u=_getRowNode(o,{rowIndex:a,rowPinned:l});if(!u)return;const g=s.getValue(h,u,!0,"api");if(!_valuesDiffer({newValue:d,oldValue:g})&&"editing"!==c)return;let p=n.get(u);p||(p=new Map,n.set(u,p)),void 0===d&&(d=Ee),p.set(h,{newValue:d,oldValue:g,state:c??"changed"})})),this.setEditMap(n,t)}onCellFocused(e){const t=_getCellCtrl(this.beans,e);if(!t||!this.isEditing(t,ta))return;const o=this.model.getEdit(t);if(!o||!_valuesDiffer(o))return;const i=this.getLocaleTextFunc()("ariaPendingChange","Pending Change");this.beans.ariaAnnounce?.announceValue(i,"pendingChange")}allowedFocusTargetOnValidation(e){return _getCellCtrl(this.beans,e)}}],apiFunctions:{getEditingCells:function getEditingCells(e){const t=e.editModelSvc?.getEditMap(),o=[];return t?.forEach(((e,t)=>{const{rowIndex:i,rowPinned:s}=t;e.forEach((({newValue:e,oldValue:t,state:n},r)=>{const a=_valuesDiffer({newValue:e,oldValue:t});e===Ee&&(e=void 0);const l={newValue:e,oldValue:t,state:n,column:r,colId:r.getColId(),colKey:r.getColId(),rowIndex:i,rowPinned:s};("editing"===n||"changed"===n&&a)&&o.push(l)}))})),o},getCellEditorInstances:(e,t={})=>getCellEditorInstanceMap(e,t).map((e=>e.editor)),startEditingCell:function startEditingCell(e,t){const{key:o,colKey:i,rowIndex:s,rowPinned:n}=t,{editSvc:r,colModel:a}=e,l=a.getCol(i);if(!l)return void _warn(12,{colKey:i});const d={rowIndex:s,rowPinned:n||null,column:l},c=_getRowNode(e,d);if(!c)return void _warn(290,{rowIndex:s,rowPinned:n});if(!l.isCellEditable(c))return;null==n&&ensureIndexVisible(e,s),ensureColumnVisible(e,i),_getCellByPosition(e,d)&&r?.setEditingCells([{...d,colId:l.getColId(),newValue:o,state:"editing"}],{update:!0})},stopEditing:function stopEditing(e,t=!1){const{editSvc:o}=e;o?.isBatchEditing()?(t?e.editModelSvc?.getEditPositions().forEach((e=>{"editing"===e.state&&o.revertSingleCellEdit(e)})):_syncFromEditors(e),_destroyEditors(e)):o?.stopEditing(void 0,{cancel:t,source:"api"})},isEditing:function isEditing(e,t){const o=_getCellCtrl(e,t);return e.editSvc?.isEditing(o)??!1},validateEdit:function validateEdit(e){return e.editSvc?.validateEdit()||null}},dynamicBeans:{singleCell:class extends ia{constructor(){super(...arguments),this.beanName="singleCell"}shouldStop(e,t,o="ui"){const i=super.shouldStop(e,t,o);if(null!==i)return i;const{rowNode:s,column:n}=e||{};return this.rowNode&&this.column||!s||!n?this.rowNode!==s||this.column!==n:null}midBatchInputsAllowed(e){return this.model.hasEdits(e)}start(e,t,o="ui",i){this.rowNode===e.rowNode&&this.column===e.column||super.cleanupEditors(),this.rowNode=e.rowNode,this.column=e.column,this.model.start(e),this.setupEditors([e],e,!0,t,i)}dispatchRowEvent(e,t){}stop(e){return super.stop(e),this.rowNode=void 0,this.column=void 0,!0}onCellFocusChanged(e){const{colModel:t,editSvc:o}=this.beans,{rowIndex:i,column:s,rowPinned:n}=e,r=_getRowNode(this.beans,{rowIndex:i,rowPinned:n}),a=_getColId(s),l=t.getCol(a),d=e.previousParams;if(d){const e=_getColId(d.column);if(d?.rowIndex===i&&e===a&&d?.rowPinned===n)return}o?.isEditing({rowNode:r,column:l},{withOpenEditor:!0})&&"cellFocused"===e.type||super.onCellFocusChanged(e)}moveToNextEditingCell(e,t,o,i="ui"){const s="block-stop"===this.editSvc.checkNavWithValidation(void 0,o),n=e.cellPosition;let r;const a="fullRow"===this.beans.gos.get("editType");a&&this.model.suspend(!0),s||(e.eGui.focus(),e.stopEditing());try{r=this.beans.navigation?.findNextCellToFocusOn(n,{backwards:t,startEditing:!0})}finally{a&&this.model.suspend(!1)}if(!1===r)return null;if(null==r)return!1;const l=r.cellPosition,d=e.isCellEditable(),c=r.isCellEditable(),h=l&&n.rowIndex===l.rowIndex&&n.rowPinned===l.rowPinned;if(!h&&(_populateModelValidationErrors(this.beans),0===(this.model.getRowValidationModel().getRowValidationMap().size??0))){if("block-stop"===this.editSvc.checkNavWithValidation(e,o))return!0}return d&&!s&&this.setFocusOutOnEditor(e),h||s||(super.cleanupEditors(r,!0),this.editSvc.startEditing(r,{startedEdit:!0,event:o,source:i,ignoreEventKey:!0})),c&&!s?(r.focusCell(!1,o),r.comp?.getCellEditor()||_setupEditor(this.beans,r,{event:o,cellStartedEdit:!0}),this.setFocusInOnEditor(r)):r.focusCell(!0,o),e.rowCtrl?.refreshRow({suppressFlash:!0,force:!0}),!0}processValidationResults(e){return e.fail.length>0&&this.editSvc.cellEditingInvalidCommitBlocks()?{destroy:[],keep:e.all}:{destroy:e.all,keep:[]}}destroy(){super.destroy(),this.rowNode=void 0,this.column=void 0}},fullRow:class extends ia{constructor(){super(...arguments),this.beanName="fullRow",this.startedRows=[]}isCellEditable(e,t="ui"){const o=super.isCellEditable(e,t);if(!0===o||"ui"===t)return o;return this.beans.colModel.getCols().some((o=>super.isCellEditable({rowNode:e.rowNode,column:o},t)))}shouldStop(e,t,o="ui"){const{rowNode:i}=e||{};if(!_getRowCtrl(this.beans,{rowNode:this.rowNode}))return!0;const s=super.shouldStop({rowNode:this.rowNode},t,o);return null!==s?s:!!this.rowNode&&i!==this.rowNode}midBatchInputsAllowed({rowNode:e}){return!!e&&this.model.hasEdits({rowNode:e})}clearEdits(e){this.model.clearEditValue(e)}start(e,t,o="ui",i){const{rowNode:s}=e;this.rowNode!==s&&super.cleanupEditors(e),this.dispatchRowEvent({rowNode:s},"rowEditingStarted"),this.startedRows.push(s);const n=this.beans.visibleCols.allCols,r=[];n.forEach((e=>{if(!e.isCellEditable(s))return;const t={rowNode:s,column:e};r.push(t),this.model.hasEdits(t)||this.model.start(t)})),this.rowNode=s,this.setupEditors(r,e,!0,t,i)}processValidationResults(e){return e.fail.length>0&&this.editSvc.cellEditingInvalidCommitBlocks()?{destroy:[],keep:e.all}:{destroy:e.all,keep:[]}}stop(e){const{rowNode:t}=this;if(t&&!this.model.hasRowEdits(t))return!1;const o=[];return e||this.model.getEditMap().forEach(((e,t)=>{if(e&&0!==e.size)for(const i of e.values())if(_valuesDiffer(i)){o.push(t);break}})),_populateModelValidationErrors(this.beans),!(!e&&"block-stop"===this.editSvc?.checkNavWithValidation({rowNode:t}))&&(super.stop(e),o.forEach((e=>this.dispatchRowEvent({rowNode:e},"rowValueChanged"))),this.cleanupEditors({rowNode:t},!0),this.rowNode=void 0,!0)}onCellFocusChanged(e){const{rowIndex:t}=e,o=e.previousParams;if(o?.rowIndex===t||e.sourceEvent instanceof KeyboardEvent)return;const i=_getCellCtrl(this.beans,o);i&&(this.model.getCellValidationModel().getCellValidation(i)||this.model.getRowValidationModel().getRowValidation(i))||super.onCellFocusChanged(e)}cleanupEditors(e={},t){super.cleanupEditors(e,t),this.startedRows.forEach((e=>this.dispatchRowEvent({rowNode:e},"rowEditingStopped"))),this.startedRows.length=0}moveToNextEditingCell(e,t,o,i="ui"){const s="block-stop"===this.editSvc.checkNavWithValidation(void 0,o),n=e.cellPosition;let r;this.model.suspend(!0);try{r=this.beans.navigation?.findNextCellToFocusOn(n,{backwards:t,startEditing:!0,skipToNextEditableCell:!1})}finally{this.model.suspend(!1)}if(!1===r)return null;if(null==r)return!1;const a=r.cellPosition,l=e.isCellEditable(),d=r.isCellEditable(),c=a&&n.rowIndex===a.rowIndex&&n.rowPinned===a.rowPinned;return l&&this.setFocusOutOnEditor(e),d&&!s?(r.comp?.getCellEditor()||_setupEditor(this.beans,r,{event:o,cellStartedEdit:!0}),this.setFocusInOnEditor(r),r.focusCell(!1,o)):r.focusCell(!0,o),c||s||(this.cleanupEditors(r,!0),this.editSvc.startEditing(r,{startedEdit:!0,event:o,source:i,ignoreEventKey:!0})),e.rowCtrl?.refreshRow({suppressFlash:!0,force:!0}),!0}destroy(){super.destroy(),this.rowNode=void 0,this.startedRows.length=0}}},dependsOn:[Jn,kr],css:[".ag-cell-inline-editing{border:var(--ag-cell-editing-border)!important;border-radius:var(--ag-border-radius);box-shadow:var(--ag-cell-editing-shadow);padding:0;z-index:1;.ag-cell-edit-wrapper,.ag-cell-editor,.ag-cell-wrapper,:where(.ag-cell-editor) .ag-input-field-input,:where(.ag-cell-editor) .ag-wrapper{height:100%;line-height:normal;min-height:100%;width:100%}&.ag-cell-editing-error{border-color:var(--ag-invalid-color)!important}}:where(.ag-popup-editor) .ag-large-text{background-color:var(--ag-background-color);border-radius:var(--ag-border-radius);box-shadow:var(--ag-dropdown-shadow);padding:0}.ag-large-text-input{height:auto;padding:var(--ag-cell-horizontal-padding)}:where(.ag-rtl .ag-large-text-input) textarea{resize:none}:where(.ag-ltr) .ag-checkbox-edit{padding-left:var(--ag-cell-horizontal-padding)}:where(.ag-rtl) .ag-checkbox-edit{padding-right:var(--ag-cell-horizontal-padding)}:where(.ag-row.ag-row-editing-invalid .ag-cell-inline-editing){opacity:.8}"]},na={moduleName:"UndoRedoEdit",version:R,beans:[class extends I{constructor(){super(...arguments),this.beanName="undoRedo",this.cellValueChanges=[],this.activeCellEdit=null,this.activeRowEdit=null,this.isPasting=!1,this.isRangeInAction=!1,this.batchEditing=!1,this.onCellValueChanged=e=>{const t={column:e.column,rowIndex:e.rowIndex,rowPinned:e.rowPinned},o=null!==this.activeCellEdit&&_areCellsEqual(this.activeCellEdit,t),i=null!==this.activeRowEdit&&function _isSameRow(e,t){return!e&&!t||!(e&&!t||!e&&t)&&e.rowIndex===t.rowIndex&&e.rowPinned==t.rowPinned}(this.activeRowEdit,t);if(!(o||i||this.isPasting||this.isRangeInAction))return;const{rowPinned:s,rowIndex:n,column:r,oldValue:a,value:l}=e,d={rowPinned:s,rowIndex:n,columnId:r.getColId(),newValue:l,oldValue:a};this.cellValueChanges.push(d)},this.clearStacks=()=>{this.undoStack.clear(),this.redoStack.clear()}}postConstruct(){const{gos:e,ctrlsSvc:t}=this.beans;if(!e.get("undoRedoCellEditing"))return;const o=e.get("undoRedoCellEditingLimit");if(o<=0)return;this.undoStack=new Nr(o),this.redoStack=new Nr(o),this.addListeners();const i=this.clearStacks.bind(this);this.addManagedEventListeners({cellValueChanged:this.onCellValueChanged.bind(this),modelUpdated:e=>{e.keepUndoRedoStack||this.clearStacks()},columnPivotModeChanged:i,newColumnsLoaded:i,columnGroupOpened:i,columnRowGroupChanged:i,columnMoved:i,columnPinned:i,columnVisible:i,rowDragEnd:i}),t.whenReady(this,(e=>{this.gridBodyCtrl=e.gridBodyCtrl}))}getCurrentUndoStackSize(){return this.undoStack?.getCurrentStackSize()??0}getCurrentRedoStackSize(){return this.redoStack?.getCurrentStackSize()??0}undo(e){const{eventSvc:t,undoStack:o,redoStack:i}=this;t.dispatchEvent({type:"undoStarted",source:e});const s=this.undoRedo(o,i,"initialRange","oldValue","undo");t.dispatchEvent({type:"undoEnded",source:e,operationPerformed:s})}redo(e){const{eventSvc:t,undoStack:o,redoStack:i}=this;t.dispatchEvent({type:"redoStarted",source:e});const s=this.undoRedo(i,o,"finalRange","newValue","redo");t.dispatchEvent({type:"redoEnded",source:e,operationPerformed:s})}undoRedo(e,t,o,i,s){if(!e)return!1;const n=e.pop();return!(!n||!n.cellValueChanges)&&(this.processAction(n,(e=>e[i]),s),n instanceof Gr?this.processRange(n.ranges||[n[o]]):this.processCell(n.cellValueChanges),t.push(n),!0)}processAction(e,t,o){e.cellValueChanges.forEach((e=>{const{rowIndex:i,rowPinned:s,columnId:n}=e,r={rowIndex:i,rowPinned:s},a=_getRowNode(this.beans,r);a.displayed&&a.setDataValue(n,t(e),o)}))}processRange(e){let t;const o=this.beans.rangeSvc;o.removeAllCellRanges(!0),e.forEach(((i,s)=>{if(!i)return;const n=i.startRow,r=i.endRow;s===e.length-1&&(t={rowPinned:n.rowPinned,rowIndex:n.rowIndex,columnId:i.startColumn.getColId()},this.setLastFocusedCell(t));const a={rowStartIndex:n.rowIndex,rowStartPinned:n.rowPinned,rowEndIndex:r.rowIndex,rowEndPinned:r.rowPinned,columnStart:i.startColumn,columns:i.columns};o.addCellRange(a)}))}processCell(e){const t=e[0],{rowIndex:o,rowPinned:i}=t,s={rowIndex:o,rowPinned:i},n=_getRowNode(this.beans,s),r={rowPinned:t.rowPinned,rowIndex:n.rowIndex,columnId:t.columnId};this.setLastFocusedCell(r)}setLastFocusedCell(e){const{rowIndex:t,columnId:o,rowPinned:i}=e,{colModel:s,focusSvc:n,rangeSvc:r}=this.beans,a=s.getCol(o);if(!a)return;const{scrollFeature:l}=this.gridBodyCtrl;l.ensureIndexVisible(t),l.ensureColumnVisible(a);const d={rowIndex:t,column:a,rowPinned:i};n.setFocusedCell({...d,forceBrowserFocus:!0}),r?.setRangeToCell(d)}addListeners(){this.addManagedEventListeners({rowEditingStarted:e=>{this.activeRowEdit={rowIndex:e.rowIndex,rowPinned:e.rowPinned}},rowEditingStopped:()=>{const e=new Lr(this.cellValueChanges);this.pushActionsToUndoStack(e),this.activeRowEdit=null},cellEditingStarted:e=>{this.activeCellEdit={column:e.column,rowIndex:e.rowIndex,rowPinned:e.rowPinned}},cellEditingStopped:e=>{this.activeCellEdit=null;if(e.valueChanged&&!this.activeRowEdit&&!this.isPasting&&!this.isRangeInAction){const e=new Lr(this.cellValueChanges);this.pushActionsToUndoStack(e)}},pasteStart:()=>{this.isPasting=!0},pasteEnd:()=>{const e=new Lr(this.cellValueChanges);this.pushActionsToUndoStack(e),this.isPasting=!1},fillStart:()=>{this.isRangeInAction=!0},fillEnd:e=>{const t=new Gr(this.cellValueChanges,e.initialRange,e.finalRange);this.pushActionsToUndoStack(t),this.isRangeInAction=!1},keyShortcutChangedCellStart:()=>{this.isRangeInAction=!0},keyShortcutChangedCellEnd:()=>{let e;const{rangeSvc:t,gos:o}=this.beans;e=t&&_isCellSelectionEnabled(o)?new Gr(this.cellValueChanges,void 0,void 0,[...t.getCellRanges()]):new Lr(this.cellValueChanges),this.pushActionsToUndoStack(e),this.isRangeInAction=!1},batchEditingStarted:()=>{this.batchEditing=!0},batchEditingStopped:e=>{if(!this.batchEditing)return;if(this.batchEditing=!1,0===e.changes?.length)return;const t=new Lr(e.changes??[]);this.pushActionsToUndoStack(t),this.cellValueChanges=[]}})}pushActionsToUndoStack(e){this.undoStack.push(e),this.cellValueChanges=[],this.redoStack.clear()}}],apiFunctions:{undoCellEditing:function undoCellEditing(e){e.undoRedo?.undo("api")},redoCellEditing:function redoCellEditing(e){e.undoRedo?.redo("api")},getCurrentUndoSize:function getCurrentUndoSize(e){return e.undoRedo?.getCurrentUndoStackSize()??0},getCurrentRedoSize:function getCurrentRedoSize(e){return e.undoRedo?.getCurrentRedoStackSize()??0}},dependsOn:[sa]},ra={moduleName:"TextEditor",version:R,userComponents:{agCellEditor:$r,agTextCellEditor:$r},dependsOn:[sa]},aa={moduleName:"NumberEditor",version:R,userComponents:{agNumberCellEditor:{classImp:class extends Or{constructor(){super(new class{constructor(e){this.getLocaleTextFunc=e}getTemplate(){return zr}getAgComponents(){return[Vo]}init(e,t){this.eEditor=e,this.params=t;const{max:o,min:i,precision:s,step:n}=t;null!=o&&e.setMax(o),null!=i&&e.setMin(i),null!=s&&e.setPrecision(s),null!=n&&e.setStep(n);const r=e.getInputElement();t.preventStepping?e.addManagedElementListeners(r,{keydown:this.preventStepping}):t.showStepperButtons&&r.classList.add("ag-number-field-input-stepper")}getValidationErrors(){const{params:e}=this,{min:t,max:o,getValidationErrors:i}=e,s=this.eEditor.getInputElement().valueAsNumber,n=this.getLocaleTextFunc();let r=[];return"number"==typeof s&&(null!=t&&s<t&&r.push(n("minValueValidation",`Must be greater than or equal to ${t}.`,[String(t)])),null!=o&&s>o&&r.push(n("maxValueValidation",`Must be less than or equal to ${o}.`,[String(o)]))),r.length||(r=null),i?i({value:s,cellEditorParams:e,internalErrors:r}):r}preventStepping(e){e.key!==Ie&&e.key!==Le||e.preventDefault()}getValue(){const{eEditor:e,params:t}=this,o=e.getValue();if(!_exists(o)&&!_exists(t.value))return t.value;let i=t.parseValue(o);if(null==i)return i;if("string"==typeof i){if(""===i)return null;i=Number(i)}return isNaN(i)?null:i}getStartValue(){return this.params.value}setCaret(){_isBrowserSafari()&&this.eEditor.getInputElement().focus({preventScroll:!0})}}((()=>this.getLocaleTextFunc())))}}}},dependsOn:[sa]},la={moduleName:"DateEditor",version:R,userComponents:{agDateCellEditor:class extends Or{constructor(){super(new class{constructor(e,t){this.getDataTypeService=e,this.getLocaleTextFunc=t}getTemplate(){return Hr}getAgComponents(){return[Bo]}init(e,t){this.eEditor=e,this.params=t;const{min:o,max:i,step:s,colDef:n}=t;null!=o&&e.setMin(o),null!=i&&e.setMax(i),null!=s&&e.setStep(s),this.includeTime=t.includeTime??this.getDataTypeService()?.getDateIncludesTimeFlag?.(n.cellDataType),null!=this.includeTime&&e.setIncludeTime(this.includeTime)}getValidationErrors(){const e=this.eEditor.getInputElement().valueAsDate,{params:t}=this,{min:o,max:i,getValidationErrors:s}=t;let n=[];const r=this.getLocaleTextFunc();if(e instanceof Date&&!isNaN(e.getTime())){if(o){const t=o instanceof Date?o:new Date(o);if(e<t){const e=t.toLocaleDateString();n.push(r("minDateValidation",`Date must be after ${e}`,[e]))}}if(i){const t=i instanceof Date?i:new Date(i);if(e>t){const e=t.toLocaleDateString();n.push(r("maxDateValidation",`Date must be before ${e}`,[e]))}}}return n.length||(n=null),s?s({value:e,cellEditorParams:t,internalErrors:n}):n}getValue(){const{eEditor:e,params:t}=this,o=e.getDate();return _exists(o)||_exists(t.value)?o??null:t.value}getStartValue(){const{value:e}=this.params;if(e instanceof Date)return _serialiseDate(e,this.includeTime??!1)}}((()=>this.beans.dataTypeSvc),(()=>this.getLocaleTextFunc())))}},agDateStringCellEditor:class extends Or{constructor(){super(new class{constructor(e,t){this.getDataTypeService=e,this.getLocaleTextFunc=t}getTemplate(){return Vr}getAgComponents(){return[Bo]}init(e,t){this.eEditor=e,this.params=t;const{min:o,max:i,step:s,colDef:n}=t;null!=o&&e.setMin(o),null!=i&&e.setMax(i),null!=s&&e.setStep(s),this.includeTime=t.includeTime??this.getDataTypeService()?.getDateIncludesTimeFlag?.(n.cellDataType),null!=this.includeTime&&e.setIncludeTime(this.includeTime)}getValidationErrors(){const{eEditor:e,params:t}=this,o=e.getInputElement().value,i=this.formatDate(this.parseDate(o??void 0)),{min:s,max:n,getValidationErrors:r}=t;let a=[];if(i){const e=new Date(i),t=this.getLocaleTextFunc();if(s){const o=new Date(s);if(e<o){const e=o.toLocaleDateString();a.push(t("minDateValidation",`Date must be after ${e}`,[e]))}}if(n){const o=new Date(n);if(e>o){const e=o.toLocaleDateString();a.push(t("maxDateValidation",`Date must be before ${e}`,[e]))}}}return a.length||(a=null),r?r({value:this.getValue(),cellEditorParams:t,internalErrors:a}):a}getValue(){const{params:e,eEditor:t}=this,o=this.formatDate(t.getDate());return _exists(o)||_exists(e.value)?e.parseValue(o??""):e.value}getStartValue(){return _serialiseDate(this.parseDate(this.params.value??void 0)??null,this.includeTime??!1)}parseDate(e){const t=this.getDataTypeService();return t?t.getDateParserFunction(this.params.column)(e):_parseDateTimeFromString(e)??void 0}formatDate(e){const t=this.getDataTypeService();return t?t.getDateFormatterFunction(this.params.column)(e):_serialiseDate(e??null,this.includeTime??!1)??void 0}}((()=>this.beans.dataTypeSvc),(()=>this.getLocaleTextFunc())))}}},dependsOn:[sa]},da={moduleName:"CheckboxEditor",version:R,userComponents:{agCheckboxCellEditor:class extends fo{constructor(){super(_r,[Eo]),this.eEditor=q}initialiseEditor(e){const t=e.value??void 0,o=this.eEditor;o.setValue(t);o.getInputElement().setAttribute("tabindex","-1"),this.setAriaLabel(t),this.addManagedListeners(o,{fieldValueChanged:e=>this.setAriaLabel(e.selected)})}getValue(){return this.eEditor.getValue()}focusIn(){this.eEditor.getFocusableElement().focus()}afterGuiAttached(){this.params.cellStartedEdit&&this.focusIn()}isPopup(){return!1}setAriaLabel(e){const t=this.getLocaleTextFunc(),o=_getAriaCheckboxStateName(t,e),i=t("ariaToggleCellValue","Press SPACE to toggle cell value");this.eEditor.setInputAriaLabel(`${i} (${o})`)}getValidationElement(){return this.eEditor.getInputElement()}getValidationErrors(){const{params:e}=this,{getValidationErrors:t}=e,o=this.getValue();return t?t({value:o,internalErrors:null,cellEditorParams:e}):null}}},dependsOn:[sa]},ca={moduleName:"SelectEditor",version:R,userComponents:{agSelectCellEditor:class extends fo{constructor(){super(Wr,[Ko]),this.eEditor=q,this.startedByEnter=!1}wireBeans(e){this.valueSvc=e.valueSvc}initialiseEditor(e){this.focusAfterAttached=e.cellStartedEdit;const{eEditor:t,valueSvc:o,gos:i}=this,{values:s,value:n,eventKey:r}=e;if(_missing(s))return void _warn(58);this.startedByEnter=null!=r&&r===xe;let a=!1;s.forEach((i=>{const s={value:i},r=o.formatValue(e.column,null,i),l=null!=r;s.text=l?r:i,t.addOption(s),a=a||n===i})),a?t.setValue(e.value,!0):e.values.length&&t.setValue(e.values[0],!0);const{valueListGap:l,valueListMaxWidth:d,valueListMaxHeight:c}=e;null!=l&&t.setPickerGap(l),null!=c&&t.setPickerMaxHeight(c),null!=d&&t.setPickerMaxWidth(d),"fullRow"!==i.get("editType")&&this.addManagedListeners(this.eEditor,{selectedItem:()=>e.stopEditing()})}afterGuiAttached(){this.focusAfterAttached&&this.eEditor.getFocusableElement().focus(),this.startedByEnter&&setTimeout((()=>{this.isAlive()&&this.eEditor.showPicker()}))}focusIn(){this.eEditor.getFocusableElement().focus()}getValue(){return this.eEditor.getValue()}isPopup(){return!1}getValidationElement(){return this.eEditor.getAriaElement()}getValidationErrors(){const{params:e}=this,{values:t,getValidationErrors:o}=e,i=this.getValue();let s=[];if(t&&!t.includes(i)){const e=this.getLocaleTextFunc();s.push(e("invalidSelectionValidation","Invalid selection."))}else s=null;return o?o({value:i,internalErrors:s,cellEditorParams:e}):s}}},dependsOn:[sa]},ha={moduleName:"LargeTextEditor",version:R,userComponents:{agLargeTextCellEditor:class extends fo{constructor(){super(Br,[Oo]),this.eEditor=q}initialiseEditor(e){const{eEditor:t}=this,{cellStartedEdit:o,value:i,maxLength:s,cols:n,rows:r}=e;this.focusAfterAttached=o,t.getInputElement().setAttribute("title",""),t.setMaxLength(s||200).setCols(n||60).setRows(r||10),null!=i&&t.setValue(i.toString(),!0),this.addGuiEventListener("keydown",this.onKeyDown.bind(this)),this.activateTabIndex()}onKeyDown(e){const t=e.key;(t===Ae||t===Ie||t===ke||t===Le||e.shiftKey&&t===xe)&&e.stopPropagation()}afterGuiAttached(){const e=this.getLocaleTextFunc();this.eEditor.setInputAriaLabel(e("ariaInputEditor","Input Editor")),this.focusAfterAttached&&this.eEditor.getFocusableElement().focus()}getValue(){const{eEditor:e,params:t}=this,{value:o}=t,i=e.getValue();return _exists(i)||_exists(o)?t.parseValue(i):o}getValidationElement(){return this.eEditor.getInputElement()}getValidationErrors(){const{params:e}=this,{maxLength:t,getValidationErrors:o}=e,i=this.getLocaleTextFunc(),s=this.getValue();let n=[];return"string"==typeof s&&null!=t&&s.length>t&&n.push(i("maxLengthValidation",`Must be ${t} characters or fewer.`,[String(t)])),n.length||(n=null),o?o({value:s,internalErrors:n,cellEditorParams:e}):n}}},dependsOn:[sa]},ua={moduleName:"CustomEditor",version:R,dependsOn:[sa]};function _normaliseSiblingRef(e){return _isManualPinnedRow(e)?e.pinnedSibling:e.footer?e.sibling:e}function _calculateSelectAllState(e,t){return(0!==e||0!==t)&&(e>0&&t>0?void 0:e>0)}var ga={moduleName:"SharedRowSelection",version:R,beans:[class extends I{constructor(){super(...arguments),this.beanName="selectionColSvc"}postConstruct(){this.addManagedPropertyListener("rowSelection",(e=>{this.onSelectionOptionsChanged(e.currentValue,e.previousValue,_convertColumnEventSourceType(e.source))})),this.addManagedPropertyListener("selectionColumnDef",this.updateColumns.bind(this))}addColumns(e){const t=this.columns;null!=t&&(e.list=t.list.concat(e.list),e.tree=t.tree.concat(e.tree),function _updateColsMap(e){e.map={},e.list.forEach((t=>e.map[t.getId()]=t))}(e))}createColumns(e,t){const o=e.treeDepth,i=(this.columns?.treeDepth??-1)==o,s=this.generateSelectionCols();if(function _areColIdsEqual(e,t){return _areEqual(e,t,((e,t)=>e.getColId()===t.getColId()))}(s,this.columns?.list??[])&&i)return;(()=>{_destroyColumnTree(this.beans,this.columns?.tree),this.columns=null})();const{colGroupSvc:n}=this.beans,r=n?.findDepth(e.tree)??0,a=n?.balanceTreeForAutoCols(s,r)??[];this.columns={list:s,tree:a,treeDepth:r,map:{}};t((e=>{if(!e)return null;const t=e.filter((e=>!isColumnSelectionCol(e)));return[...s,...t]}))}updateColumns(e){const t=_convertColumnEventSourceType(e.source);this.columns?.list.forEach((o=>{const i=this.createSelectionColDef(e.currentValue);o.setColDef(i,null,t),_applyColumnState(this.beans,{state:[{...i,colId:o.getColId()}]},t)}))}getColumn(e){return this.columns?.list.find((t=>_columnsMatch(t,e)))??null}getColumns(){return this.columns?.list??null}isSelectionColumnEnabled(){const{gos:e,beans:t}=this,o=e.get("rowSelection");if("object"!=typeof o||!_isRowSelection(e))return!1;const i=(t.autoColSvc?.getColumns()?.length??0)>0;if("autoGroupColumn"===o.checkboxLocation&&i)return!1;const s=!!_getCheckboxes(o),n=_getHeaderCheckbox(o);return s||n}createSelectionColDef(e){const{gos:t}=this.beans,o=e??t.get("selectionColumnDef"),i=t.get("enableRtl"),{rowSpan:s,spanRows:n,...r}=o??{};return{width:50,resizable:!1,suppressHeaderMenuButton:!0,sortable:!1,suppressMovable:!0,lockPosition:i?"right":"left",comparator(e,t,o,i){const s=o.isSelected();return s===i.isSelected()?0:s?1:-1},editable:!1,suppressFillHandle:!0,pinned:null,...r,colId:z,chartDataType:"excluded"}}generateSelectionCols(){if(!this.isSelectionColumnEnabled())return[];const e=this.createSelectionColDef(),t=e.colId;this.gos.validateColDef(e,t,!0);const o=new _(e,null,t,!1);return this.createBean(o),[o]}onSelectionOptionsChanged(e,t,o){const i=(t&&"string"!=typeof t?_getCheckboxes(t):void 0)!==(e&&"string"!=typeof e?_getCheckboxes(e):void 0),s=(t&&"string"!=typeof t?_getHeaderCheckbox(t):void 0)!==(e&&"string"!=typeof e?_getHeaderCheckbox(e):void 0),n=_getCheckboxLocation(e),r=_getCheckboxLocation(t);(i||s||n!==r)&&this.beans.colModel.refreshAll(o)}destroy(){_destroyColumnTree(this.beans,this.columns?.tree),super.destroy()}refreshVisibility(e,t,o){if(!this.columns?.list.length)return;const i=e.length+t.length+o.length;if(0===i)return;const s=this.columns.list[0];if(!s.isVisible())return;const n=this.beans.rowNumbersSvc?.getColumn(W);(n?2:1)===i&&(()=>{let i;switch(s.pinned){case"left":case!0:i=e;break;case"right":i=o;break;default:i=t}i&&_removeFromArray(i,s)})()}}],apiFunctions:{setNodesSelected:function setNodesSelected(e,t){if(!t.nodes.every((e=>e.rowPinned&&!_isManualPinnedRow(e)?(_warn(59),!1):void 0!==e.id||(_warn(60),!1))))return;const{nodes:o,source:i,newValue:s}=t;e.selectionSvc?.setNodesSelected({nodes:o,source:i??"api",newValue:s})},selectAll:function selectAll(e,t,o="apiSelectAll"){e.selectionSvc?.selectAllRowNodes({source:o,selectAll:t})},deselectAll:function deselectAll(e,t,o="apiSelectAll"){e.selectionSvc?.deselectAllRowNodes({source:o,selectAll:t})},selectAllFiltered:function selectAllFiltered(e,t="apiSelectAllFiltered"){e.selectionSvc?.selectAllRowNodes({source:t,selectAll:"filtered"})},deselectAllFiltered:function deselectAllFiltered(e,t="apiSelectAllFiltered"){e.selectionSvc?.deselectAllRowNodes({source:t,selectAll:"filtered"})},selectAllOnCurrentPage:function selectAllOnCurrentPage(e,t="apiSelectAllCurrentPage"){e.selectionSvc?.selectAllRowNodes({source:t,selectAll:"currentPage"})},deselectAllOnCurrentPage:function deselectAllOnCurrentPage(e,t="apiSelectAllCurrentPage"){e.selectionSvc?.deselectAllRowNodes({source:t,selectAll:"currentPage"})},getSelectedNodes:function getSelectedNodes(e){return e.selectionSvc?.getSelectedNodes()??[]},getSelectedRows:function getSelectedRows(e){return e.selectionSvc?.getSelectedRows()??[]}}},pa={moduleName:"RowSelection",version:R,rowModels:["clientSide","infinite","viewport"],beans:[class extends Lo{constructor(){super(...arguments),this.beanName="selectionSvc",this.selectedNodes=new Map,this.detailSelection=new Map,this.masterSelectsDetail=!1}postConstruct(){super.postConstruct();const{gos:e}=this;this.mode=_getRowSelectionMode(e),this.groupSelectsDescendants=_getGroupSelectsDescendants(e),this.groupSelectsFiltered="filteredDescendants"===_getGroupSelection(e),this.masterSelectsDetail="detail"===_getMasterSelects(e),this.addManagedPropertyListeners(["groupSelectsChildren","groupSelectsFiltered","rowSelection"],(()=>{const t=_getGroupSelectsDescendants(e),o=_getRowSelectionMode(e),i="filteredDescendants"===_getGroupSelection(e);this.masterSelectsDetail="detail"===_getMasterSelects(e),t===this.groupSelectsDescendants&&i===this.groupSelectsFiltered&&o===this.mode||(this.deselectAllRowNodes({source:"api"}),this.groupSelectsDescendants=t,this.groupSelectsFiltered=i,this.mode=o)})),this.addManagedEventListeners({rowSelected:this.onRowSelected.bind(this)})}destroy(){super.destroy(),this.resetNodes()}handleSelectionEvent(e,t,o){if(this.isRowSelectionBlocked(t))return 0;const i=this.inferNodeSelections(t,e.shiftKey,e.metaKey||e.ctrlKey,o);return null==i?0:(this.selectionCtx.selectAll=!1,"select"in i?(i.reset?this.resetNodes():this.selectRange(i.deselect,!1,o),this.selectRange(i.select,!0,o)):this.setNodesSelected({nodes:[i.node],newValue:i.newValue,clearSelection:i.clearSelection,keepDescendants:i.keepDescendants,event:e,source:o}))}setNodesSelected({newValue:e,clearSelection:t,suppressFinishActions:o,nodes:i,event:s,source:n,keepDescendants:r=!1}){if(!_isRowSelection(this.gos)&&e)return _warn(132),0;if(0===i.length)return 0;if(i.length>1&&!this.isMultiSelect())return _warn(130),0;let a=0;for(let t=0;t<i.length;t++){const o=_normaliseSiblingRef(i[t]),r=this.groupSelectsFiltered&&o.group;if(!o.rowPinned||_isManualPinnedRow(o))if(void 0!==o.id){if(!r){this.selectRowNode(o,e,s,n)&&(this.detailSelection.delete(o.id),a++)}this.groupSelectsDescendants&&o.childrenAfterGroup?.length&&(a+=this.selectChildren(o,e,n))}else _warn(60);else _warn(59)}if(!o){1===i.length&&"api"===n&&this.selectionCtx.setRoot(_normaliseSiblingRef(i[0]));e&&(t||!this.isMultiSelect())&&(a+=this.clearOtherNodes(_normaliseSiblingRef(i[0]),r,n)),a>0&&(this.updateGroupsFromChildrenSelections(n),this.dispatchSelectionChanged(n))}return a}selectRange(e,t,o){let i=0;return e.forEach((e=>{const s=_normaliseSiblingRef(e);if(s.group&&this.groupSelectsDescendants)return;this.selectRowNode(s,t,void 0,o)&&i++})),i>0&&(this.updateGroupsFromChildrenSelections(o),this.dispatchSelectionChanged(o)),i}selectChildren(e,t,o){const i=this.groupSelectsFiltered?e.childrenAfterAggFilter:e.childrenAfterGroup;return i?this.setNodesSelected({newValue:t,clearSelection:!1,suppressFinishActions:!0,source:o,nodes:i}):0}getSelectedNodes(){return Array.from(this.selectedNodes.values())}getSelectedRows(){const e=[];return this.selectedNodes.forEach((t=>e.push(t.data))),e}getSelectionCount(){return this.selectedNodes.size}filterFromSelection(e){const t=new Map;this.selectedNodes.forEach(((o,i)=>{e(o)&&t.set(i,o)})),this.selectedNodes=t}updateGroupsFromChildrenSelections(e,t){if(!this.groupSelectsDescendants)return!1;const{gos:o,rowModel:i}=this.beans;if(!_isClientSideRowModel(o))return!1;const s=i.rootNode;if(!s)return!1;t||((t=new ci(!0,s)).active=!1);let n=!1;return t.forEachChangedNodeDepthFirst((t=>{if(t!==s){const o=this.calculateSelectedFromChildren(t);n=this.selectRowNode(t,null!==o&&o,void 0,e)||n}})),n}clearOtherNodes(e,t,o){const i=new Map;let s=0;return this.selectedNodes.forEach((n=>{const r=n.id==e.id;if((!t||!function isDescendantOf(e,t){let o=t.parent;for(;o;){if(o===e)return!0;o=o.parent}return!1}(e,n))&&!r){const e=this.selectedNodes.get(n.id);s+=this.setNodesSelected({nodes:[e],newValue:!1,clearSelection:!1,suppressFinishActions:!0,source:o}),this.groupSelectsDescendants&&n.parent&&i.set(n.parent.id,n.parent)}})),i.forEach((e=>{const t=this.calculateSelectedFromChildren(e);this.selectRowNode(e,null!==t&&t,void 0,o)})),s}onRowSelected(e){const t=e.node;this.groupSelectsDescendants&&t.group||(t.isSelected()?this.selectedNodes.set(t.id,t):this.selectedNodes.delete(t.id))}syncInRowNode(e,t){this.syncInOldRowNode(e,t),this.syncInNewRowNode(e)}createDaemonNode(e){if(!e.id)return;const t=new lt(this.beans);return t.id=e.id,t.data=e.data,t.__daemon=!0,t.__selected=e.__selected,t.level=e.level,t}syncInOldRowNode(e,t){if(t&&e.id!==t.id){this.selectedNodes.get(t.id)==e&&this.selectedNodes.set(t.id,t)}}syncInNewRowNode(e){this.selectedNodes.has(e.id)?(e.__selected=!0,this.selectedNodes.set(e.id,e)):e.__selected=!1}reset(e){const t=this.getSelectionCount();this.resetNodes(),t&&this.dispatchSelectionChanged(e)}resetNodes(){this.selectedNodes.forEach((e=>{this.selectRowNode(e,!1)})),this.selectedNodes.clear()}getBestCostNodeSelection(){const{gos:e,rowModel:t}=this.beans;if(!_isClientSideRowModel(e))return;const o=t.getTopLevelNodes();if(null===o)return;const i=[];return function traverse(e){for(let t=0,o=e.length;t<o;t++){const o=e[t];o.isSelected()?i.push(o):o.group&&o.childrenAfterGroup&&traverse(o.childrenAfterGroup)}}(o),i}isEmpty(){return 0===this.getSelectionCount()}deselectAllRowNodes({source:e,selectAll:t}){const o=_isClientSideRowModel(this.gos);let i=!1;const callback=t=>{const o=this.selectRowNode(_normaliseSiblingRef(t),!1,void 0,e);i||(i=o)};if("currentPage"===t||"filtered"===t){if(!o)return void _error(102);this.getNodesToSelect(t).forEach(callback)}else this.selectedNodes.forEach(callback),this.reset(e);if(this.selectionCtx.selectAll=!1,o&&this.groupSelectsDescendants){const t=this.updateGroupsFromChildrenSelections(e);i||(i=t)}i&&this.dispatchSelectionChanged(e)}getSelectedCounts(e){let t=0,o=0;return this.getNodesToSelect(e).forEach((e=>{this.groupSelectsDescendants&&e.group||(e.isSelected()?t++:e.selectable&&o++)})),{selectedCount:t,notSelectedCount:o}}getSelectAllState(e){const{selectedCount:t,notSelectedCount:o}=this.getSelectedCounts(e);return _calculateSelectAllState(t,o)??null}hasNodesToSelect(e){return this.getNodesToSelect(e).filter((e=>e.selectable)).length>0}getNodesToSelect(e){if(!this.canSelectAll())return[];const t=[],addToResult=e=>t.push(e);if("currentPage"===e)return this.forEachNodeOnPage((e=>{if(e.group)if(e.expanded||e.footer)this.groupSelectsDescendants||addToResult(e);else{const recursivelyAddChildren=e=>{addToResult(e),e.childrenAfterFilter?.forEach(recursivelyAddChildren)};recursivelyAddChildren(e)}else addToResult(e)})),t;const o=this.beans.rowModel;return"filtered"===e?(o.forEachNodeAfterFilter(addToResult),t):(o.forEachNode(addToResult),t)}forEachNodeOnPage(e){const{pageBounds:t,rowModel:o}=this.beans,i=t.getFirstRow(),s=t.getLastRow();for(let t=i;t<=s;t++){const i=o.getRow(t);i&&e(i)}}selectAllRowNodes(e){const{gos:t,selectionCtx:o}=this;if(!_isRowSelection(t))return void _warn(132);if(function _isUsingNewRowSelectionAPI(e){return"string"!=typeof e.get("rowSelection")}(t)&&!_isMultiRowSelection(t))return void _warn(130);if(!this.canSelectAll())return;const{source:i,selectAll:s}=e;let n=!1;if(this.getNodesToSelect(s).forEach((e=>{const t=this.selectRowNode(_normaliseSiblingRef(e),!0,void 0,i);n||(n=t)})),o.selectAll=!0,_isClientSideRowModel(t)&&this.groupSelectsDescendants){const e=this.updateGroupsFromChildrenSelections(i);n||(n=e)}n&&this.dispatchSelectionChanged(i)}getSelectionState(){return this.isEmpty()?null:Array.from(this.selectedNodes.keys())}setSelectionState(e,t,o){if(e||(e=[]),!Array.isArray(e))return void _error(103);const i=new Set(e),s=[];this.beans.rowModel.forEachNode((e=>{i.has(e.id)&&s.push(e)})),o&&this.resetNodes(),this.setNodesSelected({newValue:!0,nodes:s,source:t})}canSelectAll(){const{gos:e}=this.beans;return!!_isClientSideRowModel(e)}updateSelectable(e){const{gos:t,rowModel:o}=this.beans;if(!_isRowSelection(t))return;const i="selectableChanged",s=void 0!==e,n=_isClientSideRowModel(t)&&this.groupSelectsDescendants,r=[],nodeCallback=e=>{if(s&&!e.group)return;if(n&&e.group){const t=e.childrenAfterGroup?.some((e=>e.selectable))??!1;return void this.setRowSelectable(e,t,!0)}!this.updateRowSelectable(e,!0)&&e.isSelected()&&r.push(e)};if(n){if(void 0===e){const t=o.rootNode;e=t?new ci(!1,t):void 0}e?.forEachChangedNodeDepthFirst(nodeCallback,!s,!s)}else o.forEachNode(nodeCallback);r.length&&this.setNodesSelected({nodes:r,newValue:!1,source:i}),!s&&n&&this.updateGroupsFromChildrenSelections?.(i)}updateSelectableAfterGrouping(e){if(this.updateSelectable(e),this.groupSelectsDescendants){const t=this.updateGroupsFromChildrenSelections?.("rowGroupChanged",e);t&&this.dispatchSelectionChanged("rowGroupChanged")}}refreshMasterNodeState(e,t){if(!this.masterSelectsDetail)return;const o=e.detailNode?.detailGridInfo?.api;if(!o)return;const i=function _isAllSelected(e){let t=0,o=0;return e.forEachNode((e=>{e.isSelected()?t++:e.selectable&&o++})),_calculateSelectAllState(t,o)}(o);if(e.isSelected()!==i){this.selectRowNode(e,i,t,"masterDetail")&&this.dispatchSelectionChanged("masterDetail")}if(!i){const t=this.detailSelection.get(e.id)??new Set;for(const e of o.getSelectedNodes())t.add(e.id);this.detailSelection.set(e.id,t)}}setDetailSelectionState(e,t,o){if(this.masterSelectsDetail)if(_isMultiRowSelection(t))switch(e.isSelected()){case!0:o.selectAll();break;case!1:o.deselectAll();break;case void 0:{const t=this.detailSelection.get(e.id);if(t){const e=[];for(const i of t){const t=o.getRowNode(i);t&&e.push(t)}o.setNodesSelected({nodes:e,newValue:!0,source:"masterDetail"})}break}}else _warn(269)}dispatchSelectionChanged(e){this.eventSvc.dispatchEvent({type:"selectionChanged",source:e,selectedNodes:this.getSelectedNodes(),serverSideState:null})}}],dependsOn:[ga]};var ma={moduleName:"CsrmSsrmSharedApi",version:R,apiFunctions:{expandAll:function expandAll(e){e.expansionSvc?.expandAll(!0)},collapseAll:function collapseAll(e){e.expansionSvc?.expandAll(!1)},onRowHeightChanged:function onRowHeightChanged(e){const t=_getClientSideRowModel(e),o=_getServerSideRowModel(e);t?t.onRowHeightChanged():o&&o.onRowHeightChanged()}}},fa={moduleName:"SsrmInfiniteSharedApi",version:R,apiFunctions:{setRowCount:function setRowCount(e,t,o){const i=_getServerSideRowModel(e);if(i)return 0===e.rowGroupColsSvc?.columns.length?t<0?void _error(238):void i.setRowCount(t,o):void _error(28);const s=_getInfiniteRowModel(e);s&&s.setRowCount(t,o)},getCacheBlockState:function getCacheBlockState(e){if(_isServerSideRowModel(e.gos)){return e.rowModel.getBlockStates()}return e.rowNodeBlockLoader?.getBlockState()??{}},isLastRowIndexKnown:function isLastRowIndexKnown(e){return e.rowModel.isLastRowIndexKnown()}}},Ca={moduleName:"AlignedGrids",version:R,beans:[class extends I{constructor(){super(...arguments),this.beanName="alignedGridsSvc",this.consuming=!1}getAlignedGridApis(){let e=this.gos.get("alignedGrids")??[];const t="function"==typeof e;"function"==typeof e&&(e=e());return e.map((e=>{if(!e)return _error(18),void(t||_error(20));if(this.isGridApi(e))return e;const o=e;return"current"in o?o.current?.api:(o.api||_error(19),o.api)})).filter((e=>!!e&&!e.isDestroyed()))}isGridApi(e){return!!e&&!!e.dispatchEvent}postConstruct(){const e=this.fireColumnEvent.bind(this);this.addManagedEventListeners({columnMoved:e,columnVisible:e,columnPinned:e,columnGroupOpened:e,columnResized:e,bodyScroll:this.fireScrollEvent.bind(this),alignedGridColumn:({event:e})=>this.onColumnEvent(e),alignedGridScroll:({event:e})=>this.onScrollEvent(e)})}fireEvent(e){this.consuming||this.getAlignedGridApis().forEach((t=>{t.isDestroyed()||t.dispatchEvent(e)}))}onEvent(e){this.consuming=!0,e(),this.consuming=!1}fireColumnEvent(e){this.fireEvent({type:"alignedGridColumn",event:e})}fireScrollEvent(e){"horizontal"===e.direction&&this.fireEvent({type:"alignedGridScroll",event:e})}onScrollEvent(e){this.onEvent((()=>{this.beans.ctrlsSvc.getScrollFeature().setHorizontalScrollPosition(e.left,!0)}))}extractDataFromEvent(e,t){const o=[];return e.columns?e.columns.forEach((e=>{o.push(t(e))})):e.column&&o.push(t(e.column)),o}getMasterColumns(e){return this.extractDataFromEvent(e,(e=>e))}getColumnIds(e){return this.extractDataFromEvent(e,(e=>e.getColId()))}onColumnEvent(e){this.onEvent((()=>{switch(e.type){case"columnMoved":case"columnVisible":case"columnPinned":case"columnResized":this.processColumnEvent(e);break;case"columnGroupOpened":this.processGroupOpenedEvent(e);break;case"columnPivotChanged":_warn(21)}}))}processGroupOpenedEvent(e){const{colGroupSvc:t}=this.beans;t&&e.columnGroups.forEach((e=>{let o=null;e&&(o=t.getProvidedColGroup(e.getGroupId())),e&&!o||t.setColumnGroupOpened(o,e.isExpanded(),"alignedGridChanged")}))}processColumnEvent(e){const t=e.column;let o=null;const i=this.beans,{colResize:s,ctrlsSvc:n,colModel:r}=i;if(t&&(o=r.getColDefCol(t.getColId())),t&&!o)return;const a=this.getMasterColumns(e);switch(e.type){case"columnMoved":_applyColumnState(i,{state:e.api.getColumnState().map((e=>({colId:e.colId}))),applyOrder:!0},"alignedGridChanged");break;case"columnVisible":_applyColumnState(i,{state:e.api.getColumnState().map((e=>({colId:e.colId,hide:e.hide})))},"alignedGridChanged");break;case"columnPinned":_applyColumnState(i,{state:e.api.getColumnState().map((e=>({colId:e.colId,pinned:e.pinned})))},"alignedGridChanged");break;case"columnResized":{const t=e,o={};a.forEach((e=>{o[e.getId()]={key:e.getColId(),newWidth:e.getActualWidth()}})),t.flexColumns?.forEach((e=>{o[e.getId()]&&delete o[e.getId()]})),s?.setColumnWidths(Object.values(o),!1,t.finished,"alignedGridChanged");break}}const l=n.getGridBodyCtrl().isVerticalScrollShowing();this.getAlignedGridApis().forEach((e=>{e.setGridOption("alwaysShowVerticalScroll",l)}))}}]},wa=class{constructor(){this.removals=new Set,this.updates=new Set,this.adds=new Set}remove(e){this.adds.delete(e)||(this.updates.delete(e),this.removals.add(e))}update(e){this.adds.has(e)||this.updates.add(e)}add(e){this.adds.add(e)}};function updateRowNodeAfterSort(e){e.sibling&&(e.sibling.childrenAfterSort=e.childrenAfterSort),function updateChildIndexes(e){if(_missing(e.childrenAfterSort))return;const t=e.childrenAfterSort;for(let o=0;o<t.length;o++){const i=t[o],s=0===o,n=o===e.childrenAfterSort.length-1;i.setFirstChild(s),i.lastChild!==n&&(i.lastChild=n,i.dispatchRowEvent("lastChildChanged")),i.childIndex!==o&&(i.childIndex=o,i.dispatchRowEvent("childIndexChanged"))}}(e)}var va={moduleName:"ClientSideRowModel",version:R,rowModels:["clientSide"],beans:[class extends To{constructor(){super(...arguments),this.beanName="csrmNodeSvc"}},class extends I{constructor(){super(...arguments),this.beanName="rowModel",this.rootNode=null,this.rowsToDisplay=[],this.lastHighlightedRow=null,this.started=!1,this.isRefreshingModel=!1,this.rowNodesCountReady=!1,this.rowCountReady=!1,this.onRowHeightChanged_debounced=_debounce(this,this.onRowHeightChanged.bind(this),100)}wireBeans(e){this.colModel=e.colModel,this.valueCache=e.valueCache,this.filterStage=e.filterStage,this.sortStage=e.sortStage,this.flattenStage=e.flattenStage,this.groupStage=e.groupStage,this.aggStage=e.aggStage,this.pivotStage=e.pivotStage,this.filterAggStage=e.filterAggStage}postConstruct(){this.orderedStages=[this.groupStage,this.filterStage,this.pivotStage,this.aggStage,this.sortStage,this.filterAggStage,this.flattenStage].filter((e=>!!e));const e=this.refreshModel.bind(this,{step:"group"}),t=this.refreshModel.bind(this,{step:"group",afterColumnsChanged:!0,keepRenderedRows:!0,animate:!this.gos.get("suppressAnimationFrame")});this.addManagedEventListeners({newColumnsLoaded:t,columnRowGroupChanged:e,columnValueChanged:this.onValueChanged.bind(this),columnPivotChanged:this.refreshModel.bind(this,{step:"pivot"}),filterChanged:this.onFilterChanged.bind(this),sortChanged:this.onSortChanged.bind(this),columnPivotModeChanged:e,gridStylesChanged:this.onGridStylesChanges.bind(this),gridReady:this.onGridReady.bind(this)}),this.addPropertyListeners(),this.rootNode=new lt(this.beans);const o=this.getNewNodeManager();this.nodeManager=o,o.activate(this.rootNode)}getNewNodeManager(){const{gos:e,beans:t}=this;return"treeNested"===_getGroupingApproach(e)&&t.csrmChildrenTreeNodeSvc||t.csrmNodeSvc}addPropertyListeners(){const e=["treeData","treeDataChildrenField",...this.orderedStages.flatMap((({refreshProps:e})=>[...e]))];this.addManagedPropertyListeners(e,(e=>{const t=e.changeSet?.properties;t&&this.onPropChange(t)})),this.addManagedPropertyListener("rowData",(()=>this.onPropChange(["rowData"]))),this.addManagedPropertyListener("rowHeight",(()=>this.resetRowHeights()))}start(){this.started=!0,this.rowNodesCountReady?this.refreshModel({step:"group",rowDataUpdated:!0,newData:!0}):this.setInitialData()}setInitialData(){this.gos.get("rowData")&&this.onPropChange(["rowData"])}ensureRowHeightsValid(e,t,o,i){let s,n=!1;do{s=!1;const r=this.getRowIndexAtPixel(e),a=this.getRowIndexAtPixel(t),l=Math.max(r,o),d=Math.min(a,i);for(let e=l;e<=d;e++){const t=this.getRow(e);if(t.rowHeightEstimated){const e=_getRowHeightForNode(this.beans,t);t.setRowHeight(e.height),s=!0,n=!0}}s&&this.setRowTopAndRowIndex()}while(s);return n}onPropChange(e){if(!this.rootNode)return;const t=this.gos,o=new Set(e),i={step:"nothing",changedProps:o},s=o.has("rowData"),n=this.nodeManager,r=this.getNewNodeManager(),a=n!==r||s&&o.has("treeData")&&t.get("treeData")||o.has("treeDataChildrenField")&&t.get("treeData");let l;if((a||s)&&(l=t.get("rowData"),null==l||Array.isArray(l)||(l=null,_warn(1))),a&&(s||(l=n?.extractRowData()??l),n!==r&&(n?.deactivate(),this.nodeManager=r),r.activate(this.rootNode)),l){if(!a&&!this.isEmpty()&&l.length>0&&t.exists("getRowId")&&!t.get("resetRowDataOnUpdate"))i.keepRenderedRows=!0,i.animate=!this.gos.get("suppressAnimationFrame"),i.changedRowNodes=new wa,r.setImmutableRowData(i,l);else{i.rowDataUpdated=!0,i.newData=!0;const{selectionSvc:e,pinnedRowModel:t}=this.beans;e?.reset("rowDataChanged"),t?.isManual()&&t.reset(),this.rowNodesCountReady=!0,r.setNewRowData(l)}}if(i.rowDataUpdated)i.step="group";else if("nothing"===i.step)for(const{refreshProps:t,step:o}of this.orderedStages)if(e.some((e=>t.has(e)))){i.step=o;break}"nothing"!==i.step&&this.refreshModel(i)}setRowTopAndRowIndex(){const{beans:e,rowsToDisplay:t}=this,o=e.environment.getDefaultRowHeight();let i=0;const s=new Set,n=_isDomLayout(this.gos,"normal");for(let r=0,a=t.length;r<a;++r){const a=t[r];if(null!=a.id&&s.add(a.id),null==a.rowHeight){const t=_getRowHeightForNode(e,a,n,o);a.setRowHeight(t.height,t.estimated)}a.setRowTop(i),a.setRowIndex(r),i+=a.rowHeight}return s}clearRowTopAndRowIndex(e,t){const o=e.active,clearIfNotDisplayed=e=>{e&&null!=e.id&&!t.has(e.id)&&e.clearRowTopAndRowIndex()},recurse=e=>{if(null!==e&&(clearIfNotDisplayed(e),clearIfNotDisplayed(e.detailNode),clearIfNotDisplayed(e.sibling),e.hasChildren()&&e.childrenAfterGroup)){const t=-1==e.level;o&&!t&&!e.expanded||e.childrenAfterGroup.forEach(recurse)}};recurse(this.rootNode)}isLastRowIndexKnown(){return!0}getRowCount(){return this.rowsToDisplay?this.rowsToDisplay.length:0}getTopLevelRowCount(){const e=this.rootNode;if(!e)return 0;if(0===this.rowsToDisplay.length)return 0;if(this.rowsToDisplay&&this.rowsToDisplay[0]===e)return 1;const t=e.childrenAfterSort,o=e.sibling?1:0;return(t?t.length:0)+o}getTopLevelRowDisplayedIndex(e){const{rootNode:t,rowsToDisplay:o}=this;if(!t||!o.length||o[0]===t)return e;const{childrenAfterSort:i}=t,getDefaultIndex=e=>{let t=i[e];if(this.gos.get("groupHideOpenParents"))for(;t.expanded&&t.childrenAfterSort&&t.childrenAfterSort.length>0;)t=t.childrenAfterSort[0];return t.rowIndex},{footerSvc:s}=this.beans;return s?s.getTopDisplayIndex(o,e,i,getDefaultIndex):getDefaultIndex(e)}getTopLevelIndexFromDisplayedIndex(e){const{rootNode:t,rowsToDisplay:o}=this;if(!t||!o.length||o[0]===t)return e;let i=this.getRow(e);for(i.footer&&(i=i.sibling);i.parent&&i.parent!==t;)i=i.parent;const s=t.childrenAfterSort?.findIndex((e=>e===i));return-1===s?e:s??e}getRowBounds(e){const t=this.rowsToDisplay[e];return t?{rowTop:t.rowTop,rowHeight:t.rowHeight}:null}onRowGroupOpened(){const e=_isAnimateRows(this.gos);this.refreshModel({step:"map",keepRenderedRows:!0,animate:e})}onFilterChanged(e){if(e.afterDataChange)return;const t=_isAnimateRows(this.gos),o=0===e.columns.length||e.columns.some((e=>e.isPrimary()))?"filter":"filter_aggregates";this.refreshModel({step:o,keepRenderedRows:!0,animate:t})}onSortChanged(){const e=_isAnimateRows(this.gos);this.refreshModel({step:"sort",keepRenderedRows:!0,animate:e})}getType(){return"clientSide"}onValueChanged(){this.refreshModel({step:this.colModel.isPivotActive()?"pivot":"aggregate"})}createChangePath(e){const t=new ci(!1,this.rootNode);return e||(t.active=!1),t}isSuppressModelUpdateAfterUpdateTransaction(e){if(!this.gos.get("suppressModelUpdateAfterUpdateTransaction"))return!1;const{changedRowNodes:t,newData:o,rowDataUpdated:i}=e;return!(!t||o||!i)&&(!t.removals.size&&!t.adds.size)}beforeRefreshModel(e,t=!1){this.eventSvc.dispatchEvent({type:"beforeRefreshModel",params:e,groupsChanged:t}),this.started&&e.rowDataUpdated&&this.eventSvc.dispatchEvent({type:"rowDataUpdated"})}refreshModel(e){if(!this.rootNode)return;const t=e.changedPath??(e.changedPath=this.createChangePath(!e.newData&&!!e.rowDataUpdated));if(!this.started||this.isRefreshingModel||this.colModel.changeEventsDispatching||this.isSuppressModelUpdateAfterUpdateTransaction(e))return void this.beforeRefreshModel(e);switch(this.isRefreshingModel=!0,"group"!==e.step&&this.beforeRefreshModel(e),e.step){case"group":{const t=this.doRowGrouping(e);this.beforeRefreshModel(e,t),"group"===e.step&&this.rowNodesCountReady&&(this.rowCountReady=!0,this.eventSvc.dispatchEventOnce({type:"rowCountReady"}))}case"filter":this.doFilter(t);case"pivot":this.doPivot(t);case"aggregate":this.doAggregate(t);case"filter_aggregates":this.doFilterAggregates(t);case"sort":this.doSort(e.changedRowNodes,t);case"map":this.doRowsToDisplay()}const o=this.setRowTopAndRowIndex();this.clearRowTopAndRowIndex(t,o),this.isRefreshingModel=!1,this.eventSvc.dispatchEvent({type:"modelUpdated",animate:e.animate,keepRenderedRows:e.keepRenderedRows,newData:e.newData,newPage:!1,keepUndoRedoStack:e.keepUndoRedoStack})}isEmpty(){return!this.rootNode?.allLeafChildren?.length||!this.colModel?.ready}isRowsToRender(){return this.rowsToDisplay.length>0}getNodesInRangeForSelection(e,t){let o=!1,i=!1;const s=[],n=_getGroupSelectsDescendants(this.gos);return this.forEachNodeAfterFilterAndSort((r=>{if(i)return;if(o&&(r===t||r===e)&&(i=!0,r.group&&n))return void s.push(...r.allLeafChildren);if(!o){if(r!==t&&r!==e)return;o=!0}(!r.group||!n)&&s.push(r)})),s}getTopLevelNodes(){return this.rootNode?.childrenAfterGroup??null}getRow(e){return this.rowsToDisplay[e]}isRowPresent(e){return this.rowsToDisplay.indexOf(e)>=0}getRowIndexAtPixel(e){const t=this.rowsToDisplay;if(this.isEmpty()||0===t.length)return-1;let o=0,i=t.length-1;if(e<=0)return 0;if(_last(t).rowTop<=e)return t.length-1;let s=-1,n=-1;for(;;){const r=Math.floor((o+i)/2),a=t[r];if(this.isRowInPixel(a,e))return r;a.rowTop<e?o=r+1:a.rowTop>e&&(i=r-1);if(s===o&&n===i)return r;s=o,n=i}}isRowInPixel(e,t){const o=e.rowTop,i=e.rowTop+e.rowHeight;return o<=t&&i>t}forEachLeafNode(e){this.rootNode?.allLeafChildren?.forEach(((t,o)=>e(t,o)))}forEachNode(e,t=!1){this.depthFirstSearchRowNodes(e,t)}forEachDisplayedNode(e){this.rowsToDisplay.forEach(e)}forEachNodeAfterFilter(e,t=!1){this.depthFirstSearchRowNodes(e,t,(e=>e.childrenAfterAggFilter))}forEachNodeAfterFilterAndSort(e,t=!1){this.depthFirstSearchRowNodes(e,t,(e=>e.childrenAfterSort))}forEachPivotNode(e,t=!1,o=!1){const{colModel:i,rowGroupColsSvc:s}=this.beans;if(!i.isPivotMode())return;if(!s?.columns.length)return void e(this.rootNode,0);const n=o?"childrenAfterSort":"childrenAfterGroup";this.depthFirstSearchRowNodes(e,t,(e=>e.leafGroup?null:e[n]))}depthFirstSearchRowNodes(e,t=!1,o=(e=>e.childrenAfterGroup),i=this.rootNode,s=0){let n=s;if(!i)return n;const r=i===this.rootNode;r||e(i,n++);const{footerSvc:a}=this.beans;if(i.hasChildren()&&!i.footer){const s=o(i);if(s){n=a?.addTotalRows(n,i,e,t,r,"top")??n;for(const i of s)n=this.depthFirstSearchRowNodes(e,t,o,i,n);return a?.addTotalRows(n,i,e,t,r,"bottom")??n}}return n}doAggregate(e){const t=this.rootNode;t&&this.aggStage?.execute({rowNode:t,changedPath:e})}doFilterAggregates(e){const t=this.rootNode;this.filterAggStage?this.filterAggStage.execute({rowNode:t,changedPath:e}):t.childrenAfterAggFilter=t.childrenAfterFilter}doSort(e,t){this.sortStage?this.sortStage.execute({rowNode:this.rootNode,changedRowNodes:e,changedPath:t}):t.forEachChangedNodeDepthFirst((e=>{e.childrenAfterSort=e.childrenAfterAggFilter.slice(0),updateRowNodeAfterSort(e)}))}doRowGrouping(e){const t=this.rootNode,o=this.groupStage?.execute({rowNode:t,changedRowNodes:e.changedRowNodes,changedPath:e.changedPath,rowNodesOrderChanged:!!e.rowNodesOrderChanged,afterColumnsChanged:!!e.afterColumnsChanged});if(void 0!==o)return o;const i=t.sibling;return t.childrenAfterGroup=t.allLeafChildren,i&&(i.childrenAfterGroup=t.childrenAfterGroup),t.updateHasChildren(),!1}doFilter(e){this.filterStage?this.filterStage.execute({rowNode:this.rootNode,changedPath:e}):e.forEachChangedNodeDepthFirst((e=>{e.childrenAfterFilter=e.childrenAfterGroup,updateRowNodeAfterFilter(e)}),!0)}doPivot(e){this.pivotStage?.execute({rowNode:this.rootNode,changedPath:e})}getRowNode(e){const t=this.nodeManager.getRowNode(e);if("object"==typeof t)return t;return"string"==typeof e&&0===e.indexOf(st)?this.groupStage?.getNode(e):void 0}batchUpdateRowData(e,t){if(null==this.applyAsyncTransactionsTimeout){this.rowDataTransactionBatch=[];const e=this.gos.get("asyncTransactionWaitMillis");this.applyAsyncTransactionsTimeout=window.setTimeout((()=>{this.isAlive()&&this.executeBatchUpdateRowData()}),e)}this.rowDataTransactionBatch.push({rowDataTransaction:e,callback:t})}flushAsyncTransactions(){null!=this.applyAsyncTransactionsTimeout&&(clearTimeout(this.applyAsyncTransactionsTimeout),this.executeBatchUpdateRowData())}executeBatchUpdateRowData(){this.valueCache?.onDataChanged();const e=[],t=[],o=new wa;let i=!1;this.rowDataTransactionBatch?.forEach((s=>{this.rowNodesCountReady=!0;const{rowNodeTransaction:n,rowsInserted:r}=this.nodeManager.updateRowData(s.rowDataTransaction,o);r&&(i=!0),t.push(n),s.callback&&e.push(s.callback.bind(null,n))})),this.commitTransactions(i,o),e.length>0&&window.setTimeout((()=>{e.forEach((e=>e()))}),0),t.length>0&&this.eventSvc.dispatchEvent({type:"asyncTransactionsFlushed",results:t}),this.rowDataTransactionBatch=null,this.applyAsyncTransactionsTimeout=void 0}updateRowData(e){this.valueCache?.onDataChanged(),this.rowNodesCountReady=!0;const t=new wa,{rowNodeTransaction:o,rowsInserted:i}=this.nodeManager.updateRowData(e,t);return this.commitTransactions(i,t),o}commitTransactions(e,t){this.refreshModel({step:"group",rowDataUpdated:!0,rowNodesOrderChanged:e,keepRenderedRows:!0,animate:!this.gos.get("suppressAnimationFrame"),changedRowNodes:t,changedPath:this.createChangePath(!0)})}doRowsToDisplay(){const{flattenStage:e,rootNode:t}=this;let o;if(e)o=e.execute({rowNode:t});else{o=t?.childrenAfterSort??[];for(const e of o)e.setUiLevel(0)}this.rowsToDisplay=o}onRowHeightChanged(){this.refreshModel({step:"map",keepRenderedRows:!0,keepUndoRedoStack:!0})}resetRowHeights(){const e=this.rootNode;if(!e)return;const t=this.resetRowHeightsForAllRowNodes();e.setRowHeight(e.rowHeight,!0),e.sibling&&e.sibling.setRowHeight(e.sibling.rowHeight,!0),t&&this.onRowHeightChanged()}resetRowHeightsForAllRowNodes(){let e=!1;return this.forEachNode((t=>{t.setRowHeight(t.rowHeight,!0);const o=t.detailNode;o&&o.setRowHeight(o.rowHeight,!0),t.sibling&&t.sibling.setRowHeight(t.sibling.rowHeight,!0),e=!0})),e}onGridStylesChanges(e){if(e.rowHeightChanged){if(this.beans.rowAutoHeight?.active)return;this.resetRowHeights()}}onGridReady(){this.started||this.setInitialData()}isRowDataLoaded(){return this.rowCountReady}destroy(){super.destroy(),this.started=!1,this.rootNode=null,this.nodeManager=null,this.rowDataTransactionBatch=null,this.orderedStages=V,this.rowsToDisplay=V}onRowHeightChangedDebounced(){this.onRowHeightChanged_debounced()}},class extends I{constructor(){super(...arguments),this.beanName="sortStage",this.refreshProps=new Set(["postSortRows","groupDisplayType","accentedSort"]),this.step="sort"}execute(e){const t=this.beans,o=t.sortSvc.getSortOptions(),i=_exists(o)&&o.length>0,s=i&&!!e.changedRowNodes&&this.gos.get("deltaSort"),n=o.some((({column:e})=>_isColumnsSortingCoupledToGroup(t.gos)?e.isPrimary()&&e.isRowGroupActive():!!e.getColDef().showRowGroup));this.sort(t,o,i,s,e.changedRowNodes,e.changedPath,n)}sort(e,t,o,i,s,n,r){const{gos:a,colModel:l,rowGroupColsSvc:d,rowNodeSorter:c,rowRenderer:h,showRowGroupCols:u}=e,g=a.get("groupMaintainOrder"),p=l.getCols().some((e=>e.isRowGroupActive())),m=l.isPivotMode(),f=a.getCallback("postSortRows");let C=!1;if(n?.forEachChangedNodeDepthFirst((e=>{const a=m&&e.leafGroup;let l;if(g&&p&&!e.leafGroup&&!r){const t=d?.columns?.[e.level+1],o=null===t?.getSort(),i=e.childrenAfterAggFilter.slice(0);if(e.childrenAfterSort&&!o){const t={};e.childrenAfterSort.forEach(((e,o)=>{t[e.id]=o})),i.sort(((e,o)=>(t[e.id]??0)-(t[o.id]??0)))}l=i}else l=!o||a?e.childrenAfterAggFilter.slice(0):i&&s?function doDeltaSort(e,t,o,i,s){const n=t.childrenAfterAggFilter,r=t.childrenAfterSort;if(!r)return e.doFullSort(n,s);const a=new Set,l=[],{updates:d,adds:c}=o;for(let e=0,t=n.length;e<t;++e){const t=n[e];d.has(t)||c.has(t)||i&&!i.canSkip(t)?l.push({currentPos:l.length,rowNode:t}):a.add(t.id)}const h=r.filter((e=>a.has(e.id))).map(((e,t)=>({currentPos:t,rowNode:e})));return l.sort(((t,o)=>e.compareRowNodes(s,t,o))),function mergeSortedArrays(e,t,o,i){const s=[];let n=0,r=0;const a=o.length,l=i.length;for(;n<a&&r<l;){const a=o[n],l=i[r];let d;e.compareRowNodes(t,a,l)<0?(d=a,++n):(d=l,++r),s.push(d.rowNode)}for(;n<a;)s.push(o[n++].rowNode);for(;r<l;)s.push(i[r++].rowNode);return s}(e,s,l,h)}(c,e,s,n,t):c.doFullSort(e.childrenAfterAggFilter,t);if(C||(C=e.childrenAfterSort?.[0]!==l[0]),e.childrenAfterSort=l,updateRowNodeAfterSort(e),f){const t={nodes:e.childrenAfterSort};f(t)}})),C&&this.gos.get("groupHideOpenParents")){const e=u?.getShowRowGroupCols();e?.length&&h.refreshCells({columns:e,force:!0})}}}],dependsOn:[Cn]},ba={moduleName:"ClientSideRowModelApi",version:R,apiFunctions:{onGroupExpandedOrCollapsed:function onGroupExpandedOrCollapsed(e){e.expansionSvc?.onGroupExpandedOrCollapsed()},refreshClientSideRowModel:function refreshClientSideRowModel(e,t){const o=_getClientSideRowModel(e);o&&(t&&"everything"!==t||(t="group"),o.refreshModel({step:t,keepRenderedRows:!0,animate:!e.gos.get("suppressAnimationFrame")}))},isRowDataEmpty:function isRowDataEmpty(e){return _getClientSideRowModel(e)?.isEmpty()??!0},forEachLeafNode:function forEachLeafNode(e,t){_getClientSideRowModel(e)?.forEachLeafNode(t)},forEachNodeAfterFilter:function forEachNodeAfterFilter(e,t){_getClientSideRowModel(e)?.forEachNodeAfterFilter(t)},forEachNodeAfterFilterAndSort:function forEachNodeAfterFilterAndSort(e,t){_getClientSideRowModel(e)?.forEachNodeAfterFilterAndSort(t)},resetRowHeights:function resetRowHeights(e){e.rowAutoHeight?.active?_warn(3):_getClientSideRowModel(e)?.resetRowHeights()},applyTransaction:function applyTransaction(e,t){return e.frameworkOverrides.wrapIncoming((()=>_getClientSideRowModel(e)?.updateRowData(t)))},applyTransactionAsync:function applyTransactionAsync(e,t,o){e.frameworkOverrides.wrapIncoming((()=>_getClientSideRowModel(e)?.batchUpdateRowData(t,o)))},flushAsyncTransactions:function flushAsyncTransactions(e){e.frameworkOverrides.wrapIncoming((()=>_getClientSideRowModel(e)?.flushAsyncTransactions()))},getBestCostNodeSelection:function getBestCostNodeSelection(e){return e.selectionSvc?.getBestCostNodeSelection()}},dependsOn:[ma]},Sa={moduleName:"SharedExport",version:R,beans:[class extends I{constructor(){super(...arguments),this.beanName="gridSerializer"}wireBeans(e){this.visibleCols=e.visibleCols,this.colModel=e.colModel,this.rowModel=e.rowModel,this.pinnedRowModel=e.pinnedRowModel}serialize(e,t={}){const{allColumns:o,columnKeys:i,skipRowGroups:s,exportRowNumbers:n}=t,r=this.getColumnsToExport({allColumns:o,skipRowGroups:s,columnKeys:i,exportRowNumbers:n});return[this.prepareSession(r),this.prependContent(t),this.exportColumnGroups(t,r),this.exportHeaders(t,r),this.processPinnedTopRows(t,r),this.processRows(t,r),this.processPinnedBottomRows(t,r),this.appendContent(t)].reduce(((e,t)=>t(e)),e).parse()}processRow(e,t,o,i){const s=t.shouldRowBeSkipped||(()=>!1),n=null!=t.rowPositions||!!t.onlySelected,r=this.gos.get("groupHideOpenParents")&&!n,a=this.colModel.isPivotMode()?i.leafGroup:!i.group,l=!!i.footer,d=1===i.allChildrenCount&&1===i.childrenAfterGroup?.length&&function _canSkipShowingRowGroup(e,t){const o=e.get("groupHideParentOfSingleChild");return!0===o||!("leafGroupsOnly"!==o||!t.leafGroup)||!!e.get("groupRemoveSingleChildren")||!(!e.get("groupRemoveLowestSingleChildren")||!t.leafGroup)}(this.gos,i);if(!a&&!l&&(t.skipRowGroups||d||r)||t.onlySelected&&!i.isSelected()||t.skipPinnedTop&&"top"===i.rowPinned||t.skipPinnedBottom&&"bottom"===i.rowPinned||i.stub)return;if(-1===i.level&&!a&&!l)return;if(s(_addGridCommonParams(this.gos,{node:i})))return;const c=e.onNewBodyRow(i);if(o.forEach(((e,t)=>{c.onColumn(e,t,i)})),t.getCustomContentBelowRow){const o=t.getCustomContentBelowRow(_addGridCommonParams(this.gos,{node:i}));o&&e.addCustomContent(o)}}appendContent(e){return t=>{const o=e.appendContent;return o&&t.addCustomContent(o),t}}prependContent(e){return t=>{const o=e.prependContent;return o&&t.addCustomContent(o),t}}prepareSession(e){return t=>(t.prepare(e),t)}exportColumnGroups(e,t){return o=>{if(!e.skipColumnGroupHeaders){const i=new U,{colGroupSvc:s}=this.beans,n=s?s.createColumnGroups({columns:t,idCreator:i,pinned:null,isStandaloneStructure:!0}):t;this.recursivelyAddHeaderGroups(n,o,e.processGroupHeaderCallback)}return o}}exportHeaders(e,t){return o=>{if(!e.skipColumnHeaders){const e=o.onNewHeaderRow();t.forEach(((t,o)=>{e.onColumn(t,o,void 0)}))}return o}}processPinnedTopRows(e,t){return o=>{const i=this.processRow.bind(this,o,e,t);return e.rowPositions?e.rowPositions.filter((e=>"top"===e.rowPinned)).sort(((e,t)=>e.rowIndex-t.rowIndex)).map((e=>this.pinnedRowModel?.getPinnedTopRow(e.rowIndex))).forEach(i):this.pinnedRowModel?.isManual()||this.pinnedRowModel?.forEachPinnedRow("top",i),o}}processRows(e,t){return o=>{const i=this.rowModel,s=_isClientSideRowModel(this.gos),n=_isServerSideRowModel(this.gos),r=!s&&e.onlySelected,a=this.processRow.bind(this,o,e,t),{exportedRows:l="filteredAndSorted"}=e;if(e.rowPositions)return e.rowPositions.filter((e=>null==e.rowPinned)).sort(((e,t)=>e.rowIndex-t.rowIndex)).map((e=>i.getRow(e.rowIndex))).forEach(a),o;if(this.colModel.isPivotMode())return s?i.forEachPivotNode(a,!0,"filteredAndSorted"===l):n?i.forEachNodeAfterFilterAndSort(a,!0):i.forEachNode(a),o;if(e.onlySelectedAllPages||r){const e=this.beans.selectionSvc?.getSelectedNodes()??[];this.replicateSortedOrder(e),e.forEach(a)}else"all"===l?i.forEachNode(a):s||n?i.forEachNodeAfterFilterAndSort(a,!0):i.forEachNode(a);return o}}replicateSortedOrder(e){const{sortSvc:t,rowNodeSorter:o}=this.beans;if(!t||!o)return;const i=t.getSortOptions(),compareNodes=(e,t)=>null!=e.rowIndex&&null!=t.rowIndex?e.rowIndex-t.rowIndex:e.level===t.level?e.parent?.id===t.parent?.id?o.compareRowNodes(i,{rowNode:e,currentPos:e.rowIndex??-1},{rowNode:t,currentPos:t.rowIndex??-1}):compareNodes(e.parent,t.parent):e.level>t.level?compareNodes(e.parent,t):compareNodes(e,t.parent);e.sort(compareNodes)}processPinnedBottomRows(e,t){return o=>{const i=this.processRow.bind(this,o,e,t);return e.rowPositions?e.rowPositions.filter((e=>"bottom"===e.rowPinned)).sort(((e,t)=>e.rowIndex-t.rowIndex)).map((e=>this.pinnedRowModel?.getPinnedBottomRow(e.rowIndex))).forEach(i):this.pinnedRowModel?.isManual()||this.pinnedRowModel?.forEachPinnedRow("bottom",i),o}}getColumnsToExport(e){const{allColumns:t=!1,skipRowGroups:o=!1,exportRowNumbers:i=!1,columnKeys:s}=e,{colModel:n,gos:r,visibleCols:a}=this,l=n.isPivotMode(),filterSpecialColumns=e=>!isColumnSelectionCol(e)&&(!isRowNumberCol(e)||i);if(s&&s.length)return n.getColsForKeys(s).filter(filterSpecialColumns);const d=r.get("treeData");let c=[];return c=t&&!l?n.getCols():a.allCols,c=c.filter((e=>filterSpecialColumns(e)&&(!(o&&!d)||!isColumnGroupAutoCol(e)))),c}recursivelyAddHeaderGroups(e,t,o){const i=[];e.forEach((e=>{const t=e;t.getChildren&&t.getChildren().forEach((e=>i.push(e)))})),e.length>0&&isColumnGroup(e[0])&&this.doAddHeaderHeader(t,e,o),i&&i.length>0&&this.recursivelyAddHeaderGroups(i,t,o)}doAddHeaderHeader(e,t,o){const i=e.onNewHeaderGroupingRow();let s=0;t.forEach((e=>{const t=e;let n;n=o?o(_addGridCommonParams(this.gos,{columnGroup:t})):this.beans.colNames.getDisplayNameForColumnGroup(t,"header");const r=t.getLeafColumns().reduce(((e,t,o,i)=>{let s=_last(e);return"open"===t.getColumnGroupShow()?s&&null==s[1]||(s=[o],e.push(s)):s&&null==s[1]&&(s[1]=o-1),o===i.length-1&&s&&null==s[1]&&(s[1]=o),e}),[]);i.onColumn(t,n||"",s++,t.getLeafColumns().length-1,r)}))}}]};var ya={moduleName:"CsvExport",version:R,beans:[class extends _n{constructor(){super(...arguments),this.beanName="csvCreator"}wireBeans(e){this.colModel=e.colModel,this.colNames=e.colNames,this.rowGroupColsSvc=e.rowGroupColsSvc,this.valueSvc=e.valueSvc}getMergedParams(e){const t=this.gos.get("defaultCsvExportParams");return Object.assign({},t,e)}export(e){if(this.isExportSuppressed())return void _warn(51);const t=this.getMergedParams(e),o=this.getData(t),i=new Blob(["\ufeff",o],{type:"text/plain"}),s="function"==typeof t.fileName?t.fileName(_addGridCommonParams(this.gos,{})):t.fileName;!function _downloadFile(e,t){const o=document.defaultView||window;if(!o)return void _warn(52);const i=document.createElement("a"),s=o.URL.createObjectURL(t);i.setAttribute("href",s),i.setAttribute("download",e),i.style.display="none",document.body.appendChild(i),i.dispatchEvent(new MouseEvent("click",{bubbles:!1,cancelable:!0,view:o})),document.body.removeChild(i),o.setTimeout((()=>{o.URL.revokeObjectURL(s)}),0)}(this.getFileName(s),i)}exportDataAsCsv(e){this.export(e)}getDataAsCsv(e,t=!1){const o=t?Object.assign({},e):this.getMergedParams(e);return this.getData(o)}getDefaultFileExtension(){return"csv"}createSerializingSession(e){const{colModel:t,colNames:o,rowGroupColsSvc:i,valueSvc:s,gos:n}=this,{processCellCallback:r,processHeaderCallback:a,processGroupHeaderCallback:l,processRowGroupCallback:d,suppressQuotes:c,columnSeparator:h}=e;return new class extends class{constructor(e){const{colModel:t,rowGroupColsSvc:o,colNames:i,valueSvc:s,gos:n,processCellCallback:r,processHeaderCallback:a,processGroupHeaderCallback:l,processRowGroupCallback:d}=e;this.colModel=t,this.rowGroupColsSvc=o,this.colNames=i,this.valueSvc=s,this.gos=n,this.processCellCallback=r,this.processHeaderCallback=a,this.processGroupHeaderCallback=l,this.processRowGroupCallback=d}prepare(e){}extractHeaderValue(e){return this.getHeaderName(this.processHeaderCallback,e)??""}extractRowCellValue(e,t,o,i,s){if(this.processRowGroupCallback&&(this.gos.get("treeData")||s.group)&&e.isRowGroupDisplayed(s.rowGroupColumn?.getColId()??""))return{value:this.processRowGroupCallback(_addGridCommonParams(this.gos,{column:e,node:s}))??""};if(this.processCellCallback)return{value:this.processCellCallback(_addGridCommonParams(this.gos,{accumulatedRowIndex:o,column:e,node:s,value:this.valueSvc.getValueForDisplay(e,s,void 0,void 0).value,type:i,parseValue:t=>this.valueSvc.parseValue(e,s,t,this.valueSvc.getValue(e,s,void 0)),formatValue:t=>this.valueSvc.formatValue(e,s,t)??t}))??""};const n=this.gos.get("treeData"),r=this.valueSvc,a=-1===s.level&&s.footer,l=0===t&&_isFullWidthGroupRow(this.gos,s,this.colModel.isPivotMode()),d=!0===e.colDef.showRowGroup&&(s.group||n);if(!a&&(l||d)){let t="",o=s;for(;o&&-1!==o.level;){const{value:i,valueFormatted:s}=r.getValueForDisplay(l?void 0:e,o,!0,!0);t=` -> ${s??i??""}${t}`,o=o.parent}return{value:t,valueFormatted:t}}const{value:c,valueFormatted:h}=r.getValueForDisplay(e,s,!0,!0);return{value:c??"",valueFormatted:h}}getHeaderName(e,t){return e?e(_addGridCommonParams(this.gos,{column:t})):this.colNames.getDisplayNameForColumn(t,"csv",!0)}}{constructor(e){super(e),this.config=e,this.isFirstLine=!0,this.result="";const{suppressQuotes:t,columnSeparator:o}=e;this.suppressQuotes=t,this.columnSeparator=o}addCustomContent(e){e&&("string"==typeof e?(/^\s*\n/.test(e)||this.beginNewLine(),e=e.replace(/\r?\n/g,"\r\n"),this.result+=e):e.forEach((e=>{this.beginNewLine(),e.forEach(((e,t)=>{0!==t&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(e.data.value||""),e.mergeAcross&&this.appendEmptyCells(e.mergeAcross)}))})))}onNewHeaderGroupingRow(){return this.beginNewLine(),{onColumn:this.onNewHeaderGroupingRowColumn.bind(this)}}onNewHeaderGroupingRowColumn(e,t,o,i){0!=o&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(t),this.appendEmptyCells(i)}appendEmptyCells(e){for(let t=1;t<=e;t++)this.result+=this.columnSeparator+this.putInQuotes("")}onNewHeaderRow(){return this.beginNewLine(),{onColumn:this.onNewHeaderRowColumn.bind(this)}}onNewHeaderRowColumn(e,t){0!=t&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(this.extractHeaderValue(e))}onNewBodyRow(){return this.beginNewLine(),{onColumn:this.onNewBodyRowColumn.bind(this)}}onNewBodyRowColumn(e,t,o){0!=t&&(this.result+=this.columnSeparator);const i=this.extractRowCellValue(e,t,t,"csv",o);this.result+=this.putInQuotes(i.valueFormatted??i.value)}putInQuotes(e){if(this.suppressQuotes)return e;if(null==e)return'""';let t;return"string"==typeof e?t=e:"function"==typeof e.toString?t=e.toString():(_warn(53),t=""),'"'+t.replace(/"/g,'""')+'"'}parse(){return this.result}beginNewLine(){this.isFirstLine||(this.result+="\r\n"),this.isFirstLine=!1}}({colModel:t,colNames:o,valueSvc:s,gos:n,processCellCallback:r||void 0,processHeaderCallback:a||void 0,processGroupHeaderCallback:l||void 0,processRowGroupCallback:d||void 0,suppressQuotes:c||!1,columnSeparator:h||",",rowGroupColsSvc:i})}isExportSuppressed(){return this.gos.get("suppressCsvExport")}}],apiFunctions:{getDataAsCsv:function getDataAsCsv(e,t){return e.csvCreator?.getDataAsCsv(t)},exportDataAsCsv:function exportDataAsCsv(e,t){e.csvCreator?.exportDataAsCsv(t)}},dependsOn:[Sa]},Ra=class extends I{constructor(e,t,o){super(),this.id=e,this.parentCache=t,this.params=o,this.state="needsLoading",this.version=0,this.startRow=e*o.blockSize,this.endRow=this.startRow+o.blockSize}load(){this.state="loading",this.loadFromDatasource()}setStateWaitingToLoad(){this.version++,this.state="needsLoading"}pageLoadFailed(e){this.isRequestMostRecentAndLive(e)&&(this.state="failed"),this.dispatchLocalEvent({type:"loadComplete"})}pageLoaded(e,t,o){this.successCommon(e,{rowData:t,rowCount:o})}isRequestMostRecentAndLive(e){const t=e===this.version,o=this.isAlive();return t&&o}successCommon(e,t){this.dispatchLocalEvent({type:"loadComplete"});this.isRequestMostRecentAndLive(e)&&(this.state="loaded",this.processServerResult(t))}postConstruct(){this.rowNodes=[];const{params:{blockSize:e,rowHeight:t},startRow:o,beans:i,rowNodes:s}=this;for(let n=0;n<e;n++){const e=o+n,r=new lt(i);r.setRowHeight(t),r.uiLevel=0,r.setRowIndex(e),r.setRowTop(t*e),s.push(r)}}getBlockStateJson(){const{id:e,startRow:t,endRow:o,state:i}=this;return{id:""+e,state:{blockNumber:e,startRow:t,endRow:o,pageStatus:i}}}setDataAndId(e,t,o){_exists(t)?e.setDataAndId(t,o.toString()):e.setDataAndId(void 0,void 0)}loadFromDatasource(){const e=this.createLoadParams();_missing(this.params.datasource.getRows)?_warn(90):window.setTimeout((()=>{this.params.datasource.getRows(e)}),0)}createLoadParams(){const{startRow:e,endRow:t,version:o,params:{sortModel:i,filterModel:s},gos:n}=this;return{startRow:e,endRow:t,successCallback:this.pageLoaded.bind(this,o),failCallback:this.pageLoadFailed.bind(this,o),sortModel:i,filterModel:s,context:_addGridCommonParams(n,{}).context}}forEachNode(e,t,o){this.rowNodes.forEach(((i,s)=>{this.startRow+s<o&&e(i,t.value++)}))}getRow(e,t=!1){t||(this.lastAccessed=this.params.lastAccessedSequence.value++);const o=e-this.startRow;return this.rowNodes[o]}processServerResult(e){const{rowNodes:t,beans:o}=this;t.forEach(((i,s)=>{const n=e.rowData?e.rowData[s]:void 0;!i.id&&i.alreadyRendered&&n&&(t[s]=new lt(o),t[s].setRowIndex(i.rowIndex),t[s].setRowTop(i.rowTop),t[s].setRowHeight(i.rowHeight),i.clearRowTopAndRowIndex()),this.setDataAndId(t[s],n,this.startRow+s)}));const i=null!=e.rowCount&&e.rowCount>=0?e.rowCount:void 0;this.parentCache.pageLoaded(this,i)}destroy(){this.rowNodes.forEach((e=>{e.clearRowTopAndRowIndex()})),super.destroy()}},Fa=class extends I{constructor(e){super(),this.params=e,this.lastRowIndexKnown=!1,this.blocks={},this.blockCount=0,this.rowCount=e.initialRowCount}getRow(e,t=!1){const o=Math.floor(e/this.params.blockSize);let i=this.blocks[o];if(!i){if(t)return;i=this.createBlock(o)}return i.getRow(e)}createBlock(e){const t=this.params,o=this.createBean(new Ra(e,this,t));return this.blocks[o.id]=o,this.blockCount++,this.purgeBlocksIfNeeded(o),t.rowNodeBlockLoader.addBlock(o),o}refreshCache(){0==this.blockCount?this.purgeCache():(this.getBlocksInOrder().forEach((e=>e.setStateWaitingToLoad())),this.params.rowNodeBlockLoader.checkBlockToLoad())}destroy(){this.getBlocksInOrder().forEach((e=>this.destroyBlock(e))),super.destroy()}getRowCount(){return this.rowCount}isLastRowIndexKnown(){return this.lastRowIndexKnown}pageLoaded(e,t){this.isAlive()&&(_logIfDebug(this.gos,`InfiniteCache - onPageLoaded: page = ${e.id}, lastRow = ${t}`),this.checkRowCount(e,t),this.onCacheUpdated())}purgeBlocksIfNeeded(e){const t=this.getBlocksInOrder().filter((t=>t!=e));t.sort(((e,t)=>t.lastAccessed-e.lastAccessed));const o=this.params.maxBlocksInCache>0,i=o?this.params.maxBlocksInCache-1:null;t.forEach(((e,t)=>{if("needsLoading"===e.state&&t>=1||!!o&&t>=i){if(this.isBlockCurrentlyDisplayed(e))return;if(this.isBlockFocused(e))return;this.removeBlockFromCache(e)}}))}isBlockFocused(e){const t=this.beans.focusSvc.getFocusCellToUseAfterRefresh();if(!t)return!1;if(null!=t.rowPinned)return!1;const{startRow:o,endRow:i}=e;return t.rowIndex>=o&&t.rowIndex<i}isBlockCurrentlyDisplayed(e){const{startRow:t,endRow:o}=e;return this.beans.rowRenderer.isRangeInRenderedViewport(t,o-1)}removeBlockFromCache(e){e&&this.destroyBlock(e)}checkRowCount(e,t){if("number"==typeof t&&t>=0)this.rowCount=t,this.lastRowIndexKnown=!0;else if(!this.lastRowIndexKnown){const{blockSize:t,overflowSize:o}=this.params,i=(e.id+1)*t+o;this.rowCount<i&&(this.rowCount=i)}}setRowCount(e,t){this.rowCount=e,_exists(t)&&(this.lastRowIndexKnown=t),this.lastRowIndexKnown||this.rowCount%this.params.blockSize==0&&this.rowCount++,this.onCacheUpdated()}forEachNodeDeep(e){const t={value:0};this.getBlocksInOrder().forEach((o=>o.forEachNode(e,t,this.rowCount)))}getBlocksInOrder(){return Object.values(this.blocks).sort(((e,t)=>e.id-t.id))}destroyBlock(e){delete this.blocks[e.id],this.destroyBean(e),this.blockCount--,this.params.rowNodeBlockLoader.removeBlock(e)}onCacheUpdated(){this.isAlive()&&(this.destroyAllBlocksPastVirtualRowCount(),this.eventSvc.dispatchEvent({type:"storeUpdated"}))}destroyAllBlocksPastVirtualRowCount(){const e=[];this.getBlocksInOrder().forEach((t=>{t.id*this.params.blockSize>=this.rowCount&&e.push(t)})),e.length>0&&e.forEach((e=>this.destroyBlock(e)))}purgeCache(){this.getBlocksInOrder().forEach((e=>this.removeBlockFromCache(e))),this.lastRowIndexKnown=!1,0===this.rowCount&&(this.rowCount=this.params.initialRowCount),this.onCacheUpdated()}getRowNodesInRange(e,t){const o=[];let i=-1,s=!1;const n={value:0};let r=!1;this.getBlocksInOrder().forEach((a=>{r||(s&&i+1!==a.id?r=!0:(i=a.id,a.forEachNode((i=>{const n=i===e||i===t;(s||n)&&o.push(i),n&&(s=!s)}),n,this.rowCount)))}));return r||s?[]:o}};var Ea={moduleName:"InfiniteRowModel",version:R,apiFunctions:{refreshInfiniteCache:function refreshInfiniteCache(e){_getInfiniteRowModel(e)?.refreshCache()},purgeInfiniteCache:function purgeInfiniteCache(e){_getInfiniteRowModel(e)?.purgeCache()},getInfiniteRowCount:function getInfiniteRowCount(e){return _getInfiniteRowModel(e)?.getRowCount()}},dependsOn:[{moduleName:"InfiniteRowModelCore",version:R,rowModels:["infinite"],beans:[class extends I{constructor(){super(...arguments),this.beanName="rowModel"}getRowBounds(e){return{rowHeight:this.rowHeight,rowTop:this.rowHeight*e}}ensureRowHeightsValid(){return!1}postConstruct(){"infinite"===this.gos.get("rowModelType")&&(this.rowHeight=_getRowHeightAsNumber(this.beans),this.addEventListeners(),this.addDestroyFunc((()=>this.destroyCache())))}start(){this.setDatasource(this.gos.get("datasource"))}destroy(){this.destroyDatasource(),super.destroy()}destroyDatasource(){this.datasource&&(this.destroyBean(this.datasource),this.beans.rowRenderer.datasourceChanged(),this.datasource=null)}addEventListeners(){this.addManagedEventListeners({filterChanged:this.reset.bind(this),sortChanged:this.reset.bind(this),newColumnsLoaded:this.onColumnEverything.bind(this),storeUpdated:this.dispatchModelUpdatedEvent.bind(this)}),this.addManagedPropertyListener("datasource",(()=>this.setDatasource(this.gos.get("datasource")))),this.addManagedPropertyListener("cacheBlockSize",(()=>this.resetCache())),this.addManagedPropertyListener("rowHeight",(()=>{this.rowHeight=_getRowHeightAsNumber(this.beans),this.cacheParams.rowHeight=this.rowHeight,this.updateRowHeights()}))}onColumnEverything(){let e;e=!this.cacheParams||!_jsonEquals(this.cacheParams.sortModel,this.beans.sortSvc?.getSortModel()??[]),e&&this.reset()}getType(){return"infinite"}setDatasource(e){this.destroyDatasource(),this.datasource=e,e&&this.reset()}isEmpty(){return!this.infiniteCache}isRowsToRender(){return!!this.infiniteCache}getNodesInRangeForSelection(e,t){return this.infiniteCache?.getRowNodesInRange(e,t)??[]}reset(){if(!this.datasource)return;null!=_getRowIdCallback(this.gos)||this.beans.selectionSvc?.reset("rowDataChanged"),this.resetCache()}dispatchModelUpdatedEvent(){this.eventSvc.dispatchEvent({type:"modelUpdated",newPage:!1,newPageSize:!1,newData:!1,keepRenderedRows:!0,animate:!1})}resetCache(){this.destroyCache();const e=this.beans,{filterManager:t,sortSvc:o,rowNodeBlockLoader:i,eventSvc:s,gos:n}=e;this.cacheParams={datasource:this.datasource,filterModel:t?.getFilterModel()??{},sortModel:o?.getSortModel()??[],rowNodeBlockLoader:i,initialRowCount:n.get("infiniteInitialRowCount"),maxBlocksInCache:n.get("maxBlocksInCache"),rowHeight:_getRowHeightAsNumber(e),overflowSize:n.get("cacheOverflowSize"),blockSize:n.get("cacheBlockSize"),lastAccessedSequence:{value:0}},this.infiniteCache=this.createBean(new Fa(this.cacheParams)),s.dispatchEventOnce({type:"rowCountReady"}),this.dispatchModelUpdatedEvent()}updateRowHeights(){this.forEachNode((e=>{e.setRowHeight(this.rowHeight),e.setRowTop(this.rowHeight*e.rowIndex)})),this.dispatchModelUpdatedEvent()}destroyCache(){this.infiniteCache=this.destroyBean(this.infiniteCache)}getRow(e){const t=this.infiniteCache;if(t&&!(e>=t.getRowCount()))return t.getRow(e)}getRowNode(e){let t;return this.forEachNode((o=>{o.id===e&&(t=o)})),t}forEachNode(e){this.infiniteCache?.forEachNodeDeep(e)}getTopLevelRowCount(){return this.getRowCount()}getTopLevelRowDisplayedIndex(e){return e}getRowIndexAtPixel(e){if(0!==this.rowHeight){const t=Math.floor(e/this.rowHeight),o=this.getRowCount()-1;return t>o?o:t}return 0}getRowCount(){return this.infiniteCache?this.infiniteCache.getRowCount():0}isRowPresent(e){return!!this.getRowNode(e.id)}refreshCache(){this.infiniteCache?.refreshCache()}purgeCache(){this.infiniteCache?.purgeCache()}isLastRowIndexKnown(){return this.infiniteCache?.isLastRowIndexKnown()??!1}setRowCount(e,t){this.infiniteCache?.setRowCount(e,t)}},class extends I{constructor(){super(...arguments),this.beanName="rowNodeBlockLoader",this.activeBlockLoadsCount=0,this.blocks=[],this.active=!0}postConstruct(){this.maxConcurrentRequests=function _getMaxConcurrentDatasourceRequests(e){const t=e.get("maxConcurrentDatasourceRequests");return t>0?t:void 0}(this.gos);const e=this.gos.get("blockLoadDebounceMillis");e&&e>0&&(this.checkBlockToLoadDebounce=_debounce(this,this.performCheckBlocksToLoad.bind(this),e))}addBlock(e){this.blocks.push(e),e.addEventListener("loadComplete",this.loadComplete.bind(this)),this.checkBlockToLoad()}removeBlock(e){_removeFromArray(this.blocks,e)}destroy(){super.destroy(),this.active=!1}loadComplete(){this.activeBlockLoadsCount--,this.checkBlockToLoad()}checkBlockToLoad(){this.checkBlockToLoadDebounce?this.checkBlockToLoadDebounce():this.performCheckBlocksToLoad()}performCheckBlocksToLoad(){if(!this.active)return;if(this.printCacheStatus(),null!=this.maxConcurrentRequests&&this.activeBlockLoadsCount>=this.maxConcurrentRequests)return void _logIfDebug(this.gos,"RowNodeBlockLoader - checkBlockToLoad: max loads exceeded");const e=null!=this.maxConcurrentRequests?this.maxConcurrentRequests-this.activeBlockLoadsCount:1,t=this.blocks.filter((e=>"needsLoading"===e.state)).slice(0,e);this.activeBlockLoadsCount+=t.length,t.forEach((e=>e.load())),this.printCacheStatus()}getBlockState(){const e={};return this.blocks.forEach((t=>{const{id:o,state:i}=t.getBlockStateJson();e[o]=i})),e}printCacheStatus(){_logIfDebug(this.gos,`RowNodeBlockLoader - printCacheStatus: activePageLoadsCount = ${this.activeBlockLoadsCount}, blocks = ${JSON.stringify(this.getBlockState())}`)}}]},fa]},Pa={tag:"span",children:[{tag:"span",ref:"eDelta",cls:"ag-value-change-delta"},{tag:"span",ref:"eValue",cls:"ag-value-change-value"}]},Da={tag:"span",children:[{tag:"span",ref:"eCurrent",cls:"ag-value-slide-current"}]};var xa={moduleName:"HighlightChanges",version:R,beans:[class extends I{constructor(){super(...arguments),this.beanName="cellFlashSvc",this.nextAnimationTime=null,this.nextAnimationCycle=null,this.animations={highlight:new Map,"data-changed":new Map}}animateCell(e,t,o=this.beans.gos.get("cellFlashDuration"),i=this.beans.gos.get("cellFadeDuration")){const s=this.animations[t];s.delete(e);const n=Date.now(),r=n+o,a={phase:"flash",flashEndTime:r,fadeEndTime:n+o+i};s.set(e,a);const l=`ag-cell-${t}`,d=`${l}-animation`,{comp:c,eGui:{style:h}}=e;c.toggleCss(l,!0),c.toggleCss(d,!1),h.removeProperty("transition"),h.removeProperty("transition-delay"),this.nextAnimationTime&&r+15<this.nextAnimationTime&&(clearTimeout(this.nextAnimationCycle),this.nextAnimationCycle=null,this.nextAnimationTime=null),this.nextAnimationCycle||(this.beans.frameworkOverrides.wrapIncoming((()=>{this.nextAnimationCycle=setTimeout(this.advanceAnimations.bind(this),o)})),this.nextAnimationTime=r)}advanceAnimations(){const e=Date.now();let t=null;for(const o of Object.keys(this.animations)){const i=this.animations[o],s=`ag-cell-${o}`,n=`${s}-animation`;for(const[o,r]of i){if(!o.isAlive()||!o.comp){i.delete(o);continue}const{phase:a,flashEndTime:l,fadeEndTime:d}=r,c="flash"===a?l:d;if(!(e+15>=c)){t=Math.min(c,t??1/0);continue}const{comp:h,eGui:{style:u}}=o;switch(a){case"flash":h.toggleCss(s,!1),h.toggleCss(n,!0),u.transition=`background-color ${d-l}ms`,u.transitionDelay=l-e+"ms",t=Math.min(d,t??1/0),r.phase="fade";break;case"fade":h.toggleCss(s,!1),h.toggleCss(n,!1),u.removeProperty("transition"),u.removeProperty("transition-delay"),i.delete(o)}}}null==t?(this.nextAnimationTime=null,this.nextAnimationCycle=null):t&&(this.nextAnimationCycle=setTimeout(this.advanceAnimations.bind(this),t-e),this.nextAnimationTime=t)}onFlashCells(e,t){if(!e.comp)return;const o=function _createCellId(e){const{rowIndex:t,rowPinned:o,column:i}=e;return`${t}.${null==o?"null":o}.${i.getId()}`}(e.cellPosition);t.cells[o]&&this.animateCell(e,"highlight")}flashCell(e,t){this.animateCell(e,"data-changed",t?.flashDuration,t?.fadeDuration)}destroy(){for(const e of Object.keys(this.animations)){this.animations[e].clear()}}}],userComponents:{agAnimateShowChangeCellRenderer:class extends Q{constructor(){super(Pa),this.eValue=q,this.eDelta=q,this.refreshCount=0}init(e){this.refresh(e,!0)}showDelta(e,t){const o=Math.abs(t),i=e.formatValue(o),s=_exists(i)?i:o,n=t>=0,r=this.eDelta;r.textContent=n?"↑"+s:"↓"+s,r.classList.toggle("ag-value-change-delta-up",n),r.classList.toggle("ag-value-change-delta-down",!n)}setTimerToRemoveDelta(){this.refreshCount++;const e=this.refreshCount;this.beans.frameworkOverrides.wrapIncoming((()=>{window.setTimeout((()=>{e===this.refreshCount&&this.hideDeltaValue()}),2e3)}))}hideDeltaValue(){this.eValue.classList.remove("ag-value-change-value-highlight"),_clearElement(this.eDelta)}refresh(e,t=!1){const{value:o,valueFormatted:i}=e,{eValue:s,lastValue:n,beans:r}=this;if(o===n)return!1;if(_exists(i)?s.textContent=i:_exists(o)?s.textContent=o:_clearElement(s),r.filterManager?.isSuppressFlashingCellsBecauseFiltering())return!1;const a=o&&"object"==typeof o&&"toNumber"in o?o.toNumber():o,l=n&&"object"==typeof n&&"toNumber"in n?n.toNumber():n;if(a===l)return!1;if("number"==typeof a&&"number"==typeof l){const t=a-l;this.showDelta(e,t)}return n&&s.classList.add("ag-value-change-value-highlight"),t||this.setTimerToRemoveDelta(),this.lastValue=o,!0}},agAnimateSlideCellRenderer:class extends Q{constructor(){super(Da),this.eCurrent=q,this.refreshCount=0,this.registerCSS(".ag-value-slide-out{opacity:1}:where(.ag-ltr) .ag-value-slide-out{margin-right:5px;transition:opacity 3s,margin-right 3s}:where(.ag-rtl) .ag-value-slide-out{margin-left:5px;transition:opacity 3s,margin-left 3s}:where(.ag-ltr,.ag-rtl) .ag-value-slide-out{transition-timing-function:linear}.ag-value-slide-out-end{opacity:0}:where(.ag-ltr) .ag-value-slide-out-end{margin-right:10px}:where(.ag-rtl) .ag-value-slide-out-end{margin-left:10px}")}init(e){this.refresh(e,!0)}addSlideAnimation(){this.refreshCount++;const e=this.refreshCount;this.ePrevious&&this.getGui().removeChild(this.ePrevious);const{beans:t,eCurrent:o}=this,i=_createElement({tag:"span",cls:"ag-value-slide-previous ag-value-slide-out"});this.ePrevious=i,i.textContent=o.textContent,this.getGui().insertBefore(i,o),t.frameworkOverrides.wrapIncoming((()=>{window.setTimeout((()=>{e===this.refreshCount&&this.ePrevious.classList.add("ag-value-slide-out-end")}),50),window.setTimeout((()=>{e===this.refreshCount&&(this.getGui().removeChild(this.ePrevious),this.ePrevious=null)}),3e3)}))}refresh(e,t=!1){let o=e.value;if(_missing(o)&&(o=""),o===this.lastValue)return!1;if(this.beans.filterManager?.isSuppressFlashingCellsBecauseFiltering())return!1;t||this.addSlideAnimation(),this.lastValue=o;const i=this.eCurrent;return _exists(e.valueFormatted)?i.textContent=e.valueFormatted:_exists(e.value)?i.textContent=o:_clearElement(i),!0}}},apiFunctions:{flashCells:function flashCells(e,t={}){const{cellFlashSvc:o}=e;o&&e.frameworkOverrides.wrapIncoming((()=>{e.rowRenderer.getCellCtrls(t.rowNodes,t.columns).forEach((e=>o.flashCell(e,t)))}))}}};function migrateGridStateModel(e){if((e={...e}).version||(e.version="32.1.0"),"32.1.0"===e.version)e=function migrateV32_1(e){return e.cellSelection=function jsonGet(e,t){if(e&&"object"==typeof e)return e[t]}(e,"rangeSelection"),e}(e);return e.version=R,e}var Ma={moduleName:"GridState",version:R,beans:[class extends I{constructor(){super(...arguments),this.beanName="stateSvc",this.updateRowGroupExpansionStateTimer=0,this.suppressEvents=!0,this.queuedUpdateSources=new Set,this.dispatchStateUpdateEventDebounced=_debounce(this,(()=>this.dispatchQueuedStateUpdateEvents()),0),this.onRowGroupOpenedDebounced=_debounce(this,(()=>{this.updateCachedState("rowGroupExpansion",this.getRowGroupExpansionState())}),0),this.onRowSelectedDebounced=_debounce(this,(()=>{this.staleStateKeys.delete("rowSelection"),this.updateCachedState("rowSelection",this.getRowSelectionState())}),0),this.staleStateKeys=new Set}postConstruct(){this.isClientSideRowModel=_isClientSideRowModel(this.gos);const e=migrateGridStateModel(this.gos.get("initialState")??{}),t=e.partialColumnState;delete e.partialColumnState,this.cachedState=e;const o=this.suppressEventsAndDispatchInitEvent.bind(this);this.beans.ctrlsSvc.whenReady(this,(()=>o((()=>this.setupStateOnGridReady(e)))));const[i,s,n]=this.addManagedEventListeners({newColumnsLoaded:({source:s})=>{"gridInitializing"===s&&(i(),o((()=>this.setupStateOnColumnsInitialised(e,!!t))))},rowCountReady:()=>{s?.(),o((()=>this.setupStateOnRowCountReady(e)))},firstDataRendered:()=>{n?.(),o((()=>this.setupStateOnFirstDataRendered(e)))}})}destroy(){super.destroy(),clearTimeout(this.updateRowGroupExpansionStateTimer),this.queuedUpdateSources.clear()}getState(){return this.staleStateKeys.size&&this.refreshStaleState(),this.cachedState}setState(e,t){const o=migrateGridStateModel(e);delete o.partialColumnState,this.cachedState=o,this.startSuppressEvents();const i="api",s=t?new Set(t):void 0;this.setGridReadyState(o,i,s),this.setColumnsInitialisedState(o,i,!1,s),this.setRowCountState(o,i,s),setTimeout((()=>{this.isAlive()&&this.setFirstDataRenderedState(o,i,s),this.stopSuppressEvents(i)}))}setGridReadyState(e,t,o){"api"!==t||o?.has("sideBar")||this.beans.sideBar?.comp?.setState(e.sideBar),this.updateCachedState("sideBar",this.getSideBarState())}setupStateOnGridReady(e){this.setGridReadyState(e,"gridInitializing");const stateUpdater=()=>this.updateCachedState("sideBar",this.getSideBarState());this.addManagedEventListeners({toolPanelVisibleChanged:stateUpdater,sideBarUpdated:stateUpdater})}updateColumnAndGroupState(){this.updateColumnState(["aggregation","columnOrder","columnPinning","columnSizing","columnVisibility","pivot","rowGroup","sort"]),this.updateCachedState("columnGroup",this.getColumnGroupState())}setColumnsInitialisedState(e,t,o,i){this.setColumnState(e,t,o,i),this.setColumnGroupState(e,t,i),this.updateColumnAndGroupState()}setupStateOnColumnsInitialised(e,t){this.setColumnsInitialisedState(e,"gridInitializing",t);const onUpdate=e=>()=>this.updateColumnState([e]);this.addManagedEventListeners({columnValueChanged:onUpdate("aggregation"),columnMoved:onUpdate("columnOrder"),columnPinned:onUpdate("columnPinning"),columnResized:onUpdate("columnSizing"),columnVisible:onUpdate("columnVisibility"),columnPivotChanged:onUpdate("pivot"),columnPivotModeChanged:onUpdate("pivot"),columnRowGroupChanged:onUpdate("rowGroup"),sortChanged:onUpdate("sort"),newColumnsLoaded:this.updateColumnAndGroupState.bind(this),columnGroupOpened:()=>this.updateCachedState("columnGroup",this.getColumnGroupState())})}setRowCountState(e,t,o){const{filter:i,rowGroupExpansion:s,rowSelection:n,pagination:r}=e,shouldSetState=(e,i)=>!o?.has(e)&&(i||"api"===t);shouldSetState("filter",i)&&this.setFilterState(i),shouldSetState("rowGroupExpansion",s)&&this.setRowGroupExpansionState(s,t),shouldSetState("rowSelection",n)&&this.setRowSelectionState(n,t),shouldSetState("pagination",r)&&this.setPaginationState(r,t);const a=this.updateCachedState.bind(this);a("filter",this.getFilterState()),a("rowGroupExpansion",this.getRowGroupExpansionState()),a("rowSelection",this.getRowSelectionState()),a("pagination",this.getPaginationState())}setupStateOnRowCountReady(e){this.setRowCountState(e,"gridInitializing");const t=this.updateCachedState.bind(this),updateRowGroupExpansionState=()=>{this.updateRowGroupExpansionStateTimer=0,t("rowGroupExpansion",this.getRowGroupExpansionState())},updateFilterState=()=>t("filter",this.getFilterState()),{gos:o,colFilter:i}=this.beans;this.addManagedEventListeners({filterChanged:updateFilterState,rowGroupOpened:()=>this.onRowGroupOpenedDebounced(),expandOrCollapseAll:updateRowGroupExpansionState,columnRowGroupChanged:updateRowGroupExpansionState,rowDataUpdated:()=>{(0!==o.get("groupDefaultExpanded")||o.get("isGroupOpenByDefault"))&&(this.updateRowGroupExpansionStateTimer||(this.updateRowGroupExpansionStateTimer=setTimeout(updateRowGroupExpansionState)))},selectionChanged:()=>{this.staleStateKeys.add("rowSelection"),this.onRowSelectedDebounced()},paginationChanged:e=>{(e.newPage||e.newPageSize)&&t("pagination",this.getPaginationState())}}),i&&this.addManagedListeners(i,{filterStateChanged:updateFilterState})}setFirstDataRenderedState(e,t,o){const{scroll:i,cellSelection:s,focusedCell:n,columnOrder:r,rowPinning:a}=e,shouldSetState=(e,i)=>!o?.has(e)&&(i||"api"===t);shouldSetState("focusedCell",n)&&this.setFocusedCellState(n),shouldSetState("cellSelection",s)&&this.setCellSelectionState(s),shouldSetState("scroll",i)&&this.setScrollState(i),shouldSetState("rowPinning",a)&&this.setRowPinningState(a),this.setColumnPivotState(!!r?.orderedColIds,t);const l=this.updateCachedState.bind(this);l("sideBar",this.getSideBarState()),l("focusedCell",this.getFocusedCellState());const d=this.getRangeSelectionState();l("rangeSelection",d),l("cellSelection",d),l("scroll",this.getScrollState())}setupStateOnFirstDataRendered(e){this.setFirstDataRenderedState(e,"gridInitializing");const t=this.updateCachedState.bind(this);this.addManagedEventListeners({cellFocused:()=>t("focusedCell",this.getFocusedCellState()),cellSelectionChanged:e=>{if(e.finished){const e=this.getRangeSelectionState();t("rangeSelection",e),t("cellSelection",e)}},bodyScrollEnd:()=>t("scroll",this.getScrollState()),pinnedRowsChanged:()=>t("rowPinning",this.getRowPinningState())})}getColumnState(){const e=this.beans;return function convertColumnState(e,t=!1){const o=[],i=[],s=[],n=[],r=[],a=[],l=[],d=[],c=[];let h=0;for(let t=0;t<e.length;t++){const{colId:u,sort:g,sortIndex:p,rowGroup:m,rowGroupIndex:f,aggFunc:C,pivot:w,pivotIndex:v,pinned:b,hide:S,width:y,flex:R}=e[t];c.push(u),g&&(o[p??h++]={colId:u,sort:g}),m&&(i[f??0]=u),"string"==typeof C&&s.push({colId:u,aggFunc:C}),w&&(n[v??0]=u),b&&("right"===b?a:r).push(u),S&&l.push(u),(null!=R||y)&&d.push({colId:u,flex:R??void 0,width:y})}return{sort:o.length?{sortModel:o}:void 0,rowGroup:i.length?{groupColIds:i}:void 0,aggregation:s.length?{aggregationModel:s}:void 0,pivot:n.length||t?{pivotMode:t,pivotColIds:n}:void 0,columnPinning:r.length||a.length?{leftColIds:r,rightColIds:a}:void 0,columnVisibility:l.length?{hiddenColIds:l}:void 0,columnSizing:d.length?{columnSizingModel:d}:void 0,columnOrder:c.length?{orderedColIds:c}:void 0}}(_getColumnState(e),e.colModel.isPivotMode())}setColumnState(e,t,o,i){const{sort:s,rowGroup:n,aggregation:r,pivot:a,columnPinning:l,columnVisibility:d,columnSizing:c,columnOrder:h}=e,shouldSetState=(e,o)=>!i?.has(e)&&(o||"api"===t),u={},getColumnState2=e=>{let t=u[e];return t||(t={colId:e},u[e]=t,t)},g={},p=shouldSetState("sort",s);p&&s?.sortModel.forEach((({colId:e,sort:t},o)=>{const i=getColumnState2(e);i.sort=t,i.sortIndex=o})),!p&&o||(g.sort=null,g.sortIndex=null);const m=shouldSetState("rowGroup",n);m&&n?.groupColIds.forEach(((e,t)=>{const o=getColumnState2(e);o.rowGroup=!0,o.rowGroupIndex=t})),!m&&o||(g.rowGroup=null,g.rowGroupIndex=null);const f=shouldSetState("aggregation",r);f&&r?.aggregationModel.forEach((({colId:e,aggFunc:t})=>{getColumnState2(e).aggFunc=t})),!f&&o||(g.aggFunc=null);const C=shouldSetState("pivot",a);C&&(a?.pivotColIds.forEach(((e,t)=>{const o=getColumnState2(e);o.pivot=!0,o.pivotIndex=t})),this.gos.updateGridOptions({options:{pivotMode:!!a?.pivotMode},source:t})),!C&&o||(g.pivot=null,g.pivotIndex=null);const w=shouldSetState("columnPinning",l);w&&(l?.leftColIds.forEach((e=>{getColumnState2(e).pinned="left"})),l?.rightColIds.forEach((e=>{getColumnState2(e).pinned="right"}))),!w&&o||(g.pinned=null);const v=shouldSetState("columnVisibility",d);v&&d?.hiddenColIds.forEach((e=>{getColumnState2(e).hide=!0})),!v&&o||(g.hide=null);const b=shouldSetState("columnSizing",c);b&&c?.columnSizingModel.forEach((({colId:e,flex:t,width:o})=>{const i=getColumnState2(e);i.flex=t??null,i.width=o})),!b&&o||(g.flex=null);const S=h?.orderedColIds,y=!!S?.length&&!i?.has("columnOrder"),R=y?S.map((e=>getColumnState2(e))):Object.values(u);R.length&&(this.columnStates=R,_applyColumnState(this.beans,{state:R,applyOrder:y,defaultState:g},t))}setColumnPivotState(e,t){const o=this.columnStates;this.columnStates=void 0;const i=this.columnGroupStates;this.columnGroupStates=void 0;const s=this.beans,{pivotResultCols:n,colGroupSvc:r}=s;if(n?.isPivotResultColsPresent()){if(o){const i=[];for(const e of o)n.getPivotResultCol(e.colId)&&i.push(e);_applyColumnState(s,{state:i,applyOrder:e},t)}i&&r?.setColumnGroupState(i,t)}}getColumnGroupState(){const e=this.beans.colGroupSvc;if(!e)return;return _convertColumnGroupState(e.getColumnGroupState())}setColumnGroupState(e,t,o){const i=this.beans.colGroupSvc;if(!i||o?.has("columnGroup")||"api"!==t&&!Object.prototype.hasOwnProperty.call(e,"columnGroup"))return;const s=new Set(e.columnGroup?.openColumnGroupIds),n=i.getColumnGroupState().map((({groupId:e})=>{const t=s.has(e);return t&&s.delete(e),{groupId:e,open:t}}));s.forEach((e=>{n.push({groupId:e,open:!0})})),n.length&&(this.columnGroupStates=n),i.setColumnGroupState(n,t)}getFilterState(){const e=this.beans.filterManager;let t=e?.getFilterModel();t&&0===Object.keys(t).length&&(t=void 0);const o=e?.getFilterState(),i=e?.getAdvFilterModel()??void 0;return t||i||o?{filterModel:t,columnFilterState:o,advancedFilterModel:i}:void 0}setFilterState(e){const t=this.beans.filterManager,{filterModel:o,columnFilterState:i,advancedFilterModel:s}=e??{filterModel:null,columnFilterState:null,advancedFilterModel:null};void 0===o&&void 0===i||t?.setFilterState(o??null,i??null,"columnFilter"),void 0!==s&&t?.setAdvFilterModel(s??null,"advancedFilter")}getRangeSelectionState(){const e=this.beans.rangeSvc?.getCellRanges().map((e=>{const{id:t,type:o,startRow:i,endRow:s,columns:n,startColumn:r}=e;return{id:t,type:o,startRow:i,endRow:s,colIds:n.map((e=>e.getColId())),startColId:r.getColId()}}));return e?.length?{cellRanges:e}:void 0}setCellSelectionState(e){const{gos:t,rangeSvc:o,colModel:i,visibleCols:s}=this.beans;if(!_isCellSelectionEnabled(t)||!o)return;const n=[];e?.cellRanges.forEach((e=>{const t=[];if(e.colIds.forEach((e=>{const o=i.getCol(e);o&&t.push(o)})),!t.length)return;let o=i.getCol(e.startColId);if(!o){const e=s.allCols,i=new Set(t);o=e.find((e=>i.has(e)))}n.push({...e,columns:t,startColumn:o})})),o.setCellRanges(n)}getScrollState(){if(!this.isClientSideRowModel)return;const e=this.beans.ctrlsSvc.getScrollFeature(),{left:t}=e?.getHScrollPosition()??{left:0},{top:o}=e?.getVScrollPosition()??{top:0};return o||t?{top:o,left:t}:void 0}setScrollState(e){if(!this.isClientSideRowModel)return;const{top:t,left:o}=e??{top:0,left:0},{frameworkOverrides:i,rowRenderer:s,animationFrameSvc:n,ctrlsSvc:r}=this.beans;i.wrapIncoming((()=>{r.get("center").setCenterViewportScrollLeft(o),r.getScrollFeature()?.setVerticalScrollPosition(t),s.redraw({afterScroll:!0}),n?.flushAllFrames()}))}getSideBarState(){return this.beans.sideBar?.comp?.getState()}getFocusedCellState(){if(!this.isClientSideRowModel)return;const e=this.beans.focusSvc.getFocusedCell();if(e){const{column:t,rowIndex:o,rowPinned:i}=e;return{colId:t.getColId(),rowIndex:o,rowPinned:i}}}setFocusedCellState(e){if(!this.isClientSideRowModel)return;const{focusSvc:t,colModel:o}=this.beans;if(!e)return void t.clearFocusedCell();const{colId:i,rowIndex:s,rowPinned:n}=e;t.setFocusedCell({column:o.getCol(i),rowIndex:s,rowPinned:n,forceBrowserFocus:!0,preventScrollOnBrowserFocus:!0})}getPaginationState(){const{pagination:e,gos:t}=this.beans;if(!e)return;const o=e.getCurrentPage(),i=t.get("paginationAutoPageSize")?void 0:e.getPageSize();return o||i?{page:o,pageSize:i}:void 0}setPaginationState(e,t){const{pagination:o,gos:i}=this.beans;if(!o)return;const{pageSize:s,page:n}=e??{page:0,pageSize:i.get("paginationPageSize")},r="gridInitializing"===t;s&&!i.get("paginationAutoPageSize")&&o.setPageSize(s,r?"initialState":"pageSizeSelector"),"number"==typeof n&&(r?o.setPage(n):o.goToPage(n))}getRowSelectionState(){const e=this.beans.selectionSvc;if(!e)return;const t=e.getSelectionState();return!t||!Array.isArray(t)&&(!1===t.selectAll||!1===t.selectAllChildren)&&!t?.toggledNodes?.length?void 0:t}setRowSelectionState(e,t){this.beans.selectionSvc?.setSelectionState(e,t,"api"===t)}getRowGroupExpansionState(){const{expansionSvc:e,rowModel:t}=this.beans;if(!e)return;const o=[];return t.forEachNode((({expanded:e,id:t})=>{e&&t&&o.push(t)})),o.length?{expandedRowGroupIds:o}:void 0}getRowPinningState(){return this.beans.pinnedRowModel?.getPinnedState()}setRowPinningState(e){const t=this.beans.pinnedRowModel;e?t?.setPinnedState(e):t?.reset()}setRowGroupExpansionState(e,t){const o=this.beans.expansionSvc;if(!o)return;const i=e?.expandedRowGroupIds??[];let s;if("api"===t){const e=this.getRowGroupExpansionState()?.expandedRowGroupIds;if(e?.length){const t=new Set(e);for(const e of i)t.delete(e);s=Array.from(t)}}o.expandRows(i,s)}updateColumnState(e){const t=this.getColumnState();let o=!1;const i=this.cachedState;for(const e of Object.keys(t)){_jsonEquals(t[e],i[e])||(o=!0)}this.cachedState={...i,...t},o&&this.dispatchStateUpdateEvent(e)}updateCachedState(e,t){const o=this.cachedState[e];this.setCachedStateValue(e,t),_jsonEquals(t,o)||this.dispatchStateUpdateEvent([e])}setCachedStateValue(e,t){this.cachedState={...this.cachedState,[e]:t}}refreshStaleState(){const e=this.staleStateKeys;e.forEach((e=>{if("rowSelection"===e)this.setCachedStateValue(e,this.getRowSelectionState())})),e.clear()}dispatchStateUpdateEvent(e){this.suppressEvents||(e.forEach((e=>this.queuedUpdateSources.add(e))),this.dispatchStateUpdateEventDebounced())}dispatchQueuedStateUpdateEvents(){const e=this.queuedUpdateSources,t=Array.from(e);e.clear(),this.eventSvc.dispatchEvent({type:"stateUpdated",sources:t,state:this.cachedState})}startSuppressEvents(){this.suppressEvents=!0,this.beans.colAnimation?.setSuppressAnimation(!0)}stopSuppressEvents(e){setTimeout((()=>{this.suppressEvents=!1,this.queuedUpdateSources.clear(),this.isAlive()&&(this.beans.colAnimation?.setSuppressAnimation(!1),this.dispatchStateUpdateEvent([e]))}))}suppressEventsAndDispatchInitEvent(e){this.startSuppressEvents(),e(),this.stopSuppressEvents("gridInitializing")}}],apiFunctions:{getState:function getState(e){return e.stateSvc?.getState()??{}},setState:function setState(e,t,o){return e.stateSvc?.setState(t,o)}}};var Ta="paginationPageSizeSelector",Aa={tag:"span",cls:"ag-paging-page-size"},Ia={selector:"AG-PAGE-SIZE-SELECTOR",component:class extends Q{constructor(){super(Aa),this.hasEmptyOption=!1,this.handlePageSizeItemSelected=()=>{if(!this.selectPageSizeComp)return;const e=this.selectPageSizeComp.getValue();if(!e)return;const t=Number(e);isNaN(t)||t<1||t===this.pagination.getPageSize()||(this.pagination.setPageSize(t,"pageSizeSelector"),this.hasEmptyOption&&this.toggleSelectDisplay(!0),this.selectPageSizeComp.getFocusableElement().focus())}}wireBeans(e){this.pagination=e.pagination}postConstruct(){this.addManagedPropertyListener(Ta,(()=>{this.onPageSizeSelectorValuesChange()})),this.addManagedEventListeners({paginationChanged:e=>this.handlePaginationChanged(e)})}handlePaginationChanged(e){if(!this.selectPageSizeComp||!e?.newPageSize)return;const t=this.pagination.getPageSize();this.getPageSizeSelectorValues().includes(t)?this.selectPageSizeComp.setValue(t.toString()):this.hasEmptyOption?this.selectPageSizeComp.setValue(""):this.toggleSelectDisplay(!0)}toggleSelectDisplay(e){this.selectPageSizeComp&&!e&&this.reset(),e&&(this.reloadPageSizesSelector(),this.selectPageSizeComp)}reset(){_clearElement(this.getGui()),this.selectPageSizeComp&&(this.selectPageSizeComp=this.destroyBean(this.selectPageSizeComp))}onPageSizeSelectorValuesChange(){this.selectPageSizeComp&&this.shouldShowPageSizeSelector()&&this.reloadPageSizesSelector()}shouldShowPageSizeSelector(){return this.gos.get("pagination")&&!this.gos.get("suppressPaginationPanel")&&!this.gos.get("paginationAutoPageSize")&&!1!==this.gos.get(Ta)}reloadPageSizesSelector(){const e=this.getPageSizeSelectorValues(),t=this.pagination.getPageSize(),o=!t||!e.includes(t);if(o){const o=this.gos.exists("paginationPageSize"),i=!0!==this.gos.get(Ta);_warn(94,{pageSizeSet:o,pageSizesSet:i,pageSizeOptions:e,paginationPageSizeOption:t}),i||_warn(95,{paginationPageSizeOption:t,paginationPageSizeSelector:Ta}),e.unshift("")}const i=String(o?"":t);this.selectPageSizeComp?(_areEqual(this.pageSizeOptions,e)||(this.selectPageSizeComp.clearOptions().addOptions(this.createPageSizeSelectOptions(e)),this.pageSizeOptions=e),this.selectPageSizeComp.setValue(i,!0)):this.createPageSizeSelectorComp(e,i),this.hasEmptyOption=o}createPageSizeSelectOptions(e){return e.map((e=>({value:String(e)})))}createPageSizeSelectorComp(e,t){const o=this.getLocaleTextFunc(),i=o("pageSizeSelectorLabel","Page Size:"),s=o("ariaPageSizeSelectorLabel","Page Size");this.selectPageSizeComp=this.createManagedBean(new $o).addOptions(this.createPageSizeSelectOptions(e)).setValue(t).setAriaLabel(s).setLabel(i).onValueChange((()=>this.handlePageSizeItemSelected())),this.appendChild(this.selectPageSizeComp)}getPageSizeSelectorValues(){const e=[20,50,100],t=this.gos.get(Ta);return Array.isArray(t)&&t?.length?[...t].sort(((e,t)=>e-t)):e}destroy(){this.toggleSelectDisplay(!1),super.destroy()}}},ka={selector:"AG-PAGINATION",component:class extends Yo{constructor(){super(),this.btFirst=q,this.btPrevious=q,this.btNext=q,this.btLast=q,this.lbRecordCount=q,this.lbFirstRowOnPage=q,this.lbLastRowOnPage=q,this.lbCurrent=q,this.lbTotal=q,this.pageSizeComp=q,this.previousAndFirstButtonsDisabled=!1,this.nextButtonDisabled=!1,this.lastButtonDisabled=!1,this.areListenersSetup=!1,this.allowFocusInnerElement=!1,this.registerCSS(".ag-paging-panel{align-items:center;border-top:var(--ag-footer-row-border);display:flex;gap:calc(var(--ag-spacing)*4);height:var(--ag-pagination-panel-height);justify-content:flex-end;padding:0 var(--ag-cell-horizontal-padding)}:where(.ag-paging-page-size) .ag-wrapper{min-width:50px}.ag-paging-page-summary-panel{align-items:center;display:flex;gap:var(--ag-cell-widget-spacing);.ag-disabled &{pointer-events:none}}.ag-paging-button{cursor:pointer;position:relative;&.ag-disabled{cursor:default;opacity:.5}}.ag-paging-number,.ag-paging-row-summary-panel-number{font-weight:500}")}wireBeans(e){this.rowModel=e.rowModel,this.pagination=e.pagination,this.ariaAnnounce=e.ariaAnnounce}postConstruct(){const e=this.gos.get("enableRtl");this.setTemplate(this.getTemplate(),[Ia]);const{btFirst:t,btPrevious:o,btNext:i,btLast:s}=this;this.activateTabIndex([t,o,i,s]),t.insertAdjacentElement("afterbegin",_createIconNoSpan(e?"last":"first",this.beans)),o.insertAdjacentElement("afterbegin",_createIconNoSpan(e?"next":"previous",this.beans)),i.insertAdjacentElement("afterbegin",_createIconNoSpan(e?"previous":"next",this.beans)),s.insertAdjacentElement("afterbegin",_createIconNoSpan(e?"first":"last",this.beans)),this.addManagedPropertyListener("pagination",this.onPaginationChanged.bind(this)),this.addManagedPropertyListener("suppressPaginationPanel",this.onPaginationChanged.bind(this)),this.addManagedPropertyListeners(["paginationPageSizeSelector","paginationAutoPageSize","suppressPaginationPanel"],(()=>this.onPageSizeRelatedOptionsChange())),this.pageSizeComp.toggleSelectDisplay(this.pageSizeComp.shouldShowPageSizeSelector()),this.initialiseTabGuard({onTabKeyDown:()=>{},focusInnerElement:e=>this.allowFocusInnerElement?this.tabGuardFeature.getTabGuardCtrl().focusInnerElement(e):function _focusGridInnerElement(e,t){return e.ctrlsSvc.get("gridCtrl").focusInnerElement(t)}(this.beans,e),forceFocusOutWhenTabGuardsAreEmpty:!0}),this.onPaginationChanged()}setAllowFocus(e){this.allowFocusInnerElement=e}onPaginationChanged(){const e=this.gos.get("pagination")&&!this.gos.get("suppressPaginationPanel");this.setDisplayed(e),e&&(this.setupListeners(),this.enableOrDisableButtons(),this.updateLabels(),this.onPageSizeRelatedOptionsChange())}onPageSizeRelatedOptionsChange(){this.pageSizeComp.toggleSelectDisplay(this.pageSizeComp.shouldShowPageSizeSelector())}setupListeners(){this.areListenersSetup||(this.addManagedEventListeners({paginationChanged:this.onPaginationChanged.bind(this)}),[{el:this.btFirst,fn:this.onBtFirst.bind(this)},{el:this.btPrevious,fn:this.onBtPrevious.bind(this)},{el:this.btNext,fn:this.onBtNext.bind(this)},{el:this.btLast,fn:this.onBtLast.bind(this)}].forEach((e=>{const{el:t,fn:o}=e;this.addManagedListeners(t,{click:o,keydown:e=>{e.key!==xe&&e.key!==Te||(e.preventDefault(),o())}})})),function _addFocusableContainerListener(e,t,o){t.addManagedElementListeners(o,{keydown:t=>{if(!t.defaultPrevented&&t.key===De){const i=t.shiftKey;_findNextFocusableElement(e,o,!1,i)||_focusNextGridCoreContainer(e,i)&&t.preventDefault()}}})}(this.beans,this,this.getGui()),this.areListenersSetup=!0)}onBtFirst(){this.previousAndFirstButtonsDisabled||this.pagination.goToFirstPage()}formatNumber(e){const t=this.gos.getCallback("paginationNumberFormatter");if(t){return t({value:e})}return function _formatNumberCommas(e,t){if("number"!=typeof e)return"";const o=t(),i=o("thousandSeparator",","),s=o("decimalSeparator",".");return e.toString().replace(".",s).replace(/(\d)(?=(\d{3})+(?!\d))/g,`$1${i}`)}(e,this.getLocaleTextFunc.bind(this))}getTemplate(){const e=this.getLocaleTextFunc(),t=`ag-${this.getCompId()}`;return{tag:"div",cls:"ag-paging-panel ag-unselectable",attrs:{id:`${t}`},children:[{tag:"ag-page-size-selector",ref:"pageSizeComp"},{tag:"span",cls:"ag-paging-row-summary-panel",children:[{tag:"span",ref:"lbFirstRowOnPage",cls:"ag-paging-row-summary-panel-number",attrs:{id:`${t}-first-row`}},{tag:"span",attrs:{id:`${t}-to`},children:e("to","to")},{tag:"span",ref:"lbLastRowOnPage",cls:"ag-paging-row-summary-panel-number",attrs:{id:`${t}-last-row`}},{tag:"span",attrs:{id:`${t}-of`},children:e("of","of")},{tag:"span",ref:"lbRecordCount",cls:"ag-paging-row-summary-panel-number",attrs:{id:`${t}-row-count`}}]},{tag:"span",cls:"ag-paging-page-summary-panel",role:"presentation",children:[{tag:"div",ref:"btFirst",cls:"ag-button ag-paging-button",role:"button",attrs:{"aria-label":e("firstPage","First Page")}},{tag:"div",ref:"btPrevious",cls:"ag-button ag-paging-button",role:"button",attrs:{"aria-label":e("previousPage","Previous Page")}},{tag:"span",cls:"ag-paging-description",children:[{tag:"span",attrs:{id:`${t}-start-page`},children:e("page","Page")},{tag:"span",ref:"lbCurrent",cls:"ag-paging-number",attrs:{id:`${t}-start-page-number`}},{tag:"span",attrs:{id:`${t}-of-page`},children:e("of","of")},{tag:"span",ref:"lbTotal",cls:"ag-paging-number",attrs:{id:`${t}-of-page-number`}}]},{tag:"div",ref:"btNext",cls:"ag-button ag-paging-button",role:"button",attrs:{"aria-label":e("nextPage","Next Page")}},{tag:"div",ref:"btLast",cls:"ag-button ag-paging-button",role:"button",attrs:{"aria-label":e("lastPage","Last Page")}}]}]}}onBtNext(){this.nextButtonDisabled||this.pagination.goToNextPage()}onBtPrevious(){this.previousAndFirstButtonsDisabled||this.pagination.goToPreviousPage()}onBtLast(){this.lastButtonDisabled||this.pagination.goToLastPage()}enableOrDisableButtons(){const e=this.pagination.getCurrentPage(),t=this.rowModel.isLastRowIndexKnown(),o=this.pagination.getTotalPages();this.previousAndFirstButtonsDisabled=0===e,this.toggleButtonDisabled(this.btFirst,this.previousAndFirstButtonsDisabled),this.toggleButtonDisabled(this.btPrevious,this.previousAndFirstButtonsDisabled);const i=this.isZeroPagesToDisplay(),s=e===o-1;this.nextButtonDisabled=s||i,this.lastButtonDisabled=!t||i||e===o-1,this.toggleButtonDisabled(this.btNext,this.nextButtonDisabled),this.toggleButtonDisabled(this.btLast,this.lastButtonDisabled)}toggleButtonDisabled(e,t){!function _setAriaDisabled(e,t){_toggleAriaAttribute(e,"disabled",t)}(e,t),e.classList.toggle("ag-disabled",t)}isZeroPagesToDisplay(){const e=this.rowModel.isLastRowIndexKnown(),t=this.pagination.getTotalPages();return e&&0===t}updateLabels(){const e=this.rowModel.isLastRowIndexKnown(),t=this.pagination.getTotalPages(),o=this.pagination.getMasterRowCount(),i=e?o:null,s=this.pagination.getCurrentPage(),n=this.pagination.getPageSize();let r,a;this.isZeroPagesToDisplay()?r=a=0:(r=n*s+1,a=r+n-1,e&&a>i&&(a=i));const l=!e&&o<r+n-1,d=this.formatNumber(r);let c;this.lbFirstRowOnPage.textContent=d;const h=this.getLocaleTextFunc();c=l?h("pageLastRowUnknown","?"):this.formatNumber(a),this.lbLastRowOnPage.textContent=c;const u=t>0?s+1:0,g=this.formatNumber(u);let p,m;if(this.lbCurrent.textContent=g,e)p=this.formatNumber(t),m=this.formatNumber(i);else{const e=h("more","more");p=e,m=e}this.lbTotal.textContent=p,this.lbRecordCount.textContent=m,this.announceAriaStatus(d,c,m,g,p)}announceAriaStatus(e,t,o,i,s){const n=this.getLocaleTextFunc(),r=n("page","Page"),a=n("to","to"),l=n("of","of"),d=`${e} ${a} ${t} ${l} ${o}`,c=`${r} ${i} ${l} ${s}`;d!==this.ariaRowStatus&&(this.ariaRowStatus=d,this.ariaAnnounce?.announceValue(d,"paginationRow")),c!==this.ariaPageStatus&&(this.ariaPageStatus=c,this.ariaAnnounce?.announceValue(c,"paginationPage"))}setTotalLabelsToZero(){const e=this.formatNumber(0);this.lbFirstRowOnPage.textContent=e,this.lbCurrent.textContent=e,this.lbLastRowOnPage.textContent=e,this.lbTotal.textContent=e,this.lbRecordCount.textContent=e,this.announceAriaStatus(e,e,e,e,e)}}},La={moduleName:"Pagination",version:R,beans:[class extends I{constructor(){super(...arguments),this.beanName="pagination",this.currentPage=0,this.topDisplayedRowIndex=0,this.bottomDisplayedRowIndex=0,this.masterRowCount=0}postConstruct(){const e=this.gos;this.active=e.get("pagination"),this.pageSizeFromGridOptions=e.get("paginationPageSize"),this.paginateChildRows=this.isPaginateChildRows(),this.addManagedPropertyListener("pagination",this.onPaginationGridOptionChanged.bind(this)),this.addManagedPropertyListener("paginationPageSize",this.onPageSizeGridOptionChanged.bind(this))}getPaginationSelector(){return ka}isPaginateChildRows(){const e=this.gos;return!!(e.get("groupHideParentOfSingleChild")||e.get("groupRemoveSingleChildren")||e.get("groupRemoveLowestSingleChildren"))||e.get("paginateChildRows")}onPaginationGridOptionChanged(){this.active=this.gos.get("pagination"),this.calculatePages(),this.dispatchPaginationChangedEvent({keepRenderedRows:!0})}onPageSizeGridOptionChanged(){this.setPageSize(this.gos.get("paginationPageSize"),"gridOptions")}goToPage(e){const t=this.currentPage;if(!this.active||t===e||"number"!=typeof t)return;const{editSvc:o}=this.beans;o?.isEditing()&&(o.isBatchEditing()?o.cleanupEditors():o.stopEditing(void 0,{source:"api"})),this.currentPage=e,this.calculatePages(),this.dispatchPaginationChangedEvent({newPage:!0})}goToPageWithIndex(e){if(!this.active)return;let t=e;this.paginateChildRows||(t=this.beans.rowModel.getTopLevelIndexFromDisplayedIndex?.(e)??e),this.goToPage(Math.floor(t/this.pageSize))}isRowInPage(e){return!this.active||e>=this.topDisplayedRowIndex&&e<=this.bottomDisplayedRowIndex}getCurrentPage(){return this.currentPage}goToNextPage(){this.goToPage(this.currentPage+1)}goToPreviousPage(){this.goToPage(this.currentPage-1)}goToFirstPage(){this.goToPage(0)}goToLastPage(){const e=this.beans.rowModel.getRowCount(),t=Math.floor(e/this.pageSize);this.goToPage(t)}getPageSize(){return this.pageSize}getTotalPages(){return this.totalPages}setPage(e){this.currentPage=e}get pageSize(){return _exists(this.pageSizeAutoCalculated)&&this.gos.get("paginationAutoPageSize")?this.pageSizeAutoCalculated:_exists(this.pageSizeFromPageSizeSelector)?this.pageSizeFromPageSizeSelector:_exists(this.pageSizeFromInitialState)?this.pageSizeFromInitialState:_exists(this.pageSizeFromGridOptions)?this.pageSizeFromGridOptions:this.defaultPageSize}calculatePages(){this.active?this.paginateChildRows?this.calculatePagesAllRows():this.calculatePagesMasterRowsOnly():this.calculatedPagesNotActive(),this.beans.pageBounds.calculateBounds(this.topDisplayedRowIndex,this.bottomDisplayedRowIndex)}unsetAutoCalculatedPageSize(){if(void 0===this.pageSizeAutoCalculated)return;const e=this.pageSizeAutoCalculated;this.pageSizeAutoCalculated=void 0,this.pageSize!==e&&(this.calculatePages(),this.dispatchPaginationChangedEvent({newPageSize:!0}))}setPageSize(e,t){const o=this.pageSize;switch(t){case"autoCalculated":this.pageSizeAutoCalculated=e;break;case"pageSizeSelector":this.pageSizeFromPageSizeSelector=e,0!==this.currentPage&&this.goToFirstPage();break;case"initialState":this.pageSizeFromInitialState=e;break;case"gridOptions":this.pageSizeFromGridOptions=e,this.pageSizeFromInitialState=void 0,this.pageSizeFromPageSizeSelector=void 0,0!==this.currentPage&&this.goToFirstPage()}o!==this.pageSize&&(this.calculatePages(),this.dispatchPaginationChangedEvent({newPageSize:!0,keepRenderedRows:!0}))}setZeroRows(){this.masterRowCount=0,this.topDisplayedRowIndex=0,this.bottomDisplayedRowIndex=-1,this.currentPage=0,this.totalPages=0}adjustCurrentPageIfInvalid(){const e=this.totalPages;this.currentPage>=e&&(this.currentPage=e-1);const t=this.currentPage;(!isFinite(t)||isNaN(t)||t<0)&&(this.currentPage=0)}calculatePagesMasterRowsOnly(){const e=this.beans.rowModel,t=e.getTopLevelRowCount();if(this.masterRowCount=t,t<=0)return void this.setZeroRows();const o=this.pageSize,i=t-1;this.totalPages=Math.floor(i/o)+1,this.adjustCurrentPageIfInvalid();const s=this.currentPage,n=o*s;let r=o*(s+1)-1;if(r>i&&(r=i),this.topDisplayedRowIndex=e.getTopLevelRowDisplayedIndex(n),r===i)this.bottomDisplayedRowIndex=e.getRowCount()-1;else{const t=e.getTopLevelRowDisplayedIndex(r+1);this.bottomDisplayedRowIndex=t-1}}getMasterRowCount(){return this.masterRowCount}calculatePagesAllRows(){const e=this.beans.rowModel.getRowCount();if(this.masterRowCount=e,0===e)return void this.setZeroRows();const{pageSize:t,currentPage:o}=this,i=e-1;this.totalPages=Math.floor(i/t)+1,this.adjustCurrentPageIfInvalid(),this.topDisplayedRowIndex=t*o,this.bottomDisplayedRowIndex=t*(o+1)-1,this.bottomDisplayedRowIndex>i&&(this.bottomDisplayedRowIndex=i)}calculatedPagesNotActive(){this.setPageSize(void 0,"autoCalculated"),this.totalPages=1,this.currentPage=0,this.topDisplayedRowIndex=0,this.bottomDisplayedRowIndex=this.beans.rowModel.getRowCount()-1}dispatchPaginationChangedEvent(e){const{keepRenderedRows:t=!1,newPage:o=!1,newPageSize:i=!1}=e;this.eventSvc.dispatchEvent({type:"paginationChanged",animate:!1,newData:!1,newPage:o,newPageSize:i,keepRenderedRows:t})}},class extends I{constructor(){super(...arguments),this.beanName="paginationAutoPageSizeSvc"}postConstruct(){this.beans.ctrlsSvc.whenReady(this,(e=>{this.centerRowsCtrl=e.center;const t=this.checkPageSize.bind(this);this.addManagedEventListeners({bodyHeightChanged:t,scrollVisibilityChanged:t}),this.addManagedPropertyListener("paginationAutoPageSize",this.onPaginationAutoSizeChanged.bind(this)),this.checkPageSize()}))}notActive(){return!this.gos.get("paginationAutoPageSize")||null==this.centerRowsCtrl}onPaginationAutoSizeChanged(){this.notActive()?this.beans.pagination.unsetAutoCalculatedPageSize():this.checkPageSize()}checkPageSize(){if(this.notActive())return;const e=this.centerRowsCtrl.viewportSizeFeature.getBodyHeight();if(e>0){const t=this.beans,update=()=>{const o=Math.max(_getRowHeightAsNumber(t),1),i=Math.floor(e/o);t.pagination.setPageSize(i,"autoCalculated")};this.isBodyRendered?_debounce(this,update,50)():(update(),this.isBodyRendered=!0)}else this.isBodyRendered=!1}}],icons:{first:"first",previous:"previous",next:"next",last:"last"},apiFunctions:{paginationIsLastPageFound:function paginationIsLastPageFound(e){return e.rowModel.isLastRowIndexKnown()},paginationGetPageSize:function paginationGetPageSize(e){return e.pagination?.getPageSize()??100},paginationGetCurrentPage:function paginationGetCurrentPage(e){return e.pagination?.getCurrentPage()??0},paginationGetTotalPages:function paginationGetTotalPages(e){return e.pagination?.getTotalPages()??1},paginationGetRowCount:function paginationGetRowCount(e){return e.pagination?e.pagination.getMasterRowCount():e.rowModel.getRowCount()},paginationGoToNextPage:function paginationGoToNextPage(e){e.pagination?.goToNextPage()},paginationGoToPreviousPage:function paginationGoToPreviousPage(e){e.pagination?.goToPreviousPage()},paginationGoToFirstPage:function paginationGoToFirstPage(e){e.pagination?.goToFirstPage()},paginationGoToLastPage:function paginationGoToLastPage(e){e.pagination?.goToLastPage()},paginationGoToPage:function paginationGoToPage(e,t){e.pagination?.goToPage(t)}},dependsOn:[Jn]};var Ga={moduleName:"RowApi",version:R,apiFunctions:{redrawRows:function redrawRows(e,t={}){const o=t?t.rowNodes:void 0;e.frameworkOverrides.wrapIncoming((()=>e.rowRenderer.redrawRows(o)))},setRowNodeExpanded:function setRowNodeExpanded(e,t,o,i,s){t&&(i&&t.parent&&-1!==t.parent.level&&setRowNodeExpanded(e,t.parent,o,i,s),t.setExpanded(o,void 0,s))},getRowNode:function getRowNode(e,t){return e.rowModel.getRowNode(t)},addRenderedRowListener:function addRenderedRowListener(e,t,o,i){e.rowRenderer.addRenderedRowListener(t,o,i)},getRenderedNodes:function getRenderedNodes(e){return e.rowRenderer.getRenderedNodes()},forEachNode:function forEachNode(e,t,o){e.rowModel.forEachNode(t,o)},getFirstDisplayedRowIndex:function getFirstDisplayedRowIndex(e){return e.rowRenderer.firstRenderedRow},getLastDisplayedRowIndex:function getLastDisplayedRowIndex(e){return e.rowRenderer.lastRenderedRow},getDisplayedRowAtIndex:function getDisplayedRowAtIndex(e,t){return e.rowModel.getRow(t)},getDisplayedRowCount:function getDisplayedRowCount(e){return e.rowModel.getRowCount()}}},Na={moduleName:"ScrollApi",version:R,apiFunctions:{getVerticalPixelRange:function getVerticalPixelRange(e){return e.ctrlsSvc.getScrollFeature().getVScrollPosition()},getHorizontalPixelRange:function getHorizontalPixelRange(e){return e.ctrlsSvc.getScrollFeature().getHScrollPosition()},ensureColumnVisible,ensureIndexVisible,ensureNodeVisible:function ensureNodeVisible(e,t,o=null){e.frameworkOverrides.wrapIncoming((()=>e.ctrlsSvc.getScrollFeature().ensureNodeVisible(t,o)),"ensureVisible")}}};var _a={moduleName:"RenderApi",version:R,apiFunctions:{setGridAriaProperty:function setGridAriaProperty(e,t,o){if(!t)return;const i=e.ctrlsSvc.getGridBodyCtrl().eGridBody,s=`aria-${t}`;null===o?i.removeAttribute(s):i.setAttribute(s,o)},refreshCells:function refreshCells(e,t={}){e.frameworkOverrides.wrapIncoming((()=>e.rowRenderer.refreshCells(t)))},refreshHeader:function refreshHeader(e){e.frameworkOverrides.wrapIncoming((()=>e.ctrlsSvc.getHeaderRowContainerCtrls().forEach((e=>e.refresh()))))},isAnimationFrameQueueEmpty:function isAnimationFrameQueueEmpty(e){return e.animationFrameSvc?.isQueueEmpty()??!0},flushAllAnimationFrames:function flushAllAnimationFrames(e){e.animationFrameSvc?.flushAllFrames()},getSizesForCurrentTheme:function getSizesForCurrentTheme(e){return{rowHeight:_getRowHeightAsNumber(e),headerHeight:getHeaderHeight(e)}},getCellRendererInstances:function getCellRendererInstances(e,t={}){const o=[];if(e.rowRenderer.getCellCtrls(t.rowNodes,t.columns).forEach((e=>{const t=e.getCellRenderer();null!=t&&o.push(_unwrapUserComp(t))})),t.columns?.length)return o;const i=[],s=mapRowNodes(t.rowNodes);return e.rowRenderer.getAllRowCtrls().forEach((e=>{if(s&&!isRowInMap(e.rowNode,s))return;if(!e.isFullWidth())return;const t=e.getFullWidthCellRenderers();for(let e=0;e<t.length;e++){const o=t[e];null!=o&&i.push(_unwrapUserComp(o))}})),[...i,...o]}}};function autoSizeColumns({colAutosize:e,visibleCols:t},o,i){Array.isArray(o)?e?.autoSizeCols({colKeys:o,skipHeader:i,source:"api"}):e?.autoSizeCols({colKeys:o.colIds??t.allCols,skipHeader:o.skipHeader,defaultMaxWidth:o.defaultMaxWidth,defaultMinWidth:o.defaultMinWidth,columnLimits:o.columnLimits,source:"api"})}function normaliseColumnWidth(e,t,o={}){const i=o.minWidth??e.getMinWidth();t<i&&(t=i);const s=o.maxWidth??e.getMaxWidth();return t>s&&(t=s),t}var Oa={moduleName:"ColumnAutoSize",version:R,beans:[class extends I{constructor(){super(...arguments),this.beanName="colAutosize",this.timesDelayed=0,this.shouldQueueResizeOperations=!1,this.resizeOperationQueue=[]}postConstruct(){this.addManagedEventListeners({firstDataRendered:()=>this.onFirstDataRendered()})}autoSizeCols(e){if(this.shouldQueueResizeOperations)return void this.pushResizeOperation((()=>this.autoSizeCols(e)));const{colKeys:t,skipHeader:o,skipHeaderGroups:i,stopAtGroup:s,defaultMaxWidth:n,defaultMinWidth:r,columnLimits:a=[],source:l="api"}=e,{animationFrameSvc:d,renderStatus:c,colModel:h,autoWidthCalc:u,visibleCols:g}=this.beans;if(d?.flushAllFrames(),this.timesDelayed<5&&c&&!c.areHeaderCellsRendered())return this.timesDelayed++,void setTimeout((()=>{this.isAlive()&&this.autoSizeCols(e)}));this.timesDelayed=0;const p=[];let m=-1;const f=Object.fromEntries(a.map((({colId:e,maxWidth:t,minWidth:o})=>[e,{maxWidth:t,minWidth:o}]))),C=null!=o?o:this.gos.get("skipHeaderOnAutoSize"),w=null!=i?i:C;for(;0!==m;){m=0;const e=[];t.forEach((t=>{if(!t||isColumnSelectionCol(t))return;const o=h.getCol(t);if(!o||isRowNumberCol(o))return;if(p.indexOf(o)>=0)return;const i=u.getPreferredWidthForColumn(o,C);if(i>0){const e=f[o.colId]??{};e.minWidth??(e.minWidth=r),e.maxWidth??(e.maxWidth=n);const t=normaliseColumnWidth(o,i,e);o.setActualWidth(t,l),p.push(o),m++}e.push(o)})),e.length&&g.refresh(l)}w||this.autoSizeColumnGroupsByColumns(t,l,s),dispatchColumnResizedEvent(this.eventSvc,p,!0,"autosizeColumns")}autoSizeColumn(e,t,o){e&&this.autoSizeCols({colKeys:[e],skipHeader:o,skipHeaderGroups:!0,source:t})}autoSizeColumnGroupsByColumns(e,t,o){const{colModel:i,ctrlsSvc:s}=this.beans,n=new Set;let r;i.getColsForKeys(e).forEach((e=>{let t=e.getParent();for(;t&&t!=o;)t.isPadding()||n.add(t),t=t.getParent()}));for(const e of n){for(const t of s.getHeaderRowContainerCtrls())if(r=t.getHeaderCtrlForColumn(e),r)break;r&&r.resizeLeafColumnsToFit(t)}return[]}autoSizeAllColumns(e){if(this.shouldQueueResizeOperations)return void this.pushResizeOperation((()=>this.autoSizeAllColumns(e)));const t=this.beans.visibleCols.allCols;this.autoSizeCols({colKeys:t,...e})}addColumnAutosize(e,t){const o=this.gos.get("skipHeaderOnAutoSize"),autoSizeColListener=()=>{this.autoSizeColumn(t,"uiColumnResized",o)};e.addEventListener("dblclick",autoSizeColListener);const i=new Zo(e);return i.addEventListener("doubleTap",autoSizeColListener),()=>{e.removeEventListener("dblclick",autoSizeColListener),i.removeEventListener("doubleTap",autoSizeColListener),i.destroy()}}addColumnGroupResize(e,t,o){const i=this.gos.get("skipHeaderOnAutoSize"),listener=()=>{const e=[];t.getDisplayedLeafColumns().forEach((t=>{t.getColDef().suppressAutoSize||e.push(t.getColId())})),e.length>0&&this.autoSizeCols({colKeys:e,skipHeader:i,stopAtGroup:t,source:"uiColumnResized"}),o()};return e.addEventListener("dblclick",listener),()=>e.removeEventListener("dblclick",listener)}sizeColumnsToFitGridBody(e,t){if(!this.isAlive())return;const{ctrlsSvc:o,scrollVisibleSvc:i}=this.beans,s=o.getGridBodyCtrl(),n=s.isVerticalScrollShowing()?i.getScrollbarWidth():0,r=_getInnerWidth(s.eGridBody)-n;r>0?this.sizeColumnsToFit(r,"sizeColumnsToFit",!1,e):void 0===t?window.setTimeout((()=>{this.sizeColumnsToFitGridBody(e,100)}),0):100===t?window.setTimeout((()=>{this.sizeColumnsToFitGridBody(e,500)}),100):500===t?window.setTimeout((()=>{this.sizeColumnsToFitGridBody(e,-1)}),500):_warn(29)}sizeColumnsToFit(e,t="sizeColumnsToFit",o,i){if(this.shouldQueueResizeOperations)return void this.pushResizeOperation((()=>this.sizeColumnsToFit(e,t,o,i)));const s={};i&&i?.columnLimits?.forEach((({key:e,...t})=>{s["string"==typeof e?e:e.getColId()]=t}));const n=this.beans.visibleCols.allCols;if(e<=0||!n.length)return;if(e===getWidthOfColsInList(n)){if(n.every((e=>{if(e.colDef.suppressSizeToFit)return!0;const t=s?.[e.getId()],o=t?.minWidth??i?.defaultMinWidth,n=t?.maxWidth??i?.defaultMaxWidth,r=e.getActualWidth();return(null==o||r>=o)&&(null==n||r<=n)})))return}const r=[],a=[];n.forEach((e=>{!0===e.getColDef().suppressSizeToFit?a.push(e):r.push(e)}));const l=r.slice(0);let d=!1;const moveToNotSpread=e=>{_removeFromArray(r,e),a.push(e)};for(r.forEach((e=>{e.resetActualWidth(t);const o=s?.[e.getId()],n=o?.minWidth??i?.defaultMinWidth,r=o?.maxWidth??i?.defaultMaxWidth,a=e.getActualWidth();"number"==typeof n&&a<n?e.setActualWidth(n,t,!0):"number"==typeof r&&a>r&&e.setActualWidth(r,t,!0)}));!d;){d=!0;const o=e-getWidthOfColsInList(a);if(o<=0)r.forEach((e=>{const o=s?.[e.getId()]?.minWidth??i?.defaultMinWidth;"number"!=typeof o?e.setActualWidth(e.minWidth,t):e.setActualWidth(o,t,!0)}));else{const e=o/getWidthOfColsInList(r);let n=o;for(let o=r.length-1;o>=0;o--){const a=r[o],l=s?.[a.getId()],c=l?.minWidth??i?.defaultMinWidth,h=l?.maxWidth??i?.defaultMaxWidth,u=a.getMinWidth(),g=a.getMaxWidth(),p="number"==typeof c&&c>u?c:u,m="number"==typeof h&&h<g?h:g;let f=Math.round(a.getActualWidth()*e);f<p?(f=p,moveToNotSpread(a),d=!1):f>m?(f=m,moveToNotSpread(a),d=!1):0===o&&(f=n),a.setActualWidth(f,t,!0),n-=f}}}l.forEach((e=>{e.fireColumnWidthChangedEvent(t)}));const c=this.beans.visibleCols;c.setLeftValues(t),c.updateBodyWidths(),o||dispatchColumnResizedEvent(this.eventSvc,l,!0,t)}applyAutosizeStrategy(){const e=this.gos.get("autoSizeStrategy");if(!e)return;const{type:t}=e;setTimeout((()=>{if("fitGridWidth"===t){const{columnLimits:t,defaultMinWidth:o,defaultMaxWidth:i}=e,s=t?.map((({colId:e,minWidth:t,maxWidth:o})=>({key:e,minWidth:t,maxWidth:o})));this.sizeColumnsToFitGridBody({defaultMinWidth:o,defaultMaxWidth:i,columnLimits:s})}else"fitProvidedWidth"===t&&this.sizeColumnsToFit(e.width,"sizeColumnsToFit")}))}onFirstDataRendered(){const e=this.gos.get("autoSizeStrategy");if("fitCellContents"!==e?.type)return;const{colIds:t,skipHeader:o,defaultMaxWidth:i,defaultMinWidth:s,columnLimits:n}=e;setTimeout((()=>{const e={skipHeader:o,source:"autosizeColumns",defaultMaxWidth:i,defaultMinWidth:s,columnLimits:n};t?this.autoSizeCols({colKeys:t,...e}):this.autoSizeAllColumns(e)}))}processResizeOperations(){this.shouldQueueResizeOperations=!1,this.resizeOperationQueue.forEach((e=>e())),this.resizeOperationQueue=[]}pushResizeOperation(e){this.resizeOperationQueue.push(e)}destroy(){this.resizeOperationQueue.length=0,super.destroy()}}],apiFunctions:{sizeColumnsToFit:function sizeColumnsToFit(e,t){"number"==typeof t?e.colAutosize?.sizeColumnsToFit(t,"api"):e.colAutosize?.sizeColumnsToFitGridBody(t)},autoSizeColumns,autoSizeAllColumns:function autoSizeAllColumns(e,t){t&&"object"==typeof t?autoSizeColumns(e,t):e.colAutosize?.autoSizeAllColumns({source:"api",skipHeader:t})}},dependsOn:[Si]};var Ha={moduleName:"PinnedRow",version:R,beans:[class extends I{constructor(){super(...arguments),this.beanName="pinnedRowModel"}postConstruct(){const{gos:e}=this,initialiseRowModel=()=>{const t=e.get("enableRowPinning"),o=_getGrandTotalRow(e),i=!!t||("pinnedBottom"===o||"pinnedTop"===o),s=i?this.inner instanceof Mo:this.inner instanceof xo;this.inner&&s&&this.destroyBean(this.inner),!s&&this.inner||(this.inner=this.createManagedBean(i?new xo:new Mo))};this.addManagedPropertyListeners(["enableRowPinning","grandTotalRow"],initialiseRowModel),initialiseRowModel()}reset(){return this.inner.reset()}isEmpty(e){return this.inner.isEmpty(e)}isManual(){return this.inner.isManual()}isRowsToRender(e){return this.inner.isRowsToRender(e)}pinRow(e,t,o){return this.inner.pinRow(e,t,o)}ensureRowHeightsValid(){return this.inner.ensureRowHeightsValid()}getPinnedRowById(e,t){return this.inner.getPinnedRowById(e,t)}getPinnedTopTotalHeight(){return this.inner.getPinnedTopTotalHeight()}getPinnedBottomTotalHeight(){return this.inner.getPinnedBottomTotalHeight()}getPinnedTopRowCount(){return this.inner.getPinnedTopRowCount()}getPinnedBottomRowCount(){return this.inner.getPinnedBottomRowCount()}getPinnedTopRow(e){return this.inner.getPinnedTopRow(e)}getPinnedBottomRow(e){return this.inner.getPinnedBottomRow(e)}forEachPinnedRow(e,t){return this.inner.forEachPinnedRow(e,t)}getPinnedState(){return this.inner.getPinnedState()}setPinnedState(e){return this.inner.setPinnedState(e)}setGrandTotalPinned(e){return this.inner.setGrandTotalPinned(e)}getGrandTotalPinned(){return this.inner.getGrandTotalPinned()}}],css:[".ag-row-pinned-source{background-color:var(--ag-pinned-source-row-background-color);color:var(--ag-pinned-source-row-text-color);font-weight:var(--ag-pinned-source-row-font-weight)}.ag-row-pinned-manual{background-color:var(--ag-pinned-row-background-color);color:var(--ag-pinned-row-text-color);font-weight:var(--ag-pinned-row-font-weight)}"],apiFunctions:{getPinnedTopRowCount:function getPinnedTopRowCount(e){return e.pinnedRowModel?.getPinnedTopRowCount()??0},getPinnedBottomRowCount:function getPinnedBottomRowCount(e){return e.pinnedRowModel?.getPinnedBottomRowCount()??0},getPinnedTopRow:function getPinnedTopRow(e,t){return e.pinnedRowModel?.getPinnedTopRow(t)},getPinnedBottomRow:function getPinnedBottomRow(e,t){return e.pinnedRowModel?.getPinnedBottomRow(t)},forEachPinnedRow:function forEachPinnedRow(e,t,o){return e.pinnedRowModel?.forEachPinnedRow(t,o)}},icons:{rowPin:"pin",rowPinTop:"pinned-top",rowPinBottom:"pinned-bottom",rowUnpin:"un-pin"}},Va=class extends tt{constructor(e,t,o){super(e.col,e.firstNode,o,t),this.cellSpan=e,this.SPANNED_CELL_CSS_CLASS="ag-spanned-cell"}setComp(e,t,o,i,s,n,r){this.eWrapper=o,super.setComp(e,t,o,i,s,n,r),this.setAriaRowSpan(),this.refreshAriaRowIndex()}isCellSpanning(){return!0}getCellSpan(){return this.cellSpan}refreshAriaRowIndex(){null!=this.rowNode.rowIndex&&_setAriaRowIndex(this.eGui,this.rowNode.rowIndex)}setAriaRowSpan(){!function _setAriaRowSpan(e,t){_setAriaAttribute(e,"rowspan",t)}(this.eGui,this.cellSpan.spannedNodes.size)}setFocusedCellPosition(e){this.focusedCellPosition=e}getFocusedCellPosition(){return this.focusedCellPosition??this.cellPosition}checkCellFocused(){const e=this.beans.focusSvc.getFocusedCell();return!!e&&this.cellSpan.doesSpanContain(e)}applyStaticCssClasses(){super.applyStaticCssClasses(),this.comp.toggleCss(this.SPANNED_CELL_CSS_CLASS,!0)}onCellFocused(e){const{beans:t}=this;if(_isCellFocusSuppressed(t))return void(this.focusedCellPosition=void 0);const o=this.isCellFocused();o||(this.focusedCellPosition=void 0),e&&o&&(this.focusedCellPosition={rowIndex:e.rowIndex,rowPinned:e.rowPinned,column:e.column}),super.onCellFocused(e)}getRootElement(){return this.eWrapper}},Ba=class extends Ht{onRowIndexChanged(){super.onRowIndexChanged(),this.getAllCellCtrls().forEach((e=>e.refreshAriaRowIndex()))}getInitialRowClasses(e){return["ag-spanned-row"]}getNewCellCtrl(e){const t=this.beans.rowSpanSvc?.getCellSpan(e,this.rowNode);if(!t)return;return t.firstNode!==this.rowNode?void 0:new Va(t,this,this.beans)}isCorrectCtrlForSpan(e){const t=this.beans.rowSpanSvc?.getCellSpan(e.column,this.rowNode);if(!t)return!1;return!(t.firstNode!==this.rowNode)&&e.getCellSpan()===t}onRowHeightChanged(){}refreshFirstAndLastRowStyles(){}addHoverFunctionality(){}resetHoveredStatus(){}},_normalisePinnedValue=e=>e??"center",za=class extends I{constructor(e){super(),this.column=e}buildCache(e){const{column:t,beans:{gos:o,pinnedRowModel:i,rowModel:s,valueSvc:n,pagination:r}}=this,{colDef:a}=t,l=this[`${e}ValueNodeMap`],d=new Map,c=o.getCallback("isFullWidthRow"),h=a.equals,u=a.spanRows,g="function"==typeof u;let p,m=null,f=null;const setNewHead=(e,t)=>{m=e,f=null,p=t},checkNodeForCache=e=>{const i=!(e.isExpandable()||e.group||e.detail||c&&c({rowNode:e}));if(null==e.rowIndex||!i)return void setNewHead(null,null);if(null==m||e.level!==m.level||e.footer||f&&e.rowIndex-1!==f?.getLastNode().rowIndex)return void setNewHead(e,n.getValue(t,e));const s=n.getValue(t,e);if(g){const i=_addGridCommonParams(o,{valueA:p,nodeA:m,valueB:s,nodeB:e,column:t,colDef:a});if(!u(i))return void setNewHead(e,s)}else if(h?!h(p,s):p!==s)return void setNewHead(e,s);if(!f){const e=l?.get(m);e?.firstNode===m?(e.reset(),f=e):f=new class{constructor(e,t){this.col=e,this.firstNode=t,this.cellSpan=!0,this.spannedNodes=new Set,this.addSpannedNode(t)}reset(){this.spannedNodes.clear(),this.addSpannedNode(this.firstNode)}addSpannedNode(e){this.spannedNodes.add(e),this.lastNode=e}getLastNode(){return this.lastNode}getCellHeight(){return this.lastNode.rowTop+this.lastNode.rowHeight-this.firstNode.rowTop-1}doesSpanContain(e){return e.column===this.col&&e.rowPinned==this.firstNode.rowPinned&&this.firstNode.rowIndex<=e.rowIndex&&e.rowIndex<=this.lastNode.rowIndex}getLastNodeAutoHeight(){const e=this.firstNode.__autoHeights?.[this.col.getColId()];if(null==e)return;let t=0;return this.spannedNodes.forEach((e=>{e!==this.lastNode&&(t+=e.rowHeight)})),e-t}}(t,m),d.set(m,f)}f.addSpannedNode(e),d.set(e,f)};switch(e){case"center":s.forEachDisplayedNode?.((e=>{(!r||r.isRowInPage(e.rowIndex))&&checkNodeForCache(e)}));break;case"top":i?.forEachPinnedRow("top",checkNodeForCache);break;case"bottom":i?.forEachPinnedRow("bottom",checkNodeForCache)}this[`${e}ValueNodeMap`]=d}isCellSpanning(e){return!!this.getCellSpan(e)}getCellSpan(e){return this[`${_normalisePinnedValue(e.rowPinned)}ValueNodeMap`].get(e)}},Wa={moduleName:"CellSpan",version:R,beans:[class extends I{constructor(){super(...arguments),this.beanName="rowSpanSvc",this.spanningColumns=new Map,this.debouncePinnedEvent=_debounce(this,this.dispatchCellsUpdatedEvent.bind(this,!0),0),this.debounceModelEvent=_debounce(this,this.dispatchCellsUpdatedEvent.bind(this,!1),0),this.pinnedTimeout=null,this.modelTimeout=null}postConstruct(){const e=this.onRowDataUpdated.bind(this),t=this.buildPinnedCaches.bind(this);this.addManagedEventListeners({paginationChanged:this.buildModelCaches.bind(this),pinnedRowDataChanged:t,pinnedRowsChanged:t,rowNodeDataChanged:e,cellValueChanged:e})}register(e){const{gos:t}=this.beans;if(!t.get("enableCellSpan"))return;if(this.spanningColumns.has(e))return;const o=this.createManagedBean(new za(e));this.spanningColumns.set(e,o),o.buildCache("top"),o.buildCache("bottom"),o.buildCache("center"),this.debouncePinnedEvent(),this.debounceModelEvent()}dispatchCellsUpdatedEvent(e){this.dispatchLocalEvent({type:"spannedCellsUpdated",pinned:e})}deregister(e){this.spanningColumns.delete(e)}onRowDataUpdated({node:e}){const{spannedRowRenderer:t}=this.beans;if(e.rowPinned){if(null!=this.pinnedTimeout)return;this.pinnedTimeout=window.setTimeout((()=>{this.pinnedTimeout=null,this.buildPinnedCaches(),t?.createCtrls("top"),t?.createCtrls("bottom")}),0)}else null==this.modelTimeout&&(this.modelTimeout=window.setTimeout((()=>{this.modelTimeout=null,this.buildModelCaches(),t?.createCtrls("center")}),0))}buildModelCaches(){null!=this.modelTimeout&&clearTimeout(this.modelTimeout),this.spanningColumns.forEach((e=>e.buildCache("center"))),this.debounceModelEvent()}buildPinnedCaches(){null!=this.pinnedTimeout&&clearTimeout(this.pinnedTimeout),this.spanningColumns.forEach((e=>{e.buildCache("top"),e.buildCache("bottom")})),this.debouncePinnedEvent()}isCellSpanning(e,t){const o=this.spanningColumns.get(e);return!!o&&o.isCellSpanning(t)}getCellSpanByPosition(e){const{pinnedRowModel:t,rowModel:o}=this.beans,i=e.column,s=e.rowIndex,n=this.spanningColumns.get(i);if(!n)return;let r;switch(e.rowPinned){case"top":r=t?.getPinnedTopRow(s);break;case"bottom":r=t?.getPinnedBottomRow(s);break;default:r=o.getRow(s)}return r?n.getCellSpan(r):void 0}getCellStart(e){const t=this.getCellSpanByPosition(e);return t?{...e,rowIndex:t.firstNode.rowIndex}:e}getCellEnd(e){const t=this.getCellSpanByPosition(e);return t?{...e,rowIndex:t.getLastNode().rowIndex}:e}getCellSpan(e,t){const o=this.spanningColumns.get(e);if(o)return o.getCellSpan(t)}forEachSpannedColumn(e,t){for(const[o,i]of this.spanningColumns)if(i.isCellSpanning(e)){t(o,i.getCellSpan(e))}}destroy(){super.destroy(),this.spanningColumns.clear()}},class extends I{constructor(){super(...arguments),this.beanName="spannedRowRenderer",this.topCtrls=new Map,this.bottomCtrls=new Map,this.centerCtrls=new Map}postConstruct(){this.addManagedEventListeners({displayedRowsChanged:this.createAllCtrls.bind(this)})}createAllCtrls(){this.createCtrls("top"),this.createCtrls("bottom"),this.createCtrls("center")}createCtrls(e){const{rowSpanSvc:t}=this.beans,o=`${e}Ctrls`,i=this[o],s=i.size,n=this.getAllRelevantRowControls(e),r=new Map;let a=!1;for(const e of n)e.isAlive()&&t?.forEachSpannedColumn(e.rowNode,((e,t)=>{if(r.has(t.firstNode))return;const o=i.get(t.firstNode);if(o)return r.set(t.firstNode,o),void i.delete(t.firstNode);a=!0;const s=new Ba(t.firstNode,this.beans,!1,!1,!1);r.set(t.firstNode,s)}));this[o]=r;const l=r.size===s;if(a||!l){for(const e of i.values())e.destroyFirstPass(!0),e.destroySecondPass();this.dispatchLocalEvent({type:"spannedRowsUpdated",ctrlsKey:e})}}getAllRelevantRowControls(e){const{rowRenderer:t}=this.beans;switch(e){case"top":return t.topRowCtrls;case"bottom":return t.bottomRowCtrls;case"center":return t.allRowCtrls}}getCellByPosition(e){const{rowSpanSvc:t}=this.beans,o=t?.getCellSpanByPosition(e);if(!o)return;const i=this[`${_normalisePinnedValue(e.rowPinned)}Ctrls`].get(o.firstNode);return i?i.getAllCellCtrls().find((t=>t.column===e.column)):void 0}getCtrls(e){return[...this[`${e}Ctrls`].values()]}destroyRowCtrls(e){const t=`${e}Ctrls`;for(const e of this[t].values())e.destroyFirstPass(!0),e.destroySecondPass();this[t]=new Map}destroy(){super.destroy(),this.destroyRowCtrls("top"),this.destroyRowCtrls("bottom"),this.destroyRowCtrls("center")}}]},Ua=class extends I{constructor(e,t){super(),this.cellCtrl=e,this.staticClasses=[],this.beans=t,this.column=e.column}setComp(e){this.cellComp=e,this.applyUserStyles(),this.applyCellClassRules(),this.applyClassesFromColDef()}applyCellClassRules(){const{column:e,cellComp:t}=this,o=e.colDef,i=o.cellClassRules,s=this.getCellClassParams(e,o);processClassRules(this.beans.expressionSvc,i===this.cellClassRules?void 0:this.cellClassRules,i,s,(e=>t.toggleCss(e,!0)),(e=>t.toggleCss(e,!1))),this.cellClassRules=i}applyUserStyles(){const e=this.column,t=e.colDef,o=t.cellStyle;if(!o)return;let i;if("function"==typeof o){i=o(this.getCellClassParams(e,t))}else i=o;i&&this.cellComp.setUserStyles(i)}applyClassesFromColDef(){const{column:e,cellComp:t}=this,o=e.colDef,i=this.getCellClassParams(e,o);this.staticClasses.forEach((e=>t.toggleCss(e,!1)));const s=this.beans.cellStyles.getStaticCellClasses(o,i);this.staticClasses=s,s.forEach((e=>t.toggleCss(e,!0)))}getCellClassParams(e,t){const{value:o,rowNode:i}=this.cellCtrl;return _addGridCommonParams(this.beans.gos,{value:o,data:i.data,node:i,colDef:t,column:e,rowIndex:i.rowIndex})}},$a={moduleName:"CellStyle",version:R,beans:[class extends I{constructor(){super(...arguments),this.beanName="cellStyles"}processAllCellClasses(e,t,o,i){processClassRules(this.beans.expressionSvc,void 0,e.cellClassRules,t,o,i),this.processStaticCellClasses(e,t,o)}getStaticCellClasses(e,t){const{cellClass:o}=e;if(!o)return[];let i;if("function"==typeof o){i=o(t)}else i=o;return"string"==typeof i&&(i=[i]),i||[]}createCellCustomStyleFeature(e,t){return new Ua(e,t)}processStaticCellClasses(e,t,o){this.getStaticCellClasses(e,t).forEach((e=>{o(e)}))}}]},Ka={moduleName:"RowStyle",version:R,beans:[class extends I{constructor(){super(...arguments),this.beanName="rowStyleSvc"}processClassesFromGridOptions(e,t){const o=this.gos,process=t=>{"string"==typeof t?e.push(t):Array.isArray(t)&&t.forEach((t=>e.push(t)))},i=o.get("rowClass");i&&process(i);const s=o.getCallback("getRowClass");if(s){process(s({data:t.data,node:t,rowIndex:t.rowIndex}))}}preProcessRowClassRules(e,t){this.processRowClassRules(t,(t=>{e.push(t)}),(()=>{}))}processRowClassRules(e,t,o){const{gos:i,expressionSvc:s}=this.beans,n=_addGridCommonParams(i,{data:e.data,node:e,rowIndex:e.rowIndex});processClassRules(s,void 0,i.get("rowClassRules"),n,t,o)}processStylesFromGridOptions(e){const t=this.gos,o=t.get("rowStyle"),i=t.getCallback("getRowStyle");let s;if(i){s=i({data:e.data,node:e,rowIndex:e.rowIndex})}if(s||o)return Object.assign({},o,s)}}]};var ja=class extends I{constructor(e,t){super(),this.columns=e,this.element=t,this.destroyManagedListeners=[],this.enableFeature=e=>{const{beans:t,gos:o,element:i,columns:s}=this,n=t.colHover;e??!!o.get("columnHoverHighlight")?this.destroyManagedListeners=this.addManagedElementListeners(i,{mouseover:n.setMouseOver.bind(n,s),mouseout:n.clearMouseOver.bind(n)}):(this.destroyManagedListeners.forEach((e=>e())),this.destroyManagedListeners=[])}}postConstruct(){this.addManagedPropertyListener("columnHoverHighlight",(({currentValue:e})=>{this.enableFeature(e)})),this.enableFeature()}destroy(){super.destroy(),this.destroyManagedListeners=null}},qa={moduleName:"ColumnHover",version:R,beans:[class extends I{constructor(){super(...arguments),this.beanName="colHover"}postConstruct(){this.addManagedPropertyListener("columnHoverHighlight",(({currentValue:e})=>{e||this.clearMouseOver()}))}setMouseOver(e){this.updateState(e)}clearMouseOver(){this.updateState(null)}isHovered(e){if(!this.gos.get("columnHoverHighlight"))return!1;const t=this.selectedColumns;return!!t&&t.indexOf(e)>=0}addHeaderColumnHoverListener(e,t,o){const listener=()=>{const e=this.isHovered(o);t.toggleCss("ag-column-hover",e)};e.addManagedEventListeners({columnHoverChanged:listener}),listener()}onCellColumnHover(e,t){if(!t)return;const o=this.isHovered(e);t.toggleCss("ag-column-hover",o)}addHeaderFilterColumnHoverListener(e,t,o,i){this.createHoverFeature(e,[o],i);const listener=()=>{const e=this.isHovered(o);t.toggleCss("ag-column-hover",e)};e.addManagedEventListeners({columnHoverChanged:listener}),listener()}createHoverFeature(e,t,o){e.createManagedBean(new ja(t,o))}updateState(e){this.selectedColumns=e,this.eventSvc.dispatchEvent({type:"columnHoverChanged"})}}],apiFunctions:{isColumnHovered:function isColumnHovered(e,t){return!!e.colHover?.isHovered(t)}}};var Qa={moduleName:"EventApi",version:R,apiFunctions:{addEventListener:function addEventListener(e,t,o){e.apiEventSvc?.addEventListener(t,o)},addGlobalListener:function addGlobalListener(e,t){e.apiEventSvc?.addGlobalListener(t)},removeEventListener:function removeEventListener(e,t,o){e.apiEventSvc?.removeEventListener(t,o)},removeGlobalListener:function removeGlobalListener(e,t){e.apiEventSvc?.removeGlobalListener(t)}},beans:[class extends I{constructor(){super(...arguments),this.beanName="apiEventSvc",this.syncListeners=new Map,this.asyncListeners=new Map,this.syncGlobalListeners=new Set,this.globalListenerPairs=new Map}postConstruct(){this.wrapSvc=this.beans.frameworkOverrides.createGlobalEventListenerWrapper?.()}addEventListener(e,t){const o=this.wrapSvc?.wrap(e,t)??t,i=!ks.has(e),s=i?this.asyncListeners:this.syncListeners;s.has(e)||s.set(e,new Set),s.get(e).add(o),this.eventSvc.addEventListener(e,o,i)}removeEventListener(e,t){const o=this.wrapSvc?.unwrap(e,t)??t,i=!!this.asyncListeners.get(e)?.delete(o);i||this.syncListeners.get(e)?.delete(o),this.eventSvc.removeEventListener(e,o,i)}addGlobalListener(e){const t=this.wrapSvc?.wrapGlobal(e)??e,syncListener=(e,o)=>{ks.has(e)&&t(e,o)},asyncListener=(e,o)=>{ks.has(e)||t(e,o)};this.globalListenerPairs.set(e,{syncListener,asyncListener});const o=this.eventSvc;o.addGlobalListener(syncListener,!1),o.addGlobalListener(asyncListener,!0)}removeGlobalListener(e){const{eventSvc:t,wrapSvc:o,globalListenerPairs:i}=this,s=o?.unwrapGlobal(e)??e;if(i.has(s)){const{syncListener:o,asyncListener:n}=i.get(s);t.removeGlobalListener(o,!1),t.removeGlobalListener(n,!0),i.delete(e)}else this.syncGlobalListeners.delete(s),t.removeGlobalListener(s,!1)}destroyEventListeners(e,t){e.forEach(((e,o)=>{e.forEach((e=>this.eventSvc.removeEventListener(o,e,t))),e.clear()})),e.clear()}destroyGlobalListeners(e,t){e.forEach((e=>this.eventSvc.removeGlobalListener(e,t))),e.clear()}destroy(){super.destroy(),this.destroyEventListeners(this.syncListeners,!1),this.destroyEventListeners(this.asyncListeners,!0),this.destroyGlobalListeners(this.syncGlobalListeners,!1);const{globalListenerPairs:e,eventSvc:t}=this;e.forEach((({syncListener:e,asyncListener:o})=>{t.removeGlobalListener(e,!1),t.removeGlobalListener(o,!0)})),e.clear()}}]},Ya={moduleName:"Locale",version:R,beans:[class extends I{constructor(){super(...arguments),this.beanName="localeSvc"}getLocaleTextFunc(){const e=this.gos,t=e.getCallback("getLocaleText");if(t)return(e,o,i)=>t({key:e,defaultValue:o,variableValues:i});const o=e.get("localeText");return(e,t,i)=>{let s=o&&o[e];if(s&&i&&i.length){let e=0;for(;!(e>=i.length);){if(-1===s.indexOf("${variable}"))break;s=s.replace("${variable}",i[e++])}}return s??t}}}]},Za={moduleName:"AllCommunity",version:R,dependsOn:[va,ya,Ea,Qn,ra,aa,la,da,ca,ha,ua,na,xr,Mr,Tr,Dr,Ar,Ir,Ma,Ca,La,ki,Ga,Na,_a,Oa,mi,Ha,pa,wn,$a,qa,Ka,Qa,Sn,xa,kr,Ya,{moduleName:"RowAutoHeight",version:R,beans:[class extends I{constructor(){super(...arguments),this.beanName="rowAutoHeight",this.wasEverActive=!1,this._debouncedCalculateRowHeights=_debounce(this,this.calculateRowHeights.bind(this),1)}requestCheckAutoHeight(){this.wasEverActive&&this._debouncedCalculateRowHeights()}calculateRowHeights(){const{visibleCols:e,rowModel:t,rowSpanSvc:o,pinnedRowModel:i}=this.beans,s=e.autoHeightCols;let n=!1;const updateDisplayedRowHeights=e=>{const t=e.__autoHeights;let i=_getRowHeightForNode(this.beans,e).height;for(const n of s){let s=t?.[n.getColId()];const r=o?.getCellSpan(n,e);if(r){if(r.getLastNode()!==e)continue;if(s=o?.getCellSpan(n,e)?.getLastNodeAutoHeight(),!s)return}if(null==s){if(this.colSpanSkipCell(n,e))continue;return}i=Math.max(s,i)}i!==e.rowHeight&&(e.setRowHeight(i),n=!0)};i?.forEachPinnedRow?.("top",updateDisplayedRowHeights),i?.forEachPinnedRow?.("bottom",updateDisplayedRowHeights),t.forEachDisplayedNode?.(updateDisplayedRowHeights),n&&t.onRowHeightChanged?.()}setRowAutoHeight(e,t,o){if(e.__autoHeights??(e.__autoHeights={}),null==t)return void delete e.__autoHeights[o.getId()];const i=e.__autoHeights[o.getId()];e.__autoHeights[o.getId()]=t,i!==t&&this.requestCheckAutoHeight()}colSpanSkipCell(e,t){const{colModel:o,colViewport:i,visibleCols:s}=this.beans;if(!o.colSpanActive)return!1;let n=[];switch(e.getPinned()){case"left":n=s.getLeftColsForRow(t);break;case"right":n=s.getRightColsForRow(t);break;case null:n=i.getColsWithinViewport(t)}return!n.includes(e)}setupCellAutoHeight(e,t,o){if(!e.column.isAutoHeight()||!t)return!1;this.wasEverActive=!0;const i=t.parentElement,{rowNode:s,column:n}=e,r=this.beans,measureHeight=a=>{if(this.beans.editSvc?.isEditing(e))return;if(!e.isAlive()||!o.isAlive())return;const{paddingTop:l,paddingBottom:d,borderBottomWidth:c,borderTopWidth:h}=_getElementSize(i),u=l+d+c+h,g=t.offsetHeight+u;if(a<5){const e=_getDocument(r),o=0==g;if(!e||!e.contains(t)||o)return void window.setTimeout((()=>measureHeight(a+1)),0)}this.setRowAutoHeight(s,g,n)},listener=()=>measureHeight(0);listener();const a=_observeResize(r,t,listener);return o.addDestroyFunc((()=>{a(),this.setRowAutoHeight(s,void 0,n)})),!0}setAutoHeightActive(e){this.active=e.list.some((e=>e.isVisible()&&e.isAutoHeight()))}areRowsMeasured(){if(!this.active)return!0;const e=this.beans.rowRenderer.getAllRowCtrls();let t=null;for(const{rowNode:o}of e){if(!t||this.beans.colModel.colSpanActive){t=this.beans.colViewport.getColsWithinViewport(o).filter((e=>e.isAutoHeight()))}if(0!==t.length){if(!o.__autoHeights)return!1;for(const e of t){const t=o.__autoHeights[e.getColId()];if(!t||o.rowHeight<t)return!1}}}return!0}}]},gi,ba,Wa]}},78508:(e,t,o)=>{o.d(t,{s:()=>ee});var i=o(87363),s=o(12793),n=o(61533),r=i.createContext({}),a=i.createContext("default"),showJsComp=(e,t,o,i)=>{if(!e||e.componentFromFramework||t.isDestroyed())return;const s=e.newAgStackInstance();let n,r,a=!1;return s.then((e=>{a?t.destroyBean(e):(n=e,r=n.getGui(),o.appendChild(r),setRef(i,n))})),()=>{a=!0,n&&(r?.parentElement?.removeChild(r),t.destroyBean(n),i&&setRef(i,void 0))}},setRef=(e,t)=>{if(e)if(e instanceof Function){e(t)}else{e.current=t}},classesList=(...e)=>e.filter((e=>null!=e&&""!==e)).join(" "),l=class _CssClasses{constructor(...e){this.classesMap={},e.forEach((e=>{this.classesMap[e]=!0}))}setClass(e,t){if(!!this.classesMap[e]==t)return this;const o=new _CssClasses;return o.classesMap={...this.classesMap},o.classesMap[e]=t,o}toString(){return Object.keys(this.classesMap).filter((e=>this.classesMap[e])).join(" ")}},isComponentStateless=e=>"function"==typeof e&&!(e.prototype&&e.prototype.isReactComponent)||"object"==typeof e&&e.$$typeof===("function"==typeof Symbol&&Symbol.for?Symbol.for("react.memo"):60115),d=i.version?.split(".")[0],c="16"===d||"17"===d;var h=!1;var agFlushSync=(e,t)=>{c||!e||h?t():n.flushSync(t)};function getNextValueIfDifferent(e,t,o){if(null==t||null==e)return t;if(e===t||0===t.length&&0===e.length)return e;if(o||0===e.length&&t.length>0||e.length>0&&0===t.length)return t;const i=[],s=[],n=new Map,r=new Map;for(let e=0;e<t.length;e++){const o=t[e];r.set(o.instanceId,o)}for(let t=0;t<e.length;t++){const o=e[t];n.set(o.instanceId,o),r.has(o.instanceId)&&i.push(o)}for(let e=0;e<t.length;e++){const o=t[e],i=o.instanceId;n.has(i)||s.push(o)}return i.length===e.length&&0===s.length?e:0===i.length&&s.length===t.length?t:0===i.length?s:0===s.length?i:[...i,...s]}var u=(0,i.forwardRef)(((e,t)=>{const{registry:o,context:n}=(0,i.useContext)(r),a=(0,i.useRef)(null),d=(0,i.useRef)(null),c=(0,i.useRef)(null),h=(0,i.useRef)(null),g=(0,i.useRef)(null),p=(0,i.useRef)(),[m,f]=(0,i.useState)(),[C,w]=(0,i.useState)(),[v,b]=(0,i.useState)(),[S,y]=(0,i.useState)((()=>new l)),[R,F]=(0,i.useState)((()=>new l("ag-hidden"))),[E,P]=(0,i.useState)((()=>new l("ag-hidden"))),[D,x]=(0,i.useState)((()=>new l("ag-invisible")));(0,i.useImperativeHandle)(t,(()=>({refresh:()=>!1}))),(0,i.useLayoutEffect)((()=>showJsComp(m,n,d.current)),[m]);const M=(0,i.useCallback)((t=>{if(a.current=t,!t)return void(p.current=n.destroyBean(p.current));const i={setInnerRenderer:(e,t)=>{f(e),b(t)},setChildCount:e=>w(e),toggleCss:(e,t)=>y((o=>o.setClass(e,t))),setContractedDisplayed:e=>P((t=>t.setClass("ag-hidden",!e))),setExpandedDisplayed:e=>F((t=>t.setClass("ag-hidden",!e))),setCheckboxVisible:e=>x((t=>t.setClass("ag-invisible",!e))),setCheckboxSpacing:e=>x((t=>t.setClass("ag-group-checkbox-spacing",e)))},s=o.createDynamicBean("groupCellRendererCtrl",!0);s&&(p.current=n.createBean(s),p.current.init(i,t,c.current,h.current,g.current,u,e))}),[]),T=(0,i.useMemo)((()=>`ag-cell-wrapper ${S.toString()}`),[S]),A=(0,i.useMemo)((()=>`ag-group-expanded ${R.toString()}`),[R]),I=(0,i.useMemo)((()=>`ag-group-contracted ${E.toString()}`),[E]),k=(0,i.useMemo)((()=>`ag-group-checkbox ${D.toString()}`),[D]),L=m?.componentFromFramework,G=L?m.componentClass:void 0,N=null==m&&null!=v,_=(0,s.Z_J)(v);return i.createElement("span",{className:T,ref:M,...e.colDef?{}:{role:p.current?.getCellAriaRole()}},i.createElement("span",{className:A,ref:h}),i.createElement("span",{className:I,ref:g}),i.createElement("span",{className:k,ref:c}),i.createElement("span",{className:"ag-group-value",ref:d},N?_:L?i.createElement(G,{...m.params}):null),i.createElement("span",{className:"ag-group-child-count"},C))})),g=u,p=(0,i.createContext)({setMethods:()=>{}}),m=(0,i.memo)((e=>{const{initialProps:t,addUpdateCallback:o,CustomComponentClass:s,setMethods:n}=e,[{key:r,...a},l]=(0,i.useState)(t);return(0,i.useEffect)((()=>{o((e=>l(e)))}),[]),i.createElement(p.Provider,{value:{setMethods:n}},i.createElement(s,{key:r,...a}))})),f=0;function generateNewKey(){return"agPortalKey_"+ ++f}var C=class{constructor(e,t,o,i){this.portal=null,this.oldPortal=null,this.reactComponent=e,this.portalManager=t,this.componentType=o,this.suppressFallbackMethods=!!i,this.statelessComponent=this.isStateless(this.reactComponent),this.key=generateNewKey(),this.portalKey=generateNewKey(),this.instanceCreated=this.isStatelessComponent()?s.j_S.resolve(!1):new s.j_S((e=>{this.resolveInstanceCreated=e}))}getGui(){return this.eParentElement}getRootElement(){return this.eParentElement.firstChild}destroy(){this.componentInstance&&"function"==typeof this.componentInstance.destroy&&this.componentInstance.destroy();const e=this.portal;e&&this.portalManager.destroyPortal(e)}createParentElement(e){const t=this.portalManager.getComponentWrappingElement(),o=document.createElement(t||"div");return o.classList.add("ag-react-container"),e.reactContainer=o,o}statelessComponentRendered(){return this.eParentElement.childElementCount>0||this.eParentElement.childNodes.length>0}getFrameworkComponentInstance(){return this.componentInstance}isStatelessComponent(){return this.statelessComponent}getReactComponentName(){return this.reactComponent.name}getMemoType(){return this.hasSymbol()?Symbol.for("react.memo"):60115}hasSymbol(){return"function"==typeof Symbol&&Symbol.for}isStateless(e){return"function"==typeof e&&!(e.prototype&&e.prototype.isReactComponent)||"object"==typeof e&&e.$$typeof===this.getMemoType()}hasMethod(e){const t=this.getFrameworkComponentInstance();return!!t&&null!=t[e]||this.fallbackMethodAvailable(e)}callMethod(e,t){const o=this.getFrameworkComponentInstance();if(this.isStatelessComponent())return this.fallbackMethod(e,t&&t[0]?t[0]:{});if(!o)return void setTimeout((()=>this.callMethod(e,t)));const i=o[e];return i?i.apply(o,t):this.fallbackMethodAvailable(e)?this.fallbackMethod(e,t&&t[0]?t[0]:{}):void 0}addMethod(e,t){this[e]=t}init(e){return this.eParentElement=this.createParentElement(e),this.createOrUpdatePortal(e),new s.j_S((e=>this.createReactComponent(e)))}createOrUpdatePortal(e){this.isStatelessComponent()||(this.ref=e=>{this.componentInstance=e,this.resolveInstanceCreated?.(!0),this.resolveInstanceCreated=void 0},e.ref=this.ref),this.reactElement=this.createElement(this.reactComponent,{...e,key:this.key}),this.portal=(0,n.createPortal)(this.reactElement,this.eParentElement,this.portalKey)}createElement(e,t){return(0,i.createElement)(e,t)}createReactComponent(e){this.portalManager.mountReactPortal(this.portal,this,e)}rendered(){return this.isStatelessComponent()&&this.statelessComponentRendered()||!(this.isStatelessComponent()||!this.getFrameworkComponentInstance())}refreshComponent(e){this.oldPortal=this.portal,this.createOrUpdatePortal(e),this.portalManager.updateReactPortal(this.oldPortal,this.portal)}fallbackMethod(e,t){const o=this[`${e}Component`];if(!this.suppressFallbackMethods&&o)return o.bind(this)(t)}fallbackMethodAvailable(e){if(this.suppressFallbackMethods)return!1;return!!this[`${e}Component`]}};function addOptionalMethods(e,t,o){e.forEach((e=>{const i=t[e];i&&(o[e]=i)}))}var w=class extends C{constructor(){super(...arguments),this.awaitUpdateCallback=new s.j_S((e=>{this.resolveUpdateCallback=e})),this.wrapperComponent=m}init(e){return this.sourceParams=e,super.init(this.getProps())}addMethod(){}getInstance(){return this.instanceCreated.then((()=>this.componentInstance))}getFrameworkComponentInstance(){return this}createElement(e,t){return super.createElement(this.wrapperComponent,{initialProps:t,CustomComponentClass:e,setMethods:e=>this.setMethods(e),addUpdateCallback:e=>{this.updateCallback=()=>(e(this.getProps()),new s.j_S((e=>{setTimeout((()=>{e()}))}))),this.resolveUpdateCallback()}})}setMethods(e){this.providedMethods=e,addOptionalMethods(this.getOptionalMethods(),this.providedMethods,this)}getOptionalMethods(){return[]}getProps(){return{...this.sourceParams,key:this.key,ref:this.ref}}refreshProps(){return this.updateCallback?this.updateCallback():new s.j_S((e=>this.awaitUpdateCallback.then((()=>{this.updateCallback().then((()=>e()))}))))}},v=class extends w{refresh(e){return this.sourceParams=e,this.refreshProps(),!0}},b=class extends w{constructor(){super(...arguments),this.date=null,this.onDateChange=e=>this.updateDate(e)}getDate(){return this.date}setDate(e){this.date=e,this.refreshProps()}refresh(e){this.sourceParams=e,this.refreshProps()}getOptionalMethods(){return["afterGuiAttached","setInputPlaceholder","setInputAriaLabel","setDisabled"]}updateDate(e){this.setDate(e),this.sourceParams.onDateChanged()}getProps(){const e=super.getProps();return e.date=this.date,e.onDateChange=this.onDateChange,delete e.onDateChanged,e}},S=class extends w{constructor(){super(...arguments),this.label="",this.icon=null,this.shake=!1}setIcon(e,t){this.icon=e,this.shake=t,this.refreshProps()}setLabel(e){this.label=e,this.refreshProps()}getProps(){const e=super.getProps(),{label:t,icon:o,shake:i}=this;return e.label=t,e.icon=o,e.shake=i,e}},y=class extends w{constructor(){super(...arguments),this.model=null,this.onModelChange=e=>this.updateModel(e),this.onUiChange=()=>this.sourceParams.filterModifiedCallback(),this.expectingNewMethods=!0,this.hasBeenActive=!1,this.awaitSetMethodsCallback=new s.j_S((e=>{this.resolveSetMethodsCallback=e}))}isFilterActive(){return null!=this.model}doesFilterPass(e){return this.providedMethods.doesFilterPass(e)}getModel(){return this.model}setModel(e){return this.expectingNewMethods=!0,this.model=e,this.hasBeenActive||(this.hasBeenActive=this.isFilterActive()),this.refreshProps()}refresh(e){return this.sourceParams=e,this.refreshProps(),!0}afterGuiAttached(e){const t=this.providedMethods;t?t.afterGuiAttached?.(e):this.awaitSetMethodsCallback.then((()=>this.providedMethods?.afterGuiAttached?.(e)))}getOptionalMethods(){return["afterGuiDetached","onNewRowsLoaded","getModelAsString","onAnyFilterChanged"]}setMethods(e){!1===this.expectingNewMethods&&this.hasBeenActive&&this.providedMethods?.doesFilterPass!==e?.doesFilterPass&&setTimeout((()=>{this.sourceParams.filterChangedCallback()})),this.expectingNewMethods=!1,super.setMethods(e),this.resolveSetMethodsCallback(),this.resolveFilterPassCallback?.(),this.resolveFilterPassCallback=void 0}updateModel(e){this.resolveFilterPassCallback?.();const t=new s.j_S((e=>{this.resolveFilterPassCallback=e}));this.setModel(e).then((()=>{t.then((()=>{this.sourceParams.filterChangedCallback()}))}))}getProps(){const e=super.getProps();return e.model=this.model,e.onModelChange=this.onModelChange,e.onUiChange=this.onUiChange,delete e.filterChangedCallback,e}},R=class extends w{constructor(){super(...arguments),this.awaitSetMethodsCallback=new s.j_S((e=>{this.resolveSetMethodsCallback=e}))}refresh(e){return this.sourceParams=e,this.refreshProps(),!0}afterGuiAttached(e){const t=this.providedMethods;t?t.afterGuiAttached?.(e):this.awaitSetMethodsCallback.then((()=>this.providedMethods?.afterGuiAttached?.(e)))}getOptionalMethods(){return["afterGuiDetached","onNewRowsLoaded","onAnyFilterChanged"]}setMethods(e){super.setMethods(e),this.resolveSetMethodsCallback()}};function updateFloatingFilterParent(e,t){e.parentFilterInstance((o=>{(o.setModel(t)||s.j_S.resolve()).then((()=>{e.filterParams.filterChangedCallback()}))}))}var F=class extends w{constructor(){super(...arguments),this.model=null,this.onModelChange=e=>this.updateModel(e)}onParentModelChanged(e){this.model=e,this.refreshProps()}refresh(e){this.sourceParams=e,this.refreshProps()}getOptionalMethods(){return["afterGuiAttached"]}updateModel(e){this.model=e,this.refreshProps(),updateFloatingFilterParent(this.sourceParams,e)}getProps(){const e=super.getProps();return e.model=this.model,e.onModelChange=this.onModelChange,e}},E=class extends w{refresh(e){this.sourceParams=e,this.refreshProps()}getOptionalMethods(){return["afterGuiAttached"]}},P=class extends w{refresh(e){return this.sourceParams=e,this.refreshProps(),!0}},D=class extends w{refresh(e){this.sourceParams=e,this.refreshProps()}},x=class extends w{constructor(){super(...arguments),this.active=!1,this.expanded=!1,this.onActiveChange=e=>this.updateActive(e)}setActive(e){this.awaitSetActive(e)}setExpanded(e){this.expanded=e,this.refreshProps()}getOptionalMethods(){return["select","configureDefaults"]}awaitSetActive(e){return this.active=e,this.refreshProps()}updateActive(e){const t=this.awaitSetActive(e);e&&t.then((()=>this.sourceParams.onItemActivated()))}getProps(){const e=super.getProps();return e.active=this.active,e.expanded=this.expanded,e.onActiveChange=this.onActiveChange,delete e.onItemActivated,e}},M=class extends w{refresh(e){this.sourceParams=e,this.refreshProps()}},T=class extends w{refresh(e){return this.sourceParams=e,this.refreshProps(),!0}},A=class extends w{constructor(){super(...arguments),this.onStateChange=e=>this.updateState(e)}refresh(e){return this.sourceParams=e,this.refreshProps(),!0}getState(){return this.state}updateState(e){this.state=e,this.refreshProps(),this.sourceParams.onStateUpdated()}getProps(){const e=super.getProps();return e.state=this.state,e.onStateChange=this.onStateChange,e}};function warnReactiveCustomComponents(){(0,s.F5b)(231)}var I=(0,i.memo)((({ctrl:e})=>{const t=e.isAlive(),{context:o}=(0,i.useContext)(r),n=t?e.column.getColId():void 0,[a,l]=(0,i.useState)(),[d,c]=(0,i.useState)(),h=(0,i.useRef)(),u=(0,i.useRef)(null),g=(0,i.useRef)(null),p=(0,i.useRef)(null),m=(0,i.useRef)(),f=(0,i.useRef)();t&&!f.current&&(f.current=new s.fRQ((()=>u.current)));const C=(0,i.useCallback)((t=>{if(u.current=t,h.current=t?o.createBean(new s.HGE):o.destroyBean(h.current),!t||!e.isAlive())return;const refreshSelectAllGui=()=>{const t=e.getSelectAllGui();t&&(g.current?.insertAdjacentElement("afterend",t),h.current.addDestroyFunc((()=>t.remove())))},i={setWidth:e=>{u.current&&(u.current.style.width=e)},toggleCss:(e,t)=>f.current.toggleCss(e,t),setUserStyles:e=>c(e),setAriaSort:e=>{u.current&&(e?(0,s.gCM)(u.current,e):(0,s.KxL)(u.current))},setUserCompDetails:e=>l(e),getUserCompInstance:()=>m.current||void 0,refreshSelectAllGui,removeSelectAllGui:()=>e.getSelectAllGui()?.remove()};e.setComp(i,t,g.current,p.current,h.current),refreshSelectAllGui()}),[]);(0,i.useLayoutEffect)((()=>showJsComp(a,o,p.current,m)),[a]),(0,i.useEffect)((()=>{e.setDragSource(u.current)}),[a]);const w=(0,i.useMemo)((()=>!!(a?.componentFromFramework&&isComponentStateless(a.componentClass))),[a]),v=a?.componentFromFramework,b=a?.componentClass;return i.createElement("div",{ref:C,style:d,className:"ag-header-cell","col-id":n,role:"columnheader"},i.createElement("div",{ref:g,className:"ag-header-cell-resize",role:"presentation"}),i.createElement("div",{ref:p,className:"ag-header-cell-comp-wrapper",role:"presentation"},v?w?i.createElement(b,{...a.params}):i.createElement(b,{...a.params,ref:m}):null))})),k=(0,i.memo)((({ctrl:e})=>{const{context:t,gos:o}=(0,i.useContext)(r),[n,a]=(0,i.useState)(),[d,c]=(0,i.useState)((()=>new l("ag-header-cell","ag-floating-filter"))),[h,u]=(0,i.useState)((()=>new l)),[g,m]=(0,i.useState)((()=>new l("ag-floating-filter-button","ag-hidden"))),[f,C]=(0,i.useState)("false"),[w,v]=(0,i.useState)(),[,b]=(0,i.useState)(1),S=(0,i.useRef)(),y=(0,i.useRef)(null),R=(0,i.useRef)(null),F=(0,i.useRef)(null),E=(0,i.useRef)(null),P=(0,i.useRef)(),D=(0,i.useRef)(),userCompRef=e=>{null!=e&&P.current&&P.current(e)},x=(0,i.useCallback)((o=>{if(y.current=o,S.current=o?t.createBean(new s.HGE):t.destroyBean(S.current),!o)return;D.current=new s.j_S((e=>{P.current=e}));const i={toggleCss:(e,t)=>c((o=>o.setClass(e,t))),setUserStyles:e=>a(e),addOrRemoveBodyCssClass:(e,t)=>u((o=>o.setClass(e,t))),setButtonWrapperDisplayed:e=>{m((t=>t.setClass("ag-hidden",!e))),C(e?"false":"true")},setWidth:e=>{y.current&&(y.current.style.width=e)},setCompDetails:e=>v(e),getFloatingFilterComp:()=>D.current?D.current:null,setMenuIcon:e=>E.current?.appendChild(e)};e.setComp(i,o,E.current,R.current,S.current)}),[]);(0,i.useLayoutEffect)((()=>showJsComp(w,t,R.current,userCompRef)),[w]);const M=(0,i.useMemo)((()=>d.toString()),[d]),T=(0,i.useMemo)((()=>h.toString()),[h]),A=(0,i.useMemo)((()=>g.toString()),[g]),I=(0,i.useMemo)((()=>!!(w&&w.componentFromFramework&&isComponentStateless(w.componentClass))),[w]),k=(0,i.useMemo)((()=>o.get("reactiveCustomComponents")),[]),L=(0,i.useMemo)((()=>o.get("enableFilterHandlers")),[]),G=(0,i.useRef)();(0,i.useEffect)((()=>{if(w?.componentFromFramework)if(k){const e=new(L?class{constructor(e,t){this.floatingFilterParams=e,this.refreshProps=t}getProps(){return this.floatingFilterParams}refresh(e){this.floatingFilterParams=e,this.refreshProps()}setMethods(e){addOptionalMethods(this.getOptionalMethods(),e,this)}getOptionalMethods(){return["afterGuiAttached"]}}:class{constructor(e,t){this.floatingFilterParams=e,this.refreshProps=t,this.model=null,this.onModelChange=e=>this.updateModel(e)}getProps(){return{...this.floatingFilterParams,model:this.model,onModelChange:this.onModelChange}}onParentModelChanged(e){this.model=e,this.refreshProps()}refresh(e){this.floatingFilterParams=e,this.refreshProps()}setMethods(e){addOptionalMethods(this.getOptionalMethods(),e,this)}getOptionalMethods(){return["afterGuiAttached"]}updateModel(e){this.model=e,this.refreshProps(),updateFloatingFilterParent(this.floatingFilterParams,e)}})(w.params,(()=>b((e=>e+1))));userCompRef(e),G.current=e}else warnReactiveCustomComponents()}),[w]);const N=G.current?.getProps(),_=w?.componentFromFramework,O=w?.componentClass;return i.createElement("div",{ref:x,style:n,className:M,role:"gridcell"},i.createElement("div",{ref:R,className:T,role:"presentation"},_?k?N&&i.createElement(p.Provider,{value:{setMethods:e=>G.current.setMethods(e)}},i.createElement(O,{...N})):i.createElement(O,{...w.params,ref:I?()=>{}:userCompRef}):null),i.createElement("div",{ref:F,"aria-hidden":f,className:A,role:"presentation"},i.createElement("button",{ref:E,type:"button",className:"ag-button ag-floating-filter-button-button",tabIndex:-1})))})),L=(0,i.memo)((({ctrl:e})=>{const{context:t}=(0,i.useContext)(r),[o,n]=(0,i.useState)(),[a,d]=(0,i.useState)((()=>new l)),[c,h]=(0,i.useState)((()=>new l)),[u,g]=(0,i.useState)("false"),[p,m]=(0,i.useState)(),[f,C]=(0,i.useState)(),w=(0,i.useMemo)((()=>e.column.getUniqueId()),[]),v=(0,i.useRef)(),b=(0,i.useRef)(null),S=(0,i.useRef)(null),y=(0,i.useRef)(null),R=(0,i.useRef)(),F=(0,i.useCallback)((o=>{if(b.current=o,v.current=o?t.createBean(new s.HGE):t.destroyBean(v.current),!o)return;const i={setWidth:e=>{b.current&&(b.current.style.width=e)},toggleCss:(e,t)=>d((o=>o.setClass(e,t))),setUserStyles:e=>n(e),setHeaderWrapperHidden:e=>{const t=y.current;t&&(e?t.style.setProperty("display","none"):t.style.removeProperty("display"))},setHeaderWrapperMaxHeight:e=>{const t=y.current;t&&(null!=e?t.style.setProperty("max-height",`${e}px`):t.style.removeProperty("max-height"),t.classList.toggle("ag-header-cell-comp-wrapper-limited-height",null!=e))},setUserCompDetails:e=>C(e),setResizableDisplayed:e=>{h((t=>t.setClass("ag-hidden",!e))),g(e?"false":"true")},setAriaExpanded:e=>m(e),getUserCompInstance:()=>R.current||void 0};e.setComp(i,o,S.current,y.current,v.current)}),[]);(0,i.useLayoutEffect)((()=>showJsComp(f,t,y.current)),[f]),(0,i.useEffect)((()=>{b.current&&e.setDragSource(b.current)}),[f]);const E=(0,i.useMemo)((()=>!!(f?.componentFromFramework&&isComponentStateless(f.componentClass))),[f]),P=(0,i.useMemo)((()=>"ag-header-group-cell "+a.toString()),[a]),D=(0,i.useMemo)((()=>"ag-header-cell-resize "+c.toString()),[c]),x=f?.componentFromFramework,M=f?.componentClass;return i.createElement("div",{ref:F,style:o,className:P,"col-id":w,role:"columnheader","aria-expanded":p},i.createElement("div",{ref:y,className:"ag-header-cell-comp-wrapper",role:"presentation"},x?E?i.createElement(M,{...f.params}):i.createElement(M,{...f.params,ref:R}):null),i.createElement("div",{ref:S,"aria-hidden":u,className:D}))})),G=(0,i.memo)((({ctrl:e})=>{const{context:t}=(0,i.useContext)(r),{topOffset:o,rowHeight:n}=(0,i.useMemo)((()=>e.getTopAndHeight()),[]),a=e.getAriaRowIndex(),l=e.headerRowClass,[d,c]=(0,i.useState)((()=>n+"px")),[h,u]=(0,i.useState)((()=>o+"px")),g=(0,i.useRef)([]),[p,m]=(0,i.useState)((()=>e.getUpdatedHeaderCtrls())),f=(0,i.useRef)(),C=(0,i.useRef)(null),w=(0,i.useCallback)((o=>{if(C.current=o,f.current=o?t.createBean(new s.HGE):t.destroyBean(f.current),!o)return;const i={setHeight:e=>c(e),setTop:e=>u(e),setHeaderCtrls:(e,t,o)=>{const i=g.current,s=getNextValueIfDifferent(i,e,t);s!==i&&(g.current=s,agFlushSync(o,(()=>m(s))))},setWidth:e=>{C.current&&(C.current.style.width=e)}};e.setComp(i,f.current,!1)}),[]),v=(0,i.useMemo)((()=>({height:d,top:h})),[d,h]),b=(0,i.useCallback)((t=>{switch(e.type){case"group":return i.createElement(L,{ctrl:t,key:t.instanceId});case"filter":return i.createElement(k,{ctrl:t,key:t.instanceId});default:return i.createElement(I,{ctrl:t,key:t.instanceId})}}),[]);return i.createElement("div",{ref:w,className:l,role:"row",style:v,"aria-rowindex":a},p.map(b))})),N=(0,i.memo)((({pinned:e})=>{const[t,o]=(0,i.useState)(!0),[n,a]=(0,i.useState)([]),{context:l}=(0,i.useContext)(r),d=(0,i.useRef)(null),c=(0,i.useRef)(null),h=(0,i.useRef)(),u="left"===e,g="right"===e,p=!u&&!g,m=(0,i.useCallback)((t=>{if(d.current=t,h.current=t?l.createBean(new s.TsN(e)):l.destroyBean(h.current),!t)return;const i={setDisplayed:o,setCtrls:e=>a(e),setCenterWidth:e=>{c.current&&(c.current.style.width=e)},setViewportScrollLeft:e=>{d.current&&(d.current.scrollLeft=e)},setPinnedContainerWidth:e=>{d.current&&(d.current.style.width=e,d.current.style.minWidth=e,d.current.style.maxWidth=e)}};h.current.setComp(i,d.current)}),[]),f=t?"":"ag-hidden",insertRowsJsx=()=>n.map((e=>i.createElement(G,{ctrl:e,key:e.instanceId})));return u?i.createElement("div",{ref:m,className:"ag-pinned-left-header "+f,"aria-hidden":!t,role:"rowgroup"},insertRowsJsx()):g?i.createElement("div",{ref:m,className:"ag-pinned-right-header "+f,"aria-hidden":!t,role:"rowgroup"},insertRowsJsx()):p?i.createElement("div",{ref:m,className:"ag-header-viewport "+f,role:"presentation",tabIndex:-1},i.createElement("div",{ref:c,className:"ag-header-container",role:"rowgroup"},insertRowsJsx())):null})),_=(0,i.memo)((()=>{const[e,t]=(0,i.useState)((()=>new l)),[o,n]=(0,i.useState)(),{context:a}=(0,i.useContext)(r),d=(0,i.useRef)(null),c=(0,i.useRef)(),h=(0,i.useCallback)((e=>{if(d.current=e,c.current=e?a.createBean(new s.gA7):a.destroyBean(c.current),!e)return;const o={toggleCss:(e,o)=>t((t=>t.setClass(e,o))),setHeightAndMinHeight:e=>n(e)};c.current.setComp(o,e,e)}),[]),u=(0,i.useMemo)((()=>"ag-header "+e.toString()),[e]),g=(0,i.useMemo)((()=>({height:o,minHeight:o})),[o]);return i.createElement("div",{ref:h,className:u,style:g,role:"presentation"},i.createElement(N,{pinned:"left"}),i.createElement(N,{pinned:null}),i.createElement(N,{pinned:"right"}))})),reactComment_default=(e,t)=>{(0,i.useEffect)((()=>{const o=t.current;if(o){const t=o.parentElement;if(t){const i=document.createComment(e);return t.insertBefore(i,o),()=>{t.removeChild(i)}}}}),[e])},O=(0,i.memo)((e=>{const[t,o]=(0,i.useState)(),a=(0,i.useContext)(r),{context:l,popupSvc:d,localeSvc:c,gos:h,editSvc:u}=a,{editDetails:g,cellCtrl:p,eParentCell:m}=e;return(e=>{const t=(0,i.useRef)(e),o=(0,i.useRef)(),s=(0,i.useRef)(!1),n=(0,i.useRef)(!1),[,r]=(0,i.useState)(0);s.current&&(n.current=!0),(0,i.useEffect)((()=>(s.current||(o.current=t.current(),s.current=!0),r((e=>e+1)),()=>{n.current&&o.current?.()})),[])})((()=>{const{compDetails:t}=g,i=h.get("stopEditingWhenCellsLoseFocus"),n=l.createBean(u.createPopupEditorWrapper(t.params)),r=n.getGui();if(e.jsChildComp){const t=e.jsChildComp.getGui();t&&r.appendChild(t)}const{column:a,rowNode:f}=p,C={column:a,rowNode:f,type:"popupCellEditor",eventSource:m,ePopup:r,position:g.popupPosition,keepWithinBounds:!0},w=d?.positionPopupByComponent.bind(d,C),v=(0,s.FZV)(c),b=d?.addPopup({modal:i,eChild:r,closeOnEsc:!0,closedCallback:()=>{p.onPopupEditorClosed()},anchorToElement:m,positionCallback:w,ariaLabel:v("ariaLabelCellEditor","Cell Editor")}),S=b?b.hideFunc:void 0;return o(n),e.jsChildComp?.afterGuiAttached?.(),()=>{S?.(),l.destroyBean(n)}})),(0,i.useLayoutEffect)((()=>()=>{p.isCellFocused()&&t?.getGui().contains((0,s.HB1)(a))&&m.focus({preventScroll:!0})}),[t]),t&&e.wrappedContent?(0,n.createPortal)(e.wrappedContent,t.getGui()):null})),jsxEditor=(e,t,o)=>e.compProxy?((e,t,o)=>{const{compProxy:s}=e;o(s);const n=s.getProps(),r=isComponentStateless(t);return i.createElement(p.Provider,{value:{setMethods:e=>s.setMethods(e)}},r?i.createElement(t,{...n}):i.createElement(t,{...n,ref:e=>s.setRef(e)}))})(e,t,o):i.createElement(t,{...e.compDetails.params,ref:o}),showJsRenderer_default=(e,t,o,s,n,a)=>{const{context:l}=(0,i.useContext)(r),d=(0,i.useCallback)((()=>{const e=n.current;if(!e)return;const t=e.getGui();t&&t.parentElement&&t.parentElement.removeChild(t),l.destroyBean(e),n.current=void 0}),[]);(0,i.useEffect)((()=>{const i=null!=e,s=e?.compDetails&&!e.compDetails.componentFromFramework;if(!(i&&s&&!(t&&null==o)))return void d();const r=e.compDetails;if(n.current){const t=n.current,o=!!(null!=t.refresh&&0==e.force)&&t.refresh(r.params);if(!0===o||void 0===o)return;d()}r.newAgStackInstance().then((e=>{if(!e)return;const i=e.getGui();if(!i)return;(t?o:a.current).appendChild(i),n.current=e}))}),[e,t,s]),(0,i.useEffect)((()=>d),[])},SkeletonCellRenderer=({cellCtrl:e,parent:t})=>{const o=(0,i.useRef)(),s=(0,i.useMemo)((()=>{const{loadingComp:t}=e.getDeferLoadingCellRenderer();return t?{value:void 0,compDetails:t,force:!1}:void 0}),[e]);if(showJsRenderer_default(s,!1,void 0,1,o,t),s?.compDetails?.componentFromFramework){const e=s.compDetails.componentClass;return i.createElement(e,{...s.compDetails.params})}return i.createElement(i.Fragment,null)},H=(0,i.memo)((({cellCtrl:e,printLayout:t,editingCell:o})=>{const n=(0,i.useContext)(r),{context:a}=n,{column:{colIdSanitised:l},instanceId:d}=e,h=(0,i.useRef)(),[u,g]=(0,i.useState)((()=>e.isCellRenderer()?void 0:{compDetails:void 0,value:e.getValueToDisplay(),force:!1})),[p,m]=(0,i.useState)(),[f,C]=(0,i.useState)(1),[w,v]=(0,i.useState)(),[b,S]=(0,i.useState)(!1),[y,R]=(0,i.useState)(!1),[F,E]=(0,i.useState)(!1),[P,D]=(0,i.useState)(),x=(0,i.useMemo)((()=>e.isForceWrapper()),[e]),M=(0,i.useMemo)((()=>e.getCellAriaRole()),[e]),T=(0,i.useRef)(null),A=(0,i.useRef)(null),I=(0,i.useRef)(null),k=(0,i.useRef)(),L=(0,i.useRef)(),G=(0,i.useRef)(),N=(0,i.useRef)([]),_=(0,i.useRef)(),[H,V]=(0,i.useState)(0),B=(0,i.useCallback)((e=>{_.current=e,V((e=>e+1))}),[]),z=null!=u&&(b||F||y)&&(null==p||!!p.popup),W=x||z,U=(0,i.useCallback)((t=>{if(L.current=t,t){const o=t.isCancelBeforeStart&&t.isCancelBeforeStart();setTimeout((()=>{o?(e.stopEditing(!0),e.focusCell(!0)):(e.cellEditorAttached(),e.enableEditorTooltipFeature(t))}))}}),[e]),$=(0,i.useRef)();$.current||($.current=new s.fRQ((()=>T.current))),showJsRenderer_default(u,W,_.current,H,k,T);const K=(0,i.useRef)();(0,i.useLayoutEffect)((()=>{const e=K.current,t=u;if(K.current=u,null==e||null==e.compDetails||null==t||null==t.compDetails)return;const o=e.compDetails,i=t.compDetails;if(o.componentClass!=i.componentClass)return;if(null==I.current?.refresh)return;1!=I.current.refresh(i.params)&&C((e=>e+1))}),[u]),(0,i.useLayoutEffect)((()=>{if(!(p&&!p.compDetails.componentFromFramework))return;const t=p.compDetails,o=!0===p.popup,i=t.newAgStackInstance();return i.then((e=>{if(!e)return;const t=e.getGui();if(U(e),!o){(x?G:T).current?.appendChild(t),e.afterGuiAttached&&e.afterGuiAttached()}D(e)})),()=>{i.then((t=>{const o=t.getGui();e.disableEditorTooltipFeature(),a.destroyBean(t),U(void 0),D(void 0),o?.parentElement?.removeChild(o)}))}}),[p]);const j=(0,i.useCallback)((t=>{if(G.current=t,!t)return N.current.forEach((e=>e())),void(N.current=[]);const addComp=e=>{if(e){const o=e.getGui();t.insertAdjacentElement("afterbegin",o),N.current.push((()=>{a.destroyBean(e),(0,s.taW)(o)}))}return e};if(b){addComp(e.createSelectionCheckbox())}F&&addComp(e.createDndSource()),y&&addComp(e.createRowDragComp())}),[e,a,F,y,b]),q=(0,i.useCallback)((()=>{const n=!e.isCellSpanning()||A.current,r=T.current;if(h.current=r?a.createBean(new s.HGE):a.destroyBean(h.current),!r||!n||!e)return;const l={toggleCss:(e,t)=>$.current.toggleCss(e,t),setUserStyles:e=>v(e),getFocusableElement:()=>T.current,setIncludeSelection:e=>S(e),setIncludeRowDrag:e=>R(e),setIncludeDndSource:e=>E(e),getCellEditor:()=>L.current||null,getCellRenderer:()=>I.current??k.current,getParentOfValue:()=>_.current??G.current??T.current,setRenderDetails:(t,o,s)=>{const setDetails=()=>{g((e=>e?.compDetails!==t||e?.value!==o||e?.force!==s?{value:o,compDetails:t,force:s}:e))};if(t?.params?.deferRender&&!e.rowNode.group){const{loadingComp:t,onReady:o}=e.getDeferLoadingCellRenderer();if(t)return g({value:void 0,compDetails:t,force:!1}),void o.then((()=>{return e=setDetails,void(c?e():i.startTransition(e));var e}))}setDetails()},setEditDetails:(t,o,i,n)=>{if(t){let e;n?e=new class{constructor(e,t){this.cellEditorParams=e,this.refreshProps=t,this.instanceCreated=new s.j_S((e=>{this.resolveInstanceCreated=e})),this.onValueChange=e=>this.updateValue(e),this.value=e.value}getProps(){return{...this.cellEditorParams,initialValue:this.cellEditorParams.value,value:this.value,onValueChange:this.onValueChange}}getValue(){return this.value}refresh(e){this.cellEditorParams=e,this.refreshProps()}setMethods(e){addOptionalMethods(this.getOptionalMethods(),e,this)}getInstance(){return this.instanceCreated.then((()=>this.componentInstance))}setRef(e){this.componentInstance=e,this.resolveInstanceCreated?.(),this.resolveInstanceCreated=void 0}getOptionalMethods(){return["isCancelBeforeStart","isCancelAfterEnd","focusIn","focusOut","afterGuiAttached","getValidationErrors","getValidationElement"]}updateValue(e){this.value=e,this.refreshProps()}}(t.params,(()=>C((e=>e+1)))):t.componentFromFramework&&warnReactiveCustomComponents(),m({compDetails:t,popup:o,popupPosition:i,compProxy:e}),o||g(void 0)}else{e.hasBrowserFocus()&&l.getFocusableElement().focus({preventScroll:!0}),m((e=>{e?.compProxy&&(L.current=void 0)}))}},refreshEditStyles:(e,t)=>{if(!T.current)return;const{current:o}=$;o.toggleCss("ag-cell-value",!W),o.toggleCss("ag-cell-inline-editing",!!e&&!t),o.toggleCss("ag-cell-popup-editing",!!e&&!!t),o.toggleCss("ag-cell-not-inline-editing",!e||!!t)}},d=G.current||void 0;e.setComp(l,r,A.current??void 0,d,t,o,h.current)}),[]),Q=(0,i.useCallback)((e=>{T.current=e,q()}),[]),Y=(0,i.useCallback)((e=>{A.current=e,q()}),[]),Z=(0,i.useMemo)((()=>!!(u?.compDetails?.componentFromFramework&&isComponentStateless(u.compDetails.componentClass))),[u]);(0,i.useLayoutEffect)((()=>{if(!T.current)return;const{current:e}=$;e.toggleCss("ag-cell-value",!W),e.toggleCss("ag-cell-inline-editing",!!p&&!p.popup),e.toggleCss("ag-cell-popup-editing",!!p&&!!p.popup),e.toggleCss("ag-cell-not-inline-editing",!p||!!p.popup)}));const valueOrCellComp=()=>{const{compDetails:t,value:o}=u;if(!t)return o?.toString?.()??o;if(t.componentFromFramework){const o=t.componentClass;return i.createElement(i.Suspense,{fallback:i.createElement(SkeletonCellRenderer,{cellCtrl:e,parent:T})},Z?i.createElement(o,{...t.params,key:f}):i.createElement(o,{...t.params,key:f,ref:I}))}},showCellOrEditor=()=>{const showCellValue=()=>null==u?null:W?i.createElement("span",{role:"presentation",id:`cell-${d}`,className:"ag-cell-value",ref:B},valueOrCellComp()):valueOrCellComp(),showEditValue=t=>((e,t,o,s,n)=>{const r=e.compDetails,a=r.componentClass,l=r.componentFromFramework&&!e.popup,d=r.componentFromFramework&&e.popup,c=!r.componentFromFramework&&e.popup;return l?jsxEditor(e,a,t):d?i.createElement(O,{editDetails:e,cellCtrl:s,eParentCell:o,wrappedContent:jsxEditor(e,a,t)}):c&&n?i.createElement(O,{editDetails:e,cellCtrl:s,eParentCell:o,jsChildComp:n}):null})(t,U,T.current,e,P);return null!=p?p.popup?i.createElement(i.Fragment,null,showCellValue(),showEditValue(p)):showEditValue(p):showCellValue()},renderCell=()=>i.createElement("div",{ref:Q,style:w,role:M,"col-id":l},W?i.createElement("div",{className:"ag-cell-wrapper",role:"presentation",ref:j},showCellOrEditor()):showCellOrEditor());return e.isCellSpanning()?i.createElement("div",{ref:Y,className:"ag-spanned-cell-wrapper",role:"presentation"},renderCell()):renderCell()})),V=(0,i.memo)((({rowCtrl:e,containerType:t})=>{const{context:o,gos:n,editSvc:l}=(0,i.useContext)(r),d="default"===(0,i.useContext)(a),c=(0,i.useRef)(),h=(0,i.useRef)(e.getDomOrder()),u=e.isFullWidth(),g=e.rowNode.displayed,[p,m]=(0,i.useState)((()=>g?e.rowNode.getRowIndexString():null)),[f,C]=(0,i.useState)((()=>e.rowId)),[w,v]=(0,i.useState)((()=>e.businessKey)),[b,S]=(0,i.useState)((()=>e.rowStyles)),y=(0,i.useRef)(null),[R,F]=(0,i.useState)((()=>null)),[E,P]=(0,i.useState)(),[D,x]=(0,i.useState)((()=>g?e.getInitialRowTop(t):void 0)),[M,T]=(0,i.useState)((()=>g?e.getInitialTransform(t):void 0)),A=(0,i.useRef)(null),I=(0,i.useRef)(),k=(0,i.useRef)(!1),[L,G]=(0,i.useState)(0);(0,i.useEffect)((()=>{if(k.current||!E||L>10)return;const t=A.current?.firstChild;t?(e.setupDetailRowAutoHeight(t),k.current=!0):G((e=>e+1))}),[E,L]);const N=(0,i.useRef)();N.current||(N.current=new s.fRQ((()=>A.current)));const _=(0,i.useRef)((()=>{})),O=function agUseSyncExternalStore(e,t,o){return i.useSyncExternalStore?i.useSyncExternalStore(e,t):o}((0,i.useCallback)((e=>(_.current=e,()=>{_.current=()=>{}})),[]),(()=>y.current),[]),V=d?O:R,B=(0,i.useCallback)((i=>{if(A.current=i,c.current=i?o.createBean(new s.HGE):o.destroyBean(c.current),!i)return void e.unsetComp(t);if(!e.isAlive())return;const n={setTop:x,setTransform:T,toggleCss:(e,t)=>N.current.toggleCss(e,t),setDomOrder:e=>h.current=e,setRowIndex:m,setRowId:C,setRowBusinessKey:v,setUserStyles:S,setCellCtrls:(e,t)=>{const o=y.current,i=getNextValueIfDifferent(o,e,h.current);i!==o&&(y.current=i,d?_.current():agFlushSync(t,(()=>F(i))))},showFullWidth:e=>P(e),getFullWidthCellRenderer:()=>I.current,refreshFullWidth:e=>K.current?(P((t=>({...t,params:e()}))),!0):!(!I.current||!I.current.refresh)&&I.current.refresh(e())};e.setComp(n,i,t,c.current)}),[]);(0,i.useLayoutEffect)((()=>showJsComp(E,o,A.current,I)),[E]);const z=(0,i.useMemo)((()=>{const e={top:D,transform:M};return Object.assign(e,b),e}),[D,M,b]),W=u&&E?.componentFromFramework,U=!u&&null!=V,$=(0,i.useMemo)((()=>!!(E?.componentFromFramework&&isComponentStateless(E.componentClass))),[E]),K=(0,i.useRef)(!1);(0,i.useEffect)((()=>{K.current=$&&!!E&&!!n.get("reactiveCustomComponents")}),[$,E]);return i.createElement("div",{ref:B,role:"row",style:z,"row-index":p,"row-id":f,"row-business-key":w},U?V?.map((t=>i.createElement(H,{cellCtrl:t,editingCell:l?.isEditing(t,{withOpenEditor:!0})??!1,printLayout:e.printLayout,key:t.instanceId}))):W?(()=>{const e=E.componentClass;return $?i.createElement(e,{...E.params}):i.createElement(e,{...E.params,ref:I})})():null)})),B=(0,i.memo)((({name:e})=>{const{context:t,gos:o}=(0,i.useContext)(r),n=(0,i.useMemo)((()=>(0,s.TjA)(e)),[e]),a=(0,i.useRef)(null),l=(0,i.useRef)(null),d=(0,i.useRef)(null),c=(0,i.useRef)([]),h=(0,i.useRef)([]),[u,g]=(0,i.useState)((()=>[])),p=!!o.get("enableCellSpan")&&!!n.getSpannedRowCtrls,m=(0,i.useRef)([]),f=(0,i.useRef)([]),[C,w]=(0,i.useState)((()=>[])),v=(0,i.useRef)(!1),b=(0,i.useRef)(),S=(0,i.useMemo)((()=>classesList("ag-viewport",(0,s.xGN)(e))),[e]),y=(0,i.useMemo)((()=>classesList((0,s.b4l)(e))),[e]),R=(0,i.useMemo)((()=>classesList("ag-spanning-container",(0,s.$Yu)(e))),[e]),F="center"===n.type||p;reactComment_default(" AG Row Container "+e+" ",F?a:l);const E=(0,i.useCallback)((()=>{const e=!F||null!=a.current,t=null!=l.current,o=!p||null!=d.current;return e&&t&&o}),[]),P=(0,i.useCallback)((()=>null==a.current&&null==l.current&&null==d.current),[]),D=(0,i.useCallback)((()=>{if(P()&&(b.current=t.destroyBean(b.current)),E()){const updateRowCtrlsOrdered=e=>{const t=getNextValueIfDifferent(h.current,c.current,v.current);t!==h.current&&(h.current=t,agFlushSync(e,(()=>g(t))))},updateSpannedRowCtrlsOrdered=e=>{const t=getNextValueIfDifferent(f.current,m.current,v.current);t!==f.current&&(f.current=t,agFlushSync(e,(()=>w(t))))},o={setHorizontalScroll:e=>{a.current&&(a.current.scrollLeft=e)},setViewportHeight:e=>{a.current&&(a.current.style.height=e)},setRowCtrls:({rowCtrls:e,useFlushSync:t})=>{const o=!!t&&c.current.length>0&&e.length>0;c.current=e,updateRowCtrlsOrdered(o)},setSpannedRowCtrls:(e,t)=>{const o=!!t&&m.current.length>0&&e.length>0;m.current=e,updateSpannedRowCtrlsOrdered(o)},setDomOrder:e=>{v.current!=e&&(v.current=e,updateRowCtrlsOrdered(!1))},setContainerWidth:e=>{l.current&&(l.current.style.width=e)},setOffsetTop:e=>{l.current&&(l.current.style.transform=`translateY(${e})`)}};b.current=t.createBean(new s.RiB(e)),b.current.setComp(o,l.current,d.current??void 0,a.current)}}),[E,P]),x=(0,i.useCallback)((e=>{l.current=e,D()}),[D]),M=(0,i.useCallback)((e=>{d.current=e,D()}),[D]),T=(0,i.useCallback)((e=>{a.current=e,D()}),[D]),buildContainer=()=>i.createElement("div",{className:y,ref:x,role:"rowgroup"},u.map((e=>i.createElement(V,{rowCtrl:e,containerType:n.type,key:e.instanceId}))));if(!F)return buildContainer();return i.createElement("div",{className:S,ref:T,role:"presentation"},buildContainer(),p?i.createElement("div",{className:R,ref:M,role:"rowgroup"},C.map((e=>i.createElement(V,{rowCtrl:e,containerType:n.type,key:e.instanceId})))):null)})),z=(0,i.memo)((()=>{const e=(0,i.useContext)(r),{context:t,overlays:o}=e,[n,a]=(0,i.useState)(""),[l,d]=(0,i.useState)(0),[c,h]=(0,i.useState)(0),[u,g]=(0,i.useState)("0px"),[p,m]=(0,i.useState)("0px"),[f,C]=(0,i.useState)("100%"),[w,v]=(0,i.useState)("0px"),[b,S]=(0,i.useState)("0px"),[y,R]=(0,i.useState)("100%"),[F,E]=(0,i.useState)(!0),[P,D]=(0,i.useState)(!0),[x,M]=(0,i.useState)(null),[T,A]=(0,i.useState)(""),[I,k]=(0,i.useState)(null),[L,G]=(0,i.useState)("ag-layout-normal"),N=(0,i.useRef)();N.current||(N.current=new s.fRQ((()=>O.current)));const O=(0,i.useRef)(null),H=(0,i.useRef)(null),V=(0,i.useRef)(null),z=(0,i.useRef)(null),W=(0,i.useRef)(null),U=(0,i.useRef)(null),$=(0,i.useRef)(null),K=(0,i.useRef)([]),j=(0,i.useRef)([]);reactComment_default(" AG Grid Body ",O),reactComment_default(" AG Pinned Top ",H),reactComment_default(" AG Sticky Top ",V),reactComment_default(" AG Middle ",U),reactComment_default(" AG Pinned Bottom ",$);const q=(0,i.useCallback)((i=>{if(O.current=i,!i)return K.current=t.destroyBeans(K.current),j.current.forEach((e=>e())),void(j.current=[]);if(!t)return;const attachToDom=(e,t)=>{e.appendChild(t),j.current.push((()=>e.removeChild(t)))},addComp=(e,o,i)=>{attachToDom(e,document.createComment(i)),attachToDom(e,(e=>{const o=t.createBean(new e);return K.current.push(o),o})(o).getGui())};addComp(i,s.iVQ," AG Fake Horizontal Scroll ");const n=o?.getOverlayWrapperCompClass();n&&addComp(i,n," AG Overlay Wrapper "),W.current&&addComp(W.current,s._P_," AG Fake Vertical Scroll ");const r={setRowAnimationCssOnBodyViewport:a,setColumnCount:e=>{O.current&&(0,s.FN9)(O.current,e)},setRowCount:e=>{O.current&&(0,s.OtO)(O.current,e)},setTopHeight:d,setBottomHeight:h,setStickyTopHeight:g,setStickyTopTop:m,setStickyTopWidth:C,setTopInvisible:E,setBottomInvisible:D,setColumnMovingCss:(e,t)=>N.current.toggleCss(e,t),updateLayoutClasses:G,setAlwaysVerticalScrollClass:M,setPinnedTopBottomOverflowY:A,setCellSelectableCss:(e,t)=>k(t?e:null),setBodyViewportWidth:e=>{U.current&&(U.current.style.width=e)},registerBodyViewportResizeListener:t=>{if(U.current){const o=(0,s.OpL)(e,U.current,t);j.current.push((()=>o()))}},setStickyBottomHeight:v,setStickyBottomBottom:S,setStickyBottomWidth:R,setGridRootRole:e=>i.setAttribute("role",e)},l=t.createBean(new s.wox);K.current.push(l),l.setComp(r,i,U.current,H.current,$.current,V.current,z.current)}),[]),Q=(0,i.useMemo)((()=>classesList("ag-root","ag-unselectable",L)),[L]),Y=(0,i.useMemo)((()=>classesList("ag-body-viewport",n,L,x,I)),[n,L,x,I]),Z=(0,i.useMemo)((()=>classesList("ag-body",L)),[L]),J=(0,i.useMemo)((()=>classesList("ag-floating-top",F?"ag-invisible":null,I)),[I,F]),X=(0,i.useMemo)((()=>classesList("ag-sticky-top",I)),[I]),ee=(0,i.useMemo)((()=>classesList("ag-sticky-bottom","0px"===w?"ag-invisible":null,I)),[I,w]),te=(0,i.useMemo)((()=>classesList("ag-floating-bottom",P?"ag-invisible":null,I)),[I,P]),oe=(0,i.useMemo)((()=>({height:l,minHeight:l,overflowY:T})),[l,T]),ie=(0,i.useMemo)((()=>({height:u,top:p,width:f})),[u,p,f]),se=(0,i.useMemo)((()=>({height:w,bottom:b,width:y})),[w,b,y]),ne=(0,i.useMemo)((()=>({height:c,minHeight:c,overflowY:T})),[c,T]),createRowContainer=e=>i.createElement(B,{name:e,key:`${e}-container`}),createSection=({section:e,children:t,className:o,style:s})=>i.createElement("div",{ref:e,className:o,role:"presentation",style:s},t.map(createRowContainer));return i.createElement("div",{ref:q,className:Q},i.createElement(_,null),createSection({section:H,className:J,style:oe,children:["topLeft","topCenter","topRight","topFullWidth"]}),i.createElement("div",{className:Z,ref:W,role:"presentation"},createSection({section:U,className:Y,children:["left","center","right","fullWidth"]})),createSection({section:V,className:X,style:ie,children:["stickyTopLeft","stickyTopCenter","stickyTopRight","stickyTopFullWidth"]}),createSection({section:z,className:ee,style:se,children:["stickyBottomLeft","stickyBottomCenter","stickyBottomRight","stickyBottomFullWidth"]}),createSection({section:$,className:te,style:ne,children:["bottomLeft","bottomCenter","bottomRight","bottomFullWidth"]}))})),W=(0,i.forwardRef)(((e,t)=>{const{children:o,eFocusableElement:n,onTabKeyDown:a,gridCtrl:l,forceFocusOutWhenTabGuardsAreEmpty:d,isEmpty:c}=e,{context:h}=(0,i.useContext)(r),u=(0,i.useRef)(null),g=(0,i.useRef)(null),p=(0,i.useRef)(),setTabIndex=e=>{const t=null==e?void 0:parseInt(e,10).toString();[u,g].forEach((e=>{void 0===t?e.current?.removeAttribute("tabindex"):e.current?.setAttribute("tabindex",t)}))};(0,i.useImperativeHandle)(t,(()=>({forceFocusOutOfContainer(e){p.current?.forceFocusOutOfContainer(e)}})));const m=(0,i.useCallback)((()=>{const e=u.current,t=g.current;if(e||t){if(e&&t){const o={setTabIndex};p.current=h.createBean(new s.s$r({comp:o,eTopGuard:e,eBottomGuard:t,eFocusableElement:n,onTabKeyDown:a,forceFocusOutWhenTabGuardsAreEmpty:d,focusInnerElement:e=>l.focusInnerElement(e),isEmpty:c}))}}else p.current=h.destroyBean(p.current)}),[]),f=(0,i.useCallback)((e=>{u.current=e,m()}),[m]),C=(0,i.useCallback)((e=>{g.current=e,m()}),[m]),createTabGuard=e=>{const t="top"===e?s.zn.TAB_GUARD_TOP:s.zn.TAB_GUARD_BOTTOM;return i.createElement("div",{className:`${s.zn.TAB_GUARD} ${t}`,role:"presentation",ref:"top"===e?f:C})};return i.createElement(i.Fragment,null,createTabGuard("top"),o,createTabGuard("bottom"))})),U=(0,i.memo)(W),$=(0,i.memo)((({context:e})=>{const[t,o]=(0,i.useState)(""),[n,a]=(0,i.useState)(""),[l,d]=(0,i.useState)(null),[c,h]=(0,i.useState)(null),[u,g]=(0,i.useState)(!1),[p,m]=(0,i.useState)(),f=(0,i.useRef)(),C=(0,i.useRef)(null),w=(0,i.useRef)(),[v,b]=(0,i.useState)(null),S=(0,i.useRef)((()=>{})),y=(0,i.useRef)(),R=(0,i.useRef)([]),F=(0,i.useCallback)((()=>{}),[]),E=(0,i.useMemo)((()=>e.isDestroyed()?null:e.getBeans()),[e]);reactComment_default(" AG Grid ",C);const P=(0,i.useCallback)((t=>{if(C.current=t,f.current=t?e.createBean(new s.l3s):e.destroyBean(f.current),!t||e.isDestroyed())return;const i=f.current;S.current=i.focusInnerElement.bind(i);const n={destroyGridUi:()=>{},setRtlClass:o,forceFocusOutOfContainer:e=>{e||!y.current?.isDisplayed()?w.current?.forceFocusOutOfContainer(e):y.current.forceFocusOutOfContainer(e)},updateLayoutClasses:a,getFocusableContainers:()=>{const e=[],t=C.current?.querySelector(".ag-root");return t&&e.push({getGui:()=>t}),R.current.forEach((t=>{t.isDisplayed()&&e.push(t)})),e},setCursor:d,setUserSelect:h};i.setComp(n,t,t),g(!0)}),[]);(0,i.useEffect)((()=>{const t=f.current,o=C.current;if(!(p&&E&&t&&v&&o))return;const i=[],{watermarkSelector:s,paginationSelector:n,sideBarSelector:r,statusBarSelector:a,gridHeaderDropZonesSelector:l}=t.getOptionalSelectors(),d=[];if(l){const t=e.createBean(new l.component),s=t.getGui();o.insertAdjacentElement("afterbegin",s),d.push(s),i.push(t)}if(r){const t=e.createBean(new r.component),o=t.getGui(),s=v.querySelector(".ag-tab-guard-bottom");s&&(s.insertAdjacentElement("beforebegin",o),d.push(o)),i.push(t),R.current.push(t)}const addComponentToDom=t=>{const s=e.createBean(new t),n=s.getGui();return o.insertAdjacentElement("beforeend",n),d.push(n),i.push(s),s};if(a&&addComponentToDom(a.component),n){const e=addComponentToDom(n.component);y.current=e,R.current.push(e)}return s&&addComponentToDom(s.component),()=>{e.destroyBeans(i),d.forEach((e=>{e.parentElement?.removeChild(e)}))}}),[p,v,E]);const D=(0,i.useMemo)((()=>classesList("ag-root-wrapper",t,n)),[t,n]),x=(0,i.useMemo)((()=>classesList("ag-root-wrapper-body","ag-focus-managed",n)),[n]),M=(0,i.useMemo)((()=>({userSelect:null!=c?c:"",WebkitUserSelect:null!=c?c:"",cursor:null!=l?l:""})),[c,l]),T=(0,i.useCallback)((e=>{w.current=e,m(null!==e)}),[]),A=(0,i.useCallback)((()=>!f.current?.isFocusable()),[]);return i.createElement("div",{ref:P,className:D,style:M,role:"presentation"},i.createElement("div",{className:x,ref:b,role:"presentation"},u&&v&&E&&i.createElement(r.Provider,{value:E},i.createElement(U,{ref:T,eFocusableElement:v,onTabKeyDown:F,gridCtrl:f.current,forceFocusOutWhenTabGuardsAreEmpty:!0,isEmpty:A},i.createElement(z,null)))))})),K=class extends s.AS9{wireBeans(e){this.ctrlsSvc=e.ctrlsSvc}areHeaderCellsRendered(){return this.ctrlsSvc.getHeaderRowContainerCtrls().every((e=>e.getAllCtrls().every((e=>e.areCellsRendered()))))}},j={setGridApi:void 0,maxComponentCreationTimeMs:void 0,children:void 0},q={gridOptions:void 0,modules:void 0,containerStyle:void 0,className:void 0,passGridApi:void 0,componentWrappingElement:void 0,...j},Q=new Set(Object.keys(q)),Y=new Set(Object.keys(j)),AgGridReactUi=e=>{const t=(0,i.useRef)(),o=(0,i.useRef)(null),n=(0,i.useRef)(null),r=(0,i.useRef)([]),l=(0,i.useRef)([]),d=(0,i.useRef)(e),c=(0,i.useRef)(),h=(0,i.useRef)(),u=(0,i.useRef)(!1),[g,p]=(0,i.useState)(void 0),[,m]=(0,i.useState)(0),f=(0,i.useCallback)((i=>{if(o.current=i,!i)return r.current.forEach((e=>e())),void(r.current.length=0);const a=e.modules||[];n.current||(n.current=new class{constructor(e,t,o){this.destroyed=!1,this.portals=[],this.hasPendingPortalUpdate=!1,this.wrappingElement=t||"div",this.refresher=e,this.maxComponentCreationTimeMs=o||1e3}getPortals(){return this.portals}destroy(){this.destroyed=!0}destroyPortal(e){this.portals=this.portals.filter((t=>t!==e)),this.batchUpdate()}getComponentWrappingElement(){return this.wrappingElement}mountReactPortal(e,t,o){this.portals=[...this.portals,e],this.waitForInstance(t,o),this.batchUpdate()}updateReactPortal(e,t){this.portals[this.portals.indexOf(e)]=t,this.batchUpdate()}batchUpdate(){this.hasPendingPortalUpdate||(setTimeout((()=>{this.destroyed||(this.refresher(),this.hasPendingPortalUpdate=!1)})),this.hasPendingPortalUpdate=!0)}waitForInstance(e,t,o=Date.now()){if(this.destroyed)t(null);else if(e.rendered())t(e);else{if(Date.now()-o>=this.maxComponentCreationTimeMs&&!this.hasPendingPortalUpdate)return agFlushSync(!0,(()=>this.refresher())),void(e.rendered()&&t(e));window.setTimeout((()=>{this.waitForInstance(e,t,o)}))}}}((()=>m((e=>e+1))),e.componentWrappingElement,e.maxComponentCreationTimeMs),r.current.push((()=>{n.current?.destroy(),n.current=null})));const d=(0,s.F97)(e.gridOptions,e,Object.keys(e).filter((e=>!Q.has(e)))),g=new X((()=>{if(u.current){const getFn=()=>c.current?.shouldQueueUpdates()?void 0:l.current.shift();let e=getFn();for(;e;)e(),e=getFn()}}));c.current=g;const f=new K,C={providedBeanInstances:{frameworkCompWrapper:new Z(n.current,d),renderStatus:f},modules:a,frameworkOverrides:g,setThemeOnGridDiv:!0},w=new s.zmG;d.gridId??(d.gridId=h.current),t.current=w.create(i,d,(o=>{p(o),o.createBean(f),r.current.push((()=>{o.destroy()})),o.getBean("ctrlsSvc").whenReady({addDestroyFunc:e=>{r.current.push(e)}},(()=>{if(o.isDestroyed())return;const i=t.current;i&&e.passGridApi?.(i)}))}),(e=>{e.getBean("ctrlsSvc").whenReady({addDestroyFunc:e=>{r.current.push(e)}},(()=>{l.current.forEach((e=>e())),l.current.length=0,u.current=!0}))}),C),r.current.push((()=>{t.current=void 0})),t.current&&(h.current=t.current.getGridId())}),[]),C=(0,i.useMemo)((()=>({height:"100%",...e.containerStyle||{}})),[e.containerStyle]),w=(0,i.useCallback)((e=>{u.current&&!c.current?.shouldQueueUpdates()?e():l.current.push(e)}),[]);(0,i.useEffect)((()=>{const o=function extractGridPropertyChanges(e,t){const o={};return Object.keys(t).forEach((i=>{if(Q.has(i))return void(Y.has(i)&&(0,s.F5b)(274,{prop:i}));const n=t[i];e[i]!==n&&(o[i]=n)})),o}(d.current,e);d.current=e,w((()=>{t.current&&(0,s.UgJ)(o,t.current)}))}),[e]);const v=i.useSyncExternalStore&&"legacy"!==(0,s.DMj)(e,"renderingMode")?"default":"legacy";return i.createElement("div",{style:C,className:e.className,ref:f},i.createElement(a.Provider,{value:v},g&&!g.isDestroyed()?i.createElement($,{context:g}):null,n.current?.getPortals()??null))};var Z=class extends s.Nk3{constructor(e,t){super(),this.parent=e,this.gridOptions=t}createWrapper(e,t){const o=this.gridOptions;if((0,s.DMj)(o,"reactiveCustomComponents")){const i=(e=>{switch(e){case"filter":return(0,s.DMj)(o,"enableFilterHandlers")?R:y;case"floatingFilterComponent":return(0,s.DMj)(o,"enableFilterHandlers")?E:F;case"dateComponent":return b;case"dragAndDropImageComponent":return S;case"loadingOverlayComponent":return D;case"noRowsOverlayComponent":return M;case"statusPanel":return T;case"toolPanel":return A;case"menuItem":return x;case"cellRenderer":return v;case"innerHeaderComponent":return P}})(t.name);if(i)return new i(e,this.parent,t)}else switch(t.name){case"filter":case"floatingFilterComponent":case"dateComponent":case"dragAndDropImageComponent":case"loadingOverlayComponent":case"noRowsOverlayComponent":case"statusPanel":case"toolPanel":case"menuItem":case"cellRenderer":warnReactiveCustomComponents()}const i=!t.cellRenderer&&"toolPanel"!==t.name;return new C(e,this.parent,t,i)}},J=(0,i.forwardRef)(((e,t)=>{const o=(0,i.useContext)(r),{registry:n,context:a,gos:d,rowModel:c}=o,[h,u]=(0,i.useState)((()=>new l)),[g,p]=(0,i.useState)((()=>new l)),[m,f]=(0,i.useState)(),[C,w]=(0,i.useState)(),v=(0,i.useRef)(),b=(0,i.useRef)(null),S=(0,i.useRef)(),y=(0,i.useMemo)((()=>(0,s.$4t)(e.api.getGridId(),m?.rowModelType??"clientSide")),[e]),R=(0,i.useMemo)((()=>h.toString()+" ag-details-row"),[h]),F=(0,i.useMemo)((()=>g.toString()+" ag-details-grid"),[g]);t&&(0,i.useImperativeHandle)(t,(()=>({refresh:()=>v.current?.refresh()??!1}))),e.template&&(0,s.F5b)(230);const E=(0,i.useCallback)((t=>{if(b.current=t,!t)return v.current=a.destroyBean(v.current),void S.current?.();const i={toggleCss:(e,t)=>u((o=>o.setClass(e,t))),toggleDetailGridCss:(e,t)=>p((o=>o.setClass(e,t))),setDetailGrid:e=>f(e),setRowData:e=>w(e),getGui:()=>b.current},r=n.createDynamicBean("detailCellRendererCtrl",!0);if(r&&(a.createBean(r),r.init(i,e),v.current=r,d.get("detailRowAutoHeight"))){const checkRowSizeFunc=()=>{if(null==b.current)return;const t=b.current.clientHeight;if(null!=t&&t>0){setTimeout((()=>{e.node.setRowHeight(t),((0,s.qYz)(d,c)||(0,s.jie)(d,c))&&c.onRowHeightChanged()}),0)}};S.current=(0,s.OpL)(o,t,checkRowSizeFunc),checkRowSizeFunc()}}),[]),P=(0,i.useCallback)((e=>{v.current?.registerDetailWithMaster(e)}),[]);return i.createElement("div",{className:R,ref:E},m&&i.createElement(AgGridReactUi,{className:F,...m,modules:y,rowData:C,passGridApi:P}))})),X=class extends s.vA3{constructor(e){super("react"),this.processQueuedUpdates=e,this.queueUpdates=!1,this.renderingEngine="react",this.frameworkComponents={agGroupCellRenderer:g,agGroupRowRenderer:g,agDetailCellRenderer:J},this.wrapIncoming=(e,t)=>"ensureVisible"===t?function runWithoutFlushSync(e){return h||setTimeout((()=>h=!1),0),h=!0,e()}(e):e()}frameworkComponent(e){return this.frameworkComponents[e]}isFrameworkComponent(e){if(!e)return!1;const t=e.prototype;return!(t&&"getGui"in t)}getLockOnRefresh(){this.queueUpdates=!0}releaseLockOnRefresh(){this.queueUpdates=!1,this.processQueuedUpdates()}shouldQueueUpdates(){return this.queueUpdates}runWhenReadyAsync(){return function isReact19(){return"19"===d}()}},ee=class extends i.Component{constructor(){super(...arguments),this.apiListeners=[],this.setGridApi=e=>{this.api=e,this.apiListeners.forEach((t=>t(e)))}}registerApiListener(e){this.apiListeners.push(e)}componentWillUnmount(){this.apiListeners.length=0}render(){return i.createElement(AgGridReactUi,{...this.props,passGridApi:this.setGridApi})}}}}]);
|